(()=>{"use strict";var e,v={},m={};function t(e){var n=m[e];if(void 0!==n)return n.exports;var r=m[e]={exports:{}};return v[e].call(r.exports,r,r.exports,t),r.exports}t.m=v,e=[],t.O=(n,r,u,o)=>{if(!r){var a=1/0;for(i=0;i<e.length;i++){for(var[r,u,o]=e[i],s=!0,l=0;l<r.length;l++)(!1&o||a>=o)&&Object.keys(t.O).every(b=>t.O[b](r[l]))?r.splice(l--,1):(s=!1,o<a&&(a=o));if(s){e.splice(i--,1);var d=u();void 0!==d&&(n=d)}}return n}o=o||0;for(var i=e.length;i>0&&e[i-1][2]>o;i--)e[i]=e[i-1];e[i]=[r,u,o]},t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((n,r)=>(t.f[r](e,n),n),[])),t.u=e=>e+".8927e79e3a11952a.js",t.miniCssF=e=>{},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="ClientApp:";t.l=(r,u,o,i)=>{if(e[r])e[r].push(u);else{var a,s;if(void 0!==o)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var f=l[d];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==n+o){a=f;break}}a||(s=!0,(a=document.createElement("script")).type="module",a.charset="utf-8",a.timeout=120,t.nc&&a.setAttribute("nonce",t.nc),a.setAttribute("data-webpack",n+o),a.src=t.tu(r)),e[r]=[u];var p=(g,b)=>{a.onerror=a.onload=null,clearTimeout(c);var h=e[r];if(delete e[r],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),g)return g(b)},c=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),t.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;t.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),t.tu=e=>t.tt().createScriptURL(e),t.p="/scripts/ClientApp/",(()=>{var e={runtime:0};t.f.j=(u,o)=>{var i=t.o(e,u)?e[u]:void 0;if(0!==i)if(i)o.push(i[2]);else if("runtime"!=u){var a=new Promise((f,p)=>i=e[u]=[f,p]);o.push(i[2]=a);var s=t.p+t.u(u),l=new Error;t.l(s,f=>{if(t.o(e,u)&&(0!==(i=e[u])&&(e[u]=void 0),i)){var p=f&&("load"===f.type?"missing":f.type),c=f&&f.target&&f.target.src;l.message="Loading chunk "+u+" failed.\n("+p+": "+c+")",l.name="ChunkLoadError",l.type=p,l.request=c,i[1](l)}},"chunk-"+u,u)}else e[u]=0},t.O.j=u=>0===e[u];var n=(u,o)=>{var l,d,[i,a,s]=o,f=0;if(i.some(c=>0!==e[c])){for(l in a)t.o(a,l)&&(t.m[l]=a[l]);if(s)var p=s(t)}for(u&&u(o);f<i.length;f++)t.o(e,d=i[f])&&e[d]&&e[d][0](),e[d]=0;return t.O(p)},r=self.webpackChunkClientApp=self.webpackChunkClientApp||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))})()})();
"use strict";(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([["polyfills"],{7277:()=>{!function(t){const n=t.performance;function i(M){n&&n.mark&&n.mark(M)}function o(M,T){n&&n.measure&&n.measure(M,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(M){return c+M}const p=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(p||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class M{constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"<root>",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}static assertZonePatched(){if(t.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=M.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(e,r,k=!1){if(oe.hasOwnProperty(e)){if(!k&&p)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),oe[e]=r(t,M,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===w))return;const C=e.state!=E;C&&e._transitionTo(E,A),e.runCount++;const $=re;re=e,U={parent:U,zone:this};try{e.type==w&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(A,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(A,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new m(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new m(w,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new m(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||K).name+"; Execution: "+this.name+")");if(e.state===A||e.state===E){e._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;C<k.length;C++)k[C]._updateTaskCount(e.type,r)}}return M.__symbol__=a,M})();const P={name:"",onHasTask:(M,T,e,r)=>M.hasTask(e,r),onScheduleTask:(M,T,e,r)=>M.scheduleTask(e,r),onInvokeTask:(M,T,e,r,k,C)=>M.invokeTask(e,r,k,C),onCancelTask:(M,T,e,r)=>M.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:P,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=P,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=P,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=P,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(t,l,this,arguments)}}static invokeTask(T,e,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const L=a("setTimeout"),Z=a("Promise"),N=a("then");let J,B=[],H=!1;function q(M){if(J||t[Z]&&(J=t[Z].resolve(0)),J){let T=J[N];T||(T=J.then),T.call(J,M)}else t[L](M,0)}function R(M){0===ee&&0===B.length&&q(_),M&&B.push(M)}function _(){if(!H){for(H=!0;B.length;){const M=B;B=[];for(let T=0;T<M.length;T++){const e=M[T];try{e.zone.runTask(e,null,null)}catch(r){z.onUnhandledError(r)}}}z.microtaskDrainDone(),H=!1}}const K={name:"NO ZONE"},x="notScheduled",X="scheduling",A="scheduled",E="running",G="canceling",h="unknown",I="microTask",w="macroTask",Q="eventTask",oe={},z={symbol:a,currentZoneFrame:()=>U,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),t.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ie=Object.getOwnPropertyDescriptor,Ee=Object.defineProperty,de=Object.getPrototypeOf,ge=Object.create,Ve=Array.prototype.slice,Oe="addEventListener",Se="removeEventListener",Ze=Zone.__symbol__(Oe),Ne=Zone.__symbol__(Se),ce="true",ae="false",ke=Zone.__symbol__("");function Ie(t,n){return Zone.current.wrap(t,n)}function Me(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const j=Zone.__symbol__,Pe=typeof window<"u",Te=Pe?window:void 0,Y=Pe&&Te||"object"==typeof self&&self||global;function Le(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Ie(t[i],n+"_"+i));return t}function Fe(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Be=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,we=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!we&&!Be&&!(!Pe||!Te.HTMLElement),Ue=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Be&&!(!Pe||!Te.HTMLElement),Re={},We=function(t){if(!(t=t||Y.event))return;let n=Re[t.type];n||(n=Re[t.type]=j("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===Te&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function qe(t,n,i){let o=ie(t,n);if(!o&&i&&ie(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,p=o.set,d=n.slice(2);let P=Re[d];P||(P=Re[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&t===Y&&(m=Y),m&&("function"==typeof m[P]&&m.removeEventListener(d,We),p&&p.call(m,null),m[P]=v,"function"==typeof v&&m.addEventListener(d,We,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const m=v[P];if(m)return m;if(a){let L=a.call(this);if(L)return o.set.call(this,L),"function"==typeof v.removeAttribute&&v.removeAttribute(n),L}return null},Ee(t,n,o),t[c]=!0}function Xe(t,n,i){if(n)for(let o=0;o<n.length;o++)qe(t,"on"+n[o],i);else{const o=[];for(const c in t)"on"==c.slice(0,2)&&o.push(c);for(let c=0;c<o.length;c++)qe(t,o[c],i)}}const ne=j("originalInstance");function ve(t){const n=Y[t];if(!n)return;Y[j(t)]=n,Y[t]=function(){const c=Le(arguments,t);switch(c.length){case 0:this[ne]=new n;break;case 1:this[ne]=new n(c[0]);break;case 2:this[ne]=new n(c[0],c[1]);break;case 3:this[ne]=new n(c[0],c[1],c[2]);break;case 4:this[ne]=new n(c[0],c[1],c[2],c[3]);break;default:throw new Error("Arg list too long.")}},ue(Y[t],n);const i=new n(function(){});let o;for(o in i)"XMLHttpRequest"===t&&"responseBlob"===o||function(c){"function"==typeof i[c]?Y[t].prototype[c]=function(){return this[ne][c].apply(this[ne],arguments)}:Ee(Y[t].prototype,c,{set:function(a){"function"==typeof a?(this[ne][c]=Ie(a,t+"."+c),ue(this[ne][c],a)):this[ne][c]=a},get:function(){return this[ne][c]}})}(o);for(o in n)"prototype"!==o&&n.hasOwnProperty(o)&&(Y[t][o]=n[o])}function le(t,n,i){let o=t;for(;o&&!o.hasOwnProperty(n);)o=de(o);!o&&t[n]&&(o=t);const c=j(n);let a=null;if(o&&(!(a=o[c])||!o.hasOwnProperty(c))&&(a=o[c]=o[n],Fe(o&&ie(o,n)))){const d=i(a,c,n);o[n]=function(){return d(this,arguments)},ue(o[n],a)}return a}function lt(t,n,i){let o=null;function c(a){const p=a.data;return p.args[p.cbIdx]=function(){a.invoke.apply(this,arguments)},o.apply(p.target,p.args),a}o=le(t,n,a=>function(p,d){const P=i(p,d);return P.cbIdx>=0&&"function"==typeof d[P.cbIdx]?Me(P.name,d[P.cbIdx],P,c):a.apply(p,d)})}function ue(t,n){t[j("OriginalDelegate")]=n}let ze=!1,je=!1;function ft(){if(ze)return je;ze=!0;try{const t=Te.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,p=i.symbol,d=[],P=!0===t[p("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=p("Promise"),m=p("then");i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const Z=p("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[Z];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function J(l){return e.reject(l)}const q=p("state"),R=p("value"),_=p("finally"),K=p("parentPromiseValue"),x=p("parentPromiseState"),A=null,E=!0,G=!1;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const w=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},oe=p("currentTaskTrace");function z(l,u,s){const f=w();if(l===s)throw new TypeError("Promise resolved with itself");if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(b){return f(()=>{z(l,!1,b)})(),l}if(u!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(b){f(()=>{z(l,!1,b)})()}else{l[q]=u;const b=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[K]),u===G&&s instanceof Error){const y=n.currentTask&&n.currentTask.data&&n.currentTask.data.__creationTrace__;y&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:y})}for(let y=0;y<b.length;)ee(l,b[y++],b[y++],b[y++],b[y++]);if(0==b.length&&u==G){l[q]=0;let y=s;try{throw new Error("Uncaught (in promise): "+function a(l){return l&&l.toString===Object.prototype.toString?(l.constructor&&l.constructor.name||"")+": "+JSON.stringify(l):l?l.toString():Object.prototype.toString.call(l)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(D){y=D}P&&(y.throwOriginal=!0),y.rejection=s,y.promise=l,y.zone=n.current,y.task=n.currentTask,d.push(y),i.scheduleMicroTask()}}}return l}const U=p("rejectionHandledHandler");function re(l){if(0===l[q]){try{const u=n[U];u&&"function"==typeof u&&u.call(this,{rejection:l[R],promise:l})}catch{}l[q]=G;for(let u=0;u<d.length;u++)l===d[u].promise&&d.splice(u,1)}}function ee(l,u,s,f,g){re(l);const b=l[q],y=b?"function"==typeof f?f:H:"function"==typeof g?g:J;u.scheduleMicroTask("Promise.then",()=>{try{const D=l[R],O=!!s&&_===s[_];O&&(s[K]=D,s[x]=b);const S=u.run(y,void 0,O&&y!==J&&y!==H?[]:[D]);z(s,!0,S)}catch(D){z(s,!1,D)}},s)}const M=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let y of u)f++,s.push(e.resolve(y))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const b=[];return new e((y,D)=>{for(let O=0;O<s.length;O++)s[O].then(S=>{g||(g=!0,y(S))},S=>{b.push(S),f--,0===f&&(g=!0,D(new T(b,"All promises were rejected")))})})}static race(u){let s,f,g=new this((D,O)=>{s=D,f=O});function b(D){s(D)}function y(D){f(D)}for(let D of u)B(D)||(D=this.resolve(D)),D.then(b,y);return g}static all(u){return e.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof e?this:e).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,b=new this((S,V)=>{f=S,g=V}),y=2,D=0;const O=[];for(let S of u){B(S)||(S=this.resolve(S));const V=D;try{S.then(F=>{O[V]=s?s.thenCallback(F):F,y--,0===y&&f(O)},F=>{s?(O[V]=s.errorCallback(F),y--,0===y&&f(O)):g(F)})}catch(F){g(F)}y++,D++}return y-=2,0===y&&f(O),b}constructor(u){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=w();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(u,s){var f;let g=null===(f=this.constructor)||void 0===f?void 0:f[Symbol.species];(!g||"function"!=typeof g)&&(g=this.constructor||e);const b=new g(M),y=n.current;return this[q]==A?this[R].push(y,b,u,s):ee(this,y,b,u,s),b}catch(u){return this.then(null,u)}finally(u){var s;let f=null===(s=this.constructor)||void 0===s?void 0:s[Symbol.species];(!f||"function"!=typeof f)&&(f=e);const g=new f(M);g[_]=_;const b=n.current;return this[q]==A?this[R].push(b,g,u,u):ee(this,b,g,u,u),g}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=p("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,b){return new e((D,O)=>{f.call(this,D,O)}).then(g,b)},l[k]=!0}return i.patchThen=C,r&&(C(r),le(t,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=t[o];if(m)return n.call(m)}if(this===Error){const m=t[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const p=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":p.call(this)}});let ye=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){ye=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{ye=!1}const ht={useG:!0},te={},Ye={},$e=new RegExp("^"+ke+"(\\w+)(true|false)$"),Ke=j("propagationStopped");function Je(t,n){const i=(n?n(t):t)+ae,o=(n?n(t):t)+ce,c=ke+i,a=ke+o;te[t]={},te[t][ae]=c,te[t][ce]=a}function dt(t,n,i,o){const c=o&&o.add||Oe,a=o&&o.rm||Se,p=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",P=j(c),v="."+c+":",m="prependListener",L="."+m+":",Z=function(R,_,K){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[K])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,K.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,K){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[te[_.type][K?ce:ae]];if(X){const A=[];if(1===X.length){const E=Z(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G<E.length&&(!_||!0!==_[Ke]);G++){const h=Z(E[G],x,_);h&&A.push(h)}}if(1===A.length)throw A[0];for(let E=0;E<A.length;E++){const G=A[E];n.nativeScheduleMicroTask(()=>{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function J(R,_){if(!R)return!1;let K=!0;_&&void 0!==_.useG&&(K=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=de(E);if(!E&&R[c]&&(E=R),!E||E[P])return!1;const G=_&&_.eventNameToString,h={},I=E[P]=E[c],w=E[j(a)]=E[a],Q=E[j(p)]=E[p],oe=E[j(d)]=E[d];let z;function U(s,f){return!ye&&"object"==typeof s&&s?!!s.capture:ye&&f?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?Object.assign(Object.assign({},s),{passive:!0}):s:{passive:!0}:s}_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const e=K?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=K?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ce:ae]);const b=g&&s.target[g];if(b)for(let y=0;y<b.length;y++)if(b[y]===s){b.splice(y,1),s.isRemoved=!0,0===b.length&&(s.allRemoved=!0,s.target[g]=null);break}}if(s.allRemoved)return w.call(s.target,s.eventName,s.capture?H:B,s.options)}:function(s){return w.call(s.target,s.eventName,s.invoke,s.options)},C=_&&_.diff?_.diff:function(s,f){const g=typeof f;return"function"===g&&s.callback===f||"object"===g&&s.originalDelegate===f},$=Zone[j("UNPATCHED_EVENTS")],l=t[j("PASSIVE_EVENTS")],u=function(s,f,g,b,y=!1,D=!1){return function(){const O=this||t;let S=arguments[0];_&&_.transferEventName&&(S=_.transferEventName(S));let V=arguments[1];if(!V)return s.apply(this,arguments);if(we&&"uncaughtException"===S)return s.apply(this,arguments);let F=!1;if("function"!=typeof V){if(!V.handleEvent)return s.apply(this,arguments);F=!0}if(x&&!x(s,V,O,arguments))return;const fe=ye&&!!l&&-1!==l.indexOf(S),se=U(arguments[2],fe);if($)for(let _e=0;_e<$.length;_e++)if(S===$[_e])return fe?s.call(O,S,V,se):s.apply(this,arguments);const xe=!!se&&("boolean"==typeof se||se.capture),nt=!(!se||"object"!=typeof se)&&se.once,gt=Zone.current;let Ge=te[S];Ge||(Je(S,G),Ge=te[S]);const rt=Ge[xe?ce:ae];let De,me=O[rt],ot=!1;if(me){if(ot=!0,X)for(let _e=0;_e<me.length;_e++)if(C(me[_e],V))return}else me=O[rt]=[];const st=O.constructor.name,it=Ye[st];it&&(De=it[S]),De||(De=st+f+(G?G(S):S)),h.options=se,nt&&(h.options.once=!1),h.target=O,h.capture=xe,h.eventName=S,h.isExisting=ot;const be=K?ht:void 0;be&&(be.taskData=h);const he=gt.scheduleEventTask(De,V,be,g,b);return h.target=null,be&&(be.taskData=null),nt&&(se.once=!0),!ye&&"boolean"==typeof he.options||(he.options=se),he.target=O,he.capture=xe,he.eventName=S,F&&(he.originalDelegate=V),D?me.unshift(he):me.push(he),y?O:void 0}};return E[c]=u(I,v,e,r,A),z&&(E[m]=u(z,L,function(s){return z.call(h.target,h.eventName,s.invoke,h.options)},r,A,!0)),E[a]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=arguments[2],b=!!g&&("boolean"==typeof g||g.capture),y=arguments[1];if(!y)return w.apply(this,arguments);if(x&&!x(w,y,s,arguments))return;const D=te[f];let O;D&&(O=D[b?ce:ae]);const S=O&&s[O];if(S)for(let V=0;V<S.length;V++){const F=S[V];if(C(F,y))return S.splice(V,1),F.isRemoved=!0,0===S.length&&(F.allRemoved=!0,s[O]=null,"string"==typeof f)&&(s[ke+"ON_PROPERTY"+f]=null),F.zone.cancelTask(F),A?s:void 0}return w.apply(this,arguments)},E[p]=function(){const s=this||t;let f=arguments[0];_&&_.transferEventName&&(f=_.transferEventName(f));const g=[],b=Qe(s,G?G(f):f);for(let y=0;y<b.length;y++){const D=b[y];g.push(D.originalDelegate?D.originalDelegate:D.callback)}return g},E[d]=function(){const s=this||t;let f=arguments[0];if(f){_&&_.transferEventName&&(f=_.transferEventName(f));const g=te[f];if(g){const D=s[g[ae]],O=s[g[ce]];if(D){const S=D.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}if(O){const S=O.slice();for(let V=0;V<S.length;V++){const F=S[V];this[a].call(this,f,F.originalDelegate?F.originalDelegate:F.callback,F.options)}}}}else{const g=Object.keys(s);for(let b=0;b<g.length;b++){const D=$e.exec(g[b]);let O=D&&D[1];O&&"removeListener"!==O&&this[d].call(this,O)}this[d].call(this,"removeListener")}if(A)return this},ue(E[c],I),ue(E[a],w),oe&&ue(E[d],oe),Q&&ue(E[p],Q),!0}let q=[];for(let R=0;R<i.length;R++)q[R]=J(i[R],o);return q}function Qe(t,n){if(!n){const a=[];for(let p in t){const d=$e.exec(p);let P=d&&d[1];if(P&&(!n||P===n)){const v=t[p];if(v)for(let m=0;m<v.length;m++)a.push(v[m])}}return a}let i=te[n];i||(Je(n),i=te[n]);const o=t[i[ae]],c=t[i[ce]];return o?c?o.concat(c):o.slice():c?c.slice():[]}function _t(t,n){const i=t.Event;i&&i.prototype&&n.patchMethod(i.prototype,"stopImmediatePropagation",o=>function(c,a){c[Ke]=!0,o&&o.apply(c,a)})}function Et(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const p=n[a]=n[o];n[o]=function(d,P,v){return P&&P.prototype&&c.forEach(function(m){const L=`${i}.${o}::`+m,Z=P.prototype;try{if(Z.hasOwnProperty(m)){const N=t.ObjectGetOwnPropertyDescriptor(Z,m);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,L),t._redefineProperty(P.prototype,m,N)):Z[m]&&(Z[m]=t.wrapWithCurrentZone(Z[m],L))}else Z[m]&&(Z[m]=t.wrapWithCurrentZone(Z[m],L))}catch{}}),p.call(n,d,P,v)},t.attachOriginToPatched(n[o],p)}function et(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function tt(t,n,i,o){t&&Xe(t,et(t,n,i),o)}function He(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=He(t);i.patchOnProperties=Xe,i.patchMethod=le,i.bindArguments=Le,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=Ee,i.ObjectGetOwnPropertyDescriptor=ie,i.ObjectCreate=ge,i.ArraySlice=Ve,i.patchClass=ve,i.wrapWithCurrentZone=Ie,i.filterProperties=et,i.attachOriginToPatched=ue,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:Ye,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Ue,isNode:we,TRUE_STR:ce,FALSE_STR:ae,ZONE_SYMBOL_PREFIX:ke,ADD_EVENT_LISTENER_STR:Oe,REMOVE_EVENT_LISTENER_STR:Se})});const Ce=j("zoneTask");function pe(t,n,i,o){let c=null,a=null;i+=o;const p={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(t,m.args),v}function P(v){return a.call(t,v.data.handleId)}c=le(t,n+=o,v=>function(m,L){if("function"==typeof L[0]){const Z={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?L[1]||0:void 0,args:L},N=L[0];L[0]=function(){try{return N.apply(this,arguments)}finally{Z.isPeriodic||("number"==typeof Z.handleId?delete p[Z.handleId]:Z.handleId&&(Z.handleId[Ce]=null))}};const B=Me(n,L[0],Z,d,P);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?p[H]=B:H&&(H[Ce]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,L)}),a=le(t,i,v=>function(m,L){const Z=L[0];let N;"number"==typeof Z?N=p[Z]:(N=Z&&Z[Ce],N||(N=Z)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof Z?delete p[Z]:Z&&(Z[Ce]=null),N.zone.cancelTask(N)):v.apply(t,L)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{i.patchMethod(t,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",t=>{const n="set",i="clear";pe(t,n,i,"Timeout"),pe(t,n,i,"Interval"),pe(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{pe(t,"request","cancel","AnimationFrame"),pe(t,"mozRequest","mozCancel","AnimationFrame"),pe(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;o<i.length;o++)le(t,i[o],(a,p,d)=>function(P,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function mt(t,n){n.patchEventPrototype(t,n)})(t,i),function pt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:p}=n.getGlobalObjects();for(let P=0;P<i.length;P++){const v=i[P],Z=p+(v+a),N=p+(v+c);o[v]={},o[v][a]=Z,o[v][c]=N}const d=t.EventTarget;d&&d.prototype&&n.patchEventTarget(t,n,[d&&d.prototype])}(t,i);const o=t.XMLHttpRequestEventTarget;o&&o.prototype&&i.patchEventTarget(t,i,[o.prototype])}),Zone.__load_patch("MutationObserver",(t,n,i)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ve("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ve("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function Tt(t,n){if(we&&!Ue||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const t=Te.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];tt(c,He(c),i&&i.concat(a),de(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c<o.length;c++){const a=n[o[c]];a&&a.prototype&&tt(a.prototype,He(a.prototype),i)}}(i,t)}),Zone.__load_patch("customElements",(t,n,i)=>{!function yt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function P(v){const m=v.XMLHttpRequest;if(!m)return;const L=m.prototype;let N=L[Ze],B=L[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Ze],B=I[Ne]}}const H="readystatechange",J="scheduled";function q(h){const I=h.data,w=I.target;w[a]=!1,w[d]=!1;const Q=w[c];N||(N=w[Ze],B=w[Ne]),Q&&B.call(w,H,Q);const oe=w[c]=()=>{if(w.readyState===w.DONE)if(!I.aborted&&w[a]&&h.state===J){const U=w[n.__symbol__("loadfalse")];if(0!==w.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=w[n.__symbol__("loadfalse")];for(let W=0;W<ee.length;W++)ee[W]===h&&ee.splice(W,1);!I.aborted&&h.state===J&&re.call(h)},U.push(h)}else h.invoke()}else!I.aborted&&!1===w[a]&&(w[d]=!0)};return N.call(w,H,oe),w[i]||(w[i]=h),E.apply(w,I.args),w[a]=!0,h}function R(){}function _(h){const I=h.data;return I.aborted=!0,G.apply(I.target,I.args)}const K=le(L,"open",()=>function(h,I){return h[o]=0==I[2],h[p]=I[1],K.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=le(L,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const w={target:h,url:h[p],isPeriodic:!1,args:I,aborted:!1},Q=Me("XMLHttpRequest.send",R,w,q,_);h&&!0===h[d]&&!w.aborted&&Q.state===J&&Q.invoke()}}),G=le(L,"abort",()=>function(h,I){const w=function Z(h){return h[i]}(h);if(w&&"string"==typeof w.type){if(null==w.cancelFn||w.data&&w.data.aborted)return;w.zone.cancelTask(w)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),p=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function at(t,n){const i=t.constructor.name;for(let o=0;o<n.length;o++){const c=n[o],a=t[c];if(a){if(!Fe(ie(t,c)))continue;t[c]=(d=>{const P=function(){return d.apply(this,Le(arguments,i+"."+c))};return ue(P,d),P})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Qe(t,o).forEach(p=>{const d=t.PromiseRejectionEvent;if(d){const P=new d(o,{promise:c.promise,reason:c.rejection});p.invoke(P)}})}}t.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))})},7435:(ie,Ee,de)=>{de(7277)}},ie=>{ie(ie.s=7435)}]);
var app=angular.module("app",["angular.css.injector","ui.router","angulartics","angulartics.piwik","angulartics.google.analytics","ngSanitize","ui.bootstrap","angular-loading-bar","vjs.video","angularLazyImg","ct.ui.router.extras","angular.bind.notifier","ngFileUpload","mm.iban","ngTagsInput","angular-inview","dx"]);function spliceIntoChunks(e,t){for(var a=[];e.length>0;){var n=e.splice(0,t);a.push(n)}return a}function getDocHeight(e){var t=(e=e||document).body,a=e.documentElement;return Math.max(t.scrollHeight,t.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)}function MetaArticleDirective(e){return{restrict:"E",link:function(a,n,l){var h=new MetaArticleInfo(a.$eval(l.metaElement));e.generalPush(h),n.remove()}}}function MetaEventDirective(e){return{restrict:"E",link:function(a,n,l){var h=new MetaEventInfo(a.$eval(l.metaElement));e.generalPush(h),n.remove()}}}function MetaSnipDirective(e){return{restrict:"E",link:function(a,n,l){var h=new MetaSnipInfo(a.$eval(l.metaElement));e.generalPush(h),n.remove()}}}function MetaSponsoredArticleDirective(e){return{restrict:"E",link:function(a,n,l){var h=new MetaSponsoredArticleInfo(a.$eval(l.metaElement));e.generalPush(h),n.remove()}}}function MetaStaticArticleDirective(e){return{restrict:"E",link:function(a,n,l){var h=new MetaStaticArticleInfo(a.$eval(l.metaElement));e.generalPush(h),n.remove()}}}function ScopeSettings(e){var t=this;this.network=e.network,this.chapters=e.chapters||[],this.chapterGroups=e.chapterGroups||[],this.globalSettings=e.globalSettings,this.staticArticles=e.staticArticles||[],this.network.chaptersDictionary={},this.network.chapters=[],this.network.chaptersSlugs.forEach(function(n){var l=t.chapters.filter(function(c){return c.slug===n})[0];l&&(t.network.chapters.push(l),t.network.chaptersDictionary[n]=l)}),function(){var n={};t.chapters.forEach(function(r){n[r.slug]=r});var l={};t.chapters.forEach(function(r){2===r.managementState&&(l[r.slug]=r)});var c={};t.chapterGroups.forEach(function(r){c[r.slug]||(c[r.slug]=[]),c[r.slug].push(r)});var h={};t.staticArticles.forEach(function(r){var i=r.path;h[i]||(h[i]=[]),h[i].push(r)}),t.chapters.forEach(function(r){0!==r.managementState&&(r.managingParent=n[r.managingParentSlug],2!==r.managementState&&(r.settings=l[r.managingParentSlug]),c[r.managingParentSlug]&&(r.chapterGroups=c[r.managingParentSlug].slice(0)),r.chapterGroups&&r.chapterGroups.forEach(function(i,m){i.chapters.forEach(function(d){d.slug===r.slug&&r.chapterGroups.splice(m,1)})}),r.scopeStaticArticlesDictionary={},r.staticArticles.forEach(function(i){var m=h[i.path];if(m){var d=m.filter(function(o){return o.chapterId===r.id});r.scopeStaticArticlesDictionary[i.path]=d[0]}}))}),t.network.chapters=[],t.network.chaptersSlugs.forEach(function(r){var i=t.getChapter(r);i&&t.network.chapters.push(i)}),t.network.staticArticles.forEach(function(r){t.network.chapters.forEach(function(i){2===i.managementState&&(i.scopeStaticArticlesDictionary[r.path]=r)})})}()}function MetaInformationBase(e){this.title=e.title,this.description=e.description||e.title,this.author=e.author,this.date=e.date,this.imageUrl=e.imageUrl||scope.globalSettings.serverCdnUrl+"/Content/images/logo-big.png",this.twitterSite=e.twitterSite,this.facebookSite=e.facebookSite,this.path=e.path,this.type=e.type||"website",this.removeAttributes=e.removeAttributes,this.canonicalLink=e.canonicalLink}function MetaArticleInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.summary,author:e.user,date:e.published,imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path,type:"article",canonicalLink:e.canonicalLink})}function MetaSnipInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.text,author:e.user,date:e.published,path:e.path,removeAttributes:["author","article:publisher","article:published_time","article:section"]})}function MetaSponsoredArticleInfo(e){MetaInformationBase.call(this,{title:e.text,description:e.summary,author:e.user,date:e.published,type:"article",imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path,canonicalLink:e.canonicalLink})}function MetaStaticArticleInfo(e){MetaInformationBase.call(this,{title:e.title,description:e.summary,date:e.published,type:"article",imageUrl:e.coverAssetReference.assetImage.assetImageUrl+"?preset=cover&cache="+e.coverAssetReference.assetImage.cache,path:e.path})}function MetaEventInfo(e){MetaInformationBase.call(this,{title:e.summary,date:e.start,imageUrl:e.coverImage.assetImageUrl+"?preset=cover&cache=0",path:"/"+scope.currentScope.chapter.regEx+e.coverImage.sourceArticlePath,type:"event",removeAttributes:["author","description"]})}function exponentialBackoff(e,t,a,n){self.isDebugging&&console.log("max",t,"next delay",a);var l=!1;try{e()&&(l=!0)}catch{l=!1}l?(self.isDebugging&&console.log("Stroer ads bound to page"),n(l)):t>0?(setTimeout(function(){exponentialBackoff(e,--t,2*a,n)},a),self.isDebugging&&console.log("Exp backoff try remaining: "+t)):self.isDebugging&&console.log("we give up")}function MessageHolder(e){this.id=e.id}app.run([function(){var e=navigator.userAgent||navigator.vendor||window.opera;-1===e.indexOf("FBAN")&&-1===e.indexOf("FBAV")&&viewportUnitsBuggyfill.init()}]),app.run(["$http","$rootScope","$window","localStorageService","$urlMatcherFactory",function(e,t,a,n,l){e.defaults.withCredentials=!0,l.caseInsensitive(!0);var c=a.scope;t.scope=a.scope;var h={chapterSlug:c.currentScope.chapter?c.currentScope.chapter.slug:null,networkSlug:c.currentScope.network.slug,threshold:c.globalSettings.oculusImpressionThreshold,trackArticleWordReading:c.globalSettings.oculusTrackArticleWordReading,idleTimeout:c.globalSettings.oculusIdleTimeout,impressionThreshold:c.globalSettings.oculusImpressionThreshold,impressionViewportThreshold:c.globalSettings.oculusImpressionViewportThreshold,shipmentImpressionThreshold:c.globalSettings.oculusShipmentImpressionThreshold,shipmentImpressionViewportThreshold:c.globalSettings.oculusShipmentImpressionViewportThreshold,readingSpeed:c.globalSettings.oculusReadingSpeed,readingThreshold:c.globalSettings.oculusReadingThreshold,readingViewportThreshold:c.globalSettings.oculusReadingViewportThreshold,trackArticleScrolling:c.globalSettings.oculusTrackArticleScrolling,locationRequestEnable:c.currentScope.network.settings.oculusLocationRequestEnable,locationRequestSuccessThrottleDays:c.globalSettings.oculusLocationRequestSuccessThrottleDays,locationRequestFailedThrottleDays:c.globalSettings.oculusLocationRequestFailedThrottleDays};c.oculus=h,n.enableOculusFeedback&&(h.feedback=!0),a.Oculus=new Oculus(h)}]),app.run(["$state","$rootScope","$previousState","$window","localStorageService","profileService","$analytics","$uibModal","$timeout","notificationService","$interval","$location","scopeService","clickService",function(e,t,a,n,l,c,h,r,i,m,d,o,s,p){t.$state=e,t.app=navigator.userAgent&&-1!==navigator.userAgent.indexOf("Merkurist_IAB"),t.app&&(t.appVersion=navigator.userAgent.replace(/.*\[Merkurist_IAB\/(.*)\]/gi,function(g,x){return x}),t.appPlatform=-1!==navigator.userAgent.indexOf("Android")?"Android":"iOS"),t.navigateUp=function(){i(function(){e.params.back&&!e.params.back.abstract?e.go(e.params.back,e.params.backParams):e.go("app.root")})},t.openChapterSwitch=function(){var g=r.open({templateUrl:"/ClientApp/src/legacy-app/index/chapterSwitchDialog.html",controller:"ChapterSwitchDialog",size:"lg",resolve:{}});h.eventTrack("ShowChapterSwitchDialog",{category:"Navigation",label:scope.currentChapter.slug}),g.result.then(function(x){t.switchChapter(x)})},t.switchChapter=function(g){var x=null;scope.chapters.some(function(F){return F.slug===g&&(x=F,!0)}),x&&c.updateFavoriteChapter(x.slug).then(function(){var F=x.path;scope.currentScope.networkPath.length>1&&(F=scope.currentScope.networkPath+x.path),window.location.href=F})},t.notification=m;var u=function(g){c.getProfile().then(function(x){x.isRegistered?m.update(g):m.updateUnseenCount()})};if(t.$on("authenticationStateChanged",function(){u(!0)}),!t.app){var b=document.hasFocus();$(window).on("focus",function(){b=!0,u()}).on("blur",function(){b=!1}),d(function(){b&&u()},2e4)}if(t.app){var y=function(){FCMPlugin.getToken(function(g){g?m.updateToken({token:g}):i(function(){FCMPlugin.getToken(function(x){x&&m.updateToken({token:x})},function(){})},1e4)},function(){i(function(){FCMPlugin.getToken(function(g){g&&m.updateToken({token:g})},function(){})},1e4)})};t.$on("authenticationStateChanged",function(){y()});var f="app.root",R="",S=0,v="",w={initialize:function(){this.bindEvents()},bindEvents:function(){document.addEventListener("deviceready",this.onDeviceReady,!1),document.addEventListener("offline",this.onOffline,!1)},didLaunchAppFromLink:function(g){-1==g.url.indexOf("/document/")&&-1==g.url.indexOf("/pdf/")&&-1==g.url.indexOf("/file/")&&(window.location.href=g.url)},onOffline:function(){f=e.current.name,v=window.location.href,S=setTimeout(function(){S=0,R="offline",e.go("app.offline")},5e3)},onOnline:function(){S>0?(clearTimeout(S),v="",S=0):"offline"===R&&("app.root"!==f&&(window.location.href=v),e.go(f),v=R="")},onBackKeyDown:function(){console.log("backKey",history.length,history),history.back()},statusBarDarkMode:function(){var g=window.matchMedia("(prefers-color-scheme:dark)");"android"==cordova.platformId?g.matches?(StatusBar.styleLightContent(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1Dark"),StatusBar.backgroundColorByHexString(backcolor)):(StatusBar.styleDefault(),backcolor=getComputedStyle(document.body).getPropertyValue("--color1"),StatusBar.backgroundColorByHexString(backcolor)):g.matches?(StatusBar.styleLightContent(),StatusBar.backgroundColorByHexString("#000")):(StatusBar.styleDefault(),StatusBar.backgroundColorByHexString("#fff"))},checkNotificationPermission:function(g){FirebasePlugin=window.FCMPlugin,FirebasePlugin.hasPermission(function(x){x?(console.log("Remote notifications permission granted"),y()):g?console.log("Notifications won't be shown as permission is denied"):(console.log("Requesting remote notifications permission"),FirebasePlugin.grantPermission(y()))})},onDeviceReady:function(){document.addEventListener("online",w.onOnline,!1),document.addEventListener("backbutton",w.onBackKeyDown,!1),navigator&&navigator.splashscreen&&navigator.splashscreen.hide(),universalLinks.subscribe("launchedAppFromLink",w.didLaunchAppFromLink),c.getProfile().then(function(){u()});var g=new Date,x=new Date;document.addEventListener("resume",function(){setTimeout(function(){currentDate=new Date,Math.round((currentDate-g)/864e5)>1&&(window.location.href="/"),Math.round((currentDate-x)/6e4)>30&&(t.$emit("invalidateLists"),x=new Date)},0)},!1),window.matchMedia&&(w.statusBarDarkMode(),window.matchMedia("(prefers-color-scheme: dark)").addListener(function(I){w.statusBarDarkMode()})),console.log("Platform and Version",t.appPlatform,t.appVersion),"Android"===t.appPlatform&&t.appVersion>6?w.checkNotificationPermission():y(),FCMPlugin.onNotification(function(I){console.log("FcmOnNotification",I),I.wasTapped?I.untrackedUri?t.$state.go("app.untrackedNotification",{untrackedUri:I.untrackedUri}):t.$state.go("clickNotification",{id:I.notificationId}):u()},function(){u()});var F=0,D=!1;document.body.ontouchstart=function(I){window.visualViewport.pageTop>10?D=!1:(D=!0,F=I.targetTouches[0].pageY)},document.body.ontouchend=function(I){!D||window.visualViewport.pageTop>10||I.changedTouches[0].pageY-F>150&&setTimeout(function(){console.log("pulled to refresh! Reloading..."),e.includes("app.root")&&location.reload()},500)}}};w.initialize()}else c.getProfile().then(function(){i(function(){u()},2e3)})}]),app.run(["stroerService",function(e){}]),app.config(["lazyImgConfigProvider",function(e){e.setOptions({offset:1334})}]),app.config(["$urlRouterProvider","$stateProvider","$locationProvider","$compileProvider","$qProvider",function(e,t,a,n,l){a.html5Mode({enabled:!0,requireBase:!1}),n.debugInfoEnabled(!1),l.errorOnUnhandledRejections(!1),n.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|tel|webcal|local|file|data|blob|whatsapp):/);var c=["$stateParams","sponsoredArticleService","parserService","$location",function(o,s,p,u){var b=o.id;return b||u.path("/").replace(),s.getSponsoredArticle(b).then(function(y){return p.postProcessHtml(y),y},function(){console.log("Error on the SponsoredDetail")})}];t.state("app.imprint",{url:"imprint",templateUrl:"/ClientApp/src/legacy-app/content/imprint.html"}).state("app.privacyPolicy",{url:"pp",controller:"DataPrivacyPolicyController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy.html"}).state("app.privacyPolicy-merkurist-gmbh",{url:"pp-merkurist-gmbh",controller:"DataPrivacyPolicyController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-merkurist-gmbh.html"}).state("app.accessibility",{url:"accessibility",controller:"AccessibilityController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/accessibility.html"}).state("app.tos",{url:"tos",controller:"TermsOfUseController",templateUrl:"/ClientApp/src/legacy-app/termsOfUse/termsOfUse.html"}).state("app.optOut",{url:"optout",controller:"OptOutController",templateUrl:"/ClientApp/src/legacy-app/optOut/optOut.html"}),scope.currentChapter.name?(t.state("app",{url:"/",sticky:!0,abstract:!0,controller:"RootController",templateUrl:"/ClientApp/src/legacy-app/root/root.html"}).state("app.root",{url:"",translatable:!0}).state("app.root.snips",{url:"snips",translatable:!0}).state("app.root.login",{url:"login?closedToken"}).state("app.root.notifications",{url:"notifications"}).state("app.root.menu",{url:"menu"}).state("app.articleStatistic",{url:"{slug}_{id}/legacy-report",controller:"ArticleReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleReport.html",resolve:{chapterReport:["$stateParams","articleService","$location",function(o,s,p){return s.getReport(o.id).then(function(u){return u},function(){p.path("/")})}],article:["$stateParams","articleService","parserService",function(o,s,p){return s.getArticleFromCache(o.id).then(function(u){return s.getArticleDetails(o.id).then(function(){}),u},function(){return s.getArticleDetails(o.id).then(function(u){return u})})}]}}).state("app.articleElasticStatistic",{url:"{slug}_{id}/report",controller:"ArticleElasticReportController",templateUrl:"/ClientApp/src/legacy-app/article/articleElasticReport.html",resolve:{chapterReport:["$stateParams","articleService","$location",function(o,s,p){return s.getElasticReport(o.id).then(function(u){return u},function(){p.path("/")})}],article:["$stateParams","articleService","parserService",function(o,s,p){return s.getArticleFromCache(o.id).then(function(u){return s.getArticleDetails(o.id).then(function(){}),u},function(){return s.getArticleDetails(o.id).then(function(u){return u})})}]}}).state("app.snipStatistic",{url:"snips/{slug}_{id}/legacy-report",controller:"SnipReportController",templateUrl:"/ClientApp/src/legacy-app/snip/snipReport.html",resolve:{chapterReport:["$stateParams","snipService","parserService",function(o,s){return s.getReport(o.id)}],snip:["$stateParams","snipService","parserService",function(o,s,p){return s.getSnipDetails(o.id).then(function(u){return u})}]}}).state("app.snipElasticStatistic",{url:"snips/{slug}_{id}/report",controller:"SnipElasticReportController",templateUrl:"/ClientApp/src/legacy-app/snip/snipElasticReport.html"}).state("app.snipDetail",{url:"snips/{slug}_{id}",controller:"SnipDetailController",templateUrl:"/ClientApp/src/legacy-app/snip/snipDetail.html",resolve:{snip:["$stateParams","snipService","profileService","parserService","$location",function(o,s,p,u,b){var y=o.id;return y||b.path("/").replace(),p.getProfile().then(function(){return s.getSnipDetailsFromCache(y).then(function(f){return s.getSnipDetails(y).then(function(){}),f},function(){return s.getSnipDetails(y).then(function(f){return f},function(){b.path("/").replace()})})})}]},translatable:!0}).state("app.articleDetail",{url:"{slug}_{id}",controller:"ArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/article/articleDetail.html",resolve:{article:["$stateParams","articleService","profileService","parserService","$location",function(o,s,p,u,b){var y=o.id;return y||b.path("/").replace(),p.getProfile().then(function(){return s.getArticleFromCache(y).then(function(f){return f.detailsLoaded=!1,s.getArticleDetails(y).then(function(){u.postProcessHtml(f)}),f},function(){return s.getArticleDetails(y).then(function(f){return u.postProcessHtml(f),f},function(){b.path("/").replace()})})})}]},translatable:!0}).state("app.sponsoredArticleDetail",{url:"sparticles/{slug}_{id}",controller:"SponsoredArticleDetailController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleDetail.html",resolve:{sponsoredArticle:c}}).state("app.sponsoredArticleEdit",{disableNavigation:!0,url:"sparticles/{slug}_{id}/edit",controller:"SponsoredArticleEditController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleEdit.html"}).state("app.articleEdit",{disableNavigation:!0,url:"{slug}_{id}/edit",controller:"ArticleEditController",templateUrl:"/ClientApp/src/legacy-app/article/articleEdit.html"}).state("app.adminsettings",{url:"adminsettings",controller:"AdminSettingsController",templateUrl:"/ClientApp/src/legacy-app/admin/adminSettings.html"}).state("app.notificationsettings",{url:"notifications/settings/{privateUserGuid}?optOutAll",controller:"NotificationSettingsController",templateUrl:"/ClientApp/src/legacy-app/notification/notificationSettings.html"}).state("app.my-profile",{url:"profile",controller:"ProfileController",templateUrl:"/ClientApp/src/legacy-app/user/profile.html"}).state("app.public-profile",{url:"profile/{id}",controller:"PublicProfileController",templateUrl:"/ClientApp/src/legacy-app/user/publicProfile.html"}).state("app.loginSaml2",{url:"login/saml2",controller:"LoginSaml2Controller",templateUrl:"/ClientApp/src/legacy-app/authentication/loginSaml2.html"}).state("app.register",{url:"register?closedToken",controller:"RegisterController",templateUrl:"/ClientApp/src/legacy-app/authentication/register.html",resolve:{registerForNewsletter:function(){return!1}}}).state("app.registerNewsletter",{url:"newsletter-subscribe",controller:"RegisterController",templateUrl:"/ClientApp/src/legacy-app/authentication/register.html",resolve:{registerForNewsletter:function(){return!0}}}).state("app.registrationcomplete",{url:"account/registration-complete",templateUrl:"/ClientApp/src/legacy-app/content/registrationcomplete.html"}).state("app.requestPassword",{url:"account/request-password",controller:"RequestPasswordController",templateUrl:"/ClientApp/src/legacy-app/authentication/requestPassword.html"}).state("app.passwordResetComplete",{url:"account/password-resetted",templateUrl:"/ClientApp/src/legacy-app/content/passwordresetcomplete.html"}).state("app.requestPasswordComplete",{url:"account/password-requested",templateUrl:"/ClientApp/src/legacy-app/content/requestpasswordcomplete.html"}).state("app.unsubscribeNewsletter",{url:"account/newsletter-unsubscribe/{id}",controller:"UnsubscribeController",templateUrl:"/ClientApp/src/legacy-app/user/unsubscribe.html"}).state("app.accountsettings",{url:"settings",controller:"AuthenticationSettingsController",templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationSettings.html"}).state("app.special",{url:"specials/{id}",controller:"SpecialDetailController",templateUrl:"/ClientApp/src/legacy-app/special/specialDetail.html",resolve:{special:["$stateParams","specialService",function(o,s){return s.getSpecial(o.id)}]}}).state("app.specialStatistics",{url:"campaigns/specials/{id}/legacy-report",controller:"SpecialReportController",templateUrl:"/ClientApp/src/legacy-app/special/specialReport.html"}).state("app.surveyDetails",{url:"surveys/{id}?preview",controller:"SurveyDetailController",templateUrl:"/ClientApp/src/legacy-app/survey/surveyDetail.html"}).state("app.workflow",{url:"workflow/{id}?preview",controller:"workflowController",templateUrl:"/ClientApp/src/legacy-app/workflow/workflowTemplate.html"}).state("app.videoplay",{url:scope.currentScope.prefixAppRoutes+"apicodo-video/{id}",controller:"apicodoMediaPlayPageController",templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayPage.html"}).state("app.specialElasticStatistic",{url:"campaigns/specials/{id}/report",controller:"SpecialElasticReportController",templateUrl:"/ClientApp/src/legacy-app/special/specialElasticReport.html"}).state("app.search",{url:"search?q&chapterIds",controller:"SearchController",templateUrl:"/ClientApp/src/legacy-app/search/search.html",reloadOnSearch:!1}).state("app.campaignStatistic",{url:"campaigns/{pin}/report",controller:"CampaignReportController",templateUrl:"/ClientApp/src/legacy-app/campaign/campaignReport.html"}).state("app.campaignDetail",{url:"campaigns/{pin}",controller:"AdvertisementController",templateUrl:"/ClientApp/src/legacy-app/campaign/shipments.html"}).state("app.authorDashboard",{url:"dashboard",controller:"DashboardController",templateUrl:"/ClientApp/src/legacy-app/author/dashboard.html"}).state("app.snipApply",{url:"snips/{slug}_{id}/apply",controller:"SnipApplyController",templateUrl:"/ClientApp/src/legacy-app/snip/snipApply.html"}).state("app.marketResearchStatistic",{url:"campaigns/marketresearch/{id}/legacy-report",controller:"MarketResearchReportController",templateUrl:"/ClientApp/src/legacy-app/marketResearch/MarketResearchReport.html"}).state("app.marketResearchElasticStatistic",{url:"campaigns/marketresearch/{id}/report",controller:"MarketResearchElasticReportController",templateUrl:"/ClientApp/src/legacy-app/marketResearch/MarketResearchElasticReport.html"}).state("app.brochureStatistic",{url:"campaigns/brochures/{id}/legacy-report",controller:"BrochureReportController",templateUrl:"/ClientApp/src/legacy-app/brochure/BrochureReport.html"}).state("app.brochureElasticStatistic",{url:"campaigns/brochures/{id}/report",controller:"BrochureElasticReportController",templateUrl:"/ClientApp/src/legacy-app/brochure/BrochureElasticReport.html"}).state("app.bannerCampaignStatistic",{url:"campaigns/banners/{pin}/legacy-report",controller:"bannerCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/bannerCampaign/bannerCampaignReport.html"}).state("app.bannerCampaignElasticStatistic",{url:"campaigns/banners/{pin}/report",controller:"BannerCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/bannerCampaign/bannerCampaignElasticReport.html"}).state("app.sponsoredArticleCampaignStatistic",{url:"campaigns/sparticles/{pin}/legacy-report",controller:"sponsoredArticleCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticleCampaign/sponsoredArticleCampaignReport.html"}).state("app.sponsoredArticleCampaignElasticStatistic",{url:"campaigns/sparticles/{pin}/report",controller:"SponsoredArticleCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticleCampaign/sponsoredArticleCampaignElasticReport.html"}).state("app.premiumStatistic",{url:"campaigns/premiums/{pin}/legacy-report",controller:"premiumReportController",templateUrl:"/ClientApp/src/legacy-app/premium/premiumReport.html"}).state("app.premiumElasticStatistic",{url:"campaigns/premiums/{pin}/report",controller:"PremiumElasticReportController",templateUrl:"/ClientApp/src/legacy-app/premium/premiumElasticReport.html"}).state("app.superStatistic",{url:"campaigns/super/{pin}/legacy-report",controller:"superCampaignReportController",templateUrl:"/ClientApp/src/legacy-app/superCampaign/superCampaignReport.html"}).state("app.superElasticStatistic",{url:"campaigns/super/{pin}/report",controller:"SuperCampaignElasticReportController",templateUrl:"/ClientApp/src/legacy-app/superCampaign/superCampaignElasticReport.html"}).state("app.staticArticleEditAdmin",{url:"staticarticles/{id}/edit",controller:"StaticArticleEditController",disableNavigation:!0,templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:["$stateParams",function(o){return o.id}]}}).state("app.companyNews",{url:"companyNews/{id}",controller:"StaticArticleDetailController",disableNavigation:!0,forceShowNavigationBranding:!0,templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",resolve:{staticArticle:["companyNewsService","parserService","$stateParams",function(o,s,p){return o.getCompanyNewsDetail(p.id).then(function(u){return s.postProcessHtml(u),u})}]}}),scope.currentChapter.settings.featureFeedback&&t.state("app.feedback",{url:"feedback",controller:"FeedbackController",templateUrl:"/ClientApp/src/legacy-app/user/feedback.html"}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&t.state("app.eventCalendar",{url:"events",controller:"EventCalendarController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendar.html"}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&scope.currentScope.chapter.settings.configurations.enableEventCalendar&&t.state("app.eventCalendarDetail",{url:"events/{guid}",controller:"EventCalendarDetailController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDetail.html",translatable:!0,resolve:{event:["eventCalendarService","$stateParams","$state",function(o,s,p){return o.getEvent(s.guid).then(function(u){return u},function(){p.go("app.root")})}]}}),!1!==scope.currentScope.network.settings.configurations.enableCalendar&&scope.currentScope.chapter.settings.configurations.enableEventCalendar&&t.state("app.eventCalendarEdit",{disableNavigation:!0,url:"events/{guid}/edit",controller:"EventCalendarEditController",templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarEdit.html",resolve:{event:["eventCalendarService","$stateParams","$state",function(o,s,p){return o.getEventForEdit(s.guid).then(function(u){return u},function(){p.go("app.root")})}]}}),scope.currentChapter.settings.featureSales&&t.state("app.sponsoredArticleList",{url:"sparticles",controller:"SponsoredArticleListController",templateUrl:"/ClientApp/src/legacy-app/sponsoredArticle/sponsoredArticleList.html"}).state("app.campaigns",{url:"campaigns",controller:"CampaignController",templateUrl:"/ClientApp/src/legacy-app/campaign/campaigns.html"}).state("app.advertiserBillingInfo",{url:"advertisers/billinginfo",controller:"AdvertiserBillingInfoController",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserBillingInfo.html"}).state("app.consumeAdvertiserToken",{url:"advertisers/connect",controller:"AdvertiserConsumeController",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserConsume.html"}).state("app.advertiserConsumtionComplete",{url:"advertisers/connected",templateUrl:"/ClientApp/src/legacy-app/advertiser/advertiserConsumationComplete.html"}),scope.currentChapter.settings.featureAuthorBilling&&t.state("app.authorBillingInfo",{url:"author/billinginfo",controller:"AuthorBillingInfoController",templateUrl:"/ClientApp/src/legacy-app/author/authorBillingInfo.html"}),scope.currentChapter.managingParent.closed&&t.state("app.closedChapter",{url:"closed?token=",controller:"ClosedChapterController",templateUrl:"/ClientApp/src/legacy-app/closedChapter/closedChapter.html"}).state("app.ikUpLanding",{url:"landing",controller:"IkUpLandingPageController",templateUrl:"/ClientApp/src/legacy-app/ikUpLandingPage/ikUpLandingPage.html"}),t.state("app.authors",{url:"authors",controller:"AuthorListController",templateUrl:"/ClientApp/src/legacy-app/author/authorList.html"}).state("app.imagelicensing",{url:"imagelicensing",templateUrl:"/ClientApp/src/legacy-app/content/imagelicensing.html"}),scope.currentScope.network.staticArticles.concat(scope.currentScope.chapter.staticArticles).forEach(function(o){o.path&&t.state("app.staticArticles_"+o.id,{url:o.path.substring(1),templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleDetail.html",controller:"StaticArticleDetailController",resolve:{staticArticle:["staticArticleService","parserService",function(s,p){return s.getStaticArticle(o.id).then(function(u){return p.postProcessHtml(u),u})}]}}).state("app.staticArticles_"+o.id+".edit",{disableNavigation:!0,url:"/edit",controller:"StaticArticleEditController",templateUrl:"/ClientApp/src/legacy-app/staticArticle/staticArticleEdit.html",resolve:{staticArticleId:function(){return o.id}}})}),(scope.currentScope.network.settings.appLinkAndroid||scope.currentScope.network.settings.appLinkITunes)&&t.state("app.appStore",{url:"app",controller:"AppStoreController",templateUrl:"/ClientApp/src/legacy-app/appStore/appStore.html"})):t.state("app",{url:"/",abstract:!0,template:"<div ui-view></div>"}),navigator.userAgent&&-1!==navigator.userAgent.indexOf("Merkurist_IAB")?(t.state("clickNotification",{url:"/click/notification/{id}"}).state("clickSpecial",{url:"/click/special/{guid}/{id}"}).state("clickPremiumBanner",{url:"/click/premiumBanner/{guid}/{pin}"}).state("clickSuperBanner",{url:"/click/superBanner/{guid}/{pin}"}).state("clickBanner",{url:"/click/banner/{guid}/{pin}"}).state("clickSurveyBanner",{url:"/click/surveyBanner/{guid}/{pin}"}).state("app.untrackedNotification",{url:"/untracked/{untrackedUri}"}).state("app.documentDownload",{url:"{route:pdf|document}/{id}"}).state("app.fileDownload",{url:"file/{id}"}).state("app.offline",{url:"appOffline",templateUrl:"/ClientApp/src/legacy-app/content/appOffline.html"}),scope.currentChapter.name||t.state("home",{url:"/",controller:"AppLandingController",templateUrl:"/ClientApp/src/legacy-app/landing/appLanding.html"})):scope.currentChapter.name||t.state("home",{url:"/",controller:"LandingController",templateUrl:"/ClientApp/src/legacy-app/landing/landing.html"}),e.otherwise("/")}]),app.run(["$rootScope","clickService","profileService","$location","$timeout","$state","scopeService","redirectService","$window",function(e,t,a,n,l,c,h,r,i){var m=["app.closedChapter","app.loginSaml2","app.register","app.registrationcomplete","app.requestPassword","app.passwordResetComplete","app.requestPasswordComplete","app.unsubscribeNewsletter","app.root.login","app.root.loginToken","app.imprint","app.privacyPolicy","app.accessibility","app.tos","app.companyNews","app.ikUpLanding","app.documentDownload","app.untrackedNotification","app.offline","app.fileDownload","app.appStore","app.optOut"],d=r.redirectNotificationUrl;e.$on("$stateChangeSuccess",function(o,s,p){l(function(){if("app.root"!=s.name&&!0===e.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){var u=e.scope.network.settings.languagePack.split("-")[0];null!=e.scope.profile.activeUserLanguage?.vendorLanguageCode&&u!=e.scope.profile.activeUserLanguage?.vendorLanguageCode&&(u=e.scope.profile.activeUserLanguage?.vendorLanguageCode,moment.locale(u),e.$broadcast("apicodo.translate",e.scope.profile.activeUserLanguage.vendorLanguageCode))}})}),e.$on("$stateChangeStart",function(o,s,p){switch(scope.network.landingSwitch&&"app.ikUpLanding"!==s.name&&"app.offline"!==s.name&&(o.preventDefault(),window.sessionStorage.setItem("returnUrl",n.path()),c.go("app.ikUpLanding",{},{location:"replace"})),a.getProfile().then(function(y){if(y.hasChapterAccess||-1!==m.indexOf(s.name)){if(y.adminSetPassword&&"app.requestPassword"!==s.name)window.sessionStorage.setItem("returnUrl",n.path()),c.go("app.requestPassword",{},{location:"replace"});else if(y.hasChapterAccess){var f=window.sessionStorage.getItem("returnUrl");f&&(o.preventDefault(),window.sessionStorage.removeItem("returnUrl"),n.path(f))}}else window.sessionStorage.setItem("returnUrl",n.path()),o.preventDefault(),c.go("app.closedChapter",{},{location:"replace"})}),s.name){case"app.root.snips":e.showSnipSlide||(c.go("app.root",{},{location:"replace"}),o.preventDefault());break;case"clickPremiumBanner":t.clickPremium(p.guid,p.pin).then(function(y){d(y.uri)}),o.preventDefault();break;case"clickSuperBanner":t.clickSuper(p.guid,p.pin).then(function(y){d(y.uri)}),o.preventDefault();break;case"clickBanner":console.log("clickBanner toParams",p),t.clickBanner(p.guid,p.pin).then(function(y){console.log("clickBanner result from api",y),d(y.uri)}),o.preventDefault();break;case"clickSurveyBanner":t.clickSurveyBanner(p.guid,p.pin).then(function(y){d(y.uri)}),o.preventDefault();break;case"clickSpecial":t.clickSpecial(p.guid,p.id).then(function(y){d(y.uri)}),o.preventDefault();break;case"clickNotification":t.clickNotification(p.id).then(function(y){d(y.uri)}),o.preventDefault();break;case"app.untrackedNotification":d(p.untrackedUri),o.preventDefault();break;case"app.documentDownload":t.clickDocument(p.id).then(b),o.preventDefault();break;case"app.fileDownload":t.clickFile(p.id).then(b),o.preventDefault()}function b(y){"android"===cordova.platformId&&y.isPdf?cordova.InAppBrowser.open("/Content/pdfview/web/?file="+y.uri,"_blank","location=yes,hidenavigationbuttons=yes,hideurlbar=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")):cordova.InAppBrowser.open(y.uri,"_system","location=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"))}})}]),app.run(["$rootScope","$window","$location","$uibModalStack","$timeout","$state","metaService","profileService",function(e,t,a,n,l,c,h,r){e.profile=r.profile,window.scope.profile=r.profile,e.$on("$stateChangeStart",function(i){var m=n.getTop();m&&(n.dismiss(m.key),i.preventDefault())}),e.$on("$locationChangeStart",function(i,m,d){m.endsWith("?top")&&(i.preventDefault(),a.url(m.replace(/^(?:\/\/|[^\/]+)*\//,"").replace(/\?top$/g,"")))}),e.$on("$stateChangeSuccess",function(i,m,d,o,s){function p(u){if(null===u||"object"!=typeof u)return u;var b=u.constructor();for(var y in u)u.hasOwnProperty(y)&&"object"!=typeof u[y]&&(b[y]=u[y]);return b}c.includes("app.root")||t.scrollTo(0,0),document.dispatchEvent(new CustomEvent("angularCustomEvent",{detail:{source:"stateChangeSuccess",toState:m}})),o&&o!==m&&!d.back?(d.back=o,d.backParams=s):o.name===m.name&&s.back&&(d.back=s.back,d.backParams=s.backParams),s&&s.backParams&&JSON.stringify(p(d))===JSON.stringify(p(s.backParams))&&(d.back=s.backParams.back,d.backParams=s.backParams.backParams),h.stateChanged(m)}),e.$on("$locationChangeSuccess",function(i,m,d){m!==d&&(Oculus.push(),Oculus.navigate(d))})}]),app.directive("resolve",["$controller",function(e){return{scope:!0,link:function(t,a,n){var l=t.$eval(n.resolve);angular.extend(l,{$scope:t}),e(n.resolveController,l)}}}]),objectFitImages(),app.controller("AdminSettingsController",["$scope","$state","localStorageService","profileService","$location",function(e,t,a,n,l){n.getProfile().then(function(c){!c.isSales&&!c.isMerkuristJournalist&&l.path("/").replace();var h=c.guid;e.$watch("profile.guid",function(){h!==c.guid&&l.path("/")})},function(c){l.path("/").replace()}),e.storage=a,e.toggleOculusFeedback=function(){a.enableOculusFeedback=!a.enableOculusFeedback},e.toggleArticleExitRates=function(){a.enableArticleExitRates=!a.enableArticleExitRates},e.toggleApp=function(){a.app=!a.app}}]),app.controller("AdvertiserBillingInfoController",["$scope","advertiserService","profileService","$location",function(e,t,a,n){e.advertisers=[],e.success=!1,e.fromApply=n.search().fromApply,a.getProfile().then(function(h){h.isRegistered||n.path("/").replace(),t.getAdvertisersByUser().then(function(r){$.each(r,function(i,m){e.advertisers.push({accountHolder:"",costCenter:"",phone:"",gender:"",email:"",country:"",iban:"",guid:"",title:"",bic:"",firstName:"",lastName:"",companyName:"",address:"",city:"",postalCode:null,chapter:m.chapter}),m.title&&(e.advertisers[i].title=m.title),m.gender&&(e.advertisers[i].gender=m.gender),m.country&&(e.advertisers[i].country=m.country),m.phone&&(e.advertisers[i].phone=m.phone),m.email&&(e.advertisers[i].email=m.email),m.costCenter&&(e.advertisers[i].costcenter=m.costCenter),m.guid&&(e.advertisers[i].guid=m.guid),m.firstName&&(e.advertisers[i].firstname=m.firstName),m.accountHolder&&(e.advertisers[i].accountholder=m.accountHolder),m.bic&&(e.advertisers[i].bic=m.bic),m.lastName&&(e.advertisers[i].lastname=m.lastName),m.companyName&&(e.advertisers[i].companyname=m.companyName),m.address&&(e.advertisers[i].address=m.address),m.city&&(e.advertisers[i].city=m.city),m.postalCode&&(e.advertisers[i].postalcode=m.postalCode),m.iban&&(e.advertisers[i].iban=m.iban),m.iban&&(e.advertisers[i].ibanshow=m.iban.substr(0,7)+m.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))}),e.currentAdvertiser=e.advertisers[0]})},function(h){n.path("/").replace()}),e.resetValue=function(h){e.currentAdvertiser.iban=""},e.signUp=function(h,r){h&&(0==r.gender&&(r.gender=!1),1==r.gender&&(r.gender=!0),t.updateBillingInfo(r).then(function(i){e.success=!0},function(){e.success=!1}))}}]),app.controller("AdvertiserConsumeController",["$scope","$location","profileService","advertiserService","$timeout","$uibModal","$state",function(e,t,a,n,l,c,h){e.working=!0,t.search().token?n.getAdvertiserByToken(t.search().token).then(function(r){e.advertiser=r,l(function(){e.working=!1},1e3)}):e.working=!1,e.login=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){}},facebookSignUpData:function(){return null},login:!0}})},e.consume=function(){n.consumeAdvertiserToken(t.search().token).then(function(){e.consumeError=!1,a.getProfile(!0).then(function(){h.go("app.advertiserConsumtionComplete")})},function(){e.consumeError=!0})}}]),app.factory("advertiserService",["$http","$q","$location",function(e,t){return{getAdvertiserByToken:function(h){var r=t.defer();return e.get(scope.apiEndpoint+"advertis0rs/"+h).then(function(i){r.resolve(i.data)},function(){r.reject()}),r.promise},getAdvertisersByUser:function(){var h=t.defer();return e.get(scope.apiEndpoint+"advertis0rs/getbyuser").then(function(r){h.resolve(r.data)},function(){h.reject()}),h.promise},updateBillingInfo:function(h){var r=t.defer();return e.put(scope.apiEndpoint+"advertis0rs/billingInfo",h).then(function(i){r.resolve(i.data)},function(){r.reject()}),r.promise},consumeAdvertiserToken:function(h){var r=t.defer();return e.put(scope.apiEndpoint+"advertis0rs/"+h).then(function(i){r.resolve(i)},function(){r.reject()}),r.promise}}}]),app.controller("AppStoreController",["$scope",function(e){e.appLinkAndroid=scope.currentScope.network.settings.appLinkAndroid,e.appLinkITunes=scope.currentScope.network.settings.appLinkITunes;let t=navigator.userAgent,a=t.includes("Macintosh")&&"ontouchend"in document;e.isIOS=/iPhone|iPad|iPod/i.test(t)||a,e.isAndroid=/Android/i.test(t),e.isOther=!e.isIOS&&!e.isAndroid,e.showIos=e.appLinkITunes&&(e.isIOS||e.isOther),e.showAndroid=e.appLinkAndroid&&(e.isAndroid||e.isOther)}]),app.controller("articleCancelScheduledPublish",["$Scope","article",function(e,t){}]),app.controller("ArticleCreatePublishDialog",["$scope","profileService","article","markdown","heading","htmlDocument","publishService","resultCallback","$rootScope","notificationService","articleService",function(e,t,a,n,l,c,h,r,i,m,d){e.working=!1,e.error=!1,e.dateOptions={minDate:new Date,showWeeks:!0};var o=i.scope.network.settings.languagePack.split("-")[0];null!=i.scope.profile.activeUserLanguage?.vendorLanguageCode&&o!=i.scope.profile.activeUserLanguage?.vendorLanguageCode&&(o=i.scope.profile.activeUserLanguage?.vendorLanguageCode),e.isJournalistOnly=i.profile.isJournalist&&!i.profile.isMerkuristJournalist,e.publishButtonLabel=i.scope.currentScope.network.getResourceOrKeyName(i.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?"web_common_submit":"web_common_publish"),e.showContentConnectTagBox=!1,e.words=!1,e.sentences=!1,e.paragraphs=!1,e.alreadyNotified=!1,e.datepickerPlaceholder=moment.localeData(o).longDateFormat("L"),e.allowCriticalContent=i.scope.currentScope.chapter.settings.enableCriticalContent,t.getProfile().then(function(b){e.firstPublish=b.isMerkuristJournalist&&!a.published,e.allowBreakingNews=b.isMerkuristJournalist}),e.alreadyNotified=a.alreadyNotified;var s=new Date(Date.now());s.setMilliseconds(0),s.setSeconds(0),e.minDate=s,e.minDateString=new Date(s).toISOString().slice(0,-1),m.getNotifiedUsersCount().then(function(b){e.NumberOfNotifiedUsers=b});var p=new Date(a.scheduledPublish);a.scheduledPublish||(p=new Date(Date.now())),p.setMilliseconds(0),p.setSeconds(0);var u=new Date(a.scheduledArchive);a.scheduledArchive||(u=p),u.setMilliseconds(0),u.setSeconds(0),e.publishArticle={id:a.id,criticalContent:!1,enableInteraction:!0!==i.scope.currentScope.chapter.settings.configurations.disableInteractionsByDefault,inactive:a.inactive,chapterSlugs:[],breakingNews:!1,heading:l,calendarDate:null,cbCalendarDate:!1,scheduledPublish:p,scheduledArchive:u,scheduledPublishDo:!!a.scheduledPublish,scheduledArchiveDo:!!a.scheduledArchive,externalContent:!!a.externalContent,externalContentNotifyAdminsNewContent:a.externalContentNotifyAdminsNewContent,externalContentNotifyAdminsChangedContent:a.externalContentNotifyAdminsChangedContent,externalContentNotifyAllChangedContent:a.externalContentNotifyAllChangedContent,externalContentUpdateCronSelection:a.externalContentUpdateCronSelection,externalContentConfluenceSourceId:a.externalContentConfluenceSourceId,firstPublish:!!e.firstPublish,assetReferences:a.assetReferences},e.publishArticle.scheduledPublishString=e.publishArticle.scheduledPublish,e.scheduledDate=p,e.networkChapters=[],$.each(i.scope.currentScope.network.chapters,function(b,y){2===y.managementState&&y.id!==scope.currentChapter.id&&e.networkChapters.push({name:y.name,slug:y.slug})}),e.showContentConnectTagBox=e.networkChapters.length>0,e.contentConnectTagBox={selectionOptions:{width:"90%",dataSource:e.networkChapters,showSelectionControls:!0,searchEnabled:!0,displayExpr:"name",valueExpr:"slug",selectAllText:i.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:i.scope.currentScope.network.getResourceOrKeyName("web_articleDialog_createPublish_contentConnectPlaceholder"),onInitialized:function(b){e.dxTagBoxInstance=b.component}}},d.getContentConnectNetworks().then(function(b){b.length>0&&(e.showContentConnectTagBox=!0),b.forEach(function(y){y.networkChapters.forEach(function(f){e.dxTagBoxInstance.getDataSource().store().insert({name:y.name+": "+f.name,slug:f.slug})})}),e.dxTagBoxInstance.load()}),e.formIsValid=function(){return!e.publishArticle.scheduledArchiveDo||e.publishArticle.scheduledArchive>=e.publishArticle.scheduledPublish},e.words=h.checkWords(c),e.sentences=h.checkSentences(c),e.paragraphs=h.checkParagraphs(c),e.publish=function(){e.working||(e.working=!0,e.publishArticle.cbCalendarDate||(e.publishArticle.calendarDate=null),e.publishArticle.scheduledPublishDo||(e.publishArticle.scheduledPublish=null),e.publishArticle.scheduledArchiveDo||(e.publishArticle.scheduledArchive=null),e.publishArticle.firstPublish=e.firstPublish,e.publishArticle.chapterSlugs=e.dxTagBoxInstance.option("selectedItems").map(function(b){return b.slug}),r&&r(e.publishArticle),e.$dismiss())}}]),app.controller("ArticleDetailController",["$scope","$rootScope","$previousState","articleService","snipService","articleQuestionService","scopeService","parserService","$location","article","$timeout","shipmentService","$uibModal","betterPlaceService","translationService","profileService","assetService",function(e,t,a,n,l,c,h,r,i,m,d,o,s,p,u,b,y){if(e.snip=void 0,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.readOnlyMode=t.profile.readOnlyMode,e.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==t.scope.profile.isRegistered&&0==t.app,(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var f=t.scope.currentChapter.path+i.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",f)}function R(A){e.articleQuestions=A,$.each(A,function(C,U){U.normalAnswers=[],U.freeTextAnswers=[],$.each(U.items,function(k,T){T.isFreeTextAnswer?U.freeTextAnswers.push(T):U.normalAnswers.push(T)}),c.getAnswerId(U.id).then(function(k){e.articleQuestionAnswerIds[U.id]=[],$.each(k,function(T,V){if(e.articleQuestionAnswerIds[U.id].push(V.itemId),V.freeText){var M=U.freeTextAnswers.find(function(_){return _.id===V.itemId});M.freeText=V.freeText,M.synchedFreeText=V.freeText}})})})}m&&(h.getNetworkChapter(m.originChapterSlug,m.originNetworkSlug).then(function(A){e.crossNetworkInfo=A}),t.scope.currentScope.chapter.settings.enableArticleQuestions&&(e.articleQuestionAnswerIds={},c.getArticleQuestions(m.id).then(R))),e.answering=function(A,C){var U=e.articleQuestions.find(function(O){return O.id===A}),k=U.items.find(function(O){return O.id==C});if(!U.locked){var T=e.articleQuestionAnswerIds[A].includes(C),V=e.articleQuestionAnswerIds[A],M=T&&(!k.isFreeTextAnswer||!k.freeText);if(!U.allowMultipleChoice||M){var _=T?C:V[0];(k.id!==_||!k.isFreeTextAnswer||!k.freeText)&&c.deleteArticleQuestionAnswersByUser(_).then(function(){V.splice(V.indexOf(_),1);var O=U.items.find(function(q){return q.id==_});O.freeText=null,O.synchedFreeText=null})}M||c.postArticleQuestionAnswer(C,k.freeText).then(function(){k.synchedFreeText=k.freeText,T||V.push(C)})}};var S,A,v=function(){S=e.article.assetReferences.reduce(function(A,C){return A[C.guid]=C,A},{})};if(e.resolveAsset=function(A){return S[A]},e.socialMediaShareEnable=t.scope.currentScope.network.settings.socialMediaShareEnable,$(window).scroll(function(A){$(A.target).scrollTop()>100?$(".articleDetail-mobileNavigation-wrapper").addClass("articleDetail-mobileNavigation-wrapper-scrolled"):$(".articleDetail-mobileNavigation-wrapper").removeClass("articleDetail-mobileNavigation-wrapper-scrolled")}),e.recommendedArticles=[],e.recommendedArticlePairs=[],e.recommendedSnips=[],e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],e.articleUpdater)(e.$parent.articleUpdater?e.$parent:e.$parent.$parent).$on("articleUpdate",function(A,C){e.article=C,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,v(),e.$broadcast("$$rebind::refresh")});else{e.$watch(function(){return"article.detailsLoaded"},function(A){A&&v()});var g=m.id,x=function(){e.$watch("article.shipmentsPlaced",function(A){(A||0===A)&&o.resolve(m.shipmentsPlaced,g,e.currentLanguage).then(function(){t.scope.currentScope.chapter.settings.enableArticleRecommendations&&n.getRecommendedArticles(g).then(function(C){if(C.length){[].push.apply(e.recommendedArticles,C);for(var U=0;U<e.recommendedArticles.length;U+=2){var k=[];k.push(e.recommendedArticles[U]),e.recommendedArticles.length>U+1&&k.push(e.recommendedArticles[U+1]),e.recommendedArticlePairs.push(k)}}})})})};if(x(),e.article=m,e.availableTargetLanguages=null,u.getAvailableTargetLanguages().then(function(A){e.availableTargetLanguages=A}),t.scope.currentScope.chapter.settings.enableSnipRecommendations&&t.showSnipSlide&&l.getRecommendedSnips(g).then(function(A){e.recommendedSnips=A}),m.snipId&&t.showSnipSlide&&l.getSnipDetails(m.snipId).then(function(A){e.currentPath=t.scope.currentScope.network.path,e.snip=A}),(A=window.navigator.userAgent).indexOf(" Android ")>-1&&A.indexOf("Version/")>-1&&parseFloat((A.match("Android ([0-9.]+)")||[])[1])<=4.4){var D=$(window).height();$(".app-mobile .articleDetail-wrapper").css("height",D+"px"),$(".app-desktop .articleDetail-wrapper").css("height",D+"px")}e.projectDetails=null,e.projectPictures=null,m.betterPlaceProjectId&&t.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&p.getProjectDetails(m.betterPlaceProjectId).then(function(A){e.projectDetails=A,p.getApiResult(e.projectDetails.links[3].href).then(function(C){e.projectPictures=C})})}var I=function(A){e.article.assetReferences.unshift(A)};e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(A,C){e.translateArticleDetail(C)}),e.translateArticleDetail=function(A){A&&(e.selectedTargetLanguage=A),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?(n.getArticleDetails(e.article.id).then(function(C){m.assetReferences=C.assetReferences,e.article=C,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,v(),x(),e.$broadcast("$$rebind::refresh")}),c.getArticleQuestions(e.article.id).then(R)):(n.getTranslatedArticleDetails(e.article.id,e.selectedTargetLanguage).then(function(C){m.assetReferences=C.assetReferences,e.article=C,r.postProcessHtml(e.article),e.article.detailsLoaded=!0,v(),x(),e.$broadcast("$$rebind::refresh"),b.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})}),c.getTranslatedArticleQuestions(e.article.id,e.selectedTargetLanguage).then(R))},e.assetCreateOpinionDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return I},createAssetAsync:function(){return function(A){return y.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateFactDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return I},createAssetAsync:function(){return function(A){return y.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateQuestionDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return I},createAssetAsync:function(){return function(A){return y.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateImageDialog=function(A,C,U){A&&0!==A.length?C.length||s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return A},resultCallback:function(){return I},createAssetAsync:function(){return function(k){return y.insertAssetImageToArticle(k,e.article.id)}}}}):C||U.$setPristine()},e.assetCreateVideoDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return function(A){return y.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetCreateGifDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return I},createAssetAsync:function(){return function(A){return y.insertAssetTextToArticle(A,e.article.id)}}}})},e.assetSearchDialog=function(){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return I},articleId:function(){return e.article.id},assetReferences:function(){return e.article.assetReferences}}})},e.assetImageFocuspointDialog=function(A){s.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return A}}})},e.scrollTo=function(A){$("body,html").animate({scrollTop:$(A).offset().top-120},1e3)},e.$watchCollection("article.assetReferences",function(){m&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(m.assetReferences)&&m.assetReferences.forEach(function(A){null!==A.assetImage||null!==A.assetText&&(5===A.assetText.type||6===A.assetText.type||7===A.assetText.type||10===A.assetText.type||13===A.assetText.type)?e.assetsMedia.push(A):null!==A.assetText&&(8===A.assetText.type?e.assetsFacts.push(A):9===A.assetText.type?e.assetsQuestions.push(A):0===A.assetText.type&&e.assetsComments.push(A))}))}),e.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareArticle","ArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(e.article.heading?e.article.heading+": ":"")+e.article.text+" "+i.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareArticle","ArticleDetail"])}))}}]),app.component("articleDisplayable",{templateUrl:"/ClientApp/src/legacy-app/article/articleDisplayable.html",bindings:{data:"<",article:"<"},controller:["$rootScope","scopeService","betterPlaceService",function(e,t,a){var n=this;n.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,this.$onInit=function(){(function l(){let c=n.data.coverAssetReference.assetImage;c.focusX1&&c.focusX2&&c.focusY1&&c.focusY2&&(fpCenterX=(c.focusX1+c.focusX2)/2,fpCenterY=(c.focusY1+c.focusY2)/2,xPercentage=fpCenterX/c.focusWidth,yPercentage=fpCenterY/c.focusHeight,n.style=`--crop-focus-x: ${xPercentage}; --crop-focus-y: ${yPercentage};`)})(),n.data.originNetworkSlug&&n.data.originChapterSlug&&e.scope.currentScope.network.slug!==n.data.originNetworkSlug&&t.getNetworkChapter(n.data.originChapterSlug,n.data.originNetworkSlug).then(function(c){n.crossNetworkInfo=c}),n.projectDetails={},n.data.betterPlaceProjectId&&e.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&a.getProjectDetails(n.data.betterPlaceProjectId).then(function(c){n.projectDetails=c})}}]}),app.component("articleDisplayableSnip",{templateUrl:"/ClientApp/src/legacy-app/article/articleDisplayableSnip.html",bindings:{data:"<",horizontal:"<"},controller:["$rootScope",function(e){var t=this;t.hideComponent=!1,this.$onInit=function(){t.hideComponent=2==e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig}}]}),app.controller("ArticleEditController",["$scope","scopeService","articleService","publishService","metaService","$state","authService","fileUploadService","formatterService","$location","$timeout","$uibModal","$rootScope","$interpolate","proseMirrorEditorService","editorAssetsService","backendHubProxy","spellingService","editorCommentService",function(e,t,a,n,l,c,h,r,i,m,d,o,s,p,u,b,y,f,R){e.initializedMobile=e.mobile,e.isPublishWorking=!1,e.isJournalistOnly=s.profile.isJournalist&&!s.profile.isMerkuristJournalist,e.publishButtonLabel=s.scope.currentScope.network.getResourceOrKeyName(s.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?"web_common_submit":"web_common_publish"),e.enableHighQualityImage=s.scope.network.settings.configurations.enableHighQualityImage;var g,S=y("editorHub"),v=c.params.id,w="article_"+v+"_"+s.scope.currentScope.chapter.id,x=!1;S.on("broadcastSummary",function(L){e.revision.summary=L}),S.on("broadcastHeading",function(L){e.revision.texts[L.indexPosition].heading=L.heading}),S.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),S.on("broadcastDeleteVariant",function(L){e.delTextVariant(!1,L.indexPosition)}),S.on("broadcastTitle",function(L){e.revision.texts[L.indexPosition].text=L.title}),S.start(function(){S.invoke("joinGroup",w)}),e.leaveEditor=function(){x=!0},e.blurHeading=function(L){S.invoke("updatingHeading",{groupName:w,heading:e.revision.texts[L].heading,indexPosition:L})},e.blurTitle=function(L){S.invoke("updatingTitle",{groupName:w,title:e.revision.texts[L].text,indexPosition:L})},e.blurSummary=function(){S.invoke("updatingSummary",{groupName:w,summary:e.revision.summary})};var I={coverAssetImages:[],texts:[{heading:"",text:""}],ChapterSlug:scope.currentChapter.slug};e.$on("$destroy",function(){l.setFavicon(),d.cancel(g)}),e.chapterHasTags=!!scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.length>0;var C,A=[];function U(){for(var L=e.article.revisions[0],H=L.published,J=0;J<e.article.revisions.length;J++)(e.article.revisions[J].published>L.published||!L.published)&&(H=(L=e.article.revisions[J]).published);if(s.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly)for(var Z=0;Z<e.article.revisions.length;Z++)(e.article.revisions[Z].publishRequested>L.published||null===H)&&(H=e.article.revisions[Z].publishRequested);var X=new Date(H);e.article.scheduledPublish&&(X=new Date(e.article.scheduledPublish)),e.timeSincePublished=p(scope.currentScope.network.resources.web_article_edit_timeSincePublished)({timeSincePublished:i.momentFromNowAsString(X)}),g=d(function(){U()},i.momentFromNowTimeout(X),!1)}scope.currentChapter.chapterGroups&&scope.currentChapter.chapterGroups.forEach(function(L){L.chapters.forEach(function(H){A.push({text:H.shortName,slug:H.slug})})}),e.articleUpdater=!0,e.article={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0,e.wordCount=0,e.words=!1,e.paragraphs=!1,e.sentences=!1;var k=s.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return k};var T=!1;s.$on("$stateChangeStart",function(L,H){T?L.preventDefault():e.changed&&!confirm(k)?(T=!0,L.preventDefault(),x=!1,d(function(){T=!1},1e3)):(e.changed=!1,x&&(S.invoke("leaveGroup",w),u.closeConnection(),S.stop(),x=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0,e.showRubricSelection=!1,e.rubricMultiSelectModel=[],e.rubricMultiSelectModelfordx=[];var V=function(L){e.revision=null,e.article=L,e.rubricMultiSelectModel.length=0,A.length>0&&(e.showRubricSelection=!0),L.chapterSlugs.forEach(function(J){var Z=M(J),X={text:Z,slug:J};null!==Z&&(e.rubricMultiSelectModel.push(X),e.rubricMultiSelectModelfordx.push(X.slug),A.push(X))}),e.rubricTagBoxEntered=!1,e.rubricTagBox={selectionOptions:{width:"auto",dataSource:A,value:e.rubricMultiSelectModelfordx,showSelectionControls:!0,searchEnabled:!0,displayExpr:"text",valueExpr:"slug",selectAllText:s.scope.currentScope.network.getResourceOrKeyName("web_rubric_choice_check_all"),placeholder:s.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_chapterTagsPlaceholder"),onInitialized:function(J){e.dxTagBoxInstance=J.component},onContentReady:function(J){e.rubricTagBoxEntered=!0},onValueChanged:function(J){e.rubricTagBoxEntered&&(e.changed=!0,L.chapterSlugs=[],e.dxTagBoxInstance._selectedItems.forEach(Z=>{L.chapterSlugs.push(Z.slug)}))}}};var H=N(L);H?e.revision=H:(e.revision=I,L.revisions.push(I)),e.revision.texts.length||(H.texts=[{heading:"",text:""}]),C=E(L),d(function(){e.textCarousel||(e.textCarousel=$("#articleEdit-text-wrapper").find(".articleEdit-text-carousel"),e.textCarousel.on("afterChange",function(J,Z){e.textSlickIndex=Z.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#articleEdit-cover-wrapper").find(".articleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(J,Z){e.coverAssetSlickIndex=Z.currentSlide})),e.revision.texts.push({}),d(function(){e.revision.texts.splice(e.revision.texts.length-1,1),d(function(){e.textSlick=e.textCarousel.slick({dots:!0,initialSlide:e.textSlickIndex})},100)}),e.revision.coverAssetImages.push({}),d(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),d(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0,initialSlide:e.coverAssetSlickIndex})},100)}),U()}),e.loading=!1},M=function(L){for(var H=0;H<scope.currentScope.network.chapters.length;H++)if(scope.currentScope.network.chapters[H].slug===L)return scope.currentScope.network.chapters[H].shortName;return null};e.addTextVariant=function(L){e.textSlick=e.textCarousel.slick("unslick"),d(function(){e.revision.texts.push({heading:"",text:""}),d(function(){e.textSlick=e.textCarousel.slick({dots:!0}),e.textSlick.slick("slickGoTo",e.revision.texts.length-1)})}),L&&S.invoke("addVariant",{groupName:w})},e.delTextVariant=function(L,H){var J=H||e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("unslick"),e.revision.texts.splice(J,1),e.revision.texts.push({}),d(function(){e.revision.texts.splice(e.revision.texts.length-1,1),d(function(){e.textSlick=e.textCarousel.slick({dots:!0}),J>0&&(e.textSlick.slick("slickGoTo",J-1),e.textSlickIndex=J-1)},100)}),L&&S.invoke("deleteVariant",{groupName:w,indexPosition:J})},e.mobileEditorFocused=!1,e.focusMobileEditor=function(){e.mobileEditorFocused=!0},e.blurMobileEditor=function(){e.mobileEditorFocused=!1},e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){if(e.revision.coverAssetImages.length>1){var L=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",L-1),e.revision.coverAssetImages.splice(L,1),e.coverAssetSlick.slick("unslick"),e.revision.coverAssetImages.push({}),d(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),d(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),L>0&&(e.coverAssetSlick.slick("slickGoTo",L-1),e.coverAssetSlickIndex=L-1)})})}},e.pickCoverAsset=function(L){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(H){e.coverAssetSlick.slick("unslick"),L&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=H.assetImage:e.revision.coverAssetImages.push(H.assetImage),d(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),e.coverAssetSlick.slick("slickGoTo",e.revision.coverAssetImages.length-1)})}},article:function(){return e.article}}})};var _=function(L,H){o.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(J){if(H&&J.length>0){u.setFocus();var Z=[];$.each(J,function(X,ee){var te=null;ee.assetImage&&(te=ee.assetImage.type),ee.assetText&&(te=ee.assetText.type),ee.assetArticle&&(te=ee.assetArticle.type),ee.assetFile&&(te=ee.assetFile.type),Z.push({guid:ee.guid,type:te})}),H(Z)}}},article:function(){return e.article}}})};e.save=function(){e.rubricMultiSelectModel=e.dxTagBoxInstance.option("selectedItems");for(var L=angular.copy(e.article),H=e.revision.coverAssetImages.map(function(Z){return Z.id}),J=0;J<H.length;J++)if(H.lastIndexOf(H[J])>J)return void o.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});L.texts=e.revision.texts,L.coverAssetImages=e.revision.coverAssetImages,L.markdown=e.revision.markdown,L.summary=e.revision.summary,L.chapterSlugs=e.rubricMultiSelectModel.map(function(Z){return Z.slug}),L.googleNewsCheck=n.checkGoogleNewsRecommendation(u.getHtmlDocument()),L.jsonDocument=u.getDocument(),L.HtmlDocument=u.getHtmlDocument(),a.updateArticle(L).then(function(Z){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),V(Z.data)},function(){o.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0};var O=function(L){e.editForm.$submitted=!0,e.isPublishWorking=!0,s.scope.currentScope.chapter.settings.enablePublishWorkflowForJournalists&&e.isJournalistOnly?a.publishArticleRequest(L).then(function(H){e.changed=!1,e.isPublishWorking=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),V(H.data)},function(){}):a.publishArticle(L).then(function(H){e.changed=!1,e.isPublishWorking=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),V(H.data)},function(){})};e.publish=function(){a.checkNotification(e.article.id).then(function(L){e.article.alreadyNotified=L,o.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreatePublishDialog.html",controller:"ArticleCreatePublishDialog",size:"lg",resolve:{resultCallback:function(){return O},article:function(){return e.article},markdown:function(){return e.revision.markdown},heading:function(){return e.revision.texts[0].text},htmlDocument:function(){return e.revision.htmlDocument}}})})},e.cancelScheduledPublish=function(){var L=new Date(e.article.scheduledPublish);e.article.scheduledPublishAsString=L.toLocaleString(),o.open({scope:e,templateUrl:"/ClientApp/src/legacy-app/article/articleCancelScheduledPublish.html",controler:"articleCancelScheduledPublish",resolve:{article:function(){return e.article}},size:"lg"}).result.then(function(){a.deleteScheduledPublish(e.article.id).then(function(){e.article.scheduledPublish=null,e.article.scheduledArchive=null})})},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var L=angular.copy(e.article);L.content=u.getHtmlDocument(),L.assetReferences=L.assetReferences,L.text=e.revision.texts[0].text,L.heading=e.revision.texts[0].heading,L.summary=e.revision.summary,e.revision.coverAssetImages.length&&(L.coverAssetReference=L.assetReferences.filter(function(H){return H.assetImage&&H.assetImage.id===e.revision.coverAssetImages[0].id})[0]),d(function(){e.$broadcast("articleUpdate",L)},500)}};var E=function(L){var H=N(L);return angular.toJson(H.texts)+angular.toJson(H.coverAssetImages)+H.summary+H.jsonDocument+angular.toJson(e.rubricMultiSelectModel)},N=function(L){if(e.revision)return e.revision;var H=L.revisions.filter(function(Z){return Z.chapterSlug===scope.currentChapter.slug});if(H.length)return H[0];if(L.chapterSlug!==scope.currentChapter.managingParent.slug){o.open({templateUrl:"/ClientApp/src/legacy-app/article/articleEditForeignDisclaimerDialog.html",size:"lg"}).result.then(function(){},function(){m.path("/")});var J=L.revisions.filter(function(Z){return Z.chapterSlug===L.chapterSlug});if(J.length)return J[0]}},j=function(L,H){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return H},messageHolder:function(){return new MessageHolder(e.article)},sourceService:function(){return R}}})};l.setFavicon(!0);var W=function(L){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return L}}})},K=function(L,H){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return H}}})},Y=function(L,H){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/addMetaInfoDialog.html",controller:"AddMetaInfoDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return H}}})},B=function(L,H,J){o.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return J},onAddedCallback:function(){return H},messageHolder:function(){return new MessageHolder(e.article)},chainComments:function(){return L},sourceService:function(){return R}}})},z=function(L){return b.getAsset(L,e.article.assetReferences)},G=function(L){d(function(){N(e.article).jsonDocument=L,e.numberOfWords=f.countWords(u.getHtmlDocument())})};$(".articleEdit-wrapper").scroll(function(){!function L(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),a.getArticleEdit(v).then(function(L){V(L),u.init({docID:"article_"+L.id+"_"+scope.currentChapter.slug,assetDlgFactory:_,commentCreationDlgFactory:j,commentMgmtDlgFactory:B,initialDocument:N(L).jsonDocument,initialAssetReferences:L.assetReferences,createLinkFactory:W,callToActionDlgFactory:K,metadataCreationDlgFactory:Y,assetResolver:z,onNewStateFactory:G,onLoadTransactionCallback:G,languageCode:s.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return E(e.article)},function(L){e.changed=C!==L,e.wordCount=e.revision.markdown?e.revision.markdown.replace(/[^\w-_ ]/g," ").trim().split(/\s+/).length:0})},function(){m.path("/")})}]),app.controller("ArticleElasticReportController",["$scope","$rootScope","article","chapterReport","articleService","formatterService","scopeService","$timeout",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";e.dateFormatString=c.getShortDateFormatString(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var m=[],d=[],o=[{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_unknownReferrer"),color:"#cccccc",regEx:["^$"]},{name:t.scope.currentScope.network.domain.charAt(0).toUpperCase()+t.scope.currentScope.network.domain.slice(1),color:i,regEx:["^https?:\\/\\/"+t.scope.currentScope.network.domain]},{name:"Facebook",color:"#3B5998",regEx:["^https?:\\/\\/(\\w*\\.)?facebook\\.com","^android-app:\\/\\/m.facebook."]},{name:"Google",color:"#F44336",regEx:["^https?:\\/\\/((www\\.)|(images\\.))?google\\.","^android-app:\\/\\/com\\.google\\.android\\.googlequicksearchbox"]},{name:"Twitter",color:"#4099FF",regEx:["^https?:\\/\\/t\\.co\\/","^https?:\\/\\/twitter\\.com\\/"]},{name:"Webmail",color:"#ff66ff",regEx:["^https?:\\/\\/.*\\.mail\\.live\\.com","^https?:\\/\\/mail\\.google\\.com","^https?:\\/\\/3c\\.gmx\\.net","^https?:\\/\\/3c\\.web\\.de","^https?:\\/\\/email\\.t-online\\.de","^https?:\\/\\/3c-bap\\.web\\.de","^https?:\\/\\/email\\.1und1\\.de","^https?:\\/\\/www\\.arcor\\.de\\/home\\/link\\.php"]},{name:"WhatsApp",color:"#43d854",regEx:["^https?:\\/\\/web.whatsapp.com"]},{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_articleSuggestionReferrer"),color:"#F44336",regEx:["^https?:\\/\\/www\\.googleapis\\.com\\/auth\\/chrome-content-suggestions","^https?:\\/\\/play\\.google\\.(com|de){1}\\/newsstand"]},{name:"Google News",color:"#F44336",regEx:["^https?:\\/\\/((www\\.news\\.)|(news\\.))?(url\\.)?google\\."]},{name:"Instagram",color:"#cd486b",regEx:["^https?:\\/\\/(\\w*\\.)?instagram\\."]}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=n,e.article=a,r(function(){var p,u,b,y,f;$.each(n,function(A,C){C.active=!0,C.variants.length&&$.each(C.variants,function(U,k){k.viewableImpressions>0&&(n.hasVariants=!0,k.hasViews=!0)})}),n.length>1&&(n.multiChapterShipment=!0);for(var R=[],S=[],v=[],w=new Date(a.published);w<=moment(new Date).startOf("day").add(1,"d").toDate();w.setDate(w.getDate()+1)){var g={start:new Date(w),viewableImpressions:0,readings:0};R.push(g),v[g.start.toDateString()]=g,S.push(g)}var x={impressions:0,readings:0,uniqueImpressions:0,uniqueReadings:0,uniqueReadingPercentageReads:0,uniqueViewableImpressions:0,activeTimeSeconds:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0};e.summary=x;var F=function(A){var C=!1;if(A?(x.start=moment(a.published).startOf("day").toDate(),x.end=moment(new Date).startOf("day").toDate()):n.hasVariants=!1,$.each(S,function(k,T){T.readings=0,T.viewableImpressions=0}),m.length=0,d=[],x.impressions=0,x.readings=0,x.uniqueImpressions=0,x.uniqueReadings=0,x.uniqueReadingPercentageReads=0,x.uniqueViewableImpressions=0,x.activeTimeSeconds=0,x.uniqueReadingsHavingViewableImpressions=0,x.uniqueReadingPercentage24Reads=0,x.uniqueReadingPercentage2549Reads=0,x.uniqueReadingPercentage5074Reads=0,x.uniqueReadingPercentage75100Reads=0,s[0].value=0,s[1].value=0,s[2].value=0,$.each(n,function(k,T){if(T.active){T.report.referrers.length&&$.each(T.report.referrers,function(M,_){C=!1,$.each(o,function(O,q){$.each(q.regEx,function(P,E){_.referrer.match(E)&&(d[q.name]?(d[q.name].readings+=_.readings,C=!0):(d[q.name]={readings:_.readings,referrer:q.name,color:q.color},m.push(d[q.name]),C=!0))})}),C||(d.others?d.others.readings+=_.readings:d.others={readings:_.readings,referrer:"Andere"})}),T.report.impressionCalendar.length&&$.each(T.report.impressionCalendar,function(M,_){v[new Date(_.day).toDateString()].viewableImpressions+=_.data}),T.report.readingCalendar.length&&$.each(T.report.readingCalendar,function(M,_){v[new Date(_.day).toDateString()].readings+=_.data}),T.variants.length&&$.each(T.variants,function(M,_){_.viewableImpressions>0&&(n.hasVariants=!0,_.hasViews=!0)}),x.impressions+=T.report.impressions,x.readings+=T.report.readings,x.uniqueReadings+=T.report.uniqueReadings,x.uniqueReadingsHavingViewableImpressions+=T.report.uniqueReadingsHavingViewableImpressions,x.uniqueImpressions+=T.report.uniqueImpressions,x.uniqueReadingPercentageReads+=T.report.uniqueReadingPercentageReads,x.activeTimeSeconds+=T.report.activeTimeSeconds,x.uniqueReadingPercentage24Reads+=T.report.uniqueReadingPercentage24Reads,x.uniqueReadingPercentage2549Reads+=T.report.uniqueReadingPercentage2549Reads,x.uniqueReadingPercentage5074Reads+=T.report.uniqueReadingPercentage5074Reads,x.uniqueReadingPercentage75100Reads+=T.report.uniqueReadingPercentage75100Reads;var V=T.report.desktopReadingCalendar+T.report.mobileReadingCalendar+T.report.tabletReadingCalendar;s[0].value+=Math.round(100/(V/T.report.desktopReadingCalendar)),s[1].value+=Math.round(100/(V/T.report.mobileReadingCalendar)),s[2].value+=Math.round(100/(V/T.report.tabletReadingCalendar))}}),n.length>1){var U=n.filter(function(k){return k.active}).length;s[0].value=Math.round(s[0].value/U),s[1].value=Math.round(s[1].value/U),s[2].value=Math.round(s[2].value/U)}d.others&&m.push(d.others),A&&(R.length=0,$.each(S,function(k,T){R.push({start:T.start,viewableImpressions:T.viewableImpressions})})),p.validateData(),u.validateData(),b.validateData(),y.validateData(),f.validateData()};p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",marginRight:80,autoMarginOffset:20,marginTop:7,path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:R,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:S,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.getResourceOrKeyName("web_reportArticle_articleCallsHeading"),percentHeight:30,stockGraphs:[{valueField:"readings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_views")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[referrer]]: [[value]]"})).legend.addListener("clickLabel",function(A){A.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyReferrerLink"),A.dataItem.dataContext.referrer)}),y=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),f=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[x],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:i,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:i,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:i,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:i,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var D=function(A,C,U){$.each(n,function(k,T){l.getChapterReport(T.chapter.id,a,C,U).then(function(V){T.report=V,F(A)}),p.validateData(),u.validateData(),b.validateData(),y.validateData(),f.validateData()})};p.addListener("zoomed",function(){x.start=moment(p.startDate).startOf("day").toDate(),x.end=moment(p.endDate).startOf("day").toDate(),u.zoom(x.start,moment(x.end).startOf("day").add(1,"d").toDate()),D(!1,moment(x.start).startOf("day").add(1,"d").toDate(),moment(x.end).startOf("day").add(2,"d").toDate())}),e.toggleChapter=function(A){$.each(n,function(C,U){null!==U.chapter&&U.chapter.name===A&&(U.active=!U.active)}),F(!1)},D(!0,a.published,moment(new Date).startOf("day").add(2,"d").toDate())})}]),app.component("articleListDisplayablesList",{templateUrl:"/ClientApp/src/legacy-app/article/articleListDisplayablesList.html",bindings:{data:"<",mobile:"<"},controller:["$rootScope","skipThirdSnipService","shipmentService",function(e,t,a){var n=this;n.hideSnips=!1,n.hideSnips=scope.currentChapter.settings.configurations.hideSnipsInArticleFeed||!e.showSnipSlide,a.getShipmentSuper().then(function(c){n.superShipment=c}),n.$onChanges=function(c){c.data&&function l(){var c=[];n.counterOverdue=0,n.data.forEach(function(h,r){var i=0===r?null:n.data[r-1];(!i||4===i.articleListDisplayableType&&4!==h.articleListDisplayableType)&&(c.push({displayables:[],snips:[]}),n.counterOverdue=0),n.counterOverdue>3&&4!==h.articleListDisplayableType&&(c.push({displayables:[],snips:[]}),n.counterOverdue=0),n.counterOverdue++;var m=c[c.length-1];4===h.articleListDisplayableType?(n.counterOverdue=0,t.skipSnip(c.length,m.snip?m.snip.length+1:1)||m.snips.push(h)):m.displayables.push(h)}),n.groups=c}()}}]}),app.component("articleListDisplayablesListMore",{templateUrl:"/ClientApp/src/legacy-app/article/articleListDisplayablesListMore.html",bindings:{data:"<",mobile:"<"},controller:["$scope","scopeService",function(e,t){var a=this;a.groups=[],a.hideSnips=!1,this.$onInit=function(){a.hideSnips=scope.currentChapter.settings.configurations.hideSnipsInArticleFeed,a.data.forEach(function(n,l){var c=0===l?null:a.data[l-1];(!c||4===c.articleListDisplayableType&&4!==n.articleListDisplayableType)&&a.groups.push({displayables:[],snips:[]});var h=a.groups[a.groups.length-1];4===n.articleListDisplayableType?h.snips.push(n):h.displayables.push(n)})}}]}),app.factory("articleQuestionService",["$http","$q",function(e,t){return{getArticleQuestions:function(r){var i=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+r).then(function(m){i.resolve(m.data)},function(){i.reject()}),i.promise},getTranslatedArticleQuestions:function(r,i){var m=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/"+r+"/translate?targetLanguage="+i).then(function(d){m.resolve(d.data)},function(){m.reject()}),m.promise},postArticleQuestionAnswer:function(r,i){var m=t.defer(),d=i?'"'+i.replace(/\\/gm,"\\\\").replace(/"/gm,'\\"')+'"':null;return e.post(scope.apiEndpoint+"articleQuestions/articleQuestionItems/"+r,d).then(function(o){m.resolve(o.data)},function(){m.reject()}),m.promise},getAnswerId:function(r){var i=t.defer();return e.get(scope.apiEndpoint+"articleQuestions/answers/"+r).then(function(m){i.resolve(m.data)},function(){i.reject()}),i.promise},deleteArticleQuestionAnswersByUser:function(r){var i=t.defer();return e.delete(scope.apiEndpoint+"articleQuestions/"+r).then(function(m){i.resolve(m.data)},function(){i.reject()}),i.promise}}}]),app.controller("ArticleReportController",["$scope","$rootScope","article","chapterReport","articleService","scopeService","$timeout",function(e,t,a,n,l,c,h){AmCharts.isReady=!0,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:t.scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:r,value:0},{title:t.scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],m=[],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];e.chapterReport=n,e.article=a,h(function(){n.forEach(function(A){A.report.calendar.forEach(function(C){C.start=moment(C.start.replace("Z","")).toDate(),C.end=moment(C.end.replace("Z","")).toDate()})});var s,p,u,b,y,f,R,S=new Set;$.each(n,function(A,C){C.active=!0,2===C.chapter.managementState&&S.add(C.chapter.name)}),n.uniqueChapters=[],S.forEach(function(A){n.uniqueChapters.push(A)}),S.size>1&&(n.multiChapterShipment=!0);var v=[],w=function(){v.length=0,n.hasVariants=!1,$.each(n[0].report.calendar,function(A,C){v.push({start:C.start,end:C.end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]})}),$.each(n,function(A,C){if(C.active){C.report.variants.length&&$.each(C.report.variants,function(k,T){T.viewableImpressions>0&&(n.hasVariants=!0,T.hasViews=!0)});var U=a.id;$.each(C.report.calendar,function(k,T){T.id=U,v[k].viewableImpressions+=T.viewableImpressions,v[k].uniqueViewableImpressions+=T.uniqueViewableImpressions,v[k].billableViewableImpressions+=T.billableViewableImpressions,v[k].activeTimeSeconds+=T.activeTimeSeconds,v[k].readings+=T.readings,v[k].uniqueReadings+=T.uniqueReadings,v[k].uniqueReadingsHavingViewableImpressions+=T.uniqueReadingsHavingViewableImpressions,v[k].uniqueReadingPercentageReads+=T.uniqueReadingPercentageReads,v[k].maleUniqueReadings+=T.maleUniqueReadings,v[k].femaleUniqueReadings+=T.femaleUniqueReadings,v[k].desktopReadings+=T.desktopReadings,v[k].mobileReadings+=T.mobileReadings,v[k].tabletReadings+=T.tabletReadings,v[k].age1617MaleUniqueReadings+=T.age1617MaleUniqueReadings,v[k].age1824MaleUniqueReadings+=T.age1824MaleUniqueReadings,v[k].age2534MaleUniqueReadings+=T.age2534MaleUniqueReadings,v[k].age3544MaleUniqueReadings+=T.age3544MaleUniqueReadings,v[k].age4554MaleUniqueReadings+=T.age4554MaleUniqueReadings,v[k].age55MaleUniqueReadings+=T.age55MaleUniqueReadings,v[k].age1617FemaleUniqueReadings+=T.age1617FemaleUniqueReadings,v[k].age1824FemaleUniqueReadings+=T.age1824FemaleUniqueReadings,v[k].age2534FemaleUniqueReadings+=T.age2534FemaleUniqueReadings,v[k].age3544FemaleUniqueReadings+=T.age3544FemaleUniqueReadings,v[k].age4554FemaleUniqueReadings+=T.age4554FemaleUniqueReadings,v[k].age55FemaleUniqueReadings+=T.age55FemaleUniqueReadings,v[k].uniqueReadingPercentage24Reads+=T.uniqueReadingPercentage24Reads,v[k].uniqueReadingPercentage2549Reads+=T.uniqueReadingPercentage2549Reads,v[k].uniqueReadingPercentage5074Reads+=T.uniqueReadingPercentage5074Reads,v[k].uniqueReadingPercentage75100Reads+=T.uniqueReadingPercentage75100Reads,T.referrers.length&&T.referrers.forEach(function(V){v[k].referrers.push(V)})})}}),s.validateData(),p.validateData(),u.validateData(),b.validateData(),y.validateData(),f.validateData(),R.validateData()},g=n.summary={referrers:[]},x=function(A,C){g.viewableImpressions=0,g.uniqueViewableImpressions=0,g.billableViewableImpressions=0,g.activeTimeSeconds=0,g.readings=0,g.uniqueReadings=0,g.uniqueReadingsHavingViewableImpressions=0,g.uniqueReadingPercentageReads=0,g.maleUniqueReadings=0,g.femaleUniqueReadings=0,g.desktopReadings=0,g.mobileReadings=0,g.tabletReadings=0,g.age1617MaleUniqueReadings=0,g.age1824MaleUniqueReadings=0,g.age2534MaleUniqueReadings=0,g.age3544MaleUniqueReadings=0,g.age4554MaleUniqueReadings=0,g.age55MaleUniqueReadings=0,g.age1617FemaleUniqueReadings=0,g.age1824FemaleUniqueReadings=0,g.age2534FemaleUniqueReadings=0,g.age3544FemaleUniqueReadings=0,g.age4554FemaleUniqueReadings=0,g.age55FemaleUniqueReadings=0,g.uniqueReadingPercentage24Reads=0,g.uniqueReadingPercentage2549Reads=0,g.uniqueReadingPercentage5074Reads=0,g.uniqueReadingPercentage75100Reads=0;var U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0,K=0,Y=0;g.start=A,g.end=C,g.referrers.length=0,$.each(v,function(L,H){var J=new Date(H.start);J<A||J>C||(g.viewableImpressions+=H.viewableImpressions,g.uniqueViewableImpressions+=H.uniqueViewableImpressions,g.billableViewableImpressions+=H.billableViewableImpressions,g.activeTimeSeconds+=H.activeTimeSeconds,g.readings+=H.readings,g.uniqueReadingPercentageReads+=H.uniqueReadingPercentageReads,g.maleUniqueReadings+=H.maleUniqueReadings,g.femaleUniqueReadings+=H.femaleUniqueReadings,g.uniqueReadings+=H.uniqueReadings,g.uniqueReadingsHavingViewableImpressions+=H.uniqueReadingsHavingViewableImpressions,g.uniqueReadingPercentage24Reads+=H.uniqueReadingPercentage24Reads,g.uniqueReadingPercentage2549Reads+=H.uniqueReadingPercentage2549Reads,g.uniqueReadingPercentage5074Reads+=H.uniqueReadingPercentage5074Reads,g.uniqueReadingPercentage75100Reads+=H.uniqueReadingPercentage75100Reads,U+=H.desktopReadings,k+=H.mobileReadings,T+=H.tabletReadings,V+=H.age1617MaleUniqueReadings,M+=H.age1824MaleUniqueReadings,_+=H.age2534MaleUniqueReadings,O+=H.age3544MaleUniqueReadings,q+=H.age4554MaleUniqueReadings,P+=H.age55MaleUniqueReadings,E+=H.age1617FemaleUniqueReadings,N+=H.age1824FemaleUniqueReadings,j+=H.age2534FemaleUniqueReadings,W+=H.age3544FemaleUniqueReadings,K+=H.age4554FemaleUniqueReadings,Y+=H.age55FemaleUniqueReadings,H.referrers.forEach(function(Z){var X=g.referrers.filter(function(ee){return ee.referrer===Z.referrer});X.length?X[0].readings+=Z.readings:g.referrers.push({referrer:Z.referrer,readings:Z.readings,color:Z.color})}))}),g.referrers.sort(function(L,H){return H.readings-L.readings}),g.referrers.forEach(function(L){L.name=L.referrer?L.referrer.substring(0,30):L.referrer}),m.length=0,[].push.apply(m,g.referrers.slice(0,8)),m.filter(function(L){return!L.color}).forEach(function(L,H){L.color=b.colors[H]});var B=g.referrers.slice(9,-1),z={referrer:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:t.scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:b.colors[10]};B.forEach(function(L){z.readings+=L.readings}),z.readings>0&&m.push(z);var Q=U+k+T;g.desktopReadings=Math.round(100/(Q/U)),g.mobileReadings=Math.round(100/(Q/k)),g.tabletReadings=Math.round(100/(Q/T)),g.maleUniqueReadings=Math.round(g.maleUniqueReadings),g.femaleUniqueReadings=Math.round(g.femaleUniqueReadings),i[0].value=g.femaleUniqueReadings,i[1].value=g.maleUniqueReadings;var G=V+M+_+O+q+P+E+N+j+W+K+Y;g.age1617MaleUniqueReadings=Math.round(100/(G/V)),g.age1824MaleUniqueReadings=Math.round(100/(G/M)),g.age2534MaleUniqueReadings=Math.round(100/(G/_)),g.age3544MaleUniqueReadings=Math.round(100/(G/O)),g.age4554MaleUniqueReadings=Math.round(100/(G/q)),g.age55MaleUniqueReadings=Math.round(100/(G/P)),g.age1617FemaleUniqueReadings=Math.round(100/(G/E)),g.age1824FemaleUniqueReadings=Math.round(100/(G/N)),g.age2534FemaleUniqueReadings=Math.round(100/(G/j)),g.age3544FemaleUniqueReadings=Math.round(100/(G/W)),g.age4554FemaleUniqueReadings=Math.round(100/(G/K)),g.age55FemaleUniqueReadings=Math.round(100/(G/Y)),d[0].male=Math.round(-1*g.age1617MaleUniqueReadings),d[1].male=Math.round(-1*g.age1824MaleUniqueReadings),d[2].male=Math.round(-1*g.age2534MaleUniqueReadings),d[3].male=Math.round(-1*g.age3544MaleUniqueReadings),d[4].male=Math.round(-1*g.age4554MaleUniqueReadings),d[5].male=Math.round(-1*g.age55MaleUniqueReadings),d[0].female=Math.round(g.age1617FemaleUniqueReadings),d[1].female=Math.round(g.age1824FemaleUniqueReadings),d[2].female=Math.round(g.age2534FemaleUniqueReadings),d[3].female=Math.round(g.age3544FemaleUniqueReadings),d[4].female=Math.round(g.age4554FemaleUniqueReadings),d[5].female=Math.round(g.age55FemaleUniqueReadings),o[0].value=g.desktopReadings,o[1].value=g.mobileReadings,o[2].value=g.tabletReadings,u.validateData(),y.validateData(),f.validateData(),R.validateData(),b.validateData(),e.$$phase||e.$apply()};s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+t.scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:t.scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),p=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.getResourceOrKeyName("web_reportArticle_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:t.scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),u=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!1,marginLeft:2,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[name]]: [[value]]"})).legend.addListener("clickLabel",function(A){A.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(t.scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),A.dataItem.dataContext.referrer)}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:t.scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:r,balloonText:"[[value]]%"},{fillAlphas:1,title:t.scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(A){return-1*A.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(A){return A<0?-1*A+"":A+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),f=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),R=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[g],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:r,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:r,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:r,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:r,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var A=moment(s.startDate).startOf("day").toDate(),C=moment(s.endDate).startOf("day").add(-1,"d").toDate();x(A,C),p.zoom(A,moment(C).add(1,"d").toDate())};s.addListener("zoomed",function(){F()}),e.toggleChapter=function(A){$.each(n,function(C,U){null!==U.chapter&&U.chapter.name===A&&(U.active=!U.active)}),w(),F()},F(),w();var I=!1;setInterval(function(){"visible"!==document.visibilityState||0===v.length||I||(I=!0,l.getLatestReport(a.id).then(function(A){if(A){A[0].start=moment(A[0].start.replace("Z","")).toDate(),A[0].end=moment(A[0].end.replace("Z","")).toDate();var C={start:A[0].start,end:A[0].end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]};$.each(A,function(T,V){n[T].active&&(C.viewableImpressions+=V.viewableImpressions,C.uniqueViewableImpressions+=V.uniqueViewableImpressions,C.billableViewableImpressions+=V.billableViewableImpressions,C.activeTimeSeconds+=V.activeTimeSeconds,C.readings+=V.readings,C.uniqueReadings+=V.uniqueReadings,C.uniqueReadingsHavingViewableImpressions+=V.uniqueReadingsHavingViewableImpressions,C.uniqueReadingPercentageReads+=V.uniqueReadingPercentageReads,C.maleUniqueReadings+=V.maleUniqueReadings,C.femaleUniqueReadings+=V.femaleUniqueReadings,C.desktopReadings+=V.desktopReadings,C.mobileReadings+=V.mobileReadings,C.tabletReadings+=V.tabletReadings,C.age1617MaleUniqueReadings+=V.age1617MaleUniqueReadings,C.age1824MaleUniqueReadings+=V.age1824MaleUniqueReadings,C.age2534MaleUniqueReadings+=V.age2534MaleUniqueReadings,C.age3544MaleUniqueReadings+=V.age3544MaleUniqueReadings,C.age4554MaleUniqueReadings+=V.age4554MaleUniqueReadings,C.age55MaleUniqueReadings+=V.age55MaleUniqueReadings,C.age1617FemaleUniqueReadings+=V.age1617FemaleUniqueReadings,C.age1824FemaleUniqueReadings+=V.age1824FemaleUniqueReadings,C.age2534FemaleUniqueReadings+=V.age2534FemaleUniqueReadings,C.age3544FemaleUniqueReadings+=V.age3544FemaleUniqueReadings,C.age4554FemaleUniqueReadings+=V.age4554FemaleUniqueReadings,C.age55FemaleUniqueReadings+=V.age55FemaleUniqueReadings,C.uniqueReadingPercentage24Reads+=V.uniqueReadingPercentage24Reads,C.uniqueReadingPercentage2549Reads+=V.uniqueReadingPercentage2549Reads,C.uniqueReadingPercentage5074Reads+=V.uniqueReadingPercentage5074Reads,C.uniqueReadingPercentage75100Reads+=V.uniqueReadingPercentage75100Reads,V.referrers.length&&V.referrers.forEach(function(M){C.referrers.push(M)}))}),v[v.length-1].start-A[0].start==0?v[v.length-1]=C:v.push(C),s.validateData(),p.validateData();var U=moment(s.startDate).startOf("day").toDate(),k=moment(s.endDate).startOf("day").add(-1,"d").toDate();U<=A[0].start&&k>=A[0].start&&x(U,k),I=!1}}))},1e4)},function(){$location.path("/")})}]),app.factory("articleService",["$http","$q","$rootScope","profileService",function(e,t,a,n){var l={},h=function(M){if(!M.articleListDisplayableType||1!==M.articleListDisplayableType)return M;if(M.coverAssetReference||(M.coverAssetReference={assetImage:{assetImageUrl:scope.globalSettings.blobStorageCdnUrl+"/"+scope.globalSettings.blobStorageContainerNameImage+"/dummy.jpg",source:scope.currentScope.network.name,text:"Symbolbild",cache:0}}),l[M.id]){var _=l[M.id],O=function(M){return M&&l[M]?{revisionTestId:l[M].revisionTestId,heading:l[M].heading,text:l[M].text,coverAsset:angular.copy(l[M].coverAsset)}:{}}(_.id);return!_.detailsLoaded||M.detailsLoaded?angular.copy(M,_):angular.extend(_,M),angular.extend(_,O),M.assets&&M.coverAsset&&M.coverAsset.guid&&M.assets.forEach(function(q){if(q.guid===M.coverAsset.guid)return _.coverAsset=q,!1}),_}return l[M.id]=M,M},i=function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/translate/"+M).then(function(O){_.resolve(O.data)},function(){_.reject()}),_.promise};return{createArticle:function(){var M=t.defer();return e.post(scope.apiEndpoint+"articles").then(function(_){M.resolve(_.data)},function(){M.reject()}),M.promise},getArticles:function(){var M=t.defer(),_=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==_){var O=a.scope.profile,q=a.scope.network.settings.languagePack.split("-")[0];return null!=O.activeUserLanguage?.vendorLanguageCode&&q!=O.activeUserLanguage?.vendorLanguageCode?(i(O.activeUserLanguage.vendorLanguageCode).then(function(P){var E=P;E.forEach(function(N,j){E[j]=h(N)}),M.resolve(E)},function(){M.reject()}),M.promise):(e.get(scope.apiEndpoint+"articles").then(function(P){var E=P.data;E.forEach(function(N,j){E[j]=h(N)}),M.resolve(E)},function(){M.reject()}),M.promise)}return e.get(scope.apiEndpoint+"articles").then(function(P){var E=P.data;E.forEach(function(N,j){E[j]=h(N)}),M.resolve(E)},function(){M.reject()}),M.promise},getTranslatedArticles:i,getArticlesForEventCalendar:function(){var M=t.defer();return e.get(scope.apiEndpoint+"articles/events").then(function(_){var O=_.data;O.forEach(function(q,P){O[P]=h(q)}),M.resolve(O)},function(){M.reject()}),M.promise},getArticleIds:function(){var M=t.defer();return e.get(scope.apiEndpoint+"articles/ids").then(function(_){M.resolve(_.data)},function(){M.reject()}),M.promise},getArticlesByAuthor:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/author/"+M).then(function(O){var q=O.data;q.forEach(function(P,E){q[E]=h(P)}),_.resolve(q)},function(){_.reject()}),_.promise},getArticleDetails:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M).then(function(O){O.data.detailsLoaded=!0,_.resolve(h(O.data))},function(){_.reject()}),_.promise},getTranslatedArticleDetails:function(M,_){var O=t.defer();return e.post(scope.apiEndpoint+"articles/"+M+"/translate/"+_).then(function(q){q.data.detailsLoaded=!0,O.resolve(q.data)},function(){O.reject()}),O.promise},getArticleFromCache:function(M){var _=t.defer();return l[M]?_.resolve(l[M]):_.reject(),_.promise},getArticleEdit:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/edit").then(function(O){_.resolve(O.data)},function(O){_.reject()}),_.promise},updateArticle:function(M){var _=t.defer();return e.put(scope.apiEndpoint+"articles",M).then(function(O){angular.copy(O.data,M),_.resolve(O)},function(){_.reject()}),_.promise},publishArticle:function(M){var _=t.defer();return e.put(scope.apiEndpoint+"articles/"+M.id+"/publish",M).then(function(O){_.resolve(O)},function(){_.reject()}),_.promise},publishArticleRequest:function(M){var _=t.defer();return e.put(scope.apiEndpoint+"articles/"+M.id+"/publishRequest").then(function(O){_.resolve(O)},function(){_.reject()}),_.promise},like:function(M){var _=t.defer();return e.put(scope.apiEndpoint+"articles/"+M+"/like").then(function(O){_.resolve(O.data)},function(){_.reject()}),_.promise},getRecommendedArticles:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/recommendedarticles").then(function(O){var q=O.data;q.forEach(function(P,E){q[E]=h(P)}),_.resolve(q)},function(){_.reject()}),_.promise},getSearch:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/search?searchText="+M).then(function(O){var q=O.data;q.forEach(function(P,E){q[E]=h(P)}),_.resolve(q)},function(){_.reject()}),_.promise},getExitRates:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/exitrates").then(function(O){_.resolve(O.data)},function(){_.reject()}),_.promise},getReport:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/report").then(function(O){_.resolve(O.data)},function(){_.reject()}),_.promise},getLatestReport:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/report/latest",{ignoreLoadingBar:!0}).then(function(O){_.resolve(O.data)},function(){_.reject()}),_.promise},deleteArticle:function(M){var _=t.defer();return e.delete(scope.apiEndpoint+"articles/"+M).then(function(O){_.resolve(O)},function(){_.reject()}),_.promise},checkNotification:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/checknotification").then(function(O){_.resolve(O.data)},function(O){_.reject()}),_.promise},getArticlesByIds:function(M){var _=t.defer();return e.post(scope.apiEndpoint+"articles/loadMore",M).then(function(O){var q=O.data;q.forEach(function(P,E){q[E]=h(P)}),_.resolve(q)},function(){_.reject()}),_.promise},getChapterReport:function(M,_,O,q){var P=t.defer();return e.get(scope.apiEndpoint+"articles/chapterreport?chapterId="+M+"&articleId="+_.id+"&start="+new Date(O).getTime()+"&end="+new Date(q).getTime()).then(function(E){P.resolve(E.data)},function(){P.reject()}),P.promise},getElasticReport:function(M){var _=t.defer();return e.get(scope.apiEndpoint+"articles/"+M+"/elastic").then(function(O){_.resolve(O.data)},function(){_.reject()}),_.promise},deleteScheduledPublish:function(M){var _=t.defer();return e.delete(scope.apiEndpoint+"articles/ScheduledPublish/"+M).then(function(O){_.resolve(O)},function(){_.reject()}),_.promise},getContentConnectNetworks:function(){var M=t.defer();return e.get(scope.apiEndpoint+"ccNetworks").then(function(_){M.resolve(_.data)},function(){M.reject()}),M.promise}}}]),app.component("imageInfo",{templateUrl:"/ClientApp/src/legacy-app/article/imageInfo.html",bindings:{assetImage:"<",text:"<",source:"<",showByDefault:"<"},controller:["$element","$timeout","$rootScope",function(e,t,a){var n=this;this.$onInit=function(){n.showByDefault=!1,this.assetImage&&((7===this.assetImage.imageSourceType||this.assetImage.imageProperties&&7===this.assetImage.imageProperties.imageSourceType||this.assetImage.alwaysShowImageDescription)&&(this.showByDefault=!0),n.text=this.assetImage.text,n.source=this.assetImage.source),n.showinfo=function(){e.find(".imageInfo-view")[0]&&e.find(".imageInfo-contentView")[0]&&$(e.find(".imageInfo-view")[0]).css("height",e.find(".imageInfo-contentView")[0].offsetHeight),t(function(){$(e.find(".imageInfo").toggleClass("imageInfo-collapsed"))})}}}]}),app.controller("AddAssetArticleDialogController",["$rootScope","$scope","articleService","assetArticleService","ownerId","onAddSuccessful","ownerType",function(e,t,a,n,l,c,h){var r=this;t.url=null,t.assetArticle=null,t.errorMessage=null,t.articleRegex=new RegExp("^https?://"+escape(e.scope.currentScope.network.domain)+"/(.*)_(.*)"),r.searchArticles=function(i){if(!t.searchArticleForm.$invalid){var d=t.articleRegex.exec(i)[2];t.assetArticle=null,a.getArticleDetails(d).then(function(o){t.assetArticle={coverAssetImageUrl:o.coverAssetReference.assetImage.assetImageUrl,coverAssetImageCache:o.coverAssetReference.assetImage.cache,path:o.path,chapterSlugs:o.chapterSlugs,heading:o.heading,text:o.text,attachedArticleId:o.id}})}},r.close=function(){t.$dismiss()},r.reset=function(){t.assetArticle=null,t.url=null,t.searchArticleForm.$setPristine()},r.addAssetArticle=function(){n.addAssetArticle(l,t.assetArticle.attachedArticleId,h).then(function(i){c(i),t.$dismiss()})}}]),app.component("assetArticleItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetArticleItem.html",bindings:{assetArticle:"<"},controller:["$rootScope",function(e){this.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage}]}),app.service("assetArticleService",["$http","$q","$rootScope",function(e,t,a){var l=a.scope.apiEndpoint+"assetArticles";return this.addAssetArticle=function(c,h,r){var i=t.defer();return e.post(l,{ownerId:c,articleId:h,assetArticleType:r}).then(function(d){i.resolve(d.data)},function(){i.reject()}),i.promise},this}]),app.controller("AssetChildListDialog",["$rootScope","$scope","$q","$interval","$timeout","archived","parentAssetReference","assetService","reportAsset","deleteAsset",function(e,t,a,n,l,c,h,r,i,m){t.working=!1,t.error=!1,t.parentAssetReference=h,t.showVerifiedUser=t.parentAssetReference.user.isVerifiedUser,t.enableVerifiedUsers=e.scope.currentChapter.settings.configurations.enableVerifiedUsers,t.archived=c;var d={type:0,text:"",attachment:"",source:"",parentGuid:h.guid};t.assetText={},t.assetReferences=[],angular.copy(d,t.assetText);var o,s=function(){var b=t.parentAssetReference;t.parentAssetReference.childAssets&&t.parentAssetReference.childAssets.length&&(b=t.parentAssetReference.childAssets.sort(function(R,S){return new Date(R.created)>new Date(S.created)?-1:1})[0]);var f=a.defer();o=f.promise,r.getChildren(h.guid,b.created).then(function(R){return h.childAssets||(h.childAssets=[]),Array.prototype.push.apply(h.childAssets,R),!0},function(){return!0}).then(function(){f.resolve(),o=null})};o&&o();var u=n(function(){s()},1e4);t.$on("$destroy",function(){s(),n.cancel(u)}),t.focusInput=function(){/(android)/i.test(navigator.userAgent)&&setTimeout(function(){var b=$(".modal");b.scrollTop(b.height()+b.offset().top)},500)},t.post=function(){t.assetText.text.length<e.scope.currentScope.chapter.settings.assetTextMinLength||t.assetText.text.length>e.scope.currentScope.chapter.settings.assetTextMaxLength||(t.working=!0,r.insertChild(h.guid,t.assetText).then(function(b){angular.copy(d,t.assetText),l(function(){var y=document.createEvent("Event");y.initEvent("autosize.update",!0,!1),$(".assetChildListDialog").find("textarea")[0].dispatchEvent(y)}),s(),t.working=!1}))},t.deleteAsset=m,t.reportAsset=i,t.isAssetTextValid=function(){return e.scope.currentScope.chapter.settings.assetTextMinLength<=t.assetText.text.length},t.isAddDisable=function(){return!t.isAssetTextValid()||t.working}}]),app.component("asset",{templateUrl:"/ClientApp/src/legacy-app/asset/asset.html",bindings:{assetReference:"<",snip:"<",article:"<",sponsoredArticle:"<",staticArticle:"<",imageGalleryItemIndex:"<"},controller:["$uibModal","$rootScope","clickService","$element","$state","authService","apicodoMediaService",function(e,t,a,n,l,c,h){var r=this;r.profile=t.profile,this.assetImageFocuspointDialog=function(o){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return o}}})},r.clickAssetReference=function(){r.assetReference.oculus.click(),a.clickAssetReference(r.assetReference.oculus.guid,r.assetReference.id)},this.$onInit=function(){if(r.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,r.assetReference){var o=t.scope.currentScope.network;r.article&&(r.assetReference.oculus=Oculus.trackAssetReferenceImpression(n.find(".asset"),{ia:r.article.id,iar:r.article.revisionId,iav:r.article.variantId,c:r.article.chapterSlug,n:o.slug,ari:r.assetReference.id}),r.assetReference.oculus.persistent=l.includes("app.root")),r.sponsoredArticle&&(r.assetReference.oculus=Oculus.trackAssetReferenceImpression(n.find(".asset"),{isa:r.sponsoredArticle.id,isar:r.sponsoredArticle.revisionId,isav:r.sponsoredArticle.variantId,c:r.sponsoredArticle.chapterSlug,n:o.slug,ari:r.assetReference.id}),r.assetReference.oculus.persistent=l.includes("app.root")),r.showCookieExternalMediaInfo=!!t.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled&&function i(){var o=0;switch(t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(o=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),o){case 1:return function d(){const{twitter:o,youTube:s,facebook:p,vimeo:u,giphy:b}=t.scope.profile.settings.externalMediaPermissions;switch(r.assetReference?.assetText?.type){case 4:return!o?.granted;case 5:return!s?.granted;case 6:return!p?.granted;case 7:return!u?.granted;case 10:return!b?.granted;default:return!1}}();case 4:return function m(){const p=!r.profile.hasCookiesConsented&&!r.profile.isRegistered,b=[5,6,7,10].some(y=>r.assetReference.assetText.type===y);return p&&b}();default:return!1}}()}}}]}),app.controller("AssetCreateCommonDialog",["$interpolate","$rootScope","$scope","assetType","createAssetAsync","resultCallback",function(e,t,a,n,l,c){a.working=!1,a.error=!1,a.web_assetDialog_description=e(t.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:t.scope.currentScope.network.name}),a.asset={type:n,text:"",attachment:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},a.createAsset=function(){a.working||!a.asset.text||a.asset.text.length<t.scope.currentScope.chapter.settings.assetTextMinLength||a.asset.text.length>t.scope.currentScope.chapter.settings.assetTextMaxLength||(a.working=!0,l(a.asset).then(function(h){c&&(h.assetText.user=h.user,c(h)),a.$dismiss()},function(){a.error=!0,a.working=!1}))}}]),app.controller("AssetCreateFileDialog",["$interpolate","$rootScope","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,n,l,c,h){a.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.closedChapter=t.scope.currentChapter.closed,a.chapterName=t.scope.currentChapter.name,a.numberOfClosedChapter=t.scope.network.chapters.filter(function(i){return i.closed}).length,a.accessibility=0,a.accessibilitySelectionDataSource=[{value:0,text:a.chapterName},{value:1,text:scope.currentScope.network.getResourceOrKeyName("web_asset_addFileDialog_accessibility_select_networkwide")}];var r={type:11,text:"",fileName:"",attachment:"",fileSource:"",guid:"",uploadError:"",source:"",sourceType:null,author:"",title:"",sourceUrl:"",mimeType:null,accessibility:null};a.form={},a.files=n,a.workingFiles=n.length,angular.forEach(n,function(i,m){i.assetFile=angular.copy(r),i.assetFile.fileName=i.fileName,i.prefix="file"+m,i.uploadAssetProgress=0,i.uploadAsset=h.upload({url:scope.apiEndpoint+"upload",data:{file:i}}).then(function(d){i.assetFile.guid=d.data},function(d){i.uploadError="Error: "+d.data,a.$dismiss()},function(d){i.uploadAssetProgress=parseInt(100*d.loaded/d.total)}).finally(function(){i.uploadAsset=null,a.workingFiles--})}),a.copyFileData=function(){var i=n[0];angular.forEach(n,function(m,d){if(d>0){var o=m.assetFile.guid;m.assetFile=angular.copy(i.assetFile),m.assetFile.guid=o}})},a.createFiles=function(i){i&&angular.forEach(n,function(m){a.working=!0,m.assetFile.mimeType=m.type,m.assetFile.fileName=m.name,m.assetFile.accessibility=a.accessibility,l(m.assetFile).then(function(d){c&&(d.assetFile.user=d.user,c(d)),a.working=!1,a.$dismiss()},function(){a.error=!0,a.working=!1})})},a.cancel=function(){a.$dismiss()}}]),app.controller("AssetCreateGifDialog",["$scope","$rootScope","createAssetAsync","resultCallback","$http","$q",function(e,t,a,n,l,c){e.working=!1,e.error=!1,e.query="",e.gifHits=null,e.assetText={type:10,text:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},e.offset=0,e.limit=t.mobile?90:6,e.clear=function(){e.gifHits=null,e.offset=0},e.showMoreGifs=function(){var r,i,m,d;(r=e.query,i=e.offset,m=e.limit,d=c.defer(),l.get("https://api.giphy.com/v1/gifs/search?api_key=gF576MzYtgG2BZmhA2xRDU9DSPG6o96i&q="+encodeURIComponent(r)+"&limit="+m+"&offset="+i,{withCredentials:!1}).then(function(o){e.gifHits=null===e.gifHits?o.data.data:e.gifHits.concat(o.data.data),d.resolve(o.data)},function(){d.reject()}),d.promise).then(function(r){e.offset=e.offset+e.limit})},e.searchGifs=function(){e.clear(),e.showMoreGifs()},e.createAsset=function(r){e.working||(e.working=!0,e.assetText.text=r.images.original.url,a(e.assetText).then(function(i){n&&(i.assetText.user=i.user,n(i)),e.$dismiss()},function(){e.error=!0,e.working=!1}))}}]),app.controller("AssetCreateImageDialog",["$interpolate","$rootScope","$scope","files","createAssetAsync","resultCallback","Upload",function(e,t,a,n,l,c,h){a.web_assetDialog_createImage_canBeUsedElsewhere=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_canBeUsedElsewhere"))({networkName:scope.currentScope.network.name}),a.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),a.defaultSourceTypes={1:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType1,sourceType:1,riskLevel:1,expirationDays:0,checkRequired:!1},2:{name:scope.currentScope.network.name,sourceType:2,riskLevel:1,expirationDays:0,checkRequired:!1},3:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType3,sourceType:3,riskLevel:1,expirationDays:0,checkRequired:!1},4:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType4,sourceType:4,riskLevel:2,expirationDays:30,checkRequired:!1},5:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType5,sourceType:5,riskLevel:1,expirationDays:0,checkRequired:!1},7:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7,sourceType:7,riskLevel:2,expirationDays:30,checkRequired:!0},8:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType8,sourceType:8,riskLevel:2,expirationDays:30,checkRequired:!1},9:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType9,sourceType:9,riskLevel:3,expirationDays:14,checkRequired:!0},12:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType12,sourceType:12,riskLevel:3,expirationDays:14,checkRequired:!0},14:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType14,sourceType:14,riskLevel:3,expirationDays:14,checkRequired:!0},15:{name:scope.currentScope.network.resources.web_assetDialog_createImage_sourceType15,sourceType:15,riskLevel:1,expirationDays:0,checkRequired:!1}},a.profile.isMerkuristJournalist||delete a.defaultSourceTypes[2],a.creativeCommonsLicenses={1:{name:"CC0 1.0",value:"[CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/deed.de)",validity:!0},2:{name:"BY 1.0",value:"[BY 1.0](https://creativecommons.org/licenses/by/1.0/legalcode)",validity:!0},3:{name:"BY 2.0",value:"[BY 2.0](https://creativecommons.org/licenses/by/2.0/de/legalcode)",validity:!0},4:{name:"BY 2.5",value:"[BY 2.5](https://creativecommons.org/licenses/by/2.5/legalcode)",validity:!0},5:{name:"BY 3.0",value:"[BY 3.0](https://creativecommons.org/licenses/by/3.0/de/legalcode)",validity:!0},6:{name:"BY 4.0",value:"[BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)",validity:!0},7:{name:"BY-SA 1.0",value:"[BY-SA 1.0](https://creativecommons.org/licenses/by-sa/1.0/legalcode)",validity:!0},8:{name:"BY-SA 2.0",value:"[BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/de/legalcode)",validity:!0},9:{name:"BY-SA 2.5",value:"[BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/legalcode)",validity:!0},10:{name:"BY-SA 3.0",value:"[BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/de/legalcode)",validity:!0},11:{name:"BY-SA 4.0",value:"[BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/legalcode)",validity:!0},12:{name:"BY-ND",value:"",validity:!1},13:{name:"BY-NC",value:"",validity:!1},14:{name:"BY-NC-SA",value:"",validity:!1},15:{name:"BY-ND-NC",value:"",validity:!1},16:{name:"BY-NC-ND",value:"",validity:!1}};var r={type:2,text:"",attachment:"",imageSource:"",uploadGuid:"",pdfUploadGuid:"",uploadError:"",source:"",expirationDate:"",expirationDays:0,canBeUsedElsewhere:t.scope.currentScope.network.settings.simpleImageSource||!(a.profile.isJournalist||a.profile.isMerkuristJournalist),sourceType:null,author:"",title:"",dateOfPermission:"",descriptionOfPermission:"",permissionGivenBy:"",pressServiceUrl:"",sourceUrl:"",agency:"",creativeCommonsLicense:"",dateOfScreenshot:"",canBeUsedEditorial:!0,canBeUsedAdvertising:!1,imageId:"",mimeType:null,alwaysShowImageDescription:!!t.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue};a.form={},a.files=n,a.workingFiles=n.length,angular.forEach(n,function(d,o){d.assetImage=angular.copy(r),d.ccLicense=null,d.ccLicenseError="",d.visibleImageSource="",d.prefix="file"+o,d.overrideSource=null,t.scope.currentScope.network.settings.simpleImageSource&&(d.assetImage.sourceType=16),d.uploadAssetProgress=0,d.uploadAsset=h.upload({url:scope.apiEndpoint+"upload",data:{file:d}}).then(function(s){d.assetImage.uploadGuid=s.data},function(s){d.uploadError="Error: "+s.data,a.$dismiss()},function(s){d.uploadAssetProgress=parseInt(100*s.loaded/s.total)}).finally(function(){(function i(d){["image/bmp","image/gif","image/exif","image/png","image/tif","image/tiff","image/tff","image/jpg","image/jpeg","image/jpe","image/jif","image/jfif","image/jfi"].includes(d.type)||a.form[d.prefix+"_type"].$setValidity("validateType",!1)})(d),d.uploadAsset=null,a.workingFiles--}),d.uploadPdf=function(s){s&&(a.workingFiles++,h.upload({url:scope.apiEndpoint+"upload",data:{file:s}}).then(function(p){d.assetImage.pdfUploadGuid=p.data,d.uploadedPdfName=s.name},function(p){d.uploadPdfError="Error: "+p.data,d.uploadedPdfName=null},function(p){}).finally(function(){a.workingFiles--}))},d.removePdf=function(){d.assetImage.pdfUploadGuid=null,d.uploadPdfName=null},d.sourceTypeSelected=function(){var s=d.assetImage.sourceType,p=d.assetImage.uploadGuid,u=d.assetImage.text;d.assetImage=angular.copy(r),d.assetImage.sourceType=s,d.assetImage.uploadGuid=p,d.assetImage.text=u,s&&(a.profile.isJournalist||a.profile.isMerkuristJournalist?a.form.$setPristine():a.formNonAuthor.$setPristine(),(2===s||1===s&&(a.profile.isJournalist||a.profile.isMerkuristJournalist))&&(d.assetImage.canBeUsedAdvertising=!0),8===s&&(d.assetImage.canBeUsedEditorial=!1),(4===s||16===s||3!==s.riskLevel)&&(d.assetImage.canBeUsedElsewhere=!0),d.assetImage.expirationDays=s.expirationDays,a.copyImageData())},d.creativeCommonsLicenseSelected=function(){var s=d.ccLicense;if(a.form[d.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!1),s&&!s.validity)d.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_0+" "+s.name+" "+scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicensePlatformError_1;else{if(!s)return void(d.ccLicenseError=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectLicenseError);a.form[d.prefix+"_selectCreativeCommonsLicense"].$setValidity("validateCreativeCommons",!0),d.ccLicenseError=null}d.assetImage.creativeCommonsLicense=s.name,a.copyImageData()},d.generateImageSource=function(){var s=d.assetImage.author,p=d.assetImage.author;switch(d.assetImage.sourceType){case 2:d.assetImage.author||(s=p=scope.currentScope.network.name);break;case 5:d.assetImage.pressServiceUrl&&(s+=", [source]("+d.assetImage.pressServiceUrl+")");break;case 7:d.ccLicense&&!d.ccLicense.validity?s=scope.currentScope.network.resources.web_assetDialog_createImage_sourceType7_selectedInvalidLicenseError:d.ccLicense&&s&&(d.assetImage.title&&(s+=", ["+d.assetImage.title+"]",p=p+", "+d.assetImage.title),d.assetImage.sourceUrl&&(s+="("+d.assetImage.sourceUrl+")"),d.assetImage.creativeCommonsLicense&&(s+=", "+d.ccLicense.value,p+=", "+d.ccLicense.name));break;case 8:d.assetImage.agency&&(s=p="\xa9 "+s+" / "+d.assetImage.agency)}d.assetImage.source=s,d.visibleImageSource=p,a.copyImageData()},d.hasExpirationChanged=function(){d.hasExpirationDays||(d.assetImage.expirationDays=0)},d.overrideSourceChanged=function(){d.overrideSource?(d.sourceTypeSelected(),d.generateImageSource()):a.copyImageData()}}),a.$watch("files[0].assetImage.text",function(d,o,s){for(var p=1;p<n.length;p++){var u=n[p].assetImage.text;n[p].assetImage.text=u===o?d:u}}),a.copyImageData=function(){var d=n[0];angular.forEach(n,function(o,s){if(s>0&&!o.overrideSource){var p=o.assetImage.uploadGuid;o.assetImage=angular.copy(d.assetImage),o.assetImage.uploadGuid=p,o.visibleImageSource=d.visibleImageSource}})};var m=function(d){if(d&&d.indexOf(!1)){var o=d.split(".");return o[2]+"-"+o[1]+"-"+o[0]}return d};a.createImages=function(d){d&&angular.forEach(n,function(o){a.working=!0,o.assetImage.dateOfScreenshot=m(o.assetImage.dateOfScreenshot),o.assetImage.dateOfPermission=m(o.assetImage.dateOfPermission),o.assetImage.mimeType=o.type,l(o.assetImage).then(function(s){c&&(s.assetImage.user=s.user,c(s)),a.working=!1,a.$dismiss()},function(){a.error=!0,a.working=!1})})},a.cancel=function(){a.$dismiss()}}]),app.controller("AssetCreateVideoDialog",["$interpolate","$scope","createAssetAsync","resultCallback","$http","authService","vimeoService","profileService",function(e,t,a,n,l,c,h,r){t.web_assetDialog_description=e(scope.currentScope.network.getResourceOrKeyName("web_assetDialog_description"))({networkName:scope.currentScope.network.name}),t.title="",t.thumbnailUrl="",t.valid=!1,t.working=!1,t.error=!1,t.displayMediaManager=!1,t.assetText={type:-1,text:"",thumbnail:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},t.externalData=null,scope.currentScope.network.settings.configurations.apicodoMediaServicesEnabled&&r.getProfile().then(function(d){(d.isJournalist||d.isMerkuristJournalist)&&(t.displayMediaManager=!0)}),t.assetTextExternalCallback=function(d){t.working=!1,t.assetText.title=d.title,t.assetText.thumbnailUrl=d.thumbnailUrl,t.externalData=d,t.assetText.type=13,t.assetText.attachment=d.attachment,t.assetText.text=d.attachment,t.valid=!0,a(t.assetText).then(function(o){n&&n(o),t.$dismiss()},function(){t.error=!0,t.working=!1})};var i=[{type:5,regEx:/(youtu\.be\/|youtube\.com\/watch\?(?:.*&)?v=)([a-z|0-9|_|-]+)/i,regExGroup:2},{type:5,regEx:/(youtu\.be\/|youtube\.com\/shorts\/)([a-z|0-9|_|-]+)(\?(.*))?/i,regExGroup:2},{type:6,regEx:/(facebook\.com\/(.*)\/videos\/)(vb\.[0-9]+\/)?([0-9]+)(.*)?/i,regExGroup:4},{type:7,regEx:/vimeo.com(\/?|.+\/)([^\/]+)\/?$/i,regExGroup:2},{type:13,regEx:/(?:media\.apicodo\.dev|media\.platform-services\.io)\/play\/([a-z|0-9|-]{36})\?guiMode\=iframe/i,regExGroup:1}];t.$watch("inputText",function(){if(t.valid=!1,t.inputText){if(t.assetText.text=t.inputText,t.showVimeoEmbed=!1,null!=t.externalData)return t.working=!1,t.assetText.title=callbackData.title,t.assetText.thumbnailUrl=callbackData.thumbnailUrl,t.externalData=callbackData,t.assetText.type=13,t.assetText.attachment=callbackData.attachment,t.assetText.text=callbackData.attachment,t.valid=!0,void(t.externalData=null);for(var d=0;d<i.length;d++)if(t.assetText.text.match(i[d].regEx)){t.assetText.type=i[d].type,t.assetText.attachment=i[d].regEx.exec(t.assetText.text)[i[d].regExGroup],t.assetText.attachment2=i[d].regEx.exec(t.assetText.text)[i[d].regExGroup-2],t.working=!0,5===t.assetText.type?l.get("https://www.googleapis.com/youtube/v3/videos?part=snippet&key=AIzaSyAk2ySSOTI2-ayM8g0gMpaanjQ6B-7NbXU&id="+t.assetText.attachment,{withCredentials:!1}).then(function(o){if(!o.data.items.length)return t.working=t.valid=!1,void(t.title=t.thumbnailUrl="");t.working=!1,t.valid=!0,t.title=o.data.items[0].snippet.title,t.thumbnailUrl=o.data.items[0].snippet.thumbnails.default.url},function(o){t.working=t.valid=!1,t.title=t.thumbnailUrl=""}):6===t.assetText.type?(t.working=!1,t.valid=!0,t.title="",t.thumbnailUrl="https://graph.facebook.com/"+t.assetText.attachment+"/picture"):7===t.assetText.type?h.getVideo(t.assetText.attachment).then(function(o){t.title=o.name,t.thumbnailUrl=o.thumbnailUrl,t.working=!1,t.valid=!0},function(){t.valid=!0,t.showVimeoEmbed=!0,t.working=!1,t.title=t.thumbnailUrl=""}):13===t.assetText.type&&(t.externalData?(t.title=t.externalData.title,t.thumbnailUrl=t.externalData.thumbnailUrl,t.valid=!0,t.working=!1,t.externalData=null):c.getApicodoMediaToken().then(function(o){l.get(o.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+t.assetText.attachment,{withCredentials:!1,headers:{Authorization:"bearer "+o.token}}).then(function(p){if(!p.data)return t.working=t.valid=!1,t.title=t.thumbnailUrl="",t.title=t.assetText.attachment,t.thumbnailUrl=o.apiBase+"/api/Thumbnail/GetWebFrontendData?fileId="+t.assetText.attachment,void(t.valid=!0);t.working=!1,t.valid=!0,t.title=p.data.title,t.thumbnailUrl=p.data.thumbnailUrl},function(p){t.working=t.valid=!1,t.title=t.thumbnailUrl="",t.externalData&&(t.title=t.externalData.title,t.thumbnailUrl=t.externalData.thumbnailUrl,t.valid=!0),console.log(p)})}));break}t.working||(t.title=t.description=t.thumbnailUrl="")}}),t.createAsset=function(){if(!t.working&&t.valid){switch(t.working=!0,t.assetText.type){case 6:t.assetText.text=t.assetText.attachment2+"/videos/"+t.assetText.attachment;break;case 7:t.assetText.text=t.assetText.attachment+"|"+t.thumbnailUrl;break;default:t.assetText.text=t.assetText.attachment}a(t.assetText).then(function(d){n&&(d.assetText.user=d.user,n(d)),t.$dismiss()},function(){t.error=!0,t.working=!1})}}}]),app.controller("AssetCreateWorkflowDialog",["$scope","$rootScope","createAssetAsync","resultCallback","workflowService",function(e,t,a,n,l){e.working=!1,e.error=!1,e.query="",e.assetText={type:14,text:"",imageSource:"",uploadGuid:"",uploadError:"",source:""},e.offset=0,e.limit=t.mobile?90:6,e.searchWorkflow=function(){e.working=!0;var c=e.workflowUrl.lastIndexOf("/"),h=e.workflowUrl.lastIndexOf("?");h<c&&(h=e.workflowUrl.length);var r=e.workflowUrl.substring(c+1,h);l.getWorkflowTemplate(r).then(function(i){e.workflow=i,e.working=!1,e.error=!1},function(){e.workflow=null,e.working=!1,e.error=!0})},e.createAsset=function(){e.working||(e.working=!0,e.assetText.text=e.workflow.workflowTemplateId,a(e.assetText).then(function(c){n&&(c.assetText.user=c.user,n(c)),e.$dismiss()},function(){e.error=!0,e.working=!1}))}}]),app.controller("AssetDeleteDialog",["$scope","assetReference","assetService","isSponsored","profile",function(e,t,a,n,l){e.working=!1,e.error=!1,e.myArticle={},e.isSponsored=n,e.myAsset=t.assetImage?t.assetImage.user.guid===l.guid:t.assetText?t.assetText.user.guid===l.guid:t.assetFile.user,e.myAssetReference=t.user.guid===l.guid,e.isChildAsset=null!==t.parentGuid,e.deleteAsset=function(){e.working=!0,a.remove(t).then(function(){t.deleted=new Date,e.$dismiss()},function(){e.error=!0,e.working=!1})},e.deleteAssetReference=function(){e.working=!0,a.removeReference(t).then(function(){t.deleted=new Date,e.$dismiss()},function(){e.error=!0,e.working=!1})}}]),app.controller("AssetDialog",["$rootScope","$scope","article","sponsoredArticle","staticArticle","event","assetType","resultCallback","single","$timeout","$uibModal","assetService",function(e,t,a,n,l,c,h,r,i,m,d,o){t.working=!1,t.error=!1,t.article=a,t.sponsoredArticle=n,t.staticArticle=l,t.event=c,t.assetType=h,t.entity=a||n||l||c||null,t.assetReferencesWithAssetArticle=t.entity.assetReferences.filter(function(f){return null!==f.assetArticle});var s=e.scope.currentScope.network.settings.configurations.workflowConfiguration;t.canUseWorkflows=s?e.profile.isNewsroomAdmin||6===s.MinReferenceAsAssetRole&&e.profile.isHeadSales||5===s.MinReferenceAsAssetRole&&e.profile.isSales||4===s.MinReferenceAsAssetRole&&e.profile.isHeadJournalist||3===s.MinReferenceAsAssetRole&&e.profile.isMerkuristJournalist||2===s.MinReferenceAsAssetRole&&e.profile.isJournalist:e.profile.isNewsroomAdmin;var u=function(f){t.entity.assetReferences.unshift(f),m(function(){var S=$("#asset-list-assetReference-"+f.guid).parent();$(S).animate({scrollLeft:0},1e3)},500)};t.assetCreateImageDialog=function(f,R,S){f&&0!==f.length?R.length||d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return f},resultCallback:function(){return u},createAssetAsync:function(){return a?function(v){return o.insertAssetImageToArticle(v,a.id)}:n?function(v){return o.insertAssetImageToSponsoredArticle(v,n.id)}:l?function(v){return o.insertAssetImageToStaticArticle(v,l.id)}:c?function(v){return o.insertAssetImageToEvent(v,c.id)}:void 0}}}):R||S.$setPristine()},t.assetCreateFileDialog=function(f,R,S){f&&0!==f.length?d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFileDialog.html",controller:"AssetCreateFileDialog",size:"lg",resolve:{files:function(){return f},resultCallback:function(){return u},createAssetAsync:function(){return a?function(v){return o.insertAssetFileToArticle(v,a.id)}:n?function(v){return o.insertAssetFileToSponsoredArticle(v,n.id)}:l?function(v){return o.insertAssetFileToStaticArticle(v,l.id)}:c?function(v){return o.insertAssetFileToEvent(v,c.id)}:void 0}}}):R||S.$setPristine()},t.assetCreateVideoDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return u},createAssetAsync:function(){return a?function(f){return o.insertAssetTextToArticle(f,a.id)}:n?function(f){return o.insertAssetTextToSponsoredArticle(f,n.id)}:l?function(f){return o.insertAssetTextToStaticArticle(f,l.id)}:c?function(f){return o.insertAssetTextToEvent(f,c.id)}:void 0}}})},t.assetCreateWorkflowDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateWorkflowDialog.html",controller:"AssetCreateWorkflowDialog",size:"lg",resolve:{resultCallback:function(){return u},createAssetAsync:function(){return a?function(f){return o.insertAssetTextToArticle(f,a.id)}:n?function(f){return o.insertAssetTextToSponsoredArticle(f,n.id)}:l?function(f){return o.insertAssetTextToStaticArticle(f,l.id)}:c?function(f){return o.insertAssetTextToEvent(f,c.id)}:void 0}}})},t.assetCreateGifDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return u},createAssetAsync:function(){return a?function(f){return o.insertAssetTextToArticle(f,a.id)}:n?function(f){return o.insertAssetTextToSponsoredArticle(f,n.id)}:l?function(f){return o.insertAssetTextToStaticArticle(f,l.id)}:c?function(f){return o.insertAssetTextToEvent(f,c.id)}:void 0}}})},t.assetPixabaySearchDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/pixabay/pixabaySearchDialog.html",controller:"pixabaySearchDialog",size:"lg",resolve:{resultCallback:function(){return u},assetContainer:{articleId:a?a.id:null,sponsoredArticleId:n?n.id:null,staticArticleId:l?l.id:null,eventId:c?c.id:null},createAssetAsync:function(){return a?function(f){return o.insertAssetTextToArticle(f,a.id)}:n?function(f){return o.insertAssetTextToSponsoredArticle(f,n.id)}:l?function(f){return o.insertAssetTextToStaticArticle(f,l.id)}:c?function(f){return o.insertAssetTextToEvent(f,c.id)}:void 0}}})},t.assetCreateFactDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return u},createAssetAsync:function(){return a?function(f){return o.insertAssetTextToArticle(f,a.id)}:n?function(f){return o.insertAssetTextToSponsoredArticle(f,n.id)}:l?function(f){return o.insertAssetTextToStaticArticle(f,l.id)}:c?function(f){return o.insertAssetTextToEvent(f,c.id)}:void 0}}})},t.assetCreateQuestionDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return u},createAssetAsync:function(){return a?function(f){return o.insertAssetTextToArticle(f,a.id)}:n?function(f){return o.insertAssetTextToSponsoredArticle(f,n.id)}:l?function(f){return o.insertAssetTextToStaticArticle(f,l.id)}:c?function(f){return o.insertAssetTextToEvent(f,c.id)}:void 0}}})},t.assetSearchDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return u},snipId:function(){return t.snip?t.snip.id:null},articleId:function(){return t.article?t.article.id:null},sponsoredArticleId:function(){return t.sponsoredArticle?t.sponsoredArticle.id:null},staticArticleId:function(){return t.staticArticle?t.staticArticle.id:null},eventId:function(){return t.event?t.event.id:null},assetReferences:function(){return t.entity.assetReferences}}})};var b=function(f){t.entity.assetReferences.push(f),t.assetReferencesWithAssetArticle.unshift(f)};t.showAddArticleDialog=function(){d.open({templateUrl:"/ClientApp/src/legacy-app/asset/addAssetArticleDialog.html",controller:"AddAssetArticleDialogController",controllerAs:"$ctrl",size:"lg",resolve:{ownerId:function(){return t.entity.id},ownerType:function(){return t.article?"article":t.sponsoredArticle?"sponsoredArticle":t.staticArticle?"staticArticle":null},onAddSuccessful:function(){return b}}})},t.$watchCollection("entity.assetReferences",function(f){if(t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.assetsImages=[],t.assetsFiles=[],t.assetsWorkflows=[],f&&angular.isDefined(f)){var R=[];f.forEach(function(S){S.deleted||(S.childAssets=[],S.parentGuid||R.push(S))}),R.forEach(function(S){f.forEach(function(v){v.parentGuid&&S.guid===v.parentGuid&&S.childAssets.push(v)}),null!==S.assetFile&&t.assetsFiles.push(S),null!==S.assetImage||null!==S.assetText&&(5===S.assetText.type||6===S.assetText.type||7===S.assetText.type||10===S.assetText.type||13===S.assetText.type)?(t.assetsMedia.push(S),null!==S.assetImage&&t.assetsImages.push(S)):null!==S.assetText&&(8===S.assetText.type?t.assetsFacts.push(S):9===S.assetText.type?t.assetsQuestions.push(S):0===S.assetText.type?t.assetsComments.push(S):14===S.assetText.type&&t.assetsWorkflows.push(S))})}});var y=new Map;t.toggleAssetAdded=function(f,R){i?(r(f),t.$dismiss()):R?y.set(f.guid,f):y.delete(f.guid)},t.cancel=function(){i||r(Array.from(y.values())),t.$dismiss()},t.articleAssetToggle={},t.toggleAssetArticleAdded=function(f){i?(r(f),t.$dismiss()):(t.articleAssetToggle[f.guid]=!t.articleAssetToggle[f.guid],t.articleAssetToggle[f.guid]?y.set(f.guid,f):y.delete(f.guid))}}]).value("article",null).value("sponsoredArticle",null).value("staticArticle",null).value("event",null),app.controller("AssetEditDialog",["$scope","assetReference","assetService","$rootScope",function(e,t,a,n){e.working=!1,e.error=!1,e.assetReference=t,e.updateImageText=function(){e.working=!0,a.updateImageText(t).then(function(){e.$dismiss(),n.$broadcast("$$rebind::refresh")},function(){e.error=!0,e.working=!1})}}]),app.controller("AssetImageFocuspointDialog",["$scope","assetReference","assetService","$timeout","$rootScope",function(e,t,a,n,l){e.working=!1,e.error=!1,e.assetReference=t;var c,h,r,m=function(s,p,u,b){let f,R;s/p>b?(f=p*b,R=p):(f=s,R=s/b);let w=u.x+u.w/2-f/2,g=u.y+u.h/2-R/2;return w+f>h.width()&&(w=h.width()-f),w<0&&(w=0),g+R>p&&(g=p-R),g<0&&(g=0),{x:w,y:g,w:f,h:R}},d=function(s,p,u){let y=40;screen.width<769&&(y=20);let f=0;screen.width<991&&(f=66),presetImgDimensions=m(h.width(),h.height(),p,2.6857142857142855),targetImgDimensions=m(presetImgDimensions.w,presetImgDimensions.h,p,u),s.style.top=targetImgDimensions.y+presetImgDimensions.y+f+"px",s.style.left=targetImgDimensions.x+y+"px",s.style.width=targetImgDimensions.w+"px",s.style.height=targetImgDimensions.h+"px",s.style.display="block"},o=function(s){if(s){var p=h.width(),u=h.height();c.x1=Math.round(c.width/p*s.x),c.x2=Math.round(c.width/p*s.x2),c.y1=Math.round(c.height/u*s.y),c.y2=Math.round(c.height/u*s.y2),d(document.getElementById("mobileFrame"),s,1.45)}else c.x1=c.x2=c.y1=c.y2=null};e.imageLoad=function(){a.getAssetImageProcessing(t.assetImage.guid).then(function(s){c=s,(h=$(".assetImageFocuspointDialog-asset")).Jcrop({onSelect:o,onRelease:o},function(){r=this});var p=h.width(),u=h.height();if(null!==c.x1&&null!==c.x2&&null!==c.y1&&null!==c.y2){let b={x:Math.round(p/c.width*c.x1),y:Math.round(u/c.height*c.y1),x2:Math.round(p/c.width*c.x2),y2:Math.round(u/c.height*c.y2),w:Math.round(p/c.width*c.x2)-Math.round(p/c.width*c.x1),h:Math.round(u/c.height*c.y2)-Math.round(u/c.height*c.y1)};r.animateTo([b.x,b.y,b.x2,b.y2]),d(document.getElementById("desktopFrame"),b,desktopTargetAspectRatio),d(document.getElementById("mobileFrame"),b,1.45)}},function(){e.error=!0})},e.save=function(){a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,c).then(function(){t.assetImage.cache++,n(function(){l.$emit("lazyImg:refresh")}),e.$dismiss()},function(){e.error=!0})},e.reset=function(){c.x1=c.x2=c.y1=c.y2=null,a.updateAssetImageProcessingFocuspoint(t.assetImage.guid,c).then(function(){t.assetImage.cache++,n(function(){l.$emit("lazyImg:refresh")}),e.$dismiss()},function(){e.error=!0})}}]),app.component("assetList",{templateUrl:"/ClientApp/src/legacy-app/asset/assetList.html",bindings:{sponsored:"<?",archived:"<?",assetImages:"<",assetFiles:"<",assetTexts:"<",assetReferences:"=",assetLimitStart:"<",loanCallback:"&"},controller:["$uibModal","$rootScope",function(e,t){var a=this;a.mobile=t.mobile,a.profile=t.profile,a.order=t.scope.currentScope.chapter.settings.assetOrderByPublished?"-created":"-likes",a.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,a.cookieManager=0,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&(a.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),a.isBuiltInCookieManager=1===a.cookieManager,this.$onInit=function(){a.assetLimitStart=a.assetLimitStart||12,a.assetLimit=a.assetLimitStart,a.loanCallback&&(a.loanCallback=a.loanCallback())},a.assetToggle={},a.toggleAssetAdded=function(n){a.assetToggle[n.guid]=!a.assetToggle[n.guid],a.loanCallback(n,a.assetToggle[n.guid]),null!=n.assetImage&&((new Image).src=n.assetImage.assetImageUrl+"?preset=asset-embed{{ ::($ctrl.enableHighQualityImage ? '-hq' : '') }}&cache=0",(new Image).src=n.assetImage.assetImageUrl+"?preset=asset-image-large&cache=0")},a.getAssets=function(){var n=a.assetReferences||[];return a.assetFiles&&(a.assetFiles.forEach(function(l){l.assetFile=l,l.fake=!0}),n=n.concat(a.assetFiles)),a.assetImages&&(a.assetImages.forEach(function(l){l.assetImage=l,l.fake=!0}),n=n.concat(a.assetImages)),a.assetTexts&&(a.assetTexts.forEach(function(l){l.assetText=l,l.fake=!0}),n=n.concat(a.assetTexts)),n},a.deleteAsset=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDeleteDialog.html",controller:"AssetDeleteDialog",size:"lg",resolve:{assetReference:function(){return n},isSponsored:function(){return a.sponsored},profile:function(){return a.profile}}})},a.openApicodoVideo=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayDialog.html",controller:"apicodoMediaPlayDialog",size:"lg",resolve:{videoId:function(){return n.assetText.text}}})},a.reportAsset=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetReportDialog.html",controller:"AssetReportDialog",size:"lg",resolve:{assetReference:function(){return n}}})},a.listChildAssets=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetChildListDialog.html",controller:"AssetChildListDialog",size:"lg",resolve:{parentAssetReference:function(){return n},archived:function(){return a.archived},reportAsset:function(){return a.reportAsset},deleteAsset:function(){return a.deleteAsset}}})},a.calcLimit=function(n){a.assetLimit=a.assetReferences.length-n.length>a.assetLimitStart?n.length+a.assetLimitStart:a.assetReferences.length},a.assetImageFocuspointDialog=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return n}}})},a.assetEditDialog=function(n){e.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetEditDialog.html",controller:"AssetEditDialog",size:"lg",resolve:{assetReference:function(){return n}}})},a.toggleMenu=function(n){n.menuVisible=!!angular.isUndefined(n.menuVisible)||!n.menuVisible},a.showCookieInfo=function(n){if(!a.isBuiltInCookieManager)return!1;const{twitter:l,youTube:c,facebook:h,vimeo:r,giphy:i}=t.scope.profile.settings.externalMediaPermissions;switch(n.assetText.type){case 4:return!l?.granted;case 5:return!c?.granted;case 6:return!h?.granted;case 7:return!r?.granted;case 10:return!i?.granted;default:return!1}}}]}),app.component("assetListWorkflowItem",{templateUrl:"/ClientApp/src/legacy-app/asset/assetListWorkflowItem.html",bindings:{workflowId:"<"},controller:["workflowService",function(e){var t=this;this.$onInit=function(){e.getWorkflowTemplate(t.workflowId).then(function(a){t.workflow=a})}}]}),app.directive("assetpreview",[function(){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/asset/assetpreview.html",replace:!0,scope:{article:"=article"},link:function(e,t,a){e.$watch(a.article,function(){e.assetReference=$.grep(e.article.assetReferences,function(n){return n.guid===a.assetGuid})[0]})}}}]),app.controller("AssetReportDialog",["$scope","assetReference","assetService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.reportAsset=function(){e.working=!0,a.report(t,e.type).then(function(){e.working=!1,e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("AssetSearchDialog",["$scope","$state","snipId","articleId","sponsoredArticleId","staticArticleId","eventId","assetReferences","resultCallback","assetService","searchService","profileService",function(e,t,a,n,l,c,h,r,i,m,d,o){e.valid=!1,e.thumbnailUrl="",e.activePage=1,e.searchPage=0,e.assetReferences=[],e.selectedAssetReferences=[],e.isSponsoredArticle=!!l,o.getProfile().then(function(v){guid=v.guid}),this.query=function s(){return t.includes("app.search")?$location.getArticles().q:""}(),e.clear=function(){this.query="",hits=null};var u=function(v){var w=!1;return angular.forEach(r,function(g){(null!==g.assetImage&&g.assetImage.guid===v||null!==g.assetText&&g.assetText.guid===v||null!==g.assetFile&&g.assetFile.guid===v)&&(w=!0)}),w};function f(v){e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,e.show=!0,angular.forEach(v,function(w){w&&(w.disabled=u(w.guid),e.assetImageHits=e.assetImageHits.concat(w))})}function S(v){e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,e.show=!0,angular.forEach(v,function(w){w&&(w.disabled=u(w.guid),e.assetFileHits.push(w))})}e.showMoreArticles=function(){e.searchPage++,e.isSponsoredArticle?d.getAssetSponsoredArticles(this.query,e.searchPage=e.searchPage).then(function(v){e.show=!1,e.showArticles=!0,angular.forEach(v,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})}):d.getAssetArticles(this.query,e.searchPage=e.searchPage).then(function(v){e.show=!1,e.showArticles=!0,e.totalArticles=v.total,angular.forEach(v.articles,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})})},e.showMoreAssetImages=function(){e.searchPage++,e.isSponsoredArticle?d.getSponsoredAssetImages(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetImages=!0,angular.forEach(v,function(w){w&&(w.disabled=u(w.guid),e.assetImageHits=e.assetImageHits.concat(w))})}):d.getAssetImages(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetImages=!0,angular.forEach(v,function(w){w&&(w.disabled=u(w.guid),e.assetImageHits=e.assetImageHits.concat(w))})})},e.showMoreAssetFiles=function(){e.searchPage++,e.isSponsoredArticle?d.getSponsoredAssetFiles(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetFiles=!0,angular.forEach(v,function(w){w&&(w.disabled=u(w.guid),e.assetFileHits=e.assetFileHits.concat(w))})}):d.getAssetFiles(this.query,e.searchPage=e.searchPage,this.mobile?90:6).then(function(v){e.show=!1,e.showAssetFiles=!0,angular.forEach(v,function(w){w&&(w.disabled=u(w.guid),e.assetFileHits=e.assetFileHits.concat(w))})})},e.goBack=function(){e.activePage=1,e.show=!0,e.showAssetImages=!1,e.showAssetFiles=!1,e.showArticles=!1,!this.mobile&&e.assetImageHits&&e.assetImageHits.length>6&&(e.assetImageHits.splice(6),e.searchPage=0)},e.clickArticle=function(v){e.selectedArticle=v,angular.forEach(v.assetReferences,function(w){null!==w.assetImage?w.assetImage.isAdded=u(w.assetImage.guid):null!==w.assetText&&(w.assetText.isAdded=u(w.assetText.guid))}),e.assetReferences=v.assetReferences,e.activePage=2},e.addAssetImage=function(v){v&&(e.createAssetReference({assetImageGuid:v.guid}),v.disabled=!0)},e.addAssetFile=function(v){v&&(e.createAssetReference({assetFileGuid:v.guid}),v.disabled=!0)},e.addAssetText=function(v){v&&(e.createAssetReference({assetTextGuid:v.guid}),v.isAdded=!0)},e.search=function(){(function b(){t.includes("app.search")?$location.getArticles("q",e.query):(e.articleHits=[],""===e.query?e.articleHits=null:e.isSponsoredArticle?d.getAssetSponsoredArticles(e.query,e.searchPage=0).then(function(v){e.show=!0,angular.forEach(v,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})}):d.getAssetArticles(e.query,e.searchPage=0).then(function(v){e.show=!0,e.totalArticles=v.total,angular.forEach(v.articles,function(w){w.assetReferences.length&&(e.articleHits=e.articleHits.concat(w))})}))})(),function y(){t.includes("app.search")?$location.getArticles("q",e.query):(e.assetImageHits=[],""===e.query?e.assetImageHits=null:e.isSponsoredArticle?d.getSponsoredAssetImages(e.query,e.searchPage=0,e.mobile?90:6).then(f):d.getAssetImages(e.query,e.searchPage=0,e.mobile?90:6).then(f))}(),function R(){t.includes("app.search")?$location.getArticles("q",e.query):(e.assetFileHits=[],""===e.query?e.assetFileHits=null:e.isSponsoredArticle?d.getSponsoredAssetFiles(e.query,e.searchPage=0,e.mobile?90:6).then(S):d.getAssetFiles(e.query,e.searchPage=0,e.mobile?90:6).then(S))}()},e.createAssetReferences=function(){e.working||e.selectedAssetReferences===[]||angular.forEach(e.selectedAssetReferences,function(v){null!==v.assetImage?e.createAssetReference({assetImageId:v.assetImage.id}):null!==v.assetText&&e.createAssetReference({assetImageId:null})})},e.createAssetReference=function(v){e.working=!0,v.snipId=a,v.articleId=n,v.sponsoredArticleId=l,v.staticArticleId=c,v.eventId=h,m.insertReference(v).then(function(w){i&&i(w),e.working=!1},function(){e.error=!0,e.working=!1})}}]).value("articleId",null).value("snipId",null).value("sponsoredArticleId",null).value("staticArticleId",null).value("eventId",null),app.factory("assetService",["$http","$q",function(e,t){return{getChildren:function(I,A){var C=t.defer();return e.get(scope.apiEndpoint+"assets/"+I+"/children"+(A?"?start="+A:"")).then(function(U){C.resolve(U.data)},function(U){C.reject()}),C.promise},getAssetImageProcessing:function(I){var A=t.defer();return e.get(scope.apiEndpoint+"assets/"+I+"/imageprocessing").then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise},insertAssetImageToArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/image/article/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetImageToSnip:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/image/snip/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetImageToSponsoredArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/image/sponsoredArticle/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetImageToStaticArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/image/staticArticle/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetImageToEvent:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/image/event/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetTextToArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/text/article/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetTextToSnip:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/text/snip/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetTextToSponsoredArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/text/sponsoredArticle/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetTextToStaticArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/text/staticArticle/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetTextToEvent:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/text/event/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetFileToArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/file/article/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetFileToStaticArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/file/staticArticle/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetFileToSponsoredArticle:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/file/sponsoredArticle/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertAssetFileToEvent:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/file/event/"+A,I).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertChild:function(I,A){var C=t.defer();return e.post(scope.apiEndpoint+"assets/"+I+"/children",A).then(function(U){var k=U.data;k.myAsset=!0,new Date(k.created)>new Date&&(k.created=(new Date).toISOString()),C.resolve(U.data)},function(){C.reject()}),C.promise},insertReference:function(I){var A=t.defer();return e.post(scope.apiEndpoint+"assets/reference",I).then(function(C){var U=C.data;U.myAsset=!0,new Date(U.created)>new Date&&(U.created=(new Date).toISOString()),A.resolve(C.data)},function(){A.reject()}),A.promise},report:function(I,A){var C=t.defer();return e.put(scope.apiEndpoint+"assets/"+I.guid+"/report/"+A).then(function(U){C.resolve(U.data)},function(){C.reject()}),C.promise},like:function(I){var A=t.defer();return e.put(scope.apiEndpoint+"assets/"+I+"/like",{ignoreLoadingBar:!0}).then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise},updateAssetImageProcessingFocuspoint:function(I,A){var C=t.defer();return e.put(scope.apiEndpoint+"assets/"+I+"/imageprocessing/focuspoint",A).then(function(U){C.resolve()},function(){C.reject()}),C.promise},updateImageText:function(I){var A=t.defer();return e.put(scope.apiEndpoint+"assets/image/"+I.assetImage.guid,I.assetImage).then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise},remove:function(I){var A=t.defer();return e.delete(scope.apiEndpoint+"assets/"+I.guid).then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise},removeReference:function(I){var A=t.defer();return e.delete(scope.apiEndpoint+"assets/reference/"+I.guid).then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise}}}]),app.component("assetUserBadge",{templateUrl:"/ClientApp/src/legacy-app/asset/assetUserBadge.html",bindings:{assetText:"<?",assetImage:"<?",assetFile:"<?"},controller:["$state","$scope",function(e,t){var a=this;a.showVerifiedUser=!1,a.isEditorState=e.includes("app.articleEdit")||e.includes("app.staticArticleEditAdmin")||e.includes("app.sponsoredArticleEdit"),a.$onInit=function(){a.assetFile&&a.assetFile.user.isVerifiedUser&&(a.showVerifiedUser=!0),a.assetImage&&a.assetImage.user.isVerifiedUser&&(a.showVerifiedUser=!0),a.assetText&&a.assetText.user.isVerifiedUser&&(a.showVerifiedUser=!0)}}]}),app.component("pixabaySearch",{templateUrl:"/ClientApp/src/legacy-app/asset/pixabay/pixabaySearchComponent.html",bindings:{callback:"<",callerdata:"<",dismiss:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","pixabayService","authService",function(e,t,a,n,l,c,h,r){var i=this;i.imageData=null,i.searchTerm="",i.data={},i.delay=2e3,i.pageSize=12,i.totalPages=1,i.currentPage=1,i.visiblePopup=!1,i.alwaysShowImageDescription=l.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue,DevExpress.localization.locale(l.scope.currentScope.network.settings.languageCode),i.timerId=null,i.searchBox={valueChangeEvent:"keyup",placeholder:l.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_search_placeholder"),onValueChanged:function(d){i.timerId&&clearTimeout(i.timerId),i.timerId=setTimeout(function(){i.searchTerm!=d.value&&(i.currentPage=1),i.searchTerm=d.value,i.search(i.searchTerm)},i.delay)}},i.search=function(d){h.search(d,i.currentPage,i.pageSize).then(function(o){i.data=o,i.totalPages=o.total/i.pageSize,i.data=JSON.parse(JSON.stringify(o));var s=Math.ceil(i.pageSize/4);o.hits.length<i.pageSize&&(s=Math.ceil(o.hits.length/4)),i.chunks=spliceIntoChunks(o.hits,s),i.totalPages=Math.ceil(i.totalPages)})},i.search(i.searchTerm),i.selectImage=function(d){i.imageData?(i.imageData=null,i.visiblePopup=!1):(i.imageData=d,i.visiblePopup=!0)},i.submitAndClose=function(){i.submitRequest(),i.dismiss&&i.dismiss()},i.goNext=function(){i.currentPage<i.totalPages&&(i.currentPage++,i.search(i.searchTerm))},i.goPrev=function(){1!=i.currentPage&&(i.currentPage--,i.search(i.searchTerm))},i.submitRequest=function(){i.visiblePopup=!1;var d=1280,o={articleId:i.callerdata.articleId,blobId:new DevExpress.data.Guid,staticArticleId:i.callerdata.staticArticleId,snipId:i.callerdata.snipId,sponsoredArticleId:i.callerdata.sponsoredArticleId,networkId:0,chapterId:0,eventId:i.callerdata.eventId,author:i.imageData.user,source:i.imageData.pageURL,sourceUrl:i.imageData.largeImageURL,text:i.imageData.tags,title:i.imageData.tags,width:i.imageData.imageWidth>i.imageData.imageHeight?d:Math.ceil(d/i.imageData.imageHeight*i.imageData.imageWidth),height:i.imageData.imageHeight>i.imageData.imageWidth?d:Math.ceil(d/i.imageData.imageWidth*i.imageData.imageHeight),alwaysShowImageDescription:!!i.alwaysShowImageDescription};h.create(o).then(function(s){DevExpress.ui.notify({message:i.imageData.tags,position:{my:"center top",at:"center top"}},"success",3e3),i.callback&&(s.assetImage.assetImageUrl=i.imageData.largeImageURL,i.callback(s),i.visiblePopup=!1,i.imageData=null)},function(){i.error=!0,i.working=!1})},e.popupOptions={width:"100%",height:"95vh",container:".modal-content",contentTemplate:"info",showTitle:!1,title:"Information",dragEnabled:!1,closeOnOutsideClick:!0,showCloseButton:!1,position:{at:"center",my:"center"},bindingOptions:{visible:"$ctrl.visiblePopup","position.of":"positionOf"},toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"add",text:"",onClick:function(){i.submitRequest()}}},{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"fa fa-check",text:"",onClick:function(){i.submitAndClose()}}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{icon:"back",text:"",onClick:function(){i.visiblePopup=!1,i.imageData=null}}}]},i.tagEditorOptions={bindingOptions:{value:"$ctrl.imageData.tags"}}}]}),app.controller("pixabaySearchDialog",["$scope","assetContainer","resultCallback",function(e,t,a){e.working=!1,e.error=!1,e.assetContainer=t,e.resultCallback=a,e.dismiss=e.$dismiss()}]),app.factory("pixabayService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{search:function(i,m,d){m||(m=1),d||(d=20);var o=a.defer();return t.post(scope.apiEndpoint+"pixabay/search",{query:i,language:2,page:m,perPage:d}).then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},defaultModel:{articleId:0,blobId:new DevExpress.data.Guid,staticArticleId:0,snipId:0,networkId:0,eventId:new DevExpress.data.Guid,author:"",source:"",sourceUrl:"",text:"",title:""},create:function(i){var m=a.defer();return t.post(scope.apiEndpoint+"pixabay/create",i).then(function(d){m.resolve(d.data)},function(){m.reject()}),m.promise}}}]),app.factory("vimeoService",["$http","$q",function(e,t){return{getVideo:function(n){var l=t.defer();return e.get(scope.apiEndpoint+"vimeo/"+n).then(function(c){l.resolve(c.data)},function(c){l.reject()}),l.promise}}}]),app.controller("AllowPartnerAccessDialog",["$interpolate","$scope","$rootScope","$timeout","profileService","authenticationCallback","formatterService",function(e,t,a,n,l,c,h){t.allowData={hasPartnerAccessAllowed:!1,hasAgb:!1},l.getProfile().then(function(){l.getPartnerAccessAllowData().then(function(r){t.formData={originRegisteredDomain:r.originRegisteredDomain,originRegisteredChapter:r.originRegisteredChapter,originRegisteredPartner:r.originRegisteredPartner,originRegisterdDate:moment(r.registered).format(h.getShortDateFormatString())},t.web_partnerAccessDialog_description=e(scope.currentScope.network.resources.web_partnerAccessDialog_description)({originRegisteredDomain:r.originRegisteredDomain,originRegisteredChapter:r.originRegisteredChapter,originRegisterdDate:moment(r.registered).format(h.getShortDateFormatString())}),t.web_partnerAccessDialog_accessCheckboxDescription_0=e(scope.currentScope.network.resources.web_partnerAccessDialog_accessCheckboxDescription_0)({originRegisteredPartner:r.originRegisteredPartner,partnerCompanyName:scope.currentScope.chapter.partner.companyName}),t.allowPartnerAccess=function(){t.allowData.hasPartnerAccessAllowed&&t.allowData.hasAgb&&l.updatePartnerAccessAllow().then(function(){t.$close(),l.getProfile(!0),c()})}})})}]),app.controller("AuthenticationDialog",["$scope","$rootScope","$location","instagramService","$timeout","authService","profileService","authenticationCallback","facebookSignUpData","login",function(e,t,a,n,l,c,h,r,i,m){e.dialogState={none:0,facebookSignUp:1,login:2},e.changeState=function(d){e.state=d,d===e.dialogState.login&&l(function(){$(".modal").find("input[name='email']").focus()})},e.hasHowto=t.scope.staticArticles.filter(function(d){return"/howto"===d.path}).length>0,e.changeState(i?1:m?2:0),e.signUpData=i||{},e.loginData={userName:"",password:""},e.facebookLogin=function(){c.facebookLogin(t.app).then(function(d){d.token?(angular.extend(e.signUpData,d),e.state=e.dialogState.facebookSignUp):(e.$dismiss(),r())})},e.playVideoTracked=!1,e.playVideo=function(){e.playVideoTracked||window._paq&&(_paq.push(["trackEvent","Conversion","PlayVideo","AuthenticationRequiredDialog"]),e.playVideoTracked=!0)},e.facebookRegister=function(d){d&&c.externalRegister(e.signUpData).then(function(){h.fetchExternalAvatar({providerName:"Facebook"}).then(function(){e.$dismiss(),r()})},function(o){e.error=o.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})},e.instagramLogin=function(){n.getGrant(t.app)},e.showInstagram=n.isAvailable(),e.login=function(d){d&&c.login(e.loginData).then(function(){e.$dismiss(),r()},function(o){e.loginError=o.data})}}]),app.controller("AuthenticationSettingsController",["$scope","$rootScope","$location","$state","$timeout","$uibModal","authService","profileService","instagramService",function(e,t,a,n,l,c,h,r,i){r.getProfile().then(function(o){o.isRegistered||a.path("/").replace()},function(o){a.path("/").replace()}),e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},r.getProfile().then(function(o){o.isRegistered&&a.search().token&&(e.emailValidationState=e.emailValidationStates.inProgress,h.validateEmail(a.search().token).then(function(){l(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){l(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)}))});var m={password:"",newPassword:"",confirmPassword:""},d=function(o){e.changePasswordData=angular.copy(m),e.changePasswordMessage=scope.currentScope.network.getResourceOrKeyName("web_authenticationSettings_changePasswordSuccess"),o.$setUntouched(),o.$setPristine()};e.compileErros=function(o){if(o.modelState){var s=[];for(var p in o.modelState)if(o.modelState.hasOwnProperty(p))for(var u=0;u<o.modelState[p].length;u++){var b=o.modelState[p][u];-1===s.indexOf(b)&&s.push(b)}return s.join(" ")}return o},e.cleanChangesMessages=function(){e.changePasswordMessage=null,e.changePasswordError=null},e.changePasswordData=angular.copy(m),e.changePassword=function(o){o.$invalid||(e.cleanChangesMessages(),e.changePasswordData.password?h.changePassword(e.changePasswordData).then(function(){d(o)},function(s){e.changePasswordError=e.compileErros(s.data)}):h.setPassword(e.changePasswordData).then(function(){d(o)},function(s){e.changePasswordError=e.compileErros(s.data)}))},e.facebookLogin=function(){e.linkFacebookError=null,h.facebookLogin(t.app).then(function(o){},function(o){e.linkFacebookError=e.compileErros(o.data)})},e.instagramLogin=function(){i.getGrant()},e.showInstagram=i.isAvailable(),e.deleteAccount=function(){document.body.style="pointer-events: none;",h.deleteAccount().then(function(){Oculus.push(!1,function(){h.logout().then(function(){Oculus.navigate(""),window.location=scope.currentChapter.path+"/login"})})})}}]),app.factory("authService",["$rootScope","$window","$location","$http","$q","$timeout",function(e,t,a,n,l,c){var h={externalAuthData:{}},r=null,i=function(){if(null===r){var A=l.defer();n.get(scope.apiEndpoint+"account/noop").then(function(C){e.scope.profile.loginInfo=C.data,scope.profile.loginInfo=C.data,A.resolve(C)},function(C){A.reject(C)}).finally(function(){r=null}),r=A.promise}return r};i();var p=function(){var A=l.defer();return i().then(function(){n.get(scope.apiEndpoint+"account/logout").then(function(C){e.$emit("authenticationStateChanged"),A.resolve(C)},function(C){A.reject(C)})}).catch(function(C){A.reject(C)}),A.promise},D=function(){var A=l.defer();return n.get(scope.apiEndpoint+"media/token").then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise},I={url:scope.globalSettings.configurations.apicodoMediaBaseUrl};return D(),h.noop=i,h.register=function(A){var C=l.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/register",A).then(function(U){c(function(){C.resolve(U)})},function(U){C.reject(U)})}).catch(function(U){C.reject(U)}),C.promise},h.externalRegister=function(A){p();var C=l.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/registerexternal",A).then(function(U){e.$emit("authenticationStateChanged"),C.resolve(U)},function(U){C.reject(U)})}).catch(function(U){C.reject(U)}),C.promise},h.login=function(A){var C=l.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/login",A).then(function(U){e.$emit("authenticationStateChanged"),C.resolve(U)},function(U){C.reject(U)})}).catch(function(U){C.reject(U)}),C.promise},h.loginSaml2=function(A){var C=l.defer();return i().then(function(){n.post(scope.apiEndpoint+"account/loginSaml2",A).then(function(U){e.$emit("authenticationStateChanged"),C.resolve(U)},function(U){C.reject(U)})}).catch(function(U){C.reject(U)}),C.promise},h.logout=p,h.facebookLogin=function(A){var C=l.defer(),U=function(k){var T;k&&k.authResponse&&k.authResponse.accessToken?T=k.authResponse.accessToken:C.reject("authentication canceled.");var V={loginProvider:"Facebook",token:T},M=function(_){var O=null;"male"===_.gender?O=1:"female"===_.gender&&(O=0);var q=null;_.birthday&&_.birthday.replace(/\d\d\/\d\d\/(\d\d\d\d)/g,function(E,N){moment().year(),moment(N,"YYYY").year(),q=N});var P=_.email&&_.email.match(/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/)?_.email:null;C.resolve({loginProvider:"Facebook",token:T,email:P,emailConfirmed:P,firstName:_.first_name,lastName:_.last_name,gender:O,genderConfirmed:O,yearOfBirth:q,yearOfBirthConfirmed:q})};i().then(function(){n.post(scope.apiEndpoint+"account/loginexternal",V).then(function(_){e.$emit("authenticationStateChanged"),C.resolve(_)},function(_){404===_.status?A?facebookConnectPlugin.api("me?fields=email,first_name,last_name,gender,birthday",["public_profile","email","user_birthday"],function(O){M(O)},function(O){}):FB.api("/me",{fields:"first_name,email,last_name,gender,birthday"},function(O){M(O)}):C.reject(_)})}).catch(function(_){C.reject(_)})};return A?facebookConnectPlugin.login(["public_profile"],function(k){U(k)},function(T){C.reject("authentication canceled.")}):(FB.init({appId:scope.globalSettings.authenticationFacebookAppId,xfbml:!0,version:"v3.2",status:!0}),FB.login(function(k){U(k)},{scope:"email,public_profile"})),C.promise},h.validateEmail=function(A){var C=l.defer();return n.put(scope.apiEndpoint+"account/email/"+A).then(function(U){C.resolve(U)},function(U){C.reject(U)}),C.promise},h.requestPassword=function(A){var C=l.defer();return n.put(scope.apiEndpoint+"account/RequestPassword",A).then(function(U){C.resolve(U)},function(U){C.reject(U)}),C.promise},h.setPassword=function(A){var C=l.defer();return n.post(scope.apiEndpoint+"account/password",A).then(function(U){C.resolve(U)},function(U){C.reject(U)}),C.promise},h.changePassword=function(A){var C=l.defer();return n.put(scope.apiEndpoint+"account/Password",A).then(function(U){C.resolve(U)},function(U){C.reject(U)}),C.promise},h.deleteAccount=function(){var A=l.defer();return i().then(function(){n.get(scope.apiEndpoint+"account/delete").then(function(C){A.resolve(C)},function(C){A.reject(C)})}).catch(function(C){A.reject(C)}),A.promise},h.changeEmail=function(A){var C=l.defer();return n.post(scope.apiEndpoint+"account/email",A).then(function(U){C.resolve(U)},function(U){C.reject(U.data)}),C.promise},h.getEmails=function(){var A=l.defer();return n.get(scope.apiEndpoint+"account/emails/").then(function(C){A.resolve(C.data)},function(){A.reject()}),A.promise},h.deleteEmail=function(A){var C=l.defer();return n.post(scope.apiEndpoint+"account/email/"+A+"/delete").then(function(U){C.resolve(U.data)},function(){C.reject()}),C.promise},h.sendEmailVerification=function(A){var C=l.defer();return n.post(scope.apiEndpoint+"account/email/"+A+"/sendVerification").then(function(U){C.resolve(U)},function(U){C.reject(U.data)}),C.promise},h.updateActiveEmail=function(A){var C=l.defer();return n.post(scope.apiEndpoint+"account/email/"+A+"/updateActive").then(function(U){C.resolve(U.data)},function(){C.reject()}),C.promise},h.getApicodoMediaToken=D,h.mediaApiBase=I,h}]),app.component("changeEmailForm",{templateUrl:"/ClientApp/src/legacy-app/authentication/changeEmailForm.html",controller:["$rootScope","authService",function(e,t){var a=this,n={email:"",confirmEmail:""},l=function(){a.newEmail=angular.copy(n)};l(),a.changeEmail=function(c,h){c||a.newEmail.confirmEmail!==a.newEmail.email||t.changeEmail(a.newEmail).then(function(r){a.changeEmailError=null,a.changeEmailSuccess=e.scope.currentScope.network.resources.web_authentication_changeEmailForm_changeEmailSuccessful,l(),h.$setPristine(),h.$setUntouched()},function(r){a.changeEmailError=r,a.changeEmailSuccess=null})}}]}),app.component("emailManagementForm",{templateUrl:"/ClientApp/src/legacy-app/authentication/emailManagementForm.html",controller:["$rootScope","authService","$uibModal",function(e,t,a){var n=this;n.active=!0;var l=function(){t.getEmails().then(function(c){n.emails=c,n.confirmedEmails=[],n.unConfirmedEmails=[],$.each(c,function(h,r){r.active&&(n.activeEmail=r),r.emailConfirmed&&!r.active&&n.confirmedEmails.push(r),!r.emailConfirmed&&r.email&&n.unConfirmedEmails.push(r)})})};n.toggleDropdown=function(){n.active=!n.active},n.sendVerificationDialog=function(c){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/sendVerificationDialog.html",size:"lg"}).result.then(function(){t.sendEmailVerification(c)})},n.updateActiveEmailDialog=function(c){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/updateActiveEmailDialog.html",size:"lg"}).result.then(function(){t.updateActiveEmail(c).then(function(){l()})})},n.emailDeleteDialog=function(c){a.open({templateUrl:"/ClientApp/src/legacy-app/authentication/emailDeleteDialog.html",size:"lg"}).result.then(function(){t.deleteEmail(c).then(function(h){l()})})},l()}]}),app.controller("InstagramRegisterFormController",["$scope","authenticationCallback","instagramUserData","instagramService","profileService",function(e,t,a,n,l){e.signUpData=a;var c=function(r,i){return r?r.split(" ")[0]:i},h=function(r){if(r){var i=c(r);return r.replace(i,"")||i}return null};e.instagramRegister=function(r){if(r){var i=c(e.signUpData.data.full_name,e.signUpData.data.username),m={token:e.signUpData.token,loginProvider:"Instagram",Email:e.signUpData.email,Gender:e.signUpData.gender,YearOfBirth:e.signUpData.yearOfBirth,FirstName:i,LastName:h(i)};n.register(m).then(function(){l.fetchExternalAvatar({providerName:"Instagram",token:e.signUpData.token}).then(function(){e.$dismiss(),t()})},function(d){e.error=d.data||scope.currentScope.network.getResourceOrKeyName("web_common_errorOccurred")})}}}]),app.factory("instagramService",["$rootScope","$location","$http","$q","$uibModal",function(e,t,a,n,l){var c=this;c.accessToken=null;var h=function(u){return angular.isDefined(u)&&(c.accessToken=u),c.accessToken},i=function(){var u=n.defer(),b=scope.apiEndpoint+"Account/LoginExternal";return a.post(b,{LoginProvider:"Instagram",Token:c.accessToken}).then(function(){u.resolve({isUserRegister:!0})},function(f){404===f.status?u.resolve({isUserRegister:!1,token:c.accessToken}):u.reject(f)}),u.promise},m=function(){var u=n.defer();return a.get("https://api.instagram.com/v1/users/self/?access_token="+c.accessToken,{withCredentials:!1}).then(function(y){u.resolve(y.data)},function(y){console.error("error",y)}),u.promise};return $.oauthpopup=function(u){u.windowName=u.windowName||"ConnectWithOAuth",u.windowOptions=u.windowOptions||"location=0,status=0,width=800,height=400",u.callback=u.callback||function(){window.location.reload()};var b=this;b._oauthWindow=window.open(u.path,u.windowName,u.windowOptions),b._oauthInterval=window.setInterval(function(){if(b._oauthWindow.closed){var y=localStorage.token;window.clearInterval(b._oauthInterval),u.callback(y)}},1e3)},{getGrant:function(){var b=e.scope.currentScope.isNative?"https://"+e.scope.currentScope.network.domain+e.scope.currentScope.chapter.path:"http://localhost:52392"+e.scope.currentScope.chapter.path;$.oauthpopup({path:"https://instagram.com/oauth/authorize/?client_id="+e.scope.globalSettings.authenticationInstagramAppId+"&redirect_uri="+(b+="/instagram-callback/")+"&response_type=code",windowName:"ConnectToInstagram",callback:function(){var u;u=localStorage.token,h(u),m().then(function(b){i().then(function(y){y.isUserRegister?(e.$emit("authenticationStateChanged"),t.path("/").search("")):l.open({templateUrl:"/ClientApp/src/legacy-app/authentication/instagramRegisterForm.html",controller:"InstagramRegisterFormController",size:"lg",resolve:{instagramUserData:function(){return b.token=y.token,b},authenticationCallback:function(){return function(){e.$emit("authenticationStateChanged"),t.path("/").search("")}}}})},function(y){$scope.error=y.data||"Es ist ein Fehler aufgetreten."})}),localStorage.token=""}})},setToken:h,getUserData:m,login:i,isAvailable:function(){return e.scope.currentScope.network.settings.availableInstagramLogin&&!e.app},register:function(u){var b=n.defer(),y=scope.apiEndpoint+"Account/RegisterExternal";return a.post(y,u).then(function(f){b.resolve(f)},function(f){b.reject(f)}),b.promise}}}]),app.controller("LoginSaml2Controller",["$scope","$rootScope","$location","$state","authService",function(e,t,a,n,l){e.isApp=t.app,e.title="Mit Unternehmenskonto anmelden",e.login=function(){n.go("app.root.login",{closedToken:a.search().token})},e.signUpData={gender:null,yearOfBirth:null,staffNumber:null,isApp:t.app},e.loginError=null,l.loginSaml2(e.signUpData).then(function(c){a.path(scope.currentChapter.path+"/")},function(c){e.loginError=c.data})}]),app.controller("RegisterController",["$interpolate","$scope","$rootScope","$location","$window","authService","$timeout","profileService","$state","registerForNewsletter",function(e,t,a,n,l,c,h,r,i,m){t.registerForNewsletter=m,r.getProfile(!0).then(function(o){t.isRegistered=o.isRegistered,t.newsletterSubscribed=!o.unsubscribe,o.isRegistered&&!t.registerForNewsletter&&n.path("/").replace()},function(){n.path("/").replace()}),t.web_register_newsletterIsSubscribedDescription_0=e(scope.currentScope.network.resources.web_register_newsletterIsSubscribedDescription_0)({chapterName:scope.currentScope.chapter.name}),t.web_register_newsletterIsNotSubscribedDescription_0=e(scope.currentScope.network.resources.web_register_newsletterIsNotSubscribedDescription_0)({chapterName:scope.currentScope.chapter.name}),t.web_register_newsletterCheckboxDescription_0=e(scope.currentScope.network.resources.web_register_newsletterCheckboxDescription_0)({chapterName:scope.currentScope.chapter.name}),t.isApp=a.app,t.title=t.registerForNewsletter?scope.currentScope.network.getResourceOrKeyName("web_register_subscribeNewsletter"):scope.currentScope.network.getResourceOrKeyName("web_common_register"),t.signUpData={token:null,email:"",password:"",confirmPassword:"",gender:a.scope.currentScope.chapter.settings.featureRegistrationAgeGender?1:null,yearOfBirth:null,firstName:"",lastName:"",locations:[],isNewsletterSubscribe:!1,closedChapterToken:null},t.signupError=null,t.signUp=function(o){o&&t.signUpData.password===t.signUpData.confirmPassword?(n.search().closedToken&&(t.signUpData.closedChapterToken=n.search().closedToken),c.register(t.signUpData).then(function(){n.path(scope.currentChapter.path+"/account/registration-complete")},function(s){!function(o){if(o.modelState){var s=[];for(var p in o.modelState)if(o.modelState.hasOwnProperty(p))for(var u=0;u<o.modelState[p].length;u++){var b=o.modelState[p][u];-1===s.indexOf(b)&&s.push(b)}t.signupError="Fehler bei der Registrierung: "+s.join(" ")}else t.signupError=o.data;h(function(){var y=$("form[name='signUpForm']").find("div[name='signupError']").not(".ng-hide").first(),f=null;y.length&&!y.visible(!1,!0)?f=y:t.signUpError&&(f=$("form[name='signUpForm']")),f&&$(document.body).animate({scrollTop:f.offset().top-150},1e3)})}(s)})):h(function(){var s=$("form[name='signUpForm']").find(".input-error").not(".ng-hide").first();s.length&&!s.visible(!1,!0)&&$(document.body).animate({scrollTop:s.offset().top-150},1e3)})}}]),app.controller("RequestPasswordController",["$rootScope","$scope","$location","authService",function(e,t,a,n){e.profile.isRegistered&&!e.profile.adminSetPassword&&a.path("/").replace(),t.setPasswordData={newPassword:"",confirmPassword:"",passwordRequestToken:null,acceptPrivacyPolicy:!1,title:e.scope.currentScope.network.getResourceOrKeyName("web_requestPassword_pageTitle")},t.requestPasswordData={email:""},a.search().token&&(t.setPasswordData.passwordRequestToken=a.search().token),t.isInvitation=void 0!==a.search().invitation,t.isInitialPasswordChange=void 0!==a.search().initial|e.profile.adminSetPassword,t.isInvitation&&e.scope.currentScope.network.resources.web_requestPassword_pageTitle_Invitation&&(t.setPasswordData.title=e.scope.currentScope.network.resources.web_requestPassword_pageTitle_Invitation),t.showPrivacyPolicy=(t.isInvitation||t.isInitialPasswordChange)&&e.scope.currentChapter.settings.configurations.requirePrivacyPolicyInvitation,t.requestPassword=function(l){l&&n.requestPassword(t.requestPasswordData).then(function(c){a.path(scope.currentChapter.path+"/account/password-requested")},function(c){if(c.modelState){var h=[];for(var r in c.modelState)for(var i=0;i<c.modelState[r].length;i++){var m=c.modelState[r][i];-1==h.indexOf(m)&&h.push(m)}t.error=h.join(" ")}else t.error=c.data})},t.setPassword=function(l){!l||t.setPasswordData.newPassword!==t.setPasswordData.confirmPassword||n.changePassword(t.setPasswordData).then(function(c){e.profile.adminSetPassword&&(e.profile.adminSetPassword=!1),a.path(scope.currentChapter.path+"/account/password-resetted").search("")},function(c){if(c.modelState){var h=[];for(var r in c.modelState)for(var i=0;i<c.modelState[r].length;i++){var m=c.modelState[r][i];-1==h.indexOf(m)&&h.push(m)}t.error=h.join(" ")}else t.error=c.data})}}]),app.controller("AuthorBillingInfoController",["$scope","authorService","profileService","$location",function(e,t,a,n){e.author={authorId:null,taxNumber:"",taxIdNumber:"",accountHolder:"",iban:"",bic:"",tax:!1,billingFirstName:"",billingLastName:"",billingCompanyName:"",address:"",city:"",postalCode:null,chapter:null,imprint:{value:""}},e.success=!1,e.fromApply=n.search().fromApply,a.getProfile().then(function(l){l.isRegistered||n.path("/").replace(),t.getAuthor(l.chapter,l.guid).then(function(c){c.billingFirstName&&(e.author.billingfirstname=c.billingFirstName),c.taxNumber&&(e.author.taxnumber=c.taxNumber),c.taxIdNumber&&(e.author.taxidnumber=c.taxIdNumber),c.accountHolder&&(e.author.accountholder=c.accountHolder),c.bic&&(e.author.bic=c.bic),c.tax&&(e.author.tax=c.tax),c.billingLastName&&(e.author.billinglastname=c.billingLastName),c.billingCompanyName&&(e.author.billingcompanyname=c.billingCompanyName),c.address&&(e.author.address=c.address),c.city&&(e.author.city=c.city),c.postalCode&&(e.author.postalcode=c.postalCode),c.imprint&&(e.author.imprint=c.imprint),c.iban&&(e.author.iban=c.iban),c.iban&&(e.author.ibanshow=c.iban.substr(0,7)+c.iban.substr(7).replace(/.(?=.{4,}$)/g,"*"))})},function(l){n.path("/").replace()}),e.resetValue=function(){e.author.iban=""},e.signUp=function(l){l&&t.updateAuthorBillingInfo(e.author.chapter,e.author).then(function(c){e.success=!0},function(){e.success=!1})}}]),app.controller("AuthorListController",["$scope","authorService",function(e,t){t.getAuthors().then(function(a){e.authors=a}),e.level9Filter=function(){return function(a){return 9==a.levelId}},e.level8Filter=function(){return function(a){return 8==a.levelId}},e.level7Filter=function(){return function(a){return 7==a.levelId}},e.level6Filter=function(){return function(a){return 6==a.levelId}},e.level5Filter=function(){return function(a){return 5==a.levelId}},e.level4Filter=function(){return function(a){return 4==a.levelId}},e.level3Filter=function(){return function(a){return 3==a.levelId}},e.level2Filter=function(){return function(a){return 2==a.levelId}},e.level1Filter=function(){return function(a){return 1==a.levelId}}}]),app.directive("authorListItem",[function(){return{restrict:"E",require:"ngModel",templateUrl:"/ClientApp/src/legacy-app/author/authorListItem.html",replace:!0,scope:!0,link:function(e,t,a){e.$watch(a.ngModel,function(){e.author=e.$eval(a.ngModel)})}}}]),app.factory("authorService",["$http","$q",function(e,t){return{getAuthors:function(){var s=t.defer();return e.get(scope.apiEndpoint+"authors").then(function(p){s.resolve(p.data)},function(){s.reject()}),s.promise},getMyArticles:function(){var s=t.defer();return e.get(scope.apiEndpoint+"authors/MyArticles").then(function(p){s.resolve(p.data)},function(){s.reject()}),s.promise},checkApply:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"snips/"+s+"/checkApply").then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},applySnip:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"snips/"+s+"/apply").then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},noApplySnip:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"snips/"+s.snipId+"/noapply/"+s.id).then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},allocateSnip:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"snips/"+s.snipId+"/allocate/"+s.id).then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},rejectSnip:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"snips/"+s.snipId+"/reject/"+s.id).then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},getAuthor:function(s,p){var u=t.defer();return e.get(scope.apiEndpoint+"authors/"+p).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},updateAuthorBillingInfo:function(s,p){var u=t.defer();return e.put(scope.apiEndpoint+"authors/updateauthorbillinginfo",p).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getAuthorImprint:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"authors/"+s+"/imprint").then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise}}}]),app.controller("DashboardController",["$scope","$rootScope","authorService","articleService","$uibModal","profileService","$location","eventCalendarService",function(e,t,a,n,l,c,h,r){var i=function(){a.getMyArticles().then(function(d){d.applications.forEach(function(p){p.fullPath=t.scope.currentScope.chapter.path+p.path}),d.publishedArticles.forEach(function(p){p.fullPath=t.scope.currentScope.chapter.path+p.path});var s=d.applications,o=d.publishedArticles;s=d.applications,!1!==t.scope.currentScope.network.settings.configurations.enableCalendar&&t.scope.currentScope.chapter.settings.configurations.enableEventCalendar?r.getEventsForAuthorDashboard().then(function(p){p.forEach(function(u){u.fullPath=t.scope.currentScope.chapter.path+"/events/"+u.id,u.isEvent=!0,u.published?o.push(u):(u.accepted=u.created,u.assigned=u.created,s.push(u))}),e.articles=o,e.applications=s}):(e.articles=o,e.applications=s)})},m=t.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canCreateEvents=t.profile.isNewsroomAdmin||!m&&t.profile.isMerkuristJournalist||m&&(6===m.MinEventCreationRole&&t.profile.isHeadSales||5===m.MinEventCreationRole&&t.profile.isSales||4===m.MinEventCreationRole&&t.profile.isHeadJournalist||3===m.MinEventCreationRole&&t.profile.isMerkuristJournalist||2===m.MinEventCreationRole&&t.profile.isJournalist),c.getProfile().then(function(d){d.isJournalist||h.path("/").replace();var o=d.guid;e.$watch("profile.guid",function(){o!=d.guid&&h.path("/")}),i(),$(window).bind("focus",function(){i()})},function(d){h.path("/").replace()}),e.noApply=function(d){a.noApplySnip(d).then(function(o){i()})},e.allocate=function(d){a.allocateSnip(d).then(function(o){i()})},e.reject=function(d){a.rejectSnip(d).then(function(o){i()})},e.articleDeleteDialog=function(d){l.open({templateUrl:"/ClientApp/src/legacy-app/author/articleDeleteDialog.html",size:"lg"}).result.then(function(){n.deleteArticle(d).then(function(){i()})})},e.eventDeleteDialog=function(d){l.open({templateUrl:"/ClientApp/src/legacy-app/author/eventDeleteDialog.html",size:"lg"}).result.then(function(){r.deleteEvent(d).then(function(){i()})})},e.createArticle=function(){n.createArticle().then(function(d){h.path(d.path+"/edit")})},e.createEvent=function(){r.createEvent().then(function(d){h.path("/events/"+d+"/edit")})}}]),app.controller("BannerCampaignElasticReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(l.pin).then(function(i){e.bannerCampaign=i,e.loaded=!1,a.getElasticReportBannerCalendar(i.pin).then(function(m){i.report=m,i.banners.forEach(function(o){o.imageUrl=n.getGlobalSettings().blobStorageCdnUrl+"/"+n.getGlobalSettings().blobStorageContainerNameShipment+"/"+o.pin+"?preset=shipment"});var d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];c(function(){var o,s,p;$.each(m,function(x,F){F.active=!0}),$.each(i.banners,function(x,F){F.active=!0}),m.length>1&&(m.multiChapterShipment=!0);for(var u=[],b=[],y=[],f=new Date(i.start);f<=moment(new Date).startOf("day").add(1,"d").toDate();f.setDate(f.getDate()+1)){var R={start:new Date(f),billableImpressions:0,clicks:0};u.push(R),y[R.start.toDateString()]=R,b.push(R)}var S={impressions:0,billableImpressions:0,viewableImpressionTimeSeconds:0,clicks:0,desktopImpressions:0,mobileImpressions:0,tabletImpressions:0,start:moment(i.start).startOf("day").toDate(),end:moment(new Date).startOf("day").toDate()};e.summary=S;var v=function(){$.each(b,function(x,F){F.clicks=0,F.billableImpressions=0}),S.impressions=0,S.billableImpressions=0,S.viewableImpressionTimeSeconds=0,S.clicks=0,S.desktopImpressions=0,S.mobileImpressions=0,S.tabletImpressions=0,d[0].value=0,d[1].value=0,d[2].value=0,o.validateData(),s.validateData(),p.validateData(),$.each(m,function(x,F){F.active&&$.each(F.reports,function(D,I){var A=!1;$.each(i.banners,function(C,U){U.id===I.bannerId&&U.active&&(A=!0)}),A&&(I.billableImpressionsCalendar.length&&$.each(I.billableImpressionsCalendar,function(C,U){y[new Date(U.day).toDateString()]&&(y[new Date(U.day).toDateString()].billableImpressions+=U.data)}),I.clickCalendar.length&&$.each(I.clickCalendar,function(C,U){y[new Date(U.day).toDateString()]&&(y[new Date(U.day).toDateString()].clicks+=U.data)}),S.impressions+=I.impressions,S.billableImpressions+=I.billableImpressions,S.viewableImpressionTimeSeconds+=I.viewableImpressionTimeSeconds/1e3,S.clicks+=I.clicks,S.desktopImpressions+=I.desktopImpressions,S.mobileImpressions+=I.mobileImpressions,S.tabletImpressions+=I.tabletImpressions)})}),d[0].value=Math.round(100/(S.impressions/S.desktopImpressions)),d[1].value=Math.round(100/(S.impressions/S.mobileImpressions)),d[2].value=Math.round(100/(S.impressions/S.tabletImpressions)),o.validateData(),s.validateData(),p.validateData()};o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableImpressions",toField:"billableImpressions"}],dataProvider:u,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"billableImpressions",valueField:"billableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"billableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableImpressions",toField:"billableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:b,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"billableImpressions",type:"smoothedLine",valueField:"billableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var w=function(x,F,D){$.each(m,function(I,A){A.chapter=n.getChapter(A.chapterSlug),a.getChapterReport(A.chapter.id,i,F,D).then(function(C){A.reports=C,e.loaded=!0,v(),x&&($.each(A.reports,function(U,k){k.active=!0}),u.length=0,$.each(b,function(U,k){u.push({start:k.start,billableImpressions:k.billableImpressions})}))}),o.validateData(),s.validateData(),p.validateData()})};o.addListener("zoomed",function(x){S.start=moment(o.startDate).startOf("day").toDate(),S.end=moment(o.endDate).startOf("day").toDate(),w(!1,moment(S.start).startOf("day").add(1,"d").toDate(),moment(S.end).startOf("day").add(2,"d").toDate()),s.zoom(S.start,moment(S.end).startOf("day").add(1,"d").toDate())}),e.toggleReport=function(x){$.each(i.banners,function(F,D){D.id===x.id&&(D.active=!D.active)}),v()},e.toggleChapter=function(x){$.each(m,function(F,D){D.chapter.name===x&&(D.active=!D.active)}),v()},w(!0,moment(i.start).startOf("day").toDate(),moment(new Date).startOf("day").add(2,"d").toDate())},function(){e.error=!0})})},function(){h.path("/")})}]),app.controller("bannerCampaignReportController",["$scope","$rootScope","bannerCampaignService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getbannerCampaignByPin(l.pin).then(function(s){e.bannerCampaign=s,a.getreportBannerCalendar(s.pin).then(function(p){p.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.reports.forEach(function(b){b.calendar.forEach(function(y){y.start=moment(y.start.replace("Z","")).toDate(),y.end=moment(y.end.replace("Z","")).toDate()})})}),s.report=p,s.banners.forEach(function(u){u.imageUrl=n.getGlobalSettings().blobStorageCdnUrl+"/"+n.getGlobalSettings().blobStorageContainerNameShipment+"/"+u.pin+"?preset=shipment"}),h(function(){var u,b,y,f,R,S=new Set;$.each(p,function(D,I){I.active=!0,S.add(I.chapter.name)}),p.uniqueChapters=[],S.forEach(function(D){p.uniqueChapters.push(D)}),$.each(s.banners,function(D,I){I.reportActive=!0});var v=[],w=function(){v.length=0,$.each(p[0].reports[0].calendar,function(D,I){v.push({start:I.start,end:I.end,impressions:0,viewableImpressions:0,billableViewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(p,function(D,I){I.active&&(p[D-1]&&2===p[D-1].chapter.managementState&&2===I.chapter.managementState&&p[D-1].chapter.name!==I.chapter.name&&(p.multiChapterShipment=!0),$.each(I.reports,function(A,C){if(s.banners[A].reportActive){var U=C.banner.pin;$.each(C.calendar,function(k,T){T.pin=U,v[k].impressions+=T.impressions,v[k].viewableImpressions+=T.viewableImpressions,v[k].billableViewableImpressions+=T.billableViewableImpressions,v[k].viewableImpressionTimeSeconds+=T.viewableImpressionTimeSeconds,v[k].desktopViewableImpressions+=T.desktopViewableImpressions,v[k].mobileViewableImpressions+=T.mobileViewableImpressions,v[k].tabletViewableImpressions+=T.tabletViewableImpressions,v[k].clicks+=T.clicks,v[k].maleViewableImpressions+=T.maleViewableImpressions,v[k].femaleViewableImpressions+=T.femaleViewableImpressions,v[k].age1617MaleViewableImpressions+=T.age1617MaleViewableImpressions,v[k].age1824MaleViewableImpressions+=T.age1824MaleViewableImpressions,v[k].age2534MaleViewableImpressions+=T.age2534MaleViewableImpressions,v[k].age3544MaleViewableImpressions+=T.age3544MaleViewableImpressions,v[k].age4554MaleViewableImpressions+=T.age4554MaleViewableImpressions,v[k].age55MaleViewableImpressions+=T.age55MaleViewableImpressions,v[k].age1617FemaleViewableImpressions+=T.age1617FemaleViewableImpressions,v[k].age1824FemaleViewableImpressions+=T.age1824FemaleViewableImpressions,v[k].age2534FemaleViewableImpressions+=T.age2534FemaleViewableImpressions,v[k].age3544FemaleViewableImpressions+=T.age3544FemaleViewableImpressions,v[k].age4554FemaleViewableImpressions+=T.age4554FemaleViewableImpressions,v[k].age55FemaleViewableImpressions+=T.age55FemaleViewableImpressions})}}))}),b.validateData(),u.validateData()},g=p.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"billableViewableImpressions",toField:"billableViewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"billableViewableImpressions",type:"smoothedLine",valueField:"billableViewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),y=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),f=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(D,I){return-1*D.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(D){return D<0?-1*D+"":D+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),R=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var D=moment(u.startDate).startOf("day").toDate(),I=moment(u.endDate).startOf("day").add(-1,"d").toDate();(function(D,I){g.maleViewableImpressions=0,g.femaleViewableImpressions=0,g.viewableImpressions=0,g.billableViewableImpressions=0,g.viewableImpressionTimeSeconds=0,g.impressions=0,g.clicks=0,g.desktopViewableImpressions=0,g.mobileViewableImpressions=0,g.tabletViewableImpressions=0,g.age1617MaleViewableImpressions=0,g.age1824MaleViewableImpressions=0,g.age2534MaleViewableImpressions=0,g.age3544MaleViewableImpressions=0,g.age4554MaleViewableImpressions=0,g.age55MaleViewableImpressions=0,g.age1617FemaleViewableImpressions=0,g.age1824FemaleViewableImpressions=0,g.age2534FemaleViewableImpressions=0,g.age3544FemaleViewableImpressions=0,g.age4554FemaleViewableImpressions=0,g.age55FemaleViewableImpressions=0;var A=0,C=0,U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0;g.start=D,g.end=I,$.each(v,function(Y,B){var z=new Date(B.start);z<D||z>I||(g.maleViewableImpressions+=B.maleViewableImpressions,g.femaleViewableImpressions+=B.femaleViewableImpressions,g.viewableImpressions+=B.viewableImpressions,g.billableViewableImpressions+=B.billableViewableImpressions,g.viewableImpressionTimeSeconds+=B.viewableImpressionTimeSeconds,g.impressions+=B.impressions,g.clicks+=B.clicks,A+=B.desktopViewableImpressions,C+=B.mobileViewableImpressions,U+=B.tabletViewableImpressions,k+=B.age1617MaleViewableImpressions,T+=B.age1824MaleViewableImpressions,V+=B.age2534MaleViewableImpressions,M+=B.age3544MaleViewableImpressions,_+=B.age4554MaleViewableImpressions,O+=B.age55MaleViewableImpressions,q+=B.age1617FemaleViewableImpressions,P+=B.age1824FemaleViewableImpressions,E+=B.age2534FemaleViewableImpressions,N+=B.age3544FemaleViewableImpressions,j+=B.age4554FemaleViewableImpressions,W+=B.age55FemaleViewableImpressions)}),g.desktopViewableImpressions=Math.round(100/(g.viewableImpressions/A)),g.mobileViewableImpressions=Math.round(100/(g.viewableImpressions/C)),g.tabletViewableImpressions=Math.round(100/(g.viewableImpressions/U));var K=g.viewableImpressions-(k+T+V+M+_+O+q+P+E+N+j+W);K>100&&(k+=K*t.scope.globalSettings.reportAverageAge1617Male,T+=K*t.scope.globalSettings.reportAverageAge1824Male,V+=K*t.scope.globalSettings.reportAverageAge2534Male,M+=K*t.scope.globalSettings.reportAverageAge3544Male,_+=K*t.scope.globalSettings.reportAverageAge4554Male,O+=K*t.scope.globalSettings.reportAverageAge55Male,q+=K*t.scope.globalSettings.reportAverageAge1617Female,P+=K*t.scope.globalSettings.reportAverageAge1824Female,E+=K*t.scope.globalSettings.reportAverageAge2534Female,N+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),g.age1617MaleViewableImpressions=Math.round(100/(g.viewableImpressions/k)),g.age1824MaleViewableImpressions=Math.round(100/(g.viewableImpressions/T)),g.age2534MaleViewableImpressions=Math.round(100/(g.viewableImpressions/V)),g.age3544MaleViewableImpressions=Math.round(100/(g.viewableImpressions/M)),g.age4554MaleViewableImpressions=Math.round(100/(g.viewableImpressions/_)),g.age55MaleViewableImpressions=Math.round(100/(g.viewableImpressions/O)),g.age1617FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/q)),g.age1824FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/P)),g.age2534FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/E)),g.age3544FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/N)),g.age4554FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/j)),g.age55FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/W)),g.maleViewableImpressions=Math.round(g.maleViewableImpressions),g.femaleViewableImpressions=Math.round(g.femaleViewableImpressions),m[0].value=g.femaleViewableImpressions,m[1].value=g.maleViewableImpressions,d[0].male=Math.round(-1*g.age1617MaleViewableImpressions),d[1].male=Math.round(-1*g.age1824MaleViewableImpressions),d[2].male=Math.round(-1*g.age2534MaleViewableImpressions),d[3].male=Math.round(-1*g.age3544MaleViewableImpressions),d[4].male=Math.round(-1*g.age4554MaleViewableImpressions),d[5].male=Math.round(-1*g.age55MaleViewableImpressions),d[0].female=Math.round(g.age1617FemaleViewableImpressions),d[1].female=Math.round(g.age1824FemaleViewableImpressions),d[2].female=Math.round(g.age2534FemaleViewableImpressions),d[3].female=Math.round(g.age3544FemaleViewableImpressions),d[4].female=Math.round(g.age4554FemaleViewableImpressions),d[5].female=Math.round(g.age55FemaleViewableImpressions),o[0].value=g.desktopViewableImpressions,o[1].value=g.mobileViewableImpressions,o[2].value=g.tabletViewableImpressions,y.validateData(),f.validateData(),R.validateData(),e.$apply()})(D,I),b.zoom(D,moment(I).add(1,"d").toDate())};u.addListener("zoomed",function(D){F()}),e.toggleReport=function(D){$.each(s.banners,function(I,A){A.pin===D.pin&&(A.reportActive=!A.reportActive)}),h(function(){w(),F()},50)},e.toggleChapter=function(D){$.each(p,function(I,A){A.chapter.name===D&&(A.active=!A.active)}),h(function(){w(),F()},50)},w(),b.validateData(),u.validateNow(),u.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")});var m=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("bannerCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,l,c){var h=[],d=function(){var p=t.defer();return h.length>0?p.resolve(h):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(u){angular.copy(u.data,h),p.resolve(h)},function(){p.reject()}),p.promise};function o(p){var u=null;return $.each(h,function(b,y){if(y.pin===p)return u=y,!1}),u}return{bannerCampaigns:h,getbannerCampaigns:d,getreportBannerCalendar:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+p+"/ReportBannerCalendar").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getbannerCampaignByPin:function(p){var u=t.defer();if(h.length>0){var b=o(p);b?u.resolve(b):e.get(scope.apiEndpoint+"/bannerCampaigns"+p).then(function(y){u.resolve(y.data)},function(){u.reject()})}else d().then(function(){var y=o(p);y?u.resolve(y):e.get(scope.apiEndpoint+"bannerCampaigns/"+p).then(function(f){u.resolve(f.data)},function(){u.reject()})},function(){u.reject()});return u.promise},getElasticReportBannerCalendar:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/"+p+"/Elastic").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getChapterReport:function(p,u,b,y){var f=t.defer();return e.get(scope.apiEndpoint+"bannerCampaigns/chapterReport?chapterId="+p+"&bannerCampaignId="+u.id+"&start="+new Date(b).getTime()+"&end="+new Date(y).getTime()).then(function(R){f.resolve(R.data)},function(){f.reject()}),f.promise}}}]),app.component("betterPlaceProjectAttribution",{templateUrl:"/ClientApp/src/legacy-app/betterPlace/betterPlaceProjectAttribution.html",bindings:{projectDetails:"<"},controller:["$state","$rootScope","scopeService","formatterService","$uibModal","betterPlaceService",function(e,t,a,n,l,c){var h=this;h.carrierDetails=null,this.$onInit=function(){c.getApiResult(h.projectDetails.carrier.links[0].href).then(function(r){h.carrierDetails=r})}}]}),app.component("betterPlaceProjectCover",{templateUrl:"/ClientApp/src/legacy-app/betterPlace/betterPlaceProjectCover.html",bindings:{article:"<"},controller:["$state","$rootScope","scopeService","formatterService","$uibModal","betterPlaceService",function(e,t,a,n,l,c){var h=this;h.projectDetails={},this.$onInit=function(){h.article.betterPlaceProjectId&&t.scope.currentScope.chapter.settings.enableBetterPlaceProjects&&c.getProjectDetails(h.article.betterPlaceProjectId).then(function(r){h.projectDetails=r})}}]}),app.service("betterPlaceService",["$http","$q",function(e,t){var a={withCredentials:!1};return{getProjectDetails:function(c){var h=t.defer();return e.get(scope.globalSettings.betterPlaceApiUrl+"/projects/"+c,a).then(function(r){h.resolve(r.data)},function(){h.reject()}),h.promise},getApiResult:function(c){var h=t.defer();return e.get(c,a).then(function(r){h.resolve(r.data)},function(){h.reject()}),h.promise}}}]),app.controller("BrochureElasticReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var d,o,s,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],m=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var p=function(f){var R=0,S=0,v=0,w=0,g=0,x=0;$.each(f,function(F,D){R+=D.desktopImpressionCount,S+=D.tabletImpressionCount,v+=D.mobileImpressionCount,w+=D.uniqueViews,g+=D.impressionTime,x+=D.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=w,e.totalImpressionTime=g,e.totalImpressionCount=x}),i[0].value=Math.round(100/(x/R)),i[1].value=Math.round(100/(x/v)),i[2].value=Math.round(100/(x/S)),d.validateData()},u=function(){var f=moment(o.startDate).startOf("day").toDate(),R=moment(o.endDate).startOf("day").toDate(),S=e.report.filter(function(v){return v.day>=f&&v.day<=R});p(S),s.zoom(f,moment(R).add(1,"d").toDate()),e.$apply(function(){e.startDay=f,e.endDay=R})};e.filterChapter=function(f){f.filtered=!f.filtered,function(){var f=e.chapters.filter(function(R){return!R.filtered}).map(function(R){return R.id});e.filterDisabled=!0,a.getBrochureReport({specialId:l.id,chapterIds:f}).then(function(R){R.forEach(function(S){S.day=moment(S.day.replace("Z","")).toDate()}),e.report=R,c(function(){(function(f){m.length=0,$.each(f,function(R,S){m.push(S)}),o.validateData(),s.validateData()})(R),u(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(f){return e.filterDisabled||1===e.chapters.filter(function(R){return!R.filtered}).length&&!f.filtered},a.getBrochureInfo(l.id).then(function(f){e.brochure=f,a.getBrochureReport({specialId:l.id}).then(function(R){R.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=R,e.startDay=R[0].day,e.endDay=R[R.length-1].day;var S=[];$.each(f.chapterSlugs,function(v,w){S.push(n.getChapter(w))}),S=S.filter(function(v){return 2===v.managementState}),e.chapters=S,$.each(R,function(v,w){m.push(w)}),c(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:m,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:m,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"uniqueViews",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p(R)})},function(){e.error=!0})})}]),app.controller("BrochureReportController",["$scope","$rootScope","brochureService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0,a.getBrochureInfo(l.id).then(function(o){e.brochure=o,a.getBrochureCalendar(l.id).then(function(s){s.forEach(function(p){p.chapter=n.getChapter(p.chapterSlug),p.report.calendar.forEach(function(u){u.start=moment(u.start.replace("Z","")).toDate(),u.end=moment(u.end.replace("Z","")).toDate()})}),o.chapterReport=s,h(function(){var p,u,b,y,f,R,S=new Set;$.each(s,function(D,I){I.active=!0,S.add(I.chapter.name)}),s.uniqueChapters=[],S.forEach(function(D){s.uniqueChapters.push(D)});var v=[],w=function(){v.length=0,$.each(s[0].report.calendar,function(D,I){v.push({start:I.start,end:I.end,viewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(s,function(D,I){if(I.active){s[D-1]&&2===s[D-1].chapter.managementState&&2===I.chapter.managementState&&s[D-1].chapter.name!==I.chapter.name&&(s.multiChapterShipment=!0);var A=I.report.brochure.Id;$.each(I.report.calendar,function(C,U){U.brochureId=A;var k=v[C];k.viewableImpressions+=U.viewableImpressions,k.activeTimeSeconds+=U.activeTimeSeconds,k.readings+=U.views,k.maleUniqueViewableImpressions+=U.maleViewableImpressions,k.femaleUniqueViewableImpressions+=U.femaleViewableImpressions,k.uniqueReadings+=U.uniqueViews,k.desktopReadings+=U.desktopViews,k.mobileReadings+=U.mobileViews,k.tabletReadings+=U.tabletViews,k.age1617MaleUniqueViewableImpressions+=U.age1617MaleViewableImpressions,k.age1824MaleUniqueViewableImpressions+=U.age1824MaleViewableImpressions,k.age2534MaleUniqueViewableImpressions+=U.age2534MaleViewableImpressions,k.age3544MaleUniqueViewableImpressions+=U.age3544MaleViewableImpressions,k.age4554MaleUniqueViewableImpressions+=U.age4554MaleViewableImpressions,k.age55MaleUniqueViewableImpressions+=U.age55MaleViewableImpressions,k.age1617FemaleUniqueViewableImpressions+=U.age1617FemaleViewableImpressions,k.age1824FemaleUniqueViewableImpressions+=U.age1824FemaleViewableImpressions,k.age2534FemaleUniqueViewableImpressions+=U.age2534FemaleViewableImpressions,k.age3544FemaleUniqueViewableImpressions+=U.age3544FemaleViewableImpressions,k.age4554FemaleUniqueViewableImpressions+=U.age4554FemaleViewableImpressions,k.age55FemaleUniqueViewableImpressions+=U.age55FemaleViewableImpressions})}}),b.validateData(),y.validateData(),f.validateData(),R.validateData()},g=s.summary={};p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:"#00cdbd",fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:"Wie oft wurde die Prospektseite aufgerufen?",percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_reportBrochure_amountOfViews"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),b=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:"#00cdbd",balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(D,I){return-1*D.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(D){return D<0?-1*D+"":D+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),f=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:"#00cdbd",balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),R=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[g],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:"#00cdbd",fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:"#00cdbd",fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:"#00cdbd",fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:"#00cdbd",fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var D=moment(p.startDate).startOf("day").toDate(),I=moment(p.endDate).startOf("day").add(-1,"d").toDate();u.zoom(D,moment(I).add(1,"d").toDate()),function(D,I){g.viewableImpressions=0,g.billableViewableImpressions=0,g.activeTimeSeconds=0,g.readings=0,g.uniqueReadings=0,g.uniqueReadingsHavingViewableImpressions=0,g.uniqueReadingPercentageReads=0,g.maleUniqueViewableImpressions=0,g.femaleUniqueViewableImpressions=0,g.desktopReadings=0,g.mobileReadings=0,g.tabletReadings=0,g.age1617MaleUniqueViewableImpressions=0,g.age1824MaleUniqueViewableImpressions=0,g.age2534MaleUniqueViewableImpressions=0,g.age3544MaleUniqueViewableImpressions=0,g.age4554MaleUniqueViewableImpressions=0,g.age55MaleUniqueViewableImpressions=0,g.age1617FemaleUniqueViewableImpressions=0,g.age1824FemaleUniqueViewableImpressions=0,g.age2534FemaleUniqueViewableImpressions=0,g.age3544FemaleUniqueViewableImpressions=0,g.age4554FemaleUniqueViewableImpressions=0,g.age55FemaleUniqueViewableImpressions=0,g.uniqueReadingPercentage24Reads=0,g.uniqueReadingPercentage2549Reads=0,g.uniqueReadingPercentage5074Reads=0,g.uniqueReadingPercentage75100Reads=0;var A=0,C=0,U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0;g.start=D,g.end=I,$.each(v,function(B,z){var Q=new Date(z.start);Q<D||Q>I||(g.viewableImpressions+=z.viewableImpressions,g.activeTimeSeconds+=z.activeTimeSeconds,g.readings+=z.readings,g.maleUniqueViewableImpressions+=z.maleUniqueViewableImpressions,g.femaleUniqueViewableImpressions+=z.femaleUniqueViewableImpressions,g.uniqueReadings+=z.uniqueReadings,A+=z.desktopReadings,C+=z.mobileReadings,U+=z.tabletReadings,k+=z.age1617MaleUniqueViewableImpressions,T+=z.age1824MaleUniqueViewableImpressions,V+=z.age2534MaleUniqueViewableImpressions,M+=z.age3544MaleUniqueViewableImpressions,_+=z.age4554MaleUniqueViewableImpressions,O+=z.age55MalUniqueeViewableImpressions,q+=z.age1617FemaleUniqueViewableImpressions,P+=z.age1824FemaleUniqueViewableImpressions,E+=z.age2534FemaleUniqueViewableImpressions,N+=z.age3544FemaleUniqueViewableImpressions,j+=z.age4554FemaleUniqueViewableImpressions,W+=z.age55FemaleUniqueViewableImpressions)});var K=A+C+U;g.desktopReadings=Math.round(100/(K/A)),g.mobileReadings=Math.round(100/(K/C)),g.tabletReadings=Math.round(100/(K/U)),g.maleUniqueViewableImpressions=Math.round(g.maleUniqueViewableImpressions),g.femaleUniqueViewableImpressions=Math.round(g.femaleUniqueViewableImpressions),i[0].value=g.femaleUniqueViewableImpressions,i[1].value=g.maleUniqueViewableImpressions;var Y=g.viewableImpressions-(k+T+V+M+_+O+q+P+E+N+j+W);Y>100&&(k+=Y*t.scope.globalSettings.reportAverageAge1617Male,T+=Y*t.scope.globalSettings.reportAverageAge1824Male,V+=Y*t.scope.globalSettings.reportAverageAge2534Male,M+=Y*t.scope.globalSettings.reportAverageAge3544Male,_+=Y*t.scope.globalSettings.reportAverageAge4554Male,O+=Y*t.scope.globalSettings.reportAverageAge55Male,q+=Y*t.scope.globalSettings.reportAverageAge1617Female,P+=Y*t.scope.globalSettings.reportAverageAge1824Female,E+=Y*t.scope.globalSettings.reportAverageAge2534Female,N+=Y*t.scope.globalSettings.reportAverageAge3544Female,j+=Y*t.scope.globalSettings.reportAverageAge4554Female,W+=Y*t.scope.globalSettings.reportAverageAge55Female),g.age1617MaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/k)),g.age1824MaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/T)),g.age2534MaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/V)),g.age3544MaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/M)),g.age4554MaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/_)),g.age55MaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/O)),g.age1617FemaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/q)),g.age1824FemaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/P)),g.age2534FemaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/E)),g.age3544FemaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/N)),g.age4554FemaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/j)),g.age55FemaleUniqueViewableImpressions=Math.round(100/(g.viewableImpressions/W)),m[0].male=Math.round(-1*g.age1617MaleUniqueViewableImpressions),m[1].male=Math.round(-1*g.age1824MaleUniqueViewableImpressions),m[2].male=Math.round(-1*g.age2534MaleUniqueViewableImpressions),m[3].male=Math.round(-1*g.age3544MaleUniqueViewableImpressions),m[4].male=Math.round(-1*g.age4554MaleUniqueViewableImpressions),m[5].male=Math.round(-1*g.age55MaleUniqueViewableImpressions),m[0].female=Math.round(g.age1617FemaleUniqueViewableImpressions),m[1].female=Math.round(g.age1824FemaleUniqueViewableImpressions),m[2].female=Math.round(g.age2534FemaleUniqueViewableImpressions),m[3].female=Math.round(g.age3544FemaleUniqueViewableImpressions),m[4].female=Math.round(g.age4554FemaleUniqueViewableImpressions),m[5].female=Math.round(g.age55FemaleUniqueViewableImpressions),d[0].value=g.desktopReadings,d[1].value=g.mobileReadings,d[2].value=g.tabletReadings,b.validateData(),y.validateData(),f.validateData(),R.validateData(),e.$apply()}(D,I)};p.addListener("zoomed",function(D){F()}),e.toggleChapter=function(D){$.each(s,function(I,A){A.chapter.name===D&&(A.active=!A.active)}),h(function(){w(),F()},50)},w(),u.validateNow(),p.validateNow(),p.setDefaultPeriod(),F()},function(){e.error=!0})})},function(){r.path("/")});var i=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:"#00cdbd",value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],m=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],d=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("brochureService",["$http","$q","$rootScope",function(e,t,a){var n=[],l=[];return a.$on("$locationChangeSuccess",function(){n.length=0,l.length=0}),{getBrochure:function(d){var o=t.defer();return d?e.get(scope.apiEndpoint+"brochures/"+d).then(function(s){o.resolve(s.data)},function(){o.reject()}):n.length>0?o.resolve(n.splice(0,1)[0]):l.push(o),o.promise},getBrochureInfo:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"brochures/"+d+"/ReportInfo").then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},getBrochureCalendar:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"brochures/"+d+"/ReportCalendar").then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},getBrochureReport:function(d){var o=t.defer();return e.post(scope.apiEndpoint+"brochures/report",d).then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},resolve:function(d,o){var s=t.defer();return l.length>d&&(d=l.length),e.get(scope.apiEndpoint+"brochures/"+d+"/"+o).then(function(p){s.resolve(p.data),n.length=0,n.push.apply(n,p.data),l.forEach(function(u){n.length>0?u.resolve(n.splice(0,1)[0]):u.reject()}),l.length=0},function(){s.reject()}),s.promise}}}]),app.controller("CampaignController",["$rootScope","$scope","campaignService","profileService","$timeout","$location","$q",function(e,t,a,n,l,c,h){e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,n.getProfile().then(function(r){r.isAdvertiser||c.path("/").replace();var i=r.guid;e.$watch("profile.guid",function(){i!==r.guid&&c.path("/")})},function(){c.path("/").replace()}),e.data=a,e.isBusy=!0,e.articleFilter=function(r){return r.coverAssetReference},e.advertisementFilter=function(r){return!r.deleted&&!r.hidden},h.all([a.getBannerCampaigns(),a.getMarketResearchs(),a.getSparticleCampaigns(),a.getSpecials(),a.getBrochures(),a.getPremiums(),a.getSupers()]).then(function(){e.isBusy=!1})}]),app.factory("campaignService",["$http","$q",function(e,t){var a=[],n=[],l=[],c=[],h=[],r=[],i=[],m=[],s=function(){var D=t.defer();return a.length>0?D.resolve(a):e.get(scope.apiEndpoint+"campaigns").then(function(I){angular.copy(I.data,a),D.resolve(a)},function(){D.reject()}),D.promise};function x(D){var I=null;return $.each(a,function(A,C){if(C.pin==D)return I=C,!1}),I}return{campaigns:a,specials:r,brochures:i,bannerCampaigns:n,premiums:c,supers:m,marketResearchs:l,sparticleCampaigns:h,getCampaigns:s,getSpecials:function(){var D=t.defer();return r.length>0?D.resolve(r):e.get(scope.apiEndpoint+"specials").then(function(I){angular.copy(I.data,r),D.resolve(r)},function(){D.reject()}),D.promise},getBrochures:function(){var D=t.defer();return i.length>0?D.resolve(i):e.get(scope.apiEndpoint+"brochures").then(function(I){angular.copy(I.data,i),D.resolve(i)},function(){D.reject()}),D.promise},getBannerCampaigns:function(){var D=t.defer();return n.length>0?D.resolve(n):e.get(scope.apiEndpoint+"bannerCampaigns").then(function(I){angular.copy(I.data,n),D.resolve(n)},function(){D.reject()}),D.promise},getMarketResearchs:function(){var D=t.defer();return l.length>0?D.resolve(l):e.get(scope.apiEndpoint+"marketResearch").then(function(I){angular.copy(I.data,l),D.resolve(l)},function(){D.reject()}),D.promise},getPremiums:function(){var D=t.defer();return c.length>0?D.resolve(c):e.get(scope.apiEndpoint+"premiums").then(function(I){angular.copy(I.data,c),D.resolve(c)},function(){D.reject()}),D.promise},getSupers:function(){var D=t.defer();return m.length>0?D.resolve(m):e.get(scope.apiEndpoint+"super").then(function(I){angular.copy(I.data,m),D.resolve(m)},function(){D.reject()}),D.promise},getCampaignByPin:function(D){var I=t.defer();if(a.length>0){var A=x(D);A?I.resolve(A):e.get(scope.apiEndpoint+"campaigns/"+D).then(function(C){I.resolve(C.data)},function(){I.reject()})}else s().then(function(){var C=x(D);C?I.resolve(C):e.get(scope.apiEndpoint+"campaigns/"+D).then(function(U){I.resolve(U.data)},function(){I.reject()})},function(){I.reject()});return I.promise},createAdvertisement:function(D,I){var A=t.defer();return e.post(scope.apiEndpoint+"advertisements",I).then(function(C){D.advertisements.push(C.data),A.resolve(C.data)},function(C){A.reject(C)}),A.promise},deleteAdvertisement:function(D,I){var A=t.defer();return I.deleted=(new Date).getUTCDate(),e.delete(scope.apiEndpoint+"advertisements/"+I.pin).then(function(C){angular.copy(C.data,I),A.resolve(C)},function(){D.deleted=null,A.reject()}),A.promise},updateAdvertisement:function(D){var I=t.defer();return e.put(scope.apiEndpoint+"advertisements",D).then(function(A){angular.copy(A.data,D),I.resolve(A.data)},function(){I.reject()}),I.promise},getReportAdvertisementCalendar:function(D){var I=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+D+"/ReportAdvertisementCalendar").then(function(A){I.resolve(A.data)},function(){I.reject()}),I.promise},getReportContentMarketingCalendar:function(D){var I=t.defer();return e.get(scope.apiEndpoint+"campaigns/"+D+"/ReportContentMarketingCalendar").then(function(A){I.resolve(A.data)},function(){I.reject()}),I.promise},getSparticleCampaigns:function(){var D=t.defer();return h.length>0?D.resolve(h):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns").then(function(I){angular.copy(I.data,h),D.resolve(h)},function(){D.reject()}),D.promise}}}]),app.factory("shipmentService",["$http","$q","$rootScope",function(e,t,a){var n={},l={};return a.$on("$locationChangeSuccess",function(){n.length={},l.length={}}),{getShipment:function(s){var p=t.defer();return n[s]&&n[s].length>0?p.resolve(n[s].splice(0,1)[0]):(l[s]||(l[s]=[]),l[s].push(p)),p.promise},getShipmentPremium:function(){var s=t.defer(),p=function(){var u=ResponsiveBootstrapToolkit.is("xs");e.get(scope.apiEndpoint+"shipment/premium/"+u).then(function(b){b.data&&(b.data.mobile=u),s.resolve(b.data)},function(){s.reject()})};return"complete"!==document.readyState?$(document).ready(p,!1):p(),s.promise},getShipmentSuper:function(){var s=t.defer(),p=function(){var u=ResponsiveBootstrapToolkit.is("xs");e.get(scope.apiEndpoint+"shipment/superCampaign/"+u).then(function(b){b.data&&(b.data.mobile=u),s.resolve(b.data)},function(){s.reject()})};return"complete"!==document.readyState?$(document).ready(p,!1):p(),s.promise},getSurveyForDeeplink:function(s,p){var u=t.defer();return e.get(scope.apiEndpoint+"shipment/survey/"+s+(p?"/true":"/false")).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getTranslatedSurveyForDeeplink:function(s,p,u){var b=t.defer();return e.get(scope.apiEndpoint+"shipment/survey/translate/"+s+(p?"/true/":"/false/")+u).then(function(y){b.resolve(y.data)},function(){b.reject()}),b.promise},resolve:function(s,p,u){var b=t.defer();return l[p]&&l[p].length>s&&(s=l[p].length),e.get(scope.apiEndpoint+"shipment/"+s+"/"+p+(u?"?targetLanguage="+u:"")).then(function(y){n[p]=y.data,l[p]&&l[p].forEach(function(f){n[p].length>0?f.resolve(n[p].splice(0,1)[0]):f.reject()}),l[p]=[],b.resolve(y.data)},function(){b.reject()}),b.promise},clickSurvey:function(s){var p=t.defer();return e.post(scope.apiEndpoint+"shipment/survey/"+s+"/click").then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise}}}]),app.factory("clickService",["$http","$q",function(e,t){var a=function(g,x,F){var D=t.defer();return e.get(scope.apiEndpoint+g+x+"/"+F).then(function(I){D.resolve(I.data)},function(){D.reject()}),D.promise},n=function(g,x,F){var D=t.defer();return e.post(scope.apiEndpoint+g+x+"/"+F).then(function(I){D.resolve(I.data)},function(){D.reject()}),D.promise};return{clickArticle:function(g,x){return a("click/article/",g,x)},clickBanner:function(g,x){return a("click/banner/",g,x)},clickBannerPost:function(g,x){return n("click/banner/",g,x)},clickDocument:function(g){var x=t.defer();return e.get(scope.apiEndpoint+"click/document/"+g).then(function(F){x.resolve(F.data)},function(){x.reject()}),x.promise},clickFile:function(g){var x=t.defer();return e.get(scope.apiEndpoint+"click/file/"+g).then(function(F){x.resolve(F.data)},function(){x.reject()}),x.promise},clickPremium:function(g,x){return a("click/premiumBanner/",g,x)},clickPremiumPost:function(g,x){return n("click/premiumBanner/",g,x)},clickSnip:function(g,x){return a("click/snip/",g,x)},clickSpecial:function(g,x){return a("click/special/",g,x)},clickSpecialPost:function(g,x){return n("click/special/",g,x)},clickSponsoredArticle:function(g,x){return a("click/sponsoredarticle/",g,x)},clickSuper:function(g,x){return a("click/superBanner/",g,x)},clickSuperPost:function(g,x){return n("click/superBanner/",g,x)},clickSurveyBanner:function(g){return a("click/surveyBanner/",g)},clickSurveyBannerPost:function(g,x){return n("click/surveyBanner/",g,x)},clickNotification:function(g){var x=t.defer();return e.get(scope.apiEndpoint+"click/notification/"+g).then(function(F){x.resolve(F.data)},function(){x.reject()}),x.promise},clickBreaking:function(g){var x=t.defer();return e.get(scope.apiEndpoint+"click/breaking/"+g).then(function(F){x.resolve(F.data)},function(){x.reject()}),x},clickAssetReference:function(g,x){return a("click/assetReference/",g,x)}}}]),app.controller("ClosedChapterController",["$scope","$rootScope","$timeout","profileService","companyNewsService","$window","$location","$uibModal","$state","closedChapterService",function(e,t,a,n,l,c,h,r,i,m){if(e.working=!1,e.success=!1,e.title=t.scope.currentScope.chapter.name,e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.showBackButton=!1,""!=t.scope.currentScope.chapter.path&&t.scope.network.chapters.length>0){var d=t.scope.network.chapters.filter(function(s){return 2==s.managementState&&"/"==s.path});e.showBackButton=d.length<1}var o=h.search().returnUrl;o&&window.sessionStorage.setItem("returnUrl",o),e.login=function(){i.go("app.root.login",{closedToken:h.search().token})},e.register=function(){i.go("app.register",{closedToken:h.search().token})},e.goBackToLanding=()=>{window.location.href=t.scope.network.path+"?ignoreFavoriteChapter=true"},e.hasRequest=!1,m.hasChapterRequest().then(function(s){e.hasRequest=s}),m.getRSS().then(function(s){e.feedArticles=s}),l.getCompanyNews().then(function(s){e.companyNews=s}),e.reload=function(){c.location.reload()},e.request=function(){m.getChapterRequest().then(function(){e.hasRequest=!0})},n.getProfile().then(function(s){s.hasChapterAccess&&h.path("/").replace(),h.search().token&&s.isRegistered?(e.working=!0,m.consumeChapterUserToken(h.search().token).then(function(){e.consumeError=!1,a(function(){e.working=!1,e.success=!0,c.location.reload()},1e3)},function(){e.working=!1,e.consumeError=!0})):s.hasChapterAccess&&h.path("/").replace()})}]),app.factory("closedChapterService",["$http","$q",function(e,t){return{getChapterRequest:function(){var h=t.defer();return e.get(scope.apiEndpoint+"closedChapter/request").then(function(r){h.resolve()}),h.promise},hasChapterRequest:function(){var h=t.defer();return e.get(scope.apiEndpoint+"closedChapter/hasRequest").then(function(r){h.resolve(r.data)}),h.promise},consumeChapterUserToken:function(h){var r=t.defer();return e.put(scope.apiEndpoint+"closedChapter/"+h).then(function(i){r.resolve(i)},function(){r.reject()}),r.promise},getRSS:function(){var h=t.defer();return e.get(scope.apiEndpoint+"closedChapter/RSS").then(function(r){h.resolve(r.data)}),h.promise}}}]),app.directive("a",["$state","$rootScope","$location","$timeout",function(e,t,a,n){return{restrict:"E",link:function(l,c){t.app&&$(c).click(function(h){if("_blank"===$(c).attr("target")){h.preventDefault();var r=$(c).attr("href");let d=!1;if(r.match("https?://(.*/)?"+location.hostname+".*"))d=!0;else try{new URL(r),d=!1}catch{r.match("^(?:https?:)?//.*")||(d=!0)}if(d)r.startsWith("/click/")?n(function(){a.url(r)}):-1!==r.indexOf("/document/")||-1!==r.indexOf("/pdf/")?e.go("app.documentDownload",{id:/[^/]*$/.exec(r)[0]}):-1!==r.indexOf("/file/")?e.go("app.fileDownload",{id:/[^/]*$/.exec(r)[0]}):t.scope.currentChapter.path.length>1?r.startsWith(t.scope.currentScope.network.path+t.scope.currentChapter.path)?n(function(){a.url(r.replace(t.scope.currentScope.network.path+t.scope.currentChapter.path,""))}):window.location.href=r:(chapters=t.scope.chapters.filter(function(o){return 2===o.managementState&&o.path!=t.scope.currentChapter.path}),chapters.forEach(function(o){r.startsWith(t.scope.currentScope.network.path+o.path)&&(window.location.href=r)}),n(function(){a.url(r.replace("https://"+location.hostname,""))}));else if(typeof cordova<"u"){let o=t.scope.currentScope.network.settings.configurations.inAppBrowserOnly;var i="location=no,toolbarposition=top,toolbartranslucent=no";"android"===cordova.platformId&&(i="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+t.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var m="_blank";(!o||r.match("mailto:.*")||r.match("tel:.*"))&&(m="_system"),cordova.InAppBrowser.open(r,m,i)}else console.log("external link: error while calling in app browser"),window.open(r,"_blank")}})}}}]),app.directive("amchart",function(){var e=!1;return{restrict:"A",scope:{config:"="},link:function(t,a,n){e&&e.destroy(),(e=new AmCharts.makeChart(a[0],t.config||{})).pathToImages="/content/amcharts/images/",n.chart&&(t.$parent[n.chart]=e)}}}),function(){"use strict";angular.module("angular-loading-bar",["cfp.loadingBarInterceptor"]),angular.module("chieffancypants.loadingBar",["cfp.loadingBarInterceptor"]),angular.module("cfp.loadingBarInterceptor",["cfp.loadingBar"]).config(["$httpProvider",function(e){e.interceptors.push(["$q","$cacheFactory","$timeout","$rootScope","$log","cfpLoadingBar",function(a,n,l,c,h,r){var o,i=0,m=0,d=r.latencyThreshold;function s(){l.cancel(o),r.complete(),m=0,i=0}function p(u){var b,y=n.get("$http"),f=e.defaults;(u.cache||f.cache)&&!1!==u.cache&&("GET"===u.method||"JSONP"===u.method)&&(b=angular.isObject(u.cache)?u.cache:angular.isObject(f.cache)?f.cache:y);var R=void 0!==b&&void 0!==b.get(u.url);return void 0!==u.cached&&R!==u.cached?u.cached:(u.cached=R,R)}return{request:function(u){return!u.ignoreLoadingBar&&!p(u)&&(c.$broadcast("cfpLoadingBar:loading",{url:u.url}),0===i&&(o=l(function(){r.start()},d)),i++,r.set(m/i)),u},response:function(u){return u&&u.config?(!u.config.ignoreLoadingBar&&!p(u.config)&&(m++,c.$broadcast("cfpLoadingBar:loaded",{url:u.config.url,result:u}),m>=i?s():r.set(m/i)),u):(h.error("Broken interceptor detected: Config object not supplied in response:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),u)},responseError:function(u){return u&&u.config?(!u.config.ignoreLoadingBar&&!p(u.config)&&(m++,c.$broadcast("cfpLoadingBar:loaded",{url:u.config.url,result:u}),m>=i?s():r.set(m/i)),a.reject(u)):(h.error("Broken interceptor detected: Config object not supplied in rejection:\n https://github.com/chieffancypants/angular-loading-bar/pull/50"),a.reject(u))}}}])}]),angular.module("cfp.loadingBar",[]).provider("cfpLoadingBar",function(){this.includeSpinner=!0,this.includeBar=!0,this.latencyThreshold=100,this.startSize=.02,this.parentSelector="body",this.spinnerTemplate='<div id="loading-bar-spinner"><div class="spinner-icon"></div></div>',this.loadingBarTemplate='<div id="loading-bar"><div class="bar"><div class="peg"></div></div></div>',this.$get=["$injector","$document","$timeout","$rootScope",function(e,t,a,n){var l,m,d,c=this.parentSelector,h=angular.element(this.loadingBarTemplate),r=h.find("div").eq(0),i=angular.element(this.spinnerTemplate),o=!1,s=0,p=this.includeSpinner,u=this.includeBar,b=this.startSize;function f(g){o&&(r.css("width",100*g+"%"),s=g,a.cancel(m),m=a(function(){R()},250))}function R(){if(!(S()>=1)){var g,x=S();g=x>=0&&x<.25?(3*Math.random()+3)/100:x>=.25&&x<.65?3*Math.random()/100:x>=.65&&x<.9?2*Math.random()/100:x>=.9&&x<.99?.005:0,f(S()+g)}}function S(){return s}function v(){s=0,o=!1}return{start:function y(){l||(l=e.get("$animate"));var g=t.find(c).eq(0);a.cancel(d),!o&&(n.$broadcast("cfpLoadingBar:started"),o=!0,u&&l.enter(h,g,angular.element(g[0].lastChild)),p&&l.enter(i,g,angular.element(g[0].lastChild)),f(b))},set:f,status:S,inc:R,complete:function w(){l||(l=e.get("$animate")),n.$broadcast("cfpLoadingBar:completed"),f(1),a.cancel(d),d=a(function(){var g=l.leave(h,v);g&&g.then&&g.then(v),l.leave(i)},500)},includeSpinner:this.includeSpinner,latencyThreshold:this.latencyThreshold,parentSelector:this.parentSelector,startSize:this.startSize}}]})}(),app.component("apicodoChapterGroups",{templateUrl:"/ClientApp/src/legacy-app/common/apicodoChapterGroups.html",bindings:{},controller:["$scope","$rootScope","$state","$timeout","translationService",function(e,t,a,n,l){if((e=this).show=!1,e.chapterPath="",e.chapterGroupChapters=[],e.showEvent=!1,e.swiperInitialized=!1,t.scope.currentScope.chapter.settings.configurations.enableChapterGroupsDisplay){if(e.chapterPath=t.scope.currentScope.chapter.path,e.chapterPath.endsWith("/")&&(e.chapterPath=e.chapterPath.substring(0,e.chapterPath.length-1)),t.scope.currentScope.chapter.chapterGroups)for(var c=t.scope.currentScope.chapter.chapterGroups.sort(function(m,d){return m.order-d.order}),h=0;h<c.length;h++)c[h].isFrontpageMenuStrip&&(e.chapterGroupChapters=e.chapterGroupChapters.concat(c[h].chapters.sort(function(m,d){return m.order-d.order})),e.show=e.chapterGroupChapters.length>0);if(e.shouldShowIcon=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration&&1===t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.CalendarLocation,e.shouldShowIcon&&(t.scope.currentChapter.settings.configurations.enableBirthdayCalendar||t.scope.currentChapter.settings.configurations.enableEventCalendar||t.scope.currentChapter.settings.configurations.enableEventArticles)&&(e.showEvent=!0),e.show=e.chapterGroupChapters.length>0,e.show){var i=[];for(h=0;h<e.chapterGroupChapters.length;h++)i.push(e.chapterGroupChapters[h].shortName);l.translateByUserLanguageCode(i).then(m=>{for(var d=0;d<e.chapterGroupChapters.length;d++)e.chapterGroupChapters[d].translatedName=m[d].translation,e.chapterGroupChapters[d].shortName=m[d].translation;e.show=e.chapterGroupChapters.length>0})}e.swiperInitialized||n(function(){e.swiperInitialized=new Swiper(".swiper-container",{slidesPerView:"auto",direction:"horizontal",navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})})}}]}),app.component("apicodoHeader",{templateUrl:"/ClientApp/src/legacy-app/common/apicodoHeader.html",bindings:{mobile:"<",searchGuid:"=?"},controller:["$scope","$rootScope","$state","$window","$location","$timeout","searchService","profileService","logoService","translationService","notificationService",function(e,t,a,n,l,c,h,r,i,m,d){function p(u){t.$apply(function(){angular.element(u.target).hasClass("searchbar")||(e.show=!1,n.removeEventListener("click",p))})}(e=this).guid="",e.focusIndex=-1,e.focusIndexMax=0,e.displayedItems=null,e.emptyResult=!1,e.searchGuid="",e.networkIconBigUrl=i.getNetworkIconBigUrl(),e.notification=d,e.showSnipMenuItem=t.showSnipSlide,e.customHeaderIconOrText=[],e.multiLanguageTranslationSystemIsEnabled=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,e.small=ResponsiveBootstrapToolkit.is("<=xs"),$(window).resize(function(){e.small=ResponsiveBootstrapToolkit.is("<=xs")}),0!==t.scope.currentScope.chapter.settings.featureTranslationProvider&&(angular.element(document).ready(function(){e.availableTargetLanguages=[],$(".search-container"),$(".header-language-switch"),$(".header-language-icon"),m.getAvailableTargetLanguages().then(function(f){for(var R in f)e.availableTargetLanguages.push({languageCode:R})}),e.selectedTargetLanguage=t.profile.favoriteLanguage,t.$on("$stateChangeSuccess",function(){e.selectedTargetLanguage=t.profile.favoriteLanguage})}),e.translate=function(){moment.locale(e.selectedTargetLanguage),t.$broadcast("apicodo.translate",e.selectedTargetLanguage)}),t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text&&(e.customHeaderIconOrText=t.scope.currentChapter.settings.configurations.custom_Header_Icon_Or_Text.filter(function(u){return 1==u.Status})),e.showCalendarIcon=!1,e.shouldShowIcon=t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration&&0===t.scope.currentChapter.settings.configurations.eventsBirthdayCalendarConfiguration.CalendarLocation,e.shouldShowIcon&&(t.scope.currentChapter.settings.configurations.enableBirthdayCalendar||t.scope.currentChapter.settings.configurations.enableEventCalendar||t.scope.currentChapter.settings.configurations.enableEventArticles)&&(e.showCalendarIcon=!0),r.getProfile().then(function(u){e.guid=u.guid}),e.switchChapter=t.switchChapter,e.scope=t.scope,e.query=function s(){return a.includes("app.search")?l.search().q:""}(),e.hits=null,e.show=!1,e.search=function(){a.includes("app.search")?l.search("q",e.query):""===e.query?e.hits=null:h.search(e.query).then(function(u){e.show=!0,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[],angular.forEach(u.articles,function(b,y){y<5&&(b.article.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(b))}),0===e.focusIndexMax&&(e.focusIndexMax=1,e.emptyResult=!0),e.hits=u,t.scope.currentScope.network.settings.isStaffDirectoryEnabled&&h.getStaffDirectoryUsers(e.query).then(function(b){angular.forEach(b,function(y,f){f<5&&(y.focusIndex=e.focusIndexMax,e.focusIndexMax++,e.displayedItems.push(y))}),0===e.focusIndexMax&&(e.focusIndexMax=1),e.staffDirectoryUserHits=b})})},t.$on("keydown",function(u,b,y){if(!a.includes("app.search")&&(27===b&&(e.show&&(e.show=!1,y.preventDefault(),t.$apply()),y.preventDefault()),40===b&&(e.focusIndex===e.focusIndexMax&&(e.focusIndex=-1),e.focusIndex=e.focusIndex+1,y.preventDefault(),t.$apply()),38===b&&(e.focusIndex>-1&&(e.focusIndex=e.focusIndex-1,t.$apply()),y.preventDefault()),13===b&&-1!==e.focusIndex)){if(0===e.focusIndex&&e.emptyResult)return a.go("app.root.snips"),e.clear(),void y.preventDefault();if(e.focusIndex===e.focusIndexMax)return a.go("app.search",{q:e.query}),e.clear(),void y.preventDefault();var f=e.displayedItems[e.focusIndex];if(f.slug)return t.switchChapter(f.slug),e.clear(),void y.preventDefault();if(f.levelId)return a.go("app.public-profile",{id:f.guid}),e.clear(),void y.preventDefault();if(f.articleListDisplayableType){switch(f.articleListDisplayableType){case 4:a.go("app.snipDetail",{id:f.id});break;case 1:a.go("app.articleDetail",{id:f.id});break;default:a.go("app.sponsoredArticleDetail",{id:f.id})}return e.clear(),void y.preventDefault()}}}),e.focusItem=function(u){e.focusIndex=u.focusIndex},e.focusShowmore=function(){e.focusIndex=e.focusIndexMax},e.focusNewSnip=function(){e.focusIndex=0},e.clear=function(){e.query="",e.hits=null,e.focusIndexMax=0,e.focusIndex=-1,e.emptyResult=!1,e.displayedItems=[]},e.openSearch=function(){e.show=!0,e.show&&c(function(){n.addEventListener("click",p)})},e.details=function(){a.includes("app.search")||(a.go("app.search",{q:e.query}),e.query="",e.hits=null)},e.goSnips=function(){a.go("app.root.snips")}}]}),app.directive("authorizedClick",["profileService","$uibModal","$analytics","$timeout",function(e,t,a,n){return{restrict:"A",link:function(l,c,h){var r=null;l.$watch("element[0].onclick",function(){c[0].onclick&&(r=c[0].onclick,c[0].onclick=null)});var i=$._data($(c)[0]).events;i&&i.click&&i.click.reverse(),c.on("click",function(m){if(!e.profile.isRegistered){m.stopImmediatePropagation();var d=function(){n(function(){e.profile.isRegistered&&$(c).click()},900,!1)};return t.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return d},facebookSignUpData:!1,login:!1}}),a.eventTrack("ShowAuthenticationRequiredDialog",{category:"Conversion",label:h.authorizedClickSource}),!1}if(!e.profile.hasPartnerAccessAllowed){m.stopImmediatePropagation();var o=function(){n(function(){e.profile.hasPartnerAccessAllowed&&$(c).click()},900,!1)};return t.open({templateUrl:"/ClientApp/src/legacy-app/authentication/allowPartnerAccessDialog.html",controller:"AllowPartnerAccessDialog",size:"lg",resolve:{authenticationCallback:function(){return o}}}),!1}r&&r.call(c,m)}),i&&i.click&&i.click.reverse()}}}]),app.directive("automaticFocus",["$timeout",function(e){return{restrict:"A",link:function(t,a){/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||e(function(){$(a).focus()})}}}]),app.directive("autosize",["$timeout",function(e){return{restrict:"A",link:function(t,a,n,l){var c;e(function(){autosize(a),c&&c()}),$(a).parents(".modal").on("shown.bs.modal",function(h){var r=document.createEvent("Event");r.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(r)}),/firefox/i.test(navigator.userAgent)&&(c=function(h){if(!a.val()){a.val(a.prop("placeholder")),a.css("color","#7F7F7F");var r=document.createEvent("Event");r.initEvent("autosize.update",!0,!1),a[0].dispatchEvent(r),e(function(){a.val(""),a.css("color","")})}},$(a).on("input",c),$(window).on("resize",c))}}}]),app.directive("birthYearValidation",function(){return{require:"ngModel",link:function(e,t,a,n){n.$parsers.unshift(function(l){if(null==l)return"";var c=l.replace(/[^0-9]/g,"");return c!=l&&(n.$setViewValue(c),n.$render()),c}),n.$parsers.push(function(l){if(!l)return null;var c=parseInt(l.toString().replace(/[^0-9]/g,""));return c!=l&&(n.$setViewValue(c),n.$render()),parseInt(c)}),n.$parsers.push(function(l){if(!l||4!=l.toString().length||0!==l.toString().lastIndexOf("20",0)&&0!==l.toString().lastIndexOf("19",0))return n.$setValidity("year",!1),l;n.$setValidity("year",!0);var c=moment().year()-moment(l.toString(),"YYYY").year();return n.$setValidity("age",!(c<0)),c>120&&n.$setValidity("year",!1),l})}}}),app.component("chapterLogo",{templateUrl:"/ClientApp/src/legacy-app/common/chapterLogo.html",bindings:{},controller:["$rootScope","logoService",function(e,t){var a=this;a.showChapterSwitch=e.scope.currentScope.network.chapters.filter(function(n){return 2===n.managementState}).length>1,a.hasChapterLogo=t.hasChapterLogo(e.scope.currentScope.chapter),a.hasChapterLogoDark=t.hasChapterLogoDark(e.scope.currentScope.chapter),a.networkLogoUrl=t.getNetworkLogoUrl(),a.networkLogoDarkUrl=t.getNetworkLogoDarkUrl(),a.chapterLogoUrl=t.getChapterLogoUrl(),a.chapterLogoDarkUrl=t.getChapterLogoDarkUrl()}]}),app.directive("chart",function(){return{restrict:"E",template:"<canvas></canvas>",scope:{chartObject:"=value"},link:function(a,n,l){var r,c=n.find("canvas")[0],h=c.getContext("2d"),i={type:l.type||"Line",width:l.width||600,height:l.height||400};c.width=i.width,c.height=i.height,r=new Chart(h),a.$watch(function(){return n.attr("type")},function(d){d&&(i.type=d,r[i.type](a.chartObject.data,a.chartObject.options))}),a.$watch(function(){return a.chartObject},function(d){d&&r[i.type](a.chartObject.data,a.chartObject.options)})}}}),app.directive("compile",["$compile",function(e){return{scope:!0,link:function(t,a,n){var l;n.$observe("template",function(c){l=e(c)(t),a.html(""),a.append(l)})}}}]),app.directive("compileHtml",["$compile",function(e){return{restrict:"A",scope:{compileHtml:"="},link:function(t,a){t.$watch("compileHtml",function(n){if(console.log("COMPILE HTML",n),n){var l=e(n)(t.$parent);angular.element(l).find("a").each(function(){var h=angular.element(this);h.attr("target")||h.attr("target","_blank")}),a.empty().append(l)}})}}}]),app.component("customChapterLogo",{templateUrl:"/ClientApp/src/legacy-app/common/customChapterLogo.html",bindings:{},controller:["$scope","$rootScope","scopeService","logoService",function(e,t,a,n){var l=this;l.isManagedAlone=1===t.scope.currentScope.network.chapters.filter(function(){return 2===this.managementState}).length,l.chapterLogoUrl=n.getChapterLogoUrl(t.scope.currentScope.chapter),l.hasChapterLogo=n.hasChapterLogo()}]}),app.directive("ellipsis",["$timeout",function(e){return{restrict:"A",link:function(t,a){e(function(){$(a).ellipsis({responsive:!0})})}}}]),app.directive("emailValidation",function(){var e=/[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?/;return{require:"ngModel",link:function(t,a,n,l){l.$parsers.unshift(function(c){if(e.test(c))return l.$setValidity("email",!0),c;l.$setValidity("email",!1)})}}}),app.service("fileUploadService",["$http","$q",function(e,t){this.uploadFileToUrl=function(a,n){var l=t.defer(),c=new FormData;return c.append("file",a),e.post(n,c,{transformRequest:angular.identity,headers:{"Content-Type":void 0}}).then(function(h){l.resolve(h)}).error(function(){l.reject()}),l.promise}}]),app.factory("formatterService",["$location","scopeService","$rootScope",function(e,t,a){var n=a.scope.network.settings.languagePack.split("-")[0];return null!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&n!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&(n=a.scope.profile.activeUserLanguage?.vendorLanguageCode),{getShortDateFormatString:function(){return moment.localeData(n).longDateFormat("L")},getShortDateTimeFormatString:function(){return moment.localeData(n).longDateFormat("L")+" "+moment.localeData(n).longDateFormat("LT")},momentFromNowAsString:function(m){var d=new moment(m,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(n),(m=d.locale(a.scope.profile.activeUserLanguage?.vendorLanguageCode?a.scope.profile.activeUserLanguage?.vendorLanguageCode:n)).fromNow()},momentFromNowTimeout:function(m){var d=moment.duration(moment().diff(m)).asMinutes(),o=1e4;return d>10?o=3e5:d>1&&(o=6e4),o},eventCalendarFormatAsString:m=>{var d=new moment(m,"YYYY-MM-DD HH:mm:ss","en");return moment.locale(n),(m=d.locale(a.scope.profile.activeUserLanguage?.vendorLanguageCode?a.scope.profile.activeUserLanguage?.vendorLanguageCode:n)).format("dd, ll")}}}]),app.directive("iframeSetDimensionsOnload",[function(){return{restrict:"A",link:function(e,t,a){t.on("load",function(){var n=t[0],l=n.contentDocument?n.contentDocument:n.contentWindow.document;n.style.visibility="hidden",n.style.height="10px";var c=getDocHeight(l);c<200&&(c=250,console.log("Unable to determine iframe height. Fallback to 250 px.")),n.style.height=c+4+"px",n.style.visibility="visible"})}}}]),app.directive("imageLoad",function(){return{restrict:"A",link:function(e,t,a){t.on("load",function(){e.$apply(a.imageLoad)})}}}),app.service("imageUrlBuilderService",["$rootScope",function(e){return this.createCdnImageUrl=function(a,n){return a?e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameImage+"/"+a+"?"+n:null},this}]),app.directive("integer",function(){return{require:"ngModel",link:function(e,t,a,n){n.$parsers.unshift(function(l){return parseInt(l)})}}}),app.directive("keyTrap",["$rootScope",function(e){return function(t,a){a.bind("keydown",function(n){e.$broadcast("keydown",n.keyCode,n)})}}]),function(){function e(t){return["$rootScope","$window","$log",function(a,n,l){var c;try{c=n[t]}catch{c={}}for(var i,m,o,h=c,r={$default:function(s){for(var p in s)angular.isDefined(r[p])||(r[p]=s[p]);return r},$reset:function(s){for(var p in r)"$"===p[0]||delete r[p];return r.$default(s)}},d=0;d<h.length;d++)try{(o=h.key(d))===o&&(r[o]=angular.fromJson(h.getItem(o)))}catch{}return i=angular.copy(r),a.$watch(function(){m||(m=setTimeout(function(){if(m=null,!angular.equals(r,i)){for(var s in angular.forEach(r,function(p,u){angular.isDefined(p)&&"$"!==u[0]&&h.setItem(u,angular.toJson(p)),delete i[u]}),i)h.removeItem(s);i=angular.copy(r)}},100))}),"localStorage"===t&&n.addEventListener&&n.addEventListener("storage",function(s){if(s.newValue)try{r[s.key]=angular.fromJson(s.newValue)}catch{r[s.key]=s.newValue}else delete r[s.key];i=angular.copy(r),a.$apply()}),r}]}app.factory("localStorageService",e("localStorage")).factory("sessionStorageService",e("sessionStorage"))}(),app.factory("logoService",["$location","scopeService","$rootScope",function(e,t,a){var n=t.getGlobalSettings().blobStorageCdnUrl+"/"+t.getGlobalSettings().blobStorageContainerNameLogo,u=function(f){return f||(f=a.scope.currentScope.chapter),!!f.settings.chapterLogoCache};return{getEditorIconUrl:function(){return n+"/default/icon/editor.ico"},getPartnerLogoUrl:function(f){return f||(f=a.scope.currentScope.chapter),null==f||null==f.partner.settings.partnerLogoCache?n+"/default/partner/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/partner/"+f.partnerId+".png?cache="+f.partner.settings.partnerLogoCache},getNetworkIconSmallUrl:function(f){return f||(f=a.scope.currentScope.network),null==f||null==f.settings.networkIconSmallCache?n+"/default/icon/small.ico":n+"/"+f.slug+"/icon/small.ico"},getNetworkIconBigUrl:function(f){return f||(f=a.scope.currentScope.network),null==f||null==f.settings.networkIconBigCache?n+"/default/icon/big.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+f.slug+"/icon/big.png?cache="+f.settings.networkIconBigCache},getNetworkLogoUrl:function(f){return f||(f=a.scope.currentScope.network),null==f||null==f.settings.networkLogoCache?n+"/default/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+f.slug+".png?cache="+f.settings.networkLogoCache},getNetworkLogoDarkUrl:function(f){return f||(f=a.scope.currentScope.network),null==f?n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoCache:null==f.settings.networkLogoDarkCache?null!=f.settings.networkLogoCache?n+"/"+f.slug+".png?cache="+f.settings.networkLogoCache:n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/"+f.slug+"-dark.png?cache="+f.settings.networkLogoDarkCache},getChapterLogoUrl:function(f){return f||(f=a.scope.currentScope.chapter),null==f||null==f.settings.chapterLogoCache?n+"/default/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/logo/"+f.slug+"?cache="+f.settings.chapterLogoCache},getChapterLogoDarkUrl:function(f){return f||(f=a.scope.currentScope.chapter),null==f?n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoDarkCache:null==f.settings.chapterLogoDarkCache?null!=f.settings.chapterLogoCache?n+"/chapter/logo/"+f.slug+"?cache="+f.settings.chapterLogoCache:n+"/default/0-dark.png?cache="+t.getGlobalSettings().defaultLogoDarkCache:n+"/chapter/logo/"+f.slug+"-dark?cache="+f.settings.chapterLogoDarkCache},getChapterPictureUrl:function(f){return f||(f=a.scope.currentScope.chapter),null==f||null==f.settings.chapterPictureCache?n+"/default/chapter/0.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/picture/"+f.slug+"?cache="+f.settings.chapterPictureCache},getChapterEventPictureUrl:function(f){return f||(f=a.scope.currentScope.chapter),null==f||null==f.settings.configurations.chapterEventPictureCache?n+"/default/event/1.png?cache="+t.getGlobalSettings().defaultLogoCache:n+"/chapter/event/"+f.slug+"?cache="+f.settings.configurations.chapterEventPictureCache},hasChapterLogo:u,hasChapterLogoDark:function(f){return f||(f=a.scope.currentScope.chapter),!!f.settings.chapterLogoDarkCache||u(f)},getLogoContainerUrl:function(){return n}}}]),app.factory("markdownConverterService",["$rootScope","$http","$q","authService",function(e,t,a,n){var l=TurndownService;l.addRule&&l.addRule("emptyLine",{filter:function(i){return"p"===i.nodeName.toLowerCase()&&"<br>"===i.innerHTML},replacement:function(){return"<br>"}}),showdown.setOption("simpleLineBreaks",!0),showdown.setOption("strikethrough",!0);var c=new showdown.Converter({simpleLineBreaks:!0,strikethrough:!0});return{toMarkdown:function(i){return l.turndown(i||"")},toHtml:function(i){var m=c.makeHtml(i);return m&&(m=m.replace(new RegExp("\\r?\\n","g"),"")),m}}}]),app.directive("metaArticle",MetaArticleDirective),MetaArticleDirective.$inject=["metaService"],app.directive("metaEvent",MetaEventDirective),MetaEventDirective.$inject=["metaService"],app.directive("metaHead",["metaService",function(e){return{restrict:"E",link:function(t,a,n){t.$watch(function(){return n.title+n.description+t.$eval(n.article)+n.article},function(){(n.title||n.description)&&e.push(n.title,n.description)}),a.remove()}}}]),app.factory("metaService",["$location","scopeService","logoService","$rootScope",function(e,t,a,n){var l=function(s,p){var u=s.replace(":","\\:");p||(p=""),$("head").find("meta[name='"+u+"']").length?$("meta[name='"+u+"']").attr("content")!==p&&$("meta[name='"+u+"']").attr("content",p):$("head").append('<meta name="'+s+'" content="'+p.replace('"',"$quot;")+'">')},c=function(s,p){var u=s.replace(":","\\:");p||(p=""),$("head").find("meta[property='"+u+"']").length?$("meta[property='"+u+"']").attr("content")!==p&&$("meta[property='"+u+"']").attr("content",p):$("head").append('<meta property="'+s+'" content="'+p.replace('"',"$quot;")+'">')},r=function(s){var p=s.replace(":","\\:");$("head").find("meta[name='"+p+"']").remove(),$("head").find("meta[property='"+p+"']").remove(),$("head").find("link[rel='canonical']").remove()},i=function(){l("author",scope.currentScope.network.name),l("date",(new Date).toISOString()),c("og:type","website"),c("og:image",a.getNetworkLogoUrl()+"&preset=social-media"),l("twitter:image:src",a.getNetworkLogoUrl()+"&preset=social-media"),r("article:publisher"),r("article:published_time"),r("article:section")};return{stateChanged:function(s){s&&i()},push:function(s,p){i();var u=t.getNetworkUrl();c("og:url",u+e.path()),document.title=s,c("og:title",s),l("twitter:title",s),l("description",p),c("og:description",p),l("twitter:description",p)},setFavicon:function(s){var p=$("head").find('link[rel="shortcut icon"]');p.length&&p.attr("href",s?a.getEditorIconUrl():a.getNetworkIconSmallUrl())},generalPush:function(s){if(s instanceof MetaInformationBase){document.title=s.title;var p=t.getNetworkUrl();s.canonicalLink&&($("head").find("link[rel='canonical']").length?$("link[rel='canonical']").attr("href")!==s.canonicalLink&&$("link[rel='canonical']").attr("href",s.canonicalLink):$("head").append('<link rel="canonical" href="'+s.canonicalLink.replace('"',"$quot;")+'">')),c("og:type",s.type),c("og:title",s.title),c("og:url",p+s.path),c("og:description",s.description),c("og:image",s.imageUrl),l("twitter:title",s.title),l("description",s.description),l("twitter:description",s.description),l("author",s.getFullAuthorName()),l("date",s.getMetaDate()),l("twitter:site",scope.currentScope.chapter.settings.seoTwitterSite),l("twitter:image:src",s.imageUrl),s.removeAttributes&&s.removeAttributes.forEach(function(u){r(u)}),"article"===s.type?($("head").attr("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"),c("article:publisher",scope.currentScope.chapter.settings.seoFacebookPublisher),c("article:published_time",s.getMetaDate())):$("head").attr("prefix","og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# website: http://ogp.me/ns/website#")}}}}]),app.directive("metaSnip",MetaSnipDirective),MetaSnipDirective.$inject=["metaService"],app.directive("metaSponsoredArticle",MetaSponsoredArticleDirective),MetaSponsoredArticleDirective.$inject=["metaService"],app.directive("metaStaticArticle",MetaStaticArticleDirective),MetaStaticArticleDirective.$inject=["metaService"],app.directive("minCapitals",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$validators.minCapitals=function(l){return!!(n.$isEmpty(l)||(l.match(/[A-Z]/g)||[]).length>=a.minCapitals)}}}}),app.directive("minNumbers",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$validators.minNumbers=function(l){return!!(n.$isEmpty(l)||(l.match(/[0-9]/g)||[]).length>=a.minNumbers)}}}}),app.directive("minSpecialChars",function(){return{restrict:"A",require:"ngModel",link:function(e,t,a,n){n.$validators.minSpecialChars=function(l){return!!(n.$isEmpty(l)||(l.match(/[^A-Za-z0-9]/g)||[]).length>=a.minSpecialChars)}}}}),app.directive("momentFromNow",["$interval","$timeout","$rootScope",function(e,t,a){return{restrict:"A",scope:!1,link:function(n,l,c){var h,r;function i(){var m=a.scope.network.settings.languagePack.split("-")[0];if(null!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&m!=a.scope.profile.activeUserLanguage?.vendorLanguageCode&&(m=a.scope.profile.activeUserLanguage?.vendorLanguageCode),!r){var d=new moment(c.momentFromNow,"ddd MMM DD YYYY HH:mm:ss","en");moment.locale(m),r=d.locale(m||"de")}var o=r.fromNow();l[0].innerText=o,l[0].textContent=o;var s=moment.duration(moment().diff(r)).asMinutes(),p=1e4;s>10?p=3e5:s>1&&(p=6e4),h=t(function(){i()},p,!1)}t(function(){i()}),l.on("$destroy",function(){t.cancel(h)})}}}]),app.directive("noReturn",function(){return{require:"ngModel",link:function(e,t,a,n){t.keypress(function(l){return"13"!=l.which}),n.$parsers.unshift(function(l){if(null==l)return"";var c=l.replace("\r","").replace("\n"," ");return c!=l&&(n.$setViewValue(c),n.$render()),c})}}}),app.component("oha",{templateUrl:"/ClientApp/src/legacy-app/common/oha.html",bindings:{snip:"<",article:"<",assetReference:"<",size:"@",source:"@"},controller:["$rootScope","$element","$timeout","$analytics","snipService","articleService","assetService",function(e,t,a,n,l,c,h){var r=this;r.profile=e.profile;var m,d,i=t,o=i.find(".oha-text"),s=i.find(".oha-score-tspan");r.isArticle=!1,r.isSnip=!1,r.isAssetReference=!1,r.isDisabled=!1,r.isPreview=!1,r.isLoading=!1,r.showLikes=!1,r.showScore=!0,r.showComponent=!0,r.ohaAdditionalClass="",r.ohaName=e.scope.currentScope.network.getResourceOrKeyName("web_common_oha"),this.$onInit=function(){r.article?(r.isArticle=!0,r.showLikes=e.scope.currentScope.chapter.settings.enableOhaLikes,r.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<1,r.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaArticleViewConfig<2,m=r.article,d=c):r.snip?(r.isSnip=!0,r.showLikes=e.scope.currentScope.chapter.settings.enableOhaLikes,r.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<1,r.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaSnipViewConfig<2,m=r.snip,d=l):r.assetReference&&(r.isAssetReference=!0,m=r.assetReference,r.showScore=!e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<1,r.showComponent=!e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig||e.scope.currentScope.chapter.settings.configurations.ohaAssetViewConfig<2),e.scope.network.settings.configurations.ohaConfigurationModel&&e.scope.network.settings.configurations.ohaConfigurationModel.useIcon&&(r.ohaAdditionalClass=e.scope.network.settings.configurations.ohaConfigurationModel.additionalClass,r.ohaName=String.fromCharCode(e.scope.network.settings.configurations.ohaConfigurationModel.charCode)),r.isAnimated=!r.isAssetReference&&!r.showLikes&&"ArticleDisplayable"!==r.source&&"xs"!==r.size,r.isTransitioned=!r.isAssetReference&&"ArticleDisplayable"!==r.source,r.isDisabled=!r.isAssetReference&&(m.archived||m.deleted),r.isPreview=r.isArticle&&m.isPreview,r.size=r.size?r.size:"md"},r.getReferenceScore=function(){return m?r.isAssetReference||r.showLikes?m.likes:m.score<1?m.score:1:0},r.getScore=function(){if(r.isDisabled||!m||typeof m.likes>"u")return"...";if(!r.isAssetReference&&!r.showLikes){var u=m.score;return(u<1?100*u:100).toFixed(u<1?1:0).replace(/\./g,",")}return m.likes.toString()},r.iLike=function(){return m?m.iLike:null},r.oha=function(){if(!(r.isDisabled||e.profile.readOnlyMode||r.isPreview||r.isLoading)&&m)if(r.isTransitioned||(r.isTransitioned=!0),r.isLoading=!0,o.addClass("oha-loading").removeClass("oha-liked"),m.iLike=!m.iLike,r.isAssetReference)h.like(m.guid).then(function(y){r.animateOhaButton(y.likes)},function(){m.iLike=!m.iLike,r.animateOhaButton(m.score)});else{var u=m.score,b=m.likes;m.iLike&&a(function(){r.animateOhaPlanet(0)}),d.like(m.id).then(function(y){var f=y.score,R=y.likes;n.eventTrack("o-ha!",{category:"Interaction",label:r.source,value:m.iLike?1:0}),r.showLikes?((m.iLike&&b>R||!m.iLike&&b<R)&&(R=b),r.animateOhaButton(R)):((m.iLike&&u>f||!m.iLike&&u<f)&&(f=u),r.animateOhaButton(f<1?f:1))},function(){m.iLike=!m.iLike,r.animateOhaButton(r.showLikes?b:u)})}},r.animateOhaButton=function(u){if(m){var b=!r.isAssetReference&&m.iLike?750:0,y=!r.isAssetReference&&m.iLike?500:0;a(function(){r.showLikes?m.likes=u:m.score=u,b?(s.text(r.showLikes?u:(100*u).toFixed(u<1?1:0)),o.addClass("oha-liked"),s.counterUp({delay:25,time:y,formatter:function(f){return f.replace(/\./g,",")},callback:function(){r.isLoading=!1,a(function(){o.removeClass("oha-liked")},500)}})):(r.isAssetReference||r.showLikes?m.likes=u:m.score=u,r.isLoading=!1),o.removeClass("oha-loading")},b)}},r.getStrokeDashoffset=function(u){return 102.1-(102.1*u).toFixed(0)},r.getRotateDegrees=function(u){return 360*u},r.animateOhaPlanet=function(u){if(m){i.find(".oha-outer").css("stroke-dashoffset",r.getStrokeDashoffset(u));var y=i.find(".oha-rotate");y.css("transform","rotateZ("+r.getRotateDegrees(u)+"deg)"),y.attr("transform","rotate("+r.getRotateDegrees(u)+")"),a(function(){m.score=u},500)}}}]}),app.directive("onReturn",["$parse",function(e){return{scope:!1,link:function(t,a,n,l){var c;n.onReturn&&(c=e(n.onReturn)),a.keypress(function(h){return"13"!=h.which||!(h.ctrlKey||""!==n.onReturnRequireCtrl&&"true"!==n.onReturnRequireCtrl)||(c&&c(t),!1)}),l&&l.$parsers&&l.$parsers.unshift(function(h){if(null==h)return"";var r=h.replace("\r","").replace("\n"," ");return r!=h&&(l.$setViewValue(r),l.$render()),r})}}}]),app.directive("page",["$interpolate","$rootScope",function(e,t){return{templateUrl:"/ClientApp/src/legacy-app/common/page.html",restrict:"E",transclude:!0,link:function(a,n,l){var r;if(l.pageTitle&&(a.title=e(l.pageTitle)()),a.isApp=t.app,(r=window.navigator.userAgent).indexOf(" Android ")>-1&&r.indexOf("Version/")>-1&&parseFloat((r.match("Android ([0-9.]+)")||[])[1])<=4.4){var h=$(window).height()-51;$(".app-mobile .pageWrapper").css("height",h+"px")}}}}]),app.factory("parserService",["$location","profileService","localStorageService","articleService","$rootScope","$timeout",function(e,t,a,n,l,c){return{postProcessHtml:function(r){if(r&&r.content){r.processedContent=r.content.replace(/(<p>)?!\[(.+?)\](<\/p>)?/gi,function(b,y,f,R){return"<asset asset-reference=\"resolveAsset('"+f+'\')" data-guid="'+f+'" article="article" snip="snip" sponsored-article="sponsoredArticle" static-article="staticArticle"></asset>'}),r.processedContent=r.processedContent.replace(/(<p><\/p>)+/gi,function(){return"<p></p>"});var i=document.createElement("div");i.innerHTML=r.processedContent;var m=0;$(i).children("blockquote").each(function(b,y){if(!($(y).children("blockquote").length>0)){var f=0;if($(y).nextAll().each(function(S,v){if("p"!==$(v).prop("tagName").toLowerCase())return!1;f+=$(v).text().length}),1.5*$(y).text().length<f){var R=++m%2>0;$(y).addClass("allow-float"),R?$(y).addClass("allow-float-right"):$(y).addClass("allow-float-left")}}});for(var d=0;d<r.assetReferences.length;d++)null!==r.assetReferences[d].assetImage&&2===r.assetReferences[d].assetImage.type&&$(i).find("asset[data-guid='"+r.assetReferences[d].guid+"']").attr("data-type","2");$(i).find(":not(asset[data-type='2']) + asset[data-type='2'], asset[data-type='2']:first-of-type").each(function(){$(this).nextUntil(":not(asset[data-type='2'])").addBack().wrapAll('<div class="asset-image-gallery asset-image-gallery-article" />')}),$(i).find(".asset-image-gallery asset").each(function(){$(this).attr("image-gallery-item-index",$(this).index())});var o=/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i;if($(i).find(".call-to-action").each(function(){var b=$.trim($(this).text());null!==o.exec(b)&&$(this).html('<img ng-src="'+l.scope.globalSettings.blobStorageCdnUrl+"/"+l.scope.globalSettings.blobStorageContainerNameImage+"/"+b+'?preset=focus&amp;cache=0">').addClass("call-to-action-assetImage")}),r.sponsored||navigator.userAgent&&-1!==navigator.userAgent.toLowerCase().indexOf("googlebot")||scope.currentChapter.scopeStaticArticlesDictionary[e.$$path.replace(scope.currentChapter.path,"")])r.shipmentsPlaced=0;else{var s=$(i).children("p");r.shipmentsPlaced=0;var p=0;(function(){var b=[],y=[],f=1,R=3;s.length<=3&&(f=0,R=2);for(var S=f;S<s.length;S++)0===$(s[S]).next().length||"div"!==$(s[S]).next().prop("tagName").toLowerCase()&&"asset"!==$(s[S]).next().prop("tagName").toLowerCase()&&!$(s[S]).text().trim().endsWith(":")&&!$(s[S]).next().hasClass("allow-float")||"h3"===$(s[S]).next().prop("tagName").toLowerCase()?b.push(S):"div"!==$(s[S]).next().prop("tagName").toLowerCase()&&!$(s[S]).text().trim().endsWith(":")&&!$(s[S]).next().hasClass("allow-float")&&y.push(S);if(0===b.length&&0===y.length)return 0;if(0===b.length)$(s[y[0]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,p=y[0];else if(1===b.length)if(y.length>0)if(b[0]+1>=s.length/2&&y[0]<b[0])$(s[y[0]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,p=y[0],b[0]-y[0]>=R&&($(s[b[0]]).after("<delivery article='article' />"),r.shipmentsPlaced++,p=b[0]);else{$(s[b[0]]).after("<delivery article='article' />"),r.shipmentsPlaced++,p=b[0];for(var v=b[0],w=0;w<y.length;w++)if(!(Math.abs(y[w]-v)<R)){$(s[y[w]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,p=y[w];break}}else $(s[b[0]]).after("<delivery article='article' />"),r.shipmentsPlaced++,p=b[0];else{p=f-R,b[0]+1>=s.length/2&&y[0]<b[0]&&y[0]>=f&&($(s[y[0]]).next().after("<delivery article='article' />"),r.shipmentsPlaced++,p=y[0]);for(var g=0;g<b.length;g++)if(!(b[g]-p<R)){if(l.scope.currentScope.chapter.settings.criteoPublisherId&&1===r.shipmentsPlaced&&!l.app?$(s[b[g]]).after("<external-ad-shipment propose-id='externalAdShipmentArticle' allow-intern-ad/>"):$(s[b[g]]).after("<delivery article='article' />"),r.shipmentsPlaced++,3===r.shipmentsPlaced)break;p=b[g]}}})(),r.shipmentsPlaced<2&&p<s.length-1&&(l.scope.currentScope.chapter.settings.criteoPublisherId&&!l.app?$(i).append("<external-ad-shipment propose-id='externalAdShipmentArticle' allow-intern-ad/>"):$(i).append("<delivery article='article' />"),r.shipmentsPlaced++)}4!==r.articleListDisplayableType&&a.enableArticleExitRates&&t.getProfile().then(function(b){b.isAdmin&&n.getExitRates(r.articleId).then(function(y){y.forEach(function(f,R){var S=0===R?1:y[R-1].word+1,v=y[R+1]?f.word:-1,w=$(i).find(":not(iframe)").contents().filter(function(){return 3===this.nodeType}).sort(function(x,F){return x===F?0:x.compareDocumentPosition?2&x.compareDocumentPosition(F)?1:-1:x.sourceIndex-F.sourceIndex}).toArray(),g=0;w.forEach(function(x){var F=$(x).text().split(/(\s)/),D=[],I=[];if(F.forEach(function(C){C.trim()?++g<S||v-g<0&&-1!==v?I.push(C):D.push(C):g<S||v-g<0&&-1!==v?I.push(C):D.push(C)}),D.length){var A='<span class="exit-rate" style="background-color: rgba(204, 0, 0, '+f.rate/100+');" uib-tooltip="Absprungrate: '+f.rate+'%">'+D.join("")+"</span>";I.length&&(A+=I.join("")),$(x).replaceWith(A),r.processedContent=i.innerHTML}})})})}),$(i).find("a:not([target])").attr("target","_blank"),r.processedContent=i.innerHTML,r.postProcessed=!0}}}}]),app.directive("photoswipe",["$timeout","$location","$rootScope","$window",function(e,t,a,n){return{link:function(l,c,h){var r;a.$watch(function(){return t.search().zoom},function(i){!i&&r&&r.close()}),$(c).parents("asset").wrap('<div class="asset-image-gallery-item"/>'),e(function(){var i=$(c).parents(".asset-image-gallery"),m=i.find("[photoSwipe]"),o=m.index(c);if(0===o&&i.addClass("asset-image-gallery-"+m.length),-1!==o&&($(c).on("click",function(p){p.preventDefault();var u=[];m.each(function(f,R){if(!0===$(R).data("gallery-item")){var S=$(R).parent().find(".imageInfo-title"),v=$(R).parent().find(".imageInfo-source"),w=[S.html(),v.html()].filter(Boolean).join(" - "),g=$(R).parentsUntil(".asset-image-gallery").find("asset-user-badge");g.length>0&&(w+="<br>"+$("<div />").append(g.clone()).html()),u.push({src:$(R).data("image"),w:$(R).data("width"),h:$(R).data("height"),title:w})}});var b={index:o%=u.length,history:!1,closeOnScroll:!1,preload:[2,2],isClickableElement:function(){return!0}},y=document.querySelectorAll(".pswp")[0];(r=new PhotoSwipe(y,PhotoSwipeUI_Default,u,b)).listen("gettingData",function(f,R){if(R.w<1||R.h<1){var S=new Image;S.onload=function(){R.w=this.width,R.h=this.height,r.updateSize(!0)},S.src=R.src}}),r.listen("initialZoomIn",function(){bodyScrollLock.disableBodyScroll($(".pswp")),$("button.oha").css("pointer-events","none")}),r.listen("destroy",function(){bodyScrollLock.clearAllBodyScrollLocks(),e(function(){$("button.oha").css("pointer-events","all"),t.search().zoom&&n.history.back()},200)}),r.init(),e(function(){t.search("zoom",!0)})}),3===o&&m.length>4)){var s=m.length-4;c.find(".asset-image-gallery-overlay").text("+"+s).addClass("asset-image-gallery-overlay-visible")}})}}}]),app.run(["$rootScope","$window","profileService","$location","$analytics",function(e,t,a,n,l){e.$on("$viewContentLoaded",function(){t._paq&&a.getProfile().then(function(c){t._paq.push(["setCustomVariable",1,"guid",c.guid,"visit"]),t._paq.push(["setCustomVariable",2,"isRegistered",c.isRegistered,"visit"]),t._paq.push(["setCustomVariable",3,"isJournalist",c.isJournalist,"visit"]),t._paq.push(["setCustomVariable",4,"isMerkuristJournalist",c.isMerkuristJournalist,"visit"]),t._paq.push(["setCustomVariable",5,"isAdvertiser",c.isAdvertiser,"visit"]),l.pageTrack(l.settings.pageTracking.basePath+e.scope.currentChapter.path+n.url(),n)})})}]),app.component("propertyGrid",{bindings:{staffdata:"=",isReadonly:"<",userId:"<",api:"=",loadFunction:"<",saveFunction:"<",gridOnInit:"&",noGroups:"<",noHelp:"<"},templateUrl:"/ClientApp/src/legacy-app/common/propertyGrid.html",controller:["$location","$element","$scope","translationService","$rootScope",function(e,t,a,n,l){var c=this;function h(){var p=$(t).jqPropertyGrid("get");c.saveFunction(c.userId,p).then(function(u){c.staffDirectoryData=u,d=c.staffDirectoryData.data,s=c.staffDirectoryData.metaData,$(t).jqPropertyGrid(d,{isReadonly:c.isReadonly,meta:s,customTypes:m,postCreateInitFuncs:[]})},function(u){alert("Staff dir NOT saved")})}function r(){alert("Staff dir loaded")}this.$onInit=function(){c.api={},c.api.save=h,c.api.load=r,c.api.getData=function(){return $(t).jqPropertyGrid("get")},0==c.isReadonly&&(a.$parent.$parent.$parent.gridApi=c.api),c.loadFunction(c.userId).then(function(p){c.staffDirectoryData=p;var u=l.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==u){var b=l.scope.profile,y=l.scope.network.settings.languagePack.split("-")[0];if(null!=b.activeUserLanguage?.vendorLanguageCode&&y!=b.activeUserLanguage?.vendorLanguageCode){d=c.staffDirectoryData.data,s=c.staffDirectoryData.metaData;for(var f=Object.entries(s).map(function(A){return{key:A[0],value:A[1]}}),R=[],S=[],v=[],w=[],g=[],x=0;x<f.length;x++){var F=f[x];R.push(F.key),S.push(F.value.description),v.push(F.value.name),w.push(F.value.metaDataSource.displayLabel),g.push(F.value.metaDataSource.editLabel)}var D=v.concat(S).concat(g).concat(w);n.translateByUserLanguageCode(D).then(A=>{for(var C=A.length/4,U=0;U<C;U++){var k=R[U];s[k].name=A[U].translation,s[k].description=A[U+C].translation,s[k].metaDataSource.displayLabel=A[U+2*C],s[k].metaDataSource.editLabel=A[U+3*C]}var T={isReadonly:c.isReadonly,meta:s,customTypes:m,postCreateInitFuncs:[],noGroups:c.noGroups};T.helpHtml=1==c.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(d,T)})}else d=c.staffDirectoryData.data,(I={isReadonly:c.isReadonly,meta:s=c.staffDirectoryData.metaData,customTypes:m,postCreateInitFuncs:[],noGroups:c.noGroups}).helpHtml=1==c.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(d,I)}else{var I;d=c.staffDirectoryData.data,(I={isReadonly:c.isReadonly,meta:s=c.staffDirectoryData.metaData,customTypes:m,postCreateInitFuncs:[],noGroups:c.noGroups}).helpHtml=1==c.noHelp?" ":'<i class="fa fa-question-circle"></i>',$(t).jqPropertyGrid(d,I)}},function(p){console.log(p)})},c.chapterGroups=scope.currentScope.chapter.chapterGroups,c.chapterGroups=scope.currentScope.chapter.chapterGroups,c.chapterGroupSelections={},c.filtered=!1;var m={icon:{html:function(p,u,b,y){return'<i class="fa fa-'+b+'"></i>'},valueFn:function(){return"Icon field value"}},textarea:{html:function(p,u,b,y){var f='<textarea class="form-control" id="'+p+'" rows=6 style="overflow-x: auto; width:100%">';return b instanceof Array&&(f+=b.join("\n")),f+"</textarea>"},makeValueFn:function(p,u,b,y){return function(){return $("#"+p).val().split("\n")}}},datePicker:{html:function(p,u,b,y){return'<input class="form-control" id="'+p+'">'+"</input>"},makePostCreateFn:function(p,u,b,y,f,R){return p?function(){var v=$("#"+p);v.datepicker({changeMonth:!0,changeYear:!0,yearRange:"-100:+1",gotoCurrent:!0,numberOfMonths:1,firstDay:1,defaultDate:null,prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',dateFormat:"dd.mm.yy",closeText:"Schlie\xdfen",prevText:'<i class="fa fa-chevron-left"></i>',nextText:'<i class="fa fa-chevron-right"></i>',currentText:"Heute",monthNames:["Januar","Februar","M\xe4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","M\xe4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"KW",dateFormat:"dd.mm.yy",firstDay:1,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",showButtonPanel:!1});var w=new Date(b);w.setMinutes(w.getMinutes()-w.getTimezoneOffset()),b?v.datepicker("setDate",w):v.datepicker()}:null},makeValueFn:function(p,u,b,y){return function(){return $("#"+p).datepicker("getDate")?new Date($("#"+p).datepicker("getDate")):null}}},tagArea:{html:function(p,u,b,y){var f='<textarea id="'+p+'">';return b instanceof Array&&(f+=b.join(",")),f+"</textarea>"},makePostCreateFn:function(p,u,b,y,f,R){return p?($.extend({},u),function(){var w=$("#"+p);w.tagEditor({placeholder:"Enter tags ..."},b),f&&w.on("spin change keyup paste input",function(F,D){f(R,y,D?D.value:$(F.target).val())})}):null},makeValueFn:function(p,u,b,y){return function(){return $("#"+p).val().split(",")}},colSpan2:!0},tagAutocomplete:{html:function(p,u,b,y){var f='<textarea id="'+p+'">';return b instanceof Array&&(f+=b.join(",")),f+"</textarea>"},makePostCreateFn:function(p,u,b,y,f,R){if(!p)return null;var S={};if(u){for(var v=[],w=0;w<u.length;w++)v.push(u[w].text);S.autocomplete={delay:0,position:{collision:"flip"},source:v},S.forceLowercase=!1}return $.extend(S,u),function(){var x=$("#"+p);x.tagEditor(S,b),f&&x.on("spin change keyup paste input",function(D,I){f(R,y,I?I.value:$(D.target).val())})}},makeValueFn:function(p,u,b,y){return function(){return $("#"+p).val().split(",")}},colSpan2:!0},phonecall:{html:function(p,u,b,y){if(0==y.isReadonlyMode)return'<input type="text" class="form-control" id="'+p+'" value="'+b+'"</input>';if(b){var f='<a class="btn btn-green btn-block" role="button" id="'+p+'" href="tel:'+b+'">';return f+='<i class="fa fa-phone" aria-hidden="true"></i> ',(f+=b)+"</a>"}return""}},emailsend:{html:function(p,u,b,y){if(0==y.isReadonlyMode)return'<input type="text" class="form-control" id="'+p+'" value="'+b+'"</input>';if(b){var f='<a class="btn btn-green btn-block" role="button" id="'+p+'" href="mailto:'+b+'">';return f+='<i class="fa fa-envelope" aria-hidden="true"></i> ',(f+=b)+"</a>"}return""}}},d={accumulateTicks:!0,filter:!1,filterSize:200,buyColor:"#00ff00",sellColor:"#ff0000",someOption:"Maybe",noGroup:"I have no group",dontShowMe:"please",tagArea:null},s={dontShowMe:{browsable:!1},filter:{group:"Behavior",name:"Filter",type:"boolean"},filterSize:{group:"Behavior",name:"Filter size",type:"number",options:{min:0,max:500,step:10}},accumulateTicks:{group:"Behavior",name:"Accumulate ticks",type:"boolean"},buyColor:{group:"Appearance",name:"Buy color",type:"color",options:{preferredFormat:"hex",showInput:!0,showInitial:!0}},sellColor:{group:"Appearance",name:"Sell color",type:"color",options:{preferredFormat:"hex",showInput:!0,showInitial:!0}},someOption:{name:"Some option",type:"options",options:["Yes","No",{text:"Not sure",value:"Maybe"}]},tagArea:{name:"Tags",type:"tagArea",description:"This is a tager",showHelp:!1,options:{delimiter:","}}}}]}),function(e){var t="Other",a="pg.getValues",n=0;function l(d,o){return'<tr class="pgGroupRow '+(o?"pgCollapsible":"")+'"><td colspan="2" class="pgGroupCell">'+(o?"- ":"")+d+"</td></tr>"}function m(){var d=e(this);if(null!==d.spinner("value")||"string"!=typeof d.val()){var s=d.spinner("option","min"),p=d.spinner("option","max");"number"==typeof s&&this.value<s?this.value=s:"number"==typeof p&&this.value>p&&(this.value=p)}else d.val("")}e.fn.jqPropertyGrid=function(d,o){if("string"==typeof d&&"get"===d)return"function"==typeof this.data(a)?this.data(a)():null;if("string"!=typeof d)if("object"==typeof d&&null!==d){(o=o&&"object"==typeof o?o:{}).meta=o.meta&&"object"==typeof o.meta?o.meta:{},o.customTypes=o.customTypes||{},o.helpHtml=o.helpHtml||"[?]",o.sort=!(typeof o.sort>"u")&&o.sort,o.isCollapsible=!(typeof o.isCollapsible>"u"||!o.isCollapsible),o.callback="function"==typeof o.callback?o.callback:null,o.isReadonly=o.isReadonly||!1;var S,s=o.meta,p={OTHER_GROUP_NAME:""},u={},b=[],y={},f="pg"+n++,R=this,v=Object.keys(d);o.sort&&("boolean"==typeof o.sort?v=v.sort():"function"==typeof o.sort&&(v=v.sort(o.sort))),v.forEach(function(I){"function"==typeof d[I]||s[I]&&!1===s[I].browsable||(s[I].isReadonlyMode=o.isReadonly,(S=s[I]&&s[I].group||t)!==t&&!u[S]&&(u[S]=l(S,o.isCollapsible)),p[S]=p[S]||"",p[S]+=function c(d,o,s,p,u,b,y,f){if(!o)return"";var g,F,R=y.callback,S=(p=p||{}).name||o,v=p.type||"",w=d+o,x=y.customTypes;for(var D in x)if(v===D){F=x[D];break}return F?(g=F.html(w,o,s,p),b&&(b[o]=F.hasOwnProperty("makeValueFn")?F.makeValueFn(w,o,s,p):F.hasOwnProperty("valueFn")?F.valueFn:function(){return e("#"+w).val()}),u&&F.hasOwnProperty("makePostCreateFn")&&u.push(F.makePostCreateFn(w,p.options,s,o,R,f))):"boolean"===v||""===v&&"boolean"==typeof s?(g=(g='<label class="switch"><input class="form-control" type="checkbox" id="'+w+'" value="'+o+'"'+(s?" checked":"")+" /><span></span></label>")+'<label class="elipsis" for"'+w+" />",b&&(b[o]=function(){return e("#"+w).prop("checked")}),R&&e(f).on("change","#"+w,function(){R(this,o,e("#"+w).is(":checked"))})):"options"===v&&Array.isArray(p.options)?(g=function h(d,o,s){o=o||"",s=s||[];var b,p='<select class="form-control"';(d=d||"")&&(p+=' id="'+d+'"'),p+=">",p+='<option value="" selected disabled style="display:none;">. . .</option>';for(var y=0;y<s.length;y++)p+='<option value="'+(b="object"==typeof s[y]?s[y].value:s[y])+'"'+(o===b?" selected>":">"),p+=("object"==typeof s[y]?s[y].text:s[y])+"</option>";return p+="</select>"}(w,s,p.options),b&&(b[o]=function(){return e("#"+w).val()}),R&&e(f).on("change","#"+w,function(){R(this,o,e("#"+w).val())})):"function"==typeof e.fn.spinner&&("number"===v||""===v&&"number"==typeof s)?(g='<input type="text" id="'+w+'" value="'+s+'" class="form-control" style="width:50px" />',u&&u.push(function r(d,o,s,p,u){if(!d)return null;var b={};return e.extend(b,o),b.change=typeof b.change>"u"?m:b.change,function(){var f=e("#"+d);f.spinner(b),p&&f.on("spin change keyup paste input",function(S,v){p(u,s,v?v.value:e(S.target).val())})}}(w,p.options,o,R,f)),b&&(b[o]=function(){return e("#"+w).spinner("value")})):"color"===v&&"function"==typeof e.fn.spectrum?(g='<input type="text" class="form-control" id="'+w+'" />',u&&u.push(function i(d,o,s,p,u,b){if(!d)return null;var y={};return e.extend(y,s),"string"==typeof o&&(y.color=o),function(){var R=e("#"+d);R.spectrum(y),void 0!==u&&R.on("change",function(v,w){u(b,p,w.toHexString())})}}(w,s,p.options,o,R,f)),b&&(b[o]=function(){return e("#"+w).spectrum("get").toHexString()})):"label"===v?g="string"==typeof p.description&&p.description?'<label for="'+w+'" title="'+p.description+'">'+s+"</label>":'<label for="'+w+'">'+s+"</label>":(g='<input type="text" class="form-control" id="'+w+'" value="'+s+'"</input>',b&&(b[o]=function(){return e("#"+w).val()}),R&&e(f).on("propertychange change keyup paste input","#"+w,function(){R(this,o,e("#"+w).val())})),"string"==typeof p.description&&p.description&&(typeof p.showHelp>"u"||p.showHelp)&&(S+='<div class="pgTooltip">&nbsp '+y.helpHtml+' <span class="pgTooltiptext">'+p.description+"</span>"),p.colspan2?'<tr class="pgRow"><td colspan="2" class="pgCell">'+g+"</td></tr>":y.isReadonly?'<tr class="pgRow"><td class="pgLabelCell">'+S+'</td><td class="pgReadOnlyCell">'+g+"</td></tr>":'<tr class="pgRow"><td class="pgLabelCell">'+S+'</td><td class="pgValueCell">'+g+"</td></tr>"}(f,I,d[I],s[I],b,y,o,R))});var w='<table class="pgTable">';for(var g in u)o.noGroups||(w+=u[g]),w+=p[g];p[t]&&(w+=l(t,o.isCollapsible),w+=p[t]),this.html(w+="</table>"),this.data(a,function(){var D={};for(var I in y)"function"==typeof y[I]&&(D[I]=y[I]());return D}),o.isCollapsible?e(R).find(".pgGroupRow").click(function(){var I=e(this).html(),A=e(I).text(),C="+"===A[0],U=A.substring(1),T=I.replace(A,C?"-"+U:"+"+U);e(this).html(T),e(this).nextUntil("tr.pgGroupRow").slideToggle(1)}):e("tr.pgGroupRow").each(function(I){var A=e(this).html(),C=e(A).text();if(e(this).css("cursor","default"),"-"===C[0]&&" "===C[1]){var T=C.substring(2),V=A.replace(C,T);e(this).html(V)}});for(var F=0;F<b.length;++F)"function"==typeof b[F]&&(b[F](),b[F]=null);o.isReadonly&&(e(R).find("*").prop("disabled",!0),e(R).find("div.tag-editor-delete").hide(),e(R).find("ul.tag-editor.ui-sortable").off("click"))}else console.error("jqPropertyGrid must get an object in order to initialize the grid.");else console.error("jqPropertyGrid got invalid option:",d)}}(window.$),app.factory("redirectService",["$window","$location","$timeout","$rootScope",function(e,t,a,n){var l=n.scope,c=function(r){var m=r.startsWith(l.currentScope.network.path+(""!=l.currentScope.chapter.regEx?"/"+l.currentScope.chapter.regEx:"")+"/");return""===l.currentScope.chapter.regEx&&m&&l.chapters.forEach(function(d){2===d.managementState&&d.id!==l.currentChapter.id&&r.startsWith(l.currentScope.network.path+"/"+d.regEx+"/")&&(m=!1)}),m};return{redirectNotificationUrl:function(r){var i=new URL("https://"+l.currentScope.network.domain),m=l.currentScope.network.path+(""!=l.currentScope.chapter.regEx?"/"+l.currentScope.chapter.regEx:"");if(c(r))a(function(){var s=r.substring(m.length);t.url(s).replace()});else if(r.startsWith(i.origin))e.location.href=r;else if(e.cordova&&e.cordova.InAppBrowser){let s=n.scope.currentScope.network.settings.configurations.inAppBrowserOnly;var o="location=no,toolbarposition=top,toolbartranslucent=no";"android"===cordova.platformId&&(o="location=yes,hideurlbar=yes,zoom=no,closebuttoncaption="+n.scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption")),s?cordova.InAppBrowser.open(r,"_blank",o):cordova.InAppBrowser.open(r,"_system",o)}else e.location.href=r},isSameChapterUrl:c}}]),app.factory("scopeService",["$http","$q","$window",function(e,t,a){var n=this,l={};n.settings=a.scope.scopeSettings;var c={};return this.getNetworkChapter=function(h,r){var i=t.defer();if(l[r+"_"+h])i.resolve(l[r+"_"+h]);else{if(c[r+"_"+h])return c[r+"_"+h].promise;c[r+"_"+h]=i,e.get(scope.apiEndpoint+"networks/"+h+"/"+r).then(function(m){l[r+"_"+h]=m.data,i.resolve(m.data),delete c[r+"_"+h]},function(){i.reject(),delete c[r+"_"+h]})}return i.promise},this.getGlobalSettings=function(){return n.settings.getGlobalSettings()},this.getChapter=function(h){return n.settings.getChapter(h)},this.resolveUrl=function(h){return n.settings.resolveUrl(h)},this.getNetworkUrl=function(){return"https://"+scope.currentScope.network.domain},{getGlobalSettings:this.getGlobalSettings,getChapter:this.getChapter,getNetworkUrl:this.getNetworkUrl,getNetworkChapter:this.getNetworkChapter}}]),ScopeSettings.prototype.getGlobalSettings=function(){return this.globalSettings},ScopeSettings.prototype.getChapter=function(e){return this.network.chaptersDictionary[e]},ScopeSettings.prototype.getChapters=function(){return this.chapters},ScopeSettings.prototype.resolveUrl=function(e){for(var t={},a=this.network,l=e.match("https?://(.*/)?"+a.domain+":?\\d{0,5}(\\/|\\?|$)")[1],c=a.domain,h=document.location.pathname.indexOf(c);-1==h;)c=c.substring(c.indexOf("/")),h=document.location.pathname.indexOf(c),-1==c.indexOf("/")&&(h=0,c="");h+=c.length;var r=document.location.pathname.substring(h);-1!=r.indexOf("/",1)&&(r=r.substring(0,r.indexOf("/",1)));var i=a.chapters.filter(function(s){return function n(s,p){return"string"==typeof s&&"string"==typeof p?0===s.localeCompare(p,void 0,{sensitivity:"accent"}):s===p}(s.path,r)&&0!==s.managementState})[0];i||(i=a.chapters.filter(function(s){return"/"==s.path})[0]),i||(i={path:"/",closed:!1,slug:"-"});var m=a.domain.match("\\/(.*)"),d="",o="/";return m&&(d="/"+m[1],o+=m[1]),t.appRoute=l?"/"+a.domain+i.path:d+i.path,t.isNative=!l,t.networkPath=l?"/"+a.domain:o,t.network=a,i.path=i.path.endsWith("/")?t.appRoute.slice(0,-1):t.appRoute,t.chapter=i,t},ScopeSettings.prototype.espace=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},app.component("shareButton",{templateUrl:"/ClientApp/src/legacy-app/common/shareButton.html",bindings:{text:"<",image:"<"},controller:["$rootScope","$location","$window",function(e,t,a){var n=this;n.getUrl=function(){return encodeURIComponent(t.absUrl())},n.getImageUrl=function(){return encodeURIComponent(n.image.assetImageUrl)},n.shareFacebook=function(){a.open("https://www.facebook.com/sharer/sharer.php?u="+n.getUrl()+"&t="+encodeURIComponent(n.text),"_blank","width=600,height=460")},n.showWhatsappShare=new window.MobileDetect(window.navigator.userAgent).phone(),n.shareTwitter=function(){var r="https://twitter.com/intent/tweet?url="+n.getUrl()+"&text="+n.text;e.scope.currentScope.chapter.settings.seoTwitterSite&&(r=r+"&via="+e.scope.currentScope.chapter.settings.seoTwitterSite.substring(1)),a.open(r,"_blank","width=600,height=460")},n.sharePinterest=function(){a.open("https://www.pinterest.com/pin/create/link/?url="+n.getUrl()+"?media="+n.getImageUrl()+"?description="+encodeURIComponent(n.text),"_blank","width=600,height=460")}}]}),app.directive("smartQuotes",[function(){return{scope:!0,link:function(e,t,a){t.keypress(function(n){if(34===n.charCode){var l=t[0].selectionStart;if(l!==t[0].selectionEnd)return;n.preventDefault(),0===l||t.val().substring(l-1,l).match(/\s/g)?t.val(t.val().substring(0,l)+"\u201e"+t.val().substring(l)):t.val(t.val().substring(0,l)+"\u201c"+t.val().substring(l)),t[0].setSelectionRange(l+1,l+1)}})}}}]),app.filter("szAwareUppercase",function(){return function(e){return(e=e||"").replace(/\xdf/g,"\u1e9e").toUpperCase()}}),app.directive("timedUpdate",["$interval","$timeout",function(e,t){return{restrict:"A",scope:!1,link:function(a,n,l){function c(){var r=a.$eval(l.timedUpdate);n[0].innerText=r,n[0].textContent=r}var h=e(function(){c()},l.milliseconds?l.milliseconds:3e4);t(function(){c()}),n.on("$destroy",function(){e.cancel(h)})}}}]),app.factory("companyNewsService",["$http","$q",function(e,t){return{getCompanyNews:function(){var l=t.defer();return e.get(scope.apiEndpoint+"companyNews").then(function(c){l.resolve(c.data)}),l.promise},getCompanyNewsDetail:function(l){var c=t.defer();return e.get(scope.apiEndpoint+"companyNews/"+l).then(function(h){c.resolve(h.data)}),c.promise}}}]),MetaInformationBase.prototype.getFullAuthorName=function(){var e=scope.currentScope.network.name;return this.author&&(e=this.author.firstName+" "+this.author.lastName),e},MetaInformationBase.prototype.getMetaDate=function(){var e=moment().format();return moment(this.date).isValid()?moment(this.date).format():e},MetaArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaSnipInfo.prototype=Object.create(MetaInformationBase.prototype),MetaSponsoredArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaStaticArticleInfo.prototype=Object.create(MetaInformationBase.prototype),MetaEventInfo.prototype=Object.create(MetaInformationBase.prototype),app.service("pageMetaInfoService",["$interpolate","metaService",function(e,t){var a=this;function n(d,o){this.title=d,this.description=o}this.statesInfo={},this.statesInfo["app.root"]=new n(scope.currentScope.network.getResourceOrKeyName("web_newsMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_newsMeta_description")),this.statesInfo["app.root.login"]=new n(scope.currentScope.network.getResourceOrKeyName("web_loginMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_loginMeta_description")),this.statesInfo["app.root.menu"]=new n(scope.currentScope.network.getResourceOrKeyName("web_menuMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_menuMeta_description")),this.statesInfo.home=new n(scope.currentScope.network.getResourceOrKeyName("web_landingMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_landingMeta_description")),this.statesInfo["app.root.snips"]=new n(scope.currentScope.network.getResourceOrKeyName("web_snipMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_snipMeta_description")),this.statesInfo["app.search"]=new n(scope.currentScope.network.getResourceOrKeyName("web_searchMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_searchMeta_description")),this.statesInfo["app.imprint"]=new n(scope.currentScope.network.getResourceOrKeyName("web_imprintMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_imprintMeta_description")),this.statesInfo["app.sponsoredArticleList"]=new n(scope.currentScope.network.getResourceOrKeyName("web_sponsoredArticleMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_sponsoredArticleMeta_description")),this.statesInfo["app.privacyPolicy"]=new n(scope.currentScope.network.getResourceOrKeyName("web_privacyPolicyMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_privacyPolicyMeta_description")),this.statesInfo["app.tos"]=new n(scope.currentScope.network.getResourceOrKeyName("web_termsOfUseMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_termsOfUseMeta_description")),this.statesInfo["app.accessibility"]=new n(scope.currentScope.network.getResourceOrKeyName("web_accessibility_title"),scope.currentScope.network.getResourceOrKeyName("web_accessibility_description")),this.statesInfo["app.imagelicensing"]=new n(scope.currentScope.network.getResourceOrKeyName("web_asset_imageLicensingMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_asset_imageLicensingMeta_description")),this.statesInfo["app.register"]=new n(scope.currentScope.network.getResourceOrKeyName("web_registerMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_registerMeta_description")),this.statesInfo["app.feedback"]=new n(scope.currentScope.network.getResourceOrKeyName("web_feedbackMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_feedbackMeta_description")),this.statesInfo["app.authorRegister"]=new n(scope.currentScope.network.getResourceOrKeyName("web_authorRegisterMeta_title"),""),this.statesInfo["app.authors"]=new n(scope.currentScope.network.getResourceOrKeyName("web_authorMeta_title"),scope.currentScope.network.getResourceOrKeyName("web_authorMeta_description"));var r=function(d){if(!d)return"";var o=function(d){return d.replace("{{{networkName}}}",scope.currentScope.network.name)}(d);return o=function(d){return d.replace("{{{chapterName}}}",scope.currentScope.chapter.name)}(o),o};return{run:function(d){if(d){var o=a.statesInfo[d];o&&function(d,o){var s=r(d),p=r(o);t.push(s,p)}(o.title,o.description)}}}}]),app.component("articleEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/articleEventCalendarDisplayable.html",bindings:{article:"<"},controller:["$rootScope",function(e){var t=this;this.$onInit=function(){var a=new Date(t.article.calendarDate).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});t.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:a}),t.article.isToday=t.isToday}}]}),app.component("birthdayEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/birthdayEventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope","eventCalendarService","formatterService",function(e,t,a){var n=this,l="";this.$onInit=function(){l=new Date(n.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),l=a.eventCalendarFormatAsString(n.event.start),n.formattedCalendarDate=e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:l}),n.congratulatable=n.event.isToday||new Date>new Date(n.event.start),n.hasCongratulated=!1,n.event.ownReactions.forEach(function(c){1===c.type&&c.occurance==n.event.start&&(n.hasCongratulated=!0)})},n.congratulate=function(){t.congratulateToBirthday(n.event.id,n.event.start).then(function(){n.hasCongratulated=!0})}}]}),app.controller("EventCalendarController",["$scope","$rootScope","articleService","snipService","sponsoredArticleService","profileService","eventCalendarService",function(e,t,a,n,l,c,h){var r=t.scope.currentScope.network.settings.languageCode,i=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==i){var m=t.scope.profile,d=t.scope.network.settings.languagePack.split("-")[0];r=d,null!=m.activeUserLanguage?.vendorLanguageCode&&d!=m.activeUserLanguage?.vendorLanguageCode&&(r=m.activeUserLanguage?.vendorLanguageCode)}a.getArticlesForEventCalendar().then(function(o){var s=[],p=[],u=[],b=[];$.each(o,function(y,f){if(null!==f.calendarDate){var R=new Date(f.calendarDate).getMonth(),S=new Date(f.calendarDate).getDate(),v=new Date(f.calendarDate).getFullYear(),w=moment(f.calendarDate).locale(r),g=w.format("L");if(f.isToday=g===moment(new Date).locale(r).format("L"),typeof s[R+""+v]>"u"){u[g]=[],u[g]={Day:w.format("dddd")+", der "+S+". "+w.format("MMMM"),Articles:[f],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(f.calendarDate)},b[R+""+v]=[],b[R+""+v].push(u[g]);var x={Month:w.format("MMMM")+" "+v,Dates:b[R+""+v]};s[R+""+v]=x,p.push(x)}else typeof u[g]>"u"?(u[g]=[],u[g]={Day:w.format("dddd")+", der "+S+". "+w.format("MMMM"),Articles:[f],Snips:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(f.calendarDate)},b[R+""+v].push(u[g]),b[R+""+v].sort(function(F,D){return F.CalendarDate.getTime()-D.CalendarDate.getTime()})):u[g].Articles.push(f)}}),n.getSnipsForEventCalendar().then(function(y){$.each(y,function(f,R){if(null!==R.calendarDate){var S=new Date(R.calendarDate).getMonth(),v=new Date(R.calendarDate).getDate(),w=new Date(R.calendarDate).getFullYear(),g=moment(R.calendarDate).locale(r),x=g.format("L");if(R.isToday=x===moment(new Date).locale(r).format("L"),typeof s[S+""+w]>"u"){u[x]=[],u[x]={Day:g.format("dddd")+", der "+v+". "+g.format("MMMM"),Snips:[R],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(R.calendarDate)},b[S+""+w]=[],b[S+""+w].push(u[x]);var F={Month:g.format("MMMM")+" "+w,Dates:b[S+""+w]};s[S+""+w]=F,p.push(F)}else typeof u[x]>"u"?(u[x]=[],u[x]={Day:g.format("dddd")+", der "+v+". "+g.format("MMMM"),Snips:[R],Articles:[],SponsoredArticles:[],Birthdays:[],Events:[],CalendarDate:new Date(R.calendarDate)},b[S+""+w].push(u[x]),b[S+""+w].sort(function(D,I){return D.CalendarDate.getTime()-I.CalendarDate.getTime()})):u[x].Snips.push(R)}}),e.calendar=p.sort(function(f,R){return f.Dates[0].CalendarDate-R.Dates[0].CalendarDate})}),l.getSponsoredArticlesForEventCalendar().then(function(y){$.each(y,function(f,R){if(null!==R.calendarDate){var S=new Date(R.calendarDate).getMonth(),v=new Date(R.calendarDate).getDate(),w=new Date(R.calendarDate).getFullYear(),g=moment(R.calendarDate).locale(r),x=g.format("L");if(R.isToday=x===moment(new Date).locale(r).format("L"),typeof s[S+""+w]>"u"){u[x]=[],u[x]={Day:g.format("dddd")+", der "+v+". "+g.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[R],Birthdays:[],Events:[],CalendarDate:new Date(R.calendarDate)},b[S+""+w]=[],b[S+""+w].push(u[x]);var F={Month:g.format("MMMM")+" "+w,Dates:b[S+""+w]};s[S+""+w]=F,p.push(F)}else typeof u[x]>"u"?(u[x]=[],u[x]={Day:g.format("dddd")+", der "+v+". "+g.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[R],Birthdays:[],Events:[],CalendarDate:new Date(R.calendarDate)},b[S+""+w].push(u[x]),b[S+""+w].sort(function(D,I){return D.CalendarDate.getTime()-I.CalendarDate.getTime()})):u[x].SponsoredArticles.push(R)}}),e.calendar=p.sort(function(f,R){return f.Dates[0].CalendarDate-R.Dates[0].CalendarDate})}),h.getEventCalendarEventData().then(function(y){$.each(y,function(f,R){if(null!==R.start){var S=new Date(R.start).getMonth(),v=new Date(R.start).getDate(),w=new Date(R.start).getFullYear(),g=moment(R.start).locale(r),x=g.format("L");if(R.isToday=x===moment(new Date).locale(r).format("L"),typeof s[S+""+w]>"u"){u[x]=[],u[x]={Day:g.format("dddd")+", der "+v+". "+g.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===R.type?[R]:[],Events:2===R.type?[R]:[],ExternalEvents:3===R.type?[R]:[],CalendarDate:new Date(R.start)},b[S+""+w]=[],b[S+""+w].push(u[x]);var F={Month:g.format("MMMM")+" "+w,Dates:b[S+""+w]};s[S+""+w]=F,p.push(F)}else if(typeof u[x]>"u")u[x]=[],u[x]={Day:g.format("dddd")+", der "+v+". "+g.format("MMMM"),Snips:[],Articles:[],SponsoredArticles:[],Birthdays:1===R.type?[R]:[],Events:2===R.type?[R]:[],ExternalEvents:3===R.type?[R]:[],CalendarDate:new Date(R.start)},b[S+""+w].push(u[x]),b[S+""+w].sort(function(D,I){return D.CalendarDate.getTime()-I.CalendarDate.getTime()});else switch(R.type){case 1:u[x].Birthdays.push(R);break;case 3:u[x].ExternalEvents.push(R);break;default:u[x].Events.push(R)}}}),e.calendar=p.sort(function(f,R){return f.Dates[0].CalendarDate-R.Dates[0].CalendarDate})})})}]),app.controller("EventCalendarDetailController",["$scope","$rootScope","$previousState","event","eventCalendarService","parserService","$location","$uibModal","translationService","profileService","assetService","logoService",function(e,t,a,n,l,c,h,r,i,m,d,o){e.event=n,e.defaultEventPicture=o.getChapterEventPictureUrl(),e.enableHighQualityImage=t.scope.network.settings.configurations.enableHighQualityImage,e.loadMoreParticipantsPending=!0;var s=t.scope.currentScope.network.getResourceOrKeyName;function p(){var v=new Date(e.event.start),w=new Date(e.event.end),g=new Date(e.event.recurrenceRule.until);if(0===e.event.recurrenceRule.frequency)e.ocurranceString=e.event.isAllDay?v.toLocaleDateString()==w.toLocaleDateString()?s("web_eventDetail_dateAllDay_singleDay",{date:v.toLocaleDateString()}):s("web_eventDetail_dateAllDay",{start:v.toLocaleDateString(),end:w.toLocaleDateString()}):e.event.isOpenEnd?s("web_eventDetail_openEnd",{start:v.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:s("web_eventDetail_dateOpenEnd")}):s("web_eventDetail_date",{start:v.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}),end:w.toLocaleString([],{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})});else{var x=e.event.durationInSeconds,F="web_eventDetail_duration_seconds";switch(x>0&&x%60==0&&(F="web_eventDetail_duration_minutes",(x/=60)%60==0&&(F="web_eventDetail_duration_hours",(x/=60)%24==0&&(F="web_eventDetail_duration_days",(x/=24)%7==0&&(x/=7,F="web_eventDetail_duration_weeks")))),e.ocurranceString=!e.event.recurrenceRule.until||g.getUTCFullYear()<=1?s("web_eventDetail_recurringEvent",{start:v.toLocaleDateString(),startTime:v.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),duration:s(F,{duration:x})}):s("web_eventDetail_recurringEvent_until",{start:v.toLocaleDateString(),startTime:v.toLocaleString([],{hour:"2-digit",minute:"2-digit"}),until:g.toLocaleDateString(),duration:s(F,{duration:x})}),e.event.recurrenceRule.frequency){case 4:e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+s("web_eventDetail_dailyIntervalOne"):" "+s("web_eventDetail_daily",{interval:e.event.recurrenceRule.interval});break;case 5:var D="";0===e.event.recurrenceRule.byDay[0].dayOfWeek&&(e.event.recurrenceRule.byDay.push(e.event.recurrenceRule.byDay[0]),e.event.recurrenceRule.byDay.splice(0,1)),e.event.recurrenceRule.byDay.forEach(function(V,M){D+=u(V.dayOfWeek),M<e.event.recurrenceRule.byDay.length-2?D+=", ":M===e.event.recurrenceRule.byDay.length-2&&(D+=" "+s("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+s("web_eventDetail_weeklyIntervalOne",{weekDays:D}):" "+s("web_eventDetail_weekly",{interval:e.event.recurrenceRule.interval,weekDays:D});break;case 6:if(e.event.recurrenceRule.byDay.length){var C=[{ocurrances:[],weekDay:s("web_common_sunday")},{ocurrances:[],weekDay:s("web_common_monday")},{ocurrances:[],weekDay:s("web_common_tuesday")},{ocurrances:[],weekDay:s("web_common_wednesday")},{ocurrances:[],weekDay:s("web_common_thursday")},{ocurrances:[],weekDay:s("web_common_friday")},{ocurrances:[],weekDay:s("web_common_saturday")}],U=[{occurance:s("web_eventDetail_recurrence_byWeekDay_first"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_second"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_third"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_fourth"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_last"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_secondToLast"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_thirdToLast"),weekDays:[]},{occurance:s("web_eventDetail_recurrence_byWeekDay_fourthToLast"),weekDays:[]}];e.event.recurrenceRule.byDay.forEach(function(V){C[V.dayOfWeek].ocurrances.push(b(V.offset));var M=V.offset;M<0&&(M=4-M),U[M-=1].weekDays.push(u(V.dayOfWeek))}),C.push(C[0]),C.splice(0,1),C=C.filter(function(V){return V.ocurrances.length>0}),U=U.filter(function(V){return V.weekDays.length>0}),weekDayString="",C.length<=U.length?C.forEach(function(V,M){V.ocurrances.forEach(function(_,O){weekDayString+=_,O<V.ocurrances.length-2?weekDayString+=", ":O===V.ocurrances.length-2&&(weekDayString+=" "+s("web_common_and")+" ")}),weekDayString+=" "+V.weekDay,M<C.length-2?weekDayString+=", ":M===C.length-2&&(weekDayString+=" "+s("web_common_and")+" ")}):U.forEach(function(V,M){weekDayString+=" "+V.occurance+" ",V.weekDays.forEach(function(_,O){weekDayString+=_,O<V.weekDays.length-2?weekDayString+=", ":O===V.weekDays.length-2&&(weekDayString+=" "+s("web_common_and")+" ")}),M<U.length-2?weekDayString+=", ":M===U.length-2&&(weekDayString+=" "+s("web_common_and")+" ")}),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+s("web_eventDetail_monthlyIntervalOne_byWeekDay",{weekDays:weekDayString}):" "+s("web_eventDetail_monthly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDays:weekDayString})}else{var I=e.event.recurrenceRule.byMonthDay.join(", "),A=I.lastIndexOf(",");-1!==A&&(I=I.substring(0,A)+" "+s("web_common_and")+I.substring(A+1,I.length)),e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+s("web_eventDetail_monthlyIntervalOne_byMonthDay",{monthDays:I}):" "+s("web_eventDetail_monthly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDays:I})}break;case 7:var k="";switch(e.event.recurrenceRule.byMonth[0]){case 1:k=s("web_common_january");break;case 2:k=s("web_common_february");break;case 3:k=s("web_common_march");break;case 4:k=s("web_common_april");break;case 5:k=s("web_common_may");break;case 6:k=s("web_common_june");break;case 7:k=s("web_common_july");break;case 8:k=s("web_common_august");break;case 9:k=s("web_common_september");break;case 10:k=s("web_common_october");break;case 11:k=s("web_common_november");break;case 12:k=s("web_common_december")}if(e.event.recurrenceRule.byDay.length){var T=e.event.recurrenceRule.byDay[0];e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+s("web_eventDetail_yearlyIntervalOne_byWeekDay",{weekDay:b(T.offset)+" "+u(T.dayOfWeek),month:k}):" "+s("web_eventDetail_yearly_byWeekDay",{interval:e.event.recurrenceRule.interval,weekDay:b(T.offset)+" "+u(T.dayOfWeek),month:k})}else e.ocurranceString+=1===e.event.recurrenceRule.interval?" "+s("web_eventDetail_yearlyIntervalOne_byMonthDay",{monthDay:e.event.recurrenceRule.byMonthDay[0],month:k}):" "+s("web_eventDetail_yearly_byMonthDay",{interval:e.event.recurrenceRule.interval,monthDay:e.event.recurrenceRule.byMonthDay[0],month:k})}}e.event.content=e.event.htmlDescription,c.postProcessHtml(e.event),e.event.participantsPublic&&l.getParticipants(n.id,0).then(function(V){e.participants=V,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})}function u(v){switch(v){case 1:return s("web_common_monday");case 2:return s("web_common_tuesday");case 3:return s("web_common_wednesday");case 4:return s("web_common_thursday");case 5:return s("web_common_friday");case 6:return s("web_common_saturday");case 0:return s("web_common_sunday")}}function b(v){switch(v){case 1:return s("web_eventDetail_recurrence_byWeekDay_first");case 2:return s("web_eventDetail_recurrence_byWeekDay_second");case 3:return s("web_eventDetail_recurrence_byWeekDay_third");case 4:return s("web_eventDetail_recurrence_byWeekDay_fourth");case-1:return s("web_eventDetail_recurrence_byWeekDay_last");case-2:return s("web_eventDetail_recurrence_byWeekDay_secondToLast");case-3:return s("web_eventDetail_recurrence_byWeekDay_thirdToLast");case-4:return s("web_eventDetail_recurrence_byWeekDay_fourthToLast")}}if(e.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==t.scope.profile.isRegistered&&0==t.app,null===e.event&&e.$parent.$parent.event&&e.$parent.$parent.$on("eventUpdate",function(v,w){e.event=w,p(),R(),e.$broadcast("$$rebind::refresh")}),n&&p(),e.acceptJoin=function(){e.loadMoreParticipantsPending=!0,l.acceptJoinEvent(e.event.id).then(function(v){e.event.ownParticipationStatus=v.ownStatus,e.event.participantsAcceptedCount=v.acceptedCount,e.event.participantsDeclinedCount=v.declinedCount,e.event.participantsQueuedCount=v.queuedCount,e.notifyToast(v),n.participantsPublic?l.getParticipants(n.id,0).then(function(w){e.participants=w,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")})},e.declineJoin=function(){e.loadMoreParticipantsPending=!0,l.declineJoinEvent(e.event.id).then(function(v){e.event.ownParticipationStatus=v.ownStatus,e.event.participantsAcceptedCount=v.acceptedCount,e.event.participantsDeclinedCount=v.declinedCount,e.event.participantsQueuedCount=v.queuedCount,e.notifyToast(v),e.event.ownParticipationStatus="DECLINED",n.participantsPublic?l.getParticipants(n.id,0).then(function(w){e.participants=w,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")})},e.queueJoin=function(){e.loadMoreParticipantsPending=!0,l.queueJoinEvent(e.event.id).then(function(v){e.event.ownParticipationStatus=v.ownStatus,e.event.participantsAcceptedCount=v.acceptedCount,e.event.participantsDeclinedCount=v.declinedCount,e.event.participantsQueuedCount=v.queuedCount,e.notifyToast(v),n.participantsPublic?l.getParticipants(n.id,0).then(function(w){e.participants=w,e.participantPage=0,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")}):e.$broadcast("$$rebind::refreshParticipants")},v=>{e.notifyToast({changeOutcome:"web_events_reason_server_error",changeSuccess:!1,error:v})})},e.notifyToast=function(v){v.changeSuccess?DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(v.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"success",3e3):(DevExpress.ui.notify({message:t.scope.currentScope.network.getResourceOrKeyName(v.changeOutcome),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(v.error))},e.loadMoreParticipants=function(){e.loadMoreParticipantsPending=!0,l.getParticipants(n.id,e.participantPage+1).then(function(v){Array.prototype.push.apply(e.participants,v),e.participantPage+=1,e.loadMoreParticipantsPending=!1,e.$broadcast("$$rebind::refreshParticipants")})},(!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history&&window.allowRedirect){var y=t.scope.currentChapter.path+h.url();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",y)}var f,R=function(){e.event.assetReferences&&(f=e.event.assetReferences.reduce(function(v,w){return v[w.guid]=w,v},{}))};e.resolveAsset=function(v){return f[v]},$(window).scroll(function(v){$(v.target).scrollTop()>100?$(".articleDetail-mobileNavigation-wrapper").addClass("articleDetail-mobileNavigation-wrapper-scrolled"):$(".articleDetail-mobileNavigation-wrapper").removeClass("articleDetail-mobileNavigation-wrapper-scrolled")}),e.recommendedArticles=[],e.recommendedArticlePairs=[],e.recommendedSnips=[],e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],e.$watch(function(){return"event.detailsLoaded"},function(v){v&&R()});var S=function(v){e.event.assetReferences.unshift(v)};e.availableTargetLanguages=null,i.getAvailableTargetLanguages().then(function(v){e.availableTargetLanguages=v}),e.selectedTargetLanguage=t.profile.favoriteLanguage,e.$on("apicodo.translate",function(v,w){e.translateEventDetail(w)}),e.isParticipationLocked=function(){const v=e.event;return!!v.lockParticipation||!!v.lockParticipationAuto&&new Date(v.lockParticipationAutoDate)<new Date},e.translateEventDetail=function(v){v&&(e.selectedTargetLanguage=v),e.currentLanguage=e.selectedTargetLanguage,null===e.selectedTargetLanguage?l.getEvent(e.event.id).then(function(w){e.event=w,e.event.assetReferences=w.assetReferences,p(),R(),e.$broadcast("$$rebind::refresh")}):l.translateEventDetail(e.event.id,e.selectedTargetLanguage).then(function(w){e.event=w,e.event.assetReferences=w.assetReferences,p(),R(),e.$broadcast("$$rebind::refresh"),m.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){t.profile.favoriteLanguage=e.selectedTargetLanguage})})},e.assetCreateOpinionDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return S},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateFactDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return S},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateQuestionDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return S},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateImageDialog=function(v,w,g){v&&0!==v.length?w.length||r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return v},resultCallback:function(){return S},createAssetAsync:function(){return function(x){return d.insertAssetImageToEvent(x,e.event.id)}}}}):w||g.$setPristine()},e.assetCreateVideoDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return S},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetCreateGifDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return S},createAssetAsync:function(){return function(v){return d.insertAssetTextToEvent(v,e.event.id)}}}})},e.assetSearchDialog=function(){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return S},eventId:function(){return e.event.id},assetReferences:function(){return e.event.assetReferences}}})},e.assetImageFocuspointDialog=function(v){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){var w=null;return e.event.assetReferences.forEach(function(g){g.assetImage?.guid===e.event.coverImage.guid&&(e.event.coverImage=(w=g).assetImage)}),w}}})},e.scrollTo=function(v){$("body,html").animate({scrollTop:$(v).offset().top-120},1e3)},e.$watchCollection("event.assetReferences",function(){e.event&&(e.assetsMedia=[],e.assetsFacts=[],e.assetsQuestions=[],e.assetsComments=[],angular.isDefined(e.event.assetReferences)&&e.event.assetReferences.forEach(function(v){null!==v.assetImage||null!==v.assetText&&(5===v.assetText.type||6===v.assetText.type||7===v.assetText.type||10===v.assetText.type||13===v.assetText.type)?e.assetsMedia.push(v):null!==v.assetText&&(8===v.assetText.type?e.assetsFacts.push(v):9===v.assetText.type?e.assetsQuestions.push(v):0===v.assetText.type&&e.assetsComments.push(v))}))})}]),app.component("eventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarDisplayable.html",bindings:{event:"<"},controller:["$rootScope","formatterService",function(e,t){var a=this;this.$onInit=function(){var n=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),l=new Date(a.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});n=t.eventCalendarFormatAsString(a.event.start),l=t.eventCalendarFormatAsString(a.event.end),a.formattedCalendarDate=n!==l?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:n,end:l}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:n})}}]}),app.component("eventCalendarExternalDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/eventCalendarExternalDisplayable.html",bindings:{event:"<"},controller:["$rootScope","formatterService",function(e,t){var a=this;this.$onInit=function(){var n=new Date(a.event.start).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"}),l=new Date(a.event.end).toLocaleDateString([],{weekday:"short",day:"2-digit",month:"long",year:"2-digit"});n=t.eventCalendarFormatAsString(a.event.start),l=t.eventCalendarFormatAsString(a.event.end),a.formattedCalendarDate=n!==l?e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_dateRange",{start:n,end:l}):e.scope.currentScope.network.getResourceOrKeyName("web_eventCalendar_list_date",{date:n})}}]}),app.controller("EventCalendarEditController",["$scope","event","metaService","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorAssetsService","spellingService","eventCalendarService","logoService","editorCommentService",function(e,t,a,n,l,c,h,r,i,m,d,o){e.event=t,e.event.breakingEvent=!1,e.enableHighQualityImage=c.scope.network.settings.configurations.enableHighQualityImage,e.closedChapter=c.scope.currentChapter.closed;var s=c.scope.currentScope.chapter.settings.configurations.eventsBirthdayCalendarConfiguration;e.canPublish=!s||!0!==s.EnableApproval||c.profile.isNewsroomAdmin||6===s.MinApprovalRole&&c.profile.isHeadSales||5===s.MinApprovalRole&&c.profile.isSales||4===s.MinApprovalRole&&c.profile.isHeadJournalist||3===s.MinApprovalRole&&c.profile.isMerkuristJournalist||2===s.MinApprovalRole&&c.profile.isJournalist;var p=new Date;if(t.start||(t.start=p),t.showStartDateCalendar=!1,t.showEndDateCalendar=!1,t.recurrenceRule.hasUntil=!1,t.recurrenceRule.showStartDateCalendar=!1,t.showAutoLockParticipationDatePicker=!1,"string"==typeof t.start&&(t.start=new Date(t.start)),t.end||(t.end=new Date(t.start.setMinutes(t.start.getMinutes()+30))),"string"==typeof t.end&&(t.end=new Date(t.end)),e.endOptions={minDate:t.start,showWeeks:!1},e.toggleStartDateCalendar=function(){t.showStartDateCalendar=!t.showStartDateCalendar},e.toggleEndDateCalendar=function(){t.showEndDateCalendar=!t.showEndDateCalendar},e.toggleRecurrenceRuleHasUntilCalendar=function(){t.recurrenceRule.hasUntil=!t.recurrenceRule.hasUntil},e.toggleReccurenceStartDateCalendar=function(){t.recurrenceRule.showStartDateCalendar=!t.recurrenceRule.showStartDateCalendar},e.toggleAutoLockParticipationDatePicker=function(){t.showAutoLockParticipationDatePicker=!t.showAutoLockParticipationDatePicker},e.onChangeEventIsAllDay=function(){t.isAllDay&&(t.start&&(t.start=new Date(t.start.setHours(0,0,0,0))),t.end&&(t.end=new Date(t.end.setHours(23,59,59,999))))},e.onChangeEventIsOpenEnd=function(){t.isOpenEnd&&t.end&&(t.end=new Date(t.start.valueOf()),t.end.setHours(23,59,59,999))},e.defaultEventPicture=d.getChapterEventPictureUrl(),e.togglePreview=function(){e.preview=!e.preview,e.$broadcast("eventUpdate",y())},e.toggleBreakingEvent=function(){e.breakingEvent=!e.breakingEvent},e.event.recurrenceRule.hasUntil=new Date(e.event.recurrenceRule.until).getFullYear()>1,e.event.recurrenceRule.hasUntil||(e.event.recurrenceRule.until=new Date(e.event.start.valueOf()).setDate(e.event.start.getDate()+1)),"string"==typeof e.event.recurrenceRule.until&&(e.event.recurrenceRule.until=new Date(e.event.recurrenceRule.until)),0===e.event.durationInSeconds?(e.event.durationValue=30,e.event.durationType=1):(e.event.durationValue=e.event.durationInSeconds,e.event.durationType=0,e.event.durationValue%60==0&&(e.event.durationValue/=60,e.event.durationType=1,e.event.durationValue%60==0&&(e.event.durationValue/=60,e.event.durationType=2,e.event.durationValue%24==0&&(e.event.durationValue/=24,e.event.durationType=3,e.event.durationValue%7==0&&(e.event.durationValue/=7,e.event.durationType=4))))),e.event.recurrenceRule.weekDays=[!1,!1,!1,!1,!1,!1,!1],5===e.event.recurrenceRule.frequency?(e.event.recurrenceRule.byDay.forEach(function(D){e.event.recurrenceRule.weekDays[D.dayOfWeek]=!0}),e.event.recurrenceRule.byDay=[]):e.event.recurrenceRule.weekDays[p.getDay()]=!0,e.event.recurrenceRule.dayType=1,!e.event.recurrenceRule.byDay.length){var u=Math.floor(p.getDate()/7)+1;5==u&&(u=-1),e.event.recurrenceRule.byDay.push({dayOfWeek:p.getDay(),offset:u}),e.event.recurrenceRule.dayType=0}e.event.recurrenceRule.byMonthDay.length||e.event.recurrenceRule.byMonthDay.push(p.getDate()),e.event.recurrenceRule.byMonth.length||e.event.recurrenceRule.byMonth.push(p.getMonth()+1),e.addWeekDayRule=function(){e.event.recurrenceRule.byDay.push({dayOfWeek:1,offset:1})},e.deleteWeekDayRule=function(D){e.event.recurrenceRule.byDay.splice(D,1)},e.$on("$destroy",function(){a.setFavicon(),n.cancel(interpolateRefreshTimeout)}),e.changed=!1;var b=c.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");function y(){var D=JSON.parse(JSON.stringify(e.event));switch(D.jsonDescription=h.getDocument(),D.htmlDescription=h.getHtmlDocument(),D.durationInSeconds=D.durationValue,D.durationType){case 0:break;case 1:D.durationInSeconds*=60;break;case 2:D.durationInSeconds*=3600;break;case 3:D.durationInSeconds*=86400;break;case 4:D.durationInSeconds*=604800}if(0!==D.recurrenceRule.frequency&&(D.end=null,D.isAllDay=!1),D.recurrenceRule.frequency<=5&&(D.recurrenceRule.byDay=[],D.recurrenceRule.byMonthDay=[]),D.recurrenceRule.frequency<=6&&(D.recurrenceRule.byMonth=[]),5===D.recurrenceRule.frequency?D.recurrenceRule.weekDays.forEach(function(C,U){C&&D.recurrenceRule.byDay.push({dayOfWeek:U})}):1===D.recurrenceRule.dayType?D.recurrenceRule.byMonthDay=[]:D.recurrenceRule.byDay=[],7===D.recurrenceRule.frequency&&(D.recurrenceRule.byMonthDay.splice(1),D.recurrenceRule.byDay.splice(1)),D.isAllDay){var I=new Date(D.start);D.start=I.getFullYear()+"-"+(I.getMonth()+1)+"-"+ +I.getDate();var A=new Date(D.end);D.end=A.getFullYear()+"-"+(A.getMonth()+1)+"-"+ +A.getDate()}return D.isOpenEnd&&(D.isAllDay=!1),D.recurrenceRule&&!D.recurrenceRule.hasUntil&&(D.recurrenceRule.until=null),D.allowJoin||(D.showParticipants=!1,D.maxParticipants=null),D.maxParticipants<1&&(D.maxParticipants=null),D.lockParticipation&&(D.lockParticipationAuto=!1,D.lockParticipationAutoDate=null),D}window.onbeforeunload=function(){if(e.changed)return b},preventNavigation=!1,c.$on("$stateChangeStart",function(D,I){if(preventNavigation)D.preventDefault();else if(e.changed&&!confirm(b)){preventNavigation=!0,D.preventDefault();var A=!1;n(function(){preventNavigation=!1},1e3)}else e.changed=!1,A&&(closeConnection(),A=!1)}),e.$watch("event.lockParticipation",function(D){}),e.$watch("event.start",function(D){if(e.endOptions.minDate=D,e.event.end<D&&((I=new Date(D.valueOf())).setHours(e.event.end.getHours()),I.setMinutes(e.event.end.getMinutes()),I<D&&I.setDate(I.getDate()+1),e.event.end=I),e.event.recurrenceRule.until<D){var I=new Date(D.valueOf());e.event.recurrenceRule.until=I}}),e.save=function(){m.updateEvent(e.event.id,y()).then(function(D){e.editForm.$dirty=!1,e.event.unpublishedRevisionGuid=D})},e.publish=function(){m.publishEvent(e.event.unpublishedRevisionGuid,e.event.breakingEvent).then(function(){e.event.unpublishedRevisionGuid=null})},e.requestPublish=function(){m.requestEventPublish(e.event.id).then(function(){e.event.publishRequested=!0})},e.onChangeLockParticipationAuto=function(){if(t.lockParticipationAuto){if(t.lockParticipationAutoDate)return;t.lockParticipationAutoDate=p}else t.lockParticipationAutoDate=null},e.pickCoverAsset=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(D){e.event.coverImage=D.assetImage,e.editForm.$dirty=!0}},event:function(){return e.event}}})},$(".articleEdit-wrapper").scroll(function(){!function x(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),e.numberOfWords=i.countWords(e.event.htmlDescription);var F=function(D){n(function(){e.event.jsonDescription!==D&&(e.event.jsonDescription=D,e.numberOfWords=i.countWords(h.getHtmlDocument()),e.editForm.$dirty=!0)})};h.init({docID:"event_"+t.id,assetDlgFactory:function(D,I){l.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(A){if(I&&A.length>0){h.setFocus();var C=[];$.each(A,function(U,k){var T=null;k.assetImage&&(T=k.assetImage.type),k.assetText&&(T=k.assetText.type),k.assetArticle&&(T=k.assetArticle.type),k.assetFile&&(T=k.assetFile.type),C.push({guid:k.guid,type:T})}),I(C)}}},event:function(){return e.event}}})},initialDocument:t.jsonDescription,initialAssetReferences:t.assetReferences,assetResolver:function(D){return r.getAsset(D,e.event.assetReferences)},commentCreationDlgFactory:function(D,I){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return I},messageHolder:function(){return new MessageHolder(e.event)},sourceService:function(){return o}}})},commentMgmtDlgFactory:function(D,I,A){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return A},onAddedCallback:function(){return I},messageHolder:function(){return new MessageHolder(e.event)},chainComments:function(){return D},sourceService:function(){return o}}})},createLinkFactory:function(D){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return D}}})},callToActionDlgFactory:function(D,I){l.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return I}}})},onNewStateFactory:F,onLoadTransactionCallback:F,languageCode:c.scope.currentScope.network.settings.languageCode}),c.$on("$stateChangeStart",function(D,I){h.closeConnection()})}]),app.factory("eventCalendarService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{getEventCalendarEventData:function(){var S=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/eventList").then(function(v){S.resolve(v.data)},function(){S.reject()}),S.promise},createEvent:function(){var S=a.defer();return t.post(scope.apiEndpoint+"eventcalendar").then(function(v){S.resolve(v.data)},function(){S.reject()}),S.promise},updateEvent:function(S,v){var w=a.defer();return t.put(scope.apiEndpoint+"eventcalendar/"+S,v).then(function(g){w.resolve(g.data)},function(){w.reject()}),w.promise},deleteEvent:function(S){var v=a.defer();return t.delete(scope.apiEndpoint+"eventcalendar/"+S).then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise},publishEvent:function(S,v){var w=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+S+"/publish?breaking="+(v?"true":"false")).then(function(x){w.resolve(x.data)},function(){w.reject()}),w.promise},requestEventPublish:function(S){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+S+"/requestPublish").then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise},getEvent:function(S){var v=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+S+"?forEdit=false").then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise},getEventForEdit:function(S){var v=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+S+"?forEdit=true").then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise},getEventsForAuthorDashboard:function(){var S=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/authorDasboardList").then(function(v){S.resolve(v.data)},function(){S.reject()}),S.promise},getParticipants:function(S,v,w){var g=a.defer(),x=scope.apiEndpoint+"eventcalendar/"+S+"/participants?page="+v;return w&&w>0&&(x+="&elementsPerPage="+w),t.get(x).then(function(F){g.resolve(F.data)},function(){g.reject()}),g.promise},acceptJoinEvent:function(S){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+S+"/join/accept").then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise},declineJoinEvent:function(S){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+S+"/join/decline").then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise},translateEventDetail:function(S,v){var w=a.defer();return t.get(scope.apiEndpoint+"eventcalendar/"+S+"/translate/"+v).then(function(g){w.resolve(g.data)},function(){w.reject()}),w.promise},congratulateToBirthday:function(S,v){var w=a.defer(),g=JSON.stringify(v);return g=g.substring(1,g.length-1),t.post(scope.apiEndpoint+"eventcalendar/"+S+"/congratulateForBirthday?occurance="+g).then(function(x){w.resolve(x.data)},function(){w.reject()}),w.promise},queueJoinEvent:function(S){var v=a.defer();return t.post(scope.apiEndpoint+"eventcalendar/"+S+"/join/queue").then(function(w){v.resolve(w.data)},function(){v.reject()}),v.promise}}}]),app.component("snipEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/snipEventCalendarDisplayable.html",bindings:{snip:"<",horizontal:"<"},controller:function(){var e=this;this.$onInit=function(){e.formatedCalendarDate=moment(e.snip.calendarDate).format("dddd")+", der "+new Date(e.snip.calendarDate).getDate()+". "+moment(e.snip.calendarDate).format("MMMM")}}}),app.component("sponsoredArticleEventCalendarDisplayable",{templateUrl:"/ClientApp/src/legacy-app/event/sponsoredArticleEventCalendarDisplayable.html",bindings:{sparticle:"<"},controller:function(){var e=this;this.$onInit=function(){e.formatedCalendarDate=moment(e.sparticle.calendarDate).format("dddd")+", der "+new Date(e.sparticle.calendarDate).getDate()+". "+moment(e.sparticle.calendarDate).format("MMMM")}}}),app.directive("allowInternAd",["$rootScope",function(e){return{restrict:"A",link:function(t,a){e.scope.currentScope.chapter.settings.criteoPublisherId?a.show():a.hide()}}}]),app.directive("articleAdDynamic",["stroerService",function(e){return{restrict:"A",link:function(t,a,n){var l=a[0],c=angular.element('<div id="articleAdvertisement"></div>')[0],h=t.$ctrl.isMobile;l.appendChild(c);var r=function(){return SDG.Publisher.setZone("localnews"),h?(SDG.Publisher.registerSlot("topmobile2",c).load(),e.isDebugging&&console.log("loading articleAdvertisement")):(SDG.Publisher.registerSlot("rectangle",c).load(),e.isDebugging&&console.log("loading articleAdvertisement")),"Loaded SDG"};"article"==e.svc.siteArea&&r(),t.$on("stroer:updated",function(m,d){e.isDebugging&&console.log("Recived update from service"),"article"==d.siteArea&&function(){try{exponentialBackoff(r,5,1e3,function(d){e.isDebugging&&console.log("External Ad Dynamic Directive binding is ",d)})}catch(d){e.isDebugging&&console.error("Failure: "+d)}}()})}}}]),app.directive("articleAdDynamicSecond",["stroerService",function(e){return{restrict:"A",link:function(t,a,n){var l=a[0],c=angular.element('<div id="secondHomeAdvertisement" style="text-align: center"></div>')[0],h=t.$ctrl.isMobile;l.appendChild(c);var r=function(){return h?SDG.Publisher.registerSlot("topmobile2",c).load():SDG.Publisher.registerSlot("rectangle",c).load(),e.isDebugging&&console.log("loading secondHomeAdvertisement"),"SDG loaded"},i=function(){try{exponentialBackoff(r,5,1e3,function(d){e.isDebugging&&console.log("External Ad Second Directive binding is ",d)})}catch(d){e.isDebugging&&console.error("Failure: "+d)}};"homepage"==e.svc.siteArea&&i(),t.$on("stroer:updated",function(m,d){e.isDebugging&&console.log("Recived update from service"),"homepage"==d.siteArea&&i()})}}}]),app.provider("criteoService",function(){window.Criteo=window.Criteo||{events:[]};var e=!1;this.initialize=function(a){if(!e){var n=document.createElement("script");n.type="text/javascript",n.src="https://static.criteo.net/js/ld/publishertag.js",n.async=!0,document.body.appendChild(n),Criteo.events.push(function(){Criteo.Passback.RequestBids({placements:[{slotid:"externalAdArticle",publishersubid:a,zoneid:1283196},{slotid:"externalAdSnip-1",publishersubid:a,zoneid:1283192},{slotid:"externalAdShipmentSnips",publishersubid:a,zoneid:1283194},{slotid:"externalAdShipmentArticle",publishersubid:a,zoneid:1283195}]},3e3)}),e=!0}};var t={renderAdArticle:function(a){Criteo.events.push(function(){Criteo.Passback.RenderAd("externalAdArticle",a)})},renderAdSnip:function(a,n){Criteo.events.push(function(){Criteo.Passback.RenderAd("externalAdSnip-"+a,n)})},renderShipment:function(a,n){Criteo.events.push(function(){Criteo.Passback.RenderAd(a,n)})}};this.$get=function(){return t}}),app.component("externalAdArticle",{templateUrl:"/ClientApp/src/legacy-app/externalAd/externalAdArticle.html",controller:["$rootScope","$scope","profileService","stroerService",function(e,t,a,n){var l=this;t.profile=a.profile,t.chapter=e.scope.currentScope.chapter,l.isExternalAdEmpty=!1,l.isMobile=e.mobile;var c=function(){l.isMobile?("snips"==n.svc.siteArea?SDG.Publisher.registerSlot("topmobile2","externalAdArticleStroer").load():SDG.Publisher.registerSlot("topmobile","externalAdArticleStroer").load(),n.isDebugging&&console.log("loading externalAdArticleStroer")):(SDG.Publisher.registerSlot("rectangle","externalAdArticleStroer").load(),n.isDebugging&&console.log("loading externalAdArticleStroer"))},h=function(){try{exponentialBackoff(c,5,1e3,function(i){n.isDebugging&&console.log("Article Ad Article Component binding is ",i)})}catch(i){n.isDebugging&&console.error("Failure: "+i)}};"snips"==n.svc.siteArea&&(h(),n.isDebugging&&console.log("Registering snips")),t.$on("stroer:updated",function(r,i){n.isDebugging&&console.log("Recived update from service"),"snips"==i.siteArea?h():n.isDebugging&&console.log("not snips")})}]}),app.component("externalAdShipment",{templateUrl:"/ClientApp/src/legacy-app/externalAd/externalAdShipment.html",bindings:{proposeId:"@"},controller:["$rootScope","$scope","imageUrlBuilderService","profileService","$timeout",function(e,t,a,n,l){var c=this;t.profile=n.profile,t.chapter=e.scope.currentScope.chapter,c.isExternalAdEmpty=!1,c.isMobile=e.mobile,l(function(){c.adSlot=c.isMobile?"topmobile3":"rectangle"})}]}),app.component("externalAdSnip",{templateUrl:"/ClientApp/src/legacy-app/externalAd/externalAdSnip.html",bindings:{displayableGroup:"@",adPosition:"@"},controller:["$rootScope","$scope","stroerService","skipThirdSnipService","profileService",function(e,t,a,n,l){var c=this;e.$on("$routeChangeSuccess",function(){console.log("route changed")}),t.profile=l.profile,t.chapter=e.scope.currentScope.chapter,c.isMobile=e.mobile,this.enable=function(){return n.skipSnip(parseInt(c.displayableGroup),parseInt(c.adPosition))},this.isSecondAd=function(){return n.useSecondPosition(parseInt(c.displayableGroup),parseInt(c.adPosition))};var h=this.isSecondAd();c.isExternalAdEmpty=!1,this.$onInit=function(){if(n.skipSnip(parseInt(c.displayableGroup),parseInt(c.adPosition))){a.isDebugging&&console.log(a);var i=function(){return c.isMobile?(c.adSlot="topmobile",h&&(SDG.Publisher.registerSlot("topmobile","startPageRectangle").load(),a.isDebugging&&console.log("loading startPageRectangle"))):(h&&(SDG.Publisher.registerSlot("rectangle2","startPageRectangle").load(),a.isDebugging&&console.log("loading startPageRectangle")),c.adSlot="rectangle"),"SDG pos snips loaded"},m=function(){try{exponentialBackoff(i,5,1e3,function(o){a.isDebugging&&console.log("External Ad Snip Component binding is ",o)})}catch(o){a.isDebugging&&console.error("Failure: "+o)}};"homepage"==a.svc.siteArea&&m(),t.$on("stroer:updated",function(d,o){a.isDebugging&&console.log("Recived update from service"),"homepage"==o.siteArea&&m()})}}}]}),app.service("skipThirdSnipService",["$rootScope",function(e){this.skipSnip=function(a,n){return!(!n||!e.scope.currentScope.chapter.settings.criteoPublisherId||1!==a&&2!==a||3!==n)},this.useSecondPosition=function(a,n){return!(!n||!e.scope.currentScope.chapter.settings.criteoPublisherId)&&2===a&&3===n}}]),app.service("stroerService",["$http","$q","$rootScope","$location",function(e,t,a,n){var l=this;if(l.svc={},l.svc.path="Home",l.svc.siteArea="homepage",l.svc.isActive=!1,void 0!==a.scope.currentScope.chapter.settings&&(l.svc.isActive=!!a.scope.currentScope.chapter.settings.criteoPublisherId),l.svc.initialized=!1,a.app&&(l.svc.isActive=!1),l.isDebugging=!1,l.updatePublisherZone=function(o){switch(o){case"homepage":SDG.Publisher.setZone("homepage");break;case"article":case"snips":case"a_snip":SDG.Publisher.setZone("localnews")}},n?.search()?.stdbgsvc&&(l.isDebugging=!0),l.svc.isActive){let o=function(){var p=n.path().split("/");String.prototype.includes||(String.prototype.includes=function(y,f){return"number"!=typeof f&&(f=0),!(f+y.length>this.length)&&-1!==this.indexOf(y,f)}),l.isLocal=n.host().includes("localhost"),l.isDebugging&&console.log(p);var u=p.length,b="article";return l.isLocal?("snips"==p[3]&&(b="snips",u>4&&(b="a_snip")),3==u&&(b="homepage"),"snips"!=p[3]&&u>4&&(b="administration")):("snips"==p[2]&&(b="snips",u>3&&(b="a_snip")),2==u&&(b="homepage"),"snips"!=p[2]&&u>3&&(b="administration")),b};try{SDG,SDG.Publisher.unregisterSlot("topmobile",!0)}catch{if(!$("stroerScriptFallback").length){var r=document.createElement("script");r.type="text/javascript",r.id="stroerScriptFallback",document.getElementsByTagName("head")[0].appendChild(r),l.isDebugging&&console.log("added script")}}l.svc.siteArea=o();var i=function(){try{return l.svc.siteArea=o(),l.updatePublisherZone(l.svc.siteArea),SDG.Publisher.finalizeSlots(),SDG.Publisher.loadAllSlots(!1),l.svc.initialized=!0,!0}catch{return!1}};l.fallbackInit=i,l.svc.isActive&&function(){try{exponentialBackoff(i,5,2e3,function(u){l.isDebugging&&console.log("Stroer JS from CDN binding is ",u)})}catch(u){l.isDebugging&&console.error("Failure binding Stroer CDN JS: "+u)}}(),a.$on("$locationChangeSuccess",function(){l.svc.path=n.path(),l.svc.url=a.scope.currentChapter.path+n.url();var p=n.path().split("/");l.isDebugging&&console.log(p),l.svc.siteArea=o(),l.updatePublisherZone(l.svc.siteArea),SDG.Publisher.unregisterSlot("topmobile",!0),SDG.Publisher.unregisterSlot("topmobile2",!0),SDG.Publisher.unregisterSlot("rectangle",!0),SDG.Publisher.unregisterSlot("rectangle2",!0),l.isDebugging&&console.log(l),a.$broadcast("stroer:updated",l.svc)}),a.$broadcast("stroer:updated",l.svc)}l.isDebugging&&console.log(l)}]),app.filter("absoluteUrl",function(){return function(e){return e?0!=e.indexOf("http://")&&0!=e.indexOf("https://")?"http://"+e:e:""}}),app.filter("apicodoMediaServiceEmbed",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/play/"+a.split("|")[0]+"?guiMode=iframe&token="+a.split("|")[1]+"&platform=external")}}]),app.filter("apicodoMediaServiceWatch",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/play/"+a.split("|")[0]+"?guiMode=iframe&token="+a.split("|")[1]+"&platform=external")}}]),app.filter("apicodoMediaServiceImage",["$sce","authService",function(e,t){return function(a){return e.trustAsResourceUrl(t.mediaApiBase.url+"/api/Asset/"+a+"/Thumbnail000001.jpg")}}]),app.filter("dailymotionEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.dailymotion.com/embed/video/"+t+"?logo=0&related=0&highlight=00a9fd")}}]),app.filter("datePastOrNow",function(){return function(e){return moment()<moment(e)?moment():moment(e)}}),app.filter("encodeURIComponent",function(){return window.encodeURIComponent}),app.filter("escapeHtml",[function(){return function(e){return e?e.replace(/</g,"&lt;").replace(/>/g,"&gt;"):""}}]),app.filter("facebookEmbed",["$sce","$rootScope",function(e,t){return function(a){return e.trustAsResourceUrl("//www.facebook.com/plugins/video.php?href="+window.encodeURIComponent("https://www.facebook.com/".concat(a))+"%2F&show_text=0&width=600&height=338")}}]),app.filter("facebookWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.facebook.com/"+t+"/")}}]),app.filter("facebookImage",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//graph.facebook.com/"+t.split("/")[2]+"/picture")}}]),app.filter("includeMyUnpublishedSnips",function(){return function(e,t){var a=function(r,i){return r.user.guid.toLowerCase()===i.toLowerCase()},l=e.filter(function(r){return a(r,t)&&!function(r){return null!==r.deleted}(r)}),c=e.filter(function(r){return!a(r,t)&&r.published});return l.concat(c)}}),app.filter("moment",function(){return function(e,t){var a=Array.prototype.slice.call(arguments,2),n=moment(e);return n[t].apply(n,a)}}),app.filter("momentShortDateFormat",["$rootScope",function(e){return function(){var t=moment(arguments[0]);return t.locale(e.scope.currentScope.network.settings.languageCode).format("L")}}]),app.filter("momentShortDateTimeFormat",["$rootScope",function(e){return function(){var t=moment(arguments[0]),a=e.scope.currentScope.network.settings.languageCode;return t.locale(a).format("L")+" "+t.locale(a).format("LT")}}]),app.filter("parseUrl",function(){"use strict";return function(t){return function e(t){if(t)return t.replace(/(?:https?\:\/\/|www\.)+(?![^\s]*?")([\w.,@?!^=%&amp;:\/~+#-]*[\w@?!^=%&amp;\/~+#-])?/gi,function(n){var l=document.createElement("div"),c=document.createElement("a");return 0!=n.indexOf("http://")&&0!=n.indexOf("https://")&&(n="http://"+n),c.href=n,c.target="_blank",c.innerHTML=n.replace(/.*?:\/\/(www\.)?/g,""),l.appendChild(c),l.innerHTML})||""}(t)}}),app.filter("readableMilliseconds",function(){return function(e){var t,a,l,c,h,r,i,m,d,o,s,p,u,b,y,f;switch(b=parseInt(e)<0,y=parseInt(e)/1e3,y=Math.abs(y),c=7*(t=24*(a=3600)),l=(h=365*t)/12,f={years:null,months:null,weeks:null,days:null,hours:null,minutes:null,seconds:null},r=function(){return("        "+(b?"-":"")+"        "+(f.years?" "+f.years+"yr":"")+"        "+(f.months?" "+f.months+"mth":"")+"        "+(f.weeks?" "+f.weeks+"w":"")+"        "+(f.days?" "+f.days+"d":"")+"        "+(f.hours?" "+f.hours+"h":"")+"        "+(f.minutes?" "+f.minutes+"m":"")+"        "+(f.seconds?" "+f.seconds+"s":"")+"        ").trim()},s=function(R,S){return null==S&&(S=0),f.seconds=1===S?R.toFixed(1):Math.floor(R),r()},d=function(R){return f.minutes=Math.floor(R/60),s(R-60*f.minutes)},m=function(R){return f.hours=Math.floor(R/a),d(R-f.hours*a)},i=function(R){return f.days=Math.floor(R/t),m(R-f.days*t)},p=function(R){return f.weeks=Math.floor(R/c),i(R-f.weeks*c)},o=function(R){return f.months=Math.floor(R/l),p(R-f.months*l)},u=function(R){return f.years=Math.floor(R/h),o(R-f.years*h)},!1){case!(y<60):return s(y,1);case!(y<a):return d(y);case!(y<t):return m(y);case!(y<c):return i(y);case!(y<l):return p(y);case!(y<h):return o(y);default:return u(y)}}}),app.directive("translateText",["$compile","$rootScope","translationService","$timeout","$sce",function(e,t,a,n,l){return{restrict:"A",scope:{translateText:"="},link:function(c,h){c.$watch("translateText",function(r){if(r){var i=[r];n(function(){a.translateByUserLanguageCode(i).then(m=>{var s=e("<div>"+m[0].translation+"</div>")(c.$parent);h.empty(),angular.element(h).append(s.contents())}).catch(m=>{var s=e("<div>"+r+"</div>")(c.$parent);h.empty(),angular.element(h).append(s.contents())})},0)}else h.empty()},!0)}}}]),app.filter("trustUrl",["$sce",function(e){return function(t){return e.trustAsResourceUrl(t)}}]),app.filter("vimeoEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//player.vimeo.com/video/"+t.split("|")[0].split("/")[0]+"?badge=0&portrait=0&byline=0")}}]),app.filter("vimeoWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//vimeo.com/"+t.split("|")[0])}}]),app.filter("vimeoImage",["$sce",function(e){return function(t){var a=t.split("|")[1];return a||(a="/Content/images/vimeo_logo.jpg"),e.trustAsResourceUrl(a)}}]),app.filter("youtubeEmbed",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//www.youtube.com/embed/"+t+"?modestbranding=1&amp;rel=0")}}]),app.filter("youtubeWatch",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//youtu.be/"+t)}}]),app.filter("youtubeImage",["$sce",function(e){return function(t){return e.trustAsResourceUrl("//img.youtube.com/vi/"+t+"/0.jpg")}}]),app.factory("backendHubProxy",["$rootScope",function(e){return function t(a){var n=$.hubConnection(),l=n.createHubProxy(a);return l.connection.logging=!0,{on:function(c,h){l.on(c,function(r){e.$apply(function(){h&&h(r)})})},invoke:function(c,h,r){l.invoke(c,h).done(function(i){e.$apply(function(){r&&r(i)})})},start:function(c){n.start().done(function(){c&&c()}).catch(function(h){console.log(h.toString())})},stop:function(c){n.stop(),c&&c()}}}}]),app.controller("IkUpLandingPageController",["$scope","$rootScope","ikUpLandingPageService","$location","$timeout","$window",function(e,t,a,n,l,c){switch(e.input={},e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description"),e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey"),e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login"),(c.navigator.language||c.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_en")&&(e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_en")),t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_en")&&(e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_en")),t.scope.currentScope.network.getResourceOrKeyName("web_common_login_en")&&(e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_fr")&&(e.description=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_description_fr")),t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_fr")&&(e.placeholder=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_companyKey_fr")),t.scope.currentScope.network.getResourceOrKeyName("web_common_login_fr")&&(e.loginbutton=t.scope.currentScope.network.getResourceOrKeyName("web_common_login_fr"))}e.request=function(){a.getCompanyKey(e.input.companyKey).then(function(r){var i=n.absUrl();if(r)window.location.href=i+"?id="+r.landingSwitchRedirectId;else{var m=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches");switch((c.navigator.language||c.navigator.userLanguage).substring(0,2).toLowerCase()){case"en":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en")&&(m=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_en"));break;case"fr":t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr")&&(m=t.scope.currentScope.network.getResourceOrKeyName("web_sharedApp_noMatches_fr"))}e.input.noMatches=m,l(function(){e.input.noMatches=""},2e3)}})}}]),app.factory("ikUpLandingPageService",["$http","$q",function(e,t){return{getCompanyKey:function(n){var l=t.defer();return e.post(scope.apiEndpoint+"companyKeys",{Key:n}).then(function(c){l.resolve(c.data)}),l.promise}}}]),app.controller("ChapterSwitchDialog",["$scope","$rootScope","profileService","scopeService","$stateParams",function(e,t,a,n,l){scope.network.settings.configurations.chapterSwitchGrantedChaptersOnly?a.getProfile().then(function(c){e.aprofile=c;for(var h=[],r=0;r<scope.network.chapters.length;r++)(c.closedChapterSlugs.includes(scope.network.chapters[r].slug)||!scope.network.chapters[r].closed)&&h.push(scope.network.chapters[r]);e.chapterList=h}):e.chapterList=scope.network.chapters}]),app.controller("IndexController",["$scope","$rootScope","$location","authService","$uibModal","$window","profileService","$timeout",function(e,t,a,n,l,c,h,r){var i=function(){"unrecognized"!==ResponsiveBootstrapToolkit.current()?t.mobile=ResponsiveBootstrapToolkit.is("<=sm"):r(i)};i(),$(window).resize(function(){e.$apply(function(){t.mobile=ResponsiveBootstrapToolkit.is("<=sm")})}),e.login=function(){l.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){}},facebookSignUpData:!1,login:!0}})},e.profile=h.profile,e.authentication=n,h.getProfile().then(function(){r(function(){e.loaded=!0})}),e.openSnip=function(){var m=l.open({templateUrl:"/ClientApp/src/legacy-app/article/articleCreate.html",controller:"ArticleCreateController",size:"lg",resolve:{}});m.result.then(function(d){},function(){}),m.opened.then(function(){})},e.isActive=function(m){return m===a.path()}}]),app.controller("AppLandingController",["$rootScope","$scope","profileService",function(e,t,a){t.chapterClick=function(n){e.switchChapter(n)}}]),app.controller("LandingController",["$rootScope","$scope","profileService","scopeService","logoService","pageMetaInfoService","$state",function(e,t,a,n,l,c,h){t.success=!1,t.networkLogoUrl=l.getNetworkLogoUrl(),t.logoService=l,c.run("home"),t.switchChapter=function(r,i){i.preventDefault(),e.switchChapter(r)},t.submitForm=function(r){r&&a.insertProposedCity(t.proposedCity).then(function(i){t.success=!0},function(){}).then(function(){})},t.updatePageMetaInfo=function(r){c.run(r)}}]),app.controller("MarketResearchElasticReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var o,s,p,i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",m=[{color:i},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"}],d=[],u=[];e.report=null,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null,e.totalClickCount=0;var b=function(S){var v=0,w=0,g=0;u.forEach(function(x,F){u[F].value=0}),$.each(S,function(x,F){v+=F.impressionTime,w+=F.impressionCount,$.each(F.answers,function(D,I){$.each(u,function(A,C){if(C.id===I.id)return C.value+=I.clicks,void(g+=I.clicks)})})}),e.$apply(function(){e.totalImpressionTime=v,e.totalImpressionCount=w,e.totalClickCount=g}),p.validateData(),o.validateData(),s.validateData()},y=function(){var S=moment(o.startDate).startOf("day").toDate(),v=moment(o.endDate).startOf("day").toDate(),w=e.report.filter(function(g){return g.day>=S&&g.day<=v});b(w),s.zoom(S,moment(v).add(1,"d").toDate()),e.$apply(function(){e.startDay=S,e.endDay=v})};e.filterChapter=function(S){S.filtered=!S.filtered,function(){var S=e.chapters.filter(function(v){return!v.filtered}).map(function(v){return v.id});e.filterDisabled=!0,a.getReport({marketResearchId:e.marketResearch.id,marketResearchQuestionId:e.marketResearch.questionId,chapterIds:S}).then(function(v){v.forEach(function(w){w.day=moment(w.day.replace("Z","")).toDate()}),e.report=v,h(function(){(function(S){d.length=0,$.each(S,function(v,w){d.push(w)}),o.validateData(),s.validateData()})(v),y(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(S){return e.filterDisabled||1===e.chapters.filter(function(v){return!v.filtered}).length&&!S.filtered},a.getMarketResearch(l.id).then(function(S){e.marketResearch=S,S.questions[0].answers.forEach(function(v,w){u.push({title:v.text,value:0,id:v.intId,color:u.length<=m.length?m[u.length].color:"#000000"})}),a.getReport({marketResearchId:l.id,marketResearchQuestionId:S.questionId}).then(function(v){v.forEach(function(g){g.day=moment(g.day.replace("Z","")).toDate()}),e.report=v,e.startDay=v[0].day,e.endDay=v[v.length-1].day;var w=[];$.each(S.chapterSlugs,function(g,x){w.push(n.getChapter(x))}),w=w.filter(function(g){return 2===g.managementState}),e.chapters=w,$.each(v,function(g,x){d.push(x)}),h(function(){(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:d,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){y()}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:d,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p=AmCharts.makeChart("chartAnswers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:u,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%\nClicks: [[value]]"}),b(v)})},function(){e.error=!0})})}]),app.controller("MarketResearchReportController",["$scope","$rootScope","marketResearchService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getMarketResearch(l.id).then(function(d){e.marketResearch=d,a.getReportMarketResearchCalendar(l.id).then(function(o){o.forEach(function(s){s.chapter=n.getChapter(s.chapterSlug),s.reports.forEach(function(p){p.calendar.forEach(function(u){u.start=moment(u.start.replace("Z","")).toDate(),u.end=moment(u.end.replace("Z","")).toDate()})})}),d.report=o,h(function(){var s,p,u,b=[],y=new Set;$.each(o,function(F,D){D.active=!0,y.add(D.chapter.name)}),o.uniqueChapters=[],y.forEach(function(F){o.uniqueChapters.push(F)});var f=[],R=function(){f.length=0,$.each(o[0].reports[0].calendar,function(F,D){f.push({start:D.start,end:D.end,impressions:0,viewableImpressions:0,clicks:0,impressionTime:0})}),$.each(o,function(F,D){D.active&&(o[F-1]&&2===o[F-1].chapter.managementState&&2===D.chapter.managementState&&o[F-1].chapter.name!==D.chapter.name&&(o.multiChapterShipment=!0),$.each(D.reports,function(I,A){var C=A.marketResearch.id;$.each(A.calendar,function(U,k){k.id=C,f[U].impressions+=k.impressions,f[U].viewableImpressions+=k.viewableImpressions,f[U].impressionTime+=k.impressionTime,null!==k.marketResearchAnswerId&&(f[U].clicks+=k.impressions)})}))}),p.validateData(),s.validateData()},w=o.summary={};s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:f,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),p=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"impressions",toField:"impressions"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:f,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_impressions"),type:"smoothedLine",valueField:"impressions",periodValue:"Sum",comparable:!0,balloonText:"Einblendungen: <i class='fa fa-eye-slash'></i> [[value]]",lineAlpha:.5,fillAlphas:.05,periodValueText:"[[value.sum]]",visibleInLegend:!1},{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),u=AmCharts.makeChart("chartAnswers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:b,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%\nClicks: [[value]]"});var F,x=function(){var F=moment(s.startDate).startOf("day").toDate(),D=moment(s.endDate).startOf("day").add(-1,"d").toDate();(function(F,D){w.viewableImpressions=0,w.impressions=0,w.clicks=0,w.impressionTime=0,w.start=F,w.end=D,$.each(f,function(I,A){var C=new Date(A.start);C<F||C>D||(w.viewableImpressions+=A.viewableImpressions,w.impressions+=A.impressions,w.clicks+=A.clicks,w.impressionTime+=A.impressionTime)}),u.validateData(),p.validateData(),e.$apply()})(F,D),function(F,D){b.forEach(function(I,A){b[A].value=0}),$.each(o,function(I,A){A.active&&$.each(A.reports,function(C,U){$.each(U.calendar,function(k,T){var V=new Date(T.start);V<F||V>D||T.impressions>0&&null!==T.marketResearchAnswerId&&T.start>=F&&T.end<=D&&b.forEach(function(M,_){b[_].answerId!==T.marketResearchAnswerId||(b[_].value+=T.impressions)})})})}),u.validateData(),e.$apply()}(F,D),p.zoom(F,moment(D).add(1,"d").toDate())};s.addListener("zoomed",function(F){x()}),e.toggleReport=function(F){$.each(o,function(D,I){I.chapter.name===F&&(I.active=!I.active)}),h(function(){R(),x()},50)},R(),(F=d.questions[0].answers).sort(function(D,I){return(D.id>I.id)-(D.id<I.id)}),F.forEach(function(D,I){b.push({title:D.text,value:0,answerId:D.id,color:b.length<=m.length?m[b.length].color:"#000000"})}),x()},function(){e.error=!0})})},function(){r.path("/")});var m=[{color:i},{color:"#cccccc"},{color:"#b53967"},{color:"#00a9fd"},{color:"#9d4f9f"},{color:"#8e6fff"},{color:"#00ffeb"},{color:"#63223a"},{color:"#00496d"},{color:"#d4aad5"},{color:"#160066"},{color:"#e5cce6"}]}]),app.factory("marketResearchService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,l,c){return{getMarketResearch:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d).then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},getReportMarketResearchCalendar:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d+"/ReportMarketResearchCalendar").then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},getReportMarketResearchAnswers:function(d){var o=t.defer();return e.get(scope.apiEndpoint+"marketresearch/"+d+"/ReportMarketResearchAnswers").then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},getReport:function(d){var o=t.defer();return e.post(scope.apiEndpoint+"marketResearch/report",d).then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise}}}]),app.component("apicodoMediaManager",{templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaManagerComponent.html",bindings:{callback:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","apicodoMediaService","authService",function(e,t,a,n,l,c,h,r){var i=this;i.uploading=!1,i.isInitialized=!1,i.apicodoBaseUrl=r.mediaApiBase.url,i.odataBaseUrl=i.apicodoBaseUrl+"/api/odata/",i.apiBaseUrl=i.apicodoBaseUrl+"/api/",DevExpress.localization.locale(l.scope.currentScope.network.settings.languageCode),i.refreshGrid=function(){i.gridInstance.refresh()},i.executeClickCallback=function(d){i.callback&&i.callback({text:i.apicodoBaseUrl+"/play/"+d.row.data.id+"?guiMode=iframe",title:d.row.data.title,attachment:d.row.data.id,thumbnailUrl:i.apicodoBaseUrl+"/api/Asset/"+d.row.data.id+"/Thumbnail000001.jpg"})},h.getConnectionData().then(function(d){i.token=d.token,i.odataBaseUrl=d.apiBase+"/api/odata/",i.gridInstance=$("#mediaGridContainer").dxDataGrid({dataSource:{store:new DevExpress.data.ODataStore({url:i.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredentials:!0,beforeSend:function(o){o.headers=i.getHeaders()}})},paging:{pageSize:5},pager:{showPageSizeSelector:!0,allowedPageSizes:[5,10,25,50,100]},remoteOperations:!0,searchPanel:{visible:!0,highlightCaseSensitive:!0},showColumnHeaders:!1,showColumnLines:!1,showRowLines:!1,columns:[{width:75,allowFiltering:!1,allowSorting:!1,dataField:"id",cellTemplate:function(o,s){$("<div>").append($("<button>",{class:"btn btn-green action-button",click:function(){i.callback&&i.callback({text:i.apicodoBaseUrl+"/play/"+s.data.id+"?guiMode=iframe",title:s.data.title,attachment:s.data.id,thumbnailUrl:i.apicodoBaseUrl+"/api/Asset/"+s.data.id+"/Thumbnail000001.jpg"})}}).append($("<img>",{src:i.apicodoBaseUrl+"/api/Asset/"+s.data.id+"/Thumbnail000001.jpg",height:20}))).appendTo(o)}},{dataField:"title",caption:"Name"},{dataField:"description",caption:"Description",visible:!1},{dataField:"createdOn",sortIndex:0,sortOrder:"desc",visible:!1}]}).dxDataGrid("instance"),i.uploaderInstance=$("#mediaFileUploader").dxFileUploader({name:"file",multiple:!1,accept:"video/*",value:[],chunkSize:5e5,uploadMode:"instantly",labelText:l.scope.currentScope.network.getResourceOrKeyName("web_upload_drag_drop_here"),selectButtonText:l.scope.currentScope.network.getResourceOrKeyName("web_upload_video_button"),uploadHeaders:i.getHeaders(),uploadUrl:i.getFileUploaderUrl(),onValueChanged:function(o){var s=o.value;s.length>0&&$.each(s,function(p,u){var b=(new DevExpress.data.Guid)._value;u.guid=b})},onUploadStarted:function(o){i.uploading=!0},onUploadAborted:function(o){i.uploading=!1},onUploadError:function(o){i.uploading=!1},onUploaded:function(o){i.refreshGrid(),i.uploading=!1}}).dxFileUploader("instance"),i.isInitialized=!0,$(".dx-fileuploader-button").addClass("btn btn-green action-button")}),i.getGridUrl=function(){return i.odataBaseUrl+"MediaFiles"},i.getFileUploaderUrl=function(){return i.apiBaseUrl+"Upload"},i.getHeaders=function(){return{Authorization:"Bearer "+i.token,withCredentials:!1}}}]}),app.component("apicodoMediaPlay",{templateUrl:"/ClientApp/src/legacy-app/media/apicodoMediaPlayComponent.html",bindings:{fileid:"<"},controller:["$scope","$element","$stateParams","$location","$rootScope","profileService","apicodoMediaService","$sce","authService",function(e,t,a,n,l,c,h,r,i){var m=this;m.isVerticalVideo=!0,this.$onInit=function(){h.getConnectionData().then(function(d){m.getVideoUrl=function(o){return r.trustAsResourceUrl(i.mediaApiBase.url+"/play/"+o+"?guiMode=iframe&token="+d.token+"&platform=external")},h.getVideoData(m.fileid).then(function(o){try{var s=o.metaData.assetMetadata.assetFile[0].videoTracks[0].height,p=o.metaData.assetMetadata.assetFile[0].videoTracks[0].width,u=void 0!==o.metaData.assetMetadata.assetFile[0].videoTracks[0].metadata.find(function(b){return"rotate"===b.key});m.isVerticalVideo=u,u?console.log(parseInt(s),"x",parseInt(p),"rotation"):(console.log(parseInt(s),"x",parseInt(p),"no rotation"),parseInt(s)>parseInt(p)&&(m.isVerticalVideo=!0))}catch{console.log("ERROR META ROTATION"),console.log(o)}}),m.videoUrl=m.getVideoUrl(m.fileid)})}}]}),app.controller("apicodoMediaPlayDialog",["$scope","videoId",function(e,t){e.working=!1,e.error=!1,e.videoid=t}]),app.controller("apicodoMediaPlayPageController",["$scope","$stateParams","$location",function(e,t,a){e.videoid=t.id}]),app.factory("apicodoMediaService",["$rootScope","$http","$q","authService",function(e,t,a,n){var l=scope.globalSettings.configurations.apicodoMediaBaseUrl,c=function(){var r=a.defer();return e.apicodoMediaConnectionData&&e.apicodoMediaConnectionData.expiresOn>Date.now()?r.resolve(e.apicodoMediaConnectionData):t.get(scope.apiEndpoint+"media/token").then(function(i){var m=i.data;console.log(e.apicodoMediaConnectionData),e.apicodoMediaConnectionData=i.data,e.apicodoMediaConnectionData.isInitialized=!0,e.apicodoMediaConnectionData.expiresOn=new Date(Date.now()+36e5),r.resolve(m)},function(){r.reject()}),r.promise};return{apicodoMediaUrl:scope.globalSettings.configurations.apicodoMediaBaseUrl,getConnectionData:c,getVideoData:function(r){console.log("Video id: "+r);var i=a.defer();return c().then(function(m){t.get(l+"/api/Thumbnail/GetWebFrontendData?fileId="+r,{headers:{Authorization:"Bearer "+m.token}}).then(function(o){i.resolve(o.data)},function(){i.reject()})}),i.promise}}}]),app.component("collapsableMenu",{templateUrl:"/ClientApp/src/legacy-app/menu/collapsableMenu.html",bindings:{menuitems:"<"},controller:["$element","$timeout",function(e,t){}]}),app.directive("menuTarget",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var l=n.href;(!l.match("https?://(.*/)?"+location.hostname+".*")&&!l.startsWith("/")||-1!==l.indexOf("/pdf/")||-1!==l.indexOf("/document/")||-1!==l.indexOf("/file/"))&&a.attr("target","_blank")}}}]),app.factory("notificationService",["$http","$q","$rootScope",function(e,t,a){var n={unseenCount:0},l=null,c=null,h=function(b){if(c)c.finally(function(){h(!0)});else{b&&(l=null,n.unseenCount=0);var y=t.defer();e.get(scope.apiEndpoint+"notifications/unseenCount?date="+l,{ignoreLoadingBar:!0}).then(function(f){l||(n.unseenCount=0),n.unseenCount=f.data.unseenCount,l=f.data.date,f.data.unseenCount>0&&a.$emit("notificationUnseenCountChanged"),a.app&&cordova.plugins.notification.badge.set(n.unseenCount),y.resolve(f.data)},function(){y.reject()}).finally(function(){c=null}),c=y.promise}return c};return n.getNotifications=function(){var b=t.defer();return e.get(scope.apiEndpoint+"notifications",{ignoreLoadingBar:!0}).then(function(y){b.resolve(y.data)},function(){b.reject()}),b.promise},n.updateUnseenCount=function(){var b=t.defer();return e.put(scope.apiEndpoint+"notifications/unseenCount").then(function(y){n.unseenCount=0,a.app&&cordova.plugins.notification.badge.set(0),b.resolve(y.data)},function(){b.reject()}),b.promise},n.update=h,n.updateToken=function(b){var y=t.defer();return e.post(scope.apiEndpoint+"Notifications/Token",b).then(function(){y.resolve()},function(){y.reject()}),y.promise},n.getNotificationGroups=function(b){var y=t.defer();return e.get(scope.apiEndpoint+"Notifications/Groups/"+b).then(function(f){y.resolve(f.data)},function(){y.reject()}),y.promise},n.updateNotificationGroups=function(b,y){var f=t.defer();return e.post(scope.apiEndpoint+"Notifications/Groups",{notificationGroups:b,privateUserGuid:y}).then(function(){f.resolve()},function(){f.reject()}),f.promise},n.click=function(b){var y=t.defer();return e.get(scope.apiEndpoint+"notifications/"+b.id+"/Click").then(function(){b.clicked=new Date,y.resolve()},function(){y.reject()}),y.promise},n.getNotifiedUsersCount=function(){var b=t.defer();return e.get(scope.apiEndpoint+"notifications/NotifiedUserCount").then(function(y){b.resolve(y.data)},function(){b.reject()}),b.promise},n.getUserEmail=function(b){var y=t.defer();return e.get(scope.apiEndpoint+"Notifications/"+b+"/email").then(function(f){y.resolve(f.data)},function(){y.reject()}),y.promise},n}]),app.controller("NotificationSettingsController",["$rootScope","$scope","notificationService","$stateParams","$timeout","$location",function(e,t,a,n,l,c){t.working=!1,t.success=!1,t.error=!1;var h=!0;e.profile.isAdmin||e.profile.isNetworkAdmin||(h=!1,e.profile.chapterRoles&&e.profile.chapterRoles.forEach(i=>{i>2&&(h=!0)}));var r=n.privateUserGuid||null;a.getNotificationGroups(r).then(function(i){if(!h)for(let d=0;d<i.length;d++)1001==i[d].order&&i.splice(d,1);if(t.notificationGroups=i,c.search().optOutAll){for(var m=0;m<t.notificationGroups.length;m++)6===t.notificationGroups[m].order&&e.scope.currentScope.chapter.settings.featureBreakingNewsToAll||(t.notificationGroups[m].enabled=!1);t.working=!0,a.updateNotificationGroups(t.notificationGroups,r).then(function(){l(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0})}}),a.getUserEmail(r).then(function(i){t.userEmail=i}),t.toggleNotificationGroup=function(i){i.enabled=!i.enabled,t.success=!1,t.working=!0,a.updateNotificationGroups(t.notificationGroups,n.privateUserGuid).then(function(){l(function(){t.working=!1,t.success=!0},2e3)},function(){t.error=!0,i.enabled=!i.enabled})}}]),app.directive("articleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,l,c){var h=n.$eval(c.articleImpression),r=n.$eval(c.searchGuid),m=Oculus.trackArticleImpression(l,{ia:h.id,iar:h.revisionId,iav:h.variantId,c:h.chapterSlug,n:t.scope.currentScope.network.slug,seg:r});m.persistent=e.includes("app.root"),l.on("click",function(){m.click(),a.clickArticle(m.guid,h.id)})}}}]),app.directive("articleReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var l=$(a).children().map(function(){for(var r=$(this),i=r;i.length;){if(i.parent().hasClass("allow-float"))return i[0];i=(r=i).children()}return this}),c=e.scope.currentScope.network,h=t.$eval(n.articleReading);Oculus.trackArticleReading(l,{ia:h.id,iar:h.revisionId,iav:h.variantId,c:h.chapterSlug,n:c.slug})}}}]),app.directive("marketResearchQuestion",["$timeout","$state","$rootScope",function(e,t,a){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/marketResearchQuestion.html",scope:{marketResearch:"=",article:"=",question:"=",nextQuestion:"="},link:function(n,l){var c=a.scope.currentScope.network;n.isInView=!1,n.oculus=Oculus.trackMarketResearch(l.children().first(),{mq:n.question.id,ia:n.article?n.article.id:null,iar:n.article?n.article.revisionId:null,iav:n.article?n.article.variantId:null,c:n.marketResearch.chapterSlug,n:c.slug}),n.oculus.persistent=t.includes("app.root"),n.answering=function(h){n.oculus.bundle.ma=h,n.oculus.push(),n.oculus.stop(0),n.nextQuestion()}}}}]),app.directive("marketResearchShipment",[function(){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/marketResearchShipment.html",scope:{marketResearch:"=",article:"="},link:function(e){e.actQuestionIndex=0,e.actQuestion=e.marketResearch.questions[e.actQuestionIndex],e.actQuestion.isVisible=!0,e.nextQuestion=function(){e.actQuestion.nextQuestionId?(e.actQuestion.isVisible=!1,e.actQuestionIndex++,e.actQuestion=e.marketResearch.questions[e.actQuestionIndex],e.actQuestion.isVisible=!0):(e.actQuestion.isVisible=!1,e.answered=!0)}}}}]),app.directive("oculusContainer",[function(){return{restrict:"A",link:function(e,t,a){Oculus.addScrollContainer(t)}}}]),app.directive("searchImpression",["$state","$rootScope",function(e){return{restrict:"A",scope:{query:"<searchQuery",guid:"=searchGuid"},link:function(t,a){t.$watch(function(){return t.query},function(n){if(n){var l=Oculus.trackSearch(a,{q:n});t.guid=l.guid,l.persistent=e.includes("app.root")}})}}}]),app.directive("delivery",["shipmentService","profileService","localStorageService","$rootScope","$timeout","$state","redirectService","clickService",function(e,t,a,n,l,c,h,r){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/shipment.html",scope:!0,link:function(i,m,d){var o=i.$eval(d.article),s=o?o.id:void 0;t.getProfile().then(function(p){e.getShipment(s).then(function(u){i.shipment=u;var b=n.scope.globalSettings.blobStorageCdnUrl,y=n.scope.globalSettings.blobStorageContainerNameShipment;i.imageUrl="",u.pin&&(i.imageUrl=b+"/"+y+"/"+u.pin+"?preset=shipment"),u.uri&&(i.inSameChapter=h.isSameChapterUrl(u.uri),i.uriIsDocument=-1!==u.uri.indexOf("/pdf/")||-1!==u.uri.indexOf("/document/")||-1!==u.uri.indexOf("/file/"));var f=angular.copy(i.scope.oculus),R=n.scope.currentScope.network;f.impressionThreshold=f.shipmentImpressionThreshold,f.impressionViewportThreshold=f.shipmentImpressionViewportThreshold,1===u.articleDetailDisplayableType&&l(function(){u.oculus=Oculus.trackBanner(m.children().first(),{c:u.chapterSlug,n:R.slug,ia:o?o.id:null,iar:o?o.revisionId:null,iav:o?o.variantId:null,ibc:u.bannerCampaignId,ib:u.bannerId}),u.oculus.persistent=c.includes("app.root")}),i.clickBanner=function(){i.shipment.oculus.click(),r.clickBannerPost(i.shipment.oculus.guid,i.shipment.pin)}})})}}}]),app.component("deliveryPremium",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentPremium.html",bindings:{shipment:"="},controller:["$interpolate","$scope","shipmentService","profileService","localStorageService","scopeService","$timeout","$element","$state","$rootScope","redirectService","clickService",function(e,t,a,n,l,c,h,r,i,m,d,o){var s=this,p=c.getGlobalSettings().blobStorageCdnUrl,u=c.getGlobalSettings().blobStorageContainerNameShipment;s.web_shipment_premium_title=e(scope.currentScope.network.resources.web_shipment_premium_title)({chapterName:scope.currentScope.chapter.name}),this.$onInit=function(){if(s.shipment){s.imageUrl="",s.shipment.pin&&(s.imageUrl=p+"/"+u+"/"+s.shipment.pin+(s.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),s.shipment.uri&&(s.inSameChapter=d.isSameChapterUrl(s.shipment.uri),s.uriIsDocument=-1!==s.shipment.uri.indexOf("/pdf/")||-1!==s.shipment.uri.indexOf("/document/")||-1!==s.shipment.uri.indexOf("/file/"));var b=m.scope.currentScope.network,y=angular.copy(m.scope.oculus);y.impressionThreshold=y.shipmentImpressionThreshold,y.impressionViewportThreshold=y.shipmentImpressionViewportThreshold,s.shipment.oculus=Oculus.trackPremiumBanner(r.find(".shipmentPremium-image-wrapper"),{c:s.shipment.chapterSlug,n:b.slug,ip:s.shipment.premiumId,ipb:s.shipment.premiumBannerId}),s.clickBanner=function(){s.shipment.oculus.click(),o.clickPremiumPost(s.shipment.oculus.guid,s.shipment.pin)},s.shipment.oculus.persistent=i.includes("app.root")}}}]}),app.component("deliverySuper",{templateUrl:"/ClientApp/src/legacy-app/oculus/shipmentSuper.html",bindings:{shipment:"<"},controller:["scopeService","$element","$state","$rootScope","$timeout","redirectService","clickService",function(e,t,a,n,l,c,h){var r=this,i=e.getGlobalSettings().blobStorageCdnUrl,m=e.getGlobalSettings().blobStorageContainerNameShipment;this.$onInit=function(){if(r.shipment){r.imageUrl="",r.shipment.pin&&(r.imageUrl=i+"/"+m+"/"+r.shipment.pin+(r.shipment.mobile?"?preset=premium-shipment-xs":"?preset=premium-shipment")),r.shipment.uri&&(r.inSameChapter=c.isSameChapterUrl(r.shipment.uri),r.uriIsDocument=-1!==r.shipment.uri.indexOf("/pdf/")||-1!==r.shipment.uri.indexOf("/document/")||-1!==r.shipment.uri.indexOf("/file/"));var d=n.scope.currentScope.network,o=angular.copy(n.scope.oculus);o.impressionThreshold=o.shipmentImpressionThreshold,o.impressionViewportThreshold=o.shipmentImpressionViewportThreshold,r.shipment.oculus=Oculus.trackSuperBanner(t.find(".shipmentSuper-image-wrapper"),{c:r.shipment.chapterSlug,n:d.slug,isu:r.shipment.superCampaignId,isub:r.shipment.superBannerId}),r.clickBanner=function(){r.shipment.oculus.click(),h.clickSuperPost(r.shipment.oculus.guid,r.shipment.pin)},r.shipment.oculus.persistent=a.includes("app.root")}}}]}),app.directive("snipImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,l,c){var h=n.$eval(c.snipImpression),r=n.$eval(c.searchGuid),m=Oculus.trackSnipImpression(l,{is:h.id,isr:h.revisionId,seg:r,c:h.chapterSlug,n:t.scope.currentScope.network.slug});m.persistent=e.includes("app.root"),l.on("click",function(){m.click(),a.clickSnip(m.guid,h.id)})}}}]),app.directive("snipReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var l=$(a).children().map(function(){for(var r=$(this),i=r;i.length;){if(i.parent().hasClass("allow-float"))return i[0];i=(r=i).children()}return this}),c=e.scope.currentScope.network,h=t.$eval(n.snipReading);Oculus.trackSnipReading(l,{is:h.id,isr:h.revisionId,c:h.chapterSlug,n:c.slug})}}}]),app.directive("sparticleImpression",["$state","$rootScope","clickService",function(e,t,a){return{restrict:"A",link:function(n,l,c){var h=n.$eval(c.sparticleImpression),r=n.$eval(c.sparticleImpressionArticle),i=t.scope.currentScope.network,m=n.$eval(c.searchGuid),d=Oculus.trackSponsoredArticleImpression(l,{isac:h.sponsoredArticleCampaignId,isa:h.id,isar:h.revisionId,isav:h.variantId,c:h.chapterSlug,n:i.slug,seg:m,iar:r?r.revisionId:null,iav:r?r.variantId:null});d.persistent=e.includes("app.root"),l.on("click",function(){d.click(),a.clickSponsoredArticle(d.guid,h.sponsoredArticleCampaignId)})}}}]),app.directive("sparticleReading",["$rootScope",function(e){return{restrict:"A",link:function(t,a,n){var l=$(a).children().map(function(){for(var r=$(this),i=r;i.length;){if(i.parent().hasClass("allow-float"))return i[0];i=(r=i).children()}return this}),c=e.scope.currentScope.network,h=t.$eval(n.sparticleReading);Oculus.trackSponsoredArticleReading(l,{isa:h.id,isac:h.sponsoredArticleCampaignId,isar:h.revisionId,isav:h.variantId,c:h.chapterSlug,n:c.slug})}}}]),app.directive("specialImpression",["$state","$rootScope",function(e,t){return{restrict:"A",link:function(a,n,l){var c=a.$eval(l.specialImpression),h=t.scope.currentScope.network,r=a.$eval(l.article);Oculus.trackSpecialImpression(n,{isp:c.id,c:c.chapterSlug,n:h.slug,ia:r?r.id:null,iar:r?r.revisionId:null,iav:r?r.variantId:null}).persistent=e.includes("app.root")}}}]),app.directive("specialItemImpression",["$rootScope","redirectService","clickService",function(e,t,a){return{restrict:"A",link:function(n,l,c){var h=n.$eval(c.specialItemImpression),r=e.scope.currentScope.chapter,i=e.scope.currentScope.network,m=c.specialItemSpecialViewOculus?n.$eval(c.specialItemSpecialViewOculus):null;n.imageUrl=e.scope.globalSettings.blobStorageCdnUrl+"/"+e.scope.globalSettings.blobStorageContainerNameSpecial+"/"+h.values.image+"?preset=shipment",h.uri&&(n.inSameChapter=t.isSameChapterUrl(h.uri),n.uriIsDocument=-1!==h.uri.indexOf("/pdf/")||-1!==h.uri.indexOf("/document/")||-1!==h.uri.indexOf("/file/")),h.oculus=Oculus.trackSpecialItemImpression(l,{ispi:h.id,c:r.slug,n:i.slug,spg:m?m.guid:null}),h.oculusGuid=h.oculus.guid,n.clickBanner=function(){a.clickSpecialPost(h.oculusGuid,h.id),h.oculus.click()}}}}]),app.directive("survey",["$state","$rootScope","redirectService","clickService",function(e,t,a,n){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/survey.html",scope:{survey:"<",article:"<",preview:"<"},link:function(l,c,h){var r=l.survey;l.actQuestionId=r.firstQuestionId,l.$watch("survey",function(){r=l.survey,l.finalBannerId=null,r.preview=l.preview,r.questionDict={},r.questions.forEach(function(d){r.questionDict[d.id]=d});var i=t.scope.globalSettings.blobStorageCdnUrl,m=t.scope.globalSettings.blobStorageContainerNameShipment;r.bannerDict={},r.banners.forEach(function(d){d.imageUrl="",d.pin&&(d.imageUrl=i+"/"+m+"/"+d.pin+"?preset=shipment"),d.uri&&(d.inSameChapter=a.isSameChapterUrl(d.uri),d.uriIsDocument=-1!==d.uri.indexOf("/pdf/")||-1!==d.uri.indexOf("/document/")||-1!==d.uri.indexOf("/file/")),r.bannerDict[d.id]=d}),r.answers.forEach(function(d){null!==d.finalBannerId&&(d.finalBanner=r.bannerDict[d.finalBannerId]),null===r.questionDict[d.questionId].answers&&(r.questionDict[d.questionId].answers={}),r.questionDict[d.questionId].answers[d.id]=d}),l.actQuestion=r.questionDict[l.actQuestionId]}),l.processAnswer=function(i){if(i.nextQuestionId)l.actQuestionId=i.nextQuestionId,l.actQuestion=r.questionDict[l.actQuestionId];else if(l.actQuestionId=null,i.finalBannerId){l.finalBannerId=i.finalBannerId;var m=r.bannerDict[l.finalBannerId],d=$(c).find(".survey-banner-wrapper-"+l.finalBannerId);r.preview||(l.oculus=Oculus.trackSurveyBannerImpression(d,{sv:r.id,sb:l.finalBannerId,ia:l.article?l.article.id:null,iar:l.article?l.article.revisionId:null,iav:l.article?l.article.variantId:null}),l.oculus.persistent=e.includes("app.root"),l.oculus.impressionThreshold=0,l.clickBanner=function(){console.log("clickSurveyBanner",l.oculus.guid,l.finalBannerId,r.id),n.clickSurveyBannerPost(l.oculus.guid,m.guid),l.oculus.click()},l.oculus.push())}}}}}]),app.directive("surveyQuestion",["$state","shipmentService",function(e,t){return{restrict:"E",templateUrl:"/ClientApp/src/legacy-app/oculus/surveyQuestion.html",scope:{survey:"<",article:"<",question:"<",processAnswer:"<"},link:function(a,n){a.isInView=!1,a.$watch("survey",function(){a.answerArray=Object.keys(a.question.answers).map(function(l){return a.question.answers[l]}),a.fixedAnswers=a.answerArray.filter(function(l){return!l.isFreeTextAnswer}),a.freeTextAnswers=a.answerArray.filter(function(l){return l.isFreeTextAnswer})}),a.survey.preview||(a.oculus=Oculus.trackSurveyImpression(n.children().first(),{sv:a.survey.id,sq:a.question.id,ia:a.article?a.article.id:null,iar:a.article?a.article.revisionId:null,iav:a.article?a.article.variantId:null}),a.oculus.persistent=e.includes("app.root"),a.survey.firstQuestionId!==a.question.id&&(a.oculus.impressionThreshold=0)),a.answerQuestion=function(l,c){if(!a.survey.preview){if(a.question.answers[l].isFreeTextAnswer){if(!c||c.match(/^\s*$/))return;a.oculus.bundle.sft=c}a.oculus.bundle.sa=l,a.oculus.ignoreImpressionThreshold=!0,a.oculus.push(),a.oculus.stop(0),t.clickSurvey(a.survey.id)}a.processAnswer(a.question.answers[l])}}}}]),app.controller("OptOutController",["$rootScope","$scope","localStorageService",function(e,t,a){t.oculusOptOut=a.oculusOptOut,t.toggleOptOut=function(){t.oculusOptOut=!t.oculusOptOut,t.oculusOptOut?a.oculusOptOut=!0:delete a.oculusOptOut}}]),app.controller("PremiumElasticReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var d,o,s,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],m=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var p=function(f){var R=0,S=0,v=0,w=0,g=0,x=0;$.each(f,function(F,D){R+=D.desktopImpressionCount,S+=D.tabletImpressionCount,v+=D.mobileImpressionCount,w+=D.clickCount,g+=D.impressionTime,x+=D.impressionCount}),e.$apply(function(){e.totalClickCount=w,e.totalImpressionTime=g,e.totalImpressionCount=x}),i[0].value=Math.round(100/(x/R)),i[1].value=Math.round(100/(x/v)),i[2].value=Math.round(100/(x/S)),d.validateData()},u=function(){var f=moment(o.startDate).startOf("day").toDate(),R=moment(o.endDate).startOf("day").toDate(),S=e.report.filter(function(v){return v.day>=f&&v.day<=R});p(S),s.zoom(f,moment(R).add(1,"d").toDate()),e.$apply(function(){e.startDay=f,e.endDay=R})},y=function(){var f=e.premium.premiumBanners.filter(function(S){return!S.filtered}).map(function(S){return S.id}),R=e.chapters.filter(function(S){return!S.filtered}).map(function(S){return S.id});e.filterDisabled=!0,a.getPremiumReport(e.premium.pin,{premiumId:e.premium.id,premiumbannerIds:f,chapterIds:R}).then(function(S){S.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=S,c(function(){(function(f){m.length=0,$.each(f,function(R,S){m.push(S)}),o.validateData(),s.validateData()})(S),u(),e.filterDisabled=!1},50)})};e.filterChapter=function(f){f.filtered=!f.filtered,y()},e.chapterFilterDisabled=function(f){return e.filterDisabled||1===e.chapters.filter(function(R){return!R.filtered}).length&&!f.filtered},e.filterBanner=function(f){e.filterDisabled||1===e.premium.premiumBanners.filter(function(R){return!R.filtered}).length&&!f.filtered||(f.filtered=!f.filtered,y())},a.getPremiumByPin(l.pin).then(function(f){e.premium=f,a.getPremiumReport(f.pin,{premiumId:f.id}).then(function(R){R.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=R,e.startDay=R[0].day,e.endDay=R[R.length-1].day;var S=[];$.each(f.chapterSlugs,function(v,w){S.push(n.getChapter(w))}),S=S.filter(function(v){return 2===v.managementState}),e.chapters=S,$.each(R,function(v,w){m.push(w)}),c(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:m,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:m,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p(R)})},function(){e.error=!0})})}]),app.controller("premiumReportController",["$scope","$rootScope","premiumService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getPremiumByPin(l.pin).then(function(s){e.premium=s,a.getReportPremiumBannerCalendar(s.pin).then(function(p){p.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.reports.forEach(function(b){b.calendar.forEach(function(y){y.start=moment(y.start.replace("Z","")).toDate(),y.end=moment(y.end.replace("Z","")).toDate()})})}),s.report=p,h(function(){var u,b,y,f,R,S=new Set;$.each(p,function(D,I){I.active=!0,S.add(I.chapter.name)}),p.uniqueChapters=[],S.forEach(function(D){p.uniqueChapters.push(D)}),$.each(s.premiumBanners,function(D,I){I.reportActive=!0});var v=[],w=function(){v.length=0,$.each(p[0].reports[0].calendar,function(D,I){v.push({start:I.start,end:I.end,impressions:0,viewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(p,function(D,I){I.active&&(p[D-1]&&2===p[D-1].chapter.managementState&&2===I.chapter.managementState&&p[D-1].chapter.name!==I.chapter.name&&(p.multiChapterShipment=!0),$.each(I.reports,function(A,C){if(s.premiumBanners[A].reportActive){var U=C.premiumBanner.pin;$.each(C.calendar,function(k,T){T.pin=U,v[k].impressions+=T.impressions,v[k].viewableImpressions+=T.viewableImpressions,v[k].viewableImpressionTimeSeconds+=T.viewableImpressionTimeSeconds,v[k].desktopViewableImpressions+=T.desktopViewableImpressions,v[k].mobileViewableImpressions+=T.mobileViewableImpressions,v[k].tabletViewableImpressions+=T.tabletViewableImpressions,v[k].clicks+=T.clicks,v[k].maleViewableImpressions+=T.maleViewableImpressions,v[k].femaleViewableImpressions+=T.femaleViewableImpressions,v[k].age1617MaleViewableImpressions+=T.age1617MaleViewableImpressions,v[k].age1824MaleViewableImpressions+=T.age1824MaleViewableImpressions,v[k].age2534MaleViewableImpressions+=T.age2534MaleViewableImpressions,v[k].age3544MaleViewableImpressions+=T.age3544MaleViewableImpressions,v[k].age4554MaleViewableImpressions+=T.age4554MaleViewableImpressions,v[k].age55MaleViewableImpressions+=T.age55MaleViewableImpressions,v[k].age1617FemaleViewableImpressions+=T.age1617FemaleViewableImpressions,v[k].age1824FemaleViewableImpressions+=T.age1824FemaleViewableImpressions,v[k].age2534FemaleViewableImpressions+=T.age2534FemaleViewableImpressions,v[k].age3544FemaleViewableImpressions+=T.age3544FemaleViewableImpressions,v[k].age4554FemaleViewableImpressions+=T.age4554FemaleViewableImpressions,v[k].age55FemaleViewableImpressions+=T.age55FemaleViewableImpressions})}}))}),b.validateData(),u.validateData()},g=p.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),y=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),f=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(D,I){return-1*D.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(D){return D<0?-1*D+"":D+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),R=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var D=moment(u.startDate).startOf("day").toDate(),I=moment(u.endDate).startOf("day").add(-1,"d").toDate();(function(D,I){g.maleViewableImpressions=0,g.femaleViewableImpressions=0,g.viewableImpressions=0,g.viewableImpressionTimeSeconds=0,g.impressions=0,g.clicks=0,g.desktopViewableImpressions=0,g.mobileViewableImpressions=0,g.tabletViewableImpressions=0,g.age1617MaleViewableImpressions=0,g.age1824MaleViewableImpressions=0,g.age2534MaleViewableImpressions=0,g.age3544MaleViewableImpressions=0,g.age4554MaleViewableImpressions=0,g.age55MaleViewableImpressions=0,g.age1617FemaleViewableImpressions=0,g.age1824FemaleViewableImpressions=0,g.age2534FemaleViewableImpressions=0,g.age3544FemaleViewableImpressions=0,g.age4554FemaleViewableImpressions=0,g.age55FemaleViewableImpressions=0;var A=0,C=0,U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0;g.start=D,g.end=I,$.each(v,function(Y,B){var z=new Date(B.start);z<D||z>I||(g.maleViewableImpressions+=B.maleViewableImpressions,g.femaleViewableImpressions+=B.femaleViewableImpressions,g.viewableImpressions+=B.viewableImpressions,g.viewableImpressionTimeSeconds+=B.viewableImpressionTimeSeconds,g.impressions+=B.impressions,g.clicks+=B.clicks,A+=B.desktopViewableImpressions,C+=B.mobileViewableImpressions,U+=B.tabletViewableImpressions,k+=B.age1617MaleViewableImpressions,T+=B.age1824MaleViewableImpressions,V+=B.age2534MaleViewableImpressions,M+=B.age3544MaleViewableImpressions,_+=B.age4554MaleViewableImpressions,O+=B.age55MaleViewableImpressions,q+=B.age1617FemaleViewableImpressions,P+=B.age1824FemaleViewableImpressions,E+=B.age2534FemaleViewableImpressions,N+=B.age3544FemaleViewableImpressions,j+=B.age4554FemaleViewableImpressions,W+=B.age55FemaleViewableImpressions)}),g.desktopViewableImpressions=Math.round(100/(g.viewableImpressions/A)),g.mobileViewableImpressions=Math.round(100/(g.viewableImpressions/C)),g.tabletViewableImpressions=Math.round(100/(g.viewableImpressions/U));var K=g.viewableImpressions-(k+T+V+M+_+O+q+P+E+N+j+W);K>100&&(k+=K*t.scope.globalSettings.reportAverageAge1617Male,T+=K*t.scope.globalSettings.reportAverageAge1824Male,V+=K*t.scope.globalSettings.reportAverageAge2534Male,M+=K*t.scope.globalSettings.reportAverageAge3544Male,_+=K*t.scope.globalSettings.reportAverageAge4554Male,O+=K*t.scope.globalSettings.reportAverageAge55Male,q+=K*t.scope.globalSettings.reportAverageAge1617Female,P+=K*t.scope.globalSettings.reportAverageAge1824Female,E+=K*t.scope.globalSettings.reportAverageAge2534Female,N+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),g.age1617MaleViewableImpressions=Math.round(100/(g.viewableImpressions/k)),g.age1824MaleViewableImpressions=Math.round(100/(g.viewableImpressions/T)),g.age2534MaleViewableImpressions=Math.round(100/(g.viewableImpressions/V)),g.age3544MaleViewableImpressions=Math.round(100/(g.viewableImpressions/M)),g.age4554MaleViewableImpressions=Math.round(100/(g.viewableImpressions/_)),g.age55MaleViewableImpressions=Math.round(100/(g.viewableImpressions/O)),g.age1617FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/q)),g.age1824FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/P)),g.age2534FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/E)),g.age3544FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/N)),g.age4554FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/j)),g.age55FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/W)),g.maleViewableImpressions=Math.round(g.maleViewableImpressions),g.femaleViewableImpressions=Math.round(g.femaleViewableImpressions),m[0].value=g.femaleViewableImpressions,m[1].value=g.maleViewableImpressions,d[0].male=Math.round(-1*g.age1617MaleViewableImpressions),d[1].male=Math.round(-1*g.age1824MaleViewableImpressions),d[2].male=Math.round(-1*g.age2534MaleViewableImpressions),d[3].male=Math.round(-1*g.age3544MaleViewableImpressions),d[4].male=Math.round(-1*g.age4554MaleViewableImpressions),d[5].male=Math.round(-1*g.age55MaleViewableImpressions),d[0].female=Math.round(g.age1617FemaleViewableImpressions),d[1].female=Math.round(g.age1824FemaleViewableImpressions),d[2].female=Math.round(g.age2534FemaleViewableImpressions),d[3].female=Math.round(g.age3544FemaleViewableImpressions),d[4].female=Math.round(g.age4554FemaleViewableImpressions),d[5].female=Math.round(g.age55FemaleViewableImpressions),o[0].value=g.desktopViewableImpressions,o[1].value=g.mobileViewableImpressions,o[2].value=g.tabletViewableImpressions,y.validateData(),f.validateData(),R.validateData(),e.$apply()})(D,I),b.zoom(D,moment(I).add(1,"d").toDate())};u.addListener("zoomed",function(D){F()}),e.toggleReport=function(D){$.each(s.premiumBanners,function(I,A){A.pin===D.pin&&(A.reportActive=!A.reportActive)}),h(function(){w(),F()},50)},e.toggleChapter=function(D){$.each(p,function(I,A){A.chapter.name===D&&(A.active=!A.active)}),h(function(){w(),F()},50)},w(),b.validateData(),u.validateNow(),u.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")});var m=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("premiumService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,l,c){var h=[],m=function(){var s=t.defer();return h.length>0?s.resolve(h):e.get(scope.apiEndpoint+"premiums").then(function(p){angular.copy(p.data,h),s.resolve(h)},function(){s.reject()}),s.promise};function d(s){var p=null;return $.each(h,function(u,b){if(b.pin===s)return p=b,!1}),p}return{premiums:h,getPremiums:m,getReportPremiumBannerCalendar:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"premiums/"+s+"/ReportPremiumBannerCalendar").then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},getPremiumReport:function(s,p){var u=t.defer();return e.post(scope.apiEndpoint+"premiums/"+s+"/report",p).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getPremiumByPin:function(s){var p=t.defer();if(h.length>0){var u=d(s);u?p.resolve(u):e.get(scope.apiEndpoint+"/premiums"+s).then(function(b){p.resolve(b.data)},function(){p.reject()})}else m().then(function(){var b=d(s);b?p.resolve(b):e.get(scope.apiEndpoint+"premiums/"+s).then(function(y){p.resolve(y.data)},function(){p.reject()})},function(){p.reject()});return p.promise}}}]),app.controller("AddMetaInfoDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;function n(l,c){this.tagValue=l,this.displayName=c}e.availableMetaTags=[new n("person","Personen"),new n("location","Stadt"),new n("event","Veranstaltung")],this.cancel=function(){e.$dismiss()},this.addMetaInfo=function(l){l&&e.selectedMetaTag.tagValue&&(t(e.selectedMetaTag.tagValue),a.cancel())}}]),app.controller("CreateCallToActionDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;this.cancel=function(){e.$dismiss()},this.createCallToAction=function(n){n&&(t({href:e.linkUrl,description:e.linkDescription}),a.cancel())}}]),app.controller("CreateEditorCommentDialogController",["$scope","editorCommentCallback","sourceService","messageHolder",function(e,t,a,n){var l=this;e.messageText=null,this.cancel=function(){e.$dismiss()},this.saveComment=function(){a.save({messageText:e.messageText,holderId:n.id,parentId:null}).then(function(c){t(c.guid),l.cancel()})}}]),app.controller("CreateLinkDialogController",["$scope","onSuccessfulCallback",function(e,t){var a=this;this.cancel=function(){e.$dismiss()},this.createLink=function(n){n&&(t({href:e.linkUrl,title:""}),a.cancel())}}]),app.service("editorAssetsService",["$filter","$sce","$q","workflowService",function(e,t,a,n){var l=this;function c(i){this.name=i.firstName+" "+i.lastName,this.profileURL=i.avatarImageUrl||"",this.avatarURL=i.avatarImageUrl+"?preset=article-detail-badge"}function h(i){this.guid=i.guid||"",this.imgContent=i.imgContent||"",this.textContent=i.textContent||"",this.videoThumbnail=i.videoThumbnail||"",this.type=i.type||0,this.author=i.author||new c}return this.url=scope.apiEndpoint+"editorAssets",this.getImageContent=function(i){var m=null;return i.assetImage&&(m=i.assetImage.assetImageUrl+"?maxheight=50"),i.assetArticle&&(m=i.assetArticle.coverAssetImageUrl+"?maxheight=50"),i.assetFile&&(m=i.assetFile.fileName),m},this.getTextContent=function(i){var m=null;return i.assetText&&(m=i.assetText.text),i.assetFile&&(m=i.assetFile.text),m},this.getAssetType=function(i){var m=null;return i.assetImage&&(m=i.assetImage.type),i.assetText&&(m=i.assetText.type),i.assetArticle&&(m=i.assetArticle.type),i.assetFile&&(m=i.assetFile.type),m},this.getUser=function(i){var m=null;return i.assetImage&&(m=i.assetImage.user),i.assetText&&(m=i.assetText.user),i.assetArticle&&(m=i.assetArticle.user),i.assetFile&&(m=i.assetFile.user),m},this.getThumbnail=function(i){var m=null;return i.assetText&&(m=i.thumbnailUrl),m},{getAsset:function(i,m){var o=m.filter(function(f){return f.guid===i})[0];if(o.assetText){var s=null,p=o.assetText.type;if(5===p)s=e("youtubeImage")(o.assetText.text);else if(6===p)s=e("facebookImage")(o.assetText.text);else if(7===p)s=e("vimeoImage")(o.assetText.text);else if(13===p)s=e("apicodoMediaServiceImage")(o.assetText.text);else if(14===p){var u=a.defer();return n.getWorkflowTemplate(o.assetText.text).then(function(f){if(o){var R=new h({guid:o.guid,imgContent:f.name,textContent:f.description,type:14,author:new c(l.getUser(o))});u.resolve(R)}else u.resolve({guid:i})},function(){u.resolve({guid:i})}),u.promise}if(s){var b=t.valueOf(s);o.thumbnailUrl=b}}return new Promise(function(f,R){f(o?new h({guid:o.guid,imgContent:l.getImageContent(o),textContent:l.getTextContent(o),videoThumbnail:l.getThumbnail(o),type:l.getAssetType(o),author:new c(l.getUser(o))}):{guid:i})})}}}]),app.component("editorCommentItem",{templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/editorCommentItem.html",bindings:{authorName:"@",messageText:"@",messageDate:"@",profileImage:"@",enableDelete:"<",onDelete:"&"}}),app.service("editorCommentService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsArticle",{save:function(h){var r=t.defer();return e.put(a.url,h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},getChain:function(h){var r=t.defer();return e.get(a.url+"/chain/"+h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},deleteComment:function(h){var r=t.defer();return e.delete(a.url,{data:h,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise}}}]),app.service("editorCommentSponsoredArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsSponsoredArticle",{save:function(h){var r=t.defer();return e.put(a.url,h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},getChain:function(h){var r=t.defer();return e.get(a.url+"/chain/"+h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},deleteComment:function(h){var r=t.defer();return e.delete(a.url,{data:h,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise}}}]),app.service("editorCommentStaticArticleService",["$http","$q",function(e,t){var a=this;return this.url=scope.apiEndpoint+"editorCommentsStaticArticle",{save:function(h){var r=t.defer();return e.put(a.url,h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},getChain:function(h){var r=t.defer();return e.get(a.url+"/chain/"+h).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise},deleteComment:function(h){var r=t.defer();return e.delete(a.url,{data:h,headers:{"Content-type":"application/json;charset=utf-8"}}).then(function(i){r.resolve(i.data)},function(i){r.reject(i)}),r.promise}}}]),app.controller("ListEditorCommentDialogController",["$scope","onDeletedCallback","onAddedCallback","messageHolder","chainComments","profileService","sourceService",function(e,t,a,n,l,c,h){var r=this;function i(o){this.guid=o.guid,this.contentText=o.contentText,this.displayMessages=[]}e.messageText=null,e.master={holderId:n.id},e.newComment=window.angular.copy(e.master),e.availableParentMessages=[],e.selectedParentMessage=null,this.close=function(){e.$dismiss()},this.saveChildComment=function(o){o.parentId=e.selectedParentMessage.guid,h.save(o).then(function(s){e.selectedParentMessage.displayMessages.push(s),e.availableParentMessages.filter(function(p){return p.guid===e.selectedParentMessage.guid})[0].displayMessages.push(s),r.reset()})},this.deleteComment=function(o){h.deleteComment({holderId:n.id,deleteMessageGuid:o,parentGuid:e.selectedParentMessage.guid}).then(function(p){e.selectedParentMessage.displayMessages=p,t(e.selectedParentMessage.guid,o),e.selectedParentMessage.guid===o&&r.close(),r.reset()})},this.reset=function(){e.newComment=window.angular.copy(e.master),e.deleteComment=null},l.chains.forEach(function(o){var s=new i({guid:o.id,contentText:l.textContents[o.id]});h.getChain(s.guid).then(function(p){s.displayMessages=p,e.availableParentMessages.push(s),e.selectedParentMessage||(e.selectedParentMessage=angular.copy(e.availableParentMessages[0]))})}),c.getProfile().then(function(o){e.myProfile=o})}]),app.service("proseMirrorEditorService",["$window",function(e){var t=this;return this.connection=null,{init:function(i){i||(i={docId:"unknown"}),t.connection=e.initializeEditor({docID:i.docID,assetDlgFactory:i.assetDlgFactory,commentCreationDlgFactory:i.commentCreationDlgFactory,createLinkFactory:i.createLinkFactory,callToActionDlgFactory:i.callToActionDlgFactory,commentMgmtDlgFactory:i.commentMgmtDlgFactory,metadataCreationDlgFactory:i.metadataCreationDlgFactory,initialDocument:i.initialDocument,initialAssetReferences:i.initialAssetReferences,assetResolver:i.assetResolver,onNewStateFactory:i.onNewStateFactory,transformHtmlFactory:function(m){var d=$("<div>").html(m).find("img").remove().end().html();return $("<div>").html(d).find("br").remove().end().html().replace(/<\/word><word/gi,"</word><span>&nbsp;</span><word").replace(/&nbsp\;/gi," ")},onLoadTransactionCallback:i.onLoadTransactionCallback||null,languageCode:i.languageCode}),e.editorConnection=t.connection},getDocument:function(){try{return t.connection.exportModel()}catch(i){console.error("getting JSON Document threw an error",i)}},setDocument:function(i){try{t.connection.importModel(i,!0)}catch(m){console.error("loading error with proseMirror",m)}},getHtmlDocument:function(){return t.connection.getDbDoc()},setFocus:function(){t.connection.view.focus()},closeConnection:function(){t.connection.report.success(),t.connection.request.abort()}}}]),app.factory("publishService",["$http","$q","$window","spellingService",function(e,t,a,n){var c=150;return this.checkWords=function(o){if(!o)return 0;var s=n.countWords(o);return s>=c&&s<=750},this.checkSentences=function(o){return o?n.countSentences(o)>=8:0},this.checkParagraphs=function(o){return o?n.countParagraphs(o)>=4:0},this.checkGoogleNewsRecommendation=function(o){return(function(o){if(!o)return 0;var s=n.countParagraphs(o);return s>=4?1:s/4}(o)+function(o){if(!o)return 0;var s=n.countSentences(o);return s>=8?1:s/8}(o)+function(o){if(!o)return 0;var s=n.countWords(o);return s>=c&&s<=750?1:s<c?s/c:750/s}(o))/3},{checkWords:this.checkWords,checkSentences:this.checkSentences,checkParagraphs:this.checkParagraphs,checkGoogleNewsRecommendation:this.checkGoogleNewsRecommendation}}]),app.service("spellingService",[function(){var e=function(l){return"<div>"+l+"</div>"};return{countWords:function(l){var c=e(l);return $(c).find("p:not(:empty)").text().split(/\s+/).filter(function(h){return h}).length},countParagraphs:function(l){var c=e(l);return $(c).find("p:not(:empty)").length},countSentences:function(l){var c=e(l);return $(c).find("p:not(:empty)").text().split(/[!.?]/g).length}}}]),app.service("resourceService",["$http","$q",function(e,t){return{GetResources:function(){var n=t.defer();return e.get(scope.apiEndpoint+"resources").then(function(l){n.resolve(l.data)},function(){n.reject()}),n.promise}}}]),app.controller("RootController",["$scope","$rootScope","instagramService","metaService","$state","$previousState","articleService","snipService","authService","profileService","notificationService","specialService","$location","$interpolate","$timeout","shipmentService","$uibModal","$interval","$filter","$q","pageMetaInfoService","logoService","skipThirdSnipService","translationService","redirectService","localStorageService",function(e,t,a,n,l,c,h,r,i,m,d,o,s,p,u,b,y,f,R,S,v,w,g,x,F,D){if(e.shipmentSnipDistribution=4,e.doWork=!1,e.snip={},e.cookieManager=0,t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration&&!navigator.userAgent.includes("Merkurist_IAB")&&!navigator.userAgent.includes("Apicodo_IAB")&&(e.cookieManager=t.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration.Manager),t.showSnipSlide=-1!=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId,t.showSnipSlide){var I=t.scope.currentScope.chapter.settings.configurations.showSnipsForUserRoleId;"number"==typeof I&&I>0&&(t.showSnipSlide=!!t.scope.profile.chapterRoles&&t.scope.profile.chapterRoles.includes(I))}e.showSnipSlide=t.showSnipSlide,e.getChapterLogoUrl=function(){return w.getChapterLogoUrl()},e.getChapterLogoDarkUrl=function(){return w.getChapterLogoDarkUrl()};var A={scrollPositions:[],elements:{wrapper:$(".root-slides-wrapper"),slider:$(".root-slides"),slides:$(".root-slides-slide")},slideWidth:$(".root-slides-slide").width(),touchstartx:void 0,touchmovex:void 0,movex:void 0,touchstarty:void 0,touchmovey:void 0,movey:void 0,index:0,longTouch:void 0,movingx:!1,movingy:!1,refreshDimensions:function(){var q=$(A.elements.slides.filter(":visible")[A.index]).height();q&&A.elements.wrapper.height(Math.round(q)),A.slideWidth=$(".root-slides-slide").width(),A.elements.slider.css("transform","translate3d(-"+A.index*A.slideWidth+"px,0,0)")},moveTo:function(q,P){P?this.elements.slider.addClass("root-slides-transition"):this.elements.slider.removeClass("root-slides-transition"),A.slideWidth=$(".root-slides-slide").width();var E=this.index;this.index=q,this.scrollPositions[E]=$(window).scrollTop(),A.elements.slider.css("transform","translate3d(-"+A.index*A.slideWidth+"px,0,0)"),E!==A.index&&u(function(){A.refreshDimensions(),A.scrollPositions[A.index]?window.scroll(0,A.scrollPositions[A.index]):window.scroll(0,0),A.updateScrollPositions()},350)},updateScrollPositions:function(){var q=$(window).scrollTop(),P=this.elements.slides.filter(":visible");P.each(function(E,N){if(E!==A.index){var j=q;A.scrollPositions[E]&&(j-=A.scrollPositions[E]),N.style.transform="translate3d(0,"+j+"px,0)"}else $(P[E]).css("transform","translate3d(0,0,0)")})},init:function(){this.bindUIEvents()},bindUIEvents:function(){this.elements.slider.on("touchstart",function(q){A.start(q)}),this.elements.slider.on("touchmove",function(q){A.move(q)}),this.elements.slider.on("touchend",function(q){A.end(q)}),$(window).resize(function(){l.includes("app.root")&&(A.slideWidth=$(".root-slides-slide").width(),A.moveTo(A.index))}),e.$watch(function(){return $(A.elements.slides.filter(":visible")[A.index]).height()},function(){l.includes("app.root")&&u(function(){A.refreshDimensions()},500)})},start:function(q){this.longTouch=!1,setTimeout(function(){A.longTouch=!0},250),this.touchmovex=this.touchstartx=q.originalEvent.touches[0].pageX,this.movex=this.index*this.slideWidth+(this.touchstartx-this.touchmovex),this.touchmovey=this.touchstarty=q.originalEvent.touches[0].pageY,$(".root-slides-transition").removeClass("root-slides-transition")},move:function(q){this.touchmovex=q.originalEvent.touches[0].pageX,this.touchmovey=q.originalEvent.touches[0].pageY,this.movex=this.index*this.slideWidth+(this.touchstartx-this.touchmovex),(this.movingx||!this.movingy)&&(Math.abs(this.touchstartx-this.touchmovex)>Math.abs(this.touchstarty-this.touchmovey)?(this.movingx=!0,this.updateScrollPositions()):this.movingy=!0),!this.movingy&&(this.movex<(this.elements.slides.filter(":visible").length-1)*this.slideWidth&&this.elements.slider.css("transform","translate3d(-"+this.movex+"px,0,0)"),q.preventDefault())},end:function(){if(this.movingx){this.movingx=this.movingy=!1;var q=Math.abs(this.index*this.slideWidth-this.movex),P=this.index;if((q>this.slideWidth/2||q>40&&!1===this.longTouch)&&(this.movex>this.index*this.slideWidth&&this.index<this.elements.slides.filter(":visible").length?P++:this.movex<this.index*this.slideWidth&&this.index>0&&P--),P!==this.index){var E=$(this.elements.slides.filter(":visible")[P]).data("state");E&&l.go(E)}else A.moveTo(P,!0)}else this.movingx=this.movingy=!1}};A.init();var C=null,U=function(){e.premiumShipment||b.getShipmentPremium().then(function(q){e.premiumShipment=q}),l.includes("app.root")?T(h.getArticles,r.getSnips):u(function(){T(h.getArticles,r.getSnips)}),C&&f.cancel(C),l.is("app.root.notifications")?(n.push("Benachrichtigung","Benachrichtigung"),C=f(function(){d.getNotifications().then(function(q){e.notifications=q})},1e4),d.getNotifications().then(function(q){e.notifications=q}),d.updateUnseenCount()):l.is("app.root.menu")?(m.getProfile().then(function(q){e.isJournalist=q.isJournalist,e.isInternalJournalist=q.isMerkuristJournalist,e.isHeadJournalist=q.isHeadJournalist,e.isSales=q.isSales,e.isHeadSales=q.isHeadSales,e.isNewsroomAdmin=q.isNewsroomAdmin}),e.activeSpecials||o.getActiveSpecials().then(function(q){e.activeSpecials=q})):l.is("app.root.snips")&&(e.$broadcast("$$rebind::refreshSnips"),u(function(){var q=document.createEvent("Event");q.initEvent("autosize.update",!0,!1);var P=document.getElementsByClassName("root-newSnip-textbox")[0];P&&P.dispatchEvent(q)})),l.includes("app.root")&&u(function(){var q=$(A.elements.slides).filter(":visible").index($(A.elements.slides).filter(function(){return $(this).data("state")===l.current.name})[0]);A.moveTo(q,e.mobile),t.$emit("lazyImg:refresh"),u(function(){t.$emit("lazyImg:refresh")},350),u(function(){t.$emit("lazyImg:refresh")},500)})};function T(q,P,E){(E||!e.articleListDisplayables||!e.articleListDisplayableSnips)&&S.all([m.getProfile(),q(),P()]).then(function(N){var j=N[0],W=N[1],K=N[2],Y=R("includeMyUnpublishedSnips");e.articleListDisplayableSnips=K,e.articleListDisplayables=function k(q,P){for(var W=[],K=q.slice(),Y=P.slice(),B=1;Y.length>0||K.length>0&&B<7;){for(var z=0;z<4;z++){var Q=Y.shift();Q&&W.push(Q)}for(var G=0;G<3;G++)if(!g.skipSnip(B,G+1)){var L=K.shift();L&&W.push(L)}B++}return W}(Y(K,j.guid),W),e.alreadyLoadedArticleIds=e.articleListDisplayables.filter(function(B){return 1===B.articleListDisplayableType}).map(function(B){return B.id}),e.alreadyLoadedSnipIds=e.articleListDisplayables.filter(function(B){return 4===B.articleListDisplayableType}).map(function(B){return B.id}),e.amountOfArticles=e.articleListDisplayables.filter(function(B){return 4!==B.articleListDisplayableType}).length,e.articleListDisplayablesMore=[],u(function(){h.getArticleIds().then(function(B){e.articleListIds=B,e.loadMoreAvailable=e.articleListDisplayables&&e.alreadyLoadedArticleIds.length<e.articleListIds.length}),e.snipListIds=e.articleListDisplayableSnips.map(function(B){return B.id}),e.loadMorePending=!1,t.$emit("lazyImg:refresh"),u(function(){u(function(){b.resolve(Math.round(K.length/e.shipmentSnipDistribution))}),!e.notifications&&j.isRegistered&&d.getNotifications().then(function(B){e.notifications=B})})})})}e.$on("apicodo.translate",function(q,P){var E=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==E){var N=t.scope.profile,j=t.scope.network.settings.languagePack.split("-")[0];null!=N.activeUserLanguage?.vendorLanguageCode&&j!=N.activeUserLanguage?.vendorLanguageCode&&(P=N.activeUserLanguage?.vendorLanguageCode)}l.is("app.root.snips")?null===P?r.getSnips().then(function(W){e.articleListDisplayableSnips=W,t.$broadcast("$$rebind::refreshSnips")}):r.getTranslatedSnipList(P).then(function(W){e.articleListDisplayableSnips=W,m.updateFavoriteLanguage(P).then(function(){t.profile.favoriteLanguage=P}),t.$broadcast("$$rebind::refreshSnips")}):l.is("app.root")&&(null===P?T(h.getArticles,r.getSnips,!0):(T(function(){return h.getTranslatedArticles(P)},function(){return r.getTranslatedSnipList(P)},!0),m.updateFavoriteLanguage(P).then(function(){t.profile.favoriteLanguage=P})))}),t.$on("$stateChangeStart",function(){l.includes("app.root")&&(A.scrollPositions[A.index]=$(window).scrollTop(),A.index=-1)}),t.$on("$stateChangeSuccess",function(){U(),v.run(l.$current.name)}),U(),t.$on("notificationUnseenCountChanged",function(){e.notifications&&d.getNotifications().then(function(q){e.notifications=q})}),e.menuClicked=function(q){var P=$(q.currentTarget).attr("ui-sref"),E=c.get();if(l.current.name===P&&"app.root.menu"===P&&E&&E.name!==P)return q.preventDefault(),void c.go();e.mobile&&l.current.name===P&&(q.preventDefault(),$("html, body").animate({scrollTop:0}))},e.emailValidationState=0,e.emailValidationStates={none:0,inProgress:1,failure:2,success:3},l.is("app.root.login")&&m.getProfile().then(function(q){!q.isRegistered&&s.search().token?(e.emailValidationState=e.emailValidationStates.inProgress,i.validateEmail(s.search().token).then(function(){u(function(){e.emailValidationState=e.emailValidationStates.success},2e3)},function(){u(function(){e.emailValidationState=e.emailValidationStates.failure},2e3)})):q.isRegistered&&s.search().token?s.path("/settings").replace():q.isRegistered&&l.go("app.root")});var V={userName:"",password:""};e.loginData=angular.copy(V),e.loginError=null,t.$on("authenticationStateChanged",function(){e.loginError=null,angular.copy(V,e.loginData),A.scrollPositions=[]});var M=function(){e.articleListDisplayables=null,e.articleListDisplayableSnips=null,e.notifications=null};t.$on("invalidateLists",function(){M(),U()}),e.login=function(q){q&&i.login(e.loginData).then(function(){M(),e.loginForm.$setPristine(),s.search().closedToken&&scope.currentChapter.closed?l.go("app.closedChapter",{action:"Get",token:s.search().closedToken}):l.go("app.root")},function(P){e.loginError=P.data})},e.saml2ModulePaths=saml2ModulePathSplitted=[],t.scope.network.settings.saml2ModulePath&&(saml2ModulePathSplitted=t.scope.network.settings.saml2ModulePath.split(","),saml2ModulePathSplitted.length>0&&saml2ModulePathSplitted.forEach(q=>{e.saml2ModulePaths.push(q.trim())})),e.loginSaml2=function(q){if(e.saml2ModulePaths.indexOf(q)>=0){var P="/authentication/saml2?authenticationType="+q+"&referrerUri="+encodeURIComponent(window.location.origin+scope.currentScope.appRoute+"login/saml2");if(t.app){var E="location=no,toolbarposition=top,toolbartranslucent=no,hidenavigationbuttons=yes";"android"===cordova.platformId&&(E="location=yes,hideurlbar=yes,zoom=no,hidenavigationbuttons=yes,closebuttoncaption="+scope.currentScope.network.getResourceOrKeyName("web_appCordova_closebuttoncaption"));var N=cordova.InAppBrowser.open(P,"_blank",E);N.addEventListener("loadstart",function(j){j.url.endsWith("login/saml2")&&(N.close(),l.go("app.loginSaml2"))})}else window.location.href=P}},e.privateLogOut=function(){i.logout().then(function(){Oculus.navigate(""),M(),null!==t.scope.currentScope.network.settings.sharedAppLogoutUrl&&(window.location.href=t.scope.currentScope.network.settings.sharedAppLogoutUrl),t.app?window.location.href="/":m.getProfile().then(function(){l.go("app.root.login")})})},e.logout=function(){D.oculusOptOut?e.privateLogOut():Oculus.push(!1,e.privateLogOut)},e.register=function(){l.go("app.register",{closedToken:s.search().closedToken})},e.facebookLogin=function(){i.facebookLogin(t.app).then(function(q){q.token?y.open({templateUrl:"/ClientApp/src/legacy-app/authentication/authenticationDialog.html",controller:"AuthenticationDialog",size:"lg",resolve:{authenticationCallback:function(){return function(){M(),l.go("app.root")}},facebookSignUpData:function(){return q},login:!1}}):s.path("/").search("")})},e.instagramLogin=function(){a.getGrant(t.app)},e.searchQuery="",e.search=function(){l.go("app.search",{action:"Get",q:e.searchQuery}),e.searchQuery=""},e.submitNewSnip=function(){e.snip.chapterGroupSelections&&(e.snip.chapterSlugs=Object.keys(e.snip.chapterGroupSelections).map(function(q){return e.snip.chapterGroupSelections[q]})),e.doWork=!0,r.createSnip(e.snip).then(function(q){e.doWork=!1,e.snip={},e.articleListDisplayableSnips.push(q);var P=scope.currentChapter.path+q.path;s.path(P)},function(){e.doWork=!1,e.error=!0})},e.clickNotification=function(q){d.click(q),q.openSeparate?window.open(q.uri):F.redirectNotificationUrl(q.uri)},e.showInstagram=a.isAvailable(),e.loadMore=function(){e.remainingArticleIds=e.articleListIds.filter(function(q){return e.alreadyLoadedArticleIds.indexOf(q)<0}),e.remainingSnipIds=e.snipListIds.filter(function(q){return e.alreadyLoadedSnipIds.indexOf(q)<0}),e.amountOfArticles=e.articleListDisplayables.filter(function(q){return 4!==q.articleListDisplayableType}).length,e.loadMorePending=!0,S.all([m.getProfile(),h.getArticlesByIds(e.remainingArticleIds.splice(0,e.amountOfArticles))]).then(function(q){var Y,B,G,L,H,J,Z,P=q[0],E=q[1],N=R("includeMyUnpublishedSnips"),W=e.articleListDisplayableSnips.filter(function(Y){return e.remainingSnipIds.indexOf(Y.id)>=0}),K=(Y=N(W,P.guid),B=E,G=[],L=Y.slice(),H=B.slice(),J=function(){for(;H.length>0;){for(var X=0;X<4;X++){var ee=H.shift();ee&&G.push(ee)}for(var te=0;te<3;te++){var ae=L.shift();ae&&G.push(ae)}}},Z=function(){for(;L.length>0||H.length>0;){for(var X=0;X<3;X++){var ee=L.shift();ee&&G.push(ee)}for(var te=0;te<4;te++){var ae=H.shift();ae&&G.push(ae)}}},e.articleListDisplayablesMore.length>0?4===e.articleListDisplayablesMore[e.articleListDisplayablesMore.length-1].articleListDisplayableType?J():Z():4===e.articleListDisplayables[e.articleListDisplayables.length-1].articleListDisplayableType?J():Z(),G);angular.forEach(K,function(Y){e.articleListDisplayablesMore.push(Y),4===Y.articleListDisplayableType?e.alreadyLoadedSnipIds.push(Y.id):e.alreadyLoadedArticleIds.push(Y.id)}),e.articleListDisplayablesMoreShow=!1,e.loadMoreAvailable=e.alreadyLoadedArticleIds.length<e.articleListIds.length,u(function(){e.loadMorePending=!1,e.articleListDisplayablesMoreShow=!0})})},e.allowInternAd=function(q,P){var E=(q+1)%P==0;return 7===q&&t.scope.currentScope.chapter.settings.criteoPublisherId&&(E=!1),E},e.chapterGroupChoose=function(q){return p(scope.currentScope.network.resources.web_root_snip_chapterGroupChoose)({chapterGroupName:q.toUpperCase()})},e.defaultCollapsed=2!==scope.currentChapter.settings.featureMenuContainerCollapsable,e.isAuthorCollapsed=e.defaultCollapsed,e.isAdvertiserCollapsed=e.defaultCollapsed,e.isSpecialsCollapsed=e.defaultCollapsed,e.isSocialCollapsed=e.defaultCollapsed,e.isChapterCollapsed=[];for(var _=0;_<scope.currentScope.chapter.containers.length;_++)e.isChapterCollapsed[_]=e.defaultCollapsed;e.isNetworkCollapsed=[];for(var O=0;O<scope.currentScope.network.containers.length;O++)e.isNetworkCollapsed[O]=e.defaultCollapsed;e.toggleAuthorContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isAuthorCollapsed=!e.isAuthorCollapsed)},e.toggleAdvertiserContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isAdvertiserCollapsed=!e.isAdvertiserCollapsed)},e.toggleSpecialsContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isSpecialsCollapsed=!e.isSpecialsCollapsed)},e.toggleSocialContainer=function(){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isSocialCollapsed=!e.isSocialCollapsed)},e.toggleChapterContainer=function(q){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isChapterCollapsed[q]=!e.isChapterCollapsed[q])},e.toggleNetworkContainer=function(q){scope.currentChapter.settings.featureMenuContainerCollapsable>0&&(e.isNetworkCollapsed[q]=!e.isNetworkCollapsed[q])}}]),app.controller("SearchController",["$scope","$rootScope","searchService","$state","$location","$uibModal","$timeout","translationService",function(e,t,a,n,l,c,h,r){e.hits=null,e.translatedValue=null,e.staffDirectoryUserHits=null,e.model={},e.model.query=l.search().q,e.filter=null,e.searching=!1,e.isMobileView=t.mobile,e.hasChapterGroups=scope.currentScope.chapter.chapterGroups.length>0,e.isStaffDirectoryEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled,e.state=l.search().searchFilter||"all";var i=function(s){if(angular.isArray(s))return s;var p=[];return s&&p.push(s),p};function d(s,p){e.state=s||l.search().searchFilter;var u=l.search().chapterIds,b=l.search().showAll;if(u=i(u),!p&&(p={},l.search().staffDirFilter)){var y=JSON.parse(decodeURIComponent(l.search().staffDirFilter));y&&(y.datePickers&&(angular.forEach(Object.entries(y.datePickers),function(f){if(f[1].from){var R=new Date(f[1].from);f[1].from=R}if(f[1].until){var S=new Date(f[1].until);f[1].until=S}}),y.attributeRanges=function(s){return Object.keys(s).map(function(p){return{attribute_Id:p,from:s[p].from,until:s[p].until,ignoreYear:s[p].ignoreYear}})}(y.datePickers)),p=y)}if(e.filtered=u.length>0,!0===e.isStaffDirectoryEnabled)switch(e.state){case"all":default:(u.length>0||e.translatedValue||b)&&(e.searching=!0,a.search(e.translatedValue,u).then(function(f){e.hits=f,e.searching=!1})),a.getStaffDirectoryUsers(e.translatedValue,p.optionIds,p.booleanIds,p.attributeRanges,e.state).then(function(f){e.staffDirectoryUserHits=f});break;case"staffs":e.hits=null,a.getStaffDirectoryUsers(e.translatedValue,p.optionIds,p.booleanIds,p.attributeRanges,e.state).then(function(f){e.staffDirectoryUserHits=f});break;case"articles":(u.length>0||e.translatedValue||b)&&(e.searching=!0,a.search(e.translatedValue,u).then(function(f){e.hits=f,f||(e.hits=[]),e.searching=!1})),e.staffDirectoryUserHits=null}else u.length>0||e.translatedValue||b?(e.searching=!0,a.search(e.translatedValue,u).then(function(f){e.hits=f,e.searching=!1}),e.staffDirectoryUserHits=[]):(e.hits=null,e.staffDirectoryUserHits=null);l.search("q",e.model.query)}e.search=function(s,p){var u=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,b=t.scope.profile.activeUserLanguage,y=t.scope.network.settings.languagePack.split("-")[0];1==u&&b.vendorLanguageCode!=y?function o(s){return new Promise(function(p,u){r.translateToOrigin([s]).then(y=>{e.translatedValue=y[0].translation,p()})})}(e.model.query).then(function(){d(s,p)}):(e.translatedValue=e.model.query,d(s,p))},e.filtering=function(s){e.state=s.state,1==s.shouldResetSearch&&(e.translatedValue=null)},e.navigateUp=function(){h(function(){n.go("app.root")})},e.loadArticles=function(){var s=l.search().chapterIds;s=i(s),a.getArticles(e.translatedValue,e.hits.articles.length/10,s).then(function(p){e.hits.articles=e.hits.articles.concat(p)})},e.filterModal=function(){c.open({templateUrl:"/ClientApp/src/legacy-app/search/searchFilterDialog.html",controller:"SearchFilterDialog",size:"lg",resolve:{searchCallback:function(){return e.search}}})},e.isMobileView?$("#app-search-input-mobile").focus():$("#app-search-input-desktop").focus(),e.search()}]),app.component("searchFilter",{bindings:{searchCallback:"<",filterStateCallback:"<"},templateUrl:"/ClientApp/src/legacy-app/search/searchFilter.html",controller:["$location","$rootScope","searchService","$scope","translationService",function(e,t,a,n,l){var c=this;c.filtered=!1,c.filterGroupsReady=!1,c.filterRubricsReady=!1,c.isMobileView=t.mobile,c.countChanges=0,c.filterInitialized=!1,c.filterTypes=[{id:-1,display:t.scope.currentScope.network.resources.web_filter_mode_staff_dir||"!RES[web_filter_mode_staff_dir]"},{id:0,display:t.scope.currentScope.network.resources.web_filter_mode_both||"!RES[web_filter_mode_both]"},{id:1,display:t.scope.currentScope.network.resources.web_filter_mode_articles||"!RES[web_filter_mode_articles]"}],n.noSelectionStyle={"background-color":"cadetblue"},c.searchFilter=e.search().searchFilter||"all",c.$onInit=function(){a.getStaffDirectoryAttributes().then(function(f){c.attributes=f}),c.staffDirEnabled=t.scope.currentScope.network.settings.isStaffDirectoryEnabled;var b=e.search().searchFilter;if(b){switch(b){case"staffs":c.rangeSelection=-1;break;case"all":default:c.rangeSelection=0;break;case"articles":c.rangeSelection=1}c.filtered=!0}if(e.search().staffDirFilter){var y=JSON.parse(decodeURIComponent(e.search().staffDirFilter));y&&(y.datePickers&&(angular.forEach(Object.entries(y.datePickers),function(f){if(f[1].from){var R=new Date(f[1].from);f[1].from=R}if(f[1].until){var S=new Date(f[1].until);f[1].until=S}}),y.attributeRanges=u(y.datePickers)),c.staffDirFilter=y,c.filtered=!0)}c.filterInitialized=!0},c.chapterGroups=[];var h=t.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==h){var r=scope.currentScope.chapter.chapterGroups;if(r){var i=r.map(function(b){return b.name});l.translateByUserLanguageCode(i).then(b=>{b.forEach((y,f)=>{r[f].name=y.translation}),c.chapterGroups=c.chapterGroups.concat(r),c.filterGroupsReady=c.chapterGroups.length>0});var d=r.map(function(b){return b.chapters}).map((b,y)=>{var f=b.map(function(R){return R.shortName});return l.translateByUserLanguageCode(f).then(R=>{R.forEach((S,v)=>{r[y].chapters[v].shortName=S.translation})})});Promise.all(d).then(()=>{c.filterRubricsReady=!0})}}else c.chapterGroups=scope.currentScope.chapter.chapterGroups,c.filterGroupsReady=!0,c.filterRubricsReady=!0;if(c.chapterGroupSelections={},c.staffDirFilter={},c.changeFilter=function(b){b=c.rangeSelection,c.countChanges++,-1==b&&(c.searchFilter="staffs"),0==b&&(c.searchFilter="all"),1==b&&(c.searchFilter="articles"),e.search("searchFilter",c.searchFilter),c.updateQuery()},e.search().chapterIds){var o=[],s=e.search().chapterIds;angular.isArray(s)?o=s:o.push(s),angular.forEach(o,function(b){angular.forEach(c.chapterGroups,function(y,f){y.chapters.filter(function(R){return R.id===b}).length>0&&(c.chapterGroupSelections[f]=b,c.filtered=!0)})})}var p=function(b){return Object.keys(b).map(function(y){return b[y]})},u=function(b){return Object.keys(b).map(function(y){return{attribute_Id:y,from:b[y].from,until:b[y].until,ignoreYear:b[y].ignoreYear}})};c.updateQuery=function(){if(c.chapterGroupSelections){var b=p(c.chapterGroupSelections);e.search("chapterIds",b)}if(c.staffDirFilter.optionSelections){var y=p(c.staffDirFilter.optionSelections);c.staffDirFilter.optionIds=y}if(c.staffDirFilter.datePickers&&(c.staffDirFilter.attributeRanges=u(c.staffDirFilter.datePickers)),c.staffDirFilter.booleanSelections){var f=p(c.staffDirFilter.booleanSelections);f=f.filter(function(S){return void 0!==S}),c.staffDirFilter.booleanIds=f}if(c.staffDirFilter.optionSelections||c.chapterGroupSelections||c.booleanSelections||c.datePickers){var R=encodeURIComponent(JSON.stringify(c.staffDirFilter));e.search("staffDirFilter",R),c.filtered=!0,c.searchCallback(c.searchFilter,c.staffDirFilter)}},c.resetFilter=function(){e.search("chapterIds",null),c.chapterGroupSelections={},c.staffDirFilter={},e.search("staffDirFilter",null),c.filtered=!1,c.searchCallback(c.searchFilter,c.staffDirFilter)}}]}),Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),a=t.length,n=new Array(a);a--;)n[a]=[t[a],e[t[a]]];return n}),Object.keys||(Object.keys=function(){"use strict";var e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=a.length;return function(l){if("function"!=typeof l&&("object"!=typeof l||null===l))throw new TypeError("Object.keys called on non-object");var h,r,c=[];for(h in l)e.call(l,h)&&c.push(h);if(t)for(r=0;r<n;r++)e.call(l,a[r])&&c.push(a[r]);return c}}()),app.controller("SearchFilterDialog",["searchCallback","$location","$scope",function(e,t,a){if(a.chapterGroups=scope.currentScope.chapter.chapterGroups,a.chapterGroupSelections={},a.filtered=!1,a.searchCallback=e,t.search().chapterIds){var n=[],l=t.search().chapterIds;angular.isArray(l)?n=l:n.push(l),angular.forEach(n,function(h){angular.forEach(a.chapterGroups,function(r,i){r.chapters.filter(function(m){return m.id===h}).length>0&&(a.chapterGroupSelections[i]=h,a.filtered=!0)})})}a.updateQuery=function(){a.chapterGroupSelections&&(a.filtered=!0)},a.resetFilter=function(){a.chapterGroupSelections={},a.filtered=!1},a.save=function(){var h=Object.keys(a.chapterGroupSelections).map(function(h){return a.chapterGroupSelections[h]});t.search("chapterIds",h),e(),a.$dismiss()}}]),app.factory("searchService",["$http","$q",function(e,t){var a=function(u,b,y){var f={};return u&&(f.query=u),b&&(f.page=b),y&&(f.chapterIds=y),f};function p(u,b,y){var f=t.defer();return e.post(scope.apiEndpoint+y,a(u,b)).then(function(R){f.resolve(R.data)},function(){f.reject()}),f.promise}return{search:function(u,b){var y=t.defer();return e.post(scope.apiEndpoint+"search",a(u,0,b)).then(function(f){y.resolve(f.data)},function(){y.reject()}),y.promise},getArticles:function(u,b,y){var f=t.defer();return e.post(scope.apiEndpoint+"search/articles",a(u,b,y)).then(function(R){f.resolve(R.data)},function(){f.reject()}),f.promise},getAssetArticles:function(u,b){var y=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles",a(u,b)).then(function(f){y.resolve(f.data)},function(){y.reject()}),y.promise},getAssetSponsoredArticles:function(u,b){var y=t.defer();return e.post(scope.apiEndpoint+"search/assets/articles/sponsored?q=",a(u,b)).then(function(f){y.resolve(f.data)},function(){y.reject()}),y.promise},getAssetImages:function(u,b){return p(u,b,"search/assets/images")},getSponsoredAssetImages:function(u,b){return p(u,b,"search/assets/images/sponsored")},getAssetFiles:function(u,b){return p(u,b,"search/assets/files")},getSponsoredAssetFiles:function(u,b){return p(u,b,"search/assets/files/sponsored")},getStaffDirectoryUsers:function(u,b,y,f,R){var S=t.defer();return e.post(scope.apiEndpoint+"search/staffDirectory",{query:u,optionIds:b,booleanIds:y,attributeDateTimeRanges:f,filterState:R}).then(function(v){S.resolve(v.data)},function(){S.reject()}),S.promise},getStaffDirectoryAttributes:function(){var u=t.defer();return e.get(scope.apiEndpoint+"staffDirectory/attributes").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise}}}]),app.controller("SnipApplyController",["$interpolate","$scope","snipService","authorService","profileService","$stateParams","$location",function(e,t,a,n,l,c,h){t.snip=null;var r=c.id;t.web_snipApply_notAppliedDescription=e(scope.currentScope.network.resources.web_snipApply_notAppliedDescription)({web_common_author_custom:scope.currentScope.network.getResourceOrKeyName("web_common_author_custom")}),l.getProfile().then(function(i){i.isJournalist?(a.getSnipDetails(r).then(function(m){t.snip=m}),n.checkApply(r).then(function(m){t.hasApplied=m})):h.path("/author/register").search("fromApply","1")},function(i){h.path("/author/register")}),t.apply=function(){n.applySnip(r).then(function(i){h.path("/dashboard")})}}]),app.controller("SnipDeleteDialog",["$scope","snipService","snip",function(e,t,a){e.delete=function(){t.deleteSnip(a.id).then(function(){a.deleted=new Date,e.$dismiss()},function(){e.error=!0})}}]),app.controller("SnipDetailController",["$rootScope","$scope","$previousState","snipService","$location","snip","$timeout","articleService","profileService","$uibModal","translationService","assetService",function(e,t,a,n,l,c,h,r,i,m,d,o){if((!document.referrer||!document.referrer.startsWith(scope.globalSettings.serverCdnUrl))&&!a.get()&&history){var s=l.path();history.replaceState(null,"",scope.currentChapter.path),history.pushState(null,"",scope.currentChapter.path+s)}var f;if(t.$on("$viewContentLoaded",function(){h(function(){t.viewContentLoaded=!0});var f=e.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==f){var R=e.scope.profile,S=e.scope.network.settings.languagePack.split("-")[0];null!=R.activeUserLanguage?.vendorLanguageCode&&S!=R.activeUserLanguage?.vendorLanguageCode&&t.translateSnip(R.activeUserLanguage?.vendorLanguageCode)}}),t.hasHowto=e.scope.staticArticles.filter(function(f){return"/howto"===f.path}).length>0,t.hideUserInteraction=1==scope.currentChapter.settings.configurations.hideAssetsForUnregisteredUsers&&0==e.scope.profile.isRegistered&&0==e.app,$(window).scroll(function(f){$(f.target).scrollTop()>100?$(".snipDetail-mobileNavigation-wrapper").addClass("snipDetail-mobileNavigation-wrapper-scrolled"):$(".snipDetail-mobileNavigation-wrapper").removeClass("snipDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedSnips=[],t.snip=c,t.availableTargetLanguages=null,d.getAvailableTargetLanguages().then(function(f){t.availableTargetLanguages=f}),t.selectedTargetLanguage=e.profile.favoriteLanguage,t.$on("apicodo.translate",function(f,R){t.translateSnip(R)}),t.translateSnip=function(f){f&&(t.selectedTargetLanguage=f),null===t.selectedTargetLanguage?n.getSnipDetails(t.snip.id).then(function(R){t.snip.text=R.text,t.snip.formattedText=R.formattedText,t.snip.assetReferences=R.assetReferences,y()}):n.getTranslatedSnipDetails(t.snip.id,t.selectedTargetLanguage).then(function(R){t.snip.text=R.text,t.snip.formattedText=R.formattedText,t.snip.assetReferences=R.assetReferences,y(),i.updateFavoriteLanguage(t.selectedTargetLanguage).then(function(){e.profile.favoriteLanguage=t.selectedTargetLanguage})})},e.scope.currentScope.chapter.settings.enableSnipRecommendations&&n.getRecommendedSnips(t.snip.id).then(function(f){t.recommendedSnips=f}),c.articleId&&r.getArticleDetails(c.articleId).then(function(f){t.article=f}),t.deleteSnip=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/snip/snipDeleteDialog.html",controller:"SnipDeleteDialog",size:"lg",resolve:{snip:function(){return t.snip}}})},t.contactSnipUser=function(){i.getProfile().then(function(f){f.isRegistered&&m.open({templateUrl:"/ClientApp/src/legacy-app/user/userContactDialog.html",controller:"UserContactDialog",size:"lg",resolve:{snip:function(){return t.snip}}})})},(f=window.navigator.userAgent).indexOf(" Android ")>-1&&f.indexOf("Version/")>-1&&parseFloat((f.match("Android ([0-9.]+)")||[])[1])<=4.4){var u=$(window).height();$(".app-mobile .snipDetail-wrapper").css("height",u+"px"),$(".app-desktop .snipDetail-wrapper").css("height",u+"px")}var b=function(f){t.snip.assetReferences.unshift(f),y()};function y(){t.snip.assetsMedia=[],t.snip.assetsFacts=[],t.snip.assetsQuestions=[],t.snip.assetsComments=[],angular.isDefined(c.assetReferences)&&c.assetReferences.forEach(function(f){null!==f.assetImage||null!==f.assetText&&(5===f.assetText.type||6===f.assetText.type||7===f.assetText.type||10===f.assetText.type||13===f.assetText.type)?t.snip.assetsMedia.push(f):null!==f.assetText&&(8===f.assetText.type?t.snip.assetsFacts.push(f):9===f.assetText.type?t.snip.assetsQuestions.push(f):0===f.assetText.type&&t.snip.assetsComments.push(f))})}t.assetCreateOpinionDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateOpinionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return b},createAssetAsync:function(){return function(f){return o.insertAssetTextToSnip(f,t.snip.id)}}}})},t.assetCreateFactDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateFactDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 8},resultCallback:function(){return b},createAssetAsync:function(){return function(f){return o.insertAssetTextToSnip(f,t.snip.id)}}}})},t.assetCreateQuestionDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateQuestionDialog.html",controller:"AssetCreateCommonDialog",backdrop:"static",size:"lg",resolve:{assetType:function(){return 9},resultCallback:function(){return b},createAssetAsync:function(){return function(f){return o.insertAssetTextToSnip(f,t.snip.id)}}}})},t.assetCreateImageDialog=function(f,R,S){f&&0!==f.length?R.length||m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateImageDialog.html",controller:"AssetCreateImageDialog",size:"lg",resolve:{files:function(){return f},resultCallback:function(){return b},createAssetAsync:function(){return function(v){return o.insertAssetImageToSnip(v,t.snip.id)}}}}):R||S.$setPristine()},t.assetCreateVideoDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateVideoDialog.html",controller:"AssetCreateVideoDialog",size:"lg",resolve:{resultCallback:function(){return b},createAssetAsync:function(){return function(f){return o.insertAssetTextToSnip(f,t.snip.id)}}}})},t.assetCreateGifDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetCreateGifDialog.html",controller:"AssetCreateGifDialog",size:"lg",resolve:{resultCallback:function(){return b},createAssetAsync:function(){return function(f){return o.insertAssetTextToSnip(f,t.snip.id)}}}})},t.assetSearchDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetSearchDialog.html",controller:"AssetSearchDialog",size:"lg",resolve:{resultCallback:function(){return b},snipId:function(){return t.snip.id},assetReferences:function(){return t.snip.assetReferences}}})},t.assetImageFocuspointDialog=function(f){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return f}}})},t.scrollTo=function(f){$("body,html").animate({scrollTop:$(f).offset().top-120},1e3)},y(),t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareSnip","SnipDetail"]),window.plugins.socialsharing.shareWithOptions({message:t.snip.text+" "+l.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareSnip","SnipDetail"])}))}}]),app.controller("SnipElasticReportController",["$scope","$rootScope","snipService","scopeService","$timeout","$location","$stateParams",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var s,p,u,b,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_unknownReferrer"),color:"#cccccc",regEx:["^$"]},{name:t.scope.currentScope.network.domain.charAt(0).toUpperCase()+t.scope.currentScope.network.domain.slice(1),color:r,regEx:["^https?:\\/\\/"+t.scope.currentScope.network.domain]},{name:"Facebook",color:"#3B5998",regEx:["^https?:\\/\\/(\\w*\\.)?facebook\\.com","^android-app:\\/\\/m.facebook."]},{name:"Google",color:"#F44336",regEx:["^https?:\\/\\/((www\\.)|(images\\.))?google\\.","^android-app:\\/\\/com\\.google\\.android\\.googlequicksearchbox"]},{name:"Twitter",color:"#4099FF",regEx:["^https?:\\/\\/t\\.co\\/","^https?:\\/\\/twitter\\.com\\/"]},{name:"Webmail",color:"#ff66ff",regEx:["^https?:\\/\\/.*\\.mail\\.live\\.com","^https?:\\/\\/mail\\.google\\.com","^https?:\\/\\/3c\\.gmx\\.net","^https?:\\/\\/3c\\.web\\.de","^https?:\\/\\/email\\.t-online\\.de","^https?:\\/\\/3c-bap\\.web\\.de","^https?:\\/\\/email\\.1und1\\.de","^https?:\\/\\/www\\.arcor\\.de\\/home\\/link\\.php"]},{name:"WhatsApp",color:"#43d854",regEx:["^https?:\\/\\/web.whatsapp.com"]},{name:t.scope.currentScope.network.getResourceOrKeyName("web_report_articleSuggestionReferrer"),color:"#F44336",regEx:["^https?:\\/\\/www\\.googleapis\\.com\\/auth\\/chrome-content-suggestions","^https?:\\/\\/play\\.google\\.(com|de){1}\\/newsstand"]},{name:"Google News",color:"#F44336",regEx:["^https?:\\/\\/((www\\.news\\.)|(news\\.))?(url\\.)?google\\."]},{name:"Instagram",color:"#cd486b",regEx:["^https?:\\/\\/(\\w*\\.)?instagram\\."]}],m=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],d=[],o=[];e.report=null,e.totalReadingTime=0,e.totalReadingCount=0,e.totalImpressionCount=0,e.totalUniqueImpressionCount=0,e.totalUniqueReadingCount=0,e.totalUniqueReadingHavingImpressionsCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var y=function(v){var w=0,g=0,x=0,F=0,D=0,I=0,A=0,C=0,U=0,k=[];d.length=0,$.each(v,function(T,V){w+=V.desktopReadingCount,g+=V.tabletReadingCount,x+=V.mobileReadingCount,A+=V.uniqueReadingCount,I+=V.uniqueImpressionCount,C+=V.uniqueReadingHavingImpressionsCount,F+=V.readingTime,U+=V.impressionCount,D+=V.readingCount,V.referrers&&$.each(V.referrers,function(M,_){var O=!1;$.each(i,function(q,P){if($.each(P.regEx,function(E,N){if(_.uri.match(N))return k[P.name]?(k[P.name].count+=_.count,O=!0,!1):(k[P.name]={count:_.count,referrer:P.name,color:P.color},d.push(k[P.name]),O=!0,!1)}),O)return!1}),O||(k.others?k.others.count+=_.count:(k.others={count:_.count,referrer:"Andere"},d.push(k.others)))})}),e.$apply(function(){e.totalUniqueReadingCount=A,e.totalUniqueReadingHavingImpressionsCount=C,e.totalReadingTime=F,e.totalImpressionCount=U,e.totalReadingCount=D,e.totalUniqueImpressionCount=I}),m[0].value=Math.round(100/(D/w)),m[1].value=Math.round(100/(D/g)),m[2].value=Math.round(100/(D/x)),b.validateData(),s.validateData()},f=function(){var v=moment(p.startDate).startOf("day").toDate(),w=moment(p.endDate).startOf("day").toDate(),g=e.report.filter(function(x){return x.day>=v&&x.day<=w});y(g),u.zoom(v,moment(w).add(1,"d").toDate()),e.$apply(function(){e.startDay=v,e.endDay=w})};e.filterChapter=function(v){v.filtered=!v.filtered,function(){var v=e.chapters.filter(function(w){return!w.filtered}).map(function(w){return w.id});e.filterDisabled=!0,a.getSnipReport(e.snip.id,{chapterIds:v}).then(function(w){w.forEach(function(g){g.day=moment(g.day.replace("Z","")).toDate()}),e.report=w,l(function(){(function(v){o.length=0,$.each(v,function(w,g){o.push(g)}),p.validateData(),u.validateData()})(w),f(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(v){return e.filterDisabled||1===e.chapters.filter(function(w){return!w.filtered}).length&&!v.filtered},a.getSnipDetails(h.id).then(function(v){e.snip=v,a.getSnipReport({snipId:v.id}).then(function(w){w.forEach(function(x){x.day=moment(x.day.replace("Z","")).toDate()}),e.report=w,e.startDay=w[0].day,e.endDay=w[w.length-1].day;var g=[];$.each(v.chapterSlugs,function(x,F){g.push(n.getChapter(F))}),g=g.filter(function(x){return 2===x.managementState}),e.chapters=g,$.each(w,function(x,F){o.push(F)}),l(function(){s=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(p=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:o,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){f()}),u=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"readingCount",toField:"readingCount"}],dataProvider:o,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_reportSnip_uniqueReadersAmount,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSnip_callsAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_calls"),valueField:"readingCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_calls")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"count",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[title]]: [[value]]"})).legend.addListener("clickLabel",function(x){x.dataItem.dataContext.name.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),x.dataItem.dataContext.referrer)}),y(w)})},function(){e.error=!0})})}]),app.controller("SnipReportController",["$scope","$rootScope","snip","chapterReport","snipService","scopeService","$timeout",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:r,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],m=[],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];n.forEach(function(s){s.chapter=c.getChapter(s.chapterSlug),s.report.calendar.forEach(function(p){p.start=moment(p.start.replace("Z","")).toDate(),p.end=moment(p.end.replace("Z","")).toDate()})}),e.chapterReport=n,e.snip=a,h(function(){var s,p,u,b,y,f,R;$.each(n,function(D,I){I.active=!0});var S=[],v=function(){S.length=0,n.hasVariants=!1,$.each(n[0].report.calendar,function(D,I){S.push({start:I.start,end:I.end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]})}),$.each(n,function(D,I){if(I.active){n[D-1]&&2===n[D-1].chapter.managementState&&2===I.chapter.managementState&&n[D-1].chapter.name!==I.chapter.name&&(n.multiChapterShipment=!0);var A=a.id;$.each(I.report.calendar,function(C,U){U.id=A,S[C].viewableImpressions+=U.viewableImpressions,S[C].uniqueViewableImpressions+=U.uniqueViewableImpressions,S[C].billableViewableImpressions+=U.billableViewableImpressions,S[C].activeTimeSeconds+=U.activeTimeSeconds,S[C].readings+=U.readings,S[C].uniqueReadings+=U.uniqueReadings,S[C].uniqueReadingsHavingViewableImpressions+=U.uniqueReadingsHavingViewableImpressions,S[C].uniqueReadingPercentageReads+=U.uniqueReadingPercentageReads,S[C].maleUniqueReadings+=U.maleUniqueReadings,S[C].femaleUniqueReadings+=U.femaleUniqueReadings,S[C].desktopReadings+=U.desktopReadings,S[C].mobileReadings+=U.mobileReadings,S[C].tabletReadings+=U.tabletReadings,S[C].age1617MaleUniqueReadings+=U.age1617MaleUniqueReadings,S[C].age1824MaleUniqueReadings+=U.age1824MaleUniqueReadings,S[C].age2534MaleUniqueReadings+=U.age2534MaleUniqueReadings,S[C].age3544MaleUniqueReadings+=U.age3544MaleUniqueReadings,S[C].age4554MaleUniqueReadings+=U.age4554MaleUniqueReadings,S[C].age55MaleUniqueReadings+=U.age55MaleUniqueReadings,S[C].age1617FemaleUniqueReadings+=U.age1617FemaleUniqueReadings,S[C].age1824FemaleUniqueReadings+=U.age1824FemaleUniqueReadings,S[C].age2534FemaleUniqueReadings+=U.age2534FemaleUniqueReadings,S[C].age3544FemaleUniqueReadings+=U.age3544FemaleUniqueReadings,S[C].age4554FemaleUniqueReadings+=U.age4554FemaleUniqueReadings,S[C].age55FemaleUniqueReadings+=U.age55FemaleUniqueReadings,S[C].uniqueReadingPercentage24Reads+=U.uniqueReadingPercentage24Reads,S[C].uniqueReadingPercentage2549Reads+=U.uniqueReadingPercentage2549Reads,S[C].uniqueReadingPercentage5074Reads+=U.uniqueReadingPercentage5074Reads,S[C].uniqueReadingPercentage75100Reads+=U.uniqueReadingPercentage75100Reads,U.referrers.length&&U.referrers.forEach(function(k){S[C].referrers.push(k)})})}}),s.validateData(),p.validateData(),u.validateData(),b.validateData(),y.validateData(),f.validateData(),R.validateData()},w=n.summary={referrers:[]},g=function(D,I){w.viewableImpressions=0,w.uniqueViewableImpressions=0,w.billableViewableImpressions=0,w.activeTimeSeconds=0,w.readings=0,w.uniqueReadings=0,w.uniqueReadingsHavingViewableImpressions=0,w.uniqueReadingPercentageReads=0,w.maleUniqueReadings=0,w.femaleUniqueReadings=0,w.desktopReadings=0,w.mobileReadings=0,w.tabletReadings=0,w.age1617MaleUniqueReadings=0,w.age1824MaleUniqueReadings=0,w.age2534MaleUniqueReadings=0,w.age3544MaleUniqueReadings=0,w.age4554MaleUniqueReadings=0,w.age55MaleUniqueReadings=0,w.age1617FemaleUniqueReadings=0,w.age1824FemaleUniqueReadings=0,w.age2534FemaleUniqueReadings=0,w.age3544FemaleUniqueReadings=0,w.age4554FemaleUniqueReadings=0,w.age55FemaleUniqueReadings=0,w.uniqueReadingPercentage24Reads=0,w.uniqueReadingPercentage2549Reads=0,w.uniqueReadingPercentage5074Reads=0,w.uniqueReadingPercentage75100Reads=0;var A=0,C=0,U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0;w.start=D,w.end=I,w.referrers.length=0,$.each(S,function(Q,G){var L=new Date(G.start);L<D||L>I||(w.viewableImpressions+=G.viewableImpressions,w.uniqueViewableImpressions+=G.uniqueViewableImpressions,w.billableViewableImpressions+=G.billableViewableImpressions,w.activeTimeSeconds+=G.activeTimeSeconds,w.readings+=G.readings,w.uniqueReadingPercentageReads+=G.uniqueReadingPercentageReads,w.maleUniqueReadings+=G.maleUniqueReadings,w.femaleUniqueReadings+=G.femaleUniqueReadings,w.uniqueReadings+=G.uniqueReadings,w.uniqueReadingsHavingViewableImpressions+=G.uniqueReadingsHavingViewableImpressions,w.uniqueReadingPercentage24Reads+=G.uniqueReadingPercentage24Reads,w.uniqueReadingPercentage2549Reads+=G.uniqueReadingPercentage2549Reads,w.uniqueReadingPercentage5074Reads+=G.uniqueReadingPercentage5074Reads,w.uniqueReadingPercentage75100Reads+=G.uniqueReadingPercentage75100Reads,A+=G.desktopReadings,C+=G.mobileReadings,U+=G.tabletReadings,k+=G.age1617MaleUniqueReadings,T+=G.age1824MaleUniqueReadings,V+=G.age2534MaleUniqueReadings,M+=G.age3544MaleUniqueReadings,_+=G.age4554MaleUniqueReadings,O+=G.age55MaleUniqueReadings,q+=G.age1617FemaleUniqueReadings,P+=G.age1824FemaleUniqueReadings,E+=G.age2534FemaleUniqueReadings,N+=G.age3544FemaleUniqueReadings,j+=G.age4554FemaleUniqueReadings,W+=G.age55FemaleUniqueReadings,G.referrers.forEach(function(H){var J=w.referrers.filter(function(Z){return Z.referrer===H.referrer});J.length?J[0].readings+=H.readings:w.referrers.push({referrer:H.referrer,readings:H.readings,color:H.color})}))}),w.referrers.sort(function(Q,G){return G.readings-Q.readings}),w.referrers.forEach(function(Q){Q.name=Q.referrer?Q.referrer.substring(0,30):Q.referrer}),m.length=0,[].push.apply(m,w.referrers.slice(0,8)),m.filter(function(Q){return!Q.color}).forEach(function(Q,G){Q.color=b.colors[G]});var K=w.referrers.slice(9,-1),Y={referrer:scope.currentScope.network.getResourceOrKeyName("web_report_others"),name:scope.currentScope.network.getResourceOrKeyName("web_report_others"),readings:0,color:b.colors[10]};K.forEach(function(Q){Y.readings+=Q.readings}),Y.readings>0&&m.push(Y);var B=A+C+U;w.desktopReadings=Math.round(100/(B/A)),w.mobileReadings=Math.round(100/(B/C)),w.tabletReadings=Math.round(100/(B/U)),w.maleUniqueReadings=Math.round(w.maleUniqueReadings),w.femaleUniqueReadings=Math.round(w.femaleUniqueReadings),i[0].value=w.femaleUniqueReadings,i[1].value=w.maleUniqueReadings;var z=k+T+V+M+_+O+q+P+E+N+j+W;w.age1617MaleUniqueReadings=Math.round(100/(z/k)),w.age1824MaleUniqueReadings=Math.round(100/(z/T)),w.age2534MaleUniqueReadings=Math.round(100/(z/V)),w.age3544MaleUniqueReadings=Math.round(100/(z/M)),w.age4554MaleUniqueReadings=Math.round(100/(z/_)),w.age55MaleUniqueReadings=Math.round(100/(z/O)),w.age1617FemaleUniqueReadings=Math.round(100/(z/q)),w.age1824FemaleUniqueReadings=Math.round(100/(z/P)),w.age2534FemaleUniqueReadings=Math.round(100/(z/E)),w.age3544FemaleUniqueReadings=Math.round(100/(z/N)),w.age4554FemaleUniqueReadings=Math.round(100/(z/j)),w.age55FemaleUniqueReadings=Math.round(100/(z/W)),d[0].male=Math.round(-1*w.age1617MaleUniqueReadings),d[1].male=Math.round(-1*w.age1824MaleUniqueReadings),d[2].male=Math.round(-1*w.age2534MaleUniqueReadings),d[3].male=Math.round(-1*w.age3544MaleUniqueReadings),d[4].male=Math.round(-1*w.age4554MaleUniqueReadings),d[5].male=Math.round(-1*w.age55MaleUniqueReadings),d[0].female=Math.round(w.age1617FemaleUniqueReadings),d[1].female=Math.round(w.age1824FemaleUniqueReadings),d[2].female=Math.round(w.age2534FemaleUniqueReadings),d[3].female=Math.round(w.age3544FemaleUniqueReadings),d[4].female=Math.round(w.age4554FemaleUniqueReadings),d[5].female=Math.round(w.age55FemaleUniqueReadings),o[0].value=w.desktopReadings,o[1].value=w.mobileReadings,o[2].value=w.tabletReadings,u.validateData(),y.validateData(),f.validateData(),R.validateData(),b.validateData(),e.$$phase||e.$apply()};s=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:S,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),p=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:S,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSnip_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),u=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),(b=AmCharts.makeChart("chartReferrers",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"readings",titleField:"referrer",colorField:"color",labelsEnabled:!1,autoMargins:!1,pullOutRadius:0,innerRadius:"30%",legend:{switchable:!1,textClickEnabled:!0,markerType:"circle",position:"bottom",autoMargins:!1,marginLeft:2},balloonText:"[[name]]: [[value]]"})).legend.addListener("clickLabel",function(D){D.dataItem.dataContext.referrer.startsWith("http")&&window.prompt(scope.currentScope.network.getResourceOrKeyName("web_report_copyLink"),D.dataItem.dataContext.referrer)}),y=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:r,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(D){return-1*D.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(D){return D<0?-1*D+"":D+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),f=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),R=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[w],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:r,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:r,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:r,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:r,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var x=function(){var D=moment(s.startDate).startOf("day").toDate(),I=moment(s.endDate).startOf("day").add(-1,"d").toDate();g(D,I),p.zoom(D,moment(I).add(1,"d").toDate())};s.addListener("zoomed",function(){x()}),e.toggleChapter=function(D){$.each(n,function(I,A){null!==A.chapter&&A.chapter.name===D.name&&(A.active=!A.active)}),v(),x()},x(),v();var F=!1;setInterval(function(){"visible"!==document.visibilityState||0===S.length||F||(F=!0,l.getLatestReport(a.id).then(function(D){if(D){D[0].start=moment(D[0].start.replace("Z","")).toDate(),D[0].end=moment(D[0].end.replace("Z","")).toDate();var I={start:D[0].start,end:D[0].end,viewableImpressions:0,uniqueViewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueReadings:0,femaleUniqueReadings:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueReadings:0,age1824MaleUniqueReadings:0,age2534MaleUniqueReadings:0,age3544MaleUniqueReadings:0,age4554MaleUniqueReadings:0,age55MaleUniqueReadings:0,age1617FemaleUniqueReadings:0,age1824FemaleUniqueReadings:0,age2534FemaleUniqueReadings:0,age3544FemaleUniqueReadings:0,age4554FemaleUniqueReadings:0,age55FemaleUniqueReadings:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,referrers:[]};$.each(D,function(U,k){n[U].active&&(I.viewableImpressions+=k.viewableImpressions,I.uniqueViewableImpressions+=k.uniqueViewableImpressions,I.billableViewableImpressions+=k.billableViewableImpressions,I.activeTimeSeconds+=k.activeTimeSeconds,I.readings+=k.readings,I.uniqueReadings+=k.uniqueReadings,I.uniqueReadingsHavingViewableImpressions+=k.uniqueReadingsHavingViewableImpressions,I.uniqueReadingPercentageReads+=k.uniqueReadingPercentageReads,I.maleUniqueReadings+=k.maleUniqueReadings,I.femaleUniqueReadings+=k.femaleUniqueReadings,I.desktopReadings+=k.desktopReadings,I.mobileReadings+=k.mobileReadings,I.tabletReadings+=k.tabletReadings,I.age1617MaleUniqueReadings+=k.age1617MaleUniqueReadings,I.age1824MaleUniqueReadings+=k.age1824MaleUniqueReadings,I.age2534MaleUniqueReadings+=k.age2534MaleUniqueReadings,I.age3544MaleUniqueReadings+=k.age3544MaleUniqueReadings,I.age4554MaleUniqueReadings+=k.age4554MaleUniqueReadings,I.age55MaleUniqueReadings+=k.age55MaleUniqueReadings,I.age1617FemaleUniqueReadings+=k.age1617FemaleUniqueReadings,I.age1824FemaleUniqueReadings+=k.age1824FemaleUniqueReadings,I.age2534FemaleUniqueReadings+=k.age2534FemaleUniqueReadings,I.age3544FemaleUniqueReadings+=k.age3544FemaleUniqueReadings,I.age4554FemaleUniqueReadings+=k.age4554FemaleUniqueReadings,I.age55FemaleUniqueReadings+=k.age55FemaleUniqueReadings,I.uniqueReadingPercentage24Reads+=k.uniqueReadingPercentage24Reads,I.uniqueReadingPercentage2549Reads+=k.uniqueReadingPercentage2549Reads,I.uniqueReadingPercentage5074Reads+=k.uniqueReadingPercentage5074Reads,I.uniqueReadingPercentage75100Reads+=k.uniqueReadingPercentage75100Reads,k.referrers.length&&k.referrers.forEach(function(T){I.referrers.push(T)}))}),S[S.length-1].start-D[0].start==0?S[S.length-1]=I:S.push(I),s.validateData(),p.validateData();var A=moment(s.startDate).startOf("day").toDate(),C=moment(s.endDate).startOf("day").add(-1,"d").toDate();A<=D[0].start&&C>=D[0].start&&g(A,C),F=!1}}))},1e4)},function(){e.error=!0},function(){$location.path("/")})}]),app.factory("snipService",["$http","$q","$location","$rootScope",function(e,t,a,n){var l={},c=function(v,w){return v.id?(v.assetsMedia=[],v.assetsFacts=[],v.assetsQuestions=[],v.assetsComments=[],v.assetReferences.forEach(function(g){null!==g.assetImage||null!==g.assetText&&(5===g.assetText.type||6===g.assetText.type||7===g.assetText.type||10===g.assetText.type||13===g.assetText.type)?v.assetsMedia.push(g):null!==g.assetText&&(8===g.assetText.type?v.assetsFacts.push(g):9===g.assetText.type?v.assetsQuestions.push(g):0===g.assetText.type&&v.assetsComments.push(g))}),l[v.id+(w||"")]?(angular.copy(v,l[v.id+(w||"")]),l[v.id]):(l[v.id+(w||"")]=v,v)):v};return{getSnips:function(){var v=t.defer(),w=n.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==w){var g=n.scope.profile,x=n.scope.network.settings.languagePack.split("-")[0];if(null!=g.activeUserLanguage?.vendorLanguageCode&&x!=g.activeUserLanguage?.vendorLanguageCode){var F=g.activeUserLanguage?.vendorLanguageCode;return e.post(scope.apiEndpoint+"snips/translate/"+F).then(function(D){var I=D.data;I.forEach(function(U,k){I[k]=c(U,F)}),1==w&&n.scope.network.settings.languagePack.split("-"),v.resolve(I)},function(){v.reject()}),v.promise}}return e.get(scope.apiEndpoint+"snips").then(function(D){var I=D.data;return I.forEach(function(A,C){I[C]=c(A)}),v.resolve(I),v.promise},function(){v.reject()}),v.promise},getTranslatedSnipList:function(v){var w=t.defer();return e.post(scope.apiEndpoint+"snips/translate/"+v).then(function(g){var x=g.data;x.forEach(function(I,A){x[A]=c(I,v)}),1==multiLanguageTranslationSystemIsEnabled&&n.scope.network.settings.languagePack.split("-"),w.resolve(x)},function(){w.reject()}),w.promise},getSnipReport:function(v){var w=t.defer();return e.post(scope.apiEndpoint+"snips/report",v).then(function(g){w.resolve(g.data)},function(){w.reject()}),w.promise},getSnipsForEventCalendar:function(){var v=t.defer();return e.get(scope.apiEndpoint+"snips/events").then(function(w){var g=w.data;return g.forEach(function(x,F){g[F]=c(x)}),v.resolve(g),v.promise},function(){v.reject()}),v.promise},getSnipDetails:function(v){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+v).then(function(g){w.resolve(c(g.data))},function(){w.reject()}),w.promise},getTranslatedSnipDetails:function(v,w){var g=t.defer();return e.post(scope.apiEndpoint+"snips/"+v+"/translate/"+w).then(function(x){g.resolve(x.data)},function(){g.reject()}),g.promise},getSnipDetailsFromCache:function(v){var w=t.defer();return c[v]?w.resolve(l[v]):w.reject(),w.promise},createSnip:function(v){var w=t.defer();return e.post(scope.apiEndpoint+"snips",v).then(function(g){w.resolve(c(g.data))},function(){w.reject()}),w.promise},like:function(v){var w=t.defer();return e.put(scope.apiEndpoint+"snips/"+v+"/like").then(function(g){w.resolve(g.data)},function(){w.reject()}),w.promise},deleteSnip:function(v){var w=t.defer();return e.delete(scope.apiEndpoint+"snips/"+v).then(function(g){w.resolve()},function(){w.reject()}),w.promise},getRecommendedSnips:function(v){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+v+"/recommended").then(function(g){var x=g.data,F=n.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==F){var D=n.scope.profile,I=n.scope.network.settings.languagePack.split("-")[0];if(null!=D.activeUserLanguage?.vendorLanguageCode&&I!=D.activeUserLanguage?.vendorLanguageCode){for(var A=[],C=0;C<x.length;C++){var k=l[x[C].id+D.activeUserLanguage?.vendorLanguageCode];k&&A.push(k)}return void w.resolve(x=A)}}x.forEach(function(T,V){x[V]=c(T)}),w.resolve(x)},function(){w.reject()}),w.promise},getReport:function(v){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+v+"/report").then(function(g){w.resolve(g.data)},function(){w.reject()}),w.promise},getLatestReport:function(v){var w=t.defer();return e.get(scope.apiEndpoint+"snips/"+v+"/report/latest",{ignoreLoadingBar:!0}).then(function(g){w.resolve(g.data)},function(){w.reject()}),w.promise}}}]),app.component("snipStatusHeader",{templateUrl:"/ClientApp/src/legacy-app/snip/snipStatusHeader.html",bindings:{data:"<"},controller:["$rootScope","$interpolate",function(e,t){this.web_snipStatus_lookingForAuthor=t(scope.currentScope.network.resources.web_snipStatus_lookingForAuthor)({web_common_author:scope.currentScope.network.getResourceOrKeyName("web_common_author")}),this.getSnipStatus=function(){if(!this.data.published)return 1;if(this.data.archived)return 2;if(this.data.assignedUser&&this.data.score>e.scope.globalSettings.snipShowAuthorEditStatusScoreThreshold)return 3;if(moment().diff(this.data.published,"hours")<3)return 0;if(!e.scope.currentChapter.settings.enableOhaLikes&&this.data.score>=1)return 4;if(this.data.assetReferences.length){var n=this.data.assetReferences.reduce(function(l,c){return new Date(l.published)<new Date(c.published)?l:c});if(moment().diff(n.created,"hours")<3)switch(n.type){case 2:case 5:case 6:case 7:return 5;case 8:return 6;case 9:return 7;case 0:case 1:case 10:return 8}}}}]}),app.controller("SpecialDetailController",["$scope","special","$rootScope",function(e,t,a){e.special=t,e.getTemplateUri=function(n){return"/ClientApp/src/legacy-app/template/"+n+".html"},e.specialViewOculus=Oculus.trackSpecialView({isp:t.id,n:a.scope.currentScope.network.slug,c:t.chapterSlug}),$(window).scroll(function(n){$(n.target).scrollTop()>100?$(".specialDetail-mobileNavigation-wrapper").addClass("specialDetail-mobileNavigation-wrapper-scrolled"):$(".specialDetail-mobileNavigation-wrapper").removeClass("specialDetail-mobileNavigation-wrapper-scrolled")})}]),app.directive("special",[function(){return{restrict:"E",require:"ngModel",templateUrl:"/ClientApp/src/legacy-app/special/special.html",replace:!1,scope:!0,link:function(e,t,a,n){e.getTemplateUri=function(l){return"/ClientApp/src/legacy-app/template/"+l+".html"},e.article=e.$eval(a.article),e.$watch(a.ngModel,function(){e.special=n.$viewValue})}}}]),app.controller("SpecialElasticReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var d,o,s,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],m=[];e.report=null,e.totalUniqueViewCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var p=function(f){var R=0,S=0,v=0,w=0,g=0,x=0,F=0;$.each(f,function(I,A){R+=A.desktopImpressionCount,S+=A.tabletImpressionCount,v+=A.mobileImpressionCount,w+=A.uniqueViews,g+=A.impressionTime,x+=A.totalViewTime,F+=A.impressionCount}),e.$apply(function(){e.totalUniqueViewCount=w,e.totalImpressionTime=g,e.totalViewTime=x,e.totalImpressionCount=F});var D=R+v+S;i[0].value=Math.round(100/(D/R)),i[1].value=Math.round(100/(D/v)),i[2].value=Math.round(100/(D/S)),d.validateData()},u=function(){var f=moment(o.startDate).startOf("day").toDate(),R=moment(o.endDate).startOf("day").toDate(),S=e.report.filter(function(v){return v.day>=f&&v.day<=R});p(S),s.zoom(f,moment(R).add(1,"d").toDate()),e.$apply(function(){e.startDay=f,e.endDay=R})};e.filterChapter=function(f){f.filtered=!f.filtered,function(){var f=e.chapters.filter(function(R){return!R.filtered}).map(function(R){return R.id});e.filterDisabled=!0,a.getSpecialReport({specialId:l.id,chapterIds:f}).then(function(R){R.forEach(function(S){S.day=moment(S.day.replace("Z","")).toDate()}),e.report=R,c(function(){(function(f){m.length=0,$.each(f,function(R,S){m.push(S)}),o.validateData(),s.validateData()})(R),u(),e.filterDisabled=!1},50)})}()},e.chapterFilterDisabled=function(f){return e.filterDisabled||1===e.chapters.filter(function(R){return!R.filtered}).length&&!f.filtered},a.getSpecialInfo(l.id).then(function(f){e.special=f,a.getSpecialReport({specialId:l.id}).then(function(R){R.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=R,e.startDay=R[0].day,e.endDay=R[R.length-1].day;var S=[];$.each(f.chapterSlugs,function(v,w){S.push(n.getChapter(w))}),S=S.filter(function(v){return 2===v.managementState}),e.chapters=S,$.each(R,function(v,w){m.push(w)}),c(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:m,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"uniqueViews",toField:"uniqueViews"}],dataProvider:m,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"uniqueViews",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p(R)})},function(){e.error=!0})})}]),app.controller("SpecialReportController",["$scope","$rootScope","specialService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getSpecialInfo(l.id).then(function(s){e.special=s,a.getSpecialCalendar(l.id).then(function(p){p.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.report.calendar.forEach(function(b){b.start=moment(b.start.replace("Z","")).toDate(),b.end=moment(b.end.replace("Z","")).toDate()})}),s.chapterReport=p,h(function(){var u,b,y,f,R,S,v=new Set;$.each(p,function(I,A){A.active=!0,v.add(A.chapter.name)}),p.uniqueChapters=[],v.forEach(function(I){p.uniqueChapters.push(I)});var w=[],g=function(){w.length=0,$.each(p[0].report.calendar,function(I,A){w.push({start:A.start,end:A.end,viewableImpressions:0,billableViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(p,function(I,A){if(A.active){p[I-1]&&2===p[I-1].chapter.managementState&&2===A.chapter.managementState&&p[I-1].chapter.name!==A.chapter.name&&(p.multiChapterShipment=!0);var C=A.report.special.Id;$.each(A.report.calendar,function(U,k){k.specialId=C;var T=w[U];T.viewableImpressions+=k.viewableImpressions,T.activeTimeSeconds+=k.activeTimeSeconds,T.readings+=k.views,T.maleUniqueViewableImpressions+=k.maleViewableImpressions,T.femaleUniqueViewableImpressions+=k.femaleViewableImpressions,T.uniqueReadings+=k.uniqueViews,T.desktopReadings+=k.desktopViews,T.mobileReadings+=k.mobileViews,T.tabletReadings+=k.tabletViews,T.age1617MaleUniqueViewableImpressions+=k.age1617MaleViewableImpressions,T.age1824MaleUniqueViewableImpressions+=k.age1824MaleViewableImpressions,T.age2534MaleUniqueViewableImpressions+=k.age2534MaleViewableImpressions,T.age3544MaleUniqueViewableImpressions+=k.age3544MaleViewableImpressions,T.age4554MaleUniqueViewableImpressions+=k.age4554MaleViewableImpressions,T.age55MaleUniqueViewableImpressions+=k.age55MaleViewableImpressions,T.age1617FemaleUniqueViewableImpressions+=k.age1617FemaleViewableImpressions,T.age1824FemaleUniqueViewableImpressions+=k.age1824FemaleViewableImpressions,T.age2534FemaleUniqueViewableImpressions+=k.age2534FemaleViewableImpressions,T.age3544FemaleUniqueViewableImpressions+=k.age3544FemaleViewableImpressions,T.age4554FemaleUniqueViewableImpressions+=k.age4554FemaleViewableImpressions,T.age55FemaleUniqueViewableImpressions+=k.age55FemaleViewableImpressions})}}),y.validateData(),f.validateData(),R.validateData(),S.validateData()},x=p.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:w,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:w,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSpecial_amountOfViews"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),y=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),f=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(I,A){return-1*I.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(I){return I<0?-1*I+"":I+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),R=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),S=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[x],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:i,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:i,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:i,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:i,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var D=function(){var I=moment(u.startDate).startOf("day").toDate(),A=moment(u.endDate).startOf("day").add(-1,"d").toDate();b.zoom(I,moment(A).add(1,"d").toDate()),function(I,A){x.viewableImpressions=0,x.billableViewableImpressions=0,x.activeTimeSeconds=0,x.readings=0,x.uniqueReadings=0,x.uniqueReadingsHavingViewableImpressions=0,x.uniqueReadingPercentageReads=0,x.maleUniqueViewableImpressions=0,x.femaleUniqueViewableImpressions=0,x.desktopReadings=0,x.mobileReadings=0,x.tabletReadings=0,x.age1617MaleUniqueViewableImpressions=0,x.age1824MaleUniqueViewableImpressions=0,x.age2534MaleUniqueViewableImpressions=0,x.age3544MaleUniqueViewableImpressions=0,x.age4554MaleUniqueViewableImpressions=0,x.age55MaleUniqueViewableImpressions=0,x.age1617FemaleUniqueViewableImpressions=0,x.age1824FemaleUniqueViewableImpressions=0,x.age2534FemaleUniqueViewableImpressions=0,x.age3544FemaleUniqueViewableImpressions=0,x.age4554FemaleUniqueViewableImpressions=0,x.age55FemaleUniqueViewableImpressions=0,x.uniqueReadingPercentage24Reads=0,x.uniqueReadingPercentage2549Reads=0,x.uniqueReadingPercentage5074Reads=0,x.uniqueReadingPercentage75100Reads=0;var C=0,U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0,K=0;x.start=I,x.end=A,$.each(w,function(z,Q){var G=new Date(Q.start);G<I||G>A||(x.viewableImpressions+=Q.viewableImpressions,x.activeTimeSeconds+=Q.activeTimeSeconds,x.readings+=Q.readings,x.maleUniqueViewableImpressions+=Q.maleUniqueViewableImpressions,x.femaleUniqueViewableImpressions+=Q.femaleUniqueViewableImpressions,x.uniqueReadings+=Q.uniqueReadings,C+=Q.desktopReadings,U+=Q.mobileReadings,k+=Q.tabletReadings,T+=Q.age1617MaleUniqueViewableImpressions,V+=Q.age1824MaleUniqueViewableImpressions,M+=Q.age2534MaleUniqueViewableImpressions,_+=Q.age3544MaleUniqueViewableImpressions,O+=Q.age4554MaleUniqueViewableImpressions,q+=Q.age55MalUniqueeViewableImpressions,P+=Q.age1617FemaleUniqueViewableImpressions,E+=Q.age1824FemaleUniqueViewableImpressions,N+=Q.age2534FemaleUniqueViewableImpressions,j+=Q.age3544FemaleUniqueViewableImpressions,W+=Q.age4554FemaleUniqueViewableImpressions,K+=Q.age55FemaleUniqueViewableImpressions)});var Y=C+U+k;x.desktopReadings=Math.round(100/(Y/C)),x.mobileReadings=Math.round(100/(Y/U)),x.tabletReadings=Math.round(100/(Y/k)),x.maleUniqueViewableImpressions=Math.round(x.maleUniqueViewableImpressions),x.femaleUniqueViewableImpressions=Math.round(x.femaleUniqueViewableImpressions),m[0].value=x.femaleUniqueViewableImpressions,m[1].value=x.maleUniqueViewableImpressions;var B=x.viewableImpressions-(T+V+M+_+O+q+P+E+N+j+W+K);B>100&&(T+=B*t.scope.globalSettings.reportAverageAge1617Male,V+=B*t.scope.globalSettings.reportAverageAge1824Male,M+=B*t.scope.globalSettings.reportAverageAge2534Male,_+=B*t.scope.globalSettings.reportAverageAge3544Male,O+=B*t.scope.globalSettings.reportAverageAge4554Male,q+=B*t.scope.globalSettings.reportAverageAge55Male,P+=B*t.scope.globalSettings.reportAverageAge1617Female,E+=B*t.scope.globalSettings.reportAverageAge1824Female,N+=B*t.scope.globalSettings.reportAverageAge2534Female,j+=B*t.scope.globalSettings.reportAverageAge3544Female,W+=B*t.scope.globalSettings.reportAverageAge4554Female,K+=B*t.scope.globalSettings.reportAverageAge55Female),x.age1617MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/T)),x.age1824MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/V)),x.age2534MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/M)),x.age3544MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/_)),x.age4554MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/O)),x.age55MaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/q)),x.age1617FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/P)),x.age1824FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/E)),x.age2534FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/N)),x.age3544FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/j)),x.age4554FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/W)),x.age55FemaleUniqueViewableImpressions=Math.round(100/(x.viewableImpressions/K)),d[0].male=Math.round(-1*x.age1617MaleUniqueViewableImpressions),d[1].male=Math.round(-1*x.age1824MaleUniqueViewableImpressions),d[2].male=Math.round(-1*x.age2534MaleUniqueViewableImpressions),d[3].male=Math.round(-1*x.age3544MaleUniqueViewableImpressions),d[4].male=Math.round(-1*x.age4554MaleUniqueViewableImpressions),d[5].male=Math.round(-1*x.age55MaleUniqueViewableImpressions),d[0].female=Math.round(x.age1617FemaleUniqueViewableImpressions),d[1].female=Math.round(x.age1824FemaleUniqueViewableImpressions),d[2].female=Math.round(x.age2534FemaleUniqueViewableImpressions),d[3].female=Math.round(x.age3544FemaleUniqueViewableImpressions),d[4].female=Math.round(x.age4554FemaleUniqueViewableImpressions),d[5].female=Math.round(x.age55FemaleUniqueViewableImpressions),o[0].value=x.desktopReadings,o[1].value=x.mobileReadings,o[2].value=x.tabletReadings,y.validateData(),f.validateData(),R.validateData(),S.validateData(),e.$apply()}(I,A)};u.addListener("zoomed",function(I){D()}),e.toggleChapter=function(I){$.each(p,function(A,C){C.chapter.name===I&&(C.active=!C.active)}),h(function(){g(),D()},50)},g(),b.validateNow(),u.validateNow(),u.setDefaultPeriod(),D(),u.zoom(new Date(s.start),new Date)},function(){e.error=!0})})},function(){r.path("/")});var m=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.factory("specialService",["$http","$q","$rootScope",function(e,t,a){var n=[],l=[];return a.$on("$locationChangeSuccess",function(){n.length=0,l.length=0}),{getSpecial:function(o){var s=t.defer();return o?e.get(scope.apiEndpoint+"specials/"+o).then(function(p){s.resolve(p.data)},function(){s.reject()}):n.length>0?s.resolve(n.splice(0,1)[0]):l.push(s),s.promise},getSpecialInfo:function(o){var s=t.defer();return e.get(scope.apiEndpoint+"specials/"+o+"/ReportInfo").then(function(p){s.resolve(p.data)},function(){s.reject()}),s.promise},getSpecialCalendar:function(o){var s=t.defer();return e.get(scope.apiEndpoint+"specials/"+o+"/ReportCalendar").then(function(p){s.resolve(p.data)},function(){s.reject()}),s.promise},resolve:function(o,s){var p=t.defer();return l.length>o&&(o=l.length),e.get(scope.apiEndpoint+"specials/"+o+"/"+s).then(function(u){p.resolve(u.data),n.length=0,n.push.apply(n,u.data),l.forEach(function(b){n.length>0?b.resolve(n.splice(0,1)[0]):b.reject()}),l.length=0},function(){p.reject()}),p.promise},getActiveSpecials:function(){var o=t.defer();return e.get(scope.apiEndpoint+"specials/sections").then(function(s){o.resolve(s.data)},function(){o.reject()}),o.promise},getSpecialReport:function(o){var s=t.defer();return e.post(scope.apiEndpoint+"specials/report",o).then(function(p){s.resolve(p.data)},function(){s.reject()}),s.promise}}}]),app.controller("SponsoredArticleDetailController",["$rootScope","$scope","snipService","sponsoredArticleService","parserService","$location","sponsoredArticle","$timeout","$uibModal",function(e,t,a,n,l,c,h,r,i){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.$on("$viewContentLoaded",function(){r(function(){t.viewContentLoaded=!0})});var m,b,d=function(){m=t.sponsoredArticle.assetReferences.reduce(function(b,y,f){return b[y.guid]=y,b},{})};if(t.resolveAsset=function(b){return m[b]},$(window).scroll(function(b){$(b.target).scrollTop()>100?$(".sponsoredArticleDetail-mobileNavigation-wrapper").addClass("sponsoredArticleDetail-mobileNavigation-wrapper-scrolled"):$(".sponsoredArticleDetail-mobileNavigation-wrapper").removeClass("sponsoredArticleDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedArticles=[],t.recommendedArticlePairs=[],t.recommendedSnips=[],t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.$parent&&(t.$parent.sponsoredArticleUpdater||t.$parent.$parent.sponsoredArticleUpdater))t.sponsoredArticleUpdater=!0,(t.$parent.sponsoredArticleUpdater?t.$parent:t.$parent.$parent).$on("articleUpdate",function(b,y){t.sponsoredArticle=y,l.postProcessHtml(t.sponsoredArticle),t.sponsoredArticle.detailsLoaded=!0,d(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"sponsoredArticle.detailsLoaded"},function(b){b&&d()});var s=h.id;if(n.getRecommendedArticles(s).then(function(b){if(b.length){[].push.apply(t.recommendedArticles,b);for(var y=0;y<t.recommendedArticles.length;y+=2){var f=[];f.push(t.recommendedArticles[y]),t.recommendedArticles.length>y+1&&f.push(t.recommendedArticles[y+1]),t.recommendedArticlePairs.push(f)}}}),t.sponsoredArticle=h,l.postProcessHtml(t.sponsoredArticle),a.getRecommendedSnips(s).then(function(b){t.recommendedSnips=b}),(b=window.navigator.userAgent).indexOf(" Android ")>-1&&b.indexOf("Version/")>-1&&parseFloat((b.match("Android ([0-9.]+)")||[])[1])<=4.4){var u=$(window).height();$(".app-mobile .sponsoredArticleDetail-wrapper").css("height",u+"px"),$(".app-desktop .sponsoredArticleDetail-wrapper").css("height",u+"px")}}t.assetImageFocuspointDialog=function(b){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return b}}})},t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartShareSponsoredArticle","SponsoredArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(t.sponsoredArticle.heading?t.sponsoredArticle.heading+": ":"")+t.sponsoredArticle.text+" "+c.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessShareSponsoredArticle","SponsoredArticleDetail"])}))}}]),app.controller("SponsoredArticleEditController",["$scope","sponsoredArticleService","metaService","$state","authService","fileUploadService","$location","$timeout","$uibModal","$rootScope","proseMirrorEditorService","editorCommentSponsoredArticleService","editorAssetsService","spellingService","backendHubProxy",function(e,t,a,n,l,c,h,r,i,m,d,o,s,p,u){e.initializedMobile=e.mobile,e.enableHighQualityImage=m.scope.network.settings.configurations.enableHighQualityImage,e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null},e.$on("$destroy",function(){a.setFavicon()}),e.sponsoredArticleUpdater=!0;var R,b=n.params.id,y="sp_"+b+"_"+m.scope.currentScope.chapter.id,f=u("editorHub"),S=!1;e.sponsoredArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var v=m.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return v};var w=!1;m.$on("$stateChangeStart",function(P,E){w?P.preventDefault():e.changed&&!confirm(v)?(w=!0,P.preventDefault(),S=!1,r(function(){w=!1},1e3)):(e.changed=!1,S&&(f.invoke("leaveGroup",y),d.closeConnection(),f.stop(),S=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var x=function(P){e.sponsoredArticle=P;var E=A(P);E?e.revision=E:P.revisions.push(e.revision),e.revision.texts.length||(E.texts=[{heading:"",text:""}]),R=I(P),r(function(){e.textCarousel||(e.textCarousel=$("#sponsoredArticleEdit-text-wrapper").find(".sponsoredArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(N,j){e.textSlickIndex=j.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#sponsoredArticleEdit-cover-wrapper").find(".sponsoredArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(N,j){e.coverAssetSlickIndex=j.currentSlide})),e.revision.texts.push({}),r(function(){e.revision.texts.splice(e.revision.texts.length-1,1),r(function(){e.textSlick=e.textCarousel.slick({dots:!0,initialSlide:e.textSlickIndex})},100)}),e.revision.coverAssetImages.push({}),r(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),r(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0,initialSlide:e.coverAssetSlickIndex})},100)})})};e.addTextVariant=function(){e.textSlick=e.textCarousel.slick("unslick"),r(function(){e.revision.texts.push({heading:"",text:""}),r(function(){e.textSlick=e.textCarousel.slick({dots:!0}),e.textSlick.slick("slickGoTo",e.revision.texts.length-1)})})},e.delTextVariant=function(){var P=e.textSlick.slick("slickCurrentSlide");e.textSlick.slick("slickRemove",P-1),e.revision.texts.splice(P,1),e.textSlick.slick("unslick"),e.revision.texts.push({}),r(function(){e.revision.texts.splice(e.revision.texts.length-1,1),r(function(){e.textSlick=e.textCarousel.slick({dots:!0}),P>0&&(e.textSlick.slick("slickGoTo",P-1),e.textSlickIndex=P-1)},100)})},e.mobileEditorFocused=!1,e.focusMobileEditor=function(){e.mobileEditorFocused=!0},e.blurMobileEditor=function(){e.mobileEditorFocused=!1},e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){if(e.revision.coverAssetImages.length>1){var P=e.coverAssetSlick.slick("slickCurrentSlide");e.coverAssetSlick.slick("slickRemove",P-1),e.revision.coverAssetImages.splice(P,1),e.coverAssetSlick.slick("unslick"),e.revision.coverAssetImages.push({}),r(function(){e.revision.coverAssetImages.splice(e.revision.coverAssetImages.length-1,1),r(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),P>0&&(e.coverAssetSlick.slick("slickGoTo",P-1),e.coverAssetSlickIndex=P-1)})})}},e.pickCoverAsset=function(P){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(E){e.coverAssetSlick.slick("unslick"),P&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=E.assetImage:e.revision.coverAssetImages.push(E.assetImage),r(function(){e.coverAssetSlick=e.coverAssetCarousel.slick({dots:!0}),e.coverAssetSlick.slick("slickGoTo",e.revision.coverAssetImages.length-1)})}},sponsoredArticle:function(){return e.sponsoredArticle}}})},e.assetDialog=function(){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return F},sponsoredArticle:function(){return e.sponsoredArticle}}})};var F=function(P){r(function(){e.insertAsset(P)},500)};e.insertAsset=function(P){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var E=$("#sponsoredArticleEdit-editor-mobile")[0],N=E.selectionStart,j=E.selectionEnd,W=E.value,K=W.substring(0,N),Y=W.substring(j,W.length),B="\n!["+P.guid+"]\n";E.value=K+B+Y,r(function(){E.selectionStart=E.selectionEnd=N+B.length,E.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+P.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){for(var P=angular.copy(e.sponsoredArticle),E=e.revision.coverAssetImages.map(function(j){return j.id}),N=0;N<E.length;N++)if(E.lastIndexOf(E[N])>N)return void i.open({templateUrl:"/ClientApp/src/legacy-app/article/noDuplicateCoverAssetDialog.html"});P.texts=e.revision.texts,P.coverAssetImages=e.revision.coverAssetImages,P.summary=P.revisions[0].summary,P.jsonDocument=d.getDocument(),P.HtmlDocument=d.getHtmlDocument(),t.updateSponsoredArticle(P).then(function(j){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),x(j.data)},function(){i.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(P){if(e.editForm.$submitted=!0,P){var E=angular.copy(e.sponsoredArticle);t.publishSponsoredArticle(E).then(function(N){e.changed=!1,e.textSlick=e.textCarousel.slick("unslick"),e.coverAssetSlick=e.coverAssetCarousel.slick("unslick"),x(N.data)},function(){})}},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var P=angular.copy(e.sponsoredArticle);P.content=d.getHtmlDocument(),P.assetReferences=P.assetReferences,P.text=e.revision.texts[0].text,P.heading=e.revision.texts[0].heading,P.summary=e.revision.summary,P.sponsored=!0,e.revision.coverAssetImages.length&&(P.coverAssetReference=P.assetReferences.filter(function(E){return E.assetImage&&E.assetImage.id===e.revision.coverAssetImages[0].id})[0]),r(function(){e.$broadcast("articleUpdate",P)},500)}};var I=function(P){var E=A(P);return angular.toJson(E.texts)+angular.toJson(E.coverAssetImages)+E.summary+E.jsonDocument},A=function(P){var E=e.scope.currentScope.chapter.slug,N=P.revisions.filter(function(W){return W.chapterSlug===E});if(N.length)return N[0];var j=P.revisions.filter(function(W){return null===W.chapterSlug});return j.length?j[0]:void 0},C=function(P,E){i.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(N){if(E){d.setFocus();var j=[];$.each(N,function(W,K){j.push({guid:K.guid,type:K.assetImage?K.assetImage.type:K.assetText.type})}),E(j)}}},sponsoredArticle:function(){return e.sponsoredArticle}}})},U=function(P,E){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return E},messageHolder:function(){return new MessageHolder(e.sponsoredArticle)},sourceService:function(){return o}}})},k=function(P,E,N){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return N},onAddedCallback:function(){return E},messageHolder:function(){return new MessageHolder(e.sponsoredArticle)},chainComments:function(){return P},sourceService:function(){return o}}})},T=function(P){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return P}}})},V=function(P,E){i.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return E}}})},M=function(P){return s.getAsset(P,e.sponsoredArticle.assetReferences)},_=function(P){r(function(){A(e.sponsoredArticle).jsonDocument=P,e.numberOfWords=p.countWords(d.getHtmlDocument())})};$(".sponsoredArticleEdit-wrapper").scroll(function(){!function P(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),f.on("broadcastSummary",function(P){e.revision.summary=P}),f.on("broadcastHeading",function(P){e.revision.texts[P.indexPosition].heading=P.heading}),f.on("broadcastAddVariant",function(){e.addTextVariant(!1)}),f.on("broadcastDeleteVariant",function(P){e.delTextVariant(!1,P.indexPosition)}),f.on("broadcastTitle",function(P){e.revision.texts[P.indexPosition].text=P.title}),f.start(function(){f.invoke("joinGroup",y)}),e.leaveEditor=function(){S=!0},e.blurHeading=function(P){f.invoke("updatingHeading",{groupName:y,heading:e.revision.texts[P].heading,indexPosition:P})},e.blurTitle=function(P){f.invoke("updatingTitle",{groupName:y,title:e.revision.texts[P].text,indexPosition:P})},e.blurSummary=function(){f.invoke("updatingSummary",{groupName:y,summary:e.revision.summary})},t.getSponsoredArticleEdit(b).then(function(P){e.loading=!1,x(P),d.init({docID:"sparticle_"+P.id+"_"+scope.currentChapter.slug,assetDlgFactory:C,commentCreationDlgFactory:U,commentMgmtDlgFactory:k,initialDocument:A(P).jsonDocument,initialAssetReferences:P.assetReferences,createLinkFactory:T,callToActionDlgFactory:V,assetResolver:M,onNewStateFactory:_,onLoadTransactionCallback:_,languageCode:m.scope.currentScope.network.settings.languageCode}),a.setFavicon(!0),e.$watch(function(){return I(e.sponsoredArticle)},function(P){e.changed=R!==P})},function(){h.path("/")})}]),app.controller("SponsoredArticleListController",["$scope","$timeout","$rootScope","sponsoredArticleService",function(e,t,a,n){n.getSponsoredArticles().then(function(l){e.sponsoredArticles=l,t(function(){a.$emit("lazyImg:refresh")})})}]),app.factory("sponsoredArticleService",["$http","$q",function(e,t){var a={};return{getSponsoredArticles:function(){var p=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles").then(function(u){p.resolve(u.data)}),p.promise},getSponsoredArticle:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+p).then(function(b){u.resolve(b.data)}),u.promise},getSponsoredArticlesForEventCalendar:function(){var p=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/events").then(function(u){var b=u.data;b.forEach(function(y,f){b[f]=function(p){if(!p.articleListDisplayableType||2!==p.articleListDisplayableType)return p;if(p.coverAssetReference||(p.coverAssetReference={assetImage:{assetImageUrl:scope.globalSettings.blobStorageCdnUrl+"/"+scope.globalSettings.blobStorageContainerNameImage+"/dummy.jpg",source:scope.currentScope.network.name,text:"Symbolbild",cache:0}}),a[p.id]){var u=a[p.id],b=function(p){return p&&a[p]?{revisionTestId:a[p].revisionTestId,heading:a[p].heading,text:a[p].text,coverAsset:angular.copy(a[p].coverAsset)}:{}}(u.id);return!u.detailsLoaded||p.detailsLoaded?angular.copy(p,u):angular.extend(u,p),angular.extend(u,b),p.assets&&p.coverAsset&&p.coverAsset.guid&&p.assets.forEach(function(y){if(y.guid===p.coverAsset.guid)return u.coverAsset=y,!1}),u}return a[p.id]=p,p}(y)}),p.resolve(b)},function(){p.reject()}),p.promise},getSponsoredArticleEdit:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+p+"/edit").then(function(b){u.resolve(b.data)},function(b){u.reject()}),u.promise},getRecommendedArticles:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"sponsoredArticles/"+p+"/recommendedarticles").then(function(b){u.resolve(b.data)}),u.promise},getSponsoredArticleParse:function(p,u){var b=t.defer();return e.post(scope.apiEndpoint+"sponsoredArticles/"+p+"/parse",u).then(function(y){b.resolve(y.data)},function(){b.reject()}),b.promise},updateSponsoredArticle:function(p){var u=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles",p).then(function(b){angular.copy(b.data,p),u.resolve(b)},function(){u.reject()}),u.promise},publishSponsoredArticle:function(p){var u=t.defer();return e.put(scope.apiEndpoint+"sponsoredArticles/"+p.id+"/publish",p).then(function(b){u.resolve(b)},function(){u.reject()}),u.promise}}}]),app.controller("SponsoredArticleCampaignElasticReportController",["$scope","$rootScope","sponsoredArticleCampaignService","formatterService","scopeService","$timeout","$location","$stateParams",function(e,t,a,n,l,c,h,r){var i=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";e.dateFormatString=n.getShortDateFormatString();var d,o,s,p,m=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],u={impressions:0,readings:0,billableImpressions:0,uniqueImpressions:0,uniqueReadings:0,uniqueReadingPercentageReads:0,uniqueViewableImpressions:0,activeTimeSeconds:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0,end:moment(new Date).startOf("day").toDate()},b=[],y=[],f=[];a.GetSponsoredArticleReport(r.pin).then(function(R){var S=R.chapterReports,g=function(){(d=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",marginRight:80,marginTop:7,path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:b,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).validateData(),d.addListener("zoomed",function(){var I,A;u.start=moment(d.startDate).startOf("day").toDate(),u.end=moment(d.endDate).startOf("day").toDate(),o.zoom(u.start,moment(u.end).startOf("day").add(1,"d").toDate()),I=moment(u.start).startOf("day").add(1,"d").toDate(),A=moment(u.end).startOf("day").add(2,"d").toDate(),$.each(S,function(C,U){U.chapter=l.getChapter(U.chapterSlug),a.getChapterReport({chapterId:U.chapter.id,start:I,end:A,pin:R.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:R.sponsoredArticleCampaign.id}).then(function(k){U.reports=k,D()}),d.validateData(),o.validateData(),s.validateData(),p.validateData()})}),o=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:"Gesamt",color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"readings",toField:"readings"}],dataProvider:y,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:t.scope.currentScope.network.resources.web_report_viewableImpressions+": <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:t.scope.currentScope.network.resources.web_reportArticle_articleCallsHeading,percentHeight:30,stockGraphs:[{valueField:"readings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:t.scope.currentScope.network.resources.web_report_views+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),s=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),p=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[u],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:i,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:i,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:i,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:i,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}})};AmCharts.isReady?g():AmCharts.ready(g),e.sponsoredArticleCampaign=R.sponsoredArticleCampaign,e.sponsoredArticleCampaign.report=S,$.each(S,function(I,A){A.active=!0,A.variants.length&&$.each(A.variants,function(C,U){U.viewableImpressions>0&&(S.hasVariants=!0,U.hasViews=!0)})});for(var x=new Date(R.sponsoredArticleCampaign.start);x<=moment(new Date).startOf("day").add(1,"d").toDate();x.setDate(x.getDate()+1)){var F={start:new Date(x),viewableImpressions:0,readings:0};f[F.start.toDateString()]=F,y.push(F)}u.start=moment(R.sponsoredArticleCampaign.start).startOf("day").toDate(),e.summary=u;var D=function(){if(S.hasVariants=!1,$.each(y,function(A,C){C.readings=0,C.viewableImpressions=0}),u.impressions=0,u.billableImpressions=0,u.readings=0,u.billableReadings=0,u.uniqueImpressions=0,u.uniqueReadings=0,u.uniqueReadingPercentageReads=0,u.uniqueViewableImpressions=0,u.activeTimeSeconds=0,u.uniqueReadingsHavingViewableImpressions=0,u.uniqueReadingPercentage24Reads=0,u.uniqueReadingPercentage2549Reads=0,u.uniqueReadingPercentage5074Reads=0,u.uniqueReadingPercentage75100Reads=0,m[0].value=0,m[1].value=0,m[2].value=0,$.each(S,function(A,C){if(C.active){var U=0;$.each(C.reports,function(k,T){var V=!1;$.each(R.sponsoredArticleCampaign.sponsoredArticles,function(M,_){_.id===T.sponsoredArticleId&&_.active&&(V=!0)}),V&&(T.billableImpressionCalendar.length&&$.each(T.billableImpressionCalendar,function(M,_){f[new Date(_.day).toDateString()].viewableImpressions+=_.data}),T.readingCalendar.length&&$.each(T.readingCalendar,function(M,_){f[new Date(_.day).toDateString()].readings+=_.data}),u.impressions+=T.impressions,u.billableImpressions+=T.billableImpressions,u.readings+=T.readings,u.billableReadings+=T.billableReadings,u.uniqueReadings+=T.uniqueReadings,u.uniqueReadingsHavingViewableImpressions+=T.uniqueReadingsHavingViewableImpressions,u.uniqueImpressions+=T.uniqueImpressions,u.uniqueReadingPercentageReads+=T.uniqueReadingPercentageReads,u.activeTimeSeconds+=T.activeTimeSeconds,u.uniqueReadingPercentage24Reads+=T.uniqueReadingPercentage24Reads,u.uniqueReadingPercentage2549Reads+=T.uniqueReadingPercentage2549Reads,u.uniqueReadingPercentage5074Reads+=T.uniqueReadingPercentage5074Reads,u.uniqueReadingPercentage75100Reads+=T.uniqueReadingPercentage75100Reads,U+=T.desktopCount+T.mobileCount+T.tabletCount,m[0].value+=T.desktopCount,m[1].value+=T.mobileCount,m[2].value+=T.tabletCount)}),m[0].value=Math.round(m[0].value/U*100),m[1].value=Math.round(m[1].value/U*100),m[2].value=Math.round(m[2].value/U*100),C.variants.length&&$.each(C.variants,function(k,T){T.viewableImpressions>0&&(S.hasVariants=!0,T.hasViews=!0)})}}),S.length>1){var I=S.filter(function(A){return A.active}).length;m[0].value=Math.round(m[0].value/I),m[1].value=Math.round(m[1].value/I),m[2].value=Math.round(m[2].value/I)}d.validateData(),o.validateData(),s.validateData(),p.validateData()};e.toggleChapter=function(I){$.each(S,function(A,C){null!==C.chapter&&C.chapter.name===I&&(C.active=!C.active)}),D()},e.toggleReport=function(I){$.each(R.sponsoredArticleCampaign.sponsoredArticles,function(A,C){C.guid===I.guid&&(C.active=!C.active)}),D()},$.each(S,function(I,A){A.chapter=l.getChapter(A.chapterSlug),a.getChapterReport({chapterId:A.chapter.id,start:R.sponsoredArticleCampaign.start,end:moment(new Date).startOf("day").add(2,"d").toDate(),pin:R.sponsoredArticleCampaign.pin,sponsoredArticleCampaignId:R.sponsoredArticleCampaign.id}).then(function(C){A.reports=C,D(),$.each(R.sponsoredArticleCampaign.sponsoredArticles,function(U,k){k.active=!0}),$.each(y,function(U,k){b.push({start:k.start,viewableImpressions:k.viewableImpressions})})}),d.validateData(),o.validateData(),s.validateData(),p.validateData()})})}]),app.factory("sponsoredArticleCampaignService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,l,c){var h=[],i=function(){var p=t.defer();return h.length>0?p.resolve(h):e.get(scope.apiEndpoint+"SponsoredArticleCampaigns").then(function(u){angular.copy(u.data,h),p.resolve(h)},function(){p.reject()}),p.promise};function m(p){var u=null;return $.each(h,function(b,y){if(y.pin===p)return u=y,!1}),u}return{sponsoredArticleCampaigns:h,getsponsoredArticleCampaigns:i,getreportSponsoredArticleCalendar:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+p+"/ReportSponsoredArticleCalendar").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getsponsoredArticleCampaignByPin:function(p){var u=t.defer();if(h.length>0){var b=m(p);b?u.resolve(b):e.get(scope.apiEndpoint+"/SponsoredArticleCampaigns"+p).then(function(y){u.resolve(y.data)},function(){u.reject()})}else i().then(function(){var y=m(p);y?u.resolve(y):e.get(scope.apiEndpoint+"sponsoredArticleCampaigns/"+p).then(function(f){u.resolve(f.data)},function(){u.reject()})},function(){u.reject()});return u.promise},GetSponsoredArticleReport:function(p){var u=t.defer();return e.get(scope.apiEndpoint+"SponsoredArticleCampaigns/"+p+"/Elastic").then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getChapterReport:function(p){var u=t.defer();return e.post(scope.apiEndpoint+"SponsoredArticleCampaigns/chapterReport",p).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise}}}]),app.controller("sponsoredArticleCampaignReportController",["$scope","$rootScope","sponsoredArticleCampaignService","articleService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r,i){AmCharts.isReady=!0;var m=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd";a.getsponsoredArticleCampaignByPin(c.pin).then(function(p){e.sponsoredArticleCampaign=p,a.getreportSponsoredArticleCalendar(p.pin).then(function(u){u.forEach(function(b){b.chapter=l.getChapter(b.chapterSlug),b.reports.forEach(function(y){y.calendar.forEach(function(f){f.start=moment(f.start.replace("Z","")).toDate(),f.end=moment(f.end.replace("Z","")).toDate()})})}),p.report=u,r(function(){var b,y,f,R,S,v,w=new Set;$.each(u,function(A,C){C.active=!0,w.add(C.chapter.name)}),u.uniqueChapters=[],w.forEach(function(A){u.uniqueChapters.push(A)}),$.each(p.sponsoredArticles,function(A,C){C.reportActive=!0});var g=[],x=function(){g.length=0,u.hasVariants=!1,$.each(u[0].reports[0].calendar,function(A,C){g.push({start:C.start,end:C.end,viewableImpressions:0,billableViewableImpressions:0,uniqueViewableImpressions:0,activeTimeSeconds:0,readings:0,uniqueReadings:0,uniqueReadingsHavingViewableImpressions:0,uniqueReadingPercentageReads:0,maleUniqueViewableImpressions:0,femaleUniqueViewableImpressions:0,desktopReadings:0,mobileReadings:0,tabletReadings:0,age1617MaleUniqueViewableImpressions:0,age1824MaleUniqueViewableImpressions:0,age2534MaleUniqueViewableImpressions:0,age3544MaleUniqueViewableImpressions:0,age4554MaleUniqueViewableImpressions:0,age55MaleUniqueViewableImpressions:0,age1617FemaleUniqueViewableImpressions:0,age1824FemaleUniqueViewableImpressions:0,age2534FemaleUniqueViewableImpressions:0,age3544FemaleUniqueViewableImpressions:0,age4554FemaleUniqueViewableImpressions:0,age55FemaleUniqueViewableImpressions:0,uniqueReadingPercentage24Reads:0,uniqueReadingPercentage2549Reads:0,uniqueReadingPercentage5074Reads:0,uniqueReadingPercentage75100Reads:0})}),$.each(u,function(A,C){C.active&&(u[A-1]&&2===u[A-1].chapter.managementState&&2===C.chapter.managementState&&u[A-1].chapter.name!==C.chapter.name&&(u.multiChapterShipment=!0),$.each(C.reports,function(U,k){k.variants&&(p.report.hasVariants=!0,$.each(k.variants,function(T,V){V.viewableImpressions>0&&(V.hasViews=!0)}))}),$.each(C.reports,function(U,k){if(p.sponsoredArticles[U].reportActive){var T=k.sponsoredArticle.Id;$.each(k.calendar,function(V,M){M.sponsoredArticleId=T,g[V].uniqueViewableImpressions+=M.uniqueViewableImpressions,g[V].viewableImpressions+=M.viewableImpressions,g[V].billableViewableImpressions+=M.billableViewableImpressions,g[V].activeTimeSeconds+=M.activeTimeSeconds,g[V].readings+=M.readings,g[V].uniqueReadingPercentageReads+=M.uniqueReadingPercentageReads,g[V].maleUniqueViewableImpressions+=M.maleUniqueViewableImpressions,g[V].femaleUniqueViewableImpressions+=M.femaleUniqueViewableImpressions,g[V].uniqueReadings+=M.uniqueReadings,g[V].uniqueReadingsHavingViewableImpressions+=M.uniqueReadingsHavingViewableImpressions,g[V].uniqueReadingPercentage24Reads+=M.uniqueReadingPercentage24Reads,g[V].uniqueReadingPercentage2549Reads+=M.uniqueReadingPercentage2549Reads,g[V].uniqueReadingPercentage5074Reads+=M.uniqueReadingPercentage5074Reads,g[V].uniqueReadingPercentage75100Reads+=M.uniqueReadingPercentage75100Reads,g[V].desktopReadings+=M.desktopReadings,g[V].mobileReadings+=M.mobileReadings,g[V].tabletReadings+=M.tabletReadings,g[V].age1617MaleUniqueViewableImpressions+=M.age1617MaleUniqueViewableImpressions,g[V].age1824MaleUniqueViewableImpressions+=M.age1824MaleUniqueViewableImpressions,g[V].age2534MaleUniqueViewableImpressions+=M.age2534MaleUniqueViewableImpressions,g[V].age3544MaleUniqueViewableImpressions+=M.age3544MaleUniqueViewableImpressions,g[V].age4554MaleUniqueViewableImpressions+=M.age4554MaleUniqueViewableImpressions,g[V].age55MaleUniqueViewableImpressions+=M.age55MaleUniqueViewableImpressions,g[V].age1617FemaleUniqueViewableImpressions+=M.age1617FemaleUniqueViewableImpressions,g[V].age1824FemaleUniqueViewableImpressions+=M.age1824FemaleUniqueViewableImpressions,g[V].age2534FemaleUniqueViewableImpressions+=M.age2534FemaleUniqueViewableImpressions,g[V].age3544FemaleUniqueViewableImpressions+=M.age3544FemaleUniqueViewableImpressions,g[V].age4554FemaleUniqueViewableImpressions+=M.age4554FemaleUniqueViewableImpressions,g[V].age55FemaleUniqueViewableImpressions+=M.age55FemaleUniqueViewableImpressions})}}))}),y.validateData(),b.validateData()},F=u.summary={};b=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",useUTC:!0,dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:g,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"uniqueReadings",valueField:"uniqueReadings"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"uniqueReadings",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),y=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:m,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"uniqueReadings",toField:"uniqueReadings"}],dataProvider:g,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_reportSponsoredArticle_uniqueReadersAmount"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders"),valueField:"uniqueReadings",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_uniqueReaders")+": <i class='fa fa-user'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),f=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,marginLeft:2,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),R=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:m,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(A){return-1*A.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(A){return A<0?-1*A+"":A+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),S=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:s,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:m,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),v=AmCharts.makeChart("chartPercentage",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:[F],rotate:!0,graphs:[{title:"0-24%",labelText:"0-24%",valueField:"uniqueReadingPercentage24Reads",lineColor:m,fillAlphas:.15,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"25-49%",labelText:"25-49%",valueField:"uniqueReadingPercentage2549Reads",lineColor:m,fillAlphas:.25,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"50-74%",labelText:"50-74%",valueField:"uniqueReadingPercentage5074Reads",lineColor:m,fillAlphas:.5,lineAlpha:0,type:"column",balloonText:"[[percents]]%"},{title:"75-100%",labelText:"75-100%",valueField:"uniqueReadingPercentage75100Reads",lineColor:m,fillAlphas:1,lineAlpha:0,type:"column",balloonText:"[[percents]]%"}],valueAxes:[{stackType:"100%",labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,labelsEnabled:!1,inside:!0,tickLength:0,axisAlpha:0}});var I=function(){var A=moment(b.startDate).startOf("day").toDate(),C=moment(b.endDate).startOf("day").add(-1,"d").toDate();y.zoom(A,moment(C).add(1,"d").toDate()),function(A,C){F.viewableImpressions=0,F.billableViewableImpressions=0,F.uniqueViewableImpressions=0,F.activeTimeSeconds=0,F.readings=0,F.uniqueReadings=0,F.uniqueReadingsHavingViewableImpressions=0,F.uniqueReadingPercentageReads=0,F.maleUniqueViewableImpressions=0,F.femaleUniqueViewableImpressions=0,F.desktopReadings=0,F.mobileReadings=0,F.tabletReadings=0,F.age1617MaleUniqueViewableImpressions=0,F.age1824MaleUniqueViewableImpressions=0,F.age2534MaleUniqueViewableImpressions=0,F.age3544MaleUniqueViewableImpressions=0,F.age4554MaleUniqueViewableImpressions=0,F.age55MaleUniqueViewableImpressions=0,F.age1617FemaleUniqueViewableImpressions=0,F.age1824FemaleUniqueViewableImpressions=0,F.age2534FemaleUniqueViewableImpressions=0,F.age3544FemaleUniqueViewableImpressions=0,F.age4554FemaleUniqueViewableImpressions=0,F.age55FemaleUniqueViewableImpressions=0,F.uniqueReadingPercentage24Reads=0,F.uniqueReadingPercentage2549Reads=0,F.uniqueReadingPercentage5074Reads=0,F.uniqueReadingPercentage75100Reads=0;var U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0,K=0,Y=0;F.start=A,F.end=C,$.each(g,function(Q,G){var L=new Date(G.start);L<A||L>C||(F.viewableImpressions+=G.viewableImpressions,F.billableViewableImpressions+=G.billableViewableImpressions,F.uniqueViewableImpressions+=G.uniqueViewableImpressions,F.activeTimeSeconds+=G.activeTimeSeconds,F.readings+=G.readings,F.uniqueReadingPercentageReads+=G.uniqueReadingPercentageReads,F.maleUniqueViewableImpressions+=G.maleUniqueViewableImpressions,F.femaleUniqueViewableImpressions+=G.femaleUniqueViewableImpressions,F.uniqueReadings+=G.uniqueReadings,F.uniqueReadingsHavingViewableImpressions+=G.uniqueReadingsHavingViewableImpressions,F.uniqueReadingPercentage24Reads+=G.uniqueReadingPercentage24Reads,F.uniqueReadingPercentage2549Reads+=G.uniqueReadingPercentage2549Reads,F.uniqueReadingPercentage5074Reads+=G.uniqueReadingPercentage5074Reads,F.uniqueReadingPercentage75100Reads+=G.uniqueReadingPercentage75100Reads,U+=G.desktopReadings,k+=G.mobileReadings,T+=G.tabletReadings,V+=G.age1617MaleUniqueViewableImpressions,M+=G.age1824MaleUniqueViewableImpressions,_+=G.age2534MaleUniqueViewableImpressions,O+=G.age3544MaleUniqueViewableImpressions,q+=G.age4554MaleUniqueViewableImpressions,P+=G.age55MaleUniqueViewableImpressions,E+=G.age1617FemaleUniqueViewableImpressions,N+=G.age1824FemaleUniqueViewableImpressions,j+=G.age2534FemaleUniqueViewableImpressions,W+=G.age3544FemaleUniqueViewableImpressions,K+=G.age4554FemaleUniqueViewableImpressions,Y+=G.age55FemaleUniqueViewableImpressions)});var B=U+k+T;F.desktopReadings=Math.round(100/(B/U)),F.mobileReadings=Math.round(100/(B/k)),F.tabletReadings=Math.round(100/(B/T)),F.maleUniqueViewableImpressions=Math.round(F.maleUniqueViewableImpressions),F.femaleUniqueViewableImpressions=Math.round(F.femaleUniqueViewableImpressions),d[0].value=F.femaleUniqueViewableImpressions,d[1].value=F.maleUniqueViewableImpressions;var z=F.viewableImpressions-(V+M+_+O+q+P+E+N+j+W+K+Y);z>100&&(V+=z*t.scope.globalSettings.reportAverageAge1617Male,M+=z*t.scope.globalSettings.reportAverageAge1824Male,_+=z*t.scope.globalSettings.reportAverageAge2534Male,O+=z*t.scope.globalSettings.reportAverageAge3544Male,q+=z*t.scope.globalSettings.reportAverageAge4554Male,P+=z*t.scope.globalSettings.reportAverageAge55Male,E+=z*t.scope.globalSettings.reportAverageAge1617Female,N+=z*t.scope.globalSettings.reportAverageAge1824Female,j+=z*t.scope.globalSettings.reportAverageAge2534Female,W+=z*t.scope.globalSettings.reportAverageAge3544Female,K+=z*t.scope.globalSettings.reportAverageAge4554Female,Y+=z*t.scope.globalSettings.reportAverageAge55Female),F.age1617MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/V)),F.age1824MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/M)),F.age2534MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/_)),F.age3544MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/O)),F.age4554MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/q)),F.age55MaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/P)),F.age1617FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/E)),F.age1824FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/N)),F.age2534FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/j)),F.age3544FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/W)),F.age4554FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/K)),F.age55FemaleUniqueViewableImpressions=Math.round(100/(F.viewableImpressions/Y)),o[0].male=Math.round(-1*F.age1617MaleUniqueViewableImpressions),o[1].male=Math.round(-1*F.age1824MaleUniqueViewableImpressions),o[2].male=Math.round(-1*F.age2534MaleUniqueViewableImpressions),o[3].male=Math.round(-1*F.age3544MaleUniqueViewableImpressions),o[4].male=Math.round(-1*F.age4554MaleUniqueViewableImpressions),o[5].male=Math.round(-1*F.age55MaleUniqueViewableImpressions),o[0].female=Math.round(F.age1617FemaleUniqueViewableImpressions),o[1].female=Math.round(F.age1824FemaleUniqueViewableImpressions),o[2].female=Math.round(F.age2534FemaleUniqueViewableImpressions),o[3].female=Math.round(F.age3544FemaleUniqueViewableImpressions),o[4].female=Math.round(F.age4554FemaleUniqueViewableImpressions),o[5].female=Math.round(F.age55FemaleUniqueViewableImpressions),s[0].value=F.desktopReadings,s[1].value=F.mobileReadings,s[2].value=F.tabletReadings,f.validateData(),R.validateData(),S.validateData(),v.validateData(),e.$apply()}(A,C)};b.addListener("zoomed",function(){I()}),e.toggleReport=function(A){$.each(p.sponsoredArticles,function(C,U){U.guid===A.guid&&(U.reportActive=!U.reportActive)}),r(function(){x(),I()},50)},e.toggleChapter=function(A){$.each(u,function(C,U){U.chapter.name===A&&(U.active=!U.active)}),r(function(){x(),I()},50)},x(),y.validateNow(),b.validateNow(),b.setDefaultPeriod(),I()},function(){e.error=!0})})},function(){i.path("/")});var d=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:m,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],o=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],s=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}]}]),app.controller("StaticArticleDetailController",["$rootScope","$scope","snipService","parserService","$location","staticArticle","$timeout","$uibModal",function(e,t,a,n,l,c,h,r){t.enableHighQualityImage=e.scope.network.settings.configurations.enableHighQualityImage,t.$on("$viewContentLoaded",function(){h(function(){t.viewContentLoaded=!0})});var i,u,m=function(){i=t.staticArticle.assetReferences.reduce(function(u,b,y){return u[b.guid]=b,u},{})};if(t.resolveAsset=function(u){return i[u]},$(window).scroll(function(u){$(u.target).scrollTop()>100?$(".staticArticleDetail-mobileNavigation-wrapper").addClass("staticArticleDetail-mobileNavigation-wrapper-scrolled"):$(".staticArticleDetail-mobileNavigation-wrapper").removeClass("staticArticleDetail-mobileNavigation-wrapper-scrolled")}),t.recommendedArticles=[],t.recommendedArticlePairs=[],t.recommendedSnips=[],t.assetsMedia=[],t.assetsFacts=[],t.assetsQuestions=[],t.assetsComments=[],t.staticArticleUpdater)(t.$parent.staticArticleUpdater?t.$parent:t.$parent.$parent).$on("staticArticleUpdater",function(u,b){t.staticArticle=b,n.postProcessHtml(t.staticArticle),t.staticArticle.detailsLoaded=!0,m(),t.$broadcast("$$rebind::refresh")});else{t.$watch(function(){return"staticArticle.detailsLoaded"},function(u){u&&m()});var o=c.id;if(t.staticArticle=c,n.postProcessHtml(t.staticArticle),a.getRecommendedSnips(o).then(function(u){t.recommendedSnips=u}),(u=window.navigator.userAgent).indexOf(" Android ")>-1&&u.indexOf("Version/")>-1&&parseFloat((u.match("Android ([0-9.]+)")||[])[1])<=4.4){var p=$(window).height();$(".app-mobile .staticArticleDetail-wrapper").css("height",p+"px"),$(".app-desktop .staticArticleDetail-wrapper").css("height",p+"px")}}t.assetImageFocuspointDialog=function(u){r.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetImageFocuspointDialog.html",controller:"AssetImageFocuspointDialog",size:"lg",resolve:{assetReference:function(){return u}}})},t.share=function(){!window.plugins||!window.plugins.socialsharing||(window._paq&&_paq.push(["trackEvent","Conversion","StartSharestaticArticle","staticArticleDetail"]),window.plugins.socialsharing.shareWithOptions({message:(t.staticArticle.heading?t.staticArticle.heading+": ":"")+t.staticArticle.text+" "+l.absUrl()},function(){window._paq&&_paq.push(["trackEvent","Conversion","SuccessSharestaticArticle","staticArticleDetail"])}))}}]),app.controller("StaticArticleEditController",["$scope","$window","staticArticleService","metaService","$state","authService","fileUploadService","$location","$timeout","$uibModal","$rootScope","staticArticleId","proseMirrorEditorService","editorCommentStaticArticleService","editorAssetsService","spellingService","backendHubProxy",function(e,t,a,n,l,c,h,r,i,m,d,o,s,p,u,b,y){var f=y("editorHub");e.revision={coverAssetImages:[],texts:[{heading:"",text:""}],chapterSlug:null};var R="static_"+o+"_"+d.scope.currentScope.chapter.id;e.enableHighQualityImage=d.scope.network.settings.configurations.enableHighQualityImage,e.$on("$destroy",function(){n.setFavicon()}),e.staticArticleUpdater=!0;var v,S=!1;e.staticArticle={text:"",content:"",summary:"",heading:""},e.editor=null,e.changed=!1,e.loading=!0;var w=d.scope.currentScope.network.getResourceOrKeyName("web_articleEdit_leaveMessage");window.onbeforeunload=function(){if(e.changed)return w};var g=!1;d.$on("$stateChangeStart",function(E,N){g?E.preventDefault():e.changed&&!confirm(w)?(g=!0,E.preventDefault(),S=!1,i(function(){g=!1},1e3)):(e.changed=!1,S&&(f.invoke("leaveGroup",R),s.closeConnection(),f.stop(),S=!1))}),e.textCarousel=null,e.textSlick=null,e.textSlickIndex=0,e.coverAssetSlickIndex=0;var F=function(E){e.staticArticle=E;var N=C(E);N?e.revision=N:E.revisions.push(e.revision),v=A(E),i(function(){e.textCarousel||(e.textCarousel=$("#staticArticleEdit-text-wrapper").find(".staticArticleEdit-text-carousel"),e.textCarousel.on("afterChange",function(j,W){e.textSlickIndex=W.currentSlide})),e.coverAssetCarousel||(e.coverAssetCarousel=$("#staticArticleEdit-cover-wrapper").find(".staticArticleEdit-cover-carousel"),e.coverAssetCarousel.on("afterChange",function(j,W){e.coverAssetSlickIndex=W.currentSlide})),i(function(){})})};e.coverAssetCarousel=null,e.coverAssetSlick=null,e.delCoverAssetVariant=function(){e.revision.coverAssetImages=[],e.revision.coverAssetImageId=null},e.pickCoverAsset=function(E){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 2},single:function(){return!0},resultCallback:function(){return function(N){E&&e.revision.coverAssetImages.length?e.revision.coverAssetImages[0]=N.assetImage:e.revision.coverAssetImages.push(N.assetImage)}},staticArticle:function(){return e.staticArticle}}})},e.assetDialog=function(){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},resultCallback:function(){return D},staticArticle:function(){return e.staticArticle}}})};var D=function(E){i(function(){e.insertAsset(E)},500)};e.insertAsset=function(E){if($("#assetModal").modal("hide"),e.initializedMobile){if(e.initializedMobile){var N=$("#staticArticleEdit-editor-mobile")[0],j=N.selectionStart,W=N.selectionEnd,K=N.value,Y=K.substring(0,j),B=K.substring(W,K.length),z="\n!["+E.guid+"]\n";N.value=Y+z+B,i(function(){N.selectionStart=N.selectionEnd=j+z.length,N.focus()})}}else{if(!e.editor)return;e.editor.replaceSelection("\n!["+E.guid+"]\n"),setTimeout(function(){e.editor.focus()},600)}},e.save=function(){var E={id:e.staticArticle.id,title:e.revision.title,heading:e.revision.heading,summary:e.revision.summary,htmlDocument:s.getHtmlDocument(),jsonDocument:s.getDocument()};null!==e.staticArticle.revisions[0].coverAssetImages&&e.staticArticle.revisions[0].coverAssetImages.length>0&&(E.coverAssetImageId=e.revision.coverAssetImages[0].id),a.updateStaticArticle(E).then(function(N){e.changed=!1,F(N.data)},function(){m.open({templateUrl:"/ClientApp/src/legacy-app/article/unableToSaveDialog.html"})})},e.submit=function(){e.editForm.$submitted=!0},e.publish=function(E){e.editForm.$submitted=!0,E&&a.publishStaticArticle(e.staticArticle).then(function(N){e.changed=!1,F(N.data)},function(){})},e.preview=!1,e.togglePreview=function(){if(e.preview=!e.preview,e.preview){var E=angular.copy(e.staticArticle);E.content=s.getHtmlDocument(),E.assetReferences=E.assetReferences,E.title=e.revision.title,E.heading=e.revision.heading,E.summary=e.revision.summary,e.revision.coverAssetImages.length&&(E.coverAssetReference=E.assetReferences.filter(function(N){return N.assetImage&&N.assetImage.id===e.revision.coverAssetImages[0].id})[0]),i(function(){e.$broadcast("staticArticleUpdater",E)},500)}};var A=function(E){var N=C(E);return angular.toJson(N.coverAssetImages)+N.summary+N.jsonDocument+N.title+N.heading},C=function(E){return E.revisions[0]},U=function(E,N){m.open({templateUrl:"/ClientApp/src/legacy-app/asset/assetDialog.html",controller:"AssetDialog",size:"lg",resolve:{assetType:function(){return 0},single:function(){return!1},resultCallback:function(){return function(j){if(N){s.setFocus();var W=[];$.each(j,function(K,Y){var B=null;Y.assetImage&&(B=Y.assetImage.type),Y.assetText&&(B=Y.assetText.type),Y.assetArticle&&(B=Y.assetArticle.type),Y.assetFile&&(B=Y.assetFile.type),W.push({guid:Y.guid,type:B})}),N(W)}}},staticArticle:function(){return e.staticArticle}}})},k=function(E,N){m.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createEditorCommentDialog.html",controller:"CreateEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{editorCommentCallback:function(){return N},messageHolder:function(){return new MessageHolder(e.staticArticle)},sourceService:function(){return p}}})},T=function(E,N,j){m.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/listEditorCommentDialog.html",controller:"ListEditorCommentDialogController",controllerAs:"ctrl",size:"lg",resolve:{onDeletedCallback:function(){return j},onAddedCallback:function(){return N},messageHolder:function(){return new MessageHolder(e.staticArticle)},chainComments:function(){return E},sourceService:function(){return p}}})},V=function(E){m.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createLinkDialog.html",controller:"CreateLinkDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return E}}})},M=function(E,N){m.open({templateUrl:"/ClientApp/src/legacy-app/proseMirrorEditor/createCallToActionDialog.html",controller:"CreateCallToActionDialogController",controllerAs:"ctrl",size:"lg",resolve:{onSuccessfulCallback:function(){return N}}})},_=function(E){return u.getAsset(E,e.staticArticle.assetReferences)},O=function(E){i(function(){C(e.staticArticle).jsonDocument=E,e.numberOfWords=b.countWords(s.getHtmlDocument())})};$(".staticArticleEdit-wrapper").scroll(function(){!function E(){$(".proseMirror-wrapper").offset().top<50?$(".proseMirror-wrapper").addClass("sticky"):$(".proseMirror-wrapper").removeClass("sticky")}()}),f.on("broadcastSummary",function(E){e.revision.summary=E}),f.on("broadcastHeading",function(E){e.revision.heading=E.heading}),f.on("broadcastTitle",function(E){e.revision.title=E.title}),f.start(function(){f.invoke("joinGroup",R)}),e.leaveEditor=function(){S=!0},e.blurHeading=function(){f.invoke("updatingHeading",{groupName:R,heading:e.revision.heading})},e.blurTitle=function(){f.invoke("updatingTitle",{groupName:R,title:e.revision.title})},e.blurSummary=function(){f.invoke("updatingSummary",{groupName:R,summary:e.revision.summary})},a.getStaticArticleEdit(o).then(function(E){e.loading=!1,F(E),n.setFavicon(!0),s.init({docID:"staticArticle_"+E.id+"_"+E.chapterId,assetDlgFactory:U,commentCreationDlgFactory:k,commentMgmtDlgFactory:T,initialDocument:C(E).jsonDocument,initialAssetReferences:E.assetReferences,createLinkFactory:V,callToActionDlgFactory:M,assetResolver:_,onNewStateFactory:O,onLoadTransactionCallback:O,languageCode:d.scope.currentScope.network.settings.languageCode}),e.$watch(function(){return A(e.staticArticle)},function(E){e.changed=v!==E})},function(){r.path("/")})}]),app.factory("staticArticleService",["$http","$q",function(e,t){return{getStaticArticles:function(){var i=t.defer();return e.get(scope.apiEndpoint+"staticArticles").then(function(m){i.resolve(m.data)}),i.promise},getStaticArticle:function(i){var m=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+i).then(function(d){m.resolve(d.data)}),m.promise},getStaticArticleEdit:function(i){var m=t.defer();return e.get(scope.apiEndpoint+"staticArticles/"+i+"/edit").then(function(d){m.resolve(d.data)},function(d){m.reject()}),m.promise},getStaticArticleParse:function(i,m){var d=t.defer();return e.post(scope.apiEndpoint+"staticArticles/"+i+"/parse",m).then(function(o){d.resolve(o.data)},function(){d.reject()}),d.promise},updateStaticArticle:function(i){var m=t.defer();return e.put(scope.apiEndpoint+"staticArticles",i).then(function(d){angular.copy(d.data,i),m.resolve(d)},function(){m.reject()}),m.promise},publishStaticArticle:function(i){var m=t.defer();return e.put(scope.apiEndpoint+"staticArticles/"+i.id+"/publish",i).then(function(d){m.resolve(d)},function(){m.reject()}),m.promise}}}]),app.controller("SuperCampaignElasticReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$timeout","$location",function(e,t,a,n,l,c,h){AmCharts.isReady=!0;var d,o,s,r=t.scope.currentScope.network.settings.colorPrimary?"#"+t.scope.currentScope.network.settings.colorPrimary:"#00cdbd",i=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}],m=[];e.report=null,e.totalClickCount=0,e.totalImpressionTime=0,e.totalImpressionCount=0,e.filterDisabled=!1,e.startDay=null,e.endDay=null;var p=function(f){var R=0,S=0,v=0,w=0,g=0,x=0;$.each(f,function(F,D){R+=D.desktopImpressionCount,S+=D.tabletImpressionCount,v+=D.mobileImpressionCount,w+=D.clickCount,g+=D.impressionTime,x+=D.impressionCount}),e.$apply(function(){e.totalClickCount=w,e.totalImpressionTime=g,e.totalImpressionCount=x}),i[0].value=Math.round(100/(x/R)),i[1].value=Math.round(100/(x/v)),i[2].value=Math.round(100/(x/S)),d.validateData()},u=function(){var f=moment(o.startDate).startOf("day").toDate(),R=moment(o.endDate).startOf("day").toDate(),S=e.report.filter(function(v){return v.day>=f&&v.day<=R});p(S),s.zoom(f,moment(R).add(1,"d").toDate())},y=function(){var f=e.superCampaign.superBanners.filter(function(S){return!S.filtered}).map(function(S){return S.id}),R=e.chapters.filter(function(S){return!S.filtered}).map(function(S){return S.id});e.filterDisabled=!0,a.getSuperReport(e.superCampaign.pin,{superCampaignId:e.superCampaign.id,superBannerIds:f,chapterIds:R}).then(function(S){S.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=S,c(function(){(function(f){m.length=0,$.each(f,function(R,S){m.push(S)}),o.validateData(),s.validateData(),e.$apply(function(){e.startDay=start,e.endDay=end})})(S),u(),e.filterDisabled=!1},50)})};e.filterChapter=function(f){f.filtered=!f.filtered,y()},e.chapterFilterDisabled=function(f){return e.filterDisabled||1===e.chapters.filter(function(R){return!R.filtered}).length&&!f.filtered},e.filterBanner=function(f){e.filterDisabled||1===e.superCampaign.superBanners.filter(function(R){return!R.filtered}).length&&!f.filtered||(f.filtered=!f.filtered,y())},a.getSuperByPin(l.pin).then(function(f){e.superCampaign=f,a.getSuperReport(f.pin,{superCampaignId:f.id}).then(function(R){R.forEach(function(v){v.day=moment(v.day.replace("Z","")).toDate()}),e.report=R,e.startDay=R[0].day,e.endDay=R[R.length-1].day;var S=[];$.each(f.chapterSlugs,function(v,w){S.push(n.getChapter(w))}),S=S.filter(function(v){return 2===v.managementState}),e.chapters=S,$.each(R,function(v,w){m.push(w)}),c(function(){d=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:i,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:r,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}}),(o=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"}],dataProvider:m,categoryField:"day"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"impressionCount",valueField:"impressionCount"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",selected:!0,label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"impressionCount",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}})).addListener("zoomed",function(){u()}),s=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:r,fieldMappings:[{fromField:"day",toField:"day"},{fromField:"impressionCount",toField:"impressionCount"},{fromField:"clickCount",toField:"clickCount"}],dataProvider:m,categoryField:"day"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.resources.web_report_viewableImpressions,id:"impressionCount",type:"smoothedLine",valueField:"impressionCount",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.resources.web_report_viewableImpressions+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clickCount",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),p(R)})})},function(){h.path("/")})}]),app.controller("superCampaignReportController",["$scope","$rootScope","superService","scopeService","$stateParams","$window","$timeout","$location",function(e,t,a,n,l,c,h,r){AmCharts.isReady=!0;var i="#00cdbd",m=[{title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),color:i,value:0},{title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),color:"#cccccc",value:0}],d=[{title:"16-17",male:0,female:0},{title:"18-24",male:0,female:0},{title:"25-34",male:0,female:0},{title:"35-44",male:0,female:0},{title:"45-54",male:0,female:0},{title:"55+",male:0,female:0}],o=[{title:"Desktop",value:0},{title:"Smartphone",value:0},{title:"Tablet",value:0}];a.getSuperByPin(l.pin).then(function(s){e.superCampaign=s,a.getReportSuperBannerCalendar(s.pin).then(function(p){p.forEach(function(u){u.chapter=n.getChapter(u.chapterSlug),u.reports.forEach(function(b){b.calendar.forEach(function(y){y.start=moment(y.start.replace("Z","")).toDate(),y.end=moment(y.end.replace("Z","")).toDate()})})}),s.report=p,h(function(){var u,b,y,f,R,S=new Set;$.each(p,function(D,I){I.active=!0,S.add(I.chapter.name)}),p.uniqueChapters=[],S.forEach(function(D){p.uniqueChapters.push(D)}),$.each(s.superBanners,function(D,I){I.reportActive=!0});var v=[],w=function(){v.length=0,$.each(p[0].reports[0].calendar,function(D,I){v.push({start:I.start,end:I.end,impressions:0,viewableImpressions:0,viewableImpressionTimeSeconds:0,desktopViewableImpressions:0,mobileViewableImpressions:0,tabletViewableImpressions:0,clicks:0,maleViewableImpressions:0,femaleViewableImpressions:0,age1617MaleViewableImpressions:0,age1824MaleViewableImpressions:0,age2534MaleViewableImpressions:0,age3544MaleViewableImpressions:0,age4554MaleViewableImpressions:0,age55MaleViewableImpressions:0,age1617FemaleViewableImpressions:0,age1824FemaleViewableImpressions:0,age2534FemaleViewableImpressions:0,age3544FemaleViewableImpressions:0,age4554FemaleViewableImpressions:0,age55FemaleViewableImpressions:0})}),$.each(p,function(D,I){I.active&&(p[D-1]&&2===p[D-1].chapter.managementState&&2===I.chapter.managementState&&p[D-1].chapter.name!==I.chapter.name&&(p.multiChapterShipment=!0),$.each(I.reports,function(A,C){if(s.superBanners[A].reportActive){var U=C.superBanner.pin;$.each(C.calendar,function(k,T){T.pin=U,v[k].impressions+=T.impressions,v[k].viewableImpressions+=T.viewableImpressions,v[k].viewableImpressionTimeSeconds+=T.viewableImpressionTimeSeconds,v[k].desktopViewableImpressions+=T.desktopViewableImpressions,v[k].mobileViewableImpressions+=T.mobileViewableImpressions,v[k].tabletViewableImpressions+=T.tabletViewableImpressions,v[k].clicks+=T.clicks,v[k].maleViewableImpressions+=T.maleViewableImpressions,v[k].femaleViewableImpressions+=T.femaleViewableImpressions,v[k].age1617MaleViewableImpressions+=T.age1617MaleViewableImpressions,v[k].age1824MaleViewableImpressions+=T.age1824MaleViewableImpressions,v[k].age2534MaleViewableImpressions+=T.age2534MaleViewableImpressions,v[k].age3544MaleViewableImpressions+=T.age3544MaleViewableImpressions,v[k].age4554MaleViewableImpressions+=T.age4554MaleViewableImpressions,v[k].age55MaleViewableImpressions+=T.age55MaleViewableImpressions,v[k].age1617FemaleViewableImpressions+=T.age1617FemaleViewableImpressions,v[k].age1824FemaleViewableImpressions+=T.age1824FemaleViewableImpressions,v[k].age2534FemaleViewableImpressions+=T.age2534FemaleViewableImpressions,v[k].age3544FemaleViewableImpressions+=T.age3544FemaleViewableImpressions,v[k].age4554FemaleViewableImpressions+=T.age4554FemaleViewableImpressions,v[k].age55FemaleViewableImpressions+=T.age55FemaleViewableImpressions})}}))}),b.validateData(),u.validateData()},g=p.summary={};u=AmCharts.makeChart("chartScrollbar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"}],dataProvider:v,categoryField:"start"}],panels:[{showCategoryAxis:!1,percentHeight:0,recalculateToPercents:"never",stockGraphs:[{id:"viewableImpressions",valueField:"viewableImpressions"}]}],periodSelector:{inputFieldsEnabled:!1,position:"top",periods:[{period:"MM",selected:!0,count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_month")},{period:"MM",count:3,label:"3 "+scope.currentScope.network.getResourceOrKeyName("web_report_months")},{period:"YYYY",count:1,label:"1 "+scope.currentScope.network.getResourceOrKeyName("web_report_year")},{period:"MAX",label:scope.currentScope.network.getResourceOrKeyName("web_report_everything")}]},categoryAxis:{parseDates:!0},chartScrollbarSettings:{position:"top",graph:"viewableImpressions",graphFillAlpha:1,selectedBackgroundColor:"#888888",selectedGraphFillAlpha:1}}),b=AmCharts.makeChart("chartCalendar",{type:"stock",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataSets:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_all"),color:i,fieldMappings:[{fromField:"start",toField:"start"},{fromField:"viewableImpressions",toField:"viewableImpressions"},{fromField:"clicks",toField:"clicks"},{fromField:"clickThroughRate",toField:"clickThroughRate"}],dataProvider:v,categoryField:"start"}],categoryAxesSettings:{maxSeries:65,groupToPeriods:["DD","WW","MM"]},panels:[{showCategoryAxis:!1,percentHeight:70,recalculateToPercents:"never",stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions"),id:"viewableImpressions",type:"smoothedLine",valueField:"viewableImpressions",periodValue:"Sum",comparable:!0,balloonText:scope.currentScope.network.getResourceOrKeyName("web_report_viewableImpressions")+": : <i class='fa fa-eye'></i> [[value]]",fillAlphas:.5,periodValueText:"[[value.sum]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}},{showCategoryAxis:!0,title:scope.currentScope.network.getResourceOrKeyName("web_report_AdAmountOfClicks"),percentHeight:30,stockGraphs:[{title:scope.currentScope.network.getResourceOrKeyName("web_report_clicks"),valueField:"clicks",periodValue:"Sum",type:"column",fillAlphas:1,balloonText:"<i class='fa fa-external-link'></i> [[value]]",visibleInLegend:!1}],stockLegend:{switchable:!1,periodValueText:"[[value.sum]]"},valueAxes:[{precision:0,tickLength:0,gridAlpha:0}],categoryAxis:{gridAlpha:0}}],chartCursorSettings:{valueBalloonsEnabled:!0,zoomable:!1,fullWidth:!0,cursorAlpha:.1},categoryAxis:{parseDates:!0},chartScrollbarSettings:{enabled:!1}}),y=AmCharts.makeChart("chartGender",{type:"pie",theme:"light",percentFormatter:{precision:0},pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:m,valueField:"value",titleField:"title",colorField:"color",labelsEnabled:!1,autoMargins:!0,pullOutRadius:20,legend:{markerType:"circle",position:"top",autoMargins:!0,valueText:"[[percents]]%"},balloonText:"[[percents]]%"}),f=AmCharts.makeChart("chartAge",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:d,graphs:[{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_female"),type:"column",valueField:"female",lineColor:i,balloonText:"[[value]]%"},{fillAlphas:1,title:scope.currentScope.network.getResourceOrKeyName("web_user_male"),type:"column",clustered:!1,valueField:"male",lineColor:"#cccccc",balloonFunction:function(D,I){return-1*D.values.value+"%"}}],categoryField:"title",valueAxes:[{integersOnly:!0,precision:0,labelFunction:function(D){return D<0?-1*D+"":D+""},labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,axisAlpha:0}}),R=AmCharts.makeChart("chartDevice",{type:"serial",theme:"light",pathToImages:"/content/amcharts/images/",path:"/content/amcharts/",dataProvider:o,rotate:!0,graphs:[{fillAlphas:1,type:"column",valueField:"value",lineColor:i,balloonText:"[[value]]%"}],valueField:"value",categoryField:"title",valueAxes:[{labelsEnabled:!1,gridAlpha:0,tickLength:0,axisAlpha:0}],categoryAxis:{gridAlpha:0,inside:!0,tickLength:0,axisAlpha:0}});var F=function(){var D=moment(u.startDate).startOf("day").toDate(),I=moment(u.endDate).startOf("day").add(-1,"d").toDate();(function(D,I){g.maleViewableImpressions=0,g.femaleViewableImpressions=0,g.viewableImpressions=0,g.viewableImpressionTimeSeconds=0,g.impressions=0,g.clicks=0,g.desktopViewableImpressions=0,g.mobileViewableImpressions=0,g.tabletViewableImpressions=0,g.age1617MaleViewableImpressions=0,g.age1824MaleViewableImpressions=0,g.age2534MaleViewableImpressions=0,g.age3544MaleViewableImpressions=0,g.age4554MaleViewableImpressions=0,g.age55MaleViewableImpressions=0,g.age1617FemaleViewableImpressions=0,g.age1824FemaleViewableImpressions=0,g.age2534FemaleViewableImpressions=0,g.age3544FemaleViewableImpressions=0,g.age4554FemaleViewableImpressions=0,g.age55FemaleViewableImpressions=0;var A=0,C=0,U=0,k=0,T=0,V=0,M=0,_=0,O=0,q=0,P=0,E=0,N=0,j=0,W=0;g.start=D,g.end=I,$.each(v,function(Y,B){var z=new Date(B.start);z<D||z>I||(g.maleViewableImpressions+=B.maleViewableImpressions,g.femaleViewableImpressions+=B.femaleViewableImpressions,g.viewableImpressions+=B.viewableImpressions,g.viewableImpressionTimeSeconds+=B.viewableImpressionTimeSeconds,g.impressions+=B.impressions,g.clicks+=B.clicks,A+=B.desktopViewableImpressions,C+=B.mobileViewableImpressions,U+=B.tabletViewableImpressions,k+=B.age1617MaleViewableImpressions,T+=B.age1824MaleViewableImpressions,V+=B.age2534MaleViewableImpressions,M+=B.age3544MaleViewableImpressions,_+=B.age4554MaleViewableImpressions,O+=B.age55MaleViewableImpressions,q+=B.age1617FemaleViewableImpressions,P+=B.age1824FemaleViewableImpressions,E+=B.age2534FemaleViewableImpressions,N+=B.age3544FemaleViewableImpressions,j+=B.age4554FemaleViewableImpressions,W+=B.age55FemaleViewableImpressions)}),g.desktopViewableImpressions=Math.round(100/(g.viewableImpressions/A)),g.mobileViewableImpressions=Math.round(100/(g.viewableImpressions/C)),g.tabletViewableImpressions=Math.round(100/(g.viewableImpressions/U));var K=g.viewableImpressions-(k+T+V+M+_+O+q+P+E+N+j+W);K>100&&(k+=K*t.scope.globalSettings.reportAverageAge1617Male,T+=K*t.scope.globalSettings.reportAverageAge1824Male,V+=K*t.scope.globalSettings.reportAverageAge2534Male,M+=K*t.scope.globalSettings.reportAverageAge3544Male,_+=K*t.scope.globalSettings.reportAverageAge4554Male,O+=K*t.scope.globalSettings.reportAverageAge55Male,q+=K*t.scope.globalSettings.reportAverageAge1617Female,P+=K*t.scope.globalSettings.reportAverageAge1824Female,E+=K*t.scope.globalSettings.reportAverageAge2534Female,N+=K*t.scope.globalSettings.reportAverageAge3544Female,j+=K*t.scope.globalSettings.reportAverageAge4554Female,W+=K*t.scope.globalSettings.reportAverageAge55Female),g.age1617MaleViewableImpressions=Math.round(100/(g.viewableImpressions/k)),g.age1824MaleViewableImpressions=Math.round(100/(g.viewableImpressions/T)),g.age2534MaleViewableImpressions=Math.round(100/(g.viewableImpressions/V)),g.age3544MaleViewableImpressions=Math.round(100/(g.viewableImpressions/M)),g.age4554MaleViewableImpressions=Math.round(100/(g.viewableImpressions/_)),g.age55MaleViewableImpressions=Math.round(100/(g.viewableImpressions/O)),g.age1617FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/q)),g.age1824FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/P)),g.age2534FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/E)),g.age3544FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/N)),g.age4554FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/j)),g.age55FemaleViewableImpressions=Math.round(100/(g.viewableImpressions/W)),g.maleViewableImpressions=Math.round(g.maleViewableImpressions),g.femaleViewableImpressions=Math.round(g.femaleViewableImpressions),m[0].value=g.femaleViewableImpressions,m[1].value=g.maleViewableImpressions,d[0].male=Math.round(-1*g.age1617MaleViewableImpressions),d[1].male=Math.round(-1*g.age1824MaleViewableImpressions),d[2].male=Math.round(-1*g.age2534MaleViewableImpressions),d[3].male=Math.round(-1*g.age3544MaleViewableImpressions),d[4].male=Math.round(-1*g.age4554MaleViewableImpressions),d[5].male=Math.round(-1*g.age55MaleViewableImpressions),d[0].female=Math.round(g.age1617FemaleViewableImpressions),d[1].female=Math.round(g.age1824FemaleViewableImpressions),d[2].female=Math.round(g.age2534FemaleViewableImpressions),d[3].female=Math.round(g.age3544FemaleViewableImpressions),d[4].female=Math.round(g.age4554FemaleViewableImpressions),d[5].female=Math.round(g.age55FemaleViewableImpressions),o[0].value=g.desktopViewableImpressions,o[1].value=g.mobileViewableImpressions,o[2].value=g.tabletViewableImpressions,y.validateData(),f.validateData(),R.validateData(),e.$apply()})(D,I),b.zoom(D,moment(I).add(1,"d").toDate())};u.addListener("zoomed",function(D){F()}),e.toggleReport=function(D){$.each(s.superBanners,function(I,A){A.pin===D.pin&&(A.reportActive=!A.reportActive)}),h(function(){w(),F()},50)},e.toggleChapter=function(D){$.each(p,function(I,A){A.chapter.name===D&&(A.active=!A.active)}),h(function(){w(),F()},50)},w(),b.validateData(),u.validateNow(),u.setDefaultPeriod()},function(){e.error=!0})})},function(){r.path("/")})}]),app.factory("superService",["$http","$q","$rootScope","authService","profileService","$location",function(e,t,a,n,l,c){var h=[],i=function(){var s=t.defer();return h.length>0?s.resolve(h):e.get(scope.apiEndpoint+"super").then(function(p){angular.copy(p.data,h),s.resolve(h)},function(){s.reject()}),s.promise};function m(s){var p=null;return $.each(h,function(u,b){if(b.pin===s)return p=b,!1}),p}return{supers:h,getSuperReport:function(s,p){var u=t.defer();return e.post(scope.apiEndpoint+"super/"+s+"/report",p).then(function(b){u.resolve(b.data)},function(){u.reject()}),u.promise},getSupers:i,getReportSuperBannerCalendar:function(s){var p=t.defer();return e.get(scope.apiEndpoint+"super/"+s+"/ReportSuperBannerCalendar").then(function(u){p.resolve(u.data)},function(){p.reject()}),p.promise},getSuperByPin:function(s){var p=t.defer();if(h.length>0){var u=m(s);u?p.resolve(u):e.get(scope.apiEndpoint+"super/"+s).then(function(b){p.resolve(b.data)},function(){p.reject()})}else i().then(function(){var b=m(s);b?p.resolve(b):e.get(scope.apiEndpoint+"super/"+s).then(function(y){p.resolve(y.data)},function(){p.reject()})},function(){p.reject()});return p.promise}}}]),app.controller("SurveyDetailController",["$scope","$stateParams","shipmentService","$location","$rootScope","translationService","profileService",function(e,t,a,n,l,c,h){e.surveyId=t.id,e.preview=void 0!==n.search().preview,e.requestInProgress=!0,a.getSurveyForDeeplink(e.surveyId,e.preview).then(function(r){e.requestInProgress=!1,e.shipment=r},function(){e.requestInProgress=!1,n.path("/")}),e.availableTargetLanguages=null,c.getAvailableTargetLanguages().then(function(r){e.availableTargetLanguages=r}),e.selectedTargetLanguage=l.profile.favoriteLanguage,e.translateSurvey=function(){null===e.selectedTargetLanguage?a.getSurveyForDeeplink(e.surveyId,e.preview).then(function(r){e.shipment=r}):a.getTranslatedSurveyForDeeplink(e.surveyId,e.preview,e.selectedTargetLanguage).then(function(r){e.shipment=r,h.updateFavoriteLanguage(e.selectedTargetLanguage).then(function(){l.profile.favoriteLanguage=e.selectedTargetLanguage})})}}]),app.factory("configurationsService",["$rootScope","$http","$q","authService",function(e,t,a,n){return{getConfigurationsData:function(c){var h=a.defer(),r=scope.apiEndpoint+"configurations";return c&&(r=r+"?key="+c),t.get(r).then(function(i){h.resolve(i.data)},function(){h.reject()}),h.promise}}}]),app.controller("DataPrivacyPolicyController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,n,l,c,h,r){e.updatePolicyHtml=function(){var m="{{resource:",o=new RegExp(m+"[a-z]*}}","i"),s=e.policyHtml.match(o);s&&s.forEach(function(p,u,b){var y=p.substring(m.length,p.length-"}}".length);e.policyHtml=e.policyHtml.replaceAll(p,scope.network.resources[y])}),e.policyHtml=e.policyHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.policyHtml=e.policyHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.policyHtml=r(e.policyHtml)(e)},e.partner=scope.currentScope.chapter.partner?scope.currentScope.chapter.partner:scope.currentScope.network.partner,e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,e.cookieManager=0,e.partner.settings.dataPrivacyUrl&&(n.location.href=e.partner.settings.dataPrivacyUrl),scope.currentScope.chapter&&scope.currentScope.chapter.settings&&(scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration&&(e.cookieManager=scope.currentScope.chapter.settings.configurations.externalMediaConsentConfiguration.Manager)),e.trackingLink=scope.currentScope.chapter.path,e.trackingLink.endsWith("/")||(e.trackingLink+="/"),e.trackingLink+="optout",l.getConfigurationsData("privacy_policy_markdown").then(function(i){if(i.chapterConfiguration&&i.chapterConfiguration.privacy_policy_markdown)return e.policyHtml=c.toHtml(i.chapterConfiguration.privacy_policy_markdown),void e.updatePolicyHtml();if(i.networkConfiguration.privacy_policy_markdown)e.policyHtml=c.toHtml(i.networkConfiguration.privacy_policy_markdown),e.updatePolicyHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-de.html");h(m).then(function(d){e.policyHtml=d,e.updatePolicyHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-ik-up-en.html"),h(m).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-de.html"),h(m).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-location-en.html"),h(m).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-de.html"),h(m).then(function(o){e.policyHtml=o,e.updatePolicyHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/dataPrivacyPolicy-common-en.html"),h(m).then(function(o){e.policyHtml=o,e.updatePolicyHtml()}))}}),e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.scrollTo=function(i){$("body,html").animate({scrollTop:$(i).offset().top-120},1e3)}}]),app.controller("TermsOfUseController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$interpolate","$templateRequest",function(e,t,a,n,l,c,h,r){e.updateTosHtml=function(){var m="{{resource:",o=new RegExp(m+"[a-z]*}}","i"),s=e.tosHtml.match(o);s&&s.forEach(function(p,u,b){var y=p.substring(m.length,p.length-"}}".length);e.tosHtml=e.tosHtml.replaceAll(p,scope.network.resources[y])}),e.tosHtml=e.tosHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.tosHtml=e.tosHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.tosHtml=h(e.tosHtml)(e)},e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,scope.currentScope.chapter&&scope.currentScope.chapter.settings&&scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),e.trackingLink="/optout",l.getConfigurationsData("terms_of_service_markdown").then(function(i){if(i.chapterConfiguration&&i.chapterConfiguration.terms_of_service_markdown)return e.tosHtml=c.toHtml(i.chapterConfiguration.terms_of_service_markdown),void e.updateTosHtml();if(i.networkConfiguration.terms_of_service_markdown)e.tosHtml=c.toHtml(i.networkConfiguration.terms_of_service_markdown),e.updateTosHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-de.html");r(m).then(function(d){e.tosHtml=d,e.updateTosHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-ik-up-en.html"),r(m).then(function(o){e.tosHtml=o,e.updateTosHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-de.html"),r(m).then(function(o){e.tosHtml=o,e.updateTosHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-location-en.html"),r(m).then(function(o){e.tosHtml=o,e.updateTosHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-de.html"),r(m).then(function(o){e.tosHtml=o,e.updateTosHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/termsOfUse-common-en.html"),r(m).then(function(o){e.tosHtml=o,e.updateTosHtml()}))}})}]),app.controller("AccessibilityController",["$scope","$filter","$sce","$window","configurationsService","markdownConverterService","$templateRequest","$interpolate",function(e,t,a,n,l,c,h,r){e.updateAccessibilityHtml=function(){var m="{{resource:",o=new RegExp(m+"[a-z]*}}","i"),s=e.accessibilityHtml.match(o);s&&s.forEach(function(p,u,b){var y=p.substring(m.length,p.length-"}}".length);e.accessibilityHtml=e.accessibilityHtml.replaceAll(p,scope.network.resources[y])}),e.accessibilityHtml=e.accessibilityHtml.replaceAll("{{Matomo}}",scope.currentScope.chapter.settings.piwikBaseUrl?'<iframe style="border: 0; height: 200px; width: 600px; " src="'+e.matomoOptOutUrl+'"></iframe>':""),e.accessibilityHtml=e.accessibilityHtml.replaceAll("{{TrackingLink}}",e.trackingLink),e.accessibilityHtml=r(e.accessibilityHtml)(e)},e.newsrooms=t("filter")(scope.network.chapters,{managementState:2}),e.network=scope.currentScope.network,e.chapter=scope.currentScope.chapter,scope.currentScope.chapter&&scope.currentScope.chapter.settings&&scope.currentScope.chapter.settings.piwikBaseUrl&&(e.matomoOptOutUrl=a.trustAsResourceUrl(scope.currentScope.chapter.settings.piwikBaseUrl+"index.php?module=CoreAdminHome&action=optOut&language=de")),e.trackingLink="/optout",l.getConfigurationsData("accessibility_markdown").then(function(i){if(i.chapterConfiguration&&i.chapterConfiguration.accessibility_markdown)return e.accessibilityHtml=c.toHtml(i.chapterConfiguration.accessibility_markdown),void e.updateAccessibilityHtml();if(i.networkConfiguration.accessibility_markdown)e.accessibilityHtml=c.toHtml(i.networkConfiguration.accessibility_markdown),e.updateAccessibilityHtml();else{if("de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1){var m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-ik-up-de.html");h(m).then(function(d){e.accessibilityHtml=d,e.updateAccessibilityHtml()})}"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("business")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-ik-up-en.html"),h(m).then(function(o){e.accessibilityHtml=o,e.updateAccessibilityHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-location-de.html"),h(m).then(function(o){e.accessibilityHtml=o,e.updateAccessibilityHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("location")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-location-en.html"),h(m).then(function(o){e.accessibilityHtml=o,e.updateAccessibilityHtml()})),"de"==scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-common-de.html"),h(m).then(function(o){e.accessibilityHtml=o,e.updateAccessibilityHtml()})),"de"!=scope.currentScope.network.settings.languageCode&&scope.currentScope.network.settings.languagePack.indexOf("journalism")>-1&&(m=a.getTrustedResourceUrl("/ClientApp/src/legacy-app/termsOfUse/accessibility-common-en.html"),h(m).then(function(o){e.accessibilityHtml=o,e.updateAccessibilityHtml()}))}})}]),app.factory("translationService",["$http","$q","$rootScope",function(e,t,a){function l(){var i=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==i){var m=a.scope.profile,d=a.scope.network.settings.languagePack.split("-")[0];if(null!=m.activeUserLanguage?.vendorLanguageCode&&d!=m.activeUserLanguage?.vendorLanguageCode)return!0}return!1}var c=function(i,m){var d=t.defer(),o=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==o&&null!==m){var s=a.scope.profile,p=a.scope.network.settings.languagePack.split("-")[0];if(null!=s.activeUserLanguage?.vendorLanguageCode&&p!=s.activeUserLanguage?.vendorLanguageCode){var u=a.scope.globalSettings.configurations.translationEndpointInfo;return e.post(u.baseUrl+"/api/Translations/vendorbatch",{TenantId:"ab1c0d0b-c2d1-d0ab-1c0d-0ab1c0d0ab1c",Sources:i,IgnoreReplacements:!0,ToVendorLanguageId:m},{headers:{"Content-Type":"application/json",Authorization:"Bearer "+u.token}}).then(function(v){d.resolve(v.data.translations)},function(v){console.log("TRANS FETCH FAIL",v);var w=i.map(function(g){return{source:g,translation:"UNABLE TO TRANSLATE:\n"+g}});return d.resolve(w),d.promise}),d.promise}}var S=i.map(function(v){return{source:v,translation:v}});return d.resolve(S),d.promise};return{getAvailableTargetLanguages:function(){var i=t.defer();return e.get(scope.apiEndpoint+"translations/targetLanguages").then(function(m){i.resolve(m.data)},function(){i.reject()}),i.promise},translate:c,translateByUserLanguageCode:function(i){if(l()){var m=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,o=a.scope.profile.activeUserLanguage?.vendorLanguageCode,p=a.scope.globalSettings.configurations.availableVendorLanguages.find(u=>u.id==m).supportedVendorLanguages.find(u=>u.languageCode===o||u.languageISO639Code===o);return c(i,p.id)}return c(i,null)},translateToOrigin:function(i){if(l()){var m=a.scope.network.settings.languagePack.split("-")[0],d=a.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,s=a.scope.globalSettings.configurations.availableVendorLanguages.find(p=>p.id==d).supportedVendorLanguages.find(p=>p.languageCode===m||p.languageISO639Code===m);return c(i,s.id)}return c(i,null)}}}]),app.controller("FeedbackController",["$scope","profileService","authService",function(e,t,a){e.data=t,e.success=!1,e.feedback={description:""},e.showEmail=!1,t.getProfile(!0).then(function(n){n.isRegistered||(e.showEmail=!0)}),e.submitForm=function(n){n&&t.insertFeedback(e.feedback).then(function(l){e.success=!0},function(){}).then(function(){})}}]),app.controller("ProfileController",["$interpolate","$scope","profileService","fileUploadService","$location","Upload","$rootScope","translationService",function(e,t,a,n,l,c,h,r){if(t.blurb="About me",t.multiLanguageTranslationSystemIsEnabled=h.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled,t.profile=a.profile,t.web_profile_newsletter=e(scope.currentScope.network.resources.web_profile_newsletter)({chapterName:scope.currentScope.chapter.name}),t.birthdayCalendarVisible=!1,t.staffDirectoryLoad=a.getStaffDirectoryOwned,t.staffDirectorySave=a.updateStaffDirectory,t.staffDirectoryLoadAdminEditable=a.getOwnPrivateStaffDirData,t.profileSaved=!1,t.blurb=t.profile.about,t.loadingAvatar=!1,t.loadingCover=!1,t.showNewsListOrder=t.profile.isMerkuristJournalist,t.profile.birthdayCalendarData){var m=new Date(t.profile.birthdayCalendarData.birthday);t.profile.birthdayCalendarData.convertedDate=new Date(m.getFullYear(),m.getMonth(),m.getDate()),t.profile.birthdayCalendarData.convertedDate.setMinutes(t.profile.birthdayCalendarData.convertedDate.getMinutes()-t.profile.birthdayCalendarData.convertedDate.getTimezoneOffset())}t.listOflanguages=[];var d=h.scope.network.settings.languagePack.split("-")[0],o=h.scope.network.getResourceOrKeyName("web_translation_use_original");h.scope.network.getResourceOrKeyName("web_translation_select_target_language"),t.listOflanguages.push({vendorLanguageCode:d,nativeName:o}),r.getAvailableTargetLanguages().then(function(p){Object.keys(p).forEach(u=>{t.listOflanguages.push({vendorLanguageCode:u,nativeName:p[u]})}),a.getProfile().then(function(u){t.profile.activeUserLanguage||(t.profile.activeUserLanguage=t.listOflanguages.find(function(f){return f.vendorLanguageCode===d})),u.isRegistered||l.path("/").replace(),t.blurb=u.about;var b=u.guid,y=new Date(t.profile.birthdayCalendarData.birthday);t.birthdayDisplayString=y.setMinutes(y.getMinutes()-y.getTimezoneOffset()).toLocaleDateString("de-DE"),t.$watch("profile.guid",function(){b!==u.guid&&l.path("/")})},function(u){l.path("/").replace()})}),t.deleteAvatar=function(){a.updateAvatar(null)},t.deleteCover=function(){a.updateCover(null)},t.uploadCover=function(p,u){p||!u?p&&(t.loadingCover=!0,c.upload({url:scope.apiEndpoint+"upload",data:{file:p}}).then(function(b){a.updateCover(b.data).then(function(){})},function(b){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(b){t.fileUploadProgress=parseInt(100*b.loaded/b.total)}).finally(function(){t.loadingCover=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.uploadAvatar=function(p,u){p||!u?p&&(t.loadingAvatar=!0,c.upload({url:scope.apiEndpoint+"upload",data:{file:p}}).then(function(b){a.updateAvatar(b.data).then(function(){})},function(b){alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},function(b){t.fileUploadProgress=parseInt(100*b.loaded/b.total)}).finally(function(){t.loadingAvatar=!1})):alert(scope.currentScope.network.getResourceOrKeyName("web_profile_uploadError"))},t.toggleLocationSelection=function(p){-1===t.profile.locations.indexOf(p)?t.profile.locations.push(p):t.profile.locations.splice(t.profile.locations.indexOf(p),1)},t.toggleUnsubscribe=function(){t.profile.unsubscribe=null===t.profile.unsubscribe?new Date:null},t.submitForm=function(p){if(t.profileSaved=!1,p){if(t.profile.birthdayCalendarData){var u=new Date(t.profile.birthdayCalendarData.convertedDate.getFullYear(),t.profile.birthdayCalendarData.convertedDate.getMonth(),t.profile.birthdayCalendarData.convertedDate.getDate());u.setMilliseconds(0),u.setSeconds(0),u.setMinutes(u.getMinutes()-u.getTimezoneOffset()),t.profile.birthdayCalendarData.birthday=u}t.gridApi&&(t.profile.StaffDirectoryData=t.gridApi.getData()),a.updateProfile(t.profile).then(function(b){t.profileSaved=!0,t.birthdayCalendarVisible=!1,t.profile.birthdayCalendarData&&(t.profile.birthdayCalendarData.convertedDate=new Date(t.profile.birthdayCalendarData.birthday)),t.multiLanguageTranslationSystemIsEnabled&&document.location.reload()})}},t.toggleBirthdayCalendar=function(){t.birthdayCalendarVisible=!t.birthdayCalendarVisible}}]),app.factory("profileService",["$rootScope","$http","$q","authService",function(e,t,a,n){var l={};e.$on("authenticationStateChanged",function(){h(!0)});var c=null,h=function(U){if(c||angular.equals({},l)||U){if(c)return c;var T=a.defer();return n.noop().then(function(){t.get(scope.apiEndpoint+"Profiles").then(function(M){angular.copy(M.data,l),l.translatedResources&&(scope.network.resources=l.translatedResources),T.resolve(l)}).catch(function(){T.reject()}).finally(function(){c=null})}).catch(function(){T.reject()}),c=T.promise}var k=a.defer();return k.resolve(l),k.promise};return{updateProfile:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Profiles",U).then(function(T){angular.copy(T.data,l),k.resolve(l)},function(){k.reject()}),k.promise},updateAvatar:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar",{guid:U}).then(function(T){l?(l.avatarGuid=T.data.avatarGuid,l.avatarImageUrl=T.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(T.data,l),k.resolve(l)},function(){k.reject()}),k.promise},updatePartnerAccessAllow:function(){var U=a.defer();return t.post(scope.apiEndpoint+"Profiles/PartnerAccessAllow").then(function(k){angular.copy(k.data,l),U.resolve(l)},function(){U.reject()}),U.promise},fetchExternalAvatar:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Profiles/Avatar/FetchExternal",U).then(function(T){l?(l.avatarGuid=T.data.avatarGuid,l.avatarImageUrl=T.data.avatarImageUrl+"?preset=profile-avatar"):angular.copy(T.data,l),k.resolve(l)},function(){k.reject()}),k.promise},updateCover:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Profiles/Cover",{guid:U}).then(function(T){l?(l.coverGuid=T.data.coverGuid,l.coverImageUrl=T.data.coverImageUrl):angular.copy(T.data,l),k.resolve(l)},function(){k.reject()}),k.promise},getProfile:h,insertFeedback:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Sendmail/Feedback",U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},insertProposedCity:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Sendmail/ProposedCity",U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},profile:l,getPublicProfile:function(U){var k=a.defer();return t.get(scope.apiEndpoint+"profiles/public/"+U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},unsubscribe:function(U){var k=a.defer();return t.put(scope.apiEndpoint+"profiles/unsubscribe/"+U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},updateFavoriteChapter:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Profiles/FavoriteChapter/"+U).then(function(){k.resolve()},function(){k.reject()}),k.promise},updateFavoriteLanguage:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"Profiles/favoriteLanguage/"+U).then(function(){k.resolve()},function(){k.reject()}),k.promise},getPartnerAccessAllowData:function(){var U=a.defer();return t.get(scope.apiEndpoint+"Profiles/PartnerAccessAllowData").then(function(k){U.resolve(k.data)},function(){U.reject()}),U.promise},consentCookies:function(){var U=a.defer();return t.post(scope.apiEndpoint+"profiles/cookiesConsent").then(function(k){U.resolve(k.data)},function(){U.reject()}),U.promise},consentExternalMediaCookies:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"profiles/externalMediaCookiesConsent",U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},contactSnipCreator:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"profiles/contactSnipCreator",U).then(function(T){k.resolve()},function(){k.reject()}),k.promise},getStaffDirectoryPublic:function(U){var k=a.defer();return t.get(scope.apiEndpoint+"profiles/publicstaffdirdata/"+U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},getStaffDirectoryOwned:function(U){var k=a.defer();return t.get(scope.apiEndpoint+"profiles/ownstaffdirdata/"+U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},updateStaffDirectory:function(U,k){var T=a.defer();return t.post(scope.apiEndpoint+"Profiles/staffdirdata/?userId="+U,k).then(function(V){angular.copy(V.data,l),T.resolve(l)},function(){T.reject()}),T.promise},getOwnPrivateStaffDirData:function(U){var k=a.defer();return t.get(scope.apiEndpoint+"profiles/ownnoneditablestaffdirdata/"+U).then(function(T){k.resolve(T.data)},function(){k.reject()}),k.promise},report:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"profiles/report",U).then(function(T){k.resolve(l)},function(){k.reject()}),k.promise},block:function(U){var k=a.defer();return t.post(scope.apiEndpoint+"profiles/block",U).then(function(T){k.resolve(l)},function(){k.reject()}),k.promise}}}]),app.controller("PublicProfileController",["$scope","$rootScope","profileService","articleService","scopeService","$stateParams","$uibModal",function(e,t,a,n,l,c,h){e.articleLimit=12,e.articleIncrement=12,e.enableUserReports=t.scope.currentScope.chapter.settings.configurations.enableUserReports,e.enableBlockUsers=t.scope.currentScope.chapter.settings.configurations.enableBlockUsers,e.enableUserReportsOrBlockForAll=t.scope.currentScope.chapter.settings.configurations.enableUserReportsOrBlockForAll,e.showReportUser=e.enableUserReports,e.showBlockUser=e.enableBlockUsers,e.enableVerifiedUsers=t.scope.currentScope.chapter.settings.configurations.enableVerifiedUsers,e.showVerifiedUser=!1,e.loadProfile=function(){a.getPublicProfile(c.id).then(function(r){e.aprofile=r,e.aprofile.callback=e.loadProfile,e.staffDirectoryLoad=a.getStaffDirectoryPublic,e.imageContainer=l.getGlobalSettings().blobStorageCdnUrl+"/"+l.getGlobalSettings().blobStorageContainerNameImage+"/",r.isJournalist&&n.getArticlesByAuthor(c.id).then(function(i){e.articles=i}),e.showReportUser=e.enableUserReports&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showBlockUser=e.enableBlockUsers&&(!!e.enableUserReportsOrBlockForAll||!e.aprofile.isJournalist),e.showVerifiedUser=e.aprofile.isVerifiedUser})},e.loadProfile(),e.reportUser=function(r){h.open({templateUrl:"/ClientApp/src/legacy-app/user/profileReportDialog.html",controller:"ProfileReportDialog",size:"lg",resolve:{profile:function(){return r}}})},e.blockUser=function(r){h.open({templateUrl:"/ClientApp/src/legacy-app/user/profileBlockDialog.html",controller:"ProfileBlockDialog",size:"lg",resolve:{profile:function(){return r}}})}}]),app.controller("ProfileReportDialog",["$scope","profile","profileService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.reportUser=function(){e.working=!0,a.report({reportedUserGuid:t.guid,reportingReason:e.type}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("ProfileBlockDialog",["$scope","profile","profileService",function(e,t,a){e.working=!1,e.error=!1,e.type=-1,e.isBlocked=t.isBlockedByCurrentUser,e.blockUser=function(){e.working=!0,a.block({blockedUserGuid:t.guid,blockingReason:e.type}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})},e.unblockUser=function(){e.working=!0,a.block({blockedUserGuid:t.guid,blockingReason:e.type,performUnblock:!0}).then(function(){e.working=!1,t.callback&&t.callback(),e.$dismiss()},function(){e.error=!0,e.working=!1,e.$dismiss()})}}]),app.controller("UnsubscribeController",["$scope","profileService","$location","$stateParams",function(e,t,a,n){e.unsubscribed=!1,e.email="",a.search().email&&(e.email=a.search().email),e.unsubscribe=function(){t.unsubscribe(n.id).then(function(l){e.unsubscribed=!0,e.success=l},function(){e.unsubscribed=!0,e.success=!1}).then(function(){})}}]),app.component("userBadge",{templateUrl:"/ClientApp/src/legacy-app/user/userBadge.html",bindings:{user:"<",article:"<",snip:"<"},controller:["$state","$scope","$rootScope","scopeService","formatterService","profileService","$uibModal",function(e,t,a,n,l,c,h){var r=this;r.shortDateTimeFormatString=l.getShortDateTimeFormatString(),r.showVerifiedUser=!1,this.$onInit=function(){r.article&&r.article.originChapterSlug&&r.article.originNetworkSlug?n.getNetworkChapter(r.article.originChapterSlug,r.article.originNetworkSlug).then(function(i){r.crossNetworkInfo=i,r.userProfileUrl=i.network.path+("/"===i.chapter.path?"/profile/"+r.user.guid:i.chapter.path+"/profile/"+r.user.guid)}):r.userProfileUrl=a.scope.currentScope.chapter.path+"/profile/"+r.user.guid,r.article&&r.article.originArticle&&(r.originArticlePath=a.scope.currentScope.network.path+n.getChapter(r.article.originChapterSlug).path+r.article.originArticle.path),r.showVerifiedUser=r.user.isVerifiedUser},r.userBadgeImprintDialog=function(){h.open({templateUrl:"/ClientApp/src/legacy-app/user/userBadgeImprintDialog.html",controller:"UserBadgeImprintDialog",size:"lg",resolve:{user:function(){return r.user},article:function(){return r.article}}})}}]}),app.controller("UserBadgeImprintDialog",["$scope","user","article","scopeService","authorService",function(e,t,a,n,l){e.user=t,t.freelance?l.getAuthorImprint(t.guid).then(function(c){e.impressum=c.html}):a&&a.originChapterSlug&&a.originNetworkSlug&&n.getNetworkChapter(a.originChapterSlug,a.originNetworkSlug).then(function(c){e.impressum=c.chapter.partner.settings.frontendImpressum.html})}]),app.controller("UserContactDialog",["$scope","$timeout","snip","profileService",function(e,t,a,n){e.user=a.user,e.content={snipId:a.id,message:""},e.successful=!1,e.contactFailed=!1,e.send=function(){e.content.message&&n.contactSnipCreator(e.content).then(function(){e.successful=!0,t(function(){e.$dismiss()},3e3)},function(){e.successful=!1,e.contactFailed=!0})}}]),app.controller("workflowController",["$scope","$stateParams","$location",function(e,t,a){e.workflowId=t.id,e.preview=void 0!==a.search().preview,1!=a.search().preview&&(e.revisionId=a.search().preview)}]),app.component("workflowRender",{templateUrl:"/ClientApp/src/legacy-app/workflow/workflowRenderComponent.html",bindings:{workflowid:"<",ispreview:"<",articleid:"<",revisionid:"<"},controller:["$scope","$element","$stateParams","$location","workflowService","$rootScope","profileService","$sce","$interpolate","$compile","translationService",function(e,t,a,n,l,c,h,r,i,m,d){var o=this,s=scope.currentScope.network.settings.languageCode;DevExpress.localization.locale(s),o.isOneTimeCompleted=!1,o.isBrokenAndroidCordovaApp=typeof cordova<"u"&&"android"===cordova.platformId&&parseFloat((window.navigator.userAgent.match("Android ([0-9.]+)")||[])[1])>=13,o.brokenCordovaAppHint=scope.network.getResourceOrKeyName("web_broken_android_13_app_upload_hint"),o.workflowName="",o.workflowType="",o.attachmentData=[],o.templateDefiniton={},o.reloadComplete=!1,o.uploaderStore={},o.readOnly=scope.profile.readOnlyMode,console.log("isBroken",o.isBrokenAndroidCordovaApp);var p=new Map;this.$onInit=function(){o.initializeForm=function(y){o.formInstance=y.component,b()},o.formOptions={onInitialized:o.initializeForm,labelLocation:"top"}},o.sendForm=function(){!o.formInstance.validate().isValid||o.templateDefiniton.withAttachments&&!o.fileUploader.option("isValid")?DevExpress.ui.notify({message:scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3):(o.templateDefiniton.submissionDataJSON=JSON.stringify(o.formInstance.option("formData")),o.ispreview||(o.isSaving=!0,o.reloadComplete=!1,o.templateDefiniton.withAttachments&&o.fileUploader.option("value").length?o.fileUploader.upload():u()))};var u=function(){o.templateDefiniton.oculusGuid=o.oculus?o.oculus.guid:null,o.templateDefiniton.attachments=[],p.forEach(function(y,f){o.templateDefiniton.attachments.push({id:f,fileName:y.name})}),l.saveWorkflowData(o.templateDefiniton).then(function(){o.oculus.click(),o.fileUploader&&(o.fileUploader.reset(),p.clear()),b(),DevExpress.ui.notify({message:scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_success"),position:{my:"center center",at:"center center"},onShown:function(){o.initializeForm({component:o.formInstance}),o.isSaving=!1},maxWidth:"540px"},"success",3e3)},function(y){p.size&&(o.fileUploader.reset(),o.fileUploader.option("value",Array.from(p.values())),p.forEach(function(f,R){l.deleteSubmittedFile(R)}),p.clear()),DevExpress.ui.notify({message:scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(y)})},b=function(){l.getWorkflowTemplate(o.workflowid,o.ispreview,o.articleid,o.revisionid).then(function(y){if(y){o.workflowType=y.workflowType,o.templateDefiniton=y,o.templateDefiniton.articleid=o.articleid,o.isOneTimeCompleted=y.isOneTimeCompleted,o.version=y.version,o.instructions=y.fillInstructions,o.preview=o.ispreview||y.isDraft,o.workflowName=y.name;var f=JSON.parse(o.templateDefiniton.formDefinitionJSON);if(f){var R=c.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==R){var S=c.scope.profile,v=c.scope.network.settings.languagePack.split("-")[0];if(null!=S.activeUserLanguage?.vendorLanguageCode&&v!=S.activeUserLanguage?.vendorLanguageCode){var w=[],g=[],x=[],F=[],D=[];f.items.forEach(function(T){"dxTextArea"===T.editorType&&(T.editorOptions.minHeight=25,T.editorOptions.maxHeight=500,T.editorOptions.autoResizeEnabled=!0),w.push(T.helpText),g.push(T.label.text),x.push(T.editorOptions.placeholder),F.push(T.editorOptions.switchedOffText),D.push(T.editorOptions.switchedOnText)});var I=w.concat(g).concat(x).concat(F).concat(D);d.translateByUserLanguageCode(I).then(T=>{for(var V=w.length,M=0;M<V;M++)f.items[M].helpText=T[M].translation,f.items[M].label.text=T[M+V].translation,f.items[M].editorOptions.placeholder=T[M+2*V].translation,f.items[M].editorOptions.switchedOffText=T[M+3*V].translation,f.items[M].editorOptions.switchedOnText=T[M+4*V].translation;o.formInstance.option(f);var _=JSON.parse(o.templateDefiniton.submissionDataJSON);o.formInstance.option("formData",_),o.preview&&o.formInstance.validate()})}else{f.items.forEach(function(T){"dxTextArea"===T.editorType&&(T.editorOptions.minHeight=25,T.editorOptions.maxHeight=500,T.editorOptions.autoResizeEnabled=!0)}),o.formInstance.option(f);var A=JSON.parse(o.templateDefiniton.submissionDataJSON);o.formInstance.option("formData",A),o.preview&&o.formInstance.validate()}}else f.items.forEach(function(V){"dxTextArea"===V.editorType&&(V.editorOptions.minHeight=25,V.editorOptions.maxHeight=500,V.editorOptions.autoResizeEnabled=!0)}),o.formInstance.option(f),A=JSON.parse(o.templateDefiniton.submissionDataJSON),o.formInstance.option("formData",A),o.preview&&o.formInstance.validate()}if(o.reloadComplete=!0,!o.preview&&(o.templateDefiniton.multipleUse||!y.isOneTimeCompleted)&&(o.oculus=Oculus.trackWorkflowImpression(t,{c:scope.currentScope.chapter.slug,n:scope.currentScope.network.slug,iw:y.id,iwt:y.workflowTemplateId})),o.templateDefiniton.withAttachments){var C="*",U=[],k=!0;o.isBrokenAndroidCordovaApp&&(C="image/jpg, image/jpeg, image/gif, image/png",U=[".jpg",".jpeg",".gif",".png"],k=!1),o.fileUploaderOptions={labelText:c.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:c.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:c.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:c.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:c.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:k,accept:C,allowedFileExtensions:U,value:[],maxFileSize:scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:l.getWorkflowUploadBaseUrl(),onValueChanged:function(T){T.element.find(".dx-fileuploader-upload-button").hide(),T.value.forEach(function(V){T.component.option("isValid",!0),V.size>scope.globalSettings.uploadMaxFileSizeInBytes&&T.component.option("isValid",!1)})},onInitialized:function(T){o.fileUploader=T.component},onFilesUploaded:function(T){u()},onUploaded:function(T){var V=JSON.parse(T.request.responseText);p.set(V,T.file)}}}}else o.error=scope.currentScope.network.getResourceOrKeyName("web_workflow_does_not_exist")},function(y){o.error=scope.currentScope.network.getResourceOrKeyName("web_workflow_error_loading")})};o.sendWorkflowButtonOptions={text:scope.currentScope.network.getResourceOrKeyName("web_common_workflow_submit"),type:"default",onClick:o.sendForm}}]}),app.factory("workflowService",["$rootScope","$http","$q","authService",function(e,t,a,n){var h=function(){return scope.apiEndpoint+"workflow/attachment/"};return{getWorkflowTemplate:function(m,d,o,s){var p=a.defer(),u=d?"?preview=true":"";return u?(o&&(u=u+"&articleId="+o),s&&(u=u+"&revisionId="+s)):o&&(u="?articleId="+o),t.get(scope.apiEndpoint+"workflow/template/"+m+u).then(function(b){p.resolve(b.data)},function(){p.reject()}),p.promise},saveWorkflowData:function(m){var d=a.defer();return t.post(scope.apiEndpoint+"workflow/submission",JSON.stringify(m)).then(function(o){d.resolve(o.data)},function(){d.reject()}),d.promise},getWorkflowUploadBaseUrl:h,getEmbeddableWorkflowList:function(){var m=a.defer();return t.get(scope.apiEndpoint+"workflow/list/").then(function(d){m.resolve(d.data)},function(){m.reject()}),m.promise},deleteSubmittedFile:function(m){var d=a.defer();return t.delete(h()+m).then(function(o){d.resolve(!1)},function(o){d.reject("Can not delete file: "+o)}),d}}}]);
(self.webpackChunkClientApp=self.webpackChunkClientApp||[]).push([["main"],{6084:(Rn,he,u)=>{"use strict";u.d(he,{Ul:()=>C,OS:()=>g,b0:()=>l,rN:()=>c,DZ:()=>a,kr:()=>s,gt:()=>h,_V:()=>J,ZB:()=>V,jk:()=>X,SM:()=>Y});var o=u(9056);const c={lockCount:0,lock(){this.lockCount++},callbacks:[],callEffects(){if(this.lockCount--,this.lockCount<0)throw new Error("Unexpected Effect Call");if(0===this.lockCount){const M=this.callbacks;this.callbacks=[],M.forEach(oe=>oe())}}},I=(M,oe)=>{if(!(M instanceof Object&&oe instanceof Object))return M===oe;const Te=Object.keys(M),Be=Object.keys(oe);return Te.length===Be.length&&!Te.some(ae=>M[ae]!==oe[ae])};class C extends o.wA{constructor(){super(...arguments),this._pendingContext=this.context}componentWillReceiveProps(oe,fe){this._pendingContext=fe??{}}shouldComponentUpdate(oe,fe){return!I(this.props,oe)||!I(this.state,fe)||!I(this.context,this._pendingContext)}}class g extends C{constructor(){super(...arguments),this._effects=[]}createEffects(){return[]}updateEffects(){}componentWillMount(){c.lock()}componentWillUpdate(oe,fe,Te){c.lock()}componentDidMount(){c.callbacks.push(()=>{this._effects=this.createEffects()}),c.callEffects()}componentDidUpdate(){c.callbacks.push(()=>this.updateEffects()),c.callEffects()}destroyEffects(){this._effects.forEach(oe=>oe.dispose())}componentWillUnmount(){this.destroyEffects()}}class a extends g{constructor(){super(...arguments),this.vDomElement=null}vDomUpdateClasses(){const oe=this.vDomElement,fe=oe.className.length?oe.className.split(" "):[],Te=fe.filter(ze=>oe.dxClasses.previous.indexOf(ze)<0),Be=oe.dxClasses.previous.filter(ze=>fe.indexOf(ze)<0);Te.forEach(ze=>{const ae=oe.dxClasses.removed.indexOf(ze);ae>-1?oe.dxClasses.removed.splice(ae,1):oe.dxClasses.added.push(ze)}),Be.forEach(ze=>{const ae=oe.dxClasses.added.indexOf(ze);ae>-1?oe.dxClasses.added.splice(ae,1):oe.dxClasses.removed.push(ze)})}componentDidMount(){const oe=(0,o.lN)(this.$LI,!0);this.vDomElement=oe,super.componentDidMount(),oe.dxClasses=oe.dxClasses||{removed:[],added:[],previous:[]},oe.dxClasses.previous=oe?.className.length?oe.className.split(" "):[]}componentDidUpdate(){super.componentDidUpdate();const oe=this.vDomElement;null!==oe&&(oe.dxClasses.added.forEach(fe=>oe.classList.add(fe)),oe.dxClasses.removed.forEach(fe=>oe.classList.remove(fe)),oe.dxClasses.previous=oe.className.length?oe.className.split(" "):[])}shouldComponentUpdate(oe,fe){const Te=super.shouldComponentUpdate(oe,fe);return Te&&this.vDomUpdateClasses(),Te}}let p=0;const s=function(M){const oe=p++;return{id:oe,defaultValue:M,Provider:class extends o.wA{getChildContext(){return Object.assign(Object.assign({},this.context),{[oe]:this.props.value||M})}render(){return this.props.children}}}};class l{constructor(oe,fe){this.dependency=fe,this.effect=oe,this.destroy=oe()}update(oe){const fe=this.dependency;oe&&(this.dependency=oe),(!oe||oe.some((Te,Be)=>fe[Be]!==Te))&&(this.dispose(),this.destroy=this.effect())}dispose(){this.destroy&&this.destroy()}}const h=()=>new l(()=>{(0,o.k4)()},[]);function E(M){return null===M}function R(M,oe,fe,Te,Be,ze){const ae=M.childFlags,_e=M.children,ye=M.props,ne=M.flags;if(1!==ae){if(2===ae)E(fe)?(0,o._M)(_e,oe,Te,Be,null,ze):fe=(fe=z(_e,oe,fe,Te,Be,ze))?fe.nextSibling:null;else if(16===ae)E(fe)?oe.appendChild(document.createTextNode(_e)):1!==oe.childNodes.length||3!==fe.nodeType?oe.textContent=_e:fe.nodeValue!==_e&&(fe.nodeValue=_e),fe=null;else if(12&ae){let ce=!1;for(let le=0,pe=_e.length;le<pe;++le){const Se=_e[le];E(fe)||ce&&(16&Se.flags)>0?(0,o._M)(Se,oe,Te,Be,fe,ze):fe=(fe=z(Se,oe,fe,Te,Be,ze))?fe.nextSibling:null,ce=(16&Se.flags)>0}}if(!(8192&ne)){let ce=null;for(;fe;)ce=fe.nextSibling,oe.removeChild(fe),fe=ce}}else!E(oe.firstChild)&&!function T(M,oe){return Boolean(oe&&oe.dangerouslySetInnerHTML&&oe.dangerouslySetInnerHTML.__html&&function O(M,oe){const fe=document.createElement("i");return fe.innerHTML=oe,fe.innerHTML===M.innerHTML}(M,oe.dangerouslySetInnerHTML.__html))}(oe,ye)&&(oe.textContent="",448&ne&&(oe.defaultValue=""))}function B(M,oe,fe){if(3!==fe.nodeType)oe.replaceChild(M.dom=document.createTextNode(M.children),fe);else{const Te=M.children;fe.nodeValue!==Te&&(fe.nodeValue=Te),M.dom=fe}return M.dom}function z(M,oe,fe,Te,Be,ze){const ae=M.flags|=16384;return 14&ae?function k(M,oe,fe,Te,Be,ze,ae){const ye=M.ref;let ce;if(ze){const le=(0,o.NK)(M,M.type,M.props||o.kT,Te,Be,ae);ce=z(le.$LI,oe,fe,le.$CX,Be,ae),(0,o._7)(ye,le,ae)}else{const le=(0,o.Cc)((0,o.F1)(M,Te));ce=z(le,oe,fe,Te,Be,ae),M.children=le,(0,o.vc)(M,ae)}return ce}(M,oe,fe,Te,Be,(4&ae)>0,ze):481&ae?function P(M,oe,fe,Te,Be,ze){const ae=M.props,_e=M.className,ye=M.flags,ne=M.ref;return Be=Be||(32&ye)>0,1!==fe.nodeType?((0,o._2)(M,null,Te,Be,null,ze),oe.replaceChild(M.dom,fe)):(M.dom=fe,R(M,fe,fe.firstChild,Te,Be,ze),E(ae)||(0,o.w7)(M,ye,ae,fe,Be),function x(M){return null==M}(_e)?""!==fe.className&&fe.removeAttribute("class"):Be?fe.setAttribute("class",_e):fe.className=_e,(0,o.j4)(ne,fe,ze)),M.dom}(M,oe,fe,Te,Be,ze):16&ae?B(M,oe,fe):512&ae?M.dom=fe:8192&ae?function W(M,oe,fe,Te,Be,ze){const ae=M.children;return 2===M.childFlags?(B(ae,oe,fe),ae.dom):(R(M,oe,fe,Te,Be,ze),function w(M){let oe,fe;for(;M;){if(oe=M.flags,2033&oe)return M.dom;fe=M.children,M=8192&oe?2===M.childFlags?fe:fe[fe.length-1]:4&oe?fe.$LI:fe}return null}(ae[ae.length-1]))}(M,oe,fe,Te,Be,ze):(function S(M){throw M||(M="a runtime error occured! Use Inferno in development environment to find the error."),new Error(`Inferno Error: ${M}`)}(),null)}function V(M,oe,fe){let Te=oe.firstChild;if(E(Te))(0,o.sY)(M,oe,fe);else{const Be=[];for(function b(M){return null===M||!1===M||!0===M||void 0===M}(M)||(Te=z(M,oe,Te,{},!1,Be));Te&&(Te=Te.nextSibling);)oe.removeChild(Te);if(Be.length>0){let ze;for(;void 0!==(ze=Be.shift());)ze()}}oe.$V=M,function y(M){return"function"==typeof M}(fe)&&fe()}var U=u(4572);function Y(M,oe,fe){setTimeout(()=>{(0,o.sY)((0,U.a)(M,oe),(M=>{var oe,fe;return(null===(oe=M.container)||void 0===oe?void 0:oe.get(0))||(null===(fe=M.item)||void 0===fe?void 0:fe.get(0))})(oe))},0)}const J=(M,oe,fe)=>{const Te=oe[M];return!!Te&&"string"!=typeof Te},j=new Set(["animationIterationCount","borderImageOutset","borderImageSlice","border-imageWidth","boxFlex","boxFlexGroup","boxOrdinalGroup","columnCount","fillOpacity","flex","flexGrow","flexNegative","flexOrder","flexPositive","flexShrink","floodOpacity","fontWeight","gridColumn","gridRow","lineClamp","lineHeight","opacity","order","orphans","stopOpacity","strokeDasharray","strokeDashoffset","strokeMiterlimit","strokeOpacity","strokeWidth","tabSize","widows","zIndex","zoom"]),q=/[A-Z]/g;function X(M){if(M instanceof Object)return Object.entries(M).reduce((oe,[fe,Te])=>(oe[(M=>M.replace(q,"-$&").toLowerCase())(fe)]=(M=>"number"==typeof M||!Number.isNaN(Number(M)))(Te)?((M,oe)=>j.has(M)?oe:`${oe}px`)(fe,Te):Te,oe),{})}},1704:(Rn,he,u)=>{"use strict";u.d(he,{s:()=>tn});const o=[0,2e3,1e4,3e4,null];class c{constructor(ge){this._retryDelays=void 0!==ge?[...ge,null]:o}nextRetryDelayInMilliseconds(ge){return this._retryDelays[ge.previousRetryCount]}}var I=u(8239);let C=(()=>{class $e{}return $e.Authorization="Authorization",$e.Cookie="Cookie",$e})();class g{constructor(ge,Ce,De){this.statusCode=ge,this.statusText=Ce,this.content=De}}class a{get(ge,Ce){return this.send({...Ce,method:"GET",url:ge})}post(ge,Ce){return this.send({...Ce,method:"POST",url:ge})}delete(ge,Ce){return this.send({...Ce,method:"DELETE",url:ge})}getCookieString(ge){return""}}class p extends a{constructor(ge,Ce){super(),this._innerClient=ge,this._accessTokenFactory=Ce}send(ge){var Ce=this;return(0,I.Z)(function*(){let De=!0;Ce._accessTokenFactory&&(!Ce._accessToken||ge.url&&ge.url.indexOf("/negotiate?")>0)&&(De=!1,Ce._accessToken=yield Ce._accessTokenFactory()),Ce._setAuthorizationHeader(ge);const Ye=yield Ce._innerClient.send(ge);return De&&401===Ye.statusCode&&Ce._accessTokenFactory?(Ce._accessToken=yield Ce._accessTokenFactory(),Ce._setAuthorizationHeader(ge),yield Ce._innerClient.send(ge)):Ye})()}_setAuthorizationHeader(ge){ge.headers||(ge.headers={}),this._accessToken?ge.headers[C.Authorization]=`Bearer ${this._accessToken}`:this._accessTokenFactory&&ge.headers[C.Authorization]&&delete ge.headers[C.Authorization]}getCookieString(ge){return this._innerClient.getCookieString(ge)}}class s extends Error{constructor(ge,Ce){const De=new.target.prototype;super(`${ge}: Status code '${Ce}'`),this.statusCode=Ce,this.__proto__=De}}class l extends Error{constructor(ge="A timeout occurred."){const Ce=new.target.prototype;super(ge),this.__proto__=Ce}}class d extends Error{constructor(ge="An abort occurred."){const Ce=new.target.prototype;super(ge),this.__proto__=Ce}}class h extends Error{constructor(ge,Ce){const De=new.target.prototype;super(ge),this.transport=Ce,this.errorType="UnsupportedTransportError",this.__proto__=De}}class v extends Error{constructor(ge,Ce){const De=new.target.prototype;super(ge),this.transport=Ce,this.errorType="DisabledTransportError",this.__proto__=De}}class x extends Error{constructor(ge,Ce){const De=new.target.prototype;super(ge),this.transport=Ce,this.errorType="FailedToStartTransportError",this.__proto__=De}}class b extends Error{constructor(ge){const Ce=new.target.prototype;super(ge),this.errorType="FailedToNegotiateWithServerError",this.__proto__=Ce}}class y extends Error{constructor(ge,Ce){const De=new.target.prototype;super(ge),this.innerErrors=Ce,this.__proto__=De}}var E=u(3473);class S{constructor(){}log(ge,Ce){}}S.instance=new S;class w{static isRequired(ge,Ce){if(null==ge)throw new Error(`The '${Ce}' argument is required.`)}static isNotEmpty(ge,Ce){if(!ge||ge.match(/^\s*$/))throw new Error(`The '${Ce}' argument should not be empty.`)}static isIn(ge,Ce,De){if(!(ge in Ce))throw new Error(`Unknown ${De} value: ${ge}.`)}}class T{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function k($e,ge){let Ce="";return P($e)?(Ce=`Binary data of length ${$e.byteLength}`,ge&&(Ce+=`. Content: '${function R($e){const ge=new Uint8Array($e);let Ce="";return ge.forEach(De=>{Ce+=`0x${De<16?"0":""}${De.toString(16)} `}),Ce.substr(0,Ce.length-1)}($e)}'`)):"string"==typeof $e&&(Ce=`String data of length ${$e.length}`,ge&&(Ce+=`. Content: '${$e}'`)),Ce}function P($e){return $e&&typeof ArrayBuffer<"u"&&($e instanceof ArrayBuffer||$e.constructor&&"ArrayBuffer"===$e.constructor.name)}function B($e,ge,Ce,De,Ye,bt){return W.apply(this,arguments)}function W(){return(W=(0,I.Z)(function*($e,ge,Ce,De,Ye,bt){const yt={},[kt,gn]=K();yt[kt]=gn,$e.log(E.i.Trace,`(${ge} transport) sending data. ${k(Ye,bt.logMessageContent)}.`);const ut=P(Ye)?"arraybuffer":"text",Ve=yield Ce.post(De,{content:Ye,headers:{...yt,...bt.headers},responseType:ut,timeout:bt.timeout,withCredentials:bt.withCredentials});$e.log(E.i.Trace,`(${ge} transport) request complete. Response status: ${Ve.statusCode}.`)})).apply(this,arguments)}class V{constructor(ge,Ce){this._subject=ge,this._observer=Ce}dispose(){const ge=this._subject.observers.indexOf(this._observer);ge>-1&&this._subject.observers.splice(ge,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(Ce=>{})}}class U{constructor(ge){this._minLevel=ge,this.out=console}log(ge,Ce){if(ge>=this._minLevel){const De=`[${(new Date).toISOString()}] ${E.i[ge]}: ${Ce}`;switch(ge){case E.i.Critical:case E.i.Error:this.out.error(De);break;case E.i.Warning:this.out.warn(De);break;case E.i.Information:this.out.info(De);break;default:this.out.log(De)}}}}function K(){let $e="X-SignalR-User-Agent";return T.isNode&&($e="User-Agent"),[$e,Y("7.0.2",J(),T.isNode?"NodeJS":"Browser",j())]}function Y($e,ge,Ce,De){let Ye="Microsoft SignalR/";const bt=$e.split(".");return Ye+=`${bt[0]}.${bt[1]}`,Ye+=` (${$e}; `,Ye+=ge&&""!==ge?`${ge}; `:"Unknown OS; ",Ye+=`${Ce}`,Ye+=De?`; ${De}`:"; Unknown Runtime Version",Ye+=")",Ye}function J(){if(!T.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function j(){if(T.isNode)return process.versions.node}function G($e){return $e.stack?$e.stack:$e.message?$e.message:`${$e}`}class Z extends a{constructor(ge){if(super(),this._logger=ge,typeof fetch>"u"){const Ce=require;this._jar=new(Ce("tough-cookie").CookieJar),this._fetchType=Ce("node-fetch"),this._fetchType=Ce("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function q(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const Ce=require;this._abortControllerType=Ce("abort-controller")}else this._abortControllerType=AbortController}send(ge){var Ce=this;return(0,I.Z)(function*(){if(ge.abortSignal&&ge.abortSignal.aborted)throw new d;if(!ge.method)throw new Error("No method defined.");if(!ge.url)throw new Error("No url defined.");const De=new Ce._abortControllerType;let Ye;ge.abortSignal&&(ge.abortSignal.onabort=()=>{De.abort(),Ye=new d});let yt,bt=null;ge.timeout&&(bt=setTimeout(()=>{De.abort(),Ce._logger.log(E.i.Warning,"Timeout from HTTP request."),Ye=new l},ge.timeout)),""===ge.content&&(ge.content=void 0),ge.content&&(ge.headers=ge.headers||{},ge.headers["Content-Type"]=P(ge.content)?"application/octet-stream":"text/plain;charset=UTF-8");try{yt=yield Ce._fetchType(ge.url,{body:ge.content,cache:"no-cache",credentials:!0===ge.withCredentials?"include":"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",...ge.headers},method:ge.method,mode:"cors",redirect:"follow",signal:De.signal})}catch(ut){throw Ye||(Ce._logger.log(E.i.Warning,`Error from HTTP request. ${ut}.`),ut)}finally{bt&&clearTimeout(bt),ge.abortSignal&&(ge.abortSignal.onabort=null)}if(!yt.ok){const ut=yield X(yt,"text");throw new s(ut||yt.statusText,yt.status)}const gn=yield X(yt,ge.responseType);return new g(yt.status,yt.statusText,gn)})()}getCookieString(ge){let Ce="";return T.isNode&&this._jar&&this._jar.getCookies(ge,(De,Ye)=>Ce=Ye.join("; ")),Ce}}function X($e,ge){let Ce;switch(ge){case"arraybuffer":Ce=$e.arrayBuffer();break;case"text":default:Ce=$e.text();break;case"blob":case"document":case"json":throw new Error(`${ge} is not supported.`)}return Ce}class M extends a{constructor(ge){super(),this._logger=ge}send(ge){return ge.abortSignal&&ge.abortSignal.aborted?Promise.reject(new d):ge.method?ge.url?new Promise((Ce,De)=>{const Ye=new XMLHttpRequest;Ye.open(ge.method,ge.url,!0),Ye.withCredentials=void 0===ge.withCredentials||ge.withCredentials,Ye.setRequestHeader("X-Requested-With","XMLHttpRequest"),""===ge.content&&(ge.content=void 0),ge.content&&(P(ge.content)?Ye.setRequestHeader("Content-Type","application/octet-stream"):Ye.setRequestHeader("Content-Type","text/plain;charset=UTF-8"));const bt=ge.headers;bt&&Object.keys(bt).forEach(yt=>{Ye.setRequestHeader(yt,bt[yt])}),ge.responseType&&(Ye.responseType=ge.responseType),ge.abortSignal&&(ge.abortSignal.onabort=()=>{Ye.abort(),De(new d)}),ge.timeout&&(Ye.timeout=ge.timeout),Ye.onload=()=>{ge.abortSignal&&(ge.abortSignal.onabort=null),Ye.status>=200&&Ye.status<300?Ce(new g(Ye.status,Ye.statusText,Ye.response||Ye.responseText)):De(new s(Ye.response||Ye.responseText||Ye.statusText,Ye.status))},Ye.onerror=()=>{this._logger.log(E.i.Warning,`Error from HTTP request. ${Ye.status}: ${Ye.statusText}.`),De(new s(Ye.statusText,Ye.status))},Ye.ontimeout=()=>{this._logger.log(E.i.Warning,"Timeout from HTTP request."),De(new l)},Ye.send(ge.content)}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class oe extends a{constructor(ge){if(super(),typeof fetch<"u"||T.isNode)this._httpClient=new Z(ge);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new M(ge)}}send(ge){return ge.abortSignal&&ge.abortSignal.aborted?Promise.reject(new d):ge.method?ge.url?this._httpClient.send(ge):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(ge){return this._httpClient.getCookieString(ge)}}var fe=(()=>{return($e=fe||(fe={}))[$e.None=0]="None",$e[$e.WebSockets=1]="WebSockets",$e[$e.ServerSentEvents=2]="ServerSentEvents",$e[$e.LongPolling=4]="LongPolling",fe;var $e})(),Te=(()=>{return($e=Te||(Te={}))[$e.Text=1]="Text",$e[$e.Binary=2]="Binary",Te;var $e})();class Be{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class ze{constructor(ge,Ce,De){this._httpClient=ge,this._logger=Ce,this._pollAbort=new Be,this._options=De,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(ge,Ce){var De=this;return(0,I.Z)(function*(){if(w.isRequired(ge,"url"),w.isRequired(Ce,"transferFormat"),w.isIn(Ce,Te,"transferFormat"),De._url=ge,De._logger.log(E.i.Trace,"(LongPolling transport) Connecting."),Ce===Te.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[Ye,bt]=K(),yt={[Ye]:bt,...De._options.headers},kt={abortSignal:De._pollAbort.signal,headers:yt,timeout:1e5,withCredentials:De._options.withCredentials};Ce===Te.Binary&&(kt.responseType="arraybuffer");const gn=`${ge}&_=${Date.now()}`;De._logger.log(E.i.Trace,`(LongPolling transport) polling: ${gn}.`);const ut=yield De._httpClient.get(gn,kt);200!==ut.statusCode?(De._logger.log(E.i.Error,`(LongPolling transport) Unexpected response code: ${ut.statusCode}.`),De._closeError=new s(ut.statusText||"",ut.statusCode),De._running=!1):De._running=!0,De._receiving=De._poll(De._url,kt)})()}_poll(ge,Ce){var De=this;return(0,I.Z)(function*(){try{for(;De._running;)try{const Ye=`${ge}&_=${Date.now()}`;De._logger.log(E.i.Trace,`(LongPolling transport) polling: ${Ye}.`);const bt=yield De._httpClient.get(Ye,Ce);204===bt.statusCode?(De._logger.log(E.i.Information,"(LongPolling transport) Poll terminated by server."),De._running=!1):200!==bt.statusCode?(De._logger.log(E.i.Error,`(LongPolling transport) Unexpected response code: ${bt.statusCode}.`),De._closeError=new s(bt.statusText||"",bt.statusCode),De._running=!1):bt.content?(De._logger.log(E.i.Trace,`(LongPolling transport) data received. ${k(bt.content,De._options.logMessageContent)}.`),De.onreceive&&De.onreceive(bt.content)):De._logger.log(E.i.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(Ye){De._running?Ye instanceof l?De._logger.log(E.i.Trace,"(LongPolling transport) Poll timed out, reissuing."):(De._closeError=Ye,De._running=!1):De._logger.log(E.i.Trace,`(LongPolling transport) Poll errored after shutdown: ${Ye.message}`)}}finally{De._logger.log(E.i.Trace,"(LongPolling transport) Polling complete."),De.pollAborted||De._raiseOnClose()}})()}send(ge){var Ce=this;return(0,I.Z)(function*(){return Ce._running?B(Ce._logger,"LongPolling",Ce._httpClient,Ce._url,ge,Ce._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var ge=this;return(0,I.Z)(function*(){ge._logger.log(E.i.Trace,"(LongPolling transport) Stopping polling."),ge._running=!1,ge._pollAbort.abort();try{yield ge._receiving,ge._logger.log(E.i.Trace,`(LongPolling transport) sending DELETE request to ${ge._url}.`);const Ce={},[De,Ye]=K();Ce[De]=Ye;const bt={headers:{...Ce,...ge._options.headers},timeout:ge._options.timeout,withCredentials:ge._options.withCredentials};yield ge._httpClient.delete(ge._url,bt),ge._logger.log(E.i.Trace,"(LongPolling transport) DELETE request sent.")}finally{ge._logger.log(E.i.Trace,"(LongPolling transport) Stop finished."),ge._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let ge="(LongPolling transport) Firing onclose event.";this._closeError&&(ge+=" Error: "+this._closeError),this._logger.log(E.i.Trace,ge),this.onclose(this._closeError)}}}class ae{constructor(ge,Ce,De,Ye){this._httpClient=ge,this._accessToken=Ce,this._logger=De,this._options=Ye,this.onreceive=null,this.onclose=null}connect(ge,Ce){var De=this;return(0,I.Z)(function*(){return w.isRequired(ge,"url"),w.isRequired(Ce,"transferFormat"),w.isIn(Ce,Te,"transferFormat"),De._logger.log(E.i.Trace,"(SSE transport) Connecting."),De._url=ge,De._accessToken&&(ge+=(ge.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(De._accessToken)}`),new Promise((Ye,bt)=>{let kt,yt=!1;if(Ce===Te.Text){if(T.isBrowser||T.isWebWorker)kt=new De._options.EventSource(ge,{withCredentials:De._options.withCredentials});else{const gn=De._httpClient.getCookieString(ge),ut={};ut.Cookie=gn;const[Ve,St]=K();ut[Ve]=St,kt=new De._options.EventSource(ge,{withCredentials:De._options.withCredentials,headers:{...ut,...De._options.headers}})}try{kt.onmessage=gn=>{if(De.onreceive)try{De._logger.log(E.i.Trace,`(SSE transport) data received. ${k(gn.data,De._options.logMessageContent)}.`),De.onreceive(gn.data)}catch(ut){return void De._close(ut)}},kt.onerror=gn=>{yt?De._close():bt(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},kt.onopen=()=>{De._logger.log(E.i.Information,`SSE connected to ${De._url}`),De._eventSource=kt,yt=!0,Ye()}}catch(gn){return void bt(gn)}}else bt(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(ge){var Ce=this;return(0,I.Z)(function*(){return Ce._eventSource?B(Ce._logger,"SSE",Ce._httpClient,Ce._url,ge,Ce._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(ge){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(ge))}}class _e{constructor(ge,Ce,De,Ye,bt,yt){this._logger=De,this._accessTokenFactory=Ce,this._logMessageContent=Ye,this._webSocketConstructor=bt,this._httpClient=ge,this.onreceive=null,this.onclose=null,this._headers=yt}connect(ge,Ce){var De=this;return(0,I.Z)(function*(){let Ye;return w.isRequired(ge,"url"),w.isRequired(Ce,"transferFormat"),w.isIn(Ce,Te,"transferFormat"),De._logger.log(E.i.Trace,"(WebSockets transport) Connecting."),De._accessTokenFactory&&(Ye=yield De._accessTokenFactory()),new Promise((bt,yt)=>{let kt;ge=ge.replace(/^http/,"ws");const gn=De._httpClient.getCookieString(ge);let ut=!1;if(T.isNode||T.isReactNative){const Ve={},[St,Xe]=K();Ve[St]=Xe,Ye&&(Ve[C.Authorization]=`Bearer ${Ye}`),gn&&(Ve[C.Cookie]=gn),kt=new De._webSocketConstructor(ge,void 0,{headers:{...Ve,...De._headers}})}else Ye&&(ge+=(ge.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(Ye)}`);kt||(kt=new De._webSocketConstructor(ge)),Ce===Te.Binary&&(kt.binaryType="arraybuffer"),kt.onopen=Ve=>{De._logger.log(E.i.Information,`WebSocket connected to ${ge}.`),De._webSocket=kt,ut=!0,bt()},kt.onerror=Ve=>{let St=null;St=typeof ErrorEvent<"u"&&Ve instanceof ErrorEvent?Ve.error:"There was an error with the transport",De._logger.log(E.i.Information,`(WebSockets transport) ${St}.`)},kt.onmessage=Ve=>{if(De._logger.log(E.i.Trace,`(WebSockets transport) data received. ${k(Ve.data,De._logMessageContent)}.`),De.onreceive)try{De.onreceive(Ve.data)}catch(St){return void De._close(St)}},kt.onclose=Ve=>{if(ut)De._close(Ve);else{let St=null;St=typeof ErrorEvent<"u"&&Ve instanceof ErrorEvent?Ve.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",yt(new Error(St))}}})})()}send(ge){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(E.i.Trace,`(WebSockets transport) sending data. ${k(ge,this._logMessageContent)}.`),this._webSocket.send(ge),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(ge){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(E.i.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(ge)||!1!==ge.wasClean&&1e3===ge.code?ge instanceof Error?this.onclose(ge):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${ge.code} (${ge.reason||"no reason given"}).`)))}_isCloseEvent(ge){return ge&&"boolean"==typeof ge.wasClean&&"number"==typeof ge.code}}class ne{constructor(ge,Ce={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,w.isRequired(ge,"url"),this._logger=function z($e){return void 0===$e?new U(E.i.Information):null===$e?S.instance:void 0!==$e.log?$e:new U($e)}(Ce.logger),this.baseUrl=this._resolveUrl(ge),(Ce=Ce||{}).logMessageContent=void 0!==Ce.logMessageContent&&Ce.logMessageContent,"boolean"!=typeof Ce.withCredentials&&void 0!==Ce.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");Ce.withCredentials=void 0===Ce.withCredentials||Ce.withCredentials,Ce.timeout=void 0===Ce.timeout?1e5:Ce.timeout;let De=null,Ye=null;if(T.isNode){const bt=require;De=bt("ws"),Ye=bt("eventsource")}!T.isNode&&typeof WebSocket<"u"&&!Ce.WebSocket?Ce.WebSocket=WebSocket:T.isNode&&!Ce.WebSocket&&De&&(Ce.WebSocket=De),!T.isNode&&typeof EventSource<"u"&&!Ce.EventSource?Ce.EventSource=EventSource:T.isNode&&!Ce.EventSource&&typeof Ye<"u"&&(Ce.EventSource=Ye),this._httpClient=new p(Ce.httpClient||new oe(this._logger),Ce.accessTokenFactory),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=Ce,this.onreceive=null,this.onclose=null}start(ge){var Ce=this;return(0,I.Z)(function*(){if(w.isIn(ge=ge||Te.Binary,Te,"transferFormat"),Ce._logger.log(E.i.Debug,`Starting connection with transfer format '${Te[ge]}'.`),"Disconnected"!==Ce._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(Ce._connectionState="Connecting",Ce._startInternalPromise=Ce._startInternal(ge),yield Ce._startInternalPromise,"Disconnecting"===Ce._connectionState){const De="Failed to start the HttpConnection before stop() was called.";return Ce._logger.log(E.i.Error,De),yield Ce._stopPromise,Promise.reject(new d(De))}if("Connected"!==Ce._connectionState){const De="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return Ce._logger.log(E.i.Error,De),Promise.reject(new d(De))}Ce._connectionStarted=!0})()}send(ge){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new le(this.transport)),this._sendQueue.send(ge))}stop(ge){var Ce=this;return(0,I.Z)(function*(){return"Disconnected"===Ce._connectionState?(Ce._logger.log(E.i.Debug,`Call to HttpConnection.stop(${ge}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===Ce._connectionState?(Ce._logger.log(E.i.Debug,`Call to HttpConnection.stop(${ge}) ignored because the connection is already in the disconnecting state.`),Ce._stopPromise):(Ce._connectionState="Disconnecting",Ce._stopPromise=new Promise(De=>{Ce._stopPromiseResolver=De}),yield Ce._stopInternal(ge),void(yield Ce._stopPromise))})()}_stopInternal(ge){var Ce=this;return(0,I.Z)(function*(){Ce._stopError=ge;try{yield Ce._startInternalPromise}catch{}if(Ce.transport){try{yield Ce.transport.stop()}catch(De){Ce._logger.log(E.i.Error,`HttpConnection.transport.stop() threw error '${De}'.`),Ce._stopConnection()}Ce.transport=void 0}else Ce._logger.log(E.i.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(ge){var Ce=this;return(0,I.Z)(function*(){let De=Ce.baseUrl;Ce._accessTokenFactory=Ce._options.accessTokenFactory,Ce._httpClient._accessTokenFactory=Ce._accessTokenFactory;try{if(Ce._options.skipNegotiation){if(Ce._options.transport!==fe.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");Ce.transport=Ce._constructTransport(fe.WebSockets),yield Ce._startTransport(De,ge)}else{let Ye=null,bt=0;do{if(Ye=yield Ce._getNegotiationResponse(De),"Disconnecting"===Ce._connectionState||"Disconnected"===Ce._connectionState)throw new d("The connection was stopped during negotiation.");if(Ye.error)throw new Error(Ye.error);if(Ye.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(Ye.url&&(De=Ye.url),Ye.accessToken){const yt=Ye.accessToken;Ce._accessTokenFactory=()=>yt,Ce._httpClient._accessToken=yt,Ce._httpClient._accessTokenFactory=void 0}bt++}while(Ye.url&&bt<100);if(100===bt&&Ye.url)throw new Error("Negotiate redirection limit exceeded.");yield Ce._createTransport(De,Ce._options.transport,Ye,ge)}Ce.transport instanceof ze&&(Ce.features.inherentKeepAlive=!0),"Connecting"===Ce._connectionState&&(Ce._logger.log(E.i.Debug,"The HttpConnection connected successfully."),Ce._connectionState="Connected")}catch(Ye){return Ce._logger.log(E.i.Error,"Failed to start the connection: "+Ye),Ce._connectionState="Disconnected",Ce.transport=void 0,Ce._stopPromiseResolver(),Promise.reject(Ye)}})()}_getNegotiationResponse(ge){var Ce=this;return(0,I.Z)(function*(){const De={},[Ye,bt]=K();De[Ye]=bt;const yt=Ce._resolveNegotiateUrl(ge);Ce._logger.log(E.i.Debug,`Sending negotiation request: ${yt}.`);try{const kt=yield Ce._httpClient.post(yt,{content:"",headers:{...De,...Ce._options.headers},timeout:Ce._options.timeout,withCredentials:Ce._options.withCredentials});if(200!==kt.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${kt.statusCode}'`));const gn=JSON.parse(kt.content);return(!gn.negotiateVersion||gn.negotiateVersion<1)&&(gn.connectionToken=gn.connectionId),gn}catch(kt){let gn="Failed to complete negotiation with the server: "+kt;return kt instanceof s&&404===kt.statusCode&&(gn+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),Ce._logger.log(E.i.Error,gn),Promise.reject(new b(gn))}})()}_createConnectUrl(ge,Ce){return Ce?ge+(-1===ge.indexOf("?")?"?":"&")+`id=${Ce}`:ge}_createTransport(ge,Ce,De,Ye){var bt=this;return(0,I.Z)(function*(){let yt=bt._createConnectUrl(ge,De.connectionToken);if(bt._isITransport(Ce))return bt._logger.log(E.i.Debug,"Connection was provided an instance of ITransport, using that directly."),bt.transport=Ce,yield bt._startTransport(yt,Ye),void(bt.connectionId=De.connectionId);const kt=[],gn=De.availableTransports||[];let ut=De;for(const Ve of gn){const St=bt._resolveTransportOrError(Ve,Ce,Ye);if(St instanceof Error)kt.push(`${Ve.transport} failed:`),kt.push(St);else if(bt._isITransport(St)){if(bt.transport=St,!ut){try{ut=yield bt._getNegotiationResponse(ge)}catch(Xe){return Promise.reject(Xe)}yt=bt._createConnectUrl(ge,ut.connectionToken)}try{return yield bt._startTransport(yt,Ye),void(bt.connectionId=ut.connectionId)}catch(Xe){if(bt._logger.log(E.i.Error,`Failed to start the transport '${Ve.transport}': ${Xe}`),ut=void 0,kt.push(new x(`${Ve.transport} failed: ${Xe}`,fe[Ve.transport])),"Connecting"!==bt._connectionState){const Vt="Failed to select transport before stop() was called.";return bt._logger.log(E.i.Debug,Vt),Promise.reject(new d(Vt))}}}}return Promise.reject(kt.length>0?new y(`Unable to connect to the server with any of the available transports. ${kt.join(" ")}`,kt):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(ge){switch(ge){case fe.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new _e(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case fe.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new ae(this._httpClient,this._httpClient._accessToken,this._logger,this._options);case fe.LongPolling:return new ze(this._httpClient,this._logger,this._options);default:throw new Error(`Unknown transport: ${ge}.`)}}_startTransport(ge,Ce){return this.transport.onreceive=this.onreceive,this.transport.onclose=De=>this._stopConnection(De),this.transport.connect(ge,Ce)}_resolveTransportOrError(ge,Ce,De){const Ye=fe[ge.transport];if(null==Ye)return this._logger.log(E.i.Debug,`Skipping transport '${ge.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${ge.transport}' because it is not supported by this client.`);if(!function ce($e,ge){return!$e||0!=(ge&$e)}(Ce,Ye))return this._logger.log(E.i.Debug,`Skipping transport '${fe[Ye]}' because it was disabled by the client.`),new v(`'${fe[Ye]}' is disabled by the client.`,Ye);if(!(ge.transferFormats.map(yt=>Te[yt]).indexOf(De)>=0))return this._logger.log(E.i.Debug,`Skipping transport '${fe[Ye]}' because it does not support the requested transfer format '${Te[De]}'.`),new Error(`'${fe[Ye]}' does not support ${Te[De]}.`);if(Ye===fe.WebSockets&&!this._options.WebSocket||Ye===fe.ServerSentEvents&&!this._options.EventSource)return this._logger.log(E.i.Debug,`Skipping transport '${fe[Ye]}' because it is not supported in your environment.'`),new h(`'${fe[Ye]}' is not supported in your environment.`,Ye);this._logger.log(E.i.Debug,`Selecting transport '${fe[Ye]}'.`);try{return this._constructTransport(Ye)}catch(yt){return yt}}_isITransport(ge){return ge&&"object"==typeof ge&&"connect"in ge}_stopConnection(ge){if(this._logger.log(E.i.Debug,`HttpConnection.stopConnection(${ge}) called while in state ${this._connectionState}.`),this.transport=void 0,ge=this._stopError||ge,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(E.i.Warning,`Call to HttpConnection.stopConnection(${ge}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${ge}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),ge?this._logger.log(E.i.Error,`Connection disconnected with error '${ge}'.`):this._logger.log(E.i.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(Ce=>{this._logger.log(E.i.Error,`TransportSendQueue.stop() threw error '${Ce}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(ge)}catch(Ce){this._logger.log(E.i.Error,`HttpConnection.onclose(${ge}) threw error '${Ce}'.`)}}}else this._logger.log(E.i.Debug,`Call to HttpConnection.stopConnection(${ge}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(ge){if(0===ge.lastIndexOf("https://",0)||0===ge.lastIndexOf("http://",0))return ge;if(!T.isBrowser)throw new Error(`Cannot resolve '${ge}'.`);const Ce=window.document.createElement("a");return Ce.href=ge,this._logger.log(E.i.Information,`Normalizing '${ge}' to '${Ce.href}'.`),Ce.href}_resolveNegotiateUrl(ge){const Ce=ge.indexOf("?");let De=ge.substring(0,-1===Ce?ge.length:Ce);return"/"!==De[De.length-1]&&(De+="/"),De+="negotiate",De+=-1===Ce?"":ge.substring(Ce),-1===De.indexOf("negotiateVersion")&&(De+=-1===Ce?"?":"&",De+="negotiateVersion="+this._negotiateVersion),De}}class le{constructor(ge){this._transport=ge,this._buffer=[],this._executing=!0,this._sendBufferedData=new pe,this._transportResult=new pe,this._sendLoopPromise=this._sendLoop()}send(ge){return this._bufferData(ge),this._transportResult||(this._transportResult=new pe),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(ge){if(this._buffer.length&&typeof this._buffer[0]!=typeof ge)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof ge}`);this._buffer.push(ge),this._sendBufferedData.resolve()}_sendLoop(){var ge=this;return(0,I.Z)(function*(){for(;;){if(yield ge._sendBufferedData.promise,!ge._executing){ge._transportResult&&ge._transportResult.reject("Connection stopped.");break}ge._sendBufferedData=new pe;const Ce=ge._transportResult;ge._transportResult=void 0;const De="string"==typeof ge._buffer[0]?ge._buffer.join(""):le._concatBuffers(ge._buffer);ge._buffer.length=0;try{yield ge._transport.send(De),Ce.resolve()}catch(Ye){Ce.reject(Ye)}}})()}static _concatBuffers(ge){const Ce=ge.map(bt=>bt.byteLength).reduce((bt,yt)=>bt+yt),De=new Uint8Array(Ce);let Ye=0;for(const bt of ge)De.set(new Uint8Array(bt),Ye),Ye+=bt.byteLength;return De.buffer}}class pe{constructor(){this.promise=new Promise((ge,Ce)=>[this._resolver,this._rejecter]=[ge,Ce])}resolve(){this._resolver()}reject(ge){this._rejecter(ge)}}class Se{static write(ge){return`${ge}${Se.RecordSeparator}`}static parse(ge){if(ge[ge.length-1]!==Se.RecordSeparator)throw new Error("Message is incomplete.");const Ce=ge.split(Se.RecordSeparator);return Ce.pop(),Ce}}Se.RecordSeparatorCode=30,Se.RecordSeparator=String.fromCharCode(Se.RecordSeparatorCode);class re{writeHandshakeRequest(ge){return Se.write(JSON.stringify(ge))}parseHandshakeResponse(ge){let Ce,De;if(P(ge)){const kt=new Uint8Array(ge),gn=kt.indexOf(Se.RecordSeparatorCode);if(-1===gn)throw new Error("Message is incomplete.");const ut=gn+1;Ce=String.fromCharCode.apply(null,Array.prototype.slice.call(kt.slice(0,ut))),De=kt.byteLength>ut?kt.slice(ut).buffer:null}else{const kt=ge,gn=kt.indexOf(Se.RecordSeparator);if(-1===gn)throw new Error("Message is incomplete.");const ut=gn+1;Ce=kt.substring(0,ut),De=kt.length>ut?kt.substring(ut):null}const Ye=Se.parse(Ce),bt=JSON.parse(Ye[0]);if(bt.type)throw new Error("Expected a handshake response from the server.");return[De,bt]}}var te=(()=>{return($e=te||(te={}))[$e.Invocation=1]="Invocation",$e[$e.StreamItem=2]="StreamItem",$e[$e.Completion=3]="Completion",$e[$e.StreamInvocation=4]="StreamInvocation",$e[$e.CancelInvocation=5]="CancelInvocation",$e[$e.Ping=6]="Ping",$e[$e.Close=7]="Close",te;var $e})();class ie{constructor(){this.observers=[]}next(ge){for(const Ce of this.observers)Ce.next(ge)}error(ge){for(const Ce of this.observers)Ce.error&&Ce.error(ge)}complete(){for(const ge of this.observers)ge.complete&&ge.complete()}subscribe(ge){return this.observers.push(ge),new V(this,ge)}}var Ae=(()=>{return($e=Ae||(Ae={})).Disconnected="Disconnected",$e.Connecting="Connecting",$e.Connected="Connected",$e.Disconnecting="Disconnecting",$e.Reconnecting="Reconnecting",Ae;var $e})();class Ne{constructor(ge,Ce,De,Ye){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(E.i.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},w.isRequired(ge,"connection"),w.isRequired(Ce,"logger"),w.isRequired(De,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=Ce,this._protocol=De,this.connection=ge,this._reconnectPolicy=Ye,this._handshakeProtocol=new re,this.connection.onreceive=bt=>this._processIncomingData(bt),this.connection.onclose=bt=>this._connectionClosed(bt),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=Ae.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:te.Ping})}static create(ge,Ce,De,Ye){return new Ne(ge,Ce,De,Ye)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(ge){if(this._connectionState!==Ae.Disconnected&&this._connectionState!==Ae.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!ge)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=ge}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var ge=this;return(0,I.Z)(function*(){if(ge._connectionState!==Ae.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));ge._connectionState=Ae.Connecting,ge._logger.log(E.i.Debug,"Starting HubConnection.");try{yield ge._startInternal(),T.isBrowser&&window.document.addEventListener("freeze",ge._freezeEventListener),ge._connectionState=Ae.Connected,ge._connectionStarted=!0,ge._logger.log(E.i.Debug,"HubConnection connected successfully.")}catch(Ce){return ge._connectionState=Ae.Disconnected,ge._logger.log(E.i.Debug,`HubConnection failed to start successfully because of error '${Ce}'.`),Promise.reject(Ce)}})()}_startInternal(){var ge=this;return(0,I.Z)(function*(){ge._stopDuringStartError=void 0,ge._receivedHandshakeResponse=!1;const Ce=new Promise((De,Ye)=>{ge._handshakeResolver=De,ge._handshakeRejecter=Ye});yield ge.connection.start(ge._protocol.transferFormat);try{const De={protocol:ge._protocol.name,version:ge._protocol.version};if(ge._logger.log(E.i.Debug,"Sending handshake request."),yield ge._sendMessage(ge._handshakeProtocol.writeHandshakeRequest(De)),ge._logger.log(E.i.Information,`Using HubProtocol '${ge._protocol.name}'.`),ge._cleanupTimeout(),ge._resetTimeoutPeriod(),ge._resetKeepAliveInterval(),yield Ce,ge._stopDuringStartError)throw ge._stopDuringStartError;ge.connection.features.inherentKeepAlive||(yield ge._sendMessage(ge._cachedPingMessage))}catch(De){throw ge._logger.log(E.i.Debug,`Hub handshake failed with error '${De}' during start(). Stopping HubConnection.`),ge._cleanupTimeout(),ge._cleanupPingTimer(),yield ge.connection.stop(De),De}})()}stop(){var ge=this;return(0,I.Z)(function*(){const Ce=ge._startPromise;ge._stopPromise=ge._stopInternal(),yield ge._stopPromise;try{yield Ce}catch{}})()}_stopInternal(ge){return this._connectionState===Ae.Disconnected?(this._logger.log(E.i.Debug,`Call to HubConnection.stop(${ge}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===Ae.Disconnecting?(this._logger.log(E.i.Debug,`Call to HttpConnection.stop(${ge}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=Ae.Disconnecting,this._logger.log(E.i.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(E.i.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=ge||new d("The connection was stopped before the hub handshake could complete."),this.connection.stop(ge)))}stream(ge,...Ce){const[De,Ye]=this._replaceStreamingParams(Ce),bt=this._createStreamInvocation(ge,Ce,Ye);let yt;const kt=new ie;return kt.cancelCallback=()=>{const gn=this._createCancelInvocation(bt.invocationId);return delete this._callbacks[bt.invocationId],yt.then(()=>this._sendWithProtocol(gn))},this._callbacks[bt.invocationId]=(gn,ut)=>{ut?kt.error(ut):gn&&(gn.type===te.Completion?gn.error?kt.error(new Error(gn.error)):kt.complete():kt.next(gn.item))},yt=this._sendWithProtocol(bt).catch(gn=>{kt.error(gn),delete this._callbacks[bt.invocationId]}),this._launchStreams(De,yt),kt}_sendMessage(ge){return this._resetKeepAliveInterval(),this.connection.send(ge)}_sendWithProtocol(ge){return this._sendMessage(this._protocol.writeMessage(ge))}send(ge,...Ce){const[De,Ye]=this._replaceStreamingParams(Ce),bt=this._sendWithProtocol(this._createInvocation(ge,Ce,!0,Ye));return this._launchStreams(De,bt),bt}invoke(ge,...Ce){const[De,Ye]=this._replaceStreamingParams(Ce),bt=this._createInvocation(ge,Ce,!1,Ye);return new Promise((kt,gn)=>{this._callbacks[bt.invocationId]=(Ve,St)=>{St?gn(St):Ve&&(Ve.type===te.Completion?Ve.error?gn(new Error(Ve.error)):kt(Ve.result):gn(new Error(`Unexpected message type: ${Ve.type}`)))};const ut=this._sendWithProtocol(bt).catch(Ve=>{gn(Ve),delete this._callbacks[bt.invocationId]});this._launchStreams(De,ut)})}on(ge,Ce){!ge||!Ce||(ge=ge.toLowerCase(),this._methods[ge]||(this._methods[ge]=[]),-1===this._methods[ge].indexOf(Ce)&&this._methods[ge].push(Ce))}off(ge,Ce){if(!ge)return;ge=ge.toLowerCase();const De=this._methods[ge];if(De)if(Ce){const Ye=De.indexOf(Ce);-1!==Ye&&(De.splice(Ye,1),0===De.length&&delete this._methods[ge])}else delete this._methods[ge]}onclose(ge){ge&&this._closedCallbacks.push(ge)}onreconnecting(ge){ge&&this._reconnectingCallbacks.push(ge)}onreconnected(ge){ge&&this._reconnectedCallbacks.push(ge)}_processIncomingData(ge){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(ge=this._processHandshakeResponse(ge),this._receivedHandshakeResponse=!0),ge){const Ce=this._protocol.parseMessages(ge,this._logger);for(const De of Ce)switch(De.type){case te.Invocation:this._invokeClientMethod(De);break;case te.StreamItem:case te.Completion:{const Ye=this._callbacks[De.invocationId];if(Ye){De.type===te.Completion&&delete this._callbacks[De.invocationId];try{Ye(De)}catch(bt){this._logger.log(E.i.Error,`Stream callback threw error: ${G(bt)}`)}}break}case te.Ping:break;case te.Close:{this._logger.log(E.i.Information,"Close message received from server.");const Ye=De.error?new Error("Server returned an error on close: "+De.error):void 0;!0===De.allowReconnect?this.connection.stop(Ye):this._stopPromise=this._stopInternal(Ye);break}default:this._logger.log(E.i.Warning,`Invalid message type: ${De.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(ge){let Ce,De;try{[De,Ce]=this._handshakeProtocol.parseHandshakeResponse(ge)}catch(Ye){const bt="Error parsing handshake response: "+Ye;this._logger.log(E.i.Error,bt);const yt=new Error(bt);throw this._handshakeRejecter(yt),yt}if(Ce.error){const Ye="Server returned handshake error: "+Ce.error;this._logger.log(E.i.Error,Ye);const bt=new Error(Ye);throw this._handshakeRejecter(bt),bt}return this._logger.log(E.i.Debug,"Server handshake complete."),this._handshakeResolver(),De}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var ge=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let Ce=this._nextKeepAlive-(new Date).getTime();Ce<0&&(Ce=0),this._pingServerHandle=setTimeout((0,I.Z)(function*(){if(ge._connectionState===Ae.Connected)try{yield ge._sendMessage(ge._cachedPingMessage)}catch{ge._cleanupPingTimer()}}),Ce)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(ge){var Ce=this;return(0,I.Z)(function*(){const De=ge.target.toLowerCase(),Ye=Ce._methods[De];if(!Ye)return Ce._logger.log(E.i.Warning,`No client method with the name '${De}' found.`),void(ge.invocationId&&(Ce._logger.log(E.i.Warning,`No result given for '${De}' method and invocation ID '${ge.invocationId}'.`),yield Ce._sendWithProtocol(Ce._createCompletionMessage(ge.invocationId,"Client didn't provide a result.",null))));const bt=Ye.slice(),yt=!!ge.invocationId;let kt,gn,ut;for(const Ve of bt)try{const St=kt;kt=yield Ve.apply(Ce,ge.arguments),yt&&kt&&St&&(Ce._logger.log(E.i.Error,`Multiple results provided for '${De}'. Sending error to server.`),ut=Ce._createCompletionMessage(ge.invocationId,"Client provided multiple results.",null)),gn=void 0}catch(St){gn=St,Ce._logger.log(E.i.Error,`A callback for the method '${De}' threw error '${St}'.`)}ut?yield Ce._sendWithProtocol(ut):yt?(gn?ut=Ce._createCompletionMessage(ge.invocationId,`${gn}`,null):void 0!==kt?ut=Ce._createCompletionMessage(ge.invocationId,null,kt):(Ce._logger.log(E.i.Warning,`No result given for '${De}' method and invocation ID '${ge.invocationId}'.`),ut=Ce._createCompletionMessage(ge.invocationId,"Client didn't provide a result.",null)),yield Ce._sendWithProtocol(ut)):kt&&Ce._logger.log(E.i.Error,`Result given for '${De}' method but server is not expecting a result.`)})()}_connectionClosed(ge){this._logger.log(E.i.Debug,`HubConnection.connectionClosed(${ge}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||ge||new d("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(ge||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===Ae.Disconnecting?this._completeClose(ge):this._connectionState===Ae.Connected&&this._reconnectPolicy?this._reconnect(ge):this._connectionState===Ae.Connected&&this._completeClose(ge)}_completeClose(ge){if(this._connectionStarted){this._connectionState=Ae.Disconnected,this._connectionStarted=!1,T.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(Ce=>Ce.apply(this,[ge]))}catch(Ce){this._logger.log(E.i.Error,`An onclose callback called with error '${ge}' threw error '${Ce}'.`)}}}_reconnect(ge){var Ce=this;return(0,I.Z)(function*(){const De=Date.now();let Ye=0,bt=void 0!==ge?ge:new Error("Attempting to reconnect due to a unknown error."),yt=Ce._getNextRetryDelay(Ye++,0,bt);if(null===yt)return Ce._logger.log(E.i.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void Ce._completeClose(ge);if(Ce._connectionState=Ae.Reconnecting,Ce._logger.log(E.i.Information,ge?`Connection reconnecting because of error '${ge}'.`:"Connection reconnecting."),0!==Ce._reconnectingCallbacks.length){try{Ce._reconnectingCallbacks.forEach(kt=>kt.apply(Ce,[ge]))}catch(kt){Ce._logger.log(E.i.Error,`An onreconnecting callback called with error '${ge}' threw error '${kt}'.`)}if(Ce._connectionState!==Ae.Reconnecting)return void Ce._logger.log(E.i.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==yt;){if(Ce._logger.log(E.i.Information,`Reconnect attempt number ${Ye} will start in ${yt} ms.`),yield new Promise(kt=>{Ce._reconnectDelayHandle=setTimeout(kt,yt)}),Ce._reconnectDelayHandle=void 0,Ce._connectionState!==Ae.Reconnecting)return void Ce._logger.log(E.i.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield Ce._startInternal(),Ce._connectionState=Ae.Connected,Ce._logger.log(E.i.Information,"HubConnection reconnected successfully."),0!==Ce._reconnectedCallbacks.length)try{Ce._reconnectedCallbacks.forEach(kt=>kt.apply(Ce,[Ce.connection.connectionId]))}catch(kt){Ce._logger.log(E.i.Error,`An onreconnected callback called with connectionId '${Ce.connection.connectionId}; threw error '${kt}'.`)}return}catch(kt){if(Ce._logger.log(E.i.Information,`Reconnect attempt failed because of error '${kt}'.`),Ce._connectionState!==Ae.Reconnecting)return Ce._logger.log(E.i.Debug,`Connection moved to the '${Ce._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(Ce._connectionState===Ae.Disconnecting&&Ce._completeClose());bt=kt instanceof Error?kt:new Error(kt.toString()),yt=Ce._getNextRetryDelay(Ye++,Date.now()-De,bt)}}Ce._logger.log(E.i.Information,`Reconnect retries have been exhausted after ${Date.now()-De} ms and ${Ye} failed attempts. Connection disconnecting.`),Ce._completeClose()})()}_getNextRetryDelay(ge,Ce,De){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:Ce,previousRetryCount:ge,retryReason:De})}catch(Ye){return this._logger.log(E.i.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${ge}, ${Ce}) threw error '${Ye}'.`),null}}_cancelCallbacksWithError(ge){const Ce=this._callbacks;this._callbacks={},Object.keys(Ce).forEach(De=>{const Ye=Ce[De];try{Ye(null,ge)}catch(bt){this._logger.log(E.i.Error,`Stream 'error' callback called with '${ge}' threw error: ${G(bt)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(ge,Ce,De,Ye){if(De)return 0!==Ye.length?{arguments:Ce,streamIds:Ye,target:ge,type:te.Invocation}:{arguments:Ce,target:ge,type:te.Invocation};{const bt=this._invocationId;return this._invocationId++,0!==Ye.length?{arguments:Ce,invocationId:bt.toString(),streamIds:Ye,target:ge,type:te.Invocation}:{arguments:Ce,invocationId:bt.toString(),target:ge,type:te.Invocation}}}_launchStreams(ge,Ce){if(0!==ge.length){Ce||(Ce=Promise.resolve());for(const De in ge)ge[De].subscribe({complete:()=>{Ce=Ce.then(()=>this._sendWithProtocol(this._createCompletionMessage(De)))},error:Ye=>{let bt;bt=Ye instanceof Error?Ye.message:Ye&&Ye.toString?Ye.toString():"Unknown error",Ce=Ce.then(()=>this._sendWithProtocol(this._createCompletionMessage(De,bt)))},next:Ye=>{Ce=Ce.then(()=>this._sendWithProtocol(this._createStreamItemMessage(De,Ye)))}})}}_replaceStreamingParams(ge){const Ce=[],De=[];for(let Ye=0;Ye<ge.length;Ye++){const bt=ge[Ye];if(this._isObservable(bt)){const yt=this._invocationId;this._invocationId++,Ce[yt]=bt,De.push(yt.toString()),ge.splice(Ye,1)}}return[Ce,De]}_isObservable(ge){return ge&&ge.subscribe&&"function"==typeof ge.subscribe}_createStreamInvocation(ge,Ce,De){const Ye=this._invocationId;return this._invocationId++,0!==De.length?{arguments:Ce,invocationId:Ye.toString(),streamIds:De,target:ge,type:te.StreamInvocation}:{arguments:Ce,invocationId:Ye.toString(),target:ge,type:te.StreamInvocation}}_createCancelInvocation(ge){return{invocationId:ge,type:te.CancelInvocation}}_createStreamItemMessage(ge,Ce){return{invocationId:ge,item:Ce,type:te.StreamItem}}_createCompletionMessage(ge,Ce,De){return Ce?{error:Ce,invocationId:ge,type:te.Completion}:{invocationId:ge,result:De,type:te.Completion}}}class tt{constructor(){this.name="json",this.version=1,this.transferFormat=Te.Text}parseMessages(ge,Ce){if("string"!=typeof ge)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!ge)return[];null===Ce&&(Ce=S.instance);const De=Se.parse(ge),Ye=[];for(const bt of De){const yt=JSON.parse(bt);if("number"!=typeof yt.type)throw new Error("Invalid payload.");switch(yt.type){case te.Invocation:this._isInvocationMessage(yt);break;case te.StreamItem:this._isStreamItemMessage(yt);break;case te.Completion:this._isCompletionMessage(yt);break;case te.Ping:case te.Close:break;default:Ce.log(E.i.Information,"Unknown message type '"+yt.type+"' ignored.");continue}Ye.push(yt)}return Ye}writeMessage(ge){return Se.write(JSON.stringify(ge))}_isInvocationMessage(ge){this._assertNotEmptyString(ge.target,"Invalid payload for Invocation message."),void 0!==ge.invocationId&&this._assertNotEmptyString(ge.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(ge){if(this._assertNotEmptyString(ge.invocationId,"Invalid payload for StreamItem message."),void 0===ge.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(ge){if(ge.result&&ge.error)throw new Error("Invalid payload for Completion message.");!ge.result&&ge.error&&this._assertNotEmptyString(ge.error,"Invalid payload for Completion message."),this._assertNotEmptyString(ge.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(ge,Ce){if("string"!=typeof ge||""===ge)throw new Error(Ce)}}const Le={trace:E.i.Trace,debug:E.i.Debug,info:E.i.Information,information:E.i.Information,warn:E.i.Warning,warning:E.i.Warning,error:E.i.Error,critical:E.i.Critical,none:E.i.None};class tn{configureLogging(ge){if(w.isRequired(ge,"logging"),function Pe($e){return void 0!==$e.log}(ge))this.logger=ge;else if("string"==typeof ge){const Ce=function gt($e){const ge=Le[$e.toLowerCase()];if(typeof ge<"u")return ge;throw new Error(`Unknown log level: ${$e}`)}(ge);this.logger=new U(Ce)}else this.logger=new U(ge);return this}withUrl(ge,Ce){return w.isRequired(ge,"url"),w.isNotEmpty(ge,"url"),this.url=ge,this.httpConnectionOptions="object"==typeof Ce?{...this.httpConnectionOptions,...Ce}:{...this.httpConnectionOptions,transport:Ce},this}withHubProtocol(ge){return w.isRequired(ge,"protocol"),this.protocol=ge,this}withAutomaticReconnect(ge){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=ge?Array.isArray(ge)?new c(ge):ge:new c,this}build(){const ge=this.httpConnectionOptions||{};if(void 0===ge.logger&&(ge.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const Ce=new ne(this.url,ge);return Ne.create(Ce,this.logger||S.instance,this.protocol||new tt,this.reconnectPolicy)}}},3473:(Rn,he,u)=>{"use strict";u.d(he,{i:()=>o});var o=(()=>{return(c=o||(o={}))[c.Trace=0]="Trace",c[c.Debug=1]="Debug",c[c.Information=2]="Information",c[c.Warning=3]="Warning",c[c.Error=4]="Error",c[c.Critical=5]="Critical",c[c.None=6]="None",o;var c})()},8096:function(Rn){Rn.exports=function(he){function u(c){if(o[c])return o[c].exports;var I=o[c]={exports:{},id:c,loaded:!1};return he[c].call(I.exports,I,I.exports,u),I.loaded=!0,I.exports}var o={};return u.m=he,u.c=o,u.p="dist/",u(0)}([function(he,u,o){"use strict";function c(V){return V&&V.__esModule?V:{default:V}}var I=Object.assign||function(V){for(var U=1;U<arguments.length;U++){var K=arguments[U];for(var Y in K)Object.prototype.hasOwnProperty.call(K,Y)&&(V[Y]=K[Y])}return V},g=(c(o(1)),o(6)),a=c(g),s=c(o(7)),d=c(o(8)),v=c(o(9)),b=c(o(10)),E=c(o(11)),O=c(o(14)),w=[],T=!1,k={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},R=function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(T=!0),T)return w=(0,E.default)(w,k),(0,b.default)(w,k.once),w},P=function(){w=(0,O.default)(),R()};he.exports={init:function(V){k=I(k,V),w=(0,O.default)();var U=document.all&&!window.atob;return function(V){return!0===V||"mobile"===V&&v.default.mobile()||"phone"===V&&v.default.phone()||"tablet"===V&&v.default.tablet()||"function"==typeof V&&!0===V()}(k.disable)||U?void w.forEach(function(V,U){V.node.removeAttribute("data-aos"),V.node.removeAttribute("data-aos-easing"),V.node.removeAttribute("data-aos-duration"),V.node.removeAttribute("data-aos-delay")}):(k.disableMutationObserver||d.default.isSupported()||(console.info('\n      aos: MutationObserver is not supported on this browser,\n      code mutations observing has been disabled.\n      You may have to call "refreshHard()" by yourself.\n    '),k.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",k.easing),document.querySelector("body").setAttribute("data-aos-duration",k.duration),document.querySelector("body").setAttribute("data-aos-delay",k.delay),"DOMContentLoaded"===k.startEvent&&["complete","interactive"].indexOf(document.readyState)>-1?R(!0):"load"===k.startEvent?window.addEventListener(k.startEvent,function(){R(!0)}):document.addEventListener(k.startEvent,function(){R(!0)}),window.addEventListener("resize",(0,s.default)(R,k.debounceDelay,!0)),window.addEventListener("orientationchange",(0,s.default)(R,k.debounceDelay,!0)),window.addEventListener("scroll",(0,a.default)(function(){(0,b.default)(w,k.once)},k.throttleDelay)),k.disableMutationObserver||d.default.ready("[data-aos]",P),w)},refresh:R,refreshHard:P}},function(he,u){},,,,,function(he,u){(function(o){"use strict";function c(W,z,V){function U(ne){var ce=X,le=M;return X=M=void 0,ze=ne,fe=W.apply(le,ce)}function K(ne){return ze=ne,Te=setTimeout(j,z),ae?U(ne):fe}function J(ne){var ce=ne-Be;return void 0===Be||ce>=z||ce<0||_e&&ne-ze>=oe}function j(){var ne=B();return J(ne)?ee(ne):void(Te=setTimeout(j,function Y(ne){var pe=z-(ne-Be);return _e?P(pe,oe-(ne-ze)):pe}(ne)))}function ee(ne){return Te=void 0,ye&&X?U(ne):(X=M=void 0,fe)}function Z(){var ne=B(),ce=J(ne);if(X=arguments,M=this,Be=ne,ce){if(void 0===Te)return K(Be);if(_e)return Te=setTimeout(j,z),U(Be)}return void 0===Te&&(Te=setTimeout(j,z)),fe}var X,M,oe,fe,Te,Be,ze=0,ae=!1,_e=!1,ye=!0;if("function"!=typeof W)throw new TypeError(l);return z=p(z)||0,C(V)&&(ae=!!V.leading,oe=(_e="maxWait"in V)?R(p(V.maxWait)||0,z):oe,ye="trailing"in V?!!V.trailing:ye),Z.cancel=function G(){void 0!==Te&&clearTimeout(Te),ze=0,X=Be=M=Te=void 0},Z.flush=function q(){return void 0===Te?fe:ee(B())},Z}function C(W){var z=typeof W>"u"?"undefined":s(W);return!!W&&("object"==z||"function"==z)}function a(W){return"symbol"==(typeof W>"u"?"undefined":s(W))||function g(W){return!!W&&"object"==(typeof W>"u"?"undefined":s(W))}(W)&&k.call(W)==h}function p(W){if("number"==typeof W)return W;if(a(W))return d;if(C(W)){var z="function"==typeof W.valueOf?W.valueOf():W;W=C(z)?z+"":z}if("string"!=typeof W)return 0===W?W:+W;W=W.replace(v,"");var V=b.test(W);return V||y.test(W)?E(W.slice(2),V?2:8):x.test(W)?d:+W}var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},l="Expected a function",d=NaN,h="[object Symbol]",v=/^\s+|\s+$/g,x=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,E=parseInt,S="object"==(typeof o>"u"?"undefined":s(o))&&o&&o.Object===Object&&o,O="object"==(typeof self>"u"?"undefined":s(self))&&self&&self.Object===Object&&self,w=S||O||Function("return this")(),k=Object.prototype.toString,R=Math.max,P=Math.min,B=function(){return w.Date.now()};he.exports=function I(W,z,V){var U=!0,K=!0;if("function"!=typeof W)throw new TypeError(l);return C(V)&&(U="leading"in V?!!V.leading:U,K="trailing"in V?!!V.trailing:K),c(W,z,{leading:U,maxWait:z,trailing:K})}}).call(u,function(){return this}())},function(he,u){(function(o){"use strict";function I(B){var W=typeof B>"u"?"undefined":p(B);return!!B&&("object"==W||"function"==W)}function g(B){return"symbol"==(typeof B>"u"?"undefined":p(B))||function C(B){return!!B&&"object"==(typeof B>"u"?"undefined":p(B))}(B)&&T.call(B)==d}function a(B){if("number"==typeof B)return B;if(g(B))return l;if(I(B)){var W="function"==typeof B.valueOf?B.valueOf():B;B=I(W)?W+"":W}if("string"!=typeof B)return 0===B?B:+B;B=B.replace(h,"");var z=x.test(B);return z||b.test(B)?y(B.slice(2),z?2:8):v.test(B)?l:+B}var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(B){return typeof B}:function(B){return B&&"function"==typeof Symbol&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},s="Expected a function",l=NaN,d="[object Symbol]",h=/^\s+|\s+$/g,v=/^[-+]0x[0-9a-f]+$/i,x=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt,E="object"==(typeof o>"u"?"undefined":p(o))&&o&&o.Object===Object&&o,S="object"==(typeof self>"u"?"undefined":p(self))&&self&&self.Object===Object&&self,O=E||S||Function("return this")(),T=Object.prototype.toString,k=Math.max,R=Math.min,P=function(){return O.Date.now()};he.exports=function c(B,W,z){function V(ye){var ne=Z,ce=X;return Z=X=void 0,Be=ye,oe=B.apply(ce,ne)}function U(ye){return Be=ye,fe=setTimeout(J,W),ze?V(ye):oe}function Y(ye){var ne=ye-Te;return void 0===Te||ne>=W||ne<0||ae&&ye-Be>=M}function J(){var ye=P();return Y(ye)?j(ye):void(fe=setTimeout(J,function K(ye){var le=W-(ye-Te);return ae?R(le,M-(ye-Be)):le}(ye)))}function j(ye){return fe=void 0,_e&&Z?V(ye):(Z=X=void 0,oe)}function q(){var ye=P(),ne=Y(ye);if(Z=arguments,X=this,Te=ye,ne){if(void 0===fe)return U(Te);if(ae)return fe=setTimeout(J,W),V(Te)}return void 0===fe&&(fe=setTimeout(J,W)),oe}var Z,X,M,oe,fe,Te,Be=0,ze=!1,ae=!1,_e=!0;if("function"!=typeof B)throw new TypeError(s);return W=a(W)||0,I(z)&&(ze=!!z.leading,M=(ae="maxWait"in z)?k(a(z.maxWait)||0,W):M,_e="trailing"in z?!!z.trailing:_e),q.cancel=function ee(){void 0!==fe&&clearTimeout(fe),Be=0,Z=Te=X=fe=void 0},q.flush=function G(){return void 0===fe?oe:j(P())},q}}).call(u,function(){return this}())},function(he,u){"use strict";function o(p){var s=void 0,l=void 0;for(s=0;s<p.length;s+=1)if((l=p[s]).dataset&&l.dataset.aos||l.children&&o(l.children))return!0;return!1}function c(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function g(p){p&&p.forEach(function(s){var l=Array.prototype.slice.call(s.addedNodes),d=Array.prototype.slice.call(s.removedNodes);if(o(l.concat(d)))return a()})}Object.defineProperty(u,"__esModule",{value:!0});var a=function(){};u.default={isSupported:function I(){return!!c()},ready:function C(p,s){var l=window.document,h=new(c())(g);a=s,h.observe(l.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}}},function(he,u){"use strict";function c(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(u,"__esModule",{value:!0});var I=function(){function l(d,h){for(var v=0;v<h.length;v++){var x=h[v];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(d,x.key,x)}}return function(d,h,v){return h&&l(d.prototype,h),v&&l(d,v),d}}(),C=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,g=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,p=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,s=function(){function l(){!function o(l,d){if(!(l instanceof d))throw new TypeError("Cannot call a class as a function")}(this,l)}return I(l,[{key:"phone",value:function(){var d=c();return!(!C.test(d)&&!g.test(d.substr(0,4)))}},{key:"mobile",value:function(){var d=c();return!(!a.test(d)&&!p.test(d.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),l}();u.default=new s},function(he,u){"use strict";Object.defineProperty(u,"__esModule",{value:!0});u.default=function(I,C){var g=window.pageYOffset,a=window.innerHeight;I.forEach(function(p,s){!function(I,C,g){var a=I.node.getAttribute("data-aos-once");C>I.position?I.node.classList.add("aos-animate"):typeof a<"u"&&("false"===a||!g&&"true"!==a)&&I.node.classList.remove("aos-animate")}(p,a+g,C)})}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var C=function c(a){return a&&a.__esModule?a:{default:a}}(o(12));u.default=function(a,p){return a.forEach(function(s,l){s.node.classList.add("aos-init"),s.position=(0,C.default)(s.node,p.offset)}),a}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var C=function c(a){return a&&a.__esModule?a:{default:a}}(o(13));u.default=function(a,p){var s=0,l=0,d=window.innerHeight,h={offset:a.getAttribute("data-aos-offset"),anchor:a.getAttribute("data-aos-anchor"),anchorPlacement:a.getAttribute("data-aos-anchor-placement")};switch(h.offset&&!isNaN(h.offset)&&(l=parseInt(h.offset)),h.anchor&&document.querySelectorAll(h.anchor)&&(a=document.querySelectorAll(h.anchor)[0]),s=(0,C.default)(a).top,h.anchorPlacement){case"top-bottom":break;case"center-bottom":s+=a.offsetHeight/2;break;case"bottom-bottom":s+=a.offsetHeight;break;case"top-center":s+=d/2;break;case"bottom-center":s+=d/2+a.offsetHeight;break;case"center-center":s+=d/2+a.offsetHeight/2;break;case"top-top":s+=d;break;case"bottom-top":s+=a.offsetHeight+d;break;case"center-top":s+=a.offsetHeight/2+d}return h.anchorPlacement||h.offset||isNaN(p)||(l=p),s+l}},function(he,u){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(c){for(var I=0,C=0;c&&!isNaN(c.offsetLeft)&&!isNaN(c.offsetTop);)I+=c.offsetLeft-("BODY"!=c.tagName?c.scrollLeft:0),C+=c.offsetTop-("BODY"!=c.tagName?c.scrollTop:0),c=c.offsetParent;return{top:C,left:I}}},function(he,u){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.default=function(c){return c=c||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(c,function(I){return{node:I}})}}])},8991:function(Rn){Rn.exports=function(he){var u={};function o(c){if(u[c])return u[c].exports;var I=u[c]={i:c,l:!1,exports:{}};return he[c].call(I.exports,I,I.exports,o),I.l=!0,I.exports}return o.m=he,o.c=u,o.d=function(c,I,C){o.o(c,I)||Object.defineProperty(c,I,{enumerable:!0,get:C})},o.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,I){if(1&I&&(c=o(c)),8&I||4&I&&"object"==typeof c&&c&&c.__esModule)return c;var C=Object.create(null);if(o.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:c}),2&I&&"string"!=typeof c)for(var g in c)o.d(C,g,function(a){return c[a]}.bind(null,g));return C},o.n=function(c){var I=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(I,"a",I),I},o.o=function(c,I){return Object.prototype.hasOwnProperty.call(c,I)},o.p="",o(o.s=58)}([function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(C,g){this.x=C,this.y=g}return I.zero=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.prototype.isZero=function(){return 0===this.x&&0===this.y},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.copyFrom=function(C){this.x=C.x,this.y=C.y},I.prototype.clone=function(){return new I(this.x,this.y)},I.prototype.equals=function(C){return this.x===C.x&&this.y===C.y},I.prototype.offset=function(C,g){return this.x+=C,this.y+=g,this},I.prototype.offsetByPoint=function(C){return this.x+=C.x,this.y+=C.y,this},I.prototype.multiply=function(C,g){return this.x*=C,this.y*=g,this},I.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},I.prototype.applyConverter=function(C){return this.x=C(this.x),this.y=C(this.y),this},I.plus=function(C,g){return new I(C.x+g.x,C.y+g.y)},I.minus=function(C,g){return new I(C.x-g.x,C.y-g.y)},I.xComparer=function(C,g){return C.x-g.x},I.yComparer=function(C,g){return C.y-g.y},I.equals=function(C,g){return C.x===g.x&&C.y===g.y},I}();u.Point=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeType=u.ShapeTypes=u.ShapeCategories=void 0;var c=function(){function C(){}return C.General="general",C.Flowchart="flowchart",C.OrgChart="orgChart",C.Containers="containers",C.Custom="custom",C}();u.ShapeCategories=c;var C,I=function(){function C(){}return C.Text="text",C.Rectangle="rectangle",C.Ellipse="ellipse",C.Cross="cross",C.Triangle="triangle",C.Diamond="diamond",C.Heart="heart",C.Pentagon="pentagon",C.Hexagon="hexagon",C.Octagon="octagon",C.Star="star",C.ArrowLeft="arrowLeft",C.ArrowUp="arrowTop",C.ArrowRight="arrowRight",C.ArrowDown="arrowBottom",C.ArrowUpDown="arrowNorthSouth",C.ArrowLeftRight="arrowEastWest",C.Process="process",C.Decision="decision",C.Terminator="terminator",C.PredefinedProcess="predefinedProcess",C.Document="document",C.MultipleDocuments="multipleDocuments",C.ManualInput="manualInput",C.Preparation="preparation",C.Data="data",C.Database="database",C.HardDisk="hardDisk",C.InternalStorage="internalStorage",C.PaperTape="paperTape",C.ManualOperation="manualOperation",C.Delay="delay",C.StoredData="storedData",C.Display="display",C.Merge="merge",C.Connector="connector",C.Or="or",C.SummingJunction="summingJunction",C.Container="container",C.VerticalContainer="verticalContainer",C.HorizontalContainer="horizontalContainer",C.Card="card",C.CardWithImageOnLeft="cardWithImageOnLeft",C.CardWithImageOnTop="cardWithImageOnTop",C.CardWithImageOnRight="cardWithImageOnRight",C}();u.ShapeTypes=I,(C=u.ShapeType||(u.ShapeType={}))[C.text=0]="text",C[C.rectangle=1]="rectangle",C[C.ellipse=2]="ellipse",C[C.cross=3]="cross",C[C.triangle=4]="triangle",C[C.diamond=5]="diamond",C[C.heart=6]="heart",C[C.pentagon=7]="pentagon",C[C.hexagon=8]="hexagon",C[C.octagon=9]="octagon",C[C.star=10]="star",C[C.arrowLeft=11]="arrowLeft",C[C.arrowTop=12]="arrowTop",C[C.arrowRight=13]="arrowRight",C[C.arrowBottom=14]="arrowBottom",C[C.arrowNorthSouth=15]="arrowNorthSouth",C[C.arrowEastWest=16]="arrowEastWest",C[C.process=17]="process",C[C.decision=18]="decision",C[C.terminator=19]="terminator",C[C.predefinedProcess=20]="predefinedProcess",C[C.document=21]="document",C[C.multipleDocuments=22]="multipleDocuments",C[C.manualInput=23]="manualInput",C[C.preparation=24]="preparation",C[C.data=25]="data",C[C.database=26]="database",C[C.hardDisk=27]="hardDisk",C[C.internalStorage=28]="internalStorage",C[C.paperTape=29]="paperTape",C[C.manualOperation=30]="manualOperation",C[C.delay=31]="delay",C[C.storedData=32]="storedData",C[C.display=33]="display",C[C.merge=34]="merge",C[C.connector=35]="connector",C[C.or=36]="or",C[C.summingJunction=37]="summingJunction",C[C.verticalContainer=38]="verticalContainer",C[C.horizontalContainer=39]="horizontalContainer",C[C.cardWithImageOnLeft=40]="cardWithImageOnLeft",C[C.cardWithImageOnTop=41]="cardWithImageOnTop",C[C.cardWithImageOnRight=42]="cardWithImageOnRight"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(C,g){this.width=C,this.height=g}return I.empty=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.initByCommonAction=function(C){var g=function(p){return p.width},a=function(p){return p.height};return new I(C(g,a),C(a,g))},I.prototype.isEmpty=function(){return 0===this.width&&0===this.height},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},I.prototype.offset=function(C,g){return this.width=this.width+C,this.height=this.height+g,this},I.prototype.multiply=function(C,g){return this.width*=C,this.height*=g,this},I.prototype.equals=function(C){return this.width===C.width&&this.height===C.height},I.prototype.clone=function(){return new I(this.width,this.height)},I.prototype.copyFrom=function(C){this.width=C.width,this.height=C.height},I.prototype.applyConverter=function(C){return this.width=C(this.width),this.height=C(this.height),this},I.equals=function(C,g){return C.width===g.width&&C.height===g.height},I}();u.Size=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventUtils=u.HtmlFocusUtils=u.ObjectUtils=u.GeometryUtils=u.Utils=u.EventDispatcher=u.Range=u.LineEquation=void 0,o(174);var c=o(2),I=o(0),C=o(13),g=o(41),a=o(35),p=o(31),s=o(60),l=o(33),d=o(26),h=o(18),v=o(65),x=function(){function k(R,P,B){this.aParam=R,this.bParam=P,this.cParam=B}return k.fromPoints=function(R,P,B){return void 0===B&&(B=1e-5),S.areDuplicatedPoints(R,P,B)?void 0:new k(P.y-R.y,R.x-P.x,P.x*R.y-R.x*P.y)},k.prototype.getPointIntersection=function(R,P){void 0===P&&(P=1e-5);var B=this.aParam,W=this.bParam,z=this.cParam,V=R.aParam,U=R.bParam,K=R.cParam,Y=V*W-B*U;if(p.MathUtils.numberCloseTo(Y,0,P))return null;if(0===B)return this.createPoint((U*z-K*W)/(W*V),-z/W);var j=(K*B-z*V)/Y;return this.createPoint((-W*j-z)/B,j)},k.prototype.containsPoint=function(R,P){return void 0===P&&(P=1e-5),p.MathUtils.numberCloseTo(this.aParam*R.x+this.bParam*R.y+this.cParam,0,P)},k.prototype.createPoint=function(R,P,B){return void 0===B&&(B=1e-5),new I.Point(p.MathUtils.numberCloseTo(R,0,B)?0:R,p.MathUtils.numberCloseTo(P,0,B)?0:P)},k}();u.LineEquation=x;var b=function(){function k(R,P){this.from=R,this.to=void 0!==P?P:R}return Object.defineProperty(k.prototype,"length",{get:function(){return Math.abs(this.to-this.from)},enumerable:!1,configurable:!0}),k.prototype.extend=function(R){this.from=Math.min(R.from,this.from),this.to=Math.max(R.to,this.to)},k.prototype.includes=function(R){return R>=this.from&&R<=this.to},k.fromLength=function(R,P){return new k(R,R+P)},k}();u.Range=b;var y=function(){function k(){this.listeners=[]}return k.prototype.add=function(R){if(!R)throw new Error("Not Implemented");this.hasEventListener(R)||this.listeners.push(R)},k.prototype.remove=function(R){for(var P=0,B=void 0;B=this.listeners[P];P++)if(B===R){this.listeners.splice(P,1);break}},k.prototype.raise=function(R){for(var P=[],B=1;B<arguments.length;B++)P[B-1]=arguments[B];for(var W=0,z=void 0;z=this.listeners[W];W++){var V=z[R];V&&V.apply(z,P)}},k.prototype.raise1=function(R){for(var P=0,B=void 0;B=this.listeners[P];P++)R(B)},k.prototype.hasEventListener=function(R){for(var P=0,B=this.listeners.length;P<B;P++)if(this.listeners[P]===R)return!0;return!1},k}();u.EventDispatcher=y;var E=function(){function k(){}return k.flatten=function(R){return[].concat.apply([],R)},k}();u.Utils=E;var S=function(){function k(){}return k.getCommonRectangle=function(R){if(!R.length)return new C.Rectangle(0,0,0,0);var P=Number.MAX_VALUE,B=-Number.MAX_VALUE,W=Number.MAX_VALUE,z=-Number.MAX_VALUE;return R.forEach(function(V){P=Math.min(P,V.x),B=Math.max(B,V.right),W=Math.min(W,V.y),z=Math.max(z,V.bottom)}),new C.Rectangle(P,W,B-P,z-W)},k.findFreeSpace=function(R,P,B,W){var z=[W?W.x:0],V=[W?W.y:0];R.forEach(function(q){z.push(q.x),z.push(q.right),V.push(q.y),V.push(q.bottom)}),z=z.sort(function(q,Z){return q-Z}).reduce(function(q,Z,X){return z[X-1]!==Z&&q.push(Z)&&q||q},[]);for(var U=(V=V.sort(function(q,Z){return q-Z}).reduce(function(q,Z,X){return V[X-1]!==Z&&q.push(Z)&&q||q},[])).map(function(q){return z.map(function(Z,X){return z[X+1]-Z})}),K=function(q,Z){for(var X=g.SearchUtils.binaryIndexOf(z,function(ze){return ze-Z.x}),M=g.SearchUtils.binaryIndexOf(z,function(ze){return ze-Z.right}),oe=g.SearchUtils.binaryIndexOf(V,function(ze){return ze-Z.y}),fe=g.SearchUtils.binaryIndexOf(V,function(ze){return ze-Z.bottom}),Te=oe;Te<fe;Te++)for(var Be=X;Be<M;Be++)U[Te][Be]*=-1},Y=0,J=void 0;J=R[Y];Y++)K(0,J);for(var j=0;j<V.length;j++)for(var ee=0;ee<z.length-1;ee++){var G=this.checkRect(U,V,z,j,ee,P,B);if(G>0)ee=G;else if(0===G)return new I.Point(z[ee],V[j])}return null},k.checkRect=function(R,P,B,W,z,V,U){for(var K=0,Y=0,J=B.length-2,j=W;j<P.length;j++){K=P[j+1]-P[W];for(var ee=z;ee<=J;ee++){if(R[j][ee]<0)return 0===ee?-1:ee;if(V.width<=(Y=B[ee+1]-B[z])||!U&&ee===B.length-2&&V.width/2<=Y){if(V.height<=K||!U&&j===P.length-2&&V.height/2<=K)return 0;J=ee}}}},k.getArrowPoints=function(R,P,B,W){if(R.x===P.x&&R.y===P.y)return{point1:R.clone(),point2:R.clone(),point3:R.clone()};var z=P.x-R.x,V=P.y-R.y,U=Math.sqrt(Math.pow(z,2)+Math.pow(V,2)),K=z/U,Y=V/U,ee=R.x+B*K-W*Y,G=R.y+B*Y+W*K,q=R.x+B*K,Z=R.y+B*Y;return{point1:new I.Point(R.x+B*K+W*Y,R.y+B*Y-W*K),point2:new I.Point(ee,G),point3:new I.Point(q,Z)}},k.createSegments=function(R){for(var P=[],B=1;B<R.length;B++)P.push(new l.Segment(R[B-1],R[B]));return P},k.createRectagle=function(R){var P=R.map(function(K){return K.x}),B=R.map(function(K){return K.y}),W=P.reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE),z=P.reduce(function(K,Y){return Math.max(K,Y)},-Number.MAX_VALUE),V=B.reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE),U=B.reduce(function(K,Y){return Math.max(K,Y)},-Number.MAX_VALUE);return new C.Rectangle(W,V,z-W,U-V)},k.createSegmentsFromRectangle=function(R){var P=[],B=new I.Point(R.x,R.y),W=new I.Point(R.right,R.y),z=new I.Point(R.right,R.bottom),V=new I.Point(R.x,R.bottom);return P.push(new l.Segment(B,W)),P.push(new l.Segment(W,z)),P.push(new l.Segment(z,V)),P.push(new l.Segment(V,B)),P},k.areSegmentsCutRectangle=function(R,P){if(!P)return!1;for(var B=k.createSegmentsFromRectangle(P),W=!1,z=!1,V=function(Y){if(W&&z)return{value:!0};var J=R[Y];if(J.isIntersectedByRect(P)){var j=J.startPoint,ee=J.endPoint,G=P.containsPoint(j),q=P.containsPoint(ee);if(!G&&!q)return{value:!0};if(G&&!q){var Z=B.filter(function(fe){return fe.containsPoint(j)});return Z.length>0&&B.filter(function(fe){return 1===Z.length?!fe.containsPoint(Z[0].startPoint)&&!fe.containsPoint(Z[0].endPoint):fe!==Z[0]&&fe!==Z[1]}).some(function(fe){return J.isIntersected(fe)})&&!W&&(W=!0),z||(z=!0),"continue"}if(!G&&q){W||(W=!0,z&&(z=!1));var X=B.filter(function(fe){return fe.containsPoint(ee)});return X.length>0&&B.filter(function(fe){return 1===X.length?!fe.containsPoint(X[0].startPoint)&&!fe.containsPoint(X[0].endPoint):fe!==X[0]&&fe!==X[1]}).some(function(fe){return J.isIntersected(fe)})&&!z&&(z=!0),"continue"}var M=B.filter(function(fe){return fe.containsPoint(j)}),oe=B.filter(function(fe){return fe.containsPoint(ee)});if(2===M.length&&2===oe.length)return{value:!0};if(1===M.length&&1===oe.length&&M[0]!==oe[0])return{value:!0};z||1!==oe.length||M.length||(z=!0),W||1!==M.length||oe.length||(W=!0,z&&(z=!1))}},U=0;U<R.length;U++){var K=V(U);if("object"==typeof K)return K.value}return W&&z},k.areIntersectedSegments=function(R,P){if(!P)return!1;for(var B,W=0;B=R[W];){for(var z=0,V=void 0;V=P[z];){if(V.isIntersected(B))return!0;z++}W++}return!1},k.isLineIntersected=function(R,P,B,W,z){var V=x.fromPoints(R,P),U=B.startPoint,K=B.endPoint;if(V.containsPoint(U)&&V.containsPoint(K))return!W&&!z;var Y=x.fromPoints(U,K).getPointIntersection(V);return!(!Y||!B.containsPoint(Y)||(W?k.areDuplicatedPoints(U,Y):z&&k.areDuplicatedPoints(K,Y)))},k.removeUnnecessaryPoints=function(R,P,B,W){void 0===B&&(B=function(z){return void 0!==z}),void 0===W&&(W=1e-5),this.removeUnnecessaryPointsCore(R,P,B,W),this.removeBackwardPoints(R,P,B,W),this.removeUnnecessaryPointsCore(R,P,B,W)},k.removeUnnecessaryRightAnglePoints=function(R,P,B,W){void 0===B&&(B=function(z){return void 0!==z}),void 0===W&&(W=1e-5),this.removeUnnecessaryPointsCore(R,P,B,W),this.removeBackwardPoints(R,P,B,W),this.removeNotRightAnglePoints(R,P,B,W),this.removeUnnecessaryPointsCore(R,P,B,W)},k.removeUnnecessaryPointsCore=function(R,P,B,W){void 0===B&&(B=function(z){return void 0!==z}),void 0===W&&(W=1e-5),this.removeDuplicatedPoints(R,P,B,W),this.removeNotCornersPoints(R,P,B,W)},k.removeNotRightAnglePoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var z,V=0;(z=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B),K=this.getNextPoint(R,V,-1,B);K&&U&&!k.isRightAngleCorner(K,z,U,W)&&P(z,V)||V++}},k.removeDuplicatedPoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var z,V=0;(z=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B);if(U&&k.areDuplicatedPoints(z,U,W)){var K=V===R.length-2?V:V+1;if(P(R[K],K))continue}V++}},k.removeNotCornersPoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var z,V=0;(z=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B),K=this.getNextPoint(R,V,-1,B);K&&U&&!k.isCorner(K,z,U,W)&&P(z,V)||V++}},k.removeBackwardPoints=function(R,P,B,W){void 0===B&&(B=function(Y){return void 0!==Y}),void 0===W&&(W=1e-5);for(var z,V=0;(z=R[V])&&R.length>2;){var U=this.getNextPoint(R,V,1,B),K=this.getNextPoint(R,V,-1,B);K&&U&&k.isBackwardPoint(K,z,U,W)&&P(z,V)||V++}},k.isRightAngleCorner=function(R,P,B,W){return void 0===W&&(W=1e-5),p.MathUtils.numberCloseTo(k.createAngle(R,P,B),Math.PI/2,W)||p.MathUtils.numberCloseTo(k.createAngle(R,P,B),Math.PI,W)||p.MathUtils.numberCloseTo(k.createAngle(R,P,B),3*Math.PI/2,W)},k.isCorner=function(R,P,B,W){return void 0===W&&(W=1e-5),!p.MathUtils.numberCloseTo(k.createAngle(R,P,B),0,W)},k.areDuplicatedPoints=function(R,P,B){return void 0===B&&(B=1e-5),p.MathUtils.numberCloseTo(R.x,P.x,B)&&p.MathUtils.numberCloseTo(R.y,P.y,B)},k.isBackwardPoint=function(R,P,B,W){return void 0===W&&(W=1e-5),p.MathUtils.numberCloseTo(k.createAngle(R,P,B),Math.PI,W)},k.createAngle=function(R,P,B){var W=s.Vector.fromPoints(P,B),z=s.Vector.fromPoints(R,P),V=W.x,U=W.y,K=z.x,Y=z.y,J=Math.atan2(V*Y-K*U,V*K+U*Y);return J<0?2*Math.PI+J:J},k.getNextPoint=function(R,P,B,W){for(var z,V=P+B;z=R[V];){if(W(z))return z;V+=B}},k.addSelectedLinesTo=function(R,P,B,W,z,V,U,K,Y,J,j,ee,G,q){void 0===q&&(q=1e-5);var Z=P.y-R.y,X=B.y-P.y,M=R.x-P.x,oe=P.x-B.x,fe=Z*oe-X*M;if(!p.MathUtils.numberCloseTo(fe,0,q)){var Te=Z*(R.x+W)+M*(R.y+z),Be=X*(P.x+K)+oe*(P.y+Y);ee((oe*Te-M*Be)/fe,(Z*Be-X*Te)/fe);var ze=Z*(R.x+V)+M*(R.y+U),ae=X*(P.x+J)+oe*(P.y+j);G((oe*ze-M*ae)/fe,(Z*ae-X*ze)/fe)}},k.getSelectionOffsetPoint=function(R,P,B){return new I.Point((R.y-P.y)/B,(P.x-R.x)/B)},k.getSelectionTextStartEndPoints=function(R,P,B,W,z,V){var U=(P.x-R.x)/B,K=(P.y-R.y)/B,Y=z.width*U+z.height*K;switch(V){case d.TextAlignment.Left:return[W,new I.Point(W.x+U*Y,W.y+K*Y)];case d.TextAlignment.Right:return[new I.Point(W.x-U*Y,W.y-K*Y),W];default:return[new I.Point(W.x-.5*U*Y,W.y-.5*K*Y),new I.Point(W.x+.5*U*Y,W.y+.5*K*Y)]}},k.getPathLength=function(R){var P,B=0;return R.forEach(function(W){void 0!==P&&(B+=a.Metrics.euclideanDistance(W,P)),P=W}),B},k.getPathPointByPosition=function(R,P){if(!R.length)throw new Error("Invalid points");if(0>P||P>1)throw new Error("Invalid relative position");var B=this.getPathLength(R);if(R.length<=2&&0===B||0===P)return[R[0],0];for(var W=B*P,z=0,V=1;V<R.length;V++){var U=a.Metrics.euclideanDistance(R[V],R[V-1]);if(z+U>=W){var K=W-z;return[new I.Point(R[V-1].x+(R[V].x-R[V-1].x)/U*K,R[V-1].y+(R[V].y-R[V-1].y)/U*K),V]}z+=U}return[R[R.length-1],R.length-1]},k.getLineAngle=function(R,P){return Math.atan2(P.y-R.y,P.x-R.x)},k.getTriangleBeginAngle=function(R,P,B){var W=this.getLineAngle(R,P),z=this.getLineAngle(R,B);return Math.abs(z-W)},k.getTriangleEndAngle=function(R,P,B){var W=this.getLineAngle(R,P),z=this.getLineAngle(B,P);return Math.abs(W-z)},k.getPathPointByPoint=function(R,P){if(!R.length)throw new Error("Invalid points");if(1===R.length)return R[0];for(var B,W=Number.MAX_VALUE,z=1;z<R.length;z++){var V=R[z-1],U=R[z];if(P.equals(V)){B=V.clone();break}if(P.equals(U)){B=U.clone();break}var G,K=this.getTriangleBeginAngle(V,U,P),Y=this.getTriangleEndAngle(V,U,P),J=a.Metrics.euclideanDistance(P,V),j=a.Metrics.euclideanDistance(P,U),ee=J*Math.sin(K);if((G=Math.PI/2<=K&&K<=3*Math.PI/2?J:Math.PI/2<=Y&&Y<=3*Math.PI/2?j:Math.abs(ee))<W)if(W=G,Math.PI/2<=K&&K<=3*Math.PI/2)B=V.clone();else if(Math.PI/2<=Y&&Y<=3*Math.PI/2)B=U.clone();else{var q=Math.fround||Math.round,Z=this.getLineAngle(V,U),X=q(Math.abs(ee*Math.sin(Z))),M=q(Math.abs(ee*Math.cos(Z))),oe=P.y-V.y<q((P.x-V.x)*Math.tan(Z));0<=Z&&Z<=Math.PI/2?(X*=oe?-1:1,M*=oe?1:-1):Math.PI/2<=Z&&Z<=Math.PI||0>=Z&&Z>=-Math.PI/2?(X*=oe?1:-1,M*=oe?1:-1):-Math.PI/2>=Z&&Z>=-Math.PI&&(X*=oe?-1:1,M*=oe?1:-1),B=P.clone().offset(X,M)}}return B},k.getPathPositionByPoint=function(R,P,B){void 0===B&&(B=100),P=this.getPathPointByPoint(R,P);for(var W=this.getPathLength(R),z=0,V=1;V<R.length;V++){var U=R[V-1],K=R[V],Y=a.Metrics.euclideanDistance(K,U),J=Math.atan((K.y-U.y)/(K.x-U.x)),j=Math.fround||Math.round;if(P.x===K.x&&P.x===U.x||P.y===K.y&&P.y===U.y||j(P.y-U.y)===j((P.x-U.x)*Math.tan(J)))return 0!==Math.sin(J)?z+=Math.abs((P.y-U.y)/Math.sin(J)):z+=Math.abs(P.x-U.x),Math.round(z*B/W)/B;z+=Y}return 1},k.arePointsEqual=function(R,P){var B=R.length;if(B!==P.length)return!1;for(var W=0;W<B;W++)if(!R[W].equals(P[W]))return!1;return!0},k.getMaxRectangleEnscribedInEllipse=function(R){var P=R.width*Math.sqrt(2)/2,B=R.height*Math.sqrt(2)/2;return new c.Size(P,B)},k.getEllipseByEnscribedRectangle=function(R){return new c.Size(2*R.width/Math.sqrt(2),2*R.height/Math.sqrt(2))},k}();u.GeometryUtils=S;var O=function(){function k(){}return k.cloneObject=function(R){return R&&Object.assign({},R)},k.compareObjects=function(R,P){return R===P||"object"==typeof R&&"object"==typeof P&&this.isDeepEqual(R,P)},k.isDeepEqual=function(R,P){var B=R?Object.getOwnPropertyNames(R):[],W=P?Object.getOwnPropertyNames(P):[];if(B.length!==W.length)return!1;for(var z=0;z<B.length;z++){var V=B[z];switch(typeof R[V]){case"object":if(!this.isDeepEqual(R[V],P[V]))return!1;break;case"number":if(!(isNaN(R[V])&&isNaN(P[V])||R[V]===P[V]))return!1;break;default:if(R[V]!==P[V])return!1}}return!0},k}();u.ObjectUtils=O;var w=function(){function k(){}return k.focusWithPreventScroll=function(R){try{var P=h.Browser.Safari,B=P&&this.getHtmlScrollPosition();if(P){var W=R.parentElement&&R.parentElement.getBoundingClientRect();if(W){var z=W.left<0?1-W.left:0,V=W.top<0?1-W.top:0,U=window.frameElement&&window.frameElement.getBoundingClientRect();U&&(U.top<0&&-U.top>W.top&&(V=-U.top-W.top+1),U.left<0&&-U.left>W.left&&(z=-U.left-W.left+1)),R.style.setProperty("left",z+"px","important"),R.style.setProperty("top",V+"px","important")}}if(R.focus({preventScroll:!0}),P){var K=this.getHtmlScrollPosition();O.compareObjects(B,K)||this.setHtmlScrollPosition(B),R.style.setProperty("left","-1000px","important"),R.style.setProperty("top","-1000px","important")}}catch{}},k.getHtmlScrollPosition=function(){return{pos:this.getDocumentScrollPosition(window,document),iframePos:window.top!==window&&this.getDocumentScrollPosition(window.top,window.top.document)}},k.getDocumentScrollPosition=function(R,P){return{left:R.pageXOffset||P.documentElement.scrollLeft||P.body.scrollLeft,top:R.pageYOffset||P.documentElement.scrollTop||P.body.scrollTop}},k.setHtmlScrollPosition=function(R){this.setDocumentScrollPosition(document,R.pos),window.top!==window&&R.iframePos&&this.setDocumentScrollPosition(window.top.document,R.iframePos)},k.setDocumentScrollPosition=function(R,P){R.documentElement.scrollTop=P.top,R.documentElement.scrollLeft=P.left,R.body.scrollTop=P.top,R.body.scrollLeft=P.left},k}();u.HtmlFocusUtils=w;var T=function(){function k(){}return k.isLeftButtonPressed=function(R){return v.EvtUtils.isLeftButtonPressed(R)},k.isPointerEvents=function(){return window.PointerEvent},k.isMousePointer=function(R){return this.isPointerEvents()&&R.pointerType&&"mouse"===R.pointerType},k.isTouchMode=function(){return h.Browser.TouchUI||window.navigator&&window.navigator.maxTouchPoints>0},k.isTouchEvent=function(R){return h.Browser.TouchUI||!k.isMousePointer(R)},k}();u.EventUtils=T},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ModelUtils=void 0;var c=o(12),I=o(35),C=o(0),g=o(13),a=o(2),p=o(60),s=o(31),l=o(47),d=o(48),h=o(66),v=o(188),x=o(53),b=o(86),y=o(112),E=o(67),S=o(113),O=o(114),w=o(189),T=o(190),k=o(191),R=o(192),P=o(115),B=o(68),W=o(193),z=o(194),V=o(88),U=o(69),K=o(116),Y=o(117),J=o(89),j=o(70),ee=o(54),G=o(195),q=o(38),Z=o(3),X=o(6),M=o(32),oe=o(29),fe=o(85),Te=o(14),Be=function(){function ze(){}return ze.setShapePosition=function(ae,_e,ye,ne,ce){if(void 0===ce&&(ce=!0),!ye.position.equals(ne)){var le=ne.clone().offset(-ye.position.x,-ye.position.y);ae.addAndRedo(new k.MoveShapeHistoryItem(ye.key,ne)),ce&&ye.children.forEach(function(pe){if(pe instanceof Te.Shape){var Se=pe.position.clone().offset(le.x,le.y);ze.setShapePosition(ae,_e,pe,Se)}})}},ze.setShapeSize=function(ae,_e,ye,ne,ce){ye.size.equals(ce)&&ye.position.equals(ne)||ae.addAndRedo(new P.ResizeShapeHistoryItem(ye.key,ne,ce))},ze.addConnectorPoint=function(ae,_e,ye,ne){ae.addAndRedo(new v.AddConnectorPointHistoryItem(_e,ye,ne))},ze.deleteConnectorCustomPoints=function(ae,_e){if(_e.points.length>2){var ye=_e.tryCreateRenderPointsContext();if(_e.properties.lineOption!==M.ConnectorLineOption.Straight&&ye){var ne=_e.points[0].clone(),ce=_e.points[_e.points.length-1].clone();ae.addAndRedo(new b.ChangeConnectorPointsHistoryItem(_e.key,[ne,ce],new fe.ConnectorRenderPointsContext([new oe.ConnectorRenderPoint(ne.x,ne.y,0),new oe.ConnectorRenderPoint(ce.x,ce.y,1)],!1,ye.actualRoutingMode)))}else ae.addAndRedo(new b.ReplaceConnectorPointsHistoryItem(_e.key,[_e.points[0].clone(),_e.points[_e.points.length-1].clone()]))}},ze.deleteConnectorUnnecessaryPoints=function(ae,_e){var ye=_e.getRenderPoints(!0).map(function(re){return re.clone()});if(_e.properties.lineOption===M.ConnectorLineOption.Straight){var ne=ze.createUnnecessaryRenderPoints(ye.filter(function(re){return!re.skipped}).map(function(re){return re.clone()}),_e.skippedRenderPoints,function(re){return ze.findFirstPointIndex(ye,function(te){return te.equals(re)})});Object.keys(ne).length&&ae.addAndRedo(new b.ReplaceConnectorPointsHistoryItem(_e.key,ze.createNecessaryPoints(_e.points.map(function(re){return re.clone()}),ne)))}else{var ce=_e.tryCreateRenderPointsContext(!0),le=ye.filter(function(re){return!re.skipped}).map(function(re){return re.clone()});if(ne=ze.createUnnecessaryRightAngleRenderPoints(le,_e.skippedRenderPoints,function(re){return ze.findFirstPointIndex(ye,function(te){return te.equals(re)})}),Object.keys(ne).length){var pe=ze.createNecessaryPoints(_e.points.map(function(re){return re.clone()}),ne),Se=new fe.ConnectorRenderPointsContext(ze.validateRenderPointIndexes(pe,le,0),ce.lockCreateRenderPoints,ce.actualRoutingMode);ae.addAndRedo(new b.ChangeConnectorPointsHistoryItem(_e.key,pe,Se))}}},ze.fixConnectorBeginEndConnectionIndex=function(ae,_e){if(_e.beginItem&&-1===_e.beginConnectionPointIndex){var ye=_e.beginItem.getNearestConnectionPoint(_e.points[0]);ae.addAndRedo(new d.SetConnectionPointIndexHistoryItem(_e,ye,X.ConnectorPosition.Begin))}if(_e.endItem&&-1===_e.endConnectionPointIndex){var ne=_e.endItem.getNearestConnectionPoint(_e.points[_e.points.length-1]);ae.addAndRedo(new d.SetConnectionPointIndexHistoryItem(_e,ne,X.ConnectorPosition.End))}},ze.skipUnnecessaryRenderPoints=function(ae){var _e=ae.map(function(ye){return ye.clone()});ze.removeUnnecessaryRenderPoints(_e),ae.forEach(function(ye){return ye.skipped=_e.some(function(ne){return ne.skipped&&ne.equals(ye)})}),ae[0].skipped=!1,ae[ae.length-1].skipped=!1},ze.skipUnnecessaryRightAngleRenderPoints=function(ae){var _e=ae.map(function(ye){return ye.clone()});ze.removeUnnecessaryRightAngleRenderPoints(_e),ae.forEach(function(ye){return ye.skipped=_e.some(function(ne){return ne.skipped&&ne.equals(ye)})}),ae[0].skipped=!1,ae[ae.length-1].skipped=!1},ze.removeUnnecessaryRenderPoints=function(ae){Z.GeometryUtils.removeUnnecessaryPoints(ae,function(_e,ye){return ze.removeUnnecessaryPoint(ae,_e,ye)},function(_e){return void 0!==_e&&!_e.skipped}),ae[0].skipped=!1,ae[ae.length-1].skipped=!1},ze.removeUnnecessaryRightAngleRenderPoints=function(ae){Z.GeometryUtils.removeUnnecessaryRightAnglePoints(ae,function(_e,ye){return ze.removeUnnecessaryPoint(ae,_e,ye)},function(_e){return void 0!==_e&&!_e.skipped}),ae[0].skipped=!1,ae[ae.length-1].skipped=!1},ze.createUnnecessaryRenderPoints=function(ae,_e,ye,ne){void 0===ne&&(ne=function(le){return!0});var ce={};return Z.GeometryUtils.removeUnnecessaryPoints(ae,function(le,pe){return ze.collectNotSkippedRenderPoints(ce,ae,le,pe,ye,ne)}),ze.collectSkippedRenderPoints(ce,_e,ye,ne),ce},ze.createUnnecessaryRightAngleRenderPoints=function(ae,_e,ye,ne){void 0===ne&&(ne=function(le){return!0});var ce={};return Z.GeometryUtils.removeUnnecessaryRightAnglePoints(ae,function(le,pe){return ze.collectNotSkippedRenderPoints(ce,ae,le,pe,ye,ne)}),ze.collectSkippedRenderPoints(ce,_e,ye,ne),ce},ze.createNecessaryPoints=function(ae,_e){var ye=this,ne=[],ce=ae.length-1;return ae.forEach(function(le,pe){(0===pe||pe===ce||ye.isNecessaryPoint(le,pe,_e))&&ne.push(le.clone())}),ne},ze.isNecessaryPoint=function(ae,_e,ye){return!Object.keys(ye).some(function(ne){var ce=ye[ne];return ce.pointIndex===_e&&Z.GeometryUtils.areDuplicatedPoints(ae,ce)})},ze.collectSkippedRenderPoints=function(ae,_e,ye,ne){void 0===ne&&(ne=function(ce){return!0}),_e&&_e.forEach(function(ce){if(ne(ce)){var le=ye(ce);void 0===ae[le]&&(ae[le]=ce)}})},ze.collectNotSkippedRenderPoints=function(ae,_e,ye,ne,ce,le){if(void 0===le&&(le=function(Se){return!0}),!le(ye))return!1;var pe=ce(ye);return void 0===ae[pe]&&(ae[pe]=ye,ye.skipped=!0,_e.splice(ne,1)),!0},ze.removeUnnecessaryPoint=function(ae,_e,ye){return-1===_e.pointIndex?(ae.splice(ye,1),!0):(_e.skipped=!0,!1)},ze.validateRenderPointIndexes=function(ae,_e,ye){var ne=this,ce=_e.map(function(le,pe){return new oe.ConnectorRenderPoint(le.x,le.y,pe>=ye&&le.pointIndex>=0?ne.findFirstPointIndex(ae,function(Se){return Se.equals(le)}):le.pointIndex,le.skipped)});return ce[0].skipped=!1,ce[ce.length-1].skipped=!1,ce},ze.findFirstPointIndex=function(ae,_e){if(!ae||!_e)return-1;for(var ye=0;ye<ae.length;ye++)if(_e(ae[ye]))return ye;return-1},ze.moveConnectorRightAnglePoints=function(ae,_e,ye,ne,ce,le){Z.GeometryUtils.areDuplicatedPoints(_e.points[ne],ye)&&Z.GeometryUtils.areDuplicatedPoints(_e.points[le],ce)||ae.addAndRedo(new T.MoveConnectorRightAnglePointsHistoryItem(_e.key,ne,ye,le,ce))},ze.moveConnectorPoint=function(ae,_e,ye,ne){return!_e.points[ye].equals(ne)&&(ae.addAndRedo(new T.MoveConnectorPointHistoryItem(_e.key,ye,ne)),!0)},ze.updateConnectorAttachedPoints=function(ae,_e,ye){ae.beginTransaction();var ne=ye.beginItem&&_e.findItemCollapsedContainer(ye.beginItem),ce=ne&&(!ye.endItem||!_e.isContainerItem(ne,ye.endItem)),le=ye.endItem&&_e.findItemCollapsedContainer(ye.endItem),pe=le&&(!ye.beginItem||!_e.isContainerItem(le,ye.beginItem)),Se=!1;return Se=ce?this.updateConnectorBeginPoint(ae,ye,ne,pe&&le||ye.endItem,function(re){return ne.getConnectionPointIndexForItem(ye.beginItem,re)})||Se:this.updateConnectorBeginPoint(ae,ye,ye.beginItem,pe&&le||ye.endItem)||Se,Se=pe?this.updateConnectorEndPoint(ae,ye,le,function(re){return le.getConnectionPointIndexForItem(ye.beginItem,re)})||Se:this.updateConnectorEndPoint(ae,ye,ye.endItem)||Se,ae.endTransaction(),Se},ze.updateConnectorBeginPoint=function(ae,_e,ye,ne,ce){if(ye){var le=void 0!==ce?ce(_e.beginConnectionPointIndex):_e.beginConnectionPointIndex,pe=_e.points[1];ne&&2===_e.points.length&&(pe=-1!==_e.endConnectionPointIndex?ne.getConnectionPointPosition(_e.endConnectionPointIndex,C.Point.zero()):ne.rectangle.center);var Se=ye.getConnectionPointPosition(le,pe);return this.moveConnectorPoint(ae,_e,0,Se.clone())}},ze.updateConnectorEndPoint=function(ae,_e,ye,ne){if(ye){var ce=void 0!==ne?ne(_e.endConnectionPointIndex):_e.endConnectionPointIndex,le=ye.getConnectionPointPosition(ce,_e.points[_e.points.length-2]);return this.moveConnectorPoint(ae,_e,_e.points.length-1,le)}},ze.updateContainerConnectorsAttachedPoints=function(ae,_e,ye,ne){var ce=this;void 0===ne&&(ne=ye),ae.beginTransaction(),_e.getChildren(ne).forEach(function(le){le instanceof Te.Shape&&(le.attachedConnectors.forEach(function(pe){var Se=pe.beginItem&&_e.isContainerItem(ne,pe.beginItem),re=pe.endItem&&_e.isContainerItem(ne,pe.endItem);if(Se&&!re){var te=_e.findItemTopCollapsedContainer(pe.beginItem),ie=pe.endItem&&_e.findItemTopCollapsedContainer(pe.endItem);te?ce.updateConnectorBeginPoint(ae,pe,te,ie||pe.endItem,function(ue){return ye.getConnectionPointIndexForItem(pe.beginItem,ue)}):ce.updateConnectorBeginPoint(ae,pe,pe.beginItem,ie||pe.endItem)}re&&!Se&&((te=_e.findItemTopCollapsedContainer(pe.endItem))?ce.updateConnectorEndPoint(ae,pe,te,function(ue){return ye.getConnectionPointIndexForItem(pe.endItem,ue)}):ce.updateConnectorEndPoint(ae,pe,pe.endItem))}),ce.updateContainerConnectorsAttachedPoints(ae,_e,ye,le))}),ae.endTransaction()},ze.getConnectorsWithoutBeginItemInfo=function(ae){return ae.findConnectorsWithoutBeginItem().map(function(_e){return{connector:_e,point:_e.points[0].clone()}})},ze.getConnectorsWithoutEndItemInfo=function(ae){return ae.findConnectorsWithoutEndItem().map(function(_e){return{connector:_e,point:_e.points[_e.points.length-1].clone()}})},ze.updateShapeAttachedConnectors=function(ae,_e,ye){var ne=this;ye.attachedConnectors.forEach(function(ce){ne.tryRemoveConnectorIntermediatePoints(ae,ce),ne.updateConnectorAttachedPoints(ae,_e,ce)})},ze.updateMovingShapeConnections=function(ae,_e,ye,ne,ce,le,pe){var Se=this;ce(),ye.forEach(function(re){var te=Se.getMovingShapeConnectionPointIndex(_e,re.point);_e.rectangle.containsPoint(re.point)||te>-1?(le(_e,te),te!==re.connector.beginConnectionPointIndex&&re.connector.beginItem&&ae.addAndRedo(new E.DeleteConnectionHistoryItem(re.connector,X.ConnectorPosition.Begin)),pe(re.connector),ae.addAndRedo(new d.AddConnectionHistoryItem(re.connector,_e,te,X.ConnectorPosition.Begin))):re.connector.beginItem&&(ae.addAndRedo(new E.DeleteConnectionHistoryItem(re.connector,X.ConnectorPosition.Begin)),ae.addAndRedo(new T.MoveConnectorPointHistoryItem(re.connector.key,0,re.point)))}),ne.forEach(function(re){var te=Se.getMovingShapeConnectionPointIndex(_e,re.point);_e.rectangle.containsPoint(re.point)||te>-1?(le(_e,te),te!==re.connector.endConnectionPointIndex&&re.connector.endItem&&ae.addAndRedo(new E.DeleteConnectionHistoryItem(re.connector,X.ConnectorPosition.End)),pe(re.connector),ae.addAndRedo(new d.AddConnectionHistoryItem(re.connector,_e,te,X.ConnectorPosition.End))):re.connector.endItem&&(ae.addAndRedo(new E.DeleteConnectionHistoryItem(re.connector,X.ConnectorPosition.End)),ae.addAndRedo(new T.MoveConnectorPointHistoryItem(re.connector.key,re.connector.points.length-1,re.point)))})},ze.getMovingShapeConnectionPointIndex=function(ae,_e){var ye=this,ne=-1;return ae.getConnectionPoints().forEach(function(ce,le){I.Metrics.euclideanDistance(_e,ce)<ye.connectionPointActionSize&&(ne=le)}),ne},ze.shouldRemoveConnectorIntermediatePoints=function(ae,_e){if(ae.properties.lineOption!==M.ConnectorLineOption.Orthogonal||2===ae.points.length||!_e||!_e.length)return!1;for(var ye,ne=0;ye=_e[ne];){if(this.isShapeIntersectConnectorCustomPoints(ye,ae))return!0;ne++}return!1},ze.tryRemoveConnectorIntermediatePoints=function(ae,_e){this.shouldRemoveConnectorIntermediatePoints(_e,[_e.beginItem,_e.endItem])&&this.deleteConnectorCustomPoints(ae,_e)},ze.isShapeIntersectConnectorCustomPoints=function(ae,_e){if(!ae)return!1;var ye=_e.getCustomRenderPoints(!0);if(!ye.length)return!1;var ne=X.Connector.minOffset-c.UnitConverter.pixelsToTwips(1);return Z.GeometryUtils.areIntersectedSegments(Z.GeometryUtils.createSegments(ye),Z.GeometryUtils.createSegmentsFromRectangle(ae.rectangle.clone().inflate(ne,ne)))},ze.getSnappedPos=function(ae,_e,ye,ne){var ce=ne?ae.snapStartPoint.x:ae.snapStartPoint.y;return Math.round((ye-ce)/_e)*_e+ce},ze.tryUpdateModelRectangle=function(ae,_e){var ye=ae.modelManipulator.getModelSizeUpdateOffset();ye.isEmpty()||(ae.addAndRedo(new W.ModelResizeHistoryItem(ye)),(ye.left||ye.top)&&(ae.addAndRedo(new z.UpdatePositionsOnPageResizeHistoryItem(new p.Vector(ye.left,ye.top))),void 0!==_e&&_e(ye.left,ye.top)),ae.modelManipulator.raiseModelRectangleChanged(ae.modelManipulator.model.getRectangle(!0)))},ze.deleteItems=function(ae,_e,ye,ne,ce){ae.beginTransaction();var le={};ne.forEach(function(Se){return le[Se.key]=Se});var pe=ye.getKeys().filter(function(Se){return!le[Se]});ae.addAndRedo(new B.SetSelectionHistoryItem(ye,pe)),this.deleteItemsCore(ae,_e,ne,ce),this.tryUpdateModelRectangle(ae),ae.endTransaction()},ze.deleteItemsCore=function(ae,_e,ye,ne){var ce=this;ye.sort(function(le,pe){return(le instanceof X.Connector?0:1)-(pe instanceof X.Connector?0:1)}),ye.forEach(function(le){if(le.container&&ce.removeFromContainer(ae,_e,le),le instanceof Te.Shape){var pe=_e.getChildren(le);pe.length&&(pe.forEach(function(Se){ae.addAndRedo(new R.RemoveFromContainerHistoryItem(Se)),ce.updateAttachedConnectorsContainer(ae,_e,Se)}),ce.deleteItemsCore(ae,_e,pe.filter(function(Se){return!Se.locked||ne}),ne)),_e.findItem(le.key)&&ce.deleteShape(ae,le)}le instanceof X.Connector&&_e.findItem(le.key)&&ce.deleteConnector(ae,le)})},ze.detachConnectors=function(ae,_e){for(ae.beginTransaction();_e.attachedConnectors.length>0;){var ye=_e.attachedConnectors[0];ae.addAndRedo(new E.DeleteConnectionHistoryItem(ye,ye.beginItem===_e?X.ConnectorPosition.Begin:X.ConnectorPosition.End))}ae.endTransaction()},ze.deleteShape=function(ae,_e){var ye=ae.modelManipulator.permissionsProvider.canDeleteItems([_e]);ae.beginTransaction(),this.detachConnectors(ae,_e),ae.addAndRedo(new O.DeleteShapeHistoryItem(_e.key,ye)),ae.endTransaction()},ze.deleteConnector=function(ae,_e){ae.beginTransaction(),_e.beginItem&&ae.addAndRedo(new E.DeleteConnectionHistoryItem(_e,X.ConnectorPosition.Begin)),_e.endItem&&ae.addAndRedo(new E.DeleteConnectionHistoryItem(_e,X.ConnectorPosition.End)),ae.addAndRedo(new S.DeleteConnectorHistoryItem(_e.key)),ae.endTransaction()},ze.deleteAllItems=function(ae,_e,ye){this.deleteItems(ae,_e,ye,_e.items.slice(),!0)},ze.deleteSelection=function(ae,_e,ye){this.deleteItems(ae,_e,ye,ye.getSelectedItems())},ze.changeSelectionLocked=function(ae,_e,ye,ne){ae.beginTransaction(),ye.getSelectedItems(!0).forEach(function(ce){ae.addAndRedo(new Y.ChangeLockedHistoryItem(ce,ne))}),ze.updateSelection(ae,ye),ae.endTransaction()},ze.copyStylesToItem=function(ae,_e,ye,ne){var ce=_e.findItem(ne);ye.styleText.forEach(function(le){ye.styleText[le]!==ce.styleText[le]&&ae.addAndRedo(new j.ChangeStyleTextHistoryItem(ne,le,ye.styleText[le]))}),ye.style.forEach(function(le){ye.style[le]!==ce.style[le]&&ae.addAndRedo(new J.ChangeStyleHistoryItem(ne,le,ye.style[le]))})},ze.updateSelection=function(ae,_e){ae.addAndRedo(new B.SetSelectionHistoryItem(_e,_e.getKeys(),!0))},ze.cloneShapeToOffset=function(ae,_e,ye,ne,ce){ae.beginTransaction();var le=ye.position.clone().offset(ne,ce),pe=new x.AddShapeHistoryItem(ye.description,le,ye.text);ae.addAndRedo(pe);var Se=pe.shapeKey;return ae.addAndRedo(new P.ResizeShapeHistoryItem(Se,le,ye.size.clone())),ae.addAndRedo(new K.ChangeCustomDataHistoryItem(Se,Z.ObjectUtils.cloneObject(ye.customData))),ae.addAndRedo(new y.ChangeShapeParametersHistoryItem(Se,ye.parameters.clone())),this.copyStylesToItem(ae,_e,ye,Se),ae.endTransaction(),Se},ze.applyOffsetToConnectorRenderPointsContext=function(ae,_e,ye){return ae&&ae.renderPoints?new fe.ConnectorRenderPointsContext(ae.renderPoints.map(function(ne){return ne.clone().offset(_e,ye)}),!0,ae.actualRoutingMode):void 0},ze.cloneConnectorToOffset=function(ae,_e,ye,ne,ce,le,pe){ae.beginTransaction();var Se=ye.points.map(function(Ae){return Ae.clone().offset(le,pe)}),re=new h.AddConnectorHistoryItem(Se,void 0,this.applyOffsetToConnectorRenderPointsContext(ye.tryCreateRenderPointsContext(),le,pe));ae.addAndRedo(re);var te=re.connectorKey,ie=_e.findConnector(te);if(ye.properties.forEach(function(Ae){ye.properties[Ae]!==ie.properties[Ae]&&ae.addAndRedo(new V.ChangeConnectorPropertyHistoryItem(te,Ae,ye.properties[Ae]))}),ne){var ue=_e.findShape(ne);ae.addAndRedo(new d.AddConnectionHistoryItem(ie,ue,ye.beginConnectionPointIndex,X.ConnectorPosition.Begin))}if(ce){var be=_e.findShape(ce);ae.addAndRedo(new d.AddConnectionHistoryItem(ie,be,ye.endConnectionPointIndex,X.ConnectorPosition.End))}return ye.texts.clone().forEach(function(Ae){ae.addAndRedo(new U.ChangeConnectorTextHistoryItem(ie,Ae.position,Ae.value))}),this.copyStylesToItem(ae,_e,ye,te),ae.endTransaction(),te},ze.cloneSelectionToOffset=function(ae,_e,ye,ne,ce,le){var pe=this;ae.beginTransaction();var Se={},re=[];ne.getSelectedShapes().forEach(function(te){var ie=pe.cloneShapeToOffset(ae,_e,te,ce,le);Se[te.key]=ie,re.push(ie),ye&&ye(ie)}),ne.getSelectedConnectors().forEach(function(te){var be=pe.cloneConnectorToOffset(ae,_e,te,te.beginItem?Se[te.beginItem.key]:null,te.endItem?Se[te.endItem.key]:null,ce,le);re.push(be),ye&&ye(be)}),ae.addAndRedo(new B.SetSelectionHistoryItem(ne,re)),ze.tryUpdateModelRectangle(ae),ae.endTransaction()},ze.findContainerByEventKey=function(ae,_e,ye){var ne=ae.findContainer(ye);if(ne&&!ne.isLocked)return ne;var ce=ae.findShape(ye);return ce&&ce.container&&!_e.hasKey(ce.key)?ze.findContainerByEventKey(ae,_e,ce.container.key):void 0},ze.canInsertToContainer=function(ae,_e,ye){return _e!==ye&&!(_e instanceof Te.Shape&&ae.findChild(_e,ye.key))},ze.canInsertSelectionToContainer=function(ae,_e,ye){var ne=!0;return _e.getSelectedItems().forEach(function(ce){ce!==ye?ce instanceof Te.Shape&&ae.findChild(ce,ye.key)&&(ne=!1):ne=!1}),ne},ze.insertToContainer=function(ae,_e,ye,ne){if(!ne.enableChildren)throw Error("Inpossible to add children to non-container shape.");if(this.canInsertToContainer(_e,ye,ne)){var ce=ye.container;ce!==ne&&(ae.beginTransaction(),ce&&(ae.addAndRedo(new R.RemoveFromContainerHistoryItem(ye)),ye.attachedConnectors.forEach(function(le){le.container&&ae.addAndRedo(new R.RemoveFromContainerHistoryItem(le))})),ae.addAndRedo(new w.InsertToContainerHistoryItem(ye,ne)),this.updateAttachedConnectorsContainer(ae,_e,ye),ae.endTransaction())}},ze.removeFromContainer=function(ae,_e,ye){ye.container&&(ae.beginTransaction(),ae.addAndRedo(new R.RemoveFromContainerHistoryItem(ye)),this.updateAttachedConnectorsContainer(ae,_e,ye),ae.endTransaction())},ze.insertSelectionToContainer=function(ae,_e,ye,ne){var ce=this;ae.beginTransaction();var le=ye.getSelectedItems();le.filter(function(pe){return!pe.container||-1===le.indexOf(pe.container)}).forEach(function(pe){ce.insertToContainer(ae,_e,pe,ne)}),ae.endTransaction()},ze.removeSelectionFromContainer=function(ae,_e,ye){var ne=this;ae.beginTransaction(),ye.getSelectedItems().forEach(function(ce){ce.container&&!ye.hasKey(ce.container.key)&&(ae.addAndRedo(new R.RemoveFromContainerHistoryItem(ce)),ne.updateAttachedConnectorsContainer(ae,_e,ce))}),ae.endTransaction()},ze.getConnectorContainer=function(ae){if(ae.beginItem&&ae.endItem){for(var _e={},ye=ae.beginItem.container;ye;)_e[ye.key]=!0,ye=ye.container;for(var ne=ae.endItem.container;ne;){if(void 0!==_e[ne.key])return ne;ne=ne.container}}},ze.updateAttachedConnectorsContainer=function(ae,_e,ye){var ne=this;ae.beginTransaction(),ye.attachedConnectors.forEach(function(ce){ne.updateConnectorContainer(ae,_e,ce)}),ae.endTransaction()},ze.updateConnectorContainer=function(ae,_e,ye){var ne=this.getConnectorContainer(ye);ne?ae.addAndRedo(new w.InsertToContainerHistoryItem(ye,ne)):ye.container&&ae.addAndRedo(new R.RemoveFromContainerHistoryItem(ye))},ze.updateNewShapeProperties=function(ae,_e,ye){_e.inputPosition.getDefaultStyle().forEach(function(ne){ae.addAndRedo(new J.ChangeStyleHistoryItem(ye,ne,_e.inputPosition.getDefaultStylePropertyValue(ne)))}),_e.inputPosition.getDefaultTextStyle().forEach(function(ne){ae.addAndRedo(new j.ChangeStyleTextHistoryItem(ye,ne,_e.inputPosition.getDefaultTextStylePropertyValue(ne)))})},ze.updateNewConnectorProperties=function(ae,_e,ye){_e.inputPosition.getDefaultConnectorProperties().forEach(function(ne){ae.addAndRedo(new V.ChangeConnectorPropertyHistoryItem(ye,ne,_e.inputPosition.getDefaultConnectorPropertyValue(ne)))}),_e.inputPosition.getDefaultStyle().forEach(function(ne){ae.addAndRedo(new J.ChangeStyleHistoryItem(ye,ne,_e.inputPosition.getDefaultStylePropertyValue(ne)))}),_e.inputPosition.getDefaultTextStyle().forEach(function(ne){ae.addAndRedo(new j.ChangeStyleTextHistoryItem(ye,ne,_e.inputPosition.getDefaultTextStylePropertyValue(ne)))})},ze.applyLayout=function(ae,_e,ye,ne,ce,le,pe,Se,re,te){ae.beginTransaction();var ie=this.getOccupiedRectangles(le,ye);return ce=this.offsetLayoutToFreeSpace(ce,ye&&ye.clientRectangle,ie,pe.containerPadding),Se&&this.adjustLayoutToSnapGrid(_e,ce,re),ye&&this.resizeContainerOnLayout(ae,_e,ce,ye,pe.containerPadding),this.applyLayoutToNodes(ae,_e,ce,ne.edges.map(function(ue){return _e.findConnector(ue.key)})),this.applyLayoutToConnectors(ae,_e,ce,ne.edges.map(function(ue){return _e.findConnector(ue.key)}),te),ae.endTransaction(),ce.getRectangle(!0)},ze.getNonGraphItems=function(ae,_e,ye,ne,ce){return(_e?ae.getChildren(_e):ae.items.filter(function(le){return!le.container})).filter(function(le){return le instanceof X.Connector?!(le.beginItem&&ye[le.beginItem.key]||le.endItem&&ye[le.endItem.key]||-1!==ce.indexOf(le)):le instanceof Te.Shape?!ye[le.key]&&-1===ne.indexOf(le):void 0})},ze.getOccupiedRectangles=function(ae,_e){var ye=ae.map(function(ce){return ce.rectangle});if(_e&&ye.length){var ne=_e.clientRectangle;ye.push(new g.Rectangle(ne.right,ne.y,1,1)),ye.push(new g.Rectangle(ne.right,ne.bottom,1,1))}return ye},ze.offsetLayoutToFreeSpace=function(ae,_e,ye,ne){var ce=ae.getRectangle(!0),le=Z.GeometryUtils.findFreeSpace(ye,ce.createSize().offset(ne,ne).nonNegativeSize(),!1,_e);if(le)return ae.offsetNodes(le.x+ne,le.y+ne);var re=ye&&ye.length?ye.reduce(function(ie,ue){return ue.right>ie?ue.right:ie},0):_e?_e.x:0,te=_e?_e.y:Math.max(0,ce.y);return ae.offsetNodes(re+ne,te+ne)},ze.resizeContainerOnLayout=function(ae,_e,ye,ne,ce){var le=ye.getRectangle(!0),pe=ne.children.filter(function(ue){return ue instanceof Te.Shape?-1===ye.nodeKeys.indexOf(ue.key):!!(ue instanceof X.Connector&&ue.beginItem&&ue.endItem)&&-1===ye.nodeKeys.indexOf(ue.beginItem.key)&&-1===ye.nodeKeys.indexOf(ue.endItem.key)}).map(function(ue){return ue.rectangle}),Se=pe.map(function(ue){return ue.right}).reduce(function(ue,be){return Math.max(ue,be)},le.right),re=pe.map(function(ue){return ue.bottom}).reduce(function(ue,be){return Math.max(ue,be)},le.bottom);ze.setShapeSize(ae,_e,ne,ne.position,new a.Size(ne.rectangle.width+Se+ce-ne.rectangle.right,ne.rectangle.height+re+ce-ne.rectangle.bottom)),ze.updateShapeAttachedConnectors(ae,_e,ne)},ze.applyLayoutToNodes=function(ae,_e,ye,ne){var ce=this,le=ne.reduce(function(pe,Se){return pe[Se.key]=pe},{});ye.forEachNode(function(pe,Se){var re=_e.findShape(Se);ce.applyLayoutToNode(ae,_e,re,pe.position,le)})},ze.applyLayoutToNode=function(ae,_e,ye,ne,ce){var le=this,pe=ne.clone().offset(-ye.position.x,-ye.position.y);ze.setShapePosition(ae,_e,ye,ne,!1),0===pe.x&&0===pe.y||(ye.attachedConnectors.filter(function(Se){return!ce[Se.key]}).forEach(function(Se){le.updateConnectorAttachedPoints(ae,_e,Se);for(var te=Se.endItem?Se.points.length-2:Se.points.length-1,ie=Se.beginItem?1:0;ie<=te;ie++)le.moveConnectorPoint(ae,Se,ie,Se.points[ie].offset(pe.x,pe.y))}),_e.getChildren(ye).forEach(function(Se){if(Se instanceof Te.Shape){var re=Se.position.clone().offset(pe.x,pe.y);le.applyLayoutToNode(ae,_e,Se,re,ce)}}))},ze.applyLayoutToConnectors=function(ae,_e,ye,ne,ce){var le=this;ne.filter(function(pe){return pe.beginItem||pe.endItem}).forEach(function(pe){var Se=ye.edgeToPosition[pe.key];if(pe.beginItem&&pe.endItem&&!ce&&Se){var re=pe.beginItem.getConnectionPointIndexForSide(Se.beginIndex);re!==pe.beginConnectionPointIndex&&ae.addAndRedo(new d.SetConnectionPointIndexHistoryItem(pe,re,X.ConnectorPosition.Begin));var te=pe.endItem.getConnectionPointIndexForSide(Se.endIndex);te!==pe.endConnectionPointIndex&&ae.addAndRedo(new d.SetConnectionPointIndexHistoryItem(pe,te,X.ConnectorPosition.End))}le.updateConnectorAttachedPoints(ae,_e,pe),Se&&le.deleteConnectorCustomPoints(ae,pe)})},ze.adjustLayoutToSnapGrid=function(ae,_e,ye){var ne=this;_e.nodeKeys.forEach(function(ce){_e.nodeToLayout[ce].position.x=ne.getSnappedPos(ae,ye,_e.nodeToLayout[ce].position.x,!0),_e.nodeToLayout[ce].position.y=ne.getSnappedPos(ae,ye,_e.nodeToLayout[ce].position.y,!1)})},ze.getGraphInfoByItems=function(ae,_e,ye,ne){void 0===ne&&(ne=!0);var ce={};[].concat(_e).concat(ye).forEach(function(ue){var be=ue.container&&ue.container.key;ce[be]||(ce[be]=[]),ce[be].push(ue)});var le=[];for(var pe in ce)if(Object.prototype.hasOwnProperty.call(ce,pe)){var Se=pe&&ae.findContainer(pe);if(!Se||Se.expanded&&!ae.findItemCollapsedContainer(Se)){var te=this.getGraphByItems(ae,ce[pe],Se&&Se.key,!ne),ie=!1;(te.nodes.length>1||te.nodes.length&&(ne||Se&&ce[Se.container&&Se.container.key]))&&(ie=!0),ie&&le.push(new G.GraphInfo(Se,te))}}return le.sort(function(ue,be){return be.level-ue.level})},ze.getGraphByItems=function(ae,_e,ye,ne){var ce=this,le=new ee.Graph([],[]),pe={};return _e.forEach(function(Se){ce.extendByConnectedComponents(Se,le,ye,pe,ne)}),le.nodes.sort(function(Se,re){return ae.getItemIndex(ae.findItem(Se))-ae.getItemIndex(ae.findItem(re))}),le.edges.sort(function(Se,re){return ae.getItemIndex(ae.findItem(Se.key))-ae.getItemIndex(ae.findItem(re.key))}),le.edges=le.edges.filter(function(Se){return le.getNode(Se.from)&&le.getNode(Se.to)}),le},ze.extendByConnectedComponents=function(ae,_e,ye,ne,ce){var le=this;!ae||ce&&ae.locked||ne[ae.key]||(ne[ae.key]=!0,!(ae instanceof X.Connector&&(ae.container&&ae.container.key)===ye&&ae.beginItem)||ae.beginItem.locked&&ce||!ae.endItem||ae.endItem.locked&&ce||ae.beginItem===ae.endItem?ae instanceof Te.Shape&&(ae.container&&ae.container.key)===ye&&(_e.addNode(ae),ae.attachedConnectors.forEach(function(pe){return le.extendByConnectedComponents(pe,_e,ye,ne,ce)})):(_e.addEdge(new q.Edge(ae.key,ae.beginItem&&ae.beginItem.key,ae.endItem&&ae.endItem.key)),this.extendByConnectedComponents(ae.beginItem,_e,ye,ne,ce),this.extendByConnectedComponents(ae.endItem,_e,ye,ne,ce)))},ze.getlUnitValue=function(ae,_e){switch(ae){case l.DiagramUnit.Cm:return c.UnitConverter.twipsToCentimeters(_e);case l.DiagramUnit.In:return c.UnitConverter.twipsToInches(_e);case l.DiagramUnit.Px:return c.UnitConverter.twipsToPixels(_e)}},ze.getUnitText=function(ae,_e,ye,ne,ce){void 0===ce&&(ce=2);var le=_e[ae]?" "+_e[ae]:"",pe=this.getlUnitValue(ae,ne);switch(ae){case l.DiagramUnit.Cm:case l.DiagramUnit.In:return ye(+pe.toFixed(ce))+le;case l.DiagramUnit.Px:return ye(+pe.toFixed(0))+le}},ze.getTwipsValue=function(ae,_e){switch(ae){case l.DiagramUnit.Cm:return c.UnitConverter.centimetersToTwips(_e);case l.DiagramUnit.In:return c.UnitConverter.inchesToTwips(_e);case l.DiagramUnit.Px:return c.UnitConverter.pixelsToTwips(_e)}},ze.getGuidItemKey=function(){return s.MathUtils.generateGuid()},ze.createSelectedItems=function(ae){var _e={};return ae.getSelectedItems(!0).forEach(function(ye){return _e[ye.key]=ye}),_e},ze.canMoveConnector=function(ae,_e){var ye=_e.beginItem,ne=_e.endItem;return ye||ne?!(!ae[_e.key]||!(ye===ne?ae[ye.key]:ye?ne?ae[ye.key]&&ae[ne.key]:ae[ye.key]:ae[ne.key])):!_e.isLocked},ze.createRectangle=function(ae){return Z.GeometryUtils.getCommonRectangle(ae.map(function(_e){return _e.rectangle}))},ze.connectionPointActionSize=c.UnitConverter.pixelsToTwips(8),ze}();u.ModelUtils=Be},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.PathPrimitiveClosePathCommand=u.PathPrimitiveArcToCommand=u.PathPrimitiveQuadraticCurveToCommand=u.PathPrimitiveCubicCurveToCommand=u.PathPrimitiveLineToCommand=u.PathPrimitiveMoveToCommand=u.PathPrimitiveCommand=u.PathPrimitive=void 0;var C=o(15),g=o(24),a=o(109),p=function(y){function E(S,O,w,T,k){var R=y.call(this,O,w,T,k)||this;return R.commands=S.map(function(P){return P.style=O,P}),R}return I(E,y),E.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"path")},E.prototype.applyElementProperties=function(S,O){S.setAttribute("d",this.commands.map(function(w){return w.toString()}).join(" ")),this.setPositionCorrectionAttribute(S),y.prototype.applyElementProperties.call(this,S,O)},E}(g.SvgPrimitive);u.PathPrimitive=p;var s=function(y){function E(){return null!==y&&y.apply(this,arguments)||this}return I(E,y),E}(a.PrimitiveObject);u.PathPrimitiveCommand=s;var l=function(y){function E(S,O){var w=y.call(this)||this;return w.x=S,w.y=O,w}return I(E,y),E.prototype.toString=function(){return"M "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},E.fromPoint=function(S){return new E(S.x,S.y)},E}(s);u.PathPrimitiveMoveToCommand=l;var d=function(y){function E(S,O){var w=y.call(this)||this;return w.x=S,w.y=O,w}return I(E,y),E.prototype.toString=function(){return"L "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},E.fromPoint=function(S){return new E(S.x,S.y)},E}(s);u.PathPrimitiveLineToCommand=d;var h=function(y){function E(S,O,w,T,k,R){var P=y.call(this)||this;return P.x1=S,P.y1=O,P.x2=w,P.y2=T,P.x3=k,P.y3=R,P}return I(E,y),E.prototype.toString=function(){return"C "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)+","+this.getUnitVaue(this.x3)+" "+this.getUnitVaue(this.y3)},E}(s);u.PathPrimitiveCubicCurveToCommand=h;var v=function(y){function E(S,O,w,T){var k=y.call(this)||this;return k.x1=S,k.y1=O,k.x2=w,k.y2=T,k}return I(E,y),E.prototype.toString=function(){return"Q "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)},E}(s);u.PathPrimitiveQuadraticCurveToCommand=v;var x=function(y){function E(S,O,w,T,k,R,P){var B=y.call(this)||this;return B.rx=S,B.ry=O,B.xAxisRotation=w,B.largeArcFlag=T,B.sweepFag=k,B.x=R,B.y=P,B}return I(E,y),E.prototype.toString=function(){return"A "+this.getUnitVaue(this.rx)+" "+this.getUnitVaue(this.ry)+" "+this.getUnitVaue(this.xAxisRotation)+" "+(this.largeArcFlag?"1":"0")+" "+(this.sweepFag?"1":"0")+this.getUnitVaue(this.x)+","+this.getUnitVaue(this.y)},E}(s);u.PathPrimitiveArcToCommand=x;var b=function(y){function E(){return y.call(this)||this}return I(E,y),E.prototype.toString=function(){return"z"},E}(s);u.PathPrimitiveClosePathCommand=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(V,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,Y){K.__proto__=Y}||function(K,Y){for(var J in Y)Y.hasOwnProperty(J)&&(K[J]=Y[J])})(V,U)},function(V,U){function K(){this.constructor=V}c(V,U),V.prototype=null===U?Object.create(U):(K.prototype=U.prototype,new K)});Object.defineProperty(u,"__esModule",{value:!0}),u.Connector=u.CONNECTOR_DEFAULT_TEXT_POSITION=u.ConnectorPosition=void 0;var C,V,g=o(12),a=o(13),p=o(33),s=o(2),l=o(42),d=o(84),h=o(11),v=o(43),x=o(5),b=o(63),y=o(17),E=o(28),S=o(3),O=o(9),w=o(4),T=o(179),k=o(180),R=o(186),P=o(32),B=o(187),W=o(85);(V=C=u.ConnectorPosition||(u.ConnectorPosition={}))[V.Begin=0]="Begin",V[V.End=1]="End",u.CONNECTOR_DEFAULT_TEXT_POSITION=.5;var z=function(V){function U(K){var Y=V.call(this)||this;if(Y.beginConnectionPointIndex=-1,Y.endConnectionPointIndex=-1,Y.properties=new P.ConnectorProperties,Y.points=K.map(function(J){return J.clone()}),K.length<2)throw Error("Points count should be greater than 1");return Y.texts=new B.ConnectorTexts,Y}return I(U,V),Object.defineProperty(U.prototype,"rectangle",{get:function(){return S.GeometryUtils.createRectagle(this.getRenderPoints(!0))},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"skippedRenderPoints",{get:function(){return this.renderPoints?this.renderPoints.filter(function(K){return K.skipped}):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(U.prototype,"shouldChangeRenderPoints",{get:function(){return void 0!==this.renderPoints&&void 0!==this.routingStrategy},enumerable:!1,configurable:!0}),U.prototype.assign=function(K){V.prototype.assign.call(this,K),K.beginItem=this.beginItem,K.beginConnectionPointIndex=this.beginConnectionPointIndex,K.endItem=this.endItem,K.endConnectionPointIndex=this.endConnectionPointIndex,K.properties=this.properties.clone(),K.texts=this.texts.clone(),void 0!==this.routingStrategy&&(K.routingStrategy=this.routingStrategy.clone()),void 0!==this.renderPoints&&(K.renderPoints=this.renderPoints.map(function(Y){return Y.clone()})),void 0!==this.renderPointsWithoutSkipped&&(K.renderPointsWithoutSkipped=this.renderPointsWithoutSkipped.map(function(Y){return Y.clone()})),void 0!==this.actualRoutingMode&&(K.actualRoutingMode=this.actualRoutingMode),void 0!==this.lockCreateRenderPoints&&(K.lockCreateRenderPoints=this.lockCreateRenderPoints),void 0!==this.shouldInvalidateRenderPoints&&(K.shouldInvalidateRenderPoints=this.shouldInvalidateRenderPoints)},U.prototype.clone=function(){var K=new U(this.points);return this.assign(K),K},U.prototype.getTextCount=function(){return this.texts.count()},U.prototype.getText=function(K){void 0===K&&(K=u.CONNECTOR_DEFAULT_TEXT_POSITION);var Y=this.texts.get(K);return Y?Y.value:""},U.prototype.setText=function(K,Y){void 0===Y&&(Y=u.CONNECTOR_DEFAULT_TEXT_POSITION),K&&""!==K?this.texts.set(Y,new B.ConnectorText(Y,K)):this.texts.remove(Y)},U.prototype.getTextPoint=function(K){var Y=this.getRenderPoints();return S.GeometryUtils.getPathPointByPosition(Y,K)[0]},U.prototype.getTextPositionByPoint=function(K){var Y=this.getRenderPoints(),J=S.GeometryUtils.getPathLength(Y),j=S.GeometryUtils.getPathPositionByPoint(Y,K),ee=g.UnitConverter.pointsToTwips(parseInt(this.styleText["font-size"]));return ee>j*J?ee/J:ee>J-j*J?(J-ee)/J:j},U.prototype.getTextRectangle=function(K){return a.Rectangle.fromGeometry(this.getTextPoint(K),new s.Size(0,0))},U.prototype.changeRoutingStrategy=function(K){this.routingStrategy=K,this.invalidateRenderPoints()},U.prototype.clearRoutingStrategy=function(){delete this.routingStrategy,delete this.renderPoints,delete this.renderPointsWithoutSkipped,delete this.lockCreateRenderPoints,delete this.actualRoutingMode,delete this.shouldInvalidateRenderPoints,this.invalidateRenderPoints()},U.prototype.getCustomRenderPoints=function(K){void 0===K&&(K=!1);var Y=this.getRenderPoints(K),J=[];return Y.forEach(function(j,ee){ee>0&&ee<Y.length-1&&J.push(j)}),J},U.prototype.getRenderPoints=function(K){if(void 0===K&&(K=!1),void 0===this.shouldInvalidateRenderPoints||this.shouldInvalidateRenderPoints)if(this.shouldInvalidateRenderPoints=!1,this.routingStrategy){if(!this.lockCreateRenderPoints&&(this.changeRenderPoints(new k.ConnectorPointsOrthogonalCalculator(this).getPoints()),this.actualRoutingMode!==E.ConnectorRoutingMode.None&&this.points&&this.renderPoints)&&!this.points[0].equals(this.points[this.points.length-1])){var j=this.routingStrategy.createRenderPoints(this.points,this.renderPoints,this.beginItem,this.endItem,this.beginConnectionPointIndex,this.endConnectionPointIndex,w.ModelUtils.getConnectorContainer(this));j?(this.changeRenderPoints(j),this.actualRoutingMode=E.ConnectorRoutingMode.AllShapesOnly):this.actualRoutingMode=E.ConnectorRoutingMode.None}}else this.changeRenderPoints(this.getCalculator().getPoints());return K?this.renderPoints:this.renderPointsWithoutSkipped},U.prototype.tryCreateRenderPointsContext=function(K){return K||this.shouldChangeRenderPoints?new W.ConnectorRenderPointsContext(this.renderPoints.map(function(Y){return Y.clone()}),this.lockCreateRenderPoints,this.actualRoutingMode):void 0},U.prototype.updatePointsOnPageResize=function(K,Y){this.points=this.points.map(function(J){return J.clone().offset(K,Y)}),this.renderPoints&&this.changeRenderPoints(this.renderPoints.map(function(J){var j=J.clone().offset(K,Y);return j.pointIndex=J.pointIndex,j.skipped=J.skipped,j}))},U.prototype.addPoint=function(K,Y){this.points.splice(K,0,Y)},U.prototype.deletePoint=function(K){this.points.splice(K,1)},U.prototype.movePoint=function(K,Y){this.points[K]=Y},U.prototype.onAddPoint=function(K,Y){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onAddPoint(this.points,K,Y,this.renderPoints),!0,E.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},U.prototype.onDeletePoint=function(K){this.shouldChangeRenderPoints?this.replaceRenderPointsCore(this.routingStrategy.onDeletePoint(this.points,K,this.renderPoints),this.points.length>2,E.ConnectorRoutingMode.AllShapesOnly):this.invalidateRenderPoints()},U.prototype.onMovePoint=function(K,Y){this.shouldChangeRenderPoints?(0!==K&&K!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoint(this.points,K,Y,this.renderPoints),this.lockCreateRenderPoints,E.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},U.prototype.onMovePoints=function(K,Y,J,j){this.shouldChangeRenderPoints?(0!==K&&J!==this.points.length-1||(this.lockCreateRenderPoints=!1),this.replaceRenderPointsCore(this.routingStrategy.onMovePoints(this.points,K,Y,J,j,this.renderPoints),this.lockCreateRenderPoints,E.ConnectorRoutingMode.AllShapesOnly)):this.invalidateRenderPoints()},U.prototype.replaceRenderPoints=function(K){void 0!==K?this.replaceRenderPointsCore(K.renderPoints,K.lockCreateRenderPoints,K.actualRoutingMode):this.invalidateRenderPoints()},U.prototype.clearRenderPoints=function(){this.changeRenderPoints(void 0),this.lockCreateRenderPoints=!1,this.actualRoutingMode=void 0,this.invalidateRenderPoints()},U.prototype.replaceRenderPointsCore=function(K,Y,J){this.changeRenderPoints(K),this.lockCreateRenderPoints=Y,this.actualRoutingMode=J,this.invalidateRenderPoints()},U.prototype.changeRenderPoints=function(K){this.renderPoints=K,this.renderPointsWithoutSkipped=K?this.renderPoints.filter(function(Y){return!Y.skipped}):void 0},U.prototype.getCalculator=function(){return this.properties.lineOption===P.ConnectorLineOption.Straight?new T.ConnectorPointsCalculator(this):new k.ConnectorPointsOrthogonalCalculator(this)},U.prototype.invalidateRenderPoints=function(){this.shouldInvalidateRenderPoints=!0},U.prototype.createPrimitives=function(){var K=[],Y=this.getRenderPoints(),J=new x.PathPrimitive(Y.map(function(j,ee){return 0===ee?new x.PathPrimitiveMoveToCommand(j.x,j.y):new x.PathPrimitiveLineToCommand(j.x,j.y)}),this.style);return K.push(J),(K=K.concat(this.createLineEndingPrimitives(Y,J))).concat(this.createTextPrimitives())},U.prototype.createLineEndingPrimitives=function(K,Y){var J=[];return K.length>1&&[{strategy:this.createLineEndingStrategy(this.properties.startLineEnding),point1:K[0],point2:K[1]},{strategy:this.createLineEndingStrategy(this.properties.endLineEnding),point1:K[K.length-1],point2:K[K.length-2]}].forEach(function(j){var ee=j.strategy;if(ee.hasCommands()){var G=Y;ee.needCreateSeparatePrimitive()&&J.push(G=ee.createPrimitive()),G.commands=G.commands.concat(ee.createCommands(j.point1,j.point2))}}),J},U.prototype.createLineEndingStrategy=function(K){switch(K){case P.ConnectorLineEnding.None:return new R.ConnectorLineEndingNoneStrategy(this.style);case P.ConnectorLineEnding.Arrow:return new R.ConnectorLineEndingArrowStrategy(this.style);case P.ConnectorLineEnding.OutlinedTriangle:return new R.ConnectorLineEndingOutlinedTriangleStrategy(this.style);case P.ConnectorLineEnding.FilledTriangle:return new R.ConnectorLineEndingFilledTriangleStrategy(this.style);default:return new R.ConnectorLineEndingStrategy(this.style)}},U.prototype.createSelectorPrimitives=function(){var K=[],Y=this.getRenderPoints();return K.push(new x.PathPrimitive(Y.map(function(J,j){return 0===j?new x.PathPrimitiveMoveToCommand(J.x,J.y):new x.PathPrimitiveLineToCommand(J.x,J.y)}),null,"selector")),K},U.prototype.createTextPrimitives=function(){var K=this;if(!this.enableText)return[];var Y=[];return this.texts.forEach(function(J){var j=K.getText(J.position);if(j&&""!==j){var ee=K.getTextPoint(J.position);Y=Y.concat([new b.TextPrimitive(ee.x,ee.y,j,v.TextOwner.Connector,void 0,void 0,void 0,K.styleText,!0,null,l.PAGE_BG_TEXTFLOOR_FILTER_ID,void 0,function(G){y.RenderUtils.setElementEventData(G,h.MouseEventElementType.ConnectorText,K.key,J.position)})])}}),Y},U.prototype.getExtremeItem=function(K){return K===C.Begin?this.beginItem:K===C.End?this.endItem:null},U.prototype.getExtremeConnectionPointIndex=function(K){return K===C.Begin?this.beginConnectionPointIndex:K===C.End?this.endConnectionPointIndex:-1},U.prototype.getMinX=function(){return this.getRenderPoints().map(function(K){return K.x}).reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE)},U.prototype.getMinY=function(){return this.getRenderPoints().map(function(K){return K.y}).reduce(function(K,Y){return Math.min(K,Y)},Number.MAX_VALUE)},U.prototype.getConnectionPoints=function(){return[]},U.prototype.getConnectionPointSide=function(K,Y){return O.ConnectionPointSide.Undefined},U.prototype.getSegments=function(){var K=[],Y=this.getRenderPoints();return Y.forEach(function(J,j){j>0&&K.push(new p.Segment(Y[j-1],J))}),K},U.prototype.intersectedByRect=function(K){return this.getSegments().some(function(Y){return Y.isIntersectedByRect(K)})},U.prototype.toNative=function(K){var Y=new d.NativeConnector(this.key,this.dataKey);return Y.fromKey=this.beginItem&&this.beginItem.dataKey,Y.toKey=this.endItem&&this.endItem.dataKey,Y.texts=this.texts.map(function(J){return J}).sort(function(J,j){return J.position-j.position}).map(function(J){return J.value}),Y.fromId=this.beginItem&&this.beginItem.key,Y.fromPointIndex=this.beginConnectionPointIndex,Y.toId=this.endItem&&this.endItem.key,Y.toPointIndex=this.endConnectionPointIndex,Y.points=this.points.map(function(J){return J.clone()}),Y.applyUnits(K),Y},U.minOffset=g.UnitConverter.pixelsToTwips(24),U.minTextHeight=g.UnitConverter.pixelsToTwips(12),U}(O.DiagramItem);u.Connector=z},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeDescription=u.ShapeTextPadding=u.ShapeDefaultSize=u.ShapeMinDimension=u.ShapeDefaultDimension=void 0;var c=o(12),I=o(2),C=o(36),g=o(43),a=o(21),p=o(63),s=o(3),l=o(45),d=o(9);u.ShapeDefaultDimension=1440,u.ShapeMinDimension=360,u.ShapeDefaultSize=new I.Size(u.ShapeDefaultDimension,u.ShapeDefaultDimension),u.ShapeTextPadding=c.UnitConverter.pixelsToTwips(10);var h=function(){function v(x,b){void 0===x&&(x=u.ShapeDefaultSize.clone()),this.defaultSize=x,this.hasDefaultText=b,this.onChanged=new s.EventDispatcher,this.connectionPoints=this.createConnectionPoints()}return Object.defineProperty(v.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"enableImage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"allowEditImage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"minWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"minHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"maxWidth",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"maxHeight",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"toolboxSize",{get:function(){return this.defaultSize},enumerable:!1,configurable:!0}),v.prototype.getTitle=function(){return C.DiagramLocalizationService.shapeTexts[this.key]},v.prototype.getDefaultText=function(){return this.hasDefaultText?C.DiagramLocalizationService.shapeTexts[this.key]:""},v.prototype.getDefaultImageUrl=function(){return""},v.prototype.getConnectionPoints=function(){return this.connectionPoints},v.prototype.createConnectionPoints=function(){return[new l.ConnectionPoint(.5,0,d.ConnectionPointSide.North),new l.ConnectionPoint(1,.5,d.ConnectionPointSide.East),new l.ConnectionPoint(.5,1,d.ConnectionPointSide.South),new l.ConnectionPoint(0,.5,d.ConnectionPointSide.West)]},v.prototype.processConnectionPoint=function(x,b){},v.prototype.getConnectionPointIndexForItem=function(x,b){return b},v.prototype.getConnectionPointIndexForSide=function(x){return x},v.getConnectionPointSideByGeometry=function(x){return x.x>=x.y&&(x.x>0||x.y>0)?x.x<.5||1-x.x>=x.y?d.ConnectionPointSide.North:d.ConnectionPointSide.East:x.x>.5||1-x.x<=x.y?d.ConnectionPointSide.South:d.ConnectionPointSide.West},v.prototype.createParameters=function(x){},v.prototype.normalizeParameters=function(x,b){},v.prototype.modifyParameters=function(x,b,y,E){throw Error("Not implemented")},v.prototype.changeParameterValue=function(x,b,y){var E=x.get(b);E.value=y(E)},v.prototype.getParameterPoints=function(x){return[]},v.prototype.getExpandedSize=function(x){return x.size},v.prototype.getCollapsedSize=function(x){return x.size},v.prototype.getToolboxHeightToWidthRatio=function(x,b){return b/x},v.prototype.allowResizeHorizontally=function(x){return!0},v.prototype.allowResizeVertically=function(x){return!0},v.prototype.createPrimitives=function(x,b){var y=[];return y=y.concat(this.createShapePrimitives(x,b)),this.enableImage&&(y=y.concat(this.createImagePrimitives(x,b))),this.enableText&&(y=y.concat(this.createTextPrimitives(x,b))),y},v.prototype.createImagePrimitives=function(x,b){return[]},v.prototype.createTextPrimitives=function(x,b){if(void 0===x.text||""===x.text)return[];var y=this.getTextRectangle(x);return[new p.TextPrimitive(y.x,y.y,x.text,g.TextOwner.Shape,y.width,y.height,v.textSpacing,x.styleText,!1,this.getTextClipPathId(b),void 0,this.getTextAngle())]},v.prototype.getTextClipPathId=function(x){},v.prototype.getTextAngle=function(){return p.TextAngle.Angle0deg},v.prototype.getClientRectangle=function(x){return x.rectangle},v.prototype.getTextEditRectangle=function(x){return this.getTextRectangle(x)},v.prototype.createSelectorPrimitives=function(x){return[new a.RectanglePrimitive(x.position.x,x.position.y,x.size.width,x.size.height,null,"selector")]},v.prototype.raiseShapeDescriptionChanged=function(x){this.onChanged.raise1(function(b){return b.notifyShapeDescriptionChanged(x)})},v.textSpacing=c.UnitConverter.pixelsToTwips(2),v}();u.ShapeDescription=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.CompositionHistoryItem=u.HistoryItem=void 0;var C=function(){function a(){this.uniqueId=-1}return a.prototype.changeModified=function(){return!0},a.prototype.getName=function(){return this.constructor.name},a}();u.HistoryItem=C;var g=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.historyItems=[],s.dataSyncItems=[],s}return I(p,a),p.prototype.changeModified=function(){for(var s,l=0;s=this.historyItems[l];l++)if(s.changeModified())return!0;return!1},p.prototype.redo=function(s){for(var l,d=0;l=this.historyItems[d];d++)l.redo(s)},p.prototype.undo=function(s){for(var l,d=this.dataSyncItems.length-1;l=this.dataSyncItems[d];d--)l.undo(s);for(this.dataSyncItems=[],d=this.historyItems.length-1;l=this.historyItems[d];d--)l.undo(s)},p.prototype.add=function(s){if(null==s)throw new Error("cannot be null");this.historyItems.push(s)},p}(C);u.CompositionHistoryItem=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramItem=u.DEFAULT_ZINDEX=u.ConnectionPointSide=void 0;var c,s,I=o(13),C=o(35),g=o(3),a=o(26);(s=c=u.ConnectionPointSide||(u.ConnectionPointSide={}))[s.Undefined=-1]="Undefined",s[s.North=0]="North",s[s.East=1]="East",s[s.South=2]="South",s[s.West=3]="West",u.DEFAULT_ZINDEX=0;var p=function(){function s(){this.key=void 0,this.dataKey=void 0,this.customData=void 0,this.attachedConnectors=[],this.zIndex=u.DEFAULT_ZINDEX,this.locked=!1,this.container=void 0,this.style=new a.Style,this.styleText=new a.TextStyle}return s.prototype.assign=function(l){l.key=this.key,l.dataKey=this.dataKey,l.customData=g.ObjectUtils.cloneObject(this.customData),l.locked=this.locked,l.attachedConnectors=this.attachedConnectors.slice(),l.style=this.style.clone(),l.styleText=this.styleText.clone(),l.zIndex=this.zIndex,l.container=this.container},s.prototype.getConnectionPointPosition=function(l,d){return this.getConnectionPoint(l,d).toPoint()},s.prototype.getConnectionPoint=function(l,d){l<0&&d&&(l=this.getNearestConnectionPoint(d));var h=this.getConnectionPoints();return h[l]||h[0]},s.prototype.getNearestConnectionPoint=function(l){var d,h=Number.MAX_VALUE;return this.getConnectionPoints().forEach(function(v,x){var b=C.Metrics.euclideanDistance(v,l);b<h&&(h=b,d=x)}),d},s.prototype.getConnectionPointIndex=function(l){var d=this.getConnectionPoints();return d.reduce(function(h,v,x){return l===c.North&&v.y<d[h].y||l===c.South&&v.y>d[h].y||l===c.West&&v.x<d[h].x||l===c.East&&v.x>d[h].x?x:h},0)},s.prototype.getConnectionPointSideByIndex=function(l,d){var h=this.getConnectionPoint(l,d);return this.getConnectionPointSide(h,d)},s.prototype.getConnectionPointIndexForSide=function(l){return l},Object.defineProperty(s.prototype,"enableText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowEditText",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hasTemplate",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"enableChildren",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"isLocked",{get:function(){return this.locked||this.container&&this.container.isLocked},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowResizeHorizontally",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"allowResizeVertically",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"strokeWidth",{get:function(){return this.style.strokeWidth},enumerable:!1,configurable:!0}),s.prototype.intersectedByRect=function(l){return I.Rectangle.areIntersected(this.rectangle,l)},s}();u.DiagramItem=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.SimpleCommandBase=void 0;var C=o(197),g=o(198),a=o(4),p=o(36),s=function(l){function d(){return null!==l&&l.apply(this,arguments)||this}return I(d,l),d.prototype.getState=function(){return new g.SimpleCommandState(this.isEnabled(),this.getValue(),this.getDefaultValue(),this.getItems(),this.isVisible())},d.prototype.isVisible=function(){return!0},d.prototype.isEnabled=function(){return!this.control.settings.readOnly||this.isEnabledInReadOnlyMode()},d.prototype.isEnabledInReadOnlyMode=function(){return!1},d.prototype.getValue=function(){},d.prototype.getDefaultValue=function(){},d.prototype.getItems=function(){},d.prototype.getModelUnit=function(h){return a.ModelUtils.getlUnitValue(this.control.model.units,h)},d.prototype.getModelUnitText=function(h){return a.ModelUtils.getUnitText(this.control.model.units,p.DiagramLocalizationService.unitItems,p.DiagramLocalizationService.formatUnit,h)},d.prototype.getModelUnitTwipsValue=function(h){return a.ModelUtils.getTwipsValue(this.control.model.units,h)},d.prototype.getViewUnit=function(h){return a.ModelUtils.getlUnitValue(this.control.settings.viewUnits,h)},d.prototype.getViewUnitText=function(h){return a.ModelUtils.getUnitText(this.control.settings.viewUnits,p.DiagramLocalizationService.unitItems,p.DiagramLocalizationService.formatUnit,h)},d.prototype.getViewUnitTwipsValue=function(h){return a.ModelUtils.getTwipsValue(this.control.settings.viewUnits,h)},d}(C.CommandBase);u.SimpleCommandBase=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramClipboardEvent=u.DiagramKeyboardEvent=u.DiagramContextMenuEvent=u.DiagramWheelEvent=u.DiagramMouseEvent=u.DiagramMouseEventBase=u.DiagramMouseEventTouch=u.DiagramFocusEvent=u.DiagramEvent=u.ResizeEventSource=u.MouseEventSource=u.MouseEventElementType=u.MouseButton=void 0;var y,C=o(25);(y=u.MouseButton||(u.MouseButton={}))[y.None=0]="None",y[y.Left=1]="Left",y[y.Right=2]="Right",y[y.Middle=4]="Middle",function(y){y[y.Undefined=0]="Undefined",y[y.Background=1]="Background",y[y.Document=2]="Document",y[y.Connector=3]="Connector",y[y.ConnectorPoint=4]="ConnectorPoint",y[y.ConnectorSide=5]="ConnectorSide",y[y.ConnectorOrthogonalSide=6]="ConnectorOrthogonalSide",y[y.ConnectorText=7]="ConnectorText",y[y.Shape=8]="Shape",y[y.ShapeResizeBox=9]="ShapeResizeBox",y[y.ShapeParameterBox=10]="ShapeParameterBox",y[y.SelectionRect=11]="SelectionRect",y[y.ShapeConnectionPoint=12]="ShapeConnectionPoint",y[y.ShapeExpandButton=13]="ShapeExpandButton"}(u.MouseEventElementType||(u.MouseEventElementType={}));u.MouseEventSource=function(y,E,S){this.type=y,this.key=E,this.value=S},function(y){y[y.Undefined=0]="Undefined",y[y.ResizeBox_NW=1]="ResizeBox_NW",y[y.ResizeBox_NE=2]="ResizeBox_NE",y[y.ResizeBox_SE=3]="ResizeBox_SE",y[y.ResizeBox_SW=4]="ResizeBox_SW",y[y.ResizeBox_N=5]="ResizeBox_N",y[y.ResizeBox_E=6]="ResizeBox_E",y[y.ResizeBox_S=7]="ResizeBox_S",y[y.ResizeBox_W=8]="ResizeBox_W"}(u.ResizeEventSource||(u.ResizeEventSource={}));var a=function(y){this.modifiers=y};u.DiagramEvent=a;var p=function(y){function E(S){var O=y.call(this,C.ModifierKey.None)||this;return O.inputText=S,O}return I(E,y),E}(a);u.DiagramFocusEvent=p;u.DiagramMouseEventTouch=function(y,E){this.offsetPoint=y,this.modelPoint=E};var l=function(y){function E(S,O,w,T){var k=y.call(this,S)||this;return k.offsetPoint=O,k.modelPoint=w,k.source=T,k}return I(E,y),E}(a);u.DiagramMouseEventBase=l;var d=function(y){function E(S,O,w,T,k,R,P){void 0===R&&(R=[]);var B=y.call(this,S,w,T,k)||this;return B.button=O,B.touches=R,B.isTouchMode=P,B.scrollX=0,B.scrollY=0,B}return I(E,y),E}(l);u.DiagramMouseEvent=d;var h=function(y){function E(S,O,w,T,k,R){var P=y.call(this,S,T,k,R)||this;return P.deltaX=O,P.deltaY=w,P}return I(E,y),E}(l);u.DiagramWheelEvent=h;var v=function(y){function E(S,O,w){var T=y.call(this,S)||this;return T.eventPoint=O,T.modelPoint=w,T}return I(E,y),E}(a);u.DiagramContextMenuEvent=v;var x=function(y){function E(S,O,w){var T=y.call(this,S)||this;return T.keyCode=O,T.inputText=w,T}return I(E,y),E.prototype.getShortcutCode=function(){return this.modifiers|this.keyCode},E}(a);u.DiagramKeyboardEvent=x;var b=function(y){function E(S){var O=y.call(this,C.ModifierKey.None)||this;return O.clipboardData=S,O}return I(E,y),E}(a);u.DiagramClipboardEvent=b},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return I.hundredthsOfMillimeterToTwipsRound=function(C){return Math.round(1440*C/2540)},I.documentsToTwips=function(C){return 24*C/5},I.pixelsToTwips=function(C){return Math.round(I.pixelsToTwipsF(C))},I.pixelsToTwipsCustomDpi=function(C,g){return Math.round(I.pixelsToTwipsFCustomDpi(C,g))},I.inchesToTwips=function(C){return Math.round(I.inchesToTwipsF(C))},I.pointsToTwips=function(C){return Math.round(I.pointsToTwipsF(C))},I.picasToTwips=function(C){return Math.round(1440*C/I.PICAS_PER_INCH)},I.centimetersToTwips=function(C){return Math.round(I.centimetersToTwipsF(C))},I.pixelsToTwipsF=function(C){return 1440*C/I.DPI},I.pixelsToTwipsFCustomDpi=function(C,g){return 1440*C/g},I.inchesToTwipsF=function(C){return 1440*C},I.pointsToTwipsF=function(C){return 20*C},I.centimetersToTwipsF=function(C){return 1440*C/I.CENTIMETERS_PER_INCH},I.twipsToDegrees=function(C){return C/6e4},I.twipsToRadians=function(C){return C/6e4*Math.PI/180},I.degreesToTwips=function(C){return 6e4*C},I.radiansToTwips=function(C){return 6e4*C/Math.PI*180},I.radiansToDegrees=function(C){return C/Math.PI*180},I.twipsToFD=function(C){return Math.round(2048*C/1875)},I.fdToTwips=function(C){return Math.round(1875*C/2048)},I.emuToTwips=function(C){return C/635},I.twipsToPixels=function(C){return Math.round(I.twipsToPixelsF(C))},I.inchesToPixels=function(C){return Math.round(I.DPI*C)},I.centimeterToPixel=function(C){return Math.round(this.centimeterToPixelF(C))},I.centimeterToPixelF=function(C){return C*I.DPI/I.CENTIMETERS_PER_INCH},I.millimetersToPixel=function(C){return Math.round(C/(I.CENTIMETERS_PER_INCH/I.DPI)/10)},I.pointsToPixels=function(C){return Math.round(C*I.DPI/72)},I.pointsToPixelsF=function(C){return C*I.DPI/72},I.twipsToPixelsF=function(C){return C*I.DPI/1440},I.pixelsToPoints=function(C){return Math.round(72*C/I.DPI)},I.pixelsToPointsF=function(C){return 72*C/I.DPI},I.twipsToPoints=function(C){return Math.round(this.twipsToPointsF(C))},I.twipsToPointsF=function(C){return C/20},I.twipsToInches=function(C){return C/1440},I.pixelsToInches=function(C){return C/I.DPI},I.twipsToCentimeters=function(C){return C*I.CENTIMETERS_PER_INCH/1440},I.pixelToCentimeters=function(C){return C*I.CENTIMETERS_PER_INCH/I.DPI},I.twipsToHundredthsOfMillimeter=function(C){return Math.round(127*C/72)},I.pixelsToHundredthsOfMillimeter=function(C){return Math.round(2540*C/I.DPI)},I.hundredthsOfMillimeterToTwips=function(C){return 15*C/127},I.twipsToEmu=function(C){return 635*C},I.twipsToDegree=function(C){return C/6e4},I.DPI=96,I.CENTIMETERS_PER_INCH=2.54,I.PICAS_PER_INCH=6,I}();u.UnitConverter=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c,d,I=o(163),C=o(164),g=o(106),a=o(0),p=o(2),s=function(){function d(h,v,x,b){this.x=h,this.y=v,this.width=x,this.height=b}return Object.defineProperty(d.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"center",{get:function(){return d.center(this)},enumerable:!0,configurable:!0}),d.prototype.createRectangle=function(){return new d(this.x,this.y,this.width,this.height)},d.prototype.createSize=function(){return new p.Size(this.width,this.height)},d.prototype.createPosition=function(){return new a.Point(this.x,this.y)},d.prototype.createVerticalInterval=function(){return new g.FixedInterval(this.y,this.height)},d.prototype.createHorizontalInterval=function(){return new g.FixedInterval(this.x,this.width)},d.fromGeometry=function(h,v){return new d(h.x,h.y,v.width,v.height)},d.fromPoints=function(h,v){return new d(Math.min(h.x,v.x),Math.min(h.y,v.y),Math.abs(h.x-v.x),Math.abs(h.y-v.y))},d.fromPositions=function(h,v,x,b){return new d(Math.min(h,x),Math.min(v,b),Math.abs(x-h),Math.abs(b-v))},d.fromCenter=function(h,v){return new d(h.x-v,h.y-v,2*v,2*v)},d.prototype.isCollapsed=function(){return 0===this.width||0===this.height},d.prototype.isEmpty=function(){return 0===this.x&&0===this.y&&0===this.width&&0===this.height},d.prototype.toString=function(){return JSON.stringify(this)},d.prototype.setPosition=function(h){return this.x=h.x,this.y=h.y,this},d.prototype.setSize=function(h){return this.width=h.width,this.height=h.height,this},d.prototype.setGeomerty=function(h){return this.x=h.x,this.y=h.y,this.width=h.width,this.height=h.height,this},d.prototype.moveRectangle=function(h,v){return this.x+=h,this.y+=v,this},d.prototype.moveRectangleByPoint=function(h){return this.x+=h.x,this.y+=h.y,this},d.prototype.resize=function(h,v){return this.width+=h,this.height+=v,this},d.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},d.prototype.multiply=function(h,v){return this.x*=h,this.y*=v,this.width*=h,this.height*=v,this},d.prototype.equals=function(h){return d.equals(this,h)},d.prototype.clone=function(){var h=new d(0,0,0,0);return h.copyFrom(this),h},d.prototype.copyFrom=function(h){this.x=h.x,this.y=h.y,this.width=h.width,this.height=h.height},d.prototype.containsPoint=function(h){return d.containsPoint(this,h)},d.prototype.containsRectangle=function(h){return this.x<=h.x&&this.right>=h.right&&this.y<=h.y&&this.bottom>=h.bottom},d.prototype.inflate=function(h,v){return void 0===v&&(v=h),this.x-=h,this.y-=v,this.width+=2*h,this.height+=2*v,this},d.prototype.applyOffsetsInside=function(h){return this.x+=h.left,this.y+=h.top,this.width-=h.left+h.right,this.height-=h.top+h.bottom,this},d.prototype.applyNormalizedOffsetsInside=function(h){var v=Math.max(0,h.left),x=v+Math.max(0,h.right);0!==x&&(x<=this.width?(this.x+=v,this.width-=x):(this.x+=this.width*(v/x),this.width=0));var b=Math.max(0,h.top),y=b+Math.max(0,h.bottom);return 0!==y&&(y<=this.height?(this.y+=b,this.height-=y):(this.y+=this.height*(b/y),this.height=0)),this},d.prototype.applyOffsetsOutside=function(h){return this.x-=h.left,this.y-=h.top,this.width+=h.left+h.right,this.height+=h.top+h.bottom,this},d.prototype.applyConverter=function(h){return this.x=h(this.x),this.y=h(this.y),this.width=h(this.width),this.height=h(this.height),this},d.getHorizIntersection=function(h,v){return C.IntervalAlgorithms.getIntersection(new g.FixedInterval(h.x,h.width),new g.FixedInterval(v.x,v.width))},d.getVertIntersection=function(h,v){return C.IntervalAlgorithms.getIntersection(new g.FixedInterval(h.y,h.height),new g.FixedInterval(v.y,v.height))},d.getIntersection=function(h,v){var x=C.IntervalAlgorithms.getIntersection(new g.FixedInterval(h.x,h.width),new g.FixedInterval(v.x,v.width));if(!x)return null;var b=C.IntervalAlgorithms.getIntersection(new g.FixedInterval(h.y,h.height),new g.FixedInterval(v.y,v.height));return b?new d(x.start,b.start,x.length,b.length):null},d.getHorNonCollapsedIntersection=function(h,v){var x=d.getHorizIntersection(h,v);return x&&!x.isCollapsed()?x:null},d.getVertNonCollapsedIntersection=function(h,v){var x=d.getVertIntersection(h,v);return x&&!x.isCollapsed()?x:null},d.getNonCollapsedIntersection=function(h,v){var x=d.getIntersection(h,v);return x&&!x.isCollapsed()?x:null},d.areIntersected=function(h,v){return!(h.x>v.x+v.width||v.x>h.x+h.width||h.y>v.y+v.height||v.y>h.y+h.height)},d.union=function(h,v){var x=Math.max(h.x+h.width,v.x+v.width),b=Math.max(h.y+h.height,v.y+v.height),y=Math.min(h.x,v.x),E=Math.min(h.y,v.y);return new d(y,E,x-y,b-E)},d.equals=function(h,v){return h.x===v.x&&h.y===v.y&&h.width===v.width&&h.height===v.height},d.center=function(h){return new a.Point(h.x+h.width/2,h.y+h.height/2)},d.containsPoint=function(h,v){return v.y>=h.y&&h.y+h.height>=v.y&&v.x>=h.x&&h.x+h.width>=v.x},d}();u.Rectangle=s,(d=c=u.HitTestDeviation||(u.HitTestDeviation={}))[d.None=0]="None",d[d.Top=1]="Top",d[d.Bottom=2]="Bottom",d[d.Left=4]="Left",d[d.Right=8]="Right";var l=function(){function d(h,v){this.initRectangle=h,this.initPoint=v,this.deviation=new I.Flag(c.None)}return d.prototype.calcDeviation=function(){return this.initPoint.x<this.initRectangle.x?this.deviation.set(c.Left,!0):this.initPoint.x>this.initRectangle.right&&this.deviation.set(c.Right,!0),this.initPoint.y<this.initRectangle.y?this.deviation.set(c.Top,!0):this.initPoint.y>this.initRectangle.bottom&&this.deviation.set(c.Bottom,!0),this},d.prototype.calcAdditionalParams=function(){return this.insidePoint=this.initPoint.clone(),this.offsetToInside=new a.Point(0,0),this.deviation.get(c.Left)?(this.insidePoint.x=this.initRectangle.x,this.offsetToInside.x=this.insidePoint.x-this.initPoint.x):this.deviation.get(c.Right)&&(this.insidePoint.x=this.initRectangle.right,this.offsetToInside.x=this.initPoint.x-this.insidePoint.x),this.deviation.get(c.Top)?(this.insidePoint.y=this.initRectangle.y,this.offsetToInside.y=this.insidePoint.y-this.initPoint.y):this.deviation.get(c.Bottom)&&(this.insidePoint.y=this.initRectangle.bottom,this.offsetToInside.y=this.initPoint.y-this.insidePoint.y),this},d}();u.RectangleDeviation=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.Shape=void 0;var C=o(13),g=o(7),a=o(37),p=o(9),s=o(45),l=o(51),d=o(84),h=function(v){function x(b,y,E){var S=v.call(this)||this;if(S.description=b,S.children=[],S.expanded=!0,S.expandedSize=void 0,!b)throw Error("Shape type is incorrect");return S.position=y.clone(),S.size=(E?b.toolboxSize:b.defaultSize).clone(),S.text=b.getDefaultText(),S.image=new l.ImageInfo(b.getDefaultImageUrl()),S.parameters=new a.ShapeParameters,b.createParameters(S.parameters),S}return I(x,v),x.prototype.assign=function(b){v.prototype.assign.call(this,b),b.size=this.size.clone(),b.text=this.text,b.image=this.image.clone(),b.parameters=this.parameters.clone(),b.children=this.children.slice(),b.expanded=this.expanded,this.expandedSize&&(b.expandedSize=this.expandedSize.clone())},x.prototype.clone=function(){var b=new x(this.description,this.position.clone());return this.assign(b),b},Object.defineProperty(x.prototype,"enableText",{get:function(){return this.description.enableText},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowEditText",{get:function(){return this.description.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"hasTemplate",{get:function(){return this.description.hasTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"enableChildren",{get:function(){return this.description.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"enableImage",{get:function(){return this.description.enableImage},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowEditImage",{get:function(){return this.description.allowEditImage},enumerable:!1,configurable:!0}),x.prototype.getMinWidth=function(b){return"number"==typeof this.description.minWidth?this.description.minWidth:"number"==typeof b?b:g.ShapeMinDimension},x.prototype.getMinHeight=function(b){return"number"==typeof this.description.minHeight?this.description.minHeight:"number"==typeof b?b:g.ShapeMinDimension},x.prototype.getMaxWidth=function(b){return"number"==typeof this.description.maxWidth?this.description.maxWidth:"number"==typeof b?b:void 0},x.prototype.getMaxHeight=function(b){return"number"==typeof this.description.maxHeight?this.description.maxHeight:"number"==typeof b?b:void 0},x.prototype.createPrimitives=function(){return this.description.createPrimitives(this)},x.prototype.createSelectorPrimitives=function(){return this.description.createSelectorPrimitives(this)},x.prototype.normalizeX=function(b){return Math.max(this.position.x,Math.min(b,this.position.x+this.size.width))},x.prototype.normalizeY=function(b){return Math.max(this.position.y,Math.min(b,this.position.y+this.size.height))},x.prototype.getConnectionPoints=function(){var b=this;return this.description.getConnectionPoints().map(function(y){var E=new s.ConnectionPoint(b.position.x+y.x*b.size.width,b.position.y+y.y*b.size.height,y.side);return b.description.processConnectionPoint(b,E),E})},x.prototype.getConnectionPointSide=function(b,y){return b.side!==p.ConnectionPointSide.Undefined?b.side:this.getConnectionPointSideByGeometry(b)},x.prototype.getConnectionPointSideByGeometry=function(b){var y=b.clone().offset(-this.position.x,-this.position.y).multiply(1/this.size.width,1/this.size.height);return g.ShapeDescription.getConnectionPointSideByGeometry(y)},x.prototype.getConnectionPointIndexForItem=function(b,y){return this.description.getConnectionPointIndexForItem(b,y)},x.prototype.getConnectionPointIndexForSide=function(b){return this.description.getConnectionPointIndexForSide(b)},x.prototype.toggleExpandedSize=function(){this.expanded?(this.size=this.getExpandedSize(),this.expandedSize=void 0):(this.expandedSize=this.size.clone(),this.size=this.getCollapsedSize())},x.prototype.getExpandedSize=function(){return this.description.getExpandedSize(this)},x.prototype.getCollapsedSize=function(){return this.description.getCollapsedSize(this)},x.prototype.getToolboxHeightToWidthRatio=function(){return this.description.getToolboxHeightToWidthRatio(this.size.width,this.size.height)},Object.defineProperty(x.prototype,"allowResizeHorizontally",{get:function(){return this.description.allowResizeHorizontally(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"allowResizeVertically",{get:function(){return this.description.allowResizeVertically(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rectangle",{get:function(){return C.Rectangle.fromGeometry(this.position,this.size)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"clientRectangle",{get:function(){return this.description.getClientRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textRectangle",{get:function(){return this.description.getTextRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textEditRectangle",{get:function(){return this.description.getTextEditRectangle(this)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"textAngle",{get:function(){return this.description.getTextAngle()},enumerable:!1,configurable:!0}),x.prototype.toNative=function(b){var y=new d.NativeShape(this.key,this.dataKey);return y.type=this.description.key,y.text=this.text,y.position=this.position.clone(),y.size=this.size.clone(),y.attachedConnectorIds=this.attachedConnectors.map(function(E){return E.key}),y.applyUnits(b),y.containerId=this.container?this.container.key:null,y.containerChildItemIds=this.children.map(function(E){return E.key}),y.containerExpanded=this.expanded,y},x}(p.DiagramItem);u.Shape=h},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RenderHelper=u.svgNS=void 0;var c=o(61);u.svgNS="http://www.w3.org/2000/svg";var I=function(){function C(){}return C.createSvgElement=function(g,a){void 0===a&&(a=!1);var p=document.createElementNS(u.svgNS,"svg");return p.className.baseVal="dxdi-canvas"+(a?" export":""),g&&g.appendChild(p),p},C.createMainElement=function(g,a){void 0===a&&(a=!1);var p=document.createElement("div");return p.setAttribute("class","dxdi-control"+(a?" measurer":"")),c.Diagnostics.optimizeLayers&&(p.style.transform="translateZ(0)"),g&&g.appendChild(p),p},C.addEventListener=function(g,a,p){g.addEventListener(a,p)},C.removeEventListener=function(g,a,p){g.removeEventListener(a,p)},C}();u.RenderHelper=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramModelOperation=u.ModelOperationSettings=void 0;var I,c=function(){function I(){this._addShape=!0,this._addShapeFromToolbox=!0,this._deleteShape=!0,this._deleteConnector=!0,this._changeConnection=!0,this._changeConnectorPoints=!0,this._changeShapeText=!0,this._changeConnectorText=!0,this._resizeShape=!0,this._moveShape=!0}return Object.defineProperty(I.prototype,"addShape",{get:function(){return this._addShape},set:function(C){C!==this._addShape&&(this._addShape=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"addShapeFromToolbox",{get:function(){return this._addShapeFromToolbox},set:function(C){C!==this._addShapeFromToolbox&&(this._addShapeFromToolbox=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"deleteShape",{get:function(){return this._deleteShape},set:function(C){C!==this._deleteShape&&(this._deleteShape=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"deleteConnector",{get:function(){return this._deleteConnector},set:function(C){C!==this._deleteConnector&&(this._deleteConnector=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeConnection",{get:function(){return this._changeConnection},set:function(C){C!==this._changeConnection&&(this._changeConnection=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeConnectorPoints",{get:function(){return this._changeConnectorPoints},set:function(C){C!==this._changeConnectorPoints&&(this._changeConnectorPoints=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeShapeText",{get:function(){return this._changeShapeText},set:function(C){C!==this._changeShapeText&&(this._changeShapeText=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"changeConnectorText",{get:function(){return this._changeConnectorText},set:function(C){C!==this._changeConnectorText&&(this._changeConnectorText=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"resizeShape",{get:function(){return this._resizeShape},set:function(C){C!==this._resizeShape&&(this._resizeShape=C)},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"moveShape",{get:function(){return this._moveShape},set:function(C){C!==this._moveShape&&(this._moveShape=C)},enumerable:!1,configurable:!0}),I.prototype.applySettings=function(C){C&&("boolean"==typeof C.addShape&&(this.addShape=C.addShape),"boolean"==typeof C.addShapeFromToolbox&&(this.addShapeFromToolbox=C.addShapeFromToolbox),"boolean"==typeof C.deleteShape&&(this.deleteShape=C.deleteShape),"boolean"==typeof C.deleteConnector&&(this.deleteConnector=C.deleteConnector),"boolean"==typeof C.changeConnection&&(this.changeConnection=C.changeConnection),"boolean"==typeof C.changeConnectorPoints&&(this.changeConnectorPoints=C.changeConnectorPoints),"boolean"==typeof C.changeShapeText&&(this.changeShapeText=C.changeShapeText),"boolean"==typeof C.changeConnectorText&&(this.changeConnectorText=C.changeConnectorText),"boolean"==typeof C.resizeShape&&(this.resizeShape=C.resizeShape),"boolean"==typeof C.moveShape&&(this.moveShape=C.moveShape))},I}();u.ModelOperationSettings=c,(I=u.DiagramModelOperation||(u.DiagramModelOperation={}))[I.AddShape=0]="AddShape",I[I.AddShapeFromToolbox=1]="AddShapeFromToolbox",I[I.DeleteShape=2]="DeleteShape",I[I.DeleteConnector=3]="DeleteConnector",I[I.ChangeConnection=4]="ChangeConnection",I[I.ChangeConnectorPoints=5]="ChangeConnectorPoints",I[I.BeforeChangeShapeText=6]="BeforeChangeShapeText",I[I.ChangeShapeText=7]="ChangeShapeText",I[I.BeforeChangeConnectorText=8]="BeforeChangeConnectorText",I[I.ChangeConnectorText=9]="ChangeConnectorText",I[I.ResizeShape=10]="ResizeShape",I[I.MoveShape=11]="MoveShape"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.raiseEvent=u.RenderUtils=void 0;var c=o(11),I=o(31),C=function(){function g(){}return g.updateSvgElementSize=function(a,p,s,l){a.style.width=p+"px",a.style.height=s+"px",a.setAttribute("viewBox","0 0 "+p+" "+s),l&&(a.setAttribute("width",p.toString()),a.setAttribute("height",s.toString()))},g.removeElement=function(a){a&&a.parentNode&&a.parentNode.removeChild(a)},g.removeContent=function(a){for(;a&&a.firstChild;)a.removeChild(a.firstChild)},g.setElementEventData=function(a,p,s,l){p!==c.MouseEventElementType.Undefined&&(a.setAttribute("data-type",p.toString()),void 0!==s&&a.setAttribute("data-key",s.toString()),void 0!==l&&a.setAttribute("data-value",l.toString()))},g.getElementEventData=function(a){if(a.getAttribute&&a.getAttribute("data-type"))return new c.MouseEventSource(parseInt(a.getAttribute("data-type")),a.getAttribute("data-key"),a.getAttribute("data-value"));var p=a.getAttribute&&a.getAttribute("class");return"dxdi-page"===p||"dxdi-main"===p?new c.MouseEventSource(c.MouseEventElementType.Document):void 0},g.getHtmlElementStylePropertyName=function(a){switch(a){case"fill":return"color";case"text-anchor":return"text-align"}return a},g.getTextAnchorValue=function(a,p){if(void 0===p&&(p=!1),p){if("start"===a)return"end";if("end"===a)return"start"}return a},g.getStrokeDasharrayValue=function(a,p){if(p){var s=a&&a.toString();return(s?s.split(/[\s,]+/):[]).map(function(l){return parseInt(l)/2*p}).join(",")}return a},g.applyStyleToElement=function(a,p,s){var l=this;void 0===s&&(s=!1);var d=a.getDefaultInstance();a.forEach(function(h){var v=a[h],x=p instanceof HTMLElement?l.getHtmlElementStylePropertyName(h):h;if(void 0!==v&&""!==v&&v!==d[h]){switch(h){case"text-anchor":v=l.getTextAnchorValue(v,s);break;case"stroke-dasharray":v=l.getStrokeDasharrayValue(v,parseInt(a["stroke-width"]))}p.style.setProperty(x,v)}else p.style.setProperty(x,"")})},g.generateSvgElementId=function(a){return a+"_"+I.MathUtils.generateGuid()},g.getUrlPathById=function(a){return"url(#"+a+")"},g}();u.RenderUtils=C,u.raiseEvent=function(g,a,p){p(a),a.preventDefault&&g.preventDefault()}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return I.IdentUserAgent=function(C,g){void 0===g&&(g=!1);var a=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],p={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(C&&0!==C.length){C=C.toLowerCase(),I.indentPlatformMajorVersion(C);try{for(var s={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},l="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",d={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+l,Mozilla:"mozilla(?:.*rv:"+l+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+l,Firefox:"firefox(?:/|\\s*)?"+l,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+l,Opera10:"opera.*\\s*version(?:/|\\s*)?"+l,IE:"msie\\s*"+l,Edge:"edge(?:/|\\s*)?"+l},h=null,v=-1,x=0;x<a.length;x++){var b=a[x],y=new RegExp(d[b],"i").exec(C);if(y&&y.index>=0){if("IE"===h&&v>=11&&"Safari"===b)continue;"Opera10"===(h=b)&&(h="Opera"),v=I.GetBrowserVersion(C,y,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",I.getIECompatibleVersionString()),"Mozilla"===h&&v>=11&&(h="IE")}}h||(h="IE");var E=-1!==v;E||(v=p[h]);var S=null,O=Number.MAX_VALUE;for(var w in s)if(Object.prototype.hasOwnProperty.call(s,w)){var T="!"===w.substr(0,1),k=C.indexOf((T?w.substr(1):w).toLowerCase());k>=0&&(k<O||T)&&(O=T?0:k,S=s[w])}var R=C.toUpperCase().match("SM-[A-Z]"),P=R&&R.length>0;"WinPhone"===S&&v<9&&(v=Math.floor(I.getVersionFromTrident(C,"trident(?:/|\\s*)?"+l))),!g&&"IE"===h&&v>7&&document.documentMode<v&&(v=document.documentMode),"WinPhone"===S&&(v=Math.max(9,v)),S||(S="Win"),S!==s["cpu os"]||E||(v=4),I.fillUserAgentInfo(a,h,v,S,P)}catch{I.fillUserAgentInfo(a,"IE",p.IE,"Win")}}else I.fillUserAgentInfo(a,"IE",p.IE,"Win")},I.GetBrowserVersion=function(C,g,a,p){var s=I.getVersionFromMatches(g);if(p){var l=I.getVersionFromTrident(C,a);if("edge"===p||parseInt(p)===l)return l}return s},I.getIECompatibleVersionString=function(){if(document.compatible)for(var C=0;C<document.compatible.length;C++)if("IE"===document.compatible[C].userAgent&&document.compatible[C].version)return document.compatible[C].version.toLowerCase();return""},I.isTouchEnabled=function(){return I.hasTouchStart()||I.hasMaxTouchPoints()||I.hasMsMaxTouchPoints()},I.hasTouchStart=function(){return"ontouchstart"in window},I.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},I.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},I.hasNavigator=function(){return typeof navigator<"u"},I.fillUserAgentInfo=function(C,g,a,p,s){void 0===s&&(s=!1);for(var l=0;l<C.length;l++){var d=C[l];I[d]=d===g}I.Version=Math.floor(10*a)/10,I.MajorVersion=Math.floor(I.Version),I.WindowsPlatform="Win"===p||"WinPhone"===p,I.MacOSMobilePlatform="MacMobile"===p||"Mac"===p&&I.isTouchEnabled(),I.MacOSPlatform="Mac"===p&&!I.MacOSMobilePlatform,I.AndroidMobilePlatform="Android"===p,I.WindowsPhonePlatform="WinPhone"===p,I.WebKitFamily=I.Safari||I.Chrome||I.Opera&&I.MajorVersion>=15,I.NetscapeFamily=I.Netscape||I.Mozilla||I.Firefox,I.WebKitTouchUI=I.MacOSMobilePlatform||I.AndroidMobilePlatform;var h=I.IE&&I.MajorVersion>9&&I.WindowsPlatform&&I.UserAgent.toLowerCase().indexOf("touch")>=0;if(I.MSTouchUI=h||I.Edge&&!!window.navigator.maxTouchPoints,I.TouchUI=I.WebKitTouchUI||I.MSTouchUI,I.MobileUI=I.WebKitTouchUI||I.WindowsPhonePlatform,I.AndroidDefaultBrowser=I.AndroidMobilePlatform&&!I.Chrome,I.AndroidChromeBrowser=I.AndroidMobilePlatform&&I.Chrome,s&&(I.SamsungAndroidDevice=s),I.MSTouchUI){var v=I.UserAgent.toLowerCase().indexOf("arm;")>-1;I.VirtualKeyboardSupported=v||I.WindowsPhonePlatform}else I.VirtualKeyboardSupported=I.WebKitTouchUI;I.fillDocumentElementBrowserTypeClassNames(C)},I.indentPlatformMajorVersion=function(C){var g=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(C);g&&(I.PlaformMajorVersion=g[1])},I.getVersionFromMatches=function(C){var g=-1,a="";return C&&(C[1]&&(a+=C[1],C[2]&&(a+="."+C[2])),""!==a&&(g=parseFloat(a),isNaN(g)&&(g=-1))),g},I.getVersionFromTrident=function(C,g){var a=new RegExp(g,"i").exec(C);return I.getVersionFromMatches(a)+4},I.fillDocumentElementBrowserTypeClassNames=function(C){for(var g="",a=C.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),p=0;p<a.length;p++){var s=a[p];I[s]&&(g+="dx"+s+" ")}g+="dxBrowserVersion-"+I.MajorVersion,typeof document<"u"&&document&&document.documentElement&&(""!==document.documentElement.className&&(g=" "+g),document.documentElement.className+=g,I.Info=g)},I.getUserAgent=function(){return I.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},I.UserAgent=I.getUserAgent(),I._foo=I.IdentUserAgent(I.UserAgent),I}();u.Browser=c},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.RectangleShapeDescription=void 0;var C=o(7),g=o(2),a=o(21),p=o(1),s=function(l){function d(h,v){return void 0===h&&(h=new g.Size(C.ShapeDefaultDimension,.75*C.ShapeDefaultDimension)),l.call(this,h,v)||this}return I(d,l),Object.defineProperty(d.prototype,"key",{get:function(){return p.ShapeTypes.Rectangle},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){var v=h.rectangle;return[new a.RectanglePrimitive(v.x,v.y,v.width,v.height,h.style)]},d.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},d.prototype.getSizeByText=function(h,v){return h.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},d}(C.ShapeDescription);u.RectangleShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.Alignment=u.DataLayoutOrientation=u.LogicalDirectionKind=u.TreeLayoutSettings=u.LayoutSettings=void 0;var C=o(6),g=function(d){this.orientation=p.Vertical,this.direction=a.Forward;var h=d&&2*d>C.Connector.minOffset?2*d:C.Connector.minOffset;this.columnSpacing=h,this.layerSpacing=2*h,this.containerPadding=2*h,this.componentSpacing=2*h};u.LayoutSettings=g;var a,p,s,d,l=function(d){function h(v){var x=d.call(this,v)||this;return x.alignment=s.Center,x.subTreeColumnSpacing=x.componentSpacing/2,x}return I(h,d),h}(g);u.TreeLayoutSettings=l,(d=a=u.LogicalDirectionKind||(u.LogicalDirectionKind={}))[d.Backward=0]="Backward",d[d.Forward=1]="Forward",function(d){d[d.Horizontal=0]="Horizontal",d[d.Vertical=1]="Vertical"}(p=u.DataLayoutOrientation||(u.DataLayoutOrientation={})),function(d){d[d.Left=0]="Left",d[d.Center=1]="Center"}(s=u.Alignment||(u.Alignment={}))},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.RectanglePrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x,b,y){var E=a.call(this,v,x,b,y)||this;return E.x=s,E.y=l,E.width=d,E.height=h,E}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"rect")},p.prototype.applyElementProperties=function(s,l){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,l)},p}(o(24).SvgPrimitive);u.RectanglePrimitive=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(49),I=function(){function C(){}return C.getAlpha=function(g){return g>>24&255},C.getRed=function(g){return g>>16&255},C.getGreen=function(g){return g>>8&255},C.getBlue=function(g){return 255&g},C.redPartToString=function(g){var a=C.getRed(g).toString(16);return a.length>1?a:"0"+a},C.greenPartToString=function(g){var a=C.getGreen(g).toString(16);return a.length>1?a:"0"+a},C.bluePartToString=function(g){var a=C.getBlue(g).toString(16);return a.length>1?a:"0"+a},C.fromArgbNumber=function(g,a,p,s){return g<<24|a<<16|p<<8|s},C.fromRgbaString=function(g,a){void 0===a&&(a=255);var p=g.replace(/ +/g,"").match(/(rgba?)|(\d+(\.\d+)?%?)|(\.\d+)/g);if(p&&p.length>3){for(var s=[],l=1,d=void 0;d=p[l];l++){var h=-1!==d.indexOf("%")?Math.round(2.55*parseFloat(d)):parseInt(d);if(h<0||h>255)return null;s.push(h)}if(0===g.indexOf("rgba")){if(isNaN(s[3])||s[3]<0||s[3]>1)return null;s[3]<=1&&(s[3]=Math.round(255*s[3]))}else if(s[3])return null;return(255&s[0])<<16|(255&s[1])<<8|255&s[2]|(255&(s.length>3?s[3]:a))<<24}return null},C.fromHashString=function(g,a){return void 0===a&&(a=255),C.isHashColorString(g)?("#"===g.charAt(0)&&(g=g.substr(1)),3===g.length&&(g=c.StringUtils.repeat(g.charAt(0),2)+c.StringUtils.repeat(g.charAt(1),2)+c.StringUtils.repeat(g.charAt(2),2)),parseInt(g,16)|a<<24):null},C.fromColorName=function(g,a){void 0===a&&(a=255);var p=C.colorNames[g.toLowerCase()];return p?C.fromHashString(p,a):null},C.fromString=function(g,a){void 0===a&&(a=255);var p=C.fromRgbaString(g,a);if(null!==p)return p;var s=C.fromHashString(g,a);return null!==s?s:C.fromColorName(g,a)},C.colorToHash=function(g){return"#"+C.redPartToString(g)+C.greenPartToString(g)+C.bluePartToString(g)},C.stringToHash=function(g){var a=this.fromString(g);return null!==a?this.colorToHash(a):null},C.isHashColorString=function(g){return/^#?([0-9a-f]{6})$/i.test(g)||/^#?([0-9a-f]{3})$/i.test(g)},C.isKnownColorName=function(g){return!!C.colorNames[g.toLowerCase()]},C.isGray=function(g){var a=C.getRed(g);return a===C.getGreen(g)&&a===C.getBlue(g)},C.DARK_COLOR=-16777216,C.LIGHT_COLOR=-1,C.colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#00ff00",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",windowtext:"#000000"},C}();u.ColorUtils=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PermissionRequestEventArgs=u.RequestedEntity=void 0;var c=function(){function C(g){this.apiController=g}return Object.defineProperty(C.prototype,"allowed",{get:function(){return this.eventArgs.allowed},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"updateUI",{get:function(){return this.eventArgs.updateUI},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"eventArgs",{get:function(){return this._eventArgs||(this._eventArgs=this.createEventArgs()),this._eventArgs},enumerable:!1,configurable:!0}),C}();u.RequestedEntity=c,u.PermissionRequestEventArgs=function(){this.allowed=!0,this.updateUI=!1}},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.SvgPrimitive=void 0;var C=o(17),g=function(a){function p(s,l,d,h){var v=a.call(this,s)||this;return v.className=l,v.clipPathId=d,v.onApplyProperties=h,v.children=[],v}return I(p,a),p.prototype.createElement=function(s){var l=this.createMainElement();return this.createChildElements(l),s(l),this.createCustomContent(l),l},p.prototype.createChildElements=function(s){for(var l=0;l<this.children.length;l++)this.children[l].createElement(function(d){return s.appendChild(d)})},p.prototype.applyElementProperties=function(s,l){this.applyElementStyleProperties(s),this.className&&s.setAttribute("class",this.className),"string"==typeof this.clipPathId&&(this.clipPathId?s.setAttribute("clip-path",C.RenderUtils.getUrlPathById(this.clipPathId)):s.removeAttribute("clip-path")),this.onApplyProperties&&this.onApplyProperties(s),this.applyChildrenProperties(s,l)},p.prototype.applyChildrenProperties=function(s,l){for(var d=0;d<this.children.length;d++)this.children[d].applyElementProperties(s.childNodes[d],l)},p.prototype.applyElementStyleProperties=function(s){this.applyElementStylePropertiesCore(s)},p.prototype.applyElementStylePropertiesCore=function(s,l){void 0===l&&(l=!1),this.style&&C.RenderUtils.applyStyleToElement(this.style,s,l)},p.prototype.createCustomContent=function(s){},p.prototype.destroyCustomContent=function(s){},p.prototype.dispose=function(){this.children&&this.children.forEach(function(s){return s.dispose()})},p}(o(109).PrimitiveObject);u.SvgPrimitive=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c,I,s,C=o(18),g=o(173),a=o(49),p=function(){function s(){}return s.getKeyModifiers=function(l){var d=0;return l.altKey&&(d|=c.Alt),l.ctrlKey&&(d|=c.Ctrl),l.shiftKey&&(d|=c.Shift),l.metaKey&&(d|=c.Meta),d},s.getShortcutCode=function(l,d,h,v,x){var b=l;return b|=d?c.Ctrl:0,b|=h?c.Shift:0,(b|=v?c.Alt:0)|(x?c.Meta:0)},s.getShortcutCodeByEvent=function(l){return s.getShortcutCode(s.getEventKeyCode(l),l.ctrlKey,l.shiftKey,l.altKey,!!C.Browser.MacOSPlatform&&l.metaKey)},s.getEventKeyCode=function(l){return C.Browser.NetscapeFamily||C.Browser.Opera?l.which:l.keyCode},s.parseShortcutString=function(l){if(!l)return 0;var d=!1,h=!1,v=!1,x=!1,b=null,y=l.toString().split("+");if(y.length>0)for(var E=0;E<y.length;E++){var S=a.StringUtils.trim(y[E].toUpperCase());switch(S){case"CONTROL":case"CONTROLKEY":case"CTRL":d=!0;break;case"SHIFT":case"SHIFTKEY":h=!0;break;case"ALT":v=!0;break;case"CMD":x=!0;break;case"F1":b=I.F1;break;case"F2":b=I.F2;break;case"F3":b=I.F3;break;case"F4":b=I.F4;break;case"F5":b=I.F5;break;case"F6":b=I.F6;break;case"F7":b=I.F7;break;case"F8":b=I.F8;break;case"F9":b=I.F9;break;case"F10":b=I.F10;break;case"F11":b=I.F11;break;case"F12":b=I.F12;break;case"RETURN":case"ENTER":b=I.Enter;break;case"HOME":b=I.Home;break;case"END":b=I.End;break;case"LEFT":b=I.Left;break;case"RIGHT":b=I.Right;break;case"UP":b=I.Up;break;case"DOWN":b=I.Down;break;case"PAGEUP":b=I.PageUp;break;case"PAGEDOWN":b=I.PageDown;break;case"SPACE":b=I.Space;break;case"TAB":b=I.Tab;break;case"BACKSPACE":case"BACK":b=I.Backspace;break;case"CONTEXT":b=I.ContextMenu;break;case"ESCAPE":case"ESC":b=I.Esc;break;case"DELETE":case"DEL":b=I.Delete;break;case"INSERT":case"INS":b=I.Insert;break;case"PLUS":b="+".charCodeAt(0);break;default:b=S.charCodeAt(0)}}else alert(g.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return s.getShortcutCode(b,d,h,v,x)},s}();u.KeyUtils=p,(s=c=u.ModifierKey||(u.ModifierKey={}))[s.None=0]="None",s[s.Ctrl=65536]="Ctrl",s[s.Shift=262144]="Shift",s[s.Alt=1048576]="Alt",s[s.Meta=16777216]="Meta",function(s){s[s.Backspace=8]="Backspace",s[s.Tab=9]="Tab",s[s.Enter=13]="Enter",s[s.Pause=19]="Pause",s[s.CapsLock=20]="CapsLock",s[s.Esc=27]="Esc",s[s.Space=32]="Space",s[s.PageUp=33]="PageUp",s[s.PageDown=34]="PageDown",s[s.End=35]="End",s[s.Home=36]="Home",s[s.Left=37]="Left",s[s.Up=38]="Up",s[s.Right=39]="Right",s[s.Down=40]="Down",s[s.Insert=45]="Insert",s[s.Delete=46]="Delete",s[s.Key_0=48]="Key_0",s[s.Key_1=49]="Key_1",s[s.Key_2=50]="Key_2",s[s.Key_3=51]="Key_3",s[s.Key_4=52]="Key_4",s[s.Key_5=53]="Key_5",s[s.Key_6=54]="Key_6",s[s.Key_7=55]="Key_7",s[s.Key_8=56]="Key_8",s[s.Key_9=57]="Key_9",s[s.Key_a=65]="Key_a",s[s.Key_b=66]="Key_b",s[s.Key_c=67]="Key_c",s[s.Key_d=68]="Key_d",s[s.Key_e=69]="Key_e",s[s.Key_f=70]="Key_f",s[s.Key_g=71]="Key_g",s[s.Key_h=72]="Key_h",s[s.Key_i=73]="Key_i",s[s.Key_j=74]="Key_j",s[s.Key_k=75]="Key_k",s[s.Key_l=76]="Key_l",s[s.Key_m=77]="Key_m",s[s.Key_n=78]="Key_n",s[s.Key_o=79]="Key_o",s[s.Key_p=80]="Key_p",s[s.Key_q=81]="Key_q",s[s.Key_r=82]="Key_r",s[s.Key_s=83]="Key_s",s[s.Key_t=84]="Key_t",s[s.Key_u=85]="Key_u",s[s.Key_v=86]="Key_v",s[s.Key_w=87]="Key_w",s[s.Key_x=88]="Key_x",s[s.Key_y=89]="Key_y",s[s.Key_z=90]="Key_z",s[s.Windows=91]="Windows",s[s.ContextMenu=93]="ContextMenu",s[s.Numpad_0=96]="Numpad_0",s[s.Numpad_1=97]="Numpad_1",s[s.Numpad_2=98]="Numpad_2",s[s.Numpad_3=99]="Numpad_3",s[s.Numpad_4=100]="Numpad_4",s[s.Numpad_5=101]="Numpad_5",s[s.Numpad_6=102]="Numpad_6",s[s.Numpad_7=103]="Numpad_7",s[s.Numpad_8=104]="Numpad_8",s[s.Numpad_9=105]="Numpad_9",s[s.Multiply=106]="Multiply",s[s.Add=107]="Add",s[s.Subtract=109]="Subtract",s[s.Decimal=110]="Decimal",s[s.Divide=111]="Divide",s[s.F1=112]="F1",s[s.F2=113]="F2",s[s.F3=114]="F3",s[s.F4=115]="F4",s[s.F5=116]="F5",s[s.F6=117]="F6",s[s.F7=118]="F7",s[s.F8=119]="F8",s[s.F9=120]="F9",s[s.F10=121]="F10",s[s.F11=122]="F11",s[s.F12=123]="F12",s[s.NumLock=144]="NumLock",s[s.ScrollLock=145]="ScrollLock",s[s.Semicolon=186]="Semicolon",s[s.Equals=187]="Equals",s[s.Comma=188]="Comma",s[s.Dash=189]="Dash",s[s.Period=190]="Period",s[s.ForwardSlash=191]="ForwardSlash",s[s.GraveAccent=192]="GraveAccent",s[s.OpenBracket=219]="OpenBracket",s[s.BackSlash=220]="BackSlash",s[s.CloseBracket=221]="CloseBracket",s[s.SingleQuote=222]="SingleQuote"}(I=u.KeyCode||(u.KeyCode={}))},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(u,"__esModule",{value:!0}),u.EmptyStyle=u.StrokeStyle=u.TextAlignment=u.TextStyle=u.Style=u.DEFAULT_STROKE_DASHARRAY=u.DEFAULT_STROKE_WIDTH=u.StyleBase=void 0;var C=o(22),g=o(110),a=o(12),p=function(){function x(){this.createDefaultProperties()}return x.prototype.clone=function(){var b=this,y=this.createInstance();return this.forEach(function(E){y[E]=b[E]}),y},x.prototype.forEach=function(b){for(var y in this)Object.prototype.hasOwnProperty.call(this,y)&&b(y)},Object.defineProperty(x.prototype,"strokeWidthPx",{get:function(){return 0},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeWidth",{get:function(){return a.UnitConverter.pixelsToTwips(this.strokeWidthPx)},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"strokeOffset",{get:function(){return.5},enumerable:!1,configurable:!0}),x.prototype.toHash=function(){var b=this.toObject();return b?Object.keys(b).map(function(y){return y+"|"+b[y]}).join(""):""},x.prototype.toObject=function(){var b=this,y={},E=!1,S=this.getDefaultInstance();return this.forEach(function(O){b[O]!==S[O]&&(y[O]=b[O],E=!0)}),E?y:null},x.prototype.fromObject=function(b){for(var y in b)if(Object.prototype.hasOwnProperty.call(b,y)){var E=g.isColorProperty(y)?C.ColorUtils.stringToHash(b[y]):b[y];this[y]=E}},x}();u.StyleBase=p,u.DEFAULT_STROKE_WIDTH=2,u.DEFAULT_STROKE_DASHARRAY="";var s=function(x){function b(){return null!==x&&x.apply(this,arguments)||this}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){this.fill="#ffffff",this.stroke="#000000",this["stroke-width"]=u.DEFAULT_STROKE_WIDTH.toString(),this["stroke-dasharray"]=u.DEFAULT_STROKE_DASHARRAY},b.prototype.getDefaultInstance=function(){return b.defaultInstance},b.prototype.isDefaultStrokeDashArray=function(){return this["stroke-dasharray"]===u.DEFAULT_STROKE_DASHARRAY},b.prototype.resetStrokeDashArray=function(){this["stroke-dasharray"]=u.DEFAULT_STROKE_DASHARRAY},Object.defineProperty(b.prototype,"strokeWidthPx",{get:function(){return parseInt(this["stroke-width"])},enumerable:!1,configurable:!0}),b.defaultInstance=new b,b}(p);u.Style=s;var l,x,d=function(x){function b(){return null!==x&&x.apply(this,arguments)||this}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){this.fill="#000000",this["font-family"]="Arial",this["font-size"]="10pt",this["font-weight"]="",this["font-style"]="",this["text-decoration"]="",this["text-anchor"]="middle"},b.prototype.getDefaultInstance=function(){return b.defaultInstance},b.prototype.getAlignment=function(){switch(this["text-anchor"]){case"left":return l.Left;case"right":return l.Right;default:return l.Center}},b.defaultInstance=new b,b}(p);u.TextStyle=d,(x=l=u.TextAlignment||(u.TextAlignment={}))[x.Left=0]="Left",x[x.Right=1]="Right",x[x.Center=2]="Center";var h=function(x){function b(y,E){var S=x.call(this)||this;return S._strokeWidthPx=y,S._strokeOffset=E,S}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){},b.prototype.getDefaultInstance=function(){return d.defaultInstance},Object.defineProperty(b.prototype,"strokeWidthPx",{get:function(){return this._strokeWidthPx||0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"strokeOffset",{get:function(){return this._strokeOffset||0},enumerable:!1,configurable:!0}),b.default1pxInstance=new b(1,.5),b.default1pxNegativeOffsetInstance=new b(1,-.5),b.default2pxInstance=new b(2),b}(s);u.StrokeStyle=h;var v=function(x){function b(y){var E=x.call(this)||this;return y&&Object.keys(y).forEach(function(S){return E[S]=y[S]}),E}return I(b,x),b.prototype.createInstance=function(){return new b},b.prototype.createDefaultProperties=function(){},b.prototype.getDefaultInstance=function(){return d.defaultInstance},b.defaultInstance=new b,b}(s);u.EmptyStyle=v},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(18),I=o(50),C=o(31),g=o(49),a=function(){function l(){}return l.clearInnerHtml=function(d){for(;d.firstChild;)d.removeChild(d.firstChild)},l.setStylePosition=function(d,h){d.left=C.MathUtils.round(h.x,3)+"px",d.top=C.MathUtils.round(h.y,3)+"px"},l.setStyleSize=function(d,h){d.width=C.MathUtils.round(h.width,3)+"px",d.height=C.MathUtils.round(h.height,3)+"px"},l.setStyleSizeAndPosition=function(d,h){l.setStylePosition(d,h),l.setStyleSize(d,h)},l.hideNode=function(d){if(d){var h=d.parentNode;h&&h.removeChild(d)}},l.isHTMLElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},l.isTextNode=function(d){return d.nodeType===Node.TEXT_NODE},l.isElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},l.isHTMLTableRowElement=function(d){return"TR"===d.tagName},l.isItParent=function(d,h){if(!d||!h)return!1;for(;h;){if(h===d)return!0;if("BODY"===h.tagName)return!1;h=h.parentNode}return!1},l.getParentByTagName=function(d,h){for(h=h.toUpperCase();d;){if("BODY"===d.tagName)return null;if(d.tagName===h)return d;d=d.parentNode}return null},l.getDocumentScrollTop=function(){var d=c.Browser.IE&&"hidden"===l.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return c.Browser.WebKitFamily||c.Browser.Edge||d?c.Browser.MacOSMobilePlatform?window.pageYOffset:c.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},l.getDocumentScrollLeft=function(){var d=c.Browser.IE&&"hidden"===l.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return c.Browser.Edge||d?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:c.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},l.getCurrentStyle=function(d){if(d.currentStyle)return d.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(d,null);if(!h&&c.Browser.Firefox&&window.frameElement){for(var v=[],x=window.frameElement;!(h=document.defaultView.getComputedStyle(d,null));)v.push([x,x.style.display]),x.style.setProperty("display","block","important"),x="BODY"===x.tagName?x.ownerDocument.defaultView.frameElement:x.parentNode;h=function(E){if("object"!=typeof E||!I.isDefined(E))return E;var S={};for(var O in E)S[O]=E[O];return S}(h);for(var b=void 0,y=0;b=v[y];y++)b[0].style.display=b[1];document}return h}return window.getComputedStyle(d,null)},l.setFocus=function(d){function h(){try{d.focus(),c.Browser.IE&&document.activeElement!==d&&d.focus()}catch{}}c.Browser.MacOSMobilePlatform?h():setTimeout(function(){h()},100)},l.hasClassName=function(d,h){try{var v=h.split(" "),x=d.classList;if(x){for(var b=v.length-1;b>=0;b--)if(!x.contains(v[b]))return!1}else{var y=d.getAttribute&&d.getAttribute("class");if(!y)return!1;var E=y.split(" ");for(b=v.length-1;b>=0;b--)if(E.indexOf(v[b])<0)return!1}return!0}catch{return!1}},l.addClassName=function(d,h){if(!l.hasClassName(d,h)){var v=d.getAttribute&&d.getAttribute("class");d.setAttribute("class",""===v?h:v+" "+h)}},l.removeClassName=function(d,h){var v=" "+(d.getAttribute&&d.getAttribute("class"))+" ",x=v.replace(" "+h+" "," ");v.length!==x.length&&d.setAttribute("class",g.StringUtils.trim(x))},l.toggleClassName=function(d,h,v){void 0===v?l.hasClassName(d,h)?l.removeClassName(d,h):l.addClassName(d,h):v?l.addClassName(d,h):l.removeClassName(d,h)},l.pxToInt=function(d){return p(d,parseInt)},l.pxToFloat=function(d){return p(d,parseFloat)},l.getAbsolutePositionY=function(d){function h(v){return Math.round(v.getBoundingClientRect().top+l.getDocumentScrollTop())}return d?c.Browser.IE?(v=d,c.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().top+l.getDocumentScrollTop()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera?function(v){var x=!0;v&&l.isHTMLTableRowElement(v)&&v.cells.length>0&&(v=v.cells[0]);for(var b=s(v,!1);null!=v;)b+=v.offsetTop,x||(b-=v.scrollTop),v=v.offsetParent,x=!1;return b+document.body.scrollTop}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(v){for(var x=s(v,!1),b=!0;null!=v;){if(x+=v.offsetTop,b||null==v.offsetParent||(x-=v.scrollTop),!b&&c.Browser.Firefox){var y=l.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==y.overflow&&(x+=l.pxToInt(y.borderTopWidth))}b=!1,v=v.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(v){for(var x=0,b=!0;null!=v;)x+=v.offsetTop,b||null==v.offsetParent||(x-=v.scrollTop),b=!1,v=v.offsetParent;return x}(d):0;var v},l.getAbsolutePositionX=function(d){function h(v){return Math.round(v.getBoundingClientRect().left+l.getDocumentScrollLeft())}return d?c.Browser.IE?(v=d,c.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().left+l.getDocumentScrollLeft()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera&&c.Browser.Version<=12?function(v){for(var x=!0,b=s(v,!0);null!=v;)b+=v.offsetLeft,x||(b-=v.scrollLeft),v=v.offsetParent,x=!1;return b+document.body.scrollLeft}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(v){for(var x=s(v,!0),b=!0;null!=v;){if(x+=v.offsetLeft,b||null==v.offsetParent||(x-=v.scrollLeft),!b&&c.Browser.Firefox){var y=l.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==y.overflow&&(x+=l.pxToInt(y.borderLeftWidth))}b=!1,v=v.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(v){for(var x=0,b=!0;null!=v;)x+=v.offsetLeft,b||null==v.offsetParent||(x-=v.scrollLeft),b=!1,v=v.offsetParent;return x}(d):0;var v},l.isInteractiveControl=function(d){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(d.tagName)>-1},l.getClearClientHeight=function(d){return d.offsetHeight-(l.getTopBottomPaddings(d)+l.getVerticalBordersWidth(d))},l.getTopBottomPaddings=function(d,h){var v=h||l.getCurrentStyle(d);return l.pxToInt(v.paddingTop)+l.pxToInt(v.paddingBottom)},l.getVerticalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&9!==c.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(d):l.getCurrentStyle(d));var v=0;return"none"!==h.borderTopStyle&&(v+=l.pxToFloat(h.borderTopWidth)),"none"!==h.borderBottomStyle&&(v+=l.pxToFloat(h.borderBottomWidth)),v},l.getNodes=function(d,h){for(var v=d.all||d.getElementsByTagName("*"),x=[],b=0;b<v.length;b++){var y=v[b];h(y)&&x.push(y)}return x},l.getChildNodes=function(d,h){for(var v=d.childNodes,x=[],b=0;b<v.length;b++){var y=v[b];h(y)&&x.push(y)}return x},l.getNodesByClassName=function(d,h){if(d.querySelectorAll){var v=d.querySelectorAll("."+h),x=[];return v.forEach(function(b){return x.push(b)}),x}return l.getNodes(d,function(b){return l.hasClassName(b,h)})},l.getChildNodesByClassName=function(d,h){return d.querySelectorAll?function(v,x){for(var b=[],y=0;y<v.length;y++){var E=v[y];x(E)&&b.push(E)}return b}(d.querySelectorAll("."+h),function(v){return v.parentNode===d}):l.getChildNodes(d,function(v){return!!l.isElementNode(v)&&I.isNonNullString(v.className)&&l.hasClassName(v,v.className)})},l.getVerticalScrollBarWidth=function(){if(void 0===l.verticalScrollBarWidth){var d=document.createElement("DIV");d.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(d);var h=document.createElement("P");d.appendChild(h),h.style.cssText="width: 100%; height: 200px;";var v=h.offsetWidth;d.style.overflow="scroll";var x=h.offsetWidth;v===x&&(x=d.clientWidth),l.verticalScrollBarWidth=v-x,document.body.removeChild(d)}return l.verticalScrollBarWidth},l.getHorizontalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&window.getComputedStyle?window.getComputedStyle(d):l.getCurrentStyle(d));var v=0;return"none"!==h.borderLeftStyle&&(v+=l.pxToFloat(h.borderLeftWidth)),"none"!==h.borderRightStyle&&(v+=l.pxToFloat(h.borderRightWidth)),v},l.getFontFamiliesFromCssString=function(d){return d.split(",").map(function(h){return g.StringUtils.trim(h.replace(/'|"/gi,""))})},l.getInnerText=function(d){if(c.Browser.Safari&&c.Browser.MajorVersion<=5){null===l.html2PlainTextFilter&&((l.html2PlainTextFilter=document.createElement("DIV")).style.width="0",l.html2PlainTextFilter.style.height="0",l.html2PlainTextFilter.style.overflow="visible",l.html2PlainTextFilter.style.display="none",document.body.appendChild(l.html2PlainTextFilter));var h=l.html2PlainTextFilter;h.innerHTML=d.innerHTML,h.style.display="";var v=h.innerText;return h.style.display="none",v}return c.Browser.NetscapeFamily||c.Browser.WebKitFamily||c.Browser.IE&&c.Browser.Version>=9||c.Browser.Edge?d.textContent:d.innerText},l.html2PlainTextFilter=null,l.verticalScrollBarWidth=void 0,l}();function p(l,d){var h=0;if(I.isDefined(l)&&""!==l)try{var v=l.indexOf("px");v>-1&&(h=d(l.substr(0,v)))}catch{}return h}function s(l,d){for(var h=0,v=!0;null!=l&&"BODY"!==l.tagName;){var x=a.getCurrentStyle(l);if("absolute"===x.position)break;v||"DIV"!==l.tagName||""!==x.position&&"static"!==x.position||(h-=d?l.scrollLeft:l.scrollTop),l=l.parentNode,v=!1}return h}u.DomUtils=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorRoutingMode=u.AutoZoomMode=u.DiagramSettings=void 0;var c,I,l,C=o(3),g=o(2),a=o(47),p=o(4),s=function(){function l(){this.onZoomChanged=new C.EventDispatcher,this.onViewChanged=new C.EventDispatcher,this.onReadOnlyChanged=new C.EventDispatcher,this.onConnectorRoutingModeChanged=new C.EventDispatcher,this._zoomLevel=1,this._zoomLevelWasChanged=!1,this._zoomLevelItems=[.5,.75,1,1.25,1.5,2,3],this._simpleView=!1,this._fullscreen=!1,this._readOnly=!1,this._autoZoom=c.Disabled,this._snapToGrid=!0,this._showGrid=!0,this._contextMenuEnabled=!0,this._gridSize=180,this._gridSizeItems=[90,180,360,720],this._pageSizeItems=[{size:new g.Size(12240,15840),text:"US-Letter ({width} x {height})"},{size:new g.Size(12240,20160),text:"US-Legal ({width} x {height})"},{size:new g.Size(15817,24491),text:"US-Tabloid ({width} x {height})"},{size:new g.Size(47679,67408),text:"A0 ({width} x {height})"},{size:new g.Size(33676,47679),text:"A1 ({width} x {height})"},{size:new g.Size(23811,33676),text:"A2 ({width} x {height})"},{size:new g.Size(16838,23811),text:"A3 ({width} x {height})"},{size:new g.Size(11906,16838),text:"A4 ({width} x {height})"},{size:new g.Size(8391,11906),text:"A5 ({width} x {height})"},{size:new g.Size(5953,8391),text:"A6 ({width} x {height})"},{size:new g.Size(4195,5953),text:"A7 ({width} x {height})"}],this._viewUnits=a.DiagramUnit.In,this._connectorRoutingMode=I.AllShapesOnly,this._reloadInsertedItemRequired=!1,this._useCanvgForExportToImage=!0}return Object.defineProperty(l.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(d){var h=this;(d=l.correctZoomLevel(d))!==this._zoomLevel&&(this._zoomLevel=d,this._zoomLevelWasChanged=!0,this.onZoomChanged.raise1(function(v){return v.notifyZoomChanged(d,h._autoZoom)}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"zoomLevelWasChanged",{get:function(){return this._zoomLevelWasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"zoomLevelItems",{get:function(){return this._zoomLevelItems},set:function(d){(d=d.map(function(h){return l.correctZoomLevel(h)}))!==this._zoomLevelItems&&(this._zoomLevelItems=d)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"autoZoom",{get:function(){return this._autoZoom},set:function(d){var h=this;d!==this._autoZoom&&(this._autoZoom=d,this.onZoomChanged.raise1(function(v){return v.notifyZoomChanged(h._zoomLevel,d)}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"simpleView",{get:function(){return this._simpleView},set:function(d){d!==this._simpleView&&(this._simpleView=d,this.notifyViewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"readOnly",{get:function(){return this._readOnly},set:function(d){d!==this._readOnly&&(this._readOnly=d,this.onReadOnlyChanged.raise1(function(h){return h.notifyReadOnlyChanged(d)}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(d){this._fullscreen=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"snapToGrid",{get:function(){return this._snapToGrid},set:function(d){this._snapToGrid=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"showGrid",{get:function(){return this._showGrid},set:function(d){var h=this;d!==this._showGrid&&(this._showGrid=d,this.onViewChanged.raise1(function(v){return v.notifyGridChanged(h.showGrid,h.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"contextMenuEnabled",{get:function(){return this._contextMenuEnabled},set:function(d){this._contextMenuEnabled=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"gridSize",{get:function(){return this._gridSize},set:function(d){var h=this;d!==this._gridSize&&(this._gridSize=d,this.onViewChanged.raise1(function(v){return v.notifyGridChanged(h.showGrid,h.gridSize)}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"gridSizeItems",{get:function(){return this._gridSizeItems},set:function(d){d!==this._gridSizeItems&&(this._gridSizeItems=d)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"pageSizeItems",{get:function(){return this._pageSizeItems},set:function(d){d!==this._pageSizeItems&&(this._pageSizeItems=d)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"viewUnits",{get:function(){return this._viewUnits},set:function(d){this._viewUnits=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"connectorRoutingMode",{get:function(){return this._connectorRoutingMode},set:function(d){d!==this._connectorRoutingMode&&(this._connectorRoutingMode=d,this.onConnectorRoutingModeChanged.raise1(function(h){return h.notifyConnectorRoutingModeChanged(d)}))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"reloadInsertedItemRequired",{get:function(){return this._reloadInsertedItemRequired},set:function(d){this._reloadInsertedItemRequired=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"useCanvgForExportToImage",{get:function(){return this._useCanvgForExportToImage},set:function(d){this._useCanvgForExportToImage=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"shapeMinWidth",{get:function(){return this._shapeMinWidth},set:function(d){this._shapeMinWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"shapeMinHeight",{get:function(){return this._shapeMinHeight},set:function(d){this._shapeMinHeight=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"shapeMaxWidth",{get:function(){return this._shapeMaxWidth},set:function(d){this._shapeMaxWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"shapeMaxHeight",{get:function(){return this._shapeMaxHeight},set:function(d){this._shapeMaxHeight=d},enumerable:!1,configurable:!0}),l.prototype.applyShapeSizeSettings=function(d,h){d&&("number"==typeof d.shapeMaxHeight&&(this.shapeMaxHeight=p.ModelUtils.getTwipsValue(h,d.shapeMaxHeight)),"number"==typeof d.shapeMinHeight&&(this.shapeMinHeight=p.ModelUtils.getTwipsValue(h,d.shapeMinHeight)),"number"==typeof d.shapeMaxWidth&&(this.shapeMaxWidth=p.ModelUtils.getTwipsValue(h,d.shapeMaxWidth)),"number"==typeof d.shapeMinWidth&&(this.shapeMinWidth=p.ModelUtils.getTwipsValue(h,d.shapeMinWidth)))},l.prototype.notifyViewChanged=function(){var d=this;this.onViewChanged.raise1(function(h){return h.notifyViewChanged(d._simpleView)})},l.correctZoomLevel=function(d){return Math.min(10,Math.max(d,.01))},l}();u.DiagramSettings=s,(l=c=u.AutoZoomMode||(u.AutoZoomMode={}))[l.Disabled=0]="Disabled",l[l.FitContent=1]="FitContent",l[l.FitToWidth=2]="FitToWidth",function(l){l[l.None=0]="None",l[l.ConnectorShapesOnly=1]="ConnectorShapesOnly",l[l.AllShapesOnly=2]="AllShapesOnly"}(I=u.ConnectorRoutingMode||(u.ConnectorRoutingMode={}))},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorRenderPoint=void 0;var C=function(g){function a(p,s,l,d){void 0===l&&(l=-1),void 0===d&&(d=!1);var h=g.call(this,p,s)||this;return h.pointIndex=l,h.skipped=d,h}return I(a,g),a.prototype.offset=function(p,s){return g.prototype.offset.call(this,p,s),this.pointIndex=-1,this.skipped=!1,this},a.prototype.multiply=function(p,s){return g.prototype.multiply.call(this,p,s),this.pointIndex=-1,this.skipped=!1,this},a.prototype.clone=function(){return new a(this.x,this.y,this.pointIndex,this.skipped)},a}(o(0).Point);u.ConnectorRenderPoint=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeParameterPoint=void 0,u.ShapeParameterPoint=function(I,C){this.key=I,this.point=C}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(105),I=function(){function C(){}return C.round=function(g,a){void 0===a&&(a=0);var p=C.powFactor[a];return Math.round(g*p)/p},C.numberCloseTo=function(g,a,p){return void 0===p&&(p=1e-5),Math.abs(g-a)<p},C.restrictValue=function(g,a,p){return p<a&&(p=a),g>p?p:g<a?a:g},C.getRandomInt=function(g,a){return Math.floor(Math.random()*(a-g+1))+g},C.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var a=16*Math.random()|0;return("x"===g?a:3&a|8).toString(16)})},C.powFactor=c.ListUtils.initByCallback(20,function(g){return Math.pow(10,g)}),C.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],C}();u.MathUtils=I},function(he,u,o){"use strict";var c,I,g;Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorProperties=u.DEFAULT_CONNECTOR_ENDLINEENDING=u.DEFAULT_CONNECTOR_STARTLINEENDING=u.DEFAULT_CONNECTOR_LINEOPTION=u.ConnectorLineEnding=u.ConnectorLineOption=void 0,(g=c=u.ConnectorLineOption||(u.ConnectorLineOption={}))[g.Straight=0]="Straight",g[g.Orthogonal=1]="Orthogonal",function(g){g[g.None=0]="None",g[g.Arrow=1]="Arrow",g[g.OutlinedTriangle=2]="OutlinedTriangle",g[g.FilledTriangle=3]="FilledTriangle"}(I=u.ConnectorLineEnding||(u.ConnectorLineEnding={})),u.DEFAULT_CONNECTOR_LINEOPTION=c.Orthogonal,u.DEFAULT_CONNECTOR_STARTLINEENDING=I.None,u.DEFAULT_CONNECTOR_ENDLINEENDING=I.Arrow;var C=function(){function g(){this.lineOption=u.DEFAULT_CONNECTOR_LINEOPTION,this.startLineEnding=u.DEFAULT_CONNECTOR_STARTLINEENDING,this.endLineEnding=u.DEFAULT_CONNECTOR_ENDLINEENDING}return g.prototype.clone=function(){var a=new g;return a.lineOption=this.lineOption,a.startLineEnding=this.startLineEnding,a.endLineEnding=this.endLineEnding,a},g.prototype.forEach=function(a){for(var p in this)Object.prototype.hasOwnProperty.call(this,p)&&a(p)},g.prototype.toObject=function(){var a={},p=!1;return this.lineOption!==u.DEFAULT_CONNECTOR_LINEOPTION&&(a.lineOption=this.lineOption,p=!0),this.startLineEnding!==u.DEFAULT_CONNECTOR_STARTLINEENDING&&(a.startLineEnding=this.startLineEnding,p=!0),this.endLineEnding!==u.DEFAULT_CONNECTOR_ENDLINEENDING&&(a.endLineEnding=this.endLineEnding,p=!0),p?a:null},g.prototype.fromObject=function(a){"number"==typeof a.lineOption&&(this.lineOption=a.lineOption),"number"==typeof a.startLineEnding&&(this.startLineEnding=a.startLineEnding),"number"==typeof a.endLineEnding&&(this.endLineEnding=a.endLineEnding)},g}();u.ConnectorProperties=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(31),I=o(35),C=o(0),g=o(13),a=function(){function p(s,l){this.startPoint=s,this.endPoint=l}return Object.defineProperty(p.prototype,"length",{get:function(){return I.Metrics.euclideanDistance(this.startPoint,this.endPoint)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"xLength",{get:function(){return Math.abs(this.endPoint.x-this.startPoint.x)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"yLength",{get:function(){return Math.abs(this.endPoint.y-this.startPoint.y)},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"center",{get:function(){return new C.Point(this.startPoint.x+(this.endPoint.x-this.startPoint.x)/2,this.startPoint.y+(this.endPoint.y-this.startPoint.y)/2)},enumerable:!0,configurable:!0}),p.prototype.isIntersected=function(s){return this.startPoint.equals(s.startPoint)||this.endPoint.equals(s.startPoint)||this.startPoint.equals(s.endPoint)||this.endPoint.equals(s.endPoint)||this.intersectCore(s)&&s.intersectCore(this)},p.prototype.containsPoint=function(s,l){return void 0===l&&(l=1e-7),this.startPoint.equals(s)||this.endPoint.equals(s)||c.MathUtils.numberCloseTo(this.length,I.Metrics.euclideanDistance(this.startPoint,s)+I.Metrics.euclideanDistance(this.endPoint,s),l)},p.prototype.isIntersectedByRect=function(s){if(g.Rectangle.containsPoint(s,this.startPoint)||g.Rectangle.containsPoint(s,this.endPoint))return!0;var l=s.x,d=s.x+s.width,h=s.y,v=s.y+s.height;return this.isIntersected(new p(new C.Point(l,h),new C.Point(l,v)))||this.isIntersected(new p(new C.Point(d,h),new C.Point(d,v)))||this.isIntersected(new p(new C.Point(l,h),new C.Point(d,h)))||this.isIntersected(new p(new C.Point(l,v),new C.Point(d,v)))},p.prototype.intersectCore=function(s){if(this.startPoint.x===this.endPoint.x){if(this.startPoint.x-s.endPoint.x!=0)return(this.startPoint.x-s.startPoint.x)/(this.startPoint.x-s.endPoint.x)<=0;if(s.endPoint.y-this.endPoint.y!=0)return(s.endPoint.y-this.startPoint.y)/(s.endPoint.y-this.endPoint.y)<=0}if(this.startPoint.y===this.endPoint.y){if(this.startPoint.y-s.endPoint.y!=0)return(this.startPoint.y-s.startPoint.y)/(this.startPoint.y-s.endPoint.y)<=0;if(s.endPoint.x-this.endPoint.x!=0)return(s.endPoint.x-this.startPoint.x)/(s.endPoint.x-this.endPoint.x)<=0}var l=(this.endPoint.y-this.startPoint.y)/(this.endPoint.x-this.startPoint.x),d=this.startPoint.y+(s.startPoint.x-this.startPoint.x)*l,h=this.startPoint.y+(s.endPoint.x-this.startPoint.x)*l,v=s.startPoint.y-d,x=s.endPoint.y-h;return 0===v&&0===x?(this.startPoint.y-d)/(this.endPoint.y-d)<=0||(this.startPoint.y-h)/(this.endPoint.y-h)<=0:0===v||0===x||v/x<0},p}();u.Segment=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDraggingState=void 0;var C=o(40),g=o(11),a=o(12),p=function(s){function l(d,h){var v=s.call(this,d)||this;return v.history=h,v}return I(l,s),l.prototype.canApplyChangesOnMouseMove=function(d,h){return!d||!h||Math.abs(d.x-h.x)>l.dragStartLimit||Math.abs(d.y-h.y)>l.dragStartLimit},l.prototype.onAfterApplyChanges=function(){this.modified||this.handler.raiseDragStart(this.getDraggingElementKeys()),this.modified=!0,this.mouseDownPoint=void 0},l.prototype.onMouseDown=function(d){this.mouseDownPoint=d.modelPoint.clone()},l.prototype.onMouseMove=function(d){this.mouseMoveEvent=d,d.button!==g.MouseButton.Left?(this.cancelChanges(),this.handler.switchToDefaultState()):d.button===g.MouseButton.Left&&this.canApplyChangesOnMouseMove(this.mouseDownPoint,d.modelPoint)&&(this.onApplyChanges(d),this.onAfterApplyChanges())},l.prototype.onKeyDown=function(d){!this.mouseMoveEvent||16!==d.keyCode&&17!==d.keyCode&&18!==d.keyCode||this.performMouseMoveEvent(d.modifiers)},l.prototype.onKeyUp=function(d){!this.mouseMoveEvent||16!==d.keyCode&&17!==d.keyCode&&18!==d.keyCode||this.performMouseMoveEvent(d.modifiers)},l.prototype.onMouseUp=function(d){this.mouseDownPoint=void 0,this.mouseMoveEvent=void 0,this.handler.switchToDefaultState()},l.prototype.performMouseMoveEvent=function(d){this.mouseMoveEvent.modifiers=d,this.onMouseMove(this.mouseMoveEvent)},l.prototype.start=function(){this.handler.beginStorePermissions(),this.history.beginTransaction()},l.prototype.finish=function(){this.checkStoredPermissionsOnFinish(),this.modified?(this.onFinishWithChanges(),this.modified=!1,this.history.endTransaction(),this.handler.raiseDragEnd(this.getDraggingElementKeys())):this.history.endTransaction(),this.handler.endStorePermissions(),this.handler.clearInteractingItems()},l.prototype.checkStoredPermissionsOnFinish=function(){this.handler.isStoredPermissionsGranted()||(this.cancelChanges(),this.modified=!1)},l.prototype.onFinishWithChanges=function(){},l.prototype.cancelChanges=function(){this.handler.lockPermissions(),this.history.undoTransaction(),this.handler.unlockPermissions(),this.modified&&this.handler.raiseDragEnd(this.getDraggingElementKeys()),this.modified=!1},l.prototype.getSnappedPoint=function(d,h){return this.handler.getSnappedPointOnDragPoint(d,h)},l.dragStartLimit=a.UnitConverter.pixelsToTwips(4),l}(C.MouseHandlerCancellableState);u.MouseHandlerDraggingState=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return I.euclideanDistance=function(C,g){var a=C.x-g.x,p=C.y-g.y;return Math.sqrt(a*a+p*p)},I.manhattanDistance=function(C,g){return Math.abs(C.x-g.x)+Math.abs(C.y-g.y)},I}();u.Metrics=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramLocalizationService=void 0;var c=o(1),I=o(47),C=function(){function g(){}return g.unitItems={},g.formatUnit=function(a){return a.toString()},g.shapeTexts={},g}();u.DiagramLocalizationService=C,C.unitItems[I.DiagramUnit.In]="in",C.unitItems[I.DiagramUnit.Cm]="cm",C.unitItems[I.DiagramUnit.Px]="px",C.shapeTexts[c.ShapeTypes.Text]="Text",C.shapeTexts[c.ShapeTypes.Rectangle]="Rectangle",C.shapeTexts[c.ShapeTypes.Ellipse]="Ellipse",C.shapeTexts[c.ShapeTypes.Cross]="Cross",C.shapeTexts[c.ShapeTypes.Triangle]="Triangle",C.shapeTexts[c.ShapeTypes.Diamond]="Diamond",C.shapeTexts[c.ShapeTypes.Heart]="Heart",C.shapeTexts[c.ShapeTypes.Pentagon]="Pentagon",C.shapeTexts[c.ShapeTypes.Hexagon]="Hexagon",C.shapeTexts[c.ShapeTypes.Octagon]="Octagon",C.shapeTexts[c.ShapeTypes.Star]="Star",C.shapeTexts[c.ShapeTypes.ArrowLeft]="Left Arrow",C.shapeTexts[c.ShapeTypes.ArrowUp]="Up Arrow",C.shapeTexts[c.ShapeTypes.ArrowRight]="Right Arrow",C.shapeTexts[c.ShapeTypes.ArrowDown]="Down Arrow",C.shapeTexts[c.ShapeTypes.ArrowUpDown]="Up Down Arrow",C.shapeTexts[c.ShapeTypes.ArrowLeftRight]="Left Right Arrow",C.shapeTexts[c.ShapeTypes.Process]="Process",C.shapeTexts[c.ShapeTypes.Decision]="Decision",C.shapeTexts[c.ShapeTypes.Terminator]="Terminator",C.shapeTexts[c.ShapeTypes.PredefinedProcess]="Predefined Process",C.shapeTexts[c.ShapeTypes.Document]="Document",C.shapeTexts[c.ShapeTypes.MultipleDocuments]="Multiple Documents",C.shapeTexts[c.ShapeTypes.ManualInput]="Manual Input",C.shapeTexts[c.ShapeTypes.Preparation]="Preparation",C.shapeTexts[c.ShapeTypes.Data]="Data",C.shapeTexts[c.ShapeTypes.Database]="Database",C.shapeTexts[c.ShapeTypes.HardDisk]="Hard Disk",C.shapeTexts[c.ShapeTypes.InternalStorage]="Internal Storage",C.shapeTexts[c.ShapeTypes.PaperTape]="Paper Tape",C.shapeTexts[c.ShapeTypes.ManualOperation]="Manual Operation",C.shapeTexts[c.ShapeTypes.Delay]="Delay",C.shapeTexts[c.ShapeTypes.StoredData]="Stored Data",C.shapeTexts[c.ShapeTypes.Display]="Display",C.shapeTexts[c.ShapeTypes.Merge]="Merge",C.shapeTexts[c.ShapeTypes.Connector]="Connector",C.shapeTexts[c.ShapeTypes.Or]="Or",C.shapeTexts[c.ShapeTypes.SummingJunction]="Summing Junction",C.shapeTexts[c.ShapeTypes.Container]="Container",C.shapeTexts[c.ShapeTypes.VerticalContainer]="Vertical Container",C.shapeTexts[c.ShapeTypes.HorizontalContainer]="Horizontal Container",C.shapeTexts[c.ShapeTypes.Card]="Person's Name",C.shapeTexts[c.ShapeTypes.CardWithImageOnLeft]="Card with Image on the Left",C.shapeTexts[c.ShapeTypes.CardWithImageOnTop]="Card with Image on the Top",C.shapeTexts[c.ShapeTypes.CardWithImageOnRight]="Card with Image on the Right"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeParameters=u.ShapeParameter=void 0;var c=function(C,g){this.key=C,this.value=g};u.ShapeParameter=c;var I=function(){function C(){this.items={}}return C.prototype.add=function(g){this.items[g.key]=g},C.prototype.addRange=function(g){for(var a=0;a<g.length;a++)this.add(g[a])},C.prototype.get=function(g){return this.items[g]},C.prototype.forEach=function(g){for(var a in this.items)Object.prototype.hasOwnProperty.call(this.items,a)&&g(this.items[a])},C.prototype.clone=function(){var g=new C;return this.forEach(function(a){g.add(new c(a.key,a.value))}),g},C.prototype.toObject=function(){var g={},a=!1;return this.forEach(function(p){g[p.key]={value:p.value},a=!0}),a?g:null},C.prototype.fromObject=function(g){this.forEach(function(a){var p=g[a.key];p&&"number"==typeof p.value&&(a.value=p.value)})},C}();u.ShapeParameters=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectionMode=u.PositionInfo=u.Edge=void 0;var c=function(){function C(g,a,p,s){void 0===s&&(s=1),this.weight=s,this.key=g,this.from=a,this.to=p}return C.prototype.getHashKey=function(){return this.from+"_"+this.to},C.prototype.reverse=function(){return new C(this.key,this.to,this.from,this.weight)},C}();u.Edge=c;var C;u.PositionInfo=function(C,g){this.item=C,this.position=g},(C=u.ConnectionMode||(u.ConnectionMode={}))[C.Outgoing=1]="Outgoing",C[C.Incoming=2]="Incoming",C[C.OutgoingAndIncoming=3]="OutgoingAndIncoming"},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.GroupPrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x){var b=a.call(this,null,l,h,v)||this;return b.zIndex=d,b.onBeforeDispose=x,b.children=s,b}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"g")},p.prototype.applyElementProperties=function(s,l){(this.zIndex||0===this.zIndex)&&s.style.setProperty("z-index",this.zIndex.toString()),a.prototype.applyElementProperties.call(this,s,l)},p.prototype.dispose=function(){this.onBeforeDispose&&this.onBeforeDispose(),a.prototype.dispose.call(this)},p}(o(24).SvgPrimitive);u.GroupPrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerCancellableState=u.MouseHandlerStateBase=void 0;var C=o(25),g=function(){function p(s){this.handler=s}return p.prototype.start=function(){},p.prototype.finish=function(){},p.prototype.onMouseClick=function(s){},p.prototype.onMouseDblClick=function(s){this.handler.switchToDefaultState()},p.prototype.onMouseDown=function(s){},p.prototype.onMouseUp=function(s){},p.prototype.onMouseMove=function(s){},p.prototype.onMouseWheel=function(s){return!1},p.prototype.onDragStart=function(s){},p.prototype.onDragEnd=function(s){},p.prototype.onShortcut=function(s){return!1},p.prototype.onKeyDown=function(s){},p.prototype.onKeyUp=function(s){},p.prototype.onConnectionPointsShow=function(s,l){},p.prototype.onConnectionTargetShow=function(s,l){},p}();u.MouseHandlerStateBase=g;var a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.onShortcut=function(l){return l===C.KeyCode.Esc&&(this.cancelChanges(),this.handler.switchToDefaultState(),!0)},s}(g);u.MouseHandlerCancellableState=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return I.binaryIndexOf=function(C,g,a,p){void 0===a&&(a=0),void 0===p&&(p=-2);var s=0===a;for(-2===p&&(p=C.length-1);a<=p;){var l=a+(p-a>>1),d=g(C[l]);if(d<0)a=l+1;else{if(!(d>0))return l;p=l-1}}return s?~a:-1},I.normedBinaryIndexOf=function(C,g,a,p){void 0===a&&(a=0),void 0===p&&(p=-2);var s=I.binaryIndexOf(C,g,a,p);return I.binaryIndexNormalizator(s)},I.binaryIndexNormalizator=function(C){return C<0?~C-1:C},I.normedInterpolationIndexOf=function(C,g,a,p,s){void 0===p&&(p=0),void 0===s&&(s=-2),-2===s&&(s=C.length-1);var l=C[Math.min(p,s)];if(void 0===l||a<g(l))return-1;for(var d=g(C[p]),h=g(C[s]);;){if(!(a>d&&a<h))return a===d?p:s;var v=p+Math.floor((a-d)*(s-p)/(h-d)),x=g(C[v]);if(a>x){if(a<(d=g(C[p=v+1])))return v}else{if(!(a<x))return v;h=g(C[s=v-1])}}},I}();u.SearchUtils=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasManagerBase=u.PAGE_BG_TEXTFLOOR_FILTER_ID=void 0;var c=o(172),I=o(12);u.PAGE_BG_TEXTFLOOR_FILTER_ID="page-text-flood";var C=function(){function g(a,p){this.elements={},this.actualZoom=a,this.dom=p}return g.prototype.createAndChangePrimitivesElements=function(a,p){var s=this;a.forEach(function(l){s.createAndChangePrimitiveElement(l,p)})},g.prototype.createPrimitiveElement=function(a,p,s){return this.dom.createElement(a,p,s)},g.prototype.createAndChangePrimitiveElement=function(a,p,s){var l=this.createPrimitiveElement(a,p,s);return this.dom.changeByPrimitive(l,a),l},g.prototype.changePrimitiveElement=function(a,p){this.dom.changeByPrimitive(p,a)},g.prototype.getOrCreateElement=function(a,p,s,l){var d=a&&this.elements[a]||(this.elements[a]=this.createPrimitiveElement(p,s,l));return this.changePrimitiveElement(p,d),d},g.prototype.createTextFloodFilter=function(a,p,s){this.getOrCreateElement(a,new c.TextFloodFilterPrimitive(u.PAGE_BG_TEXTFLOOR_FILTER_ID,s),p)},g.prototype.getAbsoluteSize=function(a){return a.clone().applyConverter(I.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom)},g}();u.CanvasManagerBase=C},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.TextOwner=void 0,(c=u.TextOwner||(u.TextOwner={}))[c.Shape=0]="Shape",c[c.Connector=1]="Connector",c[c.ExtensionLine=2]="ExtensionLine",c[c.Resize=3]="Resize"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Data=u.SetAbsoluteY=u.SetAbsoluteX=void 0;var c=o(27),I=o(50);function C(p){return!isNaN(parseFloat(p))&&isFinite(p)}function g(p,s,l){return p-function(d,h){var b,y,v=(b=d,(y=document.createElement("DIV")).style.top="0px",y.style.left="0px",y.style.visibility="hidden",y.style.position=c.DomUtils.getCurrentStyle(b).position,y);"static"===v.style.position&&(v.style.position="absolute"),d.parentNode.appendChild(v);var x=h?c.DomUtils.getAbsolutePositionX(v):c.DomUtils.getAbsolutePositionY(v);return d.parentNode.removeChild(v),Math.round(x)}(s,l)}u.SetAbsoluteX=function(p,s){p.style.left=g(s,p,!0)+"px"},u.SetAbsoluteY=function(p,s){p.style.top=g(s,p,!1)+"px"};var a=function(){function p(){}return p.ArrayInsert=function(s,l,d){if(0<=d&&d<s.length){for(var h=s.length;h>d;h--)s[h]=s[h-1];s[d]=l}else s.push(l)},p.ArrayRemove=function(s,l){var d=p.ArrayIndexOf(s,l);d>-1&&p.ArrayRemoveAt(s,d)},p.ArrayRemoveAt=function(s,l){if(l>=0&&l<s.length){for(var d=l;d<s.length-1;d++)s[d]=s[d+1];s.pop()}},p.ArrayClear=function(s){for(;s.length>0;)s.pop()},p.ArrayIndexOf=function(s,l,d){if(d){for(h=0;h<s.length;h++)if(d(s[h],l))return h}else for(var h=0;h<s.length;h++)if(s[h]===l)return h;return-1},p.ArrayContains=function(s,l){return p.ArrayIndexOf(s,l)>=0},p.ArrayEqual=function(s,l){var d=s.length;if(d!==l.length)return!1;for(var h=0;h<d;h++)if(s[h]!==l[h])return!1;return!0},p.ArraySame=function(s,l){return s.length===l.length&&s.every(function(d){return p.ArrayContains(l,d)})},p.ArrayGetIntegerEdgeValues=function(s){var l=p.CollectionToArray(s);return p.ArrayIntegerAscendingSort(l),{start:l[0],end:l[l.length-1]}},p.ArrayIntegerAscendingSort=function(s){p.ArrayIntegerSort(s,!1)},p.ArrayIntegerSort=function(s,l){s.sort(function(d,h){var v=0;return d>h?v=1:d<h&&(v=-1),l&&(v*=-1),v})},p.CollectionsUnionToArray=function(s,l){for(var d=[],h=s.length,v=l.length,x=0;x<h+v;x++)d.push(x<h?s[x]:l[x-h]);return d},p.CollectionToArray=function(s){for(var l=[],d=0;d<s.length;d++)l.push(s[d]);return l},p.CreateHashTableFromArray=function(s){for(var l=[],d=0;d<s.length;d++)l[s[d]]=1;return l},p.CreateIndexHashTableFromArray=function(s){for(var l=[],d=0;d<s.length;d++)l[s[d]]=d;return l},p.ArrayToHash=function(s,l,d){return s instanceof Array?s.reduce(function(h,v,x){var b=l(v,x),y=d(v,x);return h[b]=y,h},{}):{}},p.Sum=function(s,l){return s instanceof Array?s.reduce(function(d,h){var v=l?l(h):h;return C(v)||(v=0),d+v},0):0},p.Min=function(s,l){return p.CalculateArrayMinMax(s,l,!1)},p.Max=function(s,l){return p.CalculateArrayMinMax(s,l,!0)},p.NearestLeftBinarySearchComparer=function(s,l,d){var h=s[l],v=h<d;return v&&l===s.length-1||v&&s[l+1]>=d?0:h<d?-1:1},p.ArrayBinarySearch=function(s,l,d,h,v){d||(d=p.defaultBinarySearchComparer),I.isDefined(h)||(h=0),I.isDefined(v)||(v=s.length-h);for(var x=h+v-1;h<=x;){var b=h+(x-h>>1),y=d(s,b,l);if(0===y)return b;y<0?h=b+1:x=b-1}return-(h+1)},p.ArrayFlatten=function(s){var l=[];return s.forEach(function(d){l=l.concat(d)}),l},p.GetDistinctArray=function(s){for(var l=[],d=0;d<s.length;d++){var h=s[d];-1===p.ArrayIndexOf(l,h)&&l.push(h)}return l},p.ForEach=function(s,l){if(Array.prototype.forEach)Array.prototype.forEach.call(s,l);else for(var d=0,h=s.length;d<h;d++)l(s[d],d,s)},p.MergeHashTables=function(s,l){if(!l||"string"==typeof l)return s;for(var d in s||(s={}),l)!d||d in s||(s[d]=l[d]);return s},p.Range=function(s,l){return(s=parseInt(s)||0)<0&&(s=0),(l=parseInt(l)||0)<0&&(l=0),Array(s).map(function(d,h){return l+h})},p.CalculateArrayMinMax=function(s,l,d){if(!(s instanceof Array))return 0;var h=d?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;return s.reduce(function(v,x){var b=l?l(x):x;return C(b)||(b=h),(d?Math.max:Math.min)(b,v)},h)},p.byRange=function(s,l,d){return Math.min(Math.max(s,l),d)},p.defaultBinarySearchComparer=function(s,l,d){var h=s[l];return h===d?0:h<d?-1:1},p.cssTextToObject=function(s){return s?(s=s.replace(/\/\*(.|\s)*?\*\//g,"").replace(/\s+/g," ")).split(";").reduce(function(l,d){if(d){var h=/\s*([^:]+?)\s*:\s*([^;]*)\s*$/.exec(d);if(h){var v=h[1],x=h[2];v&&x&&(l[v.trim()]=x.trim())}return l}return l},{}):{}},p.objectToCssText=function(s){return s?Object.keys(s).reduce(function(l,d){var h=d.trim(),v=s[d];return h&&v&&l.push(h+": "+v.toString().trim()),l},[]).join("; "):""},p}();u.Data=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectionPoint=void 0;var C=o(0),g=o(9),a=function(p){function s(l,d,h){void 0===h&&(h=g.ConnectionPointSide.Undefined);var v=p.call(this,l,d)||this;return v.side=h,v}return I(s,p),s.prototype.offset=function(l,d){return p.prototype.offset.call(this,l,d),this.side=g.ConnectionPointSide.Undefined,this},s.prototype.multiply=function(l,d){return p.prototype.multiply.call(this,l,d),this.side=g.ConnectionPointSide.Undefined,this},s.prototype.clone=function(){return new s(this.x,this.y,this.side)},s.prototype.toPoint=function(){return new C.Point(this.x,this.y)},s}(C.Point);u.ConnectionPoint=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ImageCache=u.CacheImageInfo=void 0;var c=o(83),I=o(51),C=o(3),g=function(){function p(s,l,d,h,v){this._base64=void 0!==s?c.Base64Utils.normalizeToDataUrl(s,"image/png"):void 0,this.actualId=l,this._referenceInfo=h,this._isLoaded=void 0!==v&&v,this.imageUrl=d}return Object.defineProperty(p.prototype,"isLoaded",{get:function(){return this._referenceInfo?this._referenceInfo._isLoaded:this._isLoaded},set:function(s){this._isLoaded=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"base64",{get:function(){return this._base64},set:function(s){this._base64=c.Base64Utils.normalizeToDataUrl(s,"image/png")},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"referenceInfo",{get:function(){return this._referenceInfo},set:function(s){this._referenceInfo=s,this._base64=void 0,this._isLoaded=void 0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isLoading",{get:function(){return this._referenceInfo?this.referenceInfo._isLoading:this._isLoading},enumerable:!1,configurable:!0}),p.prototype.startLoading=function(){this._referenceInfo?this._referenceInfo.startLoading():this._isLoading=!0},p.prototype.finalizeLoading=function(){this._referenceInfo?this._referenceInfo.finalizeLoading():this._isLoading=!1},p}();u.CacheImageInfo=g;var a=function(){function p(){this.emptyImageId=0,this.lastActualId=0,this.onReadyStateChanged=new C.EventDispatcher,this.cache=[],this.nonLoadedImages=[],this.createUnloadedInfoByBase64(I.ImageInfo.transparentOnePixelImage).isLoaded=!0}return p.prototype.reset=function(){this.cache.splice(1),this.nonLoadedImages=[],this.lastActualId=1},Object.defineProperty(p.prototype,"emptyImage",{get:function(){return this.cache[this.emptyImageId]},enumerable:!1,configurable:!0}),p.prototype.getImageData=function(s){return this.cache[s]},p.prototype.createUnloadedInfoByUrl=function(s){return this.findInfoByUrl(s)||this.registerImageData(new g(void 0,this.getNextActualId(),s))},p.prototype.createUnloadedInfoByBase64=function(s){return this.findInfoByBase64(s)||this.registerImageData(new g(s,this.getNextActualId()))},p.prototype.createUnloadedInfoByShapeImageInfo=function(s){var l=s.exportUrl;return c.Base64Utils.checkPrependDataUrl(l)?this.createUnloadedInfoByBase64(l):this.createUnloadedInfoByUrl(l)},p.prototype.registerImageData=function(s){var l=this.cache[s.actualId];return l||(l=s),void 0!==s.actualId&&(this.cache[s.actualId]=l),0!==s.actualId&&(this.nonLoadedImages.push(s),1===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!1)),l},p.prototype.loadAllImages=function(s){var l=this;this.cache.forEach(function(d){l.emptyImageId===d.actualId||d.isLoaded||d.isLoading||s.load(d)})},p.prototype.finalizeLoading=function(s,l){s.finalizeLoading(),s.isLoaded=!0;var d=this.nonLoadedImages.indexOf(s);if(this.nonLoadedImages.splice(d,1),0===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!0),!s.referenceInfo&&l.base64){var h=c.Base64Utils.normalizeToDataUrl(l.base64,"image/png");this.cache.forEach(function(v){var x=v.base64===h&&v!==s&&v.isLoaded;return x&&(s.referenceInfo=v.referenceInfo?v.referenceInfo:v),x}),s.base64=h}},p.prototype.hasNonLoadedImages=function(){return 0!==this.nonLoadedImages.length},p.prototype.getNextActualId=function(){return this.lastActualId++},p.prototype.findInfoByBase64=function(s){return s=c.Base64Utils.normalizeToDataUrl(s,"image/png"),this.findInfoCore(function(l){return l.base64===s})},p.prototype.findInfoByUrl=function(s){return this.findInfoCore(function(l){return l.imageUrl===s})},p.prototype.findInfoCore=function(s){var l;return this.cache.forEach(function(d){s(d)&&(l=d)}),l},p.prototype.raiseReadyStateChanged=function(s){this.onReadyStateChanged.raise1(function(l){return l.notifyImageCacheReadyStateChanged(s)})},p.instance=new p,p}();u.ImageCache=a},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.PageOrientation=u.DiagramUnit=void 0,(c=u.DiagramUnit||(u.DiagramUnit={}))[c.In=0]="In",c[c.Cm=1]="Cm",c[c.Px=2]="Px",function(c){c[c.Portrait=0]="Portrait",c[c.Landscape=1]="Landscape"}(u.PageOrientation||(u.PageOrientation={}))},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.SetConnectionPointIndexHistoryItem=u.AddConnectionHistoryItem=void 0;var C=o(8),g=o(6),a=function(s){function l(d,h,v,x){var b=s.call(this)||this;return b.connectorKey=d.key,b.itemKey=h.key,b.connectionPointIndex=v,b.position=x,b}return I(l,s),l.prototype.redo=function(d){var h=d.model.findConnector(this.connectorKey),v=d.model.findItem(this.itemKey);d.addConnection(h,v,this.connectionPointIndex,this.position)},l.prototype.undo=function(d){var h=d.model.findConnector(this.connectorKey);d.deleteConnection(h,this.position)},l}(C.HistoryItem);u.AddConnectionHistoryItem=a;var p=function(s){function l(d,h,v){var x=s.call(this)||this;return x.connectorKey=d.key,x.connectionPointIndex=h,x.position=v,x}return I(l,s),l.prototype.redo=function(d){var h=d.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===g.ConnectorPosition.Begin?h.beginConnectionPointIndex:h.endConnectionPointIndex,d.setConnectionPointIndex(h,this.connectionPointIndex,this.position)},l.prototype.undo=function(d){var h=d.model.findConnector(this.connectorKey);d.setConnectionPointIndex(h,this.oldConnectionPointIndex,this.position)},l}(C.HistoryItem);u.SetConnectionPointIndexHistoryItem=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return I.isAlpha=function(C){return C>="a"&&C<="z"||C>="A"&&C<="Z"},I.isDigit=function(C){return C>="0"&&C<="9"},I.stringHashCode=function(C){var g=0;if(0===C.length)return g;for(var a=C.length,p=0;p<a;p++)g=(g<<5)-g+C.charCodeAt(p),g|=0;return g},I.endsAt=function(C,g){var a=C.length-1,p=g.length-1,s=a-p;if(s<0)return!1;for(;a>=s;a--,p--)if(C[a]!==g[p])return!1;return!0},I.startsAt=function(C,g){return C.substr(0,g.length)===g},I.stringInLowerCase=function(C){return C.toLowerCase()===C},I.stringInUpperCase=function(C){return C.toUpperCase()===C},I.atLeastOneSymbolInUpperCase=function(C){for(var g=0,a=void 0;a=C[g];g++)if(I.stringInUpperCase(a)&&!I.stringInLowerCase(a))return!0;return!1},I.getSymbolFromEnd=function(C,g){return C[C.length-g]},I.trim=function(C,g){if(void 0===g)return I.trimInternal(C,!0,!0);var a=g.join("");return C.replace(new RegExp("(^["+a+"]*)|(["+a+"]*$)","g"),"")},I.trimStart=function(C,g){if(void 0===g)return I.trimInternal(C,!0,!1);var a=g.join("");return C.replace(new RegExp("^["+a+"]*","g"),"")},I.trimEnd=function(C,g){if(void 0===g)return I.trimInternal(C,!1,!0);var a=g.join("");return C.replace(new RegExp("["+a+"]*$","g"),"")},I.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},I.repeat=function(C,g){return new Array(g<=0?0:g+1).join(C)},I.isNullOrEmpty=function(C){return!C||!C.length},I.padLeft=function(C,g,a){return I.repeat(a,Math.max(0,g-C.length))+C},I.trimInternal=function(C,g,a){var p=C.length;if(!p)return C;if(p<764833){var s=C;return g&&(s=s.replace(/^\s+/,"")),a&&(s=s.replace(/\s+$/,"")),s}var l=0;if(a)for(;p>0&&/\s/.test(C[p-1]);)p--;if(g&&p>0)for(;l<p&&/\s/.test(C[l]);)l++;return C.substring(l,p)},I}();u.StringUtils=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(49);u.isDefined=function(I){return null!=I},u.boolToInt=function(I){return I?1:0},u.boolToString=function(I){return I?"1":"0"},u.isNumber=function(I){return"number"==typeof I},u.isString=function(I){return"string"==typeof I},u.isNonNullString=function(I){return!!I},u.isEven=function(I){return I%2!=0},u.isOdd=function(I){return I%2==0},u.numberToStringBin=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(2),C,"0")},u.numberToStringHex=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(16),C,"0")}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ImageInfo=void 0;var c=o(83),I=function(){function C(g){this.url=void 0,this.base64=void 0,g&&(c.Base64Utils.checkPrependDataUrl(g)?this.base64=g:this.url=g),this.loadFailed=!1}return C.prototype.clone=function(){var g=new C;return g.url=this.url,g.base64=this.base64,g},Object.defineProperty(C.prototype,"isEmpty",{get:function(){return void 0===this.url&&void 0===this.base64},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"unableToLoad",{get:function(){return this.loadFailed},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"renderUrl",{get:function(){return this.base64||""},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"exportUrl",{get:function(){return this.base64?this.base64:this.url},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"actualUrl",{get:function(){return this.url?this.url:this.base64},enumerable:!1,configurable:!0}),Object.defineProperty(C,"transparentOnePixelImage",{get:function(){return this.transparentWhiteImage1_1},enumerable:!1,configurable:!0}),C.prototype.loadBase64Content=function(g){this.base64=c.Base64Utils.normalizeToDataUrl(g,"image/png")},C.prototype.setUnableToLoadFlag=function(){this.loadFailed=!0},C.transparentWhiteImage1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAANSURBVBhXY/j///9/AAn7A/0FQ0XKAAAAAElFTkSuQmCC",C}();u.ImageInfo=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalSideCalculatorBase=void 0;var c=o(13),I=o(9),C=o(6),g=function(){function a(p){this.parent=p}return Object.defineProperty(a.prototype,"connector",{get:function(){return this.parent.connector},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"beginRect",{get:function(){return this.parent.beginRect},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"endRect",{get:function(){return this.parent.endRect},enumerable:!1,configurable:!0}),a.prototype.getBeginOffsetPoints=function(p,s,l,d){if(s=this.getCorrectOriginPoint(s,d),p!==I.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(p,s,l,d);if(this.isBeginEndOverlappedPoints(s,l))return this.getOverlappedPointsOffsetPoints(p,s,l,d);if(this.isBeginEndOverlapped())return this.getBeginOverlappedShapeOffsetPoints(p,s,l,d)}else if(this.isOriginRectContainsTargetPoint(d,l))return this.getOverlappedPointsOffsetPoints(p,s,l,d);return this.isOnSidePoint(s,l)?this.getBeginOnSideOffsetPoints(p,s,l,d):this.getBeginOffSideOffsetPoints(p,s,l,d)},a.prototype.getEndOffsetPoints=function(p,s,l,d){if(s=this.getCorrectOriginPoint(s,d),p!==I.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(p,s,l,d);if(this.isBeginEndOverlappedPoints(l,s))return this.getOverlappedPointsOffsetPoints(p,s,l,d);if(this.isBeginEndOverlapped())return this.getEndOverlappedShapeOffsetPoints(p,s,l,d)}else if(this.isOriginRectContainsTargetPoint(d,l))return this.getOverlappedPointsOffsetPoints(p,s,l,d);return this.isOnSidePoint(s,l)?this.getEndOnSideOffsetPoints(p,s,l,d):this.getEndOffSideOffsetPoints(p,s,l,d)},a.prototype.getSide=function(p,s){return Math.abs(s.x-p.x)>Math.abs(s.y-p.y)?s.x>p.x?I.ConnectionPointSide.East:I.ConnectionPointSide.West:s.y>p.y?I.ConnectionPointSide.South:I.ConnectionPointSide.North},a.prototype.getSideCalculator=function(p,s){return this.parent.getSideCalculator(this.getSide(p,s))},a.prototype.getMinOffset=function(){return C.Connector.minOffset},a.prototype.isBeginEndSame=function(){return this.connector.beginItem===this.connector.endItem},a.prototype.isBeginEndOverlapped=function(){return this.beginRect&&this.endRect&&c.Rectangle.areIntersected(this.beginRect,this.endRect)},a.prototype.isBeginEndOverlappedX=function(){return this.beginRect&&this.endRect&&!!c.Rectangle.getHorizIntersection(this.beginRect,this.endRect)},a.prototype.isBeginEndOverlappedY=function(){return this.beginRect&&this.endRect&&!!c.Rectangle.getVertIntersection(this.beginRect,this.endRect)},a.prototype.isBeginEndOverlappedPoints=function(p,s){return this.beginRect&&this.endRect&&(this.beginRect.containsPoint(s)||this.endRect.containsPoint(p))},a.prototype.isOriginRectContainsTargetPoint=function(p,s){return p&&s&&p.containsPoint(s)},a}();u.ConnectorPointsOrthogonalSideCalculatorBase=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.AddShapeHistoryItem=void 0;var C=o(8),g=o(14),a=function(p){function s(l,d,h,v){var x=p.call(this)||this;return x.shapeDescription=l,x.position=d,x.text=h,x.dataKey=v,x}return I(s,p),s.prototype.redo=function(l){var d=new g.Shape(this.shapeDescription,this.position);"string"==typeof this.text&&(d.text=this.text),void 0!==this.dataKey&&(d.dataKey=this.dataKey),l.addShape(d,this.shapeKey),this.shapeKey=d.key},s.prototype.undo=function(l){l.deleteShape(l.model.findShape(this.shapeKey),!0)},s}(C.HistoryItem);u.AddShapeHistoryItem=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.GraphIterator=u.FastGraph=u.Graph=void 0;var C=o(38),g=o(14),a=o(41),p=o(90),s=function(){function v(x,b){this.nodeMap={},this.edgeMap={},this.nodes=[],this.edges=[],this.onInit(),x.forEach(this.addNode.bind(this)),b.forEach(this.addEdge.bind(this))}return Object.defineProperty(v.prototype,"items",{get:function(){return this.nodes.map(this.getNode.bind(this))},enumerable:!1,configurable:!0}),v.prototype.onInit=function(){},v.prototype.addEdge=function(x){this.edgeMap[x.key]=x,this.edges.push(x)},v.prototype.addNode=function(x){this.nodeMap[x.key]=x,this.nodes.push(x.key)},v.prototype.getNode=function(x){return this.nodeMap[x]},v.prototype.getEdge=function(x){return this.edgeMap[x]},v.prototype.isEmpty=function(){return!this.nodes.length&&!this.edges.length},v.prototype.getAdjacentEdges=function(x,b){return void 0===b&&(b=C.ConnectionMode.OutgoingAndIncoming),this.edges.filter(function(y){return b&C.ConnectionMode.Incoming&&y.to===x||b&C.ConnectionMode.Outgoing&&y.from===x})},v}(),l=function(v){function x(){return null!==v&&v.apply(this,arguments)||this}return I(x,v),x.prototype.cast=function(b,y){var E=this;return new x(this.nodes.map(function(S){return b(E.getNode(S))}),this.edges.map(function(S){return y?y(S):S}))},x.prototype.getConnectedComponents=function(){var b=this.createIterator(C.ConnectionMode.OutgoingAndIncoming);b.visitEachEdgeOnce=!0;for(var y=[],E=function(w){var T=[],k=[];b.onNode=function(R){return T.push(R)},b.onEdge=function(R){return k.push(R)},b.iterate(S.nodes[w]),T.length&&y.push(new x(T,k))},S=this,O=0;O<this.nodes.length;O++)E(O);return y},x.prototype.createIterator=function(b){var y=new h(this,b);return y.comparer=function(E,S){return E.weight-S.weight},y},x.prototype.getSpanningGraph=function(b,y,E){var S=this;if(void 0===E&&(E=void 0),!this.nodes.length)return new x([],[]);E||(E=function(P){return P.weight});var O=[],w=new p.HashSet,T=new p.HashSet([],function(P){return P.getHashKey()});for(this.addNodeToSpanningGraph(b,y,O,w,T,E);O.length&&w.length!==this.nodes.length;){var k=O.shift();T.tryPush(k);var R=w.contains(k.from)?k.to:k.from;this.addNodeToSpanningGraph(R,y,O,w,T,E),O=O.filter(function(P){return!w.contains(P.from)||!w.contains(P.to)})}return new x(w.list().map(function(P){return S.getNode(P)}),T.list())},x.prototype.addNodeToSpanningGraph=function(b,y,E,S,O,w){S.tryPush(b),this.getAdjacentEdges(b,y).filter(function(T){return!O.contains(T)}).forEach(function(T){var k=w(T),R=a.SearchUtils.binaryIndexOf(E,function(P){return P.weight-k});for(R=R<0?~R:R;R<E.length&&w(E[R])===k;)R++;E.splice(R,0,new C.Edge(T.key,T.from,T.to,k))})},x.create=function(b,y){return new x(b,y.filter(function(E){return E.beginItem&&E.endItem instanceof g.Shape&&E.endItem&&E.endItem instanceof g.Shape&&E.beginItem!==E.endItem}).map(function(E){return new C.Edge(E.key,E.beginItem&&E.beginItem.key,E.endItem&&E.endItem.key)}))},x}(s);u.Graph=l;var d=function(v){function x(){return null!==v&&v.apply(this,arguments)||this}return I(x,v),x.prototype.onInit=function(){this.parentToChildren={},this.childToParents={}},x.prototype.addEdge=function(b){v.prototype.addEdge.call(this,b),(this.parentToChildren[b.from]||(this.parentToChildren[b.from]=[])).push(b.to),(this.childToParents[b.to]||(this.childToParents[b.to]=[])).push(b.from)},x.prototype.getChildren=function(b){return this.parentToChildren[b]||[]},x.prototype.getParents=function(b){return this.childToParents[b]||[]},x.prototype.createIterator=function(b){return new h(this,b)},x}(s);u.FastGraph=d;var h=function(){function v(x,b){void 0===b&&(b=C.ConnectionMode.OutgoingAndIncoming),this.graph=x,this.connectionMode=b,this.visitEachEdgeOnce=!0,this.visitEachNodeOnce=!0,this.visitedNodes={},this.visitedEdges={}}return v.prototype.iterate=function(x){if(!this.visitEachNodeOnce&&!this.visitEachEdgeOnce&&!this.skipNode)throw"skipNode or visitEachNodeOnce or visitEachEdgeOnce must be set to avoid SOF";this.iterateCore(x)},v.prototype.iterateCore=function(x){var b=this,y=this.graph.getNode(x);if(!(!y||this.skipNode&&this.skipNode(y)||this.visitEachNodeOnce&&this.isNodeVisited(x))){this.visitedNodes[x]=!0,this.onNode&&this.onNode(y);var E=this.graph.getAdjacentEdges(x,this.connectionMode);if(this.skipEdge&&(E=E.filter(function(w){return!b.skipEdge(w)})),this.connectionMode&C.ConnectionMode.Outgoing){var S=E.filter(function(w){return w.from===x});this.comparer&&S.sort(this.comparer),S.forEach(function(w){b.visitEachEdgeOnce&&b.visitedEdges[w.key]||(b.visitedEdges[w.key]=!0,b.onEdge&&b.onEdge(w,!0),b.iterateCore(w.to),b.onAfterEdge&&b.onAfterEdge(w,!0))})}if(this.onAllEdges&&this.onAllEdges(y,!0),this.connectionMode&C.ConnectionMode.Incoming){var O=E.filter(function(w){return w.to===x});this.comparer&&O.sort(this.comparer),O.forEach(function(w){b.visitEachEdgeOnce&&b.visitedEdges[w.key]||(b.visitedEdges[w.key]=!0,b.onEdge&&b.onEdge(w,!1),b.iterateCore(w.from),b.onAfterEdge&&b.onAfterEdge(w,!1))})}this.onAllEdges&&this.onAllEdges(y,!1)}},v.prototype.isNodeVisited=function(x){return!!this.visitedNodes[x]},v.prototype.isEdgeVisited=function(x){return!!this.visitedEdges[x]},v}();u.GraphIterator=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.EllipsePrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x,b){var y=a.call(this,v,x,void 0,b)||this;return y.cx=s,y.cy=l,y.rx=d,y.ry=h,y}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"ellipse")},p.prototype.applyElementProperties=function(s,l){this.setUnitAttribute(s,"cx",this.cx),this.setUnitAttribute(s,"cy",this.cy),this.setUnitAttribute(s,"rx",this.rx),this.setUnitAttribute(s,"ry",this.ry),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,l)},p}(o(24).SvgPrimitive);u.EllipsePrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ClipPathPrimitive=void 0;var C=o(15),g=function(a){function p(s,l){var d=a.call(this)||this;return d.id=s,d.children=l,d}return I(p,a),p.prototype.createMainElement=function(){var s=document.createElementNS(C.svgNS,"clipPath");return s.setAttribute("id",this.id),s},p.prototype.applyElementProperties=function(s,l){this.id&&s.setAttribute("id",this.id),a.prototype.applyElementProperties.call(this,s,l)},p}(o(24).SvgPrimitive);u.ClipPathPrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportImportCommandBase=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a}(o(10).SimpleCommandBase);u.ExportImportCommandBase=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramModelOperation=u.Diagnostics=u.RenderHelper=u.DiagramLocalizationService=u.NativeConnector=u.NativeShape=u.ShapeType=u.ColorUtils=u.PageOrientation=u.ConnectorPosition=u.ConnectorLineOption=u.ConnectorLineEnding=u.AutoZoomMode=u.Browser=u.UnitConverter=u.EventDispatcher=u.DataLayoutOrientation=u.DataLayoutType=u.ShapeCategories=u.ShapeTypes=u.DiagramUnit=u.default=u.DiagramControl=u.DiagramCommand=u.Point=u.Size=void 0;var c=o(82);Object.defineProperty(u,"DiagramCommand",{enumerable:!0,get:function(){return c.DiagramCommand}});var I=o(301);Object.defineProperty(u,"DiagramControl",{enumerable:!0,get:function(){return I.DiagramControl}}),Object.defineProperty(u,"default",{enumerable:!0,get:function(){return I.DiagramControl}});var C=o(2);Object.defineProperty(u,"Size",{enumerable:!0,get:function(){return C.Size}});var g=o(0);Object.defineProperty(u,"Point",{enumerable:!0,get:function(){return g.Point}});var a=o(3);Object.defineProperty(u,"EventDispatcher",{enumerable:!0,get:function(){return a.EventDispatcher}});var p=o(1);Object.defineProperty(u,"ShapeTypes",{enumerable:!0,get:function(){return p.ShapeTypes}}),Object.defineProperty(u,"ShapeCategories",{enumerable:!0,get:function(){return p.ShapeCategories}}),Object.defineProperty(u,"ShapeType",{enumerable:!0,get:function(){return p.ShapeType}});var s=o(12);Object.defineProperty(u,"UnitConverter",{enumerable:!0,get:function(){return s.UnitConverter}});var l=o(18);Object.defineProperty(u,"Browser",{enumerable:!0,get:function(){return l.Browser}});var d=o(28);Object.defineProperty(u,"AutoZoomMode",{enumerable:!0,get:function(){return d.AutoZoomMode}});var h=o(103);Object.defineProperty(u,"DataLayoutType",{enumerable:!0,get:function(){return h.DataLayoutType}});var v=o(20);Object.defineProperty(u,"DataLayoutOrientation",{enumerable:!0,get:function(){return v.DataLayoutOrientation}}),o(380);var x=o(32);Object.defineProperty(u,"ConnectorLineEnding",{enumerable:!0,get:function(){return x.ConnectorLineEnding}}),Object.defineProperty(u,"ConnectorLineOption",{enumerable:!0,get:function(){return x.ConnectorLineOption}});var b=o(22);Object.defineProperty(u,"ColorUtils",{enumerable:!0,get:function(){return b.ColorUtils}});var y=o(61);Object.defineProperty(u,"Diagnostics",{enumerable:!0,get:function(){return y.Diagnostics}});var E=o(84);Object.defineProperty(u,"NativeShape",{enumerable:!0,get:function(){return E.NativeShape}}),Object.defineProperty(u,"NativeConnector",{enumerable:!0,get:function(){return E.NativeConnector}});var S=o(36);Object.defineProperty(u,"DiagramLocalizationService",{enumerable:!0,get:function(){return S.DiagramLocalizationService}});var O=o(15);Object.defineProperty(u,"RenderHelper",{enumerable:!0,get:function(){return O.RenderHelper}});var w=o(47);Object.defineProperty(u,"DiagramUnit",{enumerable:!0,get:function(){return w.DiagramUnit}}),Object.defineProperty(u,"PageOrientation",{enumerable:!0,get:function(){return w.PageOrientation}});var T=o(16);Object.defineProperty(u,"DiagramModelOperation",{enumerable:!0,get:function(){return T.DiagramModelOperation}});var k=o(6);Object.defineProperty(u,"ConnectorPosition",{enumerable:!0,get:function(){return k.ConnectorPosition}})},function(he,u,o){"use strict";o.r(u),o.d(u,"__extends",function(){return I}),o.d(u,"__assign",function(){return C}),o.d(u,"__rest",function(){return g}),o.d(u,"__decorate",function(){return a}),o.d(u,"__param",function(){return p}),o.d(u,"__metadata",function(){return s}),o.d(u,"__awaiter",function(){return l}),o.d(u,"__generator",function(){return d}),o.d(u,"__createBinding",function(){return h}),o.d(u,"__exportStar",function(){return v}),o.d(u,"__values",function(){return x}),o.d(u,"__read",function(){return b}),o.d(u,"__spread",function(){return y}),o.d(u,"__spreadArrays",function(){return E}),o.d(u,"__await",function(){return S}),o.d(u,"__asyncGenerator",function(){return O}),o.d(u,"__asyncDelegator",function(){return w}),o.d(u,"__asyncValues",function(){return T}),o.d(u,"__makeTemplateObject",function(){return k}),o.d(u,"__importStar",function(){return P}),o.d(u,"__importDefault",function(){return B}),o.d(u,"__classPrivateFieldGet",function(){return W}),o.d(u,"__classPrivateFieldSet",function(){return z});var c=function(V,U){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(K,Y){K.__proto__=Y}||function(K,Y){for(var J in Y)Object.prototype.hasOwnProperty.call(Y,J)&&(K[J]=Y[J])})(V,U)};function I(V,U){function K(){this.constructor=V}c(V,U),V.prototype=null===U?Object.create(U):(K.prototype=U.prototype,new K)}var C=function(){return(C=Object.assign||function(V){for(var U,K=1,Y=arguments.length;K<Y;K++)for(var J in U=arguments[K])Object.prototype.hasOwnProperty.call(U,J)&&(V[J]=U[J]);return V}).apply(this,arguments)};function g(V,U){var K={};for(var Y in V)Object.prototype.hasOwnProperty.call(V,Y)&&U.indexOf(Y)<0&&(K[Y]=V[Y]);if(null!=V&&"function"==typeof Object.getOwnPropertySymbols){var J=0;for(Y=Object.getOwnPropertySymbols(V);J<Y.length;J++)U.indexOf(Y[J])<0&&Object.prototype.propertyIsEnumerable.call(V,Y[J])&&(K[Y[J]]=V[Y[J]])}return K}function a(V,U,K,Y){var J,j=arguments.length,ee=j<3?U:null===Y?Y=Object.getOwnPropertyDescriptor(U,K):Y;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)ee=Reflect.decorate(V,U,K,Y);else for(var G=V.length-1;G>=0;G--)(J=V[G])&&(ee=(j<3?J(ee):j>3?J(U,K,ee):J(U,K))||ee);return j>3&&ee&&Object.defineProperty(U,K,ee),ee}function p(V,U){return function(K,Y){U(K,Y,V)}}function s(V,U){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(V,U)}function l(V,U,K,Y){return new(K||(K=Promise))(function(J,j){function ee(Z){try{q(Y.next(Z))}catch(X){j(X)}}function G(Z){try{q(Y.throw(Z))}catch(X){j(X)}}function q(Z){var X;Z.done?J(Z.value):(X=Z.value,X instanceof K?X:new K(function(M){M(X)})).then(ee,G)}q((Y=Y.apply(V,U||[])).next())})}function d(V,U){var K,Y,J,j,ee={label:0,sent:function(){if(1&J[0])throw J[1];return J[1]},trys:[],ops:[]};return j={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(j[Symbol.iterator]=function(){return this}),j;function G(q){return function(Z){return function(X){if(K)throw new TypeError("Generator is already executing.");for(;ee;)try{if(K=1,Y&&(J=2&X[0]?Y.return:X[0]?Y.throw||((J=Y.return)&&J.call(Y),0):Y.next)&&!(J=J.call(Y,X[1])).done)return J;switch(Y=0,J&&(X=[2&X[0],J.value]),X[0]){case 0:case 1:J=X;break;case 4:return ee.label++,{value:X[1],done:!1};case 5:ee.label++,Y=X[1],X=[0];continue;case 7:X=ee.ops.pop(),ee.trys.pop();continue;default:if(!(J=(J=ee.trys).length>0&&J[J.length-1])&&(6===X[0]||2===X[0])){ee=0;continue}if(3===X[0]&&(!J||X[1]>J[0]&&X[1]<J[3])){ee.label=X[1];break}if(6===X[0]&&ee.label<J[1]){ee.label=J[1],J=X;break}if(J&&ee.label<J[2]){ee.label=J[2],ee.ops.push(X);break}J[2]&&ee.ops.pop(),ee.trys.pop();continue}X=U.call(V,ee)}catch(M){X=[6,M],Y=0}finally{K=J=0}if(5&X[0])throw X[1];return{value:X[0]?X[1]:void 0,done:!0}}([q,Z])}}}var h=Object.create?function(V,U,K,Y){void 0===Y&&(Y=K),Object.defineProperty(V,Y,{enumerable:!0,get:function(){return U[K]}})}:function(V,U,K,Y){void 0===Y&&(Y=K),V[Y]=U[K]};function v(V,U){for(var K in V)"default"===K||Object.prototype.hasOwnProperty.call(U,K)||h(U,V,K)}function x(V){var U="function"==typeof Symbol&&Symbol.iterator,K=U&&V[U],Y=0;if(K)return K.call(V);if(V&&"number"==typeof V.length)return{next:function(){return V&&Y>=V.length&&(V=void 0),{value:V&&V[Y++],done:!V}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(V,U){var K="function"==typeof Symbol&&V[Symbol.iterator];if(!K)return V;var Y,J,j=K.call(V),ee=[];try{for(;(void 0===U||U-- >0)&&!(Y=j.next()).done;)ee.push(Y.value)}catch(G){J={error:G}}finally{try{Y&&!Y.done&&(K=j.return)&&K.call(j)}finally{if(J)throw J.error}}return ee}function y(){for(var V=[],U=0;U<arguments.length;U++)V=V.concat(b(arguments[U]));return V}function E(){for(var V=0,U=0,K=arguments.length;U<K;U++)V+=arguments[U].length;var Y=Array(V),J=0;for(U=0;U<K;U++)for(var j=arguments[U],ee=0,G=j.length;ee<G;ee++,J++)Y[J]=j[ee];return Y}function S(V){return this instanceof S?(this.v=V,this):new S(V)}function O(V,U,K){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Y,J=K.apply(V,U||[]),j=[];return Y={},ee("next"),ee("throw"),ee("return"),Y[Symbol.asyncIterator]=function(){return this},Y;function ee(M){J[M]&&(Y[M]=function(oe){return new Promise(function(fe,Te){j.push([M,oe,fe,Te])>1||G(M,oe)})})}function G(M,oe){try{(fe=J[M](oe)).value instanceof S?Promise.resolve(fe.value.v).then(q,Z):X(j[0][2],fe)}catch(Te){X(j[0][3],Te)}var fe}function q(M){G("next",M)}function Z(M){G("throw",M)}function X(M,oe){M(oe),j.shift(),j.length&&G(j[0][0],j[0][1])}}function w(V){var U,K;return U={},Y("next"),Y("throw",function(J){throw J}),Y("return"),U[Symbol.iterator]=function(){return this},U;function Y(J,j){U[J]=V[J]?function(ee){return(K=!K)?{value:S(V[J](ee)),done:"return"===J}:j?j(ee):ee}:j}}function T(V){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U,K=V[Symbol.asyncIterator];return K?K.call(V):(V=x(V),U={},Y("next"),Y("throw"),Y("return"),U[Symbol.asyncIterator]=function(){return this},U);function Y(J){U[J]=V[J]&&function(j){return new Promise(function(ee,G){var q,Z,X;q=ee,Z=G,X=(j=V[J](j)).done,Promise.resolve(j.value).then(function(oe){q({value:oe,done:X})},Z)})}}}function k(V,U){return Object.defineProperty?Object.defineProperty(V,"raw",{value:U}):V.raw=U,V}var R=Object.create?function(V,U){Object.defineProperty(V,"default",{enumerable:!0,value:U})}:function(V,U){V.default=U};function P(V){if(V&&V.__esModule)return V;var U={};if(null!=V)for(var K in V)"default"!==K&&Object.prototype.hasOwnProperty.call(V,K)&&h(U,V,K);return R(U,V),U}function B(V){return V&&V.__esModule?V:{default:V}}function W(V,U){if(!U.has(V))throw new TypeError("attempted to get private field on non-instance");return U.get(V)}function z(V,U,K){if(!U.has(V))throw new TypeError("attempted to set private field on non-instance");return U.set(V,K),K}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(C,g){void 0===C&&(C=0),void 0===g&&(g=0),this.x=C,this.y=g}return Object.defineProperty(I.prototype,"length",{get:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},enumerable:!0,configurable:!0}),I.fromPoints=function(C,g){return new I(g.x-C.x,g.y-C.y)},I.fromSegment=function(C){return new I(C.endPoint.x-C.startPoint.x,C.endPoint.y-C.startPoint.y)},I.prototype.normalize=function(){var C=this.length;return 0!==C&&(this.x/=C,this.y/=C),this},I.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},Object.defineProperty(I,"axisX",{get:function(){return new I(1,0)},enumerable:!0,configurable:!0}),Object.defineProperty(I,"axisY",{get:function(){return new I(0,1)},enumerable:!0,configurable:!0}),I.angleBetween=function(C,g){var a=I.scalarProduct(C,g)/(C.length*g.length);return Math.acos(a)},I.scalarProduct=function(C,g){return C.x*g.x+C.y*g.y},I}();u.Vector=c},function(he,u,o){"use strict";var c,C;Object.defineProperty(u,"__esModule",{value:!0}),u.Diagnostics=void 0,(C=c||(c={}))[C.Disabled=0]="Disabled",C[C.Console=1]="Console",C[C.Document=2]="Document";var I=function(){function C(){}return C.beginAverage=function(g){this.enableLogsAndTimers&&(this.lastAverageGroupName=g)},C.endAverage=function(){this.enableLogsAndTimers&&(this.lastAverageGroupName=null)},C.tryLogAverage=function(g){var a=this;if(this.lastAverageGroupName!==g){var p=Object.keys(this.timers).map(function(l){return a.timers[l]}).filter(function(l){return l.groupName===g});if(!p.filter(function(l){return!l.endTime}).length){var s=p.reduce(function(l,d){return l+(d.endTime-d.startTime)},0)/p.length;this.log("average: "+s)}}},C.timer=function(g){this.enableLogsAndTimers&&(this.lastCreatedTimer={message:g,startTime:performance.now(),groupName:this.lastAverageGroupName})},C.endTimer=function(){var g=this;if(this.enableLogsAndTimers){var a=this.lastCreatedTimer,p=setTimeout(function(){a.endTime=performance.now(),g.showMessage('timer "'+a.message+'": '+(a.endTime-a.startTime)),a.groupName&&g.tryLogAverage(a.groupName)},0);this.timers[p]=a,this.lastCreatedTimer=null}},C.logPerfInfo=function(){var g=document.querySelector(".dxdi-control > svg").querySelectorAll("*").length,a=performance.memory;this.log("nodes: "+g.toLocaleString()+(a?" memory: ":"")+(a?a.usedJSHeapSize.toLocaleString():""))},C.log=function(g){this.showMessage(g)},C.showMessage=function(g){switch(C.mode){case c.Console:console.log(g);break;case c.Document:var a=this.getElement().value;if(this.lastMessage===g){var p=a.indexOf("\r\n");p<0&&(p=a.indexOf("\n"));var s=a.substr(0,p);/( \()([0-9]+)(\))$/.test(s)?s=s.replace(/( \()([0-9]+)(\))$/,function(l,d,h,v){return d+ ++h+v}):s+=" (1)",this.getElement().value=s+a.substr(p)}else this.getElement().value=g+"\r\n"+a,this.lastMessage=g}},C.getElement=function(){var g=this;if(!this.el){this.el=document.createElement("textarea"),this.el.style.top="0px",this.el.style.right="0px",this.el.style.position="fixed",this.el.style.background="transparent",this.el.style.fontSize="11px",this.el.style.fontFamily="monospace",this.el.style.overflow="auto",this.el.style.width="400px",document.body.appendChild(this.el);var a=document.createElement("button");a.innerHTML="x",a.addEventListener("click",function(){g.el.value="",g.lastMessage=""}),a.style.top="0px",a.style.right="400px",a.style.position="fixed",a.style.opacity="0.1",document.body.appendChild(a)}return this.el},C.mode=c.Document,C.optimizeUsingRAF=!0,C.optimizeLayers=!0,C.timers={},C.enableLogsAndTimers=!1,C}();u.Diagnostics=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramModel=void 0;var c=o(14),I=o(6),C=o(3),g=o(13),a=o(2),p=o(0),s=o(46),l=o(22),d=o(47),h=o(4),v=function(){function x(b){void 0===b&&(b=new a.Size(8391,11906)),this.items=[],this.itemIndexByKey={},this.keyCounter=0,this.pageSize=new a.Size(8391,11906),this.pageLandscape=!1,this.pageColor=x.defaultPageColor,this.units=d.DiagramUnit.In,this.snapStartPoint=new p.Point(0,0),this.pageSize=b,this.size=this.pageSize.clone(),this.rectangle=g.Rectangle.fromGeometry(new p.Point(0,0),new a.Size(0,0)),this.initializeKeyCounter()}return Object.defineProperty(x.prototype,"pageWidth",{get:function(){return this.pageLandscape?this.pageSize.height:this.pageSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"pageHeight",{get:function(){return this.pageLandscape?this.pageSize.width:this.pageSize.height},enumerable:!1,configurable:!0}),x.prototype.getRectangle=function(b){return b&&(this.rectangle=h.ModelUtils.createRectangle(this.items)),this.rectangle},x.prototype.pushItem=function(b){var y=this.items.push(b);this.itemIndexByKey[b.key]=y-1,b instanceof c.Shape&&!b.image.isEmpty&&this.cacheShapeImage(b)},x.prototype.removeItem=function(b){var y=this.getItemIndex(b);delete this.itemIndexByKey[b.key],this.items.splice(y,1),this.updateIndicesHash(y)},x.prototype.updateIndicesHash=function(b){for(var y=b;y<this.items.length;y++)this.itemIndexByKey[this.items[y].key]=y},x.prototype.getItemIndex=function(b){return this.itemIndexByKey[b.key]},x.prototype.findShape=function(b){var y=this.findItem(b);return y instanceof c.Shape?y:void 0},x.prototype.findShapesCore=function(b){var y=[];return this.items.forEach(function(E){E instanceof c.Shape&&b(E)&&y.push(E)}),y},x.prototype.findShapeCore=function(b){for(var y=0;y<this.items.length;y++){var E=this.items[y];if(E instanceof c.Shape&&b(E))return E}},x.prototype.findShapeAtPosition=function(b){return this.findShapeCore(function(y){return y.position.equals(b)})},x.prototype.findShapeByDataKey=function(b){return this.findShapeCore(function(y){return y.dataKey===b})},x.prototype.findShapesByImageUrl=function(b){return this.findShapesCore(function(y){return y.image.url===b})},x.prototype.findShapesByDescription=function(b){return this.findShapesCore(function(y){return y.description.key===b.key})},x.prototype.cacheShapeImage=function(b){var y=s.ImageCache.instance.createUnloadedInfoByShapeImageInfo(b.image);y.isLoaded&&b.image.loadBase64Content(y.base64)},x.prototype.loadAllImages=function(b){s.ImageCache.instance.loadAllImages(b)},x.prototype.findContainer=function(b){var y=this.findShape(b);return y&&y.enableChildren?y:void 0},x.prototype.findNearestContainer=function(b){var y=this.findShape(b);return y?y.enableChildren?y:y.container:void 0},x.prototype.getChildren=function(b){var y=this;return b.children.map(function(E){return y.findItem(E.key)}).filter(function(E){return E})},x.prototype.findChild=function(b,y,E){var S,O=this;return void 0===E&&(E=!0),b.children.forEach(function(w){S||(w.key!==y?E&&w instanceof c.Shape&&(S=O.findChild(w,y,E)):S=w)}),S},x.prototype.findItemContainerCore=function(b,y){for(var E=b.container;E&&y&&!y(E);)E=E.container;return E},x.prototype.findItemContainer=function(b){return this.findItemContainerCore(b)},x.prototype.findItemCollapsedContainer=function(b){return this.findItemContainerCore(b,function(y){return!y.expanded})},x.prototype.findItemTopCollapsedContainer=function(b){for(var y,E=b.container;E;)E.expanded||(y=E),E=E.container;return y},x.prototype.isContainerItem=function(b,y){return void 0!==this.findItemContainerCore(y,function(E){return E.key===b.key})},x.prototype.findConnector=function(b){var y=this.findItem(b);return y instanceof I.Connector?y:void 0},x.prototype.findConnectorCore=function(b){for(var y=0;y<this.items.length;y++){var E=this.items[y];if(E instanceof I.Connector&&b(E))return E}},x.prototype.findConnectorAtPoints=function(b){return this.findConnectorCore(function(y){return C.GeometryUtils.arePointsEqual(y.points,b)})},x.prototype.findConnectorByDataKey=function(b){return this.findConnectorCore(function(y){return y.dataKey===b})},x.prototype.findConnectorByBeginEndDataKeys=function(b,y){return this.findConnectorCore(function(E){return E.beginItem&&E.beginItem.dataKey===b&&E.endItem&&E.endItem.dataKey===y})},x.prototype.findConnectorsCore=function(b){var y=[];return this.items.forEach(function(E){E instanceof I.Connector&&b(E)&&y.push(E)}),y},x.prototype.findConnectorsWithoutBeginItem=function(){return this.findConnectorsCore(function(b){return!b.beginItem})},x.prototype.findConnectorsWithoutEndItem=function(){return this.findConnectorsCore(function(b){return!b.endItem})},x.prototype.findItem=function(b){return this.items[this.itemIndexByKey[b]]},x.prototype.findItemByDataKey=function(b){return this.findItemCore(function(y){return y.dataKey===b})},x.prototype.findItemCore=function(b){for(var y=0;y<this.items.length;y++)if(b(this.items[y]))return this.items[y]},x.isIntersectedItems=function(b,y){var E=!1;return b instanceof c.Shape?E=y.intersectedByRect(b.rectangle):b instanceof I.Connector&&b.getSegments().forEach(function(S){y instanceof c.Shape?E=E||S.isIntersectedByRect(y.rectangle):y instanceof I.Connector&&y.getSegments().forEach(function(O){E=E||S.isIntersected(O)})}),E},x.prototype.getIntersectItems=function(b){var y=[];return this.items.forEach(function(E){E.container===b.container&&(b===E||E instanceof I.Connector&&-1!==b.attachedConnectors.indexOf(E)||!x.isIntersectedItems(E,b)||y.push(E))}),y},x.prototype.getIntersectItemsMinZIndex=function(b){return this.getIntersectItems(b).map(function(y){return y.zIndex}).reduce(function(y,E){return Math.min(y,E)},Number.MAX_VALUE)},x.prototype.getIntersectItemsMaxZIndex=function(b){return this.getIntersectItems(b).map(function(y){return y.zIndex}).reduce(function(y,E){return Math.max(y,E)},-Number.MAX_VALUE)},x.prototype.iterateItems=function(b){this.items.forEach(b)},x.prototype.getNextKey=function(){return(this.keyCounter++).toString()},x.prototype.initializeKeyCounter=function(){this.keyCounter=this.items.reduce(function(b,y){var E=parseInt(y.key);return Math.max(b,isNaN(E)?0:E+1)},this.items.length)},x.defaultPageColor=l.ColorUtils.LIGHT_COLOR,x}();u.DiagramModel=v},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.TextPrimitive270degRenderHelper=u.TextPrimitive180degRenderHelper=u.TextPrimitive90degRenderHelper=u.TextPrimitiveRenderHelper=u.TextPrimitive=u.TextAngle=void 0;var C,y,g=o(12),a=o(15),p=o(24),s=o(17),l=o(64);(y=C=u.TextAngle||(u.TextAngle={}))[y.Angle0deg=0]="Angle0deg",y[y.Angle90deg=90]="Angle90deg",y[y.Angle180deg=180]="Angle180deg",y[y.Angle270deg=270]="Angle270deg";var d=function(y){function E(S,O,w,T,k,R,P,B,W,z,V,U,K){var Y=y.call(this,B,"",z,K)||this;return Y.x=S,Y.y=O,Y.text=w,Y.owner=T,Y.textWidth=k,Y.textHeight=R,Y.textSpacing=P,Y.reverseTextAhchor=W,Y.angle=U,Y.filterId=V,Y.textSegmens=l.textToParagraphs(Y.text),Y.renderHelper=Y.createRenderHelper(),void 0!==Y.textWidth&&void 0!==Y.textWidth&&(Y.x=Y.renderHelper.getTextX(Y.x),Y.y=Y.renderHelper.getTextY(Y.y)),Y}return I(E,y),E.prototype.createMainElement=function(){return document.createElementNS(a.svgNS,"text")},E.prototype.applyElementProperties=function(S,O){this.setUnitAttribute(S,"x",this.x),this.setUnitAttribute(S,"y",this.y),this.filterId&&S.setAttribute("filter",s.RenderUtils.getUrlPathById(this.filterId)),y.prototype.applyElementProperties.call(this,S,O),S.getAttribute("appliedText")!==this.text||S.getAttribute("appliedSize")!==(this.fitToSize&&this.fitToSize.toString())?(this.createTSpanElements(S,O),S.setAttribute("appliedText",this.text),S.setAttribute("appliedSize",this.fitToSize&&this.fitToSize.toString())):this.prepareTSpanElements(S),this.renderHelper.prepareMainElement(S,this.x,this.y)},E.prototype.createTSpanElements=function(S,O){var w=this;s.RenderUtils.removeContent(S),this.textSegmens.forEach(function(k,R){if(!k&&w.textSegmens.length>1)w.createTSpanElement(S).textContent=" ";else if(w.fitToSize){var P=l.textToWords(k),B=l.wordsByLines(g.UnitConverter.twipsToPixels(w.fitToSize),P,function(){return O.measureWords(P,w.style,w.owner)});B.forEach(function(W){w.createTSpanElement(S).textContent=W}),!B.length&&(w.createTSpanElement(S).textContent=" ")}else w.createTSpanElement(S).textContent=k});var T=S.firstChild;T&&this.prepareFirstTSpanElement(T,S.childNodes.length)},E.prototype.createTSpanElement=function(S){var O=document.createElementNS(a.svgNS,"tspan");return S.appendChild(O),this.prepareTSpanElement(O),O},E.prototype.prepareTSpanElements=function(S){for(var O=0;O<S.childNodes.length;O++)this.prepareTSpanElement(S.childNodes[O]);var T=S.firstChild;T&&this.prepareFirstTSpanElement(T,S.childNodes.length)},E.prototype.prepareTSpanElement=function(S){this.renderHelper.prepareTSpanElement(S,this.x,this.y)},E.prototype.prepareFirstTSpanElement=function(S,O){this.renderHelper.prepareFirstTSpanElement(S,O)},E.prototype.applyElementStyleProperties=function(S){this.applyElementStylePropertiesCore(S,this.reverseTextAhchor)},Object.defineProperty(E.prototype,"fitToSize",{get:function(){return this.renderHelper.fitToSize},enumerable:!1,configurable:!0}),E.prototype.createRenderHelper=function(){switch(this.angle){case C.Angle90deg:return new v(this);case C.Angle180deg:return new x(this);case C.Angle270deg:return new b(this);default:return new h(this)}},E.baselineCorrection=.35,E}(p.SvgPrimitive);u.TextPrimitive=d;var h=function(){function y(E){this.primitive=E}return Object.defineProperty(y.prototype,"textWidth",{get:function(){return this.primitive.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"textHeight",{get:function(){return this.primitive.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"fitToSize",{get:function(){return this.textWidth},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"textAnchor",{get:function(){return this.primitive.style["text-anchor"]},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"textSpacing",{get:function(){return this.primitive.textSpacing},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"angle",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"needRotation",{get:function(){return!1},enumerable:!1,configurable:!0}),y.prototype.prepareMainElement=function(E,S,O){this.needRotation&&E.setAttribute("transform","rotate("+this.angle+", "+g.UnitConverter.twipsToPixels(S)+", "+g.UnitConverter.twipsToPixels(O)+")")},y.prototype.prepareTSpanElement=function(E,S,O){this.primitive.setUnitAttribute(E,"x",S),E.setAttribute("dy",l.LINE_HEIGHT+"em")},y.prototype.prepareFirstTSpanElement=function(E,S){E.setAttribute("dy",(-(S-1)/2+d.baselineCorrection).toFixed(2)+"em")},y.prototype.getTextX=function(E){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?E+this.textWidth-this.textSpacing:"start"===this.textAnchor?E+this.textSpacing:E:E+this.textWidth/2},y.prototype.getTextY=function(E){return E+this.textHeight/2},y.prototype.setUnitAttribute=function(E,S,O){this.primitive.setUnitAttribute(E,S,O)},y}();u.TextPrimitiveRenderHelper=h;var v=function(y){function E(S){return y.call(this,S)||this}return I(E,y),Object.defineProperty(E.prototype,"fitToSize",{get:function(){return this.textHeight},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"angle",{get:function(){return 90},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),E.prototype.getTextX=function(S){return S+this.textWidth/2},E.prototype.getTextY=function(S){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?S+this.textHeight-this.textSpacing:"start"===this.textAnchor?S+this.textSpacing:S:S+this.textHeight/2},E}(h);u.TextPrimitive90degRenderHelper=v;var x=function(y){function E(S){return y.call(this,S)||this}return I(E,y),Object.defineProperty(E.prototype,"angle",{get:function(){return 180},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"needRotation",{get:function(){return!0},enumerable:!1,configurable:!0}),E.prototype.getTextX=function(S){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?S+this.textWidth-this.textSpacing:"end"===this.textAnchor?S+this.textSpacing:S:S+this.textWidth/2},E}(h);u.TextPrimitive180degRenderHelper=x;var b=function(y){function E(S){return y.call(this,S)||this}return I(E,y),Object.defineProperty(E.prototype,"angle",{get:function(){return 270},enumerable:!1,configurable:!0}),E.prototype.getTextY=function(S){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?S+this.textHeight-this.textSpacing:"end"===this.textAnchor?S+this.textSpacing:S:S+this.textHeight/2},E}(v);u.TextPrimitive270degRenderHelper=b},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.getLineHeight=u.getTextHeight=u.getTextLineSize=u.getOptimalTextRectangle=u.TEXTRECT_RATIO_EPS=u.textToParagraphs=u.textToWords=u.wordsByLines=u.LINE_HEIGHT=void 0;var c=o(3),I=o(2),C=o(44),g=/\s/gm;function a(E,S,O){if(1===S.length)return S;for(var w=O(),T=w.words[" "].width,k=[],R=0,P=-1,B=0;B<S.length;B++){var W=S[B],z=w.words[W].width;-1===P||R+T+z>E?(P=k.push(W)-1,R=z):(R+=T+z,k[P]+=" "+W)}return k}function p(E){return E.split(g).filter(function(S){return S.length})}function s(E){return E.split("\n")}u.LINE_HEIGHT=1.05,u.wordsByLines=a,u.textToWords=p,u.textToParagraphs=s,u.TEXTRECT_RATIO_EPS=1.2;function d(E,S,O){var w=E<1?1/E:E,T=S<1?1/S:S,k=w/T;return(k<1?1/k:k)<=O?0:T>w?1:-1}function h(E,S,O,w){return v(b(E,S,O,!1),w)}function v(E,S){return[C.Data.byRange(E,S.from,S.to),E<=S.to]}function x(E,S){return p(E).reduce(function(O,w,T){var k=S.words[w];return O.width+=k.width,O.height=Math.max(O.height,k.height),T>0&&(O.width+=S.words[" "].width),O},new I.Size(0,0))}function b(E,S,O,w){var T=Array.isArray(E)?E:s(E);return!w||T.length&&(1!==T.length||T[0].length)?T.reduce(function(k,R){return k+a(S,p(R),function(){return O}).length},0)*y(O):y(O)}function y(E){return E.fontSize*u.LINE_HEIGHT}u.getOptimalTextRectangle=function(E,S,O,w,T,k,R,P,B,W){if(void 0===R&&(R=0),void 0===P&&(P=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),void 0===B&&(B=0),void 0===W&&(W=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE),!E)return new I.Size(C.Data.byRange(T.width,R,P),C.Data.byRange(T.height,B,W));if(R>P||B>W)throw new Error("Min size cannot exceed max size");if(R===P&&B===W)return new I.Size(R,B);var z=w.measureWords(E,S,O),V=s(E),U=Object.keys(z.words).reduce(function(j,ee){return Math.max(j,z.words[ee].width)},0),K=new c.Range(C.Data.byRange(Math.max(T.width,U),R,P),P),Y=new c.Range(C.Data.byRange(T.height,B,W),W);return U<=T.width&&b(V,T.width,z,!1)<=T.height&&K.includes(T.width)&&Y.includes(T.height)?T:function(j,ee,G,q,Z,X){for(var M,oe,fe=j.reduce(function(ce,le){return Math.max(ce,x(le,ee).width)},0),Te=new I.Size(0,0),Be=new I.Size(0,0),ze=0,ae=0,_e=0;_e<5;_e++){if(0===_e)Be.width=v(fe,q)[0];else{if(!(Math.abs(ze)>1))break;Be.width=v(Te.width+ze,q)[0]}if(M=h(j,Be.width,ee,Z),Be.height=M[0],oe=M[1],0===_e&&(ae=(Te=Be.clone()).width/Te.height/G),0===_e&&!oe)break;var ye=Be.width/Be.height,ne=ye/G;if(0===_e)ze=(Be.width/ne-Be.width)/2;else if(oe){if(!d(G,ye,u.TEXTRECT_RATIO_EPS)){Te=Be.clone(),ae=ne;break}if(!(d(ae,ne,1)<0))break;Te=Be.clone(),ae=ne,ze=(Be.width/ne-Be.width)/2,ne<1&&(ze/=2)}else ze/=2}return X&&(Te.height=C.Data.byRange(Te.width/G,Te.height,Z.to)),Te}(V,z,T.width/T.height,K,Y,k)},u.getTextLineSize=x,u.getTextHeight=b,u.getLineHeight=y},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(18),I=o(50),C=o(27),g=o(176),a=function(){function p(){}return p.preventEvent=function(s){s.cancelable&&(s.preventDefault?s.preventDefault():s.returnValue=!1)},p.getEventSource=function(s){return I.isDefined(s)?p.getEventSourceCore(s):null},p.getEventSourceByPosition=function(s){if(!I.isDefined(s))return null;if(!document.elementFromPoint)return p.getEventSourceCore(s);var l=p.getEventX(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0),d=p.getEventY(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0);return void 0===l||void 0===d?p.getEventSourceCore(s):document.elementFromPoint(l,d)},p.getEventSourceCore=function(s){return s.srcElement?s.srcElement:s.target},p.getMouseWheelEventName=function(){return c.Browser.Safari?"mousewheel":c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},p.isLeftButtonPressed=function(s){return!!g.TouchUtils.isTouchEvent(s)||!!(s=c.Browser.IE&&I.isDefined(event)?event:s)&&(c.Browser.IE&&c.Browser.Version<11?!!c.Browser.MSTouchUI||s.button%2==1:c.Browser.WebKitFamily?"pointermove"===s.type||"pointerenter"===s.type||"pointerleave"===s.type?1===s.buttons:1===s.which:c.Browser.NetscapeFamily||c.Browser.Edge||c.Browser.IE&&c.Browser.Version>=11?p.isMoveEventName(s.type)?1===s.buttons:1===s.which:!c.Browser.Opera||0===s.button)},p.isMoveEventName=function(s){return s===g.TouchUtils.touchMouseMoveEventName||s===p.getMoveEventName()},p.getMoveEventName=function(){return window.PointerEvent?"pointermove":c.Browser.TouchUI?"touchmove":"mousemove"},p.preventEventAndBubble=function(s){p.preventEvent(s),s.stopPropagation&&s.stopPropagation(),s.cancelBubble=!0},p.clientEventRequiresDocScrollCorrection=function(){return c.Browser.AndroidDefaultBrowser||c.Browser.AndroidChromeBrowser||!(c.Browser.Safari&&c.Browser.Version<3||c.Browser.MacOSMobilePlatform&&c.Browser.Version<5.1)},p.getEventX=function(s){return g.TouchUtils.isTouchEvent(s)?g.TouchUtils.getEventX(s):s.clientX+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0)},p.getEventY=function(s){return g.TouchUtils.isTouchEvent(s)?g.TouchUtils.getEventY(s):s.clientY+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0)},p.cancelBubble=function(s){s.cancelBubble=!0},p.getWheelDelta=function(s){var l;return l=c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?-s.detail:c.Browser.Safari?s.wheelDelta:-s.deltaY,c.Browser.Opera&&c.Browser.Version<9&&(l=-l),l},p}();u.EvtUtils=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.AddConnectorHistoryItem=void 0;var C=o(8),g=o(6),a=function(p){function s(l,d,h){var v=p.call(this)||this;return v.points=l,v.dataKey=d,v.renderPointsContext=h,v}return I(s,p),s.prototype.redo=function(l){var d=new g.Connector(this.points);void 0!==this.dataKey&&(d.dataKey=this.dataKey),void 0!==this.renderPointsContext&&d.replaceRenderPoints(this.renderPointsContext),l.addConnector(d,this.connectorKey),this.connectorKey=d.key},s.prototype.undo=function(l){var d=l.model.findConnector(this.connectorKey);l.deleteConnector(d)},s}(C.HistoryItem);u.AddConnectorHistoryItem=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteConnectionHistoryItem=void 0;var C=o(8),g=o(6),a=function(p){function s(l,d){var h=p.call(this)||this;return h.connectorKey=l.key,h.position=d,h.itemKey=l.getExtremeItem(h.position).key,h}return I(s,p),s.prototype.redo=function(l){var d=l.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===g.ConnectorPosition.Begin?d.beginConnectionPointIndex:d.endConnectionPointIndex,l.deleteConnection(d,this.position)},s.prototype.undo=function(l){var d=l.model.findConnector(this.connectorKey),h=l.model.findItem(this.itemKey);l.addConnection(d,h,this.oldConnectionPointIndex,this.position)},s}(C.HistoryItem);u.DeleteConnectionHistoryItem=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.SetSelectionHistoryItem=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.selectedKeys=s,d.selection=p,d.forceChange=l,d}return I(a,g),a.prototype.redo=function(){this.oldSelection=this.selection.getKeys().slice(0),this.selection.set(this.selectedKeys,this.forceChange)},a.prototype.undo=function(){this.selection.set(this.oldSelection,this.forceChange)},a}(o(8).HistoryItem);u.SetSelectionHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorTextHistoryItem=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.connectorKey=p.key,d.text=l,d.position=s,d}return I(a,g),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);this.oldText=s.getText(this.position),p.changeConnectorText(s,this.text,this.position)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorText(s,this.oldText,this.position)},a}(o(8).HistoryItem);u.ChangeConnectorTextHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStyleTextHistoryItem=void 0;var C=function(g){function a(p,s,l){return g.call(this,p,s,l)||this}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldStyleValue=s.styleText[this.styleProperty],p.changeStyleText(s,this.styleProperty,this.styleValue)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeStyleText(s,this.styleProperty,this.oldStyleValue)},a}(o(118).ChangeStyleHistoryItemBase);u.ChangeStyleTextHistoryItem=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Margin=u.EdgeLayout=u.NodeLayout=u.NodeInfo=void 0;var c=o(13);u.NodeInfo=function(p,s,l,d){void 0===d&&(d=[]),this.key=p,this.margin=s,this.size=l,this.connectionPoints=d};var C=function(){function p(s,l){this.info=s,this.position=l}return Object.defineProperty(p.prototype,"key",{get:function(){return this.info.key},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"rectangle",{get:function(){return c.Rectangle.fromGeometry(this.position,this.info.size)},enumerable:!1,configurable:!0}),p}();u.NodeLayout=C,u.EdgeLayout=function(p,s,l){this.key=p,this.beginIndex=s,this.endIndex=l};var a=function(){function p(s,l,d,h){void 0===l&&(l=s),void 0===d&&(d=s),void 0===h&&(h=s),this.top=s,this.right=l,this.bottom=d,this.left=h}return p.empty=function(){return new p(0)},p}();u.Margin=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.EllipseShapeDescription=void 0;var C=o(7),g=o(2),a=o(55),p=o(1),s=o(3),l=o(13),d=function(h){function v(x){return h.call(this,new g.Size(C.ShapeDefaultDimension,.75*C.ShapeDefaultDimension),x)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return p.ShapeTypes.Ellipse},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.getTextRectangle=function(x){var b=s.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return l.Rectangle.fromGeometry(x.position.clone().offset((x.size.width-b.width)/2,(x.size.height-b.height)/2),b)},v.prototype.getSizeByText=function(x,b){return s.GeometryUtils.getEllipseByEnscribedRectangle(x)},v.prototype.createShapePrimitives=function(x){var b=x.rectangle,S=b.center;return[new a.EllipsePrimitive(S.x,S.y,b.width/2,b.height/2,x.style)]},v}(C.ShapeDescription);u.EllipseShapeDescription=d},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Exporter=void 0;var c=o(14),I=o(6),C=o(3),g=function(){function a(){}return a.prototype.export=function(p){var s={page:{},connectors:[],shapes:[]};return s.page={width:p.size.width,height:p.size.height,pageColor:p.pageColor,pageWidth:p.pageSize.width,pageHeight:p.pageSize.height,pageLandscape:p.pageLandscape},this.exportItemsCore(p.items,s),JSON.stringify(s)},a.prototype.exportItems=function(p){var s={connectors:[],shapes:[]};return this.exportItemsCore(p,s),JSON.stringify(s)},a.prototype.exportItemsCore=function(p,s){var l=this;p.forEach(function(d){if(d instanceof c.Shape)s.shapes.push(l.exportShape(d));else if(d instanceof I.Connector){var h=l.exportConnector(d);d.beginItem&&(h.beginItemKey=d.beginItem.key,h.beginConnectionPointIndex=d.beginConnectionPointIndex),d.endItem&&(h.endItemKey=d.endItem.key,h.endConnectionPointIndex=d.endConnectionPointIndex),s.connectors.push(h)}})},a.prototype.exportItem=function(p){return{key:p.key,dataKey:p.dataKey,customData:C.ObjectUtils.cloneObject(p.customData),locked:p.locked,zIndex:p.zIndex}},a.prototype.exportShape=function(p){var s=this.exportItem(p);s.type=p.description.key,s.text=p.text,p.image.isEmpty||(s.imageUrl=p.image.exportUrl),s.x=p.position.x,s.y=p.position.y,s.width=p.size.width,s.height=p.size.height;var l=p.parameters.toObject();l&&(s.parameters=l);var d=p.style.toObject();d&&(s.style=d);var h=p.styleText.toObject();return h&&(s.styleText=h),p.children.length&&(s.childKeys=p.children.map(function(v){return v.key})),p.expanded||(s.expanded=!1),p.expandedSize&&(s.expandedWidth=p.expandedSize.width,s.expandedHeight=p.expandedSize.height),s},a.prototype.exportConnector=function(p){var s=this.exportItem(p);s.points=p.points.map(function(x){return{x:x.x,y:x.y}});var l=p.texts.toObject();l&&(s.texts=l);var d=p.properties.toObject();d&&(s.properties=d);var h=p.style.toObject();h&&(s.style=h);var v=p.styleText.toObject();return v&&(s.styleText=v),s},a.prototype.exportSvg=function(p,s,l,d){l.exportSvgImage(p,s,d)},a.prototype.exportPng=function(p,s,l,d,h){l.exportPngImage(p,s,d,h)},a.prototype.exportJpg=function(p,s,l,d,h){l.exportJpgImage(p,s,d,h)},a}();u.Exporter=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleStyleTextPropertyCommand=void 0;var C=o(134),g=o(70),a=o(26),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())===this.getStylePropertyValue()},l.prototype.executeCore=function(d){var h=this;this.control.history.beginTransaction();var v=this.getStyleProperty(),x=d.value?a.TextStyle.defaultInstance[v]:this.getStylePropertyValue();return this.control.selection.getSelectedItems().forEach(function(b){h.control.history.addAndRedo(new g.ChangeStyleTextHistoryItem(b.key,v,x))}),this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),x),this.control.history.endTransaction(),!0},l.prototype.getStyleObj=function(d){return d.styleText},l.prototype.getDefaultStyleObj=function(){return new a.TextStyle},l}(C.StylePropertyCommandBase);u.ToggleStyleTextPropertyCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStylePropertyCommand=void 0;var C=o(135),g=o(89),a=o(26),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentStylePropertyValue(this.getStyleProperty())},l.prototype.getStyleObj=function(d){return d.style},l.prototype.getDefaultStyleObj=function(){return new a.Style},l.prototype.createHistoryItem=function(d,h,v){return new g.ChangeStyleHistoryItem(d.key,h,v)},l.prototype.updateInputPosition=function(d){this.control.selection.inputPosition.setStylePropertyValue(this.getStyleProperty(),d)},l}(C.ChangeStylePropertyCommandBase);u.ChangeStylePropertyCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutCommandBase=void 0;var C=o(4),g=o(10),a=o(14),p=o(6),s=o(3),l=o(13),d=o(251),h=function(v){function x(){return null!==v&&v.apply(this,arguments)||this}return I(x,v),x.prototype.executeCore=function(b,y){var E=this;this.control.history.beginTransaction();var S=this.getAffectedShapes(),O=this.getAffectedConnectors(),w=this.createLayoutSettings(),T=C.ModelUtils.getGraphInfoByItems(this.control.model,S,O,!1);if(T.length){var k,R=this.control.model,P=s.GeometryUtils.getCommonRectangle(s.Utils.flatten(T.map(function(B){return B.graph.items.map(function(W){return R.findItem(W.key)})})).concat(T.map(function(B){return B.container})).filter(function(B){return B}).map(function(B){return B.rectangle}));this.control.history.addAndRedo(new d.ScrollIntoViewOnUndoHistoryItem(this.control.view,P)),T.forEach(function(B){var W=E.createLayout(w,B.graph),z=C.ModelUtils.getNonGraphItems(E.control.model,B.container,W.nodeToLayout,S,O),V=C.ModelUtils.applyLayout(E.control.history,E.control.model,B.container,B.graph,W,z,w,E.control.settings.snapToGrid,E.control.settings.gridSize,!1);k=k&&l.Rectangle.union(k,V)||V}),C.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new d.ScrollIntoViewOnRedoHistoryItem(this.control.view,k))}return this.control.history.endTransaction(),!0},x.prototype.getAffectedShapes=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(b){return b instanceof a.Shape&&!b.locked}):this.control.selection.getSelectedShapes(!1,!0)},x.prototype.getAffectedConnectors=function(){return this.control.selection.isEmpty()?this.control.model.items.filter(function(b){return b instanceof p.Connector&&!b.locked}):this.control.selection.getSelectedConnectors(!1,!0)},x}(g.SimpleCommandBase);u.AutoLayoutCommandBase=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePagePropertyCommand=void 0;var C=o(4),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,l){var d=this;return this.control.history.beginTransaction(),this.createHistoryItems(l).forEach(function(h){d.control.history.addAndRedo(h)}),C.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},p.prototype.getItems=function(){return null},p}(o(10).SimpleCommandBase);u.ChangePagePropertyCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasItemsManager=u.CONNECTOR_CAN_MOVE=u.NOT_VALID_CSSCLASS=void 0;var C=o(99),g=o(11),a=o(39),p=o(17),s=o(14),l=o(6),d=o(27),h=o(140),v=o(4);u.NOT_VALID_CSSCLASS="not-valid",u.CONNECTOR_CAN_MOVE="can-move";var x=function(b){function y(E,S,O){var w=b.call(this,S,O)||this;return w.itemSelectorGroupContainers={},w.itemSelectorElements={},w.itemGroupContainers={},w.itemElements={},w.itemChildElements={},w.primitives={},w.selectorPrimitives={},w.selectedItems={},w.initializeContainerElements(E),w}return I(y,b),y.prototype.initializeContainerElements=function(E){this.itemSelectorsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),E),this.itemsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),E)},y.prototype.clear=function(){this.primitives={},this.selectorPrimitives={},p.RenderUtils.removeContent(this.itemSelectorsContainer),p.RenderUtils.removeContent(this.itemsContainer),this.itemSelectorGroupContainers={},this.itemSelectorElements={},this.itemGroupContainers={},this.itemElements={},this.itemChildElements={},this.selectedItems={}},y.prototype.applyChange=function(E){var S=E.item;return!!this.getItemParent(S.zIndex,S.container&&S.container.key)&&(S instanceof s.Shape?this.applyShapeChange(S,E.type,E.isValid):S instanceof l.Connector&&this.applyConnectorChange(S,E.type,E.isValid),!0)},y.prototype.setPointerEventsNone=function(E,S){var O=E.style;void 0!==O&&void 0!==O.pointerEvents&&(O.pointerEvents=S?"none":"");for(var w=E.childNodes,T=0;T<w.length;T++)this.setPointerEventsNone(w[T],S)},y.prototype.notifyDragStart=function(E){var S=this;E.forEach(function(O){S.itemElements[O]&&S.setPointerEventsNone(S.itemElements[O],!0),S.itemChildElements[O]&&S.setPointerEventsNone(S.itemChildElements[O],!0),S.itemSelectorElements[O]&&S.setPointerEventsNone(S.itemSelectorElements[O],!0)})},y.prototype.notifyDragEnd=function(E){var S=this;E.forEach(function(O){S.itemElements[O]&&S.setPointerEventsNone(S.itemElements[O],!1),S.itemChildElements[O]&&S.setPointerEventsNone(S.itemChildElements[O],!1),S.itemSelectorElements[O]&&S.setPointerEventsNone(S.itemSelectorElements[O],!1)})},y.prototype.notifyDragScrollStart=function(){},y.prototype.notifyDragScrollEnd=function(){},y.prototype.notifyTextInputStart=function(E,S,O,w){d.DomUtils.addClassName(this.itemElements[E.key],"text-input")},y.prototype.notifyTextInputEnd=function(E,S){d.DomUtils.removeClassName(this.itemElements[E.key],"text-input")},y.prototype.notifyTextInputPermissionsCheck=function(E,S){var O=this.itemElements[E.key];S?d.DomUtils.removeClassName(O,u.NOT_VALID_CSSCLASS):d.DomUtils.addClassName(O,u.NOT_VALID_CSSCLASS)},y.prototype.notifyActualZoomChanged=function(E){var S="scale("+E+")";this.dom.changeByFunc(this.itemsContainer,function(O){return O.setAttribute("transform",S)}),this.dom.changeByFunc(this.itemSelectorsContainer,function(O){return O.setAttribute("transform",S)}),this.actualZoom=E},y.prototype.notifyViewAdjusted=function(E){},y.prototype.invalidatePrimitives=function(E){this.primitives[E.key]&&(this.primitives[E.key].forEach(function(S){S.dispose()}),delete this.primitives[E.key]),this.selectorPrimitives[E.key]&&(this.selectorPrimitives[E.key].forEach(function(S){S.dispose()}),delete this.selectorPrimitives[E.key])},y.prototype.getPrimitives=function(E){return this.primitives[E.key]||(this.primitives[E.key]=E.createPrimitives()),this.primitives[E.key]},y.prototype.getSelectorPrimitives=function(E){return this.selectorPrimitives[E.key]||(this.selectorPrimitives[E.key]=E.createSelectorPrimitives()),this.selectorPrimitives[E.key]},y.prototype.getShapeSelectorClassName=function(E){var S="shape";return E.enableChildren&&(S+=" container"),E.isLocked&&(S+=" locked"),S},y.prototype.getShapeClassName=function(E,S){var O=this.getShapeSelectorClassName(E);return S?O:O+" "+u.NOT_VALID_CSSCLASS},y.prototype.applyShapeChange=function(E,S,O){var w=E.key,T=E.container&&E.container.key,k=this.getItemSelectorGroupContainer(E.zIndex,T),R=this.getItemGroupContainer(E.zIndex,T),P=this.getShapeClassName(E,O);switch(S){case C.ItemChangeType.Create:this.itemSelectorElements[w]=this.createItemElements(w,this.getSelectorPrimitives(E),k,this.getShapeSelectorClassName(E),g.MouseEventElementType.Shape),this.itemElements[w]=this.createItemElements(w,this.getPrimitives(E),R,P,g.MouseEventElementType.Shape),E.enableChildren&&(this.itemChildElements[w]=this.createItemElements(w,[],R,"container-children",g.MouseEventElementType.Undefined),this.changeItemChildrenVisibility(this.itemChildElements[w],E.expanded));break;case C.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E)),this.invalidatePrimitives(E),this.removeItemElements(this.itemSelectorElements[w]),delete this.itemSelectorElements[w],this.removeItemElements(this.itemElements[w]),delete this.itemElements[w],this.itemChildElements[w]&&(this.removeItemElements(this.itemChildElements[w]),delete this.itemChildElements[w],delete this.itemGroupContainers[w],delete this.itemSelectorGroupContainers[w]);break;case C.ItemChangeType.UpdateStructure:case C.ItemChangeType.UpdateProperties:case C.ItemChangeType.Update:S!==C.ItemChangeType.Update&&(S===C.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E))),this.invalidatePrimitives(E)),this.changeItemElements(this.getSelectorPrimitives(E),this.itemSelectorElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemElements(this.getPrimitives(E),this.itemElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[w],P),this.itemChildElements[w]&&this.changeItemChildrenVisibility(this.itemChildElements[w],E.expanded),k!==(this.itemSelectorElements[w]&&this.itemSelectorElements[w].parentNode)&&this.moveItemElements(k,this.itemSelectorElements[w]),R!==(this.itemElements[w]&&this.itemElements[w].parentNode)&&this.moveItemElements(R,this.itemElements[w]),this.itemChildElements[w]&&R!==this.itemChildElements[w].parentNode&&this.moveItemElements(R,this.itemChildElements[w]);break;case C.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemElements[w],P)}},y.prototype.getConnectorSelectorClassName=function(E){return v.ModelUtils.canMoveConnector(this.selectedItems,E)?"connector "+u.CONNECTOR_CAN_MOVE:"connector"},y.prototype.getConnectorClassName=function(E,S){var O=this.getConnectorSelectorClassName(E);return S?O:O+" "+u.NOT_VALID_CSSCLASS},y.prototype.applyConnectorChange=function(E,S,O){var w=E.key,T=E.container&&E.container.key,k=this.getItemSelectorGroupContainer(E.zIndex,T),R=this.getItemGroupContainer(E.zIndex,T),P=this.getConnectorClassName(E,O);switch(S){case C.ItemChangeType.Create:this.itemSelectorElements[w]=this.createItemElements(w,this.getSelectorPrimitives(E),k,this.getConnectorSelectorClassName(E),g.MouseEventElementType.Connector),this.itemElements[w]=this.createItemElements(w,this.getPrimitives(E),R,P,g.MouseEventElementType.Connector);break;case C.ItemChangeType.Remove:this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E)),this.invalidatePrimitives(E),this.removeItemElements(this.itemSelectorElements[w]),delete this.itemSelectorElements[w],this.removeItemElements(this.itemElements[w]),delete this.itemElements[w];break;case C.ItemChangeType.UpdateStructure:case C.ItemChangeType.UpdateProperties:case C.ItemChangeType.Update:S!==C.ItemChangeType.Update&&(S===C.ItemChangeType.UpdateStructure&&(this.removeItemCustomContent(this.itemSelectorElements[w],this.getSelectorPrimitives(E)),this.removeItemCustomContent(this.itemElements[w],this.getPrimitives(E))),this.invalidatePrimitives(E)),this.changeItemElements(this.getSelectorPrimitives(E),this.itemSelectorElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemSelectorElements[w],this.getConnectorSelectorClassName(E)),this.changeItemElements(this.getPrimitives(E),this.itemElements[w],S===C.ItemChangeType.UpdateStructure),this.changeItemClassName(this.itemElements[w],P),k!==(this.itemSelectorElements[w]&&this.itemSelectorElements[w].parentNode)&&this.moveItemElements(k,this.itemSelectorElements[w]),R!==(this.itemElements[w]&&this.itemElements[w].parentNode)&&this.moveItemElements(R,this.itemElements[w]);break;case C.ItemChangeType.UpdateClassName:this.changeItemClassName(this.itemSelectorElements[w],this.getConnectorSelectorClassName(E)),this.changeItemClassName(this.itemElements[w],P)}},y.prototype.createItemElements=function(E,S,O,w,T){var k=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],w,void 0,void 0,function(R){return p.RenderUtils.setElementEventData(R,T,E)}),O);return this.createAndChangePrimitivesElements(S,k),k},y.prototype.changeItemElements=function(E,S,O){O||E.length!==S.childNodes.length?(p.RenderUtils.removeContent(S),this.createAndChangePrimitivesElements(E,S)):this.dom.changeChildrenByPrimitives(E,S)},y.prototype.changeItemClassName=function(E,S){S&&E&&this.changePrimitiveElement(new a.GroupPrimitive([],S),E)},y.prototype.removeItemElements=function(E){E&&E.parentNode&&E.parentNode.removeChild(E)},y.prototype.removeItemCustomContent=function(E,S){E&&S&&S.length===E.childNodes.length&&S.forEach(function(O,w){O.destroyCustomContent(E.childNodes[w])})},y.prototype.moveItemElements=function(E,S,O){S&&E&&(O?E.insertBefore(S,O):E.appendChild(S))},y.prototype.changeItemChildrenVisibility=function(E,S){E.style.display=S?"":"none"},y.prototype.getItemGroupContainerKey=function(E,S){return void 0!==S?E+"_"+S:E.toString()},y.prototype.getItemGroupContainer=function(E,S){var O=void 0!==S?this.getItemParent(E,S):this.itemsContainer,w=S||"Main";if(void 0===this.itemGroupContainers[w]||void 0===this.itemGroupContainers[w][E]){void 0===this.itemGroupContainers[w]&&(this.itemGroupContainers[w]=[]);var T=Object.keys(this.itemGroupContainers[w]).map(function(k){return+k}).sort().filter(function(k){return k>E})[0];this.itemGroupContainers[w][E]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,E),O,this.itemGroupContainers[w][T])}return this.itemGroupContainers[w][E]},y.prototype.getItemSelectorGroupContainer=function(E,S){var O=void 0!==S?this.getItemSelectorParent(E,S):this.itemSelectorsContainer,w=S||"Main";if(void 0===this.itemSelectorGroupContainers[w]||void 0===this.itemSelectorGroupContainers[w][E]){void 0===this.itemSelectorGroupContainers[w]&&(this.itemSelectorGroupContainers[w]=[]);var T=Object.keys(this.itemSelectorGroupContainers[w]).map(function(k){return+k}).sort().filter(function(k){return k>E})[0];this.itemSelectorGroupContainers[w][E]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,E),O,this.itemSelectorGroupContainers[w][T])}return this.itemSelectorGroupContainers[w][E]},y.prototype.getItemParent=function(E,S){return void 0!==S?this.itemChildElements[S]:this.getItemGroupContainer(E)},y.prototype.getItemSelectorParent=function(E,S){return void 0!==S?this.itemChildElements[S]:this.getItemSelectorGroupContainer(E)},y.prototype.notifySelectionChanged=function(E){var S=this,O=v.ModelUtils.createSelectedItems(E),w=[];this.populateItems(w,O,this.selectedItems),this.populateItems(w,this.selectedItems,O),this.selectedItems=O,w.forEach(function(T){T instanceof l.Connector&&S.applyOrPostponeChanges([new C.ItemChange(T,C.ItemChangeType.UpdateClassName,!0)])})},y.prototype.populateItems=function(E,S,O){Object.keys(S).forEach(function(w){O[w]||E.push(S[w])})},y}(h.CanvasManager);u.CanvasItemsManager=x},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TextMeasurer=void 0;var c=o(2),I=o(17),C=o(14),g=o(6),a=o(43),p=o(15),s=o(64),l=function(){function d(h){this.cache={},this.fontSizeCache={},this.containers={},this.parent=h,this.createNodes()}return d.prototype.measureWords=function(h,v,x){var b=this,y={words:{},fontSize:-1},E="string"==typeof h?this.splitToWords(h,!1):h.reduce(function(T,k){return T.concat(b.splitToWords(k,!1))},[]);E.push(" ");var S=this.getStyleHash(v,x),O=this.tryLoadWordsToMeasurer(E,v,S,x,void 0,void 0,void 0,void 0,y);return O&&(this.putElementsInDOM(this.containers[x],O),this.beforeMeasureInDOM(),this.measureElementsInDOM(O,y),this.afterMeasureInDOM()),y},d.prototype.measureTextLine=function(h,v,x){var b=this.measureWords(h,v,x);return s.getTextLineSize(h,b)},d.prototype.onNewModel=function(h,v){var x=this;v.changeByFunc(null,function(){return x.onNewModelCore(h)})},d.prototype.onNewModelCore=function(h){var v=h.filter(function(E){return E instanceof C.Shape}),x=h.filter(function(E){return E instanceof g.Connector}),b=this.tryLoadShapeTexts(v),y=this.tryLoadConnectorTexts(x);(b||y)&&(b&&this.putElementsInDOM(this.containers[a.TextOwner.Shape],b),y&&this.putElementsInDOM(this.containers[a.TextOwner.Connector],y),this.beforeMeasureInDOM(),b&&this.measureElementsInDOM(b),y&&this.measureElementsInDOM(y),this.afterMeasureInDOM())},d.prototype.replaceParent=function(h){this.parent!==h&&(this.mainElement.parentNode&&h.appendChild(this.mainElement),this.parent=h)},d.prototype.clean=function(){I.RenderUtils.removeElement(this.mainElement)},d.prototype.tryLoadShapeTexts=function(h){var v=this,x={},b=[],y=[],E=[];return h.forEach(function(S){var O=v.getStyleHash(S.styleText,a.TextOwner.Shape);v.tryLoadWordsToMeasurer(v.splitToWords(S.text,!0),S.styleText,O,a.TextOwner.Shape,x,b,y,E)}),b.length?{elements:b,hashes:y,styleHashes:E}:null},d.prototype.tryLoadConnectorTexts=function(h){var v=this,x={},b=[],y=[],E=[];return h.forEach(function(S){var O=S.texts.map(function(T){return T.value}).reduce(function(T,k){return T.concat(v.splitToWords(k,!1))},[]);if(O.length){O.push(" ");var w=v.getStyleHash(S.styleText,a.TextOwner.Connector);v.tryLoadWordsToMeasurer(O,S.styleText,w,a.TextOwner.Connector,x,b,y,E)}}),b.length?{elements:b,hashes:y,styleHashes:E}:null},d.prototype.tryLoadWordsToMeasurer=function(h,v,x,b,y,E,S,O,w){var T=this,k=[];return E=E||[],S=S||[],O=O||[],y=y||{},h.forEach(function(R){return T.tryLoadWordToMeasurer(R,v,x,b,y,E,S,O,k,w)}),E.length?{elements:E,hashes:S,styleHashes:O,newWords:k}:null},d.prototype.putElementsInDOM=function(h,v){for(h.parentNode&&h.parentNode.removeChild(h);h.firstChild;)h.removeChild(h.firstChild);v.elements.forEach(function(x){return h.appendChild(x)}),this.svgElement.appendChild(h)},d.prototype.measureElementsInDOM=function(h,v){for(var x=h.hashes,b=h.elements,y=h.newWords,E=x.length,S=0;S<E;S++){var O=this.getDomElementSize(b[S]);O&&(O.isEmpty()||(this.cache[x[S]]=O),v&&(v.words[y[S]]=O));var w=h.styleHashes[S];void 0===this.fontSizeCache[w]&&(this.fontSizeCache[w]=this.getDomFontSize(b[S])),v&&v.fontSize<0&&(v.fontSize=this.fontSizeCache[w])}},d.prototype.beforeMeasureInDOM=function(){this.parent.appendChild(this.mainElement)},d.prototype.afterMeasureInDOM=function(){this.mainElement.parentNode&&this.mainElement.parentNode.removeChild(this.mainElement)},d.prototype.tryLoadWordToMeasurer=function(h,v,x,b,y,E,S,O,w,T){var k=this.getHash(h,v,b),R=this.cache[k];R||y[k]?R&&T&&(T.words[h]=R,T.fontSize=this.fontSizeCache[x]):(y[k]=!0,S.push(k),E.push(this.createElement(h,v)),O.push(x),w.push(h))},d.prototype.getHash=function(h,v,x){return x+"|"+(v&&v.toHash())+"|"+h},d.prototype.getStyleHash=function(h,v){return this.getHash(" ",h,v)},d.prototype.createElement=function(h,v){var x=document.createElementNS(p.svgNS,"text");return" "===h&&x.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),x.textContent=h,v&&I.RenderUtils.applyStyleToElement(v,x),x},d.prototype.splitToWords=function(h,v){var x=s.textToWords(h);return v&&x.push(" "),x},d.prototype.getDomFontSize=function(h){return parseFloat(window.getComputedStyle(h).fontSize)},d.prototype.getDomElementSize=function(h){var v;try{v=h.getBBox()}catch{}return v?new c.Size(v.width,v.height):new c.Size(0,0)},d.prototype.createNodes=function(){this.mainElement=p.RenderHelper.createMainElement(void 0,!0),this.svgElement=p.RenderHelper.createSvgElement(this.mainElement,!1),this.createContainer(a.TextOwner.Shape,"shape"),this.createContainer(a.TextOwner.Connector,"connector"),this.createContainer(a.TextOwner.ExtensionLine,"extension-line"),this.createContainer(a.TextOwner.Resize,"resize-info")},d.prototype.createContainer=function(h,v){var x=document.createElementNS(p.svgNS,"g");x.setAttribute("class",v),this.containers[h]=x},d}();u.TextMeasurer=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(R,P){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,W){B.__proto__=W}||function(B,W){for(var z in W)W.hasOwnProperty(z)&&(B[z]=W[z])})(R,P)},function(R,P){function B(){this.constructor=R}c(R,P),R.prototype=null===P?Object.create(P):(B.prototype=P.prototype,new B)});Object.defineProperty(u,"__esModule",{value:!0}),u.EdgeOnLayer=u.NodeOnLayer=u.SugiyamaNodesOrderer=u.SugiyamaLayerDistributor=u.SugiyamaLayoutBuilder=void 0;var C=o(139),g=o(54),a=o(71),p=o(38),s=o(90),l=o(41),d=o(0),h=o(20),v=o(138),x=o(6),b=o(270),y=function(R){function P(){return null!==R&&R.apply(this,arguments)||this}return I(P,R),P.prototype.build=function(){var B=this,W=0,z=new v.GraphLayout,V=new S;return this.graph.getConnectedComponents().forEach(function(U){var K=b.CycleRemover.removeCycles(U),Y=E.getLayers(K.graph),J=V.orderNodes(K.graph,Y),j=Object.keys(K.removedEdges).map(function(q){return U.getEdge(q)}),ee=V.assignAbsCoordinates(J),G=B.createInfoGraphLayout(ee,K.reversedEdges,j);z.extend(B.setComponentOffset(G,W)),W+=B.getComponentOffset(G)}),z},P.prototype.createInfoGraphLayout=function(B,W,z){for(var V=this,U=new d.Point(0,0),K=B.items,Y=new s.HashSet(K.map(function(fe){return fe.layer}).sort(function(fe,Te){return fe-Te})),J=this.getAbsOffsetInfo(B.items),j={},ee=0,G=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,q=Number.MIN_SAFE_INTEGER||Number.MAX_VALUE,Z=function(fe){var Te=Y.item(fe),Be=0;K.filter(function(ze){return ze.layer===Te}).sort(function(ze,ae){return ze.position-ae.position}).forEach(function(ze){var ae=V.getDepthNodeSize(ze),_e=V.chooseDirectionValue(0,ae),ye=V.getAbsPosition(ze.position,V.getBreadthNodeSize(ze),J);U=V.setBreadth(U,ye);var ne=V.setDepthOffset(U,-_e);if(j[ze.key]=ne,!ze.isDummy){var ce=V.settings.orientation===h.DataLayoutOrientation.Horizontal?ne.y:ne.x;G=Math.min(G,ce),q=Math.max(q,ce+V.getBreadthNodeSize(ze)),Be=Math.max(Be,V.getDepthNodeSize(ze))}}),ee+=Be,U=X.setBreadth(U,0),U=X.setDepthOffset(U,X.getDirectionValue(Be+X.settings.layerSpacing))},X=this,M=0;M<Y.length;M++)Z(M);ee+=(Y.length-1)*this.settings.layerSpacing;var oe=new v.GraphLayout;return this.createNodesLayout(B,oe,G,ee,j),this.createEdgesLayout(B,oe,W,z),oe},P.prototype.createNodesLayout=function(B,W,z,V,U){var K=this,Y=this.settings.orientation===h.DataLayoutOrientation.Vertical?new d.Point(-z,this.chooseDirectionValue(0,V)):new d.Point(this.chooseDirectionValue(0,V),-z);B.items.forEach(function(J){if(!J.isDummy){var j=K.graph.getNode(J.key);W.addNode(new a.NodeLayout(j,U[J.key].clone().offset(Y.x,Y.y)))}})},P.prototype.createEdgesLayout=function(B,W,z,V){var U=this.getDirectEdgeLayout(),K=this.getDiffLevelEdgeLayout(!0),Y=this.getDiffLevelEdgeLayout(!1),J=this.getSameLevelEdgeLayout(!0),j=this.getSameLevelEdgeLayout(!1),ee={};B.edges.filter(function(G){return!G.isDummy}).concat(V.map(function(G){return new T(G.key,!1,G.from,G.to)})).sort(function(G,q){return B.getNode(G.originFrom).layer-B.getNode(q.originFrom).layer||B.getNode(G.to).layer-B.getNode(q.to).layer}).forEach(function(G){var q=z[G.key],Z=B.getNode(q?G.to:G.originFrom),X=B.getNode(q?G.originFrom:G.to);if(X.layer-Z.layer==1)W.addEdge(new a.EdgeLayout(G.key,U.from,U.to));else{var M=[];if(X.position-Z.position>=1)M.push(K),M.push({from:U.from,to:K.to}),M.push({from:K.from,to:U.to});else if(X.position-Z.position<=-1)M.push(Y),M.push({from:U.from,to:Y.to}),M.push({from:Y.from,to:U.to});else{var oe=Z.position===X.position&&0===X.position?[J,j]:[j,J];oe.forEach(function(ae){return M.push(ae)}),oe.forEach(function(ae){M.push({from:ae.from,to:U.to}),M.push({from:U.from,to:ae.to})})}M.push(U);for(var fe=0,Te=void 0;Te=M[fe];fe++){var Be=Z.key+"_"+Te.from,ze=X.key+"_"+Te.to;if(ee[Be]!==x.ConnectorPosition.End&&ee[ze]!==x.ConnectorPosition.Begin){W.addEdge(new a.EdgeLayout(G.key,Te.from,Te.to)),ee[Be]=x.ConnectorPosition.Begin,ee[ze]=x.ConnectorPosition.End;break}}}})},P.prototype.getDirectEdgeLayout=function(){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?this.settings.direction===h.LogicalDirectionKind.Forward?{from:1,to:3}:{from:3,to:1}:this.settings.direction===h.LogicalDirectionKind.Forward?{from:2,to:0}:{from:0,to:2}},P.prototype.getDiffLevelEdgeLayout=function(B){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?B?{from:2,to:0}:{from:0,to:2}:B?{from:3,to:1}:{from:1,to:3}},P.prototype.getSameLevelEdgeLayout=function(B){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?B?{from:0,to:0}:{from:2,to:2}:B?{from:3,to:3}:{from:1,to:1}},P.prototype.getAbsOffsetInfo=function(B){var W=this,z={},V=function(Y,J){void 0===z[J]&&(z[J]=W.getBreadthNodeSize(Y)),z[J]=Math.max(z[J],W.getBreadthNodeSize(Y))};B.forEach(function(Y){var J=k(Y.position);V(Y,J),z[J]%1!=0&&V(Y,J+1)});var U={},K=0;return Object.keys(z).sort(function(Y,J){return parseFloat(Y)-parseFloat(J)}).forEach(function(Y){U[Y]={leftOffset:K,width:z[Y]},K+=z[Y]+W.settings.columnSpacing}),U},P.prototype.setBreadth=function(B,W){return this.settings.orientation===h.DataLayoutOrientation.Vertical?new d.Point(W,B.y):new d.Point(B.x,W)},P.prototype.setDepthOffset=function(B,W){return this.settings.orientation===h.DataLayoutOrientation.Horizontal?new d.Point(B.x+W,B.y):new d.Point(B.x,B.y+W)},P.prototype.getAbsPosition=function(B,W,z){var V=k(B),U=z[V].leftOffset,K=z[V].width;return B%1==0?U+(K-W)/2:U+K-(W-this.settings.columnSpacing)/2},P.prototype.getBreadthNodeSize=function(B){return B.isDummy?0:this.getBreadthNodeSizeCore(this.graph.getNode(B.key))},P.prototype.getDepthNodeSize=function(B){return B.isDummy?0:this.getDepthNodeSizeCore(this.graph.getNode(B.key))},P}(C.LayoutBuilder);u.SugiyamaLayoutBuilder=y;var E=function(){function R(){}return R.getLayers=function(P){var B=this.getFeasibleTree(P);return this.calcNodesLayers(B)},R.getFeasibleTree=function(P){var B=this.initLayerAssignment(P);return P.getSpanningGraph(P.nodes[0],p.ConnectionMode.OutgoingAndIncoming,function(W){return B[W.to]-B[W.from]})},R.initLayerAssignment=function(P){for(var B={},W=0,z={},V=P.nodes.filter(function(K){return!P.getAdjacentEdges(K,p.ConnectionMode.Incoming).length}),U=function(){V.forEach(function(Y){B[Y]=W,z[Y]=!0}),Object.keys(z).forEach(function(Y){0===P.getAdjacentEdges(Y,p.ConnectionMode.Outgoing).filter(function(J){return void 0===B[J.to]}).length&&delete z[Y]});var K={};Object.keys(z).forEach(function(Y){P.getAdjacentEdges(Y,p.ConnectionMode.Outgoing).map(function(J){return J.to}).filter(function(J){return void 0===B[J]&&P.getAdjacentEdges(J,p.ConnectionMode.Incoming).reduce(function(j,ee){return j&&void 0!==B[ee.from]},!0)}).forEach(function(J){return K[J]=!0})}),V=Object.keys(K),W++};V.length;)U();return B},R.calcNodesLayers=function(P){var B={},W=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,z=0,V=P.createIterator(p.ConnectionMode.OutgoingAndIncoming);for(var U in V.visitEachEdgeOnce=!1,V.onNode=function(K){B[K.key]=z,W=Math.min(W,z)},V.skipNode=function(K){return void 0!==B[K.key]},V.skipEdge=function(K){return void 0!==B[K.from]&&void 0!==B[K.to]},V.onEdge=function(K,Y){z=Y?B[K.from]+1:B[K.to]-1},V.iterate(P.nodes[0]),B)Object.prototype.hasOwnProperty.call(B,U)&&(B[U]-=W);return B},R}();u.SugiyamaLayerDistributor=E;var S=function(){function R(){this.idCounter=-1e4}return R.prototype.orderNodes=function(P,B){for(var W=1,z=this.initGraphInfo(P,B),V=z.items,U=this.initOrder(V),K=this.getNodeToPositionMap(V),Y=this.getCrossCount(U,z),J=!0;W<14&&0!==Y;){U=this.getNodesOrder(U,z,J);var j=this.getCrossCount(U,z);j<Y&&(K=this.getNodeToPositionMap(z.items),Y=j),J=!J,W++}return z.items.forEach(function(ee){return ee.position=K[ee.key]}),z},R.prototype.getNodesOrder=function(P,B,W){var z=this,V={},U=function(J){if(!Object.prototype.hasOwnProperty.call(P,J))return"continue";var j={},ee=[];P[J].forEach(function(G){var q=(W?B.getChildren(G.key):B.getParents(G.key)).map(function(Z){return B.getNode(Z).position});ee.push(G.key),j[G.key]=z.getNodePosition(q)}),V[J]=K.sortNodes(ee,j,B)},K=this;for(var Y in P)U(Y);return V},R.prototype.sortNodes=function(P,B,W){return P.sort(function(z,V){return B[z]-B[V]}).map(function(z,V){var U=W.getNode(z);return U.position=V,U})},R.prototype.getNodePosition=function(P){if(!(P=P.sort(function(V,U){return V-U})).length)return 0;var B=Math.floor(P.length/2);if(2===P.length||P.length%2==1)return P[B];var W=P[B-1]-P[0],z=P[P.length-1]-P[B];return Math.floor((P[B-1]*z+P[B]*W)/(W+z))},R.prototype.initOrder=function(P){var B={};return P.forEach(function(W){return(B[W.layer]||(B[W.layer]=[])).push(W)}),B},R.prototype.getCrossCount=function(P,B){var W=0,z=function(U){if(!Object.prototype.hasOwnProperty.call(P,U))return"continue";var K=[];P[U].forEach(function(Y){var J=B.getChildren(Y.key).map(function(j){return B.getNode(j).position});J.forEach(function(j){W+=K.filter(function(ee){return j<ee}).length}),K=K.concat(J)})};for(var V in P)z(V);return W},R.prototype.initGraphInfo=function(P,B){var W=this,z={},V={},U=[],K=[];return P.nodes.forEach(function(Y){var J=B[Y];void 0===z[J]&&(z[J]=0);var j=new O(Y,!1,J,z[J]++);V[Y]=j,U.push(j)}),P.edges.forEach(function(Y){var J=B[Y.to]-B[Y.from];if(J>1){for(var j=V[Y.from],ee=1;ee<J;ee++){var G=new O(W.createDummyID(),!0,B[Y.from]+ee,z[B[Y.from]+ee]++);K.push(new T(W.createDummyID(),!0,j.key,G.key)),U.push(G),j=G}K.push(new T(Y.key,!1,j.key,V[Y.to].key,V[Y.from].key))}else K.push(new T(Y.key,!1,V[Y.from].key,V[Y.to].key))}),new g.FastGraph(U,K)},R.prototype.createDummyID=function(){return"dummy_"+--this.idCounter},R.prototype.getNodeToPositionMap=function(P){return P.reduce(function(B,W){return B[W.key]=W.position,B},{})},R.prototype.assignAbsCoordinates=function(P){var B=this.getAbsCoodinate(P);return new g.FastGraph(P.items.map(function(W){return new O(W.key,W.isDummy,W.layer,B[W.key])}),P.edges.slice(0))},R.prototype.getAbsCoodinate=function(P){var B=this,W=P.items.reduce(function(U,K){U[K.layer]=U[K.layer]||[];var Y=l.SearchUtils.binaryIndexOf(U[K.layer],function(J){return J.position-K.position});return U[K.layer].splice(Y<0?~Y:Y,0,K),U},{}),z=[w.TopLeft,w.TopRight,w.BottomLeft,w.BottomRight].map(function(U){return B.getPositionByMedian(P,U,W)}),V={};return P.items.forEach(function(U){var K=z.map(function(Y){return Y[U.key]}).sort(function(Y,J){return Y-J});V[U.key]=(K[1]+K[2])/2}),V},R.prototype.getPositionByMedian=function(P,B,W){var z=P.items,V=this.getNodeToPositionMap(z),U=this.getMedians(P,z,B);return U=this.resolveMedianConflicts(P,W,U,B),this.getSortedBlocks(P,z,U,B).forEach(function(K){var Y=K.reduce(function(J,j){return V[j.key]>J?V[j.key]:J},-2);K.forEach(function(J){var j=Y-V[J.key];j>0&&W[J.layer].filter(function(ee){return ee.position>J.position}).forEach(function(ee){return V[ee.key]+=j}),V[J.key]=Y})}),V},R.prototype.getSortedBlocks=function(P,B,W,z){for(var V=[],U=z===w.BottomLeft||z===w.BottomRight,K=new s.HashSet(B.slice(0).sort(function(j,ee){return U?j.layer-ee.layer:ee.layer-j.layer}),function(j){return j.key});K.length;){var Y=K.item(0),J=this.getBlock(P,Y,W,z);V.push(J),J.forEach(function(j){return K.remove(j)})}return V.sort(function(j,ee){var G=j.reduce(function(M,oe){return oe.position<M.position?oe:M},j[0]),q=ee.filter(function(M){return M.layer===G.layer})[0];if(q)return G.position>q.position?1:-1;var Z=ee.reduce(function(M,oe){return oe.position<M.position?oe:M},ee[0]),X=j.filter(function(M){return M.layer===Z.layer})[0];return X?X.position>Z.position?1:-1:G.layer>Z.layer?1:-1}),V},R.prototype.getBlock=function(P,B,W,z){var V=[],U=null;do{U&&(B=P.getNode(z===w.TopLeft||z===w.TopRight?U.from:U.to)),V.push(B),U=W[B.key]}while(U);return V},R.prototype.resolveMedianConflicts=function(P,B,W,z){var V=this,U={},K=function(J){if(!Object.prototype.hasOwnProperty.call(B,J))return"continue";var j,ee,G=B[J];z!==w.TopRight&&z!==w.BottomRight||(G=G.slice(0).sort(function(q,Z){return Z.position-q.position})),G.forEach(function(q){var Z=W[q.key];if(Z){var M=P.getNode(z===w.TopLeft||z===w.TopRight?Z.from:Z.to).position;V.checkMedianConfict(j,ee,M,z)?U[q.key]=null:(j=void 0===j?M:Math.min(j,M),ee=void 0===ee?M:Math.max(ee,M),U[q.key]=Z)}else U[q.key]=null})};for(var Y in B)K(Y);return U},R.prototype.checkMedianConfict=function(P,B,W,z){return void 0!==P&&void 0!==B&&(z===w.TopLeft||z===w.BottomLeft?B>=W:P<=W)},R.prototype.getMedians=function(P,B,W){var z=this,V={};return B.forEach(function(U){var K=z.getActualAdjacentEdges(P,U,W),Y=z.getMedianPosition(K.length,W);V[U.key]=K[Y]}),V},R.prototype.getMedianPosition=function(P,B){if(0===P)return-1;if(P%2!=0)return Math.floor(P/2);if(B===w.TopLeft||B===w.BottomLeft)return Math.floor(P/2)-1;if(B===w.TopRight||B===w.BottomRight)return Math.floor(P/2);throw new Error("Invalid Operation")},R.prototype.getActualAdjacentEdges=function(P,B,W){return W===w.TopLeft||W===w.TopRight?P.getAdjacentEdges(B.key,p.ConnectionMode.Incoming).sort(function(z,V){return P.getNode(z.from).position-P.getNode(V.from).position}):P.getAdjacentEdges(B.key,p.ConnectionMode.Outgoing).sort(function(z,V){return P.getNode(z.to).position-P.getNode(V.to).position})},R}();u.SugiyamaNodesOrderer=S;var O=function(){function R(P,B,W,z){this.key=P,this.isDummy=B,this.layer=W,this.position=z}return R.prototype.getHashCode=function(){return this.key.toString()},R}();u.NodeOnLayer=O;var w,R,T=function(){function R(P,B,W,z,V){this.key=P,this.isDummy=B,this.from=W,this.to=z,this._originFrom=V}return R.prototype.getHashCode=function(){return this.from+"-"+this.to},Object.defineProperty(R.prototype,"originFrom",{get:function(){return void 0!==this._originFrom?this._originFrom:this.from},enumerable:!1,configurable:!0}),R}();function k(R){return Math.trunc?Math.trunc(R):isFinite(R)?R-R%1||(R<0?-0:0===R?R:0):R}u.EdgeOnLayer=T,(R=w||(w={}))[R.TopLeft=0]="TopLeft",R[R.TopRight=1]="TopRight",R[R.BottomLeft=2]="BottomLeft",R[R.BottomRight=3]="BottomRight"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function C(){this.suspendUpdateCount=0,this.occurredEvents=0}return C.prototype.beginUpdate=function(){0===this.suspendUpdateCount&&this.onUpdateLocked(),this.suspendUpdateCount<0?this.suspendUpdateCount--:this.suspendUpdateCount++},C.prototype.endUpdate=function(){if(this.suspendUpdateCount<0?this.suspendUpdateCount++:this.suspendUpdateCount>0&&this.suspendUpdateCount--,!this.isUpdateLocked()){var g=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(g)}},C.prototype.suspendUpdate=function(){if(this.suspendUpdateCount>0){this.suspendUpdateCount*=-1;var g=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(g)}},C.prototype.continueUpdate=function(){this.suspendUpdateCount<0&&(this.suspendUpdateCount*=-1)},C.prototype.isUpdateLocked=function(){return this.suspendUpdateCount>0},C.prototype.onUpdateLocked=function(){},C.prototype.registerOccurredEvent=function(g){this.occurredEvents|=g},C.prototype.resetOccurredEvents=function(){this.occurredEvents=0},C.prototype.isLocked=function(){return 0!==this.suspendUpdateCount},C}();u.BatchUpdatableObject=c;var I=function(){function C(){}return C.prototype.beginUpdate=function(){},C.prototype.endUpdate=function(){},C}();u.EmptyBatchUpdatableObject=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CommandManager=u.DiagramCommand=void 0;var c,Pe,I=o(162),C=o(199),g=o(200),a=o(201),p=o(238),s=o(239),l=o(240),d=o(241),h=o(242),v=o(243),x=o(244),b=o(245),y=o(246),E=o(247),S=o(248),O=o(249),w=o(250),T=o(25),k=o(137),R=o(253),P=o(254),B=o(255),W=o(257),z=o(259),V=o(261),U=o(262),K=o(263),Y=o(264),J=o(265),j=o(268),ee=o(271),G=o(272),q=o(142),Z=o(273),X=o(274),M=o(275),oe=o(276),fe=o(143),Te=o(144),Be=o(277),ze=o(278),ae=o(279),_e=o(280),ye=o(282),ne=o(284),ce=o(285),le=o(286),pe=o(287),Se=o(288),re=o(289),te=o(290),ie=o(292),ue=o(293),be=o(294),Ae=o(295),Ne=o(296),mt=o(297),tt=o(298),Le=o(299),gt=o(300);(Pe=c=u.DiagramCommand||(u.DiagramCommand={}))[Pe.Undo=0]="Undo",Pe[Pe.Redo=1]="Redo",Pe[Pe.Cut=2]="Cut",Pe[Pe.Copy=3]="Copy",Pe[Pe.Paste=4]="Paste",Pe[Pe.PasteInPosition=5]="PasteInPosition",Pe[Pe.SelectAll=6]="SelectAll",Pe[Pe.Delete=7]="Delete",Pe[Pe.Import=8]="Import",Pe[Pe.ImportBPMN=9]="ImportBPMN",Pe[Pe.Export=10]="Export",Pe[Pe.ExportSvg=11]="ExportSvg",Pe[Pe.ExportPng=12]="ExportPng",Pe[Pe.ExportJpg=13]="ExportJpg",Pe[Pe.BindDocument=14]="BindDocument",Pe[Pe.UnbindDocument=15]="UnbindDocument",Pe[Pe.Bold=16]="Bold",Pe[Pe.Italic=17]="Italic",Pe[Pe.Underline=18]="Underline",Pe[Pe.FontName=19]="FontName",Pe[Pe.FontSize=20]="FontSize",Pe[Pe.FontColor=21]="FontColor",Pe[Pe.FillColor=22]="FillColor",Pe[Pe.StrokeColor=23]="StrokeColor",Pe[Pe.TextLeftAlign=24]="TextLeftAlign",Pe[Pe.TextCenterAlign=25]="TextCenterAlign",Pe[Pe.TextRightAlign=26]="TextRightAlign",Pe[Pe.ConnectorLineOption=27]="ConnectorLineOption",Pe[Pe.ConnectorStartLineEnding=28]="ConnectorStartLineEnding",Pe[Pe.ConnectorEndLineEnding=29]="ConnectorEndLineEnding",Pe[Pe.BringToFront=30]="BringToFront",Pe[Pe.SendToBack=31]="SendToBack",Pe[Pe.MoveLeft=32]="MoveLeft",Pe[Pe.MoveStepLeft=33]="MoveStepLeft",Pe[Pe.MoveRight=34]="MoveRight",Pe[Pe.MoveStepRight=35]="MoveStepRight",Pe[Pe.MoveUp=36]="MoveUp",Pe[Pe.MoveStepUp=37]="MoveStepUp",Pe[Pe.MoveDown=38]="MoveDown",Pe[Pe.MoveStepDown=39]="MoveStepDown",Pe[Pe.CloneLeft=40]="CloneLeft",Pe[Pe.CloneRight=41]="CloneRight",Pe[Pe.CloneUp=42]="CloneUp",Pe[Pe.CloneDown=43]="CloneDown",Pe[Pe.AutoLayoutTree=44]="AutoLayoutTree",Pe[Pe.AutoLayoutFlow=45]="AutoLayoutFlow",Pe[Pe.AutoLayoutTreeVertical=46]="AutoLayoutTreeVertical",Pe[Pe.AutoLayoutTreeHorizontal=47]="AutoLayoutTreeHorizontal",Pe[Pe.AutoLayoutLayeredVertical=48]="AutoLayoutLayeredVertical",Pe[Pe.AutoLayoutLayeredHorizontal=49]="AutoLayoutLayeredHorizontal",Pe[Pe.Lock=50]="Lock",Pe[Pe.Unlock=51]="Unlock",Pe[Pe.Units=52]="Units",Pe[Pe.ViewUnits=53]="ViewUnits",Pe[Pe.PageSize=54]="PageSize",Pe[Pe.PageLandscape=55]="PageLandscape",Pe[Pe.PageColor=56]="PageColor",Pe[Pe.GridSize=57]="GridSize",Pe[Pe.ShowGrid=58]="ShowGrid",Pe[Pe.SnapToGrid=59]="SnapToGrid",Pe[Pe.ZoomLevel=60]="ZoomLevel",Pe[Pe.Fullscreen=61]="Fullscreen",Pe[Pe.ToggleSimpleView=62]="ToggleSimpleView",Pe[Pe.ToggleReadOnly=63]="ToggleReadOnly",Pe[Pe.EditShapeImage=64]="EditShapeImage",Pe[Pe.FitToScreen=65]="FitToScreen",Pe[Pe.SwitchAutoZoom=66]="SwitchAutoZoom",Pe[Pe.ToggleAutoZoom=67]="ToggleAutoZoom",Pe[Pe.FitToWidth=68]="FitToWidth",Pe[Pe.ZoomLevelItems=69]="ZoomLevelItems",Pe[Pe.GridSizeItems=70]="GridSizeItems",Pe[Pe.PageSizeItems=71]="PageSizeItems",Pe[Pe.ImportXML=72]="ImportXML",Pe[Pe.InsertShapeImage=73]="InsertShapeImage",Pe[Pe.DeleteShapeImage=74]="DeleteShapeImage",Pe[Pe.StrokeStyle=75]="StrokeStyle",Pe[Pe.StrokeWidth=76]="StrokeWidth",Pe[Pe.AutoLayoutTreeVerticalBottomToTop=77]="AutoLayoutTreeVerticalBottomToTop",Pe[Pe.AutoLayoutTreeHorizontalRightToLeft=78]="AutoLayoutTreeHorizontalRightToLeft",Pe[Pe.AutoLayoutLayeredVerticalBottomToTop=79]="AutoLayoutLayeredVerticalBottomToTop",Pe[Pe.AutoLayoutLayeredHorizontalRightToLeft=80]="AutoLayoutLayeredHorizontalRightToLeft",Pe[Pe.Zoom25=81]="Zoom25",Pe[Pe.Zoom50=82]="Zoom50",Pe[Pe.Zoom75=83]="Zoom75",Pe[Pe.Zoom100=84]="Zoom100",Pe[Pe.Zoom125=85]="Zoom125",Pe[Pe.Zoom150=86]="Zoom150",Pe[Pe.Zoom200=87]="Zoom200",Pe[Pe.AutoZoomToContent=88]="AutoZoomToContent",Pe[Pe.AutoZoomToWidth=89]="AutoZoomToWidth",Pe[Pe.ZoomLevelInPercentage=90]="ZoomLevelInPercentage",Pe[Pe.ConnectorRoutingMode=91]="ConnectorRoutingMode";var tn=function(){function Pe($e){this.commands={},this.shortcutsToCommand={},this.lastCommandsChain=[],this.executingCommandsChain=[],this.executingCommandCounter=0,this.isPublicApiCall=!1,this.createCommand($e,c.Undo,C.UndoCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_z,T.ModifierKey.Meta|T.KeyCode.Key_z),this.createCommand($e,c.Redo,g.RedoCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_y,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Key_z,T.ModifierKey.Meta|T.ModifierKey.Shift|T.KeyCode.Key_z),this.createCommand($e,c.Cut,Y.CutSelectionCommand,T.KeyCode.Key_x|T.ModifierKey.Ctrl,T.KeyCode.Key_x|T.ModifierKey.Meta,T.KeyCode.Delete|T.ModifierKey.Shift),this.createCommand($e,c.Copy,K.CopySelectionCommand,T.KeyCode.Key_c|T.ModifierKey.Ctrl,T.KeyCode.Key_c|T.ModifierKey.Meta,T.KeyCode.Insert|T.ModifierKey.Ctrl),this.createCommand($e,c.Paste,J.PasteSelectionCommand),this.createCommand($e,c.PasteInPosition,re.PasteSelectionInPositionCommand),this.createCommand($e,c.SelectAll,w.SelectAllCommand,T.KeyCode.Key_a|T.ModifierKey.Ctrl,T.KeyCode.Key_a|T.ModifierKey.Meta),this.createCommand($e,c.Delete,I.DeleteCommand,T.KeyCode.Delete,T.KeyCode.Backspace),this.createCommand($e,c.Import,a.ImportCommand),this.createCommand($e,c.ImportBPMN,j.ImportBPMNCommand),this.createCommand($e,c.ImportXML,te.ImportXMLCommand),this.createCommand($e,c.Export,p.ExportCommand),this.createCommand($e,c.ExportSvg,V.ExportSvgCommand),this.createCommand($e,c.ExportPng,z.ExportPngCommand),this.createCommand($e,c.ExportJpg,U.ExportJpgCommand),this.createCommand($e,c.BindDocument,M.BindDocumentCommand),this.createCommand($e,c.UnbindDocument,oe.UnbindDocumentCommand),this.createCommand($e,c.Bold,s.ToggleFontBoldCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_b,T.ModifierKey.Meta|T.KeyCode.Key_b),this.createCommand($e,c.Italic,l.ToggleFontItalicCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_i,T.ModifierKey.Meta|T.KeyCode.Key_i),this.createCommand($e,c.Underline,d.ToggleFontUnderlineCommand,T.ModifierKey.Ctrl|T.KeyCode.Key_u,T.ModifierKey.Meta|T.KeyCode.Key_u),this.createCommand($e,c.FontName,h.ChangeFontNameCommand),this.createCommand($e,c.FontSize,v.ChangeFontSizeCommand),this.createCommand($e,c.FontColor,x.ChangeFontColorCommand),this.createCommand($e,c.FillColor,b.ChangeFillColorCommand),this.createCommand($e,c.StrokeColor,y.ChangeStrokeColorCommand),this.createCommand($e,c.StrokeStyle,be.ChangeStrokeStyleCommand),this.createCommand($e,c.StrokeWidth,Ae.ChangeStrokeWidthCommand),this.createCommand($e,c.TextLeftAlign,E.TextLeftAlignCommand),this.createCommand($e,c.TextCenterAlign,E.TextCenterAlignCommand),this.createCommand($e,c.TextRightAlign,E.TextRightAlignCommand),this.createCommand($e,c.ConnectorLineOption,O.ChangeConnectorLineOptionCommand),this.createCommand($e,c.ConnectorStartLineEnding,S.ChangeConnectorStartLineEndingCommand),this.createCommand($e,c.ConnectorEndLineEnding,S.ChangeConnectorEndLineEndingCommand),this.createCommand($e,c.BringToFront,G.BringToFrontCommand),this.createCommand($e,c.SendToBack,ee.SendToBackCommand),this.createCommand($e,c.MoveLeft,Z.MoveLeftCommand,T.ModifierKey.Ctrl|T.KeyCode.Left,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Left),this.createCommand($e,c.MoveRight,Z.MoveRightCommand,T.ModifierKey.Ctrl|T.KeyCode.Right,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Right),this.createCommand($e,c.MoveUp,Z.MoveUpCommand,T.ModifierKey.Ctrl|T.KeyCode.Up,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Up),this.createCommand($e,c.MoveDown,Z.MoveDownCommand,T.ModifierKey.Ctrl|T.KeyCode.Down,T.ModifierKey.Ctrl|T.ModifierKey.Shift|T.KeyCode.Down),this.createCommand($e,c.MoveStepLeft,Z.MoveStepLeftCommand,T.KeyCode.Left,T.ModifierKey.Shift|T.KeyCode.Left),this.createCommand($e,c.MoveStepRight,Z.MoveStepRightCommand,T.KeyCode.Right,T.ModifierKey.Shift|T.KeyCode.Right),this.createCommand($e,c.MoveStepUp,Z.MoveStepUpCommand,T.KeyCode.Up,T.ModifierKey.Shift|T.KeyCode.Up),this.createCommand($e,c.MoveStepDown,Z.MoveStepDownCommand,T.KeyCode.Down,T.ModifierKey.Shift|T.KeyCode.Down),this.createCommand($e,c.CloneLeft,ae.CloneLeftCommand,T.ModifierKey.Alt|T.KeyCode.Left,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Left),this.createCommand($e,c.CloneRight,ae.CloneRightCommand,T.ModifierKey.Alt|T.KeyCode.Right,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Right),this.createCommand($e,c.CloneUp,ae.CloneUpCommand,T.ModifierKey.Alt|T.KeyCode.Up,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Up),this.createCommand($e,c.CloneDown,ae.CloneDownCommand,T.ModifierKey.Alt|T.KeyCode.Down,T.ModifierKey.Alt|T.ModifierKey.Shift|T.KeyCode.Down),this.createCommand($e,c.Lock,Be.LockCommand),this.createCommand($e,c.Unlock,ze.UnLockCommand),this.createCommand($e,c.AutoLayoutTree,k.AutoLayoutTreeVerticalCommand),this.createCommand($e,c.AutoLayoutFlow,q.AutoLayoutLayeredHorizontalCommand),this.createCommand($e,c.Units,_e.ChangeUnitsCommand),this.createCommand($e,c.ViewUnits,_e.ChangeViewUnitsCommand),this.createCommand($e,c.PageSize,W.ChangePageSizeCommand),this.createCommand($e,c.PageLandscape,B.ChangePageLandscapeCommand),this.createCommand($e,c.PageColor,ye.ChangePageColorCommand),this.createCommand($e,c.GridSize,P.ChangeGridSizeCommand),this.createCommand($e,c.ShowGrid,ne.ChangeShowGridCommand),this.createCommand($e,c.SnapToGrid,R.ChangeSnapToGridCommand),this.createCommand($e,c.ZoomLevel,X.ChangeZoomLevelCommand),this.createCommand($e,c.ZoomLevelInPercentage,X.ChangeZoomLevelInPercentageCommand),this.createCommand($e,c.AutoLayoutTreeVertical,k.AutoLayoutTreeVerticalCommand),this.createCommand($e,c.AutoLayoutTreeVerticalBottomToTop,Ne.AutoLayoutTreeVerticalBottomToTopCommand),this.createCommand($e,c.AutoLayoutTreeHorizontal,fe.AutoLayoutTreeHorizontalCommand),this.createCommand($e,c.AutoLayoutTreeHorizontalRightToLeft,mt.AutoLayoutTreeHorizontalRightToLeftCommand),this.createCommand($e,c.AutoLayoutLayeredVertical,Te.AutoLayoutLayeredVerticalCommand),this.createCommand($e,c.AutoLayoutLayeredVerticalBottomToTop,tt.AutoLayoutLayeredVerticalBottomToTopCommand),this.createCommand($e,c.AutoLayoutLayeredHorizontal,q.AutoLayoutLayeredHorizontalCommand),this.createCommand($e,c.AutoLayoutLayeredHorizontalRightToLeft,Le.AutoLayoutLayeredHorizontalRightToLeftCommand),this.createCommand($e,c.Fullscreen,ce.ToggleFullscreenCommand,T.KeyCode.F11),this.createCommand($e,c.ToggleSimpleView,le.ToggleSimpleViewCommand),this.createCommand($e,c.ToggleReadOnly,pe.ToggleReadOnlyCommand),this.createCommand($e,c.InsertShapeImage,ie.InsertShapeImageCommand),this.createCommand($e,c.EditShapeImage,Se.EditShapeImageCommand),this.createCommand($e,c.DeleteShapeImage,ue.DeleteShapeImageCommand),this.createCommand($e,c.FitToScreen,X.FitToScreenCommand),this.createCommand($e,c.FitToWidth,X.FitToWidthCommand),this.createCommand($e,c.SwitchAutoZoom,X.SwitchAutoZoomCommand),this.createCommand($e,c.ToggleAutoZoom,X.ToggleAutoZoomCommand),this.createCommand($e,c.ZoomLevelItems,X.ChangeZoomLevelItemsCommand),this.createCommand($e,c.GridSizeItems,P.ChangeGridSizeItemsCommand),this.createCommand($e,c.PageSizeItems,W.ChangePageSizeItemsCommand),this.createCommand($e,c.Zoom25,X.ChangeZoomLevelTo25Command),this.createCommand($e,c.Zoom50,X.ChangeZoomLevelTo50Command),this.createCommand($e,c.Zoom75,X.ChangeZoomLevelTo75Command),this.createCommand($e,c.Zoom100,X.ChangeZoomLevelTo100Command),this.createCommand($e,c.Zoom125,X.ChangeZoomLevelTo125Command),this.createCommand($e,c.Zoom150,X.ChangeZoomLevelTo150Command),this.createCommand($e,c.Zoom200,X.ChangeZoomLevelTo200Command),this.createCommand($e,c.AutoZoomToContent,X.ToggleAutoZoomToContentCommand),this.createCommand($e,c.AutoZoomToWidth,X.ToggleAutoZoomToWidthCommand),this.createCommand($e,c.ConnectorRoutingMode,gt.ChangeConnectorRoutingModeCommand)}return Pe.prototype.getCommand=function($e){return this.commands[$e]},Pe.prototype.beforeExecuting=function($e){this.executingCommandsChain.push($e),this.executingCommandCounter++},Pe.prototype.afterExecuting=function(){this.executingCommandCounter--,0===this.executingCommandCounter&&(this.lastCommandsChain=this.executingCommandsChain,this.executingCommandsChain=[])},Pe.prototype.processShortcut=function($e){var ge=this.shortcutsToCommand[$e];return!!ge&&ge.execute()},Pe.prototype.processPaste=function($e){var ge=this.getCommand(c.Paste);return ge&&ge.isEnabled()&&ge.execute($e),!0},Pe.prototype.notifySelectionChanged=function($e){this.lastCommandsChain=[]},Pe.prototype.notifyScrollPositionChanged=function(){},Pe.prototype.createCommand=function($e,ge,Ce){for(var De=[],Ye=3;Ye<arguments.length;Ye++)De[Ye-3]=arguments[Ye];this.commands[ge]=new Ce($e);for(var bt=0;bt<De.length;bt++){var yt=De[bt];"number"==typeof yt&&(this.shortcutsToCommand[yt]=this.commands[ge])}},Pe}();u.CommandManager=tn},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(177),I=o(178),C=function(){function g(){}return g.normalizeToDataUrl=function(a,p){return g.checkPrependDataUrl(a)||(a=g.prependByDataUrl(a,p)),a},g.prependByDataUrl=function(a,p){return"data:"+p+";base64,"+a},g.checkPrependDataUrl=function(a){return g.dataUrl.test(a)},g.deleteDataUrlPrefix=function(a){return a.replace(g.dataUrl,"")},g.getUint8Array=function(a){for(var p=(a=atob(a)).length,s=new Uint8Array(p);p--;)s[p]=a.charCodeAt(p);return s},g.fromArrayBuffer=function(a){for(var p=[],s=new Uint8Array(a),l=s.byteLength,d=0;d<l;d++)p.push(String.fromCharCode(s[d]));return window.btoa(p.join(""))},g.getFileFromBase64=function(a,p,s){void 0===p&&(p="");var l=g.getUint8Array(a);return c.FileUtils.createFile([l],p,s)},g.getMimeTypeAsString=function(a){var p=a.match(g.dataUrl);return p?p[1]:null},g.getKnownMimeType=function(a){var p=a.match(g.dataUrl);return p?I.MimeTypeUtils.stringTypeToType(p[1]):I.DxMimeType.Unknown},g.fromBlobAsArrayBuffer=function(a,p){var s=new FileReader;s.onloadend=function(){return p(g.fromArrayBuffer(s.result))},s.readAsArrayBuffer(a)},g.fromBlobAsDataUrl=function(a,p){var s=new FileReader;s.onloadend=function(){return p(s.result)},s.readAsDataURL(a)},g.dataUrl=/^data:(.*?)(;(.*?))??(;base64)?,/,g}();u.Base64Utils=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.NativeConnector=u.NativeShape=u.NativeItem=void 0;var C=o(4),g=function(){function s(l,d){this.id=l,this.key=d,this.unitsApplied=!1}return s.prototype.applyUnits=function(l){this.unitsApplied||void 0===l||(this.applyUnitsCore(l),this.unitsApplied=!0)},s}();u.NativeItem=g;var a=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.applyUnitsCore=function(d){this.position.x=C.ModelUtils.getlUnitValue(d,this.position.x),this.position.y=C.ModelUtils.getlUnitValue(d,this.position.y),this.size.width=C.ModelUtils.getlUnitValue(d,this.size.width),this.size.height=C.ModelUtils.getlUnitValue(d,this.size.height)},l}(g);u.NativeShape=a;var p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.applyUnitsCore=function(d){this.points.forEach(function(h){h.x=C.ModelUtils.getlUnitValue(d,h.x),h.y=C.ModelUtils.getlUnitValue(d,h.y)})},l}(g);u.NativeConnector=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorRenderPointsContext=void 0,u.ConnectorRenderPointsContext=function(I,C,g){this.renderPoints=I,this.lockCreateRenderPoints=C,this.actualRoutingMode=g}},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ReplaceConnectorPointsHistoryItem=u.ChangeConnectorPointsHistoryItem=u.UpdateConnectorPointsHistoryItem=void 0;var C=function(p){function s(l,d){var h=p.call(this)||this;return h.connectorKey=l,h.newPoints=d,h}return I(s,p),s.prototype.redo=function(l){var d=this,h=l.model.findConnector(this.connectorKey);this.oldRenderContext=h.tryCreateRenderPointsContext(),this.oldPoints=h.points.map(function(v){return v.clone()}),l.changeConnectorPoints(h,function(v){v.points=d.newPoints,d.updateRenderPoints(v)})},s.prototype.undo=function(l){var d=this,h=l.model.findConnector(this.connectorKey);l.changeConnectorPoints(h,function(v){v.points=d.oldPoints,v.replaceRenderPoints(d.oldRenderContext)})},s}(o(8).HistoryItem);u.UpdateConnectorPointsHistoryItem=C;var g=function(p){function s(l,d,h){var v=p.call(this,l,d)||this;return v.connectorKey=l,v.newPoints=d,v.newRenderContext=h,v}return I(s,p),s.prototype.updateRenderPoints=function(l){l.replaceRenderPoints(this.newRenderContext)},s}(C);u.ChangeConnectorPointsHistoryItem=g;var a=function(p){function s(l,d){var h=p.call(this,l,d)||this;return h.connectorKey=l,h.newPoints=d,h}return I(s,p),s.prototype.updateRenderPoints=function(l){l.clearRenderPoints()},s}(C);u.ReplaceConnectorPointsHistoryItem=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(C,g,a,p){this.left=C,this.right=g,this.top=a,this.bottom=p}return I.empty=function(){return new I(0,0,0,0)},Object.defineProperty(I.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!0,configurable:!0}),Object.defineProperty(I.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!0,configurable:!0}),I.fromNumber=function(C){return new I(C,C,C,C)},I.fromOffsets=function(C){return new I(C.left,C.right,C.top,C.bottom)},I.fromSide=function(C,g){return new I(C,C,g,g)},I.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},I.prototype.offset=function(C){return this.left+=C.left,this.right+=C.right,this.top+=C.top,this.bottom+=C.bottom,this},I.prototype.multiply=function(C,g,a,p){switch(arguments.length){case 1:return this.left*=C,this.right*=C,this.top*=C,this.bottom*=C,this;case 2:return this.left*=C,this.right*=C,this.top*=g,this.bottom*=g,this;case 4:return this.left*=C,this.right*=g,this.top*=a,this.bottom*=p,this}return this},I.prototype.clone=function(){return new I(this.left,this.right,this.top,this.bottom)},I.prototype.copyFrom=function(C){this.left=C.left,this.right=C.right,this.top=C.top,this.bottom=C.bottom},I.prototype.equals=function(C){return this.top===C.top&&this.bottom===C.bottom&&this.right===C.right&&this.left===C.left},I.prototype.applyConverter=function(C){return this.left=C(this.left),this.right=C(this.right),this.top=C(this.top),this.bottom=C(this.bottom),this},I}();u.Offsets=c},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorPropertyHistoryItem=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.connectorKey=p,d.propertyName=s,d.value=l,d}return I(a,g),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);this.oldValue=s.properties[this.propertyName],p.changeConnectorProperty(s,this.propertyName,this.value)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorProperty(s,this.propertyName,this.oldValue)},a}(o(8).HistoryItem);u.ChangeConnectorPropertyHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStyleHistoryItem=void 0;var C=function(g){function a(p,s,l){return g.call(this,p,s,l)||this}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldStyleValue=s.style[this.styleProperty],p.changeStyle(s,this.styleProperty,this.styleValue)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeStyle(s,this.styleProperty,this.oldStyleValue)},a}(o(118).ChangeStyleHistoryItemBase);u.ChangeStyleHistoryItem=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.HashSet=void 0;var c=function(){function I(C,g){var a=this;void 0===C&&(C=[]),void 0===g&&(g=function(p){return p.toString()}),this.items=[],this.map={},this.getHashCode=g,C.forEach(function(p){return a.tryPush(p)})}return I.prototype.tryPush=function(C){var g=this.getHashCode(C);return void 0===this.map[g]&&(this.map[g]=this.items.push(C)-1,!0)},I.prototype.contains=function(C){return void 0!==this.map[this.getHashCode(C)]},I.prototype.forEach=function(C){this.items.forEach(C)},I.prototype.filter=function(C){return this.items.filter(C)},I.prototype.list=function(){return this.items.slice(0)},I.prototype.item=function(C){return this.items[C]},I.prototype.first=function(){return this.items[0]},I.prototype.remove=function(C){var g=this.getHashCode(C),a=this.map[g];if("number"!=typeof a)throw"Item not found";delete this.map[g],this.items.splice(a,1);for(var p=a;p<this.items.length;p++)this.map[this.getHashCode(this.items[p])]--},Object.defineProperty(I.prototype,"length",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),I}();u.HashSet=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeDescriptionManager=void 0;var c=o(202),I=o(203),C=o(204),g=o(205),a=o(206),p=o(207),s=o(208),l=o(209),d=o(210),h=o(211),v=o(120),x=o(72),b=o(212),y=o(19),E=o(121),S=o(122),O=o(123),w=o(213),T=o(214),k=o(215),R=o(216),P=o(217),B=o(124),W=o(125),z=o(218),V=o(219),U=o(220),K=o(221),Y=o(222),J=o(223),j=o(224),ee=o(225),G=o(226),q=o(227),Z=o(228),X=o(229),M=o(230),oe=o(126),fe=o(232),Te=o(233),Be=o(234),ze=o(1),ae=o(236),_e=o(3),ye=o(237),ne=function(){function ce(){this.descriptions={},this.descriptionTypes={},this.descriptionCategories={},this.onShapeDecriptionChanged=new _e.EventDispatcher,this.register(new E.TextShapeDescription,ze.ShapeCategories.General),this.register(new y.RectangleShapeDescription,ze.ShapeCategories.General),this.register(new x.EllipseShapeDescription,ze.ShapeCategories.General),this.register(new h.CrossShapeDescription,ze.ShapeCategories.General),this.register(new B.TriangleShapeDescription,ze.ShapeCategories.General),this.register(new v.DiamondShapeDescription,ze.ShapeCategories.General),this.register(new b.HeartShapeDescription,ze.ShapeCategories.General),this.register(new S.PentagonShapeDescription,ze.ShapeCategories.General),this.register(new O.HexagonShapeDescription,ze.ShapeCategories.General),this.register(new w.OctagonShapeDescription,ze.ShapeCategories.General),this.register(new T.StarShapeDescription,ze.ShapeCategories.General),this.register(new d.ArrowUpShapeDescription,ze.ShapeCategories.General),this.register(new k.ArrowDownShapeDescription,ze.ShapeCategories.General),this.register(new P.ArrowLeftShapeDescription,ze.ShapeCategories.General),this.register(new l.ArrowRightShapeDescription,ze.ShapeCategories.General),this.register(new s.ArrowUpDownShapeDescription,ze.ShapeCategories.General),this.register(new R.ArrowLeftRightShapeDescription,ze.ShapeCategories.General),this.register(new c.ProcessShapeDescription,ze.ShapeCategories.Flowchart),this.register(new I.DecisionShapeDescription,ze.ShapeCategories.Flowchart),this.register(new a.TerminatorShapeDescription,ze.ShapeCategories.Flowchart),this.register(new p.PredefinedProcessShapeDescription,ze.ShapeCategories.Flowchart),this.register(new W.DocumentShapeDescription,ze.ShapeCategories.Flowchart),this.register(new z.MultipleDocumentsShapeDescription,ze.ShapeCategories.Flowchart),this.register(new C.ManualInputShapeDescription,ze.ShapeCategories.Flowchart),this.register(new V.PreparationShapeDescription,ze.ShapeCategories.Flowchart),this.register(new g.DataShapeDescription,ze.ShapeCategories.Flowchart),this.register(new K.DatabaseShapeDescription,ze.ShapeCategories.Flowchart),this.register(new U.HardDiskShapeDescription,ze.ShapeCategories.Flowchart),this.register(new Y.InternalStorageShapeDescription,ze.ShapeCategories.Flowchart),this.register(new J.PaperTapeShapeDescription,ze.ShapeCategories.Flowchart),this.register(new j.ManualOperationShapeDescription,ze.ShapeCategories.Flowchart),this.register(new ee.DelayShapeDescription,ze.ShapeCategories.Flowchart),this.register(new G.StoredDataShapeDescription,ze.ShapeCategories.Flowchart),this.register(new Z.DisplayShapeDescription,ze.ShapeCategories.Flowchart),this.register(new q.MergeShapeDescription,ze.ShapeCategories.Flowchart),this.register(new ae.ConnectorShapeDescription,ze.ShapeCategories.Flowchart),this.register(new X.OrShapeDescription,ze.ShapeCategories.Flowchart),this.register(new M.SummingJunctionShapeDescription,ze.ShapeCategories.Flowchart),this.register(new ye.CardWithImageOnLeftDescription,ze.ShapeCategories.OrgChart),this.register(new ye.CardWithImageOnRightDescription,ze.ShapeCategories.OrgChart),this.register(new Be.CardWithImageOnTopDescription,ze.ShapeCategories.OrgChart),this.register(new fe.VerticalContainerDescription,ze.ShapeCategories.Containers),this.register(new Te.HorizontalContainerDescription,ze.ShapeCategories.Containers)}return Object.defineProperty(ce,"default",{get:function(){return ce.defaultInstance},enumerable:!1,configurable:!0}),Object.defineProperty(ce,"defaultContainer",{get:function(){return ce.defaultContainerInstance},enumerable:!1,configurable:!0}),ce.prototype.get=function(le){return this.descriptions[le]},ce.prototype.getTypesByCategory=function(le){return this.descriptionTypes[le]||[]},ce.prototype.getCategoryByType=function(le){return this.descriptionCategories[le]},ce.prototype.getCategoryByDescription=function(le){return this.getCategoryByType(le.key)},ce.prototype.register=function(le,pe,Se){if(void 0===Se&&(Se=le.key),void 0!==this.descriptions[Se])throw Error("Description key is duplicated");this.descriptions[Se]=le,this.descriptionTypes[pe]||(this.descriptionTypes[pe]=[]),this.descriptionTypes[pe].push(Se),this.descriptionCategories[Se]=pe,le.onChanged.add(this)},ce.prototype.registerCustomShape=function(le){if(void 0===le.type)throw Error("Custom shape type is not defined");if(void 0!==this.descriptions[le.type])throw Error("Custom shape type is duplicated");var pe=le.baseType&&this.descriptions[le.baseType];le.minWidth>le.maxWidth&&(le.maxWidth=le.minWidth),le.minHeight>le.maxHeight&&(le.maxHeight=le.minHeight),this.register(new oe.CustomShapeDescription(le,pe),le.category||ze.ShapeCategories.Custom)},ce.prototype.unregisterCustomShape=function(le){var pe=this.descriptions[le];if(pe instanceof oe.CustomShapeDescription){pe.onChanged.remove(this);var Se=this.descriptionCategories[le];delete this.descriptions[le],delete this.descriptionCategories[le];var re=this.descriptionTypes[Se].indexOf(le);this.descriptionTypes[Se].splice(re,1),0===this.descriptionTypes[Se].length&&delete this.descriptionTypes[Se]}},ce.prototype.unregisterAllCustomShapes=function(){var le=this;Object.keys(this.descriptions).forEach(function(pe){le.unregisterCustomShape(pe)})},ce.prototype.notifyShapeDescriptionChanged=function(le){this.onShapeDecriptionChanged.raise1(function(pe){return pe.notifyShapeDescriptionChanged(le)})},ce.defaultInstance=new y.RectangleShapeDescription,ce.defaultContainerInstance=new fe.VerticalContainerDescription,ce}();u.ShapeDescriptionManager=ne},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowVerticalShapeDescription=u.ArrowVerticalLineWidthParameterName=u.ArrowVerticalTriangleHeightParameterName=void 0;var C=o(7),g=o(2),a=o(37),p=o(9);u.ArrowVerticalTriangleHeightParameterName="th",u.ArrowVerticalLineWidthParameterName="lw";var s=function(l){function d(){return l.call(this,new g.Size(.375*C.ShapeDefaultDimension,C.ShapeDefaultDimension))||this}return I(d,l),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createParameters=function(h){h.addRange([new a.ShapeParameter(u.ArrowVerticalTriangleHeightParameterName,Math.sqrt(Math.pow(this.defaultSize.width,2)-Math.pow(this.defaultSize.width/2,2))),new a.ShapeParameter(u.ArrowVerticalLineWidthParameterName,this.defaultSize.width/3)])},d.prototype.normalizeParameters=function(h,v){this.changeParameterValue(v,u.ArrowVerticalTriangleHeightParameterName,function(x){return Math.max(0,Math.min(h.size.height,x.value))}),this.changeParameterValue(v,u.ArrowVerticalLineWidthParameterName,function(x){return Math.max(0,Math.min(h.size.width,x.value))})},d.prototype.processConnectionPoint=function(h,v){var x=(h.size.width-h.parameters.get(u.ArrowVerticalLineWidthParameterName).value)/2,b=h.getConnectionPointSide(v);b===p.ConnectionPointSide.East?v.x-=x:b===p.ConnectionPointSide.West&&(v.x+=x)},d.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},d.prototype.getSizeByText=function(h,v){return h.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},d}(C.ShapeDescription);u.ArrowVerticalShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowHorizontalShapeDescription=u.ArrowVerticalLineHeightParameterName=u.ArrowVerticalTriangleWidthParameterName=void 0;var C=o(7),g=o(2),a=o(37),p=o(9);u.ArrowVerticalTriangleWidthParameterName="tw",u.ArrowVerticalLineHeightParameterName="lh";var s=function(l){function d(){return l.call(this,new g.Size(C.ShapeDefaultDimension,.375*C.ShapeDefaultDimension))||this}return I(d,l),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createParameters=function(h){h.addRange([new a.ShapeParameter(u.ArrowVerticalTriangleWidthParameterName,Math.sqrt(Math.pow(this.defaultSize.height,2)-Math.pow(this.defaultSize.height/2,2))),new a.ShapeParameter(u.ArrowVerticalLineHeightParameterName,this.defaultSize.height/3)])},d.prototype.normalizeParameters=function(h,v){this.changeParameterValue(v,u.ArrowVerticalTriangleWidthParameterName,function(x){return Math.max(0,Math.min(h.size.width,x.value))}),this.changeParameterValue(v,u.ArrowVerticalLineHeightParameterName,function(x){return Math.max(0,Math.min(h.size.height,x.value))})},d.prototype.processConnectionPoint=function(h,v){var x=(h.size.height-h.parameters.get(u.ArrowVerticalLineHeightParameterName).value)/2,b=h.getConnectionPointSide(v);b===p.ConnectionPointSide.North?v.y+=x:b===p.ConnectionPointSide.South&&(v.y-=x)},d.prototype.getTextRectangle=function(h){return h.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},d.prototype.getSizeByText=function(h,v){return h.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},d}(C.ShapeDescription);u.ArrowHorizontalShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.PolygonShapeDescription=void 0;var C=o(7),g=function(a){function p(s){var l=a.call(this,void 0,s)||this;return l.defaultSize.height=l.calculateHeight(C.ShapeDefaultDimension),l}return I(p,a),Object.defineProperty(p.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"angle",{get:function(){return Math.PI*(this.angleCount-2)/this.angleCount},enumerable:!1,configurable:!0}),p}(C.ShapeDescription);u.PolygonShapeDescription=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ImportUtils=void 0;var c=function(){function I(){}return I.parseJSON=function(C){if(!C||""===C)return{};try{return JSON.parse(C)}catch{return{}}},I.createDocument=function(C){return(new DOMParser).parseFromString(C,"application/xml")},I}();u.ImportUtils=c},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStyleTextPropertyCommand=void 0;var C=o(135),g=o(70),a=o(26),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())},l.prototype.getStyleObj=function(d){return d.styleText},l.prototype.getDefaultStyleObj=function(){return new a.TextStyle},l.prototype.createHistoryItem=function(d,h,v){return new g.ChangeStyleTextHistoryItem(d.key,h,v)},l.prototype.updateInputPosition=function(d){this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),d)},l}(C.ChangeStylePropertyCommandBase);u.ChangeStyleTextPropertyCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.TreeLayoutBuilder=void 0;var C=o(138),g=o(252),a=o(71),p=o(3),s=o(0),l=o(139),d=o(38),h=o(9),v=o(20),x=o(54),b=function(y){function E(){var S=null!==y&&y.apply(this,arguments)||this;return S.nodeToLevel={},S.levelDepthSize={},S}return I(E,y),E.prototype.build=function(){var S=this,O=new C.GraphLayout,w=0;return this.graph.getConnectedComponents().forEach(function(T){for(var k=g.Tree.createSpanningTree(T),R=S.processTree(k),P=S.getComponentOffset(R);R.nodeKeys.length<T.nodes.length;){var B=new x.Graph(T.nodes.filter(function(V){return!R.nodeToLayout[V]}).map(function(V){return T.getNode(V)}),T.edges.filter(function(V){return!R.edgeToPosition[V.key]})),W=g.Tree.createSpanningTree(B),z=S.processTree(W);R.extend(S.setComponentOffset(z,P)),P+=S.getComponentOffset(z)}O.extend(S.setComponentOffset(R,w)),w+=S.getComponentOffset(R)}),O},E.prototype.preProcessTree=function(S,O,w){var T=this;if((O=O.filter(function(R){return(void 0===T.nodeToLevel[R.key]?T.nodeToLevel[R.key]=w:-1)>=0})).length){var k=this.getMaxDepthSize(O);this.levelDepthSize[w]=k,this.preProcessTree(S,[].concat.apply([],O.map(function(R){return S.getChildren(R)})),w+1)}},E.prototype.loadNodes=function(S,O,w){return w?S.getChildren(w.info).map(function(T){return O.hasNode(T.key)?void 0:O.addNode(new a.NodeLayout(T,s.Point.zero()))}).filter(function(T){return T}):[O.addNode(new a.NodeLayout(S.root,s.Point.zero()))]},E.prototype.processTree=function(S){var O=this,w=new C.GraphLayout;if(this.preProcessTree(S,[S.root],0),this.processLevel(S,w,0,new p.Range(0),0),this.settings.direction===v.LogicalDirectionKind.Backward){var T=Object.keys(this.levelDepthSize).map(function(R){return O.levelDepthSize[R]}),k=T.reduce(function(R,P){return R+P},0)+(T.length-1)*this.settings.layerSpacing;w.forEachNode(function(R){return O.setDepthPos(R,O.getDepthPos(R)+k)})}return w},E.prototype.processLevel=function(S,O,w,T,k,R){var P,B=this,W=this.addNodes(S,O,k,R),z=R?this.graph.getAdjacentEdges(R.key,d.ConnectionMode.Outgoing):[],V=this.getDirectionValue(this.levelDepthSize[k]),U=this.getDirectionValue(this.settings.layerSpacing);if(W.forEach(function(J){var j=p.Range.fromLength(P?P.to+B.settings.columnSpacing:T.from,B.getBreadthNodeSizeCore(J.info));J.position=B.getNodePosition(j.from,w,V).clone().offset(J.info.margin.left,J.info.margin.top),B.processLevel(S,O,w+V+U,j,k+1,J),B.updateEdgeConnections(O,z,J),T.extend(j),P=j}),R&&W.length){var K=W[W.length-1],Y=new p.Range(this.getBreadthPos(W[0]),this.getBreadthPos(K)+this.getBreadthNodeSizeCore(K.info,!0));this.alignParent(R,Y,T)}},E.prototype.addNodes=function(S,O,w,T){var k=this;return 0===w?[O.addNode(new a.NodeLayout(S.root,s.Point.zero()))]:S.getChildren(T.info).reduce(function(R,P){return k.nodeToLevel[P.key]!==w||O.hasNode(P.key)||R.push(O.addNode(new a.NodeLayout(P,s.Point.zero()))),R},[])},E.prototype.getMaxDepthSize=function(S){var O=this;return S.reduce(function(w,T){return Math.max(w,O.getDepthNodeSizeCore(T))},0)},E.prototype.getNodePosition=function(S,O,w){return this.settings.direction===v.LogicalDirectionKind.Forward?this.settings.orientation===v.DataLayoutOrientation.Vertical?new s.Point(S,O):new s.Point(O,S):this.settings.orientation===v.DataLayoutOrientation.Vertical?new s.Point(S,O+w):new s.Point(O+w,S)},E.prototype.updateEdgeConnections=function(S,O,w){var T=this;O.filter(function(k){return k.to===w.key}).forEach(function(k){var R=T.getBeginEdgeIndex(),P=T.getEndEdgeIndex();S.addEdge(new a.EdgeLayout(k.key,R,P))})},E.prototype.getBeginEdgeIndex=function(){return this.settings.direction===v.LogicalDirectionKind.Forward?this.isVertical()?h.ConnectionPointSide.South:h.ConnectionPointSide.East:this.isVertical()?h.ConnectionPointSide.North:h.ConnectionPointSide.West},E.prototype.getEndEdgeIndex=function(){return this.settings.direction===v.LogicalDirectionKind.Forward?this.isVertical()?h.ConnectionPointSide.North:h.ConnectionPointSide.West:this.isVertical()?h.ConnectionPointSide.South:h.ConnectionPointSide.East},E.prototype.alignParent=function(S,O,w){if(this.settings.alignment===v.Alignment.Center){var T=O.from+O.length/2-this.getBreadthNodeSizeCore(S.info,!0)/2;this.settings.orientation===v.DataLayoutOrientation.Vertical?(S.position.x=Math.max(w.from+S.info.margin.left,T),S.position.x=Math.min(w.to-S.info.size.width-S.info.margin.right,S.position.x)):(S.position.y=Math.max(w.from+S.info.margin.top,T),S.position.y=Math.min(w.to-S.info.size.height-S.info.margin.bottom,S.position.y))}},E.prototype.getDepthPos=function(S){return this.settings.orientation===v.DataLayoutOrientation.Vertical?S.position.y:S.position.x},E.prototype.getBreadthPos=function(S){return this.settings.orientation===v.DataLayoutOrientation.Vertical?S.position.x:S.position.y},E.prototype.setDepthPos=function(S,O){this.settings.orientation===v.DataLayoutOrientation.Vertical?S.position.y=O:S.position.x=O},E.prototype.isVertical=function(){return this.settings.orientation===v.DataLayoutOrientation.Vertical},E}(l.LayoutBuilder);u.TreeLayoutBuilder=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportImageCommand=void 0;var C=o(78),g=o(260),a=o(57),p=o(73),s=o(15),l=o(79),d=o(100),h=o(46),v=function(x){function b(y){var E=x.call(this,y)||this;return E.exporter=new p.Exporter,E}return I(b,x),b.prototype.isEnabled=function(){return!h.ImageCache.instance.hasNonLoadedImages()},b.prototype.executeCore=function(y,E){var S=this;try{var O=this.getExportManager();this.getExportFunc()(this.control.model.size.clone(),this.control.model.pageColor,O,function(w){E(w,S.getExtension()),S.tryDispose()},this.control.settings.useCanvgForExportToImage)}catch(w){throw this.tryDispose(),w}return!0},b.prototype.getExportManager=function(){var y=this.getOrCreateMeasurer(),E=this.control.render&&this.control.render.items||this.createItemsManager(y);return this.exportManager||(this.exportManager=new g.CanvasExportManager(E.itemsContainer,y))},b.prototype.createItemsManager=function(y){this.svgElement=s.RenderHelper.createSvgElement(document.body,!0);var E=new C.CanvasItemsManager(this.svgElement,1,new d.ExportDOMManipulator(y));return this.control.modelManipulator.onModelChanged.add(E),this.control.modelManipulator.commitItemsCreateChanges(),E},b.prototype.tryDispose=function(){this.svgElement&&(document.body.removeChild(this.svgElement),delete this.svgElement),this.tempMeasurer&&(this.tempMeasurer.clean(),this.tempMeasurer=void 0),this.exportManager=void 0},b.prototype.getOrCreateMeasurer=function(){return this.control.measurer||(this.tempMeasurer=new l.TextMeasurer(document.body))},b}(a.ExportImportCommandBase);u.ExportImageCommand=v},function(he,u,o){"use strict";var I;Object.defineProperty(u,"__esModule",{value:!0}),u.ItemChange=u.ItemChangeType=void 0,(I=u.ItemChangeType||(u.ItemChangeType={}))[I.Create=0]="Create",I[I.UpdateProperties=1]="UpdateProperties",I[I.UpdateStructure=2]="UpdateStructure",I[I.Update=3]="Update",I[I.Remove=4]="Remove",I[I.UpdateClassName=5]="UpdateClassName";var c=function(){function I(C,g,a){void 0===a&&(a=!0),this.item=C,this.type=g,this.isValid=a}return Object.defineProperty(I.prototype,"key",{get:function(){return this.item.key},enumerable:!1,configurable:!0}),I}();u.ItemChange=c},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportDOMManipulator=u.DOMManipulator=void 0;var C=o(61),g=function(){function p(s){this.measurer=s,this.queue=[]}return p.prototype.createElement=function(s,l,d){return s.createElement(function(h){null!=l&&(void 0!==d?l.insertBefore(h,d):l.appendChild(h))})},p.prototype.changeChildrenByPrimitives=function(s,l){var d=this;s.forEach(function(h,v){d.changeByPrimitive(l.childNodes[v],h)})},p.prototype.changeByFunc=function(s,l){this.doChange(s,l)},p.prototype.changeByPrimitive=function(s,l){this.doChange(s,l)},p.prototype.cancelAnimation=function(){void 0!==this.rafId&&(cancelAnimationFrame(this.rafId),this.queue=[])},p.prototype.doChange=function(s,l){C.Diagnostics.optimizeUsingRAF?(this.queue.push([s,l]),this.requestAnimation()):this.doChangeSync(s,l)},p.prototype.doChangeSync=function(s,l){"function"==typeof l?l(s):l.applyElementProperties(s,this.measurer)},p.prototype.requestAnimation=function(){var s=this;if(!this.rafRequested){this.rafRequested=!0;var l=function(){s.queue.splice(0,2e3).forEach(function(d){return s.doChangeSync(d[0],d[1])}),s.queue.length?s.rafId=requestAnimationFrame(l):(s.rafRequested=!1,s.rafId=void 0)};this.rafId=requestAnimationFrame(l)}},p}();u.DOMManipulator=g;var a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.doChange=function(l,d){this.doChangeSync(l,d)},s}(g);u.ExportDOMManipulator=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ClipboardCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.setClipboardData=function(p){this.control.render&&this.control.render.input.setClipboardData(p),a.clipboardData=p},a.prototype.getClipboardData=function(p){this.control.render&&this.isPasteSupportedByBrowser()?this.control.render.input.getClipboardData(p):p(a.clipboardData)},a.prototype.isPasteSupportedByBrowser=function(){return this.control.render&&this.control.render.input.isPasteSupportedByBrowser()},a}(o(10).SimpleCommandBase);u.ClipboardCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeZindexHistoryItem=void 0;var C=function(g){function a(p,s){var l=g.call(this)||this;return l.itemKey=p.key,l.zIndex=s,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldZIndex=s.zIndex,p.changeZIndex(s,this.zIndex)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeZIndex(s,this.oldZIndex)},a}(o(8).HistoryItem);u.ChangeZindexHistoryItem=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DataLayoutParameters=u.DataLayoutType=void 0;var c,p,I=o(20),C=o(97),g=o(80);(p=c=u.DataLayoutType||(u.DataLayoutType={}))[p.Tree=0]="Tree",p[p.Sugiyama=1]="Sugiyama";var a=function(){function p(s,l){this.sizeSettings=s,l&&(void 0!==l.type&&(this.layoutType=l.type,this.layoutSettings=this.layoutType===c.Sugiyama?new I.LayoutSettings:new I.TreeLayoutSettings),void 0!==l.orientation&&(this.layoutSettings.orientation=l.orientation),this.skipPointIndices=l.skipPointIndices,this.autoSizeEnabled=l.autoSizeEnabled)}return Object.defineProperty(p.prototype,"needAutoLayout",{get:function(){return void 0!==this.layoutType},enumerable:!1,configurable:!0}),p.prototype.getLayoutBuilder=function(s){return this.layoutType===c.Tree?new C.TreeLayoutBuilder(this.layoutSettings,s):new g.SugiyamaLayoutBuilder(this.layoutSettings,s)},p}();u.DataLayoutParameters=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.EditShapeImageCommandBase=void 0;var C=o(146),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.getSelectedShape();return a.prototype.isEnabled.call(this)&&!!s&&!s.locked&&s.enableImage&&s.allowEditImage},p.prototype.getValue=function(){var s=this.getSelectedShape();return s?s.image.exportUrl:void 0},p.prototype.getSelectedShape=function(){var s=this.control.selection.getSelectedShapes(!0);return 1===s.length?s[0]:void 0},p.prototype.executeCore=function(s,l){this.control.history.beginTransaction();var d=this.control.selection.getSelectedShapes(!1);return this.control.history.addAndRedo(new C.ChangeShapeImageHistoryItem(d[0],l)),this.control.history.endTransaction(),!0},p}(o(10).SimpleCommandBase);u.EditShapeImageCommandBase=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(165),I=o(166),C=function(){function g(){}return g.remove=function(a,p){var s=a.indexOf(p,0);s>=0&&a.splice(s,1)},g.removeBy=function(a,p){for(var s=a.length,l=0;l<s;l++)if(p(a[l],l))return a.splice(l,1)[0];return null},g.shallowCopy=function(a){return a.slice()},g.deepCopy=function(a){return g.map(a,function(p){return p.clone()})},g.initByValue=function(a,p){for(var s=[];a>0;a--)s.push(p);return s},g.initByCallback=function(a,p){for(var s=[],l=0;l<a;l++)s.push(p(l));return s},g.forEachOnInterval=function(a,p){for(var s=a.end,l=a.start;l<s;l++)p(l)},g.reverseForEachOnInterval=function(a,p){for(var s=a.start,l=a.end-1;l>=s;l--)p(l)},g.reducedMap=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=[],h=s;h<l;h++){var v=p(a[h],h);null!==v&&d.push(v)}return d},g.filter=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=[],h=s;h<l;h++){var v=a[h];p(v,h)&&d.push(v)}return d},g.map=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=[],h=s;h<l;h++)d.push(p(a[h],h));return d},g.indexBy=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)if(p(a[d],d))return d;return-1},g.reverseIndexBy=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)if(p(a[d],d))return d;return-1},g.elementBy=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.indexBy(a,p,s,l);return d<0?null:a[d]},g.reverseElementBy=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);var d=g.reverseIndexBy(a,p,s,l);return d<0?null:a[d]},g.last=function(a){return a[a.length-1]},g.setLast=function(a,p){return a[a.length-1]=p},g.incLast=function(a){return++a[a.length-1]},g.decLast=function(a){return--a[a.length-1]},g.equals=function(a,p){return a.length===p.length&&g.allOf2(a,p,function(s,l){return s.equals(l)})},g.equalsByReference=function(a,p){var s=a.length;if(s!==a.length)return!1;for(var l=0;l<s;l++)if(a[l]!==p[l])return!1;return!0},g.unique=function(a,p,s,l){void 0===s&&(s=p),void 0===l&&(l=function(){});var d=a.length;if(0===d)return[];var h=(a=a.sort(p))[0],v=g.reducedMap(a,function(x){return 0!==s(h,x)?(h=x,x):(l(x),null)},1,d);return v.unshift(a[0]),v},g.uniqueNumber=function(a){a=a.sort(I.Comparers.number);for(var p=Number.NaN,s=a.length-1;s>=0;s--)p===a[s]?a.splice(s,1):p=a[s];return a},g.forEach=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)p(a[d],d)},g.forEach2=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=l;h<d;h++)s(a[h],p[h],h)},g.reverseForEach=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)p(a[d],d)},g.reverseIndexOf=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)if(a[d]===p)return d;return-1},g.accumulate=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=p,v=l;v<d;v++)h=s(h,a[v],v);return h},g.accumulateNumber=function(a,p,s,l,d){void 0===s&&(s=0),void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=s,v=l;v<d;v++)h+=p(a[v],v,h);return h},g.anyOf=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)if(p(a[d],d))return!0;return!1},g.unsafeAnyOf=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++){var h=p(a[d],d);if(h)return h}return null},g.reverseAnyOf=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)if(p(a[d],d))return!0;return!1},g.unsafeReverseAnyOf=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--){var h=p(a[d],d);if(h)return h}return null},g.anyOf2=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=l;h<d;h++)if(s(a[h],p[h],h))return!0;return!1},g.allOf=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)if(!p(a[d],d))return!1;return!0},g.allOf2=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=l;h<d;h++)if(!s(a[h],p[h],h))return!1;return!0},g.allOfOnInterval=function(a,p){for(var s=a.end,l=a.start;l<s;l++)if(!p(l))return!1;return!0},g.addListOnTail=function(a,p){for(var s=0,l=void 0;l=p[s];s++)a.push(l);return a},g.joinLists=function(a){for(var p=[],s=1;s<arguments.length;s++)p[s-1]=arguments[s];return g.accumulate(p,[],function(l,d){return g.addListOnTail(l,a(d)),l})},g.push=function(a,p){return a.push(p),a},g.countIf=function(a,p){return g.accumulateNumber(a,function(s,l){return p(s,l)?1:0})},g.clear=function(a){a.splice(0)},g.merge=function(a,p,s,l,d,h){if(void 0===d&&(d=0),void 0===h&&(h=a.length),a=a.slice(d,h),h-d<2)return a;for(var v=(a=a.sort(p))[d],x=[v],b=d+1;b<h;b++){var y=a[b];s(v,y)?l(v,y):x.push(v=y)}return x},g.min=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.minExtended(a,p,s,l);return d?d.minElement:null},g.max=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.maxExtended(a,p,s,l);return d?d.maxElement:null},g.minMax=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.minMaxExtended(a,p,s,l);return d?new c.MinMax(d.minElement,d.maxElement):null},g.minExtended=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=p(d),v=s+1;v<l;v++){var x=a[v],b=p(x);b<h&&(h=b,d=x)}return new c.ExtendedMin(d,h)},g.maxExtended=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=p(d),v=s+1;v<l;v++){var x=a[v],b=p(x);b>h&&(h=b,d=x)}return new c.ExtendedMax(d,h)},g.minMaxExtended=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=d,v=p(d),x=v,b=s+1;b<l;b++){var y=a[b],E=p(y);E<v?(v=E,d=y):E>x&&(x=E,h=y)}return new c.ExtendedMinMax(d,v,h,x)},g.minByCmp=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<l;h++){var v=a[h];p(v,d)<0&&(d=v)}return d},g.maxByCmp=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<l;h++){var v=a[h];p(v,d)>0&&(d=v)}return d},g.minMaxByCmp=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=d,v=s+1;v<l;v++){var x=a[v],b=p(x,d);b>0?h=x:b<0&&(d=x)}return new c.MinMax(d,h)},g}();u.ListUtils=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(59),I=function(C){function g(a,p){var s=C.call(this)||this;return s.start=a,s.length=p,s}return c.__extends(g,C),Object.defineProperty(g.prototype,"end",{get:function(){return this.start+this.length},set:function(a){this.length=a-this.start},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,configurable:!0}),g.prototype.copyFrom=function(a){this.start=a.start,this.length=a.length},g.prototype.equals=function(a){return a&&this.start===a.start&&this.length===a.length},g.prototype.clone=function(){return new g(this.start,this.length)},g.prototype.makeByStartEnd=function(a,p){return new g(a,p-a)},g.prototype.makeByStartLength=function(a,p){return new g(a,p)},g.prototype.makeByLengthEnd=function(a,p){return new g(p-a,a)},g.fromPositions=function(a,p){return new g(a,p-a)},g.makeByConstInterval=function(a){return new g(a.start,a.length)},g.prototype.expand=function(a){var p=Math.max(a.end,this.end);return this.start=Math.min(a.start,this.start),this.end=p,this},g}(o(167).MutableInterval);u.FixedInterval=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(C){this.sparseIntervals=C,this.intervalIndex=-1}return Object.defineProperty(I.prototype,"isStarted",{get:function(){return!!this.curr},enumerable:!0,configurable:!0}),I.prototype.moveNext=function(){return this.curr&&this.posInInterval+1<this.curr.length?(this.posInInterval++,this.index++,this.initObject(),!0):this.intervalIndex+1<this.sparseIntervals.numIntervals&&(this.intervalIndex++,this.curr=this.sparseIntervals.getInterval(this.intervalIndex),this.curr.length?(this.posInInterval=0,this.index=this.curr.start,this.initObject(),!0):this.moveNext())},I.prototype.movePrev=function(){return this.curr&&this.posInInterval-1>=this.curr.start?(this.posInInterval--,this.index--,this.initObject(),!0):(this.isStarted||(this.intervalIndex=this.sparseIntervals.numIntervals),this.intervalIndex-1>=0&&(this.intervalIndex--,this.curr=this.sparseIntervals.getInterval(this.intervalIndex),this.posInInterval=Math.max(this.curr.length-1,this.curr.start),this.index=this.curr.start,this.initObject(),!0))},I.prototype.initObject=function(){},I}();u.SparseIntervalsIterator=c},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.FilterPrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v){var x=a.call(this)||this;return x.id=s,x.x=l,x.y=d,x.width=h,x.height=v,x}return I(p,a),p.prototype.createMainElement=function(){var s=document.createElementNS(C.svgNS,"filter");return s.setAttribute("id",this.id),s},p.prototype.applyElementProperties=function(s,l){this.id&&s.setAttribute("id",this.id),this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,l)},p}(o(24).SvgPrimitive);u.FilterPrimitive=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PrimitiveObject=void 0;var c=o(12),I=function(){function C(g){this.style=g}return Object.defineProperty(C.prototype,"strokeWidthPx",{get:function(){return this.style?this.style.strokeWidthPx:0},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"strokeOffset",{get:function(){return this.style?this.style.strokeOffset:0},enumerable:!1,configurable:!0}),C.prototype.getUnitVaue=function(g){return"number"==typeof g?c.UnitConverter.twipsToPixels(g).toString():g},C.prototype.setUnitAttribute=function(g,a,p){null!=p&&g.setAttribute(a,this.getUnitVaue(p))},C.prototype.setPositionCorrectionAttribute=function(g){g.setAttribute("transform",this.strokeWidthPx%2==1?"translate("+this.strokeOffset+", "+this.strokeOffset+")":"")},C}();u.PrimitiveObject=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.isColorProperty=void 0;var c={stroke:!0,fill:!0};u.isColorProperty=function(I){return c[I]}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsCalculatorBase=void 0,u.ConnectorPointsCalculatorBase=function(I){this.connector=I}},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeShapeParametersHistoryItem=void 0;var C=function(g){function a(p,s){var l=g.call(this)||this;return l.shapeKey=p,l.parameters=s,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldParameters=s.parameters.clone(),p.changeShapeParameters(s,this.parameters)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeParameters(s,this.oldParameters)},a}(o(8).HistoryItem);u.ChangeShapeParametersHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteConnectorHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.connectorKey=p,s}return I(a,g),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);this.connector=s.clone(),p.deleteConnector(s)},a.prototype.undo=function(p){p.addConnector(this.connector,this.connector.key)},a}(o(8).HistoryItem);u.DeleteConnectorHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteShapeHistoryItem=void 0;var C=function(g){function a(p,s){void 0===s&&(s=!0);var l=g.call(this)||this;return l.shapeKey=p,l.allowed=s,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.shape=s.clone(),p.deleteShape(s,this.allowed)},a.prototype.undo=function(p){p.addShape(this.shape,this.shape.key)},a}(o(8).HistoryItem);u.DeleteShapeHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ResizeShapeHistoryItem=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.shapeKey=p,d.position=s,d.size=l,d}return I(a,g),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldPosition=s.position.clone(),this.oldSize=s.size.clone(),p.resizeShape(s,this.position,this.size)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.resizeShape(s,this.oldPosition,this.oldSize)},a}(o(8).HistoryItem);u.ResizeShapeHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeCustomDataHistoryItem=void 0;var C=o(8),g=o(3),a=function(p){function s(l,d){var h=p.call(this)||this;return h.itemKey=l,h.customData=g.ObjectUtils.cloneObject(d),h}return I(s,p),s.prototype.redo=function(l){var d=l.model.findItem(this.itemKey);this.oldCustomData=g.ObjectUtils.cloneObject(d.customData),l.changeCustomData(d,this.customData)},s.prototype.undo=function(l){var d=l.model.findItem(this.itemKey);l.changeCustomData(d,this.oldCustomData)},s}(C.HistoryItem);u.ChangeCustomDataHistoryItem=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeLockedHistoryItem=void 0;var C=function(g){function a(p,s){var l=g.call(this)||this;return l.itemKey=p.key,l.locked=s,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldLocked=s.locked,p.changeLocked(s,this.locked)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeLocked(s,this.oldLocked)},a}(o(8).HistoryItem);u.ChangeLockedHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStyleHistoryItemBase=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.itemKey=p,d.styleProperty=s,d.styleValue=l,d}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.oldStyleValue=s.style[this.styleProperty],p.changeStyle(s,this.styleProperty,this.styleValue)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.changeStyle(s,this.styleProperty,this.oldStyleValue)},a}(o(8).HistoryItem);u.ChangeStyleHistoryItemBase=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.Importer=void 0;var C=o(14),g=o(3),a=o(2),p=o(0),s=o(91),l=o(6),d=o(51),h=o(133),v=o(95),x=o(22),b=function(y){function E(S,O){var w=y.call(this,S)||this;return w.obj=v.ImportUtils.parseJSON(O),w}return I(E,y),E.prototype.getObject=function(){return this.obj},E.prototype.getPageObject=function(S){return S.page},E.prototype.getShapeObjects=function(S){return S.shapes},E.prototype.getConnectorObjects=function(S){return S.connectors},E.prototype.importPageSettings=function(S,O){O&&(this.assert(O.width,"number"),this.assert(O.height,"number"),"number"==typeof O.width&&(S.size.width=O.width),"number"==typeof O.height&&(S.size.height=O.height),"number"==typeof O.pageColor?S.pageColor=O.pageColor:"string"==typeof O.pageColor&&(S.pageColor=x.ColorUtils.fromString(O.pageColor)),"number"==typeof O.pageWidth&&(S.pageSize.width=O.pageWidth),"number"==typeof O.pageHeight&&(S.pageSize.height=O.pageHeight),"boolean"==typeof O.pageLandscape&&(S.pageLandscape=O.pageLandscape))},E.prototype.importShape=function(S){this.assert(S.key,"string"),this.assert(S.x,"number"),this.assert(S.y,"number"),this.assert(S.type,"string");var w=this.shapeDescriptionManager.get(S.type),T=new p.Point(S.x,S.y),k=new C.Shape(w||s.ShapeDescriptionManager.default,T);return k.key=S.key,"string"!=typeof S.dataKey&&"number"!=typeof S.dataKey||(k.dataKey=S.dataKey),"object"==typeof S.customData&&(k.customData=g.ObjectUtils.cloneObject(S.customData)),"boolean"==typeof S.locked&&(k.locked=S.locked),"number"==typeof S.width&&(k.size.width=S.width),"number"==typeof S.height&&(k.size.height=S.height),"string"==typeof S.text&&(k.text=S.text),"string"==typeof S.imageUrl&&(k.image=new d.ImageInfo(S.imageUrl)),S.parameters&&(k.parameters.fromObject(S.parameters),k.description.normalizeParameters(k,k.parameters)),S.style&&k.style.fromObject(S.style),S.styleText&&k.styleText.fromObject(S.styleText),"number"==typeof S.zIndex&&(k.zIndex=S.zIndex),Array.isArray(S.childKeys)&&(k.childKeys=S.childKeys.slice()),"boolean"==typeof S.expanded&&(k.expanded=S.expanded),"number"==typeof S.expandedWidth&&"number"==typeof S.expandedHeight&&(k.expandedSize=new a.Size(S.expandedWidth,S.expandedHeight)),k},E.prototype.importShapeChildren=function(S,O){return[]},E.prototype.importConnector=function(S){var O=this;if(this.assert(S.key,"string"),!Array.isArray(S.points))throw Error("Invalid Format");var w=S.points.map(function(k){return O.assert(k.x,"number"),O.assert(k.y,"number"),new p.Point(k.x,k.y)}),T=new l.Connector(w);return T.key=S.key,"string"!=typeof S.dataKey&&"number"!=typeof S.dataKey||(T.dataKey=S.dataKey),"object"==typeof S.customData&&(T.customData=g.ObjectUtils.cloneObject(S.customData)),"boolean"==typeof S.locked&&(T.locked=S.locked),T.endConnectionPointIndex="number"==typeof S.endConnectionPointIndex?S.endConnectionPointIndex:-1,T.beginConnectionPointIndex="number"==typeof S.beginConnectionPointIndex?S.beginConnectionPointIndex:-1,void 0!==S.endItemKey&&this.assert(S.endItemKey,"string"),void 0!==S.beginItemKey&&this.assert(S.beginItemKey,"string"),T.endItemKey=S.endItemKey,T.beginItemKey=S.beginItemKey,S.texts&&T.texts.fromObject(S.texts),S.properties&&T.properties.fromObject(S.properties),S.style&&T.style.fromObject(S.style),S.styleText&&T.styleText.fromObject(S.styleText),"number"==typeof S.zIndex&&(T.zIndex=S.zIndex),T},E}(h.ImporterBase);u.Importer=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.DiamondShapeDescription=void 0;var C=o(7),g=o(5),a=o(1),p=function(s){function l(d,h){return void 0===d&&(d=C.ShapeDefaultSize.clone()),s.call(this,d,h)||this}return I(l,s),Object.defineProperty(l.prototype,"key",{get:function(){return a.ShapeTypes.Diamond},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),l.prototype.createShapePrimitives=function(d){var h=d.rectangle,v=h.x,b=h.right,y=h.bottom,E=h.center,S=E.x,O=E.y;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(S,h.y),new g.PathPrimitiveLineToCommand(b,O),new g.PathPrimitiveLineToCommand(S,y),new g.PathPrimitiveLineToCommand(v,O),new g.PathPrimitiveClosePathCommand],d.style)]},l.prototype.getTextRectangle=function(d){return d.rectangle.clone().inflate(-d.size.width/4,-d.size.height/4)},l.prototype.getSizeByText=function(d,h){return d.clone().multiply(2,2)},l}(C.ShapeDescription);u.DiamondShapeDescription=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.TextShapeDescription=void 0;var C=o(7),g=o(2),a=o(1),p=o(56),s=o(21),l=o(17),d=function(h){function v(){var x=h.call(this,new g.Size(C.ShapeDefaultDimension,.5*C.ShapeDefaultDimension),!0)||this;return x.textClipPathId=l.RenderUtils.generateSvgElementId("clipRect"),x}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return a.ShapeTypes.Text},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x,b){if(b){var y=x.rectangle,E=y.x,S=y.y,O=y.width,w=y.height;return[new p.ClipPathPrimitive(this.getTextClipPathId(b),[new s.RectanglePrimitive(E,S,O,w)])]}return[]},v.prototype.getTextClipPathId=function(x){return x?this.textClipPathId:void 0},v.prototype.getSizeByTextRectangle=function(x){return x},v.prototype.getSizeByText=function(x,b){return x.clone()},v.prototype.getTextRectangle=function(x){return x.rectangle},v}(C.ShapeDescription);u.TextShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.PentagonShapeDescription=void 0;var C=o(5),g=o(1),a=o(94),p=o(9),s=o(3),l=o(13),d=function(h){function v(x){var b=h.call(this,x)||this;return b.defaultRatio=b.defaultSize.height/b.defaultSize.width,b}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.Pentagon},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"angleCount",{get:function(){return 5},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.width,T=b.height,k=b.center.x,R=T/w/this.defaultRatio,P=Math.PI-this.angle,B=w/2*Math.tan(P/2)*R,W=E+B,z=(T-B)/Math.tan(P)/R,V=y+z,U=S-z;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(k,E),new C.PathPrimitiveLineToCommand(S,W),new C.PathPrimitiveLineToCommand(U,O),new C.PathPrimitiveLineToCommand(V,O),new C.PathPrimitiveLineToCommand(y,W),new C.PathPrimitiveClosePathCommand],x.style)]},v.prototype.processConnectionPoint=function(x,b){var y=x.getConnectionPointSide(b);if(y===p.ConnectionPointSide.East||y===p.ConnectionPointSide.West){var E=x.rectangle,O=E.width,w=E.height/O/this.defaultRatio,T=Math.PI-this.angle,k=E.y+O/2*Math.tan(T/2)*w;(y===p.ConnectionPointSide.East||y===p.ConnectionPointSide.West)&&(b.y=k)}},v.prototype.calculateHeight=function(x){var b=Math.PI-this.angle;return x/2*Math.tan(b/2)+x/2/Math.cos(b/2)*Math.sin(b)},v.prototype.getTextRectangle=function(x){var b=s.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return l.Rectangle.fromGeometry(x.position.clone().offset((x.size.width-b.width)/2,(x.size.height-b.height)/2),b)},v.prototype.getSizeByText=function(x,b){return s.GeometryUtils.getEllipseByEnscribedRectangle(x)},v}(a.PolygonShapeDescription);u.PentagonShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.HexagonShapeDescription=void 0;var C=o(5),g=o(1),a=o(94),p=o(3),s=o(13),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return g.ShapeTypes.Hexagon},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"angleCount",{get:function(){return 6},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,w=x.center.y,T=Math.PI-this.angle,k=O/(1+2*Math.cos(T)),R=b+(O-k)/2,P=R+k;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(R,y),new C.PathPrimitiveLineToCommand(P,y),new C.PathPrimitiveLineToCommand(E,w),new C.PathPrimitiveLineToCommand(P,S),new C.PathPrimitiveLineToCommand(R,S),new C.PathPrimitiveLineToCommand(b,w),new C.PathPrimitiveClosePathCommand],v.style)]},h.prototype.calculateHeight=function(v){var x=Math.PI-this.angle;return v/(1+2*Math.cos(x))*2*Math.sin(x)},h.prototype.getTextRectangle=function(v){var x=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(v.size);return s.Rectangle.fromGeometry(v.position.clone().offset((v.size.width-x.width)/2,(v.size.height-x.height)/2),x)},h.prototype.getSizeByText=function(v,x){return p.GeometryUtils.getEllipseByEnscribedRectangle(v)},h}(a.PolygonShapeDescription);u.HexagonShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.TriangleShapeDescription=void 0;var C=o(7),g=o(5),a=o(1),p=o(45),s=o(9),l=o(13),d=o(2),h=function(v){function x(b){var y=v.call(this,void 0,b)||this;return y.defaultSize.height=y.calculateHeight(C.ShapeDefaultDimension),y}return I(x,v),Object.defineProperty(x.prototype,"key",{get:function(){return a.ShapeTypes.Triangle},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),x.prototype.createConnectionPoints=function(){return[new p.ConnectionPoint(.5,0,s.ConnectionPointSide.North),new p.ConnectionPoint(.75,.5,s.ConnectionPointSide.East),new p.ConnectionPoint(.5,1,s.ConnectionPointSide.South),new p.ConnectionPoint(.25,.5,s.ConnectionPointSide.West)]},x.prototype.createShapePrimitives=function(b){var y=b.rectangle,E=y.x,O=y.right,w=y.bottom;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(y.center.x,y.y),new g.PathPrimitiveLineToCommand(O,w),new g.PathPrimitiveLineToCommand(E,w),new g.PathPrimitiveClosePathCommand],b.style)]},x.prototype.calculateHeight=function(b){return Math.sqrt(Math.pow(b,2)-Math.pow(b/2,2))},x.prototype.getTextRectangle=function(b){return new l.Rectangle(b.position.x+b.size.width/4,b.position.y+b.size.height/2,b.size.width/2,b.size.height/2-C.ShapeTextPadding).nonNegativeSize()},x.prototype.getSizeByText=function(b,y){return new d.Size(2*b.width,2*b.height+C.ShapeTextPadding)},x}(C.ShapeDescription);u.TriangleShapeDescription=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.DocumentShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(9),s=function(l){function d(){return l.call(this,void 0,!0)||this}return I(d,l),Object.defineProperty(d.prototype,"key",{get:function(){return g.ShapeTypes.Document},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){return this.createDocumentPrimitives(h.rectangle,h.style)},d.prototype.createDocumentPrimitives=function(h,v){var x=h.x,b=h.y,y=h.right,E=h.bottom,S=h.width,w=h.center.x,T=h.height*d.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(x,b),new a.PathPrimitiveLineToCommand(y,b),new a.PathPrimitiveLineToCommand(y,E),new a.PathPrimitiveQuadraticCurveToCommand(y-.25*S,E-2*T,w,E-T),new a.PathPrimitiveQuadraticCurveToCommand(x+.25*S,E+T,x,E-T),new a.PathPrimitiveClosePathCommand],v)])},d.prototype.processConnectionPoint=function(h,v){h.getConnectionPointSide(v)===p.ConnectionPointSide.South&&(v.y-=h.size.height*d.curveOffsetRatio)},d.prototype.getTextRectangle=function(h){var v=h.rectangle;return v.clone().resize(0,-v.height*d.curveOffsetRatio)},d.curveOffsetRatio=.1,d}(C.RectangleShapeDescription);u.DocumentShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(S,O){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var k in T)T.hasOwnProperty(k)&&(w[k]=T[k])})(S,O)},function(S,O){function w(){this.constructor=S}c(S,O),S.prototype=null===O?Object.create(O):(w.prototype=O.prototype,new w)});Object.defineProperty(u,"__esModule",{value:!0}),u.CustomShapeDescription=void 0;var C=o(127),g=o(13),a=o(2),p=o(0),s=o(45),l=o(9),d=o(128),h=o(7),v=o(51),x=o(46),b=o(130),y=o(231),E=function(S){function O(w,T){var k=S.call(this,new a.Size(w.defaultWidth||T&&T.defaultSize.width||h.ShapeDefaultDimension,w.defaultHeight||T&&T.defaultSize.height||h.ShapeDefaultDimension))||this;if(k.properties=w,k.baseDescription=T,k.imageLoader=new b.ImageLoader(k.updateSvgImage.bind(k)),k.defaultText=void 0!==w.defaultText?w.defaultText:T&&T.getDefaultText(),k.defaultImageUrl=w.defaultImageUrl||T&&T.getDefaultImageUrl(),k.title=w.title||T&&T.getTitle()||k.defaultText||"",k.connectionPoints=k.createConnectionPoints(),w.svgUrl){k.svgImage=new v.ImageInfo(w.svgUrl);var R=x.ImageCache.instance.createUnloadedInfoByShapeImageInfo(k.svgImage);k.imageLoader.load(R)}return w.svgToolboxUrl&&(k.svgToolboxImage=new v.ImageInfo(w.svgToolboxUrl),R=x.ImageCache.instance.createUnloadedInfoByShapeImageInfo(k.svgToolboxImage),k.imageLoader.load(R)),k}return I(O,S),Object.defineProperty(O.prototype,"key",{get:function(){return this.properties.type},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"allowEditText",{get:function(){return!1!==this.properties.allowEditText},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"allowEditImage",{get:function(){return this.baseDescription?this.baseDescription.allowEditImage:!0===this.properties.allowEditImage},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"enableChildren",{get:function(){return this.baseDescription&&this.baseDescription.enableChildren},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"hasTemplate",{get:function(){return!!this.properties.createTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minWidth",{get:function(){return this.properties.minWidth||this.baseDescription&&this.baseDescription.minWidth},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"minHeight",{get:function(){return this.properties.minHeight||this.baseDescription&&this.baseDescription.minHeight},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maxWidth",{get:function(){return this.properties.maxWidth||this.baseDescription&&this.baseDescription.maxWidth},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"maxHeight",{get:function(){return this.properties.maxHeight||this.baseDescription&&this.baseDescription.maxHeight},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"keepRatioOnAutoSize",{get:function(){return this.properties.keepRatioOnAutoSize},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"toolboxSize",{get:function(){return this.properties.toolboxWidthToHeightRatio?new a.Size(this.defaultSize.width,this.defaultSize.width/this.properties.toolboxWidthToHeightRatio):this.defaultSize},enumerable:!1,configurable:!0}),O.prototype.getTextAngle=function(){return this.baseDescription&&this.baseDescription.getTextAngle()||S.prototype.getTextAngle.call(this)},O.prototype.getTitle=function(){return void 0!==this.title?this.title:S.prototype.getTitle.call(this)},O.prototype.getDefaultText=function(){return void 0!==this.defaultText?this.defaultText:S.prototype.getDefaultText.call(this)},O.prototype.getDefaultImageUrl=function(){return void 0!==this.defaultImageUrl?this.defaultImageUrl:S.prototype.getDefaultImageUrl.call(this)},O.prototype.allowResizeHorizontally=function(w){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeHorizontally(w):S.prototype.allowResizeHorizontally.call(this,w))},O.prototype.allowResizeVertically=function(w){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeVertically(w):S.prototype.allowResizeVertically.call(this,w))},O.prototype.createConnectionPoints=function(){return this.properties&&this.properties.connectionPoints&&this.properties.connectionPoints.length?this.properties.connectionPoints.map(function(w){if(w&&"number"==typeof w.x&&"number"==typeof w.y)return new s.ConnectionPoint(w.x,w.y,"number"==typeof w.side?w.side:l.ConnectionPointSide.Undefined)}).filter(function(w){return w}):S.prototype.createConnectionPoints.call(this)},O.prototype.getConnectionPointSides=function(){for(var w={},T=0;T<this.connectionPoints.length;T++){var k=h.ShapeDescription.getConnectionPointSideByGeometry(this.connectionPoints[T]);w[k]||(w[k]=[]),w[k].push(T)}return w},O.prototype.getConnectionPointIndexForSide=function(w){var T=this.getConnectionPointSides(),k=T[w];if(k){var R=Math.floor(k.length/2);return k.length%2==0&&R--,k[R]}return(k=T[(w+1)%4])?k[0]:(k=T[(w+3)%4])?k[k.length-1]:(k=T[(w+2)%4])?k[0]:w},O.prototype.createImagePrimitives=function(w,T){return this.baseDescription?this.baseDescription.createImagePrimitives(w,T):S.prototype.createImagePrimitives.call(this,w,T)},O.prototype.createShapePrimitives=function(w,T){var k=[],R=w.rectangle,P=R.x,B=R.y,W=R.width,z=R.height;if(this.baseDescription)k=this.baseDescription.createShapePrimitives(w,T);else{var V=T&&this.svgToolboxImage?this.svgToolboxImage:this.svgImage;V&&(k=k.concat([new C.ImagePrimitive(P+(this.properties.svgLeft&&!T?this.properties.svgLeft*W:0),B+(this.properties.svgTop&&!T?this.properties.svgTop*z:0),this.properties.svgWidth&&!T?this.properties.svgWidth*W:W,this.properties.svgHeight&&!T?this.properties.svgHeight*z:z,V.exportUrl)]))}var j=T&&this.properties.createToolboxTemplate||this.properties.createTemplate;if(j){var ee=P+(this.properties.templateLeft&&!T?this.properties.templateLeft*W:0),G=B+(this.properties.templateTop&&!T?this.properties.templateTop*z:0),q=this.properties.templateWidth&&!T?this.properties.templateWidth*W:W,Z=this.properties.templateHeight&&!T?this.properties.templateHeight*z:z,X=this.properties.apiController?this.properties.apiController.createNativeShape(w):w.toNative();k=k.concat([new y.SvgElementPrimitive(ee,G,q,Z,j,this.properties.destroyTemplate,X)])}return k},O.prototype.createParameters=function(w){return this.baseDescription?this.baseDescription.createParameters(w):S.prototype.createParameters.call(this,w)},O.prototype.normalizeParameters=function(w,T){this.baseDescription?this.baseDescription.normalizeParameters(w,T):S.prototype.normalizeParameters.call(this,w,T)},O.prototype.modifyParameters=function(w,T,k,R){this.baseDescription?this.baseDescription.modifyParameters(w,T,k,R):S.prototype.modifyParameters.call(this,w,T,k,R)},O.prototype.getParameterPoints=function(w){return this.baseDescription?this.baseDescription.getParameterPoints(w):S.prototype.getParameterPoints.call(this,w)},O.prototype.getTextRectangle=function(w){if(this.baseDescription)return this.baseDescription.getTextRectangle(w);var T=w.rectangle,P=T.width,B=T.height;return new g.Rectangle(T.x+(this.properties.textLeft?this.properties.textLeft*P:0),T.y+(this.properties.textTop?this.properties.textTop*B:0),this.properties.textWidth?this.properties.textWidth*P:P,this.properties.textHeight?this.properties.textHeight*B:B)},O.prototype.getSizeByText=function(w,T){if(this.baseDescription)return this.baseDescription.getSizeByText(w,T);var k=this.properties.textWidth;k||(k=1);var R=this.properties.textHeight;return R||(R=1),new a.Size(w.width/k,w.height/R)},O.prototype.getImageSize=function(w,T,k){return this.baseDescription?this.baseDescription instanceof d.ShapeWithImageDescription?this.baseDescription.getImageSize(w,T,k):a.Size.empty():new a.Size(this.properties.imageWidth?this.properties.imageWidth*w.width:w.width,this.properties.imageHeight?this.properties.imageHeight*w.height:w.height).nonNegativeSize()},O.prototype.getImagePlacementRectangle=function(w,T){if(this.baseDescription)return this.baseDescription instanceof d.ShapeWithImageDescription?this.baseDescription.getImagePlacementRectangle(w,T):g.Rectangle.fromGeometry(p.Point.zero(),a.Size.empty());var P=w.width,B=w.height;return new g.Rectangle(w.x+(this.properties.imageLeft&&!T?this.properties.imageLeft*P:0),w.y+(this.properties.imageTop&&!T?this.properties.imageTop*B:0),this.properties.imageWidth&&!T?this.properties.imageWidth*P:P,this.properties.imageHeight&&!T?this.properties.imageHeight*B:B)},O.prototype.updateSvgImage=function(w){var T=w.imageUrl&&w.imageUrl===this.properties.svgToolboxUrl,k=T?this.svgToolboxImage:this.svgImage;w.base64?k.loadBase64Content(w.base64):k.setUnableToLoadFlag(),T||this.raiseShapeDescriptionChanged(this)},O}(d.ShapeWithImageDescription);u.CustomShapeDescription=E},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ImagePrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x,b,y){void 0===x&&(x="none");var E=a.call(this,b,y)||this;return E.x=s,E.y=l,E.width=d,E.height=h,E.url=v,E.preserveAspectRatio=x,E}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"image")},p.prototype.applyElementProperties=function(s,l){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),s.setAttribute("href",this.url),s.setAttribute("preserveAspectRatio",this.preserveAspectRatio),a.prototype.applyElementProperties.call(this,s,l)},p}(o(24).SvgPrimitive);u.ImagePrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeWithImageDescription=u.SHAPE_IMAGE_CLASSNAMES=u.ShapeDefaultSize=u.ShapeDefaultDimension=void 0;var C=o(7),g=o(13),a=o(2),p=o(0),s=o(12),l=o(127),d=o(21),h=o(39),v=o(17),x=o(56),b=o(129);u.ShapeDefaultDimension=1440,u.ShapeDefaultSize=new a.Size(u.ShapeDefaultDimension,u.ShapeDefaultDimension),u.SHAPE_IMAGE_CLASSNAMES={IMAGE:"dxdi-image",IMAGE_PLACEHOLDER:"dxdi-image-placeholder",LOADING_INDICATOR:"dxdi-spinner",USER_PIC:"dxdi-user",WARNING_MARK:"dxdi-warning"};var y=function(E){function S(O,w){void 0===O&&(O=u.ShapeDefaultSize.clone());var T=E.call(this,O,w)||this;return T.hasDefaultText=w,T.defaultIconSize=480,T}return I(S,E),Object.defineProperty(S.prototype,"enableImage",{get:function(){return!0},enumerable:!1,configurable:!0}),S.prototype.getImageMargin=function(O){return s.UnitConverter.pixelsToTwips(O?2:3)},S.prototype.createImagePrimitives=function(O,w){if(!this.enableImage)return[];var T=this.getImagePlacementRectangle(O.rectangle,w);if(w)return this.createImagePlaceholder(T);var k=[];if(k=k.concat(O.image.isEmpty||O.image.unableToLoad?this.createEmptyImagePrimitives(T,O.image.unableToLoad):""===O.image.renderUrl?this.createLoadingImagePrimitives(T):this.createLoadedImagePrimitives(T,O.image.renderUrl)),""===O.image.renderUrl){var R=v.RenderUtils.generateSvgElementId("clipImage");return[].concat([new h.GroupPrimitive(k,u.SHAPE_IMAGE_CLASSNAMES.IMAGE,void 0,R),new x.ClipPathPrimitive(R,[new d.RectanglePrimitive(T.x,T.y,T.width,T.height)])])}return k},S.prototype.createImagePlaceholder=function(O){return[]},S.prototype.createLoadedImagePrimitives=function(O,w){return[new l.ImagePrimitive(O.x,O.y,O.width,O.height,w,S.imageScalingRule,void 0,u.SHAPE_IMAGE_CLASSNAMES.IMAGE)]},S.prototype.createLoadingImagePrimitives=function(O){var w=this.getIconPlacementRectangle(O);return[b.ShapeImageIndicator.createLoadingIndicatorPrimitives(w.x,w.y,this.defaultIconSize,s.UnitConverter.pixelsToTwips(5),u.SHAPE_IMAGE_CLASSNAMES.LOADING_INDICATOR)]},S.prototype.createEmptyImagePrimitives=function(O,w){var T=this.getIconPlacementRectangle(O),k=[];return k=k.concat(this.createEmptyImagePrimitive(T)),w&&(k=k.concat(this.createWarningPrimitive(T))),k},S.prototype.createEmptyImagePrimitive=function(O){return new h.GroupPrimitive([])},S.prototype.createWarningPrimitive=function(O){return new h.GroupPrimitive([])},S.prototype.getIconPlacementRectangle=function(O){var w=g.Rectangle.fromGeometry(new p.Point(O.x,O.y),new a.Size(this.defaultIconSize,this.defaultIconSize));return w.width<O.width&&(w.x=O.x+(O.width-w.width)/2),w.height<O.height&&(w.y=O.y+(O.height-w.height)/2),w},S.imageScalingRule="xMidYMid meet",S}(C.ShapeDescription);u.ShapeWithImageDescription=y},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ShapeImageIndicator=void 0;var c=o(55),I=o(5),C=o(39),g=o(18),a=o(21),p=o(12),s=function(){function l(d,h,v,x,b){this.x=d,this.y=h,this.size=v,this.borderThickness=x,this.className=b,this.animationStarted=!1}return l.createLoadingIndicatorPrimitives=function(d,h,v,x,b){return new l(d,h,v,x,b).createLoadingIndicatorPrimitive()},l.createUserIconPrimitives=function(d,h,v,x,b){return new l(d,h,v,x,b).createUserIconPrimitive()},l.createWarningIconPrimitives=function(d,h,v,x){return new l(d,h,v,void 0,x).createWarningIconPrimitive()},l.prototype.rotate=function(d,h,v,x){if(this.animationStarted){var b="rotate("+Math.round(x)%1080/3+" "+h+" "+v+")";d.setAttribute("transform",b),this.animationRequestId=requestAnimationFrame(function(y){this.rotate(d,h,v,y)}.bind(this))}},l.prototype.onApplyLoadingIndicatorElementProperties=function(d){var h=[p.UnitConverter.twipsToPixelsF(this.x+this.size/2),p.UnitConverter.twipsToPixelsF(this.y+this.size/2)],v=h[0],x=h[1];g.Browser.IE?(this.animationRequestId=requestAnimationFrame(function(b){this.rotate(d,v,x,b)}.bind(this)),this.animationStarted=!0):d.style.setProperty("transform-origin",v+"px "+x+"px")},l.prototype.center=function(){return[p.UnitConverter.twipsToPixelsF(this.x+this.size/2),p.UnitConverter.twipsToPixelsF(this.y+this.size/2)]},l.prototype.createLoadingIndicatorPrimitive=function(){var d=this.center(),h=d[0],v=d[1],x=p.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2);return new C.GroupPrimitive([new c.EllipsePrimitive(h+"",v+"",x+"",x+""),new I.PathPrimitive([new I.PathPrimitiveMoveToCommand(h+x+"",v+""),new I.PathPrimitiveArcToCommand(x+"",x+"",0,!1,!1,h+"",v-x+"")])],this.className,void 0,void 0,this.onApplyLoadingIndicatorElementProperties.bind(this),this.onBeforeDispose.bind(this))},l.prototype.createUserIconPrimitive=function(){var d=this.center(),h=d[0],v=d[1],x=p.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2),b=p.UnitConverter.twipsToPixelsF(this.size);return new C.GroupPrimitive([new c.EllipsePrimitive(h+"",v+"",x+"",x+"",void 0,"dxdi-background"),new c.EllipsePrimitive(h+"",v-b/8+"",b/8+"",b/8+""),new I.PathPrimitive([new I.PathPrimitiveMoveToCommand(h+"",v+b/16+""),new I.PathPrimitiveCubicCurveToCommand(h+.1375*b+"",v+b/16+"",h+b/4+"",v+.11875*b+"",h+b/4+"",v+.1875*b+""),new I.PathPrimitiveLineToCommand(h+b/4+"",v+b/4+""),new I.PathPrimitiveLineToCommand(h-b/4+"",v+b/4+""),new I.PathPrimitiveLineToCommand(h-b/4+"",v+.1875*b+""),new I.PathPrimitiveCubicCurveToCommand(h-b/4+"",v+.11875*b+"",h-.1375*b+"",v+b/16+"",h+"",v+b/16+""),new I.PathPrimitiveClosePathCommand])],this.className)},l.prototype.createWarningIconPrimitive=function(){var d=this.center(),h=d[0],v=d[1],x=p.UnitConverter.twipsToPixelsF(this.size/2)-1,b=p.UnitConverter.twipsToPixelsF(this.size/8);return new C.GroupPrimitive([new c.EllipsePrimitive(h+"",v+"",x+"",x+""),new a.RectanglePrimitive(h-b/2+.5+"",v+x-p.UnitConverter.twipsToPixelsF(this.size/4)+"",b+"",b+""),new a.RectanglePrimitive(h-b/2+.5+"",v-x+p.UnitConverter.twipsToPixelsF(this.size/4)-b+"",b+"",x+"")],this.className)},l.prototype.onBeforeDispose=function(){this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.animationStarted=!1},l}();u.ShapeImageIndicator=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ImageLoader=void 0;var c=o(46),I=function(){function C(g){this.loadedCallback=g}return C.prototype.load=function(g){g.isLoaded?this.loadedCallback(g):g.isLoading||this.loadInner(g)},C.prototype.loadInner=function(g){var a=this;return g.imageUrl?this.loadPictureByUrl(g,function(){return a.finalizeLoading(g,g)}):g.base64&&this.loadPictureByBase64(g,function(){return a.finalizeLoading(g,g)}),g},C.prototype.finalizeLoading=function(g,a){a||(a=c.ImageCache.instance.getImageData(g.actualId)),a.isLoaded||c.ImageCache.instance.finalizeLoading(a,g),this.loadedCallback(a)},C.prototype.loadPictureByBase64=function(g,a){var p=new Image;p.onload=function(){a(g)},p.src=g.base64},C.prototype.loadPictureByUrl=function(g,a){var p=this,s=new XMLHttpRequest;try{s.onload=function(){var l=new FileReader;l.onloadend=function(){g.base64=l.result,p.loadPictureByBase64(g,function(d){return a(d)})},l.readAsDataURL(s.response)},s.onerror=function(){return a(g)},s.onloadend=function(){404===s.status&&a(g)},s.open("GET",g.imageUrl,!0),s.responseType="blob",g.startLoading(),s.send()}catch{}},C}();u.ImageLoader=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(u,"__esModule",{value:!0}),u.ContainerDescription=u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=u.CONTAINER_EXPAND_BUTTON_RECT_RATIO=u.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=u.CONTAINER_HEADER_SIZE=void 0;var C=o(7),g=o(2),a=o(1),p=o(21),s=o(5),l=o(17),d=o(11),h=o(39),v=o(45),x=o(9),b=o(36);u.CONTAINER_HEADER_SIZE=360,u.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=.2,u.CONTAINER_EXPAND_BUTTON_RECT_RATIO=.5,u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=.3;var y=function(E){function S(O){return void 0===O&&(O=new g.Size(2*C.ShapeDefaultDimension,1.5*C.ShapeDefaultDimension)),E.call(this,O,!0)||this}return I(S,E),Object.defineProperty(S.prototype,"enableChildren",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),S.prototype.getDefaultText=function(){return b.DiagramLocalizationService.shapeTexts[a.ShapeTypes.Container]},S.prototype.createConnectionPoints=function(){return[new v.ConnectionPoint(.25,0,x.ConnectionPointSide.North),new v.ConnectionPoint(.5,0,x.ConnectionPointSide.North),new v.ConnectionPoint(.75,0,x.ConnectionPointSide.North),new v.ConnectionPoint(1,.25,x.ConnectionPointSide.East),new v.ConnectionPoint(1,.5,x.ConnectionPointSide.East),new v.ConnectionPoint(1,.75,x.ConnectionPointSide.East),new v.ConnectionPoint(.75,1,x.ConnectionPointSide.South),new v.ConnectionPoint(.5,1,x.ConnectionPointSide.South),new v.ConnectionPoint(.25,1,x.ConnectionPointSide.South),new v.ConnectionPoint(0,.75,x.ConnectionPointSide.West),new v.ConnectionPoint(0,.5,x.ConnectionPointSide.West),new v.ConnectionPoint(0,.25,x.ConnectionPointSide.West)]},S.prototype.getConnectionPointIndexForItem=function(O,w){return 4===(O&&O.getConnectionPoints()).length?3*w+1:w},S.prototype.getConnectionPointIndexForSide=function(O){return 3*O+1},S.prototype.createShapePrimitives=function(O,w){var T=O.rectangle,W=[];return O.expanded&&(W=W.concat([new p.RectanglePrimitive(T.x,T.y,T.width,T.height,O.style)])),W.concat(this.createHeaderPrimitives(O,w))},S.prototype.createExpandButtonPrimitives=function(O,w){var T=[new s.PathPrimitiveMoveToCommand(w.x+w.width*((1-u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2),w.center.y),new s.PathPrimitiveLineToCommand(w.x+w.width*((1-u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO),w.center.y)];O.expanded||(T=T.concat([new s.PathPrimitiveMoveToCommand(w.center.x,w.y+w.height*((1-u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2)),new s.PathPrimitiveLineToCommand(w.center.x,w.y+w.height*((1-u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+u.CONTAINER_EXPAND_BUTTON_SIGN_RATIO))]));var k=w.clone().inflate(-w.width*(1-u.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2,-w.height*(1-u.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2);return[new h.GroupPrimitive([new p.RectanglePrimitive(k.x,k.y,k.width,k.height,O.style),new s.PathPrimitive(T,O.style)],"shape-expand-btn",null,null,function(R){l.RenderUtils.setElementEventData(R,d.MouseEventElementType.ShapeExpandButton,O.key)})]},S}(C.ShapeDescription);u.ContainerDescription=y},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(S,O){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var k in T)T.hasOwnProperty(k)&&(w[k]=T[k])})(S,O)},function(S,O){function w(){this.constructor=S}c(S,O),S.prototype=null===O?Object.create(O):(w.prototype=O.prototype,new w)});Object.defineProperty(u,"__esModule",{value:!0}),u.CardBaseDescription=void 0;var C=o(7),g=o(13),a=o(2),p=o(128),s=o(235),l=o(5),d=o(39),h=o(129),v=o(1),x=o(36),b=o(12),y=o(0),E=function(S){function O(w){return void 0===w&&(w=new a.Size(C.ShapeDefaultDimension,26/46*C.ShapeDefaultDimension)),S.call(this,w,!0)||this}return I(O,S),Object.defineProperty(O.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),O.prototype.getDefaultText=function(){return x.DiagramLocalizationService.shapeTexts[v.ShapeTypes.Card]},O.prototype.createShapePrimitives=function(w,T){var k=w.rectangle;return[new s.RoundedRectanglePrimitive(k.x,k.y,k.width,k.height,T?30:60,T?30:60,w.style)]},O.prototype.createImagePlaceholder=function(w){return[new s.RoundedRectanglePrimitive(w.x,w.y,w.width,w.height,b.UnitConverter.pixelsToTwips(2),b.UnitConverter.pixelsToTwips(2),void 0,p.SHAPE_IMAGE_CLASSNAMES.IMAGE_PLACEHOLDER)]},O.prototype.createEmptyImagePrimitive=function(w){return h.ShapeImageIndicator.createUserIconPrimitives(w.x,w.y,this.defaultIconSize,b.UnitConverter.pixelsToTwips(1),p.SHAPE_IMAGE_CLASSNAMES.USER_PIC)},O.prototype.createWarningPrimitive=function(w){return h.ShapeImageIndicator.createWarningIconPrimitives(w.x+this.defaultIconSize/2,w.y+this.defaultIconSize/2,this.defaultIconSize/2,p.SHAPE_IMAGE_CLASSNAMES.WARNING_MARK)},O.prototype.getTextRectangle=function(w){var T=w.rectangle,k=T.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding),R=this.getImageSize(T.createSize(),!0);return this.isTextAfterImage&&k.moveRectangle(this.isHorizontal?R.width:0,this.isHorizontal?0:R.height),k.resize(this.isHorizontal?-R.width:0,this.isHorizontal?0:-R.height),k.nonNegativeSize()},O.prototype.getSizeByText=function(w,T){var k=w.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding),R=this.getImageSizeByTextBlockSize(k);return this.isHorizontal?k.width+=R.width:k.height+=R.height,k},O.prototype.createTextPrimitives=function(w,T){return T?this.createGraphicalTextRepresentation(w.rectangle):S.prototype.createTextPrimitives.call(this,w,T)},O.prototype.createGraphicalTextRepresentation=function(w){var T=new g.Rectangle(0,0,0,0),k=this.getImageSize(w.createSize(),!0,!0);if(this.isHorizontal){var R=this.isTextAfterImage?w.width/2-b.UnitConverter.pixelsToTwips(2):0;T.x=w.x+R+b.UnitConverter.pixelsToTwips(4),T.y=w.y+b.UnitConverter.pixelsToTwips(5),T.width=k.width-b.UnitConverter.pixelsToTwips(4),T.height=w.height-b.UnitConverter.pixelsToTwips(6)}else{var P=this.isTextAfterImage?w.height/2-b.UnitConverter.pixelsToTwips(2):0;T.x=w.x+w.width/4,T.y=w.y+P+b.UnitConverter.pixelsToTwips(4),T.width=w.width/2,T.height=k.height-b.UnitConverter.pixelsToTwips(2)}return this.createTextRepresentationPrimitives(T)},O.prototype.getImagePlacementRectangle=function(w,T){var k=this.getImageSize(w.createSize(),!1,T),R=g.Rectangle.fromGeometry(new y.Point(w.x,w.y),k),P=this.getImageSize(w.createSize(),!0,T);return this.isHorizontal&&this.isTextAfterImage?R.x+=this.getImageMargin(T):this.isHorizontal&&(R.x=w.right-P.width-this.getImageMargin(T)),this.isHorizontal||this.isTextAfterImage?R.y+=this.getImageMargin(T):R.y=w.bottom-P.height-this.getImageMargin(T),this.isHorizontal||(R.x+=(w.width-R.width)/2),R},O.prototype.createTextRepresentationPrimitives=function(w){var T=b.UnitConverter.pixelsToTwips(b.UnitConverter.twipsToPixels(w.height/3));return[new d.GroupPrimitive([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(w.x,w.y),new l.PathPrimitiveLineToCommand(w.x+w.width,w.y)]),new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(w.x,w.y+T),new l.PathPrimitiveLineToCommand(w.x+w.width,w.y+T)]),new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(w.x,w.y+2*T),new l.PathPrimitiveLineToCommand(w.x+.66*w.width,w.y+2*T)])],"dxdi-shape-text")]},O}(p.ShapeWithImageDescription);u.CardBaseDescription=E},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ImporterBase=void 0;var c=o(62),I=o(14),C=function(){function g(a){this.shapeDescriptionManager=a}return g.prototype.import=function(){var a=new c.DiagramModel,p=this.getObject();this.importPageSettings(a,this.getPageObject(p));for(var s=this.importShapes(this.getShapeObjects(p)),l=0;l<s.length;l++){var d=s[l];if(a.findItem(d.key))throw Error("Item key is duplicated");a.pushItem(d)}var h=this.importConnectors(this.getConnectorObjects(p));for(l=0;l<h.length;l++){var v=h[l];if(v.endItem=a.findItem(v.endItemKey)||void 0,delete v.endItemKey,v.beginItem=a.findItem(v.beginItemKey)||void 0,delete v.beginItemKey,a.findItem(v.key))throw Error("Item key is duplicated");a.pushItem(v),this.updateConnections(v)}return this.updateChildren(a.items,function(x){return a.findItem(x)}),a},g.prototype.importItems=function(a){for(var p,s=[],l=this.getObject(),d={},h=this.importShapes(this.getShapeObjects(l)),v=0;v<h.length;v++){var x=h[v],b=x.key;p=a.getNextKey(),x.key=p,d[b]=x,void 0!==x.dataKey&&(x.dataKey=void 0),s.push(x)}var y=this.importConnectors(this.getConnectorObjects(l));for(v=0;v<y.length;v++){var E=y[v];b=E.key,p=a.getNextKey(),E.key=p,d[b]=E,void 0!==E.dataKey&&(E.dataKey=void 0),E.endItem=d[E.endItemKey],delete E.endItemKey,E.beginItem=d[E.beginItemKey],delete E.beginItemKey,s.push(E),this.updateConnections(E)}return this.updateChildren(s,function(w){return d[w]}),s},g.prototype.importItemsData=function(a){for(var p=this.getObject(),s=this.importShapes(this.getShapeObjects(p)),l={},d=0;d<s.length;d++){var h=s[d],v=void 0;void 0!==h.dataKey&&(v=a.findShapeByDataKey(h.dataKey)),v&&(v.dataKey=h.dataKey,l[h.key]=h.dataKey,v.locked=h.locked,v.position=h.position.clone(),v.expanded=h.expanded,h.expandedSize&&(v.expandedSize=h.expandedSize.clone()),v.size=h.size.clone(),v.parameters=h.parameters.clone(),v.style=h.style.clone(),v.styleText=h.styleText.clone(),v.zIndex=h.zIndex,v.text=h.text,v.description=h.description,v.image=h.image.clone())}var x=this.importConnectors(this.getConnectorObjects(p));for(d=0;d<x.length;d++){var b=x[d],y=void 0;void 0!==b.dataKey&&(y=a.findConnectorByDataKey(b.dataKey)),y||(y=a.findConnectorByBeginEndDataKeys(l[b.beginItemKey],l[b.endItemKey])),y&&(y.dataKey=b.dataKey,y.locked=b.locked,y.points=b.points.slice(),y.properties=b.properties.clone(),y.style=b.style.clone(),y.endConnectionPointIndex=b.endConnectionPointIndex,y.beginConnectionPointIndex=b.beginConnectionPointIndex,y.texts=b.texts.clone(),y.styleText=b.styleText.clone(),y.zIndex=b.zIndex)}},g.prototype.importShapes=function(a){var p=[];if(!a)return p;if(!Array.isArray(a))throw Error("Invalid Format");for(var s=0;s<a.length;s++){var l=a[s],d=this.importShape(l);p.push(d),p=p.concat(this.importShapeChildren(l,d))}return p},g.prototype.importConnectors=function(a){var p=[];if(!a)return p;if(!Array.isArray(a))throw Error("Invalid Format");for(var s=0;s<a.length;s++)p.push(this.importConnector(a[s]));return p},g.prototype.updateChildren=function(a,p){a.forEach(function(s){s instanceof I.Shape&&s.childKeys&&(s.childKeys.forEach(function(l){var d=p(l);d&&(-1===s.children.indexOf(d)&&s.children.push(d),d.container=s)}),delete s.childKeys)})},g.prototype.updateConnections=function(a){a.endItem&&(a.endItem instanceof I.Shape?(a.endItem.attachedConnectors.push(a),a.points[a.points.length-1]=a.endItem.getConnectionPointPosition(a.endConnectionPointIndex,a.points[a.points.length-2])):(a.endItem=void 0,a.endConnectionPointIndex=-1)),a.beginItem&&(a.beginItem instanceof I.Shape?(a.beginItem.attachedConnectors.push(a),a.points[0]=a.beginItem.getConnectionPointPosition(a.beginConnectionPointIndex,a.points[1])):(a.beginItem=void 0,a.beginConnectionPointIndex=-1))},g.prototype.assert=function(a,p){if(void 0===a||void 0!==p&&typeof a!==p)throw Error("Invalid Format")},g}();u.ImporterBase=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.StylePropertyCommandBase=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.lockInputPositionUpdating=function(){return!0},a}(o(10).SimpleCommandBase);u.StylePropertyCommandBase=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStylePropertyCommandBase=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.executeCore=function(p,s){var l=this;this.control.history.beginTransaction();var d=this.control.selection.getSelectedItems();return s=this.processParameter(s),d.forEach(function(h){var v=l.getStyleProperty();l.control.history.addAndRedo(l.createHistoryItem(h,v,s))}),this.updateInputPosition(s),this.control.history.endTransaction(),!0},a.prototype.getDefaultValue=function(){return this.getDefaultStyleObj()[this.getStyleProperty()]},a.prototype.processParameter=function(p){return p},a}(o(134).StylePropertyCommandBase);u.ChangeStylePropertyCommandBase=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorPropertyCommand=void 0;var C=o(88),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentConnectorPropertyValue(this.getPropertyName())},p.prototype.getDefaultValue=function(){return this.getPropertyDefaultValue()},p.prototype.executeCore=function(s,l){var d=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedConnectors().forEach(function(h){var v=d.getPropertyName();d.control.history.addAndRedo(new C.ChangeConnectorPropertyHistoryItem(h.key,v,l))}),this.control.selection.inputPosition.setConnectorPropertyValue(this.getPropertyName(),l),this.control.history.endTransaction(),!0},p.prototype.lockInputPositionUpdating=function(){return!0},p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedConnectors();return a.prototype.isEnabled.call(this)&&s.length>0},p}(o(10).SimpleCommandBase);u.ChangeConnectorPropertyCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutTreeVerticalCommand=void 0;var C=o(76),g=o(97),a=o(20),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.createLayoutSettings=function(){var h=new a.TreeLayoutSettings(this.control.settings.snapToGrid?this.control.settings.gridSize:void 0);return h.orientation=a.DataLayoutOrientation.Vertical,h},l.prototype.createLayout=function(d,h){return new g.TreeLayoutBuilder(d,h).build()},l}(C.AutoLayoutCommandBase);u.AutoLayoutTreeVerticalCommand=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GraphLayout=void 0;var c=o(3),I=o(71),C=function(){function g(){this.nodeKeys=[],this.nodeToLayout={},this.edgeToPosition={}}return g.prototype.forEachNode=function(a){var p=this;this.nodeKeys.forEach(function(s){return a(p.nodeToLayout[s],s)})},g.prototype.reduce=function(a,p){var s=this;return this.nodeKeys.reduce(function(l,d,h){return a(l,s.nodeToLayout[d],h)},p)},g.prototype.addNode=function(a){if(this.nodeToLayout[a.key])throw Error("Node layout is already registered");return this.nodeKeys.push(a.key),this.nodeToLayout[a.key]=a,a},g.prototype.hasNode=function(a){return!!this.nodeToLayout[a]},g.prototype.addEdge=function(a){if(this.edgeToPosition[a.key])throw Error("Edge layout is already registered");this.edgeToPosition[a.key]=a},g.prototype.getRectangle=function(a){var p=this;return c.GeometryUtils.getCommonRectangle(this.nodeKeys.map(function(s){return p.nodeToLayout[s].rectangle}))},g.prototype.offsetNodes=function(a,p){var s=this;void 0===a&&(a=0),void 0===p&&(p=0);var l=new g;return this.nodeKeys.forEach(function(d){var h=s.nodeToLayout[d];l.addNode(new I.NodeLayout(h.info,h.position.clone().offset(a,p)))}),l.copyEdges(this),l},g.prototype.extend=function(a){var p=this;a.forEachNode(function(s){return p.addNode(s)}),this.copyEdges(a)},g.prototype.copyEdges=function(a){var p=this;Object.keys(a.edgeToPosition).forEach(function(s){var l=a.edgeToPosition[s];p.addEdge(new I.EdgeLayout(l.key,l.beginIndex,l.endIndex))})},g}();u.GraphLayout=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.LayoutBuilder=void 0;var c=o(20),I=function(){function C(g,a){this.settings=g,this.graph=a}return C.prototype.getBreadthNodeSizeCore=function(g,a){var p=this.settings.orientation===c.DataLayoutOrientation.Vertical?g.size.width:g.size.height;return a||(p+=this.settings.orientation===c.DataLayoutOrientation.Vertical?g.margin.left+g.margin.right:g.margin.top+g.margin.bottom),p},C.prototype.getDepthNodeSizeCore=function(g){return this.settings.orientation===c.DataLayoutOrientation.Horizontal?g.size.width+g.margin.left+g.margin.right:g.size.height+g.margin.top+g.margin.bottom},C.prototype.chooseDirectionValue=function(g,a){return this.settings.direction===c.LogicalDirectionKind.Forward?g:a},C.prototype.getDirectionValue=function(g){return this.settings.direction===c.LogicalDirectionKind.Forward?g:-g},C.prototype.getComponentOffset=function(g){var a=g.getRectangle(!0);return(this.settings.orientation===c.DataLayoutOrientation.Vertical?a.width:a.height)+this.settings.componentSpacing},C.prototype.setComponentOffset=function(g,a){return this.settings.orientation===c.DataLayoutOrientation.Vertical?g.offsetNodes(a):g.offsetNodes(0,a)},C}();u.LayoutBuilder=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasManager=void 0;var C=o(99),g=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.pendingChanges={},s.pendingRemoveChanges={},s.updatesLock=0,s}return I(p,a),p.prototype.beginUpdate=function(){this.updatesLock++},p.prototype.endUpdate=function(){this.updatesLock--,0===this.updatesLock&&this.applyPendingChanges()},p.prototype.getPendingChanges=function(){var s=this;return Object.keys(this.pendingChanges).map(function(l){return s.pendingChanges[l]})},p.prototype.getPendingRemoveChanges=function(){var s=this;return Object.keys(this.pendingRemoveChanges).map(function(l){return s.pendingRemoveChanges[l]})},p.prototype.applyPendingChanges=function(){var s=this.getPendingRemoveChanges();s.length&&(this.applyChangesCore(s),this.pendingRemoveChanges={});var l=this.getPendingChanges();l.length&&(this.applyChangesCore(l),this.pendingChanges={})},p.prototype.applyChangesCore=function(s){var l=this,d=[];s.forEach(function(h){l.applyChange(h)||d.push(h)}),d.length&&d.length!==s.length&&this.applyChangesCore(d)},p.prototype.postponeChanges=function(s){var l=this;s.forEach(function(d){if(d.type===C.ItemChangeType.Remove)l.pendingRemoveChanges[d.key]=d,delete l.pendingChanges[d.key];else if(l.pendingChanges[d.key])d.type===C.ItemChangeType.Create?l.pendingChanges[d.key]=d:d.type===C.ItemChangeType.UpdateStructure?l.pendingChanges[d.key].type===C.ItemChangeType.UpdateProperties&&(l.pendingChanges[d.key]=d):d.type===C.ItemChangeType.UpdateProperties?l.pendingChanges[d.key].type===C.ItemChangeType.Update&&(l.pendingChanges[d.key]=d):d.type===C.ItemChangeType.UpdateClassName&&l.pendingChanges[d.key].type===C.ItemChangeType.UpdateClassName&&(l.pendingChanges[d.key]=d);else{if(l.pendingRemoveChanges[d.key]&&d.type!==C.ItemChangeType.Create)throw new Error("Incorrect model changes sequence.");l.pendingChanges[d.key]=d}})},p.prototype.applyOrPostponeChanges=function(s){0===this.updatesLock?this.applyChangesCore(s):this.postponeChanges(s)},p.prototype.notifyModelChanged=function(s){this.applyOrPostponeChanges(s)},p.prototype.notifyPageColorChanged=function(s){},p.prototype.notifyPageSizeChanged=function(s,l){},p}(o(42).CanvasManagerBase);u.CanvasManager=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.PasteSelectionCommandBase=void 0;var C=o(101),g=o(119),a=o(14),p=o(266),s=o(6),l=o(267),d=o(4),h=o(68),v=o(0),x=o(12),b=function(y){function E(){return null!==y&&y.apply(this,arguments)||this}return I(E,y),E.prototype.isEnabled=function(){return y.prototype.isEnabled.call(this)&&(this.isPasteSupportedByBrowser()||void 0!==C.ClipboardCommand.clipboardData)},E.prototype.isVisible=function(){return this.isPasteSupportedByBrowser()||void 0!==C.ClipboardCommand.clipboardData},E.prototype.parseClipboardData=function(S){var O;O=new g.Importer(this.control.shapeDescriptionManager,S).importItems(this.control.model);var w=this.getEventPositionOffset(O,this.control.contextMenuPosition);w=this.getCorrectedOffsetByModel(O,w);for(var T=0;T<O.length;T++){var k=O[T];k instanceof a.Shape?k.position.offsetByPoint(w):k instanceof s.Connector&&k.points.forEach(function(R){return R.offsetByPoint(w)})}return O},E.prototype.getCorrectedOffsetByModel=function(S,O){var w=S.reduce(function(R,P){var B=P instanceof a.Shape?P.position.x:P instanceof s.Connector?P.getMinX():Number.MAX_VALUE,W=P instanceof a.Shape?P.position.y:P instanceof s.Connector?P.getMinY():Number.MAX_VALUE;return(W<R.y||W===R.y&&B<R.x)&&(R.topLeftItem=P,R.x=B,R.y=W),R},{topLeftItem:S[0],x:Number.MAX_VALUE,y:Number.MAX_VALUE}).topLeftItem;if(w instanceof a.Shape){var T=this.getShapeCorrectedPosition(this.control.model,w,O);return new v.Point(T.x-w.position.x,T.y-w.position.y)}if(w instanceof s.Connector){var k=this.getConnectorCorrectedPoints(this.control.model,w,O);return new v.Point(w.points[0].x-k[0].x,w.points[0].y-k[0].y)}},E.prototype.executeCore=function(S,O){var w=this,T=!0;return O?this.performPaste(O):this.getClipboardData(function(k){T=w.execute(k)}),T},E.prototype.addItemForSortingRecursive=function(S,O){if(S[O.key])return S[O.key];if(O instanceof s.Connector)return S[O.key]=O.endItem?this.addItemForSortingRecursive(S,O.endItem)-.5:O.beginItem?this.addItemForSortingRecursive(S,O.beginItem)+.5:-1,S[O.key];if(0===O.attachedConnectors.length)return S[O.key]=0;for(var w=0;w<O.attachedConnectors.length;w++){var T=O.attachedConnectors[w].beginItem;return S[O.key]=O.attachedConnectors[w].endItem===O&&T&&T!==O.attachedConnectors[w].endItem?this.addItemForSortingRecursive(S,T)+1:0}},E.prototype.getSortedPasteItems=function(S){for(var O=[],w=[],T={},k=0;k<S.length;k++){var R=S[k];R instanceof a.Shape?O.push(R):R instanceof s.Connector&&(w.push(R),this.addItemForSortingRecursive(T,R))}return w.sort(function(P,B){return T[B.key]-T[P.key]}),O.concat(w)},E.prototype.performPaste=function(S){this.control.beginUpdateCanvas(),this.control.history.beginTransaction();var O={},w=this.parseClipboardData(S);w=this.getSortedPasteItems(w);for(var T=0;T<w.length;T++){var k=w[T];k instanceof a.Shape?this.control.history.addAndRedo(new p.ImportShapeHistoryItem(k)):k instanceof s.Connector&&this.control.history.addAndRedo(new l.ImportConnectorHistoryItem(k));var R=k.container&&k.container.key;R&&void 0!==O[R]?R&&void 0!==O[R]&&(O[k.key]=!1):O[k.key]=!0}d.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.addAndRedo(new h.SetSelectionHistoryItem(this.control.selection,Object.keys(O).filter(function(P){return O[P]}))),this.control.history.endTransaction(),this.control.endUpdateCanvas(),this.control.barManager.updateItemsState()},E.prototype.getShapeCorrectedPosition=function(S,O,w){for(var T=O.position.clone().offsetByPoint(w);S.findShapeAtPosition(T);)T.offset(E.positionOffset,E.positionOffset);return T},E.prototype.getConnectorCorrectedPoints=function(S,O,w){for(var T=O.points.map(function(k){return k.clone().offsetByPoint(w)});S.findConnectorAtPoints(T);)T.forEach(function(k){k.x+=E.positionOffset,k.y+=E.positionOffset});return T},Object.defineProperty(E.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),E.positionOffset=x.UnitConverter.pixelsToTwips(10),E}(C.ClipboardCommand);u.PasteSelectionCommandBase=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutLayeredHorizontalCommand=void 0;var C=o(76),g=o(80),a=o(20),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.createLayoutSettings=function(){var d=new a.LayoutSettings;return d.orientation=a.DataLayoutOrientation.Horizontal,d},l.prototype.createLayout=function(d,h){return new g.SugiyamaLayoutBuilder(d,h).build()},l}(C.AutoLayoutCommandBase);u.AutoLayoutLayeredHorizontalCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutTreeHorizontalCommand=void 0;var C=o(76),g=o(97),a=o(20),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.createLayoutSettings=function(){var h=new a.TreeLayoutSettings(this.control.settings.snapToGrid?this.control.settings.gridSize:void 0);return h.orientation=a.DataLayoutOrientation.Horizontal,h},l.prototype.createLayout=function(d,h){return new g.TreeLayoutBuilder(d,h).build()},l}(C.AutoLayoutCommandBase);u.AutoLayoutTreeHorizontalCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutLayeredVerticalCommand=void 0;var C=o(76),g=o(80),a=o(20),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.createLayoutSettings=function(){var d=new a.LayoutSettings;return d.orientation=a.DataLayoutOrientation.Vertical,d},l.prototype.createLayout=function(d,h){return new g.SugiyamaLayoutBuilder(d,h).build()},l}(C.AutoLayoutCommandBase);u.AutoLayoutLayeredVerticalCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeLockedCommand=void 0;var C=o(4),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this,l=this.control.selection.getSelectedItems(!0),d=!1;return l.forEach(function(h){h.locked!==s.getLockState()&&(d=!0)}),a.prototype.isEnabled.call(this)&&d},p.prototype.executeCore=function(s,l){return C.ModelUtils.changeSelectionLocked(this.control.history,this.control.model,this.control.selection,this.getLockState()),!0},p}(o(10).SimpleCommandBase);u.ChangeLockedCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeShapeImageHistoryItem=void 0;var C=o(8),g=o(51),a=function(p){function s(l,d){var h=p.call(this)||this;return h.shapeKey=l.key,h.imageUrl=d,h}return I(s,p),s.prototype.redo=function(l){var d=l.model.findShape(this.shapeKey);this.oldImage=d.image,l.changeShapeImage(d,new g.ImageInfo(this.imageUrl))},s.prototype.undo=function(l){var d=l.model.findShape(this.shapeKey);l.changeShapeImage(d,this.oldImage)},s}(C.HistoryItem);u.ChangeShapeImageHistoryItem=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(O,w){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var R in k)k.hasOwnProperty(R)&&(T[R]=k[R])})(O,w)},function(O,w){function T(){this.constructor=O}c(O,w),O.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDefaultState=void 0;var C=o(11),g=o(305),a=o(306),p=o(307),s=o(308),l=o(309),d=o(310),h=o(311),v=o(312),x=o(149),b=o(319),y=o(6),E=o(320),S=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.finish=function(){this.visualizerManager.resetConnectionPoints(),O.prototype.finish.call(this)},w.prototype.onMouseDownCore=function(T){this.handler.canScrollPage(T)?this.startScrolling(T):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorText?(this.handler.changeSingleSelection(T.source.key),this.handler.switchState(new v.MouseHandlerMoveConnectorTextState(this.handler,this.history,this.model))):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ShapeResizeBox?this.handler.switchState(new a.MouseHandlerResizeShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.settings)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ShapeParameterBox?this.handler.switchState(new s.MouseHandlerDragParameterPointState(this.handler,this.history,this.model)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorPoint?this.handler.switchState(new g.MouseHandlerMoveConnectorPointState(this.handler,this.history,this.model,this.visualizerManager)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorSide?this.handler.switchState(new p.MouseHandlerMoveConnectorSideState(this.handler,this.history,this.model)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ConnectorOrthogonalSide?this.handler.switchState(new d.MouseHandlerMoveConnectorOrthogonalSideState(this.handler,this.history,this.model)):T.button===C.MouseButton.Left&&T.source.type===C.MouseEventElementType.ShapeConnectionPoint?this.handler.switchState(new l.MouseHandlerCreateConnectorState(this.handler,this.history,this.model,this.visualizerManager,this.shapeDescriptionManager,this.selection)):O.prototype.onMouseDownCore.call(this,T)},w.prototype.onDragDiagramItemOnMouseDown=function(T){this.handler.canAddDiagramItemToSelection(T)?T.source.type===C.MouseEventElementType.Shape?this.handler.switchState(new b.MouseHandlerMoveShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):T.source.type===C.MouseEventElementType.Connector&&this.handler.switchState(new E.MouseHandlerMoveConnectorState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):O.prototype.onDragDiagramItemOnMouseDown.call(this,T)},w.prototype.onDragStart=function(T){this.handler.switchState(new h.MouseHandlerBeforeToolboxDraggingState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager)),this.handler.state.onDragStart(T)},w.prototype.onMouseMoveCore=function(T){this.updateConnectionsOnMouseMove(T),O.prototype.onMouseMoveCore.call(this,T)},w.prototype.onMouseUp=function(T){this.handler.canRemoveDiagramItemToSelection(T)?this.handler.removeDiagramItemFromSelection(T.button,T.source.key):O.prototype.onMouseUp.call(this,T)},w.prototype.updateConnectionsOnMouseMove=function(T){var k=this.model.findItem(T.source.key);this.visualizerManager.updateConnections(k,T.source.type,T.source.value)},w.prototype.canDragObjectOnMouseDown=function(T){return!0},w.prototype.canExpandContainerOnMouseDown=function(T){return!0},w.prototype.canClearSelectionOnMouseDown=function(){return!1},w.prototype.canSelectOnMouseUp=function(T){return!1},w.prototype.canClearSelectionOnMouseUp=function(){return!0},w.prototype.onConnectionPointsShow=function(T,k){var R=this,P=this.model.findShape(T);P&&k.forEach(function(B,W){B.allowed=R.handler.canPerformChangeConnectionOnUpdateUI(void 0,{item:P,position:y.ConnectorPosition.Begin,connectionPointIndex:W})})},w}(x.MouseHandlerDefaultStateBase);u.MouseHandlerDefaultState=S},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveConnectorPointStateBase=void 0;var C=o(6),g=o(11),a=o(34),p=o(67),s=o(48),l=o(4),d=function(h){function v(x,b,y,E){var S=h.call(this,x,b)||this;return S.model=y,S.visualizerManager=E,S}return I(v,h),v.prototype.finish=function(){this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),h.prototype.finish.call(this)},v.prototype.onMouseDown=function(x){h.prototype.onMouseDown.call(this,x),this.connector&&this.handler.addInteractingItem(this.connector)},v.prototype.onMouseMove=function(x){if(h.prototype.onMouseMove.call(this,x),this.allowAttachToObjects(x,!1,!1)){if(this.connector){var b=this.connector.getExtremeItem(this.pointPosition);this.visualizerManager.setConnectionTarget(b,x.source.type);var y=this.connector.getExtremeConnectionPointIndex(this.pointPosition);(b||-1===this.oppositeConnectionPointIndex)&&this.allowAttachToObjects(x,!0,!1)||(b=this.model.findItem(x.source.key)),this.visualizerManager.setConnectionPoints(b,x.source.type,y,!0)}}else this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints()},v.prototype.onApplyChanges=function(x){var b=this.getSnappedPoint(x,x.modelPoint);if(void 0!==this.pointPosition){void 0===this.oppositePointPosition&&(this.oppositePointPosition=this.getOppositePointPosition(),this.oppositeItem=this.connector.getExtremeItem(this.oppositePointPosition),this.oppositeConnectionPointIndex=this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)),this.targetItem=this.model.findItem(x.source.key);var y=this.allowAttachToObjects(x,!0,!0)?this.targetItem:void 0,E=-1;x.source.type===g.MouseEventElementType.ShapeConnectionPoint&&(E=parseInt(x.source.value)),!y||x.source.type!==g.MouseEventElementType.Shape&&x.source.type!==g.MouseEventElementType.ShapeConnectionPoint||this.connector.getExtremeItem(this.oppositePointPosition)===y&&(-1===E||-1===this.oppositeConnectionPointIndex||E===this.oppositeConnectionPointIndex)?this.connector.getExtremeItem(this.pointPosition)&&(this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(this.oppositeConnectionPointIndex)):(this.connector.getExtremeItem(this.pointPosition)===y&&this.connector.getExtremeConnectionPointIndex(this.pointPosition)===E||(this.connector.getExtremeItem(this.pointPosition)&&this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.history.addAndRedo(new s.AddConnectionHistoryItem(this.connector,y,E,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(E)),b=y.getConnectionPointPosition(E,this.connector.points[this.pointIndex+(this.pointPosition===C.ConnectorPosition.End?-1:1)]),this.visualizerManager.setConnectionPointIndex(E))}l.ModelUtils.moveConnectorPoint(this.history,this.connector,this.pointIndex,b),l.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,this.connector),this.handler.tryUpdateModelSize()},v.prototype.updateOppositeItemConnectionPointIndex=function(x){var b=-1===x?-1:this.oppositeConnectionPointIndex;b!==this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)&&(this.history.addAndRedo(new p.DeleteConnectionHistoryItem(this.connector,this.oppositePointPosition)),this.history.addAndRedo(new s.AddConnectionHistoryItem(this.connector,this.oppositeItem,b,this.oppositePointPosition)))},v.prototype.onFinishWithChanges=function(){l.ModelUtils.updateConnectorContainer(this.history,this.model,this.connector),l.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},v.prototype.getDraggingElementKeys=function(){return this.connector?[this.connector.key]:[]},v.prototype.getOppositePointPosition=function(){return this.pointPosition===C.ConnectorPosition.Begin?C.ConnectorPosition.End:C.ConnectorPosition.Begin},v.prototype.allowAttachToObjects=function(x,b,y){if(this.handler.canMultipleSelection(x))return!1;var E=this.connector;if(E&&x.source.type===g.MouseEventElementType.Shape){var S=this.model.findItem(x.source.key);if(b&&this.model.findItemContainerCore(E,function(O){return O===S})||b&&this.oppositeItem&&this.model.findItemContainerCore(this.oppositeItem,function(O){return O===S})||y&&this.oppositeItem===S&&-1===this.oppositeConnectionPointIndex)return!1}return!0},v.prototype.onConnectionPointsShow=function(x,b){var y=this;if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===x||this.connector.beginItem&&this.connector.beginItem.key===x)){var E=this.connector.beginItem&&this.connector.beginItem.key===x?C.ConnectorPosition.Begin:C.ConnectorPosition.End;b.forEach(function(S,O){S.allowed=y.handler.canPerformChangeConnectionOnUpdateUI(y.connector,{item:y.connector.getExtremeItem(E),position:E,connectionPointIndex:O})})}},v.prototype.onConnectionTargetShow=function(x,b){if(this.connector&&void 0!==this.pointPosition&&(this.connector.endItem&&this.connector.endItem.key===x||this.connector.beginItem&&this.connector.beginItem.key===x)){var y=this.connector.beginItem&&this.connector.beginItem.key===x?C.ConnectorPosition.Begin:C.ConnectorPosition.End;b.allowed=this.handler.canPerformChangeConnectionOnUpdateUI(this.connector,{item:this.connector.getExtremeItem(y),position:y,connectionPointIndex:-1})}},v}(a.MouseHandlerDraggingState);u.MouseHandlerMoveConnectorPointStateBase=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDefaultStateBase=void 0;var C=o(40),g=o(11),a=o(314),p=o(316),s=o(317),l=o(150),d=o(12),h=o(318),v=function(x){function b(y,E,S,O,w,T,k,R){var P=x.call(this,y)||this;return P.history=E,P.selection=S,P.model=O,P.view=w,P.visualizerManager=T,P.shapeDescriptionManager=k,P.settings=R,P}return I(b,x),b.prototype.onKeyDown=function(y){this.handler.onStartScrollPageByKeyboard(y)},b.prototype.onKeyUp=function(y){this.handler.onFinishScrollPageByKeyboard(y)},b.prototype.onMouseDown=function(y){this.handler.canFinishTextEditing()&&(this.onMouseDownCore(y),this.handler.state!==this&&this.handler.state.onMouseDown(y))},b.prototype.onMouseDownCore=function(y){this.handler.canScrollPage(y)?this.startScrolling(y):this.hasDiagramItem(y)&&this.canDragObjectOnMouseDown(y.source.key)?this.onDragDiagramItemOnMouseDown(y):y.button===g.MouseButton.Left&&y.source.type===g.MouseEventElementType.ShapeExpandButton&&this.canExpandContainerOnMouseDown(y.source.key)?this.onShapeExpandBtnMouseDown(y):(!this.hasDiagramItem(y)&&this.canClearSelectionOnMouseDown()&&this.clearSelection(),this.startPoint=y.modelPoint)},b.prototype.onDragDiagramItemOnMouseDown=function(y){this.replaceSelection(y)},b.prototype.onMouseMove=function(y){this.onMouseMoveCore(y),this.handler.state!==this&&(this.handler.state.onMouseDown(this.handler.mouseDownEvent),this.handler.state.onMouseMove(y))},b.prototype.onMouseMoveCore=function(y){this.startPoint&&(Math.abs(this.startPoint.x-y.modelPoint.x)>b.startLimit||Math.abs(this.startPoint.y-y.modelPoint.y)>b.startLimit)&&(this.processOnMouseMoveAfterLimit(y),this.startPoint=void 0)},b.prototype.processOnMouseMoveAfterLimit=function(y){y.isTouchMode?y.touches.length>1?this.startZooming(y):this.startScrolling(y):this.startSelection(y)},b.prototype.onMouseUp=function(y){this.onMouseUpCore(y),this.handler.state!==this&&this.handler.state.onMouseUp(y)},b.prototype.onMouseUpCore=function(y){y.source.type===g.MouseEventElementType.Shape&&this.canSelectOnMouseUp(y.source.key)||y.source.type===g.MouseEventElementType.Connector&&this.canSelectOnMouseUp(y.source.key)||y.source.type===g.MouseEventElementType.ShapeExpandButton&&this.canSelectOnMouseUp(y.source.key)?this.replaceSelection(y):this.startPoint&&this.canClearSelectionOnMouseUp()&&this.clearSelection(),this.startPoint=void 0},b.prototype.onMouseWheel=function(y){return!!this.handler.canStartZoomOnWheel(y)&&(this.handler.switchState(new s.MouseHandlerZoomOnWheelState(this.handler,this.settings,this.view)),this.handler.state.onMouseWheel(y),!0)},b.prototype.onLongTouch=function(y){this.replaceMultipleSelection(y.source.key)},b.prototype.finish=function(){this.startPoint=void 0},b.prototype.startSelection=function(y){y.button===g.MouseButton.Left&&this.handler.switchState(new p.MouseHandlerSelectionState(this.handler,this.selection,this.visualizerManager))},b.prototype.startScrolling=function(y){y.button===g.MouseButton.Left&&(this.handler.raiseDragScrollStart(),this.handler.switchState(new l.MouseHandlerScrollingState(this.handler,this.view,this.selection)))},b.prototype.startZooming=function(y){this.handler.switchState(new h.MouseHandlerZoomOnPinchState(this.handler,this.selection,this.settings,this.view))},b.prototype.inSelection=function(y){return this.selection.hasKey(y)},b.prototype.hasDiagramItem=function(y){return y.source.type===g.MouseEventElementType.Shape||y.source.type===g.MouseEventElementType.Connector},b.prototype.onShapeExpandBtnMouseDown=function(y){this.handler.addDiagramItemToSelection(y),this.handler.switchState(new a.MouseHandlerToggleShapeExpandedState(this.handler,this.history,this.model,this.selection))},b.prototype.replaceSelection=function(y){this.handler.canMultipleSelection(y)?this.replaceMultipleSelection(y.source.key):this.handler.changeSingleSelection(y.source.key)},b.prototype.replaceMultipleSelection=function(y){this.selection.hasKey(y)?this.selection.remove(y):this.selection.add(y)},b.prototype.clearSelection=function(){this.selection.set([])},b.startLimit=d.UnitConverter.pixelsToTwips(1),b}(C.MouseHandlerStateBase);u.MouseHandlerDefaultStateBase=v},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerScrollingState=void 0;var C=o(40),g=o(11),a=o(0),p=function(s){function l(d,h,v){var x=s.call(this,d)||this;return x.view=h,x.selection=v,x.lastOffset=new a.Point(0,0),x}return I(l,s),l.prototype.onKeyUp=function(d){this.handler.onFinishScrollPageByKeyboard(d)},l.prototype.onMouseDown=function(d){d.preventDefault=!0,this.startPoint=this.getPointByEvent(d)},l.prototype.onMouseMove=function(d){if(d.button===g.MouseButton.Left){var h=this.currentPoint||this.startPoint;d.preventDefault=!0;var v=this.getPointByEvent(d),x=this.view.scrollBy(new a.Point(v.x-h.x,v.y-h.y));this.lastOffset=this.lastOffset.clone().offset(x.x,x.y),this.currentPoint=v}else this.handler.onFinishScrollPageByMouse(d)},l.prototype.onMouseUp=function(d){d.button===g.MouseButton.Left&&this.handler.onFinishScrollPageByMouse(d),this.handler.switchToDefaultState()},l.prototype.cancelChanges=function(){this.currentPoint&&this.view.scrollBy(this.lastOffset.clone().multiply(-1,-1))},l.prototype.finish=function(){this.currentPoint&&this.startPoint&&!this.currentPoint.equals(this.startPoint)||this.selection.set([]),s.prototype.finish.call(this)},l.prototype.getPointByEvent=function(d){return d.offsetPoint},l}(C.MouseHandlerCancellableState);u.MouseHandlerScrollingState=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDragDiagramItemStateBase=u.DraggingConnector=void 0;var C=o(60),g=o(86),a=o(29),p=o(85),s=o(4),l=o(16),d=o(11),h=o(34),v=function(y){this.connector=y,this.startPoints=y.points.map(function(E){return E.clone()}),this.startRenderContext=y.tryCreateRenderPointsContext()};u.DraggingConnector=v;var x=function(y){this.shape=y,this.startPosition=y.position.clone()},b=function(y){function E(S,O,w,T,k){var R=y.call(this,S,O)||this;return R.model=w,R.selection=T,R.visualizerManager=k,R.startScrollLeft=0,R.startScrollTop=0,R}return I(E,y),E.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),y.prototype.finish.call(this)},E.prototype.onMouseDown=function(S){var O=this;this.handler.addDiagramItemToSelection(S),this.shouldClone=this.handler.canCopySelectedItems(S),this.startPoint=S.modelPoint,this.initDrag(),this.lockInitDrag=!1,this.shouldClone||this.draggingShapes.forEach(function(w){return O.handler.addInteractingItem(w.shape,l.DiagramModelOperation.MoveShape)}),y.prototype.onMouseDown.call(this,S)},E.prototype.onMouseMove=function(S){this.mouseMoveEvent=S,S.button!==d.MouseButton.Left&&(this.cancelChanges(),this.handler.switchToDefaultState()),this.canApplyChangesOnMouseMove(this.startPoint,S.modelPoint)&&(this.handler.canCopySelectedItems(S)&&(this.lockInitDrag||(this.cancelChanges(),this.shouldClone=!0,this.copySelection(),this.initDrag(),this.lockInitDrag=!0)),this.onApplyChanges(S),this.onAfterApplyChanges(),this.updateContainers(S))},E.prototype.updateContainers=function(S){this.visualizerManager.setExtensionLines(this.selection.getSelectedShapes(!1,!0));var O=s.ModelUtils.findContainerByEventKey(this.model,this.selection,S.source.key);O&&this.allowInsertToContainer(S,O)?this.visualizerManager.setContainerTarget(O,S.source.type):this.visualizerManager.resetContainerTarget()},E.prototype.onMouseUp=function(S){y.prototype.onMouseUp.call(this,S),this.handler.canRemoveDiagramItemToSelection(S)&&this.handler.canMultipleSelection(S)&&this.handler.removeDiagramItemFromSelection(S.button,S.source.key)},E.prototype.onApplyChanges=function(S){var O=this;if(this.calculateFixedPosition(S),this.draggingShapes.length){var w=this.draggingShapes.map(function(P){return P.shape});this.draggingShapes.forEach(function(P){for(var B=P.shape;B.container;){if(-1!==w.indexOf(B.container))return!1;B=B.container}O.moveShape(P,S)});var T=this.draggingShapes[0],k=C.Vector.fromPoints(T.startPosition.clone(),T.shape.position.clone());(k.x||k.y)&&this.draggingConnectors.forEach(function(P){return O.moveConnectorCore(P.connector,P.startPoints,P.startRenderContext,k)})}else this.draggingConnectors.forEach(function(P){return O.moveConnector(P,S)});var R=s.ModelUtils.findContainerByEventKey(this.model,this.selection,S.source.key);R&&this.allowInsertToContainer(S,R)?s.ModelUtils.insertSelectionToContainer(this.history,this.model,this.selection,R):s.ModelUtils.removeSelectionFromContainer(this.history,this.model,this.selection),this.handler.tryUpdateModelSize(function(P,B){O.modelConnectorsWithoutBeginItemInfo.forEach(function(W){W.point.x+=P,W.point.y+=B}),O.modelConnectorsWithoutEndItemInfo.forEach(function(W){W.point.x+=P,W.point.y+=B})})},E.prototype.getDraggingElementKeys=function(){return this.draggingShapes.map(function(S){return S.shape.key}).concat(this.draggingConnectors.map(function(S){return S.connector.key}))},E.prototype.getSnappedPoint=function(S,O){return this.handler.getSnappedPointOnDragDiagramItem(S,O,this.fixedX,this.fixedY,this.startPoint)},E.prototype.initDrag=function(){this.selectedItems=s.ModelUtils.createSelectedItems(this.selection),this.initDraggingShapes(),this.areValidDraggingShapes?(this.initDraggingConnectors(),this.areValidDraggingConnectors?(this.modelConnectorsWithoutBeginItemInfo=this.createModelConnectorsWithoutBeginItemInfo(),this.modelConnectorsWithoutEndItemInfo=this.createModelConnectorsWithoutEndItemInfo()):this.handler.switchToDefaultState()):this.handler.switchToDefaultState()},E.prototype.initDraggingShapes=function(){this.draggingShapes=this.selection.getSelectedShapes(!1,!0).map(function(S){return new x(S)})},E.prototype.initDraggingConnectors=function(){var S=this;this.draggingConnectors=[],this.draggingConnectorsIndexByKey={},this.selection.getSelectedConnectors(!1,!0).forEach(function(O){return S.registerConnector(O)}),this.shouldClone||this.draggingShapes.forEach(function(O){var w=O.shape.attachedConnectors;w&&w.forEach(function(T){S.containsDraggingConnectorByKey(T.key)||S.registerConnector(T)})})},E.prototype.copySelection=function(){var S=this;s.ModelUtils.cloneSelectionToOffset(this.history,this.model,function(O){var w=S.model.findItem(O);w&&S.handler.addInteractingItem(w,l.DiagramModelOperation.AddShape)},this.selection,0,0)},E.prototype.calculateFixedPosition=function(S){this.fixedX=!1,this.fixedY=!1,this.handler.canCalculateFixedPosition(S)&&(Math.abs(this.startPoint.x-S.modelPoint.x)<Math.abs(this.startPoint.y-S.modelPoint.y)?this.fixedX=!0:this.fixedY=!0)},E.prototype.containsDraggingConnectorByKey=function(S){return void 0!==this.draggingConnectorsIndexByKey[S]},E.prototype.allowInsertToContainer=function(S,O){return!this.handler.canMultipleSelection(S)&&O&&O.expanded&&s.ModelUtils.canInsertSelectionToContainer(this.model,this.selection,O)},E.prototype.registerConnector=function(S){this.draggingConnectorsIndexByKey[S.key]=this.draggingConnectors.push(new v(S))-1},E.prototype.createModelConnectorsWithoutBeginItemInfo=function(){var S=this;return this.model.findConnectorsCore(function(O){return!O.beginItem&&!S.containsDraggingConnectorByKey(O.key)}).map(function(O){return{connector:O,point:O.points[0].clone()}})},E.prototype.createModelConnectorsWithoutEndItemInfo=function(){var S=this;return this.model.findConnectorsCore(function(O){return!O.endItem&&!S.containsDraggingConnectorByKey(O.key)}).map(function(O){return{connector:O,point:O.points[O.points.length-1].clone()}})},E.prototype.moveConnector=function(S,O){var w=S.startPoints,T=C.Vector.fromPoints(w[0].clone(),this.getSnappedPoint(O,w[0]).clone());(T.x||T.y)&&this.moveConnectorCore(S.connector,w,S.startRenderContext,T)},E.prototype.moveConnectorCore=function(S,O,w,T){this.shouldClone||s.ModelUtils.canMoveConnector(this.selectedItems,S)?this.offsetConnector(S,O,w,T):this.changeConnector(S)},E.prototype.moveShape=function(S,O){var w=this,T=S.shape,k=this.getSnappedPoint(O,S.startPosition);s.ModelUtils.setShapePosition(this.history,this.model,T,k),s.ModelUtils.updateMovingShapeConnections(this.history,T,this.modelConnectorsWithoutBeginItemInfo,this.modelConnectorsWithoutEndItemInfo,function(){w.visualizerManager.resetConnectionTarget(),w.visualizerManager.resetConnectionPoints()},function(R,P){w.visualizerManager.setConnectionTarget(R,d.MouseEventElementType.Shape),w.visualizerManager.setConnectionPoints(R,d.MouseEventElementType.Shape,P,!0)},function(R){return w.handler.addInteractingItem(R)}),this.draggingConnectors.filter(function(R){return!!w.selectedItems[R.connector.key]}).length||s.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,T)},E.prototype.offsetConnector=function(S,O,w,T){var k=this,R=O.map(function(P){return k.offsetPoint(P,T)});R[0].equals(S.points[0])||this.history.addAndRedo(new g.ChangeConnectorPointsHistoryItem(S.key,R,this.offsetRenderContext(w,T)))},E.prototype.offsetRenderContext=function(S,O){var w=this;if(void 0!==S)return new p.ConnectorRenderPointsContext(S.renderPoints.map(function(T){var k=w.offsetPoint(T,O);return new a.ConnectorRenderPoint(k.x,k.y,T.pointIndex,T.skipped)}),!0,S.actualRoutingMode)},E.prototype.offsetPoint=function(S,O){var w=C.Vector.fromPoints(S,this.startPoint);return this.startPoint.clone().offset(O.x-w.x,O.y-w.y)},E.prototype.changeConnector=function(S){s.ModelUtils.tryRemoveConnectorIntermediatePoints(this.history,S),s.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,S)},E}(h.MouseHandlerDraggingState);u.MouseHandlerDragDiagramItemStateBase=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDefaultReadOnlyState=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.canDragObjectOnMouseDown=function(p){return!1},a.prototype.canExpandContainerOnMouseDown=function(p){return!1},a.prototype.canClearSelectionOnMouseDown=function(){return!1},a.prototype.canSelectOnMouseUp=function(p){return!0},a.prototype.canClearSelectionOnMouseUp=function(){return!0},a.prototype.updateConnectionsOnMouseMove=function(p){},a}(o(149).MouseHandlerDefaultStateBase);u.MouseHandlerDefaultReadOnlyState=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeShapeTextHistoryItem=void 0;var C=function(g){function a(p,s){var l=g.call(this)||this;return l.shapeKey=p.key,l.text=s,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldText=s.text,p.changeShapeText(s,this.text)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeText(s,this.oldText)},a}(o(8).HistoryItem);u.ChangeShapeTextHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ContextMenuHandler=void 0;var C=o(3),g=o(11),a=o(25),p=o(81),s=o(18),l=function(d){function h(){var v=null!==d&&d.apply(this,arguments)||this;return v.contextMenuVisible=!1,v.textInputStarted=!1,v.canHideContextMenu=!0,v.onVisibilityChanged=new C.EventDispatcher,v}return I(h,d),h.prototype.onMouseDown=function(v){v.button===g.MouseButton.Left&&v.source.type!==g.MouseEventElementType.Undefined&&this.hideContextMenu()},h.prototype.onMouseUp=function(v){(!s.Browser.MacOSPlatform||s.Browser.MacOSPlatform&&this.canHideContextMenu)&&this.hideContextMenu(),this.canHideContextMenu=!0},h.prototype.onContextMenu=function(v){s.Browser.MacOSPlatform&&(this.canHideContextMenu=!1),this.showContextMenu(v.eventPoint,v.modelPoint)},h.prototype.onFocus=function(v){},h.prototype.onBlur=function(v){},h.prototype.onTextInputFocus=function(v){},h.prototype.onTextInputBlur=function(v){},h.prototype.onLongTouch=function(v){},h.prototype.onKeyDown=function(v){v.keyCode===a.KeyCode.Esc&&this.hideContextMenu()},h.prototype.onShortcut=function(v){this.hideContextMenu()},h.prototype.showContextMenu=function(v,x){var b=this;this.textInputStarted||window.setTimeout(function(){b.onVisibilityChanged.raise1(function(y){return y.notifyShowContextMenu(v,x)}),b.contextMenuVisible=!0},0)},h.prototype.hideContextMenu=function(){var v=this;this.contextMenuVisible&&window.setTimeout(function(){v.onVisibilityChanged.raise1(function(x){return x.notifyHideContextMenu()}),v.contextMenuVisible=!1},0)},h.prototype.notifyDragStart=function(v){},h.prototype.notifyDragEnd=function(v){},h.prototype.notifyDragScrollStart=function(){},h.prototype.notifyDragScrollEnd=function(){},h.prototype.notifyShowContextToolbox=function(v,x,b,y,E){},h.prototype.notifyHideContextToolbox=function(){},h.prototype.notifyTextInputStart=function(v,x,b,y){this.textInputStarted=!0},h.prototype.notifyTextInputEnd=function(v,x){this.textInputStarted=!1},h.prototype.notifyTextInputPermissionsCheck=function(v,x){},h.prototype.onUpdateUnlocked=function(v){},h}(p.BatchUpdatableObject);u.ContextMenuHandler=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(T,k){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,P){R.__proto__=P}||function(R,P){for(var B in P)P.hasOwnProperty(B)&&(R[B]=P[B])})(T,k)},function(T,k){function R(){this.constructor=T}c(T,k),T.prototype=null===k?Object.create(k):(R.prototype=k.prototype,new R)});Object.defineProperty(u,"__esModule",{value:!0}),u.VisualizerManager=void 0;var C=o(325),g=o(326),a=o(157),p=o(11),s=o(327),l=o(14),d=o(3),h=o(33),v=o(0),x=o(158),b=o(4),y=o(328),E=o(329),S=o(81),O=o(36),w=function(T){function k(R,P,B,W,z){void 0===z&&(z=W.readOnly);var V=T.call(this)||this;return V.selection=R,V.model=P,V.eventManager=B,V.settings=W,V.readOnly=z,V.onVisualizersUpdate=new d.EventDispatcher,V.connectionPointsVisualizer=new s.ConnectionPointsVisualizer(V.onVisualizersUpdate),V.connectionPointsVisualizer=new s.ConnectionPointsVisualizer(V.onVisualizersUpdate),V.connectionTargetVisualizer=new C.ConnectionTargetVisualizer(V.onVisualizersUpdate),V.containerTargetVisualizer=new g.ContainerTargetVisualizer(V.onVisualizersUpdate),V.extensionLinesVisualizer=new a.ExtensionLinesVisualizer(V.onVisualizersUpdate),V.resizeInfoVisualizer=new y.ResizeInfoVisualizer(V.onVisualizersUpdate),V.selectionRectangleVisualizer=new E.SelectionRectVisualizer(V.onVisualizersUpdate),V}return I(k,T),k.prototype.initialize=function(R){this.model=R},k.prototype.onMouseDown=function(R){},k.prototype.onMouseUp=function(R){},k.prototype.onMouseEnter=function(R){},k.prototype.onMouseLeave=function(R){this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle()},k.prototype.onBlur=function(R){},k.prototype.onFocus=function(R){},k.prototype.updateConnections=function(R,P,B){var W=-1;B&&P===p.MouseEventElementType.ShapeConnectionPoint&&(W=parseInt(B)),this.setConnectionPoints(R,P,W,R&&(!R.allowResizeHorizontally&&!R.allowResizeVertically||R.isLocked))},k.prototype.setConnectionPoints=function(R,P,B,W){if(this.eventManager.isFocused())if(!R||P!==p.MouseEventElementType.Shape&&P!==p.MouseEventElementType.ShapeResizeBox&&P!==p.MouseEventElementType.ShapeConnectionPoint||void 0===R)this.connectionPointsVisualizer.reset();else{var z=R.key,V=this.selection.hasKey(z),U=R.getConnectionPoints();this.connectionPointsVisualizer.setPoints(z,U.map(function(K){return new s.ConnectionPointInfo(K,R.getConnectionPointSide(K))}),B,V&&!W&&R.rectangle)}},k.prototype.setConnectionPointIndex=function(R){this.connectionPointsVisualizer.setPointIndex(R)},k.prototype.updateConnectionPoints=function(){void 0!==this.model.findItem(this.connectionPointsVisualizer.getKey())?this.connectionPointsVisualizer.update():this.connectionPointsVisualizer.reset()},k.prototype.resetConnectionPoints=function(){this.connectionPointsVisualizer.reset()},k.prototype.setConnectionTarget=function(R,P){!R||P!==p.MouseEventElementType.Shape&&P!==p.MouseEventElementType.ShapeConnectionPoint?this.connectionTargetVisualizer.reset():this.connectionTargetVisualizer.setTargetRect(R.key,R.rectangle,R.strokeWidth)},k.prototype.resetConnectionTarget=function(){this.connectionTargetVisualizer.reset()},k.prototype.setContainerTarget=function(R,P){R&&!R.isLocked&&P===p.MouseEventElementType.Shape&&R.enableChildren?this.containerTargetVisualizer.setTargetRect(R.key,R.rectangle,R.strokeWidth):this.containerTargetVisualizer.reset()},k.prototype.resetContainerTarget=function(){this.containerTargetVisualizer.reset()},k.prototype.setExtensionLines=function(R){var P=this;if(this.eventManager.isFocused()){this.extensionLinesVisualizer.reset();var B=b.ModelUtils.createRectangle(R.filter(function(W){return W}));this.addPageExtensionLines(B),this.model.items.forEach(function(W){R.indexOf(W)>-1||W instanceof l.Shape&&P.addShapeExtensionLines(W,B)})}},k.prototype.addPageExtensionLines=function(R){for(var P=Math.round(this.model.size.width/this.model.pageWidth),B=Math.round(this.model.size.height/this.model.pageHeight),W=0;W<P;W++)for(var z=0;z<B;z++){var V=new v.Point(W*this.model.pageWidth+this.model.pageWidth/2,z*this.model.pageHeight+this.model.pageHeight/2);if(Math.abs(R.center.x-V.x)<this.settings.gridSize/2){var U=new h.Segment(new v.Point(R.center.x,0),new v.Point(R.center.x,this.model.size.height));this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.HorizontalCenterToPageCenter,U,"")}Math.abs(R.center.y-V.y)<this.settings.gridSize/2&&(U=new h.Segment(new v.Point(0,R.center.y),new v.Point(this.model.size.width,R.center.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.VerticalCenterToPageCenter,U,"")),Math.abs(R.x-V.x)<this.settings.gridSize/2&&(U=new h.Segment(new v.Point(R.x,0),new v.Point(R.x,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.LeftToPageCenter,U,"")),Math.abs(R.y-V.y)<this.settings.gridSize/2&&(U=new h.Segment(new v.Point(0,R.y),new v.Point(this.model.size.width,R.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.TopToPageCenter,U,"")),Math.abs(R.right-V.x)<this.settings.gridSize/2&&(U=new h.Segment(new v.Point(R.right,0),new v.Point(R.right,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.RightToPageCenter,U,"")),Math.abs(R.bottom-V.y)<this.settings.gridSize/2&&(U=new h.Segment(new v.Point(0,R.bottom),new v.Point(this.model.size.width,R.bottom)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.BottomToPageCenter,U,""))}},k.prototype.addShapeExtensionLines=function(R,P){var B,W,z,V,U,K,Y,J,j=R.rectangle,ee=R.strokeWidth-x.CanvasSelectionManager.extensionLineWidth,G=!0;if(P.right<j.x?(U=(B=P.right)+ee+x.CanvasSelectionManager.extensionLineOffset,Y=(z=j.x)-x.CanvasSelectionManager.extensionLineOffset):P.x>j.right&&(U=(B=P.x)-x.CanvasSelectionManager.extensionLineOffset,Y=(z=j.right)+ee+x.CanvasSelectionManager.extensionLineOffset),P.bottom<j.y?(K=(W=P.bottom)+ee+x.CanvasSelectionManager.extensionLineOffset,J=(V=j.y)-x.CanvasSelectionManager.extensionLineOffset):P.y>j.bottom&&(K=(W=P.y)-x.CanvasSelectionManager.extensionLineOffset,J=(V=j.bottom)+ee+x.CanvasSelectionManager.extensionLineOffset),void 0!==U&&void 0!==Y){var q=this.getViewUnitText(Math.abs(B-z));if(P.center.y===j.center.y){var Z=new h.Segment(new v.Point(U,P.center.y),new v.Point(Y,j.center.y));this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.VerticalCenterAfter:a.ExtensionLineType.VerticalCenterBefore,Z,G?q:""),G=!1}P.y===j.y&&(Z=new h.Segment(new v.Point(U,P.y),new v.Point(Y,j.y)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.TopToTopAfter:a.ExtensionLineType.TopToTopBefore,Z,G?q:"")),P.bottom===j.bottom&&(Z=new h.Segment(new v.Point(U,P.bottom+ee),new v.Point(Y,j.bottom+ee)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.BottomToBottomAfter:a.ExtensionLineType.BottomToBottomBefore,Z,G?q:"")),P.y===j.bottom&&(Z=new h.Segment(new v.Point(U,P.y),new v.Point(Y,j.bottom+ee)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.TopToBottomAfter:a.ExtensionLineType.TopToBottomBefore,Z,G?q:"")),P.bottom===j.y&&(Z=new h.Segment(new v.Point(U,P.bottom+ee),new v.Point(Y,j.y)),this.extensionLinesVisualizer.addSegment(U>Y?a.ExtensionLineType.BottomToTopAfter:a.ExtensionLineType.BottomToTopBefore,Z,G?q:""))}void 0!==K&&void 0!==J&&(q=this.getViewUnitText(Math.abs(W-V)),P.center.x===j.center.x&&(Z=new h.Segment(new v.Point(P.center.x,K),new v.Point(j.center.x,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.HorizontalCenterBelow:a.ExtensionLineType.HorizontalCenterAbove,Z,G?q:""),G=!1),P.x===j.x&&(Z=new h.Segment(new v.Point(P.x,K),new v.Point(j.x,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.LeftToLeftBelow:a.ExtensionLineType.LeftToLeftAbove,Z,G?q:"")),P.right===j.right&&(Z=new h.Segment(new v.Point(P.right+ee,K),new v.Point(j.right+ee,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.RightToRightBelow:a.ExtensionLineType.RightToRightAbove,Z,G?q:"")),P.x===j.right&&(Z=new h.Segment(new v.Point(P.x,K),new v.Point(j.right+ee,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.LeftToRightBelow:a.ExtensionLineType.LeftToRightAbove,Z,G?q:"")),P.right===j.x&&(Z=new h.Segment(new v.Point(P.right+ee,K),new v.Point(j.x,J)),this.extensionLinesVisualizer.addSegment(K>J?a.ExtensionLineType.RightToLeftBelow:a.ExtensionLineType.RightToLeftAbove,Z,G?q:"")))},k.prototype.resetExtensionLines=function(){this.extensionLinesVisualizer.reset()},k.prototype.setResizeInfo=function(R){var P=b.ModelUtils.createRectangle(R),B=new v.Point(P.center.x,P.bottom+x.CanvasSelectionManager.resizeInfoOffset),W=this.getViewUnitText(P.width)+" x "+this.getViewUnitText(P.height);this.resizeInfoVisualizer.set(B,W)},k.prototype.resetResizeInfo=function(){this.resizeInfoVisualizer.reset()},k.prototype.setSelectionRectangle=function(R){this.selectionRectangleVisualizer.setRectangle(R)},k.prototype.resetSelectionRectangle=function(){this.selectionRectangleVisualizer.reset()},k.prototype.getViewUnitText=function(R){return b.ModelUtils.getUnitText(this.settings.viewUnits,O.DiagramLocalizationService.unitItems,O.DiagramLocalizationService.formatUnit,R)},k.prototype.notifyReadOnlyChanged=function(R){this.readOnly=R,this.readOnly&&(this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle())},k.prototype.notifyDragStart=function(R){},k.prototype.notifyDragEnd=function(R){},k.prototype.notifyDragScrollStart=function(){},k.prototype.notifyDragScrollEnd=function(){},k.prototype.onUpdateUnlocked=function(R){},k}(S.BatchUpdatableObject);u.VisualizerManager=w},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TargetVisualizerBase=void 0;var c=function(){function I(C){this.dispatcher=C}return I.prototype.getKey=function(){return this.key},I.prototype.setTargetRect=function(C,g,a){this.key!==C&&(this.key=C,this.targetRect=g,this.targetStrokeWidth=a,this.raiseShow())},I.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.targetRect=void 0,this.targetStrokeWidth=0,this.raiseHide())},I}();u.TargetVisualizerBase=c},function(he,u,o){"use strict";var C;Object.defineProperty(u,"__esModule",{value:!0}),u.ExtensionLinesVisualizer=u.ExtensionLine=u.ExtensionLineType=void 0,(C=u.ExtensionLineType||(u.ExtensionLineType={}))[C.LeftToLeftAbove=0]="LeftToLeftAbove",C[C.LeftToLeftBelow=1]="LeftToLeftBelow",C[C.RightToRightAbove=2]="RightToRightAbove",C[C.RightToRightBelow=3]="RightToRightBelow",C[C.LeftToRightAbove=4]="LeftToRightAbove",C[C.LeftToRightBelow=5]="LeftToRightBelow",C[C.RightToLeftAbove=6]="RightToLeftAbove",C[C.RightToLeftBelow=7]="RightToLeftBelow",C[C.TopToTopBefore=8]="TopToTopBefore",C[C.TopToTopAfter=9]="TopToTopAfter",C[C.BottomToBottomBefore=10]="BottomToBottomBefore",C[C.BottomToBottomAfter=11]="BottomToBottomAfter",C[C.TopToBottomBefore=12]="TopToBottomBefore",C[C.TopToBottomAfter=13]="TopToBottomAfter",C[C.BottomToTopBefore=14]="BottomToTopBefore",C[C.BottomToTopAfter=15]="BottomToTopAfter",C[C.HorizontalCenterAbove=16]="HorizontalCenterAbove",C[C.HorizontalCenterBelow=17]="HorizontalCenterBelow",C[C.VerticalCenterBefore=18]="VerticalCenterBefore",C[C.VerticalCenterAfter=19]="VerticalCenterAfter",C[C.VerticalCenterToPageCenter=20]="VerticalCenterToPageCenter",C[C.HorizontalCenterToPageCenter=21]="HorizontalCenterToPageCenter",C[C.LeftToPageCenter=22]="LeftToPageCenter",C[C.RightToPageCenter=23]="RightToPageCenter",C[C.TopToPageCenter=24]="TopToPageCenter",C[C.BottomToPageCenter=25]="BottomToPageCenter";var c=function(C,g,a){this.type=C,this.segment=g,this.text=a};u.ExtensionLine=c;var I=function(){function C(g){this.dispatcher=g,this.lines=[],this.lineIndexByType={}}return C.prototype.addSegment=function(g,a,p){var s=this.lineIndexByType[g];if(void 0===s){var l=new c(g,a,p),d=this.lines.push(l);this.lineIndexByType[l.type]=d-1,this.raiseShow()}else a.length<this.lines[s].segment.length&&(l=new c(g,a,p),this.lines.splice(s,1,l),this.raiseShow())},C.prototype.update=function(){this.raiseShow()},C.prototype.reset=function(){this.lines.length&&(this.lines=[],this.lineIndexByType={},this.raiseHide())},C.prototype.raiseShow=function(){var g=this;this.dispatcher.raise1(function(a){return a.notifyExtensionLinesShow(g.lines)})},C.prototype.raiseHide=function(){this.dispatcher.raise1(function(g){return g.notifyExtensionLinesHide()})},C}();u.ExtensionLinesVisualizer=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(q,Z){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(X,M){X.__proto__=M}||function(X,M){for(var oe in M)M.hasOwnProperty(oe)&&(X[oe]=M[oe])})(q,Z)},function(q,Z){function X(){this.constructor=q}c(q,Z),q.prototype=null===Z?Object.create(Z):(X.prototype=Z.prototype,new X)});Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasSelectionManager=u.ACTIVE_SELECTION_CSSCLASS=u.SELECTION_ELEMENT_CLASSNAMES=void 0;var C=o(42),g=o(39),a=o(17),p=o(11),s=o(9),l=o(3),d=o(0),h=o(157),v=o(14),x=o(6),b=o(32),y=o(21),E=o(5),S=o(63),O=o(55),w=o(26),T=o(12),k=o(43),R=o(18),P=o(27),B=o(78),W=o(140),z=o(35),V=o(31),U=o(4);u.SELECTION_ELEMENT_CLASSNAMES={SELECTION_RECTANGLE:"selection-rect",CONNECTION_POINT:"connection-point",ACTIVE:"active",CONTAINER_TARGET:"container-target",CONNECTION_TARGET:"connection-target",EXTENSION_LINE:"extension-line",CONNECTION_MARK:"connection-mark",SELECTION_MARK:"selection-mark",LOCKED_SELECTION_MARK:"locked-selection-mark",ITEMS_SELECTION_RECT:"items-selection-rect",CONNECTOR_MULTI_SELECTION:"connector-multi-selection",CONNECTOR_SELECTION:"connector-selection",CONNECTOR_POINT_MARK:"connector-point-mark",CONNECTOR_SELECTION_MASK:"connector-selection-mask",CONNECTOR_SIDE_MARK:"connector-side-mark",ITEM_SELECTION_RECT:"item-selection-rect",ITEM_MULTI_SELECTION:"item-multi-selection-rect"},u.ACTIVE_SELECTION_CSSCLASS="dxdi-active-selection";var K=function(q){function Z(X,M,oe,fe){var Te=q.call(this,M,fe)||this;return Te.readOnly=oe,Te.connectionPointElements=[],Te.extensionLineElements=[],Te.selectionMap={},Te.parentContainer=X,Te.initializeContainerElements(X),Te}return I(Z,q),Z.prototype.initializeContainerElements=function(X){this.itemSelectionContainer=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null),X),this.visualizersContainer=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null),X),this.selectionMarksContainer=this.createAndChangePrimitiveElement(new g.GroupPrimitive([],null),X)},Z.prototype.clear=function(){a.RenderUtils.removeContent(this.itemSelectionContainer),a.RenderUtils.removeContent(this.selectionMarksContainer),a.RenderUtils.removeContent(this.visualizersContainer),this.selectionRectElement=void 0,this.resizeInfoElement=void 0,this.connectionPointElements=[],this.connectionTargetElement=void 0,this.containerTargetElement=void 0,this.extensionLineElements=[],this.selectionMap={}},Z.prototype.showSelectionRect=function(X){P.DomUtils.addClassName(this.parentContainer,u.ACTIVE_SELECTION_CSSCLASS);var M=new y.RectanglePrimitive(X.x,X.y,X.width,X.height,w.StrokeStyle.default1pxInstance,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_RECTANGLE),oe=this.getSelectionRectElement(M);this.changePrimitiveElement(M,oe)},Z.prototype.hideSelectionRect=function(){P.DomUtils.removeClassName(this.parentContainer,u.ACTIVE_SELECTION_CSSCLASS),void 0!==this.selectionRectElement&&this.dom.changeByFunc(this.selectionRectElement,function(X){return X.style.display="none"})},Z.prototype.getSelectionRectElement=function(X){return void 0!==this.selectionRectElement?this.dom.changeByFunc(this.selectionRectElement,function(M){return M.style.display=""}):this.selectionRectElement=this.createPrimitiveElement(X,this.visualizersContainer),this.selectionRectElement},Z.prototype.showResizeInfo=function(X,M){var oe=new y.RectanglePrimitive(X.x,X.y,0,0,w.StrokeStyle.default1pxInstance),fe=new g.GroupPrimitive([oe,new S.TextPrimitive(X.x,X.y,M,k.TextOwner.Resize)],"resize-info"),Te=this.getResizeInfoElement(fe);this.changePrimitiveElement(fe,Te);var Be=this.dom.measurer.measureTextLine(M,null,k.TextOwner.Resize).applyConverter(T.UnitConverter.pixelsToTwips);oe.width=Be.width+2*Z.resizeInfoTextOffset,oe.height=Be.height+2*Z.resizeInfoTextOffset,oe.x=X.x-Be.width/2-Z.resizeInfoTextOffset,oe.y=X.y-Be.height/2-Z.resizeInfoTextOffset,this.changePrimitiveElement(fe,Te)},Z.prototype.hideResizeInfo=function(){void 0!==this.resizeInfoElement&&this.dom.changeByFunc(this.resizeInfoElement,function(X){return X.style.display="none"})},Z.prototype.getResizeInfoElement=function(X){return void 0!==this.resizeInfoElement?this.dom.changeByFunc(this.resizeInfoElement,function(M){return M.style.display=""}):this.resizeInfoElement=this.createPrimitiveElement(X,this.visualizersContainer),this.resizeInfoElement},Z.prototype.getConnectionPointClassName=function(X,M){var oe=u.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT;return X&&(oe+=" "+u.SELECTION_ELEMENT_CLASSNAMES.ACTIVE),M||(oe+=" "+B.NOT_VALID_CSSCLASS),oe},Z.prototype.showConnectionPoint=function(X,M,oe,fe,Te,Be){this.showConnectionPointCore(2*X,M.x,M.y,Z.connectionPointLargeSize,Z.connectionPointLargeSize,p.MouseEventElementType.ShapeConnectionPoint,oe,fe,u.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT+" selector"+(Be?"":" "+B.NOT_VALID_CSSCLASS)),this.showConnectionPointCore(2*X+1,M.x,M.y,Z.connectionPointSmallSize,Z.connectionPointSmallSize,p.MouseEventElementType.ShapeConnectionPoint,oe,fe,this.getConnectionPointClassName(Te,Be))},Z.prototype.showConnectionPointCore=function(X,M,oe,fe,Te,Be,ze,ae,_e){var ye=new O.EllipsePrimitive(M,oe,fe,Te,null,_e,function(ce){return a.RenderUtils.setElementEventData(ce,Be,ze,ae)}),ne=this.getConnectionPointElement(ye,X);this.changePrimitiveElement(ye,ne)},Z.prototype.hideConnectionPoints=function(){for(var X=0;X<this.connectionPointElements.length;X++)this.dom.changeByFunc(this.connectionPointElements[X],function(M){return M.style.display="none"})},Z.prototype.getConnectionPointElement=function(X,M){var oe=this.connectionPointElements[M];return void 0!==oe?this.dom.changeByFunc(oe,function(fe){return fe.style.display=""}):(oe=this.createPrimitiveElement(X,this.visualizersContainer),this.connectionPointElements[M]=oe),oe},Z.prototype.showContainerTarget=function(X,M){var oe=new y.RectanglePrimitive(M.x,M.y,M.width,M.height,null,u.SELECTION_ELEMENT_CLASSNAMES.CONTAINER_TARGET),fe=this.getContainerTargetElement(oe);this.changePrimitiveElement(oe,fe)},Z.prototype.hideContainerTarget=function(){this.containerTargetElement&&this.dom.changeByFunc(this.containerTargetElement,function(X){return X.style.display="none"})},Z.prototype.getContainerTargetElement=function(X){return void 0!==this.containerTargetElement?this.dom.changeByFunc(this.containerTargetElement,function(M){return M.style.display=""}):this.containerTargetElement=this.createPrimitiveElement(X,this.itemSelectionContainer),this.containerTargetElement},Z.prototype.showConnectionTarget=function(X,M){var oe=new y.RectanglePrimitive(M.x,M.y,M.width,M.height,null,u.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_TARGET),fe=this.getConnectionTargetElement(oe);this.changePrimitiveElement(oe,fe)},Z.prototype.hideConnectionTarget=function(){this.connectionTargetElement&&this.dom.changeByFunc(this.connectionTargetElement,function(X){return X.style.display="none"})},Z.prototype.getConnectionTargetElement=function(X){return void 0!==this.connectionTargetElement?this.dom.changeByFunc(this.connectionTargetElement,function(M){return M.style.display=""}):this.connectionTargetElement=this.createPrimitiveElement(X,this.itemSelectionContainer),this.connectionTargetElement},Z.prototype.showExtensionLine=function(X,M,oe,fe,Te){var Be=u.SELECTION_ELEMENT_CLASSNAMES.EXTENSION_LINE;M!==h.ExtensionLineType.VerticalCenterAfter&&M!==h.ExtensionLineType.VerticalCenterBefore&&M!==h.ExtensionLineType.HorizontalCenterAbove&&M!==h.ExtensionLineType.HorizontalCenterBelow||(Be+=" center"),M!==h.ExtensionLineType.VerticalCenterToPageCenter&&M!==h.ExtensionLineType.HorizontalCenterToPageCenter&&M!==h.ExtensionLineType.LeftToPageCenter&&M!==h.ExtensionLineType.RightToPageCenter&&M!==h.ExtensionLineType.TopToPageCenter&&M!==h.ExtensionLineType.BottomToPageCenter||(Be+=" page");var ze=0,ae=0,_e=0,ye=0,ne=0,ce=0,le=0,pe=0;oe.y===fe.y?(ze=oe.x-Z.extensionLineWidth,ae=oe.y-Z.extensionLineEndingSize,_e=oe.x-Z.extensionLineWidth,ye=oe.y+Z.extensionLineEndingSize,ne=fe.x-Z.extensionLineWidth,ce=oe.y-Z.extensionLineEndingSize,le=fe.x-Z.extensionLineWidth,pe=oe.y+Z.extensionLineEndingSize):oe.x===fe.x&&(ze=oe.x-Z.extensionLineEndingSize,ae=oe.y-Z.extensionLineWidth,_e=oe.x+Z.extensionLineEndingSize,ye=oe.y-Z.extensionLineWidth,ne=oe.x-Z.extensionLineEndingSize,ce=fe.y-Z.extensionLineWidth,le=oe.x+Z.extensionLineEndingSize,pe=fe.y-Z.extensionLineWidth);var Se=0,re=0;M!==h.ExtensionLineType.RightToRightAbove&&M!==h.ExtensionLineType.RightToRightBelow||(Se-=Z.extensionLineWidth),M!==h.ExtensionLineType.BottomToBottomAfter&&M!==h.ExtensionLineType.BottomToBottomBefore||(re-=Z.extensionLineWidth);var te=[new E.PathPrimitive([E.PathPrimitiveMoveToCommand.fromPoint(oe.clone().offset(Se,re)),E.PathPrimitiveLineToCommand.fromPoint(fe.clone().offset(Se,re))],w.StrokeStyle.default1pxInstance,"size-line"),new E.PathPrimitive([new E.PathPrimitiveMoveToCommand(ze,ae),new E.PathPrimitiveLineToCommand(_e,ye),new E.PathPrimitiveMoveToCommand(ne,ce),new E.PathPrimitiveLineToCommand(le,pe)],w.StrokeStyle.default1pxInstance),new S.TextPrimitive((fe.x+oe.x)/2,(fe.y+oe.y)/2,Te,k.TextOwner.ExtensionLine,void 0,void 0,void 0,null,void 0,null,C.PAGE_BG_TEXTFLOOR_FILTER_ID)],ie=new g.GroupPrimitive(te,Be),ue=this.getExtensionLineElement(ie,X);this.changePrimitiveElement(ie,ue)},Z.prototype.hideExtensionLines=function(){for(var X=0;X<this.extensionLineElements.length;X++)this.extensionLineElements[X]&&this.dom.changeByFunc(this.extensionLineElements[X],function(M){return M.style.display="none"})},Z.prototype.getExtensionLineElement=function(X,M){var oe=this.extensionLineElements[M];return void 0!==oe?this.dom.changeByFunc(oe,function(fe){return fe.style.display=""}):(oe=this.createPrimitiveElement(X,this.visualizersContainer),this.extensionLineElements[M]=oe),oe},Z.prototype.getOrCreateShapeSelection=function(X,M){var oe=this.selectionMap[X.key];return oe||(oe=new ee(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,X.key,X.isLocked,X.rectangle,X.style,X.allowResizeHorizontally,X.allowResizeVertically,X.description.getParameterPoints(X)),this.selectionMap[X.key]=oe),M&&(M[X.key]=!0),oe},Z.prototype.getOrCreateConnectorSelection=function(X,M){var oe=this.selectionMap[X.key],fe=X.getRenderPoints();return oe||(oe=new G(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,X.key,X.isLocked,X.rectangle,fe,X.style,X.styleText,X.enableText,X.texts.map(function(Te){var Be=l.GeometryUtils.getPathPointByPosition(fe,Te.position);return{text:X.getText(Te.position),point:Be[0],pointIndex:Be[1],pos:Te.position}}).sort(function(Te,Be){return Te.pos-Be.pos}),X.points,X.properties.lineOption),this.selectionMap[X.key]=oe),M&&(M[X.key]=!0),oe},Z.prototype.getOrCreateMultipleSelection=function(X){var M=this.selectionMap[-1];return M||(M=new j(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom),this.selectionMap[-1]=M),X[-1]=!0,M},Z.prototype.getMultipleSelection=function(){return this.selectionMap[-1]},Z.prototype.updateShapeSelection=function(X,M){X.key in this.selectionMap&&(this.getOrCreateShapeSelection(X).onModelChanged(X.isLocked,X.rectangle,X.style,X.allowResizeHorizontally,X.allowResizeVertically,X.description.getParameterPoints(X)),M&&M.onModelItemChanged(X.key,X.rectangle))},Z.prototype.updateConnectorSelection=function(X,M){if(X.key in this.selectionMap){var oe=X.getRenderPoints();this.getOrCreateConnectorSelection(X).onModelChanged(X.isLocked,X.rectangle,oe,X.style,X.styleText,X.enableText,X.texts.map(function(fe){var Te=l.GeometryUtils.getPathPointByPosition(oe,fe.position);return{text:X.getText(fe.position),pointIndex:Te[1],pos:fe.position,point:Te[0]}}).sort(function(fe,Te){return fe.pos-Te.pos}),X.points,X.properties.lineOption),M&&M.onModelItemChanged(X.key,X.rectangle)}},Z.prototype.hideOutdatedSelection=function(X){var M=this;Object.keys(this.selectionMap).filter(function(oe){return!X[oe]}).forEach(function(oe){M.selectionMap[oe].destroy(),delete M.selectionMap[oe]})},Z.prototype.selectionCanBeDrawn=function(X){return!X.container||X.container.expanded&&this.selectionCanBeDrawn(X.container)},Z.prototype.notifySelectionChanged=function(X){var M=this,oe=X.getSelectedItems(!0).filter(function(ye){return M.selectionCanBeDrawn(ye)}),fe={},Te=oe.length>1,Be=X.getSelectedShapes(!0).filter(function(ye){return M.selectionCanBeDrawn(ye)}),ze=X.getSelectedConnectors(!0).filter(function(ye){return M.selectionCanBeDrawn(ye)});if(Be.forEach(function(ye){return M.getOrCreateShapeSelection(ye,fe).onSelectionChanged(Te)}),ze.forEach(function(ye){return M.getOrCreateConnectorSelection(ye,fe).onSelectionChanged(Te)}),Te){var ae=oe.length>0?oe[0].strokeWidth:0,_e={};oe.filter(function(ye){return!ye.isLocked}).forEach(function(ye){return _e[ye.key]=ye.rectangle}),this.getOrCreateMultipleSelection(fe).onSelectionChanged(!!Be.filter(function(ye){return!ye.isLocked}).length,ae,_e)}this.hideOutdatedSelection(fe)},Z.prototype.applyChangesCore=function(X){q.prototype.applyChangesCore.call(this,X);var M=this.getMultipleSelection();M&&M.onModelChanged()},Z.prototype.applyChange=function(X){var M=this.getMultipleSelection();X.item instanceof v.Shape?this.updateShapeSelection(X.item,M):X.item instanceof x.Connector&&this.updateConnectorSelection(X.item,M)},Z.prototype.notifyPageColorChanged=function(X){},Z.prototype.notifyPageSizeChanged=function(X,M){},Z.prototype.notifyActualZoomChanged=function(X){var M=this;Object.keys(this.selectionMap).forEach(function(oe){return M.selectionMap[oe].notifyZoomChanged(X)}),this.actualZoom=X},Z.prototype.notifyViewAdjusted=function(X){},Z.prototype.notifyReadOnlyChanged=function(X){var M=this;this.readOnly=X,Object.keys(this.selectionMap).forEach(function(oe){return M.selectionMap[oe].notifyReadOnlyChanged(X)})},Z.prototype.notifySelectionRectShow=function(X){this.showSelectionRect(X.clone().multiply(this.actualZoom,this.actualZoom))},Z.prototype.notifySelectionRectHide=function(){this.hideSelectionRect()},Z.prototype.notifyResizeInfoShow=function(X,M){this.showResizeInfo(X.clone().multiply(this.actualZoom,this.actualZoom),M)},Z.prototype.notifyResizeInfoHide=function(){this.hideResizeInfo()},Z.prototype.notifyConnectionPointsShow=function(X,M,oe,fe){var Te=this;this.hideConnectionPoints(),M.forEach(function(Be,ze){var ae=Be.point.clone().multiply(Te.actualZoom,Te.actualZoom);if(fe)switch(Be.side){case s.ConnectionPointSide.North:ae.y=fe.y*Te.actualZoom-Z.connectionPointShift;break;case s.ConnectionPointSide.South:ae.y=fe.bottom*Te.actualZoom+Z.connectionPointShift;break;case s.ConnectionPointSide.West:ae.x=fe.x*Te.actualZoom-Z.connectionPointShift;break;case s.ConnectionPointSide.East:ae.x=fe.right*Te.actualZoom+Z.connectionPointShift}Te.showConnectionPoint(ze,ae,X,ze,ze===oe,Be.allowed)})},Z.prototype.notifyConnectionPointsHide=function(){this.hideConnectionPoints()},Z.prototype.notifyConnectionTargetShow=function(X,M){if(M.allowed){var oe=Z.correctSelectionRect(M.rect.clone().multiply(this.actualZoom,this.actualZoom),M.strokeWidth,Z.connectionTargetBorderWidth,this.actualZoom,0);this.showConnectionTarget(0,oe)}},Z.prototype.notifyConnectionTargetHide=function(){this.hideConnectionTarget()},Z.prototype.notifyContainerTargetShow=function(X,M){var oe=Z.correctSelectionRect(M.rect.clone().multiply(this.actualZoom,this.actualZoom),M.strokeWidth,Z.connectionTargetBorderWidth,this.actualZoom,0);this.showContainerTarget(0,oe)},Z.prototype.notifyContainerTargetHide=function(){this.hideContainerTarget()},Z.prototype.notifyExtensionLinesShow=function(X){var M=this;this.hideExtensionLines(),X.forEach(function(oe,fe){M.showExtensionLine(fe,oe.type,oe.segment.startPoint.clone().multiply(M.actualZoom,M.actualZoom),oe.segment.endPoint.clone().multiply(M.actualZoom,M.actualZoom),oe.text)})},Z.prototype.notifyExtensionLinesHide=function(){this.hideExtensionLines()},Z.prototype.notifyDragStart=function(X){this.dom.changeByFunc(this.selectionMarksContainer,function(M){return M.style.display="none"})},Z.prototype.notifyDragEnd=function(X){this.dom.changeByFunc(this.selectionMarksContainer,function(M){return M.style.display=""})},Z.prototype.notifyDragScrollStart=function(){},Z.prototype.notifyDragScrollEnd=function(){},Z.prototype.notifyTextInputStart=function(X,M,oe,fe){this.dom.changeByFunc(this.visualizersContainer,function(Te){return Te.style.display="none"})},Z.prototype.notifyTextInputEnd=function(X,M){this.dom.changeByFunc(this.visualizersContainer,function(oe){return oe.style.display=""})},Z.prototype.notifyTextInputPermissionsCheck=function(X,M){},Z.correctSelectionRect=function(X,M,oe,fe,Te){void 0===Te&&(Te=Z.selectionOffset);var Be=T.UnitConverter.twipsToPixels(M)%2!=T.UnitConverter.twipsToPixels(oe)%2,ze=Math.ceil(M/2*fe);X=X.clone().inflate(ze,ze);var ae=Math.floor(oe/2);if(X.x-=ae,X.y-=ae,X.width+=oe,X.height+=oe,Be){var _e=Z.evenOddSelectionCorrection*(T.UnitConverter.twipsToPixels(oe)%2==1?-1:1);X=X.clone().moveRectangle(_e,_e)}return X.clone().inflate(Te,Te)},Z.selectionMarkSize=T.UnitConverter.pixelsToTwips(10),Z.lockedSelectionMarkSize=T.UnitConverter.pixelsToTwips(8),Z.selectionOffset=T.UnitConverter.pixelsToTwips(2),Z.selectionRectLineWidth=T.UnitConverter.pixelsToTwips(1),Z.multiSelectionRectLineWidth=T.UnitConverter.pixelsToTwips(1),Z.connectionPointSmallSize=T.UnitConverter.pixelsToTwips(5),Z.connectionPointLargeSize=T.UnitConverter.pixelsToTwips(12),Z.connectionPointShift=T.UnitConverter.pixelsToTwips(16),Z.connectionTargetBorderWidth=T.UnitConverter.pixelsToTwips(2),Z.geomertyMarkSize=T.UnitConverter.pixelsToTwips(8),Z.connectorPointMarkSize=T.UnitConverter.pixelsToTwips(6),Z.connectorSideMarkSize=T.UnitConverter.pixelsToTwips(6),Z.extensionLineWidth=T.UnitConverter.pixelsToTwips(1),Z.extensionLineOffset=T.UnitConverter.pixelsToTwips(1),Z.extensionLineEndingSize=T.UnitConverter.pixelsToTwips(6),Z.resizeInfoOffset=T.UnitConverter.pixelsToTwips(16),Z.resizeInfoTextOffset=T.UnitConverter.pixelsToTwips(2),Z.resizeInfoLineWidth=T.UnitConverter.pixelsToTwips(1),Z.evenOddSelectionCorrection=T.UnitConverter.pixelsToTwips(1),Z}(W.CanvasManager);u.CanvasSelectionManager=K;var Y=function(){function q(Z,X,M,oe,fe,Te){this.rectsContainer=Z,this.marksContainer=X,this.key=M,this.zoomLevel=oe,this.readOnly=fe,this.dom=Te,this.elements={},this.updatedElements={}}return q.prototype.notifyZoomChanged=function(Z){this.zoomLevel!==Z&&(this.zoomLevel=Z,this.redraw())},q.prototype.notifyReadOnlyChanged=function(Z){this.readOnly=Z,this.redraw()},q.prototype.destroy=function(){var Z=this;Object.keys(this.elements).forEach(function(X){Z.elements[X].parentNode.removeChild(Z.elements[X]),delete Z.elements[X]})},q.prototype.redraw=function(){var Z=this;this.updatedElements={},this.redrawCore(),Object.keys(this.elements).filter(function(X){return!Z.updatedElements[X]}).forEach(function(X){Z.elements[X].parentNode.removeChild(Z.elements[X]),delete Z.elements[X]}),this.updatedElements={}},q.prototype.drawSelectionMarks=function(Z,X,M){if(!this.readOnly){var oe=X&&Z.height>3*K.selectionMarkSize,fe=M&&Z.width>3*K.selectionMarkSize,Te=X||M;Te&&this.drawSelectionMark(0,new d.Point(Z.x,Z.y),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_NW,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),fe&&!R.Browser.TouchUI&&this.drawSelectionMark(1,new d.Point(Z.x+Z.width/2,Z.y),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_N,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Te&&this.drawSelectionMark(2,new d.Point(Z.right,Z.y),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_NE,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),oe&&!R.Browser.TouchUI&&this.drawSelectionMark(3,new d.Point(Z.right,Z.y+Z.height/2),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_E,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Te&&this.drawSelectionMark(4,new d.Point(Z.right,Z.bottom),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_SE,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),fe&&!R.Browser.TouchUI&&this.drawSelectionMark(5,new d.Point(Z.x+Z.width/2,Z.bottom),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_S,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),Te&&this.drawSelectionMark(6,new d.Point(Z.x,Z.bottom),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_SW,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),oe&&!R.Browser.TouchUI&&this.drawSelectionMark(7,new d.Point(Z.x,Z.y+Z.height/2),K.selectionMarkSize,p.MouseEventElementType.ShapeResizeBox,p.ResizeEventSource.ResizeBox_W,u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK)}},q.prototype.drawSelectionMark=function(Z,X,M,oe,fe,Te){var Be=this;this.getOrCreateElement("SM"+Z,new y.RectanglePrimitive(X.x-M/2,X.y-M/2,M,M,null,Te,void 0,function(ze){a.RenderUtils.setElementEventData(ze,oe,Be.key,fe)}),this.marksContainer)},q.prototype.drawSelectionRect=function(Z,X,M){var oe=new y.RectanglePrimitive(Z.x,Z.y,Z.width,Z.height,w.StrokeStyle.default1pxInstance,M,void 0,function(fe){a.RenderUtils.setElementEventData(fe,X,"-1",-1)});this.getOrCreateElement("shapeSelection",oe,this.rectsContainer)},q.prototype.getOrCreateElement=function(Z,X,M){var oe=this.elements[Z];return oe||(oe=X.createElement(function(fe){return M.appendChild(fe)}),this.elements[Z]=oe),this.updatedElements[Z]=!0,this.dom.changeByPrimitive(oe,X),oe},q}(),J=function(q){function Z(X,M,oe,fe,Te,Be,ze,ae){var _e=q.call(this,X,M,oe,fe,Te,Be)||this;return _e.isLocked=ze,_e.rectangle=ae,_e}return I(Z,q),Z.prototype.onSelectionChanged=function(X){this.isMultipleSelection!==X&&(this.isMultipleSelection=X,this.redraw())},Z.prototype.isLockedRender=function(){return this.isLocked&&!this.readOnly},Z.prototype.drawLockedSelectionMark=function(X,M,oe,fe){var Te=new E.PathPrimitive([new E.PathPrimitiveMoveToCommand(M.x-oe/2,M.y-oe/2),new E.PathPrimitiveLineToCommand(M.x+oe/2,M.y+oe/2),new E.PathPrimitiveMoveToCommand(M.x+oe/2,M.y-oe/2),new E.PathPrimitiveLineToCommand(M.x-oe/2,M.y+oe/2)],null,fe);this.getOrCreateElement("LSM"+X,Te,this.marksContainer)},Z}(Y),j=function(q){function Z(X,M,oe,fe,Te){var Be=q.call(this,X,M,"-1",oe,fe,Te)||this;return Be.rectangles={},Be}return I(Z,q),Z.prototype.onModelItemChanged=function(X,M){X in this.rectangles&&(this.rectangles[X]=M)},Z.prototype.onModelChanged=function(){this.redraw()},Z.prototype.onSelectionChanged=function(X,M,oe){this.needDrawSelectionMarks=X,this.strokeWidth=M,this.rectangles=oe,this.redraw()},Z.prototype.redrawCore=function(){var X=this,M=Object.keys(this.rectangles);if(M.length){var oe=l.GeometryUtils.getCommonRectangle(M.map(function(Te){return X.rectangles[Te]})).clone().multiply(this.zoomLevel,this.zoomLevel),fe=K.correctSelectionRect(oe,this.strokeWidth,K.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(fe,p.MouseEventElementType.SelectionRect,u.SELECTION_ELEMENT_CLASSNAMES.ITEMS_SELECTION_RECT),this.needDrawSelectionMarks&&this.drawSelectionMarks(oe,!0,!0)}},Z}(Y),ee=function(q){function Z(X,M,oe,fe,Te,Be,ze,ae,_e,ye,ne,ce){var le=q.call(this,X,M,Be,oe,fe,Te,ze,ae)||this;return le.style=_e,le.allowResizeHorizontally=ye,le.allowResizeVertically=ne,le.shapeParameterPoints=ce,le}return I(Z,q),Z.prototype.onModelChanged=function(X,M,oe,fe,Te,Be){this.isLocked=X,this.rectangle=M,this.style=oe,this.allowResizeHorizontally=fe,this.allowResizeVertically=Te,this.shapeParameterPoints=Be,this.redraw()},Z.prototype.redrawCore=function(){var X=this.rectangle.clone().multiply(this.zoomLevel,this.zoomLevel);this.isLockedRender()?this.drawLockedSelection(X):this.drawUnlockedSelection(X)},Z.prototype.drawLockedSelection=function(X){this.drawLockedSelectionMark(0,new d.Point(X.x,X.y),K.lockedSelectionMarkSize,u.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(1,new d.Point(X.right,X.y),K.lockedSelectionMarkSize,u.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(2,new d.Point(X.right,X.bottom),K.lockedSelectionMarkSize,u.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(3,new d.Point(X.x,X.bottom),K.lockedSelectionMarkSize,u.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)},Z.prototype.drawUnlockedSelection=function(X){var M=K.correctSelectionRect(X,this.style.strokeWidth,K.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(M,p.MouseEventElementType.SelectionRect,this.isMultipleSelection?u.SELECTION_ELEMENT_CLASSNAMES.ITEM_MULTI_SELECTION:u.SELECTION_ELEMENT_CLASSNAMES.ITEM_SELECTION_RECT),this.isMultipleSelection||this.drawSelectionMarks(X,this.allowResizeHorizontally,this.allowResizeVertically),this.drawShapeParameterPoints()},Z.prototype.drawShapeParameterPoints=function(){var X=this;this.readOnly||this.shapeParameterPoints.forEach(function(M,oe){var fe=M.point.clone().multiply(X.zoomLevel,X.zoomLevel);X.drawShapeParameterPoint(fe,oe,M.key)})},Z.prototype.drawShapeParameterPoint=function(X,M,oe){var fe=this,Te=K.geomertyMarkSize,Be=new y.RectanglePrimitive(X.x-Te/2,X.y-Te/2,Te,Te,null,"geometry-mark",void 0,function(ze){a.RenderUtils.setElementEventData(ze,p.MouseEventElementType.ShapeParameterBox,fe.key,oe)});this.getOrCreateElement("pp"+M.toString(),Be,this.marksContainer)},Z}(J),G=function(q){function Z(X,M,oe,fe,Te,Be,ze,ae,_e,ye,ne,ce,le,pe,Se){var re=q.call(this,X,M,Be,oe,fe,Te,ze,ae)||this;return re.renderPoints=_e,re.style=ye,re.styleText=ne,re.enableText=ce,re.texts=le,re.points=pe,re.lineType=Se,re}return I(Z,q),Z.prototype.onModelChanged=function(X,M,oe,fe,Te,Be,ze,ae,_e){this.isLocked=X,this.rectangle=M,this.renderPoints=oe,this.style=fe,this.styleText=Te,this.enableText=Be,this.texts=ze,this.points=ae,this.lineType=_e,this.redraw()},Z.prototype.redrawCore=function(){this.isLockedRender()?this.drawLockedSelection():this.drawUnlockedSelection()},Z.prototype.drawLockedSelection=function(){var X=this;this.renderPoints.forEach(function(M,oe){X.drawLockedSelectionMark(oe,M,K.lockedSelectionMarkSize,u.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)})},Z.prototype.drawUnlockedSelection=function(){this.drawConnectorSelection(),this.isMultipleSelection||this.readOnly||this.drawConnectorSelectionMarks()},Z.prototype.drawConnectorSelection=function(){var X=[],M=[],oe=this.isMultipleSelection?u.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_MULTI_SELECTION:u.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SELECTION;this.populateSelectionPrimitiveCommands(X,M);var fe=new E.PathPrimitive(X.concat(M.reverse()),w.StrokeStyle.default1pxInstance,oe);this.getOrCreateElement("CS",fe,this.rectsContainer)},Z.prototype.populateSelectionPrimitiveCommands=function(X,M){for(var oe,fe,Te,Be,ze=this.texts,ae=this.styleText.getAlignment(),_e=this.createNotSkippedRenderPoints(),ye=this.zoomLevel,ne=this.style.strokeWidthPx,ce=this.getSelectionOffset(ne),le=ne%2==0,pe=_e[0],Se=0,re=1,te=void 0;te=_e[re];re++){var ie=_e[re+1];if(void 0===oe){if(fe=z.Metrics.euclideanDistance(pe,te),V.MathUtils.numberCloseTo(fe,0))continue;oe=l.GeometryUtils.getSelectionOffsetPoint(pe,te,fe).multiply(ce,ce)}if(ie){if(Be=z.Metrics.euclideanDistance(te,ie),V.MathUtils.numberCloseTo(Be,0))continue;Te=l.GeometryUtils.getSelectionOffsetPoint(te,ie,Be).multiply(ce,ce)}var ue=oe.x,be=oe.y,Ae=-ue,Ne=-be,mt=Te&&Te.x,tt=Te&&Te.y,Le=Te&&-Te.x,gt=Te&&-Te.y;for(le&&(Ae>0?Ae-=K.evenOddSelectionCorrection:ue>0&&(ue-=K.evenOddSelectionCorrection),Ne>0?Ne-=K.evenOddSelectionCorrection:be>0&&(be-=K.evenOddSelectionCorrection),Le>0?Le-=K.evenOddSelectionCorrection:mt>0&&(mt-=K.evenOddSelectionCorrection),gt>0?gt-=K.evenOddSelectionCorrection:tt>0&&(tt-=K.evenOddSelectionCorrection));ze[Se]&&ze[Se].pointIndex<=re;){var tn=ze[Se],Pe=this.getConnectorSelectionTextSize(tn.text,ce),$e=l.GeometryUtils.getSelectionTextStartEndPoints(pe,te,fe,tn.point,Pe,ae);ze[Se].pointIndex<re?(X.push(E.PathPrimitiveMoveToCommand.fromPoint((pe=$e[1]).clone().offset(ue,be).multiply(ye,ye))),M.push(E.PathPrimitiveLineToCommand.fromPoint(pe.clone().offset(Ae,Ne).multiply(ye,ye)))):(X.length||(X.push(E.PathPrimitiveMoveToCommand.fromPoint(pe.clone().offset(ue,be).multiply(ye,ye))),M.push(E.PathPrimitiveLineToCommand.fromPoint(pe.clone().offset(Ae,Ne).multiply(ye,ye)))),X.push(E.PathPrimitiveLineToCommand.fromPoint($e[0].clone().offset(ue,be).multiply(ye,ye))),X.push(E.PathPrimitiveMoveToCommand.fromPoint($e[1].clone().offset(ue,be).multiply(ye,ye))),M.push(E.PathPrimitiveMoveToCommand.fromPoint($e[0].clone().offset(Ae,Ne).multiply(ye,ye))),M.push(E.PathPrimitiveLineToCommand.fromPoint($e[1].clone().offset(Ae,Ne).multiply(ye,ye))),pe=$e[1]),Se++}X.length||(X.push(E.PathPrimitiveMoveToCommand.fromPoint(pe.clone().offset(ue,be).multiply(ye,ye))),M.push(E.PathPrimitiveLineToCommand.fromPoint(pe.clone().offset(Ae,Ne).multiply(ye,ye)))),ie?(l.GeometryUtils.addSelectedLinesTo(pe,te,ie,ue,be,Ae,Ne,mt,tt,Le,gt,function(ge,Ce){return X.push(new E.PathPrimitiveLineToCommand(ge*ye,Ce*ye))},function(ge,Ce){return M.push(new E.PathPrimitiveLineToCommand(ge*ye,Ce*ye))}),oe=Te,fe=Be):(X.push(E.PathPrimitiveLineToCommand.fromPoint(te.clone().offset(ue,be).multiply(ye,ye))),M.push(E.PathPrimitiveMoveToCommand.fromPoint(te.clone().offset(Ae,Ne).multiply(ye,ye)))),pe=te}},Z.prototype.createNotSkippedRenderPoints=function(){var X=this.renderPoints.map(function(M){return M.clone()});return this.lineType===b.ConnectorLineOption.Straight?(U.ModelUtils.removeUnnecessaryRenderPoints(X),X.filter(function(M){return!M.skipped})):(U.ModelUtils.removeUnnecessaryRightAngleRenderPoints(X),X.filter(function(M){return!M.skipped}))},Z.prototype.getSelectionOffset=function(X){return K.selectionOffset+T.UnitConverter.pixelsToTwips(Math.round(X/2)+(X+1)%2)},Z.prototype.getConnectorSelectionTextSize=function(X,M){return this.dom.measurer.measureTextLine(X,this.styleText,k.TextOwner.Connector).applyConverter(T.UnitConverter.pixelsToTwips).clone().offset(M,M).nonNegativeSize()},Z.prototype.drawConnectorSelectionMarks=function(){var X=this,M=this.points.length-1;this.points.forEach(function(oe,fe){var Te=0===fe||fe===M,Be=Te?u.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK:u.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_POINT_MARK,ze=Te?K.selectionMarkSize:K.connectorPointMarkSize;Te||X.lineType===b.ConnectorLineOption.Straight?X.drawSelectionMark(fe,oe.clone().multiply(X.zoomLevel,X.zoomLevel),ze,p.MouseEventElementType.ConnectorPoint,fe,Be):X.drawSelectionMark(fe,oe.clone().multiply(X.zoomLevel,X.zoomLevel),ze,p.MouseEventElementType.Undefined,-1,Be+" disabled")}),this.drawConnectorSideMarks()},Z.prototype.drawConnectorSideMarks=function(){var X,M,oe=this,fe=this.lineType===b.ConnectorLineOption.Straight?p.MouseEventElementType.ConnectorSide:p.MouseEventElementType.ConnectorOrthogonalSide;this.renderPoints.forEach(function(Te,Be){if(!Te.skipped){if(void 0!==X&&oe.canDrawConnectorSideMark(Te,X)){var ze=oe.lineType===b.ConnectorLineOption.Orthogonal?Te.x-X.x==0?"vertical":"horizontal":"";oe.drawSelectionMark(oe.points.length+Be-1,new d.Point(X.x+(Te.x-X.x)/2,X.y+(Te.y-X.y)/2).clone().multiply(oe.zoomLevel,oe.zoomLevel),K.connectorSideMarkSize,fe,M+"_"+Be,u.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SIDE_MARK+" "+ze)}X=Te,M=Be}})},Z.prototype.canDrawConnectorSideMark=function(X,M){if(this.lineType===b.ConnectorLineOption.Straight){var oe=K.selectionMarkSize+K.connectorSideMarkSize;return z.Metrics.euclideanDistance(X,M)>oe}if(this.lineType===b.ConnectorLineOption.Orthogonal){var fe=0===M.pointIndex,Te=l.GeometryUtils.areDuplicatedPoints(this.points[this.points.length-1],X);return fe&&Te?z.Metrics.euclideanDistance(X,M)>2*x.Connector.minOffset:!fe&&Te||fe&&!Te?z.Metrics.euclideanDistance(X,M)>x.Connector.minOffset:(oe=K.selectionMarkSize+K.connectorSideMarkSize,z.Metrics.euclideanDistance(X,M)>oe)}return!1},Z}(J)},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramDraggingEvent=u.ToolboxDraggingObject=u.Toolbox=void 0;var c,b,I=o(3),C=o(0),g=o(65),a=o(44),p=o(27),s=o(18),l=o(15),d=o(78),h=function(){function b(y,E,S,O,w,T){this.readOnly=E,this.allowDragging=S,this.shapeDescriptionManager=O,this.shapeTypes=w,this.getAllowedShapeTypes=T,this.dragPrepareTimeout=-1,this.dragState=c.None,this.emulateDragEvents=s.Browser.WebKitTouchUI,this.onDragOperation=new I.EventDispatcher,this.onClickOperation=new I.EventDispatcher,y&&(this.mainElement=this.createMainElement(y),this.attachHandlers(this.mainElement))}return b.prototype.clean=function(y){this.detachHandlers(this.mainElement),y&&y(this.mainElement)},b.prototype.createMainElement=function(y){var E=document.createElement("div");return E.setAttribute("class","dxdi-toolbox"),E.draggable=!0,this.emulateDragEvents&&(E.tabIndex=0),y.appendChild(E),E},b.prototype.attachHandlers=function(y){this.onElementMouseDownHandler=this.onElementMouseDown.bind(this),this.onElementMouseUpHandler=this.onElementMouseUp.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onDragStartHandler=this.onDragStart.bind(this),this.onTouchMoveHandler=this.onTouchMove.bind(this),this.emulateDragEvents||l.RenderHelper.addEventListener(y,"dragstart",this.onDragStartHandler),I.EventUtils.isPointerEvents()?(this.mouseDownEventName="pointerdown",this.mouseMoveEventName="pointermove",this.mouseUpEventName="pointerup"):(this.mouseDownEventName=s.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=s.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=s.Browser.TouchUI?"touchend":"mouseup"),l.RenderHelper.addEventListener(y,"touchmove",this.onTouchMoveHandler),l.RenderHelper.addEventListener(y,this.mouseDownEventName,this.onElementMouseDownHandler),l.RenderHelper.addEventListener(y,this.mouseUpEventName,this.onElementMouseUpHandler),l.RenderHelper.addEventListener(y,this.mouseDownEventName,this.onMouseDownHandler),l.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),l.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},b.prototype.detachHandlers=function(y){this.emulateDragEvents||l.RenderHelper.removeEventListener(y,"dragstart",this.onDragStartHandler),l.RenderHelper.removeEventListener(y,"touchmove",this.onTouchMoveHandler),l.RenderHelper.removeEventListener(y,this.mouseDownEventName,this.onElementMouseDownHandler),l.RenderHelper.removeEventListener(y,this.mouseUpEventName,this.onElementMouseUpHandler),l.RenderHelper.removeEventListener(y,this.mouseDownEventName,this.onMouseDownHandler),l.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),l.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},b.prototype.render=function(y){this.mainElement.childNodes&&(this.mainElement.innerHTML="");var E=this.shapeTypes;return E=this.getAllowedShapeTypes?this.getAllowedShapeTypes(E):E,(E=y?E.filter(y):E).length&&this.createElements(this.mainElement,E),!!E.length},b.prototype.createDraggingObject=function(y){var E=new x;return E.data=y,E.onFinishDragging=this.resetDragState.bind(this),E.onCaptured=this.capture.bind(this),new v(E)},b.prototype.getDragShapeType=function(y){for(;y&&!p.DomUtils.hasClassName(y,"dxdi-toolbox");){if(y.getAttribute&&y.getAttribute("data-tb-type"))return y.getAttribute("data-tb-type");y=y.parentNode}},b.prototype.getTouchPointFromEvent=function(y){var E,S=y.touches;return S&&S.length>0?E=new C.Point(S[0].clientX,S[0].clientY):y.clientX&&y.clientY&&(E=new C.Point(y.clientX,y.clientY)),E},b.prototype.onElementMouseDown=function(y){this.mouseDownShapeType=this.getDragShapeType(g.EvtUtils.getEventSource(y)),this.touchDownPoint=this.getTouchPointFromEvent(y)},b.prototype.onElementMouseUp=function(y){var E=this.getDragShapeType(g.EvtUtils.getEventSource(y));E&&E===this.mouseDownShapeType&&this.onClickOperation.raise("notifyToolboxClick",E),this.mouseDownShapeType=void 0,this.touchDownPoint=void 0},b.prototype.onMouseDown=function(y){this.setDragState(c.Prepare,y),s.Browser.TouchUI&&I.EventUtils.isMousePointer(y)&&this.setDragState(c.Start,y)},b.prototype.onDragStart=function(y){this.setDragState(c.Start,y),y.preventDefault()},b.prototype.onTouchMove=function(y){this.draggingObject&&y.preventDefault()},b.prototype.isLeftButtonPressed=function(y){return g.EvtUtils.isLeftButtonPressed(y)||"pointermove"===y.type&&s.Browser.TouchUI&&s.Browser.MacOSMobilePlatform&&I.EventUtils.isMousePointer(y)},b.prototype.onMouseMove=function(y){if(s.Browser.TouchUI&&s.Browser.MacOSMobilePlatform){var E=this.getTouchPointFromEvent(y);if(this.touchDownPoint&&E&&this.touchDownPoint.x===E.x&&this.touchDownPoint.y===E.y)return}this.setDragState(this.isLeftButtonPressed(y)?c.Dragging:c.None,y),I.EventUtils.isPointerEvents()&&this.raiseDraggingMouseMove(y)},b.prototype.onMouseUp=function(y){this.setDragState(c.None,y)},b.prototype.updateDraggingElementPosition=function(y,E){var S=this.draggingObject.element,w=E-S.offsetHeight/2;a.SetAbsoluteX(S,y-S.offsetWidth/2),a.SetAbsoluteY(S,w)},b.prototype.setDragState=function(y,E){if(!this.readOnly&&this.allowDragging&&!(y===c.None&&y===this.dragState||(this.dragPrepareTimeout>-1&&(clearTimeout(this.dragPrepareTimeout),this.dragPrepareTimeout=-1,this.dragPrepareEvent=void 0),y-this.dragState>1||y!==c.None&&y<this.dragState)))switch(this.dragState=y,y){case c.Prepare:this.prepareDragging(E)||this.setDragState(c.None,E),!this.emulateDragEvents&&I.EventUtils.isMousePointer(E)||(this.dragPrepareTimeout=setTimeout(this.onDragPrepareTimeout.bind(this),800),this.dragPrepareEvent=E);break;case c.Start:p.DomUtils.addClassName(document.body,"dxdi-dragging"),this.startDragging(E);break;case c.Dragging:this.doDragging(E);break;case c.None:this.finishDragging(E)}},b.prototype.resetDragState=function(){this.setDragState(c.None,void 0)},b.prototype.onDragPrepareTimeout=function(){this.dragPrepareTimeout=-1,this.dragState===c.Prepare&&this.setDragState(c.Start,this.dragPrepareEvent),this.dragPrepareEvent=void 0},b.prototype.prepareDragging=function(y){return this.dragStartPoint=new C.Point(g.EvtUtils.getEventX(y),g.EvtUtils.getEventY(y)),this.dragStartShapeType=this.getDragShapeType(g.EvtUtils.getEventSource(y)),I.EventUtils.isMousePointer(y)&&p.DomUtils.addClassName(this.mainElement,"dxdi-tb-start-drag-flag"),!this.emulateDragEvents&&I.EventUtils.isMousePointer(y)||I.HtmlFocusUtils.focusWithPreventScroll(this.mainElement),!!this.dragStartShapeType},b.prototype.startDragging=function(y){this.draggingObject=this.createDraggingObject(this.dragStartShapeType),this.dragStartShapeType?(this.raiseDragStart(y),this.draggingObject.element=this.createDraggingElement(this.draggingObject),void 0!==this.draggingObject.captured&&this.capture(this.draggingObject.captured,!0),this.updateDraggingElementPosition(this.dragStartPoint.x,this.dragStartPoint.y)):p.DomUtils.addClassName(document.body,d.NOT_VALID_CSSCLASS)},b.prototype.doDragging=function(y){this.draggingObject.element&&this.updateDraggingElementPosition(g.EvtUtils.getEventX(y),g.EvtUtils.getEventY(y))},b.prototype.finishDragging=function(y){if(this.draggingObject){this.raiseDragEnd(y);var E=this.draggingObject.element;E&&E.parentNode.removeChild(E),delete this.draggingObject}this.dragStartPoint=void 0,this.dragStartShapeType=void 0,p.DomUtils.removeClassName(this.mainElement,"dxdi-tb-start-drag-flag"),p.DomUtils.removeClassName(document.body,d.NOT_VALID_CSSCLASS),setTimeout(function(){return p.DomUtils.removeClassName(document.body,"dxdi-dragging")},500)},b.prototype.capture=function(y,E){this.draggingObject&&(this.draggingObject.captured!==y||E)&&(this.draggingObject.captured=y,this.draggingObject.element&&p.DomUtils.toggleClassName(this.draggingObject.element,"dxdi-tb-drag-captured",y))},b.prototype.raiseDragStart=function(y){this.onDragOperation.raise("notifyToolboxDragStart",y)},b.prototype.raiseDragEnd=function(y){this.onDragOperation.raise("notifyToolboxDragEnd",y)},b.prototype.raiseDraggingMouseMove=function(y){this.onDragOperation.raise("notifyToolboxDraggingMouseMove",y)},b.prototype.notifyReadOnlyChanged=function(y){this.readOnly=y},b}();u.Toolbox=h,(b=c||(c={}))[b.None=-1]="None",b[b.Prepare=0]="Prepare",b[b.Start=1]="Start",b[b.Dragging=2]="Dragging";var v=function(b){this.evt=b};u.ToolboxDraggingObject=v;var x=function(){};u.DiagramDraggingEvent=x},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RightAngleConnectorRoutingMathOperations=void 0;var c=o(33),I=o(31),C=o(161),g=o(3),a=o(9),p=function(){function s(){}return s.createUnionSegments=function(l,d){for(var h=[],v=l[0].startPoint,x=l[0].endPoint,b=1;b<l.length;b++){var y=l[b];d(x,y.startPoint)&&(h.push(new c.Segment(v.clone(),x.clone())),v=y.startPoint),x=y.endPoint}return h.push(new c.Segment(v,x)),h},s.unionPoints=function(l){for(var d=0;d<l.length-2;)g.GeometryUtils.isCorner(l[d],l[d+1],l[d+2])?d++:(l.splice(d+1,1),d=Math.max(0,d-1))},s.getTurnDirection=function(l){return I.MathUtils.numberCloseTo(l,0)?C.RightAngleTurnDirection.Straight:I.MathUtils.numberCloseTo(l,Math.PI)?C.RightAngleTurnDirection.Backwards:l<Math.PI?C.RightAngleTurnDirection.Left:C.RightAngleTurnDirection.Right},s.isSegmentNormal=function(l,d){return d?I.MathUtils.numberCloseTo(l.startPoint.y,l.endPoint.y):I.MathUtils.numberCloseTo(l.startPoint.x,l.endPoint.x)},s.isConnectionRectanleLineIntersected=function(l,d,h,v,x,b){switch(h){case a.ConnectionPointSide.North:return g.GeometryUtils.isLineIntersected(b(l.x,l.y),b(l.right,l.y),d,v,x);case a.ConnectionPointSide.South:return g.GeometryUtils.isLineIntersected(b(l.right,l.bottom),b(l.x,l.bottom),d,v,x);case a.ConnectionPointSide.West:return g.GeometryUtils.isLineIntersected(b(l.x,l.y),b(l.x,l.bottom),d,v,x);case a.ConnectionPointSide.East:return g.GeometryUtils.isLineIntersected(b(l.right,l.y),b(l.right,l.bottom),d,v,x);default:return!1}},s.createBeginConnectionSegment=function(l,d,h,v){switch(l){case a.ConnectionPointSide.North:return new c.Segment(d,v(d.x,d.y-h));case a.ConnectionPointSide.South:return new c.Segment(d,v(d.x,d.y+h));case a.ConnectionPointSide.West:return new c.Segment(d,v(d.x-h,d.y));case a.ConnectionPointSide.East:return new c.Segment(d,v(d.x+h,d.y));default:return d}},s.createEndConnectionSegment=function(l,d,h,v){switch(l){case a.ConnectionPointSide.North:return new c.Segment(v(d.x,d.y-h),d);case a.ConnectionPointSide.South:return new c.Segment(v(d.x,d.y+h),d);case a.ConnectionPointSide.West:return new c.Segment(v(d.x-h,d.y),d);case a.ConnectionPointSide.East:return new c.Segment(v(d.x+h,d.y),d);default:return d}},s}();u.RightAngleConnectorRoutingMathOperations=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.IntersectedShapeZone=u.AStarMetrics=u.IntersectedShapesMetrics=u.TurnDirectionMetrics=u.IntersectedShapeMetrics=u.RightAngleTurnDirection=void 0;var c,l,I=o(0),C=o(35);(l=c=u.RightAngleTurnDirection||(u.RightAngleTurnDirection={}))[l.Straight=0]="Straight",l[l.Left=1]="Left",l[l.Right=2]="Right",l[l.Backwards=3]="Backwards";var g=function(){function l(d,h){this.description=d,this.shapeMargin=h}return l.prototype.penalty=function(d,h,v,x){var b=x.rectangle;if(b.containsPoint(v))return d+this.description.shape*h;var y=this.createRelativeMarginPenalty(v,b,this.shapeMargin);return y>0?d+this.description.margin*y*h:d},l.prototype.createRelativeMarginPenalty=function(d,h,v){var x=this.isTopPosition(d,h,v),b=this.isLeftPosition(d,h,v),y=this.isBottomPosition(d,h,v),E=this.isRightPosition(d,h,v);if(x){if(b){var S=(T=h.clone().inflate(v)).createPosition(),O=h.createPosition(),w=C.Metrics.euclideanDistance(O,S);return 1-C.Metrics.euclideanDistance(O,d)/w}if(E){var T=h.clone().inflate(v),k=new I.Point(T.right,T.y),R=new I.Point(h.right,h.y),P=C.Metrics.euclideanDistance(R,k);return 1-C.Metrics.euclideanDistance(R,d)/P}return 1-(h.y-d.y)/v}if(y){if(b){T=h.clone().inflate(v);var B=new I.Point(T.x,T.bottom),W=new I.Point(h.x,h.bottom),z=C.Metrics.euclideanDistance(W,B);return 1-C.Metrics.euclideanDistance(W,d)/z}if(E){T=h.clone().inflate(v);var V=new I.Point(T.right,T.bottom),U=new I.Point(h.right,h.bottom),K=C.Metrics.euclideanDistance(U,V);return 1-C.Metrics.euclideanDistance(U,d)/K}return 1-(d.y-h.bottom)/v}return b?1-(h.x-d.x)/v:E?1-(d.x-h.right)/v:0},l.prototype.isTopPosition=function(d,h,v){return d.x>h.x-v&&d.x<h.right+v&&d.y>h.y-v&&d.y<h.y},l.prototype.isBottomPosition=function(d,h,v){return d.x>h.x-v&&d.x<h.right+v&&d.y>h.bottom&&d.y<h.bottom+v},l.prototype.isLeftPosition=function(d,h,v){return d.x>h.x-v&&d.x<h.x&&d.y>h.y-v&&d.y<h.bottom+v},l.prototype.isRightPosition=function(d,h,v){return d.x>h.right&&d.x<h.right+v&&d.y>h.y-v&&d.y<h.bottom+v},l}();u.IntersectedShapeMetrics=g;var a=function(){function l(d){this.description=d}return l.prototype.penalty=function(d,h){switch(h){case c.Backwards:return d*this.description.turnBack;case c.Left:return d*this.description.turnLeft;case c.Right:return d*this.description.turnRight}return d},l}();u.TurnDirectionMetrics=a;var p=function(){function l(d){this.shapeMetrics=d}return l.prototype.penalty=function(d,h,v,x){var b=this;if(!x||!x.length)return d;var y=d;return x.forEach(function(E){return y=b.shapeMetrics.penalty(y,h,v,E)}),y},l}();u.IntersectedShapesMetrics=p;var s=function(){function l(d,h){this.turnDirectionMetrics=d,this.shapesMetrics=h}return l.prototype.distance=function(d,h){return C.Metrics.manhattanDistance(d,h)},l.prototype.penalty=function(d,h,v,x){var b=d;return b=this.shapesMetrics.penalty(b,d,h,x),this.turnDirectionMetrics.penalty(b,v)},l}();u.AStarMetrics=s,function(l){l[l.None=0]="None",l[l.Shape=1]="Shape",l[l.Margin=2]="Margin"}(u.IntersectedShapeZone||(u.IntersectedShapeZone={}))},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteCommand=void 0;var C=o(4),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedItems();return a.prototype.isEnabled.call(this)&&s.length&&(s.length>1||this.permissionsProvider.canDeleteItems(s))},p.prototype.executeCore=function(s){var l=this.control.selection.getSelectedItems(!0,!0);return this.permissionsProvider.beginDeleteItems(l),C.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(p.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),p}(o(10).SimpleCommandBase);u.DeleteCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(C){void 0===C&&(C=0),this.value=C}return I.prototype.get=function(C){return(this.value&C)===C},I.prototype.set=function(C,g){return(this.value&C)===C!==g&&(g?this.value|=C:this.value^=C),this},I.prototype.add=function(C){this.value|=C},I.prototype.anyOf=function(){for(var C=[],g=0;g<arguments.length;g++)C[g]=arguments[g];for(var a=0,p=C;a<p.length;a++){var s=p[a];if((this.value&s)===s)return!0}return!1},I.prototype.getValue=function(){return this.value},I.prototype.clone=function(){return new I(this.value)},I}();u.Flag=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(105),I=o(41),C=o(106),g=o(169),a=function(){function p(){}return p.oneConstainsOtherArraysOfInterval=function(s,l){for(var d=c.ListUtils.deepCopy(l),h=d.pop();h;){if(!c.ListUtils.unsafeAnyOf(s,function(v){return v.containsInterval(h)}))return!1;h=d.pop()}return!0},p.getIntersection=function(s,l){return p.getIntersectionTemplate(s,l,s)},p.getIntersectionTemplate=function(s,l,d){var h=Math.max(s.start,l.start),v=Math.min(s.end,l.end);return h>v?null:d.makeByStartEnd(h,v)},p.getIntersectionNonNullLength=function(s,l){return p.getIntersectionNonNullLengthTemplate(s,l,s)},p.getIntersectionNonNullLengthTemplate=function(s,l,d){var h=p.getIntersectionTemplate(s,l,d);return h&&h.length?h:null},p.getIntersectionsTwoArraysOfInterval=function(s,l){return p.getIntersectionsTwoArraysOfIntervalTemplate(s,l,s[0])},p.getIntersectionsTwoArraysOfIntervalTemplate=function(s,l,d){for(var h=[],v=s.length,x=l.length,b=0,y=0,E=s[b],S=l[y],O=null;b<v&&y<x;){var w=p.getIntersectionTemplate(E,S,d);w&&(O&&O.end===w.start?O.length+=w.length:h.push(O=w)),E.end<S.end?E=s[++b]:S=l[++y]}return h},p.getAffectedObjects=function(s,l,d,h){return void 0===d&&(d=function(v){return I.SearchUtils.normedInterpolationIndexOf(s,function(x){return x.interval.start},v)}),void 0===h&&(h=function(v,x,b){return v.start===b&&0===x}),p.getAffectedObjectsTemplate(s,l,l[0],d,h)},p.getAffectedObjectsTemplate=function(s,l,d,h,v){void 0===h&&(h=function(k){return I.SearchUtils.normedInterpolationIndexOf(s,function(R){return R.interval.start},k)}),void 0===v&&(v=function(k,R,P){return k.start===P&&0===R});for(var x=new g.SparseIntervalsCollector(d),b=0,y=l;b<y.length;b++)for(var E=y[b],S=Math.max(0,h(E.start,s)),O=void 0;O=s[S];S++){var w=O.interval;if(w.start>E.end)break;var T=p.getIntersectionTemplate(w,E,d);T&&(T.length||v(w,E.length,T.start))&&x.add(S)}return x.getIntervals()},p.handleAffectedObjects=function(s,l,d,h){void 0===h&&(h=function(T){return I.SearchUtils.normedInterpolationIndexOf(s,function(k){return k.interval.start},T)});for(var v=new C.FixedInterval(0,0),x=0,b=l;x<b.length;x++)for(var y=b[x],E=Math.max(0,h(y.start,s)),S=void 0;S=s[E];E++){var O=S.interval;if(O.start>y.end)break;var w=p.getIntersectionTemplate(O,y,v);w&&d(S,E,y,w)}},p.getMergedIntervals=function(s,l){return p.getMergedIntervalsTemplate(s,l,s[0])},p.getMergedIntervalsTemplate=function(s,l,d){if(s.length<2)return s.length>0?[d.makeByStartLength(s[0].start,s[0].length)]:[];for(var h=l?[].concat(s).sort(function(S,O){return S.start-O.start}):s,v=[],x=0,b=void 0;b=h[x];){var y=b.start,E=b.end;for(++x;void 0!==(b=h[x])&&b.start<=E;x++)b.end>E&&(E=b.end);v.push(d.makeByStartEnd(y,E))}return v},p.reflectIntervals=function(s,l){return p.reflectIntervalsTemplate(s,l,l)},p.reflectIntervalsTemplate=function(s,l,d){if(!s.length)return[d.makeByStartLength(l.start,l.length)];var h=c.ListUtils.last(s).end,v=c.ListUtils.reducedMap(s,function(x,b){return p.getIntersectionNonNullLengthTemplate(d.makeByStartEnd(s[b-1].end,x.start),l,d)},1);return l.start<s[0].start&&v.unshift(d.makeByStartEnd(l.start,s[0].start)),l.end>h&&v.push(d.makeByStartEnd(h,l.end)),v},p.reflectionOfPointOnInterval=function(s,l,d){return(s-l.start)/l.length*d.length+d.start},p}();u.IntervalAlgorithms=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(59),I=function(s,l){this.minElement=s,this.maxElement=l};u.MinMax=I;var C=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(l,s),Object.defineProperty(l.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!0,configurable:!0}),l}(I);u.MinMaxNumber=C,u.ExtendedMin=function(s,l){this.minElement=s,this.minValue=l},u.ExtendedMax=function(s,l){this.maxElement=s,this.maxValue=l};var p=function(s){function l(d,h,v,x){var b=s.call(this,d,v)||this;return b.minValue=h,b.maxValue=x,b}return c.__extends(l,s),l}(I);u.ExtendedMinMax=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function C(){}return C.number=function(g,a){return g-a},C.string=function(g,a){return g===a?0:g>a?1:-1},C.stringIgnoreCase=function(g,a){return(g=g.toLowerCase())===(a=a.toLowerCase())?0:g>a?1:-1},C}();u.Comparers=c;var I=function(){function C(){}return C.simpleType=function(g,a){return g===a},C.object=function(g,a){return g&&a&&(g===a||g.equals(a))},C}();u.Equals=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(59),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.prototype.normalizeLength=function(){return this.length<0&&(this.length=0),this},g}(o(168).ConstInterval);u.MutableInterval=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return Object.defineProperty(I.prototype,"center",{get:function(){return this.start+this.length/2},enumerable:!0,configurable:!0}),I.prototype.isNormalized=function(){return this.end>=this.start},I.prototype.isCollapsed=function(){return 0===this.length},I.prototype.equals=function(C){return this.start===C.start&&this.end===C.end},I.isCollapsed=function(C){return!C[1]&&C[0].isCollapsed()},I.prototype.containsInterval=function(C){return this.start<=C.start&&this.end>=C.end},I.prototype.containsIntervalWithoutEnd=function(C){return this.start<=C.start&&this.end>C.end},I.prototype.contains=function(C){return this.start<=C&&C<this.end},I.prototype.containsWithIntervalEnd=function(C){return this.start<=C&&C<=this.end},I.prototype.containsWithoutIntervalEndAndStart=function(C){return this.start<C&&C<this.end},I}();u.ConstInterval=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(170),I=function(){function C(g){this.intervals=[],this.template=g}return C.prototype.add=function(g){this.curr&&this.curr.end===g?this.curr.length++:(this.curr=this.template.makeByStartLength(g,1),this.intervals.push(this.curr))},C.prototype.getIntervals=function(){return new c.SparseIntervals(this.intervals)},C}();u.SparseIntervalsCollector=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(107),I=o(171),C=function(){function g(a){void 0===a&&(a=[]),this.list=a,this._count=0,this._numIntervals=0;for(var p=0,s=a;p<s.length;p++)this._count+=s[p].length,this._numIntervals++}return Object.defineProperty(g.prototype,"count",{get:function(){return this._count},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"numIntervals",{get:function(){return this._numIntervals},enumerable:!0,configurable:!0}),g.prototype.getInterval=function(a){return this.list[a]},g.prototype.getNativeIterator=function(){return new c.SparseIntervalsIterator(this)},g.prototype.getObjectsIterator=function(a){return new I.SparseObjectsIterator(this,a)},g}();u.SparseIntervals=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(59),I=function(C){function g(a,p){var s=C.call(this,a)||this;return s.objects=p,s}return c.__extends(g,C),g.prototype.initObject=function(){this.obj=this.objects[this.index]},g}(o(107).SparseIntervalsIterator);u.SparseObjectsIterator=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.TextFloodFilterPrimitive=u.TextFilterPrimitive=void 0;var C=o(15),g=o(108),a=o(62),p=o(22),s=function(d){function h(v,x,b,y,E){void 0===x&&(x="-0.05"),void 0===b&&(b="-0.05"),void 0===y&&(y="1.1"),void 0===E&&(E="1.1");var S=d.call(this,v,x,b,y,E)||this;return S.id=v,S.x=x,S.y=b,S.width=y,S.height=E,S}return I(h,d),h.prototype.createChildElements=function(v){var x=document.createElementNS(C.svgNS,"feFlood");v.appendChild(x);var b=document.createElementNS(C.svgNS,"feComposite");b.setAttribute("in","SourceGraphic"),b.setAttribute("operator","atop"),v.appendChild(b)},h}(g.FilterPrimitive);u.TextFilterPrimitive=s;var l=function(d){function h(v,x,b,y,E,S){void 0===b&&(b="-0.05"),void 0===y&&(y="-0.05"),void 0===E&&(E="1.1"),void 0===S&&(S="1.1");var O=d.call(this,v,b,y,E,S)||this;return O.id=v,O.floodColor=x,O.x=b,O.y=y,O.width=E,O.height=S,O}return I(h,d),h.prototype.applyChildrenProperties=function(v){for(var x=void 0,b=0;x=v.childNodes[b];b++)if(x.nodeName&&"FEFLOOD"===x.nodeName.toUpperCase()){this.prepareFEFloodNode(x);break}},h.prototype.prepareFEFloodNode=function(v){var x=p.ColorUtils.colorToHash(this.floodColor);v.setAttribute("flood-color",x),v.setAttribute("class","text-filter-flood"),v.style.setProperty("flood-color",this.floodColor!==a.DiagramModel.defaultPageColor?x:"")},h}(s);u.TextFloodFilterPrimitive=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=function(){function I(){}return I.encodeHtml=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},I.decodeHtml=function(C){return C.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},I.prepareTextForRequest=function(C){return C.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},I.prepareTextForCallBackRequest=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},I.decodeViaTextArea=function(C){var g=document.createElement("TEXTAREA");return g.innerHTML=C,g.value},I}();u.EncodeUtils=c},function(he,u,o){"use strict";o(175).polyfill()},function(he,u,o){"use strict";function c(I,C){if(null==I)throw new TypeError("Cannot convert first argument to object");for(var g=Object(I),a=1;a<arguments.length;a++){var p=arguments[a];if(null!=p)for(var s=Object.keys(Object(p)),l=0,d=s.length;l<d;l++){var h=s[l],v=Object.getOwnPropertyDescriptor(p,h);void 0!==v&&v.enumerable&&(g[h]=p[h])}}return g}he.exports={assign:c,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:c})}}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(18),I=o(50),C=function(){function g(){}return g.onEventAttachingToDocument=function(a,p){return!c.Browser.MacOSMobilePlatform||!g.isTouchEventName(a)||(g.documentTouchHandlers[a]||(g.documentTouchHandlers[a]=[]),g.documentTouchHandlers[a].push(p),g.documentEventAttachingAllowed)},g.isTouchEventName=function(a){return c.Browser.WebKitTouchUI&&(a.indexOf("touch")>-1||a.indexOf("gesture")>-1)},g.isTouchEvent=function(a){return c.Browser.WebKitTouchUI&&I.isDefined(a.changedTouches)},g.getEventX=function(a){return c.Browser.IE?a.pageX:a.changedTouches[0].pageX},g.getEventY=function(a){return c.Browser.IE?a.pageY:a.changedTouches[0].pageY},g.touchMouseDownEventName=c.Browser.WebKitTouchUI?"touchstart":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",g.touchMouseUpEventName=c.Browser.WebKitTouchUI?"touchend":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",g.touchMouseMoveEventName=c.Browser.WebKitTouchUI?"touchmove":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",g.msTouchDraggableClassName="dxMSTouchDraggable",g.documentTouchHandlers={},g.documentEventAttachingAllowed=!0,g}();u.TouchUtils=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0});var c=o(18),I=o(83),C=o(50),g=function(){function a(){}return a.loadJavascriptFile=function(p,s){var l,d=document.getElementsByTagName("head")[0];if(!d){d=document.createElement("head");var h=document.getElementsByTagName("body")[0];null===(l=h.parentNode)||void 0===l||l.insertBefore(d,h)}var v=document.createElement("script");return v.onload=s,v.src=p,d.appendChild(v),{htmlScriptElement:v}},a.startDownloadFileLocal=function(p,s){if(p instanceof ArrayBuffer&&(p=I.Base64Utils.fromArrayBuffer(p)),C.isString(p)&&(p=I.Base64Utils.getFileFromBase64(p)),window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(p,s);else{var l=document.createElement("a"),d=URL.createObjectURL(p);l.href=d,l.download=s,document.body.appendChild(l),l.click(),setTimeout(function(){document.body.removeChild(l),window.URL.revokeObjectURL(d)},0)}},a.createFile=function(p,s,l){var d;if(c.Browser.IE||c.Browser.Edge&&c.Browser.MajorVersion<86){var h=new Blob(p,l);return h.lastModifiedDate=null!==(d=l?.lastModified)&&void 0!==d?d:Date.now(),h.name=s,h}return new File(p,s,l)},a.isFile=function(p){return c.Browser.IE||c.Browser.Edge&&c.Browser.MajorVersion<86?p instanceof File||p instanceof Blob&&C.isDefined(p.name):p instanceof File},a}();u.FileUtils=g},function(he,u,o){"use strict";var c,I,C,g,p;Object.defineProperty(u,"__esModule",{value:!0}),u.OpenXmlMimeType="application/vnd.openxmlformats-officedocument.wordprocessingml.document",u.RtfMimeType="application/rtf",u.PlainTextMimeType="text/plain",u.DocmMimeType="application/vnd.ms-word.document.macroEnabled.12",u.ImagePngMimeType="image/png",u.ImageGifMimeType="image/gif",u.ImageJpegMimeType="image/jpeg",u.ImagePjpegMimeType="image/pjpeg",u.ImageSvgMimeType="image/svg+xml",u.ImageTiffMimeType="image/tiff",u.ImageIcoMimeType="image/vnd.microsoft.icon",u.ImageWbmpMimeType="image/vnd.wap.wbmp",u.ImageWebpMimeType="image/webp",(p=g=u.DxMimeType||(u.DxMimeType={}))[p.Unknown=0]="Unknown",p[p.OpenXml=1]="OpenXml",p[p.Rtf=2]="Rtf",p[p.PlainText=3]="PlainText",p[p.Docm=4]="Docm",p[p.Png=5]="Png",p[p.Gif=6]="Gif",p[p.Jpeg=7]="Jpeg",p[p.Pjpeg=8]="Pjpeg",p[p.Svg=9]="Svg",p[p.Tiff=10]="Tiff",p[p.Ico=11]="Ico",p[p.Wbmp=12]="Wbmp",p[p.Webp=13]="Webp";var a=function(){function p(){}return p.stringTypeToExtension=function(s){var l=p.stringTypeToTypeMap[s];return void 0===l?"":p.typeToExtensionMap[l]},p.typeToExtension=function(s){return p.typeToExtensionMap[s]??""},p.extensionToType=function(s){return"."!==(s=s.toLowerCase())[0]&&(s+="."),p.extensionToTypeMap[s]??g.Unknown},p.typeToStringType=function(s){return p.typeToStringTypeMap[s]??""},p.stringTypeToType=function(s){var l=p.stringTypeToTypeMap[s];return void 0===l?g.Unknown:l},p.stringTypeToTypeMap=((c={})[u.OpenXmlMimeType]=g.OpenXml,c[u.RtfMimeType]=g.Rtf,c[u.PlainTextMimeType]=g.PlainText,c[u.DocmMimeType]=g.Docm,c[u.ImagePngMimeType]=g.Png,c[u.ImageGifMimeType]=g.Gif,c[u.ImageJpegMimeType]=g.Jpeg,c[u.ImagePjpegMimeType]=g.Pjpeg,c[u.ImageSvgMimeType]=g.Svg,c[u.ImageTiffMimeType]=g.Tiff,c[u.ImageIcoMimeType]=g.Ico,c[u.ImageWbmpMimeType]=g.Wbmp,c[u.ImageWebpMimeType]=g.Webp,c),p.typeToStringTypeMap=((I={})[g.Unknown]=void 0,I[g.OpenXml]=u.OpenXmlMimeType,I[g.Rtf]=u.RtfMimeType,I[g.PlainText]=u.PlainTextMimeType,I[g.Docm]=u.DocmMimeType,I[g.Png]=u.ImagePngMimeType,I[g.Gif]=u.ImageGifMimeType,I[g.Jpeg]=u.ImageJpegMimeType,I[g.Pjpeg]=u.ImagePjpegMimeType,I[g.Svg]=u.ImageSvgMimeType,I[g.Tiff]=u.ImageTiffMimeType,I[g.Ico]=u.ImageIcoMimeType,I[g.Wbmp]=u.ImageWbmpMimeType,I[g.Webp]=u.ImageWebpMimeType,I),p.typeToExtensionMap=((C={})[g.Unknown]=void 0,C[g.OpenXml]=".docx",C[g.Rtf]=".rtf",C[g.PlainText]=".txt",C[g.Docm]=".docm",C[g.Png]=".png",C[g.Gif]=".gif",C[g.Jpeg]=".jpeg",C[g.Pjpeg]=".pjpeg",C[g.Svg]=".svg",C[g.Tiff]=".tiff",C[g.Ico]=".ico",C[g.Wbmp]=".wbmp",C[g.Webp]=".webp",C),p.extensionToTypeMap={".docx":g.OpenXml,".rtf":g.Rtf,".txt":g.PlainText,".docm":g.Docm,".png":g.Png,".gif":g.Gif,".jpeg":g.Jpeg,".pjpeg":g.Pjpeg,".svg":g.Svg,".tiff":g.Tiff,".ico":g.Ico,".wbmp":g.Wbmp,".webp":g.Webp},p}();u.MimeTypeUtils=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsCalculator=void 0;var C=o(111),g=o(29),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getPoints=function(){return this.connector.points.map(function(l,d){return new g.ConnectorRenderPoint(l.x,l.y,d)})},s}(C.ConnectorPointsCalculatorBase);u.ConnectorPointsCalculator=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalCalculator=void 0;var C=o(13),g=o(9),a=o(111),p=o(181),s=o(182),l=o(183),d=o(184),h=o(185),v=o(29),x=o(4),b=function(y){function E(S){var O=y.call(this,S)||this;return O.sideCalculators={},O.sideCalculators[g.ConnectionPointSide.Undefined]=new p.ConnectorPointsOrthogonalUndefinedSideCalculator(O),O.sideCalculators[g.ConnectionPointSide.South]=new s.ConnectorPointsOrthogonalSouthSideCalculator(O),O.sideCalculators[g.ConnectionPointSide.North]=new l.ConnectorPointsOrthogonalNorthSideCalculator(O),O.sideCalculators[g.ConnectionPointSide.East]=new d.ConnectorPointsOrthogonalEastSideCalculator(O),O.sideCalculators[g.ConnectionPointSide.West]=new h.ConnectorPointsOrthogonalWestSideCalculator(O),O}return I(E,y),Object.defineProperty(E.prototype,"beginRect",{get:function(){return this.connector.beginItem?this.connector.beginItem.rectangle:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"endRect",{get:function(){return this.connector.endItem?this.connector.endItem.rectangle:void 0},enumerable:!1,configurable:!0}),E.prototype.getPoints=function(){var S=this.connector.points.map(function(Y,J){return new v.ConnectorRenderPoint(Y.x,Y.y,J)});x.ModelUtils.removeUnnecessaryRenderPoints(S);var O=0,w=S.length-1,T=this.getPointSide(S,0),k=this.getPointSide(S,1),R=this.getPointSide(S,S.length-1),P=this.getPointSide(S,S.length-1-1),B=this.getSideCalculator(T),W=this.getSideCalculator(R),V=B.getCorrectOriginPoint(S[O],this.beginRect),U=S[O+1];if(2===S.length&&B.isOnSidePoint(V,U)&&B.isDirectConnectionAllowed(k,V,U))B.getDirectConnectionPoints(V,U).forEach(function(Y){S.splice(O+1,0,Y),O++,w++});else{var K=B.getBeginOffsetPoints(k,S[O],S[O+1],this.beginRect);K.forEach(function(Y){S.splice(O+1,0,Y)}),O+=K.length,W.getEndOffsetPoints(P,S[w+=K.length],S[w-1],this.endRect).forEach(function(Y,J){S.splice(w+J,0,Y)}),this.addMiddlePoints(S,O,w)}return x.ModelUtils.removeUnnecessaryRenderPoints(S),S},E.prototype.getSideCalculator=function(S){return this.sideCalculators[S]},E.prototype.getPointSide=function(S,O){if(0===O&&this.connector.beginItem){var w=this.connector.beginConnectionPointIndex;return this.connector.beginItem.getConnectionPointSideByIndex(w,S[1])}return O===S.length-1&&this.connector.endItem?this.connector.endItem.getConnectionPointSideByIndex(w=this.connector.endConnectionPointIndex,S[S.length-2]):g.ConnectionPointSide.Undefined},E.prototype.addMiddlePoints=function(S,O,w){for(var T=O;T<w;T++){var k=T+1,R=this.getMiddlePoint(S[T],S[T-1],T-1==0,S[k],S[k+1],k+1===S.length-1);void 0!==R&&(S.splice(T+1,0,R),T++,w++)}},E.prototype.getMiddlePoints=function(S,O){return S.x===O.x||S.y===O.y?[]:[new v.ConnectorRenderPoint(S.x,O.y),new v.ConnectorRenderPoint(O.x,S.y)]},E.prototype.getMiddlePoint=function(S,O,w,T,k,R){var P,B=this,W=this.getMiddlePoints(S,T);return W.forEach(function(z){var V=B.createPointsRect(S,z),U=B.createPointsRect(z,T),K=B.connector.beginItem?B.connector.beginItem.rectangle:void 0,Y=B.connector.endItem?B.connector.endItem.rectangle:void 0;K&&(C.Rectangle.areIntersected(K,V)||C.Rectangle.areIntersected(K,U))||Y&&(C.Rectangle.areIntersected(Y,V)||C.Rectangle.areIntersected(Y,U))||B.isReturnPoint(z,S,O)&&!B.isIntermediatePoints(S,O)||B.isReturnPoint(z,T,k)&&!B.isIntermediatePoints(T,k)||(void 0===P||B.isPriorMiddlePoint(z,S,O,T,k))&&(P=z)}),void 0===P&&W.length>0&&(P=W[0]),P},E.prototype.createPointsRect=function(S,O){var w=C.Rectangle.fromPoints(S,O);return w.width>0&&(w=w.clone().inflate(-1,0)),w.height>0&&(w=w.clone().inflate(0,-1)),w},E.prototype.isPriorMiddlePoint=function(S,O,w,T,k){return!(!w||S.x!==w.x&&S.y!==w.y)||!(!k||S.x!==k.x&&S.y!==k.y)},E.prototype.isReturnPoint=function(S,O,w){return void 0!==O&&void 0!==w&&(S.x===w.x&&(O.y<S.y&&S.y<w.y||O.y>S.y&&S.y>w.y)||S.y===w.y&&(O.x<S.x&&S.x<w.x||O.x>S.x&&S.x>w.x))},E.prototype.isIntermediatePoints=function(S,O){return 0<S.pointIndex&&S.pointIndex<this.connector.points.length-1&&0<O.pointIndex&&O.pointIndex<this.connector.points.length-1},E}(a.ConnectorPointsCalculatorBase);u.ConnectorPointsOrthogonalCalculator=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalUndefinedSideCalculator=void 0;var C=o(52),g=o(29),a=function(p){function s(l){return p.call(this,l)||this}return I(s,p),s.prototype.getCorrectOriginPoint=function(l,d){return l},s.prototype.getSameShapeOffsetPoints=function(l,d,h,v){return[]},s.prototype.getOverlappedPointsOffsetPoints=function(l,d,h,v){return[]},s.prototype.getBeginOverlappedShapeOffsetPoints=function(l,d,h,v){return[]},s.prototype.getEndOverlappedShapeOffsetPoints=function(l,d,h,v){return[]},s.prototype.getBeginOnSideOffsetPoints=function(l,d,h,v){return[]},s.prototype.getEndOnSideOffsetPoints=function(l,d,h,v){return[]},s.prototype.getBeginOffSideOffsetPoints=function(l,d,h,v){return[]},s.prototype.getEndOffSideOffsetPoints=function(l,d,h,v){return[]},s.prototype.isOnSidePoint=function(l,d){return!0},s.prototype.isDirectConnectionAllowed=function(l,d,h){var v=this.getSideCalculator(d,h);return void 0===v||v.isDirectConnectionAllowed(l,d,h)},s.prototype.getDirectConnectionPoints=function(l,d){var h=Math.abs(d.x-l.x),v=Math.abs(d.y-l.y);if(h>v){var x=Math.min(l.x,d.x)+h/2;return[new g.ConnectorRenderPoint(x,l.y),new g.ConnectorRenderPoint(x,d.y)]}var b=Math.min(l.y,d.y)+v/2;return[new g.ConnectorRenderPoint(l.x,b),new g.ConnectorRenderPoint(d.x,b)]},s}(C.ConnectorPointsOrthogonalSideCalculatorBase);u.ConnectorPointsOrthogonalUndefinedSideCalculator=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalSouthSideCalculator=void 0;var C=o(9),g=o(52),a=o(29),p=function(s){function l(d){return s.call(this,d)||this}return I(l,s),l.prototype.getCorrectOriginPoint=function(d,h){return d.y<h.bottom&&(d=d.clone().offset(0,h.bottom-d.y)),d},l.prototype.getSameShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:case C.ConnectionPointSide.West:case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset())}},l.prototype.getOverlappedPointsOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())]}return[]},l.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return h.y<v.y?h.x>v.x?[]:[h.clone().offset(0,this.getMinOffset())]:h.y>this.endRect.bottom?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.West:return h.y<v.y?h.x<v.x?[]:[h.clone().offset(0,this.getMinOffset())]:h.y>this.endRect.bottom?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),h.x<v.x)}},l.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return v.y<h.y?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):h.x<v.x?[h.clone().offset(0,this.getMinOffset())]:[];case C.ConnectionPointSide.West:return v.y<h.y?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):h.x>v.x?[h.clone().offset(0,this.getMinOffset())]:[];case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:var b=this.getMinOffset();return this.beginRect.bottom>h.y&&(b+=this.beginRect.bottom-h.y),[h.clone().offset(0,b)]}},l.prototype.getBeginOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(0,this.getScaleableOffsetY(h,v,!1))]},l.prototype.getEndOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(0,this.getScaleableOffsetY(h,v,!0))]},l.prototype.getBeginOffSideOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!1);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!0);break;case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,v,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.North:return this.getScaleableAsideOffsetPoints(h,v,x,!1)}return[h.clone().offset(0,this.getScaleableOffsetY(h,v,!1))]},l.prototype.getEndOffSideOffsetPoints=function(d,h,v,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,v,x,!0):this.isBeginEndOverlappedX()?this.getScaleableAsideOffsetPoints(h,v,x,!0,this.beginRect.center.x>this.endRect.center.x):[h.clone().offset(0,this.getScaleableOffsetY(h,v,!0))]},l.prototype.getAsideOffsetPoints=function(d,h,v,x,b,y){var E=[];return void 0!==v&&(void 0===y&&(y=h.x<d.x),E.push(y?d.clone().offset(-(d.x-v.x+b),x):d.clone().offset(v.right-d.x+b,x))),E.push(d.clone().offset(0,x)),E},l.prototype.getScaleableAsideOffsetPoints=function(d,h,v,x,b){var y=this.getScaleableOffsetY(d,h,x),E=this.getScaleableOffsetX(d,h,x);return this.getAsideOffsetPoints(d,h,v,y,E,b)},l.prototype.getScaleableOffsetX=function(d,h,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedX()){var x;if((x=h.x<d.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.getScaleableOffsetY=function(d,h,v){if(this.beginRect&&this.endRect){var x=v?this.beginRect.y-d.y:this.endRect.y-d.y;if(x>0&&x<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.isOnSidePoint=function(d,h){return h.y>d.y},l.prototype.isDirectConnectionAllowed=function(d,h,v){return d===C.ConnectionPointSide.North||d===C.ConnectionPointSide.Undefined},l.prototype.getDirectConnectionPoints=function(d,h){var v=d.y+(h.y-d.y)/2;return[new a.ConnectorRenderPoint(d.x,v),new a.ConnectorRenderPoint(h.x,v)]},l}(g.ConnectorPointsOrthogonalSideCalculatorBase);u.ConnectorPointsOrthogonalSouthSideCalculator=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalNorthSideCalculator=void 0;var C=o(9),g=o(52),a=o(29),p=function(s){function l(d){return s.call(this,d)||this}return I(l,s),l.prototype.getCorrectOriginPoint=function(d,h){return d.y>h.y&&(d=d.clone().offset(0,h.y-d.y)),d},l.prototype.getSameShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:case C.ConnectionPointSide.West:case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset())}},l.prototype.getOverlappedPointsOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.South:return[h.clone().offset(0,this.getMinOffset())];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())]}return[]},l.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return h.y>v.y?h.x>v.x?[]:[h.clone().offset(0,-this.getMinOffset())]:h.y<this.endRect.y?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.West:return h.y>v.y?h.x<v.x?[]:[h.clone().offset(0,-this.getMinOffset())]:h.y<this.endRect.y?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),h.x<v.x)}},l.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return v.y>h.y?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):h.x<v.x?[h.clone().offset(0,-this.getMinOffset())]:[];case C.ConnectionPointSide.West:return v.y>h.y?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):h.x>v.x?[h.clone().offset(0,-this.getMinOffset())]:[];case C.ConnectionPointSide.North:return[h.clone().offset(0,-this.getMinOffset())];case C.ConnectionPointSide.South:var b=-this.getMinOffset();return this.beginRect.y<h.y&&(b-=h.y-this.beginRect.y),[h.clone().offset(0,b)]}},l.prototype.getBeginOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(0,-this.getScaleableOffsetY(h,v,!1))]},l.prototype.getEndOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(0,-this.getScaleableOffsetY(h,v,!0))]},l.prototype.getBeginOffSideOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!1);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!0);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(h,v,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.South:return this.getScaleableAsideOffsetPoints(h,v,x,!1)}return[h.clone().offset(0,-this.getScaleableOffsetY(h,v,!1))]},l.prototype.getEndOffSideOffsetPoints=function(d,h,v,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,v,x,!0):this.isBeginEndOverlappedX()?this.getScaleableAsideOffsetPoints(h,v,x,!0,this.beginRect.center.x>this.endRect.center.x):[h.clone().offset(0,-this.getScaleableOffsetY(h,v,!0))]},l.prototype.getAsideOffsetPoints=function(d,h,v,x,b,y){var E=[];return void 0!==v&&(void 0===y&&(y=h.x<d.x),E.push(y?d.clone().offset(-(d.x-v.x+b),-x):d.clone().offset(v.right-d.x+b,-x))),E.push(d.clone().offset(0,-x)),E},l.prototype.getScaleableAsideOffsetPoints=function(d,h,v,x,b){var y=this.getScaleableOffsetY(d,h,x),E=this.getScaleableOffsetX(d,h,x);return this.getAsideOffsetPoints(d,h,v,y,E,b)},l.prototype.getScaleableOffsetX=function(d,h,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedX()){var x;if((x=h.x<d.x?this.beginRect.x-this.endRect.right:this.endRect.x-this.beginRect.right)<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.getScaleableOffsetY=function(d,h,v){if(this.beginRect&&this.endRect){var x=v?d.y-this.beginRect.bottom:d.y-this.endRect.bottom;if(x>0&&x<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.isOnSidePoint=function(d,h){return h.y<d.y},l.prototype.isDirectConnectionAllowed=function(d,h,v){return d===C.ConnectionPointSide.South||d===C.ConnectionPointSide.Undefined},l.prototype.getDirectConnectionPoints=function(d,h){var v=h.y+(d.y-h.y)/2;return[new a.ConnectorRenderPoint(d.x,v),new a.ConnectorRenderPoint(h.x,v)]},l}(g.ConnectorPointsOrthogonalSideCalculatorBase);u.ConnectorPointsOrthogonalNorthSideCalculator=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalEastSideCalculator=void 0;var C=o(9),g=o(52),a=o(29),p=function(s){function l(d){return s.call(this,d)||this}return I(l,s),l.prototype.getCorrectOriginPoint=function(d,h){return d.x<h.right&&(d=d.clone().offset(h.right-d.x,0)),d},l.prototype.getSameShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.North:case C.ConnectionPointSide.South:case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset())}},l.prototype.getOverlappedPointsOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)]}return[]},l.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.North:return h.x<v.x?h.y<v.y?[]:[h.clone().offset(this.getMinOffset(),0)]:h.x>this.endRect.right?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.South:return h.x<v.x?h.y>v.y?[]:[h.clone().offset(this.getMinOffset(),0)]:h.x>this.endRect.right?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),h.y<v.y)}},l.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:var b=this.getMinOffset();return this.beginRect.right>h.x&&(b+=this.beginRect.right-h.x),[h.clone().offset(b,0)];case C.ConnectionPointSide.North:return v.x<h.x?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):h.y>v.y?[h.clone().offset(this.getMinOffset(),0)]:[];case C.ConnectionPointSide.South:return v.x<h.x?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):h.y<v.y?[h.clone().offset(this.getMinOffset(),0)]:[]}},l.prototype.getBeginOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(this.getScaleableOffsetX(h,v,!1),0)]},l.prototype.getEndOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(this.getScaleableOffsetX(h,v,!0),0)]},l.prototype.getBeginOffSideOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!1);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!0);break;case C.ConnectionPointSide.East:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,v,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.West:return this.getScaleableAsideOffsetPoints(h,v,x,!1)}return[h.clone().offset(this.getScaleableOffsetX(h,v,!1),0)]},l.prototype.getEndOffSideOffsetPoints=function(d,h,v,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,v,x,!0):this.isBeginEndOverlappedY()?this.getScaleableAsideOffsetPoints(h,v,x,!0,this.beginRect.center.y>this.endRect.center.y):[h.clone().offset(this.getScaleableOffsetX(h,v,!0),0)]},l.prototype.getAsideOffsetPoints=function(d,h,v,x,b,y){var E=[];return void 0!==v&&(void 0===y&&(y=h.y<d.y),E.push(y?d.clone().offset(x,-(d.y-v.y+b)):d.clone().offset(x,v.bottom-d.y+b))),E.push(d.clone().offset(x,0)),E},l.prototype.getScaleableAsideOffsetPoints=function(d,h,v,x,b){var y=this.getScaleableOffsetX(d,h,x),E=this.getScaleableOffsetY(d,h,x);return this.getAsideOffsetPoints(d,h,v,y,E,b)},l.prototype.getScaleableOffsetX=function(d,h,v){if(this.beginRect&&this.endRect){var x=v?this.beginRect.x-d.x:this.endRect.x-d.x;if(x>0&&x<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.getScaleableOffsetY=function(d,h,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedY()){var x;if((x=h.y<d.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.isOnSidePoint=function(d,h){return h.x>d.x},l.prototype.isDirectConnectionAllowed=function(d,h,v){return d===C.ConnectionPointSide.West||d===C.ConnectionPointSide.Undefined},l.prototype.getDirectConnectionPoints=function(d,h){var v=d.x+(h.x-d.x)/2;return[new a.ConnectorRenderPoint(v,d.y),new a.ConnectorRenderPoint(v,h.y)]},l}(g.ConnectorPointsOrthogonalSideCalculatorBase);u.ConnectorPointsOrthogonalEastSideCalculator=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorPointsOrthogonalWestSideCalculator=void 0;var C=o(9),g=o(52),a=o(29),p=function(s){function l(d){return s.call(this,d)||this}return I(l,s),l.prototype.getCorrectOriginPoint=function(d,h){return d.x>h.x&&(d=d.clone().offset(h.x-d.x,0)),d},l.prototype.getSameShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.North:case C.ConnectionPointSide.South:case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.East:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset())}},l.prototype.getOverlappedPointsOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:return[h.clone().offset(this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)]}return[]},l.prototype.getBeginOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.North:return h.x>v.x?h.y<v.y?[]:[h.clone().offset(-this.getMinOffset(),0)]:h.x<this.endRect.x?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.South:return h.x>v.x?h.y>v.y?[]:[h.clone().offset(-this.getMinOffset(),0)]:h.x<this.endRect.x?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.East:return this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),h.y<v.y)}},l.prototype.getEndOverlappedShapeOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.East:var b=-this.getMinOffset();return this.beginRect.x<h.x&&(b-=h.x-this.beginRect.x),[h.clone().offset(b,0)];case C.ConnectionPointSide.West:return[h.clone().offset(-this.getMinOffset(),0)];case C.ConnectionPointSide.North:return v.x>h.x?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!0):h.y>v.y?[h.clone().offset(-this.getMinOffset(),0)]:[];case C.ConnectionPointSide.South:return v.x>h.x?this.getAsideOffsetPoints(h,v,x,this.getMinOffset(),this.getMinOffset(),!1):h.y<v.y?[h.clone().offset(-this.getMinOffset(),0)]:[]}},l.prototype.getBeginOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(-this.getScaleableOffsetX(h,!1),0)]},l.prototype.getEndOnSideOffsetPoints=function(d,h,v,x){return[h.clone().offset(-this.getScaleableOffsetX(h,!0),0)]},l.prototype.getBeginOffSideOffsetPoints=function(d,h,v,x){switch(d){case C.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!1);break;case C.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,v,x,!1,!0);break;case C.ConnectionPointSide.West:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(h,v,x,!1);break;case C.ConnectionPointSide.Undefined:case C.ConnectionPointSide.East:return this.getScaleableAsideOffsetPoints(h,v,x,!1)}return[h.clone().offset(-this.getScaleableOffsetX(h,!1),0)]},l.prototype.getEndOffSideOffsetPoints=function(d,h,v,x){return d===C.ConnectionPointSide.Undefined?this.getScaleableAsideOffsetPoints(h,v,x,!0):this.isBeginEndOverlappedY()?this.getScaleableAsideOffsetPoints(h,v,x,!0,this.beginRect.center.y>this.endRect.center.y):[h.clone().offset(-this.getScaleableOffsetX(h,!0),0)]},l.prototype.getAsideOffsetPoints=function(d,h,v,x,b,y){var E=[];return void 0!==v&&(void 0===y&&(y=h.y<d.y),E.push(y?d.clone().offset(-x,-(d.y-v.y+b)):d.clone().offset(-x,v.bottom-d.y+b))),E.push(d.clone().offset(-x,0)),E},l.prototype.getScaleableAsideOffsetPoints=function(d,h,v,x,b){var y=this.getScaleableOffsetX(d,x),E=this.getScaleableOffsetY(d,h,x);return this.getAsideOffsetPoints(d,h,v,y,E,b)},l.prototype.getScaleableOffsetX=function(d,h){if(this.beginRect&&this.endRect){var v=h?d.x-this.beginRect.right:d.x-this.endRect.right;if(v>0&&v<2*this.getMinOffset())return v/2}return this.getMinOffset()},l.prototype.getScaleableOffsetY=function(d,h,v){if(this.beginRect&&this.endRect&&!v&&!this.isBeginEndOverlappedY()){var x;if((x=h.y<d.y?this.beginRect.y-this.endRect.bottom:this.endRect.y-this.beginRect.bottom)<2*this.getMinOffset())return x/2}return this.getMinOffset()},l.prototype.isOnSidePoint=function(d,h){return h.x<d.x},l.prototype.isDirectConnectionAllowed=function(d,h,v){return d===C.ConnectionPointSide.East||d===C.ConnectionPointSide.Undefined},l.prototype.getDirectConnectionPoints=function(d,h){var v=h.x+(d.x-h.x)/2;return[new a.ConnectorRenderPoint(v,d.y),new a.ConnectorRenderPoint(v,h.y)]},l}(g.ConnectorPointsOrthogonalSideCalculatorBase);u.ConnectorPointsOrthogonalWestSideCalculator=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorLineEndingFilledTriangleStrategy=u.ConnectorLineEndingOutlinedTriangleStrategy=u.ConnectorLineEndingArrowStrategy=u.ConnectorLineEndingNoneStrategy=u.ConnectorLineEndingStrategy=void 0;var C=o(3),g=o(5),a=function(){function h(v){this.style=v}return h.prototype.hasCommands=function(){return!0},h.prototype.needCreateSeparatePrimitive=function(){return!1},h.prototype.createPrimitive=function(){return new g.PathPrimitive([],this.getStyle(),this.getCssClass())},h.prototype.createCommands=function(v,x){return[]},h.prototype.getStyle=function(){var v=this.style.clone();return v.resetStrokeDashArray(),v},h.prototype.getCssClass=function(){},h}();u.ConnectorLineEndingStrategy=a;var p=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),v.prototype.hasCommands=function(){return!1},v}(a);u.ConnectorLineEndingNoneStrategy=p;var s=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),Object.defineProperty(v.prototype,"arrowHeight",{get:function(){return 6*this.style.strokeWidth},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"arrowWidth",{get:function(){return 2*this.style.strokeWidth},enumerable:!1,configurable:!0}),v.prototype.needCreateSeparatePrimitive=function(){return!this.style.isDefaultStrokeDashArray()},v.prototype.createCommands=function(x,b){var y=this.getArrowPoints(x,b),E=[new g.PathPrimitiveMoveToCommand(y.point1.x,y.point1.y),new g.PathPrimitiveLineToCommand(x.x,x.y),new g.PathPrimitiveLineToCommand(y.point2.x,y.point2.y)];return this.style.isDefaultStrokeDashArray()||(E=E.concat([new g.PathPrimitiveMoveToCommand(x.x,x.y),new g.PathPrimitiveLineToCommand(y.point3.x,y.point3.y)])),E},v.prototype.getArrowPoints=function(x,b){var y,E=this.arrowHeight;return x.x===b.x&&(y=Math.abs(x.y-b.y))<E&&(E=y),x.y===b.y&&(y=Math.abs(x.x-b.x))<E&&(E=y),C.GeometryUtils.getArrowPoints(x,b,E,this.arrowWidth)},v}(a);u.ConnectorLineEndingArrowStrategy=s;var l=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),v.prototype.needCreateSeparatePrimitive=function(){return!0},v.prototype.createCommands=function(x,b){var y=this.getArrowPoints(x,b);return[new g.PathPrimitiveMoveToCommand(y.point1.x,y.point1.y),new g.PathPrimitiveLineToCommand(x.x,x.y),new g.PathPrimitiveLineToCommand(y.point2.x,y.point2.y),new g.PathPrimitiveClosePathCommand]},v.prototype.getCssClass=function(){return"outlined-line-ending"},v}(s);u.ConnectorLineEndingOutlinedTriangleStrategy=l;var d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),v.prototype.getStyle=function(){var x=h.prototype.getStyle.call(this);return x.fill=x.stroke,x},v.prototype.getCssClass=function(){return"filled-line-ending"},v}(l);u.ConnectorLineEndingFilledTriangleStrategy=d},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorTexts=u.ConnectorText=void 0;var c=function(C,g){this.position=C,this.value=g};u.ConnectorText=c;var I=function(){function C(){this.items={}}return C.prototype.get=function(g){return this.items[g]},C.prototype.set=function(g,a){this.items[g]=a},C.prototype.remove=function(g){delete this.items[g]},C.prototype.map=function(g){var a=[];return this.forEach(function(p){return a.push(g(p))}),a},C.prototype.forEach=function(g){for(var a in this.items)Object.prototype.hasOwnProperty.call(this.items,a)&&g(this.items[a])},C.prototype.count=function(){return Object.keys(this.items).length},C.prototype.clone=function(){var g=new C;return this.forEach(function(a){g.set(a.position,new c(a.position,a.value))}),g},C.prototype.toObject=function(){var g={},a=!1;return this.forEach(function(p){g[p.position]=p.value,a=!0}),a?g:null},C.prototype.fromObject=function(g){for(var a in g)if(Object.prototype.hasOwnProperty.call(g,a)){var p=parseFloat(a);isNaN(p)||"string"!=typeof g[a]||this.set(p,new c(p,g[a]))}},C}();u.ConnectorTexts=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.AddConnectorPointHistoryItem=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.connectorKey=p,d.pointIndex=s,d.point=l,d}return I(a,g),a.prototype.redo=function(p){var s=this,l=p.model.findConnector(this.connectorKey);this.renderContext=l.tryCreateRenderPointsContext(),p.addDeleteConnectorPoint(l,function(d){d.addPoint(s.pointIndex,s.point),d.onAddPoint(s.pointIndex,s.point)})},a.prototype.undo=function(p){var s=this,l=p.model.findConnector(this.connectorKey);p.addDeleteConnectorPoint(l,function(d){d.deletePoint(s.pointIndex),d.replaceRenderPoints(s.renderContext)})},a}(o(8).HistoryItem);u.AddConnectorPointHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.InsertToContainerHistoryItem=void 0;var C=function(g){function a(p,s){var l=g.call(this)||this;return l.containerKey=s.key,l.itemKey=p.key,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey),l=p.model.findShape(this.containerKey);p.insertToContainer(s,l)},a.prototype.undo=function(p){var s=p.model.findItem(this.itemKey);p.removeFromContainer(s)},a}(o(8).HistoryItem);u.InsertToContainerHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.MoveConnectorRightAnglePointsHistoryItem=u.MoveConnectorPointHistoryItem=void 0;var C=o(8),g=function(p){function s(l,d,h){var v=p.call(this)||this;return v.connectorKey=l,v.pointIndex=d,v.newPoint=h,v}return I(s,p),s.prototype.redo=function(l){var d=this,h=l.model.findConnector(this.connectorKey);this.oldPoint=h.points[this.pointIndex].clone(),this.renderContext=h.tryCreateRenderPointsContext(),l.moveConnectorPoint(h,this.pointIndex,function(v){v.movePoint(d.pointIndex,d.newPoint),v.onMovePoint(d.pointIndex,d.newPoint)})},s.prototype.undo=function(l){var d=this,h=l.model.findConnector(this.connectorKey);l.moveConnectorPoint(h,this.pointIndex,function(v){v.movePoint(d.pointIndex,d.oldPoint),v.replaceRenderPoints(d.renderContext)})},s}(C.HistoryItem);u.MoveConnectorPointHistoryItem=g;var a=function(p){function s(l,d,h,v,x){var b=p.call(this)||this;return b.connectorKey=l,b.beginPointIndex=d,b.newBeginPoint=h,b.lastPointIndex=v,b.newLastPoint=x,b}return I(s,p),s.prototype.redo=function(l){var d=this,h=l.model.findConnector(this.connectorKey);this.oldBeginPoint=h.points[this.beginPointIndex].clone(),this.oldLastPoint=h.points[this.lastPointIndex].clone(),this.renderContext=h.tryCreateRenderPointsContext(),l.changeConnectorPoints(h,function(v){v.movePoint(d.beginPointIndex,d.newBeginPoint),v.movePoint(d.lastPointIndex,d.newLastPoint),v.onMovePoints(d.beginPointIndex,d.newBeginPoint,d.lastPointIndex,d.newLastPoint)})},s.prototype.undo=function(l){var d=this,h=l.model.findConnector(this.connectorKey);l.changeConnectorPoints(h,function(v){v.movePoint(d.beginPointIndex,d.oldBeginPoint),v.movePoint(d.lastPointIndex,d.oldLastPoint),v.replaceRenderPoints(d.renderContext)})},s}(C.HistoryItem);u.MoveConnectorRightAnglePointsHistoryItem=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.MoveShapeHistoryItem=void 0;var C=function(g){function a(p,s){var l=g.call(this)||this;return l.shapeKey=p,l.position=s,l}return I(a,g),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);this.oldPosition=s.position.clone(),p.moveShape(s,this.position)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.moveShape(s,this.oldPosition)},a}(o(8).HistoryItem);u.MoveShapeHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveFromContainerHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.itemKey=p.key,s}return I(a,g),a.prototype.redo=function(p){var s=p.model.findItem(this.itemKey);this.containerKey=s.container&&s.container.key,p.removeFromContainer(s)},a.prototype.undo=function(p){var s=p.model.findContainer(this.containerKey),l=p.model.findItem(this.itemKey);p.insertToContainer(l,s)},a}(o(8).HistoryItem);u.RemoveFromContainerHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ModelResizeHistoryItem=void 0;var C=o(8),g=o(87),a=o(2),p=function(s){function l(d){var h=s.call(this)||this;return h.offset=d,h}return I(l,s),l.prototype.redo=function(d){this.oldSize=d.model.size.clone(),this.backOffset=new g.Offsets(-this.offset.left,-this.offset.right,-this.offset.top,-this.offset.bottom);var h=Math.max(this.oldSize.width+this.offset.left+this.offset.right,d.model.pageWidth),v=Math.max(this.oldSize.height+this.offset.top+this.offset.bottom,d.model.pageHeight);d.changeModelSize(new a.Size(h,v),this.offset)},l.prototype.undo=function(d){d.changeModelSize(this.oldSize,this.backOffset)},l}(C.HistoryItem);u.ModelResizeHistoryItem=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.UpdatePositionsOnPageResizeHistoryItem=void 0;var C=o(6),g=o(14),a=function(p){function s(l){var d=p.call(this)||this;return d.offset=l,d}return I(s,p),s.prototype.redo=function(l){var d=this;l.model.iterateItems(function(h){h instanceof g.Shape&&l.moveShape(h,d.applyOffset(h.position,d.offset.x,d.offset.y)),h instanceof C.Connector&&l.changeConnectorPoints(h,function(v){return v.updatePointsOnPageResize(d.offset.x,d.offset.y)})})},s.prototype.undo=function(l){var d=this;l.model.iterateItems(function(h){h instanceof g.Shape&&l.moveShape(h,d.applyOffset(h.position,-d.offset.x,-d.offset.y)),h instanceof C.Connector&&l.changeConnectorPoints(h,function(v){return v.updatePointsOnPageResize(-d.offset.x,-d.offset.y)})})},s.prototype.applyOffset=function(l,d,h){return l.clone().offset(d,h)},s}(o(8).HistoryItem);u.UpdatePositionsOnPageResizeHistoryItem=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GraphInfo=void 0;var c=o(196),I=function(){function C(g,a){this.container=g,this.sourceGraph=a}return Object.defineProperty(C.prototype,"graph",{get:function(){return this._graph||(this._graph=this.getNodeInfoGraph())},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"level",{get:function(){return void 0!==this._level?this._level:this._level=this.getLevel()},enumerable:!1,configurable:!0}),C.prototype.getNodeInfoGraph=function(){return this.sourceGraph.cast(c.LayoutUtils.shapeToLayout)},C.prototype.getLevel=function(){var g=0;return this.container&&(g=this.getContainerLevel(this.container)),g},C.prototype.getContainerLevel=function(g){var a=1,p=g.container;return p&&(a+=this.getContainerLevel(p)),a},C}();u.GraphInfo=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.LayoutUtils=void 0;var c=o(71),I=function(){function C(){}return C.shapeToLayout=function(g){var a=new c.Margin(0),p=g.rectangle;g.attachedConnectors.filter(function(l){return!l.beginItem||!l.endItem}).forEach(function(l){var d=l.rectangle;a.left=Math.max(a.left,p.x-d.x),a.right=Math.max(a.right,d.right-p.right),a.top=Math.max(a.top,p.y-d.y),a.bottom=Math.max(a.bottom,d.bottom-p.bottom)});var s=new c.NodeInfo(g.key,a,g.size.clone());return s.connectionPoints=g.description.getConnectionPoints(),s},C}();u.LayoutUtils=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CommandBase=void 0;var c=function(){function I(C){this.control=C}return I.prototype.execute=function(C){this.isPermissionsRequired&&this.permissionsProvider.lockPermissions();var g=this.getState();if(this.isPermissionsRequired&&this.permissionsProvider.unlockPermissions(),!g.enabled)return!1;this.control.beginUpdate();var a;return a=this.isPermissionsRequired?this.executeWithPermissions(g,C):this.executeCore(g,C),this.control.endUpdate(),a&&this.updateControlState(),a},I.prototype.executeWithPermissions=function(C,g){var a=!1;return this.permissionsProvider.beginStorePermissions(),this.control.history.beginTransaction(),a=this.executeCore(C,g),this.permissionsProvider.isStoredPermissionsGranted()||(this.permissionsProvider.lockPermissions(),this.control.history.undoTransaction(),this.permissionsProvider.unlockPermissions(),a=!1),this.control.history.endTransaction(),this.permissionsProvider.endStorePermissions(),a},I.prototype.updateControlState=function(){this.lockInputPositionUpdating()||this.control.selection.inputPosition.reset(),this.lockUIUpdating()||this.control.barManager.updateItemsState()},Object.defineProperty(I.prototype,"permissionsProvider",{get:function(){return this.control&&this.control.permissionsProvider},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"isPermissionsRequired",{get:function(){return!1},enumerable:!1,configurable:!0}),I.prototype.lockUIUpdating=function(){return!1},I.prototype.lockInputPositionUpdating=function(){return!1},I}();u.CommandBase=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.SimpleCommandState=void 0,u.SimpleCommandState=function(I,C,g,a,p){this.visible=!0,this.denyUpdateValue=!1,this.enabled=I,this.value=C,this.items=a,this.visible=p,this.defaultValue=g}},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.UndoCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.executeCore=function(p){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.undo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},a.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.control.history.canUndo()},a}(o(10).SimpleCommandBase);u.UndoCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.RedoCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.executeCore=function(p){return this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.control.history.redo(),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas(),!0},a.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.control.history.canRedo()},a}(o(10).SimpleCommandBase);u.RedoCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ImportCommand=void 0;var C=o(119),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,l){this.permissionsProvider.lockPermissions();var h=new C.Importer(this.control.shapeDescriptionManager,l.data?l.data:l);if(!0===l.keepExistingItems)h.importItemsData(this.control.model),this.control.importItemsData();else{var v=h.import();this.control.importModel(v)}return this.permissionsProvider.unlockPermissions(),!0},p}(o(57).ExportImportCommandBase);u.ImportCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ProcessShapeDescription=void 0;var C=o(19),g=o(1),a=function(p){function s(){return p.call(this,void 0,!0)||this}return I(s,p),Object.defineProperty(s.prototype,"key",{get:function(){return g.ShapeTypes.Process},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),s}(C.RectangleShapeDescription);u.ProcessShapeDescription=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.DecisionShapeDescription=void 0;var C=o(120),g=o(1),a=o(2),p=o(7),s=function(l){function d(){return l.call(this,new a.Size(p.ShapeDefaultDimension,.75*p.ShapeDefaultDimension),!0)||this}return I(d,l),Object.defineProperty(d.prototype,"key",{get:function(){return g.ShapeTypes.Decision},enumerable:!1,configurable:!0}),d}(C.DiamondShapeDescription);u.DecisionShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ManualInputShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(9),s=o(7),l=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return g.ShapeTypes.ManualInput},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(b,y+x.height*h.slopeHeightRatio),new a.PathPrimitiveLineToCommand(E,y),new a.PathPrimitiveLineToCommand(E,S),new a.PathPrimitiveLineToCommand(b,S),new a.PathPrimitiveClosePathCommand],v.style)]},h.prototype.processConnectionPoint=function(v,x){v.getConnectionPointSide(x)===p.ConnectionPointSide.North&&(x.y+=h.slopeHeightRatio/2*v.size.height)},h.prototype.getTextRectangle=function(v){var x=v.size.height*h.slopeHeightRatio;return v.rectangle.clone().moveRectangle(s.ShapeTextPadding,x).resize(2*-s.ShapeTextPadding,-x-s.ShapeTextPadding).nonNegativeSize()},h.slopeHeightRatio=.1,h}(C.RectangleShapeDescription);u.ManualInputShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.DataShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(9),s=o(7),l=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return g.ShapeTypes.Data},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,T=Math.min(Math.max(0,x.height/Math.tan(h.slopeAngle)),O),R=E-T;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(b+T,y),new a.PathPrimitiveLineToCommand(E,y),new a.PathPrimitiveLineToCommand(R,S),new a.PathPrimitiveLineToCommand(b,S),new a.PathPrimitiveClosePathCommand],v.style)]},h.prototype.processConnectionPoint=function(v,x){var b=v.size.height/Math.tan(h.slopeAngle),y=v.getConnectionPointSide(x);y===p.ConnectionPointSide.East?x.x-=b/2:y===p.ConnectionPointSide.West&&(x.x+=b/2)},h.prototype.getTextRectangle=function(v){var x=Math.min(Math.max(0,v.size.height/Math.tan(h.slopeAngle)),v.size.width);return v.rectangle.clone().moveRectangle(x,s.ShapeTextPadding).resize(2*-x,2*-s.ShapeTextPadding)},h.slopeAngle=81*Math.PI/180,h}(C.RectangleShapeDescription);u.DataShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.TerminatorShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(2),s=o(7),l=o(13),d=o(3),h=function(v){function x(){return v.call(this,new p.Size(s.ShapeDefaultDimension,.5*s.ShapeDefaultDimension),!0)||this}return I(x,v),Object.defineProperty(x.prototype,"key",{get:function(){return g.ShapeTypes.Terminator},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),x.prototype.createShapePrimitives=function(b){var y=b.rectangle,E=y.x,S=y.y,O=y.right,w=y.bottom,T=y.width,k=y.center.y,R=E+T*x.curveWidthRatio,P=E+T*(1-x.curveWidthRatio);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(R,S),new a.PathPrimitiveLineToCommand(P,S),new a.PathPrimitiveQuadraticCurveToCommand(O,S,O,k),new a.PathPrimitiveQuadraticCurveToCommand(O,w,P,w),new a.PathPrimitiveLineToCommand(R,w),new a.PathPrimitiveQuadraticCurveToCommand(E,w,E,k),new a.PathPrimitiveQuadraticCurveToCommand(E,S,R,S),new a.PathPrimitiveClosePathCommand],b.style)]},x.prototype.getTextRectangle=function(b){var y=d.GeometryUtils.getMaxRectangleEnscribedInEllipse(b.size);return l.Rectangle.fromGeometry(b.position.clone().offset((b.size.width-y.width)/2,(b.size.height-y.height)/2),y)},x.prototype.getSizeByText=function(b,y){return d.GeometryUtils.getEllipseByEnscribedRectangle(b)},x.curveWidthRatio=.3,x}(C.RectangleShapeDescription);u.TerminatorShapeDescription=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.PredefinedProcessShapeDescription=u.PredefinedProcessEdgeParameterName=void 0;var C=o(19),g=o(1),a=o(37),p=o(30),s=o(0),l=o(5);u.PredefinedProcessEdgeParameterName="e";var d=function(h){function v(){return h.call(this,void 0,!0)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.PredefinedProcess},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,E=b.y,S=b.right,O=b.bottom,w=b.x+x.parameters.get(u.PredefinedProcessEdgeParameterName).value,T=S-x.parameters.get(u.PredefinedProcessEdgeParameterName).value;return h.prototype.createShapePrimitives.call(this,x).concat([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(w,E),new l.PathPrimitiveLineToCommand(w,O),new l.PathPrimitiveMoveToCommand(T,E),new l.PathPrimitiveLineToCommand(T,O)],x.style)])},v.prototype.createParameters=function(x){x.add(new a.ShapeParameter(u.PredefinedProcessEdgeParameterName,.1*this.defaultSize.width))},v.prototype.normalizeParameters=function(x,b){this.changeParameterValue(b,u.PredefinedProcessEdgeParameterName,function(y){return Math.max(v.minEdge,Math.min(.3*x.size.width,y.value))})},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,u.PredefinedProcessEdgeParameterName,function(S){return S.value+y}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new p.ShapeParameterPoint("c",new s.Point(x.normalizeX(x.position.x+x.parameters.get(u.PredefinedProcessEdgeParameterName).value),x.position.y))]},v.prototype.getTextRectangle=function(x){var b=x.rectangle,y=x.parameters.get(u.PredefinedProcessEdgeParameterName).value;return b.clone().resize(-2*y,0).clone().moveRectangle(y,0)},v.minEdge=72,v}(C.RectangleShapeDescription);u.PredefinedProcessShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowUpDownShapeDescription=void 0;var C=o(5),g=o(30),a=o(0),p=o(92),s=o(1),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return s.ShapeTypes.ArrowUpDown},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,w=x.center.x,T=(x.width-v.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,k=v.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,R=v.normalizeX(b+T),P=v.normalizeY(y+k),B=v.normalizeX(E-T),W=v.normalizeY(S-k);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(w,y),new C.PathPrimitiveLineToCommand(E,P),new C.PathPrimitiveLineToCommand(B,P),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(E,W),new C.PathPrimitiveLineToCommand(w,S),new C.PathPrimitiveLineToCommand(b,W),new C.PathPrimitiveLineToCommand(R,W),new C.PathPrimitiveLineToCommand(R,P),new C.PathPrimitiveLineToCommand(b,P),new C.PathPrimitiveClosePathCommand],v.style)]},h.prototype.normalizeParameters=function(v,x){this.changeParameterValue(x,p.ArrowVerticalTriangleHeightParameterName,function(b){return Math.max(0,Math.min(v.size.height/2-2*v.strokeWidth,b.value))}),this.changeParameterValue(x,p.ArrowVerticalLineWidthParameterName,function(b){return Math.max(0,Math.min(v.size.width,b.value))})},h.prototype.modifyParameters=function(v,x,b,y){this.changeParameterValue(x,p.ArrowVerticalTriangleHeightParameterName,function(E){return E.value+y}),this.changeParameterValue(x,p.ArrowVerticalLineWidthParameterName,function(E){return E.value-2*b}),this.normalizeParameters(v,x)},h.prototype.getParameterPoints=function(v){return[new g.ShapeParameterPoint("c",new a.Point(v.normalizeX(v.position.x+(v.size.width-v.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),v.normalizeY(v.position.y+v.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},h}(p.ArrowVerticalShapeDescription);u.ArrowUpDownShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowRightShapeDescription=void 0;var C=o(5),g=o(93),a=o(30),p=o(0),s=o(1),l=o(9),d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return s.ShapeTypes.ArrowRight},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.height,k=b.center.y,R=b.width-x.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value,P=(T-x.parameters.get(g.ArrowVerticalLineHeightParameterName).value)/2,B=x.normalizeX(y+R),W=x.normalizeY(E+P),z=x.normalizeY(O-P);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(y,W),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(B,E),new C.PathPrimitiveLineToCommand(S,k),new C.PathPrimitiveLineToCommand(B,O),new C.PathPrimitiveLineToCommand(B,z),new C.PathPrimitiveLineToCommand(y,z),new C.PathPrimitiveClosePathCommand],x.style)]},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,g.ArrowVerticalTriangleWidthParameterName,function(S){return S.value-y}),this.changeParameterValue(b,g.ArrowVerticalLineHeightParameterName,function(S){return S.value-2*E}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new a.ShapeParameterPoint("c",new p.Point(x.normalizeX(x.position.x+x.size.width-x.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value),x.normalizeY(x.position.y+(x.size.height-x.parameters.get(g.ArrowVerticalLineHeightParameterName).value)/2)))]},v.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value;if(b.x>x.position.x+x.size.width-y){var S=x.size.height/2/y*(b.x-(x.position.x+x.size.width-y)),O=x.getConnectionPointSide(b);O===l.ConnectionPointSide.North?b.y+=S:O===l.ConnectionPointSide.South&&(b.y-=S)}else h.prototype.processConnectionPoint.call(this,x,b)},v}(g.ArrowHorizontalShapeDescription);u.ArrowRightShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowUpShapeDescription=void 0;var C=o(5),g=o(30),a=o(0),p=o(92),s=o(1),l=o(9),d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return s.ShapeTypes.ArrowUp},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.center.x,k=(b.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,R=x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,P=x.normalizeX(y+k),B=x.normalizeY(E+R),W=x.normalizeX(S-k);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(T,E),new C.PathPrimitiveLineToCommand(S,B),new C.PathPrimitiveLineToCommand(W,B),new C.PathPrimitiveLineToCommand(W,O),new C.PathPrimitiveLineToCommand(P,O),new C.PathPrimitiveLineToCommand(P,B),new C.PathPrimitiveLineToCommand(y,B),new C.PathPrimitiveClosePathCommand],x.style)]},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,p.ArrowVerticalTriangleHeightParameterName,function(S){return S.value+E}),this.changeParameterValue(b,p.ArrowVerticalLineWidthParameterName,function(S){return S.value-2*y}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new g.ShapeParameterPoint("c",new a.Point(x.normalizeX(x.position.x+(x.size.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),x.normalizeY(x.position.y+x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},v.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value;if(b.y<x.position.y+y){var S=x.size.width/2/y*(x.position.y+y-b.y),O=x.getConnectionPointSide(b);O===l.ConnectionPointSide.East?b.x-=S:O===l.ConnectionPointSide.West&&(b.x+=S)}else h.prototype.processConnectionPoint.call(this,x,b)},v}(p.ArrowVerticalShapeDescription);u.ArrowUpShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.CrossShapeDescription=u.CrossVerticalWidthParameterName=u.CrossHorizontalWidthParameterName=void 0;var C=o(7),g=o(0),a=o(37),p=o(30),s=o(5),l=o(1);u.CrossHorizontalWidthParameterName="chw",u.CrossVerticalWidthParameterName="cvw";var d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return l.ShapeTypes.Cross},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.height,k=(b.width-x.parameters.get(u.CrossHorizontalWidthParameterName).value)/2,R=(T-x.parameters.get(u.CrossVerticalWidthParameterName).value)/2,P=x.normalizeX(y+k),B=x.normalizeY(E+R),W=x.normalizeX(S-k),z=x.normalizeY(O-R);return[new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(y,B),new s.PathPrimitiveLineToCommand(P,B),new s.PathPrimitiveLineToCommand(P,E),new s.PathPrimitiveLineToCommand(W,E),new s.PathPrimitiveLineToCommand(W,B),new s.PathPrimitiveLineToCommand(S,B),new s.PathPrimitiveLineToCommand(S,z),new s.PathPrimitiveLineToCommand(W,z),new s.PathPrimitiveLineToCommand(W,O),new s.PathPrimitiveLineToCommand(P,O),new s.PathPrimitiveLineToCommand(P,z),new s.PathPrimitiveLineToCommand(y,z),new s.PathPrimitiveClosePathCommand],x.style)]},v.prototype.createParameters=function(x){x.addRange([new a.ShapeParameter(u.CrossHorizontalWidthParameterName,.2*this.defaultSize.width),new a.ShapeParameter(u.CrossVerticalWidthParameterName,.2*this.defaultSize.height)])},v.prototype.normalizeParameters=function(x,b){this.changeParameterValue(b,u.CrossHorizontalWidthParameterName,function(y){return Math.max(0,Math.min(x.size.width,y.value))}),this.changeParameterValue(b,u.CrossVerticalWidthParameterName,function(y){return Math.max(0,Math.min(x.size.height,y.value))})},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,u.CrossHorizontalWidthParameterName,function(S){return S.value-2*y}),this.changeParameterValue(b,u.CrossVerticalWidthParameterName,function(S){return S.value-2*E}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new p.ShapeParameterPoint("c",new g.Point(x.normalizeX(x.position.x+(x.size.width-x.parameters.get(u.CrossHorizontalWidthParameterName).value)/2),x.normalizeY(x.position.y+(x.size.height-x.parameters.get(u.CrossVerticalWidthParameterName).value)/2)))]},v.prototype.getTextRectangle=function(x){return x.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},v.prototype.getSizeByText=function(x,b){return x.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},v}(C.ShapeDescription);u.CrossShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.HeartShapeDescription=void 0;var C=o(7),g=o(5),a=o(1),p=o(45),s=o(9),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return a.ShapeTypes.Heart},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.createConnectionPoints=function(){return[new p.ConnectionPoint(.5,.15,s.ConnectionPointSide.North),new p.ConnectionPoint(1,.25,s.ConnectionPointSide.East),new p.ConnectionPoint(.5,1,s.ConnectionPointSide.South),new p.ConnectionPoint(0,.25,s.ConnectionPointSide.West)]},h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,w=x.height;return[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(E-.25*O,y),new g.PathPrimitiveCubicCurveToCommand(E-.15*O,y,E,y+.1*w,E,y+.25*w),new g.PathPrimitiveCubicCurveToCommand(E,y+.3*w,E-.02*O,y+.35*w,E-.05*O,y+.4*w),new g.PathPrimitiveLineToCommand(x.center.x,S),new g.PathPrimitiveLineToCommand(b+.05*O,y+.4*w),new g.PathPrimitiveCubicCurveToCommand(b+.02*O,y+.35*w,b,y+.3*w,b,y+.25*w),new g.PathPrimitiveCubicCurveToCommand(b,y+.1*w,b+.15*O,y,b+.25*O,y),new g.PathPrimitiveCubicCurveToCommand(b+.3*O,y,b+.45*O,y+.03*w,b+.5*O,y+.15*w),new g.PathPrimitiveCubicCurveToCommand(E-.45*O,y+.03*w,E-.3*O,y,E-.25*O,y),new g.PathPrimitiveClosePathCommand],v.style)]},h.prototype.getTextRectangle=function(v){return v.rectangle.clone().inflate(-C.ShapeTextPadding,-C.ShapeTextPadding)},h.prototype.getSizeByText=function(v,x){return x.size.clone().offset(2*C.ShapeTextPadding,2*C.ShapeTextPadding)},h}(C.ShapeDescription);u.HeartShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.OctagonShapeDescription=void 0;var C=o(5),g=o(1),a=o(94),p=o(3),s=o(13),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return g.ShapeTypes.Octagon},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"angleCount",{get:function(){return 8},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width,w=x.height,T=Math.PI-this.angle,k=O/(1+2*Math.cos(T)),R=w/(1+2*Math.cos(T)),P=b+(O-k)/2,B=P+k,W=y+(w-R)/2,z=W+R;return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(P,y),new C.PathPrimitiveLineToCommand(B,y),new C.PathPrimitiveLineToCommand(E,W),new C.PathPrimitiveLineToCommand(E,z),new C.PathPrimitiveLineToCommand(B,S),new C.PathPrimitiveLineToCommand(P,S),new C.PathPrimitiveLineToCommand(b,z),new C.PathPrimitiveLineToCommand(b,W),new C.PathPrimitiveClosePathCommand],v.style)]},h.prototype.calculateHeight=function(v){return v},h.prototype.getTextRectangle=function(v){var x=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(v.size);return s.Rectangle.fromGeometry(v.position.clone().offset((v.size.width-x.width)/2,(v.size.height-x.height)/2),x)},h.prototype.getSizeByText=function(v,x){return p.GeometryUtils.getEllipseByEnscribedRectangle(v)},h}(a.PolygonShapeDescription);u.OctagonShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.StarShapeDescription=u.StarConvexParameterName=void 0;var C=o(5),g=o(1),a=o(122),p=o(37),s=o(30),l=o(0),d=o(9);u.StarConvexParameterName="sc";var h=function(v){function x(){return null!==v&&v.apply(this,arguments)||this}return I(x,v),Object.defineProperty(x.prototype,"key",{get:function(){return g.ShapeTypes.Star},enumerable:!1,configurable:!0}),x.prototype.createShapePrimitives=function(b){var y=b.rectangle,E=y.x,S=y.y,O=y.right,w=y.width,T=y.height,k=this.getActualBottom(S,y.bottom,w,T),R=y.center.x,P=S+(k-S)/2,B=T/w,W=Math.PI-this.angle,z=w/2*Math.tan(W/2)*B,V=S+z,U=(T-z)/Math.tan(W)/B,K=E+U,Y=O-U,J=b.parameters.get(u.StarConvexParameterName).value,j=this.getInnerPointDistance(R,R,O,P,S,V);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(R,S),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,R,O,J,j),this.getInnerPointPos(P,S,V,J,j)),new C.PathPrimitiveLineToCommand(O,V),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,O,Y,J,j),this.getInnerPointPos(P,V,k,J,j)),new C.PathPrimitiveLineToCommand(Y,k),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,Y,K,J,j),this.getInnerPointPos(P,k,k,J,j)),new C.PathPrimitiveLineToCommand(K,k),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,K,E,J,j),this.getInnerPointPos(P,k,V,J,j)),new C.PathPrimitiveLineToCommand(E,V),new C.PathPrimitiveLineToCommand(this.getInnerPointPos(R,E,R,J,j),this.getInnerPointPos(P,V,S,J,j)),new C.PathPrimitiveClosePathCommand],b.style)]},x.prototype.createParameters=function(b){b.addRange([new p.ShapeParameter(u.StarConvexParameterName,300)])},x.prototype.normalizeParameters=function(b,y){var E=b.rectangle,S=E.y,O=E.right,w=E.width,T=E.height,k=this.getActualBottom(S,E.bottom,w,T),R=E.center.x,P=S+(k-S)/2,B=T/w,W=Math.PI-this.angle,z=S+w/2*Math.tan(W/2)*B,V=this.getInnerPointDistance(R,R,O,P,S,z);this.changeParameterValue(y,u.StarConvexParameterName,function(U){return Math.max(0,Math.min(V,U.value))})},x.prototype.modifyParameters=function(b,y,E,S){var O=Math.sqrt(Math.pow(E,2)+Math.pow(S,2));(E<0||S>0)&&(O=-O),this.changeParameterValue(y,u.StarConvexParameterName,function(w){return w.value+O}),this.normalizeParameters(b,y)},x.prototype.getParameterPoints=function(b){var y=b.rectangle,E=y.y,S=y.right,O=y.width,w=y.height,T=this.getActualBottom(E,y.bottom,O,w),k=y.center.x,R=E+(T-E)/2,P=w/O,B=Math.PI-this.angle,W=E+O/2*Math.tan(B/2)*P,z=b.parameters.get(u.StarConvexParameterName).value,V=this.getInnerPointDistance(k,k,S,R,E,W),U=this.getInnerPointPos(k,k,S,z,V),K=this.getInnerPointPos(R,E,W,z,V);return[new s.ShapeParameterPoint("c",new l.Point(U,K))]},x.prototype.processConnectionPoint=function(b,y){if(v.prototype.processConnectionPoint.call(this,b,y),b.getConnectionPointSide(y)===d.ConnectionPointSide.South){var E=b.rectangle,S=E.y,O=E.right,w=E.width,T=E.height,k=this.getActualBottom(S,E.bottom,w,T),R=E.center.x,P=S+(k-S)/2,B=T/w,W=Math.PI-this.angle,z=S+w/2*Math.tan(W/2)*B,V=b.parameters.get(u.StarConvexParameterName).value,U=this.getInnerPointDistance(R,R,O,P,S,z);y.y=this.getInnerPointPos(P,k,k,V,U)}},x.prototype.getInnerPointDistanceByAxis=function(b,y,E){return Math.min(y,E)+Math.abs(y-E)/2-b},x.prototype.getInnerPointPos=function(b,y,E,S,O){var w=Math.min(1,S/O);return b+this.getInnerPointDistanceByAxis(b,y,E)*w},x.prototype.getInnerPointDistance=function(b,y,E,S,O,w){var T=this.getInnerPointDistanceByAxis(b,y,E),k=this.getInnerPointDistanceByAxis(S,O,w);return Math.sqrt(Math.pow(T,2)+Math.pow(k,2))},x.prototype.getActualBottom=function(b,y,E,S){var O=b+v.prototype.calculateHeight.call(this,E)*S/E;return O<y?O:y},x.prototype.calculateHeight=function(b){return b},x}(a.PentagonShapeDescription);u.StarShapeDescription=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowDownShapeDescription=void 0;var C=o(5),g=o(30),a=o(0),p=o(92),s=o(1),l=o(9),d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return s.ShapeTypes.ArrowDown},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.height,k=b.center.x,R=(b.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2,P=T-x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value,B=x.normalizeX(y+R),W=x.normalizeY(E+P),z=x.normalizeX(S-R);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(B,E),new C.PathPrimitiveLineToCommand(z,E),new C.PathPrimitiveLineToCommand(z,W),new C.PathPrimitiveLineToCommand(S,W),new C.PathPrimitiveLineToCommand(k,O),new C.PathPrimitiveLineToCommand(y,W),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveClosePathCommand],x.style)]},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,p.ArrowVerticalTriangleHeightParameterName,function(S){return S.value-E}),this.changeParameterValue(b,p.ArrowVerticalLineWidthParameterName,function(S){return S.value-2*y}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new g.ShapeParameterPoint("c",new a.Point(x.normalizeX(x.position.x+(x.size.width-x.parameters.get(p.ArrowVerticalLineWidthParameterName).value)/2),x.normalizeY(x.position.y+x.size.height-x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value)))]},v.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(p.ArrowVerticalTriangleHeightParameterName).value;if(b.y>x.position.y+x.size.height-y){var S=x.size.width/2/y*(b.y-(x.position.y+x.size.height-y)),O=x.getConnectionPointSide(b);O===l.ConnectionPointSide.East?b.x-=S:O===l.ConnectionPointSide.West&&(b.x+=S)}else h.prototype.processConnectionPoint.call(this,x,b)},v}(p.ArrowVerticalShapeDescription);u.ArrowDownShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowLeftRightShapeDescription=void 0;var C=o(5),g=o(93),a=o(30),p=o(0),s=o(1),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return s.ShapeTypes.ArrowLeftRight},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.height,w=x.center.y,T=v.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value,k=(O-v.parameters.get(g.ArrowVerticalLineHeightParameterName).value)/2,R=v.normalizeX(b+T),P=v.normalizeY(y+k),B=v.normalizeX(E-T),W=v.normalizeY(S-k);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(b,w),new C.PathPrimitiveLineToCommand(R,y),new C.PathPrimitiveLineToCommand(R,P),new C.PathPrimitiveLineToCommand(B,P),new C.PathPrimitiveLineToCommand(B,y),new C.PathPrimitiveLineToCommand(E,w),new C.PathPrimitiveLineToCommand(B,S),new C.PathPrimitiveLineToCommand(B,W),new C.PathPrimitiveLineToCommand(R,W),new C.PathPrimitiveLineToCommand(R,S),new C.PathPrimitiveClosePathCommand],v.style)]},h.prototype.normalizeParameters=function(v,x){this.changeParameterValue(x,g.ArrowVerticalTriangleWidthParameterName,function(b){return Math.max(0,Math.min(v.size.width/2-2*v.strokeWidth,b.value))}),this.changeParameterValue(x,g.ArrowVerticalLineHeightParameterName,function(b){return Math.max(0,Math.min(v.size.height,b.value))})},h.prototype.modifyParameters=function(v,x,b,y){this.changeParameterValue(x,g.ArrowVerticalTriangleWidthParameterName,function(E){return E.value+b}),this.changeParameterValue(x,g.ArrowVerticalLineHeightParameterName,function(E){return E.value-2*y}),this.normalizeParameters(v,x)},h.prototype.getParameterPoints=function(v){return[new a.ShapeParameterPoint("c",new p.Point(v.normalizeX(v.position.x+v.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value),v.normalizeY(v.position.y+(v.size.height-v.parameters.get(g.ArrowVerticalLineHeightParameterName).value)/2)))]},h}(g.ArrowHorizontalShapeDescription);u.ArrowLeftRightShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.ArrowLeftShapeDescription=void 0;var C=o(5),g=o(93),a=o(30),p=o(0),s=o(1),l=o(9),d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return s.ShapeTypes.ArrowLeft},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.height,T=b.center.y,k=x.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value,R=(w-x.parameters.get(g.ArrowVerticalLineHeightParameterName).value)/2,P=x.normalizeX(y+k),B=x.normalizeY(E+R),W=x.normalizeY(O-R);return[new C.PathPrimitive([new C.PathPrimitiveMoveToCommand(y,T),new C.PathPrimitiveLineToCommand(P,E),new C.PathPrimitiveLineToCommand(P,B),new C.PathPrimitiveLineToCommand(S,B),new C.PathPrimitiveLineToCommand(S,W),new C.PathPrimitiveLineToCommand(P,W),new C.PathPrimitiveLineToCommand(P,O),new C.PathPrimitiveClosePathCommand],x.style)]},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,g.ArrowVerticalTriangleWidthParameterName,function(S){return S.value+y}),this.changeParameterValue(b,g.ArrowVerticalLineHeightParameterName,function(S){return S.value-2*E}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new a.ShapeParameterPoint("c",new p.Point(x.normalizeX(x.position.x+x.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value),x.normalizeY(x.position.y+(x.size.height-x.parameters.get(g.ArrowVerticalLineHeightParameterName).value)/2)))]},v.prototype.processConnectionPoint=function(x,b){var y=x.parameters.get(g.ArrowVerticalTriangleWidthParameterName).value;if(b.x<x.position.x+y){var S=x.size.height/2/y*(x.position.x+y-b.x),O=x.getConnectionPointSide(b);O===l.ConnectionPointSide.North?b.y+=S:O===l.ConnectionPointSide.South&&(b.y-=S)}else h.prototype.processConnectionPoint.call(this,x,b)},v}(g.ArrowHorizontalShapeDescription);u.ArrowLeftShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.MultipleDocumentsShapeDescription=void 0;var C=o(1),g=o(5),a=o(125),p=o(56),s=o(17),l=o(7),d=o(2),h=function(v){function x(){return null!==v&&v.apply(this,arguments)||this}return I(x,v),Object.defineProperty(x.prototype,"key",{get:function(){return C.ShapeTypes.MultipleDocuments},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),x.prototype.createShapePrimitives=function(b,y){var E=b.rectangle,S=b.rectangle,w=S.height,T=y?x.documentsOffsetRatioForToolbox:x.documentsOffsetRatio,k=Math.ceil(S.width*T),R=Math.ceil(w*T),P=(E=E.clone().inflate(-k,-R).clone().moveRectangle(-k,-R)).clone().moveRectangle(k,R),B=P.clone().moveRectangle(k,R),W=s.RenderUtils.generateSvgElementId("clipRect");return[].concat(this.createDocumentPrimitives(E,b.style,W+"1",P)).concat(this.createDocumentPrimitives(P,b.style,W+"2",B)).concat(this.createDocumentPrimitives(B,b.style))},x.prototype.createDocumentPrimitives=function(b,y,E,S){var O=b.x,w=b.y,T=b.right,k=b.bottom,R=b.width,B=b.center.x,W=b.height*a.DocumentShapeDescription.curveOffsetRatio,z=[];return z=z.concat([new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O,w),new g.PathPrimitiveLineToCommand(T,w),new g.PathPrimitiveLineToCommand(T,k),new g.PathPrimitiveQuadraticCurveToCommand(T-.25*R,k-2*W,B,k-W),new g.PathPrimitiveQuadraticCurveToCommand(O+.25*R,k+W,O,k-W),new g.PathPrimitiveClosePathCommand],y,void 0,S&&E)]),S&&E&&(z=z.concat([new p.ClipPathPrimitive(E,[new g.PathPrimitive([new g.PathPrimitiveMoveToCommand(O-y.strokeWidth,w-y.strokeWidth),new g.PathPrimitiveLineToCommand(T+y.strokeWidth,w-y.strokeWidth),new g.PathPrimitiveLineToCommand(T+y.strokeWidth,S.y),new g.PathPrimitiveLineToCommand(S.x,S.y),new g.PathPrimitiveLineToCommand(S.x,k+y.strokeWidth),new g.PathPrimitiveLineToCommand(O-y.strokeWidth,k+y.strokeWidth),new g.PathPrimitiveClosePathCommand])])])),z},x.prototype.getTextRectangle=function(b){var y=b.rectangle,E=y.width*x.documentsOffsetRatio,S=y.height*x.documentsOffsetRatio;return(y=y.clone().inflate(-E,-S).clone().moveRectangle(-E,-S)).clone().moveRectangle(2*E+l.ShapeTextPadding,2*S+l.ShapeTextPadding).clone().resize(-2*l.ShapeTextPadding,-y.height*a.DocumentShapeDescription.curveOffsetRatio-2*l.ShapeTextPadding)},x.prototype.getSizeByText=function(b,y){return new d.Size((b.width+2*l.ShapeTextPadding)/(1-2*x.documentsOffsetRatio),(b.height+2*l.ShapeTextPadding)/((1-a.DocumentShapeDescription.curveOffsetRatio)*(1-x.documentsOffsetRatio))).nonNegativeSize()},x.documentsOffsetRatio=.1,x.documentsOffsetRatioForToolbox=.16,x}(a.DocumentShapeDescription);u.MultipleDocumentsShapeDescription=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.PreparationShapeDescription=void 0;var C=o(1),g=o(2),a=o(7),p=function(s){function l(){var d=s.call(this,!0)||this;return d.defaultSize=new g.Size(a.ShapeDefaultDimension,.75*a.ShapeDefaultDimension),d}return I(l,s),Object.defineProperty(l.prototype,"key",{get:function(){return C.ShapeTypes.Preparation},enumerable:!1,configurable:!0}),l}(o(123).HexagonShapeDescription);u.PreparationShapeDescription=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.HardDiskShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(55),s=o(7),l=o(2),d=function(h){function v(){return h.call(this,void 0,!0)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.HardDisk},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,T=b.center.y,k=b.width*v.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(S-k/2,E),new a.PathPrimitiveLineToCommand(y+k/2,E),new a.PathPrimitiveArcToCommand(k/2,(O-E)/2,0,!1,!1,y+k/2,O),new a.PathPrimitiveLineToCommand(S-k/2,O)],x.style),new p.EllipsePrimitive(S-k/2,T,k/2,(O-E)/2,x.style)]},v.prototype.getTextRectangle=function(x){var b=x.rectangle,y=b.width*v.arcWidthRatio*1.5;return b.clone().resize(-y-2*s.ShapeTextPadding,-2*s.ShapeTextPadding).moveRectangle(s.ShapeTextPadding,s.ShapeTextPadding).nonNegativeSize()},v.prototype.getSizeByText=function(x,b){return new l.Size((x.width+2*s.ShapeTextPadding)/(1-1.5*v.arcWidthRatio),b.size.height+s.ShapeTextPadding)},v.arcWidthRatio=.2,v}(C.RectangleShapeDescription);u.HardDiskShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.DatabaseShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(55),s=function(l){function d(){var h=l.call(this,void 0,!0)||this;return h.defaultSize.width=h.defaultSize.height,h}return I(d,l),Object.defineProperty(d.prototype,"key",{get:function(){return g.ShapeTypes.Database},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){var v=h.rectangle,x=v.x,b=v.y,y=v.right,E=v.bottom,O=v.center.x,w=v.height*d.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,b+w/2),new a.PathPrimitiveLineToCommand(y,E-w/2),new a.PathPrimitiveArcToCommand((y-x)/2,w/2,0,!1,!0,x,E-w/2),new a.PathPrimitiveLineToCommand(x,b+w/2)],h.style),new p.EllipsePrimitive(O,b+w/2,(y-x)/2,w/2,h.style)]},d.prototype.getTextRectangle=function(h){var v=h.rectangle,x=v.height*d.arcWidthRatio;return v.clone().resize(0,-x).clone().moveRectangle(0,x)},d.arcWidthRatio=.2,d}(C.RectangleShapeDescription);u.DatabaseShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.InternalStorageShapeDescription=u.InternalStorageVerticalEdgeParameterName=u.InternalStorageHorizontalEdgeParameterName=void 0;var C=o(19),g=o(1),a=o(37),p=o(30),s=o(0),l=o(5);u.InternalStorageHorizontalEdgeParameterName="he",u.InternalStorageVerticalEdgeParameterName="ve";var d=function(h){function v(){return h.call(this,void 0,!0)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.InternalStorage},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=y+x.parameters.get(u.InternalStorageHorizontalEdgeParameterName).value,T=E+x.parameters.get(u.InternalStorageVerticalEdgeParameterName).value;return h.prototype.createShapePrimitives.call(this,x).concat([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(w,E),new l.PathPrimitiveLineToCommand(w,O),new l.PathPrimitiveMoveToCommand(y,T),new l.PathPrimitiveLineToCommand(S,T)],x.style)])},v.prototype.createParameters=function(x){x.addRange([new a.ShapeParameter(u.InternalStorageHorizontalEdgeParameterName,.1*this.defaultSize.width),new a.ShapeParameter(u.InternalStorageVerticalEdgeParameterName,.1*this.defaultSize.width)])},v.prototype.normalizeParameters=function(x,b){this.changeParameterValue(b,u.InternalStorageHorizontalEdgeParameterName,function(y){return Math.max(v.minEdge,Math.min(.3*x.size.width,y.value))}),this.changeParameterValue(b,u.InternalStorageVerticalEdgeParameterName,function(y){return Math.max(v.minEdge,Math.min(.3*x.size.height,y.value))})},v.prototype.modifyParameters=function(x,b,y,E){this.changeParameterValue(b,u.InternalStorageHorizontalEdgeParameterName,function(S){return S.value+y}),this.changeParameterValue(b,u.InternalStorageVerticalEdgeParameterName,function(S){return S.value+E}),this.normalizeParameters(x,b)},v.prototype.getParameterPoints=function(x){return[new p.ShapeParameterPoint("c",new s.Point(x.normalizeX(x.position.x+x.parameters.get(u.InternalStorageHorizontalEdgeParameterName).value),x.normalizeY(x.position.y+x.parameters.get(u.InternalStorageVerticalEdgeParameterName).value)))]},v.prototype.getTextRectangle=function(x){var b=x.rectangle,y=x.parameters.get(u.InternalStorageHorizontalEdgeParameterName).value;return b.clone().resize(-y,0).clone().moveRectangle(y,0)},v.minEdge=72,v}(C.RectangleShapeDescription);u.InternalStorageShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.PaperTapeShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(9),s=o(7),l=o(2),d=function(h){function v(){return h.call(this,void 0,!0)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.PaperTape},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){return this.createDocumentPrimitives(x.rectangle,x.style)},v.prototype.createDocumentPrimitives=function(x,b){var y=x.x,E=x.y,S=x.right,O=x.bottom,w=x.width,k=x.center.x,R=x.height*v.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,E),new a.PathPrimitiveQuadraticCurveToCommand(y+.25*w,E+2*R,k,E+R),new a.PathPrimitiveQuadraticCurveToCommand(S-.25*w,E-R,S,E+R),new a.PathPrimitiveLineToCommand(S,O),new a.PathPrimitiveQuadraticCurveToCommand(S-.25*w,O-2*R,k,O-R),new a.PathPrimitiveQuadraticCurveToCommand(y+.25*w,O+R,y,O-R),new a.PathPrimitiveClosePathCommand],b)])},v.prototype.processConnectionPoint=function(x,b){var y=x.getConnectionPointSide(b);y===p.ConnectionPointSide.North&&(b.y+=x.size.height*v.curveOffsetRatio),y===p.ConnectionPointSide.South&&(b.y-=x.size.height*v.curveOffsetRatio)},v.prototype.getTextRectangle=function(x){var b=x.rectangle;return b.clone().inflate(s.ShapeTextPadding,-b.height*v.curveOffsetRatio)},v.prototype.getSizeByText=function(x,b){return new l.Size(x.width+2*s.ShapeTextPadding,x.height/(1-2*v.curveOffsetRatio))},v.curveOffsetRatio=.1,v}(C.RectangleShapeDescription);u.PaperTapeShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ManualOperationShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(9),s=o(7),l=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return g.ShapeTypes.ManualOperation},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=v.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.width,k=Math.min(Math.max(0,b.height/Math.tan(h.slopeAngle)),w),R=x.center.x,P=Math.min(y+k,R),B=Math.max(S-k,R);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,E),new a.PathPrimitiveLineToCommand(S,E),new a.PathPrimitiveLineToCommand(B,O),new a.PathPrimitiveLineToCommand(P,O),new a.PathPrimitiveClosePathCommand],v.style)]},h.prototype.processConnectionPoint=function(v,x){var b=v.size.height/Math.tan(h.slopeAngle),y=v.getConnectionPointSide(x);y===p.ConnectionPointSide.East?x.x-=b/2:y===p.ConnectionPointSide.West&&(x.x+=b/2)},h.prototype.getTextRectangle=function(v){var x=Math.min(Math.max(0,v.size.height/Math.tan(h.slopeAngle)),v.size.width);return v.rectangle.clone().moveRectangle(x,s.ShapeTextPadding).resize(2*-x,2*-s.ShapeTextPadding).nonNegativeSize()},h.slopeAngle=81*Math.PI/180,h}(C.RectangleShapeDescription);u.ManualOperationShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.DelayShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(3),s=o(7),l=o(2),d=function(h){function v(){var x=h.call(this,void 0,!0)||this;return x.defaultSize.width=x.defaultSize.height,x}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.Delay},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,y=b.x,E=b.y,S=b.right,O=b.bottom,w=b.center.x;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y,E),new a.PathPrimitiveLineToCommand(w,E),new a.PathPrimitiveArcToCommand((S-y)/2,(O-E)/2,0,!1,!0,w,O),new a.PathPrimitiveLineToCommand(y,O),new a.PathPrimitiveClosePathCommand],x.style)]},v.prototype.getTextRectangle=function(x){var b=p.GeometryUtils.getMaxRectangleEnscribedInEllipse(x.size);return x.rectangle.clone().moveRectangle(s.ShapeTextPadding,s.ShapeTextPadding).setSize({width:b.width/2+x.size.width/2-s.ShapeTextPadding,height:b.height/2+x.size.height/2-s.ShapeTextPadding}).nonNegativeSize()},v.prototype.getSizeByText=function(x,b){var y=p.GeometryUtils.getEllipseByEnscribedRectangle(x);return new l.Size(y.width/2+x.width/2+s.ShapeTextPadding,y.height/2+x.height/2+s.ShapeTextPadding)},v.arcWidthRatio=.2,v}(C.RectangleShapeDescription);u.DelayShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.StoredDataShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(7),s=o(2),l=function(d){function h(){return d.call(this,void 0,!0)||this}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return g.ShapeTypes.StoredData},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.width*h.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(E,y),new a.PathPrimitiveLineToCommand(b+O/2,y),new a.PathPrimitiveArcToCommand(O/2,(S-y)/2,0,!1,!1,b+O/2,S),new a.PathPrimitiveLineToCommand(E,S),new a.PathPrimitiveArcToCommand(O/2,(S-y)/2,0,!1,!0,E,y)],v.style)]},h.prototype.getTextRectangle=function(v){var x=v.rectangle,b=x.width*h.arcWidthRatio/2;return x.clone().resize(-b-2*p.ShapeTextPadding,-2*p.ShapeTextPadding).moveRectangle(p.ShapeTextPadding,p.ShapeTextPadding).nonNegativeSize()},h.prototype.getSizeByText=function(v,x){return new s.Size((v.width+2*p.ShapeTextPadding)/(1-h.arcWidthRatio/2),v.height+2*p.ShapeTextPadding)},h.arcWidthRatio=.2,h}(C.RectangleShapeDescription);u.StoredDataShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.MergeShapeDescription=void 0;var C=o(1),g=o(13),a=o(124),p=o(5),s=o(7),l=o(2),d=function(h){function v(){return h.call(this,!0)||this}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return C.ShapeTypes.Merge},enumerable:!1,configurable:!0}),v.prototype.createShapePrimitives=function(x){var b=x.rectangle,E=b.y,S=b.right,O=b.bottom;return[new p.PathPrimitive([new p.PathPrimitiveMoveToCommand(b.x,E),new p.PathPrimitiveLineToCommand(S,E),new p.PathPrimitiveLineToCommand(b.center.x,O),new p.PathPrimitiveClosePathCommand],x.style)]},v.prototype.calculateHeight=function(x){return.75*x},v.prototype.getTextRectangle=function(x){return g.Rectangle.fromGeometry(x.position.clone().offset(x.size.width/4,s.ShapeTextPadding),new l.Size(x.size.width/2,x.size.height/2-s.ShapeTextPadding))},v.prototype.getSizeByText=function(x,b){return new l.Size(2*x.width,2*(x.height+s.ShapeTextPadding))},v}(a.TriangleShapeDescription);u.MergeShapeDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.DisplayShapeDescription=void 0;var C=o(19),g=o(1),a=o(5),p=o(7),s=function(l){function d(){return l.call(this,void 0,!0)||this}return I(d,l),Object.defineProperty(d.prototype,"key",{get:function(){return g.ShapeTypes.Display},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"keepRatioOnAutoSize",{get:function(){return!1},enumerable:!1,configurable:!0}),d.prototype.createShapePrimitives=function(h){var v=h.rectangle,x=v.x,b=v.y,y=v.right,E=v.bottom,O=v.center.y,w=v.width*d.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(y-w/2,b),new a.PathPrimitiveLineToCommand(x+w/2,b),new a.PathPrimitiveLineToCommand(x,O),new a.PathPrimitiveLineToCommand(x+w/2,E),new a.PathPrimitiveLineToCommand(y-w/2,E),new a.PathPrimitiveArcToCommand(w/2,(E-b)/2,0,!1,!1,y-w/2,b)],h.style)]},d.prototype.getTextRectangle=function(h){var v=h.size.width*d.arcWidthRatio;return h.rectangle.clone().moveRectangle(v/2,p.ShapeTextPadding).resize(-v,2*-p.ShapeTextPadding).nonNegativeSize()},d.arcWidthRatio=.2,d}(C.RectangleShapeDescription);u.DisplayShapeDescription=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.OrShapeDescription=void 0;var C=o(1),g=o(2),a=o(7),p=o(72),s=o(5),l=function(d){function h(){var v=d.call(this,!0)||this;return v.defaultSize=new g.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),v}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return C.ShapeTypes.Or},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,b=x.x,y=x.y,E=x.right,S=x.bottom,O=x.center,w=O.x,T=O.y;return[].concat(d.prototype.createShapePrimitives.call(this,v)).concat([new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(w,y),new s.PathPrimitiveLineToCommand(w,S),new s.PathPrimitiveMoveToCommand(b,T),new s.PathPrimitiveLineToCommand(E,T)],v.style)])},h}(p.EllipseShapeDescription);u.OrShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.SummingJunctionShapeDescription=void 0;var C=o(1),g=o(2),a=o(7),p=o(72),s=o(5),l=function(d){function h(){var v=d.call(this,!0)||this;return v.defaultSize=new g.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),v}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return C.ShapeTypes.SummingJunction},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"enableText",{get:function(){return!1},enumerable:!1,configurable:!0}),h.prototype.createShapePrimitives=function(v){var x=v.rectangle,E=x.center,S=E.x,O=E.y,w=x.width/2,T=x.height/2,k=Math.atan(T/w),R=1/Math.sqrt(1/Math.pow(w,2)+Math.pow(Math.tan(k),2)/Math.pow(T,2)),P=R*Math.tan(k);return[].concat(d.prototype.createShapePrimitives.call(this,v)).concat([new s.PathPrimitive([new s.PathPrimitiveMoveToCommand(S-R,O-P),new s.PathPrimitiveLineToCommand(S+R,O+P),new s.PathPrimitiveMoveToCommand(S-R,O+P),new s.PathPrimitiveLineToCommand(S+R,O-P)],v.style)])},h}(p.EllipseShapeDescription);u.SummingJunctionShapeDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.SvgElementPrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x,b,y,E){var S=a.call(this,null,y,void 0,E)||this;return S.x=s,S.y=l,S.width=d,S.height=h,S.createContent=v,S.destroyContent=x,S.data=b,S}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"svg")},p.prototype.applyElementProperties=function(s,l){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,l)},p.prototype.createCustomContent=function(s){this.createContent&&this.createContent(s,this.data)},p.prototype.destroyCustomContent=function(s){this.destroyContent&&this.destroyContent(s)},p}(o(24).SvgPrimitive);u.SvgElementPrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.VerticalContainerDescription=void 0;var C=o(0),g=o(2),a=o(21),p=o(13),s=o(1),l=o(7),d=o(131),h=function(v){function x(){return v.call(this,new g.Size(2*l.ShapeDefaultDimension,1.5*l.ShapeDefaultDimension))||this}return I(x,v),Object.defineProperty(x.prototype,"key",{get:function(){return s.ShapeTypes.VerticalContainer},enumerable:!1,configurable:!0}),x.prototype.getExpandedSize=function(b){return new g.Size(b.size.width,b.expandedSize.height)},x.prototype.getCollapsedSize=function(b){return new g.Size(b.size.width,d.CONTAINER_HEADER_SIZE+2*b.strokeWidth)},x.prototype.allowResizeVertically=function(b){return b.expanded},x.prototype.createHeaderPrimitives=function(b,y){var E=b.rectangle,S=E.x,O=E.y,w=E.width,T=this.getHeaderSize(b,y),k=[];return k=k.concat([new a.RectanglePrimitive(S,O,w,T,b.style)]),y||(k=k.concat(this.createExpandButtonPrimitives(b,new p.Rectangle(S,O,T,T)))),k},x.prototype.getClientRectangle=function(b){var y=b.rectangle,E=this.getHeaderSize(b);return p.Rectangle.fromGeometry(new C.Point(y.x,y.y+E),new g.Size(y.width,y.height-E))},x.prototype.getTextRectangle=function(b){var y=b.rectangle,E=this.getHeaderSize(b);return p.Rectangle.fromGeometry(new C.Point(y.x+E,y.y),new g.Size(y.width-E,E))},x.prototype.getSizeByText=function(b,y){var E=this.getHeaderSize(y);return new g.Size(Math.max(y.size.width,b.width+E),y.size.height)},x.prototype.getHeaderSize=function(b,y){return y?b.rectangle.height*d.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:d.CONTAINER_HEADER_SIZE+2*b.strokeWidth},x}(d.ContainerDescription);u.VerticalContainerDescription=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(x,b){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(y,E){y.__proto__=E}||function(y,E){for(var S in E)E.hasOwnProperty(S)&&(y[S]=E[S])})(x,b)},function(x,b){function y(){this.constructor=x}c(x,b),x.prototype=null===b?Object.create(b):(y.prototype=b.prototype,new y)});Object.defineProperty(u,"__esModule",{value:!0}),u.HorizontalContainerDescription=void 0;var C=o(7),g=o(13),a=o(2),p=o(0),s=o(1),l=o(131),d=o(21),h=o(63),v=function(x){function b(){return x.call(this,new a.Size(2*C.ShapeDefaultDimension,1.5*C.ShapeDefaultDimension))||this}return I(b,x),Object.defineProperty(b.prototype,"key",{get:function(){return s.ShapeTypes.HorizontalContainer},enumerable:!1,configurable:!0}),b.prototype.getExpandedSize=function(y){return new a.Size(y.expandedSize.width,y.size.height)},b.prototype.getCollapsedSize=function(y){return new a.Size(l.CONTAINER_HEADER_SIZE+2*y.strokeWidth,y.size.height)},b.prototype.allowResizeHorizontally=function(y){return y.expanded},b.prototype.createHeaderPrimitives=function(y,E){var S=y.rectangle,O=S.x,w=S.y,T=S.height,k=this.getHeaderSize(y,E),R=[];return R=R.concat([new d.RectanglePrimitive(O,w,k,T,y.style)]),E||(R=R.concat(this.createExpandButtonPrimitives(y,new g.Rectangle(O,w,k,k)))),R},b.prototype.getClientRectangle=function(y){var E=y.rectangle,S=this.getHeaderSize(y);return g.Rectangle.fromGeometry(new p.Point(E.x+S,E.y),new a.Size(E.width-S,E.height))},b.prototype.getTextRectangle=function(y){var E=y.rectangle,S=this.getHeaderSize(y);return g.Rectangle.fromGeometry(new p.Point(E.x,E.y+S),new a.Size(S,E.height-S)).nonNegativeSize()},b.prototype.getSizeByText=function(y,E){var S=this.getHeaderSize(E);return new a.Size(E.size.width,Math.max(E.size.height,Math.max(y.width+S,E.size.height)))},b.prototype.getTextEditRectangle=function(y){var E=this.getTextRectangle(y);return g.Rectangle.fromGeometry(new p.Point(E.x,E.y+E.height),new a.Size(E.height,E.width))},b.prototype.getTextAngle=function(){return h.TextAngle.Angle270deg},b.prototype.getHeaderSize=function(y,E){return E?y.rectangle.height*l.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:l.CONTAINER_HEADER_SIZE+2*y.strokeWidth},b}(l.ContainerDescription);u.HorizontalContainerDescription=v},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.CardWithImageOnTopDescription=void 0;var C=o(7),g=o(2),a=o(1),p=o(132),s=o(12),l=function(d){function h(){var v=d.call(this,new g.Size(.8*C.ShapeDefaultDimension,C.ShapeDefaultDimension))||this;return v.isTextAfterImage=!0,v.isHorizontal=!1,v}return I(h,d),Object.defineProperty(h.prototype,"key",{get:function(){return a.ShapeTypes.CardWithImageOnTop},enumerable:!1,configurable:!0}),h.prototype.getImageSize=function(v,x,b){var y=v.width/2;s.UnitConverter.twipsToPixels(y)%2==1&&(y-=s.UnitConverter.pixelsToTwips(1));var E=Math.max(0,v.height-(x?0:2*this.getImageMargin(b)));return E=Math.min(y,E),new g.Size(E,E)},h.prototype.getImageSizeByTextBlockSize=function(v){return this.getImageSize(new g.Size(v.width,Number.MAX_VALUE),!0)},h}(p.CardBaseDescription);u.CardWithImageOnTopDescription=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.RoundedRectanglePrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x,b,y,E,S){void 0===v&&(v=0),void 0===x&&(x=0);var O=a.call(this,s,l,d,h,b,y,E,S)||this;return O.x=s,O.y=l,O.width=d,O.height=h,O.rx=v,O.ry=x,O}return I(p,a),p.prototype.createMainElement=function(){return document.createElementNS(C.svgNS,"rect")},p.prototype.applyElementProperties=function(s,l){this.setUnitAttribute(s,"rx",this.rx),this.setUnitAttribute(s,"ry",this.ry),a.prototype.applyElementProperties.call(this,s,l)},p}(o(21).RectanglePrimitive);u.RoundedRectanglePrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorShapeDescription=void 0;var C=o(1),g=o(2),a=o(7),p=function(s){function l(){var d=s.call(this,!1)||this;return d.defaultSize=new g.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),d}return I(l,s),Object.defineProperty(l.prototype,"key",{get:function(){return C.ShapeTypes.Connector},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"keepRatioOnAutoSize",{get:function(){return!0},enumerable:!1,configurable:!0}),l}(o(72).EllipseShapeDescription);u.ConnectorShapeDescription=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.CardWithImageOnRightDescription=u.CardWithImageOnLeftDescription=void 0;var C=o(7),g=o(1),a=o(132),p=o(2),s=function(h){function v(){var x=h.call(this,new p.Size(1.5*C.ShapeDefaultDimension,.5*C.ShapeDefaultDimension))||this;return x.isHorizontal=!0,x}return I(v,h),v.prototype.getToolboxHeightToWidthRatio=function(x,b){return 26/46},v.prototype.getImageSize=function(x,b,y){var E=Math.min(x.height,x.width);return b||(E=Math.max(0,E-2*this.getImageMargin(y))),new p.Size(E,E)},v.prototype.getImageSizeByTextBlockSize=function(x){return this.getImageSize(new p.Size(Number.MAX_VALUE,x.height),!0)},v}(a.CardBaseDescription),l=function(h){function v(){var x=null!==h&&h.apply(this,arguments)||this;return x.isTextAfterImage=!0,x}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.CardWithImageOnLeft},enumerable:!1,configurable:!0}),v}(s);u.CardWithImageOnLeftDescription=l;var d=function(h){function v(){var x=null!==h&&h.apply(this,arguments)||this;return x.isTextAfterImage=!1,x}return I(v,h),Object.defineProperty(v.prototype,"key",{get:function(){return g.ShapeTypes.CardWithImageOnRight},enumerable:!1,configurable:!0}),v}(s);u.CardWithImageOnRightDescription=d},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportCommand=void 0;var C=o(73),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,l){return l((new C.Exporter).export(this.control.model)),!0},p}(o(57).ExportImportCommandBase);u.ExportCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleFontBoldCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"font-weight"},a.prototype.getStylePropertyValue=function(){return"bold"},a}(o(74).ToggleStyleTextPropertyCommand);u.ToggleFontBoldCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleFontItalicCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"font-style"},a.prototype.getStylePropertyValue=function(){return"italic"},a}(o(74).ToggleStyleTextPropertyCommand);u.ToggleFontItalicCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleFontUnderlineCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"text-decoration"},a.prototype.getStylePropertyValue=function(){return"underline"},a}(o(74).ToggleStyleTextPropertyCommand);u.ToggleFontUnderlineCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeFontNameCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"font-family"},a}(o(96).ChangeStyleTextPropertyCommand);u.ChangeFontNameCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeFontSizeCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"font-size"},a}(o(96).ChangeStyleTextPropertyCommand);u.ChangeFontSizeCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeFontColorCommand=void 0;var C=o(96),g=o(22),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.processParameter=function(l){return g.ColorUtils.stringToHash(l)},s.prototype.getStyleProperty=function(){return"fill"},s}(C.ChangeStyleTextPropertyCommand);u.ChangeFontColorCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeFillColorCommand=void 0;var C=o(75),g=o(22),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.processParameter=function(l){return g.ColorUtils.stringToHash(l)},s.prototype.getStyleProperty=function(){return"fill"},s}(C.ChangeStylePropertyCommand);u.ChangeFillColorCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStrokeColorCommand=void 0;var C=o(75),g=o(22),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.processParameter=function(l){return g.ColorUtils.stringToHash(l)},s.prototype.getStyleProperty=function(){return"stroke"},s}(C.ChangeStylePropertyCommand);u.ChangeStrokeColorCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.TextRightAlignCommand=u.TextCenterAlignCommand=u.TextLeftAlignCommand=u.ChangeTextAlignCommand=void 0;var C=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getStyleProperty=function(){return"text-anchor"},l}(o(74).ToggleStyleTextPropertyCommand);u.ChangeTextAlignCommand=C;var g=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getStylePropertyValue=function(){return"start"},l}(C);u.TextLeftAlignCommand=g;var a=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getStylePropertyValue=function(){return"middle"},l}(C);u.TextCenterAlignCommand=a;var p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getStylePropertyValue=function(){return"end"},l}(C);u.TextRightAlignCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorEndLineEndingCommand=u.ChangeConnectorStartLineEndingCommand=void 0;var C=o(136),g=o(32),a=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getPropertyName=function(){return"startLineEnding"},l.prototype.getPropertyDefaultValue=function(){return g.ConnectorLineEnding.None},l}(C.ChangeConnectorPropertyCommand);u.ChangeConnectorStartLineEndingCommand=a;var p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return I(l,s),l.prototype.getPropertyName=function(){return"endLineEnding"},l.prototype.getPropertyDefaultValue=function(){return g.ConnectorLineEnding.Arrow},l}(C.ChangeConnectorPropertyCommand);u.ChangeConnectorEndLineEndingCommand=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorLineOptionCommand=void 0;var C=o(136),g=o(32),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getPropertyName=function(){return"lineOption"},s.prototype.getPropertyDefaultValue=function(){return g.ConnectorLineOption.Straight},s}(C.ChangeConnectorPropertyCommand);u.ChangeConnectorLineOptionCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.SelectAllCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.executeCore=function(p,s){var l=[];return this.control.model.iterateItems(function(d){return l.push(d.key)}),this.control.selection.set(l),!0},a}(o(10).SimpleCommandBase);u.SelectAllCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ScrollIntoViewOnUndoHistoryItem=u.ScrollIntoViewOnRedoHistoryItem=void 0;var C=o(8),g=function(p){function s(l,d){var h=p.call(this)||this;return h.view=l,h.rectangle=d,h.view=l,h.rectangle=d.clone(),h}return I(s,p),s.prototype.redo=function(l){this.view.scrollIntoView(this.rectangle)},s.prototype.undo=function(l){},s}(C.HistoryItem);u.ScrollIntoViewOnRedoHistoryItem=g;var a=function(p){function s(l,d){var h=p.call(this)||this;return h.view=l,h.rectangle=d,h.view=l,h.rectangle=d.clone(),h}return I(s,p),s.prototype.redo=function(l){},s.prototype.undo=function(l){this.view.scrollIntoView(this.rectangle)},s}(C.HistoryItem);u.ScrollIntoViewOnUndoHistoryItem=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Tree=void 0;var c=o(38),I=function(){function C(g,a){var p=this;this.childToParent={},this.root=g,this.parentToChildren=a;var s=function(d){if(!Object.prototype.hasOwnProperty.call(a,d))return"continue";a[d].forEach(function(h){return p.childToParent[h.key]=d})};for(var l in a)s(l)}return C.prototype.getChildren=function(g){return g&&this.parentToChildren[g.key]?this.parentToChildren[g.key]:[]},C.prototype.hasChildren=function(g){return this.parentToChildren[g.key]&&this.parentToChildren[g.key].length>0},C.prototype.iterate=function(g){this.iterateCore(this.root,0,g)},C.createSpanningTree=function(g){var a=C.findRoot(g),p=g.createIterator(c.ConnectionMode.Outgoing),s={};return p.skipEdge=function(l){return void 0===l.to||p.isNodeVisited(l.to)},p.onNode=function(l){return s[l.key]=[]},p.onEdge=function(l){var d=g.getNode(l.to);d&&s[l.from].push(d)},p.iterate(a),new C(g.getNode(a),s)},C.prototype.iterateCore=function(g,a,p){var s=this;p(g,a),this.getChildren(g).forEach(function(l){return s.iterateCore(l,a+1,p)})},C.findRoot=function(g){return g.nodes.reduce(function(a,p){var s=g.getAdjacentEdges(p),l=s.filter(function(h){return h.to===p}).length,d=s.filter(function(h){return h.from===p}).length;return(void 0===a.candidate||0===l&&a.inc>0||0!==a.inc&&a.out-a.inc<d-l)&&(a.candidate=p,a.inc=l,a.out=d),a},{inc:-1,out:-1,candidate:void 0}).candidate},C}();u.Tree=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeSnapToGridCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.executeCore=function(p,s){var l=void 0===s?!this.control.settings.snapToGrid:!!s;return this.control.settings.snapToGrid!==l&&(this.control.settings.snapToGrid=l,!0)},a.prototype.getValue=function(){return this.control.settings.snapToGrid},a}(o(10).SimpleCommandBase);u.ChangeSnapToGridCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeGridSizeItemsCommand=u.ChangeGridSizeCommand=void 0;var C=o(10),g=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.isEnabledInReadOnlyMode=function(){return!0},s.prototype.getValue=function(){return this.getModelUnit(this.control.settings.gridSize)},s.prototype.executeCore=function(l,d){return this.control.settings.gridSize=this.getModelUnitTwipsValue(d),!0},s.prototype.getItems=function(){var l=this;return this.control.settings.gridSizeItems.map(function(d){return{value:l.getModelUnit(d),text:l.getViewUnitText(d)}})},s}(C.SimpleCommandBase);u.ChangeGridSizeCommand=g;var a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.isEnabledInReadOnlyMode=function(){return!0},s.prototype.getValue=function(){var l=this;return this.control.settings.gridSizeItems.map(function(d){return l.getModelUnit(d)})},s.prototype.executeCore=function(l,d){var h=this;return this.control.settings.gridSizeItems=d.map(function(v){return h.getModelUnitTwipsValue(v)}),!0},s}(C.SimpleCommandBase);u.ChangeGridSizeItemsCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePageLandscapeCommand=void 0;var C=o(77),g=o(256),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getValue=function(){return this.control.model.pageLandscape},s.prototype.createHistoryItems=function(l){return[new g.ChangePageLandscapeHistoryItem(l)]},s}(C.ChangePagePropertyCommand);u.ChangePageLandscapeCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePageLandscapeHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.value=p,s}return I(a,g),a.prototype.redo=function(p){this.oldValue=p.model.pageLandscape,p.changePageLandscape(this.value)},a.prototype.undo=function(p){p.changePageLandscape(this.oldValue)},a}(o(8).HistoryItem);u.ChangePageLandscapeHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePageSizeItemsCommand=u.ChangePageSizeCommand=void 0;var C=o(77),g=o(2),a=o(258),p=o(10),s=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getValue=function(){return this.getModelUnitSize(this.control.model.pageSize)},h.prototype.createHistoryItems=function(v){return[new a.ChangePageSizeHistoryItem(new g.Size(this.getModelUnitTwipsValue(v.width),this.getModelUnitTwipsValue(v.height)))]},h.prototype.getItems=function(){var v=this;return this.control.settings.pageSizeItems.map(function(x){return{value:v.getModelUnitSize(x.size),text:x.text.replace("{width}",v.getViewUnitText(x.size.width)).replace("{height}",v.getViewUnitText(x.size.height))}})},h.prototype.getModelUnitSize=function(v){return new g.Size(this.getModelUnit(v.width),this.getModelUnit(v.height))},h}(C.ChangePagePropertyCommand);u.ChangePageSizeCommand=s;var l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabled=function(){return!0},h.prototype.getValue=function(){var v=this;return this.control.settings.pageSizeItems.map(function(x){return{size:new g.Size(v.getModelUnit(x.width),v.getModelUnit(x.height)),text:x.text}})},h.prototype.executeCore=function(v,x){var b=this;return this.control.settings.pageSizeItems=x.map(function(y){return{size:new g.Size(b.getModelUnitTwipsValue(y.width),b.getModelUnitTwipsValue(y.height)),text:y.text}}),!0},h}(p.SimpleCommandBase);u.ChangePageSizeItemsCommand=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePageSizeHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.size=p,s}return I(a,g),a.prototype.redo=function(p){this.oldSize=p.model.pageSize,p.changePageSize(this.size)},a.prototype.undo=function(p){p.changePageSize(this.oldSize)},a}(o(8).HistoryItem);u.ChangePageSizeHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportPngCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getExtension=function(){return"png"},a.prototype.getExportFunc=function(){return this.exporter.exportPng},a}(o(98).ExportImageCommand);u.ExportPngCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)}),C=this&&this.__awaiter||function(b,y,E,S){return new(E||(E=Promise))(function(O,w){function T(P){try{R(S.next(P))}catch(B){w(B)}}function k(P){try{R(S.throw(P))}catch(B){w(B)}}function R(P){var B;P.done?O(P.value):(B=P.value,B instanceof E?B:new E(function(W){W(B)})).then(T,k)}R((S=S.apply(b,y||[])).next())})},g=this&&this.__generator||function(b,y){var E,S,O,w,T={label:0,sent:function(){if(1&O[0])throw O[1];return O[1]},trys:[],ops:[]};return w={next:k(0),throw:k(1),return:k(2)},"function"==typeof Symbol&&(w[Symbol.iterator]=function(){return this}),w;function k(R){return function(P){return function(B){if(E)throw new TypeError("Generator is already executing.");for(;T;)try{if(E=1,S&&(O=2&B[0]?S.return:B[0]?S.throw||((O=S.return)&&O.call(S),0):S.next)&&!(O=O.call(S,B[1])).done)return O;switch(S=0,O&&(B=[2&B[0],O.value]),B[0]){case 0:case 1:O=B;break;case 4:return T.label++,{value:B[1],done:!1};case 5:T.label++,S=B[1],B=[0];continue;case 7:B=T.ops.pop(),T.trys.pop();continue;default:if(!(O=(O=T.trys).length>0&&O[O.length-1])&&(6===B[0]||2===B[0])){T=0;continue}if(3===B[0]&&(!O||B[1]>O[0]&&B[1]<O[3])){T.label=B[1];break}if(6===B[0]&&T.label<O[1]){T.label=O[1],O=B;break}if(O&&T.label<O[2]){T.label=O[2],T.ops.push(B);break}O[2]&&T.ops.pop(),T.trys.pop();continue}B=y.call(b,T)}catch(W){B=[6,W],S=0}finally{E=O=0}if(5&B[0])throw B[1];return{value:B[0]?B[1]:void 0,done:!0}}([R,P])}}};Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasExportManager=void 0;var a=o(12),p=o(18),s=o(17),l=o(42),d=o(15),h=o(100),v=o(22),x=function(b){function y(E,S){var O=b.call(this,1,new h.ExportDOMManipulator(S))||this;return O.itemsContainer=E,O}return I(y,b),y.prototype.getSvgImage=function(E,S,O,w){var T=d.RenderHelper.createSvgElement(void 0,!0),k=E.clone().applyConverter(a.UnitConverter.twipsToPixelsF).clone().applyConverter(Math.ceil);s.RenderUtils.updateSvgElementSize(T,k.width,k.height,!0),T.style.backgroundColor=v.ColorUtils.colorToHash(S),this.createTextFloodFilter(void 0,T,S);var R=!O&&!p.Browser.IE&&this.getExportCssRules();if(R){var P=document.createElementNS(d.svgNS,"style");P.innerHTML=R,T.appendChild(P)}if(w){var B=document.createElementNS(d.svgNS,"rect");B.setAttributeNS(null,"x","0"),B.setAttributeNS(null,"y","0"),B.setAttributeNS(null,"height",k.height.toString()),B.setAttributeNS(null,"width",k.width.toString()),B.setAttributeNS(null,"fill",T.style.backgroundColor),T.appendChild(B)}for(var W=0;W<this.itemsContainer.childNodes.length;W++){var z=this.itemsContainer.childNodes[W].cloneNode(!0);R||this.inlineStyle(z,this.itemsContainer.childNodes[W]),T.appendChild(z)}return T},y.prototype.getSvgImageUrl=function(E,S,O){var w=this.getSvgImage(E,S,O,!1);return this.getSvgBase64String(w)},y.prototype.getSvgString=function(E){return(new XMLSerializer).serializeToString(E)},y.prototype.getSvgBase64String=function(E){var S=this.getSvgString(E);return y.base64Start+this.getBase64EncodeUnicode(S)},y.prototype.getBase64EncodeUnicode=function(E){return btoa(encodeURIComponent(E).replace(/%([0-9A-F]{2})/g,function(S,O){return String.fromCharCode(parseInt("0x"+O,16))}))},y.prototype.getExportCssRules=function(){for(var E=0;E<document.styleSheets.length;E++){var S=this.getRules(document.styleSheets[E]);if(S){for(var O="",w=0;w<S.length;w++){var T=S[w],k=this.isCSSStyleRule(T)?T.selectorText:null;k&&this.checkSelector(k)&&(O+=T.cssText+"\n")}if(O.length>0)return"\n"+O}}},y.prototype.checkSelector=function(E){for(var S=0;S<y.exportStyleRules.length;S++)if(0===E.indexOf(y.exportStyleRules[S]))return!0;return!1},y.prototype.getRules=function(E){try{return this.isCSSStyleSheet(E)?E.rules||E.cssRules:null}catch{}},y.prototype.isCSSStyleSheet=function(E){return void 0!==E.rules},y.prototype.isCSSStyleRule=function(E){return void 0!==E.selectorText},y.prototype.inlineStyle=function(E,S){for(var O=0;O<E.childNodes.length;O++){var w=E.childNodes[O];if(w.tagName)if("g"===w.tagName)this.inlineStyle(w,S.childNodes[O]);else if(w.style){var T=window.getComputedStyle(S.childNodes[O]);if(void 0!==T)for(var k=0;k<y.exportStyleAttributes.length;k++){var R=y.exportStyleAttributes[k];w.style.setProperty(R,T.getPropertyValue(R))}this.inlineStyle(w,S.childNodes[O])}}},y.prototype.exportSvgImage=function(E,S,O){O(this.getSvgImageUrl(E,S,!0))},y.prototype.exportBinaryImage=function(E,S,O,w,T){var k=this.getAbsoluteSize(E).clone().applyConverter(Math.ceil),R=document.createElement("canvas");R.width=k.width,R.height=k.height;var P=R.getContext("2d");if(P.fillStyle=v.ColorUtils.colorToHash(S),P.fillRect(0,0,k.width,k.height),(T||p.Browser.IE)&&"object"==typeof canvg)this.exportBinaryImageCanvgAsync(E,S,R,P,O).then(function(W){return w(W)});else if(p.Browser.IE&&"function"==typeof canvg)this.exportBinaryImageCanvgOld(E,S,R,P,O,w);else{var B=new Image;B.width=k.width,B.height=k.height,B.setAttribute("crossOrigin","anonymous"),B.onload=function(){P.drawImage(B,0,0),w(R.toDataURL(O,1))},B.src=this.getSvgImageUrl(E,S,!0)}},y.prototype.exportBinaryImageCanvgOld=function(E,S,O,w,T,k){var R=this.getSvgImage(E,S,!0,!1),P=this.getSvgString(R);w.drawSvg(P,0,0,null,null,{renderCallback:function(){k(O.toDataURL(T,1))}})},y.prototype.exportBinaryImageCanvgAsync=function(E,S,O,w,T){return C(this,void 0,void 0,function(){var k,R;return g(this,function(P){switch(P.label){case 0:return k=this.getSvgImage(E,S,!0,!0),R=this.getSvgString(k),[4,canvg.Canvg.fromString(w,R).render()];case 1:return P.sent(),[2,O.toDataURL(T,1)]}})})},y.prototype.exportPngImage=function(E,S,O,w){this.exportBinaryImage(E,S,"image/png",O,w)},y.prototype.exportJpgImage=function(E,S,O,w){this.exportBinaryImage(E,S,"image/jpeg",O,w)},y.prototype.notifyModelChanged=function(E){},y.prototype.notifyPageColorChanged=function(E){},y.prototype.notifyPageSizeChanged=function(E,S){},y.base64Start="data:image/svg+xml;base64,",y.exportStyleRules=[".dxdi-canvas .shape ",".dxdi-canvas .connector ",".dxdi-canvas text",".dxdi-canvas.export"],y.exportStyleAttributes=["fill","stroke","stroke-width","stroke-linejoin","font-family","font-size","font-weight","font-style","text-decoration","text-anchor"],y}(l.CanvasManagerBase);u.CanvasExportManager=x},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportSvgCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getExtension=function(){return"svg"},a.prototype.getExportFunc=function(){return this.exporter.exportSvg},a}(o(98).ExportImageCommand);u.ExportSvgCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ExportJpgCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getExtension=function(){return"jpg"},a.prototype.getExportFunc=function(){return this.exporter.exportJpg},a}(o(98).ExportImageCommand);u.ExportJpgCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.CopySelectionCommand=void 0;var C=o(73),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty(!0)},p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(s){var l=(new C.Exporter).exportItems(this.control.selection.getSelectedItems(!0,!0));return this.setClipboardData(l),!0},p}(o(101).ClipboardCommand);u.CopySelectionCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.CutSelectionCommand=void 0;var C=o(73),g=o(4),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.isEnabled=function(){var l=this.control.selection.getSelectedItems();return p.prototype.isEnabled.call(this)&&l.length&&(l.length>1||this.permissionsProvider.canDeleteItems(l))},s.prototype.executeCore=function(l){var d=new C.Exporter,h=this.control.selection.getSelectedItems(!0,!0),v=d.exportItems(h);return this.permissionsProvider.beginDeleteItems(h),this.setClipboardData(v),g.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),this.permissionsProvider.endDeleteItems(),!0},Object.defineProperty(s.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),s}(o(101).ClipboardCommand);u.CutSelectionCommand=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.PasteSelectionCommand=void 0;var C=o(0),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.getEventPositionOffset=function(s,l){return new C.Point(0,0)},p}(o(141).PasteSelectionCommandBase);u.PasteSelectionCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ImportShapeHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.shape=p,s}return I(a,g),a.prototype.redo=function(p){this.shapeKey=this.shape.key,p.insertShape(this.shape)},a.prototype.undo=function(p){p.removeShape(p.model.findShape(this.shapeKey),!0)},a}(o(8).HistoryItem);u.ImportShapeHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ImportConnectorHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.connector=p,s}return I(a,g),a.prototype.redo=function(p){this.connectorKey=this.connector.key,p.insertConnector(this.connector)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.removeConnector(s)},a}(o(8).HistoryItem);u.ImportConnectorHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(u,"__esModule",{value:!0}),u.ImportBPMNCommand=void 0;var C=o(269),g=o(4),a=o(53),p=o(0),s=o(6),l=o(66),d=o(48),h=o(80),v=o(20),x=function(b){function y(){return null!==b&&b.apply(this,arguments)||this}return I(y,b),y.prototype.executeCore=function(E,S){var O=new C.BPMNImporter(S).import();return this.updateModel(O),!0},y.prototype.updateModel=function(E){var S=this,O={},w=[],T=[];this.control.history.beginTransaction(),E.items.forEach(function(R){var P=new a.AddShapeHistoryItem(S.getShapeDescription(R.type),new p.Point(0,0),R.text,R.key);S.control.history.addAndRedo(P),O[R.key]=P.shapeKey;var B=S.control.model.findShape(P.shapeKey);w.push(B)}),E.edges.forEach(function(R){var P=S.control.model.findShape(O[R.from]),B=S.control.model.findShape(O[R.to]),W=new l.AddConnectorHistoryItem([P.getConnectionPointPosition(0),B.getConnectionPointPosition(0)]);S.control.history.addAndRedo(W);var z=S.control.model.findConnector(W.connectorKey);S.control.history.addAndRedo(new d.AddConnectionHistoryItem(z,P,0,s.ConnectorPosition.Begin)),S.control.history.addAndRedo(new d.AddConnectionHistoryItem(z,B,0,s.ConnectorPosition.End)),T.push(z)});var k=new v.LayoutSettings;g.ModelUtils.getGraphInfoByItems(this.control.model,w,T).forEach(function(R){var P=new h.SugiyamaLayoutBuilder(k,R.graph).build(),B=g.ModelUtils.getNonGraphItems(S.control.model,R.container,P.nodeToLayout,w,T);g.ModelUtils.applyLayout(S.control.history,S.control.model,void 0,R.graph,P,B,k,S.control.settings.snapToGrid,S.control.settings.gridSize,!1)}),g.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction()},y.prototype.getShapeDescription=function(E){return this.control.shapeDescriptionManager.get(E)},y}(o(57).ExportImportCommandBase);u.ImportBPMNCommand=x},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(h,v){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,b){x.__proto__=b}||function(x,b){for(var y in b)b.hasOwnProperty(y)&&(x[y]=b[y])})(h,v)},function(h,v){function x(){this.constructor=h}c(h,v),h.prototype=null===v?Object.create(v):(x.prototype=v.prototype,new x)});Object.defineProperty(u,"__esModule",{value:!0}),u.BPMNNode=u.BPMNImporter=void 0;var C=o(54),g=o(1),a=o(38),p=o(95),s=function(){function h(v){this.doc=p.ImportUtils.createDocument(v),this.graph=new C.Graph([],[])}return h.prototype.import=function(){for(var v=void 0,x=0;v=this.doc.children[x];x++)"DEFINITIONS"===v.nodeName.toUpperCase()&&this.onDefinitionsElement(v);return this.validate(),this.graph},h.prototype.validate=function(){var v={};this.graph.nodes.forEach(function(y){return v[y]=!0});for(var x=0,b=void 0;b=this.graph.edges[x];x++)v[b.from]&&v[b.to]||(this.graph.edges.splice(x,1),x--)},h.prototype.onDefinitionsElement=function(v){this.dataSourceKey=v.getAttribute("id");for(var x=void 0,b=0;x=v.children[b];b++)"PROCESS"===x.nodeName.toUpperCase()&&this.onProcessElement(x)},h.prototype.onProcessElement=function(v){for(var x=void 0,b=0;x=v.children[b];b++)switch(x.nodeName.toUpperCase()){case"STARTEVENT":this.onStartEventElement(x);break;case"SEQUENCEFLOW":this.onSequenceFlowElement(x);break;case"SCRIPTTASK":this.onScriptTaskElement(x);break;case"USERTASK":this.onUserTaskElement(x);break;case"SERVICETASK":this.onServiceTaskElement(x);break;case"SENDTASK":this.onSendTaskElement(x);break;case"EXCLUSIVEGATEWAY":this.onExclusiveGateway(x);break;case"ENDEVENT":this.onEndEventGateway(x)}},h.prototype.onStartEventElement=function(v){var x=this.createNode(v);x.type=g.ShapeTypes.Ellipse,x.text=v.getAttribute("name"),this.graph.addNode(x)},h.prototype.onSequenceFlowElement=function(v){var x=v.getAttribute("sourceRef"),b=v.getAttribute("targetRef"),y=this.createEdge(v,x,b);v.hasAttribute("name")&&(y.text=v.getAttribute("name")),this.graph.addEdge(y)},h.prototype.onScriptTaskElement=function(v){var x=this.createNode(v);x.text=v.getAttribute("name"),this.graph.addNode(x)},h.prototype.onUserTaskElement=function(v){var x=this.createNode(v);x.text=v.getAttribute("name"),this.graph.addNode(x)},h.prototype.onServiceTaskElement=function(v){var x=this.createNode(v);x.text=v.getAttribute("name"),this.graph.addNode(x)},h.prototype.onSendTaskElement=function(v){var x=this.createNode(v);x.text=v.getAttribute("name"),this.graph.addNode(x)},h.prototype.onExclusiveGateway=function(v){var x=this.createNode(v);x.text=v.getAttribute("name"),x.type=g.ShapeTypes.Decision,this.graph.addNode(x)},h.prototype.onEndEventGateway=function(v){var x=this.createNode(v);x.text=v.getAttribute("name"),x.type=g.ShapeTypes.Ellipse,this.graph.addNode(x)},h.prototype.createNode=function(v){return new l(this.dataSourceKey,v.getAttribute("id"))},h.prototype.createEdge=function(v,x,b){return new d(this.dataSourceKey,v.getAttribute("id"),x,b)},h}();u.BPMNImporter=s;var l=function(h,v){this.sourceKey=h,this.key=v,this.type=g.ShapeTypes.Rectangle};u.BPMNNode=l;var d=function(h){function v(x,b,y,E){var S=h.call(this,b,y,E)||this;return S.sourceKey=x,S}return I(v,h),v}(a.Edge)},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CycleRemover=void 0;var c=o(54),I=o(38),C=o(90),g=function(){function a(){}return a.removeCycles=function(p){var s=this.getFeedbackSet(p);return this.reverseEdges(p,s)},a.getFeedbackSet=function(p){for(var s=this,l={},d=this.getNonTrivialStronglyConnectedComponents(p);d.length;)d.forEach(function(h){var v=s.getMaxCyclicEdges(h);v.forEach(function(x){return delete l[x.reverse().getHashKey()]}),v.forEach(function(x){return l[x.getHashKey()]=!0})}),d=this.getNonTrivialStronglyConnectedComponents(this.reverseEdges(p,l).graph);return l},a.getMaxCyclicEdges=function(p){var s={},l={},d={},h=[],v=[],x=p.createIterator(I.ConnectionMode.Outgoing);x.visitEachEdgeOnce=!1,x.onNode=function(y){l[y.key]=!0},x.skipNode=function(y){if(l[y.key]){for(var E=[],S=0;S<h.length;S++){var O=h[S];if(void 0===d[O.key]&&(d[O.key]=0),d[O.key]++,E.push(O),O.from===y.key)break}v.push(E)}return l[y.key]||s[y.key]},x.skipEdge=function(y){return!1},x.onEdge=function(y){h.splice(0,0,y)},x.onAfterEdge=function(y){h.splice(0,1)},x.onAllEdges=function(y){s[y.key]=!0,l[y.key]=!1},x.iterate(p.nodes[0]);var b=new C.HashSet([],function(y){return y.key});return v.forEach(function(y){b.tryPush(y.reduce(function(E,S){return d[S.key]>d[E.key]?S:E},y[0]))}),b.list()},a.reverseEdges=function(p,s){var l=new C.HashSet([],function(v){return v.getHashKey()}),d={},h={};return p.edges.forEach(function(v){s[v.getHashKey()]&&(v=v.reverse(),d[v.key]=!0),l.tryPush(v)||(h[v.key]=!0,delete d[v.key])}),{graph:new c.Graph(p.nodes.map(function(v){return p.getNode(v)}),l.list()),reversedEdges:d,removedEdges:h}},a.getNonTrivialStronglyConnectedComponents=function(p){return this.getStronglyConnectedComponents(p).filter(function(s){return s.edges.length})},a.getStronglyConnectedComponents=function(p){for(var s=this,l=[],d=0,h={},v={},x={},b=[],y={},E=0;E<p.nodes.length;E++){var S=p.nodes[E],O=p.createIterator(I.ConnectionMode.Outgoing);O.visitEachEdgeOnce=!1,O.visitEachNodeOnce=!1,O.onNode=function(w){y[w.key]=!0,l.push(w),x[w.key]=!0,v[w.key]=d,h[w.key]=d,d++},O.skipNode=function(w){return y[w.key]},O.skipEdge=function(w){var T=y[w.to];return T&&x[w.to]&&(v[w.from]=Math.min(v[w.from],h[w.to])),T},O.onAfterEdge=function(w){v[w.from]=Math.min(v[w.from],v[w.to])},O.onAllEdges=function(w,T){T&&v[w.key]===h[w.key]&&b.push(s.getStronglyConnectedComponent(p,w,l,x))},O.iterate(S)}return b},a.getStronglyConnectedComponent=function(p,s,l,d){var h,v={},x=[],b=[];do{h=l.pop(),v[h.key]||x.push(h),v[h.key]=!0,d[h.key]=!1}while(h!==s);return x.forEach(function(y){var E=p.getAdjacentEdges(y.key,I.ConnectionMode.Outgoing);b=b.concat(E.filter(function(S){return!v[S.key]&&v[S.to]})),E.forEach(function(S){return v[S.key]=!0})}),new c.Graph(x,b)},a}();u.CycleRemover=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.SendToBackCommand=void 0;var C=o(102),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedItems();return a.prototype.isEnabled.call(this)&&s.length>0&&this.needSendToBack(s)},p.prototype.executeCore=function(s,l){var d=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(h){var v=d.control.model.getIntersectItemsMinZIndex(h)-1;d.control.history.addAndRedo(new C.ChangeZindexHistoryItem(h,v))}),this.control.history.endTransaction(),!0},p.prototype.needSendToBack=function(s){for(var l=this,d=function(b){var y=h.control.model.getIntersectItemsMinZIndex(s[b]);if(y<s[b].zIndex)return{value:!0};if(y===s[b].zIndex){var E=!1;return h.control.model.getIntersectItems(s[b]).filter(function(S){return S.zIndex===s[b].zIndex}).forEach(function(S){l.control.model.getItemIndex(S)<l.control.model.getItemIndex(s[b])&&(E=!0)}),{value:E}}},h=this,v=0;v<s.length;v++){var x=d(v);if("object"==typeof x)return x.value}return!1},p}(o(10).SimpleCommandBase);u.SendToBackCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.BringToFrontCommand=void 0;var C=o(102),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabled=function(){var s=this.control.selection.getSelectedItems();return a.prototype.isEnabled.call(this)&&s.length>0&&this.needBringToFront(s)},p.prototype.executeCore=function(s,l){var d=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach(function(h){var v=d.control.model.getIntersectItemsMaxZIndex(h)+1;d.control.history.addAndRedo(new C.ChangeZindexHistoryItem(h,v))}),this.control.history.endTransaction(),!0},p.prototype.needBringToFront=function(s){for(var l=this,d=function(b){var y=h.control.model.getIntersectItemsMaxZIndex(s[b]);if(y>s[b].zIndex)return{value:!0};if(y===s[b].zIndex){var E=!1;return h.control.model.getIntersectItems(s[b]).filter(function(S){return S.zIndex===s[b].zIndex}).forEach(function(S){l.control.model.getItemIndex(S)>l.control.model.getItemIndex(s[b])&&(E=!0)}),{value:E}}},h=this,v=0;v<s.length;v++){var x=d(v);if("object"==typeof x)return x.value}return!1},p}(o(10).SimpleCommandBase);u.BringToFrontCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(O,w){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,k){T.__proto__=k}||function(T,k){for(var R in k)k.hasOwnProperty(R)&&(T[R]=k[R])})(O,w)},function(O,w){function T(){this.constructor=O}c(O,w),O.prototype=null===w?Object.create(w):(T.prototype=w.prototype,new T)});Object.defineProperty(u,"__esModule",{value:!0}),u.MoveStepDownCommand=u.MoveDownCommand=u.MoveStepUpCommand=u.MoveUpCommand=u.MoveStepRightCommand=u.MoveRightCommand=u.MoveStepLeftCommand=u.MoveLeftCommand=u.MoveCommand=void 0;var C=o(0),g=o(4),a=o(12),p=o(10),s=o(58),l=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.isEnabled=function(){return O.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},w.prototype.executeCore=function(T,k){var R=this;this.control.history.beginTransaction();var P=this.control.selection,B=P.getSelectedShapes();B.filter(function(z){for(;z.container;){if(-1!==B.indexOf(z.container))return!1;z=z.container}return!0}).forEach(function(z){R.permissionsProvider.addInteractingItem(z,s.DiagramModelOperation.MoveShape);var V=R.getPosition(z.position);g.ModelUtils.setShapePosition(R.control.history,R.control.model,z,V),g.ModelUtils.updateShapeAttachedConnectors(R.control.history,R.control.model,z),R.permissionsProvider.clearInteractingItems()});var W=g.ModelUtils.createSelectedItems(P);return P.getSelectedConnectors().forEach(function(z){if(g.ModelUtils.canMoveConnector(W,z))for(var U=z.endItem?z.points.length-2:z.points.length-1,K=z.beginItem?1:0;K<=U;K++){var Y=R.getPosition(z.points[K]);g.ModelUtils.moveConnectorPoint(R.control.history,z,K,Y)}}),g.ModelUtils.tryUpdateModelRectangle(this.control.history),this.control.history.endTransaction(),!0},Object.defineProperty(w.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),w}(p.SimpleCommandBase);u.MoveCommand=l;var d=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(-a.UnitConverter.pixelsToTwips(1),0)},w}(l);u.MoveLeftCommand=d;var h=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(g.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.x-(this.control.settings.gridSize/2+2),!0),T.y):T.clone().offset(-this.control.settings.gridSize,0)},w}(l);u.MoveStepLeftCommand=h;var v=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(a.UnitConverter.pixelsToTwips(1),0)},w}(l);u.MoveRightCommand=v;var x=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(g.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.x+(this.control.settings.gridSize/2+2),!0),T.y):T.clone().offset(this.control.settings.gridSize,0)},w}(l);u.MoveStepRightCommand=x;var b=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(0,-a.UnitConverter.pixelsToTwips(1))},w}(l);u.MoveUpCommand=b;var y=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(T.x,g.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.y-(this.control.settings.gridSize/2+2),!1)):T.clone().offset(0,-this.control.settings.gridSize)},w}(l);u.MoveStepUpCommand=y;var E=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return T.clone().offset(0,a.UnitConverter.pixelsToTwips(1))},w}(l);u.MoveDownCommand=E;var S=function(O){function w(){return null!==O&&O.apply(this,arguments)||this}return I(w,O),w.prototype.getPosition=function(T){return this.control.settings.snapToGrid?new C.Point(T.x,g.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,T.y+(this.control.settings.gridSize/2+2),!1)):T.clone().offset(0,this.control.settings.gridSize)},w}(l);u.MoveStepDownCommand=S},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(B,W){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,V){z.__proto__=V}||function(z,V){for(var U in V)V.hasOwnProperty(U)&&(z[U]=V[U])})(B,W)},function(B,W){function z(){this.constructor=B}c(B,W),B.prototype=null===W?Object.create(W):(z.prototype=W.prototype,new z)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleAutoZoomCommand=u.ToggleAutoZoomToWidthCommand=u.ToggleAutoZoomToContentCommand=u.SwitchAutoZoomCommand=u.FitToWidthCommand=u.FitToScreenCommand=u.ChangeZoomLevelItemsCommand=u.ChangeZoomLevelTo200Command=u.ChangeZoomLevelTo150Command=u.ChangeZoomLevelTo125Command=u.ChangeZoomLevelTo100Command=u.ChangeZoomLevelTo75Command=u.ChangeZoomLevelTo50Command=u.ChangeZoomLevelTo25Command=u.ChangeZoomLevelInPercentageCommand=u.ChangeZoomLevelCommand=void 0;var C=o(10),g=o(28),a=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.view.getZoom()},W.prototype.executeCore=function(z,V){return this.control.settings.zoomLevel=V,this.control.settings.autoZoom=g.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},W.prototype.getItems=function(){return this.control.settings.zoomLevelItems.map(function(z){return{value:z,text:100*z+"%"}})},W}(C.SimpleCommandBase);u.ChangeZoomLevelCommand=a;var p=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.executeCore=function(z,V){return B.prototype.executeCore.call(this,z,V/100)},W.prototype.getValue=function(){return 100*this.control.view.getZoom()},W}(a);u.ChangeZoomLevelInPercentageCommand=p;var s=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getValue=function(){return this.control.view.getZoom()===this.exactValue},W.prototype.executeCore=function(z,V){return B.prototype.executeCore.call(this,z,this.exactValue),!0},W.prototype.getItems=function(){},W}(a),l=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=.25,z}return I(W,B),W}(s);u.ChangeZoomLevelTo25Command=l;var d=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=.5,z}return I(W,B),W}(s);u.ChangeZoomLevelTo50Command=d;var h=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=.75,z}return I(W,B),W}(s);u.ChangeZoomLevelTo75Command=h;var v=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=1,z}return I(W,B),W}(s);u.ChangeZoomLevelTo100Command=v;var x=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=1.25,z}return I(W,B),W}(s);u.ChangeZoomLevelTo125Command=x;var b=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=1.5,z}return I(W,B),W}(s);u.ChangeZoomLevelTo150Command=b;var y=function(B){function W(){var z=null!==B&&B.apply(this,arguments)||this;return z.exactValue=2,z}return I(W,B),W}(s);u.ChangeZoomLevelTo200Command=y;var E=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.zoomLevelItems},W.prototype.executeCore=function(z,V){return this.control.settings.zoomLevelItems=V,!0},W}(C.SimpleCommandBase);u.ChangeZoomLevelItemsCommand=E;var S=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabled=function(){return B.prototype.isEnabled.call(this)&&!!this.control.render},W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.executeCore=function(z){var V=this.getZoomLevel();return this.control.settings.zoomLevel=V,this.control.settings.autoZoom=g.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},W}(C.SimpleCommandBase),O=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(g.AutoZoomMode.FitContent)},W}(S);u.FitToScreenCommand=O;var w=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(g.AutoZoomMode.FitToWidth)},W}(S);u.FitToWidthCommand=w;var T=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.autoZoom},W.prototype.executeCore=function(z,V){return V=parseInt(V),this.control.settings.autoZoom!==V&&(V===g.AutoZoomMode.Disabled&&(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=V,this.control.updateLayout(!0),!0)},W}(C.SimpleCommandBase);u.SwitchAutoZoomCommand=T;var k=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getValue=function(){return this.control.settings.autoZoom===g.AutoZoomMode.FitContent},W.prototype.executeCore=function(z,V){return B.prototype.executeCore.call(this,z,g.AutoZoomMode.FitContent)},W}(T);u.ToggleAutoZoomToContentCommand=k;var R=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.getValue=function(){return this.control.settings.autoZoom===g.AutoZoomMode.FitToWidth},W.prototype.executeCore=function(z,V){return B.prototype.executeCore.call(this,z,g.AutoZoomMode.FitToWidth)},W}(T);u.ToggleAutoZoomToWidthCommand=R;var P=function(B){function W(){return null!==B&&B.apply(this,arguments)||this}return I(W,B),W.prototype.isEnabled=function(){return B.prototype.isEnabled.call(this)&&!!this.control.render},W.prototype.isEnabledInReadOnlyMode=function(){return!0},W.prototype.getValue=function(){return this.control.settings.autoZoom},W.prototype.executeCore=function(z,V){var U;return this.control.settings.autoZoom!==(U=void 0===V?this.control.settings.autoZoom===g.AutoZoomMode.Disabled?g.AutoZoomMode.FitContent:g.AutoZoomMode.Disabled:V?g.AutoZoomMode.FitContent:g.AutoZoomMode.Disabled)&&(U||(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=U,this.control.updateLayout(!0),!0)},W}(C.SimpleCommandBase);u.ToggleAutoZoomCommand=P},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.BindDocumentCommand=void 0;var C=o(103),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(s,l){if(!l||!Array.isArray(l.nodeDataSource))throw Error("Format exception");return this.performImportData(l),this.control.updateLayout(!0),!0},p.prototype.performImportData=function(s){var l=this.control.createDocumentDataSource(s.nodeDataSource,s.edgeDataSource,s.dataParameters,s.nodeDataImporter,s.edgeDataImporter);this.control.beginUpdateCanvas(),this.permissionsProvider.lockPermissions();var d=new C.DataLayoutParameters(this.control.settings,s.layoutParameters);l.createModelItems(this.control.history,this.control.model,this.control.shapeDescriptionManager,this.control.selection,d,this.control.settings.snapToGrid,this.control.settings.gridSize,this.control.measurer),this.permissionsProvider.unlockPermissions(),this.control.endUpdateCanvas()},p}(o(10).SimpleCommandBase);u.BindDocumentCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.UnbindDocumentCommand=void 0;var C=o(4),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.isEnabledInReadOnlyMode=function(){return!0},p.prototype.executeCore=function(s){return this.permissionsProvider.lockPermissions(),this.control.deleteDocumentDataSource(),C.ModelUtils.deleteAllItems(this.control.history,this.control.model,this.control.selection),this.control.history.clear(),this.permissionsProvider.unlockPermissions(),!0},p}(o(10).SimpleCommandBase);u.UnbindDocumentCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.LockCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getLockState=function(){return!0},a}(o(145).ChangeLockedCommand);u.LockCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.UnLockCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getLockState=function(){return!1},a}(o(145).ChangeLockedCommand);u.UnLockCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.CloneDownCommand=u.CloneUpCommand=u.CloneRightCommand=u.CloneLeftCommand=u.CloneCommand=void 0;var C=o(4),g=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabled=function(){var v=this.control.selection.getSelectedItems();return d.prototype.isEnabled.call(this)&&v.length&&v.length>0&&this.permissionsProvider.canAddItems(v)},h.prototype.executeCore=function(v,x){var b=C.ModelUtils.createRectangle(this.control.selection.getSelectedItems());return C.ModelUtils.cloneSelectionToOffset(this.control.history,this.control.model,void 0,this.control.selection,this.getOffsetX(b),this.getOffsetY(b)),!0},Object.defineProperty(h.prototype,"isPermissionsRequired",{get:function(){return!0},enumerable:!1,configurable:!0}),h.prototype.getOffsetX=function(v){return 0},h.prototype.getOffsetY=function(v){return 0},h}(o(10).SimpleCommandBase);u.CloneCommand=g;var a=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetX=function(v){return-v.width},h}(g);u.CloneLeftCommand=a;var p=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetX=function(v){return v.width},h}(g);u.CloneRightCommand=p;var s=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetY=function(v){return-v.height},h}(g);u.CloneUpCommand=s;var l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.getOffsetY=function(v){return v.height},h}(g);u.CloneDownCommand=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeViewUnitsCommand=u.ChangeUnitsCommand=void 0;var C=o(77),g=o(281),a=o(10),p=o(36),s=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabledInReadOnlyMode=function(){return!0},h.prototype.getValue=function(){return this.control.model.units},h.prototype.createHistoryItems=function(v){return[new g.ChangeUnitsHistoryItem(v)]},h.prototype.getItems=function(){return Object.keys(p.DiagramLocalizationService.unitItems).map(function(v){return{value:parseInt(v),text:p.DiagramLocalizationService.unitItems[v]}})},h}(C.ChangePagePropertyCommand);u.ChangeUnitsCommand=s;var l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.isEnabledInReadOnlyMode=function(){return!0},h.prototype.getValue=function(){return this.control.settings.viewUnits},h.prototype.executeCore=function(v,x){return this.control.settings.viewUnits=x,!0},h.prototype.getItems=function(){return Object.keys(p.DiagramLocalizationService.unitItems).map(function(v){return{value:parseInt(v),text:p.DiagramLocalizationService.unitItems[v]}})},h}(a.SimpleCommandBase);u.ChangeViewUnitsCommand=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeUnitsHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.units=p,s}return I(a,g),a.prototype.redo=function(p){this.oldUnits=p.model.units,p.model.units=this.units},a.prototype.undo=function(p){p.model.units=this.oldUnits},a}(o(8).HistoryItem);u.ChangeUnitsHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePageColorCommand=void 0;var C=o(77),g=o(283),a=o(62),p=o(22),s=function(l){function d(){return null!==l&&l.apply(this,arguments)||this}return I(d,l),d.prototype.getValue=function(){return p.ColorUtils.colorToHash(this.control.model.pageColor)},d.prototype.getDefaultValue=function(){return p.ColorUtils.colorToHash(a.DiagramModel.defaultPageColor)},d.prototype.createHistoryItems=function(h){return[new g.ChangePageColorHistoryItem(p.ColorUtils.fromString(h))]},d}(C.ChangePagePropertyCommand);u.ChangePageColorCommand=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangePageColorHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.value=p,s}return I(a,g),a.prototype.redo=function(p){this.oldValue=p.model.pageColor,p.changePageColor(this.value)},a.prototype.undo=function(p){p.changePageColor(this.oldValue)},a}(o(8).HistoryItem);u.ChangePageColorHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeShowGridCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.executeCore=function(p,s){var l=void 0===s?!this.control.settings.showGrid:!!s;return this.control.settings.showGrid!==l&&(this.control.settings.showGrid=l,!0)},a.prototype.getValue=function(){return this.control.settings.showGrid},a}(o(10).SimpleCommandBase);u.ChangeShowGridCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleFullscreenCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.getValue=function(){return this.control.settings.fullscreen},a.prototype.executeCore=function(p,s){return this.control.settings.fullscreen!==("boolean"==typeof s?s:!p.value)&&(this.control.settings.fullscreen=!p.value,this.control.notifyToggleFullscreen(this.control.settings.fullscreen)),!0},a}(o(10).SimpleCommandBase);u.ToggleFullscreenCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleSimpleViewCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.getValue=function(){return this.control.settings.simpleView},a.prototype.executeCore=function(p,s){return"boolean"==typeof s?this.control.settings.simpleView=s:void 0===s&&(this.control.settings.simpleView=!p.value),this.control.updateLayout(!0),!0},a}(o(10).SimpleCommandBase);u.ToggleSimpleViewCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleReadOnlyCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabledInReadOnlyMode=function(){return!0},a.prototype.getValue=function(){return this.control.settings.readOnly},a.prototype.executeCore=function(p,s){return"boolean"==typeof s?this.control.settings.readOnly=s:void 0===s&&(this.control.settings.readOnly=!p.value),!0},a}(o(10).SimpleCommandBase);u.ToggleReadOnlyCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.EditShapeImageCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabled=function(){var p=this.getSelectedShape();return g.prototype.isEnabled.call(this)&&!p.image.isEmpty},a}(o(104).EditShapeImageCommandBase);u.EditShapeImageCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.PasteSelectionInPositionCommand=void 0;var C=o(141),g=o(14),a=o(6),p=o(0),s=function(l){function d(){return null!==l&&l.apply(this,arguments)||this}return I(d,l),d.prototype.getEventPositionOffset=function(h,v){var x=h.reduce(function(y,E){return{x:Math.min(y.x,E instanceof g.Shape?E.position.x:E instanceof a.Connector?E.getMinX():Number.MAX_VALUE),y:Math.min(y.y,E instanceof g.Shape?E.position.y:E instanceof a.Connector?E.getMinY():Number.MAX_VALUE)}},{x:Number.MAX_VALUE,y:Number.MAX_VALUE}),b=this.control.render.getModelPointByEventPoint(v.x,v.y);return new p.Point(b.x-x.x,b.y-x.y)},d}(C.PasteSelectionCommandBase);u.PasteSelectionInPositionCommand=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.ImportXMLCommand=void 0;var C=o(291),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.executeCore=function(s,l){var d=new C.XmlImporter(this.control.shapeDescriptionManager,l).import();return this.control.importModel(d),!0},p}(o(57).ExportImportCommandBase);u.ImportXMLCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.XmlImporter=void 0;var C=o(6),g=o(14),a=o(133),p=o(1),s=o(91),l=o(2),d=o(0),h=o(95),v=o(22),x=o(12),b=function(y){function E(S,O){var w=y.call(this,S)||this;return w.doc=h.ImportUtils.createDocument(O),w}return I(E,y),E.prototype.getObject=function(){return this.doc},E.prototype.getPageObject=function(S){var O=this.doc.querySelectorAll("[ItemKind='DiagramRoot']");return O&&O[0]},E.prototype.getShapeObjects=function(S){var O=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramShape']").forEach(function(w){O.push(w)}),this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramContainer']").forEach(function(w){O.push(w)}),O},E.prototype.getConnectorObjects=function(S){var O=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramConnector']").forEach(function(w){O.push(w)}),O},E.prototype.importPageSettings=function(S,O){if(O){var w=O.getAttribute("PageSize"),T=this.getSize(w);T&&(S.size=T.clone(),S.pageSize=T.clone())}},E.prototype.importShape=function(S){var O=S.getAttribute("Position"),w=this.getPoint(O),T=S.getAttribute("Shape"),k=this.getShapeType(T),R=this.shapeDescriptionManager.get(k),P=new g.Shape(R||s.ShapeDescriptionManager.default,w);P.key=this.getItemKey(S);var B=S.getAttribute("Size"),W=this.getSize(B);W&&(P.size=W);var z=S.getAttribute("Content");if("string"==typeof z)P.text=z;else{var V=S.getAttribute("Header");"string"==typeof V&&(P.text=V)}return this.importStyle(S,P),P},E.prototype.importShapeChildren=function(S,O){var w=[];S.setAttribute("dxDiagram",""),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramShape']").forEach(function(W){w.push(W)}),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramContainer']").forEach(function(W){w.push(W)}),S.removeAttribute("dxDiagram");var T=[];if(!w)return T;for(var k=0;k<w.length;k++){var R=w[k],P=this.importShape(R);P.key=O.key+","+P.key;var B=O.clientRectangle;P.position=P.position.clone().offset(B.x,B.y),O.childKeys||(O.childKeys=[]),O.childKeys.push(P.key),T.push(P),T=T.concat(this.importShapeChildren(R,P))}return T},E.prototype.importConnector=function(S){var O=this,w=[],T=S.getAttribute("BeginPoint"),k=this.getPoint(T);k&&w.push(k),S.getAttribute("Points").split(" ").forEach(function(j){var ee=O.getPoint(j);ee&&w.push(ee)});var R=S.getAttribute("EndPoint"),P=this.getPoint(R);P&&w.push(P);var B=new C.Connector(w);B.key=this.getItemKey(S);var W=S.getAttribute("EndItemPointIndex"),z=parseInt(W);B.endConnectionPointIndex=isNaN(z)?-1:z;var V=S.getAttribute("BeginItemPointIndex"),U=parseInt(V);B.beginConnectionPointIndex=isNaN(U)?-1:U;var K=S.getAttribute("EndItem");void 0!==K&&this.assert(K,"string");var Y=S.getAttribute("BeginItem");void 0!==Y&&this.assert(Y,"string"),B.endItemKey=K,B.beginItemKey=Y;var J=S.getAttribute("Content");return"string"==typeof J&&B.setText(J),this.importStyle(S,B),B},E.prototype.importStyle=function(S,O){var w=S.getAttribute("Background");"string"==typeof w&&(O.style.fill=this.getColor(w));var T=S.getAttribute("Stroke");"string"==typeof T&&(O.style.stroke=this.getColor(T));var k=S.getAttribute("Foreground");"string"==typeof k&&(O.styleText.fill=this.getColor(k));var R=S.getAttribute("FontFamily");"string"==typeof R&&(O.styleText["font-family"]=R);var P=S.getAttribute("FontSize");"string"==typeof P&&(O.styleText["font-size"]=P),"Bold"===S.getAttribute("FontWeight")&&(O.styleText["font-weight"]="bold"),"Italic"===S.getAttribute("FontStyle")&&(O.styleText["font-style"]="italic"),"Underline"===S.getAttribute("TextDecorations")&&(O.styleText["text-decoration"]="underline");var B=S.getAttribute("TextAlignment");"Left"===B?O.styleText["text-anchor"]="start":"Right"===B?O.styleText["text-anchor"]="end":"Center"===B&&(O.styleText["text-anchor"]="middle")},E.prototype.getShapeType=function(S){return E.shapeTypes[S]?E.shapeTypes[S]:S&&S.toLowerCase().indexOf("container")>-1?p.ShapeTypes.VerticalContainer:p.ShapeTypes.Rectangle},E.prototype.getItemKey=function(S){return(parseInt(S.tagName.replace("Item",""))-1).toString()},E.prototype.getNumbers=function(S){var O=S.split(",");return O&&O.length?O.map(function(w){return+w}):[]},E.prototype.getSize=function(S){if(S){var O=this.getNumbers(S);if(O.length>=2)return this.assert(O[0],"number"),this.assert(O[1],"number"),new l.Size(x.UnitConverter.pixelsToTwips(O[0]),x.UnitConverter.pixelsToTwips(O[1]))}},E.prototype.getPoint=function(S){if(S){var O=this.getNumbers(S);if(O.length>=2)return this.assert(O[0],"number"),this.assert(O[1],"number"),new d.Point(x.UnitConverter.pixelsToTwips(O[0]),x.UnitConverter.pixelsToTwips(O[1]))}},E.prototype.getColor=function(S){S="#"===S.charAt(0)?S.substr(1):S;var O=parseInt(S,16);return isNaN(O)?void 0:v.ColorUtils.colorToHash(O)},E.shapeTypes={"BasicShapes.Rectangle":p.ShapeTypes.Rectangle,"BasicShapes.Ellipse":p.ShapeTypes.Ellipse,"BasicShapes.Triangle":p.ShapeTypes.Triangle,"BasicShapes.Pentagon":p.ShapeTypes.Pentagon,"BasicShapes.Hexagon":p.ShapeTypes.Hexagon,"BasicShapes.Octagon":p.ShapeTypes.Octagon,"BasicShapes.Diamond":p.ShapeTypes.Diamond,"BasicShapes.Cross":p.ShapeTypes.Cross,"BasicShapes.Star5":p.ShapeTypes.Star,"BasicFlowchartShapes.StartEnd":p.ShapeTypes.Terminator,"BasicFlowchartShapes.Data":p.ShapeTypes.Data,"BasicFlowchartShapes.Database":p.ShapeTypes.Database,"BasicFlowchartShapes.ExternalData":p.ShapeTypes.StoredData,"BasicFlowchartShapes.Process":p.ShapeTypes.Process,"BasicFlowchartShapes.Decision":p.ShapeTypes.Decision,"BasicFlowchartShapes.Subprocess":p.ShapeTypes.PredefinedProcess,"BasicFlowchartShapes.Document":p.ShapeTypes.Document,"BasicFlowchartShapes.Custom1":p.ShapeTypes.ManualInput,"BasicFlowchartShapes.Custom2":p.ShapeTypes.ManualOperation,"ArrowShapes.SimpleArrow":p.ShapeTypes.ArrowLeft,"ArrowShapes.SimpleDoubleArrow":p.ShapeTypes.ArrowLeftRight},E}(a.ImporterBase);u.XmlImporter=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.InsertShapeImageCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabled=function(){var p=this.getSelectedShape();return g.prototype.isEnabled.call(this)&&p.image.isEmpty},a}(o(104).EditShapeImageCommandBase);u.InsertShapeImageCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteShapeImageCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.isEnabled=function(){var p=this.getSelectedShape();return g.prototype.isEnabled.call(this)&&!p.image.isEmpty},a.prototype.executeCore=function(p,s){return g.prototype.executeCore.call(this,p,void 0)},a}(o(104).EditShapeImageCommandBase);u.DeleteShapeImageCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStrokeStyleCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"stroke-dasharray"},a}(o(75).ChangeStylePropertyCommand);u.ChangeStrokeStyleCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeStrokeWidthCommand=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.getStyleProperty=function(){return"stroke-width"},a}(o(75).ChangeStylePropertyCommand);u.ChangeStrokeWidthCommand=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutTreeVerticalBottomToTopCommand=void 0;var C=o(20),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(137).AutoLayoutTreeVerticalCommand);u.AutoLayoutTreeVerticalBottomToTopCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutTreeHorizontalRightToLeftCommand=void 0;var C=o(20),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(143).AutoLayoutTreeHorizontalCommand);u.AutoLayoutTreeHorizontalRightToLeftCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutLayeredVerticalBottomToTopCommand=void 0;var C=o(20),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(144).AutoLayoutLayeredVerticalCommand);u.AutoLayoutLayeredVerticalBottomToTopCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.AutoLayoutLayeredHorizontalRightToLeftCommand=void 0;var C=o(20),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return I(p,a),p.prototype.createLayoutSettings=function(){var s=a.prototype.createLayoutSettings.call(this);return s.direction=C.LogicalDirectionKind.Backward,s},p}(o(142).AutoLayoutLayeredHorizontalCommand);u.AutoLayoutLayeredHorizontalRightToLeftCommand=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorRoutingModeCommand=void 0;var C=o(10),g=o(28),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.getValue=function(){return this.control.settings.connectorRoutingMode},s.prototype.executeCore=function(l,d){return this.control.settings.connectorRoutingMode=void 0!==d?d:g.ConnectorRoutingMode.None,!0},s}(C.SimpleCommandBase);u.ChangeConnectorRoutingModeCommand=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DiagramControl=void 0;var c=o(0),I=o(302),C=o(82),g=o(303),a=o(62),p=o(332),s=o(335),l=o(336),d=o(337),h=o(91),v=o(345),x=o(28),b=o(16),y=o(349),E=o(4),S=o(350),O=o(3),w=o(353),T=o(46),k=o(354),R=o(368),P=o(79),B=o(6),W=o(103),z=o(379),V=o(17),U=o(58),K=function(){function Y(){this.updateLockCount=0,this.shouldUpdateItemsByModel=!1,this.reloadContentNeeded=!1,this.reloadContentParameters=new z.ReloadContentParameters,this.reloadContentByExternalChangesParameters=new z.ReloadContentParameters,this.settings=new x.DiagramSettings,this.shapeDescriptionManager=new h.ShapeDescriptionManager,this.shapeDescriptionManager.onShapeDecriptionChanged.add(this),this.model=new a.DiagramModel,this.selection=new p.Selection(this.model),this.onNativeAction=new O.EventDispatcher,this.apiController=new w.ApiController(this.onNativeAction,this.selection,this.model),this.permissionsProvider=new k.PermissionsProvider(this.apiController),this.permissionsProvider.onRequestOperation.add(this),this.routingModel=new R.ConnectorRoutingModel,this.modelManipulator=new I.ModelManipulator(this.model,this.routingModel,this.permissionsProvider),this.modelManipulator.onModelChanged.add(this.permissionsProvider),this.history=new s.History(this.modelManipulator,this),this.barManager=new l.BarManager(this),this.view=new y.ViewController(this.settings,this.barManager),this.commandManager=new C.CommandManager(this),this.eventManager=new g.EventManager(this),this.settings.onReadOnlyChanged.add(this.eventManager.mouseHandler),this.settings.onReadOnlyChanged.add(this.eventManager.visualizersManager),this.selection.onChanged.add(this.barManager),this.selection.onChanged.add(this.apiController),this.selection.onChanged.add(this.permissionsProvider),this.modelManipulator.commitItemsCreateChanges(),this.history.onChanged.add(this),this.toolboxManager=new S.ToolboxManager(this.shapeDescriptionManager),this.settings.onConnectorRoutingModeChanged.add(this.routingModel),T.ImageCache.instance.onReadyStateChanged.add(this)}return Object.defineProperty(Y.prototype,"operationSettings",{get:function(){return this.permissionsProvider.operationSettings},enumerable:!1,configurable:!0}),Y.prototype.cleanMarkup=function(J){this.toolboxManager.clean(J=J||function(j){V.RenderUtils.removeElement(j)}),this.barManager.clean(),this.render&&(this.settings.onZoomChanged.remove(this.render.view),this.settings.onViewChanged.remove(this.render.page),this.settings.onViewChanged.remove(this.render.view),this.settings.onReadOnlyChanged.remove(this.render),this.settings.onReadOnlyChanged.remove(this.render.selection),this.eventManager.cleanToolboxes(this.settings.onReadOnlyChanged),this.eventManager.onTextInputOperation.remove(this.render.input),this.eventManager.onTextInputOperation.remove(this.render.items),this.eventManager.onTextInputOperation.remove(this.render.selection),this.eventManager.onMouseOperation.remove(this.render.items),this.eventManager.onMouseOperation.remove(this.render.selection),this.eventManager.onMouseOperation.remove(this.render.view),this.eventManager.onMouseOperation.remove(this.render),this.eventManager.onVisualizersUpdate.remove(this.render.selection),this.modelManipulator.onModelSizeChanged.remove(this.render.view),this.modelManipulator.onModelSizeChanged.remove(this.render.page),this.modelManipulator.onModelChanged.remove(this.render.items),this.modelManipulator.onModelChanged.remove(this.render.page),this.modelManipulator.onModelChanged.remove(this.render.selection),this.selection.onChanged.remove(this.render.selection),this.selection.onChanged.remove(this.render.items),this.render.clean(J),this.render=void 0),this.measurer&&this.measurer instanceof P.TextMeasurer&&this.measurer.clean()},Y.prototype.dispose=function(){T.ImageCache.instance.onReadyStateChanged.remove(this)},Y.prototype.createDocument=function(J,j,ee){this.measurer||this.initMeasurer(J),this.render?this.render.replaceParent(J,j):(this.render=new d.RenderManager(J,this.eventManager,this.measurer,{pageColor:this.model.pageColor,modelSize:this.model.size,pageLandscape:this.model.pageLandscape,pageSize:this.model.pageSize,simpleView:this.settings.simpleView,readOnly:this.settings.readOnly,contextMenuEnabled:this.settings.contextMenuEnabled,gridSize:this.settings.gridSize,gridVisible:this.settings.showGrid,zoomLevel:this.settings.zoomLevel,autoZoom:this.settings.autoZoom,rectangle:this.model.getRectangle(!0)},j,ee),this.settings.onZoomChanged.add(this.render.view),this.settings.onViewChanged.add(this.render.page),this.settings.onViewChanged.add(this.render.view),this.settings.onReadOnlyChanged.add(this.render),this.settings.onReadOnlyChanged.add(this.render.selection),this.eventManager.onTextInputOperation.add(this.render.input),this.eventManager.onTextInputOperation.add(this.render.items),this.eventManager.onTextInputOperation.add(this.render.selection),this.eventManager.onTextInputOperation.add(this),this.eventManager.onMouseOperation.add(this.render.items),this.eventManager.onMouseOperation.add(this.render.selection),this.eventManager.onMouseOperation.add(this.render.view),this.eventManager.onMouseOperation.add(this.render),this.eventManager.onVisualizersUpdate.add(this.render.selection),this.modelManipulator.onModelSizeChanged.add(this.render.view),this.modelManipulator.onModelSizeChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.items),this.modelManipulator.onModelChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.selection),this.selection.onChanged.add(this.render.selection),this.selection.onChanged.add(this.render.items),this.render.update(!1),this.render.onNewModel(this.model.items),this.modelManipulator.commitItemsCreateChanges(),this.view.initialize(this.render.view),this.settings.zoomLevelWasChanged&&this.raiseCanvasViewActualZoomChanged(),this.selection.raiseSelectionChanged())},Y.prototype.createToolbox=function(J,j,ee,G){var q=this.toolboxManager.create(J,this.settings.readOnly,!0,j,ee,this.getToolboxAllowedShapeTypes.bind(this),G);this.settings.onReadOnlyChanged.add(q),q.onDragOperation.add(this),q.onDragOperation.add(this.apiController),this.eventManager.registerToolbox(q)},Y.prototype.createContextToolbox=function(J,j,ee,G,q){this.cleanContextToolbox(),this.contextToolbox=this.toolboxManager.create(J,this.settings.readOnly,!1,j,ee,this.getToolboxAllowedShapeTypes.bind(this),G),this.contextToolbox.onClickOperation.add(this),this.contextToolboxOnClick=q},Y.prototype.getToolboxAllowedShapeTypes=function(J){var j=this,ee=[];return this.permissionsProvider.beginUpdateUI(),J.forEach(function(G){j.permissionsProvider.canAddShapeFromToolbox(G)&&ee.push(G)}),this.permissionsProvider.endUpdateUI(),ee},Y.prototype.cleanContextToolbox=function(){this.contextToolbox&&(this.toolboxManager.clean(void 0,this.contextToolbox),this.contextToolbox=void 0,this.contextToolboxOnClick=void 0)},Y.prototype.refreshToolbox=function(J){this.permissionsProvider.clearCache(b.DiagramModelOperation.AddShapeFromToolbox),this.toolboxManager.refresh(J)},Y.prototype.applyToolboxFilter=function(J,j){return this.toolboxManager.applyFilter(J,j)},Y.prototype.notifyToolboxClick=function(J){this.contextToolboxOnClick&&this.contextToolboxOnClick(J)},Y.prototype.initMeasurer=function(J){this.measurer=new P.TextMeasurer(J)},Y.prototype.onDimensionChanged=function(){U.Browser.TouchUI||this.updateLayout(!0)},Y.prototype.updateLayout=function(J){void 0===J&&(J=!1),this.render&&this.render.update(!J)},Y.prototype.captureFocus=function(){this.render&&this.render.input.captureFocus()},Y.prototype.isFocused=function(){return!this.render||this.render.input.isFocused()},Y.prototype.registerBar=function(J){this.barManager.registerBar(J)},Y.prototype.updateBarItemsState=function(J,j){this.barManager.updateBarItemsState(J,j)},Y.prototype.getCommand=function(J){return this.commandManager.getCommand(J)},Y.prototype.getNativeItemByKey=function(J){var j=this.model.findItem(J);return j&&this.apiController.createNativeItem(j)},Y.prototype.getNativeItemByDataKey=function(J){var j=this.model.findItemByDataKey(J);return j&&this.apiController.createNativeItem(j)},Y.prototype.getNativeItems=function(){var J=this;return this.model.items.map(function(j){return J.apiController.createNativeItem(j)})},Y.prototype.getNativeSelectedItems=function(){var J=this;return this.selection.getKeys().map(function(j){return J.apiController.createNativeItem(J.model.findItem(j))})},Y.prototype.setSelectedItems=function(J){this.selection.set(J)},Y.prototype.scrollToItems=function(J){var j=this,ee=O.GeometryUtils.getCommonRectangle(J.map(function(G){return j.model.findItem(G).rectangle}));this.view.scrollIntoView(ee)},Y.prototype.setInitialStyleProperties=function(J){this.selection.inputPosition.setInitialStyleProperties(J)},Y.prototype.setInitialTextStyleProperties=function(J){this.selection.inputPosition.setInitialTextStyleProperties(J)},Y.prototype.setInitialConnectorProperties=function(J){this.selection.inputPosition.setInitialConnectorProperties(J)},Y.prototype.addCustomShapes=function(J){var j=this;J.forEach(function(ee){ee.apiController=j.apiController,ee.defaultWidth&&(ee.defaultWidth=E.ModelUtils.getTwipsValue(j.model.units,ee.defaultWidth)),ee.defaultHeight&&(ee.defaultHeight=E.ModelUtils.getTwipsValue(j.model.units,ee.defaultHeight)),ee.minWidth&&(ee.minWidth=E.ModelUtils.getTwipsValue(j.model.units,ee.minWidth)),ee.minHeight&&(ee.minHeight=E.ModelUtils.getTwipsValue(j.model.units,ee.minHeight)),ee.maxWidth&&(ee.maxWidth=E.ModelUtils.getTwipsValue(j.model.units,ee.maxWidth)),ee.maxHeight&&(ee.maxHeight=E.ModelUtils.getTwipsValue(j.model.units,ee.maxHeight)),j.shapeDescriptionManager.registerCustomShape(ee)})},Y.prototype.removeCustomShapes=function(J){var j=this;J.forEach(function(ee){j.shapeDescriptionManager.unregisterCustomShape(ee)})},Y.prototype.removeAllCustomShapes=function(){this.shapeDescriptionManager.unregisterAllCustomShapes()},Y.prototype.importModel=function(J){J.units=this.model.units,this.model=J,this.model.initializeKeyCounter(),this.apiController.model=J,this.onImportData()},Y.prototype.importItemsData=function(){this.onImportData()},Y.prototype.onImportData=function(){this.render&&(this.render.clear(),this.render.onNewModel(this.model.items)),this.permissionsProvider.clearCache(),this.selection.initialize(this.model),this.modelManipulator.initialize(this.model,this.routingModel),this.history.clear(),this.eventManager.initialize(),this.modelManipulator.commitPageChanges(),this.modelManipulator.commitItemsCreateChanges(),this.notifyViewChanged(),this.notifyHistoryChanged()},Y.prototype.createDocumentDataSource=function(J,j,ee,G,q){return this.documentDataSource=new v.DocumentDataSource(this,J,j,ee,G,q),this.apiController.setDataSource(this.documentDataSource),this.documentDataSource},Y.prototype.deleteDocumentDataSource=function(){this.apiController.setDataSource(null),delete this.documentDataSource},Y.prototype.applyShapeSizeSettings=function(J){this.settings.applyShapeSizeSettings(J,this.model.units)},Y.prototype.applyOperationSettings=function(J){this.permissionsProvider.operationSettings.applySettings(J)},Y.prototype.beginUpdateCanvas=function(){this.render&&(this.render.items.beginUpdate(),this.render.selection.beginUpdate())},Y.prototype.endUpdateCanvas=function(){this.render&&(this.render.items.endUpdate(),this.render.selection.endUpdate())},Y.prototype.beginUpdate=function(){this.barManager.beginUpdate(),this.apiController.beginUpdate(),this.eventManager.beginUpdate()},Y.prototype.endUpdate=function(){this.barManager.endUpdate(),this.apiController.endUpdate(),this.eventManager.endUpdate()},Y.prototype.notifyEdgeInserted=function(J,j,ee){this.onEdgeInserted?this.onEdgeInserted(J,j,ee):j(J)},Y.prototype.notifyEdgeUpdated=function(J,j,ee,G){this.onEdgeUpdated?this.onEdgeUpdated(J,j,ee,G):ee(J,j)},Y.prototype.notifyEdgeRemoved=function(J,j,ee,G){this.onEdgeUpdated?this.onEdgeRemoved(J,j,ee,G):ee(J,j)},Y.prototype.notifyNodeInserted=function(J,j,ee){this.onNodeInserted?this.onNodeInserted(J,j,ee):j(J)},Y.prototype.notifyNodeUpdated=function(J,j,ee,G){this.onNodeUpdated?this.onNodeUpdated(J,j,ee,G):ee(J,j)},Y.prototype.notifyNodeRemoved=function(J,j,ee,G){this.onNodeRemoved?this.onNodeRemoved(J,j,ee,G):ee(J,j)},Y.prototype.reloadInsertedItem=function(J){this.settings.reloadInsertedItemRequired&&this.reloadContent(J)},Y.prototype.reloadContent=function(J,j,ee,G){if(this.documentDataSource){this.isChangesLocked()&&(this.reloadContentNeeded=!0);var q=!0===G||void 0===G&&!this.reloadContentNeeded,Z=q?this.reloadContentByExternalChangesParameters:this.reloadContentParameters;Z.add(J,j,ee),this.isChangesLocked()||(this.reloadContentCore(Z,q),this.barManager.updateItemsState())}},Y.prototype.reloadContentCore=function(J,j){var ee=this,G=J.getData&&J.getData(),q=this.documentDataSource.refetchData(G&&G.nodeDataSource,G&&G.edgeDataSource);this.beginUpdateCanvas(),this.permissionsProvider.lockPermissions(),this.documentDataSource.updateModelItems(this.history,this.model,this.shapeDescriptionManager,this.selection,new W.DataLayoutParameters(this.settings,J.layoutParameters),j,J.dataKeys,function(Z){ee.modelManipulator.commitItemUpdateChanges(Z)},q,this.settings.snapToGrid,this.settings.gridSize,this.measurer),this.permissionsProvider.unlockPermissions(),this.endUpdateCanvas(),J.clear()},Y.prototype.notifyHistoryChanged=function(){this.documentDataSource?(this.shouldUpdateItemsByModel=!0,this.settings.readOnly||this.notifyDataChanges()):this.raiseOnChanged()},Y.prototype.notifyViewChanged=function(){this.settings.notifyViewChanged()},Y.prototype.notifyToolboxDragStart=function(J){this.render.notifyToolboxDragStart(J),this.onToolboxDragStart&&this.onToolboxDragStart()},Y.prototype.notifyToolboxDragEnd=function(J){this.render.notifyToolboxDragEnd(J),this.onToolboxDragEnd&&this.onToolboxDragEnd()},Y.prototype.notifyToolboxDraggingMouseMove=function(J){this.render&&this.render.notifyToolboxDraggingMouseMove(J)},Y.prototype.notifyTextInputStart=function(J,j,ee,G){this.onTextInputStart&&this.onTextInputStart()},Y.prototype.notifyTextInputEnd=function(J,j){this.onTextInputEnd&&this.onTextInputEnd()},Y.prototype.notifyTextInputPermissionsCheck=function(J,j){},Y.prototype.notifyToggleFullscreen=function(J){this.onToggleFullscreen&&this.onToggleFullscreen(J)},Y.prototype.notifyShowContextMenu=function(J,j){if(this.onShowContextMenu&&this.render){var ee=void 0;if(this.selection.getSelectedItems(!0).length>0){var G=E.ModelUtils.createRectangle(this.selection.getSelectedItems(!0)),q=this.render.getEventPointByModelPoint(G.createPosition()),Z=this.render.view.getAbsoluteSize(G.createSize());ee={x:q.x,y:q.y,width:Z.width,height:Z.height}}if(J)this.contextMenuPosition=new c.Point(J.x,J.y),this.onShowContextMenu(J.x,J.y,ee);else if(j){var X=this.render.getEventPointByModelPoint(j);this.contextMenuPosition=X.clone(),this.onShowContextMenu(X.x,X.y,ee)}}},Y.prototype.notifyHideContextMenu=function(){this.onHideContextMenu&&this.render&&this.onHideContextMenu()},Y.prototype.notifyShowContextToolbox=function(J,j,ee,G,q){if(this.onShowContextToolbox&&this.render){var Z=this.render.getEventPointByModelPoint(J);this.onShowContextToolbox(Z.x,Z.y,ee,G,q),this.render.view.notifyShowContextToolbox()}},Y.prototype.notifyHideContextToolbox=function(){this.onHideContextToolbox&&this.render&&(this.onHideContextToolbox(),this.render.view.notifyHideContextToolbox()),this.cleanContextToolbox()},Y.prototype.notifyShapeDescriptionChanged=function(J){this.modelManipulator.updateShapeDescription(J)},Y.prototype.notifyImageCacheReadyStateChanged=function(J){this.barManager.updateItemsState()},Y.prototype.raiseCanvasViewActualZoomChanged=function(){this.render.view.raiseActualZoomChanged()},Y.prototype.notifyRequestOperation=function(J,j){this.requestOperationByDataSource(J,j)||this.onRequestOperation&&this.onRequestOperation(J,j)},Y.prototype.requestOperationByDataSource=function(J,j){if(!this.documentDataSource||!this.documentDataSource.IsNodeParentIdMode()&&!this.documentDataSource.IsNodeItemsMode())return!1;if(J===b.DiagramModelOperation.ChangeConnection){var ee=j,G=ee.shape&&this.model.findItem(ee.shape.id),q=ee.connector&&this.model.findItem(ee.connector.id);if(!G||!q)return;if(ee.position===B.ConnectorPosition.End)for(var Z=0;Z<G.attachedConnectors.length;Z++){var X=G.attachedConnectors[Z];if(X!==q&&X.endItem&&X.endItem===G){ee.allowed=!1;break}}ee.allowed&&q.beginItem&&q.endItem&&this.isShapeParent(q.endItem,q.beginItem)&&(ee.allowed=!1)}return!j.allowed},Y.prototype.isShapeParent=function(J,j){if(J===j)return!0;for(var ee=0;ee<J.attachedConnectors.length;ee++){var G=J.attachedConnectors[ee];if(G.beginItem===J&&G.endItem){var q=G.endItem;if(q===j||this.isShapeParent(q,j))return!0}}return!1},Y.prototype.isChangesLocked=function(){return this.updateLockCount>0},Y.prototype.beginChangesNotification=function(){this.isChangesLocked()||this.changesLockChanged&&this.changesLockChanged(!0),this.updateLockCount++},Y.prototype.endChangesNotification=function(J){var j=this;this.updateLockCount--,this.isChangesLocked()||(this.changesLockChanged(!1),J||setTimeout(function(){j.notifyReloadContent(),j.notifyDataChanges()},0))},Y.prototype.changesLockChanged=function(J){J?this.lockedReadOnly=this.settings.readOnly:J=this.lockedReadOnly,this.commandManager.getCommand(C.DiagramCommand.ToggleReadOnly).execute(J)},Y.prototype.notifyDataChanges=function(){this.isChangesLocked()||(this.shouldUpdateItemsByModel&&(this.documentDataSource.updateItemsByModel(this.model),this.shouldUpdateItemsByModel=!1),this.raiseOnChanged())},Y.prototype.notifyReloadContent=function(){this.reloadContentNeeded&&(this.reloadContentParameters.empty||this.reloadContentCore(this.reloadContentParameters,!1),this.reloadContentByExternalChangesParameters.empty||this.reloadContentCore(this.reloadContentByExternalChangesParameters,!0),this.reloadContentNeeded=!1)},Y.prototype.raiseOnChanged=function(){this.onChanged&&this.onChanged()},Y}();u.DiagramControl=K},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ModelManipulator=void 0;var c=o(87),I=o(2),C=o(61),g=o(46),a=o(130),p=o(16),s=o(3),l=o(6),d=o(99),h=o(4),v=function(){function x(b,y,E){this.onModelChanged=new s.EventDispatcher,this.onModelSizeChanged=new s.EventDispatcher,this.initializeCore(b,y),this.permissionsProvider=E,this.imageLoader=new a.ImageLoader(this.updateShapeImage.bind(this))}return x.prototype.initialize=function(b,y){this.initializeCore(b,y),this.model.loadAllImages(this.imageLoader),this.updateModelSize()},x.prototype.initializeCore=function(b,y){var E=this;this.model=b,this.routingModel=y,this.routingModel&&(this.routingModel.initialize(b),b.iterateItems(function(S){if(S instanceof l.Connector){var O=E.routingModel.createStrategy(S.properties.lineOption);O?S.changeRoutingStrategy(O):S.invalidateRenderPoints()}}))},x.prototype.commitPageChanges=function(){this.raisePageSizeChanged(this.model.pageSize.clone(),this.model.pageLandscape),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageColorChanged(this.model.pageColor),this.raiseModelRectangleChanged(h.ModelUtils.createRectangle(this.model.items))},x.prototype.commitItemsCreateChanges=function(){C.Diagnostics.timer("new model: model changes"),this.commitItemsChangesCore(d.ItemChangeType.Create,this.model.items),C.Diagnostics.endTimer()},x.prototype.commitItemUpdateChanges=function(b){this.commitItemsChangesCore(d.ItemChangeType.UpdateStructure,[b])},x.prototype.commitItemsChangesCore=function(b,y){var E=[];y.forEach(function(S){E.push(new d.ItemChange(S,b))}),E.length&&this.raiseModelChanged(E)},x.prototype.insertToContainer=function(b,y){if(b.container&&y&&b.container.key!==y.key)throw Error("To insert an item to a container it's necessary to remove it from the current container.");y&&(-1===y.children.indexOf(b)&&y.children.push(b),b.container=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Update)]))},x.prototype.removeFromContainer=function(b){if(b.container){var y=b.container.children.indexOf(b);b.container.children.splice(y,1),b.container=void 0,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Update)])}},x.prototype.changeStyle=function(b,y,E){this.changeStyleCore(b,b.style,y,E)},x.prototype.changeStyleText=function(b,y,E){this.changeStyleCore(b,b.styleText,y,E)},x.prototype.changeStyleCore=function(b,y,E,S){void 0!==S?y[E]=S:delete y[E],this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeZIndex=function(b,y){b.zIndex=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Update)])},x.prototype.changeLocked=function(b,y){b.locked=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateClassName)])},x.prototype.changeCustomData=function(b,y){b.customData=s.ObjectUtils.cloneObject(y),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.addShape=function(b,y){if(b.attachedConnectors.length)throw Error("A creating shape should not contain existing connectors.");return b.key=void 0!==y?y:this.model.getNextKey(),this.insertShape(b)},x.prototype.insertShape=function(b){this.model.pushItem(b);var y=this.permissionsProvider.canAddItems([b]);return this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Create,y)]),this.model.loadAllImages(this.imageLoader),b},x.prototype.resizeShape=function(b,y,E){b.position=y,b.size=E;var S=this.permissionsProvider.isStoredPermissionsGranted(),O=this.getInteractingItem(b,p.DiagramModelOperation.ResizeShape);if(O){var w=O.size.clone(),T=b.size.clone();T.equals(w)||(S=this.permissionsProvider.canResizeShapes([{shape:b,size:T,oldSize:w}]))}var k=this.getInteractingItem(b,p.DiagramModelOperation.MoveShape);if(k){var R=k.position.clone(),P=b.position.clone();P.equals(R)||(S=this.permissionsProvider.canMoveShapes([{shape:b,position:P,oldPosition:R}]))}this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,S)])},x.prototype.moveShape=function(b,y){b.position=y;var E=this.permissionsProvider.isStoredPermissionsGranted();this.getInteractingItem(b,p.DiagramModelOperation.AddShape)&&(E=this.permissionsProvider.canAddItems([b]));var S=this.getInteractingItem(b,p.DiagramModelOperation.MoveShape);if(S){var O=S.position.clone(),w=b.position.clone();w.equals(O)||(E=this.permissionsProvider.canMoveShapes([{shape:b,position:w,oldPosition:O}]))}this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,E)])},x.prototype.changeShapeParameters=function(b,y){b.parameters.forEach(function(E){var S=y.get(E.key);S&&(E.value=S.value)}),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeShapeText=function(b,y){b.text=y,this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.changeShapeImage=function(b,y){b.image=y;var E=g.ImageCache.instance.createUnloadedInfoByShapeImageInfo(y);this.imageLoader.load(E),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.changeShapeExpanded=function(b,y){b.expanded=y,b.toggleExpandedSize(),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.deleteShape=function(b,y){if(b.attachedConnectors.length)throw Error("A removing shape should not contain existing connectors.");this.removeShape(b,y)},x.prototype.removeShape=function(b,y){this.model.removeItem(b),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Remove,y)])},x.prototype.updateShapeImage=function(b){if(b.imageUrl){var y=this.model.findShapesByImageUrl(b.imageUrl);y.forEach(function(E){b.base64?E.image.loadBase64Content(b.base64):E.image.setUnableToLoadFlag()}),this.commitItemsChangesCore(d.ItemChangeType.UpdateStructure,y)}},x.prototype.updateShapeDescription=function(b){var y=this.model.findShapesByDescription(b);this.commitItemsChangesCore(d.ItemChangeType.UpdateProperties,y)},x.prototype.addConnector=function(b,y){if(b.beginItem||b.endItem)throw Error("Creating connector should not contain begin/end items");return b.key=void 0!==y?y:this.model.getNextKey(),this.insertConnector(b)},x.prototype.insertConnector=function(b){this.model.pushItem(b);var y=this.routingModel.createStrategy(b.properties.lineOption);y?b.changeRoutingStrategy(y):b.clearRoutingStrategy();var E=this.permissionsProvider.canAddItems([b]);return this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Create,E)]),b},x.prototype.deleteConnector=function(b){if(b.beginItem||b.endItem)throw Error("Creating connector should not contain begin/end items");this.removeConnector(b)},x.prototype.removeConnector=function(b){this.model.removeItem(b);var y=this.permissionsProvider.canDeleteItems([b]);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.Remove,y)])},x.prototype.addDeleteConnectorPoint=function(b,y){var E=this.getConnectorInteractingPoints(b);y(b),this.addDeleteConnectorPointCore(b,E)},x.prototype.moveConnectorPoint=function(b,y,E){E(b),this.moveConnectorPointCore(b,y)},x.prototype.changeConnectorPoints=function(b,y){var E=this;y(b),b.points.forEach(function(S,O){return E.moveConnectorPointCore(b,O)})},x.prototype.moveConnectorPointCore=function(b,y){var E=this.getInteractingItem(b),S=this.permissionsProvider.isStoredPermissionsGranted();if(E){var O=0<y&&y<b.points.length-1;if(O=(O=O||0===y&&!b.beginItem)||y===b.points.length-1&&!b.endItem){var w=E.points.map(function(k){return k.clone()}),T=b.points.map(function(k){return k.clone()});s.GeometryUtils.arePointsEqual(w,T)||(S=this.permissionsProvider.canChangeConnectorPoints(b,w,T))}}this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,S)])},x.prototype.getConnectorInteractingPoints=function(b){var y=this.getInteractingItem(b);return y?y.points.map(function(E){return E.clone()}):b.points.map(function(E){return E.clone()})},x.prototype.addDeleteConnectorPointCore=function(b,y){var E=this.permissionsProvider.isStoredPermissionsGranted(),S=b.points.map(function(O){return O.clone()});s.GeometryUtils.arePointsEqual(y,S)||(E=this.permissionsProvider.canChangeConnectorPoints(b,y,S)),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,E)])},x.prototype.addConnection=function(b,y,E,S){var O=b.getExtremeItem(S),w=b.getExtremeConnectionPointIndex(S);if(O!==y||w!==E){if(O)throw Error("Connector is already connected");y.attachedConnectors.push(b),S===l.ConnectorPosition.Begin?(b.beginItem=y,b.beginConnectionPointIndex=E):(b.endItem=y,b.endConnectionPointIndex=E),b.invalidateRenderPoints();var T=this.permissionsProvider.canChangeConnection(b,y,void 0,S,E);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,T)])}},x.prototype.setConnectionPointIndex=function(b,y,E){if(!b.getExtremeItem(E))throw Error("Connection should be connected");E===l.ConnectorPosition.Begin?b.beginConnectionPointIndex=y:b.endConnectionPointIndex=y,b.invalidateRenderPoints();var S=b.getExtremeItem(E),O=this.permissionsProvider.canChangeConnection(b,S,S,E,y);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,O)])},x.prototype.deleteConnection=function(b,y){var E=b.getExtremeItem(y);if(E){E.attachedConnectors.splice(E.attachedConnectors.indexOf(b),1),y===l.ConnectorPosition.Begin?(b.beginItem=null,b.beginConnectionPointIndex=-1):(b.endItem=null,b.endConnectionPointIndex=-1),b.invalidateRenderPoints();var S=this.permissionsProvider.canChangeConnection(b,void 0,E,y,-1);this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties,S)])}},x.prototype.changeConnectorProperty=function(b,y,E){if(b.properties[y]=E,"lineOption"===y){var S=this.routingModel?this.routingModel.createStrategy(b.properties.lineOption):void 0;S?b.changeRoutingStrategy(S):b.clearRoutingStrategy()}else b.invalidateRenderPoints();this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeConnectorText=function(b,y,E){b.setText(y,E),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateStructure)])},x.prototype.changeConnectorTextPosition=function(b,y,E){var S=b.getText(y);b.setText(null,y),b.setText(S,E),this.raiseModelChanged([new d.ItemChange(b,d.ItemChangeType.UpdateProperties)])},x.prototype.changeModelSize=function(b,y){this.model.size.width=b.width,this.model.size.height=b.height,this.raiseModelSizeChanged(this.model.size.clone(),y),(y.left||y.top)&&(this.model.snapStartPoint=this.model.snapStartPoint.clone().offset(y.left,y.top),this.raiseSnapPointChange(this.model.snapStartPoint))},x.prototype.changePageSize=function(b){this.model.pageSize.equals(b)||(this.model.pageSize=b,this.model.size=new I.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape))},x.prototype.changePageLandscape=function(b){this.model.pageLandscape!==b&&(this.model.pageLandscape=b,this.model.pageSize.width!==this.model.pageSize.height&&(this.model.size=new I.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape)))},x.prototype.changePageColor=function(b){this.model.pageColor!==b&&(this.model.pageColor=b,this.raisePageColorChanged(b))},x.prototype.updateModelSize=function(){var b=this.getModelSizeUpdateOffset();if(!b.isEmpty()){var y=Math.max(this.model.size.width+b.left+b.right,this.model.pageWidth),E=Math.max(this.model.size.height+b.top+b.bottom,this.model.pageHeight);this.model.size=new I.Size(y,E)}},x.prototype.getModelSizeUpdateOffset=function(){var b=this.model.getRectangle(!1),y=this.model.getRectangle(!0);return y.equals(b)||this.raiseModelRectangleChanged(y),this.createModelRectangleOffset(y)},x.prototype.createModelRectangleOffset=function(b){var y=this.model.pageWidth,E=this.model.pageHeight,S=this.model.size;return new c.Offsets(-Math.floor(b.x/y)*y,-Math.floor((S.width-b.right)/y)*y,-Math.floor(b.y/E)*this.model.pageHeight,-Math.floor((S.height-b.bottom)/E)*E)},x.prototype.raiseModelChanged=function(b){this.onModelChanged.raise1(function(y){return y.notifyModelChanged(b)})},x.prototype.raisePageColorChanged=function(b){this.onModelChanged.raise1(function(y){return y.notifyPageColorChanged(b)})},x.prototype.raisePageSizeChanged=function(b,y){this.onModelChanged.raise1(function(E){return E.notifyPageSizeChanged(b,y)})},x.prototype.raiseModelSizeChanged=function(b,y){this.onModelSizeChanged.raise1(function(E){return E.notifyModelSizeChanged(b,y)})},x.prototype.raiseModelRectangleChanged=function(b){this.onModelSizeChanged.raise1(function(y){return y.notifyModelRectangleChanged(b)})},x.prototype.raiseSnapPointChange=function(b){this.onModelSizeChanged.raise1(function(y){return y.notifySnapPointPositionChanged(b)})},x.prototype.getInteractingItem=function(b,y){return this.permissionsProvider.getInteractingItem(b,y)},x}();u.ModelManipulator=v},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventManager=void 0;var c=o(304),I=o(3),C=o(323),g=o(154),a=o(324),p=o(155),s=o(330),l=o(331),d=o(18),h=o(25),v=function(){function x(b){this.onMouseOperation=new I.EventDispatcher,this.onTextInputOperation=new I.EventDispatcher,this.toolboxes=[],this.control=b,this.visualizersManager=I.EventUtils.isTouchMode()?new s.VisualizerTouchManager(b.selection,b.model,this,b.settings):new p.VisualizerManager(b.selection,b.model,this,b.settings),this.onMouseOperation.add(this.visualizersManager),this.contextMenuHandler=d.Browser.TouchUI?new a.ContextMenuTouchHandler(b.selection):new g.ContextMenuHandler,this.contextMenuHandler.onVisibilityChanged.add(b),this.onMouseOperation.add(this.contextMenuHandler),this.onTextInputOperation.add(this.contextMenuHandler),this.contextToolboxHandler=new l.ContextToolboxHandler,this.contextToolboxHandler.onVisibilityChanged.add(b),this.contextToolboxHandler.onVisibilityChanged.add(this.contextMenuHandler),this.mouseHandler=new c.MouseHandler(b.history,b.selection,b.model,this,b.settings.readOnly,b.view,this.visualizersManager,this.contextToolboxHandler,b.shapeDescriptionManager,b.settings,b.permissionsProvider),this.textInputHandler=new C.TextInputHandler(b),this.visualizersManager.onVisualizersUpdate.add(this.mouseHandler)}return Object.defineProperty(x.prototype,"onVisualizersUpdate",{get:function(){return this.visualizersManager.onVisualizersUpdate},enumerable:!1,configurable:!0}),x.prototype.registerToolbox=function(b){this.toolboxes.push(b)},x.prototype.cleanToolboxes=function(b){this.toolboxes.forEach(function(y){b.remove(y)}),this.toolboxes=[]},x.prototype.initialize=function(){this.visualizersManager.initialize(this.control.model),this.mouseHandler.initialize(this.control.model)},x.prototype.beginUpdate=function(b){this.contextMenuHandler.beginUpdate(),this.visualizersManager.beginUpdate()},x.prototype.endUpdate=function(){this.contextMenuHandler.endUpdate(),this.visualizersManager.endUpdate()},x.prototype.onMouseDown=function(b){this.mouseHandler.onMouseDown(b),this.contextMenuHandler.onMouseDown(b),this.visualizersManager.onMouseDown(b),this.contextToolboxHandler.onMouseDown(b)},x.prototype.onMouseMove=function(b){this.processDragging(b),this.mouseHandler.onMouseMove(b)},x.prototype.onMouseUp=function(b){this.contextToolboxHandler.onMouseUp(b),this.mouseHandler.onMouseUp(b),this.contextMenuHandler.onMouseUp(b),this.visualizersManager.onMouseUp(b),this.processDragging(b)},x.prototype.onMouseEnter=function(b){this.visualizersManager.onMouseEnter(b)},x.prototype.onMouseLeave=function(b){this.visualizersManager.onMouseLeave(b)},x.prototype.onDblClick=function(b){this.mouseHandler.onMouseDblClick(b),this.textInputHandler.onDblClick(b),this.control.apiController.notifyDblClick(b)},x.prototype.onClick=function(b){this.mouseHandler.onMouseClick(b),this.control.apiController.notifyClick(b)},x.prototype.onContextMenu=function(b){this.contextMenuHandler.onContextMenu(b)},x.prototype.onLongTouch=function(b){this.mouseHandler.onLongTouch(b),this.contextMenuHandler.onLongTouch(b)},x.prototype.onBlur=function(b){this.contextMenuHandler.onBlur(b),this.contextToolboxHandler.onBlur(b),this.visualizersManager.onBlur(b)},x.prototype.onFocus=function(b){this.contextMenuHandler.onFocus(b),this.contextToolboxHandler.onFocus(b),this.visualizersManager.onFocus(b)},x.prototype.onKeyDown=function(b){var y=b.getShortcutCode();this.onShortcut(y)?(this.visualizersManager.updateConnectionPoints(),this.contextMenuHandler.onShortcut(b),this.contextToolboxHandler.onShortcut(b),b.preventDefault=!0):this.isShortcutForFocusInput(y)&&(b.preventDefault=!0),this.contextMenuHandler.onKeyDown(b),this.contextToolboxHandler.onKeyDown(b),this.mouseHandler.onKeyDown(b)},x.prototype.onKeyUp=function(b){this.mouseHandler.onKeyUp(b)},x.prototype.onTextInputBlur=function(b){this.textInputHandler.onBlur(b),this.contextMenuHandler.onTextInputBlur(b)},x.prototype.onTextInputFocus=function(b){this.textInputHandler.onFocus(b),this.contextMenuHandler.onTextInputFocus(b)},x.prototype.onTextInputKeyDown=function(b){this.textInputHandler.onKeyDown(b)},x.prototype.onShortcut=function(b){return!!this.control.commandManager.processShortcut(b)||!!this.mouseHandler.onShortcut(b)||void 0},x.prototype.isShortcutForFocusInput=function(b){return b===h.KeyCode.Delete||b===(h.KeyCode.Delete|h.ModifierKey.Ctrl)||b===(h.KeyCode.Delete|h.ModifierKey.Meta)||b===h.KeyCode.Backspace||b===(h.KeyCode.Backspace|h.ModifierKey.Ctrl)||b===(h.KeyCode.Backspace|h.ModifierKey.Shift)||b===(h.KeyCode.Backspace|h.ModifierKey.Meta)||b===h.KeyCode.Home||b===h.KeyCode.End||b===h.KeyCode.Up||b===(h.KeyCode.Up|h.ModifierKey.Ctrl)||b===(h.KeyCode.Up|h.ModifierKey.Meta)||b===h.KeyCode.Down||b===(h.KeyCode.Down|h.ModifierKey.Ctrl)||b===(h.KeyCode.Down|h.ModifierKey.Meta)||b===h.KeyCode.Left||b===(h.KeyCode.Left|h.ModifierKey.Ctrl)||b===(h.KeyCode.Left|h.ModifierKey.Meta)||b===h.KeyCode.Right||b===(h.KeyCode.Right|h.ModifierKey.Ctrl)||b===(h.KeyCode.Right|h.ModifierKey.Meta)},x.prototype.onPaste=function(b){!this.textInputHandler.isTextInputActive()&&this.control.commandManager.processPaste(b.clipboardData)&&(this.visualizersManager.updateConnectionPoints(),b.preventDefault=!0)},x.prototype.onMouseWheel=function(b){this.mouseHandler.onWheel(b)&&(b.preventDefault=!0)},x.prototype.isFocused=function(){return this.control.isFocused()},x.prototype.processDragging=function(b){var y=this.getDraggingEvent();y&&this.draggingEvent!==y?(this.draggingEvent=y,this.mouseHandler.onDragStart(this.draggingEvent),this.control.captureFocus()):!y&&this.draggingEvent&&(delete this.draggingEvent,this.mouseHandler.onDragEnd(b))},x.prototype.getDraggingEvent=function(){return this.toolboxes.filter(function(b){return b.draggingObject}).map(function(b){return b.draggingObject.evt})[0]},x.prototype.onDocumentDragStart=function(b){this.control.beginUpdate(),this.control.captureFocus(),this.onMouseOperation.raise("notifyDragStart",b)},x.prototype.onDocumentDragEnd=function(b){this.onMouseOperation.raise("notifyDragEnd",b),this.control.endUpdate(),this.control.barManager.updateItemsState()},x.prototype.onDocumentDragScrollStart=function(){this.onMouseOperation.raise1(function(b){return b.notifyDragScrollStart()})},x.prototype.onDocumentDragScrollEnd=function(){this.onMouseOperation.raise1(function(b){return b.notifyDragScrollEnd()})},x.prototype.onDocumentClick=function(b){this.control.beginUpdate(),this.control.endUpdate(),this.control.barManager.updateItemsState()},x.prototype.raiseTextInputStart=function(b,y,E,S){this.onTextInputOperation.raise("notifyTextInputStart",b,y,E,S)},x.prototype.raiseTextInputEnd=function(b,y){this.onTextInputOperation.raise("notifyTextInputEnd",b,y)},x.prototype.raiseTextInputPermissionsCheck=function(b,y){this.onTextInputOperation.raise("notifyTextInputPermissionsCheck",b,y)},x.prototype.canFinishTextEditing=function(){return this.textInputHandler.canFinishTextEditing()},x}();u.EventManager=v},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandler=void 0;var c=o(147),I=o(11),C=o(0),g=o(4),a=o(321),p=o(152),s=o(322),l=o(25),d=o(3),h=function(){function v(x,b,y,E,S,O,w,T,k,R,P){this.history=x,this.selection=b,this.model=y,this.eventManager=E,this.readOnly=S,this.view=O,this.visualizerManager=w,this.contextToolboxHandler=T,this.shapeDescriptionManager=k,this.settings=R,this.permissionsProvider=P,this.finishStateLock=0,this.initialize(y),this.selection.onChanged.add(this)}return v.prototype.initialize=function(x){this.model=x,this.allowMultipleSelection=!0,this.allowCopyDiagramItems=!0,this.allowSnapToCellOnDragDiagramItem=!0,this.allowSnapToCellOnDragPoint=!0,this.allowSnapToCellOnResizeShape=!0,this.allowFixedDrag=!0,this.allowZoomOnWheel=!0,this.allowScrollPage=!0,this.shouldScrollPage=!1,this.copyDiagramItemsByCtrlAndShift=!1,this.startScrollingPageByCtrl=!1,this.initializeDefaultState()},v.prototype.initializeDefaultState=function(){this.defaultState=this.readOnly?d.EventUtils.isTouchMode()?new a.MouseHandlerDefaultReadOnlyTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new p.MouseHandlerDefaultReadOnlyState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):d.EventUtils.isTouchMode()?new s.MouseHandlerDefaultTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new c.MouseHandlerDefaultState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings),this.switchToDefaultState()},v.prototype.onMouseDown=function(x){this.mouseDownEvent=x,this.state.onMouseDown(x)},v.prototype.onMouseMove=function(x){this.state.onMouseMove(x)},v.prototype.onMouseUp=function(x){this.state.onMouseUp(x)},v.prototype.onMouseDblClick=function(x){this.state.onMouseDblClick(x)},v.prototype.onMouseClick=function(x){this.state.onMouseClick(x)},v.prototype.onLongTouch=function(x){if(x.touches&&!(x.touches.length>1)){var b=x.source.key;void 0===b?this.selection.clear():this.selection.hasKey(b)?this.selection.remove(b):this.selection.add(b)}},v.prototype.onShortcut=function(x){return this.state.onShortcut(x)},v.prototype.onWheel=function(x){return this.state.onMouseWheel(x)},v.prototype.onDragStart=function(x){this.state.onDragStart(x)},v.prototype.onDragEnd=function(x){this.state.onDragEnd(x)},v.prototype.onKeyDown=function(x){this.state.onKeyDown(x)},v.prototype.onKeyUp=function(x){this.state.onKeyUp(x)},v.prototype.showContextToolbox=function(x,b,y,E,S,O){this.contextToolboxHandler.showContextToolbox(x,b,y,E,S,O)},v.prototype.hideContextToolbox=function(x){this.contextToolboxHandler.hideContextToolbox(x)},v.prototype.canScrollPage=function(x){return this.startScrollingPageByCtrl?!!this.hasCtrlModifier(x.modifiers)&&(!this.copyDiagramItemsByCtrlAndShift||x.source.type!==I.MouseEventElementType.Shape&&x.source.type!==I.MouseEventElementType.Connector):this.allowScrollPage&&this.shouldScrollPage},v.prototype.canMultipleSelection=function(x){return this.allowMultipleSelection&&this.hasCtrlOrShiftModifier(x.modifiers)},v.prototype.canCopySelectedItems=function(x){return!!this.allowCopyDiagramItems&&(this.copyDiagramItemsByCtrlAndShift?this.hasCtrlAndShiftModifier(x.modifiers):this.hasAltModifier(x.modifiers))},v.prototype.canCalculateFixedPosition=function(x){return!(!this.allowFixedDrag||!this.hasShiftModifier(x.modifiers)||this.copyDiagramItemsByCtrlAndShift&&this.hasCtrlModifier(x.modifiers))},v.prototype.canStartZoomOnWheel=function(x){return this.allowZoomOnWheel&&this.hasCtrlModifier(x.modifiers)},v.prototype.canFinishZoomOnWheel=function(x){return this.allowZoomOnWheel&&!this.hasCtrlModifier(x.modifiers)},v.prototype.onStartScrollPageByKeyboard=function(x){this.canStartScrollingPageByKeyboard(x)&&(this.raiseDragScrollStart(),this.shouldScrollPage=!0)},v.prototype.onFinishScrollPageByKeyboard=function(x){this.canEndScrollingPageByKeyboard(x)&&this.finishScrollingPage()},v.prototype.onFinishScrollPageByMouse=function(x){this.canEndScrollingPage(x)&&this.finishScrollingPage()},v.prototype.finishScrollingPage=function(){this.shouldScrollPage=!1,this.raiseDragScrollEnd(),this.switchToDefaultState()},v.prototype.hasCtrlOrShiftModifier=function(x){return this.hasCtrlModifier(x)||this.hasShiftModifier(x)},v.prototype.hasCtrlAndShiftModifier=function(x){return this.hasCtrlModifier(x)&&this.hasShiftModifier(x)},v.prototype.hasCtrlModifier=function(x){return(x&l.ModifierKey.Ctrl)>0},v.prototype.hasAltModifier=function(x){return(x&l.ModifierKey.Alt)>0},v.prototype.hasShiftModifier=function(x){return(x&l.ModifierKey.Shift)>0},v.prototype.canStartScrollingPageByKeyboard=function(x){return!this.startScrollingPageByCtrl&&!this.shouldScrollPage&&x.keyCode===l.KeyCode.Space},v.prototype.canEndScrollingPageByKeyboard=function(x){return!this.startScrollingPageByCtrl&&x.keyCode===l.KeyCode.Space},v.prototype.canEndScrollingPage=function(x){return!this.startScrollingPageByCtrl||this.hasCtrlModifier(x.modifiers)},v.prototype.getSnappedPointOnDragDiagramItem=function(x,b,y,E,S){var O=this.getSnapToCellOnDragDiagramItem(x);return new C.Point(this.getSnappedPos(this.getFixedXPosition(x,b,y,S),!0,O),this.getSnappedPos(this.getFixedYPosition(x,b,E,S),!1,O))},v.prototype.getSnappedPointOnDragPoint=function(x,b,y){var E=this.getSnapToCellOnDragPoint(x),S=this.getSnappedPos(b.x,!0,E),O=this.getSnappedPos(b.y,!1,E);return void 0===y||Math.pow(b.x-S,2)+Math.pow(b.y-O,2)<Math.pow(b.x-y.x,2)+Math.pow(b.y-y.y,2)?new C.Point(S,O):y},v.prototype.getSnappedOffsetOnDragPoint=function(x,b){var y=this.getSnapToCellOnDragPoint(x);return new C.Point(this.getSnappedPos(x.modelPoint.x-b.x,!0,y),this.getSnappedPos(x.modelPoint.y-b.y,!1,y))},v.prototype.lockAspectRatioOnShapeResize=function(x){return this.hasShiftModifier(x.modifiers)},v.prototype.getSnappedPositionOnResizeShape=function(x,b,y){return this.getSnapToCellOnResizeShape(x)?g.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,b,y):b},v.prototype.getSnappedPos=function(x,b,y){return y?g.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,x,b):x},v.prototype.getFixedXPosition=function(x,b,y,E){return y?b.x:b.x+x.modelPoint.x-E.x},v.prototype.getFixedYPosition=function(x,b,y,E){return y?b.y:b.y+x.modelPoint.y-E.y},v.prototype.getSnapToCellOnDragDiagramItem=function(x){return this.allowSnapToCellOnDragDiagramItem&&this.settings.snapToGrid&&!this.hasCtrlModifier(x.modifiers)},v.prototype.getSnapToCellOnDragPoint=function(x){return this.allowSnapToCellOnDragPoint&&this.settings.snapToGrid&&!this.hasCtrlModifier(x.modifiers)},v.prototype.getSnapToCellOnResizeShape=function(x){return this.allowSnapToCellOnResizeShape&&this.settings.snapToGrid&&!this.hasCtrlModifier(x.modifiers)},v.prototype.tryUpdateModelSize=function(x){this.lockPermissions(),g.ModelUtils.tryUpdateModelRectangle(this.history,x),this.unlockPermissions()},v.prototype.canAddDiagramItemToSelection=function(x){return x.source.key&&(x.button===I.MouseButton.Left||x.button===I.MouseButton.Right)},v.prototype.addDiagramItemToSelection=function(x){this.pressedDiagramItemKey=x.source.key,this.pressedDiagramItemInSelection=this.selection.hasKey(this.pressedDiagramItemKey),this.canMultipleSelection(x)?this.selection.add(x.source.key):this.changeSingleSelection(x.source.key)},v.prototype.canRemoveDiagramItemToSelection=function(x){return this.pressedDiagramItemKey&&x.source.key&&this.pressedDiagramItemKey===x.source.key&&(x.button===I.MouseButton.Left||x.button===I.MouseButton.Right)},v.prototype.removeDiagramItemFromSelection=function(x,b){this.pressedDiagramItemInSelection&&this.selection.getKeys().length>1&&x===I.MouseButton.Left&&this.selection.remove(b)},v.prototype.changeSingleSelection=function(x){this.selection.hasKey(x)||this.selection.set([x])},v.prototype.notifySelectionChanged=function(x){this.pressedDiagramItemKey&&!this.selection.hasKey(this.pressedDiagramItemKey)&&(this.pressedDiagramItemKey=void 0,this.pressedDiagramItemInSelection=!1)},v.prototype.raiseDragStart=function(x){this.eventManager.onDocumentDragStart(x)},v.prototype.raiseDragEnd=function(x){this.eventManager.onDocumentDragEnd(x)},v.prototype.raiseDragScrollStart=function(){this.eventManager.onDocumentDragScrollStart()},v.prototype.raiseDragScrollEnd=function(){this.eventManager.onDocumentDragScrollEnd()},v.prototype.raiseClick=function(x){this.eventManager.onDocumentClick(x)},v.prototype.beginStorePermissions=function(){this.permissionsProvider.beginStorePermissions()},v.prototype.endStorePermissions=function(){this.permissionsProvider.endStorePermissions()},v.prototype.isStoredPermissionsGranted=function(){return this.permissionsProvider.isStoredPermissionsGranted()},v.prototype.lockPermissions=function(){this.permissionsProvider.lockPermissions()},v.prototype.unlockPermissions=function(){this.permissionsProvider.unlockPermissions()},v.prototype.canPerformChangeConnection=function(x,b){var y=!0;return x?y=this.permissionsProvider.canChangeConnection(x,b.item,b.oldItem,b.position,b.connectionPointIndex):b.item&&(y=this.permissionsProvider.canChangeConnection(void 0,b.item,b.oldItem,b.position,b.connectionPointIndex)),y},v.prototype.canPerformChangeConnectionOnUpdateUI=function(x,b){this.permissionsProvider.beginUpdateUI();var y=this.canPerformChangeConnection(x,b);return this.permissionsProvider.endUpdateUI(),y},v.prototype.canFinishTextEditing=function(){return this.eventManager.canFinishTextEditing()},v.prototype.restartState=function(){this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.state.start()},v.prototype.switchToDefaultState=function(){this.switchState(this.defaultState)},v.prototype.switchState=function(x){this.newState=x,this.state&&!this.finishStateLock&&(this.finishStateLock++,this.state.finish(),this.finishStateLock--),this.newState&&(this.state=this.newState,this.state.start(),this.newState=void 0)},v.prototype.addInteractingItem=function(x,b){this.permissionsProvider.addInteractingItem(x,b)},v.prototype.clearInteractingItems=function(){this.permissionsProvider.clearInteractingItems()},v.prototype.notifyReadOnlyChanged=function(x){this.readOnly=x,this.initializeDefaultState()},v.prototype.notifySelectionRectShow=function(x){},v.prototype.notifySelectionRectHide=function(){},v.prototype.notifyResizeInfoShow=function(x,b){},v.prototype.notifyResizeInfoHide=function(){},v.prototype.notifyConnectionPointsShow=function(x,b,y,E){this.state.onConnectionPointsShow(x,b)},v.prototype.notifyConnectionPointsHide=function(){},v.prototype.notifyConnectionTargetShow=function(x,b){this.state.onConnectionTargetShow(x,b)},v.prototype.notifyConnectionTargetHide=function(){},v.prototype.notifyContainerTargetShow=function(x,b){},v.prototype.notifyContainerTargetHide=function(){},v.prototype.notifyExtensionLinesShow=function(x){},v.prototype.notifyExtensionLinesHide=function(){},v}();u.MouseHandler=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveConnectorPointState=void 0;var C=o(0),g=o(148),a=o(6),p=o(4),s=o(32),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return I(h,d),h.prototype.onMouseDown=function(v){this.connector=this.model.findConnector(v.source.key),this.pointIndex=parseInt(v.source.value),0===this.pointIndex?this.pointPosition=a.ConnectorPosition.Begin:this.pointIndex===this.connector.points.length-1&&(this.pointPosition=a.ConnectorPosition.End),this.handler.addInteractingItem(this.connector),d.prototype.onMouseDown.call(this,v)},h.prototype.onApplyChanges=function(v){this.connector.properties.lineOption===s.ConnectorLineOption.Orthogonal&&0!==this.pointIndex&&this.pointIndex!==this.connector.points.length-1||d.prototype.onApplyChanges.call(this,v)},h.prototype.onFinishWithChanges=function(){d.prototype.onFinishWithChanges.call(this),p.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),this.handler.tryUpdateModelSize()},h.prototype.getSnappedPoint=function(v,x){var b=this.connector.points,y=this.pointIndex;if(0<y&&y<b.length-1){var S=x.x;return this.handler.getSnappedPointOnDragPoint(v,x,new C.Point(S,b[y+1].y-(b[y+1].y-b[y-1].y)/(b[y+1].x-b[y-1].x)*(b[y+1].x-S)))}return this.handler.getSnappedPointOnDragPoint(v,x)},h}(g.MouseHandlerMoveConnectorPointStateBase);u.MouseHandlerMoveConnectorPointState=l},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerResizeShapeState=void 0;var C=o(2),g=o(0),a=o(11),p=o(34),s=o(4),l=o(7),d=o(16),h=function(v){function x(b,y,E,S,O,w){var T=v.call(this,b,y)||this;return T.model=E,T.selection=S,T.visualizerManager=O,T.settings=w,T.startScrollLeft=0,T.startScrollTop=0,T.rotation=0,T}return I(x,v),x.prototype.finish=function(){this.visualizerManager.resetResizeInfo(),this.visualizerManager.resetExtensionLines(),v.prototype.finish.call(this)},x.prototype.onMouseDown=function(b){var y=this,E=parseInt(b.source.value);this.resizeEventSource=E,this.startPoint=b.modelPoint,this.lockH=E===a.ResizeEventSource.ResizeBox_S||E===a.ResizeEventSource.ResizeBox_N,this.lockV=E===a.ResizeEventSource.ResizeBox_E||E===a.ResizeEventSource.ResizeBox_W,this.sideH=E===a.ResizeEventSource.ResizeBox_E||E===a.ResizeEventSource.ResizeBox_NE||E===a.ResizeEventSource.ResizeBox_SE,this.sideV=E===a.ResizeEventSource.ResizeBox_SE||E===a.ResizeEventSource.ResizeBox_S||E===a.ResizeEventSource.ResizeBox_SW,this.shapes=this.selection.getSelectedShapes(),0!==this.shapes.length?(this.shapes.forEach(function(S){y.handler.addInteractingItem(S,d.DiagramModelOperation.ResizeShape),y.handler.addInteractingItem(S,d.DiagramModelOperation.MoveShape)}),this.connectors=this.selection.getSelectedConnectors(),this.startRectangle=s.ModelUtils.createRectangle(this.shapes),this.startShapeSizes=this.shapes.map(function(S){return S.size.clone()}),this.startShapePositions=this.shapes.map(function(S){return S.position.clone()}),this.startConnectorPoints=this.connectors.map(function(S){return S.points.map(function(O){return O.clone()})}),v.prototype.onMouseDown.call(this,b)):this.handler.switchToDefaultState()},x.prototype.onMouseMove=function(b){v.prototype.onMouseMove.call(this,b);var y=this.selection.getSelectedShapes();this.visualizerManager.setExtensionLines(y)},x.prototype.onApplyChanges=function(b){var y=this,E=s.ModelUtils.createRectangle(this.shapes),S=1===this.shapes.length?this.shapes[0].getMinWidth(this.settings.shapeMinWidth):l.ShapeMinDimension,O=1===this.shapes.length?this.shapes[0].getMinHeight(this.settings.shapeMinHeight):l.ShapeMinDimension,w=1===this.shapes.length?this.shapes[0].getMaxWidth(this.settings.shapeMaxWidth):void 0,T=1===this.shapes.length?this.shapes[0].getMaxHeight(this.settings.shapeMaxHeight):void 0,k=this.getSize(b,E.createPosition(),this.startRectangle.createSize(),S,O,w,T,this.handler.lockAspectRatioOnShapeResize(b)),R=this.getPosition(b,k,this.startRectangle.createSize(),this.startRectangle.createPosition()),P=k.width/this.startRectangle.width,B=k.height/this.startRectangle.height;this.shapes.forEach(function(W,z){var V=y.startShapeSizes[z].width*(W.allowResizeHorizontally?P:1);V=y.getNormalizedSize(V,W.getMinWidth(y.settings.shapeMinWidth),W.getMaxWidth(y.settings.shapeMaxWidth));var U=y.startShapeSizes[z].height*(W.allowResizeVertically?B:1);U=y.getNormalizedSize(U,W.getMinHeight(y.settings.shapeMinHeight),W.getMaxHeight(y.settings.shapeMaxHeight)),s.ModelUtils.setShapeSize(y.history,y.model,W,new g.Point(W.allowResizeHorizontally?R.x+(y.startShapePositions[z].x-y.startRectangle.x)*P:y.startShapePositions[z].x,W.allowResizeVertically?R.y+(y.startShapePositions[z].y-y.startRectangle.y)*B:y.startShapePositions[z].y),new C.Size(V,U))}),this.connectors.forEach(function(W,z){for(var U=W.endItem?W.points.length-2:W.points.length-1,K=W.beginItem?1:0;K<=U;K++){var Y=new g.Point(R.x+(y.startConnectorPoints[z][K].x-y.startRectangle.x)*P,R.y+(y.startConnectorPoints[z][K].y-y.startRectangle.y)*B);s.ModelUtils.moveConnectorPoint(y.history,W,K,Y)}}),this.selection.getSelectedShapes(!1,!0).forEach(function(W){s.ModelUtils.updateShapeAttachedConnectors(y.history,y.model,W)}),this.tryUpdateModelSize(),this.visualizerManager.setResizeInfo(this.shapes)},x.prototype.tryUpdateModelSize=function(){var b=this;this.handler.tryUpdateModelSize(function(y,E){b.startShapePositions.forEach(function(S){S.x+=y,S.y+=E}),b.startConnectorPoints.forEach(function(S){S.forEach(function(O){O.x+=y,O.y+=E})}),b.startRectangle.x+=y,b.startRectangle.y+=E,b.startPoint.x+=y,b.startPoint.y+=E})},x.prototype.getDraggingElementKeys=function(){return this.shapes.map(function(b){return b.key})},x.prototype.getNormalizedSize=function(b,y,E){return void 0!==y&&(b=Math.max(b,y)),void 0!==E&&(b=Math.min(b,E)),b},x.prototype.getSize=function(b,y,E,S,O,w,T,k){var R,P,B=b.modelPoint.x-(this.startScrollLeft-b.scrollX)-this.startPoint.x,W=b.modelPoint.y-(this.startScrollTop-b.scrollY)-this.startPoint.y,z=B*Math.cos(this.rotation)- -W*Math.sin(this.rotation),V=-(B*Math.sin(this.rotation)+-W*Math.cos(this.rotation));return V=!this.sideV&&V>0?Math.min(E.height+1,V):V,z=!this.sideH&&z>0?Math.min(E.width+1,z):z,this.lockH||this.lockV||!k?(z=this.lockH?0:z,V=this.lockV?0:V,R=this.getNormalizedSize(this.sideH?E.width+z:E.width-z,S,w),P=this.getNormalizedSize(this.sideV?E.height+V:E.height-V,O,T)):Math.abs(z)>Math.abs(V)?(R=this.getNormalizedSize(this.sideH?E.width+z:E.width-z,S,w),P=E.height*(R/E.width)):(P=this.getNormalizedSize(this.sideV?E.height+V:E.height-V,O,T),R=E.width*(P/E.height)),this.lockH||(R=this.getSnappedPosition(b,y.x+R,!0)-y.x),this.lockV||(P=this.getSnappedPosition(b,y.y+P,!1)-y.y),new C.Size(R,P)},x.prototype.getPosition=function(b,y,E,S){var O=S.x,w=S.y;if(this.resizeEventSource===a.ResizeEventSource.ResizeBox_N||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NE||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NW){var T=this.getSnappedPosition(b,w+=E.height-y.height,!1);y.height+=w-T,w=T}if(this.resizeEventSource===a.ResizeEventSource.ResizeBox_W||this.resizeEventSource===a.ResizeEventSource.ResizeBox_NW||this.resizeEventSource===a.ResizeEventSource.ResizeBox_SW){var k=this.getSnappedPosition(b,O+=E.width-y.width,!0);y.width+=O-k,O=k}return new g.Point(O,w)},x.prototype.getSnappedPosition=function(b,y,E){return this.handler.getSnappedPositionOnResizeShape(b,y,E)},x}(p.MouseHandlerDraggingState);u.MouseHandlerResizeShapeState=h},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveConnectorSideState=void 0;var C=o(34),g=o(4),a=function(p){function s(l,d,h){var v=p.call(this,l,d)||this;return v.model=h,v}return I(s,p),s.prototype.onMouseDown=function(l){this.startPoint=l.modelPoint,this.connectorKey=l.source.key,this.pointIndex=parseInt(l.source.value)+1,p.prototype.onMouseDown.call(this,l)},s.prototype.onApplyChanges=function(l){var d=this.getSnappedPoint(l,l.modelPoint),h=this.model.findConnector(this.connectorKey);this.pointCreated?g.ModelUtils.moveConnectorPoint(this.history,h,this.pointIndex,d):(this.handler.addInteractingItem(h),g.ModelUtils.addConnectorPoint(this.history,this.connectorKey,this.pointIndex,d.clone()),this.pointCreated=!0),this.handler.tryUpdateModelSize()},s.prototype.onFinishWithChanges=function(){var l=this.model.findConnector(this.connectorKey);g.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,l),g.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,l),this.handler.tryUpdateModelSize()},s.prototype.getDraggingElementKeys=function(){return[this.connectorKey]},s}(C.MouseHandlerDraggingState);u.MouseHandlerMoveConnectorSideState=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDragParameterPointState=void 0;var C=o(34),g=o(112),a=function(p){function s(l,d,h){var v=p.call(this,l,d)||this;return v.model=h,v.startScrollLeft=0,v.startScrollTop=0,v}return I(s,p),s.prototype.onMouseDown=function(l){this.startPoint=l.modelPoint,this.shape=this.model.findShape(l.source.key),this.parameterPointKey=l.source.value,this.startParameters=this.shape.parameters.clone(),p.prototype.onMouseDown.call(this,l)},s.prototype.onApplyChanges=function(l){var d=this.handler.getSnappedOffsetOnDragPoint(l,this.startPoint),h=this.startParameters.clone();this.shape.description.modifyParameters(this.shape,h,d.x,d.y),this.history.addAndRedo(new g.ChangeShapeParametersHistoryItem(this.shape.key,h))},s.prototype.getDraggingElementKeys=function(){return[this.shape.key]},s}(C.MouseHandlerDraggingState);u.MouseHandlerDragParameterPointState=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(y,E){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,O){S.__proto__=O}||function(S,O){for(var w in O)O.hasOwnProperty(w)&&(S[w]=O[w])})(y,E)},function(y,E){function S(){this.constructor=y}c(y,E),y.prototype=null===E?Object.create(E):(S.prototype=E.prototype,new S)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerCreateConnectorState=void 0;var C=o(6),g=o(48),a=o(66),p=o(9),s=o(148),l=o(68),d=o(53),h=o(4),v=o(67),x=o(113),b=function(y){function E(S,O,w,T,k,R,P){var B=y.call(this,S,O,w,T)||this;return B.shapeDescriptionManager=k,B.selection=R,B.connectionPointIndex=P,B}return I(E,y),E.prototype.onMouseDown=function(S){void 0===this.connectionPointIndex&&(this.connectionPointIndex=parseInt(S.source.value)),this.connectedItem=this.model.findItem(S.source.key),this.pointIndex=1,this.pointPosition=C.ConnectorPosition.End,y.prototype.onMouseDown.call(this,S)},E.prototype.onMouseUp=function(S){this.connector&&!this.connector.endItem&&this.createNewShapeAtConnectorEnd(S),y.prototype.onMouseUp.call(this,S)},E.prototype.onApplyChanges=function(S){var O=this.getSnappedPoint(S,S.modelPoint);if(this.connector)y.prototype.onApplyChanges.call(this,S);else{var w=new a.AddConnectorHistoryItem([this.connectedItem.getConnectionPointPosition(this.connectionPointIndex,O),O]);this.history.addAndRedo(w),this.connector=this.model.findConnector(w.connectorKey),this.handler.addInteractingItem(this.connector),this.history.addAndRedo(new g.AddConnectionHistoryItem(this.connector,this.connectedItem,this.connectionPointIndex,C.ConnectorPosition.Begin)),h.ModelUtils.updateNewConnectorProperties(this.history,this.selection,this.connector.key)}},E.prototype.checkStoredPermissionsOnFinish=function(){this.connector&&this.connector.endItem&&y.prototype.checkStoredPermissionsOnFinish.call(this)},E.prototype.onFinishWithChanges=function(){y.prototype.onFinishWithChanges.call(this),this.history.addAndRedo(new l.SetSelectionHistoryItem(this.selection,[this.connector.key]))},E.prototype.createNewShapeAtConnectorEnd=function(S){var O=this,w=this.connector&&this.connector.beginItem;if(w)if(!this.connector||this.handler.canPerformChangeConnection(this.connector,{position:C.ConnectorPosition.End,connectionPointIndex:-1})){var T=this.getNewShapeSide(this.connector),k=this.getSnappedPoint(S,S.modelPoint),R=this.shapeDescriptionManager.getCategoryByDescription(w.description);this.handler.showContextToolbox(k,function(P){var B=P.clone();B.position=k.clone();var W=O.getNewShapePosition(B,T);return O.handler.getSnappedPointOnDragPoint(S,W)},T,R,function(P){if(P){O.handler.beginStorePermissions(),O.history.beginTransaction();var B=new d.AddShapeHistoryItem(O.shapeDescriptionManager.get(P),k);O.history.addAndRedo(B);var W=O.model.findShape(B.shapeKey),z=O.targetItem&&O.model.findNearestContainer(O.targetItem.key);z&&h.ModelUtils.insertToContainer(O.history,O.model,W,z);var V=O.getNewShapePosition(W,T);h.ModelUtils.setShapePosition(O.history,O.model,W,O.getSnappedPoint(S,V)),h.ModelUtils.updateNewShapeProperties(O.history,O.selection,W.key),O.history.addAndRedo(new g.AddConnectionHistoryItem(O.connector,W,W.getConnectionPointIndexForSide(T),C.ConnectorPosition.End)),z&&h.ModelUtils.updateConnectorContainer(O.history,O.model,O.connector),h.ModelUtils.updateShapeAttachedConnectors(O.history,O.model,W),O.handler.isStoredPermissionsGranted()?(O.handler.tryUpdateModelSize(),O.history.addAndRedo(new l.SetSelectionHistoryItem(O.selection,[W.key]))):(O.handler.lockPermissions(),O.history.undoTransaction(),O.handler.unlockPermissions(),O.checkNewConnectorPermissions()),O.history.endTransaction(),O.handler.endStorePermissions(),O.handler.hideContextToolbox(!0)}},function(){O.checkNewConnectorPermissions()})}else this.cancelChanges()},E.prototype.checkNewConnectorPermissions=function(){this.connector&&!this.handler.canPerformChangeConnection(this.connector,{position:C.ConnectorPosition.End,connectionPointIndex:-1})&&(this.handler.lockPermissions(),this.history.beginTransaction(),this.history.addAndRedo(new l.SetSelectionHistoryItem(this.selection,[])),this.connector.beginItem&&this.history.addAndRedo(new v.DeleteConnectionHistoryItem(this.connector,C.ConnectorPosition.Begin)),this.connector.endItem&&this.history.addAndRedo(new v.DeleteConnectionHistoryItem(this.connector,C.ConnectorPosition.End)),this.history.addAndRedo(new x.DeleteConnectorHistoryItem(this.connector.key)),this.history.endTransaction(),this.handler.unlockPermissions())},E.prototype.getNewShapePosition=function(S,O){switch(O){case p.ConnectionPointSide.North:return S.position.clone().offset(-S.size.width/2,0);case p.ConnectionPointSide.South:return S.position.clone().offset(-S.size.width/2,-S.size.height);case p.ConnectionPointSide.East:return S.position.clone().offset(-S.size.width,-S.size.height/2);case p.ConnectionPointSide.West:return S.position.clone().offset(0,-S.size.height/2)}},E.prototype.getNewShapeSide=function(S){var O=S.getRenderPoints();return E.getNewShapeSideByConnectorPoints(O[O.length-1],O[O.length-2])},E.prototype.getSourceItem=function(){return this.connectedItem},E.getNewShapeSideByConnectorPoints=function(S,O){return S.x===O.x?S.y>O.y?p.ConnectionPointSide.North:p.ConnectionPointSide.South:S.x>O.x?S.y===O.y?p.ConnectionPointSide.West:S.y>O.y?Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.West:p.ConnectionPointSide.North:Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.West:p.ConnectionPointSide.South:S.y===O.y?p.ConnectionPointSide.East:S.y>O.y?Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.East:p.ConnectionPointSide.North:Math.abs(S.x-O.x)>Math.abs(S.y-O.y)?p.ConnectionPointSide.East:p.ConnectionPointSide.South},E}(s.MouseHandlerMoveConnectorPointStateBase);u.MouseHandlerCreateConnectorState=b},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveConnectorOrthogonalSideState=void 0;var C=o(0),g=o(6),a=o(9),p=o(4),s=function(l){function d(h,v,x){var b=l.call(this,h,v)||this;return b.model=x,b}return I(d,l),d.prototype.onMouseDown=function(h){this.startPoint=h.modelPoint,this.connector=this.model.findConnector(h.source.key),this.handler.addInteractingItem(this.connector);var v=h.source.value.split("_"),x=parseInt(v[0]),b=parseInt(v[1]),y=this.connector.getRenderPoints(!0);this.renderPoint1=y[x].clone(),this.renderPoint2=y[b].clone(),this.isVerticalOrientation=this.renderPoint1.x===this.renderPoint2.x,-1!==this.renderPoint1.pointIndex?(this.pointIndex1=this.renderPoint1.pointIndex,0===this.pointIndex1?(this.pointIndex1++,this.correctEdgePoint(this.renderPoint1,this.renderPoint2,this.connector.beginItem,this.connector.beginConnectionPointIndex)):this.point1=this.connector.points[this.pointIndex1].clone()):this.pointIndex1=this.findPointIndex(y,x,!1)+1,-1!==this.renderPoint2.pointIndex?(this.pointIndex2=this.renderPoint2.pointIndex,this.pointIndex2===this.connector.points.length-1?this.correctEdgePoint(this.renderPoint2,this.renderPoint1,this.connector.endItem,this.connector.endConnectionPointIndex):this.point2=this.connector.points[this.pointIndex2].clone()):this.pointIndex2=this.findPointIndex(y,b,!0),l.prototype.onMouseDown.call(this,h)},d.prototype.onApplyChanges=function(h){var v=this;if(!this.pointCreated){var x=void 0,b=void 0;void 0===this.point1&&(this.point1=new C.Point(this.renderPoint1.x,this.renderPoint1.y),p.ModelUtils.addConnectorPoint(this.history,this.connector.key,this.pointIndex1,this.point1.clone()),x=this.point1.clone(),this.pointIndex2++),void 0===this.point2&&(this.point2=new C.Point(this.renderPoint2.x,this.renderPoint2.y),p.ModelUtils.addConnectorPoint(this.history,this.connector.key,this.pointIndex2,this.point2.clone()),b=this.point2.clone());var y=[];x&&y.push(x),b&&y.push(b);var E=this.createUnnecessaryPoints(this.connector,y);Object.keys(E).forEach(function(O){var w=parseInt(O);w<v.pointIndex1&&v.pointIndex1--,w<v.pointIndex2&&v.pointIndex2--}),this.pointCreated=!0}var S=this.getSnappedPoint(h,h.modelPoint);this.isVerticalOrientation?(this.point1.x=S.x,this.point2.x=S.x):(this.point1.y=S.y,this.point2.y=S.y),p.ModelUtils.moveConnectorRightAnglePoints(this.history,this.connector,this.point1.clone(),this.pointIndex1,this.point2.clone(),this.pointIndex2),this.handler.tryUpdateModelSize()},d.prototype.createUnnecessaryPoints=function(h,v){var x=h.getRenderPoints(!0).map(function(O){return O.clone()}),b=p.ModelUtils.createUnnecessaryRenderPoints(x.filter(function(O){return!O.skipped}).map(function(O){return O.clone()}),h.skippedRenderPoints,function(O){return p.ModelUtils.findFirstPointIndex(x,function(w){return w.equals(O)})},function(O){return!v.some(function(w){return w.equals(O)})}),y={};if(Object.keys(b).length){var E=h.points.map(function(O){return O.clone()}),S=E.length-1;E.forEach(function(O,w){0===w||w===S||p.ModelUtils.isNecessaryPoint(O,w,b)||(y[w]=O)})}return y},d.prototype.onFinishWithChanges=function(){p.ModelUtils.deleteConnectorUnnecessaryPoints(this.history,this.connector),p.ModelUtils.fixConnectorBeginEndConnectionIndex(this.history,this.connector),this.handler.tryUpdateModelSize()},d.prototype.findPointIndex=function(h,v,x){for(var b;b=h[v];){if(-1!==b.pointIndex)return b.pointIndex;v+=x?1:-1}},d.prototype.correctEdgePoint=function(h,v,x,b){var y=0;if(x){var E=x.getConnectionPointSideByIndex(b),S=x.rectangle;switch(y=g.Connector.minOffset,E){case a.ConnectionPointSide.South:y+=S.bottom-h.y;break;case a.ConnectionPointSide.North:y+=h.y-S.y;break;case a.ConnectionPointSide.East:y+=S.right-h.x;break;case a.ConnectionPointSide.West:y+=h.x-S.x}}this.isVerticalOrientation?h.y>v.y?h.y-=Math.min(y,h.y-v.y):h.y+=Math.min(y,v.y-h.y):h.x>v.x?h.x-=Math.min(y,h.x-v.x):h.x+=Math.min(y,v.x-h.x)},d.prototype.getDraggingElementKeys=function(){return[this.connector.key]},d}(o(34).MouseHandlerDraggingState);u.MouseHandlerMoveConnectorOrthogonalSideState=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerToolboxDraggingState=u.MouseHandlerBeforeToolboxDraggingState=void 0;var C=o(11),g=o(0),a=o(53),p=o(68),s=o(34),l=o(114),d=o(4),h=o(40),v=o(16),b=function(E){function S(O,w,T,k,R,P){var B=E.call(this,O)||this;return B.history=w,B.model=T,B.selection=k,B.visualizerManager=R,B.shapeDescriptionManager=P,B.isModelEmpty=0===T.items.length,B}return I(S,E),S.prototype.cancelChanges=function(){this.tryRemoveTimer()},S.prototype.onDragStart=function(O){this.dragging=O},S.prototype.onDragEnd=function(O){this.cancelChanges(),this.handler.switchToDefaultState()},S.prototype.onMouseMove=function(O){var w=this;O.source.type>C.MouseEventElementType.Background?(this.tryRemoveTimer(),this.switchToDraggingState(O,!1)):O.source.type!==C.MouseEventElementType.Background||this.isModelEmpty?void 0!==this.nonPageAreaTimer&&this.tryRemoveTimer():(this.savedEvt=O,void 0===this.nonPageAreaTimer&&(this.nonPageAreaTimer=setTimeout(function(){return w.switchToDraggingState(w.savedEvt,!0)},500)))},S.prototype.switchToDraggingState=function(O,w){this.handler.switchState(new y(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager,w)),this.handler.state.onDragStart(this.dragging),this.handler.state.onMouseMove(O)},S.prototype.tryRemoveTimer=function(){void 0!==this.nonPageAreaTimer&&(clearTimeout(this.nonPageAreaTimer),delete this.nonPageAreaTimer)},S.prototype.finish=function(){this.tryRemoveTimer()},S}(h.MouseHandlerCancellableState);u.MouseHandlerBeforeToolboxDraggingState=b;var y=function(E){function S(O,w,T,k,R,P,B){var W=E.call(this,O,w)||this;return W.model=T,W.selection=k,W.visualizerManager=R,W.shapeDescriptionManager=P,B||(W.updatePageSizeTimer=setTimeout(function(){W.processAndRemoveUpdatePageSizeTimer()},300)),W}return I(S,E),S.prototype.cancelChanges=function(){this.tryRemoveUpdatePageSizeTimer(),E.prototype.cancelChanges.call(this)},S.prototype.tryRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(clearTimeout(this.updatePageSizeTimer),delete this.updatePageSizeTimer)},S.prototype.processAndRemoveUpdatePageSizeTimer=function(){void 0!==this.updatePageSizeTimer&&(this.handler.tryUpdateModelSize(),delete this.updatePageSizeTimer)},S.prototype.onMouseMove=function(O){E.prototype.onMouseMove.call(this,O);var w=this.model.findShape(this.shapeKey);if(w){this.visualizerManager.setExtensionLines([w]);var T=d.ModelUtils.findContainerByEventKey(this.model,this.selection,O.source.key);T&&this.allowInsertToContainer(O,w,T)?this.visualizerManager.setContainerTarget(T,O.source.type):this.visualizerManager.resetContainerTarget()}},S.prototype.getDraggingElementKeys=function(){return void 0===this.shapeKey?[]:[this.shapeKey]},S.prototype.onApplyChanges=function(O){var w=this;if(O.source.type===C.MouseEventElementType.Undefined){if(this.dragging.onCaptured(!1),void 0!==this.shapeKey&&!this.deleteHistoryItem){var T=this.model.findShape(this.shapeKey);d.ModelUtils.detachConnectors(this.history,T),d.ModelUtils.removeFromContainer(this.history,this.model,T),this.deleteHistoryItem=new l.DeleteShapeHistoryItem(this.shapeKey,!0),this.history.addAndRedo(this.deleteHistoryItem)}}else{if(this.dragging.onCaptured(!0),void 0===this.shapeKey){this.startPoint=O.modelPoint,this.shapeKey=this.insertToolboxItem(O);var k=this.model.findShape(this.shapeKey);k&&this.handler.addInteractingItem(k,v.DiagramModelOperation.AddShape)}this.deleteHistoryItem&&(this.history.undoTransactionTo(this.deleteHistoryItem),delete this.deleteHistoryItem);var R=this.getPosition(O,this.startShapePosition);T=this.model.findShape(this.shapeKey),d.ModelUtils.setShapePosition(this.history,this.model,T,R),d.ModelUtils.updateMovingShapeConnections(this.history,T,this.connectorsWithoutBeginItemInfo,this.connectorsWithoutEndItemInfo,function(){w.visualizerManager.resetConnectionTarget(),w.visualizerManager.resetConnectionPoints()},function(B,W){w.visualizerManager.setConnectionTarget(B,C.MouseEventElementType.Shape),w.visualizerManager.setConnectionPoints(B,C.MouseEventElementType.Shape,W,!0)},function(B){return w.handler.addInteractingItem(B)}),d.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,T);var P=d.ModelUtils.findContainerByEventKey(this.model,this.selection,O.source.key);T&&P&&this.allowInsertToContainer(O,T,P)?d.ModelUtils.insertToContainer(this.history,this.model,T,P):d.ModelUtils.removeFromContainer(this.history,this.model,T),void 0===this.updatePageSizeTimer&&this.handler.tryUpdateModelSize(function(B,W){w.connectorsWithoutBeginItemInfo.forEach(function(z){z.point.x+=B,z.point.y+=W}),w.connectorsWithoutEndItemInfo.forEach(function(z){z.point.x+=B,z.point.y+=W})})}},S.prototype.onFinishWithChanges=function(){this.deleteHistoryItem||this.history.addAndRedo(new p.SetSelectionHistoryItem(this.selection,[this.shapeKey]))},S.prototype.onDragStart=function(O){this.dragging=O,this.connectorsWithoutBeginItemInfo=d.ModelUtils.getConnectorsWithoutBeginItemInfo(this.model),this.connectorsWithoutEndItemInfo=d.ModelUtils.getConnectorsWithoutEndItemInfo(this.model)},S.prototype.onDragEnd=function(O){void 0!==this.shapeKey&&O.source.type===C.MouseEventElementType.Undefined&&this.cancelChanges(),this.handler.switchToDefaultState()},S.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),this.processAndRemoveUpdatePageSizeTimer(),this.dragging.onFinishDragging(),E.prototype.finish.call(this)},S.prototype.insertToolboxItem=function(O){var w=this.shapeDescriptionManager.get(this.dragging.data);this.startShapePosition=this.getSnappedPoint(O,new g.Point(O.modelPoint.x-w.defaultSize.width/2,O.modelPoint.y-w.defaultSize.height/2));var T=new a.AddShapeHistoryItem(w,this.startShapePosition);return this.history.addAndRedo(T),d.ModelUtils.updateNewShapeProperties(this.history,this.selection,T.shapeKey),T.shapeKey},S.prototype.allowInsertToContainer=function(O,w,T){return!this.handler.canMultipleSelection(O)&&T&&T.expanded&&d.ModelUtils.canInsertToContainer(this.model,w,T)},S.prototype.getPosition=function(O,w){return this.getSnappedPoint(O,new g.Point(w.x+O.modelPoint.x-this.startPoint.x,w.y+O.modelPoint.y-this.startPoint.y))},S}(s.MouseHandlerDraggingState);u.MouseHandlerToolboxDraggingState=y},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveConnectorTextState=void 0;var C=o(34),g=o(313),a=o(69),p=function(s){function l(d,h,v){var x=s.call(this,d,h)||this;return x.model=v,x}return I(l,s),l.prototype.onMouseDown=function(d){this.connector=this.model.findConnector(d.source.key),this.position=parseFloat(d.source.value),this.text=this.connector.getText(this.position),this.savedText="",s.prototype.onMouseDown.call(this,d)},l.prototype.onApplyChanges=function(d){var h=this.connector.getTextPositionByPoint(d.modelPoint);if(h!==this.position){var v=this.connector.getText(h);""!==v&&v!==this.text&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,h,"")),this.savedText=v),this.history.addAndRedo(new g.ChangeConnectorTextPositionHistoryItem(this.connector,this.position,h)),""!==this.savedText&&this.savedText!==v&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,this.position,this.savedText)),this.savedText=""),this.position=h}},l.prototype.getDraggingElementKeys=function(){return[this.connector.key]},l}(C.MouseHandlerDraggingState);u.MouseHandlerMoveConnectorTextState=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorTextPositionHistoryItem=void 0;var C=function(g){function a(p,s,l){var d=g.call(this)||this;return d.connectorKey=p.key,d.position=s,d.newPosition=l,d}return I(a,g),a.prototype.redo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorTextPosition(s,this.position,this.newPosition)},a.prototype.undo=function(p){var s=p.model.findConnector(this.connectorKey);p.changeConnectorTextPosition(s,this.newPosition,this.position)},a}(o(8).HistoryItem);u.ChangeConnectorTextPositionHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerToggleShapeExpandedState=void 0;var C=o(40),g=o(315),a=o(4),p=function(s){function l(d,h,v,x){var b=s.call(this,d)||this;return b.history=h,b.model=v,b.selection=x,b}return I(l,s),l.prototype.onMouseUp=function(d){var h=this.model.findShape(d.source.key);h&&!h.isLocked&&(this.history.beginTransaction(),this.history.addAndRedo(new g.ToggleShapeExpandedHistoryItem(h)),a.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,h),a.ModelUtils.updateContainerConnectorsAttachedPoints(this.history,this.model,h),a.ModelUtils.updateSelection(this.history,this.selection),this.handler.tryUpdateModelSize(),this.history.endTransaction(),this.handler.raiseClick([h.key])),this.handler.switchToDefaultState()},l}(C.MouseHandlerStateBase);u.MouseHandlerToggleShapeExpandedState=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleShapeExpandedHistoryItem=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.shapeKey=p.key,s.expanded=p.expanded,s}return I(a,g),a.prototype.redo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeExpanded(s,!this.expanded)},a.prototype.undo=function(p){var s=p.model.findShape(this.shapeKey);p.changeShapeExpanded(s,this.expanded)},a}(o(8).HistoryItem);u.ToggleShapeExpandedHistoryItem=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerSelectionState=void 0;var C=o(11),g=o(13),a=function(p){function s(l,d,h){var v=p.call(this,l)||this;return v.selection=d,v.visualizerManager=h,v}return I(s,p),s.prototype.finish=function(){this.handler.raiseDragEnd([]),this.visualizerManager.resetSelectionRectangle(),p.prototype.finish.call(this)},s.prototype.cancelChanges=function(){},s.prototype.onMouseDown=function(l){this.startPoint=l.modelPoint,this.handler.raiseDragStart([])},s.prototype.onMouseMove=function(l){l.button!==C.MouseButton.Left?this.handler.switchToDefaultState():(this.rectangle=g.Rectangle.fromPoints(this.startPoint,l.modelPoint),this.visualizerManager.setSelectionRectangle(this.rectangle))},s.prototype.onMouseUp=function(l){void 0!==this.rectangle?this.selection.selectRect(this.rectangle):this.selection.set([]),this.rectangle=void 0,this.handler.switchToDefaultState()},s}(o(40).MouseHandlerCancellableState);u.MouseHandlerSelectionState=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerZoomOnWheelState=void 0;var C=o(40),g=o(11),a=o(28),p=function(s){function l(d,h,v){var x=s.call(this,d)||this;return x.settings=h,x.view=v,x}return I(l,s),l.prototype.onMouseWheel=function(d){return this.trySwitchToDefault(d)?this.handler.state.onMouseWheel(d):(this.settings.zoomLevel=this.view.getNextStepZoom(d.deltaY<0),d.source.type===g.MouseEventElementType.Background?this.view.resetScroll():(this.view.scrollTo(d.modelPoint,d.offsetPoint),this.view.normalize()),d.preventDefault=!0,!0)},l.prototype.onMouseUp=function(d){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(d)},l.prototype.onMouseDown=function(d){this.handler.switchToDefaultState(),this.handler.state.onMouseDown(d)},l.prototype.onMouseMove=function(d){this.trySwitchToDefault(d)&&this.handler.state.onMouseMove(d)},l.prototype.trySwitchToDefault=function(d){return!!this.handler.canFinishZoomOnWheel(d)&&(this.handler.switchToDefaultState(),!0)},l.prototype.start=function(){s.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=a.AutoZoomMode.Disabled},l}(C.MouseHandlerStateBase);u.MouseHandlerZoomOnWheelState=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerZoomOnPinchState=void 0;var C=o(28),g=o(0),a=o(150),p=o(35),s=function(l){function d(h,v,x,b){var y=l.call(this,h,b,v)||this;return y.selection=v,y.settings=x,y.view=b,y}return I(d,l),d.prototype.onMouseDown=function(h){l.prototype.onMouseDown.call(this,h),h.touches.length>1&&(this.startDistance=this.getTouchDistance(h),this.startZoomLevel=this.settings.zoomLevel,this.prevDistance=this.startDistance)},d.prototype.onMouseMove=function(h){if(h.touches.length>1){var v=this.getTouchDistance(h);Math.abs(this.prevDistance-v)>1&&(this.settings.zoomLevel=this.startZoomLevel*(v/this.startDistance),this.view.scrollTo(this.getMiddleLayoutPoint(h),this.getMiddleAbsPoint(h)),this.view.normalize(),this.prevDistance=v)}l.prototype.onMouseMove.call(this,h)},d.prototype.onMouseUp=function(h){0===h.touches.length&&setTimeout(function(){this.handler.switchToDefaultState()}.bind(this),1)},d.prototype.start=function(){l.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=C.AutoZoomMode.Disabled},d.prototype.getTouchDistance=function(h){var v=new g.Point(h.touches[0].offsetPoint.x,h.touches[0].offsetPoint.y),x=new g.Point(h.touches[1].offsetPoint.x,h.touches[1].offsetPoint.y);return p.Metrics.euclideanDistance(v,x)},d.prototype.getPointByEvent=function(h){return this.getMiddleAbsPoint(h)},d.prototype.getMiddleAbsPoint=function(h){return h.touches.length>1?d.getMiddlePointByEvent(h,function(v){return v.offsetPoint}):h.offsetPoint},d.prototype.getMiddleLayoutPoint=function(h){return h.touches.length>1?d.getMiddlePointByEvent(h,function(v){return v.modelPoint}):h.modelPoint},d.getMiddlePointByEvent=function(h,v){if(h.touches.length>1)return new g.Point((v(h.touches[0]).x+v(h.touches[1]).x)/2,(v(h.touches[0]).y+v(h.touches[1]).y)/2)},d}(a.MouseHandlerScrollingState);u.MouseHandlerZoomOnPinchState=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveShapeState=void 0;var C=function(g){function a(p,s,l,d,h){var v=g.call(this,p,s,l,d,h)||this;return v.model=l,v.selection=d,v.visualizerManager=h,v}return I(a,g),Object.defineProperty(a.prototype,"areValidDraggingShapes",{get:function(){return this.shouldClone||this.draggingShapes.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"areValidDraggingConnectors",{get:function(){return!0},enumerable:!1,configurable:!0}),a}(o(151).MouseHandlerDragDiagramItemStateBase);u.MouseHandlerMoveShapeState=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerMoveConnectorState=void 0;var C=o(4),g=function(a){function p(s,l,d,h,v){var x=a.call(this,s,l,d,h,v)||this;return x.model=d,x.selection=h,x.visualizerManager=v,x}return I(p,a),Object.defineProperty(p.prototype,"areValidDraggingShapes",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"areValidDraggingConnectors",{get:function(){var s=this;return this.shouldClone?this.draggingShapes.length>0||this.draggingConnectors.length>0:!!this.draggingConnectors.length&&(this.draggingShapes.length?C.ModelUtils.canMoveConnector(this.selectedItems,this.draggingConnectors[this.draggingConnectorsIndexByKey[this.handler.mouseDownEvent.source.key]].connector):!this.draggingConnectors.some(function(l){return!C.ModelUtils.canMoveConnector(s.selectedItems,l.connector)}))},enumerable:!1,configurable:!0}),p}(o(151).MouseHandlerDragDiagramItemStateBase);u.MouseHandlerMoveConnectorState=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDefaultReadOnlyTouchState=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.canDragObjectOnMouseDown=function(p){return!1},a.prototype.canExpandContainerOnMouseDown=function(p){return!1},a.prototype.canClearSelectionOnMouseDown=function(){return!0},a.prototype.canSelectOnMouseUp=function(p){return!this.inSelection(p)},a.prototype.canClearSelectionOnMouseUp=function(){return!1},a}(o(152).MouseHandlerDefaultReadOnlyState);u.MouseHandlerDefaultReadOnlyTouchState=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.MouseHandlerDefaultTouchState=void 0;var C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return I(a,g),a.prototype.updateConnectionsOnMouseMove=function(p){},a.prototype.canDragObjectOnMouseDown=function(p){return this.inSelection(p)},a.prototype.canExpandContainerOnMouseDown=function(p){return!0},a.prototype.canClearSelectionOnMouseDown=function(){return!0},a.prototype.canSelectOnMouseUp=function(p){return!this.inSelection(p)},a.prototype.canClearSelectionOnMouseUp=function(){return!1},a}(o(147).MouseHandlerDefaultState);u.MouseHandlerDefaultTouchState=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TextInputHandler=void 0;var c=o(153),I=o(11),C=o(25),g=o(14),a=o(6),p=o(69),s=function(){function l(d){this.control=d}return l.prototype.startTextInput=function(d,h){if(!d.isLocked&&d.enableText&&d.allowEditText&&!this.control.settings.readOnly&&this.canFinishTextEditing()){this.control.beginUpdate(),this.textInputItem=d;var v=!0;if(this.textInputItem instanceof g.Shape){var x=this.textInputItem.textEditRectangle;(v=this.control.permissionsProvider.canChangeShapeText(this.textInputItem))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.text,x.createPosition(),x.createSize())}else this.textInputItem instanceof a.Connector&&(this.textInputPosition=h,(v=this.control.permissionsProvider.canChangeConnectorText(this.textInputItem,this.textInputPosition))&&this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.getText(this.textInputPosition),this.textInputItem.getTextPoint(this.textInputPosition)));v||(delete this.textInputItem,this.control.endUpdate())}},l.prototype.endTextInput=function(d){var h=this.textInputItem;delete this.textInputItem,this.control.eventManager.raiseTextInputEnd(h,d),this.control.endUpdate(),this.control.barManager.updateItemsState()},l.prototype.raiseTextInputPermissionsCheck=function(d){this.control.eventManager.raiseTextInputPermissionsCheck(this.textInputItem,d)},l.prototype.applyTextInput=function(d,h){if(this.canFinishTextEditing(d)){var v=this.textInputItem,x=this.textInputPosition;this.endTextInput(h),v instanceof g.Shape?v.text!==d&&this.control.history.addAndRedo(new c.ChangeShapeTextHistoryItem(v,d)):v instanceof a.Connector&&v.getText(x)!==d&&this.control.history.addAndRedo(new p.ChangeConnectorTextHistoryItem(v,x,d))}},l.prototype.canFinishTextEditing=function(d){var h=!0;if(this.isTextInputActive()){var v=d||this.getTextInputElementValue();this.textInputItem instanceof g.Shape?h=this.control.permissionsProvider.canApplyShapeTextChange(this.textInputItem,v):this.textInputItem instanceof a.Connector&&(h=this.control.permissionsProvider.canApplyConnectorTextChange(this.textInputItem,this.textInputPosition,v)),this.raiseTextInputPermissionsCheck(h)}return h},l.prototype.getTextInputElementValue=function(){return this.control.render?this.control.render.input.getTextInputElementValue():""},l.prototype.cancelTextInput=function(){this.raiseTextInputPermissionsCheck(!0),this.endTextInput(!0)},l.prototype.isTextInputActive=function(){return void 0!==this.textInputItem},l.prototype.processDblClick=function(d){if(d.source.type===I.MouseEventElementType.Shape){var h=this.control.model.findShape(d.source.key);this.startTextInput(h)}else if(d.source.type===I.MouseEventElementType.Connector){var v=(x=this.control.model.findConnector(d.source.key)).getTextPositionByPoint(d.modelPoint);this.startTextInput(x,v)}else if(d.source.type===I.MouseEventElementType.ConnectorText){var x=this.control.model.findConnector(d.source.key);v=parseFloat(d.source.value),this.startTextInput(x,v)}},l.prototype.onDblClick=function(d){var h=this;setTimeout(function(){h.processDblClick(d)},10)},l.prototype.onKeyDown=function(d){this.isTextInputActive()&&(13===d.keyCode&&this.hasCtrlModifier(d.modifiers)&&(d.preventDefault=!0,this.applyTextInput(d.inputText,!0)),27===d.keyCode&&this.cancelTextInput())},l.prototype.onBlur=function(d){this.isTextInputActive()&&this.applyTextInput(d.inputText)},l.prototype.onFocus=function(d){},l.prototype.hasCtrlModifier=function(d){return(d&C.ModifierKey.Ctrl)>0},l}();u.TextInputHandler=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ContextMenuTouchHandler=void 0;var C=o(11),g=o(154),a=o(4),p=function(s){function l(d){var h=s.call(this)||this;return h.selection=d,h.contextToolboxVisible=!1,h.selection.onChanged.add(h),h}return I(l,s),l.prototype.onMouseDown=function(d){void 0===d.source.key&&this.hideContextMenu()},l.prototype.onMouseUp=function(d){},l.prototype.onFocus=function(d){var h=this;setTimeout(function(){h.showContextMenuAtSelection()},1)},l.prototype.onBlur=function(d){var h=this;setTimeout(function(){h.hideContextMenu()},1)},l.prototype.onTextInputFocus=function(d){var h=this;setTimeout(function(){h.hideContextMenu()},1)},l.prototype.onTextInputBlur=function(d){var h=this;setTimeout(function(){h.showContextMenuAtSelection()},1)},l.prototype.onLongTouch=function(d){d.source.type===C.MouseEventElementType.Document&&this.showContextMenuAtEmptySelection(d.modelPoint)},l.prototype.onKeyDown=function(d){},l.prototype.onShortcut=function(d){},l.prototype.getSelectedItems=function(){return this.selection.getSelectedItems(!0)},l.prototype.showContextMenuAtSelection=function(){if(!this.contextToolboxVisible){var d=this.getSelectedItems();0!==d.length&&this.showContextMenu(void 0,a.ModelUtils.createRectangle(d).createPosition())}},l.prototype.showContextMenuAtEmptySelection=function(d){this.contextToolboxVisible||0===this.getSelectedItems().length&&this.showContextMenu(void 0,d)},l.prototype.notifyDragStart=function(d){this.hideContextMenu()},l.prototype.notifyDragEnd=function(d){this.showContextMenuAtSelection()},l.prototype.notifySelectionChanged=function(d){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},l.prototype.raiseSelectionChanged=function(){0!==this.getSelectedItems().length?this.showContextMenuAtSelection():this.hideContextMenu()},l.prototype.onUpdateUnlocked=function(d){1&d&&this.raiseSelectionChanged()},l.prototype.notifyShowContextToolbox=function(d,h,v,x,b){this.contextToolboxVisible=!0,this.hideContextMenu()},l.prototype.notifyHideContextToolbox=function(){this.contextToolboxVisible=!1,this.showContextMenuAtSelection()},l}(g.ContextMenuHandler);u.ContextMenuTouchHandler=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectionTargetVisualizer=u.ConnectionTargetInfo=void 0;var C=o(156),g=function(p,s){this.rect=p,this.strokeWidth=s,this.allowed=!0};u.ConnectionTargetInfo=g;var a=function(p){function s(l){return p.call(this,l)||this}return I(s,p),s.prototype.raiseShow=function(){var l=this,d=new g(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(h){return h.notifyConnectionTargetShow(l.key,d)})},s.prototype.raiseHide=function(){this.dispatcher.raise1(function(l){return l.notifyConnectionTargetHide()})},s}(C.TargetVisualizerBase);u.ConnectionTargetVisualizer=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ContainerTargetVisualizer=u.ContainerTargetInfo=void 0;var C=o(156),g=function(p,s){this.rect=p,this.strokeWidth=s};u.ContainerTargetInfo=g;var a=function(p){function s(l){return p.call(this,l)||this}return I(s,p),s.prototype.raiseShow=function(){var l=this,d=new g(this.targetRect,this.targetStrokeWidth);this.dispatcher.raise1(function(h){return h.notifyContainerTargetShow(l.key,d)})},s.prototype.raiseHide=function(){this.dispatcher.raise1(function(l){return l.notifyContainerTargetHide()})},s}(C.TargetVisualizerBase);u.ContainerTargetVisualizer=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectionPointsVisualizer=u.ConnectionPointInfo=void 0,u.ConnectionPointInfo=function(C,g){this.point=C,this.side=g,this.allowed=!0};var I=function(){function C(g){this.dispatcher=g}return C.prototype.getKey=function(){return this.key},C.prototype.setPoints=function(g,a,p,s){this.key===g&&this.pointIndex===p||(this.key=g,this.points=a,this.pointIndex=p,this.outsideRectangle=s,this.raiseShow())},C.prototype.setPointIndex=function(g){0<=g&&g<this.points.length&&this.pointIndex!==g&&(this.pointIndex=g,this.raiseShow())},C.prototype.update=function(){this.raiseShow()},C.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.points=[],this.pointIndex=-1,this.outsideRectangle=void 0,this.raiseHide())},C.prototype.raiseShow=function(){var g=this;this.dispatcher.raise1(function(a){return a.notifyConnectionPointsShow(g.key,g.points,g.pointIndex,g.outsideRectangle)})},C.prototype.raiseHide=function(){this.dispatcher.raise1(function(g){return g.notifyConnectionPointsHide()})},C}();u.ConnectionPointsVisualizer=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResizeInfoVisualizer=void 0;var c=function(){function I(C){this.dispatcher=C}return I.prototype.set=function(C,g){this.point=C,this.text=g,this.raiseShow()},I.prototype.reset=function(){void 0!==this.point&&(this.point=void 0,this.text=void 0,this.raiseHide())},I.prototype.raiseShow=function(){var C=this;this.dispatcher.raise1(function(g){return g.notifyResizeInfoShow(C.point,C.text)})},I.prototype.raiseHide=function(){this.dispatcher.raise1(function(C){return C.notifyResizeInfoHide()})},I}();u.ResizeInfoVisualizer=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.SelectionRectVisualizer=void 0;var c=function(){function I(C){this.dispatcher=C}return I.prototype.setRectangle=function(C){this.rect=C,this.raiseShow()},I.prototype.reset=function(){this.rect=void 0,this.raiseHide()},I.prototype.raiseShow=function(){var C=this;this.dispatcher.raise1(function(g){return g.notifySelectionRectShow(C.rect)})},I.prototype.raiseHide=function(){this.dispatcher.raise1(function(C){return C.notifySelectionRectHide()})},I}();u.SelectionRectVisualizer=c},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.VisualizerTouchManager=void 0;var C=o(155),g=o(11),a=function(p){function s(l,d,h,v,x){void 0===x&&(x=v.readOnly);var b=p.call(this,l,d,h,v,x)||this;return l.onChanged.add(b),b}return I(s,p),s.prototype.onBlur=function(l){var d=this;setTimeout(function(){d.hideConnections()},1)},s.prototype.onFocus=function(l){var d=this;setTimeout(function(){d.showConnections()},1)},s.prototype.hideConnections=function(){this.readOnly||this.resetConnectionPoints()},s.prototype.showConnections=function(){if(!this.readOnly&&this.needShowConnections()){var l=this.selection.getSelectedShapes();1===l.length&&this.setConnectionPoints(l[0],g.MouseEventElementType.ShapeConnectionPoint,-1,!l[0].allowResizeHorizontally&&!l[0].allowResizeVertically||l[0].isLocked)}},s.prototype.needShowConnections=function(){var l=this.selection.getSelectedItems(),d=this.selection.getSelectedShapes();return 1===l.length&&1===d.length},s.prototype.notifySelectionChanged=function(l){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},s.prototype.raiseSelectionChanged=function(){this.needShowConnections()?this.showConnections():this.hideConnections()},s.prototype.onUpdateUnlocked=function(l){1&l&&this.raiseSelectionChanged()},s.prototype.notifyDragStart=function(l){this.hideConnections()},s.prototype.notifyDragEnd=function(l){this.showConnections()},s}(C.VisualizerManager);u.VisualizerTouchManager=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ContextToolboxHandler=void 0;var c=o(11),I=o(3),C=o(25),g=o(18),a=function(){function p(){this.contextToolboxVisible=!1,this.onVisibilityChanged=new I.EventDispatcher}return p.prototype.onMouseDown=function(s){s.source.type!==c.MouseEventElementType.Undefined&&this.hideContextToolbox()},p.prototype.onMouseUp=function(s){s.source.type===c.MouseEventElementType.Undefined&&g.Browser.TouchUI||this.hideContextToolbox()},p.prototype.onFocus=function(s){},p.prototype.onBlur=function(s){},p.prototype.onKeyDown=function(s){s.keyCode===C.KeyCode.Esc&&this.hideContextToolbox()},p.prototype.onShortcut=function(s){this.hideContextToolbox()},p.prototype.showContextToolbox=function(s,l,d,h,v,x){this.onVisibilityChanged.raise1(function(b){return b.notifyShowContextToolbox(s,l,d,h,v)}),this.contextToolboxVisible=!0,this.contextToolboxCancelCallback=x},p.prototype.hideContextToolbox=function(s){this.contextToolboxVisible&&(this.onVisibilityChanged.raise1(function(l){return l.notifyHideContextToolbox()}),this.contextToolboxCancelCallback&&(s||this.contextToolboxCancelCallback(),this.contextToolboxCancelCallback=void 0),this.contextToolboxVisible=!1)},p}();u.ContextToolboxHandler=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Selection=void 0;var c=o(3),I=o(333),C=o(14),g=o(6),a=o(44),p=function(){function s(l){this.onChanged=new c.EventDispatcher,this.inputPosition=new I.InputPosition(this),this.onChanged.add(this.inputPosition),this.initialize(l)}return s.prototype.initialize=function(l){this.model=l,this.keys=[],this.inputPosition.initialize()},s.prototype.add=function(l){this.keys.indexOf(l)<0&&(this.keys.push(l),this.raiseSelectionChanged())},s.prototype.remove=function(l){this.keys.indexOf(l)>=0&&(this.keys.splice(this.keys.indexOf(l),1),this.raiseSelectionChanged())},s.prototype.clear=function(){this.keys.length>0&&(this.keys=[],this.raiseSelectionChanged())},s.prototype.set=function(l,d){!d&&a.Data.ArrayEqual(l,this.keys)||(this.keys=l,this.raiseSelectionChanged())},s.prototype.getKeys=function(){return this.keys},s.prototype.getKey=function(l){return this.keys[l]},s.prototype.getSelectedItemsInsideContainers=function(l){var d=this,h=l.slice();return l.forEach(function(v){v instanceof C.Shape&&d.getSelectedItemsInsideContainers(d.model.getChildren(v)).forEach(function(x){-1!==h.indexOf(x)||d.hasKey(x.key)||h.push(x)})}),h},s.prototype.getSelectedItemsCore=function(l){var d=this;return this.keys.map(function(h){return d.model.findItem(h)}).filter(function(h){return h&&(l||!h.isLocked)})},s.prototype.getSelectedItems=function(l,d){return d?this.getSelectedItemsInsideContainers(this.getSelectedItemsCore(l)):this.getSelectedItemsCore(l)},s.prototype.getSelectedShapes=function(l,d){var h=this;if(d){var v=this.getSelectedItemsCore(l);return this.getSelectedItemsInsideContainers(v).map(function(x){return x instanceof C.Shape?x:void 0}).filter(function(x){return x})}return this.keys.map(function(x){return h.model.findShape(x)}).filter(function(x){return x&&(l||!x.isLocked)})},s.prototype.getSelectedConnectors=function(l,d){var h=this;if(d){var v=this.keys.map(function(x){return h.model.findItem(x)});return this.getSelectedItemsInsideContainers(v).map(function(x){return x instanceof g.Connector?x:void 0}).filter(function(x){return x&&(l||!x.isLocked)})}return this.keys.map(function(x){return h.model.findConnector(x)}).filter(function(x){return x&&(l||!x.isLocked)})},s.prototype.hasKey=function(l){return this.keys.indexOf(l)>=0},s.prototype.isEmpty=function(l){return!this.getSelectedItems(l).length},s.prototype.selectRect=function(l){var d=[];this.model.iterateItems(function(h){h.intersectedByRect(l)&&d.push(h.key)}),this.set(d)},s.prototype.raiseSelectionChanged=function(){this.onChanged.raise("notifySelectionChanged",this)},s}();u.Selection=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.InputPosition=void 0;var c=o(334),I=o(44),C=function(){function g(a){this.selection=a,this.initialProperties=new c.InputPositionProperties(this.selection),this.defaultProperties=new c.InputPositionProperties(this.selection,this.initialProperties,!0),this.currentProperties=new c.InputPositionProperties(this.selection,this.defaultProperties)}return g.prototype.initialize=function(){this.reset(),this.defaultProperties.reset()},g.prototype.reset=function(){this.currentProperties.reset()},g.prototype.getDefaultConnectorProperties=function(){return this.defaultProperties.getConnectorProperties()},g.prototype.getDefaultConnectorPropertyValue=function(a){return this.defaultProperties.getConnectorPropertyValue(a)},g.prototype.getCurrentConnectorPropertyValue=function(a){return this.currentProperties.getConnectorPropertyValue(a)},g.prototype.setConnectorPropertyValue=function(a,p){this.currentProperties.setConnectorPropertyValue(a,p),this.selection.isEmpty(!0)&&this.defaultProperties.setConnectorPropertyValue(a,p)},g.prototype.setInitialConnectorProperties=function(a){for(var p in this.defaultProperties.reset(),this.currentProperties.reset(),a)Object.prototype.hasOwnProperty.call(a,p)&&this.initialProperties.setConnectorPropertyValue(p,a[p])},g.prototype.getDefaultStyle=function(){return this.defaultProperties.getStyle()},g.prototype.getDefaultStylePropertyValue=function(a){return this.defaultProperties.getStylePropertyValue(a)},g.prototype.getDefaultTextStyle=function(){return this.defaultProperties.getTextStyle()},g.prototype.getDefaultTextStylePropertyValue=function(a){return this.defaultProperties.getTextStylePropertyValue(a)},g.prototype.getCurrentStylePropertyValue=function(a){return this.currentProperties.getStylePropertyValue(a)},g.prototype.getCurrentTextStylePropertyValue=function(a){return this.currentProperties.getTextStylePropertyValue(a)},g.prototype.setStylePropertyValue=function(a,p){this.currentProperties.setStylePropertyValue(a,p),this.selection.isEmpty(!0)&&this.defaultProperties.setStylePropertyValue(a,p)},g.prototype.setTextStylePropertyValue=function(a,p){this.currentProperties.setTextStylePropertyValue(a,p),this.selection.isEmpty(!0)&&this.defaultProperties.setTextStylePropertyValue(a,p)},g.prototype.setInitialStyleProperties=function(a){this.defaultProperties.reset(),this.currentProperties.reset();var p="string"==typeof a?I.Data.cssTextToObject(a):a;for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&this.initialProperties.setStylePropertyValue(s,p[s])},g.prototype.setInitialTextStyleProperties=function(a){this.defaultProperties.reset(),this.currentProperties.reset();var p="string"==typeof a?I.Data.cssTextToObject(a):a;for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&this.initialProperties.setTextStylePropertyValue(s,p[s])},g.prototype.notifySelectionChanged=function(a){this.reset()},g}();u.InputPosition=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.InputPositionProperties=void 0;var c=o(32),I=o(26),C=function(){function g(a,p,s){this.selection=a,this.baseProperties=p,this.disableMergingStyles=s,this.selection=a}return g.prototype.reset=function(){this.connectorProperties=null,this.style=null,this.textStyle=null},g.prototype.getConnectorProperties=function(){return this.connectorProperties||(this.connectorProperties=this.baseProperties?this.baseProperties.getConnectorProperties().clone():new c.ConnectorProperties,this.updateConnectorProperties(this.connectorProperties)),this.connectorProperties},g.prototype.getConnectorPropertyValue=function(a){return this.getConnectorProperties()[a]},g.prototype.setConnectorPropertyValue=function(a,p){this.getConnectorProperties()[a]=p},g.prototype.getStyle=function(){return this.style||(this.style=this.baseProperties?this.baseProperties.getStyle().clone():new I.Style,this.disableMergingStyles||this.updateStyle(this.style,"style")),this.style},g.prototype.getStylePropertyValue=function(a){return this.getStyle()[a]},g.prototype.setStylePropertyValue=function(a,p){this.getStyle()[a]=p},g.prototype.getTextStyle=function(){return this.textStyle||(this.textStyle=this.baseProperties?this.baseProperties.getTextStyle().clone():new I.TextStyle,this.disableMergingStyles||this.updateStyle(this.textStyle,"styleText")),this.textStyle},g.prototype.getTextStylePropertyValue=function(a){return this.getTextStyle()[a]},g.prototype.setTextStylePropertyValue=function(a,p){this.getTextStyle()[a]=p},g.prototype.updateConnectorProperties=function(a){var p=this,s=this.selection.getSelectedConnectors(!0);a.forEach(function(l){p.updatePropertyValue(a,s,function(d){return d.properties},l)})},g.prototype.updateStyle=function(a,p){var s=this,l=this.selection.getSelectedItems(!0);a.forEach(function(d){s.updatePropertyValue(a,l,function(h){return h[p]},d)})},g.prototype.updatePropertyValue=function(a,p,s,l){var d,h=!1;p.forEach(function(v){var x=s(v)[l];if(void 0===d&&void 0!==x)d=x,h=!0;else if(h&&d!==x)return void(d=void 0)}),h&&(a[l]=d)},g}();u.InputPositionProperties=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.History=void 0;var c=o(8),I=o(3),C=function(){function g(a,p){this.modelManipulator=a,this.diagram=p,this.historyItems=[],this.currentIndex=-1,this.incrementalId=-1,this.transactionLevel=-1,this.unmodifiedIndex=-1,this.currTransactionId=0,this.onChanged=new I.EventDispatcher}return g.prototype.isModified=function(){if(this.unmodifiedIndex===this.currentIndex)return!1;for(var a=Math.min(this.unmodifiedIndex,this.currentIndex),p=Math.max(this.unmodifiedIndex,this.currentIndex),s=a+1;s<=p;s++)if(this.historyItems[s].changeModified())return!0;return!1},g.prototype.undo=function(){this.canUndo()&&(this.historyItems[this.currentIndex].undo(this.modelManipulator),this.currentIndex--,this.raiseChanged())},g.prototype.redo=function(){this.canRedo()&&(this.startDataSyncItem&&(this.startDataSyncItem.undo(this.modelManipulator),this.startDataSyncItem=void 0),this.currentIndex++,this.historyItems[this.currentIndex].redo(this.modelManipulator),this.raiseChanged())},g.prototype.canUndo=function(){return this.currentIndex>=0},g.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},g.prototype.beginTransaction=function(){return this.transactionLevel++,0===this.transactionLevel&&(this.transaction=new c.CompositionHistoryItem),this.currTransactionId++},g.prototype.endTransaction=function(a){if(!(--this.transactionLevel>=0)){var p=this.transaction.historyItems.length;if(p>0){var s=p>1?this.transaction:this.transaction.historyItems.pop();a?this.addDataSyncItem(s):this.addInternal(s)}p>0&&!a&&this.raiseChanged(),delete this.transaction}},g.prototype.addAndRedo=function(a){this.add(a),a.redo(this.modelManipulator),this.raiseChanged()},g.prototype.add=function(a){this.transactionLevel>=0?this.transaction.add(a):this.addInternal(a)},g.prototype.addInternal=function(a){this.currentIndex<this.historyItems.length-1&&(this.historyItems.splice(this.currentIndex+1),this.unmodifiedIndex=Math.min(this.unmodifiedIndex,this.currentIndex)),this.historyItems.push(a),this.currentIndex++,this.deleteOldItems()},g.prototype.addDataSyncItem=function(a){var p=this.historyItems[this.currentIndex];if(p){var s=void 0;p instanceof c.CompositionHistoryItem?s=p:(this.historyItems.splice(this.currentIndex,1),s=new c.CompositionHistoryItem,this.historyItems.push(s),s.historyItems.push(p)),s.dataSyncItems.push(a)}else this.historyItems.length&&(this.startDataSyncItem=a)},g.prototype.deleteOldItems=function(){var a=this.historyItems.length-g.MAX_HISTORY_ITEM_COUNT;a>0&&this.currentIndex>a&&(this.historyItems.splice(0,a),this.currentIndex-=a)},g.prototype.getNextId=function(){return this.incrementalId++,this.incrementalId},g.prototype.clear=function(){this.currentIndex=-1,this.unmodifiedIndex=-1,this.incrementalId=-1,this.historyItems=[],delete this.transaction,this.transactionLevel=-1},g.prototype.resetModified=function(){this.unmodifiedIndex=this.currentIndex},g.prototype.getCurrentItemId=function(){if(-1===this.currentIndex)return-1;var a=this.historyItems[this.currentIndex];return-1===a.uniqueId&&(a.uniqueId=this.getNextId()),a.uniqueId},g.prototype.undoTransaction=function(){this.diagram.beginUpdateCanvas();for(var a=this.transaction.historyItems;a.length;)a.pop().undo(this.modelManipulator);this.diagram.endUpdateCanvas()},g.prototype.undoTransactionTo=function(a){this.diagram.beginUpdateCanvas();for(var p=this.transaction.historyItems;p.length;){var s=p.pop();if(s.undo(this.modelManipulator),s===a)return}this.diagram.endUpdateCanvas()},g.prototype.raiseChanged=function(){-1===this.transactionLevel&&this.onChanged.raise("notifyHistoryChanged")},g.MAX_HISTORY_ITEM_COUNT=100,g}();u.History=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.BarManager=void 0;var C=function(g){function a(p){var s=g.call(this)||this;return s.bars=[],s.control=p,s}return I(a,g),a.prototype.clean=function(){var p=this;this.bars.forEach(function(s){return s.onChanged.remove(p)}),this.bars=[]},a.prototype.registerBar=function(p){this.bars.push(p),p.onChanged.add(this),this.updateBarItemsState(p)},a.prototype.updateItemsState=function(p){if(!this.isUpdateLocked())for(var s=0,l=void 0;l=this.bars[s];s++)this.updateBarItemsState(l,p)},a.prototype.updateBarItemsState=function(p,s){if(!this.isUpdateLocked()){if(this.control.permissionsProvider.beginUpdateUI(),p.isVisible()){var l=void 0;if(s){var d=p.getCommandKeys().reduce(function(x,b){return x[b]=!0,x},{});l=s.filter(function(x){return d[x]})}else l=p.getCommandKeys();for(var h=l.length,v=0;v<h;v++)this.updateBarItem(p,l[v])}this.control.permissionsProvider.endUpdateUI()}},a.prototype.updateBarItem=function(p,s){var l=this.control.commandManager.getCommand(s);if(l){var d=l.getState();if(p.setItemVisible(s,d.visible),d.visible&&(p.setItemEnabled(s,d.enabled),!d.denyUpdateValue)){var h=this.getItemValue(d.value);d.items&&p.setItemSubItems(s,d.items),p.setItemValue(s,h,this.getDefaultItemValue(d.defaultValue))}}},a.prototype.setEnabled=function(p){for(var s=0,l=void 0;l=this.bars[s];s++)l.setEnabled(p)},a.prototype.notifyBarCommandExecuted=function(p,s){this.control.commandManager.getCommand(p).execute(s)||this.updateItemsState([p])},a.prototype.notifyBarUpdateRequested=function(){this.updateItemsState()},a.prototype.notifySelectionChanged=function(p){this.updateItemsState()},a.prototype.onUpdateUnlocked=function(p){},a.prototype.getItemValue=function(p){return p},a.prototype.getDefaultItemValue=function(p){return p},a}(o(81).BatchUpdatableObject);u.BarManager=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RenderManager=u.DBL_CLICK_TIMEOUT=u.LONG_TOUCH_TIMEOUT=void 0;var c=o(11),I=o(65),C=o(27),g=o(0),a=o(25),p=o(18),s=o(17),l=o(78),d=o(338),h=o(28),v=o(339),x=o(340),b=o(342),y=o(158),E=o(344),S=o(79),O=o(15),w=o(100),T=o(3);u.LONG_TOUCH_TIMEOUT=500,u.DBL_CLICK_TIMEOUT=500;var k=function(){function R(P,B,W,z,V,U){this.moveLocked=!1,this.lockMouseMoveTimer=-1,this.lastClickElement=void 0,this.longTouchTimer=void 0,this.dblTouchTimer=void 0,this.pointers={};var K=O.RenderHelper.createMainElement(P),Y=O.RenderHelper.createSvgElement(K);this.scroll=V||new d.NativeScrollView(P),this.measurer=W,this.dom=new w.DOMManipulator(this.measurer),this.view=new b.CanvasViewManager(this.scroll,Y,z.modelSize,z.zoomLevel,z.autoZoom,z.simpleView,z.rectangle,this.dom),this.input=new v.InputManager(K,this.view,B,this.measurer,z.zoomLevel,U),this.items=new l.CanvasItemsManager(this.view.canvasElement,z.zoomLevel,this.dom),this.page=new x.CanvasPageManager(this.view.pageElement,z,this.dom),this.selection=new y.CanvasSelectionManager(this.view.canvasElement,z.zoomLevel,z.readOnly,this.dom),this.contextMenuEnabled=z.contextMenuEnabled,this.view.onViewChanged.add(this.page),this.view.onViewChanged.add(this.items),this.view.onViewChanged.add(this.selection),this.view.onViewChanged.add(this.input),this.autoScroll=new E.AutoScrollController(this.scroll,Y,this.view,this.dom),this.attachEvents(Y),this.mainElement=K,this.svgElement=Y,this.events=B,this.notifyReadOnlyChanged(z.readOnly)}return R.prototype.clean=function(P){this.killLockMouseMoveTimer(),this.clearLastMouseDownEvent(),this.detachEvents(this.svgElement),this.scroll.detachEvents(),this.input.detachEvents(),this.dom.cancelAnimation(),P&&P(this.mainElement)},R.prototype.replaceParent=function(P,B){this.mainElement&&this.mainElement.parentNode!==P&&P.appendChild(this.mainElement),B&&B!==this.scroll&&(this.scroll&&this.scroll.detachEvents(),this.scroll=B),this.measurer instanceof S.TextMeasurer&&this.measurer.replaceParent(P)},R.prototype.update=function(P){this.view.adjust({horizontal:!P,vertical:!P}),this.page.redraw()},R.prototype.onNewModel=function(P){this.measurer.onNewModel(P,this.dom)},R.prototype.clear=function(){this.items.clear(),this.selection.clear()},R.prototype.attachPointerEvents=function(P){C.DomUtils.addClassName(P,"dxdi-touch-action"),O.RenderHelper.addEventListener(P,"pointerdown",this.onPointerDownHandler),O.RenderHelper.addEventListener(p.Browser.TouchUI?P:document,"pointerup",this.onPointerUpHandler),O.RenderHelper.addEventListener(p.Browser.TouchUI?P:document,"pointermove",this.onPointerMoveHandler),O.RenderHelper.addEventListener(P,"pointercancel",this.onPointerCancelHandler),O.RenderHelper.addEventListener(P,"pointerleave",this.onPointerLeaveHandler)},R.prototype.detachPointerEvents=function(P){O.RenderHelper.removeEventListener(P,"pointerdown",this.onPointerDownHandler),O.RenderHelper.removeEventListener(p.Browser.TouchUI?P:document,"pointerup",this.onPointerUpHandler),O.RenderHelper.removeEventListener(p.Browser.TouchUI?P:document,"pointermove",this.onPointerMoveHandler),O.RenderHelper.removeEventListener(P,"pointercancel",this.onPointerCancelHandler),O.RenderHelper.removeEventListener(P,"pointerleave",this.onPointerLeaveHandler),C.DomUtils.removeClassName(P,"dxdi-touch-action")},R.prototype.attachMouseTouchEvents=function(P){O.RenderHelper.addEventListener(P,this.mouseDownEventName,this.onMouseDownHandler),O.RenderHelper.addEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),O.RenderHelper.addEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},R.prototype.detachMouseTouchEvents=function(P){O.RenderHelper.removeEventListener(P,this.mouseDownEventName,this.onMouseDownHandler),O.RenderHelper.removeEventListener(document,this.mouseMoveEventName,this.onMouseMoveHandler),O.RenderHelper.removeEventListener(document,this.mouseUpEventName,this.onMouseUpHandler)},R.prototype.attachEvents=function(P){this.mouseDownEventName=p.Browser.TouchUI?"touchstart":"mousedown",this.mouseMoveEventName=p.Browser.TouchUI?"touchmove":"mousemove",this.mouseUpEventName=p.Browser.TouchUI?"touchend":"mouseup",this.onPointerDownHandler=this.onPointerDown.bind(this),this.onPointerUpHandler=this.onPointerUp.bind(this),this.onPointerMoveHandler=this.onPointerMove.bind(this),this.onPointerCancelHandler=this.onPointerCancel.bind(this),this.onPointerLeaveHandler=this.onPointerLeave.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseEnterHandler=this.onMouseEnter.bind(this),this.onMouseLeaveHandler=this.onMouseLeave.bind(this),this.onMouseWheelHandler=this.onMouseWheel.bind(this),this.onMouseDblClickHandler=this.onMouseDblClick.bind(this),this.onContextMenuHandler=this.onContextMenu.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onWindowResizelHandler=this.onWindowResize.bind(this),this.onOrientationChangeHandler=this.onOrientationChange.bind(this),this.onMouseClickHandler=this.onMouseClick.bind(this),T.EventUtils.isPointerEvents()?this.attachPointerEvents(P):(this.attachMouseTouchEvents(P),O.RenderHelper.addEventListener(P,"mouseenter",this.onMouseEnterHandler),O.RenderHelper.addEventListener(P,"mouseleave",this.onMouseLeaveHandler)),O.RenderHelper.addEventListener(P,"wheel",this.onMouseWheelHandler),O.RenderHelper.addEventListener(P,"dblclick",this.onMouseDblClickHandler),O.RenderHelper.addEventListener(P,"click",this.onMouseClickHandler),O.RenderHelper.addEventListener(P,"contextmenu",this.onContextMenuHandler),O.RenderHelper.addEventListener(window,"resize",this.onWindowResizelHandler),O.RenderHelper.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.input.mouseWheelHandler=this.onMouseWheelHandler},R.prototype.detachEvents=function(P){T.EventUtils.isPointerEvents()?this.detachPointerEvents(P):(this.detachMouseTouchEvents(P),O.RenderHelper.removeEventListener(P,"mouseenter",this.onMouseEnterHandler),O.RenderHelper.removeEventListener(P,"mouseleave",this.onMouseLeaveHandler)),O.RenderHelper.removeEventListener(P,"wheel",this.onMouseWheelHandler),O.RenderHelper.removeEventListener(P,"dblclick",this.onMouseDblClickHandler),O.RenderHelper.removeEventListener(P,"contextmenu",this.onContextMenuHandler),O.RenderHelper.removeEventListener(P,"click",this.onMouseClickHandler),O.RenderHelper.removeEventListener(window,"resize",this.onWindowResizelHandler),O.RenderHelper.removeEventListener(window,"orientationchange",this.onOrientationChangeHandler)},R.prototype.setPointerPosition=function(P){this.pointers[P.pointerId]={clientX:P.clientX,clientY:P.clientY}},R.prototype.clearPointerPosition=function(P){delete this.pointers[P.pointerId]},R.prototype.onPointerDown=function(P){this.setPointerPosition(P),this.getPointerCount()>2&&(this.pointers={}),this.onMouseDown(P)},R.prototype.onPointerUp=function(P){this.clearPointerPosition(P),this.onMouseUp(P)},R.prototype.onPointerMove=function(P){(p.Browser.TouchUI&&!T.EventUtils.isMousePointer(P)||T.EventUtils.isLeftButtonPressed(P))&&this.setPointerPosition(P),this.onMouseMove(P)},R.prototype.onPointerCancel=function(P){this.clearPointerPosition(P)},R.prototype.onPointerLeave=function(P){T.EventUtils.isMousePointer(P)&&this.onMouseLeave(P),this.clearPointerPosition(P)},R.prototype.onMouseDown=function(P){var B=this;this.lockMouseMove(),this.input.lockFocus(),this.autoScroll.onMouseDown(P),this.lastDownMouseEvent=this.createDiagramMouseEvent(P),s.raiseEvent(P,this.lastDownMouseEvent,function(V){return B.events.onMouseDown(V)}),this.events.canFinishTextEditing()&&this.input.captureFocus(),T.EventUtils.isTouchEvent(P)&&this.processTouchDown(P);var W=I.EvtUtils.getEventSource(P),z=W&&W.tagName;if(p.Browser.TouchUI||"img"===z.toLowerCase()||"image"===z.toLowerCase())return I.EvtUtils.preventEventAndBubble(P),!1},R.prototype.onMouseMove=function(P){var B=this;this.moveLocked||(this.autoScroll.onMouseMove(P,function(){return B.onMouseMoveCore(P)}),this.onMouseMoveCore(P),p.Browser.IE&&this.lockMouseMove(),T.EventUtils.isTouchEvent(P)&&this.processTouchMove(P))},R.prototype.onMouseMoveCore=function(P){var B=this;s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onMouseMove(W)})},R.prototype.onMouseUp=function(P){var B=this;this.lockMouseMove();var W=this.createDiagramMouseEvent(P);s.raiseEvent(P,W,function(z){return B.events.onMouseUp(z)}),this.autoScroll.onMouseUp(P),W.source.type!==c.MouseEventElementType.Undefined&&this.input.captureFocus(!0),T.EventUtils.isTouchEvent(P)&&this.processTouchUp(P)},R.prototype.onMouseEnter=function(P){var B=this;this.autoScroll.onMouseEnter(P),s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onMouseEnter(W)})},R.prototype.onMouseLeave=function(P){var B=this;s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onMouseLeave(W)})},R.prototype.onMouseDblClick=function(P){var B=this;s.raiseEvent(P,this.createDiagramMouseEvent(P),function(W){return B.events.onDblClick(W)})},R.prototype.onMouseClick=function(P){var B=this;T.EventUtils.isTouchEvent(P)?T.EventUtils.isMousePointer(P)||this.input.captureFocus():s.raiseEvent(P,this.createActualMouseClickEvent(P),function(W){return B.events.onClick(W)})},R.prototype.createActualMouseClickEvent=function(P){return this.lastDownMouseEvent?new c.DiagramMouseEvent(this.lastDownMouseEvent.modifiers,this.lastDownMouseEvent.button,this.lastDownMouseEvent.offsetPoint.clone(),this.lastDownMouseEvent.modelPoint.clone(),this.lastDownMouseEvent.source,this.createDiagramMouseEventTouches(P)):this.createDiagramMouseEvent(P)},R.prototype.onContextMenu=function(P){var B=this;return s.raiseEvent(P,this.createDiagramContextMenuEvent(P),function(W){return B.events.onContextMenu(W)}),this.input.captureFocus(),I.EvtUtils.preventEventAndBubble(P)},R.prototype.processTouchDown=function(P){var B=this;this.touchDownPoint=this.getTouchPointFromEvent(P),this.resetLongTouch(),this.longTouchTimer=setTimeout(function(){s.raiseEvent(P,B.createDiagramMouseEvent(P),function(W){return B.events.onLongTouch(W)}),B.resetLongTouch(),B.resetDblClick()},u.LONG_TOUCH_TIMEOUT)},R.prototype.processTouchMove=function(P){var B=this.getTouchPointFromEvent(P);this.touchDownPoint&&B&&(Math.abs(this.touchDownPoint.x-B.x)>R.touchPositionLimit||Math.abs(this.touchDownPoint.y-B.y)>R.touchPositionLimit)&&(this.resetLongTouch(),this.resetDblClick())},R.prototype.getPointers=function(){var P=this;return Object.keys(this.pointers).map(function(B){return P.pointers[B]})},R.prototype.getPointerCount=function(){return Object.keys(this.pointers).length},R.prototype.getTouchPointFromEvent=function(P){var B,W=P.touches;if(W&&W.length>0)B=new g.Point(W[0].clientX,W[0].clientY);else{var z=this.getPointers();z.length&&(B=new g.Point(z[0].clientX,z[0].clientY))}return B},R.prototype.processTouchUp=function(P){var B=this;if(void 0!==this.longTouchTimer){s.raiseEvent(P,this.createDiagramMouseEvent(P),function(z){return B.events.onClick(z)});var W=I.EvtUtils.getEventSource(P);void 0!==this.dblTouchTimer&&this.lastClickElement===W?(s.raiseEvent(P,this.createDiagramMouseEvent(P),function(z){return B.events.onDblClick(z)}),this.resetDblClick()):(this.resetDblClick(),this.dblTouchTimer=setTimeout(function(){return B.dblTouchTimer=void 0},u.DBL_CLICK_TIMEOUT)),this.lastClickElement=W}this.resetLongTouch(),this.touchDownPoint=void 0},R.prototype.resetLongTouch=function(){void 0!==this.longTouchTimer&&clearTimeout(this.longTouchTimer),this.longTouchTimer=void 0},R.prototype.resetDblClick=function(){void 0!==this.dblTouchTimer&&clearTimeout(this.dblTouchTimer),this.dblTouchTimer=void 0},R.prototype.onOrientationChange=function(){var P=this;setTimeout(function(){return P.onWindowResize()},100)},R.prototype.onWindowResize=function(){var P={horizontal:!1,vertical:!1};if(this.view.autoZoom!==h.AutoZoomMode.Disabled)P.horizontal=!0,P.vertical=!0;else{var B=this.view.checkFitToCanvas(),W=this.view.checkFitToCanvas(this.scroll.getSize());P={horizontal:B.horizontal!==W.horizontal||W.horizontal,vertical:B.vertical!==W.vertical||W.vertical}}this.view.adjust(P)},R.prototype.onMouseWheel=function(P){var B=this;s.raiseEvent(P,this.createDiagramWheelEvent(P),function(W){return B.events.onMouseWheel(W)})},R.prototype.notifyModelSizeChanged=function(P,B){this.view.notifyModelSizeChanged(P,B)},R.prototype.notifyModelRectangleChanged=function(P){this.view.notifyModelRectangleChanged(P)},R.prototype.notifyReadOnlyChanged=function(P){C.DomUtils.toggleClassName(this.mainElement,"dxdi-read-only",P)},R.prototype.notifyDragStart=function(P){},R.prototype.notifyDragEnd=function(P){},R.prototype.notifyDragScrollStart=function(){this.autoScroll.onDragScrollStart()},R.prototype.notifyDragScrollEnd=function(){this.autoScroll.onDragScrollEnd()},R.prototype.notifyToolboxDragStart=function(P){this.onMouseEnter(P)},R.prototype.notifyToolboxDragEnd=function(P){P&&T.EventUtils.isPointerEvents()&&this.onMouseUp(P)},R.prototype.notifyToolboxDraggingMouseMove=function(P){this.onMouseMove(P)},R.prototype.createDiagramMouseEvent=function(P){var J,B=a.KeyUtils.getKeyModifiers(P),W=(J=P,(p.Browser.MSTouchUI?2!==J.button:T.EventUtils.isLeftButtonPressed(J))?c.MouseButton.Left:c.MouseButton.Right),z=this.getOffsetPointByEvent(P),V=this.getModelPoint(z),U=T.EventUtils.isTouchEvent(P),K=this.getEventSource(P,U),Y=this.createDiagramMouseEventTouches(P);return new c.DiagramMouseEvent(B,W,z,V,K,Y,U)},R.prototype.createDiagramMouseEventTouches=function(P){var B=[];if(P.touches)for(var W=0;W<P.touches.length;W++){var z=P.touches[W].clientX,V=P.touches[W].clientY,U=this.getOffsetPointByEventPoint(z,V),K=this.getModelPoint(U);B.push(new c.DiagramMouseEventTouch(U,K))}else{var Y=this.getPointers();for(W=0;W<Y.length;W++)U=this.getOffsetPointByEventPoint(z=Y[W].clientX,V=Y[W].clientY),K=this.getModelPoint(U),B.push(new c.DiagramMouseEventTouch(U,K))}return B},R.prototype.createDiagramContextMenuEvent=function(P){var B=a.KeyUtils.getKeyModifiers(P),W=new g.Point(P.pageX,P.pageY),z=this.getOffsetPointByEvent(P),V=this.getModelPoint(z);return new c.DiagramContextMenuEvent(B,W,V)},R.prototype.createDiagramWheelEvent=function(P){var B=a.KeyUtils.getKeyModifiers(P),W=this.getOffsetPointByEvent(P),z=this.view.getModelPoint(W),V=this.getEventSource(P);return new c.DiagramWheelEvent(B,P.deltaX||P.originalEvent&&P.originalEvent.deltaX,P.deltaY||P.originalEvent&&P.originalEvent.deltaY,W,z,V)},R.prototype.getEventSource=function(P,B){var W=B?I.EvtUtils.getEventSourceByPosition(P):I.EvtUtils.getEventSource(P);if(this.isDiagramControl(W))for(;W&&!this.isDocumentContainer(W);){var z=s.RenderUtils.getElementEventData(W);if(void 0!==z)return z;if(this.input.isTextInputElement(W))return new c.MouseEventSource(c.MouseEventElementType.Document);W=W.parentNode}var V=new c.MouseEventSource(c.MouseEventElementType.Undefined);return W&&this.isDocumentContainer(W)&&(V.type=c.MouseEventElementType.Background),V},R.prototype.isDiagramControl=function(P){for(;P;){if(this.isDocumentContainer(P))return!0;P=P.parentNode}return!1},R.prototype.isDocumentContainer=function(P){return P===this.mainElement},R.prototype.lockMouseMove=function(){var P=this;this.moveLocked=!0,this.lockMouseMoveTimer=setTimeout(function(){P.moveLocked=!1,P.lockMouseMoveTimer=-1},10)},R.prototype.killLockMouseMoveTimer=function(){-1!==this.lockMouseMoveTimer&&(clearTimeout(this.lockMouseMoveTimer),this.lockMouseMoveTimer=-1)},R.prototype.clearLastMouseDownEvent=function(){this.lastDownMouseEvent=void 0},R.prototype.getModelPoint=function(P){return this.view.getModelPoint(P)},R.prototype.getOffsetPointByEvent=function(P){var B=I.EvtUtils.getEventX(P),W=I.EvtUtils.getEventY(P);return this.getOffsetPointByEventPoint(B,W)},R.prototype.getOffsetPointByEventPoint=function(P,B){var W=this.scroll.getScrollContainer(),z=C.DomUtils.getAbsolutePositionX(W),V=C.DomUtils.getAbsolutePositionY(W);return new g.Point(P-z,B-V)},R.prototype.getModelPointByEventPoint=function(P,B){var W=this.getOffsetPointByEventPoint(P,B);return this.view.getModelPoint(W)},R.prototype.getEventPointByModelPoint=function(P){var B=this.view.getAbsolutePoint(P),W=this.scroll.getScrollContainer();return new g.Point(C.DomUtils.getAbsolutePositionX(W)+B.x,C.DomUtils.getAbsolutePositionY(W)+B.y)},R.touchPositionLimit=4,R}();u.RenderManager=k},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.NativeScrollView=void 0;var c=o(3),I=o(2),C=o(0),g=o(27),a=o(15),p=function(){function s(l){this.onScroll=new c.EventDispatcher,this.scrollBarWidth=g.DomUtils.getVerticalScrollBarWidth(),this.mainElement=l,this.attachEvents()}return s.prototype.attachEvents=function(){var l=this;this.onScrollHandler=function(){return l.onScroll.raise1(function(d){return d.notifyScrollChanged(function(){return l.getScroll()})})},a.RenderHelper.addEventListener(this.mainElement,"scroll",this.onScrollHandler)},s.prototype.detachEvents=function(){a.RenderHelper.removeEventListener(this.mainElement,"scroll",this.onScrollHandler)},s.prototype.getScrollContainer=function(){return this.mainElement},s.prototype.setScroll=function(l,d){var h=this;this.mainElement.style.overflow="scroll",this.mainElement.scrollLeft=l,this.mainElement.scrollTop=d,this.mainElement.style.overflow="",this.onScroll.raise1(function(v){return v.notifyScrollChanged(function(){return h.getScroll()})})},s.prototype.offsetScroll=function(l,d){var h=this;l&&(this.mainElement.scrollLeft+=l),d&&(this.mainElement.scrollTop+=d),this.onScroll.raise1(function(v){return v.notifyScrollChanged(function(){return h.getScroll()})})},s.prototype.getScroll=function(){return new C.Point(this.mainElement.scrollLeft,this.mainElement.scrollTop)},s.prototype.getSize=function(){var l=this.mainElement.getBoundingClientRect();return new I.Size(Math.floor(l.width),Math.floor(l.height))},s.prototype.getScrollBarWidth=function(){return this.scrollBarWidth},s}();u.NativeScrollView=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.InputManager=void 0;var c=o(25),I=o(27),C=o(17),g=o(11),a=o(14),p=o(6),s=o(65),l=o(43),d=o(18),h=o(12),v=o(15),x=o(64),b=o(3),y=function(){function E(S,O,w,T,k,R){this.mainElement=S,this.layoutPointResolver=O,this.eventManager=w,this.textMeasurer=T,this.actualZoom=k,this.focusElementsParent=R,this.focused=!1,this.focusLocked=!1,this.createInputElements(this.mainElement,this.focusElementsParent)}return E.prototype.detachEvents=function(){this.detachInputElementEvents(),this.detachTextInputElementEvents()},E.prototype.isFocused=function(){return this.focused},E.prototype.captureFocus=function(S){S&&document.activeElement===this.textInputElement?b.HtmlFocusUtils.focusWithPreventScroll(this.textInputElement||this.inputElement):b.HtmlFocusUtils.focusWithPreventScroll(this.inputElement)},E.prototype.setClipboardData=function(S){this.clipboardInputElement.value=S,b.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("copy"),this.captureFocus()},E.prototype.getClipboardData=function(S){var O=this;navigator&&navigator.clipboard?navigator.clipboard.readText().then(function(w){S(w),O.captureFocus()}).catch(function(){S(""),O.captureFocus()}):d.Browser.IE&&(this.clipboardInputElement.value="",b.HtmlFocusUtils.focusWithPreventScroll(this.clipboardInputElement),this.clipboardInputElement.select(),document.execCommand("Paste"),S(this.clipboardInputElement.value),this.captureFocus())},E.prototype.isPasteSupportedByBrowser=function(){return d.Browser.IE||d.Browser.WebKitFamily&&navigator&&void 0!==navigator.clipboard},E.prototype.createInputElements=function(S,O){this.createFocusInputElement(O||S),this.createTextInputElement(S),this.createClipboardInputElement(O||S),this.attachInputElementEvents()},E.prototype.setInputElementFocusHandlerMode=function(S){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),S&&this.captureFocus()},E.prototype.setInputElementTextInputMode=function(S,O,w,T,k,R){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container "+k),this.textInputElement.value=S,this.setTextInputElementBounds(O,w,R),this.setTextInputElementStyle(T),this.updateTextInputPadding();var P=this.textInputElement||this.inputElement;b.HtmlFocusUtils.focusWithPreventScroll(P),P.select&&P.select()},E.prototype.setTextInputElementBounds=function(S,O,w){this.savedTextInputPosition=S,this.savedTextInputSize=O,this.savedTextInputAngle=w;var T=this.layoutPointResolver.getAbsolutePoint(S,!0);this.textInputElementContainer.style.left=T.x+"px",this.textInputElementContainer.style.top=T.y+"px",this.textInputElementContainer.style.width=O&&O.width+"px"||"0px",this.textInputElementContainer.style.height=O&&O.height+"px"||"0px";var k=[];this.textInputElementContainer.style.transform="",1!==this.actualZoom&&k.push("scale("+this.actualZoom+")"),w&&k.push("rotate("+w+"deg)"),this.textInputElementContainer.style.transform=k.join(" "),this.textInputElement.style.width=O&&O.width+"px"||"",this.textInputElement.style.height=O&&O.height+"px"||"auto"},E.prototype.setTextInputElementStyle=function(S){this.savedTextInputStyle=S,C.RenderUtils.applyStyleToElement(S,this.textInputElement)},E.prototype.createFocusInputElement=function(S){this.inputElement=document.createElement("textarea"),this.inputElement.readOnly=d.Browser.TouchUI,this.inputElement.setAttribute("class","dxdi-focus-input"),S.appendChild(this.inputElement)},E.prototype.attachInputElementEvents=function(){this.onInputBlurHandler=this.onInputBlur.bind(this),this.onInputFocusHandler=this.onInputFocus.bind(this),this.onInputKeyDownHandler=this.onInputKeyDown.bind(this),this.onInputKeyPressHandler=this.onInputKeyPress.bind(this),this.onInputKeyUpHandler=this.onInputKeyUp.bind(this),this.onPasteHandler=this.onPaste.bind(this),v.RenderHelper.addEventListener(this.inputElement,"blur",this.onInputBlurHandler),v.RenderHelper.addEventListener(this.inputElement,"focus",this.onInputFocusHandler),v.RenderHelper.addEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),v.RenderHelper.addEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),v.RenderHelper.addEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),v.RenderHelper.addEventListener(this.inputElement,"paste",this.onPasteHandler)},E.prototype.detachInputElementEvents=function(){v.RenderHelper.removeEventListener(this.inputElement,"blur",this.onInputBlurHandler),v.RenderHelper.removeEventListener(this.inputElement,"focus",this.onInputFocusHandler),v.RenderHelper.removeEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),v.RenderHelper.removeEventListener(this.inputElement,"keypress",this.onInputKeyPressHandler),v.RenderHelper.removeEventListener(this.inputElement,"keyup",this.onInputKeyUpHandler),v.RenderHelper.removeEventListener(this.inputElement,"paste",this.onPasteHandler)},E.prototype.createTextInputElement=function(S){this.textInputElementContainer=document.createElement("div"),this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),S.appendChild(this.textInputElementContainer),this.textInputElement=document.createElement("textarea"),this.textInputElement.setAttribute("class","dxdi-text-input"),this.attachTextInputElementEvents(),this.textInputElementContainer.appendChild(this.textInputElement)},E.prototype.attachTextInputElementEvents=function(){this.onTextInputBlurHandler=this.onTextInputBlur.bind(this),this.onTextInputFocusHandler=this.onTextInputFocus.bind(this),this.onTextInputKeyDownHandler=this.onTextInputKeyDown.bind(this),this.onTextInputMouseWheelHandler=this.onTextInputMouseWheel.bind(this),this.onTextInputMouseUpHandler=this.onTextInputMouseUp.bind(this),this.onTextInputKeyUpHandler=this.onTextInputKeyUp.bind(this),this.onTextInputChangeHandler=this.onTextInputChange.bind(this),v.RenderHelper.addEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),v.RenderHelper.addEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),v.RenderHelper.addEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),v.RenderHelper.addEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),v.RenderHelper.addEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),v.RenderHelper.addEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),v.RenderHelper.addEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},E.prototype.detachTextInputElementEvents=function(){v.RenderHelper.removeEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),v.RenderHelper.removeEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),v.RenderHelper.removeEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),v.RenderHelper.removeEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),v.RenderHelper.removeEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler),v.RenderHelper.removeEventListener(this.textInputElement,"keyup",this.onTextInputKeyUpHandler),v.RenderHelper.removeEventListener(this.textInputElement,"change",this.onTextInputChangeHandler)},E.prototype.createClipboardInputElement=function(S){this.clipboardInputElement=document.createElement("textarea"),this.clipboardInputElement.setAttribute("class","dxdi-clipboard-input"),S.appendChild(this.clipboardInputElement)},E.prototype.blurControl=function(){this.focusLocked||(this.focused=!1,I.DomUtils.removeClassName(this.mainElement,"focused"))},E.prototype.focusControl=function(){this.focused=!0,this.focusLocked=!1,I.DomUtils.addClassName(this.mainElement,"focused")},E.prototype.updateTextInputPadding=function(){var S=this.textInputElement.value;if(this.savedTextInputSize){w=this.textMeasurer.measureWords(S,this.savedTextInputStyle,l.TextOwner.Shape),T=x.getTextHeight(S,this.savedTextInputSize.width,w,!0);var O=Math.max(0,.5*(this.savedTextInputSize.height-T));this.textInputElement.style.paddingTop=Math.ceil(O)+"px",this.textInputElement.style.height=Math.floor(this.savedTextInputSize.height)+"px"}else{var w=this.textMeasurer.measureWords(" ",this.savedTextInputStyle,l.TextOwner.Connector),T=x.getLineHeight(w)*((x.textToParagraphs(S).length||1)+1);this.textInputElement.style.height=Math.ceil(T)+"px"}},E.prototype.onInputBlur=function(S){var O=this;this.blurControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(w){return O.eventManager.onBlur(w)})},E.prototype.onInputFocus=function(S){var O=this;this.focusControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(w){return O.eventManager.onFocus(w)})},E.prototype.onInputKeyDown=function(S){var O=this;C.raiseEvent(S,this.getDiagramKeyboardEvent(S),function(w){return O.eventManager.onKeyDown(w)})},E.prototype.onInputKeyPress=function(S){!S.preventDefault||d.Browser.Safari&&"KeyV"===S.code||S.preventDefault()},E.prototype.onInputKeyUp=function(S){var O=this;C.raiseEvent(S,this.getDiagramKeyboardEvent(S),function(w){return O.eventManager.onKeyUp(w)})},E.prototype.onTextInputBlur=function(S){var O=this;if(this.eventManager.canFinishTextEditing())this.blurControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(T){return O.eventManager.onTextInputBlur(T)});else{var w=s.EvtUtils.getEventSource(S);document.activeElement!==w&&w.focus()}},E.prototype.onTextInputFocus=function(S){var O=this;this.focusControl(),C.raiseEvent(S,this.getDiagramFocusEvent(S),function(w){return O.eventManager.onTextInputFocus(w)})},E.prototype.onTextInputKeyDown=function(S){var O=this;C.raiseEvent(S,this.getDiagramKeyboardEvent(S),function(w){return O.eventManager.onTextInputKeyDown(w)})},E.prototype.onTextInputKeyUp=function(S){this.updateTextInputPadding()},E.prototype.onTextInputChange=function(S){this.updateTextInputPadding()},E.prototype.onPaste=function(S){var O=this;C.raiseEvent(S,this.getDiagramClipboardEvent(S),function(w){return O.eventManager.onPaste(w)})},E.prototype.onTextInputMouseWheel=function(S){this.mouseWheelHandler&&this.mouseWheelHandler(S)},E.prototype.onTextInputMouseUp=function(S){S.stopPropagation&&S.stopPropagation(),s.EvtUtils.cancelBubble(S)},E.prototype.getDiagramKeyboardEvent=function(S){return new g.DiagramKeyboardEvent(c.KeyUtils.getKeyModifiers(S),c.KeyUtils.getEventKeyCode(S),this.textInputElement.value)},E.prototype.getTextInputElementValue=function(){return this.textInputElement.value},E.prototype.getDiagramFocusEvent=function(S){return new g.DiagramFocusEvent(S.target.value)},E.prototype.getDiagramClipboardEvent=function(S){var O,w=S.clipboardData||S.originalEvent&&S.originalEvent.clipboardData;return O=void 0!==w?w.getData("text/plain"):window.clipboardData.getData("Text"),new g.DiagramClipboardEvent(O)},E.prototype.isTextInputElement=function(S){return"string"==typeof S.className&&S.className.indexOf("dxdi-text-input")>-1},E.prototype.lockFocus=function(){var S=this;this.focusLocked=!0,setTimeout(function(){return S.focusLocked=!1},10)},E.prototype.notifyViewAdjusted=function(S){},E.prototype.notifyActualZoomChanged=function(S){this.actualZoom=S,this.savedTextInputPosition&&this.savedTextInputSize&&this.setTextInputElementBounds(this.savedTextInputPosition,this.savedTextInputSize,this.savedTextInputAngle)},E.prototype.notifyTextInputStart=function(S,O,w,T){var k,R="";S instanceof a.Shape?(R="shape-text",k=S.textAngle):S instanceof p.Connector&&(R="connector-text"),T=T&&T.clone().applyConverter(h.UnitConverter.twipsToPixels),this.setInputElementTextInputMode(O,w,T,S.styleText,R,k)},E.prototype.notifyTextInputEnd=function(S,O){this.setInputElementFocusHandlerMode(O)},E.prototype.notifyTextInputPermissionsCheck=function(S,O){},E}();u.InputManager=y},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasPageManager=void 0;var C=o(26),g=o(21),a=o(5),p=o(341),s=o(56),l=o(42),d=o(2),h=o(0),v=o(17),x=o(22),b=o(12),y=function(E){function S(O,w,T){var k=E.call(this,w.zoomLevel,T)||this;return k.snapPoint=new h.Point(0,0),k.gridPatternId=v.RenderUtils.generateSvgElementId("gridPattern"),k.pagesGridPatternId=v.RenderUtils.generateSvgElementId("pagesGridPattern"),k.pagesGridClipId=v.RenderUtils.generateSvgElementId("pagesGridClip"),k.pageColor=w.pageColor,k.modelSize=w.modelSize,k.simpleView=w.simpleView,k.gridSize=w.gridSize,k.gridVisible=w.gridVisible,k.pageSize=w.pageLandscape?new d.Size(w.pageSize.height,w.pageSize.width):w.pageSize,k.canvasViewOffset=new h.Point(0,0),k.initContainers(O),k}return I(S,E),S.prototype.initContainers=function(O){this.backgroundContainer=O},S.prototype.redraw=function(){this.redrawPage(this.pageColor),this.redrawGrid()},S.prototype.redrawPage=function(O){var w=new C.Style;w.fill=x.ColorUtils.colorToHash(O),this.getOrCreateElement("page-bg",new g.RectanglePrimitive(0,0,"100%","100%",w,"page"),this.backgroundContainer),this.createTextFloodFilter("page-bg-textflood-filter",this.backgroundContainer,O)},S.prototype.redrawGrid=function(){this.updateGridElements(),this.updatePagesGridElements()},S.prototype.getGridRectElement=function(O){return void 0===this.gridRectElement&&(this.gridRectElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.gridRectElement},S.prototype.getGridPatternElement=function(O){return void 0===this.gridPatternElement&&(this.gridPatternElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.gridPatternElement},S.prototype.updateGridElements=function(){var O=this,w=new g.RectanglePrimitive("0","0","100%","100%",null,"grid",null,function(K){K.style.setProperty("fill",v.RenderUtils.getUrlPathById(O.gridPatternId))}),T=this.getGridRectElement(w);if(this.gridVisible){T.style.display="",this.changePrimitiveElement(w,T);for(var k=b.UnitConverter.twipsToPixelsF(this.gridSize)*this.actualZoom,R=[0,1,2,3,4].map(function(K){return Math.round(k*K)}),P=[new a.PathPrimitiveMoveToCommand(R[4].toString(),"0"),new a.PathPrimitiveLineToCommand(R[4].toString(),R[4].toString()),new a.PathPrimitiveLineToCommand("0",R[4].toString())],B=[],W=1;W<=3;W++)B.push(new a.PathPrimitiveMoveToCommand(R[W].toString(),"0")),B.push(new a.PathPrimitiveLineToCommand(R[W].toString(),R[4].toString()));for(W=1;W<=3;W++)B.push(new a.PathPrimitiveMoveToCommand("0",R[W].toString())),B.push(new a.PathPrimitiveLineToCommand(R[4].toString(),R[W].toString()));var z=4*k,V=this.simpleView?this.canvasViewOffset:h.Point.zero(),U=new p.PatternPrimitive(this.gridPatternId,[this.createGridPathPrimitive(P,"grid-outer-line"),this.createGridPathPrimitive(B,"grid-inner-line")],this.createGridPatternPrimitivePosition(V.x,this.snapPoint.x,z),this.createGridPatternPrimitivePosition(V.y,this.snapPoint.y,z),z.toString(),z.toString());this.changePrimitiveElement(U,this.getGridPatternElement(U))}else T.style.display="none"},S.prototype.createGridPatternPrimitivePosition=function(O,w,T){return(((O+w*this.actualZoom)%T-T)%T).toString()},S.prototype.createGridPathPrimitive=function(O,w){return new a.PathPrimitive(O,C.StrokeStyle.default1pxNegativeOffsetInstance,w)},S.prototype.getPagesGridRectElement=function(O){return this.getOrCreateElement("grid-pages-rect",O,this.backgroundContainer)},S.prototype.getPagesGridClipPathElement=function(O){return void 0===this.pagesGridClipPathElement&&(this.pagesGridClipPathElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.pagesGridClipPathElement},S.prototype.getPagesGridPatternElement=function(O){return void 0===this.pagesGridPatternElement&&(this.pagesGridPatternElement=this.createPrimitiveElement(O,this.backgroundContainer)),this.pagesGridPatternElement},S.prototype.updatePagesGridElements=function(){var O=this,w=this.getAbsoluteSize(this.pageSize),T=new g.RectanglePrimitive("0","0","100%","100%",null,"grid-page",this.pagesGridClipId,function(W){W.style.setProperty("fill",v.RenderUtils.getUrlPathById(O.pagesGridPatternId)),W.style.setProperty("display",O.simpleView?"none":"")});if(this.getPagesGridRectElement(T),!this.simpleView){var k=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom),R=[new a.PathPrimitiveMoveToCommand((w.width-1).toString(),"0"),new a.PathPrimitiveLineToCommand((w.width-1).toString(),(w.height-1).toString()),new a.PathPrimitiveLineToCommand("0",(w.height-1).toString())],P=new p.PatternPrimitive(this.pagesGridPatternId,[new a.PathPrimitive(R,null,"pages-grid-line")],0,0,w.width.toString(),w.height.toString());this.changePrimitiveElement(P,this.getPagesGridPatternElement(P));var B=new s.ClipPathPrimitive(this.pagesGridClipId,[new g.RectanglePrimitive(0,0,(b.UnitConverter.twipsToPixelsF(k.width)-4).toString(),(b.UnitConverter.twipsToPixelsF(k.height)-4).toString())]);this.changePrimitiveElement(B,this.getPagesGridClipPathElement(B))}},S.prototype.notifyModelSizeChanged=function(O,w){this.modelSize=O.clone(),this.redraw()},S.prototype.notifyModelRectangleChanged=function(O){},S.prototype.notifySnapPointPositionChanged=function(O){this.snapPoint=O.clone().applyConverter(b.UnitConverter.twipsToPixelsF),this.redrawGrid()},S.prototype.notifyPageColorChanged=function(O){this.pageColor=O,this.redrawPage(this.pageColor)},S.prototype.notifyModelChanged=function(O){},S.prototype.notifyPageSizeChanged=function(O,w){this.pageSize=w?new d.Size(O.height,O.width):O.clone(),this.redraw()},S.prototype.notifyActualZoomChanged=function(O){this.actualZoom=O,this.redraw()},S.prototype.notifyViewAdjusted=function(O){this.canvasViewOffset.equals(O)||(this.canvasViewOffset=O,this.simpleView&&this.redraw())},S.prototype.notifyViewChanged=function(O){this.simpleView=O,this.redraw()},S.prototype.notifyGridChanged=function(O,w){this.gridVisible=O,this.gridSize=w,this.redraw()},S}(l.CanvasManagerBase);u.CanvasPageManager=y},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(a,p){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,l){s.__proto__=l}||function(s,l){for(var d in l)l.hasOwnProperty(d)&&(s[d]=l[d])})(a,p)},function(a,p){function s(){this.constructor=a}c(a,p),a.prototype=null===p?Object.create(p):(s.prototype=p.prototype,new s)});Object.defineProperty(u,"__esModule",{value:!0}),u.PatternPrimitive=void 0;var C=o(15),g=function(a){function p(s,l,d,h,v,x,b){var y=a.call(this,b)||this;return y.id=s,y.x=d,y.y=h,y.width=v,y.height=x,y.children=l,y}return I(p,a),p.prototype.createMainElement=function(){var s=document.createElementNS(C.svgNS,"pattern");return s.setAttribute("patternUnits","userSpaceOnUse"),s.setAttribute("id",this.id),s},p.prototype.applyElementProperties=function(s,l){this.setUnitAttribute(s,"x",this.x),this.setUnitAttribute(s,"y",this.y),this.setUnitAttribute(s,"width",this.width),this.setUnitAttribute(s,"height",this.height),this.setPositionCorrectionAttribute(s),a.prototype.applyElementProperties.call(this,s,l)},p}(o(24).SvgPrimitive);u.PatternPrimitive=g},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(w,T){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,R){k.__proto__=R}||function(k,R){for(var P in R)R.hasOwnProperty(P)&&(k[P]=R[P])})(w,T)},function(w,T){function k(){this.constructor=w}c(w,T),w.prototype=null===T?Object.create(T):(k.prototype=T.prototype,new k)});Object.defineProperty(u,"__esModule",{value:!0}),u.CanvasViewManager=u.CROP_OFFSET=u.CANVAS_SCROLL_PADDING=u.CANVAS_MIN_PADDING=void 0;var C=o(42),g=o(28),a=o(3),p=o(87),s=o(2),l=o(0),d=o(39),h=o(56),v=o(21),x=o(17),b=o(343),y=o(26),E=o(27),S=o(12);u.CANVAS_MIN_PADDING=8,u.CANVAS_SCROLL_PADDING=18,u.CROP_OFFSET=40;var O=function(w){function T(k,R,P,B,W,z,V,U){var K=w.call(this,B,U)||this;return K.svgElement=R,K.paddings=new p.Offsets(0,0,0,0),K.scroll=new l.Point(0,0),K.crop=p.Offsets.empty(),K.lockAutoZoom=!1,K.autoScrollLocker=0,K.pageClipPathId=x.RenderUtils.generateSvgElementId("page-clip"),K.pageShadowId=x.RenderUtils.generateSvgElementId("page-shadow"),K.onViewChanged=new a.EventDispatcher,k.onScroll.add(K),P=P.clone().applyConverter(S.UnitConverter.twipsToPixelsF),K.scrollView=k,K.modelSize=P,K.simpleView=z,K.fixedZoomLevel=B,K.autoZoom=W,K.crop=K.rectangleToCrop(V,P),K.updateElements(P.clone().multiply(B,B),l.Point.zero(),z),K.getOrCreateElement("shadow",new b.ShadowFilterPrimitive(K.pageShadowId),K.svgElement),K.containerSize=k.getSize(),K}return I(T,w),T.prototype.adjust=function(k,R){var P;k||(k={vertical:!1,horizontal:!1},P=p.Offsets.empty()),this.containerSize=this.scrollView.getSize(),this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,k,this.containerSize,P,R),this.tryNormalizePaddings()},T.prototype.notifyModelSizeChanged=function(k,R){k=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF),this.adjustCore(k,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,{horizontal:!R,vertical:!R},this.containerSize,R&&R.clone().applyConverter(S.UnitConverter.twipsToPixelsF)),this.modelSize=k},T.prototype.notifyModelRectangleChanged=function(k){var R=this.rectangleToCrop(k,this.modelSize);this.crop&&this.crop.equals(R)||(this.simpleView&&this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,R,{horizontal:!1,vertical:!1},this.containerSize,p.Offsets.empty()),this.crop=R)},T.prototype.notifySnapPointPositionChanged=function(k){},T.prototype.notifyZoomChanged=function(k,R){this.adjustCore(this.modelSize,k,R,this.simpleView,this.crop,{horizontal:!1,vertical:!1},this.containerSize),this.fixedZoomLevel=k,this.autoZoom=R},T.prototype.notifyViewChanged=function(k){this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,k,this.crop,{vertical:!0,horizontal:!0},this.containerSize),this.simpleView=k},T.prototype.notifyGridChanged=function(k,R){},T.prototype.notifyDragStart=function(k){this.lockAutoZoom=!0,E.DomUtils.addClassName(this.svgElement,"dxdi-drag-item")},T.prototype.notifyDragEnd=function(k){this.lockAutoZoom=!1,E.DomUtils.removeClassName(this.svgElement,"dxdi-drag-item"),this.adjustAfterDragEnd()},T.prototype.adjustAfterDragEnd=function(){this.autoZoom&&!this.autoZoomLocked&&this.adjust({horizontal:!0,vertical:this.autoZoom===g.AutoZoomMode.FitContent},this.autoZoom===g.AutoZoomMode.FitToWidth)},T.prototype.notifyShowContextToolbox=function(){this.autoZoomLocked=!0},T.prototype.notifyHideContextToolbox=function(){this.autoZoomLocked=!1,this.adjustAfterDragEnd()},T.prototype.notifyDragScrollStart=function(){E.DomUtils.addClassName(this.svgElement,"dxdi-drag-scroll")},T.prototype.notifyDragScrollEnd=function(){E.DomUtils.removeClassName(this.svgElement,"dxdi-drag-scroll")},T.prototype.notifyScrollChanged=function(k){this.scroll=k()},T.prototype.checkFitToCanvas=function(k){k=k||this.containerSize;var R=this.scrollView.getScrollBarWidth();k=k.clone().offset(2*-u.CANVAS_MIN_PADDING,2*-u.CANVAS_MIN_PADDING).nonNegativeSize();var P=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),B=this.checkScrollBars(k,R,P,p.Offsets.empty());return{vertical:(k=k.clone().offset(B.vertical?-R:0,B.horizontal?-R:0).nonNegativeSize()).height>=P.height,horizontal:k.width>=P.width}},T.prototype.rectangleToCrop=function(k,R){var P=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF);return new p.Offsets(this.correctCrop(P.x),this.correctCrop(R.width-P.right),this.correctCrop(P.y),this.correctCrop(R.height-P.bottom))},T.prototype.correctCrop=function(k){return u.CROP_OFFSET*Math.floor(k/u.CROP_OFFSET)},T.prototype.setActualZoom=function(k){this.actualZoom!==k&&(this.actualZoom=k,this.raiseActualZoomChanged())},T.prototype.getActualAutoZoomLevel=function(k){if(k===g.AutoZoomMode.Disabled)return this.actualZoom;var R=this.containerSize,P=this.scrollView.getScrollBarWidth(),B=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop);return this.getActualAutoZoom(R,P,B,k)},T.prototype.getActualZoom=function(k,R,P,B,W){return this.lockAutoZoom?this.actualZoom:W===g.AutoZoomMode.Disabled?B:this.getActualAutoZoom(k,R,P,W)},T.prototype.getActualAutoZoom=function(k,R,P,B){return 0===k.width||0===k.height?1:B===g.AutoZoomMode.FitContent?Math.min((k.width-2*u.CANVAS_MIN_PADDING)/P.width,(k.height-2*u.CANVAS_MIN_PADDING)/P.height,1):Math.min((k.width-2*u.CANVAS_MIN_PADDING-R)/P.width,1)},T.prototype.raiseActualZoomChanged=function(){var k=this;this.onViewChanged.raise1(function(R){return R.notifyActualZoomChanged(k.actualZoom)})},T.prototype.tryNormalizePaddings=function(){var k=this.scrollView.getScrollBarWidth(),R=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),P=new l.Point(this.paddings.left,this.paddings.top),B=new s.Size(this.paddings.right,this.paddings.bottom),W=this.getTailSpace(P,this.scroll,R,this.containerSize,k);W.equals(B)||this.applyChanges(new p.Offsets(P.x,W.width,P.y,W.height),R,this.simpleView,this.crop.clone().multiply(this.actualZoom))},T.prototype.scrollBy=function(k){var R,P,B,W=this.scroll,z=this.containerSize,V=this.scrollView.getScrollBarWidth(),U=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).clone().multiply(this.actualZoom,this.actualZoom),K=this.checkScrollBars(z,V,U,this.paddings),Y=new l.Point(this.paddings.left,this.paddings.top),J=new s.Size(this.paddings.right,this.paddings.bottom);return W=(R=this.changeScrollByOffset(Y,W,J,U,k,z,K)).scroll,Y=(P=this.changeTranslateByOffset(Y,J,k=R.offset,K)).translate,k=P.offset,Y=(B=this.cropHiddenHead(Y,W)).translate,J=this.getTailSpace(Y,W=B.scroll,U,z,V),this.applyChanges(new p.Offsets(Y.x,J.width,Y.y,J.height),U,this.simpleView,this.crop.clone().multiply(this.actualZoom),W),k},T.prototype.changeScrollByOffset=function(k,R,P,B,W,z,V){var U=R.clone(),K=W.clone();return W.x&&V.horizontal&&(U.x-=K.x=-this.getScrollDeltaByOffset(W.x,R.x,k.x+B.width+P.width,z.width,V.vertical)),W.y&&V.vertical&&(U.y-=K.y=-this.getScrollDeltaByOffset(W.y,R.y,k.y+B.height+P.height,z.height,V.horizontal)),{scroll:U,offset:K}},T.prototype.changeTranslateByOffset=function(k,R,P,B){var W=k.clone(),z=P.clone();return P.x&&!B.horizontal&&(W.x+=z.x=this.getTranslateDeltaByOffset(P.x,W.x,R.width)),P.y&&!B.vertical&&(W.y+=z.y=this.getTranslateDeltaByOffset(P.y,W.y,R.height)),{translate:W,offset:z}},T.prototype.getScrollDeltaByOffset=function(k,R,P,B,W){if(k>0)return-Math.min(R,k);var z=P-(B-(W?this.scrollView.getScrollBarWidth():0));return Math.min(z-R,-k)},T.prototype.getTranslateDeltaByOffset=function(k,R,P){return k?k<0?-Math.min(R-u.CANVAS_MIN_PADDING,-k):Math.min(P-u.CANVAS_MIN_PADDING,k):0},T.prototype.getActualModelSizeWithoutZoom=function(k,R,P){return R&&P?k.clone().offset(-P.horizontal,-P.vertical).nonNegativeSize():k},T.prototype.setScrollTo=function(k,R){var P=this.containerSize,B=this.getVisibileAreaAbsShift(),W=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF).clone().multiply(this.actualZoom,this.actualZoom).clone().offset(B.x,B.y),z=this.scroll;R?(z.x+=W.x-R.x,z.y+=W.y-R.y):(W.x<0&&(z.x+=W.x-u.CANVAS_MIN_PADDING),W.y<0&&(z.y+=W.y-u.CANVAS_MIN_PADDING),W.x>P.width&&(z.x+=W.x-P.width+u.CANVAS_MIN_PADDING),W.y>P.height&&(z.y+=W.y-P.height+u.CANVAS_MIN_PADDING)),this.setScroll(z)},T.prototype.scrollIntoView=function(k){k=k.clone().applyConverter(S.UnitConverter.twipsToPixelsF).multiply(this.actualZoom,this.actualZoom).moveRectangle(this.paddings.left,this.paddings.top);var R=this.scroll,P=this.containerSize;if(!(k.x>=R.x&&k.y>=R.y&&k.right<=R.x+P.width&&k.bottom<=R.y+P.height)){var B=R.clone();k.x<R.x?B.x=k.x-u.CANVAS_SCROLL_PADDING:k.right>R.x+P.width&&(B.x=Math.min(k.x-u.CANVAS_SCROLL_PADDING,k.right+u.CANVAS_SCROLL_PADDING-P.width)),B.y=k.y<R.y?k.y-u.CANVAS_SCROLL_PADDING:Math.min(k.y-u.CANVAS_SCROLL_PADDING,k.bottom+u.CANVAS_SCROLL_PADDING-P.height),this.setScroll(B)}},T.prototype.setScroll=function(k){var R=this,P=this.modelSize.clone().multiply(this.actualZoom,this.actualZoom);k.x=Math.max(0,Math.min(k.x,P.width+this.paddings.horizontal-this.containerSize.width)),k.y=Math.max(0,Math.min(k.y,P.height+this.paddings.vertical-this.containerSize.height)),this.dom.changeByFunc(null,function(){R.scrollView.setScroll(k.x,k.y)}),this.scroll=k.clone()},T.prototype.updateElements=function(k,R,P){this.updatePageElement(k,R,P),this.updateCanvasElement(R)},T.prototype.updateCanvasElement=function(k){this.canvasElement=this.getOrCreateElement("dxdi-main",new d.GroupPrimitive([],"dxdi-main",null,null,function(R){R.setAttribute("transform","translate("+Math.round(k.x)+", "+Math.round(k.y)+")")}),this.svgElement)},T.prototype.updatePageElement=function(k,R,P){if(P)this.updatePageElementCore("",0,0,k.width,k.height);else{var B=R.x,W=R.y,z=k.width,V=k.height;this.createPageShadow(B,W,z,V),this.updatePageElementCore(this.pageClipPathId,Math.round(B),Math.round(W),z,V)}},T.prototype.createPageShadow=function(k,R,P,B){this.getOrCreateElement("pageShadowRect",new v.RectanglePrimitive(k.toString(),R.toString(),P.toString(),B.toString(),new y.EmptyStyle({filter:x.RenderUtils.getUrlPathById(this.pageShadowId)}),"dxdi-page-shadow"),this.svgElement,this.svgElement.firstChild)},T.prototype.updatePageElementCore=function(k,R,P,B,W){this.pageElement=this.getOrCreateElement("page",new d.GroupPrimitive([],"dxdi-page",null,k,function(z){z.setAttribute("transform","translate("+R+", "+P+")")}),this.svgElement),this.getOrCreateElement("pageClip",this.createPageClipPathPrimitive(B,W),this.svgElement)},T.prototype.createPageClipPathPrimitive=function(k,R){return new h.ClipPathPrimitive(this.pageClipPathId,[new v.RectanglePrimitive(0,0,k.toString(),R.toString())])},T.prototype.adjustCore=function(k,R,P,B,W,z,V,U,K){var Y=this.getActualModelSizeWithoutZoom(k,B,W);if(this.lockAutoZoom||!P&&U&&this.modelSize)this.resizeView(Y,this.actualZoom,V,B,W,U);else{var J=this.scrollView.getScrollBarWidth(),j=this.getActualZoom(V,J,Y,R,P);!P||j!==this.actualZoom||z.horizontal&&(z.vertical||K)?(this.resetView(Y,j,V,B,W,z),this.setActualZoom(j)):this.resizeView(Y,j,V,B,W,U||p.Offsets.empty())}},T.prototype.resetView=function(k,R,P,B,W,z){var V=k.clone().multiply(R,R),U=p.Offsets.fromNumber(u.CANVAS_MIN_PADDING);!(z=z||{horizontal:!0,vertical:!0}).horizontal&&this.paddings&&(U.left=this.paddings.left,U.right=this.paddings.right),!z.vertical&&this.paddings&&(U.top=this.paddings.top,U.bottom=this.paddings.bottom);var K=this.checkScrollBars(P,this.scrollView.getScrollBarWidth(),V,U),Y=this.scrollView.getScrollBarWidth(),J=z.horizontal||z.vertical?this.scroll:void 0;if(z.horizontal){var j=Math.max((P.width-(K.vertical?Y:0)-V.width)/2,u.CANVAS_MIN_PADDING);U.left=j,U.right=j,J.x=0}if(z.vertical){var ee=Math.max((P.height-(K.horizontal?Y:0)-V.height)/2,u.CANVAS_MIN_PADDING);U.top=ee,U.bottom=ee,J.y=0}this.applyChanges(U,V,B,W.clone().multiply(R),J)},T.prototype.resizeView=function(k,R,P,B,W,z){var V,U,K=this.actualZoom,Y=this.simpleView&&this.crop?this.crop.clone().multiply(K):p.Offsets.empty(),J=k.clone().multiply(R,R);z=z.clone().multiply(R);var j=B&&W?W.clone().multiply(R):p.Offsets.empty(),ee=new l.Point(this.paddings.left,this.paddings.top),G=this.scroll;ee=(V=this.applyOffset(ee,G,Y,j,z)).translate,ee=(U=this.cropHiddenHead(ee,G=V.scroll)).translate;var q=this.getTailSpace(ee,G=U.scroll,J,P,this.scrollView.getScrollBarWidth());if(!B){var Z=P.width-u.CANVAS_SCROLL_PADDING,X=P.height-u.CANVAS_SCROLL_PADDING;z.left<0&&ee.x>Z&&(ee.x=Z,G.x=0),z.right<0&&q.width>Z&&(q.width=Z,G.x>J.width&&(G.x=J.width)),z.top<0&&ee.y>X&&(ee.y=X,G.y=0),z.bottom<0&&q.height>X&&(q.height=X,G.y>J.height&&(G.y=J.height))}var M=new p.Offsets(ee.x,q.width,ee.y,q.height);this.applyChanges(M,J,B,j,G)},T.prototype.applyChanges=function(k,R,P,B,W){var z=this,V=new l.Point(k.left,k.top);P&&B&&(V=V.clone().offset(-B.left,-B.top)),this.updateElements(R,V,P),this.setSvgSize(R.width+k.horizontal,R.height+k.vertical),this.onViewChanged.raise1(function(U){return U.notifyViewAdjusted(new l.Point(V.x,V.y))}),W&&(this.lockAutoScroll(),W&&this.dom.changeByFunc(this.scrollView,function(U){U.setScroll(W.x,W.y),z.unlockAutoScroll()}),this.scroll=W),this.paddings=k},T.prototype.isAutoScrollLocked=function(){return 0!==this.autoScrollLocker},T.prototype.lockAutoScroll=function(){this.autoScrollLocker++},T.prototype.unlockAutoScroll=function(){this.autoScrollLocker--},T.prototype.applyOffset=function(k,R,P,B,W){var z=k.clone(),V=R.clone(),U=this.getActualOffset(P,B,W);return U.left&&(z.x=Math.max(u.CANVAS_MIN_PADDING,z.x-U.left),V.x+=U.left-(k.x-z.x)),U.top&&(z.y=Math.max(u.CANVAS_MIN_PADDING,z.y-U.top),V.y+=U.top-(k.y-z.y)),{translate:z,scroll:V}},T.prototype.cropHiddenHead=function(k,R){var P=R.clone(),B=k.clone();if(P.x&&B.x>u.CANVAS_MIN_PADDING){var W=B.x-Math.max(u.CANVAS_MIN_PADDING,B.x-P.x);B.x-=W,P.x-=W}return P.y&&B.y>u.CANVAS_MIN_PADDING&&(W=B.y-Math.max(u.CANVAS_MIN_PADDING,B.y-P.y),B.y-=W,P.y-=W),{translate:B,scroll:P}},T.prototype.getTailSpace=function(k,R,P,B,W){var z=k.clone(),V=R.clone(),U=Math.max(B.width+V.x-(z.x+P.width),u.CANVAS_MIN_PADDING),K=Math.max(B.height+V.y-(z.y+P.height),u.CANVAS_MIN_PADDING),Y=this.checkScrollBars(B,W,P,new p.Offsets(z.x,U,z.y,K));return Y.vertical&&(U=Math.max(u.CANVAS_MIN_PADDING,U-W)),Y.horizontal&&(K=Math.max(u.CANVAS_MIN_PADDING,K-W)),new s.Size(U,K)},T.prototype.getActualOffset=function(k,R,P){return new p.Offsets(-(R.left-k.left)+P.left,-(R.right-k.right)+P.right,-(R.top-k.top)+P.top,-(R.bottom-k.bottom)+P.bottom)},T.prototype.checkScrollBars=function(k,R,P,B){var W=k.width<P.width+B.horizontal,z=k.height<P.height+B.vertical;return W&&!z&&(z=k.height-R<P.height+B.vertical),z&&!W&&(W=k.width-R<P.width+B.horizontal),{horizontal:W,vertical:z}},T.prototype.setSvgSize=function(k,R){k===this.lastWidth&&R===this.lastHeight||(this.dom.changeByFunc(this.svgElement,function(P){return x.RenderUtils.updateSvgElementSize(P,k,R)}),this.lastWidth=k,this.lastHeight=R)},T.prototype.getVisibileAreaAbsShift=function(k){var R=this.scroll,P=this.paddings.clone(),B=this.simpleView;return new l.Point(P.left-(B&&this.crop?this.crop.left*this.actualZoom:0)-(k?0:R.x),P.top-(B&&this.crop?this.crop.top*this.actualZoom:0)-(k?0:R.y))},T.prototype.getModelPoint=function(k,R){var P=this.getVisibileAreaAbsShift(),B=k.clone().offset(-P.x,-P.y).multiply(1/this.actualZoom,1/this.actualZoom);if(R){var W=this.containerSize;if(k.x<0||k.y<0||k.x>W.width||k.y>W.height||B.x<0||B.y<0||B.x>this.modelSize.width||B.y>this.modelSize.height)return null}return B.clone().applyConverter(S.UnitConverter.pixelsToTwips)},T.prototype.getAbsolutePoint=function(k,R,P){var B=this.getVisibileAreaAbsShift(R),W=k.clone().multiply(this.actualZoom,this.actualZoom).clone().applyConverter(S.UnitConverter.twipsToPixelsF).clone().offset(B.x,B.y);if(P){if(W.x<0||W.y<0)return null;var z=this.containerSize;if(W.x>z.width||W.y>z.height)return null}return W},T}(C.CanvasManagerBase);u.CanvasViewManager=O},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.ShadowFilterPrimitive=void 0;var C=o(108),g=o(15),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return I(s,p),s.prototype.createChildElements=function(l){var d=document.createElementNS(g.svgNS,"feGaussianBlur");d.setAttribute("in","SourceGraphic"),d.setAttribute("stdDeviation","4.6"),l.appendChild(d);var h=document.createElementNS(g.svgNS,"feOffset");h.setAttribute("dx","0"),h.setAttribute("dy","0"),l.appendChild(h);var v=document.createElementNS(g.svgNS,"feMerge");l.appendChild(v);var x=document.createElementNS(g.svgNS,"feMergeNode");v.appendChild(x);var b=document.createElementNS(g.svgNS,"feMergeNode");b.setAttribute("in","SourceGraphic"),v.appendChild(b)},s}(C.FilterPrimitive);u.ShadowFilterPrimitive=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.AutoScrollController=void 0;var c=o(15),I=o(27),C=o(2),g=o(3),a=function(){function p(s,l,d,h){this.scroll=s,this.svgElement=l,this.view=d,this.dom=h,this.leftButtonPressed=!1,this.scrollDragging=!1,this.scrollTimer=-1,this.scrollBarWidth=I.DomUtils.getVerticalScrollBarWidth()}return p.prototype.onMouseMove=function(s,l){this.clearScrollTimer(),g.EventUtils.isLeftButtonPressed(s)||(this.leftButtonPressed=!1),this.canAutoScroll()&&this.changeScrollPosition(s,l,!1)},p.prototype.onMouseDown=function(s){this.leftButtonPressed=!!g.EventUtils.isLeftButtonPressed(s)},p.prototype.onMouseUp=function(s){this.clearScrollTimer(),this.leftButtonPressed=!1},p.prototype.onMouseEnter=function(s){var l=this;g.EventUtils.isLeftButtonPressed(s)&&setTimeout(function(){l.leftButtonPressed=!0},500)},p.prototype.onDragScrollStart=function(){this.scrollDragging=!0},p.prototype.onDragScrollEnd=function(){this.scrollDragging=!1},p.prototype.canAutoScroll=function(){return this.leftButtonPressed&&!this.scrollDragging},p.prototype.changeScrollPosition=function(s,l,d){var h=this,v=!1;if(!this.view.isAutoScrollLocked()){var x=this.scroll.getScrollContainer(),b=s.pageX-I.DomUtils.getAbsolutePositionX(x),y=s.pageY-I.DomUtils.getAbsolutePositionY(x),E=this.scroll.getSize(),S=new C.Size(parseFloat(this.svgElement.style.width),parseFloat(this.svgElement.style.height)),O=E.width;E.width<S.width&&(O-=this.scrollBarWidth);var w=E.height;E.height<S.height&&(w-=this.scrollBarWidth),b<=40?(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(-h.getScrollingOffset(b),0)}),v=!0):O-40<=b&&(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(h.getScrollingOffset(O-b),0)}),v=!0),y<=40?(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(0,-h.getScrollingOffset(y))}),v=!0):w-40<=y&&(this.dom.changeByFunc(null,function(){h.view.isAutoScrollLocked()||h.scroll.offsetScroll(0,h.getScrollingOffset(w-y))}),v=!0)}(v||this.view.isAutoScrollLocked())&&(this.scrollTimer=window.setTimeout(function(){return h.changeScrollPosition(s,l,v)},50)),d&&l()},p.prototype.clearScrollTimer=function(){this.scrollTimer>-1&&(window.clearTimeout(this.scrollTimer),this.scrollTimer=-1)},p.prototype.getScrollingOffset=function(s){var l=Math.pow((40-s)/5,2);return Math.round(Math.min(l,5))},p.createMainElement=function(s){var l=document.createElement("div");return l.setAttribute("class","dxdi-control"),s.appendChild(l),l},p.createSvgElement=function(s,l){void 0===l&&(l=!1);var d=document.createElementNS(c.svgNS,"svg");return d.className.baseVal="dxdi-canvas"+(l?" export":""),s.appendChild(d),d},p}();u.AutoScrollController=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(E,S){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(E,S)},function(E,S){function O(){this.constructor=E}c(E,S),E.prototype=null===S?Object.create(S):(O.prototype=S.prototype,new O)});Object.defineProperty(u,"__esModule",{value:!0}),u.DocumentDataSource=u.UpdateNodeKeyRelatedObjectsStackAction=u.UpdateNodeKeyRelatedObjectsStackItem=void 0;var C=o(1),g=o(14),a=o(6),p=o(346),s=o(4),l=o(44),d=o(3),h=o(49),v=o(31),x=function(E,S){this.shape=E,this.nodeObj=S};u.UpdateNodeKeyRelatedObjectsStackItem=x;var b=function(E,S){this.kind=E,this.nodeObj=S};u.UpdateNodeKeyRelatedObjectsStackAction=b;var y=function(E){function S(O,w,T,k,R,P){var B=E.call(this,"Document",w,T,k,R,P)||this;return B.changesListener=O,B.nodeInsertingLockCount=0,B.updateNodeKeyRelatedObjectsCount=0,B.updateNodeKeyRelatedObjectsStack=[],B.updateNodeKeyRelatedObjectsStackActions=[],B}return I(S,E),S.prototype.updateItemsByModel=function(O){var w=this;this.beginChangesNotification(),this.deleteNodes(O),this.deleteEdges(O),O.items.forEach(function(T){T instanceof g.Shape&&w.updateNode(O,T),T instanceof a.Connector&&w.updateEdge(O,T)}),this.endChangesNotification(!1)},S.prototype.isItemObjectModified=function(O,w,T){var k=T.setLocked&&w.locked!==O.locked||T.setZIndex&&w.zIndex!==O.zIndex||T.setCustomData&&!d.ObjectUtils.compareObjects(w.customData,O.customData);if(!k&&T.setStyle){var R=O.style.getDefaultInstance();O.style.forEach(function(B){O.style[B]!==R[B]&&O.style[B]!==(w.style&&w.style[B])&&(k=!0)})}if(!k&&T.setStyleText){var P=O.styleText.getDefaultInstance();O.styleText.forEach(function(B){O.styleText[B]!==P[B]&&O.styleText[B]!==(w.styleText&&w.styleText[B])&&(k=!0)})}return k},S.prototype.setDataObjectKeyRelatedProperty=function(O,w,T,k){(k||void 0===this.autoGeneratedDataKeys[T])&&O(w,T)},S.prototype.updateItemObjectProperties=function(O,w,T){if(T.setCustomData&&(O.customData=d.ObjectUtils.cloneObject(w.customData),O.dataObj&&void 0!==O.customData&&T.setCustomData(O.dataObj,w.customData)),T.setLocked&&(O.locked=w.locked,O.dataObj&&void 0!==O.locked&&T.setLocked(O.dataObj,w.locked)),T.setStyle){var k=w.style.toObject();O.style=k,O.dataObj&&void 0!==O.style&&T.setStyle(O.dataObj,l.Data.objectToCssText(k))}if(T.setStyleText){var R=w.styleText.toObject();O.styleText=R,O.dataObj&&void 0!==O.styleText&&T.setStyleText(O.dataObj,l.Data.objectToCssText(R))}T.setZIndex&&(O.zIndex=w.zIndex,O.dataObj&&void 0!==O.zIndex&&T.setZIndex(O.dataObj,w.zIndex))},S.prototype.deleteItems=function(O,w,T,k){O.slice().forEach(function(R){if(null!=R.key&&!w(R.key)){var P=T(R),B=P.indexOf(R.dataObj);P.splice(B,1),k(R,B>-1)}})},S.prototype.updateNode=function(O,w){var T=this,k=this.findNode(w.dataKey);if(k)this.isNodeObjectModified(w,k,O.units)?(this.updateNodeObjectProperties(w,k,O.units),this.updateNodeObjectConnectedProperties(w,k),this.beginChangesNotification(),this.changesListener.notifyNodeUpdated.call(this.changesListener,this.nodeDataImporter.getKey(k.dataObj||k.key),k.dataObj,function(P,B){T.endChangesNotification(!1)},function(P){T.endChangesNotification(!1)})):this.updateNodeObjectConnectedProperties(w,k,this.changesListener);else{var R={};null!=w.dataKey&&this.nodeDataImporter.setKey(R,w.dataKey),k=this.addNodeInternal(R,w.description.key,w.text),this.nodeDataSource.push(k.dataObj),this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setKey,R,k.key,this.addInternalKeyOnInsert),this.updateNodeObjectProperties(w,k,O.units),this.updateNodeObjectConnectedProperties(w,k),this.updateNodeObjectKey(w,k,k.dataObj),this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyNodeInserted.call(this.changesListener,k.dataObj,function(P){T.updateNodeObjectKey(w,k,P),T.endNodeInserting(),T.endChangesNotification(!1)},function(P){T.endNodeInserting(),T.endChangesNotification(!1)})}},S.prototype.areImageUrlsEqual=function(O,w){return O===w||h.StringUtils.isNullOrEmpty(O)&&h.StringUtils.isNullOrEmpty(w)},S.prototype.isNodeObjectModified=function(O,w,T){return this.isItemObjectModified(O,w,this.nodeDataImporter)||w.type!==O.description.key&&!(void 0===w.type&&O.description.key===C.ShapeTypes.Rectangle)||!this.compareStrings(w.text,O.text)||this.nodeDataImporter.setImage&&!this.areImageUrlsEqual(w.image,O.image.actualUrl)||this.nodeDataImporter.setLeft&&!v.MathUtils.numberCloseTo(w.left,s.ModelUtils.getlUnitValue(T,O.position.x))||this.nodeDataImporter.setTop&&!v.MathUtils.numberCloseTo(w.top,s.ModelUtils.getlUnitValue(T,O.position.y))||this.nodeDataImporter.setWidth&&!v.MathUtils.numberCloseTo(w.width,s.ModelUtils.getlUnitValue(T,O.size.width))||this.nodeDataImporter.setHeight&&!v.MathUtils.numberCloseTo(w.height,s.ModelUtils.getlUnitValue(T,O.size.height))},S.prototype.updateNodeObjectProperties=function(O,w,T){if(this.updateItemObjectProperties(w,O,this.nodeDataImporter),this.nodeDataImporter.setType&&(w.type=O.description.key,this.nodeDataImporter.setType(w.dataObj,O.description.key)),this.nodeDataImporter.setText&&(w.text=O.text,this.nodeDataImporter.setText(w.dataObj,O.text)),this.nodeDataImporter.setImage&&(w.image=O.image.actualUrl,this.nodeDataImporter.setImage(w.dataObj,void 0===O.image.actualUrl?null:O.image.actualUrl)),this.nodeDataImporter.setLeft){var k=s.ModelUtils.getlUnitValue(T,O.position.x);w.left=k,this.nodeDataImporter.setLeft(w.dataObj,k)}if(this.nodeDataImporter.setTop){var R=s.ModelUtils.getlUnitValue(T,O.position.y);w.top=R,this.nodeDataImporter.setTop(w.dataObj,R)}if(this.nodeDataImporter.setWidth){var P=s.ModelUtils.getlUnitValue(T,O.size.width);w.width=P,this.nodeDataImporter.setWidth(w.dataObj,P)}if(this.nodeDataImporter.setHeight){var B=s.ModelUtils.getlUnitValue(T,O.size.height);w.height=B,this.nodeDataImporter.setHeight(w.dataObj,B)}},S.prototype.updateNodeObjectConnectedProperties=function(O,w,T){if(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey){var k=this.getParentItemKey(O),R=this.findNode(k);this.updateNodeObjectParentKey(w,R,T)}if(this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey){var P=this.getContainerShapeKey(O),B=this.findNode(P);this.updateNodeObjectContainerKey(w,B,T)}this.useNodeItems&&void 0!==this.nodeDataImporter.setItems&&(k=this.getParentItemKey(O),R=this.findNode(k),this.updateNodeObjectItems(w,R,T)),this.useNodeChildren&&void 0!==this.nodeDataImporter.setChildren&&(P=this.getContainerShapeKey(O),B=this.findNode(P),this.updateNodeObjectChildren(w,B,T))},S.prototype.IsNodeParentIdMode=function(){return this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey},S.prototype.IsNodeItemsMode=function(){return this.useNodeItems&&void 0!==this.nodeDataImporter.setItems},S.prototype.updateNodeObjectParentKey=function(O,w,T){var k=this.nodeDataImporter.getParentKey(O.dataObj),R=w?this.nodeDataImporter.getKey(w.dataObj):void 0;k===R||this.isRootParentKey(k)&&this.isRootParentKey(R)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setParentKey,O.dataObj,R,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",O):this.updateNodeObjectContainerOrParentKeyInternal(O,T)))},S.prototype.updateNodeObjectParentKeyInternal=function(O,w){var T=this;this.beginChangesNotification(),w.notifyNodeUpdated.call(w,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(k,R){T.endChangesNotification(!1)},function(k){T.endChangesNotification(!1)})},S.prototype.updateNodeObjectContainerKey=function(O,w,T){var k=this.nodeDataImporter.getContainerKey(O.dataObj),R=w?this.nodeDataImporter.getKey(w.dataObj):void 0;k===R||this.isRootParentKey(k)&&this.isRootParentKey(R)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setContainerKey,O.dataObj,R,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("shape",O):this.updateNodeObjectContainerOrParentKeyInternal(O,T)))},S.prototype.updateNodeObjectContainerOrParentKeyInternal=function(O,w){var T=this;this.beginChangesNotification(),w.notifyNodeUpdated.call(w,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(k,R){T.endChangesNotification(!1)},function(k){T.endChangesNotification(!1)})},S.prototype.isRootParentKey=function(O){return null==O||!this.findNode(O)},S.prototype.updateNodeObjectItems=function(O,w,T){var k=this;if((w&&O.parentDataObj!==w.dataObj||!w&&O.parentDataObj)&&(!w||!this.checkNodeCyrcleItems(O.dataObj,w.dataObj))){var R=O.parentDataObj?this.nodeDataImporter.getItems(O.parentDataObj):this.nodeDataSource,P=R.indexOf(O.dataObj);R.splice(P,1);var B=w?this.nodeDataImporter.getItems(w.dataObj):this.nodeDataSource;B?B.push(O.dataObj):this.nodeDataImporter.setItems(w.dataObj,[O.dataObj]),O.parentDataObj=w&&w.dataObj,T&&(this.beginChangesNotification(),T.notifyNodeUpdated.call(T,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(W,z){k.endChangesNotification(!1)},function(W){k.endChangesNotification(!1)}))}},S.prototype.updateNodeObjectChildren=function(O,w,T){var k=this;if(w&&O.containerDataObj!==w.dataObj||!w&&O.containerDataObj){var R=O.containerDataObj?this.nodeDataImporter.getChildren(O.containerDataObj):this.nodeDataSource,P=R.indexOf(O.dataObj);R.splice(P,1);var B=w?this.nodeDataImporter.getChildren(w.dataObj):this.nodeDataSource;B?B.push(O.dataObj):this.nodeDataImporter.setChildren(w.dataObj,[O.dataObj]),O.containerDataObj=w&&w.dataObj,T&&(this.beginChangesNotification(),T.notifyNodeUpdated.call(T,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(W,z){k.endChangesNotification(!1)},function(W){k.endChangesNotification(!1)}))}},S.prototype.checkNodeCyrcleItems=function(O,w){var T=this,k=!1,R=this.nodeDataImporter.getItems(O);return R&&R.forEach(function(P){k=k||P===w||T.checkNodeCyrcleItems(P,w)}),k},S.prototype.updateNodeObjectKey=function(O,w,T){var k=this.nodeDataImporter.getKey(T),R=!1;if(null!=k&&k!==w.key&&(delete this.autoGeneratedDataKeys[w.key],w.key=k,R=!0),O.dataKey=w.key,w.dataObj!==T){var P=this.getNodeArray(w),B=P.indexOf(w.dataObj);P.splice(B,1,T),w.dataObj=T}R&&this.updateNodeKeyRelatedObjects(O,w)},S.prototype.updateNodeKeyRelatedObjects=function(O,w){var T=this;this.isInNodeInserting()?this.addToUpdateNodeKeyRelatedObjectsStack(O,w):(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey&&this.getChildItems(O).forEach(function(k){var R=T.findNode(k.dataKey);R&&T.updateNodeObjectParentKey(R,w,T.changesListener)}),this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey&&O.children.forEach(function(k){var R=k instanceof g.Shape?T.findNode(k.dataKey):void 0;R&&T.updateNodeObjectContainerKey(R,w,T.changesListener)}),this.useEdgesArray()&&O.attachedConnectors.forEach(function(k){var R=T.findEdge(k.dataKey);R&&(O===k.beginItem&&T.updateEdgeObjectFromProperty(w,R,T.changesListener),O===k.endItem&&T.updateEdgeObjectToProperty(w,R,T.changesListener))}))},S.prototype.deleteNodes=function(O){var w=this;this.deleteItems(this.nodes,function(T){return O.findShapeByDataKey(T)},function(T){return w.getNodeArray(T)},function(T,k){var R=T.dataObj&&w.nodeDataImporter.getKey(T.dataObj)||T.key,P=w.findNode(R);P&&w.nodes.splice(w.nodes.indexOf(P),1),k&&(w.beginChangesNotification(),w.changesListener.notifyNodeRemoved.call(w.changesListener,R,T.dataObj,function(B,W){w.endChangesNotification(!1)},function(B){w.endChangesNotification(!1)}))})},S.prototype.getParentItem=function(O){for(var w=0;w<O.attachedConnectors.length;w++)if(O.attachedConnectors[w].endItem===O)return O.attachedConnectors[w].beginItem},S.prototype.getParentItemKey=function(O){var w=this.getParentItem(O);return w&&w.dataKey},S.prototype.getNodeArray=function(O){var w;return this.useNodeItems&&O.parentDataObj?w=this.nodeDataImporter.getItems(O.parentDataObj):O.containerDataObj&&(w=this.nodeDataImporter.getChildren(O.containerDataObj)),w||this.nodeDataSource},S.prototype.getContainerShapeKey=function(O){return O.container&&O.container.dataKey},S.prototype.getChildItems=function(O){for(var w=[],T=0;T<O.attachedConnectors.length;T++)O.attachedConnectors[T].beginItem===O&&O.attachedConnectors[T].endItem&&w.push(O.attachedConnectors[T].endItem);return w},S.prototype.updateEdge=function(O,w){var T=this,k=w.beginItem?w.beginItem.dataKey:void 0,R=w.endItem?w.endItem.dataKey:void 0,P=this.findEdge(w.dataKey);if(P)this.isEdgeObjectModified(w,P,O.units)&&(this.updateEdgeObjectProperties(w,P,O.units),P.dataObj&&(this.beginChangesNotification(),this.changesListener.notifyEdgeUpdated.call(this.changesListener,this.edgeDataImporter.getKey(P.dataObj)||P.key,P.dataObj,function(W,z){T.endChangesNotification(!1)},function(W){T.endChangesNotification(!1)})));else{var B=this.useEdgesArray()&&this.canUpdateEdgeDataSource?{}:void 0;B&&null!=w.dataKey&&this.edgeDataImporter.setKey(B,w.dataKey),P=this.addEdgeInternal(B,k,R),B&&(this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setKey,B,P.key,this.addInternalKeyOnInsert),this.edgeDataSource.push(P.dataObj)),this.updateEdgeObjectProperties(w,P,O.units),this.updateEdgeObjectKey(w,P,P.dataObj),B&&(this.beginChangesNotification(),this.beginNodeInserting(),this.changesListener.notifyEdgeInserted.call(this.changesListener,P.dataObj,function(W){T.updateEdgeObjectKey(w,P,W),T.endNodeInserting(),T.endChangesNotification(!1)},function(W){T.endNodeInserting(),T.endChangesNotification(!1)}))}},S.prototype.isEdgeObjectModified=function(O,w,T){return this.isItemObjectModified(O,w,this.edgeDataImporter)||(null!==w.from?w.from:void 0)!==(O.beginItem?O.beginItem.dataKey:void 0)||(null===w.to?void 0:w.to)!==(O.endItem?O.endItem.dataKey:void 0)||this.edgeDataImporter.setFromPointIndex&&w.fromPointIndex!==O.beginConnectionPointIndex||this.edgeDataImporter.setToPointIndex&&w.toPointIndex!==O.endConnectionPointIndex||this.edgeDataImporter.setPoints&&(!w.points||!this.pointsAreEqual(w.points.map(function(k){return k.x}),O.points.map(function(k){return s.ModelUtils.getlUnitValue(T,k.x)}))||!this.pointsAreEqual(w.points.map(function(k){return k.y}),O.points.map(function(k){return s.ModelUtils.getlUnitValue(T,k.y)})))||this.edgeDataImporter.setText&&!this.compareTexts(w,O)||this.edgeDataImporter.setLineOption&&w.lineOption!==O.properties.lineOption||this.edgeDataImporter.setStartLineEnding&&w.startLineEnding!==O.properties.startLineEnding||this.edgeDataImporter.setEndLineEnding&&w.endLineEnding!==O.properties.endLineEnding},S.prototype.pointsAreEqual=function(O,w){var T=O.length;if(T!==O.length)return!1;for(var k=0;k<T;k++)if(!v.MathUtils.numberCloseTo(O[k],w[k]))return!1;return!0},S.prototype.updateEdgeObjectFromProperty=function(O,w,T){if(w.from=O&&O.key,w.dataObj){var k=O&&O.dataObj&&this.nodeDataImporter.getKey(O.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setFrom,w.dataObj,k,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",w):this.updateEdgeObjectFromOrToPropertyInternal(w,T))}},S.prototype.updateEdgeObjectFromOrToPropertyInternal=function(O,w){var T=this;this.beginChangesNotification(),w.notifyEdgeUpdated.call(w,this.nodeDataImporter.getKey(O.dataObj)||O.key,O.dataObj,function(k,R){T.endChangesNotification(!1)},function(k){T.endChangesNotification(!1)})},S.prototype.updateEdgeObjectToProperty=function(O,w,T){if(w.to=O&&O.key,w.dataObj){var k=O&&O.dataObj&&this.nodeDataImporter.getKey(O.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setTo,w.dataObj,k,!1),T&&(this.isInUpdateNodeKeyRelatedObjects()?this.addToUpdateNodeKeyRelatedObjectsStackAction("edge",w):this.updateEdgeObjectFromOrToPropertyInternal(w,T))}},S.prototype.updateEdgeObjectProperties=function(O,w,T){if(this.updateItemObjectProperties(w,O,this.edgeDataImporter),this.edgeDataImporter.setFrom){var k=this.findNode(O.beginItem&&O.beginItem.dataKey);this.updateEdgeObjectFromProperty(k,w)}if(this.edgeDataImporter.setTo){var R=this.findNode(O.endItem&&O.endItem.dataKey);this.updateEdgeObjectToProperty(R,w)}if(this.edgeDataImporter.setFromPointIndex&&(w.fromPointIndex=O.beginConnectionPointIndex,w.dataObj&&this.edgeDataImporter.setFromPointIndex(w.dataObj,O.beginConnectionPointIndex)),this.edgeDataImporter.setToPointIndex&&(w.toPointIndex=O.endConnectionPointIndex,w.dataObj&&this.edgeDataImporter.setToPointIndex(w.dataObj,O.endConnectionPointIndex)),this.edgeDataImporter.setPoints){var P=O.points.map(function(V){return{x:s.ModelUtils.getlUnitValue(T,V.x),y:s.ModelUtils.getlUnitValue(T,V.y)}});w.points=P,w.dataObj&&this.edgeDataImporter.setPoints(w.dataObj,P)}if(this.edgeDataImporter.setText){var B=void 0;1===O.getTextCount()&&O.getText()&&(B=O.getText());var W={};if(O.texts.forEach(function(V){W[V.position]=V.value}),w.texts=W,w.dataObj){var z="";B?z=B:W&&Object.keys(W).length&&(z=W),this.edgeDataImporter.setText(w.dataObj,z)}}this.edgeDataImporter.setLineOption&&(w.lineOption=O.properties.lineOption,w.dataObj&&this.edgeDataImporter.setLineOption(w.dataObj,O.properties.lineOption)),this.edgeDataImporter.setStartLineEnding&&(w.startLineEnding=O.properties.startLineEnding,w.dataObj&&this.edgeDataImporter.setStartLineEnding(w.dataObj,O.properties.startLineEnding)),this.edgeDataImporter.setEndLineEnding&&(w.endLineEnding=O.properties.endLineEnding,w.dataObj&&this.edgeDataImporter.setEndLineEnding(w.dataObj,O.properties.endLineEnding))},S.prototype.updateEdgeObjectKey=function(O,w,T){var k=T&&this.edgeDataImporter.getKey(T);if(null!=k&&k!==w.key&&(delete this.autoGeneratedDataKeys[w.key],w.key=k),O.dataKey=w.key,w.dataObj!==T){var R=this.edgeDataSource,P=R.indexOf(w.dataObj);R.splice(P,1,T),w.dataObj=T}},S.prototype.deleteEdges=function(O){var w=this;this.deleteItems(this.edges,function(T){return O.findConnectorByDataKey(T)},function(T){return w.edgeDataSource},function(T,k){var R=T.dataObj&&w.edgeDataImporter.getKey(T.dataObj)||T.key,P=w.findEdge(R);P&&w.edges.splice(w.edges.indexOf(P),1),k&&(w.beginChangesNotification(),w.changesListener.notifyEdgeRemoved.call(w.changesListener,R,T.dataObj,function(B,W){w.endChangesNotification(!1)},function(B){w.endChangesNotification(!1)}))})},S.prototype.beginNodeInserting=function(){this.nodeInsertingLockCount++},S.prototype.endNodeInserting=function(){this.nodeInsertingLockCount--,0===this.nodeInsertingLockCount&&this.raiseNodeInsertingStack()},S.prototype.isInNodeInserting=function(){return this.nodeInsertingLockCount>0},S.prototype.addToUpdateNodeKeyRelatedObjectsStack=function(O,w){var T=new x(O,w);this.updateNodeKeyRelatedObjectsStack.push(T)},S.prototype.raiseNodeInsertingStack=function(){for(this.beginUpdateNodeKeyRelatedObjects();this.updateNodeKeyRelatedObjectsStack.length>0;){var O=this.updateNodeKeyRelatedObjectsStack[0];this.updateNodeKeyRelatedObjects(O.shape,O.nodeObj),this.updateNodeKeyRelatedObjectsStack.splice(0,1),O.shape.description.hasTemplate&&O.nodeObj&&this.changesListener.reloadInsertedItem(O.nodeObj.key)}this.endUpdateNodeKeyRelatedObjects()},S.prototype.beginUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount++},S.prototype.endUpdateNodeKeyRelatedObjects=function(){this.updateNodeKeyRelatedObjectsCount--,0===this.updateNodeKeyRelatedObjectsCount&&this.raiseUpdateNodeKeyRelatedObjectsStack()},S.prototype.isInUpdateNodeKeyRelatedObjects=function(){return this.updateNodeKeyRelatedObjectsCount>0},S.prototype.addToUpdateNodeKeyRelatedObjectsStackAction=function(O,w){for(var T=new b(O,w),k=0;k<this.updateNodeKeyRelatedObjectsStackActions.length;k++)if(this.updateNodeKeyRelatedObjectsStackActions[k].kind===O&&this.updateNodeKeyRelatedObjectsStackActions[k].nodeObj===w)return;this.updateNodeKeyRelatedObjectsStackActions.push(T)},S.prototype.raiseUpdateNodeKeyRelatedObjectsStack=function(){for(;this.updateNodeKeyRelatedObjectsStackActions.length>0;){var O=this.updateNodeKeyRelatedObjectsStackActions[0];switch(O.kind){case"shape":this.updateNodeObjectContainerOrParentKeyInternal(O.nodeObj,this.changesListener);break;case"edge":this.updateEdgeObjectFromOrToPropertyInternal(O.nodeObj,this.changesListener)}this.updateNodeKeyRelatedObjectsStackActions.splice(0,1)}},S.prototype.beginChangesNotification=function(){this.changesListener.beginChangesNotification()},S.prototype.endChangesNotification=function(O){this.changesListener.endChangesNotification(O)},S}(p.DataSource);u.DocumentDataSource=y},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DataSource=void 0;var c=o(12),I=o(0),C=o(2),g=o(48),a=o(66),p=o(53),s=o(67),l=o(115),d=o(88),h=o(69),v=o(116),x=o(117),b=o(146),y=o(153),E=o(102),S=o(89),O=o(70),w=o(6),T=o(4),k=o(1),R=o(43),P=o(3),B=o(22),W=o(44),z=o(110),V=o(64),U=o(347),K=o(348),Y=o(86),J=function(){function j(ee,G,q,Z,X,M){if(this.key=ee,this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.addInternalKeyOnInsert=!1,this.useNodeParentId=!1,this.useNodeContainerId=!1,this.useNodeChildren=!1,this.useNodeItems=!1,this.canUseAutoSize=!1,this.canUpdateEdgeDataSource=!1,this.containers=null,null==ee)throw new Error("DataSource key must be specified");this.key=ee.toString(),this.loadParameters(Z||{}),this.nodeDataImporter=this.createNodeDataImporter(X),this.edgeDataImporter=this.createEdgeDataImporter(M),this.nodeDataSource=G||[],this.edgeDataSource=q||[],this.canUpdateEdgeDataSource=!!q,this.fetchData()}return j.prototype.loadParameters=function(ee){this.addInternalKeyOnInsert=!!ee.addInternalKeyOnInsert},j.prototype.isAutoGeneratedKey=function(ee){return ee&&!!this.autoGeneratedDataKeys[ee]},j.prototype.createNodeDataImporter=function(ee){var G=new U.DataSourceNodeDataImporter;return ee&&this.assignNodeDataImporterProperties(ee,G),G},j.prototype.createEdgeDataImporter=function(ee){var G=new U.DataSourceEdgeDataImporter;return ee&&this.assignEdgeDataImporterProperties(ee,G),G},j.prototype.assignItemDataImporterProperties=function(ee,G){ee.getKey&&(G.getKey=ee.getKey),ee.setKey&&(G.setKey=ee.setKey),ee.getCustomData&&(G.getCustomData=ee.getCustomData),ee.setCustomData&&(G.setCustomData=ee.setCustomData),ee.getLocked&&(G.getLocked=ee.getLocked),ee.setLocked&&(G.setLocked=ee.setLocked),ee.getStyle&&(G.getStyle=ee.getStyle),ee.setStyle&&(G.setStyle=ee.setStyle),ee.getStyleText&&(G.getStyleText=ee.getStyleText),ee.setStyleText&&(G.setStyleText=ee.setStyleText),ee.getZIndex&&(G.getZIndex=ee.getZIndex),ee.setZIndex&&(G.setZIndex=ee.setZIndex)},j.prototype.assignNodeDataImporterProperties=function(ee,G){this.assignItemDataImporterProperties(ee,G),ee.getType&&(G.getType=ee.getType),ee.setType&&(G.setType=ee.setType),ee.getImage&&(G.getImage=ee.getImage),ee.setImage&&(G.setImage=ee.setImage),ee.getText&&(G.getText=ee.getText),ee.setText&&(G.setText=ee.setText),ee.getLeft&&(G.getLeft=ee.getLeft),ee.setLeft&&(G.setLeft=ee.setLeft),ee.getTop&&(G.getTop=ee.getTop),ee.setTop&&(G.setTop=ee.setTop),ee.getWidth&&(G.getWidth=ee.getWidth),ee.setWidth&&(G.setWidth=ee.setWidth),ee.getHeight&&(G.getHeight=ee.getHeight),ee.setHeight&&(G.setHeight=ee.setHeight),ee.getChildren&&(G.getChildren=ee.getChildren),ee.setChildren&&(G.setChildren=ee.setChildren),ee.getParentKey&&(G.getParentKey=ee.getParentKey),ee.setParentKey&&(G.setParentKey=ee.setParentKey),ee.getItems&&(G.getItems=ee.getItems),ee.setItems&&(G.setItems=ee.setItems),ee.getContainerKey&&(G.getContainerKey=ee.getContainerKey),ee.setContainerKey&&(G.setContainerKey=ee.setContainerKey)},j.prototype.assignEdgeDataImporterProperties=function(ee,G){this.assignItemDataImporterProperties(ee,G),ee.getFrom&&(G.getFrom=ee.getFrom),ee.setFrom&&(G.setFrom=ee.setFrom),ee.getFromPointIndex&&(G.getFromPointIndex=ee.getFromPointIndex),ee.setFromPointIndex&&(G.setFromPointIndex=ee.setFromPointIndex),ee.getTo&&(G.getTo=ee.getTo),ee.setTo&&(G.setTo=ee.setTo),ee.getToPointIndex&&(G.getToPointIndex=ee.getToPointIndex),ee.setToPointIndex&&(G.setToPointIndex=ee.setToPointIndex),ee.getPoints&&(G.getPoints=ee.getPoints),ee.setPoints&&(G.setPoints=ee.setPoints),ee.getText&&(G.getText=ee.getText),ee.setText&&(G.setText=ee.setText),ee.getLineOption&&(G.getLineOption=ee.getLineOption),ee.setLineOption&&(G.setLineOption=ee.setLineOption),ee.getStartLineEnding&&(G.getStartLineEnding=ee.getStartLineEnding),ee.setStartLineEnding&&(G.setStartLineEnding=ee.setStartLineEnding),ee.getEndLineEnding&&(G.getEndLineEnding=ee.getEndLineEnding),ee.setEndLineEnding&&(G.setEndLineEnding=ee.setEndLineEnding)},j.prototype.fetchData=function(){var ee=this;if(this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.useNodeParentId=void 0!==this.nodeDataImporter.getParentKey,this.useNodeContainerId=void 0!==this.nodeDataImporter.getContainerKey,this.useNodeItems=void 0!==this.nodeDataImporter.getItems,this.useNodeChildren=void 0!==this.nodeDataImporter.getChildren,this.canUseAutoSize=void 0===this.nodeDataImporter.getWidth&&void 0!==this.nodeDataImporter.getText,this.useEdgesArray()&&this.useNodeParentId)throw new Error("You cannot use edges array and parentKey simultaneously.");if(this.useEdgesArray()&&this.useNodeItems)throw new Error("You cannot use edges array and items array simultaneously.");if(this.useNodeParentId&&this.useNodeItems)throw new Error("You cannot use parentKey and items array simultaneously.");if(this.useNodeContainerId&&this.useNodeChildren)throw new Error("You cannot use containerKey and children array simultaneously.");this.nodeDataSource.forEach(function(G){ee.addNode(G)}),this.useEdgesArray()?this.edgeDataSource.forEach(function(G){ee.addEdge(G)}):this.nodes.forEach(function(G){ee.addNodeEdgesByParentId(G)})},j.prototype.isContainer=function(ee){var G=this;return!this.containers&&this.useNodeContainerId&&(this.containers=this.nodeDataSource.map(function(q){return G.nodeDataImporter.getContainerKey(q)}).filter(function(q){return null!=q}).reduce(function(q,Z){return q[Z]=!0,q},{})),this.containers&&this.containers[ee]},j.prototype.refetchData=function(ee,G){var q=this;this.nodeDataSource=ee||this.nodeDataSource,this.edgeDataSource=G||this.edgeDataSource;var Z=this.nodes.slice(),X=this.edges.slice();return this.fetchData(),{nodes:this.getItemChanges(Z,this.nodes,function(M,oe){return M.key===oe.key||M.dataObj===oe.dataObj}),edges:this.getItemChanges(X,this.edges,function(M,oe){return q.useNodeParentId||q.useNodeItems?M.key===oe.key||M.from===oe.from&&M.to===oe.to:M.key===oe.key||M.dataObj===oe.dataObj})}},j.prototype.getItemChanges=function(ee,G,q){var Z=this,X=ee.filter(function(fe){return Z.containsItem(G,fe,q)}),M=ee.filter(function(fe){return!Z.containsItem(G,fe,q)}),oe=G.filter(function(fe){return!Z.containsItem(ee,fe,q)});return{remained:X.map(function(fe){return fe.key}),remainedNewKeys:X.map(function(fe){var Te;return null===(Te=G.find(function(Be){return q(fe,Be)}))||void 0===Te?void 0:Te.key}),removed:M.map(function(fe){return fe.key}),added:oe.map(function(fe){return fe.key})}},j.prototype.containsItem=function(ee,G,q){var Z=!1;return ee.forEach(function(X){!Z&&q(X,G)&&(Z=!0)}),Z},j.prototype.useEdgesArray=function(){return Array.isArray(this.edgeDataSource)&&(this.edgeDataSource.length||!(this.useNodeParentId||this.useNodeItems))},j.prototype.addNode=function(ee,G,q,Z){var X=this,M=this.nodeDataImporter.getChildren&&this.nodeDataImporter.getChildren(ee),oe=M&&Array.isArray(M)&&M.length,fe=oe||this.isContainer(this.nodeDataImporter.getKey(ee)),Te=this.nodeDataImporter.getType&&this.nodeDataImporter.getType(ee)||fe&&k.ShapeTypes.VerticalContainer||k.ShapeTypes.Rectangle,Be=this.nodeDataImporter.getText&&(this.nodeDataImporter.getText(ee)||""),ze=this.addNodeInternal(ee,Te,Be,G,q,Z);if(this.assignNodeProperties(ze,ee),oe&&M.forEach(function(_e){X.addNode(_e,void 0,ze.key,ee)}),this.useNodeItems){var ae=this.nodeDataImporter.getItems(ee);Array.isArray(ae)&&ae.length&&ae.forEach(function(_e){var ye=X.addNode(_e,ee,q,Z);X.addEdgeInternal(void 0,ze.key,ye.key)})}return ze},j.prototype.addNodeEdgesByParentId=function(ee){if(this.useNodeParentId){var G=this.nodeDataImporter.getParentKey(ee.dataObj);null!=G&&this.findNode(G)&&this.addEdgeInternal(void 0,this.getNodeKey(ee.dataObj,this.nodeDataImporter.getParentKey),this.getNodeKey(ee.dataObj,this.nodeDataImporter.getKey))}},j.prototype.addNodeInternal=function(ee,G,q,Z,X,M){var oe=this.nodeDataImporter.getKey(ee),fe=oe??T.ModelUtils.getGuidItemKey(),Te=new K.DataSourceNodeItem(this.key,fe,ee,G,q,Z,X,M);return this.nodes.push(Te),null==oe&&(oe=fe,this.autoGeneratedDataKeys[fe]=!0),Te},j.prototype.addEdge=function(ee){var G=this.addEdgeInternal(ee,this.getNodeKey(ee,this.edgeDataImporter.getFrom),this.getNodeKey(ee,this.edgeDataImporter.getTo));return this.assignEdgeProperties(G,ee),G},j.prototype.addEdgeInternal=function(ee,G,q){var Z=ee&&this.edgeDataImporter.getKey(ee),X=Z??T.ModelUtils.getGuidItemKey(),M=new K.DataSourceEdgeItem(this.key,X,ee,G,q);return this.edges.push(M),null==Z&&(Z=X,this.autoGeneratedDataKeys[X]=!0),M},j.prototype.assignItemProperties=function(ee,G,q){if(q.getCustomData&&(ee.customData=P.ObjectUtils.cloneObject(q.getCustomData(G))),q.getLocked&&(ee.locked=q.getLocked(G)),q.getStyle){var Z=q.getStyle(G);ee.style="string"==typeof Z?W.Data.cssTextToObject(Z):Z}q.getStyleText&&(Z=q.getStyleText(G),ee.styleText="string"==typeof Z?W.Data.cssTextToObject(Z):Z),q.getZIndex&&(ee.zIndex=q.getZIndex(G))},j.prototype.assignNodeProperties=function(ee,G){this.assignItemProperties(ee,G,this.nodeDataImporter),this.nodeDataImporter.getImage&&(ee.image=this.nodeDataImporter.getImage(G)),this.nodeDataImporter.getLeft&&(ee.left=this.nodeDataImporter.getLeft(G)),this.nodeDataImporter.getTop&&(ee.top=this.nodeDataImporter.getTop(G)),this.nodeDataImporter.getWidth&&(ee.width=this.nodeDataImporter.getWidth(G)),this.nodeDataImporter.getHeight&&(ee.height=this.nodeDataImporter.getHeight(G)),this.nodeDataImporter.getContainerKey&&(ee.containerKey=this.nodeDataImporter.getContainerKey(G))},j.prototype.assignEdgeProperties=function(ee,G){if(this.assignItemProperties(ee,G,this.edgeDataImporter),this.edgeDataImporter.getFromPointIndex&&(ee.fromPointIndex=this.edgeDataImporter.getFromPointIndex(G)),this.edgeDataImporter.getToPointIndex&&(ee.toPointIndex=this.edgeDataImporter.getToPointIndex(G)),this.edgeDataImporter.getPoints&&(ee.points=this.edgeDataImporter.getPoints(G)),this.edgeDataImporter.getText){var q=this.edgeDataImporter.getText(G);if(ee.texts={},"object"==typeof q){for(var Z in q)if(Object.prototype.hasOwnProperty.call(q,Z)){var X=parseFloat(Z),M=q[Z];isNaN(X)||"string"!=typeof M||""===M||(X=Math.min(1,Math.max(0,X)),ee.texts[X]=M)}}else"string"==typeof q&&""!==q&&(ee.texts[w.CONNECTOR_DEFAULT_TEXT_POSITION]=q)}this.edgeDataImporter.getLineOption&&(ee.lineOption=this.edgeDataImporter.getLineOption(G)),this.edgeDataImporter.getStartLineEnding&&(ee.startLineEnding=this.edgeDataImporter.getStartLineEnding(G)),this.edgeDataImporter.getEndLineEnding&&(ee.endLineEnding=this.edgeDataImporter.getEndLineEnding(G))},j.prototype.findNode=function(ee){return this.nodes.filter(function(G){return void 0!==ee&&G.key===ee})[0]},j.prototype.findEdge=function(ee){return this.edges.filter(function(G){return void 0!==ee&&G.key===ee})[0]},j.prototype.getNodeKey=function(ee,G){return G(ee)},j.prototype.createModelItems=function(ee,G,q,Z,X,M,oe,fe){var Te=this;this.beginChangesNotification(),ee.clear(),ee.beginTransaction(),T.ModelUtils.deleteAllItems(ee,G,Z),G.initializeKeyCounter();var Be=0,ze=0,ae={},_e=[],ye=[];this.nodes.forEach(function(ne){var ce=new I.Point(2e3*ze++,2e3*Be),le=Te.createShapeByNode(ee,G,Z,q,ne,ce,X,M,oe,fe);void 0!==ne.key&&(ae[ne.key]=le.key),ze>4&&(ze=0,Be++),_e.push(le)}),this.nodes.forEach(function(ne){if(null!=ne.containerKey){var le=G.findShape(ae[ne.key]),Se=G.findShape(ae[ne.containerKey]);Se&&T.ModelUtils.insertToContainer(ee,G,le,Se)}}),this.edges.forEach(function(ne){var ce=G.findShape(ae[ne.to]),le=G.findShape(ae[ne.from]),pe=Te.createConnectorByEdge(ee,G,Z,ne,le,ce);pe&&(ye.push(pe),T.ModelUtils.updateConnectorContainer(ee,G,pe))}),X.needAutoLayout&&this.applyLayout(ee,G,_e,ye,X,M,oe),T.ModelUtils.tryUpdateModelRectangle(ee),ee.endTransaction(!0),this.endChangesNotification(!0)},j.prototype.updateModelItems=function(ee,G,q,Z,X,M,oe,fe,Te,Be,ze,ae){var _e=this;this.beginChangesNotification(),ee.beginTransaction();var ye=[],ne=[],ce=[],le=Te.nodes.removed.map(function(re){return G.findShapeByDataKey(re)}).filter(function(re){return re});le.forEach(function(re){re.attachedConnectors.forEach(function(te){te.beginItem&&te.beginItem!==re&&ne.push(te.beginItem),te.endItem&&te.endItem!==re&&ne.push(te.endItem)})}),T.ModelUtils.deleteItems(ee,G,Z,le,!0);var pe=Te.edges.removed.map(function(re){return G.findConnectorByDataKey(re)}).filter(function(re){return re});pe.forEach(function(re){re.beginItem&&ne.push(re.beginItem),re.endItem&&ne.push(re.endItem)}),T.ModelUtils.deleteItems(ee,G,Z,pe,!0),ne=this.purgeLayoutShapes(ne,le),(oe||[]).forEach(function(re){if(-1!==Te.nodes.remained.indexOf(re)){var te=_e.findNode(re);if(te){var ie=G.findShapeByDataKey(re);if(ie){var ue=ie.position.clone();_e.changeShapeByDataItem(ee,G,ie,te,ue),_e.changeItemByDataItem(ee,ie,te)}else ie=_e.createShapeByNode(ee,G,Z,q,te,new I.Point(0,0),X,Be,ze,ae);_e.updateShapeContainer(ee,G,ie,te),ne.push(ie),ye.push(ie)}}}),Te.nodes.remained.forEach(function(re,te){var ie=G.findShapeByDataKey(re);ie&&(ie.dataKey=Te.nodes.remainedNewKeys[te])}),Te.nodes.added.forEach(function(re){var te=_e.findNode(re),ie=_e.createShapeByNode(ee,G,Z,q,te,new I.Point(0,0),X,Be,ze,ae);_e.updateShapeContainer(ee,G,ie,te),ne.push(ie)}),Te.edges.added.forEach(function(re){var te=_e.findEdge(re),ie=G.findShapeByDataKey(te.from),ue=G.findShapeByDataKey(te.to),be=_e.createConnectorByEdge(ee,G,Z,te,ie,ue);be&&(T.ModelUtils.updateConnectorContainer(ee,G,be),ce.push(be))});var Se=oe||[];Te.edges.remained.forEach(function(re){var te=_e.findEdge(re);!te||-1===Te.nodes.added.indexOf(te.from)&&-1===Te.nodes.added.indexOf(te.to)||Se.push(re)}),Se.forEach(function(re){if(-1!==Te.edges.remained.indexOf(re)){var te=_e.findEdge(re);if(te){var ie=G.findShapeByDataKey(te.from),ue=G.findShapeByDataKey(te.to),be=G.findConnectorByDataKey(re);be?(_e.changeConnectorPointsByDataItem(ee,be,_e.getConnectorPointsByEdge(G,te,ie,ue,!1)),_e.changeConnectorByDataItem(ee,G,be,ie,ue,te),_e.changeItemByDataItem(ee,be,te)):be=_e.createConnectorByEdge(ee,G,Z,te,ie,ue),be&&(T.ModelUtils.updateConnectorContainer(ee,G,be),ce.push(be),ye.push(be))}}}),Te.edges.remained.forEach(function(re,te){var ie=G.findConnectorByDataKey(re);ie&&(ie.dataKey=Te.edges.remainedNewKeys[te])}),ye.length&&fe&&ye.forEach(function(re){re.hasTemplate&&fe(re)}),X.needAutoLayout&&(ne.length||ce.length)&&this.applyLayout(ee,G,ne,ce,X,Be,ze),T.ModelUtils.tryUpdateModelRectangle(ee),ee.endTransaction(!M),this.endChangesNotification(!1)},j.prototype.purgeLayoutShapes=function(ee,G){var q=G.reduce(function(Z,X){return(Z[X.key]=!0)&&Z},{});return ee.reduce(function(Z,X){return void 0===Z.keySet[X.key]&&void 0===q[X.key]&&(Z.uniqueShapes.push(X),Z.keySet[X.key]=!0),Z},{uniqueShapes:[],keySet:{}}).uniqueShapes},j.prototype.applyShapeAutoSize=function(ee,G,q,Z,X,M){if(Z.description.enableText){var oe=Z.textRectangle.createSize(),fe=Z.size,Te=oe.width-fe.width,Be=oe.height-fe.height,ze=Z.getMaxWidth(q.shapeMaxWidth),ae=Z.getMaxHeight(q.shapeMaxHeight),_e=function(ce,le){return"number"==typeof ce?c.UnitConverter.twipsToPixelsF(ce+(le?Te:Be)):void 0},ye=V.getOptimalTextRectangle(Z.text,Z.styleText,R.TextOwner.Shape,G,oe.clone().applyConverter(c.UnitConverter.twipsToPixelsF),Z.description.keepRatioOnAutoSize,_e(Z.getMinWidth(q.shapeMinWidth),!0),_e(ze,!0),_e(Z.getMinHeight(q.shapeMinHeight),!1),_e(ae,!1)).clone().applyConverter(c.UnitConverter.pixelsToTwips);if(!ye.equals(oe)){var ne=Z.description.getSizeByText(ye,Z);X&&M&&(ne=new C.Size(Math.min(M*Math.ceil(ne.width/M),ze||Number.MAX_VALUE),Math.min(M*Math.ceil(ne.height/M),ae||Number.MAX_VALUE))),ee.addAndRedo(new l.ResizeShapeHistoryItem(Z.key,Z.position,ne))}}},j.prototype.applyLayout=function(ee,G,q,Z,X,M,oe){T.ModelUtils.getGraphInfoByItems(G,q,Z).forEach(function(fe){var Te=X.getLayoutBuilder(fe.graph).build(),Be=T.ModelUtils.getNonGraphItems(G,fe.container,Te.nodeToLayout,q,Z);T.ModelUtils.applyLayout(ee,G,fe.container,fe.graph,Te,Be,X.layoutSettings,M,oe,X.skipPointIndices)})},j.prototype.changeItemByDataItem=function(ee,G,q){if(void 0===q.customData||P.ObjectUtils.compareObjects(q.customData,G.customData)||ee.addAndRedo(new v.ChangeCustomDataHistoryItem(G.key,q.customData)),void 0!==q.zIndex&&q.zIndex!==G.zIndex&&ee.addAndRedo(new E.ChangeZindexHistoryItem(G,q.zIndex)),void 0!==q.style)for(var Z in q.style)Object.prototype.hasOwnProperty.call(q.style,Z)&&(M=this.getPreparedStyleValue(q.style[Z],z.isColorProperty(Z)))!==G.style[Z]&&ee.addAndRedo(new S.ChangeStyleHistoryItem(G.key,Z,M));var X=G.style.getDefaultInstance();if(G.style.forEach(function(fe){q.style&&void 0===q.style[fe]&&G.style[fe]!==X[fe]&&ee.addAndRedo(new S.ChangeStyleHistoryItem(G.key,fe,X[fe]))}),void 0!==q.styleText)for(var Z in q.styleText){var M;Object.prototype.hasOwnProperty.call(q.styleText,Z)&&(M=this.getPreparedStyleValue(q.styleText[Z],z.isColorProperty(Z)))!==G.styleText[Z]&&ee.addAndRedo(new O.ChangeStyleTextHistoryItem(G.key,Z,M))}var oe=G.styleText.getDefaultInstance();G.styleText.forEach(function(fe){q.styleText&&void 0===q.styleText[fe]&&G.styleText[fe]!==oe[fe]&&ee.addAndRedo(new O.ChangeStyleTextHistoryItem(G.key,fe,oe[fe]))}),void 0!==q.locked&&q.locked!==G.locked&&ee.addAndRedo(new x.ChangeLockedHistoryItem(G,q.locked))},j.prototype.getPreparedStyleValue=function(ee,G){if(G){var q=B.ColorUtils.stringToHash(ee);null!==q&&(ee=q)}return ee},j.prototype.createShapeByNode=function(ee,G,q,Z,X,M,oe,fe,Te,Be){var ze=new p.AddShapeHistoryItem(Z.get(X.type),M,"",X.key);ee.addAndRedo(ze);var ae=G.findShape(ze.shapeKey);return T.ModelUtils.updateNewShapeProperties(ee,q,ze.shapeKey),this.changeShapeByDataItem(ee,G,ae,X,M),this.changeItemByDataItem(ee,ae,X),Be&&this.canUseAutoSize&&oe.autoSizeEnabled&&this.applyShapeAutoSize(ee,Be,oe.sizeSettings,ae,fe,Te),ae},j.prototype.changeShapeByDataItem=function(ee,G,q,Z,X){void 0!==Z.left&&(X.x=T.ModelUtils.getTwipsValue(G.units,Z.left)),void 0!==Z.top&&(X.y=T.ModelUtils.getTwipsValue(G.units,Z.top)),T.ModelUtils.setShapePosition(ee,G,q,X,!1);var M=q.size.clone();void 0!==Z.width&&(M.width=T.ModelUtils.getTwipsValue(G.units,Z.width)),void 0!==Z.height&&(M.height=T.ModelUtils.getTwipsValue(G.units,Z.height)),T.ModelUtils.setShapeSize(ee,G,q,X,M),T.ModelUtils.updateShapeAttachedConnectors(ee,G,q),void 0!==Z.text&&Z.text!==q.text&&ee.addAndRedo(new y.ChangeShapeTextHistoryItem(q,Z.text)),void 0!==Z.image&&Z.image!==q.image.actualUrl&&ee.addAndRedo(new b.ChangeShapeImageHistoryItem(q,Z.image))},j.prototype.updateShapeContainer=function(ee,G,q,Z){var X=void 0!==Z.containerKey?G.findShapeByDataKey(Z.containerKey):void 0;X!==q.container&&(X?T.ModelUtils.insertToContainer(ee,G,q,X):T.ModelUtils.removeFromContainer(ee,G,q))},j.prototype.getConnectorPointsByEdge=function(ee,G,q,Z,X){var M=[],oe=this.createModelPointFromDataSourceEdgeItemPoints(ee.units,G);if(oe&&oe.length>1)for(var fe=oe.length-1,Te=0;Te<=fe;Te++){var Be=oe[Te];if(null!==Be)M.push(Be);else{if(!q&&!Z)return;0===Te&&q?M.push(q.position.clone()):Te===fe&&Z&&M.push(Z.position.clone())}}else X&&(q&&M.push(q.position.clone()),Z&&M.push(Z.position.clone()));return M},j.prototype.createModelPointFromDataSourceEdgeItemPoints=function(ee,G){var q=this,Z=[];if(Array.isArray(G.points))return G.points.forEach(function(X){return Z.push(q.isValidDataSourceEdgeItemPoint(X)?q.createModelPoint(ee,X):null)}),Z},j.prototype.createModelPoint=function(ee,G){return new I.Point(T.ModelUtils.getTwipsValue(ee,G.x),T.ModelUtils.getTwipsValue(ee,G.y))},j.prototype.isValidDataSourceEdgeItemPoint=function(ee){return null!=ee&&void 0!==ee.x&&void 0!==ee.y&&null!==ee.x&&null!==ee.y},j.prototype.createConnectorByEdge=function(ee,G,q,Z,X,M){var oe,fe=Z.key,Te=this.getConnectorPointsByEdge(G,Z,X,M,!0);if(Te&&Te.length>1){var Be=new a.AddConnectorHistoryItem(Te,fe);ee.addAndRedo(Be),oe=G.findConnector(Be.connectorKey),T.ModelUtils.updateNewConnectorProperties(ee,q,Be.connectorKey),this.changeConnectorByDataItem(ee,G,oe,X,M,Z),this.changeItemByDataItem(ee,oe,Z)}return oe},j.prototype.changeConnectorByDataItem=function(ee,G,q,Z,X,M){var oe=void 0!==M.fromPointIndex?M.fromPointIndex:q.beginConnectionPointIndex;q.beginItem===Z&&q.beginConnectionPointIndex===oe||(q.beginItem&&ee.addAndRedo(new s.DeleteConnectionHistoryItem(q,w.ConnectorPosition.Begin)),Z&&ee.addAndRedo(new g.AddConnectionHistoryItem(q,Z,oe,w.ConnectorPosition.Begin)));var fe=void 0!==M.toPointIndex?M.toPointIndex:q.endConnectionPointIndex;if(q.endItem===X&&q.endConnectionPointIndex===fe||(q.endItem&&ee.addAndRedo(new s.DeleteConnectionHistoryItem(q,w.ConnectorPosition.End)),X&&ee.addAndRedo(new g.AddConnectionHistoryItem(q,X,fe,w.ConnectorPosition.End))),T.ModelUtils.updateConnectorAttachedPoints(ee,G,q),void 0!==M.texts&&!this.compareTexts(M,q))for(var Te in q.texts.forEach(function(ze){ee.addAndRedo(new h.ChangeConnectorTextHistoryItem(q,ze.position,void 0))}),M.texts)if(Object.prototype.hasOwnProperty.call(M.texts,Te)){var Be=parseFloat(Te);ee.addAndRedo(new h.ChangeConnectorTextHistoryItem(q,Be,M.texts[Te]))}void 0!==M.lineOption&&M.lineOption!==q.properties.lineOption&&ee.addAndRedo(new d.ChangeConnectorPropertyHistoryItem(q.key,"lineOption",M.lineOption)),void 0!==M.startLineEnding&&M.startLineEnding!==q.properties.startLineEnding&&ee.addAndRedo(new d.ChangeConnectorPropertyHistoryItem(q.key,"startLineEnding",M.startLineEnding)),void 0!==M.endLineEnding&&M.endLineEnding!==q.properties.endLineEnding&&ee.addAndRedo(new d.ChangeConnectorPropertyHistoryItem(q.key,"endLineEnding",M.endLineEnding))},j.prototype.changeConnectorPointsByDataItem=function(ee,G,q){q&&q.length>1&&q.join(",")!==G.points.join(",")&&ee.addAndRedo(new Y.ReplaceConnectorPointsHistoryItem(G.key,q))},j.prototype.compareTexts=function(ee,G){var q=ee.texts||{},Z=Object.keys(q).length===G.getTextCount();if(Z)for(var X in q)if(Object.prototype.hasOwnProperty.call(q,X)){var M=parseFloat(X);this.compareStrings(G.getText(M),q[X])||(Z=!1)}return Z},j.prototype.compareStrings=function(ee,G){return"string"==typeof ee&&"string"==typeof G?ee===G:this.isEmptyString(ee)&&this.isEmptyString(G)},j.prototype.isEmptyString=function(ee){return""===ee||null==ee},j}();u.DataSource=J},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(p,s){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var h in d)d.hasOwnProperty(h)&&(l[h]=d[h])})(p,s)},function(p,s){function l(){this.constructor=p}c(p,s),p.prototype=null===s?Object.create(s):(l.prototype=s.prototype,new l)});Object.defineProperty(u,"__esModule",{value:!0}),u.DataSourceEdgeDataImporter=u.DataSourceNodeDataImporter=u.DataSourceItemDataImporter=void 0;var C=function(){this.getKey=function(p){return p.id},this.setKey=function(p,s){p.id=s},this.getCustomData=void 0,this.setCustomData=void 0,this.getLocked=void 0,this.setLocked=void 0,this.getStyle=void 0,this.setStyle=void 0,this.getStyleText=void 0,this.setStyleText=void 0,this.getZIndex=void 0,this.setZIndex=void 0};u.DataSourceItemDataImporter=C;var g=function(p){function s(){var l=null!==p&&p.apply(this,arguments)||this;return l.getType=void 0,l.setType=void 0,l.getText=void 0,l.setText=void 0,l.getImage=void 0,l.setImage=void 0,l.getLeft=void 0,l.setLeft=void 0,l.getTop=void 0,l.setTop=void 0,l.getWidth=void 0,l.setWidth=void 0,l.getHeight=void 0,l.setHeight=void 0,l.getChildren=void 0,l.setChildren=void 0,l.getParentKey=void 0,l.setParentKey=void 0,l.getItems=void 0,l.setItems=void 0,l.getContainerKey=void 0,l.setContainerKey=void 0,l}return I(s,p),s}(C);u.DataSourceNodeDataImporter=g;var a=function(p){function s(){var l=null!==p&&p.apply(this,arguments)||this;return l.getFrom=function(d){return d.from},l.setFrom=function(d,h){d.from=h},l.getFromPointIndex=void 0,l.setFromPointIndex=void 0,l.getTo=function(d){return d.to},l.setTo=function(d,h){d.to=h},l.getToPointIndex=void 0,l.setToPointIndex=void 0,l.getPoints=void 0,l.setPoints=void 0,l.getText=void 0,l.setText=void 0,l.getLineOption=void 0,l.setLineOption=void 0,l.getStartLineEnding=void 0,l.setStartLineEnding=void 0,l.getEndLineEnding=void 0,l.setEndLineEnding=void 0,l}return I(s,p),s}(C);u.DataSourceEdgeDataImporter=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.DataSourceEdgeItem=u.DataSourceNodeItem=u.DataSourceItem=void 0;var C=o(6),g=function(s,l,d){this.sourceKey=s,this.key=l,this.dataObj=d};u.DataSourceItem=g;var a=function(s){function l(d,h,v,x,b,y,E,S){var O=s.call(this,d,h,v)||this;return O.type=x,O.text=b,O.parentDataObj=y,O.containerKey=E,O.containerDataObj=S,O}return I(l,s),l}(g);u.DataSourceNodeItem=a;var p=function(s){function l(d,h,v,x,b){var y=s.call(this,d,h,v)||this;return y.sourceKey=d,y.from=x,y.to=b,y}return I(l,s),Object.defineProperty(l.prototype,"text",{get:function(){return this.texts&&this.texts[C.CONNECTOR_DEFAULT_TEXT_POSITION]},enumerable:!1,configurable:!0}),l}(g);u.DataSourceEdgeItem=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ViewController=void 0;var c=o(82),I=Math.log(.05),C=Math.log(3),a=d(1),p=[c.DiagramCommand.ZoomLevel,c.DiagramCommand.ZoomLevelInPercentage,c.DiagramCommand.Zoom100,c.DiagramCommand.Zoom125,c.DiagramCommand.Zoom200,c.DiagramCommand.Zoom25,c.DiagramCommand.Zoom50,c.DiagramCommand.Zoom75],s=[c.DiagramCommand.SwitchAutoZoom,c.DiagramCommand.ToggleAutoZoom,c.DiagramCommand.AutoZoomToContent,c.DiagramCommand.AutoZoomToWidth],l=function(){function h(v,x){this.settings=v,this.bars=x,v.onZoomChanged.add(this),this.autoZoom=v.autoZoom}return h.prototype.initialize=function(v){this.view=v,this.view.onViewChanged.add(this)},h.prototype.scrollTo=function(v,x){this.view&&this.view.setScrollTo(v,x)},h.prototype.scrollBy=function(v){return!this.view||0===v.x&&0===v.y?v:this.view.scrollBy(v)},h.prototype.scrollIntoView=function(v){this.view&&this.view.scrollIntoView(v)},h.prototype.normalize=function(){this.view.tryNormalizePaddings()},h.prototype.getNextStepZoom=function(v){var x=this.getNearestCurrentZoomStep(),y=Math.min(39,Math.max(0,x+(v?1:-1)));return y!==a?Math.exp(I+(C-I)*y/39):1},h.prototype.getNearestCurrentZoomStep=function(){return d(this.getZoom())},h.prototype.getZoom=function(){return this.view?this.view.actualZoom:this.settings.zoomLevel},h.prototype.resetScroll=function(){this.view.adjust({horizontal:!0,vertical:!0})},h.prototype.notifyViewAdjusted=function(v){},h.prototype.notifyActualZoomChanged=function(v){this.bars.updateItemsState(p)},h.prototype.notifyZoomChanged=function(v,x){this.autoZoom!==x&&(this.autoZoom=x,this.bars.updateItemsState(s))},h}();function d(h){var v=Math.log(h);return Math.round(39*(v-I)/(C-I))}u.ViewController=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ToolboxManager=void 0;var c=o(351),I=o(352),C=o(79),g=o(31),a=function(){function p(s){this.shapeDescriptionManager=s,this.toolboxes=[],this.measurers={}}return p.prototype.create=function(s,l,d,h,v,x,b){var y=Array.isArray(v)?v:this.shapeDescriptionManager.getTypesByCategory(v),E=h?new c.TextToolbox(s,l,d,this.shapeDescriptionManager,y,x):new I.IconToolbox(s,l,d,this.shapeDescriptionManager,y,x,b,this.getOrCreateMeasurer(s));return E.render(),this.toolboxes.push(E),E},p.prototype.clean=function(s,l){var d=this;if(l)l.clean(s),this.toolboxes.splice(this.toolboxes.indexOf(l),1),Object.keys(this.measurers).forEach(function(v){d.measurers[v]===l.measurer&&delete d.measurers[v]});else{for(var h=0;h<this.toolboxes.length;h++)this.toolboxes[h].clean(s);this.toolboxes=[],this.measurers={}}},p.prototype.refresh=function(s){this.toolboxes.forEach(function(l,d){(!s||Array.isArray(s)&&s.indexOf(d)>-1||d===s)&&l.render()})},p.prototype.applyFilter=function(s,l){var d=this;return this.toolboxes.reduce(function(h,v,x){return(!l||Array.isArray(l)&&l.indexOf(x)>-1||x===l)&&v.render(function(b){return d.searchFilter(b,s,x)})&&h.push(x),h},[])},p.prototype.searchFilter=function(s,l,d,h){if(!l||h&&-1===h.indexOf(d))return!0;l=l.toLowerCase();var v=this.shapeDescriptionManager.get(s);return v.getTitle().toLowerCase().indexOf(l)>-1||v.getDefaultText().toLowerCase().indexOf(l)>-1},p.prototype.getOrCreateMeasurer=function(s){var l=s.getAttribute("data-dxdiMeasurerID");return l&&this.measurers[l]||(l=g.MathUtils.generateGuid(),this.measurers[l]=new C.TextMeasurer(s),s.setAttribute("data-dxdiMeasurerID",l)),this.measurers[l]},p}();u.ToolboxManager=a},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(g,a){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,s){p.__proto__=s}||function(p,s){for(var l in s)s.hasOwnProperty(l)&&(p[l]=s[l])})(g,a)},function(g,a){function p(){this.constructor=g}c(g,a),g.prototype=null===a?Object.create(a):(p.prototype=a.prototype,new p)});Object.defineProperty(u,"__esModule",{value:!0}),u.TextToolbox=void 0;var C=function(g){function a(p,s,l,d,h,v){return g.call(this,p,s,l,d,h,v)||this}return I(a,g),a.prototype.createElements=function(p,s){var l=this;s.forEach(function(d){var h=l.shapeDescriptionManager.get(d),v=document.createElement("div");v.setAttribute("class","toolbox-text-item"),v.setAttribute("data-tb-type",d),v.textContent=h.getDefaultText()||h.getTitle(),p.appendChild(v)})},a.prototype.createDraggingElement=function(p){var s=document.createElement("DIV");s.setAttribute("class","dxdi-toolbox-drag-text-item");var l=this.shapeDescriptionManager.get(p.evt.data);return s.textContent=l.getDefaultText()||l.getTitle(),document.body.appendChild(s),s},a}(o(159).Toolbox);u.TextToolbox=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(b,y){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,S){E.__proto__=S}||function(E,S){for(var O in S)S.hasOwnProperty(O)&&(E[O]=S[O])})(b,y)},function(b,y){function E(){this.constructor=b}c(b,y),b.prototype=null===y?Object.create(y):(E.prototype=y.prototype,new E)});Object.defineProperty(u,"__esModule",{value:!0}),u.IconToolbox=void 0;var C=o(159),g=o(15),a=o(14),p=o(12),s=o(0),l=o(121),d=o(26),h=o(126),v=o(21),x=function(b){function y(E,S,O,w,T,k,R,P){var B=b.call(this,E,S,O,w,T,k)||this;return B.options=R,B.measurer=P,B}return I(y,b),y.prototype.createElements=function(E,S){var O=document.createElementNS(g.svgNS,"svg");O.className.baseVal="dxdi-canvas",E.appendChild(O),this.drawShapeIcons(O,S,this.options.toolboxWidth||O.getBoundingClientRect().width)},y.prototype.drawShapeIcons=function(E,S,O){var w=this,T=d.DEFAULT_STROKE_WIDTH,k=O-2*T,R=this.options.shapeIconSize;!R&&this.options.shapeIconSpacing&&this.options.shapeIconCountInRow&&(R=Math.floor((k-(this.options.shapeIconCountInRow-1)*this.options.shapeIconSpacing)/this.options.shapeIconCountInRow)),R||(R=32);var P=R=Math.max(R,this.options.shapeIconSpacing/2),B=this.options.shapeIconCountInRow;if(!B)for(B=1;P<k;)(P+=this.options.shapeIconSpacing+R)<k&&B++;var W=B>1?(k-R*B)/(B-1):0,z=T,V=T,U=p.UnitConverter.pixelsToTwips(R);S.forEach(function(K,Y){Y>0&&Y%B==0&&(z=T,V+=R+W);var J=w.shapeDescriptionManager.get(K),j=w.createShape(J,z,V,R<26);w.updateShapeIconBounds(j,R);var ee=w.drawShape(E,j);w.drawSelector(ee,p.UnitConverter.pixelsToTwips(z),p.UnitConverter.pixelsToTwips(V),U),z+=R+W}),E.style.height=V+R+T+"px",E.style.width=O+"px"},y.prototype.drawShape=function(E,S){var O=this,w=S.description.createPrimitives(S,!0),T=document.createElementNS(g.svgNS,"g");if(T.setAttribute("data-tb-type",S.description.key.toString()),T.setAttribute("class","toolbox-item"),T.setAttribute("title",S.description.getTitle()),this.options.shapeIconAttributes)for(var k in this.options.shapeIconAttributes)Object.prototype.hasOwnProperty.call(this.options.shapeIconAttributes,k)&&T.setAttribute(k,this.options.shapeIconAttributes[k]);return E.appendChild(T),w.forEach(function(R){var P=R.createElement(function(B){return T.appendChild(B)});R.applyElementProperties(P,O.measurer)}),T},y.prototype.drawSelector=function(E,S,O,w){var T=this,k=new v.RectanglePrimitive(S,O,w,w,void 0,"selector");k.createElement(function(R){k.applyElementProperties(R,T.measurer),E.appendChild(R)})},y.prototype.createShape=function(E,S,O,w){var T=p.UnitConverter.pixelsToTwips(S),k=p.UnitConverter.pixelsToTwips(O),R=new a.Shape(E,new s.Point(T,k),!0);return this.needResetShapeText(E)?R.text="":w&&(R.text="T"),R},y.prototype.needResetShapeText=function(E){return!(E instanceof l.TextShapeDescription||E instanceof h.CustomShapeDescription&&E.baseDescription instanceof l.TextShapeDescription)},y.prototype.updateShapeIconBounds=function(E,S){var O=p.UnitConverter.pixelsToTwips(S);if(E.size.height=E.size.width*E.getToolboxHeightToWidthRatio(),E.size.width>E.size.height){var w=E.size.height/E.size.width;E.size.width=O,E.size.height=O*w,E.position.y=E.position.y+(O-E.size.height)/2,E.parameters.forEach(function(T){T.value=T.value*O/E.description.defaultSize.width})}else E.size.width<E.size.height?(w=E.size.width/E.size.height,E.size.height=O,E.size.width=O*w,E.position.x=E.position.x+(O-E.size.width)/2,E.parameters.forEach(function(T){T.value=T.value*O/E.description.defaultSize.height})):(E.size.width=O,E.size.height=O,E.parameters.forEach(function(T){T.value=T.value*O/E.description.defaultSize.width}))},y.prototype.createDraggingElement=function(E){var S=document.createElement("DIV");S.setAttribute("class","dxdi-toolbox-drag-item"),document.body.appendChild(S);var O=document.createElementNS(g.svgNS,"svg");O.className.baseVal="dxdi-canvas",S.appendChild(O);var w=this.shapeDescriptionManager.get(E.evt.data),T=this.createShape(w,d.DEFAULT_STROKE_WIDTH,d.DEFAULT_STROKE_WIDTH);return this.drawShape(O,T),S.style.width=p.UnitConverter.twipsToPixels(T.size.width)+2*d.DEFAULT_STROKE_WIDTH+"px",S.style.height=p.UnitConverter.twipsToPixels(T.size.height)+2*d.DEFAULT_STROKE_WIDTH+"px",S},y}(C.Toolbox);u.IconToolbox=x},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(d,h){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,x){v.__proto__=x}||function(v,x){for(var b in x)x.hasOwnProperty(b)&&(v[b]=x[b])})(d,h)},function(d,h){function v(){this.constructor=d}c(d,h),d.prototype=null===h?Object.create(h):(v.prototype=h.prototype,new v)});Object.defineProperty(u,"__esModule",{value:!0}),u.ApiController=void 0;var C,d,g=o(81),a=o(11),p=o(4),s=o(58),l=function(d){function h(v,x,b){var y=d.call(this)||this;return y.events=v,y.model=b,y.selection=x,y}return I(h,d),h.prototype.notifySelectionChanged=function(v){this.isUpdateLocked()?this.registerOccurredEvent(C.SelectionChanged):this.raiseSelectionChanged()},h.prototype.notifyToolboxDragStart=function(){this.events.raise("notifyToolboxItemDragStart")},h.prototype.notifyToolboxDragEnd=function(){this.events.raise("notifyToolboxItemDragEnd")},h.prototype.notifyToolboxDraggingMouseMove=function(){},h.prototype.notifyClick=function(v){var x=this;this.tryRaiseUserAction(v,function(b){return x.events.raise("notifyItemClick",b)})},h.prototype.notifyDblClick=function(v){var x=this;this.tryRaiseUserAction(v,function(b){return x.events.raise("notifyItemDblClick",b)})},h.prototype.createNativeItem=function(v){return v&&this.cleanupNativeItem(v.toNative(this.model.units))},h.prototype.createNativeShape=function(v){return this.createNativeItem(v)},h.prototype.createNativeConnector=function(v){return this.createNativeItem(v)},h.prototype.convertUnit=function(v){return p.ModelUtils.getlUnitValue(this.model.units,v)},h.prototype.convertPoint=function(v){return new s.Point(this.convertUnit(v.x),this.convertUnit(v.y))},h.prototype.convertSize=function(v){return new s.Size(this.convertUnit(v.width),this.convertUnit(v.height))},h.prototype.cleanupNativeItem=function(v){var x=this.dataSource;return x&&(x.isAutoGeneratedKey(v.fromKey)&&(v.fromKey=void 0),x.isAutoGeneratedKey(v.key)&&(v.key=void 0),x.isAutoGeneratedKey(v.toKey)&&(v.toKey=void 0)),v},h.prototype.setDataSource=function(v){this.dataSource=v},h.prototype.tryRaiseUserAction=function(v,x){var b=this;if(this.isUserAction(v)){var y=this.model.findItem(v.source.key);y&&this.events.raise1(function(E){return x(b.createNativeItem(y))})}},h.prototype.isUserAction=function(v){return v.source&&(v.source.type===a.MouseEventElementType.Shape||v.source.type===a.MouseEventElementType.ShapeExpandButton||v.source.type===a.MouseEventElementType.ShapeParameterBox||v.source.type===a.MouseEventElementType.ShapeResizeBox||v.source.type===a.MouseEventElementType.ShapeConnectionPoint||v.source.type===a.MouseEventElementType.Connector||v.source.type===a.MouseEventElementType.ConnectorPoint||v.source.type===a.MouseEventElementType.ConnectorSide||v.source.type===a.MouseEventElementType.ConnectorOrthogonalSide||v.source.type===a.MouseEventElementType.ConnectorText)},h.prototype.onUpdateUnlocked=function(v){v&C.SelectionChanged&&this.raiseSelectionChanged()},h.prototype.raiseSelectionChanged=function(){var v=this,x=this.selection.getKeys().map(function(b){return v.createNativeItem(v.model.findItem(b))});this.events.raise1(function(b){return b.notifySelectionChanged(x)})},h}(g.BatchUpdatableObject);u.ApiController=l,(d=C||(C={}))[d.SelectionChanged=1]="SelectionChanged"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PermissionsProvider=void 0;var c=o(14),I=o(3),C=o(16),g=o(6),a=o(355),p=o(356),s=o(357),l=o(358),d=o(359),h=o(360),v=o(361),x=o(362),b=o(363),y=o(364),E=o(365),S=o(366),O=o(367),w=function(){function T(k){this.onRequestOperation=new I.EventDispatcher,this.cache=[],this.permissionsLockCount=0,this.requestDeleteItems={},this.updateUICount=0,this.apiController=k,this.operationSettings=new C.ModelOperationSettings,this.storage=new E.PermissionsProviderStorage}return T.prototype.notifySelectionChanged=function(k){this.clearCache()},T.prototype.notifyModelChanged=function(k){this.clearCache()},T.prototype.notifyPageColorChanged=function(k){},T.prototype.notifyPageSizeChanged=function(k,R){},T.prototype.clearCache=function(k){this.cache=void 0!==k?this.cache.filter(function(R){return R.operation!==k}):[]},T.prototype.canDeleteItems=function(k){var R=this,P=!0;return k.forEach(function(B){var W;B instanceof c.Shape&&(W=new p.DeleteShapeRequestedEntity(R.apiController,B)),B instanceof g.Connector&&(W=new s.DeleteConnectorRequestedEntity(R.apiController,B)),P=P&&R.requestOperation(W)}),P},T.prototype.canAddItems=function(k){var R=this,P=!0;return k.forEach(function(B){B instanceof c.Shape&&(P=P&&R.requestOperation(new a.AddShapeRequestedEntity(R.apiController,B))),B instanceof g.Connector&&(P=(P=P&&R.canChangeConnection(B,B.beginItem,void 0,g.ConnectorPosition.Begin,B.beginConnectionPointIndex))&&R.canChangeConnection(B,B.endItem,void 0,g.ConnectorPosition.End,B.endConnectionPointIndex))}),P},T.prototype.canAddShapeFromToolbox=function(k){return this.requestOperation(new l.AddShapeFromToolboxRequestedEntity(this.apiController,k))},T.prototype.canChangeConnection=function(k,R,P,B,W){return!(!k||!this.requestDeleteItems[k.key])||!(null==R||R instanceof c.Shape)||this.requestOperation(new d.ChangeConnectionRequestedEntity(this.apiController,k,R,P,B,W))},T.prototype.canChangeConnectorPoints=function(k,R,P){return!(!k||!this.requestDeleteItems[k.key])||this.requestOperation(new h.ChangeConnectorPointsRequestedEntity(this.apiController,k,R,P))},T.prototype.canChangeShapeText=function(k){return this.requestOperation(new v.BeforeChangeShapeTextRequestedEntity(this.apiController,k))},T.prototype.canChangeConnectorText=function(k,R){return this.requestOperation(new x.BeforeChangeConnectorTextRequestedEntity(this.apiController,k,R))},T.prototype.canApplyShapeTextChange=function(k,R){return this.requestOperation(new b.ChangeShapeTextRequestedEntity(this.apiController,k,R))},T.prototype.canApplyConnectorTextChange=function(k,R,P){return this.requestOperation(new y.ChangeConnectorTextRequestedEntity(this.apiController,k,R,P))},T.prototype.canResizeShapes=function(k){var R=this,P=!0;return k.forEach(function(B){P=P&&R.requestOperation(new S.ResizeShapeRequestedEntity(R.apiController,B.shape,B.oldSize,B.size))}),P},T.prototype.canMoveShapes=function(k){var R=this,P=!0;return k.forEach(function(B){P=P&&R.requestOperation(new O.MoveShapeRequestedEntity(R.apiController,B.shape,B.oldPosition,B.position))}),P},T.prototype.requestOperation=function(k){var R,P=!0;return!this.permissionsLockCount&&(this.updateUICount>0&&this.cache.forEach(function(B){B.equals(k)&&(R=B)}),R?P=R.allowed:(this.requestOperationCore(k),this.updateUICount>0&&this.cache.push(k),P=k.allowed),0===this.updateUICount&&this.storage.needStorePermissions())?(this.storage.storePermission(k.storageKey,P),this.storage.isStoredPermissionsGranted()):P},T.prototype.requestOperationCore=function(k){k.eventArgs.allowed=this.operationSettings[k.settingsKey],k.eventArgs.updateUI=this.updateUICount>0,k.allowed&&this.onRequestOperation.raise("notifyRequestOperation",k.operation,k.eventArgs)},T.prototype.lockPermissions=function(){this.permissionsLockCount++},T.prototype.unlockPermissions=function(){this.permissionsLockCount--},T.prototype.beginDeleteItems=function(k){var R=this;k.forEach(function(P){return R.requestDeleteItems[P.key]=P})},T.prototype.endDeleteItems=function(){this.requestDeleteItems={}},T.prototype.beginUpdateUI=function(){this.updateUICount++},T.prototype.endUpdateUI=function(){this.updateUICount--},T.prototype.addInteractingItem=function(k,R){this.storage.addInteractingItem(k,R)},T.prototype.getInteractingItem=function(k,R){return this.storage.getInteractingItem(k,R)},T.prototype.getInteractingItemCount=function(){return this.storage.getInteractingItemCount()},T.prototype.clearInteractingItems=function(){this.storage.clearInteractingItems()},T.prototype.beginStorePermissions=function(){this.storage.beginStorePermissions()},T.prototype.endStorePermissions=function(){this.storage.endStorePermissions()},T.prototype.isStoredPermissionsGranted=function(){return this.permissionsLockCount>0||this.storage.isStoredPermissionsGranted()},T}();u.PermissionsProvider=w},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.AddShapeEventArgs=u.AddShapeRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h){var v=s.call(this,d)||this;return v.shape=h,v}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.AddShape},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.shape.position))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"addShape"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shape===d.shape&&this.shape.position.equals(d.shape.position)},l}(g.RequestedEntity);u.AddShapeRequestedEntity=a;var p=function(s){function l(d,h){var v=s.call(this)||this;return v.shape=d,v.position=h,v}return I(l,s),l}(g.PermissionRequestEventArgs);u.AddShapeEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteShapeEventArgs=u.DeleteShapeRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h){var v=s.call(this,d)||this;return v.shape=h,v}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.DeleteShape},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"deleteShape"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shape===d.shape},l}(g.RequestedEntity);u.DeleteShapeRequestedEntity=a;var p=function(s){function l(d){var h=s.call(this)||this;return h.shape=d,h}return I(l,s),l}(g.PermissionRequestEventArgs);u.DeleteShapeEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.DeleteConnectorEventArgs=u.DeleteConnectorRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h){var v=s.call(this,d)||this;return v.connector=h,v}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.DeleteConnector},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"deleteConnector"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.connector===d.connector},l}(g.RequestedEntity);u.DeleteConnectorRequestedEntity=a;var p=function(s){function l(d){var h=s.call(this)||this;return h.connector=d,h}return I(l,s),l}(g.PermissionRequestEventArgs);u.DeleteConnectorEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.AddShapeFromToolboxEventArgs=u.AddShapeFromToolboxRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h){var v=s.call(this,d)||this;return v.shapeType=h,v}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.AddShapeFromToolbox},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.shapeType)},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"addShapeFromToolbox"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+this.shapeType},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shapeType===d.shapeType},l}(g.RequestedEntity);u.AddShapeFromToolboxRequestedEntity=a;var p=function(s){function l(d){var h=s.call(this)||this;return h.shapeType=d,h}return I(l,s),l}(g.PermissionRequestEventArgs);u.AddShapeFromToolboxEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectionEventArgs=u.ChangeConnectionRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h,v,x,b,y){var E=s.call(this,d)||this;return E.connector=h,E.shape=v,E.oldShape=x,E.position=b,E.connectionPointIndex=y,E}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnection},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.apiController.createNativeShape(this.shape),this.apiController.createNativeShape(this.oldShape),this.position,this.connectionPointIndex)},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"changeConnection"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)+"_"+this.position},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&(!this.shape&&!d.shape||this.shape&&d.shape&&this.shape===d.shape)&&(!this.oldShape&&!d.oldShape||this.oldShape&&d.oldShape&&this.oldShape===d.oldShape)&&(!this.connector&&!d.connector||this.connector&&d.connector&&this.connector===d.connector)&&this.position===d.position&&this.connectionPointIndex===d.connectionPointIndex},l}(g.RequestedEntity);u.ChangeConnectionRequestedEntity=a;var p=function(s){function l(d,h,v,x,b){var y=s.call(this)||this;return y.connector=d,y.shape=h,y.oldShape=v,y.position=x,y.connectionPointIndex=b,y}return I(l,s),l}(g.PermissionRequestEventArgs);u.ChangeConnectionEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(l,d){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,v){h.__proto__=v}||function(h,v){for(var x in v)v.hasOwnProperty(x)&&(h[x]=v[x])})(l,d)},function(l,d){function h(){this.constructor=l}c(l,d),l.prototype=null===d?Object.create(d):(h.prototype=d.prototype,new h)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorPointsEventArgs=u.ChangeConnectorPointsRequestedEntity=void 0;var C=o(16),g=o(23),a=o(3),p=function(l){function d(h,v,x,b){var y=l.call(this,h)||this;return y.connector=v,y.oldPoints=x,y.points=b,y}return I(d,l),Object.defineProperty(d.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnectorPoints},enumerable:!1,configurable:!0}),d.prototype.createEventArgs=function(){var h=this;return new s(this.apiController.createNativeConnector(this.connector),this.oldPoints.map(function(v){return h.apiController.convertPoint(v)}),this.points.map(function(v){return h.apiController.convertPoint(v)}))},Object.defineProperty(d.prototype,"settingsKey",{get:function(){return"changeConnectorPoints"},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),d.prototype.equals=function(h){return h instanceof d&&this.connector===h.connector&&a.GeometryUtils.arePointsEqual(this.oldPoints,h.oldPoints)&&a.GeometryUtils.arePointsEqual(this.points,h.points)},d}(g.RequestedEntity);u.ChangeConnectorPointsRequestedEntity=p;var s=function(l){function d(h,v,x){var b=l.call(this)||this;return b.connector=h,b.oldPoints=v,b.points=x,b}return I(d,l),d}(g.PermissionRequestEventArgs);u.ChangeConnectorPointsEventArgs=s},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.BeforeChangeShapeTextEventArgs=u.BeforeChangeShapeTextRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h){var v=s.call(this,d)||this;return v.shape=h,v}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.BeforeChangeShapeText},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shape===d.shape&&this.shape.text===d.shape.text},l}(g.RequestedEntity);u.BeforeChangeShapeTextRequestedEntity=a;var p=function(s){function l(d){var h=s.call(this)||this;return h.shape=d,h}return I(l,s),l}(g.PermissionRequestEventArgs);u.BeforeChangeShapeTextEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.BeforeChangeConnectorTextEventArgs=u.BeforeChangeConnectorTextRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h,v){var x=s.call(this,d)||this;return x.connector=h,x.position=v,x}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.BeforeChangeConnectorText},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(d){return d}).sort(function(d,h){return d.position-h.position}).indexOf(this.connector.texts.get(this.position)))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return"before"+this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.connector===d.connector&&this.position===d.position&&this.connector.texts.get(this.position)===d.connector.texts.get(d.position)},l}(g.RequestedEntity);u.BeforeChangeConnectorTextRequestedEntity=a;var p=function(s){function l(d,h,v){var x=s.call(this)||this;return x.connector=d,x.position=h,x.index=v,x}return I(l,s),l}(g.PermissionRequestEventArgs);u.BeforeChangeConnectorTextEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeShapeTextEventArgs=u.ChangeShapeTextRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h,v){var x=s.call(this,d)||this;return x.shape=h,x.text=v,x}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeShapeText},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.text)},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"changeShapeText"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shape===d.shape&&this.text===d.text},l}(g.RequestedEntity);u.ChangeShapeTextRequestedEntity=a;var p=function(s){function l(d,h){var v=s.call(this)||this;return v.shape=d,v.text=h,v}return I(l,s),l}(g.PermissionRequestEventArgs);u.ChangeShapeTextEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ChangeConnectorTextEventArgs=u.ChangeConnectorTextRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h,v,x){var b=s.call(this,d)||this;return b.connector=h,b.position=v,b.text=x,b}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.ChangeConnectorText},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeConnector(this.connector),this.position,this.connector.texts.map(function(d){return d}).sort(function(d,h){return d.position-h.position}).indexOf(this.connector.texts.get(this.position)),this.text)},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"changeConnectorText"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.connector&&this.connector.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.connector===d.connector&&this.position===d.position&&this.text===d.text},l}(g.RequestedEntity);u.ChangeConnectorTextRequestedEntity=a;var p=function(s){function l(d,h,v,x){var b=s.call(this)||this;return b.connector=d,b.position=h,b.index=v,b.text=x,b}return I(l,s),l}(g.PermissionRequestEventArgs);u.ChangeConnectorTextEventArgs=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PermissionsProviderStorage=void 0;var c=o(14),I=o(6),C=function(){function g(){this.interactingItems={},this.storedPermissions={}}return g.prototype.addInteractingItem=function(a,p){var s=this.getInteractingItemKey(a,p);void 0===this.interactingItems[s]&&(a instanceof c.Shape||a instanceof I.Connector)&&(this.interactingItems[s]=a.clone())},g.prototype.getInteractingItem=function(a,p){var s=this.getInteractingItemKey(a,p);return this.interactingItems[s]},g.prototype.getInteractingItemCount=function(){return Object.keys(this.interactingItems).length},g.prototype.clearInteractingItems=function(){this.interactingItems={}},g.prototype.getInteractingItemKey=function(a,p){return a.key+(void 0!==p?"_"+p.toString():"")},g.prototype.needStorePermissions=function(){return this.storePermissions},g.prototype.beginStorePermissions=function(){this.storePermissions=!0},g.prototype.endStorePermissions=function(){this.storePermissions=!1,this.storedPermissions={}},g.prototype.isStoredPermissionsGranted=function(){for(var a=Object.keys(this.storedPermissions),p=!0,s=0;s<a.length;s++)p=p&&this.storedPermissions[a[s]];return p},g.prototype.storePermission=function(a,p){this.storedPermissions[a]=p},g}();u.PermissionsProviderStorage=C},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.ResizeShapeEventArgs=u.ResizeShapeRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h,v,x){var b=s.call(this,d)||this;return b.shape=h,b.oldSize=v,b.size=x,b}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.ResizeShape},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertSize(this.oldSize),this.apiController.convertSize(this.size))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"resizeShape"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shape===d.shape&&this.oldSize.equals(d.oldSize)&&this.size.equals(d.size)},l}(g.RequestedEntity);u.ResizeShapeRequestedEntity=a;var p=function(s){function l(d,h,v){var x=s.call(this)||this;return x.shape=d,x.oldSize=h,x.size=v,x}return I(l,s),l}(g.PermissionRequestEventArgs);u.ResizeShapeEventArgs=p},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(s,l){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var v in h)h.hasOwnProperty(v)&&(d[v]=h[v])})(s,l)},function(s,l){function d(){this.constructor=s}c(s,l),s.prototype=null===l?Object.create(l):(d.prototype=l.prototype,new d)});Object.defineProperty(u,"__esModule",{value:!0}),u.MoveShapeEventArgs=u.MoveShapeRequestedEntity=void 0;var C=o(16),g=o(23),a=function(s){function l(d,h,v,x){var b=s.call(this,d)||this;return b.shape=h,b.oldPosition=v,b.position=x,b}return I(l,s),Object.defineProperty(l.prototype,"operation",{get:function(){return C.DiagramModelOperation.MoveShape},enumerable:!1,configurable:!0}),l.prototype.createEventArgs=function(){return new p(this.apiController.createNativeShape(this.shape),this.apiController.convertPoint(this.oldPosition),this.apiController.convertPoint(this.position))},Object.defineProperty(l.prototype,"settingsKey",{get:function(){return"moveShape"},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"storageKey",{get:function(){return this.settingsKey+"_"+(this.shape&&this.shape.key)},enumerable:!1,configurable:!0}),l.prototype.equals=function(d){return d instanceof l&&this.shape===d.shape&&this.oldPosition.equals(d.oldPosition)&&this.position.equals(d.position)},l}(g.RequestedEntity);u.MoveShapeRequestedEntity=a;var p=function(s){function l(d,h,v){var x=s.call(this)||this;return x.shape=d,x.oldPosition=h,x.position=v,x}return I(l,s),l}(g.PermissionRequestEventArgs);u.MoveShapeEventArgs=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorRoutingModel=u.ConnectorRoutingPenaltyDescription=void 0;var c=o(28),I=o(14),C=o(6),g=o(32),a=o(369),p=function(){this.shape=20,this.margin=2,this.turnBack=20,this.turnLeft=3.1,this.turnRight=3};u.ConnectorRoutingPenaltyDescription=p;var s=function(){function l(){this.connectorRoutingMode=c.ConnectorRoutingMode.AllShapesOnly,this.shapeMargins=C.Connector.minOffset,this.shouldReverseConnections=!0,this.shouldResizeConnections=!0,this.penaltyDescription=new p}return l.prototype.initialize=function(d){this.model=d},l.prototype.createStrategy=function(d){if(void 0!==this.model&&this.connectorRoutingMode!==c.ConnectorRoutingMode.None&&d===g.ConnectorLineOption.Orthogonal)return new a.RightAngleConnectorRoutingStrategy(this)},l.prototype.getItems=function(d,h){return this.getShapes(d,h)},l.prototype.notifyConnectorRoutingModeChanged=function(d){this.connectorRoutingMode=d},l.prototype.getShapes=function(d,h){return void 0===this.model||void 0===this.connectorRoutingMode||this.connectorRoutingMode===c.ConnectorRoutingMode.None?[]:this.connectorRoutingMode===c.ConnectorRoutingMode.AllShapesOnly?this.model.items.filter(function(v){return v instanceof I.Shape}):this.getConnectorShapes(d,h)},l.prototype.getConnectorShapes=function(d,h){var v=[];return d&&v.push(d),h&&d!==h&&v.push(h),v},l}();u.ConnectorRoutingModel=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RightAngleConnectorRoutingStrategy=void 0;var c=o(33),I=o(29),C=o(370),g=o(4),a=function(){function p(s){this.model=s}return p.prototype.createRenderPoints=function(s,l,d,h,v,x,b){if(l.length>1){var y=new C.RightAngleConnectorRoutingContext(this.model,s,l,d,h,v,x);if(y.initialize(b),y.shouldCreateRenderPoints)return this.createRenderPointsCore(y)}},p.prototype.clone=function(){return new p(this.model)},p.prototype.onAddPoint=function(s,l,d,h){var v=h.map(function(O){return new I.ConnectorRenderPoint(O.x,O.y,O.pointIndex)}),x=g.ModelUtils.findFirstPointIndex(v,function(O){return O.equals(d)});if(0===x)return v.splice(1,0,new I.ConnectorRenderPoint(d.x,d.y,l)),g.ModelUtils.validateRenderPointIndexes(s,v,2);var b=v.length-1;if(x===b)return v.splice(b,0,new I.ConnectorRenderPoint(d.x,d.y,l)),v[b+1].pointIndex=l+1,v;if(x>0){var y=v[x];return v[x]=new I.ConnectorRenderPoint(y.x,y.y,l,y.skipped),g.ModelUtils.validateRenderPointIndexes(s,v,x+1)}var E=new c.Segment(v[0],v[1]),S=new I.ConnectorRenderPoint(d.x,d.y);return E.containsPoint(S)?(v.splice(1,0,new I.ConnectorRenderPoint(S.x,S.y,-1)),v.splice(2,0,new I.ConnectorRenderPoint(S.x,S.y,l)),g.ModelUtils.validateRenderPointIndexes(s,v,3)):new c.Segment(v[b-1],v[b]).containsPoint(S)?(v.splice(b,0,new I.ConnectorRenderPoint(S.x,S.y,l)),v.splice(b+1,0,new I.ConnectorRenderPoint(S.x,S.y,-1)),v[b+2].pointIndex=l+1,v):h},p.prototype.onDeletePoint=function(s,l,d){var h=d.map(function(k){return new I.ConnectorRenderPoint(k.x,k.y,k.pointIndex)}),v=this.getRenderPointIndexByPointIndex(h,l);if(1===v){var x=h[0],b=h[1];return x.equals(b)?(h.splice(1,1),g.ModelUtils.validateRenderPointIndexes(s,h,1)):(h[1]=new I.ConnectorRenderPoint(b.x,b.y,-1,b.skipped),g.ModelUtils.validateRenderPointIndexes(s,h,2))}if(2===v){var y=h[2];return(x=h[1]).equals(y)?(h.splice(1,2),g.ModelUtils.validateRenderPointIndexes(s,h,1)):(h[2]=new I.ConnectorRenderPoint(y.x,y.y,-1,y.skipped),g.ModelUtils.validateRenderPointIndexes(s,h,3))}var E=h.length-1;if(v===E-1){var S=h[E-1],O=h[E];return S.equals(O)?(h.splice(E-1,1),g.ModelUtils.validateRenderPointIndexes(s,h,E-1)):(h[E-1]=new I.ConnectorRenderPoint(S.x,S.y,-1,S.skipped),g.ModelUtils.validateRenderPointIndexes(s,h,E))}if(v===E-2){var w=h[E-2];return w.equals(O=h[E-1])?(h.splice(E-2,2),g.ModelUtils.validateRenderPointIndexes(s,h,E-2)):(h[E-2]=new I.ConnectorRenderPoint(w.x,w.y,-1,w.skipped),g.ModelUtils.validateRenderPointIndexes(s,h,E-1))}var T=h[v];return h[v]=new I.ConnectorRenderPoint(T.x,T.y,-1,T.skipped),g.ModelUtils.validateRenderPointIndexes(s,h,v+1)},p.prototype.onMovePoint=function(s,l,d,h){if(0===l||l===s.length-1)return h;var v=h.map(function(x){return new I.ConnectorRenderPoint(x.x,x.y,x.pointIndex)});return this.onMovePointCore(v,l,d),g.ModelUtils.skipUnnecessaryRightAngleRenderPoints(v),v},p.prototype.onMovePoints=function(s,l,d,h,v,x){if(0===l||h===s.length-1)return x;var b=x.map(function(y){return new I.ConnectorRenderPoint(y.x,y.y,y.pointIndex)});return this.onMovePointCore(b,l,d),this.onMovePointCore(b,h,v),g.ModelUtils.skipUnnecessaryRightAngleRenderPoints(b),b},p.prototype.onMovePointCore=function(s,l,d){var h=this.getRenderPointIndexByPointIndex(s,l);h>=0&&(s[h]=new I.ConnectorRenderPoint(d.x,d.y,l,s[h].skipped))},p.prototype.createRenderPointsCore=function(s){var l,d=[],h=-1,v=-1;s.setup();var x=s.renderSegments,b=x[x.length-1].endPoint,y=s.points;do{this.registerCustomPoints(d,y,v+2,x[h+1].startPointIndex-1),v=(l=x[++h]).startPointIndex,this.registerRenderPoints(d,s.createRoutedPoints(l.startInfo,l.endInfo,l.createProhibitedSegments()),v)}while(!l.endPoint.equals(b));return s.validateRenderPoints(d),d},p.prototype.getRenderPointIndexByPointIndex=function(s,l){return g.ModelUtils.findFirstPointIndex(s,function(d){return d.pointIndex===l})},p.prototype.registerRenderPoints=function(s,l,d){var h=this;l.forEach(function(v,x){h.registerPoint(s,v,0===x?d:x===l.length-1?d+1:-1)})},p.prototype.registerCustomPoints=function(s,l,d,h){for(var v=d;v<=h;v++)this.registerPoint(s,l[v],v)},p.prototype.registerPoint=function(s,l,d){s.push(new I.ConnectorRenderPoint(l.x,l.y,d))},p}();u.RightAngleConnectorRoutingStrategy=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RightAngleConnectorRoutingContext=u.IntersectingItemsByPointsContext=u.CuttingItemsContext=void 0;var c=o(0),I=o(33),C=o(60),g=o(9),a=o(160),p=o(371),s=o(373),l=o(4),d=o(161),h=o(374),v=o(378),x=o(3),b=function(){function S(){this.cuttingItemKeys=[]}return Object.defineProperty(S.prototype,"isEmpty",{get:function(){return 0===this.cuttingItemKeys.length},enumerable:!1,configurable:!0}),S.prototype.registerShape=function(O,w,T){return!!x.GeometryUtils.areSegmentsCutRectangle(T,w)&&(this.cuttingItemKeys.push(O),!0)},S}();u.CuttingItemsContext=b;var y=function(){function S(){this.items={}}return S.prototype.getOrAddItems=function(O,w){if(O){var T=O.toString(),k=this.items[T];if(void 0!==k)return k.items;if(w){var R=w(O);return this.items[T]={point:O,items:R},R}}},S}();u.IntersectingItemsByPointsContext=y;var E=function(){function S(O,w,T,k,R,P,B){this.routingModel=O,this.points=w,this.supportRenderPoints=T,this.beginConnectionShape=k,this.endConnectionShape=R,this.beginConnectionSide=this.getConnectionSide(this.beginConnectionShape,P,this.beginPoint),this.endConnectionSide=this.getConnectionSide(this.endConnectionShape,B,this.endPoint),this.ignorableItemKeys={},this.cuttingShapesContext=new b,this.intersectedItemsByPointsContext=new y,this.isInvalidRenderSegments=!0}return Object.defineProperty(S.prototype,"shapeMargins",{get:function(){return this.routingModel.shapeMargins},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"beginPoint",{get:function(){return this.points[0]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"endPoint",{get:function(){return this.points[this.points.length-1]},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"hasIntersecting",{get:function(){return!this.cuttingShapesContext.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"shouldCreateRenderPoints",{get:function(){return this.isInvalidRenderSegments||!this.isSmallPath&&(this.hasIntersecting||this.isReversedStartConnection||this.isReversedEndConnection)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"beginPathPoint",{get:function(){return this.beginConnectionSegment instanceof I.Segment?this.beginConnectionSegment.startPoint:this.beginConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"endPathPoint",{get:function(){return this.endConnectionSegment instanceof I.Segment?this.endConnectionSegment.endPoint:this.endConnectionSegment},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isReversedStartConnection",{get:function(){if(!this.beginConnectionShape||this.beginConnectionSide===g.ConnectionPointSide.Undefined)return!1;var O=this.beginConnectionSegment;return!(O instanceof c.Point)&&this.isReversedConnectionSegment(this.supportSegments[0],O)},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"isReversedEndConnection",{get:function(){if(!this.endConnectionShape||this.endConnectionSide===g.ConnectionPointSide.Undefined)return!1;var O=this.endConnectionSegment;return!(O instanceof c.Point)&&this.isReversedConnectionSegment(this.supportSegments[this.supportSegments.length-1],O)},enumerable:!1,configurable:!0}),S.prototype.isReversedConnectionSegment=function(O,w){return C.Vector.scalarProduct(C.Vector.fromSegment(O),C.Vector.fromPoints(w.startPoint,w.endPoint))<=0},Object.defineProperty(S.prototype,"isSmallPath",{get:function(){var O=2*this.routingModel.shapeMargins;return Math.abs(this.beginPathPoint.x-this.endPathPoint.x)<O&&Math.abs(this.beginPathPoint.y-this.endPathPoint.y)<O},enumerable:!1,configurable:!0}),S.prototype.initialize=function(O){this.processContainers(O),this.processSupportSegments(),this.processIntersection(),this.processConnections(),this.processRenderSegments()},S.prototype.setup=function(){this.processRoutingGrid(),this.processRoutingMetrics()},S.prototype.createRoutedPoints=function(O,w,T){var P=this.createAStarContext(O instanceof c.Point?O:O.endPoint,w instanceof c.Point?w:w.startPoint,T);v.AStarCalculator.calculate(P);var B=P.path;return this.addConnectionRoutedPoints(B,O,w),a.RightAngleConnectorRoutingMathOperations.unionPoints(B),B},S.prototype.getIntersectedItems=function(O,w){var T=this;return this.intersectedItemsByPointsContext.getOrAddItems(O,function(k){return T.routingModel.getItems(T.beginConnectionShape,T.endConnectionShape).filter(function(R){return!T.isIgnorableItem(R)&&w(k,R)})})},S.prototype.validateRenderPoints=function(O){this.isInvalidRenderSegments&&(a.RightAngleConnectorRoutingMathOperations.unionPoints(O),l.ModelUtils.validateRenderPointIndexes(this.points,O,0)),l.ModelUtils.skipUnnecessaryRightAngleRenderPoints(O)},S.prototype.processContainers=function(O){if(O&&this.registerIgnorableShape(O),this.beginConnectionShape){var w=this.beginConnectionShape.container;w&&this.registerIgnorableShape(w)}if(this.endConnectionShape){var T=this.endConnectionShape.container;T&&this.registerIgnorableShape(T)}},S.prototype.processSupportSegments=function(){this.supportSegments=this.createSupportSegments()},S.prototype.processIntersection=function(){var O=this,w=this.routingModel.getItems(this.beginConnectionShape,this.endConnectionShape);w&&w.forEach(function(T){var k=T.key,R=T.rectangle;O.cuttingShapesContext.registerShape(k,R,O.supportSegments)?void 0!==O.ignorableItemKeys[k]&&delete O.ignorableItemKeys[k]:(!O.isConnectedByStart(T)&&R.containsPoint(O.beginPoint)||!O.isConnectedByEnd(T)&&R.containsPoint(O.endPoint))&&O.registerIgnorableShape(T)})},S.prototype.processConnections=function(){var O=!1,w=!1;this.beginConnectionShape!==this.endConnectionShape&&(O=this.shapeContainsOtherConnection(this.beginConnectionShape,this.endConnectionShape,this.endPoint),w=this.shapeContainsOtherConnection(this.endConnectionShape,this.beginConnectionShape,this.beginPoint),O&&this.registerIgnorableShape(this.beginConnectionShape),w&&this.registerIgnorableShape(this.endConnectionShape));var T=this.routingModel.shapeMargins;this.beginConnectionSegment=this.createBeginConnectionSegment(T,O),this.endConnectionSegment=this.createEndConnectionSegment(T,w)},S.prototype.processRenderSegments=function(){this.isInvalidRenderSegments=!1,this.renderSegments=this.createRenderSegments();for(var O=0;O<this.renderSegments.length-1;O++)if(this.renderSegments[O].endPoint.equals(this.renderSegments[O+1].startPoint))return void(this.isInvalidRenderSegments=!0)},S.prototype.createGridPoints=function(){var O=[];return this.renderSegments.forEach(function(w){return w.createGridPoints().forEach(function(T){return O.push(T)})}),O},S.prototype.processRoutingGrid=function(){this.routingGrid=this.createGrid()},S.prototype.processRoutingMetrics=function(){this.metrics=this.createAStarMetrics()},S.prototype.createAStarMetrics=function(){return new d.AStarMetrics(new d.TurnDirectionMetrics(this.routingModel.penaltyDescription),new d.IntersectedShapesMetrics(new d.IntersectedShapeMetrics(this.routingModel.penaltyDescription,this.routingModel.shapeMargins)))},S.prototype.createAStarContext=function(O,w,T){return new h.AStarContext(this,O,w,T,this.routingGrid,this.metrics)},S.prototype.addConnectionRoutedPoints=function(O,w,T){w instanceof I.Segment&&O.splice(0,0,w.startPoint),T instanceof I.Segment&&O.push(T.endPoint)},S.prototype.createSupportSegments=function(){var O=this;return this.supportRenderPoints.length<=1?[]:x.GeometryUtils.createSegments(this.supportRenderPoints).filter(function(w){return!O.isCustomSegment(w,O.supportRenderPoints[0],O.supportRenderPoints[O.supportRenderPoints.length-1])})},S.prototype.isCustomSegment=function(O,w,T){var k=O.startPoint;if(k.equals(w))return!1;var R=O.endPoint;return!R.equals(T)&&R.pointIndex-k.pointIndex==1},S.prototype.createRenderSegments=function(){var O=this,w=a.RightAngleConnectorRoutingMathOperations.createUnionSegments(this.supportSegments,function(k,R){return O.shouldCreateSegment(k,R)}),T=w.length-1;return w.map(function(k,R){return new p.ConnectorRenderSegment(R>0?new c.Point(k.startPoint.x,k.startPoint.y):O.beginConnectionSegment,R<T?new c.Point(k.endPoint.x,k.endPoint.y):O.endConnectionSegment,k.startPoint.pointIndex,O.createPreviousCustomSegment(k.startPoint))})},S.prototype.createPreviousCustomSegment=function(O){var w=O.pointIndex-1;return w>=0?new I.Segment(this.points[w].clone(),new c.Point(O.x,O.y)):void 0},S.prototype.shouldCreateSegment=function(O,w){return!O.equals(w)||w.pointIndex>0},S.prototype.isPathNormal=function(O){return O===g.ConnectionPointSide.Undefined||a.RightAngleConnectorRoutingMathOperations.isSegmentNormal(new I.Segment(this.beginPoint,this.endPoint),O===g.ConnectionPointSide.East||O===g.ConnectionPointSide.West)},S.prototype.registerIgnorableShape=function(O){this.ignorableItemKeys[O.key]=!0},S.prototype.isConnectedByStart=function(O){return this.beginConnectionShape&&this.beginConnectionShape.key===O.key&&this.beginConnectionSide!==g.ConnectionPointSide.Undefined},S.prototype.isConnectedByEnd=function(O){return this.endConnectionShape&&this.endConnectionShape.key===O.key&&this.endConnectionSide!==g.ConnectionPointSide.Undefined},S.prototype.getConnectionSide=function(O,w,T){return O?O.getConnectionPointSideByIndex(w,T):g.ConnectionPointSide.Undefined},S.prototype.shapeContainsOtherConnection=function(O,w,T){if(!O)return!1;var k=O.rectangle;return k.containsPoint(T)&&(!w||!w.rectangle.equals(k))},S.prototype.createBeginConnectionSegment=function(O,w){if(this.beginConnectionSide===g.ConnectionPointSide.Undefined)return this.createBeginConnectionSegmentCore(O);if(!w||!this.routingModel.shouldReverseConnections){var T=this.createBeginConnectionSegmentCore(O);if(T instanceof c.Point||!this.routingModel.shouldResizeConnections)return T;for(var k=T.startPoint,R=T.endPoint,P=O;this.hasIntersectedItemsByPoint(R,k,this.beginConnectionShape);)R=(T=this.createBeginConnectionSegmentCore(P/=2)).endPoint;return T}if(!this.endConnectionShape)return this.createBeginConnectionSegmentCore(-O);if(this.isPathNormal(this.endConnectionSide))return this.createBeginConnectionSegmentCore(-O);var B=this.createBeginConnectionSegmentCore(-2*O);return this.isEndConnectionRectanleLineIntersected(B,!1,!0)?this.createBeginConnectionSegmentCore(O):this.createBeginConnectionSegmentCore(-O)},S.prototype.hasIntersectedItemsByPoint=function(O,w,T){var k=this.getIntersectedItems(O,function(R,P){return P.rectangle.containsPoint(R)&&!P.rectangle.containsPoint(w)&&P.key!==T.key});return void 0!==k&&k.length>0},S.prototype.createEndConnectionSegment=function(O,w){if(this.endConnectionSide===g.ConnectionPointSide.Undefined)return this.createEndConnectionSegmentCore(O);if(!w||!this.routingModel.shouldReverseConnections){var T=this.createEndConnectionSegmentCore(O);if(T instanceof c.Point||!this.routingModel.shouldResizeConnections)return T;for(var k=T.endPoint,R=T.startPoint,P=O;this.hasIntersectedItemsByPoint(R,k,this.endConnectionShape);)R=(T=this.createEndConnectionSegmentCore(P/=2)).startPoint;return T}if(!this.beginConnectionShape)return this.createEndConnectionSegmentCore(-O);if(this.isPathNormal(this.beginConnectionSide))return this.createEndConnectionSegmentCore(-O);var B=this.createEndConnectionSegmentCore(-2*O);return this.isBeginConnectionRectanleLineIntersected(B,!0,!1)?this.createEndConnectionSegmentCore(O):this.createEndConnectionSegmentCore(-O)},S.prototype.createBeginConnectionSegmentCore=function(O){return a.RightAngleConnectorRoutingMathOperations.createBeginConnectionSegment(this.beginConnectionSide,this.beginPoint,O,function(w,T){return new c.Point(w,T)})},S.prototype.createEndConnectionSegmentCore=function(O){return a.RightAngleConnectorRoutingMathOperations.createEndConnectionSegment(this.endConnectionSide,this.endPoint,O,function(w,T){return new c.Point(w,T)})},S.prototype.isBeginConnectionRectanleLineIntersected=function(O,w,T){return a.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.beginConnectionShape.rectangle,O,this.beginConnectionSide,w,T,function(k,R){return new c.Point(k,R)})},S.prototype.isEndConnectionRectanleLineIntersected=function(O,w,T){return a.RightAngleConnectorRoutingMathOperations.isConnectionRectanleLineIntersected(this.endConnectionShape.rectangle,O,this.endConnectionSide,w,T,function(k,R){return new c.Point(k,R)})},S.prototype.isIgnorableItem=function(O){return void 0!==this.ignorableItemKeys[O.key]},S.prototype.createExtendedShapesBounds=function(){var O=this;return this.routingModel.getItems(this.beginConnectionShape,this.endConnectionShape).map(function(w){return w.rectangle.clone().inflate(O.routingModel.shapeMargins)})},S.prototype.createGrid=function(){return s.RoutingGrid.create(this.createGridPoints(),this.createExtendedShapesBounds(),function(O,w){return new c.Point(O,w)})},S}();u.RightAngleConnectorRoutingContext=E},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorRenderSegment=void 0;var c=o(33),I=o(372),C=function(){function g(a,p,s,l){this.startInfo=a,this.endInfo=p,this.startPointIndex=s,this.previousCustomSegment=l}return Object.defineProperty(g.prototype,"startPathPoint",{get:function(){return this.startInfo instanceof c.Segment?this.startInfo.endPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"endPathPoint",{get:function(){return this.endInfo instanceof c.Segment?this.endInfo.startPoint:this.endInfo},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"startPoint",{get:function(){return this.startInfo instanceof c.Segment?this.startInfo.startPoint:this.startInfo},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"endPoint",{get:function(){return this.endInfo instanceof c.Segment?this.endInfo.endPoint:this.endInfo},enumerable:!1,configurable:!0}),g.prototype.createGridPoints=function(){var a=[];return this.endInfo instanceof c.Segment?(a.push(this.endInfo.startPoint),a.push(this.endInfo.endPoint)):a.push(this.endInfo),a},g.prototype.createProhibitedSegments=function(){if(this.startInfo instanceof c.Segment){var a=this.createProhibitedSegmentsCore(this.startInfo);return this.endInfo instanceof c.Segment&&(a.addSegment(this.endInfo),a.addExludedPoint(this.endInfo.startPoint)),this.previousCustomSegment&&a.addSegment(this.previousCustomSegment),a}return this.endInfo instanceof c.Segment?((a=this.createProhibitedSegmentsCore(this.endInfo)).addExludedPoint(this.endInfo.startPoint),this.previousCustomSegment&&a.addSegment(this.previousCustomSegment),a):this.previousCustomSegment?this.createProhibitedSegmentsCore(this.previousCustomSegment):void 0},g.prototype.createProhibitedSegmentsCore=function(a){var p=new I.ConnectorProhibitedSegments;return p.addSegment(a),p},g}();u.ConnectorRenderSegment=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorProhibitedSegments=void 0;var c=function(){function I(){this.segments=[],this.exludedPoints={}}return I.prototype.addSegment=function(C){this.segments.push(C)},I.prototype.addExludedPoint=function(C){this.exludedPoints[C.toString()]=C},I.prototype.allowPoint=function(C){if(void 0===this.exludedPoints[C.toString()])for(var g=0;g<this.segments.length;g++)if(this.segments[g].containsPoint(C))return!1;return!0},I}();u.ConnectorProhibitedSegments=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RoutingGrid=void 0;var c=o(41),I=function(){function C(g,a,p){this.verticalGridLines=g,this.horizontalGridLines=a,this.createPoint=p}return C.create=function(g,a,p){var s=this,l=[],d=[],h={},v={};return a.forEach(function(x){s.addLine(x.x,l,h),s.addLine(x.right,l,h),s.addLine(x.y,d,v),s.addLine(x.bottom,d,v)}),g.forEach(function(x){s.addLine(x.x,l,h),s.addLine(x.y,d,v)}),l.sort(function(x,b){return x-b}),d.sort(function(x,b){return x-b}),new C(l,d,p)},C.addLine=function(g,a,p){p[g]||(a.push(g),p[g]=!0)},C.prototype.getNeighborPoints=function(g){var a=[];if(!(this.horizontalGridLines&&this.horizontalGridLines.length&&this.verticalGridLines&&this.verticalGridLines.length))return a;var p=c.SearchUtils.binaryIndexOf(this.verticalGridLines,function(l){return l-g.x});p<0?this.isValidArrayIndex(this.verticalGridLines,p=~p)&&a.push(this.createPoint(this.verticalGridLines[p],g.y)):this.isValidArrayIndex(this.verticalGridLines,p+1)&&a.push(this.createPoint(this.verticalGridLines[p+1],g.y)),this.isValidArrayIndex(this.verticalGridLines,p-1)&&a.push(this.createPoint(this.verticalGridLines[p-1],g.y));var s=c.SearchUtils.binaryIndexOf(this.horizontalGridLines,function(l){return l-g.y});return s<0?this.isValidArrayIndex(this.horizontalGridLines,s=~s)&&a.push(this.createPoint(g.x,this.horizontalGridLines[s])):this.isValidArrayIndex(this.horizontalGridLines,s+1)&&a.push(this.createPoint(g.x,this.horizontalGridLines[s+1])),this.isValidArrayIndex(this.horizontalGridLines,s-1)&&a.push(this.createPoint(g.x,this.horizontalGridLines[s-1])),a},C.prototype.isValidArrayIndex=function(g,a){return g&&a>=0&&a<g.length},C}();u.RoutingGrid=I},function(he,u,o){"use strict";var c,I=this&&this.__extends||(c=function(v,x){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,y){b.__proto__=y}||function(b,y){for(var E in y)y.hasOwnProperty(E)&&(b[E]=y[E])})(v,x)},function(v,x){function b(){this.constructor=v}c(v,x),v.prototype=null===x?Object.create(x):(b.prototype=x.prototype,new b)});Object.defineProperty(u,"__esModule",{value:!0}),u.AStarContext=u.AStarContextBase=void 0;var C=o(375),g=o(376),a=o(377),p=o(33),s=o(160),l=o(3),d=function(){function v(x,b,y){this.startPosition=x,this.targetPosition=b,this.maxStepsCount=y,this.prohibitedPoints={}}return Object.defineProperty(v.prototype,"shouldStartContinue",{get:function(){return this.updatableSet.count>0&&this.stepsCount<this.maxStepsCount},enumerable:!1,configurable:!0}),Object.defineProperty(v.prototype,"shouldFinish",{get:function(){return this.currentNode.position.equals(this.targetPosition)},enumerable:!1,configurable:!0}),v.prototype.start=function(){this.generalSet=new C.SortedQueues(function(b){return b.key}),this.updatableSet=new g.UniqueAStarNodePositions;var x=new a.AStarNode(this.startPosition,this.getDistance(this.startPosition,this.targetPosition));this.currentNode=x,this.generalSet.enqueue(x),this.updatableSet.add(x.position,x),this.stepsCount=0,this.openNode=void 0},v.prototype.startContinue=function(){this.currentNode=this.generalSet.dequeueMin()},v.prototype.endContinue=function(){var x=this,b=this.currentNode.position;this.updatableSet.remove(b),this.addProhibitedPoint(b),this.getNeighborPoints(b).forEach(function(y){var E=x.getPenalty(x.currentNode,y),S=x.updatableSet.getNode(y);if(void 0===S)(S=new a.AStarNode(y,x.getDistance(y,x.targetPosition))).parent=x.currentNode,S.penalty=E,x.generalSet.enqueue(S),x.updatableSet.add(y,S);else if(S.penalty>E){var O=x.generalSet;O.remove(S),S.parent=x.currentNode,S.penalty=E,O.enqueue(S)}x.openNode=S}),this.stepsCount++},v.prototype.finishWithPath=function(){this.path=this.currentNode.getPath()},v.prototype.finishWithoutPath=function(){this.path=[]},v}();u.AStarContextBase=d;var h=function(v){function x(b,y,E,S,O,w){var T=v.call(this,y,E,1e4)||this;return T.routingContext=b,T.startPosition=y,T.targetPosition=E,T.prohibitedSegments=S,T.grid=O,T.metrics=w,T}return I(x,v),x.prototype.addProhibitedPoint=function(b){this.prohibitedPoints[b.toString()]=b},x.prototype.getNeighborPoints=function(b){var y=this;return this.grid.getNeighborPoints(b).filter(function(E){return y.allowPoint(E)})},x.prototype.getDistance=function(b,y){return this.metrics.distance(b,y)},x.prototype.getPenalty=function(b,y){var E=b.parent,S=b.position,O=this.getTurnDirection(E?l.GeometryUtils.createAngle(E.position,S,y):0),w=this.getDistance(S,y),T=new p.Segment(S,y).center;return b.penalty+this.metrics.penalty(w,T,O,this.getIntersectedItems(T))},x.prototype.allowPoint=function(b){return void 0===this.prohibitedPoints[b.toString()]&&(!this.prohibitedSegments||this.prohibitedSegments.allowPoint(b))},x.prototype.getTurnDirection=function(b){return s.RightAngleConnectorRoutingMathOperations.getTurnDirection(b)},x.prototype.getIntersectedItems=function(b){var y=this,E=this.routingContext.shapeMargins;return this.routingContext.getIntersectedItems(b,function(S,O){return y.hasIntersectedItem(S,O,E)})},x.prototype.hasIntersectedItem=function(b,y,E){return!(!this.isIntersectedWithExtendedRectangle(b,y,E)||!this.hasOneShapeConnection(y)&&this.itemContainsConnectionPoints(y))},x.prototype.isIntersectedWithExtendedRectangle=function(b,y,E){return y.rectangle.clone().inflate(E).containsPoint(b)},x.prototype.itemContainsConnectionPoints=function(b){var y=b.rectangle;return y.containsPoint(this.routingContext.beginPoint)&&y.containsPoint(this.routingContext.endPoint)},x.prototype.hasOneShapeConnection=function(b){var y=b.getConnectionPoints();return this.isConnectionPoint(y,this.routingContext.beginPoint)&&this.isConnectionPoint(y,this.routingContext.endPoint)},x.prototype.isConnectionPoint=function(b,y){return b.filter(function(E){return E.equals(y)}).length>0},x}(d);u.AStarContext=h},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.SortedQueues=void 0;var c=o(41),I=function(){function C(g){this.getKey=g,this._itemsArrays={},this._sortedKeys=[]}return Object.defineProperty(C.prototype,"sortedKeys",{get:function(){return this._sortedKeys},enumerable:!1,configurable:!0}),C.prototype.getQueue=function(g){return this._itemsArrays[g]},C.prototype.enqueue=function(g){var a=this.getKey(g);void 0===this._itemsArrays[a]?(this._itemsArrays[a]=[g],this.addSortedKey(a)):this._itemsArrays[a].push(g)},C.prototype.remove=function(g){var a=this.getKey(g),p=this._itemsArrays[a];void 0!==p&&(p.length?p[0]===g?(p.shift(),p.length||this.removeCore(a)):this._itemsArrays[a]=p.filter(function(s){return s!==g}):this.removeCore(a))},C.prototype.dequeueMin=function(){if(this._sortedKeys.length){var g=this._sortedKeys[0],a=this._itemsArrays[g],p=a.shift();return a.length||this.removeCore(g),p}},C.prototype.removeCore=function(g){delete this._itemsArrays[g],this.removeSortedKey(g)},C.prototype.removeSortedKey=function(g){var a=c.SearchUtils.binaryIndexOf(this._sortedKeys,function(p){return p-g});a>=0&&this.sortedKeys.splice(a,1)},C.prototype.addSortedKey=function(g){var a=c.SearchUtils.binaryIndexOf(this._sortedKeys,function(p){return p-g});a<0&&this._sortedKeys.splice(-(a+1),0,g)},C}();u.SortedQueues=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.UniqueAStarNodePositions=void 0;var c=function(){function I(C){void 0===C&&(C=function(g){return g.toString()}),this.getKey=C,this.items={}}return Object.defineProperty(I.prototype,"count",{get:function(){return Object.keys(this.items).length},enumerable:!1,configurable:!0}),I.prototype.getNode=function(C){var g=this.items[this.getKey(C)];return void 0!==g?g.node:void 0},I.prototype.add=function(C,g){var a=this.getKey(C);void 0===this.items[a]&&(this.items[a]={position:C,node:g})},I.prototype.remove=function(C){var g=this.getKey(C);void 0!==this.items[g]&&delete this.items[g]},I}();u.UniqueAStarNodePositions=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.AStarNode=void 0;var c=function(){function I(C,g){this.position=C,this.distance=g,this.penalty=0}return Object.defineProperty(I.prototype,"key",{get:function(){return this.distance+this.penalty},enumerable:!1,configurable:!0}),I.prototype.getPath=function(){for(var C=[],g=this;void 0!==g;)C.splice(0,0,g.position),g=g.parent;return C},I}();u.AStarNode=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.AStarCalculator=void 0;var c=function(){function I(){}return I.calculate=function(C){if(C)for(var g=this.start(C);g;)g=g(C)},I.start=function(C){return C.start(),C.shouldStartContinue?I.startContinue:I.finishWithPath},I.startContinue=function(C){return C.startContinue(),C.shouldFinish?I.finishWithPath:I.endContinue},I.endContinue=function(C){return C.endContinue(),C.shouldStartContinue?I.startContinue:I.finishWithoutPath},I.finishWithPath=function(C){C.finishWithPath()},I.finishWithoutPath=function(C){C.finishWithoutPath()},I}();u.AStarCalculator=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ReloadContentParameters=void 0;var c=function(){function I(){this.isEmpty=!0}return I.prototype.add=function(C,g,a){void 0!==C&&(void 0===this._dataKeys&&(this._dataKeys=[]),Array.isArray(C)?this._dataKeys=this._dataKeys.concat(C):this._dataKeys.push(C)),this._getData=this._getData||g,this._layoutParameters=this._layoutParameters||a,this.isEmpty=!1},I.prototype.clear=function(){this.isEmpty=!0,this._dataKeys=void 0,this._getData=void 0,this._layoutParameters=void 0},Object.defineProperty(I.prototype,"empty",{get:function(){return this.isEmpty},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"dataKeys",{get:function(){return this._dataKeys},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"getData",{get:function(){return this._getData},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"layoutParameters",{get:function(){return this._layoutParameters},enumerable:!1,configurable:!0}),I}();u.ReloadContentParameters=c},function(he,u,o){}])},6660:function(Rn){Rn.exports=function(he){var u={};function o(c){if(u[c])return u[c].exports;var I=u[c]={i:c,l:!1,exports:{}};return he[c].call(I.exports,I,I.exports,o),I.l=!0,I.exports}return o.m=he,o.c=u,o.d=function(c,I,C){o.o(c,I)||Object.defineProperty(c,I,{enumerable:!0,get:C})},o.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,I){if(1&I&&(c=o(c)),8&I||4&I&&"object"==typeof c&&c&&c.__esModule)return c;var C=Object.create(null);if(o.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:c}),2&I&&"string"!=typeof c)for(var g in c)o.d(C,g,function(a){return c[a]}.bind(null,g));return C},o.n=function(c){var I=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(I,"a",I),I},o.o=function(c,I){return Object.prototype.hasOwnProperty.call(c,I)},o.p="",o(o.s=73)}([function(he,u,o){"use strict";o.r(u),o.d(u,"__extends",function(){return I}),o.d(u,"__assign",function(){return C}),o.d(u,"__rest",function(){return g}),o.d(u,"__decorate",function(){return a}),o.d(u,"__param",function(){return p}),o.d(u,"__metadata",function(){return s}),o.d(u,"__awaiter",function(){return l}),o.d(u,"__generator",function(){return d}),o.d(u,"__createBinding",function(){return h}),o.d(u,"__exportStar",function(){return v}),o.d(u,"__values",function(){return x}),o.d(u,"__read",function(){return b}),o.d(u,"__spread",function(){return y}),o.d(u,"__spreadArrays",function(){return E}),o.d(u,"__spreadArray",function(){return S}),o.d(u,"__await",function(){return O}),o.d(u,"__asyncGenerator",function(){return w}),o.d(u,"__asyncDelegator",function(){return T}),o.d(u,"__asyncValues",function(){return k}),o.d(u,"__makeTemplateObject",function(){return R}),o.d(u,"__importStar",function(){return B}),o.d(u,"__importDefault",function(){return W}),o.d(u,"__classPrivateFieldGet",function(){return z}),o.d(u,"__classPrivateFieldSet",function(){return V});var c=function(U,K){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Y,J){Y.__proto__=J}||function(Y,J){for(var j in J)Object.prototype.hasOwnProperty.call(J,j)&&(Y[j]=J[j])})(U,K)};function I(U,K){if("function"!=typeof K&&null!==K)throw new TypeError("Class extends value "+String(K)+" is not a constructor or null");function Y(){this.constructor=U}c(U,K),U.prototype=null===K?Object.create(K):(Y.prototype=K.prototype,new Y)}var C=function(){return(C=Object.assign||function(U){for(var K,Y=1,J=arguments.length;Y<J;Y++)for(var j in K=arguments[Y])Object.prototype.hasOwnProperty.call(K,j)&&(U[j]=K[j]);return U}).apply(this,arguments)};function g(U,K){var Y={};for(var J in U)Object.prototype.hasOwnProperty.call(U,J)&&K.indexOf(J)<0&&(Y[J]=U[J]);if(null!=U&&"function"==typeof Object.getOwnPropertySymbols){var j=0;for(J=Object.getOwnPropertySymbols(U);j<J.length;j++)K.indexOf(J[j])<0&&Object.prototype.propertyIsEnumerable.call(U,J[j])&&(Y[J[j]]=U[J[j]])}return Y}function a(U,K,Y,J){var j,ee=arguments.length,G=ee<3?K:null===J?J=Object.getOwnPropertyDescriptor(K,Y):J;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)G=Reflect.decorate(U,K,Y,J);else for(var q=U.length-1;q>=0;q--)(j=U[q])&&(G=(ee<3?j(G):ee>3?j(K,Y,G):j(K,Y))||G);return ee>3&&G&&Object.defineProperty(K,Y,G),G}function p(U,K){return function(Y,J){K(Y,J,U)}}function s(U,K){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(U,K)}function l(U,K,Y,J){return new(Y||(Y=Promise))(function(j,ee){function G(X){try{Z(J.next(X))}catch(M){ee(M)}}function q(X){try{Z(J.throw(X))}catch(M){ee(M)}}function Z(X){var M;X.done?j(X.value):(M=X.value,M instanceof Y?M:new Y(function(oe){oe(M)})).then(G,q)}Z((J=J.apply(U,K||[])).next())})}function d(U,K){var Y,J,j,ee,G={label:0,sent:function(){if(1&j[0])throw j[1];return j[1]},trys:[],ops:[]};return ee={next:q(0),throw:q(1),return:q(2)},"function"==typeof Symbol&&(ee[Symbol.iterator]=function(){return this}),ee;function q(Z){return function(X){return function(M){if(Y)throw new TypeError("Generator is already executing.");for(;G;)try{if(Y=1,J&&(j=2&M[0]?J.return:M[0]?J.throw||((j=J.return)&&j.call(J),0):J.next)&&!(j=j.call(J,M[1])).done)return j;switch(J=0,j&&(M=[2&M[0],j.value]),M[0]){case 0:case 1:j=M;break;case 4:return G.label++,{value:M[1],done:!1};case 5:G.label++,J=M[1],M=[0];continue;case 7:M=G.ops.pop(),G.trys.pop();continue;default:if(!((j=(j=G.trys).length>0&&j[j.length-1])||6!==M[0]&&2!==M[0])){G=0;continue}if(3===M[0]&&(!j||M[1]>j[0]&&M[1]<j[3])){G.label=M[1];break}if(6===M[0]&&G.label<j[1]){G.label=j[1],j=M;break}if(j&&G.label<j[2]){G.label=j[2],G.ops.push(M);break}j[2]&&G.ops.pop(),G.trys.pop();continue}M=K.call(U,G)}catch(oe){M=[6,oe],J=0}finally{Y=j=0}if(5&M[0])throw M[1];return{value:M[0]?M[1]:void 0,done:!0}}([Z,X])}}}var h=Object.create?function(U,K,Y,J){void 0===J&&(J=Y),Object.defineProperty(U,J,{enumerable:!0,get:function(){return K[Y]}})}:function(U,K,Y,J){void 0===J&&(J=Y),U[J]=K[Y]};function v(U,K){for(var Y in U)"default"===Y||Object.prototype.hasOwnProperty.call(K,Y)||h(K,U,Y)}function x(U){var K="function"==typeof Symbol&&Symbol.iterator,Y=K&&U[K],J=0;if(Y)return Y.call(U);if(U&&"number"==typeof U.length)return{next:function(){return U&&J>=U.length&&(U=void 0),{value:U&&U[J++],done:!U}}};throw new TypeError(K?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(U,K){var Y="function"==typeof Symbol&&U[Symbol.iterator];if(!Y)return U;var J,j,ee=Y.call(U),G=[];try{for(;(void 0===K||K-- >0)&&!(J=ee.next()).done;)G.push(J.value)}catch(q){j={error:q}}finally{try{J&&!J.done&&(Y=ee.return)&&Y.call(ee)}finally{if(j)throw j.error}}return G}function y(){for(var U=[],K=0;K<arguments.length;K++)U=U.concat(b(arguments[K]));return U}function E(){for(var U=0,K=0,Y=arguments.length;K<Y;K++)U+=arguments[K].length;var J=Array(U),j=0;for(K=0;K<Y;K++)for(var ee=arguments[K],G=0,q=ee.length;G<q;G++,j++)J[j]=ee[G];return J}function S(U,K,Y){if(Y||2===arguments.length)for(var J,j=0,ee=K.length;j<ee;j++)!J&&j in K||(J||(J=Array.prototype.slice.call(K,0,j)),J[j]=K[j]);return U.concat(J||Array.prototype.slice.call(K))}function O(U){return this instanceof O?(this.v=U,this):new O(U)}function w(U,K,Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J,j=Y.apply(U,K||[]),ee=[];return J={},G("next"),G("throw"),G("return"),J[Symbol.asyncIterator]=function(){return this},J;function G(oe){j[oe]&&(J[oe]=function(fe){return new Promise(function(Te,Be){ee.push([oe,fe,Te,Be])>1||q(oe,fe)})})}function q(oe,fe){try{(Te=j[oe](fe)).value instanceof O?Promise.resolve(Te.value.v).then(Z,X):M(ee[0][2],Te)}catch(Be){M(ee[0][3],Be)}var Te}function Z(oe){q("next",oe)}function X(oe){q("throw",oe)}function M(oe,fe){oe(fe),ee.shift(),ee.length&&q(ee[0][0],ee[0][1])}}function T(U){var K,Y;return K={},J("next"),J("throw",function(j){throw j}),J("return"),K[Symbol.iterator]=function(){return this},K;function J(j,ee){K[j]=U[j]?function(G){return(Y=!Y)?{value:O(U[j](G)),done:"return"===j}:ee?ee(G):G}:ee}}function k(U){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var K,Y=U[Symbol.asyncIterator];return Y?Y.call(U):(U=x(U),K={},J("next"),J("throw"),J("return"),K[Symbol.asyncIterator]=function(){return this},K);function J(j){K[j]=U[j]&&function(ee){return new Promise(function(G,q){var Z,X,M;Z=G,X=q,M=(ee=U[j](ee)).done,Promise.resolve(ee.value).then(function(fe){Z({value:fe,done:M})},X)})}}}function R(U,K){return Object.defineProperty?Object.defineProperty(U,"raw",{value:K}):U.raw=K,U}var P=Object.create?function(U,K){Object.defineProperty(U,"default",{enumerable:!0,value:K})}:function(U,K){U.default=K};function B(U){if(U&&U.__esModule)return U;var K={};if(null!=U)for(var Y in U)"default"!==Y&&Object.prototype.hasOwnProperty.call(U,Y)&&h(K,U,Y);return P(K,U),K}function W(U){return U&&U.__esModule?U:{default:U}}function z(U,K,Y,J){if("a"===Y&&!J)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof K?U!==K||!J:!K.has(U))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===Y?J:"a"===Y?J.call(U):J?J.value:K.get(U)}function V(U,K,Y,J,j){if("m"===J)throw new TypeError("Private method is not writable");if("a"===J&&!j)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof K?U!==K||!j:!K.has(U))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===J?j.call(U,Y):j?j.value=Y:K.set(U,Y),Y}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.numberToStringHex=u.numberToStringBin=u.isOdd=u.isEven=u.isNonNullString=u.isString=u.isNumber=u.boolToString=u.boolToInt=u.isDefined=void 0;var c=o(39);u.isDefined=function(I){return null!=I},u.boolToInt=function(I){return I?1:0},u.boolToString=function(I){return I?"1":"0"},u.isNumber=function(I){return"number"==typeof I},u.isString=function(I){return"string"==typeof I},u.isNonNullString=function(I){return!!I},u.isEven=function(I){return I%2!=0},u.isOdd=function(I){return I%2==0},u.numberToStringBin=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(2),C,"0")},u.numberToStringHex=function(I,C){return void 0===C&&(C=0),c.StringUtils.padLeft(I.toString(16),C,"0")}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttDataObjectNames=u.DataObject=void 0;var c=o(1),I=o(18),C=function(){function g(){this.internalId=I.MathUtils.generateGuid()}return g.prototype.assignFromObject=function(a){(0,c.isDefined)(a)&&(0,c.isDefined)(a.id)&&this.updateId(a.id)},g.prototype.updateId=function(a){this.id=a,this.internalId=String(a)},g}();u.DataObject=C,u.GanttDataObjectNames={task:"task",dependency:"dependency",resource:"resource",resourceAssignment:"assignment"}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DomUtils=void 0;var c=o(10),I=o(1),C=o(18),g=o(39),a=function(){function l(){}return l.clearInnerHtml=function(d){for(;d.firstChild;)d.removeChild(d.firstChild)},l.setStylePosition=function(d,h){d.left=C.MathUtils.round(h.x,3)+"px",d.top=C.MathUtils.round(h.y,3)+"px"},l.setStyleSize=function(d,h){d.width=C.MathUtils.round(h.width,3)+"px",d.height=C.MathUtils.round(h.height,3)+"px"},l.setStyleSizeAndPosition=function(d,h){l.setStylePosition(d,h),l.setStyleSize(d,h)},l.hideNode=function(d){if(d){var h=d.parentNode;h&&h.removeChild(d)}},l.isHTMLElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},l.isTextNode=function(d){return d.nodeType===Node.TEXT_NODE},l.isElementNode=function(d){return d.nodeType===Node.ELEMENT_NODE},l.isHTMLTableRowElement=function(d){return"TR"===d.tagName},l.isItParent=function(d,h){if(!d||!h)return!1;for(;h;){if(h===d)return!0;if("BODY"===h.tagName)return!1;h=h.parentNode}return!1},l.getParentByTagName=function(d,h){for(h=h.toUpperCase();d;){if("BODY"===d.tagName)return null;if(d.tagName===h)return d;d=d.parentNode}return null},l.getDocumentScrollTop=function(){var d=c.Browser.IE&&"hidden"===l.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return c.Browser.WebKitFamily||c.Browser.Edge||d?c.Browser.MacOSMobilePlatform?window.pageYOffset:c.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},l.getDocumentScrollLeft=function(){var d=c.Browser.IE&&"hidden"===l.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return c.Browser.Edge||d?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:c.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},l.getCurrentStyle=function(d){if(d.currentStyle)return d.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var h=document.defaultView.getComputedStyle(d,null);if(!h&&c.Browser.Firefox&&window.frameElement){for(var v=[],x=window.frameElement;!(h=document.defaultView.getComputedStyle(d,null));)v.push([x,x.style.display]),x.style.setProperty("display","block","important"),x="BODY"===x.tagName?x.ownerDocument.defaultView.frameElement:x.parentNode;h=function(E){if("object"!=typeof E||!I.isDefined(E))return E;var S={};for(var O in E)S[O]=E[O];return S}(h);for(var b=void 0,y=0;b=v[y];y++)b[0].style.display=b[1];document}return h}return window.getComputedStyle(d,null)},l.setFocus=function(d){function h(){try{d.focus(),c.Browser.IE&&document.activeElement!==d&&d.focus()}catch{}}c.Browser.MacOSMobilePlatform?h():setTimeout(function(){h()},100)},l.hasClassName=function(d,h){try{var v=h.split(" "),x=d.classList;if(x){for(var b=v.length-1;b>=0;b--)if(!x.contains(v[b]))return!1}else{var y=d.getAttribute&&d.getAttribute("class");if(!y)return!1;var E=y.split(" ");for(b=v.length-1;b>=0;b--)if(E.indexOf(v[b])<0)return!1}return!0}catch{return!1}},l.addClassName=function(d,h){if(!l.hasClassName(d,h)){var v=d.getAttribute&&d.getAttribute("class");d.setAttribute("class",""===v?h:v+" "+h)}},l.removeClassName=function(d,h){var v=" "+(d.getAttribute&&d.getAttribute("class"))+" ",x=v.replace(" "+h+" "," ");v.length!==x.length&&d.setAttribute("class",g.StringUtils.trim(x))},l.toggleClassName=function(d,h,v){void 0===v?l.hasClassName(d,h)?l.removeClassName(d,h):l.addClassName(d,h):v?l.addClassName(d,h):l.removeClassName(d,h)},l.pxToInt=function(d){return p(d,parseInt)},l.pxToFloat=function(d){return p(d,parseFloat)},l.getAbsolutePositionY=function(d){function h(v){return Math.round(v.getBoundingClientRect().top+l.getDocumentScrollTop())}return d?c.Browser.IE?(v=d,c.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().top+l.getDocumentScrollTop()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera?function(v){var x=!0;v&&l.isHTMLTableRowElement(v)&&v.cells.length>0&&(v=v.cells[0]);for(var b=s(v,!1);null!=v;)b+=v.offsetTop,x||(b-=v.scrollTop),v=v.offsetParent,x=!1;return b+document.body.scrollTop}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(v){for(var x=s(v,!1),b=!0;null!=v;){if(x+=v.offsetTop,b||null==v.offsetParent||(x-=v.scrollTop),!b&&c.Browser.Firefox){var y=l.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==y.overflow&&(x+=l.pxToInt(y.borderTopWidth))}b=!1,v=v.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(v){for(var x=0,b=!0;null!=v;)x+=v.offsetTop,b||null==v.offsetParent||(x-=v.scrollTop),b=!1,v=v.offsetParent;return x}(d):0;var v},l.getAbsolutePositionX=function(d){function h(v){return Math.round(v.getBoundingClientRect().left+l.getDocumentScrollLeft())}return d?c.Browser.IE?(v=d,c.Browser.IE&&null===v.parentNode?0:v.getBoundingClientRect().left+l.getDocumentScrollLeft()):c.Browser.Firefox&&c.Browser.Version>=3?h(d):c.Browser.Opera&&c.Browser.Version<=12?function(v){for(var x=!0,b=s(v,!0);null!=v;)b+=v.offsetLeft,x||(b-=v.scrollLeft),v=v.offsetParent,x=!1;return b+document.body.scrollLeft}(d):c.Browser.NetscapeFamily&&(!c.Browser.Firefox||c.Browser.Version<3)?function(v){for(var x=s(v,!0),b=!0;null!=v;){if(x+=v.offsetLeft,b||null==v.offsetParent||(x-=v.scrollLeft),!b&&c.Browser.Firefox){var y=l.getCurrentStyle(v);"DIV"===v.tagName&&"visible"!==y.overflow&&(x+=l.pxToInt(y.borderLeftWidth))}b=!1,v=v.offsetParent}return x}(d):c.Browser.WebKitFamily||c.Browser.Edge?h(d):function(v){for(var x=0,b=!0;null!=v;)x+=v.offsetLeft,b||null==v.offsetParent||(x-=v.scrollLeft),b=!1,v=v.offsetParent;return x}(d):0;var v},l.isInteractiveControl=function(d){return["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"].indexOf(d.tagName)>-1},l.getClearClientHeight=function(d){return d.offsetHeight-(l.getTopBottomPaddings(d)+l.getVerticalBordersWidth(d))},l.getTopBottomPaddings=function(d,h){var v=h||l.getCurrentStyle(d);return l.pxToInt(v.paddingTop)+l.pxToInt(v.paddingBottom)},l.getVerticalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&9!==c.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(d):l.getCurrentStyle(d));var v=0;return"none"!==h.borderTopStyle&&(v+=l.pxToFloat(h.borderTopWidth)),"none"!==h.borderBottomStyle&&(v+=l.pxToFloat(h.borderBottomWidth)),v},l.getNodes=function(d,h){for(var v=d.all||d.getElementsByTagName("*"),x=[],b=0;b<v.length;b++){var y=v[b];h(y)&&x.push(y)}return x},l.getChildNodes=function(d,h){for(var v=d.childNodes,x=[],b=0;b<v.length;b++){var y=v[b];h(y)&&x.push(y)}return x},l.getNodesByClassName=function(d,h){if(d.querySelectorAll){var v=d.querySelectorAll("."+h),x=[];return v.forEach(function(b){return x.push(b)}),x}return l.getNodes(d,function(b){return l.hasClassName(b,h)})},l.getChildNodesByClassName=function(d,h){return d.querySelectorAll?function(v,x){for(var b=[],y=0;y<v.length;y++){var E=v[y];x(E)&&b.push(E)}return b}(d.querySelectorAll("."+h),function(v){return v.parentNode===d}):l.getChildNodes(d,function(v){return!!l.isElementNode(v)&&I.isNonNullString(v.className)&&l.hasClassName(v,v.className)})},l.getVerticalScrollBarWidth=function(){if(void 0===l.verticalScrollBarWidth){var d=document.createElement("DIV");d.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(d);var h=document.createElement("P");d.appendChild(h),h.style.cssText="width: 100%; height: 200px;";var v=h.offsetWidth;d.style.overflow="scroll";var x=h.offsetWidth;v===x&&(x=d.clientWidth),l.verticalScrollBarWidth=v-x,document.body.removeChild(d)}return l.verticalScrollBarWidth},l.getHorizontalBordersWidth=function(d,h){I.isDefined(h)||(h=c.Browser.IE&&window.getComputedStyle?window.getComputedStyle(d):l.getCurrentStyle(d));var v=0;return"none"!==h.borderLeftStyle&&(v+=l.pxToFloat(h.borderLeftWidth)),"none"!==h.borderRightStyle&&(v+=l.pxToFloat(h.borderRightWidth)),v},l.getFontFamiliesFromCssString=function(d){return d.split(",").map(function(h){return g.StringUtils.trim(h.replace(/'|"/gi,""))})},l.getInnerText=function(d){if(c.Browser.Safari&&c.Browser.MajorVersion<=5){null===l.html2PlainTextFilter&&((l.html2PlainTextFilter=document.createElement("DIV")).style.width="0",l.html2PlainTextFilter.style.height="0",l.html2PlainTextFilter.style.overflow="visible",l.html2PlainTextFilter.style.display="none",document.body.appendChild(l.html2PlainTextFilter));var h=l.html2PlainTextFilter;h.innerHTML=d.innerHTML,h.style.display="";var v=h.innerText;return h.style.display="none",v}return c.Browser.NetscapeFamily||c.Browser.WebKitFamily||c.Browser.IE&&c.Browser.Version>=9||c.Browser.Edge?d.textContent:d.innerText},l.html2PlainTextFilter=null,l.verticalScrollBarWidth=void 0,l}();function p(l,d){var h=0;if(I.isDefined(l)&&""!==l)try{var v=l.indexOf("px");v>-1&&(h=d(l.substr(0,v)))}catch{}return h}function s(l,d){for(var h=0,v=!0;null!=l&&"BODY"!==l.tagName;){var x=a.getCurrentStyle(l);if("absolute"===x.position)break;v||"DIV"!==l.tagName||""!==x.position&&"static"!==x.position||(h-=d?l.scrollLeft:l.scrollTop),l=l.parentNode,v=!1}return h}u.DomUtils=a},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaEventSource=u.TaskTitlePosition=u.Position=u.ViewType=void 0,(c=u.ViewType||(u.ViewType={}))[c.TenMinutes=0]="TenMinutes",c[c.Hours=1]="Hours",c[c.SixHours=2]="SixHours",c[c.Days=3]="Days",c[c.Weeks=4]="Weeks",c[c.Months=5]="Months",c[c.Quarter=6]="Quarter",c[c.Years=7]="Years",c[c.FiveYears=8]="FiveYears",function(c){c[c.Left=0]="Left",c[c.Top=1]="Top",c[c.Right=2]="Right",c[c.Bottom=3]="Bottom"}(u.Position||(u.Position={})),function(c){c[c.Inside=0]="Inside",c[c.Outside=1]="Outside",c[c.None=2]="None"}(u.TaskTitlePosition||(u.TaskTitlePosition={})),function(c){c[c.TaskArea=0]="TaskArea",c[c.TaskEdit_Frame=1]="TaskEdit_Frame",c[c.TaskEdit_Progress=2]="TaskEdit_Progress",c[c.TaskEdit_Start=3]="TaskEdit_Start",c[c.TaskEdit_End=4]="TaskEdit_End",c[c.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",c[c.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",c[c.Successor_Wrapper=7]="Successor_Wrapper",c[c.Successor_DependencyStart=8]="Successor_DependencyStart",c[c.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(u.TaskAreaEventSource||(u.TaskAreaEventSource={}))},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Point=void 0;var c=function(){function I(C,g){this.x=C,this.y=g}return I.zero=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.prototype.isZero=function(){return 0===this.x&&0===this.y},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.copyFrom=function(C){this.x=C.x,this.y=C.y},I.prototype.clone=function(){return new I(this.x,this.y)},I.prototype.equals=function(C){return this.x===C.x&&this.y===C.y},I.prototype.offset=function(C,g){return this.x+=C,this.y+=g,this},I.prototype.offsetByPoint=function(C){return this.x+=C.x,this.y+=C.y,this},I.prototype.multiply=function(C,g){return this.x*=C,this.y*=g,this},I.prototype.negative=function(){return this.x*=-1,this.y*=-1,this},I.prototype.applyConverter=function(C){return this.x=C(this.x),this.y=C(this.y),this},I.plus=function(C,g){return new I(C.x+g.x,C.y+g.y)},I.minus=function(C,g){return new I(C.x-g.x,C.y-g.y)},I.xComparer=function(C,g){return C.x-g.x},I.yComparer=function(C,g){return C.y-g.y},I.equals=function(C,g){return C.x===g.x&&C.y===g.y},I}();u.Point=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CommandBase=void 0;var c=function(){function I(C){this.control=C}return Object.defineProperty(I.prototype,"modelManipulator",{get:function(){return this.control.modelManipulator},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"history",{get:function(){return this.control.history},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"validationController",{get:function(){return this.control.validationController},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"state",{get:function(){return this._state||(this._state=this.getState()),this._state},enumerable:!1,configurable:!0}),I.prototype.execute=function(){for(var C=[],g=0;g<arguments.length;g++)C[g]=arguments[g];if(!this.state.enabled)return!1;var a=this.executeInternal.apply(this,C);return a&&this.control.barManager.updateItemsState([]),a},I.prototype.isEnabled=function(){return this.control.settings.editing.enabled},I.prototype.executeInternal=function(){for(var C=[],g=0;g<arguments.length;g++)C[g]=arguments[g];throw new Error("Not implemented")},I}();u.CommandBase=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.SimpleCommandState=void 0,u.SimpleCommandState=function(I,C){this.visible=!0,this.enabled=I,this.value=C}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DateTimeUtils=void 0;var c=o(55),I=o(56),C=o(1),g=o(19),a=o(57),p=function(){function s(){}return s.compareDates=function(l,d){return l&&d?d.getTime()-l.getTime():-1},s.areDatesEqual=function(l,d){return 0==this.compareDates(l,d)},s.getMaxDate=function(l,d){return l||d?l?d&&this.compareDates(l,d)>0?d:l:d:null},s.getMinDate=function(l,d){return l||d?l?d?this.compareDates(l,d)>0?l:d:l:d:null},s.getDaysBetween=function(l,d){var h=Math.abs(d.getTime()-l.getTime());return Math.ceil(h/this.msInDay)},s.getWeeksBetween=function(l,d){var h=this.getDaysBetween(l,d),v=Math.floor(h/7);return l.getDay()>d.getDay()&&v++,v},s.getMonthsDifference=function(l,d){var h=this.compareDates(l,d),v=h>=0?l:d,x=h>=0?d:l;return 12*(x.getFullYear()-v.getFullYear())+(x.getMonth()-v.getMonth())},s.getYearsDifference=function(l,d){return Math.abs(d.getFullYear()-l.getFullYear())},s.getDayNumber=function(l){return Math.ceil(l.getTime()/this.msInDay)},s.getDateByDayNumber=function(l){var d=new Date(l*this.msInDay);return d.setHours(0),d.setMinutes(0),d.setSeconds(0),d},s.addDays=function(l,d){return new Date(l.getTime()+d*this.msInDay)},s.checkDayOfMonth=function(l,d){return l==d.getDate()},s.checkDayOfWeek=function(l,d){return l==d.getDay()},s.checkMonth=function(l,d){return l==d.getMonth()},s.checkYear=function(l,d){return l==d.getFullYear()},s.checkDayOfWeekOccurrenceInMonth=function(l,d,h){var v=this.getSpecificDayOfWeekInMonthDates(d,l.getFullYear(),l.getMonth());return this.areDatesEqual(l,h==a.DayOfWeekMonthlyOccurrence.Last?v[v.length-1]:v[h])},s.getFirstDayOfWeekInMonth=function(l,d){return new Date(l,d,1).getDay()},s.getSpecificDayOfWeekInMonthDates=function(l,d,h){for(var v=this.getFirstDayOfWeekInMonth(d,h),x=l>=v?l-v:l+7-v,b=new Array,y=new Date(d,h,x+1);y.getMonth()==h;)b.push(y),y=this.addDays(y,7);return b},s.getSpecificDayOfWeekInMonthDate=function(l,d,h,v){var x=this.getSpecificDayOfWeekInMonthDates(l,d,h);return v==a.DayOfWeekMonthlyOccurrence.Last?x[x.length-1]:x[v]},s.checkValidDayInMonth=function(l,d,h){return!(h<1||h>31||new Date(l,d,h).getMonth()!=d)},s.getNextMonth=function(l,d){return void 0===d&&(d=1),(l+d)%12},s.convertToDate=function(l){if(l instanceof Date)return new Date(l);var d=Date.parse(l);return isNaN(d)?null:new Date(d)},s.convertTimeRangeToDateRange=function(l,d){var h=this.getDateByDayNumber(d),v=h.getFullYear(),x=h.getMonth(),b=h.getDate(),y=l.start,E=new Date(v,x,b,y.hour,y.min,y.sec,y.msec),S=l.end,O=new Date(v,x,b,S.hour,S.min,S.sec,S.msec);return new g.DateRange(E,O)},s.convertToTimeRanges=function(l){var d=this;return l instanceof Array?l.map(function(h){return d.convertToTimeRange(h)}):this.parseTimeRanges(l)},s.convertToTimeRange=function(l){return l?l instanceof I.TimeRange?l:(0,C.isDefined)(l.start)&&(0,C.isDefined)(l.end)?new I.TimeRange(this.convertToTime(l.start),this.convertToTime(l.end)):this.parseTimeRange(l):null},s.convertToTime=function(l){return l?l instanceof c.Time?l:l instanceof Date?this.getTimeGromJsDate(l):this.parseTime(l):null},s.parseTimeRanges=function(l){var d=this;return l?l.split(/;|,/).map(function(h){return d.parseTimeRange(h)}).filter(function(h){return!!h}):null},s.parseTimeRange=function(l){if(!l)return null;var d=l.split("-"),h=d[0],v=d[1];return(0,C.isDefined)(h)&&(0,C.isDefined)(v)?new I.TimeRange(this.parseTime(h),this.parseTime(v)):null},s.parseTime=function(l){if(!l)return null;var d=l.split(":"),h=parseInt(d[0])||0,v=parseInt(d[1])||0,x=parseInt(d[2])||0,b=parseInt(d[3])||0;return new c.Time(h,v,x,b)},s.getTimeGromJsDate=function(l){if(!l)return null;var d=l.getHours(),h=l.getMinutes(),v=l.getSeconds(),x=l.getMilliseconds();return new c.Time(d,h,v,x)},s.caclTimeDifference=function(l,d){return d.getTimeInMilleconds()-l.getTimeInMilleconds()},s.areTimesEqual=function(l,d){return 0==this.caclTimeDifference(l,d)},s.getMaxTime=function(l,d){return l||d?l?d&&this.caclTimeDifference(l,d)>0?d:l:d:null},s.getMinTime=function(l,d){return l||d?l?d?this.caclTimeDifference(l,d)>0?l:d:l:d:null},s.getLastTimeOfDay=function(){return new c.Time(23,59,59,999)},s.msInDay=864e5,s}();u.DateTimeUtils=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EvtUtils=void 0;var c=o(10),I=o(1),C=o(3),g=o(167),a=function(){function p(){}return p.preventEvent=function(s){s.cancelable&&(s.preventDefault?s.preventDefault():s.returnValue=!1)},p.getEventSource=function(s){return I.isDefined(s)?p.getEventSourceCore(s):null},p.getEventSourceByPosition=function(s){if(!I.isDefined(s))return null;if(!document.elementFromPoint)return p.getEventSourceCore(s);var l=p.getEventX(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0),d=p.getEventY(s)-(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0);return void 0===l||void 0===d?p.getEventSourceCore(s):document.elementFromPoint(l,d)},p.getEventSourceCore=function(s){return s.srcElement?s.srcElement:s.target},p.getMouseWheelEventName=function(){return c.Browser.Safari?"mousewheel":c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},p.isLeftButtonPressed=function(s){return!!g.TouchUtils.isTouchEvent(s)||!!(s=c.Browser.IE&&I.isDefined(event)?event:s)&&(c.Browser.IE&&c.Browser.Version<11?!!c.Browser.MSTouchUI||s.button%2==1:c.Browser.WebKitFamily?"pointermove"===s.type||"pointerenter"===s.type||"pointerleave"===s.type?1===s.buttons:1===s.which:c.Browser.NetscapeFamily||c.Browser.Edge||c.Browser.IE&&c.Browser.Version>=11?p.isMoveEventName(s.type)?1===s.buttons:1===s.which:!c.Browser.Opera||0===s.button)},p.isMoveEventName=function(s){return s===g.TouchUtils.touchMouseMoveEventName||s===p.getMoveEventName()},p.getMoveEventName=function(){return window.PointerEvent?"pointermove":c.Browser.TouchUI?"touchmove":"mousemove"},p.preventEventAndBubble=function(s){p.preventEvent(s),s.stopPropagation&&s.stopPropagation(),s.cancelBubble=!0},p.clientEventRequiresDocScrollCorrection=function(){return c.Browser.AndroidDefaultBrowser||c.Browser.AndroidChromeBrowser||!(c.Browser.Safari&&c.Browser.Version<3||c.Browser.MacOSMobilePlatform&&c.Browser.Version<5.1)},p.getEventX=function(s){return g.TouchUtils.isTouchEvent(s)?g.TouchUtils.getEventX(s):s.clientX+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollLeft():0)},p.getEventY=function(s){return g.TouchUtils.isTouchEvent(s)?g.TouchUtils.getEventY(s):s.clientY+(p.clientEventRequiresDocScrollCorrection()?C.DomUtils.getDocumentScrollTop():0)},p.cancelBubble=function(s){s.cancelBubble=!0},p.getWheelDelta=function(s){var l;return l=c.Browser.NetscapeFamily&&c.Browser.MajorVersion<17?-s.detail:c.Browser.Safari?s.wheelDelta:-s.deltaY,c.Browser.Opera&&c.Browser.Version<9&&(l=-l),l},p}();u.EvtUtils=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Browser=void 0;var c=function(){function I(){}return I.IdentUserAgent=function(C,g){void 0===g&&(g=!1);var a=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],p={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(C&&0!==C.length){C=C.toLowerCase(),I.indentPlatformMajorVersion(C);try{for(var s={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},l="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",d={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+l,Mozilla:"mozilla(?:.*rv:"+l+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+l,Firefox:"firefox(?:/|\\s*)?"+l,Opera:"(?:opera|\\sopr)(?:/|\\s*)?"+l,Opera10:"opera.*\\s*version(?:/|\\s*)?"+l,IE:"msie\\s*"+l,Edge:"edge(?:/|\\s*)?"+l},h=null,v=-1,x=0;x<a.length;x++){var b=a[x],y=new RegExp(d[b],"i").exec(C);if(y&&y.index>=0){if("IE"===h&&v>=11&&"Safari"===b)continue;"Opera10"===(h=b)&&(h="Opera"),v=I.GetBrowserVersion(C,y,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",I.getIECompatibleVersionString()),"Mozilla"===h&&v>=11&&(h="IE")}}h||(h="IE");var E=-1!==v;E||(v=p[h]);var S=null,O=Number.MAX_VALUE;for(var w in s)if(Object.prototype.hasOwnProperty.call(s,w)){var T="!"===w.substr(0,1),k=C.indexOf((T?w.substr(1):w).toLowerCase());k>=0&&(k<O||T)&&(O=T?0:k,S=s[w])}var R=C.toUpperCase().match("SM-[A-Z]"),P=R&&R.length>0;"WinPhone"===S&&v<9&&(v=Math.floor(I.getVersionFromTrident(C,"trident(?:/|\\s*)?"+l))),!g&&"IE"===h&&v>7&&document.documentMode<v&&(v=document.documentMode),"WinPhone"===S&&(v=Math.max(9,v)),S||(S="Win"),S!==s["cpu os"]||E||(v=4),I.fillUserAgentInfo(a,h,v,S,P)}catch{I.fillUserAgentInfo(a,"IE",p.IE,"Win")}}else I.fillUserAgentInfo(a,"IE",p.IE,"Win")},I.GetBrowserVersion=function(C,g,a,p){var s=I.getVersionFromMatches(g);if(p){var l=I.getVersionFromTrident(C,a);if("edge"===p||parseInt(p)===l)return l}return s},I.getIECompatibleVersionString=function(){if(document.compatible)for(var C=0;C<document.compatible.length;C++)if("IE"===document.compatible[C].userAgent&&document.compatible[C].version)return document.compatible[C].version.toLowerCase();return""},I.isTouchEnabled=function(){return I.hasTouchStart()||I.hasMaxTouchPoints()||I.hasMsMaxTouchPoints()},I.hasTouchStart=function(){return"ontouchstart"in window},I.hasMaxTouchPoints=function(){return navigator.maxTouchPoints>0},I.hasMsMaxTouchPoints=function(){return navigator.msMaxTouchPoints>0},I.hasNavigator=function(){return typeof navigator<"u"},I.fillUserAgentInfo=function(C,g,a,p,s){void 0===s&&(s=!1);for(var l=0;l<C.length;l++){var d=C[l];I[d]=d===g}I.Version=Math.floor(10*a)/10,I.MajorVersion=Math.floor(I.Version),I.WindowsPlatform="Win"===p||"WinPhone"===p,I.MacOSMobilePlatform="MacMobile"===p||"Mac"===p&&I.isTouchEnabled(),I.MacOSPlatform="Mac"===p&&!I.MacOSMobilePlatform,I.AndroidMobilePlatform="Android"===p,I.WindowsPhonePlatform="WinPhone"===p,I.WebKitFamily=I.Safari||I.Chrome||I.Opera&&I.MajorVersion>=15,I.NetscapeFamily=I.Netscape||I.Mozilla||I.Firefox,I.WebKitTouchUI=I.MacOSMobilePlatform||I.AndroidMobilePlatform;var h=I.IE&&I.MajorVersion>9&&I.WindowsPlatform&&I.UserAgent.toLowerCase().indexOf("touch")>=0;if(I.MSTouchUI=h||I.Edge&&!!window.navigator.maxTouchPoints,I.TouchUI=I.WebKitTouchUI||I.MSTouchUI,I.MobileUI=I.WebKitTouchUI||I.WindowsPhonePlatform,I.AndroidDefaultBrowser=I.AndroidMobilePlatform&&!I.Chrome,I.AndroidChromeBrowser=I.AndroidMobilePlatform&&I.Chrome,s&&(I.SamsungAndroidDevice=s),I.MSTouchUI){var v=I.UserAgent.toLowerCase().indexOf("arm;")>-1;I.VirtualKeyboardSupported=v||I.WindowsPhonePlatform}else I.VirtualKeyboardSupported=I.WebKitTouchUI;I.fillDocumentElementBrowserTypeClassNames(C)},I.indentPlatformMajorVersion=function(C){var g=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(C);g&&(I.PlaformMajorVersion=g[1])},I.getVersionFromMatches=function(C){var g=-1,a="";return C&&(C[1]&&(a+=C[1],C[2]&&(a+="."+C[2])),""!==a&&(g=parseFloat(a),isNaN(g)&&(g=-1))),g},I.getVersionFromTrident=function(C,g){var a=new RegExp(g,"i").exec(C);return I.getVersionFromMatches(a)+4},I.fillDocumentElementBrowserTypeClassNames=function(C){for(var g="",a=C.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),p=0;p<a.length;p++){var s=a[p];I[s]&&(g+="dx"+s+" ")}g+="dxBrowserVersion-"+I.MajorVersion,typeof document<"u"&&document&&document.documentElement&&(""!==document.documentElement.className&&(g=" "+g),document.documentElement.className+=g,I.Info=g)},I.getUserAgent=function(){return I.hasNavigator()&&navigator.userAgent?navigator.userAgent.toLowerCase():""},I.UserAgent=I.getUserAgent(),I._foo=I.IdentUserAgent(I.UserAgent),I}();u.Browser=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.BaseArguments=void 0,u.BaseArguments=function(I){this.cancel=!1,this.values={},this.key=I}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Size=void 0;var c=function(){function I(C,g){this.width=C,this.height=g}return I.empty=function(){return new I(0,0)},I.fromNumber=function(C){return new I(C,C)},I.initByCommonAction=function(C){var g=function(p){return p.width},a=function(p){return p.height};return new I(C(g,a),C(a,g))},I.prototype.isEmpty=function(){return 0===this.width&&0===this.height},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.nonNegativeSize=function(){return this.width<0&&(this.width=0),this.height<0&&(this.height=0),this},I.prototype.offset=function(C,g){return this.width=this.width+C,this.height=this.height+g,this},I.prototype.multiply=function(C,g){return this.width*=C,this.height*=g,this},I.prototype.equals=function(C){return this.width===C.width&&this.height===C.height},I.prototype.clone=function(){return new I(this.width,this.height)},I.prototype.copyFrom=function(C){this.width=C.width,this.height=C.height},I.prototype.applyConverter=function(C){return this.width=C(this.width),this.height=C(this.height),this},I.equals=function(C,g){return C.width===g.width&&C.height===g.height},I}();u.Size=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaStateEventNames=void 0;var c=function(){function I(){}return I.TASK_AREA_CLICK="taskAreaClick",I.TASK_AREA_DBLCLICK="taskAreaDblClick",I.TASK_AREA_SCROLL="taskAreaScroll",I.TASK_AREA_START_MOVE="taskAreaStartMove",I.TASK_AREA_PROCESS_MOVE="taskAreaProcessMove",I.TASK_AREA_END_MOVE="taskAreaEndMove",I.TASK_AREA_ZOOM_IN="taskAreaZoomIn",I.TASK_AREA_ZOOM_OUT="taskAreaZoomOut",I.CONTEXTMENU_SHOW="contextMenuShow",I.CONTEXTMENU_HIDE="contextMenuHide",I.DEPENDENCY_SELECTION="dependencySelection",I.STATE_EXIT="stateExit",I.TASK_SELECTION="taskSelection",I.TASK_EDIT_START="taskEditStart",I.TASK_EDIT_END="taskEditEnd",I.TASK_LEAVE="taskLeave",I.TASK_PROCESS_MOVE="taskProcessMove",I.TASK_END_MOVE="taskEndMove",I.TASK_PROCESS_PROGRESS="taskProcessProgress",I.TASK_END_PROGRESS="taskEndProgress",I.TASK_PROCESS_START="taskProcessStart",I.TASK_CONFIRM_START="taskConfirmStart",I.TASK_PROCESS_END="taskProcessEnd",I.TASK_CONFIRM_END="taskConfirmEnd",I.GET_DEPENDENCY_POINTS="getDependencyPoints",I.DEPENDENCY_START="dependencyStart",I.DEPENDENCY_PROCESS="dependencyProcess",I.DEPENDENCY_END="dependencyEnd",I.TASK_AREA_KEY_DOWN="taskAreaKeyDown",I.GET_POINTERS_INFO="getPointersInfo",I.GET_COORDINATES_REF_POINT="getCoordinatesRefPoint",I}();u.TaskAreaStateEventNames=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.HistoryItem=void 0;var c=function(){function I(C){this.setModelManipulator(C)}return I.prototype.setModelManipulator=function(C){this.modelManipulator=C},Object.defineProperty(I.prototype,"keyUpdaters",{get:function(){return[]},enumerable:!1,configurable:!0}),I}();u.HistoryItem=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DateUtils=void 0;var c=o(4),I=function(){function C(){}var g;return C.getDaysInQuarter=function(a){var p=3*Math.floor(a.getMonth()/3);return[p,p+1,p+2].reduce(function(s,l){return s+C.getDaysInMonth(l,a.getFullYear())},0)},C.getDaysInMonth=function(a,p){return new Date(p,a+1,0).getDate()},C.getOffsetInMonths=function(a,p){return 12*(p.getFullYear()-a.getFullYear())+p.getMonth()-a.getMonth()},C.getOffsetInQuarters=function(a,p){return 4*(p.getFullYear()-a.getFullYear())+Math.floor(p.getMonth()/3)-Math.floor(a.getMonth()/3)},C.getNearestScaleTickDate=function(a,p,s,l){var d=new Date,h=p.start.getTime(),v=p.end.getTime();if(d.setTime(a.getTime()),a.getTime()<h)d.setTime(h);else if(a.getTime()>v)d.setTime(v);else if(this.needCorrectDate(a,h,s,l)){var x=this.getNearestLeftTickTime(a,h,s,l),b=this.getNextTickTime(x,s,l);Math.abs(a.getTime()-x)>Math.abs(a.getTime()-b)?d.setTime(b):d.setTime(x)}return d},C.needCorrectDate=function(a,p,s,l){return l==c.ViewType.Months?a.getTime()!==new Date(a.getFullYear(),a.getMonth(),1).getTime():(a.getTime()-p)%s!=0},C.getNearestLeftTickTime=function(a,p,s,l){return l==c.ViewType.Months?new Date(a.getFullYear(),a.getMonth(),1).getTime():p+Math.floor((a.getTime()-p)/s)*s},C.getNextTickTime=function(a,p,s){if(s==c.ViewType.Months){var l=new Date;return l.setTime(a),l.setMonth(l.getMonth()+1),l.getTime()}return a+p},C.adjustStartDateByViewType=function(a,p,s){switch(void 0===s&&(s=0),p){case c.ViewType.TenMinutes:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours());case c.ViewType.SixHours:case c.ViewType.Hours:return new Date(a.getFullYear(),a.getMonth(),a.getDate());case c.ViewType.Days:case c.ViewType.Weeks:return new Date(a.getFullYear(),a.getMonth(),a.getDate()-a.getDay()+s);case c.ViewType.Months:case c.ViewType.Quarter:case c.ViewType.Years:return new Date(a.getFullYear(),0,1);default:return new Date}},C.adjustEndDateByViewType=function(a,p,s){switch(void 0===s&&(s=0),p){case c.ViewType.TenMinutes:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours()+1);case c.ViewType.SixHours:case c.ViewType.Hours:return new Date(a.getFullYear(),a.getMonth(),a.getDate()+1);case c.ViewType.Days:case c.ViewType.Weeks:return new Date(a.getFullYear(),a.getMonth(),a.getDate()+7-a.getDay()+s);case c.ViewType.Months:case c.ViewType.Quarter:case c.ViewType.Years:return new Date(a.getFullYear()+1,0,1);default:return new Date}},C.roundStartDate=function(a,p){switch(p){case c.ViewType.TenMinutes:case c.ViewType.Hours:return new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours()-1);case c.ViewType.SixHours:case c.ViewType.Days:return new Date(a.getFullYear(),a.getMonth(),a.getDate()-1);case c.ViewType.Weeks:return new Date(a.getFullYear(),a.getMonth(),a.getDate()-a.getDay());case c.ViewType.Months:return new Date(a.getFullYear(),a.getMonth()-1);case c.ViewType.Quarter:case c.ViewType.Years:return new Date(a.getFullYear()-1,0,1);default:return new Date}},C.getTickTimeSpan=function(a){switch(a){case c.ViewType.TenMinutes:return C.msPerHour/6;case c.ViewType.Hours:return C.msPerHour;case c.ViewType.SixHours:return 6*C.msPerHour;case c.ViewType.Days:return C.msPerDay;case c.ViewType.Weeks:return C.msPerWeek;case c.ViewType.Months:return C.msPerMonth;case c.ViewType.Quarter:return 3*C.msPerMonth;case c.ViewType.Years:return C.msPerYear}},C.getRangeTickCount=function(a,p,s){return s===c.ViewType.Months?this.getRangeTickCountInMonthsViewType(a,p):s===c.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(a,p):C.getRangeMSPeriod(a,p)/C.getTickTimeSpan(s)},C.getRangeMSPeriod=function(a,p){return p.getTime()-C.getDSTDelta(a,p)-a.getTime()},C.getRangeTickCountInMonthsViewType=function(a,p){var s=new Date(a.getFullYear(),a.getMonth(),1),l=new Date(p.getFullYear(),p.getMonth(),1);return C.getOffsetInMonths(s,l)+(p.getTime()-l.getTime())/(C.getDaysInMonth(p.getMonth(),p.getFullYear())*C.msPerDay)-(a.getTime()-s.getTime())/(C.getDaysInMonth(a.getMonth(),a.getFullYear())*C.msPerDay)},C.getRangeTickCountInQuarterViewType=function(a,p){var s=new Date(a.getFullYear(),3*Math.floor(a.getMonth()/3),1),l=new Date(p.getFullYear(),3*Math.floor(p.getMonth()/3),1);return C.getOffsetInQuarters(s,l)+(p.getTime()-l.getTime())/(C.getDaysInQuarter(l)*C.msPerDay)-(a.getTime()-s.getTime())/(C.getDaysInQuarter(s)*C.msPerDay)},C.parse=function(a){return"function"==typeof a?new Date(a()):new Date(a)},C.getOrCreateUTCDate=function(a){var p=a.getTimezoneOffset();return p?new Date(a.valueOf()+6e4*p):a},C.getTimezoneOffsetDiff=function(a,p){return p.getTimezoneOffset()-a.getTimezoneOffset()},C.getDSTDelta=function(a,p){var s=C.getTimezoneOffsetDiff(a,p)*C.msPerMinute;return s>0?s:0},C.getDSTCorrectedTaskEnd=function(a,p){var s=a.getTime()+p,l=C.getDSTDelta(a,new Date(s));return new Date(s+l)},C.msPerMinute=6e4,C.msPerWeek=7*(C.msPerDay=24*(C.msPerHour=36e5)),C.msPerMonth=30*C.msPerDay,C.msPerYear=365*C.msPerDay,C.ViewTypeToScaleMap=((g={})[c.ViewType.TenMinutes]=c.ViewType.Hours,g[c.ViewType.Hours]=c.ViewType.Days,g[c.ViewType.SixHours]=c.ViewType.Days,g[c.ViewType.Days]=c.ViewType.Weeks,g[c.ViewType.Weeks]=c.ViewType.Months,g[c.ViewType.Months]=c.ViewType.Years,g[c.ViewType.Quarter]=c.ViewType.Years,g[c.ViewType.Years]=c.ViewType.FiveYears,g),C}();u.DateUtils=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RenderElementUtils=void 0;var c=function(){function I(){}return I.create=function(C,g,a,p){var s=document.createElement("DIV");for(var l in C.assignToElement(s),a.appendChild(s),p&&(p instanceof Array&&null!==g?p[g]=s:p[C.id]=s),C.attr)Object.prototype.hasOwnProperty.call(C.attr,l)&&s.setAttribute(l,C.attr[l]);for(var l in C.style)Object.prototype.hasOwnProperty.call(C.style,l)&&(s.style[l]=C.style[l]);return s},I.remove=function(C,g,a,p){var s;p instanceof Array&&null!==g?(s=p[g],delete p[g]):(s=p[C.id],delete p[C.id]),s&&s.parentNode==a&&a.removeChild(s)},I.recreate=function(C,g,a,p){C.filter(function(s){return-1===g.indexOf(s)}).forEach(function(s){a(s)}),g.filter(function(s){return-1===C.indexOf(s)}).forEach(function(s){p(s)})},I}();u.RenderElementUtils=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Color=void 0;var c=o(1),I=function(){function C(g){this._num=null,this._opacity=1,this._rgb=null,this.assign(g)}return Object.defineProperty(C.prototype,"opacity",{get:function(){return this._opacity},enumerable:!1,configurable:!0}),C.prototype.hasValue=function(){return(0,c.isDefined)(this._num)||!!this._rgb||0===this._opacity},C.prototype.getValue=function(){return!(0===this._opacity&&!this._rgb)&&((0,c.isDefined)(this._num)?this._num:this._rgb?this.getRBGColor():null)},C.prototype.assign=function(g){this.reset(),"string"==typeof g&&this.assignFromString(g),"number"==typeof g&&(this._num=g),g instanceof Array&&this.assignFromRgbArray(g),g instanceof C&&this.assignFromColor(g)},C.prototype.reset=function(){this._opacity=1,this._num=null,this._rgb=null},C.prototype.assignFromString=function(g){g&&("transparent"===g&&(this._opacity=0),0===g.indexOf("#")&&this.assignFromHexString(g),"rgb"===g.substr(0,3).toLowerCase()&&this.assignFromRgbString(g))},C.prototype.assignFromHexString=function(g){if(4===g.length&&(g="#"+g[1].repeat(2)+g[2].repeat(2)+g[3].repeat(2)),g.length>6){var a=parseInt(g.substr(1,2),16),p=parseInt(g.substr(3,2),16),s=parseInt(g.substr(5,2),16);this._rgb=[a,p,s]}},C.prototype.assignFromRgbString=function(g){var a="rgba"===g.substr(0,4).toLowerCase(),p=g.toLowerCase().match(a?C.rgbaRegexp:C.rgbRegexp);if(p){var s=parseInt(p[1]),l=parseInt(p[2]),d=parseInt(p[3]);this._rgb=[s,l,d],a&&(this._opacity=parseFloat(p[4]))}},C.prototype.assignFromRgbArray=function(g){g&&g.length>2&&(this._rgb=[g[0],g[1],g[2]],(0,c.isDefined)(g[3])&&(this._opacity=g[3]))},C.prototype.assignFromColor=function(g){this._opacity=g._opacity,this._num=g._num,this._rgb=g._rgb},C.prototype.getRBGColor=function(){return this._rgb?this._rgb:[0,0,0]},C.prototype.applyOpacityToBackground=function(g){if(1!==this._opacity){var a=(g instanceof C?g:new C(g)).getValue();if(a instanceof Array){var p=this.opacity,s=Math.round((1-p)*a[0]+p*this._rgb[0]),l=Math.round((1-p)*a[1]+p*this._rgb[1]),d=Math.round((1-p)*a[2]+p*this._rgb[2]);this._rgb=[s,l,d]}}},C.rgbRegexp=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/,C.rgbaRegexp=/rgba?\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*,?\s*([0-9]*\.?[0-9]*)\s*\)/,C}();u.Color=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.MathUtils=void 0;var c=o(82),I=function(){function C(){}return C.round=function(g,a){void 0===a&&(a=0);var p=C.powFactor[a];return Math.round(g*p)/p},C.numberCloseTo=function(g,a,p){return void 0===p&&(p=1e-5),Math.abs(g-a)<p},C.restrictValue=function(g,a,p){return p<a&&(p=a),g>p?p:g<a?a:g},C.getRandomInt=function(g,a){return Math.floor(Math.random()*(a-g+1))+g},C.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(g){var a=16*Math.random()|0;return("x"===g?a:3&a|8).toString(16)})},C.powFactor=c.ListUtils.initByCallback(20,function(g){return Math.pow(10,g)}),C.somePrimes=[1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003],C}();u.MathUtils=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DateRange=void 0;var c=function(){function I(C,g){this.start=C,this.end=g}return I.prototype.equal=function(C){var g=!0;return(g=g&&this.start.getTime()===C.start.getTime())&&this.end.getTime()===C.end.getTime()},I}();u.DateRange=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DialogBase=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.isApiCall=!1,s._canRefresh=!0,s}return c.__extends(p,a),p.prototype.execute=function(s,l){return void 0===s&&(s=void 0),void 0===l&&(l=!1),this.isApiCall=l,a.prototype.execute.call(this,s)},p.prototype.executeInternal=function(s){return this.options=s,this.showDialog(s)},Object.defineProperty(p.prototype,"canRefresh",{get:function(){return this._canRefresh},enumerable:!1,configurable:!0}),p.prototype.refresh=function(){this.showDialog(this.options)},p.prototype.showDialog=function(s){var l=this,d=this.createParameters(s),h=d.clone();return!!this.onBeforeDialogShow(d)&&(p.activeInstance=this,this.control.showDialog(this.getDialogName(),d,function(v){v&&(l._canRefresh=!1,l.applyParameters(v,h),l._canRefresh=!0)},function(){delete p.activeInstance,l.afterClosing()}),!0)},p.prototype.onBeforeDialogShow=function(s){return!0},p.prototype.applyParameters=function(s,l){return!1},p.prototype.afterClosing=function(){},p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.activeInstance=null,p}(I.CommandBase);u.DialogBase=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceCollection=void 0;var c=o(0),I=o(22),C=o(48),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.Resource},p}(I.CollectionBase);u.ResourceCollection=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CollectionBase=void 0;var c=o(1),I=o(80),C=function(){function g(){this._items=new Array,this._isGanttCollection=!0}return g.prototype.add=function(a){if((0,c.isDefined)(a)){if(this.getItemById(a.internalId))throw"The collection item with id ='"+a.internalId+"' already exists.";this._addItem(a)}},g.prototype.addRange=function(a){for(var p=0;p<a.length;p++)this.add(a[p])},g.prototype.remove=function(a){var p=this._items.indexOf(a);p>-1&&p<this._items.length&&this._removeItems(p,1)},g.prototype.clear=function(){this._removeItems(0,this._items.length)},g.prototype.invalidate=function(){delete this._invertedItems},g.prototype._addItem=function(a){this._items.push(a),delete this._invertedItems},g.prototype._removeItems=function(a,p){this._items.splice(a,p),delete this._invertedItems},Object.defineProperty(g.prototype,"items",{get:function(){return this._items.slice()},set:function(a){a&&(this._items=a.slice())},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this._items.length},enumerable:!1,configurable:!0}),g.prototype.getItem=function(a){return a>-1&&a<this._items.length?this._items[a]:null},Object.defineProperty(g.prototype,"invertedItems",{get:function(){var a;return null!==(a=this._invertedItems)&&void 0!==a||(this._invertedItems=this._createInvertedItems()),this._invertedItems},enumerable:!1,configurable:!0}),g.prototype._createInvertedItems=function(){for(var a={},p=0;p<this._items.length;p++){var s=this._items[p];a[s.internalId]=s}return a},g.prototype.getItemById=function(a){return this.invertedItems[a]},g.prototype.getItemByPublicId=function(a){return this._items.filter(function(p){return p.id===a||p.id.toString()===a})[0]},g.prototype.assign=function(a){(0,c.isDefined)(a)&&(this.items=a.items)},g.prototype.importFromObject=function(a){(0,c.isDefined)(a)&&(this.clear(),a._isGanttCollection?this.assign(a):a instanceof Array?this.importFromArray(a):this.createItemFromObjectAndAdd(a))},g.prototype.createItemFromObjectAndAdd=function(a){if((0,c.isDefined)(a)&&Object.keys(a).length>0){var p=this.createItem();p.assignFromObject(a),this.add(p)}},g.prototype.importFromArray=function(a){for(var p=0;p<a.length;p++)this.createItemFromObjectAndAdd(a[p])},g.prototype.importFromJSON=function(a){this.importFromObject(I.GanttJsonUtils.parseJson(a))},g}();u.CollectionBase=C},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.DependencyType=u.TaskType=void 0,(c=u.TaskType||(u.TaskType={}))[c.Regular=0]="Regular",c[c.Summary=1]="Summary",c[c.Milestone=2]="Milestone",function(c){c[c.FS=0]="FS",c[c.SS=1]="SS",c[c.FF=2]="FF",c[c.SF=3]="SF"}(u.DependencyType||(u.DependencyType={}))},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskCommandBase=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.isApiCall=!1,s}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(this.isEnabled());return s.visible=this.control.settings.editing.enabled&&!this.control.taskEditController.dependencyId,s},p.prototype.updateParent=function(s){this.validationController._parentAutoCalc&&s&&s.children.length>0&&this.control.validationController.updateParentsIfRequired(s.children[0].task.internalId)},p}(I.CommandBase);u.TaskCommandBase=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GridLayoutCalculator=void 0;var c=o(12),I=o(19),C=o(4),g=o(58),a=o(5),p=o(15),s=o(59),l=o(23),d=o(129),h=o(1),v=function(){function x(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2,this._taskWrapperPoints=Array(),this._taskElementInfoList=Array(),this._scaleCalculator=new d.ScaleCalculator}return x.prototype.setSettings=function(b,y,E,S,O,w,T,k){void 0===T&&(T=0),void 0===k&&(k=0),this.visibleTaskAreaSize=b,this.tickSize=y,this._viewType=w,this.range=S,this.verticalTickCount=O.itemCount,this.viewModel=O,this.elementSizeValues=E,this.taskHeight=E.taskHeight,this.parentTaskHeight=E.parentTaskHeight,this.milestoneWidth=E.milestoneWidth,this.scaleHeight=E.scaleItemHeight,this.arrowSize=new c.Size(E.connectorArrowWidth,E.connectorArrowWidth),this.lineThickness=E.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=p.DateUtils.getTickTimeSpan(w),this.scrollBarHeight=T,this.createTileToNonWorkingIntervalsMap(),this._scaleCalculator.setSettings(S,w,y,k),this.reset()},Object.defineProperty(x.prototype,"viewType",{get:function(){return this._viewType},set:function(b){this._viewType!==b&&(this._viewType=b,this._scaleCalculator.setViewType(b))},enumerable:!1,configurable:!0}),x.prototype.reset=function(){this._taskWrapperPoints=new Array,this._taskElementInfoList=Array()},x.prototype.resetTaskInfo=function(b){delete this._taskWrapperPoints[b],delete this._taskElementInfoList[b]},x.prototype.getTaskAreaBorderInfo=function(b,y){var E=y?this.getVerticalGridLineHeight():this.getTotalWidth();return this.getGridBorderInfo(b,y,E)},x.prototype.getTotalWidth=function(){return this._scaleCalculator.scaleWidth},x.prototype.getScaleBorderInfo=function(b,y){var E=new g.GridElementInfo;return E.setPosition(new a.Point(this._scaleCalculator.getScaleBorderPosition(b,y),void 0)),E.setSize(new c.Size(0,this.scaleHeight)),E.className="dx-gantt-vb",E},x.prototype.getGridBorderInfo=function(b,y,E){var S=new g.GridElementInfo;return S.setPosition(this.getGridBorderPosition(b,y)),E&&S.setSize(this.getGridBorderSize(y,E)),S.className=y?"dx-gantt-vb":"dx-gantt-hb",S},x.prototype.getGridBorderPosition=function(b,y){var E=new a.Point(void 0,void 0),O=y?this._scaleCalculator.getScaleBorderPosition(b,this.viewType):(b+1)*this.tickSize.height;return y?E.x=O:E.y=O,E},x.prototype.getGridBorderSize=function(b,y){var E=new c.Size(0,0);return b?E.height=y:E.width=y,E},x.prototype.getScaleElementInfo=function(b,y){var E=new g.GridElementInfo,S=this.getScaleItemInfo(b,y);if(S){E.setPosition(S.position),E.setSize(S.size),E.className=this.getScaleItemClassName(y,E,this.getRenderedNoWorkingIntervals(E.position.x));var O=this._scaleCalculator.getScaleItems(y);(0===b||b===O.length-1)&&(E.style.overflowX="hidden",E.style.textOverflow="ellipsis"),E.additionalInfo.range=new I.DateRange(S.start,S.end)}return E},x.prototype.getScaleItemStart=function(b,y){return this._scaleCalculator.getScaleItemAdjustedStart(b,y)},x.prototype.getScaleItemClassName=function(b,y,E){var S="dx-gantt-si";return b.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(y,E)&&(S+=" dx-gantt-holiday-scaleItem"),S},x.prototype.getScaleItemInfo=function(b,y){return this._scaleCalculator.getScaleItem(b,y)},x.prototype.getScaleRangesInArea=function(b,y){var E=p.DateUtils.ViewTypeToScaleMap[this.viewType],S=this._scaleCalculator,O=Math.max(S.getScaleIndexByPos(b,E),0),w=S.getScaleIndexByPos(y,E);-1===w&&(w=S.topScaleItems.length-1);var T=Math.max(S.getScaleIndexByPos(b),0),k=S.getScaleIndexByPos(y);return-1===k&&(k=S.bottomScaleItems.length-1),[[O,w],[T,k]]},x.prototype.isScaleItemInsideNoWorkingInterval=function(b,y){for(var E=b.position.x,S=b.position.x+b.size.width,O=0;O<y.length;O++)if(E>=y[O].position.x&&S<=y[O].position.x+y[O].size.width)return!0;return!1},x.prototype.getScaleItemColSpan=function(b){return this._scaleCalculator.getScaleItemColSpan(b)},x.prototype.getTaskWrapperElementInfo=function(b){var y=new g.GridElementInfo;return y.className=this.getTaskWrapperClassName(b),y.setPosition(this.getTaskWrapperPoint(b)),y.setAttribute("task-index",b),y},x.prototype.getTaskWrapperClassName=function(b){var y="dx-gantt-taskWrapper",E=this.getViewItem(b);return E.task.isMilestone()&&!E.isCustom&&(y="dx-gantt-milestoneWrapper"),E.selected&&(y+=" dx-gantt-selectedTask"),y},x.prototype.getTaskWrapperPoint=function(b){if(!(0,h.isDefined)(this._taskWrapperPoints[b])){var y=this.getViewItem(b),E=this.getTaskHeight(b),S=b*this.tickSize.height+(this.tickSize.height-E)/2,O=new a.Point(this.getPosByDate(y.task.start),S);y.task.isMilestone()&&!y.isCustom&&(O.x-=E/2),this._taskWrapperPoints[b]=O}return this._taskWrapperPoints[b].clone()},x.prototype.getTaskElementInfo=function(b,y){if(void 0===y&&(y=!1),!(0,h.isDefined)(this._taskElementInfoList[b])){var E=new g.GridElementInfo,S=this.getTask(b),O=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(b);if(!S.isMilestone()){var w=this.getTaskWidth(b);E.size.width=this.getCorrectedTaskWidthByRange(b,w),E.size.width<w&&(E.additionalInfo.taskCut=!0),y&&(E.size.height=this.getTaskHeight(b))}E.className=this.getTaskClassName(b,E.size.width),S.color&&(E.style.backgroundColor=S.color,O&&(E.style.borderLeftColor=S.color,E.style.borderRightColor=S.color,E.style.borderTopColor=S.color)),this._taskElementInfoList[b]=E}return this._taskElementInfoList[b]},x.prototype.getTaskClassName=function(b,y){var E=x.taskClassName,S=this.getViewItem(b),O=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(b);return S.task.isMilestone()&&!S.isCustom?E+=" "+x.milestoneClassName:(y<=this.elementSizeValues.smallTaskWidth&&(E+=" "+x.smallTaskClassName),O&&(E+=this.getAutoCalcParentTaskClassName(S.task))),E},x.prototype.getAutoCalcParentTaskClassName=function(b){var y=" "+x.parentTaskClassName;return 0==b.progress&&(y+=" dx-gantt-noPrg"),b.progress>=100&&(y+=" dx-gantt-cmpl"),y},x.prototype.getTaskPoint=function(b){var y=this.getTaskWrapperPoint(b);return this.getTask(b).isMilestone()||(y.y+=this.elementSizeValues.taskWrapperTopPadding),y},x.prototype.getTaskSize=function(b){return new c.Size(this.getTaskWidth(b),this.getTaskHeight(b))},x.prototype.getTaskWidth=function(b){var y=this.getViewItem(b);return y.isCustom&&y.size.width?y.size.width:y.task.isMilestone()&&!y.isCustom?this.getTaskHeight(b):Math.max(this.getWidthByDateRange(y.task.start,y.task.end),this.minTaskWidth)},x.prototype.getTaskHeight=function(b){var y=this.getViewItem(b);return y.task.isMilestone()&&!y.isCustom?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(y.task.internalId)?this.parentTaskHeight:y.isCustom&&y.size.height?y.size.height:this.taskHeight},x.prototype.getTask=function(b){return this.getViewItem(b)?.task},x.prototype.getViewItem=function(b){return this.viewModel.items[b]},x.prototype.getTaskProgressElementInfo=function(b){var y=new g.GridElementInfo;return y.className=x.taskProgressClassName,y.setSize(this.getTaskProgressSize(b)),y},x.prototype.getTaskProgressSize=function(b){var y=this.getTaskProgressWidth(b);return this.isTaskCutByRange(b)&&(y=this.getCorrectedTaskWidthByRange(b,y)),new c.Size(y,0)},x.prototype.getTaskProgressWidth=function(b){return this.getTaskWidth(b)*this.getTask(b).normalizedProgress/100},x.prototype.getTaskTextElementInfo=function(b,y){var E=new g.GridElementInfo;if(E.className=this.getTaskTextElementClassName(y),!y){var S=this.getTaskPoint(b).x;if(S<this.elementSizeValues.outsideTaskTextDefaultWidth){var O=Math.max(S,0);E.size.width=O,O>0?E.margins.left=-O:E.additionalInfo.hidden=!0}}return E},x.prototype.getTaskTextElementClassName=function(b){return x.taskTitleClassName.concat(" ",b?x.titleInClassName:x.titleOutClassName)},x.prototype.getTaskResourcesWrapperElementInfo=function(b){var y=new g.GridElementInfo,E=this.getTaskSize(b).width;return y.className="dx-gantt-taskResWrapper",y.setPosition(this.getTaskWrapperPoint(b)),y.position.x=y.position.x+E,y},x.prototype.getTaskResourceElementInfo=function(){var b=new g.GridElementInfo;return b.className=x.taskResourceClassName,b},x.prototype.getSelectionElementInfo=function(b){return this.getRowElementInfo(b,"dx-gantt-sel")},x.prototype.getSelectionPosition=function(b){var y=new a.Point(void 0,void 0);return y.y=b*this.tickSize.height,y},x.prototype.getSelectionSize=function(){return new c.Size(this.getTotalWidth(),this.tickSize.height)},x.prototype.getHighlightRowInfo=function(b){return this.getRowElementInfo(b,"dx-gantt-altRow")},x.prototype.getRowElementInfo=function(b,y){var E=new g.GridElementInfo;return E.className=y,E.setPosition(this.getSelectionPosition(b)),E.setSize(this.getSelectionSize()),E},x.prototype.getNoWorkingIntervalInfo=function(b){var y=new g.GridElementInfo;return y.className="dx-gantt-nwi",y.setPosition(this.getNoWorkingIntervalPosition(b.start)),y.setSize(this.getNoWorkingIntervalSize(b)),y},x.prototype.getNoWorkingIntervalPosition=function(b){var y=new a.Point(void 0,void 0);return y.x=this.getPosByDate(b),y},x.prototype.getNoWorkingIntervalSize=function(b){return new c.Size(this.getWidthByDateRange(b.start,b.end),this.getVerticalGridLineHeight())},x.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},x.prototype.getConnectorInfo=function(b,y,E,S){for(var O=new Array,w=this.getConnectorPoints(y,E,S),T=0;T<w.length-1;T++)O.push(this.getConnectorLineInfo(b,w[T],w[T+1],0==T||T==w.length-2));return O.push(this.getArrowInfo(b,w,O,y,E)),this.checkAndCorrectConnectorLinesByRange(O),O.filter(function(k){return!!k})},x.prototype.getConnectorLineInfo=function(b,y,E,S){var O=new g.GridElementInfo,w=y.x==E.x;return O.className=this.getConnectorClassName(w),O.setPosition(this.getConnectorPosition(y,E)),O.setSize(this.getConnectorSize(y,E,w,S)),O.setAttribute("dependency-id",b),O},x.prototype.getConnectorClassName=function(b){return b?x.CLASSNAMES.CONNECTOR_VERTICAL:x.CLASSNAMES.CONNECTOR_HORIZONTAL},x.prototype.getConnectorPosition=function(b,y){return new a.Point(Math.min(b.x,y.x),Math.min(b.y,y.y))},x.prototype.getConnectorSize=function(b,y,E,S){var O=new c.Size(0,0),w=S?0:1;return E?O.height=Math.abs(y.y-b.y)+w:O.width=Math.abs(y.x-b.x)+w,O},x.prototype.getArrowInfo=function(b,y,E,S,O){var w=new g.GridElementInfo,T=this.findArrowLineInfo(E,S,O),k=this.getArrowPosition(y,S,O);return w.className=this.getArrowClassName(k),w.setPosition(this.getArrowPoint(T,k)),w.setAttribute("dependency-id",b),w},x.prototype.findArrowLineInfo=function(b,y,E){return b[y<E?b.length-1:0]},x.prototype.getArrowPosition=function(b,y,E){var S=b[y<E?b.length-2:1],O=b[y<E?b.length-1:0];return S.x==O.x?S.y>O.y?C.Position.Top:C.Position.Bottom:S.x>O.x?C.Position.Left:C.Position.Right},x.prototype.getArrowClassName=function(b){var y=x.arrowClassName;switch(b){case C.Position.Left:y=y.concat(" ",x.leftArrowClassName);break;case C.Position.Top:y=y.concat(" ",x.topArrowClassName);break;case C.Position.Right:y=y.concat(" ",x.rightArrowClassName);break;case C.Position.Bottom:y=y.concat(" ",x.bottomArrowClassName)}return y},x.prototype.getArrowPositionByClassName=function(b){return b.indexOf(x.leftArrowClassName)>-1?C.Position.Left:b.indexOf(x.topArrowClassName)>-1?C.Position.Top:b.indexOf(x.rightArrowClassName)>-1?C.Position.Right:b.indexOf(x.bottomArrowClassName)>-1?C.Position.Bottom:void 0},x.prototype.getArrowPoint=function(b,y){return new a.Point(this.getArrowX(b,y),this.getArrowY(b,y))},x.prototype.getArrowX=function(b,y){switch(y){case C.Position.Left:return b.position.x-this.arrowSize.width/2;case C.Position.Right:return b.position.x+b.size.width-this.arrowSize.width/2;case C.Position.Top:case C.Position.Bottom:return b.position.x-(this.arrowSize.width-this.lineThickness)/2}},x.prototype.getArrowY=function(b,y){switch(y){case C.Position.Top:return b.position.y-this.arrowSize.height/2;case C.Position.Bottom:return b.position.y+b.size.height-this.arrowSize.height/2;case C.Position.Left:case C.Position.Right:return b.position.y-(this.arrowSize.height-this.lineThickness)/2}},x.prototype.getPosByDate=function(b){return this.getWidthByDateRange(this.range.start,b)},x.prototype.getWidthByDateRange=function(b,y){return p.DateUtils.getRangeTickCount(b,y,this.viewType)*this.tickSize.width},x.prototype.getDateByPos=function(b){if(this.viewType===C.ViewType.Months||this.viewType===C.ViewType.Quarter)return this.getDateByPosInMonthBasedViewTypes(b);var y=b/this.tickSize.width,E=new Date(this.range.start);return p.DateUtils.getDSTCorrectedTaskEnd(E,y*this.tickTimeSpan)},x.prototype.getDateByPosInMonthBasedViewTypes=function(b){return this._scaleCalculator.getDateInScale(b)},x.prototype.getConnectorPoints=function(b,y,E){switch(E){case l.DependencyType.FS:return this.getFinishToStartConnectorPoints(b,y);case l.DependencyType.SF:return this.getStartToFinishConnectorPoints(b,y);case l.DependencyType.SS:return this.getStartToStartConnectorPoints(b,y);case l.DependencyType.FF:return this.getFinishToFinishConnectorPoints(b,y);default:return new Array}},x.prototype.getFinishToStartConnectorPoints=function(b,y){return b<y?this.getTask(b).end<=this.getTask(y).start?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide(b,y,!1):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(b,y,!1):this.getTask(b).end<=this.getTask(y).start?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide(y,b,!1):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(y,b,!0)},x.prototype.getFinishToFinishConnectorPoints=function(b,y){return b<y?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(b,y):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(y,b)},x.prototype.getStartToStartConnectorPoints=function(b,y){return b<y?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(b,y):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(y,b)},x.prototype.getStartToFinishConnectorPoints=function(b,y){return b<y?this.getTask(b).start>=this.getTask(y).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(b,y,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(b,y,!1):this.getTask(b).start>=this.getTask(y).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(y,b,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(y,b,!0)},x.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskRightCenter(O,b),k=this.getTask(y).isMilestone(),R=this.getTaskTopCenter(w,y),P=this.getHorizontalIndentFromTaskEdge(y,E);return S.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),S.push(new a.Point(Math.floor(k?R.x:w.x+P),Math.floor(S[0].y))),S.push(new a.Point(Math.floor(S[1].x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(b,y){var E=new Array,S=this.getTaskPoint(b),O=this.getTaskPoint(y),w=this.getTaskRightCenter(S,b),T=this.getTaskRightCenter(O,y);return E.push(new a.Point(Math.floor(w.x),Math.floor(w.y))),E.push(new a.Point(Math.floor(Math.max(w.x,T.x)+this.minLineLength),Math.floor(E[0].y))),E.push(new a.Point(Math.floor(E[1].x),Math.floor(T.y))),E.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),E},x.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskRightCenter(O,b),k=this.getTaskBottomCenter(O,b),R=this.getTaskLeftCenter(w,y),P=this.getTaskTopCenter(w,y),B=this.getViewItem(E?b:y),W=B.isCustom?(this.tickSize.height-B.size.height)/2:this.minConnectorSpaceFromTask;return S.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),S.push(new a.Point(Math.floor(S[0].x+this.minLineLength),Math.floor(S[0].y))),S.push(new a.Point(Math.floor(S[1].x),Math.floor(E?k.y+W:P.y-W))),S.push(new a.Point(Math.floor(R.x-this.minLineLength),Math.floor(S[2].y))),S.push(new a.Point(Math.floor(S[3].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskBottomCenter(O,b),k=this.getTask(b).isMilestone(),R=this.getTaskRightCenter(w,y),P=this.getHorizontalIndentFromTaskEdge(b,E);return S.push(new a.Point(Math.floor(k?T.x:O.x+P),Math.floor(T.y))),S.push(new a.Point(Math.floor(S[0].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskBottomCenter(O,b),k=this.getTask(b).isMilestone(),R=this.getTaskLeftCenter(w,y),P=this.getHorizontalIndentFromTaskEdge(b,E);return S.push(new a.Point(Math.floor(k?T.x:O.x+P),Math.floor(T.y))),S.push(new a.Point(Math.floor(S[0].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskLeftCenter(O,b),k=this.getTaskTopCenter(w,y),R=this.getTask(y).isMilestone(),P=this.getHorizontalIndentFromTaskEdge(y,E);return S.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),S.push(new a.Point(Math.floor(R?k.x:w.x+P),Math.floor(S[0].y))),S.push(new a.Point(Math.floor(S[1].x),Math.floor(k.y))),S},x.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(b,y,E){var S=new Array,O=this.getTaskPoint(b),w=this.getTaskPoint(y),T=this.getTaskLeftCenter(O,b),k=this.getTaskBottomCenter(O,b),R=this.getTaskRightCenter(w,y),P=this.getTaskTopCenter(w,y),B=this.getViewItem(E?b:y),W=B.isCustom?(this.tickSize.height-B.size.height)/2:this.minConnectorSpaceFromTask;return S.push(new a.Point(Math.floor(T.x),T.y)),S.push(new a.Point(Math.floor(S[0].x-this.minLineLength),S[0].y)),S.push(new a.Point(Math.floor(S[1].x),Math.floor(E?k.y+W:P.y-W))),S.push(new a.Point(Math.floor(R.x+this.minLineLength),Math.floor(S[2].y))),S.push(new a.Point(Math.floor(S[3].x),Math.floor(R.y))),S.push(new a.Point(Math.floor(R.x),Math.floor(R.y))),S},x.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(b,y){var E=new Array,S=this.getTaskPoint(b),O=this.getTaskPoint(y),w=this.getTaskLeftCenter(S,b),T=this.getTaskLeftCenter(O,y);return E.push(new a.Point(Math.floor(w.x),Math.floor(w.y))),E.push(new a.Point(Math.floor(Math.min(w.x,T.x)-this.minLineLength),Math.floor(E[0].y))),E.push(new a.Point(Math.floor(E[1].x),Math.floor(T.y))),E.push(new a.Point(Math.floor(T.x),Math.floor(T.y))),E},x.prototype.getTaskSidePoints=function(b){var y=this.getTaskPoint(b);return[this.getTaskLeftCenter(y,b),this.getTaskTopCenter(y,b),this.getTaskRightCenter(y,b),this.getTaskBottomCenter(y,b)]},x.prototype.getTaskLeftCenter=function(b,y){return new a.Point(b.x-this.getTaskEdgeCorrection(y),b.y+this.getTaskHeight(y)/2)},x.prototype.getTaskRightCenter=function(b,y){return new a.Point(b.x+this.getTaskWidth(y)+this.getTaskEdgeCorrection(y),b.y+this.getTaskHeight(y)/2)},x.prototype.getTaskTopCenter=function(b,y){return new a.Point(b.x+this.getTaskWidth(y)/2,b.y-this.getTaskEdgeCorrection(y))},x.prototype.getTaskBottomCenter=function(b,y){return new a.Point(b.x+this.getTaskWidth(y)/2,b.y+this.getTaskHeight(y)+this.getTaskEdgeCorrection(y))},x.prototype.getTaskEdgeCorrection=function(b){var y=this.getViewItem(b);return y.task.isMilestone()&&!y.isCustom?this.getTaskHeight(b)*(Math.sqrt(2)-1)/2:0},x.prototype.getHorizontalIndentFromTaskEdge=function(b,y){void 0===y&&(y=!1);var E=this.getTaskWidth(b),S=this.minLineLength<E/3?this.minLineLength:.2*E;return y?E-S:S},x.prototype.getRenderedRowColumnIndices=function(b,y){for(var E=y?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width,S=y?this.getFirstVisibleGridCellIndex(b,this.tickSize.height):this.getFirstScaleVisibleIndex(b),O=y?this.getLastVisibleGridCellIndex(b,this.tickSize.height,E,this.verticalTickCount):this.getLastScaleVisibleIndex(b),w=new Array,T=S;T<=O;T++)w.push(T);return w},x.prototype.getRenderedScaleItemIndices=function(b,y){for(var E=b===this.viewType,S=this._scaleCalculator,O=y[0],w=y[y.length-1],T=E?O:S.getTopScaleIndexByBottomIndex(O),k=E?w:S.getTopScaleIndexByBottomIndex(w),R=new Array,P=T;P<=k;P++)R.push(P);return R},x.prototype.getFirstScaleVisibleIndex=function(b){return this._scaleCalculator.getFirstScaleIndexForRender(b)},x.prototype.getLastScaleVisibleIndex=function(b){return this._scaleCalculator.getLastScaleIndexForRender(b+this.visibleTaskAreaSize.width)},x.prototype.getFirstVisibleGridCellIndex=function(b,y){var E=Math.floor(b/y);return Math.max(E-10,0)},x.prototype.getLastVisibleGridCellIndex=function(b,y,E,S){var O=Math.floor((b+E)/y);return Math.min(O+10,S-1)},x.prototype.createTileToConnectorLinesMap=function(){this.tileToDependencyMap=[];for(var b=0;b<this.viewModel.items.length;b++)for(var y=0;y<this.viewModel.items[b].dependencies.length;y++)this.createConnecotInfo(this.viewModel.items[b].dependencies[y],this.viewModel.items[b].visibleIndex)},x.prototype.updateTileToConnectorLinesMap=function(b){this.tileToDependencyMap.forEach(function(O,w,T){T[w]=O.filter(function(k){return k.attr["dependency-id"]!=b})});var y=[],E=this.viewModel.items.filter(function(O){return O.dependencies.filter(function(w){return w.id==b}).length>0})[0];if(E){var S=E.dependencies.filter(function(O){return O.id===b})[0];y=this.createConnecotInfo(S,E.visibleIndex)}return y},x.prototype.createConnecotInfo=function(b,y){var E=this,T=this.getConnectorInfo(b.id,b.predecessor.visibleIndex,y,b.type);return T.forEach(function(k){E.addElementInfoToTileMap(k,E.tileToDependencyMap,!0)}),T},x.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var b=0;b<this.viewModel.noWorkingIntervals.length;b++){var y=this.getAdjustedNoWorkingInterval(this.viewModel.noWorkingIntervals[b]);if(y){var E=this.getNoWorkingIntervalInfo(y);this.addElementInfoToTileMap(E,this.tileToNoWorkingIntervalsMap,!1)}}},x.prototype.getAdjustedNoWorkingInterval=function(b){return b.end.getTime()-b.start.getTime()<this.tickTimeSpan-1?null:new I.DateRange(p.DateUtils.getNearestScaleTickDate(b.start,this.range,this.tickTimeSpan,this.viewType),p.DateUtils.getNearestScaleTickDate(b.end,this.range,this.tickTimeSpan,this.viewType))},x.prototype.addElementInfoToTileMap=function(b,y,E){var S=E?b.position.y:b.position.x,O=E?b.size.height:b.size.width,w=2*(E?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width);if(w>0)for(var T=Math.floor(S/w),k=Math.floor((S+O)/w),R=T;R<=k;R++)y[R]||(y[R]=new Array),y[R].push(b)},x.prototype.getRenderedConnectorLines=function(b){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,b)},x.prototype.getRenderedNoWorkingIntervals=function(b){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,b)},x.prototype.getRenderedStripLines=function(b){var y=new Array,E=b.stripLines.map(function(P){return P.clone()});b.showCurrentTime&&E.push(new s.StripLine(new Date,null,b.currentTimeTitle,b.currentTimeCssClass,!0));for(var S=0,O=void 0;O=E[S];S++){var w=p.DateUtils.parse(O.start),T=O.end?p.DateUtils.parse(O.end):null;if(w>=this.range.start&&w<=this.range.end||T&&T>=this.range.start&&T<=this.range.end){var k=w>this.range.start?w:this.range.start,R=new g.GridElementInfo;R.size.height=this.getVerticalGridLineHeight(),R.position.x=this.getPosByDate(k),R.size.width=T?this.getWidthByDateRange(k,T<this.range.end?T:this.range.end):0,R.className=O.isCurrent?"dx-gantt-tc":T?"dx-gantt-ti":"dx-gantt-tm",R.className+=O.cssClass?" "+O.cssClass:"",R.attr.title=O.title,y.push(R)}}return y},x.prototype.getElementsInRenderedTiles=function(b,y,E){var S=new Array,O=y?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width;if(O>0)for(var w=Math.floor(E/(2*O)),T=Math.floor((E+O)/(2*O)),k=w;k<=T;k++)b[k]&&b[k].forEach(function(R){-1===S.indexOf(R)&&S.push(R)});return S},x.prototype.isTaskInRenderedRange=function(b){var y=this.getViewItem(b),E=this.getTaskPoint(b);return y.task.isMilestone()?E.x+this.getTaskWidth(b)<this.getTotalWidth():E.x<this.getTotalWidth()},x.prototype.isTaskCutByRange=function(b){return!!this.getTaskElementInfo(b).additionalInfo.taskCut},x.prototype.checkAndCorrectElementDisplayByRange=function(b){b.parentElement.offsetLeft+b.offsetLeft+b.offsetWidth>this.getTotalWidth()&&(b.style.display="none")},x.prototype.checkAndCorrectArrowElementDisplayByRange=function(b){b.offsetLeft+b.offsetWidth>this.getTotalWidth()&&(b.style.display="none")},x.prototype.checkAndCorrectConnectorLinesByRange=function(b){if(b?.length)for(var y=this.getTotalWidth(),E=0;E<b.length;E++){var S=b[E],O=!S.size.width;S.position.x>y?delete b[E]:!O&&S.position.x+S.size.width>y&&(S.size.width=y-S.position.x)}},x.prototype.getCorrectedTaskWidthByRange=function(b,y){var E=this.getTotalWidth()-this.getTaskPoint(b).x;return Math.min(E,y)},x.taskClassName=(x.dxGanttPrefix="dx-gantt-")+"task",x.milestoneClassName=x.dxGanttPrefix+"milestone",x.smallTaskClassName=x.dxGanttPrefix+"smallTask",x.parentTaskClassName=x.dxGanttPrefix+"parent",x.taskProgressClassName=x.dxGanttPrefix+"tPrg",x.taskTitleClassName=x.dxGanttPrefix+"taskTitle",x.titleInClassName=x.dxGanttPrefix+"titleIn",x.titleOutClassName=x.dxGanttPrefix+"titleOut",x.taskResourceClassName=x.dxGanttPrefix+"taskRes",x.arrowClassName=x.dxGanttPrefix+"arrow",x.leftArrowClassName=x.dxGanttPrefix+"LA",x.topArrowClassName=x.dxGanttPrefix+"TA",x.rightArrowClassName=x.dxGanttPrefix+"RA",x.bottomArrowClassName=x.dxGanttPrefix+"BA",x.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},x}();u.GridLayoutCalculator=v},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StyleDef=void 0;var c=o(1),I=o(3),C=o(17),g=o(35),a=o(36),p=o(62),s=function(){function l(d){this._fillColor=new C.Color,this._textColor=new C.Color,this._lineColor=new C.Color,this._cellWidth=new p.Width,this._cellPadding=new a.Margin,d&&this.assign(d)}return Object.defineProperty(l.prototype,"font",{get:function(){return this._fontFamily},set:function(d){this._fontFamily=g.PredefinedStyles.getPredefinedStringOrUndefined(d,g.PredefinedStyles.fontFamilies)||d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"fontStyle",{get:function(){return this._fontStyle},set:function(d){this._fontStyle=g.PredefinedStyles.getPredefinedStringOrUndefined(d,g.PredefinedStyles.fontStyles)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"fontSize",{get:function(){return this._fontSize},set:function(d){this._fontSize=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"overflow",{get:function(){return this._overflow},set:function(d){this._overflow=g.PredefinedStyles.getPredefinedStringOrUndefined(d,g.PredefinedStyles.overflow)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"halign",{get:function(){return this._horizontalAlign},set:function(d){this._horizontalAlign=g.PredefinedStyles.getPredefinedStringOrUndefined(d,g.PredefinedStyles.horizontalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"valign",{get:function(){return this._verticalAlign},set:function(d){this._verticalAlign=g.PredefinedStyles.getPredefinedStringOrUndefined(d,g.PredefinedStyles.verticalAlign)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"fillColor",{get:function(){return this._fillColor},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"textColor",{get:function(){return this._textColor},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"lineColor",{get:function(){return this._lineColor},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cellWidth",{get:function(){return this._cellWidth},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"cellPadding",{get:function(){return this._cellPadding},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"lineWidth",{get:function(){return this._lineWidth},set:function(d){this._lineWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"minCellWidth",{get:function(){return this._minCellWidth},set:function(d){this._minCellWidth=d},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"minCellHeight",{get:function(){return this._minCellHeight},set:function(d){this._minCellHeight=d},enumerable:!1,configurable:!0}),l.prototype.assign=function(d){d&&(d instanceof l?((0,c.isDefined)(d.font)&&(this.font=d.font),(0,c.isDefined)(d.fontStyle)&&(this.fontStyle=d.fontStyle),(0,c.isDefined)(d.overflow)&&(this.overflow=d.overflow),(0,c.isDefined)(d.halign)&&(this.halign=d.halign),(0,c.isDefined)(d.valign)&&(this.valign=d.valign),(0,c.isDefined)(d.fontSize)&&(this.fontSize=d.fontSize),(0,c.isDefined)(d.lineWidth)&&(this.lineWidth=d.lineWidth),(0,c.isDefined)(d.minCellWidth)&&(this.minCellWidth=d.minCellWidth),(0,c.isDefined)(d.minCellHeight)&&(this.minCellHeight=d.minCellHeight),(0,c.isDefined)(d.fillColor)&&this.fillColor.assign(d.fillColor),(0,c.isDefined)(d.textColor)&&this.textColor.assign(d.textColor),(0,c.isDefined)(d.lineColor)&&this.lineColor.assign(d.lineColor),(0,c.isDefined)(d.cellWidth)&&this.cellWidth.assign(d.cellWidth),(0,c.isDefined)(d.cellPadding)&&this.cellPadding.assign(d.cellPadding)):this.assignFromCssStyle(d))},l.prototype.assignFromCssStyle=function(d){if(d.fontFamily&&(this.font=this.getPdfFontFamily(d)),this.fontStyle=this.getPdfFontStyle(d),(0,c.isDefined)(d.fontSize)&&(this.fontSize=this.getPfrFontSize(d.fontSize)),d.textAlign&&(this.halign=d.textAlign),d.verticalAlign&&(this.valign=d.verticalAlign),(0,c.isDefined)(d.borderWidth)&&(this.lineWidth=d.borderWidth),(0,c.isDefined)(d.cellWidth)&&this.cellWidth.assign(d.cellWidth),(0,c.isDefined)(d.width)&&(this.minCellWidth="number"==typeof d.width?d.width:I.DomUtils.pxToInt(d.width)),(0,c.isDefined)(d.height)&&(this.minCellHeight="number"==typeof d.height?d.height:I.DomUtils.pxToInt(d.height)),d.backgroundColor&&this.fillColor.assign(d.backgroundColor),d.color&&this.textColor.assign(d.color),d.borderColor&&this.lineColor.assign(d.borderColor),(0,c.isDefined)(d.width)&&this.cellWidth.assign(d.width),this.assignPaddingFromCss(d),(0,c.isDefined)(d.extraLeftPadding)){var h=this._cellPadding.left;this._cellPadding.left=h?h+d.extraLeftPadding:d.extraLeftPadding}},l.prototype.getPdfFontStyle=function(d){var h=d.fontWeight,v=parseInt(h),x="bold"===h||!isNaN(v)&&v>500,b=x?"bold":"normal";return"italic"===d.fontStyle&&(b=x?"bolditalic":"italic"),b},l.prototype.getPdfFontFamily=function(d){var h=d.fontFamily&&d.fontFamily.toLowerCase(),v="helvetica";return h.indexOf("times")>-1&&(v="times"),h.indexOf("courier")>-1&&(v="courier"),v},l.prototype.getPfrFontSize=function(d){var h=I.DomUtils.pxToInt(d);if(!isNaN(h))return Math.ceil(h/96*72)},l.prototype.assignPaddingFromCss=function(d){if(d.padding)this._cellPadding.assign(d.padding);else{var h={};d.paddingLeft&&(h.left=I.DomUtils.pxToInt(d.paddingLeft)),d.paddingTop&&(h.top=I.DomUtils.pxToInt(d.paddingTop)),d.paddingRight&&(h.right=I.DomUtils.pxToInt(d.paddingRight)),d.paddingBottom&&(h.bottom=I.DomUtils.pxToInt(d.paddingBottom)),this._cellPadding.assign(h)}},l.prototype.hasValue=function(){return!0},l.prototype.getValue=function(){var d=this,h={};return(0,c.isDefined)(this.font)&&(h.font=this.font),(0,c.isDefined)(this.fontStyle)&&(h.fontStyle=this.fontStyle),(0,c.isDefined)(this.fontSize)&&(h.fontSize=this.fontSize),(0,c.isDefined)(this.overflow)&&(h.overflow=this.overflow),(0,c.isDefined)(this.halign)&&(h.halign=this.halign),(0,c.isDefined)(this.valign)&&(h.valign=this.valign),(0,c.isDefined)(this.lineWidth)&&(h.lineWidth=this.lineWidth),(0,c.isDefined)(this.minCellWidth)&&(h.minCellWidth=this.minCellWidth),(0,c.isDefined)(this.minCellHeight)&&(h.minCellHeight=this.minCellHeight),this.getJsPdfProviderProps().forEach(function(v){var x=d[v];x&&x.hasValue()&&(h[v]=x.getValue())}),h},l.prototype.getJsPdfProviderProps=function(){return["fillColor","textColor","lineColor","cellWidth","cellPadding"]},l}();u.StyleDef=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfPageTableNames=void 0;var c=function(){function I(){}return I.treeListHeader="treeListHeader",I.treeListMain="treeListMain",I.chartMain="chartMain",I.chartScaleTop="chartScaleTop",I.chartScaleBottom="chartScaleBottom",I}();u.PdfPageTableNames=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.BaseManipulator=void 0;var c=function(){function I(C,g){this.viewModel=C,this.dispatcher=g}return I.prototype.getErrorCallback=function(){return this.viewModel.getDataUpdateErrorCallback()},Object.defineProperty(I.prototype,"renderHelper",{get:function(){return this.viewModel.owner.renderHelper},enumerable:!1,configurable:!0}),I}();u.BaseManipulator=c},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaDomHelper=void 0;var I=o(3),C=o(9),g=o(46),a=o(4),p=o(25),s=function(){function l(){}return l.getEventSource=function(d){var h,v=(d.nodeType===(null===(h=window?.Node)||void 0===h?void 0:h.ELEMENT_NODE)?d:d.parentNode).classList[0];return l.classToSource[v]||a.TaskAreaEventSource.TaskArea},l.isConnectorLine=function(d){var h=C.EvtUtils.getEventSource(d);return I.DomUtils.hasClassName(h,p.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||I.DomUtils.hasClassName(h,p.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},l.isTaskElement=function(d){var h=C.EvtUtils.getEventSource(d),v=l.classToSource[h.classList[0]];return v===a.TaskAreaEventSource.TaskEdit_Frame||v===a.TaskAreaEventSource.TaskEdit_Progress||v===a.TaskAreaEventSource.TaskEdit_Start||v===a.TaskAreaEventSource.TaskEdit_End||v===a.TaskAreaEventSource.TaskEdit_DependencyStart||v===a.TaskAreaEventSource.TaskEdit_DependencyFinish},l.isMouseEvent=function(d){return d instanceof MouseEvent},l.isTouchEvent=function(d){return window.TouchEvent&&d instanceof TouchEvent},l.isPointerEvent=function(d){return window.PointerEvent&&d instanceof PointerEvent},l.isMousePointer=function(d){return this.isPointerEvent(d)&&"mouse"===d.pointerType},l.classToSource=((c={})[g.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=a.TaskAreaEventSource.TaskEdit_Progress,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_START]=a.TaskAreaEventSource.TaskEdit_Start,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_END]=a.TaskAreaEventSource.TaskEdit_End,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=a.TaskAreaEventSource.TaskEdit_Frame,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=a.TaskAreaEventSource.TaskEdit_DependencyStart,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=a.TaskAreaEventSource.TaskEdit_DependencyFinish,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=a.TaskAreaEventSource.Successor_DependencyStart,c[g.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=a.TaskAreaEventSource.Successor_DependencyFinish,c),l}();u.TaskAreaDomHelper=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaStateBase=void 0;var c=o(10),I=o(5),C=o(3),g=o(9),a=o(66),p=o(172),s=o(29),l=o(13),d=function(){function h(v,x,b){this.position=new I.Point(-1,-1),this.isCursorInArea=!1,this._listener=v,this._taskArea=x,this._cellSize=b}return h.prototype.start=function(){},h.prototype.finish=function(){},h.prototype.isTouchEvent=function(v){return s.TaskAreaDomHelper.isTouchEvent(v)},h.prototype.isPointerEvent=function(v){return s.TaskAreaDomHelper.isPointerEvent(v)},h.prototype.isMouseEvent=function(v){return s.TaskAreaDomHelper.isMouseEvent(v)},h.prototype.onMouseWheel=function(v){},h.prototype.onScroll=function(v){this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_SCROLL)},h.prototype.onKeyDown=function(v){this.isCursorInArea&&this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN,v,null,{code:this.getShortcutCode(v)})},h.prototype.onContextMenu=function(v){var x=this.getClickedRowIndex(v),b=s.TaskAreaDomHelper.isConnectorLine(v);b||this.raiseTaskSelection(v,x),v.stopPropagation(),v.preventDefault(),c.Browser.WebKitFamily&&(v.returnValue=!1),this.raiseEvent(l.TaskAreaStateEventNames.CONTEXTMENU_SHOW,v,x,{type:b?"dependency":"task"})},h.prototype.onTaskPointerEnter=function(v){this.onTaskPointerEnterBase(v)},h.prototype.onDocumentPointerMove=function(v){this.processPointerMove(v)},h.prototype.onDocumentPointerDown=function(v){this.processPointerDown(v)},h.prototype.onDocumentPointerUp=function(v){this.processPointerUp(v)},h.prototype.onTaskTouchStart=function(v){this.onTaskPointerEnterBase(v)},h.prototype.onTouchMove=function(v){this.processPointerMove(v)},h.prototype.onTouchStart=function(v){this.processPointerDown(v)},h.prototype.onTouchEnd=function(v){this.processPointerUp(v)},h.prototype.onMouseDown=function(v){this.processPointerDown(v)},h.prototype.onMouseUp=function(v){},h.prototype.onMouseMove=function(v){this.processPointerMove(v)},h.prototype.onTaskHover=function(v){this.onTaskPointerEnterBase(v)},h.prototype.onTaskLeave=function(v){this.raiseEvent(l.TaskAreaStateEventNames.TASK_LEAVE,v,this.getClickedRowIndex(v))},h.prototype.onClick=function(v){var x=this.getClickedRowIndex(v);this.raiseTaskSelection(v,x),this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_CLICK,v,x)},h.prototype.onDblClick=function(v){v.preventDefault(),this.raiseEvent(l.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,v,this.getClickedRowIndex(v))},h.prototype.onTaskAreaLeave=function(v){(!this.isPointerEvent(v)||s.TaskAreaDomHelper.isMousePointer(v))&&(this.isCursorInArea=!1,this.raiseEvent(l.TaskAreaStateEventNames.TASK_EDIT_END,v)),this.onTaskAreaLeaveInternal(v)},h.prototype.onTaskPointerEnterBase=function(v){this.isTouchEvent(v)||this.isPointerEvent(v)||v.preventDefault(),this.raiseEvent(l.TaskAreaStateEventNames.TASK_EDIT_START,v,this.getClickedRowIndex(v))},h.prototype.processPointerDown=function(v){var x=this.isTouchEvent(v),b=this.isPointerEvent(v);(x||b)&&this.checkAndProcessTouchOutsideArea(v)||(this.position=new I.Point(g.EvtUtils.getEventX(v),g.EvtUtils.getEventY(v)),(x||b)&&v.preventDefault(),x?this.onTouchStartInternal(v):b?this.onDocumentPointerDownInternal(v):this.onMouseDownInternal(v))},h.prototype.processPointerMove=function(v){var x,b=this.isTouchEvent(v),y=this.isPointerEvent(v);null!==(x=this.position)&&void 0!==x||(this.position=new I.Point(g.EvtUtils.getEventX(v),g.EvtUtils.getEventY(v)));var E=Math.abs(this.position.x-g.EvtUtils.getEventX(v))>2||Math.abs(this.position.y-g.EvtUtils.getEventY(v))>2;(!b&&!y||!this.checkAndProcessTouchOutsideArea(v))&&E&&((b||y)&&v.preventDefault(),this.isTouchEvent(v)?this.onTouchMoveInternal(v):this.isPointerEvent(v)?this.onDocumentPointerMoveInternal(v):(this.isCursorInArea=!0,this.onMouseMoveInternal(v)))},h.prototype.processPointerUp=function(v){this.checkAndProcessTouchOutsideArea(v)||(v.preventDefault(),this.isTouchEvent(v)?this.onTouchEndInternal(v):this.onDocumentPointerUpInternal(v))},h.prototype.onMouseDownInternal=function(v){},h.prototype.onMouseMoveInternal=function(v){},h.prototype.onDocumentPointerUpInternal=function(v){},h.prototype.onDocumentPointerDownInternal=function(v){},h.prototype.onDocumentPointerMoveInternal=function(v){},h.prototype.onTouchStartInternal=function(v){},h.prototype.onTouchEndInternal=function(v){},h.prototype.onTouchMoveInternal=function(v){},h.prototype.onTaskAreaLeaveInternal=function(v){},h.prototype.checkAndProcessTouchOutsideArea=function(v){var x=!this.isInTaskArea(v);return x&&this.raiseEvent(l.TaskAreaStateEventNames.TASK_EDIT_END,v),this.isCursorInArea=!x,x},h.prototype.raiseEvent=function(v,x,b,y){var E=new p.TaskAreaEventArgs(v,x,b,y),S=this._listener.getHandler(v);return S&&S(E)},h.prototype.raiseDependencySelection=function(v,x){this.raiseEvent(l.TaskAreaStateEventNames.DEPENDENCY_SELECTION,v,null,{key:x})},h.prototype.raiseTaskSelection=function(v,x){C.DomUtils.isItParent(this._taskArea,g.EvtUtils.getEventSource(v))&&!s.TaskAreaDomHelper.isConnectorLine(v)&&this.raiseEvent(l.TaskAreaStateEventNames.TASK_SELECTION,v,x)},h.prototype.getClickedRowIndex=function(v){if(!v)return-1;var x=g.EvtUtils.getEventY(v)-C.DomUtils.getAbsolutePositionY(this._taskArea);return Math.floor(x/this._cellSize.height)},h.prototype.getRelativePos=function(v){var x=C.DomUtils.getAbsolutePositionX(this._taskArea),b=C.DomUtils.getAbsolutePositionY(this._taskArea);return new I.Point(v.x-x,v.y-b)},h.prototype.isInTaskArea=function(v){return C.DomUtils.isItParent(this._taskArea,g.EvtUtils.getEventSource(v))},h.prototype.getShortcutCode=function(v){var x=a.KeyUtils.getEventKeyCode(v),b=0;return v.altKey&&(b|=a.ModifierKey.Alt),v.ctrlKey&&(b|=a.ModifierKey.Ctrl),v.shiftKey&&(b|=a.ModifierKey.Shift),v.metaKey&&c.Browser.MacOSPlatform&&(b|=a.ModifierKey.Meta),b|x},h}();u.TaskAreaStateBase=d},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.ConstraintViolationOption=u.ConfirmationType=void 0,(c=u.ConfirmationType||(u.ConfirmationType={}))[c.TaskDelete=0]="TaskDelete",c[c.DependencyDelete=1]="DependencyDelete",c[c.ResourcesDelete=2]="ResourcesDelete",function(c){c[c.DoNothing=0]="DoNothing",c[c.RemoveDependency=1]="RemoveDependency",c[c.KeepDependency=2]="KeepDependency"}(u.ConstraintViolationOption||(u.ConstraintViolationOption={}))},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DialogParametersBase=void 0,u.DialogParametersBase=function(){}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DeassignResourceHistoryItem=void 0;var c=o(0),I=o(14),C=o(2),g=function(a){function p(s,l){var d=a.call(this,s)||this;return d.assignmentId=l,d}return c.__extends(p,a),p.prototype.redo=function(){this.assignment=this.modelManipulator.resource.deassig(this.assignmentId)},p.prototype.undo=function(){this.modelManipulator.resource.assign(this.assignment.resourceId,this.assignment.taskId,this.assignmentId)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s=this;return[{objectType:C.GanttDataObjectNames.resourceAssignment,getKey:function(){return s.assignmentId},updateKey:function(l){return s.assignmentId=l}},{objectType:C.GanttDataObjectNames.task,getKey:function(){var l;return null===(l=s.assignment)||void 0===l?void 0:l.taskId},updateKey:function(l){return s.assignment.taskId=l}},{objectType:C.GanttDataObjectNames.resource,getKey:function(){var l;return null===(l=s.assignment)||void 0===l?void 0:l.resourceId},updateKey:function(l){return s.assignment.resourceId=l}}]},enumerable:!1,configurable:!0}),p}(I.HistoryItem);u.DeassignResourceHistoryItem=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceCommandBase=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p}(I.CommandBase);u.ResourceCommandBase=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PredefinedStyles=void 0;var c=function(){function I(){}return I.getPredefinedStringOrUndefined=function(C,g){var a=C&&g&&C.toLowerCase()||void 0;return a&&(g.filter(function(p){return p.toLowerCase()===a})[0]||g.filter(function(p){return a.indexOf(p.toLowerCase())>-1})[0])},I.fontFamilies=["helvetica","times","courier"],I.fontStyles=["normal","bold","italic","bolditalic"],I.headerFooterVisibility=["everyPage","firstPage","never"],I.horizontalAlign=["left","center","right"],I.overflow=["linebreak","ellipsize","visible","hidden"],I.pageBreak=["auto","avoid","always"],I.rowPageBreak=["auto","avoid"],I.verticalAlign=["top","middle","bottom"],I.width=["auto","wrap"],I}();u.PredefinedStyles=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Margin=void 0;var c=o(1),I=o(3),C=function(){function g(a){this.assign(a)}return g.prototype.assign=function(a){(0,c.isDefined)(a)&&("string"==typeof a?this.assignFromString(a):"number"==typeof a||a instanceof Array?this.assignWithValues(a):this.assignWithMargin(a||a))},g.prototype.assignFromString=function(a){var p=a.split(" ").map(function(s){return I.DomUtils.pxToInt(s)});this.assignWithValues(p)},g.prototype.assignWithMargin=function(a){(0,c.isDefined)(a.top)&&(this.top=a.top),(0,c.isDefined)(a.right)&&(this.right=a.right),(0,c.isDefined)(a.bottom)&&(this.bottom=a.bottom),(0,c.isDefined)(a.left)&&(this.left=a.left)},g.prototype.assignWithValues=function(a){var p=this.getCorrectedValues(a);this.top=p[0],this.right=p[1],this.bottom=p[2],this.left=p[3]},g.prototype.getCorrectedValues=function(a){var p=[this.top,this.right,this.bottom,this.left];if("number"==typeof a)p=[a,a,a,a];else{var s=a;switch(s.length){case 1:p=[s[0],s[0],s[0],s[0]];break;case 2:p=[s[0],s[1],s[0],s[1]];break;case 3:p=[s[0],s[1],s[2],s[1]];break;default:s.forEach(function(l,d){return p[d]=l})}}return p},g.prototype.hasValue=function(){return(0,c.isDefined)(this.top)||(0,c.isDefined)(this.left)||(0,c.isDefined)(this.right)||(0,c.isDefined)(this.bottom)},g.prototype.getValue=function(){if(!this.hasValue())return null;if(this.top===this.bottom&&this.left===this.right&&this.top===this.left)return this.top;var a={};return(0,c.isDefined)(this.top)&&(a.top=this.top),(0,c.isDefined)(this.left)&&(a.left=this.left),(0,c.isDefined)(this.right)&&(a.right=this.right),(0,c.isDefined)(this.bottom)&&(a.bottom=this.bottom),a},g}();u.Margin=C},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.DataExportMode=u.ExportMode=void 0,(c=u.ExportMode||(u.ExportMode={}))[c.all=0]="all",c[c.treeList=1]="treeList",c[c.chart=2]="chart",function(c){c[c.all=0]="all",c[c.visible=1]="visible"}(u.DataExportMode||(u.DataExportMode={}))},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RecurrenceBase=void 0;var c=o(0),I=o(203),C=o(57),g=o(204),a=o(1),p=o(8),s=o(71),l=function(d){function h(v,x,b,y){void 0===v&&(v=null),void 0===x&&(x=null),void 0===b&&(b=1),void 0===y&&(y=0);var E=d.call(this)||this;return E._start=null,E._end=null,E._interval=1,E._occurrenceCount=0,E._dayOfWeek=0,E._day=1,E._dayOfWeekOccurrence=0,E._month=0,E._calculateByDayOfWeek=!1,E.start=v,E.end=x,E.interval=b,E.occurrenceCount=y,E}return c.__extends(h,d),h.prototype.assignFromObject=function(v){(0,a.isDefined)(v)&&(d.prototype.assignFromObject.call(this,v),this.start=p.DateTimeUtils.convertToDate(v.start),this.end=p.DateTimeUtils.convertToDate(v.end),(0,a.isDefined)(v.interval)&&(this.interval=v.interval),(0,a.isDefined)(v.occurrenceCount)&&(this.occurrenceCount=v.occurrenceCount),(0,a.isDefined)(v.dayOfWeek)&&(this.dayOfWeekInternal=s.RecurrenceFactory.getEnumValue(I.DayOfWeek,v.dayOfWeek)),(0,a.isDefined)(v.day)&&(this.dayInternal=v.day),(0,a.isDefined)(v.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=s.RecurrenceFactory.getEnumValue(C.DayOfWeekMonthlyOccurrence,v.dayOfWeekOccurrence)),(0,a.isDefined)(v.month)&&(this.monthInternal=s.RecurrenceFactory.getEnumValue(g.Month,v.month)),(0,a.isDefined)(v.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!v.calculateByDayOfWeek))},h.prototype.calculatePoints=function(v,x){if(!v||!x)return new Array;var b=p.DateTimeUtils.getMaxDate(v,this._start),y=p.DateTimeUtils.getMinDate(x,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(b,y):this.calculatePointsByDateRange(b,y)},h.prototype.calculatePointsByOccurrenceCount=function(v,x){for(var b=new Array,y=this.getFirstPoint(v);y&&b.length<this._occurrenceCount&&p.DateTimeUtils.compareDates(y,x)>=0;)this.isRecurrencePoint(y)&&b.push(y),y=this.getNextPoint(y);return b},h.prototype.calculatePointsByDateRange=function(v,x){for(var b=new Array,y=this.getFirstPoint(v);y&&p.DateTimeUtils.compareDates(y,x)>=0;)this.isRecurrencePoint(y)&&b.push(y),y=this.getNextPoint(y);return b},h.prototype.getFirstPoint=function(v){return this.isRecurrencePoint(v)?v:this.getNextPoint(v)},h.prototype.isRecurrencePoint=function(v){return this.isDateInRange(v)&&this.checkDate(v)&&(!this.useIntervalInCalc()||this.checkInterval(v))},h.prototype.isDateInRange=function(v){return!(!v||this._start&&p.DateTimeUtils.compareDates(this.start,v)<0||0==this._occurrenceCount&&this.end&&p.DateTimeUtils.compareDates(v,this.end)<0)},h.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},h.prototype.getNextPoint=function(v){return this.isDateInRange(v)?this.useIntervalInCalc()?this.calculatePointByInterval(v):this.calculateNearestPoint(v):null},h.prototype.getSpecDayInMonth=function(v,x){return this._calculateByDayOfWeek?p.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,v,x,this.dayOfWeekOccurrenceInternal):new Date(v,x,this.dayInternal)},Object.defineProperty(h.prototype,"dayInternal",{get:function(){return this._day},set:function(v){v>0&&v<=31&&(this._day=v)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(v){v>=I.DayOfWeek.Sunday&&v<=I.DayOfWeek.Saturday&&(this._dayOfWeek=v)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(v){v>=C.DayOfWeekMonthlyOccurrence.First&&v<=C.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=v)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"monthInternal",{get:function(){return this._month},set:function(v){v>=g.Month.January&&v<=g.Month.December&&(this._month=v)},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"start",{get:function(){return this._start},set:function(v){v&&(this._start=v,this._end&&v>this._end&&(this._end=v))},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"end",{get:function(){return this._end},set:function(v){v&&(this._end=v,this._start&&v<this._start&&(this._start=v))},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"occurrenceCount",{get:function(){return this._occurrenceCount},set:function(v){v<0&&(v=0),this._occurrenceCount=v},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"interval",{get:function(){return this._interval},set:function(v){v>0&&(this._interval=v)},enumerable:!1,configurable:!0}),h}(o(2).DataObject);u.RecurrenceBase=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StringUtils=void 0;var c=function(){function I(){}return I.isAlpha=function(C){return C>="a"&&C<="z"||C>="A"&&C<="Z"},I.isDigit=function(C){return C>="0"&&C<="9"},I.stringHashCode=function(C){var g=0;if(0===C.length)return g;for(var a=C.length,p=0;p<a;p++)g=(g<<5)-g+C.charCodeAt(p),g|=0;return g},I.endsAt=function(C,g){var a=C.length-1,p=g.length-1,s=a-p;if(s<0)return!1;for(;a>=s;a--,p--)if(C[a]!==g[p])return!1;return!0},I.startsAt=function(C,g){return C.substr(0,g.length)===g},I.stringInLowerCase=function(C){return C.toLowerCase()===C},I.stringInUpperCase=function(C){return C.toUpperCase()===C},I.atLeastOneSymbolInUpperCase=function(C){for(var g=0,a=void 0;a=C[g];g++)if(I.stringInUpperCase(a)&&!I.stringInLowerCase(a))return!0;return!1},I.getSymbolFromEnd=function(C,g){return C[C.length-g]},I.trim=function(C,g){if(void 0===g)return I.trimInternal(C,!0,!0);var a=g.join("");return C.replace(new RegExp("(^["+a+"]*)|(["+a+"]*$)","g"),"")},I.trimStart=function(C,g){if(void 0===g)return I.trimInternal(C,!0,!1);var a=g.join("");return C.replace(new RegExp("^["+a+"]*","g"),"")},I.trimEnd=function(C,g){if(void 0===g)return I.trimInternal(C,!1,!0);var a=g.join("");return C.replace(new RegExp("["+a+"]*$","g"),"")},I.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},I.repeat=function(C,g){return new Array(g<=0?0:g+1).join(C)},I.isNullOrEmpty=function(C){return!C||!C.length},I.padLeft=function(C,g,a){return I.repeat(a,Math.max(0,g-C.length))+C},I.trimInternal=function(C,g,a){var p=C.length;if(!p)return C;if(p<764833){var s=C;return g&&(s=s.replace(/^\s+/,"")),a&&(s=s.replace(/\s+$/,"")),s}var l=0;if(a)for(;p>0&&/\s/.test(C[p-1]);)p--;if(g&&p>0)for(;l<p&&/\s/.test(C[l]);)l++;return C.substring(l,p)},I}();u.StringUtils=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConfirmationDialogParameters=void 0;var c=o(0),I=function(C){function g(a,p){var s=C.call(this)||this;return s.type=a,s.callback=p,s}return c.__extends(g,C),g.prototype.clone=function(){var a=new g(this.type,this.callback);return a.message=this.message,a},g}(o(32).DialogParametersBase);u.ConfirmationDialogParameters=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveDependencyHistoryItem=void 0;var c=o(0),I=o(2),C=function(g){function a(p,s){var l=g.call(this,p)||this;return l.dependencyId=s,l}return c.__extends(a,g),a.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.removeDependency(this.dependencyId)},a.prototype.undo=function(){this.modelManipulator.dependency.insertDependency(this.dependency.predecessorId,this.dependency.successorId,this.dependency.type,this.dependencyId)},Object.defineProperty(a.prototype,"keyUpdaters",{get:function(){var p=this;return[{objectType:I.GanttDataObjectNames.dependency,getKey:function(){return p.dependencyId},updateKey:function(s){return p.dependencyId=s}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var s;return null===(s=p.dependency)||void 0===s?void 0:s.predecessorId},updateKey:function(s){return p.dependency.predecessorId=s}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var s;return null===(s=p.dependency)||void 0===s?void 0:s.successorId},updateKey:function(s){return p.dependency.successorId=s}}]},enumerable:!1,configurable:!0}),a}(o(14).HistoryItem);u.RemoveDependencyHistoryItem=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CompositionHistoryItem=void 0;var c=o(0),I=function(C){function g(){var a=C.call(this,null)||this;return a.historyItems=[],a}return c.__extends(g,C),g.prototype.redo=function(){for(var a,p=0;a=this.historyItems[p];p++)a.redo()},g.prototype.undo=function(){for(var a,p=this.historyItems.length-1;a=this.historyItems[p];p--)a.undo()},g.prototype.add=function(a){if(null==a)throw new Error("Can't add null HistoryItem");this.historyItems.push(a)},g.prototype.undoItemsQuery=function(){this.undo()},g.prototype.setModelManipulator=function(a){if(C.prototype.setModelManipulator.call(this,a),this.historyItems)for(var p=0;p<this.historyItems.length;p++)this.historyItems[p].setModelManipulator(a)},g}(o(14).HistoryItem);u.CompositionHistoryItem=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CreateTaskHistoryItem=void 0;var c=o(0),I=o(18),C=o(2),g=function(a){function p(s,l){var d=a.call(this,s)||this;return d.data=l,d}return c.__extends(p,a),p.prototype.redo=function(){var s;null!==(s=this.insertedKey)&&void 0!==s||(this.insertedKey=I.MathUtils.generateGuid()),this.modelManipulator.task.create(this.data,this.insertedKey)},p.prototype.undo=function(){this.modelManipulator.task.remove(this.insertedKey)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s,l=this,d=[{objectType:C.GanttDataObjectNames.task,getKey:function(){return l.insertedKey},updateKey:function(h){return l.insertedKey=h}}];return!(null===(s=this.data)||void 0===s)&&s.parentId&&d.push({objectType:C.GanttDataObjectNames.task,getKey:function(){var h;return null===(h=l.data)||void 0===h?void 0:h.parentId},updateKey:function(h){return l.data.parentId=h}}),d},enumerable:!1,configurable:!0}),p}(o(14).HistoryItem);u.CreateTaskHistoryItem=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfTaskInfo=void 0;var c=o(5),I=o(17),C=o(26),g=function(){function a(){}return Object.defineProperty(a.prototype,"left",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[0].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"top",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[1].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"right",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[2].x:0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"bottom",{get:function(){var p;return(null===(p=this.sidePoints)||void 0===p?void 0:p.length)>3?this.sidePoints[3].y:0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"width",{get:function(){return this.right-this.left},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){var p=this.bottom-this.top;return this.isParent&&(p-=a.defaultParentHeightCorrection),p},enumerable:!1,configurable:!0}),a.prototype.assign=function(p){var s,l,d;this.isMilestone=p.isMilestone,this._copyPoints(p.sidePoints),this.progressWidth=p.progressWidth,this.isSmallTask=p.isSmallTask,this.text=p.text,this.textPosition=p.textPosition,null!==(s=this.progressColor)&&void 0!==s||(this.progressColor=new I.Color),this.progressColor.assign(p.progressColor),null!==(l=this.taskColor)&&void 0!==l||(this.taskColor=new I.Color),this.taskColor.assign(p.taskColor),null!==(d=this.textStyle)&&void 0!==d||(this.textStyle=new C.StyleDef),this.textStyle.assign(p.textStyle),this.isParent=p.isParent},a.prototype._copyPoints=function(p){var s=this;this.sidePoints=new Array,p?.forEach(function(l){return s.sidePoints.push(new c.Point(l.x,l.y))})},a.defaultParentHeightCorrection=4,a}();u.PdfTaskInfo=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CellDef=void 0;var c=o(1),I=o(26),C=function(){function g(a,p,s){this.content="","string"==typeof a?(this.content=a,this.colSpan=p,s&&this.appendStyles(s)):a&&this.assign(a)}return Object.defineProperty(g.prototype,"styles",{get:function(){return this._styles||(this._styles=new I.StyleDef),this._styles},enumerable:!1,configurable:!0}),g.prototype.assign=function(a){(0,c.isDefined)(a.content)&&(this.content=a.content),(0,c.isDefined)(a.colSpan)&&(this.colSpan=a.colSpan),a.styles&&this.appendStyles(a.styles)},g.prototype.appendStyles=function(a){a&&this.styles.assign(a)},g.prototype.hasValue=function(){return!0},g.prototype.getValue=function(){var a={};return a.content=this.content,this.colSpan>1&&(a.colSpan=this.colSpan),this._styles&&(a.styles=this._styles.getValue()),a},g}();u.CellDef=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditController=void 0;var c=o(4),I=o(19),C=o(3),g=o(10),a=o(169),p=o(65),s=o(15),l=function(){function d(h){this.showInfoDelay=1e3,this.taskIndex=-1,this.successorIndex=-1,this.isEditingInProgress=!1,this.disableTaskEditBox=!1,this.isTaskEditBoxShown=!1,this.settings=h,this.createElements()}return Object.defineProperty(d.prototype,"taskId",{get:function(){return this.viewModel.items[this.taskIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"successorId",{get:function(){return this.viewModel.items[this.successorIndex].task.internalId},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"task",{get:function(){return this.viewItem.task},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"viewItem",{get:function(){return this.viewModel.items[this.taskIndex]},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"renderHelper",{get:function(){return this.settings.getRenderHelper()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"ganttSettings",{get:function(){return this.settings.getGanttSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"commandManager",{get:function(){return this.settings.getCommandManager()},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"updateTaskCommand",{get:function(){return this.commandManager.updateTaskCommand},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"validationController",{get:function(){return this.settings.getValidationController()},enumerable:!1,configurable:!0}),d.prototype.raiseTaskMoving=function(h,v,x,b){return this.settings.getModelManipulator().dispatcher.raiseTaskMoving(h,v,x,b)},Object.defineProperty(d.prototype,"tooltip",{get:function(){var h;return null!==(h=this._tooltip)&&void 0!==h||(this._tooltip=new a.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo)),this._tooltip.tooltipSettings=this.tooltipSettings,this._tooltip},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tooltipSettings",{get:function(){var h=this;return p.TooltipSettings.parse({getHeaderHeight:this.settings.getRenderHelper().header.clientHeight,getTaskProgressTooltipContentTemplate:this.ganttSettings.taskProgressTooltipContentTemplate,getTaskTimeTooltipContentTemplate:this.ganttSettings.taskTimeTooltipContentTemplate,getTaskTooltipContentTemplate:this.ganttSettings.taskTooltipContentTemplate,destroyTemplate:function(v){h.settings.destroyTemplate(v)},formatDate:function(v){return h.settings.formatDate(v)}})},enumerable:!1,configurable:!0}),d.prototype.show=function(h){if(!this.isEditingInProgress&&!this.disableTaskEditBox){this.taskIndex=h,this.hide(),this.changeWrapInfo(),this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.displayDependency(),this.task.isMilestone()&&!this.viewItem.isCustom?this.baseElement.className=this.baseElement.className+" milestone":(this.isTaskUpdateAllowed()||(this.baseElement.className=this.baseElement.className+" "+d.CLASSNAMES.TASK_EDIT_HIDE_UPDATING),this.viewItem.isCustom&&this.baseElement.classList.add(d.CLASSNAMES.TASK_EDIT_BOX_CUSTOM));var v=this.settings.getGanttSettings().editing.taskHoverDelay||0;this.taskDateRange=new I.DateRange(this.task.start,this.task.end),this.displayTaskEditBox(v),this.displayProgressEdit(),this.displayStartEndEditElements()}},d.prototype.displayStartEndEditElements=function(){!this.task.isMilestone()&&this.isTaskUpdateAllowed()&&this.canUpdateTask()?(this.startEdit.style.display="block",this.endEdit.style.display="block"):(this.startEdit.style.display="none",this.endEdit.style.display="none")},d.prototype.displayProgressEdit=function(){!this.viewItem.isCustom&&this.canUpdateTask()&&this.isTaskUpdateAllowed()&&this.wrapInfo.size.width>this.wrapInfo.size.height?(this.progressEdit.style.display="block",this.progressEdit.style.left=this.task.normalizedProgress/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px"):this.progressEdit.style.display="none"},d.prototype.displayDependency=function(){this.ganttSettings.editing.enabled&&this.ganttSettings.editing.allowDependencyInsert&&this.ganttSettings.showDependencies||(this.baseElement.className=this.baseElement.className+" hide-dependency")},d.prototype.changeWrapInfo=function(){this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement)},d.prototype.displayTaskEditBox=function(h){var v=this;void 0===h&&(h=0);var x=function(){v.renderHelper.taskArea.appendChild(v.baseElement),v.isTaskEditBoxShown=!0};h?this.timerId=setTimeout(x,h):x()},d.prototype.endEditing=function(){this.isEditingInProgress=!1,this.hide()},d.prototype.hide=function(){this.isTaskEditBoxShown=!1;var h=this.baseElement.parentNode;h&&h.removeChild(this.baseElement),this.tooltip.hide(),clearTimeout(this.timerId)},d.prototype.cancel=function(){clearTimeout(this.timerId)},d.prototype.showTaskInfo=function(h,v){void 0===v&&(v=500),this.timerId&&(v=this.showInfoDelay),this.tooltip.showInfo(this.task,h,v)},d.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},d.prototype.isAllowedToConnectTasks=function(h){var v;return this.validationController.canCreateDependency(this.taskId,null===(v=this.viewModel.items[h].task)||void 0===v?void 0:v.internalId)},d.prototype.showDependencySuccessor=function(h){if(this.isAllowedToConnectTasks(h)){this.successorIndex=h;var v=this.getTaskWrapperElementInfo(h);v.assignPosition(this.dependencySuccessorBaseElement),v.assignSize(this.dependencySuccessorBaseElement),v.assignSize(this.dependencySuccessorFrame),this.renderHelper.taskArea.appendChild(this.dependencySuccessorBaseElement)}},d.prototype.hideDependencySuccessor=function(){var h=this.dependencySuccessorBaseElement.parentNode;h&&h.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},d.prototype.processProgress=function(h){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!0;var x=0;h.x>this.wrapInfo.position.x&&(x=h.x<this.wrapInfo.position.x+this.wrapInfo.size.width?Math.round((h.x-this.wrapInfo.position.x)/this.baseElement.clientWidth*100):100),this.progressEdit.style.left=x/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px",this.tooltip.showProgress(x,C.DomUtils.getAbsolutePositionX(this.progressEdit)+this.progressEdit.offsetWidth/2)}},d.prototype.confirmProgress=function(){if(this.isTaskUpdateAllowed()){this.isEditingInProgress=!1;var h=Math.round((this.progressEdit.offsetLeft+this.progressEdit.offsetWidth/2)/this.wrapInfo.size.width*100);this.updateTaskCommand.execute(this.taskId,{progress:h})}},d.prototype.processEnd=function(h){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var v=h.x>this.wrapInfo.position.x?h.x:this.wrapInfo.position.x,x=v-this.wrapInfo.position.x;this.baseElement.style.width=(x<1?0:x)+"px";var b=this.task.start,y=this.renderHelper.gridLayoutCalculator.getDateByPos(v);y.setSeconds(0),y<b||x<1?this.taskDateRange.end.setTime(b.getTime()):this.taskDateRange.end=this.getCorrectedDate(this.task.end,y),this.tooltip.showTime(b,this.taskDateRange.end,C.DomUtils.getAbsolutePositionX(this.baseElement)+this.baseElement.clientWidth)}},d.prototype.confirmEnd=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{end:this.taskDateRange.end}),this.hide(),this.updateWrapInfo())},d.prototype.processStart=function(h){if(this.isTaskUpdateAllowed()){this.baseElement.className=this.baseElement.className+" move",this.isEditingInProgress=!0;var v=h.x<this.wrapInfo.position.x+this.wrapInfo.size.width?h.x:this.wrapInfo.position.x+this.wrapInfo.size.width,x=this.wrapInfo.size.width-(v-this.wrapInfo.position.x);this.baseElement.style.left=v+"px",this.baseElement.style.width=(x<1?0:x)+"px";var b=this.task.end,y=this.renderHelper.gridLayoutCalculator.getDateByPos(v);y.setSeconds(0),y>b||x<1?this.taskDateRange.start.setTime(b.getTime()):this.taskDateRange.start=this.getCorrectedDate(this.task.start,y),this.tooltip.showTime(this.taskDateRange.start,b,C.DomUtils.getAbsolutePositionX(this.baseElement))}},d.prototype.confirmStart=function(){this.isTaskUpdateAllowed()&&(this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.isEditingInProgress=!1,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start}),this.hide(),this.updateWrapInfo())},d.prototype.processMove=function(h){if(this.isTaskUpdateAllowed()&&this.isTaskEditBoxShown){this.baseElement.className=this.baseElement.className+" move";var v=this.baseElement.offsetLeft+h;this.baseElement.style.left=v+"px";var x=this.renderHelper.gridLayoutCalculator.getDateByPos(v);this.taskDateRange.start=this.getCorrectedDate(this.task.start,x);var b=s.DateUtils.getRangeMSPeriod(this.task.start,this.task.end);return this.taskDateRange.end=s.DateUtils.getDSTCorrectedTaskEnd(this.taskDateRange.start,b),this.isEditingInProgress=this.raiseTaskMoving(this.task,this.taskDateRange.start,this.taskDateRange.end,this.onTaskMovingCallback.bind(this)),this.isEditingInProgress&&this.tooltip.showTime(this.taskDateRange.start,this.taskDateRange.end,C.DomUtils.getAbsolutePositionX(this.baseElement)),this.isEditingInProgress}return!0},d.prototype.onTaskMovingCallback=function(h,v){if(this.taskDateRange.start!==h||this.taskDateRange.end!==v){var x=this.renderHelper.gridLayoutCalculator,b=x.getPosByDate(h),y=x.getPosByDate(v)-b;this.baseElement.style.left=b+"px",this.baseElement.style.width=(y<1?0:y)+"px",this.taskDateRange.start=h,this.taskDateRange.end=v}},d.prototype.confirmMove=function(){this.isTaskUpdateAllowed()&&(this.ganttSettings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.isEditingInProgress&&(this.baseElement.className=d.CLASSNAMES.TASK_EDIT_BOX,this.updateTaskCommand.execute(this.taskId,{start:this.taskDateRange.start,end:this.taskDateRange.end}),this.updateWrapInfo(),this.hide(),this.isEditingInProgress=!1))},d.prototype.getCorrectedDate=function(h,v){if(this.ganttSettings.viewType>c.ViewType.SixHours){var x=v.getFullYear(),b=v.getMonth(),y=v.getDate(),E=this.ganttSettings.viewType===c.ViewType.Days?v.getHours():h.getHours(),S=h.getMinutes(),O=h.getSeconds(),w=h.getMilliseconds();return new Date(x,b,y,E,S,O,w)}return v},d.prototype.startDependency=function(h){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=d.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.renderHelper.taskArea.appendChild(this.dependencyLine),this.startPosition=h},d.prototype.processDependency=function(h){this.isEditingInProgress=!0,this.drawline(this.startPosition,h)},d.prototype.endDependency=function(h){this.isEditingInProgress=!1,null!=h&&this.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,h);var v=this.dependencyLine.parentNode;v&&v.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},d.prototype.selectDependency=function(h){this.ganttSettings.editing.allowDependencyDelete&&(this.dependencyId=h)},d.prototype.isDependencySelected=function(h){return this.dependencyId&&this.dependencyId===h},d.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.commandManager.removeDependencyCommand.execute(this.dependencyId)},d.prototype.getTaskWrapperElementInfo=function(h){var v=this.renderHelper.gridLayoutCalculator,x=v.getTaskWrapperElementInfo(h);return x.size.width=v.getTaskWidth(h),x.size.height=v.getTaskHeight(h),x},d.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=d.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=d.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(d.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),g.Browser.TouchUI&&this.dependencyFinish.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(d.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),g.Browser.TouchUI&&this.dependencyStart.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=d.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=d.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=d.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=d.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(d.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),g.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(d.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),g.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(d.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this._tooltip=new a.TaskEditTooltip(this.baseElement,this.tooltipSettings,this.renderHelper.elementTextHelperCultureInfo),this.attachEvents()},d.prototype.attachEvents=function(){this.onMouseLeaveHandler=function(){this.isEditingInProgress||this.hide()}.bind(this),this.baseElement.addEventListener("mouseleave",this.onMouseLeaveHandler)},d.prototype.drawline=function(h,v){if(h.x>v.x){var x=v;v=h,h=x}var b=Math.atan((h.y-v.y)/(v.x-h.x));b=-(b=180*b/Math.PI);var y=Math.sqrt((h.x-v.x)*(h.x-v.x)+(h.y-v.y)*(h.y-v.y));this.dependencyLine.style.left=h.x+"px",this.dependencyLine.style.top=h.y+"px",this.dependencyLine.style.width=y+"px",this.dependencyLine.style.transform="rotate("+b+"deg)"},d.prototype.canUpdateTask=function(){return!this.viewModel.isTaskToCalculateByChildren(this.task.internalId)},d.prototype.isTaskUpdateAllowed=function(){var h=this.ganttSettings.editing;return h.enabled&&h.allowTaskUpdate},d.prototype.detachEvents=function(){var h;null===(h=this.baseElement)||void 0===h||h.removeEventListener("mouseleave",this.onMouseLeaveHandler)},d.CLASSNAMES={TASK_EDIT_BOX:"dx-gantt-task-edit-wrapper",TASK_EDIT_BOX_CUSTOM:"dx-gantt-task-edit-wrapper-custom",TASK_EDIT_FRAME:"dx-gantt-task-edit-frame",TASK_EDIT_PROGRESS:"dx-gantt-task-edit-progress",TASK_EDIT_DEPENDENCY_RIGTH:"dx-gantt-task-edit-dependency-r",TASK_EDIT_DEPENDENCY_LEFT:"dx-gantt-task-edit-dependency-l",TASK_EDIT_START:"dx-gantt-task-edit-start",TASK_EDIT_END:"dx-gantt-task-edit-end",TASK_EDIT_DEPENDENCY_LINE:"dx-gantt-task-edit-dependency-line",TASK_EDIT_BOX_SUCCESSOR:"dx-gantt-task-edit-wrapper-successor",TASK_EDIT_FRAME_SUCCESSOR:"dx-gantt-task-edit-frame-successor",TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH:"dx-gantt-task-edit-successor-dependency-r",TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT:"dx-gantt-task-edit-successor-dependency-l",TASK_EDIT_TOUCH:"dx-gantt-edit-touch",TASK_EDIT_HIDE_UPDATING:"hide-updating"},d}();u.TaskEditController=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttView=void 0;var c=o(75),I=o(10),C=o(76),g=o(43),a=o(19),p=o(8),s=o(15),l=o(123),d=o(124),h=o(126),v=o(137),x=o(1),b=o(139),y=o(145),E=o(152),S=o(157),O=o(185),w=o(12),T=o(68),k=o(46),R=o(189),P=o(190),B=o(192),W=o(4),z=o(193),V=o(210),U=o(9),K=o(3),Y=o(5),J=o(211),j=o(20),ee=o(2),G=function(){function q(Z,X,M){var oe=this;this.currentSelectedTaskID="",this.isFocus=!1,this._updateWithModelReloadLockedCounter=0,this.scaleCount=2,this.tickSize=new w.Size(0,0),this.currentZoom=1,this.stripLinesUpdaterId=null,this.ganttOwner=X,this.settings=O.Settings.parse(M),this.initValidationController(),this.renderHelper=new S.RenderHelper(this),this.renderHelper.initMarkup(Z),this.loadOptionsFromGanttOwner(),this.renderHelper.init(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),this.commandManager=new C.CommandManager(this),this.barManager=new c.BarManager(this.commandManager,this.ganttOwner.bars),this.initTaskEditController(),this.history=new v.History(this._getHistoryListener()),this.initFullScreenModeHelper(),this.updateView(),this._scrollTimeOut=setTimeout(function(){oe.scrollLeftByViewType()},0),this.initializeStripLinesUpdater(),this.initGanttViewApi()}return q.prototype.initGanttViewApi=function(){this.ganttViewApi=new V.GanttViewApi(this)},q.prototype._getHistoryListener=function(){return{onTransactionStart:this.onHistoryTransactionStart.bind(this),onTransactionEnd:this.onHistoryTransactionEnd.bind(this)}},q.prototype.onHistoryTransactionStart=function(){this.lockUpdateWithReload()},q.prototype.onHistoryTransactionEnd=function(){this.unlockUpdateWithReload()},q.prototype.lockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter++},q.prototype.unlockUpdateWithReload=function(){this._updateWithModelReloadLockedCounter--,0===this._updateWithModelReloadLockedCounter&&this._pendingUpdateInfo&&(this.updateWithDataReload(this._pendingUpdateInfo.keepExpandState),this._pendingUpdateInfo=null)},q.prototype.initValidationController=function(){var Z=this,X=B.ValidationControllerSettings.parse({getViewModel:function(){return Z.viewModel},getHistory:function(){return Z.history},getModelManipulator:function(){return Z.modelManipulator},getRange:function(){return Z.range},getValidationSettings:function(){return Z.settings.validation},updateOwnerInAutoParentMode:function(){Z.updateOwnerInAutoParentMode()},getIsValidateDependenciesRequired:function(){return Z.isValidateDependenciesRequired()}});this.validationController=new P.ValidationController(X)},q.prototype.initTaskEditController=function(){var Z=this,X=R.TaskEditSettings.parse({destroyTemplate:function(M){Z.destroyTemplate(M)},formatDate:function(M){return Z.getDateFormat(M)},getRenderHelper:function(){return Z.renderHelper},getGanttSettings:function(){return Z.settings},getViewModel:function(){return Z.viewModel},getCommandManager:function(){return Z.commandManager},getModelManipulator:function(){return Z.modelManipulator},getValidationController:function(){return Z.validationController}});this.taskEditController=new k.TaskEditController(X)},Object.defineProperty(q.prototype,"taskAreaEventsListener",{get:function(){var Z;return null!==(Z=this._taskAreaEventsListener)&&void 0!==Z||(this._taskAreaEventsListener=new J.TaskAreaEventsListener(this)),this._taskAreaEventsListener},enumerable:!1,configurable:!0}),q.prototype.initFullScreenModeHelper=function(){var Z=this,X=l.FullScreenHelperSettings.parse({getMainElement:function(){return Z.getOwnerControlMainElement()},adjustControl:function(){Z.adjustOwnerControl()}});this.fullScreenModeHelper=new d.FullScreenModeHelper(X)},q.prototype.getDateRange=function(Z,X){var M=this.getVisibleAreaTime(),oe=this.settings.startDateRange||s.DateUtils.adjustStartDateByViewType(new Date(Z.getTime()-M),this.settings.viewType,this.settings.firstDayOfWeek),fe=this.settings.endDateRange||s.DateUtils.adjustEndDateByViewType(new Date(X.getTime()+M),this.settings.viewType,this.settings.firstDayOfWeek);return this.settings.startDateRange&&oe>fe?fe=oe:this.settings.endDateRange&&oe>fe&&(oe=fe),new a.DateRange(oe,fe)},q.prototype.getVisibleAreaTime=function(){return Math.ceil(this.renderHelper.getTaskAreaContainerWidth()/this.tickSize.width)*s.DateUtils.getTickTimeSpan(this.settings.viewType)},q.prototype.zoomIn=function(Z){void 0===Z&&(Z=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomIn(Z)},q.prototype.zoomOut=function(Z){void 0===Z&&(Z=this.renderHelper.getTaskAreaContainerWidth()/2),this.ganttViewApi.zoomOut(Z)},q.prototype.scrollToDate=function(Z){if(Z){var X=Z instanceof Date?s.DateUtils.getOrCreateUTCDate(Z):s.DateUtils.parse(Z);this.scrollToDateCore(X,0)}},q.prototype.showDialog=function(Z,X,M,oe){this.ganttOwner.showDialog(Z,X,M,oe)},q.prototype.showPopupMenu=function(Z){this.ganttOwner.showPopupMenu(Z)},q.prototype.hidePopupMenu=function(){this.ganttOwner.hidePopupMenu&&this.ganttOwner.hidePopupMenu()},q.prototype.collapseAll=function(){this.ganttOwner.collapseAll()},q.prototype.expandAll=function(){this.ganttOwner.expandAll()},q.prototype.onGanttViewContextMenu=function(Z,X,M){return this.ganttOwner.onGanttViewContextMenu(Z,X,M)},q.prototype.changeGanttTaskSelection=function(Z,X){this.ganttOwner.changeGanttTaskSelection(Z,X)},q.prototype.hideTaskEditControl=function(){this.taskEditController.hide()},q.prototype.scrollLeftByViewType=function(){var Z=s.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.scrollToDateCore(Z,1)},q.prototype.scrollToDateCore=function(Z,X){this.renderHelper.setTaskAreaContainerScrollLeftToDate(Z,X)},q.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},q.prototype.initializeStripLinesUpdater=function(){var Z=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval(function(){Z.renderHelper.recreateStripLines()},Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},q.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},q.prototype.getGanttViewStartDate=function(Z){if(!Z)return new Date;var X=Z.map(function(M){return"string"==typeof M.start?new Date(M.start):M.start}).filter(function(M){return(0,x.isDefined)(M)});return X.length>0?X.reduce(function(M,oe){return oe<M?oe:M},X[0]):new Date},q.prototype.getGanttViewEndDate=function(Z){if(!Z)return new Date;var X=Z.map(function(M){return"string"==typeof M.end?new Date(M.end):M.end}).filter(function(M){return(0,x.isDefined)(M)});return X.length>0?X.reduce(function(M,oe){return oe>M?oe:M},X[0]):new Date},q.prototype.getTask=function(Z){return this.getViewItem(Z)?.task},q.prototype.getViewItem=function(Z){var X;return null===(X=this.viewModel)||void 0===X?void 0:X.items[Z]},q.prototype.isValidateDependenciesRequired=function(){return this.settings.validation.validateDependencies&&this.settings.showDependencies},q.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.renderHelper.etalonScaleItemWidths*this.currentZoom},q.prototype.updateView=function(){this.onBeginUpdateView(),this.renderHelper.setTimeScaleContainerScrollLeft(this.taskAreaContainerScrollLeft),this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainerScrollTop),this.onEndUpdateView()},q.prototype.onBeginUpdateView=function(){this[q.taskAreaScrollTopKey]=this.renderHelper.taskAreaContainerScrollTop,this[q.taskAreaScrollLeftKey]=this.renderHelper.taskAreaContainerScrollLeft},q.prototype.onEndUpdateView=function(){delete this[q.taskAreaScrollTopKey],delete this[q.taskAreaScrollLeftKey],delete this[q.taskTextHeightKey]},Object.defineProperty(q.prototype,"taskAreaContainerScrollTop",{get:function(){var Z;return null!==(Z=this[q.taskAreaScrollTopKey])&&void 0!==Z?Z:this.renderHelper.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(q.prototype,"taskAreaContainerScrollLeft",{get:function(){var Z;return null!==(Z=this[q.taskAreaScrollLeftKey])&&void 0!==Z?Z:this.renderHelper.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),q.prototype.processScroll=function(Z){this.hideTaskEditControl(),this.renderHelper.processScroll(Z)},q.prototype.allowTaskAreaBorders=function(Z){return Z?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},q.prototype.getScaleItemText=function(Z,X){return this.renderHelper.getScaleItemText(Z,X)},q.prototype.getTaskText=function(Z){return this.renderHelper.getTaskText(Z)},q.prototype.rowHasChildren=function(Z){return this.getViewItem(Z)?.children.length>0},q.prototype.rowHasSelection=function(Z){return this.getViewItem(Z)?.selected},q.prototype.getAllVisibleTaskIndices=function(Z,X){return this.viewModel.getAllVisibleTaskIndices(Z,X)},q.prototype.getVisibleDependencyKeysByTaskRange=function(Z){var X=this.viewModel,M=Z.map(function(oe){return X.tasks.items[oe].internalId});return X.dependencies.items.filter(function(oe){return M.indexOf(oe.successorId)>-1||M.indexOf(oe.predecessorId)>-1}).map(function(oe){return oe.internalId})},q.prototype.getTreeListTableStyle=function(){var Z,X;return null===(X=(Z=this.ganttOwner).getTreeListTableStyle)||void 0===X?void 0:X.call(Z)},q.prototype.getTreeListColCount=function(){var Z,X;return null===(X=(Z=this.ganttOwner).getTreeListColCount)||void 0===X?void 0:X.call(Z)},q.prototype.getTreeListHeaderInfo=function(Z){var X,M;return null===(M=(X=this.ganttOwner).getTreeListHeaderInfo)||void 0===M?void 0:M.call(X,Z)},q.prototype.getTreeListCellInfo=function(Z,X,M){var oe,fe;return null===(fe=(oe=this.ganttOwner).getTreeListCellInfo)||void 0===fe?void 0:fe.call(oe,Z,X,M)},q.prototype.getTreeListEmptyDataCellInfo=function(){var Z,X;return null===(X=(Z=this.ganttOwner).getTreeListEmptyDataCellInfo)||void 0===X?void 0:X.call(Z)},q.prototype.exportToPdf=function(Z){var X;return null!==(X=Z.docCreateMethod)&&void 0!==X||(Z.docCreateMethod=this.getDefaultPdfDocCreateMethod()),new E.PdfGanttExporter(new h.GanttExportCalculator(this,Z)).export()},q.prototype.getDefaultPdfDocCreateMethod=function(){var Z;return null===(Z=window.jspdf)||void 0===Z?void 0:Z.jsPDF},q.prototype.getTaskDependencies=function(Z){return this.viewModel.dependencies.items.filter(function(X){return X.predecessorId==Z||X.successorId==Z})},q.prototype.isHighlightRowElementAllowed=function(Z){var X=this.getViewItem(Z);return Z%2!=0&&this.settings.areAlternateRowsEnabled||X?.children.length>0},q.prototype.calculateAutoViewType=function(Z,X){var M=(X.getTime()-Z.getTime())/36e5;return M>8760?W.ViewType.Years:M>720?W.ViewType.Months:M>168?W.ViewType.Weeks:M>24?W.ViewType.Days:M>6?W.ViewType.SixHours:M>1?W.ViewType.Hours:W.ViewType.TenMinutes},q.prototype.getExternalTaskAreaContainer=function(Z){return this.ganttOwner.getExternalTaskAreaContainer(Z)},q.prototype.prepareExternalTaskAreaContainer=function(Z,X){return this.ganttOwner.prepareExternalTaskAreaContainer(Z,X)},q.prototype.getHeaderHeight=function(){return this.ganttOwner.getHeaderHeight()},q.prototype.changeTaskExpanded=function(Z,X){var M=this.getTaskByPublicId(Z);M&&this.viewModel.changeTaskExpanded(M.internalId,X)},q.prototype.expandTask=function(Z){this.viewModel.changeTaskExpanded(Z,!0)},q.prototype.collapseTask=function(Z){this.viewModel.changeTaskExpanded(Z,!1)},q.prototype.showTask=function(Z){this.viewModel.changeTaskVisibility(Z,!0)},q.prototype.hideTask=function(Z){this.viewModel.changeTaskVisibility(Z,!1)},q.prototype.getTaskVisibility=function(Z){return this.viewModel.getTaskVisibility(Z)},q.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},q.prototype.getTaskSelected=function(Z){return this.viewModel.getTaskSelected(Z)},q.prototype.setViewType=function(Z,X){void 0===X&&(X=!0),this.ganttViewApi.setViewType(Z,X)},q.prototype.setViewTypeRange=function(Z,X){this.ganttViewApi.setViewTypeRange(Z,X)},q.prototype.setTaskTitlePosition=function(Z){this.settings.taskTitlePosition!==Z&&(this.settings.taskTitlePosition=Z,this.resetAndUpdate())},q.prototype.setShowResources=function(Z){this.settings.showResources!==Z&&(this.settings.showResources=Z,this.resetAndUpdate())},q.prototype.toggleResources=function(){this.setShowResources(!this.settings.showResources)},q.prototype.setShowDependencies=function(Z){this.settings.showDependencies!==Z&&(this.settings.showDependencies=Z,this.resetAndUpdate())},q.prototype.toggleDependencies=function(){this.setShowDependencies(!this.settings.showDependencies)},q.prototype.setFirstDayOfWeek=function(Z){this.settings.firstDayOfWeek!==Z&&(this.settings.firstDayOfWeek=Z,this.resetAndUpdate())},q.prototype.setStartDateRange=function(Z){p.DateTimeUtils.areDatesEqual(this.settings.startDateRange,Z)||(this.settings.startDateRange=new Date(Z),this.resetAndUpdate())},q.prototype.setEndDateRange=function(Z){p.DateTimeUtils.areDatesEqual(this.settings.endDateRange,Z)||(this.settings.endDateRange=new Date(Z),this.resetAndUpdate())},q.prototype.loadOptionsFromGanttOwner=function(){var Z,X=this;this.tickSize.height=this.ganttOwner.getRowHeight();var M=this.ganttOwner.getGanttTasksData();this.dataRange=new a.DateRange(this.getGanttViewStartDate(M),this.getGanttViewEndDate(M)),null==this.settings.viewType&&(this.settings.viewType=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.updateTickSizeWidth(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.dispatcher=new b.ModelChangesDispatcher;var oe=this.ganttOwner.getModelChangesListener();oe&&this.dispatcher.onModelChanged.add(oe),this.viewModel=new z.ViewVisualModel(this,M,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new y.ModelManipulator(this.viewModel,this.dispatcher),null===(Z=this.history)||void 0===Z||Z.historyItems.forEach(function(fe){return fe.setModelManipulator(X.modelManipulator)})},q.prototype.resetAndUpdate=function(){this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.viewModel.updateRange(this.range),this.renderHelper.resetAndUpdate(this.tickSize,this.range,this.settings.viewType,this.viewModel,this.settings.firstDayOfWeek),I.Browser.IE&&this.taskEditController.createElements(),this.updateView()},q.prototype.cleanMarkup=function(){this.renderHelper.taskAreaManagerDetachEvents(),this.taskEditController.detachEvents(),this.clearStripLinesUpdater(),this.renderHelper.reset(),clearTimeout(this._scrollTimeOut)},q.prototype.checkAndProcessModelChanges=function(){var Z=this.ganttOwner.getGanttTasksData(),X=this.viewModel.refreshTaskDataIfRequires(Z);return X&&this.resetAndUpdate(),X},q.prototype.updateHistoryObsoleteInsertedKey=function(Z,X,M){var oe;null===(oe=this.history)||void 0===oe||oe.updateObsoleteInsertedKey(Z,X,M),M===ee.GanttDataObjectNames.dependency&&this.renderHelper.updateRenderedConnectorLinesId(Z,X)},q.prototype.updateRowHeights=function(Z){if(this.tickSize.height!==Z){this.tickSize.height=Z;var X=this.renderHelper.getTaskAreaContainerScrollLeft();this.resetAndUpdate(),this.renderHelper.setTaskAreaContainerScrollLeft(X)}},q.prototype.selectTask=function(Z){this.selectDependency(null),this.viewModel.changeTaskSelected(Z,!0),this.currentSelectedTaskID=Z,this.updateBarManager()},q.prototype.unselectTask=function(Z){this.viewModel.changeTaskSelected(Z,!1),this.updateBarManager()},q.prototype.selectTaskById=function(Z){this.unselectCurrentSelectedTask();var X=this.getTaskByPublicId(Z);X&&this.selectTask(X.internalId)},q.prototype.selectDependency=function(Z){this.taskEditController.selectDependency(Z),this.renderHelper.createConnectorLines()},q.prototype.getTaskAreaContainer=function(){return this.renderHelper.taskAreaContainer},q.prototype.setWidth=function(Z){this.renderHelper.setMainElementWidth(Z)},q.prototype.setHeight=function(Z){this.renderHelper.setMainElementHeight(Z)},q.prototype.setAllowSelection=function(Z){this.settings.allowSelectTask=Z},q.prototype.setEditingSettings=function(Z){this.settings.editing=Z,this.updateBarManager()},q.prototype.setValidationSettings=function(Z){this.settings.validation=Z},q.prototype.setRowLinesVisible=function(Z){this.settings.areHorizontalBordersEnabled=Z,this.renderHelper.prepareTaskAreaContainer(),this.resetAndUpdate()},q.prototype.setStripLines=function(Z){this.settings.stripLines=T.StripLineSettings.parse(Z),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.renderHelper.recreateStripLines()},q.prototype.deleteTask=function(Z){var X=this.getTaskByPublicId(Z.toString());X&&this.commandManager.removeTaskCommand.execute(X.internalId,!1,!0)},q.prototype.insertTask=function(Z){if(Z){var X=null!=Z.parentId?String(Z.parentId):null,M=this.getTaskByPublicId(X),oe=this.viewModel.getRootTaskId(),fe="string"==typeof Z.start?new Date(Z.start):Z.start,Te="string"==typeof Z.end?new Date(Z.end):Z.end,Be={parentId:oe&&X===oe?X:M?.internalId,title:Z.title,start:fe,end:Te,progress:parseInt(Z.progress)||0,color:Z.color};if(this.commandManager.createTaskCommand.execute(Be))return this.getLastInsertedTaskId()}return""},q.prototype.updateTask=function(Z,X){var M=this.getTaskByPublicId(Z.toString()),oe=this._getTaskDataForUpdate(X,M);oe&&this.commandManager.updateTaskCommand.execute(M.internalId,oe)},q.prototype.getTaskData=function(Z){var X=this.getTaskByPublicId(Z.toString());if(X)return this.viewModel.getTaskObjectForDataSource(X)},q.prototype.insertDependency=function(Z){if(Z){var X=String(Z.predecessorId),M=this.getTaskByPublicId(X),oe=String(Z.successorId),fe=this.getTaskByPublicId(oe),Te=Z.type;M&&fe&&this.validationController.canCreateDependency(X,oe)&&this.commandManager.createDependencyCommand.execute(M.internalId,fe.internalId,Te)}},q.prototype.deleteDependency=function(Z){var X=this.viewModel.convertPublicToInternalKey("dependency",Z);(0,x.isDefined)(X)&&this.commandManager.removeDependencyCommand.execute(X)},q.prototype.getDependencyData=function(Z){return this.viewModel.getDependencyObjectForDataSource(Z)},q.prototype.insertResource=function(Z,X){var M=this;Z&&this.commandManager.createResourceCommand.execute(String(Z.text),Z.color&&String(Z.color),function(oe){if((0,x.isDefined)(X))for(var fe=0;fe<X.length;fe++)M.assignResourceToTask(oe,X[fe])})},q.prototype.deleteResource=function(Z){var X=this.viewModel.convertPublicToInternalKey("resource",Z);(0,x.isDefined)(X)&&this.commandManager.removeResourceCommand.execute(X)},q.prototype.assignResourceToTask=function(Z,X){var M=this.viewModel.convertPublicToInternalKey("resource",Z),oe=this.viewModel.convertPublicToInternalKey("task",X);(0,x.isDefined)(M)&&(0,x.isDefined)(oe)&&this.commandManager.assignResourceCommand.execute(M,oe)},q.prototype.unassignResourceFromTask=function(Z,X){var M=this.viewModel.findAssignment(Z,X);M&&this.commandManager.deassignResourceCommand.execute(M.internalId)},q.prototype.unassignAllResourcesFromTask=function(Z){var X=this,M=this.viewModel.convertPublicToInternalKey("task",Z);this.viewModel.findAllTaskAssignments(M).forEach(function(oe){return X.commandManager.deassignResourceCommand.execute(oe.internalId)})},q.prototype.getResourceData=function(Z){return this.viewModel.getResourceObjectForDataSource(Z)},q.prototype.getResourceAssignmentData=function(Z){return this.viewModel.getResourceAssignmentObjectForDataSource(Z)},q.prototype.getTaskResources=function(Z){var X=this.viewModel,M=X.getItemByPublicId("task",Z);return M&&X.getAssignedResources(M).items},q.prototype.getVisibleTaskKeys=function(){return this.viewModel.getVisibleTasks().map(function(Z){return Z.id})},q.prototype.getVisibleDependencyKeys=function(){return this.viewModel.getVisibleDependencies().map(function(Z){return Z.id})},q.prototype.getVisibleResourceKeys=function(){return this.viewModel.getVisibleResources().map(function(Z){return Z.id})},q.prototype.getVisibleResourceAssignmentKeys=function(){return this.viewModel.getVisibleResourceAssignments().map(function(Z){return Z.id})},q.prototype.getTasksExpandedState=function(){return this.viewModel.getTasksExpandedState()},q.prototype.applyTasksExpandedState=function(Z){this.viewModel.applyTasksExpandedState(Z)},q.prototype.updateWithDataReload=function(Z){if(this._updateWithModelReloadLockedCounter>0)this._pendingUpdateInfo={keepExpandState:Z};else{var X=Z&&this.getTasksExpandedState();this.loadOptionsFromGanttOwner(),Z?this.applyTasksExpandedState(X):this.resetAndUpdate();var M=j.DialogBase.activeInstance;M&&M.canRefresh&&"TaskEdit"===M.getDialogName()&&M.refresh()}},q.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},q.prototype.setTaskValue=function(Z,X,M){var oe=this.commandManager.updateTaskCommand,fe=this.getTaskByPublicId(Z),Te={};return fe&&("title"===X&&(Te[X]=M||""),"progress"===X&&(Te[X]=M),"start"===X&&(Te[X]=p.DateTimeUtils.getMinDate(M,fe.end)),"end"===X&&(Te[X]=p.DateTimeUtils.getMaxDate(M,fe.start))),Object.keys(Te).length>0&&oe.execute(fe.internalId,Te)},q.prototype.getLastInsertedTaskId=function(){var Z=this.history.historyItems.filter(function(M){return M instanceof g.CreateTaskHistoryItem}),X=Z[Z.length-1];return X&&X.insertedKey},q.prototype.getTaskByPublicId=function(Z){return this.viewModel.tasks.getItemByPublicId(Z)},q.prototype.getPrevTask=function(Z){var X=this.viewModel.findItem(Z),M=(X.parent||this.viewModel.root).children.indexOf(X)-1;return M>-1?X.parent.children[M].task:X.parent.task},q.prototype.getTaskIdByInternalId=function(Z){var X=this.viewModel.findItem(Z),M=X&&X.task;return M?M.id:null},q.prototype.isTaskHasChildren=function(Z){var X=this.viewModel.findItem(Z);return X&&X.children.length>0},q.prototype.requireFirstLoadParentAutoCalc=function(){var Z=this.ganttOwner;return Z.getRequireFirstLoadParentAutoCalc&&Z.getRequireFirstLoadParentAutoCalc()},q.prototype.updateOwnerInAutoParentMode=function(){this.viewModel.parentAutoCalc&&this.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())},q.prototype.getOwnerControlMainElement=function(){var Z=this.ganttOwner;return Z.getMainElement&&Z.getMainElement()},q.prototype.adjustOwnerControl=function(){var Z=this.ganttOwner;Z.adjustControl&&Z.adjustControl()},q.prototype.applySettings=function(Z,X){void 0===X&&(X=!1);var M=O.Settings.parse(Z),oe=X||this.settings.equal(M);this.settings=M,oe||this.resetAndUpdate()},q.prototype.getDataUpdateErrorCallback=function(){var Z=this,X=this.history,M=X.getCurrentProcessingItemInfo();return function(){Z.dispatcher.lock(),X.rollBackAndRemove(M),Z.dispatcher.unlock(),Z.updateBarManager()}},q.prototype.setTaskTooltipContentTemplate=function(Z){this.settings.taskTooltipContentTemplate=Z},q.prototype.setTaskProgressTooltipContentTemplate=function(Z){this.settings.taskProgressTooltipContentTemplate=Z},q.prototype.setTaskTimeTooltipContentTemplate=function(Z){this.settings.taskTimeTooltipContentTemplate=Z},q.prototype.setTaskContentTemplate=function(Z){this.settings.taskContentTemplate=Z},q.prototype.updateBarManager=function(){this.barManager.updateItemsState([])},q.prototype.onTaskAreaClick=function(Z,X){var M,oe=this.viewModel.items[Z];return oe&&this.onTaskClick(null===(M=oe.task)||void 0===M?void 0:M.id,X)},q.prototype.onTaskAreaDblClick=function(Z,X){var M=this.viewModel.items[Z];M&&this.onTaskDblClick(M.task.id,X)&&this.commandManager.showTaskEditDialog.execute(M.task)},q.prototype.onTaskAreaContextMenu=function(Z,X,M){var oe,fe,Be=X,ze=this.viewModel,ae="dependency"===M?ze.convertInternalToPublicKey("dependency",U.EvtUtils.getEventSource(X).getAttribute("dependency-id")):null===(fe=null===(oe=ze.items[Z])||void 0===oe?void 0:oe.task)||void 0===fe?void 0:fe.id;if(this.onGanttViewContextMenu(X,ae,M)){var _e={event:X,type:M,key:ae,position:new Y.Point(U.EvtUtils.getEventX(Be),U.EvtUtils.getEventY(Be))};this.showPopupMenu(_e)}},q.prototype.onTaskSelectionChanged=function(Z,X){var M=this,oe=this.viewModel.items[Z];this.isFocus=K.DomUtils.isItParent(this.renderHelper.taskArea,U.EvtUtils.getEventSource(X)),oe&&this.isFocus&&this.settings.allowSelectTask&&setTimeout(function(){M.changeGanttTaskSelection(oe.task.id,!0)},0)},q.prototype.onTaskClick=function(Z,X){return!this.ganttOwner.onTaskClick||this.ganttOwner.onTaskClick(Z,X)},q.prototype.onTaskDblClick=function(Z,X){return!this.ganttOwner.onTaskDblClick||this.ganttOwner.onTaskDblClick(Z,X)},q.prototype.getDateFormat=function(Z){return this.ganttOwner.getFormattedDateText?this.ganttOwner.getFormattedDateText(Z):this.getDefaultDateFormat(Z)},q.prototype.getDefaultDateFormat=function(Z){return("0"+Z.getDate()).slice(-2)+"/"+("0"+(Z.getMonth()+1)).slice(-2)+"/"+Z.getFullYear()+" "+("0"+Z.getHours()).slice(-2)+":"+("0"+Z.getMinutes()).slice(-2)},q.prototype.destroyTemplate=function(Z){this.ganttOwner.destroyTemplate?this.ganttOwner.destroyTemplate(Z):Z.innerHTML=""},q.prototype.onTaskAreaSizeChanged=function(Z){this.ganttOwner.onTaskAreaSizeChanged&&this.ganttOwner.onTaskAreaSizeChanged(Z)},q.prototype.showTaskEditDialog=function(){this.commandManager.showTaskEditDialog.execute()},q.prototype.showTaskDetailsDialog=function(Z){var X=this.getTaskByPublicId(Z);X&&this.commandManager.showTaskEditDialog.execute(X,!0)},q.prototype.showResourcesDialog=function(){this.commandManager.showResourcesDialog.execute()},q.prototype.getCommandByKey=function(Z){return this.commandManager.getCommand(Z)},q.prototype._getTaskDataForUpdate=function(Z,X){var M={};return X&&Z&&((0,x.isDefined)(Z.title)&&Z.title!==X.title&&(M.title=Z.title),(0,x.isDefined)(Z.progress)&&Z.progress!==X.progress&&(M.progress=Z.progress),(0,x.isDefined)(Z.start)&&Z.start!==X.start&&(M.start=Z.start),(0,x.isDefined)(Z.end)&&Z.end!==X.end&&(M.end=Z.end),(0,x.isDefined)(Z.color)&&Z.color!==X.color&&(M.color=Z.color)),Object.keys(M).length>0?M:null},q.prototype.updateViewDataRange=function(){var Z=this.viewModel,X=Z.getTaskMinStart(),M=Z.getTaskMaxEnd(),oe=X.getTime()<this.dataRange.start.getTime(),fe=M.getTime()>this.dataRange.end.getTime();oe&&(this.dataRange.start=X),fe&&(this.dataRange.end=M),(oe||fe)&&this.resetAndUpdate()},q.taskAreaScrollLeftKey=(q.cachedPrefix="cached_")+"taskAreaScrollLeft",q.taskAreaScrollTopKey=q.cachedPrefix+"taskAreaScrollTop",q.taskTextHeightKey=q.cachedPrefix+"taskTextHeight",q}();u.GanttView=G},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Resource=void 0;var c=o(0),I=o(1),C=function(g){function a(){var p=g.call(this)||this;return p.text="",p.color="",p}return c.__extends(a,g),a.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(g.prototype.assignFromObject.call(this,p),this.text=p.text,(0,I.isDefined)(p.color)&&(this.color=p.color))},a}(o(2).DataObject);u.Resource=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceAssigningArguments=void 0;var c=o(0),I=function(C){function g(a,p){var s=C.call(this,null)||this;return s.values={resourceId:a,taskId:p},s}return c.__extends(g,C),Object.defineProperty(g.prototype,"resourceId",{get:function(){return this.values.resourceId},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskId",{get:function(){return this.values.taskId},enumerable:!1,configurable:!0}),g}(o(11).BaseArguments);u.ResourceAssigningArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.AssignResourceHistoryItem=void 0;var c=o(0),I=o(14),C=o(2),g=o(18),a=function(p){function s(l,d,h){var v=p.call(this,l)||this;return v.resourceId=d,v.taskId=h,v}return c.__extends(s,p),s.prototype.redo=function(){var l;null!==(l=this.insertedKey)&&void 0!==l||(this.insertedKey=g.MathUtils.generateGuid()),this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.insertedKey)},s.prototype.undo=function(){this.modelManipulator.resource.deassig(this.insertedKey)},Object.defineProperty(s.prototype,"keyUpdaters",{get:function(){var l=this;return[{objectType:C.GanttDataObjectNames.resourceAssignment,getKey:function(){return l.insertedKey},updateKey:function(d){return l.insertedKey=d}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return l.taskId},updateKey:function(d){return l.taskId=d}},{objectType:C.GanttDataObjectNames.resource,getKey:function(){return l.resourceId},updateKey:function(d){return l.resourceId=d}}]},enumerable:!1,configurable:!0}),s}(I.HistoryItem);u.AssignResourceHistoryItem=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DependencyCommandBase=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p}(I.CommandBase);u.DependencyCommandBase=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskInsertingArguments=void 0;var c=o(0),I=function(C){function g(a,p){var s=C.call(this,a)||this;return s.values=p??{},s}return c.__extends(g,C),Object.defineProperty(g.prototype,"start",{get:function(){return this.values.start},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"end",{get:function(){return this.values.end},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"title",{get:function(){return this.values.title},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"progress",{get:function(){return this.values.progress},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"parentId",{get:function(){return this.values.parentId},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),g}(o(11).BaseArguments);u.TaskInsertingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.UpdateTaskHistoryItem=void 0;var c=o(0),I=o(2),C=o(14),g=o(54),a=function(p){function s(l,d,h){var v=p.call(this,l)||this;return v.taskId=d,v.newValues=h,v}return c.__extends(s,p),s.prototype.redo=function(){var l=this.modelManipulator.task.update(this.taskId,this.newValues);this.oldState=new g.HistoryItemState(this.taskId,l)},s.prototype.undo=function(){this.modelManipulator.task.update(this.taskId,this.oldState.value)},Object.defineProperty(s.prototype,"keyUpdaters",{get:function(){var l=this;return[{objectType:I.GanttDataObjectNames.task,getKey:function(){return l.taskId},updateKey:function(d){return l.taskId=d}}]},enumerable:!1,configurable:!0}),s}(C.HistoryItem);u.UpdateTaskHistoryItem=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.HistoryItemState=void 0,u.HistoryItemState=function(I,C){this.id=I,this.value=C}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Time=void 0;var c=function(){function I(C,g,a,p){void 0===C&&(C=0),void 0===g&&(g=0),void 0===a&&(a=0),void 0===p&&(p=0),this._hour=0,this._min=0,this._sec=0,this._msec=0,this._fullmsec=0,this.hour=C,this.min=g,this.sec=a,this.msec=p}return Object.defineProperty(I.prototype,"hour",{get:function(){return this._hour},set:function(C){C>=0&&C<24&&(this._hour=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"min",{get:function(){return this._min},set:function(C){C>=0&&C<60&&(this._min=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"sec",{get:function(){return this._sec},set:function(C){C>=0&&C<60&&(this._sec=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"msec",{get:function(){return this._msec},set:function(C){C>=0&&C<1e3&&(this._msec=C,this.updateFullMilleconds())},enumerable:!1,configurable:!0}),I.prototype.updateFullMilleconds=function(){this._fullmsec=1e3*(60*(60*this._hour+this._min)+this._sec)+this._msec},I.prototype.getTimeInMilleconds=function(){return this._fullmsec},I}();u.Time=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TimeRange=void 0;var c=o(8),I=function(){function C(g,a){c.DateTimeUtils.caclTimeDifference(g,a)>=0?(this._start=g,this._end=a):(this._start=a,this._end=g)}return Object.defineProperty(C.prototype,"start",{get:function(){return this._start},set:function(g){g&&c.DateTimeUtils.caclTimeDifference(g,this._end)>=0&&(this._start=g)},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"end",{get:function(){return this._end},set:function(g){g&&c.DateTimeUtils.caclTimeDifference(this._start,g)>=0&&(this._end=g)},enumerable:!1,configurable:!0}),C.prototype.isTimeInRange=function(g){return c.DateTimeUtils.caclTimeDifference(this._start,g)>=0&&c.DateTimeUtils.caclTimeDifference(g,this._end)>=0},C.prototype.hasIntersect=function(g){return this.isTimeInRange(g.start)||this.isTimeInRange(g.end)||g.isTimeInRange(this.start)||g.isTimeInRange(this.end)},C.prototype.concatWith=function(g){return!!this.hasIntersect(g)&&(this.start=c.DateTimeUtils.getMinTime(this.start,g.start),this.end=c.DateTimeUtils.getMaxTime(this.end,g.end),!0)},C}();u.TimeRange=I},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.DayOfWeekMonthlyOccurrence=void 0,(c=u.DayOfWeekMonthlyOccurrence||(u.DayOfWeekMonthlyOccurrence={}))[c.First=0]="First",c[c.Second=1]="Second",c[c.Third=2]="Third",c[c.Forth=3]="Forth",c[c.Last=4]="Last"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GridElementInfo=void 0;var c=o(5),I=o(12),C=o(127),g=function(){function a(p,s,l){this.id=a.id++,this.position=new c.Point(void 0,void 0),this.size=new I.Size(0,0),this.margins=new C.Margins(void 0,void 0,void 0,void 0),this.attr={},this.style={},this.additionalInfo={},p&&(this.className=p),s&&this.setPosition(s),l&&this.setSize(l)}return a.prototype.setSize=function(p){this.size.width=p.width,this.size.height=p.height},a.prototype.setPosition=function(p){this.position.x=p.x,this.position.y=p.y},a.prototype.assignToElement=function(p){this.assignPosition(p),this.assignSize(p),this.assignMargins(p),this.className&&(p.className=this.className)},a.prototype.assignPosition=function(p){null!=this.position.x&&(p.style.left=this.position.x+"px"),null!=this.position.y&&(p.style.top=this.position.y+"px")},a.prototype.assignSize=function(p){this.size.width&&(p.style.width=this.size.width+"px"),this.size.height&&(p.style.height=this.size.height+"px")},a.prototype.assignMargins=function(p){this.margins.left&&(p.style.marginLeft=this.margins.left+"px"),this.margins.top&&(p.style.marginTop=this.margins.top+"px"),this.margins.right&&(p.style.marginRight=this.margins.right+"px"),this.margins.bottom&&(p.style.marginBottom=this.margins.bottom+"px")},a.prototype.setAttribute=function(p,s){this.attr[p]=s},a.id=0,a}();u.GridElementInfo=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StripLine=void 0;var c=o(1),I=function(){function C(g,a,p,s,l){this.isCurrent=!1,this.start=g,this.end=a,this.title=p,this.cssClass=s,this.isCurrent=l}return C.parse=function(g){var a=new C;return g&&((0,c.isDefined)(g.start)&&(a.start=g.start),(0,c.isDefined)(g.end)&&(a.end=g.end),(0,c.isDefined)(g.title)&&(a.title=g.title),(0,c.isDefined)(g.cssClass)&&(a.cssClass=g.cssClass)),a},C.prototype.clone=function(){return new C(this.start,this.end,this.title,this.cssClass,this.isCurrent)},C.prototype.equal=function(g){var a=!0;return(a=(a=(a=a&&this.start==g.start)&&this.end==g.end)&&this.title==g.title)&&this.cssClass==g.cssClass},C}();u.StripLine=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfDependencyLineInfo=void 0;var c=o(5),I=o(17),C=function(){function g(){}return g.prototype.assign=function(a){var p;this._copyPoints(a.points),this.arrowInfo=a.arrowInfo,null!==(p=this.fillColor)&&void 0!==p||(this.fillColor=new I.Color),this.fillColor.assign(a.fillColor)},g.prototype._copyPoints=function(a){var p=this;this.points=new Array,a?.forEach(function(s){return p.points.push(new c.Point(s.x,s.y))})},g}();u.PdfDependencyLineInfo=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfTaskResourcesInfo=void 0;var c=o(1),I=o(26),C=function(){function g(a,p,s,l){a&&(this.text=a),p&&(this.style=new I.StyleDef(p)),(0,c.isDefined)(s)&&(this.x=s),(0,c.isDefined)(l)&&(this.y=l)}return g.prototype.assign=function(a){this.text=a.text,this.style=new I.StyleDef(a.style),this.x=a.x,this.y=a.y},g}();u.PdfTaskResourcesInfo=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Width=void 0;var c=o(35),I=o(3),C=function(){function g(a){this.assign(a)}return g.prototype.assign=function(a){if(a instanceof g)this._widthInternal=a._widthInternal;else{var p="number"==typeof a?a:parseInt(a);isNaN(p)?this.assignFromString(a):this._widthInternal=p}},g.prototype.assignFromString=function(a){if(a){var p=I.DomUtils.pxToInt(a);this._widthInternal=p||c.PredefinedStyles.getPredefinedStringOrUndefined(a,c.PredefinedStyles.width)}},g.prototype.hasValue=function(){return!!this._widthInternal},g.prototype.getValue=function(){return this._widthInternal},g}();u.Width=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfTimeMarkerInfo=void 0;var c=o(5),I=o(12),C=o(1),g=o(17),a=function(){function p(s,l,d,h,v){this.lineColor=new g.Color,this.color=new g.Color,s&&(this.start=new c.Point(s.x,s.y)),l&&(this.size=new I.Size(l.width,l.height)),d&&this.color.assign(d),h&&this.lineColor.assign(h),(0,C.isDefined)(v)&&(this.isStripLine=v)}return p.prototype.assign=function(s){var l,d,h,v;s&&(this.start=new c.Point(null===(l=s.start)||void 0===l?void 0:l.x,null===(d=s.start)||void 0===d?void 0:d.y),this.size=new I.Size(null===(h=s.size)||void 0===h?void 0:h.width,null===(v=s.size)||void 0===v?void 0:v.height),this.isStripLine=s.isStripLine,this.color.assign(s.color),this.lineColor.assign(s.lineColor))},p}();u.PdfTimeMarkerInfo=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EllipsisHelper=void 0;var c=function(){function I(){}return I.limitPdfTextWithEllipsis=function(C,g,a){if(!g?.getTextWidth||!a)return C;if(g.getTextWidth(C.toString())>a){for(var p=C,s=C.length-1;g.getTextWidth(p)>a&&s>0;)p=p.substring(0,s)+I.ellipsis,s--;return p}return C},I.ellipsis="...",I}();u.EllipsisHelper=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TooltipSettings=void 0;var c=o(1),I=function(){function C(){}return C.parse=function(g){var a=new C;return g&&((0,c.isDefined)(g.getHeaderHeight)&&(a.getHeaderHeight=g.getHeaderHeight),(0,c.isDefined)(g.getTaskTooltipContentTemplate)&&(a.getTaskTooltipContentTemplate=g.getTaskTooltipContentTemplate),(0,c.isDefined)(g.getTaskProgressTooltipContentTemplate)&&(a.getTaskProgressTooltipContentTemplate=g.getTaskProgressTooltipContentTemplate),(0,c.isDefined)(g.getTaskTimeTooltipContentTemplate)&&(a.getTaskTimeTooltipContentTemplate=g.getTaskTimeTooltipContentTemplate),(0,c.isDefined)(g.destroyTemplate)&&(a.destroyTemplate=g.destroyTemplate),(0,c.isDefined)(g.formatDate)&&(a.formatDate=g.formatDate)),a},C}();u.TooltipSettings=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.KeyCode=u.ModifierKey=u.KeyUtils=void 0;var c,I,s,C=o(10),g=o(171),a=o(39),p=function(){function s(){}return s.getKeyModifiers=function(l){var d=0;return l.altKey&&(d|=c.Alt),l.ctrlKey&&(d|=c.Ctrl),l.shiftKey&&(d|=c.Shift),l.metaKey&&(d|=c.Meta),d},s.getShortcutCode=function(l,d,h,v,x){var b=l;return b|=d?c.Ctrl:0,b|=h?c.Shift:0,(b|=v?c.Alt:0)|(x?c.Meta:0)},s.getShortcutCodeByEvent=function(l){return s.getShortcutCode(s.getEventKeyCode(l),l.ctrlKey,l.shiftKey,l.altKey,!!C.Browser.MacOSPlatform&&l.metaKey)},s.getEventKeyCode=function(l){return C.Browser.NetscapeFamily||C.Browser.Opera?l.which:l.keyCode},s.parseShortcutString=function(l){if(!l)return 0;var d=!1,h=!1,v=!1,x=!1,b=null,y=l.toString().split("+");if(y.length>0)for(var E=0;E<y.length;E++){var S=a.StringUtils.trim(y[E].toUpperCase());switch(S){case"CONTROL":case"CONTROLKEY":case"CTRL":d=!0;break;case"SHIFT":case"SHIFTKEY":h=!0;break;case"ALT":v=!0;break;case"CMD":x=!0;break;case"F1":b=I.F1;break;case"F2":b=I.F2;break;case"F3":b=I.F3;break;case"F4":b=I.F4;break;case"F5":b=I.F5;break;case"F6":b=I.F6;break;case"F7":b=I.F7;break;case"F8":b=I.F8;break;case"F9":b=I.F9;break;case"F10":b=I.F10;break;case"F11":b=I.F11;break;case"F12":b=I.F12;break;case"RETURN":case"ENTER":b=I.Enter;break;case"HOME":b=I.Home;break;case"END":b=I.End;break;case"LEFT":b=I.Left;break;case"RIGHT":b=I.Right;break;case"UP":b=I.Up;break;case"DOWN":b=I.Down;break;case"PAGEUP":b=I.PageUp;break;case"PAGEDOWN":b=I.PageDown;break;case"SPACE":b=I.Space;break;case"TAB":b=I.Tab;break;case"BACKSPACE":case"BACK":b=I.Backspace;break;case"CONTEXT":b=I.ContextMenu;break;case"ESCAPE":case"ESC":b=I.Esc;break;case"DELETE":case"DEL":b=I.Delete;break;case"INSERT":case"INS":b=I.Insert;break;case"PLUS":b="+".charCodeAt(0);break;default:b=S.charCodeAt(0)}}else alert(g.EncodeUtils.decodeViaTextArea("Invalid shortcut"));return s.getShortcutCode(b,d,h,v,x)},s}();u.KeyUtils=p,(s=c=u.ModifierKey||(u.ModifierKey={}))[s.None=0]="None",s[s.Ctrl=65536]="Ctrl",s[s.Shift=262144]="Shift",s[s.Alt=1048576]="Alt",s[s.Meta=16777216]="Meta",function(s){s[s.Backspace=8]="Backspace",s[s.Tab=9]="Tab",s[s.Enter=13]="Enter",s[s.Pause=19]="Pause",s[s.CapsLock=20]="CapsLock",s[s.Esc=27]="Esc",s[s.Space=32]="Space",s[s.PageUp=33]="PageUp",s[s.PageDown=34]="PageDown",s[s.End=35]="End",s[s.Home=36]="Home",s[s.Left=37]="Left",s[s.Up=38]="Up",s[s.Right=39]="Right",s[s.Down=40]="Down",s[s.Insert=45]="Insert",s[s.Delete=46]="Delete",s[s.Key_0=48]="Key_0",s[s.Key_1=49]="Key_1",s[s.Key_2=50]="Key_2",s[s.Key_3=51]="Key_3",s[s.Key_4=52]="Key_4",s[s.Key_5=53]="Key_5",s[s.Key_6=54]="Key_6",s[s.Key_7=55]="Key_7",s[s.Key_8=56]="Key_8",s[s.Key_9=57]="Key_9",s[s.Key_a=65]="Key_a",s[s.Key_b=66]="Key_b",s[s.Key_c=67]="Key_c",s[s.Key_d=68]="Key_d",s[s.Key_e=69]="Key_e",s[s.Key_f=70]="Key_f",s[s.Key_g=71]="Key_g",s[s.Key_h=72]="Key_h",s[s.Key_i=73]="Key_i",s[s.Key_j=74]="Key_j",s[s.Key_k=75]="Key_k",s[s.Key_l=76]="Key_l",s[s.Key_m=77]="Key_m",s[s.Key_n=78]="Key_n",s[s.Key_o=79]="Key_o",s[s.Key_p=80]="Key_p",s[s.Key_q=81]="Key_q",s[s.Key_r=82]="Key_r",s[s.Key_s=83]="Key_s",s[s.Key_t=84]="Key_t",s[s.Key_u=85]="Key_u",s[s.Key_v=86]="Key_v",s[s.Key_w=87]="Key_w",s[s.Key_x=88]="Key_x",s[s.Key_y=89]="Key_y",s[s.Key_z=90]="Key_z",s[s.Windows=91]="Windows",s[s.ContextMenu=93]="ContextMenu",s[s.Numpad_0=96]="Numpad_0",s[s.Numpad_1=97]="Numpad_1",s[s.Numpad_2=98]="Numpad_2",s[s.Numpad_3=99]="Numpad_3",s[s.Numpad_4=100]="Numpad_4",s[s.Numpad_5=101]="Numpad_5",s[s.Numpad_6=102]="Numpad_6",s[s.Numpad_7=103]="Numpad_7",s[s.Numpad_8=104]="Numpad_8",s[s.Numpad_9=105]="Numpad_9",s[s.Multiply=106]="Multiply",s[s.Add=107]="Add",s[s.Subtract=109]="Subtract",s[s.Decimal=110]="Decimal",s[s.Divide=111]="Divide",s[s.F1=112]="F1",s[s.F2=113]="F2",s[s.F3=114]="F3",s[s.F4=115]="F4",s[s.F5=116]="F5",s[s.F6=117]="F6",s[s.F7=118]="F7",s[s.F8=119]="F8",s[s.F9=120]="F9",s[s.F10=121]="F10",s[s.F11=122]="F11",s[s.F12=123]="F12",s[s.NumLock=144]="NumLock",s[s.ScrollLock=145]="ScrollLock",s[s.Semicolon=186]="Semicolon",s[s.Equals=187]="Equals",s[s.Comma=188]="Comma",s[s.Dash=189]="Dash",s[s.Period=190]="Period",s[s.ForwardSlash=191]="ForwardSlash",s[s.GraveAccent=192]="GraveAccent",s[s.OpenBracket=219]="OpenBracket",s[s.BackSlash=220]="BackSlash",s[s.CloseBracket=221]="CloseBracket",s[s.SingleQuote=222]="SingleQuote"}(I=u.KeyCode||(u.KeyCode={}))},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskDragBaseState=void 0;var c=o(0),I=o(5),C=o(9),g=o(30),a=o(13),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(l,s),l.prototype.onMouseDownInternal=function(d){this.onStart(d)},l.prototype.onMouseUp=function(d){this.onEnd(d)},l.prototype.onMouseMoveInternal=function(d){this.onDrag(d)},l.prototype.onTouchStartInternal=function(d){this.onStart(d)},l.prototype.onTouchEndInternal=function(d){this.onEnd(d)},l.prototype.onTouchMoveInternal=function(d){this.onDrag(d)},l.prototype.onDocumentPointerDownInternal=function(d){this.onStart(d)},l.prototype.onDocumentPointerUpInternal=function(d){this.onEnd(d)},l.prototype.onDocumentPointerMoveInternal=function(d){this.onDrag(d)},l.prototype.onStart=function(d){this.currentPosition=new I.Point(C.EvtUtils.getEventX(d),C.EvtUtils.getEventY(d)),this.raiseDependencySelection(d,null),this.onStartInternal(d)},l.prototype.onDrag=function(d){var h;d.preventDefault();var v=new I.Point(C.EvtUtils.getEventX(d),C.EvtUtils.getEventY(d));null!==(h=this.currentPosition)&&void 0!==h||(this.currentPosition=v),this.onDragInternal(v),this.currentPosition=v},l.prototype.onEnd=function(d){this.onEndInternal(d),this.raiseEvent(a.TaskAreaStateEventNames.STATE_EXIT,d)},l.prototype.onStartInternal=function(d){},l.prototype.onEndInternal=function(d){},l.prototype.onDragInternal=function(d){},l.prototype.finish=function(){this.raiseEvent(a.TaskAreaStateEventNames.TASK_EDIT_END)},l}(g.TaskAreaStateBase);u.TaskDragBaseState=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StripLineSettings=void 0;var c=o(1),I=o(59),C=function(){function g(){this.showCurrentTime=!1,this.currentTimeUpdateInterval=6e4,this.stripLines=[]}return g.parse=function(a){var p=new g;if(a&&((0,c.isDefined)(a.showCurrentTime)&&(p.showCurrentTime=a.showCurrentTime),(0,c.isDefined)(a.currentTimeUpdateInterval)&&(p.currentTimeUpdateInterval=a.currentTimeUpdateInterval),(0,c.isDefined)(a.currentTimeTitle)&&(p.currentTimeTitle=a.currentTimeTitle),(0,c.isDefined)(a.currentTimeCssClass)&&(p.currentTimeCssClass=a.currentTimeCssClass),(0,c.isDefined)(a.stripLines)))for(var s=0;s<a.stripLines.length;s++)p.stripLines.push(I.StripLine.parse(a.stripLines[s]));return p},g.prototype.equal=function(a){var p=!0;if(p=(p=(p=(p=(p=p&&this.showCurrentTime==a.showCurrentTime)&&this.currentTimeUpdateInterval==a.currentTimeUpdateInterval)&&this.currentTimeTitle==a.currentTimeTitle)&&this.currentTimeCssClass==a.currentTimeCssClass)&&this.stripLines.length===a.stripLines.length)for(var s=0;s<a.stripLines.length;s++)p=p&&this.stripLines[s].equal(a.stripLines[s]);return p},g}();u.StripLineSettings=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Dependency=void 0;var c=o(0),I=o(1),C=o(2),g=o(23),a=function(p){function s(){var l=p.call(this)||this;return l.predecessorId="",l.successorId="",l.type=null,l}return c.__extends(s,p),Object.defineProperty(s.prototype,"isStartDependency",{get:function(){return this.type===g.DependencyType.SS||this.type===g.DependencyType.SF},enumerable:!1,configurable:!0}),s.prototype.assignFromObject=function(l){(0,I.isDefined)(l)&&(p.prototype.assignFromObject.call(this,l),this.predecessorId=String(l.predecessorId),this.successorId=String(l.successorId),this.type=this.parseType(l.type))},s.prototype.parseType=function(l){if(!(0,I.isDefined)(l))return g.DependencyType.FS;switch(l.toString().toUpperCase()){case"SS":case"1":return g.DependencyType.SS;case"FF":case"2":return g.DependencyType.FF;case"SF":case"3":return g.DependencyType.SF;default:return g.DependencyType.FS}},s}(C.DataObject);u.Dependency=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceAssignment=void 0;var c=o(0),I=o(1),C=function(g){function a(){var p=g.call(this)||this;return p.taskId="",p.resourceId="",p}return c.__extends(a,g),a.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(g.prototype.assignFromObject.call(this,p),this.taskId=String(p.taskId),this.resourceId=String(p.resourceId))},a}(o(2).DataObject);u.ResourceAssignment=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RecurrenceFactory=void 0;var c=o(1),I=o(72),C=o(205),g=o(206),a=o(208),p=function(){function s(){}return s.createRecurrenceByType=function(l){if(!l)return null;switch(l.toLowerCase()){case"daily":return new I.Daily;case"weekly":return new C.Weekly;case"monthly":return new g.Monthly;case"yearly":return new a.Yearly}return null},s.createRecurrenceFromObject=function(l){if(!l)return null;var d=this.createRecurrenceByType(l.type);return d&&d.assignFromObject(l),d},s.getEnumValue=function(l,d){if(!(0,c.isDefined)(l[d]))return null;var h=parseInt(d);return isNaN(h)?l[d]:h},s}();u.RecurrenceFactory=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Daily=void 0;var c=o(0),I=o(38),C=o(8),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.checkDate=function(s){return!0},p.prototype.checkInterval=function(s){return C.DateTimeUtils.getDaysBetween(this.start,s)%this.interval==0},p.prototype.calculatePointByInterval=function(s){var l=this.interval;return this.isRecurrencePoint(s)||(l-=C.DateTimeUtils.getDaysBetween(this.start,s)%this.interval),C.DateTimeUtils.addDays(s,l)},p.prototype.calculateNearestPoint=function(s){return C.DateTimeUtils.addDays(s,1)},p}(I.RecurrenceBase);u.Daily=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttView=u.default=void 0,o(74);var c=o(47);Object.defineProperty(u,"default",{enumerable:!0,get:function(){return c.GanttView}}),Object.defineProperty(u,"GanttView",{enumerable:!0,get:function(){return c.GanttView}})},function(he,u,o){},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.BarManager=void 0;var c=function(){function I(C,g){this.commandManager=C,this.bars=g}return I.prototype.updateContextMenu=function(){for(var C=0,g=void 0;g=this.bars[C];C++)if(g.isContextMenu()){g.updateItemsList();for(var a=g.getCommandKeys(),p=0;p<a.length;p++)this.updateBarItem(g,a[p])}},I.prototype.updateItemsState=function(C){for(var g=!!C.length,a=function(d,h){if(h.isVisible()){for(var v=h.getCommandKeys(),x=function(y){if(g&&!C.filter(function(E){return E==v[y]}).length)return"continue";p.updateBarItem(h,v[y])},b=0;b<v.length;b++)x(b);h.completeUpdate()}},p=this,s=0,l=void 0;l=this.bars[s];s++)a(0,l)},I.prototype.updateBarItem=function(C,g){var a=this.commandManager.getCommand(g);if(a){var p=a.getState();C.setItemVisible(g,p.visible),p.visible&&(C.setItemEnabled(g,p.enabled),C.setItemValue(g,p.value))}},I}();u.BarManager=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CommandManager=void 0;var c=o(77),I=o(78),C=o(79),g=o(86),a=o(88),p=o(89),s=o(90),l=o(91),d=o(94),h=o(96),v=o(97),x=o(98),b=o(99),y=o(100),E=o(101),S=o(104),O=o(105),w=o(109),T=o(112),k=o(113),R=o(114),P=o(115),B=o(117),W=o(120),z=o(121),V=o(122),U=function(){function K(Y){this.control=Y,this.commands={},this.createCommand(a.GanttClientCommand.CreateTask,this.createTaskCommand),this.createCommand(a.GanttClientCommand.CreateSubTask,this.createSubTaskCommand),this.createCommand(a.GanttClientCommand.RemoveTask,this.removeTaskCommand),this.createCommand(a.GanttClientCommand.RemoveDependency,this.removeDependencyCommand),this.createCommand(a.GanttClientCommand.TaskInformation,this.showTaskEditDialog),this.createCommand(a.GanttClientCommand.ResourceManager,this.showResourcesDialog),this.createCommand(a.GanttClientCommand.TaskAddContextItem,new W.TaskAddContextItemCommand(this.control)),this.createCommand(a.GanttClientCommand.Undo,new b.UndoCommand(this.control)),this.createCommand(a.GanttClientCommand.Redo,new x.RedoCommand(this.control)),this.createCommand(a.GanttClientCommand.ZoomIn,new z.ZoomInCommand(this.control)),this.createCommand(a.GanttClientCommand.ZoomOut,new V.ZoomOutCommand(this.control)),this.createCommand(a.GanttClientCommand.FullScreen,new v.ToggleFullScreenCommand(this.control)),this.createCommand(a.GanttClientCommand.CollapseAll,new p.CollapseAllCommand(this.control)),this.createCommand(a.GanttClientCommand.ExpandAll,new s.ExpandAllCommand(this.control)),this.createCommand(a.GanttClientCommand.ToggleResources,this.toggleResources),this.createCommand(a.GanttClientCommand.ToggleDependencies,this.toggleDependencies)}return Object.defineProperty(K.prototype,"createTaskCommand",{get:function(){return new R.CreateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"createSubTaskCommand",{get:function(){return new k.CreateSubTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"removeTaskCommand",{get:function(){return new B.RemoveTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"updateTaskCommand",{get:function(){return new P.UpdateTaskCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"createDependencyCommand",{get:function(){return new l.CreateDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"removeDependencyCommand",{get:function(){return new d.RemoveDependencyCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"createResourceCommand",{get:function(){return new E.CreateResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"removeResourceCommand",{get:function(){return new w.RemoveResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"assignResourceCommand",{get:function(){return new y.AssignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"deassignResourceCommand",{get:function(){return new S.DeassignResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"changeResourceColorCommand",{get:function(){return new O.ResourceColorCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showTaskEditDialog",{get:function(){return new g.TaskEditDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showConstraintViolationDialog",{get:function(){return new I.ConstraintViolationDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showConfirmationDialog",{get:function(){return new c.ConfirmationDialog(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"showResourcesDialog",{get:function(){return new C.ResourcesDialogCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"toggleResources",{get:function(){return new T.ToggleResourceCommand(this.control)},enumerable:!1,configurable:!0}),Object.defineProperty(K.prototype,"toggleDependencies",{get:function(){return new h.ToggleDependenciesCommand(this.control)},enumerable:!1,configurable:!0}),K.prototype.getCommand=function(Y){return this.commands[Y]},K.prototype.createCommand=function(Y,J){this.commands[Y]=J},K}();u.CommandManager=U},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConfirmationDialog=void 0;var c=o(0),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.prototype.applyParameters=function(a,p){return this.history.beginTransaction(),p.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([]),!0},g.prototype.createParameters=function(a){return a},g.prototype.getDialogName=function(){return"Confirmation"},g}(o(20).DialogBase);u.ConfirmationDialog=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConstraintViolationDialogCommand=void 0;var c=o(0),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.prototype.applyParameters=function(a,p){return p.callback(a),!0},g.prototype.createParameters=function(a){return a},g.prototype.getDialogName=function(){return"ConstraintViolation"},g}(o(20).DialogBase);u.ConstraintViolationDialogCommand=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcesDialogCommand=void 0;var c=o(0),I=o(21),C=o(20),g=o(31),a=o(40),p=o(85),s=function(l){function d(){var h=null!==l&&l.apply(this,arguments)||this;return h.resourcesForDelete=[],h}return c.__extends(d,l),d.prototype.onBeforeDialogShow=function(h){return this.modelManipulator.dispatcher.raiseResourceManagerDialogShowing(h,function(v){h.resources=v.values.resources})},d.prototype.applyParameters=function(h,v){this.history.beginTransaction();for(var x=0;x<h.resources.length;x++)v.resources.getItemById(h.resources.getItem(x).internalId)||this.control.commandManager.createResourceCommand.execute(h.resources.getItem(x).text);for(x=0;x<v.resources.length;x++)h.resources.getItemById(v.resources.getItem(x).internalId)||this.resourcesForDelete.push(v.resources.getItem(x));return this.history.endTransaction(),!1},d.prototype.createParameters=function(h){this.callBack=h;var v=new p.ResourcesDialogParameters;return v.resources=new I.ResourceCollection,v.resources.addRange(this.control.viewModel.resources.items),v},d.prototype.afterClosing=function(){var h=this;if(this.resourcesForDelete.length){var v=this.control.commandManager.showConfirmationDialog,x=new a.ConfirmationDialogParameters(g.ConfirmationType.ResourcesDelete,function(){h.history.beginTransaction();for(var b=0;b<h.resourcesForDelete.length;b++)h.control.commandManager.removeResourceCommand.execute(h.resourcesForDelete[b].internalId);h.history.endTransaction()});x.message=this.resourcesForDelete.reduce(function(b,y){return c.__spreadArray(c.__spreadArray([],b,!0),[y.text],!1)},[]).join(", "),this.callBack&&(v.afterClosing=function(){delete C.DialogBase.activeInstance,h.callBack()}),v.execute(x)}else this.callBack&&this.callBack()},d.prototype.getDialogName=function(){return"Resources"},d}(C.DialogBase);u.ResourcesDialogCommand=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttJsonUtils=void 0;var c=o(81),I=function(){function C(){}return C.parseJson=function(g){return c.JsonUtils.isValid(g)?JSON.parse(g):null},C}();u.GanttJsonUtils=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.JsonUtils=void 0;var c=function(){function I(){}return I.isValid=function(C){return!/[^,:{}[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(C.replace(/"(\\.|[^"\\])*"/g,""))},I}();u.JsonUtils=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ListUtils=void 0;var c=o(83),I=o(84),C=function(){function g(){}return g.remove=function(a,p){var s=a.indexOf(p,0);s>=0&&a.splice(s,1)},g.removeBy=function(a,p){for(var s=a.length,l=0;l<s;l++)if(p(a[l],l))return a.splice(l,1)[0];return null},g.shallowCopy=function(a){return a.slice()},g.deepCopy=function(a){return g.map(a,function(p){return p.clone()})},g.initByValue=function(a,p){for(var s=[];a>0;a--)s.push(p);return s},g.initByCallback=function(a,p){for(var s=[],l=0;l<a;l++)s.push(p(l));return s},g.forEachOnInterval=function(a,p){for(var s=a.end,l=a.start;l<s;l++)p(l)},g.reverseForEachOnInterval=function(a,p){for(var s=a.start,l=a.end-1;l>=s;l--)p(l)},g.reducedMap=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=[],h=s;h<l;h++){var v=p(a[h],h);null!==v&&d.push(v)}return d},g.filter=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=[],h=s;h<l;h++){var v=a[h];p(v,h)&&d.push(v)}return d},g.map=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=[],h=s;h<l;h++)d.push(p(a[h],h));return d},g.indexBy=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)if(p(a[d],d))return d;return-1},g.reverseIndexBy=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)if(p(a[d],d))return d;return-1},g.elementBy=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.indexBy(a,p,s,l);return d<0?null:a[d]},g.reverseElementBy=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);var d=g.reverseIndexBy(a,p,s,l);return d<0?null:a[d]},g.last=function(a){return a[a.length-1]},g.setLast=function(a,p){return a[a.length-1]=p},g.incLast=function(a){return++a[a.length-1]},g.decLast=function(a){return--a[a.length-1]},g.equals=function(a,p){return a.length===p.length&&g.allOf2(a,p,function(s,l){return s.equals(l)})},g.equalsByReference=function(a,p){var s=a.length;if(s!==a.length)return!1;for(var l=0;l<s;l++)if(a[l]!==p[l])return!1;return!0},g.unique=function(a,p,s,l){void 0===s&&(s=p),void 0===l&&(l=function(){});var d=a.length;if(0===d)return[];var h=(a=a.sort(p))[0],v=g.reducedMap(a,function(x){return 0!==s(h,x)?(h=x,x):(l(x),null)},1,d);return v.unshift(a[0]),v},g.uniqueNumber=function(a){a=a.sort(I.Comparers.number);for(var p=Number.NaN,s=a.length-1;s>=0;s--)p===a[s]?a.splice(s,1):p=a[s];return a},g.forEach=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)p(a[d],d)},g.forEach2=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=l;h<d;h++)s(a[h],p[h],h)},g.reverseForEach=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)p(a[d],d)},g.reverseIndexOf=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)if(a[d]===p)return d;return-1},g.accumulate=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=p,v=l;v<d;v++)h=s(h,a[v],v);return h},g.accumulateNumber=function(a,p,s,l,d){void 0===s&&(s=0),void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=s,v=l;v<d;v++)h+=p(a[v],v,h);return h},g.anyOf=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)if(p(a[d],d))return!0;return!1},g.unsafeAnyOf=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++){var h=p(a[d],d);if(h)return h}return null},g.reverseAnyOf=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--)if(p(a[d],d))return!0;return!1},g.unsafeReverseAnyOf=function(a,p,s,l){void 0===s&&(s=a.length-1),void 0===l&&(l=0);for(var d=s;d>=l;d--){var h=p(a[d],d);if(h)return h}return null},g.anyOf2=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=l;h<d;h++)if(s(a[h],p[h],h))return!0;return!1},g.allOf=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);for(var d=s;d<l;d++)if(!p(a[d],d))return!1;return!0},g.allOf2=function(a,p,s,l,d){void 0===l&&(l=0),void 0===d&&(d=a.length);for(var h=l;h<d;h++)if(!s(a[h],p[h],h))return!1;return!0},g.allOfOnInterval=function(a,p){for(var s=a.end,l=a.start;l<s;l++)if(!p(l))return!1;return!0},g.addListOnTail=function(a,p){for(var s=0,l=void 0;l=p[s];s++)a.push(l);return a},g.joinLists=function(a){for(var p=[],s=1;s<arguments.length;s++)p[s-1]=arguments[s];return g.accumulate(p,[],function(l,d){return g.addListOnTail(l,a(d)),l})},g.push=function(a,p){return a.push(p),a},g.countIf=function(a,p){return g.accumulateNumber(a,function(s,l){return p(s,l)?1:0})},g.clear=function(a){a.splice(0)},g.merge=function(a,p,s,l,d,h){if(void 0===d&&(d=0),void 0===h&&(h=a.length),a=a.slice(d,h),h-d<2)return a;for(var v=(a=a.sort(p))[d],x=[v],b=d+1;b<h;b++){var y=a[b];s(v,y)?l(v,y):x.push(v=y)}return x},g.min=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.minExtended(a,p,s,l);return d?d.minElement:null},g.max=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.maxExtended(a,p,s,l);return d?d.maxElement:null},g.minMax=function(a,p,s,l){void 0===s&&(s=0),void 0===l&&(l=a.length);var d=g.minMaxExtended(a,p,s,l);return d?new c.MinMax(d.minElement,d.maxElement):null},g.minExtended=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=p(d),v=s+1;v<l;v++){var x=a[v],b=p(x);b<h&&(h=b,d=x)}return new c.ExtendedMin(d,h)},g.maxExtended=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=p(d),v=s+1;v<l;v++){var x=a[v],b=p(x);b>h&&(h=b,d=x)}return new c.ExtendedMax(d,h)},g.minMaxExtended=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=d,v=p(d),x=v,b=s+1;b<l;b++){var y=a[b],E=p(y);E<v?(v=E,d=y):E>x&&(x=E,h=y)}return new c.ExtendedMinMax(d,v,h,x)},g.minByCmp=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<l;h++){var v=a[h];p(v,d)<0&&(d=v)}return d},g.maxByCmp=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=s+1;h<l;h++){var v=a[h];p(v,d)>0&&(d=v)}return d},g.minMaxByCmp=function(a,p,s,l){if(void 0===s&&(s=0),void 0===l&&(l=a.length),0===a.length)return null;for(var d=a[s],h=d,v=s+1;v<l;v++){var x=a[v],b=p(x,d);b>0?h=x:b<0&&(d=x)}return new c.MinMax(d,h)},g}();u.ListUtils=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ExtendedMinMax=u.ExtendedMax=u.ExtendedMin=u.MinMaxNumber=u.MinMax=void 0;var c=o(0),I=function(s,l){this.minElement=s,this.maxElement=l};u.MinMax=I;var C=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(l,s),Object.defineProperty(l.prototype,"length",{get:function(){return this.maxElement-this.minElement},enumerable:!1,configurable:!0}),l}(I);u.MinMaxNumber=C,u.ExtendedMin=function(s,l){this.minElement=s,this.minValue=l},u.ExtendedMax=function(s,l){this.maxElement=s,this.maxValue=l};var p=function(s){function l(d,h,v,x){var b=s.call(this,d,v)||this;return b.minValue=h,b.maxValue=x,b}return c.__extends(l,s),l}(I);u.ExtendedMinMax=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Equals=u.Comparers=void 0;var c=function(){function C(){}return C.number=function(g,a){return g-a},C.string=function(g,a){return g===a?0:g>a?1:-1},C.stringIgnoreCase=function(g,a){return(g=g.toLowerCase())===(a=a.toLowerCase())?0:g>a?1:-1},C}();u.Comparers=c;var I=function(){function C(){}return C.simpleType=function(g,a){return g===a},C.object=function(g,a){return g&&a&&(g===a||g.equals(a))},C}();u.Equals=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcesDialogParameters=void 0;var c=o(0),I=o(21),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.clone=function(){var p=new a;return p.resources=new I.ResourceCollection,p.resources.addRange(this.resources.items),p},a}(o(32).DialogParametersBase);u.ResourcesDialogParameters=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditDialogCommand=void 0;var c=o(0),I=o(21),C=o(49),g=o(50),a=o(33),p=o(20),s=o(87),l=o(1),d=function(h){function v(){return null!==h&&h.apply(this,arguments)||this}return c.__extends(v,h),v.prototype.onBeforeDialogShow=function(x){return this.modelManipulator.dispatcher.raiseTaskTaskEditDialogShowing(x,function(b){var y=b.values;x.start=y.start,x.end=y.end,x.progress=y.progress,x.title=y.title,x.readOnlyFields=b.readOnlyFields,x.hiddenFields=b.hiddenFields})},v.prototype.applyParameters=function(x,b){var y=this;this.history.beginTransaction();var E=this.getUpdatedTaskData(x,b);Object.keys(E).length>0&&setTimeout(function(){return y.control.commandManager.updateTaskCommand.execute(b.id,E)},0);for(var S=0;S<x.assigned.length;S++)if(!b.assigned.getItemById(x.assigned.getItem(S).internalId)){var O=x.assigned.getItem(S).internalId,T=new C.ResourceAssigningArguments(O,b.id);this.modelManipulator.dispatcher.notifyResourceAssigning(T),T.cancel||this.history.addAndRedo(new g.AssignResourceHistoryItem(this.modelManipulator,T.resourceId,T.taskId))}var k=function(P){var B=b.assigned.getItem(P);if(!x.assigned.getItemById(B.internalId)){var W=R.control.viewModel.assignments.items.filter(function(z){return z.resourceId===B.internalId&&z.taskId===b.id})[0];R.modelManipulator.dispatcher.fireResourceUnassigning(W)&&R.history.addAndRedo(new a.DeassignResourceHistoryItem(R.modelManipulator,W.internalId))}},R=this;for(S=0;S<b.assigned.length;S++)k(S);return this.history.endTransaction(),!1},v.prototype.getUpdatedTaskData=function(x,b){var y={};return(0,l.isDefined)(x.title)&&b.title!==x.title&&(y.title=x.title),(0,l.isDefined)(x.progress)&&b.progress!==x.progress&&(y.progress=x.progress),(0,l.isDefined)(x.start)&&b.start!==x.start&&(y.start=x.start),(0,l.isDefined)(x.end)&&b.end!==x.end&&(y.end=x.end),y},v.prototype.createParameters=function(x){var b=this;x=x||this.control.viewModel.tasks.getItemById(this.control.currentSelectedTaskID);var y=new s.TaskEditParameters;return y.id=x.internalId,y.title=x.title,y.progress=x.progress,y.start=x.start,y.end=x.end,y.assigned=this.control.viewModel.getAssignedResources(x),y.resources=new I.ResourceCollection,y.resources.addRange(this.control.viewModel.resources.items),y.showResourcesDialogCommand=this.control.commandManager.showResourcesDialog,y.showTaskEditDialogCommand=this.control.commandManager.showTaskEditDialog,y.enableEdit=this.isTaskEditEnabled(),y.enableRangeEdit=this.isTaskRangeEditEnabled(x),y.isValidationRequired=this.control.isValidateDependenciesRequired(),y.getCorrectDateRange=function(E,S,O){return b.control.validationController.getCorrectDateRange(E,S,O)},y},v.prototype.isTaskEditEnabled=function(){var x=this.control.settings;return x.editing.enabled&&x.editing.allowTaskUpdate},v.prototype.isTaskRangeEditEnabled=function(x){return!this.control.viewModel.isTaskToCalculateByChildren(x.internalId)},v.prototype.isEnabled=function(){var x=this.control,b=x.viewModel.findItem(x.currentSelectedTaskID);return!!b&&b.selected||this.isApiCall},v.prototype.getState=function(){var x=h.prototype.getState.call(this);return x.visible=x.visible&&!this.control.taskEditController.dependencyId,x},v.prototype.getDialogName=function(){return"TaskEdit"},v}(p.DialogBase);u.TaskEditDialogCommand=d},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditParameters=void 0;var c=o(0),I=o(21),C=function(g){function a(){var p=null!==g&&g.apply(this,arguments)||this;return p.enableEdit=!0,p.enableRangeEdit=!0,p.isValidationRequired=!1,p.hiddenFields=[],p.readOnlyFields=[],p}return c.__extends(a,g),a.prototype.clone=function(){var p=new a;return p.id=this.id,p.title=this.title,p.progress=this.progress,p.start=this.start,p.end=this.end,p.assigned=new I.ResourceCollection,p.assigned.addRange(this.assigned.items),p.resources=new I.ResourceCollection,p.resources.addRange(this.resources.items),p.showResourcesDialogCommand=this.showResourcesDialogCommand,p.showTaskEditDialogCommand=this.showTaskEditDialogCommand,p.enableEdit=this.enableEdit,p.enableRangeEdit=this.enableRangeEdit,p.hiddenFields=this.hiddenFields.slice(),p.readOnlyFields=this.readOnlyFields.slice(),p.isValidationRequired=this.isValidationRequired,p.getCorrectDateRange=this.getCorrectDateRange,p},a}(o(32).DialogParametersBase);u.TaskEditParameters=C},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.GanttClientCommand=void 0,(c=u.GanttClientCommand||(u.GanttClientCommand={}))[c.CreateTask=0]="CreateTask",c[c.CreateSubTask=1]="CreateSubTask",c[c.RemoveTask=2]="RemoveTask",c[c.RemoveDependency=3]="RemoveDependency",c[c.TaskInformation=4]="TaskInformation",c[c.TaskAddContextItem=5]="TaskAddContextItem",c[c.Undo=6]="Undo",c[c.Redo=7]="Redo",c[c.ZoomIn=8]="ZoomIn",c[c.ZoomOut=9]="ZoomOut",c[c.FullScreen=10]="FullScreen",c[c.CollapseAll=11]="CollapseAll",c[c.ExpandAll=12]="ExpandAll",c[c.ResourceManager=13]="ResourceManager",c[c.ToggleResources=14]="ToggleResources",c[c.ToggleDependencies=15]="ToggleDependencies"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CollapseAllCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.collapseAll(),!0},p.prototype.isEnabled=function(){return!0},p}(I.CommandBase);u.CollapseAllCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ExpandAllCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.expandAll(),!0},p.prototype.isEnabled=function(){return!0},p}(I.CommandBase);u.ExpandAllCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CreateDependencyCommand=void 0;var c=o(0),I=o(23),C=o(92),g=o(93),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return c.__extends(s,p),s.prototype.execute=function(l,d,h){return p.prototype.execute.call(this,l,d,h)},s.prototype.executeInternal=function(l,d,h){if(this.control.viewModel.dependencies.items.filter(function(b){return b.predecessorId===l&&b.successorId===d||b.successorId===l&&b.predecessorId===d}).length)return!1;var v=new C.DependencyInsertingArguments(l,d,h);if(this.modelManipulator.dispatcher.notifyDependencyInserting(v),v.cancel)return!1;if(l=v.predecessorId,d=v.successorId,h=v.type,this.control.history.beginTransaction(),this.history.addAndRedo(new g.InsertDependencyHistoryItem(this.modelManipulator,l,d,h)),this.control.isValidateDependenciesRequired()){var x=this.control.viewModel.tasks.getItemById(l);h===I.DependencyType.SF||h===I.DependencyType.SS?this.control.validationController.moveStartDependTasks(l,x.start):this.control.validationController.moveEndDependTasks(l,x.end)}return this.control.history.endTransaction(),!0},s.prototype.isEnabled=function(){return p.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyInsert},s}(o(51).DependencyCommandBase);u.CreateDependencyCommand=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DependencyInsertingArguments=void 0;var c=o(0),I=function(C){function g(a,p,s){var l=C.call(this,null)||this;return l.values={predecessorId:a,successorId:p,type:s},l}return c.__extends(g,C),Object.defineProperty(g.prototype,"predecessorId",{get:function(){return this.values.predecessorId},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"successorId",{get:function(){return this.values.successorId},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"type",{get:function(){return this.values.type},enumerable:!1,configurable:!0}),g}(o(11).BaseArguments);u.DependencyInsertingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.InsertDependencyHistoryItem=void 0;var c=o(0),I=o(18),C=o(2),g=function(a){function p(s,l,d,h){var v=a.call(this,s)||this;return v.predecessorId=l,v.successorId=d,v.type=h,v}return c.__extends(p,a),p.prototype.redo=function(){var s;null!==(s=this.insertedKey)&&void 0!==s||(this.insertedKey=I.MathUtils.generateGuid()),this.modelManipulator.dependency.insertDependency(this.predecessorId,this.successorId,this.type,this.insertedKey)},p.prototype.undo=function(){this.modelManipulator.dependency.removeDependency(this.insertedKey)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s=this;return[{objectType:C.GanttDataObjectNames.dependency,getKey:function(){return s.insertedKey},updateKey:function(l){return s.insertedKey=l}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return s.predecessorId},updateKey:function(l){return s.predecessorId=l}},{objectType:C.GanttDataObjectNames.task,getKey:function(){return s.successorId},updateKey:function(l){return s.successorId=l}}]},enumerable:!1,configurable:!0}),p}(o(14).HistoryItem);u.InsertDependencyHistoryItem=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveDependencyCommand=void 0;var c=o(0),I=o(31),C=o(40),g=o(95),a=o(41),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(l,s),l.prototype.execute=function(d,h){var v=this;return void 0===h&&(h=!0),h?(this.control.commandManager.showConfirmationDialog.execute(new C.ConfirmationDialogParameters(I.ConfirmationType.DependencyDelete,function(){v.executeInternal(d)})),!1):s.prototype.execute.call(this,d)},l.prototype.executeInternal=function(d){if(null!=(d=d||this.control.taskEditController.dependencyId)){var h=this.control.viewModel.dependencies.items.filter(function(x){return x.internalId===d})[0];if(h){var v=new g.DependencyRemovingArguments(h);if(this.modelManipulator.dispatcher.notifyDependencyRemoving(v),!v.cancel)return this.history.addAndRedo(new a.RemoveDependencyHistoryItem(this.modelManipulator,d)),d===this.control.taskEditController.dependencyId&&this.control.taskEditController.selectDependency(null),this.control.barManager.updateItemsState([]),!0}}return!1},l.prototype.isEnabled=function(){return s.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyDelete},l.prototype.getState=function(){var d=s.prototype.getState.call(this);return d.visible=d.enabled&&null!=this.control.taskEditController.dependencyId,d},l}(o(51).DependencyCommandBase);u.RemoveDependencyCommand=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DependencyRemovingArguments=void 0;var c=o(0),I=function(C){function g(a){var p=C.call(this,a.id)||this;return p.values=a,p}return c.__extends(g,C),g}(o(11).BaseArguments);u.DependencyRemovingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleDependenciesCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.toggleDependencies(),!0},p}(I.CommandBase);u.ToggleDependenciesCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleFullScreenCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s.isInFullScreenMode=!1,s.fullScreenTempVars={},s}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(!0);return s.value=this.control.fullScreenModeHelper.isInFullScreenMode,s},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.fullScreenModeHelper.toggle(),!0},p}(I.CommandBase);u.ToggleFullScreenCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RedoCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(this.isEnabled());return s.visible=this.control.settings.editing.enabled,s},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.history.redo(),!0},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.history.canRedo()},p}(I.CommandBase);u.RedoCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.UndoCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){var s=new C.SimpleCommandState(this.isEnabled());return s.visible=this.control.settings.editing.enabled,s},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.history.undo(),!0},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.history.canUndo()},p}(I.CommandBase);u.UndoCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.AssignResourceCommand=void 0;var c=o(0),I=o(49),C=o(50),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s,l){return a.prototype.execute.call(this,s,l)},p.prototype.executeInternal=function(s,l){if(!this.control.viewModel.assignments.items.filter(function(v){return v.resourceId===s&&v.taskId===l})[0]){var d=this.control.viewModel,h=new I.ResourceAssigningArguments(d.convertInternalToPublicKey("resource",s),d.convertInternalToPublicKey("task",l));if(this.modelManipulator.dispatcher.notifyResourceAssigning(h),!h.cancel)return this.history.addAndRedo(new C.AssignResourceHistoryItem(this.modelManipulator,d.convertPublicToInternalKey("resource",h.resourceId),d.convertPublicToInternalKey("task",h.taskId))),!0}return!1},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},p}(o(34).ResourceCommandBase);u.AssignResourceCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CreateResourceCommand=void 0;var c=o(0),I=o(102),C=o(103),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s,l,d){return void 0===l&&(l=""),a.prototype.execute.call(this,s,l,d)},p.prototype.executeInternal=function(s,l,d){void 0===l&&(l="");var h=new I.ResourceInsertingArguments(s,l);return this.modelManipulator.dispatcher.notifyResourceCreating(h),h.cancel||this.history.addAndRedo(new C.CreateResourceHistoryItem(this.modelManipulator,h.text,h.color,d)),!h.cancel},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceInsert},p}(o(34).ResourceCommandBase);u.CreateResourceCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceInsertingArguments=void 0;var c=o(0),I=function(C){function g(a,p){void 0===p&&(p="");var s=C.call(this,null)||this;return s.values={text:a,color:p},s}return c.__extends(g,C),Object.defineProperty(g.prototype,"text",{get:function(){return this.values.text},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"color",{get:function(){return this.values.color},enumerable:!1,configurable:!0}),g}(o(11).BaseArguments);u.ResourceInsertingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CreateResourceHistoryItem=void 0;var c=o(0),I=o(14),C=o(2),g=o(18),a=function(p){function s(l,d,h,v){void 0===h&&(h="");var x=p.call(this,l)||this;return x.text=d,x.color=h,x.createCallback=v,x}return c.__extends(s,p),s.prototype.redo=function(){var l;null!==(l=this.insertedKey)&&void 0!==l||(this.insertedKey=g.MathUtils.generateGuid()),this.modelManipulator.resource.create(this.text,this.color,this.insertedKey,this.createCallback)},s.prototype.undo=function(){this.modelManipulator.resource.remove(this.insertedKey)},Object.defineProperty(s.prototype,"keyUpdaters",{get:function(){var l=this;return[{objectType:C.GanttDataObjectNames.resource,getKey:function(){return l.insertedKey},updateKey:function(d){return l.insertedKey=d}}]},enumerable:!1,configurable:!0}),s}(I.HistoryItem);u.CreateResourceHistoryItem=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DeassignResourceCommand=void 0;var c=o(0),I=o(33),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.execute=function(p){return g.prototype.execute.call(this,p)},a.prototype.executeInternal=function(p){var s=this.control.viewModel.assignments.items.filter(function(l){return l.internalId===p})[0];return!(!s||!this.modelManipulator.dispatcher.fireResourceUnassigning(s)||(this.history.addAndRedo(new I.DeassignResourceHistoryItem(this.modelManipulator,p)),0))},a.prototype.isEnabled=function(){return g.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskResourceUpdate},a}(o(34).ResourceCommandBase);u.DeassignResourceCommand=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceColorCommand=void 0;var c=o(0),I=o(106),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.execute=function(p,s){return g.prototype.execute.call(this,p,s)},a.prototype.executeInternal=function(p,s){return this.control.viewModel.resources.getItemById(p).color!==s&&(this.history.addAndRedo(new I.ResourceColorHistoryItem(this.modelManipulator,p,s)),!0)},a}(o(108).ResourcePropertyCommandBase);u.ResourceColorCommand=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceColorHistoryItem=void 0;var c=o(0),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.prototype.getPropertiesManipulator=function(){return this.modelManipulator.resource.properties.color},g}(o(107).ResourcePropertiesHistoryItemBase);u.ResourceColorHistoryItem=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcePropertiesHistoryItemBase=void 0;var c=o(0),I=o(2),C=function(g){function a(p,s,l){var d=g.call(this,p)||this;return d.resourceId=s,d.newValue=l,d}return c.__extends(a,g),a.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.resourceId,this.newValue)},a.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},a.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},Object.defineProperty(a.prototype,"keyUpdaters",{get:function(){var p=this;return[{objectType:I.GanttDataObjectNames.resource,getKey:function(){return p.resourceId},updateKey:function(s){return p.resourceId=s}}]},enumerable:!1,configurable:!0}),a}(o(14).HistoryItem);u.ResourcePropertiesHistoryItemBase=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcePropertyCommandBase=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(this.isEnabled())},p.prototype.isEnabled=function(){return a.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceUpdate},p}(I.CommandBase);u.ResourcePropertyCommandBase=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveResourceCommand=void 0;var c=o(0),I=o(110),C=o(111),g=o(33),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return c.__extends(s,p),s.prototype.execute=function(l){return p.prototype.execute.call(this,l)},s.prototype.executeInternal=function(l){var d=this,h=this.control.viewModel.resources.items.filter(function(b){return b.internalId===l})[0];if(h){var v=new I.ResourceRemovingArguments(h);if(this.modelManipulator.dispatcher.notifyResourceRemoving(v),!v.cancel){var x=new C.RemoveResourceHistoryItem(this.modelManipulator,l);return this.control.viewModel.assignments.items.filter(function(b){return b.resourceId===l}).forEach(function(b){d.modelManipulator.dispatcher.fireResourceUnassigning(b)&&x.add(new g.DeassignResourceHistoryItem(d.modelManipulator,b.internalId))}),this.history.addAndRedo(x),!0}}return!1},s.prototype.isEnabled=function(){return p.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceDelete},s}(o(34).ResourceCommandBase);u.RemoveResourceCommand=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceRemovingArguments=void 0;var c=o(0),I=function(C){function g(a){var p=C.call(this,a.id)||this;return p.values=a,p}return c.__extends(g,C),g}(o(11).BaseArguments);u.ResourceRemovingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveResourceHistoryItem=void 0;var c=o(0),I=o(42),C=o(2),g=function(a){function p(s,l){var d=a.call(this)||this;return d.modelManipulator=s,d.resourceId=l,d}return c.__extends(p,a),p.prototype.redo=function(){a.prototype.redo.call(this),this.resource=this.modelManipulator.resource.remove(this.resourceId)},p.prototype.undo=function(){var s=this;this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){s.resource.color&&s.modelManipulator.resource.properties.color.setValue(s.resource.internalId,s.resource.color),window.setTimeout(function(){return a.prototype.undo.call(s)},0)})},p.prototype.undoItemsQuery=function(){this.modelManipulator.resource.create(this.resource.text,this.resource.color,this.resourceId,function(){}),this.resource.color&&this.modelManipulator.resource.properties.color.setValue(this.resource.internalId,this.resource.color),a.prototype.undo.call(this)},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s=this;return[{objectType:C.GanttDataObjectNames.resource,getKey:function(){return s.resourceId},updateKey:function(l){return s.resourceId=l}}]},enumerable:!1,configurable:!0}),p}(I.CompositionHistoryItem);u.RemoveResourceHistoryItem=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ToggleResourceCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.toggleResources(),!0},p}(I.CommandBase);u.ToggleResourceCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CreateSubTaskCommand=void 0;var c=o(0),I=o(52),C=o(43),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s){return a.prototype.execute.call(this,s)},p.prototype.executeInternal=function(s){var l=this.control.viewModel.findItem(s=s||this.control.currentSelectedTaskID);if(l.selected){var d={start:new Date(l.task.start.getTime()),end:new Date(l.task.end.getTime()),title:"New task",progress:0,parentId:s},h=new I.TaskInsertingArguments(null,d);if(this.modelManipulator.dispatcher.notifyTaskCreating(h),!h.cancel){this.history.addAndRedo(new C.CreateTaskHistoryItem(this.modelManipulator,h));var v=this.control.viewModel.findItem(d.parentId);a.prototype.updateParent.call(this,v)}return!h.cancel}return!1},p.prototype.isEnabled=function(){var s=this.control,l=s.viewModel.findItem(s.currentSelectedTaskID);return a.prototype.isEnabled.call(this)&&!!l&&l.selected},p.prototype.getState=function(){var s=a.prototype.getState.call(this);return s.visible=s.visible&&this.control.settings.editing.allowTaskInsert,s},p}(o(24).TaskCommandBase);u.CreateSubTaskCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CreateTaskCommand=void 0;var c=o(0),I=o(52),C=o(43),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.execute=function(s){return a.prototype.execute.call(this,s)},p.prototype.executeInternal=function(s){var l,d;if(null!=s||(s={}),!s.parentId){var h=this.control.viewModel.findItem(this.control.currentSelectedTaskID),v=h&&h.task;v&&(s.parentId=v.parentId)}var x=this.control.viewModel.findItem(s.parentId)||this.control.viewModel.items[0],b=x&&x.task;s.start||(s.start=b?new Date(b.start.getTime()):new Date(this.control.range.start.getTime())),s.end||(s.end=b?new Date(b.end.getTime()):new Date(this.control.range.end.getTime())),null!==(l=s.title)&&void 0!==l||(s.title="New task"),null!==(d=s.progress)&&void 0!==d||(s.progress=0);var y=new I.TaskInsertingArguments(null,s);if(this.modelManipulator.dispatcher.notifyTaskCreating(y),!y.cancel){this.history.addAndRedo(new C.CreateTaskHistoryItem(this.modelManipulator,y));var E=this.control.viewModel.findItem(s.parentId);a.prototype.updateParent.call(this,E)}return!y.cancel},p.prototype.getState=function(){var s=a.prototype.getState.call(this);return s.visible=s.visible&&this.control.settings.editing.allowTaskInsert,s},p}(o(24).TaskCommandBase);u.CreateTaskCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.UpdateTaskCommand=void 0;var c=o(0),I=o(1),C=o(31),g=o(116),a=o(41),p=o(53),s=o(15),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return c.__extends(h,d),h.prototype.execute=function(v,x){return d.prototype.execute.call(this,v,x)},h.prototype.executeInternal=function(v,x){var b=this.control.viewModel.tasks.getItemById(v);if(!b)return!1;var y=this.control.modelManipulator.dispatcher.raiseTaskUpdating(b,x,function(S){x.title=S.title,x.progress=S.progress,x.start=S.start,x.end=S.end,x.color=S.color});if(y){(0,I.isDefined)(x.start)&&(0,I.isDefined)(x.end)&&x.end.getTime()<x.start.getTime()&&(x.end=x.start),(0,I.isDefined)(x.progress)&&(x.progress=Math.max(Math.min(x.progress,100),0));var E=this.filterChangedValues(x,b);this.processDependecyValidation(E,b)}return y},h.prototype.isEnabled=function(){return d.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskUpdate},h.prototype.filterChangedValues=function(v,x){if(!v)return null;var b={};for(var y in x)Object.prototype.hasOwnProperty.call(x,y)&&(0,I.isDefined)(v[y])&&x[y]!==v[y]&&(b[y]=v[y]);return b},h.prototype.processDependecyValidation=function(v,x){var b=this,y=function(T){b.onAfterValidationCallback(v,x,T)},E=this.control.isValidateDependenciesRequired();if(E){var S=[],O=(0,I.isDefined)(v.start)&&v.start!==x.start,w=(0,I.isDefined)(v.end)&&v.end!==x.end;O&&E&&(S=S.concat(this.control.validationController.checkStartDependencies(x.internalId,v.start))),w&&E&&(S=S.concat(this.control.validationController.checkEndDependencies(x.internalId,v.end))),S.length>0?this.control.commandManager.showConstraintViolationDialog.execute(new g.ConstraintViolationDialogParameters(S,y)):y(null)}else y(null)},h.prototype.onAfterValidationCallback=function(v,x,b){var y=this;if(!b||b.option!==C.ConstraintViolationOption.DoNothing||(delete v.start,delete v.end),Object.keys(v).length>0){this.history.beginTransaction(),b?.option===C.ConstraintViolationOption.RemoveDependency&&b.validationErrors.forEach(function(T){return y.history.addAndRedo(new a.RemoveDependencyHistoryItem(y.modelManipulator,T.dependencyId))});var E=this.control.isValidateDependenciesRequired(),S=x.internalId,O=x.start,w=x.end;this.history.addAndRedo(new p.UpdateTaskHistoryItem(this.modelManipulator,S,v)),(0,I.isDefined)(v.start)&&E&&this.control.validationController.moveStartDependTasks(S,O),(0,I.isDefined)(v.end)&&E&&this.control.validationController.moveEndDependTasks(S,w),this.processAutoParentUpdate(S,v,O,w),this.history.endTransaction(),b?.option!==C.ConstraintViolationOption.RemoveDependency&&b?.option!==C.ConstraintViolationOption.KeepDependency||this.control.updateBarManager(),this.control.updateViewDataRange()}},h.prototype.processAutoParentUpdate=function(v,x,b,y){var E=(0,I.isDefined)(x.start),S=(0,I.isDefined)(x.end),O=(0,I.isDefined)(x.progress)||E||S,w=E?x.start.getTime()-b.getTime():null,T=S?x.end.getTime()-y.getTime():null,k=E&&0!==s.DateUtils.getTimezoneOffsetDiff(b,x.start),R=S&&0!==s.DateUtils.getTimezoneOffsetDiff(y,x.end),P=(k||R)&&Math.abs(T-w)===s.DateUtils.msPerHour;O?0===w||w!==T&&!P?this.validationController.updateParentsIfRequired(v):this.validationController.correctParentsOnChildMoving(v,w):this.control.updateOwnerInAutoParentMode()},h}(o(24).TaskCommandBase);u.UpdateTaskCommand=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConstraintViolationDialogParameters=void 0;var c=o(0),I=function(C){function g(a,p){var s=C.call(this)||this;return s.validationErrors=a,s.callback=p,s}return c.__extends(g,C),g.prototype.clone=function(){var a=new g(this.validationErrors,this.callback);return a.option=this.option,a},Object.defineProperty(g.prototype,"hasCriticalErrors",{get:function(){var a;return null===(a=this.validationErrors)||void 0===a?void 0:a.some(function(p){return p.critical})},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"errorsCount",{get:function(){var a;return null===(a=this.validationErrors)||void 0===a?void 0:a.length},enumerable:!1,configurable:!0}),g}(o(32).DialogParametersBase);u.ConstraintViolationDialogParameters=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveTaskCommand=void 0;var c=o(0),I=o(31),C=o(40),g=o(118),a=o(41),p=o(33),s=o(119),l=function(d){function h(){return null!==d&&d.apply(this,arguments)||this}return c.__extends(h,d),h.prototype.execute=function(v,x,b,y,E,S){var O=this;return void 0===x&&(x=!0),void 0===b&&(b=!1),void 0===y&&(y=!0),this.isApiCall=b,this.isUpdateParentTaskRequired=y,x?(this.control.commandManager.showConfirmationDialog.execute(new C.ConfirmationDialogParameters(I.ConfirmationType.TaskDelete,function(){O.executeInternal(v,E,S)})),!1):d.prototype.execute.call(this,v,E,S)},h.prototype.executeInternal=function(v,x,b){var y=this,E=b||[],S=this.control.viewModel.findItem(v=v||this.control.currentSelectedTaskID),O=S?S.task:this.control.viewModel.tasks.getItemById(v),w=new g.TaskRemovingArguments(O);if(this.modelManipulator.dispatcher.notifyTaskRemoving(w),w.cancel)return!1;var T=this.history,k=this.control.viewModel;T.beginTransaction(),k.beginUpdate();var R=!!x,P=new s.RemoveTaskHistoryItem(this.modelManipulator,v),B=k.tasks.items.filter(function(U){return U.parentId===v}),W=B.map(function(U){return U.internalId}),z=k.dependencies.items.filter(function(U){return-1===E.indexOf(U.internalId)&&(U.predecessorId===v||U.successorId===v)&&!W.some(function(K){return U.predecessorId===K||U.successorId===K})});if(z.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;z.forEach(function(U){P.add(new a.RemoveDependencyHistoryItem(y.modelManipulator,U.internalId)),E.push(U.internalId)})}if(k.assignments.items.filter(function(U){return U.taskId===v}).forEach(function(U){y.modelManipulator.dispatcher.fireResourceUnassigning(U)&&P.add(new p.DeassignResourceHistoryItem(y.modelManipulator,U.internalId))}),B.reverse().forEach(function(U){return new h(y.control).execute(U.internalId,!1,!0,!1,P,E)}),R?x.add(P):T.addAndRedo(P),this.isUpdateParentTaskRequired){var V=this.control.viewModel.findItem(O.parentId);d.prototype.updateParent.call(this,V)}return T.endTransaction(),k.endUpdate(),!0},h.prototype.isEnabled=function(){var v=this.control,x=v.viewModel.findItem(v.currentSelectedTaskID);return d.prototype.isEnabled.call(this)&&(!!x&&x.selected||this.isApiCall)},h.prototype.getState=function(){var v=d.prototype.getState.call(this);return v.visible=v.visible&&this.control.settings.editing.allowTaskDelete,v},h}(o(24).TaskCommandBase);u.RemoveTaskCommand=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskRemovingArguments=void 0;var c=o(0),I=function(C){function g(a){var p=C.call(this,a.id)||this;return p.values=a,p}return c.__extends(g,C),g}(o(11).BaseArguments);u.TaskRemovingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RemoveTaskHistoryItem=void 0;var c=o(0),I=o(2),C=o(42),g=function(a){function p(s,l){var d=a.call(this)||this;return d.modelManipulator=s,d.taskId=l,d}return c.__extends(p,a),p.prototype.redo=function(){a.prototype.redo.call(this),this.task=this.modelManipulator.task.remove(this.taskId)},p.prototype.undo=function(){var s=this;this.modelManipulator.task.create(this.task,this.taskId,function(){window.setTimeout(function(){return a.prototype.undo.call(s)},0)})},p.prototype.undoItemsQuery=function(){var s;this.modelManipulator.task.create(this.task,this.taskId);for(var l=this.historyItems.length-1;s=this.historyItems[l];l--)s instanceof C.CompositionHistoryItem?s.undoItemsQuery():s.undo()},Object.defineProperty(p.prototype,"keyUpdaters",{get:function(){var s=this;return[{objectType:I.GanttDataObjectNames.task,getKey:function(){return s.taskId},updateKey:function(l){return s.taskId=l}},{objectType:I.GanttDataObjectNames.task,getKey:function(){var l;return null===(l=s.task)||void 0===l?void 0:l.parentId},updateKey:function(l){return s.task.parentId=l}}]},enumerable:!1,configurable:!0}),p}(C.CompositionHistoryItem);u.RemoveTaskHistoryItem=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAddContextItemCommand=void 0;var c=o(0),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.prototype.getState=function(){var a=C.prototype.getState.call(this);return a.visible=a.visible&&this.control.settings.editing.allowTaskInsert,a},g.prototype.execute=function(){return!1},g}(o(24).TaskCommandBase);u.TaskAddContextItemCommand=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ZoomInCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.zoomIn(),!0},p}(I.CommandBase);u.ZoomInCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ZoomOutCommand=void 0;var c=o(0),I=o(6),C=o(7),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.getState=function(){return new C.SimpleCommandState(!0)},p.prototype.execute=function(){return a.prototype.execute.call(this)},p.prototype.executeInternal=function(){return this.control.zoomOut(),!0},p}(I.CommandBase);u.ZoomOutCommand=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.FullScreenHelperSettings=void 0;var c=o(1),I=function(){function C(){}return C.parse=function(g){var a=new C;return g&&((0,c.isDefined)(g.getMainElement)&&(a.getMainElement=g.getMainElement),(0,c.isDefined)(g.adjustControl)&&(a.adjustControl=g.adjustControl)),a},C}();u.FullScreenHelperSettings=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.FullScreenModeHelper=void 0;var c=o(10),I=o(125),C=o(3),g=function(){function a(p){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.settings=p}return Object.defineProperty(a.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!1,configurable:!0}),a.prototype.getMainElement=function(){return this.settings.getMainElement()},a.prototype.adjustControl=function(){this.settings.adjustControl()},a.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},a.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},a.prototype.prepareFullScreenMode=function(){var p=this.getMainElement();I.AttrUtils.changeElementStyleAttribute(p,"border-top-width","0px"),I.AttrUtils.changeElementStyleAttribute(p,"border-left-width","0px"),I.AttrUtils.changeElementStyleAttribute(p,"border-right-width","0px"),I.AttrUtils.changeElementStyleAttribute(p,"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=C.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=C.DomUtils.getDocumentScrollLeft(),I.AttrUtils.changeElementStyleAttribute(p,"background-color","white"),I.AttrUtils.changeElementStyleAttribute(p,"position","fixed"),I.AttrUtils.changeElementStyleAttribute(p,"top","0px"),I.AttrUtils.changeElementStyleAttribute(p,"left","0px"),I.AttrUtils.changeElementStyleAttribute(p,"z-index","1010"),I.AttrUtils.changeElementStyleAttribute(document.documentElement,"position","static"),I.AttrUtils.changeElementStyleAttribute(document.documentElement,"overflow","hidden"),this.fullScreenTempVars.bodyMargin=document.body.style.margin,document.body.style.margin="0",this.fullScreenTempVars.width=p.style.width,this.fullScreenTempVars.height=p.style.height||p.clientHeight,window.self!==window.top&&this.requestFullScreen(document.body)},a.prototype.setNormalMode=function(){this.cancelFullScreen(document);var p=this.getMainElement();I.AttrUtils.restoreElementStyleAttribute(p,"left"),I.AttrUtils.restoreElementStyleAttribute(p,"top"),I.AttrUtils.restoreElementStyleAttribute(p,"background-color"),I.AttrUtils.restoreElementStyleAttribute(document.documentElement,"overflow"),I.AttrUtils.restoreElementStyleAttribute(document.documentElement,"position"),I.AttrUtils.restoreElementStyleAttribute(p,"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,I.AttrUtils.restoreElementStyleAttribute(p,"position"),I.AttrUtils.restoreElementStyleAttribute(p,"border-top-width"),I.AttrUtils.restoreElementStyleAttribute(p,"border-left-width"),I.AttrUtils.restoreElementStyleAttribute(p,"border-right-width"),I.AttrUtils.restoreElementStyleAttribute(p,"border-bottom-width"),this.setHeight(this.fullScreenTempVars.height),this.setWidth(this.fullScreenTempVars.width),document.documentElement.scrollTop=this.fullScreenTempVars.scrollTop,document.documentElement.scrollLeft=this.fullScreenTempVars.scrollLeft,this.adjustControl()},a.prototype.adjustControlInFullScreenMode=function(){var p=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,s=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(p),this.setHeight(s),this.adjustControl()},a.prototype.requestFullScreen=function(p){p.requestFullscreen?p.requestFullscreen():p.mozRequestFullScreen?p.mozRequestFullScreen():p.webkitRequestFullscreen?p.webkitRequestFullscreen():p.msRequestFullscreen&&p.msRequestFullscreen()},a.prototype.cancelFullScreen=function(p){c.Browser.Firefox&&!this.getFullScreenElement(p)||(p.webkitExitFullscreen?p.webkitExitFullscreen():p.mozCancelFullScreen?p.mozCancelFullScreen():p.msExitFullscreen?p.msExitFullscreen():p.exitFullscreen&&p.exitFullscreen())},a.prototype.getFullScreenElement=function(p){return p.fullscreenElement||p.webkitFullscreenElement||p.mozFullScreenElement||p.msFullscreenElement},a.prototype.setWidth=function(p){this.getMainElement().style.width=this.isNumber(p)?p+"px":p},a.prototype.setHeight=function(p){this.getMainElement().style.height=this.isNumber(p)?p+"px":p},a.prototype.isNumber=function(p){return!isNaN(parseFloat(p))&&isFinite(p)},a}();u.FullScreenModeHelper=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.AttrUtils=void 0;var c=o(10),I=function(){function C(){}return C.setElementAttribute=function(g,a,p){g.setAttribute&&(c.Browser.IE&&c.Browser.MajorVersion>=11&&"src"===a.toLowerCase()&&g.setAttribute(a,""),g.setAttribute(a,p))},C.setStyleAttribute=function(g,a,p){g.setProperty&&g.setProperty(a,p,"")},C.getElementAttribute=function(g,a){return g.getAttribute(a)},C.getStyleAttribute=function(g,a){if(g.getPropertyValue){if(c.Browser.Firefox)try{return g.getPropertyValue(a)}catch{return g[a]}return g.getPropertyValue(a)}return null},C.removeElementAttribute=function(g,a){g.removeAttribute&&g.removeAttribute(a)},C.removeStyleAttribute=function(g,a){g.removeProperty&&g.removeProperty(a)},C.changeElementStyleAttribute=function(g,a,p){C.saveStyleAttributeInElement(g,a),C.setStyleAttribute(g.style,a,p)},C.restoreElementStyleAttribute=function(g,a){var p="dxwu_saved"+a,s=g.style;if(C.isExistsAttributeInElement(g,p)){var l=C.getElementAttribute(g,p);return l===C.emptyObject||null===l?C.removeStyleAttribute(s,a):C.setStyleAttribute(s,a,l),C.removeElementAttribute(g,p),!0}return!1},C.saveStyleAttributeInElement=function(g,a){var p="dxwu_saved"+a,s=g.style;if(!C.isExistsAttributeInElement(g,p)){var l=C.getStyleAttribute(s,a);C.setElementAttribute(g,p,C.isAttributeExists(l)?l:C.emptyObject)}},C.isExistsAttributeInElement=function(g,a){var p=C.getElementAttribute(g,a);return C.isAttributeExists(p)},C.isAttributeExists=function(g){return null!==g&&""!==g},C.emptyObject="DxEmptyValue",C}();u.AttrUtils=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttExportCalculator=void 0;var c=o(5),I=o(3),C=o(4),g=o(25),a=o(60),p=o(61),s=o(44),l=o(17),d=o(26),h=o(36),v=o(45),x=o(130),b=o(131),y=o(27),E=o(12),S=o(134),O=o(136),w=o(63),T=o(37),k=o(35),R=function(){function P(B,W){var z,V;this._owner=B,this._props=new b.GanttPdfExportProps(W),null!==(z=(V=this._props).margins)&&void 0!==z||(V.margins=new h.Margin(P._defaultPageMargin))}return Object.defineProperty(P.prototype,"chartTableScaleTopMatrix",{get:function(){var B;return null!==(B=this._chartTableScaleTopMatrix)&&void 0!==B||(this._chartTableScaleTopMatrix=this.calculateChartScaleMatrix(0)),this._chartTableScaleTopMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartTableScaleBottomMatrix",{get:function(){var B;return null!==(B=this._chartTableScaleBottomMatrix)&&void 0!==B||(this._chartTableScaleBottomMatrix=this.calculateChartScaleMatrix(1)),this._chartTableScaleBottomMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartTableBodyMatrix",{get:function(){return this._chartTableBodyMatrix||this.calculateChartTableBodyMatrix(),this._chartTableBodyMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListHeaderMatrix",{get:function(){return this._treeListHeaderMatrix||this.calculateTreeListTableHeaderMatrix(),this._treeListHeaderMatrix},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListBodyMatrix",{get:function(){return this._treeListBodyMatrix||this.calculateTreeListTableBodyMatrix(),this._treeListBodyMatrix},enumerable:!1,configurable:!0}),P.prototype.getPages=function(B){return new S.PdfGanttPaginator(B,this.settings,this.createGlobalInfo()).getPages()},Object.defineProperty(P.prototype,"settings",{get:function(){return this.settingsForPaging},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"layoutCalculator",{get:function(){return this._taskAreaHelper.layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"taskAreaHelper",{get:function(){var B;return null!==(B=this._taskAreaHelper)&&void 0!==B||(this._taskAreaHelper=new x.TaskAreaExportHelper(this._owner,this._props)),this._taskAreaHelper},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"scalingHelper",{get:function(){var B,W;return null!==(B=this._scalingHelper)&&void 0!==B||(this._scalingHelper=new O.ScalingHelper(null===(W=this._props)||void 0===W?void 0:W.pdfDoc)),this._scalingHelper},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"visibleTaskIndices",{get:function(){return this.taskAreaHelper.visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"baseCellWidth",{get:function(){return this.taskAreaHelper.baseCellSize.width},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"baseCellHeight",{get:function(){return this.taskAreaHelper.baseCellHeight},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartScaleTableStyle",{get:function(){var B;return null!==(B=this._chartScaleTableStyle)&&void 0!==B||(this._chartScaleTableStyle=this.getChartScaleTableStyle()),this._chartScaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"chartMainTableStyle",{get:function(){var B;return null!==(B=this._chartMainTableStyle)&&void 0!==B||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListTableStyle",{get:function(){return this._treeListTableStyle||this.calculateTreeListTableStyle(),this._treeListTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageTopMargin",{get:function(){return this._props.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageLeftMargin",{get:function(){return this._props.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageRightMargin",{get:function(){return this._props.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"pageBottomMargin",{get:function(){return this._props.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"headerTableTop",{get:function(){var B;return null!==(B=this._headerTableTop)&&void 0!==B||(this._headerTableTop=this.pageTopMargin),this._headerTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"mainTableTop",{get:function(){var B;return null!==(B=this._mainTableTop)&&void 0!==B||(this._mainTableTop=this.getMainTableTop()),this._mainTableTop},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"exportDataMode",{get:function(){return this._props.exportDataMode},enumerable:!1,configurable:!0}),P.prototype.getMainTableTop=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.offsetTop},Object.defineProperty(P.prototype,"chartLeft",{get:function(){var B;return null!==(B=this._chartLeft)&&void 0!==B||(this._chartLeft=this.getChartLeft()),this._chartLeft},enumerable:!1,configurable:!0}),P.prototype.getChartLeft=function(){var B;return(((null===(B=this._props)||void 0===B?void 0:B.exportMode)||T.ExportMode.all)===T.ExportMode.chart?this.pageLeftMargin:this.treeListLeft+this.treeListWidth)-this.taskAreaHelper.offsetLeft},Object.defineProperty(P.prototype,"treeListLeft",{get:function(){var B;return null!==(B=this._treeListLeft)&&void 0!==B||(this._treeListLeft=this.pageLeftMargin),this._treeListLeft},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"headerTableHeight",{get:function(){return 2*this.taskAreaHelper.headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"mainTableHeight",{get:function(){var B;return null!==(B=this._mainTableHeight)&&void 0!==B||(this._mainTableHeight=this.taskAreaHelper.taskAreaHeight),this._mainTableHeight},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"treeListWidth",{get:function(){var B;return null!==(B=this._treeListWidth)&&void 0!==B||(this._treeListWidth=this.getTreeListTableWidth()),this._treeListWidth},enumerable:!1,configurable:!0}),P.prototype.getTreeListTableWidth=function(){var B,W=this;return null!==(B=this.treeListHeaderMatrix[0].map(function(V,U){return W.getTreeListColumnWidth(U)})?.reduce(function(V,U){return V+U},0))&&void 0!==B?B:0},Object.defineProperty(P.prototype,"chartWidth",{get:function(){var B=this;return this._chartWidth||(this._chartWidth=this.chartTableScaleBottomMatrix[0].reduce(function(z,V){return z+(V.styles.cellWidth.hasValue()?V.styles.cellWidth.getValue():B.baseCellWidth)},0)),this._chartWidth},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"settingsForPaging",{get:function(){return this._settingsForPaging||(this._settingsForPaging=new b.GanttPdfExportProps(this._props),this.prepareAutoFormat(this._settingsForPaging),this.scalingHelper.scalePageMargins(this._settingsForPaging)),this._settingsForPaging},enumerable:!1,configurable:!0}),P.prototype.prepareAutoFormat=function(B){if(B.format===b.GanttPdfExportProps.autoFormatKey){B.format=null;var W=B.landscape,z=this.autoFormatWidth,V=this.autoFormatHeight;(W&&V>z||!W&&V<z)&&(B.landscape=!W),B.pageSize=new E.Size(z,V)}},Object.defineProperty(P.prototype,"autoFormatWidth",{get:function(){var B,W=((null===(B=this._props)||void 0===B?void 0:B.exportMode)||T.ExportMode.all)!==T.ExportMode.treeList,z=this.pageRightMargin;return(z+=W?this.chartLeft+this.chartWidth:this.treeListLeft+this.treeListWidth)+P._autoFormatWidthAddStock},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"autoFormatHeight",{get:function(){return this.mainTableTop+this.mainTableHeight+this.pageBottomMargin},enumerable:!1,configurable:!0}),P.prototype.createGlobalInfo=function(){var B={objects:this._canExportChart()?this.getGanttObjectsInfo():null,tables:this.getTablesInfo()};return this.scalingHelper.scaleSizes(B),B},P.prototype.getTablesInfo=function(){var B={};return this._canExportTreelist()&&(B[y.PdfPageTableNames.treeListHeader]=this.createTreeListHeaderTableInfo(),B[y.PdfPageTableNames.treeListMain]=this.createTreeListMainTableInfo()),this._canExportChart()&&(B[y.PdfPageTableNames.chartMain]=this.createChartMainTableInfo(),B[y.PdfPageTableNames.chartScaleTop]=this._createChartScaleTopInfo(),B[y.PdfPageTableNames.chartScaleBottom]=this._createChartScaleBottomInfo()),B},Object.defineProperty(P.prototype,"exportMode",{get:function(){var B,W;return null!==(W=null===(B=this._props)||void 0===B?void 0:B.exportMode)&&void 0!==W?W:T.ExportMode.all},enumerable:!1,configurable:!0}),P.prototype._canExportTreelist=function(){return this.exportMode===T.ExportMode.all||this.exportMode===T.ExportMode.treeList},P.prototype._canExportChart=function(){return this.exportMode===T.ExportMode.all||this.exportMode===T.ExportMode.chart},Object.defineProperty(P.prototype,"_predefinedFont",{get:function(){var B,W,z,V;return(null===(W=null===(B=this._props)||void 0===B?void 0:B.pdfDoc)||void 0===W?void 0:W.getFont())?.fontName||(null===(V=null===(z=this._props)||void 0===z?void 0:z.font)||void 0===V?void 0:V.name)},enumerable:!1,configurable:!0}),P.prototype._createChartScaleTopInfo=function(){return{name:y.PdfPageTableNames.chartScaleTop,size:new E.Size(this.chartWidth,this.taskAreaHelper.headerRowHeight),position:new c.Point(this.chartLeft,this.headerTableTop),style:this.chartScaleTableStyle,baseCellSize:new E.Size(this.baseCellWidth,this.taskAreaHelper.headerRowHeight),cells:this.chartTableScaleTopMatrix}},P.prototype._createChartScaleBottomInfo=function(){var B=this.taskAreaHelper.headerRowHeight;return{name:y.PdfPageTableNames.chartScaleBottom,size:new E.Size(this.chartWidth,B),position:new c.Point(this.chartLeft,this.headerTableTop+B),style:this.chartScaleTableStyle,baseCellSize:new E.Size(this.baseCellWidth,B),cells:this.chartTableScaleBottomMatrix}},P.prototype.createChartMainTableInfo=function(){return{name:y.PdfPageTableNames.chartMain,size:new E.Size(this.chartWidth,this.mainTableHeight),position:new c.Point(this.chartLeft,this.mainTableTop),style:this.chartMainTableStyle,baseCellSize:new E.Size(this.baseCellWidth,this.baseCellHeight),cells:this.chartTableBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},P.prototype.createTreeListHeaderTableInfo=function(){return{name:y.PdfPageTableNames.treeListHeader,size:new E.Size(this.treeListWidth,this.headerTableHeight),position:new c.Point(this.treeListLeft,this.headerTableTop),style:this.treeListTableStyle,baseCellSize:new E.Size(null,this.headerTableHeight),cells:this.treeListHeaderMatrix}},P.prototype.createTreeListMainTableInfo=function(){return{name:y.PdfPageTableNames.treeListMain,size:new E.Size(this.treeListWidth,this.mainTableHeight),position:new c.Point(this.treeListLeft,this.mainTableTop),style:this.treeListTableStyle,baseCellSize:new E.Size(null,this.baseCellHeight),cells:this.treeListBodyMatrix,hideRowLines:!this._owner.settings.areHorizontalBordersEnabled}},P.prototype.calculateChartScaleMatrix=function(B){for(var W=this.taskAreaHelper,z=W.scaleRanges,V=new Array,K=z[B][1],Y=z[B][0];Y<=K;Y++){var J=this.layoutCalculator.getScaleItemStart(Y,W.scales[B]),j=new v.CellDef(this._owner.renderHelper.getScaleItemTextByStart(J,W.scales[B]));j.styles.cellPadding.assign(0),j.styles.minCellHeight=this.taskAreaHelper.headerRowHeight,j.styles.cellWidth.assign(0===B?W.scaleTopWidths[Y]:W.scaleBottomWidths[Y]),V.push(j)}return[V]},P.prototype.calculateChartTableBodyMatrix=function(){var B=this;this._chartTableBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.visibleTaskIndices.forEach(function(W){return B._chartTableBodyMatrix.push(B.createChartTableBodyRow(W))}):this._chartTableBodyMatrix.push(this.createChartTableBodyRow(-1))},P.prototype.createChartTableBodyRow=function(B){var W=new v.CellDef;return this.rowHasChildren(B)&&W.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),this.chartTableScaleBottomMatrix[0].map(function(z){var V=new v.CellDef(W);return V.styles.cellWidth.assign(z.styles.cellWidth),V})},P.prototype.rowHasSelection=function(B){return this._owner.rowHasSelection(B)},P.prototype.rowHasChildren=function(B){return this._owner.rowHasChildren(B)},P.prototype.calculateTreeListTableHeaderMatrix=function(){this._treeListHeaderMatrix=new Array;for(var B=this._owner,W=B.getTreeListColCount(),z=new Array,V=0;V<W;V++){var U=new v.CellDef(B.getTreeListHeaderInfo(V));U.styles.minCellHeight=2*this.taskAreaHelper.headerRowHeight,z.push(U)}this._treeListHeaderMatrix.push(z)},P.prototype.calculateTreeListTableBodyMatrix=function(){this._treeListBodyMatrix=new Array,this.visibleTaskIndices.length>0?this.fillTreeListTableBodyMatrix(this._treeListBodyMatrix):this.fillTreeListEmptyTableBodyMatrix(this._treeListBodyMatrix)},P.prototype.fillTreeListTableBodyMatrix=function(B){for(var W,z=this.visibleTaskIndices,V=this.treeListHeaderMatrix[0].length,U=0;U<z.length;U++){for(var K=new Array,Y=z[U],J=null===(W=this._owner.getTask(Y))||void 0===W?void 0:W.id,j=0;j<V;j++){var ee=new v.CellDef(this._owner.getTreeListCellInfo(Y,j,J));ee.styles.cellWidth.hasValue()||ee.styles.cellWidth.assign(this.getTreeListColumnWidth(j)),this.rowHasChildren(z[U])&&ee.styles.fillColor.assign(this.taskAreaHelper.parentRowBackColor),K.push(ee)}B.push(K)}},P.prototype.fillTreeListEmptyTableBodyMatrix=function(B){var W=new Array,z=new v.CellDef(this._owner.getTreeListEmptyDataCellInfo());z.styles.cellWidth.assign(this.treeListWidth),z.styles.halign=k.PredefinedStyles.horizontalAlign[1],z.styles.valign=k.PredefinedStyles.verticalAlign[1],W.push(z),B.push(W)},P.prototype.getTreeListColumnWidth=function(B){var W=this.treeListHeaderMatrix[0][B],z=W&&W.styles;return z.cellWidth.getValue()||z.minCellWidth||0},P.prototype.getObjectsLeftOffset=function(B){void 0===B&&(B=!1);var W=this.dataObjectLeftDelta;return B||(W+=this.taskAreaHelper.customRangeLeftOffset),W},Object.defineProperty(P.prototype,"dataObjectLeftDelta",{get:function(){var B;return null!==(B=this._dataObjectLeftDelta)&&void 0!==B||(this._dataObjectLeftDelta=this.getDataObjectLeftDelta()),this._dataObjectLeftDelta},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dataObjectTopDelta",{get:function(){var B;return null!==(B=this._dataObjectTopDelta)&&void 0!==B||(this._dataObjectTopDelta=this.getDataObjectTopDelta()),this._dataObjectTopDelta},enumerable:!1,configurable:!0}),P.prototype.getChartScaleTableStyle=function(){var B=new d.StyleDef(this.taskAreaHelper.scaleTableStyle);return this._predefinedFont&&(B.font=this._predefinedFont),B},P.prototype.getChartMainTableStyle=function(){var B=new d.StyleDef(this.taskAreaHelper.chartMainTableStyle);return this._predefinedFont&&(B.font=this._predefinedFont),B},P.prototype.calculateTreeListTableStyle=function(){this._treeListTableStyle=new d.StyleDef(this._owner.getTreeListTableStyle()),this._treeListTableStyle.fillColor.assign(this.chartMainTableStyle.fillColor),this._treeListTableStyle.lineColor.assign(this.chartMainTableStyle.lineColor),this._predefinedFont&&(this._treeListTableStyle.font=this._predefinedFont)},P.prototype.getGanttObjectsInfo=function(){return{tasks:this.tasksInfo,dependencies:this.dependenciesInfo,resources:this.resourcesInfo,timeMarkers:this.timeMarkersInfo}},Object.defineProperty(P.prototype,"tasksInfo",{get:function(){var B;return null!==(B=this._tasksInfo)&&void 0!==B||(this._tasksInfo=this.calculateTasksInfo()),this._tasksInfo},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"dependenciesInfo",{get:function(){var B;return null!==(B=this._dependenciesInfo)&&void 0!==B||(this._dependenciesInfo=this.calculateDependenciesInfo()),this._dependenciesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"resourcesInfo",{get:function(){var B;return null!==(B=this._resourcesInfo)&&void 0!==B||(this._resourcesInfo=this.calculateResourcesInfo()),this._resourcesInfo},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"timeMarkersInfo",{get:function(){var B;return null!==(B=this._timeMarkersInfo)&&void 0!==B||(this._timeMarkersInfo=this.calculateTimeMarkersInfoInfo()),this._timeMarkersInfo},enumerable:!1,configurable:!0}),P.prototype.getDataObjectLeftDelta=function(){return this.chartLeft-this.taskAreaHelper.objectsLeftDelta},P.prototype.getDataObjectTopDelta=function(){return this.headerTableTop+this.headerTableHeight-this.taskAreaHelper.objectsTopDelta},P.prototype.calculateTasksInfo=function(){var B=this,W=new Array;return this.visibleTaskIndices.forEach(function(z){return W.push(B.calculateTaskInfo(z))}),W},P.prototype.calculateTaskInfo=function(B){var W=new s.PdfTaskInfo,z=this.layoutCalculator.getTaskElementInfo(B);return W.taskColor=this.getTaskColor(B),W.sidePoints=this.getTaskSidePoints(B),W.isMilestone=z.className.indexOf(g.GridLayoutCalculator.milestoneClassName)>0,W.isMilestone||(W.isSmallTask=z.className.indexOf(g.GridLayoutCalculator.smallTaskClassName)>0,W.isParent=z.className.indexOf(g.GridLayoutCalculator.parentTaskClassName)>0,this.appendTaskTitle(W,B),this.appendTaskProgress(W,B)),W},P.prototype.appendTaskTitle=function(B,W){var z=this._owner.settings.taskTitlePosition;B.isSmallTask&&z!==C.TaskTitlePosition.Outside||z===C.TaskTitlePosition.None||(B.text=this._owner.getTaskText(W),B.textPosition=z,B.textStyle=this.getTaskTextStyle(W))},P.prototype.appendTaskProgress=function(B,W){var z=this.layoutCalculator.getTaskProgressElementInfo(W);B.progressWidth=z.size.width,B.progressColor=this.getTaskProgressColor(W),B.progressColor.applyOpacityToBackground(B.taskColor)},P.prototype.getTaskSidePoints=function(B){var W=this,z=this.layoutCalculator.getTaskSidePoints(B);return z.forEach(function(V){V.x+=W.getObjectsLeftOffset(!0),V.y+=W.dataObjectTopDelta}),z},P.prototype.getTaskColor=function(B){var W=this.taskAreaHelper.getTaskElementBackColor(B,g.GridLayoutCalculator.taskClassName);return new l.Color(W)},P.prototype.getTaskProgressColor=function(B){return new l.Color(this.taskAreaHelper.getTaskElementBackColor(B,g.GridLayoutCalculator.taskProgressClassName))},P.prototype.getTaskTextStyle=function(B){var W=new d.StyleDef;return W.cellPadding.assign(0),W.assign(this.taskAreaHelper.getTaskElementStyle(B,g.GridLayoutCalculator.taskTitleClassName)),W},P.prototype.calculateDependenciesInfo=function(){var B=this,W=new Array,z=this.taskAreaHelper,V=new l.Color(z.dependencyColor);return z.connectorLines.forEach(function(U){return W.push(B.createLineInfo(U,V,z.arrowWidth))}),W},P.prototype.createLineInfo=function(B,W,z){var V=new a.PdfDependencyLineInfo;if(V.fillColor=W,B.className.indexOf(g.GridLayoutCalculator.arrowClassName)>-1){var U=this.layoutCalculator.getArrowPositionByClassName(B.className);V.arrowInfo={position:U,width:z},V.points=[this.getArrowTopCorner(B,U,z)]}else V.points=this.getLinePoints(B);return V},P.prototype.getArrowTopCorner=function(B,W,z){var V=B.position.x+this.getObjectsLeftOffset(),U=B.position.y+this.dataObjectTopDelta;switch(W){case C.Position.Left:V+=z;break;case C.Position.Top:U+=z}return new c.Point(V,U)},P.prototype.getLinePoints=function(B){var W=B.position.x+this.getObjectsLeftOffset(),z=B.position.y+this.dataObjectTopDelta,V=W+B.size.width,U=z+B.size.height;return[new c.Point(W,z),new c.Point(V,U)]},P.prototype.calculateResourcesInfo=function(){var B=this,W=new Array;return this.taskAreaHelper.resourcesElements.forEach(function(z){return W=W.concat(B.calculateResourcesInLine(z))}),W},P.prototype.calculateResourcesInLine=function(B){var W=new Array;if(B)for(var z=I.DomUtils.pxToInt(B.style.left)+this.getObjectsLeftOffset(),V=I.DomUtils.pxToInt(B.style.top)+this.dataObjectTopDelta,U=B.getElementsByClassName(g.GridLayoutCalculator.taskResourceClassName),K=0;K<U.length;K++){var Y=U[K],J=getComputedStyle(Y);z+=this.getMargin(J).left,W.push(new p.PdfTaskResourcesInfo(Y.textContent,new d.StyleDef(J),z,V)),z+=I.DomUtils.pxToInt(J.width)}return W},P.prototype.calculateTimeMarkersInfoInfo=function(){var B=this,W=new Array;return this.taskAreaHelper.stripLinesElements.forEach(function(z){return W.push(B.createTimeMarkerInfo(z,!0))}),this.taskAreaHelper.noWorkingIntervalsElements.forEach(function(z){return W.push(B.createTimeMarkerInfo(z,!1))}),W},P.prototype.createTimeMarkerInfo=function(B,W){var z=getComputedStyle(B),V=I.DomUtils.pxToInt(z.left)+this.getObjectsLeftOffset(),U=I.DomUtils.pxToInt(z.top)+this.dataObjectTopDelta,K=I.DomUtils.pxToInt(z.width),Y=I.DomUtils.pxToInt(z.height);return new w.PdfTimeMarkerInfo(new c.Point(V,U),new E.Size(K,Y),new l.Color(z.backgroundColor),new l.Color(z.borderLeftColor),W)},P.prototype.getMargin=function(B){var W=new h.Margin(0);if(B){var z=B.margin;z||(z+=B.marginTop||"0",z+=" "+B.marginRight||0,z+=" "+B.marginBottom||0,z+=" "+B.marginLeft||0),W.assign(z)}return W},P._defaultPageMargin=10,P._autoFormatWidthAddStock=1,P}();u.GanttExportCalculator=R},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Margins=void 0;var c=o(0),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.empty=function(){return new g(0,0,0,0)},g.prototype.clone=function(){return new g(this.left,this.right,this.top,this.bottom)},g}(o(128).Offsets);u.Margins=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Offsets=void 0;var c=function(){function I(C,g,a,p){this.left=C,this.right=g,this.top=a,this.bottom=p}return I.empty=function(){return new I(0,0,0,0)},Object.defineProperty(I.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!1,configurable:!0}),I.fromNumber=function(C){return new I(C,C,C,C)},I.fromOffsets=function(C){return new I(C.left,C.right,C.top,C.bottom)},I.fromSide=function(C,g){return new I(C,C,g,g)},I.prototype.normalize=function(){return this.left=Math.max(0,this.left),this.right=Math.max(0,this.right),this.top=Math.max(0,this.top),this.bottom=Math.max(0,this.bottom),this},I.prototype.toString=function(){return JSON.stringify(this)},I.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},I.prototype.offset=function(C){return this.left+=C.left,this.right+=C.right,this.top+=C.top,this.bottom+=C.bottom,this},I.prototype.multiply=function(C,g,a,p){switch(arguments.length){case 1:return this.left*=C,this.right*=C,this.top*=C,this.bottom*=C,this;case 2:return this.left*=C,this.right*=C,this.top*=g,this.bottom*=g,this;case 4:return this.left*=C,this.right*=g,this.top*=a,this.bottom*=p,this}return this},I.prototype.clone=function(){return new I(this.left,this.right,this.top,this.bottom)},I.prototype.copyFrom=function(C){this.left=C.left,this.right=C.right,this.top=C.top,this.bottom=C.bottom},I.prototype.equals=function(C){return this.top===C.top&&this.bottom===C.bottom&&this.right===C.right&&this.left===C.left},I.prototype.applyConverter=function(C){return this.left=C(this.left),this.right=C(this.right),this.top=C(this.top),this.bottom=C(this.bottom),this},I}();u.Offsets=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ScaleCalculator=u.ScaleItemInfo=void 0;var c=o(5),I=o(12),C=o(15),g=o(4),a=function(s,l,d,h){this.start=s,this.end=l,this.position=d,this.size=h};u.ScaleItemInfo=a;var p=function(){function s(){this.firstDayOfWeek=0}return s.prototype.setSettings=function(l,d,h,v){void 0===v&&(v=0),this.range=l,this.viewType=d,this.tickSize=h,this.firstDayOfWeek=v,this.reset()},s.prototype.setViewType=function(l){this.viewType=l,this.reset()},s.prototype.reset=function(){delete this._bottomScaleItems,delete this._topScaleItems,delete this._scaleWidth},s.prototype.getScaleIndexByPos=function(l,d){null!=d||(d=this.viewType);var h=d===this.viewType?this.bottomScaleItems:this.topScaleItems,v=-1;if(h.findIndex)v=h.findIndex(function(b){return l>=b.position.x&&l<=b.position.x+b.size.width});else{var x=h.filter(function(b){return l>=b.position.x&&l<=b.position.x+b.size.width})[0];x&&(v=h.indexOf(x))}return v},s.prototype.getScaleBorderPosition=function(l,d){var h=this.getScaleItems(d)[l];if(h)return h.position.x+h.size.width},s.prototype.getScaleItems=function(l){return l===this.viewType?this.bottomScaleItems:l===C.DateUtils.ViewTypeToScaleMap[this.viewType]?this.topScaleItems:null},s.prototype.getScaleItem=function(l,d){return this.getScaleItems(d)[l]},s.prototype.getScaleItemAdjustedStart=function(l,d){var h=this.getScaleItems(d)[l];if(l>0)return h.start;var v=d!==this.viewType,x=v?C.DateUtils.adjustStartDateByViewType(this.range.start,this.viewType,this.firstDayOfWeek):this.getAdjustedBottomScaleItemStart(h.start,d,this.firstDayOfWeek);if(v&&d===g.ViewType.Months){var b=this.range.start;x=new Date(b.getFullYear(),b.getMonth(),1)}if(v&&d===g.ViewType.FiveYears){var y=5*Math.trunc(x.getFullYear()/5);x=new Date(y,x.getMonth(),x.getDate())}return x},Object.defineProperty(s.prototype,"topScaleItems",{get:function(){var l;return null!==(l=this._topScaleItems)&&void 0!==l||(this._topScaleItems=this.calculateTopScale(C.DateUtils.ViewTypeToScaleMap[this.viewType])),this._topScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"bottomScaleItems",{get:function(){var l;return null!==(l=this._bottomScaleItems)&&void 0!==l||(this._bottomScaleItems=this.calculateBottomScale(this.viewType)),this._bottomScaleItems},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleWidth",{get:function(){var l;return null!==(l=this._scaleWidth)&&void 0!==l||(this._scaleWidth=this.calculateScaleWidth()),this._scaleWidth},enumerable:!1,configurable:!0}),s.prototype.getFirstScaleIndexForRender=function(l){var d=this.getScaleIndexByPos(l);return Math.max(d-10,0)},s.prototype.getLastScaleIndexForRender=function(l){var d=this.getScaleIndexByPos(l);return-1===d?this.bottomScaleItems.length-1:Math.min(d+10,this.bottomScaleItems.length-1)},s.prototype.getTopScaleIndexByBottomIndex=function(l){var d=this.bottomScaleItems[l];return d?this.getScaleIndexByPos(d.position.x,C.DateUtils.ViewTypeToScaleMap[this.viewType]):-1},s.prototype.calculateBottomScale=function(l){for(var d=new Array,h=this.tickSize.width,v=this.range.start,x=0;v.getTime()<this.range.end.getTime();){var b=this.getNextScaleDate(v,l),y=v.getTime()===this.range.start.getTime(),E=b.getTime()>=this.range.end.getTime(),S=y||E?this.getRangeTickCount(v,b)*h:h;d.push(new a(v,b,new c.Point(x,void 0),new I.Size(S,0))),v=b,x+=S}return d},s.prototype.calculateTopScale=function(l){for(var d=new Array,h=this.range.end.getTime(),v=this.range.start,x=0,b=0;v.getTime()<h;)for(var y=this.getNextScaleDate(v,l),E=y.getTime(),S=b;S<this.bottomScaleItems.length;S++){var O=this.bottomScaleItems[S],w=O.start.getTime(),T=O.end.getTime();if(E>=w&&E<=T){var k=(E-w)/(T-w)*O.size.width+O.position.x;d.push(new a(v,y,new c.Point(x,void 0),new I.Size(k-x,0))),b=S,x=k,v=y;break}}return d},s.prototype.getDateInScale=function(l){for(var d=0;d<this.bottomScaleItems.length;d++){var h=this.bottomScaleItems[d],v=h.size.width,x=h.position.x;if(l>=x&&l<=x+v){var b=h.start.getTime(),y=(l-x)/v*(h.end.getTime()-b);return new Date(h.start.getTime()+y)}}return new Date(this.range.end)},s.prototype.getNextScaleDate=function(l,d){var h;switch(d){case g.ViewType.TenMinutes:h=this.getNextDateInTenMinutesScale(l);break;case g.ViewType.Hours:h=this.getNextDateInHoursScale(l);break;case g.ViewType.SixHours:h=this.getNextDateInSixHoursScale(l);break;case g.ViewType.Days:h=this.getNextDateInDaysScale(l);break;case g.ViewType.Weeks:h=this.getNextDateInWeeksScale(l,this.firstDayOfWeek);break;case g.ViewType.Months:h=this.getNextDateInMonthsScale(l);break;case g.ViewType.Quarter:h=this.getNextDateInQuartersScale(l);break;case g.ViewType.Years:h=this.getNextDateInYearsScale(l);break;case g.ViewType.FiveYears:h=this.getNextDateInFiveYearsScale(l)}return h.getTime()>this.range.end.getTime()&&(h=this.range.end),h},s.prototype.getNextTimeBySpan=function(l,d){return(Math.trunc(l/d)+1)*d},s.prototype.getNextDateInTenMinutesScale=function(l){var d=this.getNextTimeBySpan(l.getMinutes(),10);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),d)},s.prototype.getNextDateInHoursScale=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours()+1)},s.prototype.getNextDateInSixHoursScale=function(l){var d=this.getNextTimeBySpan(l.getHours(),6);return new Date(l.getFullYear(),l.getMonth(),l.getDate(),d)},s.prototype.getNextDateInDaysScale=function(l){return new Date(l.getFullYear(),l.getMonth(),l.getDate()+1)},s.prototype.getNextDateInWeeksScale=function(l,d){return void 0===d&&(d=0),new Date(l.getFullYear(),l.getMonth(),l.getDate()-l.getDay()+d+7)},s.prototype.getNextDateInMonthsScale=function(l){return new Date(l.getFullYear(),l.getMonth()+1,1)},s.prototype.getNextDateInQuartersScale=function(l){var d=this.getNextTimeBySpan(l.getMonth(),3);return new Date(l.getFullYear(),d,1)},s.prototype.getNextDateInYearsScale=function(l){return new Date(l.getFullYear()+1,0,1)},s.prototype.getNextDateInFiveYearsScale=function(l){var d=this.getNextTimeBySpan(l.getFullYear(),5);return new Date(d,0,1)},s.prototype.getAdjustedBottomScaleItemStart=function(l,d,h){switch(void 0===h&&(h=0),d){case g.ViewType.TenMinutes:return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours(),10*Math.floor(l.getMinutes()/10));case g.ViewType.SixHours:return new Date(l.getFullYear(),l.getMonth(),l.getDate(),6*Math.floor(l.getHours()/6));case g.ViewType.Hours:return new Date(l.getFullYear(),l.getMonth(),l.getDate(),l.getHours());case g.ViewType.Days:return new Date(l.getFullYear(),l.getMonth(),l.getDate());case g.ViewType.Weeks:return new Date(l.getFullYear(),l.getMonth(),l.getDate()-l.getDay()+h);case g.ViewType.Months:return new Date(l.getFullYear(),l.getMonth(),1);case g.ViewType.Quarter:return new Date(l.getFullYear(),3*Math.floor(l.getMonth()/3),1);case g.ViewType.Years:return new Date(l.getFullYear(),0,1);default:return new Date}},s.prototype.calculateScaleWidth=function(){return this.bottomScaleItems.reduce(function(l,d){return l+d.size.width},0)},s.prototype.getScaleItemColSpan=function(l){return l.valueOf()===this.viewType.valueOf()?1:this.viewType===g.ViewType.TenMinutes?6:this.viewType===g.ViewType.Hours?24:this.viewType===g.ViewType.SixHours?4:this.viewType===g.ViewType.Days?7:this.viewType===g.ViewType.Weeks?4.29:this.viewType===g.ViewType.Months?12:this.viewType===g.ViewType.Quarter?4:this.viewType===g.ViewType.Years?5:1},s.prototype.getRangeTickCount=function(l,d){return C.DateUtils.getRangeTickCount(l,d,this.viewType)},s}();u.ScaleCalculator=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaExportHelper=void 0;var c=o(3),I=o(19),C=o(25),g=o(15),a=o(17),p=o(37),s=function(){function l(d,h){this._owner=d,this._props=h}return Object.defineProperty(l.prototype,"customRangeLeftOffset",{get:function(){var d;return null!==(d=this._customRangeLeftOffset)&&void 0!==d||(this._customRangeLeftOffset=this.layoutCalculator.getWidthByDateRange(this.startDate,this.ownerStartDate)),this._customRangeLeftOffset},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"baseCellSize",{get:function(){return this._owner.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"objectsLeftDelta",{get:function(){return this.renderedScaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"objectsTopDelta",{get:function(){if(!this.hasTasks)return 0;var d=this.visibleTaskIndices[0];return this.getCellTop(d)+this.getTaskCellOffsetTop(d)},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"offsetLeft",{get:function(){var d;return null!==(d=this._offsetLeft)&&void 0!==d||(this._offsetLeft=Math.max(this.visibleLeft-this.renderedScaleLeft,0)),this._offsetLeft},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"offsetTop",{get:function(){var d;return null!==(d=this._offsetTop)&&void 0!==d||(this._offsetTop=this.getOffsetTop()),this._offsetTop},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scales",{get:function(){var d=this.settings.viewType;return[g.DateUtils.ViewTypeToScaleMap[d],d]},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleRanges",{get:function(){var d;return null!==(d=this._scaleRanges)&&void 0!==d||(this._scaleRanges=this.layoutCalculator.getScaleRangesInArea(this.scaleLeft,this.scaleRight)),this._scaleRanges},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleBottomStartIndex",{get:function(){return this.scaleRanges[1][0]},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleBottomEndIndex",{get:function(){return this.scaleRanges[1][1]},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleTopStartIndex",{get:function(){return this.scaleRanges[0][0]},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleTopEndIndex",{get:function(){return this.scaleRanges[0][1]},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleTopWidths",{get:function(){var d;return null!==(d=this._scaleTopWidths)&&void 0!==d||(this._scaleTopWidths=this.getScaleTopWidths()),this._scaleTopWidths},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleBottomWidths",{get:function(){var d;return null!==(d=this._scaleBottomWidths)&&void 0!==d||(this._scaleBottomWidths=this.getScaleBottomWidths()),this._scaleBottomWidths},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"headerRowHeight",{get:function(){if(!this._headerRowHeight){var d=this.scaleElements[0].filter(function(h){return!!h})[0];this._headerRowHeight=d?.offsetHeight}return this._headerRowHeight},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"visibleTaskIndices",{get:function(){var d;return null!==(d=this._visibleTaskIndices)&&void 0!==d||(this._visibleTaskIndices=this.getTaskIndices()),this._visibleTaskIndices},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"baseCellHeight",{get:function(){return this.hasTasks?this.baseCellSize.height:this.taskAreaHeight},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"taskAreaHeight",{get:function(){return this.hasTasks?this.visibleTaskIndices.length*this.baseCellHeight:this._owner.renderHelper.taskArea.offsetHeight},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleTableStyle",{get:function(){var d;return null!==(d=this._scaleTableStyle)&&void 0!==d||(this._scaleTableStyle=this.getScaleTableStyle()),this._scaleTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"chartMainTableStyle",{get:function(){var d;return null!==(d=this._chartMainTableStyle)&&void 0!==d||(this._chartMainTableStyle=this.getChartMainTableStyle()),this._chartMainTableStyle},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"parentRowBackColor",{get:function(){var d;return null!==(d=this._parentRowBackColor)&&void 0!==d||(this._parentRowBackColor=this.getParentBackColor()),this._parentRowBackColor},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"arrowWidth",{get:function(){var d;return null!==(d=this._arrowWidth)&&void 0!==d||(this._arrowWidth=this.getArrowWidth()),this._arrowWidth},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dependencyColor",{get:function(){var d;return null!==(d=this._dependencyColor)&&void 0!==d||(this._dependencyColor=this.getDependencyColor()),this._dependencyColor},enumerable:!1,configurable:!0}),l.prototype.getTaskElementBackColor=function(d,h){return this.getTaskElementStyle(d,h)?.backgroundColor},l.prototype.getTaskElementStyle=function(d,h){var v=this.getTaskWrapper(d);return this.getElementStyle(v.getElementsByClassName(h)[0])},Object.defineProperty(l.prototype,"hasTasks",{get:function(){return this.visibleTaskIndices.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"visibleLeft",{get:function(){var d;return null!==(d=this._visibleLeft)&&void 0!==d||(this._visibleLeft=this.isVisibleMode?this.container.scrollLeft:0),this._visibleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"visibleTop",{get:function(){var d;return null!==(d=this._visibleTop)&&void 0!==d||(this._visibleTop=this.isVisibleMode?this.container.scrollTop:0),this._visibleTop},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"visibleRight",{get:function(){var d;return null!==(d=this._visibleRight)&&void 0!==d||(this._visibleRight=this.getVisibleRight()),this._visibleRight},enumerable:!1,configurable:!0}),l.prototype.getVisibleRight=function(){var d=this.container.getElement().offsetWidth;return this.visibleLeft+d},Object.defineProperty(l.prototype,"visibleBottom",{get:function(){var d;return null!==(d=this._visibleBottom)&&void 0!==d||(this._visibleBottom=this.getVisibleBottom()),this._visibleBottom},enumerable:!1,configurable:!0}),l.prototype.getVisibleBottom=function(){return this.isVisibleMode?this.visibleTop+this.container.getHeight():this.visibleTaskIndices.length*this.baseCellSize.height},Object.defineProperty(l.prototype,"scaleLeft",{get:function(){var d;return null!==(d=this._scaleLeft)&&void 0!==d||(this._scaleLeft=this.isVisibleMode?this.visibleLeft:this.getPosByDate(this.startDate)),this._scaleLeft},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleRight",{get:function(){var d;return null!==(d=this._scaleRight)&&void 0!==d||(this._scaleRight=this.isVisibleMode?this.visibleRight:this.getPosByDate(this.endDate)-1),this._scaleRight},enumerable:!1,configurable:!0}),l.prototype.getScaleTopWidths=function(){var d=this.getScaleWidths(this.scaleTopStartIndex,this.scaleTopEndIndex,this.scales[0]),h=this.layoutCalculator,v=h.getScaleItemInfo(this.scaleBottomStartIndex,this.scales[1]),x=h.getScaleItemInfo(this.scaleTopStartIndex,this.scales[0]),b=Math.max(v.position.x-x.position.x,0);d[this.scaleTopStartIndex]-=b;var y=h.getScaleItemInfo(this.scaleTopEndIndex,this.scales[0]),E=h.getScaleItemInfo(this.scaleBottomEndIndex,this.scales[1]);return b=Math.max(y.position.x+y.size.width-E.position.x-E.size.width,0),d[this.scaleTopEndIndex]-=b,d},l.prototype.getScaleBottomWidths=function(){return this.getScaleWidths(this.scaleBottomStartIndex,this.scaleBottomEndIndex,this.scales[1])},l.prototype.getScaleWidths=function(d,h,v){for(var x=new Array,b=d;b<=h;b++)x[b]=this.layoutCalculator.getScaleItemInfo(b,v).size.width;return x},l.prototype.getOffsetTop=function(){return this.isVisibleMode&&this.hasTasks?this.getTaskCellOffsetTop(this.visibleTaskIndices[0]):0},Object.defineProperty(l.prototype,"renderedScaleLeft",{get:function(){return this.getCellLeft(this.scaleBottomStartIndex)},enumerable:!1,configurable:!0}),l.prototype.getTaskCellOffsetTop=function(d){var h=this.getCellTop(d);return Math.max(this.visibleTop-h,0)},l.prototype.getCellTop=function(d){return this.layoutCalculator.getGridBorderPosition(d-1,!1).y},l.prototype.getCellLeft=function(d){return this.layoutCalculator.getScaleItemInfo(d,this.scales[1]).position.x},l.prototype.getTaskIndices=function(){var d,h;return this.dataMode===p.DataExportMode.all||this.exportRange?this._owner.getAllVisibleTaskIndices(null===(d=this.exportRange)||void 0===d?void 0:d.startIndex,null===(h=this.exportRange)||void 0===h?void 0:h.endIndex):this.getVisibleTaskIndices()},l.prototype.getVisibleTaskIndices=function(){var d=this,h=[];return this.taskElements.forEach(function(v,x){if(v){var b=c.DomUtils.pxToInt(v.style.top),y=b+v.offsetHeight;(b>=d.visibleTop&&b<=d.visibleBottom||y>=d.visibleTop&&y<=d.visibleBottom)&&h.push(x)}}),h},Object.defineProperty(l.prototype,"scaleElements",{get:function(){return this._owner.renderHelper.scaleElements.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"scaleBorders",{get:function(){return this._owner.renderHelper.scaleBorders.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hlRowElements",{get:function(){return this._owner.renderHelper.hlRowElements.filter(function(d){return!!d})},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"selectionElements",{get:function(){return this._owner.renderHelper.selectionElements.filter(function(d){return!!d})},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"taskElements",{get:function(){return this._owner.renderHelper.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"connectorLines",{get:function(){var d,h=this;return null!==(d=this._connectorLines)&&void 0!==d||(this._connectorLines=this._owner.renderHelper.allConnectorLines.filter(function(v){return h.isLineVisible(v)})),this._connectorLines},enumerable:!1,configurable:!0}),l.prototype.isLineVisible=function(d){return this.dataMode===p.DataExportMode.all||this.visibleDependencyKeys.indexOf(d.attr["dependency-id"])>-1},Object.defineProperty(l.prototype,"visibleDependencyKeys",{get:function(){var d;return null!==(d=this._visibleDependencyKeys)&&void 0!==d||(this._visibleDependencyKeys=this._owner.getVisibleDependencyKeysByTaskRange(this.visibleTaskIndices)),this._visibleDependencyKeys},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"resourcesElements",{get:function(){var d,h=this;return null!==(d=this._resourcesElements)&&void 0!==d||(this._resourcesElements=this.visibleTaskIndices.map(function(v){return h._owner.renderHelper.resourcesElements[v]}).filter(function(v){return v&&v.parentElement})),this._resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"stripLinesElements",{get:function(){if(!this._stripLinesElements){var d=this._owner.renderHelper.stripLinesMap.filter(function(h){return!!h}).map(function(h){return h});this._stripLinesElements=d.map(function(h){return h})}return this._stripLinesElements},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"noWorkingIntervalsElements",{get:function(){if(!this._noWorkingIntervalsElements){this._noWorkingIntervalsElements=[];var d=this._owner.renderHelper.noWorkingIntervalsToElementsMap;for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&this._noWorkingIntervalsElements.push(d[h])}return this._noWorkingIntervalsElements},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"taskArea",{get:function(){return this._owner.renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"settings",{get:function(){return this._owner.settings},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"dataMode",{get:function(){var d;return null===(d=this._props)||void 0===d?void 0:d.exportDataMode},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"exportRange",{get:function(){var d;return null===(d=this._props)||void 0===d?void 0:d.dateRange},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"isVisibleMode",{get:function(){return this.dataMode===p.DataExportMode.visible&&!this.exportRange},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"ownerStartDate",{get:function(){return this._owner.range.start},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"ownerEndDate",{get:function(){return this._owner.range.end},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"startDate",{get:function(){var d,h,v,x;if(null!==(d=this.exportRange)&&void 0!==d&&d.startDate&&null!==(h=this.exportRange)&&void 0!==h&&h.endDate){var b=Math.min(null===(v=this.exportRange)||void 0===v?void 0:v.startDate.getTime(),null===(x=this.exportRange)||void 0===x?void 0:x.endDate.getTime());return new Date(b)}return this.ownerStartDate},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"endDate",{get:function(){var d,h,v,x;if(null!==(d=this.exportRange)&&void 0!==d&&d.startDate&&null!==(h=this.exportRange)&&void 0!==h&&h.endDate){var b=Math.max(null===(v=this.exportRange)||void 0===v?void 0:v.startDate.getTime(),null===(x=this.exportRange)||void 0===x?void 0:x.endDate.getTime());return new Date(b)}return this.ownerEndDate},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"hasCustomRangeOutOfRender",{get:function(){return this.startDate.getTime()!==this.ownerStartDate.getTime()||this.endDate.getTime()!==this.ownerEndDate.getTime()},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"layoutCalculator",{get:function(){if(!this._layoutCalculator){var d=this._owner.renderHelper.gridLayoutCalculator;this.hasCustomRangeOutOfRender?(this._layoutCalculator=new C.GridLayoutCalculator,this._layoutCalculator.setSettings(d.visibleTaskAreaSize,d.tickSize,d.elementSizeValues,new I.DateRange(this.startDate,this.endDate),d.viewModel,d.viewType,d.scrollBarHeight,this._owner.settings.firstDayOfWeek)):this._layoutCalculator=d}return this._layoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"container",{get:function(){return this._owner.renderHelper.taskAreaContainer},enumerable:!1,configurable:!0}),l.prototype.getPosByDate=function(d){return this.layoutCalculator.getPosByDate(d)},l.prototype.getScaleTableStyle=function(){var d={},h=this.scaleElements[0].filter(function(x){return!!x})[0],v=this.getElementStyle(h);return d.backgroundColor=this.findElementBackColor(h),d.borderColor=this.getChartTableBorderColor(),d.verticalAlign="middle",d.textAlign="center",d.fontSize=v.fontSize,d.fontFamily=v.fontFamily,d.fontWeight=v.fontWeight,d.fontStyle=v.fontStyle,d.color=v.color,d},l.prototype.getChartMainTableStyle=function(){var d={};return d.backgroundColor=this.findElementBackColor(this.taskArea),d.borderColor=this.getChartTableBorderColor(),d},l.prototype.findElementBackColor=function(d){if(!d)return null;for(var h=d,v=new a.Color("transparent");0===v.opacity&&h;){var x=this.getElementStyle(h);v.assign(x.backgroundColor),h=h.parentElement}return v},l.prototype.getChartTableBorderColor=function(){return this.getElementStyle(this.scaleBorders[0].filter(function(h){return!!h})[0])?.borderColor},l.prototype.getParentBackColor=function(){return this.getElementStyle(this.hlRowElements[0])?.backgroundColor},l.prototype.getArrowWidth=function(){var d=this.getDependencyLineStyle(C.GridLayoutCalculator.arrowClassName);return d&&c.DomUtils.pxToInt(d.borderWidth||d.borderLeftWidth||d.borderRightWidth||d.borderTopWidth||d.borderBottomWidth)},l.prototype.getDependencyColor=function(){return this.getDependencyLineStyle(C.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)?.borderColor},l.prototype.getDependencyLineStyle=function(d){return this.getElementStyle(this.taskArea.getElementsByClassName(d)[0])},l.prototype.getElementStyle=function(d){return d&&getComputedStyle(d)},l.prototype.getTaskWrapper=function(d){return this.isTaskTemplateMode?this._owner.renderHelper.fakeTaskWrapper:(this.taskElements[d]||this._owner.renderHelper.createDefaultTaskElement(d),this.taskElements[d])},Object.defineProperty(l.prototype,"isTaskTemplateMode",{get:function(){return!!this._owner.settings.taskContentTemplate},enumerable:!1,configurable:!0}),l}();u.TaskAreaExportHelper=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttPdfExportProps=void 0;var c=o(12),I=o(1),C=o(36),g=o(132),a=o(133),p=o(37),s=function(){function l(d){this.landscape=!1,this.margins=null,this.exportMode=p.ExportMode.all,this.exportDataMode=p.DataExportMode.visible,d&&this.assign(d)}return l.prototype.assign=function(d){if(d){if((0,I.isDefined)(d.pdfDocument)&&(this.pdfDoc=d.pdfDocument),(0,I.isDefined)(d.pdfDoc)&&(this.pdfDoc=d.pdfDoc),this.docCreateMethod=d.docCreateMethod,(0,I.isDefined)(d.fileName)&&(this.fileName=d.fileName),this.landscape=!!d.landscape,(0,I.isDefined)(d.margins)&&(this.margins=new C.Margin(d.margins)),(0,I.isDefined)(d.format)){var h=d.format;if("string"==typeof h)this.format=h;else{var v=parseInt(h.width),x=parseInt(h.height);this.pageSize=new c.Size(v,x)}}else if((0,I.isDefined)(d.pageSize)){var b=d.pageSize;this.pageSize=b instanceof c.Size?b.clone():new c.Size(b.width,b.height)}if((0,I.isDefined)(d.exportMode)&&(this.exportMode=this.getEnumValue(p.ExportMode,d.exportMode)),(0,I.isDefined)(d.dateRange)){var y=d.dateRange;"number"==typeof y||"string"==typeof y?this.exportDataMode=this.getEnumValue(p.DataExportMode,y):this.dateRange=new g.PdfDataRange(y)}(0,I.isDefined)(d.font)&&(this.font=new a.PdfCustomFontSettings(d.font))}},l.prototype.getEnumValue=function(d,h){if(!(0,I.isDefined)(d[h]))return null;var v=parseInt(h);return isNaN(v)?d[h]:v},l.autoFormatKey="auto",l}();u.GanttPdfExportProps=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfDataRange=void 0;var c=o(1),I=function(){function C(g,a,p,s){var l=!g||g instanceof Date?{startDate:g,endDate:a,startIndex:p,endIndex:s}:g;l&&this.assign(l)}return C.prototype.assign=function(g){(0,c.isDefined)(g.startDate)&&(this.startDate=g.startDate instanceof Date?g.startDate:new Date(g.startDate)),(0,c.isDefined)(g.endDate)&&(this.endDate=g.endDate instanceof Date?g.endDate:new Date(g.endDate)),(0,c.isDefined)(g.startIndex)&&(this.startIndex=parseInt(g.startIndex)),(0,c.isDefined)(g.endIndex)&&(this.endIndex=parseInt(g.endIndex))},C}();u.PdfDataRange=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfCustomFontSettings=void 0;var c=o(1),I=function(){function C(g){this.style="normal",g&&this.assign(g)}return C.prototype.assign=function(g){(0,c.isDefined)(g.fontObject)&&(this.fontObject=g.fontObject),(0,c.isDefined)(g.name)&&(this.name=g.name),(0,c.isDefined)(g.style)&&(this.style=g.style),(0,c.isDefined)(g.weight)&&(this.weight=g.weight)},C.prototype.applyToDoc=function(g){try{if(g&&this.fontObject&&this.name){var a=this.name+"-"+this.style+".ttf";g.addFileToVFS(a,this.fontObject),g.addFont(a,this.name,this.style,this.weight),g.setFont(this.name)}}catch{}},C}();u.PdfCustomFontSettings=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfGanttPaginator=void 0;var c=o(5),I=o(12),C=o(60),g=o(44),a=o(61),p=o(63),s=o(27),l=o(45),d=o(135),h=function(b,y,E,S,O){this.pageVerIndex=y,this.pageHorIndex=b,this.cellRowIndexOnPage=E,this.cellColIndexOnPage=S,this.cell=O},v=function(){function b(y,E,S,O){this.pageIndex=y,this.globalCellIndex=E,this.pageOffset=S,this.cutSize=O}return Object.defineProperty(b.prototype,"isCutted",{get:function(){return this.cutSize>0},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"cellIndexOnPage",{get:function(){return this.globalCellIndex-this.pageOffset},enumerable:!1,configurable:!0}),b}(),x=function(){function b(y,E,S){this._pdfDoc=y,this._props=E,this._globalInfo=S}return b.prototype.getPages=function(){return delete this._pages,this._paginateTables(),this._paginateObjects(),this.pageMatrixToArray},b.prototype._paginateTables=function(){this._paginateTable(s.PdfPageTableNames.treeListHeader),this._paginateTable(s.PdfPageTableNames.treeListMain),this._paginateTable(s.PdfPageTableNames.chartScaleBottom),this._paginateTable(s.PdfPageTableNames.chartScaleTop),this._paginateTable(s.PdfPageTableNames.chartMain)},b.prototype._paginateObjects=function(){this._paginateTasks(),this._paginateDependencies(),this._paginateResources(),this._paginateTimeMarkers()},Object.defineProperty(b.prototype,"pageMatrixToArray",{get:function(){var y,E=new Array;return null===(y=this._pages)||void 0===y||y.forEach(function(S){E=E.concat(S)}),E},enumerable:!1,configurable:!0}),b.prototype._paginateTasks=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.tasks)||void 0===E||E.forEach(function(O){return S._paginateTask(O)})},b.prototype._paginateDependencies=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.dependencies)||void 0===E||E.forEach(function(O){O.arrowInfo?S._paginateArrow(O):S._paginateDependencyLine(O)})},b.prototype._paginateResources=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.resources)||void 0===E||E.forEach(function(O){return S._paginateResource(O)})},b.prototype._paginateTimeMarkers=function(){var y,E,S=this;null===(E=null===(y=this._globalInfo.objects)||void 0===y?void 0:y.timeMarkers)||void 0===E||E.forEach(function(O){return S._paginateTimeMarker(O)})},b.prototype._paginateTable=function(y){var E,S=null===(E=this._globalInfo)||void 0===E?void 0:E.tables[y];if(S){for(var O=this._getTableStart(S),w=this._preparePagesNavigationMatrixForTable(O,S),T=w.length,k=0;k<T;k++)for(var R=w[k].length,P=0;P<R;P++){var B=w[k][P],W=this._getPage(B.pageVerIndex,B.pageHorIndex,!0);this._setTablePositionOnPage(W,y,B.pageHorIndex===O.hIndex?O.pageX:this.pageLeft,B.pageVerIndex===O.vIndex?O.pageY:this.pageTop),this._addCellToPage(W,y,B)}this._updateTableSizeOnPages(y)}},b.prototype._paginateTask=function(y){for(var E=this._getTaskPagination(y),S=this._getTaskPagination(y,!0),O=0;O<S.length;O++)for(var w=0;w<E.length;w++){var T=new g.PdfTaskInfo;T.assign(y),this._offsetPoints(T.sidePoints,E[w].offset,S[O].offset),this._addTaskToPage(S[O].pageIndex,E[w].pageIndex,T)}},b.prototype._paginateArrow=function(y){var E=this._getPointPageInfo(y.points[0]),S=new C.PdfDependencyLineInfo;S.assign(y),this._offsetPoints(S.points,E.offsetX,E.offsetY),this._addDependencyToPage(E.pageVerIndex,E.pageHorIndex,S)},b.prototype._paginateDependencyLine=function(y){for(var E=this._getDependencyLinePagination(y),S=this._getDependencyLinePagination(y,!0),O=0;O<S.length;O++)for(var w=0;w<E.length;w++){var T=new C.PdfDependencyLineInfo;T.assign(y),this._offsetPoints(T.points,E[w].offset,S[O].offset),this._addDependencyToPage(S[O].pageIndex,E[w].pageIndex,T)}},b.prototype._paginateResource=function(y){var E=this._getPointPageInfo(new c.Point(y.x,y.y)),S=new a.PdfTaskResourcesInfo;S.assign(y),S.x-=E.offsetX,S.y-=E.offsetY,this._addResourceToPage(E.pageVerIndex,E.pageHorIndex,S)},b.prototype._paginateTimeMarker=function(y){for(var E=this._getTimeMarkerPagination(y),S=this._getTimeMarkerPagination(y,!0),O=0;O<S.length;O++)for(var w=0;w<E.length;w++){var T=new p.PdfTimeMarkerInfo;T.assign(y),T.start.x-=E[w].offset,T.start.y-=S[O].offset,this._addTimeMarkerToPage(S[O].pageIndex,E[w].pageIndex,T)}},b.prototype._getTableStart=function(y){var E=new d.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms);return E.offset(y.position.x,y.position.y),E},b.prototype._getPage=function(y,E,S){return S&&this._extendPageMatrixIfRequired(y,E),this._pages[y]&&this._pages[y][E]},b.prototype._getTableOrCreate=function(y,E){var S,O;return null!==(S=(O=y.tables)[E])&&void 0!==S||(O[E]=this._createTable(E)),y.tables[E]},b.prototype._preparePagesNavigationMatrixForTable=function(y,E){for(var S=new Array,O=this._getTableNavigationVector(y,E,!0),w=O.length,T=0;T<w;T++){for(var k=new Array,R=O[T],P=this._getTableNavigationVector(y,E,!1,R.globalCellIndex),B=P.length,W=0;W<B;W++){var z=P[W],U=this._prepareCuttedCell(E.cells[R.globalCellIndex][z.globalCellIndex],z,R,E.name===s.PdfPageTableNames.chartScaleTop),K=new h(z.pageIndex,R.pageIndex,R.cellIndexOnPage,z.cellIndexOnPage,U);k.push(K)}S.push(k)}return S},b.prototype._setTablePositionOnPage=function(y,E,S,O){this._getTableOrCreate(y,E).position=new c.Point(S,O)},b.prototype._extendPageMatrixIfRequired=function(y,E){var S;null!==(S=this._pages)&&void 0!==S||(this._pages=new Array);for(var O=this._pages.length;O<=y;O++)this._pages.push(new Array);var w=this._pages[y];for(O=w.length;O<=E;O++)w.push(this._createPage())},b.prototype._getTableAndExtendIfRequired=function(y,E,S,O){for(var w=this._getTableOrCreate(y,E),T=w.cells,k=T.length;k<=S;k++)T.push(new Array);var R=T[S];for(k=R.length;k<=O;k++)R.push(new l.CellDef);return w},b.prototype._createPage=function(){return{objects:{tasks:null,dependencies:null,resources:null,timeMarkers:null},tables:{}}},b.prototype._createTable=function(y){var E,S=null===(E=this._globalInfo)||void 0===E?void 0:E.tables[y];return{name:y,size:null,position:null,style:S.style,baseCellSize:S.baseCellSize,cells:new Array,hideRowLines:S.hideRowLines}},b.prototype._addCellToPage=function(y,E,S){var O=S.cellRowIndexOnPage,w=S.cellColIndexOnPage;this._getTableAndExtendIfRequired(y,E,O,w).cells[O][w].assign(S.cell)},b.prototype._updateTableSizeOnPages=function(y){for(var E,S=null===(E=this._pages[0])||void 0===E?void 0:E.length,O=this._pages.length,w=0;w<O;w++)for(var T=0;T<S;T++)this._updateTableSizeOnPage(this._pages[w][T],y)},b.prototype._updateTableSizeOnPage=function(y,E){var S,O=this,w=y?.tables[E];if(w){var T=w.cells.length*w.baseCellSize.height||0,k=(null===(S=w.cells[0])||void 0===S?void 0:S.reduce(function(R,P,B){return R+O._getCellWidth(w,0,B)},0))||0;w.size=new I.Size(k,T)}},b.prototype._getTableNavigationVector=function(y,E,S,O){var w,T;void 0===S&&(S=!1),void 0===O&&(O=0);for(var k=new Array,R=d.PageNavigation.createFrom(y),P=S?null===(w=E.cells)||void 0===w?void 0:w.length:null===(T=E.cells[O])||void 0===T?void 0:T.length,B=0;B<P;B++){var W=S?E.baseCellSize.height:this._getCellWidth(E,O,B);this._placeCell(k,R,B,W,S)}return k},b.prototype._placeCell=function(y,E,S,O,w){var T,k,R=w?E.vIndex:E.hIndex,P=null!==(k=null===(T=y[y.length-1])||void 0===T?void 0:T.pageOffset)&&void 0!==k?k:S,B=O,W=E.getSpaceToBorder(w);E.offsetOneD(O,w);var z=w?E.vIndex:E.hIndex;if(!w)for(var V=R;V<z;V++){var U=new v(V,S,P,W);P=S,y.push(U),B-=W,W=E.getPageSize(w)}z!==R&&(P=S);var K=new v(z,S,P,B!==O?B:null);y.push(K)},b.prototype._prepareCuttedCell=function(y,E,S,O){var w=new l.CellDef(y);if(E.isCutted){var T=E.cutSize;if(!O){var k=w.content,R=y.styles,B=this._pdfDoc.splitTextToSize(k,T-(R&&R.cellPadding.left||0)-(R&&R.cellPadding.right||0));y.content=k.replace(B[0],""),w.content=B[0]}w.styles.cellWidth.assign(T)}return S.isCutted&&(w.styles.minCellHeight=S.cutSize),w},b.prototype._getCellWidth=function(y,E,S){var O,w=y.cells[E][S],T=w.styles;return T.cellWidth.getValue()??T.minCellWidth??y.baseCellSize.width*(null!==(O=w.colSpan)&&void 0!==O?O:1)},b.prototype._getTaskPagination=function(y,E){return this._getLinePagination(E?y.top:y.left,E?y.height:y.width,E)},b.prototype._getDependencyLinePagination=function(y,E){var S=y.points[0],O=y.points[1];return this._getLinePagination(E?S.y:S.x,E?O.y-S.y:O.x-S.x,E)},b.prototype._getTimeMarkerPagination=function(y,E){return this._getLinePagination(E?y.start.y:y.start.x,E?y.size.height:y.size.width,E)},b.prototype._getLinePagination=function(y,E,S){var O=new Array,w=this.pageNavigator.clone();w.offsetOneD(y,S);var T=S?w.vIndex:w.hIndex;w.offsetOneD(E,S);for(var k=S?w.vIndex:w.hIndex,R=T;R<=k;R++)O.push({offset:w.getPageGlobalOffset(R,S),pageIndex:R});return O},b.prototype._getPointPageInfo=function(y){var E=this.pageNavigator.clone();return E.offset(y.x,y.y),{offsetX:E.getPageGlobalOffset(E.hIndex),offsetY:E.getPageGlobalOffset(E.vIndex,!0),pageHorIndex:E.hIndex,pageVerIndex:E.vIndex}},Object.defineProperty(b.prototype,"pageWidth",{get:function(){var y;return null===(y=this._pdfDoc)||void 0===y?void 0:y.getPageWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageHeight",{get:function(){var y;return null===(y=this._pdfDoc)||void 0===y?void 0:y.getPageHeight()},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageLeftMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.left},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageTopMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.top},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageRightMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.right},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageBottomMargin",{get:function(){var y;return null===(y=this._props)||void 0===y?void 0:y.margins.bottom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageLeft",{get:function(){var y;return null!==(y=this._pageLeft)&&void 0!==y||(this._pageLeft=this.pageLeftMargin),this._pageLeft},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageRight",{get:function(){var y;return null!==(y=this._pageRight)&&void 0!==y||(this._pageRight=this.pageWidth-this.pageRightMargin),this._pageRight},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageTop",{get:function(){var y;return null!==(y=this._pageTop)&&void 0!==y||(this._pageTop=this.pageTopMargin),this._pageTop},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageBottom",{get:function(){var y;return null!==(y=this._pageBottom)&&void 0!==y||(this._pageBottom=this.pageHeight-this.pageBottomMargin),this._pageBottom},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageBorders",{get:function(){return{left:this.pageLeft,top:this.pageTop,bottom:this.pageBottom,right:this.pageRight}},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"correctedPageBottoms",{get:function(){var y;return null!==(y=this._correctedPageBottoms)&&void 0!==y||(this._correctedPageBottoms=this._getCorrectedPagesBottom()),this._correctedPageBottoms},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"pageNavigator",{get:function(){var y;return null!==(y=this._pageNavigator)&&void 0!==y||(this._pageNavigator=new d.PageNavigation(this.pageBorders,0,0,0,0,this.correctedPageBottoms)),this._pageNavigator},enumerable:!1,configurable:!0}),b.prototype._getCorrectedPagesBottom=function(){var y,E,S,O,w=new Array,T=null===(y=this._globalInfo)||void 0===y?void 0:y.tables,k=null!==(E=T[s.PdfPageTableNames.treeListMain])&&void 0!==E?E:T[s.PdfPageTableNames.chartMain],R=new d.PageNavigation(this.pageBorders);R.pageY=k.position.y;for(var P=0;P<k.cells.length;P++){var B=null!==(O=null===(S=k.cells[P][0].styles)||void 0===S?void 0:S.minCellHeight)&&void 0!==O?O:k.baseCellSize.height,W=R.vIndex,z=R.pageY;R.offsetOneD(B,!0),W!==R.vIndex&&(w.push(z),R.pageY=R.getPageStart(!0)+B)}return w},b.prototype._addTaskToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).tasks)&&void 0!==O||(w.tasks=new Array),T.objects.tasks.push(S))},b.prototype._addDependencyToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).dependencies)&&void 0!==O||(w.dependencies=new Array),T.objects.dependencies.push(S))},b.prototype._addResourceToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).resources)&&void 0!==O||(w.resources=new Array),T.objects.resources.push(S))},b.prototype._addTimeMarkerToPage=function(y,E,S){var O,w,T=this._getPage(y,E);T&&(null!==(O=(w=T.objects).timeMarkers)&&void 0!==O||(w.timeMarkers=new Array),T.objects.timeMarkers.push(S))},b.prototype._offsetPoints=function(y,E,S){y.forEach(function(O){O.x-=E,O.y-=S})},b}();u.PdfGanttPaginator=x},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PageNavigation=void 0;var c=function(){function I(C,g,a,p,s,l){this._correctedBottoms=new Array,this.vIndex=0,this.hIndex=0,this.pageX=0,this.pageY=0,this._top=C?.top,this._left=C?.left,this._bottom=C?.bottom,this._right=C?.right,this.vIndex=g??this.vIndex,this.hIndex=a??this.hIndex,this.pageX=p??this.pageX,this.pageY=s??this.pageY,l&&(this._correctedBottoms=l)}return I.prototype.offset=function(C,g){C&&this.offsetOneD(C),g&&this.offsetOneD(g,!0)},I.prototype.offsetOneD=function(C,g){for(var a=C,p=this.getSpaceToBorder(g);p<a;)g?(this.vIndex++,this.pageY=this._top):(this.hIndex++,this.pageX=this._left),a-=p,p=this.getSpaceToBorder(g);g?this.pageY+=a:this.pageX+=a},Object.defineProperty(I.prototype,"defaultPageHeight",{get:function(){return this.getCurrentPageBottom()-this._top},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"defaultPageWidth",{get:function(){return this._right-this._left},enumerable:!1,configurable:!0}),I.prototype.getPageEnd=function(C){return C?this.getCurrentPageBottom():this._right},I.prototype.getPageStart=function(C){return C?this._top:this._left},I.prototype.getPageSize=function(C,g){return C?this.getPageHeight(g):this.defaultPageWidth},I.prototype.getSpaceToBorder=function(C){return C?this.getCurrentPageBottom()-this.pageY:this._right-this.pageX},I.prototype.getPageGlobalOffset=function(C,g){if(!g)return C*this.defaultPageWidth;for(var a=0,p=1;p<=C;p++)a+=this.getPageHeight(p-1);return a},I.prototype.assign=function(C){this._top=C._top,this._left=C._left,this._bottom=C._bottom,this._right=C._right,this._correctedBottoms=C._correctedBottoms,this.vIndex=C.vIndex,this.hIndex=C.hIndex,this.pageX=C.pageX,this.pageY=C.pageY},I.createFrom=function(C){var g=new I;return g.assign(C),g},I.prototype.clone=function(){var C=new I;return C.assign(this),C},I.prototype.getCurrentPageBottom=function(){return this.getPageBottom(this.vIndex)},I.prototype.getPageBottom=function(C){var g;return null!==(g=this._correctedBottoms[C])&&void 0!==g?g:this._bottom},I.prototype.getPageHeight=function(C){return this.getPageBottom(C)-this._top},I}();u.PageNavigation=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ScalingHelper=void 0;var c=o(27),I=function(){function C(g){this._doc=g}return Object.defineProperty(C.prototype,"_docScaleFactor",{get:function(){var g,a;return null===(a=null===(g=this._doc)||void 0===g?void 0:g.internal)||void 0===a?void 0:a.scaleFactor},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"_correctScaleNeeded",{get:function(){return this._docScaleFactor&&Math.abs(this._docScaleFactor-C._defaultScaleFactor)>Number.EPSILON},enumerable:!1,configurable:!0}),C.prototype.getScaledSize=function(g){return g*C._defaultScaleFactor/this._docScaleFactor},C.prototype.scalePageMargins=function(g){var a,p,s,l;this._correctScaleNeeded&&(!(null===(a=g?.margins)||void 0===a)&&a.left&&(g.margins.left=this.getScaledSize(g.margins.left)),!(null===(p=g?.margins)||void 0===p)&&p.right&&(g.margins.right=this.getScaledSize(g.margins.right)),!(null===(s=g?.margins)||void 0===s)&&s.top&&(g.margins.top=this.getScaledSize(g.margins.top)),null!==(l=g?.margins)&&void 0!==l&&l.bottom&&(g.margins.bottom=this.getScaledSize(g.margins.bottom)))},C.prototype.scaleSizes=function(g){this._correctScaleNeeded&&(this.scaleTables(g),this.scaleObjects(g.objects))},C.prototype.scaleTables=function(g){g?.tables&&(this.scaleTable(g.tables[c.PdfPageTableNames.treeListHeader]),this.scaleTable(g.tables[c.PdfPageTableNames.treeListMain]),this.scaleTable(g.tables[c.PdfPageTableNames.chartMain]),this.scaleTable(g.tables[c.PdfPageTableNames.chartScaleTop]),this.scaleTable(g.tables[c.PdfPageTableNames.chartScaleBottom]))},C.prototype.scaleTable=function(g){var a,p,s,l,d,h;if(g&&(!(null===(a=g.size)||void 0===a)&&a.width&&(g.size.width=this.getScaledSize(g.size.width)),!(null===(p=g.size)||void 0===p)&&p.height&&(g.size.height=this.getScaledSize(g.size.height)),!(null===(s=g.position)||void 0===s)&&s.x&&(g.position.x=this.getScaledSize(g.position.x)),!(null===(l=g.position)||void 0===l)&&l.y&&(g.position.y=this.getScaledSize(g.position.y)),!(null===(d=g.baseCellSize)||void 0===d)&&d.width&&(g.baseCellSize.width=this.getScaledSize(g.baseCellSize.width)),!(null===(h=g.baseCellSize)||void 0===h)&&h.height&&(g.baseCellSize.height=this.getScaledSize(g.baseCellSize.height)),g.cells))for(var v=0;v<g.cells.length;v++)for(var x=g.cells[v],b=0;b<x.length;b++)this.scaleStyle(x[b].styles)},C.prototype.scaleObjects=function(g){this.scaleTasks(g?.tasks),this.scaleDependencies(g?.dependencies),this.scaleResources(g?.resources),this.scaleTimeMarkers(g?.timeMarkers)},C.prototype.scaleTasks=function(g){var a=this;g?.forEach(function(p){a.scalePoints(p.sidePoints),p.progressWidth=a.getScaledSize(p.progressWidth),a.scaleStyle(p.textStyle)})},C.prototype.scaleDependencies=function(g){var a=this;g?.forEach(function(p){var s;a.scalePoints(p.points),null!==(s=p.arrowInfo)&&void 0!==s&&s.width&&(p.arrowInfo.width=a.getScaledSize(p.arrowInfo.width))})},C.prototype.scaleResources=function(g){var a=this;g?.forEach(function(p){p.x=a.getScaledSize(p.x),p.y=a.getScaledSize(p.y),a.scaleStyle(p.style)})},C.prototype.scaleTimeMarkers=function(g){var a=this;g?.forEach(function(p){p.start.x=a.getScaledSize(p.start.x),p.start.y=a.getScaledSize(p.start.y),p.size.width=a.getScaledSize(p.size.width),p.size.height=a.getScaledSize(p.size.height)})},C.prototype.scaleStyle=function(g){var a,p,s,l;if(g){var d=g.cellWidth;if(d?.hasValue()){var h=this.getScaledSize(Number(d.getValue()));d.assign(h)}g.minCellHeight&&(g.minCellHeight=this.getScaledSize(g.minCellHeight)),g.minCellWidth&&(g.minCellWidth=this.getScaledSize(g.minCellWidth)),!(null===(a=g.cellPadding)||void 0===a)&&a.left&&(g.cellPadding.left=this.getScaledSize(g.cellPadding.left)),!(null===(p=g.cellPadding)||void 0===p)&&p.right&&(g.cellPadding.right=this.getScaledSize(g.cellPadding.right)),!(null===(s=g.cellPadding)||void 0===s)&&s.top&&(g.cellPadding.top=this.getScaledSize(g.cellPadding.top)),null!==(l=g.cellPadding)&&void 0!==l&&l.bottom&&(g.cellPadding.bottom=this.getScaledSize(g.cellPadding.bottom))}},C.prototype.scalePoints=function(g){var a=this;g?.forEach(function(p){p.x=a.getScaledSize(p.x),p.y=a.getScaledSize(p.y)})},C._defaultScaleFactor=.75,C}();u.ScalingHelper=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.History=void 0;var c=o(138),I=o(42),C=function(){function g(a){this.historyItems=[],this.currentIndex=-1,this.currentProcessingItemInfo=null,this.transaction=null,this.transactionLevel=-1,this._listener=a}return g.prototype.undo=function(){this.canUndo()&&(this.activateItem(this.historyItems[this.currentIndex],!0),this.currentIndex--)},g.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.activateItem(this.historyItems[this.currentIndex]))},g.prototype.beginTransaction=function(){var a;this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new I.CompositionHistoryItem,null===(a=this._listener)||void 0===a||a.onTransactionStart())},g.prototype.endTransaction=function(){var a;if(!(--this.transactionLevel>=0)){var p=this.transaction.historyItems.length;p>1?this.addInternal(this.transaction):1==p&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null,null===(a=this._listener)||void 0===a||a.onTransactionEnd()}},g.prototype.addAndRedo=function(a){this.add(a),this.activateItem(a)},g.prototype.add=function(a){this.transactionLevel>=0?this.transaction.add(a):this.addInternal(a)},g.prototype.canUndo=function(){return this.currentIndex>=0},g.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},g.prototype.addInternal=function(a){this.currentIndex<this.historyItems.length-1&&this.historyItems.splice(this.currentIndex+1),this.historyItems.push(a),this.currentIndex++,this.deleteOldItems()},g.prototype.deleteOldItems=function(){var a=this.historyItems.length-g.MAX_HISTORY_ITEM_COUNT;a>0&&this.currentIndex>a&&(this.historyItems.splice(0,a),this.currentIndex-=a)},g.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},g.prototype.activateItem=function(a,p){void 0===p&&(p=!1),this.currentProcessingItemInfo=new c.HistoryItemInfo(a,p),p?a.undo():a.redo(),this.currentProcessingItemInfo=null},g.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},g.prototype.rollBackAndRemove=function(a){var p=a.item;this.checkAndRemoveItem(p)&&(a.isUndo?p.redo():p instanceof I.CompositionHistoryItem?p.undoItemsQuery():p.undo())},g.prototype.checkAndRemoveItem=function(a){var p=this.historyItems.indexOf(a);return p>-1?(this.historyItems.splice(p,1),this.currentIndex--):this.transaction&&(p=this.transaction.historyItems.indexOf(a))>-1&&this.transaction.historyItems.splice(p,1),p>-1},g.prototype.updateObsoleteInsertedKey=function(a,p,s){this.transaction&&this.updateItemsObsoleteInsertedKey(a,p,s,[this.transaction]),this.updateItemsObsoleteInsertedKey(a,p,s,this.historyItems)},g.prototype.updateItemsObsoleteInsertedKey=function(a,p,s,l){if(l)for(var d=0;d<l.length;d++){var h=l[d];h.keyUpdaters.filter(function(v){return v.getKey()===a&&v.objectType===s}).forEach(function(v){return v.updateKey(p)}),h instanceof I.CompositionHistoryItem&&this.updateItemsObsoleteInsertedKey(a,p,s,h.historyItems)}},g.MAX_HISTORY_ITEM_COUNT=100,g}();u.History=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.HistoryItemInfo=void 0,u.HistoryItemInfo=function(I,C){void 0===C&&(C=!1),this.item=I,this.isUndo=C}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ModelChangesDispatcher=void 0;var c=o(140),I=o(141),C=o(142),g=o(143),a=o(144),p=function(){function s(){this.onModelChanged=new a.EventDispatcher,this.isLocked=!1}return s.prototype.notifyTaskCreating=function(l){this.isLocked||this.onModelChanged.raise("NotifyTaskCreating",l)},s.prototype.notifyTaskCreated=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyTaskCreated",l,d,h)},s.prototype.notifyTaskRemoving=function(l){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoving",l)},s.prototype.notifyTaskRemoved=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoved",l,d,h)},s.prototype.notifyTaskUpdating=function(l){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdating",l)},s.prototype.notifyTaskMoving=function(l){this.isLocked||this.onModelChanged.raise("NotifyTaskMoving",l)},s.prototype.notifyTaskEditDialogShowing=function(l){this.isLocked||this.onModelChanged.raise("NotifyTaskEditDialogShowing",l)},s.prototype.notifyResourceManagerDialogShowing=function(l){this.isLocked||this.onModelChanged.raise("NotifyResourceManagerDialogShowing",l)},s.prototype.notifyTaskUpdated=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyTaskUpdated",l,d,h)},s.prototype.notifyParentTaskUpdated=function(l,d){this.isLocked||this.onModelChanged.raise("NotifyParentTaskUpdated",l,d)},s.prototype.notifyDependencyInserting=function(l){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserting",l)},s.prototype.notifyDependencyInserted=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserted",l,d,h)},s.prototype.notifyDependencyRemoving=function(l){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoving",l)},s.prototype.notifyDependencyRemoved=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoved",l,d,h)},s.prototype.notifyResourceCreating=function(l){this.isLocked||this.onModelChanged.raise("NotifyResourceCreating",l)},s.prototype.notifyResourceCreated=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceCreated",l,d,h)},s.prototype.notifyResourceRemoving=function(l){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoving",l)},s.prototype.notifyResourceRemoved=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoved",l,d,h)},s.prototype.notifyResourceColorChanged=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceColorChanged",l,d,h)},s.prototype.notifyResourceAssigning=function(l){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigning",l)},s.prototype.notifyResourceAssigned=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigned",l,d,h)},s.prototype.notifyResourceUnassigning=function(l){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigning",l)},s.prototype.notifyResourceUnassigned=function(l,d,h){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigned",l,d,h)},s.prototype.notifyParentDataRecalculated=function(l){this.onModelChanged.raise("NotifyParentDataRecalculated",l)},s.prototype.notifyScaleCellPrepared=function(l){this.onModelChanged.raise("NotifyScaleCellPrepared",l)},s.prototype.fireResourceUnassigning=function(l){var d=new C.ResourceUnassigningArguments(l);return this.notifyResourceUnassigning(d),!d.cancel},s.prototype.raiseTaskUpdating=function(l,d,h){var v=new g.TaskUpdatingArguments(l,d);return this.notifyTaskUpdating(v),!v.cancel&&(h(v.newValues),!0)},s.prototype.raiseTaskMoving=function(l,d,h,v){var x=new g.TaskUpdatingArguments(l,{start:d,end:h});return this.notifyTaskMoving(x),!x.cancel&&(v(x.start,x.end),!0)},s.prototype.raiseTaskTaskEditDialogShowing=function(l,d){var h=new I.TaskEditDialogShowingArguments(l);return this.notifyTaskEditDialogShowing(h),!h.cancel&&(d(h),!0)},s.prototype.raiseResourceManagerDialogShowing=function(l,d){var h=new c.ResourceManagerDialogShowingArguments(l);return this.notifyResourceManagerDialogShowing(h),!h.cancel&&(d(h),!0)},s.prototype.lock=function(){this.isLocked=!0},s.prototype.unlock=function(){this.isLocked=!1},s}();u.ModelChangesDispatcher=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceManagerDialogShowingArguments=void 0;var c=o(0),I=function(C){function g(a){var p=C.call(this,void 0)||this;return p.values.resources=a.resources,p}return c.__extends(g,C),g}(o(11).BaseArguments);u.ResourceManagerDialogShowingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditDialogShowingArguments=void 0;var c=o(0),I=function(C){function g(a){var p=C.call(this,a.id)||this;return p.values={start:a.start,end:a.end,title:a.title,progress:a.progress},p.hiddenFields=a.hiddenFields,p.readOnlyFields=a.readOnlyFields,p}return c.__extends(g,C),g}(o(11).BaseArguments);u.TaskEditDialogShowingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceUnassigningArguments=void 0;var c=o(0),I=function(C){function g(a){var p=C.call(this,a.internalId)||this;return p.values=a,p}return c.__extends(g,C),g}(o(11).BaseArguments);u.ResourceUnassigningArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskUpdatingArguments=void 0;var c=o(0),I=function(C){function g(a,p){var s=C.call(this,a.id)||this;return s.values=a,s.createNewValues(p),s}return c.__extends(g,C),g.prototype.createNewValues=function(a){var p=this;this.newValues={};var s=function(h){Object.prototype.hasOwnProperty.call(a,h)&&(l.newValues[h]=a[h],Object.defineProperty(l,h,{get:function(){return p.newValues[h]}}))},l=this;for(var d in a)s(d)},g}(o(11).BaseArguments);u.TaskUpdatingArguments=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EventDispatcher=void 0;var c=function(){function I(){this.listeners=[]}return I.prototype.add=function(C){if(!C)throw new Error("Error");this.hasEventListener(C)||this.listeners.push(C)},I.prototype.remove=function(C){for(var g=0,a=void 0;a=this.listeners[g];g++)if(a===C){this.listeners.splice(g,1);break}},I.prototype.raise=function(C){for(var g=[],a=1;a<arguments.length;a++)g[a-1]=arguments[a];for(var p=0,s=void 0;s=this.listeners[p];p++)s[C]?.apply(s,g)},I.prototype.hasEventListener=function(C){for(var g=0,a=this.listeners.length;g<a;g++)if(this.listeners[g]===C)return!0;return!1},I}();u.EventDispatcher=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ModelManipulator=void 0;var c=o(146),I=o(147),C=o(151);u.ModelManipulator=function(a,p){this.task=new C.TaskManipulator(a,p),this.dependency=new c.TaskDependencyManipulator(a,p),this.resource=new I.ResourcesManipulator(a,p),this.dispatcher=p}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskDependencyManipulator=void 0;var c=o(0),I=o(2),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.insertDependency=function(p,s,l,d){var h=this.viewModel;h.onBeginDataObjectCreate();var v=h.dependencies.createItem();return v.predecessorId=p,v.successorId=s,v.type=l,d&&(v.internalId=d),v.id=v.internalId,h.dependencies.add(v),h.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(v.internalId,!0),this.dispatcher.notifyDependencyInserted(this.getObjectForDataSource(v),function(x){var b=v.internalId;v.updateId(x),h.processServerInsertedKey(b,v.internalId,I.GanttDataObjectNames.dependency)},this.getErrorCallback()),h.onEndDataObjectCreate(),v},a.prototype.removeDependency=function(p){var s=this.viewModel.dependencies.getItemById(p);return this.viewModel.dependencies.remove(s),this.dispatcher.notifyDependencyRemoved(s.id,this.getErrorCallback(),this.viewModel.getDependencyObjectForDataSource(s)),this.viewModel.updateVisibleItemDependencies(),this.renderHelper.recreateConnectorLineElement(s.internalId),s},a.prototype.getObjectForDataSource=function(p){var s=this.viewModel.tasks.getItemById(p.predecessorId),l=this.viewModel.tasks.getItemById(p.successorId);return{id:p.id,predecessorId:s.id,successorId:l.id,type:p.type}},a}(o(28).BaseManipulator);u.TaskDependencyManipulator=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcesManipulator=void 0;var c=o(0),I=o(2),C=o(28),g=o(148),a=function(p){function s(l,d){var h=p.call(this,l,d)||this;return h.properties=new g.ResourcePropertiesManipulator(l,d),h}return c.__extends(s,p),s.prototype.create=function(l,d,h,v){var x=this.viewModel;x.onBeginDataObjectCreate();var b=x.resources.createItem();return b.text=l,d&&(b.color=d),h&&(b.internalId=h),b.id=b.internalId,this.viewModel.resources.add(b),this.dispatcher.notifyResourceCreated(this.getResourceObjectForDataSource(b),function(y){var E=b.internalId;b.updateId(y),x.processServerInsertedKey(E,b.internalId,I.GanttDataObjectNames.resource),v&&v(y)},this.getErrorCallback()),x.onEndDataObjectCreate(),b},s.prototype.remove=function(l){var d=this.viewModel.resources.getItemById(l);if(!d)throw new Error("Invalid resource id");if(this.viewModel.assignments.items.filter(function(h){return h.resourceId===l}).length)throw new Error("Can't delete assigned resource");return this.viewModel.resources.remove(d),this.dispatcher.notifyResourceRemoved(d.id,this.getErrorCallback(),this.viewModel.getResourceObjectForDataSource(d)),d},s.prototype.assign=function(l,d,h){var v=this.viewModel;v.onBeginDataObjectCreate();var x=v.assignments.createItem();return x.resourceId=l,x.taskId=d,h&&(x.internalId=h),x.id=x.internalId,this.viewModel.assignments.add(x),this.dispatcher.notifyResourceAssigned(this.getResourceAssignmentObjectForDataSource(x),function(b){var y=x.internalId;x.updateId(b),v.processServerInsertedKey(y,x.internalId,I.GanttDataObjectNames.resourceAssignment)},this.getErrorCallback()),this.viewModel.updateModel(),v.onEndDataObjectCreate(),this.viewModel.owner.resetAndUpdate(),x},s.prototype.deassig=function(l){var d=this.viewModel.assignments.getItemById(l);return this.viewModel.assignments.remove(d),this.dispatcher.notifyResourceUnassigned(d.id,this.getErrorCallback(),this.viewModel.getResourceAssignmentObjectForDataSource(d)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),d},s.prototype.getResourceObjectForDataSource=function(l){return{id:l.id,text:l.text}},s.prototype.getResourceAssignmentObjectForDataSource=function(l){return{id:l.id,taskId:this.viewModel.tasks.getItemById(l.taskId).id,resourceId:this.viewModel.resources.getItemById(l.resourceId).id}},s}(C.BaseManipulator);u.ResourcesManipulator=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcePropertiesManipulator=void 0;var c=o(0),I=o(28),C=o(149),g=function(a){function p(s,l){var d=a.call(this,s,l)||this;return d.color=new C.ResourceColorManipulator(s,l),d}return c.__extends(p,a),p}(I.BaseManipulator);u.ResourcePropertiesManipulator=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceColorManipulator=void 0;var c=o(0),I=function(C){function g(){return null!==C&&C.apply(this,arguments)||this}return c.__extends(g,C),g.prototype.getPropertyValue=function(a){return a.color},g.prototype.setPropertyValue=function(a,p){a.color=p,this.dispatcher.notifyResourceColorChanged(a.id,p,this.getErrorCallback())},g}(o(150).ResourcePropertyManipulator);u.ResourceColorManipulator=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourcePropertyManipulator=void 0;var c=o(0),I=o(54),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.setValue=function(p,s){var l=this,d=this.viewModel.resources.getItemById(p),h=new I.HistoryItemState(p,this.getPropertyValue(d));return this.setPropertyValue(d,s),this.viewModel.assignments.items.filter(function(v){return v.resourceId===d.internalId}).forEach(function(v){var x=l.viewModel.findItem(v.taskId).visibleIndex;l.renderHelper.recreateTaskElement(x)}),h},a.prototype.restoreValue=function(p){var s=this;if(p){var l=p.value,d=this.viewModel.resources.getItemById(p.id);this.setPropertyValue(d,l),this.viewModel.assignments.items.filter(function(h){return h.resourceId===d.internalId}).forEach(function(h){var v=s.viewModel.findItem(h.taskId).visibleIndex;s.renderHelper.recreateTaskElement(v)})}},a}(o(28).BaseManipulator);u.ResourcePropertyManipulator=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskManipulator=void 0;var c=o(0),I=o(1),C=o(2),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.create=function(s,l,d){var h=this,v=this.viewModel;v.onBeginDataObjectCreate();var x=v.tasks.createItem();x.start=s.start,x.end=s.end,x.title=s.title,x.progress=s.progress,s.color&&(x.color=s.color);var b=v.tasks.getItemById(s.parentId);return b&&(b.expanded=!0),x.parentId=s.parentId,l&&(x.internalId=l),x.id=x.internalId,v.tasks.add(x),v.updateModel(),this.dispatcher.notifyTaskCreated(this.getObjectForDataSource(x),function(y){var E=x.internalId;if(x.updateId(y),v.processServerInsertedKey(E,x.internalId,C.GanttDataObjectNames.task),d&&d(),h.viewModel.requireFirstLoadParentAutoCalc){var S=v.getCurrentTaskData().map(function(O){return""===O.parentId&&(O.parentId=null),O});h.dispatcher.notifyParentDataRecalculated(S)}},this.getErrorCallback()),v.onEndDataObjectCreate(),v.owner.resetAndUpdate(),x},p.prototype.remove=function(s){var l=this.viewModel.tasks.getItemById(s);if(!l)throw new Error("Invalid task id");if(this.viewModel.dependencies.items.filter(function(d){return d.predecessorId==s||d.successorId==s}).length)throw new Error("Can't delete task with dependency");if(this.viewModel.assignments.items.filter(function(d){return d.taskId==s}).length)throw new Error("Can't delete task with assigned resource");return this.viewModel.tasks.remove(l),this.dispatcher.notifyTaskRemoved(l.id,this.getErrorCallback(),this.viewModel.getTaskObjectForDataSource(l)),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),l},p.prototype.update=function(s,l){var d=this.viewModel.tasks.getItemById(s),h={};Object.keys(l).forEach(function(x){(0,I.isDefined)(d[x])&&(h[x]=d[x],d[x]=l[x])});var v=this.viewModel.findItem(s);return v&&this.renderHelper.recreateTaskElement(v.visibleIndex),this.dispatcher.notifyTaskUpdated(d.id,l,this.getErrorCallback()),h},p.prototype.getObjectForDataSource=function(s){return this.viewModel.getTaskObjectForDataSource(s)},p}(o(28).BaseManipulator);u.TaskManipulator=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfGanttExporter=void 0;var c=o(153),I=function(){function C(g){if(!g.settings.pdfDoc&&!g.settings.docCreateMethod)throw new Error("Cannot convert gantt to pdf without document instance!");this._info=g}return C.prototype.export=function(){var g,a,p=this.pdfDoc;this.applyCustomFont();for(var s=this._info,l=new c.PdfGanttPageDrawer(p,s.settings),d=s.getPages(p),h=d.length,v=0;v<h;v++)v>0&&p.addPage(this.getDocumentFormat(),this.getOrientation()),l.drawPage(d[v]);return!(null===(g=this.props)||void 0===g)&&g.fileName&&p.save(null===(a=this.props)||void 0===a?void 0:a.fileName),p},Object.defineProperty(C.prototype,"pdfDoc",{get:function(){var g,a;return null!==(g=this._pdfDoc)&&void 0!==g||(this._pdfDoc=null!==(a=this._info.settings.pdfDoc)&&void 0!==a?a:this.createDoc()),this._pdfDoc},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"props",{get:function(){return this._info.settings},enumerable:!1,configurable:!0}),C.prototype.createDoc=function(){var g=this.getJsPDFProps();return this._info.settings.docCreateMethod(g)},C.prototype.getJsPDFProps=function(){var g={putOnlyUsedFonts:!0,unit:"px",hotfixes:["px_scaling"]};return g.orientation=this.getOrientation(),g.format=this.getDocumentFormat(),g},C.prototype.getOrientation=function(){var g;return null!==(g=this.props)&&void 0!==g&&g.landscape?"l":"p"},C.prototype.getDocumentFormat=function(){var g,a,p,s;return null!==(g=this.props)&&void 0!==g&&g.format||null!==(a=this.props)&&void 0!==a&&a.pageSize?null!==(p=this.props)&&void 0!==p&&p.pageSize?[this.props.pageSize.height,this.props.pageSize.width]:null===(s=this.props)||void 0===s?void 0:s.format:"a4"},C.prototype.applyCustomFont=function(){this.props.font&&this.props.font.applyToDoc(this.pdfDoc)},C}();u.PdfGanttExporter=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfGanttPageDrawer=void 0;var c=o(5),I=o(154),C=o(27),g=o(37),a=o(155),p=function(){function s(l,d){this._pdfDoc=l,this._props=d}return s.prototype.drawPage=function(l){var d=this._pdfDoc,h=new a.PdfGanttTableDrawer(d);return this.needDrawChart()&&(h.drawTable(l.tables[C.PdfPageTableNames.chartMain]),new I.PdfObjectDrawer(d,l.objects).draw(),h.drawTable(l.tables[C.PdfPageTableNames.chartScaleTop]),h.drawTable(l.tables[C.PdfPageTableNames.chartScaleBottom])),this.needDrawTreeList()&&(h.drawTable(l.tables[C.PdfPageTableNames.treeListMain]),h.drawTable(l.tables[C.PdfPageTableNames.treeListHeader])),this.drawMargins(l),d},s.prototype.needDrawChart=function(){return!this._props||this._props.exportMode===g.ExportMode.all||this._props.exportMode===g.ExportMode.chart},s.prototype.needDrawTreeList=function(){return!this._props||this._props.exportMode===g.ExportMode.all||this._props.exportMode===g.ExportMode.treeList},s.prototype.getContentRightBottom=function(l){var d=new c.Point(0,0);for(var h in l.tables)if(Object.prototype.hasOwnProperty.call(l.tables,h)){var v=l.tables[h];d.x=Math.max(d.x,v.position.x+v.size.width),d.y=Math.max(d.y,v.position.y+v.size.height)}return d},s.prototype.drawMargins=function(l){var d=this._pdfDoc,h=this._props,v=d.getPageWidth(),x=d.getPageHeight(),b=this.getContentRightBottom(l);d.setFillColor(255,255,255),d.rect(0,0,h.margins.left,x,"F"),d.rect(0,0,v,h.margins.top,"F"),d.rect(b.x,0,v,x,"F"),d.rect(0,b.y,v,x,"F")},s}();u.PdfGanttPageDrawer=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfObjectDrawer=void 0;var c=o(4),I=o(64),C=o(44),g=function(){function a(p,s){this._FONT_ROW_RATIO=1.15,this._info=s,this._pdfDoc=p}return a.prototype.draw=function(){this.drawTimeMarkers(),this.drawDependencies(),this.drawTasks(),this.drawResources()},a.prototype.drawTasks=function(){var p,s=this,l=null===(p=this._info)||void 0===p?void 0:p.tasks;l&&l.forEach(function(d){return s.drawTask(d)})},a.prototype.drawTask=function(p){var s=this._pdfDoc;s.setFillColor.apply(s,p.taskColor.getRBGColor()),s.setDrawColor.apply(s,p.taskColor.getRBGColor()),p.isMilestone?this.drawMilestone(p):this.drawRegularTask(p)},a.prototype.drawMilestone=function(p){var s=this._pdfDoc,l=p.sidePoints[0].x,d=p.sidePoints[0].y,x=p.sidePoints[2].x,b=p.sidePoints[2].y,y=p.sidePoints[3].x,E=p.sidePoints[3].y;s.triangle(l,d,p.sidePoints[1].x,p.sidePoints[1].y,x,b,"FD"),s.triangle(l,d,y,E,x,b,"FD")},a.prototype.drawRegularTask=function(p){var s=this._pdfDoc;s.rect(p.left,p.top,p.width,p.height,"FD"),p.isParent&&this.drawParentBorder(p),p.progressWidth&&(s.setFillColor.apply(s,p.progressColor.getRBGColor()),s.rect(p.left,p.top,p.progressWidth,p.height,"F")),p.text&&this.printTaskTitle(p)},a.prototype.drawParentBorder=function(p){var s=this._pdfDoc,l=p.sidePoints[0].x,d=p.sidePoints[1].y,h=p.sidePoints[3].y,v=p.sidePoints[2].x,x=p.sidePoints[3].y-p.sidePoints[1].y,b=p.progressWidth>x?p.progressColor.getRBGColor():p.taskColor.getRBGColor();s.setFillColor.apply(s,b),s.triangle(l,d,l,h,l+x,d,"FD"),s.setFillColor.apply(s,p.taskColor.getRBGColor()),s.triangle(v,d,v,h,v-x,d,"FD")},a.prototype.printTaskTitle=function(p){var s,l=this._pdfDoc,d=p.textStyle,h=d&&d.textColor.getRBGColor(),v=d&&d.fontSize;l.setTextColor.apply(l,h),l.setFontSize(v);var x=p.top+v*this._FONT_ROW_RATIO/l.internal.scaleFactor;p.isParent&&(x-=C.PdfTaskInfo.defaultParentHeightCorrection);var b=d&&d.cellPadding.left||0,y=d&&d.cellPadding.right||0;p.textPosition===c.TaskTitlePosition.Inside?(s=p.left+b,l.text(I.EllipsisHelper.limitPdfTextWithEllipsis(p.text,l,p.width-b-y),s,x)):l.text(p.text,s=p.left-y,x,{align:"right"})},a.prototype.drawDependencies=function(){var p,s=this,l=null===(p=this._info)||void 0===p?void 0:p.dependencies;l&&l.forEach(function(d){return s.drawDependencyLine(d)})},a.prototype.drawDependencyLine=function(p){var s,l;if((s=this._pdfDoc).setFillColor.apply(s,p.fillColor.getRBGColor()),(l=this._pdfDoc).setDrawColor.apply(l,p.fillColor.getRBGColor()),p.arrowInfo)this.drawArrow(p);else{var d=p.points;this._pdfDoc.line(d[0].x,d[0].y,d[1].x,d[1].y)}},a.prototype.isValidLine=function(p){var s=p.points;return!(isNaN(s[0].x)||isNaN(s[0].y)||isNaN(s[1].x)||isNaN(s[1].y))},a.prototype.drawArrow=function(p){var s=p.arrowInfo.width||0,l=p.points[0].x,d=p.points[0].y;switch(p.arrowInfo.position){case c.Position.Left:this._pdfDoc.triangle(l,d+s,l+s,d,l+s,d+2*s,"FD");break;case c.Position.Right:this._pdfDoc.triangle(l,d,l,d+2*s,l+s,d+s,"FD");break;case c.Position.Top:this._pdfDoc.triangle(l,d+s,l+s,d,l+2*s,d+s,"FD");break;case c.Position.Bottom:this._pdfDoc.triangle(l,d,l+s,d+s,l+2*s,d,"FD")}},a.prototype.drawResources=function(){var p,s=this,l=this._pdfDoc,d=null===(p=this._info)||void 0===p?void 0:p.resources;d&&d.forEach(function(h){var v,x,b;l.setFontSize(null!==(v=h.style.fontSize)&&void 0!==v?v:11);var y=h.y+h.style.fontSize*s._FONT_ROW_RATIO/l.internal.scaleFactor,E=null!==(x=h.style.cellPadding.left)&&void 0!==x?x:0,S=null!==(b=h.style.cellPadding.right)&&void 0!==b?b:1,O=Math.max(h.style.cellWidth.getValue(),E+l.getTextWidth(h.text)+S);l.setFillColor.apply(l,h.style.fillColor.getRBGColor()),l.rect(h.x,h.y,O,h.style.minCellHeight,"F"),l.setTextColor.apply(l,h.style.textColor.getRBGColor()),l.text(h.text,h.x+E,y)})},a.prototype.drawTimeMarkers=function(){var p,s=this;(null===(p=this._info)||void 0===p?void 0:p.timeMarkers)?.forEach(function(d){return s.drawTimeMarker(d)})},a.prototype.drawTimeMarker=function(p){var s,l,d=this._pdfDoc,h=p.size.width>1,v=p.start.x,x=p.start.y,b=p.size.width,y=p.size.height,E=p.isStripLine;h&&(d.setFillColor.apply(d,p.color.getRBGColor()),d.saveGraphicsState(),d.setGState(new d.GState({opacity:null!==(l=p.color.opacity)&&void 0!==l?l:1})),d.rect(v,x,b,y,"F"),d.restoreGraphicsState()),E&&(this._pdfDoc.setLineDashPattern([3]),(s=this._pdfDoc).setDrawColor.apply(s,p.lineColor.getRBGColor()),h&&this._pdfDoc.line(v+b,x,v+b,x+y,"S"),this._pdfDoc.line(v,x,v,x+y,"S"),this._pdfDoc.setLineDashPattern())},a}();u.PdfObjectDrawer=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.PdfGanttTableDrawer=void 0;var c=o(1),I=o(27),C=o(64),g=o(156),a=function(){function p(s){this._pdfDoc=s}return p.prototype.drawTable=function(s){var l,d;if(s){var h=this.createTableOptions(s);!(null===(l=s.style)||void 0===l)&&l.fontSize&&this._pdfDoc.setFontSize(null===(d=s.style)||void 0===d?void 0:d.fontSize),this._pdfDoc.autoTable(h.getValue())}},p.prototype.createTableOptions=function(s){var l=this.createDefaultTableOptions();return this.addTableCommonSettings(s,l),this.addCommonTableStyles(s,l),this.prepareBodyCells(s),l.addBody(s.cells),s.hideRowLines&&this.hideRowLines(l),l},p.prototype.createDefaultTableOptions=function(){var s=new g.TableOptions;return s.pageBreak="auto",s.margin.assign(0),s.tableWidth.assign("auto"),s.styles.cellPadding.assign(0),s.styles.halign="center",s.styles.valign="middle",s.styles.lineWidth=1,s.styles.overflow="hidden",s},p.prototype.addTableCommonSettings=function(s,l){l.startY=s.position.y,l.margin.assign({left:s.position.x}),l.tableWidth.assign(s.size.width)},p.prototype.addCommonTableStyles=function(s,l){var d=l.styles;d.assign(s.style),0===d.fillColor.opacity&&d.fillColor.assign("#FFFFFF"),d.minCellHeight=s.baseCellSize.height,l.alternateRowStyles.minCellHeight=l.styles.minCellHeight,l.alternateRowStyles.fillColor.assign(l.styles.fillColor),(0,c.isDefined)(s.baseCellSize.width)&&d.cellWidth.assign(s.baseCellSize.width)},p.prototype.prepareBodyCells=function(s){var l,d,h;if(s.name===I.PdfPageTableNames.treeListMain||s.name===I.PdfPageTableNames.chartScaleTop||s.name===I.PdfPageTableNames.chartScaleBottom)for(var v=s.cells,x=0;x<v.length;x++)for(var b=v[x],y=0;y<b.length;y++){var E=b[y],S=E.styles,O=(null===(l=S?.cellWidth)||void 0===l?void 0:l.getValue())||s.baseCellSize.width||0,w=null!==(d=S?.cellPadding.left)&&void 0!==d?d:0,T=null!==(h=S?.cellPadding.right)&&void 0!==h?h:0,k=Math.max(O-w-T-p.cellEllipsisSpace,0);E.content=C.EllipsisHelper.limitPdfTextWithEllipsis(E.content,this._pdfDoc,k)}},p.prototype.hideRowLines=function(s){s.styles.lineWidth=0,s.onDrawCellCallback=function(l){var d=l.cell,h=l.doc,v=d.styles.lineColor,x=d.x,b=d.x+d.styles.cellWidth,y=d.y,E=d.y+l.row.height,S=l.column.index===l.table.columns.length-1,O=l.row.index===l.table.body.length-1,w=0===l.row.index;h.setDrawColor(v[0],v[1],v[2]),h.setLineWidth(1),h.line(x,E,x,y),S&&h.line(b,E,b,y),w&&h.line(x,y,b,y),O&&h.line(x,E,b,E)}},p.cellEllipsisSpace=3,p}();u.PdfGanttTableDrawer=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TableOptions=void 0;var c=o(1),I=o(45),C=o(17),g=o(35),a=o(36),p=o(26),s=o(62),l=function(){function d(){this._margin=new a.Margin,this._tableLineColor=new C.Color,this._tableWidth=new s.Width,this._styles=new p.StyleDef,this._alternateRowStyles=new p.StyleDef}return Object.defineProperty(d.prototype,"pageBreak",{get:function(){return this._pageBreak},set:function(h){this._pageBreak=g.PredefinedStyles.getPredefinedStringOrUndefined(h,g.PredefinedStyles.pageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"rowPageBreak",{get:function(){return this._rowPageBreak},set:function(h){this._rowPageBreak=g.PredefinedStyles.getPredefinedStringOrUndefined(h,g.PredefinedStyles.rowPageBreak)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"showHead",{get:function(){return this._showHead},set:function(h){this._showHead=g.PredefinedStyles.getPredefinedStringOrUndefined(h,g.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"showFoot",{get:function(){return this._showFoot},set:function(h){this._showFoot=g.PredefinedStyles.getPredefinedStringOrUndefined(h,g.PredefinedStyles.headerFooterVisibility)},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"startY",{get:function(){return this._startY},set:function(h){this._startY=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tableLineWidth",{get:function(){return this._tableLineWidth},set:function(h){this._tableLineWidth=h},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"margin",{get:function(){return this._margin},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tableLineColor",{get:function(){return this._tableLineColor},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"tableWidth",{get:function(){return this._tableWidth},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"body",{get:function(){return this._body},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"styles",{get:function(){return this._styles},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"alternateRowStyles",{get:function(){return this._alternateRowStyles},enumerable:!1,configurable:!0}),d.prototype.hasValue=function(){return!0},d.prototype.getValue=function(){var h=this,v={};return v.pageBreak=this.pageBreak,v.rowPageBreak=this.rowPageBreak,v.showFoot=this.showFoot,v.showHead=this.showHead,v.startY=this.startY,v.tableLineWidth=this.tableLineWidth,this.getJsPdfProviderProps().forEach(function(x){var b=h[x];b&&b.hasValue()&&(v[x]=b.getValue())}),v.body=this.getBodyForJsPdf(),v.columnStyles=this.getColumnStylesForJsPdf(),this.onDrawCellCallback&&(v.didDrawCell=this.onDrawCellCallback),v},d.prototype.getJsPdfProviderProps=function(){return["margin","tableLineColor","tableWidth","styles","alternateRowStyles"]},d.prototype.getBodyForJsPdf=function(){for(var h=[],v=0;v<this._body.length;v++){for(var x=this._body[v],b=[],y=0;y<x.length;y++)b.push(x[y].getValue());h.push(b)}return h},d.prototype.assign=function(h){h&&((0,c.isDefined)(h.margin)&&this.margin.assign(h.margin),(0,c.isDefined)(h.pageBreak)&&(this.pageBreak=h.pageBreak),(0,c.isDefined)(h.rowPageBreak)&&(this.rowPageBreak=h.rowPageBreak),(0,c.isDefined)(h.showFoot)&&(this.showFoot=h.showFoot),(0,c.isDefined)(h.showHead)&&(this.showHead=h.showHead),(0,c.isDefined)(h.startY)&&(this.startY=h.startY),(0,c.isDefined)(h.tableLineWidth)&&(this.tableLineWidth=h.tableLineWidth),(0,c.isDefined)(h.tableLineColor)&&this.tableLineColor.assign(h.tableLineColor),(0,c.isDefined)(h.tableWidth)&&this.tableWidth.assign(h.tableWidth))},d.prototype.addBody=function(h){h&&(this._body=new Array,this.addCells(h,this._body))},d.prototype.addCells=function(h,v){for(var x=this.styles.fillColor,b=0;b<h.length;b++){for(var y=h[b],E=new Array,S=0;S<y.length;S++){var O=new I.CellDef(y[S]);x.hasValue()&&O.styles&&O.styles.fillColor.hasValue()&&O.styles.fillColor.applyOpacityToBackground(x),E.push(O)}v.push(E)}},d.prototype.applyColumnStyle=function(h,v){var x;null!==(x=this._columnStyles)&&void 0!==x||(this._columnStyles=new Array),this._columnStyles[h]=new p.StyleDef(v)},d.prototype.getColumnStylesForJsPdf=function(){if(this._columnStyles){var h={};return this._columnStyles.forEach(function(v,x){v&&(h[x]=v.getValue())}),h}return null},d}();u.TableOptions=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.RenderHelper=void 0;var c=o(158),I=o(159),C=o(160),g=o(47),a=o(25),p=o(161),s=o(162),l=o(163),d=o(165),h=o(166),v=o(179),x=o(180),b=o(182),y=o(12),E=o(183),S=o(184),O=function(){function w(T){this.hlRowElements=[],this.renderedColIndices=[],this.renderedRowIndices=[],this.invalidTaskDependencies=[],this.etalonSizeValues=new C.EtalonSizeValues,this._gridLayoutCalculator=new a.GridLayoutCalculator,this._ganttView=T,this._connectorLinesRender=new c.ConnectorLinesRender(this),this._etalonsHelper=new I.EtalonsHelper(this),this._noWorkingIntervalRender=new p.NoWorkingIntervalRender(this),this._resourceRender=new s.ResourseRender(this),this._scaleRender=new l.ScaleRender(this),this._stripLinesRender=new d.StripLinesRender(this),this._taskAreaRender=new v.TaskAreaRender(this),this._taskRender=new x.TaskRender(this),this._mainElementsRender=new b.MainElementsRender}return w.prototype.reset=function(){this.invalidTaskDependencies=[],this._taskAreaRender.reset(),this._taskRender.reset(),this._taskArea.innerHTML="",this._scaleRender.reset(),this.hlRowElements=[],this.renderedRowIndices=[],this.renderedColIndices=[],this._connectorLinesRender.reset(),this._stripLinesRender.reset(),this._noWorkingIntervalRender.reset()},w.prototype.createMainElement=function(T){this.mainElement=this._mainElementsRender.createMainElement(T),T.appendChild(this.mainElement)},w.prototype.createHeader=function(){this.header=this._mainElementsRender.createHeader(),this.mainElement.appendChild(this.header)},w.prototype.init=function(T,k,R,P,B){void 0===B&&(B=0),this._elementTextHelper.setFont(this.mainElement),this.setupHelpers(T,k,R,P,B),this.setSizeForTaskArea(),this.createTimeScale(),this._taskAreaManager=new h.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)},w.prototype.initMarkup=function(T){this._elementTextHelper=new S.ElementTextHelper(this.ganttViewSettings.cultureInfo),this.createMainElement(T),this.createHeader(),this._etalonsHelper.calculateEtalonSizeValues(),this._taskAreaRender.createTaskAreaContainer()},w.prototype.processScroll=function(T){this._taskAreaRender.recreateTaskAreaBordersAndTaskElements(T),T?this._connectorLinesRender.recreateConnectorLineElements():(this._noWorkingIntervalRender.recreateNoWorkingIntervalElements(),this._stripLinesRender.recreateStripLines(),this._scaleRender.recreateScalesElements())},Object.defineProperty(w.prototype,"ganttViewSettings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskTextHeightKey",{get:function(){return g.GanttView.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"showResources",{get:function(){return this.ganttViewSettings.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"showDependencies",{get:function(){return this.ganttViewSettings.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"viewModelItems",{get:function(){return this._ganttView.viewModel.items},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"stripLines",{get:function(){return this.ganttViewSettings.stripLines},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"range",{get:function(){return this._ganttView.range},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"viewType",{get:function(){return this.ganttViewSettings.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskTitlePosition",{get:function(){return this.ganttViewSettings.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"tickSize",{get:function(){return this._ganttView.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"ganttViewTaskAreaContainerScrollTop",{get:function(){return this._ganttView.taskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"ganttTaskAreaContainerScrollLeft",{get:function(){return this._ganttView.taskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"scaleCount",{get:function(){return this._ganttView.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"areHorizontalBordersEnabled",{get:function(){return this.ganttViewSettings.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskEditController",{get:function(){return this._ganttView.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"dispatcher",{get:function(){return this._ganttView.dispatcher},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaManager",{get:function(){var T;return null!==(T=this._taskAreaManager)&&void 0!==T||(this._taskAreaManager=new h.TaskAreaManager(this._ganttView.taskAreaEventsListener,this.taskArea,this.tickSize)),this._taskAreaManager},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaContainerScrollTop",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"isExternalTaskAreaContainer",{get:function(){return this._taskAreaRender.taskAreaContainer.isExternal},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"fakeTaskWrapper",{get:function(){return this._taskRender.fakeTaskWrapper},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"selectionElements",{get:function(){return this._taskRender.selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"scaleElements",{get:function(){return this._scaleRender.scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"scaleBorders",{get:function(){return this._scaleRender.scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"timeScaleContainer",{get:function(){return this._scaleRender.timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"gridLayoutCalculator",{get:function(){return this._gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"etalonScaleItemWidths",{get:function(){return this.etalonSizeValues.scaleItemWidths[this.viewType]},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"elementTextHelperCultureInfo",{get:function(){return this._elementTextHelper.cultureInfo},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalRender.noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"stripLinesMap",{get:function(){return this._stripLinesRender.stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"renderedConnectorLines",{get:function(){return this._connectorLinesRender.renderedConnectorLines},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"allConnectorLines",{get:function(){return this.gridLayoutCalculator.tileToDependencyMap.reduce(function(T,k){return T.concat(k)},[])},enumerable:!1,configurable:!0}),Object.defineProperty(w.prototype,"resourcesElements",{get:function(){return this._resourceRender.resourcesElements},enumerable:!1,configurable:!0}),w.prototype.setupHelpers=function(T,k,R,P,B){void 0===B&&(B=0);var W=new y.Size(this._taskAreaRender.taskAreaContainer.getWidth(),this._taskAreaRender.taskAreaContainer.getHeight()),z=this._taskAreaRender.taskAreaContainer.getHeight()-this._taskAreaRender.taskAreaContainer.getElement().clientHeight;this._gridLayoutCalculator.setSettings(W,T,this.etalonSizeValues,k,P,R,z,B),this._elementTextHelper.setSettings(k.start.getTime(),R,P.items)},w.prototype.resetAndUpdate=function(T,k,R,P,B){void 0===B&&(B=0);var W=this.getTaskAreaContainerScrollLeft();this.reset(),this.setupHelpers(T,k,R,P,B),this._scaleRender.createTimeScaleAreas(),this.setSizeForTaskArea(),this.setTaskAreaContainerScrollLeft(W)},w.prototype.createConnectorLines=function(){this._gridLayoutCalculator.createTileToConnectorLinesMap(),this._connectorLinesRender.recreateConnectorLineElements()},w.prototype.getTargetDateByPos=function(T){return this._gridLayoutCalculator.getDateByPos(this._taskAreaRender.taskAreaContainer.scrollLeft+T)},w.prototype.getExternalTaskAreaContainer=function(T){return this._ganttView.getExternalTaskAreaContainer(T)},w.prototype.prepareExternalTaskAreaContainer=function(T,k){return this._ganttView.prepareExternalTaskAreaContainer(T,k)},w.prototype.isAllowTaskAreaBorders=function(T){return this._ganttView.allowTaskAreaBorders(T)},w.prototype.getHeaderHeight=function(){return this._ganttView.getHeaderHeight()},w.prototype.getViewItem=function(T){return this._ganttView.getViewItem(T)},w.prototype.getTask=function(T){return this._ganttView.getTask(T)},w.prototype.hasTaskTemplate=function(){return!!this._ganttView.settings.taskContentTemplate},w.prototype.destroyTemplate=function(T){this._ganttView.destroyTemplate(T)},w.prototype.getTaskDependencies=function(T){return this._ganttView.getTaskDependencies(T)},w.prototype.getTaskResources=function(T){return this._ganttView.getTaskResources(T)},w.prototype.isHighlightRowElementAllowed=function(T){return this._ganttView.isHighlightRowElementAllowed(T)},w.prototype.updateRenderedConnectorLinesId=function(T,k){this._connectorLinesRender.updateRenderedConnectorLinesId(T,k)},w.prototype.recreateConnectorLineElement=function(T,k){void 0===k&&(k=!1),this._connectorLinesRender.recreateConnectorLineElement(T,k)},w.prototype.recreateConnectorLineElemensts=function(){this._connectorLinesRender.recreateConnectorLineElements()},w.prototype.setMainElementWidth=function(T){this.mainElement.style.width=T+"px"},w.prototype.setMainElementHeight=function(T){this.mainElement.style.height=T+"px"},w.prototype.createResources=function(T){this._resourceRender.createResourcesWrapperElement(T),this._resourceRender.createResources(T)},w.prototype.createTimeScale=function(){this._scaleRender.createTimeScaleContainer(this.header),this._scaleRender.createTimeScaleAreas()},w.prototype.setTimeScaleContainerScrollLeft=function(T){this._scaleRender.setTimeScaleContainerScrollLeft(T)},w.prototype.recreateStripLines=function(){this._stripLinesRender.recreateStripLines&&this._stripLinesRender.recreateStripLines()},w.prototype.createTaskArea=function(T){this._taskArea=this._taskAreaRender.createTaskArea(),this._taskArea.setAttribute("task-edit-enabled",this.isTaskUpdateAllowed().toString()),T.appendChild(this._taskArea)},w.prototype.isTaskUpdateAllowed=function(){var T=this.ganttViewSettings.editing;return T.enabled&&T.allowTaskUpdate},w.prototype.setSizeForTaskArea=function(){var T=this.getTaskAreaWidth(),k=this.getTaskAreaHeight();this._taskAreaRender.setSizeForTaskArea(T,k),this._ganttView.onTaskAreaSizeChanged({width:T,height:k})},w.prototype.getTaskAreaWidth=function(){return this.gridLayoutCalculator.getTotalWidth()},w.prototype.getTaskAreaHeight=function(){return this.gridLayoutCalculator.getVerticalGridLineHeight()},w.prototype.getTaskAreaContainerScrollLeft=function(){return this._taskAreaRender.taskAreaContainer.scrollLeft},w.prototype.setTaskAreaContainerScrollLeft=function(T){this._taskAreaRender.taskAreaContainer.scrollLeft=T},w.prototype.setTaskAreaContainerScrollLeftToDate=function(T,k){this._taskAreaRender.taskAreaContainer.scrollLeft=Math.round(this._gridLayoutCalculator.getPosByDate(T))+k},w.prototype.getTaskAreaContainer=function(T){return new E.TaskAreaContainer(T,this._ganttView)},w.prototype.prepareTaskAreaContainer=function(){this._taskAreaRender.prepareTaskAreaContainer()},w.prototype.getTaskAreaContainerWidth=function(){return this._taskAreaRender.taskAreaContainer.getWidth()},w.prototype.createHighlightRowElement=function(T){this._taskAreaRender.createHighlightRowElement(T)},w.prototype.getSmallTaskWidth=function(T){return this._taskRender.getSmallTaskWidth(T)},w.prototype.createTaskElement=function(T){this._taskRender.createTaskElement(T,this._ganttView.settings.taskContentTemplate)},w.prototype.removeTaskElement=function(T){this._taskRender.removeTaskElement(T)},w.prototype.recreateTaskElement=function(T){this._taskRender.recreateTaskElement(T)},w.prototype.createDefaultTaskElement=function(T){this._taskRender.createDefaultTaskElement(T)},w.prototype.getScaleItemText=function(T,k){var R=this._gridLayoutCalculator.getScaleItemStart(T,k);return this.getScaleItemTextByStart(R,k)},w.prototype.getScaleItemTextByStart=function(T,k){return this._elementTextHelper.getScaleItemText(T,k)},w.prototype.getTextWidth=function(T){return this._elementTextHelper.getTextWidth(T)},w.prototype.getTaskVisibility=function(T){return this.gridLayoutCalculator.isTaskInRenderedRange(T)&&this._elementTextHelper.getTaskVisibility(T)},w.prototype.getTaskResourcesVisibility=function(T){return this.getTaskVisibility(T)&&!this.gridLayoutCalculator.isTaskCutByRange(T)},w.prototype.getScaleItemTextTemplate=function(T){return this._elementTextHelper.getScaleItemTextTemplate(T)},w.prototype.getTaskText=function(T){return this._elementTextHelper.getTaskText(T)},w.prototype.taskAreaManagerDetachEvents=function(){this.taskAreaManager.detachEvents()},w.prototype.attachEventsOnTask=function(T){this.taskAreaManager.attachEventsOnTask(this._taskRender.taskElements[T])},w.prototype.detachEventsOnTask=function(T){this.taskAreaManager.detachEventsOnTask(this._taskRender.taskElements[T])},w}();u.RenderHelper=O},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ConnectorLinesRender=void 0;var c=o(16),I=o(25),C=function(){function g(a){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[],this._renderHelper=a}return Object.defineProperty(g.prototype,"taskEditController",{get:function(){return this._renderHelper.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"connectorLinesToElementsMap",{get:function(){return this._connectorLinesToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"showDependencies",{get:function(){return this._renderHelper.showDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"renderedConnectorLines",{get:function(){return this._renderedConnectorLines},enumerable:!1,configurable:!0}),g.prototype.reset=function(){this._connectorLinesToElementsMap={},this._renderedConnectorLines=[]},g.prototype.createConnectorLineElement=function(a){if(this.showDependencies){var p=a.attr["dependency-id"];if(!this.invalidTaskDependencies.some(function(d){return d.id==p})){this.taskEditController.isDependencySelected(p)&&(a.className=a.className+" active");var s=a.className.indexOf(I.GridLayoutCalculator.arrowClassName)>-1,l=c.RenderElementUtils.create(a,null,this.taskArea,this.connectorLinesToElementsMap);return s&&this.gridLayoutCalculator.checkAndCorrectArrowElementDisplayByRange(l),l}}},g.prototype.removeConnectorLineElement=function(a){c.RenderElementUtils.remove(a,null,this.taskArea,this.connectorLinesToElementsMap)},g.prototype.recreateConnectorLineElement=function(a,p){var s=this;void 0===p&&(p=!1);var l=[];this._renderedConnectorLines=this.renderedConnectorLines.filter(function(h){return h.attr["dependency-id"]!=a||(l.push(h),!1)});var d=l.length>0;l.forEach(function(h){s.removeConnectorLineElement(h)}),l=this.gridLayoutCalculator.updateTileToConnectorLinesMap(a),(d||p)&&l.forEach(function(h){s.createConnectorLineElement(h),s.renderedConnectorLines.push(h)})},g.prototype.recreateConnectorLineElements=function(){var a=this,p=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainerScrollTop);c.RenderElementUtils.recreate(this.renderedConnectorLines,p,function(s){a.removeConnectorLineElement(s)},function(s){a.createConnectorLineElement(s)}),this._renderedConnectorLines=p},g.prototype.updateRenderedConnectorLinesId=function(a,p){for(var s in this._renderedConnectorLines.forEach(function(d){d.attr["dependency-id"]===a&&(d.attr["dependency-id"]=p)}),this.connectorLinesToElementsMap)if(Object.prototype.hasOwnProperty.call(this.connectorLinesToElementsMap,s)){var l=this.connectorLinesToElementsMap[s];l.getAttribute("dependency-id")===a&&l.setAttribute("dependency-id",p)}this.gridLayoutCalculator.updateTileToConnectorLinesMap(a),this.gridLayoutCalculator.updateTileToConnectorLinesMap(p)},g}();u.ConnectorLinesRender=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EtalonsHelper=void 0;var c=o(3),I=o(4),C=o(58),g=o(16),a=function(){function p(s){this._renderHelper=s}return Object.defineProperty(p.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),p.prototype.getScaleItemTextTemplate=function(s){return this._renderHelper.getScaleItemTextTemplate(s)},p.prototype.getHeaderHeight=function(){return this._renderHelper.getHeaderHeight()},p.prototype.getSmallTaskWidth=function(s){return this._renderHelper.getSmallTaskWidth(s)},p.prototype.createEtalonElementsContainer=function(){var s=document.createElement("DIV");return s.style.visibility="hidden",s.style.position="absolute",s.style.left="-1000px",this.mainElement.appendChild(s),s},p.prototype.createEtalonElements=function(s){var l=[],d=g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,s),h=g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task"),null,d);g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,h).innerText="WWW",l.push(d);var v=g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,s);g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,v),l.push(v);for(var x=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],b=0;b<x.length;b++){var y=new C.GridElementInfo(x[b]);l.push(g.RenderElementUtils.create(y,null,s))}var E=g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskWrapper"),null,s),S=g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-task dx-gantt-parent"),null,E);return g.RenderElementUtils.create(new C.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,S).innerText="WWW",l.push(E),l},p.prototype.calculateEtalonSizeValues=function(){var s=this.createEtalonElementsContainer(),l=this.createEtalonElements(s);this.calculateEtalonSizeValuesCore(l),this.mainElement.removeChild(s)},p.prototype.calculateEtalonSizeValuesCore=function(s){this.etalonSizeValues.taskHeight=s[0].firstChild.offsetHeight,this.etalonSizeValues.milestoneWidth=s[1].firstChild.offsetWidth,this.etalonSizeValues.taskWrapperTopPadding=c.DomUtils.pxToInt(c.DomUtils.getCurrentStyle(s[0]).paddingTop),this.etalonSizeValues.connectorLineThickness=c.DomUtils.getVerticalBordersWidth(s[2]),this.etalonSizeValues.connectorArrowWidth=c.DomUtils.getHorizontalBordersWidth(s[3]);for(var l=0;l<=I.ViewType.Years;l++)s[4].innerText=this.getScaleItemTextTemplate(l),this.etalonSizeValues.scaleItemWidths[l]=s[4].offsetWidth;this.etalonSizeValues.smallTaskWidth=this.getSmallTaskWidth(c.DomUtils.getCurrentStyle(s[0].firstChild.firstChild).paddingLeft),this.etalonSizeValues.outsideTaskTextDefaultWidth=c.DomUtils.pxToFloat(c.DomUtils.getCurrentStyle(s[5]).width),this.etalonSizeValues.scaleItemHeight=this.getHeaderHeight()/this.scaleCount,this.etalonSizeValues.parentTaskHeight=s[s.length-1].firstChild.offsetHeight},p}();u.EtalonsHelper=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EtalonSizeValues=void 0,u.EtalonSizeValues=function(){this.scaleItemWidths={}}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.NoWorkingIntervalRender=void 0;var c=o(16),I=function(){function C(g){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[],this._renderHelper=g}return Object.defineProperty(C.prototype,"noWorkingIntervalsToElementsMap",{get:function(){return this._noWorkingIntervalsToElementsMap},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"renderedNoWorkingIntervals",{get:function(){return this._renderedNoWorkingIntervals},set:function(g){this._renderedNoWorkingIntervals=g},enumerable:!1,configurable:!0}),C.prototype.reset=function(){this._noWorkingIntervalsToElementsMap={},this._renderedNoWorkingIntervals=[]},C.prototype.createNoWorkingIntervalElement=function(g){return c.RenderElementUtils.create(g,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},C.prototype.removeNoWorkingIntervalElement=function(g){c.RenderElementUtils.remove(g,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},C.prototype.recreateNoWorkingIntervalElements=function(){var g=this,a=this.gridLayoutCalculator.getRenderedNoWorkingIntervals(this.taskAreaContainerScrollLeft);c.RenderElementUtils.recreate(this.renderedNoWorkingIntervals,a,function(p){g.removeNoWorkingIntervalElement(p)},function(p){g.createNoWorkingIntervalElement(p)}),this.renderedNoWorkingIntervals=a},C}();u.NoWorkingIntervalRender=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourseRender=void 0;var c=o(16),I=function(){function C(g){this._resourcesElements=[],this._renderHelper=g}return Object.defineProperty(C.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"resourcesElements",{get:function(){return this._resourcesElements},enumerable:!1,configurable:!0}),C.prototype.getViewItem=function(g){return this._renderHelper.getViewItem(g)},C.prototype.getTaskResourcesVisibility=function(g){return this._renderHelper.getTaskResourcesVisibility(g)},C.prototype.createResources=function(g){for(var a=this.getViewItem(g).resources.items,p=0;p<a.length;p++)this.createResourceElement(g,a[p])},C.prototype.createResourcesWrapperElement=function(g){var a=this.gridLayoutCalculator.getTaskResourcesWrapperElementInfo(g);c.RenderElementUtils.create(a,g,this.taskArea,this.resourcesElements),this.resourcesElements[g].style.display=this.getTaskResourcesVisibility(g)?"":"none"},C.prototype.createResourceElement=function(g,a){var p=this.gridLayoutCalculator.getTaskResourceElementInfo();a.color&&(p.style.backgroundColor=a.color);var s=c.RenderElementUtils.create(p,g,this.resourcesElements[g]);s.innerText=a.text,this.gridLayoutCalculator.checkAndCorrectElementDisplayByRange(s)},C}();u.ResourseRender=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ScaleRender=void 0;var c=o(3),I=o(4),C=o(15),g=o(164),a=o(16),p=function(){function s(l){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=new Array,this._renderHelper=l}return Object.defineProperty(s.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"timeScaleContainer",{get:function(){return this._timeScaleContainer},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"range",{get:function(){return this._renderHelper.range},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"viewType",{get:function(){return this._renderHelper.viewType},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"timeScaleAreas",{get:function(){return this._timeScaleAreas},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleElements",{get:function(){return this._scaleElements},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleBorders",{get:function(){return this._scaleBorders},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"renderedScaleItemIndices",{get:function(){return this._renderedScaleItemIndices},enumerable:!1,configurable:!0}),s.prototype.getScaleItemText=function(l,d){return this._renderHelper.getScaleItemText(l,d)},s.prototype.getTaskAreaWidth=function(){return this._renderHelper.getTaskAreaWidth()},s.prototype.reset=function(){this._scaleBorders=[],this._scaleElements=[],this._renderedScaleItemIndices=[],this._timeScaleAreas=[],this._timeScaleContainer.innerHTML=""},s.prototype.setTimeScaleContainerScrollLeft=function(l){this._timeScaleContainer.scrollLeft=l},s.prototype.createTimeScaleContainer=function(l){var d=document.createElement("DIV");d.className="dx-gantt-tsac",d.style.height=this.etalonSizeValues.scaleItemHeight*this.scaleCount+"px",this._timeScaleContainer=d,l.appendChild(this.timeScaleContainer)},s.prototype.createTimeScaleArea=function(){var l=document.createElement("DIV");return l.className="dx-gantt-tsa",l.style.width=this.getTaskAreaWidth()+"px",l.style.height=this.etalonSizeValues.scaleItemHeight+"px",this.timeScaleContainer.appendChild(l),this.timeScaleAreas.unshift(l),l},s.prototype.createTimeScaleAreas=function(){for(var l=0;l<this.scaleCount;l++)this.createTimeScaleArea()},s.prototype.createScaleElementCore=function(l,d,h,v){return v[h]||(v[h]=[]),a.RenderElementUtils.create(d,l,this.timeScaleAreas[h],v[h])},s.prototype.createScaleElement=function(l,d,h,v){var x=this._renderHelper.getTextWidth("a"),b=this.createScaleElementCore(l,v,d,this.scaleElements);if(b.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px",v?.size.width>5*x){var y=this.getScaleItemText(l,h);b.innerText=y,h===I.ViewType.Quarter&&(b.style.padding="0");var E=getComputedStyle(b);v.size.width-c.DomUtils.pxToInt(E.paddingLeft)-c.DomUtils.pxToInt(E.paddingRight)<this._renderHelper.getTextWidth(y)&&(b.title=y)}return b},s.prototype.createScaleBorder=function(l,d,h){var v=this.gridLayoutCalculator.getScaleBorderInfo(l,h);return this.createScaleElementCore(l,v,d,this.scaleBorders)},s.prototype.createScaleElementAndBorder=function(l,d,h){var v=this.gridLayoutCalculator.getScaleElementInfo(l,h),x=this.createScaleElement(l,d,h,v),b=this.createScaleBorder(l,d,h);this.onScaleCellPrepared(h,d,x,b,v.additionalInfo.range)},s.prototype.removeScaleElementAndBorder=function(l,d){a.RenderElementUtils.remove(null,l,this.timeScaleAreas[d],this.scaleElements[d]),a.RenderElementUtils.remove(null,l,this.timeScaleAreas[d],this.scaleBorders[d])},s.prototype.recreateScalesElements=function(){this.recreateScaleElements(this.viewType,0),this.recreateScaleElements(C.DateUtils.ViewTypeToScaleMap[this.viewType],1)},s.prototype.recreateScaleElements=function(l,d){var h=this,v=this.gridLayoutCalculator.getRenderedScaleItemIndices(l,this.renderedColIndices);a.RenderElementUtils.recreate(this.renderedScaleItemIndices[l-this.viewType]||[],v,function(b){h.removeScaleElementAndBorder(b,d)},function(b){h.createScaleElementAndBorder(b,d,l)}),this.renderedScaleItemIndices[l-this.viewType]=v},Object.defineProperty(s.prototype,"dispatcher",{get:function(){return this._renderHelper.dispatcher},enumerable:!1,configurable:!0}),s.prototype.onScaleCellPrepared=function(l,d,h,v,x){var b=new g.ScaleCellPreparedArguments({scaleType:l,scaleIndex:d,range:x,scaleElement:h,separatorElement:v});this.dispatcher.notifyScaleCellPrepared(b)},s}();u.ScaleRender=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ScaleCellPreparedArguments=void 0;var c=function(){function I(C){this.info=C}return Object.defineProperty(I.prototype,"scaleIndex",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.scaleIndex},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scaleType",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.scaleType},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"start",{get:function(){var C,g;return null===(g=null===(C=this.info)||void 0===C?void 0:C.range)||void 0===g?void 0:g.start},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"end",{get:function(){var C,g;return null===(g=null===(C=this.info)||void 0===C?void 0:C.range)||void 0===g?void 0:g.end},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scaleElement",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.scaleElement},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"separatorElement",{get:function(){var C;return null===(C=this.info)||void 0===C?void 0:C.separatorElement},enumerable:!1,configurable:!0}),I}();u.ScaleCellPreparedArguments=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.StripLinesRender=void 0;var c=o(16),I=function(){function C(g){this._stripLinesMap=[],this._renderedStripLines=[],this._renderHelper=g}return Object.defineProperty(C.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"stripLinesMap",{get:function(){return this._stripLinesMap},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"renderedStripLines",{get:function(){return this._renderedStripLines},set:function(g){this._renderedStripLines=g},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"stripLines",{get:function(){return this._renderHelper.stripLines},enumerable:!1,configurable:!0}),C.prototype.reset=function(){this._renderedStripLines=[]},C.prototype.recreateStripLines=function(){var g=this,a=this.gridLayoutCalculator.getRenderedStripLines(this.stripLines);c.RenderElementUtils.recreate(this.renderedStripLines,a,function(p){c.RenderElementUtils.remove(p,null,g.taskArea,g.stripLinesMap)},function(p){return c.RenderElementUtils.create(p,null,g.taskArea,g.stripLinesMap)}),this.renderedStripLines=a},C}();u.StripLinesRender=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaManager=u.TOUCH_ACTION_NONE=void 0;var c=o(10),I=o(3),C=o(9),g=o(168);u.TOUCH_ACTION_NONE="dx-gantt-touch-action";var a=function(){function p(s,l,d){this._eventListener=s,this._taskArea=l,this._cellSize=d,this.attachEvents()}return p.prototype.attachEvents=function(){window.PointerEvent?this.attachPointerEvents():c.Browser.TouchUI?this.attachTouchEvents():this.attachMouseEvents(),this.attachCommonEvents()},p.prototype.detachEvents=function(){window.PointerEvent?this.detachPointerEvents():c.Browser.TouchUI?this.detachTouchEvents():this.detachMouseEvents(),this.detachCommonEvents()},p.prototype.attachEventsOnTask=function(s){window.PointerEvent?s?.addEventListener("pointerenter",this.onTaskPointerEnterHandler):c.Browser.TouchUI?s?.addEventListener("touchstart",this.onTaskTouchStartHandler):(s?.addEventListener("mouseenter",this.onTaskMouseEnterHandler),s?.addEventListener("mouseleave",this.onTaskMouseLeaveHandler))},p.prototype.detachEventsOnTask=function(s){window.PointerEvent?s?.removeEventListener("pointerenter",this.onTaskPointerEnterHandler):c.Browser.TouchUI?s?.removeEventListener("touchstart",this.onTaskTouchStartHandler):(s?.removeEventListener("mouseenter",this.onTaskMouseEnterHandler),s?.removeEventListener("mouseleave",this.onTaskMouseLeaveHandler))},p.prototype.attachCommonEvents=function(){this.taskAreaAddEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaAddEventListener(C.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaAddEventListener("scroll",this.onScrollHandler),document.addEventListener("keydown",this.onKeyDownHandler)},p.prototype.detachCommonEvents=function(){this.taskAreaRemoveEventListener("contextmenu",this.onContextMenuHandler),this.taskAreaRemoveEventListener(C.EvtUtils.getMouseWheelEventName(),this.onMouseWheelHandler),this.taskAreaRemoveEventListener("scroll",this.onScrollHandler),document.removeEventListener("keydown",this.onKeyDownHandler)},p.prototype.attachPointerEvents=function(){I.DomUtils.addClassName(this.taskArea,u.TOUCH_ACTION_NONE),document.addEventListener("pointerdown",this.onDocumentPointerDownHandler),document.addEventListener("pointerup",this.onDocumentPointerUpHandler),document.addEventListener("pointermove",this.onDocumentPointerMoveHandler),document.addEventListener("pointercancel",this.onDocumentPointerCancelUpHandler),this.taskAreaAddEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler)},p.prototype.detachPointerEvents=function(){document.removeEventListener("pointerdown",this.onDocumentPointerDownHandler),document.removeEventListener("pointerup",this.onDocumentPointerUpHandler),document.removeEventListener("pointermove",this.onDocumentPointerMoveHandler),document.removeEventListener("pointercancel ",this.onDocumentPointerCancelUpHandler),this.taskAreaRemoveEventListener("pointerleave",this.onTaskAreaPointerLeaveHandler),I.DomUtils.removeClassName(this.taskArea,u.TOUCH_ACTION_NONE)},p.prototype.attachTouchEvents=function(){I.DomUtils.addClassName(this.taskArea,u.TOUCH_ACTION_NONE),document.addEventListener("touchstart",this.onTouchStartHandler),document.addEventListener("touchend",this.onTouchEndHandler),document.addEventListener("touchmove",this.onTouchMoveHandler)},p.prototype.detachTouchEvents=function(){document.removeEventListener("touchstart",this.onTouchStartHandler),document.removeEventListener("touchend",this.onTouchEndHandler),document.removeEventListener("touchmove",this.onTouchMoveHandler),I.DomUtils.removeClassName(this.taskArea,u.TOUCH_ACTION_NONE)},p.prototype.attachMouseEvents=function(){this.taskAreaAddEventListener("click",this.onMouseClickHandler),this.taskAreaAddEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaAddEventListener("mousedown",this.onMouseDownHandler),this.taskAreaAddEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),document.addEventListener("mousemove",this.onMouseMoveHandler),document.addEventListener("mouseup",this.onMouseUpHandler)},p.prototype.detachMouseEvents=function(){this.taskAreaRemoveEventListener("click",this.onMouseClickHandler),this.taskAreaRemoveEventListener("dblclick",this.onMouseDblClickHandler),this.taskAreaRemoveEventListener("mouseleave",this.onTaskAreaMouseLeaveHandler),this.taskAreaRemoveEventListener("mousedown",this.onMouseDownHandler),document.removeEventListener("mousemove",this.onMouseMoveHandler),document.removeEventListener("mouseup",this.onMouseUpHandler)},Object.defineProperty(p.prototype,"stateController",{get:function(){var s;return null!==(s=this._stateController)&&void 0!==s||(this._stateController=new g.TaskAreaStateController(this._eventListener,this._taskArea,this._cellSize)),this._stateController},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),p.prototype.taskAreaAddEventListener=function(s,l){this.taskArea.addEventListener(s,l)},p.prototype.taskAreaRemoveEventListener=function(s,l){this.taskArea.removeEventListener(s,l)},Object.defineProperty(p.prototype,"onContextMenuHandler",{get:function(){var s,l=this;return null!==(s=this._onContextMenuHandler)&&void 0!==s||(this._onContextMenuHandler=function(d){l.stateController.onContextMenu(d)}),this._onContextMenuHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseWheelHandler",{get:function(){var s,l=this;return null!==(s=this._onMouseWheelHandler)&&void 0!==s||(this._onMouseWheelHandler=function(d){l.stateController.onMouseWheel(d)}),this._onMouseWheelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onScrollHandler",{get:function(){var s,l=this;return null!==(s=this._onScrollHandler)&&void 0!==s||(this._onScrollHandler=function(d){l.stateController.onScroll(d)}),this._onScrollHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onKeyDownHandler",{get:function(){var s,l=this;return null!==(s=this._onKeyDownHandler)&&void 0!==s||(this._onKeyDownHandler=function(d){l.stateController.onKeyDown(d)}),this._onKeyDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskPointerEnterHandler",{get:function(){var s,l=this;return null!==(s=this._onTaskPointerEnterHandler)&&void 0!==s||(this._onTaskPointerEnterHandler=function(d){l.stateController.onTaskPointerEnter(d)}),this._onTaskPointerEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskAreaPointerLeaveHandler",{get:function(){var s,l=this;return null!==(s=this._onTaskAreaPointerLeaveHandler)&&void 0!==s||(this._onTaskAreaPointerLeaveHandler=function(d){l.stateController.onTaskAreaPointerLeave(d)}),this._onTaskAreaPointerLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerDownHandler",{get:function(){var s,l=this;return null!==(s=this._onDocumentPointerDownHandler)&&void 0!==s||(this._onDocumentPointerDownHandler=function(d){l.stateController.onDocumentPointerDown(d)}),this._onDocumentPointerDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerUpHandler",{get:function(){var s,l=this;return null!==(s=this._onDocumentPointerUpHandler)&&void 0!==s||(this._onDocumentPointerUpHandler=function(d){l.stateController.onDocumentPointerUp(d)}),this._onDocumentPointerUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerCancelUpHandler",{get:function(){var s,l=this;return null!==(s=this._onDocumentPointerCancelHandler)&&void 0!==s||(this._onDocumentPointerCancelHandler=function(d){l.stateController.onDocumentPointerCancel(d)}),this._onDocumentPointerCancelHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onDocumentPointerMoveHandler",{get:function(){var s,l=this;return null!==(s=this._onDocumentPointerMoveHandler)&&void 0!==s||(this._onDocumentPointerMoveHandler=function(d){l.stateController.onDocumentPointerMove(d)}),this._onDocumentPointerMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchStartHandler",{get:function(){var s,l=this;return null!==(s=this._onTouchStartHandler)&&void 0!==s||(this._onTouchStartHandler=function(d){l.stateController.onTouchStart(d)}),this._onTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchEndHandler",{get:function(){var s,l=this;return null!==(s=this._onTouchEndHandler)&&void 0!==s||(this._onTouchEndHandler=function(d){l.stateController.onTouchEnd(d)}),this._onTouchEndHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTouchMoveHandler",{get:function(){var s,l=this;return null!==(s=this._onTouchMoveHandler)&&void 0!==s||(this._onTouchMoveHandler=function(d){l.stateController.onTouchMove(d)}),this._onTouchMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskTouchStartHandler",{get:function(){var s,l=this;return null!==(s=this._onTaskTouchStartHandler)&&void 0!==s||(this._onTaskTouchStartHandler=function(d){l.stateController.onTaskTouchStart(d)}),this._onTaskTouchStartHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseClickHandler",{get:function(){var s,l=this;return null!==(s=this._onMouseClickHandler)&&void 0!==s||(this._onMouseClickHandler=function(d){l.stateController.onClick(d)}),this._onMouseClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseDblClickHandler",{get:function(){var s,l=this;return null!==(s=this._onMouseDblClickHandler)&&void 0!==s||(this._onMouseDblClickHandler=function(d){l.stateController.onDblClick(d)}),this._onMouseDblClickHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseDownHandler",{get:function(){var s,l=this;return null!==(s=this._onMouseDownHandler)&&void 0!==s||(this._onMouseDownHandler=function(d){l.stateController.onMouseDown(d)}),this._onMouseDownHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskAreaMouseLeaveHandler",{get:function(){var s,l=this;return null!==(s=this._onTaskAreaMouseLeaveHandler)&&void 0!==s||(this._onTaskAreaMouseLeaveHandler=function(d){l.stateController.onTaskAreaMouseLeave(d)}),this._onTaskAreaMouseLeaveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseMoveHandler",{get:function(){var s,l=this;return null!==(s=this._onMouseMoveHandler)&&void 0!==s||(this._onMouseMoveHandler=function(d){l.stateController.onMouseMove(d)}),this._onMouseMoveHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onMouseUpHandler",{get:function(){var s,l=this;return null!==(s=this._onMouseUpHandler)&&void 0!==s||(this._onMouseUpHandler=function(d){l.stateController.onMouseUp(d)}),this._onMouseUpHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskMouseEnterHandler",{get:function(){var s,l=this;return null!==(s=this._onTaskMouseEnterHandler)&&void 0!==s||(this._onTaskMouseEnterHandler=function(d){l.stateController.onTaskElementHover(d)}),this._onTaskMouseEnterHandler},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"onTaskMouseLeaveHandler",{get:function(){var s,l=this;return null!==(s=this._onTaskMouseLeaveHandler)&&void 0!==s||(this._onTaskMouseLeaveHandler=function(d){l.stateController.onTaskElementLeave(d)}),this._onTaskMouseLeaveHandler},enumerable:!1,configurable:!0}),p.DBLCLICK_INTERVAL=300,p.MS_POINTER_ACTIVE_CLASS="ms-pointer-active",p}();u.TaskAreaManager=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TouchUtils=void 0;var c=o(10),I=o(1),C=function(){function g(){}return g.onEventAttachingToDocument=function(a,p){return!c.Browser.MacOSMobilePlatform||!g.isTouchEventName(a)||(g.documentTouchHandlers[a]||(g.documentTouchHandlers[a]=[]),g.documentTouchHandlers[a].push(p),g.documentEventAttachingAllowed)},g.isTouchEventName=function(a){return c.Browser.WebKitTouchUI&&(a.indexOf("touch")>-1||a.indexOf("gesture")>-1)},g.isTouchEvent=function(a){return c.Browser.WebKitTouchUI&&I.isDefined(a.changedTouches)},g.getEventX=function(a){return c.Browser.IE?a.pageX:a.changedTouches[0].pageX},g.getEventY=function(a){return c.Browser.IE?a.pageY:a.changedTouches[0].pageY},g.touchMouseDownEventName=c.Browser.WebKitTouchUI?"touchstart":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",g.touchMouseUpEventName=c.Browser.WebKitTouchUI?"touchend":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",g.touchMouseMoveEventName=c.Browser.WebKitTouchUI?"touchmove":c.Browser.Edge&&c.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",g.msTouchDraggableClassName="dxMSTouchDraggable",g.documentTouchHandlers={},g.documentEventAttachingAllowed=!0,g}();u.TouchUtils=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaStateController=void 0;var c=o(5),I=o(3),C=o(9),g=o(46),a=o(4),p=o(170),s=o(173),l=o(29),d=o(174),h=o(13),v=o(175),x=o(177),b=o(178),y=function(){function E(S,O,w){var T=this;this.position=new c.Point(-1,-1),this._pointers={},this._listener=S,this._listener.setHandler(h.TaskAreaStateEventNames.STATE_EXIT,function(){T.switchToDefaultState()}),this._listener.setHandler(h.TaskAreaStateEventNames.GET_POINTERS_INFO,function(k){return T.getPointersInfo(k.triggerEvent)}),this._taskArea=O,this._cellSize=w,this.switchToDefaultState()}return E.prototype.onKeyDown=function(S){this._state.onKeyDown(S)},E.prototype.onScroll=function(S){this._state.onScroll(S)},E.prototype.onContextMenu=function(S){this._state.onContextMenu(S)},E.prototype.onMouseWheel=function(S){S.ctrlKey&&(S.preventDefault(),S.stopPropagation(),this.switchState(v.TaskAreaZoomState)),this._state.onMouseWheel(S)},Object.defineProperty(E.prototype,"currentState",{get:function(){return this._state},enumerable:!1,configurable:!0}),E.prototype.onTaskPointerEnter=function(S){this._state.onTaskPointerEnter(S)},E.prototype.onTaskAreaPointerLeave=function(S){this._state.onTaskAreaLeave(S)},E.prototype.onDocumentPointerCancel=function(S){this._clearPointerInfo(S)},E.prototype.onDocumentPointerDown=function(S){this._updatePinterInfo(S),this.toggleStateOnPointerDown(S),this._state.onDocumentPointerDown(S)},E.prototype.onDocumentPointerMove=function(S){this._updatePinterInfo(S),this.toggleStateOnPointerMove(S),this._state.onDocumentPointerMove(S)},E.prototype.onDocumentPointerUp=function(S){this._clearPointerInfo(S),this._state.onDocumentPointerUp(S)},E.prototype.onTaskTouchStart=function(S){this._state.onTaskTouchStart(S)},E.prototype.onTouchStart=function(S){this.toggleStateOnPointerDown(S),this._state.onTouchStart(S)},E.prototype.onTouchEnd=function(S){this._state.onTouchEnd(S)},E.prototype.onTouchMove=function(S){this.toggleStateOnPointerMove(S),this._state.onTouchMove(S)},E.prototype.onClick=function(S){this._state.onClick(S)},E.prototype.onDblClick=function(S){this._state.onDblClick(S)},E.prototype.onTaskAreaMouseLeave=function(S){this._state.onTaskAreaLeave(S)},E.prototype.onTaskElementHover=function(S){this._state.onTaskHover(S)},E.prototype.onTaskElementLeave=function(S){this._state.onTaskLeave(S)},E.prototype.onMouseUp=function(S){this._state.onMouseUp(S)},E.prototype.onMouseMove=function(S){this._state.onMouseMove(S)},E.prototype.onMouseDown=function(S){switch(this.getTaskAreaEventSource(S)){case a.TaskAreaEventSource.TaskArea:this.processMouseDownOnTaskArea(S);break;case a.TaskAreaEventSource.TaskEdit_Frame:this.switchState(b.TaskMoveState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(x.TaskEditState);break;case a.TaskAreaEventSource.TaskEdit_DependencyStart:case a.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(s.TaskAreaDependencyState)}this._state.onMouseDown(S)},Object.defineProperty(E.prototype,"taskArea",{get:function(){return this._taskArea},enumerable:!1,configurable:!0}),E.prototype.switchToDefaultState=function(){this._state=new p.TaskAreaDefaultState(this._listener,this.taskArea,this._cellSize)},E.prototype.switchState=function(S){this._state instanceof S||(this._state&&this._state.finish(),this._state=new S(this._listener,this.taskArea,this._cellSize),this._state.start())},E.prototype.processMouseDownOnTaskArea=function(S){C.EvtUtils.isLeftButtonPressed(S)&&!l.TaskAreaDomHelper.isConnectorLine(S)&&this.switchState(d.TaskAreaScrollState)},E.prototype.toggleStateOnPointerDown=function(S){var O=this.toggleStateWhenMultiOrOutsideTouch(S);if(this.position=new c.Point(C.EvtUtils.getEventX(S),C.EvtUtils.getEventY(S)),!O&&this._canStartDrag(S))switch(this.getTaskAreaEventSource(S)){case a.TaskAreaEventSource.TaskEdit_DependencyStart:case a.TaskAreaEventSource.TaskEdit_DependencyFinish:this.switchState(s.TaskAreaDependencyState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(x.TaskEditState)}},E.prototype.toggleStateOnPointerMove=function(S){var O=this.toggleStateWhenMultiOrOutsideTouch(S),w=Math.abs(this.position.x-C.EvtUtils.getEventX(S))>1||Math.abs(this.position.y-C.EvtUtils.getEventY(S))>1;if(!O&&w&&this._canStartDrag(S)&&this._state instanceof p.TaskAreaDefaultState)switch(this.getTaskAreaEventSource(S)){case a.TaskAreaEventSource.TaskArea:this.checkEventInTaskEditFrameArea(S)?this.switchState(b.TaskMoveState):this.switchState(d.TaskAreaScrollState);break;case a.TaskAreaEventSource.TaskEdit_Frame:this.isTaskUpdateDisabled()?this.switchState(d.TaskAreaScrollState):this.switchState(b.TaskMoveState);break;case a.TaskAreaEventSource.TaskEdit_Progress:case a.TaskAreaEventSource.TaskEdit_Start:case a.TaskAreaEventSource.TaskEdit_End:this.switchState(x.TaskEditState)}},E.prototype.toggleStateWhenMultiOrOutsideTouch=function(S){var O=this._getActivePointersCount(S),w=!this.isInTaskArea(S),T=O>=2||w;return O>2||w?this.switchState(p.TaskAreaDefaultState):2===O&&this.switchState(v.TaskAreaZoomState),T},E.prototype.checkEventInTaskEditFrameArea=function(S){var O,w,T=this.getTaskEditFrameElement();if(this.isTaskUpdateDisabled()||!T)return!1;var k=S?.clientX||(null===(O=S?.touches[0])||void 0===O?void 0:O.clientX),R=S?.clientY||(null===(w=S?.touches[0])||void 0===w?void 0:w.clientY),P=T.getBoundingClientRect();return k>=P.left&&k<=P.left+P.width&&R>=P.top&&R<=P.top+P.height},E.prototype.isTaskUpdateDisabled=function(){return"false"===this._taskArea.getAttribute("task-edit-enabled")},E.prototype.isInTaskArea=function(S){return I.DomUtils.isItParent(this._taskArea,C.EvtUtils.getEventSource(S))},E.prototype.getTaskEditFrameElement=function(){return this._taskArea.getElementsByClassName(g.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME)[0]},E.prototype._updatePinterInfo=function(S){this._pointers[S.pointerId]={pageX:S.pageX,pageY:S.pageY,pointerType:S.pointerType}},E.prototype._clearPointerInfo=function(S){delete this._pointers[S.pointerId]},E.prototype.isTouchEvent=function(S){return l.TaskAreaDomHelper.isTouchEvent(S)},E.prototype.isPointerEvent=function(S){return l.TaskAreaDomHelper.isPointerEvent(S)},E.prototype._getActivePointersCount=function(S){var O=this;return this.isTouchEvent(S)?S.touches.length:Object.keys(this._pointers).filter(function(w){return O._pointers[w].pointerType===S.pointerType}).length},E.prototype.getPointersInfo=function(S){var O=this,w=S?.pointerType,T=Object.keys(this._pointers).map(function(k){return O._pointers[k]});return w&&(T=T.filter(function(k){return k.pointerType===w})),T},E.prototype._canStartDrag=function(S){return!(this._getActivePointersCount(S)>1||l.TaskAreaDomHelper.isMousePointer(S)&&1!==S.buttons||l.TaskAreaDomHelper.isConnectorLine(S))},E.prototype.getTaskAreaEventSource=function(S){return l.TaskAreaDomHelper.getEventSource(C.EvtUtils.getEventSource(S))},E}();u.TaskAreaStateController=y},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditTooltip=void 0;var c=o(3),I=function(){function C(g,a,p){this.parentElement=g,this.cultureInfo=p,this.tooltipSettings=a}return Object.defineProperty(C.prototype,"baseElement",{get:function(){return this._baseElement||this.createTooltipContainer(),this._baseElement},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"headerHeight",{get:function(){return this.tooltipSettings.getHeaderHeight},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskProgressTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskProgressTooltipContentTemplate},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"taskTimeTooltipContentTemplate",{get:function(){return this.tooltipSettings.getTaskTimeTooltipContentTemplate},enumerable:!1,configurable:!0}),C.prototype.destroyTemplate=function(g){this.tooltipSettings.destroyTemplate(g)},C.prototype.formatDate=function(g){return this.tooltipSettings.formatDate(g)},C.prototype.createTooltipContainer=function(){this._baseElement=document.createElement("DIV"),this._baseElement.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS,this.parentElement.appendChild(this._baseElement)},C.prototype.setDefaultTooltip=function(g){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT;var a=document.createElement("DIV");a.className=C.CLASSNAMES.TASK_EDIT_TASK_TITLE;var p=document.createElement("SPAN");if(a.appendChild(p),this.defaultTooltip.appendChild(a),p.innerText=g.title,this.defaultTooltip.appendChild(this.getTimeContent(g.start,g.end)),!isNaN(g.progress)){var s=document.createElement("DIV");s.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var l=document.createElement("SPAN"),d=document.createElement("SPAN");s.appendChild(l),s.appendChild(d),this.defaultTooltip.appendChild(s),l.innerText=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",d.innerText=g.progress+"%"}this.baseElement.appendChild(this.defaultTooltip)},C.prototype.setDefaultProgressTooltip=function(g){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.innerText=g+"%",this.baseElement.appendChild(this.defaultTooltip)},C.prototype.setDefaultTimeTooltip=function(g,a){this.defaultTooltip=document.createElement("DIV"),this.defaultTooltip.className=C.CLASSNAMES.TASK_EDIT_TOOLTIP_DEFAULT,this.defaultTooltip.appendChild(this.getTimeContent(g,a)),this.baseElement.appendChild(this.defaultTooltip)},C.prototype.showInfo=function(g,a,p){var s=this;void 0===p&&(p=0);var l=this.taskTooltipContentTemplate;this.destroyTemplate(this.baseElement),l?l(this.baseElement,g,function(){s.showTooltip(a,!1,p)}):(this.setDefaultTooltip(g),this.showTooltip(a,!1,p))},C.prototype.showProgress=function(g,a){var p=this,s=this.taskProgressTooltipContentTemplate;this.destroyTemplate(this.baseElement),s?s(this.baseElement,{progress:g},function(){p.showTooltip(a)}):(this.setDefaultProgressTooltip(g),this.show(a))},C.prototype.showTime=function(g,a,p){var s=this,l=this.taskTimeTooltipContentTemplate;this.destroyTemplate(this.baseElement),l?l(this.baseElement,{start:g,end:a},function(){s.showTooltip(p)}):(this.setDefaultTimeTooltip(g,a),this.show(p))},C.prototype.showTooltip=function(g,a,p){var s,l=this;if(void 0===a&&(a=!0),void 0===p&&(p=0),null===(s=this.baseElement)||void 0===s?void 0:s.innerHTML){var d=function(){l.show(g,a)};p?this.timerId=setTimeout(d,p):d()}},C.prototype.show=function(g,a){var p,s,l,d,h=this;void 0===a&&(a=!0),null===(p=this.defaultTooltip)||void 0===p||p.classList.remove(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER),null===(s=this.defaultTooltip)||void 0===s||s.classList.remove(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.display="block";var v=c.DomUtils.getAbsolutePositionY(this.parentElement),x=g-c.DomUtils.getAbsolutePositionX(this.parentElement)-10,b=v-this.headerHeight-c.DomUtils.getDocumentScrollTop()-15,E=-this.baseElement.clientHeight-5;this.baseElement.clientHeight>b||this.baseElement.clientHeight>this.parentElement.offsetTop?(E=this.parentElement.clientHeight+5,null===(l=this.defaultTooltip)||void 0===l||l.classList.add(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_AFTER)):null===(d=this.defaultTooltip)||void 0===d||d.classList.add(C.CLASSNAMES.TASK_EDIT_TOOLTIP_ARROW_BEFORE),this.baseElement.style.left=x+"px",this.baseElement.style.top=E+"px",a&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(function(){h.hide()},1500))},C.prototype.hide=function(){this.baseElement.style.display="none",this.destroyTemplate(this.baseElement),clearTimeout(this.timerId)},C.prototype.getTimeContent=function(g,a){var p=document.createElement("TABLE");p.className=C.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var s=document.createElement("TBODY");p.appendChild(s);var l=document.createElement("TR"),d=document.createElement("TD"),h=document.createElement("TD"),v=document.createElement("TR"),x=document.createElement("TD"),b=document.createElement("TD");return l.appendChild(d),l.appendChild(h),v.appendChild(x),v.appendChild(b),s.appendChild(l),s.appendChild(v),d.innerText=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",h.innerText=this.formatDate(g),x.innerText=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",b.innerText=this.formatDate(a),p},C.CLASSNAMES={TASK_EDIT_PROGRESS_STATUS:"dx-gantt-task-edit-tooltip",TASK_EDIT_TOOLTIP_DEFAULT:"dx-gantt-task-edit-tooltip-default",TASK_EDIT_TASK_TITLE:"dx-gantt-task-title",TASK_EDIT_PROGRESS_STATUS_TIME:"dx-gantt-status-time",TASK_EDIT_TOOLTIP_ARROW_BEFORE:"dx-gantt-task-edit-tooltip-before",TASK_EDIT_TOOLTIP_ARROW_AFTER:"dx-gantt-task-edit-tooltip-after"},C}();u.TaskEditTooltip=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaDefaultState=void 0;var c=o(0),I=o(9),C=o(29),g=o(30),a=o(13),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(l,s),l.prototype.finish=function(){this.clearTimers(),this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE)},l.prototype.onMouseDownInternal=function(d){this.onPointerDownBase(d)},l.prototype.onDocumentPointerDownInternal=function(d){this.onPointerDownBase(d)},l.prototype.onDocumentPointerUpInternal=function(d){this.onPointerUpBase(d)},l.prototype.onDocumentPointerMoveInternal=function(d){this.clearTimers()},l.prototype.onTouchStartInternal=function(d){this.onPointerDownBase(d)},l.prototype.onTouchEndInternal=function(d){this.onPointerUpBase(d)},l.prototype.onTouchMoveInternal=function(d){this.clearTimers()},l.prototype.onPointerDownBase=function(d){var h=this;d.preventDefault(),this._lastTouchRowIndex=this.getClickedRowIndex(d),(this.isPointerEvent(d)?C.TaskAreaDomHelper.isMousePointer(d):this.isMouseEvent(d))?this.changeSelectionOnTouchDown(d):(setTimeout(function(){C.TaskAreaDomHelper.isMousePointer(d)||h.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE,d),h.changeSelectionOnTouchDown(d)},0),clearTimeout(this._contextMenuTimer),this._contextMenuTimer=setTimeout(function(){return h.showContextMenuOnTouchDown(d)},l.defaultContextMenuTimeout))},l.prototype.onPointerUpBase=function(d){var h=this;if(clearTimeout(this._contextMenuTimer),d.preventDefault(),this.canToEmulateClick(d)){var v=this.getClickedRowIndex(d),x=new Date;if(this._lastEmulatedClickTime)x.getTime()-this._lastEmulatedClickTime.getTime()<l.defaultDblClickTimeout&&(this.raiseEvent(a.TaskAreaStateEventNames.TASK_AREA_DBLCLICK,d,v),delete this._lastEmulatedClickTime);else{var b=!this.raiseEvent(a.TaskAreaStateEventNames.TASK_AREA_CLICK,d,v);clearTimeout(this._dblClickClearTimer),C.TaskAreaDomHelper.isMousePointer(d)&&this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_HIDE,d),b||(this._lastEmulatedClickTime=x,this._dblClickClearTimer=setTimeout(function(){delete h._lastEmulatedClickTime},l.defaultDblClickClearTimeout))}}},l.prototype.canToEmulateClick=function(d){var h=!C.TaskAreaDomHelper.isConnectorLine(d)&&this.getClickedRowIndex(d)===this._lastTouchRowIndex;return h&&C.TaskAreaDomHelper.isMousePointer(d)&&h&&(h=2!==d.button),h},l.prototype.changeSelectionOnTouchDown=function(d){var h=C.TaskAreaDomHelper.isConnectorLine(d);h||this.raiseTaskSelection(d,this.getClickedRowIndex(d)),this.raiseDependencySelection(d,h?I.EvtUtils.getEventSource(d).getAttribute("dependency-id"):null)},l.prototype.showContextMenuOnTouchDown=function(d){var h=C.TaskAreaDomHelper.isConnectorLine(d);this.raiseEvent(a.TaskAreaStateEventNames.CONTEXTMENU_SHOW,d,this.getClickedRowIndex(d),{type:h?"dependency":"task"})},l.prototype.clearTimers=function(){clearTimeout(this._contextMenuTimer),clearTimeout(this._dblClickClearTimer),delete this._lastEmulatedClickTime},l.defaultContextMenuTimeout=3e3,l.defaultDblClickClearTimeout=(l.defaultDblClickTimeout=500)+100,l}(g.TaskAreaStateBase);u.TaskAreaDefaultState=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EncodeUtils=void 0;var c=function(){function I(){}return I.encodeHtml=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},I.decodeHtml=function(C){return C.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")},I.prepareTextForRequest=function(C){return C.replace(/%/g,"%25").replace(/&/g,"%26amp;").replace(/\+/g,"%2B").replace(/</g,"%26lt;").replace(/>/g,"%26gt;").replace(/"/g,"%26quot;")},I.prepareTextForCallBackRequest=function(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},I.decodeViaTextArea=function(C){var g=document.createElement("TEXTAREA");return g.innerHTML=C,g.value},I}();u.EncodeUtils=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaEventArgs=void 0;var c=o(1);u.TaskAreaEventArgs=function(C,g,a,p){this.rowIndex=-1,this.info={},this.eventName=C,this.triggerEvent=g,(0,c.isDefined)(a)&&(this.rowIndex=a),p&&(this.info=p)}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaDependencyState=u.dependencyMap=void 0;var c=o(0),I=o(5),C=o(3),g=o(9),a=o(23),p=o(4),s=o(29),l=o(30),d=o(13);u.dependencyMap=[],u.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart]=[],u.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish]=[],u.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart][p.TaskAreaEventSource.Successor_DependencyStart]=a.DependencyType.SS,u.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyStart][p.TaskAreaEventSource.Successor_DependencyFinish]=a.DependencyType.SF,u.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish][p.TaskAreaEventSource.Successor_DependencyStart]=a.DependencyType.FS,u.dependencyMap[p.TaskAreaEventSource.TaskEdit_DependencyFinish][p.TaskAreaEventSource.Successor_DependencyFinish]=a.DependencyType.FF;var h=function(v){function x(){return null!==v&&v.apply(this,arguments)||this}return c.__extends(x,v),x.prototype.onMouseUp=function(b){this.onDependencyEndByMouse(b)},x.prototype.onMouseDownInternal=function(b){this.onDependencyStart(b)},x.prototype.onMouseMoveInternal=function(b){this.onDependencyMoveStep(b)},x.prototype.onTouchStartInternal=function(b){this.onDependencyStart(b)},x.prototype.onTouchEndInternal=function(b){this.onDependencyEndByTouch(b)},x.prototype.onTouchMoveInternal=function(b){this.onDependencyMoveStep(b)},x.prototype.onDocumentPointerDownInternal=function(b){this.onDependencyStart(b)},x.prototype.onDocumentPointerUpInternal=function(b){this.onDependencyEndByTouch(b)},x.prototype.onDocumentPointerMoveInternal=function(b){this.onDependencyMoveStep(b)},x.prototype.onDependencyStart=function(b){var y=g.EvtUtils.getEventSource(b);this.source=s.TaskAreaDomHelper.getEventSource(y);var E=this.getRelativePos(new I.Point(C.DomUtils.getAbsolutePositionX(y)+y.clientWidth/2,C.DomUtils.getAbsolutePositionY(y)+y.clientHeight/2));this.raiseEvent(d.TaskAreaStateEventNames.DEPENDENCY_START,b,null,{pos:E})},x.prototype.onDependencyMoveStep=function(b){b.preventDefault();var y=this.getRelativePos(new I.Point(g.EvtUtils.getEventX(b),g.EvtUtils.getEventY(b)));this.raiseEvent(d.TaskAreaStateEventNames.DEPENDENCY_PROCESS,b,this.getClickedRowIndex(b),{pos:y})},x.prototype.onDependencyEndByMouse=function(b){var y=s.TaskAreaDomHelper.getEventSource(g.EvtUtils.getEventSource(b));this.processEndDependency(b,y===p.TaskAreaEventSource.Successor_DependencyStart||y===p.TaskAreaEventSource.Successor_DependencyFinish?u.dependencyMap[this.source][y]:null)},x.prototype.onDependencyEndByTouch=function(b){var y=this.raiseEvent(d.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS,b),E=this.getRelativePos(y.successorStart),S=this.getRelativePos(y.successorFinish),O=this.getRelativePos(new I.Point(g.EvtUtils.getEventX(b),g.EvtUtils.getEventY(b))),w=this.isTouchNearby(O,E)?p.TaskAreaEventSource.Successor_DependencyStart:this.isTouchNearby(O,S)?p.TaskAreaEventSource.Successor_DependencyFinish:null;this.processEndDependency(b,w===p.TaskAreaEventSource.Successor_DependencyStart||w===p.TaskAreaEventSource.Successor_DependencyFinish?u.dependencyMap[this.source][w]:null)},x.prototype.onTaskAreaLeaveInternal=function(b){this.processEndDependency(b,null)},x.prototype.processEndDependency=function(b,y){this.raiseEvent(d.TaskAreaStateEventNames.DEPENDENCY_END,b,null,{type:y}),this.raiseEvent(d.TaskAreaStateEventNames.STATE_EXIT,b)},x.prototype.isTouchNearby=function(b,y){return Math.abs(y.x-b.x)<=20&&Math.abs(y.y-b.y)<=20},x}(l.TaskAreaStateBase);u.TaskAreaDependencyState=h},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaScrollState=void 0;var c=o(0),I=o(30),C=o(13),g=function(a){function p(){var s=null!==a&&a.apply(this,arguments)||this;return s._isStarted=!1,s}return c.__extends(p,a),p.prototype.finish=function(){this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_END_MOVE,null)},p.prototype.onMouseUp=function(s){this.onEnd(s)},p.prototype.onMouseDownInternal=function(s){this.onBeforeStart(s)},p.prototype.onMouseMoveInternal=function(s){this.onMove(s)},p.prototype.onDocumentPointerUpInternal=function(s){this.onEnd(s)},p.prototype.onDocumentPointerMoveInternal=function(s){this.onMoveByPointer(s)},p.prototype.onTouchEndInternal=function(s){this.onEnd(s)},p.prototype.onTouchMoveInternal=function(s){this.onMoveByPointer(s)},p.prototype.onBeforeStart=function(s){s.preventDefault(),this.raiseDependencySelection(s,null),this.raiseEvent(C.TaskAreaStateEventNames.TASK_EDIT_END,s),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_START_MOVE,s),this._isStarted=!0},p.prototype.onMoveByPointer=function(s){this._isStarted?this.onMove(s):this.onBeforeStart(s)},p.prototype.onMove=function(s){s.preventDefault(),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE,s)},p.prototype.onEnd=function(s){s.preventDefault(),this.raiseEvent(C.TaskAreaStateEventNames.TASK_AREA_END_MOVE,s),this.raiseEvent(C.TaskAreaStateEventNames.STATE_EXIT,s),this._isStarted=!1},p}(I.TaskAreaStateBase);u.TaskAreaScrollState=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaZoomState=void 0;var c=o(0),I=o(5),C=o(9),g=o(176),a=o(30),p=o(13),s=function(l){function d(){var h=null!==l&&l.apply(this,arguments)||this;return h._isInZooming=!1,h}return c.__extends(d,l),d.prototype.onMouseWheel=function(h){h.ctrlKey&&(h.preventDefault(),h.stopPropagation(),this._isInZooming||this.processZoom(h,C.EvtUtils.getWheelDelta(h)>0,50))},d.prototype.onDocumentPointerUpInternal=function(h){this.onEndZoom(h)},d.prototype.onDocumentPointerMoveInternal=function(h){this.onTouchZoom(h)},d.prototype.onTouchEndInternal=function(h){this.onEndZoom(h)},d.prototype.onTouchMoveInternal=function(h){this.onTouchZoom(h)},d.prototype.onTouchZoom=function(h){var v;if(h.stopPropagation(),h.preventDefault(),!this._isInZooming){var x=this.getTouchDistance(h);null!==(v=this.prevDistance)&&void 0!==v||(this.prevDistance=x);var b=this.prevDistance-x;Math.abs(b)>3&&(this.processZoom(h,b>0,1e3),this.prevDistance=x)}},d.prototype.processZoom=function(h,v,x){var b=this;this._isInZooming=!0,setTimeout(function(){b._isInZooming=!1},x),this.raiseEvent(v?p.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN:p.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT,h,null,{leftPos:this.getLeftPosition(h)})},d.prototype.onEndZoom=function(h){this.prevDistance=null,this.raiseEvent(p.TaskAreaStateEventNames.STATE_EXIT,h)},d.prototype.getTouchDistance=function(h){var v=this.GetTouchPoints(h);return this.getDistance(v[0],v[1])},d.prototype.GetTouchPoints=function(h){var v,x,b,y;if(this.isTouchEvent(h)){var E=h.touches;return[new I.Point(E[0].pageX,E[0].pageY),new I.Point(E[1].pageX,E[1].pageY)]}var S=this.raiseEvent(p.TaskAreaStateEventNames.GET_POINTERS_INFO,h);return[new I.Point(null===(v=S[0])||void 0===v?void 0:v.pageX,null===(x=S[0])||void 0===x?void 0:x.pageY),new I.Point(null===(b=S[1])||void 0===b?void 0:b.pageX,null===(y=S[1])||void 0===y?void 0:y.pageY)]},d.prototype.getDistance=function(h,v){return g.Metrics.euclideanDistance(h,v)},d.prototype.getLeftPosition=function(h){var v=0;return this.isTouchEvent(h)||this.isPointerEvent(h)?v=this.getZoomMiddlePoint(h).x:this.isMouseEvent(h)&&(v=this.getMouseZoomLeftPos(h)),v},d.prototype.getMouseZoomLeftPos=function(h){var v=this.raiseEvent(p.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT);return C.EvtUtils.getEventX(h)-v.x},d.prototype.getZoomMiddlePoint=function(h){var v=this.raiseEvent(p.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT),x=this.GetTouchPoints(h),b=this.convertScreenToChartCoordinates(x[0],v),y=this.convertScreenToChartCoordinates(x[1],v);return new I.Point((b.x+y.x)/2,(b.y+y.y)/2)},d.prototype.convertScreenToChartCoordinates=function(h,v){return new I.Point(h.x-v.x,h.y-v.y)},d}(a.TaskAreaStateBase);u.TaskAreaZoomState=s},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Metrics=void 0;var c=function(){function I(){}return I.euclideanDistance=function(C,g){var a=C.x-g.x,p=C.y-g.y;return Math.sqrt(a*a+p*p)},I.manhattanDistance=function(C,g){return Math.abs(C.x-g.x)+Math.abs(C.y-g.y)},I}();u.Metrics=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditState=void 0;var c=o(0),I=o(9),C=o(4),g=o(29),a=o(13),p=function(s){function l(){return null!==s&&s.apply(this,arguments)||this}return c.__extends(l,s),l.prototype.onStartInternal=function(d){var h;null!==(h=this._source)&&void 0!==h||(this._source=g.TaskAreaDomHelper.getEventSource(I.EvtUtils.getEventSource(d)))},l.prototype.onEndInternal=function(d){this.raiseEvent(this.getEventOnEndKey(),d)},l.prototype.onDragInternal=function(d){var h=this.getRelativePos(d);this.raiseEvent(this.getEventOnDragKey(),null,null,{position:h})},l.prototype.getEventOnDragKey=function(){switch(this._source){case C.TaskAreaEventSource.TaskEdit_Start:return a.TaskAreaStateEventNames.TASK_PROCESS_START;case C.TaskAreaEventSource.TaskEdit_End:return a.TaskAreaStateEventNames.TASK_PROCESS_END;case C.TaskAreaEventSource.TaskEdit_Progress:return a.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS}},l.prototype.getEventOnEndKey=function(){switch(this._source){case C.TaskAreaEventSource.TaskEdit_Start:return a.TaskAreaStateEventNames.TASK_CONFIRM_START;case C.TaskAreaEventSource.TaskEdit_End:return a.TaskAreaStateEventNames.TASK_CONFIRM_END;case C.TaskAreaEventSource.TaskEdit_Progress:return a.TaskAreaStateEventNames.TASK_END_PROGRESS}},l}(o(67).TaskDragBaseState);u.TaskEditState=p},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskMoveState=void 0;var c=o(0),I=o(13),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.onEndInternal=function(p){this.raiseEvent(I.TaskAreaStateEventNames.TASK_END_MOVE,p)},a.prototype.onDragInternal=function(p){this.raiseEvent(I.TaskAreaStateEventNames.TASK_PROCESS_MOVE,null,null,{delta:p.x-this.currentPosition.x})||this.raiseEvent(I.TaskAreaStateEventNames.STATE_EXIT)},a}(o(67).TaskDragBaseState);u.TaskMoveState=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaRender=void 0;var c=o(3),I=o(16),C=function(){function g(a){this._vertTaskAreaBorders=[],this._horTaskAreaBorders=[],this._isExternalTaskAreaContainer=!1,this._renderHelper=a}return Object.defineProperty(g.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"mainElement",{get:function(){return this._renderHelper.mainElement},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"etalonSizeValues",{get:function(){return this._renderHelper.etalonSizeValues},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"scaleCount",{get:function(){return this._renderHelper.scaleCount},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskAreaContainerScrollTop",{get:function(){return this._renderHelper.ganttViewTaskAreaContainerScrollTop},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskAreaContainerScrollLeft",{get:function(){return this._renderHelper.ganttTaskAreaContainerScrollLeft},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},set:function(a){this._renderHelper.renderedRowIndices=a},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"renderedColIndices",{get:function(){return this._renderHelper.renderedColIndices},set:function(a){this._renderHelper.renderedColIndices=a},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"vertTaskAreaBorders",{get:function(){return this._vertTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"horTaskAreaBorders",{get:function(){return this._horTaskAreaBorders},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskAreaContainer",{get:function(){return this._taskAreaContainer},enumerable:!1,configurable:!0}),g.prototype.getExternalTaskAreaContainer=function(a){return this._renderHelper.getExternalTaskAreaContainer(a)},g.prototype.prepareExternalTaskAreaContainer=function(a,p){return this._renderHelper.prepareExternalTaskAreaContainer(a,p)},g.prototype.isAllowTaskAreaBorders=function(a){return this._renderHelper.isAllowTaskAreaBorders(a)},g.prototype.getTaskAreaContainerElement=function(){return this._taskAreaContainer.getElement()},g.prototype.initTaskAreaContainer=function(a){this._renderHelper.createTaskArea(a),this._taskAreaContainer=this.getExternalTaskAreaContainer(a),this._isExternalTaskAreaContainer=!!this._taskAreaContainer,null==this.taskAreaContainer&&(this._taskAreaContainer=this._renderHelper.getTaskAreaContainer(a))},g.prototype.createTaskElement=function(a){this._renderHelper.createTaskElement(a)},g.prototype.removeTaskElement=function(a){this._renderHelper.removeTaskElement(a)},g.prototype.reset=function(){this._horTaskAreaBorders=[],this._vertTaskAreaBorders=[]},g.prototype.prepareTaskAreaContainer=function(){var a=this.getTaskAreaContainerElement();this.areHorizontalBordersEnabled?c.DomUtils.addClassName(a,"dx-gantt-tac-hb"):c.DomUtils.removeClassName(a,"dx-gantt-tac-hb");var p=parseInt(getComputedStyle(a).getPropertyValue("margin-top"))||0,s="calc(100% - ".concat(this.etalonSizeValues.scaleItemHeight*this.scaleCount+p,"px)");this._isExternalTaskAreaContainer?this.prepareExternalTaskAreaContainer(a,{height:s}):a.style.height=s},g.prototype.createTaskAreaContainer=function(){var a=document.createElement("DIV");a.className="dx-gantt-tac",this.mainElement.appendChild(a),this.initTaskAreaContainer(a),this.prepareTaskAreaContainer()},g.prototype.createTaskAreaBorder=function(a,p){var s=this.gridLayoutCalculator.getTaskAreaBorderInfo(a,p);I.RenderElementUtils.create(s,a,this.taskArea,this.getTaskAreaBordersDictionary(p))},g.prototype.createTaskArea=function(){var a=document.createElement("DIV");return a.id="dx-gantt-ta",a},g.prototype.removeTaskAreaBorder=function(a,p){I.RenderElementUtils.remove(null,a,this.taskArea,this.getTaskAreaBordersDictionary(p))},g.prototype.createTaskAreaBorderAndTaskElement=function(a,p){this.isAllowTaskAreaBorders(p)&&this.createTaskAreaBorder(a,!p),p&&this.createTaskElement(a)},g.prototype.removeTaskAreaBorderAndTaskElement=function(a,p){this.isAllowTaskAreaBorders(p)&&this.removeTaskAreaBorder(a,!p),p&&this.removeTaskElement(a)},g.prototype.recreateTaskAreaBordersAndTaskElements=function(a){var p=this,l=this.gridLayoutCalculator.getRenderedRowColumnIndices(a?this.taskAreaContainerScrollTop:this.taskAreaContainerScrollLeft,a);I.RenderElementUtils.recreate(a?this.renderedRowIndices:this.renderedColIndices,l,function(h){p.removeTaskAreaBorderAndTaskElement(h,a)},function(h){p.createTaskAreaBorderAndTaskElement(h,a)}),a?this.renderedRowIndices=l:this.renderedColIndices=l,this.gridLayoutCalculator.createTileToConnectorLinesMap()},g.prototype.getTaskAreaBordersDictionary=function(a){return a?this.vertTaskAreaBorders:this.horTaskAreaBorders},g.prototype.setSizeForTaskArea=function(a,p){this.taskArea.style.width=a+"px",this.taskArea.style.height=p+"px"},g.prototype.createHighlightRowElement=function(a){var p=this.gridLayoutCalculator.getHighlightRowInfo(a);I.RenderElementUtils.create(p,a,this.taskArea,this.hlRowElements)},g}();u.TaskAreaRender=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskRender=void 0;var c=o(3),I=o(4),C=o(181),g=o(16),a=function(){function p(s){this._selectionElements=[],this._taskElements=[],this._renderHelper=s,this.customTaskRender=new C.CustomTaskRender(s,this)}return Object.defineProperty(p.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskElements",{get:function(){return this._taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"selectionElements",{get:function(){return this._selectionElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"isExternalTaskAreaContainer",{get:function(){return this._renderHelper.isExternalTaskAreaContainer},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"resourcesElements",{get:function(){return this._renderHelper.resourcesElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"hlRowElements",{get:function(){return this._renderHelper.hlRowElements},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"renderedRowIndices",{get:function(){return this._renderHelper.renderedRowIndices},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"showResources",{get:function(){return this._renderHelper.showResources},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"areHorizontalBordersEnabled",{get:function(){return this._renderHelper.areHorizontalBordersEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"taskTextHeightKey",{get:function(){return this._renderHelper.taskTextHeightKey},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"viewModelItems",{get:function(){return this._renderHelper.viewModelItems},enumerable:!1,configurable:!0}),p.prototype.isHighlightRowElementAllowed=function(s){return this._renderHelper.isHighlightRowElementAllowed(s)},p.prototype.getTaskVisibility=function(s){return this._renderHelper.getTaskVisibility(s)},p.prototype.getTaskText=function(s){return this._renderHelper.getTaskText(s)},Object.defineProperty(p.prototype,"invalidTaskDependencies",{get:function(){return this._renderHelper.invalidTaskDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"fakeTaskWrapper",{get:function(){var s;return null!==(s=this._fakeTaskWrapper)&&void 0!==s||(this._fakeTaskWrapper=this.createFakeTaskWrapper()),this._fakeTaskWrapper},enumerable:!1,configurable:!0}),p.prototype.getViewItem=function(s){return this._renderHelper.getViewItem(s)},p.prototype.getTask=function(s){return this._renderHelper.getTask(s)},p.prototype.createHighlightRowElement=function(s){this._renderHelper.createHighlightRowElement(s)},p.prototype.getTaskDependencies=function(s){return this._renderHelper.getTaskDependencies(s)},p.prototype.addInvalidTaskDependencies=function(s){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.concat(s)},p.prototype.removeInvalidTaskDependencies=function(s){this._renderHelper.invalidTaskDependencies=this._renderHelper.invalidTaskDependencies.filter(function(l){return l.predecessorId!=s||l.successorId!=s})},p.prototype.createResources=function(s){this.showResources&&this._renderHelper.createResources(s)},p.prototype.attachEventsOnTask=function(s){this._renderHelper.attachEventsOnTask(s)},p.prototype.detachEventsOnTask=function(s){this._renderHelper.detachEventsOnTask(s)},p.prototype.recreateConnectorLineElement=function(s,l){void 0===l&&(l=!1),this._renderHelper.recreateConnectorLineElement(s,l)},p.prototype.renderTaskElement=function(s){this._renderHelper.createTaskElement(s)},p.prototype.reset=function(){var s=this;this._taskElements.forEach(function(l,d){return s.removeTaskElement(d)}),this._selectionElements=[],this._taskElements=[]},p.prototype.createTaskWrapperElement=function(s){var l=this.gridLayoutCalculator.getTaskWrapperElementInfo(s);g.RenderElementUtils.create(l,s,this.taskArea,this.taskElements),this.taskElements[s].style.display=this.getTaskVisibility(s)?"":"none"},p.prototype.createTaskElement=function(s,l){var d=this.getViewItem(s);if(l&&this.customTaskRender.createCustomTaskElement(s,l),d.task.isValid()&&d.visible)d.isCustom||this.createDefaultTaskElement(s);else{var h=this.getTaskDependencies(d.task.internalId);this.addInvalidTaskDependencies(h)}},p.prototype.createTaskVisualElement=function(s){var l=this.gridLayoutCalculator.getTaskElementInfo(s,this.taskTitlePosition!==I.TaskTitlePosition.Inside),d=g.RenderElementUtils.create(l,s,this.taskElements[s]);return this.attachEventsOnTask(s),d},p.prototype.createDefaultTaskElement=function(s){var l=this.getViewItem(s);this.isHighlightRowElementAllowed(s)&&this.createHighlightRowElement(s),l.selected&&this.createTaskSelectionElement(s),this.createTaskWrapperElement(s),this.taskTitlePosition===I.TaskTitlePosition.Outside&&this.createTaskTextElement(s,this.taskElements[s]);var d=this.createTaskVisualElement(s);l.task.isMilestone()||(this.taskTitlePosition===I.TaskTitlePosition.Inside&&this.createTaskTextElement(s,d),this.createTaskProgressElement(s,d)),this.createResources(s)},p.prototype.removeTaskElement=function(s){var l=this.getTask(s);if(l&&this.removeInvalidTaskDependencies(l.id),this.detachEventsOnTask(s),this._renderHelper.hasTaskTemplate()){var d=this.taskElements[s],h=d?.firstElementChild;h&&(this._renderHelper.destroyTemplate(h),d.removeChild(h))}g.RenderElementUtils.remove(null,s,this.taskArea,this.taskElements),g.RenderElementUtils.remove(null,s,this.taskArea,this.resourcesElements),g.RenderElementUtils.remove(null,s,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(s)&&g.RenderElementUtils.remove(null,s,this.taskArea,this.hlRowElements),this.gridLayoutCalculator.resetTaskInfo(s)},p.prototype.recreateTaskElement=function(s){var l=this,d=this.renderedRowIndices.filter(function(x){return x===s}).length>0,h=this.getTask(s);if(h){d&&(this.removeTaskElement(s),this.renderTaskElement(s));var v=this.getTaskDependencies(h.internalId);v.length&&v.forEach(function(x){return l.recreateConnectorLineElement(x.internalId,!0)})}},p.prototype.createFakeTaskWrapper=function(){var s,l,d=null!==(l=null===(s=this.viewModelItems.filter(function(b){return b.task&&!b.task.isMilestone})[0])||void 0===s?void 0:s.visibleIndex)&&void 0!==l?l:0,h=this.gridLayoutCalculator,v=g.RenderElementUtils.create(h.getTaskWrapperElementInfo(d),null,this.taskArea),x=g.RenderElementUtils.create(h.getTaskElementInfo(d),null,v);return this.createTaskTextElement(d,x),this.createTaskProgressElement(d,x),v.style.display="none",v},p.prototype.createTaskProgressElement=function(s,l){var d=this.gridLayoutCalculator.getTaskProgressElementInfo(s);g.RenderElementUtils.create(d,s,l)},p.prototype.getTextWidth=function(s){return this._renderHelper.getTextWidth(s)},Object.defineProperty(p.prototype,"minTextWidth",{get:function(){var s;return null!==(s=this._minTextWidth)&&void 0!==s||(this._minTextWidth=5*this.getTextWidth("a")),this._minTextWidth},enumerable:!1,configurable:!0}),p.prototype.createTaskTextElement=function(s,l){var d,h,v=this.gridLayoutCalculator.getTaskTextElementInfo(s,this.taskTitlePosition===I.TaskTitlePosition.Inside);if(!v.additionalInfo.hidden){var x=g.RenderElementUtils.create(v,s,l),b=this.getTaskText(s);if(this.taskTitlePosition===I.TaskTitlePosition.Outside&&v.size.width>0){var y=getComputedStyle(x),E=v.size.width-c.DomUtils.pxToInt(y.paddingLeft);if(E>=this.minTextWidth){var S=c.DomUtils.pxToInt(y.paddingRight),O=b?this.getTextWidth(b):0;S&&O>E-S&&(S=Math.min(p.minTitleOutRightPadding,E-this.minTextWidth),x.style.paddingRight=S+"px"),O>E-S&&(x.style.overflowX="hidden",x.style.textOverflow="ellipsis")}else x.style.display="none"}b||(null!==(d=this[h=this.taskTextHeightKey])&&void 0!==d||(this[h]=this.getTaskTextHeight(x)),x.style.height=this[this.taskTextHeightKey]),x.innerText=b}},p.prototype.createTaskSelectionElement=function(s){var l=this.gridLayoutCalculator.getSelectionElementInfo(s);this.isExternalTaskAreaContainer&&!this.areHorizontalBordersEnabled&&l.size.height++,g.RenderElementUtils.create(l,s,this.taskArea,this.selectionElements)},p.prototype.getTaskTextHeight=function(s){s.innerText="WWW";var l=getComputedStyle(s).height;return s.innerText="",l},p.prototype.getSmallTaskWidth=function(s){var l=0;if(null!=s&&""!==s){var d=s.indexOf("rem");if(d>-1)try{l=parseFloat(s.substr(0,d))*parseFloat(getComputedStyle(document.documentElement).fontSize)}catch{}else l=c.DomUtils.pxToInt(s)}return 2*l},p.minTitleOutRightPadding=5,p}();u.TaskRender=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.CustomTaskRender=void 0;var c=o(4),I=o(16),C=function(){function g(a,p){this._pendingTemplateFuncsToRender=[],this._renderHelper=a,this._taskRender=p}return Object.defineProperty(g.prototype,"gridLayoutCalculator",{get:function(){return this._renderHelper.gridLayoutCalculator},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"tickSize",{get:function(){return this._renderHelper.tickSize},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskTitlePosition",{get:function(){return this._renderHelper.taskTitlePosition},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskElements",{get:function(){return this._taskRender.taskElements},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"taskArea",{get:function(){return this._renderHelper.taskArea},enumerable:!1,configurable:!0}),g.prototype.getViewItem=function(a){return this._renderHelper.getViewItem(a)},g.prototype.getTask=function(a){return this._renderHelper.getTask(a)},g.prototype.destroyTemplate=function(a){this._renderHelper.destroyTemplate(a)},g.prototype.getTaskDependencies=function(a){return this._renderHelper.getTaskDependencies(a)},g.prototype.getTaskResources=function(a){return this._renderHelper.getTaskResources(a)},g.prototype.attachEventsOnTask=function(a){this._renderHelper.attachEventsOnTask(a)},g.prototype.recreateConnectorLineElement=function(a,p){void 0===p&&(p=!1),this._renderHelper.recreateConnectorLineElement(a,p)},g.prototype.createTaskSelectionElement=function(a){this._taskRender.createTaskSelectionElement(a)},g.prototype.createCustomTaskElement=function(a,p){if(this._saveTemplateFuncToStack(a,p),!this._hasRepeatedTemplateRenderCall(a)){var s=this.getViewItem(a);s.isCustom=!1;var l=document.createElement("DIV"),d=this.createCustomTaskInformation(a);s.isCustom=!0,p(l,d,this.onTaskTemplateContainerRendered.bind(this),a)}},g.prototype.onTaskTemplateContainerRendered=function(a,p){var s=this;if(this._hasRepeatedTemplateRenderCall(p)){a&&this._renderHelper.destroyTemplate(a);var l=this._getLastPendingTemplateFunc(p);setTimeout(function(){return s.createCustomTaskElement(p,l)})}else this.drawCustomTask(a,p);this._clearTemplateFuncsStack(p)},g.prototype._saveTemplateFuncToStack=function(a,p){var s,l;null!==(s=(l=this._pendingTemplateFuncsToRender)[a])&&void 0!==s||(l[a]=[]),this._pendingTemplateFuncsToRender[a].push(p)},g.prototype._clearTemplateFuncsStack=function(a){this._pendingTemplateFuncsToRender[a]=[]},g.prototype._hasRepeatedTemplateRenderCall=function(a){return this._pendingTemplateFuncsToRender[a].length>1},g.prototype._getLastPendingTemplateFunc=function(a){var p=this._pendingTemplateFuncsToRender[a];return p[p.length-1]},g.prototype.createCustomTaskWrapperElement=function(a,p){I.RenderElementUtils.create(p,a,this.taskArea,this.taskElements)},g.prototype.createCustomTaskVisualElement=function(a,p){return I.RenderElementUtils.create(p,a,this.taskElements[a])},g.prototype.drawCustomTask=function(a,p){var s=this;if(this.taskElements[p]){var l=this.getViewItem(p);if(l.visible=!!a.innerHTML,this.taskElements[p].innerHTML=a.innerHTML,l.size.height=this.taskElements[p].offsetHeight,l.size.width=this.taskElements[p].offsetWidth,this.destroyTemplate(this.taskElements[p]),this._taskRender.removeTaskElement(p),l.visible){var d=this.gridLayoutCalculator.getTaskWrapperElementInfo(p);this.createCustomTaskWrapperElement(p,d),this.taskElements[p].appendChild(a),this.attachEventsOnTask(p)}else{var h=this.getTaskDependencies(l.task.internalId);h.length&&(this._taskRender.addInvalidTaskDependencies(h),h.forEach(function(v){return s.recreateConnectorLineElement(v.internalId,!0)}))}this._taskRender.isHighlightRowElementAllowed(p)&&this._taskRender.createHighlightRowElement(p),l.selected&&this.createTaskSelectionElement(p)}},g.prototype.createCustomTaskInformation=function(a){var p=this.getTask(a),s=this.getViewItem(a),l=this.gridLayoutCalculator.getTaskWrapperElementInfo(a),d=this.gridLayoutCalculator.getTaskElementInfo(a,this.taskTitlePosition!==c.TaskTitlePosition.Inside);this.createCustomTaskWrapperElement(a,l);var h=this.createCustomTaskVisualElement(a,d);this._taskRender.createTaskTextElement(a,h);var v=this.getTaskResources(p.id);return{cellSize:this.tickSize,isMilestone:p.isMilestone(),isParent:!!s?.children.length,taskData:p,taskHTML:h,taskPosition:l.position,taskResources:v,taskSize:d.size}},g}();u.CustomTaskRender=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.MainElementsRender=void 0;var c=function(){function I(){}return I.prototype.createMainElement=function(C){var g=document.createElement("DIV");return g.style.width=C.offsetWidth+"px",g.style.height=C.offsetHeight+"px",g},I.prototype.createHeader=function(){var C=document.createElement("DIV");return C.className="dx-gantt-header",C},I}();u.MainElementsRender=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaContainer=void 0;var c=function(){function I(C,g){this.element=C,this.onScrollHandler=function(){g.updateView()},this.element.addEventListener("scroll",this.onScrollHandler)}return Object.defineProperty(I.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(C){this.element.scrollTop=C},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(C){this.element.scrollLeft=C},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scrollWidth",{get:function(){return this.element.scrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"isExternal",{get:function(){return!1},enumerable:!1,configurable:!0}),I.prototype.getWidth=function(){return this.element.offsetWidth},I.prototype.getHeight=function(){return this.element.offsetHeight},I.prototype.getElement=function(){return this.element},I.prototype.detachEvents=function(){this.element.removeEventListener("scroll",this.onScrollHandler)},I}();u.TaskAreaContainer=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ElementTextHelper=void 0;var c=o(3),I=o(4),C=o(15),g=function(){function a(p){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var s=document.createElement("canvas");this.textMeasureContext=s.getContext("2d"),this.cultureInfo=p}return a.prototype.setFont=function(p){var s=c.DomUtils.getCurrentStyle(p);this.textMeasureContext.font=s.font?s.font:s.fontStyle+" "+s.fontVariant+" "+s.fontWeight+" "+s.fontSize+" / "+s.lineHeight+" "+s.fontFamily},a.prototype.setSettings=function(p,s,l){this.startTime=p,this.viewType=s,this.modelItems=l},a.prototype.getScaleItemText=function(p,s){var l=this.viewType.valueOf()===s.valueOf();switch(s){case I.ViewType.TenMinutes:return this.getTenMinutesScaleItemText(p);case I.ViewType.Hours:case I.ViewType.SixHours:return this.getHoursScaleItemText(p);case I.ViewType.Days:return this.getDaysScaleItemText(p,l);case I.ViewType.Weeks:return this.getWeeksScaleItemText(p,l);case I.ViewType.Months:return this.getMonthsScaleItemText(p,l);case I.ViewType.Quarter:return this.getQuarterScaleItemText(p,l);case I.ViewType.Years:return this.getYearsScaleItemText(p);case I.ViewType.FiveYears:return this.getFiveYearsScaleItemText(p)}},a.prototype.getTenMinutesScaleItemText=function(p){var s=p.getMinutes()+1;return(10*Math.ceil(s/10)).toString()},a.prototype.getThirtyMinutesScaleItemText=function(p){return p.getMinutes()<30?"30":"60"},a.prototype.getHoursScaleItemText=function(p){var s=p.getHours(),l=this.getHourDisplayText(s),d=s<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(l,d)},a.prototype.getDaysScaleItemText=function(p,s){return this.getDayTotalText(p,!0,s,s,!s)},a.prototype.getWeeksScaleItemText=function(p,s){var l=C.DateUtils.getDSTCorrectedTaskEnd(p,C.DateUtils.msPerWeek-C.DateUtils.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(p,s,!0,s,!s),this.getDayTotalText(l,s,!0,s,!s))},a.prototype.getMonthsScaleItemText=function(p,s){var l=this.getMonthNames(),d=s?"":p.getFullYear().toString();return this.getMonthsScaleItemTextCore(l[p.getMonth()],d)},a.prototype.getQuarterScaleItemText=function(p,s){var l=this.getQuarterNames(),d=s?"":p.getFullYear().toString();return this.getMonthsScaleItemTextCore(l[Math.floor(p.getMonth()/3)],d)},a.prototype.getYearsScaleItemText=function(p){return p.getFullYear().toString()},a.prototype.getFiveYearsScaleItemText=function(p){return p.getFullYear().toString()+" - "+(p.getFullYear()+4).toString()},a.prototype.getHourDisplayText=function(p){return this.hasAmPm()?(0==p?12:p<=12?p:p-12).toString():p<10?"0"+p:p.toString()},a.prototype.getDayTotalText=function(p,s,l,d,h){var v=d?this.getAbbrMonthNames():this.getMonthNames(),x=l?this.getAbbrDayNames():this.getDayNames(),b=s?x[p.getDay()]:"",y=p.getDate(),E=v[p.getMonth()],S=h?p.getFullYear().toString():"";return this.getDayTotalTextCore(b,y.toString(),E,S)},a.prototype.getTaskText=function(p){var s=this.modelItems[p];return s?s.task.title:""},a.prototype.getTaskVisibility=function(p){var s=this.modelItems[p];return!!s&&s.getVisible()},a.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},a.prototype.getScaleItemTextTemplate=function(p){switch(p){case I.ViewType.TenMinutes:return"00";case I.ViewType.Hours:case I.ViewType.SixHours:return this.getHoursScaleItemTextCore("00",this.getAmText());case I.ViewType.Days:return this.getDayTextTemplate();case I.ViewType.Weeks:return this.getWeekTextTemplate();case I.ViewType.Months:return this.getMonthsScaleItemTextCore(this.getLongestMonthName(),"");case I.ViewType.Quarter:return"Q4";case I.ViewType.Years:return"0000"}},a.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},a.prototype.getWeekTextTemplate=function(){var p=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(p,p)},a.prototype.getHoursScaleItemTextCore=function(p,s){return p+":00"+(this.hasAmPm()?" "+s:"")},a.prototype.getDayTotalTextCore=function(p,s,l,d){var h=p.length>0?p+", ":"";return(h+=s+" "+l)+(d.length>0?" "+d:"")},a.prototype.getWeeksScaleItemTextCore=function(p,s){return p+" - "+s},a.prototype.getMonthsScaleItemTextCore=function(p,s){var l=p;return s.length>0&&(l+=" "+s),l},a.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},a.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},a.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},a.prototype.getLongestText=function(p){var s=this,l="",d=0;return p.forEach(function(h){var v=s.getTextWidth(h);v>d&&(d=v,l=h)}),l},a.prototype.getTextWidth=function(p){return Math.round(this.textMeasureContext.measureText(p).width)},a.prototype.getAmText=function(){return this.cultureInfo.amText},a.prototype.getPmText=function(){return this.cultureInfo.pmText},a.prototype.getQuarterNames=function(){return this.cultureInfo.quarterNames},a.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},a.prototype.getDayNames=function(){return this.cultureInfo.dayNames},a.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},a.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},a}();u.ElementTextHelper=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Settings=void 0;var c=o(1),I=o(8),C=o(4),g=o(186),a=o(68),p=o(187),s=o(188),l=function(){function d(){this.viewType=void 0,this.taskTitlePosition=C.TaskTitlePosition.Inside,this.showResources=!0,this.showDependencies=!0,this.areHorizontalBordersEnabled=!0,this.areVerticalBordersEnabled=!0,this.areAlternateRowsEnabled=!0,this.allowSelectTask=!0,this.firstDayOfWeek=0,this.editing=new g.EditingSettings,this.validation=new p.ValidationSettings,this.stripLines=new a.StripLineSettings,this.viewTypeRange=new s.ViewTypeRangeSettings}return d.parse=function(h){var v=new d;return h&&((0,c.isDefined)(h.viewType)&&(v.viewType=h.viewType),(0,c.isDefined)(h.taskTitlePosition)&&(v.taskTitlePosition=h.taskTitlePosition),(0,c.isDefined)(h.showResources)&&(v.showResources=h.showResources),(0,c.isDefined)(h.showDependencies)&&(v.showDependencies=h.showDependencies),(0,c.isDefined)(h.areHorizontalBordersEnabled)&&(v.areHorizontalBordersEnabled=h.areHorizontalBordersEnabled),(0,c.isDefined)(h.areVerticalBordersEnabled)&&(v.areHorizontalBordersEnabled=h.areHorizontalBordersEnabled),(0,c.isDefined)(h.areAlternateRowsEnabled)&&(v.areAlternateRowsEnabled=h.areAlternateRowsEnabled),(0,c.isDefined)(h.allowSelectTask)&&(v.allowSelectTask=h.allowSelectTask),(0,c.isDefined)(h.firstDayOfWeek)&&(v.firstDayOfWeek=h.firstDayOfWeek),(0,c.isDefined)(h.startDateRange)&&(v.startDateRange=new Date(h.startDateRange)),(0,c.isDefined)(h.endDateRange)&&(v.endDateRange=new Date(h.endDateRange)),(0,c.isDefined)(h.editing)&&(v.editing=g.EditingSettings.parse(h.editing)),(0,c.isDefined)(h.validation)&&(v.validation=p.ValidationSettings.parse(h.validation)),(0,c.isDefined)(h.stripLines)&&(v.stripLines=a.StripLineSettings.parse(h.stripLines)),(0,c.isDefined)(h.viewTypeRange)&&(v.viewTypeRange=s.ViewTypeRangeSettings.parse(h.viewTypeRange)),(0,c.isDefined)(h.taskTooltipContentTemplate)&&(v.taskTooltipContentTemplate=h.taskTooltipContentTemplate),(0,c.isDefined)(h.taskProgressTooltipContentTemplate)&&(v.taskProgressTooltipContentTemplate=h.taskProgressTooltipContentTemplate),(0,c.isDefined)(h.taskTimeTooltipContentTemplate)&&(v.taskTimeTooltipContentTemplate=h.taskTimeTooltipContentTemplate),(0,c.isDefined)(h.taskContentTemplate)&&(v.taskContentTemplate=h.taskContentTemplate),(0,c.isDefined)(h.cultureInfo)&&(v.cultureInfo=h.cultureInfo)),v},d.prototype.equal=function(h){var v=!0;return(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=(v=v&&this.viewType===h.viewType)&&this.taskTitlePosition===h.taskTitlePosition)&&this.showResources===h.showResources)&&this.showDependencies===h.showDependencies)&&this.areHorizontalBordersEnabled===h.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===h.areAlternateRowsEnabled)&&this.allowSelectTask===h.allowSelectTask)&&this.editing.equal(h.editing))&&this.validation.equal(h.validation))&&this.stripLines.equal(h.stripLines))&&I.DateTimeUtils.areDatesEqual(this.startDateRange,h.startDateRange))&&I.DateTimeUtils.areDatesEqual(this.endDateRange,h.endDateRange)},d}();u.Settings=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.EditingSettings=void 0;var c=o(1),I=function(){function C(){this.enabled=!1,this.allowDependencyDelete=!0,this.allowDependencyInsert=!0,this.allowTaskDelete=!0,this.allowTaskInsert=!0,this.allowTaskUpdate=!0,this.allowResourceDelete=!0,this.allowResourceInsert=!0,this.allowResourceUpdate=!0,this.allowTaskResourceUpdate=!0,this.taskHoverDelay=0}return C.parse=function(g){var a=new C;return g&&((0,c.isDefined)(g.enabled)&&(a.enabled=g.enabled),(0,c.isDefined)(g.allowDependencyDelete)&&(a.allowDependencyDelete=g.allowDependencyDelete),(0,c.isDefined)(g.allowDependencyInsert)&&(a.allowDependencyInsert=g.allowDependencyInsert),(0,c.isDefined)(g.allowTaskDelete)&&(a.allowTaskDelete=g.allowTaskDelete),(0,c.isDefined)(g.allowTaskInsert)&&(a.allowTaskInsert=g.allowTaskInsert),(0,c.isDefined)(g.allowTaskUpdate)&&(a.allowTaskUpdate=g.allowTaskUpdate),(0,c.isDefined)(g.allowResourceDelete)&&(a.allowResourceDelete=g.allowResourceDelete),(0,c.isDefined)(g.allowResourceInsert)&&(a.allowResourceInsert=g.allowResourceInsert),(0,c.isDefined)(g.allowResourceUpdate)&&(a.allowResourceUpdate=g.allowResourceUpdate),(0,c.isDefined)(g.allowTaskResourceUpdate)&&(a.allowTaskResourceUpdate=g.allowTaskResourceUpdate),(0,c.isDefined)(g.taskHoverDelay)&&(a.taskHoverDelay=g.taskHoverDelay)),a},C.prototype.equal=function(g){var a=!0;return(a=(a=(a=(a=(a=(a=(a=(a=(a=a&&this.enabled===g.enabled)&&this.allowDependencyDelete===g.allowDependencyDelete)&&this.allowDependencyInsert===g.allowDependencyInsert)&&this.allowTaskDelete===g.allowTaskDelete)&&this.allowTaskInsert===g.allowTaskInsert)&&this.allowTaskUpdate===g.allowTaskUpdate)&&this.allowResourceDelete===g.allowResourceDelete)&&this.allowResourceInsert===g.allowResourceInsert)&&this.allowResourceUpdate===g.allowResourceUpdate)&&this.allowTaskResourceUpdate===g.allowTaskResourceUpdate},C}();u.EditingSettings=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ValidationSettings=void 0;var c=o(1),I=function(){function C(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1,this.enablePredecessorGap=!1}return C.parse=function(g){var a=new C;return g&&((0,c.isDefined)(g.validateDependencies)&&(a.validateDependencies=g.validateDependencies),(0,c.isDefined)(g.autoUpdateParentTasks)&&(a.autoUpdateParentTasks=g.autoUpdateParentTasks),(0,c.isDefined)(g.enablePredecessorGap)&&(a.enablePredecessorGap=g.enablePredecessorGap)),a},C.prototype.equal=function(g){var a=!0;return(a=(a=a&&this.validateDependencies===g.validateDependencies)&&this.autoUpdateParentTasks===g.autoUpdateParentTasks)&&this.enablePredecessorGap===g.enablePredecessorGap},C}();u.ValidationSettings=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ViewTypeRangeSettings=void 0;var c=o(1),I=o(4),C=function(){function g(){this.min=I.ViewType.TenMinutes,this.max=I.ViewType.Years}return g.parse=function(a){var p=new g;return a&&((0,c.isDefined)(a.min)&&(p.min=a.min),(0,c.isDefined)(a.max)&&(p.max=a.max)),p},g.prototype.equal=function(a){var p=!0;return(p=p&&this.min===a.min)&&this.max===a.max},g}();u.ViewTypeRangeSettings=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskEditSettings=void 0;var c=o(0),I=o(1),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.parse=function(p){var s=new a;return p&&((0,I.isDefined)(p.getCommandManager)&&(s.getCommandManager=p.getCommandManager),(0,I.isDefined)(p.getViewModel)&&(s.getViewModel=p.getViewModel),(0,I.isDefined)(p.getGanttSettings)&&(s.getGanttSettings=p.getGanttSettings),(0,I.isDefined)(p.getRenderHelper)&&(s.getRenderHelper=p.getRenderHelper),(0,I.isDefined)(p.destroyTemplate)&&(s.destroyTemplate=p.destroyTemplate),(0,I.isDefined)(p.formatDate)&&(s.formatDate=p.formatDate),(0,I.isDefined)(p.getModelManipulator)&&(s.getModelManipulator=p.getModelManipulator),(0,I.isDefined)(p.getValidationController)&&(s.getValidationController=p.getValidationController)),s},a}(o(65).TooltipSettings);u.TaskEditSettings=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ValidationController=void 0;var c=o(0),I=o(1),C=o(15),g=o(23),a=o(53),p=o(19),s=o(8),l=o(191),d=function(){function h(v){this.lockPredecessorToSuccessor=!0,this.settings=v}return Object.defineProperty(h.prototype,"viewModel",{get:function(){return this.settings.getViewModel()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"history",{get:function(){return this.settings.getHistory()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"modelManipulator",{get:function(){return this.settings.getModelManipulator()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"range",{get:function(){return this.settings.getRange()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"validationSettings",{get:function(){return this.settings.getValidationSettings()},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"enablePredecessorGap",{get:function(){return this.viewModel.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"isValidateDependenciesRequired",{get:function(){return this.settings.getIsValidateDependenciesRequired()},enumerable:!1,configurable:!0}),h.prototype.updateOwnerInAutoParentMode=function(){this.settings.updateOwnerInAutoParentMode()},h.prototype.checkStartDependencies=function(v,x){var b=this,y=[],E=this.viewModel.tasks.getItemById(v);return this.viewModel.dependencies.items.filter(function(S){return S.successorId===v}).forEach(function(S){var O=b.viewModel.tasks.getItemById(S.predecessorId);(S.type===g.DependencyType.FS&&O.end>x||S.type===g.DependencyType.SS&&O.start>x)&&y.push(new l.ValidationError(S.internalId,!0)),(S.type===g.DependencyType.FS&&O.end.valueOf()===E.start.valueOf()&&x>O.end||S.type===g.DependencyType.SS&&O.start.valueOf()===E.start.valueOf()&&x>O.start)&&y.push(new l.ValidationError(S.internalId))}),y},h.prototype.checkEndDependencies=function(v,x){var b=this,y=[],E=this.viewModel.tasks.getItemById(v);return this.viewModel.dependencies.items.filter(function(S){return S.successorId===v}).forEach(function(S){var O=b.viewModel.tasks.getItemById(S.predecessorId);(S.type===g.DependencyType.SF&&O.start>x||S.type===g.DependencyType.FF&&O.end>x)&&y.push(new l.ValidationError(S.internalId,!0)),(S.type===g.DependencyType.SF&&O.start.valueOf()===E.end.valueOf()&&x>O.start||S.type===g.DependencyType.FF&&O.end.valueOf()===E.end.valueOf()&&x>O.end)&&y.push(new l.ValidationError(S.internalId))}),y},h.prototype.moveEndDependTasks=function(v,x,b){var y=this;void 0===b&&(b=!1);var E=this.viewModel.dependencies.items.filter(function(O){return O.predecessorId===v&&!O.isStartDependency}),S=this.viewModel.tasks.getItemById(v);E.forEach(function(O){var w=y.viewModel.tasks.getItemById(O.successorId);if(w&&(!b||S.parentId!==w.parentId)&&w.parentId!=S.id){var T=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),k=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),R=S.end.getTime()-x.getTime(),P=y.enablePredecessorGap?S.end:x;O.type===g.DependencyType.FS&&(w.start<P||y.lockPredecessorToSuccessor&&w.start.getTime()===x.getTime())?(k.start.setTime(S.end.getTime()),k.end.setTime(k.start.getTime()+(w.end.getTime()-w.start.getTime())),y.correctMoving(w.internalId,k)):O.type===g.DependencyType.FF&&(w.end<P||y.lockPredecessorToSuccessor&&w.end.getTime()===x.getTime())?(k.start.setTime(S.end.getTime()-(w.end.getTime()-w.start.getTime())),k.end.setTime(S.end.getTime()),y.correctMoving(w.internalId,k)):y.enablePredecessorGap||(k.start.setTime(w.start.getTime()+R),k.end.setTime(w.end.getTime()+R)),T.equal(k)||(y.history.addAndRedo(new a.UpdateTaskHistoryItem(y.modelManipulator,O.successorId,{start:k.start,end:k.end})),y.moveRelatedTasks(O,T,w,k))}})},h.prototype.moveStartDependTasks=function(v,x,b){var y=this;void 0===b&&(b=!1);var E=this.viewModel.dependencies.items.filter(function(O){return O.predecessorId===v&&O.isStartDependency}),S=this.viewModel.tasks.getItemById(v);E.forEach(function(O){var w=y.viewModel.tasks.getItemById(O.successorId);if(w&&(!b||S.parentId!==w.parentId)&&w.parentId!=S.id){var T=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),k=new p.DateRange(new Date(w.start.getTime()),new Date(w.end.getTime())),R=S.start.getTime()-x.getTime(),P=y.enablePredecessorGap?S.start:x;O.type===g.DependencyType.SF&&(w.end<P||y.lockPredecessorToSuccessor&&w.end.getTime()===x.getTime())?(k.start.setTime(S.start.getTime()-(w.end.getTime()-w.start.getTime())),k.end.setTime(S.start.getTime()),y.correctMoving(w.internalId,k)):O.type===g.DependencyType.SS&&(w.start<P||y.lockPredecessorToSuccessor&&w.start.getTime()===x.getTime())?(k.start.setTime(S.start.getTime()),k.end.setTime(S.start.getTime()+(w.end.getTime()-w.start.getTime())),y.correctMoving(w.internalId,k)):y.enablePredecessorGap||(k.start.setTime(w.start.getTime()+R),k.end.setTime(w.end.getTime()+R)),T.equal(k)||(y.history.addAndRedo(new a.UpdateTaskHistoryItem(y.modelManipulator,O.successorId,{start:k.start,end:k.end})),y.moveRelatedTasks(O,T,w,k))}})},h.prototype.moveRelatedTasks=function(v,x,b,y){var E=y.start.getTime()-x.start.getTime();this.correctParentsOnChildMoving(b.internalId,E),this.moveStartDependTasks(v.successorId,x.start),this.moveEndDependTasks(v.successorId,x.end)},h.prototype.getCorrectDateRange=function(v,x,b){var y=this,E=new p.DateRange(new Date(x),new Date(b));return c.__spreadArray(c.__spreadArray([],this.checkStartDependencies(v,E.start),!0),this.checkEndDependencies(v,E.end),!0).filter(function(S){return S.critical}).forEach(function(S){var O=y.viewModel.dependencies.getItemById(S.dependencyId),w=y.viewModel.tasks.getItemById(O.predecessorId);O.type===g.DependencyType.FS&&E.start<w.end&&E.start.setTime(w.end.getTime()),O.type===g.DependencyType.SS&&E.start<w.start&&E.start.setTime(w.start.getTime()),O.type===g.DependencyType.FF&&E.end<w.end&&E.end.setTime(w.end.getTime()),O.type===g.DependencyType.SF&&E.end<w.start&&E.end.setTime(w.start.getTime())}),E},h.prototype.correctMoving=function(v,x){var b=this,y=x.end.getTime()-x.start.getTime();return c.__spreadArray(c.__spreadArray([],this.checkStartDependencies(v,x.start),!0),this.checkEndDependencies(v,x.end),!0).filter(function(E){return E.critical}).forEach(function(E){var S=b.viewModel.dependencies.getItemById(E.dependencyId),O=b.viewModel.tasks.getItemById(S.predecessorId);S.type===g.DependencyType.FS&&x.start<O.end&&(x.start.setTime(O.end.getTime()),x.end.setTime(x.start.getTime()+y)),S.type===g.DependencyType.SS&&x.start<O.start&&(x.start.setTime(O.start.getTime()),x.end.setTime(x.start.getTime()+y)),S.type===g.DependencyType.FF&&x.end<O.end&&(x.end.setTime(O.end.getTime()),x.start.setTime(x.end.getTime()-y)),S.type===g.DependencyType.SF&&x.end<O.start&&(x.end.setTime(O.start.getTime()),x.start.setTime(x.end.getTime()-y))}),x},h.prototype.recalculateParents=function(v,x){for(var b=v&&v.parent;b&&b.task;){for(var y=b.children,E=this.range.end,S=this.range.start,O=0,w=0,T={id:b.task.internalId},k=0;k<y.length;k++){var R=y[k].task;if(R.isValid()){E=s.DateTimeUtils.getMinDate(E,R.start),S=s.DateTimeUtils.getMaxDate(S,R.end);var P=R.getDuration();O+=R.progress*P,w+=P}}s.DateTimeUtils.areDatesEqual(b.task.start,E)||(T.start=E),s.DateTimeUtils.areDatesEqual(b.task.end,S)||(T.end=S),T.oldStart=b.task.start,T.oldEnd=b.task.end,(O=w>0?Math.round(O/w):0)!==b.task.progress&&(T.progress=O),x(T),b=b.parent}},h.prototype.updateParentsRangeByChild=function(v){var x=this;this.recalculateParents(this.viewModel.findItem(v),function(b){if((0,I.isDefined)(b.id)){var y=x.history,E=x.modelManipulator;(0,I.isDefined)(b.start)&&(y.addAndRedo(new a.UpdateTaskHistoryItem(E,b.id,{start:b.start})),x.moveStartDependTasks(b.id,b.oldStart)),(0,I.isDefined)(b.end)&&(y.addAndRedo(new a.UpdateTaskHistoryItem(E,b.id,{end:b.end})),x.moveEndDependTasks(b.id,b.oldEnd)),(0,I.isDefined)(b.progress)&&y.addAndRedo(new a.UpdateTaskHistoryItem(E,b.id,{progress:b.progress}))}})},h.prototype.updateChildRangeByParent=function(v,x,b){var y=this.viewModel.findItem(v);if(y&&0!==y.children.length)for(var E=y.children,S=0;S<E.length;S++){var O=E[S].task,w=new Date(O.start.getTime()+x),T=C.DateUtils.getRangeMSPeriod(O.start,O.end),k=C.DateUtils.getDSTCorrectedTaskEnd(w,T);b.push({id:O.internalId,start:O.start,end:O.end}),this.history.addAndRedo(new a.UpdateTaskHistoryItem(this.modelManipulator,O.internalId,{start:w,end:k})),this.updateChildRangeByParent(O.internalId,x,b)}},h.prototype.updateParentsIfRequired=function(v){this._parentAutoCalc&&(this.updateParentsRangeByChild(v),this.updateOwnerInAutoParentMode())},h.prototype.correctParentsOnChildMoving=function(v,x){var b=this;if(this._parentAutoCalc&&0!==x){this.updateParentsRangeByChild(v);var y=[];this.updateChildRangeByParent(v,x,y),this.isValidateDependenciesRequired&&y.forEach(function(E){b.moveStartDependTasks(E.id,E.start,!0),b.moveEndDependTasks(E.id,E.end,!0)}),this.updateOwnerInAutoParentMode()}},h.prototype.canCreateDependency=function(v,x){return this.viewModel.canCreateDependency(v,x)},h}();u.ValidationController=d},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ValidationError=void 0,u.ValidationError=function(I,C){void 0===C&&(C=!1),this.dependencyId=I,this.critical=C}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ValidationControllerSettings=void 0;var c=o(1),I=function(){function C(){}return C.parse=function(g){var a=new C;return g&&((0,c.isDefined)(g.getViewModel)&&(a.getViewModel=g.getViewModel),(0,c.isDefined)(g.getHistory)&&(a.getHistory=g.getHistory),(0,c.isDefined)(g.getModelManipulator)&&(a.getModelManipulator=g.getModelManipulator),(0,c.isDefined)(g.getRange)&&(a.getRange=g.getRange),(0,c.isDefined)(g.getValidationSettings)&&(a.getValidationSettings=g.getValidationSettings),(0,c.isDefined)(g.updateOwnerInAutoParentMode)&&(a.updateOwnerInAutoParentMode=g.updateOwnerInAutoParentMode),(0,c.isDefined)(g.getIsValidateDependenciesRequired)&&(a.getIsValidateDependenciesRequired=g.getIsValidateDependenciesRequired)),a},C}();u.ValidationControllerSettings=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ViewVisualModel=void 0;var c=o(21),I=o(194),C=o(196),g=o(197),a=o(198),p=o(199),s=o(200),l=o(1),d=o(2),h=o(69),v=o(48),x=o(70),b=function(){function y(E,S,O,w,T,k,R){this._fLockCount=0,this.lockChangesProcessing=!1,this.owner=E,this.tasks=new I.TaskCollection,this.tasks.importFromObject(S),this.dependencies=new C.DependencyCollection,this.dependencies.importFromObject(O),this.resources=new c.ResourceCollection,this.resources.importFromObject(w),this.assignments=new g.ResourceAssignmentCollection,this.assignments.importFromObject(T),this._itemList=new Array,this._viewItemList=new Array,this._workTimeCalculator=new s.WorkingTimeCalculator(k,R),this.updateModel(!0)}return Object.defineProperty(y.prototype,"renderHelper",{get:function(){return this.owner.renderHelper},enumerable:!1,configurable:!0}),y.prototype.updateModel=function(E){this._itemList.splice(0,this._itemList.length);for(var S=this.tasks.items,O=0;O<S.length;O++){var w=S[O];w&&this._itemList.push(new a.ViewVisualModelItem(w,this.getAssignedResources(w)))}this.createHierarchy(E),this.populateItemsForView(),this.owner&&this.owner.currentSelectedTaskID&&this.changeTaskSelected(this.owner.currentSelectedTaskID,!0)},y.prototype.createHierarchy=function(E){var S=this;this.root=new a.ViewVisualModelItem(null,null);for(var O=this._itemList,w=O.reduce(function(B,W){var z,V=null===(z=W.task)||void 0===z?void 0:z.internalId;return(0,l.isDefined)(V)&&(B[V]=W),B},{}),T=this.requireFirstLoadParentAutoCalc&&E,k=0;k<O.length;k++){var R=O[k],P=w[R.task.parentId]||this.root;R.parent=P,P.addChild(R),T&&this.owner.validationController.recalculateParents(R,function(B){if((0,l.isDefined)(B.id)){var W=S.tasks.getItemById(B.id);(0,l.isDefined)(B.start)&&(W.start=B.start),(0,l.isDefined)(B.end)&&(W.end=B.end),(0,l.isDefined)(B.progress)&&(W.progress=B.progress)}})}T&&this.owner.dispatcher.notifyParentDataRecalculated(this.getCurrentTaskData())},y.prototype.getCurrentTaskData=function(){var E=this;return this.tasks.items.map(function(S){return E.getTaskObjectForDataSource(S)})},y.prototype.getTaskObjectForDataSource=function(E){var S=E.parentId&&this.tasks.getItemById(E.parentId),O=this.getRootTaskId();return{id:E.id,start:E.start,end:E.end,duration:E.duration,description:E.description,parentId:O&&E.parentId===O?E.parentId:S?.id,progress:E.progress,color:E.color,taskType:E.taskType,title:E.title,customFields:E.customFields,expanded:E.expanded}},y.prototype.getDependencyObjectForDataSource=function(E){var S=E instanceof h.Dependency?E:this.getItemByPublicId("dependency",E);if(S){var O=this.convertInternalToPublicKey("task",S.predecessorId),w=this.convertInternalToPublicKey("task",S.successorId);return{id:S.id,predecessorId:(0,l.isDefined)(O)?O:S.predecessorId,successorId:(0,l.isDefined)(w)?w:S.successorId,type:S.type}}return null},y.prototype.getResourceObjectForDataSource=function(E){var S=E instanceof v.Resource?E:this.getItemByPublicId("resource",E);return S?{id:S.id,text:S.text,color:S.color}:null},y.prototype.getResourceAssignmentObjectForDataSource=function(E){var S=E instanceof x.ResourceAssignment?E:this.getItemByPublicId("assignment",E);if(S){var O=this.convertInternalToPublicKey("task",S.taskId),w=this.convertInternalToPublicKey("resource",S.resourceId);return{id:S.id,taskId:(0,l.isDefined)(O)?O:S.taskId,resourceId:(0,l.isDefined)(w)?w:S.resourceId}}return null},y.prototype.populateItemsForView=function(){this._viewItemList.splice(0,this._viewItemList.length),this.populateVisibleItems(this.root),this.updateVisibleItemDependencies()},y.prototype.populateVisibleItems=function(E){var S=this,O=E===this.root;E&&(E.task||O)&&(O||(this._viewItemList.push(E),E.visibleIndex=this._viewItemList.length-1),(E.getExpanded()||E===this.root)&&E.children.forEach(function(w){return S.populateVisibleItems(w)}))},y.prototype.updateVisibleItemDependencies=function(){for(var E=this._viewItemList,S=0;S<E.length;S++){var O=E[S],w=this.getTasVisibleDependencies(O.task);O.setDependencies(w)}},y.prototype.getAssignedResources=function(E){var S=this,O=new c.ResourceCollection;return this.assignments.items.filter(function(w){return w.taskId==E.internalId}).forEach(function(w){O.add(S.resources.getItemById(w.resourceId))}),O},y.prototype.getTasVisibleDependencies=function(E){for(var S=new Array,O=E.internalId,w=this.dependencies.items.filter(function(P){return P.successorId==O}),T=0;T<w.length;T++){var k=w[T],R=this.findItem(k.predecessorId);R&&R.getVisible()&&S.push(new p.ViewVisualModelDependencyInfo(k.internalId,R,k.type))}return S},y.prototype.changeTaskExpanded=function(E,S){var O=this.tasks.getItemById(String(E));O&&(O.expanded=S,this.changed())},y.prototype.changeTaskVisibility=function(E,S){var O=this.findItem(E);O&&(O.visible=S,this.changed())},y.prototype.changeTaskSelected=function(E,S){var O=this._itemList.filter(function(k){return k.task&&k.task.internalId===E})[0];if(O){O.selected=S;var w=this.findItem(E),T=w&&w.visibleIndex;T>-1&&this.renderHelper.recreateTaskElement(T)}},y.prototype.beginUpdate=function(){this._fLockCount++},y.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},y.prototype.compareTaskOrder=function(E){var S=new I.TaskCollection;S.importFromObject(E);var O=S.items,w=this.tasks.items;if(O.length!==w.length)return!1;for(var T=0;T<O.length;T++)if(O[T].id!==w[T].id)return!1;return!0},y.prototype.refreshTaskDataIfRequires=function(E){var S=!this.lockChangesProcessing&&!this.compareTaskOrder(E);if(S){var O=this.saveTaskInternalIds();this.tasks.importFromObject(E),this.restoreTaskInternalIds(O),this.updateModel()}return S},y.prototype.saveTaskInternalIds=function(){var E={};return this.tasks.items.map(function(S){return E[S.id]=S.internalId}),E},y.prototype.restoreTaskInternalIds=function(E){for(var S in E)if(Object.prototype.hasOwnProperty.call(E,S)){var O=this.tasks.getItemByPublicId(S);O&&(O.internalId=E[S])}},y.prototype.canCreateDependency=function(E,S){if(!E||!S||E===S)return!1;var O=!1;if(this.enableDependencyValidation){var w=this.getDependentTasksHash();O=this.parentAutoCalc?this.checkTasksInterdependence(E,S,w)||this.checkParent(E,S)||this.checkParent(S,E):this.checkDependencyChain([E],[S],w,[])}return!O},y.prototype.checkParent=function(E,S){return this.getTaskTreeLine(E).indexOf(S)>-1},y.prototype.getTaskTreeLine=function(E){var S=[E],O=this.findItem(E);if(O)for(O=O.parent;O?.task;)S.push(O?.task.internalId),O=O.parent;return S},y.prototype.getDependentTasksHash=function(){var E={};return this.dependencies.items.forEach(function(S){var O,w,T=S.predecessorId,k=S.successorId;null!==(O=E[T])&&void 0!==O||(E[T]=[]),E[T].indexOf(k)<0&&E[T].push(k),null!==(w=E[k])&&void 0!==w||(E[k]=[]),E[k].indexOf(T)<0&&E[k].push(T)}),E},y.prototype.checkTasksInterdependence=function(E,S,O){for(var w,T,k=this.getTaskTreeLine(E).reverse(),R=this.getTaskTreeLine(S).reverse(),P=0;P<k.length-1;P++){var W=R.indexOf(k[P]);W>-1&&(w=k[P+1],T=R[W+1])}return w||T||(w=k[0],T=R[0]),this.checkDependencyChain(this.getBranchIds(w),this.getBranchIds(T),O,[])},y.prototype.checkDependencyChain=function(E,S,O,w){if(E.some(function(R){return S.indexOf(R)>-1}))return!0;w.push.apply(w,E);for(var T=0;T<E.length;T++){var k=O[E[T]];if(k&&this.checkDependencyChain(k.filter(function(R){return-1===w.indexOf(R)}),S,O,w))return!0}return!1},y.prototype.getBranchIds=function(E){var S=this,O=[E],T=this.findItem(E)?.children;return T&&T.forEach(function(k){var R,P=null===(R=k.task)||void 0===R?void 0:R.internalId;P&&(O=O.concat(S.getBranchIds(P)))}),O},y.prototype.getTasksExpandedState=function(){var S={};return this.tasks.items.forEach(function(O){return S[O.id]=O.expanded}),S},y.prototype.applyTasksExpandedState=function(E){if(E){for(var S in this.beginUpdate(),E)Object.prototype.hasOwnProperty.call(E,S)&&this.changeTaskExpanded(S,E[S]);this.endUpdate()}},y.prototype.changed=function(){0===this._fLockCount&&(this.populateItemsForView(),this.owner&&this.owner.onVisualModelChanged&&this.owner.onVisualModelChanged())},y.prototype.findItem=function(E){return this._viewItemList.filter(function(S){return S.task&&S.task.internalId===E})[0]},Object.defineProperty(y.prototype,"items",{get:function(){return this._viewItemList},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this.items.length},enumerable:!1,configurable:!0}),y.prototype.getTaskVisibility=function(E){var S=this.findItem(E);return!!S&&S.getVisible()},y.prototype.getTaskSelected=function(E){var S=this.findItem(E);return!!S&&S.selected},Object.defineProperty(y.prototype,"noWorkingIntervals",{get:function(){return this._workTimeCalculator.noWorkingIntervals},enumerable:!1,configurable:!0}),y.prototype.updateRange=function(E){this._workTimeCalculator.updateRange(E)},y.prototype.taskHasChildrenByIndex=function(E){return this._viewItemList[E].children.length>0},y.prototype.taskHasChildren=function(E){var S=this.findItem(E);return S&&S.children.length>0},Object.defineProperty(y.prototype,"enableDependencyValidation",{get:function(){var E;return null===(E=(this.owner&&this.owner.settings)?.validation)||void 0===E?void 0:E.validateDependencies},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"parentAutoCalc",{get:function(){var E=this.owner&&this.owner.settings;return E&&E.validation&&E.validation.autoUpdateParentTasks},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"enablePredecessorGap",{get:function(){var E=this.owner&&this.owner.settings;return E&&E.validation&&E.validation.enablePredecessorGap},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!1,configurable:!0}),y.prototype.isTaskToCalculateByChildren=function(E){return this.parentAutoCalc&&this.taskHasChildren(E)},y.prototype.hasTasks=function(){return this.tasks.length>0},y.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},y.prototype.convertPublicToInternalKey=function(E,S){var O=this.getItemByPublicId(E,S);return O&&O.internalId},y.prototype.convertInternalToPublicKey=function(E,S){var O=this.getItemByInternalId(E,S);return O&&O.id},y.prototype.getItemByPublicId=function(E,S){var O=S.toString();switch(E){case"task":return this.tasks.getItemByPublicId(O);case"dependency":return this.dependencies.getItemByPublicId(O);case"resource":return this.resources.getItemByPublicId(O);case"assignment":return this.assignments.getItemByPublicId(O)}return null},y.prototype.getItemByInternalId=function(E,S){switch(E){case"task":return this.tasks.getItemById(S);case"dependency":return this.dependencies.getItemById(S);case"resource":return this.resources.getItemById(S);case"assignment":return this.assignments.getItemById(S)}return null},y.prototype.findAssignment=function(E,S){var O=this.convertPublicToInternalKey("resource",E),w=this.convertPublicToInternalKey("task",S);return this.assignments.items.filter(function(T){return T.resourceId===O&&T.taskId===w})[0]},y.prototype.findAllTaskAssignments=function(E){return this.assignments.items.filter(function(S){return S.taskId===E})},y.prototype.getAllVisibleTaskIndices=function(E,S){var O,w=[];null!=E||(E=0),null!=S||(S=this._viewItemList.length-1);for(var T=E;T<=S;T++){var k=this._viewItemList[T];k?.getVisible()&&null!==(O=k?.task)&&void 0!==O&&O.isValid&&w.push(T)}return w},y.prototype.getVisibleTasks=function(){var E=this;return this.tasks.items.filter(function(S){return S&&E.getTaskVisibility(S.internalId)&&S.isValid()})},y.prototype.getVisibleDependencies=function(){var E=this.getVisibleTasks().map(function(S){return S.internalId});return this.dependencies.items.filter(function(S){return S&&E.indexOf(S.successorId)>-1&&E.indexOf(S.predecessorId)>-1})},y.prototype.getVisibleResourceAssignments=function(){var E=this.getVisibleTasks().map(function(S){return S.internalId});return this.assignments.items.filter(function(S){return S&&E.indexOf(S.taskId)>-1})},y.prototype.getVisibleResources=function(){for(var E=[],S=this.getVisibleResourceAssignments(),O=0;O<S.length;O++){var w=this.getItemByInternalId("resource",S[O].resourceId);w&&-1===E.indexOf(w)&&E.push(w)}return E},y.prototype.getRootTaskId=function(){var E;return null!==(E=this.rootTaskId)&&void 0!==E||(this.rootTaskId=this.calculateRootTaskId()),this.rootTaskId},y.prototype.calculateRootTaskId=function(){var E=this.items[0];if(!E)return null;for(;E.parent&&E.task;)E=E.parent;return E.children[0].task.parentId},y.prototype.getTaskMinStart=function(){var E=this.owner.dataRange.start;return this.tasks.items.forEach(function(S){S.isValid()&&S.start.getTime()<E.getTime()&&(E=S.start)}),E},y.prototype.getTaskMaxEnd=function(){var E=this.owner.dataRange.end;return this.tasks.items.forEach(function(S){S.isValid()&&S.end.getTime()>E.getTime()&&(E=S.end)}),E},y.prototype.processServerInsertedKey=function(E,S,O){var w;O===d.GanttDataObjectNames.task&&this.tasks.invalidate(),O===d.GanttDataObjectNames.dependency&&(this.dependencies.invalidate(),this.updateVisibleItemDependencies()),O===d.GanttDataObjectNames.resource&&this.resources.invalidate(),O===d.GanttDataObjectNames.resourceAssignment&&this.assignments.invalidate(),null===(w=this.owner)||void 0===w||w.updateHistoryObsoleteInsertedKey(E,S,O)},y.prototype.onBeginDataObjectCreate=function(){var E,S;null===(S=(E=this.owner).lockUpdateWithReload)||void 0===S||S.call(E)},y.prototype.onEndDataObjectCreate=function(){var E,S;null===(S=(E=this.owner).unlockUpdateWithReload)||void 0===S||S.call(E)},y}();u.ViewVisualModel=b},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskCollection=void 0;var c=o(0),I=o(195),C=function(g){function a(){return null!==g&&g.apply(this,arguments)||this}return c.__extends(a,g),a.prototype.createItem=function(){return new I.Task},a}(o(22).CollectionBase);u.TaskCollection=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Task=void 0;var c=o(0),I=o(1),C=function(g){function a(){var p=g.call(this)||this;return p.start=null,p.end=null,p.duration=null,p.description="",p.parentId=null,p.title="",p.owner=null,p.progress=0,p.taskType=null,p.customFields={},p.expanded=!0,p.color="",p}return c.__extends(a,g),Object.defineProperty(a.prototype,"normalizedProgress",{get:function(){return Math.max(Math.min(this.progress,100),0)},enumerable:!1,configurable:!0}),a.prototype.assignFromObject=function(p){(0,I.isDefined)(p)&&(g.prototype.assignFromObject.call(this,p),this.owner=p.owner,this.parentId=(0,I.isDefined)(p.parentId)?String(p.parentId):null,this.description=p.description,this.title=p.title,this.start="string"==typeof p.start?new Date(p.start):p.start||new Date(0),this.end="string"==typeof p.end?new Date(p.end):p.end||new Date(0),this.duration=p.duration,this.progress=p.progress,this.taskType=p.taskType,(0,I.isDefined)(p.expanded)&&(this.expanded=!!p.expanded),(0,I.isDefined)(p.color)&&(this.color=p.color),this.assignCustomFields(p.customFields))},a.prototype.assignCustomFields=function(p){if(p)for(var s in p)Object.prototype.hasOwnProperty.call(p,s)&&(this.customFields[s]=p[s])},a.prototype.isMilestone=function(){return this.start.getTime()===this.end.getTime()},a.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},a.prototype.isValid=function(){return!!this.start.getTime()&&!!this.end.getTime()},a}(o(2).DataObject);u.Task=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DependencyCollection=void 0;var c=o(0),I=o(22),C=o(69),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.Dependency},p}(I.CollectionBase);u.DependencyCollection=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ResourceAssignmentCollection=void 0;var c=o(0),I=o(22),C=o(70),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.ResourceAssignment},p}(I.CollectionBase);u.ResourceAssignmentCollection=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ViewVisualModelItem=void 0;var c=o(1),I=o(12),C=function(){function g(a,p){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=a,this.resources=p,this.children=new Array,this.isCustom=!1,this.size=new I.Size(0,0)}return Object.defineProperty(g.prototype,"resourceText",{get:function(){var a="";return this.resources.items.forEach(function(p){return a+=p.text+" "}),a},enumerable:!1,configurable:!0}),g.prototype.addChild=function(a){(0,c.isDefined)(a)&&this.children.indexOf(a)<0&&this.children.push(a)},g.prototype.removeChild=function(a){var p=this.children.indexOf(a);p>-1&&this.children.splice(p,1)},g.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},g.prototype.getVisible=function(){if(!this.visible)return!1;for(var a=this.parent;a;){if(!a.visible)return!1;a=a.parent}return!0},g.prototype.changeVisibility=function(a){this.visible=a},g.prototype.changeSelection=function(a){this.selected=a},g.prototype.setDependencies=function(a){a&&(this.dependencies=a.slice())},g}();u.ViewVisualModelItem=C},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.ViewVisualModelDependencyInfo=void 0,u.ViewVisualModelDependencyInfo=function(I,C,g){this.id=I,this.predecessor=C,this.type=g}},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.WorkingTimeCalculator=void 0;var c=o(201),I=o(209),C=o(8),g=function(){function a(p,s){this._workingRules=new c.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=p,this._workingRules.importFromObject(s)}return a.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var p=this._workingRules.items,s=0;s<p.length;s++)this.processRule(p[s]);this.sortList()}},a.prototype.processRule=function(p){for(var s=p.recurrence.calculatePoints(this._calculationRange.start,this._calculationRange.end),l=function(v){var b=C.DateTimeUtils.getDayNumber(s[v]),y=d._workDayList.filter(function(E){return E.dayNumber==b})[0];y?(y.isWorkDay=y.isWorkDay&&p.isWorkDay,y.addWorkingIntervals(p.workTimeRanges)):d._workDayList.push(new I.DayWorkingTimeInfo(b,p.isWorkDay,p.workTimeRanges))},d=this,h=0;h<s.length;h++)l(h)},a.prototype.sortList=function(){this._workDayList.sort(function(p,s){return p.dayNumber-s.dayNumber})},a.prototype.clearList=function(){this._workDayList.splice(0,this._workDayList.length)},a.prototype.calculateNoWorkTimeIntervals=function(){var p=this,s=new Array;return 0==this._workDayList.length&&this.calculateWorkDayList(),this._workDayList.forEach(function(l){return s=s.concat(p.getNoWorkTimeRangesFromDay(l))}),this.concatJointedRanges(s)},a.prototype.concatJointedRanges=function(p){for(var s=new Array,l=0;l<p.length;l++){var d=p[l];s.length>0&&C.DateTimeUtils.compareDates(s[s.length-1].end,d.start)<2?s[s.length-1].end=d.end:s.push(d)}return s},a.prototype.getNoWorkTimeRangesFromDay=function(p){return p.noWorkingIntervals.map(function(s){return C.DateTimeUtils.convertTimeRangeToDateRange(s,p.dayNumber)})},Object.defineProperty(a.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!1,configurable:!0}),a.prototype.updateRange=function(p){this._calculationRange=p,this.invalidate()},a.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},a}();u.WorkingTimeCalculator=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.WorkingDayRuleCollection=void 0;var c=o(0),I=o(22),C=o(202),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.createItem=function(){return new C.WorkingTimeRule},p}(I.CollectionBase);u.WorkingDayRuleCollection=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.WorkingTimeRule=void 0;var c=o(0),I=o(2),C=o(1),g=o(8),a=o(71),p=o(72),s=function(l){function d(h,v,x){void 0===h&&(h=null),void 0===v&&(v=!0),void 0===x&&(x=null);var b=l.call(this)||this;return b.isWorkDay=!0,b.workTimeRanges=new Array,b.recurrence=h,b.isWorkDay=v,x&&b.workTimeRanges.concat(x),b}return c.__extends(d,l),d.prototype.assignFromObject=function(h){if((0,C.isDefined)(h)){l.prototype.assignFromObject.call(this,h),this.recurrence=a.RecurrenceFactory.createRecurrenceByType(h.recurrenceType)||new p.Daily,(0,C.isDefined)(h.recurrence)&&this.recurrence.assignFromObject(h.recurrence),(0,C.isDefined)(h.isWorkDay)&&(this.isWorkDay=!!h.isWorkDay);var v=g.DateTimeUtils.convertToTimeRanges(h.workTimeRanges);v&&(this.workTimeRanges=v)}},d}(I.DataObject);u.WorkingTimeRule=s},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.DayOfWeek=void 0,(c=u.DayOfWeek||(u.DayOfWeek={}))[c.Sunday=0]="Sunday",c[c.Monday=1]="Monday",c[c.Tuesday=2]="Tuesday",c[c.Wednesday=3]="Wednesday",c[c.Thursday=4]="Thursday",c[c.Friday=5]="Friday",c[c.Saturday=6]="Saturday"},function(he,u,o){"use strict";var c;Object.defineProperty(u,"__esModule",{value:!0}),u.Month=void 0,(c=u.Month||(u.Month={}))[c.January=0]="January",c[c.February=1]="February",c[c.March=2]="March",c[c.April=3]="April",c[c.May=4]="May",c[c.June=5]="June",c[c.July=6]="July",c[c.August=7]="August",c[c.September=8]="September",c[c.October=9]="October",c[c.November=10]="November",c[c.December=11]="December"},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Weekly=void 0;var c=o(0),I=o(38),C=o(8),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.checkDate=function(s){return C.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,s)},p.prototype.checkInterval=function(s){return C.DateTimeUtils.getWeeksBetween(this.start,s)%this.interval==0},p.prototype.calculatePointByInterval=function(s){var l=C.DateTimeUtils.getWeeksBetween(this.start,s),d=Math.floor(l/this.interval);return(l%this.interval>0||s.getDay()>=this.dayOfWeekInternal)&&d++,this.calcNextPointWithWeekCount(this.start,d*this.interval)},p.prototype.calculateNearestPoint=function(s){var l=this.dayOfWeekInternal-s.getDay();return l>0?C.DateTimeUtils.addDays(new Date(s),l):this.calcNextPointWithWeekCount(s,1)},p.prototype.calcNextPointWithWeekCount=function(s,l){void 0===l&&(l=1);var d=7*l+this.dayOfWeekInternal-s.getDay();return C.DateTimeUtils.addDays(new Date(s),d)},Object.defineProperty(p.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(s){this.dayOfWeekInternal=s},enumerable:!1,configurable:!0}),p}(I.RecurrenceBase);u.Weekly=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Monthly=void 0;var c=o(0),I=o(38),C=o(8),g=o(207),a=function(p){function s(){return null!==p&&p.apply(this,arguments)||this}return c.__extends(s,p),s.prototype.checkDate=function(l){return this._calculateByDayOfWeek?C.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(l,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):C.DateTimeUtils.checkDayOfMonth(this.dayInternal,l)},s.prototype.checkInterval=function(l){return C.DateTimeUtils.getMonthsDifference(this.start,l)%this.interval==0},s.prototype.calculatePointByInterval=function(l){var d=this.start,h=C.DateTimeUtils.getMonthsDifference(d,l),v=Math.floor(h/this.interval)*this.interval,x=new g.MonthInfo(d.getMonth(),d.getFullYear());x.addMonths(v);var b=this.getSpecDayInMonth(x.year,x.month);return C.DateTimeUtils.compareDates(b,l)>=0&&(x.addMonths(this.interval),b=this.getSpecDayInMonth(x.year,x.month)),b},s.prototype.calculateNearestPoint=function(l){var d=l.getMonth(),h=l.getFullYear(),v=this.getSpecDayInMonth(h,d);if(C.DateTimeUtils.compareDates(v,l)>=0){var x=new g.MonthInfo(d,h);x.addMonths(1),v=this.getSpecDayInMonth(x.year,x.month)}return v},Object.defineProperty(s.prototype,"day",{get:function(){return this.dayInternal},set:function(l){this.dayInternal=l},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(l){this.dayOfWeekInternal=l},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(l){this.dayOfWeekOccurrenceInternal=l},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(l){this._calculateByDayOfWeek=l},enumerable:!1,configurable:!0}),s}(I.RecurrenceBase);u.Monthly=a},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.MonthInfo=void 0;var c=o(8),I=function(){function C(g,a){this.month=g,this.year=a}return C.prototype.addMonths=function(g){var a=c.DateTimeUtils.getNextMonth(this.month,g),p=Math.floor(g/12);a<this.month&&++p,this.month=a,this.year+=p},C}();u.MonthInfo=I},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.Yearly=void 0;var c=o(0),I=o(38),C=o(8),g=function(a){function p(){return null!==a&&a.apply(this,arguments)||this}return c.__extends(p,a),p.prototype.checkDate=function(s){return!!C.DateTimeUtils.checkMonth(this.month,s)&&(this._calculateByDayOfWeek?C.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(s,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):C.DateTimeUtils.checkDayOfMonth(this.dayInternal,s))},p.prototype.checkInterval=function(s){return C.DateTimeUtils.getYearsDifference(this.start,s)%this.interval==0},p.prototype.calculatePointByInterval=function(s){var l=C.DateTimeUtils.getYearsDifference(this.start,s),d=Math.floor(l/this.interval)*this.interval,h=this.start.getFullYear()+d,v=this.getSpecDayInMonth(h,this.monthInternal);return C.DateTimeUtils.compareDates(v,s)>=0&&(v=this.getSpecDayInMonth(h+=this.interval,this.monthInternal)),v},p.prototype.calculateNearestPoint=function(s){var l=s.getFullYear(),d=this.getSpecDayInMonth(l,this.monthInternal);return C.DateTimeUtils.compareDates(d,s)>=0&&(d=this.getSpecDayInMonth(++l,this.monthInternal)),d},Object.defineProperty(p.prototype,"month",{get:function(){return this.monthInternal},set:function(s){this.monthInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"day",{get:function(){return this.dayInternal},set:function(s){this.dayInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(s){this.dayOfWeekInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(s){this.dayOfWeekOccurrenceInternal=s},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(s){this._calculateByDayOfWeek=s},enumerable:!1,configurable:!0}),p}(I.RecurrenceBase);u.Yearly=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.DayWorkingTimeInfo=void 0;var c=o(56),I=o(8),C=o(55),g=function(){function a(p,s,l){void 0===p&&(p=0),void 0===s&&(s=!0),void 0===l&&(l=null),this._workingIntervals=new Array,this.dayNumber=p,this.isWorkDay=s,this.addWorkingIntervals(l)}return a.prototype.addWorkingIntervals=function(p){p&&(this._workingIntervals=this._workingIntervals.concat(p.filter(function(s){return!!s})),this.rearrangeWorkingIntervals())},a.prototype.rearrangeWorkingIntervals=function(){for(var p=0;p<this._workingIntervals.length;p++)this.concatWithIntersectedRanges(this._workingIntervals[p]);this.sortIntervals()},a.prototype.concatWithIntersectedRanges=function(p){var s=this;this.getIntersectedIntervals(p).forEach(function(l){p.concatWith(l),s.removeInterval(l)})},a.prototype.getIntersectedIntervals=function(p){return this._workingIntervals.filter(function(s){return s.hasIntersect(p)&&s!==p})},a.prototype.sortIntervals=function(){this._workingIntervals.sort(function(p,s){return I.DateTimeUtils.caclTimeDifference(s.start,p.start)})},a.prototype.removeInterval=function(p){var s=this._workingIntervals.indexOf(p);s>-1&&s<this._workingIntervals.length&&this._workingIntervals.splice(s,1)},a.prototype.clearIntervals=function(){this._workingIntervals.splice(0,this._workingIntervals.length)},Object.defineProperty(a.prototype,"workingIntervals",{get:function(){return this._workingIntervals.slice()},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"noWorkingIntervals",{get:function(){var p=new Array;if(this.isWorkDay&&0===this._workingIntervals.length)return p;var s=this._workingIntervals.map(function(x){return x.end});s.splice(0,0,new C.Time);var l=this._workingIntervals.map(function(x){return x.start});l.push(I.DateTimeUtils.getLastTimeOfDay());for(var d=0;d<s.length;d++){var h=s[d],v=l[d];I.DateTimeUtils.areTimesEqual(h,v)||p.push(new c.TimeRange(h,v))}return p},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"isWorkDay",{get:function(){return this._isWorkDay},set:function(p){this._isWorkDay=p,p||this.clearIntervals()},enumerable:!1,configurable:!0}),a}();u.DayWorkingTimeInfo=g},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttViewApi=void 0;var c=function(){function I(C){this.maxZoom=3,this._ganttView=C}return Object.defineProperty(I.prototype,"currentZoom",{get:function(){return this._ganttView.currentZoom},set:function(C){this._ganttView.currentZoom=C},enumerable:!1,configurable:!0}),Object.defineProperty(I.prototype,"renderHelper",{get:function(){return this._ganttView.renderHelper},enumerable:!1,configurable:!0}),I.prototype.getTaskAreaContainerWidth=function(){return this.renderHelper.getTaskAreaContainerWidth()},I.prototype.updateTickSizeWidth=function(){this._ganttView.updateTickSizeWidth()},Object.defineProperty(I.prototype,"settings",{get:function(){return this._ganttView.settings},enumerable:!1,configurable:!0}),I.prototype.resetAndUpdate=function(){this._ganttView.resetAndUpdate()},I.prototype.scrollToDateCore=function(C,g){this._ganttView.scrollToDateCore(C,g)},Object.defineProperty(I.prototype,"ganttOwner",{get:function(){return this._ganttView.ganttOwner},enumerable:!1,configurable:!0}),I.prototype.scrollLeftByViewType=function(){this._ganttView.scrollLeftByViewType()},Object.defineProperty(I.prototype,"dataRange",{get:function(){return this._ganttView.dataRange},enumerable:!1,configurable:!0}),I.prototype.calculateAutoViewType=function(C,g){return this._ganttView.calculateAutoViewType(C,g)},I.prototype.zoomIn=function(C){void 0===C&&(C=this.getTaskAreaContainerWidth()/2);var g=this.renderHelper.getTargetDateByPos(C),a=this.settings.viewTypeRange.min;this.currentZoom<this.maxZoom?(this.currentZoom++,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType>a&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDateCore(g,-C)},I.prototype.zoomOut=function(C){void 0===C&&(C=this.renderHelper.getTaskAreaContainerWidth()/2);var g=this.renderHelper.getTargetDateByPos(C),a=this.settings.viewTypeRange.max;this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType<a&&(this.currentZoom=this.maxZoom,this.setViewType(this.settings.viewType+1,!1)),this.scrollToDateCore(g,-C)},I.prototype.setViewType=function(C,g){void 0===g&&(g=!0),null==C&&(C=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.settings.viewType!==C&&(this.settings.viewType=C,this.updateTickSizeWidth(),this.resetAndUpdate(),g&&this.scrollLeftByViewType(),this.ganttOwner.UpdateGanttViewType&&this.ganttOwner.UpdateGanttViewType(C))},I.prototype.setViewTypeRange=function(C,g){void 0!==C&&(this.settings.viewTypeRange.min=Math.min(C,g)),void 0!==g&&(this.settings.viewTypeRange.max=Math.max(C,g));var a=this.settings.viewTypeRange.min,p=this.settings.viewTypeRange.max,s=this.settings.viewType;a>s?this.setViewType(a):p<s&&this.setViewType(p)},I}();u.GanttViewApi=c},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.TaskAreaEventsListener=void 0;var c=o(5),I=o(1),C=o(3),g=o(9),a=o(66),p=o(212),s=o(13),l=function(){function d(h){this._owner=h}return Object.defineProperty(d.prototype,"taskEditController",{get:function(){var h;return null===(h=this._owner)||void 0===h?void 0:h.taskEditController},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"renderHelper",{get:function(){var h;return null===(h=this._owner)||void 0===h?void 0:h.renderHelper},enumerable:!1,configurable:!0}),d.prototype.getHandler=function(h){return this.handlers[h]},d.prototype.setHandler=function(h,v){this.handlers[h]=v},Object.defineProperty(d.prototype,"handlers",{get:function(){var h;return null!==(h=this._handlers)&&void 0!==h||(this._handlers=this.createTaskAreaEventHandlers()),this._handlers},enumerable:!1,configurable:!0}),d.prototype.createTaskAreaEventHandlers=function(){var h={};return h[s.TaskAreaStateEventNames.TASK_AREA_CLICK]=this.taskAreaClickHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_DBLCLICK]=this.taskAreaDblClickHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_SCROLL]=this.taskAreaScrollHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_START_MOVE]=this.taskAreaStartMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_PROCESS_MOVE]=this.taskAreaProcessMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_END_MOVE]=this.taskAreaEndMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_ZOOM_IN]=this.taskAreaZoomInHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_ZOOM_OUT]=this.taskAreaZoomOutHandler.bind(this),h[s.TaskAreaStateEventNames.CONTEXTMENU_SHOW]=this.taskAreaContextMenuShowHandler.bind(this),h[s.TaskAreaStateEventNames.CONTEXTMENU_HIDE]=this.taskAreaContextMenuHideHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_SELECTION]=this.taskSelectionHandler.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_SELECTION]=this.dependencySelectionHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_EDIT_START]=this.taskEditStartHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_EDIT_END]=this.taskEditEndHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_LEAVE]=this.taskLeaveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_MOVE]=this.taskProcessMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_END_MOVE]=this.taskEndMoveHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_PROGRESS]=this.taskProcessProgressHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_END_PROGRESS]=this.taskEndProgressHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_START]=this.taskProcessStartHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_CONFIRM_START]=this.taskConfirmStartHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_PROCESS_END]=this.taskProcessEndHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_CONFIRM_END]=this.taskConfirmEndHandler.bind(this),h[s.TaskAreaStateEventNames.GET_DEPENDENCY_POINTS]=this.getDependencyPoints.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_START]=this.dependencyStartHandler.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_END]=this.dependencyEndHandler.bind(this),h[s.TaskAreaStateEventNames.DEPENDENCY_PROCESS]=this.dependencyProcessHandler.bind(this),h[s.TaskAreaStateEventNames.TASK_AREA_KEY_DOWN]=this.onTaskAreaKeyDown.bind(this),h[s.TaskAreaStateEventNames.GET_COORDINATES_REF_POINT]=this.getCoordinatesRefPoint.bind(this),h[s.TaskAreaStateEventNames.STATE_EXIT]=function(){},h},d.prototype.taskAreaClickHandler=function(h){return this._owner.onTaskAreaClick(h.rowIndex,h.triggerEvent)},d.prototype.taskAreaDblClickHandler=function(h){this._owner.onTaskAreaDblClick(h.rowIndex,h.triggerEvent)},d.prototype.taskSelectionHandler=function(h){this._owner.onTaskSelectionChanged(h.rowIndex,h.triggerEvent)},d.prototype.taskAreaContextMenuShowHandler=function(h){this._owner.onTaskAreaContextMenu(h.rowIndex,h.triggerEvent,h.info.type)},d.prototype.taskAreaContextMenuHideHandler=function(){this._owner.hidePopupMenu()},d.prototype.taskAreaScrollHandler=function(h){this._owner.updateView()},d.prototype.dependencySelectionHandler=function(h){var v=h.info.key,x=this.taskEditController.dependencyId;(v!==x||!v&&(0,I.isDefined)(x))&&this._owner.selectDependency(v)},Object.defineProperty(d.prototype,"ganttMovingHelper",{get:function(){var h;return null!==(h=this._ganttMovingHelper)&&void 0!==h||(this._ganttMovingHelper=new p.GanttMovingHelper(this._owner.renderHelper.taskAreaContainer)),this._ganttMovingHelper},enumerable:!1,configurable:!0}),d.prototype.taskAreaStartMoveHandler=function(h){this.ganttMovingHelper.startMoving(h.triggerEvent)},d.prototype.taskAreaProcessMoveHandler=function(h){this.ganttMovingHelper.movingInfo&&(this.ganttMovingHelper.onMouseMove(h.triggerEvent),h.triggerEvent.preventDefault())},d.prototype.taskAreaEndMoveHandler=function(h){this.ganttMovingHelper.onMouseUp(h.triggerEvent)},d.prototype.taskAreaZoomInHandler=function(h){this._owner.zoomIn(h.info.leftPos)},d.prototype.taskAreaZoomOutHandler=function(h){this._owner.zoomOut(h.info.leftPos)},d.prototype.getCoordinatesRefPoint=function(h){var v=C.DomUtils.getAbsolutePositionX(this.renderHelper.taskAreaContainer.getElement()),x=C.DomUtils.getAbsolutePositionY(this.renderHelper.taskAreaContainer.getElement());return new c.Point(v,x)},d.prototype.taskEditStartHandler=function(h){this.taskEditController.show(h.rowIndex),this.taskEditController.showTaskInfo(g.EvtUtils.getEventX(h.triggerEvent))},d.prototype.taskLeaveHandler=function(h){this.taskEditController.cancel()},d.prototype.taskEditEndHandler=function(h){this.taskEditController.endEditing()},d.prototype.taskEndMoveHandler=function(h){this.taskEditController.confirmMove()},d.prototype.taskProcessMoveHandler=function(h){var v;return this.taskEditController.processMove(null!==(v=h.info.delta)&&void 0!==v?v:0)},d.prototype.taskEndProgressHandler=function(h){this.taskEditController.confirmProgress()},d.prototype.taskProcessProgressHandler=function(h){this.taskEditController.processProgress(h.info.position)},d.prototype.taskProcessStartHandler=function(h){this.taskEditController.processStart(h.info.position)},d.prototype.taskConfirmStartHandler=function(h){this.taskEditController.confirmStart()},d.prototype.taskProcessEndHandler=function(h){this.taskEditController.processEnd(h.info.position)},d.prototype.taskConfirmEndHandler=function(h){this.taskEditController.confirmEnd()},d.prototype.getDependencyPoints=function(h){var v={};return v.successorStart=new c.Point(C.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientWidth/2,C.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorStart)+this.taskEditController.dependencySuccessorStart.clientHeight/2),v.successorFinish=new c.Point(C.DomUtils.getAbsolutePositionX(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientWidth/2,C.DomUtils.getAbsolutePositionY(this.taskEditController.dependencySuccessorFinish)+this.taskEditController.dependencySuccessorFinish.clientHeight/2),v},d.prototype.dependencyStartHandler=function(h){this.taskEditController.startDependency(h.info.pos)},d.prototype.dependencyEndHandler=function(h){this.taskEditController.endDependency(h.info.type)},d.prototype.dependencyProcessHandler=function(h){this.taskEditController.processDependency(h.info.pos),this._owner.viewModel.tasks.items[h.rowIndex]&&this.taskEditController.showDependencySuccessor(h.rowIndex)},d.prototype.onTaskAreaKeyDown=function(h){var v=h.info.code;v==(a.ModifierKey.Ctrl|a.KeyCode.Key_z)&&this._owner.history.undo(),v==(a.ModifierKey.Ctrl|a.KeyCode.Key_y)&&this._owner.history.redo(),v==a.KeyCode.Delete&&this.taskEditController.deleteSelectedDependency()},d}();u.TaskAreaEventsListener=l},function(he,u,o){"use strict";Object.defineProperty(u,"__esModule",{value:!0}),u.GanttMovingHelper=void 0;var c=o(10),I=o(9),C=function(){function g(a){this.taskAreaContainer=a,this.movingInfo=null}return g.prototype.startMoving=function(a){this.movingInfo=this.calcMovingInfo(a),this.updateGanttAreaCursor(!0)},g.prototype.cancelMoving=function(){this.movingInfo=null},g.prototype.onMouseMove=function(a){this.move(a)},g.prototype.onMouseUp=function(a){this.cancelMoving(),this.updateGanttAreaCursor(!1)},g.prototype.move=function(a){this.updateScrollPosition(a)},g.prototype.updateScrollPosition=function(a){var p=Math.round(I.EvtUtils.getEventX(a)),s=Math.round(I.EvtUtils.getEventY(a)),l=p-this.movingInfo.eventX,d=s-this.movingInfo.eventY,h=l<0?-1:1,v=d<0?-1:1,x=h<0?this.movingInfo.maxRightDelta:this.movingInfo.maxLeftDelta,b=v<0?this.movingInfo.maxBottomDelta:this.movingInfo.maxTopDelta;Math.abs(l)>x&&(l=x*h),Math.abs(d)>b&&(d=b*v);var y=this.movingInfo.scrollLeft-l,E=this.movingInfo.scrollTop-d,S=this.taskAreaContainer;S.scrollLeft!==y&&(S.scrollLeft=y),S.scrollTop!==E&&(S.scrollTop=E)},g.prototype.calcMovingInfo=function(a){var p=this.taskAreaContainer;return{eventX:I.EvtUtils.getEventX(a),eventY:I.EvtUtils.getEventY(a),scrollLeft:p.scrollLeft,scrollTop:p.scrollTop,maxLeftDelta:p.scrollLeft,maxRightDelta:p.scrollWidth-p.scrollLeft-p.getElement().offsetWidth,maxTopDelta:p.scrollTop,maxBottomDelta:p.scrollHeight-p.scrollTop-p.getElement().offsetHeight}},g.prototype.updateGanttAreaCursor=function(a){var p=c.Browser.IE?"move":"grabbing";this.taskAreaContainer.getElement().style.cursor=a?p:"default"},g}();u.GanttMovingHelper=C}])},1759:(Rn,he,u)=>{"use strict";u.d(he,{Ay:()=>ee,Fx:()=>z,Lz:()=>Te,RW:()=>W,UX:()=>U,VB:()=>G,_5:()=>S,_h:()=>Y,al:()=>K,i9:()=>Be,ie:()=>k,p6:()=>T});var o=u(4370),c=u(8692),I=u(5998),C=u(9897),g=u(2721),a=u(9904),p=u(7674),s=u(3007),l=u(3068),d=u(913),h=u(5732);u(9800),u(4270);class b{constructor(_e,ye){this.instance=_e,this.zone=ye,this.subscriptions={},this.events={}}hasEvent(_e){return 0!==this.getEmitter(_e).observers.length}fireEvent(_e,ye){let ne=this.getEmitter(_e);ne.observers.length&&((this.subscriptions[_e]||[]).length===ne.observers.length?ne.next(ye&&ye[0]):this.zone.run(()=>ne.next(ye&&ye[0])))}on(_e,ye){if("string"==typeof _e){let ne=this.subscriptions[_e]||[],ce=this.getEmitter(_e).subscribe(ye.bind(this.instance)),le=ce.unsubscribe.bind(ce);ne.push({handler:ye,unsubscribe:le}),this.subscriptions[_e]=ne}else{let ne=_e;Object.keys(ne).forEach(ce=>this.on(ce,ne[ce]))}}off(_e,ye){let ne=this.subscriptions[_e]||[];ye?ne.some((ce,le)=>{if(ce.handler===ye)return ce.unsubscribe(),ne.splice(le,1),!0}):(ne.forEach(ce=>{ce.unsubscribe()}),ne.splice(0,ne.length))}dispose(){}addEmitter(_e,ye){this.events[_e]=ye}getEmitter(_e){return this.events[_e]||(this.events[_e]=new o.vpe),this.events[_e]}}class y{constructor(_e,ye){this.zone=_e,this.component=ye,this.lockedValueChangeEvent=!1}fireNgEvent(_e,ye){if(this.lockedValueChangeEvent&&"valueChange"===_e)return;let ne=this.component[_e];ne&&ne.observers.length&&this.zone.run(()=>{ne.next(ye&&ye[0])})}createEmitters(_e){_e.forEach(ye=>{this.component[ye.emit]=new o.vpe})}}function E(ae){return ae.get?ae.get(0):ae}class S{setHost(_e){this.host=_e}setTemplate(_e){this.host.setTemplate(_e)}}const O="dx-template-wrapper";let T=(()=>{class ae{constructor(ye,ne,ce,le,pe){this.templateRef=ye,this.viewContainerRef=ne,this.renderer=le,this.zone=pe,ce.setTemplate(this)}set dxTemplateOf(ye){this.name=ye}renderTemplate(ye){const ne=this.viewContainerRef.createEmbeddedView(this.templateRef,{$implicit:ye.model,index:ye.index}),ce=E(ye.container);return ye.container&&ne.rootNodes.forEach(le=>{this.renderer.appendChild(ce,le)}),ne}render(ye){let ne;return ne=this.zone.isStable?this.zone.run(()=>this.renderTemplate(ye)):this.renderTemplate(ye),ne.detectChanges(),ne.rootNodes.forEach(ce=>{1===ce.nodeType&&C.Z.setClass(ce,O,!0),(0,g.J_)(ce,"dxremove",({},le)=>{(!le||!le._angularIntegration)&&ne.destroy()})}),ne.rootNodes}}return ae.\u0275fac=function(ye){return new(ye||ae)(o.Y36(o.Rgc),o.Y36(o.s_b),o.Y36(S),o.Y36(o.Qsj),o.Y36(o.R0b))},ae.\u0275dir=o.lG2({type:ae,selectors:[["","dxTemplate",""]],inputs:{dxTemplateOf:"dxTemplateOf"}}),ae})(),k=(()=>{class ae{}return ae.\u0275fac=function(ye){return new(ye||ae)},ae.\u0275mod=o.oAB({type:ae}),ae.\u0275inj=o.cJS({}),ae})();const R="dx-visibility-change-handler";let P=(()=>{class ae{constructor(){this._initialOptions={},this._collectionContainerImpl=new B(this._setOption.bind(this),this._filterItems.bind(this))}_optionChangedHandler(ye){let ne=this._fullOptionPath();if(0===ye.fullName.indexOf(ne)){let le=this[ye.fullName.slice(ne.length)+"Change"];le&&le.next(ye.value)}}_createEventEmitters(ye){ye.forEach(ne=>{this[ne.emit]=new o.vpe})}_getOption(ye){return this.isLinked?this.instance.option(this._fullOptionPath()+ye):this._initialOptions[ye]}_setOption(ye,ne){if(this.isLinked){const ce=this._fullOptionPath()+ye;this.instance.option(ce,ne)}else this._initialOptions[ye]=ne}_addRemovedOption(ye){this.instance&&this.removedNestedComponents&&this.removedNestedComponents.push(ye)}_deleteRemovedOptions(ye){this.instance&&this.removedNestedComponents&&(this.removedNestedComponents=this.removedNestedComponents.filter(ne=>!ne.startsWith(ye)))}_addRecreatedComponent(){this.instance&&this.recreatedNestedComponents&&this.recreatedNestedComponents.push({getOptionPath:()=>this._getOptionPath()})}_getOptionPath(){return this._hostOptionPath()+this._optionPath}setHost(ye,ne){this._host=ye,this._hostOptionPath=ne,this.optionChangedHandlers.subscribe(this._optionChangedHandler.bind(this))}setChildren(ye,ne){return this.resetOptions(ye),this._collectionContainerImpl.setChildren(ye,ne)}_filterItems(ye){return ye.filter(ne=>ne!==this)}get instance(){return this._host&&this._host.instance}get resetOptions(){return this._host&&this._host.resetOptions}get isRecreated(){return this._host&&this._host.isRecreated}get removedNestedComponents(){return this._host&&this._host.removedNestedComponents}set removedNestedComponents(ye){this._host.removedNestedComponents=ye}get recreatedNestedComponents(){return this._host&&this._host.recreatedNestedComponents}set recreatedNestedComponents(ye){this._host.recreatedNestedComponents=ye}get isLinked(){return!!this.instance&&this._host.isLinked}get optionChangedHandlers(){return this._host&&this._host.optionChangedHandlers}}return ae.\u0275fac=function(ye){return new(ye||ae)},ae.\u0275cmp=o.Xpm({type:ae,selectors:[["ng-component"]],decls:0,vars:0,template:function(ye,ne){},encapsulation:2}),ae})();class B{constructor(_e,ye){this._setOption=_e,this._filterItems=ye,this._activatedQueries={}}setChildren(_e,ye){if(this._filterItems&&(ye=this._filterItems(ye)),ye.length&&(this._activatedQueries[_e]=!0),this._activatedQueries[_e]){let ne=ye.map((ce,le)=>(ce._index=le,ce._value));this._setOption(_e,ne)}}}let W=(()=>{class ae extends P{setHost(ye,ne){super.setHost(ye,ne),this._host[this._optionPath]=this._initialOptions}_fullOptionPath(){return this._getOptionPath()+"."}}return ae.\u0275fac=function(){let _e;return function(ne){return(_e||(_e=o.n5z(ae)))(ne||ae)}}(),ae.\u0275cmp=o.Xpm({type:ae,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(ye,ne){},encapsulation:2}),ae})(),z=(()=>{class ae extends P{_fullOptionPath(){return`${this._getOptionPath()}[${this._index}].`}get _value(){return this._initialOptions}get isLinked(){return void 0!==this._index&&!!this.instance&&this._host.isLinked}}return ae.\u0275fac=function(){let _e;return function(ne){return(_e||(_e=o.n5z(ae)))(ne||ae)}}(),ae.\u0275cmp=o.Xpm({type:ae,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(ye,ne){},encapsulation:2}),ae})();function U(ae,_e,ye,ne){void 0===!ae.template||!_e.nativeElement.hasChildNodes()||![].slice.call(_e.nativeElement.childNodes).filter(pe=>{if(pe.tagName){let Se=pe.tagName.toLowerCase().substr(0,3);return!("dxi"===Se||"dxo"===Se)}return"#comment"!==pe.nodeName&&pe.textContent.replace(/\s/g,"").length}).length||(ae.template={render:pe=>{let Se=_e.nativeElement;if(C.Z.setClass(Se,O,!0),pe.container){let re=E(pe.container),te=re.contains(_e.nativeElement);ye.appendChild(re,_e.nativeElement),te||ne.body.contains(re)&&function(ae){let _e=[];(0,a.Z)(ae).hasClass(R)||_e.push(ae),_e.push.apply(_e,ae.querySelectorAll("."+R));for(let ye=0;ye<_e.length;ye++)(0,g.y_)(_e[ye],"dxshown")}(Se)}return Se}})}class K{getHost(){return this._host}setHost(_e,ye){this._host=_e,this._optionPath=ye||(()=>"")}setNestedOption(_e){_e.setHost(this._host,this._optionPath)}}let J,Y=(()=>{class ae{constructor(){this._watchers=[]}getWatchMethod(){return(ne,ce,le)=>{let pe=ne();(le=le||{}).skipImmediate||ce(pe);let Se=()=>{let re=ne();this._isDifferentValues(pe,re,le.deep)&&(ce(re),pe=re)};return this._watchers.push(Se),()=>{let re=this._watchers.indexOf(Se);-1!==re&&this._watchers.splice(re,1)}}}_isDifferentValues(ye,ne,ce){let le=this._toComparable(ne),pe=this._toComparable(ye);return ce&&le instanceof Object&&pe instanceof Object?this._checkObjectsFields(ne,ye):le!==pe}_toComparable(ye){return ye instanceof Date?ye.getTime():ye}_checkObjectsFields(ye,ne){for(let ce in ye){let le=this._toComparable(ye[ce]),pe=this._toComparable(ne[ce]),Se=!1;if("object"==typeof le&&"object"==typeof pe&&(Se=(0,p.bY)(le,pe)),le!==pe&&!Se)return!0}}checkWatchers(){for(let ye of this._watchers)ye()}}return ae.\u0275fac=function(ye){return new(ye||ae)},ae.\u0275prov=o.Yz7({token:ae,factory:ae.\u0275fac}),ae})();const j=()=>(J||(J=(0,I.Cb)("DX_isPlatformServer")),J);let ee=(()=>{class ae{constructor(ye,ne,ce,le,pe,Se){this.element=ye,this.ngZone=ne,this.watcherHelper=le,this.transferState=pe,this.platformId=Se,this._initialOptions={},this._optionsToUpdate={},this.optionChangedHandlers=new o.vpe,this.isLinked=!0,this.changedOptions={},this.removedNestedComponents=[],this.widgetUpdateLocked=!1,this.templateUpdateRequired=!1,this.templates=[],ce.setHost(this),this._collectionContainerImpl=new B(this._setOption.bind(this)),this.eventHelper=new y(ne,this)}_updateTemplates(){if(this.templates.length&&this.templateUpdateRequired){let ye={};this.templates.forEach(ne=>{ye[ne.name]=ne}),this.instance.option("integrationOptions.templates",ye),this.templates=Object.values(ye),this.templateUpdateRequired=!1}}_initEvents(){this.instance.on("optionChanged",ye=>{this.changedOptions[ye.name]=ye.value;const ne=ye.name===ye.fullName?ye.value:ye.component.option(ye.name);this.eventHelper.fireNgEvent(ye.name+"Change",[ne]),this.optionChangedHandlers.emit(ye)})}_initOptions(){this._initialOptions.integrationOptions.watchMethod=this.watcherHelper.getWatchMethod()}_initPlatform(){this.transferState.hasKey(j())?this._initialOptions.integrationOptions.renderedOnServer=this.transferState.get(j(),null):(0,c.PM)(this.platformId)&&this.transferState.set(j(),!0)}_createEventEmitters(ye){const ne=this.ngZone;this.eventHelper.createEmitters(ye),this._initialOptions.eventsStrategy=ce=>{let le=new b(ce,ne);return ye.filter(pe=>pe.subscribe).forEach(pe=>{le.addEmitter(pe.subscribe,this[pe.emit])}),le},this._initialOptions.nestedComponentOptions=function(ce){return{eventsStrategy:le=>new b(le,ne),nestedComponentOptions:ce.option("nestedComponentOptions")}}}_shouldOptionChange(ye,ne){if(this.changedOptions.hasOwnProperty(ye)){const ce=this.changedOptions[ye];return delete this.changedOptions[ye],ne!==ce}return!0}clearChangedOptions(){this.changedOptions={}}_getOption(ye){return this.instance?this.instance.option(ye):this._initialOptions[ye]}lockWidgetUpdate(){!this.widgetUpdateLocked&&this.instance&&(this.instance.beginUpdate(),this.widgetUpdateLocked=!0)}unlockWidgetUpdate(){this.widgetUpdateLocked&&(this.widgetUpdateLocked=!1,this.instance.endUpdate())}_setOption(ye,ne){this.lockWidgetUpdate(),this._shouldOptionChange(ye,ne)&&(this.instance?this.instance.option(ye,ne):this._initialOptions[ye]=ne)}_createWidget(ye){this._initialOptions.integrationOptions={},this._initPlatform(),this._initOptions(),this._initialOptions.onInitializing=function(){this.beginUpdate()},this.instance=this._createInstance(ye,this._initialOptions),this._initEvents(),this._initialOptions={}}_destroyWidget(){if(this.removedNestedComponents=[],this.instance){let ye=this.instance.element();(0,g.y_)(ye,"dxremove",{_angularIntegration:!0}),this.instance.dispose(),C.Z.removeElement(ye)}}ngOnChanges(ye){for(let ne in ye)ye[ne].currentValue!==this[ne]&&(this._optionsToUpdate[ne]=ye[ne].currentValue)}ngOnInit(){this._createWidget(this.element.nativeElement)}ngDoCheck(){this.applyOptions()}ngAfterContentChecked(){this._updateTemplates(),this.applyOptions(),this.resetOptions(),this.unlockWidgetUpdate()}ngAfterViewInit(){this._updateTemplates(),this.instance.endUpdate(),this.recreatedNestedComponents=[]}applyOptions(){Object.keys(this._optionsToUpdate).length&&(this.instance&&this.instance.option(this._optionsToUpdate),this._optionsToUpdate={})}resetOptions(ye){this.instance&&(this.removedNestedComponents.filter(ne=>!(ne&&!this.isRecreated(ne)&&ye)||ne.startsWith(ye)).forEach(ne=>{this.instance.resetOption(ne)}),this.removedNestedComponents=[],this.recreatedNestedComponents=[])}isRecreated(ye){return this.recreatedNestedComponents&&this.recreatedNestedComponents.some(ne=>ne.getOptionPath()===ye)}setTemplate(ye){this.templates.push(ye),this.templateUpdateRequired=!0}setChildren(ye,ne){return this.resetOptions(ye),this._collectionContainerImpl.setChildren(ye,ne)}}return ae.\u0275fac=function(ye){return new(ye||ae)(o.Y36(o.SBq),o.Y36(o.R0b),o.Y36(S),o.Y36(Y),o.Y36(I.ki),o.Y36(o.Lbi))},ae.\u0275cmp=o.Xpm({type:ae,selectors:[["ng-component"]],features:[o.TTD],decls:0,vars:0,template:function(ye,ne){},encapsulation:2}),ae})(),G=(()=>{class ae extends ee{createInstance(ye){this._createWidget(ye)}ngOnInit(){}ngAfterViewInit(){this._createWidget(this.element.nativeElement),this.instance.endUpdate()}}return ae.\u0275fac=function(){let _e;return function(ne){return(_e||(_e=o.n5z(ae)))(ne||ae)}}(),ae.\u0275cmp=o.Xpm({type:ae,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(ye,ne){},encapsulation:2}),ae})();const q=["mousemove","mouseover","mouseout"],Z=["mouseup","click","mousedown","transitionend","wheel"];let X,M=[],oe=function(ae){X||(X=this.callBase.bind(this)),M.push(ae)};l.Z.inject({add:function(ae){return oe.call(this,ae)}});let fe=(ae,_e,ye)=>{Number(o.q4F.major)<12&&console.warn("Your version of Angular is not supported. Please update your project to version 12 or later. Please refer to the Angular Update Guide for more information: https://update.angular.io"),C.Z.inject({_document:ae,listen:function(...ce){const le=ce[1];return-1!==q.indexOf(le)?_e.runOutsideAngular(()=>this.callBase.apply(this,ce)):_e.isStable&&-1!==Z.indexOf(le)?_e.run(()=>this.callBase.apply(this,ce)):this.callBase.apply(this,ce)},isElementNode:function(ce){return ce&&1===ce.nodeType},isTextNode:function(ce){return ce&&3===ce.nodeType},isDocument:function(ce){return ce&&9===ce.nodeType}}),s.Z.inject({getXhr:function(){if(!ye)return this.callBase.apply(this);let ce=ye.build();return"withCredentials"in ce||(ce.withCredentials=!1),ce}});const ne=()=>{_e.run(()=>{d.Z.set({}),M.forEach(ce=>X.call(null,ce)),M=[],l.Z.fire()})};ne(),oe=ce=>_e.run(()=>ce()),fe=ne},Te=(()=>{class ae{constructor(ye,ne,ce){fe(ye,ne,ce)}}return ae.\u0275fac=function(ye){return new(ye||ae)(o.LFG(c.K0),o.LFG(o.R0b),o.LFG(h.rs,8))},ae.\u0275mod=o.oAB({type:ae}),ae.\u0275inj=o.cJS({}),ae})(),Be=(()=>{class ae{constructor(ye){this._differs=ye,this._propertyDiffers={}}setHost(ye){this._host=ye}setup(ye,ne){ye in ne&&this.setupSingle(ye,ne[ye].currentValue)}setupSingle(ye,ne){if(ne&&Array.isArray(ne)){if(!this._propertyDiffers[ye])try{return this._propertyDiffers[ye]=this._differs.find(ne).create(null),!0}catch{}}else delete this._propertyDiffers[ye];return!1}getChanges(ye,ne){if(this._propertyDiffers[ye])return this._propertyDiffers[ye].diff(ne)}checkChangedOptions(ye,ne){return this._host.changedOptions[ye]===ne}doCheck(ye){if(this._propertyDiffers[ye]){let ne=this._host[ye],ce=this.checkChangedOptions(ye,ne);this.getChanges(ye,ne)&&this._host.instance&&!ce&&(this._host.lockWidgetUpdate(),this._host.instance.option(ye,ne))}}}return ae.\u0275fac=function(ye){return new(ye||ae)(o.LFG(o.ZZ4))},ae.\u0275prov=o.Yz7({token:ae,factory:ae.\u0275fac}),ae})()},32:(Rn,he,u)=>{"use strict";u.d(he,{n:()=>a,o:()=>p});var o=u(5998),c=u(4370),I=u(6530),C=u(1759),g=u(8208);let a=(()=>{class s extends C.Ay{constructor(d,h,v,x,b,y,E,S){super(d,h,v,x,E,S),this._watcherHelper=x,this._idh=b,this._createEventEmitters([{subscribe:"cancelClick",emit:"onCancelClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"cancelTextChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"rtlEnabledChange"},{emit:"showCancelButtonChange"},{emit:"showTitleChange"},{emit:"targetChange"},{emit:"titleChange"},{emit:"usePopoverChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),y.setHost(this)}get cancelText(){return this._getOption("cancelText")}set cancelText(d){this._setOption("cancelText",d)}get dataSource(){return this._getOption("dataSource")}set dataSource(d){this._setOption("dataSource",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get hint(){return this._getOption("hint")}set hint(d){this._setOption("hint",d)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(d){this._setOption("hoverStateEnabled",d)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(d){this._setOption("itemHoldTimeout",d)}get items(){return this._getOption("items")}set items(d){this._setOption("items",d)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(d){this._setOption("itemTemplate",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(d){this._setOption("showCancelButton",d)}get showTitle(){return this._getOption("showTitle")}set showTitle(d){this._setOption("showTitle",d)}get target(){return this._getOption("target")}set target(d){this._setOption("target",d)}get title(){return this._getOption("title")}set title(d){this._setOption("title",d)}get usePopover(){return this._getOption("usePopover")}set usePopover(d){this._setOption("usePopover",d)}get visible(){return this._getOption("visible")}set visible(d){this._setOption("visible",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}get itemsChildren(){return this._getOption("items")}set itemsChildren(d){this.setChildren("items",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(d){super.ngOnChanges(d),this.setupChanges("dataSource",d),this.setupChanges("items",d)}setupChanges(d,h){d in this._optionsToUpdate||this._idh.setup(d,h)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(d,h){let v=this._idh.setupSingle(d,h),x=null!==this._idh.getChanges(d,h);(v||x)&&super._setOption(d,h)}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-action-sheet"]],contentQueries:function(d,h,v){if(1&d&&c.Suo(v,g.ZT3,4),2&d){let x;c.iGM(x=c.CRH())&&(h.itemsChildren=x)}},inputs:{cancelText:"cancelText",dataSource:"dataSource",disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",rtlEnabled:"rtlEnabled",showCancelButton:"showCancelButton",showTitle:"showTitle",target:"target",title:"title",usePopover:"usePopover",visible:"visible",width:"width"},outputs:{onCancelClick:"onCancelClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onOptionChanged:"onOptionChanged",cancelTextChange:"cancelTextChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",rtlEnabledChange:"rtlEnabledChange",showCancelButtonChange:"showCancelButtonChange",showTitleChange:"showTitleChange",targetChange:"targetChange",titleChange:"titleChange",usePopoverChange:"usePopoverChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(d,h){},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[g.Q8p,C.Lz,C.ie,o.Cu],g.Q8p,C.ie]}),s})()},39:(Rn,he,u)=>{"use strict";u.d(he,{K:()=>a,e:()=>p});var o=u(5998),c=u(4370),I=u(219),C=u(1759);const g=["*"];let a=(()=>{class s extends C.Ay{constructor(d,h,v,x,b,y,E){super(d,h,v,x,y,E),this._createEventEmitters([{subscribe:"click",emit:"onClick"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"templateChange"},{emit:"textChange"},{emit:"typeChange"},{emit:"useSubmitBehaviorChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),b.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(d){this._setOption("accessKey",d)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(d){this._setOption("activeStateEnabled",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(d){this._setOption("focusStateEnabled",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get hint(){return this._getOption("hint")}set hint(d){this._setOption("hint",d)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(d){this._setOption("hoverStateEnabled",d)}get icon(){return this._getOption("icon")}set icon(d){this._setOption("icon",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(d){this._setOption("stylingMode",d)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(d){this._setOption("tabIndex",d)}get template(){return this._getOption("template")}set template(d){this._setOption("template",d)}get text(){return this._getOption("text")}set text(d){this._setOption("text",d)}get type(){return this._getOption("type")}set type(d){this._setOption("type",d)}get useSubmitBehavior(){return this._getOption("useSubmitBehavior")}set useSubmitBehavior(d){this._setOption("useSubmitBehavior",d)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(d){this._setOption("validationGroup",d)}get visible(){return this._getOption("visible")}set visible(d){this._setOption("visible",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-button"]],inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",icon:"icon",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",template:"template",text:"text",type:"type",useSubmitBehavior:"useSubmitBehavior",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onClick:"onClick",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconChange:"iconChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",templateChange:"templateChange",textChange:"textChange",typeChange:"typeChange",useSubmitBehaviorChange:"useSubmitBehaviorChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[c._Bn([C._5,C._h,C.al]),c.qOj],ngContentSelectors:g,decls:1,vars:0,template:function(d,h){1&d&&(c.F$t(),c.Hsn(0))},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[C.Lz,C.ie,o.Cu],C.ie]}),s})()},6193:(Rn,he,u)=>{"use strict";u.d(he,{W:()=>s,v:()=>p});var o=u(5998),c=u(4370),I=u(344),C=u(8942),g=u(1759);const a={provide:C.JU,useExisting:(0,c.Gpc)(()=>p),multi:!0};let p=(()=>{class l extends g.Ay{constructor(h,v,x,b,y,E,S,O){super(h,v,x,b,S,O),this._watcherHelper=b,this._idh=y,this.touched=w=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"enableThreeStateBehaviorChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"iconSizeChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),E.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(h){this._setOption("activeStateEnabled",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get enableThreeStateBehavior(){return this._getOption("enableThreeStateBehavior")}set enableThreeStateBehavior(h){this._setOption("enableThreeStateBehavior",h)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(h){this._setOption("focusStateEnabled",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get iconSize(){return this._getOption("iconSize")}set iconSize(h){this._setOption("iconSize",h)}get isValid(){return this._getOption("isValid")}set isValid(h){this._setOption("isValid",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get readOnly(){return this._getOption("readOnly")}set readOnly(h){this._setOption("readOnly",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get text(){return this._getOption("text")}set text(h){this._setOption("text",h)}get validationError(){return this._getOption("validationError")}set validationError(h){this._setOption("validationError",h)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(h){this._setOption("validationErrors",h)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(h){this._setOption("validationMessageMode",h)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(h){this._setOption("validationMessagePosition",h)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(h){this._setOption("validationStatus",h)}get value(){return this._getOption("value")}set value(h){this._setOption("value",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}change(h){}_createInstance(h,v){return new I.Z(h,v)}writeValue(h){this.eventHelper.lockedValueChangeEvent=!0,this.value=h,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(h){this.disabled=h}registerOnChange(h){this.change=h}registerOnTouched(h){this.touched=h}_createWidget(h){super._createWidget(h),this.instance.on("focusOut",v=>{this.eventHelper.fireNgEvent("onBlur",[v])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("validationErrors",h)}setupChanges(h,v){h in this._optionsToUpdate||this._idh.setup(h,v)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,v){let x=this._idh.setupSingle(h,v),b=null!==this._idh.getChanges(h,v);(x||b)&&super._setOption(h,v)}}return l.\u0275fac=function(h){return new(h||l)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g._5),c.Y36(g._h),c.Y36(g.i9),c.Y36(g.al),c.Y36(o.ki),c.Y36(c.Lbi))},l.\u0275cmp=c.Xpm({type:l,selectors:[["dx-check-box"]],hostBindings:function(h,v){1&h&&c.NdJ("valueChange",function(b){return v.change(b)})("onBlur",function(b){return v.touched(b)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",enableThreeStateBehavior:"enableThreeStateBehavior",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",iconSize:"iconSize",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",enableThreeStateBehaviorChange:"enableThreeStateBehaviorChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",iconSizeChange:"iconSizeChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[c._Bn([g._5,g._h,a,g.al,g.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(h,v){},encapsulation:2}),l})(),s=(()=>{class l{}return l.\u0275fac=function(h){return new(h||l)},l.\u0275mod=c.oAB({type:l}),l.\u0275inj=c.cJS({imports:[[g.Lz,g.ie,o.Cu],g.ie]}),l})()},2625:(Rn,he,u)=>{"use strict";u.d(he,{e:()=>p,x:()=>s});var o=u(5998),c=u(4370);const C=u(1378).Z;var g=u(1759),a=u(8208);let p=(()=>{class l extends g.Ay{constructor(h,v,x,b,y,E,S,O){super(h,v,x,b,S,O),this._watcherHelper=b,this._idh=y,this._createEventEmitters([{subscribe:"adaptiveDetailRowPreparing",emit:"onAdaptiveDetailRowPreparing"},{subscribe:"cellClick",emit:"onCellClick"},{subscribe:"cellDblClick",emit:"onCellDblClick"},{subscribe:"cellHoverChanged",emit:"onCellHoverChanged"},{subscribe:"cellPrepared",emit:"onCellPrepared"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"contextMenuPreparing",emit:"onContextMenuPreparing"},{subscribe:"dataErrorOccurred",emit:"onDataErrorOccurred"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editCanceled",emit:"onEditCanceled"},{subscribe:"editCanceling",emit:"onEditCanceling"},{subscribe:"editingStart",emit:"onEditingStart"},{subscribe:"editorPrepared",emit:"onEditorPrepared"},{subscribe:"editorPreparing",emit:"onEditorPreparing"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"focusedCellChanged",emit:"onFocusedCellChanged"},{subscribe:"focusedCellChanging",emit:"onFocusedCellChanging"},{subscribe:"focusedRowChanged",emit:"onFocusedRowChanged"},{subscribe:"focusedRowChanging",emit:"onFocusedRowChanging"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"initNewRow",emit:"onInitNewRow"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"rowClick",emit:"onRowClick"},{subscribe:"rowCollapsed",emit:"onRowCollapsed"},{subscribe:"rowCollapsing",emit:"onRowCollapsing"},{subscribe:"rowDblClick",emit:"onRowDblClick"},{subscribe:"rowExpanded",emit:"onRowExpanded"},{subscribe:"rowExpanding",emit:"onRowExpanding"},{subscribe:"rowInserted",emit:"onRowInserted"},{subscribe:"rowInserting",emit:"onRowInserting"},{subscribe:"rowPrepared",emit:"onRowPrepared"},{subscribe:"rowRemoved",emit:"onRowRemoved"},{subscribe:"rowRemoving",emit:"onRowRemoving"},{subscribe:"rowUpdated",emit:"onRowUpdated"},{subscribe:"rowUpdating",emit:"onRowUpdating"},{subscribe:"rowValidating",emit:"onRowValidating"},{subscribe:"saved",emit:"onSaved"},{subscribe:"saving",emit:"onSaving"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"toolbarPreparing",emit:"onToolbarPreparing"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowColumnReorderingChange"},{emit:"allowColumnResizingChange"},{emit:"autoNavigateToFocusedRowChange"},{emit:"cacheEnabledChange"},{emit:"cellHintEnabledChange"},{emit:"columnAutoWidthChange"},{emit:"columnChooserChange"},{emit:"columnFixingChange"},{emit:"columnHidingEnabledChange"},{emit:"columnMinWidthChange"},{emit:"columnResizingModeChange"},{emit:"columnsChange"},{emit:"columnWidthChange"},{emit:"customizeColumnsChange"},{emit:"dataRowTemplateChange"},{emit:"dataSourceChange"},{emit:"dateSerializationFormatChange"},{emit:"disabledChange"},{emit:"editingChange"},{emit:"elementAttrChange"},{emit:"errorRowEnabledChange"},{emit:"exportChange"},{emit:"filterBuilderChange"},{emit:"filterBuilderPopupChange"},{emit:"filterPanelChange"},{emit:"filterRowChange"},{emit:"filterSyncEnabledChange"},{emit:"filterValueChange"},{emit:"focusedColumnIndexChange"},{emit:"focusedRowEnabledChange"},{emit:"focusedRowIndexChange"},{emit:"focusedRowKeyChange"},{emit:"groupingChange"},{emit:"groupPanelChange"},{emit:"headerFilterChange"},{emit:"heightChange"},{emit:"highlightChangesChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"keyboardNavigationChange"},{emit:"keyExprChange"},{emit:"loadPanelChange"},{emit:"masterDetailChange"},{emit:"noDataTextChange"},{emit:"pagerChange"},{emit:"pagingChange"},{emit:"remoteOperationsChange"},{emit:"renderAsyncChange"},{emit:"repaintChangesOnlyChange"},{emit:"rowAlternationEnabledChange"},{emit:"rowDraggingChange"},{emit:"rowTemplateChange"},{emit:"rtlEnabledChange"},{emit:"scrollingChange"},{emit:"searchPanelChange"},{emit:"selectedRowKeysChange"},{emit:"selectionChange"},{emit:"selectionFilterChange"},{emit:"showBordersChange"},{emit:"showColumnHeadersChange"},{emit:"showColumnLinesChange"},{emit:"showRowLinesChange"},{emit:"sortByGroupSummaryInfoChange"},{emit:"sortingChange"},{emit:"stateStoringChange"},{emit:"summaryChange"},{emit:"syncLookupFilterValuesChange"},{emit:"tabIndexChange"},{emit:"toolbarChange"},{emit:"twoWayBindingEnabledChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wordWrapEnabledChange"}]),this._idh.setHost(this),E.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(h){this._setOption("activeStateEnabled",h)}get allowColumnReordering(){return this._getOption("allowColumnReordering")}set allowColumnReordering(h){this._setOption("allowColumnReordering",h)}get allowColumnResizing(){return this._getOption("allowColumnResizing")}set allowColumnResizing(h){this._setOption("allowColumnResizing",h)}get autoNavigateToFocusedRow(){return this._getOption("autoNavigateToFocusedRow")}set autoNavigateToFocusedRow(h){this._setOption("autoNavigateToFocusedRow",h)}get cacheEnabled(){return this._getOption("cacheEnabled")}set cacheEnabled(h){this._setOption("cacheEnabled",h)}get cellHintEnabled(){return this._getOption("cellHintEnabled")}set cellHintEnabled(h){this._setOption("cellHintEnabled",h)}get columnAutoWidth(){return this._getOption("columnAutoWidth")}set columnAutoWidth(h){this._setOption("columnAutoWidth",h)}get columnChooser(){return this._getOption("columnChooser")}set columnChooser(h){this._setOption("columnChooser",h)}get columnFixing(){return this._getOption("columnFixing")}set columnFixing(h){this._setOption("columnFixing",h)}get columnHidingEnabled(){return this._getOption("columnHidingEnabled")}set columnHidingEnabled(h){this._setOption("columnHidingEnabled",h)}get columnMinWidth(){return this._getOption("columnMinWidth")}set columnMinWidth(h){this._setOption("columnMinWidth",h)}get columnResizingMode(){return this._getOption("columnResizingMode")}set columnResizingMode(h){this._setOption("columnResizingMode",h)}get columns(){return this._getOption("columns")}set columns(h){this._setOption("columns",h)}get columnWidth(){return this._getOption("columnWidth")}set columnWidth(h){this._setOption("columnWidth",h)}get customizeColumns(){return this._getOption("customizeColumns")}set customizeColumns(h){this._setOption("customizeColumns",h)}get dataRowTemplate(){return this._getOption("dataRowTemplate")}set dataRowTemplate(h){this._setOption("dataRowTemplate",h)}get dataSource(){return this._getOption("dataSource")}set dataSource(h){this._setOption("dataSource",h)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(h){this._setOption("dateSerializationFormat",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get editing(){return this._getOption("editing")}set editing(h){this._setOption("editing",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get errorRowEnabled(){return this._getOption("errorRowEnabled")}set errorRowEnabled(h){this._setOption("errorRowEnabled",h)}get export(){return this._getOption("export")}set export(h){this._setOption("export",h)}get filterBuilder(){return this._getOption("filterBuilder")}set filterBuilder(h){this._setOption("filterBuilder",h)}get filterBuilderPopup(){return this._getOption("filterBuilderPopup")}set filterBuilderPopup(h){this._setOption("filterBuilderPopup",h)}get filterPanel(){return this._getOption("filterPanel")}set filterPanel(h){this._setOption("filterPanel",h)}get filterRow(){return this._getOption("filterRow")}set filterRow(h){this._setOption("filterRow",h)}get filterSyncEnabled(){return this._getOption("filterSyncEnabled")}set filterSyncEnabled(h){this._setOption("filterSyncEnabled",h)}get filterValue(){return this._getOption("filterValue")}set filterValue(h){this._setOption("filterValue",h)}get focusedColumnIndex(){return this._getOption("focusedColumnIndex")}set focusedColumnIndex(h){this._setOption("focusedColumnIndex",h)}get focusedRowEnabled(){return this._getOption("focusedRowEnabled")}set focusedRowEnabled(h){this._setOption("focusedRowEnabled",h)}get focusedRowIndex(){return this._getOption("focusedRowIndex")}set focusedRowIndex(h){this._setOption("focusedRowIndex",h)}get focusedRowKey(){return this._getOption("focusedRowKey")}set focusedRowKey(h){this._setOption("focusedRowKey",h)}get grouping(){return this._getOption("grouping")}set grouping(h){this._setOption("grouping",h)}get groupPanel(){return this._getOption("groupPanel")}set groupPanel(h){this._setOption("groupPanel",h)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(h){this._setOption("headerFilter",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get highlightChanges(){return this._getOption("highlightChanges")}set highlightChanges(h){this._setOption("highlightChanges",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get keyboardNavigation(){return this._getOption("keyboardNavigation")}set keyboardNavigation(h){this._setOption("keyboardNavigation",h)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(h){this._setOption("keyExpr",h)}get loadPanel(){return this._getOption("loadPanel")}set loadPanel(h){this._setOption("loadPanel",h)}get masterDetail(){return this._getOption("masterDetail")}set masterDetail(h){this._setOption("masterDetail",h)}get noDataText(){return this._getOption("noDataText")}set noDataText(h){this._setOption("noDataText",h)}get pager(){return this._getOption("pager")}set pager(h){this._setOption("pager",h)}get paging(){return this._getOption("paging")}set paging(h){this._setOption("paging",h)}get remoteOperations(){return this._getOption("remoteOperations")}set remoteOperations(h){this._setOption("remoteOperations",h)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(h){this._setOption("renderAsync",h)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(h){this._setOption("repaintChangesOnly",h)}get rowAlternationEnabled(){return this._getOption("rowAlternationEnabled")}set rowAlternationEnabled(h){this._setOption("rowAlternationEnabled",h)}get rowDragging(){return this._getOption("rowDragging")}set rowDragging(h){this._setOption("rowDragging",h)}get rowTemplate(){return this._getOption("rowTemplate")}set rowTemplate(h){this._setOption("rowTemplate",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get scrolling(){return this._getOption("scrolling")}set scrolling(h){this._setOption("scrolling",h)}get searchPanel(){return this._getOption("searchPanel")}set searchPanel(h){this._setOption("searchPanel",h)}get selectedRowKeys(){return this._getOption("selectedRowKeys")}set selectedRowKeys(h){this._setOption("selectedRowKeys",h)}get selection(){return this._getOption("selection")}set selection(h){this._setOption("selection",h)}get selectionFilter(){return this._getOption("selectionFilter")}set selectionFilter(h){this._setOption("selectionFilter",h)}get showBorders(){return this._getOption("showBorders")}set showBorders(h){this._setOption("showBorders",h)}get showColumnHeaders(){return this._getOption("showColumnHeaders")}set showColumnHeaders(h){this._setOption("showColumnHeaders",h)}get showColumnLines(){return this._getOption("showColumnLines")}set showColumnLines(h){this._setOption("showColumnLines",h)}get showRowLines(){return this._getOption("showRowLines")}set showRowLines(h){this._setOption("showRowLines",h)}get sortByGroupSummaryInfo(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfo(h){this._setOption("sortByGroupSummaryInfo",h)}get sorting(){return this._getOption("sorting")}set sorting(h){this._setOption("sorting",h)}get stateStoring(){return this._getOption("stateStoring")}set stateStoring(h){this._setOption("stateStoring",h)}get summary(){return this._getOption("summary")}set summary(h){this._setOption("summary",h)}get syncLookupFilterValues(){return this._getOption("syncLookupFilterValues")}set syncLookupFilterValues(h){this._setOption("syncLookupFilterValues",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get toolbar(){return this._getOption("toolbar")}set toolbar(h){this._setOption("toolbar",h)}get twoWayBindingEnabled(){return this._getOption("twoWayBindingEnabled")}set twoWayBindingEnabled(h){this._setOption("twoWayBindingEnabled",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(h){this._setOption("wordWrapEnabled",h)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(h){this.setChildren("columns",h)}get sortByGroupSummaryInfoChildren(){return this._getOption("sortByGroupSummaryInfo")}set sortByGroupSummaryInfoChildren(h){this.setChildren("sortByGroupSummaryInfo",h)}_createInstance(h,v){return new C(h,v)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("columns",h),this.setupChanges("dataSource",h),this.setupChanges("keyExpr",h),this.setupChanges("selectedRowKeys",h),this.setupChanges("sortByGroupSummaryInfo",h)}setupChanges(h,v){h in this._optionsToUpdate||this._idh.setup(h,v)}ngDoCheck(){this._idh.doCheck("columns"),this._idh.doCheck("dataSource"),this._idh.doCheck("keyExpr"),this._idh.doCheck("selectedRowKeys"),this._idh.doCheck("sortByGroupSummaryInfo"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,v){let x=this._idh.setupSingle(h,v),b=null!==this._idh.getChanges(h,v);(x||b)&&super._setOption(h,v)}}return l.\u0275fac=function(h){return new(h||l)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g._5),c.Y36(g._h),c.Y36(g.i9),c.Y36(g.al),c.Y36(o.ki),c.Y36(c.Lbi))},l.\u0275cmp=c.Xpm({type:l,selectors:[["dx-data-grid"]],contentQueries:function(h,v,x){if(1&h&&(c.Suo(x,a.qvW,4),c.Suo(x,a.KkC,4)),2&h){let b;c.iGM(b=c.CRH())&&(v.columnsChildren=b),c.iGM(b=c.CRH())&&(v.sortByGroupSummaryInfoChildren=b)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowColumnReordering:"allowColumnReordering",allowColumnResizing:"allowColumnResizing",autoNavigateToFocusedRow:"autoNavigateToFocusedRow",cacheEnabled:"cacheEnabled",cellHintEnabled:"cellHintEnabled",columnAutoWidth:"columnAutoWidth",columnChooser:"columnChooser",columnFixing:"columnFixing",columnHidingEnabled:"columnHidingEnabled",columnMinWidth:"columnMinWidth",columnResizingMode:"columnResizingMode",columns:"columns",columnWidth:"columnWidth",customizeColumns:"customizeColumns",dataRowTemplate:"dataRowTemplate",dataSource:"dataSource",dateSerializationFormat:"dateSerializationFormat",disabled:"disabled",editing:"editing",elementAttr:"elementAttr",errorRowEnabled:"errorRowEnabled",export:"export",filterBuilder:"filterBuilder",filterBuilderPopup:"filterBuilderPopup",filterPanel:"filterPanel",filterRow:"filterRow",filterSyncEnabled:"filterSyncEnabled",filterValue:"filterValue",focusedColumnIndex:"focusedColumnIndex",focusedRowEnabled:"focusedRowEnabled",focusedRowIndex:"focusedRowIndex",focusedRowKey:"focusedRowKey",grouping:"grouping",groupPanel:"groupPanel",headerFilter:"headerFilter",height:"height",highlightChanges:"highlightChanges",hint:"hint",hoverStateEnabled:"hoverStateEnabled",keyboardNavigation:"keyboardNavigation",keyExpr:"keyExpr",loadPanel:"loadPanel",masterDetail:"masterDetail",noDataText:"noDataText",pager:"pager",paging:"paging",remoteOperations:"remoteOperations",renderAsync:"renderAsync",repaintChangesOnly:"repaintChangesOnly",rowAlternationEnabled:"rowAlternationEnabled",rowDragging:"rowDragging",rowTemplate:"rowTemplate",rtlEnabled:"rtlEnabled",scrolling:"scrolling",searchPanel:"searchPanel",selectedRowKeys:"selectedRowKeys",selection:"selection",selectionFilter:"selectionFilter",showBorders:"showBorders",showColumnHeaders:"showColumnHeaders",showColumnLines:"showColumnLines",showRowLines:"showRowLines",sortByGroupSummaryInfo:"sortByGroupSummaryInfo",sorting:"sorting",stateStoring:"stateStoring",summary:"summary",syncLookupFilterValues:"syncLookupFilterValues",tabIndex:"tabIndex",toolbar:"toolbar",twoWayBindingEnabled:"twoWayBindingEnabled",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},outputs:{onAdaptiveDetailRowPreparing:"onAdaptiveDetailRowPreparing",onCellClick:"onCellClick",onCellDblClick:"onCellDblClick",onCellHoverChanged:"onCellHoverChanged",onCellPrepared:"onCellPrepared",onContentReady:"onContentReady",onContextMenuPreparing:"onContextMenuPreparing",onDataErrorOccurred:"onDataErrorOccurred",onDisposing:"onDisposing",onEditCanceled:"onEditCanceled",onEditCanceling:"onEditCanceling",onEditingStart:"onEditingStart",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onExporting:"onExporting",onFocusedCellChanged:"onFocusedCellChanged",onFocusedCellChanging:"onFocusedCellChanging",onFocusedRowChanged:"onFocusedRowChanged",onFocusedRowChanging:"onFocusedRowChanging",onInitialized:"onInitialized",onInitNewRow:"onInitNewRow",onKeyDown:"onKeyDown",onOptionChanged:"onOptionChanged",onRowClick:"onRowClick",onRowCollapsed:"onRowCollapsed",onRowCollapsing:"onRowCollapsing",onRowDblClick:"onRowDblClick",onRowExpanded:"onRowExpanded",onRowExpanding:"onRowExpanding",onRowInserted:"onRowInserted",onRowInserting:"onRowInserting",onRowPrepared:"onRowPrepared",onRowRemoved:"onRowRemoved",onRowRemoving:"onRowRemoving",onRowUpdated:"onRowUpdated",onRowUpdating:"onRowUpdating",onRowValidating:"onRowValidating",onSaved:"onSaved",onSaving:"onSaving",onSelectionChanged:"onSelectionChanged",onToolbarPreparing:"onToolbarPreparing",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowColumnReorderingChange:"allowColumnReorderingChange",allowColumnResizingChange:"allowColumnResizingChange",autoNavigateToFocusedRowChange:"autoNavigateToFocusedRowChange",cacheEnabledChange:"cacheEnabledChange",cellHintEnabledChange:"cellHintEnabledChange",columnAutoWidthChange:"columnAutoWidthChange",columnChooserChange:"columnChooserChange",columnFixingChange:"columnFixingChange",columnHidingEnabledChange:"columnHidingEnabledChange",columnMinWidthChange:"columnMinWidthChange",columnResizingModeChange:"columnResizingModeChange",columnsChange:"columnsChange",columnWidthChange:"columnWidthChange",customizeColumnsChange:"customizeColumnsChange",dataRowTemplateChange:"dataRowTemplateChange",dataSourceChange:"dataSourceChange",dateSerializationFormatChange:"dateSerializationFormatChange",disabledChange:"disabledChange",editingChange:"editingChange",elementAttrChange:"elementAttrChange",errorRowEnabledChange:"errorRowEnabledChange",exportChange:"exportChange",filterBuilderChange:"filterBuilderChange",filterBuilderPopupChange:"filterBuilderPopupChange",filterPanelChange:"filterPanelChange",filterRowChange:"filterRowChange",filterSyncEnabledChange:"filterSyncEnabledChange",filterValueChange:"filterValueChange",focusedColumnIndexChange:"focusedColumnIndexChange",focusedRowEnabledChange:"focusedRowEnabledChange",focusedRowIndexChange:"focusedRowIndexChange",focusedRowKeyChange:"focusedRowKeyChange",groupingChange:"groupingChange",groupPanelChange:"groupPanelChange",headerFilterChange:"headerFilterChange",heightChange:"heightChange",highlightChangesChange:"highlightChangesChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",keyboardNavigationChange:"keyboardNavigationChange",keyExprChange:"keyExprChange",loadPanelChange:"loadPanelChange",masterDetailChange:"masterDetailChange",noDataTextChange:"noDataTextChange",pagerChange:"pagerChange",pagingChange:"pagingChange",remoteOperationsChange:"remoteOperationsChange",renderAsyncChange:"renderAsyncChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rowAlternationEnabledChange:"rowAlternationEnabledChange",rowDraggingChange:"rowDraggingChange",rowTemplateChange:"rowTemplateChange",rtlEnabledChange:"rtlEnabledChange",scrollingChange:"scrollingChange",searchPanelChange:"searchPanelChange",selectedRowKeysChange:"selectedRowKeysChange",selectionChange:"selectionChange",selectionFilterChange:"selectionFilterChange",showBordersChange:"showBordersChange",showColumnHeadersChange:"showColumnHeadersChange",showColumnLinesChange:"showColumnLinesChange",showRowLinesChange:"showRowLinesChange",sortByGroupSummaryInfoChange:"sortByGroupSummaryInfoChange",sortingChange:"sortingChange",stateStoringChange:"stateStoringChange",summaryChange:"summaryChange",syncLookupFilterValuesChange:"syncLookupFilterValuesChange",tabIndexChange:"tabIndexChange",toolbarChange:"toolbarChange",twoWayBindingEnabledChange:"twoWayBindingEnabledChange",visibleChange:"visibleChange",widthChange:"widthChange",wordWrapEnabledChange:"wordWrapEnabledChange"},features:[c._Bn([g._5,g._h,g.al,g.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(h,v){},encapsulation:2}),l})(),s=(()=>{class l{}return l.\u0275fac=function(h){return new(h||l)},l.\u0275mod=c.oAB({type:l}),l.\u0275inj=c.cJS({imports:[[a.Uz5,a.LNK,a.mtS,a.tRk,a.idP,a.HaS,a.CxW,a.FZZ,a.Inm,a.e1H,a.$D5,a.SCM,a.DTR,a.ZCX,a.Oll,a.Q8p,a.Jiy,a._9O,a.kSd,a.fOF,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.lj9,a.SH1,a.FJZ,a.RbS,a.$wd,a.xHg,a.p6x,a.vLN,a.rH1,a.lUW,a.kIp,a.yFA,a.$9q,a.nD3,a.Pj6,a.Upd,a.WSE,a.LHj,a._PP,a.ywL,a.WyY,a.$YR,a.kEo,a.aLr,a.uKt,a.YOZ,a.Axk,a.Zjs,a.GaT,a.zLN,a.azD,g.Lz,g.ie,o.Cu],a.Uz5,a.LNK,a.mtS,a.tRk,a.idP,a.HaS,a.CxW,a.FZZ,a.Inm,a.e1H,a.$D5,a.SCM,a.DTR,a.ZCX,a.Oll,a.Q8p,a.Jiy,a._9O,a.kSd,a.fOF,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.lj9,a.SH1,a.FJZ,a.RbS,a.$wd,a.xHg,a.p6x,a.vLN,a.rH1,a.lUW,a.kIp,a.yFA,a.$9q,a.nD3,a.Pj6,a.Upd,a.WSE,a.LHj,a._PP,a.ywL,a.WyY,a.$YR,a.kEo,a.aLr,a.uKt,a.YOZ,a.Axk,a.Zjs,a.GaT,a.zLN,a.azD,g.ie]}),l})()},1980:(Rn,he,u)=>{"use strict";u.d(he,{Q:()=>s,z:()=>p});var o=u(5998),c=u(4370),I=u(4471),C=u(8942),g=u(1759);const a={provide:C.JU,useExisting:(0,c.Gpc)(()=>p),multi:!0};let p=(()=>{class l extends g.Ay{constructor(h,v,x,b,y,E,S,O){super(h,v,x,b,S,O),this._watcherHelper=b,this._idh=y,this.touched=w=>{},this._createEventEmitters([{subscribe:"beforeSend",emit:"onBeforeSend"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"dropZoneEnter",emit:"onDropZoneEnter"},{subscribe:"dropZoneLeave",emit:"onDropZoneLeave"},{subscribe:"filesUploaded",emit:"onFilesUploaded"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"progress",emit:"onProgress"},{subscribe:"uploadAborted",emit:"onUploadAborted"},{subscribe:"uploaded",emit:"onUploaded"},{subscribe:"uploadError",emit:"onUploadError"},{subscribe:"uploadStarted",emit:"onUploadStarted"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"abortUploadChange"},{emit:"acceptChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowCancelingChange"},{emit:"allowedFileExtensionsChange"},{emit:"chunkSizeChange"},{emit:"dialogTriggerChange"},{emit:"disabledChange"},{emit:"dropZoneChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidFileExtensionMessageChange"},{emit:"invalidMaxFileSizeMessageChange"},{emit:"invalidMinFileSizeMessageChange"},{emit:"isValidChange"},{emit:"labelTextChange"},{emit:"maxFileSizeChange"},{emit:"minFileSizeChange"},{emit:"multipleChange"},{emit:"nameChange"},{emit:"progressChange"},{emit:"readOnlyChange"},{emit:"readyToUploadMessageChange"},{emit:"rtlEnabledChange"},{emit:"selectButtonTextChange"},{emit:"showFileListChange"},{emit:"tabIndexChange"},{emit:"uploadAbortedMessageChange"},{emit:"uploadButtonTextChange"},{emit:"uploadChunkChange"},{emit:"uploadCustomDataChange"},{emit:"uploadedMessageChange"},{emit:"uploadFailedMessageChange"},{emit:"uploadFileChange"},{emit:"uploadHeadersChange"},{emit:"uploadMethodChange"},{emit:"uploadModeChange"},{emit:"uploadUrlChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),E.setHost(this)}get abortUpload(){return this._getOption("abortUpload")}set abortUpload(h){this._setOption("abortUpload",h)}get accept(){return this._getOption("accept")}set accept(h){this._setOption("accept",h)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(h){this._setOption("activeStateEnabled",h)}get allowCanceling(){return this._getOption("allowCanceling")}set allowCanceling(h){this._setOption("allowCanceling",h)}get allowedFileExtensions(){return this._getOption("allowedFileExtensions")}set allowedFileExtensions(h){this._setOption("allowedFileExtensions",h)}get chunkSize(){return this._getOption("chunkSize")}set chunkSize(h){this._setOption("chunkSize",h)}get dialogTrigger(){return this._getOption("dialogTrigger")}set dialogTrigger(h){this._setOption("dialogTrigger",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get dropZone(){return this._getOption("dropZone")}set dropZone(h){this._setOption("dropZone",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(h){this._setOption("focusStateEnabled",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(h){this._setOption("inputAttr",h)}get invalidFileExtensionMessage(){return this._getOption("invalidFileExtensionMessage")}set invalidFileExtensionMessage(h){this._setOption("invalidFileExtensionMessage",h)}get invalidMaxFileSizeMessage(){return this._getOption("invalidMaxFileSizeMessage")}set invalidMaxFileSizeMessage(h){this._setOption("invalidMaxFileSizeMessage",h)}get invalidMinFileSizeMessage(){return this._getOption("invalidMinFileSizeMessage")}set invalidMinFileSizeMessage(h){this._setOption("invalidMinFileSizeMessage",h)}get isValid(){return this._getOption("isValid")}set isValid(h){this._setOption("isValid",h)}get labelText(){return this._getOption("labelText")}set labelText(h){this._setOption("labelText",h)}get maxFileSize(){return this._getOption("maxFileSize")}set maxFileSize(h){this._setOption("maxFileSize",h)}get minFileSize(){return this._getOption("minFileSize")}set minFileSize(h){this._setOption("minFileSize",h)}get multiple(){return this._getOption("multiple")}set multiple(h){this._setOption("multiple",h)}get name(){return this._getOption("name")}set name(h){this._setOption("name",h)}get progress(){return this._getOption("progress")}set progress(h){this._setOption("progress",h)}get readOnly(){return this._getOption("readOnly")}set readOnly(h){this._setOption("readOnly",h)}get readyToUploadMessage(){return this._getOption("readyToUploadMessage")}set readyToUploadMessage(h){this._setOption("readyToUploadMessage",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get selectButtonText(){return this._getOption("selectButtonText")}set selectButtonText(h){this._setOption("selectButtonText",h)}get showFileList(){return this._getOption("showFileList")}set showFileList(h){this._setOption("showFileList",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get uploadAbortedMessage(){return this._getOption("uploadAbortedMessage")}set uploadAbortedMessage(h){this._setOption("uploadAbortedMessage",h)}get uploadButtonText(){return this._getOption("uploadButtonText")}set uploadButtonText(h){this._setOption("uploadButtonText",h)}get uploadChunk(){return this._getOption("uploadChunk")}set uploadChunk(h){this._setOption("uploadChunk",h)}get uploadCustomData(){return this._getOption("uploadCustomData")}set uploadCustomData(h){this._setOption("uploadCustomData",h)}get uploadedMessage(){return this._getOption("uploadedMessage")}set uploadedMessage(h){this._setOption("uploadedMessage",h)}get uploadFailedMessage(){return this._getOption("uploadFailedMessage")}set uploadFailedMessage(h){this._setOption("uploadFailedMessage",h)}get uploadFile(){return this._getOption("uploadFile")}set uploadFile(h){this._setOption("uploadFile",h)}get uploadHeaders(){return this._getOption("uploadHeaders")}set uploadHeaders(h){this._setOption("uploadHeaders",h)}get uploadMethod(){return this._getOption("uploadMethod")}set uploadMethod(h){this._setOption("uploadMethod",h)}get uploadMode(){return this._getOption("uploadMode")}set uploadMode(h){this._setOption("uploadMode",h)}get uploadUrl(){return this._getOption("uploadUrl")}set uploadUrl(h){this._setOption("uploadUrl",h)}get validationError(){return this._getOption("validationError")}set validationError(h){this._setOption("validationError",h)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(h){this._setOption("validationErrors",h)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(h){this._setOption("validationStatus",h)}get value(){return this._getOption("value")}set value(h){this._setOption("value",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}change(h){}_createInstance(h,v){return new I.Z(h,v)}writeValue(h){this.eventHelper.lockedValueChangeEvent=!0,this.value=h,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(h){this.disabled=h}registerOnChange(h){this.change=h}registerOnTouched(h){this.touched=h}_createWidget(h){super._createWidget(h),this.instance.on("focusOut",v=>{this.eventHelper.fireNgEvent("onBlur",[v])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("allowedFileExtensions",h),this.setupChanges("validationErrors",h),this.setupChanges("value",h)}setupChanges(h,v){h in this._optionsToUpdate||this._idh.setup(h,v)}ngDoCheck(){this._idh.doCheck("allowedFileExtensions"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,v){let x=this._idh.setupSingle(h,v),b=null!==this._idh.getChanges(h,v);(x||b)&&super._setOption(h,v)}}return l.\u0275fac=function(h){return new(h||l)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g._5),c.Y36(g._h),c.Y36(g.i9),c.Y36(g.al),c.Y36(o.ki),c.Y36(c.Lbi))},l.\u0275cmp=c.Xpm({type:l,selectors:[["dx-file-uploader"]],hostBindings:function(h,v){1&h&&c.NdJ("valueChange",function(b){return v.change(b)})("onBlur",function(b){return v.touched(b)})},inputs:{abortUpload:"abortUpload",accept:"accept",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowCanceling:"allowCanceling",allowedFileExtensions:"allowedFileExtensions",chunkSize:"chunkSize",dialogTrigger:"dialogTrigger",disabled:"disabled",dropZone:"dropZone",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidFileExtensionMessage:"invalidFileExtensionMessage",invalidMaxFileSizeMessage:"invalidMaxFileSizeMessage",invalidMinFileSizeMessage:"invalidMinFileSizeMessage",isValid:"isValid",labelText:"labelText",maxFileSize:"maxFileSize",minFileSize:"minFileSize",multiple:"multiple",name:"name",progress:"progress",readOnly:"readOnly",readyToUploadMessage:"readyToUploadMessage",rtlEnabled:"rtlEnabled",selectButtonText:"selectButtonText",showFileList:"showFileList",tabIndex:"tabIndex",uploadAbortedMessage:"uploadAbortedMessage",uploadButtonText:"uploadButtonText",uploadChunk:"uploadChunk",uploadCustomData:"uploadCustomData",uploadedMessage:"uploadedMessage",uploadFailedMessage:"uploadFailedMessage",uploadFile:"uploadFile",uploadHeaders:"uploadHeaders",uploadMethod:"uploadMethod",uploadMode:"uploadMode",uploadUrl:"uploadUrl",validationError:"validationError",validationErrors:"validationErrors",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onBeforeSend:"onBeforeSend",onContentReady:"onContentReady",onDisposing:"onDisposing",onDropZoneEnter:"onDropZoneEnter",onDropZoneLeave:"onDropZoneLeave",onFilesUploaded:"onFilesUploaded",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onProgress:"onProgress",onUploadAborted:"onUploadAborted",onUploaded:"onUploaded",onUploadError:"onUploadError",onUploadStarted:"onUploadStarted",onValueChanged:"onValueChanged",abortUploadChange:"abortUploadChange",acceptChange:"acceptChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowCancelingChange:"allowCancelingChange",allowedFileExtensionsChange:"allowedFileExtensionsChange",chunkSizeChange:"chunkSizeChange",dialogTriggerChange:"dialogTriggerChange",disabledChange:"disabledChange",dropZoneChange:"dropZoneChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidFileExtensionMessageChange:"invalidFileExtensionMessageChange",invalidMaxFileSizeMessageChange:"invalidMaxFileSizeMessageChange",invalidMinFileSizeMessageChange:"invalidMinFileSizeMessageChange",isValidChange:"isValidChange",labelTextChange:"labelTextChange",maxFileSizeChange:"maxFileSizeChange",minFileSizeChange:"minFileSizeChange",multipleChange:"multipleChange",nameChange:"nameChange",progressChange:"progressChange",readOnlyChange:"readOnlyChange",readyToUploadMessageChange:"readyToUploadMessageChange",rtlEnabledChange:"rtlEnabledChange",selectButtonTextChange:"selectButtonTextChange",showFileListChange:"showFileListChange",tabIndexChange:"tabIndexChange",uploadAbortedMessageChange:"uploadAbortedMessageChange",uploadButtonTextChange:"uploadButtonTextChange",uploadChunkChange:"uploadChunkChange",uploadCustomDataChange:"uploadCustomDataChange",uploadedMessageChange:"uploadedMessageChange",uploadFailedMessageChange:"uploadFailedMessageChange",uploadFileChange:"uploadFileChange",uploadHeadersChange:"uploadHeadersChange",uploadMethodChange:"uploadMethodChange",uploadModeChange:"uploadModeChange",uploadUrlChange:"uploadUrlChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[c._Bn([g._5,g._h,a,g.al,g.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(h,v){},encapsulation:2}),l})(),s=(()=>{class l{}return l.\u0275fac=function(h){return new(h||l)},l.\u0275mod=c.oAB({type:l}),l.\u0275inj=c.cJS({imports:[[g.Lz,g.ie,o.Cu],g.ie]}),l})()},7050:(Rn,he,u)=>{"use strict";u.d(he,{A:()=>p,Y:()=>a});var o=u(5998),c=u(4370),I=u(7449),C=u(1759),g=u(8208);let a=(()=>{class s extends C.Ay{constructor(d,h,v,x,b,y,E,S){super(d,h,v,x,E,S),this._watcherHelper=x,this._idh=b,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editorEnterKey",emit:"onEditorEnterKey"},{subscribe:"fieldDataChanged",emit:"onFieldDataChanged"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"alignItemLabelsChange"},{emit:"alignItemLabelsInAllGroupsChange"},{emit:"colCountChange"},{emit:"colCountByScreenChange"},{emit:"customizeItemChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"formDataChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"itemsChange"},{emit:"labelLocationChange"},{emit:"labelModeChange"},{emit:"minColWidthChange"},{emit:"optionalMarkChange"},{emit:"readOnlyChange"},{emit:"requiredMarkChange"},{emit:"requiredMessageChange"},{emit:"rtlEnabledChange"},{emit:"screenByWidthChange"},{emit:"scrollingEnabledChange"},{emit:"showColonAfterLabelChange"},{emit:"showOptionalMarkChange"},{emit:"showRequiredMarkChange"},{emit:"showValidationSummaryChange"},{emit:"tabIndexChange"},{emit:"validationGroupChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),y.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(d){this._setOption("accessKey",d)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(d){this._setOption("activeStateEnabled",d)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(d){this._setOption("alignItemLabels",d)}get alignItemLabelsInAllGroups(){return this._getOption("alignItemLabelsInAllGroups")}set alignItemLabelsInAllGroups(d){this._setOption("alignItemLabelsInAllGroups",d)}get colCount(){return this._getOption("colCount")}set colCount(d){this._setOption("colCount",d)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(d){this._setOption("colCountByScreen",d)}get customizeItem(){return this._getOption("customizeItem")}set customizeItem(d){this._setOption("customizeItem",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(d){this._setOption("focusStateEnabled",d)}get formData(){return this._getOption("formData")}set formData(d){this._setOption("formData",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get hint(){return this._getOption("hint")}set hint(d){this._setOption("hint",d)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(d){this._setOption("hoverStateEnabled",d)}get items(){return this._getOption("items")}set items(d){this._setOption("items",d)}get labelLocation(){return this._getOption("labelLocation")}set labelLocation(d){this._setOption("labelLocation",d)}get labelMode(){return this._getOption("labelMode")}set labelMode(d){this._setOption("labelMode",d)}get minColWidth(){return this._getOption("minColWidth")}set minColWidth(d){this._setOption("minColWidth",d)}get optionalMark(){return this._getOption("optionalMark")}set optionalMark(d){this._setOption("optionalMark",d)}get readOnly(){return this._getOption("readOnly")}set readOnly(d){this._setOption("readOnly",d)}get requiredMark(){return this._getOption("requiredMark")}set requiredMark(d){this._setOption("requiredMark",d)}get requiredMessage(){return this._getOption("requiredMessage")}set requiredMessage(d){this._setOption("requiredMessage",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get screenByWidth(){return this._getOption("screenByWidth")}set screenByWidth(d){this._setOption("screenByWidth",d)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(d){this._setOption("scrollingEnabled",d)}get showColonAfterLabel(){return this._getOption("showColonAfterLabel")}set showColonAfterLabel(d){this._setOption("showColonAfterLabel",d)}get showOptionalMark(){return this._getOption("showOptionalMark")}set showOptionalMark(d){this._setOption("showOptionalMark",d)}get showRequiredMark(){return this._getOption("showRequiredMark")}set showRequiredMark(d){this._setOption("showRequiredMark",d)}get showValidationSummary(){return this._getOption("showValidationSummary")}set showValidationSummary(d){this._setOption("showValidationSummary",d)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(d){this._setOption("tabIndex",d)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(d){this._setOption("validationGroup",d)}get visible(){return this._getOption("visible")}set visible(d){this._setOption("visible",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}get itemsChildren(){return this._getOption("items")}set itemsChildren(d){this.setChildren("items",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(d){super.ngOnChanges(d),this.setupChanges("items",d)}setupChanges(d,h){d in this._optionsToUpdate||this._idh.setup(d,h)}ngDoCheck(){this._idh.doCheck("items"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(d,h){let v=this._idh.setupSingle(d,h),x=null!==this._idh.getChanges(d,h);(v||x)&&super._setOption(d,h)}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-form"]],contentQueries:function(d,h,v){if(1&d&&c.Suo(v,g.ZT3,4),2&d){let x;c.iGM(x=c.CRH())&&(h.itemsChildren=x)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",alignItemLabels:"alignItemLabels",alignItemLabelsInAllGroups:"alignItemLabelsInAllGroups",colCount:"colCount",colCountByScreen:"colCountByScreen",customizeItem:"customizeItem",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",formData:"formData",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",items:"items",labelLocation:"labelLocation",labelMode:"labelMode",minColWidth:"minColWidth",optionalMark:"optionalMark",readOnly:"readOnly",requiredMark:"requiredMark",requiredMessage:"requiredMessage",rtlEnabled:"rtlEnabled",screenByWidth:"screenByWidth",scrollingEnabled:"scrollingEnabled",showColonAfterLabel:"showColonAfterLabel",showOptionalMark:"showOptionalMark",showRequiredMark:"showRequiredMark",showValidationSummary:"showValidationSummary",tabIndex:"tabIndex",validationGroup:"validationGroup",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorEnterKey:"onEditorEnterKey",onFieldDataChanged:"onFieldDataChanged",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",alignItemLabelsChange:"alignItemLabelsChange",alignItemLabelsInAllGroupsChange:"alignItemLabelsInAllGroupsChange",colCountChange:"colCountChange",colCountByScreenChange:"colCountByScreenChange",customizeItemChange:"customizeItemChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",formDataChange:"formDataChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",itemsChange:"itemsChange",labelLocationChange:"labelLocationChange",labelModeChange:"labelModeChange",minColWidthChange:"minColWidthChange",optionalMarkChange:"optionalMarkChange",readOnlyChange:"readOnlyChange",requiredMarkChange:"requiredMarkChange",requiredMessageChange:"requiredMessageChange",rtlEnabledChange:"rtlEnabledChange",screenByWidthChange:"screenByWidthChange",scrollingEnabledChange:"scrollingEnabledChange",showColonAfterLabelChange:"showColonAfterLabelChange",showOptionalMarkChange:"showOptionalMarkChange",showRequiredMarkChange:"showRequiredMarkChange",showValidationSummaryChange:"showValidationSummaryChange",tabIndexChange:"tabIndexChange",validationGroupChange:"validationGroupChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(d,h){},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[g.Oll,g.Q8p,g.e1H,g.$D5,g.Jiy,g._9O,g.kSd,C.Lz,C.ie,o.Cu],g.Oll,g.Q8p,g.e1H,g.$D5,g.Jiy,g._9O,g.kSd,C.ie]}),s})()},8712:(Rn,he,u)=>{"use strict";u.d(he,{C:()=>Bn,O:()=>ui});var B,o=u(5998),c=u(4370),I=u(9904),C=u(5873),g=u(1828),a=u(6881),p=u(7674),s=u(8506),l=u(1880),d=u(1031),h=u(8159),v=u(5365),x=u(4270),b=u(913),y=u(8225),E=u(2721),S=u(7772),O=u(8474),w=u(8690),T=u(2941),k=u(8699),R=u.n(k);function P(){if(!R())throw h.Z.Error("E1041","Quill");return R()}if(R()){var W=R().import("core/theme");B=class extends W{constructor(at,ct){super(at,ct),this.quill.root.classList.add("dx-htmleditor-content"),this.quill.root.setAttribute("role","textbox")}}}else B={};const z=B;var V={};if(R()){var U=R().import("formats/image");(V=class extends U{static create(at){var Et=super.create(at&&at.src||at);if((0,g.Kn)(at)){var Ln=(si,Ii)=>{at[si]&&Et.setAttribute(si,Ii)};Ln("alt",at.alt),Ln("width",at.width),Ln("height",at.height)}return Et}static formats(at){var ct=super.formats(at);return ct.imageSrc=at.getAttribute("src"),ct}formats(){var at=super.formats(),ct=this.domNode.style.float;return ct&&(at.float=ct),at}format(at,ct){"float"===at?this.domNode.style[at]=ct:super.format(at,ct)}static value(at){return{src:at.getAttribute("src"),width:at.getAttribute("width"),height:at.getAttribute("height"),alt:at.getAttribute("alt")}}}).blotName="extendedImage"}const K=V;var Y={};if(R()){var J=R().import("formats/link");Y=class p7 extends J{static create(ct){var Ln=super.create(ct&&ct.href||ct);return(0,g.Kn)(ct)&&(ct.text&&(Ln.innerText=ct.text),ct.target||Ln.removeAttribute("target")),Ln}static formats(ct){return{href:ct.getAttribute("href"),target:ct.getAttribute("target")}}formats(){var ct=super.formats(),{href:Et,target:Ln}=p7.formats(this.domNode);return ct.link=Et,ct.target=Ln,ct}format(ct,Et){"link"===ct&&(0,g.Kn)(Et)?(Et.text&&(this.domNode.innerText=Et.text),Et.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",Et.href)):super.format(ct,Et)}static value(ct){return{href:ct.getAttribute("href"),text:ct.innerText,target:!!ct.getAttribute("target")}}}}const j=Y;var ee={};R()&&((ee=R().import("attributors/style/font")).whitelist=null);const G=ee;var q={};R()&&((q=R().import("attributors/style/size")).whitelist=null);const Z=q;var X={};R()&&(X=R().import("attributors/style/align")).whitelist.push("left");const M=X;var fe=class oe{};if(R()){var Te=R().import("core/module");fe=class extends Te{constructor(at,ct){super(at,ct),this.editorInstance=ct.editorInstance}saveValueChangeEvent(at){this.editorInstance._saveValueChangeEvent(at)}addCleanCallback(at){this.editorInstance.addCleanCallback(at)}handleOptionChangeValue(at){(0,g.Kn)(at)?Object.entries(at).forEach(ct=>{var[Et,Ln]=ct;return this.option(Et,Ln)}):(0,g.$K)(at)||null==this||this.clean()}}}const Be=fe;var ze=u(7858),ne=(u(5079),u(7014),u(1946),u(2718));class ce{constructor(){this._collection=[]}clear(){this._collection=[]}add(ct,Et){this._collection.push({name:ct,instance:Et})}remove(ct){this._collection=this._collection.filter(Et=>Et.name!==ct)}getByName(ct){var Et=null;return(0,ne.S6)(this._collection,(Ln,si)=>{var{name:Ii,instance:Vi}=si;if(Ii===ct)return Et=Vi,!1}),Et}each(ct){this._collection.forEach(Et=>{var{name:Ln,instance:si}=Et;return si&&ct(Ln,si)})}}var le=u(9009),pe=u(7981),Se=["table","tableHeaderCell"],re=["insertTable","insertHeaderRow","insertRowAbove","insertRowBelow","insertColumnLeft","insertColumnRight","deleteColumn","deleteRow","deleteTable","cellProperties","tableProperties"];function te(at){var ct=at.getModule("table");return null!=ct&&ct.tableFormats?ct.tableFormats():Se}function ie(at,ct){return!!ct&&at.quill.getText(ct).trim().length<ct.length}function ue(at,ct){var{tableBlot:Et,quill:Ln}=ct;(Et??Ln.scroll.find(at.get(0))).format("tableWidth","initial")}function be(at){var ct=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return at.find("tr").eq(ct).find("th, td")}function Ae(at){var ct=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"horizontal",Et=[],Ln="horizontal"===ct,si=Ln?be(at):tt(at);return si.each((Ii,Vi)=>{var rr=(0,I.Z)(Vi);""===rr.get(0).style[Ln?"width":"height"]&&Et.push(rr)}),Et}function Ne(at,ct){var{elements:Et,property:Ln,value:si}=ct,Ii=at.quill.getModule("table").tableBlots,Vi="cell".concat((0,pe._A)(Ln,!0));(0,ne.S6)(Et,(rr,vr)=>{var Zr,so=at.quill.scroll.find(vr);if(!Ii.includes(so.statics.blotName)){var vo=so.descendant(Ho=>Ii.includes(Ho.statics.blotName));so=vo?vo[0]:null}null===(Zr=so)||void 0===Zr||Zr.format(Vi,si+"px")})}function mt(at,ct){var Et=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"horizontal";return"horizontal"===Et?tt(at,ct):be(at,ct)}function tt(at){var ct=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return at.find("th:nth-child(".concat(1+ct,"), td:nth-child(").concat(1+ct,")"))}function Le(at,ct){for(var Et=arguments.length,Ln=new Array(Et>2?Et-2:0),si=2;si<Et;si++)Ln[si-2]=arguments[si];return()=>{var Ii=at.getModule("table");if(Ii)return at.focus(),Ii[ct](...Ln)}}var gt=u(7449),tn=u(970),Pe=u(7565),$e=u(3862),ge=u(1805),Ce=u(4817),De=u(9943),Ye=u(4471),bt=u(3447),yt=["imageSrc","src"],kt="phone"===T.Z.current().deviceType,ki="dx-formdialog";class En{constructor(ct,Et){this.module=ct,this.config=Et??{},this.quill=this.module.quill,this.editorInstance=this.module.editorInstance}render(){this.editorInstance._formDialog&&(this.editorInstance._formDialog.beforeAddButtonAction=()=>this.getCurrentTab().upload()),this.tabPanelIndex=0,this.formData=this.getFormData(),this.isUpdating=this.isImageUpdating(),this.tabsModel=this.createTabsModel(this.config.tabs),this.tabs=this.createTabs(this.formData);var ct=this.getFormConfig();this.updatePopupConfig(),this.updateAddButtonState(),this.editorInstance.showFormDialog(ct).done((Et,Ln)=>{this.tabs[this.getActiveTabIndex()].strategy.pasteImage(Et,Ln)}).always(()=>{this.resetDialogPopupOptions(),this.quill.focus()})}getCurrentTab(){return this.tabs[this.tabPanelIndex]}updateAddButtonState(){var ct=this.getCurrentTab().isDisableButton();this.setAddButtonDisabled(ct)}setAddButtonDisabled(ct){this.editorInstance.formDialogOption({"toolbarItems[0].options.disabled":ct})}getActiveTabIndex(){return this.isUpdating?0:this.tabPanelIndex}getFormData(){return this.getUpdateDialogFormData(this.quill.getFormat())}getUpdateDialogFormData(ct){var{imageSrc:Et,src:Ln}=ct,si=(0,De.Z)(ct,yt);return(0,Ce.Z)({src:Et??Ln},si)}createUrlTab(ct){return new ei(this.module,{config:this.config,formData:ct,isUpdating:this.isUpdating},()=>this.updateAddButtonState())}createFileTab(){return new Wn(this.module,{config:this.config},()=>this.updateAddButtonState())}createTabsModel(){var ct=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return 0===ct.length||this.isUpdating?["url"]:ct.map(Et=>"object"==typeof Et?Et.name:Et)}createTabs(ct){return this.tabsModel.map(Et=>"url"===Et?this.createUrlTab(ct):this.createFileTab())}isImageUpdating(){var ct;return Object.prototype.hasOwnProperty.call(null!==(ct=this.module.quill.getFormat())&&void 0!==ct?ct:{},"imageSrc")}updatePopupConfig(){var ct="".concat("dx-htmleditor-add-image-popup"," ").concat(ki);this.useTabbedItems()&&(ct+=" ".concat("dx-htmleditor-add-image-popup-with-tabs"));var Ln=this.isUpdating?"dxHtmlEditor-dialogImageUpdateButton":"dxHtmlEditor-dialogImageAddButton";this.editorInstance.formDialogOption({title:le.Z.format(this.isUpdating?"dxHtmlEditor-dialogUpdateImageCaption":"dxHtmlEditor-dialogImageCaption"),"toolbarItems[0].options.text":le.Z.format(Ln),wrapperAttr:{class:ct}})}resetDialogPopupOptions(){this.editorInstance.formDialogOption({"toolbarItems[0].options.text":le.Z.format("OK"),"toolbarItems[0].options.visible":!0,"toolbarItems[0].options.disabled":!1,wrapperAttr:{class:ki}})}useTabbedItems(){return this.tabsModel.length>1}getFormWidth(){return kt?"100%":493}getFormConfig(){return{formData:this.formData,width:this.getFormWidth(),labelLocation:"top",colCount:this.useTabbedItems()?1:11,items:this.getItemsConfig()}}getItemsConfig(){return this.useTabbedItems()?[{itemType:"tabbed",tabPanelOptions:{onSelectionChanged:Et=>{this.tabPanelIndex=Et.component.option("selectedIndex"),this.updateAddButtonState()}},tabs:(0,ne.UI)(this.tabs,Et=>({title:Et.getTabName(),colCount:11,items:Et.getItemsConfig()}))}]:this.tabs[0].getItemsConfig()}}class Mn{constructor(ct,Et,Ln){var{config:si,formData:Ii,isUpdating:Vi}=Et;this.module=ct,this.config=si,this.formData=Ii,this.isUpdating=Vi,this.onFileSelected=Ln,this.strategy=this.createStrategy()}getItemsConfig(){return this.strategy.getItemsConfig()}createStrategy(){return this.isUpdating?new Qn(this.module,this.config,this.formData):new Sn(this.module,this.config,this.onFileSelected)}isDisableButton(){return!1}upload(){return this.strategy.upload()}}class ei extends Mn{getTabName(){return le.Z.format("dxHtmlEditor-dialogImageSpecifyUrl")}}class Wn extends Mn{getTabName(){return le.Z.format("dxHtmlEditor-dialogImageSelectFile")}createStrategy(){return new ti(this.module,this.config,this.onFileSelected)}isDisableButton(){return!this.strategy.isValid()}}class Ji{constructor(ct,Et){this.module=ct,this.config=Et,this.editorInstance=ct.editorInstance,this.quill=ct.quill,this.selection=this.getQuillSelection()}getQuillSelection(){return this.quill.getSelection()??{index:this.quill.getLength(),length:0}}pasteImage(){}isValid(){return!0}upload(){}}class Sn extends Ji{constructor(ct,Et,Ln){super(ct,Et,Ln),this.shouldKeepAspectRatio=!0}pasteImage(ct,Et){this.module.saveValueChangeEvent(Et),qi(this.quill,this.selection.index,ct)}keepAspectRatio(ct,Et){var{dependentEditor:Ln,e:si}=Et,Ii=parseInt(si.value),Vi=parseInt(si.previousValue),rr=parseInt(Ln.option("value"));ct.component.updateData(ct.dataField,Ii),this.shouldKeepAspectRatio&&rr&&Vi&&!this.preventRecalculating&&(this.preventRecalculating=!0,Ln.option("value",Math.round(Ii*rr/parseInt(Vi)).toString())),this.preventRecalculating=!1}createKeepAspectRatioEditor(ct,Et,Ln){return this.editorInstance._createComponent(ct,bt.Z,(0,C.l)(!0,Et.editorOptions,{value:Et.component.option("formData")[Et.dataField],onEnterKey:Et.component.option("onEditorEnterKey").bind(this.editorInstance._formDialog,Et),onValueChanged:si=>{this.keepAspectRatio(Et,{dependentEditor:this[Ln+"Editor"],e:si})}}))}upload(){return this.editorInstance._formDialog._form.validate().isValid}getItemsConfig(){return[{dataField:"src",colSpan:11,label:{text:le.Z.format("dxHtmlEditor-dialogImageUrlField")},validationRules:[{type:"required"},{type:"stringLength",min:1}]},{dataField:"width",colSpan:6,label:{text:le.Z.format("dxHtmlEditor-dialogImageWidthField")},template:ct=>{var Et=(0,I.Z)("<div>").addClass("dx-fix-ratio-container"),Ln=(0,I.Z)("<div>").appendTo(Et);this.widthEditor=this.createKeepAspectRatioEditor(Ln,ct,"height");var si=(0,I.Z)("<div>").appendTo(Et);return this.editorInstance._createComponent(si,tn.Z,{items:[{icon:"imgarlock",value:"keepRatio"}],hint:le.Z.format("dxHtmlEditor-dialogImageKeepAspectRatio"),focusStateEnabled:!1,keyExpr:"value",stylingMode:"outlined",selectionMode:"multiple",selectedItemKeys:["keepRatio"],onSelectionChanged:Ii=>{this.shouldKeepAspectRatio=!!Ii.component.option("selectedItems").length}}),Et}},{dataField:"height",colSpan:5,label:{text:le.Z.format("dxHtmlEditor-dialogImageHeightField")},template:ct=>{var Et=(0,I.Z)("<div>");return this.heightEditor=this.createKeepAspectRatioEditor(Et,ct,"width"),Et}},{dataField:"alt",colSpan:11,label:{text:le.Z.format("dxHtmlEditor-dialogImageAltField")}}]}}class Qn extends Sn{constructor(ct,Et,Ln,si){super(ct,Et,si),this.formData=Ln,this.modifyFormData()}modifyFormData(){var{imageSrc:ct}=this.quill.getFormat(this.selection.index-1,1);(!ct||0===this.selection.index)&&(this.selection={index:this.selection.index+1,length:0},this.quill.setSelection(this.selection.index,this.selection.length,"silent"));var Ln,si,Et=this.quill.getLeaf(this.selection.index)[0].domNode;Et&&(this.formData.width=null!==(Ln=this.formData.width)&&void 0!==Ln?Ln:(0,ge.dz)((0,I.Z)(Et)),this.formData.height=null!==(si=this.formData.height)&&void 0!==si?si:(0,ge.Cr)((0,I.Z)(Et)))}pasteImage(ct,Et){this.quill.deleteText(this.embedFormatIndex(),1,"silent"),this.selection.index-=1,super.pasteImage(ct,Et)}embedFormatIndex(){var ct,Et=null!==(ct=this.selection)&&void 0!==ct?ct:this.quill.getSelection();return Et?Et.length?Et.index:Et.index-1:this.quill.getLength()}}class ti extends Ji{constructor(ct,Et,Ln){super(ct,Et,Ln),this.useBase64=!(0,g.$K)(this.config.fileUploadMode)||"base64"===this.config.fileUploadMode,this.isValidInternal=!1,this.onFileSelected=Ln,this.data=null}upload(){return this.useBase64?this.base64Upload(this.data):this.data.value.length&&this.data.component.upload(),!0}isValid(){return this.isValidInternal}closeDialogPopup(ct){this.editorInstance._formDialog.hide({file:ct.value?ct.value[0]:ct.file},ct.event)}serverUpload(ct){if(!this.useBase64){var Et=ci(this.config.uploadDirectory)+ct.file.name;qi(this.quill,this.selection.index,{src:Et}),this.closeDialogPopup(ct)}}base64Upload(ct){this.quill.getModule("uploader").upload(this.selection,ct.value,!0),this.closeDialogPopup(ct)}pasteImage(ct,Et){this.useBase64&&super.pasteImage(ct,Et)}isBase64Editable(){return"both"===this.config.fileUploadMode}validate(ct){var Et=ct.component;this.isValidInternal=!Et._files.some(Ln=>!Ln.isValid()),0===Et._files.length&&(this.isValidInternal=!1)}getFileUploaderOptions(){return(0,C.l)({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},{uploadUrl:this.config.uploadUrl,onValueChanged:Et=>{this.validate(Et),this.data=Et,this.onFileSelected()},onUploaded:Et=>this.serverUpload(Et)},this.config.fileUploaderOptions)}getItemsConfig(){return[{itemType:"simple",dataField:"files",colSpan:11,label:{visible:!1},template:()=>{var ct=(0,I.Z)("<div>");return this.module.editorInstance._createComponent(ct,Ye.Z,this.getFileUploaderOptions()),ct}},{itemType:"simple",colSpan:11,label:{visible:!1},editorType:"dxCheckBox",editorOptions:{value:this.useBase64,visible:this.isBase64Editable(),text:le.Z.format("dxHtmlEditor-dialogImageEncodeToBase64"),onValueChanged:ct=>{this.isBase64Editable()&&(this.useBase64=ct.value)}}}]}}function ci(at){return"/"!==at[at.length-1]?at+"/":at}function qi(at,ct,Et){at.insertEmbed(ct,"extendedImage",Et,"user"),at.setSelection(ct+1,0,"user")}var nr=u(4514),vn=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"],Pn="user",Rr={insertHeaderRow:"header",clear:"clearformat"};function mo(at){return{clear:ct=>{var si,{event:Et}=ct,Ln=at.quill.getSelection();Ln&&(at.saveValueChangeEvent(Et),at.quill.removeFormat(Ln),null===(si=jn(at))||void 0===si||si.updateFormatWidgets())},link:lo(at),image:_o(at,at.editorInstance.option("imageUpload")),color:It(at,"color"),background:It(at,"background"),orderedList:en(at,"list","ordered"),bulletList:en(at,"list","bullet"),alignLeft:en(at,"align","left"),alignCenter:en(at,"align","center"),alignRight:en(at,"align","right"),alignJustify:en(at,"align","justify"),codeBlock:vi(at,"code-block"),undo:ct=>{var{event:Et}=ct;at.saveValueChangeEvent(Et),at.quill.history.undo()},redo:ct=>{var{event:Et}=ct;at.saveValueChangeEvent(Et),at.quill.history.redo()},increaseIndent:ct=>{var{event:Et}=ct;mi(at,["indent","+1",Pn],Et)},decreaseIndent:ct=>{var{event:Et}=ct;mi(at,["indent","-1",Pn],Et)},superscript:en(at,"script","super"),subscript:en(at,"script","sub"),insertTable:dn(at),insertHeaderRow:Le(at.quill,"insertHeaderRow"),insertRowAbove:Le(at.quill,"insertRowAbove"),insertRowBelow:Le(at.quill,"insertRowBelow"),insertColumnLeft:Le(at.quill,"insertColumnLeft"),insertColumnRight:Le(at.quill,"insertColumnRight"),deleteColumn:Le(at.quill,"deleteColumn"),deleteRow:Le(at.quill,"deleteRow"),deleteTable:Le(at.quill,"deleteTable"),cellProperties:po(at,"cell"),tableProperties:po(at,"table")}}function Mr(at,ct){var{contentTemplate:Et,title:Ln,minHeight:si,minWidth:Ii,maxWidth:Vi}=ct;at.formDialogOption({contentTemplate:Et,title:Ln,minHeight:si??0,minWidth:Ii??0,maxWidth:Vi??"none"})}function po(at,ct){return Et=>{var Ln,si;null!==(Ln=Et)&&void 0!==Ln&&Ln.length||(Et=(0,I.Z)(function ar(at,ct){var Et=at.quill.getModule("table").getTable();return"table"===ct?Et[0].domNode:Et[2].domNode}(at,ct)));var ea,[Ii,Vi]=null!==(si=at.quill.getModule("table").getTable())&&void 0!==si?si:[],rr=at.quill.getFormat(at.editorInstance.getSelection(!0)),vr=function fi(at){return"cell"===at?Zn:Tn}(ct)(at,{$element:Et,formats:rr,tableBlot:Ii,rowBlot:Vi}),{contentTemplate:Zr,title:so,minHeight:vo,minWidth:Ho,maxWidth:Ko}=at.editorInstance._formDialog._popup.option(),Ro={contentTemplate:Zr,title:so,minHeight:vo,minWidth:Ho,maxWidth:Ko};at.editorInstance.formDialogOption({contentTemplate:va=>{var ta=(0,I.Z)("<div>").appendTo(va),ya=(0,I.Z)("<div>").appendTo(ta);return at.editorInstance._createComponent(ya,gt.Z,vr.formOptions),at.editorInstance._createComponent(ta,$e.Z,{}),ea=ya.dxForm("instance"),ta},title:le.Z.format("dxHtmlEditor-".concat(ct,"Properties")),minHeight:400,minWidth:Math.min(800,.9*(0,ge.dz)((0,nr.Jj)())-1),maxWidth:.9*(0,ge.dz)((0,nr.Jj)())});var la=at.editorInstance.showFormDialog();la.done((va,ta)=>{at.saveValueChangeEvent(ta),vr.applyHandler(ea),Mr(at.editorInstance,Ro)}),la.fail(()=>{at.quill.focus(),Mr(at.editorInstance,Ro)})}}function mi(at,ct,Et){at.editorInstance._saveValueChangeEvent(Et),at.quill.format(...ct)}function lo(at){return()=>{var ct;at.quill.focus();var Et=at.quill.getSelection(),Ln=ie(at,Et),si=Et?at.quill.getFormat():{},Ii=si.link&&0===(null===(ct=Et)||void 0===ct?void 0:ct.length),Vi=si.link||"";if(Ii){var rr=function Xr(at,ct){var Ln=P().import("formats/link"),[si,Ii]=at.quill.scroll.descendant(Ln,ct.index);return si?{index:ct.index-Ii,length:si.length()}:null}(at,Et);rr?Et=rr:Vi=""}var vr={href:Vi,text:Et&&!Ln?at.quill.getText(Et):"",target:!Object.prototype.hasOwnProperty.call(si,"target")||!!si.target};at.editorInstance.formDialogOption("title",le.Z.format("dxHtmlEditor-dialogLinkCaption"));var Zr=at.editorInstance.showFormDialog({formData:vr,items:bo(at,Et)});Zr.done((so,vo)=>{if(Et&&!Ln){var Ho=so.text||so.href,{index:Ko,length:Ro}=Et;so.text=void 0,at.saveValueChangeEvent(vo),Ro&&at.quill.deleteText(Ko,Ro,"silent"),at.quill.insertText(Ko,Ho,"link",so,Pn),at.quill.setSelection(Ko+Ho.length,0,Pn)}else so.text=Et||so.text?so.text:so.href,mi(at,["link",so,Pn],vo)}),Zr.fail(()=>{at.quill.focus()})}}function _o(at,ct){var Et=new En(at,ct);return()=>{Et.render()}}function bo(at,ct){return[{dataField:"href",label:{text:le.Z.format("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:le.Z.format("dxHtmlEditor-dialogLinkTextField")},visible:!ie(at,ct)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:le.Z.format("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}function It(at,ct){return()=>{var Et=at.quill.getFormat();at.editorInstance.formDialogOption("title",le.Z.format("color"===ct?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption"));var si=at.editorInstance.showFormDialog({formData:Et,items:[{dataField:ct,editorType:"dxColorView",editorOptions:{focusStateEnabled:!1},label:{visible:!1}}]});si.done((Ii,Vi)=>{mi(at,[ct,Ii[ct],Pn],Vi)}),si.fail(()=>{at.quill.focus()})}}function en(at,ct,Et){return Ln=>{var si,{event:Ii}=Ln,Vi=at.quill.getFormat();mi(at,[ct,Vi[ct]!==Et&&Et,Pn],Ii),null===(si=jn(at))||void 0===si||si.updateFormatWidgets(!0)}}function jn(at){return at._updateFormatWidget?at:at.quill.getModule("toolbar")}function vi(at,ct){return Et=>{var Ln,{event:si}=Et,Ii=at.quill.getFormat(),Vi=Ii[ct],rr=!((0,g.jn)(Vi)?Vi:(0,g.$K)(Vi));mi(at,[ct,rr,Pn],si),null===(Ln=jn(at))||void 0===Ln||Ln._updateFormatWidget(ct,rr,Ii)}}function dn(at){return()=>{var ct=at.quill.getFormat();at._tableFormats.some(si=>Object.prototype.hasOwnProperty.call(ct,si))?at.quill.focus():(at.editorInstance.formDialogOption("title",le.Z.format("dxHtmlEditor-dialogInsertTableCaption")),at.editorInstance.showFormDialog({formData:{rows:1,columns:1},items:[{dataField:"columns",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:le.Z.format("dxHtmlEditor-dialogInsertTableRowsField")}},{dataField:"rows",editorType:"dxNumberBox",editorOptions:{min:1},label:{text:le.Z.format("dxHtmlEditor-dialogInsertTableColumnsField")}}]}).done((si,Ii)=>{at.quill.focus();var Vi=at.quill.getModule("table");if(Vi){at.saveValueChangeEvent(Ii);var{columns:rr,rows:vr}=si;Vi.insertTable(rr,vr)}}).always(()=>{at.quill.focus()}))}}function Tn(at,ct){var Vi,rr,vr,{$element:Et,formats:Ln,tableBlot:si}=ct,Ii=(0,nr.Jj)(),Zr=Et,so=at.editorInstance,vo=parseInt(Ln.tableWidth)||(0,ge.Y_)(Zr),Ho=Ii.getComputedStyle(Zr.get(0)),Ko="start"===Ho.textAlign?"left":Ho.textAlign;return{formOptions:{colCount:2,formData:{width:vo,height:(0,g.$K)(Ln.tableHeight)?parseInt(Ln.tableHeight):(0,ge.zp)(Zr),backgroundColor:Ln.tableBackgroundColor||Ho.backgroundColor,borderStyle:Ln.tableBorderStyle||Ho.borderTopStyle,borderColor:Ln.tableBorderColor||Ho.borderTopColor,borderWidth:parseInt((0,g.$K)(Ln.tableBorderWidth)?Ln.tableBorderWidth:Ho.borderTopWidth),alignment:Ln.tableAlign||Ko},items:[{itemType:"group",caption:le.Z.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:le.Z.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:vn,placeholder:"Select style"}},{dataField:"borderWidth",label:{text:le.Z.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",label:{text:le.Z.format("dxHtmlEditor-borderColor")},colSpan:2,template:ea=>{var la=(0,I.Z)("<div>");return so._createComponent(la,Pe.Z,{editAlphaChannel:!0,value:ea.component.option("formData").borderColor,onInitialized:va=>{rr=va.component}}),la}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-dimensions"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"width",label:{text:le.Z.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:le.Z.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:le.Z.format("dxHtmlEditor-borderColor")},template:ea=>{var la=(0,I.Z)("<div>");return so._createComponent(la,Pe.Z,{editAlphaChannel:!0,value:ea.component.option("formData").backgroundColor,onInitialized:va=>{vr=va.component}}),la}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-alignment"),items:[{itemType:"simple",label:{text:le.Z.format("dxHtmlEditor-horizontal")},template:()=>{var ea=(0,I.Z)("<div>");return so._createComponent(ea,tn.Z,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[Ko],onInitialized:la=>{Vi=la.component}}),ea}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:ea=>{var la=ea.option("formData");(function Li(at,ct){var{$table:Et,newHeight:Ln,newWidth:si,tableBlot:Ii}=ct;if((0,g.$K)(si))if(Ae(Et).length>0)at.editorInstance.format("tableWidth",si+"px");else{var rr=be(Et),vr=(0,ge.Y_)(Et);ue(Et,{tableBlot:Ii}),(0,ne.S6)(rr,(Ho,Ko)=>{var Ro=(0,I.Z)(Ko),ea=si/vr*(0,ge.Y_)(Ro),la=mt(Et,Ro.index(),"horizontal");Ne(at,{elements:la,property:"width",value:ea})})}if(Ae(Et,"vertical")?.length>0)Ii.format("tableHeight",Ln+"px");else{var so=tt(Et),vo=(0,ge.zp)(Et);(0,ne.S6)(so,(Ho,Ko)=>{var Ro=(0,I.Z)(Ko),ea=Ln/vo*(0,ge.zp)(Ro),la=mt(Et,Ho,"vertical");Ne(at,{elements:la,property:"height",value:ea})})}})(at,{$table:Zr,newHeight:la.height,newWidth:la.width===vo?void 0:la.width,tableBlot:si}),at.editorInstance.format("tableBorderStyle",la.borderStyle),at.editorInstance.format("tableBorderWidth",la.borderWidth+"px"),at.editorInstance.format("tableBorderColor",rr.option("value")),at.editorInstance.format("tableBackgroundColor",vr.option("value")),at.editorInstance.format("tableTextAlign",Vi.option("selectedItemKeys")[0])}}}function Zn(at,ct){var rr,vr,Zr,so,{$element:Et,formats:Ln,tableBlot:si,rowBlot:Ii}=ct,Vi=(0,nr.Jj)(),vo=Et,Ho=(0,g.$K)(Ln.cellWidth)?parseInt(Ln.cellWidth):(0,ge.Y_)(vo),Ko=at.editorInstance,Ro=Vi.getComputedStyle(vo.get(0)),ea="start"===Ro.textAlign?"left":Ro.textAlign;return{formOptions:{colCount:2,formData:{width:Ho,height:(0,g.$K)(Ln.cellHeight)?parseInt(Ln.cellHeight):(0,ge.zp)(vo),backgroundColor:Ln.cellBackgroundColor||Ro.backgroundColor,borderStyle:Ln.cellBorderStyle||Ro.borderTopStyle,borderColor:Ln.cellBorderColor||Ro.borderTopColor,borderWidth:parseInt((0,g.$K)(Ln.cellBorderWidth)?Ln.cellBorderWidth:Ro.borderTopWidth),alignment:Ln.cellTextAlign||ea,verticalAlignment:Ln.cellVerticalAlign||Ro.verticalAlign,verticalPadding:parseInt((0,g.$K)(Ln.cellPaddingTop)?Ln.cellPaddingTop:Ro.paddingTop),horizontalPadding:parseInt((0,g.$K)(Ln.cellPaddingLeft)?Ln.cellPaddingLeft:Ro.paddingLeft)},items:[{itemType:"group",caption:le.Z.format("dxHtmlEditor-border"),colCountByScreen:{xs:2},colCount:2,items:[{dataField:"borderStyle",label:{text:le.Z.format("dxHtmlEditor-style")},editorType:"dxSelectBox",editorOptions:{items:vn}},{dataField:"borderWidth",label:{text:le.Z.format("dxHtmlEditor-borderWidth")},editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}},{itemType:"simple",dataField:"borderColor",colSpan:2,label:{text:le.Z.format("dxHtmlEditor-borderColor")},template:va=>{var ta=(0,I.Z)("<div>");return Ko._createComponent(ta,Pe.Z,{editAlphaChannel:!0,value:va.component.option("formData").borderColor,onInitialized:ya=>{Zr=ya.component}}),ta}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-dimensions"),colCount:2,colCountByScreen:{xs:2},items:[{dataField:"width",label:{text:le.Z.format("dxHtmlEditor-width")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}},{dataField:"height",label:{text:le.Z.format("dxHtmlEditor-height")},editorOptions:{min:0,placeholder:le.Z.format("dxHtmlEditor-pixels")}},{dataField:"verticalPadding",label:{text:le.Z.format("dxHtmlEditor-paddingVertical")},editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}},{label:{text:le.Z.format("dxHtmlEditor-paddingHorizontal")},dataField:"horizontalPadding",editorOptions:{placeholder:le.Z.format("dxHtmlEditor-pixels")}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-tableBackground"),items:[{itemType:"simple",dataField:"backgroundColor",label:{text:le.Z.format("dxHtmlEditor-borderColor")},template:va=>{var ta=(0,I.Z)("<div>");return Ko._createComponent(ta,Pe.Z,{editAlphaChannel:!0,value:va.component.option("formData").backgroundColor,onInitialized:ya=>{so=ya.component}}),ta}}]},{itemType:"group",caption:le.Z.format("dxHtmlEditor-alignment"),colCount:2,items:[{itemType:"simple",label:{text:le.Z.format("dxHtmlEditor-horizontal")},template:()=>{var va=(0,I.Z)("<div>");return Ko._createComponent(va,tn.Z,{items:[{value:"left",icon:"alignleft"},{value:"center",icon:"aligncenter"},{value:"right",icon:"alignright"},{value:"justify",icon:"alignjustify"}],keyExpr:"value",selectedItemKeys:[ea],onInitialized:ta=>{rr=ta.component}}),va}},{itemType:"simple",label:{text:le.Z.format("dxHtmlEditor-vertical")},template:()=>{var va=(0,I.Z)("<div>");return Ko._createComponent(va,tn.Z,{items:[{value:"top",icon:"verticalaligntop"},{value:"middle",icon:"verticalaligncenter"},{value:"bottom",icon:"verticalalignbottom"}],keyExpr:"value",selectedItemKeys:[Ro.verticalAlign],onInitialized:ta=>{vr=ta.component}}),va}}]}],showColonAfterLabel:!0,labelLocation:"top",minColWidth:400},applyHandler:va=>{var ta=va.option("formData"),ya=ta.width===parseInt(Ho)?void 0:ta.width;(function sr(at,ct){var{$cell:Et,newHeight:Ln,newWidth:si,tableBlot:Ii,rowBlot:Vi}=ct,rr=(0,I.Z)(Et.closest("table"));if((0,g.$K)(si)){var vr=(0,I.Z)(Et).index(),Zr=mt(rr,vr),so=si-(0,ge.Y_)(Et);si>(0,ge.Y_)(rr)&&ue(rr,{tableBlot:Ii}),Ne(at,{elements:Zr,property:"width",value:si});var Ho=Et.next();if(0===Ae(rr).length)if(ue(rr,{tableBlot:Ii}),1===Ho.length){Zr=mt(rr,vr+1);var Ro=(0,ge.Y_)(Zr.eq(0))-so;Ne(at,{elements:Zr,property:"width",value:Math.max(Ro,0)})}else if(1===Et.prev().length){Zr=mt(rr,vr-1);var la=(0,ge.Y_)(Zr.eq(0))-so;Ne(at,{elements:Zr,property:"width",value:Math.max(la,0)})}}Vi.children.forEach(ta=>{ta.format("cellHeight",Ln+"px")}),0===Ae(rr,"vertical").length&&rr.css("height","auto")})(at,{$cell:vo,newHeight:ta.height,newWidth:ya,tableBlot:si,rowBlot:Ii}),at.editorInstance.format("cellBorderWidth",ta.borderWidth+"px"),at.editorInstance.format("cellBorderColor",Zr.option("value")),at.editorInstance.format("cellBorderStyle",ta.borderStyle),at.editorInstance.format("cellBackgroundColor",so.option("value")),at.editorInstance.format("cellTextAlign",rr.option("selectedItemKeys")[0]),at.editorInstance.format("cellVerticalAlign",vr.option("selectedItemKeys")[0]),at.editorInstance.format("cellPaddingLeft",ta.horizontalPadding+"px"),at.editorInstance.format("cellPaddingRight",ta.horizontalPadding+"px"),at.editorInstance.format("cellPaddingTop",ta.verticalPadding+"px"),at.editorInstance.format("cellPaddingBottom",ta.verticalPadding+"px")}}}var gr=Be;if(R()){var Qt="dx-htmleditor-toolbar-wrapper",zt="dx-format-active",ht={66:"bold",73:"italic",85:"underline"},on={b:66,i:73,u:85},hn=at=>le.Z.format("dxHtmlEditor-".concat((0,pe._A)(at)));gr=class extends Be{constructor(at,ct){var Et;if(super(at,ct),Et=this,this._toolbarWidgets=new ce,this._formatHandlers=mo(this),this._tableFormats=te(at),(0,g.$K)(ct.items)){this._addCallbacks(),this._renderToolbar();var Ln=this.toolbarInstance._layoutStrategy._menu;if(Ln){var si=Ln._renderPopup;Ln._renderPopup=function(){for(var Ii=arguments.length,Vi=new Array(Ii),rr=0;rr<Ii;rr++)Vi[rr]=arguments[rr];si.apply(Ln,...Vi),Ln._popup.on("showing",()=>{Et._updateToolbar(!0)})}}this.quill.on("editor-change",(Ii,Vi,rr,vr)=>{"silent"===vr&&(0,g.Qr)(this.quill.getFormat())||this._updateToolbar("selection-change"===Ii)})}}_addCallbacks(){this.addCleanCallback(this.clean.bind(this)),this.editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}_updateToolbar(at){this.updateFormatWidgets(at),this.updateHistoryWidgets(),this.updateTableWidgets()}_updateFormatWidget(at,ct,Et){var Ln=this._toolbarWidgets.getByName(at);Ln&&(ct?this._markActiveFormatWidget(at,Ln,Et):(this._resetFormatWidget(at,Ln),Object.prototype.hasOwnProperty.call(at)&&delete Et[at]),this._toggleClearFormatting(ct||!(0,g.Qr)(Et)))}_renderToolbar(){var at=this.options.container||this._getContainer();this._$toolbar=(0,I.Z)("<div>").addClass("dx-htmleditor-toolbar").appendTo(at),this._$toolbarContainer=(0,I.Z)(at).addClass(Qt),b.Z.on(this._$toolbarContainer,(0,y.V4)("mousedown",this.editorInstance.NAME),ct=>{ct.preventDefault()}),this._subscribeFormatHotKeys(),this.toolbarInstance=this.editorInstance._createComponent(this._$toolbar,ze.Z,this.toolbarConfig),this.editorInstance.on("optionChanged",ct=>{var{name:Et}=ct;("readOnly"===Et||"disabled"===Et)&&this.toolbarInstance.option("disabled",this.isInteractionDisabled)})}get toolbarConfig(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer,multiline:this.isMultilineMode()}}get isInteractionDisabled(){return this.editorInstance.option("readOnly")||this.editorInstance.option("disabled")}isMultilineMode(){var at;return null===(at=this.options.multiline)||void 0===at||at}clean(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass(Qt)}repaint(){this.toolbarInstance&&this.toolbarInstance.repaint()}_getContainer(){var at=(0,I.Z)("<div>");return this.editorInstance.$element().prepend(at),at}_detectRenamedOptions(at){(0,g.Kn)(at)&&(0,ne.S6)([{newName:"name",oldName:"formatName"},{newName:"acceptedValues",oldName:"formatValues"}],(ct,Et)=>{Object.prototype.hasOwnProperty.call(at,Et.oldName)&&h.Z.log("W1016",Et.oldName,Et.newName)})}_subscribeFormatHotKeys(){this.quill.keyboard.addBinding({which:on.b,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:on.i,shortKey:!0},this._handleFormatHotKey.bind(this)),this.quill.keyboard.addBinding({which:on.u,shortKey:!0},this._handleFormatHotKey.bind(this))}_handleFormatHotKey(at,ct,Et){var{which:Ln}=Et;this._updateButtonState(ht[Ln])}_updateButtonState(at){var ct=this._toolbarWidgets.getByName(at),Et=this.quill.getFormat();Et[at]?this._markActiveFormatWidget(at,ct,Et):this._resetFormatWidget(at,ct)}_prepareToolbarItems(){var at=[];return(0,ne.S6)(this.options.items,(ct,Et)=>{var Ln;if(this._detectRenamedOptions(Et),(0,g.Kn)(Et))Ln=this._handleObjectItem(Et);else if((0,g.HD)(Et)){var si=this._prepareButtonItemConfig(Et);Ln=this._getToolbarItem(si)}Ln&&at.push(Ln)}),at}_handleObjectItem(at){if(at.name&&at.acceptedValues&&this._isAcceptableItem(at.widget,"dxSelectBox")){var ct=this._prepareSelectItemConfig(at);return this._getToolbarItem(ct)}if(at.name&&this._isAcceptableItem(at.widget,"dxButton")){var Et=this._prepareButtonItemConfig(at.name),Ln=(0,C.l)(!0,Et,at);return this._getToolbarItem(Ln)}return this._getToolbarItem(at)}_isAcceptableItem(at,ct){return!at||at===ct}_prepareButtonItemConfig(at){var ct,Et=null!==(ct=Rr[at])&&void 0!==ct?ct:at,Ln=(0,pe.MI)(at);return{widget:"dxButton",name:at,options:{hint:hn(Ln),text:hn(Ln),icon:Et.toLowerCase(),onClick:this._formatHandlers[at]||vi(this,at),stylingMode:"text"},showText:"inMenu"}}_prepareSelectItemConfig(at){var{name:ct,acceptedValues:Et}=at;return(0,C.l)(!0,{widget:"dxSelectBox",name:ct,options:{stylingMode:"filled",dataSource:Et,displayExpr:Ln=>((at,ct)=>"header"===ct?(0,g.$K)(at)&&!1!==at?"".concat(hn("heading")," ").concat(at):hn("normalText"):hn(at)||at)(Ln,ct),placeholder:hn(ct),onValueChanged:Ln=>{this._isReset||(this._hideAdaptiveMenu(),mi(this,[ct,Ln.value,"user"],Ln.event),this._setValueSilent(Ln.component,Ln.value))}}},at)}_hideAdaptiveMenu(){this.toolbarInstance.option("overflowMenuVisible")&&this.toolbarInstance.option("overflowMenuVisible",!1)}_getToolbarItem(at){var ct={options:{onInitialized:Et=>{at.name&&(Et.component.$element().addClass("dx-htmleditor-toolbar-format"),Et.component.$element().toggleClass("dx-".concat(at.name.toLowerCase(),"-format"),!!at.name),this._toolbarWidgets.add(at.name,Et.component))},onDisposing:()=>{this._toolbarWidgets.remove(at.name)}}};return(0,C.l)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(at.name),at,ct)}_getDefaultItemsConfig(){return{clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},insertRowAbove:{options:{disabled:!0}},insertRowBelow:{options:{disabled:!0}},insertHeaderRow:{options:{disabled:!0}},insertColumnLeft:{options:{disabled:!0}},insertColumnRight:{options:{disabled:!0}},deleteRow:{options:{disabled:!0}},deleteColumn:{options:{disabled:!0}},deleteTable:{options:{disabled:!0}},cellProperties:{options:{disabled:!0}},tableProperties:{options:{disabled:!0}},separator:{template:(at,ct,Et)=>{(0,I.Z)(Et).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:(at,ct,Et)=>{(0,I.Z)(Et).addClass("dx-htmleditor-toolbar-menu-separator")}}}}_getDefaultConfig(at){return this._getDefaultItemsConfig()[at]}updateHistoryWidgets(){var at=this.quill.history;if(at){var{undo:ct,redo:Et}=at.stack;this._updateManipulationWidget(this._toolbarWidgets.getByName("undo"),Boolean(ct.length)),this._updateManipulationWidget(this._toolbarWidgets.getByName("redo"),Boolean(Et.length))}}updateTableWidgets(){if(this.quill.getModule("table")){var ct=this.quill.getSelection(),Et=ct&&this.quill.getFormat(ct)||{},Ln=this._tableFormats.some(si=>Boolean(Et[si]));re.forEach(si=>{var Ii="insertTable"===si,Vi=this._toolbarWidgets.getByName(si);this._updateManipulationWidget(Vi,Ii?!Ln:Ln)})}}_updateManipulationWidget(at,ct){at&&at.option("disabled",!ct)}updateFormatWidgets(at){var ct=this.quill.getSelection();if(ct){var Et=this.quill.getFormat(ct),Ln=!(0,g.Qr)(Et);for(var si in(!Ln||at)&&this._resetFormatWidgets(),Et){var Ii=this._getFormatWidgetName(si,Et),Vi=this._toolbarWidgets.getByName(Ii)||this._toolbarWidgets.getByName(si);Vi&&this._markActiveFormatWidget(si,Vi,Et)}this._toggleClearFormatting(Ln||ct.length>1)}}_markActiveFormatWidget(at,ct,Et){this._isColorFormat(at)&&this._updateColorWidget(at,Et[at]),"value"in ct.option()?this._setValueSilent(ct,Et[at]):ct.$element().addClass(zt)}_toggleClearFormatting(at){var ct=this._toolbarWidgets.getByName("clear");ct&&ct.option("disabled",!at)}_isColorFormat(at){return"color"===at||"background"===at}_updateColorWidget(at,ct){var Et=this._toolbarWidgets.getByName(at);Et&&Et.$element().find(".".concat("dx-icon")).css("borderBottomColor",ct||"transparent")}_getFormatWidgetName(at,ct){var Et;switch(at){case"align":Et=at+(0,pe.MI)(ct[at]);break;case"list":Et=ct[at]+(0,pe.MI)(at);break;case"code-block":Et="codeBlock";break;case"script":Et=ct[at]+at;break;case"imageSrc":Et="image";break;default:Et=at}return Et}_setValueSilent(at,ct){this._isReset=!0,at.option("value",ct),this._isReset=!1}_resetFormatWidgets(){this._toolbarWidgets.each((at,ct)=>{this._resetFormatWidget(at,ct)})}_resetFormatWidget(at,ct){ct.$element().removeClass(zt),this._isColorFormat(at)&&this._updateColorWidget(at),"clear"===at&&ct.option("disabled",!0),"dxSelectBox"===ct.NAME&&this._setValueSilent(ct,null)}addClickHandler(at,ct){this._formatHandlers[at]=ct;var Et=this._toolbarWidgets.getByName(at);Et&&"dxButton"===Et.NAME&&Et.option("onClick",ct)}}}const Nn=gr;var $n=u(4722),ot=Be;R()&&(ot=class extends Be{constructor(at,ct){super(at,ct);var Et=this.editorInstance.NAME;b.Z.on(this.quill.root,(0,y.V4)("drop",Et),this._dropHandler.bind(this)),b.Z.on(this.quill.root,(0,y.V4)("paste",Et),this._pasteHandler.bind(this))}_dropHandler(at){var ct,Et=at.originalEvent.dataTransfer,Ln=null==Et||null===(ct=Et.files)||void 0===ct?void 0:ct.length;this.saveValueChangeEvent(at),at.preventDefault(),Ln&&this._getImage(Et.files,this._addImage.bind(this))}_pasteHandler(at){var ct,{clipboardData:Et}=at.originalEvent;if(this.saveValueChangeEvent(at),Et){var Ln=null===(ct=Et.items)||void 0===ct?void 0:ct.length;!Et.getData("text/html")&&Ln&&this._getImage(Et.items,Ii=>{this._isBrowserSupportImagePaste($n.Z)||this._addImage(Ii)})}}_isBrowserSupportImagePaste(at){var{mozilla:ct,chrome:Et,version:Ln}=at;return ct||Et&&Ln>82}_isImage(at){return!!at.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}_getImage(at,ct){var Et=(0,nr.Jj)();(0,ne.S6)(at,(Ln,si)=>{if(this._isImage(si)){var Ii=new Et.FileReader;Ii.onload=rr=>{var{target:vr}=rr;ct(vr.result)};var Vi=si.getAsFile?si.getAsFile():si;Vi instanceof Et.Blob&&Ii.readAsDataURL(Vi)}})}_addImage(at){var ct=this.quill.getSelection(),Et=ct?ct.index:this.quill.getLength();this.quill.insertEmbed(Et,"extendedImage",at,"user")}});const Bt=ot;var nn=u(5450),On=u(9609),nt=u(4137),pt=Be;R()&&(pt=class extends Be{_getDefaultOptions(){return{dataSource:null}}constructor(at,ct){super(at,ct),this.options=(0,C.l)({},this._getDefaultOptions(),ct),this._popup=this.renderPopup(),this._popup.$wrapper().addClass("dx-suggestion-list-wrapper"),this._renderPreventFocusOut()}renderList(at,ct){var Et=(0,I.Z)("<div>").addClass("dx-suggestion-list").appendTo(at);this._list=this.options.editorInstance._createComponent(Et,nt.Z,ct)}renderPopup(){var at=this.options.editorInstance,ct=(0,I.Z)("<div>").appendTo(at.$element()),Et=this._getPopupConfig();return at._createComponent(ct,On.Z,Et)}_getPopupConfig(){return{contentTemplate:at=>{var ct=this._getListConfig(this.options);this.renderList((0,I.Z)(at),ct)},deferRendering:!1,onShown:()=>{this._list.focus()},onHidden:()=>{this._list.unselectAll(),this._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}_getListConfig(at){return{dataSource:at.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}get maxHeight(){var at=(0,nr.Jj)(),ct=at&&(0,ge.Cr)(at)||0;return Math.max(100,.5*ct)}selectionChangedHandler(at){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(at))}_renderPreventFocusOut(){var at=(0,y.V4)("mousedown","dxHtmlEditorPopupModule");b.Z.on(this._popup.$wrapper(),at,ct=>{ct.preventDefault()})}insertEmbedContent(at){}showPopup(){this._popup&&this._popup.show()}savePosition(at){this.caretPosition=at}getPosition(){return this.caretPosition}});const xi=pt;var Ai={};if(R()){var Ui=R().import("blots/embed");(Ai=class extends Ui{static create(at){var Et,Ln,ct=super.create(),si=at.value;return Array.isArray(at.escapeChar)?(Et=(0,p.IS)(at.escapeChar[0],""),Ln=(0,p.IS)(at.escapeChar[1],"")):Et=Ln=at.escapeChar,ct.innerText=Et+si+Ln,ct.dataset.varStartEscChar=Et,ct.dataset.varEndEscChar=Ln,ct.dataset.varValue=at.value,ct}static value(at){return(0,C.l)({},{value:at.dataset.varValue,escapeChar:[at.dataset.varStartEscChar||"",at.dataset.varEndEscChar||""]})}}).blotName="variable",Ai.tagName="span",Ai.className="dx-variable"}const Qi=Ai;var Tr=Be;R()&&(R().register({"formats/variable":Qi},!0),Tr=class extends xi{_getDefaultOptions(){var at=super._getDefaultOptions();return(0,C.l)(at,{escapeChar:""})}constructor(at,ct){super(at,ct);var Et=at.getModule("toolbar");Et&&Et.addClickHandler("variable",this.showPopup.bind(this)),at.keyboard.addBinding({key:"P",altKey:!0},this.showPopup.bind(this)),this._popup.on("shown",Ln=>{var si=(0,I.Z)(Ln.component.option("position").of);si.hasClass("dx-variable-format")&&si.addClass("dx-format-active")})}showPopup(at){var ct=this.quill.getSelection(!0),Et=ct?ct.index:this.quill.getLength();this.savePosition(Et),this._resetPopupPosition(at,Et),super.showPopup()}_resetPopupPosition(at,ct){if(at&&at.element)this._popup.option("position",{of:at.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var Et=this.quill.getBounds(ct),Ln=(0,nn.l)(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:Et.left,v:Et.bottom-Ln.height},my:"top center",at:"bottom left",collision:"fit flip"})}}insertEmbedContent(at){var ct=this.getPosition(),Et=at.component.option("selectedItem"),Ln=(0,C.l)({},{value:Et,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(ct,"variable",Ln),this.quill.setSelection(ct+1)}.bind(this))}});const ro=Tr;var No=u(227),uo=u(6961),$o=u(6498),wo="dxHtmlResizingModule",Uo=(0,y.V4)("keydown",wo),Ao=(0,y.V4)("scroll",wo),Da=(0,y.V4)("mousedown",wo);class jo extends Be{constructor(ct,Et){super(ct,Et),this.allowedTargets=Et.allowedTargets||["image"],this.enabled=!!Et.enabled,this._hideFrameWithContext=this.hideFrame.bind(this),this._framePositionChangedHandler=this._prepareFramePositionChangedHandler(),this.enabled&&(this._attachEvents(),this._createResizeFrame())}_attachEvents(){b.Z.on(this.quill.root,(0,y.V4)(No.u,wo),this._clickHandler.bind(this)),b.Z.on(this.quill.root,Ao,this._framePositionChangedHandler),this.editorInstance.on("focusOut",this._hideFrameWithContext),this.quill.on("text-change",this._framePositionChangedHandler)}_detachEvents(){b.Z.off(this.quill.root,wo),this.editorInstance.off("focusOut",this._hideFrameWithContext),this.quill.off("text-change",this._framePositionChangedHandler)}_clickHandler(ct){if(this._isAllowedTarget(ct.target)){if(this._$target===ct.target)return;this._$target=ct.target;var Et=(0,I.Z)(this._$target),Ln=Math.max((0,ge.Y_)(Et)-(0,ge.dz)(Et),this.resizable.option("minWidth")),si=Math.max((0,ge.zp)(Et)-(0,ge.Cr)(Et),this.resizable.option("minHeight"));this.resizable.option({minWidth:Ln,minHeight:si}),this.updateFramePosition(),this.showFrame(),this._adjustSelection()}else this._$target&&this.hideFrame()}_prepareFramePositionChangedHandler(ct){return()=>{this._$target&&this.updateFramePosition()}}_adjustSelection(){this.quill.getSelection()||this.quill.setSelection(0,0)}_isAllowedTarget(ct){return this._isImage(ct)}_isImage(ct){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===ct.tagName.toUpperCase()}showFrame(){this._$resizeFrame.show(),b.Z.on(this.quill.root,Uo,this._handleFrameKeyDown.bind(this))}_handleFrameKeyDown(ct){var Et=(0,y.EV)(ct);("del"===Et||"backspace"===Et)&&this._deleteImage(),this.hideFrame()}hideFrame(){this._$target=null,this._$resizeFrame.hide(),b.Z.off(this.quill.root,Uo)}updateFramePosition(){var{height:ct,width:Et,top:Ln,left:si}=(0,nn.l)(this._$target),{top:Ii,left:Vi}=(0,nn.l)(this.quill.root),rr=this._getBorderWidth();this._$resizeFrame.css({height:ct,width:Et,padding:1,top:Ln-Ii-rr-1,left:si-Vi-rr-1}),(0,uo.pB)(this._$resizeFrame,{left:0,top:0})}_getBorderWidth(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}_createResizeFrame(){if(!this._$resizeFrame){var{deviceType:ct}=T.Z.current();this._$resizeFrame=(0,I.Z)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==ct).appendTo(this.editorInstance._getQuillContainer()).hide(),b.Z.on(this._$resizeFrame,Da,Et=>{Et.preventDefault()}),this.resizable=this.editorInstance._createComponent(this._$resizeFrame,$o.Z,{onResize:Et=>{this._$target&&((0,I.Z)(this._$target).attr({height:Et.height,width:Et.width}),this.updateFramePosition())}})}}_deleteImage(){var ct;this._isAllowedTarget(this._$target)&&(null===(ct=R().find(this._$target))||void 0===ct||ct.deleteAt(0))}option(ct,Et){"mediaResizing"!==ct?"enabled"===ct?(this.enabled=Et,Et?this._attachEvents():this._detachEvents()):"allowedTargets"===ct&&Array.isArray(Et)&&(this.allowedTargets=Et):this.handleOptionChangeValue(Et)}clean(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}var ga=u(3824),$a=u(130),ds="dx-htmleditor-column-resizer",Xo="dx-htmleditor-row-resizer",fa={minColumnWidth:40,minRowHeight:24},Ba="dxHtmlTableResizingModule",Jo=(0,y.V4)("dxpointerdown",Ba),aa=(0,y.V4)("scroll",Ba);class Ma extends Be{constructor(ct,Et){super(ct,Et),this.enabled=!!Et.enabled,this._tableResizeFrames=[],this._minColumnWidth=this._minSizeLimit("minColumnWidth",Et.minColumnWidth),this._minRowHeight=this._minSizeLimit("minRowHeight",Et.minRowHeight),this._quillContainer=this.editorInstance._getQuillContainer(),this._tableData=[],this.enabled&&this._applyResizing()}_applyResizing(ct){ct?this._applyResizingImpl():this.editorInstance.addContentInitializedCallback(this._applyResizingImpl.bind(this)),this.addCleanCallback(this.clean.bind(this)),this._resizeHandlerWithContext=ga.Z.add(this._resizeHandler.bind(this))}_minSizeLimit(ct,Et){return(0,g.$K)(Et)?Math.max(Et,0):fa[ct]}_applyResizingImpl(){var ct=this._findTables();ct.length&&(this._fixTablesWidths(ct),this._createResizeFrames(ct),this._updateFramesPositions(),this._updateFramesSeparators()),this._attachEvents()}_attachEvents(){b.Z.on(this.editorInstance._getContent(),aa,this._updateFramesPositions.bind(this)),this.quill.on("text-change",this._getQuillTextChangeHandler())}_detachEvents(){b.Z.off(this.editorInstance._getContent(),Ba),this.quill.off("text-change",this._quillTextChangeHandler)}_getQuillTextChangeHandler(ct,Et,Ln){return(si,Ii,Vi)=>{if(this._isTableChanging()){var rr=this._findTables();this._removeResizeFrames(),"api"===Vi&&this._fixTablesWidths(rr),this._updateTablesColumnsWidth(rr),this._createResizeFrames(rr),this._updateFramesPositions(),this._updateFramesSeparators()}else this._updateFramesPositions(),this._isDragging||this._updateFramesSeparators()}}_getFrameForTable(ct){var Et;return null===(Et=this._framesForTables)||void 0===Et?void 0:Et.get(ct.get(0))}_resizeHandler(){this._windowResizeTimeout=setTimeout(()=>{var ct=this._findTables();(0,ne.S6)(ct,(Et,Ln)=>{var si=(0,I.Z)(Ln),Ii=this._tableResizeFrames[Et],Vi=(0,ge.Y_)(si),rr=this._tableLastWidth(Ii);Math.abs(Vi-rr)>1&&(this._tableLastWidth(Ii,Vi),this._updateColumnsWidth(si,Et))}),this._updateFramesPositions(),this._updateFramesSeparators()})}_findTables(){return(0,I.Z)(this._quillContainer).find("table")}_getWidthStyleValue(ct){var Et=ct[0].style.width;return""!==Et?parseInt(Et):void 0}_tableLastWidth(ct,Et){if(!(0,g.$K)(Et))return ct?.lastWidth;ct.lastWidth=Et}_fixTablesWidths(ct){(0,ne.S6)(ct,(Et,Ln)=>{var si=(0,I.Z)(Ln),Ii=this._getTableDeterminantElements(si,"horizontal");this._tableResizeFrames[Et]||(this._tableResizeFrames[Et]={lastWidth:void 0});var Vi=this._getFrameForTable(si);if(Vi||this._tableResizeFrames.push({$table:si}),0===Ae(si).length){var rr,{columnsSum:vr}=this._getColumnElementsSum(Ii);ue(si,{quill:this.quill});var Zr=null!==(rr=this._tableLastWidth(Vi))&&void 0!==rr?rr:(0,ge.Y_)(si);Vi&&this._tableLastWidth(Vi,Math.max(vr,Zr))}})}_createResizeFrames(ct){this._framesForTables=new Map,ct.each((Et,Ln)=>{var si,Ii=(0,I.Z)(Ln),Vi=null===(si=this._tableResizeFrames[Et])||void 0===si?void 0:si.$table,rr=this._tableResizeFrames[Et].lastWidth;this._tableResizeFrames[Et]={$frame:this._createTableResizeFrame(Ln),$table:Ii,index:Et,lastWidth:Vi&&Ln===Vi.get(0)?rr:void 0,columnsCount:this._getTableDeterminantElements(Ii,"horizontal").length,rowsCount:this._getTableDeterminantElements(Ii,"vertical").length},this._framesForTables.set(Ln,this._tableResizeFrames[Et])}),this._tableResizeFrames.length=ct.length}_isTableChanging(){var ct=this._findTables(),Et=!1;return ct.length!==this._tableResizeFrames.length?Et=!0:(0,ne.S6)(ct,(Ln,si)=>{var Ii=(0,I.Z)(si),Vi=this._tableResizeFrames[Ln],rr=Vi?.columnsCount!==this._getTableDeterminantElements(Ii,"horizontal").length,vr=Vi?.rowsCount!==this._getTableDeterminantElements(Ii,"vertical").length;if(rr||vr)return Et=!0,!1}),Et}_removeResizeFrames(ct){var Et;(0,ne.S6)(this._tableResizeFrames,(Ln,si)=>{if(si.$frame){var Ii,Vi=".".concat(ds,", .").concat(Xo);this._detachSeparatorEvents(null===(Ii=si.$frame)||void 0===Ii?void 0:Ii.find(Vi)),si.$frame.remove()}}),null===(Et=this._framesForTables)||void 0===Et||Et.clear(),ct&&(this._tableResizeFrames=[])}_detachSeparatorEvents(ct){ct.each((Et,Ln)=>{b.Z.off(Ln,Jo)})}_createTableResizeFrame(){return(0,I.Z)("<div>").addClass("dx-table-resize-frame").appendTo(this._quillContainer)}_updateFramesPositions(){(0,ne.S6)(this._tableResizeFrames,(ct,Et)=>{this._updateFramePosition(Et.$table,Et.$frame)})}_updateFramePosition(ct,Et){var{height:Ln,width:si,top:Ii,left:Vi}=(0,nn.l)(ct.get(0)),{top:rr,left:vr}=(0,nn.l)(this.quill.root);Et.css({height:Ln,width:si,top:Ii-rr,left:Vi-vr}),(0,uo.pB)(Et,{left:0,top:0})}_updateFramesSeparators(ct){(0,ne.S6)(this._tableResizeFrames,(Et,Ln)=>{ct?this._updateFrameSeparators(Ln,ct):(this._updateFrameSeparators(Ln,"vertical"),this._updateFrameSeparators(Ln,"horizontal"))})}_isDraggable(ct){return ct.hasClass("dx-draggable")&&ct.is(":visible")}_removeDraggable(ct,Et){this._isDraggable(ct)&&((0,I.Z)(ct).dxDraggable("instance").dispose(),(0,I.Z)(ct).addClass(Et))}_getDirectionInfo(ct){return"vertical"===ct?{lineResizerClass:Xo,sizeFunction:Et=>(0,ge.zp)(Et),positionCoordinate:"top",positionStyleProperty:"height",positionCoordinateName:"y"}:{lineResizerClass:ds,sizeFunction:Et=>(0,ge.Y_)(Et),positionCoordinate:this.editorInstance.option("rtlEnabled")?"right":"left",positionStyleProperty:"width",positionCoordinateName:"x"}}_getSize(ct,Et){return Et.sizeFunction(ct)}_updateFrameSeparators(ct,Et){for(var Ln=this._getTableDeterminantElements(ct.$table,Et),Ii=Ln.length-1,Vi=this._getDirectionInfo(Et),rr=ct.$frame.find(".".concat(Vi.lineResizerClass)),vr={transform:"none"},Zr=0,so=0;so<=Ii;so++){Zr+=this._getSize(Ln.eq(so),Vi),(0,g.$K)(rr[so])||(rr[so]=(0,I.Z)("<div>").addClass(Vi.lineResizerClass).appendTo(ct.$frame).get(0));var vo=(0,I.Z)(rr[so]);this._removeDraggable(vo,Vi.lineResizerClass),vr[Vi.positionCoordinate]=Zr-2,(0,I.Z)(vo).css(vr),this._attachColumnSeparatorEvents({lineSeparator:rr[so],index:so,$determinantElements:Ln,frame:ct,direction:Et})}}_getTableDeterminantElements(ct,Et){return"vertical"===Et?ct.find("th:first-child, td:first-child"):be(ct)}_attachColumnSeparatorEvents(ct){b.Z.on(ct.lineSeparator,Jo,()=>{this._createDraggableElement(ct)})}_dragStartHandler(ct){var{$determinantElements:Et,index:Ln,frame:si,direction:Ii,lineSeparator:Vi}=ct,rr=this._getDirectionInfo(Ii);this._isDragging=!0,this._fixColumnsWidth(si.$table),this._startLineSize=parseInt(this._getSize((0,I.Z)(Et[Ln]),rr)),this._startTableWidth=(0,ge.Y_)(si.$table),this._startLineSeparatorPosition=parseInt((0,I.Z)(Vi).css(rr.positionCoordinate)),this._nextLineSize=0,Et[Ln+1]?this._nextLineSize=parseInt(this._getSize((0,I.Z)(Et[Ln+1]),rr)):"horizontal"===Ii&&ue(si.$table,{quill:this.quill})}_shouldRevertOffset(ct){return"horizontal"===ct&&this.editorInstance.option("rtlEnabled")}_isNextColumnWidthEnough(ct,Et,Ln){if(!this._nextLineSize)return!0;if(ct>=this._minColumnWidth){var si=this._nextColumnOffsetLimit?Ln<this._nextColumnOffsetLimit:Ln<0,Ii=Math.abs(this._getWidthStyleValue(Et)-(0,ge.Y_)(Et))>3;return si||!Ii}return!1}_shouldSetNextColumnWidth(ct){return this._nextLineSize&&ct>0}_horizontalDragHandler(ct){var{currentLineNewSize:Et,directionInfo:Ln,eventOffset:si,$determinantElements:Ii,index:Vi,frame:rr}=ct,vr=this._nextLineSize&&this._nextLineSize-si,Zr=Et>=this._minColumnWidth,so=mt(rr.$table,Vi),vo=mt(rr.$table,Vi+1),Ho=(0,ge.Y_)(so.eq(0))-Et;if(Zr)if(this._isNextColumnWidthEnough(vr,Ii.eq(Vi+1),si)){Ne(this,{elements:so,property:Ln.positionStyleProperty,value:Et}),this._shouldSetNextColumnWidth(vr)&&Ne(this,{elements:vo,property:Ln.positionStyleProperty,value:vr});var Ko=Math.abs(this._startTableWidth-(0,ge.Y_)(rr.$table))<3;(Math.abs(Ho)>3||!this._nextLineSize&&Ko)&&(Ne(this,{elements:so,property:Ln.positionStyleProperty,value:(0,ge.Y_)(so.eq(0))}),vr+=Et-(0,ge.Y_)(so.eq(0)),this._shouldSetNextColumnWidth(vr)&&Ne(this,{elements:vo,property:Ln.positionStyleProperty,value:vr}))}else this._nextColumnOffsetLimit=this._nextColumnOffsetLimit||si;this._$highlightedElement.css(Ln.positionCoordinate,this._startLineSeparatorPosition+si+Ho+"px")}_verticalDragHandler(ct){var{currentLineNewSize:Et,directionInfo:Ln,eventOffset:si,$determinantElements:Ii,index:Vi,frame:rr}=ct,vr=Math.max(Et,this._minRowHeight);Ne(this,{elements:mt(rr.$table,Vi,"vertical"),property:Ln.positionStyleProperty,value:vr});var so=(0,ge.zp)(Ii.eq(Vi))-Et;this._$highlightedElement.css(Ln.positionCoordinate,this._startLineSeparatorPosition+si+so+"px")}_dragMoveHandler(ct,Et){var{$determinantElements:Ln,index:si,frame:Ii,direction:Vi}=Et,rr=this._getDirectionInfo(Vi),vr=ct.offset[rr.positionCoordinateName];this.editorInstance._saveValueChangeEvent(ct),this._shouldRevertOffset(Vi)&&(vr=-vr);var Zr=this._startLineSize+vr;"horizontal"===Vi?this._horizontalDragHandler({currentLineNewSize:Zr,directionInfo:rr,eventOffset:vr,$determinantElements:Ln,index:si,frame:Ii}):this._verticalDragHandler({currentLineNewSize:Zr,directionInfo:rr,eventOffset:vr,$determinantElements:Ln,index:si,frame:Ii}),this._updateFramePosition(Ii.$table,Ii.$frame)}_dragEndHandler(ct){var Et;null===(Et=this._$highlightedElement)||void 0===Et||Et.remove(),this._isDragging=void 0,this._nextColumnOffsetLimit=void 0,this._tableLastWidth(ct.frame,(0,ge.Y_)(ct.frame.$table)),this._updateFramesPositions(),this._updateFramesSeparators()}_isLastColumnResizing(ct){var{$determinantElements:Et,index:Ln}=ct;return!(0,g.$K)(Et[Ln+1])}_getBoundaryConfig(ct){var Et={};if("vertical"===ct.direction)Et.boundary=ct.frame.$table,Et.boundOffset={bottom:(0,nr.Ym)()?-(0,ge.Cr)((0,nr.Jj)()):-(0,ge.zp)(this._quillContainer),top:0,left:0,right:0};else if(this._isLastColumnResizing(ct)){var Ln=this.editorInstance._getContent();Et.boundary=Ln,Et.boundOffset={bottom:0,top:0,left:Ln.css("paddingLeft"),right:Ln.css("paddingRight")}}else Et.boundary=ct.frame.$table;return Et}_createDraggableElement(ct){var Et,Ln=this._getBoundaryConfig(ct),si="vertical"===ct.direction?"dx-htmleditor-highlighted-row":"dx-htmleditor-highlighted-column";null===(Et=this._$highlightedElement)||void 0===Et||Et.remove(),this._$highlightedElement=(0,I.Z)("<div>").addClass("".concat(si)).insertAfter((0,I.Z)(ct.lineSeparator));var Ii={contentTemplate:null,allowMoveByClick:!1,dragDirection:ct.direction,onDragMove:Vi=>{var{event:vr}=Vi;this._dragMoveHandler(vr,ct)},onDragStart:()=>{this._dragStartHandler(ct)},onDragEnd:()=>{this._dragEndHandler(ct)}};(0,C.l)(Ii,Ln),this._currentDraggableElement=this.editorInstance._createComponent(ct.lineSeparator,$a.Z,Ii)}_fixColumnsWidth(ct){var Et=this._getTableDeterminantElements(ct);(0,ne.S6)(Et,(Ln,si)=>{var Ii=(0,ge.Y_)(si);Ne(this,{elements:mt(ct,Ln),property:"width",value:Math.max(Ii,this._minColumnWidth)})})}_getColumnElementsSum(ct){var Et=[],Ln=0;return(0,ne.S6)(ct,(si,Ii)=>{var Vi=(0,I.Z)(Ii),rr=this._getWidthStyleValue(Vi)||(0,ge.Y_)(Vi);Et[si]=Math.max(rr,this._minColumnWidth),Ln+=Et[si]}),{columnsWidths:Et,columnsSum:Ln}}_setColumnsRatioWidth(ct,Et,Ln,si){(0,ne.S6)(ct,Ii=>{Ne(this,{elements:mt(si,Ii),property:"width",value:Et>0?this._minColumnWidth+Math.round((Ln[Ii]-this._minColumnWidth)*Et):this._minColumnWidth})})}_updateColumnsWidth(ct,Et){var Ln=this._getTableDeterminantElements(ct),si=this._tableResizeFrames[Et];si||(this._tableResizeFrames[Et]={});var Vi,Ii=this._tableLastWidth(si=this._tableResizeFrames[Et])||(0,ge.Y_)(ct),{columnsWidths:rr,columnsSum:vr}=this._getColumnElementsSum(Ln),Zr=Ln.length*this._minColumnWidth;this._tableLastWidth(si,(Vi=vr>Zr?(Ii-Zr)/(vr-Zr):-1)>0?Ii:Zr),this._setColumnsRatioWidth(Ln,Vi,rr,ct)}_updateTablesColumnsWidth(ct){(0,ne.S6)(ct,(Et,Ln)=>{this._updateColumnsWidth((0,I.Z)(Ln),Et)})}option(ct,Et){"tableResizing"!==ct?"enabled"===ct?(this.enabled=Et,Et?this._applyResizing(!0):this.clean()):["minColumnWidth","minRowHeight"].includes(ct)&&(this["_".concat(ct)]=this._minSizeLimit(ct,Et)):this.handleOptionChangeValue(Et)}clean(){this._removeResizeFrames(!0),this._detachEvents(),ga.Z.remove(this._resizeHandlerWithContext),clearTimeout(this._windowResizeTimeout),this._resizeHandlerWithContext=void 0,this._isDragging=void 0,this._startTableWidth=void 0,clearTimeout(this._attachResizerTimeout)}}var xa=u(1875),Qo=(0,y.V4)("dxcontextmenu","dxHtmlEditorTableContextMenu"),Aa=Be,ba=at=>le.Z.format("dxHtmlEditor-".concat((0,pe._A)(at)));R()&&(Aa=class extends Be{constructor(at,ct){super(at,ct),this.enabled=!!ct.enabled,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._formatHandlers=mo(this),this._tableFormats=te(at),this.enabled&&this._enableContextMenu(ct.items)}_enableContextMenu(at){var ct;null===(ct=this._contextMenu)||void 0===ct||ct.dispose(),this._contextMenu=this._createContextMenu(at),this._attachEvents()}_attachEvents(){b.Z.on(this.editorInstance._getContent(),Qo,this._prepareContextMenuHandler())}_detachEvents(){b.Z.off(this.editorInstance._getContent(),Qo)}_createContextMenu(at){var ct=(0,I.Z)("<div>").appendTo(this.editorInstance.$element()),Et=this._getMenuConfig(at);return this.editorInstance._createComponent(ct,xa.Z,Et)}showPropertiesForm(){var at=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"cell",ct=(0,I.Z)(this._targetElement).closest("cell"===at?"th, td":"table");this._contextMenu.hide(),this._formatHandlers["".concat(at,"Properties")](ct),this._targetElement=null}_isAcceptableItem(at,ct){return!at||at===ct}_handleObjectItem(at){if(at.name&&this._isAcceptableItem(at.widget,"dxButton")){var ct=this._prepareMenuItemConfig(at.name);return(0,C.l)(!0,ct,at)}return at.items&&(at.items=this._prepareMenuItems(at.items)),at}_prepareMenuItemConfig(at){var ct,Et,Ln=null!==(ct=Rr[at])&&void 0!==ct?ct:at,si=(0,pe.MI)(at);return{text:ba(si),icon:Ln.toLowerCase(),onClick:null!==(Et=this._formatHandlers[at])&&void 0!==Et?Et:vi(this,at)}}_prepareMenuItems(at){var ct=[];return(0,ne.S6)(at,(Et,Ln)=>{var si;(0,g.Kn)(Ln)?si=this._handleObjectItem(Ln):(0,g.HD)(Ln)&&(si=this._prepareMenuItemConfig(Ln)),si&&ct.push(si)}),ct}_getMenuConfig(at){var ct=[{text:ba("insert"),items:["insertHeaderRow","insertRowAbove","insertRowBelow",(0,C.l)(this._prepareMenuItemConfig("insertColumnLeft"),{beginGroup:!0}),"insertColumnRight"]},{text:ba("delete"),items:["deleteColumn","deleteRow","deleteTable"]},(0,C.l)(this._prepareMenuItemConfig("cellProperties"),{onClick:Ln=>{this.showPropertiesForm("cell")}}),(0,C.l)(this._prepareMenuItemConfig("tableProperties"),{onClick:Ln=>{this.showPropertiesForm("table")}})],Et=this._prepareMenuItems(null!=at&&at.length?at:ct);return{target:this._quillContainer,showEvent:null,hideOnParentScroll:!1,items:Et}}_prepareContextMenuHandler(){return at=>{this._isTableTarget(at.target)&&(this._targetElement=at.target,this._setContextMenuPosition(at),this._contextMenu.show(),at.preventDefault())}}_setContextMenuPosition(at){var ct=this._quillContainer.get(0).getBoundingClientRect();this._contextMenu.option({position:{my:"left top",at:"left top",collision:"fit fit",offset:{x:at.clientX-ct.left,y:at.clientY-ct.top}}})}_isTableTarget(at){return!!(0,I.Z)(at).closest(".dx-htmleditor-content td, .dx-htmleditor-content th").length}clean(){this._detachEvents()}option(at,ct){if("tableContextMenu"!==at){if("enabled"===at)this.enabled=ct,ct?this._enableContextMenu():this.clean();else if("items"===at){var Et;null===(Et=this._contextMenu)||void 0===Et||Et.dispose(),this._contextMenu=this._createContextMenu(ct)}}else this.handleOptionChangeValue(ct)}prepareCleanCallback(){return()=>{this.clean()}}});const wa=Aa;var _a="dxHtmlEditorImageUpload",Ut=Be;R()&&(Ut=class extends Be{constructor(at,ct){super(at,ct),this.options=ct,this._quillContainer=this.editorInstance._getQuillContainer(),this.addCleanCallback(this.prepareCleanCallback()),this._handleServerUpload()}_handleServerUpload(){(0,g.$K)(this.options.fileUploadMode)&&"base64"!==this.options.fileUploadMode?this._enableDragAndDropUploading():this._disableDragAndDropUploading()}_getUploaderModule(){return this._uploaderModule||(this._uploaderModule=this.quill.getModule("uploader")),this._uploaderModule}_disableDragAndDropUploading(){var at;this._getUploaderModule().preventImageUploading(!1),this._detachEvents(),null===(at=this._fileUploader)||void 0===at||at.dispose()}_enableDragAndDropUploading(){this._initFileUploader(),this._getUploaderModule().preventImageUploading(!0),this._attachEvents()}_initFileUploader(){var at=(0,I.Z)("<div>").addClass("dx-htmleditor-hidden-content").appendTo(this._quillContainer),ct=(0,C.l)({},{value:[],name:"dx-htmleditor-image",accept:"image/*",uploadMode:"useButtons"},{uploadUrl:this.options.uploadUrl,onUploaded:this._onUploaded.bind(this)},this.options.fileUploaderOptions);return this._fileUploader=this.editorInstance._createComponent(at,Ye.Z,ct),at}_onUploaded(at){var ct,{index:Et}=null!==(ct=this.quill.getSelection())&&void 0!==ct?ct:{index:this.quill.getLength()},Ln=ci(this.options.uploadDirectory)+at.file.name;qi(this.quill,Et,{src:Ln}),this.quill.setSelection(Et+1,0)}_attachEvents(){b.Z.on(this.quill.root,(0,y.V4)("drop",_a),this._dropHandler.bind(this)),b.Z.on(this.quill.root,(0,y.V4)("paste",_a),this._pasteHandler.bind(this))}_detachEvents(){b.Z.off(this.quill.root,_a)}_dropHandler(at){this._handleInsertImages(at,"dataTransfer")}_pasteHandler(at){this._handleInsertImages(at,"clipboardData")}_handleInsertImages(at,ct){this.saveValueChangeEvent(at);var Ln=Array.from(at.originalEvent[ct].files||[]);Ln.length&&(at.preventDefault(),at.stopPropagation(),this._fileUploader.option("value",Ln),this._fileUploader.upload())}clean(){this._disableDragAndDropUploading()}prepareCleanCallback(){return()=>{this.clean()}}option(at,ct){switch(at){case"imageUpload":this.handleOptionChangeValue(ct);break;case"fileUploadMode":this.options.fileUploadMode=ct,this._handleServerUpload();break;case"fileUploaderOptions":this._fileUploader.option(ct)}}});const At=Ut;var Ni=(0,y.V4)("dxclick","dxHtmlEditorImageCursor"),jr=Be;R()&&(jr=class extends Be{constructor(at,ct){super(at,ct),this.addCleanCallback(this.clean.bind(this)),this._attachEvents()}_attachEvents(){b.Z.on(this.quill.root,Ni,this._clickHandler.bind(this))}_detachEvents(){b.Z.off(this.quill.root,Ni)}_clickHandler(at){this._isAllowedTarget(at.target)&&this._adjustSelection(at)}_isAllowedTarget(at){return this._isImage(at)}_isImage(at){return"IMG"===at.tagName.toUpperCase()}_adjustSelection(at){var ct=this.quill.scroll.find(at.target);if(ct){var Et=ct.offset(this.quill.scroll);this.quill.setSelection(Et+1,0)}else this.quill.setSelection(0,0)}clean(){this._detachEvents()}});const Eo=jr;var _t=u(6738),it={};if(R()){var We=R().import("blots/embed");(it=class extends We{static create(at){var ct=super.create();return ct.setAttribute("spellcheck",!1),ct.dataset.marker=at.marker,ct.dataset.mentionValue=at.value,ct.dataset.id=at.id,this.renderContent(ct,at),ct}static value(at){return{marker:at.dataset.marker,id:at.dataset.id,value:at.dataset.mentionValue}}static renderContent(at,ct){var Et=this._templates.get(ct.marker);Et?Et.render({model:ct,container:at}):this.baseContentRender(at,ct)}static baseContentRender(at,ct){var Et=(0,I.Z)("<span>").text(ct.marker);(0,I.Z)(at).append(Et).append(ct.value)}static addTemplate(at,ct){this._templates.set(at,ct)}static removeTemplate(at){this._templates.delete(at)}}).blotName="mention",it.tagName="span",it.className="dx-mention",it._templates=new Map}const rt=it;var $t=Be;if(R()){var Jn={ARROW_UP:"upArrow",ARROW_DOWN:"downArrow",ARROW_LEFT:"leftArrow",ARROW_RIGHT:"rightArrow",ENTER:"enter",ESCAPE:"escape",SPACE:"space",PAGE_UP:"pageUp",PAGE_DOWN:"pageDown",END:"end",HOME:"home"},Pi=[Jn.ARROW_LEFT,Jn.ARROW_RIGHT,Jn.PAGE_UP,Jn.PAGE_DOWN,Jn.END,Jn.HOME],yi=[" ","\n"];R().register({"formats/mention":rt},!0),$t=class extends xi{_getDefaultOptions(){var at=super._getDefaultOptions();return(0,C.l)(at,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}constructor(at,ct){super(at,ct),this._mentions={},ct.mentions.forEach(Et=>{var Ln=Et.marker;Ln||(Et.marker=Ln="@");var si=Et.template;if(si){var Ii=this.editorInstance._getTemplate(si);Ii&&rt.addTemplate(Ln,Ii)}this._mentions[Ln]=(0,C.l)({},this._getDefaultOptions(),Et)}),this._attachKeyboardHandlers(),this.addCleanCallback(this.clean.bind(this)),this.quill.on("text-change",this.onTextChange.bind(this))}_attachKeyboardHandlers(){this.quill.keyboard.addBinding({key:Jn.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:Jn.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:[Jn.ENTER,Jn.SPACE]},this._selectItemHandler.bind(this));var at=this.quill.keyboard.bindings[Jn.ENTER];at.unshift(at.pop()),this.quill.keyboard.addBinding({key:Jn.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:[Jn.ARROW_LEFT,Jn.ARROW_RIGHT],shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:Pi},this._ignoreKeyHandler.bind(this))}_moveToItem(at){var ct=this._list.getDataSource();if(this._isMentionActive&&!ct.isLoading()){var Ln="next"===at?"first":"last",si=(0,I.Z)(this._list.option("focusedElement"))[at]();si=si.length?si:this._activeListItems[Ln](),this._list.option("focusedElement",(0,a.u)(si)),this._list.scrollToItem(si)}return!this._isMentionActive}_ignoreKeyHandler(){return!this._isMentionActive}_fitIntoRange(at,ct,Et){return at>Et?ct:at<ct?Et:at}_selectItemHandler(){return this._isMentionActive&&(this._list.option("items").length?this._list.selectItem(this._list.option("focusedElement")):this._popup.hide()),!this._isMentionActive}_escapeKeyHandler(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}renderList(at,ct){this.compileGetters(this.options),super.renderList(at,ct)}compileGetters(at){var{displayExpr:ct,valueExpr:Et}=at;this._valueGetter=(0,_t.vb)(ct),this._idGetter=(0,_t.vb)(Et)}_getListConfig(at){var ct=super._getListConfig(at);return(0,C.l)(ct,{itemTemplate:this.options.itemTemplate,onContentReady:()=>{this._hasSearch&&(this._popup.repaint(),this._focusFirstElement(),this._hasSearch=!1)}})}insertEmbedContent(){var at=this._activeMentionConfig.marker.length,ct=at+this._searchValue.length,Et=this.getPosition(),Ln=this._list.option("selectedItem"),si={value:this._valueGetter(Ln),id:this._idGetter(Ln),marker:this._activeMentionConfig.marker},Ii=R().import("delta"),Vi=Math.max(0,Et-at),rr=(new Ii).retain(Vi).delete(ct).insert({mention:si}).insert(" ");this.quill.updateContents(rr),this.quill.setSelection(Vi+2)}_getLastInsertOperation(at){var ct=at[at.length-1];if("insert"in ct)return ct;var Ln="delete"in ct;if(Ln&&at.length>=2){var si=at[at.length-2];if(Ln&&"insert"in si)return si}return null}onTextChange(at,ct,Et){if("user"===Et)if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(at.ops[at.ops.length-1])&&this._filterList(this._searchValue);else{var{ops:si}=at,Ii=this._getLastInsertOperation(si);Ii&&this.checkMentionRequest(Ii,si)}}get _isPopupVisible(){var at;return null===(at=this._popup)||void 0===at?void 0:at.option("visible")}_processSearchValue(at){if("insert"in at)this._searchValue+=at.insert;else{if(!this._searchValue.length||at.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}checkMentionRequest(at,ct){var{insert:Et}=at,Ln=this.quill.getSelection();if(Et&&(0,g.HD)(Et)&&Ln&&!this._isMarkerPartOfText(ct[0].retain)&&(this._activeMentionConfig=this._mentions[Et],this._activeMentionConfig)){this._updateList(this._activeMentionConfig);var si=Ln.index&&"\n"===this._getCharByIndex(Ln.index-1);this.savePosition(Ln.index+si),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()}}_isMarkerPartOfText(at){return!(!at||-1!==yi.indexOf(this._getCharByIndex(at-1)))}_getCharByIndex(at){return this.quill.getContents(at,1).ops[0].insert}_updateList(at){var{dataSource:ct,displayExpr:Et,valueExpr:Ln,itemTemplate:si,searchExpr:Ii}=at;this.compileGetters({displayExpr:Et,valueExpr:Ln}),this._list.unselectAll(),this._list.option({dataSource:ct,displayExpr:Et,itemTemplate:si,searchExpr:Ii})}_filterList(at){if(this._isMinSearchLengthExceeded(at)){var ct=this._activeMentionConfig.searchTimeout;ct?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout(()=>{this._search(at)},ct)):this._search(at)}else this._resetFilter()}_isMinSearchLengthExceeded(at){return at.length>=this._activeMentionConfig.minSearchLength}_resetFilter(){clearTimeout(this._searchTimer),this._search(null)}_search(at){this._hasSearch=!0,this._list.option("searchValue",at)}_focusFirstElement(){if(this._list){var at=this._activeListItems.first();this._list.option("focusedElement",(0,a.u)(at)),this._list.scrollToItem(at)}}get _popupPosition(){var at=this.getPosition(),{left:ct,top:Et,height:Ln}=this.quill.getBounds(at&&at-1),{left:si,top:Ii}=(0,I.Z)(this.quill.root).offset();return{of:b.Z.Event("positionEvent",{pageX:si+ct,pageY:Ii+Et}),offset:{v:Ln},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}_getPopupConfig(){return(0,C.l)(super._getPopupConfig(),{hideOnParentScroll:!1,onShown:()=>{this._isMentionActive=!0,this._hasSearch=!1,this._focusFirstElement()},onHidden:()=>{this._list.unselectAll(),this._list.option("focusedElement",null),this._isMentionActive=!1,this._search(null)},focusStateEnabled:!1})}get _activeListItems(){return this._list.itemElements().filter(":not(.".concat("dx-state-disabled",")"))}clean(){Object.keys(this._mentions).forEach(at=>{this._mentions[at].template&&rt.removeTemplate(at)})}}}const bi=$t;class Xi{constructor(){if(!Xi.initialized){var ct=this.getQuill(),Et=ct.import("attributors/style/direction");ct.register({"formats/align":M,"formats/direction":Et,"formats/font":G,"formats/size":Z,"formats/extendedImage":K,"formats/link":j,"modules/toolbar":Nn,"modules/dropImage":Bt,"modules/variables":ro,"modules/resizing":jo,"modules/tableResizing":Ma,"modules/tableContextMenu":wa,"modules/imageUpload":At,"modules/imageCursor":Eo,"modules/mentions":bi,"themes/basic":z},!0),this._customModules=[],Xi._initialized=!0}}createEditor(ct,Et){return new(this.getQuill())(ct,Et)}registerModules(ct){var Et=RegExp("modules/*"),Ln=this.getQuill();for(var Ii in ct)Et.test(Ii)&&!Ln.imports[Ii]&&this._customModules.push(Ii.slice(8));Ln.register(ct,!0)}getRegisteredModuleNames(){return this._customModules}getQuill(){return P()}}const mr=Xi,$i=new class lr{constructor(){this._converters={}}addConverter(ct,Et){this._converters[ct]=Et}getConverter(ct){return this._converters[ct]}};function Hr(at){return at[1].match(/\S+\./)?"ordered":"bullet"}$i.addConverter("delta",class ir{setQuillInstance(ct){this.quillInstance=ct}toHtml(){if(this.quillInstance)return this._isQuillEmpty()?"":this.quillInstance.getSemanticHTML(0,this.quillInstance.getLength()+1)}_isQuillEmpty(){var ct=this.quillInstance.getContents();return 1===ct.length()&&this._isDeltaEmpty(ct)}_isDeltaEmpty(ct){return ct.reduce((Et,Ln)=>{var{insert:si}=Ln;return-1!==si.indexOf("\n")})}});var eo=u(2722),Dn="dx-formdialog";var Er="markdown",go="htmlContent",xo="ios"===T.Z.current().platform,sa=d.Z.inherit({_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,tableResizing:null,mentions:null,customizeModules:null,tableContextMenu:null,allowSoftLineBreak:!1,formDialogOptions:null,imageUpload:null,stylingMode:"outlined"})},_init:function(){this.callBase(),this._cleanCallback=(0,v.Z)(),this._contentInitializedCallback=(0,v.Z)()},_getAnonymousTemplateName:function(){return go},_initTemplates:function(){this._templateManager.addDefaultTemplates({[go]:new l.s}),this.callBase()},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find(".".concat("dx-htmleditor-content"))},_focusInHandler:function(at){var{relatedTarget:ct}=at;this._shouldSkipFocusEvent(ct)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(at){var{relatedTarget:ct}=at;this._shouldSkipFocusEvent(ct)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(at){return(0,I.Z)(at).hasClass("ql-clipboard")},_initMarkup:function(){this._$htmlContainer=(0,I.Z)("<div>").addClass("dx-quill-container"),this.$element().attr("role","application").addClass("dx-htmleditor").wrapInner(this._$htmlContainer),this._renderStylingMode();var at=this._getTemplate(go);this._$templateResult=at&&at.render({container:(0,a.u)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,I.Z)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(at){this._getSubmitElement().val(at)},_getSubmitElement:function(){return this._$submitElement},_removeXSSVulnerableHtml:function(at){var ct=(0,I.Z)("<iframe>").css("display","none").attr({id:"xss-frame",sandbox:"allow-same-origin"}).appendTo("body"),Ii=ct.get(0).contentWindow.document.body;Ii.innerHTML=at;var Vi=vr=>{if(vr.attributes)for(var Zr=0;Zr<vr.attributes.length;Zr++){var so=vr.attributes[Zr].name;so.startsWith("on")&&vr.removeAttribute(so)}if(vr.childNodes)for(var vo=0;vo<vr.childNodes.length;vo++)Vi(vr.childNodes[vo])};Vi(Ii),(0,I.Z)(Ii).find("script").remove();var rr=Ii.innerHTML;return ct.remove(),rr},_updateContainerMarkup:function(){var at=this.option("value");if(this._isMarkdownValue()&&(this._prepareMarkdownConverter(),at=this._markdownConverter.toHtml(at)),at){var ct=this._removeXSSVulnerableHtml(at);this._$htmlContainer.html(ct)}},_prepareMarkdownConverter:function(){var at=$i.getConverter("markdown");if(!at)throw h.Z.Error("E1051","markdown");this._markdownConverter=new at},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new mr)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var at=$i.getConverter("delta");at&&(this._deltaConverter=new at)}this.option("valueType")===Er&&!this._markdownConverter&&this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new x.BH;var at=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),at},_pointerMoveHandler:function(at){xo&&at.stopPropagation()},_attachFocusEvents:function(){(0,p.g0)(this.callBase.bind(this))},_addKeyPressHandler:function(){var at=(0,y.V4)("keydown","".concat(this.NAME,"TextChange"));b.Z.on(this._$htmlContainer,at,this._keyDownHandler.bind(this))},_keyDownHandler:function(at){this._saveValueChangeEvent(at)},_renderHtmlEditor:function(){var at=this.option("customizeModules"),ct=this._getModulesConfig();(0,g.mf)(at)&&at(ct),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:ct,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=(0,p.Wi)(()=>{this._applyTranscludedContent()}):this._finalizeContentRendering()},_renderScrollHandler:function(){var at=this._getContent(),ct=(0,O.M)(at);b.Z.on(at,(0,y.V4)(S.Z.init,this.NAME),ct,p.ZT),b.Z.on(at,(0,y.V4)(w.Z.move,this.NAME),this._pointerMoveHandler.bind(this))},_applyTranscludedContent:function(){var at=this.option("value");if(!(0,g.$K)(at)){var ct=this._deltaConverter.toHtml(),Et=this._quillInstance.clipboard.convert({html:ct});if(Et.ops.length)return void this._quillInstance.setContents(Et)}this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var ct=(at=>{var ct=at.import("delta");return(Et,Ln)=>{var si=Ln.ops.slice(),Ii=si[0];Ii.insert=Ii.insert.replace(/^\s+/,"");var Vi=Ii.insert.match(/^(\S+)\s+/),rr=Vi&&function Or(at){var ct=at.getAttribute("style");if(ct){var Et=ct.replace(/\n+/g,"").match(/level(\d+)/);return Et?Et[1]-1:0}return!1}(Et);return Vi&&!1!==rr?(Ii.insert=Ii.insert.substring(Vi[0].length,Ii.insert.length),function Pr(at){var ct=at[at.length-1];ct.insert=ct.insert.trim()}(si),si.push({insert:"\n",attributes:{list:Hr(Vi),indent:rr}}),new ct(si)):Ln}})(this._getRegistrator().getQuill());return(0,C.l)({},{table:!0,toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),resizing:this._getModuleConfigByOption("mediaResizing"),tableResizing:this._getModuleConfigByOption("tableResizing"),tableContextMenu:this._getModuleConfigByOption("tableContextMenu"),imageUpload:this._getModuleConfigByOption("imageUpload"),imageCursor:this._getBaseModuleConfig(),mentions:this._getModuleConfigByOption("mentions"),uploader:{onDrop:Ln=>this._saveValueChangeEvent((0,E.ju)(Ln)),imageBlot:"extendedImage"},keyboard:{onKeydown:Ln=>this._saveValueChangeEvent((0,E.ju)(Ln))},clipboard:{onPaste:Ln=>this._saveValueChangeEvent((0,E.ju)(Ln)),onCut:Ln=>this._saveValueChangeEvent((0,E.ju)(Ln)),matchers:[["p.MsoListParagraphCxSpFirst",ct],["p.MsoListParagraphCxSpMiddle",ct],["p.MsoListParagraphCxSpLast",ct]]},multiline:Boolean(this.option("allowSoftLineBreak"))},this._getCustomModules())},_getModuleConfigByOption:function(at){var ct=this.option(at),Et={};if((0,g.$K)(ct))return Array.isArray(ct)?Et[at]=ct:Et=ct,(0,C.l)(this._getBaseModuleConfig(),Et)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var at={};return this._getRegistrator().getRegisteredModuleNames().forEach(Et=>{at[Et]=this._getBaseModuleConfig()}),at},_textChangeHandler:function(at,ct,Et){var Ln=this._deltaConverter.toHtml(),si=this._isMarkdownValue()?this._updateValueByType(Er,Ln):Ln,Ii=this.option("value");Ii!==si&&!this._isNullValueConverted(Ii,si)&&(this._isEditorUpdating=!0,this.option("value",si)),this._finalizeContentRendering()},_isNullValueConverted:function(at,ct){return null===at&&""===ct},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(at,ct){var Et=this._markdownConverter;if((0,g.$K)(Et)){var Ln=(0,p.IS)(ct,this.option("value"));return at===Er?Et.toMarkdown(Ln):Et.toHtml(Ln)}},_isMarkdownValue:function(){return this.option("valueType")===Er},_resetEnabledState:function(){if(this._quillInstance){var at=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(at)}},_renderFormDialog:function(){var at=(0,C.l)(!0,{width:"auto",height:"auto",hideOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new class Wt{constructor(ct,Et){this._editorInstance=ct,this._popupUserConfig=Et,this._renderPopup(),this._attachOptionChangedHandler()}_renderPopup(){var ct=this._editorInstance,Et=(0,I.Z)("<div>").addClass(Dn).appendTo(ct.$element()),Ln=this._getPopupConfig();return ct._createComponent(Et,On.Z,Ln)}_attachOptionChangedHandler(){var ct;null===(ct=this._popup)||void 0===ct||ct.on("optionChanged",Et=>{var{name:Ln,value:si}=Et;"title"===Ln&&this._updateFormLabel(si)})}_escKeyHandler(){this._popup.hide()}_addEscapeHandler(ct){ct.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}_isSmallScreen(){var ct=(0,nr.Ym)()?(0,nr.Wf)():null;return"phone"===T.Z.real().deviceType||"xs"===ct}_getPopupConfig(){return(0,C.l)({onInitialized:ct=>{this._popup=ct.component,this._popup.on("hiding",()=>this.onHiding()),this._popup.on("shown",()=>{this._form.focus()})},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,fullScreen:this._isSmallScreen(),contentTemplate:ct=>{var Et=(0,I.Z)("<div>").appendTo(ct);this._renderForm(Et,{onEditorEnterKey:Ln=>this.callAddButtonAction(Ln.event),customizeItem:Ln=>{"simple"===Ln.itemType&&(Ln.editorOptions=(0,C.l)(!0,{},Ln.editorOptions,{onInitialized:this._addEscapeHandler.bind(this)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:le.Z.format("OK"),onClick:ct=>this.callAddButtonAction(ct.event)}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:le.Z.format("Cancel"),onClick:()=>{this._popup.hide()}}}],_wrapperClassExternal:Dn},this._popupUserConfig)}onHiding(){this.beforeAddButtonAction=void 0,this.deferred.reject()}callAddButtonAction(ct){this.beforeAddButtonAction&&!this.beforeAddButtonAction()||this.hide(this._form.option("formData"),ct)}_renderForm(ct,Et){ct.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(ct,gt.Z,Et),this._updateFormLabel()}_updateFormLabel(ct){var Et,Ln=ct??this.popupOption("title");null===(Et=this._form)||void 0===Et||Et.$element().attr("aria-label",Ln)}_getDefaultFormOptions(){return{colCount:1,width:"auto",labelLocation:(0,eo.x2)()?"top":"left"}}formOption(ct,Et){return this._form.option.apply(this._form,arguments)}show(ct){if(!this._popup.option("visible")){this.deferred=new x.BH;var Et=(0,C.l)(this._getDefaultFormOptions(),ct);return this._form.option(Et),this._popup.show(),this.deferred.promise()}}hide(ct,Et){this.deferred.resolve(ct,Et),this._popup.hide()}popupOption(ct,Et){return this._popup.option.apply(this._popup,arguments)}}(this,at)},_getStylingModePrefix:function(){return"dx-htmleditor-"},_getQuillContainer:function(){return this._$htmlContainer},_prepareModuleOptions(at){var ct,Et=null===(ct=at.fullName)||void 0===ct?void 0:ct.split("."),Ln=at.value;return 3===Et.length&&(Ln={[Et[2]]:Ln}),[Et.length>=2?Et[1]:at.name,Ln]},_moduleOptionChanged:function(at,ct){var Et,Ln=null===(Et=this._quillInstance)||void 0===Et?void 0:Et.getModule(at);Boolean(Ln)?Ln.option(...this._prepareModuleOptions(ct)):this._invalidate()},_optionChanged:function(at){switch(at.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var ct=this._isMarkdownValue()?this._updateValueByType("HTML",at.value):at.value;this._updateHtmlContent(ct)}else this._$htmlContainer.html(at.value);this._setSubmitValue(at.value),this.callBase(at);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":case"allowSoftLineBreak":this._invalidate();break;case"tableResizing":this._moduleOptionChanged("tableResizing",at);break;case"valueType":this._prepareConverters();var Et=this._updateValueByType(at.value);"html"===at.value&&this._quillInstance?this._updateHtmlContent(Et):this.option("value",Et);break;case"stylingMode":this._renderStylingMode();break;case"readOnly":case"disabled":this.callBase(at),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"tableContextMenu":this._moduleOptionChanged("tableContextMenu",at);break;case"mediaResizing":at.previousValue&&at.value?this._quillInstance.getModule("resizing").option(at.name,at.value):this._invalidate();break;case"width":this.callBase(at),this._repaintToolbar();break;case"imageUpload":this._moduleOptionChanged("imageUpload",at);break;default:this.callBase(at)}},_repaintToolbar:function(){var at=this._quillInstance.getModule("toolbar");at&&at.repaint()},_updateHtmlContent:function(at){var ct=this._quillInstance.clipboard.convert({html:at});this._quillInstance.setContents(ct)},_clean:function(){this._quillInstance&&(b.Z.off(this._getContent(),".".concat(this.NAME)),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod(at,ct){if(this._quillInstance)return this._quillInstance[at].apply(this._quillInstance,ct)},_applyQuillHistoryMethod(at){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[at]()},addCleanCallback(at){this._cleanCallback.add(at)},addContentInitializedCallback(at){this._contentInitializedCallback.add(at)},register:function(at){this._getRegistrator().registerModules(at),this._quillInstance&&this.repaint()},get:function(at){return this._getRegistrator().getQuill().import(at)},getModule:function(at){return this._applyQuillMethod("getModule",arguments)},getQuillInstance:function(){return this._quillInstance},getSelection:function(at){return this._applyQuillMethod("getSelection",arguments)},setSelection:function(at,ct){this._applyQuillMethod("setSelection",arguments)},getText:function(at,ct){return this._applyQuillMethod("getText",arguments)},format:function(at,ct){this._applyQuillMethod("format",arguments)},formatText:function(at,ct,Et,Ln){this._applyQuillMethod("formatText",arguments)},formatLine:function(at,ct,Et,Ln){this._applyQuillMethod("formatLine",arguments)},getFormat:function(at,ct){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(at,ct){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},getBounds:function(at,ct){return this._applyQuillMethod("getBounds",arguments)},delete:function(at,ct){this._applyQuillMethod("deleteText",arguments)},insertText:function(at,ct,Et){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(at,ct,Et){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(at){return this._formDialog.show(at)},formDialogOption:function(at,ct){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")},blur:function(){this._applyQuillMethod("blur")}});(0,s.Z)("dxHtmlEditor",sa);const Zo=sa;var da=u(8942),Br=u(1759),Mt=u(8208);const ln=["*"],Ht={provide:da.JU,useExisting:(0,c.Gpc)(()=>Bn),multi:!0};let Bn=(()=>{class at extends Br.Ay{constructor(Et,Ln,si,Ii,Vi,rr,vr,Zr){super(Et,Ln,si,Ii,vr,Zr),this._watcherHelper=Ii,this._idh=Vi,this.touched=so=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowSoftLineBreakChange"},{emit:"customizeModulesChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"imageUploadChange"},{emit:"isValidChange"},{emit:"mediaResizingChange"},{emit:"mentionsChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"tableContextMenuChange"},{emit:"tableResizingChange"},{emit:"toolbarChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueTypeChange"},{emit:"variablesChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),rr.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(Et){this._setOption("accessKey",Et)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(Et){this._setOption("activeStateEnabled",Et)}get allowSoftLineBreak(){return this._getOption("allowSoftLineBreak")}set allowSoftLineBreak(Et){this._setOption("allowSoftLineBreak",Et)}get customizeModules(){return this._getOption("customizeModules")}set customizeModules(Et){this._setOption("customizeModules",Et)}get disabled(){return this._getOption("disabled")}set disabled(Et){this._setOption("disabled",Et)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(Et){this._setOption("elementAttr",Et)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(Et){this._setOption("focusStateEnabled",Et)}get height(){return this._getOption("height")}set height(Et){this._setOption("height",Et)}get hint(){return this._getOption("hint")}set hint(Et){this._setOption("hint",Et)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(Et){this._setOption("hoverStateEnabled",Et)}get imageUpload(){return this._getOption("imageUpload")}set imageUpload(Et){this._setOption("imageUpload",Et)}get isValid(){return this._getOption("isValid")}set isValid(Et){this._setOption("isValid",Et)}get mediaResizing(){return this._getOption("mediaResizing")}set mediaResizing(Et){this._setOption("mediaResizing",Et)}get mentions(){return this._getOption("mentions")}set mentions(Et){this._setOption("mentions",Et)}get name(){return this._getOption("name")}set name(Et){this._setOption("name",Et)}get placeholder(){return this._getOption("placeholder")}set placeholder(Et){this._setOption("placeholder",Et)}get readOnly(){return this._getOption("readOnly")}set readOnly(Et){this._setOption("readOnly",Et)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(Et){this._setOption("rtlEnabled",Et)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(Et){this._setOption("stylingMode",Et)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(Et){this._setOption("tabIndex",Et)}get tableContextMenu(){return this._getOption("tableContextMenu")}set tableContextMenu(Et){this._setOption("tableContextMenu",Et)}get tableResizing(){return this._getOption("tableResizing")}set tableResizing(Et){this._setOption("tableResizing",Et)}get toolbar(){return this._getOption("toolbar")}set toolbar(Et){this._setOption("toolbar",Et)}get validationError(){return this._getOption("validationError")}set validationError(Et){this._setOption("validationError",Et)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(Et){this._setOption("validationErrors",Et)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(Et){this._setOption("validationMessageMode",Et)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(Et){this._setOption("validationMessagePosition",Et)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(Et){this._setOption("validationStatus",Et)}get value(){return this._getOption("value")}set value(Et){this._setOption("value",Et)}get valueType(){return this._getOption("valueType")}set valueType(Et){this._setOption("valueType",Et)}get variables(){return this._getOption("variables")}set variables(Et){this._setOption("variables",Et)}get visible(){return this._getOption("visible")}set visible(Et){this._setOption("visible",Et)}get width(){return this._getOption("width")}set width(Et){this._setOption("width",Et)}change(Et){}get mentionsChildren(){return this._getOption("mentions")}set mentionsChildren(Et){this.setChildren("mentions",Et)}_createInstance(Et,Ln){return new Zo(Et,Ln)}writeValue(Et){this.eventHelper.lockedValueChangeEvent=!0,this.value=Et,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(Et){this.disabled=Et}registerOnChange(Et){this.change=Et}registerOnTouched(Et){this.touched=Et}_createWidget(Et){super._createWidget(Et),this.instance.on("focusOut",Ln=>{this.eventHelper.fireNgEvent("onBlur",[Ln])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(Et){super.ngOnChanges(Et),this.setupChanges("mentions",Et),this.setupChanges("validationErrors",Et)}setupChanges(Et,Ln){Et in this._optionsToUpdate||this._idh.setup(Et,Ln)}ngDoCheck(){this._idh.doCheck("mentions"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(Et,Ln){let si=this._idh.setupSingle(Et,Ln),Ii=null!==this._idh.getChanges(Et,Ln);(si||Ii)&&super._setOption(Et,Ln)}}return at.\u0275fac=function(Et){return new(Et||at)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(Br._5),c.Y36(Br._h),c.Y36(Br.i9),c.Y36(Br.al),c.Y36(o.ki),c.Y36(c.Lbi))},at.\u0275cmp=c.Xpm({type:at,selectors:[["dx-html-editor"]],contentQueries:function(Et,Ln,si){if(1&Et&&c.Suo(si,Mt.QZF,4),2&Et){let Ii;c.iGM(Ii=c.CRH())&&(Ln.mentionsChildren=Ii)}},hostBindings:function(Et,Ln){1&Et&&c.NdJ("valueChange",function(Ii){return Ln.change(Ii)})("onBlur",function(Ii){return Ln.touched(Ii)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowSoftLineBreak:"allowSoftLineBreak",customizeModules:"customizeModules",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",imageUpload:"imageUpload",isValid:"isValid",mediaResizing:"mediaResizing",mentions:"mentions",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",stylingMode:"stylingMode",tabIndex:"tabIndex",tableContextMenu:"tableContextMenu",tableResizing:"tableResizing",toolbar:"toolbar",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueType:"valueType",variables:"variables",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowSoftLineBreakChange:"allowSoftLineBreakChange",customizeModulesChange:"customizeModulesChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",imageUploadChange:"imageUploadChange",isValidChange:"isValidChange",mediaResizingChange:"mediaResizingChange",mentionsChange:"mentionsChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",tableContextMenuChange:"tableContextMenuChange",tableResizingChange:"tableResizingChange",toolbarChange:"toolbarChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueTypeChange:"valueTypeChange",variablesChange:"variablesChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[c._Bn([Br._5,Br._h,Ht,Br.al,Br.i9]),c.qOj,c.TTD],ngContentSelectors:ln,decls:1,vars:0,template:function(Et,Ln){1&Et&&(c.F$t(),c.Hsn(0))},encapsulation:2}),at})(),ui=(()=>{class at{}return at.\u0275fac=function(Et){return new(Et||at)},at.\u0275mod=c.oAB({type:at}),at.\u0275inj=c.cJS({imports:[[Mt.w4f,Mt.wBe,Mt._9O,Mt.hB5,Mt.N2O,Mt.BcR,Mt.Q8p,Mt.z4e,Mt.azD,Mt.xwG,Br.Lz,Br.ie,o.Cu],Mt.w4f,Mt.wBe,Mt._9O,Mt.hB5,Mt.N2O,Mt.BcR,Mt.Q8p,Mt.z4e,Mt.azD,Mt.xwG,Br.ie]}),at})()},4332:(Rn,he,u)=>{"use strict";u.d(he,{k:()=>P,O:()=>B});var o=u(5998),c=u(4370),I=u(4137),a=(u(107),u(9156),u(1805)),p=u(9904),s=u(913),l=u(5873),d=u(8225),h=u(5252),v=u(1247),x=u(1414),y="dx-list-reorder-handle";(0,h.z)("reorder","default",v.Z.inherit({_init:function(){var W=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1;var z=this._groupedEnabled?"> .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-item";this._sortable=W._createComponent(W._scrollView.content(),x.Z,(0,l.l)({component:W,contentTemplate:null,allowReordering:!1,filter:z,container:W.$element(),dragDirection:W.option("itemDragging.group")?"both":"vertical",handle:".".concat(y),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},W.option("itemDragging")))},afterRender:function(){this._sortable.update()},_dragTemplate:function(W){var z=(0,p.Z)(W.itemElement).clone().addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover");return(0,a.cl)(z,(0,a.dz)(W.itemElement)),z},_dragStartHandler:function(W){this._lockedDrag&&(W.cancel=!0)},_dragChangeHandler:function(W){!this._groupedEnabled||this._sameParent(W.fromIndex,W.toIndex)||(W.cancel=!0)},_sameParent:function(W,z){var V=this._list.getItemElementByFlatIndex(W);return this._list.getItemElementByFlatIndex(z).parent().get(0)===V.parent().get(0)},_reorderHandler:function(W){var z=this._list.getItemElementByFlatIndex(W.toIndex);this._list.reorderItem((0,p.Z)(W.itemElement),z)},afterBag:function(W){var z=(0,p.Z)("<div>").addClass(y);s.Z.on(z,"dxpointerdown",V=>{this._lockedDrag=!(0,d.N5)(V)}),s.Z.on(z,"dxhold",{timeout:30},V=>{V.cancel=!0,this._lockedDrag=!1}),W.$container.addClass("dx-list-reorder-handle-container").append(z)}})),u(4955),u(3930);const T=I.Z;var k=u(1759),R=u(8208);let P=(()=>{class W extends k.Ay{constructor(V,U,K,Y,J,j,ee,G){super(V,U,K,Y,ee,G),this._watcherHelper=Y,this._idh=J,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"groupRendered",emit:"onGroupRendered"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"itemContextMenu",emit:"onItemContextMenu"},{subscribe:"itemDeleted",emit:"onItemDeleted"},{subscribe:"itemDeleting",emit:"onItemDeleting"},{subscribe:"itemHold",emit:"onItemHold"},{subscribe:"itemRendered",emit:"onItemRendered"},{subscribe:"itemReordered",emit:"onItemReordered"},{subscribe:"itemSwipe",emit:"onItemSwipe"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowItemDeletingChange"},{emit:"bounceEnabledChange"},{emit:"collapsibleGroupsChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"indicateLoadingChange"},{emit:"itemDeleteModeChange"},{emit:"itemDraggingChange"},{emit:"itemHoldTimeoutChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"keyExprChange"},{emit:"menuItemsChange"},{emit:"menuModeChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"repaintChangesOnlyChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollByThumbChange"},{emit:"scrollingEnabledChange"},{emit:"searchEditorOptionsChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"searchValueChange"},{emit:"selectAllModeChange"},{emit:"selectAllTextChange"},{emit:"selectedItemKeysChange"},{emit:"selectedItemsChange"},{emit:"selectionModeChange"},{emit:"showScrollbarChange"},{emit:"showSelectionControlsChange"},{emit:"tabIndexChange"},{emit:"useNativeScrollingChange"},{emit:"visibleChange"},{emit:"widthChange"}]),this._idh.setHost(this),j.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(V){this._setOption("accessKey",V)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(V){this._setOption("activeStateEnabled",V)}get allowItemDeleting(){return this._getOption("allowItemDeleting")}set allowItemDeleting(V){this._setOption("allowItemDeleting",V)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(V){this._setOption("bounceEnabled",V)}get collapsibleGroups(){return this._getOption("collapsibleGroups")}set collapsibleGroups(V){this._setOption("collapsibleGroups",V)}get dataSource(){return this._getOption("dataSource")}set dataSource(V){this._setOption("dataSource",V)}get disabled(){return this._getOption("disabled")}set disabled(V){this._setOption("disabled",V)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(V){this._setOption("displayExpr",V)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(V){this._setOption("elementAttr",V)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(V){this._setOption("focusStateEnabled",V)}get grouped(){return this._getOption("grouped")}set grouped(V){this._setOption("grouped",V)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(V){this._setOption("groupTemplate",V)}get height(){return this._getOption("height")}set height(V){this._setOption("height",V)}get hint(){return this._getOption("hint")}set hint(V){this._setOption("hint",V)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(V){this._setOption("hoverStateEnabled",V)}get indicateLoading(){return this._getOption("indicateLoading")}set indicateLoading(V){this._setOption("indicateLoading",V)}get itemDeleteMode(){return this._getOption("itemDeleteMode")}set itemDeleteMode(V){this._setOption("itemDeleteMode",V)}get itemDragging(){return this._getOption("itemDragging")}set itemDragging(V){this._setOption("itemDragging",V)}get itemHoldTimeout(){return this._getOption("itemHoldTimeout")}set itemHoldTimeout(V){this._setOption("itemHoldTimeout",V)}get items(){return this._getOption("items")}set items(V){this._setOption("items",V)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(V){this._setOption("itemTemplate",V)}get keyExpr(){return this._getOption("keyExpr")}set keyExpr(V){this._setOption("keyExpr",V)}get menuItems(){return this._getOption("menuItems")}set menuItems(V){this._setOption("menuItems",V)}get menuMode(){return this._getOption("menuMode")}set menuMode(V){this._setOption("menuMode",V)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(V){this._setOption("nextButtonText",V)}get noDataText(){return this._getOption("noDataText")}set noDataText(V){this._setOption("noDataText",V)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(V){this._setOption("pageLoadingText",V)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(V){this._setOption("pageLoadMode",V)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(V){this._setOption("pulledDownText",V)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(V){this._setOption("pullingDownText",V)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(V){this._setOption("pullRefreshEnabled",V)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(V){this._setOption("refreshingText",V)}get repaintChangesOnly(){return this._getOption("repaintChangesOnly")}set repaintChangesOnly(V){this._setOption("repaintChangesOnly",V)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(V){this._setOption("rtlEnabled",V)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(V){this._setOption("scrollByContent",V)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(V){this._setOption("scrollByThumb",V)}get scrollingEnabled(){return this._getOption("scrollingEnabled")}set scrollingEnabled(V){this._setOption("scrollingEnabled",V)}get searchEditorOptions(){return this._getOption("searchEditorOptions")}set searchEditorOptions(V){this._setOption("searchEditorOptions",V)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(V){this._setOption("searchEnabled",V)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(V){this._setOption("searchExpr",V)}get searchMode(){return this._getOption("searchMode")}set searchMode(V){this._setOption("searchMode",V)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(V){this._setOption("searchTimeout",V)}get searchValue(){return this._getOption("searchValue")}set searchValue(V){this._setOption("searchValue",V)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(V){this._setOption("selectAllMode",V)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(V){this._setOption("selectAllText",V)}get selectedItemKeys(){return this._getOption("selectedItemKeys")}set selectedItemKeys(V){this._setOption("selectedItemKeys",V)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(V){this._setOption("selectedItems",V)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(V){this._setOption("selectionMode",V)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(V){this._setOption("showScrollbar",V)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(V){this._setOption("showSelectionControls",V)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(V){this._setOption("tabIndex",V)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(V){this._setOption("useNativeScrolling",V)}get visible(){return this._getOption("visible")}set visible(V){this._setOption("visible",V)}get width(){return this._getOption("width")}set width(V){this._setOption("width",V)}get itemsChildren(){return this._getOption("items")}set itemsChildren(V){this.setChildren("items",V)}get menuItemsChildren(){return this._getOption("menuItems")}set menuItemsChildren(V){this.setChildren("menuItems",V)}_createInstance(V,U){return new T(V,U)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(V){super.ngOnChanges(V),this.setupChanges("dataSource",V),this.setupChanges("items",V),this.setupChanges("menuItems",V),this.setupChanges("searchExpr",V),this.setupChanges("selectedItemKeys",V),this.setupChanges("selectedItems",V)}setupChanges(V,U){V in this._optionsToUpdate||this._idh.setup(V,U)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("menuItems"),this._idh.doCheck("searchExpr"),this._idh.doCheck("selectedItemKeys"),this._idh.doCheck("selectedItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(V,U){let K=this._idh.setupSingle(V,U),Y=null!==this._idh.getChanges(V,U);(K||Y)&&super._setOption(V,U)}}return W.\u0275fac=function(V){return new(V||W)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(k._5),c.Y36(k._h),c.Y36(k.i9),c.Y36(k.al),c.Y36(o.ki),c.Y36(c.Lbi))},W.\u0275cmp=c.Xpm({type:W,selectors:[["dx-list"]],contentQueries:function(V,U,K){if(1&V&&(c.Suo(K,R.ZT3,4),c.Suo(K,R.r9F,4)),2&V){let Y;c.iGM(Y=c.CRH())&&(U.itemsChildren=Y),c.iGM(Y=c.CRH())&&(U.menuItemsChildren=Y)}},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowItemDeleting:"allowItemDeleting",bounceEnabled:"bounceEnabled",collapsibleGroups:"collapsibleGroups",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",indicateLoading:"indicateLoading",itemDeleteMode:"itemDeleteMode",itemDragging:"itemDragging",itemHoldTimeout:"itemHoldTimeout",items:"items",itemTemplate:"itemTemplate",keyExpr:"keyExpr",menuItems:"menuItems",menuMode:"menuMode",nextButtonText:"nextButtonText",noDataText:"noDataText",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",repaintChangesOnly:"repaintChangesOnly",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",scrollingEnabled:"scrollingEnabled",searchEditorOptions:"searchEditorOptions",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",searchValue:"searchValue",selectAllMode:"selectAllMode",selectAllText:"selectAllText",selectedItemKeys:"selectedItemKeys",selectedItems:"selectedItems",selectionMode:"selectionMode",showScrollbar:"showScrollbar",showSelectionControls:"showSelectionControls",tabIndex:"tabIndex",useNativeScrolling:"useNativeScrolling",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onGroupRendered:"onGroupRendered",onInitialized:"onInitialized",onItemClick:"onItemClick",onItemContextMenu:"onItemContextMenu",onItemDeleted:"onItemDeleted",onItemDeleting:"onItemDeleting",onItemHold:"onItemHold",onItemRendered:"onItemRendered",onItemReordered:"onItemReordered",onItemSwipe:"onItemSwipe",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowItemDeletingChange:"allowItemDeletingChange",bounceEnabledChange:"bounceEnabledChange",collapsibleGroupsChange:"collapsibleGroupsChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",indicateLoadingChange:"indicateLoadingChange",itemDeleteModeChange:"itemDeleteModeChange",itemDraggingChange:"itemDraggingChange",itemHoldTimeoutChange:"itemHoldTimeoutChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",keyExprChange:"keyExprChange",menuItemsChange:"menuItemsChange",menuModeChange:"menuModeChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",repaintChangesOnlyChange:"repaintChangesOnlyChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollByThumbChange:"scrollByThumbChange",scrollingEnabledChange:"scrollingEnabledChange",searchEditorOptionsChange:"searchEditorOptionsChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",searchValueChange:"searchValueChange",selectAllModeChange:"selectAllModeChange",selectAllTextChange:"selectAllTextChange",selectedItemKeysChange:"selectedItemKeysChange",selectedItemsChange:"selectedItemsChange",selectionModeChange:"selectionModeChange",showScrollbarChange:"showScrollbarChange",showSelectionControlsChange:"showSelectionControlsChange",tabIndexChange:"tabIndexChange",useNativeScrollingChange:"useNativeScrollingChange",visibleChange:"visibleChange",widthChange:"widthChange"},features:[c._Bn([k._5,k._h,k.al,k.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(V,U){},encapsulation:2}),W})(),B=(()=>{class W{}return W.\u0275fac=function(V){return new(V||W)},W.\u0275mod=c.oAB({type:W}),W.\u0275inj=c.cJS({imports:[[R.by9,R.ywL,R.Q8p,R.m30,R.ZOF,R.idP,R.UxI,k.Lz,k.ie,o.Cu],R.by9,R.ywL,R.Q8p,R.m30,R.ZOF,R.idP,R.UxI,k.ie]}),W})()},8208:(Rn,he,u)=>{"use strict";u.d(he,{$9q:()=>vo,$D5:()=>ie,$Tm:()=>Z,$YR:()=>Nh,$a2:()=>Dc,$wd:()=>fa,AUf:()=>po,Aai:()=>He,Afe:()=>ad,Axk:()=>Kd,Az0:()=>rp,BEi:()=>ot,BcR:()=>yg,Bh5:()=>Rs,Bib:()=>Pc,Bpy:()=>hd,C1H:()=>_d,CxW:()=>nd,DB7:()=>ut,DHG:()=>Ur,DQr:()=>B,DTQ:()=>Be,DTR:()=>Oi,D_l:()=>Lh,DrR:()=>va,Dtt:()=>Ou,ENI:()=>Pl,EgX:()=>Yh,Ejv:()=>w,Ezz:()=>na,F9A:()=>Pr,F9Z:()=>tu,FGH:()=>Sg,FJZ:()=>gr,FQ1:()=>_n,FYN:()=>ya,FZZ:()=>At,Fkd:()=>$s,Flw:()=>at,GTS:()=>fm,GaT:()=>Tg,Gc$:()=>ye,HC7:()=>sd,HM6:()=>Iu,HaS:()=>qn,I3K:()=>Zc,IIk:()=>os,IOm:()=>b,Inm:()=>ba,IqU:()=>Ld,Irw:()=>Cl,JID:()=>jn,Jiy:()=>_g,JxK:()=>M,K5Q:()=>Ec,K5R:()=>pn,K9Y:()=>_i,KOH:()=>S,KjY:()=>Up,KkC:()=>Ud,KvI:()=>Xn,Kx:()=>rm,L6l:()=>Mg,LHj:()=>iu,LNK:()=>dr,LS2:()=>k,Llc:()=>J,Lxh:()=>Wd,Lz9:()=>u_,M2g:()=>l,M5u:()=>sr,MHt:()=>h,Mel:()=>_t,N2O:()=>As,NsS:()=>nu,Obv:()=>Ze,Ois:()=>Hh,Oll:()=>Sn,P5j:()=>Kh,PR8:()=>ap,PXJ:()=>Qp,Pj6:()=>bc,Q8p:()=>De,QKQ:()=>bi,QQ4:()=>Cc,QZF:()=>od,QjJ:()=>oi,R5e:()=>Jp,RbS:()=>fn,Re4:()=>pm,Rjt:()=>Su,Rue:()=>fd,Rvn:()=>lg,SCM:()=>br,SGB:()=>rd,SH1:()=>ds,SUG:()=>uo,SiA:()=>Cd,ToC:()=>rr,Tq8:()=>lo,UCw:()=>pa,UQn:()=>gm,UV$:()=>pt,Uo8:()=>Tr,Upd:()=>Rh,UuT:()=>zn,UxI:()=>jp,Uz5:()=>vn,Vp2:()=>g,WSE:()=>Os,Wi7:()=>Zd,Wj0:()=>Sr,Wwk:()=>td,WyY:()=>js,XDP:()=>cd,XXE:()=>Vh,Xdm:()=>ua,XfX:()=>ae,Y25:()=>w_,YOZ:()=>Lc,YTJ:()=>qe,YXG:()=>ma,Ye1:()=>da,ZCX:()=>Jt,ZLS:()=>Mn,ZLV:()=>Oc,ZOF:()=>gd,ZT3:()=>Ce,Zjs:()=>yr,ZmN:()=>xg,ZnP:()=>E,Zt4:()=>V,_7s:()=>mo,_7y:()=>xl,_9O:()=>tn,_PP:()=>to,_Sx:()=>$e,_ZT:()=>Tn,_hi:()=>Qi,aLr:()=>Rc,aXB:()=>Gp,aZm:()=>yi,aa6:()=>Ps,azD:()=>wg,bHv:()=>Ne,bcN:()=>En,bgw:()=>ce,by9:()=>Ln,c6p:()=>jh,cRZ:()=>Fd,cdq:()=>xn,ck:()=>Xp,cp7:()=>Jf,cuJ:()=>Ri,d0Q:()=>hn,dVY:()=>Wn,dXi:()=>nr,d_Q:()=>am,dwQ:()=>ar,e1H:()=>Ko,eAZ:()=>kl,enW:()=>Ro,erZ:()=>xo,fOF:()=>ps,fhR:()=>Qa,fj7:()=>Xt,fsq:()=>Bh,gI1:()=>Gd,gMt:()=>ea,gN6:()=>Ds,ggs:()=>Ui,hB5:()=>ql,hFl:()=>Tt,hb3:()=>Al,hfY:()=>qh,i3B:()=>ti,idP:()=>Xe,ilc:()=>Ks,irQ:()=>Tu,jUr:()=>Ii,ji7:()=>bl,jq_:()=>lm,jri:()=>Uh,jtD:()=>Pa,jyG:()=>tt,k4o:()=>St,kBH:()=>Uo,kEo:()=>Xa,kIp:()=>qr,kOw:()=>Er,kSd:()=>dt,kWr:()=>Dg,kZH:()=>Dn,kln:()=>Ru,krR:()=>la,l95:()=>Au,lTN:()=>Xh,lUW:()=>dd,lar:()=>Nn,lgR:()=>nl,lj9:()=>ro,lsC:()=>p,m$R:()=>It,m30:()=>Ss,mR_:()=>sg,mbS:()=>im,mtS:()=>vd,n18:()=>bt,nD3:()=>wu,nRD:()=>Yp,nSX:()=>kn,nT1:()=>cr,nah:()=>Di,ngB:()=>We,o0O:()=>nt,oyT:()=>ng,p6x:()=>ga,p7n:()=>ft,pGy:()=>xi,pxS:()=>nm,qB1:()=>Bn,qlz:()=>K,qvW:()=>hi,r9F:()=>Vd,rH1:()=>aa,rHV:()=>Eu,rNf:()=>Qn,rUb:()=>Bs,rrz:()=>ep,s2f:()=>Og,sBj:()=>Ho,sRG:()=>bn,sXh:()=>ys,sd1:()=>ht,sni:()=>Sc,t$9:()=>Rl,tAX:()=>md,tRk:()=>Si,tis:()=>um,uKt:()=>Ys,uQR:()=>li,ukr:()=>fe,vLN:()=>qo,vZC:()=>Hc,vci:()=>zc,vl5:()=>Nc,vrV:()=>te,w4f:()=>ln,w89:()=>eu,wBe:()=>io,wMw:()=>ee,waX:()=>x_,wcV:()=>no,weU:()=>jr,wrG:()=>ld,xHg:()=>ir,xNt:()=>kt,xOr:()=>rt,xwG:()=>jd,y1h:()=>Zr,y6c:()=>hg,yFA:()=>Hr,yWq:()=>kc,ynY:()=>Wi,ywL:()=>fi,z30:()=>nn,z4e:()=>yn,z8p:()=>mr,zLN:()=>dm,zZW:()=>pe,zk3:()=>Gr,zvd:()=>Jn});var o=u(4370),c=u(1759),I=u(8692);let g=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),p=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),l=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),h=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),b=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),y=(()=>{class L extends c.Fx{get allowDragging(){return this._getOption("allowDragging")}set allowDragging(f){this._setOption("allowDragging",f)}get argument(){return this._getOption("argument")}set argument(f){this._setOption("argument",f)}get arrowLength(){return this._getOption("arrowLength")}set arrowLength(f){this._setOption("arrowLength",f)}get arrowWidth(){return this._getOption("arrowWidth")}set arrowWidth(f){this._setOption("arrowWidth",f)}get axis(){return this._getOption("axis")}set axis(f){this._setOption("axis",f)}get border(){return this._getOption("border")}set border(f){this._setOption("border",f)}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get customizeTooltip(){return this._getOption("customizeTooltip")}set customizeTooltip(f){this._setOption("customizeTooltip",f)}get data(){return this._getOption("data")}set data(f){this._setOption("data",f)}get description(){return this._getOption("description")}set description(f){this._setOption("description",f)}get font(){return this._getOption("font")}set font(f){this._setOption("font",f)}get height(){return this._getOption("height")}set height(f){this._setOption("height",f)}get image(){return this._getOption("image")}set image(f){this._setOption("image",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get offsetX(){return this._getOption("offsetX")}set offsetX(f){this._setOption("offsetX",f)}get offsetY(){return this._getOption("offsetY")}set offsetY(f){this._setOption("offsetY",f)}get opacity(){return this._getOption("opacity")}set opacity(f){this._setOption("opacity",f)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(f){this._setOption("paddingLeftRight",f)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(f){this._setOption("paddingTopBottom",f)}get series(){return this._getOption("series")}set series(f){this._setOption("series",f)}get shadow(){return this._getOption("shadow")}set shadow(f){this._setOption("shadow",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(f){this._setOption("textOverflow",f)}get tooltipEnabled(){return this._getOption("tooltipEnabled")}set tooltipEnabled(f){this._setOption("tooltipEnabled",f)}get tooltipTemplate(){return this._getOption("tooltipTemplate")}set tooltipTemplate(f){this._setOption("tooltipTemplate",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get value(){return this._getOption("value")}set value(f){this._setOption("value",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(f){this._setOption("wordWrap",f)}get x(){return this._getOption("x")}set x(f){this._setOption("x",f)}get y(){return this._getOption("y")}set y(f){this._setOption("y",f)}get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get angle(){return this._getOption("angle")}set angle(f){this._setOption("angle",f)}get radius(){return this._getOption("radius")}set radius(f){this._setOption("radius",f)}get coordinates(){return this._getOption("coordinates")}set coordinates(f){this._setOption("coordinates",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),E=(()=>{class L extends y{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"annotations"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-annotation"]],inputs:{allowDragging:"allowDragging",argument:"argument",arrowLength:"arrowLength",arrowWidth:"arrowWidth",axis:"axis",border:"border",color:"color",customizeTooltip:"customizeTooltip",data:"data",description:"description",font:"font",height:"height",image:"image",name:"name",offsetX:"offsetX",offsetY:"offsetY",opacity:"opacity",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",series:"series",shadow:"shadow",template:"template",text:"text",textOverflow:"textOverflow",tooltipEnabled:"tooltipEnabled",tooltipTemplate:"tooltipTemplate",type:"type",value:"value",width:"width",wordWrap:"wordWrap",x:"x",y:"y",location:"location",angle:"angle",radius:"radius",coordinates:"coordinates"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),S=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),w=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),k=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),B=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),W=(()=>{class L extends c.Fx{get endValue(){return this._getOption("endValue")}set endValue(f){this._setOption("endValue",f)}get startValue(){return this._getOption("startValue")}set startValue(f){this._setOption("startValue",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),z=(()=>{class L extends W{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"breaks"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-break"]],inputs:{endValue:"endValue",startValue:"startValue"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),V=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),U=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get dashStyle(){return this._getOption("dashStyle")}set dashStyle(f){this._setOption("dashStyle",f)}get displayBehindSeries(){return this._getOption("displayBehindSeries")}set displayBehindSeries(f){this._setOption("displayBehindSeries",f)}get extendAxis(){return this._getOption("extendAxis")}set extendAxis(f){this._setOption("extendAxis",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(f){this._setOption("paddingLeftRight",f)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(f){this._setOption("paddingTopBottom",f)}get value(){return this._getOption("value")}set value(f){this._setOption("value",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get _optionPath(){return"constantLines"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-constant-line"]],inputs:{color:"color",dashStyle:"dashStyle",displayBehindSeries:"displayBehindSeries",extendAxis:"extendAxis",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",value:"value",width:"width"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),K=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Y=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get endValue(){return this._getOption("endValue")}set endValue(f){this._setOption("endValue",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(f){this._setOption("paddingLeftRight",f)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(f){this._setOption("paddingTopBottom",f)}get startValue(){return this._getOption("startValue")}set startValue(f){this._setOption("startValue",f)}get _optionPath(){return"strips"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-strip"]],inputs:{color:"color",endValue:"endValue",label:"label",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",startValue:"startValue"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),J=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ee=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Z=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),M=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),fe=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Be=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ae=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ye=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ce=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pe=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),re=(()=>{class L extends c.Fx{get disabled(){return this._getOption("disabled")}set disabled(f){this._setOption("disabled",f)}get html(){return this._getOption("html")}set html(f){this._setOption("html",f)}get icon(){return this._getOption("icon")}set icon(f){this._setOption("icon",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(f){this._setOption("titleTemplate",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get onClick(){return this._getOption("onClick")}set onClick(f){this._setOption("onClick",f)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(f){this._setOption("stylingMode",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get baseSize(){return this._getOption("baseSize")}set baseSize(f){this._setOption("baseSize",f)}get box(){return this._getOption("box")}set box(f){this._setOption("box",f)}get ratio(){return this._getOption("ratio")}set ratio(f){this._setOption("ratio",f)}get shrink(){return this._getOption("shrink")}set shrink(f){this._setOption("shrink",f)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(f){this._setOption("elementAttr",f)}get hint(){return this._getOption("hint")}set hint(f){this._setOption("hint",f)}get beginGroup(){return this._getOption("beginGroup")}set beginGroup(f){this._setOption("beginGroup",f)}get closeMenuOnClick(){return this._getOption("closeMenuOnClick")}set closeMenuOnClick(f){this._setOption("closeMenuOnClick",f)}get items(){return this._getOption("items")}set items(f){this._setOption("items",f)}get selectable(){return this._getOption("selectable")}set selectable(f){this._setOption("selectable",f)}get selected(){return this._getOption("selected")}set selected(f){this._setOption("selected",f)}get colSpan(){return this._getOption("colSpan")}set colSpan(f){this._setOption("colSpan",f)}get cssClass(){return this._getOption("cssClass")}set cssClass(f){this._setOption("cssClass",f)}get dataField(){return this._getOption("dataField")}set dataField(f){this._setOption("dataField",f)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(f){this._setOption("editorOptions",f)}get editorType(){return this._getOption("editorType")}set editorType(f){this._setOption("editorType",f)}get helpText(){return this._getOption("helpText")}set helpText(f){this._setOption("helpText",f)}get isRequired(){return this._getOption("isRequired")}set isRequired(f){this._setOption("isRequired",f)}get itemType(){return this._getOption("itemType")}set itemType(f){this._setOption("itemType",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get validationRules(){return this._getOption("validationRules")}set validationRules(f){this._setOption("validationRules",f)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(f){this._setOption("visibleIndex",f)}get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(f){this._setOption("alignItemLabels",f)}get caption(){return this._getOption("caption")}set caption(f){this._setOption("caption",f)}get colCount(){return this._getOption("colCount")}set colCount(f){this._setOption("colCount",f)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(f){this._setOption("colCountByScreen",f)}get tabPanelOptions(){return this._getOption("tabPanelOptions")}set tabPanelOptions(f){this._setOption("tabPanelOptions",f)}get tabs(){return this._getOption("tabs")}set tabs(f){this._setOption("tabs",f)}get badge(){return this._getOption("badge")}set badge(f){this._setOption("badge",f)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(f){this._setOption("tabTemplate",f)}get buttonOptions(){return this._getOption("buttonOptions")}set buttonOptions(f){this._setOption("buttonOptions",f)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(f){this._setOption("horizontalAlignment",f)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(f){this._setOption("verticalAlignment",f)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(f){this._setOption("locateInMenu",f)}get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(f){this._setOption("menuItemTemplate",f)}get options(){return this._getOption("options")}set options(f){this._setOption("options",f)}get showText(){return this._getOption("showText")}set showText(f){this._setOption("showText",f)}get widget(){return this._getOption("widget")}set widget(f){this._setOption("widget",f)}get height(){return this._getOption("height")}set height(f){this._setOption("height",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get imageAlt(){return this._getOption("imageAlt")}set imageAlt(f){this._setOption("imageAlt",f)}get imageSrc(){return this._getOption("imageSrc")}set imageSrc(f){this._setOption("imageSrc",f)}get acceptedValues(){return this._getOption("acceptedValues")}set acceptedValues(f){this._setOption("acceptedValues",f)}get formatName(){return this._getOption("formatName")}set formatName(f){this._setOption("formatName",f)}get formatValues(){return this._getOption("formatValues")}set formatValues(f){this._setOption("formatValues",f)}get key(){return this._getOption("key")}set key(f){this._setOption("key",f)}get showChevron(){return this._getOption("showChevron")}set showChevron(f){this._setOption("showChevron",f)}get heightRatio(){return this._getOption("heightRatio")}set heightRatio(f){this._setOption("heightRatio",f)}get widthRatio(){return this._getOption("widthRatio")}set widthRatio(f){this._setOption("widthRatio",f)}get expanded(){return this._getOption("expanded")}set expanded(f){this._setOption("expanded",f)}get hasItems(){return this._getOption("hasItems")}set hasItems(f){this._setOption("hasItems",f)}get id(){return this._getOption("id")}set id(f){this._setOption("id",f)}get parentId(){return this._getOption("parentId")}set parentId(f){this._setOption("parentId",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),te=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get message(){return this._getOption("message")}set message(f){this._setOption("message",f)}get trim(){return this._getOption("trim")}set trim(f){this._setOption("trim",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get ignoreEmptyValue(){return this._getOption("ignoreEmptyValue")}set ignoreEmptyValue(f){this._setOption("ignoreEmptyValue",f)}get max(){return this._getOption("max")}set max(f){this._setOption("max",f)}get min(){return this._getOption("min")}set min(f){this._setOption("min",f)}get reevaluate(){return this._getOption("reevaluate")}set reevaluate(f){this._setOption("reevaluate",f)}get validationCallback(){return this._getOption("validationCallback")}set validationCallback(f){this._setOption("validationCallback",f)}get comparisonTarget(){return this._getOption("comparisonTarget")}set comparisonTarget(f){this._setOption("comparisonTarget",f)}get comparisonType(){return this._getOption("comparisonType")}set comparisonType(f){this._setOption("comparisonType",f)}get pattern(){return this._getOption("pattern")}set pattern(f){this._setOption("pattern",f)}get _optionPath(){return"validationRules"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-validation-rule"]],inputs:{message:"message",trim:"trim",type:"type",ignoreEmptyValue:"ignoreEmptyValue",max:"max",min:"min",reevaluate:"reevaluate",validationCallback:"validationCallback",comparisonTarget:"comparisonTarget",comparisonType:"comparisonType",pattern:"pattern"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),ie=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ue=(()=>{class L extends c.Fx{get alignItemLabels(){return this._getOption("alignItemLabels")}set alignItemLabels(f){this._setOption("alignItemLabels",f)}get badge(){return this._getOption("badge")}set badge(f){this._setOption("badge",f)}get colCount(){return this._getOption("colCount")}set colCount(f){this._setOption("colCount",f)}get colCountByScreen(){return this._getOption("colCountByScreen")}set colCountByScreen(f){this._setOption("colCountByScreen",f)}get disabled(){return this._getOption("disabled")}set disabled(f){this._setOption("disabled",f)}get icon(){return this._getOption("icon")}set icon(f){this._setOption("icon",f)}get items(){return this._getOption("items")}set items(f){this._setOption("items",f)}get tabTemplate(){return this._getOption("tabTemplate")}set tabTemplate(f){this._setOption("tabTemplate",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}get commands(){return this._getOption("commands")}set commands(f){this._setOption("commands",f)}get groups(){return this._getOption("groups")}set groups(f){this._setOption("groups",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),be=(()=>{class L extends c.Fx{get icon(){return this._getOption("icon")}set icon(f){this._setOption("icon",f)}get items(){return this._getOption("items")}set items(f){this._setOption("items",f)}get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),Ae=(()=>{class L extends be{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"commands"}get itemsChildren(){return this._getOption("items")}set itemsChildren(f){this.setChildren("items",f)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-command"]],contentQueries:function(f,je,di){if(1&f&&o.Suo(di,Ce,4),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.itemsChildren=Mi)}},inputs:{icon:"icon",items:"items",location:"location",name:"name",text:"text"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Ne=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),mt=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get commands(){return this._getOption("commands")}set commands(f){this._setOption("commands",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}get category(){return this._getOption("category")}set category(f){this._setOption("category",f)}get displayMode(){return this._getOption("displayMode")}set displayMode(f){this._setOption("displayMode",f)}get expanded(){return this._getOption("expanded")}set expanded(f){this._setOption("expanded",f)}get shapes(){return this._getOption("shapes")}set shapes(f){this._setOption("shapes",f)}get _optionPath(){return"groups"}get commandsChildren(){return this._getOption("commands")}set commandsChildren(f){this.setChildren("commands",f)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-group"]],contentQueries:function(f,je,di){if(1&f&&o.Suo(di,Ae,4),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.commandsChildren=Mi)}},inputs:{commands:"commands",title:"title",category:"category",displayMode:"displayMode",expanded:"expanded",shapes:"shapes"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),tt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const Le=["*"];let gt=(()=>{class L extends ue{constructor(f,je,di,Mi,ou,Fs){super(),this.renderer=di,this.document=Mi,this.element=Fs,f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get _optionPath(){return"tabs"}get itemsChildren(){return this._getOption("items")}set itemsChildren(f){this.setChildren("items",f)}get commandsChildren(){return this._getOption("commands")}set commandsChildren(f){this.setChildren("commands",f)}get groupsChildren(){return this._getOption("groups")}set groupsChildren(f){this.setChildren("groups",f)}setTemplate(f){this.template=f}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-tab"]],contentQueries:function(f,je,di){if(1&f&&(o.Suo(di,Ce,4),o.Suo(di,Ae,4),o.Suo(di,mt,4)),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.itemsChildren=Mi),o.iGM(Mi=o.CRH())&&(je.commandsChildren=Mi),o.iGM(Mi=o.CRH())&&(je.groupsChildren=Mi)}},inputs:{alignItemLabels:"alignItemLabels",badge:"badge",colCount:"colCount",colCountByScreen:"colCountByScreen",disabled:"disabled",icon:"icon",items:"items",tabTemplate:"tabTemplate",template:"template",title:"title",commands:"commands",groups:"groups",name:"name"},features:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:Le,decls:1,vars:0,template:function(f,je){1&f&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),tn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pe=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get lat(){return this._getOption("lat")}set lat(f){this._setOption("lat",f)}get lng(){return this._getOption("lng")}set lng(f){this._setOption("lng",f)}get col(){return this._getOption("col")}set col(f){this._setOption("col",f)}get colspan(){return this._getOption("colspan")}set colspan(f){this._setOption("colspan",f)}get row(){return this._getOption("row")}set row(f){this._setOption("row",f)}get rowspan(){return this._getOption("rowspan")}set rowspan(f){this._setOption("rowspan",f)}get screen(){return this._getOption("screen")}set screen(f){this._setOption("screen",f)}get _optionPath(){return"location"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-location"]],inputs:{lat:"lat",lng:"lng",col:"col",colspan:"colspan",row:"row",rowspan:"rowspan",screen:"screen"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),$e=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const ge=["*"];let Ce=(()=>{class L extends re{constructor(f,je,di,Mi,ou,Fs){super(),this.renderer=di,this.document=Mi,this.element=Fs,f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get _optionPath(){return"items"}get itemsChildren(){return this._getOption("items")}set itemsChildren(f){this.setChildren("items",f)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(f){this.setChildren("validationRules",f)}get tabsChildren(){return this._getOption("tabs")}set tabsChildren(f){this.setChildren("tabs",f)}get locationChildren(){return this._getOption("location")}set locationChildren(f){this.setChildren("location",f)}setTemplate(f){this.template=f}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-item"]],contentQueries:function(f,je,di){if(1&f&&(o.Suo(di,L,4),o.Suo(di,te,4),o.Suo(di,gt,4),o.Suo(di,Pe,4)),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.itemsChildren=Mi),o.iGM(Mi=o.CRH())&&(je.validationRulesChildren=Mi),o.iGM(Mi=o.CRH())&&(je.tabsChildren=Mi),o.iGM(Mi=o.CRH())&&(je.locationChildren=Mi)}},inputs:{disabled:"disabled",html:"html",icon:"icon",template:"template",text:"text",title:"title",titleTemplate:"titleTemplate",visible:"visible",onClick:"onClick",stylingMode:"stylingMode",type:"type",baseSize:"baseSize",box:"box",ratio:"ratio",shrink:"shrink",elementAttr:"elementAttr",hint:"hint",beginGroup:"beginGroup",closeMenuOnClick:"closeMenuOnClick",items:"items",selectable:"selectable",selected:"selected",colSpan:"colSpan",cssClass:"cssClass",dataField:"dataField",editorOptions:"editorOptions",editorType:"editorType",helpText:"helpText",isRequired:"isRequired",itemType:"itemType",label:"label",name:"name",validationRules:"validationRules",visibleIndex:"visibleIndex",alignItemLabels:"alignItemLabels",caption:"caption",colCount:"colCount",colCountByScreen:"colCountByScreen",tabPanelOptions:"tabPanelOptions",tabs:"tabs",badge:"badge",tabTemplate:"tabTemplate",buttonOptions:"buttonOptions",horizontalAlignment:"horizontalAlignment",verticalAlignment:"verticalAlignment",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",widget:"widget",height:"height",width:"width",imageAlt:"imageAlt",imageSrc:"imageSrc",acceptedValues:"acceptedValues",formatName:"formatName",formatValues:"formatValues",key:"key",showChevron:"showChevron",heightRatio:"heightRatio",widthRatio:"widthRatio",expanded:"expanded",hasItems:"hasItems",id:"id",parentId:"parentId"},features:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:ge,decls:1,vars:0,template:function(f,je){1&f&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),De=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),kt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ut=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ve=(()=>{class L extends c.Fx{get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get options(){return this._getOption("options")}set options(f){this._setOption("options",f)}get cssClass(){return this._getOption("cssClass")}set cssClass(f){this._setOption("cssClass",f)}get disabled(){return this._getOption("disabled")}set disabled(f){this._setOption("disabled",f)}get hint(){return this._getOption("hint")}set hint(f){this._setOption("hint",f)}get icon(){return this._getOption("icon")}set icon(f){this._setOption("icon",f)}get onClick(){return this._getOption("onClick")}set onClick(f){this._setOption("onClick",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),St=(()=>{class L extends Ve{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"buttons"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-button"]],inputs:{location:"location",name:"name",options:"options",cssClass:"cssClass",disabled:"disabled",hint:"hint",icon:"icon",onClick:"onClick",template:"template",text:"text",visible:"visible"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Xe=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xn=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get lat(){return this._getOption("lat")}set lat(f){this._setOption("lat",f)}get lng(){return this._getOption("lng")}set lng(f){this._setOption("lng",f)}get _optionPath(){return"center"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-center"]],inputs:{lat:"lat",lng:"lng"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),li=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ki=(()=>{class L extends c.Fx{get data(){return this._getOption("data")}set data(f){this._setOption("data",f)}get insertAfterKey(){return this._getOption("insertAfterKey")}set insertAfterKey(f){this._setOption("insertAfterKey",f)}get insertBeforeKey(){return this._getOption("insertBeforeKey")}set insertBeforeKey(f){this._setOption("insertBeforeKey",f)}get key(){return this._getOption("key")}set key(f){this._setOption("key",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),Vn=(()=>{class L extends ki{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"changes"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-change"]],inputs:{data:"data",insertAfterKey:"insertAfterKey",insertBeforeKey:"insertBeforeKey",key:"key",type:"type"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Oi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hn=(()=>{class L extends c.Fx{get aggregation(){return this._getOption("aggregation")}set aggregation(f){this._setOption("aggregation",f)}get argumentField(){return this._getOption("argumentField")}set argumentField(f){this._setOption("argumentField",f)}get axis(){return this._getOption("axis")}set axis(f){this._setOption("axis",f)}get barOverlapGroup(){return this._getOption("barOverlapGroup")}set barOverlapGroup(f){this._setOption("barOverlapGroup",f)}get barPadding(){return this._getOption("barPadding")}set barPadding(f){this._setOption("barPadding",f)}get barWidth(){return this._getOption("barWidth")}set barWidth(f){this._setOption("barWidth",f)}get border(){return this._getOption("border")}set border(f){this._setOption("border",f)}get closeValueField(){return this._getOption("closeValueField")}set closeValueField(f){this._setOption("closeValueField",f)}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get cornerRadius(){return this._getOption("cornerRadius")}set cornerRadius(f){this._setOption("cornerRadius",f)}get dashStyle(){return this._getOption("dashStyle")}set dashStyle(f){this._setOption("dashStyle",f)}get highValueField(){return this._getOption("highValueField")}set highValueField(f){this._setOption("highValueField",f)}get hoverMode(){return this._getOption("hoverMode")}set hoverMode(f){this._setOption("hoverMode",f)}get hoverStyle(){return this._getOption("hoverStyle")}set hoverStyle(f){this._setOption("hoverStyle",f)}get ignoreEmptyPoints(){return this._getOption("ignoreEmptyPoints")}set ignoreEmptyPoints(f){this._setOption("ignoreEmptyPoints",f)}get innerColor(){return this._getOption("innerColor")}set innerColor(f){this._setOption("innerColor",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get lowValueField(){return this._getOption("lowValueField")}set lowValueField(f){this._setOption("lowValueField",f)}get maxLabelCount(){return this._getOption("maxLabelCount")}set maxLabelCount(f){this._setOption("maxLabelCount",f)}get minBarSize(){return this._getOption("minBarSize")}set minBarSize(f){this._setOption("minBarSize",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get opacity(){return this._getOption("opacity")}set opacity(f){this._setOption("opacity",f)}get openValueField(){return this._getOption("openValueField")}set openValueField(f){this._setOption("openValueField",f)}get pane(){return this._getOption("pane")}set pane(f){this._setOption("pane",f)}get point(){return this._getOption("point")}set point(f){this._setOption("point",f)}get rangeValue1Field(){return this._getOption("rangeValue1Field")}set rangeValue1Field(f){this._setOption("rangeValue1Field",f)}get rangeValue2Field(){return this._getOption("rangeValue2Field")}set rangeValue2Field(f){this._setOption("rangeValue2Field",f)}get reduction(){return this._getOption("reduction")}set reduction(f){this._setOption("reduction",f)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(f){this._setOption("selectionMode",f)}get selectionStyle(){return this._getOption("selectionStyle")}set selectionStyle(f){this._setOption("selectionStyle",f)}get showInLegend(){return this._getOption("showInLegend")}set showInLegend(f){this._setOption("showInLegend",f)}get sizeField(){return this._getOption("sizeField")}set sizeField(f){this._setOption("sizeField",f)}get stack(){return this._getOption("stack")}set stack(f){this._setOption("stack",f)}get tag(){return this._getOption("tag")}set tag(f){this._setOption("tag",f)}get tagField(){return this._getOption("tagField")}set tagField(f){this._setOption("tagField",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get valueErrorBar(){return this._getOption("valueErrorBar")}set valueErrorBar(f){this._setOption("valueErrorBar",f)}get valueField(){return this._getOption("valueField")}set valueField(f){this._setOption("valueField",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get argumentType(){return this._getOption("argumentType")}set argumentType(f){this._setOption("argumentType",f)}get minSegmentSize(){return this._getOption("minSegmentSize")}set minSegmentSize(f){this._setOption("minSegmentSize",f)}get smallValuesGrouping(){return this._getOption("smallValuesGrouping")}set smallValuesGrouping(f){this._setOption("smallValuesGrouping",f)}get closed(){return this._getOption("closed")}set closed(f){this._setOption("closed",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),En=(()=>{class L extends Hn{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"series"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-series"]],inputs:{aggregation:"aggregation",argumentField:"argumentField",axis:"axis",barOverlapGroup:"barOverlapGroup",barPadding:"barPadding",barWidth:"barWidth",border:"border",closeValueField:"closeValueField",color:"color",cornerRadius:"cornerRadius",dashStyle:"dashStyle",highValueField:"highValueField",hoverMode:"hoverMode",hoverStyle:"hoverStyle",ignoreEmptyPoints:"ignoreEmptyPoints",innerColor:"innerColor",label:"label",lowValueField:"lowValueField",maxLabelCount:"maxLabelCount",minBarSize:"minBarSize",name:"name",opacity:"opacity",openValueField:"openValueField",pane:"pane",point:"point",rangeValue1Field:"rangeValue1Field",rangeValue2Field:"rangeValue2Field",reduction:"reduction",selectionMode:"selectionMode",selectionStyle:"selectionStyle",showInLegend:"showInLegend",sizeField:"sizeField",stack:"stack",tag:"tag",tagField:"tagField",type:"type",valueErrorBar:"valueErrorBar",valueField:"valueField",visible:"visible",width:"width",argumentType:"argumentType",minSegmentSize:"minSegmentSize",smallValuesGrouping:"smallValuesGrouping",closed:"closed"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Mn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Wn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Sn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qn=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get baseSize(){return this._getOption("baseSize")}set baseSize(f){this._setOption("baseSize",f)}get ratio(){return this._getOption("ratio")}set ratio(f){this._setOption("ratio",f)}get screen(){return this._getOption("screen")}set screen(f){this._setOption("screen",f)}get shrink(){return this._getOption("shrink")}set shrink(f){this._setOption("shrink",f)}get _optionPath(){return"cols"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-col"]],inputs:{baseSize:"baseSize",ratio:"ratio",screen:"screen",shrink:"shrink"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),ti=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Wi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),vn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pn=(()=>{class L extends c.Fx{get alignment(){return this._getOption("alignment")}set alignment(f){this._setOption("alignment",f)}get allowEditing(){return this._getOption("allowEditing")}set allowEditing(f){this._setOption("allowEditing",f)}get allowExporting(){return this._getOption("allowExporting")}set allowExporting(f){this._setOption("allowExporting",f)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(f){this._setOption("allowFiltering",f)}get allowFixing(){return this._getOption("allowFixing")}set allowFixing(f){this._setOption("allowFixing",f)}get allowGrouping(){return this._getOption("allowGrouping")}set allowGrouping(f){this._setOption("allowGrouping",f)}get allowHeaderFiltering(){return this._getOption("allowHeaderFiltering")}set allowHeaderFiltering(f){this._setOption("allowHeaderFiltering",f)}get allowHiding(){return this._getOption("allowHiding")}set allowHiding(f){this._setOption("allowHiding",f)}get allowReordering(){return this._getOption("allowReordering")}set allowReordering(f){this._setOption("allowReordering",f)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(f){this._setOption("allowResizing",f)}get allowSearch(){return this._getOption("allowSearch")}set allowSearch(f){this._setOption("allowSearch",f)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(f){this._setOption("allowSorting",f)}get autoExpandGroup(){return this._getOption("autoExpandGroup")}set autoExpandGroup(f){this._setOption("autoExpandGroup",f)}get buttons(){return this._getOption("buttons")}set buttons(f){this._setOption("buttons",f)}get calculateCellValue(){return this._getOption("calculateCellValue")}set calculateCellValue(f){this._setOption("calculateCellValue",f)}get calculateDisplayValue(){return this._getOption("calculateDisplayValue")}set calculateDisplayValue(f){this._setOption("calculateDisplayValue",f)}get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(f){this._setOption("calculateFilterExpression",f)}get calculateGroupValue(){return this._getOption("calculateGroupValue")}set calculateGroupValue(f){this._setOption("calculateGroupValue",f)}get calculateSortValue(){return this._getOption("calculateSortValue")}set calculateSortValue(f){this._setOption("calculateSortValue",f)}get caption(){return this._getOption("caption")}set caption(f){this._setOption("caption",f)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(f){this._setOption("cellTemplate",f)}get columns(){return this._getOption("columns")}set columns(f){this._setOption("columns",f)}get cssClass(){return this._getOption("cssClass")}set cssClass(f){this._setOption("cssClass",f)}get customizeText(){return this._getOption("customizeText")}set customizeText(f){this._setOption("customizeText",f)}get dataField(){return this._getOption("dataField")}set dataField(f){this._setOption("dataField",f)}get dataType(){return this._getOption("dataType")}set dataType(f){this._setOption("dataType",f)}get editCellTemplate(){return this._getOption("editCellTemplate")}set editCellTemplate(f){this._setOption("editCellTemplate",f)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(f){this._setOption("editorOptions",f)}get encodeHtml(){return this._getOption("encodeHtml")}set encodeHtml(f){this._setOption("encodeHtml",f)}get falseText(){return this._getOption("falseText")}set falseText(f){this._setOption("falseText",f)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(f){this._setOption("filterOperations",f)}get filterType(){return this._getOption("filterType")}set filterType(f){this._setOption("filterType",f)}get filterValue(){return this._getOption("filterValue")}set filterValue(f){this._setOption("filterValue",f)}get filterValues(){return this._getOption("filterValues")}set filterValues(f){this._setOption("filterValues",f)}get fixed(){return this._getOption("fixed")}set fixed(f){this._setOption("fixed",f)}get fixedPosition(){return this._getOption("fixedPosition")}set fixedPosition(f){this._setOption("fixedPosition",f)}get format(){return this._getOption("format")}set format(f){this._setOption("format",f)}get formItem(){return this._getOption("formItem")}set formItem(f){this._setOption("formItem",f)}get groupCellTemplate(){return this._getOption("groupCellTemplate")}set groupCellTemplate(f){this._setOption("groupCellTemplate",f)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(f){this._setOption("groupIndex",f)}get headerCellTemplate(){return this._getOption("headerCellTemplate")}set headerCellTemplate(f){this._setOption("headerCellTemplate",f)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(f){this._setOption("headerFilter",f)}get hidingPriority(){return this._getOption("hidingPriority")}set hidingPriority(f){this._setOption("hidingPriority",f)}get isBand(){return this._getOption("isBand")}set isBand(f){this._setOption("isBand",f)}get lookup(){return this._getOption("lookup")}set lookup(f){this._setOption("lookup",f)}get minWidth(){return this._getOption("minWidth")}set minWidth(f){this._setOption("minWidth",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get ownerBand(){return this._getOption("ownerBand")}set ownerBand(f){this._setOption("ownerBand",f)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(f){this._setOption("renderAsync",f)}get selectedFilterOperation(){return this._getOption("selectedFilterOperation")}set selectedFilterOperation(f){this._setOption("selectedFilterOperation",f)}get setCellValue(){return this._getOption("setCellValue")}set setCellValue(f){this._setOption("setCellValue",f)}get showEditorAlways(){return this._getOption("showEditorAlways")}set showEditorAlways(f){this._setOption("showEditorAlways",f)}get showInColumnChooser(){return this._getOption("showInColumnChooser")}set showInColumnChooser(f){this._setOption("showInColumnChooser",f)}get showWhenGrouped(){return this._getOption("showWhenGrouped")}set showWhenGrouped(f){this._setOption("showWhenGrouped",f)}get sortIndex(){return this._getOption("sortIndex")}set sortIndex(f){this._setOption("sortIndex",f)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(f){this._setOption("sortingMethod",f)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(f){this._setOption("sortOrder",f)}get trueText(){return this._getOption("trueText")}set trueText(f){this._setOption("trueText",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get validationRules(){return this._getOption("validationRules")}set validationRules(f){this._setOption("validationRules",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get visibleIndex(){return this._getOption("visibleIndex")}set visibleIndex(f){this._setOption("visibleIndex",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),hi=(()=>{class L extends Pn{constructor(f,je){super(),this._createEventEmitters([{emit:"filterValueChange"},{emit:"filterValuesChange"},{emit:"groupIndexChange"},{emit:"selectedFilterOperationChange"},{emit:"sortIndexChange"},{emit:"sortOrderChange"},{emit:"visibleChange"},{emit:"visibleIndexChange"}]),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"columns"}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(f){this.setChildren("buttons",f)}get columnsChildren(){return this._getOption("columns")}set columnsChildren(f){this.setChildren("columns",f)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(f){this.setChildren("validationRules",f)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-column"]],contentQueries:function(f,je,di){if(1&f&&(o.Suo(di,St,4),o.Suo(di,L,4),o.Suo(di,te,4)),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.buttonsChildren=Mi),o.iGM(Mi=o.CRH())&&(je.columnsChildren=Mi),o.iGM(Mi=o.CRH())&&(je.validationRulesChildren=Mi)}},inputs:{alignment:"alignment",allowEditing:"allowEditing",allowExporting:"allowExporting",allowFiltering:"allowFiltering",allowFixing:"allowFixing",allowGrouping:"allowGrouping",allowHeaderFiltering:"allowHeaderFiltering",allowHiding:"allowHiding",allowReordering:"allowReordering",allowResizing:"allowResizing",allowSearch:"allowSearch",allowSorting:"allowSorting",autoExpandGroup:"autoExpandGroup",buttons:"buttons",calculateCellValue:"calculateCellValue",calculateDisplayValue:"calculateDisplayValue",calculateFilterExpression:"calculateFilterExpression",calculateGroupValue:"calculateGroupValue",calculateSortValue:"calculateSortValue",caption:"caption",cellTemplate:"cellTemplate",columns:"columns",cssClass:"cssClass",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editCellTemplate:"editCellTemplate",editorOptions:"editorOptions",encodeHtml:"encodeHtml",falseText:"falseText",filterOperations:"filterOperations",filterType:"filterType",filterValue:"filterValue",filterValues:"filterValues",fixed:"fixed",fixedPosition:"fixedPosition",format:"format",formItem:"formItem",groupCellTemplate:"groupCellTemplate",groupIndex:"groupIndex",headerCellTemplate:"headerCellTemplate",headerFilter:"headerFilter",hidingPriority:"hidingPriority",isBand:"isBand",lookup:"lookup",minWidth:"minWidth",name:"name",ownerBand:"ownerBand",renderAsync:"renderAsync",selectedFilterOperation:"selectedFilterOperation",setCellValue:"setCellValue",showEditorAlways:"showEditorAlways",showInColumnChooser:"showInColumnChooser",showWhenGrouped:"showWhenGrouped",sortIndex:"sortIndex",sortingMethod:"sortingMethod",sortOrder:"sortOrder",trueText:"trueText",type:"type",validationRules:"validationRules",visible:"visible",visibleIndex:"visibleIndex",width:"width"},outputs:{filterValueChange:"filterValueChange",filterValuesChange:"filterValuesChange",groupIndexChange:"groupIndexChange",selectedFilterOperationChange:"selectedFilterOperationChange",sortIndexChange:"sortIndexChange",sortOrderChange:"sortOrderChange",visibleChange:"visibleChange",visibleIndexChange:"visibleIndexChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Si=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Gr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Sr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ur=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),mo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Mr=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get x(){return this._getOption("x")}set x(f){this._setOption("x",f)}get y(){return this._getOption("y")}set y(f){this._setOption("y",f)}get _optionPath(){return"connectionPoints"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-connection-point"]],inputs:{x:"x",y:"y"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),po=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ar=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),It=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_i=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),fi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Li=(()=>{class L extends c.Fx{get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(f){this._setOption("calculateFilterExpression",f)}get caption(){return this._getOption("caption")}set caption(f){this._setOption("caption",f)}get customizeText(){return this._getOption("customizeText")}set customizeText(f){this._setOption("customizeText",f)}get dataTypes(){return this._getOption("dataTypes")}set dataTypes(f){this._setOption("dataTypes",f)}get editorTemplate(){return this._getOption("editorTemplate")}set editorTemplate(f){this._setOption("editorTemplate",f)}get hasValue(){return this._getOption("hasValue")}set hasValue(f){this._setOption("hasValue",f)}get icon(){return this._getOption("icon")}set icon(f){this._setOption("icon",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),sr=(()=>{class L extends Li{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"customOperations"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-custom-operation"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataTypes:"dataTypes",editorTemplate:"editorTemplate",hasValue:"hasValue",icon:"icon",name:"name"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),gr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const Qt=["*"];let _n=(()=>{class L extends c.Fx{constructor(f,je,di,Mi,ou,Fs){super(),this.renderer=di,this.document=Mi,this.element=Fs,f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get allowEditImage(){return this._getOption("allowEditImage")}set allowEditImage(f){this._setOption("allowEditImage",f)}get allowEditText(){return this._getOption("allowEditText")}set allowEditText(f){this._setOption("allowEditText",f)}get allowResize(){return this._getOption("allowResize")}set allowResize(f){this._setOption("allowResize",f)}get backgroundImageHeight(){return this._getOption("backgroundImageHeight")}set backgroundImageHeight(f){this._setOption("backgroundImageHeight",f)}get backgroundImageLeft(){return this._getOption("backgroundImageLeft")}set backgroundImageLeft(f){this._setOption("backgroundImageLeft",f)}get backgroundImageToolboxUrl(){return this._getOption("backgroundImageToolboxUrl")}set backgroundImageToolboxUrl(f){this._setOption("backgroundImageToolboxUrl",f)}get backgroundImageTop(){return this._getOption("backgroundImageTop")}set backgroundImageTop(f){this._setOption("backgroundImageTop",f)}get backgroundImageUrl(){return this._getOption("backgroundImageUrl")}set backgroundImageUrl(f){this._setOption("backgroundImageUrl",f)}get backgroundImageWidth(){return this._getOption("backgroundImageWidth")}set backgroundImageWidth(f){this._setOption("backgroundImageWidth",f)}get baseType(){return this._getOption("baseType")}set baseType(f){this._setOption("baseType",f)}get category(){return this._getOption("category")}set category(f){this._setOption("category",f)}get connectionPoints(){return this._getOption("connectionPoints")}set connectionPoints(f){this._setOption("connectionPoints",f)}get defaultHeight(){return this._getOption("defaultHeight")}set defaultHeight(f){this._setOption("defaultHeight",f)}get defaultImageUrl(){return this._getOption("defaultImageUrl")}set defaultImageUrl(f){this._setOption("defaultImageUrl",f)}get defaultText(){return this._getOption("defaultText")}set defaultText(f){this._setOption("defaultText",f)}get defaultWidth(){return this._getOption("defaultWidth")}set defaultWidth(f){this._setOption("defaultWidth",f)}get imageHeight(){return this._getOption("imageHeight")}set imageHeight(f){this._setOption("imageHeight",f)}get imageLeft(){return this._getOption("imageLeft")}set imageLeft(f){this._setOption("imageLeft",f)}get imageTop(){return this._getOption("imageTop")}set imageTop(f){this._setOption("imageTop",f)}get imageWidth(){return this._getOption("imageWidth")}set imageWidth(f){this._setOption("imageWidth",f)}get keepRatioOnAutoSize(){return this._getOption("keepRatioOnAutoSize")}set keepRatioOnAutoSize(f){this._setOption("keepRatioOnAutoSize",f)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(f){this._setOption("maxHeight",f)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(f){this._setOption("maxWidth",f)}get minHeight(){return this._getOption("minHeight")}set minHeight(f){this._setOption("minHeight",f)}get minWidth(){return this._getOption("minWidth")}set minWidth(f){this._setOption("minWidth",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get templateHeight(){return this._getOption("templateHeight")}set templateHeight(f){this._setOption("templateHeight",f)}get templateLeft(){return this._getOption("templateLeft")}set templateLeft(f){this._setOption("templateLeft",f)}get templateTop(){return this._getOption("templateTop")}set templateTop(f){this._setOption("templateTop",f)}get templateWidth(){return this._getOption("templateWidth")}set templateWidth(f){this._setOption("templateWidth",f)}get textHeight(){return this._getOption("textHeight")}set textHeight(f){this._setOption("textHeight",f)}get textLeft(){return this._getOption("textLeft")}set textLeft(f){this._setOption("textLeft",f)}get textTop(){return this._getOption("textTop")}set textTop(f){this._setOption("textTop",f)}get textWidth(){return this._getOption("textWidth")}set textWidth(f){this._setOption("textWidth",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}get toolboxTemplate(){return this._getOption("toolboxTemplate")}set toolboxTemplate(f){this._setOption("toolboxTemplate",f)}get toolboxWidthToHeightRatio(){return this._getOption("toolboxWidthToHeightRatio")}set toolboxWidthToHeightRatio(f){this._setOption("toolboxWidthToHeightRatio",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get _optionPath(){return"customShapes"}get connectionPointsChildren(){return this._getOption("connectionPoints")}set connectionPointsChildren(f){this.setChildren("connectionPoints",f)}setTemplate(f){this.template=f}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-custom-shape"]],contentQueries:function(f,je,di){if(1&f&&o.Suo(di,Mr,4),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.connectionPointsChildren=Mi)}},inputs:{allowEditImage:"allowEditImage",allowEditText:"allowEditText",allowResize:"allowResize",backgroundImageHeight:"backgroundImageHeight",backgroundImageLeft:"backgroundImageLeft",backgroundImageToolboxUrl:"backgroundImageToolboxUrl",backgroundImageTop:"backgroundImageTop",backgroundImageUrl:"backgroundImageUrl",backgroundImageWidth:"backgroundImageWidth",baseType:"baseType",category:"category",connectionPoints:"connectionPoints",defaultHeight:"defaultHeight",defaultImageUrl:"defaultImageUrl",defaultText:"defaultText",defaultWidth:"defaultWidth",imageHeight:"imageHeight",imageLeft:"imageLeft",imageTop:"imageTop",imageWidth:"imageWidth",keepRatioOnAutoSize:"keepRatioOnAutoSize",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",template:"template",templateHeight:"templateHeight",templateLeft:"templateLeft",templateTop:"templateTop",templateWidth:"templateWidth",textHeight:"textHeight",textLeft:"textLeft",textTop:"textTop",textWidth:"textWidth",title:"title",toolboxTemplate:"toolboxTemplate",toolboxWidthToHeightRatio:"toolboxWidthToHeightRatio",type:"type"},features:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:Qt,decls:1,vars:0,template:function(f,je){1&f&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),Ze=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ft=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wt=(()=>{class L extends c.Fx{get calculateFilterExpression(){return this._getOption("calculateFilterExpression")}set calculateFilterExpression(f){this._setOption("calculateFilterExpression",f)}get caption(){return this._getOption("caption")}set caption(f){this._setOption("caption",f)}get customizeText(){return this._getOption("customizeText")}set customizeText(f){this._setOption("customizeText",f)}get dataField(){return this._getOption("dataField")}set dataField(f){this._setOption("dataField",f)}get dataType(){return this._getOption("dataType")}set dataType(f){this._setOption("dataType",f)}get editorOptions(){return this._getOption("editorOptions")}set editorOptions(f){this._setOption("editorOptions",f)}get editorTemplate(){return this._getOption("editorTemplate")}set editorTemplate(f){this._setOption("editorTemplate",f)}get falseText(){return this._getOption("falseText")}set falseText(f){this._setOption("falseText",f)}get filterOperations(){return this._getOption("filterOperations")}set filterOperations(f){this._setOption("filterOperations",f)}get format(){return this._getOption("format")}set format(f){this._setOption("format",f)}get lookup(){return this._getOption("lookup")}set lookup(f){this._setOption("lookup",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get trueText(){return this._getOption("trueText")}set trueText(f){this._setOption("trueText",f)}get allowCrossGroupCalculation(){return this._getOption("allowCrossGroupCalculation")}set allowCrossGroupCalculation(f){this._setOption("allowCrossGroupCalculation",f)}get allowExpandAll(){return this._getOption("allowExpandAll")}set allowExpandAll(f){this._setOption("allowExpandAll",f)}get allowFiltering(){return this._getOption("allowFiltering")}set allowFiltering(f){this._setOption("allowFiltering",f)}get allowSorting(){return this._getOption("allowSorting")}set allowSorting(f){this._setOption("allowSorting",f)}get allowSortingBySummary(){return this._getOption("allowSortingBySummary")}set allowSortingBySummary(f){this._setOption("allowSortingBySummary",f)}get area(){return this._getOption("area")}set area(f){this._setOption("area",f)}get areaIndex(){return this._getOption("areaIndex")}set areaIndex(f){this._setOption("areaIndex",f)}get calculateCustomSummary(){return this._getOption("calculateCustomSummary")}set calculateCustomSummary(f){this._setOption("calculateCustomSummary",f)}get calculateSummaryValue(){return this._getOption("calculateSummaryValue")}set calculateSummaryValue(f){this._setOption("calculateSummaryValue",f)}get displayFolder(){return this._getOption("displayFolder")}set displayFolder(f){this._setOption("displayFolder",f)}get expanded(){return this._getOption("expanded")}set expanded(f){this._setOption("expanded",f)}get filterType(){return this._getOption("filterType")}set filterType(f){this._setOption("filterType",f)}get filterValues(){return this._getOption("filterValues")}set filterValues(f){this._setOption("filterValues",f)}get groupIndex(){return this._getOption("groupIndex")}set groupIndex(f){this._setOption("groupIndex",f)}get groupInterval(){return this._getOption("groupInterval")}set groupInterval(f){this._setOption("groupInterval",f)}get groupName(){return this._getOption("groupName")}set groupName(f){this._setOption("groupName",f)}get headerFilter(){return this._getOption("headerFilter")}set headerFilter(f){this._setOption("headerFilter",f)}get isMeasure(){return this._getOption("isMeasure")}set isMeasure(f){this._setOption("isMeasure",f)}get precision(){return this._getOption("precision")}set precision(f){this._setOption("precision",f)}get runningTotal(){return this._getOption("runningTotal")}set runningTotal(f){this._setOption("runningTotal",f)}get selector(){return this._getOption("selector")}set selector(f){this._setOption("selector",f)}get showGrandTotals(){return this._getOption("showGrandTotals")}set showGrandTotals(f){this._setOption("showGrandTotals",f)}get showTotals(){return this._getOption("showTotals")}set showTotals(f){this._setOption("showTotals",f)}get showValues(){return this._getOption("showValues")}set showValues(f){this._setOption("showValues",f)}get sortBy(){return this._getOption("sortBy")}set sortBy(f){this._setOption("sortBy",f)}get sortBySummaryField(){return this._getOption("sortBySummaryField")}set sortBySummaryField(f){this._setOption("sortBySummaryField",f)}get sortBySummaryPath(){return this._getOption("sortBySummaryPath")}set sortBySummaryPath(f){this._setOption("sortBySummaryPath",f)}get sortingMethod(){return this._getOption("sortingMethod")}set sortingMethod(f){this._setOption("sortingMethod",f)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(f){this._setOption("sortOrder",f)}get summaryDisplayMode(){return this._getOption("summaryDisplayMode")}set summaryDisplayMode(f){this._setOption("summaryDisplayMode",f)}get summaryType(){return this._getOption("summaryType")}set summaryType(f){this._setOption("summaryType",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get wordWrapEnabled(){return this._getOption("wordWrapEnabled")}set wordWrapEnabled(f){this._setOption("wordWrapEnabled",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),Xt=(()=>{class L extends wt{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"fields"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-field"]],inputs:{calculateFilterExpression:"calculateFilterExpression",caption:"caption",customizeText:"customizeText",dataField:"dataField",dataType:"dataType",editorOptions:"editorOptions",editorTemplate:"editorTemplate",falseText:"falseText",filterOperations:"filterOperations",format:"format",lookup:"lookup",name:"name",trueText:"trueText",allowCrossGroupCalculation:"allowCrossGroupCalculation",allowExpandAll:"allowExpandAll",allowFiltering:"allowFiltering",allowSorting:"allowSorting",allowSortingBySummary:"allowSortingBySummary",area:"area",areaIndex:"areaIndex",calculateCustomSummary:"calculateCustomSummary",calculateSummaryValue:"calculateSummaryValue",displayFolder:"displayFolder",expanded:"expanded",filterType:"filterType",filterValues:"filterValues",groupIndex:"groupIndex",groupInterval:"groupInterval",groupName:"groupName",headerFilter:"headerFilter",isMeasure:"isMeasure",precision:"precision",runningTotal:"runningTotal",selector:"selector",showGrandTotals:"showGrandTotals",showTotals:"showTotals",showValues:"showValues",sortBy:"sortBy",sortBySummaryField:"sortBySummaryField",sortBySummaryPath:"sortBySummaryPath",sortingMethod:"sortingMethod",sortOrder:"sortOrder",summaryDisplayMode:"summaryDisplayMode",summaryType:"summaryType",visible:"visible",width:"width",wordWrapEnabled:"wordWrapEnabled"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),fn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ht=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),hn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Nn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ot=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})();const Un=["*"];let oi=(()=>{class L extends c.Fx{constructor(f,je,di,Mi,ou,Fs){super(),this.renderer=di,this.document=Mi,this.element=Fs,f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this)),ou.setHost(this)}get cssClass(){return this._getOption("cssClass")}set cssClass(f){this._setOption("cssClass",f)}get disabled(){return this._getOption("disabled")}set disabled(f){this._setOption("disabled",f)}get html(){return this._getOption("html")}set html(f){this._setOption("html",f)}get locateInMenu(){return this._getOption("locateInMenu")}set locateInMenu(f){this._setOption("locateInMenu",f)}get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get menuItemTemplate(){return this._getOption("menuItemTemplate")}set menuItemTemplate(f){this._setOption("menuItemTemplate",f)}get options(){return this._getOption("options")}set options(f){this._setOption("options",f)}get showText(){return this._getOption("showText")}set showText(f){this._setOption("showText",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get toolbar(){return this._getOption("toolbar")}set toolbar(f){this._setOption("toolbar",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get widget(){return this._getOption("widget")}set widget(f){this._setOption("widget",f)}get _optionPath(){return"toolbarItems"}setTemplate(f){this.template=f}ngAfterViewInit(){(0,c.UX)(this,this.element,this.renderer,this.document)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1),o.Y36(o.Qsj),o.Y36(I.K0),o.Y36(c._5,1),o.Y36(o.SBq))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-toolbar-item"]],inputs:{cssClass:"cssClass",disabled:"disabled",html:"html",locateInMenu:"locateInMenu",location:"location",menuItemTemplate:"menuItemTemplate",options:"options",showText:"showText",template:"template",text:"text",toolbar:"toolbar",visible:"visible",widget:"widget"},features:[o._Bn([c.al,c._5]),o.qOj],ngContentSelectors:Un,decls:1,vars:0,template:function(f,je){1&f&&(o.F$t(),o.Hsn(0))},styles:["[_nghost-%COMP%] { display: block; }"]}),L})(),xi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ui=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tr=(()=>{class L extends c.RW{constructor(f,je){super(),this._createEventEmitters([{emit:"changesChange"},{emit:"editColumnNameChange"},{emit:"editRowKeyChange"}]),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowAdding(){return this._getOption("allowAdding")}set allowAdding(f){this._setOption("allowAdding",f)}get allowDeleting(){return this._getOption("allowDeleting")}set allowDeleting(f){this._setOption("allowDeleting",f)}get allowUpdating(){return this._getOption("allowUpdating")}set allowUpdating(f){this._setOption("allowUpdating",f)}get changes(){return this._getOption("changes")}set changes(f){this._setOption("changes",f)}get confirmDelete(){return this._getOption("confirmDelete")}set confirmDelete(f){this._setOption("confirmDelete",f)}get editColumnName(){return this._getOption("editColumnName")}set editColumnName(f){this._setOption("editColumnName",f)}get editRowKey(){return this._getOption("editRowKey")}set editRowKey(f){this._setOption("editRowKey",f)}get form(){return this._getOption("form")}set form(f){this._setOption("form",f)}get mode(){return this._getOption("mode")}set mode(f){this._setOption("mode",f)}get newRowPosition(){return this._getOption("newRowPosition")}set newRowPosition(f){this._setOption("newRowPosition",f)}get popup(){return this._getOption("popup")}set popup(f){this._setOption("popup",f)}get refreshMode(){return this._getOption("refreshMode")}set refreshMode(f){this._setOption("refreshMode",f)}get selectTextOnEditStart(){return this._getOption("selectTextOnEditStart")}set selectTextOnEditStart(f){this._setOption("selectTextOnEditStart",f)}get startEditAction(){return this._getOption("startEditAction")}set startEditAction(f){this._setOption("startEditAction",f)}get texts(){return this._getOption("texts")}set texts(f){this._setOption("texts",f)}get useIcons(){return this._getOption("useIcons")}set useIcons(f){this._setOption("useIcons",f)}get allowAddShape(){return this._getOption("allowAddShape")}set allowAddShape(f){this._setOption("allowAddShape",f)}get allowChangeConnection(){return this._getOption("allowChangeConnection")}set allowChangeConnection(f){this._setOption("allowChangeConnection",f)}get allowChangeConnectorPoints(){return this._getOption("allowChangeConnectorPoints")}set allowChangeConnectorPoints(f){this._setOption("allowChangeConnectorPoints",f)}get allowChangeConnectorText(){return this._getOption("allowChangeConnectorText")}set allowChangeConnectorText(f){this._setOption("allowChangeConnectorText",f)}get allowChangeShapeText(){return this._getOption("allowChangeShapeText")}set allowChangeShapeText(f){this._setOption("allowChangeShapeText",f)}get allowDeleteConnector(){return this._getOption("allowDeleteConnector")}set allowDeleteConnector(f){this._setOption("allowDeleteConnector",f)}get allowDeleteShape(){return this._getOption("allowDeleteShape")}set allowDeleteShape(f){this._setOption("allowDeleteShape",f)}get allowMoveShape(){return this._getOption("allowMoveShape")}set allowMoveShape(f){this._setOption("allowMoveShape",f)}get allowResizeShape(){return this._getOption("allowResizeShape")}set allowResizeShape(f){this._setOption("allowResizeShape",f)}get allowDependencyAdding(){return this._getOption("allowDependencyAdding")}set allowDependencyAdding(f){this._setOption("allowDependencyAdding",f)}get allowDependencyDeleting(){return this._getOption("allowDependencyDeleting")}set allowDependencyDeleting(f){this._setOption("allowDependencyDeleting",f)}get allowResourceAdding(){return this._getOption("allowResourceAdding")}set allowResourceAdding(f){this._setOption("allowResourceAdding",f)}get allowResourceDeleting(){return this._getOption("allowResourceDeleting")}set allowResourceDeleting(f){this._setOption("allowResourceDeleting",f)}get allowResourceUpdating(){return this._getOption("allowResourceUpdating")}set allowResourceUpdating(f){this._setOption("allowResourceUpdating",f)}get allowTaskAdding(){return this._getOption("allowTaskAdding")}set allowTaskAdding(f){this._setOption("allowTaskAdding",f)}get allowTaskDeleting(){return this._getOption("allowTaskDeleting")}set allowTaskDeleting(f){this._setOption("allowTaskDeleting",f)}get allowTaskResourceUpdating(){return this._getOption("allowTaskResourceUpdating")}set allowTaskResourceUpdating(f){this._setOption("allowTaskResourceUpdating",f)}get allowTaskUpdating(){return this._getOption("allowTaskUpdating")}set allowTaskUpdating(f){this._setOption("allowTaskUpdating",f)}get enabled(){return this._getOption("enabled")}set enabled(f){this._setOption("enabled",f)}get allowDragging(){return this._getOption("allowDragging")}set allowDragging(f){this._setOption("allowDragging",f)}get allowResizing(){return this._getOption("allowResizing")}set allowResizing(f){this._setOption("allowResizing",f)}get allowTimeZoneEditing(){return this._getOption("allowTimeZoneEditing")}set allowTimeZoneEditing(f){this._setOption("allowTimeZoneEditing",f)}get _optionPath(){return"editing"}get changesChildren(){return this._getOption("changes")}set changesChildren(f){this.setChildren("changes",f)}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-editing"]],contentQueries:function(f,je,di){if(1&f&&o.Suo(di,Vn,4),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.changesChildren=Mi)}},inputs:{allowAdding:"allowAdding",allowDeleting:"allowDeleting",allowUpdating:"allowUpdating",changes:"changes",confirmDelete:"confirmDelete",editColumnName:"editColumnName",editRowKey:"editRowKey",form:"form",mode:"mode",newRowPosition:"newRowPosition",popup:"popup",refreshMode:"refreshMode",selectTextOnEditStart:"selectTextOnEditStart",startEditAction:"startEditAction",texts:"texts",useIcons:"useIcons",allowAddShape:"allowAddShape",allowChangeConnection:"allowChangeConnection",allowChangeConnectorPoints:"allowChangeConnectorPoints",allowChangeConnectorText:"allowChangeConnectorText",allowChangeShapeText:"allowChangeShapeText",allowDeleteConnector:"allowDeleteConnector",allowDeleteShape:"allowDeleteShape",allowMoveShape:"allowMoveShape",allowResizeShape:"allowResizeShape",allowDependencyAdding:"allowDependencyAdding",allowDependencyDeleting:"allowDependencyDeleting",allowResourceAdding:"allowResourceAdding",allowResourceDeleting:"allowResourceDeleting",allowResourceUpdating:"allowResourceUpdating",allowTaskAdding:"allowTaskAdding",allowTaskDeleting:"allowTaskDeleting",allowTaskResourceUpdating:"allowTaskResourceUpdating",allowTaskUpdating:"allowTaskUpdating",enabled:"enabled",allowDragging:"allowDragging",allowResizing:"allowResizing",allowTimeZoneEditing:"allowTimeZoneEditing"},outputs:{changesChange:"changesChange",editColumnNameChange:"editColumnNameChange",editRowKeyChange:"editRowKeyChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),br=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ro=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),uo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pa=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Uo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),io=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ga=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ds=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),fa=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),qo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),aa=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ma=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ba=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),At=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_t=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),We=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bi=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),mr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ir=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),qr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Dn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),qn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Di=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),cr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Er=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pa=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),da=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ln=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Bn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),at=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ln=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ii=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Zr=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),vo=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ho=(()=>{class L extends c.RW{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get connectorColor(){return this._getOption("connectorColor")}set connectorColor(f){this._setOption("connectorColor",f)}get connectorWidth(){return this._getOption("connectorWidth")}set connectorWidth(f){this._setOption("connectorWidth",f)}get customizeText(){return this._getOption("customizeText")}set customizeText(f){this._setOption("customizeText",f)}get font(){return this._getOption("font")}set font(f){this._setOption("font",f)}get format(){return this._getOption("format")}set format(f){this._setOption("format",f)}get indent(){return this._getOption("indent")}set indent(f){this._setOption("indent",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(f){this._setOption("horizontalAlignment",f)}get position(){return this._getOption("position")}set position(f){this._setOption("position",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(f){this._setOption("verticalAlignment",f)}get alignment(){return this._getOption("alignment")}set alignment(f){this._setOption("alignment",f)}get customizeHint(){return this._getOption("customizeHint")}set customizeHint(f){this._setOption("customizeHint",f)}get displayMode(){return this._getOption("displayMode")}set displayMode(f){this._setOption("displayMode",f)}get indentFromAxis(){return this._getOption("indentFromAxis")}set indentFromAxis(f){this._setOption("indentFromAxis",f)}get overlappingBehavior(){return this._getOption("overlappingBehavior")}set overlappingBehavior(f){this._setOption("overlappingBehavior",f)}get rotationAngle(){return this._getOption("rotationAngle")}set rotationAngle(f){this._setOption("rotationAngle",f)}get staggeringSpacing(){return this._getOption("staggeringSpacing")}set staggeringSpacing(f){this._setOption("staggeringSpacing",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get textOverflow(){return this._getOption("textOverflow")}set textOverflow(f){this._setOption("textOverflow",f)}get wordWrap(){return this._getOption("wordWrap")}set wordWrap(f){this._setOption("wordWrap",f)}get argumentFormat(){return this._getOption("argumentFormat")}set argumentFormat(f){this._setOption("argumentFormat",f)}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(f){this._setOption("backgroundColor",f)}get border(){return this._getOption("border")}set border(f){this._setOption("border",f)}get connector(){return this._getOption("connector")}set connector(f){this._setOption("connector",f)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(f){this._setOption("displayFormat",f)}get horizontalOffset(){return this._getOption("horizontalOffset")}set horizontalOffset(f){this._setOption("horizontalOffset",f)}get showForZeroValues(){return this._getOption("showForZeroValues")}set showForZeroValues(f){this._setOption("showForZeroValues",f)}get verticalOffset(){return this._getOption("verticalOffset")}set verticalOffset(f){this._setOption("verticalOffset",f)}get hideFirstOrLast(){return this._getOption("hideFirstOrLast")}set hideFirstOrLast(f){this._setOption("hideFirstOrLast",f)}get indentFromTick(){return this._getOption("indentFromTick")}set indentFromTick(f){this._setOption("indentFromTick",f)}get useRangeColors(){return this._getOption("useRangeColors")}set useRangeColors(f){this._setOption("useRangeColors",f)}get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get showColon(){return this._getOption("showColon")}set showColon(f){this._setOption("showColon",f)}get radialOffset(){return this._getOption("radialOffset")}set radialOffset(f){this._setOption("radialOffset",f)}get topIndent(){return this._getOption("topIndent")}set topIndent(f){this._setOption("topIndent",f)}get shadow(){return this._getOption("shadow")}set shadow(f){this._setOption("shadow",f)}get useNodeColors(){return this._getOption("useNodeColors")}set useNodeColors(f){this._setOption("useNodeColors",f)}get dataField(){return this._getOption("dataField")}set dataField(f){this._setOption("dataField",f)}get enabled(){return this._getOption("enabled")}set enabled(f){this._setOption("enabled",f)}get _optionPath(){return"label"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-label"]],inputs:{connectorColor:"connectorColor",connectorWidth:"connectorWidth",customizeText:"customizeText",font:"font",format:"format",indent:"indent",visible:"visible",horizontalAlignment:"horizontalAlignment",position:"position",text:"text",verticalAlignment:"verticalAlignment",alignment:"alignment",customizeHint:"customizeHint",displayMode:"displayMode",indentFromAxis:"indentFromAxis",overlappingBehavior:"overlappingBehavior",rotationAngle:"rotationAngle",staggeringSpacing:"staggeringSpacing",template:"template",textOverflow:"textOverflow",wordWrap:"wordWrap",argumentFormat:"argumentFormat",backgroundColor:"backgroundColor",border:"border",connector:"connector",displayFormat:"displayFormat",horizontalOffset:"horizontalOffset",showForZeroValues:"showForZeroValues",verticalOffset:"verticalOffset",hideFirstOrLast:"hideFirstOrLast",indentFromTick:"indentFromTick",useRangeColors:"useRangeColors",location:"location",showColon:"showColon",radialOffset:"radialOffset",topIndent:"topIndent",shadow:"shadow",useNodeColors:"useNodeColors",dataField:"dataField",enabled:"enabled"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Ko=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ro=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get borderColor(){return this._getOption("borderColor")}set borderColor(f){this._setOption("borderColor",f)}get borderWidth(){return this._getOption("borderWidth")}set borderWidth(f){this._setOption("borderWidth",f)}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get colorGroupingField(){return this._getOption("colorGroupingField")}set colorGroupingField(f){this._setOption("colorGroupingField",f)}get colorGroups(){return this._getOption("colorGroups")}set colorGroups(f){this._setOption("colorGroups",f)}get customize(){return this._getOption("customize")}set customize(f){this._setOption("customize",f)}get dataField(){return this._getOption("dataField")}set dataField(f){this._setOption("dataField",f)}get dataSource(){return this._getOption("dataSource")}set dataSource(f){this._setOption("dataSource",f)}get elementType(){return this._getOption("elementType")}set elementType(f){this._setOption("elementType",f)}get hoveredBorderColor(){return this._getOption("hoveredBorderColor")}set hoveredBorderColor(f){this._setOption("hoveredBorderColor",f)}get hoveredBorderWidth(){return this._getOption("hoveredBorderWidth")}set hoveredBorderWidth(f){this._setOption("hoveredBorderWidth",f)}get hoveredColor(){return this._getOption("hoveredColor")}set hoveredColor(f){this._setOption("hoveredColor",f)}get hoverEnabled(){return this._getOption("hoverEnabled")}set hoverEnabled(f){this._setOption("hoverEnabled",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get maxSize(){return this._getOption("maxSize")}set maxSize(f){this._setOption("maxSize",f)}get minSize(){return this._getOption("minSize")}set minSize(f){this._setOption("minSize",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get opacity(){return this._getOption("opacity")}set opacity(f){this._setOption("opacity",f)}get palette(){return this._getOption("palette")}set palette(f){this._setOption("palette",f)}get paletteIndex(){return this._getOption("paletteIndex")}set paletteIndex(f){this._setOption("paletteIndex",f)}get paletteSize(){return this._getOption("paletteSize")}set paletteSize(f){this._setOption("paletteSize",f)}get selectedBorderColor(){return this._getOption("selectedBorderColor")}set selectedBorderColor(f){this._setOption("selectedBorderColor",f)}get selectedBorderWidth(){return this._getOption("selectedBorderWidth")}set selectedBorderWidth(f){this._setOption("selectedBorderWidth",f)}get selectedColor(){return this._getOption("selectedColor")}set selectedColor(f){this._setOption("selectedColor",f)}get selectionMode(){return this._getOption("selectionMode")}set selectionMode(f){this._setOption("selectionMode",f)}get size(){return this._getOption("size")}set size(f){this._setOption("size",f)}get sizeGroupingField(){return this._getOption("sizeGroupingField")}set sizeGroupingField(f){this._setOption("sizeGroupingField",f)}get sizeGroups(){return this._getOption("sizeGroups")}set sizeGroups(f){this._setOption("sizeGroups",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get _optionPath(){return"layers"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-layer"]],inputs:{borderColor:"borderColor",borderWidth:"borderWidth",color:"color",colorGroupingField:"colorGroupingField",colorGroups:"colorGroups",customize:"customize",dataField:"dataField",dataSource:"dataSource",elementType:"elementType",hoveredBorderColor:"hoveredBorderColor",hoveredBorderWidth:"hoveredBorderWidth",hoveredColor:"hoveredColor",hoverEnabled:"hoverEnabled",label:"label",maxSize:"maxSize",minSize:"minSize",name:"name",opacity:"opacity",palette:"palette",paletteIndex:"paletteIndex",paletteSize:"paletteSize",selectedBorderColor:"selectedBorderColor",selectedBorderWidth:"selectedBorderWidth",selectedColor:"selectedColor",selectionMode:"selectionMode",size:"size",sizeGroupingField:"sizeGroupingField",sizeGroups:"sizeGroups",type:"type"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),ea=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),la=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(f){this._setOption("backgroundColor",f)}get border(){return this._getOption("border")}set border(f){this._setOption("border",f)}get columnCount(){return this._getOption("columnCount")}set columnCount(f){this._setOption("columnCount",f)}get columnItemSpacing(){return this._getOption("columnItemSpacing")}set columnItemSpacing(f){this._setOption("columnItemSpacing",f)}get customizeHint(){return this._getOption("customizeHint")}set customizeHint(f){this._setOption("customizeHint",f)}get customizeItems(){return this._getOption("customizeItems")}set customizeItems(f){this._setOption("customizeItems",f)}get customizeText(){return this._getOption("customizeText")}set customizeText(f){this._setOption("customizeText",f)}get font(){return this._getOption("font")}set font(f){this._setOption("font",f)}get horizontalAlignment(){return this._getOption("horizontalAlignment")}set horizontalAlignment(f){this._setOption("horizontalAlignment",f)}get itemsAlignment(){return this._getOption("itemsAlignment")}set itemsAlignment(f){this._setOption("itemsAlignment",f)}get itemTextPosition(){return this._getOption("itemTextPosition")}set itemTextPosition(f){this._setOption("itemTextPosition",f)}get margin(){return this._getOption("margin")}set margin(f){this._setOption("margin",f)}get markerColor(){return this._getOption("markerColor")}set markerColor(f){this._setOption("markerColor",f)}get markerShape(){return this._getOption("markerShape")}set markerShape(f){this._setOption("markerShape",f)}get markerSize(){return this._getOption("markerSize")}set markerSize(f){this._setOption("markerSize",f)}get markerTemplate(){return this._getOption("markerTemplate")}set markerTemplate(f){this._setOption("markerTemplate",f)}get orientation(){return this._getOption("orientation")}set orientation(f){this._setOption("orientation",f)}get paddingLeftRight(){return this._getOption("paddingLeftRight")}set paddingLeftRight(f){this._setOption("paddingLeftRight",f)}get paddingTopBottom(){return this._getOption("paddingTopBottom")}set paddingTopBottom(f){this._setOption("paddingTopBottom",f)}get rowCount(){return this._getOption("rowCount")}set rowCount(f){this._setOption("rowCount",f)}get rowItemSpacing(){return this._getOption("rowItemSpacing")}set rowItemSpacing(f){this._setOption("rowItemSpacing",f)}get source(){return this._getOption("source")}set source(f){this._setOption("source",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}get verticalAlignment(){return this._getOption("verticalAlignment")}set verticalAlignment(f){this._setOption("verticalAlignment",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get _optionPath(){return"legends"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-legend"]],inputs:{backgroundColor:"backgroundColor",border:"border",columnCount:"columnCount",columnItemSpacing:"columnItemSpacing",customizeHint:"customizeHint",customizeItems:"customizeItems",customizeText:"customizeText",font:"font",horizontalAlignment:"horizontalAlignment",itemsAlignment:"itemsAlignment",itemTextPosition:"itemTextPosition",margin:"margin",markerColor:"markerColor",markerShape:"markerShape",markerSize:"markerSize",markerTemplate:"markerTemplate",orientation:"orientation",paddingLeftRight:"paddingLeftRight",paddingTopBottom:"paddingTopBottom",rowCount:"rowCount",rowItemSpacing:"rowItemSpacing",source:"source",title:"title",verticalAlignment:"verticalAlignment",visible:"visible"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),va=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ya=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ld=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),td=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Eu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Cc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Up=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Su=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get iconSrc(){return this._getOption("iconSrc")}set iconSrc(f){this._setOption("iconSrc",f)}get location(){return this._getOption("location")}set location(f){this._setOption("location",f)}get onClick(){return this._getOption("onClick")}set onClick(f){this._setOption("onClick",f)}get tooltip(){return this._getOption("tooltip")}set tooltip(f){this._setOption("tooltip",f)}get _optionPath(){return"markers"}get locationChildren(){return this._getOption("location")}set locationChildren(f){this.setChildren("location",f)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-marker"]],contentQueries:function(f,je,di){if(1&f&&o.Suo(di,Pe,4),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.locationChildren=Mi)}},inputs:{iconSrc:"iconSrc",location:"location",onClick:"onClick",tooltip:"tooltip"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Ou=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Fd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Du=(()=>{class L extends c.RW{get allowedTargets(){return this._getOption("allowedTargets")}set allowedTargets(f){this._setOption("allowedTargets",f)}get enabled(){return this._getOption("enabled")}set enabled(f){this._setOption("enabled",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),Ec=(()=>{class L extends Du{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"mediaResizing"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-media-resizing"]],inputs:{allowedTargets:"allowedTargets",enabled:"enabled"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),ql=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Es=(()=>{class L extends c.Fx{get dataSource(){return this._getOption("dataSource")}set dataSource(f){this._setOption("dataSource",f)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(f){this._setOption("displayExpr",f)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(f){this._setOption("itemTemplate",f)}get marker(){return this._getOption("marker")}set marker(f){this._setOption("marker",f)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(f){this._setOption("minSearchLength",f)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(f){this._setOption("searchExpr",f)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(f){this._setOption("searchTimeout",f)}get template(){return this._getOption("template")}set template(f){this._setOption("template",f)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(f){this._setOption("valueExpr",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),od=(()=>{class L extends Es{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"mentions"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-mention"]],inputs:{dataSource:"dataSource",displayExpr:"displayExpr",itemTemplate:"itemTemplate",marker:"marker",minSearchLength:"minSearchLength",searchExpr:"searchExpr",searchTimeout:"searchTimeout",template:"template",valueExpr:"valueExpr"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),As=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Vd=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get action(){return this._getOption("action")}set action(f){this._setOption("action",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get _optionPath(){return"menuItems"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-menu-item"]],inputs:{action:"action",text:"text"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Ss=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qa=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ad=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Cl=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),sd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nl=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Al=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Gp=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ld=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Sc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jp=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Iu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ks=(()=>{class L extends c.RW{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowedPageSizes(){return this._getOption("allowedPageSizes")}set allowedPageSizes(f){this._setOption("allowedPageSizes",f)}get displayMode(){return this._getOption("displayMode")}set displayMode(f){this._setOption("displayMode",f)}get infoText(){return this._getOption("infoText")}set infoText(f){this._setOption("infoText",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get showInfo(){return this._getOption("showInfo")}set showInfo(f){this._setOption("showInfo",f)}get showNavigationButtons(){return this._getOption("showNavigationButtons")}set showNavigationButtons(f){this._setOption("showNavigationButtons",f)}get showPageSizeSelector(){return this._getOption("showPageSizeSelector")}set showPageSizeSelector(f){this._setOption("showPageSizeSelector",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get _optionPath(){return"pager"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-pager"]],inputs:{allowedPageSizes:"allowedPageSizes",displayMode:"displayMode",infoText:"infoText",label:"label",showInfo:"showInfo",showNavigationButtons:"showNavigationButtons",showPageSizeSelector:"showPageSizeSelector",visible:"visible"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Rh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ys=(()=>{class L extends c.RW{constructor(f,je){super(),this._createEventEmitters([{emit:"pageIndexChange"},{emit:"pageSizeChange"}]),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get enabled(){return this._getOption("enabled")}set enabled(f){this._setOption("enabled",f)}get pageIndex(){return this._getOption("pageIndex")}set pageIndex(f){this._setOption("pageIndex",f)}get pageSize(){return this._getOption("pageSize")}set pageSize(f){this._setOption("pageSize",f)}get _optionPath(){return"paging"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-paging"]],inputs:{enabled:"enabled",pageIndex:"pageIndex",pageSize:"pageSize"},outputs:{pageIndexChange:"pageIndexChange",pageSizeChange:"pageSizeChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Os=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),cd=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get backgroundColor(){return this._getOption("backgroundColor")}set backgroundColor(f){this._setOption("backgroundColor",f)}get border(){return this._getOption("border")}set border(f){this._setOption("border",f)}get height(){return this._getOption("height")}set height(f){this._setOption("height",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get _optionPath(){return"panes"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-pane"]],inputs:{backgroundColor:"backgroundColor",border:"border",height:"height",name:"name"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),hd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Oc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Dc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ps=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),cl=(()=>{class L extends c.RW{get at(){return this._getOption("at")}set at(f){this._setOption("at",f)}get boundary(){return this._getOption("boundary")}set boundary(f){this._setOption("boundary",f)}get boundaryOffset(){return this._getOption("boundaryOffset")}set boundaryOffset(f){this._setOption("boundaryOffset",f)}get collision(){return this._getOption("collision")}set collision(f){this._setOption("collision",f)}get my(){return this._getOption("my")}set my(f){this._setOption("my",f)}get of(){return this._getOption("of")}set of(f){this._setOption("of",f)}get offset(){return this._getOption("offset")}set offset(f){this._setOption("offset",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),eu=(()=>{class L extends cl{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"position"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-position"]],inputs:{at:"at",boundary:"boundary",boundaryOffset:"boundaryOffset",collision:"collision",my:"my",of:"of",offset:"offset"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Lh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Yp=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xp=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Bh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),tu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Au=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Wd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),iu=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),qe=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),He=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowMultiple(){return this._getOption("allowMultiple")}set allowMultiple(f){this._setOption("allowMultiple",f)}get colorExpr(){return this._getOption("colorExpr")}set colorExpr(f){this._setOption("colorExpr",f)}get dataSource(){return this._getOption("dataSource")}set dataSource(f){this._setOption("dataSource",f)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(f){this._setOption("displayExpr",f)}get fieldExpr(){return this._getOption("fieldExpr")}set fieldExpr(f){this._setOption("fieldExpr",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get useColorAsDefault(){return this._getOption("useColorAsDefault")}set useColorAsDefault(f){this._setOption("useColorAsDefault",f)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(f){this._setOption("valueExpr",f)}get _optionPath(){return"resources"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-resource"]],inputs:{allowMultiple:"allowMultiple",colorExpr:"colorExpr",dataSource:"dataSource",displayExpr:"displayExpr",fieldExpr:"fieldExpr",label:"label",useColorAsDefault:"useColorAsDefault",valueExpr:"valueExpr"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Tt=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),kn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zn=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get locations(){return this._getOption("locations")}set locations(f){this._setOption("locations",f)}get mode(){return this._getOption("mode")}set mode(f){this._setOption("mode",f)}get opacity(){return this._getOption("opacity")}set opacity(f){this._setOption("opacity",f)}get weight(){return this._getOption("weight")}set weight(f){this._setOption("weight",f)}get _optionPath(){return"routes"}get locationsChildren(){return this._getOption("locations")}set locationsChildren(f){this.setChildren("locations",f)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-route"]],contentQueries:function(f,je,di){if(1&f&&o.Suo(di,Pe,4),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.locationsChildren=Mi)}},inputs:{color:"color",locations:"locations",mode:"mode",opacity:"opacity",weight:"weight"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Ri=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),to=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),no=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get baseSize(){return this._getOption("baseSize")}set baseSize(f){this._setOption("baseSize",f)}get ratio(){return this._getOption("ratio")}set ratio(f){this._setOption("ratio",f)}get screen(){return this._getOption("screen")}set screen(f){this._setOption("screen",f)}get shrink(){return this._getOption("shrink")}set shrink(f){this._setOption("shrink",f)}get _optionPath(){return"rows"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-row"]],inputs:{baseSize:"baseSize",ratio:"ratio",screen:"screen",shrink:"shrink"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),ua=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ps=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pl=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jf=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Jp=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Qf=(()=>{class L extends c.RW{get columnRenderingMode(){return this._getOption("columnRenderingMode")}set columnRenderingMode(f){this._setOption("columnRenderingMode",f)}get mode(){return this._getOption("mode")}set mode(f){this._setOption("mode",f)}get preloadEnabled(){return this._getOption("preloadEnabled")}set preloadEnabled(f){this._setOption("preloadEnabled",f)}get renderAsync(){return this._getOption("renderAsync")}set renderAsync(f){this._setOption("renderAsync",f)}get rowRenderingMode(){return this._getOption("rowRenderingMode")}set rowRenderingMode(f){this._setOption("rowRenderingMode",f)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(f){this._setOption("scrollByContent",f)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(f){this._setOption("scrollByThumb",f)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(f){this._setOption("showScrollbar",f)}get useNative(){return this._getOption("useNative")}set useNative(f){this._setOption("useNative",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),Qp=(()=>{class L extends Qf{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"scrolling"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-scrolling"]],inputs:{columnRenderingMode:"columnRenderingMode",mode:"mode",preloadEnabled:"preloadEnabled",renderAsync:"renderAsync",rowRenderingMode:"rowRenderingMode",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),js=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Vh=(()=>{class L extends c.RW{constructor(f,je){super(),this._createEventEmitters([{emit:"textChange"}]),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get highlightCaseSensitive(){return this._getOption("highlightCaseSensitive")}set highlightCaseSensitive(f){this._setOption("highlightCaseSensitive",f)}get highlightSearchText(){return this._getOption("highlightSearchText")}set highlightSearchText(f){this._setOption("highlightSearchText",f)}get placeholder(){return this._getOption("placeholder")}set placeholder(f){this._setOption("placeholder",f)}get searchVisibleColumnsOnly(){return this._getOption("searchVisibleColumnsOnly")}set searchVisibleColumnsOnly(f){this._setOption("searchVisibleColumnsOnly",f)}get text(){return this._getOption("text")}set text(f){this._setOption("text",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get _optionPath(){return"searchPanel"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-search-panel"]],inputs:{highlightCaseSensitive:"highlightCaseSensitive",highlightSearchText:"highlightSearchText",placeholder:"placeholder",searchVisibleColumnsOnly:"searchVisibleColumnsOnly",text:"text",visible:"visible",width:"width"},outputs:{textChange:"textChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Nh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ds=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),u_=(()=>{class L extends c.RW{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get allowSelectAll(){return this._getOption("allowSelectAll")}set allowSelectAll(f){this._setOption("allowSelectAll",f)}get deferred(){return this._getOption("deferred")}set deferred(f){this._setOption("deferred",f)}get mode(){return this._getOption("mode")}set mode(f){this._setOption("mode",f)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(f){this._setOption("selectAllMode",f)}get showCheckBoxesMode(){return this._getOption("showCheckBoxesMode")}set showCheckBoxesMode(f){this._setOption("showCheckBoxesMode",f)}get recursive(){return this._getOption("recursive")}set recursive(f){this._setOption("recursive",f)}get _optionPath(){return"selection"}ngOnInit(){this._addRecreatedComponent()}ngOnDestroy(){this._addRemovedOption(this._getOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxo-selection"]],inputs:{allowSelectAll:"allowSelectAll",deferred:"deferred",mode:"mode",selectAllMode:"selectAllMode",showCheckBoxesMode:"showCheckBoxesMode",recursive:"recursive"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Xa=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),fd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),$s=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Pc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ng=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),nm=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),im=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rm=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Rs=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),kc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),os=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ud=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get groupColumn(){return this._getOption("groupColumn")}set groupColumn(f){this._setOption("groupColumn",f)}get sortOrder(){return this._getOption("sortOrder")}set sortOrder(f){this._setOption("sortOrder",f)}get summaryItem(){return this._getOption("summaryItem")}set summaryItem(f){this._setOption("summaryItem",f)}get _optionPath(){return"sortByGroupSummaryInfo"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-sort-by-group-summary-info"]],inputs:{groupColumn:"groupColumn",sortOrder:"sortOrder",summaryItem:"summaryItem"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Rc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ys=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),sg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),na=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Uh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Zd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),am=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Kh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Ru=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Lc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),md=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),hg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),lm=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),$h=(()=>{class L extends c.Fx{get cssClass(){return this._getOption("cssClass")}set cssClass(f){this._setOption("cssClass",f)}get end(){return this._getOption("end")}set end(f){this._setOption("end",f)}get start(){return this._getOption("start")}set start(f){this._setOption("start",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}}return L.\u0275fac=function(){let Oe;return function(je){return(Oe||(Oe=o.n5z(L)))(je||L)}}(),L.\u0275cmp=o.Xpm({type:L,selectors:[["ng-component"]],features:[o.qOj],decls:0,vars:0,template:function(f,je){},encapsulation:2}),L})(),xl=(()=>{class L extends $h{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get _optionPath(){return"stripLines"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-strip-line"]],inputs:{cssClass:"cssClass",end:"end",start:"start",title:"title"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Yh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),um=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Xh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),qh=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),dm=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Kd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_g=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),yn=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),_d=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Bs=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),vd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),xg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),bl=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Cd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ep=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),x_=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),wg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Nc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Hc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Sg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),pm=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Og=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),gm=(()=>{class L extends c.Fx{constructor(f,je){super(),this._createEventEmitters([{emit:"visualRangeChange"}]),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get aggregatedPointsPosition(){return this._getOption("aggregatedPointsPosition")}set aggregatedPointsPosition(f){this._setOption("aggregatedPointsPosition",f)}get allowDecimals(){return this._getOption("allowDecimals")}set allowDecimals(f){this._setOption("allowDecimals",f)}get autoBreaksEnabled(){return this._getOption("autoBreaksEnabled")}set autoBreaksEnabled(f){this._setOption("autoBreaksEnabled",f)}get axisDivisionFactor(){return this._getOption("axisDivisionFactor")}set axisDivisionFactor(f){this._setOption("axisDivisionFactor",f)}get breaks(){return this._getOption("breaks")}set breaks(f){this._setOption("breaks",f)}get breakStyle(){return this._getOption("breakStyle")}set breakStyle(f){this._setOption("breakStyle",f)}get categories(){return this._getOption("categories")}set categories(f){this._setOption("categories",f)}get color(){return this._getOption("color")}set color(f){this._setOption("color",f)}get constantLines(){return this._getOption("constantLines")}set constantLines(f){this._setOption("constantLines",f)}get constantLineStyle(){return this._getOption("constantLineStyle")}set constantLineStyle(f){this._setOption("constantLineStyle",f)}get customPosition(){return this._getOption("customPosition")}set customPosition(f){this._setOption("customPosition",f)}get discreteAxisDivisionMode(){return this._getOption("discreteAxisDivisionMode")}set discreteAxisDivisionMode(f){this._setOption("discreteAxisDivisionMode",f)}get endOnTick(){return this._getOption("endOnTick")}set endOnTick(f){this._setOption("endOnTick",f)}get grid(){return this._getOption("grid")}set grid(f){this._setOption("grid",f)}get inverted(){return this._getOption("inverted")}set inverted(f){this._setOption("inverted",f)}get label(){return this._getOption("label")}set label(f){this._setOption("label",f)}get linearThreshold(){return this._getOption("linearThreshold")}set linearThreshold(f){this._setOption("linearThreshold",f)}get logarithmBase(){return this._getOption("logarithmBase")}set logarithmBase(f){this._setOption("logarithmBase",f)}get maxAutoBreakCount(){return this._getOption("maxAutoBreakCount")}set maxAutoBreakCount(f){this._setOption("maxAutoBreakCount",f)}get maxValueMargin(){return this._getOption("maxValueMargin")}set maxValueMargin(f){this._setOption("maxValueMargin",f)}get minorGrid(){return this._getOption("minorGrid")}set minorGrid(f){this._setOption("minorGrid",f)}get minorTick(){return this._getOption("minorTick")}set minorTick(f){this._setOption("minorTick",f)}get minorTickCount(){return this._getOption("minorTickCount")}set minorTickCount(f){this._setOption("minorTickCount",f)}get minorTickInterval(){return this._getOption("minorTickInterval")}set minorTickInterval(f){this._setOption("minorTickInterval",f)}get minValueMargin(){return this._getOption("minValueMargin")}set minValueMargin(f){this._setOption("minValueMargin",f)}get minVisualRangeLength(){return this._getOption("minVisualRangeLength")}set minVisualRangeLength(f){this._setOption("minVisualRangeLength",f)}get multipleAxesSpacing(){return this._getOption("multipleAxesSpacing")}set multipleAxesSpacing(f){this._setOption("multipleAxesSpacing",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get offset(){return this._getOption("offset")}set offset(f){this._setOption("offset",f)}get opacity(){return this._getOption("opacity")}set opacity(f){this._setOption("opacity",f)}get pane(){return this._getOption("pane")}set pane(f){this._setOption("pane",f)}get placeholderSize(){return this._getOption("placeholderSize")}set placeholderSize(f){this._setOption("placeholderSize",f)}get position(){return this._getOption("position")}set position(f){this._setOption("position",f)}get showZero(){return this._getOption("showZero")}set showZero(f){this._setOption("showZero",f)}get strips(){return this._getOption("strips")}set strips(f){this._setOption("strips",f)}get stripStyle(){return this._getOption("stripStyle")}set stripStyle(f){this._setOption("stripStyle",f)}get synchronizedValue(){return this._getOption("synchronizedValue")}set synchronizedValue(f){this._setOption("synchronizedValue",f)}get tick(){return this._getOption("tick")}set tick(f){this._setOption("tick",f)}get tickInterval(){return this._getOption("tickInterval")}set tickInterval(f){this._setOption("tickInterval",f)}get title(){return this._getOption("title")}set title(f){this._setOption("title",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get valueMarginsEnabled(){return this._getOption("valueMarginsEnabled")}set valueMarginsEnabled(f){this._setOption("valueMarginsEnabled",f)}get valueType(){return this._getOption("valueType")}set valueType(f){this._setOption("valueType",f)}get visible(){return this._getOption("visible")}set visible(f){this._setOption("visible",f)}get visualRange(){return this._getOption("visualRange")}set visualRange(f){this._setOption("visualRange",f)}get visualRangeUpdateMode(){return this._getOption("visualRangeUpdateMode")}set visualRangeUpdateMode(f){this._setOption("visualRangeUpdateMode",f)}get wholeRange(){return this._getOption("wholeRange")}set wholeRange(f){this._setOption("wholeRange",f)}get width(){return this._getOption("width")}set width(f){this._setOption("width",f)}get _optionPath(){return"valueAxis"}get breaksChildren(){return this._getOption("breaks")}set breaksChildren(f){this.setChildren("breaks",f)}get constantLinesChildren(){return this._getOption("constantLines")}set constantLinesChildren(f){this.setChildren("constantLines",f)}get stripsChildren(){return this._getOption("strips")}set stripsChildren(f){this.setChildren("strips",f)}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-value-axis"]],contentQueries:function(f,je,di){if(1&f&&(o.Suo(di,z,4),o.Suo(di,U,4),o.Suo(di,Y,4)),2&f){let Mi;o.iGM(Mi=o.CRH())&&(je.breaksChildren=Mi),o.iGM(Mi=o.CRH())&&(je.constantLinesChildren=Mi),o.iGM(Mi=o.CRH())&&(je.stripsChildren=Mi)}},inputs:{aggregatedPointsPosition:"aggregatedPointsPosition",allowDecimals:"allowDecimals",autoBreaksEnabled:"autoBreaksEnabled",axisDivisionFactor:"axisDivisionFactor",breaks:"breaks",breakStyle:"breakStyle",categories:"categories",color:"color",constantLines:"constantLines",constantLineStyle:"constantLineStyle",customPosition:"customPosition",discreteAxisDivisionMode:"discreteAxisDivisionMode",endOnTick:"endOnTick",grid:"grid",inverted:"inverted",label:"label",linearThreshold:"linearThreshold",logarithmBase:"logarithmBase",maxAutoBreakCount:"maxAutoBreakCount",maxValueMargin:"maxValueMargin",minorGrid:"minorGrid",minorTick:"minorTick",minorTickCount:"minorTickCount",minorTickInterval:"minorTickInterval",minValueMargin:"minValueMargin",minVisualRangeLength:"minVisualRangeLength",multipleAxesSpacing:"multipleAxesSpacing",name:"name",offset:"offset",opacity:"opacity",pane:"pane",placeholderSize:"placeholderSize",position:"position",showZero:"showZero",strips:"strips",stripStyle:"stripStyle",synchronizedValue:"synchronizedValue",tick:"tick",tickInterval:"tickInterval",title:"title",type:"type",valueMarginsEnabled:"valueMarginsEnabled",valueType:"valueType",visible:"visible",visualRange:"visualRange",visualRangeUpdateMode:"visualRangeUpdateMode",wholeRange:"wholeRange",width:"width"},outputs:{visualRangeChange:"visualRangeChange"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),fm=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Gd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Dg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Tg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),zc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),jd=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),rp=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),kl=(()=>{class L extends c.Fx{constructor(f,je){super(),f.setNestedOption(this),je.setHost(this,this._fullOptionPath.bind(this))}get agendaDuration(){return this._getOption("agendaDuration")}set agendaDuration(f){this._setOption("agendaDuration",f)}get allDayPanelMode(){return this._getOption("allDayPanelMode")}set allDayPanelMode(f){this._setOption("allDayPanelMode",f)}get appointmentCollectorTemplate(){return this._getOption("appointmentCollectorTemplate")}set appointmentCollectorTemplate(f){this._setOption("appointmentCollectorTemplate",f)}get appointmentTemplate(){return this._getOption("appointmentTemplate")}set appointmentTemplate(f){this._setOption("appointmentTemplate",f)}get appointmentTooltipTemplate(){return this._getOption("appointmentTooltipTemplate")}set appointmentTooltipTemplate(f){this._setOption("appointmentTooltipTemplate",f)}get cellDuration(){return this._getOption("cellDuration")}set cellDuration(f){this._setOption("cellDuration",f)}get dataCellTemplate(){return this._getOption("dataCellTemplate")}set dataCellTemplate(f){this._setOption("dataCellTemplate",f)}get dateCellTemplate(){return this._getOption("dateCellTemplate")}set dateCellTemplate(f){this._setOption("dateCellTemplate",f)}get dropDownAppointmentTemplate(){return this._getOption("dropDownAppointmentTemplate")}set dropDownAppointmentTemplate(f){this._setOption("dropDownAppointmentTemplate",f)}get endDayHour(){return this._getOption("endDayHour")}set endDayHour(f){this._setOption("endDayHour",f)}get firstDayOfWeek(){return this._getOption("firstDayOfWeek")}set firstDayOfWeek(f){this._setOption("firstDayOfWeek",f)}get groupByDate(){return this._getOption("groupByDate")}set groupByDate(f){this._setOption("groupByDate",f)}get groupOrientation(){return this._getOption("groupOrientation")}set groupOrientation(f){this._setOption("groupOrientation",f)}get groups(){return this._getOption("groups")}set groups(f){this._setOption("groups",f)}get intervalCount(){return this._getOption("intervalCount")}set intervalCount(f){this._setOption("intervalCount",f)}get maxAppointmentsPerCell(){return this._getOption("maxAppointmentsPerCell")}set maxAppointmentsPerCell(f){this._setOption("maxAppointmentsPerCell",f)}get name(){return this._getOption("name")}set name(f){this._setOption("name",f)}get resourceCellTemplate(){return this._getOption("resourceCellTemplate")}set resourceCellTemplate(f){this._setOption("resourceCellTemplate",f)}get scrolling(){return this._getOption("scrolling")}set scrolling(f){this._setOption("scrolling",f)}get startDate(){return this._getOption("startDate")}set startDate(f){this._setOption("startDate",f)}get startDayHour(){return this._getOption("startDayHour")}set startDayHour(f){this._setOption("startDayHour",f)}get timeCellTemplate(){return this._getOption("timeCellTemplate")}set timeCellTemplate(f){this._setOption("timeCellTemplate",f)}get type(){return this._getOption("type")}set type(f){this._setOption("type",f)}get _optionPath(){return"views"}ngOnDestroy(){this._deleteRemovedOptions(this._fullOptionPath())}}return L.\u0275fac=function(f){return new(f||L)(o.Y36(c.al,5),o.Y36(c.al,1))},L.\u0275cmp=o.Xpm({type:L,selectors:[["dxi-view"]],inputs:{agendaDuration:"agendaDuration",allDayPanelMode:"allDayPanelMode",appointmentCollectorTemplate:"appointmentCollectorTemplate",appointmentTemplate:"appointmentTemplate",appointmentTooltipTemplate:"appointmentTooltipTemplate",cellDuration:"cellDuration",dataCellTemplate:"dataCellTemplate",dateCellTemplate:"dateCellTemplate",dropDownAppointmentTemplate:"dropDownAppointmentTemplate",endDayHour:"endDayHour",firstDayOfWeek:"firstDayOfWeek",groupByDate:"groupByDate",groupOrientation:"groupOrientation",groups:"groups",intervalCount:"intervalCount",maxAppointmentsPerCell:"maxAppointmentsPerCell",name:"name",resourceCellTemplate:"resourceCellTemplate",scrolling:"scrolling",startDate:"startDate",startDayHour:"startDayHour",timeCellTemplate:"timeCellTemplate",type:"type"},features:[o._Bn([c.al]),o.qOj],decls:0,vars:0,template:function(f,je){},styles:[""]}),L})(),Rl=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Mg=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),ap=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),w_=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})(),Zc=(()=>{class L{}return L.\u0275fac=function(f){return new(f||L)},L.\u0275mod=o.oAB({type:L}),L.\u0275inj=o.cJS({}),L})()},1740:(Rn,he,u)=>{"use strict";u.d(he,{C:()=>s,x:()=>p});var o=u(5998),c=u(4370),I=u(9609),C=u(1759),g=u(8208);const a=["*"];let p=(()=>{class l extends C.Ay{constructor(h,v,x,b,y,E,S,O){super(h,v,x,b,S,O),this._watcherHelper=b,this._idh=y,this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"hidden",emit:"onHidden"},{subscribe:"hiding",emit:"onHiding"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"resize",emit:"onResize"},{subscribe:"resizeEnd",emit:"onResizeEnd"},{subscribe:"resizeStart",emit:"onResizeStart"},{subscribe:"showing",emit:"onShowing"},{subscribe:"shown",emit:"onShown"},{subscribe:"titleRendered",emit:"onTitleRendered"},{emit:"accessKeyChange"},{emit:"animationChange"},{emit:"closeOnOutsideClickChange"},{emit:"containerChange"},{emit:"contentTemplateChange"},{emit:"copyRootClassesToWrapperChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"dragAndResizeAreaChange"},{emit:"dragEnabledChange"},{emit:"dragOutsideBoundaryChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"heightChange"},{emit:"hideOnOutsideClickChange"},{emit:"hideOnParentScrollChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxHeightChange"},{emit:"maxWidthChange"},{emit:"minHeightChange"},{emit:"minWidthChange"},{emit:"positionChange"},{emit:"resizeEnabledChange"},{emit:"restorePositionChange"},{emit:"rtlEnabledChange"},{emit:"shadingChange"},{emit:"shadingColorChange"},{emit:"showCloseButtonChange"},{emit:"showTitleChange"},{emit:"tabIndexChange"},{emit:"titleChange"},{emit:"titleTemplateChange"},{emit:"toolbarItemsChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapperAttrChange"}]),this._idh.setHost(this),E.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(h){this._setOption("accessKey",h)}get animation(){return this._getOption("animation")}set animation(h){this._setOption("animation",h)}get closeOnOutsideClick(){return this._getOption("closeOnOutsideClick")}set closeOnOutsideClick(h){this._setOption("closeOnOutsideClick",h)}get container(){return this._getOption("container")}set container(h){this._setOption("container",h)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(h){this._setOption("contentTemplate",h)}get copyRootClassesToWrapper(){return this._getOption("copyRootClassesToWrapper")}set copyRootClassesToWrapper(h){this._setOption("copyRootClassesToWrapper",h)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(h){this._setOption("deferRendering",h)}get disabled(){return this._getOption("disabled")}set disabled(h){this._setOption("disabled",h)}get dragAndResizeArea(){return this._getOption("dragAndResizeArea")}set dragAndResizeArea(h){this._setOption("dragAndResizeArea",h)}get dragEnabled(){return this._getOption("dragEnabled")}set dragEnabled(h){this._setOption("dragEnabled",h)}get dragOutsideBoundary(){return this._getOption("dragOutsideBoundary")}set dragOutsideBoundary(h){this._setOption("dragOutsideBoundary",h)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(h){this._setOption("elementAttr",h)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(h){this._setOption("focusStateEnabled",h)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(h){this._setOption("fullScreen",h)}get height(){return this._getOption("height")}set height(h){this._setOption("height",h)}get hideOnOutsideClick(){return this._getOption("hideOnOutsideClick")}set hideOnOutsideClick(h){this._setOption("hideOnOutsideClick",h)}get hideOnParentScroll(){return this._getOption("hideOnParentScroll")}set hideOnParentScroll(h){this._setOption("hideOnParentScroll",h)}get hint(){return this._getOption("hint")}set hint(h){this._setOption("hint",h)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(h){this._setOption("hoverStateEnabled",h)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(h){this._setOption("maxHeight",h)}get maxWidth(){return this._getOption("maxWidth")}set maxWidth(h){this._setOption("maxWidth",h)}get minHeight(){return this._getOption("minHeight")}set minHeight(h){this._setOption("minHeight",h)}get minWidth(){return this._getOption("minWidth")}set minWidth(h){this._setOption("minWidth",h)}get position(){return this._getOption("position")}set position(h){this._setOption("position",h)}get resizeEnabled(){return this._getOption("resizeEnabled")}set resizeEnabled(h){this._setOption("resizeEnabled",h)}get restorePosition(){return this._getOption("restorePosition")}set restorePosition(h){this._setOption("restorePosition",h)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(h){this._setOption("rtlEnabled",h)}get shading(){return this._getOption("shading")}set shading(h){this._setOption("shading",h)}get shadingColor(){return this._getOption("shadingColor")}set shadingColor(h){this._setOption("shadingColor",h)}get showCloseButton(){return this._getOption("showCloseButton")}set showCloseButton(h){this._setOption("showCloseButton",h)}get showTitle(){return this._getOption("showTitle")}set showTitle(h){this._setOption("showTitle",h)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(h){this._setOption("tabIndex",h)}get title(){return this._getOption("title")}set title(h){this._setOption("title",h)}get titleTemplate(){return this._getOption("titleTemplate")}set titleTemplate(h){this._setOption("titleTemplate",h)}get toolbarItems(){return this._getOption("toolbarItems")}set toolbarItems(h){this._setOption("toolbarItems",h)}get visible(){return this._getOption("visible")}set visible(h){this._setOption("visible",h)}get width(){return this._getOption("width")}set width(h){this._setOption("width",h)}get wrapperAttr(){return this._getOption("wrapperAttr")}set wrapperAttr(h){this._setOption("wrapperAttr",h)}get toolbarItemsChildren(){return this._getOption("toolbarItems")}set toolbarItemsChildren(h){this.setChildren("toolbarItems",h)}_createInstance(h,v){return new I.Z(h,v)}ngOnDestroy(){this._destroyWidget()}ngOnChanges(h){super.ngOnChanges(h),this.setupChanges("toolbarItems",h)}setupChanges(h,v){h in this._optionsToUpdate||this._idh.setup(h,v)}ngDoCheck(){this._idh.doCheck("toolbarItems"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(h,v){let x=this._idh.setupSingle(h,v),b=null!==this._idh.getChanges(h,v);(x||b)&&super._setOption(h,v)}}return l.\u0275fac=function(h){return new(h||l)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},l.\u0275cmp=c.Xpm({type:l,selectors:[["dx-popup"]],contentQueries:function(h,v,x){if(1&h&&c.Suo(x,g.QjJ,4),2&h){let b;c.iGM(b=c.CRH())&&(v.toolbarItemsChildren=b)}},inputs:{accessKey:"accessKey",animation:"animation",closeOnOutsideClick:"closeOnOutsideClick",container:"container",contentTemplate:"contentTemplate",copyRootClassesToWrapper:"copyRootClassesToWrapper",deferRendering:"deferRendering",disabled:"disabled",dragAndResizeArea:"dragAndResizeArea",dragEnabled:"dragEnabled",dragOutsideBoundary:"dragOutsideBoundary",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",height:"height",hideOnOutsideClick:"hideOnOutsideClick",hideOnParentScroll:"hideOnParentScroll",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",position:"position",resizeEnabled:"resizeEnabled",restorePosition:"restorePosition",rtlEnabled:"rtlEnabled",shading:"shading",shadingColor:"shadingColor",showCloseButton:"showCloseButton",showTitle:"showTitle",tabIndex:"tabIndex",title:"title",titleTemplate:"titleTemplate",toolbarItems:"toolbarItems",visible:"visible",width:"width",wrapperAttr:"wrapperAttr"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onHidden:"onHidden",onHiding:"onHiding",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onResize:"onResize",onResizeEnd:"onResizeEnd",onResizeStart:"onResizeStart",onShowing:"onShowing",onShown:"onShown",onTitleRendered:"onTitleRendered",accessKeyChange:"accessKeyChange",animationChange:"animationChange",closeOnOutsideClickChange:"closeOnOutsideClickChange",containerChange:"containerChange",contentTemplateChange:"contentTemplateChange",copyRootClassesToWrapperChange:"copyRootClassesToWrapperChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",dragAndResizeAreaChange:"dragAndResizeAreaChange",dragEnabledChange:"dragEnabledChange",dragOutsideBoundaryChange:"dragOutsideBoundaryChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",heightChange:"heightChange",hideOnOutsideClickChange:"hideOnOutsideClickChange",hideOnParentScrollChange:"hideOnParentScrollChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxHeightChange:"maxHeightChange",maxWidthChange:"maxWidthChange",minHeightChange:"minHeightChange",minWidthChange:"minWidthChange",positionChange:"positionChange",resizeEnabledChange:"resizeEnabledChange",restorePositionChange:"restorePositionChange",rtlEnabledChange:"rtlEnabledChange",shadingChange:"shadingChange",shadingColorChange:"shadingColorChange",showCloseButtonChange:"showCloseButtonChange",showTitleChange:"showTitleChange",tabIndexChange:"tabIndexChange",titleChange:"titleChange",titleTemplateChange:"titleTemplateChange",toolbarItemsChange:"toolbarItemsChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapperAttrChange:"wrapperAttrChange"},features:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],ngContentSelectors:a,decls:1,vars:0,template:function(h,v){1&h&&(c.F$t(),c.Hsn(0))},encapsulation:2}),l})(),s=(()=>{class l{}return l.\u0275fac=function(h){return new(h||l)},l.\u0275mod=c.oAB({type:l}),l.\u0275inj=c.cJS({imports:[[g.IOm,g.kOw,g.weU,g.D_l,g.JxK,g.zZW,g.ynY,g.lgR,g.sni,g.waX,g.pxS,g.pGy,C.Lz,C.ie,o.Cu],g.IOm,g.kOw,g.weU,g.D_l,g.JxK,g.zZW,g.ynY,g.lgR,g.sni,g.waX,g.pxS,g.pGy,C.ie]}),l})()},944:(Rn,he,u)=>{"use strict";u.d(he,{N:()=>a,r:()=>p});var o=u(5998),c=u(4370),I=u(3862),C=u(1759);const g=["*"];let a=(()=>{class s extends C.Ay{constructor(d,h,v,x,b,y,E){super(d,h,v,x,y,E),this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pullDown",emit:"onPullDown"},{subscribe:"reachBottom",emit:"onReachBottom"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"updated",emit:"onUpdated"},{emit:"bounceEnabledChange"},{emit:"directionChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"reachBottomTextChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"scrollByContentChange"},{emit:"scrollByThumbChange"},{emit:"showScrollbarChange"},{emit:"useNativeChange"},{emit:"widthChange"}]),b.setHost(this)}get bounceEnabled(){return this._getOption("bounceEnabled")}set bounceEnabled(d){this._setOption("bounceEnabled",d)}get direction(){return this._getOption("direction")}set direction(d){this._setOption("direction",d)}get disabled(){return this._getOption("disabled")}set disabled(d){this._setOption("disabled",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(d){this._setOption("pulledDownText",d)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(d){this._setOption("pullingDownText",d)}get reachBottomText(){return this._getOption("reachBottomText")}set reachBottomText(d){this._setOption("reachBottomText",d)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(d){this._setOption("refreshingText",d)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(d){this._setOption("rtlEnabled",d)}get scrollByContent(){return this._getOption("scrollByContent")}set scrollByContent(d){this._setOption("scrollByContent",d)}get scrollByThumb(){return this._getOption("scrollByThumb")}set scrollByThumb(d){this._setOption("scrollByThumb",d)}get showScrollbar(){return this._getOption("showScrollbar")}set showScrollbar(d){this._setOption("showScrollbar",d)}get useNative(){return this._getOption("useNative")}set useNative(d){this._setOption("useNative",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}_createInstance(d,h){return new I.Z(d,h)}ngOnDestroy(){this._destroyWidget()}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-scroll-view"]],inputs:{bounceEnabled:"bounceEnabled",direction:"direction",disabled:"disabled",elementAttr:"elementAttr",height:"height",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",reachBottomText:"reachBottomText",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",scrollByContent:"scrollByContent",scrollByThumb:"scrollByThumb",showScrollbar:"showScrollbar",useNative:"useNative",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onPullDown:"onPullDown",onReachBottom:"onReachBottom",onScroll:"onScroll",onUpdated:"onUpdated",bounceEnabledChange:"bounceEnabledChange",directionChange:"directionChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",reachBottomTextChange:"reachBottomTextChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",scrollByContentChange:"scrollByContentChange",scrollByThumbChange:"scrollByThumbChange",showScrollbarChange:"showScrollbarChange",useNativeChange:"useNativeChange",widthChange:"widthChange"},features:[c._Bn([C._5,C._h,C.al]),c.qOj],ngContentSelectors:g,decls:1,vars:0,template:function(d,h){1&d&&(c.F$t(),c.Hsn(0))},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[C.Lz,C.ie,o.Cu],C.ie]}),s})()},6229:(Rn,he,u)=>{"use strict";u.d(he,{D:()=>l,_:()=>s});var o=u(5998),c=u(4370),I=u(5079),C=u(8942),g=u(1759),a=u(8208);const p={provide:C.JU,useExisting:(0,c.Gpc)(()=>s),multi:!0};let s=(()=>{class d extends g.Ay{constructor(v,x,b,y,E,S,O,w){super(v,x,b,y,O,w),this._watcherHelper=y,this._idh=E,this.touched=T=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"customItemCreating",emit:"onCustomItemCreating"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"customItemCreateEventChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showDropDownButtonChange"},{emit:"showSelectionControlsChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),S.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(v){this._setOption("acceptCustomValue",v)}get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get buttons(){return this._getOption("buttons")}set buttons(v){this._setOption("buttons",v)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(v){this._setOption("customItemCreateEvent",v)}get dataSource(){return this._getOption("dataSource")}set dataSource(v){this._setOption("dataSource",v)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(v){this._setOption("deferRendering",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(v){this._setOption("displayExpr",v)}get displayValue(){return this._getOption("displayValue")}set displayValue(v){this._setOption("displayValue",v)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(v){this._setOption("dropDownButtonTemplate",v)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(v){this._setOption("dropDownOptions",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(v){this._setOption("fieldTemplate",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get grouped(){return this._getOption("grouped")}set grouped(v){this._setOption("grouped",v)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(v){this._setOption("groupTemplate",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(v){this._setOption("inputAttr",v)}get isValid(){return this._getOption("isValid")}set isValid(v){this._setOption("isValid",v)}get items(){return this._getOption("items")}set items(v){this._setOption("items",v)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(v){this._setOption("itemTemplate",v)}get label(){return this._getOption("label")}set label(v){this._setOption("label",v)}get labelMode(){return this._getOption("labelMode")}set labelMode(v){this._setOption("labelMode",v)}get maxLength(){return this._getOption("maxLength")}set maxLength(v){this._setOption("maxLength",v)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(v){this._setOption("minSearchLength",v)}get name(){return this._getOption("name")}set name(v){this._setOption("name",v)}get noDataText(){return this._getOption("noDataText")}set noDataText(v){this._setOption("noDataText",v)}get opened(){return this._getOption("opened")}set opened(v){this._setOption("opened",v)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(v){this._setOption("openOnFieldClick",v)}get placeholder(){return this._getOption("placeholder")}set placeholder(v){this._setOption("placeholder",v)}get readOnly(){return this._getOption("readOnly")}set readOnly(v){this._setOption("readOnly",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(v){this._setOption("searchEnabled",v)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(v){this._setOption("searchExpr",v)}get searchMode(){return this._getOption("searchMode")}set searchMode(v){this._setOption("searchMode",v)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(v){this._setOption("searchTimeout",v)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(v){this._setOption("selectedItem",v)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(v){this._setOption("showClearButton",v)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(v){this._setOption("showDataBeforeSearch",v)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(v){this._setOption("showDropDownButton",v)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(v){this._setOption("showSelectionControls",v)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(v){this._setOption("spellcheck",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get text(){return this._getOption("text")}set text(v){this._setOption("text",v)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(v){this._setOption("useItemTextAsTitle",v)}get validationError(){return this._getOption("validationError")}set validationError(v){this._setOption("validationError",v)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(v){this._setOption("validationErrors",v)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(v){this._setOption("validationMessageMode",v)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(v){this._setOption("validationMessagePosition",v)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(v){this._setOption("validationStatus",v)}get value(){return this._getOption("value")}set value(v){this._setOption("value",v)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(v){this._setOption("valueChangeEvent",v)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(v){this._setOption("valueExpr",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(v){this._setOption("wrapItemText",v)}change(v){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(v){this.setChildren("buttons",v)}get itemsChildren(){return this._getOption("items")}set itemsChildren(v){this.setChildren("items",v)}_createInstance(v,x){return new I.Z(v,x)}writeValue(v){this.eventHelper.lockedValueChangeEvent=!0,this.value=v,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(v){this.disabled=v}registerOnChange(v){this.change=v}registerOnTouched(v){this.touched=v}_createWidget(v){super._createWidget(v),this.instance.on("focusOut",x=>{this.eventHelper.fireNgEvent("onBlur",[x])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("buttons",v),this.setupChanges("dataSource",v),this.setupChanges("items",v),this.setupChanges("searchExpr",v),this.setupChanges("validationErrors",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),y=null!==this._idh.getChanges(v,x);(b||y)&&super._setOption(v,x)}}return d.\u0275fac=function(v){return new(v||d)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g._5),c.Y36(g._h),c.Y36(g.i9),c.Y36(g.al),c.Y36(o.ki),c.Y36(c.Lbi))},d.\u0275cmp=c.Xpm({type:d,selectors:[["dx-select-box"]],contentQueries:function(v,x,b){if(1&v&&(c.Suo(b,a.k4o,4),c.Suo(b,a.ZT3,4)),2&v){let y;c.iGM(y=c.CRH())&&(x.buttonsChildren=y),c.iGM(y=c.CRH())&&(x.itemsChildren=y)}},hostBindings:function(v,x){1&v&&c.NdJ("valueChange",function(y){return x.change(y)})("onBlur",function(y){return x.touched(y)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",customItemCreateEvent:"customItemCreateEvent",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxLength:"maxLength",minSearchLength:"minSearchLength",name:"name",noDataText:"noDataText",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showDropDownButton:"showDropDownButton",showSelectionControls:"showSelectionControls",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCustomItemCreating:"onCustomItemCreating",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",customItemCreateEventChange:"customItemCreateEventChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showDropDownButtonChange:"showDropDownButtonChange",showSelectionControlsChange:"showSelectionControlsChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[c._Bn([g._5,g._h,p,g.al,g.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(v,x){},encapsulation:2}),d})(),l=(()=>{class d{}return d.\u0275fac=function(v){return new(v||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({imports:[[a.idP,a.UxI,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.Q8p,g.Lz,g.ie,o.Cu],a.idP,a.UxI,a.ggs,a.IOm,a.kOw,a.weU,a.D_l,a.JxK,a.zZW,a.ynY,a.lgR,a.sni,a.waX,a.pxS,a.pGy,a.Q8p,g.ie]}),d})()},6812:(Rn,he,u)=>{"use strict";u.d(he,{I:()=>s,a:()=>l});var o=u(5998),c=u(4370),I=u(3447),C=u(8942),g=u(1759),a=u(8208);const p={provide:C.JU,useExisting:(0,c.Gpc)(()=>s),multi:!0};let s=(()=>{class d extends g.Ay{constructor(v,x,b,y,E,S,O,w){super(v,x,b,y,O,w),this._watcherHelper=y,this._idh=E,this.touched=T=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maskChange"},{emit:"maskCharChange"},{emit:"maskInvalidMessageChange"},{emit:"maskRulesChange"},{emit:"maxLengthChange"},{emit:"modeChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showMaskModeChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useMaskedValueChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),S.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(v){this._setOption("accessKey",v)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(v){this._setOption("activeStateEnabled",v)}get buttons(){return this._getOption("buttons")}set buttons(v){this._setOption("buttons",v)}get disabled(){return this._getOption("disabled")}set disabled(v){this._setOption("disabled",v)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(v){this._setOption("elementAttr",v)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(v){this._setOption("focusStateEnabled",v)}get height(){return this._getOption("height")}set height(v){this._setOption("height",v)}get hint(){return this._getOption("hint")}set hint(v){this._setOption("hint",v)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(v){this._setOption("hoverStateEnabled",v)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(v){this._setOption("inputAttr",v)}get isValid(){return this._getOption("isValid")}set isValid(v){this._setOption("isValid",v)}get label(){return this._getOption("label")}set label(v){this._setOption("label",v)}get labelMode(){return this._getOption("labelMode")}set labelMode(v){this._setOption("labelMode",v)}get mask(){return this._getOption("mask")}set mask(v){this._setOption("mask",v)}get maskChar(){return this._getOption("maskChar")}set maskChar(v){this._setOption("maskChar",v)}get maskInvalidMessage(){return this._getOption("maskInvalidMessage")}set maskInvalidMessage(v){this._setOption("maskInvalidMessage",v)}get maskRules(){return this._getOption("maskRules")}set maskRules(v){this._setOption("maskRules",v)}get maxLength(){return this._getOption("maxLength")}set maxLength(v){this._setOption("maxLength",v)}get mode(){return this._getOption("mode")}set mode(v){this._setOption("mode",v)}get name(){return this._getOption("name")}set name(v){this._setOption("name",v)}get placeholder(){return this._getOption("placeholder")}set placeholder(v){this._setOption("placeholder",v)}get readOnly(){return this._getOption("readOnly")}set readOnly(v){this._setOption("readOnly",v)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(v){this._setOption("rtlEnabled",v)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(v){this._setOption("showClearButton",v)}get showMaskMode(){return this._getOption("showMaskMode")}set showMaskMode(v){this._setOption("showMaskMode",v)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(v){this._setOption("spellcheck",v)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(v){this._setOption("stylingMode",v)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(v){this._setOption("tabIndex",v)}get text(){return this._getOption("text")}set text(v){this._setOption("text",v)}get useMaskedValue(){return this._getOption("useMaskedValue")}set useMaskedValue(v){this._setOption("useMaskedValue",v)}get validationError(){return this._getOption("validationError")}set validationError(v){this._setOption("validationError",v)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(v){this._setOption("validationErrors",v)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(v){this._setOption("validationMessageMode",v)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(v){this._setOption("validationMessagePosition",v)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(v){this._setOption("validationStatus",v)}get value(){return this._getOption("value")}set value(v){this._setOption("value",v)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(v){this._setOption("valueChangeEvent",v)}get visible(){return this._getOption("visible")}set visible(v){this._setOption("visible",v)}get width(){return this._getOption("width")}set width(v){this._setOption("width",v)}change(v){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(v){this.setChildren("buttons",v)}_createInstance(v,x){return new I.Z(v,x)}writeValue(v){this.eventHelper.lockedValueChangeEvent=!0,this.value=v,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(v){this.disabled=v}registerOnChange(v){this.change=v}registerOnTouched(v){this.touched=v}_createWidget(v){super._createWidget(v),this.instance.on("focusOut",x=>{this.eventHelper.fireNgEvent("onBlur",[x])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(v){super.ngOnChanges(v),this.setupChanges("buttons",v),this.setupChanges("validationErrors",v)}setupChanges(v,x){v in this._optionsToUpdate||this._idh.setup(v,x)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(v,x){let b=this._idh.setupSingle(v,x),y=null!==this._idh.getChanges(v,x);(b||y)&&super._setOption(v,x)}}return d.\u0275fac=function(v){return new(v||d)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(g._5),c.Y36(g._h),c.Y36(g.i9),c.Y36(g.al),c.Y36(o.ki),c.Y36(c.Lbi))},d.\u0275cmp=c.Xpm({type:d,selectors:[["dx-text-box"]],contentQueries:function(v,x,b){if(1&v&&c.Suo(b,a.k4o,4),2&v){let y;c.iGM(y=c.CRH())&&(x.buttonsChildren=y)}},hostBindings:function(v,x){1&v&&c.NdJ("valueChange",function(y){return x.change(y)})("onBlur",function(y){return x.touched(y)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",label:"label",labelMode:"labelMode",mask:"mask",maskChar:"maskChar",maskInvalidMessage:"maskInvalidMessage",maskRules:"maskRules",maxLength:"maxLength",mode:"mode",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showMaskMode:"showMaskMode",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useMaskedValue:"useMaskedValue",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maskChange:"maskChange",maskCharChange:"maskCharChange",maskInvalidMessageChange:"maskInvalidMessageChange",maskRulesChange:"maskRulesChange",maxLengthChange:"maxLengthChange",modeChange:"modeChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showMaskModeChange:"showMaskModeChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useMaskedValueChange:"useMaskedValueChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[c._Bn([g._5,g._h,p,g.al,g.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(v,x){},encapsulation:2}),d})(),l=(()=>{class d{}return d.\u0275fac=function(v){return new(v||d)},d.\u0275mod=c.oAB({type:d}),d.\u0275inj=c.cJS({imports:[[a.idP,a.UxI,g.Lz,g.ie,o.Cu],a.idP,a.UxI,g.ie]}),d})()},7773:(Rn,he,u)=>{"use strict";u.d(he,{B:()=>p,S:()=>a});var o=u(5998),c=u(4370),I=u(9109),C=u(1759),g=u(8208);let a=(()=>{class s extends C.VB{constructor(d,h,v,x,b,y,E,S,O){super(d,h,v,x,S,O),this._watcherHelper=x,this._idh=b,this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"validated",emit:"onValidated"},{emit:"adapterChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"nameChange"},{emit:"validationGroupChange"},{emit:"validationRulesChange"},{emit:"widthChange"}]),this.parentElement=this.getParentElement(y),this._idh.setHost(this),E.setHost(this)}get adapter(){return this._getOption("adapter")}set adapter(d){this._setOption("adapter",d)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(d){this._setOption("elementAttr",d)}get height(){return this._getOption("height")}set height(d){this._setOption("height",d)}get name(){return this._getOption("name")}set name(d){this._setOption("name",d)}get validationGroup(){return this._getOption("validationGroup")}set validationGroup(d){this._setOption("validationGroup",d)}get validationRules(){return this._getOption("validationRules")}set validationRules(d){this._setOption("validationRules",d)}get width(){return this._getOption("width")}set width(d){this._setOption("width",d)}get validationRulesChildren(){return this._getOption("validationRules")}set validationRulesChildren(d){this.setChildren("validationRules",d)}_createInstance(d,h){return new I.Z(this.parentElement?this.parentElement:d,h)}getParentElement(d){if(d)return d.getHost().element.nativeElement}ngOnDestroy(){this._destroyWidget()}ngOnChanges(d){super.ngOnChanges(d),this.setupChanges("validationRules",d)}setupChanges(d,h){d in this._optionsToUpdate||this._idh.setup(d,h)}ngDoCheck(){this._idh.doCheck("validationRules"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(d,h){let v=this._idh.setupSingle(d,h),x=null!==this._idh.getChanges(d,h);(v||x)&&super._setOption(d,h)}}return s.\u0275fac=function(d){return new(d||s)(c.Y36(c.SBq),c.Y36(c.R0b),c.Y36(C._5),c.Y36(C._h),c.Y36(C.i9),c.Y36(C.al,13),c.Y36(C.al),c.Y36(o.ki),c.Y36(c.Lbi))},s.\u0275cmp=c.Xpm({type:s,selectors:[["dx-validator"]],contentQueries:function(d,h,v){if(1&d&&c.Suo(v,g.vrV,4),2&d){let x;c.iGM(x=c.CRH())&&(h.validationRulesChildren=x)}},inputs:{adapter:"adapter",elementAttr:"elementAttr",height:"height",name:"name",validationGroup:"validationGroup",validationRules:"validationRules",width:"width"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValidated:"onValidated",adapterChange:"adapterChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",nameChange:"nameChange",validationGroupChange:"validationGroupChange",validationRulesChange:"validationRulesChange",widthChange:"widthChange"},features:[c._Bn([C._5,C._h,C.al,C.i9]),c.qOj,c.TTD],decls:0,vars:0,template:function(d,h){},encapsulation:2}),s})(),p=(()=>{class s{}return s.\u0275fac=function(d){return new(d||s)},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[[g.Vp2,g.$D5,C.Lz,C.ie,o.Cu],g.Vp2,g.$D5,C.ie]}),s})()},3575:(Rn,he,u)=>{"use strict";u.d(he,{NDt:()=>Ame});var o={};u.r(o),u.d(o,{circular:()=>Nm,circularSpider:()=>yE,linear:()=>nI,linearSpider:()=>iI});var c={};u.r(c),u.d(c,{donut:()=>WM,doughnut:()=>zM,pie:()=>ob});var I={};u.r(I),u.d(I,{candlestick:()=>_O,stock:()=>mO});var C={};u.r(C),u.d(C,{ChartTracker:()=>Yr,PieTracker:()=>ho});var g=u(1759),a=u(4370),p=u(5998),s=u(1805),l=u(9904),d=u(913),h=u(3553),v=u(227),x=u(2941),b=u(9897),y=u(5873),E=u(7674),S=u(6881),O=u(2718),w=u(1828),T=u(8506),k=u(8225),R=u(5286),P=u(4270),B=u(4823),W=u(4328),z=u(2722),K="dx-accordion-item",Y="dx-accordion-item-opened",J="dx-accordion-item-closed",j="dx-accordion-item-title",ee="dx-accordion-item-body",Z=R.Z.inherit({_activeStateUnit:"."+K,_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,z.x2)()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var n=this.$element();n.addClass("dx-accordion"),this._$container=(0,l.Z)("<div>").addClass("dx-accordion-wrapper"),n.append(this._$container)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new B.c(function(n,t){if((0,w.PO)(t)){var e=(0,W.H)(t.icon);e&&n.append(e),(0,w.$K)(t.title)&&!(0,w.PO)(t.title)&&n.append(b.Z.createTextNode(t.title))}else(0,w.$K)(t)&&n.text(String(t));n.wrapInner((0,l.Z)("<div>").addClass("dx-accordion-item-title-caption"))},["title","icon"],this.option("integrationOptions.watchMethod"))})},_initMarkup:function(){this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),(0,E.g0)(()=>{var n=this._getSelectedItemIndices();this._renderSelection(n,[])})},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return K},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find("."+j)},_itemContents:function(){return this._itemElements().find("."+ee)},_getItemData:function(n){return(0,l.Z)(n).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(n){n.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(n){(0,l.Z)(n.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(n,t){this._deferredItems.splice(t.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(n){var t=this.callBase((0,y.l)({},n,{contentClass:j,templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(t);var e=new P.BH;(0,w.$K)(this._deferredItems[n.index])?this._deferredItems[n.index]=e:this._deferredItems.push(e),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(n.index)>=0)&&e.resolve(),e.done(this.callBase.bind(this,(0,y.l)({},n,{contentClass:ee,container:(0,S.u)((0,l.Z)("<div>").appendTo((0,l.Z)(t).parent()))})))},_attachItemTitleClickAction:function(n){var t=(0,k.V4)(v.u,this.NAME);d.Z.off(n,t),d.Z.on(n,t,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(n){this._itemDXEventHandler(n,"onItemTitleClick")},_renderSelection:function(n,t){this._itemElements().addClass(J),this.setAria("hidden",!0,this._itemContents()),this._updateItems(n,t)},_updateSelection:function(n,t){this._updateItems(n,t),this._updateItemHeightsWrapper(!1)},_updateItems:function(n,t){var e=this._itemElements();O.S6(n,(i,r)=>{this._deferredItems[r].resolve();var m=e.eq(r).addClass(Y).removeClass(J);this.setAria("hidden",!1,m.find("."+ee))}),O.S6(t,(i,r)=>{var m=e.eq(r).removeClass(Y);this.setAria("hidden",!0,m.find("."+ee))})},_updateItemHeightsWrapper:function(n){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(n)}.bind(this)):this._updateItemHeights(n)},_updateItemHeights:function(n){var t=this,e=t._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),P.gx.apply(l.Z,[].slice.call(this._itemElements()).map(function(r){return t._updateItemHeight((0,l.Z)(r),i,n)})).done(function(){e&&e.resolveWith(t)})},_updateItemHeight:function(n,t,e){var i=n.children("."+j);h.Z.isAnimating(n)&&h.Z.stop(n);var m,r=(0,s.zp)(n);return n.hasClass(Y)?(m=t+(0,s.zp)(i))||((0,s.QQ)(n,"auto"),m=(0,s.zp)(n)):m=(0,s.zp)(i),this._animateItem(n,r,m,e,!!t)},_animateItem:function(n,t,e,i,r){var m;return i||t===e?(n.css("height",e),m=(new P.BH).resolve()):m=h.Z.animate(n,{type:"custom",from:{height:t},to:{height:e},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),m.done(function(){n.hasClass(Y)&&!r&&n.css("height",""),n.not("."+Y).addClass(J)})},_splitFreeSpace:function(n){return n&&n/this.option("selectedItems").length},_calculateFreeSpace:function(){var n=this.option("height");if(void 0!==n&&"auto"!==n){var t=this._itemTitles(),e=0;return O.S6(t,function(i,r){e+=(0,s.zp)(r)}),(0,s.Cr)(this.$element())-e}},_visibilityChanged:function(n){n&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_tryParseItemPropertyName:function(n){var t=n.match(/.*\.(.*)/);if((0,w.$K)(t)&&t.length>=1)return t[1]},_optionChanged:function(n){switch(n.name){case"items":this.callBase(n),"title"===this._tryParseItemPropertyName(n.fullName)&&this._renderSelection(this._getSelectedItemIndices(),[]),"visible"===this._tryParseItemPropertyName(n.fullName)&&this._updateItemHeightsWrapper(!0),!0===this.option("repaintChangesOnly")&&"items"===n.fullName&&(this._updateItemHeightsWrapper(!0),this._renderSelection(this._getSelectedItemIndices(),[]));break;case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",n.value?"multiple":"single");break;default:this.callBase(n)}},expandItem:function(n){return this._deferredAnimate=new P.BH,this.selectItem(n),this._deferredAnimate.promise()},collapseItem:function(n){return this._deferredAnimate=new P.BH,this.unselectItem(n),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,T.Z)("dxAccordion",Z);const X=Z;var M=u(8208);let fe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();var Te=u(32),Be=u(5287),_e=Be.Z.inherit({_supportedKeys:function(){var n=this._list?this._list.option("focusedElement"):null,t=this.callBase();return n=n&&(0,l.Z)(n),(0,y.l)({},t,{upArrow:function(e){return!(!(0,k.j1)(e)&&(e.preventDefault(),e.stopPropagation(),n&&!this._calcNextItem(-1))&&(this._clearFocusedItem(),1))},downArrow:function(e){return!(!(0,k.j1)(e)&&(e.preventDefault(),e.stopPropagation(),n&&!this._calcNextItem(1))&&(this._clearFocusedItem(),1))},enter:function(e){n||this.close();var i=this.option("opened");return i&&e.preventDefault(),i}})},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_displayGetterExpr:function(){return this.option("valueExpr")},_closeOutsideDropDownHandler:function(n){var{target:t}=n;return!(0,l.Z)(t).closest(this.$element()).length},_renderDimensions:function(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){return(0,y.l)(this.callBase(),{pageLoadMode:"none",onSelectionChanged:n=>{this._setSelectedItem(n.addedItems[0])}})},_listItemClickHandler:function(n){this._saveValueChangeEvent(n.event);var t=this._displayGetter(n.itemData);this.option("value",t),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:E.ZT,_searchCanceled:function(){this.callBase(),this.close()},_loadItem:function(n,t){var e=this._getItemFromPlain(n,t);return(new P.BH).resolve(e).promise()},_dataSourceOptions:function(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource:function(n){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(n),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(n){var t=this._input().val()||null;return this.callBase(n,t)},_optionChanged:function(n){switch(n.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(n);break;default:this.callBase(n)}},reset:function(){this.callBase(),this.close()}});(0,T.Z)("dxAutocomplete",_e);const ye=_e;var ne=u(8942);const ce={provide:ne.JU,useExisting:(0,a.Gpc)(()=>le),multi:!0};let le=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayValueChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxItemCountChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayValue(){return this._getOption("displayValue")}set displayValue(e){this._setOption("displayValue",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxItemCount(){return this._getOption("maxItemCount")}set maxItemCount(e){this._setOption("maxItemCount",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(e){this._setOption("selectedItem",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new ye(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-autocomplete"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.k4o,4),a.Suo(r,M.ZT3,4)),2&e){let m;a.iGM(m=a.CRH())&&(i.buttonsChildren=m),a.iGM(m=a.CRH())&&(i.itemsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayValue:"displayValue",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxItemCount:"maxItemCount",maxLength:"maxLength",minSearchLength:"minSearchLength",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayValueChange:"displayValueChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxItemCountChange:"maxItemCountChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,ce,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),pe=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.Lz,g.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.ie]}),n})();var Se=u(2834),re=u(3487),te=u(8204),ie=u(3058),{PI:ue,LN10:be,abs:Ae,log:Ne,floor:mt,ceil:tt,pow:Le,sqrt:gt,atan2:tn}=Math,$e=(Math,Math.max),ge=Math.cos,Ce=Math.sin,De=Math.round,Ye=te.Z.dateToMilliseconds,bt=1e10,yt=ue/180,kt=isNaN,gn=Number,St=function(n,t){return n?Ne(n)/Ne(t):NaN},Xe=function(n){return(0,re.zB)(St(n,10))},Vt=function(n,t){return Le(t,n)},lt=function(n){return(n%360+360)%360},dt=function(n){return 90-n},vt=function(n){return ue*n/180},Lt=function(n){var t=vt(n);return{cos:ge(t),sin:Ce(t)}},mn=function(n,t,e,i){var r=e-n,m=i-t;return gt(m*m+r*r)},xn=function(n){var e,t=Ae(n);return kt(t)?NaN:t>0?(t=Ne(t)/be,(e=tt(t))-t<1e-14?e:mt(t)):0},ki=function(n){return n.toExponential().split("e")[1]};function Vn(n,t){for(var m,e=0,i=n.length,r=[];e<i;)null!==(m=t(n[e],e))&&r.push(m),e++;return r}function En(n){return String(n).toLowerCase()}function Mn(n){return n&&(n.originalTop=n.top,n.originalBottom=n.bottom,n.originalLeft=n.left,n.originalRight=n.right),n}function ei(n){return-bt<n&&n<+bt?n:0}function Wn(n){var t=ei(mt(n.x)),e=ei(mt(n.y)),m={x:t,y:e,width:ei(tt(n.width+n.x))-t,height:ei(tt(n.height+n.y))-e};return m.isEmpty=!(m.x||m.y||m.width||m.height),m}function Ji(n,t,e){var i=gn(ge(e*yt).toFixed(3)),r=gn(Ce(e*yt).toFixed(3)),m=n.width/2,D=n.height/2,A=n.x+m,N=n.y+D,Q=Ae(m*i)+Ae(D*r),se=Ae(m*r)+Ae(D*i);return Wn({x:t[0]+(A-t[0])*i+(N-t[1])*r-Q,y:t[1]-(A-t[0])*r+(N-t[1])*i-se,width:2*Q,height:2*se})}var Qn=function(n,t){return void 0!==n?n:t},ti=function(n){var e,i,t={};for(e=0,i=n.length;e<i;++e)t[En(n[e])]=1;return function(r,m){var D=En(r);return t[D]?D:m}},ci=function(n){var t={};return(0,O.S6)(n||{},function(e,i){if(!/^(cursor)$/i.test(e))if("opacity"===e)i=null;else if("color"===e){if(e="fill","opacity"in n){var r=new ie.Z(i);i="rgba(".concat(r.r,",").concat(r.g,",").concat(r.b,",").concat(n.opacity,")")}}else e="font-"+e;t[e]=i}),t};function Wi(n,t,e,i){var r=i>0?i:0;e=(0,w.$K)(e)?e+t-90:0;var m=Lt(e);return{x:De(n.x+r*m.cos),y:De(n.y+r*m.sin)}}var qi=function(n,t,e){var i=mn(n.x,n.y,t,e),r=tn(e-n.y,t-n.x);return{phi:De(lt(180*r/ue)),r:De(i)}},nr=function(n,t){var D,N,Q,e=(0,w.mf)(n.customizeSeries)?n.customizeSeries:E.ZT,i=n.nameField,r={},m=[],A=0;for(N=(t=t||[]).length;A<N;A++)i in(Q=t[A])&&((D=r[Q[i]])||(D=r[Q[i]]={name:Q[i],nameFieldValue:Q[i]},m.push(D.name)));return Vn(m,function(se){var we=r[se];return(0,y.l)(we,e.call(null,we.name))})},xr=function(n,t,e){if(0===n.length)return{categories:[]};t=(0,w.$K)(t)?t:n[0],e=(0,w.$K)(e)?e:n[n.length-1];var D,i=Vn(n,se=>se?.valueOf()),r=i.indexOf(t.valueOf()),m=i.indexOf(e.valueOf()),A=!1;r<0&&(r=0),m<0&&(m=n.length-1),m<r&&(D=m,m=r,r=D,A=!0);var N=n.slice(r,m+1),Q=N.length-1;return{categories:N,start:N[A?Q:0],end:N[A?0:Q],inverted:A}};function vn(n){return!(n.unit%2)}var Si=function(n){var t={};return Vn(n,function(e){var i=t[e]?null:e;return t[e]=!0,i})},Yi=function(n,t,e){var i=n.x+n.width/2>=e.x,r=(i?n.x:n.x+n.width)-e.x,m=n.y-e.y,D=m+t,A=De(gt(r*r+m*m-D*D)),N=(i?+A:-A)||r;return{x:e.x+(i?N:N-n.width),y:n.y+t}};function dr(n,t){return{checkInterval:n.checkInterval||t.checkInterval,size:$e(n.size||0,t.size||0),percentStick:n.percentStick||t.percentStick,sizePointNormalState:$e(n.sizePointNormalState||0,t.sizePointNormalState||0)}}function kr(n){return Array.isArray(n)?{startValue:n[0],endValue:n[1]}:n||{}}function Nr(n,t){return t?n:[n.startValue,n.endValue]}function Gr(n,t){return"datetime"===n.dataType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(e.getTime()+r*i)}:"logarithmic"===n.axisType?function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,m=Sr(e,n.base)+r*i;return Wr(m,n.base)}:function(e,i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,m=e+r*i;return t&&m*e<=0?0:m}}function Qr(n,t,e,i){var r=(0,w.$K)(t.startValue),m=(0,w.$K)(t.endValue),D="discrete"!==n.axisType;i=i||e;var A=Gr(n,!1),N=r?t.startValue:i.min,Q=m?t.endValue:i.max,se=t.length,we=i.categories;if(D&&!(0,w.$K)(N)&&!(0,w.$K)(Q))return{startValue:N,endValue:Q};if((0,w.$K)(se))if(D)"datetime"===n.dataType&&!(0,w.kE)(se)&&(se=Ye(se)),m&&!r||!m&&!r?((0,w.$K)(e.max)&&(Q=Q>e.max?e.max:Q),N=A(Q,se,-1)):r&&!m&&((0,w.$K)(e.min)&&(N=N<e.min?e.min:N),Q=A(N,se));else if(se=parseInt(se),!isNaN(se)&&isFinite(se))if(se--,m||r){if(r&&!m)Q=xr(we,N,void 0).categories[se];else if(!r&&m){var Ue=xr(we,void 0,Q);N=Ue.categories[Ue.categories.length-1-se]}}else Q=we[we.length-1],N=we[we.length-1-se];return D&&((0,w.$K)(e.max)&&Q>e.max&&(Q=e.max),(0,w.$K)(e.min)&&N<e.min&&(N=e.min)),{startValue:N,endValue:Q}}function Sr(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!e)return St(n,t);if(0===n)return 0;var r=St(Ae(n),t)-(i-1);return r<0?0:(0,re.zB)((0,re.Xx)(n)*r,Number(Le(t,i-1).toFixed(Ae(i))))}function Wr(n,t){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!e)return Vt(n,t);if(0===n)return 0;var r=Vt(Ae(n)+(i-1),t);return r<0?0:(0,re.zB)((0,re.Xx)(n)*r,Number(Le(t,i).toFixed(Ae(i))))}function Ur(n,t){return Array.isArray(t)?n.length===t.length&&n.every((e,i)=>Rr(e)===Rr(t[i])):Rr(n.startValue)===Rr(t.startValue)&&Rr(n.endValue)===Rr(t.endValue)}function Rr(n){return n&&n.valueOf()}function mo(n,t,e){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}var Mr=Number;function po(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3]).setInverted(!1)}po.prototype={constructor:po,setDomain:function(n,t){return this._domain1=Mr(n),this._domain2=Mr(t),this._domainDelta=this._domain2-this._domain1,this},setCodomain:function(n,t){return this._codomain1=Mr(n),this._codomain2=Mr(t),this._codomainDelta=this._codomain2-this._codomain1,this},setInverted(n){this.inverted=n},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(n){var t=(Mr(n)-this._domain1)/this._domainDelta;return this.inverted&&(t=1-t),0<=t&&t<=1?this._codomain1+t*this._codomainDelta:NaN},adjust:function(n){var t=(Mr(n)-this._domain1)/this._domainDelta,e=NaN;return t<0?e=this._domain1:t>1?e=this._domain2:0<=t&&t<=1&&(e=Mr(n)),e}};var vi,mi=u(4514),ar=u(5031),Xr=Math.floor,lo=Math.ceil,_o=Array.isArray,It="material",jn={[It]:{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"},office:{simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},"harmony light":{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"},"soft pastel":{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"},pastel:{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"},bright:{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"},soft:{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"},ocean:{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"},vintage:{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"},violet:{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"},carmine:{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"},"dark moon":{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"},"soft blue":{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"},"dark violet":{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"},"green mist":{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}};function _i(n){if(void 0===n)return vi||It;n=En(n),vi=n in jn?n:void 0}function Tn(n,t){t=t||{},n=n||(void 0===vi?t.themeDefault:_i());var e,i=t.type;return _o(n)?n.slice(0):((0,w.HD)(n)&&(e=jn[En(n)]),e||(e=jn[_i()]),i?e[i].slice(0):e)}function Li(n){var t=0;this.next=function(){var e=n[t++];return t===n.length&&this.reset(),e},this.reset=function(){t=0}}function _n(n,t,e){var i={dispose(){this._extensionStrategy=null},getNextColor(D){return this._extensionStrategy.getColor(this._currentColor++,D)},generateColors(D,A){return this._extensionStrategy.generateColors(D,(A||{}).repeat)},reset(){return this._currentColor=0,this._extensionStrategy.reset(),this}},r=((t=t||{}).extensionMode||"").toLowerCase(),m=Tn(n,{type:t.type||"simpleSet",themeDefault:e});return i._extensionStrategy="alternate"===r?function sr(n,t){var e=t.useHighlight?50:0,i=new Li([0,e,-e]),r=[];function m(){var D=i.next();r=D?function Ze(n,t){var i,e=[],r=n.length;for(i=0;i<r;++i)e.push(Ct(n[i],t));return e}(n,D):n.slice(0)}return{getColor:function(D){var A=r[D%n.length];return D%n.length==n.length-1&&m(),A},generateColors:function(D){var A=[];D=D||t.count;for(var N=0;N<D;N++)A.push(this.getColor(N));return A},reset:function(){i.reset(),m()}}}(m,t):"extrapolate"===r?function gr(n,t){return{getColor:function(e,i){var A,N,Q,se,we,Re,Ue,st,Ot,Kt,r=n.length,m=Xr((i-1)/r+1),D=n[e%r];return m>1?(A=D,N=Xr(e/r),Q=m,st=(we=(se=new ie.Z(A).hsl).l/100)+.5*(Re=Q-1/Q),Kt=N-(Ot=(Q-1)/2),(Ue=we-.5*Re)<Math.min(.5,.9*we)&&(Ue=Math.min(.5,.9*we)),st>Math.max(.8,we+.15*(1-we))&&(st=Math.max(.8,we+.15*(1-we))),Kt<0?we-=(Ue-we)*Kt/Ot:we+=Kt/Ot*(st-we),se.l=100*we,ie.Z.prototype.fromHSL(se).toHex()):D},generateColors:function(e){var i=[];e=e||t.count;for(var r=0;r<e;r++)i.push(this.getColor(r,e));return i},reset:function(){}}}(m,t):function Qt(n,t){var e=n.length,i=[];function r(A,N,Q,se){for(var st,Ot,we=Math.floor(A/N),Re=A-N*we,Ue=Q;Ue<Q+A;)Ot=we,Re>0&&(Ot+=1,Re--),st=Ot>2?Math.floor(Ot/2):0,se.push(Ue+st),Ue+=Ot;return se.sort(function(Kt,sn){return Kt-sn})}function m(A,N,Q){for(var se=0,we=N=(Q+N)%Q;we<2*Q;we+=1){var Re=(Q+we)%Q;if(A[Re])return[A[Re],se];se++}}function D(A){if(A<=e)return n;var N=[],se=0,we=[];we=t.keepLastColorInEnd?r(A-2,e-2,1,[0,A-1]):r(A-1,e-1,1,[0]);for(var Re=0;Re<A;Re++)we.indexOf(Re)>-1&&(N[Re]=n[se++]);return function(Ue,st){for(var Ot=0;Ot<st;Ot++)if(!Ue[Ot]){var sn=Ue[Ot-1];if(!sn)continue;var wn=m(Ue,Ot,st),rn=new ie.Z(wn[0]);sn=new ie.Z(sn);for(var Ft=0;Ft<wn[1];Ft++,Ot++)Ue[Ot]=sn.blend(rn,(Ft+1)/(wn[1]+1)).toHex()}return Ue}(N,A)}return{getColor:function(A,N){return i.length!==(N=N||t.count||e)&&(i=D(N)),i[A%N]},generateColors:function(A,N){if(A=A||t.count||e,N&&A>e){for(var Q=D(e),se=0;se<A-e;se++)Q.push(Q[se]);return Q}return e>0?D(A).slice(0,A):[]},reset:function(){}}}(m,t),i.reset(),i}function Ct(n,t){var e=new ie.Z(n).alter(t),i=function ft(n){return.3*n.r+.59*n.g+.11*n.b}(e);return(i>200||i<55)&&(e=new ie.Z(n).alter(-t/2)),e.toHex()}var fn="#ffffff",Ke="#000000",ht="#d3d3d3",on="#303030",an="#ff0000",Nn="#232323",$n="#767676",ot="none",Bt="solid",nn="top",On="right",nt="bottom",Rt="left",pt="center",jt="inside",Un="outside";const oi=[{theme:{name:"generic.light",isDefault:!0,font:{color:$n,family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:fn,primaryTitleColor:Nn,secondaryTitleColor:$n,gridColor:ht,axisColor:$n,title:{backgroundColor:fn,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:fn,margin:10,font:{size:14,color:Nn,weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:fn},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:Ke,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:ht},tooltip:{enabled:!1,border:{width:1,color:ht,dashStyle:Bt,visible:!0},font:{color:Nn},color:fn,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:pt,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:Ke},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:nn,horizontalAlignment:On,position:Un,visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:Bt},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:fn,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:On,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:On,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:Ke,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:pt,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:Un,font:{color:fn},border:{visible:!1,width:1,color:ht,dashStyle:Bt},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:Rt}},resolveLabelOverlapping:ot},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",aggregatedPointsPosition:"betweenTicks",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:Ke,dashStyle:Bt,label:{visible:!0,position:jt}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:Bt,visible:!0},color:fn,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:Ke},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:jt}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:jt}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:an},hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:an},hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:Bt,label:{visible:!1,font:{color:fn,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:pt},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:nt,axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:pt},stripStyle:{label:{horizontalAlignment:pt,verticalAlignment:nn}},constantLineStyle:{label:{horizontalAlignment:On,verticalAlignment:nn}},constantLines:[]},verticalAxis:{position:Rt,axisDivisionFactor:40,label:{alignment:On},stripStyle:{label:{horizontalAlignment:Rt,verticalAlignment:pt}},constantLineStyle:{label:{horizontalAlignment:Rt,verticalAlignment:nn}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:ot,border:{color:ht,width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:Bt}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,synchronizeMultiAxes:!0,stickyHovering:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:fn},hoverStyle:{hatching:{direction:On,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:On,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:fn},hoverStyle:{hatching:{direction:On,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:On,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:fn},hoverStyle:{hatching:{direction:On,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:On,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:ot},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:pt,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:nn,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:ot,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:fn,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:pt,verticalAlignment:nt},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:Un,label:{indentFromTick:10}},rangeContainer:{orientation:Un},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:On,verticalOrientation:nt,label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:On,verticalOrientation:nt},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:On,verticalOrientation:nt},trianglemarker:{offset:10,horizontalOrientation:Rt,verticalOrientation:nn},textcloud:{offset:-1,horizontalOrientation:Rt,verticalOrientation:nn}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:pt,verticalAlignment:nt},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:Ke,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:pt,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:Ke,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:Ke,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:an,font:{color:fn,size:11}},sliderHandle:{width:1,color:Ke,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:fn,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:fn,color:"#d2d2d2",hoveredBorderColor:on,selectedBorderWidth:2,selectedBorderColor:on,label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:fn,size:8,selectedStep:2,backStep:18,backColor:fn,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:on,selectedBorderWidth:2,selectedBorderColor:on},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:on,selectedBorderWidth:2,selectedBorderColor:on},"layer:marker:image":{size:20},legend:{verticalAlignment:nt,horizontalAlignment:On,position:jt,backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:fn,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:Rt}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:$n,weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:fn,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:Bt,hoverStyle:{width:3,hatching:{direction:ot}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:nn,axisDivisionFactor:50,label:{alignment:pt}},verticalAxis:{position:nn,axisDivisionFactor:30,label:{alignment:On}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:fn},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:On},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:On},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:Rt}},tooltip:{customizeTooltip:function(n){return{text:n.item.argument+" "+n.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:On,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(n){return n.item.argument+" "+n.valueText},position:"columns",font:{color:fn},border:{visible:!1,width:1,color:ht,dashStyle:Bt},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:pt,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:Ke,weight:500},border:{visible:!1,width:2,color:fn},customizeText:function(n){return n.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:fn}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:fn,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:On},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:fn,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:On},border:{}}}}},baseThemeName:void 0},{theme:{name:"generic.light.compact"},baseThemeName:"generic.light"}];var xi="#f05b41",Ai="#fff",Ui="#333",ji="#8899a8",Qi="#707070",Tr="#dee1e3";const br=[{theme:{name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:Ai,primaryTitleColor:Ui,secondaryTitleColor:ji,gridColor:Tr,axisColor:Qi,export:{backgroundColor:Ai,font:{color:Ui},button:{default:{color:Ui,borderColor:"#b1b7bd",backgroundColor:Ai},hover:{color:Ui,borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:Ui,borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:Ui,borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:Qi}},tooltip:{color:Ai,border:{color:Tr},font:{color:Ui}},"chart:common":{commonSeriesSettings:{label:{border:{color:Tr}}}},"chart:common:annotation":{font:{color:Ui},border:{color:Tr},color:Ai},chart:{commonPaneSettings:{border:{color:Tr}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:xi,sliderMarker:{color:xi},sliderHandle:{color:xi,opacity:.5}},sparkline:{pointColor:Ai,minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:Tr,label:{font:{color:ji}}}},bullet:{color:xi},gauge:{valueIndicators:{rangebar:{color:xi},textcloud:{color:xi}}}},baseThemeName:"generic.light"},{theme:{name:"generic.carmine.compact"},baseThemeName:"generic.carmine"}];var oo="#ffffff",No="#2b2b2b",uo="#b5b5b5",$o="#303030",ra="#c7c7c7",wo="#8e8e8e",Uo="#b8b8b8",Ao="#494949";const Da=[{theme:{name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:No,border:{color:Ao},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:Ao}},valueErrorBar:{color:oo}}},"chart:common:axis":{constantLineStyle:{color:oo}},"chart:common:annotation":{font:{color:"#929292"},border:{color:Ao},color:No,shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:Ao}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:oo}}},gauge:{rangeContainer:{backgroundColor:uo},valueIndicators:{_default:{color:uo},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:oo,opacity:.32},minorTick:{color:oo,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:uo,sliderMarker:{color:uo,font:{color:$o}},sliderHandle:{color:oo,opacity:.2},shutter:{color:No,opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:oo}}},"layer:area":{borderColor:$o,color:"#686868",hoveredBorderColor:oo,selectedBorderColor:oo},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:oo,selectedBorderColor:oo},"layer:marker:pie":{hoveredBorderColor:oo,selectedBorderColor:oo},legend:{border:{color:"#3f3f3f"},font:{color:oo}},controlBar:{borderColor:ra,color:$o}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:ra,firstLastColor:ra,barPositiveColor:Uo,barNegativeColor:wo,winColor:Uo,lossColor:wo,pointColor:$o},bullet:{targetColor:wo},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:oo},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},baseThemeName:"generic.light"},{theme:{name:"generic.dark.compact"},baseThemeName:"generic.dark"}];var io="#ffffff",jo="#000000",ga="#cf00da",$a="#f8ca00";const ds=[{theme:{name:"generic.contrast",defaultPalette:"Bright",font:{color:io},backgroundColor:jo,primaryTitleColor:io,secondaryTitleColor:io,gridColor:io,axisColor:io,export:{backgroundColor:jo,font:{color:io},button:{default:{color:io,borderColor:io,backgroundColor:jo},hover:{color:io,borderColor:io,backgroundColor:"#cf00d7"},focus:{color:io,borderColor:"#cf00d7",backgroundColor:jo},active:{color:jo,borderColor:io,backgroundColor:io}},borderColor:io,menuButtonColor:jo,activeBackgroundColor:io,activeColor:jo,selectedBorderColor:ga,selectedColor:ga,shadowColor:"none"},tooltip:{border:{color:io},font:{color:io},color:jo},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:io},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:io},border:{color:io}}}},"chart:common:axis":{constantLineStyle:{color:io}},"chart:common:annotation":{font:{color:io},border:{color:io},color:jo},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:jo,border:{color:io}},scrollBar:{color:io},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:io,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:io},valueIndicators:{_default:{color:io},rangebar:{color:io,backgroundColor:jo},twocolorneedle:{secondColor:io},trianglemarker:{color:io},textcloud:{color:io,text:{font:{color:jo}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:io,opacity:.4},minorTick:{color:io,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:ga,sliderMarker:{color:ga},sliderHandle:{color:ga,opacity:1},shutter:{opacity:.75},background:{color:jo}},map:{background:{borderColor:io},layer:{label:{stroke:jo,font:{color:io}}},"layer:area":{borderColor:jo,color:"#686868",hoveredBorderColor:io,selectedBorderColor:io,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:io},"layer:marker:dot":{borderColor:jo,color:$a,backColor:jo,backOpacity:.32},"layer:marker:bubble":{color:$a,hoveredBorderColor:io,selectedBorderColor:io},"layer:marker:pie":{hoveredBorderColor:io,selectedBorderColor:io},controlBar:{borderColor:io,color:jo,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:io}}}},sparkline:{pointColor:jo},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:io},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:io}},link:{opacity:.5,border:{visible:!0,width:1,color:io},hoverStyle:{opacity:.9}}}},baseThemeName:"generic.light"},{theme:{name:"generic.contrast.compact"},baseThemeName:"generic.contrast"}];var Xo="#3debd3",fa="#465672",Ia="#fff",Ba="#c7ccd4",Jo="#596980";const aa=[{theme:{name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:fa,primaryTitleColor:Ia,secondaryTitleColor:"#919bac",gridColor:Jo,axisColor:Ba,export:{backgroundColor:fa,font:{color:Ia},button:{default:{color:Ia,borderColor:"#7a889e",backgroundColor:fa},hover:{color:Ia,borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:Ia,borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:Ia,borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:Ba}},tooltip:{color:"#62789e",border:{color:Jo},font:{color:Ia}},"chart:common":{commonSeriesSettings:{label:{border:{color:Jo}}}},"chart:common:annotation":{font:{color:Ia},border:{color:Jo},color:"#62789e"},chart:{commonPaneSettings:{border:{color:Jo}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:Xo},textcloud:{color:Xo,text:{font:{color:fa}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:fa}}},sparkline:{pointColor:fa,minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:Jo,label:{font:{color:Ia}}}},map:{background:{borderColor:Jo},"layer:area":{color:"#97a3b6",borderColor:fa}},rangeSelector:{shutter:{color:fa},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:Xo,sliderMarker:{color:Xo,font:{color:"#000"}},sliderHandle:{color:Xo,opacity:.5}},bullet:{color:Xo},sankey:{link:{border:{color:fa}},node:{border:{color:fa}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkmoon.compact"},baseThemeName:"generic.darkmoon"}];var Ma="#9c63ff",xa="#17171f",ma="#f5f6f7",Aa="#b2b2b6",ba="#343840";const wa=[{theme:{name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:xa,primaryTitleColor:ma,secondaryTitleColor:"#fff",gridColor:ba,axisColor:Aa,export:{backgroundColor:xa,font:{color:ma},button:{default:{color:ma,borderColor:"#414152",backgroundColor:xa},hover:{color:ma,borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:ma,borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:ma,borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:Aa}},tooltip:{color:xa,border:{color:"#414152"},font:{color:ma}},"chart:common":{commonSeriesSettings:{label:{border:{color:ba}}}},"chart:common:annotation":{font:{color:ma},border:{color:"#414152"},color:xa},chart:{commonPaneSettings:{border:{color:ba}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:xa}}},sparkline:{pointColor:xa,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:ba,label:{font:{color:"#fff"}}}},rangeSelector:{shutter:{color:xa},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:Ma,sliderMarker:{color:Ma,font:{color:"#fff"}},sliderHandle:{color:Ma,opacity:.5}},bullet:{color:Ma},gauge:{valueIndicators:{rangebar:{color:Ma},textcloud:{color:Ma}}},sankey:{link:{border:{color:xa}},node:{border:{color:xa}}}},baseThemeName:"generic.dark"},{theme:{name:"generic.darkviolet.compact"},baseThemeName:"generic.darkviolet"}];var _a="#3cbab2",Jt="#f5f5f5",Ut="#28484f",At="#7eb2be",An="#657c80",Ni="#dedede";const jr=[{theme:{name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:Jt,primaryTitleColor:Ut,secondaryTitleColor:At,gridColor:Ni,axisColor:An,export:{backgroundColor:Jt,font:{color:Ut},button:{default:{color:Ut,borderColor:"#a2b4b8",backgroundColor:Jt},hover:{color:Ut,borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:Ut,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:Ut,borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:An}},tooltip:{color:"#fff",border:{color:Ni},font:{color:Ut}},"chart:common":{commonSeriesSettings:{label:{border:{color:Ni}}}},"chart:common:annotation":{color:"#fff",border:{color:Ni},font:{color:Ut}},chart:{commonPaneSettings:{border:{color:Ni}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:Jt}}},sparkline:{pointColor:Jt,minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:Ni,label:{font:{color:At}}}},rangeSelector:{shutter:{color:Jt},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:_a,sliderMarker:{color:_a},sliderHandle:{color:_a,opacity:.5}},bullet:{color:_a},gauge:{valueIndicators:{rangebar:{color:_a},textcloud:{color:_a}}}},baseThemeName:"generic.light"},{theme:{name:"generic.greenmist.compact"},baseThemeName:"generic.greenmist"}];var Eo="#7ab8eb",_t="#fff",it="#333",We="#99a1a8",Qe="#707070",rt="#e8eaeb";const $t=[{theme:{name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:_t,primaryTitleColor:it,secondaryTitleColor:We,gridColor:rt,axisColor:Qe,export:{backgroundColor:_t,font:{color:it},button:{default:{color:it,borderColor:"#c9d0d4",backgroundColor:_t},hover:{color:it,borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:it,borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:it,borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:Qe}},tooltip:{color:_t,border:{color:rt},font:{color:it}},"chart:common":{commonSeriesSettings:{label:{border:{color:rt}}}},"chart:common:annotation":{color:_t,border:{color:rt},font:{color:it}},chart:{commonPaneSettings:{border:{color:rt}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:Eo,sliderMarker:{color:Eo},sliderHandle:{color:Eo,opacity:.5}},sparkline:{pointColor:_t,minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:rt,label:{font:{color:We}}}},bullet:{color:Eo},gauge:{valueIndicators:{rangebar:{color:Eo},textcloud:{color:Eo}}}},baseThemeName:"generic.light"},{theme:{name:"generic.softblue.compact"},baseThemeName:"generic.softblue"}];var pn="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",Jn="rgba(0,0,0,0.54)",Pi="rgba(255,255,255,0.87)",yi="rgba(255,255,255,0.54)",Ei="#363640",bi="#ffffff",mr="#b5b5b5",yr="#c7c7c7",$i="#8e8e8e",ir="#b8b8b8",Ir="#494949",Hr="#818181",Or=[{theme:{name:"material",defaultPalette:"Material",font:{family:pn},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:pn,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:bi},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:bi},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},baseThemeName:"generic.light"},{theme:{name:"material.light",gridColor:"#e0e0e0",axisColor:Jn,primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:Jn}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},baseThemeName:"material"},{theme:{name:"material.dark",gridColor:"#515159",backgroundColor:Ei,axisColor:yi,font:{color:yi},primaryTitleColor:Pi,secondaryTitleColor:Pi,tooltip:{color:"#000"},export:{backgroundColor:Ei,font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:Ei},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:Ir}},valueErrorBar:{color:bi}}},"chart:common:axis":{constantLineStyle:{color:bi}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:Ir}},commonAxisSettings:{breakStyle:{color:Hr}},zoomAndPan:{dragBoxStyle:{color:bi}}},gauge:{rangeContainer:{backgroundColor:mr},valueIndicators:{_default:{color:mr},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:bi,opacity:.32},minorTick:{color:bi,opacity:.1},breakStyle:{color:Hr}},selectedRangeColor:mr,sliderMarker:{color:mr,font:{color:Ei}},sliderHandle:{color:bi,opacity:.2},shutter:{color:bi,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:bi}}},"layer:area":{borderColor:Ei,color:"#686868",hoveredBorderColor:bi,selectedBorderColor:bi},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:bi,selectedBorderColor:bi},"layer:marker:pie":{hoveredBorderColor:bi,selectedBorderColor:bi},legend:{border:{color:"#3f3f3f"},font:{color:bi}},controlBar:{borderColor:yr,color:Ei}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:yr,firstLastColor:yr,barPositiveColor:ir,barNegativeColor:$i,winColor:ir,lossColor:$i,pointColor:Ei},bullet:{targetColor:$i},funnel:{item:{border:{color:Ei}}},sankey:{label:{font:{color:bi}}}},baseThemeName:"material"}];function Pr(n,t,e){return{theme:{name:"material."+n+"."+t,rangeSelector:{selectedRangeColor:e,sliderMarker:{color:e},sliderHandle:{color:e}},map:{"layer:marker:dot":{color:e},"layer:marker:bubble":{color:e},legend:{markerColor:e}},bullet:{color:e},gauge:{valueIndicators:{rangebar:{color:e},textcloud:{color:e}}}},baseThemeName:"material."+t}}var Ar={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var qr in Ar)if(Object.prototype.hasOwnProperty.call(Ar,qr)){var eo=Ar[qr];Or.push(Pr(qr,"light",eo),Pr(qr,"dark",eo),{theme:{name:"material.".concat(qr,".light.compact")},baseThemeName:"material.".concat(qr,".light")},{theme:{name:"material.".concat(qr,".dark.compact")},baseThemeName:"material.".concat(qr,".dark")})}const Dn=Or;var cr,Zt={},Wt={},qn={},ni=y.l,Di=O.S6,Hi=null,Jr=0,Er={};function go(n){var t=En(n);return Zt[t]||Zt[Wt[t]||function Pa(n,t){if(!arguments.length)return Hi||xo((0,z.Vk)())||cr;var e=En(t);return Hi=(n&&n.platform?sa(En(n.platform),n.version,e):xo(En(n),e))||Hi,this}()]}function xo(n,t){return Wt[n+"."+t]||qn[n+"."+t]||Wt[n]}function sa(n,t,e){return xo(n+t,e)||xo(n,e)}function ln(n,t,e,i){var r=e?e[t]:i;void 0!==r&&void 0===n[t]&&(n[t]=r)}function Ht(n,t,e,i){var r=e?e[t]:i;void 0!==r&&(n[t]=ni(!0,{},r,n[t]))}(0,w.Qr)(Zt)&&(0,w.Qr)(Wt)&&!cr&&[].concat(oi,br,Da,ds,aa,wa,jr,$t,Dn).forEach(n=>{!function Br(n,t){var e=En(n&&n.name);e&&(n.isDefault&&(cr=e),function da(n,t){var e=function Zo(n,t){var e=n.indexOf(t);return e>0?{name:n.substring(0,e),scheme:n.substring(e+1)}:null}(n,".")||{name:n},i=e.name,r=e.scheme;r?(Wt[i]=Wt[i]||t,Wt[i+"."+r]=t):Wt[i]=t}(e,e),Zt[e]=ni(!0,{},go(t),function Bn(n){return ln((n=ni(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},n)).loadingIndicator,"backgroundColor",n),ln(n.chart.commonSeriesSettings.candlestick,"innerColor",null,n.backgroundColor),ln(n.map.background,"color",null,n.backgroundColor),ln(n.title.font,"color",null,n.primaryTitleColor),Ht(n.title,"subtitle",null,n.title),ln(n.legend.font,"color",null,n.secondaryTitleColor),ln(n.legend.border,"color",null,n.gridColor),function ui(n){var t=n["chart:common:axis"];Di([t.grid,t.minorGrid],function(e,i){ln(i,"color",null,n.gridColor)}),Di([t,t.tick,t.minorTick,t.label.font],function(e,i){ln(i,"color",null,n.axisColor)}),ln(t.title.font,"color",null,n.secondaryTitleColor),ln(n.gauge.scale.label.font,"color",null,n.axisColor),ln(n.gauge.scale.tick,"color",null,n.backgroundColor),ln(n.gauge.scale.minorTick,"color",null,n.backgroundColor),ln(n.rangeSelector.scale.label.font,"color",null,n.axisColor)}(n),Di(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],function(t,e){ln(n[e],"redrawOnResize",n),ln(n[e],"containerBackgroundColor",null,n.backgroundColor),Ht(n[e],"tooltip",n),Ht(n[e],"export",n)}),Di(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],function(t,e){Ht(n[e],"loadingIndicator",n),Ht(n[e],"legend",n),Ht(n[e],"title",n)}),Di(["chart","pie","polar"],function(t,e){Ht(n,e,null,n["chart:common"])}),Di(["chart","polar"],function(t,e){n[e]=n[e]||{},Ht(n[e],"commonAxisSettings",null,n["chart:common:axis"])}),Di(["chart","polar","map","pie"],function(t,e){n[e]=n[e]||{},Ht(n[e],"commonAnnotationSettings",null,n["chart:common:annotation"])}),Ht(n.rangeSelector.chart,"commonSeriesSettings",n.chart),Ht(n.rangeSelector.chart,"dataPrepareSettings",n.chart),ln(n.treeMap.group.border,"color",null,n.gridColor),ln(n.treeMap.tile.selectionStyle.border,"color",null,n.primaryTitleColor),ln(n.treeMap.group.selectionStyle.border,"color",null,n.primaryTitleColor),ln(n.map.legend,"backgroundColor",n),function at(n){var t=n.map;Di(["area","line","marker"],function(e,i){Ht(t,"layer:"+i,null,t.layer)}),Di(["dot","bubble","pie","image"],function(e,i){Ht(t,"layer:marker:"+i,null,t["layer:marker"])})}(n),n}(n)))}(n.theme,n.baseThemeName)});var si=go,rr=y.l,vr=O.S6;function Zr(n,t){var e=n;return t&&vr(t.split("."),function(i,r){return e=e[r]}),e}var so=ar.Z.inherit({ctor:function(n){this._themeSection=n.themeSection,this._fontFields=n.fontFields||[],function ct(n){var t=++Jr;n._cache=t,Er[t]=n}(this)},dispose:function(){return function Et(n){delete Er[n._cache]}(this),this._callback=this._theme=this._font=null,this},setCallback:function(n){return this._callback=n,this},setTheme:function(n,t){return this._current=n,this._rtl=t,this.refresh()},refresh:function(){var n=this._current||{},t=si(n.name||n);return this._themeName=t.name,this._defaultPalette=t.defaultPalette,this._font=rr({},t.font,n.font),this._themeSection&&vr(this._themeSection.split("."),function(e,i){t=rr(!0,{},t[i])}),this._theme=rr(!0,{},t,(0,w.HD)(n)?{}:n),this._initializeTheme(),Qn(this._rtl,this._theme.rtlEnabled)&&rr(!0,this._theme,this._theme._rtl),this._callback(),this},theme:function(n){return Zr(this._theme,n)},themeName:function(){return this._themeName},createPalette:function(n,t){return _n(n,t,this._defaultPalette)},createDiscretePalette:function(n,t){return function zt(n,t,e){var i=t>0?function wt(n,t){var D,e=t-1,i=n.length-1,r=[],m=[];function A(N){var Q=i*N,se=Xr(Q),we=lo(Q);m.push(r[se].blend(r[we],Q-se).toHex())}for(D=0;D<=i;++D)r.push(new ie.Z(n[D]));if(e>0)for(D=0;D<=e;++D)A(D/e);else A(.5);return m}(Tn(n,{type:"gradientSet",themeDefault:e}),t):[];return{getColor:function(r){return i[r]||null}}}(n,t,this._defaultPalette)},createGradientPalette:function(n){return function Xt(n,t){var e=Tn(n,{type:"gradientSet",themeDefault:t}),i=new ie.Z(e[0]),r=new ie.Z(e[1]);return{getColor:function(m){return 0<=m&&m<=1?i.blend(r,m).toHex():null}}}(n,this._defaultPalette)},getAccentColor:function(n){return function fi(n,t){return(n=Tn(n,{themeDefault:t})).accentColor||n[0]}(n,this._defaultPalette)},_initializeTheme:function(){var n=this;vr(n._fontFields||[],function(t,e){n._initializeFont(Zr(n._theme,e))})},_initializeFont:function(n){rr(n,this._font,rr({},n))}}),vo=u(8893),Ho=!(0,mi.Ym)();function Ko(){this.reset()}function Ro(n,t){return n!==t?(0,y.l)({},n,t):(0,y.l)({},n)}function ea(n,t){return n!==t?n.concat(t):n.slice()}function la(n){n._totalChangesOrder=n._optionChangesOrder.concat(n._layoutChangesOrder,n._customChangesOrder)}function va(n){var t=this.prototype,e=n.code;t["_change_"+e]=n.handler,n.isThemeDependent&&t._themeDependentChanges.push(e),n.option&&(t._optionChangesMap[n.option]=e),(n.isOptionChange?t._optionChangesOrder:t._customChangesOrder).push(e),la(t)}function ta(){var n=function t(){var e,r,i=t._chain.length;for(e=0;e<i;++e)r=t._chain[e].apply(this,arguments);return r};return n._chain=[],n.add=function(t){n._chain.push(t)},n.copy=function(t){n._chain=t._chain.slice()},n}function ya(n,t,e){var i=n[t];i?i.add?(!1===Object.prototype.hasOwnProperty.call(n,t)&&(i=ta()).copy(n[t]),i.add(e)):((i=ta()).add(n[t]),i.add(e)):i=e,n[t]=i}function Ml(n){var t=this.prototype;t._plugins.push(n),n.fontFields&&t._fontFields.push.apply(t._fontFields,n.fontFields),n.members&&(0,y.l)(this.prototype,n.members),n.customize&&n.customize(this),n.extenders&&Object.keys(n.extenders).forEach(function(e){ya(t,e,n.extenders[e])},this)}Ko.prototype={constructor:Ko,add:function(n){var t,e=n.length,i=this._flags;for(t=0;t<e;++t)i[n[t]]=1},has:function(n){return this._flags[n]>0},count:function(){return Object.keys(this._flags).length},reset:function(){this._flags={}}};var Ld=Ho?function(n){var t=n.inherit;n.inherit=function(){var e=t.apply(this,arguments),i=e.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach(function(r){i[r]={}}),e.addPlugin=E.ZT,e},n.addChange=E.ZT,n.addPlugin=E.ZT}:function(n){var t=n.inherit;n.inherit=function(){var e=this.prototype,i=e._plugins,r=e._fontFields,m=e._eventsMap,D=e._initialChanges,A=e._themeDependentChanges,N=e._optionChangesMap,Q=e._partialOptionChangesMap,se=e._partialOptionChangesPath,we=e._optionChangesOrder,Re=e._layoutChangesOrder,Ue=e._customChangesOrder,st=t.apply(this,arguments);return(e=st.prototype)._plugins=ea(i,e._plugins),e._fontFields=ea(r,e._fontFields),e._eventsMap=Ro(m,e._eventsMap),e._initialChanges=ea(D,e._initialChanges),e._themeDependentChanges=ea(A,e._themeDependentChanges),e._optionChangesMap=Ro(N,e._optionChangesMap),e._partialOptionChangesMap=Ro(Q,e._partialOptionChangesMap),e._partialOptionChangesPath=Ro(se,e._partialOptionChangesPath),e._optionChangesOrder=ea(we,e._optionChangesOrder),e._layoutChangesOrder=ea(Re,e._layoutChangesOrder),e._customChangesOrder=ea(Ue,e._customChangesOrder),la(e),st.addPlugin=Ml,st},n.prototype._plugins=[],n.prototype._fontFields=[],n.addChange=va,n.addPlugin=Ml};function Ph(){return new Ko}var td=u(9389),bu=u(9644);const wu=(0,td.Z)(bu.Z.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"});var Bd=u(4304),Eu=u(9834),Wp=u(1536),nd=function(){},yc={easeOutCubic:function(n,t,e){return 1===n?e:(1-Math.pow(1-n,3))*(e-t)+ +t},linear:function(n,t,e){return 1===n?e:n*(e-t)+ +t}},Cc={segments:function(n,t,e,i,r){var A,N,Q,se,m=t.from,D=t.to,we=[];for(Q=0;Q<m.length;Q++){if(N=[(A=m[Q])[0]],A.length>1)for(se=1;se<A.length;se++)N.push(i(e,A[se],D[Q][se]));we.push(N)}r.segments=t.end&&1===e?t.end:we,n.attr({segments:we})},arc:function(n,t,e,i){var r=t.from,m=t.to,D={};for(var A in r)D[A]=i(e,r[A],m[A]);n.attr(D)},transform:function(n,t,e,i,r){var m=t.from,D=t.to,A={};for(var N in m)A[N]=r[N]=i(e,m[N],D[N]);n.attr(A)},base:function(n,t,e,i,r,m){var D={};D[m]=r[m]=i(e,t.from,t.to),n.attr(D)},_:nd,complete:function(n,t){n.attr(t)}};function Us(n){var e,t=this._animateStep;for(e in this._progress=this._calcProgress(n),this.params)(t[e]||t.base)(this.element,this.params[e],this._progress,this._easing,this._currentParams,e);return this.options.step&&this.options.step(this._easing(this._progress,0,1),this._progress),1!==this._progress||this.stop()}function Up(n){return n-this._startTime>=this.delay&&(this.tick=Us),!0}function Su(n){return this._startTime=n,this.tick=this.delay?Up:Us,!0}function Ou(n,t,e){this._progress=0,this.element=n,this.params=t,this.options=e,this.duration=e.partitionDuration?e.duration*e.partitionDuration:e.duration,this.delay=e.delay&&e.duration*e.delay||0,this._animateStep=e.animateStep||Cc,this._easing=yc[e.easing]||yc.easeOutCubic,this._currentParams={},this.tick=Su}function xc(n){this._animationCount=0,this._timerId=null,this._animations={},this.element=n}Ou.prototype={_calcProgress:function(n){return Math.min(1,(n-this.delay-this._startTime)/this.duration)},stop:function(n){var t=this.options,e=this._animateStep;this.stop=this.tick=nd,e.complete&&e.complete(this.element,this._currentParams),t.complete&&!n&&t.complete()}},xc.prototype={_loop:function(){var r,n=this,t=n._animations,e=0,i=(new Date).getTime(),m=n._endAnimation;for(r in t)t[r].tick(i)||delete t[r],e++;if(0===e)return n.stop(),void(n._endAnimationTimer=m&&setTimeout(function(){0===n._animationCount&&(m(),n._endAnimation=null)}));n._timerId=Wp.U.call(null,function(){n._loop()},n.element)},addAnimation:function(n){var t=this;t._animations[t._animationCount++]=n,clearTimeout(t._endAnimationTimer),t._timerId||(clearTimeout(t._startDelay),t._startDelay=setTimeout(function(){t._timerId=1,t._loop()},0))},animateElement:function(n,t,e){n&&t&&e&&(n.animation&&n.animation.stop(),this.addAnimation(n.animation=new Ou(n,t,e)))},onEndAnimation:function(n){this._animationCount?this._endAnimation=n:n()},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,(0,Wp.W)(this._timerId),clearTimeout(this._startDelay),clearTimeout(this._endAnimationTimer),this._timerId=null},lock:function(){var n,e,i,t=this._animations;for(n in t)e=t[n].options.unstoppable,i=i||e,e||(t[n].stop(!0),delete t[n]);!i&&this.stop()}};var n,Fd=(0,mi.Jj)(),{max:id,min:Zp,floor:bc,round:wc,sin:rd,cos:Du,abs:Ec,PI:ql}=Math,Es=ql/180,Vd={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},Ss="text",Zs="stroke",Qa="stroke-width",yl="stroke-opacity",Tu="font-size",Nd="font-style",ad="font-weight",Jl="text-decoration",Cl="textsAlignment",cs="none",Ql="...",nl=Object.create?function(n){return Object.create(n)}:function(n){var t=function(){};return t.prototype=n,new t},Kp={scaleX:1,scaleY:1,"pointer-events":null},Al=(0,Bd.Z)(function(){var n=b.Z.createElement("div");return n.style.left="-9999px",n.style.position="absolute",{backupContainer:n,backupCounter:0}}),Ya=(n=1,function(){return"DevExpress_"+n++});function ld(n){return n&&"string"!=typeof n}function ud(n){return b.Z.createElementNS("http://www.w3.org/2000/svg",n)}function Sc(n,t){return null!==n?"url("+(t?Fd.location.href.split("#")[0]:"")+"#"+n+")":n}function hs(n,t){var e;for(e in t)n[e]=t[e];return n}function kh(n,t){return n=n.toString().split("e"),+((n=(n=wc(+(n[0]+"e"+(n[1]?+n[1]+t:t)))).toString().split("e"))[0]+"e"+(n[1]?+n[1]-t:-t))}var dd={full:cs,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function Xf(n,t){return t.hatching&&"none"!==En(t.hatching.direction)?((t=hs({},t)).fill=n._hatching=n.renderer.lockHatching(t.fill,t.hatching,n._hatching),delete t.hatching):n._hatching&&(n.renderer.releaseHatching(n._hatching),n._hatching=null),t}var Fa=function(n,t,e,i,r,m,D,A,N,Q){return["M",(n+i*r).toFixed(5),(t-i*m).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,Q,0,(n+i*D).toFixed(5),(t-i*A).toFixed(5),N?"M":"L",(n+e*D).toFixed(5),(t-e*A).toFixed(5),"A",e.toFixed(5),e.toFixed(5),0,Q,1,(n+e*r).toFixed(5),(t-e*m).toFixed(5),"Z"].join(" ")};function Iu(n,t){var e=[["M",0,0]];switch(t){case"line":e=Ks(n);break;case"area":e=Ks(n,!0);break;case"bezier":e=Rh(n);break;case"bezierarea":e=Rh(n,!0)}return e}function Ks(n,t){return ys(n,Os,t)}function Rh(n,t){return ys(n,cd,t)}function ys(n,t,e){var i,r,m,D=[];if(null!==(i=n[0])&&void 0!==i&&i.length)for(r=0,m=n.length;r<m;++r)t(n[r],e,D);else t(n,e,D);return D}function Os(n,t,e){var i=0,r=e.length,m=r,D=(n||[]).length;if(D){if(void 0!==n[0].x)for(;i<D;)e[m++]=["L",n[i].x,n[i++].y];else for(;i<D;)e[m++]=["L",n[i++],n[i++]];e[r][0]="M"}else e[m]=["M",0,0];return t&&e.push(["Z"]),e}function cd(n,t,e){var i,r=e.length,m=(n||[]).length;if(m)if(void 0!==n[0].x)for(e[r++]=["M",n[0].x,n[0].y],i=1;i<m;)e[r++]=["C",n[i].x,n[i++].y,n[i].x,n[i++].y,n[i].x,n[i++].y];else for(e[r++]=["M",n[0],n[1]],i=2;i<m;)e[r++]=["C",n[i++],n[i++],n[i++],n[i++],n[i++],n[i++]];else e[r]=["M",0,0];return t&&e.push(["Z"]),e}function Oc(n,t){var e=n[n.length-2],i=n[n.length-1];switch(t){case"line":case"area":n[0]="L";break;case"bezier":case"bezierarea":n[0]="C",n[1]=n[3]=n[5]=e,n[2]=n[4]=n[6]=i}}function $p(n,t,e){var i=n[n.length-1].slice(),r=n.length;for(Oc(i,e);r<t.length;r++)n[r]=i.slice(0)}function Dc(n,t,e){var i,r,A,N,m=n.length,D=t.length;if((m-1)%2==0&&(D-1)%2==0){A=(r=n.slice(0,1+(i=(m-1)/2-1)))[r.length-1].slice(0),N=n.slice(i+1)[0].slice(0),Oc(A,e),Oc(N,e);for(var Q=i;Q<(D-1)/2-1;Q++)n.splice(Q+1,0,A),n.splice(Q+3,0,N)}}function zd(n,t){var i,r,e=n._styles;for(i in t=t||{})(0,w.$K)(r=t[i])&&(e[i]=""!=(r+="number"!=typeof r||Vd[i]?"":"px")?r:null);for(i in e)(r=e[i])?n.element.style[i]=r:null===r&&(n.element.style[i]="");return n}function ps(n,t){var e=n.element,i=n.attr(t);i&&-1!==i.indexOf("DevExpress")&&(e.removeAttribute(t),e.setAttribute(t,Sc(i,n.renderer.pathModified)))}function cl(n,t){var r,m,Q,se,we,Re,e=n._settings,i={},D=n.element,A=n.renderer,N=A.rtl;if(!ld(t=t||{}))return t in e?e[t]:t in Kp?Kp[t]:0;for(r in hs(i,t),i)if(void 0!==(m=i[r])){if(e[r]=m,"align"===r)r="text-anchor",m={left:N?"end":"start",center:"middle",right:N?"start":"end"}[m]||null;else{if("dashStyle"===r){se=!0;continue}if(r===Qa)se=!0;else if(!m||"fill"!==r&&"clip-path"!==r&&"filter"!==r||0!==m.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(r)){Q=!0;continue}/^(x|y|d)$/i.test(r)&&(Q=!0)}else n._addFixIRICallback(),m=Sc(m,A.pathModified)}null===m?D.removeAttribute(r):D.setAttribute(r,m)}if(se&&"dashStyle"in e)if(we=("_originalSW"in n?n._originalSW:e[Qa])||1,r="stroke-dasharray",""===(m=null===(m=e.dashStyle)?"":En(m))||"solid"===m||m===cs)n.element.removeAttribute(r);else{for(Re=(m=m.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;Re--;)m[Re]=parseInt(m[Re])*we;n.element.setAttribute(r,m.join(","))}return Q&&n._applyTransformation(),n}function Mu(n,t,e,i,r){var m,D,A,N,Q;if(void 0!==e.wholeText)n.push({value:e.wholeText,style:i,className:r,line:t,height:i[Tu]||0});else if("BR"===e.tagName)++t;else if(b.Z.isElementNode(e)){switch(hs(m={},i),e.tagName){case"B":case"STRONG":m[ad]="bold";break;case"I":case"EM":m[Nd]="italic";break;case"U":m[Jl]="underline"}for((D=e.style).color&&(m.fill=D.color),D.fontSize&&(m[Tu]=D.fontSize),D.fontStyle&&(m[Nd]=D.fontStyle),D.fontWeight&&(m[ad]=D.fontWeight),D.textDecoration&&(m[Jl]=D.textDecoration),A=0,N=(Q=e.childNodes).length;A<N;++A)t=Mu(n,t,Q[A],m,e.className||r)}return t}function tu(n,t,e){var i,r,m;for(i=0,r=n.length;i<r;++i)(m=n[i])[e]=ud("tspan"),m[e].appendChild(b.Z.createTextNode(m.value)),m.style&&zd({element:m[e],_styles:{}},m.style),m.className&&m[e].setAttribute("class",m.className),t.appendChild(m[e])}function pd(){this._hasEllipsis&&this.attr({text:this._settings.text})}function Ac(n){var t;return n&&((t=n.cloneNode()).removeAttribute("y"),t.removeAttribute("x")),t||n}function nu(n){for(var t=b.Z.querySelectorAll(n,"title"),e=0;e<t.length;e++)n.removeChild(t[e]);return t}function qp(n){var t=nu(n);return()=>{for(var e=0;e<t.length;e++)n.appendChild(t[e])}}function Pu(n,t,e,i){var r,m;if(e<=t&&i>t)for(r=1,m=n.value.length;r<=m;++r)if(e+n.tspan.getSubStringLength(0,r)>t)return r-1}function iu(n){return n.value.length?n.tspan.getSubStringLength(0,n.value.length):0}function Tt(n,t){var{hideOverflowEllipsis:e}=t;return e&&0===n?"":Ql}function Yt(n,t,e){var i=Tt(t,e);if(n.value.length&&n.tspan.parentNode)for(var r=n.value.length-1;r>=1;r--){if(n.startBox+n.tspan.getSubStringLength(0,r)<t){to(n,r,i);break}1===r&&to(n,0,i)}}function kn(n,t,e,i,r){var D,m=n.value;"none"!==i.wordWrap&&(D="normal"===i.wordWrap?function qe(n,t){for(var e=n.startBox>0?[0]:[],i=n.value.split("").reduce((m,D,A)=>(" "===D&&m.push(A),m),e),r=0;void 0!==i[r+1]&&n.startBox+n.tspan.getSubStringLength(0,i[r+1])<t;)r++;return i[r]}(n,t):function He(n,t){for(var e=0;e<n.value.length-1;e++)if(n.startBox+n.tspan.getSubStringLength(0,e+1)>t)return e}(n,t));var N,A=[];if(isFinite(D)&&(0!==r||0!==D)){to(n,D,"");var se=m.slice(D+(" "===m[D]?1:0));if(se.length){var we=Ac(n.tspan);if(we.textContent=se,n.tspan.parentNode.appendChild(we),(N=hs(hs({},n),{value:se,startBox:0,height:0,tspan:we,stroke:Ac(n.stroke),endBox:we.getSubStringLength(0,se.length)})).stroke&&(N.stroke.textContent=se),N.endBox>t&&!(A=kn(N,t,e,i,D)).length)return[]}}if(n.value.length){if("ellipsis"===i.textOverflow&&n.tspan.getSubStringLength(0,n.value.length)>t&&Yt(n,e,i),"hide"===i.textOverflow&&n.tspan.getSubStringLength(0,n.value.length)>t)return[]}else n.tspan.parentNode.removeChild(n.tspan);var Re=[];return N&&Re.push(N),[{commonLength:m.length,parts:Re}].concat(A)}function Ri(n,t,e,i,r){var m=e.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===m)return n;var D=n.reduce((A,N,Q,se)=>{var[we,Re]=A,Ue=function zn(n,t){return n.parts.reduce((e,i)=>id(e,Ps(i,t)),0)}(N,r);if((Re+=Ue)<i)we.push(N);else if(N.parts.forEach(Kt=>{no(Kt)}),"ellipsis"===m){var st=se[Q-1];if(st){var Ot=st.parts[st.parts.length-1];Ot.hasEllipsis||(0===t||Ot.endBox<t?to(Ot,Ot.value.length,Tt(t,e)):Yt(Ot,t,e))}}return[we,Re]},[[],0]);return"hide"===m&&D[1]>i?(D[0].forEach(A=>{A.parts.forEach(N=>{no(N)})}),[]):D[0]}function pr(n,t,e,i,r){if(!t){var D={value:n.textContent,height:0,line:0};n.textContent="",tu([D],n,"tspan"),t=[D]}return t.reduce((A,N)=>{var[Q,se,we,Re,Ue]=A,st=Q[Q.length-1];if(Re)return[Q,se,we,Re];if(st&&N.line===Ue){if(N.startBox=se,se>i&&"none"===r.wordWrap&&"ellipsis"===r.textOverflow)return no(N),[Q,se,we,Re,Ue];st.parts.push(N),st.commonLength+=N.value.length}else N.startBox=se=0,Q.push({commonLength:N.value.length,parts:[N]});if(N.endBox=we=se+iu(N),se=we,(0,w.$K)(e)&&we>e){var Ot=kn(N,e,i,r);Ot.length?Q=Q.concat(Ot.filter(Kt=>Kt.parts.length>0)):(Q=[],Re=!0)}return[Q,se,we,Re,N.line]},[[],0,0,!1,0])[0]}function to(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ql,i=n.value.substr(0,t)+e;n.value=n.tspan.textContent=i,n.stroke&&(n.stroke.textContent=i),e===Ql&&(n.hasEllipsis=!0)}function no(n){n.tspan.parentNode&&n.tspan.parentNode.removeChild(n.tspan),n.stroke&&n.stroke.parentNode&&n.stroke.parentNode.removeChild(n.stroke)}function ka(n,t,e){n.tspan.setAttribute(t,e),n.stroke&&n.stroke.setAttribute(t,e)}function Ps(n,t){return n.inherits?ks(n.height,t):n.height||t}function Gs(n){if(n._texts){var r,m,t=n._texts,e=n._settings.x,i=n._getLineHeight(),D=t[0];for(ka(D,"x",e),ka(D,"y",n._settings.y),r=1,m=t.length;r<m;++r)D=t[r],parseFloat(D.height)>=0&&(ka(D,"x",e),ka(D,"dy",Ps(D,i)))}}function ks(n,t){var e=parseFloat(n),i=parseFloat(t),r=e||12,m=i||12;return r>m?isNaN(e)?r:n:isNaN(i)?m:t}function ku(n,t,e,i){e=e||{};var r,m,D=n.renderer,A=n._settings,N={},Q={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(e.complete=i),D.animationEnabled()){for(r in t)m=t[r],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(r)?(N.transform=N.transform||{from:{},to:{}},N.transform.from[r]=r in A?Number(A[r].toFixed(3)):Q[r],N.transform.to[r]=m):N[r]="arc"===r||"segments"===r?m:{from:r in A?A[r]:parseFloat(n.element.getAttribute(r)||0),to:m};D.animateElement(n,N,hs(hs({},D._animation),e))}else e.step&&e.step.call(n,1,1),e.complete&&e.complete.call(n),n.attr(t);return n}function Qp(n,t){var e={is:!1,name:t.name||t,after:t.after};return n?e.to=n:e.virtual=!0,e}var js=function(n,t,e){this.renderer=n,this.element=ud(t),this._settings={},this._styles={},"path"===t&&(this.type=e||"line")};function em(n){fd.remove(n)}js.prototype={constructor:js,_getJQElement:function(){return this._$element||(this._$element=(0,l.Z)(this.element))},_addFixIRICallback:function(){var n=this,t=function(){ps(n,"fill"),ps(n,"clip-path"),ps(n,"filter")};n.element._fixFuncIri=t,t.renderer=n.renderer,fd.add(t),n._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function n(t){var e;for(e=0;e<t.childNodes.length;e++)em(t.childNodes[e]._fixFuncIri),n(t.childNodes[e])}(this.element)},dispose:function(){return em(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(n){return(n||this.renderer.root).element.appendChild(this.element),this},remove:function(){var n=this.element;return n.parentNode&&n.parentNode.removeChild(n),this},enableLinks:function(){return this._links=[],this},virtualLink:function(n){return Ds({_link:Qp(null,n)},this),this},linkAfter:function(n){return this._linkAfter=n,this},linkOn:function(n,t){return this._link=Qp(n,t),Ds(this,n),this},linkOff:function(){return function u_(n){var t,e=n._link.to._links;for(t=0;e[t]!==n;++t);e.splice(t,1),l_(e,t)}(this),this._link=null,this},linkAppend:function(){var e,i,n=this._link,t=n.to._links;for(e=n.i+1;(i=t[e])&&!i._link.is;++e);return this._insert(n.to,i),n.is=!0,this},_insert:function(n,t){n.element.insertBefore(this.element,t?t.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var n=this.element,t=n.parentNode;return t&&t.insertBefore(n,t.firstChild),this},toForeground:function(){var n=this.element,t=n.parentNode;return t&&t.appendChild(n),this},attr:function(n){return cl(this,n)},smartAttr:function(n){return this.attr(Xf(this,n))},css:function(n){return zd(this,n)},animate:function(n,t,e){return ku(this,n,t,e)},sharp(n,t){return this.attr({sharp:n||!0,sharpDirection:t})},_applyTransformation(){var n=this._settings,i=[],r=n.sharp,m=n.sharpDirection||1,D=n[Qa]%2;i.push("translate("+((n.translateX||0)+(!D||"h"!==r&&!0!==r?0:.5*m))+","+((n.translateY||0)+(!D||"v"!==r&&!0!==r?0:.5*m))+")"),n.rotate&&i.push("rotate("+n.rotate+","+(("rotateX"in n?n.rotateX:n.x)||0)+","+(("rotateY"in n?n.rotateY:n.y)||0)+")");var Q=(0,w.$K)(n.scaleX),se=(0,w.$K)(n.scaleY);(Q||se)&&i.push("scale("+(Q?n.scaleX:1)+","+(se?n.scaleY:1)+")"),i.length&&this.element.setAttribute("transform",i.join(" "))},move:function(n,t,e,i){var r={};return(0,w.$K)(n)&&(r.translateX=n),(0,w.$K)(t)&&(r.translateY=t),e?this.animate(r,i):this.attr(r),this},rotate:function(n,t,e,i,r){var m={rotate:n||0};return(0,w.$K)(t)&&(m.rotateX=t),(0,w.$K)(e)&&(m.rotateY=e),i?this.animate(m,r):this.attr(m),this},_getElementBBox:function(){var t,n=this.element;try{t=n.getBBox&&n.getBBox()}catch{}return t||{x:0,y:0,width:n.offsetWidth||0,height:n.offsetHeight||0}},getBBox:function(){var n=this._settings,t=this._getElementBBox();return n.rotate?Ji(t,[("rotateX"in n?n.rotateX:n.x)||0,("rotateY"in n?n.rotateY:n.y)||0],-n.rotate):Wn(t)},markup:function(){return(0,Eu.yD)(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(n){var t=this.animation;return t&&t.stop(n),this},setTitle:function(n){var t=ud("title");t.textContent=n||"",this.element.appendChild(t)},removeTitle(){nu(this.element)},data:function(n,t){var i,e=this.element;if(void 0!==t)e[n]=t;else for(i in n)e[i]=n[i];return this},on:function(){var n=[this._getJQElement()];return n.push.apply(n,arguments),d.Z.on.apply(d.Z,n),this},off:function(){var n=[this._getJQElement()];return n.push.apply(n,arguments),d.Z.off.apply(d.Z,n),this},trigger:function(){var n=[this._getJQElement()];return n.push.apply(n,arguments),d.Z.trigger.apply(d.Z,n),this}};var Fh=function(n,t){js.call(this,n,"path",t)};hs(Fh.prototype=nl(js.prototype),{constructor:Fh,attr:function eu(n){var t;return ld(n)&&(t=(n=hs({},n)).segments,"points"in n&&(t=Iu(n.points,this.type),delete n.points),t&&(n.d=function hd(n){var i,m,D,A,t=[],e=0,r=n.length;for(i=0;i<r;++i)for(D=0,A=(m=n[i]).length;D<A;++D)t[e++]=m[D];return t.join(" ")}(t),this.segments=t,delete n.segments)),cl(this,n)},animate:function Jp(n,t,e){var r,m,i=this.segments||[];return this.renderer.animationEnabled()&&"points"in n&&(m=function Hd(n,t,e){var m,D,i=n.length,r=t.length,A=-1!==e.indexOf("area")?Dc:$p;if(0===i)for(m=0;m<r;m++)n.push(t[m].slice(0));else i<r?A(n,t,e):i>r&&(D=t.slice(0),A(t,n,e));return D}(i,r=Iu(n.points,this.type),this.type),n.segments={from:i,to:r,end:m},delete n.points),ku(this,n,t,e)}});var gd=function(n){js.call(this,n,"path","arc")};hs(gd.prototype=nl(js.prototype),{constructor:gd,attr:function Lh(n){var e,i,r,m,D,A,t=this._settings;return ld(n)&&("x"in(n=hs({},n))||"y"in n||"innerRadius"in n||"outerRadius"in n||"startAngle"in n||"endAngle"in n)&&(t.x=e="x"in n?n.x:t.x,delete n.x,t.y=i="y"in n?n.y:t.y,delete n.y,t.innerRadius=r="innerRadius"in n?n.innerRadius:t.innerRadius,delete n.innerRadius,t.outerRadius=m="outerRadius"in n?n.outerRadius:t.outerRadius,delete n.outerRadius,t.startAngle=D="startAngle"in n?n.startAngle:t.startAngle,delete n.startAngle,t.endAngle=A="endAngle"in n?n.endAngle:t.endAngle,delete n.endAngle,n.d=Fa.apply(null,function jp(n,t,e,i,r,m){var D,A=!0,N=kh(m,3)-kh(r,3);return N&&(Ec(N)%360==0&&(r=0,m=360,D=!0,m-=.01),r>360&&(r%=360),m>360&&(m%=360),r>m&&(r-=360),A=!1),r*=Es,m*=Es,[n,t,Zp(i,e),id(i,e),Du(r),rd(r),Du(m),rd(m),D,bc(Ec(m-r)/ql)%2?"1":"0",A]}(e,i,r,m,D,A))),cl(this,n)},animate:function Qf(n,t,e){var i=this._settings,r={from:{},to:{}};return this.renderer.animationEnabled()&&("x"in n||"y"in n||"innerRadius"in n||"outerRadius"in n||"startAngle"in n||"endAngle"in n)&&(r.from.x=i.x||0,r.from.y=i.y||0,r.from.innerRadius=i.innerRadius||0,r.from.outerRadius=i.outerRadius||0,r.from.startAngle=i.startAngle||0,r.from.endAngle=i.endAngle||0,r.to.x="x"in n?n.x:i.x,delete n.x,r.to.y="y"in n?n.y:i.y,delete n.y,r.to.innerRadius="innerRadius"in n?n.innerRadius:i.innerRadius,delete n.innerRadius,r.to.outerRadius="outerRadius"in n?n.outerRadius:i.outerRadius,delete n.outerRadius,r.to.startAngle="startAngle"in n?n.startAngle:i.startAngle,delete n.startAngle,r.to.endAngle="endAngle"in n?n.endAngle:i.endAngle,delete n.endAngle,n.arc=r),ku(this,n,t,e)}});var Vh=function(n){js.call(this,n,"rect")};hs(Vh.prototype=nl(js.prototype),{constructor:Vh,attr:function Tc(n){var t,e,i,r,m,D,A;return ld(n)&&((void 0!==(n=hs({},n)).x||void 0!==n.y||void 0!==n.width||void 0!==n.height||void 0!==n[Qa])&&(t=void 0!==n.x?this._originalX=n.x:this._originalX||0,e=void 0!==n.y?this._originalY=n.y:this._originalY||0,i=void 0!==n.width?this._originalWidth=n.width:this._originalWidth||0,r=void 0!==n.height?this._originalHeight=n.height:this._originalHeight||0,m=void 0!==n[Qa]?this._originalSW=n[Qa]:this._originalSW,n.x=t+(A=(m||0)<(D=~~((i<r?i:r)/2))?m||0:D)/2,n.y=e+A/2,n.width=i-A,n.height=r-A,((m||0)!==A||!(0===A&&void 0===m))&&(n[Qa]=A)),"sharp"in n&&delete n.sharp),cl(this,n)}});var Nh=function(n){js.call(this,n,"text"),this.css({"white-space":"pre"})};function l_(n,t){var e,i;for(e=t;i=n[e];++e)i._link.i=e}function Ds(n,t){var r,m,e=t._links,i=n._link.after=n._link.after||t._linkAfter;if(i){for(r=0;(m=e[r])&&m._link.name!==i;++r);if(m)for(++r;(m=e[r])&&m._link.after===i;++r);}else r=e.length;e.splice(r,0,n),l_(e,r)}function Xa(n){this.root=this._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:cs,stroke:cs,"stroke-width":0}).attr({class:n.cssClass}).css({"line-height":"normal","-ms-user-select":cs,"-moz-user-select":cs,"-webkit-user-select":cs,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),this._init(),this.pathModified=!!n.pathModified,this._$container=(0,l.Z)(n.container),this.root.append({element:n.container}),this._locker=0,this._backed=!1}hs(Nh.prototype=nl(js.prototype),{constructor:Nh,attr:function qf(n){var t;if(!ld(n))return cl(this,n);n=hs({},n);var e=this._settings,i=(0,w.$K)(e[Zs])&&(0,w.$K)(e[Qa]);void 0!==n[Ss]&&(e[Ss]=n[Ss],delete n[Ss],t=!0),void 0!==n[Zs]&&(e[Zs]=n[Zs],delete n[Zs]),void 0!==n[Qa]&&(e[Qa]=n[Qa],delete n[Qa]),void 0!==n[yl]&&(e[yl]=n[yl],delete n[yl]),void 0!==n[Cl]&&(function Pl(n,t){if(n._texts&&"center"!==t)for(var e=n._texts,i="left"===t?-1:1,r=Math.max.apply(Math,e.map(N=>iu(N))),m=0;m<e.length;m++){var D=e[m],A=iu(D);0!==r&&r!==A&&ka(D,"dx",i*wc((r-A)/2*10)/10)}}(this,n[Cl]),delete n[Cl]);var r=(0,w.$K)(e[Zs])&&(0,w.$K)(e[Qa]);return cl(this,n),(t=t||r!==i&&e[Ss])&&(function ua(n,t,e){var i,r;n._texts=null,n.clear(),null!==t&&(t=""+t,n.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(t)&&-1===t.indexOf("&")?/\n/g.test(t)?i=function Mc(n){for(var t=n.replace(/\r/g,"").split(/\n/g),e=0,i=[];e<t.length;e++)i.push({value:t[e].trim(),height:0,line:e});return i}(t):e&&(i=[{value:t.trim(),height:0}]):(r=function Ic(n){var t=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return n.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,function(e,i,r,m){return i+(r=(r&&r.match(t)||[]).map(function(D){return D}).join(" "))+m})}(t),i=function Bh(n){var t=[],e=b.Z.createElement("div");return e.innerHTML=n.replace(/\r/g,"").replace(/\n/g,"<br/>"),Mu(t,0,e,{},""),function Xp(n){var t,e,r,i=n[0];for(t=1,e=n.length;t<e;++t)(r=n[t]).line===i.line?(i.height=ks(i.height,r.height),i.inherits=i.inherits||0===parseFloat(r.height),r.height=NaN):i=r}(t),t}(r)),i?i.length&&(n._texts=i,e&&tu(i,n.element,Zs),tu(i,n.element,"tspan")):n.element.appendChild(b.Z.createTextNode(t)))}(this,e.text,r),this._hasEllipsis=!1),(t||void 0!==n.x||void 0!==n.y)&&Gs(this),r&&function Jf(n){if(n._texts){var m,D,A,t=n._texts,e=n._settings[Zs],i=n._settings[Qa],r=n._settings[yl]||1;for(D=0,A=t.length;D<A;++D)(m=t[D].stroke).setAttribute(Zs,e),m.setAttribute(Qa,i),m.setAttribute(yl,r),m.setAttribute("stroke-linejoin","round")}}(this),this},css:function Yp(n){return zd(this,n=n||{}),Tu in n&&Gs(this),this},applyEllipsis:function Au(n){var t,i,r,m,D,A,N,e=!1;pd.call(this);var Q=this.renderer.text(Ql).attr(this._styles).append(this.renderer.root),se=Q.getBBox().width;if(this._getElementBBox().width>n)for(n-se<0?n=0:n-=se,t=function et(n,t,e){var r,m,D,A,N,i=[];if(t)for(r=0,m=t.length;r<m;++r)i[(D=t[r]).line]?(D.startBox=A,i[D.line].parts.push(D),i[D.line].commonLength+=D.value.length):(D.startBox=A=0,i.push({commonLength:D.value.length,parts:[D]})),N=A+D.tspan.getSubStringLength(0,D.value.length),D.endIndex=Pu(D,e,A,N),A=N;else(D={value:n.textContent,tspan:n}).startBox=A=0,N=A+iu(D),D.endIndex=Pu(D,e,A,N),i=[{commonLength:n.textContent.length,parts:[D]}];return i}(this.element,this._texts,n),i=0,r=t.length;i<r;++i)if(m=t[i].parts,1!==t[i].commonLength)for(D=0,A=m.length;D<A;++D)(0,w.$K)((N=m[D]).endIndex)?(to(N,N.endIndex),e=!0):N.startBox>n&&no(N);return Q.remove(),this._hasEllipsis=e,e},setMaxSize:function Wd(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=[],m=!1,D=!1,A=n;pd.call(i);var N=qp(this.element),Q=i.renderer.text(Ql).attr(i._styles).append(i.renderer.root),se=Q.getBBox().width,{width:we,height:Re}=i._getElementBBox();return(we||Re)&&(we>n||t&&Re>t)&&(n-se<0?A=0:A-=se,r=Ri(r=pr(i.element,i._texts,n,A,e),A,e,t,parseFloat(this._getLineHeight())),this._texts=r.reduce((Ue,st)=>Ue.concat(st.parts),[]).filter(Ue=>""!==Ue.value).map(Ue=>(Ue.stroke&&Ue.tspan.parentNode.appendChild(Ue.stroke),Ue)).map(Ue=>(Ue.tspan.parentNode.appendChild(Ue.tspan),Ue)),!this._texts.length&&(this._texts=null),m=!0,this._texts?Gs(this):(this.element.textContent="",D=!0)),Q.remove(),i._hasEllipsis=m,N(),{rowCount:r.length,textChanged:m,textIsEmpty:D}},restoreText:pd,_getLineHeight(){return isNaN(parseFloat(this._styles[Tu]))?12:this._styles[Tu]}}),Xa.prototype={constructor:Xa,_init:function(){this._defs=this._createElement("defs").append(this.root),this._animationController=new xc(this.root.element),this._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},setOptions:function(n){return this.rtl=!!n.rtl,this.encodeHtml=!!n.encodeHtml,this.updateAnimationOptions(n.animation||{}),this.root.attr({direction:this.rtl?"rtl":"ltr"}),this},_createElement:function(n,t,e){var i=new js(this,n,e);return t&&i.attr(t),i},lock:function(){return 0===this._locker&&(this._backed=!this._$container.is(":visible"),this._backed&&function Ea(n){0===Al().backupCounter&&b.Z.getBody().appendChild(Al().backupContainer),++Al().backupCounter,n.append({element:Al().backupContainer})}(this.root)),++this._locker,this},unlock:function(){return--this._locker,0===this._locker&&(this._backed&&function Gp(n,t){n.append({element:t}),--Al().backupCounter,0===Al().backupCounter&&b.Z.getBody().removeChild(Al().backupContainer)}(this.root,this._$container[0]),this._backed=!1),this},resize:function(n,t){return n>=0&&t>=0&&this.root.attr({width:n,height:t}),this},dispose:function(){var n;for(n in this.root.dispose(),this._defs.dispose(),this._animationController.dispose(),fd.removeByRenderer(this),this)this[n]=null;return this},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(n){return hs(this._animation,n),this},stopAllAnimations:function(n){return this._animationController[n?"lock":"stop"](),this},animateElement:function(n,t,e){return this._animationController.animateElement(n,t,e),this},svg:function(){return this.root.markup()},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(n){this._animationController.onEndAnimation(n)},rect:function(n,t,e,i){return new Vh(this).attr({x:n||0,y:t||0,width:e||0,height:i||0})},simpleRect:function(){return this._createElement("rect")},circle:function(n,t,e){return this._createElement("circle",{cx:n||0,cy:t||0,r:e||0})},g:function(){return this._createElement("g")},image:function(n,t,e,i,r,m){var D=this._createElement("image",{x:n||0,y:t||0,width:e||0,height:i||0,preserveAspectRatio:dd[En(m)]||cs});return D.element.setAttributeNS("http://www.w3.org/1999/xlink","href",r||""),D},path:function(n,t){return new Fh(this,t).attr({points:n||[]})},arc:function(n,t,e,i,r,m){return new gd(this).attr({x:n||0,y:t||0,innerRadius:e||0,outerRadius:i||0,startAngle:r||0,endAngle:m||0})},text:function(n,t,e){return new Nh(this).attr({text:n,x:t||0,y:e||0})},linearGradient:function(n){var t=Ya(),e=this,i=e._createElement("linearGradient",{id:t}).append(e._defs);return i.id=t,n.forEach(r=>{e._createElement("stop",{offset:r.offset,"stop-color":r["stop-color"]}).append(i)}),i},pattern:function(n,t,e){var i=(t=t||{}).step||6,r=i/2,m=1.5*i,D=e||Ya(),A="right"===En(t.direction)?"M "+r+" "+-r+" L "+-r+" "+r+" M 0 "+i+" L "+i+" 0 M "+m+" "+r+" L "+r+" "+m:"M 0 0 L "+i+" "+i+" M "+-r+" "+r+" L "+r+" "+m+" M "+r+" "+-r+" L "+m+" "+r,N=this._createElement("pattern",{id:D,width:i,height:i,patternUnits:"userSpaceOnUse"}).append(this._defs);return N.id=D,this.rect(0,0,i,i).attr({fill:n,opacity:t.opacity}).append(N),new Fh(this).attr({d:A,"stroke-width":t.width||1,stroke:n}).append(N),N},_getPointsWithYOffset:function(n,t){return n.map(function(e,i){return i%2!=0?e+t:e})},clipShape:function(n,t){var e=Ya(),i=this._createElement("clipPath",{id:e}).append(this._defs),r=n.apply(this,t).append(i);return r.id=e,r.remove=function(){throw"Not implemented"},r.dispose=function(){return i.dispose(),i=null,this},r},clipRect(n,t,e,i){return this.clipShape(this.rect,arguments)},clipCircle(n,t,e){return this.clipShape(this.circle,arguments)},shadowFilter:function(n,t,e,i,r,m,D,A,N){var Q=Ya(),se=this._createElement("filter",{id:Q,x:n||0,y:t||0,width:e||0,height:i||0}).append(this._defs),we=this._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:D||0}).append(se),Re=this._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:r||0,dy:m||0}).append(se),Ue=this._createElement("feFlood",{result:"floodResult","flood-color":A||"","flood-opacity":N}).append(se),st=this._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(se),Ot=this._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(se);return se.id=Q,se.gaussianBlur=we,se.offset=Re,se.flood=Ue,se.composite=st,se.finalComposite=Ot,se.attr=function(Kt){var sn={},wn={},rn={};return"x"in Kt&&(sn.x=Kt.x),"y"in Kt&&(sn.y=Kt.y),"width"in Kt&&(sn.width=Kt.width),"height"in Kt&&(sn.height=Kt.height),cl(this,sn),"blur"in Kt&&this.gaussianBlur.attr({stdDeviation:Kt.blur}),"offsetX"in Kt&&(wn.dx=Kt.offsetX),"offsetY"in Kt&&(wn.dy=Kt.offsetY),this.offset.attr(wn),"color"in Kt&&(rn["flood-color"]=Kt.color),"opacity"in Kt&&(rn["flood-opacity"]=Kt.opacity),this.flood.attr(rn),this},se},brightFilter:function(n,t){var e=Ya(),i=this._createElement("filter",{id:e}).append(this._defs),r=this._createElement("feComponentTransfer").append(i),m={type:n,slope:t};return i.id=e,this._createElement("feFuncR",m).append(r),this._createElement("feFuncG",m).append(r),this._createElement("feFuncB",m).append(r),i},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var n=Ya(),t=this._createElement("filter",{id:n}).append(this._defs);return this._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(t),t.id=n,this._grayScaleFilter=t,t},initHatching:function(){var e,n=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:Ya()},t=n.byHash;for(e in t)t[e].pattern.dispose();n.byHash={},n.refToHash={},n.nextId=0},lockHatching:function(n,t,e){var m,D,i=this._hatchingStorage,r=function tm(n,t){return"@"+n+"::"+t.step+":"+t.width+":"+t.opacity+":"+t.direction}(n,t);return i.refToHash[e]!==r&&(e&&this.releaseHatching(e),(m=i.byHash[r])||(D=this.pattern(n,t,i.baseId+"-hatching-"+i.nextId++),m=i.byHash[r]={pattern:D,count:0},i.refToHash[D.id]=r),++m.count,e=m.pattern.id),e},releaseHatching:function(n){var t=this._hatchingStorage,e=t.refToHash[n],i=t.byHash[e];i&&0==--i.count&&(i.pattern.dispose(),delete t.byHash[e],delete t.refToHash[n])}};var fd=function(){var n=[];return{add:function(t){n.push(t)},remove:function(t){n=n.filter(function(e){return e!==t})},removeByRenderer:function(t){n=n.filter(function(e){return e.renderer!==t})},fire:function(){n.forEach(function(t){t()})}}}(),Hh=Math.min,eg=Math.max,$s=Math.round,ng={left:0,center:1,right:2},ig={top:0,center:1,bottom:2},nm={horizontal:0,vertical:1},zh={};function Wh(n,t,e){var i=En(n);return i in t?t[i]:e}function rm(n){var t=Wh(n.side,nm,1),e=[Wh(n.horizontalAlignment,ng,1),Wh(n.verticalAlignment,ig,0)];return{side:t,primary:c_(e[t]),secondary:e[1-t],weak:n.weak,priority:n.priority||0,header:n.header,position:n.position}}function c_(n){return n<2?0:2}function kc(n,t){return(n>0?-1:1)*t}function og(n,t,e){var i=n.side,r=n.element.measure([t[2]-t[0],t[3]-t[1]]),D=r[i]<t[2+i]-t[i]-("indside"===n.position?0:e[i]);return D&&("inside"!==n.position&&(t[n.primary+i]+=kc(n.primary,r[i])),n.size=r),D}function os(n,t,e){var i=n.side,r=function Rs(n){return 1-n}(i),m=[],D=function rg(n,t,e,i){return zh[n](t,e,i)}(n.secondary,e[r],e[2+r],n.size[r]);return m[i]=$s(m[2+i]=t[n.primary+i]+("inside"===n.position?kc(n.primary,n.size[i]):0)),m[n.primary+i]=$s(t[n.primary+i]-kc(n.primary,n.size[i])),"inside"!==n.position&&(t[n.primary+i]=m[n.primary+i]),m[r]=$s(D[0]),m[2+r]=$s(D[1]),m}function Ud(n,t,e,i,r,m){var D=os(n,t,e),A=os(n,i,i);r[n.side]>0?(r[n.side]-=n.size[n.side],m[n.primary+n.side]=D[n.primary+n.side],n.element.freeSpace()):n.element.move(D,A)}function Rc(){this._targets=[]}function Ys(n,t){var e=t.slice(),i=os(n,e,e);return i[n.side]=t[n.side],i[2+n.side]=t[2+n.side],i}function p_(n,t){var e=n.side,i=n.primary;return{side:e,primary:i,secondary:n.secondary,priority:0,element:{measure:function(m){var D=m.slice(),A=t.element.measure(m.slice());m[i]-=A[i];var N=n.element.measure(m.slice());return D[e]=A[e]=N[e]=Math.max(N[e],A[e]),t.size=A,n.size=N,D},move:function(m,D){if(D[2]-D[0]<n.size[0]+t.size[0]-2)this.freeSpace();else{var A=Ys(t,D);D[2+t.primary]=A[t.primary];var N=Ys(n,D);D[2+t.primary]<m[2+t.primary]&&n.size[n.primary]>m[2+n.primary]-m[n.primary]&&(m[2+t.primary]=D[2+t.primary]);var Q=Ys(n,m);Q[2+t.primary]>D[2+t.primary]&&(m[2+t.primary]=D[2+t.primary],Q=Ys(n,m)),t.element.move(A),n.element.move(Q,N)}},freeSpace:function(){n.element.freeSpace(),t.element.freeSpace()}}}}zh[0]=function(n,t,e){return[n,Hh(t,n+e)]},zh[1]=function(n,t,e){return[eg(n,(n+t-e)/2),Hh(t,(n+t+e)/2)]},zh[2]=function(n,t,e){return[eg(n,t-e),t]},Rc.prototype={constructor:Rc,dispose:function(){this._targets=null},add:function(n){this._targets.push(n)},forward:function(n,t){var r,e=n.slice(),i=function ag(n){var t,r,e=n.length,i=[];for(t=0;t<e;++t)(r=n[t].layoutOptions())&&((r=rm(r)).element=n[t],i.push(r));return i.sort(function(m,D){return D.side-m.side||m.priority-D.priority}),i=function h_(n){var e,t=n.filter(function(i){return!0===i.weak})[0];return t&&(e=n.filter(function(i){return t.primary===i.primary&&i.side===t.side&&i!==t})[0]),t&&e?[p_(e,t)].concat(n.filter(function(i){return!(i===e||i===t)})):n}(i),i}(this._targets),m=i.length,D=[];for(r=0;r<m;++r)og(i[r],e,t)?D.push(i[r]):i[r].element.freeSpace();return this._cache=D.reverse(),e},backward:function(n,t){var A,N,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],i=n.slice(),r=n.slice(),m=this._cache,D=0,Q=m.length;for(N=0;N<Q;++N)(A=m[N]).side!==D&&(i=n.slice()),Ud(A,i,t,r,e,n),D=A.side;return e}};const sg=Rc;var g_=u(2805),na=u(9589),om=u(3824),lg=u(9870),ug=wu.ERROR_MESSAGES,f_=function(n,t){return function(e,i){t("incidentOccurred",{target:{id:e,type:"E"===e[0]?"error":"warning",args:i,text:na.WU.apply(null,[ug[e]].concat(i||[])),widget:n,version:g_.i}})}};var Zh=Math.floor,Kh=wu.log,dg="rtlEnabled",Ru="dx-sized-element",Gh=vo.Z.prototype.option;function Lc(){return!0}function cg(){return!1}function sm(n){n.component._eventsStrategy.hasEvent("incidentOccurred")||Kh.apply(null,[n.target.id].concat(n.target.args||[]))}function md(n){return n.reduce(function(t,e){return e>0&&!t?e:t},0)}function hg(n){n.forEach(t=>t())}var t,e,$h=(0,mi.Ym)()?vo.Z.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred",actionSettings:{excludeValidators:["disabled"]}},onDrawn:{name:"drawn",actionSettings:{excludeValidators:["disabled"]}}},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{onIncidentOccurred:sm})},_useLinks:!0,_init:function(){var n=this;n._$element.children("."+Ru).remove(),n.callBase.apply(n,arguments),n._changesLocker=0,n._optionChangedLocker=0,n._asyncFirstDrawing=!0,n._changes=Ph(),n._suspendChanges(),n._themeManager=n._createThemeManager(),n._themeManager.setCallback(function(){n._requestChange(n._themeDependentChanges)}),n._renderElementAttributes(),n._initRenderer();var t=n._useLinks&&n._renderer.root;t&&t.enableLinks().virtualLink("core").virtualLink("peripheral"),n._renderVisibilityChange(),n._attachVisibilityChangeHandlers(),n._toggleParentsScrollSubscription(this._isVisible()),n._initEventTrigger(),n._incidentOccurred=f_(n.NAME,n._eventTrigger),n._layout=new sg,t&&t.linkAfter("core"),n._initPlugins(),n._initCore(),t&&t.linkAfter(),n._change(n._initialChanges)},_createThemeManager(){return new so(this._getThemeManagerOptions())},_getThemeManagerOptions(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var n=this;(0,O.S6)(n._plugins,function(t,e){e.init.call(n)})},_disposePlugins:function(){var n=this;(0,O.S6)(n._plugins.slice().reverse(),function(t,e){e.dispose.call(n)})},_change:function(n){this._changes.add(n)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){0==--this._changesLocker&&this._changes.count()>0&&!this._applyingChanges&&(this._renderer.lock(),this._applyingChanges=!0,this._applyChanges(),this._changes.reset(),this._applyingChanges=!1,this._changesApplied(),this._renderer.unlock(),this._optionsQueue&&this._applyQueuedOptions(),this.resolveItemsDeferred(this._legend?[this._legend]:[]),this._optionChangedLocker++,this._notify(),this._optionChangedLocker--)},resolveItemsDeferred(n){this._resolveDeferred(this._getTemplatesItems(n))},_collectTemplatesFromItems:n=>n.reduce((t,e)=>({items:t.items.concat(e.getTemplatesDef()),groups:t.groups.concat(e.getTemplatesGroups())}),{items:[],groups:[]}),_getTemplatesItems(n){var t=this._collectTemplatesFromItems(n),e=this._getExtraTemplatesItems();return{items:e.items.concat(t.items),groups:e.groups.concat(t.groups),launchRequest:[e.launchRequest],doneRequest:[e.doneRequest]}},_getExtraTemplatesItems:()=>({items:[],groups:[],launchRequest:()=>{},doneRequest:()=>{}}),_resolveDeferred(n){var{items:t,launchRequest:e,doneRequest:i,groups:r}=n,m=this;if(m._setGroupsVisibility(r,"hidden"),m._changesApplying)return m._changesApplying=!1,void hg(i);var D=!0;P.gx.apply(m,t).done(()=>{if(D)m._setGroupsVisibility(r,"visible");else{hg(e),m._changesApplying=!0;var A=["LAYOUT","FULL_RENDER"];m._asyncFirstDrawing?(A.push("FORCE_FIRST_DRAWING"),m._asyncFirstDrawing=!1):A.push("FORCE_DRAWING"),m._requestChange(A),m._setGroupsVisibility(r,"visible")}}),D=!1},_setGroupsVisibility(n,t){n.forEach(e=>e.attr({visibility:t}))},_applyQueuedOptions:function(){var n=this._optionsQueue;this._optionsQueue=null,this.beginUpdate(),(0,O.S6)(n,function(t,e){e()}),this.endUpdate()},_requestChange:function(n){this._suspendChanges(),this._change(n),this._resumeChanges()},_applyChanges:function(){var e,n=this._changes,t=this._totalChangesOrder,i=t.length;for(e=0;e<i;++e)n.has(t[e])&&this["_change_"+t[e]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var n=this._renderer,t=n.root;this.option("disabled")?(this._initDisabledState=t.attr("pointer-events"),t.attr({"pointer-events":"none",filter:n.getGrayScaleFilter().id})):"none"===t.attr("pointer-events")&&t.attr({"pointer-events":(0,w.$K)(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){this._canvas=this._calculateCanvas(),this._renderer=new Xa({cssClass:this._rootClassPrefix+" "+this._rootClass,pathModified:this.option("pathModified"),container:this._$element[0]}),this._renderer.resize(this._canvas.width,this._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:E.ZT,render:function(){this._requestChange(["CONTAINER_SIZE"]);var n=this._isVisible();this._toggleParentsScrollSubscription(n),!n&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(n){var t=(0,l.Z)(this._renderer.root.element).parents();"generic"===x.Z.real().platform&&(t=t.add((0,mi.Jj)())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),d.Z.off((0,l.Z)().add(this._$prevRootParents),"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),n&&(d.Z.on(t,"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),this._$prevRootParents=t)},_stopCurrentHandling:E.ZT,_dispose:function(){var n=this;this._disposed||(n.callBase.apply(n,arguments),n._toggleParentsScrollSubscription(!1),n._removeResizeHandler(),n._layout.dispose(),n._eventTrigger.dispose(),n._disposeCore(),n._disposePlugins(),n._disposeRenderer(),n._themeManager.dispose(),n._themeManager=n._renderer=n._eventTrigger=null)},_initEventTrigger:function(){var n=this;n._eventTrigger=function Uh(n,t){var i,e={};return(0,O.S6)(n,function(D,A){A.name&&r(D)}),m.change=function(D){var A=n[D];return A&&((i=i||{})[D]=A),!!A},m.applyChanges=function(){i&&((0,O.S6)(i,function(D,A){r(A.newName||D)}),i=null)},m.dispose=function(){n=t=e=null},m;function r(D){var A=n[D];e[A.name]=t(D,A.actionSettings)}function m(D,A,N){e[D](A),N&&N()}}(n._eventsMap,function(t,e){return n._createActionByOption(t,e)})},_calculateCanvas:function(){var n=this,t=n.option("size")||{},e=n.option("margin")||{},i=n._getDefaultSize()||{},r=(N,Q,se)=>{if(function lm(n){return(0,w.$K)(n)&&n>0}(N[Q])||!(0,mi.Ym)())return 0;var we=se(n._$element);return we<=1?0:we},m=r(t,"width",N=>(0,s.dz)(N)),D=r(t,"height",N=>(0,s.Cr)(N)),A={width:t.width<=0?0:Zh(md([t.width,m,i.width])),height:t.height<=0?0:Zh(md([t.height,D,i.height])),left:md([e.left,i.left]),top:md([e.top,i.top]),right:md([e.right,i.right]),bottom:md([e.bottom,i.bottom])};return(A.width-A.left-A.right<=0||A.height-A.top-A.bottom<=0)&&(A={width:0,height:0}),A},_updateSize:function(){var n=this._calculateCanvas();(function jh(n,t){return!(n.width===t.width&&n.height===t.height&&n.left===t.left&&n.top===t.top&&n.right===t.right&&n.bottom===t.bottom)}(this._canvas,n)||this.__forceRender)&&(this._canvas=n,this._recreateSizeDependentObjects(!0),this._renderer.resize(n.width,n.height),this._change(["LAYOUT"]))},_recreateSizeDependentObjects:E.ZT,_getMinSize:function(){return[0,0]},_getAlignmentRect:E.ZT,_setContentSize:function(){var n=this._canvas,t=this._layout,e=n.width>0&&n.height>0?[n.left,n.top,n.width-n.right,n.height-n.bottom]:[0,0,0,0];e=t.forward(e,this._getMinSize());var i=this._applySize(e)||e;t.backward(i,this._getAlignmentRect()||i)},_getOption:function(n,t){var e=this._themeManager.theme(n),i=this.option(n);return t?void 0!==i?i:e:(0,y.l)(!0,{},e,i)},_setupResizeHandler:function(){var n=this,t=Qn(n._getOption("redrawOnResize",!0),!0);n._disposeResizeHandler&&n._removeResizeHandler(),n._disposeResizeHandler=function am(n,t,e){var i,r=function Zd(n){return(t,e)=>{var{handler:i,dispose:r}=function m_(n,t){var e,i=function(){clearTimeout(e),e=setTimeout(n,100)};return{handler:i,dispose(){clearTimeout(e),t(i)}}}(n,e);return t(i),r}}(e);return"windowonly"===En(t)?i=r(m=>om.Z.add(m),m=>om.Z.remove(m)):!0===t&&(i=r(m=>lg.Z.observe(n,m),()=>lg.Z.unobserve(n))),i}(n._$element[0],t,()=>n._requestChange(["CONTAINER_SIZE"]))},_removeResizeHandler:function(){this._disposeResizeHandler&&(this._disposeResizeHandler(),this._disposeResizeHandler=null)},_onBeginUpdate:E.ZT,beginUpdate:function(){var n=this;return n._initialized&&n._isUpdateAllowed()&&(n._onBeginUpdate(),n._suspendChanges()),n.callBase.apply(n,arguments),n},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(n){var t=this;if(!(t._initialized&&t._applyingChanges&&(arguments.length>1||(0,w.Kn)(n))))return Gh.apply(t,arguments);t._optionsQueue=t._optionsQueue||[],t._optionsQueue.push(t._getActionForUpdating(arguments))},_getActionForUpdating:function(n){var t=this;return function(){Gh.apply(t,n)}},_clean:E.ZT,_render:E.ZT,_optionChanged:function(n){var t=this;if(!t._optionChangedLocker){var e=t.getPartialChangeOptionsName(n),i=[];e.length>0?e.forEach(r=>i.push(t._partialOptionChangesMap[r])):i.push(t._optionChangesMap[n.name]),i=i.filter(r=>!!r),t._eventTrigger.change(n.name)?t._change(["EVENTS"]):i.length>0?t._change(i):t.callBase.apply(t,arguments)}},_notify:E.ZT,_changesApplied:E.ZT,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(n){var t=this,e=n.fullName,i=e.split(/[.]/),r=n.name,m=n.value,D=this._partialOptionChangesPath[r],A=[];return D&&(!0===D?A.push(r):(D.forEach(N=>{e.indexOf(N)>=0&&A.push(N)}),1===i.length&&("object"===(0,w.dt)(m)?t._addOptionsNameForPartialUpdate(m,D,A):"array"===(0,w.dt)(m)&&m.length>0&&m.every(N=>t._checkOptionsForPartialUpdate(N,D))&&m.forEach(N=>t._addOptionsNameForPartialUpdate(N,D,A))))),A.filter((N,Q,se)=>se.indexOf(N)===Q)},_checkOptionsForPartialUpdate:function(n,t){return!Object.keys(n).some(e=>-1===t.indexOf(e))},_addOptionsNameForPartialUpdate:function(n,t,e){var i=Object.keys(n);this._checkOptionsForPartialUpdate(n,t)&&i.forEach(r=>t.indexOf(r)>-1&&e.push(r))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option(dg))},_getRendererOptions:function(){return{rtl:this.option(dg),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var n=this._canvas||{};return{width:n.width,height:n.height}},isReady:cg,_dataIsReady:Lc,_resetIsReady:function(){this.isReady=cg},_drawn:function(){var n=this;n.isReady=cg,n._dataIsReady()&&n._renderer.onEndAnimation(function(){n.isReady=Lc}),n._eventTrigger("drawn",{})}}):(t=vo.Z.inherit({_initTemplates(){},ctor(i,r){this.callBase(i,r);var m=b.Z.createElement("div"),D=r&&(0,w.kE)(r.width)?r.width+"px":"100%",A=r&&(0,w.kE)(r.height)?r.height+"px":this._getDefaultSize().height+"px";b.Z.setStyle(m,"width",D),b.Z.setStyle(m,"height",A),b.Z.setClass(m,Ru),b.Z.insertElement(i,m)}}),e=t.inherit,t.inherit=function(i){for(var r in i)((0,w.mf)(i[r])&&"_"!==r.substr(0,1)&&"option"!==r||"_dispose"===r||"_optionChanged"===r)&&(i[r]=E.ZT);return e.call(this,i)},t);const xl=$h;Ld($h);var Yh=y.l,pg=so.inherit({ctor(n){this.callBase.apply(this,arguments),this._subTheme=n.subTheme},_initializeTheme:function(){var t,n=this;n._subTheme&&(t=Yh(!0,{},n._theme[n._subTheme],n._theme),Yh(!0,n._theme,t)),n.callBase.apply(n,arguments)}});const um={ThemeManager:pg};var gg=u(1186),Xh=u(3068),So=u(8690),Xs="gauge-tooltip",fg=Xh.Z.add,dm=ar.Z.inherit({ctor:function(n){var t=this;t._element=n.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(n.container,{name:"tracker",after:"peripheral"}),t._showTooltipCallback=function(){var e=t._tooltipEvent.target,i=e["gauge-data-target"],r=e["gauge-data-info"];if(t._targetEvent=null,t._tooltipTarget!==e){var m=D=>{D&&(t._tooltipTarget=e)};m(t._callbacks["tooltip-show"](i,r,m))}},t._hideTooltipCallback=function(){t._hideTooltipTimeout=null,t._targetEvent=null,t._tooltipTarget&&(t._callbacks["tooltip-hide"](),t._tooltipTarget=null)},t._dispose=function(){clearTimeout(t._hideTooltipTimeout),t._showTooltipCallback=t._hideTooltipCallback=t._dispose=null}},dispose:function(){return this._dispose(),this.deactivate(),this._element.off("."+Xs),this._element.linkOff(),this._element=this._context=this._callbacks=null,this},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(n,t,e){return n.data({"gauge-data-target":t,"gauge-data-info":e}).append(this._element),this},detach:function(n){return n.remove(),this},setTooltipState:function(n){if(this._element.off("."+Xs),n){var t={tracker:this};this._element.on((0,k.V4)([So.Z.move],Xs),t,Kd).on((0,k.V4)([So.Z.out],Xs),t,cm).on((0,k.V4)([So.Z.down],Xs),t,_g).on((0,k.V4)([So.Z.up],Xs),t,vg).on((0,k.V4)([gg.u],Xs),t,Jh)}return this},setCallbacks:function(n){return this._callbacks=n,this},_showTooltip:function(n){clearTimeout(this._hideTooltipTimeout),this._hideTooltipTimeout=null,this._tooltipTarget!==n.target&&(this._tooltipEvent=n,this._showTooltipCallback())},_hideTooltip:function(n){clearTimeout(this._hideTooltipTimeout),n?this._hideTooltipTimeout=setTimeout(this._hideTooltipCallback,n):this._hideTooltipCallback()}}),mg=null;function Kd(n){var t=n.data.tracker;t._x=n.pageX,t._y=n.pageY,t._showTooltip(n)}function cm(n){n.data.tracker._hideTooltip(100)}function Jh(n){n.data.tracker._hideTooltip()}function _g(n){(mg=n.data.tracker)._touch=!0,Kd(n)}function vg(){mg._touch=!1}function Bc(n){mg&&!mg._touch&&(mg._hideTooltip(100),mg=null)}fg(function(){d.Z.subscribeGlobal(b.Z.getDocument(),(0,k.V4)([So.Z.down],Xs),Bc)});const yg=dm;var Va=u(5062),il=u(8606),yn=u(9009),Qh=u(5239),_d=u(2160),Ls=[So.Z.down,So.Z.move].join(" "),hm=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],C_=["PNG","JPEG","GIF"],x_=["PDF","SVG"],Vc="dx-export-menu",wg="export-element-type",Eg="export-element-format";function tp(){var n=il.BH.testFormats(C_);return{unsupported:n.unsupported,supported:n.supported.concat(x_)}}function Hc(n,t,e){if(e=e||tp(),n=String(n).toUpperCase(),-1!==e.supported.indexOf(n))return n;-1!==e.unsupported.indexOf(n)&&t&&t("W2108",[n])}function np(n){return"SVG"===n?il.YP.getData:"PDF"===n?il.eA.getData:il.BH.getData}function Og(n,t,e){var i={},r=e.type,m=e.format,D=function b_(n,t,e){var r=40+30*e,m={rect:{width:118,height:30,x:-84,y:r},text:{x:(n.rtl?105:15)-85,y:r+30-8}};return"printing"===t&&(m.separator={stroke:n.button.default.borderColor,"stroke-width":1,cursor:"pointer",sharp:"v",d:"M -85 "+(r+30-1)+" L 35 "+(r+30-1)}),m}(t,r,e.itemIndex),A=ci(t.font);A["pointer-events"]="none";var N=n.g().attr({class:Vc+"-list-item"});i[wg]=r,m&&(i[Eg]=m);var Q=n.rect();Q.attr(D.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),Q.on(Qh.B+".export",()=>Q.attr({fill:t.button.hover.backgroundColor})).on(Qh.u+".export",()=>Q.attr({fill:null})),Q.append(N);var se=n.text(e.text).css(A).attr(D.text).append(N);return"printing"===r&&n.path(null,"line").attr(D.separator).append(N),{g:N,rect:Q,resetState:()=>Q.attr({fill:null}),fixPosition:()=>{var we=se.getBBox();se.move(D.text.x-we.x-(t.rtl?we.width:0))}}}var mm=function(n){var t=this._renderer=n.renderer;this._incidentOccurred=n.incidentOccurred,this._exportTo=n.exportTo,this._print=n.print,this._shadow=t.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=t.g().attr({class:Vc,[Eu.Nc]:!0}).linkOn(t.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=t.g().attr({class:Vc+"-button"}).append(this._group),this._listGroup=t.g().attr({class:Vc+"-list"}).append(this._group),this._overlay=t.rect(-85,39,120,0),this._overlay.attr({"stroke-width":1,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=tp(),this._subscribeEvents()};function Tg(n,t,e,i){(i||t.format)&&(i=Hc(i||t.format,n._incidentOccurred));var{width:r,height:m}=n.getSize();return{format:i||"PNG",fileName:e||t.fileName||"file",backgroundColor:t.backgroundColor,width:r,height:m,margin:t.margin,svgToCanvas:t.svgToCanvas,exportingAction:n._createActionByOption("onExporting",{excludeValidators:["disabled"]}),exportedAction:n._createActionByOption("onExported",{excludeValidators:["disabled"]}),fileSavingAction:n._createActionByOption("onFileSaving",{excludeValidators:["disabled"]})}}(0,y.l)(mm.prototype,{getLayoutOptions(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var n=this._buttonGroup.getBBox();return n.cutSide="vertical",n.cutLayoutSide="top",n.height+=10,n.position={vertical:"top",horizontal:"right"},n.verticalAlignment="top",n.horizontalAlignment="right",n},shift(n,t){this._group.attr({translateY:this._group.attr("translateY")+t})},draw(n,t,e){this._group.move(n-35-2-3+e.left,Math.floor(t/2-17.5));var i=this.getLayoutOptions();return(i.width>n||i.height>t)&&this.freeSpace(),this},show(){this._group.linkAppend()},hide(){this._group.linkRemove()},setOptions(n){this._options=n,n.formats=n.formats?n.formats.reduce((t,e)=>((e=Hc(e,this._incidentOccurred,this.validFormats))&&t.push(e),t),[]):this.validFormats.supported.slice(),n.printingEnabled=void 0===n.printingEnabled||n.printingEnabled,n.enabled&&(n.formats.length||n.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure(){this._fillSpace();var n=this._options.button.margin;return[35+n.left+n.right,35+n.top+n.bottom]},move(n){var t=this._options.button.margin;this._group.attr({translateX:Math.round(n[0])+t.left,translateY:Math.round(n[1])+t.top})},_fillSpace(){this._hiddenDueToLayout=!1,this.show()},freeSpace(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach(n=>n.resetState())},_showList(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach(n=>n.fixPosition())},_setButtonState(n){var t=this._options.button[n];this._button.attr({stroke:t.borderColor,fill:t.backgroundColor}),this._icon.attr({fill:t.color})},_subscribeEvents(){this._renderer.root.on(So.Z.up+".export",n=>{var t=n.target[wg];t?"button"===t?this._listShown?(this._setButtonState("default"),this._hideList()):(this._setButtonState("focus"),this._showList()):"printing"===t?(this._print(),this._hideList()):"exporting"===t&&(this._exportTo(n.target[Eg]),this._hideList()):this._button&&this._hideList()}),this._listGroup.on(Ls,n=>n.stopPropagation()),this._buttonGroup.on(So.Z.enter,()=>this._setButtonState("hover")),this._buttonGroup.on(So.Z.leave,()=>this._setButtonState(this._listShown?"focus":"default")),this._buttonGroup.on(So.Z.down+".export",()=>this._setButtonState("active"))},_unsubscribeEvents(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton(){var n=this._renderer,t=this._options,e={"export-element-type":"button"};this._button||(this._button=n.rect(0,0,35,35).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:t.button.default.backgroundColor,stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(e),this._icon=n.path(hm).append(this._buttonGroup),this._icon.attr({fill:t.button.default.color,cursor:"pointer"}),this._icon.data(e),this._buttonGroup.setTitle(yn.Z.format("vizExport-titleMenuText")))},_updateList(){var n=this._options,t=n.button.default,e=this._listGroup,i=function gm(n,t){var e=[];return t.printingEnabled&&e.push(Og(n,t,{type:"printing",text:yn.Z.format("vizExport-printingButtonText"),itemIndex:e.length})),t.formats.reduce((i,r)=>(i.push(Og(n,t,{type:"exporting",text:yn.Z.getFormatter("vizExport-exportButtonText")(r),format:r,itemIndex:i.length})),i),e)}(this._renderer,n);this._shadow.attr({color:n.shadowColor}),this._overlay.attr({height:30*i.length+2,fill:t.backgroundColor,stroke:t.borderColor}),e.clear(),this._overlay.append(e),i.forEach(r=>r.g.append(e)),this._menuItems=i}});var Bu={name:"export",init(){this._exportMenu=new mm({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:()=>this.print(),exportTo:n=>this.exportTo(void 0,n)}),this._layout.add(this._exportMenu)},dispose(){this._exportMenu.dispose()},members:{_getExportMenuOptions(){return(0,y.l)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents(){var n=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),n},exportTo(n,t){var e=this._exportMenu,i=Tg(this,this._getOption("export")||{},n,t);e&&e.hide();var r=this._disablePointerEvents(),m=(0,il.xD)(this._renderer.root.element,i,np(i.format)).fail(_d.k.error).always(()=>{this._renderer.root.attr({"pointer-events":r})});return e&&e.show(),m},print(){var n=this._exportMenu,t=Tg(this,this._getOption("export")||{});t.exportingAction=null,t.exportedAction=null,t.margin=0,t.format="PNG",t.useBase64=!0,t.fileSavingAction=r=>{(function Sg(n,t){var e=(0,mi.Jj)().document,i=e.createElement("iframe");i.onload=function pm(n,t){return function(){var e=this.contentWindow,i=e.document.createElement("img");e.document.body.appendChild(i);var r=function xd(n){n.style.width="21cm";var t=(0,s.dz)(n);return n.style.width="",t}(e.document.body)/t.width;r<1&&(e.document.body.style.transform="scale(".concat(r,")"),e.document.body.style["transform-origin"]="0 0");var m=()=>{this.parentElement.removeChild(this)};i.addEventListener("load",()=>{e.focus(),e.print()}),i.addEventListener("error",m),e.addEventListener("afterprint",()=>{setTimeout(m,0)}),i.src=n}}(n,t),i.style.position="fixed",i.style.width="0",i.style.height="0",i.style.right="0",i.style.bottom="0",e.body.appendChild(i)})("data:image/png;base64,".concat(r.data),{width:t.width,__test:t.__test}),r.cancel=!0};var e=this._disablePointerEvents();n&&n.hide();var i=(0,il.xD)(this._renderer.root.element,t,np(t.format)).fail(_d.k.error).always(()=>{this._renderer.root.attr({"pointer-events":e})});return n&&n.show(),i}},customize(n){var t=n.prototype;n.addChange({code:"EXPORT",handler(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),t._optionChangesMap.onExporting="EXPORT",t._optionChangesMap.onExported="EXPORT",t._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]},zc=Math.round,Ig={horizontal:0,vertical:0},ip={center:.5,right:1,bottom:1,left:0,top:0};function jd(n){this._options=n}function Wc(n,t){this._renderElement=n,this._cacheBBox=t}jd.prototype={constructor:jd,position:function(n){var t=n.of.getLayoutOptions(),e=this.getLayoutOptions(),i=n.at,r=n.my,m=n.offset||Ig,D=-ip[r.horizontal]*e.width+t.x+ip[i.horizontal]*t.width+parseInt(m.horizontal),A=-ip[r.vertical]*e.height+t.y+ip[i.vertical]*t.height+parseInt(m.vertical);this.shift(zc(D),zc(A))},getLayoutOptions:E.ZT};var rp=Wc.prototype=(0,Se.d9)(jd.prototype);rp.constructor=Wc,rp.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},rp.shift=function(n,t){var e=this.getLayoutOptions();this._renderElement.move(zc(n-e.x),zc(t-e.y))};var kl=Number,Rl=ti(["left","center","right"]),Uc=ti(["top","bottom"]);function op(n){return!!(n&&String(n).length>0)}function ap(n,t,e,i,r){n.attr({text:t}).setMaxSize(e,r,i).textChanged&&n.setTitle(t)}function Ag(n){return n>=0?kl(n):10}var Zc=function(n){this._params=n,this._group=n.renderer.g().attr({class:n.cssClass}).linkOn(n.root||n.renderer.root,"title"),this._hasText=!1};(0,y.l)(Zc.prototype,jd.prototype,{dispose:function(){this._group.linkRemove(),this._group.linkOff(),this._titleElement&&(this._clipRect.dispose(),this._titleElement=this._subtitleElement=this._clipRect=null),this._params=this._group=this._options=null},_updateOptions:function(n){this._options=n,this._options.horizontalAlignment=Rl(n.horizontalAlignment,"center"),this._options.verticalAlignment=Uc(n.verticalAlignment,"top"),this._options.margin=function w_(n){return n>=0?{left:kl(n),top:kl(n),right:kl(n),bottom:kl(n)}:{left:Ag((n=n||{}).left),top:Ag(n.top),right:Ag(n.right),bottom:Ag(n.bottom)}}(n.margin)},_updateStructure:function(){var n=this._params.renderer,t=this._group,e=this._options,i=e.horizontalAlignment;this._titleElement||(this._titleElement=n.text().append(t),this._subtitleElement=n.text(),this._clipRect=n.clipRect(),t.attr({"clip-path":this._clipRect.id})),this._titleElement.attr({align:i,class:e.cssClass}),this._subtitleElement.attr({align:i,class:e.subtitle.cssClass}),t.linkAppend(),op(e.subtitle.text)?this._subtitleElement.append(t):this._subtitleElement.remove()},_updateTexts:function(){var r,n=this._options,t=n.subtitle,e=this._titleElement,i=this._subtitleElement;e.attr({text:"A",y:0}).css(ci(n.font)),r=e.getBBox(),this._baseLineCorrection=r.height+r.y,e.attr({text:n.text}),r=e.getBBox(),e.attr({y:-r.y}),op(t.text)&&i.attr({text:t.text,y:0}).css(ci(t.font))},_shiftSubtitle(){var n=this._titleElement.getBBox(),t=this._subtitleElement,e=this._options.subtitle.offset;t.move(0,n.y+n.height-t.getBBox().y-e)},_updateBoundingRectAlignment:function(){var n=this._boundingRect,t=this._options;n.verticalAlignment=t.verticalAlignment,n.horizontalAlignment=t.horizontalAlignment,n.cutLayoutSide=t.verticalAlignment,n.cutSide="vertical",n.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment}},hasText:function(){return this._hasText},update:function(n,t){var e=(0,y.l)(!0,{},n,function L(n){var t=(0,w.HD)(n)?{text:n}:n||{};return t.subtitle=(0,w.HD)(t.subtitle)?{text:t.subtitle}:t.subtitle||{},t}(t)),i=op(e.text),r=i||i!==this._hasText;return this._baseLineCorrection=0,this._updateOptions(e),this._boundingRect={},i?(this._updateStructure(),this._updateTexts()):this._group.linkRemove(),this._updateBoundingRect(),this._updateBoundingRectAlignment(),this._hasText=i,r},draw:function(n,t){return this._hasText&&(this._group.linkAppend(),this._correctTitleLength(n),this._group.getBBox().height>t&&this.freeSpace()),this},_correctTitleLength:function(n){var t=this._options,e=t.margin,i=n-e.left-e.right,r=t.placeholderSize;ap(this._titleElement,t.text,i,t,r),this._subtitleElement&&(kl(r)>0&&(r-=this._titleElement.getBBox().height),ap(this._subtitleElement,t.subtitle.text,i,t.subtitle,r),this._shiftSubtitle()),this._updateBoundingRect();var{x:m,y:D,height:A}=this.getCorrectedLayoutOptions();this._clipRect.attr({x:m,y:D,width:n,height:A})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(n,t){var e=this.getLayoutOptions();return this._group.move(n-e.x,t-e.y),this},_updateBoundingRect:function(){var n=this._options,t=n.margin,e=this._boundingRect,i=this._hasText?this._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};i.isEmpty||(i.height+=t.top+t.bottom-this._baseLineCorrection,i.width+=t.left+t.right,i.x-=t.left,i.y+=this._baseLineCorrection-t.top),n.placeholderSize>0&&(i.height=n.placeholderSize),e.height=i.height,e.width=i.width,e.x=i.x,e.y=i.y},getCorrectedLayoutOptions(){var n=this.getLayoutOptions(),t=this._baseLineCorrection;return(0,y.l)({},n,{y:n.y-t,height:n.height+t})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(n){return this.draw(n[0],n[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(n,t){!function Gy(n,t){return n[2]-n[0]<t.width||n[3]-n[1]<t.height}(n,this._boundingRect)?this.shift(Math.round(n[0]),Math.round(n[1])):this.shift(t[0],t[1])},freeSpace:function(){this._params.incidentOccurred("W2103"),this._group.linkRemove(),this._boundingRect.width=this._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(n){this._group.linkRemove(),this._group.linkOn(n,"title")}});var Oe={name:"title",init:function(){this._title=new Zc({renderer:this._renderer,cssClass:this._rootClassPrefix+"-title",incidentOccurred:this._incidentOccurred}),this._layout.add(this._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(n){n.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]},f=u(6520),je=u(7981),di=u(4817),Mi=u(9943),ou=["x","y","canvas","offsetX","offsetY","offset"],Fs=Math,Fu=Fs.round,Ll=Fs.max,_m=Fs.min,Cs=Fs.sin,qs=Fs.cos,Na=Fs.asin,Pg=Fs.PI,Bl=function(){for(var n=arguments.length,t=new Array(n),e=0;e<n;e++)t[e]=arguments[e];return t.join("")};function qa(n,t,e){return"a ".concat(n," ").concat(n," 0 0 1 ").concat(t*n," ").concat(e*n)}function Kc(n,t,e){return"A ".concat(n," ").concat(n," 0 0 1 ").concat(t," ").concat(e)}function Pw(n,t,e,i,r){return(n-i)*Fu(qs(e))+(t-r)*Fu(Cs(e))+i}function kw(n,t,e,i,r){return-(n-i)*Fu(Cs(e))+(t-r)*Fu(qs(e))+r}function Rw(n,t){return t%90==0&&t%180!=0?{width:n.height,height:n.width}:n}function vm(n,t,e,i,r){var{width:m,height:D}=n,A=m/2,N=D/2,Q=Math.ceil(t+A),se=Math.floor(t-A),we=Math.floor(e-N),Re=Math.ceil(e+N);return i<se&&r<we||i>=se&&i<=Q&&r<we?270:i>Q&&r>Re||i>=se&&i<=Q&&r>Re?90:i<se&&r>Re||i<se&&r>=we&&r<=Re?180:0}function E_(n,t,e,i,r,m,D){var gi,{width:A,height:N}=n,{arrowWidth:Q,cornerRadius:se=0}=m,we=Q/2,Re=A/2,Ue=N/2,st=Math.ceil(t+Re),Ot=Math.floor(t-Re),Kt=Math.floor(e-Ue),sn=Math.ceil(e+Ue),wn=[Ot,Kt],rn=[st,Kt],Ft=[st,sn],qt=[Ot,sn],un=i<=Ot?Ot:st<=i?st:i,In=r<=Kt?Kt:sn<=r?sn:r,Kn=_m(In+we,sn),Yn=Ll(In-we,Kt),ai=Ll(un-we,Ot);if(se=Math.min(A/2,N/2,se),wn[1]+=se,rn[0]-=se,Ft[1]-=se,qt[0]+=se,!D||Ot<=i&&i<=st&&Kt<=r&&r<=sn)gi=Bl(wn,qa(se,1,-1),"L",rn,qa(se,1,1),"L",Ft,qa(se,-1,1),"L",qt,qa(se,-1,-1));else if(i>st&&r<Kt){var Ci=Q/se||0,Ki=Pg/4+Ci/2,Bi=Pg/4-Ci/2,ri=rn[0]+qs(Bi)*se,Fi=rn[1]+(1-Cs(Bi))*se,Gi=Bl("L",rn,qa(se,qs(Ki),1-Cs(Ki)),"L",[i,r,ri,Fi],Kc(se,rn[0]+se,rn[1]+se));Math.abs(Ki)>Pg/2&&(Gi=Bl("L",[ai,Kt,i,r,st,Kn])),gi=Bl(wn,qa(se,1,-1),Gi,"L",Ft,qa(se,-1,1),"L",qt,qa(se,-1,-1))}else if(i>st&&r>=Kt&&r<=sn){var or;if(Yn>=rn[1]+se&&Kn<=Ft[1])or=Bl(qa(se,1,1),"L",[st,Yn,i,r,st,Kn],"L",Ft,qa(se,-1,1));else if(Yn<rn[1]+se&&Kn>=rn[1]+se&&Kn<=Ft[1]){var _r=(rn[1]+se-Yn)/se,$r=rn[0]+qs(_r)*se,Fr=rn[1]+(1-Cs(_r))*se;or=Bl(qa(se,qs(_r),1-Cs(_r)),"L",[$r,Fr,i,r,st,Kn],"L",Ft,qa(se,-1,1))}else if(Yn<rn[1]+se&&Kn<rn[1]+se){var co=(rn[1]+se-Yn)/se,Kr=rn[0]+qs(co)*se,Io=rn[1]+(1-Cs(co))*se,Wo=Math.sin((rn[1]+se-Kn)/se),Do=rn[0]+se*qs(Wo),ko=rn[1]+se*(1-Cs(Wo));or=Bl(qa(se,qs(co),1-Cs(co)),"L",[Kr,Io,i,r,Do,ko],Kc(se,rn[0]+se,rn[1]+se),"L",Ft,qa(se,-1,1))}else if(Yn<=rn[1]+se&&Kn>=Ft[1]){var ha=Na((rn[1]+se-Yn)/se),Ua=rn[0]+se*qs(ha),Oa=rn[1]+se*(1-Cs(ha)),Za=Na((Kn-Ft[1])/se),vl=Ft[0]+se*(qs(Za)-1),La=Ft[1]+se*Cs(Za);or=Bl(qa(se,qs(ha),1-Cs(ha)),"L",[Ua,Oa,i,r,vl,La],Kc(se,Ft[0]-se,Ft[1]+se))}else if(Yn>rn[1]+se&&Yn<=Ft[1]&&Kn>Ft[1]){var xu=Na((Kn-Ft[1])/se),ed=Ft[0]+se*(qs(xu)-1),Uy=Ft[1]+se*Cs(xu);or=Bl(qa(se,1,1),"L",[st,Yn,i,r,ed,Uy],Kc(se,Ft[0]-se,Ft[1]+se))}else if(Yn>rn[1]+se&&Kn>Ft[1]){var Zy=Na((Kn-Ft[1])/se),f1=Ft[0]+se*(qs(Zy)-1),Aw=Ft[1]+se*Cs(Zy),m1=Na((Yn-Ft[1])/se),Pme=Ft[0]+se*(qs(m1)-1),kme=Ft[1]+se*Cs(m1);or=Bl(qa(se,1,1),"L",Ft,qa(se,qs(m1)-1,Cs(m1)),"L",[Pme,kme,i,r,f1,Aw],Kc(se,Ft[0]-se,Ft[1]+se))}gi=Bl(wn,qa(se,1,-1),"L",rn,or,"L",qt,qa(se,-1,-1))}return Bl("M",gi,"Z")}class jy{constructor(t,e,i,r){var m=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],D=arguments.length>5&&void 0!==arguments[5]?arguments[5]:(N,Q)=>Q.getBBox(),A=arguments.length>6&&void 0!==arguments[6]?arguments[6]:(N,Q,se,we)=>Q.move(se,we);this.widget=e,this.options=t,this.root=i,this.contentTemplate=r,this.bonded=m,this.measureContent=D,this.moveContentGroup=A}draw(t){var{x:e,y:i,canvas:r={},offsetX:m,offsetY:D,offset:A=0}=t,N=(0,Mi.Z)(t,ou),Q=this.options,{x:se,y:we}=Q,Re=r.left,Ue=r.width-r.right,st=r.width-r.right-r.left,Ot=r.top,Kt=r.height-r.bottom,sn=r.height-r.bottom-r.top;if((!(0,w.$K)(e)||!(0,w.$K)(i))&&(!(0,w.$K)(se)||!(0,w.$K)(we))||(0,w.$K)(e)&&(e<Re||Ue<e||i<Ot||Kt<i))return!1;this._root||this._draw();var wn=(0,y.l)({x:"-50%",y:"-50%",width:"200%",height:"200%"},Q.shadow),rn=Q.width>0?Q.width:null,Ft=Q.height>0?Q.height:null,qt=()=>{var un,In=this._contentBBox=this.measureContent(this.widget,this._contentGroup),Kn=this._size={width:Ll(rn,In.width)+2*Q.paddingLeftRight,height:Ll(Ft,In.height)+2*Q.paddingTopBottom,offset:A},Yn=wn.offsetX,ai=wn.offsetY,gi=2*wn.blur+1,Ci=Ll(gi-Yn,0),Ki=Ll(gi+Yn,0),Bi=Ll(gi-ai,0),ri=Ll(gi+ai,0);if(this.margins={lm:Ci,rm:Ki,tm:Bi,bm:ri},(0,w.$K)(se)?(se+=m||0,(0,w.$K)(e)||(e=se)):se=(0,w.$K)(m)?e+m:st<Kn.width?Fu(Re+st/2):_m(Ll(e,Math.ceil(Re+Kn.width/2+Ci)),Math.floor(Ue-Kn.width/2-Ki)),(0,w.$K)(we))we+=D||0,(0,w.$K)(i)||(i=we+Kn.height/2);else if((0,w.$K)(D))we=i+D;else{var Fi=i-Q.arrowLength-Kn.height/2-A,Gi=i+Q.arrowLength+Kn.height/2+A;sn<Kn.height+Q.arrowLength?we=Fu(Ot+Kn.height/2):Fi-Kn.height/2-Bi<Ot?Gi+Kn.height/2+ri<Kt?(we=Gi,i+=A):we=Fu(Ot+Kn.height/2):(we=Fi,i-=A)}this.anchorX=e,this.anchorY=i,this.move(se,we),null===(un=this._root)||void 0===un||un.append(this.root)};return this.contentTemplate.render?(this.contentTemplate.render({model:Q,container:this._contentGroup.element,onRendered:qt}),!0):this.contentTemplate((0,di.Z)({group:this._contentGroup,onRender:qt},N))}_draw(){var t=this.widget._renderer,e=this.options,i=(0,y.l)({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),r=this._shadow=t.shadowFilter().attr(i),m={opacity:e.opacity,"stroke-width":0,fill:e.color},D=e.border||{};D.visible&&(0,y.l)(m,{"stroke-width":D.width,stroke:D.color,"stroke-opacity":D.opacity,dashStyle:D.dashStyle});var A=this._root=t.g().append(this.root);e.type&&A.attr({class:"dxc-".concat(e.type,"-annotation")});var N=t.g().attr({filter:r.id}).append(A);this._cloud=t.path([],"area").attr(m).sharp().append(N),this._contentGroup=t.g().append(A)}getBBox(){var t=this._size||{},e=this.margins||{},i=vm(t,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-t.width/2-e.lm),y:Math.floor(this.y-t.height/2-e.tm-(270===i?this.options.arrowLength:0)),width:t.width+e.lm+e.rm,height:t.height+e.tm+e.bm+(90===i||270===i?this.options.arrowLength:0)}}clear(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this}customizeCloud(t){this._cloud&&this._cloud.attr(t)}moveRoot(t,e){this._root&&this._root.move(t,e)}move(t,e){t=Fu(t),e=Fu(e),this.x=t,this.y=e;var i=vm(this._size,t,e,this.anchorX,this.anchorY),r=i*Pg/180;this._cloud.attr({d:E_(Rw(this._size,i),t,e,Pw(this.anchorX,this.anchorY,r,t,e),kw(this.anchorX,this.anchorY,r,t,e),this.options,this.bonded)}).rotate(i,t,e),this.moveContentGroup(this.widget,this._contentGroup,t-this._contentBBox.x-this._contentBBox.width/2,e-this._contentBBox.y-this._contentBBox.height/2)}hitTest(t,e){var{width:i,height:r}=this._size||{};return Math.abs(t-this.x)<=i/2&&Math.abs(e-this.y)<=r/2}}var Lw=Va.Z.format,$d=Math.ceil,Fl=Math.max,ym=Math.min,kg=(0,mi.Jj)();function Ie(n){n.css({left:"-9999px"}).detach()}function me(){return(0,l.Z)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"})}var Me=function(n){this._eventTrigger=n.eventTrigger,this._widgetRoot=n.widgetRoot,this._widget=n.widget,this._textHtmlContainers=[],this._wrapper=(0,l.Z)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(n.cssClass);var t=this._renderer=new Xa({pathModified:n.pathModified,container:this._wrapper[0]});t.root.attr({"pointer-events":"none"}),this._text=t.text(void 0,0,0),this._textGroupHtml=(0,l.Z)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._wrapper),this._textHtml=me().appendTo(this._textGroupHtml)};Me.prototype={constructor:Me,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var n=this._options,t=(0,l.Z)(this._widgetRoot).closest(n.container);return 0===t.length&&(t=(0,l.Z)(n.container)),(t.length?t:(0,l.Z)("body")).get(0)},setTemplate(n){this._template=n?this._widget._getTemplate(n):null},setOptions:function(n){var t=this;t._options=n=n||{},t._textFontStyles=ci(n.font),t._textFontStyles.color=t._textFontStyles.fill,t._wrapper.css({zIndex:n.zIndex}),t._customizeTooltip=n.customizeTooltip;var e=t._textGroupHtml;this.plaque&&this.plaque.clear(),this.setTemplate(n.contentTemplate);var i=n.interactive?"auto":"none";return n.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"}),this.plaque=new jy({opacity:t._options.opacity,color:t._options.color,border:t._options.border,paddingLeftRight:t._options.paddingLeftRight,paddingTopBottom:t._options.paddingTopBottom,arrowLength:t._options.arrowLength,arrowWidth:20,shadow:t._options.shadow,cornerRadius:t._options.cornerRadius},t,t._renderer.root,r=>{var{group:m,onRender:D,eventData:A,isMoving:N,templateCallback:Q=(()=>{})}=r,se=t._state;if(!N){var we=t._template,Re=we&&!se.formatObject.skipTemplate;if(se.html||Re){if(e.css({color:se.textColor,width:3e3,pointerEvents:i}),Re){var Ue=t._textHtmlContainers,st=me().appendTo(t._textGroupHtml);return Ue.push(st),void we.render({model:se.formatObject,container:st,onRendered:()=>{if(function Ee(n){n.forEach(t=>t.remove())}(Ue.splice(0,Ue.length-1)),t._textHtml=(0,f.dL)(t._textHtml,st),se.html=t._textHtml.html(),0===(0,s.dz)(t._textHtml)&&0===(0,s.Cr)(t._textHtml))return this.plaque.clear(),void Q(!1);D(),t._riseEvents(A),t._moveWrapper(),t.plaque.customizeCloud({fill:se.color,stroke:se.borderColor,"pointer-events":i}),Q(!0),t._textHtmlContainers=[]}})}t._text.attr({text:""}),t._textHtml.html(se.html)}else t._text.css({fill:se.textColor}).attr({text:se.text,class:n.cssClass,"pointer-events":i}).append(m.attr({align:n.textAlignment}));t._riseEvents(A),t.plaque.customizeCloud({fill:se.color,stroke:se.borderColor,"pointer-events":i})}return D(),t._moveWrapper(),!0},!0,(r,m)=>{if(r._state.html){var A=kg.getComputedStyle(t._textHtml.get(0));return{x:0,y:0,width:$d(parseFloat(A.width)),height:$d(parseFloat(A.height))}}return m.getBBox()},(r,m,D,A)=>{r._state.html?t._textGroupHtml.css({left:D,top:A}):m.move(D,A)}),t},_riseEvents:function(n){this._eventData&&this._eventTrigger("tooltipHidden",this._eventData),this._eventData=n,this._eventTrigger("tooltipShown",this._eventData)},setRendererOptions:function(n){return this._renderer.setOptions(n),this._textGroupHtml.css({direction:n.rtl?"rtl":"ltr"}),this},update:function(n){this.setOptions(n),Ie(this._wrapper);var t={};for(var e in this._textFontStyles)t[(0,je._A)(e)]=this._textFontStyles[e];return this._textGroupHtml.css(t),this._text.css(this._textFontStyles),this._eventData=null,this},_prepare:function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,r={};return(0,w.mf)(e)&&(r=e.call(n,n),"text"in(r=(0,w.PO)(r)?r:{})&&(t.text=(0,w.$K)(r.text)?String(r.text):""),"html"in r&&(t.html=(0,w.$K)(r.html)?String(r.html):"")),!("text"in t)&&!("html"in t)&&(t.text=n.valueText||n.description||""),t.color=r.color||i.color,t.borderColor=r.borderColor||(i.border||{}).color,t.textColor=r.fontColor||(this._textFontStyles||{}).color,!!t.text||!!t.html||!!this._template},show:function(n,t,e,i,r){if(this._options.forceEvents)return e.x=t.x,e.y=t.y-t.offset,this._riseEvents(e),!0;var m={formatObject:n,eventData:e,templateCallback:r};if(!this._prepare(n,m,i))return!1;this._state=m,this._wrapper.appendTo(this._getContainer()),this._clear();var D=(0,y.l)({},this._options,{canvas:this._getCanvas()},m,{x:t.x,y:t.y,offset:t.offset});return this.plaque.clear().draw(D)},isCursorOnTooltip:function(n,t){if(this._options.interactive){var e=this.plaque.getBBox();return n>e.x&&n<e.x+e.width&&t>e.y&&t<e.y+e.height}return!1},hide:function(n){Ie(this._wrapper),this._eventData&&(this._eventTrigger("tooltipHidden",this._options.forceEvents?(0,y.l)({isPointerOut:n},this._eventData):this._eventData),this._clear(),this._eventData=null)},_clear(){this._textHtml.empty()},move:function(n,t,e){this.plaque.draw({x:n,y:t,offset:e,canvas:this._getCanvas(),isMoving:!0})},_moveWrapper:function(){var n=this.plaque.getBBox();this._renderer.resize(n.width,n.height);var t=this._wrapper.css({left:0,top:0}).offset(),e=n.x,i=n.y;this._wrapper.css({left:e-t.left,top:i-t.top}),this.plaque.moveRoot(-e,-i),this._state.html&&(this._textHtml.css({left:-e,top:-i}),this._textGroupHtml.css({width:$d((0,s.dz)(this._textHtml))}))},formatValue:function(n,t){var e=t?function ve(n,t){var e=n;switch(t){case"argument":e={format:n.argumentFormat};break;case"percent":e={format:{type:"percent",precision:n.format&&n.format.percentPrecision}}}return e}(this._options,t):this._options;return Lw(n,e.format)},getOptions(){return this._options},getLocation:function(){return En(this._options.location)},isEnabled:function(){return!!this._options.enabled||!!this._options.forceEvents},isShared:function(){return!!this._options.shared},_getCanvas:function(){var n=this._getContainer(),t=n.getBoundingClientRect(),e=b.Z.getDocumentElement(),i=b.Z.getDocument(),r=kg.pageXOffset||e.scrollLeft||0,m=kg.pageYOffset||e.scrollTop||0,D={left:r,top:m,width:Fl(e.clientWidth,i.body.clientWidth)+r,height:Fl(i.body.scrollHeight,e.scrollHeight,i.body.offsetHeight,e.offsetHeight,i.body.clientHeight,e.clientHeight),right:0,bottom:0};return n!==b.Z.getBody()&&(r=Fl(D.left,D.left+t.left),m=Fl(D.top,D.top+t.top),D.width=ym(t.width,D.width)+r+D.left,D.height=ym(t.height,D.height)+m+D.top,D.left=r,D.top=m),D}};var Fe={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new Me({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element(),widget:this})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling(){this._tooltip&&this._tooltip.hide()}},customize:function(n){var t=n.prototype;t._eventsMap.onTooltipShown={name:"tooltipShown"},t._eventsMap.onTooltipHidden={name:"tooltipHidden"},n.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),n.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]},Cn="loadingIndicatorReady",pi=function(n){var t=n.renderer;this._group=t.g().attr({class:"dx-loading-indicator"}).linkOn(t.root,{name:"loading-indicator",after:"peripheral"}),this._rect=t.rect().attr({opacity:0}).append(this._group),this._text=t.text().attr({align:"center"}).append(this._group),this._createStates(n.eventTrigger,this._group,t.root,n.notify)};pi.prototype={constructor:pi,_createStates:function(n,t,e,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){t.linkRemove(),e.css({"pointer-events":""}),n(Cn)}},{opacity:.85,start:function(){t.linkAppend(),e.css({"pointer-events":"none"}),i(!0)},complete:function(){n(Cn)}}],this._state=0},setSize:function(n){var t=n.width,e=n.height;this._rect.attr({width:t,height:e}),this._text.attr({x:t/2,y:e/2})},setOptions:function(n){this._rect.attr({fill:n.backgroundColor}),this._text.css(ci(n.font)).attr({text:n.text,class:n.cssClass}),this[n.show?"show":"hide"]()},dispose:function(){this._group.linkRemove().linkOff(),this._group=this._rect=this._text=this._states=null},_transit:function(n){var t;this._state!==n&&(this._state=n,this._isHiding=!1,t=this._states[n],this._rect.stopAnimation().animate({opacity:t.opacity},{complete:t.complete,easing:"linear",duration:400,unstoppable:!0}),this._noHiding=!0,t.start(),this._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}};var wi={name:"loading_indicator",init:function(){var n=this;n._loadingIndicator=new pi({eventTrigger:n._eventTrigger,renderer:n._renderer,notify:function(t){n._skipLoadingIndicatorOptions=!0,n.option("loadingIndicator",{show:t}),n._skipLoadingIndicatorOptions=!1,t&&n._stopCurrentHandling()}}),n._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler(n){n&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize(){this._loadingIndicator.setSize(this._canvas)},endUpdate(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(n){var t=n.prototype;if(t._dataSourceChangedHandler){var e=t._dataSourceChangedHandler;t._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),e.apply(this,arguments)}}n.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),t._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=t._drawn;t._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]},Zi=Number,er=y.l,hr=Va.Z.format,Dr=xl.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new um.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var n=this._renderer.root;this._valueChangingLocker=0,this._translator=this._factory.createTranslator(),this._tracker=this._factory.createTracker({renderer:this._renderer,container:n}),this._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0==--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var n=this._renderer,t=this._tooltip;this._tracker.setCallbacks({"tooltip-show":function(e,i,r){var m=e.getTooltipParameters(),D=n.getRootOffset(),A=er({value:m.value,valueText:t.formatValue(m.value),color:m.color},i);return t.show(A,{x:m.x+D.left,y:m.y+D.top,offset:m.offset},{target:i},void 0,r)},"tooltip-hide":function(){return t.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){this._themeManager.dispose(),this._tracker.dispose(),this._translator=this._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){this._isValidDomain&&(this._renderContent(),this._tracker.setTooltipState(this._tooltip.isEnabled()),this._tracker.activate(),this._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var n=this;n._resizing=n._noAnimation=2===n._changes.count(),n.callBase.apply(n,arguments)},_applySize:function(n){this._innerRect={left:n[0],top:n[1],right:n[2],bottom:n[3]};var t=this._layout._cache;return this._cleanCore(),this._renderCore(),this._layout._cache=this._layout._cache||t,[n[0],this._innerRect.top,n[2],this._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){this._setupDomainCore(),this._isValidDomain=isFinite(1/(this._translator.getDomain()[1]-this._translator.getDomain()[0])),this._isValidDomain||this._incidentOccurred("W2301"),this._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){this._setupCodomain(),this._setupAnimationSettings(),this._setupDefaultFormat(),this._change(["LAYOUT"])},_setupAnimationSettings:function(){var n=this.option("animation");this._animationSettings=null,(void 0===n||n)&&(n=er({enabled:!0,duration:1e3,easing:"easeOutCubic"},n)).enabled&&n.duration>0&&(this._animationSettings={duration:Zi(n.duration),easing:n.easing}),this._containerBackgroundColor=this.option("containerBackgroundColor")||this._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var n=this._translator.getDomain();this._defaultFormatOptions=function(n,t,e){var m,i=$e(xn(n),xn(t)),r=-xn(Ae(t-n)/e);return kt(i)||kt(r)?null:(Ae(i)<=4?(m="fixedPoint",r<0&&(r=0),r>4&&(r=4)):(m="exponential",(r+=i-1)>3&&(r=3)),{type:m,precision:r})}(n[0],n[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new po},createTracker:function(n){return new yg(n)}}}),ao=function(n,t,e){Object.is(n,-0)&&(n=0);var r,i=hr(n,(t=t||{}).format);return"function"==typeof t.customizeText?(r=er({value:n,valueText:i},e),String(t.customizeText.call(r,r))):i},fo=function(n,t){var e=ao(n.getDomainStart(),t),i=ao(n.getDomainEnd(),t);return e.length>=i.length?e:i};function Lo(n,t){return n&&t&&n.length===t.length&&function ts(n,t){var e,i=n.length;for(e=0;e<i;++e)if(!(n[e]!=n[e]&&t[e]!=t[e]||n[e]===t[e]))return!1;return!0}(n,t)}Dr.addPlugin(Bu),Dr.addPlugin(Oe),Dr.addPlugin(Fe),Dr.addPlugin(wi);var su=Dr.prototype._setTooltipOptions;Dr.prototype._setTooltipOptions=function(){su.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())};var Yd=Va.Z.format,{abs:Vl,floor:Xd}=Math,S_="exponential",Cm=["fixedPoint","thousands","millions","billions","trillions",S_],sp=["millisecond","second","minute","hour","day","month","year"];function Rg(n,t,e,i){var r,m,D,N,Q,A=sp.length;"week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second");var se=sp.indexOf(i);if(e){if(m=te.Z.getDatesDifferences(t,e),r=te.Z.getDatesDifferences(t,n),m[i])for(N=A-1;N>=se;N--)if(D=sp[N],N===se)v1(m,se+(m.millisecond?2:1));else if(m[D]){O_(m,N);break}}else for(r=te.Z.getDatesDifferences(n,t),N=A-1;N>=se;N--)if(r[D=sp[N]]){if(N-se>1){for(Q=se+1;Q>=0;Q--)O_(r,Q);break}if(_1(t,D)){for(Q=N-1;Q>0;Q--)O_(r,Q);break}}return e?m:r}function _1(n,t){var r,e=[n.getMilliseconds(),n.getSeconds(),n.getMinutes(),n.getHours(),n.getDate(),n.getMonth()],i=sp.indexOf(t);for(r=0;r<i;r++)if(4===r&&1!==e[r]||4!==r&&0!==e[r])return!1;return!0}function O_(n,t){var e=sp[t];n[e]&&(n[e]=!1,n.count--)}function v1(n,t){var e=sp[t];!1===n[e]&&(n[e]=!0,n.count++)}function y1(n,t){var e,i,r,m=0;for(r=Vl(t-n[0]),e=1;e<n.length;e++)(i=Vl(t-n[e]))<r&&(r=i,m=e);return m}function $y(n){return n.toString().split(".")}function Gc(n){var t;return(0,w.mf)(n)&&(t=n,n=null),{type:n,formatter:t}}function xm(n,t){var e=Vl(n).toString();return(0,w.Cp)(n)?Math.max(Vl((0,re.dG)(n)-(0,re.dG)(t)),Vl((0,re.p8)(n)-(0,re.p8)(t))):Vl(function Bw(n){return n.length-parseInt(n).toString().length}(e.split(".")[1])-(0,re.dG)(t)+1)}function bm(n,t){var e=t.tickInterval,i=Vl(n).toString(),r=t.labelOptions.format,m=t.ticks,D="logarithmic"===t.type;if(1===m.length&&0===m.indexOf(n)&&!(0,w.$K)(e)&&(e=Vl(n)>=1?1:(0,re.zB)(1-Vl(n),n)),Object.is(n,-0)&&(n=0),!(0,w.$K)(r)&&"discrete"!==t.type&&n&&(10===t.logarithmBase||!D))if("datetime"!==t.dataType&&(0,w.$K)(e)){if(m.length&&-1===m.indexOf(n)){var A=y1(m,n);e=(0,re.zB)(Vl(n-m[A]),n)}if(D)return function C1(n){var e,t=Xe(Vl(n));if(t>0)e=Cm[Xd(t/3)]||S_;else{if(!(t<-4))return Yd((0,re.zB)(n));e=S_}return Yd(n,{type:e,precision:0})}(n);var N=$y(e);N<2&&(N=$y(n)),r=N.length>1&&!(0,w.Cp)(e)?{type:Cm[0],precision:N[1].length}:(0,w.Cp)(e)&&(-1!==i.indexOf(".")||(0,w.Cp)(n))?{type:S_,precision:xm(n,e)}:function x1(n,t){var i,r,e=Xd(Xe(t)),m=0,D=i=Xd(Xe(Vl(n)));i-e>=2&&(D=e);var A=Xd(D/3),N=3*A;if(A<5?(e-N==2&&i>=3&&(N=3*++A),r=Cm[A]):r=Cm[Cm.length-1],N>0){var Q=$y(t/Math.pow(10,N));Q[1]&&(m=Q[1].length)}return{precision:m,type:r}}(n,e)}else"datetime"===t.dataType&&(r=function Lg(n,t){var D,A,{showTransition:e,ticks:i,tickInterval:r}=t,m=te.Z.getDateFormatByTickInterval(r);if(e&&i.length){var N=i.map(Number).indexOf(+n);if(1===i.length&&0===N)m=Va.Z.getDateFormatByTicks(i);else{-1===N?D=y1(i,n):(D=0===N?i.length-1:N-1,A=0===N?1:-1);var Q=Rg(i[D],n,i[A],m);m=Va.Z.getDateFormatByDifferences(Q,m)}}return Gc(m)}(n,t));return Yd(n,r)}function Vw(n){var{startValue:t,endValue:e,tickInterval:i,argumentFormat:r,axisOptions:{dataType:m,type:D,logarithmBase:A}}=n;if("discrete"===D)return"";if("datetime"===m)return function w1(n,t,e){var i=Rg(n,t),r=te.Z.getDateFormatByTickInterval(e),D=Gc(Va.Z.getDateFormatByDifferences(i,r)),A=[];if(e in i){var N=function b1(n,t){var e=!1;for(var i in n)e?n[i]=!1:i===t?e=!0:n[i]=!0;return Gc(Va.Z.getDateFormatByDifferences(n))}(Rg(n,t),e),Q=Yd(n,N);Q&&A.push(Q)}else{var se=function Fw(n){var t=!1;for(var e in n)!0===n[e]||"hour"===e||t?(n[e]=!1,t=!0):!1===n[e]&&(n[e]=!0);return Gc(Va.Z.getDateFormatByDifferences(n))}(Rg(n,t)),we=Yd(n,se);we&&A.push(we),A.push("".concat(Yd(n,D)," - ").concat(Yd(t,D)))}return A.join(", ")}(t,e,function E1(n){if((0,w.Kn)(n)){var t=Object.keys(n);if(1===t.reduce((r,m)=>n[m]+r,0)){var i=t.filter(r=>1===n[r])[0];return i.slice(0,i.length-1)}}return n}(i));var N={ticks:[],type:D,dataType:m,tickInterval:i,logarithmBase:A,labelOptions:{format:r}};return"".concat(bm(t,N)," - ").concat(bm(e,N))}const Mo_validateOverlappingMode=function(n){return"ignore"===n||"none"===n?n:"hide"},Mo_getTicksCountInRange=function(n,t,e){var i=1;if(n.length>1)for(;i<n.length&&!(Math.abs(n[i].coords[t]-n[0].coords[t])>=e);i++);return i},Mo_areLabelsOverlap=function(n,t,e,i){var D=n.x,A=t.x,N=n.width,Q=t.width;return"left"===i?(D+=N/2,A+=Q/2):"right"===i&&(D-=N/2,A-=Q/2),(n.x>t.x?A+Q+e>D:D+N+e>A)&&(n.y>t.y?t.y+t.height>n.y:n.y+n.height>t.y)};var xs=u(8492),S1={string:function(n){return(0,w.$K)(n)?""+n:n},numeric:function(n){if(!(0,w.$K)(n))return n;var t=Number(n);return isNaN(t)&&(t=void 0),t},datetime:function(n){if(!(0,w.$K)(n))return n;var t,e=Number(n);return t=isNaN(e)?xs.Z.deserializeDate(n):new Date(e),isNaN(Number(t))&&(t=void 0),t}};function D_(n){return"numeric"===n||"datetime"===n||"string"===n?n:""}var lp=function(n){return S1[D_(n)]||E.ZT},Nw=te.Z.convertDateUnitToMilliseconds,jc=te.Z.dateToMilliseconds,up=Math,$c=up.abs,Yc=up.floor,dp=up.ceil,O1=up.pow,cp=[1,2,2.5,5],qd=[1,2,3,5],Hw={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},D1=(0,y.l)({},Hw,{day:[1]}),y2={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},C2=[2,4,5,8,10],Ja=n=>n,Yy=(n,t,e)=>i=>Sr(i,n,t,e),T_=(n,t,e)=>(i,r)=>(0,re.zB)(n(t((0,re.zB)(e(i)/r))*r));function I_(n,t,e,i){return(0,w.$K)(i)?i?n:t:function(r,m,D,A){var N=n(r,m);return r-N==0||!(0,w.$K)(D)||e(r,N,m,D)||A?N:t(r,m)}}function M_(n,t,e,i){var r=e-$c(t-n),m=up.max(dp(i.businessDelta/e),2),D=i.screenDelta/(m*e),A=up.round(D*r),N=Sr(D*e/i.axisDivisionFactor,2)+1,se=up.round((i.isSpacedMargin?2:1)*N*3);return i.businessDelta>i.interval&&A>=se}function Zw(n){return function(t,e,i,r){return M_(Sr(t,n),Sr(e,n),i,r)}}function Kw(n,t,e,i){return M_(n.valueOf(),t.valueOf(),jc(e),i)}function Gw(n,t){var e=0;return t&&(e=t.reduce((i,r)=>i+(r.to-r.from),0)),$c(n.max-n.min-e)}function A_(n,t,e,i){var r=t/e-(i||0);return n/(r<1?1:r)}function $w(n,t){return O1(10,Yc(Sr(n,10))+(t||0))}function A1(n,t,e,i,r,m,D,A,N,Q){var se=A_(n,t,r,A),we=1,Re=!1===D;return(!i||!e)&&((se>=1||!Re&&se>0)&&(we=Fo(se,m,Re)),(!e||!i&&e<we)&&(e=we)),!i&&Q&&(Q=Fo(Q,m,Re))>e&&(e=Q),e}function Fo(n,t,e){var i=$w(n,-1),r=1;return t=t||cp,n>0&&(n/=i,r=t.concat(10*t[0]).map(m=>10*m).reduce((m,D)=>.1===i&&e&&25===D?m:m<n?D:m,0),r=(0,re.zB)(r*i,i)),r}function Xy(n,t,e,i){var r=A_(n,t,i);return e||C2.reduce((m,D)=>{var A=n/D;return A>=r?A:m},0)}function qy(n){return function(t,e){var i=$w(t);return!n&&i<1&&(i=1),(e=e||qd).concat(10*e[0]).reduce((r,m)=>r<t?m*i:r,0)}}function k1(n,t){return function(e,i){return!e&&n<=Nw(t,i)&&((e={})[t+"s"]=i),e}}function Xw(n,t){return function(e,i){var r=t*i;return!e&&n<=Nw("year",r)&&2.5!==r&&(e={years:r}),e}}function qw(n,t,e,i,r,m,D,A,N,Q){if(!i||!e){var se=wm(A_(n,t,r),m,0,N);(!e||!i&&jc(e)<=jc(se))&&(e=se)}return!i&&Q&&(Q=wm(Q,m,0,N),jc(Q)>jc(e)&&(e=Q)),e}function wm(n,t,e,i){var r;for(var m in t=t||function P1(n){return n&&n>2?D1:Hw}(i),t)if(r=t[m].reduce(k1(n,m),r))break;if(!r)for(var D=1;!(r=cp.reduce(Xw(n,D),r));D*=10);return r}function R1(n,t,e,i){return qw(n,t,e,!0,i,y2)}function P_(n,t){return e=>e&&t($c((0,re.zB)(n(e[1])-n(e[0]))))||void 0}function Em(n,t,e){return te.Z.addInterval(n,t,e)}function Sm(n,t,e){return Em(n,t,e)}function Xc(n,t,e){return t=t.filter(i=>!i.gapSize),function(i,r,m){var D;return i=n(i,r,m),t.every(A=>(i>=n(A.from,r)&&n(i,r)<A.to&&(D=A.to-A.from-2*(n(A.from,r)-A.from)),!D))||(i=e(n(i,D),r)),i}}function Jy(n,t,e,i){return function(r,m,D,A,N,Q,se,we,Re){var rn,Ue=function L1(n,t){return function(e){var i;return t.every(r=>(e>=r.from&&e<r.to&&(i=r.gapSize),!i))||(e=n(e,i)),e}}(n,A),st=r.min,Ot=r.max,Kt={screenDelta:se,businessDelta:Q,axisDivisionFactor:we,isSpacedMargin:r.isSpacedMargin,interval:m},sn=t(st,m,Kt),wn=[];for(null!=N&&N.length&&(n=Xc(n,N,t)),sn>Ot&&(sn=t(st,e(Q/2),Kt))>Ot&&(sn=t(st,m,Kt,D=!0)),sn=Ue(sn);sn<Ot&&sn!==rn||Re&&sn<=Ot;)wn.push(sn),rn=sn,sn=Ue(n(sn,m));return(D||sn-Ot==0||!(0,w.$K)(D)&&i(Ot,sn,m,Kt))&&wn.push(sn),wn}}function Om(n,t,e,i,r){return function(m,D,A,N,Q,se,we){var Re=Q/N,Ue=A[A.length-1],st=A[0],Ot=we-1;if(null!=se&&se.length&&(t=Xc(t,se,e)),0===(N=n(N,st,st,Re)))return[];var Kt=i(e(m,Q,m),N);N=n(N,st,Kt,Re);for(var sn=[];Kt<st&&(!Ot||Ot>0);)Kt>=m&&sn.push(Kt),Ot--,Kt=t(Kt,N);var wn=A.reduce((qt,un)=>{if(Ot=we-1,null===qt.prevTick)return qt.prevTick=un,qt;N=n(N,un,qt.prevTick,Re);for(var In=i(qt.prevTick,N);In<un&&(!Ot||Ot>0);)In!==qt.prevTick&&qt.minors.push(In),Ot--,In=t(In,N);return qt.prevTick=un,qt},{prevTick:null,minors:[]});sn=sn.concat(wn.minors);var Ft,rn=r(D,Q,m);for(N=n(N,rn,rn,Re),Kt=i(Ue,N);Kt<D&&Kt!==Ft;)sn.push(Kt),Ft=Kt,Kt=t(Kt,N);return Ue-D!=0&&Kt-D==0&&sn.push(Kt),sn}}function k_(n,t){if(t.length){var e=t.reduce((i,r)=>{var D,m=[];for(D=i[1];D<n.length;D++){var A=n[D];if(A<r.from&&m.push(A),A>=r.to)break}return[i[0].concat(m),D]},[[],0]);return e[0].concat(n.slice(e[1]))}return n}function Qw(n,t,e,i,r,m,D,A,N,Q){function se(we,Re,Ue){return we&&Re/D(we)>=Ue+1&&(n.incidentOccurred("W2003"),we=void 0),we}return function(we,Re,Ue,st,Ot,Kt,sn,wn){Ot=Ot||{};var qt,rn=t(we,wn),Ft={tickInterval:r((qt=Ot).majors),ticks:qt.majors||[],minorTickInterval:m(qt.minors),minorTicks:qt.minors||[]};return isNaN(rn)||(0!==rn||Ot.majors?(Ft=function(qt,un,In,Kn,Yn,ai,gi,Ci){if(gi.majors)return qt.breaks=Ci,qt;var Bi,Ki=Ci.filter(ri=>ri.gapSize);return Yn=n.skipCalculationLimits?Yn:se(Yn,In,Kn),Yn=e(In,Kn,Yn,ai,n.axisDivisionFactor,n.numberMultipliers,n.allowDecimals,Ci.length,Ki[0]&&Ki[0].gapSize.days,n.minTickInterval),n.skipTickGeneration||(Bi=k_(Bi=A(un,Yn,n.endOnTick,Ki,Ci,In,Kn,n.axisDivisionFactor,n.generateExtraTick),Ci=Q(Ci,Bi,Yn)),qt.breaks=Ci,qt.ticks=qt.ticks.concat(Bi)),qt.tickInterval=Yn,qt}(Ft,we,rn,Re,Ue,st,Ot,wn||[]),!n.skipTickGeneration&&rn>0&&(Ft=function(qt,un,In,Kn,Yn,ai,gi){if(!n.calculateMinors||gi.minors)return qt;var Ci=D(qt.tickInterval),Ki=Kn*Ci/In,Bi=qt.breaks;return!Yn&&ai?Yn=m([Ci/(ai+1),Ci/(ai+1)*2]):ai=void 0,Yn=se(Yn,Ci,Ki),Yn=i(Ci,Ki,Yn,n.minorAxisDivisionFactor),qt.minorTicks=k_(qt.minorTicks.concat(N(un.min,un.max,qt.ticks,Yn,qt.tickInterval,Bi,ai)),Bi),qt.minorTickInterval=Yn,qt}(Ft,we,rn,Re,Kt,sn,Ot))):Ft.ticks=[we.min]),Ft}}function B1(n,t,e,i){var[r,m]=t;return(!(0,w.$K)(r)||$c(i(n)-i(r))/e>.25)&&((0,w.$K)(m)&&$c(i(m)-i(r))/e<2?r=m:(0,w.$K)(r)||(r=n)),r}function eE(n,t,e){return function(i,r,m){var D=n(m),A=.5*D;return i.reduce((N,Q)=>{var se=r.filter(Ue=>Ue<=Q.from),we=e(B1(Q.from,[].concat(se[se.length-1],r[se.length]),D,t),A);se=r.filter(Ue=>Ue>=Q.to);var Re=e(B1(Q.to,[].concat(se[0],r[r.length-se.length-1]),D,t),-A);return t(Re)-t(we)<D&&!Q.gapSize?N:N.concat(Q.gapSize?[Q]:[{from:we,to:Re,cumulativeWidth:Q.cumulativeWidth}])},[])}}var Qy=(n,t,e)=>(i,r)=>(0,re.Xx)(i)*(0,re.zB)(n(t(i)((0,re.zB)(e(i)/r))*r));var hp=function(n){var t;return t=n.rangeIsEmpty?function Ww(n){return function(t,e,i,r){var m=Yc(e/n.axisDivisionFactor),D=e/(m=m<1?1:m);return{ticks:D>0?Array.apply(null,new Array(m+1)).map((A,N)=>D*N):[],tickInterval:D}}}(n):"discrete"===n.axisType?function Uw(n){return function(t,e,i,r){var m=xr(t.categories,t.min,t.max).categories;return{ticks:m,tickInterval:dp(m.length*n.axisDivisionFactor/e)}}}(n):"logarithmic"===n.axisType?function x2(n){var t=n.logBase,e=((n,t,e)=>i=>Wr(i,n,t,e))(t,n.allowNegatives,n.linearThreshold),i=Yy(t,n.allowNegatives,n.linearThreshold),r=(n=>t=>0===t?0:St($c(t),n))(t),m=(n=>t=>Vt(t,n))(t),D=Qy(m,Q=>Q<0?dp:Yc,r),A=Qy(m,Q=>Q<0?Yc:dp,r),N=T_(Ja,dp,Ja);return Qw(n,function jw(n,t,e){var i=Yy(n,t,e);return function(r,m){var D=0;return m&&(D=m.reduce((A,N)=>A+$c(i(N.to/N.from)),0)),dp($c(i(r.max)-i(r.min))-D)}}(t,n.allowNegatives,n.linearThreshold),function Yw(n){return function(t,e,i,r,m,D,A,N,Q,se){var we=A_(t,e,m),Re=0,Ue=qy(n);return(!r||!i)&&(we>0&&(Re=Ue(we,D)),(!i||!r&&i<Re)&&(i=Re)),!r&&se&&(se=Ue(se,D))>i&&(i=se),i}}(n.skipCalculationLimits),Xy,P_(i,Ja),P_(Ja,Ja),Ja,Jy(function Jw(n,t){return(e,i,r)=>t(Em(n(e),i,r))}(i,e),I_(D,A,Zw(t),n.endOnTick),qy(n.skipCalculationLimits),Zw(t)),Om((Q,se,we,Re)=>Math.max(Math.abs(se),Math.abs(we))/Re,Em,D,N,A),eE(Ja,i,(Q,se)=>e(i(Q)+se)))}(n):"datetime"===n.dataType?function V1(n){function t(i,r){var m=T_(Ja,Yc,Ja),D=(0,w.HD)(r)?te.Z.getDateIntervalByString(r.toLowerCase()):r,A=jc(r);(D.days%7==0||r.quarters)&&(D=wm(A));var N=se=>te.Z.correctDateWithUnitBeginning(se,D,null,n.firstDayOfWeek),Q=se=>new Date(Yc((se.getTime()-6e4*se.getTimezoneOffset())/A)*A+6e4*se.getTimezoneOffset());return i=N(i),"years"in D?i.setFullYear(m(i.getFullYear(),D.years)):"quarters"in D?i=N(Q(i)):"months"in D?i.setMonth(m(i.getMonth(),D.months)):"weeks"in D||"days"in D?i=N(Q(i)):"hours"in D?i.setHours(m(i.getHours(),D.hours)):"minutes"in D?i.setMinutes(m(i.getMinutes(),D.minutes)):"seconds"in D?i.setSeconds(m(i.getSeconds(),D.seconds)):"milliseconds"in D&&(i=Q(i)),i}var e=P_(Ja,te.Z.convertMillisecondsToDateUnits);return Qw(n,Gw,qw,R1,e,e,jc,Jy(Sm,I_(t,function(i,r){for(var m=t(i,r);i-m>0;)m=Sm(m,r);return m},Kw,n.endOnTick),wm,Kw),Om(Ja,Sm,t,Sm,Ja),eE(jc,Ja,(i,r)=>new Date(i.getTime()+r)))}(n):function F1(n){var t=T_(Ja,Yc,Ja),e=T_(Ja,dp,Ja),i=P_(Ja,Ja);return Qw(n,Gw,A1,Xy,i,i,Ja,Jy(Em,I_(t,e,M_,n.endOnTick),Fo,M_),Om(Ja,Em,t,Em,Ja),eE(Ja,Ja,(r,m)=>r+m))}(n),t},Dm=w.$K,eC=w.J_,R_=w.mf,Bg="min",pp="max",Tm="minVisible",Im="maxVisible",L_="axisType";function Fg(n,t){return t<n}function Mm(n,t){return t>n}function nE(n,t,e,i){var r=Dm(t);Dm(n)?r&&i(n,t)&&e(t):r&&e(t)}var as=function(n){n&&(0,y.l)(this,n)};as.prototype={constructor:as,addRange:function(n){var t=this,e=t.categories,i=n.categories,r="discrete"===t[L_],m=function(N,Q){nE(t[N],n[N],function(se){t[N]=se},Q)},D=function(N,Q,se){nE(t[N],t[Q],function(we){Dm(t[N])&&(t[N]=we)},se)},A=function(N){t[N]=t[N]||n[N]};return A("invert"),A("containsConstantLine"),A(L_),A("dataType"),A("isSpacedMargin"),"logarithmic"===t[L_]?A("base"):t.base=void 0,m(Bg,Fg),m(pp,Mm),r?(A(Tm),A(Im)):(m(Tm,Fg),m(Im,Mm)),m("interval",Fg),r||(D(Bg,Tm,Fg),D(Bg,Im,Fg),D(pp,Im,Mm),D(pp,Tm,Mm)),t.categories=void 0===e?i:i?Si(e.concat(i)):e,"logarithmic"===t[L_]&&(A("allowNegatives"),m("linearThreshold",Fg)),t},isEmpty:function(){return!(Dm(this[Bg])&&Dm(this[pp])||this.categories&&0!==this.categories.length)},correctValueZeroLevel:function(){var n=this;if(eC(n[pp])||eC(n[Bg]))return n;function t(e,i){n[e]<0&&n[i]<0&&(n[i]=0),n[e]>0&&n[i]>0&&(n[e]=0)}return t(Bg,pp),t(Tm,Im),n},sortCategories(n){if(!1!==n&&this.categories)if(Array.isArray(n)){var t=n.map(r=>r.valueOf()),e=this.categories.filter(r=>-1===t.indexOf(r.valueOf()));this.categories=n.concat(e)}else{var i=!R_(n);i&&"string"!==this.dataType?n=(r,m)=>r.valueOf()-m.valueOf():i&&(n=!1),n&&this.categories.sort(n)}}};var Vg=Math.round;function N1(n){return n}const nC={translate:function(n,t){var e=this._canvasOptions,i=this._categoriesToPoints[n?.valueOf()],r=this.translateSpecialCase(n),m=e.startPointIndex||0,D=this._options.stick?0:.5;return(0,w.$K)(r)?Vg(r):i||0===i?Vg(this._calculateProjection(e.interval*(i+D-m+.5*(t=t||0)))):null},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(n){return 1-(1-(n.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(n,t){var we,e=this._categories,i=this._canvasOptions,r=this._options.stick,m=i.invert,D=i.interval*t,A=n/D,N=(this.visibleCategories||[]).length,Q=parseInt((i.startPointIndex||0)+A+.5),se=parseInt((0,re.zB)(i.canvasLength/D)+(r?1:0))||1;m&&(Q=parseInt((i.startPointIndex||0)+N-A+.5)-se),Q<0&&(Q=0),(we=Q+se)>e.length&&(Q=(we=e.length)-se)<0&&(Q=0);var Re=e.slice(parseInt(Q),parseInt(we)),Ue=this._getDiscreteInterval(Re.length,i);return t=Ue/i.interval,n=this.translate(m?Re[Re.length-1]:Re[0])*t-(i.startPoint+(r?0:Ue/2)),{min:Re[0],max:Re[Re.length-1],translate:n,scale:t}},getMinScale:function(n){var t=this._canvasOptions,e=(this.visibleCategories||this._categories).length;return e+=(parseInt(.1*e)||1)*(n?-2:2),t.canvasLength/(Math.max(e,1)*t.interval)},getScale:function(n,t){var e=this._canvasOptions,i=this.getCanvasVisibleArea(),r=!this._options.stick&&1,m=(0,w.$K)(n)?this.translate(n,-r):null,D=(0,w.$K)(t)?this.translate(t,+r):null;return null===m&&(m=e.invert?i.max:i.min),null===D&&(D=e.invert?i.min:i.max),this.canvasLength/Math.abs(D-m)},isValid:function(n){return!!(0,w.$K)(n)&&this._categoriesToPoints[n.valueOf()]>=0},getCorrectValue:N1,to:function(n,t){var e=this._canvasOptions,i=this._categoriesToPoints[n?.valueOf()];return Vg(this._calculateProjection(e.interval*(i+(this._options.stick?0:.5)-(e.startPointIndex||0)+(this._businessRange.invert?-1:1)*t*.5)))},from:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=this._canvasOptions,i=e.startPoint,r=this.visibleCategories||this._categories,m=r.length,D=this._options.stick?.5:0,A=Vg((n-i)/e.interval+D-.5-.5*t);return A>=m&&(A=m-1),A<0&&(A=0),e.invert&&(A=m-A-1),r[A]},_add:function(){return NaN},toValue:N1,isValueProlonged:!0,getRangeByMinZoomValue(n,t){var e=this._categories,i=e.indexOf(t.minVisible),r=e.indexOf(t.maxVisible),m=i+n-1;return e[m]?[t.minVisible,e[m]]:[e[r-n+1],t.maxVisible]}};var iE=Math.floor;const b2={_intervalize:function(n,t){if((0,w.$K)(n))return"datetime"===this._businessRange.dataType?(n=(0,w.kE)(n)?new Date(n):new Date(n.getTime()),n=te.Z.correctDateWithUnitBeginning(n,t,null,this._options.firstDayOfWeek)):n=(0,re.zB)(iE((0,re.zB)(n/t))*t,t),n},translate:function(n,t,e){var i=this.translateSpecialCase(n);return(0,w.$K)(i)?Math.round(i):this.isValid(n,e=e||this._options.interval)?this.to(n,t,e):null},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(n){return"datetime"===this._businessRange.dataType?new Date(n):Number(n)},fromValue:function(n){return this._parse(n)},toValue:function(n){return this._parse(n)},isValid:function(n,t){var e=this._canvasOptions,i=e.rangeMin,r=e.rangeMax;return t=t||this._options.interval,!(null===n||isNaN(n)||(n="datetime"===this._businessRange.dataType&&(0,w.kE)(n)?new Date(n):n,t!==this._options.interval&&(i=this._intervalize(i,t),r=this._intervalize(r,t)),n.valueOf()<i||n.valueOf()>=te.Z.addInterval(r,t)))},to:function(n,t,e){var i=this._intervalize(n,e=e||this._options.interval),r=te.Z.addInterval(i,e),m=this._to(i),D=this._to(r);return t?t>0&&(m=D):m=iE((m+D)/2),m},_to:function(n){var t=this._canvasOptions,e=t.rangeMinVisible,i=t.rangeMaxVisible,r=n-e;return n<e?r=0:n>i&&(r=te.Z.addInterval(i,this._options.interval)-e),this._conversionValue(this._calculateProjection(r*this._canvasOptions.ratioOfCanvasRange))},from:function(n,t){var A,e=this._options.interval,i=e,r=this._canvasOptions,m=r.rangeMinVisible,D=r.rangeMaxVisible;return"datetime"===this._businessRange.dataType&&(i=te.Z.dateToMilliseconds(e)),A=this._calculateUnProjection((n-this._canvasOptions.startPoint)/this._canvasOptions.ratioOfCanvasRange),(A=this._intervalize(te.Z.addInterval(A,i/2,t>0),e))<m?A=m:A>D&&(A=D),A},_add:function(){return NaN},isValueProlonged:!0};function gp(n){return null!==n?new Date(n):n}const rE={fromValue:gp,toValue:gp,_add:te.Z.addDateInterval,convert:te.Z.dateToMilliseconds},H1={fromValue:function(n){return null!==n?Sr(n,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):n},toValue:function(n){return null!==n?Wr(n,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):n},getMinBarSize:function(n){var t=this.getCanvasVisibleArea(),e=this.from(t.min+n),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this.fromValue(this.from(t.min))-this.fromValue((0,w.$K)(e)?e:this.from(t.max)))},checkMinBarSize:function(n,t,e){var D,A,i=this._canvasOptions,r=e-n,m=this.constructor.prototype.checkMinBarSize;return(0,w.$K)(t)&&r>0?(D=m(this.fromValue(e/r),this.fromValue(t)-i.rangeMinVisible),A=Math.pow(i.base,this.fromValue(r)+D)-r):A=m(n,t),A}};var B_=Math.abs,z1=["width","height","left","top","bottom","right"],W1={to(n){var t=this._canvasOptions.startPoint+(this._options.conversionValue?n:Math.round(n));return t>this._canvasOptions.endPoint?this._canvasOptions.endPoint:t},from(n){return n-this._canvasOptions.startPoint}},Am=function(n){return(0,O.S6)(z1,function(t,e){n[e]=parseInt(n[e])||0}),n};function km(n){return{isStartSide:n?function(t,e,i,r){return t<=e[e.length-1][r]}:function(t,e,i,r){return t<e[0][i]},isEndSide:n?function(t,e,i,r){return t>e[0][i]}:function(t,e,i,r){return t>=e[e.length-1][r]},isInBreak:n?function(t,e,i,r){return t>e[r]&&t<=e[i]}:function(t,e,i,r){return t>=e[i]&&t<e[r]},isBetweenBreaks:n?function(t,e,i,r,m){return t>=e[m]&&t<i[r]}:function(t,e,i,r,m){return t<e[r]&&t>=i[m]},getLength:n?function(t,e){return e.length-t.length}:function(t){return t.length},getBreaksSize:n?function(t,e){return e.cumulativeWidth-t.cumulativeWidth}:function(t){return t.cumulativeWidth}}}var Hg=function(n,t,e){this.update(n,t,e)};function F_(n){return{stroke:n.color,"stroke-width":n.width,"stroke-opacity":n.opacity,opacity:1}}function zg(n,t,e,i,r,m,D){var A=D||n._tickOffset,N=n._axisLineGroup,Q=n._axisElementsGroup,se=F_(e),we=F_(i),Re=/^\s+$/,st=n.getOptions().label,Ot=n._textOptions;function Kt(wn){var rn=n._textFontStyles,Ft=st.customizeColor;return Ft&&Ft.call&&(rn=(0,y.l)({},n._textFontStyles,{fill:Ft.call(wn,wn)})),rn}function sn(wn,rn){var Ft=n.formatHint(wn.value,st,rn);(0,w.$K)(Ft)&&""!==Ft&&wn.getContentContainer().setTitle(Ft)}return function(wn){var rn={value:wn,updateValue(Ft){this.value=wn=Ft},initCoords:function(){this.coords=n._getTranslatedValue(wn,A),this.labelCoords=n._getTranslatedValue(wn)},saveCoords(){this._lastStoredCoordinates={coords:this._storedCoords,labelCoords:this._storedLabelsCoords},this._storedCoords=this.coords,this._storedLabelsCoords=this.templateContainer?this._getTemplateCoords():this.labelCoords},resetCoordinates(){this._lastStoredCoordinates&&(this._storedCoords=this._lastStoredCoordinates.coords,this._storedLabelsCoords=this._lastStoredCoordinates.labelCoords)},drawMark(Ft){!e.visible||r===wn||n.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(N),n.sharp(this.mark,n.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(Ft)):(this.mark=n._createPathElement([],se,n.getSharpDirectionByCoords(this.coords)).append(N),this.updateTickPosition(Ft)))},setSkippedCategory(Ft){r=Ft},_updateLine(Ft,qt,un,In,Kn){if(Ft){if(null===qt.points||null===qt.r)return void Ft.remove();In&&un&&null!==un.points?(qt.opacity=1,Ft.attr(un),Ft.animate(qt)):(qt.opacity=In?0:1,Ft.attr(qt),In&&Ft.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&n._rotateTick(Ft,this.coords,Kn)}},updateTickPosition:function(Ft,qt){this._updateLine(this.mark,{points:n._getTickMarkPoints(rn.coords,e.length,Ft)},this._storedCoords&&{points:n._getTickMarkPoints(rn._storedCoords,e.length,Ft)},qt,!1)},drawLabel:function(Ft,qt){if(this.templateContainer&&n.isRendered())this.updateLabelPosition();else if(!st.visible||m||n.getTranslator().getBusinessRange().isEmpty()||n.areCoordsOutsideAxis(this.labelCoords))this.label&&this.removeLabel();else{var In=st.template,Kn=n.formatLabel(wn,st,Ft);if(this.label)return this.label.attr({text:Kn,rotate:0}).append(Q),sn(this,Ft),void this.updateLabelPosition();In?(this.templateContainer=t.g().append(Q),this._templateDef&&this._templateDef.reject(),this._templateDef=new P.BH,qt.render({model:{valueText:Kn,value:this.value,labelFontStyle:Kt(this),labelStyle:Ot},container:this.templateContainer.element,onRendered:()=>{this.updateLabelPosition(),this._templateDef&&this._templateDef.resolve()}})):(0,w.$K)(Kn)&&""!==Kn&&!Re.test(Kn)&&(this.label=t.text(Kn).css(Kt(this)).attr(Ot).append(Q),this.updateLabelPosition(),sn(this,Ft));var Yn=this.getContentContainer();Yn&&Yn.data("chart-data-argument",this.value),this.templateContainer&&sn(this,Ft)}},getTemplateDeferred(){return this._templateDef},getContentContainer(){return this.templateContainer||this.label},fadeOutElements(){var Ft={opacity:1},qt={opacity:0},un={partitionDuration:.5};this.getContentContainer()&&this._fadeOutLabel(),this.grid&&this.grid.append(n._axisGridGroup).attr(Ft).animate(qt,un),this.mark&&this.mark.append(n._axisLineGroup).attr(Ft).animate(qt,un)},_fadeInLabel(){var Ft=n._renderer.g().attr({opacity:0}).append(n._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.getContentContainer().append(Ft)},_fadeOutLabel(){var Ft=n._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(n._axisElementsGroup).toBackground();this.getContentContainer().append(Ft)},_getTemplateCoords(){return n._getLabelAdjustedCoord(this,(n._constantLabelOffset||0)+(rn.labelOffset||0))},updateLabelPosition:function(Ft){var qt=this.templateContainer;if(this.getContentContainer())if(Ft&&this._storedLabelsCoords)if(qt){qt.attr(this._storedLabelsCoords);var un=this._getTemplateCoords();qt.animate(un)}else this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y});else{if(qt){var In=this._getTemplateCoords();qt.attr(In)}else this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y});Ft&&this._fadeInLabel()}},updateMultilineTextAlignment(){st.template||!this.label||this.label.attr({textsAlignment:this.labelAlignment||n.getOptions().label.alignment})},drawGrid:function(Ft){i.visible&&r!==this.value&&(this.grid?(this.grid.append(n._axisGridGroup),n.sharp(this.grid,n.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=Ft(this,we),this.grid&&this.grid.append(n._axisGridGroup)))},updateGridPosition:function(Ft){this._updateLine(this.grid,n._getGridPoints(rn.coords),this._storedCoords&&n._getGridPoints(this._storedCoords),Ft,!0)},removeLabel(){var Ft=this.getContentContainer();Ft&&Ft.remove(),this._templateDef&&this._templateDef.reject(),this._templateDef=this.templateContainer=this.label=null}};return rn}}Hg.prototype={constructor:Hg,reinit:function(){var n=this,t=n._options,e=n._businessRange,i=e.categories||[],r={},m=n._prepareCanvasOptions(),D=xr(i,e.minVisible,e.maxVisible).categories,A=D.length;if(e.isEmpty())r=W1;else switch(e.axisType){case"logarithmic":r=H1;break;case"semidiscrete":r=b2,m.ratioOfCanvasRange=m.canvasLength/(te.Z.addInterval(m.rangeMaxVisible,t.interval)-m.rangeMinVisible);break;case"discrete":r=nC,n._categories=i,m.interval=n._getDiscreteInterval(t.addSpiderCategory?A+1:A,m),n._categoriesToPoints=function(n){var t={};return n.forEach(function(e,i){t[e.valueOf()]=i}),t}(i),A&&(m.startPointIndex=n._categoriesToPoints[D[0].valueOf()],n.visibleCategories=D);break;default:"datetime"===e.dataType&&(r=rE)}(n._oldMethods||[]).forEach(function(N){delete n[N]}),n._oldMethods=Object.keys(r),(0,y.l)(n,r),n._conversionValue=t.conversionValue?function(N){return N}:function(N){return Math.round(N)},n.sc={},n._checkingMethodsAboutBreaks=[km(!1),km(n.isInverted())],n._translateBreaks(),n._calculateSpecialValues()},_translateBreaks:function(){var e,i,r,m,n=this._breaks,t=this._options.breaksSize;if(void 0!==n)for(e=0,m=n.length;e<m;e++)r=this.translate((i=n[e]).to),i.end=r,i.start=i.gapSize?r:this.isInverted()?r+t:r-t},_checkValueAboutBreaks:function(n,t,e,i,r){var m,D,N,Q,A={length:0,breaksSize:void 0,inBreak:!1},se=n[n.length-1];if(r.isStartSide(t,n,e,i))return A;if(r.isEndSide(t,n,e,i))return{length:se.length,breaksSize:se.cumulativeWidth,inBreak:!1};for(m=0,D=n.length;m<D;m++){if(Q=n[m-1],r.isInBreak(t,N=n[m],e,i)){A.inBreak=!0,A.break=N;break}if(Q&&r.isBetweenBreaks(t,N,Q,e,i)){A={length:r.getLength(Q,se),breaksSize:r.getBreaksSize(Q,se),inBreak:!1};break}}return A},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(n,t){var e=n-(this._options.stick?1:0);return e>0?t.canvasLength/e:t.canvasLength},_prepareCanvasOptions(){var r,n=this._businessRange,t=this._canvasOptions=function rC(n){var t=n.min,e=n.max,i=n.minVisible,r=n.maxVisible;return"logarithmic"===n.axisType&&(r=Sr(r,n.base,n.allowNegatives,n.linearThreshold),i=Sr(i,n.base,n.allowNegatives,n.linearThreshold),t=Sr(t,n.base,n.allowNegatives,n.linearThreshold),e=Sr(e,n.base,n.allowNegatives,n.linearThreshold)),{base:n.base,rangeMin:t,rangeMax:e,rangeMinVisible:i,rangeMaxVisible:r}}(n),e=this._canvas,i=this._breaks;return t.startPadding=e.startPadding||0,t.endPadding=e.endPadding||0,this._options.isHorizontal?(t.startPoint=e.left+t.startPadding,r=e.width,t.endPoint=e.width-e.right-t.endPadding,t.invert=n.invert):(t.startPoint=e.top+t.startPadding,r=e.height,t.endPoint=e.height-e.bottom-t.endPadding,t.invert=!n.invert),this.canvasLength=t.canvasLength=t.endPoint-t.startPoint,t.rangeDoubleError=Math.pow(10,ki(t.rangeMax-t.rangeMin)-ki(r)-2),t.ratioOfCanvasRange=t.canvasLength/(t.rangeMaxVisible-t.rangeMinVisible),void 0!==i&&(t.ratioOfCanvasRange=(t.canvasLength-i[i.length-1].cumulativeWidth)/(t.rangeMaxVisible-t.rangeMinVisible-i[i.length-1].length)),t},updateCanvas:function(n){this._canvas=Am(n),this.reinit()},updateBusinessRange:function(n){var t=n.breaks||[];this._userBreaks=n.userBreaks||[],this._businessRange=function(n){function t(e,i){!(0,w.$K)(n[e])&&(0,w.$K)(n[i])&&(n[e]=n[i])}return n instanceof as||(n=new as(n)),t("minVisible","min"),t("maxVisible","max"),n}(n),this._breaks=t.length?function Pm(n,t){var r,m,D,A,e="logarithmic"===t.axisType?function(se){return Sr(se,t.base)}:function(se){return se},i=[],N=n.length,Q=0;for(A=0;A<N;A++)m=e((r=n[A]).from),D=e(r.to),i.push({trFrom:m,trTo:D,from:r.from,to:r.to,length:Q+=D-m,cumulativeWidth:r.cumulativeWidth});return i}(t,this._businessRange):void 0,this.reinit()},update:function(n,t,e){this._options=(0,y.l)(this._options||{},e),this._canvas=Am(t),this.updateBusinessRange(n)},getBusinessRange:function(){return this._businessRange},getEventScale:function(n){return n.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var A,n=this._canvasOptions,t=n.startPoint-n.startPadding,e=n.endPoint+n.endPadding,i=this._businessRange,r=i.minVisible,m=i.maxVisible,D=t+n.canvasLength/2;if(r<0&&m>0&&r!==m&&(A=this.translate(0,1)),!(0,w.$K)(A)){var N=i.invert^(r<0&&m<=0);A=this._options.isHorizontal?N?e:t:N?t:e}this.sc={canvas_position_default:A,canvas_position_left:t,canvas_position_top:t,canvas_position_center:D,canvas_position_middle:D,canvas_position_right:e,canvas_position_bottom:e,canvas_position_start:n.invert?e:t,canvas_position_end:n.invert?t:e}},translateSpecialCase(n){return this.sc[n]},_calculateProjection:function(n){var t=this._canvasOptions;return t.invert?t.endPoint-n:t.startPoint+n},_calculateUnProjection:function(n){var t=this._canvasOptions;return"datetime"===this._businessRange.dataType&&(n=Math.round(n)),t.invert?t.rangeMaxVisible.valueOf()-n:t.rangeMinVisible.valueOf()+n},getMinBarSize:function(n){var t=this.getCanvasVisibleArea(),e=this.from(t.min+n);return B_(this.from(t.min)-((0,w.$K)(e)?e:this.from(t.max)))},checkMinBarSize:function(n,t,e){return B_(n)<t?n>=0?t:-t:n},translate(n,t){var e=this.translateSpecialCase(n);return(0,w.$K)(e)?Math.round(e):isNaN(n)?null:this.to(n,t)},getInterval:function(n){var t,e=this._canvasOptions;return n=null!==(t=n)&&void 0!==t?t:this._businessRange.interval,Math.round(n?e.ratioOfCanvasRange*n:e.endPoint-e.startPoint)},zoom(n,t,e){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==n)return this.zoomZeroLengthRange(n,t);var r=i.startPoint,m=i.endPoint,D=this.isInverted(),A=(r+n)/t,N=(m+n)/t;e=e||{};var we,Re,Q=this.to(D?e.endValue:e.startValue),se=this.to(D?e.startValue:e.endValue);return Q>A&&(N-=A-Q,A=Q,we=D?e.endValue:e.startValue),se<N&&(A-=N-se,N=se,Re=D?e.startValue:e.endValue),se-Q<N-A&&(A=Q,N=se),t=(r+(n=(m-r)*A/(N-A)-r))/A||1,we=(0,w.$K)(we)?we:(0,re.zB)(this.from(A,1)),Re=(0,w.$K)(Re)?Re:(0,re.zB)(this.from(N,-1)),t<=1&&(we=this._correctValueAboutBreaks(we,1===t?n:-1),Re=this._correctValueAboutBreaks(Re,1===t?n:1)),we>Re?(we=we>e.endValue?e.endValue:we,Re=Re<e.startValue?e.startValue:Re):(we=we<e.startValue?e.startValue:we,Re=Re>e.endValue?e.endValue:Re),{min:we,max:Re,translate:(0,re.zB)(n),scale:(0,re.zB)(t)}},_correctValueAboutBreaks(n,t){var e=this._userBreaks.filter(i=>n>=i.from&&n<=i.to);return e.length?t>0?e[0].to:e[0].from:n},zoomZeroLengthRange(n,t){var e=this._canvasOptions,i=e.rangeMin,r=e.rangeMax,m=(r.valueOf()!==i.valueOf()?r.valueOf()-i.valueOf():B_(e.rangeMinVisible.valueOf()-i.valueOf()))/e.canvasLength,D=(0,w.J_)(r)||(0,w.J_)(i),A="logarithmic"===this._businessRange.axisType,N=e.rangeMinVisible.valueOf()-m,Q=e.rangeMaxVisible.valueOf()+m;return{min:N=A?(0,re.zB)(Wr(N,e.base)):D?new Date(N):N,max:Q=A?(0,re.zB)(Wr(Q,e.base)):D?new Date(Q):Q,translate:n,scale:t}},getMinScale:function(n){var{dataType:t,interval:e}=this._businessRange;return"datetime"===t&&1===e?this.getDateTimeMinScale(n):n?1.1:.9},getDateTimeMinScale(n){var t=this._canvasOptions,e=t.canvasLength/t.ratioOfCanvasRange;return e+=(parseInt(.1*e)||1)*(n?-2:2),t.canvasLength/(Math.max(e,1)*t.ratioOfCanvasRange)},getScale:function(n,t){var e=this._canvasOptions;return e.rangeMax===e.rangeMin?1:(n=(0,w.$K)(n)?this.fromValue(n):e.rangeMin,t=(0,w.$K)(t)?this.fromValue(t):e.rangeMax,(e.rangeMax-e.rangeMin)/Math.abs(n-t))},isValid:function(n){var t=this._canvasOptions;return null!==(n=this.fromValue(n))&&!isNaN(n)&&n.valueOf()+t.rangeDoubleError>=t.rangeMin&&n.valueOf()-t.rangeDoubleError<=t.rangeMax},getCorrectValue:function(n,t){var i,e=this._breaks;return n=this.fromValue(n),this._breaks&&!0===(i=this._checkValueAboutBreaks(e,n,"trFrom","trTo",this._checkingMethodsAboutBreaks[0])).inBreak?this.toValue(t>0?i.break.trTo:i.break.trFrom):this.toValue(n)},to:function(n,t){var e=this.getBusinessRange();if((0,w.$K)(e.maxVisible)&&(0,w.$K)(e.minVisible)&&e.maxVisible.valueOf()===e.minVisible.valueOf())return(0,w.$K)(n)&&e.maxVisible.valueOf()===n.valueOf()?this.translateSpecialCase(0===n&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;n=this.fromValue(n);var i=this._canvasOptions,r=this._breaks,m={length:0},D=0;return void 0!==r&&(m=this._checkValueAboutBreaks(r,n,"trFrom","trTo",this._checkingMethodsAboutBreaks[0]),D=(0,w.$K)(m.breaksSize)?m.breaksSize:0),!0===m.inBreak?t>0?m.break.start:t<0?m.break.end:null:this._conversionValue(this._calculateProjection((n-i.rangeMinVisible-m.length)*i.ratioOfCanvasRange+D))},from:function(n,t){var e=this._breaks,i={length:0},r=this._canvasOptions,m=r.startPoint,D=0;return void 0!==e&&(i=this._checkValueAboutBreaks(e,n,"start","end",this._checkingMethodsAboutBreaks[1]),D=(0,w.$K)(i.breaksSize)?i.breaksSize:0),!0===i.inBreak?t>0?this.toValue(i.break.trTo):t<0?this.toValue(i.break.trFrom):null:this.toValue(this._calculateUnProjection((n-m-D)/r.ratioOfCanvasRange+i.length))},isValueProlonged:!1,getRange:function(){return[this.toValue(this._canvasOptions.rangeMin),this.toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(n,t,e){return this._add(n,t,(this._businessRange.invert?-1:1)*e)},_add:function(n,t,e){return this.toValue(this.fromValue(n)+t*e)},fromValue:function(n){return null!==n?Number(n):null},toValue:function(n){return null!==n?Number(n):null},ratioOfCanvasRange(){return this._canvasOptions.ratioOfCanvasRange},convert:n=>n,getRangeByMinZoomValue(n,t){return t.minVisible+n<=this._businessRange.max?[t.minVisible,t.minVisible+n]:[t.maxVisible-n,t.maxVisible]}};var oC=[0,1,2,3,4,5,6];function qc(n){return(n+1)%7}function U1(n,t){for(var e=n.start,i=n.end;e!==i;){if(e===t)return!0;e=qc(e)}return!1}function Z1(n,t){for(var e=0;n!==t;)n=qc(n),e++;return e}function Nl(n,t,e,i,r){var m=function K1(n){var t=function oE(n){return oC.filter(function(t){return!n.some(function(e){return e===t})})}(n);if(t.length<7)for(;qc(t[t.length-1])===t[0];)t.unshift(t.pop());return t}(e),D=function sE(n,t,e){var i=n.getDate(),r=[];return e.reduce(function(D,A){var N=D[1];return void 0===N.start?(N={start:A,end:qc(A)},D[0].push(N),[D[0],N]):N.end===A?(N.end=qc(A),D):(N={start:A,end:qc(A)},D[0].push(N),[D[0],N])},[[],{}])[0].forEach(function(D){var A=new Date(n);for(A=te.Z.trimTime(A);A<t;){i=A.getDay();var N=A.getDate();if(U1(D,i)){var Q=new Date(A);A.setDate(N+Z1(i,D.end));var se=new Date(A);r.push({from:Q,to:se})}A.setDate(A.getDate()+1)}}),r}(n,t,m);return D.push.apply(D,function G1(n,t,e,i){var r,m=function(N){return N===r},D=te.Z.trimTime(n),A=te.Z.trimTime(t);return A.setDate(t.getDate()+1),e.reduce(function(N,Q){var se,we;return Q=new Date(Q),r=Q.getDay(),!i.some(m)&&Q>=D&&Q<=A&&(se=te.Z.trimTime(Q),(we=new Date(se)).setDate(se.getDate()+1),N.push({from:se,to:we})),N},[])}(n,t,r||[],m)),function j1(n){return n.map(function(t){return{from:t.from,to:t.to,gapSize:te.Z.convertMillisecondsToDateUnits(t.to-t.from)}})}(function lE(n,t){var i,e=n.slice(),r=function(m){if(m=te.Z.trimTime(new Date(m)),e[i].from<=m&&e[i].to>m){var D=function aE(n,t){var e=[],i=new Date(t);return i.setDate(t.getDate()+1),t>n.from&&e.push({from:n.from,to:t}),i<n.to&&e.push({from:i,to:n.to}),e}(e[i],m);2===D.length?e.splice(i,1,D[0],D[1]):1===D.length?e.splice(i,1,D[0]):e.splice(i,1)}};for(i=0;i<e.length;i++)t.forEach(r);return e}(D,i||[]))}var aC=te.Z.getNextDateUnit,uE=te.Z.correctDateWithUnitBeginning,bd=Math,Jc=bd.max,Js="top",Ts="bottom",ns="left",rl="right",Hl="center",X1={left:-1,top:-1,right:0,bottom:0,center:-.5};function Nu(n){return n.sort(function(t,e){return t.from-e.from})}function pE(n,t,e,i){var r=i,m=t&&te.Z.getDatesDifferences(t,n);return t&&"year"!==e&&(function q1(n,t){var e,i;if("week"===t&&(t="day"),"quarter"===t&&(t="month"),n[t])for(i=0;i<te.Z.dateUnitIntervals.length&&(n[e=te.Z.dateUnitIntervals[i]]&&(n[e]=!1,n.count--),e!==t);i++);}(m,e),r=Va.Z.getDateFormatByDifferences(m)),r}function gE(n,t){return t.reduce(function(e,i){return Jc(e,n(i))},0)}function fE(n,t,e){return n.some(function(i){return i.label.verticalAlignment===t})&&e||0}function mE(n){return bd.abs(n.x)||0}function Rm(n){return bd.abs(n.width-bd.abs(n.x))||0}const tI={linear:{_getStep:function(n,t){var e=this._options.label.minSpacing,r=gE(this._isHorizontal?function(m){return m.width+e}:function(m){return m.height},n);return t&&(r=function eI(n,t){var e=(t=(t=bd.abs(t))%180>=90?90-t%90:t%90)*(bd.PI/180);return e>=bd.atan(n.height/n.width)?n.height/bd.abs(bd.sin(e)):n.width}({width:r,height:this._getMaxLabelHeight(n,0)},t)),Mo_getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",r)},_getMaxLabelHeight:function(n,t){return gE(function(e){return e.height},n)+t},_validateOverlappingMode:function(n,t){return this._isHorizontal&&("rotate"===t||"stagger"===t)||!this._isHorizontal?Mo_validateOverlappingMode(n):n},_validateDisplayMode:function(n){return this._isHorizontal?n:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(n){return this._isHorizontal^n?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var n=this._axisPosition,t=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[t.start,n,t.end,n]:[n,t.start,n,t.end]})},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)},_initAxisPositions(){this.customPositionIsAvailable()&&(this._customBoundaryPosition=this.getCustomBoundaryPosition()),this._axisPosition=!this.customPositionIsAvailable()||this.customPositionIsBoundary()?this.getPredefinedPosition(this.getResolvedBoundaryPosition()):this.getCustomPosition()},_getTickMarkPoints(n,t,e){var D,i=this._isHorizontal,r=this._options.tickOrientation,m=this._options.label.position;if((0,w.$K)(r))D=X1[r]*t;else{var A=e.shift||0;(!i&&m===ns||i&&m!==Ts)&&(A=-A),D=A+this.getTickStartPositionShift(t)}return[n.x+(i?0:D),n.y+(i?D:0),n.x+(i?0:D+t),n.y+(i?D+t:0)]},getTickStartPositionShift(n){var t=this._options.width,e=this.getResolvedBoundaryPosition();return n%2==1?(t%2!=0||e!==ns&&e!==Js)&&(t%2!=1||e!==rl&&e!==Ts||this.hasNonBoundaryPosition())?-Math.floor(n/2):Math.floor(-n/2):-n/2+(t%2==0?0:e===Ts||e===rl?-1:1)},_getTitleCoords:function(){var n=this._isHorizontal,t=this._axisPosition,e=this._axisPosition,i=this._options.title.alignment,r=this._getCanvasStartEnd(),m=n||this._options.position===ns,N=i===ns?m?r.start:r.end:i===rl?m?r.end:r.start:r.start+(r.end-r.start)/2;return n?t=N:e=N,{x:t,y:e}},_drawTitleText:function(n,t){var e=this._options,i=e.title,r={opacity:i.opacity,align:i.alignment,class:i.cssClass};if(i.text&&n){t=t||this._getTitleCoords(),this._isHorizontal||(r.rotate=e.position===ns?270:90);var m=this._renderer.text(i.text,t.x,t.y).css(ci(i.font)).attr(r).append(n);return this._checkTitleOverflow(m),m}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var n=this._drawTitleText(this._axisTitleGroup);n&&(this._title={element:n})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(n,t,e){var D,i=this._options.marker,r=this._translator.getBusinessRange().invert,m=i.width+i.textLeftIndent;if(null!==t.x){t.withoutStick||(D=this._renderer.path([t.x,t.y,t.x,t.y+i.separatorHeight],"line").attr({"stroke-width":i.width,stroke:i.color,"stroke-opacity":i.opacity,sharp:"h"}).append(this._axisElementsGroup));var A=String(this.formatLabel(n,t.labelOptions,e));return{date:n,x:t.x,y:t.y,cropped:t.withoutStick,label:this._renderer.text(A,t.x,t.y).css(ci(i.label.font)).append(this._axisElementsGroup),line:D,getContentContainer(){return this.label},getEnd:function(){return this.x+(r?-1:1)*(m+this.labelBBox.width)},setTitle:function(){this.title=A},hideLabel:function(){this.label.dispose(),this.label=null,this.title=A},hide:function(){D&&(D.dispose(),D=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){var D,n=this,t=n._options,e=n._translator,i=n._getViewportRange(),r=i.minVisible,m=[];function A(Re,Ue,st){return n._drawDateMarker(Re,{x:e.translate(Re),y:N,labelOptions:n._getLabelFormatOptions(Ue),withoutStick:st},i)}if(i.isEmpty()||!t.marker.visible||"datetime"!==t.argumentType||"discrete"===t.type||n._majorTicks.length<=1)return[];var N=n._axisPosition+t.marker.topIndent,Q=te.Z.getDateUnitInterval(this._tickInterval),se=function hE(n){var t=aC(n);return"quarter"===t&&(t=aC(t)),t}(Q),we=function lC(n,t,e){var r,i=n;return n=uE(n,e),t=uE(t,e),(r=te.Z.getSequenceByInterval(n,t,e)).length&&i>r[0]&&(r=r.slice(1)),r}(r,i.maxVisible,se);return(we.length>1||1===we.length&&r<we[0])&&(m=we.reduce(function(Re,Ue,st,Ot){var Kt=A(Ue,pE(Ue,Ot[st-1]||r<Ue&&r,Q,se));return Kt&&Re.push(Kt),Re},[]),r<we[0]&&(D=A(r,pE(r,we[0],Q,se),!0))&&m.unshift(D)),m},_adjustDateMarkers:function(n){n=n||0;var A,t=this,e=this._options.marker,i=e.width+e.textLeftIndent,r=this._translator.getBusinessRange().invert,m=t._getCanvasStartEnd(),D=this._dateMarkers;return D.length?(D[0].cropped&&(this._checkMarkersPosition(r,D[1],D[0])||D[0].hideLabel()),D.forEach(function(N,Q,se){N.cropped||((r?N.getEnd()<m.end:N.getEnd()>m.end)?N.hideLabel():t._checkMarkersPosition(r,N,A)?A=N:N.hide())}),this._dateMarkers.forEach(function(N){if(N.label){var Q=N.labelBBox;N.label.attr({translateX:r?N.x-i-Q.x-Q.width:N.x+i-Q.x,translateY:N.y+e.textTopIndent-Q.y+n})}N.line&&N.line.attr({translateY:n})}),t._initializeMarkersTrackers(n),n+e.topIndent+e.separatorHeight):n},_checkMarkersPosition:function(n,t,e){return void 0===e||(n?t.x<e.getEnd():t.x>e.getEnd())},_initializeMarkersTrackers:function(n){var t=this._options.marker.separatorHeight,e=this._renderer,i=this._translator.getBusinessRange(),r=this._getCanvasStartEnd(),m=this._axisElementsGroup;this._markerTrackers=this._dateMarkers.filter(function(D){return!D.hidden}).map(function(D,A,N){var Q=N[A+1]||{x:r.end,date:i.max},se=D.x,we=D.y+n,Re=e.path([se,we,se,we+t,Q.x,we+t,Q.x,we,se,we],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(m);return Re.data("range",{startValue:D.date,endValue:Q.date}),D.title&&Re.setTitle(D.title),Re})},_getLabelFormatOptions:function(n){var t=this._markerLabelOptions;return t||(this._markerLabelOptions=t=(0,y.l)(!0,{},this._options.marker.label)),(0,w.$K)(this._options.marker.label.format)||(t.format=n),t},_adjustConstantLineLabels:function(n){var t=this,e=t._options.position,i=t.getCanvas(),r=i.left,m=i.width-i.right,D=i.top,A=i.height-i.bottom,N=D+(A-D)/2,Q=r+(m-r)/2,se=0;return n.forEach(function(we){var un,In,Ue=we.options,st=Ue.paddingTopBottom,Ot=Ue.paddingLeftRight,Kt=Ue.label,sn=Kt.verticalAlignment,wn=Kt.horizontalAlignment,rn="inside"===Kt.position,Ft=we.label,qt=we.labelBBox;if(null!==Ft&&!qt.isEmpty){if(t._isHorizontal)if(rn)switch(un=wn===ns?we.coord-Ot-qt.x-qt.width:we.coord+Ot-qt.x,sn){case Hl:In=N-qt.y-qt.height/2;break;case Ts:In=A-st-qt.y-qt.height;break;default:In=D+st-qt.y}else e===sn&&(se=Jc(se,qt.height+st)),un=we.coord-qt.x-qt.width/2,In=sn===Ts?A+st-qt.y:D-st-qt.y-qt.height;else if(rn)switch(In=sn===Ts?we.coord+st-qt.y:we.coord-st-qt.y-qt.height,wn){case Hl:un=Q-qt.x-qt.width/2;break;case rl:un=m-Ot-qt.x-qt.width;break;default:un=r+Ot-qt.x}else e===wn&&(se=Jc(se,qt.width+Ot)),In=we.coord-qt.y-qt.height/2,un=wn===rl?m+Ot-qt.x:r-Ot-qt.x-qt.width;Ft.attr({translateX:un,translateY:In})}}),se},_drawConstantLinesForEstimating:function(n){var t=this,e=this._renderer,i=e.g();return n.forEach(function(r){t._drawConstantLineLabelText(r.label.text,0,0,r.label,i).attr({align:"center"})}),i.append(e.root)},_estimateLabelHeight:function(n,t){var e=n.height,i=t.drawingType;if(("stagger"===this._validateDisplayMode(i)||"stagger"===this._validateOverlappingMode(t.overlappingBehavior,i))&&(e=2*e+t.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(t.overlappingBehavior,i)){var r=Lt(t.rotationAngle);e=e*r.cos+n.width*r.sin}return e&&(e+t.indentFromAxis||0)||0},estimateMargins:function(n){this.updateCanvas(n);var t=this._getViewportRange(),e=this._createTicksAndLabelFormat(t),i=e.ticks,r=e.tickInterval,m=this._options,D=this._outsideConstantLines.filter(qt=>qt.labelOptions.visible).map(qt=>qt.options),A=this._renderer.root,N=m.label.visible&&!t.isEmpty()&&i.length,Q=N&&this.formatLabel(i[i.length-1],m.label,void 0,void 0,r,i),se=N&&this._renderer.text(Q,0,0).css(this._textFontStyles).attr(this._textOptions).append(A),we=this._drawTitleText(A,{x:0,y:0}),Re=this._drawConstantLinesForEstimating(D),Ue=!m.label.template&&se&&se.getBBox()||{x:0,y:0,width:0,height:0},st=we&&we.getBBox()||{x:0,y:0,width:0,height:0},Ot=Re.getBBox(),Kt=st.height?st.height+m.title.margin:0,sn=this._estimateLabelHeight(Ue,m.label),wn=Ot.height?Ot.height+function uC(n){return n.reduce(function(t,e){return Jc(t,e.paddingTopBottom)},0)}(D):0,rn=sn+Kt,Ft={left:Jc(mE(Ue),mE(Ot)),right:Jc(Rm(Ue),Rm(Ot)),top:("top"===m.position?rn:0)+fE(D,"top",wn),bottom:("top"!==m.position?rn:0)+fE(D,"bottom",wn)};return se&&se.remove(),we&&we.remove(),Re&&Re.remove(),Ft},_checkAlignmentConstantLineLabels:function(n){var t=n.position,e=(n.verticalAlignment||"").toLowerCase(),i=(n.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===t?(e=e===Ts?Ts:Js,i=Hl):(e=e===Hl?Hl:e===Ts?Ts:Js,i=i===ns?ns:rl):"outside"===t?(e=Hl,i=i===ns?ns:rl):(e=e===Ts?Ts:Js,i=i===rl?rl:i===Hl?Hl:ns),n.verticalAlignment=e,n.horizontalAlignment=i},_getConstantLineLabelsCoords:function(n,t){var e=n,i=n;return this._isHorizontal?i=this._orthogonalPositions["top"===t.verticalAlignment?"start":"end"]:e=this._orthogonalPositions["right"===t.horizontalAlignment?"end":"start"],{x:e,y:i}},_getAdjustedStripLabelCoords:function(n){var t=n.options,e=t.paddingTopBottom,i=t.paddingLeftRight,r=t.label.horizontalAlignment,m=t.label.verticalAlignment,D=n.labelBBox,A=D.height,N=D.width,Q=n.labelCoords,se=Q.y-D.y,we=Q.x-D.x;return m===Js?se+=e:m===Hl?se-=A/2:m===Ts&&(se-=e+A),r===ns?we+=i:r===Hl?we-=N/2:r===rl&&(we-=i+N),{translateX:we,translateY:se}},_adjustTitle:function(n){if(n=n||0,this._title){var t=this._options,e=t.position,i=t.title.margin,r=this._title,m=r.bBox,D=m.x,A=m.y,N=m.width,se=this._axisPosition,we=se-i-n,Re=se+i+n,Ue={};this._isHorizontal?Ue.translateY=e===Js?we-(A+m.height):Re-A:Ue.translateX=e===ns?we-(D+N):Re-D,r.element.attr(Ue)}},_checkTitleOverflow:function(n){if(this._title||n){var t=this._getScreenDelta(),e=n?{bBox:n.getBBox(),element:n}:this._title,i=this._options.title,r=e.bBox;(this._isHorizontal?r.width:r.height)>t?(e.element.setMaxSize(t,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap):!this._wrapped&&e.originalSize&&t>(this._isHorizontal?e.originalSize.width:e.originalSize.height)&&e.element.restoreText()}},coordsIn:function(n,t){var e=this.getCanvas(),i=this._options.isHorizontal,r=this._options.position,m=i?t:n;return!(i&&(n<e.left||n>e.width-e.right)||!i&&(t<e.top||t>e.height-e.bottom))&&(i&&"top"===r||!i&&"left"===r?m<e[r]:m>e[i?"height":"width"]-e[r])},_boundaryTicksVisibility:{min:!0,max:!0},adjust(){var n=this._seriesData,t=this._series.filter(e=>e.isVisible()).reduce((e,i)=>{var r=i.getViewport();return e.min=(0,w.$K)(r.min)?e.min<r.min?e.min:r.min:e.min,e.max=(0,w.$K)(r.max)?e.max>r.max?e.max:r.max:e.max,i.showZero&&(e=new as(e)).correctValueZeroLevel(),e},{});(0,w.$K)(t.min)&&(0,w.$K)(t.max)&&(n.minVisible=t.min,n.maxVisible=t.max),n.userBreaks=this._getScaleBreaks(this._options,{minVisible:n.minVisible,maxVisible:n.maxVisible},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},hasWrap(){return this._wrapped},getAxisPosition(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(n,t,e){var A,N,i=this._orthogonalPositions,m=e.horizontalAlignment,D=e.verticalAlignment;return this._isHorizontal?(m===Hl?A=n+(t-n)/2:m===ns?A=n:m===rl&&(A=t),N=i[function Q1(n){var t="start";return"center"===n&&(t="center"),"bottom"===n&&(t="end"),t}(D)]):(A=i[function J1(n){var t="start";return"center"===n&&(t="center"),"right"===n&&(t="end"),t}(m)],D===Js?N=n:D===Hl?N=t+(n-t)/2:D===Ts&&(N=t)),{x:A,y:N}},_getTranslatedValue:function(n,t){var e=this._translator.translate(n,t,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,r=this._isHorizontal;return{x:r?e:i,y:r?i:e}},areCoordsOutsideAxis:function(n){var t=this._isHorizontal?n.x:n.y,e=this.getVisibleArea();return t<e[0]||t>e[1]},_getSkippedCategory:function(n){var t;return"discrete"===this._options.type&&this._tickOffset&&0!==n.length&&(t=n[n.length-1]),t},_filterBreaks:function(n,t,e){var i=t.minVisible,r=t.maxVisible,m=e?e.width:0;return n.reduce(function(D,A){var we,N=A.from,Q=A.to,se=D[D.length-1];if(!(0,w.$K)(N)||!(0,w.$K)(Q))return D;if(N>Q&&(Q=[N,N=Q][0]),D.length&&N<se.to)Q>se.to&&(se.to=Q>r?r:Q,se.gapSize&&(se.gapSize=void 0,se.cumulativeWidth+=m));else if((N>=i&&N<r||Q<=r&&Q>i)&&(Q=Q<=r?Q:r)-(N=N>=i?N:i)<r-i){var Re,Ue;we={from:N,to:Q,cumulativeWidth:(null!==(Re=se?.cumulativeWidth)&&void 0!==Re?Re:0)+m},A.gapSize&&(we.gapSize=te.Z.convertMillisecondsToDateUnits(Q-N),we.cumulativeWidth=null!==(Ue=se?.cumulativeWidth)&&void 0!==Ue?Ue:0),D.push(we)}return D},[])},_getScaleBreaks:function(n,t,e,i){var r=this,m=(n.breaks||[]).map(function(D){return{from:r.parser(D.startValue),to:r.parser(D.endValue)}});return"discrete"!==n.type&&"datetime"===n.dataType&&n.workdaysOnly&&(m=m.concat(Nl(t.minVisible,t.maxVisible,n.workWeek,n.singleWorkdays,n.holidays))),!i&&"discrete"!==n.type&&"datetime"!==n.dataType&&n.autoBreaksEnabled&&0!==n.maxAutoBreakCount&&(m=m.concat(function N_(n,t,e){for(var{logarithmBase:i,type:r,maxAutoBreakCount:m}=n,{minVisible:D,maxVisible:A}=e,N=[],Q="logarithmic"===r?(rn,Ft)=>St(Ft/rn,i):(rn,Ft)=>Ft-rn,se=Q(D,A),we=t.reduce((rn,Ft)=>{var qt=Ft.getPointsInViewPort();return rn[0]=rn[0].concat(qt[0]),rn[1]=rn[1].concat(qt[1]),rn},[[],[]]),st=.3*se,Ot=function dC(n,t,e){var i,r,A,N,Q,m=null,D=[];for(i=1,r=n.length;i<r;i++)Q=e(A=n[i],N=n[i-1]),t.indexOf(A)>=0?(!m||Q>m.length)&&(m={start:A,end:N,length:Q}):(D.push(m&&Q<m.length?m:{start:A,end:N,length:Q}),m=null);return m&&D.push(m),D}(we[0].concat(we[1]).sort((rn,Ft)=>Ft-rn),we[1].filter(rn=>we[0].indexOf(rn)<0),Q).sort((rn,Ft)=>Ft.length-rn.length),Kt=bd.min.apply(null,Ot.map(rn=>rn.length))/1e3,sn=(0,w.$K)(m)?bd.min(m,Ot.length):Ot.length,wn=0;wn<sn&&Ot[wn].length>=st&&!(se<=Ot[wn].length);wn++)((se-=Ot[wn].length)>Kt||se<-Kt)&&(N.push({from:Ot[wn].start,to:Ot[wn].end}),st=.3*se);return Nu(N),N}(n,e,t))),Nu(m)},_drawBreak:function(n,t,e,i,r,m){var D=n-(this._translator.isInverted()?0:i+1),A={"stroke-width":1,stroke:r.borderColor,sharp:r.isWaved?void 0:r.isHorizontal?"h":"v"},N={stroke:r.color,"stroke-width":i},se=function cC(n,t,e,i,r,m,D){var A=D?"bezier":"line",N=n.g().append(t);return function(Q,se){n.path(e(function w2(n,t,e,i,r){if(!r)return[n,t+i,e,t+i];var m,D=(t+=i)+0,A=t+2,N=t+4,Q=[[n,A]];for(m=n;m<e+24;m+=24)Q.push([m+6,D,m+6,D,m+12,A,m+18,N,m+18,N,m+24,A]);return[].concat.apply([],Q)}(i,r,m,Q,D)),A).attr(se).append(N)}}(this._renderer,m,this._isHorizontal?_E:function(we){return we},t,D,e,r.isWaved);se(i/2,N),se(0,A),se(i,A)},_createBreakClipRect:function(n,t){var r,e=this._canvas,i=t-n;return r=this._isHorizontal?this._renderer.clipRect(e.left,n,e.width,i):this._renderer.clipRect(n,e.top,i,e.height),this._breaksElements=this._breaksElements||[],this._breaksElements.push(r),r.id},_createBreaksGroup:function(n,t){var e=this._renderer.g().attr({class:this._axisCssPrefix+"breaks","clip-path":this._createBreakClipRect(n,t)}).append(this._scaleBreaksGroup);return this._breaksElements=this._breaksElements||[],this._breaksElements.push(e),e},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach(function(n){n.dispose()}),this._breaksElements=null},drawScaleBreaks:function(n){var m,D,N,Q,se,t=this,e=t._options,i=e.breakStyle,r=e.position,A=t._translator.getBusinessRange().breaks||[];if(t._disposeBreaksGroup(),A&&A.length){var we={color:t._options.containerColor,borderColor:i.color,isHorizontal:t._isHorizontal,isWaved:"straight"!==i.line.toLowerCase()};n?(m=n.start,D=n.end):(m=t._orthogonalPositions.start-(!e.visible||t._axisShift||r!==ns&&r!==Js?0:3),D=t._orthogonalPositions.end+(!e.visible||r!==rl&&r!==Ts?0:3));var Re=t._createBreaksGroup(m,D);t._axisShift&&e.visible&&(N=t._createBreaksGroup(Q=t._axisPosition-t._axisShift-3,se=Q+6)),A.forEach(function(Ue){if(!Ue.gapSize){var st=t._getTranslatedCoord(Ue.to);t._drawBreak(st,m,D,i.width,we,Re),t._axisShift&&e.visible&&t._drawBreak(st,Q,se,i.width,we,N)}})}},_getSpiderCategoryOption:E.ZT,shift:function(n){var t=this._options,e=t.isHorizontal,i=this.getMultipleAxesSpacing(),r=this._axisConstantLineGroups;function m(D,A){var N={translateX:0,translateY:0},Q=n[D]?n[D]+i:0;return N[e?"translateY":"translateX"]=(D===ns||D===Js?-1:1)*Q,(A[D]||A).attr(N),Q}this._axisShift=m(t.position,this._axisGroup),m(t.position,this._axisElementsGroup),(e?[Js,Ts]:[ns,rl]).forEach(D=>{m(D,r.above),m(D,r.under)})},getCustomPosition(n){var A,t=this.getOrthogonalAxis(),e=n??this.getResolvedPositionOption(),i=this.getOptions().offset,r=t.getTranslator(),m=t.getOptions().type,D=t.validateUnit(e);return"discrete"===m&&(!r._categories||r._categories.indexOf(D)<0)&&(D=void 0),A=this.positionIsBoundary(e)?this.getPredefinedPosition(e):(0,w.$K)(D)?r.to(D,-1):this.getPredefinedPosition(this.getOptions().position),isFinite(A)&&isFinite(i)&&(A+=i),A},getCustomBoundaryPosition(n){var{customPosition:t,offset:e}=this.getOptions(),i=n??this.getResolvedPositionOption(),r=this.getOrthogonalAxis(),m=r.getTranslator(),D=m.getCanvasVisibleArea();if((0,w.$K)(r._orthogonalPositions)&&0!==m.canvasLength){var A=this.getCustomPosition(i);if(!(0,w.$K)(A))return this.getResolvedBoundaryPosition();if((0,w.$K)(t)){if(A<=D.min)return this._isHorizontal?Js:ns;if(A>=D.max)return this._isHorizontal?Ts:rl}else if((0,w.$K)(e)){if(A<=this._orthogonalPositions.start)return this._isHorizontal?Js:ns;if(A>=this._orthogonalPositions.end)return this._isHorizontal?Ts:rl}return A}},getResolvedPositionOption(){var n,t=this.getOptions();return null!==(n=t.customPosition)&&void 0!==n?n:t.position},customPositionIsAvailable(){var n=this.getOptions();return(0,w.$K)(this.getOrthogonalAxis())&&((0,w.$K)(n.customPosition)||isFinite(n.offset))},hasNonBoundaryPosition(){return this.customPositionIsAvailable()&&!this.customPositionIsBoundary()},getResolvedBoundaryPosition(){return this.customPositionIsBoundary()?this._customBoundaryPosition:this.getOptions().position},customPositionEqualsToPredefined(){return this.customPositionIsBoundary()&&this._customBoundaryPosition===this.getOptions().position},customPositionIsBoundary(){return this.positionIsBoundary(this._customBoundaryPosition)},positionIsBoundary:n=>[Js,ns,Ts,rl].indexOf(n)>=0,getPredefinedPosition(n){var t;return null===(t=this._orthogonalPositions)||void 0===t?void 0:t[n===Js||n===ns?"start":"end"]},resolveOverlappingForCustomPositioning(n){var t=this;if(t.hasNonBoundaryPosition()||t.customPositionIsBoundary()||n.some(i=>i.hasNonBoundaryPosition())){var e={axes:[],ticks:[]};n.filter(i=>i.pane===t.pane).forEach(i=>{for(var r=0;r<t._majorTicks.length;r++){var m=t._majorTicks[r],D=m.label;if(D){e.axes.indexOf(i)<0&&t._detectElementsOverlapping(D,i._axisElement)&&(e.axes.push(i),t._shiftThroughOrthogonalAxisOverlappedTick(D,i));for(var A=0;A<i._majorTicks.length;A++){var Q=i._majorTicks[A].label;if(Q&&t._detectElementsOverlapping(D,Q)){e.ticks.push(m),t._shiftThroughAxisOverlappedTick(m),r=t._majorTicks.length;break}}}m.mark&&e.ticks.indexOf(m)<0&&(t._isHorizontal&&m.mark.attr("translateY")?m.mark.attr({translateY:0}):!t._isHorizontal&&m.mark.attr("translateX")&&m.mark.attr({translateX:0}))}})}},_shiftThroughOrthogonalAxisOverlappedTick(n,t){var e=n.getBBox(),i=t.getAxisPosition(),r=t.getOptions().label,m=r.position,D=r.indentFromAxis/2,A=this._isHorizontal?"translateX":"translateY",N=this._isHorizontal?ns:Js,Q=n.attr(A),se=(this._isHorizontal?e.x:e.y)+Q,Re=i-se,Ue=se+(this._isHorizontal?e.width:e.height)-i,st={};st[A]=Q,Re>0&&Ue>0&&(Ue-Re>1?st[A]+=Re+D:Re-Ue>1?st[A]-=Ue+D:st[A]+=m===N?Re+D:-(Ue+D),n.attr(st))},_shiftThroughAxisOverlappedTick(n){var t,e=n.label;if(e){var i=e.getBBox(),r=null===(t=n.mark)||void 0===t?void 0:t.getBBox(),m=this.getAxisPosition(),D=this.getOptions().label,A=D.indentFromAxis,N=D.position,Q=this._isHorizontal?Js:ns,se=this._isHorizontal?"translateY":"translateX",we=e.attr(se),Re=(this._isHorizontal?i.y:i.x)+we,st={};st[se]=we+(N===Q?m-Re+A:-(Re-m+(this._isHorizontal?i.height:i.width)+A)),e.attr(st),n.mark&&(st[se]=(N===Q?1:-1)*((this._isHorizontal?r.height:r.width)-1),n.mark.attr(st))}},_detectElementsOverlapping(n,t){if(!n||!t)return!1;var e=n.getBBox(),i=e.x+n.attr("translateX"),r=e.y+n.attr("translateY"),m=t.getBBox(),D=m.x+t.attr("translateX"),A=m.y+t.attr("translateY");return(D>=i&&D<=i+e.width||i>=D&&i<=D+m.width)&&(A>=r&&A<=r+e.height||r>=A&&r<=A+m.height)}}};function _E(n){var e,t=[];for(e=0;e<n.length;e+=2)t.push(n[e+1]),t.push(n[e]);return t}var Lm=Math.max,hC=function(n,t){var e=t.left,i=t.top,r=t.width-t.right,m=t.height-t.bottom;return n.reduce(function(D,A){return!A||A.isEmpty?D:{left:Lm(D.left,e-A.x),top:Lm(D.top,i-A.y),right:Lm(D.right,A.x+A.width-r),bottom:Lm(D.bottom,A.y+A.height-m)}},{left:0,right:0,top:0,bottom:0})},Qc=function(n){n.forEach(function(t){var e=t.getContentContainer();t.labelBBox=e?e.getBBox():{x:0,y:0,width:0,height:0}})},{PI:Bm,abs:hl,atan:Fm,round:Hu}=Math,Vm=Math.min,pC=Math.max,gC=tI.linear;function vE(n){var t;return(n=lt(n))>=315&&n<=360||n<45&&n>=0?t=1:n>=45&&n<135?t=2:n>=135&&n<225?t=3:n>=225&&n<315&&(t=4),t}var wd={_calculateValueMargins(n){var{minVisible:t,maxVisible:e}=this._getViewportRange();return n&&n.length>1&&(e=(t=t<n[0].value?t:n[0].value)>n[n.length-1].value?e:n[n.length-1].value),{minValue:t,maxValue:e}},applyMargins(){var n=this._calculateValueMargins(this._majorTicks),t=this._translator.getBusinessRange();t.addRange({minVisible:n.minValue,maxVisible:n.maxValue,interval:this._calculateRangeInterval(t.interval)}),this._translator.updateBusinessRange(t)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var n=this._options;return[n.startAngle,n.endAngle]},_updateRadius(n){var t=Vm(n.width-n.left-n.right,n.height-n.top-n.bottom)/2;this._radius=t<0?0:t},_updateCenter:function(n){this._center={x:n.left+(n.width-n.right-n.left)/2,y:n.top+(n.height-n.top-n.bottom)/2}},_processCanvas:function(n){return this._updateRadius(n),this._updateCenter(n),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var n=this.getCenter();this._axisElement.attr({cx:n.x,cy:n.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions(n){var t=n.originValue,e=n.wholeRange={},i=n.period;(0,w.$K)(t)&&(t=this.validateUnit(t)),i>0&&"numeric"===n.argumentType&&(e.endValue=(t=t||0)+i,this._viewport=kr([t,e.endValue])),(0,w.$K)(t)&&(e.startValue=t)},getMargins(){var n=this._options.tick,t=pC(n.visible?n.length/2+n.shift:0,0),e=this.getRadius(),{x:i,y:r}=this._center,m=this._majorTicks.map(N=>N.label&&N.label.getBBox()).filter(N=>N),D=(0,y.l)({},this._canvas,{left:i-e,top:r-e,right:this._canvas.width-(i+e),bottom:this._canvas.height-(r+e)}),A=hC(m,D);return Object.keys(A).forEach(N=>A[N]=A[N]<t?t:A[N]),A},_updateLabelsPosition(){Qc(this._majorTicks),this._adjustLabelsCoord(0,0,!0),this._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map(n=>n.labelBBox))},_setVisualRange:E.ZT,applyVisualRangeSetter:E.ZT,_getStick:function(){return this._options.firstPointOnStartAngle||"discrete"!==this._options.type},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)-90},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(n,t){var e=this.getCenter(),i=this.getAngles()[0],r=this.getRadius();return{x:e.x,y:e.y,innerRadius:0,outerRadius:r,startAngle:-t-i,endAngle:-n-i}},_createStrip:function(n){return this._renderer.arc(n.x,n.y,n.innerRadius,n.outerRadius,n.startAngle,n.endAngle)},_getStripLabelCoords:function(n,t){var e=this._getStripGraphicAttributes(n,t),r=Lt(e.startAngle+(e.endAngle-e.startAngle)/2),m=this.getRadius()/2,D=this.getCenter();return{x:Hu(D.x+m*r.cos),y:Hu(D.y-m*r.sin),align:"center"}},_getConstantLineGraphicAttributes:function(n){var t=this.getCenter(),e=this.getRadius();return{points:[t.x,t.y,t.x+e,t.y]}},_createConstantLine:function(n,t){return this._createPathElement(this._getConstantLineGraphicAttributes(n).points,t)},_rotateConstantLine(n,t){var{x:e,y:i}=this.getCenter();n.rotate(t+this.getAngles()[0],e,i)},_getConstantLineLabelsCoords:function(n){var t=Lt(-n-this.getAngles()[0]),e=this.getRadius()/2,i=this.getCenter();return{x:Hu(i.x+e*t.cos),y:Hu(i.y-e*t.sin)}},_checkAlignmentConstantLineLabels:E.ZT,_adjustDivisionFactor:function(n){return 180*n/(this.getRadius()*Bm)},_getScreenDelta:function(){var n=this.getAngles();return hl(n[0]-n[1])},_getTickMarkPoints:function(n,t,e){var{shift:i=0}=e,r=this.getCenter(),m=this.getRadius()+t*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[r.x+m+i,r.y,r.x+m+t+i,r.y]},_getLabelAdjustedCoord:function(n,t,e,i){var r=n.labelCoords,m=r.y,D=r.angle,A=Lt(D),N=A.cos,Q=A.sin,se=n.labelBBox,we=se.width/2,Re=se.height/2,Ue=this._options.label.indentFromAxis||0,st=r.x+Ue*N,Ot=m+(m-se.y-Re)+Ue*Q,Kt=0,sn=0;switch(vE(D)){case 1:Kt=we,sn=Re*Q;break;case 2:Kt=we*N,sn=Re;break;case 3:Kt=-we,sn=Re*Q;break;case 4:Kt=we*N,sn=-Re}if(i){var wn=this._canvas,rn=st-r.x+Kt,Ft=Ot-r.y+sn;se.x+rn<wn.originalLeft&&(Kt-=se.x+rn-wn.originalLeft),se.x+se.width+rn>wn.width-wn.originalRight&&(Kt-=se.x+se.width+rn-(wn.width-wn.originalRight)),se.y+Ft<wn.originalTop&&(sn-=se.y+Ft-wn.originalTop),se.y+se.height+Ft>wn.height-wn.originalBottom&&(sn-=se.y+se.height+Ft-(wn.height-wn.originalBottom))}return{x:st+Kt,y:Ot+sn}},_getGridLineDrawer:function(){var n=this;return function(t,e){var i=n.getCenter();return n._createPathElement(n._getGridPoints().points,e).rotate(t.coords.angle,i.x,i.y)}},_getGridPoints:function(){var n=this.getRadius(),t=this.getCenter();return{points:[t.x,t.y,t.x+n,t.y]}},_getTranslatedValue:function(n,t){var e=this.getAngles()[0],i=this._translator.translate(n,-t),r=Wi(this.getCenter(),e,i,this.getRadius());return{x:r.x,y:r.y,angle:this.getTranslatedAngle(i)}},_getAdjustedStripLabelCoords:function(n){var t=n.labelBBox;return{translateY:n.label.attr("y")-t.y-t.height/2}},coordsIn:function(n,t){return qi(this.getCenter(),n,t).r>this.getRadius()},_rotateTick:function(n,t){var e=this.getCenter();n.rotate(t.angle,e.x,e.y)},_validateOverlappingMode:function(n){return Mo_validateOverlappingMode(n)},_validateDisplayMode:function(){return"standard"},_getStep:function(n){var t=this.getRadius()+(this._options.label.indentFromAxis||0),e=n.reduce(function(m,D){var A=m;return m.width<D.width&&(A.width=D.width),m.height<D.height&&(A.height=D.height),A},{width:0,height:0}),i=hl(2*Fm(e.height/(2*t-e.width))*180/Bm),r=hl(2*Fm(e.width/(2*t-e.height))*180/Bm);return Mo_getTicksCountInRange(this._majorTicks,"angle",pC(i,r))},_checkBoundedLabelsOverlapping:function(n,t,e){var i=this._options.label;if("hide"===(e=e||this._validateOverlappingMode(i.overlappingBehavior))){var r=n.reduce((m,D,A)=>D.label?A:m,null);r&&Mo_areLabelsOverlap(t[0],t[r],i.minSpacing,"center")&&("first"===i.hideFirstOrLast?n[0].removeLabel():n[r].removeLabel())}},shift:function(n){this._axisGroup.attr({translateX:n.right,translateY:n.bottom}),this._axisElementsGroup.attr({translateX:n.right,translateY:n.bottom})},getTranslatedAngle(n){return n+this.getAngles()[0]-90}},Nm=wd,yE=(0,y.l)({},wd,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:Vn(this.getSpiderTicks(),function(n){return{x:n.coords.x,y:n.coords.y}})})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var n=this.getFullTicks();return this._spiderTicks=n.map(zg(this,this.renderer,{},{},this._getSkippedCategory(n),!0)),this._spiderTicks.forEach(function(t){t.initCoords()}),this._spiderTicks},_getStripGraphicAttributes:function(n,t){for(var r,m,D,A,e=this.getCenter(),i=this.getSpiderTicks(),N=[],Q=0,se=i.length;Q<se;)(A=i[Q].coords).angle>=n&&A.angle<=t&&(r||N.push((A.x+(r=(i[Q-1]||i[i.length-1]).coords).x)/2,(A.y+r.y)/2),N.push(A.x,A.y),m={x:(A.x+(D=(i[Q+1]||i[0]).coords).x)/2,y:(A.y+D.y)/2}),Q++;return N.push(m.x,m.y),N.push(e.x,e.y),{points:N}},_createStrip:function(n){var{points:t}=n;return this._renderer.path(t,"area")},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)-90},_setTickOffset:function(){this._tickOffset=!1}}),nI={_resetMargins(){this._reinitTranslator(this._getViewportRange())},_getStick:gC._getStick,_getSpiderCategoryOption:E.ZT,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:wd.getRadius,getCenter:wd.getCenter,getAngles:wd.getAngles,_updateRadius:wd._updateRadius,_updateCenter:wd._updateCenter,_processCanvas(n){return this._updateRadius(n),this._updateCenter(n),{left:0,right:0,startPadding:n.startPadding,endPadding:n.endPadding,width:this.getRadius()}},_createAxisElement:gC._createAxisElement,_updateAxisElementPosition:function(){var n=this.getCenter();this._axisElement.attr({points:[n.x,n.y,n.x+this.getRadius(),n.y]}).rotate(this.getAngles()[0]-90,n.x,n.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(n,t){return[n.x-t/2,n.y,n.x+t/2,n.y]},_getLabelAdjustedCoord:function(n){var t=n.labelCoords,e=t.y,i=Lt(t.angle),r=this._options.label.indentFromAxis||0,m=n.labelBBox;return{x:t.x-hl(r*i.sin)+hl(m.width/2*i.cos)-m.width/2,y:e+(e-m.y)-hl(m.height/2*i.sin)+hl(r*i.cos)}},_getGridLineDrawer:function(){var n=this;return function(t,e){var i=n._getGridPoints(t.coords);return n._renderer.circle(i.cx,i.cy,i.r).attr(e).sharp()}},_getGridPoints:function(n){var t=this.getCenter(),e=mn(t.x,t.y,n.x,n.y);return e>this.getRadius()?{cx:null,cy:null,r:null}:{cx:t.x,cy:t.y,r:e}},_getTranslatedValue:function(n,t){var e=this.getAngles()[0],i=Wi(this.getCenter(),e,0,this._translator.translate(n,t));return{x:i.x,y:i.y,angle:e-90}},_getTranslatedCoord:function(n,t){return this._translator.translate(n,t)},_getCanvasStartEnd(){var n=this.getTranslator().getBusinessRange().invert,t=[0,this.getRadius()];return n&&t.reverse(),{start:t[0],end:t[1]}},_getStripGraphicAttributes:function(n,t){var e=this.getCenter();return{x:e.x,y:e.y,innerRadius:n,outerRadius:t}},_createStrip:function(n){return this._renderer.arc(n.x,n.y,n.innerRadius,n.outerRadius,0,360)},_getAdjustedStripLabelCoords:wd._getAdjustedStripLabelCoords,_getStripLabelCoords:function(n,t){var e=n+(t-n)/2,i=this.getCenter(),r=Hu(i.y-e);return{x:i.x,y:r,align:"center"}},_getConstantLineGraphicAttributes:function(n){var t=this.getCenter();return{cx:t.x,cy:t.y,r:n}},_createConstantLine:function(n,t){var e=this._getConstantLineGraphicAttributes(n);return this._renderer.circle(e.cx,e.cy,e.r).attr(t).sharp()},_getConstantLineLabelsCoords:function(n){var t=this.getCenter(),e=Hu(t.y-n);return{x:t.x,y:e}},_checkAlignmentConstantLineLabels:E.ZT,_rotateTick:function(n,t,e){!e&&n.rotate(t.angle+90,t.x,t.y)},_validateOverlappingMode:wd._validateOverlappingMode,_validateDisplayMode:wd._validateDisplayMode,_getStep:function(n){var t=vE(this.getAngles()[0]),e=this._options.label.minSpacing,i=2===t||4===t?function(m){return m.width+e}:function(m){return m.height},r=n.reduce((m,D)=>pC(m,i(D)),0);return Mo_getTicksCountInRange(this._majorTicks,2===t||4===t?"x":"y",r)}},iI=(0,y.l)({},nI,{_createPathElement:function(n,t){return this._renderer.path(n,"area").attr(t).sharp()},setSpiderTicks:function(n){this._spiderTicks=n},_getGridLineDrawer:function(){var n=this;return function(t,e){return n._createPathElement(n._getGridPoints(t.coords).points,e)}},_getGridPoints:function(n){var t=this.getCenter(),e=mn(t.x,t.y,n.x,n.y);return this._getGridPointsByRadius(e)},_getGridPointsByRadius:function(n){var t=this.getCenter();return n>this.getRadius()?{points:null}:{points:Vn(this._spiderTicks,function(e){var i=Lt(e.coords.angle);return{x:Hu(t.x+n*i.cos),y:Hu(t.y+n*i.sin)}})}},_getStripGraphicAttributes:function(n,t){var e=this._getGridPointsByRadius(t).points;return{points:[this._getGridPointsByRadius(n).points,e.reverse()]}},_createStrip:yE._createStrip,_getConstantLineGraphicAttributes:function(n){return this._getGridPointsByRadius(n)},_createConstantLine:function(n,t){return this._createPathElement(this._getConstantLineGraphicAttributes(n).points,t)}}),Wg=function(n){return Vn(n||[],function(t){return t.value})},Hm=Math,zu=Hm.abs,Ed=Hm.max,zm=Hm.min,H_=Array.isArray,fp="top",eh="bottom",lu="left",Wu="right",Ug="center",Qd="keep",fC="shift",ec="reset",Zg="rotate";function Um(n,t,e,i,r,m){var D,{allowNegatives:A,linearThreshold:N}=m;return hp({axisType:n.type,dataType:n.dataType,logBase:n.logarithmBase,allowNegatives:A,linearThreshold:N,axisDivisionFactor:r(n.axisDivisionFactor||50),minorAxisDivisionFactor:r(n.minorAxisDivisionFactor||15),numberMultipliers:n.numberMultipliers,calculateMinors:n.minorTick.visible||n.minorGrid.visible||n.calculateMinors,allowDecimals:n.allowDecimals,endOnTick:n.endOnTick,incidentOccurred:t,firstDayOfWeek:null===(D=n.workWeek)||void 0===D?void 0:D[0],skipTickGeneration:e,skipCalculationLimits:n.skipCalculationLimits,generateExtraTick:n.generateExtraTick,minTickInterval:n.minTickInterval,rangeIsEmpty:i})}function xE(n,t,e){var i=n.getOptions();return zg(n,t,i.tick,i.grid,e,!1)}function bE(n,t){var e=n.getOptions();return zg(n,t,e.minorTick,e.minorGrid)}function U_(n,t,e){var i=n.getOptions();return zg(n,t,(0,y.l)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,e?-1:1)}function is(n,t,e,i){(n||[]).forEach(r=>r[t](e,i))}function pl(n){is(n,"initCoords")}function _p(n,t){is(n,"drawMark",t)}function Qs(n,t){is(n,"drawGrid",t)}function tc(n,t,e){is(n,"updateTickPosition",t,e)}function Zm(n,t){is(n,"updateGridPosition",t)}function wl(n){for(var t=n.length-1;t>=0&&Z_(n,t);t--);for(t=0;t<n.length&&Z_(n,t);t++)t--}function Z_(n,t){return(null===n[t].coords.x||null===n[t].coords.y)&&(n.splice(t,1),!0)}function Gg(n,t){return 180*Hm.asin((n[0].height+t.minSpacing)/(n[1].x-n[0].x))/Hm.PI<45?-45:-90}function th(n,t,e){n.forEach(function(i,r){i.getContentContainer()&&(r%t!=0?i.removeLabel():e&&e(i,r))})}function nc(n,t){return void 0===n?t:null===n?void 0:n}var zl=function(n){this._renderer=n.renderer,this._incidentOccurred=n.incidentOccurred,this._eventTrigger=n.eventTrigger,this._stripsGroup=n.stripsGroup,this._stripLabelAxesGroup=n.stripLabelAxesGroup,this._labelsAxesGroup=n.labelsAxesGroup,this._constantLinesGroup=n.constantLinesGroup,this._scaleBreaksGroup=n.scaleBreaksGroup,this._axesContainerGroup=n.axesContainerGroup,this._gridContainerGroup=n.gridGroup,this._axisCssPrefix=n.widgetClass+"-"+(n.axisClass?n.axisClass+"-":""),this._setType(n.axisType,n.drawingType),this._createAxisGroups(),this._translator=this._createTranslator(),this.isArgumentAxis=n.isArgumentAxis,this._viewport={},this._prevDataInfo={},this._firstDrawing=!0,this._initRange={},this._getTemplate=n.getTemplate};zl.prototype={constructor:zl,_drawAxis(){var n=this._options;n.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":n.width,stroke:n.color,"stroke-opacity":n.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement(n,t,e){return this.sharp(this._renderer.path(n,"line").attr(t),e)},sharp(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n.sharp(this._getSharpParam(),t)},customPositionIsAvailable:()=>!1,getOrthogonalAxis:E.ZT,getCustomPosition:E.ZT,getCustomBoundaryPosition:E.ZT,resolveOverlappingForCustomPositioning:E.ZT,hasNonBoundaryPosition:()=>!1,customPositionIsBoundaryOrthogonalAxis:()=>!1,getResolvedBoundaryPosition(){return this.getOptions().position},getAxisSharpDirection(){var n=this.getResolvedBoundaryPosition();return this.hasNonBoundaryPosition()||n!==eh&&n!==Wu?1:-1},getSharpDirectionByCoords(n){var t=this._getCanvasStartEnd(),e=Math.max(t.start,t.end);return this.getRadius?0:e!==n[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var n=this;return function(t,e){var i=n._getGridPoints(t.coords);return i.points?n._createPathElement(i.points,e,n.getSharpDirectionByCoords(t.coords)):null}},_getGridPoints:function(n){var t=this._isHorizontal,e=t?"x":"y",i=this._orthogonalPositions,r=i.start,m=i.end,D=this.borderOptions,A=t?lu:fp,N=t?Wu:eh,Q=this.getCanvas(),se={left:Q.left,right:Q.width-Q.right,top:Q.top,bottom:Q.height-Q.bottom},Ue=4+(D.visible&&D[A]?se[A]:void 0),st=(D.visible&&D[N]?se[N]:void 0)-4;return this.areCoordsOutsideAxis(n)||void 0===n[e]||n[e]<Ue||n[e]>st?{points:null}:{points:t?null!==n[e]?[n[e],r,n[e],m]:null:null!==n[e]?[r,n[e],m,n[e]]:null}},_getConstantLinePos:function(n,t,e){var i=this._getTranslatedCoord(n);if(!(!(0,w.$K)(i)||i<zm(t,e)||i>Ed(t,e)))return i},_getConstantLineGraphicAttributes:function(n){var t=this._orthogonalPositions.start,e=this._orthogonalPositions.end;return{points:this._isHorizontal?[n,t,n,e]:[t,n,e,n]}},_createConstantLine:function(n,t){return this._createPathElement(this._getConstantLineGraphicAttributes(n).points,t,function $g(n,t){return Math.max(t.start,t.end)!==n?1:-1}(n,this._getCanvasStartEnd()))},_drawConstantLineLabelText:function(n,t,e,i,r){var{font:m,cssClass:D}=i;return this._renderer.text(n,t,e).css(ci((0,y.l)({},this._options.label.font,m))).attr({align:"center",class:D}).append(r)},_drawConstantLineLabels:function(n,t,e,i){var r,m=t.text,A=this._options.label;this._checkAlignmentConstantLineLabels(t),m=null!==(r=m)&&void 0!==r?r:this.formatLabel(n,A);var N=this._getConstantLineLabelsCoords(e,t);return this._drawConstantLineLabelText(m,N.x,N.y,t,i)},_getStripPos:function(n,t,e,i,r){var A,N,Q,se,we,m=!(!r.minVisible&&!r.maxVisible),D=(r.categories||[]).reduce(function(wn,rn){return wn.push(rn.valueOf()),wn},[]);if(!m&&(0,w.$K)(n)&&(0,w.$K)(t)){var Re,Ue,st=this.parser(n),Ot=this.parser(t);if(se=D.indexOf(null!==(Re=st?.valueOf())&&void 0!==Re?Re:void 0),we=D.indexOf(null!==(Ue=Ot?.valueOf())&&void 0!==Ue?Ue:void 0),-1===se||-1===we)return{from:0,to:0,outOfCanvas:!0};se>we&&(Q=t,t=n,n=Q)}(0,w.$K)(n)?(n=this.validateUnit(n,"E2105","strip"),A=this._getTranslatedCoord(n,-1)):A=e,(0,w.$K)(t)?(t=this.validateUnit(t,"E2105","strip"),N=this._getTranslatedCoord(t,1)):N=i;var Kt=A<N?{from:A,to:N}:{from:N,to:A},sn=this.getVisibleArea();return(Kt.from<=sn[0]&&Kt.to<=sn[0]||Kt.from>=sn[1]&&Kt.to>=sn[1])&&(Kt.outOfCanvas=!0),Kt},_getStripGraphicAttributes:function(n,t){var e,i,r,m,D=this._orthogonalPositions,A=D.start,N=D.end;return this._isHorizontal?(e=n,i=zm(A,N),r=t-n,m=zu(A-N)):(e=zm(A,N),i=n,r=zu(A-N),m=zu(n-t)),{x:e,y:i,width:r,height:m}},_createStrip:function(n){return this._renderer.rect(n.x,n.y,n.width,n.height)},_adjustStripLabels:function(){var n=this;this._strips.forEach(function(t){t.label&&t.label.attr(n._getAdjustedStripLabelCoords(t))})},_adjustLabelsCoord(n,t,e){var i=r=>this._getLabelAdjustedCoord(r,n+(r.labelOffset||0),t,e);this._majorTicks.forEach(function(r){r.label?(r.updateMultilineTextAlignment(),r.label.attr(i(r))):r.templateContainer&&r.templateContainer.attr(i(r))})},_adjustLabels:function(n){var t=this.getOptions(),e=t.position===t.label.position,i=this._majorTicks.reduce(function(m,D){if(!D.getContentContainer())return m;var A=D.labelRotationAngle?Ji(D.labelBBox,[D.labelCoords.x,D.labelCoords.y],-D.labelRotationAngle):D.labelBBox;return{width:Ed(m.width||0,A.width),height:Ed(m.height||0,A.height),offset:Ed(m.offset||0,D.labelOffset||0)}},{}),r=e?this._isHorizontal?i.height:i.width:0;return this._adjustLabelsCoord(n,i.width),n+r+(r&&this._options.label.indentFromAxis)+(e?i.offset:0)},_getLabelAdjustedCoord:function(n,t,e){t=t||0;var st,Ot,i=this._options,m=n.templateContainer&&n.templateContainer.getBBox()||Ji(n.labelBBox,[n.labelCoords.x,n.labelCoords.y],-n.labelRotationAngle||0),D=n.labelAlignment||i.label.alignment,A="discrete"===this._options.type,N=n.labelRotationAngle%90==0,Q=i.label.indentFromAxis,se=i.label.position,we=this._axisPosition,Re=n.labelCoords,Ue=Re.x;return this._isHorizontal?(Ot=se===eh?we+Q-m.y+t:we-Q-(m.y+m.height)-t,st=D===Wu?A&&N?n.coords.x-(m.x+m.width):Ue-m.x-m.width:D===lu?A&&N?Ue-m.x-(n.coords.x-Ue):Ue-m.x:Ue-m.x-m.width/2):(Ot=Re.y-m.y-m.height/2,se===lu?(st=D===lu?we-Q-e-m.x:D===Ug?we-Q-e/2-m.x-m.width/2:we-Q-m.x-m.width,st-=t):(st=D===Wu?we+Q+e-m.x-m.width:D===Ug?we+Q+e/2-m.x-m.width/2:we+Q-m.x,st+=t)),{translateX:st,translateY:Ot}},_createAxisConstantLineGroups:function(){var n=this._renderer,e=this._axisCssPrefix+"constant-lines",i=n.g().attr({class:e}),r=n.g().attr({class:e}),m=n.g().attr({class:e});return{inside:i,outside1:r,left:r,top:r,outside2:m,right:m,bottom:m,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var n=this._renderer,t=this._axisCssPrefix;this._axisGroup=n.g().attr({class:t+"axis"}).enableLinks(),this._axisStripGroup=n.g().attr({class:t+"strips"}),this._axisGridGroup=n.g().attr({class:t+"grid"}),this._axisElementsGroup=n.g().attr({class:t+"elements"}),this._axisLineGroup=n.g().attr({class:t+"line"}).linkOn(this._axisGroup,"axisLine").linkAppend(),this._axisTitleGroup=n.g().attr({class:t+"title"}).append(this._axisGroup),this._axisConstantLineGroups={above:this._createAxisConstantLineGroups(),under:this._createAxisConstantLineGroups()},this._axisStripLabelGroup=n.g().attr({class:t+"axis-labels"})},_clearAxisGroups:function(){this._axisGroup.remove(),this._axisStripGroup.remove(),this._axisStripLabelGroup.remove(),this._axisConstantLineGroups.above.remove(),this._axisConstantLineGroups.under.remove(),this._axisGridGroup.remove(),this._axisTitleGroup.clear(),(!this._options.label.template||!this.isRendered())&&(this._axisElementsGroup.remove(),this._axisElementsGroup.clear()),this._axisLineGroup&&this._axisLineGroup.clear(),this._axisStripGroup&&this._axisStripGroup.clear(),this._axisGridGroup&&this._axisGridGroup.clear(),this._axisConstantLineGroups.above.clear(),this._axisConstantLineGroups.under.clear(),this._axisStripLabelGroup&&this._axisStripLabelGroup.clear()},_getLabelFormatObject:function(n,t,e,i,r,m){e=e||this._getViewportRange();var D={value:n,valueText:bm(n,{labelOptions:t,ticks:m||Wg(this._majorTicks),tickInterval:r??this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:i})||"",min:e.minVisible,max:e.maxVisible};return i&&(D.point=i),D},formatLabel:function(n,t,e,i,r,m){var D=this._getLabelFormatObject(n,t,e,i,r,m);return(0,w.mf)(t.customizeText)?t.customizeText.call(D,D):D.valueText},formatHint:function(n,t,e){var i=this._getLabelFormatObject(n,t,e);return(0,w.mf)(t.customizeHint)?t.customizeHint.call(i,i):void 0},formatRange(n,t,e,i){return Vw({startValue:n,endValue:t,tickInterval:e,argumentFormat:i,axisOptions:this.getOptions()})},_setTickOffset:function(){var t=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},aggregatedPointBetweenTicks(){return"crossTicks"===this._options.aggregatedPointsPosition},resetApplyingAnimation:function(n){this._resetApplyingAnimation=!0,n&&(this._firstDrawing=!0)},isFirstDrawing(){return this._firstDrawing},getMargins:function(){var qt,un,n=this,{position:t,offset:e,customPosition:i,placeholderSize:r,grid:m,tick:D,crosshairMargin:A}=n._options,N=(0,w.$K)(i),Q=n.getResolvedBoundaryPosition(),se=n.getCanvas(),we=se.left,Re=se.top,Ue=se.width-se.right,st=se.height-se.bottom,Ot=Ed(m.visible&&m.width||0,D.visible&&D.width||0),Kt=n._axisConstantLineGroups.above,sn=n._axisConstantLineGroups.under,wn=[n._axisElementsGroup,Kt.outside1,Kt.outside2,sn.outside1,sn.outside2,n._axisLineGroup].map(qt=>qt&&qt.getBBox()).concat((!(un=(qt=n._axisTitleGroup)&&qt.getBBox())||un.isEmpty||(n._isHorizontal?(un.x=we,un.width=Ue-we):(un.y=Re,un.height=st-Re)),un)),rn=hC(wn,se);if(rn[t]+=A,n.hasNonBoundaryPosition()&&N&&(rn[Q]=0),r&&(rn[t]=r),Ot&&(n._isHorizontal&&se.right<Ot&&rn.right<Ot&&(rn.right=Ot),!n._isHorizontal&&se.bottom<Ot&&rn.bottom<Ot&&(rn.bottom=Ot)),!N&&(0,w.$K)(e)){var Ft=n.customPositionIsBoundary()&&(e>0&&(Q===lu||Q===fp)||e<0&&(Q===Wu||Q===eh));rn[Q]-=Ft?e:0}return rn},validateUnit:function(n,t,e){return void 0===(n=this.parser(n))&&t&&this._incidentOccurred(t,[e]),n},_setType:function(n,t){var e;switch(n){case"xyAxes":e=tI;break;case"polarAxes":e=o}(0,y.l)(this,e[t])},_getSharpParam:function(){return!0},_disposeBreaksGroup:E.ZT,dispose:function(){[this._axisElementsGroup,this._axisStripGroup,this._axisGroup].forEach(function(n){n.dispose()}),this._strips=this._title=null,this._axisStripGroup=this._axisConstantLineGroups=this._axisStripLabelGroup=this._axisBreaksGroup=null,this._axisLineGroup=this._axisElementsGroup=this._axisGridGroup=null,this._axisGroup=this._axisTitleGroup=null,this._axesContainerGroup=this._stripsGroup=this._constantLinesGroup=this._labelsAxesGroup=null,this._renderer=this._options=this._textOptions=this._textFontStyles=null,this._translator=null,this._majorTicks=this._minorTicks=null,this._disposeBreaksGroup(),this._templatesRendered&&this._templatesRendered.reject()},getOptions:function(){return this._options},setPane:function(n){this.pane=n,this._options.pane=n},setTypes:function(n,t,e){this._options.type=n||this._options.type,this._options[e]=t||this._options[e],this._updateTranslator()},resetTypes:function(n){this._options.type=this._initTypes.type,this._options[n]=this._initTypes[n]},getTranslator:function(){return this._translator},updateOptions:function(n){var t=this,e=n.label;(function Kg(n){var t,e=n.label,i=n.position,r=n.isHorizontal?eh:lu,m=n.isHorizontal?fp:Wu,D=e.position;i!==r&&i!==m&&(i=r),D&&"outside"!==D?"inside"===D&&(D={[fp]:eh,[eh]:fp,[lu]:Wu,[Wu]:lu}[i]):D=i,D!==r&&D!==m&&(D=i),e.alignment!==Ug&&!e.userAlignment&&(e.alignment={[fp]:Ug,[eh]:Ug,[lu]:Wu,[Wu]:lu}[D]),n.position=i,e.position=D,n.hoverMode=n.hoverMode?n.hoverMode.toLowerCase():"none",e.minSpacing=null!==(t=e.minSpacing)&&void 0!==t?t:5,n.type&&(n.type=n.type.toLowerCase()),n.argumentType&&(n.argumentType=n.argumentType.toLowerCase()),n.valueType&&(n.valueType=n.valueType.toLowerCase())})(n),t._options=n,n.tick=n.tick||{},n.minorTick=n.minorTick||{},n.grid=n.grid||{},n.minorGrid=n.minorGrid||{},n.title=n.title||{},n.marker=n.marker||{},t._initTypes={type:n.type,argumentType:n.argumentType,valueType:n.valueType},t._setTickOffset(),t._isHorizontal=n.isHorizontal,t.pane=n.pane,t.name=n.name,t.priority=n.priority,t._hasLabelFormat=""!==e.format&&(0,w.$K)(e.format),t._textOptions={opacity:e.opacity,align:"center",class:e.cssClass},t._textFontStyles=ci(e.font),"logarithmic"===n.type&&n.logarithmBaseError&&(t._incidentOccurred("E2104"),delete n.logarithmBaseError),t._updateTranslator(),t._createConstantLines(),t._strips=(n.strips||[]).map(i=>function oI(n,t){var e,i,r=t.label||{};return{options:t,label:null,rect:null,_getCoord(){var m=n._getCanvasStartEnd(),D=n._translator.getBusinessRange();return n._getStripPos(t.startValue,t.endValue,m.start,m.end,D)},_drawLabel:m=>n._renderer.text(r.text,m.x,m.y).css(ci((0,y.l)({},n.getOptions().label.font,r.font))).attr({align:"center",class:r.cssClass}).append(n._axisStripLabelGroup),draw(){if(!n._translator.getBusinessRange().isEmpty()&&((0,w.$K)(t.startValue)||(0,w.$K)(t.endValue))&&(0,w.$K)(t.color)){var m=this._getCoord();if(this.labelCoords=r.text?n._getStripLabelCoords(m.from,m.to,r):null,m.outOfCanvas||!(0,w.$K)(m.to)||!(0,w.$K)(m.from))return;this.rect=n._createStrip(n._getStripGraphicAttributes(m.from,m.to)).attr({fill:t.color}).append(n._axisStripGroup),this.label=r.text?this._drawLabel(this.labelCoords):null}},getContentContainer(){return this.label},removeLabel(){},updatePosition(m){var D=this._getCoord();m&&e?(this.label&&this.label.attr(n._getStripLabelCoords(e.from,e.to,t.label)),this.rect&&this.rect.attr(n._getStripGraphicAttributes(e.from,e.to)),this.label&&this.label.animate(n._getStripLabelCoords(D.from,D.to,t.label)),this.rect&&this.rect.animate(n._getStripGraphicAttributes(D.from,D.to))):(this.label&&this.label.attr(n._getStripLabelCoords(D.from,D.to,t.label)),this.rect&&this.rect.attr(n._getStripGraphicAttributes(D.from,D.to)))},saveCoords(){i=e,e=this._getCoord()},resetCoordinates(){e=i}}}(t,i)),t._majorTicks=t._minorTicks=null,t._firstDrawing=!0},calculateInterval:function(n,t){var e=this._options;if(!e||"logarithmic"!==e.type)return zu(n-t);var{allowNegatives:i,linearThreshold:r}=new as(this.getTranslator().getBusinessRange());return zu(Sr(n,e.logarithmBase,i,r)-Sr(t,e.logarithmBase,i,r))},getCanvasRange(){var n=this._translator;return{startValue:n.from(n.translate("canvas_position_start")),endValue:n.from(n.translate("canvas_position_end"))}},_processCanvas:function(n){return n},updateCanvas:function(n,t){if(t)this._orthogonalPositions=null;else{var e=this._orthogonalPositions={start:this._isHorizontal?n.top:n.left,end:this._isHorizontal?n.height-n.bottom:n.width-n.right};e.center=e.start+(e.end-e.start)/2}this._canvas=n,this._translator.updateCanvas(this._processCanvas(n)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift(){return this._axisShift||0},hideTitle:function(){this._options.title.text&&(this._incidentOccurred("W2105",[this._isHorizontal?"horizontal":"vertical"]),this._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){(this._options.label.visible||this._outsideConstantLines.length)&&!this._translator.getBusinessRange().isEmpty()&&(this._incidentOccurred("W2106",[this._isHorizontal?"horizontal":"vertical"]),this._axisElementsGroup.clear(),is(this._outsideConstantLines,"removeLabel"))},_resolveLogarithmicOptionsForRange(n){var t=this._options;"logarithmic"===t.type&&(n.addRange({allowNegatives:void 0!==t.allowNegatives?t.allowNegatives:n.min<=0}),isNaN(t.linearThreshold)||(n.linearThreshold=t.linearThreshold))},adjustViewport(n){var t=this._options,e="discrete"===t.type,i=this._seriesData&&this._seriesData.categories||[],r=this.adjustRange(kr(t.wholeRange)),m=this.getViewport()||{},D=new as(n);this._addConstantLinesToRange(D);var A=(0,w.$K)(m.startValue),N=(0,w.$K)(m.endValue);e||(A=A&&(!(0,w.$K)(r.endValue)||m.startValue<r.endValue),N=N&&(!(0,w.$K)(r.startValue)||m.endValue>r.startValue));var Q=A?m.startValue:D.minVisible,se=N?m.endValue:D.maxVisible;if(e){var Ue=xr(i,r.startValue,r.endValue);D.categories=i=Ue.categories}else{var we,Re;D.min=null!==(we=r.startValue)&&void 0!==we?we:D.min,D.max=null!==(Re=r.endValue)&&void 0!==Re?Re:D.max}var st=Qr({axisType:t.type,dataType:t.dataType,base:t.logarithmBase},{startValue:A?m.startValue:void 0,endValue:N?m.endValue:void 0,length:m.length},{categories:i,min:r.startValue,max:r.endValue},{categories:i,min:Q,max:se});return D.minVisible=st.startValue,D.maxVisible=st.endValue,!(0,w.$K)(D.min)&&(D.min=D.minVisible),!(0,w.$K)(D.max)&&(D.max=D.maxVisible),D.addRange({}),this._resolveLogarithmicOptionsForRange(D),D},adjustRange(n){n=n||{};var t="discrete"===this._options.type,i=!1===this._options.allowNegatives;if("logarithmic"===this._options.type&&(n.startValue=i&&n.startValue<=0?null:n.startValue,n.endValue=i&&n.endValue<=0?null:n.endValue),!t&&(0,w.$K)(n.startValue)&&(0,w.$K)(n.endValue)&&n.startValue>n.endValue){var r=n.endValue;n.endValue=n.startValue,n.startValue=r}return n},_getVisualRangeUpdateMode(n,t,e){var i=this._options.visualRangeUpdateMode,r=this._translator,m=this._seriesData,D=this._prevDataInfo;if(D.isEmpty&&!D.containsConstantLine)return Qd;if(!this.isArgumentAxis){var A=this.getViewport();if(!(0,w.$K)(A.startValue)&&!(0,w.$K)(A.endValue)&&!(0,w.$K)(A.length))return ec}if(this.isArgumentAxis){if(-1===[fC,Qd,ec].indexOf(i)){if("discrete"===m.axisType){var N=m.categories,Q=t.categories,se=this.visualRange();i=N&&Q&&N.length&&-1!==Q.map(Ot=>Ot.valueOf()).join(",").indexOf(N.map(Ot=>Ot.valueOf()).join(","))&&(se.startValue.valueOf()!==N[0].valueOf()||se.endValue.valueOf()!==N[N.length-1].valueOf())?Qd:ec}else{var we=r.translate(m.min),Re=r.translate(n.startValue),Ue=r.translate(m.max),st=r.translate(n.endValue);i=we===Re&&Ue===st?ec:we!==Re&&Ue===st?fC:Qd}i===Qd&&D.isEmpty&&D.containsConstantLine&&(i=ec)}}else-1===[Qd,ec].indexOf(i)&&(i=e===Qd?Qd:ec);return i},_handleBusinessRangeChanged(n,t,e){var i=this.visualRange();if(!t&&!this._translator.getBusinessRange().isEmpty()){var r=this._lastVisualRangeUpdateMode=this._getVisualRangeUpdateMode(i,e,n);r===Qd?this._setVisualRange([i.startValue,i.endValue]):r===ec?this._setVisualRange([null,null]):r===fC&&this._setVisualRange({length:this.getVisualRangeLength()})}},getVisualRangeLength(n){var t=n||this._translator.getBusinessRange(),{type:e}=this._options;return"logarithmic"===e?(0,re.zB)(this.calculateInterval(t.maxVisible,t.minVisible)):"discrete"===e?xr(t.categories,t.minVisible,t.maxVisible).categories.length:t.maxVisible-t.minVisible},getVisualRangeCenter(n,t){var A,e=this.getTranslator(),i=e.getBusinessRange(),r=t?(0,y.l)(!0,{},i,n||{}):n||i,{type:m,logarithmBase:D}=this._options;if((0,w.$K)(r.minVisible)&&(0,w.$K)(r.maxVisible)){if("logarithmic"===m){var{allowNegatives:N,linearThreshold:Q,minVisible:se,maxVisible:we}=r;A=Wr((0,re.zB)(Sr(we,D,N,Q)+Sr(se,D,N,Q))/2,D,N,Q)}else if("discrete"===m){var Re=xr(r.categories,r.minVisible,r.maxVisible),Ue=Math.ceil(Re.categories.length/2)-1;A=i.categories.indexOf(Re.categories[Ue])}else A=e.toValue((r.maxVisible.valueOf()+r.minVisible.valueOf())/2);return A}},setBusinessRange(n,t,e,i){var r,m,D=this._options,A="discrete"===D.type;this._handleBusinessRangeChanged(e,t,n),this._seriesData=new as(n);var N=this._seriesData.isEmpty(),Q=new as(this._seriesData);if(this._addConstantLinesToRange(Q),this._prevDataInfo={isEmpty:N,containsConstantLine:Q.containsConstantLine},this._seriesData.addRange({categories:D.categories,dataType:D.dataType,axisType:D.type,base:D.logarithmBase,invert:D.inverted}),this._resolveLogarithmicOptionsForRange(this._seriesData),!A){if(!(0,w.$K)(this._seriesData.min)&&!(0,w.$K)(this._seriesData.max)){var se=this.getViewport();se&&this._seriesData.addRange({min:se.startValue,max:se.endValue})}var we=D.synchronizedValue;(0,w.$K)(we)&&this._seriesData.addRange({min:we,max:we})}this._seriesData.minVisible=null!==(r=this._seriesData.minVisible)&&void 0!==r?r:this._seriesData.min,this._seriesData.maxVisible=null!==(m=this._seriesData.maxVisible)&&void 0!==m?m:this._seriesData.max,!this.isArgumentAxis&&D.showZero&&this._seriesData.correctValueZeroLevel(),this._seriesData.sortCategories(this.getCategoriesSorter(i)),this._seriesData.userBreaks=this._seriesData.isEmpty()?[]:this._getScaleBreaks(D,this._seriesData,this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},_addConstantLinesToRange(n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(t=>{if(t.options.extendAxis){var e=t.getParsedValue();n.addRange({containsConstantLine:!0,minVisible:e,maxVisible:e,min:(0,w.$K)(n.min)?n.min:e,max:(0,w.$K)(n.max)?n.max:e})}})},setGroupSeries:function(n){this._series=n},getLabelsPosition:function(){var n=this._options,t=n.position,e=n.label.indentFromAxis+(this._axisShift||0)+this._constantLabelOffset,i=this._axisPosition;return t===fp||t===lu?i-e:i+e},getFormattedValue:function(n,t,e){var i=this._options.label;return(0,w.$K)(n)?this.formatLabel(n,(0,y.l)(!0,{},i,t),void 0,e):null},_getBoundaryTicks:function(n,t){var e=n.length,i=this._options,r=i.customBoundTicks,m=t.minVisible,D=t.maxVisible,A=i.showCustomBoundaryTicks?this._boundaryTicksVisibility:{},N=[];return"discrete"===i.type?this._tickOffset&&0!==n.length&&(N=[n[0],n[n.length-1]]):r?(A.min&&(0,w.$K)(r[0])&&N.push(r[0]),A.max&&(0,w.$K)(r[1])&&N.push(r[1])):(A.min&&(0===e||n[0]>m)&&N.push(m),A.max&&(0===e||n[e-1]<D)&&N.push(D)),N},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:Wg(this._majorTicks),minorTicksValues:Wg(this._minorTicks)}},estimateTickInterval:function(n){return this.updateCanvas(n),this._tickInterval!==this._getTicks(this._getViewportRange(),E.ZT,!0).tickInterval},setTicks:function(n){var t=n.majorTicks||[];this._majorTicks=t.map(xE(this,this._renderer,this._getSkippedCategory(t))),this._minorTicks=(n.minorTicks||[]).map(bE(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(n){return n},_getTicks:function(n,t,e){var i=this._options,r=i.customTicks,m=i.customMinorTicks;return Um(i,t||this._incidentOccurred,e,this._translator.getBusinessRange().isEmpty(),this._adjustDivisionFactor.bind(this),n)({min:n.minVisible,max:n.maxVisible,categories:n.categories,isSpacedMargin:n.isSpacedMargin},this._getScreenDelta(),i.tickInterval,"ignore"===i.label.overlappingBehavior||i.forceUserTickInterval,{majors:r,minors:m},i.minorTickInterval,i.minorTickCount,this._initialBreaks)},_createTicksAndLabelFormat:function(n,t){var e=this._options,i=this._getTicks(n,t,!1);return!n.isEmpty()&&"discrete"===e.type&&"datetime"===e.dataType&&!this._hasLabelFormat&&i.ticks.length&&(e.label.format=Va.Z.getDateFormatByTicks(i.ticks)),i},getAggregationInfo(n,t){var e,i,r,m=this._options,D=this._marginOptions,A=new as(this.getTranslator().getBusinessRange()).addRange(t),N=this.getViewport(),Q=null!==(e=N?.startValue)&&void 0!==e?e:A.minVisible,se=null!==(i=N?.endValue)&&void 0!==i?i:A.maxVisible,we=[];if("discrete"===m.type&&m.aggregateByCategory)return{aggregateByCategory:!0};var Re=m.aggregationInterval,Ue=m.aggregationGroupWidth;!Ue&&D&&(D.checkInterval&&(Ue=m.axisDivisionFactor),D.sizePointNormalState&&(Ue=Math.min(D.sizePointNormalState,m.axisDivisionFactor)));var st=!m.aggregationGroupWidth&&!Re&&t.interval,Ot=function jg(n,t,e,i,r){var m=(0,y.l)({},n,{endOnTick:!0,axisDivisionFactor:t,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:r});return function(D,A,N,Q,se){return Um(m,E.ZT,A,e.isEmpty(),we=>we,e)({min:N,max:Q,categories:e.categories,isSpacedMargin:e.isSpacedMargin},i,D,(0,w.$K)(D),void 0,void 0,void 0,se)}}(m,Ue,A,this._getScreenDelta(),st),Kt=Ot(Re,!0,Q,se,null===(r=this._seriesData)||void 0===r?void 0:r.breaks).tickInterval;if("discrete"!==m.type){var sn=n?A.min:Q,wn=n?A.max:se;if((0,w.$K)(sn)&&(0,w.$K)(wn)){var rn=Gr({base:m.logarithmBase,axisType:m.type,dataType:m.dataType},!1),Ft=sn,qt=wn;if(!n){var un=Math.max(this.calculateInterval(wn,sn),"datetime"===m.dataType?te.Z.dateToMilliseconds(Kt):Kt);Ft=rn(sn,un,-1),qt=rn(wn,un)}var In=this._getScaleBreaks(m,{minVisible:Ft=Ft<A.min?A.min:Ft,maxVisible:qt=qt>A.max?A.max:qt},this._series,this.isArgumentAxis);we=Ot(Kt,!1,Ft,qt,this._filterBreaks(In,{minVisible:Ft,maxVisible:qt},m.breakStyle)).ticks}}return this._aggregationInterval=Kt,{interval:Kt,ticks:we}},getTickInterval(){return this._tickInterval},getAggregationInterval(){return this._aggregationInterval},createTicks:function(n){var t=this,e=t._renderer,i=t._options;if(n){t._isSynchronized=!1,t.updateCanvas(n);var r=t._getViewportRange();t._initialBreaks=r.breaks=this._seriesData.breaks=t._filterBreaks(this._seriesData.userBreaks,r,i.breakStyle),t._estimatedTickInterval=t._getTicks(t.adjustViewport(this._seriesData),E.ZT,!0).tickInterval;var m=this._calculateValueMargins();r.addRange({minVisible:m.minValue,maxVisible:m.maxValue,isSpacedMargin:m.isSpacedMargin});var D=t._createTicksAndLabelFormat(r),A=t._getBoundaryTicks(D.ticks,t._getViewportRange());i.showCustomBoundaryTicks&&A.length?(t._boundaryTicks=[A[0]].map(U_(t,e,!0)),A.length>1&&(t._boundaryTicks=t._boundaryTicks.concat([A[1]].map(U_(t,e,!1))))):t._boundaryTicks=[];var N=(D.minorTicks||[]).filter(function(Ot){return!A.some(function(Kt){return Rr(Kt)===Rr(Ot)})});t._tickInterval=D.tickInterval,t._minorTickInterval=D.minorTickInterval;var Q=t._majorTicks||[],se=Q.reduce((Ot,Kt)=>(Ot[Kt.value.valueOf()]=Kt,Ot),{}),we=(0,w.dt)(D.ticks[0])===(0,w.dt)(Q[0]&&Q[0].value),Re=t._getSkippedCategory(D.ticks),Ue=D.ticks.map(Ot=>{var Kt=se[Ot.valueOf()];return Kt&&we?(delete se[Ot.valueOf()],Kt.setSkippedCategory(Re),Kt):xE(t,e,Re)(Ot)});t._majorTicks=Ue;var st=t._minorTicks||[];t._minorTicks=N.map((Ot,Kt)=>{var sn=st[Kt];return sn?(sn.updateValue(Ot),sn):bE(t,e)(Ot)}),t._ticksToRemove=Object.keys(se).map(Ot=>se[Ot]).concat(st.slice(t._minorTicks.length,st.length)),t._ticksToRemove.forEach(Ot=>{var Kt;return null===(Kt=Ot.label)||void 0===Kt?void 0:Kt.removeTitle()}),D.breaks&&(t._seriesData.breaks=D.breaks),t._reinitTranslator(t._getViewportRange())}},_reinitTranslator:function(n){this._isSynchronized||this._translator.updateBusinessRange(n)},_getViewportRange(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(n){this._marginOptions=n},getMarginOptions(){var n;return null!==(n=this._marginOptions)&&void 0!==n?n:{}},_calculateRangeInterval:function(n){var t="datetime"===this._options.dataType,e=[],i=function(r){(0,w.$K)(r)&&e.push(t?te.Z.dateToMilliseconds(r):r)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,w.$K)(n)&&e.push(n),i(this._aggregationInterval),this._calculateWorkWeekInterval(zm.apply(this,e))},_calculateWorkWeekInterval(n){var t=this._options;if("datetime"===t.dataType&&t.workdaysOnly&&n){var e=864e5*t.workWeek.length,i=6048e5-e;e!==n&&i<n?n-=i*Math.ceil(n/6048e5):i>=n&&n>864e5&&(n=864e5)}return n},_getConvertIntervalCoefficient(n,t){var e=this._translator.ratioOfCanvasRange();return e/(e*t/(n+t))},_calculateValueMargins(n){this._resetMargins();var Ot,t=this.getMarginOptions(),e=(t.size||0)/2,i=this._options,r=this._getViewportRange(),m=this.getViewport(),D=this._getScreenDelta(),A=-1!==(i.type||"").indexOf("discrete"),N=i.valueMarginsEnabled&&!A&&!this.customPositionIsBoundaryOrthogonalAxis(),Q=this._translator,se=i.minValueMargin,we=i.maxValueMargin,Re=0,Ue=0,st=0;if(r.stubData||!D)return{startPadding:0,endPadding:0};if(this.isArgumentAxis&&t.checkInterval){Ot=this._calculateRangeInterval(r.interval);var Kt=Q.getInterval(Ot);isFinite(Kt)?st=Math.ceil(Kt/(2*this._getConvertIntervalCoefficient(Kt,D))):Ot=0}var sn,wn,rn=.8*D/2;N&&((0,w.$K)(se)?sn=isFinite(se)?se:0:!this.isArgumentAxis&&t.checkInterval&&Rr(r.minVisible)>0&&Rr(r.minVisible)===Rr(r.min)?Re=5:(Re=Math.max(e,st),Re=Math.min(rn,Re)),(0,w.$K)(we)?wn=isFinite(we)?we:0:!this.isArgumentAxis&&t.checkInterval&&Rr(r.maxVisible)<0&&Rr(r.maxVisible)===Rr(r.max)?Ue=5:(Ue=Math.max(e,st),Ue=Math.min(rn,Ue))),t.percentStick&&!this.isArgumentAxis&&(1===zu(r.max)&&(Ue=0),1===zu(r.min)&&(Re=0));var Kn,Yn,qt=this._getCanvasStartEnd(),In=(D-Re-Ue)/(1+(sn||0)+(wn||0))||D;if((void 0!==sn||void 0!==wn)&&(void 0!==sn&&(Re=In*sn),void 0!==wn&&(Ue=In*wn)),"discrete"!==i.type&&n&&n.length>1&&!i.skipViewportExtending&&!m.action&&!1!==i.endOnTick){var ai=n.length,gi=Q.translate(n[0].value),Ci=Q.translate(n[ai-1].value),Ki=gi>Ci?-1:1,Bi=Ed(Ki*(qt.start-gi),0),ri=Ed(Ki*(Ci-qt.end),0);if(Bi>Re||ri>Ue){var Gi=this._getConvertIntervalCoefficient(ri+Bi,D);Bi>=Re&&(Kn=n[0].value),ri>=Ue&&(Yn=n[ai-1].value),Re=Ed(Bi,Re)/Gi,Ue=Ed(ri,Ue)/Gi}}if(sn=void 0===sn?Re/In:sn,wn=void 0===wn?Ue/In:wn,!A)if(this._translator.isInverted()){var or,fr;Kn=null!==(or=Kn)&&void 0!==or?or:Q.from(qt.start+D*sn,-1),Yn=null!==(fr=Yn)&&void 0!==fr?fr:Q.from(qt.end-D*wn,1)}else{var _r,$r;Kn=null!==(_r=Kn)&&void 0!==_r?_r:Q.from(qt.start-D*sn,-1),Yn=null!==($r=Yn)&&void 0!==$r?$r:Q.from(qt.end+D*wn,1)}var{correctedMin:Fr,correctedMax:Vr,start:zr,end:co}=this.getCorrectedValuesToZero(Kn,Yn);return Re=zr??Re,Ue=co??Ue,{startPadding:Q.isInverted()?Ue:Re,endPadding:Q.isInverted()?Re:Ue,minValue:Fr??Kn,maxValue:Vr??Yn,interval:Ot,isSpacedMargin:Re===Ue&&0!==Re}},getCorrectedValuesToZero(n,t){var N,Q,se,we,e=this,i=e._translator,r=e._getCanvasStartEnd(),m=e._getViewportRange(),D=e._getScreenDelta(),Re=(Ue,st)=>{var Ot=zu(r.start-Ue),Kt=zu(r.end-st),sn=e._getConvertIntervalCoefficient(Ot+Kt,D);N=Ot/sn,Q=Kt/sn};return!e.isArgumentAxis&&"datetime"!==e._options.dataType&&(n*m.min<=0&&n*m.minVisible<=0&&(Re(i.translate(0),i.translate(t)),se=0),t*m.max<=0&&t*m.maxVisible<=0&&(Re(i.translate(n),i.translate(0)),we=0)),{start:isFinite(N)?N:null,end:isFinite(Q)?Q:null,correctedMin:se,correctedMax:we}},applyMargins(){if(!this._isSynchronized){var n=this._calculateValueMargins(this._majorTicks),t=(0,y.l)({},this._canvas,{startPadding:n.startPadding,endPadding:n.endPadding});if(this._translator.updateCanvas(this._processCanvas(t)),isFinite(n.interval)){var e=this._translator.getBusinessRange();e.addRange({interval:n.interval}),this._translator.updateBusinessRange(e)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines(){var n=(this._options.constantLines||[]).map(t=>function rI(n,t){var r,D,A,e=t.label||{},i=e.position||"inside",m=!1;return n._checkAlignmentConstantLineLabels(e),{options:t,labelOptions:e,labelPosition:i,label:null,line:null,getParsedValue:()=>(m||(r=n.validateUnit(t.value,"E2105","constantLine"),m=!0),r),draw(){if(!(0,w.$K)(t.value)||n._translator.getBusinessRange().isEmpty())return this;var N=n._getCanvasStartEnd(),Q=this.getParsedValue();this.coord=n._getConstantLinePos(Q,N.start,N.end);var se=t.displayBehindSeries?n._axisConstantLineGroups.under:n._axisConstantLineGroups.above,we=se[i];if(we||(we=se[n._isHorizontal?e.verticalAlignment:e.horizontalAlignment]),!(0,w.$K)(this.coord))return this;var Ue=n._createConstantLine(this.coord,{stroke:t.color,"stroke-width":t.width,dashStyle:t.dashStyle});return this.line=Ue.append(se.inside),this.label=e.visible?n._drawConstantLineLabels(Q,e,this.coord,we):null,this.updatePosition(),this},getContentContainer(){return this.label},removeLabel(){this.label&&this.label.remove()},updatePosition(N){var Q=n._getCanvasStartEnd(),se=n._getConstantLinePos(this.getParsedValue(),Q.start,Q.end);(0,w.$K)(se)&&(this.coord=se,N&&A?(this.label&&this.label.attr(n._getConstantLineLabelsCoords(A,this.labelOptions)),this.line&&this.line.attr(n._getConstantLineGraphicAttributes(A)),this.label&&this.label.animate(n._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(n._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(n._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(n._getConstantLineGraphicAttributes(this.coord)),n._rotateConstantLine(this.line,this.coord)))},saveCoords(){D=A,A=this.coord},resetCoordinates(){A=D}}}(this,t));this._outsideConstantLines=n.filter(t=>"outside"===t.labelPosition),this._insideConstantLines=n.filter(t=>"inside"===t.labelPosition)},draw:function(n,t){var e=this,i=this._options;e.borderOptions=t||{visible:!1},e._resetMargins(),e.createTicks(n),e.applyMargins(),e._clearAxisGroups(),pl(e._majorTicks),pl(e._minorTicks),pl(e._boundaryTicks),e._axisGroup.append(e._axesContainerGroup),e._drawAxis(),e._drawTitle(),_p(e._majorTicks,i.tick),_p(e._minorTicks,i.minorTick),_p(e._boundaryTicks,i.tick);var r=e._getGridLineDrawer();Qs(e._majorTicks,r),Qs(e._minorTicks,r),is(e._majorTicks,"drawLabel",e._getViewportRange(),e._getTemplate(i.label.template)),e._templatesRendered&&e._templatesRendered.reject(),e._templatesRendered=new P.BH,e._majorTicks.forEach(function(D){D.labelRotationAngle=0,D.labelAlignment=void 0,D.labelOffset=0}),is(e._outsideConstantLines.concat(e._insideConstantLines),"draw"),is(e._strips,"draw"),e._dateMarkers=e._drawDateMarkers()||[],e._stripLabelAxesGroup&&e._axisStripLabelGroup.append(e._stripLabelAxesGroup),e._gridContainerGroup&&e._axisGridGroup.append(e._gridContainerGroup),e._stripsGroup&&e._axisStripGroup.append(e._stripsGroup),e._labelsAxesGroup&&e._axisElementsGroup.append(e._labelsAxesGroup),e._constantLinesGroup&&(e._axisConstantLineGroups.above.inside.append(e._constantLinesGroup.above),e._axisConstantLineGroups.above.outside1.append(e._constantLinesGroup.above),e._axisConstantLineGroups.above.outside2.append(e._constantLinesGroup.above),e._axisConstantLineGroups.under.inside.append(e._constantLinesGroup.under),e._axisConstantLineGroups.under.outside1.append(e._constantLinesGroup.under),e._axisConstantLineGroups.under.outside2.append(e._constantLinesGroup.under)),e._measureTitle(),Qc(e._majorTicks),!i.label.template&&e._applyWordWrap(),Qc(e._outsideConstantLines),Qc(e._insideConstantLines),Qc(e._strips),Qc(e._dateMarkers),e._adjustConstantLineLabels(e._insideConstantLines),e._adjustStripLabels();var m=e._constantLabelOffset=e._adjustConstantLineLabels(e._outsideConstantLines);e._translator.getBusinessRange().isEmpty()||(e._setLabelsPlacement(),m=e._adjustLabels(m)),P.gx.apply(this,e._majorTicks.map(D=>D.getTemplateDeferred())).done(()=>{e._templatesRendered.resolve()}),m=e._adjustDateMarkers(m),e._adjustTitle(m)},getTemplatesDef(){return this._templatesRendered},setRenderedState(n){this._drawn=n},isRendered(){return this._drawn},_applyWordWrap(){var n,t,e,i=this._options,r=this._tickInterval;(0,w.$K)(r)&&(n=this.getTranslator().getInterval("datetime"===i.dataType?te.Z.dateToMilliseconds(r):r));var m=this._validateDisplayMode(i.label.displayMode),D=this._validateOverlappingMode(i.label.overlappingBehavior,m);if(("none"!==(i.label.wordWrap||"none")||"none"!==(i.label.textOverflow||"none"))&&m!==Zg&&D!==Zg&&"auto"!==D){var Q=(0,w.$K)(i.placeholderSize)?i.placeholderSize-i.label.indentFromAxis:void 0;this._isHorizontal?(t=n,e=Q):(t=Q,e=n);var se=!1,we=!1;t&&this._majorTicks.some(Re=>Re.labelBBox.width>t)&&(se=!0),e&&this._majorTicks.some(Re=>Re.labelBBox.height>e)&&(we=!0),(se||we)&&(this._majorTicks.forEach(Re=>{Re.label&&Re.label.setMaxSize(t,e,i.label)}),Qc(this._majorTicks))}},_measureTitle:E.ZT,animate(){is(this._majorTicks,"animateLabels")},updateSize(n,t){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.updateCanvas(n),e&&(this._checkTitleOverflow(),this._measureTitle(),this._updateTitleCoords()),this._reinitTranslator(this._getViewportRange()),this.applyMargins();var i=!this._firstDrawing&&t,r=this._options;pl(this._majorTicks),pl(this._minorTicks),pl(this._boundaryTicks),this._resetApplyingAnimation&&!this._firstDrawing&&this._resetStartCoordinates(),wl(this._majorTicks),wl(this._minorTicks),wl(this._boundaryTicks),this._axisElement&&this._updateAxisElementPosition(),tc(this._majorTicks,r.tick,i),tc(this._minorTicks,r.minorTick,i),tc(this._boundaryTicks,r.tick),is(this._majorTicks,"updateLabelPosition",i),this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach(m=>m.updatePosition(i)),is(this._strips,"updatePosition",i),Zm(this._majorTicks,i),Zm(this._minorTicks,i),i&&is(this._ticksToRemove||[],"fadeOutElements"),this.prepareAnimation(),this._ticksToRemove=null,this._translator.getBusinessRange().isEmpty()||(this._firstDrawing=!1),this._resetApplyingAnimation=!1,this._updateLabelsPosition()},_updateLabelsPosition:E.ZT,prepareAnimation(){var n="saveCoords";is(this._majorTicks,n),is(this._minorTicks,n),is(this._insideConstantLines,n),is(this._outsideConstantLines,n),is(this._strips,n)},_resetStartCoordinates(){var n="resetCoordinates";is(this._majorTicks,n),is(this._minorTicks,n),is(this._insideConstantLines,n),is(this._outsideConstantLines,n),is(this._strips,n)},applyClipRects:function(n,t){this._axisGroup.attr({"clip-path":t}),this._axisStripGroup.attr({"clip-path":n}),this._axisElementsGroup.attr({"clip-path":t})},_validateVisualRange(n){var t=kr(n);return void 0!==t.startValue&&(t.startValue=this.validateUnit(t.startValue)),void 0!==t.endValue&&(t.endValue=this.validateUnit(t.endValue)),Nr(t,!H_(n))},_validateOptions(n){n.wholeRange=this._validateVisualRange(n.wholeRange),n.visualRange=n._customVisualRange=this._validateVisualRange(n._customVisualRange),this._setVisualRange(n._customVisualRange)},validate(){var n=this._options,t=this.isArgumentAxis?n.argumentType:n.valueType,e=t?lp(t):function(i){return i};this.parser=e,n.dataType=t,this._validateOptions(n)},resetVisualRange(n){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!n,end:!!n})},_setVisualRange(n,t){var e=this.adjustRange(kr(n));t?((0,w.$K)(e.startValue)&&(this._viewport.startValue=e.startValue),(0,w.$K)(e.endValue)&&(this._viewport.endValue=e.endValue)):this._viewport=e},_applyZooming(n,t){this._resetVisualRangeOption(),this._setVisualRange(n,t);var e=this.getViewport();this._seriesData.userBreaks=this._getScaleBreaks(this._options,{minVisible:e.startValue,maxVisible:e.endValue},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},getZoomStartEventArg(n,t){return{axis:this,range:this.visualRange(),cancel:!1,event:n,actionType:t}},_getZoomEndEventArg(n,t,e,i,r){var m=this.visualRange();return{axis:this,previousRange:n,range:m,cancel:!1,event:t,actionType:e,zoomFactor:i,shift:r,rangeStart:m.startValue,rangeEnd:m.endValue}},getZoomBounds(){var n=kr(this._options.wholeRange),t=this.getTranslator().getBusinessRange(),e={startValue:nc(this._initRange.startValue,t.min),endValue:nc(this._initRange.endValue,t.max)};return{startValue:nc(n.startValue,e.startValue),endValue:nc(n.endValue,e.endValue)}},setInitRange(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption(){this._options._customVisualRange={}},getTemplatesGroups(){return this._majorTicks?this._majorTicks.map(t=>t.templateContainer).filter(t=>(0,w.$K)(t)):[]},setCustomVisualRange(n){this._options._customVisualRange=n},visualRange(){var t,n=arguments;if(0===n.length){var m,D,e=this._getAdjustedBusinessRange(),i=e.minVisible,r=e.maxVisible;return"discrete"===this._options.type?{startValue:i=null!==(m=i)&&void 0!==m?m:e.categories[0],endValue:r=null!==(D=r)&&void 0!==D?D:e.categories[e.categories.length-1],categories:xr(e.categories,i,r).categories}:{startValue:i,endValue:r}}t=H_(n[0])?n[0]:(0,w.PO)(n[0])?(0,y.l)({},n[0]):[n[0],n[1]];var A=this.handleZooming(t,n[1]);A.isPrevented||this._visualRange(this,A)},handleZooming(n,t,e,i){t=t||{},(0,w.$K)(n)&&((n=this._validateVisualRange(n)).action=i);var r=this.getZoomStartEventArg(e,i),m=r.range;!t.start&&this._eventTrigger("zoomStart",r);var D={isPrevented:r.cancel,skipEventRising:t.skipEventRising,range:n||r.range};return r.cancel||((0,w.$K)(n)&&this._applyZooming(n,t.allowPartialUpdate),(0,w.$K)(this._storedZoomEndParams)||(this._storedZoomEndParams={startRange:m,type:this.getOptions().type}),this._storedZoomEndParams.event=e,this._storedZoomEndParams.action=i,this._storedZoomEndParams.prevent=!!t.end),D},handleZoomEnd(){if((0,w.$K)(this._storedZoomEndParams)&&!this._storedZoomEndParams.prevent){var n=this._storedZoomEndParams.startRange,t=this._storedZoomEndParams.event,e=this._storedZoomEndParams.action,i={minVisible:n.startValue,maxVisible:n.endValue,categories:n.categories},r=this.getOptions().type===this._storedZoomEndParams.type,m=r?(0,re.zB)(this.getVisualRangeCenter()-this.getVisualRangeCenter(i,!1)):NaN,D=r?+(Math.round(this.getVisualRangeLength(i)/(this.getVisualRangeLength()||1)+"e+2")+"e-2"):NaN,A=this._getZoomEndEventArg(n,t,e,D,m);A.cancel=this.checkZoomingLowerLimitOvercome(1===D?"pan":"zoom",D).stopInteraction,this._eventTrigger("zoomEnd",A),A.cancel&&this._restorePreviousVisualRange(n),this._storedZoomEndParams=null}},_restorePreviousVisualRange(n){this._storedZoomEndParams=null,this._applyZooming(n),this._visualRange(this,n)},checkZoomingLowerLimitOvercome(n,t,e){var A,i=this._options,r=this._translator,m=i.minVisualRangeLength,D=e,N="zoom"===n&&t>=1,Q=r.getBusinessRange();e&&(A={minVisible:(A=this.adjustRange(kr(e))).startValue,maxVisible:A.endValue,categories:Q.categories});var se=this.getVisualRangeLength(Q),we=this.getVisualRangeLength(A);if((0,w.$K)(m)||"discrete"===i.type)m=r.convert(m),A&&m<se&&m>=we?(D=kr(r.getRangeByMinZoomValue(m,A)),N=!1):N&=m>we;else{var Re=this._translator.canvasLength;N&=this.getVisualRangeLength({minVisible:Q.min,maxVisible:Q.max,categories:Q.categories})/Re>=we}return{stopInteraction:!!N,correctedRange:D}},isExtremePosition(n){var t,e;"discrete"===this._options.type?(e=this._translator.getBusinessRange(),t=n?e.categories[e.categories.length-1]:e.categories[0]):(e=this.getZoomBounds(),t=n?e.endValue:e.startValue);var i=this.getTranslator(),r=i.translate(t),m=this.visualRange(),D=i.translate(n?m.endValue:m.startValue);return zu(D-r)<5},getViewport(){return this._viewport},getFullTicks:function(){var n=this._majorTicks||[];return"discrete"===this._options.type?Wg(n):Wg(n.concat(this._minorTicks,this._boundaryTicks)).sort(function(t,e){return Rr(t)-Rr(e)})},measureLabels:function(n,t){var m,A,e=this,i=e._options,r=i.visible?i.width:0,D=t?i.label.indentFromAxis+.5*i.tick.length:0,N=e._getViewportRange();if(N.isEmpty()||!i.label.visible||!e._axisElementsGroup)return{height:r,width:r,x:0,y:0};e._majorTicks?m=Wg(e._majorTicks):(e.updateCanvas(n),m=e._createTicksAndLabelFormat(N,E.ZT),A=m.tickInterval,m=m.ticks);var Q=m.reduce(function(Re,Ue,st){var Ot=e.formatLabel(Ue,i.label,N,void 0,A,m);return Re.length<Ot.length?Ot:Re},e.formatLabel(m[0],i.label,N,void 0,A,m)),se=e._renderer.text(Q,0,0).css(e._textFontStyles).attr(e._textOptions).append(e._renderer.root),we=se.getBBox();return se.remove(),{x:we.x,y:we.y,width:we.width+D,height:we.height+D}},_setLabelsPlacement:function(){if(this._options.label.visible){var m,n=this._options.label,t=this._validateDisplayMode(n.displayMode),e=this._validateOverlappingMode(n.overlappingBehavior,t),i="none"===e||"ignore"===e,r={rotationAngle:n.rotationAngle,staggeringSpacing:n.staggeringSpacing},D=this._majorTicks.map(function(N){return N.labelBBox}),A=this._getStep(D);switch(t){case Zg:i&&(m=!0,A=1),this._applyLabelMode(t,A,D,n,m);break;case"stagger":i&&(A=2),this._applyLabelMode(t,Ed(A,2),D,n);break;default:this._applyLabelOverlapping(D,e,A,r)}}},_applyLabelOverlapping:function(n,t,e,i){var r=this._options.label,m=this._majorTicks;"none"===t||"ignore"===t||(e>1&&n.some(function(D,A,N){return 0!==A&&Mo_areLabelsOverlap(D,N[A-1],r.minSpacing,r.alignment)})&&this._applyLabelMode(t,e,n,i),this._checkBoundedLabelsOverlapping(m,n,t),this._checkShiftedLabels(m,n,r.minSpacing,r.alignment))},_applyLabelMode:function(n,t,e,i,r){var N,Q,m=this._majorTicks,D=this._options.label,A=i.rotationAngle;switch(n){case Zg:D.userAlignment||(Q=A<0?Wu:lu,A%90==0&&(Q=Ug)),th(m,t=r?t:this._getStep(e,A),function(we){var Re=we.getContentContainer();Re&&(Re.rotate(A),we.labelRotationAngle=A,Q&&(we.labelAlignment=Q))});break;case"stagger":N=this._getMaxLabelHeight(e,i.staggeringSpacing),th(m,t-1,function(we,Re){Re/(t-1)%2!=0&&(we.labelOffset=N)});break;case"auto":case"_auto":2===t?this._applyLabelMode("stagger",t,e,i):this._applyLabelMode(Zg,t,e,{rotationAngle:Gg(e,D)});break;default:th(m,t)}},getMarkerTrackers:E.ZT,_drawDateMarkers:E.ZT,_adjustDateMarkers:E.ZT,coordsIn:E.ZT,areCoordsOutsideAxis:E.ZT,_getSkippedCategory:E.ZT,_initAxisPositions:E.ZT,_drawTitle:E.ZT,_updateTitleCoords:E.ZT,_adjustConstantLineLabels:E.ZT,_createTranslator:function(){return new Hg({},{},{})},_updateTranslator:function(){var n=this._translator;n.update(n.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var n,t,e,i=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:i.semiDiscreteInterval,firstDayOfWeek:null===(n=i.workWeek)||void 0===n?void 0:n[0],stick:this._getStick(),breaksSize:null!==(t=null===(e=i.breakStyle)||void 0===e?void 0:e.width)&&void 0!==t?t:0}},getVisibleArea(){var n=this._getCanvasStartEnd();return[n.start,n.end].sort((t,e)=>t-e)},_getCanvasStartEnd:function(){var n=this._isHorizontal,t=this._canvas||{},e=this._translator.getBusinessRange().invert,i=n?[t.left,t.width-t.right]:[t.height-t.bottom,t.top];return e&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var n=this._getCanvasStartEnd(),t=this._seriesData&&this._seriesData.breaks||[],e=t.length;return zu(n.start-n.end)-(e?t[e-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_filterBreaks:function(){return[]},_adjustTitle:E.ZT,_checkTitleOverflow:E.ZT,getSpiderTicks:E.ZT,setSpiderTicks:E.ZT,_checkBoundedLabelsOverlapping:E.ZT,_checkShiftedLabels:E.ZT,drawScaleBreaks:E.ZT,_visualRange:E.ZT,_rotateConstantLine:E.ZT,applyVisualRangeSetter(n){this._visualRange=n},getCategoriesSorter(n){return this.isArgumentAxis?n:this._options.categoriesSortingMethod??this._options.categories},_getAdjustedBusinessRange(){return this.adjustViewport(this._translator.getBusinessRange())}};var ic=Array.isArray,nh=isFinite,vp=Number,K_=Math.min,G_=Math.max,j_=y.l,Yg="value",Xg="subvalues",EE=[1,2,5];function $_(n,t){return null===n?n:nh(n)?vp(n):t}function _C(n){return ic(n)?n:(0,w.kE)(n)?[n]:null}var vC=Dr.inherit({_initCore:function(){var n=this,t=n._renderer;n._setupValue(n.option(Yg)),n.__subvalues=_C(n.option(Xg)),n._setupSubvalues(n.__subvalues),CC(n),n.callBase.apply(n,arguments),n._rangeContainer=new n._factory.RangeContainer({renderer:t,container:t.root,translator:n._translator,themeManager:n._themeManager}),n._initScale(),n._subvalueIndicatorContainer=n._renderer.g().attr({class:"dxg-subvalue-indicators"}).linkOn(n._renderer.root,"valueIndicator").enableLinks()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){this._scaleGroup=this._renderer.g().attr({class:"dxg-scale"}).linkOn(this._renderer.root,"scale"),this._labelsAxesGroup=this._renderer.g().attr({class:"dxg-scale-elements"}).linkOn(this._renderer.root,"scale-elements"),this._scale=new zl({incidentOccurred:this._incidentOccurred,renderer:this._renderer,axesContainerGroup:this._scaleGroup,labelsAxesGroup:this._labelsAxesGroup,axisType:this._scaleTypes.type,drawingType:this._scaleTypes.drawingType,widgetClass:"dxg",getTemplate(){}})},_disposeCore:function(){var n=this;n.callBase.apply(n,arguments),n._scale.dispose(),n._scaleGroup.linkOff(),n._labelsAxesGroup.linkOff(),n._rangeContainer.dispose(),n._disposeValueIndicators(),n._subvalueIndicatorContainer.linkOff(),n._scale=n._scaleGroup=n._labelsAxesGroup=n._rangeContainer=null},_disposeValueIndicators:function(){this._valueIndicator&&this._valueIndicator.dispose(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.dispose(),this._valueIndicator=this._subvalueIndicatorsSet=null},_setupDomainCore:function(){var n=this.option("scale")||{},t=this.option("startValue"),e=this.option("endValue");t=(0,w.kE)(t)?vp(t):(0,w.kE)(n.startValue)?vp(n.startValue):0,e=(0,w.kE)(e)?vp(e):(0,w.kE)(n.endValue)?vp(n.endValue):100,this._baseValue=t<e?t:e,this._translator.setDomain(t,e)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(n){var t=n.tick,e=t.visible&&t.length>0&&t.width>0,i=n.minorTick,r=i.visible&&i.length>0&&i.width>0,m=n.label,D=Number(m.indentFromTick);if(!e&&!r&&!m.visible)return{};var A=this._scale.measureLabels((0,y.l)({},this._canvas)),N=this._getScaleLayoutValue(),Q={min:N,max:N},se=this._getTicksCoefficients(n),we=se.inner,Re=se.outer;return e&&(Q.min=K_(Q.min,N-we*t.length),Q.max=G_(Q.max,N+Re*t.length)),r&&(Q.min=K_(Q.min,N-we*i.length),Q.max=G_(Q.max,N+Re*i.length)),m.visible&&this._correctScaleIndents(Q,D,A),Q},_renderContent:function(){var n=this,t=n._prepareScaleSettings();n._rangeContainer.render(j_(n._getOption("rangeContainer"),{vertical:n._area.vertical})),n._renderScale(t),n._subvalueIndicatorContainer.linkAppend();var e=Vn([n._rangeContainer].concat(n._prepareValueIndicators()),function(i){return i&&i.enabled?i:null});n._applyMainLayout(e,n._measureScale(t)),e.forEach(i=>i.resize(n._getElementLayout(i.getOffset()))),n._shiftScale(n._getElementLayout(0),t),n._beginValueChanging(),n._updateActiveElements(),n._endValueChanging()},_prepareScaleSettings:function(){var n=this,t=n.option("scale"),e=(0,y.l)(!0,{},n._themeManager.theme("scale"),t);return e.label.indentFromAxis=0,e.isHorizontal=!n._area.vertical,e.forceUserTickInterval|=(0,w.$K)(t)&&(0,w.$K)(t.tickInterval)&&!(0,w.$K)(t.scaleDivisionFactor),e.axisDivisionFactor=e.scaleDivisionFactor||n._gridSpacingFactor,e.minorAxisDivisionFactor=e.minorScaleDivisionFactor||5,e.numberMultipliers=EE,e.tickOrientation=n._getTicksOrientation(e),e.label.useRangeColors&&(e.label.customizeColor=function(){return n._rangeContainer.getColorForValue(this.value)}),e},_renderScale:function(n){var t=this._translator.getDomain(),e=t[0],i=t[1],r=this._translator.getCodomain(),m=!!(e>i^n.inverted),D=K_(e,i),A=G_(e,i);n.min=D,n.max=A,n.startAngle=90-r[0],n.endAngle=90-r[1],n.skipViewportExtending=!0,n.inverted=m,this._scale.updateOptions(n),this._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:D,max:A,invert:m}),this._updateScaleTickIndent(n),this._scaleGroup.linkAppend(),this._labelsAxesGroup.linkAppend(),this._scale.draw((0,y.l)({},this._canvas))},_updateIndicatorSettings:function(n){n.currentValue=n.baseValue=nh(this._translator.translate(n.baseValue))?vp(n.baseValue):this._baseValue,n.vertical=this._area.vertical,n.text&&!n.text.format&&(n.text.format=this._defaultFormatOptions)},_prepareIndicatorSettings:function(n,t){var e=this._themeManager.theme("valueIndicators"),i=En(n.type||this._themeManager.theme(t)),r=j_(!0,{},e._default,e[i],n);return r.type=i,r.animation=this._animationSettings,r.containerBackgroundColor=this._containerBackgroundColor,this._updateIndicatorSettings(r),r},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){return this._prepareValueIndicator(),null!==this.__subvalues&&this._prepareSubvalueIndicators(),[this._valueIndicator,this._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var n=this._valueIndicator,t=this._prepareIndicatorSettings(this.option("valueIndicator")||{},"valueIndicatorType");n&&n.type!==t.type&&(n.dispose(),n=null),n||(n=this._valueIndicator=this._createIndicator(t.type,this._renderer.root,"dxg-value-indicator","value-indicator")),n.render(t)},_createSubvalueIndicatorsSet:function(){var n=this,t=n._subvalueIndicatorContainer;return new Km({createIndicator:function(e,i){return n._createIndicator(e,t,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(e){return n._themeManager.createPalette(e)}})},_prepareSubvalueIndicators:function(){var n=this._subvalueIndicatorsSet,t=this._prepareIndicatorSettings(this.option("subvalueIndicator")||{},"subvalueIndicatorType");n||(n=this._subvalueIndicatorsSet=this._createSubvalueIndicatorsSet());var e=t.type!==n.type;n.type=t.type;var i=this._createIndicator(t.type,this._renderer.root);i&&(i.dispose(),n.render(t,e))},_setupValue:function(n){this.__value=$_(n,this.__value)},_setupSubvalues:function(n){var e,i,r,t=void 0===n?this.__subvalues:_C(n);if(null!==t){for(e=0,i=t.length,r=[];e<i;++e)r.push($_(t[e],this.__subvalues[e]));this.__subvalues=r}},_updateValueIndicator:function(){this._valueIndicator&&this._valueIndicator.value(this.__value,this._noAnimation)},_updateSubvalueIndicators:function(){this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.values(this.__subvalues,this._noAnimation)},value:function(n){return void 0!==n?(this._changeValue(n),this):this.__value},subvalues:function(n){return void 0!==n?(this._changeSubvalues(n),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(n){this._setupValue(n),this._beginValueChanging(),this._updateValueIndicator(),this.__value!==this.option(Yg)&&this.option(Yg,this.__value),this._endValueChanging()},_changeSubvalues:function(n){null!==this.__subvalues?(this._setupSubvalues(n),this._beginValueChanging(),this._updateSubvalueIndicators(),this._endValueChanging()):(this.__subvalues=_C(n),this._setContentSize(),this._renderContent()),Lo(this.__subvalues,this.option(Xg))||this.option(Xg,this.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option(Yg))},_change_SUBVALUES:function(){this._changeSubvalues(this.option(Xg))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(n,t,e,i,r,m){var D=this._factory.createIndicator({renderer:this._renderer,translator:this._translator,owner:t,tracker:this._tracker,className:e},n,m);return D&&(D.type=n,D._trackerInfo={type:i,index:r}),D},_getApproximateScreenRange:null});function lI(n){return n?n.value:null}function yC(n,t,e){for(var i=n[t],r=ic(e)?Vn(e,lI):[],m=0,D=r.length,A=[];m<D;++m)A.push($_(r[m],i[m]));n[t]=A}function CC(n){void 0===n.option(Yg)&&void 0===n.option(Xg)&&void 0!==n.option("valueIndicators")&&(function xC(n){n.value=n.subvalues=E.ZT,n._setupValue=n._setupSubvalues=n._updateValueIndicator=n._updateSubvalueIndicators=null}(n),function uI(n){n._indicatorValues=[],yC(n,"_indicatorValues",n.option("valueIndicators")),n._valueIndicators=[];var t=n._applyMostlyTotalChange;n._applyMostlyTotalChange=function(){yC(this,"_indicatorValues",this.option("valueIndicators")),t.call(this)},n._updateActiveElements=Y_,n._prepareValueIndicators=X_,n._disposeValueIndicators=bC,n._cleanValueIndicators=dI,n.indicatorValue=q_}(n))}function Y_(){var n=this;n._valueIndicators.forEach(t=>{t.value(n._indicatorValues[t.index],n._noAnimation)})}function X_(){var m,n=this,t=n._valueIndicators||[],e=n.option("valueIndicators"),i=[],r=0;for(m=ic(e)?e.length:0;r<m;++r)i.push(e[r]);for(m=t.length;r<m;++r)i.push(null);var D=[];return i.forEach((A,N)=>{var Q=t[N];if(A){var se=n._prepareIndicatorSettings(A,"valueIndicatorType");Q&&Q.type!==se.type&&(Q.dispose(),Q=null),Q||(Q=n._createIndicator(se.type,n._renderer.root,"dxg-value-indicator","value-indicator",N,!0)),Q&&(Q.index=N,Q.render(se),D.push(Q))}else Q&&Q.dispose()}),n._valueIndicators=D,n._valueIndicators}function bC(){this._valueIndicators.forEach(n=>n.dispose()),this._valueIndicators=null}function dI(){this._valueIndicators.forEach(n=>n.clean())}function q_(n,t){return function J_(n,t,e,i,r){return void 0!==r?(void 0!==e[i]&&(e[i]=$_(r,e[i]),t[i]&&t[i].value(e[i])),n):e[i]}(this,this._valueIndicators,this._indicatorValues,n,t)}function Km(n){this._parameters=n,this._indicators=[]}function wC(n){return function(t,e,i){var r=n[En(e)]||!i&&n._default;return r?new r(t):null}}Km.prototype={constructor:Km,dispose:function(){return this._indicators.forEach(n=>n.dispose()),this._parameters=this._options=this._indicators=this._colorPalette=this._palette=null,this},clean:function(){return this._sample&&this._sample.clean().dispose(),this._indicators.forEach(n=>n.clean()),this._sample=this._options=this._palette=null,this},render:function(n,t){var e=this;return e._options=n,e._sample=e._parameters.createIndicator(e.type),e._sample.render(n),e.enabled=e._sample.enabled,e._palette=(0,w.$K)(n.palette)?e._parameters.createPalette(n.palette):null,e.enabled&&(e._generatePalette(e._indicators.length),e._indicators=Vn(e._indicators,function(i,r){return t&&(i.dispose(),i=e._parameters.createIndicator(e.type,r)),i.render(e._getIndicatorOptions(r)),i})),e},getOffset:function(){return this._sample.getOffset()},resize:function(n){return this._layout=n,this._indicators.forEach(t=>t.resize(n)),this},measure:function(n){return this._sample.measure(n)},_getIndicatorOptions:function(n){var t=this._options;return this._colorPalette&&(t=j_({},t,{color:this._colorPalette[n]})),t},_generatePalette:function(n){var t=null;this._palette&&(this._palette.reset(),t=this._palette.generateColors(n,{repeat:!0})),this._colorPalette=t},_adjustIndicatorsCount:function(n){var e,i,r,t=this._indicators,m=t.length;if(m>n){for(e=n,i=m;e<i;++e)t[e].clean().dispose();this._indicators=t.slice(0,n),this._generatePalette(t.length)}else if(m<n)for(this._generatePalette(n),e=m,i=n;e<i;++e)(r=this._parameters.createIndicator(this.type,e)).render(this._getIndicatorOptions(e)).resize(this._layout),t.push(r)},values:function(n,t){if(this.enabled)return void 0!==n?(ic(n)||(n=nh(n)?[Number(n)]:null),n&&(this._adjustIndicatorsCount(n.length),this._indicators.forEach((e,i)=>e.value(n[i],t))),this):Vn(this._indicators,function(e){return e.value()})}};var EC=isFinite,SC=Number,Wl=Math.round,Q_=ao,OC=fo,SE=ar.Z.inherit({ctor:function(n){var t=this;(0,O.S6)(n,function(e,i){t["_"+e]=i}),t._init()},dispose:function(){var n=this;return n._dispose(),(0,O.S6)(n,function(t){n[t]=null}),n},getOffset:function(){return SC(this._options.offset)||0}}),Gm=SE.inherit({_init:function(){this._rootElement=this._createRoot().linkOn(this._owner,{name:"value-indicator",after:"core"}),this._trackerElement=this._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var n=this;n._options.animation&&(n._animation={step:function(t){n._actualValue=n._animation.start+n._animation.delta*t,n._actualPosition=n._translator.translate(n._actualValue),n._move()},duration:n._options.animation.duration>0?SC(n._options.animation.duration):0,easing:n._options.animation.easing})},_runAnimation:function(n){var t=this._animation;t.start=this._actualValue,t.delta=n-this._actualValue,this._rootElement.animate({_:0},{step:t.step,duration:t.duration,easing:t.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:E.ZT,clean:function(){return this._animation&&this._rootElement.stopAnimation(),this._rootElement.linkRemove().clear(),this._clear(),this._tracker.detach(this._trackerElement),this._options=this.enabled=this._animation=null,this},render:function(n){return this.type=n.type,this._options=n,this._actualValue=this._currentValue=this._translator.adjust(this._options.currentValue),this.enabled=this._isEnabled(),this.enabled&&(this._setupAnimation(),this._rootElement.attr({fill:this._options.color}).linkAppend(),this._tracker.attach(this._trackerElement,this,this._trackerInfo)),this},resize:function(n){return this._rootElement.clear(),this._clear(),this.visible=this._isVisible(n),this.visible&&((0,y.l)(this._options,n),this._actualPosition=this._translator.translate(this._actualValue),this._render(),this._trackerElement.attr(this._getTrackerSettings()),this._move()),this},value:function(n,t){var e,i=this._rootElement,r=null;return void 0===n?this._currentValue:(null===n?(r="hidden",this._currentValue=n):(e=this._translator.adjust(n),this._currentValue!==e&&EC(e)&&(this._currentValue=e,this.visible&&(this._animation&&!t?this._runAnimation(e):(this._actualValue=e,this._actualPosition=this._translator.translate(e),this._move())))),i.attr({visibility:r}),this)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),Vs={};Vs["right-bottom"]=Vs.rb=[0,-1,-1,0,0,1,1,0],Vs["bottom-right"]=Vs.br=[-1,0,0,-1,1,0,0,1],Vs["left-bottom"]=Vs.lb=[0,-1,1,0,0,1,-1,0],Vs["bottom-left"]=Vs.bl=[1,0,0,-1,-1,0,0,1],Vs["left-top"]=Vs.lt=[0,1,1,0,0,-1,-1,0],Vs["top-left"]=Vs.tl=[1,0,0,1,-1,0,0,-1],Vs["right-top"]=Vs.rt=[0,1,-1,0,0,-1,1,0],Vs["top-right"]=Vs.tr=[-1,0,0,1,1,0,0,-1];var DC=Gm.inherit({_move:function(){var n=this._options,t=this._getTextCloudOptions(),e=Q_(this._actualValue,n.text);this._text.attr({text:e});var i=this._text.getBBox(),r=t.x,m=t.y,D=(i.width||e.length*this._textUnitWidth)+2*n.horizontalOffset,A=(i.height||this._textHeight)+2*n.verticalOffset,N=function OE(n){var D,A,t=n.x,e=n.y,i=Vs[n.type],r=n.cloudWidth,m=n.cloudHeight,N=t,Q=e;return D=A=n.tailLength,1&i[0]?A=Math.min(A,m/3):D=Math.min(D,r/3),{cx:Wl(N+i[0]*D+(i[0]+i[2])*r/2),cy:Wl(Q+i[1]*A+(i[1]+i[3])*m/2),points:[Wl(t),Wl(e),Wl(t+=i[0]*(r+D)),Wl(e+=i[1]*(m+A)),Wl(t+=i[2]*r),Wl(e+=i[3]*m),Wl(t+=i[4]*r),Wl(e+=i[5]*m),Wl(t+=i[6]*(r-D)),Wl(e+=i[7]*(m-A))]}}({x:r,y:m,cloudWidth:D,cloudHeight:A,tailLength:n.arrowLength,type:this._correctCloudType(t.type,{x:r,y:m},{width:D,height:A})});this._text.attr({x:N.cx,y:N.cy+this._textVerticalOffset}),this._cloud.attr({points:N.points}),this._trackerElement&&this._trackerElement.attr({points:N.points})},_measureText:function(){var n,e,i;this._textVerticalOffset||(n=this._createRoot().append(this._owner),i=OC(this._translator,this._options.text),e=this._renderer.text(i,0,0).attr({align:"center"}).css(ci(this._options.text.font)).append(n).getBBox(),n.remove(),this._textVerticalOffset=-e.y-e.height/2,this._textWidth=e.width,this._textHeight=e.height,this._textUnitWidth=this._textWidth/i.length,this._textFullWidth=this._textWidth+2*this._options.horizontalOffset,this._textFullHeight=this._textHeight+2*this._options.verticalOffset)},_render:function(){this._measureText(),this._cloud=this._cloud||this._renderer.path([],"area").append(this._rootElement),this._text=this._text||this._renderer.text().append(this._rootElement),this._text.attr({align:"center"}).css(ci(this._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var n=this._getTextCloudOptions();return{x:n.x,y:n.y,value:this._currentValue,color:this._options.color}},_correctCloudType:n=>n}),DE=Gm.inherit({_measureText:function(){var n,e;this._hasText=this._isTextVisible(),this._hasText&&!this._textVerticalOffset&&(n=this._createRoot().append(this._owner),e=this._renderer.text(OC(this._translator,this._options.text),0,0).attr({class:"dxg-text",align:"center"}).css(ci(this._options.text.font)).append(n).getBBox(),n.remove(),this._textVerticalOffset=-e.y-e.height/2,this._textWidth=e.width,this._textHeight=e.height)},_move:function(){this._updateBarItemsPositions(),this._hasText&&(this._text.attr({text:Q_(this._actualValue,this._options.text)}),this._updateTextPosition(),this._updateLinePosition())},_updateBarItems:function(){var t,n=this._options,e=this._translator;this._setBarSides(),this._startPosition=e.translate(e.getDomainStart()),this._endPosition=e.translate(e.getDomainEnd()),this._basePosition=e.translate(n.baseValue),this._space=this._getSpace();var i=n.backgroundColor||"none";"none"!==i&&this._space>0?t=n.containerBackgroundColor||"none":(this._space=0,t="none"),this._backItem1.attr({fill:i}),this._backItem2.attr({fill:i}),this._spaceItem1.attr({fill:t}),this._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){this._hasText?(this._line=this._line||this._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(this._rootElement),this._text=this._text||this._renderer.text("",0,0).attr({class:"dxg-text"}).append(this._rootElement),this._text.attr({align:this._getTextAlign()}).css(this._getFontOptions()),this._setTextItemsSides()):(this._line&&(this._line.remove(),delete this._line),this._text&&(this._text.remove(),delete this._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var n=this._options,t=n.text.font;return(!t||!t.color)&&(t=(0,y.l)({},t,{color:n.color})),ci(t)},_updateBarItemsPositions:function(){var n=this._getPositions();this._backItem1.attr(this._buildItemSettings(n.start,n.back1)),this._backItem2.attr(this._buildItemSettings(n.back2,n.end)),this._spaceItem1.attr(this._buildItemSettings(n.back1,n.main1)),this._spaceItem2.attr(this._buildItemSettings(n.main2,n.back2)),this._mainItem.attr(this._buildItemSettings(n.main1,n.main2)),this._trackerElement&&this._trackerElement.attr(this._buildItemSettings(n.main1,n.main2))},_render:function(){this._measureText(),this._backItem1||(this._backItem1=this._createBarItem(),this._backItem1.attr({class:"dxg-back-bar"})),this._backItem2||(this._backItem2=this._createBarItem(),this._backItem2.attr({class:"dxg-back-bar"})),this._spaceItem1||(this._spaceItem1=this._createBarItem(),this._spaceItem1.attr({class:"dxg-space-bar"})),this._spaceItem2||(this._spaceItem2=this._createBarItem(),this._spaceItem2.attr({class:"dxg-space-bar"})),this._mainItem||(this._mainItem=this._createBarItem(),this._mainItem.attr({class:"dxg-main-bar"})),this._updateBarItems(),this._updateTextItems()},_clear:function(){delete this._backItem1,delete this._backItem2,delete this._spaceItem1,delete this._spaceItem2,delete this._mainItem,delete this._hasText,delete this._line,delete this._text},getTooltipParameters:function(){var n=this._getTooltipPosition();return{x:n.x,y:n.y,value:this._currentValue,color:this._options.color,offset:0}}}),ol=Number,qg=Lt,ev=dt;function jm(n,t){return n&&n.radius-t<=0&&(n.radius=t+1),n}var TC=Gm.inherit({_move:function(){var n=this._options,t=ev(this._actualPosition);this._rootElement.rotate(t,n.x,n.y),this._trackerElement&&this._trackerElement.rotate(t,n.x,n.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(n){return n.radius-ol(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var n=this._options,t=this._getRadius(),e=this._getIndentFromCenter(),i=n.x,r=n.y-(t+e)/2,m=n.width/2,D=(t-e)/2;return m>10||(m=10),D>10||(D=10),{points:[i-m,r-D,i-m,r+D,i+m,r+D,i+m,r-D]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(n){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(n){var t={max:n.radius};return this._options.indentFromCenter<0&&(t.inverseHorizontalOffset=t.inverseVerticalOffset=-ol(this._options.indentFromCenter)),t},getTooltipParameters:function(){var n=this._options,t=qg(this._actualPosition),e=(this._getRadius()+this._getIndentFromCenter())/2;return{x:n.x+t.cos*e,y:n.y-t.sin*e,value:this._currentValue,color:n.color,offset:n.width/2}}}),tv=TC.inherit({_isVisible:function(n){var t=this._adjustOffset(Number(this._options.indentFromCenter),n.radius),e=this._adjustOffset(Number(this._options.offset),n.radius);return n.radius-t-e>0},getOffset:function(){return 0},_adjustOffset:function(n,t){var i=t/Number(this._options.beginAdaptingAtRadius);return i<1&&(n=Math.floor(n*i)),n||0},_getIndentFromCenter:function(n){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var n=this._options;return n.radius-this._adjustOffset(Number(n.offset),n.radius)},_renderSpindle:function(){var n=this._options,t=n.radius,e=2*this._adjustOffset(ol(n.spindleSize)/2,t),i=2*this._adjustOffset(ol(n.spindleGapSize)/2,t)||0;i>0&&(i=i<=e?i:e),e>0&&(this._spindleOuter=this._spindleOuter||this._renderer.circle().append(this._rootElement),this._spindleInner=this._spindleInner||this._renderer.circle().append(this._rootElement),this._spindleOuter.attr({class:"dxg-spindle-border",cx:n.x,cy:n.y,r:e/2}),this._spindleInner.attr({class:"dxg-spindle-hole",cx:n.x,cy:n.y,r:i/2,fill:n.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),IC=tv.inherit({_renderPointer:function(){var n=this._options,t=n.y-this._getRadius(),e=n.y-this._getIndentFromCenter(),i=n.x-n.width/2,r=i+ol(n.width);this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,e,i,t,r,t,r,e]})}}),TE=tv.inherit({_renderPointer:function(){var n=this._options,t=n.y-this._getRadius(),e=n.y-this._getIndentFromCenter(),i=n.x-n.width/2,r=n.x+n.width/2;this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,e,n.x,t,r,e]})}}),IE=tv.inherit({_renderPointer:function(){var D,A,n=this._options,t=n.x-n.width/2,e=n.x+n.width/2,i=n.y-this._getRadius(),r=n.y-this._getIndentFromCenter(),m=ol(n.secondFraction)||0;D=m>=1?A=r:m<=0?A=i:(A=i+(r-i)*m)+ol(n.space),this._firstElement=this._firstElement||this._renderer.path([],"area").append(this._rootElement),this._spaceElement=this._spaceElement||this._renderer.path([],"area").append(this._rootElement),this._secondElement=this._secondElement||this._renderer.path([],"area").append(this._rootElement),this._firstElement.attr({points:[t,r,t,D,e,D,e,r]}),this._spaceElement.attr({points:[t,D,t,A,e,A,e,D],class:"dxg-hole",fill:n.containerBackgroundColor}),this._secondElement.attr({points:[t,A,t,i,e,i,e,A],class:"dxg-part",fill:n.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),ME=TC.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:n=>!0,resize(n){return this.callBase(jm(n,0))},_render:function(){var n=this._options,t=n.x,e=n.y-n.radius,i=n.width/2||0,r=e-ol(n.length);this._element=this._element||this._renderer.path([],"area").append(this._rootElement);var m={points:[t,e,t-i,r,t+i,r],stroke:"none","stroke-width":0,"stroke-linecap":"square"};n.space>0&&(m["stroke-width"]=Math.min(n.space,n.width/4)||0,m.stroke=m["stroke-width"]>0&&n.containerBackgroundColor||"none"),this._element.attr(m).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var n=this._options,t=n.x,e=n.y-n.radius-n.length/2,i=n.width/2,r=n.length/2;return i>10||(i=10),r>10||(r=10),{points:[t-i,e-r,t-i,e+r,t+i,e+r,t+i,e-r]}},measure:function(n){return{min:n.radius,max:n.radius+ol(this._options.length)}},getTooltipParameters:function(){var n=this._options,t=qg(this._actualPosition),e=n.radius+n.length/2,i=this.callBase();return i.x=n.x+t.cos*e,i.y=n.y-t.sin*e,i.offset=n.length/2,i}}),AE=DC.inherit({_isEnabled:function(){return!0},_isVisible:n=>!0,resize(n){return this.callBase(jm(n,0))},_getTextCloudOptions:function(){var n=qg(this._actualPosition),t=lt(this._actualPosition);return{x:this._options.x+n.cos*this._options.radius,y:this._options.y-n.sin*this._options.radius,type:t>270?"left-top":t>180?"top-right":t>90?"right-bottom":"bottom-left"}},measure:function(n){var t=ol(this._options.arrowLength)||0;this._measureText();var e=this._textFullHeight+t,i=this._textFullWidth+t;return{min:n.radius,max:n.radius,horizontalOffset:i,verticalOffset:e,inverseHorizontalOffset:i,inverseVerticalOffset:e}}}),PE=DE.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:n=>!0,resize(n){return this.callBase(jm(n,ol(this._options.size)))},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){this._maxSide=this._options.radius,this._minSide=this._maxSide-ol(this._options.size)},_getSpace:function(){var n=this._options;return n.space>0?180*n.space/n.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var n=this._options,t=ol(n.text.indent);this._lineFrom=n.y-n.radius,this._lineTo=this._lineFrom-t,this._textRadius=n.radius+t},_getPositions:function(){var e,i,n=this._basePosition,t=this._actualPosition;return n>=t?(e=n,i=t):(e=t,i=n),{start:this._startPosition,end:this._endPosition,main1:e,main2:i,back1:Math.min(e+this._space,this._startPosition),back2:Math.max(i-this._space,this._endPosition)}},_buildItemSettings:function(n,t){return{x:this._options.x,y:this._options.y,innerRadius:this._minSide,outerRadius:this._maxSide,startAngle:t,endAngle:n}},_updateTextPosition:function(){var n=qg(this._actualPosition),t=this._options.x+this._textRadius*n.cos,e=this._options.y-this._textRadius*n.sin;this._text.attr({x:t+=n.cos*this._textWidth*.6,y:(e-=n.sin*this._textHeight*.6)+this._textVerticalOffset})},_updateLinePosition:function(){var t,e,n=this._options.x;this._basePosition>this._actualPosition?(t=n-2,e=n):this._basePosition<this._actualPosition?(t=n,e=n+2):(t=n-1,e=n+1),this._line.attr({points:[t,this._lineFrom,t,this._lineTo,e,this._lineTo,e,this._lineFrom]}).rotate(ev(this._actualPosition),n,this._options.y).sharp()},_getTooltipPosition:function(){var n=qg((this._basePosition+this._actualPosition)/2),t=(this._minSide+this._maxSide)/2;return{x:this._options.x+n.cos*t,y:this._options.y-n.sin*t}},measure:function(n){var t={min:n.radius-ol(this._options.size),max:n.radius};return this._measureText(),this._hasText&&(t.max+=ol(this._options.text.indent),t.horizontalOffset=this._textWidth,t.verticalOffset=this._textHeight),t}}),$m=Number,rc=Array.isArray,kE=isFinite,cI=SE.inherit({_init:function(){this._root=this._renderer.g().attr({class:"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var A,n=this._options,t=this._translator,e=t.getDomain()[0],i=t.getDomain()[1],r=i-e,m=r>=0?hI:AC,D=r>=0?MC:yp,N=[],Q=[{start:e,end:i}],se=(0,w.HD)(n.backgroundColor)?n.backgroundColor:"none",we=n.width||{},Re=$m(we>0?we:we.start),Ue=$m(we>0?we:we.end),st=Ue-Re;if(void 0!==n.ranges&&!rc(n.ranges)||!(Re>=0&&Ue>=0&&Re+Ue>0))return null;A=(rc(n.ranges)?n.ranges:[]).reduce((Kt,sn,wn)=>{var rn=t.adjust((sn=sn||{}).startValue),Ft=t.adjust(sn.endValue);return kE(rn)&&kE(Ft)&&m(rn,Ft,sn)&&Kt.push({start:rn,end:Ft,color:sn.color,classIndex:wn}),Kt},[]);var Ot=this._themeManager.createPalette(n.palette,{type:"indicatingSet",extensionMode:n.paletteExtensionMode,keepLastColorInEnd:!0,count:A.length});return(0,O.S6)(A,function(Kt,sn){var wn=Ot.getNextColor();sn.color=(0,w.HD)(sn.color)&&sn.color||wn||"none",sn.className="dxg-range dxg-range-"+sn.classIndex,delete sn.classIndex}),(0,O.S6)(A,function(Kt,sn){var wn,rn,Ft,qt,un,In=[],Kn=[];for(wn=0,rn=N.length;wn<rn;++wn)(Ft=(qt=D((un=N[wn]).start,un.end,sn.start,sn.end))[0])&&(Ft.color=un.color)&&(Ft.className=un.className)&&In.push(Ft),(Ft=qt[1])&&(Ft.color=un.color)&&(Ft.className=un.className)&&In.push(Ft);for(In.push(sn),N=In,wn=0,rn=Q.length;wn<rn;++wn)(Ft=(qt=D((un=Q[wn]).start,un.end,sn.start,sn.end))[0])&&Kn.push(Ft),(Ft=qt[1])&&Kn.push(Ft);Q=Kn}),(0,O.S6)(Q,function(Kt,sn){sn.color=se,sn.className="dxg-range dxg-background-range",N.push(sn)}),(0,O.S6)(N,function(Kt,sn){sn.startWidth=(sn.start-e)/r*st+Re,sn.endWidth=(sn.end-e)/r*st+Re}),N},render:function(n){return this._options=n,this._processOptions(),this._ranges=this._getRanges(),this._ranges&&(this.enabled=!0,this._root.linkAppend()),this},resize:function(n){var t=this;return t._root.clear(),t._isVisible(n)&&(0,O.S6)(t._ranges,function(e,i){t._createRange(i,n).attr({fill:i.color,class:i.className}).append(t._root)}),t},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(n){var t=null;return(0,O.S6)(this._ranges,function(e,i){if(i.start<=n&&n<=i.end||i.start>=n&&n>=i.end)return t=i.color,!1}),t}});function MC(n,t,e,i){var r;return e>n&&i<t?r=[{start:n,end:e},{start:i,end:t}]:e>=t||i<=n?r=[{start:n,end:t}]:e<=n&&i>=t?r=[]:e>n?r=[{start:n,end:e}]:i<t&&(r=[{start:i,end:t}]),r}function yp(n,t,e,i){var r;return e<n&&i>t?r=[{start:n,end:e},{start:i,end:t}]:e<=t||i>=n?r=[{start:n,end:t}]:e>=n&&i<=t?r=[]:e<n?r=[{start:n,end:e}]:i>t&&(r=[{start:i,end:t}]),r}function nv(n,t,e){var{startValue:i,endValue:r}=e;return r===i&&i===n&&t===n}function hI(n,t,e){return t-n>0||nv(n,t,e)}function AC(n,t,e){return n-t>0||nv(n,t,e)}const pI=cI;var Ym=Number,RE=Math.max,gI=pI.inherit({_processOptions:function(){switch(this._inner=this._outer=0,En(this._options.orientation)){case"inside":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(n){var t=this._options.width;return t=Ym(t)||RE(Ym(t.start),Ym(t.end)),n.radius-this._inner*t>0},_createRange:function(n,t){var e=(n.startWidth+n.endWidth)/2;return this._renderer.arc(t.x,t.y,t.radius-this._inner*e,t.radius+this._outer*e,this._translator.translate(n.end),this._translator.translate(n.start)).attr({"stroke-linejoin":"round"})},measure:function(n){var t=this._options.width;return t=Ym(t)||RE(Ym(t.start),Ym(t.end)),{min:n.radius-this._inner*t,max:n.radius+this._outer*t}}});const LE=gI;var BE=isFinite,bs=lt,PC=Lt,fI=Math.abs,Uu=Math.max,Jg=Math.min,kC=Math.round,FE=O.S6,VE=Math.PI,Xm=vC.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions(){var n=this.callBase.apply(this,arguments);return n.subTheme="_circular",n},_updateScaleTickIndent:function(n){var t=n.label.indentFromTick,e=n.tick.visible?n.tick.length:0,i=this._scale.measureLabels((0,y.l)({},this._canvas)),r=n.orientation,m=e,D=t;t>=0?"outside"===r?D+=m:"center"===r&&(D+=m/2):(D-=Uu(i.width,i.height),"inside"===r?D-=m:"center"===r&&(D-=m/2)),n.label.indentFromAxis=D,this._scale.updateOptions(n)},_setupCodomain:function(){var i,n=this.option("geometry")||{},t=n.startAngle,e=n.endAngle;t=BE(t)?bs(t):225,e=BE(e)?bs(e):-45,fI(t-e)<1?(e-=360,i={left:-1,up:-1,right:1,down:1}):(t<e&&(e-=360),i=function Qg(n,t){var e=PC(n),i=PC(t),r=e.cos,m=e.sin,D=i.cos,A=i.sin;return{left:m<=0&&A>=0||m<=0&&A<=0&&r<=D||m>=0&&A>=0&&r>=D?-1:Jg(r,D,0),right:m>=0&&A<=0||m>=0&&A>=0&&r>=D||m<=0&&A<=0&&r<=D?1:Uu(r,D,0),up:r<=0&&D>=0||r<=0&&D<=0&&m>=A||r>=0&&D>=0&&m<=A?-1:-Uu(m,A,0),down:r>=0&&D<=0||r>=0&&D>=0&&m<=A||r<=0&&D<=0&&m>=A?1:-Jg(m,A,0)}}(t,e)),this._area={x:0,y:0,radius:100,startCoord:t,endCoord:e,sides:i},this._translator.setCodomain(t,e)},_shiftScale:function(n){var t=this._scale,e=t.getCanvas();e.width=e.height=2*n.radius,t.draw(e);var i=t.getCenter();t.shift({right:n.x-i.x,bottom:n.y-i.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(n){return n.orientation},_getTicksCoefficients:function(n){var t={inner:0,outer:1};return"inside"===n.orientation?(t.inner=1,t.outer=0):"center"===n.orientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(n,t,e){t>=0?(n.horizontalOffset=t+e.width,n.verticalOffset=t+e.height):(n.horizontalOffset=n.verticalOffset=0,n.min-=-t+Uu(e.width,e.height)),n.inverseHorizontalOffset=e.width/2,n.inverseVerticalOffset=e.height/2},_measureMainElements:function(n,t){var e=this._area.radius,i=0,r=1/0,m=0,D=0,A=0,N=0;return FE(n.concat(this._scale),function(se,we){var Re=we.measure?we.measure({radius:e-we.getOffset()}):t;Re.min>0&&(r=Jg(r,Re.min)),Re.max>0&&(i=Uu(i,Re.max)),Re.horizontalOffset>0&&(m=Uu(m,Re.max+Re.horizontalOffset)),Re.verticalOffset>0&&(D=Uu(D,Re.max+Re.verticalOffset)),Re.inverseHorizontalOffset>0&&(A=Uu(A,Re.inverseHorizontalOffset)),Re.inverseVerticalOffset>0&&(N=Uu(N,Re.inverseVerticalOffset))}),m=Uu(m-i,0),D=Uu(D-i,0),{minRadius:r,maxRadius:i,horizontalMargin:m,verticalMargin:D,inverseHorizontalMargin:A,inverseVerticalMargin:N}},_applyMainLayout:function(n,t){var e=this._measureMainElements(n,t),i=this._area,r=i.sides,m={left:(r.left<-.1?e.horizontalMargin:e.inverseHorizontalMargin)||0,right:(r.right>.1?e.horizontalMargin:e.inverseHorizontalMargin)||0,top:(r.up<-.1?e.verticalMargin:e.inverseVerticalMargin)||0,bottom:(r.down>.1?e.verticalMargin:e.inverseVerticalMargin)||0},D=function mI(n,t,e){var r,i=(0,y.l)({},n),m=0,D=0;return e=e||{},t>0&&(i.left+=e.left||0,i.right-=e.right||0,i.top+=e.top||0,i.bottom-=e.bottom||0,Cp(i)>0&&ih(i)>0?((r=ih(i)/Cp(i))>1?t<r?m=Cp(i):D=ih(i):t>r?D=ih(i):m=Cp(i),m>0||(m=D/t),D>0||(D=m*t),m=(Cp(i)-m)/2,D=(ih(i)-D)/2,i.left+=m,i.right-=m,i.top+=D,i.bottom-=D):(i.left=i.right=(i.left+i.right)/2,i.top=i.bottom=(i.top+i.bottom)/2)),i}(this._innerRect,(r.down-r.up)/(r.right-r.left),m),A=Jg(Cp(D)/(r.right-r.left),ih(D)/(r.down-r.up));A=A-e.maxRadius+i.radius;var N=D.left-Cp(D)*r.left/(r.right-r.left),Q=D.top-ih(D)*r.up/(r.down-r.up);i.x=kC(N),i.y=kC(Q),i.radius=A,D.left-=m.left,D.right+=m.right,D.top-=m.top,D.bottom+=m.bottom,this._innerRect=D},_getElementLayout:function(n){return{x:this._area.x,y:this._area.y,radius:kC(this._area.radius-n)}},_getApproximateScreenRange:function(){var n=this._area,t=Jg(this._canvas.width/(n.sides.right-n.sides.left),this._canvas.height/(n.sides.down-n.sides.up));return t>n.totalRadius&&(t=n.totalRadius),t*=.8,-this._translator.getCodomainRange()*t*VE/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:(0,Se.d9)(Dr.prototype._factory)});function Cp(n){return n.right-n.left}function ih(n){return n.bottom-n.top}var oc=Xm.prototype._factory.indicators={};Xm.prototype._factory.createIndicator=wC(oc),oc._default=IC,oc.rectangleneedle=IC,oc.triangleneedle=TE,oc.twocolorneedle=IE,oc.trianglemarker=ME,oc.textcloud=AE,oc.rangebar=PE,Xm.prototype._factory.RangeContainer=LE,(0,T.Z)("dxCircularGauge",Xm);const NE=Xm;var rh=Number,ef=Math,Ul=ef.round,ac=ef.max,RC=ef.min,uu=ef.ceil,du=w.$K,cu=w.mf,xp=ti,LC=En,_I=y.l,ws="center",Is="right",hu="left",Zu="top",Sd="bottom",tf="horizontal",BC="vertical",FC="outside",Jm="none",ov=xp([hu,ws,Is]),NC=xp([Zu,Sd]),HE=xp([BC,tf]),zE=xp([hu,Is,Zu,Sd]),WE=xp([FC,"inside"]),UE=xp([hu,ws,Is]);function HC(n,t,e){if(n){var i=n.fill;return(0,y.l)({},{state:e,fill:i===Jm?t:i,opacity:n.opacity,hatching:_I({},n.hatching,{step:5,width:2})})}}function zC(n,t,e){var i=Xf(n,t);return i.fill&&0===i.fill.indexOf("DevExpress")&&(i.fill=Sc(i.fill)),i.opacity=i.opacity>=0?i.opacity:1,(0,y.l)({},i,{size:e})}function WC(n,t,e,i){var r=t&&e[t[n]];r&&r.renderMarker(r.states[i])}function xI(n,t,e){return n?(function ZE(n){var t=n.margin;t=t>=0?{top:t=rh(n.margin),bottom:t,left:t,right:t}:{top:t.top>=0?rh(t.top):10,bottom:t.bottom>=0?rh(t.bottom):10,left:t.left>=0?rh(t.left):10,right:t.right>=0?rh(t.right):10},n.margin=t}(n),n.horizontalAlignment=ov(n.horizontalAlignment,Is),n.verticalAlignment=NC(n.verticalAlignment,n.horizontalAlignment===ws?Sd:Zu),n.orientation=HE(n.orientation,n.horizontalAlignment===ws?tf:BC),n.itemTextPosition=zE(n.itemTextPosition,n.orientation===tf?Sd:Is),n.position=e?WE(n.position,FC):FC,n.itemsAlignment=UE(n.itemsAlignment,null),n.hoverMode=LC(n.hoverMode),n.customizeText=cu(n.customizeText)?n.customizeText:function(){return this[t]},n.customizeHint=cu(n.customizeHint)?n.customizeHint:E.ZT,n._incidentOccurred=n._incidentOccurred||E.ZT,n):null}function bI(n,t){return n.rect(0,0,t,t)}function wI(n,t){return n.circle(t/2,t/2,t/2)}function SI(n,t,e){return t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}function OI(n,t,e,i){var A,r={x:0,y:0},m=0,D=0;if(A="y"===t.direction?i.top+i.bottom:i.left+i.right,n.forEach(function(N,Q){var se=N[0],we=N.length;N.forEach(function(Re,Ue){r[t.direction]+=Re[t.measure]+(Ue!==we-1?Re.offset||t.spacing:0),m=ac(m,r[t.direction])}),r[t.direction]=0,r[t.altDirection]+=se[t.altMeasure]+se.altOffset||t.altSpacing,D=ac(D,r[t.altDirection])}),m+A>t.length)return t.countItem=function GE(n,t){return n.altCountItem++,uu(t/n.altCountItem)}(t,e),!0}function jE(n,t){return n.reduce((e,i)=>e+i[t.measure]+(i.offset||t.spacing),0)}function II(n){switch(n.itemTextPosition){case Sd:return{horizontal:ws,vertical:Zu};case Zu:return{horizontal:ws,vertical:Sd};case hu:return{horizontal:Is,vertical:ws};case Is:return{horizontal:hu,vertical:ws}}}function $E(n,t){var e=n.reduce((i,r)=>ac(i,r?r[t]:i),0);n.forEach(i=>{i&&(i[t]=e)})}function YE(n){var i,r,t=n.length,e=n[0].length,m=[];for(i=0;i<e;i++)for(m[i]=[],r=0;r<t;r++)m[i][r]=n[r][i];return m}function qE(n){return n.horizontalAlignment===ws?ws:n.itemTextPosition===Is?hu:n.itemTextPosition===hu?Is:ws}var oh=function(n){this._renderer=n.renderer,this._legendGroup=n.group,this._backgroundClass=n.backgroundClass,this._itemGroupClass=n.itemGroupClass,this._textField=n.textField,this._getCustomizeObject=n.getFormatObject,this._titleGroupClass=n.titleGroupClass,this._allowInsidePosition=n.allowInsidePosition,this._widget=n.widget,this._updated=!1},UC=oh,JE=UC.prototype=(0,Se.d9)(jd.prototype);(0,y.l)(JE,{constructor:UC,getOptions:function(){return this._options},update:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,r=(t=i._options=xI(t,i._textField,i._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=n.map(D=>(D.size=rh(D.size>0?D.size:r),D.marker=zC(D,D.states.normal),Object.defineProperty(D.marker,"size",{get:()=>D.size,set(A){D.size=A}}),Object.defineProperty(D.marker,"opacity",{get:()=>D.states.normal.opacity,set(A){D.states.normal.opacity=D.states.hover.opacity=D.states.selection.opacity=A}}),D)),t.customizeItems&&(i._data=t.customizeItems(n.slice())||n),i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new Zc({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var m=t.title;e.horizontalAlignment=qE(t),i._title.update(e,m)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(n,t){var e=this._getItemData();return this.erase(),this.isVisible()&&e&&e.length?(this._insideLegendGroup=this._renderer.g().enableLinks().append(this._legendGroup),this._title.changeLink(this._insideLegendGroup),this._createBackground(),this._title.hasText()&&this._title.draw(n-(this._background?2*this._options.paddingLeftRight:0),t),this._markersGroup=this._renderer.g().attr({class:this._itemGroupClass}).append(this._insideLegendGroup),this._createItems(e),this._updateElementsPosition(n,t),this):this},_measureElements:function(){var n=this._options,t=0;this._items.forEach(e=>{var i=e.label.getBBox(),r=e.marker.getBBox();e.markerBBox=r,e.markerSize=Math.max(r.width,r.height);var m=function KE(n,t,e){var i,r;switch(n.itemTextPosition){case hu:case Is:i=t.width+7+e.width,r=ac(t.height,e.height);break;case Zu:case Sd:i=ac(t.width,e.width),r=t.height+4+e.height}return{width:i,height:r}}(n,r,i);e.labelBBox=i,e.bBox=m,t=ac(t,m.height)}),n.equalRowHeight&&this._items.forEach(e=>e.bBox.height=t)},_updateElementsPosition:function(n,t){var e=this._options;this._size={width:n,height:t},this._measureElements(),this._locateElements(e),this._finalUpdate(e);var i=this.getLayoutOptions();(i.width>n||i.height>t)&&this.freeSpace()},_createItems:function(n){var t=this,e=t._options,i=t._renderer,r=function(n){return function EI(n){return"circle"===LC(n)}(n)?wI:bI}(e.markerShape);t._markersId={};var D=t._widget._getTemplate(e.markerTemplate?e.markerTemplate:(N,Q)=>{var se=N.marker;r(i,se.size).attr({fill:se.fill,opacity:se.opacity}).append({element:Q})}),A=t._markersGroup;A.css(ci(e.font)),t._deferredItems=[],t._templatesGroups=[],t._items=(n||[]).map((N,Q)=>{var se=N.states,we=se.normal,Re=we.fill;N.size=N.marker.size;var Ue={normal:(0,y.l)(we,{fill:Re||e.markerColor||e.defaultColor,state:"normal"}),hover:HC(se.hover,Re,"hovered"),selection:HC(se.selection,Re,"selected")};N.states=Ue;var st=i.g().append(A),Ot=i.g().attr({class:"dxl-marker"}).append(st);t._deferredItems[Q]=new P.BH,t._templatesGroups.push(Ot);var Kt={label:t._createLabel(N,st),marker:Ot,renderer:i,group:st,tracker:{id:N.id,argument:N.argument,argumentIndex:N.argumentIndex},states:Ue,itemTextPosition:e.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker(sn){N.marker=zC(Kt,sn,N.size),Ot.clear(),D.render({model:N,container:Ot.element,onRendered:t._deferredItems[Q].resolve})}};return Kt.renderMarker(Ue.normal),t._createHint(N,st),void 0!==N.id&&(t._markersId[N.id]=Q),Kt})},getTemplatesGroups:function(){return this._templatesGroups||[]},getTemplatesDef:function(){return this._deferredItems||[]},_getItemData:function(){var n=this._data||[];return(this._options||{}).inverted&&(n=n.slice().reverse()),n.filter(e=>e.visible)},_finalUpdate:function(n){this._adjustBackgroundSettings(n),this._setBoundingRect(n.margin)},erase:function(){var n=this._insideLegendGroup;return n&&n.dispose(),this._insideLegendGroup=this._markersGroup=this._x1=this._x2=this._y2=this._y2=null,this},_locateElements:function(n){this._moveInInitialValues(),this._locateRowsColumns(n)},_moveInInitialValues:function(){this._title.hasText()&&this._title.move([0,0]),this._legendGroup&&this._legendGroup.move(0,0),this._background&&this._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(n){return WC(n,this._markersId,this._items,"selection"),this},applyHover:function(n){return WC(n,this._markersId,this._items,"hover"),this},resetItem:function(n){return WC(n,this._markersId,this._items,"normal"),this},_createLabel:function(n,t){var e=this._getCustomizeObject(n),i=this._options,r=function AI(n){switch(n){case Zu:case Sd:return ws;case hu:return Is;case Is:return hu}}(i.itemTextPosition),m=i.customizeText.call(e,e),D=du(n.textOpacity)?{color:i.font.color,opacity:n.textOpacity}:{};return this._renderer.text(m,0,0).css(ci(D)).attr({align:r,class:i.cssClass}).append(t)},_createHint:function(n,t){var e=this._getCustomizeObject(n),i=this._options.customizeHint.call(e,e);du(i)&&""!==i&&t.setTitle(i)},_createBackground:function(){var n="inside"===this._options.position,t=this._options.backgroundColor,e=t||(n?this._options.containerBackgroundColor:Jm);(this._options.border.visible||(n||t)&&t!==Jm)&&(this._background=this._renderer.rect(0,0,0,0).attr({fill:e,class:this._backgroundClass}).append(this._insideLegendGroup))},_locateRowsColumns:function(n){var r,t=0,e=this._getItemsLayoutOptions(),i=this._items.length;do{this._createLines(r=[],e),this._alignLines(r,e),t++}while(OI(r,e,i,n.margin)&&t<i);this._applyItemPosition(r,e)},_createLines:function(n,t){this._items.forEach((e,i)=>{var A,N,r=function MI(n,t,e){var i={};return e%t.countItem==0&&(t.markerOffset?n.push([],[]):n.push([])),t.markerOffset?(i.firstLine=n[n.length-1],i.secondLine=n[n.length-2]):i.firstLine=i.secondLine=n[n.length-1],i}(n,t,i),m={width:e.labelBBox.width,height:e.labelBBox.height,element:e.label,bBox:e.labelBBox,pos:II(t),itemIndex:i},D={width:e.markerBBox.width,height:e.markerBBox.height,element:e.marker,pos:{horizontal:ws,vertical:ws},bBox:{width:e.markerBBox.width,height:e.markerBBox.height,x:e.markerBBox.x,y:e.markerBBox.y},itemIndex:i};t.inverseLabelPosition?(A=m,N=D):(A=D,N=m),A[t.markerOffset?"altOffset":"offset"]=t.labelOffset,r.secondLine.push(A),r.firstLine.push(N)})},_alignLines:function(n,t){var e,i=t.altMeasure;if(n.forEach(m=>$E(m,i)),i=t.measure,t.itemsAlignment){if(t.markerOffset)for(e=0;e<n.length;)YE([n[e++],n[e++]]).forEach(r)}else YE(n).forEach(r);function r(m){$E(m,i)}},_applyItemPosition:function(n,t){var e=this,i={x:0,y:0},r=function DI(n,t){return n.reduce((e,i)=>ac(e,jE(i,t)),0)}(n,t);n.forEach(m=>{var D=m[0],A=D.altOffset||t.altSpacing;i[t.direction]=function TI(n,t,e){var r,i=jE(n,t);switch(t.itemsAlignment){case Is:r=e-i;break;case ws:r=(e-i)/2;break;default:r=0}return r}(m,t,r),m.forEach(N=>{var Q=N.offset||t.spacing,se=new Wc(N.element,N.bBox),Re=new Wc(null,{x:i.x,y:i.y,width:N.width,height:N.height}),Ue=e._items[N.itemIndex];se.position({of:Re,my:N.pos,at:N.pos}),Ue.bBoxes.push(Re),i[t.direction]+=N[t.measure]+Q}),i[t.altDirection]+=D[t.altMeasure]+A}),this._items.forEach(m=>{var D=function CI(n,t){var e={};return e.left=RC(n.x,t.x),e.top=RC(n.y,t.y),e.right=ac(n.x+n.width,t.x+t.width),e.bottom=ac(n.y+n.height,t.y+t.height),e}(m.bBoxes[0].getLayoutOptions(),m.bBoxes[1].getLayoutOptions()),A=e._options.columnItemSpacing/2,N=e._options.rowItemSpacing/2;m.tracker.left=D.left-A,m.tracker.right=D.right+A,m.tracker.top=D.top-N,m.tracker.bottom=D.bottom+N})},_getItemsLayoutOptions:function(){var n=this._options,e={itemsAlignment:n.itemsAlignment,orientation:n.orientation},r=this._size.height-(this._background?2*n.paddingTopBottom:0);return n.orientation===tf?(e.length=this._size.width-(this._background?2*n.paddingLeftRight:0),e.spacing=n.columnItemSpacing,e.direction="x",e.measure="width",e.altMeasure="height",e.altDirection="y",e.altSpacing=n.rowItemSpacing,e.countItem=n.columnCount,e.altCountItem=n.rowCount,e.marginTextLabel=4,e.labelOffset=7,(n.itemTextPosition===Sd||n.itemTextPosition===Zu)&&(e.labelOffset=4,e.markerOffset=!0)):(e.length=r,e.spacing=n.rowItemSpacing,e.direction="y",e.measure="height",e.altMeasure="width",e.altDirection="x",e.altSpacing=n.columnItemSpacing,e.countItem=n.rowCount,e.altCountItem=n.columnCount,e.marginTextLabel=7,e.labelOffset=4,(n.itemTextPosition===Is||n.itemTextPosition===hu)&&(e.labelOffset=7,e.markerOffset=!0)),e.countItem||(e.countItem=e.altCountItem?uu(this._items.length/e.altCountItem):this._items.length),(n.itemTextPosition===Zu||n.itemTextPosition===hu)&&(e.inverseLabelPosition=!0),e.itemTextPosition=n.itemTextPosition,e.altCountItem=e.altCountItem||uu(this._items.length/e.countItem),e},_adjustBackgroundSettings:function(n){if(this._background){var t=n.border,e=this._calculateTotalBox(),i={x:Ul(e.x-n.paddingLeftRight),y:Ul(e.y-n.paddingTopBottom),width:Ul(e.width)+2*n.paddingLeftRight,height:Ul(e.height),opacity:n.backgroundOpacity};t.visible&&t.width&&t.color&&t.color!==Jm&&(i["stroke-width"]=t.width,i.stroke=t.color,i["stroke-opacity"]=t.opacity,i.dashStyle=t.dashStyle,i.rx=t.cornerRadius||0,i.ry=t.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(n){if(this._insideLegendGroup){var t=this._calculateTotalBox();t.height+=n.top+n.bottom,t.widthWithoutMargins=t.width,t.width+=n.left+n.right,t.x-=n.left,t.y-=n.top,this._boundingRect=t}},_calculateTotalBox:function(){var n=this._markersGroup.getBBox(),t=this._title.getCorrectedLayoutOptions(),e=this._insideLegendGroup.getBBox();return e.height=n.height+t.height+(this._background?2*this._options.paddingTopBottom:0),t.width>e.width&&(e.width=t.width),e},getActionCallback:function(n){var t=this;return t._options.visible?function(e){t[e](n.index)}:E.ZT},getLayoutOptions:function(){var n=this._options,t=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return n?(t.verticalAlignment=n.verticalAlignment,t.horizontalAlignment=n.horizontalAlignment,n.orientation===tf||n.horizontalAlignment===ws?(t.cutLayoutSide=n.verticalAlignment,t.cutSide="vertical"):(t.cutLayoutSide=n.horizontalAlignment,t.cutSide="horizontal"),t.position={horizontal:n.horizontalAlignment,vertical:n.verticalAlignment},t):null},shift:function(n,t){var e={};return this._insideLegendGroup&&this._insideLegendGroup.attr({translateX:n-this._boundingRect.x,translateY:t-this._boundingRect.y}),this._title&&this._shiftTitle(this._boundingRect.widthWithoutMargins),this._markersGroup&&this._shiftMarkers(),this._insideLegendGroup&&(e=this._legendGroup.getBBox()),this._x1=e.x,this._y1=e.y,this._x2=e.x+e.width,this._y2=e.y+e.height,this},_shiftTitle:function(n){var t=this._title,e=t.getCorrectedLayoutOptions();if(e&&t.hasText()){var i=n-(this._background?2*this._options.paddingLeftRight:0),r=t.getOptions(),m=e.y+r.margin.top,D=0;r.verticalAlignment===Sd&&this._markersGroup&&(m+=this._markersGroup.getBBox().height),r.horizontalAlignment===Is?D=i-e.width:r.horizontalAlignment===ws&&(D=(i-e.width)/2),t.shift(D,m)}},_shiftMarkers:function(){var n=this._title.getLayoutOptions(),t=this._markersGroup.getBBox(),e=this._title.getOptions()||{},i=0,r=0;n.width>t.width&&this._options.horizontalAlignment===ws&&(i=n.width/2-t.width/2),e.verticalAlignment===Zu&&(r=n.height),(0!==i||0!==r)&&(this._markersGroup.attr({translateX:i,translateY:r}),this._items.forEach(m=>{m.tracker.left+=i,m.tracker.right+=i,m.tracker.top+=r,m.tracker.bottom+=r}))},getPosition:function(){return this._options.position},coordsIn:function(n,t){return n>=this._x1&&n<=this._x2&&t>=this._y1&&t<=this._y2},getItemByCoord:function(n,t){var e=this._items,i=this._insideLegendGroup;n-=i.attr("translateX"),t-=i.attr("translateY");for(var r=0;r<e.length;r++)if(SI(e[r].tracker,n,t))return e[r].tracker;return null},dispose:function(){return this._title&&this._title.dispose(),this._legendGroup=this._insideLegendGroup=this._title=this._renderer=this._options=this._data=this._items=null,this},layoutOptions:function(){if(!this.isVisible())return null;var n=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:n.cutSide,priority:1,position:this.getPosition()}},measure:function(n){this._updated||!this._insideLegendGroup?(this.draw(n[0],n[1]),this._updated=!1):(this._items.forEach(e=>{e.bBoxes=[]}),this._updateElementsPosition(n[0],n[1]));var t=this.getLayoutOptions();return[t.width,t.height]},move:function(n){this.shift(n[0],n[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}});var jC,ZC={name:"legend",init:function(){var n=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(this._renderer.root);this._legend=new oh({renderer:this._renderer,group:n,widget:this,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(t){return{item:t.item,text:t.text}}}),this._layout.add(this._legend)},extenders:{_applyTilesAppearance:function(){var n=this;this._items.forEach(function(t){n._applyLegendItemStyle(t.id,t.getState())})},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(n,t){var e=this._legend;switch(t){case"hover":e.applyHover(n);break;case"selection":e.applySelected(n);break;default:e.resetItem(n)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(n){n.prototype._proxyData.push(function(t,e){if(this._legend.coordsIn(t,e)){var i=this._legend.getItemByCoord(t,e);if(i)return{id:i.id,type:"legend"}}}),n.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}},QE=Math.PI/180,av=Math.abs,sv=Math.round,lv=Math.floor,uv=Math.min,ah=Math.max,PI=fo,eS=ao,nf=Lo,S2=Array.isArray,KC=dt,kI=Lt,tS=ci,rf=Number,Qm=isFinite,Oo=E.ZT,bp=y.l,GC="values",sh=Dr.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var n=this;n.callBase.apply(n,arguments),n._barsGroup=n._renderer.g().attr({class:"dxbg-bars"}).linkOn(n._renderer.root,"bars"),n._values=[],n._context={renderer:n._renderer,translator:n._translator,tracker:n._tracker,group:n._barsGroup},n._animateStep=function(t){var i,r,e=n._bars;for(i=0,r=e.length;i<r;++i)e[i].animate(t)},n._animateComplete=function(){n._bars.forEach(t=>t.endAnimation()),n._checkOverlap()}},_disposeCore:function(){var n=this;n._barsGroup.linkOff(),n._barsGroup=n._values=n._context=n._animateStep=n._animateComplete=null,n.callBase.apply(n,arguments)},_setupDomainCore:function(){var n=this.option("startValue"),t=this.option("endValue");Qm(n)||(n=0),Qm(t)||(t=100),this._translator.setDomain(n,t),this._baseValue=this._translator.adjust(this.option("baseValue")),Qm(this._baseValue)||(this._baseValue=n<t?n:t)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:NE.prototype._setupCodomain,_getApproximateScreenRange:function(){var n=this._area.sides,t=this._canvas.width/(n.right-n.left),e=this._canvas.height/(n.down-n.up),i=t<e?t:e;return-this._translator.getCodomainRange()*i*QE},_setupAnimationSettings:function(){var n=this;n.callBase.apply(n,arguments),n._animationSettings&&(n._animationSettings.step=n._animateStep,n._animationSettings.complete=n._animateComplete)},_cleanContent:function(){this._barsGroup.linkRemove(),this._animationSettings&&this._barsGroup.stopAnimation(),this._barsGroup.clear()},_renderContent:function(){var t,e,n=this.option("label"),i=this._context;this._barsGroup.linkAppend(),i.textEnabled=void 0===n||n&&(!("visible"in n)||n.visible),i.textEnabled&&(i.textColor=n&&n.font&&n.font.color||null,n=bp(!0,{},this._themeManager.theme().label,n),i.formatOptions={format:void 0!==n.format?n.format:this._defaultFormatOptions,customizeText:n.customizeText},i.textOptions={align:"center"},i.fontStyles=tS(bp({},this._themeManager.theme().label.font,n.font,{color:null})),this._textIndent=n.indent>0?rf(n.indent):0,i.lineWidth=n.connectorWidth>0?rf(n.connectorWidth):0,i.lineColor=n.connectorColor||null,e=(t=this._renderer.text(PI(this._translator,i.formatOptions),0,0).attr(i.textOptions).css(i.fontStyles).append(this._barsGroup)).getBBox(),t.remove(),i.textY=e.y,i.textWidth=e.width,i.textHeight=e.height),NE.prototype._applyMainLayout.call(this),this._renderBars()},_measureMainElements:function(){var n={maxRadius:this._area.radius};return this._context.textEnabled&&(n.horizontalMargin=this._context.textWidth,n.verticalMargin=this._context.textHeight,n.inverseHorizontalMargin=this._context.textWidth/2,n.inverseVerticalMargin=this._context.textHeight/2),n},_renderBars:function(){var t,n=bp({},this._themeManager.theme(),this.option()),e=this._area,i=n.relativeInnerRadius>0&&n.relativeInnerRadius<1?rf(n.relativeInnerRadius):.1;t=e.radius,this._context.textEnabled&&(this._textIndent=sv(uv(this._textIndent,t/2)),t-=this._textIndent),this._outerRadius=lv(t),this._innerRadius=lv(t*i),this._barSpacing=n.barSpacing>0?rf(n.barSpacing):0,bp(this._context,{backgroundColor:n.backgroundColor,x:e.x,y:e.y,startAngle:e.startCoord,endAngle:e.endCoord,baseAngle:this._translator.translate(this._baseValue)}),this._arrangeBars()},_arrangeBars:function(){var e,n=this._outerRadius-this._innerRadius,t=this._context,i=this._bars.length;this._beginValueChanging(),t.barSize=i>0?ah((n-(i-1)*this._barSpacing)/i,1):0;var r=i>1?ah(uv((n-i*t.barSize)/(i-1),this._barSpacing),0):0,m=uv(lv((n+r)/t.barSize),i);this._setBarsCount(i),t.textRadius=n=this._outerRadius,t.textIndent=this._textIndent,this._palette.reset();var D=t.barSize+r,A=this._palette.generateColors(m);for(e=0;e<m;++e,n-=D)this._bars[e].arrange({radius:n,color:A[e]});for(var N=m;N<i;N++)this._bars[N].hide();this._animationSettings&&!this._noAnimation?this._animateBars():this._updateBars(),this._endValueChanging()},_setBarsCount:function(){this._bars.length>0?this._dummyBackground&&(this._dummyBackground.dispose(),this._dummyBackground=null):(this._dummyBackground||(this._dummyBackground=this._renderer.arc().attr({"stroke-linejoin":"round"})),this._dummyBackground.attr({x:this._context.x,y:this._context.y,outerRadius:this._outerRadius,innerRadius:this._innerRadius,startAngle:this._context.endAngle,endAngle:this._context.startAngle,fill:this._context.backgroundColor}).append(this._barsGroup))},_updateBars:function(){this._bars.forEach(n=>n.applyValue()),this._checkOverlap()},_checkOverlap:function(){var n=this._bars;if("none"!==En(this._getOption("resolveLabelOverlapping",!0)))for(var e=n.concat().sort((A,N)=>A.getValue()-N.getValue()),i=0,r=1;i<e.length&&r<e.length;){var D=e[r];e[i].checkIntersect(D)?(D.hideLabel(),r++):r=(i=r)+1}},_animateBars:function(){var n,t=this._bars.length;if(t>0){for(n=0;n<t;++n)this._bars[n].beginAnimation();this._barsGroup.animate({_:0},this._animationSettings)}},_buildNodes(){var n=this,t=n._options.silent();n._palette=n._themeManager.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode}),n._palette.reset(),n._bars=n._bars||[],n._animationSettings&&n._barsGroup.stopAnimation();var e=n._values.filter(Qm),i=e.length;if(n._bars.length>i){for(var r=n._bars.length,m=i;m<r;++m)n._bars[m].dispose();n._bars.splice(i,r-i)}else if(n._bars.length<i)for(var D=n._bars.length;D<i;++D)n._bars.push(new jC(D,n._context));n._bars.forEach((A,N)=>{A.update({color:n._palette.getNextColor(i),value:e[N]})})},_updateValues:function(n){var e,r,t=S2(n)&&n||Qm(n)&&[n]||[],i=t.length;for(this._values.length=i,e=0;e<i;++e)this._values[e]=rf(Qm(r=t[e])?r:this._values[e]);this._resizing||nf(this._values,this.option(GC))||this.option(GC,this._values.slice()),this._change(["NODES"])},values:function(n){return void 0!==n?(this._updateValues(n),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option(GC))},_factory:(0,Se.d9)(Dr.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData(){var n={},t=this._options.silent();return n.format=(t.legend||{}).itemTextFormat||(t.label||{}).format||this._defaultFormatOptions,(this._bars||[]).map(r=>({id:r.index,item:{value:r.getValue(),color:r.getColor(),index:r.index},text:eS(r.getValue(),n),visible:!0,states:{normal:{fill:r.getColor()}}}))}});function nS(n,t,e){n.startAngle=t<e?t:e,n.endAngle=t<e?e:t}function e0(n,t){return av(n-t)<1e-4}jC=function(n,t){this._context=t,this._tracker=t.renderer.arc().attr({"stroke-linejoin":"round"}),this.index=n},bp(jC.prototype,{dispose:function(){return this._background.dispose(),this._bar.dispose(),this._context.textEnabled&&(this._line.dispose(),this._text.dispose()),this._context.tracker.detach(this._tracker),this._context=this._settings=this._background=this._bar=this._line=this._text=this._tracker=null,this},arrange:function(n){var t=this._context;return this._visible=!0,t.tracker.attach(this._tracker,this,{index:this.index}),this._background=t.renderer.arc().attr({"stroke-linejoin":"round",fill:t.backgroundColor}).append(t.group),this._settings=this._settings||{x:t.x,y:t.y,startAngle:t.baseAngle,endAngle:t.baseAngle},this._bar=t.renderer.arc().attr(bp({"stroke-linejoin":"round"},this._settings)).append(t.group),t.textEnabled&&(this._line=t.renderer.path([],"line").attr({"stroke-width":t.lineWidth}).append(t.group),this._text=t.renderer.text().css(t.fontStyles).attr(t.textOptions).append(t.group)),this._angle=isFinite(this._angle)?this._angle:t.baseAngle,this._settings.outerRadius=n.radius,this._settings.innerRadius=n.radius-t.barSize,this._settings.x=t.x,this._settings.y=t.y,this._background.attr(bp({},this._settings,{startAngle:t.endAngle,endAngle:t.startAngle,fill:this._context.backgroundColor})),this._bar.attr({x:t.x,y:t.y,outerRadius:this._settings.outerRadius,innerRadius:this._settings.innerRadius,fill:this._color}),this._tracker.attr(this._settings),t.textEnabled&&(this._line.attr({points:[t.x,t.y-this._settings.innerRadius,t.x,t.y-t.textRadius-t.textIndent],stroke:t.lineColor||this._color}).sharp(),this._text.css({fill:t.textColor||this._color})),this},getTooltipParameters:function(){var n=kI((this._angle+this._context.baseAngle)/2);return{x:sv(this._context.x+(this._settings.outerRadius+this._settings.innerRadius)/2*n.cos),y:sv(this._context.y-(this._settings.outerRadius+this._settings.innerRadius)/2*n.sin),offset:0,color:this._color,value:this._value}},setAngle:function(n){var i,t=this._context,e=this._settings;if(this._angle=n,nS(e,t.baseAngle,n),this._bar.attr(e),this._tracker.attr(e),t.textEnabled){i=kI(n);var r=t.textIndent,m=t.textRadius+r,D=t.x+m*i.cos,A=t.y-m*i.sin,N=.5*t.textWidth,Q=t.textHeight,se=t.textY;av(D-t.x)>r&&(D+=D<t.x?-N:N),av(A-t.y)<=r?A-=se+.5*Q:A-=A<t.y?se+Q:se;var we=eS(this._value,t.formatOptions,{index:this.index}),Re=""===we?"hidden":null;this._text.attr({text:we,x:D,y:A,visibility:Re}),this._line.attr({visibility:Re}),this._line.rotate(KC(n),t.x,t.y)}return this},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(n){var t=this.calculateLabelCoords(),e=n.calculateLabelCoords();return!(!t||!e)&&Math.max(0,Math.min(t.bottomRight.x,e.bottomRight.x)-Math.max(t.topLeft.x,e.topLeft.x))*Math.max(0,Math.min(t.bottomRight.y,e.bottomRight.y)-Math.max(t.topLeft.y,e.topLeft.y))!=0},calculateLabelCoords:function(){if(this._text){var n=this._text.getBBox();return{topLeft:{x:n.x,y:n.y},bottomRight:{x:n.x+n.width,y:n.y+n.height}}}},_processValue:function(n){return this._context.translator.translate(this._context.translator.adjust(n))},applyValue(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update(n){var{color:t,value:e}=n;this._color=t,this._value=e},hide(){this._visible=!1},getColor(){return this._color},getValue(){return this._value},beginAnimation:function(){if(!this._visible)return this;var n=this._processValue(this.getValue());e0(this._angle,n)?(this.animate=Oo,this.setAngle(this._angle)):(this._start=this._angle,this._delta=n-this._angle,this._tracker.attr({visibility:"hidden"}),this._context.textEnabled&&(this._line.attr({visibility:"hidden"}),this._text.attr({visibility:"hidden"})))},animate:function(n){if(!this._visible)return this;this._angle=this._start+this._delta*n,nS(this._settings,this._context.baseAngle,this._angle),this._bar.attr(this._settings)},endAnimation:function(){void 0!==this._delta?e0(this._angle,this._start+this._delta)&&(this._tracker.attr({visibility:null}),this.setAngle(this._angle)):delete this.animate,delete this._start,delete this._delta}}),(0,T.Z)("dxBarGauge",sh),sh.addPlugin(ZC);let RI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.lj9,M.aZm,M.e1H,M.YXG,M.FZZ,M.FYN,M.bgw,M.jUr,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,g.Lz,g.ie,p.Cu],M.IOm,M.lj9,M.aZm,M.e1H,M.YXG,M.FZZ,M.FYN,M.bgw,M.jUr,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,g.ie]}),n})();u(6026);let rS=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,M.n18,g.Lz,g.ie,p.Cu],M.Q8p,M.n18,g.ie]}),n})();var cv="sparkline-tooltip",hv=(0,k.V4)([So.Z.down,So.Z.move],cv),pv=y.l,aS=Math.floor;function FI(n){var{data:t}=n,e=t.widget;e._enableOutHandler(),e._showTooltip()}function VI(n,t,e){var i=function t0(n,t){var i=(n.lineSpacing??2)+n.size;return function(r){for(var m="",D=r.valueText,A=0;A<D.length;A+=2)m+="<tr><td>"+D[A]+"</td><td style='width: 15px'></td><td style='text-align: "+(t?"left":"right")+"'>"+D[A+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+m+"</table>"}}}(t,e);return(0,w.mf)(n)?function(r){var m=n.call(r,r);return!("html"in m)&&!("text"in m)&&pv(m,i.call(r,r)),m}:i}function sS(n){var t=new Hg({},{},{shiftZeroValue:!n,isHorizontal:!!n});return{getTranslator:function(){return t},update:function(e,i,r){t.update(e,i,r)},getVisibleArea(){var e=t.getCanvasVisibleArea();return[e.min,e.max]},visualRange:E.ZT,calculateInterval:E.ZT,getMarginOptions:()=>({}),aggregatedPointBetweenTicks:()=>!1}}var lS,pu=xl.inherit({_getLayoutItems:E.ZT,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){this._tooltipTracker=this._renderer.root,this._tooltipTracker.attr({"pointer-events":"visible"}),this._createHtmlElements(),this._initTooltipEvents(),this._argumentAxis=sS(!0),this._valueAxis=sS()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide()),this._cleanWidgetElements(),this._updateWidgetElements(),this._drawWidgetElements()},_updateWidgetElements:function(){var n=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,n,this._getStick()),this._valueAxis.update(this._ranges.val,n)},_getStick:function(){},_applySize:function(n){this._allOptions.size={width:n[2]-n[0],height:n[3]-n[1]},this._change(["UPDATE"])},_setupResizeHandler:E.ZT,_prepareOptions:function(){return pv(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var n=this._canvas,t=this._renderer.getRootOffset();return{x:n.width/2+t.left,y:n.height/2+t.top}},_initTooltipEvents(){var n={widget:this};this._renderer.root.off("."+cv).on(hv,n,FI)},_showTooltip(){this._tooltipShown||(this._tooltipShown=!0,this._getTooltip().isEnabled()&&this._tooltip.show(this._getTooltipData(),this._getTooltipCoords(),{}))},_hideTooltip(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide())},_stopCurrentHandling(){this._hideTooltip()},_enableOutHandler(){var n=this;if(!n._outHandler){var t=e=>{var{pageX:i,pageY:r}=e,{left:m,top:D}=n._renderer.getRootOffset(),A=aS(i-m),N=aS(r-D);(function BI(n,t,e){var{width:i,height:r}=n;return mo({left:0,top:0,right:i,bottom:r,width:i,height:r},t,e)})(n._canvas,A,N)||(n._hideTooltip(),n._disableOutHandler())};d.Z.on(b.Z.getDocument(),hv,t),this._outHandler=t}},_disableOutHandler(){this._outHandler&&d.Z.off(b.Z.getDocument(),hv,this._outHandler),this._outHandler=null},_disposeTooltipEvents:function(){this._tooltipTracker.off(),this._disableOutHandler(),this._renderer.root.off("."+cv)},_getTooltip:function(){var n=this;return n._tooltip||(lS.apply(this,arguments),n._setTooltipRendererOptions(n._tooltipRendererOptions),n._tooltipRendererOptions=null,n._setTooltipOptions()),n._tooltip}});const $C=pu;pu.addPlugin(Fe),lS=pu.prototype._initTooltip,pu.prototype._initTooltip=E.ZT;var uS=pu.prototype._disposeTooltip;pu.prototype._disposeTooltip=function(){this._tooltip&&uS.apply(this,arguments)},pu.prototype._setTooltipRendererOptions=function(){var n=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(n):this._tooltipRendererOptions=n},pu.prototype._setTooltipOptions=function(){var n=this._tooltip,t=n&&this._getOption("tooltip");n&&n.update(pv({},t,{customizeTooltip:VI(t.customizeTooltip,t.font,this.option("rtlEnabled")),enabled:t.enabled&&this._isTooltipEnabled()}))};var dS=(0,y.l)(!0,{},Bu,{init:E.ZT,dispose:E.ZT,customize:null,members:{_getExportMenuOptions:null}});pu.addPlugin(dS);var r0=Number,gv=isFinite,fv=$C.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:300,height:30,left:1,right:1,top:2,bottom:2},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var n=this._renderer;this._zeroLevelPath=n.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=n.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=n.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var n,t,e,i,r,m;this._allOptions=n=this.callBase();var D=void 0===this._allOptions.value,A=void 0===this._allOptions.target;this._tooltipEnabled=!(D&&A),D&&(this._allOptions.value=0),A&&(this._allOptions.target=0),n.value=r=r0(n.value),n.target=m=r0(n.target),void 0===this._allOptions.startScaleValue&&(this._allOptions.startScaleValue=m<r?m:r,this._allOptions.startScaleValue=this._allOptions.startScaleValue<0?this._allOptions.startScaleValue:0),void 0===this._allOptions.endScaleValue&&(this._allOptions.endScaleValue=m>r?m:r),n.startScaleValue=t=r0(n.startScaleValue),n.endScaleValue=e=r0(n.endScaleValue),e<t&&(i=e,this._allOptions.endScaleValue=t,this._allOptions.startScaleValue=i,this._allOptions.inverted=!0)},_updateRange:function(){var n=this._allOptions;this._ranges={arg:{invert:n.rtlEnabled?!n.inverted:n.inverted,min:n.startScaleValue,max:n.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var n=this._allOptions,t=n.startScaleValue!==n.endScaleValue,e=gv(n.startScaleValue),i=gv(n.endScaleValue),r=gv(n.value),m=gv(n.target);t&&i&&e&&m&&r&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var n=this._allOptions,t=this._valueAxis.getTranslator(),e=this._argumentAxis.getTranslator().translate(n.target);return{points:[e,t.translate(.02),e,t.translate(.98)],stroke:n.targetColor,"stroke-width":n.targetWidth}},_getBarValueParams:function(){var N,Q,n=this._allOptions,t=this._argumentAxis.getTranslator(),e=this._valueAxis.getTranslator(),i=n.startScaleValue,r=n.endScaleValue,m=n.value,D=e.translate(.1),A=e.translate(.9);return m>0?(N=i<=0?0:i,Q=m>=r?r:m<N?N:m):(N=r>=0?0:r,Q=m<i?i:m>N?N:m),{points:[N=t.translate(N),A,Q=t.translate(Q),A,Q,D,N,D],fill:n.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var n=this._valueAxis.getTranslator(),t=this._argumentAxis.getTranslator().translate(0);return{points:[t,n.translate(.02),t,n.translate(.98)],stroke:this._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var n=this._allOptions;0>n.endScaleValue||0<n.startScaleValue||!n.showZeroLevel||this._zeroLevelPath.attr(this._getZeroLevelParams()).sharp().append(this._renderer.root)},_drawTarget:function(){var n=this._allOptions,t=n.target;t>n.endScaleValue||t<n.startScaleValue||!n.showTarget||this._targetPath.attr(this._getTargetParams()).sharp().append(this._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var n=this._canvas,t=this._renderer.getRootOffset(),e=this._barValuePath.getBBox();return{x:e.x+e.width/2+t.left,y:n.height/2+t.top}},_getTooltipData:function(){var n=this._tooltip,t=this._allOptions,e=t.value,i=t.target,r=n.formatValue(e),m=n.formatValue(i);return{originalValue:e,originalTarget:i,value:r,target:m,valueText:["Actual Value:",r,"Target Value:",m]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});(0,O.S6)(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],function(n,t){fv.prototype._optionChangesMap[t]="OPTIONS"}),(0,T.Z)("dxBullet",fv);let UI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,g.Lz,g.ie,p.Cu],M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,g.ie]}),n})();var ZI=u(39),KI=u(970);let o0=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();var hS=u(3180);const jI={provide:ne.JU,useExisting:(0,a.Gpc)(()=>pS),multi:!0};let pS=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"cellTemplateChange"},{emit:"dateSerializationFormatChange"},{emit:"disabledChange"},{emit:"disabledDatesChange"},{emit:"elementAttrChange"},{emit:"firstDayOfWeekChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"maxChange"},{emit:"maxZoomLevelChange"},{emit:"minChange"},{emit:"minZoomLevelChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showTodayButtonChange"},{emit:"showWeekNumbersChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"weekNumberRuleChange"},{emit:"widthChange"},{emit:"zoomLevelChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get cellTemplate(){return this._getOption("cellTemplate")}set cellTemplate(e){this._setOption("cellTemplate",e)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(e){this._setOption("dateSerializationFormat",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get disabledDates(){return this._getOption("disabledDates")}set disabledDates(e){this._setOption("disabledDates",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get firstDayOfWeek(){return this._getOption("firstDayOfWeek")}set firstDayOfWeek(e){this._setOption("firstDayOfWeek",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get maxZoomLevel(){return this._getOption("maxZoomLevel")}set maxZoomLevel(e){this._setOption("maxZoomLevel",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get minZoomLevel(){return this._getOption("minZoomLevel")}set minZoomLevel(e){this._setOption("minZoomLevel",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showTodayButton(){return this._getOption("showTodayButton")}set showTodayButton(e){this._setOption("showTodayButton",e)}get showWeekNumbers(){return this._getOption("showWeekNumbers")}set showWeekNumbers(e){this._setOption("showWeekNumbers",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get weekNumberRule(){return this._getOption("weekNumberRule")}set weekNumberRule(e){this._setOption("weekNumberRule",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get zoomLevel(){return this._getOption("zoomLevel")}set zoomLevel(e){this._setOption("zoomLevel",e)}change(e){}_createInstance(e,i){return new hS.Z(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("disabledDates",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("disabledDates"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-calendar"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",cellTemplate:"cellTemplate",dateSerializationFormat:"dateSerializationFormat",disabled:"disabled",disabledDates:"disabledDates",elementAttr:"elementAttr",firstDayOfWeek:"firstDayOfWeek",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",max:"max",maxZoomLevel:"maxZoomLevel",min:"min",minZoomLevel:"minZoomLevel",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showTodayButton:"showTodayButton",showWeekNumbers:"showWeekNumbers",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",weekNumberRule:"weekNumberRule",width:"width",zoomLevel:"zoomLevel"},outputs:{onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",cellTemplateChange:"cellTemplateChange",dateSerializationFormatChange:"dateSerializationFormatChange",disabledChange:"disabledChange",disabledDatesChange:"disabledDatesChange",elementAttrChange:"elementAttrChange",firstDayOfWeekChange:"firstDayOfWeekChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",maxChange:"maxChange",maxZoomLevelChange:"maxZoomLevelChange",minChange:"minChange",minZoomLevelChange:"minZoomLevelChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showTodayButtonChange:"showTodayButtonChange",showWeekNumbersChange:"showWeekNumbersChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",weekNumberRuleChange:"weekNumberRuleChange",widthChange:"widthChange",zoomLevelChange:"zoomLevelChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,jI,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),sf=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();var wp="string",qC="numeric",JC="datetime",QC="discrete",ex="semidiscrete",mv="continuous",tx="logarithmic",gS="valueType",lf="argumentType",fS=ti([wp,qC,JC]),mS=Array.isArray;function vS(n,t,e){var i=t?function(r,m){return r-m}:function(r,m){return m-r};return n.sort(function(r,m){var D=e(r),A=e(m),N=(0,w.$K)(D)?1:0,Q=(0,w.$K)(A)?1:0;return N&&Q?i(D,A):i(N,Q)}),n}function CS(n,t){var e=[];return n.forEach(function(i){var r=t(i);void 0!==r&&e.push(r)}),e}function xS(n){return n}function ix(n,t){var e=t;return t===wp||(0,w.HD)(n)?e=wp:t===JC||(0,w.J_)(n)?e=JC:(0,w.kE)(n)&&(e=qC),e}function rx(n,t,e,i){return n===wp&&(t===mv||t===tx||t===ex)&&i("E2002"),t===tx?tx:e||t===QC||n===wp?QC:t===ex?ex:mv}function ox(n,t,e){var i=n?lp(n):xS,r=t!==QC?function(m){return isFinite(m)||void 0===m?m:null}:xS;return function(m,D){var A=r(i(m));return void 0===A&&function XI(n,t,e){n&&e((0,w.kE)(n)||(0,w.J_)(n)||(0,w.HD)(n)?"E2004":"E2003",[t])}(m,D,e),A}}function ax(n,t){var e,m,i=t.length,r=(0,y.l)({},n);for(e=0;e<i;++e)r[m=t[e][0]]=t[e][1](n[m],m);return r}function wS(n,t){var e=n-t;return isNaN(e)?(0,w.$K)(n)?(0,w.$K)(t)?0:-1:1:e}function iM(n,t){return n.slice().sort(function(e,i){return wS(e[t],i[t])})}function a0(n,t,e,i){n=function dM(n,t){var m,D,A,N,e=[],i=(0,w.$K)(n),r=i&&!mS(n);if(i&&!r)for(m=0,D=n.length,A=0;m<D;++m)(0,w.Kn)(N=n[m])?e[A++]=N:N&&(r=!0);return r&&t("E2001"),e}(n,e),t.argumentType=t.argumentAxisType=null,function _S(n){n.forEach(function(t){t.valueType=t.valueAxisType=null,t.series.forEach(function(e){e.updateDataType({})}),t.valueAxis&&t.valueAxis.resetTypes(gS)})}(t.groups),function yS(n){n&&n.forEach(function(t){t.resetTypes(lf)})}(t.argumentAxes),function lM(n,t,e){var D,i=[],r=[],m=t.argumentOptions&&fS(t.argumentOptions.argumentType);t.groups.forEach(function(A){if(A.series.length){var N=A.valueOptions&&fS(A.valueOptions.valueType);A.valueType=N,t.argumentType=m,!N&&i.push(A),!m&&r.push(A)}}),(i.length||r.length)&&(D=i.map(function(A,N){return N}),n.some(function(A){var N;if(i.forEach(function(Q,se){(function oM(n,t){return n.series.forEach(function(e){e.getValueFields().forEach(function(i){n.valueType=ix(t[i],n.valueType)})}),n.valueType})(Q,A)&&D.indexOf(se)>=0&&D.splice(se,1)}),N||r.forEach(function(Q){N=function OS(n,t,e){return n.forEach(function(i){e.argumentType=ix(t[i.getArgumentField()],e.argumentType)}),e.argumentType}(Q.series,A,t)}),!e&&N&&0===D.length)return!0}))}(n,t,i.checkTypeForAllData),function uM(n,t){var e=n.argumentOptions||{},r=rx(n.argumentType,e.type,!!(e&&e.categories||[]).length,t);n.groups.forEach(function(m){var D=m.valueOptions||{},N=rx(m.valueType,D.type,!!(D.categories||[]).length,t);m.series.forEach(function(Q){var se={};se.argumentAxisType=r,se.valueAxisType=N,n.argumentAxisType=n.argumentAxisType||se.argumentAxisType,m.valueAxisType=m.valueAxisType||se.valueAxisType,se.argumentType=n.argumentType,se.valueType=m.valueType,se.showZero=D.showZero,Q.updateDataType(se)}),m.valueAxisType=m.valueAxisType||N,m.valueAxis&&(m.valueAxis.setTypes(m.valueAxisType,m.valueType,gS),m.valueAxis.validate())}),n.argumentAxisType=n.argumentAxisType||r,n.argumentAxes&&n.argumentAxes.forEach(function(m){m.setTypes(n.argumentAxisType,n.argumentType,lf),m.validate()})}(t,e),i.convertToAxisDataType&&(n=function JI(n,t){var i,e=[],r=n.length;for(e.length=r,i=0;i<r;++i)e[i]=ax(n[i],t);return e}(n,function qI(n,t){var i,r,e=ox(n.argumentType,n.argumentAxisType,t),m=[e],D={},A=[];for(var N in n.groups.forEach(function(Q,se){Q.series.forEach(function(we){r=ox(Q.valueType,Q.valueAxisType,t),i=ox(qC,mv,t),D[we.getArgumentField()]=e,we.getValueFields().forEach(function(Re){m[se+1]=r,D[Re]=r}),we.getSizeField()&&(D[we.getSizeField()]=i)})}),D)A.push([N,D[N]]);return A.length&&function nx(n,t){var e=n.argumentOptions&&n.argumentOptions.categories;n.groups.forEach(function(i,r){var m=i.valueOptions&&i.valueOptions.categories;m&&(i.valueOptions.categories=CS(m,t[r+1]))}),e&&(n.argumentOptions.categories=CS(e,t[0]))}(n,m),A}(t,e))),function eM(n,t){var e=t.groups[0]&&t.groups[0].series[0];e&&("pie"===e.type||"doughnut"===e.type||"donut"===e.type)&&t.groups.forEach(function(r){r.series.forEach(function(m){!function QI(n,t,e,i){var r=(i=i||{}).mode,m={};if(r&&"none"!==r){m[t]=String(i.groupName||"others"),m[e]=0;var D=vS(n.slice(),!1,function(A){return A[e]});(function YI(n,t,e,i){i>=0&&n.slice(i).forEach(function(r){(0,w.$K)(r[e])&&(t[e]+=r[e],r[e]=void 0)})})(D,m,e,"smallValueThreshold"===r?function bS(n,t,e){var i,m,r=n.length;for(i=0;i<r&&!((0,w.$K)(m=n[i][t])&&e>m);++i);return i}(D,e,i.threshold):i.topCount),m[e]&&n.push(m)}}(n,m.getArgumentField(),m.getValueFields()[0],m.getOptions().smallValuesGrouping)})})}(n,t);var r=function SS(n,t,e,i){var Q,r={},m=t.argumentAxisType===QC,D=m&&t.argumentOptions&&t.argumentOptions.categories,A=function(se){return se},N=e.sortingMethod;return!D&&(0,w.mf)(N)&&(n=function rM(n,t){return n.slice().sort(t)}(n,N)),m&&(t.categories=function sM(n,t,e){var i=e?e.slice():[];return t.forEach(function(r){n.forEach(function(m){var D=m[r];(0,w.$K)(D)&&function aM(n,t){return-1===n.map(function(e){return e.valueOf()}).indexOf(t.valueOf())}(i,D)&&i.push(D)})}),i}(n,i,D)),D||!(0,w.mf)(N)&&t.argumentType===wp&&!e._skipArgumentSorting?A=function ES(n){var t={};return n.forEach(function(e,i){t[e]=i}),function(e,i){return vS(e.slice(),!0,function(r){return t[r[i]]})}}(t.categories):!0===N&&t.argumentType!==wp&&(A=iM,Q=m),i.forEach(function(se){r[se]=A(n,se)}),Q&&(t.categories=t.categories.sort(wS)),r}(n,t,i,function nM(n){var t=[],e={};return n.groups.forEach(function(i){i.series.forEach(function(r){!function tM(n,t,e){e[n]||(t.push(n),e[n]=!0)}(r.getArgumentField(),t,e)})}),t}(t));return r}const Zl={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4};var sx=u(8198);function pM(n,t){var e="",i=n.indexOf(":");return i>0&&(e=n.substr(i+1),n=n.substr(0,i)),function ux(n,t){if(t){if(n instanceof Date)return(0,sx.p6)(n,t);if("number"==typeof n)return(0,sx.uf)(n,t)}return n}(t[n],e)}var El=Va.Z.format,_v=Math,sc=_v.round,dx=_v.floor,lc=_v.abs;function TS(n,t){var i,e=1/0;return(0,O.S6)(t,function(r,m){var D=n[0]-m[0],A=n[1]-m[1],N=D*D+A*A;N<e&&(e=N,i=m)}),[dx(i[0]),dx(i[1])]}function cx(n,t,e){return(t-n[0+e])/(n[2+e]-n[0+e])*(n[3-e]-n[1-e])+n[1-e]}var df={isLabelInside:function(n,t){var e=n.x+n.width/2,i=n.y+n.height/2;return t.x<=e&&e<=t.x+t.width&&t.y<=i&&i<=t.y+t.height},prepareLabelPoints:function(n,t,e,i,r){var m=t.x,D=m+t.width/2,A=m+t.width-1,N=t.y,Q=N+t.height/2,se=N+t.height-1,Re=lc(i)%90==0;return r[0]>m&&r[0]<A?Re?[[r[0],lc(r[1]-N)<lc(r[1]-se)?N:se]]:[[r[0],cx([m,N,A,se],r[0],0)]]:r[1]>N&&r[1]<se?Re?[[lc(r[0]-m)<lc(r[0]-A)?m:A,r[1]]]:[[cx([m,N,A,se],r[1],1),r[1]]]:Re?[[m,N],[e?m:D,e?Q:N],[A,N],[m,se],[e?A:D,e?Q:se],[A,se]]:[[D,Q]]},isHorizontal:function(n,t){return n.x>t.x+t.width||n.x+n.width<t.x},getFigureCenter:function(n){return[dx(n.x+n.width/2),dx(n.y+n.height/2)]},findFigurePoint:function(n,t){var e=df.getFigureCenter(n);return TS(t,[[n.x,e[1]],[e[0],n.y+n.height],[n.x+n.width,e[1]],[e[0],n.y]])},adjustPoints:function(n){var t=lc(n[1]-n[3])<=1;return lc(n[0]-n[2])<=1&&(n[0]=n[2]),t&&(n[1]=n[3]),n}},hx={isLabelInside:function(){return!1},prepareLabelPoints:df.prepareLabelPoints,isHorizontal:function(n,t){return n.x>t.x+t.r||n.x+n.width<t.x-t.r},getFigureCenter:function(n){return[n.x,n.y]},findFigurePoint:function(n,t){var e=Math.atan2(n.y-t[1],t[0]-n.x);return[sc(n.x+n.r*Math.cos(e)),sc(n.y-n.r*Math.sin(e))]},adjustPoints:df.adjustPoints},IS={isLabelInside:function(n,t,e){return!e},prepareLabelPoints:function(n,t,e,i){var r=n.x,m=r+n.width,D=r+sc(n.width/2),A=n.y,N=A+n.height,Q=A+sc(n.height/2),se=[[[r,A],[m,A]],[[m,A],[m,N]],[[m,N],[r,N]],[[r,N],[r,A]]],we=Lt(i);return 0===i?e?[[r,Q],[m,Q]]:[[D,A],[D,N]]:se.map(function(Re){return Re.map(function(Ue){return[sc((Ue[0]-D)*we.cos+(Ue[1]-Q)*we.sin+D),sc(-(Ue[0]-D)*we.sin+(Ue[1]-Q)*we.cos+Q)]})}).reduce(function(Re,Ue){var st=Ue[0][0],Ot=Ue[0][1],Kt=Ue[1][0],sn=Ue[1][1];return e?(Ot>=Q&&Q>=sn||Ot<=Q&&Q<=sn)&&Re.push([(Q-Ot)*(Kt-st)/(sn-Ot)+st,Q]):(st>=D&&D>=Kt||st<=D&&D<=Kt)&&Re.push([D,(D-st)*(sn-Ot)/(Kt-st)+Ot]),Re},[])},isHorizontal:function(n,t){return n.x>t.x||t.x>n.x+n.width},getFigureCenter:hx.getFigureCenter,findFigurePoint:function(n,t,e){if(!e)return[n.x,n.y];var i=t[0],r=sc(n.x+(n.y-t[1])/Math.tan(vt(n.angle))),m=[n.x,n.y,r,t[1]];return!(n.x<=r&&r<=i)&&!(i<=r&&r<=n.x)&&(lc(n.x-i)<12?m=[n.x,n.y]:m[2]=n.x<=i?n.x+12:n.x-12),m},adjustPoints:function(n){return n}};function px(n){return void 0!==n.angle&&IS||void 0!==n.r&&hx||df}function s0(n,t){n[t]&&n[t].dispose(),n[t]=null}function gx(n){return n&&(n.fill&&"none"!==n.fill||n["stroke-width"]>0&&n.stroke&&"none"!==n.stroke)}function MS(n){return n&&n["stroke-width"]>0&&n.stroke&&"none"!==n.stroke}function cf(n){this._renderer=n.renderer,this._container=n.labelsGroup,this._point=n.point,this._strategy=n.strategy,this._rowCount=1}cf.prototype={constructor:cf,setColor:function(n){this._color=n},setOptions:function(n){this._options=n},setData:function(n){this._data=n},setDataField:function(n,t){this._data=this._data||{},this._data[n]=t},getData:function(){return this._data},setFigureToDrawConnector:function(n){this._figure=n},dispose:function(){s0(this,"_group"),this._data=this._options=this._textContent=this._visible=this._insideGroup=this._text=this._background=this._connector=this._figure=null},_setVisibility:function(n,t){this._group&&this._group.attr({visibility:n}),this._visible=t},isVisible:function(){return this._visible},hide:function(n){this._holdVisibility=!!n,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(n){var t=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!n,this._show(),t&&this._point.correctLabelPosition(this))},_show:function(){var n=this._renderer,t=this._container,e=this._options||{},i=this._textContent=function gM(n,t){var e=t.format;return n.valueText=El(n.value,e),n.argumentText=El(n.argument,t.argumentFormat),void 0!==n.percent&&(n.percentText=El(n.percent,{type:"percent",precision:e&&e.percentPrecision})),void 0!==n.total&&(n.totalText=El(n.total,e)),void 0!==n.openValue&&(n.openValueText=El(n.openValue,e)),void 0!==n.closeValue&&(n.closeValueText=El(n.closeValue,e)),void 0!==n.lowValue&&(n.lowValueText=El(n.lowValue,e)),void 0!==n.highValue&&(n.highValueText=El(n.highValue,e)),void 0!==n.reductionValue&&(n.reductionValueText=El(n.reductionValue,e)),t.customizeText?t.customizeText.call(n,n):t.displayFormat?function DS(n,t){for(var e=n,i=!0;i;){var r=e.indexOf("{"),m=e.indexOf("}");if(r>=0&&m>0){var A=pM(e.substring(r+1,m),t);e=e.substr(0,r)+A+e.substr(m+1)}else i=!1}return e}(t.displayFormat,n):n.valueText}(this._data,e)||null;i?(this._group||(this._group=n.g().append(t),this._insideGroup=n.g().append(this._group),this._text=n.text("",0,0).append(this._insideGroup)),this._text.css(e.attributes?ci(e.attributes.font):{}),gx(e.background)?(this._background=this._background||n.rect().append(this._insideGroup).toBackground(),this._background.attr(e.background),this._color&&this._background.attr({fill:this._color})):s0(this,"_background"),MS(e.connector)?(this._connector=this._connector||n.path([],"line").sharp().append(this._group).toBackground(),this._connector.attr(e.connector),this._color&&this._connector.attr({stroke:this._color})):s0(this,"_connector"),this._text.attr({text:i,align:e.textAlignment,class:e.cssClass}),this._updateBackground(this._text.getBBox()),this._setVisibility("visible",!0),this._drawn=!0):this._hide()},_getLabelVisibility:function(n){return this._holdVisibility?this.isVisible():n},draw:function(n){return this._getLabelVisibility(n)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(n){this._background&&(n.x-=8,n.y-=4,n.width+=16,n.height+=8,this._background.attr(n)),this._bBoxWithoutRotation=(0,y.l)({},n);var t=this._options.rotationAngle||0;this._insideGroup.rotate(t,n.x+n.width/2,n.y+n.height/2),n=Ji(n,[n.x+n.width/2,n.y+n.height/2],-t),this._bBox=n},getFigureCenter(){var n=this._figure;return(this._strategy||px(n)).getFigureCenter(n)},_getConnectorPoints:function(){var m,A,n=this._figure,t=this._options,e=this._strategy||px(n),i=this._shiftBBox(this._bBoxWithoutRotation),r=this.getBoundingRect(),D=[];if(!e.isLabelInside(i,n,"inside"!==t.position)){A=e.isHorizontal(i,n);var N=this.getFigureCenter();m=TS(N,D=e.prepareLabelPoints(i,r,A,-t.rotationAngle||0,N)),D=(D=e.findFigurePoint(n,m,A)).concat(m)}return e.adjustPoints(D)},fit:function(n){var e=!1;if(this._text){var i=this._text.setMaxSize(n-(this._background?16:0),void 0,this._options),r=i.rowCount;0===r&&(r=1),r!==this._rowCount&&(e=!0,this._rowCount=r),i.textIsEmpty&&s0(this,"_background")}return this._updateBackground(this._text.getBBox()),e},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(n){this._text.data({"chart-data-point":n}),this._background&&this._background.data({"chart-data-point":n})},hideInsideLabel:function(n){return this._point.hideInsideLabel(this,n)},getPoint(){return this._point},shift:function(n,t){return this._textContent&&(this._insideGroup.attr({translateX:this._x=sc(n-this._bBox.x),translateY:this._y=sc(t-this._bBox.y)}),this._connector&&this._connector.attr({points:this._getConnectorPoints()})),this},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(n){return this._textContent?{x:n.x+this._x,y:n.y+this._y,width:n.width,height:n.height}:{}},getLayoutOptions:function(){var n=this._options;return{alignment:n.alignment,background:gx(n.background),horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,position:n.position,connectorOffset:(MS(n.connector)?12:0)+(gx(n.background)?8:0)}}};var AS=(0,mi.Jj)(),fx=y.l,Cv=Math,hf=Cv.round,mx=Cv.floor,PS=Cv.ceil,l0="canvas_position_default";const fs={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var n=this.graphic;n&&n.attr("visibility")&&n.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var n=this.graphic;n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),this._errorBar&&this._errorBar.attr({visibility:"hidden"}),this._label.draw(!1)},clearMarker:function(){var n=this.graphic;n&&n.attr(this._emptySettings)},_createLabel:function(){this._label=new cf({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_calculateVisibility:function(n,t){var{minX:e,maxX:i,minY:r,maxY:m}=this._getVisibleArea();this.inVisibleArea=e<=n&&i>=n&&r<=t&&m>=t},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(n){return(0,w.$K)(n)&&("string"==typeof n||(0,w.$K)(n.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(n,t){var e=n.symbol,i=t.symbol,r="circle"===e&&"circle"!==i||"circle"!==e&&"circle"===i,m=this._checkImage(n.image)!==this._checkImage(t.image);return!(!r&&!m)},_populatePointShape:function(n,t){switch(n){case"square":return function kS(n){return[-n,-n,n,-n,n,n,-n,n,-n,-n]}(t);case"polygon":return function fM(n){var t=PS(n);return[-t,0,0,-t,t,0,0,t,-t,0]}(t);case"triangle":case"triangleDown":return function _M(n){return[-n,-n,n,-n,0,n,-n,-n]}(t);case"triangleUp":return function vM(n){return[-n,n,n,n,0,-n,-n,n]}(t);case"cross":return function mM(n){var t=PS(n),e=mx(t/2),i=PS(t/2);return[-t,-e,-e,-t,0,-i,e,-t,t,-e,i,0,t,e,e,t,0,i,-e,t,-t,e,-i,0]}(t)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(n){var t=this.series.getValueAxis();this.hasValue()&&(this.value=this.properValue=t.validateUnit(this.initialValue.valueOf()+n.valueOf()),this.minValue=t.validateUnit(n))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue=l0},resetValue:function(){this.hasValue()&&(this.value=this.properValue=this.initialValue=0,this.minValue=0,this._label.setDataField("value",this.value))},_getTranslates:function(n){var t=this.x,e=this.y;return n&&(this._options.rotated?t=this.defaultX:e=this.defaultY),{x:t,y:e}},_createImageMarker:function(n,t,e){var i=e.width||20,r=e.height||20;return n.image(-hf(.5*i),-hf(.5*r),i,r,e.url?e.url.toString():e.toString(),"center").attr({translateX:t.translateX,translateY:t.translateY,visibility:t.visibility})},_createSymbolMarker:function(n,t){var e,i=this._options.symbol;return"circle"===i?(delete t.points,e=n.circle().attr(t)):("square"===i||"polygon"===i||"triangle"===i||"triangleDown"===i||"triangleUp"===i||"cross"===i)&&(e=n.path([],"area").attr(t).sharp()),e},_createMarker:function(n,t,e,i){var r=this._checkImage(e)?this._createImageMarker(n,i,e):this._createSymbolMarker(n,i);return r&&r.data({"chart-data-point":this}).append(t),r},_getSymbolBBox:function(n,t,e){return{x:n-e,y:t-e,width:2*e,height:2*e}},_getImageBBox:function(n,t){var e=this._options.image,i=e.width||20,r=e.height||20;return{x:n-hf(i/2),y:t-hf(r/2),width:i,height:r}},_getGraphicBBox:function(){var n=this._options,t=this.x,e=this.y;return n.visible?this._checkImage(n.image)?this._getImageBBox(t,e):this._getSymbolBBox(t,e,n.styles.normal.r):{x:t,y:e,width:0,height:0}},hideInsideLabel:E.ZT,_getShiftLabelCoords:function(n){var t=this._addLabelAlignmentAndOffset(n,this._getLabelCoords(n));return this._checkLabelPosition(n,t)},_drawLabel:function(){var n=this._getCustomLabelVisibility(),t=this._label,e=this._showForZeroValues()&&this.hasValue()&&!1!==n&&(this.series.getLabelVisibility()||n);t.draw(!!e)},correctLabelPosition:function(n){var t=this._getShiftLabelCoords(n);this.hideInsideLabel(n,t)||(n.setFigureToDrawConnector(this._getLabelConnector(n.pointPosition)),n.shift(hf(t.x),hf(t.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(n){var t=this._getGraphicBBox(n),e=t.width/2,i=t.height/2;return{x:t.x+e,y:t.y+i,r:this._options.visible?Math.max(e,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(n,t){return n.minX<=t.x+t.width&&n.maxX>=t.x&&n.minY<=t.y+t.height&&n.maxY>=t.y},_checkLabelPosition:function(n,t){var e=this._getVisibleArea(),i=n.getBoundingRect(),r=this._getGraphicBBox(n.pointPosition),m=this._getGraphicBBox(),D="inside"===n.getLayoutOptions().position;return this._isPointInVisibleArea(e,m)&&(this._options.rotated?(e.minX>t.x&&(t.x=D?e.minX:r.x+r.width+10),e.maxX<t.x+i.width&&(t.x=D?e.maxX-i.width:r.x-10-i.width),e.minY>t.y&&(t.y=e.minY),e.maxY<t.y+i.height&&(t.y=e.maxY-i.height)):(e.minX>t.x&&(t.x=e.minX),e.maxX<t.x+i.width&&(t.x=e.maxX-i.width),e.minY>t.y&&(t.y=D?e.minY:r.y+r.height+10),e.maxY<t.y+i.height&&(t.y=D?e.maxY-i.height:r.y-i.height-10))),t},_addLabelAlignmentAndOffset:function(n,t){var e=n.getBoundingRect(),i=n.getLayoutOptions();return this._options.rotated||("left"===i.alignment?t.x+=e.width/2:"right"===i.alignment&&(t.x-=e.width/2)),t.x+=i.horizontalOffset,t.y+=i.verticalOffset,t},_getLabelCoords:function(n){return this._getLabelCoordOfPosition(n,this._getLabelPosition(n.pointPosition))},_getLabelCoordOfPosition:function(n,t){var e=n.getBoundingRect(),i=this._getGraphicBBox(n.pointPosition),m=i.height/2-e.height/2,D=i.width/2-e.width/2,A=i.x,N=i.y;switch(t){case"left":A-=e.width+10,N+=m;break;case"right":A+=i.width+10,N+=m;break;case"top":A+=D,N-=e.height+10;break;case"bottom":A+=D,N+=i.height+10;break;case"inside":A+=D,N+=m}return{x:A,y:N}},_drawMarker:function(n,t,e){var i=this._options,r=this._getTranslates(e),m=this._getStyle();this.graphic=this._createMarker(n,t,i.image,fx({translateX:r.x,translateY:r.y,points:this._populatePointShape(i.symbol,m.r)},m))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength(){return 2*this.getPointRadius()},_drawErrorBar:function(n,t){if(this._options.errorBars){var m,e=this._options,i=e.errorBars,r=[],D=this._errorBarPos,A=this._highErrorCoord,N=this._lowErrorCoord,Q=En(i.displayMode),se="high"===Q,we="low"===Q,Re=(se||!(0,w.$K)(N))&&(0,w.$K)(A)&&!we,Ue=(we||!(0,w.$K)(A))&&(0,w.$K)(N)&&!se,st=i.edgeLength;st<=1&&st>0&&(st=this._getErrorBarBaseEdgeLength()*i.edgeLength),st=mx(parseInt(st)/2),Re&&(N=this._baseErrorBarPos),Ue&&(A=this._baseErrorBarPos),"none"!==Q&&(0,w.$K)(A)&&(0,w.$K)(N)&&(0,w.$K)(D)?(!Ue&&r.push([D-st,A,D+st,A]),r.push([D,A,D,N]),!Re&&r.push([D+st,N,D-st,N]),e.rotated&&(0,O.S6)(r,function(Ot,Kt){Kt.reverse()}),m=this._getErrorBarSettings(i),this._errorBar?(m.points=r,this._errorBar.attr(m)):this._errorBar=n.path(r,"line").attr(m).append(t)):this._errorBar&&this._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var n=this.graphic;return{x:this.x,y:this.y,offset:n?n.getBBox().height/2:0}},setPercentValue:function(n,t,e,i){var r=this.value/n||0,m=this.minValue/n||0;this._label.setDataField("percent",r-m),this._label.setDataField("total",t),this.series.isFullStackedSeries()&&this.hasValue()&&(this.leftHole&&(this.leftHole/=n-e,this.minLeftHole/=n-e),this.rightHole&&(this.rightHole/=n-i,this.minRightHole/=n-i),this.value=this.properValue=r,this.minValue=m||this.minValue)},_storeTrackerR:function(){var n=AS.navigator,t=this._options.styles.normal.r,e=(0,mi.l$)("ontouchstart")||n.msPointerEnabled&&n.msMaxTouchPoints||n.pointerEnabled&&n.maxTouchPoints?20:6;return this._options.trackerR=t<e?e:t,this._options.trackerR},_translateErrorBars:function(){var n=this._options,t=n.rotated,e=n.errorBars,i=this._getValTranslator();e&&((0,w.$K)(this.lowError)&&(this._lowErrorCoord=i.translate(this.lowError)),(0,w.$K)(this.highError)&&(this._highErrorCoord=i.translate(this.highError)),this._errorBarPos=mx(t?this.vy:this.vx),this._baseErrorBarPos="stdDeviation"===e.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:t?this.vx:this.vy)},_translate:function(){var n=this._getValTranslator(),t=this._getArgTranslator();this._options.rotated?(this.vx=this.x=n.translate(this.value),this.vy=this.y=t.translate(this.argument),this.minX=n.translate(this.minValue),this.defaultX=n.translate(l0)):(this.vy=this.y=n.translate(this.value),this.vx=this.x=t.translate(this.argument),this.minY=n.translate(this.minValue),this.defaultY=n.translate(l0)),this._translateErrorBars(),this._calculateVisibility(this.x,this.y)},_updateData:function(n){this.value=this.properValue=this.initialValue=this.originalValue=n.value,this.minValue=this.initialMinValue=this.originalMinValue=(0,w.$K)(n.minValue)?n.minValue:l0},_getImageSettings:function(n){return{href:n.url||n.toString(),width:n.width||20,height:n.height||20}},getCrosshairData:function(){var n=this._options.rotated,t=this.properValue,e=this.argument;return{x:this.vx,y:this.vy,xValue:n?t:e,yValue:n?e:t,axis:this.series.axis}},getPointRadius:function(){var n=this._getStyle(),t=this._options,e=n.r,r=t.symbol;return t.visible&&!t.image&&e?("square"===r||"triangle"===r||"triangleDown"===r||"triangleUp"===r?1.4*e:e)+n["stroke-width"]/2:0},_updateMarker:function(n,t){var i,e=this._options,r=e.image,m=this.isVisible()?{}:{visibility:"hidden"};i=this._checkImage(r)?fx({},{visibility:t.visibility},m,this._getImageSettings(r)):fx({},t,m,{points:this._populatePointShape(e.symbol,t.r)}),n||(i.translateX=this.x,i.translateY=this.y),this.graphic.attr(i).sharp()},_getLabelFormatObject:function(){return{argument:this.initialArgument,value:this.initialValue,originalArgument:this.originalArgument,originalValue:this.originalValue,seriesName:this.series.name,lowErrorValue:this.lowError,highErrorValue:this.highError,point:this}},_getLabelPosition:function(){var n=this._options.rotated;return this.initialValue>0?n?"right":"top":n?"left":"bottom"},_getFormatObject:function(n){var t=this._label.getData();return fx({},t,{argumentText:n.formatValue(this.initialArgument,"argument"),valueText:n.formatValue(this.initialValue)},(0,w.$K)(t.percent)?{percentText:n.formatValue(t.percent,"percent")}:{},(0,w.$K)(t.total)?{totalText:n.formatValue(t.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(n,t){var e=this._storeTrackerR();return n>=this.x-e&&n<=this.x+e&&t>=this.y-e&&t<=this.y+e},getMinValue:function(n){var t=this._options.errorBars;if(t&&!n){var e=t.displayMode,i="high"!==e&&(0,w.$K)(this.lowError)?this.lowError:this.value,r="low"!==e&&(0,w.$K)(this.highError)?this.highError:this.value;return i<r?i:r}return this.value},getMaxValue:function(n){var t=this._options.errorBars;if(t&&!n){var e=t.displayMode,i="high"!==e&&(0,w.$K)(this.lowError)?this.lowError:this.value,r="low"!==e&&(0,w.$K)(this.highError)?this.highError:this.value;return i>r?i:r}return this.value}};var RS=y.l,LS=Math,u0=LS.floor,BS=LS.abs;function Ex(n){var t=n.initialValue,e=n._getValTranslator().getBusinessRange().invert,i="discrete"===n.series.valueAxisType,r=n.series.isFullStackedSeries();return!i&&(t>=0&&!e||t<0&&e)||i&&!e||r?"top":"bottom"}const d0=RS({},fs,{correctCoordinates(n){var t=u0(n.offset-n.width/2);this._options.rotated?(this.height=n.width,this.yCorrection=t,this.xCorrection=null):(this.width=n.width,this.xCorrection=t,this.yCorrection=null)},_calculateVisibility:function(n,t,e,i){var{minX:r,maxX:m,minY:D,maxY:A}=this._getVisibleArea();this.inVisibleArea=r<n+e&&m>n&&D<t+i&&A>t},_getGraphicBBox:function(n){var t={x:this.x,y:this.y,width:this.width,height:this.height};if(n){var e="top"===n;this._options.rotated?(t.x=e?t.x+t.width:t.x,t.width=0):(t.y=e?t.y:t.y+t.height,t.height=0)}return t},_getLabelConnector:function(n){return this._getGraphicBBox(n)},_getLabelPosition:function(){var n=Ex(this);return this._options.rotated&&(n="top"===n?"right":"left"),n},_getLabelCoords:function(n){return 0===this.initialValue&&this.series.isFullStackedSeries()?this._getLabelCoordOfPosition(n,this._options.rotated?"right":"top"):"inside"===n.getLayoutOptions().position?this._getLabelCoordOfPosition(n,"inside"):fs._getLabelCoords.call(this,n)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&Ex(this),fs._drawLabel.call(this)},hideInsideLabel:function(n,t){var e=this._getGraphicBBox(),i=n.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(t.y<=e.y&&t.y+i.height>=e.y+e.height||t.x<=e.x&&t.x+i.width>=e.x+e.width)||t.y>e.y+e.height||t.y+i.height<e.y||t.x>e.x+e.width||t.x+i.width<e.x||(n.draw(!1),0))},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker(n,t,e){var i=this._getStyle(),r=this._options.cornerRadius,m=this._options.rotated,{x:D,y:A,width:N,height:Q}=this.getMarkerCoords();e&&(m?(N=0,D=this.defaultX):(Q=0,A=this.defaultY)),this.graphic=n.rect(D,A,N,Q).attr({rx:r,ry:r}).smartAttr(i).data({"chart-data-point":this}).append(t)},_getSettingsForTracker:function(){var n=this.y,t=this.height,e=this.x,i=this.width;return this._options.rotated?1===i&&(i=9,e-=4):1===t&&(t=9,n-=4),{x:e,y:n,width:i,height:t}},getGraphicSettings:function(){var n=this.graphic;return{x:n.attr("x"),y:n.attr("y"),height:n.attr("height"),width:n.attr("width")}},_getEdgeTooltipParams(){var t,e,n=this.value>=0,i=this._getValTranslator().getBusinessRange().invert,{x:r,y:m,width:D,height:A}=this;return this._options.rotated?(e=m+A/2,t=i?n?r:r+D:n?r+D:r):(t=r+D/2,e=i?n?m+A:m:n?m:m+A),{x:t,y:e,offset:0}},getTooltipParams:function(n){if("edge"===n)return this._getEdgeTooltipParams();var t=this.getCenterCoord();return t.offset=0,t},getCenterCoord(){var{width:n,height:t,x:e,y:i}=this;return{x:e+n/2,y:i+t/2}},_truncateCoord:function(n,t){return null===n?n:n<t[0]?t[0]:n>t[1]?t[1]:n},_getErrorBarBaseEdgeLength(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(n){fs._translateErrorBars.call(this),(this._errorBarPos<n[0]||this._errorBarPos>n[1])&&(this._errorBarPos=void 0)},_translate:function(){var n=this._options.rotated,t=n?"x":"y",e=n?"y":"x",i=n?"width":"height",r=n?"height":"width",m=this._getArgTranslator(),D=this._getValTranslator(),A=this.series.getArgumentAxis().getVisibleArea(),N=this.series.getValueAxis().getVisibleArea(),Q=m.translate(this.argument),se=D.translate(this.value,1),we=D.translate(this.minValue,-1);this[e]=Q=null===Q?Q:Q+(this[e+"Correction"]||0),this["v"+t]=se,this["v"+e]=Q+this[r]/2,se=this._truncateCoord(se,N),we=this._truncateCoord(we,N),this[i]=BS(se-we),se=se<we?se:we,this._calculateVisibility(n?se:Q,n?Q:se,this.width,this.height),this[t]=null===se?se:se+(this[t+"Correction"]||0),this["min"+t.toUpperCase()]=null===we?we:we+(this[t+"Correction"]||0),this["default"+t.toUpperCase()]=D.translate("canvas_position_default"),this._translateErrorBars(A),this.inVisibleArea&&null!==this[e]&&(this[e]<A[0]&&(this[r]=this[r]-(A[0]-this[e]),this[e]=A[0]),this[e]+this[r]>A[1]&&(this[r]=A[1]-this[e]))},_updateMarker:function(n,t){this.graphic.smartAttr(RS({},t,n?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var n=this.x,t=this.y,e=this.width,i=this.height,r=this.series.getArgumentAxis(),m=this._options.rotated;if(r.getAxisPosition){var D=r.getOptions(),A=Math.round(D.width/2),N=r.getAxisPosition();if(D.visible)if(m){var Q=this.minX===this.defaultX&&this.minX===N-r.getAxisShift();n+=Q?A:0,(e-=Q?A:0)<0&&(e=0)}else(i-=this.minY===this.defaultY&&this.minY===N-r.getAxisShift()?A:0)<0&&(i=0)}return{x:n,y:t,width:e,height:i}},coordsIn:function(n,t){return n>=this.x&&n<=this.x+this.width&&t>=this.y&&t<=this.y+this.height}});var Sx=y.l;const CM=Sx({},fs,{correctCoordinates:function(n){this.bubbleSize=n/2},_drawMarker:function(n,t,e){var i=Sx({translateX:this.x,translateY:this.y},this._getStyle());this.graphic=n.circle(0,0,e?0:this.bubbleSize).smartAttr(i).data({"chart-data-point":this}).append(t)},getTooltipParams:function(n){var t=this.graphic;if(t){var e=t.getBBox().height;return{x:this.x,y:this.y,offset:e<20||"edge"===n?e/2:0}}},_getLabelFormatObject:function(){var n=fs._getLabelFormatObject.call(this);return n.size=this.initialSize,n},_updateData:function(n){fs._updateData.call(this,n),this.size=this.initialSize=n.size},_getGraphicBBox:function(){return this._getSymbolBBox(this.x,this.y,this.bubbleSize)},_updateMarker:function(n,t){n||(t=Sx({r:this.bubbleSize,translateX:this.x,translateY:this.y},t)),this.graphic.smartAttr(t)},_getFormatObject:function(n){var t=fs._getFormatObject.call(this,n);return t.sizeText=n.formatValue(this.initialSize),t},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(n){return"inside"===n.getLayoutOptions().position?this._getLabelCoordOfPosition(n,"inside"):fs._getLabelCoords.call(this,n)}});var pf=y.l,lh=Math.round,Ox=Math.sqrt,Od=Math.acos,xM=180/Math.PI,Dx=Math.abs,c0=Zl.radialLabelIndent;const uh=pf({},fs,{_updateData:function(n,t){fs._updateData.call(this,n),(t||!(0,w.$K)(this._visible))&&(this._visible=!0),this.minValue=this.initialMinValue=this.originalMinValue=(0,w.$K)(n.minValue)?n.minValue:0},animate:function(n,t,e){this.graphic.animate({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},{delay:e,partitionDuration:t},n)},correctPosition:function(n){this.correctRadius(n),this.correctLabelRadius(n.radiusOuter+c0),this.centerX=n.centerX,this.centerY=n.centerY},correctRadius:function(n){this.radiusInner=n.radiusInner,this.radiusOuter=n.radiusOuter},correctLabelRadius:function(n){this.radiusLabels=n},correctValue:function(n,t,e){this.value=(e||this.normalInitialValue)+n,this.minValue=n,this.percent=t,this._label.setDataField("percent",t)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var n=this._label.getBoundingRect(),t=this._getLabelCoords(this._label),e=this._getVisibleArea();return this._isLabelDrawingWithoutPoints?this._checkLabelPosition(t,n,e):this._getLabelExtraCoord(t,this._checkVerticalLabelPosition(t,n,e),n)},_getLabelPosition:function(n){return n.position},getAnnotationCoords:function(n){return this._getElementCoords("edge"!==n?"inside":"outside",this.radiusOuter,0)},_getElementCoords:function(n,t,e){var Q,se,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0,width:0,height:0},r=this,m=Lt(r.middleAngle),D=r.radiusInner,A=r.radiusOuter,N="columns"===n;return"inside"===n?se=r.centerX+(Q=D+(A-D)/2+e)*m.cos-i.width/2:(Q=t+e,se=m.cos>.1||N&&m.cos>=0?r.centerX+Q*m.cos:m.cos<-.1||N&&m.cos<0?r.centerX+Q*m.cos-i.width:r.centerX+Q*m.cos-i.width/2),{x:se,y:lh(r.centerY-Q*m.sin-i.height/2)}},_getLabelCoords:function(n){var t=n.getBoundingRect(),e=n.getLayoutOptions(),i=this._getLabelPosition(e);return this._getElementCoords(i,this.radiusLabels,e.radialOffset,t)},_correctLabelCoord:function(n,t){var e=this._label,r=e.getBoundingRect().width,m=e.getLayoutOptions(),D=this._getVisibleArea(),A=D.maxX-r,N=D.minX,Q=lt(this.middleAngle),se=this.centerX,we=m.connectorOffset,Re=n.x;return"columns"===m.position?n.x=Re=Q<=90||Q>=270?A:N:"inside"!==m.position&&t&&(Q<=90||Q>=270?Re-we<se&&(Re=se+we):Re+r+we>se&&(Re=se-r-we),n.x=Re),n},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(n){var t=this._label.getBoundingRect(),e=this._correctLabelCoord(t,n);e=this._checkHorizontalLabelPosition(e,t,this._getVisibleArea()),this._label.shift(lh(e.x),lh(t.y))},_checkVerticalLabelPosition:function(n,t,e){var r=n.y;return n.y+t.height>e.maxY?r=e.maxY-t.height:n.y<e.minY&&(r=e.minY),{x:n.x,y:r}},_getLabelExtraCoord:function(n,t,e){return n.y!==t.y?Yi({x:n.x,y:n.y,width:e.width,height:e.height},t.y-n.y,{x:this.centerX,y:this.centerY}):n},_checkHorizontalLabelPosition:function(n,t,e){var i=n.x;return n.x+t.width>e.maxX?i=e.maxX-t.width:n.x<e.minX&&(i=e.minX),{x:i,y:n.y}},applyWordWrap:function(n){var t=this._label,e=t.getBoundingRect(),i=this._getVisibleArea(),r=t.getLayoutOptions().position,m=e.width,D=!1;return"columns"===r&&this.series.index>0?m=i.maxX-this.centerX-this.radiusLabels:"inside"===r?m>i.maxX-i.minX&&(m=i.maxX-i.minX):n&&e.x<this.centerX&&e.width+e.x>this.centerX?m=Math.floor((i.maxX-i.minX)/2):e.x+m>i.maxX?m=i.maxX-e.x:e.x<i.minX&&(m=e.x+m-i.minX),m<e.width&&(D=t.fit(m)),D},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(n,t,e){return n=this._checkHorizontalLabelPosition(n,t,e),this._checkVerticalLabelPosition(n,t,e)},_getLabelConnector:function(){var n=this.radiusOuter,t=this._options.styles.normal,e=t["stroke-width"]/2,i=this.series.getOptions().containerBackgroundColor===t.stroke?lh(e):lh(-e),r=Lt(lh(this.middleAngle));return{x:lh(this.centerX+(n-i)*r.cos),y:lh(this.centerY-(n-i)*r.sin),angle:this.middleAngle}},_drawMarker:function(n,t,e,i){var r=this.radiusOuter,m=this.radiusInner,D=this.fromAngle,A=this.toAngle;e&&(m=r=0,i||(D=A=this.shiftedAngle)),this.graphic=n.arc(this.centerX,this.centerY,m,r,A,D).attr({"stroke-linejoin":"round"}).smartAttr(this._getStyle()).data({"chart-data-point":this}).sharp().append(t)},getTooltipParams:function(){var n=Lt(this.middleAngle),t=this.radiusInner,e=this.radiusOuter;return{x:this.centerX+(t+(e-t)/2)*n.cos,y:this.centerY-(t+(e-t)/2)*n.sin,offset:0}},_translate:function(){var n=this.shiftedAngle||0,t=this.value,e=this.minValue,i=this._getValTranslator();this.fromAngle=i.translate(e)+n,this.toAngle=i.translate(t)+n,this.middleAngle=i.translate((t-e)/2+e)+n,this.isVisible()||(this.middleAngle=this.toAngle=this.fromAngle=this.fromAngle||n)},getMarkerVisibility:function(){return!0},_updateMarker:function(n,t,e,i){n||(t=pf({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},t)),this.graphic.smartAttr(t).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){this._visible&&(this._visible=!1,this.hideTooltip(),this._options.visibilityChanged())},show:function(){this._visible||(this._visible=!0,this._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(n){var t=fs._getFormatObject.call(this,n),e=this.percent;return t.percent=e,t.percentText=n.formatValue(e,"percent"),t},getColor:function(){return this._styles.normal.fill},coordsIn:function(n,t){var A,e=n-this.centerX,i=t-this.centerY,r=Ox(e*e+i*i),m=this.fromAngle%360,D=this.toAngle%360;return!(r<this.radiusInner||r>this.radiusOuter||0===r)&&((A=Od(e/r)*xM*(i>0?-1:1))<0&&(A+=360),m===D&&Dx(this.toAngle-this.fromAngle)>1e-4||(m>=D?A<=m&&A>=D:!(A>=m&&A<=D)))}});var Tx=y.l,xv=Math,uc=xv.abs,Sl=xv.min,h0=xv.max,bM=xv.round;const ss=Tx({},fs,{deleteLabel:function(){this._topLabel.dispose(),this._topLabel=null,this._bottomLabel.dispose(),this._bottomLabel=null},hideMarker:function(n){var t=this.graphic,e=t&&t[n+"Marker"],i=this["_"+n+"Label"];e&&"hidden"!==e.attr("visibility")&&e.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var n=this.graphic,t=n&&n.topMarker,e=n&&n.bottomMarker;t&&t.attr("visibility")&&t.attr({visibility:null}),e&&e.attr("visibility")&&e.attr({visibility:null})},clearMarker:function(){var n=this.graphic,t=n&&n.topMarker,e=n&&n.bottomMarker,i=this._emptySettings;t&&t.attr(i),e&&e.attr(i)},_getLabelPosition:function(n){var e="inside"===this._options.label.position;return this._options.rotated?"top"===n^e?"right":"left":"top"===n^e?"top":"bottom"},_getLabelMinFormatObject:function(){return{index:0,argument:this.initialArgument,value:this.initialMinValue,seriesName:this.series.name,originalValue:this.originalMinValue,originalArgument:this.originalArgument,point:this}},_updateLabelData:function(){var n=this._getLabelFormatObject();n.index=1,this._topLabel.setData(n),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var n=this._options.label;(!this._topLabel||!this._bottomLabel)&&this._createLabel(),this._topLabel.setOptions(n),this._bottomLabel.setOptions(n)},_createLabel:function(){var n={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new cf(n),this._bottomLabel=new cf(n)},_getGraphicBBox:function(n){var t=this._options,e=this._getImage(t.image),i=this._checkImage("top"===n?e.top:e.bottom),m=this._getPositionFromLocation(n);return t.visible?i?this._getImageBBox(m.x,m.y):this._getSymbolBBox(m.x,m.y,t.styles.normal.r):{x:m.x,y:m.y,width:0,height:0}},_getPositionFromLocation:function(n){var t,e,i="top"===n;return this._options.rotated?(t=i?h0(this.x,this.minX):Sl(this.x,this.minX),e=this.y):(t=this.x,e=i?Sl(this.y,this.minY):h0(this.y,this.minY)),{x:t,y:e}},_checkOverlay:function(n,t,e){return n<t+e},_getOverlayCorrections:function(n,t){var e=this._options.rotated,i=e?"x":"y",r=e?"width":"height",m=this.series.getValueAxis().getVisibleArea(),D=m[0],A=m[1],N=bM((n[i]+n[r]-t[i])/2),Q=n[i]-N,se=t[i]+N;return Q<D?(Q+=N=D-Q,se+=N):se+t[r]>A&&(Q+=N=A-se-t[r],se+=N),{coord1:Q,coord2:se}},_checkLabelsOverlay:function(n){var t=this._topLabel.getBoundingRect(),e=this._bottomLabel.getBoundingRect(),i={};this._options.rotated?"top"===n?this._checkOverlay(t.x,e.x,e.width)&&(i=this._getOverlayCorrections(e,t),this._topLabel.shift(i.coord2,t.y),this._bottomLabel.shift(i.coord1,e.y)):this._checkOverlay(e.x,t.x,t.width)&&(i=this._getOverlayCorrections(t,e),this._topLabel.shift(i.coord1,t.y),this._bottomLabel.shift(i.coord2,e.y)):"top"===n?this._checkOverlay(e.y,t.y,t.height)&&(i=this._getOverlayCorrections(t,e),this._topLabel.shift(t.x,i.coord1),this._bottomLabel.shift(e.x,i.coord2)):this._checkOverlay(t.y,e.y,e.height)&&(i=this._getOverlayCorrections(e,t),this._topLabel.shift(t.x,i.coord2),this._bottomLabel.shift(e.x,i.coord1))},_drawLabel:function(){var n=[],t=this._options.rotated?this.x>=this.minX:this.y<this.minY,e=this._getCustomLabelVisibility(),i=this._topLabel,r=this._bottomLabel;i.pointPosition=t?"top":"bottom",r.pointPosition=t?"bottom":"top",(this.series.getLabelVisibility()||e)&&this.hasValue()&&!1!==e?(!1!==this.visibleTopMarker&&n.push(i),!1!==this.visibleBottomMarker&&n.push(r),(0,O.S6)(n,function(m,D){D.draw(!0)}),this._checkLabelsOverlay(this._topLabel.pointPosition)):(i.draw(!1),r.draw(!1))},_getImage:function(n){var t={};return(0,w.$K)(n)&&("string"==typeof n?t.top=t.bottom=n:(t.top={url:"string"==typeof n.url?n.url:n.url&&n.url.rangeMaxPoint,width:"number"==typeof n.width?n.width:n.width&&n.width.rangeMaxPoint,height:"number"==typeof n.height?n.height:n.height&&n.height.rangeMaxPoint},t.bottom={url:"string"==typeof n.url?n.url:n.url&&n.url.rangeMinPoint,width:"number"==typeof n.width?n.width:n.width&&n.width.rangeMinPoint,height:"number"==typeof n.height?n.height:n.height&&n.height.rangeMinPoint})),t},_checkSymbol:function(n,t){var e=n.symbol,i=t.symbol,r="circle"===e&&"circle"!==i||"circle"!==e&&"circle"===i,m=this._getImage(n.image),D=this._getImage(t.image),A=this._checkImage(m.top)!==this._checkImage(D.top),N=this._checkImage(m.bottom)!==this._checkImage(D.bottom);return r||A||N},_getSettingsForTwoMarkers:function(n){var t=this._options,e={},i=t.rotated?Sl(this.x,this.minX):this.x,r=t.rotated?this.y:Sl(this.y,this.minY),m=n.r,D=this._populatePointShape(t.symbol,m);return e.top=Tx({translateX:i+this.width,translateY:r,r:m},n),e.bottom=Tx({translateX:i,translateY:r+this.height,r:m},n),D&&(e.top.points=e.bottom.points=D),e},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(n,t,e,i){var r=this.graphic;r[t]?this._updateOneMarker(t,i):r[t]=this._createMarker(n,r,e,i)},_drawMarker:function(n,t,e,i,r){var m=this._getSettingsForTwoMarkers(r||this._getStyle()),D=this._getImage(this._options.image);this._checkImage(D.top)&&(m.top=this._getImageSettings(m.top,D.top)),this._checkImage(D.bottom)&&(m.bottom=this._getImageSettings(m.bottom,D.bottom)),this.graphic=this.graphic||n.g().append(t),this.visibleTopMarker&&this._drawOneMarker(n,"topMarker",D.top,m.top),this.visibleBottomMarker&&this._drawOneMarker(n,"bottomMarker",D.bottom,m.bottom)},_getSettingsForTracker:function(n){var t=this._options.rotated;return{translateX:t?Sl(this.x,this.minX)-n:this.x-n,translateY:t?this.y-n:Sl(this.y,this.minY)-n,width:this.width+2*n,height:this.height+2*n}},isInVisibleArea:function(){var r,m,D,n=this._options.rotated,t=n?this.y:this.x,e=n?h0(this.minX,this.x):h0(this.minY,this.y),i=n?Sl(this.minX,this.x):Sl(this.minY,this.y),A=!0,N=this.series.getArgumentAxis().getVisibleArea(),Q=this.series.getValueAxis().getVisibleArea();return N[1]<t||N[0]>t||Q[0]>i&&Q[0]>e||Q[1]<i&&Q[1]<e?m=D=A=!1:(m=Q[0]<=i&&Q[1]>i,D=Q[0]<e&&Q[1]>=e,n&&(r=m,m=D,D=r)),this.visibleTopMarker=m,this.visibleBottomMarker=D,A},getTooltipParams:function(){var n,t,e=this._options.rotated,i=e?Sl(this.x,this.minX):Sl(this.y,this.minY),r=e?"width":"height",m=this._getVisibleArea(),A=e?m.maxX:m.maxY,N=h0(e?m.minX:m.minY,i),Q=Sl(A,i+this[r]);return e?(t=this.y,n=N+(Q-N)/2):(n=this.x,t=N+(Q-N)/2),{x:n,y:t,offset:0}},_translate:function(){var n=this._options.rotated;fs._translate.call(this),this.height=n?0:uc(this.minY-this.y),this.width=n?uc(this.x-this.minX):0},hasCoords:function(){return fs.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(n){fs._updateData.call(this,n),this.minValue=this.initialMinValue=this.originalMinValue=n.minValue},_getImageSettings:function(n,t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20,translateX:n.translateX,translateY:n.translateY}},getCrosshairData:function(n,t){var i=this.minX,r=this.minY,m=this.vx,D=this.vy,A=this.value,N=this.minValue,Q=this.argument,se={axis:this.series.axis,x:m,y:D,yValue:A,xValue:Q};return this._options.rotated?(se.yValue=Q,uc(m-n)<uc(i-n)?se.xValue=A:(se.x=i,se.xValue=N)):uc(D-t)>=uc(r-t)&&(se.y=r,se.yValue=N),se},_updateOneMarker:function(n,t){this.graphic&&this.graphic[n]&&this.graphic[n].attr(t)},_updateMarker:function(n,t){this._drawMarker(void 0,void 0,!1,!1,t)},_getFormatObject:function(n){var t=this.initialMinValue,e=this.initialValue,i=this.initialArgument,r=n.formatValue(t),m=n.formatValue(e);return{argument:i,argumentText:n.formatValue(i,"argument"),valueText:r+" - "+m,rangeValue1Text:r,rangeValue2Text:m,rangeValue1:t,rangeValue2:e,seriesName:this.series.name,point:this,originalMinValue:this.originalMinValue,originalValue:this.originalValue,originalArgument:this.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:E.ZT,coordsIn:function(n,t){var e=this._storeTrackerR(),i=n>=this.x-e&&n<=this.x+e,r=t>=this.y-e&&t<=this.y+e;return this._options.rotated?r&&(i||n>=this.minX-e&&n<=this.minX+e):i&&(r||t>=this.minY-e&&t<=this.minY+e)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}}),Ix=(0,y.l)({},d0,{deleteLabel:ss.deleteLabel,_getFormatObject:ss._getFormatObject,clearVisibility:function(){var n=this.graphic;n&&n.attr("visibility")&&n.attr({visibility:null})},setInvisibility:function(){var n=this.graphic;n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(n){var e,i,t="edge"===n;return this._options.rotated?(e=t?this.x+this.width:this.x+this.width/2,i=this.y+this.height/2):(e=this.x+this.width/2,i=t?this.y:this.y+this.height/2),{x:e,y:i,offset:0}},_translate:function(){d0._translate.call(this),this._options.rotated?this.width=this.width||1:this.height=this.height||1},hasCoords:ss.hasCoords,_updateData:ss._updateData,_getLabelPosition:ss._getLabelPosition,_getLabelMinFormatObject:ss._getLabelMinFormatObject,_updateLabelData:ss._updateLabelData,_updateLabelOptions:ss._updateLabelOptions,getCrosshairData:ss.getCrosshairData,_createLabel:ss._createLabel,_checkOverlay:ss._checkOverlay,_checkLabelsOverlay:ss._checkLabelsOverlay,_getOverlayCorrections:ss._getOverlayCorrections,_drawLabel:ss._drawLabel,_getLabelCoords:ss._getLabelCoords,getLabel:ss.getLabel,getLabels:ss.getLabels,getBoundingRect:E.ZT,getMinValue:ss.getMinValue,getMaxValue:ss.getMaxValue});var gf=Math,gu=gf.abs,dc=gf.min,ff=gf.max,WS=gf.round;const US=(0,y.l)({},d0,{_calculateVisibility:fs._calculateVisibility,_getContinuousPoints:function(n,t){var e=this.x,i=this._options.rotated?function(Q,se){return[se,Q]}:function(Q,se){return[Q,se]},r=this.width,m=this.highY,D=gu(m-n)<gu(m-t)?n:t,A=D===t?n:t;return A===D?[].concat(i(e,this.highY)).concat(i(e,this.lowY)).concat(i(e,this.closeY)).concat(i(e-r/2,this.closeY)).concat(i(e+r/2,this.closeY)).concat(i(e,this.closeY)):[].concat(i(e,this.highY)).concat(i(e,D)).concat(i(e+r/2,D)).concat(i(e+r/2,A)).concat(i(e,A)).concat(i(e,this.lowY)).concat(i(e,A)).concat(i(e-r/2,A)).concat(i(e-r/2,D)).concat(i(e,D))},_getCrockPoints:function(n){var t=this.x,e=this._options.rotated?function(i,r){return[r,i]}:function(i,r){return[i,r]};return[].concat(e(t,this.highY)).concat(e(t,this.lowY)).concat(e(t,n)).concat(e(t-this.width/2,n)).concat(e(t+this.width/2,n)).concat(e(t,n))},_getPoints:function(){var t=this.closeY,e=this.openY;return null!==t&&null!==e?this._getContinuousPoints(e,t):e===t?[this.x,this.highY,this.x,this.lowY]:this._getCrockPoints(null!==e?e:t)},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(n,t,e){this.graphic=e.path(this._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(n)},_fillStyle:function(){var n=this._options.styles;this._styles=this._isReduction&&this._isPositive?n.reductionPositive:this._isReduction?n.reduction:this._isPositive?n.positive:n},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(n){var t=this._getMinTrackerWidth(),e=n.width;this.width=(e=e<t?t:e>10?10:e)+e%2,this.xCorrection=n.offset},_getMarkerGroup:function(n){return this._isReduction&&this._isPositive?n.reductionPositiveMarkersGroup:this._isReduction?n.reductionMarkersGroup:this._isPositive?n.defaultPositiveMarkersGroup:n.defaultMarkersGroup},_drawMarker:function(n,t){this._drawMarkerInGroup(this._getMarkerGroup(t),this._getStyle(),n)},_getSettingsForTracker:function(){var i,r,m,D,n=this.highY,t=this.lowY,e=this._options.rotated;return n===t&&(n=e?n+2:n-2,t=e?t-2:t+2),e?(i=dc(t,n),r=this.x-this.width/2,m=gu(t-n),D=this.width):(i=this.x-this.width/2,r=dc(t,n),m=this.width,D=gu(t-n)),{x:i,y:r,width:m,height:D}},_getGraphicBBox:function(n){var t=this._options.rotated,e=this.x,i=this.width,r=this.lowY,m=this.highY;if(n){var D=this.series.getValueAxis().getVisibleArea();m=this._truncateCoord(m,D),r=this._truncateCoord(r,D)}var A={x:t?r:e-WS(i/2),y:t?e-WS(i/2):m,width:t?m-r:i,height:t?i:r-m};if(n){var N="top"===n;this._options.rotated?(A.x=N?A.x+A.width:A.x,A.width=0):(A.y=N?A.y:A.y+A.height,A.height=0)}return A},getTooltipParams:function(n){if(this.graphic){var t=dc(this.lowY,this.highY),e=ff(this.lowY,this.highY),i=this._getVisibleArea(),r=this._options.rotated,D=r?i.maxX:i.maxY,A=ff(r?i.minX:i.minY,t),N=dc(D,e),Q=this.getCenterCoord();return"edge"===n&&(Q[r?"x":"y"]=r?N:A),Q.offset=0,Q}},getCenterCoord(){if(this.graphic){var n,t,e=dc(this.lowY,this.highY),i=ff(this.lowY,this.highY),r=this._getVisibleArea(),m=this._options.rotated,A=m?r.maxX:r.maxY,N=ff(m?r.minX:r.minY,e),se=N+(dc(A,i)-N)/2;return m?(t=this.x,n=se):(n=this.x,t=se),{x:n,y:t}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var n=this._options.rotated,t=this._getValTranslator(),e=this._getArgTranslator().translate(this.argument);this.vx=this.vy=this.x=null===e?e:e+(this.xCorrection||0),this.openY=null!==this.openValue?t.translate(this.openValue):null,this.highY=t.translate(this.highValue),this.lowY=t.translate(this.lowValue),this.closeY=null!==this.closeValue?t.translate(this.closeValue):null;var i=dc(this.lowY,this.highY)+gu(this.lowY-this.highY)/2;this._calculateVisibility(n?i:this.x,n?this.x:i)},getCrosshairData:function(n,t){var r,D,e=this._options.rotated,i=e?n:t,m=this.argument,A="low";return gu(this.lowY-i)<gu(this.closeY-i)?r=this.lowY:(r=this.closeY,A="close"),gu(r-i)>=gu(this.openY-i)&&(r=this.openY,A="open"),gu(r-i)>=gu(this.highY-i)&&(r=this.highY,A="high"),(D=e?{y:this.vy,x:r,xValue:this[A+"Value"],yValue:m}:{x:this.vx,y:r,xValue:m,yValue:this[A+"Value"]}).axis=this.series.axis,D},_updateData:function(n){var t=this._label,e=this._options.reduction.color;this.value=this.initialValue=n.reductionValue,this.originalValue=n.value,this.lowValue=this.originalLowValue=n.lowValue,this.highValue=this.originalHighValue=n.highValue,this.openValue=this.originalOpenValue=n.openValue,this.closeValue=this.originalCloseValue=n.closeValue,this._isPositive=n.openValue<n.closeValue,this._isReduction=n.isReduction,this._isReduction&&t.setColor(e)},_updateMarker:function(n,t,e){var i=this.graphic;i.attr({points:this._getPoints()}).smartAttr(t).sharp(),e&&i.append(this._getMarkerGroup(e))},_getLabelFormatObject:function(){return{openValue:this.openValue,highValue:this.highValue,lowValue:this.lowValue,closeValue:this.closeValue,reductionValue:this.initialValue,argument:this.initialArgument,value:this.initialValue,seriesName:this.series.name,originalOpenValue:this.originalOpenValue,originalCloseValue:this.originalCloseValue,originalLowValue:this.originalLowValue,originalHighValue:this.originalHighValue,originalArgument:this.originalArgument,point:this}},_getFormatObject:function(n){var t=n.formatValue(this.highValue),e=n.formatValue(this.openValue),i=n.formatValue(this.closeValue),r=n.formatValue(this.lowValue),D=fs._getFormatObject.call(this,n);return(0,y.l)({},D,{valueText:"h: "+t+(""!==e?" o: "+e:"")+(""!==i?" c: "+i:"")+" l: "+r,highValueText:t,openValueText:e,closeValueText:i,lowValueText:r})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}});var Mx=w.kE;const Ax=(0,y.l)({},US,{_getPoints:function(){var n=this._options.rotated?function(D,A){return[A,D]}:function(D,A){return[D,A]},t=Mx(this.openY),e=Mx(this.closeY),i=this.x,r=this.width,m=[].concat(n(i,this.highY));return t&&(m=m.concat(n(i,this.openY))),t&&(m=m.concat(n(i-r/2,this.openY))),t&&(m=m.concat(n(i,this.openY))),e&&(m=m.concat(n(i,this.closeY))),e&&(m=m.concat(n(i+r/2,this.closeY))),e&&(m=m.concat(n(i,this.closeY))),m.concat(n(i,this.lowY))},_drawMarkerInGroup:function(n,t,e){this.graphic=e.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(t).data({"chart-data-point":this}).sharp().append(n)},_getMinTrackerWidth:function(){var n=2+this._styles.normal["stroke-width"];return n+n%2}});var Px=y.l,p0=Math,ZS=p0.max,kx=Zl.radialLabelIndent,Rx="canvas_position_start",Lx="canvas_position_end",KS="canvas_position_default",Ep=Px({},fs,{_getLabelCoords:uh._getLabelCoords,_getElementCoords:uh._getElementCoords,_moveLabelOnCanvas:function(n,t,e){var i=n.x,r=n.y;return t.minX>i&&(i=t.minX),t.maxX<i+e.width&&(i=t.maxX-e.width),t.minY>r&&(r=t.minY),t.maxY<r+e.height&&(r=t.maxY-e.height),{x:i,y:r}},_getLabelPosition:function(){return"outside"},_getCoords:function(n,t){var e=this.series.getValueAxis(),i=e.getAngles()[0],r=this._getArgTranslator().translate(n),m=this._getValTranslator().translate(t),D=Wi(e.getCenter(),e.getAngles()[0],r,m);return D.angle=r+i-90,D.radius=m,D},_translate(){var n=this.series.getValueAxis().getCenter(),t=this._getCoords(this.argument,this.value),e=this._getValTranslator(),i=e.isInverted()?e.translate(Rx):e.translate(Lx),r=(0,w.$K)(t.radius)&&t.radius>=0?t.radius:null;this.vx=lt(t.angle),this.vy=this.radiusOuter=this.radiusLabels=r,this.radiusLabels+=kx,this.radius=r,this.middleAngle=-t.angle,this.angle=-t.angle,this.x=t.x,this.y=t.y,this.defaultX=this.centerX=n.x,this.defaultY=this.centerY=n.y,this._translateErrorBars(),this.inVisibleArea=this._checkRadiusForVisibleArea(r,i)},_checkRadiusForVisibleArea:(n,t)=>(0,w.$K)(n)&&n<=t,_translateErrorBars:function(){var n=this._options.errorBars,t=this._getValTranslator();n&&((0,w.$K)(this.lowError)&&(this._lowErrorCoord=this.centerY-t.translate(this.lowError)),(0,w.$K)(this.highError)&&(this._highErrorCoord=this.centerY-t.translate(this.highError)),this._errorBarPos=this.centerX,this._baseErrorBarPos="stdDeviation"===n.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:this.centerY-this.radius)},_getTranslates:function(n){return n?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var n=Lt(-this.angle),t=this._getValTranslator().translate(KS);return{x:this.defaultX+t*n.cos,y:this.defaultY+t*n.sin}},_addLabelAlignmentAndOffset:function(n,t){return t},_checkLabelPosition:function(n,t){var e=this._getVisibleArea(),i=this._getGraphicBBox();return this._isPointInVisibleArea(e,i)&&(t=this._moveLabelOnCanvas(t,e,n.getBoundingRect())),t},_getErrorBarSettings:function(n,t){var e=fs._getErrorBarSettings.call(this,n,t);return e.rotate=90-this.angle,e.rotateX=this.centerX,e.rotateY=this.centerY,e},getCoords:function(n){return n?this.getDefaultCoords():{x:this.x,y:this.y}}}),GS=Px({},d0,{_translateErrorBars:Ep._translateErrorBars,_getErrorBarSettings:Ep._getErrorBarSettings,_moveLabelOnCanvas:Ep._moveLabelOnCanvas,_getLabelCoords:uh._getLabelCoords,_getElementCoords:uh._getElementCoords,_getLabelConnector:uh._getLabelConnector,getTooltipParams:uh.getTooltipParams,_getLabelPosition:uh._getLabelPosition,_getCoords:Ep._getCoords,_translate(){var n=this._getValTranslator(),t=n.getBusinessRange(),e=n.isInverted()?n.translate(Rx):n.translate(Lx);this.radiusInner=n.translate(this.minValue),Ep._translate.call(this),null===this.radiusInner?this.radiusInner=this.radius=e:null===this.radius?this.radius=this.value>=t.minVisible?e:0:this.radius>e&&(this.radius=e),this.radiusOuter=this.radiusLabels=ZS(this.radiusInner,this.radius),this.radiusLabels+=kx,this.radiusInner=this.defaultRadius=p0.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-lt(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea(n){return(0,w.$K)(n)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength(){var n=this.getMarkerCoords();return p0.PI*n.outerRadius*p0.abs(n.startAngle-n.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(n,t,e){var i=this._getStyle(),r=this.getMarkerCoords(),m=r.innerRadius,D=r.outerRadius,A=this._getCoords(this.argument,KS),N=r.x,Q=r.y;e&&(m=0,D=0,N=A.x,Q=A.y),this.graphic=n.arc(N,Q,m,D,r.startAngle,r.endAngle).attr(i).data({"chart-data-point":this}).append(t)},_checkLabelPosition:function(n,t){var e=this._getVisibleArea(),i=Lt(this.middleAngle),r=this.centerX+this.defaultRadius*i.cos,m=this.centerY-this.defaultRadius*i.sin;return r>e.minX&&r<e.maxX&&m>e.minY&&m<e.maxY&&(t=this._moveLabelOnCanvas(t,e,n.getBoundingRect())),t},_addLabelAlignmentAndOffset:function(n,t){return t},correctCoordinates:function(n){this.middleAngleCorrection=n.offset,this.interval=n.width},coordsIn:function(n,t){var e=qi(this.series.getValueAxis().getCenter(),n,t),i=this.getMarkerCoords();return e.r>=i.innerRadius&&e.r<=i.outerRadius&&(i.startAngle<i.endAngle?-e.phi>=i.startAngle&&-e.phi<=i.endAngle:-e.phi<=i.startAngle&&-e.phi>=i.endAngle)}}),Ha={},mf=y.l,_f=Zl.states,gl="symbolPoint",jS="polarSymbolPoint",$S="barPoint",Bx="polarBarPoint",wv="piePoint",Sp=_f.selectedMark,Fx=_f.hoverMark,Ev=_f.normalMark,Vx=_f.hover,YS=_f.normal,Sv=_f.selection,XS={chart:{scatter:gl,line:gl,spline:gl,stepline:gl,stackedline:gl,fullstackedline:gl,stackedspline:gl,fullstackedspline:gl,stackedsplinearea:gl,fullstackedsplinearea:gl,area:gl,splinearea:gl,steparea:gl,stackedarea:gl,fullstackedarea:gl,rangearea:"rangeSymbolPoint",bar:$S,stackedbar:$S,fullstackedbar:$S,rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:wv,doughnut:wv,donut:wv},polar:{scatter:jS,line:jS,area:jS,bar:Bx,stackedbar:Bx}};function qS(n){return"none"===En(n)}function g0(n,t,e){this.fullState=Ev,this.series=n,this.update(t,e),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}Ha.symbolPoint=fs,Ha.barPoint=d0,Ha.bubblePoint=CM,Ha.piePoint=uh,Ha.rangeSymbolPoint=ss,Ha.rangeBarPoint=Ix,Ha.candlestickPoint=US,Ha.stockPoint=Ax,Ha.polarSymbolPoint=Ep,Ha.polarBarPoint=GS,g0.prototype={constructor:g0,getColor:function(){return!this.hasValue()&&!this._styles.usePointCustomOptions&&this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(n,t){this.updateOptions(t),this.updateData(n)},updateData:function(n){var t=this.argument!==n.argument;this.argument=this.initialArgument=this.originalArgument=n.argument,this.tag=n.tag,this.index=n.index,this._dataItem=n,this.data=n.data,this.lowError=n.lowError,this.highError=n.highError,this.aggregationInfo=n.aggregationInfo,this._updateData(n,t),!this.hasValue()&&this.setInvisibility(),this._fillStyle(),this._updateLabelData()},deleteMarker:function(){this.graphic&&this.graphic.dispose(),this.graphic=null},draw:function(n,t,e,i){return(this._needDeletingOnDraw||this.series.autoHidePointMarkers&&!this.isSelected())&&(this.deleteMarker(),this._needDeletingOnDraw=!1),this._needClearingOnDraw&&(this.clearMarker(),this._needClearingOnDraw=!1),this._hasGraphic()?this._updateMarker(e,this._getStyle(),t.markers):this.getMarkerVisibility()&&!this.series.autoHidePointMarkers&&this._drawMarker(n,t.markers,e,i),this._drawLabel(),this._drawErrorBar(n,t.errorBars,e),this},_getViewStyle:function(){var n=Ev,t=this.fullState,e=[YS,Vx,Sv,Sv];return this._viewCounters.hover&&(n|=Fx),this._viewCounters.selection&&(n|=Sp),qS(this.getOptions().selectionMode)&&(t&=~Sp),qS(this.getOptions().hoverMode)&&(t&=~Fx),e[n|=t]},applyView:function(n){var t=this._getViewStyle();this._currentStyle=t,!this.graphic&&this.getMarkerVisibility()&&this.series.autoHidePointMarkers&&(t===Sv||t===Vx)&&this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&t!==Sv&&t!==Vx?this.deleteMarker():("normal"===t?this.clearMarker():this.graphic.toForeground(),this._updateMarker(!0,this._styles[t],void 0,n)))},setView:function(n){this._viewCounters[n]++,this.applyView()},resetView:function(n){var t=this._viewCounters;--t[n],t[n]<0&&(t[n]=0),this.applyView()},releaseHoverState:function(){this.graphic&&!this.isSelected()&&this.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(n,t){var e=~t.indexOf("range"),i=~n.indexOf("range");return i&&!e||!i&&e},updateOptions:function(n){if(n){var t=this._options,i=t&&t.type,r=n.type,m=XS[n.widgetType][r];i!==r?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,i&&(this._checkLabelsChanging(i,r)&&this.deleteLabel(),this._resetType(Ha[XS[i]])),this._setType(Ha[m])):(this._needDeletingOnDraw=this._checkSymbol(t,n),this._needClearingOnDraw=this._checkCustomize(t,n)),this._options=n,this._fillStyle(),this._updateLabelOptions(m)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(n,t){return n.styles.usePointCustomOptions&&!t.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(n){for(var t in n)delete this[t]},_setType:function(n){for(var t in n)this[t]=n[t]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&Sp)},isHovered:function(){return!!(this.fullState&Fx)},getOptions:function(){return this._options},animate:function(n,t,e){this.graphic?this.graphic.animate(t,{partitionDuration:e},n):n&&n()},getCoords:function(n){return n?this._options.rotated?{x:this.minX-(this.x-this.minX?0:1),y:this.y}:{x:this.x,y:this.minY+(this.y-this.minY?0:1)}:{x:this.x,y:this.y}},getDefaultCoords:function(){return this._options.rotated?{x:this.defaultX,y:this.y}:{x:this.x,y:this.defaultY}},setDefaultCoords(){var n=this.getDefaultCoords();this.x=n.x,this.y=n.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},isArgumentCorrect(){return this.series._argumentChecker(this.argument)},isValueCorrect(){var n=this.series._valueChecker;return n(this.getMinValue())&&n(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:E.ZT,correctPosition:E.ZT,correctRadius:E.ZT,correctLabelRadius:E.ZT,getCrosshairData:E.ZT,getPointRadius:E.ZT,_populatePointShape:E.ZT,_checkSymbol:E.ZT,getMarkerCoords:E.ZT,hide:E.ZT,show:E.ZT,hideMarker:E.ZT,setInvisibility:E.ZT,clearVisibility:E.ZT,isVisible:E.ZT,resetCorrection:E.ZT,correctValue:E.ZT,resetValue:E.ZT,setPercentValue:E.ZT,correctCoordinates:E.ZT,coordsIn:E.ZT,getTooltipParams:E.ZT,applyWordWrap:E.ZT,setLabelTrackerData:E.ZT,updateLabelCoord:E.ZT,drawLabel:E.ZT,correctLabelPosition:E.ZT,getMinValue:E.ZT,getMaxValue:E.ZT,_drawErrorBar:E.ZT,getMarkerVisibility:E.ZT,dispose:function(){this.deleteMarker(),this.deleteLabel(),this._errorBar&&this._errorBar.dispose(),this._options=this._styles=this.series=this._errorBar=null},getTooltipFormatObject:function(n,t){var e=this._getFormatObject(n),i=[],r=[];t&&(t.forEach(N=>{if(N.isVisible()){var Q=N._getFormatObject(n);r.push(Q),i.push(Q.seriesName+": "+Q.valueText)}}),mf(e,{points:r,valueText:i.join("\n"),stackName:this.series.getStackName()||null}));var m=this.aggregationInfo;if(m){var A=this.series.getArgumentAxis().formatRange(m.intervalStart,m.intervalEnd,m.aggregationInterval,n.getOptions().argumentFormat);A&&(e.valueText+="\n".concat(A))}return e},setHole:function(n,t){var e=isFinite(this.minValue)?this.minValue:0;(0,w.$K)(n)&&("left"===t?(this.leftHole=this.value-n,this.minLeftHole=e-n):(this.rightHole=this.value-n,this.minRightHole=e-n))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord(){return{x:this.x,y:this.y}}};var f0="discrete",{abs:JS,floor:Ov,ceil:Nx,min:SM}=Math;function Hx(n,t,e){n.min=n.min<t?n.min:t,n.max=n.max>e?n.max:e}function QS(n,t){if("logarithmic"!==n)return null;var e=t.getOptions().logarithmBase;return i=>{var r=St(JS(i),e);return(r<0?Ov:Nx)(r)}}function Dv(n,t,e){var i=Hx;return n===f0?i=function(r,m,D){m!==D&&r.categories.push(D),r.categories.push(m)}:t&&(i=function(r,m){var D=t.calculateInterval(m,r.prevValue),A=r.interval;r.interval=(A<D?A:D)||A,r.prevValue=m,Hx(r,m,m)}),e?(r,m,D)=>{var A=[];i(r,m,D),0!==m&&A.push(e(m)),0!==D&&A.push(e(D));var N=SM.apply(null,A);r.linearThreshold=r.linearThreshold<N?r.linearThreshold:N}:i}function cc(n,t,e){var i={axisType:n,dataType:t};return n===f0?i.categories=[]:(i.min=(0,w.Kn)(e)?e.min:e,i.max=(0,w.Kn)(e)?e.max:e),i}function zx(n){return n.categories&&(n.categories=Si(n.categories)),n}function Wx(n,t,e,i,r){var m=function eO(n,t,e,i){if(t&&(0,w.$K)(t.value)){var r=n.value,D=n.argument,N=(e-D)*(t.value-r)/(t.argument-D)+r.valueOf();return"datetime"===i.dataType?new Date(N):N}return n.value}(e,i,r,t);n(t,m,m)}function OM(n){return n.type.toLowerCase().indexOf("line")>=0||n.type.toLowerCase().indexOf("area")>=0}function tO(n){var t=Dv(n.valueAxisType),e=n.getArgumentAxis(),i=e&&n.getArgumentAxis().visualRange()||{},r=OM(n)?Wx:E.ZT;if(e&&e.getMarginOptions().checkInterval){var m=n.getArgumentAxis().getTranslator().getBusinessRange(),D=Gr(m,!1),A=m.interval;isFinite(A)&&(0,w.$K)(i.startValue)&&(0,w.$K)(i.endValue)&&(i.startValue=D(i.startValue,A,-1),i.endValue=D(i.endValue,A))}var N=Ux(i);return function(Q,se,we,Re){var Ue=se.argument;return se.hasValue()&&(N(Ue)?(Q.startCalc||(Q.startCalc=!0,r(t,Q,se,Re[we-1],i.startValue)),t(Q,se.getMinValue(),se.getMaxValue())):!i.categories&&(0,w.$K)(i.startValue)&&Ue>i.startValue&&(Q.startCalc||r(t,Q,se,Re[we-1],i.startValue),Q.endCalc=!0,r(t,Q,se,Re[we-1],i.endValue))),Q}}function Ux(n){if(n.categories){var t=n.categories.reduce((e,i)=>(e[i.valueOf()]=!0,e),{});return e=>(0,w.$K)(e)&&t[e.valueOf()]}return(0,w.$K)(n.startValue)||(0,w.$K)(n.endValue)?(0,w.$K)(n.endValue)?(0,w.$K)(n.startValue)?e=>e>=n.startValue&&e<=n.endValue:e=>e<=n.endValue:e=>e>=n.startValue:()=>!0}const dh={getViewPortFilter:Ux,getArgumentRange:function(n){var t=n._data||[],e={};if(t.length)if(n.argumentAxisType===f0)e={categories:t.map(D=>D.argument)};else{var i;if(t.length>1){var r=n.getArgumentAxis().calculateInterval(t[0].argument,t[1].argument),m=n.getArgumentAxis().calculateInterval(t[t.length-1].argument,t[t.length-2].argument);i=SM(r,m)}e={min:t[0].argument,max:t[t.length-1].argument,interval:i}}return zx(e)},getRangeData:function(n){var t=n.getPoints(),e=n.useAggregation(),i=n.getArgumentAxis(),r=Dv(n.argumentAxisType,t.length>1&&i,QS(n.argumentAxisType,i)),m=Dv(n.valueAxisType,null,QS(n.valueAxisType,n.getValueAxis())),D=tO(n),A=t.reduce(function(se,we,Re,Ue){var st=we.argument;return we.isArgumentCorrect()&&(r(se.arg,st,st),we.hasValue()&&(m(se.val,we.getMinValue(),we.getMaxValue()),D(se.viewport,we,Re,Ue))),se},{arg:cc(n.argumentAxisType,n.argumentType,null!=i&&i.aggregatedPointBetweenTicks()?void 0:n.getArgumentRangeInitialValue()),val:cc(n.valueAxisType,n.valueType,t.length?n.getValueRangeInitialValue():void 0),viewport:cc(n.valueAxisType,n.valueType,t.length?n.getValueRangeInitialValue():void 0)});if(e){var N=this.getArgumentRange(n);if(n.argumentAxisType===f0)A.arg=N;else{var Q=i.getViewport();((0,w.$K)(Q.startValue)||(0,w.$K)(Q.length))&&r(A.arg,N.min,N.min),((0,w.$K)(Q.endValue)||(0,w.$K)(Q.length)&&(0,w.$K)(Q.startValue))&&r(A.arg,N.max,N.max)}}return zx(A.arg),zx(A.val),A},getViewport:function(n){var e,t=n.getPoints(),i=tO(n);return e=cc(n.valueAxisType,n.valueType,t.length?n.getValueRangeInitialValue():void 0),t.some(function(r,m){return i(e,r,m,t),e.endCalc}),e},getPointsInViewPort:function(n){var t=Ux(n.getArgumentAxis().visualRange()||{}),e=n.getValueAxis().visualRange()||{},i=Ux(e),r=n.getPoints(),m=function(A,N,Q){var se=N.getMinValue(),we=N.getMaxValue(),Re=i(se),Ue=i(we);Re&&A.push(se),we!==se&&Ue&&A.push(we),Q&&!Re&&!Ue&&A.push(A.length?e.endValue:e.startValue)},D=OM(n)?function(A,N,Q){var se=N[Q],we=N[Q-1],Re=N[Q+1];Re&&t(Re.argument)&&m(A[1],se,!0),we&&t(we.argument)&&m(A[1],se,!0)}:E.ZT;return r.reduce(function(A,N,Q){return t(N.argument)?m(A[0],N):D(A,r,Q),A},[[],[]])}};var _0,Zx=Math,nO=Zx.abs,Kx=Zx.sqrt,iO=Zx.max,m0="highError",Tv="lowError",oO="variance",Gx="stddeviation",aO="stderror",jx="percent",$x="fixed",ms={};function Yx(n){var t=0;return(0,O.S6)(n,function(e,i){t+=i}),t}function uO(n,t){return Yx(Vn(n,function(e){return(e-t)*(e-t)}))/n.length}function MM(n){return(t,e)=>{var{intervalStart:i,intervalEnd:r,data:m}=t,D=e.getValueFields()[0],A=m[0];return A=m.reduce((N,Q)=>{var se=Q[D];return null===N[D]&&(N=Q),null!==se&&n(se,N[D])?Q:N},A),(0,y.l)({},A,{[e.getArgumentField()]:e._getIntervalCenter(i,r)})}}var AM={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:E.ZT,_updateOptions:E.ZT,_parseStyle:E.ZT,_prepareSegment:E.ZT,_drawSegment:E.ZT,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(n,t){return{fill:n.color||t,hatching:n.hatching?(0,y.l)({},n.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(n){n["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(n){n["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(n,t,e,i){var r=t[n]=t[n]||this._renderer.g();e&&r.append(e),i&&r.attr(i)},_applyClearingSettings:function(n){n.opacity=null,n.scale=null,this._options.rotated?n.translateX=null:n.translateY=null},_createGroups:function(){this._createGroup("_markersGroup",this,this._group),this._createGroup("_labelsGroup",this)},_setMarkerGroupSettings:function(){var n=this._createPointStyles(this._getMarkerGroupOptions()).normal;n.class="dxc-markers",n.opacity=1,this._applyMarkerClipRect(n),this._markersGroup.attr(n)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var n=this._options.valueErrorBar;return n&&this._errorBarsEnabled()&&"none"!==n.displayMode&&(function T2(n){return[$x,jx,oO,Gx,aO].includes(n)}(En(n.type))||(0,w.$K)(n.lowValueField)||(0,w.$K)(n.highValueField))},groupPointsByCoords(n){var t=[];return(0,O.S6)(this.getVisiblePoints(),function(e,i){var r=parseInt(n?i.vy:i.vx);t[r]?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}),t},_createErrorBarGroup:function(n){var t=this._options.valueErrorBar;this.areErrorBarsVisible()&&this._createGroup("_errorBarGroup",this,this._group,{class:"dxc-error-bars",stroke:t.color,"stroke-width":t.lineWidth,opacity:n?.001:t.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":this._forceClipping?this._paneClipRectID:this._widePaneClipRectID})},_setGroupsSettings:function(n){this._setMarkerGroupSettings(),this._setLabelGroupSettings(n),this._createErrorBarGroup(n)},_getCreatingPointOptions:function(){var n,e,t=this._predefinedPointOptions;return t||(n=this._getPointOptions(),this._predefinedPointOptions=t=(0,y.l)(!0,{styles:{}},n),e=n.styles&&n.styles.normal||{},t.styles=t.styles||{},t.styles.normal={"stroke-width":e["stroke-width"],r:e.r,opacity:e.opacity}),t},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(n,t,e,i){var r=n.border||{},m=void 0!==n.size?n.size:i;return{fill:n.color||t,stroke:r.color||e,"stroke-width":r.visible?r.width:0,r:m/2+(r.visible&&0!==m&&~~(r.width/2)||0)}},_createPointStyles:function(n){var t=n.color||this._options.mainSeriesColor,e=this._options.containerBackgroundColor,i=this._parsePointStyle(n,t,t);return i.visibility=n.visible?"visible":"hidden",{normal:i,hover:this._parsePointStyle(n.hoverStyle,e,t,n.size),selection:this._parsePointStyle(n.selectionStyle,e,t,n.size)}},_checkData:function(n,t,e){return(e=e||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function A2(n,t,e){var i=!0;for(var r in t){var m="argument"===r;if(m||"size"===r?!(0,w.$K)(n[r]):void 0===n[r]){var D=t[r];m||(e[D]=(e[D]||0)+1),i=!1}}return i}(n,e,t||{})&&n.value==n.value},getArgumentRangeInitialValue(){var t,e,n=this.getPoints();if(this.useAggregation()&&n.length)return{min:null===(t=n[0].aggregationInfo)||void 0===t?void 0:t.intervalStart,max:null===(e=n[n.length-1].aggregationInfo)||void 0===e?void 0:e.intervalEnd}},getValueRangeInitialValue:function(){},_getRangeData:function(){return dh.getRangeData(this)},_getPointDataSelector:function(){var r,m,n=this.getValueFields()[0],t=this.getArgumentField(),e=this.getTagField(),i=this.areErrorBarsVisible();if(i){var D=this._options.valueErrorBar;r=D.lowValueField||Tv,m=D.highValueField||m0}return A=>{var N={value:this._processEmptyValue(A[n]),argument:A[t],tag:A[e],data:A};return i&&(N.lowError=A[r],N.highError=A[m]),N}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(n){var t=n.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,n.groups,n.hasAnimation,n.firstDrawing),this._drawnPoints.push(t)):t.setInvisibility()},_animateComplete:function(){var n={duration:this._defaultDuration};this._labelsGroup&&this._labelsGroup.animate({opacity:1},n),this._errorBarGroup&&this._errorBarGroup.animate({opacity:this._options.valueErrorBar.opacity||1},n)},_animate:function(){var n=this,t=n._drawnPoints.length-1;(0,O.S6)(n._drawnPoints||[],function(e,i){i.animate(e===t?function(){n._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})})},_getIntervalCenter(n,t){var e=this.getArgumentAxis(),i=e.getOptions();return e.aggregatedPointBetweenTicks()?n:"discrete"!==i.type?e.getVisualRangeCenter({minVisible:n,maxVisible:t},!0):n},_defaultAggregator:"avg",_aggregators:{avg(n,t){var{data:e,intervalStart:i,intervalEnd:r}=n;if(e.length){var m=t.getValueFields()[0],D=e.reduce((A,N)=>{var Q=N[m];return(0,w.$K)(Q)?(A[0]+=Q,A[1]++):null===Q&&A[2]++,A},[0,0,0]);return function I2(n,t,e){var i=e.getOptions().valueErrorBar,r=e.getValueFields()[0],m=i.lowValueField||Tv,D=i.highValueField||m0;if(e.areErrorBarsVisible()&&void 0===i.type){var A=t.reduce(function(N,Q){return(0,w.$K)(Q[m])&&(N[0]+=Q[r]-Q[m],N[1]++),(0,w.$K)(Q[D])&&(N[2]+=Q[D]-Q[r],N[3]++),N},[0,0,0,0]);A[1]&&(n[m]=n[r]-A[0]/A[1]),A[2]&&(n[D]=n[r]+A[2]/A[3])}return n}({[m]:D[2]===e.length?null:D[0]/D[1],[t.getArgumentField()]:t._getIntervalCenter(i,r)},e,t)}},sum(n,t){var{intervalStart:e,intervalEnd:i,data:r}=n;if(r.length){var m=t.getValueFields()[0],D=r.reduce((N,Q)=>{var se=Q[m];return void 0!==se&&(N[0]+=se),null===se?N[1]++:void 0===se&&N[2]++,N},[0,0,0]),A=D[0];if(D[1]===r.length&&(A=null),D[2]!==r.length)return function M2(n,t,e){var i=e.getOptions().valueErrorBar,r=i.lowValueField||Tv,m=i.highValueField||m0;return e.areErrorBarsVisible()&&void 0===i.type&&(n[r]=0,n[m]=0,n=t.reduce(function(D,A){return D[r]+=A[r],D[m]+=A[m],D},n)),n}({[m]:A,[t.getArgumentField()]:t._getIntervalCenter(e,i)},r,t)}},count(n,t){var{data:e,intervalStart:i,intervalEnd:r}=n,m=t.getValueFields()[0];return{[t.getArgumentField()]:t._getIntervalCenter(i,r),[m]:e.filter(D=>void 0!==D[m]).length}},min:MM((n,t)=>n<t),max:MM((n,t)=>n>t)},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var i,r,n=this._options,t=n.valueErrorBar,e=[n.valueField||"val"];return t&&(r=t.highValueField,(0,w.HD)(i=t.lowValueField)&&e.push(i),(0,w.HD)(r)&&e.push(r)),e},_calculateErrorBars:function(n){if(this.areErrorBarsVisible()){var D,Q,se,we,Re,e=this._options.valueErrorBar,i=En(e.type),r=parseFloat(e.value),m=this.getValueFields()[0],A=e.lowValueField||Tv,N=e.highValueField||m0,Ue=function(st,Ot){Ot.lowError=(D=Ot.value)-r,Ot.highError=D+r};switch(i){case $x:Re=Ue;break;case jx:Re=function(st,Ot){var Kt=(D=Ot.value)*r/100;Ot.lowError=D-Kt,Ot.highError=D+Kt};break;case"undefined":Re=function(st,Ot){Ot.lowError=Ot.data[A],Ot.highError=Ot.data[N]};break;default:switch(se=(Q=Vn(n,function(st){return(0,w.$K)(st.data[m])?st.data[m]:null})).length,r=r||1,i){case oO:r=uO(Q,Yx(Q)/se)*r,Re=Ue;break;case Gx:we=Yx(Q)/se,r=Kx(uO(Q,we))*r,Re=function(st,Ot){Ot.lowError=we-r,Ot.highError=we+r};break;case aO:r=Kx(uO(Q,Yx(Q)/se)/se)*r,Re=Ue}}Re&&(0,O.S6)(n,Re)}},_patchMarginOptions:function(n){var t=this._getCreatingPointOptions(),e=t.styles,i=[e.normal,e.hover,e.selection].reduce(function(r,m){return iO(r,2*m.r+m["stroke-width"])},0);return n.size=t.visible?i:0,n.sizePointNormalState=t.visible?2*e.normal.r+e.normal["stroke-width"]:2,n},usePointsToDefineAutoHiding:()=>!0};ms=(0,y.l)({},AM,{drawTrackers:function(){var t,e,n=this,i=n._segments||[],r=n._options.rotated;n.isVisible()&&(i.length&&(t=n._trackers=n._trackers||[],e=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),(0,O.S6)(i,function(m,D){t[m]?n._updateTrackerElement(D,t[m]):t[m]=n._drawTrackerElement(D).data({"chart-data-series":n}).append(e)})),n._trackersTranslator=n.groupPointsByCoords(r))},_checkAxisVisibleAreaCoord(n,t){var i=(n?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return(0,w.$K)(t)&&i[0]<=t&&i[1]>=t},checkSeriesViewportCoord(n,t){return this.getPoints().length&&this.isVisible()},getSeriesPairCoord(n,t){for(var e=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",m=i?"vx":"vy",D=this.getVisiblePoints(),A=0;A<D.length;A++){var N=D[A],Q=N[r]===n?N[m]:void 0;if(this._checkAxisVisibleAreaCoord(!t,Q)){e=Q;break}}return e},_getNearestPoints:(n,t)=>[n,t],_getBezierPoints:()=>[],_getNearestPointsByCoord(n,t){var e=this,i=e.getOptions().rotated,m=!t&&!i||t&&i?"vy":"vx",D=e.getPoints(),A=e._getBezierPoints(),N=[];return D.length>1?D.forEach((Q,se)=>{var we=D[se+1];we&&(Q[m]<=n&&we[m]>=n||Q[m]>=n&&we[m]<=n)&&N.push(e._getNearestPoints(Q,we,A))}):N.push([D[0],D[0]]),N},getNeighborPoint:function(n,t){var D,e=this._options.rotated?t:n,i=e,r=this._trackersTranslator,m=null,A=this._options.rotated?n:t,N=this._options.rotated?"vx":"vy";if(this.isVisible()&&r){m=r[e];do{m=r[i]||r[e],e--,i++}while((e>=0||i<r.length)&&!m);Array.isArray(m)&&(D=nO(m[0][N]-A),(0,O.S6)(m,function(Q,se){var we=nO(se[N]-A);D>=we&&(D=we,m=se)}))}return m},_applyVisibleArea:function(){var n=this._options.rotated,t=(n?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),e=(n?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();this._visibleArea={minX:t[0],maxX:t[1],minY:e[0],maxY:e[1]}},getPointCenterByArg(n){var t=this.getPointsByArg(n)[0];return t?t.getCenterCoord():void 0}}),_0=(0,y.l)({},AM,{drawTrackers:function(){ms.drawTrackers.call(this);var t,n=this._trackersTranslator;this.isVisible()&&((0,O.S6)(n,function(e,i){if(i)return t=e,!1}),n[t+360]=n[t])},getNeighborPoint:function(n,t){var e=qi(this.getValueAxis().getCenter(),n,t);return ms.getNeighborPoint.call(this,e.phi,e.r)},_applyVisibleArea:function(){var n=this.getValueAxis().getCanvas();this._visibleArea={minX:n.left,maxX:n.width-n.right,minY:n.top,maxY:n.height-n.bottom}},getSeriesPairCoord(n,t){for(var e=null,i=t?"argument":"radius",r=this.getVisiblePoints(),m=0;m<r.length;m++){var D=r[m],A=(0,w.$K)(D[i])&&(0,w.$K)(n[i])&&D[i].valueOf()===n[i].valueOf()?{x:D.x,y:D.y}:void 0;if((0,w.$K)(A)){e=A;break}}return e}});var Op="discrete",{round:PM,sqrt:Iv,pow:ch,min:Xx,max:qx,abs:P2}=Math,ls={},v0={};function vf(n,t,e,i){var r=(0,Se.d9)(n);return r.x=t,r.y=e,r.angle=i,r}function Mv(n,t,e,i,r){var m=n.angle+r,D=Lt(m);return vf(t,e.x+(n.radius+i*r)*D.cos,e.y-(n.radius+i*r)*D.sin,m)}var kM={autoHidePointMarkersEnabled:()=>!0,_applyGroupSettings:function(n,t,e){t=(0,y.l)(t,n),this._applyElementsClipRect(t),e.attr(t)},_setGroupsSettings:function(n){var t=this._styles.normal;this._applyGroupSettings(t.elements,{class:"dxc-elements"},this._elementsGroup),this._bordersGroup&&this._applyGroupSettings(t.border,{class:"dxc-borders"},this._bordersGroup),ms._setGroupsSettings.call(this,n),n&&this._markersGroup&&this._markersGroup.attr({opacity:.001})},_createGroups:function(){this._createGroup("_elementsGroup",this,this._group),this._areBordersVisible()&&this._createGroup("_bordersGroup",this,this._group),ms._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(n){return{line:Vn(n.line||[],function(t){return t.getDefaultCoords()})}},_prepareSegment:function(n){return{line:n}},_parseLineOptions:function(n,t){return{stroke:n.color||t,"stroke-width":n.width,dashStyle:n.dashStyle||"solid"}},_parseStyle:function(n,t){return{elements:this._parseLineOptions(n,t)}},_applyStyle:function(n){this._elementsGroup&&this._elementsGroup.attr(n.elements),(0,O.S6)(this._graphics||[],function(t,e){e.line&&e.line.attr({"stroke-width":n.elements["stroke-width"]}).sharp()})},_drawElement:function(n,t){return{line:this._createMainElement(n.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(t)}},_removeElement:function(n){n.line.remove()},_updateElement:function(n,t,e,i){var r={points:t.line},m=n.line;e?m.animate(r,{},i):m.attr(r)},_animateComplete:function(){ms._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var n=this,t=n._graphics.length-1;(0,O.S6)(n._graphics||[],function(e,i){var r;e===t&&(r=function(){n._animateComplete()}),n._updateElement(i,n._segments[e],!0,r)})},_drawPoint:function(n){ms._drawPoint.call(this,{point:n.point,groups:n.groups})},_createMainElement:function(n,t){return this._renderer.path(n,"line").attr(t)},_sortPoints:function(n,t){return n.sort(t?function(e,i){return i.y-e.y}:function(e,i){return e.x-i.x})},_drawSegment:function(n,t,e,i){var m=this._prepareSegment(n,this._options.rotated,i);this._segments.push(m),this._graphics[e]?t||this._updateElement(this._graphics[e],m):this._graphics[e]=this._drawElement(t?this._getDefaultSegment(m):m,this._elementsGroup)},_getTrackerSettings:function(){var n=this._defaultTrackerWidth,t=this._styles.normal.elements["stroke-width"];return{"stroke-width":t>n?t:n,fill:"none"}},_getMainPointsFromSegment:function(n){return n.line},_drawTrackerElement:function(n){return this._createMainElement(this._getMainPointsFromSegment(n),this._getTrackerSettings(n))},_updateTrackerElement:function(n,t){var e=this._getTrackerSettings(n);e.points=this._getMainPointsFromSegment(n),t.attr(e)},checkSeriesViewportCoord(n,t){if(!ms.checkSeriesViewportCoord.call(this))return!1;var e=n.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=n.getTranslator().translate(e.categories?e.categories[0]:e.min),r=n.getTranslator().translate(e.categories?e.categories[e.categories.length-1]:e.max),m=this.getOptions().rotated,D=n.getOptions().inverted;return n.isArgumentAxis&&(!m&&!D||m&&D)||!n.isArgumentAxis&&(m&&!D||!m&&D)?t>=i&&t<=r:t>=r&&t<=i}},y0=ls.line=(0,y.l)({},ms,kM,{getPointCenterByArg(n){var t=this.getArgumentAxis().getTranslator().translate(n);return{x:t,y:t}},getSeriesPairCoord(n,t){for(var e=null,i=this._getNearestPointsByCoord(n,t),r=t&&!this._options.rotated||!t&&this._options.rotated,m=0;m<i.length;m++){var Q,D=i[m],A=(D[1].vy-D[0].vy)/(D[1].vx-D[0].vx),N=D[0].vy-D[0].vx*A;if(this._checkAxisVisibleAreaCoord(!t,Q=D[1].vx-D[0].vx==0?r?D[0].vy:D[0].vx:r?A*n+N:(n-N)/A)){e=Q;break}}return e}});ls.stepline=(0,y.l)({},y0,{_calculateStepLinePoints(n){var t=[],e=this._options.rotated?"x":"y";return(0,O.S6)(n,function(i,r){var m;if(i){var D=t[t.length-1][e];D!==r[e]&&((m=(0,Se.d9)(r))[e]=D,t.push(m)),t.push(r)}else t.push(r)}),t},_prepareSegment:function(n){return y0._prepareSegment(this._calculateStepLinePoints(n))},getSeriesPairCoord(n,t){for(var e,i=this._options.rotated,r=!t&&!i||t&&i,m=r?"vy":"vx",D=r?"vx":"vy",A=this._getNearestPointsByCoord(n,t),N=0;N<A.length;N++){var se,Q=A[N];if(this._checkAxisVisibleAreaCoord(!t,se=t?n!==Q[1][m]?Q[0][D]:Q[1][D]:n===Q[0][m]?Q[0][D]:Q[1][D])){e=se;break}}return e}}),ls.spline=(0,y.l)({},y0,{_calculateBezierPoints:function(n,t){var e=[],i=n,r=function(m,D,A){return m>D&&A>m||m<D&&A<m?m:A};return 1!==i.length?i.forEach(function(m,D){var A,N,Q,se,Ue,st,Ot,Kt,sn,wn,rn,un,we=i[D-1],Re=i[D+1];if(D&&D!==i.length-1){var In=m.x,Kn=m.y;if(Ue=we.x,st=Re.x,Ot=we.y,Kt=Re.y,!t&&(Kn<=we.y&&Kn<=Re.y||Kn>=we.y&&Kn>=Re.y)||t&&(In<=we.x&&In<=Re.x||In>=we.x&&In>=Re.x))t?(Q=A=In,se=(Kn+Re.y)/2,N=(Kn+we.y)/2):(se=N=Kn,Q=(In+Re.x)/2,A=(In+we.x)/2);else{if(sn=Kt-Ot,wn=Ue-st,rn=Ot*st-Ue*Kt,t){if(!sn)return void e.push(m,m,m);Ue-=un=-1*(wn*Kn+rn)/sn-In,st-=un}else{if(!wn)return void e.push(m,m,m);Ot-=un=-1*(sn*In+rn)/wn-Kn,Kt-=un}Q=(In+.5*st)/1.5,se=(Kn+.5*Kt)/1.5,A=(In+.5*Ue)/1.5,N=(Kn+.5*Ot)/1.5}t?(A=r(we.x,In,A),Q=r(Re.x,In,Q)):(N=r(we.y,Kn,N),se=r(Re.y,Kn,se));var ai=vf(m,A,N),gi=vf(m,Q,se);e.push(ai,m,gi)}else e.push(m,m)}):e.push(i[0]),e},_prepareSegment:function(n,t){return y0._prepareSegment(this._calculateBezierPoints(n,t))},_createMainElement:function(n,t){return this._renderer.path(n,"bezier").attr(t)},getSeriesPairCoord(n,t){for(var e=null,i=!t&&!this._options.rotated||t&&this._options.rotated,r=i?"vy":"vx",m=i?"y":"x",D=i?"vx":"vy",A=i?"x":"y",Q=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),se=this._getNearestPointsByCoord(n,t),we=function(st){var Ot=se[st];if(1===Ot.length)Q[0]<=Ot[0][D]&&Q[1]>=Ot[0][D]&&(e=Ot[0][D]);else{var Kt=function k2(n,t,e,i,r){return(0,re.LO)(r-3*i+3*e-t,3*i-6*e+3*t,3*e-3*t,t-n)}(n,Ot[0][r],Ot[1][m],Ot[2][m],Ot[3][r]);Kt.forEach(sn=>{if(sn>=0&&sn<=1){var wn=Math.pow(1-sn,3)*Ot[0][D]+3*Math.pow(1-sn,2)*sn*Ot[1][A]+3*(1-sn)*sn*sn*Ot[2][A]+sn*sn*sn*Ot[3][D];Q[0]<=wn&&Q[1]>=wn&&(e=wn)}})}if(null!==e)return"break"},Re=0;Re<se.length&&"break"!==we(Re);Re++);return e},_getNearestPoints(n,t,e){var i=e.indexOf(n);return[n,e[i+1],e[i+2],t]},_getBezierPoints(){return this._segments.length>0?this._segments.reduce((n,t)=>n.concat(t.line),[]):[]}}),v0.line=(0,y.l)({},_0,kM,{_sortPoints:function(n){return n},_prepareSegment:function(n,t,e){var m,i=[],r=this.getValueAxis().getCenter();if(e&&this._closeSegment(n),this.argumentAxisType===Op||this.valueAxisType===Op)return y0._prepareSegment.call(this,n);for(m=1;m<n.length;m++)i=i.concat(this._getTangentPoints(n[m],n[m-1],r,m===n.length-1));return i.length||(i=n),{line:i}},_getRemainingAngle:function(n){var t=lt(n);return n>=0?360-t:-t},_closeSegment(n){var t;t=this._segments.length?this._segments[0].line[0]:vf(n[0],n[0].x,n[0].y,n[0].angle),(t=this._modifyReflectedPoint(t,n[n.length-1]))&&n.push(t)},_modifyReflectedPoint(n,t){if(t.angle!==n.angle)return n.angle=lt(PM(t.angle))===lt(PM(n.angle))?t.angle:t.angle+this._getRemainingAngle(t.angle-n.angle),n},_getTangentPoints:function(n,t,e,i){var A,r=[],m=Math.round(t.angle-n.angle),D=(t.radius-n.radius)/m;if(0===m)r=[t,n];else if(m>0)for(A=i?m:m-1;A>=0;A--)r.push(Mv(n,t,e,D,A));else{var Q=i?m:m+1;for(A=0;A>=Q;A--)r.push(Mv(n,t,e,D,m-A))}return r},getSeriesPairCoord(n,t){var A,e=this.getArgumentAxis(),i=t?"angle":"radius",r=n[i],m=e.getCenter(),D=(ri,Fi,Gi)=>{var _r,$r,{x:or,y:fr}=Gi;return Iv(ch((_r={x:or,y:fr}).x-($r=m).x,2)+ch(_r.y-$r.y,2))<=e.getRadius()&&Xx(ri.x,Fi.x)<=or&&qx(ri.x,Fi.x)>=or&&Xx(ri.y,Fi.y)<=fr&&qx(ri.y,Fi.y)>=fr},N=this.getNeighborPoints(r,i);if(1===N.length)A=N[0];else if(N.length>1){var we,Re,Q=N[0],se=N[1];if(this.argumentAxisType!==Op&&this.valueAxisType!==Op)t?(we=(Q.radius-se.radius)/(Q.angle-se.angle),Re=r-se.angle):Re=(r-se.radius)/(we=(Q.radius-se.radius)/(Q.angle-se.angle)),A=Mv(se,Q,m,we,Re);else if(t){var Ue=Lt(-r),st=(se.y-Q.y)/(se.x-Q.x),Ot=Q.y-Q.x*st,Kt=Ue.sin/Ue.cos,wn=(m.y-Kt*m.x-Ot)/(st-Kt),rn=st*wn+Ot;if(D(Q,se,{x:wn,y:rn})){var Ft=P2((0,re.RF)((360+r)/90)%4);(0===Ft&&wn>=m.x&&rn<=m.y||1===Ft&&wn<=m.x&&rn<=m.y||2===Ft&&wn<=m.x&&rn>=m.y||3===Ft&&wn>=m.x&&rn>=m.y)&&(A={x:wn,y:rn})}}else{var qt=(se.y-Q.y)/(se.x-Q.x),un=Q.y-Q.x*qt,In=1+qt*qt,Kn=-2*m.x+2*qt*un-2*qt*m.y,ai=Kn*Kn-4*In*(-ch(r,2)+ch(un-m.y,2)+ch(m.x,2));if(ai>=0){var gi=(-Kn-Iv(ai))/(2*In),Ci=(-Kn+Iv(ai))/(2*In),Ki=qt*gi+un,Bi=qt*Ci+un;A=D(Q,se,{x:gi,y:Ki})?{x:gi,y:Ki}:D(Q,se,{x:Ci,y:Bi})?{x:Ci,y:Bi}:void 0}}}return A},getNeighborPoints(n,t){var e=this.getPoints(),i=[];if(this.getOptions().closed){var r=(e=(0,y.l)(!0,[],e))[e.length-1],m=vf(e[0],e[0].x,e[0].y,e[0].angle),D=vf(r,r.x,r.y,r.angle),A=this._modifyReflectedPoint(m,r),N=this._modifyReflectedPoint(D,e[0]);N&&e.unshift(N),A&&e.push(A)}for(var Q=1;Q<e.length&&(e[Q-1][t]===n?i.push(e[Q-1]):e[Q][t]===n?i.push(e[Q]):(e[Q][t]>n&&e[Q-1][t]<n||e[Q-1][t]>n&&e[Q][t]<n)&&(i.push(e[Q-1]),i.push(e[Q])),!(i.length>0));Q++);return i}});var Av=ls.line,C0=v0.line,Pv=y.l,R2=ls.spline._calculateBezierPoints,fu={},RM={},dO={_createBorderElement:Av._createMainElement,_createLegendState:function(n,t){return{fill:n.color||t,opacity:n.opacity,hatching:n.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:ms.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(n){var t=Av._getDefaultSegment(n);return t.area=t.line.concat(t.line.slice().reverse()),t},_updateElement:function(n,t,e,i){var r={points:t.line},m={points:t.area},D=n.line;e?(D&&D.animate(r),n.area.animate(m,{},i)):(D&&D.attr(r),n.area.attr(m))},_removeElement:function(n){n.line&&n.line.remove(),n.area.remove()},_drawElement:function(n){return{line:this._bordersGroup&&this._createBorderElement(n.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(n.area).append(this._elementsGroup)}},_applyStyle:function(n){this._elementsGroup&&this._elementsGroup.smartAttr(n.elements),this._bordersGroup&&this._bordersGroup.attr(n.border),(this._graphics||[]).forEach(function(t){t.line&&t.line.attr({"stroke-width":n.border["stroke-width"]}).sharp()})},_parseStyle:function(n,t,e){var i=n.border||{},r=Av._parseLineOptions(i,e);return r.stroke=i.visible&&r["stroke-width"]?r.stroke:"none",r["stroke-width"]=r["stroke-width"]||1,{border:r,elements:{stroke:"none",fill:n.color||t,hatching:n.hatching,opacity:n.opacity}}},_areBordersVisible:function(){var n=this._options;return n.border.visible||n.hoverStyle.border.visible||n.selectionStyle.border.visible},_createMainElement:function(n,t){return this._renderer.path(n,"area").attr(t)},_getTrackerSettings:function(n){return{"stroke-width":n.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(n){return n.area}},hh=fu.area=Pv({},Av,dO,{_prepareSegment(n,t){var e=this._processSinglePointsAreaSegment(n,t),i=function LM(n){return Vn(n,function(t){return t.getCoords()}).concat(Vn(n.slice().reverse(),function(t){return t.getCoords(!0)}))}(e),r=this.getArgumentAxis();if(r.getAxisPosition){var m=r.getAxisPosition(),D=r.getOptions(),A=(t?1:-1)*Math.round(D.width/2);D.visible&&i.forEach((N,Q)=>{if(N){var se=1===n.length?0:Q<n.length?Q:i.length-1-Q;t&&N.x===n[se].defaultX&&N.x===m-r.getAxisShift()&&(N.x+=A),!t&&N.y===n[se].defaultY&&N.y===m-r.getAxisShift()&&(N.y+=A)}})}return{line:e,area:i,singlePointSegment:e!==n}},_processSinglePointsAreaSegment:function(n,t){if(n&&1===n.length){var e=n[0],i=(0,Se.d9)(e);return i[t?"y":"x"]+=1,i.argument=null,[e,i]}return n}});RM.area=Pv({},C0,dO,{_prepareSegment:function(n,t,e){return e&&C0._closeSegment.call(this,n),hh._prepareSegment.call(this,n)},_processSinglePointsAreaSegment:function(n){return v0.line._prepareSegment.call(this,n).line}}),fu.steparea=Pv({},hh,{_prepareSegment:function(n,t){var e=ls.stepline;return n=hh._processSinglePointsAreaSegment(n,t),hh._prepareSegment.call(this,e._calculateStepLinePoints.call(this,n),t)},getSeriesPairCoord:ls.stepline.getSeriesPairCoord}),fu.splinearea=Pv({},hh,{_areaPointsToSplineAreaPoints:function(n){var t=n[n.length/2-1],e=n[n.length/2];n.splice(n.length/2,0,{x:t.x,y:t.y},{x:e.x,y:e.y})},_prepareSegment:function(n,t){var e=hh._processSinglePointsAreaSegment(n,t),i=hh._prepareSegment.call(this,R2(e,t));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=e!==n,i},_getDefaultSegment:function(n){var t=hh._getDefaultSegment(n);return this._areaPointsToSplineAreaPoints(t.area),t},_createMainElement:function(n,t){return this._renderer.path(n,"bezierarea").attr(t)},_createBorderElement:ls.spline._createMainElement,getSeriesPairCoord:ls.spline.getSeriesPairCoord,_getNearestPoints:ls.spline._getNearestPoints,_getBezierPoints:ls.spline._getBezierPoints,obtainCubicBezierTCoef:ls.spline.obtainCubicBezierTCoef});var BM=fu.area,ph=ms,cO=_0,kv=y.l,L2=O.S6,el={},Rv={},x0={_createLegendState:function(n,t){return{fill:n.color||t,hatching:n.hatching}},_parsePointStyle:function(n,t,e){var i=n.color||t,r=ph._parsePointStyle.call(this,n,i,e);return r.fill=i,r.hatching=n.hatching,r.dashStyle=n.border&&n.border.dashStyle||"solid",delete r.r,r},_applyMarkerClipRect:function(n){n["clip-path"]=null},_setGroupsSettings:function(n,t){var e=this,i={};ph._setGroupsSettings.apply(e,arguments),n&&t?i=this._getAffineCoordOptions():n||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),e._markersGroup.attr(i)},_drawPoint:function(n){n.hasAnimation=n.hasAnimation&&!n.firstDrawing,n.firstDrawing=!1,ph._drawPoint.call(this,n)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(n){var t=n.color||this._getMainColor();return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle||{},t,t),selection:this._parsePointStyle(n.selectionStyle||{},t,t)}},_updatePointsVisibility:function(){var n=this._options.visible;(0,O.S6)(this._points,function(t,e){e._options.visible=n})},_getOptionsForPoint:function(){return this._options},_animate:function(n){var t=this;t._animatePoints(n,function(){t._animateComplete()},function(e,i){var r=e.length-1;L2(e||[],function(m,D){D.animate(m===r?i:void 0,D.getMarkerCoords())})})},getValueRangeInitialValue:BM.getValueRangeInitialValue,_patchMarginOptions:function(n){var t;return n.checkInterval=!this.useAggregation()||(null===(t=this.getArgumentAxis())||void 0===t?void 0:t.aggregatedPointBetweenTicks()),n},_defaultAggregator:"sum",_defineDrawingState(){},usePointsToDefineAutoHiding:()=>!1};el.bar=kv({},ph,x0,{_getAffineCoordOptions:function(){var n=this._options.rotated,e={scaleX:n?.001:1,scaleY:n?1:.001};return e["translate"+(n?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),e},_animatePoints:function(n,t,e){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,t),n||e(this._drawnPoints,t)},checkSeriesViewportCoord(n,t){if(!ph.checkSeriesViewportCoord.call(this))return!1;if(n.isArgumentAxis)return!0;var e=n.getTranslator(),i=this.getViewport(),r=e.translate(i.categories?i.categories[0]:i.min),m=e.translate(i.categories?i.categories[i.categories.length-1]:i.max),D=this.getOptions().rotated,A=n.getOptions().inverted;return D&&!A||!D&&A?t>=r&&t<=m:t>=m&&t<=r},getSeriesPairCoord(n,t){for(var e=null,{rotated:i}=this._options,r=!t&&!i||t&&i,m=r?"vy":"vx",D=r?"vx":"vy",A=this.getPoints(),N=0;N<A.length;N++){var se,Q=A[N];if(se=t?Q.getCenterCoord()[m[1]]===n?Q[D]:void 0:Q[m]===n?Q[D]:void 0,this._checkAxisVisibleAreaCoord(!t,se)){e=se;break}}return e}}),Rv.bar=kv({},cO,x0,{_animatePoints:function(n,t,e){e(this._drawnPoints,t)},_setGroupsSettings:ph._setGroupsSettings,_drawPoint:function(n,t,e){ph._drawPoint.call(this,n,t,e)},_parsePointStyle:function(n){var t=x0._parsePointStyle.apply(this,arguments);return t.opacity=n.opacity,t},_createGroups:ph._createGroups,_setMarkerGroupSettings:function(){var n=this._createPointStyles(this._getMarkerGroupOptions()).normal;n.class="dxc-markers",this._applyMarkerClipRect(n);var t=kv({},n);delete t.opacity,this._markersGroup.attr(t)},getSeriesPairCoord(n,t){for(var e=null,i=t?"argument":"radius",r=this.getVisiblePoints(),m=this.getArgumentAxis(),D=m.getAngles()[0],A=0;A<r.length;A++){var N=r[A],Q=(0,w.$K)(N[i])&&(0,w.$K)(n[i])&&N[i].valueOf()===n[i].valueOf()?Wi(m.getCenter(),D,-m.getTranslatedAngle(N.angle),N.radius):void 0;if((0,w.$K)(Q)){e=Q;break}}return e},_createLegendState:BM._createLegendState});var hO=y.l,al=fu.area,Jx={},Lv={areErrorBarsVisible:E.ZT,_createErrorBarGroup:E.ZT,_checkData:function(n,t){var e=this.getValueFields();return ms._checkData.call(this,n,t,{minValue:e[0],value:e[1]})&&n.minValue==n.minValue},getValueRangeInitialValue:ms.getValueRangeInitialValue,_getPointDataSelector:function(n){var t=this.getValueFields(),e=t[0],i=t[1],r=this.getTagField(),m=this.getArgumentField();return D=>({tag:D[r],minValue:this._processEmptyValue(D[e]),value:this._processEmptyValue(D[i]),argument:D[m],data:D})},_defaultAggregator:"range",_aggregators:{range(n,t){var{intervalStart:e,intervalEnd:i,data:r}=n;if(r.length){var m=t.getValueFields(),D=m[0],A=m[1],N=r.reduce((Q,se)=>{var we=se[D],Re=se[A];return!(0,w.$K)(we)||!(0,w.$K)(Re)||(Q[D]=Math.min(Q[D],Math.min(we,Re)),Q[A]=Math.max(Q[A],Math.max(we,Re))),Q},{[D]:1/0,[A]:-1/0,[t.getArgumentField()]:t._getIntervalCenter(e,i)});if(!isFinite(N[D])||!isFinite(N[A])){if(r.filter(Q=>null===Q[D]&&null===Q[A]).length!==r.length)return;N[D]=N[A]=null}return N}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord(n,t){for(var e=null,{rotated:i}=this._options,r=!t&&!i||t&&i,m=r?"vy":"vx",D=i?"minX":"minY",A=r?"vx":"vy",N=this.getPoints(),Q=0;Q<N.length;Q++){var se=N[Q],we=void 0;if(t)we=se.getCenterCoord()[m[1]]===n?se[A]:void 0;else{var Re=[Math.min(se[m],se[D]),Math.max(se[m],se[D])];we=n>=Re[0]&&n<=Re[1]?se[A]:void 0}if(this._checkAxisVisibleAreaCoord(!t,we)){e=we;break}}return e}};Jx.rangebar=hO({},el.bar,Lv),Jx.rangearea=hO({},al,{_drawPoint:function(n){var t=n.point;t.isInVisibleArea()?(t.clearVisibility(),t.draw(this._renderer,n.groups),this._drawnPoints.push(t),t.visibleTopMarker||t.hideMarker("top"),t.visibleBottomMarker||t.hideMarker("bottom")):t.setInvisibility()},_prepareSegment:function(n,t){var e=this._processSinglePointsAreaSegment(n,t),i=Vn(e,function(r){return r.getCoords(!0)});return{line:e,bottomLine:i,area:Vn(e,function(r){return r.getCoords()}).concat(i.slice().reverse()),singlePointSegment:e!==n}},_getDefaultSegment:function(n){var t=al._getDefaultSegment.call(this,n);return t.bottomLine=t.line,t},_removeElement:function(n){al._removeElement.call(this,n),n.bottomLine&&n.bottomLine.remove()},_drawElement:function(n,t){var e=al._drawElement.call(this,n,t);return e.bottomLine=this._bordersGroup&&this._createBorderElement(n.bottomLine,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),e},_applyStyle:function(n){var t=this._elementsGroup,e=this._bordersGroup;t&&t.smartAttr(n.elements),e&&e.attr(n.border),(this._graphics||[]).forEach(function(i){i.line&&i.line.attr({"stroke-width":n.border["stroke-width"]}),i.bottomLine&&i.bottomLine.attr({"stroke-width":n.border["stroke-width"]})})},_updateElement:function(n,t,e,i){var r={points:t.bottomLine},m=n.bottomLine;al._updateElement.apply(this,arguments),m&&(e?m.animate(r):m.attr(r))}},Lv);var yf=el.bar,Qx=Rv.bar,NM=O.S6,Bv=E.ZT,eb={};eb.bubble=(0,y.l)({},ms,{_calculateErrorBars:Bv,_getMainColor:yf._getMainColor,_createPointStyles:yf._createPointStyles,_updatePointsVisibility:yf._updatePointsVisibility,_getOptionsForPoint:yf._getOptionsForPoint,_applyMarkerClipRect:ls.line._applyElementsClipRect,_parsePointStyle:Qx._parsePointStyle,_createLegendState:fu.area._createLegendState,_setMarkerGroupSettings:Qx._setMarkerGroupSettings,areErrorBarsVisible:Bv,_createErrorBarGroup:Bv,_checkData:function(n,t){return ms._checkData.call(this,n,t,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(n,t){var e=this.getSizeField(),i=ms._getPointDataSelector.call(this);return r=>{var m=i(r);return m.size=r[e],m}},_aggregators:{avg(n,t){var{data:e,intervalStart:i,intervalEnd:r}=n;if(e.length){var m=t.getValueFields()[0],D=t.getSizeField(),A=e.reduce((N,Q)=>(N[0]+=Q[m],N[1]+=Q[D],N[2]++,N),[0,0,0]);return{[m]:A[0]/A[2],[D]:A[1]/A[2],[t.getArgumentField()]:t._getIntervalCenter(i,r)}}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var n=this,t=n._drawnPoints.length-1,e=n._labelsGroup,i=function(){e&&e.animate({opacity:1},{duration:n._defaultDuration})};NM(n._drawnPoints||[],function(r,m){m.animate(r===t?i:void 0,{r:m.bubbleSize,translateX:m.x,translateY:m.y})})},_patchMarginOptions:function(n){return n.processBubbleSize=!0,n}});var tb=ms,nb=el.bar,b0=O.S6,mu=E.ZT,ib=Vn,rb=isFinite,hc=Math.max,ob=(0,y.l)({},nb,{_setGroupsSettings:function(){tb._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:mu,_drawPoint:function(n){var t=n.point,e=this._legendCallback;tb._drawPoint.call(this,n),!t.isVisible()&&t.setInvisibility(),t.isSelected()&&e()},_getOldPoint:function(n,t,e){var i=(this._points||[])[e];return i&&(t[i.argument.valueOf()]=t[i.argument.valueOf()].filter(r=>r!==i)),i},adjustLabels:function(n){return(this._points||[]).reduce((t,e)=>{if(e._label.isVisible())return e.setLabelTrackerData(),t=e.applyWordWrap(n)||t,e.updateLabelCoord(n),t},!1)},_applyElementsClipRect:mu,getColor:mu,areErrorBarsVisible:mu,drawLabelsWOPoints:function(){return"inside"!==this._options.label.position&&(this._labelsGroup.append(this._extGroups.labelsGroup),(this._points||[]).forEach(function(n){n.drawLabel()}),!0)},getPointsCount:function(){return this._data.filter(n=>this._checkData(n)).length},setMaxPointsCount:function(n){this._pointsCount=n},_getCreatingPointOptions:function(n,t){return this._getPointOptions(n,t)},_updateOptions:function(n){this.labelSpace=0,this.innerRadius="pie"===this.type?0:n.innerRadius},_checkData:function(n,t){var e=nb._checkData.call(this,n,t,{value:this.getValueFields()[0]});return this._options.paintNullPoints?e:e&&null!==n.value},_createGroups:tb._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor(n,t){var e=this.getPointsByArg(n.argument),i=t?e.indexOf(t):e.length;return this._options.mainSeriesColor(n.argument,i,this._pointsCount)},_getPointOptions:function(n){return this._parsePointOptions(this._preparePointOptions(),this._options.label,n)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(n,t,e){var i=n.color||this._getMainColor(t,e);return{normal:this._parsePointStyle(n,i,i),hover:this._parsePointStyle(n.hoverStyle,i,i),selection:this._parsePointStyle(n.selectionStyle,i,i),legendStyles:{normal:this._createLegendState(n,i),hover:this._createLegendState(n.hoverStyle,i),selection:this._createLegendState(n.selectionStyle,i)}}},_getArrangeMinShownValue:function(n,t){var e=this._options.minSegmentSize,i=0,r=0;return t=t||n.length,b0(n,function(m,D){D.isVisible()&&(D.normalInitialValue<e*t/360?i+=e:r+=D.normalInitialValue)}),i<360?e*r/(360-i):0},_applyArrangeCorrection:function(n,t,e){var i=this._options,r="anticlockwise"!==i.segmentsDirection,m=rb(i.startAngle)?lt(i.startAngle):0,D=i.minSegmentSize,N=0,Q=0;0===e&&(e=n.filter(function(se){return se.isVisible()}).length,Q=1),b0(r?n:n.concat([]).reverse(),function(se,we){var Ue,Re=we.isVisible()?Q||we.normalInitialValue:0;D&&we.isVisible()&&Re<t&&(Ue=t),we.correctValue(N,Re/e,Q+(Ue||0)),we.shiftedAngle=m,N+=Ue||Re}),this._rangeData={val:{min:0,max:N}}},_removePoint:function(n){var t=this.getPointsByArg(n.argument);t.splice(t.indexOf(n),1),n.dispose()},arrangePoints:function(){for(var i,n=this,t=n._points||[],e=n._options.minSegmentSize,r=!0,m=0,D=t.length;m<D&&r;)r=t[m].value<=0,m++;var A=n._points=ib(t,function(se){return null===se.value||!r&&se.value<0?(n._removePoint(se),null):se}),N=A.reduce(function(se,we){return hc(se,Math.abs(we.initialValue))},0);A.forEach(function(se){se.normalInitialValue=se.initialValue/(0!==N?N:1)});var Q=A.reduce(function(se,we){return se+(we.isVisible()?we.normalInitialValue:0)},0);e&&(i=this._getArrangeMinShownValue(A,Q)),n._applyArrangeCorrection(A,i,Q)},correctPosition:function(n,t){b0(this._points,function(e,i){i.correctPosition(n)}),this.setVisibleArea(t)},correctRadius:function(n){this._points.forEach(function(t){t.correctRadius(n)})},correctLabelRadius:function(n){this._points.forEach(function(t){t.correctLabelRadius(n)})},setVisibleArea:function(n){this._visibleArea={minX:n.left,maxX:n.width-n.right,minY:n.top,maxY:n.height-n.bottom}},_applyVisibleArea:mu,_animate:function(n){var t=this,e=t._points,i=e&&e.length,r=function(){t._animateComplete()};e.forEach(n?function(D,A){D.animate(A===i-1?r:void 0,.7,(1-.7)*A/(i-1))}:function(D,A){D.animate(A===i-1?r:void 0)})},getVisiblePoints:function(){return ib(this._points,function(n){return n.isVisible()?n:null})},getPointsByKeys:function(n,t){var e=this.getPointsByArg(n);return e[t]&&[e[t]]||[]}}),zM=ob,WM=ob,fO=el.bar,mO=(0,y.l)({},ms,{_animate:E.ZT,_applyMarkerClipRect:function(n){n["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:fO._updatePointsVisibility,_getOptionsForPoint:fO._getOptionsForPoint,_createErrorBarGroup:E.ZT,areErrorBarsVisible:E.ZT,_createGroups:ms._createGroups,_setMarkerGroupSettings:function(){var n=this._markersGroup,t=this._createPointStyles(this._getMarkerGroupOptions()),e=(0,y.l)(t.normal,{class:"default-markers"}),i=(0,y.l)(t.positive.normal,{class:"default-positive-markers"}),r=(0,y.l)(t.reduction.normal,{class:"reduction-markers"}),m=(0,y.l)(t.reductionPositive.normal,{class:"reduction-positive-markers"}),D={class:"dxc-markers"};this._applyMarkerClipRect(D),n.attr(D),this._createGroup("defaultMarkersGroup",n,n,e),this._createGroup("reductionMarkersGroup",n,n,r),this._createGroup("defaultPositiveMarkersGroup",n,n,i),this._createGroup("reductionPositiveMarkersGroup",n,n,m)},_setGroupsSettings:function(){ms._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var n,t=this._predefinedPointOptions;return t||(n=this._getPointOptions(),this._predefinedPointOptions=t=(0,y.l)(!0,{styles:{}},n),t.styles.normal=t.styles.positive.normal=t.styles.reduction.normal=t.styles.reductionPositive.normal={"stroke-width":n.styles&&n.styles.normal&&n.styles.normal["stroke-width"]}),t},_checkData:function(n,t){var e=this.getValueFields();return ms._checkData.call(this,n,t,{openValue:e[0],highValue:e[1],lowValue:e[2],closeValue:e[3]})&&n.highValue==n.highValue&&n.lowValue==n.lowValue},_getPointDataSelector:function(n,t){var i,se,e=this,r=e.getValueFields(),m=e.getArgumentField(),D=r[0],A=r[1],N=r[2],Q=r[3];switch(e.level=e._options.reduction.level,En(e.level)){case"open":i=D;break;case"high":i=A;break;case"low":i=N;break;default:i=Q,e.level="close"}return we=>{var Re=we[i],Ue=!1;return(0,w.$K)(Re)&&((0,w.$K)(se)&&(Ue=Re<se),se=Re),{argument:we[m],highValue:this._processEmptyValue(we[A]),lowValue:this._processEmptyValue(we[N]),closeValue:this._processEmptyValue(we[Q]),openValue:this._processEmptyValue(we[D]),reductionValue:Re,tag:we[e.getTagField()],isReduction:Ue,data:we}}},_parsePointStyle:function(n,t,e){return{stroke:n.color||t,"stroke-width":n.width,fill:n.color||e}},_getDefaultStyle:function(n){var t=n.color||this._options.mainSeriesColor;return{normal:this._parsePointStyle(n,t,t),hover:this._parsePointStyle(n.hoverStyle,t,t),selection:this._parsePointStyle(n.selectionStyle,t,t)}},_getReductionStyle:function(n){var t=n.reduction.color;return{normal:this._parsePointStyle({color:t,width:n.width,hatching:n.hatching},t,t),hover:this._parsePointStyle(n.hoverStyle,t,t),selection:this._parsePointStyle(n.selectionStyle,t,t)}},_createPointStyles:function(n){var t=this._options.innerColor,e=this._getDefaultStyle(n),i=(0,y.l)(!0,{},e),r=this._getReductionStyle(n),m=(0,y.l)(!0,{},r);return i.normal.fill=i.hover.fill=i.selection.fill=t,m.normal.fill=m.hover.fill=m.selection.fill=t,e.positive=i,e.reduction=r,e.reductionPositive=m,e},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:(n,t)=>{var{intervalStart:e,intervalEnd:i,data:r}=n;if(r.length){var m={},D=t.getValueFields(),A=D[1],N=D[2];return m[A]=-1/0,m[N]=1/0,(m=r.reduce(function(Q,se){return null!==se[A]&&(Q[A]=Math.max(Q[A],se[A])),null!==se[N]&&(Q[N]=Math.min(Q[N],se[N])),Q},m))[D[0]]=r[0][D[0]],m[D[3]]=r[r.length-1][D[3]],isFinite(m[A])||(m[A]=null),isFinite(m[N])||(m[N]=null),m[t.getArgumentField()]=t._getIntervalCenter(e,i),m}}},getValueFields:function(){var n=this._options;return[n.openValueField||"open",n.highValueField||"high",n.lowValueField||"low",n.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(n){var e=this._getCreatingPointOptions().styles,i=[e.normal,e.hover,e.selection].reduce(function(r,m){return Math.max(r,m["stroke-width"])},0);return n.size=10+i,n.sizePointNormalState=10,n},getSeriesPairCoord(n,t){for(var e=null,i=this.getVisiblePoints(),r=0;r<i.length;r++){var m=i[r],D=void 0;if(t)D=m.vx===n?(m.openY+m.closeY)/2:void 0;else{var A=[Math.min(m.lowY,m.highY),Math.max(m.lowY,m.highY)];D=n>=A[0]&&n<=A[1]?m.vx:void 0}if(this._checkAxisVisibleAreaCoord(!t,D)){e=D;break}}return e},usePointsToDefineAutoHiding:()=>!1}),_O=(0,y.l)({},mO,{_parsePointStyle:function(n,t,e){var i=n.color||e,r=mO._parsePointStyle.call(this,n,t,i);return r.fill=i,r.hatching=n.hatching,r}}),sb=fu.area,lb=el.bar,Ku={_calculateErrorBars:E.ZT,_updateOptions:function(n){this._stackName="axis_"+(n.axis||"default")}},Ns={},Fv={};Ns.stackedline=(0,y.l)({},ls.line,Ku,{}),Ns.stackedspline=(0,y.l)({},ls.spline,Ku,{}),Ns.fullstackedline=(0,y.l)({},ls.line,Ku,{getValueRangeInitialValue:fu.area.getValueRangeInitialValue}),Ns.fullstackedspline=(0,y.l)({},ls.spline,Ku,{getValueRangeInitialValue:fu.area.getValueRangeInitialValue});var vO=Ns.stackedbar=(0,y.l)({},lb,Ku,{_updateOptions:function(n){Ku._updateOptions.call(this,n),this._stackName=this._stackName+"_stack_"+(n.stack||"default")}});function ub(n,t,e,i){return(n=(0,Se.d9)(n)).value=t,n.minValue=e,n.translate(),n.argument=n.argument+i,n}function db(n){for(var e,r,t=0,i=[],m=n.length;t<m;)r=[e=n[t]],e.leftHole&&(r=[ub(e,e.leftHole,e.minLeftHole,"left"),e]),e.rightHole&&r.push(ub(e,e.rightHole,e.minRightHole,"right")),i.push(r),t++;return[].concat.apply([],i)}Ns.fullstackedbar=(0,y.l)({},lb,Ku,{_updateOptions:vO._updateOptions}),Ns.stackedarea=(0,y.l)({},sb,Ku,{_prepareSegment:function(n,t){return sb._prepareSegment.call(this,db(n),t)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),Ns.stackedsplinearea=(0,y.l)({},fu.splinearea,Ku,{_prepareSegment:function(n,t){var i,e=this;if(n=db(n),this._prevSeries&&1!==n.length){for(var r=ls.spline._calculateBezierPoints(n,t),m=Vn(n,function(se){var we=se.getCoords(!0);return we.argument=se.argument,we}),D=[],A={},N=0,Q=e._prevSeries._segments.length;N<Q;)D=D.concat(e._prevSeries._segments[N].line),N++;(0,O.S6)(D,function(se,we){if(null!==we.argument){var Re=we.argument.valueOf();A[Re]?A[Re].push(we):A[Re]=[we]}}),e._prevSeries._segmentByArg=A,m=ls.spline._calculateBezierPoints(m,t),(0,O.S6)(m,function(se,we){var Ue,Re=we.argument.valueOf();se%3==0&&(Ue=A[Re]||function yO(n,t){for(var e;!e&&n;)e=n._segmentByArg&&n._segmentByArg[t],n=n._prevSeries;return e}(e._prevSeries,Re),Ue&&(m[se-1]&&Ue[0]&&(m[se-1]=Ue[0]),m[se+1]&&(m[se+1]=Ue[2]||we)))}),i={line:r,area:r.concat(m.reverse())},e._areaPointsToSplineAreaPoints(i.area)}else i=fu.splinearea._prepareSegment.call(this,n,t);return i},_appendInGroup:Ns.stackedarea._appendInGroup}),Ns.fullstackedarea=(0,y.l)({},sb,Ku,{_prepareSegment:Ns.stackedarea._prepareSegment,_appendInGroup:Ns.stackedarea._appendInGroup}),Ns.fullstackedsplinearea=(0,y.l)({},fu.splinearea,Ku,{_prepareSegment:Ns.stackedsplinearea._prepareSegment,_appendInGroup:Ns.stackedarea._appendInGroup}),Fv.stackedbar=(0,y.l)({},Rv.bar,Ku,{});var Kl={},Gu=Zl.states,w0="discrete",E0=Gu.selectedMark,Vv=Gu.hoverMark,Dd=Gu.hover,V2=Gu.normal,Dp=Gu.selection,cb=Gu.applySelected,UM=Gu.applyHover,ZM=Gu.resetItem,Cf="none",KM="seriesSelectionChanged",GM="pointSelectionChanged",jM="seriesHoverChanged",CO="pointHoverChanged",gh="allseriespoints",Nv="allargumentpoints",xO="pointHover",hb="clearPointHover",fh="seriesSelect",pb="pointSelect",Hv="pointDeselect";function bO(n,t,e){n&&n.trigger(t,e)}function xf(n){return"includepoints"===(n=En(n))||n===gh}function wO(n,t){var e=(0,y.l)({},n,t);return e.border=(0,y.l)({},n&&n.border,t&&t.border),e}function S0(n,t){this.fullState=0,this._extGroups=n,this._renderer=n.renderer,this._group=n.renderer.g().attr({class:"dxc-series"}),this._eventTrigger=n.eventTrigger,this._eventPipe=n.eventPipe,this._incidentOccurred=n.incidentOccurred,this._legendCallback=E.ZT,this.updateOptions(t,n)}function Uv(n){return n.data}function SO(n,t){return t&&"logarithmic"===n&&!1===t.getOptions().allowNegatives?e=>e>0:()=>!0}Kl.mixins={chart:{},pie:{},polar:{}},Kl.mixins.chart.scatter=ms,Kl.mixins.polar.scatter=_0,(0,y.l)(Kl.mixins.pie,c),(0,y.l)(Kl.mixins.chart,ls,fu,el,Jx,eb,I,Ns),(0,y.l)(Kl.mixins.polar,v0,RM,Rv,Fv),S0.prototype={constructor:S0,_createLegendState:E.ZT,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(n){var t=n.mainSeriesColor;this._styles={normal:this._parseStyle(n,t,t),hover:this._parseStyle(n.hoverStyle||{},t,t),selection:this._parseStyle(n.selectionStyle||{},t,t),legendStyles:{normal:this._createLegendState(n,t),hover:this._createLegendState(n.hoverStyle||{},t),selection:this._createLegendState(n.selectionStyle||{},t)}}},setClippingParams(n,t,e){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=n,this._widePaneClipRectID=t,this._forceClipping=e,this._clipLabels=i},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:E.ZT,getSizeField:E.ZT,getArgumentField:E.ZT,getPoints:function(){return this._points},getPointsInViewPort:function(){return dh.getPointsInViewPort(this)},_createPoint:function(n,t,e){n.index=t;var i=this.pointsByArgument,r=this._getCreatingPointOptions(n),m=n.argument.valueOf(),D=e;D?D.update(n,r):(D=new g0(this,n,r),this.isSelected()&&xf(this.lastSelectionMode)&&D.setView(Dp));var A=i[m];return A?A.push(D):i[m]=[D],D.hasValue()&&this.customizePoint(D,n),D},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?dh.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return dh.getViewport(this)},_deleteGroup:function(n){var t=this[n];t&&(t.dispose(),this[n]=null)},updateOptions(n,t){var e=n.widgetType,i=this.type,r=n.type;if(this.type=r&&En(r.toString()),!this._checkType(e)||this._checkPolarBarType(e,n))return this.dispose(),void(this.isUpdated=!1);i!==this.type?(this._firstDrawing=!0,this._resetType(i,e),this._setType(this.type,e)):this._defineDrawingState(),this._options=n,this._pointOptions=null,this.name=n.name,this.pane=n.pane,this.tag=n.tag,t&&(this._seriesModes=t.commonSeriesModes||this._seriesModes,this._valueAxis=t.valueAxis||this._valueAxis,this.axis=this._valueAxis&&this._valueAxis.name,this._argumentAxis=t.argumentAxis||this._argumentAxis),this._createStyles(n),this._stackName=null,this._updateOptions(n),this._visible=n.visible,this.isUpdated=!0,this.stack=n.stack,this.barOverlapGroup=n.barOverlapGroup,this._createGroups(),this._processEmptyValue=n.ignoreEmptyPoints?m=>null===m?void 0:m:m=>m},_defineDrawingState(){this._firstDrawing=!0},_disposePoints:function(n){(0,O.S6)(n||[],function(t,e){e.dispose()})},updateDataType:function(n){return this.argumentType=n.argumentType,this.valueType=n.valueType,this.argumentAxisType=n.argumentAxisType,this.valueAxisType=n.valueAxisType,this.showZero=n.showZero,this._argumentChecker=SO(n.argumentAxisType,this.getArgumentAxis()),this._valueChecker=SO(n.valueAxisType,this.getValueAxis()),this},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(n,t,e){var i=n.argument&&n.argument.valueOf(),r=(t[i]||[])[0];return r&&t[i].splice(0,1),r},updateData:function(n){var t=this._options,e=t.nameField;(n=n||[]).length&&(this._canRenderCompleteHandle=!0);var i=this._getPointDataSelector(),r=0;this._data=n.reduce((m,D,A)=>{var N=i(D);return(0,w.$K)(N.argument)?(!e||D[e]===t.nameFieldValue)&&(N.index=A,m.push(N)):r++,m},[]),r&&r===n.length&&this._incidentOccurred("W2002",[this.name,this.getArgumentField()]),this._endUpdateData()},_getData(){var n=this._data||[];return this.useAggregation()&&(n=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,this.argumentAxisType!==w0?this.getArgumentRange():{}),n)),n},useAggregation:function(){var n=this.getOptions().aggregation;return n&&n.enabled},autoHidePointMarkersEnabled:E.ZT,usePointsToDefineAutoHiding:E.ZT,createPoints(n){this._normalizeUsingAllAggregatedPoints(n),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(n){this._useAllAggregatedPoints=this.useAggregation()&&(this.argumentAxisType===w0||(this._data||[]).length>1&&!!n)},_createPoints:function(){var n=this,t=n.pointsByArgument||{},e=n._getData();n.pointsByArgument={},n._calculateErrorBars(e);var i={},r=e.reduce((D,A)=>{if(n._checkData(A,i)){var N=D.length,Q=n._getOldPoint(A,t,N),se=n._createPoint(A,N,Q);D.push(se)}return D},[]);for(var m in i)i[m]===e.length&&n._incidentOccurred("W2002",[n.name,m]);Object.keys(t).forEach(D=>n._disposePoints(t[D])),n._points=r},_removeOldSegments:function(){var n=this,t=n._segments.length;(0,O.S6)(n._graphics.splice(t,n._graphics.length)||[],function(e,i){n._removeElement(i)}),n._trackers&&(0,O.S6)(n._trackers.splice(t,n._trackers.length)||[],function(e,i){i.remove()})},_drawElements:function(n,t,e){var i=this,r=i._points||[],m=r[0]&&r[0].hasValue()&&i._options.closed,D={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var A=r.reduce(function(N,Q){var se=N[N.length-1];return(!Q.translated||e)&&(Q.translate(),!e&&Q.setDefaultCoords()),Q.hasValue()&&Q.hasCoords()?(e&&i._drawPoint({point:Q,groups:D,hasAnimation:n,firstDrawing:t}),se.push(Q)):Q.hasValue()?Q.setInvisibility():se.length&&N.push([]),N},[[]]);A.forEach(function(N,Q){N.length&&i._drawSegment(N,n,Q,m&&Q===this.length-1)},A),i._firstDrawing=!r.length,i._removeOldSegments(),n&&i._animate(t)},draw:function(n,t,e){var i=this._firstDrawing;this._legendCallback=e||this._legendCallback,this._visible?(this._appendInGroup(),this._applyVisibleArea(),this._setGroupsSettings(n,i),!i&&!this._resetApplyingAnimation&&this._drawElements(!1,i,!1),this._drawElements(n,i,!0),t&&this.hideLabels(),this.isSelected()?this._changeStyle(this.lastSelectionMode,void 0,!0):this.isHovered()?this._changeStyle(this.lastHoverMode,void 0,!0):this._applyStyle(this._styles.normal),this._resetApplyingAnimation=!1):this._group.remove()},_setLabelGroupSettings:function(n){var t={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(t),this._applyClearingSettings(t),n&&(t.opacity=.001),this._labelsGroup.attr(t).append(this._extGroups.labelsGroup)},_checkType:function(n){return!!Kl.mixins[n][this.type]},_checkPolarBarType:function(n,t){return"polar"===n&&t.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(n,t){var e;if(n)for(e in Kl.mixins[t][n])delete this[e]},_setType:function(n,t){var e,i=Kl.mixins[t][n];for(e in i)this[e]=i[e]},_setPointsView:function(n,t){this.getPoints().forEach(function(e){t!==e&&e.setView(n)})},_resetPointsView:function(n,t){this.getPoints().forEach(function(e){t!==e&&e.resetView(n)})},_resetNearestPoint:function(){this._nearestPoint&&null!==this._nearestPoint.series&&this._nearestPoint.resetView(Dd),this._nearestPoint=null},_setSelectedState:function(n){this.lastSelectionMode=En(n||this._options.selectionMode),this.fullState=this.fullState|E0,this._resetNearestPoint(),this._changeStyle(this.lastSelectionMode),this.lastSelectionMode!==Cf&&this.isHovered()&&xf(this.lastHoverMode)&&this._resetPointsView(Dd)},_releaseSelectedState:function(){this.fullState=this.fullState&~E0,this._changeStyle(this.lastSelectionMode,Dp),this.lastSelectionMode!==Cf&&this.isHovered()&&xf(this.lastHoverMode)&&this._setPointsView(Dd)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(n){this._resetApplyingAnimation=!0,n&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&En(this._options.hoverMode)!==Cf},_changeStyle:function(n,t,e){var i=this.fullState,r=[V2,Dd,Dp,Dp];"none"===this.lastHoverMode&&(i&=~Vv),"none"===this.lastSelectionMode&&(i&=~E0),xf(n)&&!e&&(t?this._resetPointsView(t):this._setPointsView(r[i])),this._legendCallback([ZM,UM,cb,cb][i]),this._applyStyle(this._styles[r[i]])},updateHover:function(n,t){var e=this._nearestPoint,i=this.isHovered()&&"nearestpoint"===this.lastHoverMode&&this.getNeighborPoint(n,t);i!==e&&(!this.isSelected()||this.lastSelectionMode===Cf)&&(this._resetNearestPoint(),i&&(i.setView(Dd),this._nearestPoint=i))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,w.$K)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(n,t){var r,m,D,A,Q,se,e=this._options,i=e.customizePoint,N=e.customizeLabel;N&&N.call&&((r=(0,y.l)({seriesName:this.name},t)).series=this,D=(Q=(D=N.call(r,r))&&!(0,w.Qr)(D))?(0,y.l)(!0,{},e.label,D):null),i&&i.call&&((r=r||(0,y.l)({seriesName:this.name},t)).series=this,se=(A=i.call(r,r))&&!(0,w.Qr)(A)),(Q||se)&&((m=this._parsePointOptions(this._preparePointOptions(A),D||e.label,t,n)).styles.useLabelCustomOptions=Q,m.styles.usePointCustomOptions=se,n.updateOptions(m))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(n){this._visible=this._options.visible=n,this._updatePointsVisibility(),this.hidePointTooltip(),this._options.visibilityChanged(this)},_updatePointsVisibility:E.ZT,hideLabels:function(){(0,O.S6)(this._points,function(n,t){t._label.draw(!1)})},_parsePointOptions:function(n,t,e,i){var r=this._options,m=this._createPointStyles(n,e,i),D=(0,y.l)({},n,{type:r.type,rotated:r.rotated,styles:m,widgetType:r.widgetType,visibilityChanged:r.visibilityChanged});return D.label=function gb(n,t){var e=n||{},i=(0,y.l)({},e.font)||{},r=e.border||{},m=e.connector||{},D={fill:e.backgroundColor||t,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},A={stroke:m.visible&&m.width?m.color||t:"none","stroke-width":m.visible&&m.width||0};return i.color="none"===e.backgroundColor&&"#ffffff"===En(i.color)&&"inside"!==e.position?t:i.color,{alignment:e.alignment,format:e.format,argumentFormat:e.argumentFormat,customizeText:(0,w.mf)(e.customizeText)?e.customizeText:void 0,attributes:{font:i},visible:0!==i.size&&e.visible,showForZeroValues:e.showForZeroValues,horizontalOffset:e.horizontalOffset,verticalOffset:e.verticalOffset,radialOffset:e.radialOffset,background:D,position:e.position,connector:A,rotationAngle:e.rotationAngle,wordWrap:e.wordWrap,textOverflow:e.textOverflow,cssClass:e.cssClass,displayFormat:e.displayFormat}}(t,m.normal.fill),this.areErrorBarsVisible()&&(D.errorBars=r.valueErrorBar),D},_preparePointOptions:function(n){var t=this._getOptionsForPoint();return n?function EO(n,t){var e=wO(n,t);return e.image=(0,y.l)(!0,{},n.image,t.image),e.selectionStyle=wO(n.selectionStyle,t.selectionStyle),e.hoverStyle=wO(n.hoverStyle,t.hoverStyle),e}(t,n):t},_getMarkerGroupOptions:function(){return(0,y.l)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(n,t){var e=this.getOptions().aggregation,i=En(e.method);return"custom"===i&&e.calculate||(n&&!t?D=>{var{data:A}=D;return A[0]}:this._aggregators[i]||this._aggregators[this._defaultAggregator])},_resample(n,t){var{interval:e,ticks:i,aggregateByCategory:r}=n,m=this,D=m.argumentAxisType===w0||m.valueAxisType===w0,A=0,N=this._getPointDataSelector(),Q=m.getOptions(),se=(qt,un,In)=>{if(un){var Kn=Yn=>{var ai=Yn&&N(Yn,Q);ai&&m._checkData(ai)&&(ai.aggregationInfo=In,qt.push(ai))};Array.isArray(un)?un.forEach(Kn):Kn(un)}},we=this._getAggregationMethod(D,r);if(D){if(r){var Re=this.getArgumentAxis().getTranslator().getBusinessRange().categories,Ue=Re.reduce((qt,un)=>(qt[un.valueOf()]=[],qt),{});return t.forEach(qt=>{Ue[qt.argument.valueOf()].push(qt)}),Re.reduce((qt,un)=>(se(qt,we({aggregationInterval:null,intervalStart:un,intervalEnd:un,data:Ue[un.valueOf()].map(Uv)},m)),qt),[])}return t.reduce((qt,un,In,Kn)=>{if(qt[1].push(un),In===Kn.length-1||(In+1)%e==0){var ai={aggregationInterval:e,data:qt[1].map(Uv)};se(qt[0],we(ai,m)),qt[1]=[]}return qt},[[],[]])[0]}var st=[];if(1===i.length){var Ot={intervalStart:i[0],intervalEnd:i[0],aggregationInterval:null,data:t.map(Uv)};se(st,we(Ot,m),Ot)}else for(var Kt=1;Kt<i.length;Kt++){for(var sn=i[Kt],wn=i[Kt-1],rn=[];t[A]&&t[A].argument<sn;)t[A].argument>=wn&&rn.push(t[A]),A++;var Ft={intervalStart:wn,intervalEnd:sn,aggregationInterval:e,data:rn.map(Uv)};se(st,we(Ft,m),Ft)}return m._endUpdateData(),st},canRenderCompleteHandle:function(){var n=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!n},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(n){return this._createAllAggregatedPoints(),(this._points||[])[n]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(n){n.isSelected()||(function W2(n,t){n.fullState|=E0,n.applyView(t)}(n,this._legendCallback),this._eventPipe({action:pb,target:n}),this._eventTrigger(GM,{target:n}))},deselectPoint:function(n){n.isSelected()&&(function U2(n,t){n.fullState&=~E0,n.applyView(t)}(n,this._legendCallback),this._eventPipe({action:Hv,target:n}),this._eventTrigger(GM,{target:n}))},hover:function(n){var t=this._eventTrigger;this.isHovered()||(this.lastHoverMode=En(n||this._options.hoverMode),this.fullState=this.fullState|Vv,this._changeStyle(this.lastHoverMode,void 0,this.isSelected()&&this.lastSelectionMode!==Cf),t(jM,{target:this}))},clearHover:function(){var n=this._eventTrigger;this.isHovered()&&(this._resetNearestPoint(),this.fullState=this.fullState&~Vv,this._changeStyle(this.lastHoverMode,Dd,this.isSelected()&&this.lastSelectionMode!==Cf),n(jM,{target:this}))},hoverPoint:function(n){n.isHovered()||(n.clearHover(),function Wv(n,t){n.fullState|=Vv,n.applyView(t)}(n,this._legendCallback),this._canChangeView()&&this._applyStyle(this._styles.hover),this._eventPipe({action:xO,target:n}),this._eventTrigger(CO,{target:n}))},clearPointHover:function(){var n=this;n.getPoints().some(function(t){return!!t.isHovered()&&(function z2(n,t){n.fullState&=~Vv,n.applyView(t),n.releaseHoverState()}(t,n._legendCallback),n._canChangeView()&&n._applyStyle(n._styles.normal),n._eventPipe({action:hb,target:t}),n._eventTrigger(CO,{target:t}),!0)})},showPointTooltip:function(n){bO(this._extGroups.seriesGroup,"showpointtooltip",n)},hidePointTooltip:function(n){bO(this._extGroups.seriesGroup,"hidepointtooltip",n)},select:function(){this.isSelected()||(this._setSelectedState(this._options.selectionMode),this._eventPipe({action:fh,target:this}),this._group.toForeground(),this._eventTrigger(KM,{target:this}))},clearSelection:function(){this.isSelected()&&(this._releaseSelectedState(),this._eventTrigger(KM,{target:this}))},getPointsByArg:function(n,t){var e=n.valueOf(),i=this.pointsByArgument[e];return!i&&!t&&this._createAllAggregatedPoints()&&(i=this.pointsByArgument[e]),i||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints||(this.createPoints(!0),0))},getPointsByKeys:function(n){return this.getPointsByArg(n)},notify:function(n){var t=this,e=n.action,i=t._seriesModes,r=n.target,m=r.getOptions(),D=En(m.hoverMode),A=En(m.selectionMode);e===xO?t._hoverPointHandler(r,D,n.notifyLegend):e===hb?t._clearPointHoverHandler(r,D,n.notifyLegend):e===fh?r!==t&&"single"===i.seriesSelectionMode&&t.clearSelection():e===pb?("single"===i.pointSelectionMode&&t.getPoints().some(function(N){return!(N===r||!N.isSelected()||(t.deselectPoint(N),0))}),t._selectPointHandler(r,A)):e===Hv&&t._deselectPointHandler(r,A)},_selectPointHandler:function(n,t){t===gh?n.series===this&&this._setPointsView(Dp,n):t===Nv&&this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(e){e!==n&&e.setView(Dp)})},_deselectPointHandler:function(n,t){t===gh?n.series===this&&this._resetPointsView(Dp,n):t===Nv&&this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(e){e!==n&&e.resetView(Dp)})},_hoverPointHandler:function(n,t,e){n.series!==this&&t===Nv?(this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(i){i.setView(Dd)}),e&&this._legendCallback(n)):t===gh&&n.series===this&&this._setPointsView(Dd,n)},_clearPointHoverHandler:function(n,t,e){t===Nv?(n.series!==this&&this.getPointsByKeys(n.argument,n.argumentIndex).forEach(function(i){i.resetView(Dd)}),e&&this._legendCallback(n)):t===gh&&n.series===this&&this._resetPointsView(Dd,n)},_deletePoints:function(){this._disposePoints(this._points),this._points=this._drawnPoints=null},_deleteTrackers:function(){(0,O.S6)(this._trackers||[],function(n,t){t.remove()}),this._trackersGroup&&this._trackersGroup.dispose(),this._trackers=this._trackersGroup=null},dispose:function(){this._deletePoints(),this._group.dispose(),this._labelsGroup&&this._labelsGroup.dispose(),this._errorBarGroup&&this._errorBarGroup.dispose(),this._deleteTrackers(),this._group=this._extGroups=this._markersGroup=this._elementsGroup=this._bordersGroup=this._labelsGroup=this._errorBarGroup=this._graphics=this._rangeData=this._renderer=this._styles=this._options=this._pointOptions=this._drawnPoints=this.pointsByArgument=this._segments=this._prevSeries=null},correctPosition:E.ZT,drawTrackers:E.ZT,getNeighborPoint:E.ZT,areErrorBarsVisible:E.ZT,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(n,t){var e=this.getNeighborPoint(n,t);return null!=e&&e.coordsIn(n,t)?e:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup(){return this._markersGroup},getRenderer(){return this._renderer},removePointElements(){this._markersGroup&&((0,O.S6)(this._points,(n,t)=>t.deleteMarker()),this._markersGroup.dispose(),this._markersGroup=null)},removeGraphicElements(){var n=this;n._elementsGroup&&(n._elementsGroup.dispose(),n._elementsGroup=null),(0,O.S6)(n._graphics||[],(t,e)=>{n._removeElement(e)}),n._graphics=null},removeBordersGroup(){this._bordersGroup&&(this._bordersGroup.dispose(),this._bordersGroup=null)}};var fb=so.inherit(function(){var n=function(r){return r?((r=(0,y.l)(!0,{},r)).title=(0,w.HD)(m=r.title)?{text:m}:m,("logarithmic"===r.type&&r.logarithmBase<=0||r.logarithmBase&&!(0,w.kE)(r.logarithmBase))&&(r.logarithmBase=void 0,r.logarithmBaseError=!0),r.label&&r.label.alignment&&(r.label.userAlignment=!0),r):{};var m},t=function(r,m,D){var A=this._theme,N=D^"valueAxis"===r?"verticalAxis":"horizontalAxis",Q=n(m),se=n(this._userOptions.commonAxisSettings),we=(0,y.l)(!0,{},A.commonAxisSettings,A[N],A[r],se,Q);return we.workWeek=Q.workWeek||A[r].workWeek,we.forceUserTickInterval|=(0,w.$K)(Q.tickInterval)&&!(0,w.$K)(Q.axisDivisionFactor),we},e=function(r,m){m=m||this._userOptions[r];var D=this._theme[r],A=this._mergedSettings[r];return A||(A=(0,w.PO)(D)&&(0,w.PO)(m)?(0,y.l)(!0,{},D,m):(0,w.$K)(m)?m:D,this._mergedSettings[r]=A,A)},i={base:e,argumentAxis:t,valueAxisRangeSelector:function(){return e.call(this,"valueAxis")},valueAxis:t,series:function(r,m,D){var wn,un,A=this,N=A._theme,Q=A._userOptions.commonSeriesSettings||{},se=N.commonSeriesSettings,we=A._themeSection.split(".").slice(-1)[0],Re=En(m.type||Q.type||se.type||"pie"===we&&N.type),Ue=A.palette,st=~Re.indexOf("bar"),Ot=~Re.indexOf("line"),Kt=~Re.indexOf("area"),sn="bubble"===Re,rn=A.getOptions("resolveLabelsOverlapping"),Ft=A.getOptions("containerBackgroundColor"),qt=i.seriesTemplate.call(this);(st||sn)&&(un=(m=(0,y.l)(!0,{},Q,Q[Re],m)).visible,Q={type:{}},(0,y.l)(!0,m,m.point),m.visible=un);var In=(0,y.l)(!0,{aggregation:{}},se,se[Re],Q,Q[Re],m);return In.aggregation.enabled="chart"===we&&!!In.aggregation.enabled,In.type=Re,In.widgetType=we,In.containerBackgroundColor=Ft,wn="pie"!==we?In.color||Ue.getNextColor(D):function(Kn,Yn,ai){var gi="".concat(Kn,"-").concat(Yn);return A._multiPieColors[gi]||(A._multiPieColors[gi]=Ue.getNextColor(ai)),A._multiPieColors[gi]},In.mainSeriesColor=wn,In.resolveLabelsOverlapping=rn,In.label&&(Ot||Kt&&"rangearea"!==Re||"scatter"===Re)&&(In.label.position="outside"),qt&&(In.nameField=qt.nameField),In},animation:function(r){var m=this._userOptions[r];return m=(0,w.PO)(m)?m:(0,w.$K)(m)?{enabled:!!m}:{},e.call(this,r,m)},seriesTemplate(){var r=e.call(this,"seriesTemplate");return r&&(r.nameField=r.nameField||"series"),r},zoomAndPan(){function r(D){var A="pan"===(D=En(D))||"both"===D,N="zoom"===D||"both"===D;return{pan:A,zoom:N,none:!A&&!N}}var m=e.call(this,"zoomAndPan");return{valueAxis:r(m.valueAxis),argumentAxis:r(m.argumentAxis),dragToZoom:!!m.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:m.dragBoxStyle.color,opacity:m.dragBoxStyle.opacity},panKey:m.panKey,allowMouseWheel:!!m.allowMouseWheel,allowTouchGestures:!!m.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(r){var m=this;m.callBase.apply(m,arguments);var D=r.options||{};m._userOptions=D,m._mergeAxisTitleOptions=[],m._multiPieColors={},m._callback=E.ZT},dispose:function(){var r=this;return r.palette&&r.palette.dispose(),r.palette=r._userOptions=r._mergedSettings=r._multiPieColors=null,r.callBase.apply(r,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(r){return(i[r]||i.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var r=this;r.callBase.apply(r,arguments),r.updatePalette()},resetOptions:function(r){this._mergedSettings[r]=null},update:function(r){this._userOptions=r},updatePalette:function(){this.palette=this.createPalette(this.getOptions("palette"),{useHighlight:!0,extensionMode:this.getOptions("paletteExtensionMode")})}}}()),{floor:_u,sqrt:OO}=Math,O0=Math.min,mb=Math.max,mh=Zl.radialLabelIndent;function $M(n,t,e){return e<n?n:t<e?t:e}function _b(n){if(n._label.isVisible()&&"inside"!==n._label.getLayoutOptions().position)return n._label.getBoundingRect()}function TO(n){return n.reduce(function(t,e){var i=e.getVisiblePoints().reduce(function(m,D){var A=_b(D);return A&&A.width>m&&(m=A.width),m},0),r=i;return i&&(t.outerLabelsCount++,t.outerLabelsCount>1&&(i+=Zl.pieLabelSpacing),r+=Zl.pieLabelSpacing),t.sizes.push(i),t.rSizes.push(r),t.common+=i,t},{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function IO(n,t,e,i,r,m){var D,A,N=0,Q=n.sizes,se=n.rSizes;for(A=0;A<e.length;A++)0!==Q[A]?(D=_u(D?D+se[A-1]:t),e[A].correctLabelRadius(D),N+=r||Q[A],se[A]=r||se[A],e[A].setVisibleArea({left:_u(m-t-N),right:_u(i.width-(m+t+N)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):D&&(D+=se[A-1])}function YM(n){var{type:t,innerRadius:e}=n;return"pie"===t?0:(0,w.kE)(e)?Number(e):.5}function Zv(){}function MO(n,t,e,i){return(n-t-mh-e.left)/i.outerLabelsCount}function G2(n,t,e,i,r,m){var A,D=TO(e),N=function XM(n,t,e){return n-t.left-(e.outerLabelsCount>0?e.common+mh:0)}(r,t,D);return N<i?A=MO(r,n=i,t,D):n=O0(function vb(n,t,e,i,r){return n.some(function(m){return m.getVisiblePoints().reduce(function(D,A){var N=_b(A);if(N){var Q=$M(N.x,N.x+N.width,t),se=$M(N.y,N.y+N.height,e);i=O0(mb(function K2(n,t,e,i){return OO((n-e)*(n-e)+(t-i)*(t-i))}(Q,se,t,e)-mh,r),i),D=!0}return D},!1)}),i}(e,r,m,n,i),N),IO(D,n+mh,e,t,A,r),n}function j2(n){return new Wc(null,{x:n.left,y:n.top,width:n.width-n.left-n.right,height:n.height-n.top-n.bottom})}Zv.prototype={constructor:Zv,setOptions:function(n){this._options=n},applyPieChartSeriesLayout:function(n,t,e){var N,Q,i=n.height-n.top-n.bottom,r=n.width-n.left-n.right,m=r/2+n.left,D=i/2+n.top,A=this._options.piePercentage;return(0,w.kE)(A)?N=Q=A*O0(n.height,n.width)/2:(N=O0(r,i)/2,Q=this._options.minPiePercentage*N),e||(N=G2(N,n,t,Q,m,D)),{centerX:_u(m),centerY:_u(D),radiusInner:_u(N*YM(t[0])),radiusOuter:_u(N)}},applyEqualPieChartLayout:function(n,t){var e=t.radius;return{centerX:_u(t.x),centerY:_u(t.y),radiusInner:_u(e*YM(n[0])),radiusOuter:_u(e)}},correctPieLabelRadius:function(n,t,e){var r,i=TO(n),m=t.radiusOuter+mh;i.common+mh>t.centerX-e.left-m&&(r=MO(t.centerX,t.radiusOuter,e,i)),IO(i,m,n,e,r,t.centerX)},needMoreSpaceForPanesCanvas(n,t,e){var i=this._options,r=i.width,m=i.height,D=i.piePercentage,A=(0,w.kE)(D),N=0,Q=0;return n.forEach(se=>{var we=se.canvas,Re=A?O0(we.width,we.height)*D:void 0,Ue=e?e(se):{width:!1,height:!1},st=Ue.width?0:(A?Re:r)-(we.width-we.left-we.right),Ot=Ue.height?0:(A?Re:m)-(we.height-we.top-we.bottom);t?(N+=st>0?st:0,Q=mb(Ot>0?Ot:0,Q)):(N=mb(st>0?st:0,N),Q+=Ot>0?Ot:0)}),(N>0||Q>0)&&{width:N,height:Q}},layoutInsideLegend:function(n,t){var e=n.getLayoutOptions();if(e){var i=e.position,r=e.cutSide,m={horizontal:i.horizontal,vertical:i.vertical};t[e.cutLayoutSide]+="horizontal"===e.cutSide?e.width:e.height,m[r]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[m[r]],n.position({of:j2(t),my:m,at:i})}}};var D0=Math.floor,qM=Zl.events,JM=Zl.states,QM=JM.hoverMark,$2=JM.normalMark,T0="dxChartTracker",yb="."+T0,AO=(0,k.V4)([So.Z.down,So.Z.move],T0),eA="legendClick",PO="seriesClick",F="pointClick",H="chart-data-point",$="chart-data-series",de="chart-data-argument",Dt="allargumentpoints",Nt="includepoints",Fn=[Nt,"excludepoints","none"];function ii(n,t,e){var i=n.target;if("tspan"===i.tagName)return i.parentNode[t];var r=i[t];return e&&!(0,w.$K)(r)?function m(D){if(D.parentNode)return(0,w.$K)(D.parentNode[t])?D.parentNode[t]:m(D.parentNode)}(i):r}function Ti(n,t,e){var{event:i,cancel:r}=n,m=i.cancel,D=r||m;return m&&bu.Z.log("W0003","".concat(e,"Ckick handler argument"),"event.cancel","22.1","Use the 'cancel' field instead"),D||!t.getOptions()}function ur(n){var t=n.getOptions().hoverMode;return"none"===t?t:Dt}var wr={ctor:function(n){var t=this,e={tracker:t};t._renderer=n.renderer,t._legend=n.legend,t._tooltip=n.tooltip,t._eventTrigger=n.eventTrigger,t._seriesGroup=n.seriesGroup,n.seriesGroup.off(yb).on((0,k.V4)(qM.showPointTooltip,T0),e,t._showPointTooltip).on((0,k.V4)(qM.hidePointTooltip,T0),e,t._hidePointTooltip),t._renderer.root.off(yb).on(AO,e,t._pointerHandler).on((0,k.V4)(So.Z.up,T0),()=>clearTimeout(t._holdTimer)).on((0,k.V4)(v.u,T0),e,t._clickHandler)},update:function(n){this._chart=n.chart},updateSeries(n,t){var e=this,i=!(null!=n&&n.some(r=>r===e.hoveredSeries)||e._hoveredPoint&&e._hoveredPoint.series);e._storedSeries!==n&&(e._storedSeries=n||[]),i&&(e._clean(),e._renderer.initHatching()),t&&(e.clearSelection(),i||(e._hideTooltip(e.pointAtShownTooltip),e.clearHover()))},setCanvases:function(n,t){this._mainCanvas=n,this._canvases=t},repairTooltip:function(){var n=this.pointAtShownTooltip;n&&n.series&&n.isVisible()?this._showTooltip(n):this._hideTooltip(n,!0)},_setHoveredPoint:function(n){n!==this._hoveredPoint&&(this._releaseHoveredPoint(),n.hover(),this._hoveredPoint=n)},_releaseHoveredPoint:function(n){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint,!1,n))},_setHoveredSeries:function(n,t){this._releaseHoveredSeries(),this._releaseHoveredPoint(),n.hover(t),this.hoveredSeries=n},_releaseHoveredSeries(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection(){this._storedSeries.forEach(n=>{n&&(n.clearSelection(),n.getPoints().forEach(t=>t.clearSelection()))})},_clean:function(){this.hoveredPoint=this.hoveredSeries=this._hoveredArgumentPoints=null,this._hideTooltip(this.pointAtShownTooltip)},clearHover:function(n){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint(n)},_hideTooltip:function(n,t,e){!this._tooltip||n&&this.pointAtShownTooltip!==n||(!t&&this.pointAtShownTooltip&&(this.pointAtShownTooltip=null),this._tooltip.hide(!!e))},_showTooltip:function(n){var e,t=this,i={target:n};if(null!=n&&n.getOptions()){if(e=n.getTooltipFormatObject(t._tooltip,t._tooltip.isShared()&&t._chart.getStackedPoints(n)),!(0,w.$K)(e.valueText)&&!e.points||!n.isVisible())return;var r=n.getTooltipParams(t._tooltip.getLocation()),m=t._renderer.getRootOffset();r.x+=m.left,r.y+=m.top;var D=A=>{A&&(t.pointAtShownTooltip=n)};D(t._tooltip.show(e,r,i,void 0,D))}},_showPointTooltip:function(n,t){var e=n.data.tracker,i=e.pointAtShownTooltip;i&&i!==t&&e._hideTooltip(i),e._showTooltip(t)},_hidePointTooltip:function(n,t){n.data.tracker._hideTooltip(t,!1,!0)},_enableOutHandler:function(){if(!this._outHandler){var n=this,t=function(e){var i=n._renderer.getRootOffset(),r=D0(e.pageX-i.left),m=D0(e.pageY-i.top);!mo(n._mainCanvas,r,m)&&!n._isCursorOnTooltip(e)&&(n._pointerOut(),n._disableOutHandler())};d.Z.on(b.Z.getDocument(),AO,t),this._outHandler=t}},_isCursorOnTooltip:function(n){return this._tooltip.isEnabled()&&this._tooltip.isCursorOnTooltip(n.pageX,n.pageY)},_disableOutHandler:function(){this._outHandler&&d.Z.off(b.Z.getDocument(),AO,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(n){this.clearHover(!0),(n||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip,!1,!0)},_triggerLegendClick:function(n,t){var e=this._eventTrigger;e(eA,n,function(){!Ti(n,n.target,"Legend")&&e(t,n)})},_hoverLegendItem:function(n,t){var i,e=this._legend.getItemByCoord(n,t),r=function zi(n){return Fn.indexOf(n)>-1?n:Nt}(this._legend.getOptions().hoverMode);e?((!(i=this._storedSeries[e.id]).isHovered()||i.lastHoverMode!==r)&&this._setHoveredSeries(i,r),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)):this.clearHover()},_hoverArgument:function(n,t){var e=this._getArgumentHoverMode();(0,w.$K)(n)&&(this._releaseHoveredPoint(),this._hoveredArgument=n,this._argumentIndex=t,this._notifySeries({action:"pointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{argument:n,fullState:QM,argumentIndex:t,getOptions:function(){return{hoverMode:e}}}}))},_resetHoveredArgument:function(){var n;(0,w.$K)(this._hoveredArgument)&&(n=this._getArgumentHoverMode(),this._notifySeries({action:"clearPointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{fullState:$2,argumentIndex:this._argumentIndex,argument:this._hoveredArgument,getOptions:function(){return{hoverMode:n}}}}),this._hoveredArgument=null)},_notifySeries:function(n){this._storedSeries.forEach(function(t){t.notify(n)})},_pointerHandler:function(n){var t,e=n.data.tracker,i=e._renderer.getRootOffset(),r=D0(n.pageX-i.left),m=D0(n.pageY-i.top),D=e._getCanvas(r,m),A=ii(n,$),N=ii(n,H)||(null===(t=A)||void 0===t?void 0:t.getPointByCoord(r,m));if(e._isHolding=!1,clearTimeout(e._holdTimer),n.type===So.Z.down&&(e._holdTimer=setTimeout(()=>e._isHolding=!0,300)),N&&!N.getMarkerVisibility()&&(N=void 0),e._enableOutHandler(),e._legend.coordsIn(r,m))e._hoverLegendItem(r,m);else if(e.hoveredSeries&&e.hoveredSeries!==e._stuckSeries&&e._releaseHoveredSeries(),!e._hoverArgumentAxis(r,m,n)&&(e._isPointerOut(D,N)&&e._pointerOut(),D||N)){if(A&&!N){if(N=A.getNeighborPoint(r,m),!e._stickyHovering&&N&&!N.coordsIn(r,m)&&(N=null),A!==e.hoveredSeries)return void e._setTimeout(function(){e._setHoveredSeries(A),e._setStuckSeries(n,A,r,m),e._pointerComplete(N,r,m)},A)}else{if(N){if(n.type!==So.Z.move&&"touch"!==n.pointerType)return;return void(e.hoveredSeries?e._setTimeout(()=>e._pointerOnPoint(N,r,m,n),N):e._pointerOnPoint(N,r,m,n))}var Q;e._setStuckSeries(n,void 0,r,m)&&e._stickyHovering?(N=(A=e._stuckSeries).getNeighborPoint(r,m),e._releaseHoveredSeries(),null!==(Q=N)&&void 0!==Q&&Q.getMarkerVisibility()&&e._setHoveredPoint(N)):e._stickyHovering||e._pointerOut()}e._pointerComplete(N,r,m)}},_pointerOnPoint:function(n,t,e){this._resetHoveredArgument(),this._setHoveredPoint(n),this._pointerComplete(n,t,e)},_pointerComplete:function(n){this.pointAtShownTooltip!==n&&this._tooltip.isEnabled()&&this._showTooltip(n)},_clickHandler:function(n){var t,e=n.data.tracker;if(!e._isHolding){var i=e._renderer.getRootOffset(),r=D0(n.pageX-i.left),m=D0(n.pageY-i.top),D=ii(n,H),A=e._stuckSeries||ii(n,$)||(null===(t=D)||void 0===t?void 0:t.series),N=e._argumentAxis;if(e._legend.coordsIn(r,m)){var Q=e._legend.getItemByCoord(r,m);Q&&e._legendClick(Q,n)}else if(null!=N&&N.coordsIn(r,m)){var se=ii(n,de,!0);(0,w.$K)(se)&&e._eventTrigger("argumentAxisClick",{argument:se,event:n})}else if(A){var we;null!==(we=D=D||A.getPointByCoord(r,m))&&void 0!==we&&we.getMarkerVisibility()?e._pointClick(D,n):ii(n,$)&&e._eventTrigger(PO,{target:A,event:n})}}},dispose:function(){this._disableOutHandler(),this._renderer.root.off(yb),this._seriesGroup.off(yb)}},Yr=function(n){this.ctor(n)};(0,y.l)(Yr.prototype,wr,{_pointClick:function(n,t){var e=this._eventTrigger,i=n.series,r={target:n,event:t};e(F,r,function(){!Ti(r,i,"Point")&&e(PO,{target:i,event:t})})},update:function(n){wr.update.call(this,n),this._argumentAxis=n.argumentAxis||{},this._axisHoverEnabled=this._argumentAxis&&En(this._argumentAxis.getOptions().hoverMode)===Dt,this._rotated=n.rotated,this._crosshair=n.crosshair,this._stickyHovering=n.stickyHovering},_getCanvas:function(n,t){for(var e=this._canvases||[],i=0;i<e.length;i++){var r=e[i];if(mo(r,n,t))return r}return null},_isPointerOut:function(n){return!n&&this._stuckSeries},_hideCrosshair:function(){var n;null===(n=this._crosshair)||void 0===n||n.hide()},_moveCrosshair:function(n,t,e){this._crosshair&&null!=n&&n.isVisible()&&this._crosshair.show({point:n,x:t,y:e})},_clean:function(){wr._clean.call(this),this._resetTimer(),this._stuckSeries=null},_getSeriesForShared:function(n,t){var e,i=[],r=null,m=1/0;return this._tooltip.isShared()&&!this.hoveredSeries&&((0,O.S6)(this._storedSeries,function(D,A){var N=A.getNeighborPoint(n,t);N&&i.push(N)}),(0,O.S6)(i,function(D,A){var N=A.getCrosshairData(n,t),Q=mn(n,t,N.x,N.y);Q<m&&(r=A,m=Q)})),null===(e=r)||void 0===e?void 0:e.series},_setTimeout:function(n,t){var e=this;e._timeoutKeeper!==t&&(e._resetTimer(),e._hoverTimeout=setTimeout(function(){n(),e._timeoutKeeper=null},100),e._timeoutKeeper=t)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(n){(!(0,w.$K)(n.cancelable)||n.cancelable)&&(n.preventDefault(),n.stopPropagation())},_setStuckSeries:function(n,t,e,i){return this._stuckSeries="mouse"!==n.pointerType?null:t||this._stuckSeries||this._getSeriesForShared(e,i),!!this._stuckSeries},_pointerOut:function(){var n=this;n._stuckSeries=null,n._hideCrosshair(),n._resetTimer(),wr._pointerOut.apply(n,arguments)},_hoverArgumentAxis:function(n,t,e){if(this._resetHoveredArgument(),this._axisHoverEnabled&&this._argumentAxis.coordsIn(n,t))return this._hoverArgument(ii(e,de,!0)),!0},_pointerComplete:function(n,t,e){this.hoveredSeries&&this.hoveredSeries.updateHover(t,e),this._resetTimer(),this._moveCrosshair(n,t,e),wr._pointerComplete.call(this,n)},_legendClick:function(n,t){this._triggerLegendClick({target:this._storedSeries[n.id],event:t},PO)},_hoverLegendItem:function(n,t){this._stuckSeries=null,this._hideCrosshair(),wr._hoverLegendItem.call(this,n,t)},_pointerOnPoint:function(n,t,e,i){this._setStuckSeries(i,n.series,t,e),this._releaseHoveredSeries(),wr._pointerOnPoint.call(this,n,t,e,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return ur(this._argumentAxis)},dispose:function(){this._resetTimer(),wr.dispose.call(this)}});var ho=function(n){this.ctor(n)};(0,y.l)(ho.prototype,wr,{_isPointerOut:function(n,t){return!t},_legendClick:function(n,t){var e=[];this._storedSeries.forEach(i=>e.push.apply(e,i.getPointsByKeys(n.argument,n.argumentIndex))),this._eventTrigger(eA,{target:n.argument,points:e,event:t})},_pointClick:function(n,t){this._eventTrigger(F,{target:n,event:t})},_hoverLegendItem:function(n,t){var e=this._legend.getItemByCoord(n,t);e&&this._hoveredArgument!==e.argument?(this._resetHoveredArgument(),this._hoverArgument(e.argument,e.argumentIndex)):e||this.clearHover()},_getArgumentHoverMode:function(){return ur(this._legend)},_hoverArgumentAxis:E.ZT,_setStuckSeries:E.ZT,_getCanvas:E.ZT,_notifyLegendOnHoverArgument:!0});var Po,yo=u(8264),Cr=yo.Z.postCtor,Ka={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(Po in yo.Z)"postCtor"!==Po&&(Ka[Po]=yo.Z[Po]);var za={name:"data_source",init:function(){Cr.call(this)},dispose:E.ZT,members:Ka},Y2=Array.isArray,X2="_reinit",kO="_forceRender",q2="_resize",J2=[X2,"_updateDataSource","_dataInit",kO,q2],RO="font";function C7(n,t){var e=t.end-t.start,i=0;for(n.forEach(function(r){i+=r.getBoundingRect().width});e<i;)i-=x7(n)}function x7(n){var t=n.reduce(function(i,r,m){if(!r)return i;var D=r.value();return D<i.value?{value:D,rollingStock:r,index:m}:i},{rollingStock:void 0,value:1/0,index:void 0});t.rollingStock.getLabels()[0].draw(!1);var e=t.rollingStock.getBoundingRect().width;return n[t.index]=null,e}function b7(n){var t,e,i,r,m=!1;for(t=0,i=n.length-1;t<i;t++){for(e=t+1,r=n.length;e<r;e++)if(t!==e&&Q2(n[t],n[e],!0)){m=!0;break}if(m)break}return m}function Q2(n,t,e){if(n&&t){var i=n.getBoundingRect(),r=t.getBoundingRect();return i.end>r.start&&(!e||i.oppositeStart<=r.oppositeStart&&i.oppositeEnd>r.oppositeStart||r.oppositeStart<=i.oppositeStart&&r.oppositeEnd>i.oppositeStart)}}function E7(n){var t=[],e=[];return n.forEach(i=>{i.value()>0?t.push(i):e.unshift(i)}),t.concat(e)}function S7(n){var t,e,i;for(t=0;t<n.length-1;t++)Q2(e=i||n[t],n[t+1])?(e.toChain(n[t+1]),n[t+1]=null,i=e):i=n[t+1]||e}function O7(n,t){var e,i,r,m,D;for(e=0;e<n.length;e++){if(D7(r=n[e],t))for(D=r.getBoundingRect(),i=e+1;i<n.length;i++)if((m=n[i])&&m.getBoundingRect().end>D.start-(D.end-t.end)){m.toChain(r),n[e]=r=null;break}r&&r.setRollingStockInCanvas(t)}}function D7(n,t){return n&&n.getBoundingRect().end>t.end}function eL(n,t,e){var i=n.getBoundingRect(),r=i.x,m=i.y,D=i.x+i.width,A=i.y+i.height;return this.labels=[n],this.shiftFunction=e,this._bBox={start:t?r:m,width:t?i.width:i.height,end:t?D:A,oppositeStart:t?m:r,oppositeEnd:t?A:D},this._initialPosition=t?i.x:i.y,this}function M7(n,t){return(n.x<=t.x&&t.x<=n.x+n.width||n.x>=t.x&&n.x<=t.x+t.width)&&(n.y<=t.y&&t.y<=n.y+n.height||n.y>=t.y&&n.y<=t.y+t.height)}eL.prototype={toChain:function(n){var t=n.getBoundingRect();n.shift(t.start-this._bBox.end),this._changeBoxWidth(t.width),this.labels=this.labels.concat(n.labels)},getBoundingRect:function(){return this._bBox},shift:function(n){var t=this.shiftFunction;(0,O.S6)(this.labels,function(e,i){var r=i.getBoundingRect(),m=t(r,n);i.hideInsideLabel(m)||i.shift(m.x,m.y)}),this._bBox.end-=n,this._bBox.start-=n},setRollingStockInCanvas:function(n){this._bBox.end>n.end&&this.shift(this._bBox.end-n.end)},getLabels:function(){return this.labels},value(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(n){this._bBox.end+=n,this._bBox.width+=n}};var nA_resolveLabelOverlappingInOneDirection=function w7(n,t,e,i,r){var Q,m=arguments.length>5&&void 0!==arguments[5]?arguments[5]:()=>0,D=[],A={start:e?t.left:t.top,end:e?t.width-t.right:t.height-t.bottom},N=!1;if(n.forEach(function(we){we&&(N=N||we.series.isStackedSeries()||we.series.isFullStackedSeries(),we.getLabels().forEach(function(Re){Re.isVisible()&&D.push(new eL(Re,e,r))}))}),N)!e^i&&D.reverse(),Q=i?D:E7(D);else{var se=D.slice();Q=D.sort(function(we,Re){return m(we,Re)||we.getInitialPosition()-Re.getInitialPosition()||se.indexOf(we)-se.indexOf(Re)})}return!!b7(Q)&&(C7(Q,A),S7(Q),Q.reverse(),O7(Q,A),!0)},Td=xl.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done",actionSettings:{excludeValidators:["disabled"]}},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend."+RO,"legend.title."+RO,"legend.title.subtitle."+RO,"commonSeriesSettings.label."+RO],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions(){var n=this.callBase.apply(this,arguments);return n.options=this.option(),n},_createThemeManager:function(){var n=this.option(),t=new fb(this._getThemeManagerOptions());return t.setTheme(n.theme,n.rtlEnabled),t},_initCore:function(){this._canvasClipRect=this._renderer.clipRect(),this._createHtmlStructure(),this._createLegend(),this._createTracker(),this._needHandleRenderComplete=!0,this.layoutManager=new Zv,this._createScrollBar(),d.Z.on(this._$element,"contextmenu",function(n){((0,k.z6)(n)||(0,k.bX)(n))&&n.preventDefault()}),d.Z.on(this._$element,"MSHoldVisual",function(n){n.preventDefault()})},_getLayoutItems:E.ZT,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit(){Mn(this._canvas),this._reinitAxes(),this._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:E.ZT,_createHtmlStructure:function(){var n=this,t=n._renderer,e=t.root,i=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(e,"constant-lines")};n._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},n._labelsAxesGroup=t.g().attr({class:"dxc-elements-axes-group"});var r=()=>{n._labelsAxesGroup.linkOn(e,"elements")};n._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(e),n._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(e),n._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(e,"strips"),n._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(e,"grids"),n._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(e,"border"),n._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(e,"axes"),n._executeAppendBeforeSeries(r),n._stripLabelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(e,"strips-labels"),n._constantLinesGroup.under=i(),n._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(e,"series"),n._executeAppendAfterSeries(r),n._constantLinesGroup.above=i(),n._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(e,"scale-breaks"),n._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(e,"labels"),n._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(e,"crosshair"),n._legendGroup=t.g().attr({class:"dxc-legend","clip-path":n._getCanvasClipRectID()}).linkOn(e,"legend").linkAppend(e).enableLinks(),n._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(e,"scroll-bar")},_executeAppendBeforeSeries(){},_executeAppendAfterSeries(){},_disposeObjectsInArray:function(n,t){(0,O.S6)(this[n]||[],function(e,i){t&&i?(0,O.S6)(t,function(r,m){i[m]&&i[m].dispose()}):i&&i.dispose()}),this[n]=null},_disposeCore:function(){var n=this,t=function(r){n[r]&&(n[r].dispose(),n[r]=null)},e=function(r){n[r].linkOff()},i=this._disposeObjectsInArray;n._renderer.stopAllAnimations(),i.call(n,"series"),t("_tracker"),t("_crosshair"),n.layoutManager=n._userOptions=n._canvas=n._groupsData=null,e("_stripsGroup"),e("_gridGroup"),e("_axesGroup"),e("_constantLinesGroup"),e("_stripLabelAxesGroup"),e("_panesBorderGroup"),e("_seriesGroup"),e("_labelsGroup"),e("_crosshairCursorGroup"),e("_legendGroup"),e("_scrollBarGroup"),e("_scaleBreaksGroup"),t("_canvasClipRect"),t("_panesBackgroundGroup"),t("_backgroundRect"),t("_stripsGroup"),t("_gridGroup"),t("_axesGroup"),t("_constantLinesGroup"),t("_stripLabelAxesGroup"),t("_panesBorderGroup"),t("_seriesGroup"),t("_labelsGroup"),t("_crosshairCursorGroup"),t("_legendGroup"),t("_scrollBarGroup"),t("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(n){return this._themeManager.getOptions(n)},_applySize:function(n){this._rect=n.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData(q2)},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){this._tracker=new C[this._trackerType]({seriesGroup:this._seriesGroup,renderer:this._renderer,tooltip:this._tooltip,legend:this._legend,eventTrigger:this._eventTrigger})},_getTrackerSettings:function(){return(0,y.l)({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var n=this._themeManager;return{seriesSelectionMode:n.getOptions("seriesSelectionMode"),pointSelectionMode:n.getOptions("pointSelectionMode")}},_updateTracker:function(n){this._tracker.update(this._getTrackerSettings()),this._tracker.setCanvases({left:0,right:this._canvas.width,top:0,bottom:this._canvas.height},n)},_createCanvasFromRect(n){var t=this._canvas;return Mn({left:n[0],top:n[1],right:t.width-n[2],bottom:t.height-n[3],width:t.width,height:t.height})},_doRender:function(n){if(0!==this._canvas.width||0!==this._canvas.height){this._resetIsReady();var t=this._prepareDrawOptions(n),e=t.recreateCanvas;this._preserveOriginalCanvas(),e?this.__currentCanvas=this._canvas:this._canvas=this.__currentCanvas,e&&this._updateCanvasClipRect(this._canvas),this._canvas=this._createCanvasFromRect(this._rect),this._renderer.stopAllAnimations(!0),this._cleanGroups();var i=new Date;this._renderElements(t),this._lastRenderingTime=new Date-i}},_preserveOriginalCanvas(){this.__originalCanvas=this._canvas,this._canvas=(0,y.l)({},this._canvas)},_layoutAxes:E.ZT,_renderElements:function(n){var D,A,N,t=this,e=t._prepareToRender(n),i=t._isRotated(),r=t._isLegendInside(),m=[];(0,y.l)({},t._canvas),t._renderer.lock(),n.drawLegend&&t._legend&&t._legendGroup.linkAppend(),t.layoutManager.setOptions(t._layoutManagerOptions());var Q=t._getLayoutTargets();this._layoutAxes(se=>{var we=se?(0,y.l)({},n,{animate:!1,recreateCanvas:!0}):n,Re=t._renderAxes(we,e);t._shrinkAxes(se,Re)}),t._applyClipRects(e),t._appendSeriesGroups(),t._createCrosshairCursor(),Q.forEach(se=>{var{canvas:we}=se;m.push({left:we.left,right:we.width-we.right,top:we.top,bottom:we.height-we.bottom})}),t._scrollBar&&("discrete"===(D=t._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&D.categories&&D.categories.length<=1||"discrete"!==D.axisType&&D.min===D.max?A=N=void 0:(A=D.minVisible,N=D.maxVisible),t._scrollBar.init(D,!t._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(A,N)),t._updateTracker(m),t._updateLegendPosition(n,r),t._applyPointMarkersAutoHiding(),t._renderSeries(n,i,r),t._renderer.unlock()},_updateLegendPosition:E.ZT,_createCrosshairCursor:E.ZT,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(n,t,e){this._calculateSeriesLayout(n,t),this._renderSeriesElements(n,e)},_calculateSeriesLayout:function(n,t){n.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(n)},_getArgFilter:()=>()=>!0,_getValFilter:n=>()=>!0,_getPointsToAnimation(n){var t=this._getArgFilter();return n.map(e=>{var i=this._getValFilter(e);return e.getPoints().filter(r=>r.getOptions().visible&&t(r.argument)&&(i(r.getMinValue(!0))||i(r.getMaxValue(!0)))).length})},_renderSeriesElements:function(n,t){var e,r,i=this.series,m=i.length,D=this._themeManager.getOptions("resolveLabelOverlapping"),A=this._getPointsToAnimation(i);for(e=0;e<m;e++)this._applyExtraSettings(r=i[e],n),r.draw(n.animate&&A[e]<=n.animationPointsLimit&&this._renderer.animationEnabled(),n.hideLayoutLabels,this._getLegendCallBack(r));"none"===D?this._adjustSeriesLabels(!1):this._locateLabels(D),this._renderTrackers(t),this._tracker.repairTooltip(),this._renderExtraElements(),this._clearCanvas(),this._seriesElementsDrawn=!0},_changesApplied(){this._seriesElementsDrawn&&(this._seriesElementsDrawn=!1,this._drawn(),this._renderCompleteHandler())},_locateLabels(n){this._resolveLabelOverlapping(n)},_renderExtraElements(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(n){var t;switch(n){case"stack":t=this._resolveLabelOverlappingStack;break;case"hide":t=this._resolveLabelOverlappingHide;break;case"shift":t=this._resolveLabelOverlappingShift}return(0,w.mf)(t)&&t.call(this)},_getVisibleSeries:function(){return(0,E.h3)(this.getAllSeries(),function(n){return n.isVisible()})},_resolveLabelOverlappingHide:function(){var t,e,i,m,D,A,n=[],N=this._getVisibleSeries();for(m=0;m<N.length;m++)for(A=N[m].getVisiblePoints(),D=0;D<A.length;D++)n.push.apply(n,A[D].getLabels());for(m=0;m<n.length;m++)if((t=n[m]).isVisible())for(i=t.getBoundingRect(),D=m+1;D<n.length;D++)M7(i,(e=n[D]).getBoundingRect())&&e.draw(!1)},_cleanGroups:function(){this._stripsGroup.linkRemove().clear(),this._gridGroup.linkRemove().clear(),this._axesGroup.linkRemove().clear(),this._constantLinesGroup.clear(),this._stripLabelAxesGroup.linkRemove().clear(),this._labelsGroup.linkRemove().clear(),this._crosshairCursorGroup.linkRemove().clear(),this._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:()=>!1,_createLegend:function(){var n=function I7(n){var t=function T7(n){return{nameField:n+"Name",colorField:n+"Color",indexField:n+"Index"}}(n);return{getFormatObject:function(e){var i={};return i[t.indexField]=e.id,i[t.colorField]=e.states.normal.fill,i[t.nameField]=e.text,i},textField:t.nameField}}(this._legendDataField);this._legend=new oh({renderer:this._renderer,widget:this,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:n.textField,getFormatObject:n.getFormatObject,allowInsidePosition:this._allowLegendInsidePosition()}),this._updateLegend(),this._layout.add(this._legend)},_updateLegend:function(){var n=this._themeManager,t=n.getOptions("legend"),e=this._getLegendData();t.containerBackgroundColor=n.getOptions("containerBackgroundColor"),t._incidentOccurred=this._incidentOccurred,this._legend.update(e,t,n.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(n){var t=this._getAnimationOptions(),e=(0,y.l)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:t.enabled,animationPointsLimit:t.maxPointCountSupported},n,this.__renderOptions);return(0,w.$K)(e.recreateCanvas)||(e.recreateCanvas=e.adjustAxes&&e.drawLegend&&e.drawTitle),e},_processRefreshData:function(n){var t=J2.indexOf(this._currentRefreshData),e=J2.indexOf(n);(!this._currentRefreshData||t>=0&&e<t)&&(this._currentRefreshData=n),this._requestChange(["REFRESH"])},_getLegendData:function(){return Vn(this._getLegendTargets(),function(n){var t=n.legendData,e=n.getLegendStyles,i=e.normal.opacity;n.visible||((!(0,w.$K)(i)||i>.3)&&(i=.3),t.textOpacity=.3);var r={opacity:i};return t.states={hover:(0,y.l)({},e.hover,r),selection:(0,y.l)({},e.selection,r),normal:(0,y.l)({},e.normal,r)},t})},_getLegendOptions:function(n){return{legendData:{text:n[this._legendItemTextField],id:n.index,visible:!0},getLegendStyles:n.getLegendStyles(),visible:n.isVisible()}},_disposeSeries(n){var t;this.series&&((0,w.$K)(n)?(this.series[n].dispose(),this.series.splice(n,1)):((0,O.S6)(this.series,(e,i)=>i.dispose()),this.series.length=0)),null!==(t=this.series)&&void 0!==t&&t.length||(this.series=[])},_disposeSeriesFamilies(){(0,O.S6)(this.seriesFamilies||[],function(n,t){t.dispose()}),this.seriesFamilies=null,this._needHandleRenderComplete=!0},_optionChanged:function(n){this._themeManager.resetOptions(n.name),this.callBase.apply(this,arguments)},_applyChanges(){this._themeManager.update(this._options.silent()),this.callBase.apply(this,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","USE_SPIDER_WEB","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){(!this.series||this.needToPopulateSeries)&&!this._changes.has("FORCE_DATA_INIT")&&this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData(kO)},_change_FORCE_RENDER:function(){this._processRefreshData(kO)},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES(){Mn(this._canvas),this._reinitAxes(),this._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData(kO)},_change_REINIT:function(){this._processRefreshData(X2)},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(n){this.series.forEach(t=>{t.resetApplyingAnimation(n)}),this._resetAxesAnimation(n)},_resetAxesAnimation:E.ZT,_refreshSeries:function(n){this.needToPopulateSeries=!0,this._requestChange([n])},_change_CORRECT_AXIS(){this._correctAxes()},_doRefresh:function(){var n=this._currentRefreshData;n&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[n]())},_updateCanvasClipRect:function(n){var t=Math.max(n.width-n.left-n.right,0),e=Math.max(n.height-n.top-n.bottom,0);this._canvasClipRect.attr({x:n.left,y:n.top,width:t,height:e}),this._backgroundRect.attr({x:n.left,y:n.top,width:t,height:e})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(n){n.createPoints(!1)},_handleSeriesDataUpdated(){this._getVisibleSeries().some(n=>n.useAggregation())&&this._populateMarginOptions(),this.series.forEach(n=>this._processSingleSeries(n),this)},_dataSpecificInit(n){(!this.series||this.needToPopulateSeries)&&(this.series=this._populateSeries()),this._repopulateSeries(),this._seriesPopulatedHandlerCore(),this._populateBusinessRange(),this._tracker.updateSeries(this.series,this._changes.has("INIT")),this._updateLegend(),n&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var n=this._themeManager,t=this._dataSourceItems(),e=n.getOptions("dataPrepareSettings");n.getOptions("seriesTemplate")&&this._populateSeries(t),this._groupSeries();var r=a0(t,this._groupsData,this._incidentOccurred,e);n.resetPalette(),this.series.forEach(function(m){m.updateData(r[m.getArgumentField()])}),this._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var n=!0;this._needHandleRenderComplete&&((0,O.S6)(this.series,function(t,e){n=n&&e.canRenderCompleteHandle()}),n&&(this._needHandleRenderComplete=!1,this._eventTrigger("done",{target:this})))},_dataIsReady:function(){return(0,w.$K)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions(n){for(var A,N,t=this,e=t._themeManager,i=e.getOptions("seriesTemplate"),r=i?nr(i,n||[]):t.option("series"),m=Y2(r)?r:r?[r]:[],D=t._getExtraOptions(),Q=[],se=Re=>{t._specialProcessSeries(),t._populateBusinessRange(Re&&Re.getValueAxis(),!0),t._renderer.stopAllAnimations(!0),t._updateLegend(),t._requestChange(["FULL_RENDER"])},we=0;we<m.length;we++)A=(0,y.l)(!0,{},m[we],D),(!(0,w.$K)(A.name)||""===A.name)&&(A.name="Series "+(we+1).toString()),A.rotated=t._isRotated(),A.customizePoint=e.getOptions("customizePoint"),A.customizeLabel=e.getOptions("customizeLabel"),A.visibilityChanged=se,A.incidentOccurred=t._incidentOccurred,N=e.getOptions("series",A,m.length),t._checkPaneName(N)&&Q.push(N);return Q},_populateSeries(n){var t,D,e=this,i=[],r=e._incidentOccurred,m=e._populateSeriesOptions(n),A=!1;e.needToPopulateSeries=!1,(0,O.S6)(m,(Q,se)=>{var we=e.series&&e.series.filter(Re=>Re.name===se.name&&-1===i.map(Ue=>Ue.series).indexOf(Re))[0];we&&we.type===se.type?i.push({series:we,options:se}):(i.push({options:se}),A=!0)}),0!==(null===(t=e.series)||void 0===t?void 0:t.length)&&e._tracker.clearHover(),(0,O.iY)(e.series,(Q,se)=>{i.some(we=>se===we.series)||(e._disposeSeries(Q),A=!0)}),!A&&(A=i.some(Q=>Q.series.name!==m[Q.series.index].name)),e.series=[],A&&e._disposeSeriesFamilies(),e._themeManager.resetPalette();var N=function(Q){e.series.forEach(function(se){se.notify(Q)})};return(0,O.S6)(i,(Q,se)=>{var we,Re,Ue=se.options,st=null!==(we=null===(Re=e._argumentAxes)||void 0===Re?void 0:Re.filter(Kt=>Kt.pane===Ue.pane)[0])&&void 0!==we?we:e.getArgumentAxis(),Ot={commonSeriesModes:e._getSelectionModes(),argumentAxis:st,valueAxis:e._getValueAxis(Ue.pane,Ue.axis)};se.series?(D=se.series).updateOptions(Ue,Ot):D=new S0((0,y.l)({renderer:e._renderer,seriesGroup:e._seriesGroup,labelsGroup:e._labelsGroup,eventTrigger:e._eventTrigger,eventPipe:N,incidentOccurred:r},Ot),Ue),D.isUpdated?(D.index=e.series.length,e.series.push(D)):r("E2101",[Ue.type])}),e.series},getStackedPoints:function(n){var t=n.series.getStackName();return this._getVisibleSeries().reduce((e,i)=>((!(0,w.$K)(i.getStackName())||!(0,w.$K)(t)||t===i.getStackName())&&(e=e.concat(i.getPointsByArg(n.argument))),e),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(n){var t=null;return(0,O.S6)(this.series,function(e,i){if(i.name===n)return t=i,!1}),t},getSeriesByPos:function(n){return(this.series||[])[n]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover(){this._tracker.clearHover()},render:function(n){var t=this;return t.__renderOptions=n,t.__forceRender=n&&n.force,t.callBase.apply(t,arguments),t.__renderOptions=t.__forceRender=null,t},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize(){var n=this._layoutManagerOptions();return[n.width,n.height]},_change_REFRESH(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER(){this._forceRender()},_change_INIT(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach(function(n){Td.prototype._optionChangesMap[n]="REFRESH_SERIES_DATA_INIT"}),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","stickyHovering"].forEach(function(n){Td.prototype._optionChangesMap[n]="FORCE_RENDER"}),["minBubbleSize","maxBubbleSize","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach(function(n){Td.prototype._optionChangesMap[n]="REFRESH_SERIES_FAMILIES"}),Td.addPlugin(Bu),Td.addPlugin(Oe),Td.addPlugin(za),Td.addPlugin(Fe),Td.addPlugin(wi);var A7=Td.prototype._change_TITLE;Td.prototype._change_TITLE=function(){A7.apply(this,arguments),this._change(["FORCE_RENDER"])};var LO=Math,BO=LO.floor,iA=LO.max,tL=LO.abs,k7=n=>({transform:function(t,e){return(0,re.zB)(Sr(t,e,n.allowNegatives,n.linearThreshold))},getTicks:function(t,e,i){for(var r=[],m=this.transform(e[0],i);r.length<e.length;)r.push(m),m=(0,re.zB)(m+t);return r}}),R7=n=>({transform:function(t,e){return(0,re.zB)(Wr(t,e,n.allowNegatives,n.linearThreshold))},getTicks:function(t,e,i){for(var m,r=[],D=0;D<e.length;D+=1)m=this.transform(e[D],i),r.push(m);return r}});function nL(n,t){if(n.isLogarithmic){var e=n.logarithmicBase,i=n.tickValues;n.minValue=t.transform(n.minValue,e),n.oldMinValue=t.transform(n.oldMinValue,e),n.maxValue=t.transform(n.maxValue,e),n.oldMaxValue=t.transform(n.oldMaxValue,e),n.tickInterval=LO.round(n.tickInterval),n.tickInterval<1&&(n.tickInterval=1);var r=t.getTicks(n.tickInterval,i,e);r.tickInterval=n.tickInterval,n.tickValues=r}}function bf(n){return n.maxValue-n.minValue||1}function iL(n){for(var t=0;t<n.length;t++)if(!n[t].stubData)return n[t];return null}var K7={synchronize:function(n){(0,O.S6)(function P7(n){var t={};return n.forEach(e=>{var i=e.pane;t[i]||(t[i]=[]),t[i].push(e)}),t}(n),function(t,e){var i,r;if(e.length>1){if(i=function L7(n){return n.reduce(function(t,e){var N,i=e.getTicksValues(),r=i.majorTicksValues,m=e.getOptions(),D=e.getTranslator().getBusinessRange(),A=e.getVisibleArea(),Q=e._tickInterval,se=m.synchronizedValue,we=e.getViewport().action;if(r&&r.length>0&&(0,w.kE)(r[0])&&"discrete"!==m.type&&!D.isEmpty()&&(!D.breaks||!D.breaks.length)&&"zoom"!==we&&"pan"!==we){e.applyMargins();var Re=e.getTranslator().from(A[0]),Ue=e.getTranslator().from(A[1]),st=Re<Ue?Re:Ue,Ot=Re<Ue?Ue:Re;st===Ot&&(0,w.$K)(se)&&(Q=tL(r[0]-se)||1,st=r[0]-Q,Ot=r[0]+Q),nL(N={axis:e,isLogarithmic:"logarithmic"===m.type,logarithmicBase:D.base,tickValues:r,minorValues:i.minorTicksValues,minorTickInterval:e._minorTickInterval,minValue:st,oldMinValue:st,maxValue:Ot,oldMaxValue:Ot,inverted:D.invert,tickInterval:Q,synchronizedValue:se},k7(e.getTranslator().getBusinessRange())),t.push(N)}return t},[])}(e),i.length<2||!iL(i))return;(function B7(n){var t=n.reduce((e,i)=>iA(e,i.tickValues.length),0);n.forEach(e=>{var i,r,m=0,D=e.synchronizedValue,A=e.tickValues,N=e.tickInterval;if((0,w.$K)(D))e.baseTickValue=e.invertedBaseTickValue=D,e.tickValues=[e.baseTickValue];else{if(A.length>1&&N){for(r=(i=BO((t+1)/A.length))>1?BO((t+1)/i):t,m=BO((r-A.length)/2);m>0&&0!==A[0];)A.unshift((0,re.zB)(A[0]-N)),m--;for(;A.length<r;)A.push((0,re.zB)(A[A.length-1]+N));e.tickInterval=N/i}e.baseTickValue=A[0],e.invertedBaseTickValue=A[A.length-1]}})})(i),function F7(n){var t=iL(n),e=t.tickInterval;n.forEach(i=>{var r,m,D,A;i!==t&&(e&&i.tickInterval&&(i.stubData&&(0,w.$K)(i.synchronizedValue)&&(i.oldMinValue=i.minValue=i.baseTickValue-(t.baseTickValue-t.minValue)/e*i.tickInterval,i.oldMaxValue=i.maxValue=i.baseTickValue-(t.baseTickValue-t.maxValue)/e*i.tickInterval),r=e/bf(t)/i.tickInterval*bf(i),i.maxValue=i.minValue+bf(i)/r),D=t.inverted&&!i.inverted||!t.inverted&&i.inverted?t.maxValue-t.invertedBaseTickValue:t.baseTickValue-t.minValue,A=bf(i),m=(D/bf(t)-(i.baseTickValue-i.minValue)/A)*A,i.minValue-=m,i.maxValue-=m)})}(i),r=function V7(n){var t,e,i=0,r=0;return n.forEach(m=>{var D=m.inverted;t=m.minValue>m.oldMinValue?(m.minValue-m.oldMinValue)/bf(m):0,e=m.maxValue<m.oldMaxValue?(m.oldMaxValue-m.maxValue)/bf(m):0,i=iA(i,D?e:t),r=iA(r,D?t:e)}),{start:i,end:r}}(i),r=function Z7(n,t){return n.reduce((e,i)=>{var r=i.inverted,{start:m,end:D}=i.axis.getCorrectedValuesToZero(i.minValue,i.maxValue);return(0,w.$K)(m)||(0,w.$K)(D)?r?{start:e.start,end:Math.min(e.end,D)}:{start:Math.min(e.start,m),end:e.end}:e},t)}(i,r),function N7(n,t){n.forEach(e=>{var i=bf(e),r=e.inverted;e.minValue=(0,re.zB)(e.minValue-t[r?"end":"start"]*i),e.maxValue=(0,re.zB)(e.maxValue+t[r?"start":"end"]*i)})}(i,r),function W7(n){var e,t=[];n.forEach(i=>{i.oldMaxValue-i.oldMinValue==0?t.push(i):!(0,w.$K)(e)&&!(0,w.$K)(i.synchronizedValue)&&(e=tL((i.maxValue-i.minValue)/(i.tickValues[BO(i.tickValues.length/2)]-i.minValue||i.maxValue)))}),(0,w.$K)(e)&&t.forEach(i=>{var r=i.tickValues[0],m=r*e;r>0?(i.maxValue=m,i.minValue=0):r<0&&(i.minValue=m,i.maxValue=0)})}(i),function H7(n){var t=!1;n.forEach(e=>{t=t||(0,w.$K)(e.synchronizedValue)}),n.forEach(e=>{var A,i=e.tickInterval,r=e.tickValues,m=e.maxValue,D=e.minValue;if(t&&i){for(;(A=(0,re.zB)(r[0]-i))>=D;)r.unshift(A);for(A=r[r.length-1];(A=(0,re.zB)(A+i))<=m;)r.push(A)}for(;r[0]+i/10<D;)r.shift();for(;r[r.length-1]-i/10>m;)r.pop()})}(i),function U7(n){n.forEach(function(t){if(t.minorTickInterval){for(var e=[],i=t.minorTickInterval,r=t.tickInterval/i-1,m=1;m<t.tickValues.length;m++)for(var D=t.tickValues[m-1],A=0;A<r;A++)e.push(D+=i);t.minorValues=e}})}(i),i.forEach(m=>{nL(m,R7(m.axis.getTranslator().getBusinessRange()))}),function z7(n){n.forEach(t=>{var e=t.axis,i=e.getTranslator().getBusinessRange();i.min===i.minVisible&&(i.min=t.minValue),i.max===i.maxVisible&&(i.max=t.maxValue),i.minVisible=t.minValue,i.maxVisible=t.maxValue,i.min>i.minVisible&&(i.min=i.minVisible),i.max<i.maxVisible&&(i.max=i.maxVisible),e.getTranslator().updateBusinessRange(i),e.setTicks({majorTicks:t.tickValues,minorTicks:t.minorValues})})}(i)}})}};const G7=K7;var{round:I0,abs:rA,pow:rL,sqrt:j7}=Math,oL=Math.min;function oA(n){return n.getStackName()||n.getBarOverlapGroup()}function aL(n,t,e){var i,r,se,m=[],D=[],A={},N=t.barGroupWidth,Q=null===(i=n[0])||void 0===i?void 0:i.getArgumentAxis();if(null!==(r=n[0])&&void 0!==r&&r.useAggregation()){var we,Re="datetime"===(null===(we=n[0])||void 0===we?void 0:we.argumentType),Ue=Q.getTickInterval(),st=Q.getAggregationInterval();Ue=Re?te.Z.dateToMilliseconds(Ue):Ue,se=(st=Re?te.Z.dateToMilliseconds(st):st)<Ue?st:Ue}se=Q?.getTranslator().getInterval(se);var Ot=N?se>N?N:se:se*(1-function X7(n){return n<0||n>1?.3:n}(t.barGroupPadding));n.forEach(function(Kt,sn){var rn,wn=oA(Kt)||sn.toString();for(rn in Kt.pointsByArgument)-1===D.indexOf(rn.valueOf())&&D.push(rn.valueOf());-1===m.indexOf(wn)&&(m.push(wn),A[wn]=[]),A[wn].push(Kt)}),D.forEach(function(Kt){var sn=m.reduce((rn,Ft)=>(function q7(n,t){return n.some(function(e){return!e.getOptions().ignoreEmptyPoints||e.getPointsByArg(t,!0).some(function(i){return i.hasValue()})})}(A[Ft],Kt)&&rn.push(Ft),rn),[]),wn=sL(Ot,sn.length);m.forEach(rn=>{!function J7(n,t,e,i,r,m,D){n.forEach(function(A){var st,N=D(t.indexOf(i),t.length),Q=A.getPointsByArg(e,!0),se=function Y7(n){return n<0||n>1?void 0:n}(A.getOptions().barPadding),we=A.getOptions().barWidth,Re=lL(N,r),Ue=r.width;-1!==N&&(((0,w.$K)(se)||(0,w.$K)(we))&&(Ue=(st=sL(m,t.length,1-se,we)).width,A.getBarOverlapGroup()||(Re=lL(N,st))),function Q7(n,t,e){(0,O.S6)(n,function(i,r){r.correctCoordinates({width:t,offset:e})})}(Q,Ue,Re))})}(A[rn],sn,Kt,rn,wn,Ot,e)})})}function sL(n,t,e,i){var r,m;return i?(m=oL(i,n/t),r=t>1?I0((n-I0(m)*t)/(t-1)):0):(0,w.$K)(e)?(m=n*e/t,r=t>1?I0((n-n*e)/(t-1)):0):m=(n-(r=I0(n/t*.2))*(t-1))/t,{width:m>1?I0(m):1,spacing:r,middleIndex:t/2,rawWidth:m}}function lL(n,t){return(n-t.middleIndex+.5)*(t.rawWidth<1?t.rawWidth:t.width)-(t.middleIndex-n-.5)*t.spacing}function Kv(n){return n.series.filter(function(t){return t.isVisible()})}function aA(n,t,e){return((n.positive[t]||{})[e]||0)+(-(n.negative[t]||{})[e]||0)}function uL(n){return n?function(t,e){return e-t-1}:function(t){return t}}function dL(n){return n[0]&&n[0].getArgumentAxis().getTranslator().isInverted()}function FO(){var n=Kv(this);aL(n,this._options,uL(dL(n)))}function Cb(){var n=this._options.negativesAsZeroes,t=Kv(this),e={positive:{},negative:{}},i={left:{},right:{}},r={},m={};t.forEach(function(D){var A=oA(D),N=!1,Q=function nW(n){for(var e,t=n.getPoints(),i=0;i<t.length;i++){var r=t[i];if(e=r.initialValue&&r.initialValue.valueOf(),rA(e)>0)break}return(0,re.Xx)(e)}(D)<0?m:r;D._prevSeries=Q[A],Q[A]=D,D.holes=(0,y.l)(!0,{},i),D.getPoints().forEach(function(se,we,Re){var Ue=se.initialValue&&se.initialValue.valueOf(),st=se.argument.valueOf(),Ot=Ue>=0?e.positive:e.negative,Kt="bar"!==D.type;n&&Ue<0&&(Ot=e.positive,Ue=0,se.resetValue()),Ot[A]=Ot[A]||{};var sn=Ot[A];if(sn[st]?(Kt&&se.correctValue(sn[st]),sn[st]+=Ue):(sn[st]=Ue,Kt&&se.resetCorrection()),se.hasValue())N&&(N=!1,i.left[st]=(i.left[st]||0)+(se.value.valueOf()-(isFinite(se.minValue)?se.minValue.valueOf():0)),se._skipSetLeftHole=!0);else{var wn=Re[we-1];!N&&wn&&wn.hasValue()&&(st=wn.argument.valueOf(),wn._skipSetRightHole=!0,i.right[st]=(i.right[st]||0)+(wn.value.valueOf()-(isFinite(wn.minValue)?wn.minValue.valueOf():0))),N=!0}})}),t.forEach(function(D){var A=D.holes;D.getPoints().forEach(function(N){var Q=N.argument.valueOf();N.resetHoles(),!N._skipSetLeftHole&&N.setHole(A.left[Q]||i.left[Q]&&0,"left"),!N._skipSetRightHole&&N.setHole(A.right[Q]||i.right[Q]&&0,"right"),N._skipSetLeftHole=null,N._skipSetRightHole=null})}),this._stackKeepers=e,t.forEach(function(D){D.getPoints().forEach(function(A){var N=A.argument.valueOf(),Q=oA(D),se=aA(e,Q,N),we=function tW(n,t,e){return((n.positive[t]||{})[e]||0)+((n.negative[t]||{})[e]||0)}(e,Q,N);A.setPercentValue(se,we,i.left[N],i.right[N])})})}function cL(){var n=this,t=Kv(n),e=n._stackKeepers,i={positive:{},negative:{}};(0,O.S6)(t,function(r,m){var D=m.getOptions().minBarSize,A=m.getValueAxis().getTranslator(),N=D&&A.getMinBarSize(D),Q=m.getStackName();(0,O.S6)(m.getPoints(),function(se,we){if(we.hasValue()){var Re=we.initialValue&&we.initialValue.valueOf(),Ue=we.argument.valueOf();n.fullStacked&&(Re=Re/aA(e,Q,Ue)||0);var st=A.checkMinBarSize(Re,N,we.value),Ot=function eW(n){return n>=0?"positive":"negative"}(st),Kt=i[Ot][Q]=i[Ot][Q]||{};Kt[Ue]?(we.minValue=Kt[Ue],Kt[Ue]+=st):Kt[Ue]=st,we.value=Kt[Ue]}})}),n.fullStacked&&function iW(n,t){(0,O.S6)(n,function(e,i){var r=i.getStackName?i.getStackName():"default";(0,O.S6)(i.getPoints(),function(m,D){var A=aA(t,r,D.argument.valueOf());0!==A&&(D.value=D.value/A,(0,w.kE)(D.minValue)&&(D.minValue=D.minValue/A))})})}(t,i)}function rW(){var n=Kv(this);(0,O.S6)(n,function(t,e){var i=e.getOptions().minBarSize,r=e.getValueAxis().getTranslator(),m=i&&r.getMinBarSize(i);m&&(0,O.S6)(e.getPoints(),function(D,A){A.hasValue()&&A.value.valueOf()-A.minValue.valueOf()<m&&(A.value=A.value.valueOf()+m/2,A.minValue=A.minValue.valueOf()-m/2)})})}function oW(){(0,O.S6)(this.series,function(n,t){var e=t.getOptions().minBarSize,i=t.getValueAxis().getTranslator(),r=e&&i.getMinBarSize(e);r&&(0,O.S6)(t.getPoints(),function(m,D){D.hasValue()&&(D.value=i.checkMinBarSize(D.initialValue,r))})})}function aW(){var n=Kv(this);aL(n,{barGroupPadding:.3},uL(dL(n)))}function sW(){var n=Kv(this);if(n.length){var se,Re,t=this._options,e=n[0].getArgumentAxis().getVisibleArea(),i=n[0].getValueAxis().getVisibleArea(),r=oL(e[1]-e[0],i[1]-i[0]),m=rL(t.minBubbleSize,2),D=rL(r*t.maxBubbleSize,2),A=(r*t.maxBubbleSize+t.minBubbleSize)/2,N=1/0,Q=-1/0;(0,O.S6)(n,function(Ot,Kt){(0,O.S6)(Kt.getPoints(),function(sn,wn){Q=Q>wn.size?Q:wn.size,N=N<wn.size?N:wn.size})});var Ue=Q-N,st=rA(D-m);(0,O.S6)(n,function(Ot,Kt){(0,O.S6)(Kt.getPoints(),function(sn,wn){Q===N?se=I0(A):(Re=rA(wn.size-N)/Ue,se=I0(j7(st*Re+m))),wn.correctCoordinates(se)})})}}function VO(n){switch(this.type=En(n.type),this.pane=n.pane,this.series=[],this.updateOptions(n),this.type){case"bar":this.adjustSeriesDimensions=FO,this.updateSeriesValues=oW,this.adjustSeriesValues=Cb;break;case"rangebar":this.adjustSeriesDimensions=FO,this.updateSeriesValues=rW;break;case"fullstackedbar":this.fullStacked=!0,this.adjustSeriesDimensions=FO,this.adjustSeriesValues=Cb,this.updateSeriesValues=cL;break;case"stackedbar":this.adjustSeriesDimensions=FO,this.adjustSeriesValues=Cb,this.updateSeriesValues=cL;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":this.fullStacked=!0,this.adjustSeriesValues=Cb;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":this.adjustSeriesValues=Cb;break;case"candlestick":case"stock":this.adjustSeriesDimensions=aW;break;case"bubble":this.adjustSeriesDimensions=sW}}VO.prototype={constructor:VO,adjustSeriesDimensions:E.ZT,adjustSeriesValues:E.ZT,updateSeriesValues:E.ZT,updateOptions:function(n){this._options=n},dispose:function(){this.series=null},add:function(n){var t=this.type;this.series=Vn(n,e=>e.type===t?e:null)}};var M0=Array.isArray,pL="commonAxisSettings",gL="default",NO="VISUAL_RANGE";function fL(n){return M0(n)?0===n.length?[{}]:n:[n]}function mL(n,t,e,i){var r,m;if(e){r={skipEventRising:!0};var D=_L(n.fullName,m=n.value);D&&(r={allowPartialUpdate:!0},m=D)}else m=((0,w.$K)(i)?n.value[i]:n.value).visualRange;t.visualRange(m,r)}function _L(n,t){var e=n.split("."),i=e[e.length-1];if("endValue"===i||"startValue"===i)return{[i]:t}}var vL=Td.inherit({_fontFields:[pL+".label.font",pL+".title.font"],_partialOptionChangesMap:{visualRange:NO,_customVisualRange:NO,strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore(){this._panesClipRects={},this.callBase()},_disposeCore(){var n=this._disposeObjectsInArray,t=this._panesClipRects;this.callBase(),n.call(t,"fixed"),n.call(t,"base"),n.call(t,"wide"),this._panesClipRects=null,this._labelsAxesGroup.linkOff(),this._labelsAxesGroup.dispose(),this._labelsAxesGroup=null},_dispose:function(){var n=this._disposeObjectsInArray;this.callBase(),this.panes=null,this._legend&&(this._legend.dispose(),this._legend=null),n.call(this,"panesBackground"),n.call(this,"seriesFamilies"),this._disposeAxes()},_createPanes:function(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects(n){(this._panesClipRects[n]||[]).forEach(e=>e&&e.dispose()),this._panesClipRects[n]=[]},_getElementsClipRectID(n){var t=this._panesClipRects.fixed[this._getPaneIndex(n)];return t&&t.id},_getPaneIndex(n){var t,e=n||gL;return(0,O.S6)(this.panes,(i,r)=>{if(r.name===e)return t=i,!1}),t},_updateSize(){this.callBase(),Mn(this._canvas)},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_populateAxes(){var D,se,n=this,t=n.panes,e=n._isRotated(),i=fL(n.option("argumentAxis")||{})[0],r=n.option("valueAxis"),m=fL(r||{}),A=[],N=[],Q=0,we=n._getCrosshairMargins();se=e?"right"===i.position?t[t.length-1].name:t[0].name:"top"===i.position?t[0].name:t[t.length-1].name,D=Vn(t,Re=>n._populateAxesOptions("argumentAxis",i,{pane:Re.name,name:null,optionPath:"argumentAxis",crosshairMargin:e?we.x:we.y},e,Re.name!==se)),(0,O.S6)(m,(Re,Ue)=>{var st,Ot=[],Kt=Ue.name;Kt&&N.includes(Kt)?n._incidentOccurred("E2102"):(Kt&&N.push(Kt),Ue.pane&&Ot.push(Ue.pane),null!==(st=Ue.panes)&&void 0!==st&&st.length&&(Ot=Ot.concat(Ue.panes.slice(0))),(Ot=Si(Ot)).length||Ot.push(void 0),(0,O.S6)(Ot,(sn,wn)=>{var rn=M0(r)?"valueAxis[".concat(Re,"]"):"valueAxis";A.push(n._populateAxesOptions("valueAxis",Ue,{name:Kt||"defaultAxisName"+Q++,pane:wn,priority:Re,optionPath:rn,crosshairMargin:e?we.y:we.x},e))}))}),n._redesignAxes(D,!0,se),n._redesignAxes(A,!1)},_redesignAxes(n,t,e){var i=this,r=[],m=t?i._argumentAxes:i._valueAxes;(0,O.S6)(n,(D,A)=>{var N=m&&m.filter(Q=>Q.name===A.name&&(!(0,w.$K)(A.pane)&&i.panes.some(se=>se.name===Q.pane)||Q.pane===A.pane));N&&N.length>0?(0,O.S6)(N,(Q,se)=>{var we=function cW(n,t,e){if(e)return{argumentAxisType:n.argumentAxisType,argumentType:n.argumentType};var{valueAxisType:i,valueType:r}=n.groups.filter(m=>m.valueAxis===t)[0];return{valueAxisType:i,valueType:r}}(i._groupsData,se,t);se.updateOptions(A),t?se.setTypes(we.argumentAxisType,we.argumentType,"argumentType"):se.setTypes(we.valueAxisType,we.valueType,"valueType"),se.validate(),r.push({axis:se})}):r.push({options:A})}),m?(0,O.iY)(m,(D,A)=>{r.some(N=>N.axis&&N.axis===A)||i._disposeAxis(D,t)}):m=t?i._argumentAxes=[]:i._valueAxes=[],(0,O.S6)(r,(D,A)=>{var N=A.axis;A.axis&&t?A.axis.isVirtual=A.axis.pane!==e:A.options&&(N=i._createAxis(t,A.options,t?A.options.pane!==e:void 0),m.push(N)),N.applyVisualRangeSetter(i._getVisualRangeSetter())})},_disposeAxis(n,t){var e=t?this._argumentAxes:this._valueAxes,i=e[n];i&&(i.dispose(),e.splice(n,1))},_disposeAxes:function(){var n=this._disposeObjectsInArray;n.call(this,"_argumentAxes"),n.call(this,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){return(this.series||[]).map(n=>{var t=this._getLegendOptions(n);return t.legendData.series=n,n.getOptions().showInLegend||(t.legendData.visible=!1),t})},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var n;for(n=0;n<this.series.length;++n)this.series[n].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var n,r,t=this,e=[],i=[],m=t._themeManager,D=m.getOptions("negativesAsZeroes"),A=m.getOptions("negativesAsZeros"),N={minBubbleSize:m.getOptions("minBubbleSize"),maxBubbleSize:m.getOptions("maxBubbleSize"),barGroupPadding:m.getOptions("barGroupPadding"),barGroupWidth:m.getOptions("barGroupWidth"),negativesAsZeroes:(0,w.$K)(D)?D:A};null!==(n=t.seriesFamilies)&&void 0!==n&&n.length?(0,O.S6)(t.seriesFamilies,function(Q,se){se.updateOptions(N),se.adjustSeriesValues()}):((0,O.S6)(t.series,function(Q,se){e.includes(se.type)||e.push(se.type)}),(0,O.S6)(t._getLayoutTargets(),function(Q,se){r=t._getSeriesForPane(se.name),(0,O.S6)(e,function(we,Re){var Ue=new VO({type:Re,pane:se.name,minBubbleSize:N.minBubbleSize,maxBubbleSize:N.maxBubbleSize,barGroupPadding:N.barGroupPadding,barGroupWidth:N.barGroupWidth,negativesAsZeroes:N.negativesAsZeroes,rotated:t._isRotated()});Ue.add(r),Ue.adjustSeriesValues(),i.push(Ue)})}),t.seriesFamilies=i)},_updateSeriesDimensions:function(){var n,t=this.seriesFamilies||[];for(n=0;n<t.length;n++){var e=t[n];e.updateSeriesValues(),e.adjustSeriesDimensions()}},_getLegendCallBack:function(n){return this._legend&&this._legend.getActionCallback(n)},_appendAxesGroups:function(){this._stripsGroup.linkAppend(),this._gridGroup.linkAppend(),this._axesGroup.linkAppend(),this._labelsAxesGroup.linkAppend(),this._constantLinesGroup.linkAppend(),this._stripLabelAxesGroup.linkAppend(),this._scaleBreaksGroup.linkAppend()},_populateMarginOptions(){var n=this,t=function dW(n,t,e,i){return Math.min(i?n.width/t:n.width,i?n.height:n.height/t)*e}(n.getSize(),n.panes.length,n._themeManager.getOptions("maxBubbleSize"),n._isRotated()),e={};n._valueAxes.forEach(i=>{var r=n.series.filter(function(D){return D.getValueAxis()===i}),m={};r.forEach(D=>{if(D.isVisible()){var A=function uW(n,t){return n.processBubbleSize&&(n.size=t),n}(D.getMarginOptions(),t);m=dr(m,A),e=dr(e,A)}}),i.setMarginOptions(m)}),n._argumentAxes.forEach(i=>i.setMarginOptions(e))},_populateBusinessRange(n,t){var e=this,i=e._isRotated(),r=e._getVisibleSeries(),m={},D=new as({rotated:!!i}),A=Q=>Q.pane||gL;if(e.panes.forEach(Q=>m[Q.name]=new as({rotated:!!i})),e._valueAxes.forEach(Q=>{var se=new as({rotated:!!i,pane:Q.pane,axis:Q.name}),we=r.filter(Re=>Re.getValueAxis()===Q);we.forEach(Re=>{var Ue=Re.getRangeData();se.addRange(Ue.val),m[A(Q)].addRange(Ue.arg)}),(!n||n&&we.length&&Q===n)&&(Q.setGroupSeries(we),Q.setBusinessRange(se,e._axesReinitialized||t,e._argumentAxes[0]._lastVisualRangeUpdateMode))}),!n||n&&r.length){Object.keys(m).forEach(Q=>D.addRange(m[Q]));var N=D.interval;e._argumentAxes.forEach(Q=>{var se,we=null!==(se=m[A(Q)].interval)&&void 0!==se?se:N;Q.setBusinessRange(new as((0,di.Z)({},D,{interval:we})),e._axesReinitialized,void 0,e._groupsData.categories)})}e._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter(n=>!n.isVirtual)[0]},getValueAxis:function(n){return(this._valueAxes||[]).filter((0,w.$K)(n)?t=>t.name===n:t=>t.pane===this.defaultPane)[0]},_getGroupsData:function(){var n=this,t=[];return n._valueAxes.forEach(function(e){t.push({series:n.series.filter(function(i){return i.getValueAxis()===e}),valueAxis:e,valueOptions:e.getOptions()})}),{groups:t,argumentAxes:n._argumentAxes,argumentOptions:n._argumentAxes[0].getOptions()}},_groupSeries:function(){this._correctValueAxes(!1),this._groupsData=this._getGroupsData()},_processValueAxisFormat:function(){var n=[];this.series.forEach(function(t){var e=t.getValueAxis();t.isFullStackedSeries()&&(e.setPercentLabelFormat(),n.push(e))}),this._valueAxes.forEach(function(t){-1===n.indexOf(t)&&t.resetAutoLabelFormat()})},_populateAxesOptions(n,t,e,i,r){var m=this._prepareStripsAndConstantLines(n,t,i),D=(0,y.l)(!0,{},m,e,this._prepareAxisOptions(n,m,i));return r&&(D.visible=D.tick.visible=D.minorTick.visible=D.label.visible=!1,D.title={}),D},_getValFilter:n=>dh.getViewPortFilter(n.getValueAxis().visualRange()||{}),_createAxis(n,t,e){var i=this,m=(0,y.l)({renderer:i._renderer,incidentOccurred:i._incidentOccurred,eventTrigger:i._eventTrigger,axisClass:n?"arg":"val",widgetClass:"dxc",stripsGroup:i._stripsGroup,stripLabelAxesGroup:i._stripLabelAxesGroup,constantLinesGroup:i._constantLinesGroup,scaleBreaksGroup:i._scaleBreaksGroup,axesContainerGroup:i._axesGroup,labelsAxesGroup:i._labelsAxesGroup,gridGroup:i._gridGroup,isArgumentAxis:n,getTemplate:A=>i._getTemplate(A)},i._getAxisRenderingOptions(n?"argumentAxis":"valueAxis")),D=new zl(m);return D.updateOptions(t),D.isVirtual=e,D},_applyVisualRangeByVirtualAxes:(n,t)=>!1,_applyCustomVisualRangeOption(n,t){n.getOptions().optionPath&&this._parseVisualRangeOption("".concat(n.getOptions().optionPath,".visualRange"),t)},_getVisualRangeSetter(){var n=this;return function(t,e){var{skipEventRising:i,range:r}=e;n._applyCustomVisualRangeOption(t,r),t.setCustomVisualRange(r),t.skipEventRising=i,n._applyVisualRangeByVirtualAxes(t,r)||(n._applyingChanges?n._change_VISUAL_RANGE():n._requestChange([NO]))}},_getTrackerSettings:function(){return(0,y.l)(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(n,t,e){return(t=this._themeManager.getOptions(n,t,e)).strips&&(0,O.S6)(t.strips,function(i){t.strips[i]=(0,y.l)(!0,{},t.stripStyle,t.strips[i])}),t.constantLines&&(0,O.S6)(t.constantLines,function(i,r){t.constantLines[i]=(0,y.l)(!0,{},t.constantLineStyle,r)}),t},refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes(n){n();var t=this.checkForMoreSpaceForPanesCanvas();if(t){var e=this._rect.slice(),i=this._layout.backward(e,e,[t.width,t.height]);t.width=Math.max(0,i[0]),t.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(e),n(t)}},checkForMoreSpaceForPanesCanvas(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption(n,t){var e=this,i=n.split(/[.[]/)[0],r=n.match(/\d+/g);r=(0,w.$K)(r)?parseInt(r[0]):r,n.indexOf("visualRange")>0?("object"!==(0,w.dt)(t)&&(t=_L(n,t)||t),e._setCustomVisualRange(i,r,t)):("object"===(0,w.dt)(t)||M0(t))&&i.indexOf("Axis")>0&&JSON.stringify(t).indexOf("visualRange")>0&&((0,w.$K)(t.visualRange)?e._setCustomVisualRange(i,r,t.visualRange):M0(t)&&t.forEach((m,D)=>(0,w.$K)(m.visualRange)&&e._setCustomVisualRange(i,D,m.visualRange)))},_setCustomVisualRange(n,t,e){var i=this._options.silent(n);i&&((0,w.$K)(t)?i[t]._customVisualRange=e:i._customVisualRange=e,this._axesReinitialized=!0)},_raiseZoomEndHandlers(){this._valueAxes.forEach(n=>n.handleZoomEnd())},_setOptionsByReference(){this.callBase(),(0,y.l)(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged(n,t,e){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(n,t)},_notifyVisualRange(){var n=this;n._valueAxes.forEach(t=>{var e=t.getOptions().optionPath;if(e){var i="".concat(e,".visualRange"),r=Nr(t.visualRange(),!M0(n.option(i)));t.skipEventRising&&Ur(r,n.option(i))?t.skipEventRising=null:n.option(e)||"valueAxis"===e?n.option(i,r):n.option(e,{name:t.name,visualRange:r})}})},_notify(){this.callBase(),this._axesReinitialized=!1,!0!==this.option("disableTwoWayBinding")&&(this.skipOptionsRollBack=!0,this._notifyVisualRange(),this.skipOptionsRollBack=!1)},_getAxesForScaling(){return this._valueAxes},_getAxesByOptionPath(n,t,e){var m,i=this._getAxesForScaling(),r=[];return t?(n.fullName&&(m=n.fullName.slice(0,n.fullName.indexOf("."))),r=i.filter(D=>D.getOptions().optionPath===m)):"object"===(0,w.dt)(n.value)?r=i.filter(D=>D.getOptions().optionPath===n.name):M0(n.value)&&n.value.forEach((D,A)=>{var N=i.filter(Q=>Q.getOptions().optionPath==="".concat(n.name,"[").concat(A,"]"))[0];(0,w.$K)(D[e])&&(0,w.$K)(N)&&(r[A]=N)}),r},_optionChanged(n){if(!this._optionChangedLocker){var t,e=n.fullName.indexOf("visualRange")>0||!(this.getPartialChangeOptionsName(n).indexOf("visualRange")>-1)&&void 0;(0,w.$K)(e)&&(t=this._getAxesByOptionPath(n,e,"visualRange"))&&(t.length>1||M0(n.value)?t.forEach((i,r)=>mL(n,i,e,r)):1===t.length&&mL(n,t[0],e))}this.callBase(n)},_change_VISUAL_RANGE:function(){if(this._recreateSizeDependentObjects(!1),!this._changes.has("FULL_RENDER")){var n=this.option("resizePanesOnZoom");this._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:n??(this.option("adjustAxesOnZoom")||!1),animate:!1}),this._raiseZoomEndHandlers()}},resetVisualRange(){var n=this;n._valueAxes.forEach(t=>{t.resetVisualRange(!1),n._applyCustomVisualRangeOption(t)}),n._requestChange([NO])},_getCrosshairMargins:()=>({x:0,y:0}),_legendDataField:"series",_adjustSeriesLabels:E.ZT,_correctValueAxes:E.ZT}),us=u(6722),HO=Math.min,sA=Math.max,CL=function(n,t){this._translator=new Hg({},{},{}),this._scroll=n.rect().append(t),this._addEvents()};function hW(n,t,e,i){var r=0;return"right"===t?r=n.width-n.right+e:"left"===t&&(r=n.left-e-i),r}function pW(n,t,e,i){var r=0;return"top"===t?r=n.top-e:"bottom"===t&&(r=n.height-n.bottom+i+e),r}CL.prototype={_addEvents:function(){var n=this._scroll.element;d.Z.on(n,us.BL,t=>{(0,k.BX)({type:"dxc-scroll-start",originalEvent:t,target:n})}),d.Z.on(n,us.pB,t=>{var e=-t.offset.x*this._scale,i=-t.offset.y*this._scale,r=this._offset-(this._layoutOptions.vertical?i:e)/this._scale;this._applyPosition(r,r+this._translator.canvasLength/this._scale),(0,k.BX)({type:"dxc-scroll-move",originalEvent:t,target:n,offset:{x:e,y:i}})}),d.Z.on(n,us.ut,t=>{(0,k.BX)({type:"dxc-scroll-end",originalEvent:t,target:n,offset:{x:-t.offset.x*this._scale,y:-t.offset.y*this._scale}})})},update:function(n){var t=n.position,e=n.rotated,i=e?"right":"top";return t!==i&&t!==(e?"left":"bottom")&&(t=i),this._scroll.attr({rotate:n.rotated?0:-90,rotateX:0,rotateY:0,fill:n.color,width:n.width,opacity:n.opacity}),this._layoutOptions={width:n.width,offset:n.offset,vertical:e,position:t},this},init:function(n,t){var e="discrete"===n.axisType;return this._translateWithOffset=e&&!t?1:0,this._translator.update((0,y.l)({},n,{minVisible:null,maxVisible:null,visibleCategories:null},e&&{min:null,max:null}||{}),this._canvas,{isHorizontal:!this._layoutOptions.vertical,stick:t}),this},getOptions:function(){return this._layoutOptions},setPane:function(n){var t=this._layoutOptions.position;return this.pane=("left"===t||"top"===t?n[0]:n[n.length-1]).name,this},updateSize:function(n){this._canvas=(0,y.l)({},n);var t=this._layoutOptions,e=t.position,i=t.offset,r=t.width;this._scroll.attr({translateX:hW(n,e,i,r),translateY:pW(n,e,i,r)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var n=this._layoutOptions,t={left:0,top:0,right:0,bottom:0};return t[n.position]=n.width+n.offset,t},shift:function(n){var t,e,i=this._layoutOptions,r=i.position,m=i.vertical,D={translateX:null!==(t=this._scroll.attr("translateX"))&&void 0!==t?t:0,translateY:null!==(e=this._scroll.attr("translateY"))&&void 0!==e?e:0};D[m?"translateX":"translateY"]+=("left"===r||"top"===r?-1:1)*n[r],this._scroll.attr(D)},hideTitle:E.ZT,hideOuterElements:E.ZT,setPosition:function(n,t){var e=this._translator,i=(0,w.$K)(n)?e.translate(n,-this._translateWithOffset):e.translate("canvas_position_start"),r=(0,w.$K)(t)?e.translate(t,this._translateWithOffset):e.translate("canvas_position_end");this._offset=HO(i,r),this._scale=e.getScale(n,t),this._applyPosition(HO(i,r),sA(i,r))},customPositionIsAvailable:()=>!1,dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(n,t){var e=this._translator.getCanvasVisibleArea();n=sA(n,e.min),n=HO(n,e.max),t=HO(t,e.max),t=sA(t,e.min);var i=Math.abs(t-n);this._scroll.attr({y:n,height:i<2?2:i})}};var zO=Math,xL=zO.abs,bL=zO.min,wL=zO.max,EL=zO.floor;function DL(n){return{x:n.x-8,y:n.y-4,width:n.width+16,height:n.height+8}}function TL(n,t,e,i){var r=e?["x","width","y","height",t,0]:["y","height","x","width",n,1];return function(m,D,A){var N={x:A.x,y:A.y},Q=DL(m),se=e?A.y-m.y-m.height/2:A.y-m.y;return N.y=e||!e&&"bottom"===D?A.y+se:A.y,Q[r[0]]<0?N[r[0]]-=Q[r[0]]:Q[r[0]]+Q[r[1]]+se*r[5]>i[r[1]]&&(N[r[0]]-=Q[r[0]]+Q[r[1]]+se*r[5]-i[r[1]]),r[4]-Q[r[3]]/2<0?N[r[2]]-=r[4]-Q[r[3]]/2:r[4]+Q[r[3]]/2>i[r[3]]&&(N[r[2]]-=r[4]+Q[r[3]]/2-i[r[3]]),N}}function dA(n,t,e,i){this._renderer=n,this._crosshairGroup=i,this._options={},this.update(t,e)}dA.prototype={constructor:dA,update:function(n,t){var e=t.canvas;this._canvas={top:e.top,bottom:e.height-e.bottom,left:e.left,right:e.width-e.right,width:e.width,height:e.height},this._axes=t.axes,this._panes=t.panes,this._prepareOptions(n,"horizontal"),this._prepareOptions(n,"vertical")},dispose:function(){this._renderer=this._crosshairGroup=this._options=this._axes=this._canvas=this._horizontalGroup=this._verticalGroup=this._horizontal=this._vertical=this._circle=this._panes=null},_prepareOptions:function(n,t){var e=n[t+"Line"];this._options[t]={visible:e.visible,line:{stroke:e.color||n.color,"stroke-width":e.width||n.width,dashStyle:e.dashStyle||n.dashStyle,opacity:e.opacity||n.opacity,"stroke-linecap":"butt"},label:(0,y.l)(!0,{},n.label,e.label)}},_createLines:function(n,t,e){for(var i=[],r=this._canvas,m=[r.left,r.top,r.left,r.top],D=0;D<2;D++)i.push(this._renderer.path(m,"line").attr(n).sharp(t).append(e));return i},render:function(){var n=this._renderer,t=this._options,e=t.vertical,i=t.horizontal,r=i.visible?i.line:e.line,m={stroke:r.stroke,"stroke-width":r["stroke-width"],dashStyle:r.dashStyle,opacity:r.opacity},D=this._canvas;this._horizontal={},this._vertical={},this._circle=n.circle(D.left,D.top,0).attr(m).append(this._crosshairGroup),this._horizontalGroup=n.g().append(this._crosshairGroup),this._verticalGroup=n.g().append(this._crosshairGroup),e.visible&&(this._vertical.lines=this._createLines(e.line,"h",this._verticalGroup),this._vertical.labels=this._createLabels(this._axes[0],e,!1,this._verticalGroup)),i.visible&&(this._horizontal.lines=this._createLines(i.line,"v",this._horizontalGroup),this._horizontal.labels=this._createLabels(this._axes[1],i,!0,this._horizontalGroup)),this.hide()},_createLabels:function(n,t,e,i){var D,A,N,se,we,r=this._canvas,m=this._renderer,Q=[],Re=t.label;return Re.visible&&n.forEach(function(Ue){var st=Ue.getOptions().position;if(!Ue.getTranslator().getBusinessRange().isEmpty()){we=Ue.getLabelsPosition(),e?(A=r.top,D=we):(D=r.left,A=we);var Ot="top"===st||"bottom"===st?"center":"right"===st?"left":"right";se=m.rect(0,0,0,0).attr({fill:Re.backgroundColor||t.line.stroke}).append(i),N=m.text("0",0,0).css(ci(t.label.font)).attr({align:Ot,class:Re.cssClass}).append(i),Q.push({text:N,background:se,axis:Ue,options:Re,pos:{coord:we,side:st},startXY:{x:D,y:A}})}}),Q},_updateText:function(n,t,e,i,r){var m=this;e.forEach(function(D){var A=D.axis,N=D.startXY,Q=D.text,se=D.background,we="";(!A.name||A.name===t)&&(we=A.getFormattedValue(n,D.options,i)),we?(Q.attr({text:we,x:N.x,y:N.y}),Q.attr(r(Q.getBBox(),D.pos.side,N)),m._updateLinesCanvas(D),se.attr(DL(Q.getBBox()))):(Q.attr({text:""}),se.attr({x:0,y:0,width:0,height:0}))})},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(n){var t=n.pos.side,e=n.pos.coord,i=this._linesCanvas,r=this._canvas;i[t]=i[t]!==r[t]&&xL(i[t]-r[t])<xL(e-r[t])?i[t]:e},_updateLines:function(n,t,e,i,r){for(var m=this._linesCanvas,D=this._canvas,A=r?[[bL(t-i,m.left),D.top,t-i,D.top],[t+i,D.top,wL(m.right,t+i),D.top]]:[[D.left,bL(m.top,e-i),D.left,e-i],[D.left,e+i,D.left,wL(m.bottom,e+i)]],N=0;N<2;N++)n[N].attr({points:A[N]}).sharp(r?"v":"h",r?e===D.bottom?-1:1:t===D.right?-1:1)},_resetLinesCanvas:function(){var n=this._canvas;this._linesCanvas={left:n.left,right:n.right,top:n.top,bottom:n.bottom}},_getClipRectForPane:function(n,t){var i,r,e=this._panes;for(i=0;i<e.length;i++)if((r=e[i].coords).left<=n&&r.right>=n&&r.top<=t&&r.bottom>=t)return e[i].clipRect;return{id:null}},show:function(n){var t=n.point,e=t.getCrosshairData(n.x,n.y),i=t.getPointRadius(),r=this._horizontal,m=this._vertical,D=i?i+3:0,A=this._canvas,N=EL(e.x),Q=EL(e.y);N>=A.left&&N<=A.right&&Q>=A.top&&Q<=A.bottom?(this._crosshairGroup.attr({visibility:"visible"}),this._resetLinesCanvas(),this._circle.attr({cx:N,cy:Q,r:D,"clip-path":this._getClipRectForPane(N,Q).id}),r.lines&&(this._updateText(e.yValue,e.axis,r.labels,t,TL(N,Q,!0,A)),this._updateLines(r.lines,N,Q,D,!0),this._horizontalGroup.attr({translateY:Q-A.top})),m.lines&&(this._updateText(e.xValue,e.axis,m.labels,t,TL(N,Q,!1,A)),this._updateLines(m.lines,N,Q,D,!1),this._verticalGroup.attr({translateX:N-A.left}))):this.hide()}};var xb=".shutter-zoom",CW=us.BL+xb,xW=us.pB+xb,bW=us.ut+xb;function IL(n,t,e,i){var r=Math.floor(e?i.pageY-n.top:i.pageX-n.left),m=e?t.y1:t.x1,D=e?t.y2:t.x2;return r<m?r=m:r>D&&(r=D),r}const TW={name:"shutter_zoom",init:function(){var n=this.option("shutterZoom")||{};n.enabled&&(this._shutterZoom=function DW(n){var t=n.chart,e=n.renderer,i=n.rotated,r=e.rect(0,0,0,0).attr(n.shutterOptions),m={rect:r,root:e.root,rotated:i,triggerStart:function(){t._eventTrigger("zoomStart")},triggerEnd:function(){var D=t._argumentAxes[0].getTranslator(),A=Math.min(this.startCoord,this.curCoord),N=Math.max(this.startCoord,this.curCoord);t._eventTrigger("zoomEnd",{rangeStart:D.from(A),rangeEnd:D.from(N)})},dispose:function(){e.root.off(xb),r.dispose()},getRootOffset:function(){return e.getRootOffset()},getCanvas:function(){var D=t._canvas,A=t.panes,N=A[0].canvas,Q=A[A.length-1].canvas;return{x1:N.left,y1:N.top,x2:D.width-Q.right,y2:D.height-Q.bottom,width:D.width-N.left-Q.right,height:D.height-N.top-Q.bottom}}};return e.root.off(xb).on(CW,{direction:i?"vertical":"horizontal",immediate:!0},function EW(n){return function(t){var e=n.getRootOffset(),i=n.getCanvas();!function wW(n,t,e){var i=e.pageX-n.left,r=e.pageY-n.top;return i>=t.x1&&i<=t.x2&&r>=t.y1&&r<=t.y2}(e,i,t)?t.cancel=!0:(n.rootOffset=e,n.canvas=i,n.startCoord=IL(e,i,n.rotated,t),n.triggerStart(),n.rect.attr({x:i.x1,y:i.y1,width:i.width,height:i.height}).append(n.root))}}(m)).on(xW,function SW(n){return function(t){var e=IL(n.rootOffset,n.canvas,n.rotated,t),i={};n.curCoord=e,i[n.rotated?"y":"x"]=Math.min(n.startCoord,e),i[n.rotated?"height":"width"]=Math.abs(n.startCoord-e),n.rect.attr(i)}}(m)).on(bW,function OW(n){return function(t){n.triggerEnd(),n.rect.remove()}}(m)),m}({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:n}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}};var IW=u(3873),MW=u(2203),ML="start",AL="",PL="end",hA=[],WO=function(n,t){hA.push({name:n,args:t})};WO("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),WO("translate",{translation:!0,deltaTranslation:!0}),WO("pinch",{scale:!0,deltaScale:!0}),WO("rotate",{rotation:!0,deltaRotation:!0});var kL=function(n){var t=n.pointers;return function(n,t){return{x:t.pageX-n.pageX,y:-t.pageY+n.pageY,centerX:.5*(t.pageX+n.pageX),centerY:.5*(t.pageY+n.pageY)}}(t[0],t[1])},UO=function(n){return Math.sqrt(n.x*n.x+n.y*n.y)},RL=function(n,t){return UO(n)/UO(t)},LL=function(n,t){var e=n.x*t.x+n.y*t.y,i=UO(n)*UO(t);return 0===i?0:(0,re.Xx)(n.x*t.y-t.x*n.y)*Math.acos((0,re.n$)(e/i,-1,1))},BL=function(n,t){return{x:n.centerX-t.centerX,y:n.centerY-t.centerY}},BW=IW.Z.inherit({validatePointers:function(n){return(0,k.G7)(n)>1},start:function(n){this._accept(n);var t=kL(n);this._startVector=t,this._prevVector=t,this._fireEventAliases(ML,n)},move:function(n){var t=kL(n),e=this._getEventArgs(t);this._fireEventAliases(AL,n,e),this._prevVector=t},end:function(n){var t=this._getEventArgs(this._prevVector);this._fireEventAliases(PL,n,t)},_getEventArgs:function(n){return{scale:RL(n,this._startVector),deltaScale:RL(n,this._prevVector),rotation:LL(n,this._startVector),deltaRotation:LL(n,this._prevVector),translation:BL(n,this._startVector),deltaTranslation:BL(n,this._prevVector)}},_fireEventAliases:function(n,t,e){e=e||{},O.S6(hA,function(i,r){var m={};O.S6(r.args,function(D){D in e&&(m[D]=e[D])}),this._fireEvent("dx"+r.name+n,t,m)}.bind(this))}}),FL=hA.reduce((n,t)=>([ML,AL,PL].forEach(e=>{n.push("dx"+t.name+e)}),n),[]);(0,MW.Z)({emitter:BW,events:FL});var VL={};O.S6(FL,function(n,t){VL[t.substring("dx".length)]=t});var{pinchstart:FW,pinch:VW,pinchend:NW}=VL,pc=".zoomAndPanNS",HW=us.BL+pc,zW=us.pB+pc,WW=us.ut+pc,UW=FW+pc,ZW=VW+pc,KW=NW+pc,NL="dxc-scroll-start"+pc,GW="dxc-scroll-move"+pc,jW="dxc-scroll-end"+pc,Gv=Math.min,HL=Math.max,bb=Math.abs;function jv(n){return{x:n.left,y:n.top,width:n.width-n.left-n.right,height:n.height-n.top-n.bottom}}function wb(n,t){var e=t.x,i=t.y;return e>=n.x&&e<=n.width+n.x&&i>=n.y&&i<=n.height+n.y}function Eb(n){return n.filter(t=>!t.getTranslator().getBusinessRange().isEmpty())}function gA(n){return n.some(t=>!t.isExtremePosition(!1)||!t.isExtremePosition(!0))}function zL(n,t,e,i,r,m,D){var A=t&&n!==t,N=e(n),{stopInteraction:Q,correctedRange:se}=n.checkZoomingLowerLimitOvercome(r,m,N),we=n.handleZooming(Q?null:se,i(A),D,r);return Q&&n.handleZoomEnd(),{stopInteraction:Q,result:we}}function ZO(n,t,e,i,r,m){t=function YW(n,t){return t&&(n=n.sort((e,i)=>e===t?-1:i===t?1:0)),n}(t,m);var D=!1,A=N=>({start:!!N,end:!!N});return Eb(t).some(N=>{var Q=N.getTranslator(),se=Q.getMinScale(i),{stopInteraction:we,result:Re}=zL(N,m,e((0,di.Z)({scale:se,translator:Q,axis:N},r)),A,"zoom",se,n);return D=!we,m&&Re.isPrevented}),D}function KO(n){n.originalEvent&&KO(n.originalEvent),!1!==n.cancelable&&(n.cancel=!0)}const XW={name:"zoom_and_pan",init:function(){var n=this,t=this._renderer;function e(Ue,st){var Ot=[],Kt=Ue.options,sn=Ue.actionData;return Kt.argumentAxis[st]&&Ot.push(n.getArgumentAxis()),Kt.valueAxis[st]&&(Ot=Ot.concat(sn.valueAxes)),Ot}function i(Ue,st,Ot){Eb(e(Ue,st)).some(sn=>sn.handleZooming(null,{end:!0},Ot,st).isPrevented)&&KO(Ot)}function r(Ue,st,Ot,Kt,sn){function wn(gi,Ci,Ki,Bi,ri){var Fi={zoomed:!1};return Ci&&Eb(gi).forEach(Gi=>{var or=Gi.getOptions(),fr=Gi.visualRange(),_r=Gi.getTranslator().getEventScale(Bi),$r=-Kt(Bi,ri,Ki,_r);Fi=(0,y.l)(!0,Fi,Gi.getTranslator().zoom($r,_r,Gi.getZoomBounds()));var Fr=Gi.adjustRange(kr([Fi.min,Fi.max])),{stopInteraction:Vr,correctedRange:zr}=Gi.checkZoomingLowerLimitOvercome(st,_r,Fr);if((0,w.$K)(fr)&&fr.startValue.valueOf()===zr.startValue.valueOf()&&fr.endValue.valueOf()===zr.endValue.valueOf()){if("touch"===Bi.pointerType&&"discrete"===or.type){var co=Gi.isExtremePosition(!1),Kr=Gi.isExtremePosition(!0);Fi.enabled=_r>1&&!Vr||_r<1&&(!co||!Kr)||1===_r&&!(co&&($r<0&&!or.inverted||$r>0&&or.inverted)||Kr&&($r>0&&!or.inverted||$r<0&&or.inverted))}}else Gi.handleZooming(Vr?null:zr,{start:!0,end:!0},Bi,st),Vr||(Fi.zoomed=!0,Fi.deltaTranslate=$r-Fi.translate)}),Fi}function rn(gi,Ci,Ki,Bi){Ki.zoomed&&(Ci.offset[Bi]=(gi.offset?gi.offset[Bi]:Ci.offset[Bi])+Ki.deltaTranslate)}function Ft(gi,Ci,Ki,Bi){Ki.zoomed&&(Ci.center[Bi]=gi[Bi]+Ki.deltaTranslate)}var qt=n.option("rotated"),un=Ue.actionData,In=Ue.options,Kn={},Yn={};un.fallback||(Kn=wn(n._argumentAxes,In.argumentAxis[st],qt?"y":"x",Ot,un),Yn=wn(un.valueAxes,In.valueAxis[st],qt?"x":"y",Ot,un),n._requestChange(["VISUAL_RANGE"]),rn(Ot,un,Kn,qt?"y":"x"),rn(Ot,un,Yn,qt?"x":"y"));var ai=sn(Ot);return Ft(ai,un,Kn,qt?"y":"x"),Ft(ai,un,Yn,qt?"x":"y"),!Kn.zoomed&&!Yn.zoomed&&(un.center=ai),Kn.zoomed||Yn.zoomed||un.fallback||Kn.enabled||Yn.enabled}function m(Ue,st,Ot,Kt){function sn(In,Kn,Yn,ai){var gi=!1,Ci=Ot.scale||1,Ki=ri=>{var Fi=ri.getTranslator().zoom(-Kt(Ot,Yn,Kn,Ci),Ci,ri.getZoomBounds());return{startValue:Fi.min,endValue:Fi.max}},Bi=ri=>({start:!0,end:ri});return Eb(In).forEach(ri=>{gi=!zL(ri,ai,Ki,Bi,st,Ci,Ot).stopInteraction}),gi}var wn=n.option("rotated"),rn=Ue.actionData,Ft=Ue.options,qt=!0;if(rn.fallback)qt&=Ft.argumentAxis[st]&&sn(n._argumentAxes,wn?"y":"x",rn,n.getArgumentAxis()),qt|=Ft.valueAxis[st]&&sn(rn.valueAxes,wn?"x":"y",rn);else{var un=e(Ue,st);Eb(un).forEach(In=>{In.handleZooming(null,{start:!0},Ot,st)}),qt=un.length}qt&&n._requestChange(["VISUAL_RANGE"])}function D(Ue,st){var Ot=n._argumentAxes.filter(Kt=>wb(jv(Kt.getCanvas()),Ue));return{fallback:n._lastRenderingTime>300,cancel:!Ot.length||!(0,w.$K)(st),action:st,curAxisRect:Ot.length&&jv(Ot[0].getCanvas()),valueAxes:Ot.length&&n._valueAxes.filter(Kt=>wb(jv(Kt.getCanvas()),Ue)),offset:{x:0,y:0},center:Ue,startCenter:Ue}}function A(Ue,st){var Ot=t.getRootOffset();return{x:Gv(HL(st.pageX-Ot.left,Ue.x),Ue.width+Ue.x),y:Gv(HL(st.pageY-Ot.top,Ue.y),Ue.height+Ue.y)}}function N(Ue){var st=t.getRootOffset(),Ot=Ue.pointers[0].pageX,Kt=Ue.pointers[1].pageX,sn=Ue.pointers[0].pageY,wn=Ue.pointers[1].pageY;return{x:Gv(Ot,Kt)+bb(Kt-Ot)/2-st.left,y:Gv(sn,wn)+bb(wn-sn)/2-st.top}}function Q(Ue){var st=t.getRootOffset();return{x:Ue.pageX-st.left,y:Ue.pageY-st.top}}function se(Ue,st,Ot){return Ue.offset[Ot]-st.offset[Ot]}function we(Ue){!1!==Ue.cancelable&&(Ue.preventDefault(),Ue.stopPropagation()),n._stopCurrentHandling()}var Re={dragStartHandler:function(Ue){var Ft,st=Re.options,Ot="touch"===Ue.pointerType,Kt=st.argumentAxis.pan||st.valueAxis.pan,sn=st.argumentAxis.zoom||st.valueAxis.zoom,wn=(0,w.$K)(st.panKey)&&Ue[En(st.panKey)+"Key"],rn=st.dragToZoom;Ue._cancelPreventDefault=!0,Ot?st.allowTouchGestures&&Kt&&(Ft=!Re.panningVisualRangeEnabled()||Re.skipEvent?null:"pan"):rn&&Kt&&wn||!rn&&Kt?Ft="pan":rn&&sn&&(Ft="zoom");var un=D(Q(Ue),Ft);if(un.cancel)return Re.skipEvent=!1,void(!1!==Ue.cancelable&&(Ue.cancel=!0));Re.actionData=un,"zoom"===Ft?(un.startCoords=A(un.curAxisRect,Ue),un.rect=t.rect(0,0,0,0).attr(st.dragBoxStyle).append(t.root)):i(Re,"pan",Ue)},dragHandler:function(Ue){var st=n.option("rotated"),Ot=Re.options,Kt=Re.actionData,sn="touch"===Ue.pointerType;if(Ue._cancelPreventDefault=!0,Kt&&(!sn||Re.panningVisualRangeEnabled()))if("zoom"===Kt.action){we(Ue);var wn=Kt.curAxisRect,rn=Kt.startCoords,Ft=A(wn,Ue),qt=Ot.argumentAxis.zoom,un=Ot.valueAxis.zoom,In={x:Gv(rn.x,Ft.x),y:Gv(rn.y,Ft.y),width:bb(rn.x-Ft.x),height:bb(rn.y-Ft.y)};(!qt||!un)&&(!qt&&!st||!un&&st?(In.x=wn.x,In.width=wn.width):(In.y=wn.y,In.height=wn.height)),Kt.rect.attr(In)}else if("pan"===Kt.action){r(Re,"pan",Ue,se,ai=>ai.offset);var Kn=Math.abs(Ue.offset.y-Kt.offset.y),Yn=Math.abs(Ue.offset.x-Kt.offset.x);if(sn&&(Kn>5&&Kn>Math.abs(Kt.offset.x)||Yn>5&&Yn>Math.abs(Kt.offset.y)))return;we(Ue)}},dragEndHandler:function(Ue){var st=n.option("rotated"),Ot=Re.options,Kt=Re.actionData,sn="touch"===Ue.pointerType,wn=gi=>{var{translator:Ci,startCoord:Ki,curCoord:Bi}=gi;return()=>[Ci.from(Ki),Ci.from(Bi)]},rn=(gi,Ci,Ki)=>({curCoord:gi[Ki],startCoord:Ci[Ki]}),Ft=(gi,Ci)=>gi.zoom&&bb(Ci.curCoord-Ci.startCoord)>5,qt=Kt&&"pan"===Kt.action&&!Kt.fallback&&0===Kt.offset.x&&0===Kt.offset.y;if(Kt&&(!sn||Re.panningVisualRangeEnabled())&&!qt){if(!sn&&we(Ue),"zoom"===Kt.action){var un=A(Kt.curAxisRect,Ue),In=rn(un,Kt.startCoords,st?"y":"x"),Kn=rn(un,Kt.startCoords,st?"x":"y"),Yn=Ft(Ot.argumentAxis,In)&&ZO(Ue,n._argumentAxes,wn,!0,In,n.getArgumentAxis());(Ft(Ot.valueAxis,Kn)&&ZO(Ue,Kt.valueAxes,wn,!0,Kn)||Yn)&&n._requestChange(["VISUAL_RANGE"]),Kt.rect.dispose()}else"pan"===Kt.action&&m(Re,"pan",Ue,se);Re.actionData=null}},pinchStartHandler:function(Ue){var st=D(N(Ue),"zoom");st.cancel?KO(Ue):(Re.actionData=st,i(Re,"zoom",Ue))},pinchHandler:function(Ue){Re.actionData&&(r(Re,"zoom",Ue,(st,Ot,Kt,sn)=>N(st)[Kt]-Ot.center[Kt]+(Ot.center[Kt]-Ot.center[Kt]*sn),N),we(Ue))},pinchEndHandler:function(Ue){Re.actionData&&(m(Re,"zoom",Ue,(st,Ot,Kt,sn)=>Ot.center[Kt]-Ot.startCenter[Kt]+(Ot.startCenter[Kt]-Ot.startCenter[Kt]*sn)),Re.actionData=null)},mouseWheelHandler:function(Ue){var rn,st=Re.options,Ot=n.option("rotated"),Kt=un=>{var{translator:In,coord:Kn,scale:Yn,axis:ai}=un;return()=>{var gi=In.zoom(-(Kn-Kn*Yn),Yn,ai.getZoomBounds());return{startValue:gi.min,endValue:gi.max}}},sn=Q(Ue),wn=!1;if(st.valueAxis.zoom){if(0===(rn=n._valueAxes.filter(un=>wb(jv(un.getCanvas()),sn))).length){var Ft=n._valueAxes.reduce((un,In)=>(!un&&In.coordsIn(sn.x,sn.y)&&(un=In.getCanvas()),un),null);Ft&&(rn=n._valueAxes.filter(un=>wb(jv(un.getCanvas()),{x:Ft.left,y:Ft.top})))}wn|=ZO(Ue,rn,Kt,Ue.delta>0,{coord:Ot?sn.x:sn.y})}st.argumentAxis.zoom&&(wn|=n._argumentAxes.some(un=>!(!wb(jv(un.getCanvas()),sn)&&!un.coordsIn(sn.x,sn.y)))&&ZO(Ue,n._argumentAxes,Kt,Ue.delta>0,{coord:Ot?sn.y:sn.x},n.getArgumentAxis())),wn&&(n._requestChange(["VISUAL_RANGE"]),(rn&&gA(rn)||!rn&&Re.panningVisualRangeEnabled())&&we(Ue))},cleanup:function(){t.root.off(pc),Re.actionData&&Re.actionData.rect&&Re.actionData.rect.dispose(),Re.actionData=null,t.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(Ue){Re.cleanup(),Ue.argumentAxis.pan||t.root.on(NL,KO),(!Ue.argumentAxis.none||!Ue.valueAxis.none)&&(Re.options=Ue,(Ue.argumentAxis.zoom||Ue.valueAxis.zoom)&&Ue.allowMouseWheel&&t.root.on(gg.u+pc,Re.mouseWheelHandler),(Ue.argumentAxis.zoom||Ue.valueAxis.zoom)&&Ue.allowTouchGestures&&t.root.on(UW,{passive:!1},Re.pinchStartHandler).on(ZW,{passive:!1},Re.pinchHandler).on(KW,Re.pinchEndHandler),t.root.on(HW,{immediate:!0,passive:!1},Re.dragStartHandler).on(zW,{immediate:!0,passive:!1},Re.dragHandler).on(WW,Re.dragEndHandler),t.root.on(NL,function(st){Re.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},we(st),i(Re,"pan",st)}).on(GW,function(st){we(st),r(Re,"pan",st,se,Ot=>Ot.offset)}).on(jW,function(st){we(st),m(Re,"pan",st,se),Re.actionData=null}))},panningVisualRangeEnabled:function(){return gA(n._valueAxes)||gA(n._argumentAxes)}};this._zoomAndPan=Re},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(n){n.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}};var fA=b.Z.getDocument,mA="annotations",Sb="."+mA,WL=(0,k.V4)([So.Z.down,So.Z.move],mA),qW=(0,k.V4)(So.Z.up,mA),JW=us.BL+Sb,QW=us.pB+Sb,eU=us.ut+Sb;function tU(n,t){return{draw:function(e,i){var r=e._renderer.g().append(i).css(ci(n.font));this.plaque&&this.plaque.clear(),this.plaque=new jy((0,y.l)(!0,{},n,{cornerRadius:(n.border||{}).cornerRadius}),e,r,t,e._isAnnotationBounded(n)),this.plaque.draw(e._getAnnotationCoords(this)),n.allowDragging&&r.on(JW,{immediate:!0},m=>{this._dragOffsetX=this.plaque.x-m.pageX,this._dragOffsetY=this.plaque.y-m.pageY}).on(QW,m=>{this.plaque.move(m.pageX+this._dragOffsetX,m.pageY+this._dragOffsetY)}).on(eU,m=>{this.offsetX=(this.offsetX||0)+m.offset.x,this.offsetY=(this.offsetY||0)+m.offset.y})},hitTest(e,i){return this.plaque.hitTest(e,i)},showTooltip(e,i){var{x:r,y:m}=i,D=this,A=D.options;if(e.annotation!==D){e.setTemplate(A.tooltipTemplate);var N=Q=>{Q&&(e.annotation=D)};N(e.show(A,{x:r,y:m},{target:A},A.customizeTooltip,N))}else e.isCursorOnTooltip(r,m)||e.move(r,m)}}}function nU(n,t){var e;return"text"===n.type?e=function(i,r){var m=t._renderer.text(i.text).attr({class:i.cssClass}).append({element:r});(i.width>0||i.height>0)&&m.setMaxSize(i.width,i.height,{wordWrap:i.wordWrap,textOverflow:i.textOverflow})}:"image"===n.type?e=function(i,r){var{width:m,height:D,url:A,location:N}=i.image||{},{width:Q,height:se}=i,we=Q>0?Math.min(m,Q):m,Re=se>0?Math.min(D,se):D;t._renderer.image(0,0,we,Re,A,N||"center").append({element:r})}:"custom"===n.type&&(e=n.template),e}function _A(n){return"string"==typeof n?{url:n}:n}var Id={name:"annotations_chart",init(){},dispose(){},members:{_getAnnotationCoords(n){var t,e,Q,we,i={offsetX:n.offsetX,offsetY:n.offsetY},r=this._options.silent("rotated")?"y":"x",m=this._options.silent("rotated")?"x":"y",D=this.getArgumentAxis(),A=D.validateUnit(n.argument),N=this.getValueAxis(n.axis),se=null===(t=N)||void 0===t?void 0:t.pane;if(n.series&&(Q=this.series.filter(Kt=>Kt.name===n.series)[0],N=null===(we=Q)||void 0===we?void 0:we.getValueAxis(),(0,w.$K)(N)&&(se=N.pane)),(0,w.$K)(A)){if(Q){var Re=Q.getPointCenterByArg(A);Re&&(i[r]=Re[r])}else i[r]=D.getTranslator().translate(A);!(0,w.$K)(se)&&(se=D.pane)}var st,Ot,Ue=null===(e=N)||void 0===e?void 0:e.validateUnit(n.value);return(0,w.$K)(Ue)&&(i[m]=null===(st=N)||void 0===st?void 0:st.getTranslator().translate(Ue),!(0,w.$K)(se)&&(0,w.$K)(N)&&(se=N.pane)),i.canvas=this._getCanvasForPane(se),(0,w.$K)(i[r])&&!(0,w.$K)(Ue)&&((0,w.$K)(N)||(0,w.$K)(Q)?(0,w.$K)(N)&&!(0,w.$K)(Q)?i[m]=this._argumentAxes.filter(Kt=>Kt.pane===N.pane)[0].getAxisPosition():null!==(Ot=Q)&&void 0!==Ot&&Ot.checkSeriesViewportCoord(D,i[r])&&(i[m]=Q.getSeriesPairCoord(i[r],!0)):i[m]=D.getAxisPosition()),!(0,w.$K)(A)&&(0,w.$K)(i[m])&&((0,w.$K)(N)&&!(0,w.$K)(Q)?i[r]=N.getAxisPosition():(0,w.$K)(Q)&&Q.checkSeriesViewportCoord(N,i[m])&&(i[r]=Q.getSeriesPairCoord(i[m],!1))),i},_annotationsPointerEventHandler(n){if(!this._disposed){var t=n.originalEvent||{},e=t.touches&&t.touches[0]||{},i=this._renderer.getRootOffset(),r={x:e.pageX||t.pageX||n.pageX,y:e.pageY||t.pageY||n.pageY},m=this._annotations.items.filter(D=>D.hitTest(r.x-i.left,r.y-i.top))[0];if(!m||!m.options.tooltipEnabled)return void this._annotations.hideTooltip();this._clear(),m.options.allowDragging&&n.type===So.Z.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(m.showTooltip(this._annotations.tooltip,r),n.stopPropagation())}},_isAnnotationBounded:n=>(0,w.$K)(n.value)||(0,w.$K)(n.argument),_pullOptions:n=>({type:n.type,name:n.name,x:n.x,y:n.y,value:n.value,argument:n.argument,axis:n.axis,series:n.series,options:n,offsetX:n.offsetX,offsetY:n.offsetY}),_forceAnnotationRender(){this._change(["FORCE_RENDER"])},_clear(){this.hideTooltip(),this.clearHover()}}},rU={name:"annotations_polar_chart",init(){},dispose(){},members:{_getAnnotationCoords(n){var A,N,t={offsetX:n.offsetX,offsetY:n.offsetY,canvas:this._calcCanvas()},e=this.getArgumentAxis(),i=e.validateUnit(n.argument),r=this.getValueAxis().validateUnit(n.value),m=n.radius,D=n.angle;return n.series&&(N=this.series.filter(Q=>Q.name===n.series)[0]),(0,y.l)(!0,t,this.getXYFromPolar(D,m,i,r)),(0,w.$K)(N)&&(!(0,w.$K)(t.angle)||(0,w.$K)(r)||(0,w.$K)(m)?(0,w.$K)(t.radius)&&!(0,w.$K)(i)&&!(0,w.$K)(D)&&(A=N.getSeriesPairCoord({radius:t.radius},!1)):((0,w.$K)(i)||(i=e.getTranslator().from(isFinite(D)?this.getActualAngle(D):t.angle)),A=N.getSeriesPairCoord({argument:i,angle:-t.angle},!0)),(0,w.$K)(A)&&(t.x=A.x,t.y=A.y)),n.series&&!(0,w.$K)(A)&&(t.x=t.y=void 0),t},_annotationsPointerEventHandler:Id.members._annotationsPointerEventHandler,_isAnnotationBounded:Id.members._isAnnotationBounded,_pullOptions(n){var t=(0,y.l)({},{radius:n.radius,angle:n.angle},Id.members._pullOptions(n));return delete t.axis,t},_forceAnnotationRender:Id.members._forceAnnotationRender,_clear:Id.members._clear}},oU={name:"annotations_vector_map",init(){},dispose(){this._annotations._offTracker(),this._annotations._offTracker=null},members:{_getAnnotationCoords(n){var t={offsetX:n.offsetX,offsetY:n.offsetY};if(t.canvas=this._projection.getCanvas(),n.coordinates){var e=this._projection.toScreenPoint(n.coordinates);t.x=e[0],t.y=e[1]}return t},_annotationsPointerEventHandler:Id.members._annotationsPointerEventHandler,_isAnnotationBounded:n=>(0,w.$K)(n.coordinates),_pullOptions(n){var t=(0,y.l)({},{coordinates:n.coordinates},Id.members._pullOptions(n));return delete t.axis,delete t.series,delete t.argument,delete t.value,t},_forceAnnotationRender(){this._change(["EXTRA_ELEMENTS"])},_getAnnotationStyles:()=>({"text-anchor":"start"}),_clear(){}},extenders:{_prepareExtraElements(){var n=this,t=()=>{n._renderExtraElements()};n._annotations._offTracker=n._tracker.on({move:t,zoom:t,end:t})}}},aU={name:"annotations_pie_chart",init(){},dispose(){},members:{_getAnnotationCoords(n){var e={offsetX:n.offsetX,offsetY:n.offsetY,canvas:this._canvas};if(n.argument){var i=(n.series?this.getSeriesByName(n.series):this.series[0]).getPointsByArg(n.argument)[0],{x:r,y:m}=i.getAnnotationCoords(n.location);e.x=r,e.y=m}return e},_isAnnotationBounded:n=>n.argument,_annotationsPointerEventHandler:Id.members._annotationsPointerEventHandler,_pullOptions(n){var t=(0,y.l)({},{location:n.location},Id.members._pullOptions(n));return delete t.axis,t},_clear:Id.members._clear,_forceAnnotationRender:Id.members._forceAnnotationRender}},sU={name:"annotations_core",init(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new Me({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip(){this.tooltip.annotation=null,this.tooltip.hide()},clearItems(){this.items.forEach(n=>n.plaque.clear()),this.items=[]}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions())},dispose(){this._annotationsGroup.linkRemove().linkOff(),d.Z.off(fA(),Sb),this._annotationsGroup.off(Sb),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure(){this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).css(this._getAnnotationStyles()).linkOn(this._renderer.root,"annotations").linkAppend(),d.Z.on(fA(),WL,n=>{this._disposed||this._annotations.tooltip.isCursorOnTooltip(n.pageX,n.pageY)||this._annotations.hideTooltip()}),d.Z.on(fA(),qW,n=>{this._annotations._hideToolTipForDrag=!1,this._annotationsPointerEventHandler(n)}),this._annotationsGroup.on(WL,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements(){this._annotationsGroup.clear(),this._annotations.items.forEach(n=>n.draw(this,this._annotationsGroup))},_stopCurrentHandling(){this._annotations.hideTooltip()}},members:{_buildAnnotations(){this._annotations.clearItems();var n=this._getOption("annotations",!0);null!=n&&n.length&&(this._annotations.items=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,m=_A(e.image);return t.reduce((D,A)=>{var N=_A(A.image),Q=(0,w.mf)(i)?i(A):{};Q&&(Q.image=_A(Q.image));var se=(0,y.l)(!0,{},e,A,{image:m},{image:N},Q),we=nU(se,n),Re=we&&(0,y.l)(!0,r(se),tU(se,n._getTemplate(we)));return Re&&D.push(Re),D},[])}(this,n,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation",!0),this._pullOptions))},_setAnnotationTooltipOptions(){var n=(0,y.l)({},this._getOption("tooltip"));n.contentTemplate=n.customizeTooltip=void 0,this._annotations.tooltip.update(n)},_getAnnotationCoords:()=>({}),_pullOptions:()=>({}),_getAnnotationStyles:()=>({})},customize(n){n.addChange({code:"ANNOTATIONITEMS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),n.addChange({code:"ANNOTATIONSSETTINGS",handler(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),n.addChange({code:"ANNOTATIONS",handler(){this._buildAnnotations(),this._setAnnotationTooltipOptions(),this._forceAnnotationRender()},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]},wf={core:sU,chart:Id,polarChart:rU,vectorMap:oU,pieChart:aU},UL="default",uU=[{name:UL,border:{}}],GO="discrete",Ob=Array.isArray;function jO(n,t,e){var i=n.getOptions().grid,r=n.getOptions().minorGrid;i.visible=t,r&&(r.visible=e)}function ZL(n,t,e){var i,r;for(r=0;r<e.length;r++)if((i=e[r]).name===t&&i.pane===n)return i;if(n)return ZL(void 0,t,e)}function pU(n,t){return n.priority-t.priority}function KL(n,t){var e=!1;return(0,O.S6)(n,function(i,r){if(r.name===t)return e=!0,!1}),e}function $v(n,t,e,i){var r=t[n]||0,m=e[n]||0;return r+m+(r&&m?i:0)}function Md(n,t,e){return GL(t[n],e[n])}function GL(n,t){return Math.max(n||0,t||0)}function $O(n){return n.getMargins()}function YO(n,t){return n.reduce(function(e,i){var r,m=t(i),D=e.panes[i.pane]=e.panes[i.pane]||{},A=i.getMultipleAxesSpacing();D.top=$v("top",D,m,A),D.bottom=$v("bottom",D,m,A),D.left=Md("left",D,m),D.right=Md("right",D,m),e.top=Md("top",D,e),e.bottom=Md("bottom",D,e),e.left=Md("left",D,e),e.right=Md("right",D,e);var N=null===(r=i.getOrthogonalAxis)||void 0===r?void 0:r.call(i);return N&&N.customPositionIsAvailable()&&(!i.customPositionIsBoundaryOrthogonalAxis()||!N.customPositionEqualsToPredefined())&&(e[N.getResolvedBoundaryPosition()]=0),e},{panes:{}})}function vA(n){return n.reduce(function(t,e){var i=e.getMargins(),r=t.panes[e.pane]=t.panes[e.pane]||{},m=e.getMultipleAxesSpacing();return r.top=Md("top",r,i),r.bottom=Md("bottom",r,i),r.left=$v("left",r,i,m),r.right=$v("right",r,i,m),t.top=Md("top",r,t),t.bottom=Md("bottom",r,t),t.left=Md("left",r,t),t.right=Md("right",r,t),t},{panes:{}})}function _h(n,t,e,i,r){n.forEach(function(m){m[t](e&&e[m.pane],i&&i[m.pane]||i,r)})}function XO(n,t,e,i,r){function m(se,we,Re){return(-1===(n?["left","right"]:["top","bottom"]).indexOf(se)?we:we.panes[Re]||{})[se]}function D(se,we,Re,Ue){return GL(m(se,we,Ue),m(se,Re,Ue))}var A=se=>"original".concat(se[0].toUpperCase()).concat(se.slice(1));function N(se,we,Re,Ue,st,Ot){(we=we.sort((wn,rn)=>se[rn][Ue]-se[wn][Ue])).forEach(wn=>{var rn=se[wn];Ot.forEach(Ft=>{rn[Ft]=rn[A(Ft)]+D(Ft,i,r,wn)})});var Kt=se[we[0]],sn=we.reduce((wn,rn)=>wn-(D(Ue,i,r,rn)+D(st,i,r,rn)),Kt[Re]-Kt[A(st)]-se[we[we.length-1]][A(Ue)])-10*(we.length-1);sn-=Object.keys(e).reduce((wn,rn)=>wn+(vn(e[rn])?0:e[rn].height),0),we.reduce((wn,rn)=>{var Ft=se[rn],qt=e[rn];return wn-=D(st,i,r,rn),Ft[st]=Kt[Re]-wn,wn-=vn(qt)?Math.floor(sn*qt.height):qt.height,Ft[Ue]=wn,wn-(D(Ue,i,r,rn)+10)},Kt[Re]-Kt[A(st)]-(sn<0?sn:0))}var Q=Object.keys(t);return n?N(t,Q,"width","left","right",["top","bottom"]):N(t,Q,"height","top","bottom",["left","right"]),t}function yA(n,t,e,i){t&&(_h(n,"createTicks",e),G7.synchronize(n)),_h(n,"draw",!t&&e,i)}function qO(n,t){var e={};return function(i){if(!i.customPositionIsAvailable()||i.customPositionEqualsToPredefined()){var r=e[i.pane]=e[i.pane]||{top:0,left:0,bottom:0,right:0},m=i.getMultipleAxesSpacing(),D=i.getMargins();i.shift(r),r[n]=$v(n,r,D,m),r[t]=$v(t,r,D,m)}else i.shift({top:0,left:0,bottom:0,right:0})}}function jL(n,t){var i,r,e=0;for(i in t.panes)r=t.panes[i],e+="height"===n?r.top+r.bottom:r.left+r.right;return e}function $L(n,t,e,i){var r=0;n[t]>0&&(r=jL(t,i(e,$O)),_h(e,"hideTitle"),n[t]-=r-jL(t,i(e,$O))),n[t]>0&&_h(e,"hideOuterElements")}var Yv=vL.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_initCore:function(){this.paneAxis={},this.callBase()},_init(){this._containerInitialHeight=(0,mi.Ym)()?(0,s.Cr)(this._$element):0,this.callBase()},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:E.ZT,_createPanes:function(){var e,n=this.option("panes"),t=0;return(!n||Ob(n)&&!n.length)&&(n=uU),this.callBase(),e=this.option("defaultPane"),n=(0,y.l)(!0,[],Ob(n)?n:[n]),(0,O.S6)(n,function(i,r){r.name=(0,w.$K)(r.name)?r.name:UL+t++}),(0,w.$K)(e)?KL(n,e)||(this._incidentOccurred("W2101",[e]),e=n[n.length-1].name):e=n[n.length-1].name,this.defaultPane=e,this._isRotated()?n.reverse():n},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(n,t,e){return{isHorizontal:"argumentAxis"===n!==e,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(n){var t=Vn(this.panes,function(e){return e.name});return n.pane=n.pane||this.defaultPane,t.includes(n.pane)},_initCustomPositioningAxes(){var n=this,t=n.getArgumentAxis(),e=t.getOptions().customPositionAxis,i=n._valueAxes.filter(r=>r.pane===t.pane&&(!e||e===r.name))[0];n._valueAxes.forEach(r=>{t!==r.getOrthogonalAxis()&&(r.getOrthogonalAxis=()=>t,r.customPositionIsBoundaryOrthogonalAxis=()=>t.customPositionIsBoundary())}),(0,w.$K)(i)&&i!==t.getOrthogonalAxis()?(t.getOrthogonalAxis=()=>i,t.customPositionIsBoundaryOrthogonalAxis=()=>n._valueAxes.some(r=>r.customPositionIsBoundary())):(0,w.$K)(t.getOrthogonalAxis())&&!(0,w.$K)(i)&&(t.getOrthogonalAxis=E.ZT)},_getAllAxes(){return this._argumentAxes.concat(this._valueAxes)},_resetAxesAnimation(n,t){((0,w.$K)(t)?t^this._isRotated()?this._argumentAxes:this._valueAxes:this._getAllAxes()).forEach(i=>{i.resetApplyingAnimation(n)})},_axesBoundaryPositioning(){var n=this._getAllAxes(),t=!1;return n.forEach(e=>{if(!e.customPositionIsAvailable())return!1;var i=e.customPositionIsBoundary();e._customBoundaryPosition=e.getCustomBoundaryPosition(),t|=i!==e.customPositionIsBoundary()}),t},_getCrosshairMargins:function(){var n=this._getCrosshairOptions()||{},t=n.enabled,e_x=8,e_y=4,i=(0,y.l)(!0,{},n.label,n.horizontalLine.label),r=(0,y.l)(!0,{},n.label,n.verticalLine.label);return{x:t&&n.horizontalLine.visible&&i.visible?e_x:0,y:t&&n.verticalLine.visible&&r.visible?e_y:0}},_getValueAxis:function(n,t){var A,N,e=this._valueAxes,i=this.option("valueAxis")||{},r=Ob(i)?i:[i],m=this._isRotated(),D=this._getCrosshairMargins();return t=t||function dU(n,t,e){for(var i,r=0;r<n.length;r++)if(n[r].pane===t||void 0===n[r].pane&&t===e){i=n[r].name;break}return i||(i=n[0].name),i}(e,n,this.defaultPane),(N=ZL(n,t,e))||(A=function hU(n,t,e){var i,r;for(r=0;r<t.length;r++)if(t[r].name===e){(i=t[r]).priority=r;break}if(!i)for(r=0;r<n.length;r++)if(n[r].name===e){(i=n[r].getOptions()).priority=n[r].priority;break}return i}(e,r,t),A||(this._incidentOccurred("W2102",[t]),A={name:t,priority:e.length}),(N=this._createAxis(!1,this._populateAxesOptions("valueAxis",A,{pane:n,name:t,optionPath:Ob(i)?"valueAxis[".concat(A.priority,"]"):"valueAxis",crosshairMargin:m?D.y:D.x},m))).applyVisualRangeSetter(this._getVisualRangeSetter()),e.push(N)),N.setPane(n),N},_correctValueAxes:function(n){var t=this,e=t._themeManager.getOptions("synchronizeMultiAxes"),i=t._valueAxes,r={};t.series.forEach(function(D){var A=D.getValueAxis();r[A.pane]=!0}),t.panes.forEach(function(D){var A=D.name;r[A]||t._getValueAxis(A),n&&e&&function cU(n){var t=!1,e=[],i=n.some(function(m){var D=m.getOptions().minorGrid;return D&&D.visible}),r=n.some(function(m){var D=m.getOptions().grid;return D&&D.visible});n.length>1&&(n.forEach(function(m){var D=m.getOptions().grid;t?jO(m,!1,!1):D&&D.visible&&(m.getTranslator().getBusinessRange().isEmpty()?(jO(m,!1,!1),e.push(m)):(t=!0,jO(m,r,i)))}),!t&&e.length&&jO(e[0],r,i))}(i.filter(function(N){return N.pane===A}))}),t._valueAxes=i.filter(function(D){D.pane||D.setPane(t.defaultPane);var A=KL(t.panes,D.pane);return A||(D.dispose(),D=null),A}).sort(pU);var m=this.getValueAxis();t._valueAxes.forEach(D=>{var A=D.getOptions().optionPath;if(A){var N=t._valueAxes.filter(Q=>Q.getOptions().optionPath===A);N.length>1&&(N.some(Q=>Q===m)?N.forEach(Q=>{Q!==m&&(Q.getOptions().optionPath=null)}):N.forEach((Q,se)=>{0!==se&&(Q.getOptions().optionPath=null)}))}})},_getSeriesForPane:function(n){var t=[];return(0,O.S6)(this.series,function(e,i){i.pane===n&&t.push(i)}),t},_createPanesBorderOptions:function(){var n=this._themeManager.getOptions("commonPaneSettings").border,t={};return this.panes.forEach(e=>t[e.name]=(0,y.l)(!0,{},n,e.border)),t},_createScrollBar:function(){var n=this._themeManager.getOptions("scrollBar")||{},t=this._scrollBarGroup;n.visible?(n.rotated=this._isRotated(),this._scrollBar=(this._scrollBar||new CL(this._renderer,t)).update(n)):(t.linkRemove(),this._scrollBar&&this._scrollBar.dispose(),this._scrollBar=null)},_executeAppendAfterSeries(n){n()},_prepareToRender(n){var t=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),t},_adjustViewport(){this._themeManager.getOptions("adjustOnZoom")&&this._valueAxes.forEach(t=>t.adjust())},_recreateSizeDependentObjects(n){var t=this,e=t._getVisibleSeries(),i=e.some(m=>m.useAggregation()),r=t._isZooming();i&&(t._argumentAxes.forEach(function(m){m.updateCanvas(t._canvas,!0)}),e.forEach(function(m){m.useAggregation()&&(n||r||!m._useAllAggregatedPoints)&&m.createPoints()}),t._processSeriesFamilies())},_isZooming(){var n=this.getArgumentAxis();if(!n||!n.getTranslator())return!1;var t=n.getTranslator().getBusinessRange(),e=n.getViewport(),i=e?e.min:0,r=e?e.max:0;"logarithmic"===t.axisType&&(i=St(i,t.base),r=St(r,t.base));var m=t.axisType===GO?xr(t.categories,i,r).categories.length:Math.abs(r-i),D=(0,re.p8)(m);D=D>1?Math.pow(10,D-2):1;var A=Math.round((this._zoomLength-m)*D)/D!=0;return this._zoomLength=m,A},_handleSeriesDataUpdated:function(){var n=this,t=new as;n.series.forEach(function(e){t.addRange(e.getArgumentRange())}),n._argumentAxes.forEach(function(e){e.updateCanvas(n._canvas,!0),e.setBusinessRange(t,n._axesReinitialized)}),n.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(n){this._drawPanesBorders(n),this._createClipRectsForPanes(),this._applyClipRectsForAxes(),this._fillPanesBackground()},_updateLegendPosition:function(n,t){if(n.drawLegend&&this._legend&&t){var e=this.panes,i=(0,y.l)({},e[0].canvas),r=new Zv;i.right=e[e.length-1].canvas.right,i.bottom=e[e.length-1].canvas.bottom,r.layoutInsideLegend(this._legend,i)}},_allowLegendInsidePosition:()=>!0,_applyExtraSettings:function(n){var t=this._getPaneIndex(n.pane),e=this._panesClipRects,i=e.wide[t];n.setClippingParams(e.base[t].id,i&&i.id,this._getPaneBorderVisibility(t))},_updatePanesCanvases:function(n){n.recreateCanvas&&function hi(n,t,e){var i=0,m=e?t.width-t.left-t.right:t.height-t.top-t.bottom,D=n.reduce((se,we)=>se+(vn(we)?0:we.height),0),A=m-10*(n.length-1)-D,N=e?"left":"top",Q=e?"right":"bottom";n.forEach(se=>{var we=vn(se)?De(se.height*A):se.height;se.canvas=se.canvas||{},(0,y.l)(se.canvas,t),se.canvas[N]=t[N]+i,se.canvas[Q]=t[Q]+(m-we-i),i=i+we+10,Mn(se.canvas)})}(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight:function(){!function Pn(n){n.forEach(N=>{var Q=N.height,se=0,we=parseFloat(Q)||void 0;((0,w.HD)(Q)&&Q.indexOf("px")>-1||(0,w.kE)(Q)&&Q>1)&&(we=De(we),se=1),!se&&we&&((0,w.HD)(Q)&&Q.indexOf("%")>-1?(we/=100,se=2):we<0&&(we=we<-1?1:Ae(we))),N.height=we,N.unit=se});var t=n.filter(vn),e=t.reduce((N,Q)=>N+(Q.height||0),0),i=t.length,r=t.filter(N=>!N.height),m=r.length;if(e<1&&m)r.forEach(N=>N.height=(1-e)/m);else if(e>1||e<1&&!m||1===e&&m){if(m){var D=e/i,A=m*D;t.filter(N=>N.height).forEach(N=>N.height*=(e-A)/e),r.forEach(N=>N.height=D)}t.forEach(N=>N.height*=1/e)}}(this.panes)},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach(function(n){n.drawScaleBreaks()})},_getArgFilter(){return dh.getViewPortFilter(this.getArgumentAxis().visualRange()||{})},_applyPointMarkersAutoHiding(){var n=this,t=n.series;n._themeManager.getOptions("autoHidePointMarkers")?n.panes.forEach(e=>{var{borderCoords:i,name:r}=e,m=t.filter(Re=>Re.pane===r&&Re.usePointsToDefineAutoHiding()),D=n.getArgumentAxis(),A=function fU(n,t,e){var i=[],r={},m=e.visualRange(),D=e.getTranslator(),A=dh.getViewPortFilter(m||{});return t.forEach(N=>{var Q=N.getValueAxis(),se=Q.getCanvasRange(),we=Q.getTranslator(),Re=n.indexOf(N),Ue=dh.getViewPortFilter(se||{});r[Re]={},t.forEach(Ot=>r[Re][n.indexOf(Ot)]=0);var st=[];N.getPoints().filter(Ot=>Ot.getOptions().visible&&A(Ot.argument)&&(Ue(Ot.getMinValue(!0))||Ue(Ot.getMaxValue(!0)))).forEach(Ot=>{var Kt={seriesIndex:Re,argument:Ot.argument,value:Ot.getMaxValue(!0),size:Ot.bubbleSize||Ot.getOptions().size};if(Ot.getMinValue(!0)!==Ot.getMaxValue(!0)){var sn=(0,y.l)({},Kt);sn.value=Ot.getMinValue(!0),sn.x=D.to(sn.argument,1),sn.y=we.to(sn.value,1),st.push(sn)}Kt.x=D.to(Kt.argument,1),Kt.y=we.to(Kt.value,1),st.push(Kt)}),r[Re].pointsCount=st.length,r[Re].total=0,r[Re].continuousSeries=0,i.push({name:N.name,index:Re,points:st})}),{series:i,overloadedSeries:r}}(t,m,D);if(function _U(n,t,e){for(var i=n.width*n.height,r=t.series,m=function(A){var N=e.filter(Ue=>Ue.name===r[A].name)[0],Q=r[A].points,se=Q.length?Q[0].size:0,we=se*se*Q.length;if(N.autoHidePointMarkersEnabled()&&we>=i/r.length){var Re=r[A].index;N.autoHidePointMarkers=!0,r.splice(A,1),e.splice(e.indexOf(N),1),delete t.overloadedSeries[Re]}},D=r.length-1;D>=0;D--)m(D)}(i,A,m),A.series.length){var N=D.visualRange(),se=D.getOptions().type===GO?(Re,Ue)=>N.categories.indexOf(Re.argument)-N.categories.indexOf(Ue.argument):(Re,Ue)=>Re.argument-Ue.argument,we=[];A.series.forEach(Re=>we=we.concat(Re.points)),we.sort(se),function vU(n,t){for(var e=!1,i=0;i<n.length-1;i++){var r=n[i],m=r.size;if((0,w.$K)(r.x)&&(0,w.$K)(r.y))for(var D=i+1;D<n.length;D++){var A=n[D],N=A?.x,Q=A?.y;if(!(0,w.$K)(N)||Math.abs(r.x-N)>=m){e&=D!==i+1;break}var se=(0,w.$K)(N)&&(0,w.$K)(Q)&&Math.sqrt(Math.pow(r.x-N,2)+Math.pow(r.y-Q,2));se&&se<m&&(t[r.seriesIndex][A.seriesIndex]++,t[r.seriesIndex].total++,e||(t[r.seriesIndex].continuousSeries++,e=!0))}}}(we,A.overloadedSeries),function mU(n,t,e,i){var r=i.getOptions().type;t.forEach(m=>{var D=n.indexOf(m);m.autoHidePointMarkers=!1;var A=i.getTicksValues().majorTicksValues.length;if(m.autoHidePointMarkersEnabled()&&(r===GO||e[D].pointsCount>A))for(var N in e[D]){var Q=parseInt(N);if(!(isNaN(Q)||e[D].total/e[D].continuousSeries<3))if(Q===D){if(2*e[Q][Q]>=e[Q].pointsCount){m.autoHidePointMarkers=!0;break}}else if(e[D].total>=e[D].pointsCount){m.autoHidePointMarkers=!0;break}}})}(t,m,A.overloadedSeries,D)}}):t.forEach(e=>e.autoHidePointMarkers=!1)},_renderAxes:function(n,t){function e(ai){return ai.map(gi=>{if(!gi.getTitle)return 0;var Ci=gi.getTitle();return Ci?Ci.bBox.width:0})}var i=this,r=i._isRotated(),m=i._themeManager.getOptions("synchronizeMultiAxes"),D=i._scrollBar?[i._scrollBar]:[],A=i._isArgumentAxisBeforeScrollBar()?i._argumentAxes.concat(D):D.concat(i._argumentAxes),N=r?i._argumentAxes:i._valueAxes,Q=r?A:i._valueAxes,se=r?i._valueAxes:i._argumentAxes,we=r?i._valueAxes:A,Re=N.concat(se),Ue=Re.concat(D),st=N.some(ai=>ai.isFirstDrawing());i._normalizePanesHeight(),i._updatePanesCanvases(n);var Ot=i.panes.reduce(function(ai,gi){return ai[gi.name]=(0,y.l)({},gi.canvas),ai},{}),Kt=i.panes.reduce((ai,gi)=>(ai[gi.name]={height:gi.height,unit:gi.unit},ai),{}),sn=(0,y.l)(!0,{},Ot);i._initCustomPositioningAxes();var wn=i._axesBoundaryPositioning();if(!n.adjustAxes&&!wn)return yA(N,!r&&m,Ot,t),yA(se,r&&m,Ot,t),_h(Re,"prepareAnimation"),i._renderScaleBreaks(),se.forEach(ai=>ai.resolveOverlappingForCustomPositioning(N)),N.forEach(ai=>ai.resolveOverlappingForCustomPositioning(se)),!1;wn&&Re.forEach(ai=>ai.customPositionIsAvailable()&&ai.shift({top:0,left:0,bottom:0,right:0})),i._scrollBar&&i._scrollBar.setPane(i.panes);var rn={panes:{}},Ft=YO(we,ai=>ai.estimateMargins(Ot[ai.pane]));Ot=XO(r,Ot,Kt,rn,Ft);var qt=ai=>{yA(ai?se:N,(ai?r:!r)&&m,Ot,t),ai?Ft=YO(we,$O):rn=vA(Q),Ot=XO(r,Ot,Kt,rn,Ft)};qt(!1),qt(!0),!i._changesApplying&&i._estimateTickIntervals(N,Ot)&&qt(!1);var un=e(N),In=i._getVisibleSeries(),Yn=function gU(n,t){var e=t.reduce((i,r)=>i+r,0)/t.length;return n.animate&&e<=n.animationPointsLimit}(n,i._getPointsToAnimation(In));return _h(Ue,"updateSize",Ot,Yn),we.forEach(qO("top","bottom")),Q.forEach(qO("left","right")),i._renderScaleBreaks(),i.panes.forEach(function(ai){(0,y.l)(ai.canvas,Ot[ai.name])}),i._valueAxes.forEach(ai=>{ai.setInitRange()}),N.forEach((ai,gi)=>{var Ci;if(null!==(Ci=ai.hasWrap)&&void 0!==Ci&&Ci.call(ai)){var Ki=ai.getTitle(),ri=(Ki?Ki.bBox.width:0)-un[gi];"right"===ai.getOptions().position?rn.right+=ri:(rn.left+=ri,i.panes.forEach(Fi=>{var{name:Gi}=Fi;return rn.panes[Gi].left+=ri})),Ot=XO(r,Ot,Kt,rn,Ft),_h(Ue,"updateSize",Ot,!1,!1),un=e(N)}}),N.some(ai=>ai.customPositionIsAvailable()&&ai.getCustomPosition()!==ai._axisPosition)&&(Yn&&i._resetAxesAnimation(st,!1),_h(N,"updateSize",Ot,Yn)),se.forEach(ai=>ai.resolveOverlappingForCustomPositioning(N)),N.forEach(ai=>ai.resolveOverlappingForCustomPositioning(se)),sn},_getExtraTemplatesItems(){var n=(this._argumentAxes||[]).concat(this._valueAxes||[]),t=this._collectTemplatesFromItems(n);return{items:t.items,groups:t.groups,launchRequest(){n.forEach(function(e){e.setRenderedState(!0)})},doneRequest(){n.forEach(function(e){e.setRenderedState(!1)})}}},_estimateTickIntervals:(n,t)=>n.some(e=>e.estimateTickInterval(t[e.pane])),checkForMoreSpaceForPanesCanvas(){var n=this._isRotated(),e=!1;if(this.panes.filter(Ue=>Ue.unit).length===this.panes.length){var i=0,r=0;if(n){var m=this.getArgumentAxis().getMargins().right,D=Math.min.apply(Math,this.panes.map(Ue=>Ue.canvas.right));i=this._canvas.right+m-D}else{var A=this.getArgumentAxis().getMargins().bottom,N=Math.min.apply(Math,this.panes.map(Ue=>Ue.canvas.bottom));r=this._canvas.bottom+A-N}if(e=(i>0||r>0)&&{width:i,height:r},0!==r){var Q=this.getSize(),se=this.option("size"),Re=!!parseInt(this._$element[0].style.height)||0!==this._containerInitialHeight;!n&&(!se||!se.height)&&!Re&&(this._forceResize(Q.width,Q.height+r),e=!1)}}else e=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),n,Ue=>({width:n&&!!Ue.unit,height:!n&&!!Ue.unit}));return e},_forceResize(n,t){this._renderer.resize(n,t),this._updateSize(),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes(n,t){if(n&&t){this._renderer.stopAllAnimations(!0);var e=this._isRotated(),i=this._scrollBar?[this._scrollBar]:[],r=this._isArgumentAxisBeforeScrollBar()?this._argumentAxes.concat(i):i.concat(this._argumentAxes),m=e?r:this._valueAxes,D=e?this._valueAxes:r,A=m.concat(D);if(n.width||n.height){$L(n,"height",D,YO),$L(n,"width",m,vA),_h(A,"updateSize",t);var N=this.panes.reduce((Q,se)=>(Q[se.name]={height:se.height,unit:se.unit},Q),{});_h(A,"updateSize",t=XO(e,t,N,vA(m),YO(D,$O))),D.forEach(qO("top","bottom")),m.forEach(qO("left","right")),this.panes.forEach(Q=>(0,y.l)(Q.canvas,t[Q.name]))}}},_isArgumentAxisBeforeScrollBar(){var n=this.getArgumentAxis();if(this._scrollBar){var t,e=n.getResolvedBoundaryPosition(),i=null===(t=n.getOptions().label)||void 0===t?void 0:t.position,r=this._scrollBar.getOptions().position;return n.hasNonBoundaryPosition()||r===e&&i!==r}return!1},_getPanesParameters:function(){var t,n=this.panes,e=[];for(t=0;t<n.length;t++)this._getPaneBorderVisibility(t)&&e.push({coords:n[t].borderCoords,clipRect:this._panesClipRects.fixed[t]});return e},_createCrosshairCursor:function(){var n=this._themeManager.getOptions("crosshair")||{},t=this.getArgumentAxis(),e=this._isRotated()?[this._valueAxes,[t]]:[[t],this._valueAxes],i={canvas:this._getCommonCanvas(),panes:this._getPanesParameters(),axes:e};!n||!n.enabled||(this._crosshair?this._crosshair.update(n,i):this._crosshair=new dA(this._renderer,n,i,this._crosshairCursorGroup),this._crosshair.render())},_getCommonCanvas:function(){var n,t,e,i=this.panes;for(n=0;n<i.length;n++)t=i[n].canvas,e?(e.right=t.right,e.bottom=t.bottom):e=(0,y.l)({},t);return e},_createPanesBackground:function(){var t,i,r,n=this._themeManager.getOptions("commonPaneSettings").backgroundColor,e=this._renderer,m=[];for(this._panesBackgroundGroup.clear(),r=0;r<this.panes.length;r++)(t=this.panes[r].backgroundColor||n)&&"none"!==t?(i=e.rect(0,0,0,0).attr({fill:t,"stroke-width":0}).append(this._panesBackgroundGroup),m.push(i)):m.push(null);this.panesBackground=m},_fillPanesBackground:function(){var t,n=this;(0,O.S6)(n.panes,function(e,i){t=i.borderCoords,null!==n.panesBackground[e]&&n.panesBackground[e].attr({x:t.left,y:t.top,width:t.width,height:t.height})})},_calcPaneBorderCoords:function(n){var t=n.canvas,e=n.borderCoords=n.borderCoords||{};e.left=t.left,e.top=t.top,e.right=t.width-t.right,e.bottom=t.height-t.bottom,e.width=Math.max(e.right-e.left,0),e.height=Math.max(e.bottom-e.top,0)},_drawPanesBorders:function(n){var t=this,e=t._isRotated();t._panesBorderGroup.linkRemove().clear(),(0,O.S6)(t.panes,function(i,r){var m=n[r.name],D={fill:"none",stroke:m.color,"stroke-opacity":m.opacity,"stroke-width":m.width,dashStyle:m.dashStyle,"stroke-linecap":"square"};if(t._calcPaneBorderCoords(r,e),m.visible){var A=r.borderCoords,N=function(n,t,e,i,r){var Re,m=~~((e<i?e:i)/2),D=r.width||0,A=D<m?D:m,N=(n+=A/2)+(e-=A),Q=(t+=A/2)+(i-=A),se=[],we=[],Ue=0,st=0,Ot={top:[[n,t],[N,t]],right:[[N,t],[N,Q]],bottom:[[N,Q],[n,Q]],left:[[n,Q],[n,t]]};switch((0,O.S6)(Ot,function(Kt){Ue=2*Ue+~~!!r[Kt]}),Ue){case 13:case 9:Re=["left","top","right","bottom"];break;case 11:Re=["bottom","left","top","right"];break;default:Re=["top","right","bottom","left"]}return(0,O.S6)(Re,function(Kt,sn){var wn=!!r[sn];!st&&we.length&&(se.push(we),we=[]),wn&&(0,O.S6)(Ot[sn].slice(st),function(rn,Ft){we=we.concat(Ft)}),st=~~wn}),we.length&&se.push(we),1===se.length&&(se=se[0]),{points:se,pathType:15===Ue?"area":"line"}}(A.left,A.top,A.width,A.height,m);t._renderer.path(N.points,N.pathType).attr(D).append(t._panesBorderGroup)}}),t._panesBorderGroup.linkAppend()},_createClipRect:function(n,t,e,i,r,m){var D=n[t];D?D.attr({x:e,y:i,width:r,height:m}):(D=this._renderer.clipRect(e,i,r,m),n[t]=D)},_createClipRectsForPanes:function(){var n=this,t=n._canvas;(0,O.S6)(n.panes,function(e,i){var r=!1,m=i.borderCoords,D=m.left,A=m.top,N=m.width,Q=m.height,se=n._panesClipRects;n._createClipRect(se.fixed,e,D,A,N,Q),n._createClipRect(se.base,e,D,A,N,Q),(0,O.S6)(n.series,function(we,Re){Re.pane===i.name&&(Re.isFinancialSeries()||Re.areErrorBarsVisible())&&(r=!0)}),r?(n._isRotated()?(A=0,Q=t.height):(D=0,N=t.width),n._createClipRect(se.wide,e,D,A,N,Q)):se.wide[e]=null})},_applyClipRectsForAxes(){for(var n=this._getAllAxes(),t=this._getCanvasClipRectID(),e=0;e<n.length;e++){var i=this._getElementsClipRectID(n[e].pane);n[e].applyClipRects(i,t)}},_getPaneBorderVisibility:function(n){var t=this._themeManager.getOptions("commonPaneSettings").border.visible,i=(this.panes[n]||{}).border||{};return"visible"in i?i.visible:t},_getCanvasForPane:function(n){var i,t=this.panes,e=t.length;for(i=0;i<e;i++)if(t[i].name===n)return t[i].canvas},_getTrackerSettings:function(){var n=this._themeManager;return(0,y.l)(this.callBase(),{chart:this,rotated:this._isRotated(),crosshair:this._getCrosshairOptions().enabled?this._crosshair:null,stickyHovering:n.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var n=this,t=n._isRotated(),e=t?function(i,r){return{x:i.x-r,y:i.y}}:function(i,r){return{x:i.x,y:i.y-r}};(0,O.S6)(n._getStackPoints(),function(i,r){(0,O.S6)(r,function(m,D){var A=D[0].series.getValueAxis().getOptions().inverted;nA_resolveLabelOverlappingInOneDirection(D,n._getCommonCanvas(),t,A,e,(N,Q)=>{var se=t?1:0;return N.labels[0].getFigureCenter()[se]-Q.labels[0].getFigureCenter()[se]==0?(N.value()-Q.value())*(N.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0})})})},_getStackPoints:function(){var n={},t=this._getVisibleSeries();return(0,O.S6)(t,function(e,i){var r=i.getPoints(),m=i.getStackName()||null;(0,O.S6)(r,function(D,A){var N=A.argument;n[N]||(n[N]={}),n[N][m]||(n[N][m]=[]),n[N][m].push(A)})}),n},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument(n,t){!this._initialized||!(0,w.$K)(n)&&!(0,w.$K)(t)||this.getArgumentAxis().visualRange([n,t])},resetVisualRange(){var n=this,t=n._argumentAxes,e=n.getArgumentAxis();t.forEach(i=>{i.resetVisualRange(e!==i),n._applyCustomVisualRangeOption(i)}),n.callBase()},getVisibleArgumentBounds:function(){var t=this._argumentAxes[0].getTranslator().getBusinessRange(),e=t.axisType===GO,i=t.categories;return{minVisible:e?t.minVisible||i[0]:t.minVisible,maxVisible:e?t.maxVisible||i[i.length-1]:t.maxVisible}},_change_FULL_RENDER(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes(n,t){if(n.isArgumentAxis){if(n!==this.getArgumentAxis())return!0;this._argumentAxes.filter(e=>e!==n).forEach(e=>e.visualRange(t,{start:!0,end:!0}))}return!1},_raiseZoomEndHandlers(){this._argumentAxes.forEach(n=>n.handleZoomEnd()),this.callBase()},_setOptionsByReference(){this.callBase(),(0,y.l)(this._optionsByReference,{"argumentAxis.visualRange":!0})},option(){var n=this.callBase.apply(this,arguments),t=this._options.silent("valueAxis");if("array"===(0,w.dt)(t))for(var e=0;e<t.length;e++){var i="valueAxis[".concat(e,"].visualRange");this._optionsByReference[i]=!0}return n},_notifyVisualRange(){var n=this._argumentAxes[0],t=Nr(n.visualRange(),!Ob(this.option("argumentAxis.visualRange")));n.skipEventRising&&Ur(t,this.option("argumentAxis.visualRange"))?n.skipEventRising=null:this.option("argumentAxis.visualRange",t),this.callBase()}});Yv.addPlugin(TW),Yv.addPlugin(XW),Yv.addPlugin(wf.core),Yv.addPlugin(wf.chart),(0,T.Z)("dxChart",Yv);let YL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.M2g,M.Zt4,M.xNt,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.irQ,M.Llc,M.tis,M.ji7,M.ZmN,M.rrz,M.zk3,M.Wj0,M.DHG,M._7s,M.MHt,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M._ZT,M.jtD,M.Az0,M.p7n,M.lj9,M.FYN,M.KjY,M.lTN,M.rHV,M.Bpy,M.R5e,M.ZLS,M.Rue,M.Kx,M.vZC,M.GTS,M.Y25,M.UV$,g.Lz,g.ie,p.Cu],M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.M2g,M.Zt4,M.xNt,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.irQ,M.Llc,M.tis,M.ji7,M.ZmN,M.rrz,M.zk3,M.Wj0,M.DHG,M._7s,M.MHt,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M._ZT,M.jtD,M.Az0,M.p7n,M.lj9,M.FYN,M.KjY,M.lTN,M.rHV,M.Bpy,M.R5e,M.ZLS,M.Rue,M.Kx,M.vZC,M.GTS,M.Y25,M.UV$,g.ie]}),n})();var XL=u(6193);let qL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,g.Lz,g.ie,p.Cu],M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,g.ie]}),n})();var xU=u(7565);const bU={provide:ne.JU,useExisting:(0,a.Gpc)(()=>wU),multi:!0};let wU=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"cancelButtonTextChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"editAlphaChannelChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(e){this._setOption("applyButtonText",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(e){this._setOption("cancelButtonText",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get editAlphaChannel(){return this._getOption("editAlphaChannel")}set editAlphaChannel(e){this._setOption("editAlphaChannel",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get keyStep(){return this._getOption("keyStep")}set keyStep(e){this._setOption("keyStep",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new xU.Z(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-color-box"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.k4o,4),2&e){let m;a.iGM(m=a.CRH())&&(i.buttonsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",cancelButtonText:"cancelButtonText",deferRendering:"deferRendering",disabled:"disabled",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",editAlphaChannel:"editAlphaChannel",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",keyStep:"keyStep",label:"label",labelMode:"labelMode",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",cancelButtonTextChange:"cancelButtonTextChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",editAlphaChannelChange:"editAlphaChannelChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",labelModeChange:"labelModeChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,bU,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),JL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,g.Lz,g.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,g.ie]}),n})();var Xv=u(1875);let QL=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Fkd,M.oyT,M.lar,g.Lz,g.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Fkd,M.oyT,M.lar,g.ie]}),n})();var eB=u(2625),tB=u(1884);const EU={provide:ne.JU,useExisting:(0,a.Gpc)(()=>SU),multi:!0};let SU=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"adaptivityEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"calendarOptionsChange"},{emit:"cancelButtonTextChange"},{emit:"dateOutOfRangeMessageChange"},{emit:"dateSerializationFormatChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"disabledDatesChange"},{emit:"displayFormatChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"intervalChange"},{emit:"invalidDateMessageChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"maxLengthChange"},{emit:"minChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"pickerTypeChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showAnalogClockChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"todayButtonTextChange"},{emit:"typeChange"},{emit:"useMaskBehaviorChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get adaptivityEnabled(){return this._getOption("adaptivityEnabled")}set adaptivityEnabled(e){this._setOption("adaptivityEnabled",e)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(e){this._setOption("applyButtonText",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get calendarOptions(){return this._getOption("calendarOptions")}set calendarOptions(e){this._setOption("calendarOptions",e)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(e){this._setOption("cancelButtonText",e)}get dateOutOfRangeMessage(){return this._getOption("dateOutOfRangeMessage")}set dateOutOfRangeMessage(e){this._setOption("dateOutOfRangeMessage",e)}get dateSerializationFormat(){return this._getOption("dateSerializationFormat")}set dateSerializationFormat(e){this._setOption("dateSerializationFormat",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get disabledDates(){return this._getOption("disabledDates")}set disabledDates(e){this._setOption("disabledDates",e)}get displayFormat(){return this._getOption("displayFormat")}set displayFormat(e){this._setOption("displayFormat",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get interval(){return this._getOption("interval")}set interval(e){this._setOption("interval",e)}get invalidDateMessage(){return this._getOption("invalidDateMessage")}set invalidDateMessage(e){this._setOption("invalidDateMessage",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get pickerType(){return this._getOption("pickerType")}set pickerType(e){this._setOption("pickerType",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showAnalogClock(){return this._getOption("showAnalogClock")}set showAnalogClock(e){this._setOption("showAnalogClock",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get todayButtonText(){return this._getOption("todayButtonText")}set todayButtonText(e){this._setOption("todayButtonText",e)}get type(){return this._getOption("type")}set type(e){this._setOption("type",e)}get useMaskBehavior(){return this._getOption("useMaskBehavior")}set useMaskBehavior(e){this._setOption("useMaskBehavior",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new tB.Z(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("disabledDates",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("disabledDates"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-date-box"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.k4o,4),2&e){let m;a.iGM(m=a.CRH())&&(i.buttonsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",adaptivityEnabled:"adaptivityEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",buttons:"buttons",calendarOptions:"calendarOptions",cancelButtonText:"cancelButtonText",dateOutOfRangeMessage:"dateOutOfRangeMessage",dateSerializationFormat:"dateSerializationFormat",deferRendering:"deferRendering",disabled:"disabled",disabledDates:"disabledDates",displayFormat:"displayFormat",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",interval:"interval",invalidDateMessage:"invalidDateMessage",isValid:"isValid",label:"label",labelMode:"labelMode",max:"max",maxLength:"maxLength",min:"min",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",pickerType:"pickerType",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showAnalogClock:"showAnalogClock",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",todayButtonText:"todayButtonText",type:"type",useMaskBehavior:"useMaskBehavior",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",adaptivityEnabledChange:"adaptivityEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",calendarOptionsChange:"calendarOptionsChange",cancelButtonTextChange:"cancelButtonTextChange",dateOutOfRangeMessageChange:"dateOutOfRangeMessageChange",dateSerializationFormatChange:"dateSerializationFormatChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",disabledDatesChange:"disabledDatesChange",displayFormatChange:"displayFormatChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",intervalChange:"intervalChange",invalidDateMessageChange:"invalidDateMessageChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxChange:"maxChange",maxLengthChange:"maxLengthChange",minChange:"minChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",pickerTypeChange:"pickerTypeChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showAnalogClockChange:"showAnalogClockChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",todayButtonTextChange:"todayButtonTextChange",typeChange:"typeChange",useMaskBehaviorChange:"useMaskBehaviorChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,EU,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),nB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.sRG,M.o0O,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,g.Lz,g.ie,p.Cu],M.idP,M.UxI,M.sRG,M.o0O,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,g.ie]}),n})();var CA=u(4430),JO={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},DU=CA.w.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(n){return n.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return x.Z.current().android||x.Z.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(n){return"preset_"+n},_createAndroidSlideAnimationConfig:function(n,t){var e=this,i=function(r){return{type:"slide",delay:void 0===r.delay?e.option("defaultAnimationDelay"):r.delay,duration:void 0===r.duration?e.option("defaultAnimationDuration"):r.duration}};return{enter:function(r,m){var D=(0,s.dz)(r.parent())*t,A=m.direction,N=i(m);return N.to={left:0,opacity:1},N.from="forward"===A?{left:D,opacity:n}:"backward"===A?{left:-D,opacity:n}:{left:0,opacity:0},h.Z.createAnimation(r,N)},leave:function(r,m){var D=(0,s.dz)(r.parent())*t,A=m.direction,N=i(m);return N.from={left:0,opacity:1},N.to="forward"===A?{left:-D,opacity:n}:"backward"===A?{left:D,opacity:n}:{left:0,opacity:0},h.Z.createAnimation(r,N)}}},_createOpenDoorConfig:function(){var n=this,t=function(e){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===e.delay?n.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?n.option("defaultAnimationDuration"):e.duration}};return{enter:function(e,i){var r=i.direction,m=t(i);return m.delay="none"===r?m.delay:m.duration,m.from="dx-enter dx-opendoor-animation"+JO[r],m.to="dx-enter-active",h.Z.createAnimation(e,m)},leave:function(e,i){var r=i.direction,m=t(i);return m.from="dx-leave dx-opendoor-animation"+JO[r],m.to="dx-leave-active",h.Z.createAnimation(e,m)}}},_createWinPopConfig:function(){var n=this,t={type:"css",extraCssClasses:"dx-win-pop-animation",duration:n.option("defaultAnimationDuration")};return{enter:function(e,i){var r=t,m=i.direction;return r.delay="none"===m?n.option("defaultAnimationDelay"):n.option("defaultAnimationDuration")/2,r.from="dx-enter dx-win-pop-animation"+JO[m],r.to="dx-enter-active",h.Z.createAnimation(e,r)},leave:function(e,i){var r=t,m=i.direction;return r.delay=n.option("defaultAnimationDelay"),r.from="dx-leave dx-win-pop-animation"+JO[m],r.to="dx-leave-active",h.Z.createAnimation(e,r)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(n){var t=this,e=[];(0,O.S6)(this._registeredPresets,function(i,r){n&&n!==r.name?e.push(r):t.option(t._getPresetOptionName(r.name),void 0)}),this._registeredPresets=e,this.applyChanges()},registerPreset:function(n,t){this._registeredPresets.push({name:n,config:t})},applyChanges:function(){var n=this,t=[];(0,O.S6)(this._registeredPresets,function(e,i){var r={device:i.config.device,options:{}};r.options[n._getPresetOptionName(i.name)]=i.config.animation,t.push(r)}),this._setOptionsByDevice(t)},getPreset:function(n){for(var t=n;"string"==typeof t;)t=this.option(this._getPresetOptionName(t));return t},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return x.Z.current().android||x.Z.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!x.Z.current().android&&!x.Z.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!x.Z.current().android&&!x.Z.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return x.Z.current().android||x.Z.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}}),TU=new DU,IU={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},iB="dx-animating",MU=ar.Z.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(n,t,e,i){n=(0,l.Z)(n);var r=this,m=[],D=this._prepareElementAnimationConfig(t,e=e||{},i);return D&&n.each(function(){var A=r._createAnimation((0,l.Z)(this),D,e);A&&(A.element.addClass(iB),A.setup(),m.push(A))}),m},_prepareElementAnimationConfig:function(n,t,e){var i;if("string"==typeof n&&(n=TU.getPreset(n)),n)if((0,w.mf)(n[e]))i=n[e];else{if(!(i=(0,y.l)({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},n,t)).type||"css"===i.type){var m="dx-"+e,D=(i.extraCssClasses?" "+i.extraCssClasses:"")+IU[i.direction];i.type="css",i.from=(i.from||m)+D,i.to=i.to||m+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[e],this._accumulatedDelays[e]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(n,t,e){var i;return(0,w.PO)(t)?i=h.Z.createAnimation(n,t):(0,w.mf)(t)&&(i=t(n,e)),i},_startAnimations:function(){for(var n=this._animations,t=0;t<n.length;t++)n[t].start()},_stopAnimations:function(n){for(var t=this._animations,e=0;e<t.length;e++)t[e].stop(n)},_clearAnimations:function(){for(var n=this._animations,t=0;t<n.length;t++)n[t].element.removeClass(iB);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new P.BH,this._completePromise=this._completeDeferred.promise()},enter:function(n,t,e){var i=this._createAnimations(n,t,e,"enter");this._animations.push.apply(this._animations,i)},leave:function(n,t,e){var i=this._createAnimations(n,t,e,"leave");this._animations.push.apply(this._animations,i)},start:function(){var t,n=this;if(this._animations.length){var e=(0,O.UI)(this._animations,function(i){var r=new P.BH;return i.deferred.always(function(){r.resolve()}),r.promise()});t=P.gx.apply(l.Z,e).always(function(){n._completeDeferred.resolve(),n.reset()}),(0,E.Wi)(function(){n._startAnimations()})}else n.reset(),t=(new P.BH).resolve().promise();return t},stop:function(n){this._stopAnimations(n)}}),Db=u(2526),xA=u(1427),ca=u(6853),Yo=u(5450),rB=(0,mi.Jj)(),oB="dx-pending-rendering",aB="dx-pending-rendering-manual",sB="dx-pending-rendering-active",NU=["onRendered","onShown"],lB=ca.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.transitionExecutor=new MU,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var n=this,t=this.$element(),e=this.option("renderWhen"),i=()=>n._renderDeferredContent();(0,w.tI)(e)?(0,P.p4)(e).done(i):(t.data("dx-render-delegate",i),void 0===e&&t.addClass(aB))},_initActions:function(){this._actions={},(0,O.S6)(NU,(n,t)=>{this._actions[t]=this._createActionByOption(t)||E.ZT})},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=()=>{}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass("dx-widget"),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var n=this,t=this.$element(),e=new P.BH;return t.removeClass(aB),t.addClass(sB),this._abortRenderTask(),this._renderTask=(0,E.Wi)(()=>{n._renderImpl().done(()=>{var i={element:t};n._actions.onShown([i]),e.resolve(i)}).fail(function(){e.rejectWith(e,arguments)})}),e.promise()},_isElementInViewport:function(n){var t=(0,Yo.l)(n);return t.bottom>=0&&t.right>=0&&t.top<=(rB.innerHeight||b.Z.getDocumentElement().clientHeight)&&t.left<=(rB.innerWidth||b.Z.getDocumentElement().clientWidth)},_animate:function(){var r,n=this,t=this.$element(),e=(0,mi.Ym)()&&this.option("animation"),i=this.option("staggerItemSelector");return n.transitionExecutor.stop(),e?(i?t.find(i).each(function(){n._isElementInViewport(this)&&n.transitionExecutor.enter((0,l.Z)(this),e)}):n.transitionExecutor.enter(t,e),r=n.transitionExecutor.start()):r=(new P.BH).resolve().promise(),r},_renderImpl:function(){var n=this.$element(),t={element:n},e=this._getTemplate(this._templateManager.anonymousTemplateName);return e&&e.render({container:n.empty(),noModel:!0}),this._setRenderedState(n),d.Z.trigger(n,"dxcontentrendered"),this._actions.onRendered([t]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var n=this.$element(),t=!!n.find(".dx-visible-while-pending-rendering").length;n.addClass(oB),t||n.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(n)},_showLoadIndicator:function(n){this._$loadIndicator=new xA.Z((0,l.Z)("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),(0,l.Z)("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(n)},_setRenderedState:function(){var n=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),n.removeClass(oB),n.removeClass(sB),(0,Db.Uo)(n.children())},_optionChanged:function(n){var t=n.value,e=n.previousValue;switch(n.name){case"renderWhen":!1===e&&!0===t?this._renderOrAnimate():!0===e&&!1===t&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(n)}},_renderOrAnimate:function(){var n;return this._isRendered?(this._setRenderedState(),n=this._animate()):n=this._renderDeferredContent(),n},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});(0,T.Z)("dxDeferRendering",lB);let uB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,g.Lz,g.ie,p.Cu],M.IOm,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,g.ie]}),n})();var Go=u(6738),QO=u(5791),Hs=u(8159),dB=u(8991),zU=u.n(dB);function To(){if(!zU())throw Hs.Z.Error("E1041","devexpress-diagram");return dB}var qv=u(658),eD=u(4362),tD=u(3576),Tb=u(7858);const bA=class WU{constructor(t){var{EventDispatcher:e}=To();this.onChanged=new e,this._owner=t}raiseBarCommandExecuted(t,e){this.onChanged.raise("notifyBarCommandExecuted",parseInt(t),e)}getCommandKeys(){throw"Not Implemented"}setItemValue(t,e){}setItemEnabled(t,e){}setItemVisible(t,e){}setEnabled(t){}setItemSubItems(t,e){}isVisible(){return!0}_getKeys(t){return t.reduce((i,r)=>(void 0!==r.command&&i.push(r.command),r.items&&(i=i.concat(this._getKeys(r.items))),i),[])}};var cB=(0,k.V4)(So.Z.up,"dxDiagramPanel");const hB=class ZU extends ca.Z{_init(){super._init(),this._createOnPointerUpAction()}_render(){super._render(),this._attachPointerUpEvent()}_getPointerUpElements(){return[this.$element()]}_attachPointerUpEvent(){this._getPointerUpElements().forEach(e=>{d.Z.off(e,cB),d.Z.on(e,cB,i=>{(0,l.Z)(i.target).closest(".dx-textbox").length||this._onPointerUpAction()})})}_createOnPointerUpAction(){this._onPointerUpAction=this._createActionByOption("onPointerUp")}_optionChanged(t){"onPointerUp"===t.name?this._createOnPointerUpAction():super._optionChanged(t)}};var wA={getContextMenuItemTemplate(n,t,e,i){var r=(0,l.Z)(i);r.empty();var m=void 0!==t.rootCommand?t.rootCommand:-1;if(t.icon&&!t.checked){var D=(0,W.H)(t.icon);r.append(D)}else if(n._menuHasCheckedItems&&!0===n._menuHasCheckedItems[m]){var A=(0,W.H)("check");A.css("visibility",t.checked?"visible":"hidden"),r.append(A)}r.append('<span class="dx-menu-item-text">'+t.text+"</span>"),Array.isArray(t.items)&&t.items.length>0&&r.append('<span class="dx-menu-item-popout-container"><div class="dx-menu-item-popout"></div></span>')},getContextMenuCssClass:()=>"dx-diagram-contextmenu",onContextMenuItemClick(n,t,e){if(void 0===t.command&&void 0===t.name||Array.isArray(t.items)&&t.items.length){if(void 0!==t.rootCommand&&void 0!==t.value){var r=wA.getItemCommandParameter(n,t,t.value);e.call(this,t.rootCommand,void 0,r)}}else{var i=wA.getItemCommandParameter(n,t);e.call(this,t.command,t.name,i)}},getItemValue:n=>"object"==typeof n.value?JSON.stringify(n.value):n.value,getItemOptionText(n,t){if(n){t=t.slice();var e=this._getParentItemOptionText(t);n._originalItemsInfo&&n._originalItemsInfo[e]&&(t[t.length-1]+=n._originalItemsInfo[e].indexPathCorrection)}return this._getItemOptionTextCore(t)},_getParentItemOptionText(n){var t=n.slice(0,n.length-1);return this._getItemOptionTextCore(t)},_getItemOptionTextCore:n=>n.reduce((t,e)=>t+"items[".concat(e,"]."),""),getItemCommandParameter:(n,t,e)=>t.getParameter?t.getParameter(n):e,updateContextMenuItems(n,t,e,i){n._originalItemsInfo||(n._originalItemsInfo={}),n._originalItemsInfo[t]||(n._originalItemsInfo[t]={items:n.option(t+"items")||[]}),i=i.map(m=>({value:this.getItemValue(m),text:m.text,checked:m.checked,widget:n,rootCommand:e}));var r=n._originalItemsInfo[t].items;n.option(t+"items",i.concat(r)),n._originalItemsInfo[t]&&r.length&&(n._originalItemsInfo[t].indexPathCorrection=i.length)},updateContextMenuItemVisible(n,t,e){n.option(t+"visible",e)},updateContextMenuItemValue(n,t,e,i){var r=n.option(t+"items");"boolean"!=typeof i||r&&r.length?void 0!==i&&(this._setContextMenuHasCheckedItems(n,e),Array.isArray(r)&&r.forEach((m,D)=>{m.checked=m.value===i})):(this._setContextMenuHasCheckedItems(n,-1),n.option(t+"checked",i))},_setContextMenuHasCheckedItems(n,t){n._menuHasCheckedItems||(n._menuHasCheckedItems={}),n._menuHasCheckedItems[t]=!0}};const sl=wA;var GU=u(5079),EA=(u(344),"dx-diagram-mobile-toolbar-color-box-opened");class JU extends bA{getCommandKeys(){return this._getKeys(this._owner._commands)}setItemValue(t,e){this._owner._setItemValue(t,e)}setItemEnabled(t,e){this._owner._setItemEnabled(t,e)}setEnabled(t){this._owner._setEnabled(t)}setItemSubItems(t,e){this._owner._setItemSubItems(t,e)}}class pB{constructor(t){this._widget=t}canUpdate(t){return void 0===t}setEnabled(t){this._widget.option("disabled",!t)}setValue(t,e,i,r){"value"in this._widget.option()?this._updateEditorValue(t,e):void 0!==t&&this._updateButtonValue(t),i&&this._updateContextMenuItemValue(i,"",r,t)}setItems(t,e,i){e?this._updateContextMenuItems(e,"",i,t):this._updateEditorItems(t)}_updateContextMenuItems(t,e,i,r){sl.updateContextMenuItems(t,e,i,r)}_updateEditorItems(t){"items"in this._widget.option()&&this._widget.option("items",t.map(e=>({value:sl.getItemValue(e),text:e.text})))}_updateEditorValue(t,e){this._widget.option("value",t),!this._widget.option("selectedItem")&&e&&this._widget.option("value",e)}_updateButtonValue(t){this._widget.option("iconChecked")&&this._widget.option("iconUnchecked")?this._widget.option("icon",this._widget.option(t?"iconChecked":"iconUnchecked")):this._widget.$element().toggleClass("dx-format-active",t)}_updateContextMenuItemValue(t,e,i,r){sl.updateContextMenuItemValue(t,e,i,r)}}class QU extends pB{constructor(t,e,i,r){super(t),this._indexPath=e,this._rootCommandKey=i,this._rootWidget=r}canUpdate(t){return super.canUpdate(t)||t===this._widget}setEnabled(t){this._widget.option(this._getItemOptionText()+"disabled",!t);var e=this._hasEnabledCommandItems(this._widget.option("items"));this._rootWidget.option("disabled",!e)}_hasEnabledCommandItems(t){return!!t&&t.some(e=>void 0!==e.command&&!e.disabled||this._hasEnabledCommandItems(e.items))}setValue(t){this._updateContextMenuItemValue(this._widget,this._getItemOptionText(),this._rootCommandKey,t)}setItems(t){this._updateContextMenuItems(this._widget,this._getItemOptionText(),this._rootCommandKey,t)}_getItemOptionText(){return sl.getItemOptionText(this._widget,this._indexPath)}}const Ib=class qU extends hB{_init(){this._commands=[],this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[],this._valueConverters={},this.bar=new JU(this),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnSubMenuVisibilityChangingAction(),super._init()}_initMarkup(){super._initMarkup();var t=!(0,mi.Ym)();!this.option("skipAdjustSize")&&!t&&(0,s.cl)(this.$element(),""),this._commands=this._getCommands(),this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[];var e=this._createMainElement();if(this._renderToolbar(e),!this.option("skipAdjustSize")&&!t){var i=this.$element().find(".dx-toolbar-before");(0,s.cl)(this.$element(),(0,s.dz)(i))}}_createMainElement(){return(0,l.Z)("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element)}_getCommands(){return this.option("commands")||[]}_renderToolbar(t){var e=this._commands.filter(D=>-1===["after","center"].indexOf(D.location)),i=this._commands.filter(D=>"center"===D.location),r=this._commands.filter(D=>"after"===D.location),m=[].concat(this._prepareToolbarItems(e,"before",this._executeCommand)).concat(this._prepareToolbarItems(i,"center",this._executeCommand)).concat(this._prepareToolbarItems(r,"after",this._executeCommand));this._toolbarInstance=this._createComponent(t,Tb.Z,{dataSource:m})}_prepareToolbarItems(t,e,i){return t.map(r=>(0,y.l)(!0,{location:e,locateInMenu:this.option("locateInMenu")},this._createItem(r,e,i),this._createItemOptions(r),this._createItemActionOptions(r,i)))}_createItem(t,e,i){return(t.getCommandValue||t.getEditorValue||t.getEditorDisplayValue)&&(this._valueConverters[t.command]={getCommandValue:t.getCommandValue,getEditorValue:t.getEditorValue,getEditorDisplayValue:t.getEditorDisplayValue}),"separator"===t.widget?{template:(r,m,D)=>{(0,l.Z)(D).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:(r,m,D)=>{(0,l.Z)(D).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:t.widget||"dxButton",cssClass:t.cssClass,options:{stylingMode:this.option("buttonStylingMode"),type:this.option("buttonType"),text:t.text,hint:t.hint,icon:t.icon||t.iconUnchecked||t.iconChecked,iconChecked:t.iconChecked,iconUnchecked:t.iconUnchecked,onInitialized:r=>this._onItemInitialized(r.component,t),onContentReady:r=>this._onItemContentReady(r.component,t,i)}}}_createItemOptions(t){var{widget:e,command:i,items:r,valueExpr:m,displayExpr:D,showText:A,hint:N,icon:Q}=t;return"dxSelectBox"===e?this._createSelectBoxItemOptions(i,N,r,m,D):"dxTextBox"===e?this._createTextBoxItemOptions(i,N):"dxColorBox"===e?this._createColorBoxItemOptions(i,N,Q):e&&"dxButton"!==e?void 0:{showText:A||"inMenu"}}_createSelectBoxItemOptions(t,e,i,r,m){var D=this._createTextEditorItemOptions(e);return D=(0,y.l)(!0,D,{options:{dataSource:i,displayExpr:m||"text",valueExpr:r||"value"}}),i&&i.every(N=>void 0!==N.icon)&&(D=(0,y.l)(!0,D,{options:{fieldTemplate:(N,Q)=>{(0,l.Z)("<i>").addClass(N&&N.icon||"dx-diagram-i-selectbox-null-icon dx-diagram-i").appendTo(Q),(0,l.Z)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(Q)},itemTemplate:(N,Q,se)=>((0,l.Z)(se).attr("title",N.hint),'<i class="'.concat(N.icon,'"></i>'))}})),D}_createTextBoxItemOptions(t,e){var i=this._createTextEditorItemOptions(e);return(0,y.l)(!0,i,{options:{readOnly:!0,focusStateEnabled:!1,hoverStateEnabled:!1,buttons:[{name:"dropDown",location:"after",options:{icon:"spindown",disabled:!1,stylingMode:"text",onClick:r=>{var m=this._commandContextMenus[t];m&&this._toggleContextMenu(m)}}}]}})}_createColorBoxItemOptions(t,e,i){var r=this._createTextEditorItemOptions(e);return i&&(r=(0,y.l)(!0,r,{options:{openOnFieldClick:!0,fieldTemplate:(m,D)=>{(0,l.Z)("<i>").addClass(i).css("borderBottomColor",m).appendTo(D),(0,l.Z)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(D)}}})),(0,y.l)(!0,r,{options:{onOpened:()=>{this.option("isMobileView")&&(0,l.Z)("body").addClass(EA)},onClosed:()=>{(0,l.Z)("body").removeClass(EA)}}})}_createTextEditorItemOptions(t){return{options:{stylingMode:this.option("editorStylingMode"),hint:t}}}_createItemActionOptions(t,e){switch(t.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:i=>{var r=sl.getItemCommandParameter(this,t,i.component.option("value"));e.call(this,t.command,t.name,r)}}};case"dxTextBox":return{};default:return{options:{onClick:i=>{if(t.items){var m=i.component._contextMenu;m&&this._toggleContextMenu(m)}else{var r=sl.getItemCommandParameter(this,t);e.call(this,t.command,t.name,r)}}}}}}_toggleContextMenu(t){this._contextMenuList.forEach(e=>{t!==e&&e.hide()}),t.toggle()}_onItemInitialized(t,e){this._addItemHelper(e.command,new pB(t))}_onItemContentReady(t,e,i){if(("dxButton"===t.NAME||"dxTextBox"===t.NAME)&&e.items){var r=this._isTouchMode(),m=(0,l.Z)("<div>").appendTo(this.$element());t._contextMenu=this._createComponent(m,Xv.Z,{items:e.items,target:t.$element(),cssClass:sl.getContextMenuCssClass(),showEvent:"",hideOnOutsideClick:D=>!r&&0===(0,l.Z)(D.target).closest(t._contextMenu._dropDownButtonElement).length,focusStateEnabled:!1,position:{at:"left bottom"},itemTemplate:function(D,A,N){sl.getContextMenuItemTemplate(this,D,A,N)},onItemClick:D=>{var{component:A,itemData:N}=D;sl.onContextMenuItemClick(this,N,i.bind(this)),(!N.items||!N.items.length)&&A.hide()},onShowing:D=>{this._showingSubMenu||(this._showingSubMenu=D.component,this._onSubMenuVisibilityChangingAction({visible:!0,component:this}),D.component.option("items",D.component.option("items")),delete this._showingSubMenu)},onInitialized:D=>{var{component:A}=D;return this._onContextMenuInitialized(A,e,t)},onDisposing:D=>{var{component:A}=D;return this._onContextMenuDisposing(A,e)}}),r||(t._contextMenu._dropDownButtonElement=t.$element(),"dxTextBox"===t.NAME&&(t._contextMenu._dropDownButtonElement=t.getButton("dropDown").element()))}}_isTouchMode(){var{Browser:t}=To();return t.TouchUI}_onContextMenuInitialized(t,e,i){this._contextMenuList.push(t),e.command&&(this._commandContextMenus[e.command]=t),this._addContextMenuHelper(e,t,[],i)}_addItemHelper(t,e){if(void 0!==t){if(this._itemHelpers[t])throw new Error("Toolbar cannot contain duplicated commands.");this._itemHelpers[t]=e}}_addContextMenuHelper(t,e,i,r){t.items&&t.items.forEach((m,D)=>{var A=i.concat(D);this._addItemHelper(m.command,new QU(e,A,m.command,r)),this._addContextMenuHelper(m,e,A,r)})}_onContextMenuDisposing(t,e){this._contextMenuList.splice(this._contextMenuList.indexOf(t),1),delete this._commandContextMenus[e.command]}_executeCommand(t,e,i){if(!this._updateLocked){if("number"==typeof t){var r=this._valueConverters[t];r&&r.getCommandValue&&(i=r.getCommandValue(i)),this.bar.raiseBarCommandExecuted(t,i)}else"string"==typeof t&&this._onInternalCommandAction({command:t});void 0!==e&&this._onCustomCommandAction({name:e})}}_createOnInternalCommand(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}_createOnCustomCommand(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}_setItemEnabled(t,e){if(t in this._itemHelpers){var i=this._itemHelpers[t];i.canUpdate(this._showingSubMenu)&&i.setEnabled(e)}}_setEnabled(t){this._toolbarInstance.option("disabled",!t),this._contextMenuList.forEach(e=>{e.option("disabled",!t)})}_setItemValue(t,e){try{if(this._updateLocked=!0,t in this._itemHelpers){var i=this._itemHelpers[t];if(i.canUpdate(this._showingSubMenu)){var m,r=this._valueConverters[t];r&&r.getEditorValue&&(e=r.getEditorValue(e)),r&&r.getEditorDisplayValue&&(m=r.getEditorDisplayValue(e));var D=this._commandContextMenus[t];i.setValue(e,m,D,D&&t)}}}finally{this._updateLocked=!1}}_setItemSubItems(t,e){if(this._updateLocked=!0,t in this._itemHelpers){var i=this._itemHelpers[t];if(i.canUpdate(this._showingSubMenu)){var r=this._commandContextMenus[t];i.setItems(e,r,r&&t)}}this._updateLocked=!1}_createOnSubMenuVisibilityChangingAction(){this._onSubMenuVisibilityChangingAction=this._createActionByOption("onSubMenuVisibilityChanging")}_optionChanged(t){switch(t.name){case"isMobileView":(0,l.Z)("body").removeClass(EA),this._invalidate();break;case"onSubMenuVisibilityChanging":this._createOnSubMenuVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"container":case"commands":this._invalidate();break;case"export":break;default:super._optionChanged(t)}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{isMobileView:!1,export:{fileName:"Diagram"},locateInMenu:"auto",buttonStylingMode:"text",buttonType:"normal",editorStylingMode:"filled",skipAdjustSize:!1})}setCommandChecked(t,e){this._setItemValue(t,e)}setCommandEnabled(t,e){this._setItemEnabled(t,e)}};var SA=u(8114),nD="separator",OA={widget:nD},_s_LARGE_ICON_ITEM="dx-diagram-lg-icon-item",eZ={SHOW_TOOLBOX_COMMAND_NAME:"toolbox",SHOW_PROPERTIES_PANEL_COMMAND_NAME:"propertiesPanel",getAllCommands:function(){var{DiagramCommand:n}=To();return this._allCommands||(this._allCommands={separator:OA,exportSvg:{command:n.ExportSvg,text:yn.Z.format("dxDiagram-commandExportToSvg"),getParameter:t=>e=>this._exportTo(t,e,"SVG","image/svg+xml")},exportPng:{command:n.ExportPng,text:yn.Z.format("dxDiagram-commandExportToPng"),getParameter:t=>e=>this._exportTo(t,e,"PNG","image/png")},exportJpg:{command:n.ExportJpg,text:yn.Z.format("dxDiagram-commandExportToJpg"),getParameter:t=>e=>this._exportTo(t,e,"JPEG","image/jpeg")},undo:{command:n.Undo,hint:yn.Z.format("dxDiagram-commandUndo"),text:yn.Z.format("dxDiagram-commandUndo"),icon:"undo",menuIcon:"undo"},redo:{command:n.Redo,hint:yn.Z.format("dxDiagram-commandRedo"),text:yn.Z.format("dxDiagram-commandRedo"),icon:"redo",menuIcon:"redo"},cut:{command:n.Cut,hint:yn.Z.format("dxDiagram-commandCut"),text:yn.Z.format("dxDiagram-commandCut"),icon:"cut",menuIcon:"cut"},copy:{command:n.Copy,hint:yn.Z.format("dxDiagram-commandCopy"),text:yn.Z.format("dxDiagram-commandCopy"),icon:"copy",menuIcon:"copy"},paste:{command:n.PasteInPosition,hint:yn.Z.format("dxDiagram-commandPaste"),text:yn.Z.format("dxDiagram-commandPaste"),icon:"paste",menuIcon:"paste"},selectAll:{command:n.SelectAll,hint:yn.Z.format("dxDiagram-commandSelectAll"),text:yn.Z.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-button-select-all dx-diagram-i",menuIcon:"dx-diagram-i-menu-select-all dx-diagram-i"},delete:{command:n.Delete,hint:yn.Z.format("dxDiagram-commandDelete"),text:yn.Z.format("dxDiagram-commandDelete"),icon:"remove",menuIcon:"remove"},fontName:{command:n.FontName,hint:yn.Z.format("dxDiagram-commandFontName"),text:yn.Z.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"].map(t=>({text:t,value:t})),cssClass:"dx-diagram-md-edit-item"},fontSize:{command:n.FontSize,hint:yn.Z.format("dxDiagram-commandFontSize"),text:yn.Z.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72].map(t=>({text:t+"pt",value:t+"pt"})),cssClass:"dx-diagram-sm-edit-item"},bold:{command:n.Bold,hint:yn.Z.format("dxDiagram-commandBold"),text:yn.Z.format("dxDiagram-commandBold"),icon:"bold",menuIcon:"bold"},italic:{command:n.Italic,hint:yn.Z.format("dxDiagram-commandItalic"),text:yn.Z.format("dxDiagram-commandItalic"),icon:"italic",menuIcon:"italic"},underline:{command:n.Underline,hint:yn.Z.format("dxDiagram-commandUnderline"),text:yn.Z.format("dxDiagram-commandUnderline"),icon:"underline",menuIcon:"underline"},fontColor:{command:n.FontColor,text:yn.Z.format("dxDiagram-commandTextColor"),hint:yn.Z.format("dxDiagram-commandTextColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-color",menuIcon:"dx-icon dx-icon-color",cssClass:"dx-diagram-color-edit-item"},lineColor:{command:n.StrokeColor,text:yn.Z.format("dxDiagram-commandLineColor"),hint:yn.Z.format("dxDiagram-commandLineColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-background",menuIcon:"dx-icon dx-icon-background",cssClass:"dx-diagram-color-edit-item"},lineWidth:{command:n.StrokeWidth,text:yn.Z.format("dxDiagram-commandLineWidth"),hint:yn.Z.format("dxDiagram-commandLineWidth"),widget:"dxSelectBox",items:[1,2,3,4,5,6,7,8].map(t=>({text:t+"px",value:t.toString()})),cssClass:"dx-diagram-sm-edit-item"},lineStyle:{command:n.StrokeStyle,text:yn.Z.format("dxDiagram-commandLineStyle"),hint:yn.Z.format("dxDiagram-commandLineStyle"),widget:"dxSelectBox",items:[{value:"",menuIcon:"dx-diagram-i-line-solid dx-diagram-i",hint:yn.Z.format("dxDiagram-commandLineStyleSolid")},{value:"2,2",menuIcon:"dx-diagram-i-line-dotted dx-diagram-i",hint:yn.Z.format("dxDiagram-commandLineStyleDotted")},{value:"6,2",menuIcon:"dx-diagram-i-line-dashed dx-diagram-i",hint:yn.Z.format("dxDiagram-commandLineStyleDashed")}],cssClass:"dx-diagram-image-dropdown-item"},fillColor:{command:n.FillColor,text:yn.Z.format("dxDiagram-commandFillColor"),hint:yn.Z.format("dxDiagram-commandFillColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:"dx-diagram-color-edit-item"},textAlignLeft:{command:n.TextLeftAlign,hint:yn.Z.format("dxDiagram-commandAlignLeft"),text:yn.Z.format("dxDiagram-commandAlignLeft"),icon:"alignleft",menuIcon:"alignleft"},textAlignCenter:{command:n.TextCenterAlign,hint:yn.Z.format("dxDiagram-commandAlignCenter"),text:yn.Z.format("dxDiagram-commandAlignCenter"),icon:"aligncenter",menuIcon:"aligncenter"},textAlignRight:{command:n.TextRightAlign,hint:yn.Z.format("dxDiagram-commandAlignRight"),text:yn.Z.format("dxDiagram-commandAlignRight"),icon:"alignright",menuIcon:"alignright"},lock:{command:n.Lock,hint:yn.Z.format("dxDiagram-commandLock"),text:yn.Z.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i",menuIcon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:n.Unlock,hint:yn.Z.format("dxDiagram-commandUnlock"),text:yn.Z.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i",menuIcon:"dx-diagram-i-menu-unlock dx-diagram-i"},bringToFront:{command:n.BringToFront,hint:yn.Z.format("dxDiagram-commandBringToFront"),text:yn.Z.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-button-bring-to-front dx-diagram-i",menuIcon:"dx-diagram-i-menu-bring-to-front dx-diagram-i"},sendToBack:{command:n.SendToBack,hint:yn.Z.format("dxDiagram-commandSendToBack"),text:yn.Z.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-button-send-to-back dx-diagram-i",menuIcon:"dx-diagram-i-menu-send-to-back dx-diagram-i"},insertShapeImage:{command:n.InsertShapeImage,text:yn.Z.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-button-image-insert dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-insert dx-diagram-i"},editShapeImage:{command:n.EditShapeImage,text:yn.Z.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-button-image-edit dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-edit dx-diagram-i"},deleteShapeImage:{command:n.DeleteShapeImage,text:yn.Z.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-button-image-delete dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-delete dx-diagram-i"},connectorLineType:{command:n.ConnectorLineOption,widget:"dxSelectBox",hint:yn.Z.format("dxDiagram-commandConnectorLineType"),text:yn.Z.format("dxDiagram-commandConnectorLineType"),items:[{value:0,menuIcon:"dx-diagram-i-connector-straight dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineStraight"),text:yn.Z.format("dxDiagram-commandConnectorLineStraight")},{value:1,menuIcon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineOrthogonal"),text:yn.Z.format("dxDiagram-commandConnectorLineOrthogonal")}],cssClass:"dx-diagram-image-dropdown-item"},connectorLineStart:{command:n.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineNone"),text:yn.Z.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineArrow"),text:yn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-begin-outlined-triangle dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineArrow"),text:yn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-begin-filled-triangle dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineArrow"),text:yn.Z.format("dxDiagram-commandConnectorLineArrow")}],hint:yn.Z.format("dxDiagram-commandConnectorLineStart"),text:yn.Z.format("dxDiagram-commandConnectorLineStart"),cssClass:"dx-diagram-image-dropdown-item"},connectorLineEnd:{command:n.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineNone"),text:yn.Z.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineArrow"),text:yn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-end-outlined-triangle dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineArrow"),text:yn.Z.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-end-filled-triangle dx-diagram-i",hint:yn.Z.format("dxDiagram-commandConnectorLineArrow"),text:yn.Z.format("dxDiagram-commandConnectorLineArrow")}],hint:yn.Z.format("dxDiagram-commandConnectorLineEnd"),text:yn.Z.format("dxDiagram-commandConnectorLineEnd"),cssClass:"dx-diagram-image-dropdown-item"},layoutTreeTopToBottom:{command:n.AutoLayoutTreeVertical,text:yn.Z.format("dxDiagram-commandLayoutTopToBottom"),hint:yn.Z.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-tree-tb dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutTreeBottomToTop:{command:n.AutoLayoutTreeVerticalBottomToTop,text:yn.Z.format("dxDiagram-commandLayoutBottomToTop"),hint:yn.Z.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-tree-bt dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutTreeLeftToRight:{command:n.AutoLayoutTreeHorizontal,text:yn.Z.format("dxDiagram-commandLayoutLeftToRight"),hint:yn.Z.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-tree-lr dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutTreeRightToLeft:{command:n.AutoLayoutTreeHorizontalRightToLeft,text:yn.Z.format("dxDiagram-commandLayoutRightToLeft"),hint:yn.Z.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-tree-rl dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutLayeredTopToBottom:{command:n.AutoLayoutLayeredVertical,text:yn.Z.format("dxDiagram-commandLayoutTopToBottom"),hint:yn.Z.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-layered-tb dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutLayeredBottomToTop:{command:n.AutoLayoutLayeredVerticalBottomToTop,text:yn.Z.format("dxDiagram-commandLayoutBottomToTop"),hint:yn.Z.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-layered-bt dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutLayeredLeftToRight:{command:n.AutoLayoutLayeredHorizontal,text:yn.Z.format("dxDiagram-commandLayoutLeftToRight"),hint:yn.Z.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-layered-lr dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},layoutLayeredRightToLeft:{command:n.AutoLayoutLayeredHorizontalRightToLeft,text:yn.Z.format("dxDiagram-commandLayoutRightToLeft"),hint:yn.Z.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-layered-rl dx-diagram-i",cssClass:_s_LARGE_ICON_ITEM},fullScreen:{command:n.Fullscreen,hint:yn.Z.format("dxDiagram-commandFullscreen"),text:yn.Z.format("dxDiagram-commandFullscreen"),icon:"dx-diagram-i dx-diagram-i-button-fullscreen",menuIcon:"dx-diagram-i dx-diagram-i-menu-fullscreen",cssClass:"dx-diagram-color-edit-item"},units:{command:n.ViewUnits,hint:yn.Z.format("dxDiagram-commandUnits"),text:yn.Z.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},simpleView:{command:n.ToggleSimpleView,hint:yn.Z.format("dxDiagram-commandSimpleView"),text:yn.Z.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"},showGrid:{command:n.ShowGrid,hint:yn.Z.format("dxDiagram-commandShowGrid"),text:yn.Z.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:n.SnapToGrid,hint:yn.Z.format("dxDiagram-commandSnapToGrid"),text:yn.Z.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:n.GridSize,hint:yn.Z.format("dxDiagram-commandGridSize"),text:yn.Z.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},pageSize:{command:n.PageSize,hint:yn.Z.format("dxDiagram-commandPageSize"),text:yn.Z.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",cssClass:"dx-diagram-lg-edit-item",getCommandValue:t=>JSON.parse(t),getEditorValue:t=>JSON.stringify(t)},pageOrientation:{command:n.PageLandscape,hint:yn.Z.format("dxDiagram-commandPageOrientation"),text:yn.Z.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,text:yn.Z.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,text:yn.Z.format("dxDiagram-commandPageOrientationPortrait")}],cssClass:"dx-diagram-md-edit-item"},pageColor:{command:n.PageColor,hint:yn.Z.format("dxDiagram-commandPageColor"),text:yn.Z.format("dxDiagram-commandPageColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:"dx-diagram-color-edit-item"},zoomLevel:{command:n.ZoomLevel,hint:yn.Z.format("dxDiagram-commandZoomLevel"),text:yn.Z.format("dxDiagram-commandZoomLevel"),widget:"dxTextBox",items:[OA,{command:n.FitToScreen,hint:yn.Z.format("dxDiagram-commandFitToContent"),text:yn.Z.format("dxDiagram-commandFitToContent")},{command:n.FitToWidth,hint:yn.Z.format("dxDiagram-commandFitToWidth"),text:yn.Z.format("dxDiagram-commandFitToWidth")},OA,{command:n.AutoZoomToContent,hint:yn.Z.format("dxDiagram-commandAutoZoomByContent"),text:yn.Z.format("dxDiagram-commandAutoZoomByContent")},{command:n.AutoZoomToWidth,hint:yn.Z.format("dxDiagram-commandAutoZoomByWidth"),text:yn.Z.format("dxDiagram-commandAutoZoomByWidth")}],getEditorDisplayValue:t=>Math.round(100*t)+"%",cssClass:"dx-diagram-sm-edit-item"},toolbox:{command:this.SHOW_TOOLBOX_COMMAND_NAME,iconChecked:"dx-diagram-i dx-diagram-i-button-toolbox-close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-toolbox-open",hint:yn.Z.format("dxDiagram-uiShowToolbox"),text:yn.Z.format("dxDiagram-uiShowToolbox")},propertiesPanel:{command:this.SHOW_PROPERTIES_PANEL_COMMAND_NAME,iconChecked:"close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-properties-panel-open",hint:yn.Z.format("dxDiagram-uiProperties"),text:yn.Z.format("dxDiagram-uiProperties")}})},getMainToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultMainToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultMainToolbarCommands:function(n){return this._defaultMainToolbarCommands||(this._defaultMainToolbarCommands=[n.undo,n.redo,n.separator,n.fontName,n.fontSize,n.bold,n.italic,n.underline,n.separator,n.lineWidth,n.lineStyle,n.separator,n.fontColor,n.lineColor,n.fillColor,n.separator,n.textAlignLeft,n.textAlignCenter,n.textAlignRight,n.separator,n.connectorLineType,n.connectorLineStart,n.connectorLineEnd,n.separator,{text:yn.Z.format("dxDiagram-uiLayout"),showText:"always",items:[{text:yn.Z.format("dxDiagram-uiLayoutTree"),items:[n.layoutTreeTopToBottom,n.layoutTreeBottomToTop,n.layoutTreeLeftToRight,n.layoutTreeRightToLeft]},{text:yn.Z.format("dxDiagram-uiLayoutLayered"),items:[n.layoutLayeredTopToBottom,n.layoutLayeredBottomToTop,n.layoutLayeredLeftToRight,n.layoutLayeredRightToLeft]}]}])},getHistoryToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultHistoryToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultHistoryToolbarCommands:function(n){return this._defaultHistoryToolbarCommands||(this._defaultHistoryToolbarCommands=[n.undo,n.redo,n.separator,n.toolbox])},getViewToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultViewToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultViewToolbarCommands:function(n){return this._defaultViewToolbarCommands||(this._defaultViewToolbarCommands=[n.zoomLevel,n.separator,n.fullScreen,n.separator,{widget:"dxButton",icon:"export",text:yn.Z.format("dxDiagram-uiExport"),hint:yn.Z.format("dxDiagram-uiExport"),items:[n.exportSvg,n.exportPng,n.exportJpg]},{icon:"preferences",hint:yn.Z.format("dxDiagram-uiSettings"),text:yn.Z.format("dxDiagram-uiSettings"),items:[n.units,n.separator,n.showGrid,n.snapToGrid,n.gridSize,n.separator,n.simpleView,n.toolbox]}])},getPropertiesToolbarCommands:function(n,t){var e=this.getAllCommands(),i=n?this._getPreparedCommands(e,n):this._getDefaultPropertiesToolbarCommands(e);return this._prepareToolbarCommands(i,t)},_getDefaultPropertiesToolbarCommands:function(n){return this._defaultPropertiesToolbarCommands||(this._defaultPropertiesToolbarCommands=[n.propertiesPanel])},_getDefaultPropertyPanelCommandGroups:function(){return this._defaultPropertyPanelCommandGroups||(this._defaultPropertyPanelCommandGroups=[{title:yn.Z.format("dxDiagram-uiStyle"),groups:[{title:yn.Z.format("dxDiagram-uiText"),commands:["fontName","fontSize","bold","italic","underline","textAlignLeft","textAlignCenter","textAlignRight","fontColor"]},{title:yn.Z.format("dxDiagram-uiObject"),commands:["lineStyle","lineWidth","lineColor","fillColor"]},{title:yn.Z.format("dxDiagram-uiConnector"),commands:["connectorLineType","connectorLineStart","connectorLineEnd"]}]},{title:yn.Z.format("dxDiagram-uiLayout"),groups:[{title:yn.Z.format("dxDiagram-uiLayoutLayered"),commands:["layoutLayeredTopToBottom","layoutLayeredBottomToTop","layoutLayeredLeftToRight","layoutLayeredRightToLeft"]},{title:yn.Z.format("dxDiagram-uiLayoutTree"),commands:["layoutTreeTopToBottom","layoutTreeBottomToTop","layoutTreeLeftToRight","layoutTreeRightToLeft"]}]},{title:yn.Z.format("dxDiagram-uiDiagram"),groups:[{title:yn.Z.format("dxDiagram-uiPage"),commands:["pageSize","pageOrientation","pageColor"]}]}])},_preparePropertyPanelGroups:function(n){var t=this.getAllCommands(),e=[];return n.forEach(i=>{var m,r=i.commands;r&&(r=this._getPreparedCommands(t,r),r=this._prepareToolbarCommands(r)),i.groups&&(m=[],i.groups.forEach(D=>{var A=D.commands;A&&(A=this._getPreparedCommands(t,A),A=this._prepareToolbarCommands(A)),m.push({title:D.title,commands:A})})),e.push({title:i.title,commands:r,groups:m})}),e},getPropertyPanelCommandTabs:function(n){return n=n||this._getDefaultPropertyPanelCommandGroups(),this._preparePropertyPanelGroups(n)},getContextMenuCommands:function(n){var t=this.getAllCommands(),e=n?this._getPreparedCommands(t,n):this._getDefaultContextMenuCommands(t);return this._prepareContextMenuCommands(e)},_getDefaultContextMenuCommands:function(n){return this._defaultContextMenuCommands||(this._defaultContextMenuCommands=[n.cut,n.copy,n.paste,n.delete,n.separator,n.selectAll,n.separator,n.bringToFront,n.sendToBack,n.separator,n.lock,n.unlock,n.separator,n.insertShapeImage,n.editShapeImage,n.deleteShapeImage])},_getPreparedCommands(n,t){return t.map(e=>{if(e.widget&&e.widget===nD)return{command:e,location:e.location};if(n[e])return n[e];if(e.text||e.icon||e.name){var r=e.name&&n[e.name],m={command:r&&r.command,name:e.name,location:e.location,text:e.text||r&&r.text,hint:e.text||r&&r.hint,icon:e.icon||r&&r.icon,menuIcon:e.icon||r&&r.menuIcon,widget:r&&r.widget,cssClass:r&&r.cssClass,getParameter:r&&r.getParameter,getCommandValue:r&&r.getCommandValue,getEditorValue:r&&r.getEditorValue,getEditorDisplayValue:r&&r.getEditorDisplayValue,iconChecked:r&&r.iconChecked,iconUnchecked:r&&r.iconUnchecked};return m.items=Array.isArray(e.items)?this._getPreparedCommands(n,e.items):r&&r.items,m}}).filter(e=>e)},_prepareContextMenuCommands(n,t,e){var i=!1;return n.map(r=>{if(this._isValidCommand(r,t)){if(!r.widget||r.widget!==nD){var m=this._cloneCommand(r,t);return m.icon=m.menuIcon,m.beginGroup=i,m.rootCommand=m.command?void 0:e&&e.command,i=!1,m}i=!0}}).filter(r=>r)},_prepareToolbarCommands(n,t){return n.map(e=>{if(this._isValidCommand(e,t))return this._cloneCommand(e,t)}).filter(e=>e).filter((e,i,r)=>(e.widget!==nD||i!==r.length-1)&&e)},_cloneCommand(n,t){var e=(0,y.l)({},n);return Array.isArray(n.items)&&(e.items=this._prepareContextMenuCommands(n.items,t,e)),e},_isValidCommand:(n,t)=>-1===(t=t||[]).indexOf(n.command),_exportTo(n,t,e,i){var r=(0,mi.Jj)();if(r&&r.atob&&(0,w.mf)(r.Blob)){var m=this._getBlobByDataURI(r,t,i),D=n.option("export");SA.A.saveAs(D.fileName||"foo",e,m)}},_getBlobByDataURI(n,t,e){for(var i=n.atob(t.split(",")[1]),r=new Uint8Array(i.length),m=0;m<i.length;m++)r[m]=i.charCodeAt(m);return new n.Blob([r.buffer],{type:e})}};const fl=eZ,nZ=class tZ extends Ib{_getCommands(){return fl.getMainToolbarCommands(this.option("commands"),this.option("excludeCommands"))}},rZ=class iZ extends Ib{_getCommands(){return fl.getHistoryToolbarCommands(this.option("commands"),this._getExcludeCommands())}_getExcludeCommands(){var t=[].concat(this.option("excludeCommands"));return this.option("isMobileView")||t.push(fl.SHOW_TOOLBOX_COMMAND_NAME),t}},aZ=class oZ extends Ib{_getCommands(){return fl.getViewToolbarCommands(this.option("commands"),this.option("excludeCommands"))}},lZ=class sZ extends Ib{_getCommands(){return fl.getPropertiesToolbarCommands()}};class mB extends Xv.Z{_renderContextMenuOverlay(){super._renderContextMenuOverlay(),this._overlay&&this.option("isTouchBarMode")&&this._overlay&&this._overlay.option("onShown",()=>{(0,l.Z)(this._overlay.$content()).parent().addClass("dx-diagram-touchbar-overlay")})}}class pZ extends bA{constructor(t){super(t)}getCommandKeys(){return this._getKeys(this._owner._commands)}setItemValue(t,e){this._owner._setItemValue(t,e)}setItemEnabled(t,e){this._owner._setItemEnabled(t,e)}setItemVisible(t,e){this._owner._setItemVisible(t,e)}setItemSubItems(t,e){this._owner._setItemSubItems(t,e)}setEnabled(t){this._owner._setEnabled(t)}isVisible(){return this._owner.isVisible()}}const gZ_DiagramContextMenuWrapper=class hZ extends ca.Z{_init(){super._init(),this._createOnVisibilityChangingAction(),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnItemClickAction(),this._tempState=void 0,this._commands=[],this._commandToIndexMap={},this.bar=new pZ(this)}_initMarkup(){super._initMarkup(),this._commands=this._getCommands(),this._commandToIndexMap={},this._fillCommandToIndexMap(this._commands,[]),this._$contextMenuTargetElement=(0,l.Z)("<div>").addClass("dx-diagram-touchbar-target").appendTo(this.$element());var t=(0,l.Z)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(t,mB,{isTouchBarMode:this._isTouchBarMode(),cssClass:this._isTouchBarMode()?"dx-diagram-touchbar":sl.getContextMenuCssClass(),hideOnOutsideClick:!1,showEvent:"",focusStateEnabled:!1,items:this._commands,position:this._isTouchBarMode()?{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},of:this._$contextMenuTargetElement}:{},itemTemplate:function(e,i,r){sl.getContextMenuItemTemplate(this,e,i,r)},onItemClick:e=>{var{itemData:i}=e;return this._onItemClick(i)},onShowing:e=>{!0!==this._inOnShowing&&(this._inOnShowing=!0,this._onVisibilityChangingAction({visible:!0,component:this}),e.component.option("items",e.component.option("items")),delete this._inOnShowing)}})}_show(t,e,i){if(this._contextMenuInstance.hide(),this._isTouchBarMode()){this._$contextMenuTargetElement.show(),i||(i={x:t,y:e,width:0,height:0});var r=i.width>800?0:(800-i.width)/2;this._$contextMenuTargetElement.css({left:i.x-r,top:i.y-32,width:i.width+2*r,height:i.height+64}),this._contextMenuInstance.show()}else this._contextMenuInstance.option("position",{offset:t+" "+e}),this._contextMenuInstance.show()}_hide(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide()}_isTouchBarMode(){var{Browser:t}=To();return t.TouchUI}_onItemClick(t){var e=!1;this._onItemClickAction&&(e=this._onItemClickAction(t)),e||(sl.onContextMenuItemClick(this,t,this._executeCommand.bind(this)),this._contextMenuInstance.hide())}_executeCommand(t,e,i){"number"==typeof t?this.bar.raiseBarCommandExecuted(t,i):"string"==typeof t&&this._onInternalCommandAction({command:t}),void 0!==e&&this._onCustomCommandAction({name:e})}_createOnInternalCommand(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}_createOnCustomCommand(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}_getCommands(){return fl.getContextMenuCommands(this.option("commands"))}_fillCommandToIndexMap(t,e){t.forEach((i,r)=>{var m=e.concat([r]);void 0!==i.command&&(this._commandToIndexMap[i.command]=m),Array.isArray(i.items)&&this._fillCommandToIndexMap(i.items,m)})}_setItemEnabled(t,e){this._setItemVisible(t,e)}_setItemVisible(t,e){var i=sl.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);sl.updateContextMenuItemVisible(this._contextMenuInstance,i,e)}_setItemValue(t,e){var i=sl.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);sl.updateContextMenuItemValue(this._contextMenuInstance,i,t,e)}_setItemSubItems(t,e){var i=sl.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);sl.updateContextMenuItems(this._contextMenuInstance,i,t,e)}_setEnabled(t){this._contextMenuInstance.option("disabled",!t)}isVisible(){return this._inOnShowing}_createOnVisibilityChangingAction(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}_createOnItemClickAction(){this._onItemClickAction=this._createActionByOption("onItemClick")}_optionChanged(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"onItemClick":this._createOnItemClickAction();break;case"commands":this._invalidate();break;case"export":break;default:super._optionChanged(t)}}};var Jv=u(4567),_B="dx-diagram-context-toolbox-content";const yZ=class vZ extends ca.Z{_init(){super._init(),this._onShownAction=this._createActionByOption("onShown"),this._popoverPositionData=[{my:{x:"center",y:"top"},at:{x:"center",y:"bottom"},offset:{x:0,y:5}},{my:{x:"right",y:"center"},at:{x:"left",y:"center"},offset:{x:-5,y:0}},{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},offset:{x:0,y:-5}},{my:{x:"left",y:"center"},at:{x:"right",y:"center"},offset:{x:5,y:0}}]}_initMarkup(){super._initMarkup(),this._$popoverTargetElement=(0,l.Z)("<div>").addClass("dx-diagram-context-toolbox-target").appendTo(this.$element());var t=(0,l.Z)("<div>").appendTo(this.$element()),e="dx-diagram-context-toolbox";this._isTouchMode()&&(e+=" dx-diagram-touch-context-toolbox"),this._popoverInstance=this._createComponent(t,Jv.Z,{hideOnOutsideClick:!1,container:this.$element()}),this._popoverInstance.$element().addClass(e)}_isTouchMode(){var{Browser:t}=To();return t.TouchUI}_show(t,e,i,r,m){this._popoverInstance.hide();var D=(0,l.Z)("<div>").addClass(_B);void 0!==this.option("toolboxWidth")&&D.css("width",this.option("toolboxWidth")),this._$popoverTargetElement.css({left:t+this._popoverPositionData[i].offset.x,top:e+this._popoverPositionData[i].offset.y}).show();var A=(0,mi.Jj)(),N=this._$popoverTargetElement.get(0);this._$popoverTargetElement.css({left:N.offsetLeft-(N.getBoundingClientRect().left+A.scrollX-N.offsetLeft),top:N.offsetTop-(N.getBoundingClientRect().top+A.scrollY-N.offsetTop)}),this._popoverInstance.option({position:{my:this._popoverPositionData[i].my,at:this._popoverPositionData[i].at,of:this._$popoverTargetElement},contentTemplate:D,onContentReady:function(){var Q=this.$element().find("."+_B);this._onShownAction({category:r,callback:m,$element:Q,hide:()=>this._popoverInstance.hide()})}.bind(this)}),this._popoverInstance.show()}_hide(){this._$popoverTargetElement.hide(),this._popoverInstance.hide()}};var Tp=u(8531);const xZ=class CZ extends ca.Z{_init(){super._init(),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()}_initMarkup(){super._initMarkup(),this._command=this.option("command"),this._$popupElement=(0,l.Z)("<div>").appendTo(this.$element()),this._popup=this._createComponent(this._$popupElement,Tp.Z,{title:this.option("title"),maxWidth:this.option("maxWidth"),height:this.option("height"),toolbarItems:this.option("toolbarItems"),onHidden:this._onHiddenAction})}_clean(){delete this._popup,this._$popupElement&&this._$popupElement.remove()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{title:"",maxWidth:500,height:"auto",toolbarItems:this._getToolbarItems()})}_getToolbarItems(){return[this._getOkToolbarItem(),this._getCancelToolbarItem()]}_getOkToolbarItem(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:yn.Z.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}}_getCancelToolbarItem(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:yn.Z.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}}_optionChanged(t){switch(t.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popup.option(t.name,t.value);break;case"command":this._command=t.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:super._optionChanged(t)}}_createOnGetContentOption(){this._onGetContentAction=this._createActionByOption("onGetContent")}_createOnHiddenOption(){this._onHiddenAction=this._createActionByOption("onHidden")}_hide(){this._popup.hide(),this._isShown=!1}_show(){this._popup.$content().empty().append(this._onGetContentAction()),this._popup.show(),this._isShown=!0}isVisible(){return this._isShown}};var Ef=u(3862),vB=(0,Bd.Z)(function(){var n=b.Z.getDocument();n.body.insertAdjacentHTML("beforeend","<div style='position: absolute; overflow: scroll; width: 100px; height: 100px; top: -9999;'></div>");var t=n.body.lastElementChild,e=function bZ(n){return n.offsetWidth-n.clientWidth}(t);return n.body.removeChild(t),e});const EZ=class wZ extends ca.Z{_init(){super._init();var{EventDispatcher:t}=To();this.onScroll=new t,this._createOnCreateDiagramAction()}_initMarkup(){super._initMarkup();var t=(0,l.Z)("<div>").appendTo(this.$element()),e={direction:"both",bounceEnabled:!1,scrollByContent:!1,onScroll:r=>{var{scrollOffset:m}=r;this._raiseOnScroll(m.left,m.top)}},i=this.option("useNativeScrolling");void 0!==i&&(e.useNative=i),this._scrollView=this._createComponent(t,Ef.Z,e),this._onCreateDiagramAction({$parent:(0,l.Z)(this._scrollView.content()),scrollView:this})}setScroll(t,e){this._scrollView.scrollTo({left:t,top:e}),this._raiseOnScrollWithoutPoint()}offsetScroll(t,e){this._scrollView.scrollBy({left:t,top:e}),this._raiseOnScrollWithoutPoint()}getSize(){var{Size:t}=To(),e=this._scrollView.$element();return new t(Math.floor((0,s.dz)(e)),Math.floor((0,s.Cr)(e)))}getScrollContainer(){return this._scrollView.$element()[0]}getScrollBarWidth(){return this.option("useNativeScrolling")?vB():0}detachEvents(){}_raiseOnScroll(t,e){var{Point:i}=To();this.onScroll.raise("notifyScrollChanged",()=>new i(t,e))}_raiseOnScrollWithoutPoint(){var{Point:t}=To();this.onScroll.raise("notifyScrollChanged",()=>new t(this._scrollView.scrollLeft(),this._scrollView.scrollTop()))}_createOnCreateDiagramAction(){this._onCreateDiagramAction=this._createActionByOption("onCreateDiagram")}_optionChanged(t){switch(t.name){case"onCreateDiagram":this._createOnCreateDiagramAction();break;case"useNativeScrolling":break;default:super._optionChanged(t)}}};var SZ={getDefaultGroups(){return this._groups||(this._groups={general:{category:"general",title:yn.Z.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:yn.Z.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:yn.Z.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:yn.Z.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:yn.Z.format("dxDiagram-categoryCustom")}})},getGroups:function(n){var t=this.getDefaultGroups();return n?n.map(function(e){return"string"==typeof e?{category:e,title:t[e]&&t[e].title||e}:e}).filter(function(e){return e}):[t.general,t.flowchart,t.orgChart,t.containers]}};const OZ=SZ;var iD=u(3447),vh=u(6492),yB=Jv.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this.$wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new vh.Z,this.$overlayContent().attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(n){var t=(0,l.Z)(this.option("target")),e=n?this._contentId:void 0;(0,w.FJ)(t.get(0))||this.setAria("describedby",e,t)}});(0,T.Z)("dxTooltip",yB);const CB=yB,rD=CB,xB=class MZ extends hB{_init(){super._init(),this._createOnVisibilityChangingAction(),this._createOnVisibilityChangedAction()}isVisible(){return this.option("isVisible")}isMobileView(){return this.option("isMobileView")}_initMarkup(){super._initMarkup();var t=this.$element(),e=(0,l.Z)("<div>").addClass(this._getPopupClass()).addClass(this.isMobileView()&&"dx-diagram-mobile-popup").appendTo(t);this._popup=this._createComponent(e,Tp.Z,this._getPopupOptions()),this._updatePopupVisible()}show(){this.option("isVisible",!0)}hide(){this.option("isVisible",!1)}toggle(){this.option("isVisible",!this.isVisible())}repaint(){this._popup.repaint()}_getPopupContent(){return this._popup.content()}_getPopupTitle(){return(0,l.Z)(this._getPopupContent()).parent().find(".dx-popup-title")}_getPointerUpElements(){return[this._getPopupContent(),this._getPopupTitle()]}_getVerticalPaddingsAndBorders(){var t=(0,l.Z)(this._getPopupContent());return(0,s.zp)(t)-(0,s.Cr)(t)}_getHorizontalPaddingsAndBorders(){var t=(0,l.Z)(this._getPopupContent());return(0,s.Y_)(t)-(0,s.dz)(t)}_getPopupClass(){return""}_getPopupWidth(){return this.option("width")||"auto"}_getPopupMaxWidth(){return this.option("maxWidth")}_getPopupMinWidth(){return this.option("minWidth")}_getPopupHeight(){return this.option("height")||"auto"}_getPopupMaxHeight(){return this.option("maxHeight")}_getPopupMinHeight(){return this.option("minHeight")}_getPopupPosition(){return{}}_getPopupContainer(){return this.option("container")}_getPopupSlideAnimationObject(t){return(0,y.l)({type:"slide",start:()=>{(0,l.Z)("body").css("overflow","hidden")},complete:()=>{(0,l.Z)("body").css("overflow","")}},t)}_getPopupAnimation(){return{hide:{type:"fadeOut"},show:{type:"fadeIn"}}}_getPopupOptions(){var t=this;return{animation:(0,mi.Ym)()?this._getPopupAnimation():null,shading:!1,showTitle:!1,focusStateEnabled:!1,container:this._getPopupContainer(),width:this._getPopupWidth(),height:this._getPopupHeight(),maxWidth:this._getPopupMaxWidth(),maxHeight:this._getPopupMaxHeight(),minWidth:this._getPopupMinWidth(),minHeight:this._getPopupMinHeight(),position:this._getPopupPosition(),showCloseButton:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,onContentReady:function(){t._renderPopupContent(t._popup.content())},onShowing:()=>{this._onVisibilityChangingAction({visible:!0,component:this})},onShown:()=>{this.option("isVisible",!0),this._onVisibilityChangedAction({visible:!0,component:this})},onHiding:()=>{this._onVisibilityChangingAction({visible:!1,component:this})},onHidden:()=>{this.option("isVisible",!1),this._onVisibilityChangedAction({visible:!1,component:this})}}}_renderPopupContent(t){}_updatePopupVisible(){this._popup.option("visible",this.isVisible())}_createOnVisibilityChangingAction(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}_createOnVisibilityChangedAction(){this._onVisibilityChangedAction=this._createActionByOption("onVisibilityChanged")}_optionChanged(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onVisibilityChanged":this._createOnVisibilityChangedAction();break;case"container":this._popup.option("container",this._getPopupContainer());break;case"width":this._popup.option("width",this._getPopupWidth());break;case"height":this._popup.option("height",this._getPopupHeight());break;case"maxWidth":this._popup.option("maxWidth",this._getPopupMaxWidth());break;case"maxHeight":this._popup.option("maxHeight",this._getPopupMaxHeight());break;case"minWidth":this._popup.option("minWidth",this._getPopupMinWidth());break;case"minHeight":this._popup.option("minHeight",this._getPopupMinHeight());break;case"isMobileView":this._invalidate();break;case"isVisible":this._updatePopupVisible();break;default:super._optionChanged(t)}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{isVisible:!0,isMobileView:!1,offsetX:0,offsetY:0})}};var bB="shape-toolbox-tooltip";const VZ=class FZ extends xB{_init(){super._init(),this._toolboxes=[],this._filterText="",this._createOnShapeCategoryRenderedAction(),this._createOnFilterChangedAction()}_getPopupClass(){return"dx-diagram-toolbox-popup"}_getPopupHeight(){return this.isMobileView()?"100%":super._getPopupHeight()}_getPopupMaxHeight(){return this.isMobileView()?"100%":super._getPopupMaxHeight()}_getPopupMinHeight(){return 130}_getPopupPosition(){var e={my:"left top",at:"left top",of:this.option("offsetParent")};return this.isMobileView()?e:(0,y.l)(e,{offset:this.option("offsetX")+" "+this.option("offsetY")})}_getPopupAnimation(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"left",from:{position:{my:"left top",at:"left top",of:t}},to:{position:{my:"right top",at:"left top",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"right",from:{position:{my:"right top",at:"left top",of:t}},to:{position:{my:"left top",at:"left top",of:t}}})}:super._getPopupAnimation()}_getPopupOptions(){var t=super._getPopupOptions();return this.isMobileView()?t:(0,y.l)(t,{showTitle:!0,toolbarItems:[{widget:"dxButton",location:"center",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"diagram-toolbox-drag",stylingMode:"outlined",type:"normal"}}]})}_renderPopupContent(t){var e="100%";if(this.option("showSearch")){var i=(0,l.Z)("<div>").addClass("dx-diagram-toolbox-input-container").appendTo(t);this._updateElementWidth(i),this._renderSearchInput(i),(0,mi.Ym)()&&(e="calc(100% - "+(0,s.Cr)(this._searchInput.$element())+"px)")}var r=(0,l.Z)("<div>").addClass("dx-diagram-toolbox-panel").appendTo(t);(0,s.QQ)(r,e),this._updateElementWidth(r),this._renderScrollView(r)}_updateElementWidth(t){void 0!==this.option("toolboxWidth")&&t.css("width",this.option("toolboxWidth"))}updateMaxHeight(){if(!this.isMobileView()){var t=6;if(this._popup){var e=this._getPopupTitle();t+=(0,s.zp)(e)}this._accordion&&(t+=(0,s.zp)(this._accordion.$element())),this._searchInput&&(t+=(0,s.zp)(this._searchInput.$element())),this.option("maxHeight",t)}}_renderSearchInput(t){var e=(0,l.Z)("<div>").addClass("dx-diagram-toolbox-input").appendTo(t);this._searchInput=this._createComponent(e,iD.Z,{stylingMode:"outlined",placeholder:yn.Z.format("dxDiagram-uiSearch"),onValueChanged:i=>{this._onInputChanged(i.value)},valueChangeEvent:"keyup",buttons:[{name:"search",location:"after",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"search",stylingMode:"outlined",type:"normal",onClick:()=>{this._searchInput.focus()}}}]})}_renderScrollView(t){var e=(0,l.Z)("<div>").appendTo(t);this._scrollView=this._createComponent(e,Ef.Z);var i=this._scrollView._moveIsAllowed.bind(this._scrollView);this._scrollView._moveIsAllowed=m=>{for(var D=0;D<this._toolboxes.length;D++)if((0,l.Z)(this._toolboxes[D]).children(".dxdi-tb-start-drag-flag").length)return!1;return i(m)};var r=(0,l.Z)("<div>").appendTo(this._scrollView.content());this._updateElementWidth(r),this._renderAccordion(r)}_getAccordionDataSource(){for(var t=[],e=this.option("toolboxGroups"),i=0;i<e.length;i++){var r=e[i].category;t.push({category:r,title:e[i].title||r,expanded:e[i].expanded,displayMode:e[i].displayMode,shapes:e[i].shapes,onTemplate:(A,N,Q)=>{var se=(0,l.Z)(N);this._onShapeCategoryRenderedAction({category:Q.category,displayMode:Q.displayMode,dataToggle:bB,shapes:Q.shapes,$element:se}),this._toolboxes.push(se),""!==this._filterText&&this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.length-1}),this._createTooltips(se)}})}return t}_createTooltips(t){if(!this._isTouchMode()){var e=t.find('[data-toggle="'+bB+'"]'),i=this.$element();e.each((r,m)=>{var D=(0,l.Z)(m),A=D.attr("title");if(A){var N=(0,l.Z)("<div>").text(A).appendTo(i);this._createComponent(N,rD,{target:D.get(0),showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})}})}}_isTouchMode(){var{Browser:t}=To();return t.TouchUI}_renderAccordion(t){this._accordion=this._createComponent(t,X,{multiple:!0,animationDuration:0,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,collapsible:!0,displayExpr:"title",dataSource:this._getAccordionDataSource(),disabled:this.option("disabled"),itemTemplate:(e,i,r)=>{e.onTemplate(this,r,e)},onSelectionChanged:e=>{this._updateScrollAnimateSubscription(e.component)},onContentReady:e=>{e.component.option("selectedItems",[]);for(var i=e.component.option("dataSource"),r=0;r<i.length;r++)!1===i[r].expanded?e.component.collapseItem(r):!0===i[r].expanded&&e.component.expandItem(r);i.length&&void 0===i[0].expanded&&e.component.expandItem(0),this._updateScrollAnimateSubscription(e.component)}})}_updateScrollAnimateSubscription(t){t._deferredAnimate=new P.BH,t._deferredAnimate.done(()=>{this.updateMaxHeight(),this._scrollView.update(),this._updateScrollAnimateSubscription(t)})}_onInputChanged(t){this._filterText=t,this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.map((e,i)=>i)}),this.updateTooltips(),this.updateMaxHeight(),this._scrollView.update()}updateFilter(){this._onInputChanged(this._filterText)}updateTooltips(){this._toolboxes.forEach(t=>{var e=(0,l.Z)(t);this._createTooltips(e)})}_createOnShapeCategoryRenderedAction(){this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered")}_createOnFilterChangedAction(){this._onFilterChangedAction=this._createActionByOption("onFilterChanged")}_optionChanged(t){switch(t.name){case"onShapeCategoryRendered":this._createOnShapeCategoryRenderedAction();break;case"onFilterChanged":this._createOnFilterChangedAction();break;case"showSearch":case"toolboxWidth":this._invalidate();break;case"toolboxGroups":this._accordion.option("dataSource",this._getAccordionDataSource());break;default:super._optionChanged(t)}}};var wB=u(3078);const jZ=class GZ extends xB{_init(){super._init(),this._commandTabs=fl.getPropertyPanelCommandTabs(this.option("propertyTabs")),this._createOnCreateToolbar(),this._createOnSelectedGroupChanged()}_initMarkup(){this._toolbars=[],this._selectedToolbar=void 0,super._initMarkup()}_getPopupClass(){var t="dx-diagram-properties-popup";return this._hasTabPanel()||(t+=" dx-diagram-properties-popup-notabs"),t}_getPopupWidth(){return this.isMobileView()?"100%":420}_getPopupHeight(){return 340}_getPopupPosition(){var t=this.option("offsetParent");return this.isMobileView()?{my:"left bottom",at:"left bottom",of:t}:{my:"right bottom",at:"right bottom",of:t,offset:"-"+this.option("offsetX")+" -"+this.option("offsetY")}}_getPopupAnimation(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"bottom",from:{position:{my:"left bottom",at:"left bottom",of:t}},to:{position:{my:"left top",at:"left bottom",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"top",from:{position:{my:"left top",at:"left bottom",of:t}},to:{position:{my:"left bottom",at:"left bottom",of:t}}})}:super._getPopupAnimation()}_getPopupOptions(){return(0,y.l)(super._getPopupOptions(),{showTitle:this.isMobileView(),showCloseButton:this.isMobileView()})}_renderPopupContent(t){if(this._commandTabs.length){var e=(0,l.Z)("<div>").addClass("dx-diagram-properties-panel").appendTo(t);this._hasTabPanel()?this._renderTabPanel(e):this._renderTabContent(e,this._commandTabs[0],0,!0)}}_hasTabPanel(){return this._commandTabs.length>1}_renderTabPanel(t){var e=(0,l.Z)("<div>").appendTo(t);this._tabPanel=this._createComponent(e,wB.Z,{focusStateEnabled:!1,dataSource:this._commandTabs,itemTemplate:(i,r,m)=>{this._renderTabContent(m,i,r)},onSelectionChanged:i=>{this._onSelectedGroupChangedAction(),this._onPointerUpAction()},onContentReady:i=>{this._popup.option("height",(0,s.Cr)(i.component.$element())+this._getVerticalPaddingsAndBorders()),this._firstScrollView&&(this._scrollViewHeight=(0,s.zp)(this._firstScrollView.$element()),this._firstScrollView.option("height",this._scrollViewHeight))}})}_renderTabContent(t,e,i,r){var m=(0,l.Z)("<div>").appendTo(t),D=this._createComponent(m,Ef.Z,{height:this._scrollViewHeight});this._renderTabInnerContent(D.content(),e,i),r?this._popup.option("height",(0,s.Cr)(D.$element())+this._getVerticalPaddingsAndBorders()):this._firstScrollView=this._firstScrollView||D}_renderTabInnerContent(t,e,i){e.groups?e.groups.forEach((r,m)=>{this._renderTabGroupContent(t,i,r.title,r.commands)}):e.commands&&this._renderTabGroupContent(t,i,void 0,e.commands)}_renderTabGroupContent(t,e,i,r){i&&(0,l.Z)("<div>").addClass("dx-diagram-properties-panel-group-title").appendTo(t).text(i);var D={$parent:(0,l.Z)("<div>").addClass("dx-diagram-properties-panel-group-toolbar").appendTo(t),commands:r};this._onCreateToolbarAction(D),this._toolbars[e]||(this._toolbars[e]=[]),this._toolbars[e].push(D.toolbar),this._selectedToolbar=D.toolbar}getActiveToolbars(){var t=this._tabPanel?this._tabPanel.option("selectedIndex"):0;return this._toolbars[t]}_createOnCreateToolbar(){this._onCreateToolbarAction=this._createActionByOption("onCreateToolbar")}_createOnSelectedGroupChanged(){this._onSelectedGroupChangedAction=this._createActionByOption("onSelectedGroupChanged")}_optionChanged(t){switch(t.name){case"onCreateToolbar":this._createOnCreateToolbar();break;case"onSelectedGroupChanged":this._createOnSelectedGroupChanged();break;case"propertyTabs":this._invalidate();break;default:super._optionChanged(t)}}},YZ=class $Z extends bA{constructor(t){super(t);var{DiagramCommand:e}=To();this.commandOptions={},this.commandOptions[e.Fullscreen]="fullScreen",this.commandOptions[e.ZoomLevel]=function(i){"object"==typeof this._getOption("zoomLevel")?this._setOption("zoomLevel.value",i):this._setOption("zoomLevel",i)},this.commandOptions[e.SwitchAutoZoom]=function(i){var{AutoZoomMode:r}=To();switch(i){case r.FitContent:this._setOption("autoZoomMode","fitContent");break;case r.FitToWidth:this._setOption("autoZoomMode","fitWidth");break;case r.Disabled:this._setOption("autoZoomMode","disabled")}},this.commandOptions[e.ToggleSimpleView]="simpleView",this.commandOptions[e.ShowGrid]="showGrid",this.commandOptions[e.SnapToGrid]="snapToGrid",this.commandOptions[e.GridSize]=function(i){"object"==typeof this._getOption("gridSize")?this._setOption("gridSize.value",i):this._setOption("gridSize",i)},this.commandOptions[e.ViewUnits]="viewUnits",this.commandOptions[e.PageSize]=function(i){var r=this._getOption("pageSize");(void 0===r||r.width!==i.width||r.height!==i.height)&&this._setOption("pageSize",i)},this.commandOptions[e.PageLandscape]=function(i){this._setOption("pageOrientation",i?"landscape":"portrait")},this.commandOptions[e.ViewUnits]=function(i){var{DiagramUnit:r}=To();switch(i){case r.In:this._setOption("viewUnits","in");break;case r.Cm:this._setOption("viewUnits","cm");break;case r.Px:this._setOption("viewUnits","px")}},this.commandOptions[e.PageColor]="pageColor",this._updateLock=0}getCommandKeys(){return Object.keys(this.commandOptions).map(function(t){return parseInt(t)})}setItemValue(t,e){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"==typeof this.commandOptions[t]?this.commandOptions[t].call(this,e):this._setOption(this.commandOptions[t],e)}finally{this.endUpdate()}}}beginUpdate(){this._updateLock++}endUpdate(){this._updateLock--}isUpdateLocked(){return this._updateLock>0}_getOption(t){return this._owner.option(t)}_setOption(t,e){this._owner.option(t,e)}};var EB=u(4471),XZ={getConfigurations:function(){var{DiagramCommand:n}=To();return this.dialogList||(this.dialogList=[{command:n.InsertShapeImage,title:yn.Z.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:n.EditShapeImage,title:yn.Z.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(n){var t=(0,l.Z)("<div>");return n.component._createComponent(t,EB.Z,{selectButtonText:yn.Z.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(e){var r=new((0,mi.Jj)().FileReader);r.onload=function(m){n.component._commandParameter=m.target.result},r.readAsDataURL(e.value[0])}}),t},getDialogParameters(n){var t=this.getConfigurations().map(e=>e.command).indexOf(n);return t>=0?this.getConfigurations()[t]:null}};const qZ=XZ;var JZ=CA.w.inherit({}).include(yo.Z);const SB=class QZ extends JZ{constructor(t){super(),this._diagramWidget=t,this._resetCache()}_dataSourceChangedHandler(t,e){if(this._resetCache(),this._items=t.map(m=>(0,y.l)(!0,{},m)),this._dataSourceItems=t.slice(),e&&e.changes){var i=e.changes.filter(m=>m.internalChange),r=e.changes.filter(m=>!m.internalChange);i.length&&this._reloadContentByChanges(i,!1),r.length&&this._reloadContentByChanges(r,!0)}else this._diagramWidget._onDataSourceChanged()}_dataSourceLoadingChangedHandler(t){t&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()}_prepareData(t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&void 0===t[e]&&(t[e]=null);return t}insert(t,e,i){this._resetCache();var r=this._getStore();r.insert(this._prepareData(t)).done((m,D)=>{r.push([{type:"insert",key:D,data:m,internalChange:!0}]),e&&e(m),this._resetCache()}).fail(m=>{i&&i(m),this._resetCache()})}update(t,e,i,r){var m=this._getStore(),D=this._getStoreKey(m,t,e);m.update(D,this._prepareData(e)).done((A,N)=>{m.push([{type:"update",key:N,data:A,internalChange:!0}]),i&&i(N,A)}).fail(A=>{r&&r(A)})}remove(t,e,i,r){this._resetCache();var m=this._getStore(),D=this._getStoreKey(m,t,e);m.remove(D).done(A=>{m.push([{type:"remove",key:A,internalChange:!0}]),i&&i(A),this._resetCache()}).fail(A=>{r&&r(A),this._resetCache()})}findItem(t){return this._items?this._getItemByKey(t):null}getItems(){return this._items}hasItems(){return!!this._items}_reloadContentByChanges(t,e){t=t.map(i=>(0,y.l)(i,{internalKey:this._getInternalKey(i.key)})),this._diagramWidget._reloadContentByChanges(t,e)}_getItemByKey(t){this._ensureCache();var e=this._cache,i=this._getIndexByKey(t);return e.items[i]}_getIndexByKey(t){this._ensureCache();var e=this._cache;if("object"!=typeof t){var m=e.keySet||e.keys.reduce((D,A,N)=>(D[A]=N,D),{});return e.keySet||(e.keySet=m),m[t]}for(var i=0,r=e.keys.length;i<r;i++)if(e.keys[i]===t)return i;return-1}_ensureCache(){var t=this._cache;t.keys||(t.keys=[],t.items=[],this._fillCache(t,this._items))}_fillCache(t,e){if(e&&e.length){var i=this._getKeyExpr();i&&e.forEach(D=>{t.keys.push(i(D)),t.items.push(D)});var r=this._getItemsExpr();r&&e.forEach(D=>this._fillCache(t,r(D)));var m=this._getContainerChildrenExpr();m&&e.forEach(D=>this._fillCache(t,m(D)))}}_getKeyExpr(){throw"Not Implemented"}_getItemsExpr(){}_getContainerChildrenExpr(){}_initDataSource(){super._initDataSource(),this._dataSource&&this._dataSource.paginate(!1)}_dataSourceOptions(){return{paginate:!1}}_getStore(){return this._dataSource&&this._dataSource.store()}_getStoreKey(t,e,i){var r=t.keyOf(i);if(r===i){var m=this._getKeyExpr();this._dataSourceItems.forEach(D=>{m(D)===e&&(r=D)})}return r}_getInternalKey(t){return"object"==typeof t?this._getKeyExpr()(t):t}_resetCache(){this._cache={}}},t5=class e5 extends SB{_getKeyExpr(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")}_getItemsExpr(){return this._diagramWidget._createOptionGetter("nodes.itemsExpr")}_getContainerChildrenExpr(){return this._diagramWidget._createOptionGetter("nodes.containerChildrenExpr")}},i5=class n5 extends SB{_getKeyExpr(){return this._diagramWidget._createOptionGetter("edges.keyExpr")}};var Sf="dx-diagram",o5=Sf+"-toolbar-wrapper",a5=Sf+"-content-wrapper",s5=Sf+"-content",l5=Sf+"-scroll-view",DA=Sf+"-floating-toolbar-container",u5=Sf+"-properties-panel-toolbar-container",d5=Sf+"-loading-indicator",DB="disabled",TB="portrait",IB="#ffffff",aD="dxDiagramEvent",MB=(0,k.V4)("fullscreenchange",aD),AB=(0,k.V4)("msfullscreenchange",aD),PB=(0,k.V4)("webkitfullscreenchange",aD),kB=(0,k.V4)("mozfullscreenchange",aD);(0,T.Z)("dxDiagram",class RB extends ca.Z{_init(){this._updateDiagramLockCount=0,this.toggleFullscreenLock=0,this._toolbars=[],super._init(),this._initDiagram(),this._createCustomCommand()}_initMarkup(){super._initMarkup(),this._toolbars=[],delete this._isMobileScreenSize;var t=!(0,mi.Ym)();this.$element().addClass(Sf),delete this._mainToolbar,this.option("mainToolbar.visible")&&this._renderMainToolbar();var e=(0,l.Z)("<div>").addClass(a5).appendTo(this.$element());if(delete this._historyToolbar,delete this._historyToolbarResizeCallback,this._isHistoryToolbarVisible()&&this._renderHistoryToolbar(e),delete this._propertiesToolbar,delete this._propertiesToolbarResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesToolbar(e),delete this._viewToolbar,delete this._viewToolbarResizeCallback,this.option("viewToolbar.visible")&&this._renderViewToolbar(e),delete this._toolbox,delete this._toolboxResizeCallback,this._isToolboxEnabled()&&this._renderToolbox(e),delete this._propertiesPanel,delete this._propertiesPanelResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesPanel(e),this._$content=(0,l.Z)("<div>").addClass(s5).appendTo(e),delete this._contextMenu,this._diagramInstance.settings.contextMenuEnabled=this.option("contextMenu.enabled"),this._diagramInstance.settings.contextMenuEnabled&&this._renderContextMenu(e),delete this._contextToolbox,this.option("contextToolbox.enabled")&&this._renderContextToolbox(e),this._renderDialog(e),!t){var i=(0,l.Z)("<div>").addClass(l5).appendTo(this._$content);this._createComponent(i,EZ,{useNativeScrolling:this.option("useNativeScrolling"),onCreateDiagram:r=>{this._diagramInstance.createDocument(r.$parent[0],r.scrollView,e[0])}})}this._setCustomCommandChecked(fl.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()),this._setCustomCommandChecked(fl.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible()),this._createOptionsUpdateBar()}_dimensionChanged(){this._isMobileScreenSize=void 0,this._processDiagramResize()}_visibilityChanged(t){t&&(this._bindDiagramData(),this.repaint())}_processDiagramResize(){this._diagramInstance.onDimensionChanged(),this._historyToolbarResizeCallback&&this._historyToolbarResizeCallback.call(this),this._propertiesToolbarResizeCallback&&this._propertiesToolbarResizeCallback.call(this),this._propertiesPanelResizeCallback&&this._propertiesPanelResizeCallback.call(this),this._viewToolbarResizeCallback&&this._viewToolbarResizeCallback.call(this),this._toolboxResizeCallback&&this._toolboxResizeCallback.call(this)}isMobileScreenSize(){return void 0===this._isMobileScreenSize&&(this._isMobileScreenSize=(0,mi.Ym)()&&(0,s.Y_)(this.$element())<576),this._isMobileScreenSize}_captureFocus(){this._diagramInstance&&this._diagramInstance.captureFocus()}_captureFocusOnTimeout(){this._captureFocusTimeout=setTimeout(()=>{this._captureFocus(),delete this._captureFocusTimeout},100)}_killCaptureFocusTimeout(){this._captureFocusTimeout&&(clearTimeout(this._captureFocusTimeout),delete this._captureFocusTimeout)}notifyBarCommandExecuted(){this._captureFocusOnTimeout()}_registerToolbar(t){this._registerBar(t),this._toolbars.push(t)}_registerBar(t){t.bar.onChanged.add(this),this._diagramInstance.registerBar(t.bar)}_getExcludeCommands(){var t=[];return this._isToolboxEnabled()||t.push(fl.SHOW_TOOLBOX_COMMAND_NAME),this._isPropertiesPanelEnabled()||t.push(fl.SHOW_PROPERTIES_PANEL_COMMAND_NAME),t}_getToolbarBaseOptions(){return{onContentReady:t=>{var{component:e}=t;return this._registerToolbar(e)},onSubMenuVisibilityChanging:t=>{var{component:e}=t;return this._diagramInstance.updateBarItemsState(e.bar)},onPointerUp:this._onPanelPointerUp.bind(this),export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this),isMobileView:this.isMobileScreenSize()}}_onInternalCommand(t){switch(t.command){case fl.SHOW_TOOLBOX_COMMAND_NAME:this._toolbox&&this._toolbox.toggle();break;case fl.SHOW_PROPERTIES_PANEL_COMMAND_NAME:this._propertiesPanel&&this._propertiesPanel.toggle()}}_onCustomCommand(t){this._customCommandAction({name:t.name})}_renderMainToolbar(){var t=(0,l.Z)("<div>").addClass(o5).appendTo(this.$element());this._mainToolbar=this._createComponent(t,nZ,(0,y.l)(this._getToolbarBaseOptions(),{commands:this.option("mainToolbar.commands"),skipAdjustSize:!0}))}_isHistoryToolbarVisible(){return this.option("historyToolbar.visible")&&!this.isReadOnlyMode()}_renderHistoryToolbar(t){var e=(0,l.Z)("<div>").addClass(DA).appendTo(t);this._historyToolbar=this._createComponent(e,rZ,(0,y.l)(this._getToolbarBaseOptions(),{commands:this.option("historyToolbar.commands"),locateInMenu:"never"})),this._updateHistoryToolbarPosition(),this._historyToolbarResizeCallback=()=>{this._historyToolbar.option("isMobileView",this.isMobileScreenSize())}}_updateHistoryToolbarPosition(){(0,mi.Ym)()&&QO.Z.setup(this._historyToolbar.$element(),{my:"left top",at:"left top",of:this._historyToolbar.$element().parent(),offset:"12 12"})}_isToolboxEnabled(){return"disabled"!==this.option("toolbox.visibility")&&!this.isReadOnlyMode()}_isToolboxVisible(){return"visible"===this.option("toolbox.visibility")||"auto"===this.option("toolbox.visibility")&&!this.isMobileScreenSize()}_renderToolbox(t){var e=!(0,mi.Ym)(),i=(0,l.Z)("<div>").appendTo(t),r=this._getToolboxBounds(t,e);this._toolbox=this._createComponent(i,VZ,{isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible(),container:this.$element(),height:r.height,offsetParent:t,offsetX:r.offsetX,offsetY:r.offsetY,showSearch:this.option("toolbox.showSearch"),toolboxGroups:this._getToolboxGroups(),toolboxWidth:this.option("toolbox.width"),onShapeCategoryRendered:m=>{e||this._diagramInstance.createToolbox(m.$element[0],"texts"===m.displayMode,m.shapes||m.category,{shapeIconSpacing:12,shapeIconCountInRow:this.option("toolbox.shapeIconsPerRow"),shapeIconAttributes:{"data-toggle":m.dataToggle}})},onFilterChanged:m=>{e||this._diagramInstance.applyToolboxFilter(m.text,m.filteringToolboxes)},onVisibilityChanging:m=>{e||(this._setCustomCommandChecked(fl.SHOW_TOOLBOX_COMMAND_NAME,m.visible),this._propertiesPanel&&m.visible&&this.isMobileScreenSize()&&this._propertiesPanel.hide(),this._historyToolbar&&m.visible&&this.isMobileScreenSize()&&(this._historyToolbarZIndex=eD.Ue(tD.Z.baseZIndex()),this._historyToolbar.$element().css("zIndex",this._historyToolbarZIndex),this._historyToolbar.$element().css("boxShadow","none")),this._viewToolbar&&(this._viewToolbar.$element().css("opacity",m.visible&&this.isMobileScreenSize()?"0":"1"),this._viewToolbar.$element().css("pointerEvents",m.visible&&this.isMobileScreenSize()?"none":"")))},onVisibilityChanged:m=>{!m.visible&&!this._textInputStarted&&this._captureFocus(),e||this._historyToolbar&&!m.visible&&this.isMobileScreenSize()&&this._historyToolbarZIndex&&(eD.Od(this._historyToolbarZIndex),this._historyToolbar.$element().css("zIndex",""),this._historyToolbar.$element().css("boxShadow",""),this._historyToolbarZIndex=void 0)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._toolbox._popup.option("propagateOutsideClick",!this.option("fullScreen")),this._toolboxResizeCallback=()=>{var m=this._getToolboxBounds(t,e);this._toolbox.option("height",m.height),this._toolbox.option("isMobileView")!==this.isMobileScreenSize()&&(this._toolbox.option({isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible()}),this._setCustomCommandChecked(fl.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible())),this._toolbox.updateMaxHeight()}}_getToolboxBounds(t,e){var i={offsetX:12,offsetY:12,height:e?0:(0,s.Cr)(t)-24};return this._historyToolbar&&!e&&(i.offsetY+=(0,s.zp)(this._historyToolbar.$element())+12,i.height-=(0,s.zp)(this._historyToolbar.$element())+12),this._viewToolbar&&!e&&(i.height-=(0,s.zp)(this._viewToolbar.$element())+this._getViewToolbarYOffset(e)),i}_renderViewToolbar(t){var e=!(0,mi.Ym)(),i=(0,l.Z)("<div>").addClass(DA).appendTo(t);this._viewToolbar=this._createComponent(i,aZ,(0,y.l)(this._getToolbarBaseOptions(),{commands:this.option("viewToolbar.commands"),locateInMenu:"never"})),this._updateViewToolbarPosition(i,t,e),this._viewToolbarResizeCallback=()=>{this._updateViewToolbarPosition(i,t,e)}}_getViewToolbarYOffset(t){if(!t){var e=12;return this._viewToolbar&&this._propertiesToolbar&&(e+=((0,s.zp)(this._propertiesToolbar.$element())-(0,s.zp)(this._viewToolbar.$element()))/2),e}}_updateViewToolbarPosition(t,e,i){i||QO.Z.setup(t,{my:"left bottom",at:"left bottom",of:e,offset:"12 -"+this._getViewToolbarYOffset(i)})}_isPropertiesPanelEnabled(){return"disabled"!==this.option("propertiesPanel.visibility")&&!this.isReadOnlyMode()}_isPropertiesPanelVisible(){return"visible"===this.option("propertiesPanel.visibility")}_renderPropertiesToolbar(t){var e=!(0,mi.Ym)(),i=(0,l.Z)("<div>").addClass(DA).addClass(u5).appendTo(t);this._propertiesToolbar=this._createComponent(i,lZ,(0,y.l)(this._getToolbarBaseOptions(),{buttonStylingMode:"contained",buttonType:"default",locateInMenu:"never"})),this._updatePropertiesToolbarPosition(i,t,e),this._propertiesToolbarResizeCallback=()=>{this._updatePropertiesToolbarPosition(i,t,e)}}_updatePropertiesToolbarPosition(t,e,i){i||QO.Z.setup(t,{my:"right bottom",at:"right bottom",of:e,offset:"-12 -12"})}_renderPropertiesPanel(t){var e=!(0,mi.Ym)(),i=(0,l.Z)("<div>").appendTo(t),m=24+(e?0:(0,s.zp)(this._propertiesToolbar.$element()));this._propertiesPanel=this._createComponent(i,jZ,{isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible(),container:this.$element(),offsetParent:t,offsetX:12,offsetY:m,propertyTabs:this.option("propertiesPanel.tabs"),onCreateToolbar:D=>{D.toolbar=this._createComponent(D.$parent,Ib,(0,y.l)(this._getToolbarBaseOptions(),{commands:D.commands,locateInMenu:"never",editorStylingMode:"outlined"}))},onVisibilityChanging:D=>{e||(this._updatePropertiesPanelGroupBars(D.component),this._setCustomCommandChecked(fl.SHOW_PROPERTIES_PANEL_COMMAND_NAME,D.visible),this._toolbox&&D.visible&&this.isMobileScreenSize()&&this._toolbox.hide())},onVisibilityChanged:D=>{!D.visible&&!this._textInputStarted&&this._captureFocus()},onSelectedGroupChanged:D=>{var{component:A}=D;return this._updatePropertiesPanelGroupBars(A)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._propertiesPanelResizeCallback=()=>{this._propertiesPanel.option("isMobileView")!==this.isMobileScreenSize()&&(this._propertiesPanel.option({isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible()}),this._setCustomCommandChecked(fl.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()))}}_updatePropertiesPanelGroupBars(t){t.getActiveToolbars().forEach(e=>{this._diagramInstance.updateBarItemsState(e.bar)})}_onPanelPointerUp(){this._captureFocusOnTimeout()}_renderContextMenu(t){var e=(0,l.Z)("<div>").appendTo(t);this._contextMenu=this._createComponent(e,gZ_DiagramContextMenuWrapper,{commands:this.option("contextMenu.commands"),onContentReady:i=>{var{component:r}=i;return this._registerBar(r)},onVisibilityChanging:i=>{var{component:r}=i;return this._diagramInstance.updateBarItemsState(r.bar)},onItemClick:i=>this._onBeforeCommandExecuted(i.command),export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this)})}_renderContextToolbox(t){var e=!(0,mi.Ym)(),i=this.option("contextToolbox.category"),r=this.option("contextToolbox.displayMode"),m=this.option("contextToolbox.shapes"),D=(0,l.Z)("<div>").appendTo(t);this._contextToolbox=this._createComponent(D,yZ,{toolboxWidth:this.option("contextToolbox.width"),onShown:A=>{if(!e){var N=(0,l.Z)(A.$element),Q="texts"===r;if(!m&&!i&&!Q){var se=this._getToolboxGroups().filter(function(we){return we.category===A.category})[0];se&&(Q="texts"===se.displayMode)}this._diagramInstance.createContextToolbox(N[0],Q,m||i||A.category,{shapeIconSpacing:12,shapeIconCountInRow:this.option("contextToolbox.shapeIconsPerRow")},we=>{A.callback(we),this._captureFocus(),A.hide()})}}})}_setCustomCommandChecked(t,e){this._toolbars.forEach(i=>{i.setCommandChecked(t,e)})}_onBeforeCommandExecuted(t){var e=qZ.getDialogParameters(t);return e&&this._showDialog(e),!!e}_renderDialog(t){var e=(0,l.Z)("<div>").appendTo(t);this._dialogInstance=this._createComponent(e,xZ,{})}_showDialog(t){this._dialogInstance&&(this._dialogInstance.option("onGetContent",t.onGetContent),this._dialogInstance.option("onHidden",function(){this._captureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.getCommand(t.command)),this._dialogInstance.option("title",t.title),this._dialogInstance._show())}_showLoadingIndicator(){this._loadingIndicator=(0,l.Z)("<div>").addClass(d5),this._createComponent(this._loadingIndicator,xA.Z,{}),(this._$content||this.$element()).append(this._loadingIndicator)}_hideLoadingIndicator(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)}_initDiagram(){var{DiagramControl:t}=To();if(this._diagramInstance=new t,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onTextInputStart=this._raiseTextInputStart.bind(this),this._diagramInstance.onTextInputEnd=this._raiseTextInputEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullScreen.bind(this),this._diagramInstance.onShowContextMenu=this._onShowContextMenu.bind(this),this._diagramInstance.onHideContextMenu=this._onHideContextMenu.bind(this),this._diagramInstance.onShowContextToolbox=this._onShowContextToolbox.bind(this),this._diagramInstance.onHideContextToolbox=this._onHideContextToolbox.bind(this),this._diagramInstance.onNativeAction.add({notifyItemClick:this._raiseItemClickAction.bind(this),notifyItemDblClick:this._raiseItemDblClickAction.bind(this),notifySelectionChanged:this._raiseSelectionChanged.bind(this)}),this._diagramInstance.onRequestOperation=this._raiseRequestEditOperation.bind(this),this._updateEventSubscriptionMethods(),this._updateDefaultItemProperties(),this._updateEditingSettings(),this._updateShapeTexts(),this._updateUnitItems(),this._updateFormatUnitsMethod(),"in"!==this.option("units")&&this._updateUnitsState(),this.isReadOnlyMode()&&this._updateReadOnlyState(),this.option("pageSize")&&(this.option("pageSize.items")&&this._updatePageSizeItemsState(),this.option("pageSize.width")&&this.option("pageSize.height")&&this._updatePageSizeState()),this.option("pageOrientation")!==TB&&this._updatePageOrientationState(),this.option("pageColor")!==IB&&this._updatePageColorState(),"in"!==this.option("viewUnits")&&this._updateViewUnitsState(),this.option("showGrid")||this._updateShowGridState(),this.option("snapToGrid")||this._updateSnapToGridState(),this.option("gridSize")&&this._updateGridSizeState(),1!==this.option("zoomLevel")&&this._updateZoomLevelState(),this.option("simpleView")&&this._updateSimpleViewState(),this.option("autoZoomMode")!==DB&&this._updateAutoZoomState(),this.option("fullScreen")){var e=(0,mi.Jj)();e&&e.self!==e.top?this.option("fullScreen",!1):this._updateFullscreenState()}this._createOptionsUpdateBar(),(0,mi.Ym)()&&this._diagramInstance.initMeasurer(this.$element()[0]),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}_createOptionsUpdateBar(){this.optionsUpdateBar||(this.optionsUpdateBar=new YZ(this),this._diagramInstance.registerBar(this.optionsUpdateBar))}_deleteOptionsUpdateBar(){delete this.optionsUpdateBar}_clean(){this._diagramInstance&&(this._diagramInstance.cleanMarkup(t=>{(0,l.Z)(t).empty()}),this._deleteOptionsUpdateBar()),super._clean()}_dispose(){this._killCaptureFocusTimeout(),super._dispose(),this._diagramInstance&&(this._diagramInstance.dispose(),this._diagramInstance=void 0)}_executeDiagramCommand(t,e){this._diagramInstance.getCommand(t).execute(e)}getNodeDataSource(){return this._nodesOption&&this._nodesOption.getDataSource()}getEdgeDataSource(){return this._edgesOption&&this._edgesOption.getDataSource()}_refreshDataSources(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()}_refreshNodesDataSource(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption),this.option("nodes.dataSource")&&(this._nodesOption=new t5(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource())}_refreshEdgesDataSource(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption),this.option("edges.dataSource")&&(this._edgesOption=new i5(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource())}_getDiagramData(){var t,{DiagramCommand:e}=To();return this._executeDiagramCommand(e.Export,function(i){t=i}),t}_setDiagramData(t,e){var{DiagramCommand:i}=To();this._executeDiagramCommand(i.Import,{data:t,keepExistingItems:e})}isReadOnlyMode(){return this.option("readOnly")||this.option("disabled")}_onDataSourceChanged(){this._bindDiagramData()}_getChangesKeys(t){return t.map(e=>(0,w.$K)(e.internalKey)?e.internalKey:(0,w.$K)(e.key)?e.key:null).filter(e=>(0,w.$K)(e))}_createOptionGetter(t){var e=this.option(t);return e&&(0,Go.vb)(e)}_onRequestUpdateLayout(t){this._requestLayoutUpdateAction||this._createRequestLayoutUpdateAction();var e={changes:t,allowed:!1};return this._requestLayoutUpdateAction(e),e.allowed}_createOptionSetter(t){var e=this.option(t);return(0,w.mf)(e)?e:e&&(0,Go.OM)(e)}_bindDiagramData(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var r,m,D,A,N,Q,se,we,{DiagramCommand:t,ConnectorLineOption:e,ConnectorLineEnding:i}=To(),Re={nodeDataSource:this._nodesOption&&this._nodesOption.getItems(),edgeDataSource:this._edgesOption&&this._edgesOption.getItems(),nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getCustomData:this._createOptionGetter("nodes.customDataExpr"),setCustomData:this._createOptionSetter("nodes.customDataExpr"),getLocked:this._createOptionGetter("nodes.lockedExpr"),setLocked:this._createOptionSetter("nodes.lockedExpr"),getStyle:this._createOptionGetter("nodes.styleExpr"),setStyle:this._createOptionSetter("nodes.styleExpr"),getStyleText:this._createOptionGetter("nodes.textStyleExpr"),setStyleText:this._createOptionSetter("nodes.textStyleExpr"),getZIndex:this._createOptionGetter("nodes.zIndexExpr"),setZIndex:this._createOptionSetter("nodes.zIndexExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getImage:this._createOptionGetter("nodes.imageUrlExpr"),setImage:this._createOptionSetter("nodes.imageUrlExpr"),getLeft:this._createOptionGetter("nodes.leftExpr"),setLeft:this._createOptionSetter("nodes.leftExpr"),getTop:this._createOptionGetter("nodes.topExpr"),setTop:this._createOptionSetter("nodes.topExpr"),getWidth:this._createOptionGetter("nodes.widthExpr"),setWidth:this._createOptionSetter("nodes.widthExpr"),getHeight:this._createOptionGetter("nodes.heightExpr"),setHeight:this._createOptionSetter("nodes.heightExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr"),getChildren:se=this._createOptionGetter("nodes.containerChildrenExpr"),setChildren:we=this._createOptionSetter("nodes.containerChildrenExpr"),getContainerKey:!se&&!we&&this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:!se&&!we&&this._createOptionSetter("nodes.containerKeyExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getCustomData:this._createOptionGetter("edges.customDataExpr"),setCustomData:this._createOptionSetter("edges.customDataExpr"),getLocked:this._createOptionGetter("edges.lockedExpr"),setLocked:this._createOptionSetter("edges.lockedExpr"),getStyle:this._createOptionGetter("edges.styleExpr"),setStyle:this._createOptionSetter("edges.styleExpr"),getStyleText:this._createOptionGetter("edges.textStyleExpr"),setStyleText:this._createOptionSetter("edges.textStyleExpr"),getZIndex:this._createOptionGetter("edges.zIndexExpr"),setZIndex:this._createOptionSetter("edges.zIndexExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getFromPointIndex:this._createOptionGetter("edges.fromPointIndexExpr"),setFromPointIndex:this._createOptionSetter("edges.fromPointIndexExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr"),getToPointIndex:this._createOptionGetter("edges.toPointIndexExpr"),setToPointIndex:this._createOptionSetter("edges.toPointIndexExpr"),getPoints:this._createOptionGetter("edges.pointsExpr"),setPoints:this._createOptionSetter("edges.pointsExpr"),getText:this._createOptionGetter("edges.textExpr"),setText:this._createOptionSetter("edges.textExpr"),getLineOption:(r=this._createOptionGetter("edges.lineTypeExpr"))&&function(Ue){var st=r(Ue);return this._getConnectorLineOption(st)}.bind(this),setLineOption:(m=this._createOptionSetter("edges.lineTypeExpr"))&&function(Ue,st){switch(st){case e.Straight:st="straight";break;case e.Orthogonal:st="orthogonal"}m(Ue,st)}.bind(this),getStartLineEnding:(D=this._createOptionGetter("edges.fromLineEndExpr"))&&function(Ue){var st=D(Ue);return this._getConnectorLineEnding(st)}.bind(this),setStartLineEnding:(A=this._createOptionSetter("edges.fromLineEndExpr"))&&function(Ue,st){switch(st){case i.Arrow:st="arrow";break;case i.OutlinedTriangle:st="outlinedTriangle";break;case i.FilledTriangle:st="filledTriangle";break;case i.None:st="none"}A(Ue,st)}.bind(this),getEndLineEnding:(N=this._createOptionGetter("edges.toLineEndExpr"))&&function(Ue){var st=N(Ue);return this._getConnectorLineEnding(st)}.bind(this),setEndLineEnding:(Q=this._createOptionSetter("edges.toLineEndExpr"))&&function(Ue,st){switch(st){case i.Arrow:st="arrow";break;case i.OutlinedTriangle:st="outlinedTriangle";break;case i.FilledTriangle:st="filledTriangle";break;case i.None:st="none"}Q(Ue,st)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(t.BindDocument,Re)}}_reloadContentByChanges(t,e){var i=this._getChangesKeys(t),r=this._onRequestUpdateLayout(t);this._reloadContent(i,r,e)}_reloadContent(t,e,i){this._diagramInstance.reloadContent(t,()=>{var r,m;return this._nodesOption&&i&&(r=this._nodesOption.getItems()),this._edgesOption&&i&&(m=this._edgesOption.getItems()),{nodeDataSource:r,edgeDataSource:m}},e&&this._getDataBindingLayoutParameters(),i)}_getConnectorLineOption(t){var{ConnectorLineOption:e}=To();return"straight"===t?e.Straight:e.Orthogonal}_getConnectorLineEnding(t){var{ConnectorLineEnding:e}=To();switch(t){case"arrow":return e.Arrow;case"outlinedTriangle":return e.OutlinedTriangle;case"filledTriangle":return e.FilledTriangle;default:return e.None}}_getDataBindingLayoutParameters(){var{DataLayoutType:t,DataLayoutOrientation:e}=To(),i=this.option("nodes.autoLayout")||"off",r=i.type||i,m={};if("off"!==r&&("auto"!==r||!this._hasNodePositionExprs())){switch(m.type="tree"===r?t.Tree:t.Sugiyama,i.orientation){case"vertical":m.orientation=e.Vertical;break;case"horizontal":m.orientation=e.Horizontal}(this.option("edges.fromPointIndexExpr")||this.option("edges.toPointIndexExpr"))&&(m.skipPointIndices=!0)}return m.autoSizeEnabled=!!this.option("nodes.autoSizeEnabled"),m}_hasNodePositionExprs(){return this.option("nodes.topExpr")&&this.option("nodes.leftExpr")}_getAutoZoomValue(t){var{AutoZoomMode:e}=To();switch(t){case"fitContent":return e.FitContent;case"fitWidth":return e.FitToWidth;default:return e.Disabled}}_isBindingMode(){return this._nodesOption&&this._nodesOption.hasItems()||this._edgesOption&&this._edgesOption.hasItems()}_beginUpdateDiagram(){this._updateDiagramLockCount++}_endUpdateDiagram(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()}_getCustomShapes(){return this.option("customShapes")||[]}_getToolboxGroups(){return OZ.getGroups(this.option("toolbox.groups"))}_updateAllCustomShapes(){this._diagramInstance.removeAllCustomShapes(),this._updateCustomShapes(this._getCustomShapes())}_updateCustomShapes(t,e){Array.isArray(e)&&this._diagramInstance.removeCustomShapes(e.map(i=>i.type)),Array.isArray(t)&&this._diagramInstance.addCustomShapes(t.map(i=>{var r=i.template||this.option("customShapeTemplate"),m=r&&this._getTemplate(r),D=i.toolboxTemplate||this.option("customShapeToolboxTemplate"),A=D&&this._getTemplate(D);return{category:i.category,type:i.type,baseType:i.baseType,title:i.title,svgUrl:i.backgroundImageUrl,svgToolboxUrl:i.backgroundImageToolboxUrl,svgLeft:i.backgroundImageLeft,svgTop:i.backgroundImageTop,svgWidth:i.backgroundImageWidth,svgHeight:i.backgroundImageHeight,defaultWidth:i.defaultWidth,defaultHeight:i.defaultHeight,toolboxWidthToHeightRatio:i.toolboxWidthToHeightRatio,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,allowResize:i.allowResize,defaultText:i.defaultText,allowEditText:i.allowEditText,textLeft:i.textLeft,textTop:i.textTop,textWidth:i.textWidth,textHeight:i.textHeight,defaultImageUrl:i.defaultImageUrl,allowEditImage:i.allowEditImage,imageLeft:i.imageLeft,imageTop:i.imageTop,imageWidth:i.imageWidth,imageHeight:i.imageHeight,connectionPoints:i.connectionPoints&&i.connectionPoints.map(N=>({x:N.x,y:N.y})),createTemplate:m&&((N,Q)=>{m.render({model:this._nativeItemToDiagramItem(Q),container:(0,S.u)((0,l.Z)(N))})}),createToolboxTemplate:A&&((N,Q)=>{A.render({model:this._nativeItemToDiagramItem(Q),container:(0,S.u)((0,l.Z)(N))})}),destroyTemplate:m&&(N=>{(0,l.Z)(N).empty()}),templateLeft:i.templateLeft,templateTop:i.templateTop,templateWidth:i.templateWidth,templateHeight:i.templateHeight,keepRatioOnAutoSize:i.keepRatioOnAutoSize}}))}_getViewport(){var t=this.$element().closest(".dx-viewport");return t.length?t:(0,l.Z)("body")}_onToggleFullScreen(t){this.toggleFullscreenLock>0||(this._changeNativeFullscreen(t),t?(this._prevParent=this.$element().parent(),this._prevFullScreenZIndex=this.$element().css("zIndex"),this._fullScreenZIndex=eD.Ue(tD.Z.baseZIndex()),this.$element().css("zIndex",this._fullScreenZIndex),this.$element().appendTo(this._getViewport())):(this.$element().appendTo(this._prevParent),this._fullScreenZIndex&&(eD.Od(this._fullScreenZIndex),this.$element().css("zIndex",this._prevFullScreenZIndex))),this.$element().toggleClass("dx-diagram-fullscreen",t),this._processDiagramResize(),this._toolbox&&(this._toolbox.repaint(),this._toolbox._popup.option("propagateOutsideClick",!t)),this._propertiesPanel&&this._propertiesPanel.repaint(),this._historyToolbar&&this._updateHistoryToolbarPosition())}_changeNativeFullscreen(t){var e=(0,mi.Jj)();e.self===e.top||t===this._inNativeFullscreen()||(t?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(t))}_setNativeFullscreen(t){var e=(0,mi.Jj)(),i=e.self.document,r=e.self.document.body;t?r.requestFullscreen?r.requestFullscreen():r.mozRequestFullscreen?r.mozRequestFullscreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen():r.msRequestFullscreen&&r.msRequestFullscreen():i.exitFullscreen?i.exitFullscreen():i.mozCancelFullscreen?i.mozCancelFullscreen():i.webkitExitFullscreen?i.webkitExitFullscreen():i.msExitFullscreen&&i.msExitFullscreen()}_inNativeFullscreen(){var t=(0,mi.Jj)().document;return!((t.fullscreenElement||t.msFullscreenElement||t.webkitFullscreenElement)!==t.body&&!t.webkitIsFullscreen)}_subscribeFullscreenNativeChanged(){var t=(0,mi.Jj)().document,e=this._onNativeFullscreenChangeHandler.bind(this);d.Z.on(t,MB,e),d.Z.on(t,AB,e),d.Z.on(t,PB,e),d.Z.on(t,kB,e)}_unsubscribeFullscreenNativeChanged(){var t=(0,mi.Jj)().document;d.Z.off(t,MB),d.Z.off(t,AB),d.Z.off(t,PB),d.Z.off(t,kB)}_onNativeFullscreenChangeHandler(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this.option("fullScreen",!1))}_executeDiagramFullscreenCommand(t){var{DiagramCommand:e}=To();this.toggleFullscreenLock++,this._executeDiagramCommand(e.Fullscreen,t),this.toggleFullscreenLock--}_onShowContextMenu(t,e,i){this._contextMenu&&this._contextMenu._show(t,e,i)}_onHideContextMenu(){this._contextMenu&&this._contextMenu._hide()}_onShowContextToolbox(t,e,i,r,m){this._contextToolbox&&this._contextToolbox._show(t,e,i,r,m)}_onHideContextToolbox(){this._contextToolbox&&this._contextToolbox._hide()}_getDiagramUnitValue(t){var{DiagramUnit:e}=To();switch(t){case"in":default:return e.In;case"cm":return e.Cm;case"px":return e.Px}}_updateReadOnlyState(){var{DiagramCommand:t}=To(),e=this.isReadOnlyMode();this._executeDiagramCommand(t.ToggleReadOnly,e)}_updateZoomLevelState(){if(this.option("zoomLevel.items")){this._updateZoomLevelItemsState();var t=this.option("zoomLevel.value");if(!t)return;var{DiagramCommand:e}=To();this._executeDiagramCommand(e.ZoomLevel,t)}else{var i=this.option("zoomLevel.value")||this.option("zoomLevel");if(!i)return;var{DiagramCommand:r}=To();this._executeDiagramCommand(r.ZoomLevel,i)}}_updateZoomLevelItemsState(){var t=this.option("zoomLevel.items");if(Array.isArray(t)){var{DiagramCommand:e}=To();this._executeDiagramCommand(e.ZoomLevelItems,t)}}_updateAutoZoomState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoomMode")))}_updateSimpleViewState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.ToggleSimpleView,this.option("simpleView"))}_updateFullscreenState(){var t=this.option("fullScreen");this._executeDiagramFullscreenCommand(t),this._onToggleFullScreen(t)}_updateShowGridState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.ShowGrid,this.option("showGrid"))}_updateSnapToGridState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.SnapToGrid,this.option("snapToGrid"))}_updateGridSizeState(){if(this.option("gridSize.items")){this._updateGridSizeItemsState();var t=this.option("gridSize.value");if(!t)return;var{DiagramCommand:e}=To();this._executeDiagramCommand(e.GridSize,t)}else{var i=this.option("gridSize.value")||this.option("gridSize");if(!i)return;var{DiagramCommand:r}=To();this._executeDiagramCommand(r.GridSize,i)}}_updateGridSizeItemsState(){var t=this.option("gridSize.items");if(Array.isArray(t)){var{DiagramCommand:e}=To();this._executeDiagramCommand(e.GridSizeItems,t)}}_updateUnitItems(){var{DiagramLocalizationService:t}=To(),e=this._getUnitItems();this._unitItems!==e&&(this._unitItems=e,t.unitItems=e)}_getUnitItems(){var{DiagramUnit:t}=To(),e={};return e[t.In]=yn.Z.format("dxDiagram-unitIn"),e[t.Cm]=yn.Z.format("dxDiagram-unitCm"),e[t.Px]=yn.Z.format("dxDiagram-unitPx"),e}_updateFormatUnitsMethod(){var{DiagramLocalizationService:t}=To();t.formatUnit=function(e){return qv.Z.format(e)}}_updateViewUnitsState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))}_updateUnitsState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.Units,this._getDiagramUnitValue(this.option("units")))}_updatePageSizeState(){var t=this.option("pageSize");if(t&&t.width&&t.height){var{DiagramCommand:e}=To();this._executeDiagramCommand(e.PageSize,t)}}_updatePageSizeItemsState(){var t=this.option("pageSize.items");if(Array.isArray(t)){var{DiagramCommand:e}=To();this._executeDiagramCommand(e.PageSizeItems,t)}}_updatePageOrientationState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.PageLandscape,"landscape"===this.option("pageOrientation"))}_updatePageColorState(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.PageColor,this.option("pageColor"))}_updateShapeTexts(){var{DiagramLocalizationService:t}=To(),e=this._getShapeTexts();this._shapeTexts!==e&&(this._shapeTexts=e,t.shapeTexts=e)}_getShapeTexts(){var{ShapeTypes:t}=To(),e={};return e[t.Text]=yn.Z.format("dxDiagram-shapeText"),e[t.Rectangle]=yn.Z.format("dxDiagram-shapeRectangle"),e[t.Ellipse]=yn.Z.format("dxDiagram-shapeEllipse"),e[t.Cross]=yn.Z.format("dxDiagram-shapeCross"),e[t.Triangle]=yn.Z.format("dxDiagram-shapeTriangle"),e[t.Diamond]=yn.Z.format("dxDiagram-shapeDiamond"),e[t.Heart]=yn.Z.format("dxDiagram-shapeHeart"),e[t.Pentagon]=yn.Z.format("dxDiagram-shapePentagon"),e[t.Hexagon]=yn.Z.format("dxDiagram-shapeHexagon"),e[t.Octagon]=yn.Z.format("dxDiagram-shapeOctagon"),e[t.Star]=yn.Z.format("dxDiagram-shapeStar"),e[t.ArrowLeft]=yn.Z.format("dxDiagram-shapeArrowLeft"),e[t.ArrowUp]=yn.Z.format("dxDiagram-shapeArrowUp"),e[t.ArrowRight]=yn.Z.format("dxDiagram-shapeArrowRight"),e[t.ArrowDown]=yn.Z.format("dxDiagram-shapeArrowDown"),e[t.ArrowUpDown]=yn.Z.format("dxDiagram-shapeArrowUpDown"),e[t.ArrowLeftRight]=yn.Z.format("dxDiagram-shapeArrowLeftRight"),e[t.Process]=yn.Z.format("dxDiagram-shapeProcess"),e[t.Decision]=yn.Z.format("dxDiagram-shapeDecision"),e[t.Terminator]=yn.Z.format("dxDiagram-shapeTerminator"),e[t.PredefinedProcess]=yn.Z.format("dxDiagram-shapePredefinedProcess"),e[t.Document]=yn.Z.format("dxDiagram-shapeDocument"),e[t.MultipleDocuments]=yn.Z.format("dxDiagram-shapeMultipleDocuments"),e[t.ManualInput]=yn.Z.format("dxDiagram-shapeManualInput"),e[t.Preparation]=yn.Z.format("dxDiagram-shapePreparation"),e[t.Data]=yn.Z.format("dxDiagram-shapeData"),e[t.Database]=yn.Z.format("dxDiagram-shapeDatabase"),e[t.HardDisk]=yn.Z.format("dxDiagram-shapeHardDisk"),e[t.InternalStorage]=yn.Z.format("dxDiagram-shapeInternalStorage"),e[t.PaperTape]=yn.Z.format("dxDiagram-shapePaperTape"),e[t.ManualOperation]=yn.Z.format("dxDiagram-shapeManualOperation"),e[t.Delay]=yn.Z.format("dxDiagram-shapeDelay"),e[t.StoredData]=yn.Z.format("dxDiagram-shapeStoredData"),e[t.Display]=yn.Z.format("dxDiagram-shapeDisplay"),e[t.Merge]=yn.Z.format("dxDiagram-shapeMerge"),e[t.Connector]=yn.Z.format("dxDiagram-shapeConnector"),e[t.Or]=yn.Z.format("dxDiagram-shapeOr"),e[t.SummingJunction]=yn.Z.format("dxDiagram-shapeSummingJunction"),e[t.Container]=yn.Z.format("dxDiagram-shapeContainerDefaultText"),e[t.VerticalContainer]=yn.Z.format("dxDiagram-shapeVerticalContainer"),e[t.HorizontalContainer]=yn.Z.format("dxDiagram-shapeHorizontalContainer"),e[t.Card]=yn.Z.format("dxDiagram-shapeCardDefaultText"),e[t.CardWithImageOnLeft]=yn.Z.format("dxDiagram-shapeCardWithImageOnLeft"),e[t.CardWithImageOnTop]=yn.Z.format("dxDiagram-shapeCardWithImageOnTop"),e[t.CardWithImageOnRight]=yn.Z.format("dxDiagram-shapeCardWithImageOnRight"),e}_updateEventSubscriptionMethods(){var{RenderHelper:t}=To();t.addEventListener=(e,i,r)=>{d.Z.on(e,i,r)},t.removeEventListener=(e,i,r)=>{d.Z.off(e,i,r)}}_updateDefaultItemProperties(){this.option("defaultItemProperties.style")&&this._diagramInstance.setInitialStyleProperties(this.option("defaultItemProperties.style")),this.option("defaultItemProperties.textStyle")&&this._diagramInstance.setInitialTextStyleProperties(this.option("defaultItemProperties.textStyle")),this._diagramInstance.setInitialConnectorProperties({lineOption:this._getConnectorLineOption(this.option("defaultItemProperties.connectorLineType")),startLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineStart")),endLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineEnd"))}),this._diagramInstance.applyShapeSizeSettings({shapeMinWidth:this.option("defaultItemProperties.shapeMinWidth"),shapeMaxWidth:this.option("defaultItemProperties.shapeMaxWidth"),shapeMinHeight:this.option("defaultItemProperties.shapeMinHeight"),shapeMaxHeight:this.option("defaultItemProperties.shapeMaxHeight")})}_updateEditingSettings(){this._diagramInstance.applyOperationSettings({addShape:this.option("editing.allowAddShape"),addShapeFromToolbox:this.option("editing.allowAddShape"),deleteShape:this.option("editing.allowDeleteShape"),deleteConnector:this.option("editing.allowDeleteConnector"),changeConnection:this.option("editing.allowChangeConnection"),changeConnectorPoints:this.option("editing.allowChangeConnectorPoints"),changeShapeText:this.option("editing.allowChangeShapeText"),changeConnectorText:this.option("editing.allowChangeConnectorText"),resizeShape:this.option("editing.allowResizeShape"),moveShape:this.option("editing.allowMoveShape")})}fitToContent(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.FitToScreen)}fitToWidth(){var{DiagramCommand:t}=To();this._executeDiagramCommand(t.FitToWidth)}focus(){this._captureFocus()}export(){return this._getDiagramData()}exportTo(t,e){var i=this._getDiagramExportToCommand(t);this._executeDiagramCommand(i,e)}_getDiagramExportToCommand(t){var{DiagramCommand:e}=To();switch(t){case"png":return e.ExportPng;case"jpg":return e.ExportJpg;default:return e.ExportSvg}}import(t,e){this._setDiagramData(t,e),this._raiseDataChangeAction()}updateToolbox(){this._diagramInstance&&this._diagramInstance.refreshToolbox(),this._toolbox&&(this._toolbox.updateTooltips(),this._toolbox.updateFilter(),this._toolbox.updateMaxHeight())}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{readOnly:!1,zoomLevel:1,simpleView:!1,autoZoomMode:DB,fullScreen:!1,showGrid:!0,snapToGrid:!0,units:"in",viewUnits:"in",pageOrientation:TB,pageColor:IB,hasChanges:!1,nodes:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,typeExpr:"type",textExpr:"text",imageUrlExpr:void 0,parentKeyExpr:void 0,itemsExpr:void 0,leftExpr:void 0,topExpr:void 0,widthExpr:void 0,heightExpr:void 0,containerKeyExpr:"containerKey",containerChildrenExpr:void 0,autoLayout:"auto",autoSizeEnabled:!0},edges:{dataSource:null,keyExpr:"id",customDataExpr:void 0,lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,fromExpr:"from",fromPointIndexExpr:void 0,toExpr:"to",toPointIndexExpr:void 0,pointsExpr:void 0,textExpr:void 0,lineTypeExpr:void 0,fromLineEndExpr:void 0,toLineEndExpr:void 0},customShapes:[],toolbox:{visibility:"auto",shapeIconsPerRow:3,showSearch:!0},mainToolbar:{visible:!1},historyToolbar:{visible:!0},viewToolbar:{visible:!0},contextMenu:{enabled:!0},contextToolbox:{enabled:!0,shapeIconsPerRow:4,width:152},propertiesPanel:{visibility:"auto"},defaultItemProperties:{connectorLineType:"orthogonal",connectorLineStart:"none",connectorLineEnd:"arrow"},editing:{allowAddShape:!0,allowDeleteShape:!0,allowDeleteConnector:!0,allowChangeConnection:!0,allowChangeConnectorPoints:!0,allowChangeShapeText:!0,allowChangeConnectorText:!0,allowResizeShape:!0,allowMoveShape:!0},export:{fileName:"Diagram"},onItemClick:null,onItemDblClick:null,onSelectionChanged:null,onRequestEditOperation:null,onRequestLayoutUpdate:null})}_raiseDataChangeAction(){this._initialized&&this.option("hasChanges",!0)}_raiseEdgeInsertedAction(t,e,i){this._edgesOption&&this._edgesOption.insert(t,e,i)}_raiseEdgeUpdatedAction(t,e,i,r){this._edgesOption&&this._edgesOption.update(t,e,i,r)}_raiseEdgeRemovedAction(t,e,i,r){this._edgesOption&&this._edgesOption.remove(t,e,i,r)}_raiseNodeInsertedAction(t,e,i){this._nodesOption&&this._nodesOption.insert(t,e,i)}_raiseNodeUpdatedAction(t,e,i,r){this._nodesOption&&this._nodesOption.update(t,e,i,r)}_raiseNodeRemovedAction(t,e,i,r){this._nodesOption&&this._nodesOption.remove(t,e,i,r)}_raiseToolboxDragStart(){this._toolbox&&this.isMobileScreenSize()&&(this._toolbox.hide(),this._toolboxDragHidden=!0)}_raiseToolboxDragEnd(){this._toolbox&&this._toolboxDragHidden&&(this._toolbox.show(),delete this._toolboxDragHidden)}_raiseTextInputStart(){this._textInputStarted=!0,this._propertiesPanel&&this.isMobileScreenSize()&&this._propertiesPanel.isVisible()&&(this._propertiesPanel.hide(),this._propertiesPanelTextInputHidden=!0),this._toolbox&&this.isMobileScreenSize()&&this._toolbox.isVisible()&&(this._toolbox.hide(),this._toolboxTextInputHidden=!0)}_raiseTextInputEnd(){this._propertiesPanel&&this._propertiesPanelTextInputHidden&&(this._propertiesPanel.show(),delete this._propertiesPanelTextInputHidden),this._toolbox&&this._toolboxTextInputHidden&&(this._toolbox.show(),delete this._toolboxTextInputHidden),this._textInputStarted=!1}_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_createItemDblClickAction(){this._itemDblClickAction=this._createActionByOption("onItemDblClick")}_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}_createRequestEditOperationAction(){this._requestEditOperationAction=this._createActionByOption("onRequestEditOperation")}_createRequestLayoutUpdateAction(){this._requestLayoutUpdateAction=this._createActionByOption("onRequestLayoutUpdate")}_createCustomCommand(){this._customCommandAction=this._createActionByOption("onCustomCommand")}_raiseItemClickAction(t){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(t)})}_raiseItemDblClickAction(t){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(t)})}_raiseSelectionChanged(t){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:t.map(this._nativeItemToDiagramItem.bind(this))})}_raiseRequestEditOperation(t,e){this._requestEditOperationAction||this._createRequestEditOperationAction();var i=this._getRequestEditOperationEventArgs(t,e);this._requestEditOperationAction(i),e.allowed=i.allowed}_getModelOperation(t){var{DiagramModelOperation:e}=To();switch(t){case e.AddShape:return"addShape";case e.AddShapeFromToolbox:return"addShapeFromToolbox";case e.DeleteShape:return"deleteShape";case e.DeleteConnector:return"deleteConnector";case e.ChangeConnection:return"changeConnection";case e.ChangeConnectorPoints:return"changeConnectorPoints";case e.BeforeChangeShapeText:return"beforeChangeShapeText";case e.ChangeShapeText:return"changeShapeText";case e.BeforeChangeConnectorText:return"beforeChangeConnectorText";case e.ChangeConnectorText:return"changeConnectorText";case e.ResizeShape:return"resizeShape";case e.MoveShape:return"moveShape"}}_getRequestEditOperationEventArgs(t,e){var{DiagramModelOperation:i,ConnectorPosition:r}=To(),m={operation:this._getModelOperation(t),allowed:e.allowed,updateUI:e.updateUI,reason:e.updateUI?"checkUIElementAvailability":"modelModification"};switch(t){case i.AddShape:m.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),position:e.position&&{x:e.position.x,y:e.position.y}};break;case i.AddShapeFromToolbox:m.args={shapeType:e.shapeType};break;case i.DeleteShape:m.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape)};break;case i.DeleteConnector:m.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector)};break;case i.ChangeConnection:m.args={newShape:e.shape&&this._nativeItemToDiagramItem(e.shape),oldShape:e.oldShape&&this._nativeItemToDiagramItem(e.oldShape),connector:e.connector&&this._nativeItemToDiagramItem(e.connector),connectionPointIndex:e.connectionPointIndex,connectorPosition:e.position===r.Begin?"start":"end"};break;case i.ChangeConnectorPoints:m.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),newPoints:e.points&&e.points.map(D=>({x:D.x,y:D.y})),oldPoints:e.oldPoints&&e.oldPoints.map(D=>({x:D.x,y:D.y}))};break;case i.BeforeChangeShapeText:m.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape)};break;case i.ChangeShapeText:m.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),text:e.text};break;case i.BeforeChangeConnectorText:m.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),index:e.index};break;case i.ChangeConnectorText:m.args={connector:e.connector&&this._nativeItemToDiagramItem(e.connector),index:e.index,text:e.text};break;case i.ResizeShape:m.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),newSize:e.size&&{width:e.size.width,height:e.size.height},oldSize:e.oldSize&&{width:e.oldSize.width,height:e.oldSize.height}};break;case i.MoveShape:m.args={shape:e.shape&&this._nativeItemToDiagramItem(e.shape),newPosition:e.position&&{x:e.position.x,y:e.position.y},oldPosition:e.oldPosition&&{x:e.oldPosition.x,y:e.oldPosition.y}}}return m}_nativeItemToDiagramItem(t){var{NativeShape:e}=To(),i=t instanceof e?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return(0,y.l)({id:t.id,key:t.key,dataItem:void 0},i(t))}_nativeShapeToDiagramShape(t){return{dataItem:this._nodesOption&&this._nodesOption.findItem(t.key),itemType:"shape",text:t.text,type:t.type,position:{x:t.position.x,y:t.position.y},size:{width:t.size.width,height:t.size.height},attachedConnectorIds:t.attachedConnectorIds,containerId:t.containerId,containerChildItemIds:t.containerChildItemIds,containerExpanded:t.containerExpanded}}_nativeConnectorToDiagramConnector(t){return{dataItem:this._edgesOption&&this._edgesOption.findItem(t.key),itemType:"connector",texts:t.texts,fromKey:t.fromKey,toKey:t.toKey,fromId:t.fromId,fromPointIndex:t.fromPointIndex,toId:t.toId,toPointIndex:t.toPointIndex,points:t.points.map(e=>({x:e.x,y:e.y}))}}getItemByKey(t){var e=this._diagramInstance&&this._diagramInstance.getNativeItemByDataKey(t);return e&&this._nativeItemToDiagramItem(e)}getItemById(t){var e=this._diagramInstance&&this._diagramInstance.getNativeItemByKey(t);return e&&this._nativeItemToDiagramItem(e)}getItems(){return this._diagramInstance.getNativeItems().map(t=>t&&this._nativeItemToDiagramItem(t))}getSelectedItems(){return this._diagramInstance.getNativeSelectedItems().map(t=>t&&this._nativeItemToDiagramItem(t))}setSelectedItems(t){return this._diagramInstance.setSelectedItems(t.map(e=>e.id))}scrollToItem(t){return this._diagramInstance.scrollToItems([t.id])}_invalidateContextMenuCommands(){this._contextMenu&&this._contextMenu.option({commands:this.option("contextMenu.commands")})}_invalidateMainToolbarCommands(){this._mainToolbar&&this._mainToolbar.option({commands:this.option("mainToolbar.commands")})}_invalidateHistoryToolbarCommands(){this._historyToolbar&&this._historyToolbar.option({commands:this.option("historyToolbar.commands")})}_invalidateViewToolbarCommands(){this._viewToolbar&&this._viewToolbar.option({commands:this.option("viewToolbar.commands")})}_invalidateToolboxGroups(){this._toolbox&&this._toolbox.option({toolboxGroups:this._getToolboxGroups()})}_optionChanged(t){if(this.optionsUpdateBar&&!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(t)}finally{this.optionsUpdateBar.endUpdate()}}}_optionChangedCore(t){switch(t.name){case"readOnly":case"disabled":this._updateReadOnlyState(),this._invalidate();break;case"zoomLevel":("zoomLevel"===t.fullName||"zoomLevel.items"===t.fullName||"zoomLevel.value"===t.fullName)&&this._updateZoomLevelState();break;case"autoZoomMode":this._updateAutoZoomState();break;case"simpleView":this._updateSimpleViewState();break;case"useNativeScrolling":case"contextToolbox":case"propertiesPanel":this._invalidate();break;case"fullScreen":this._updateFullscreenState();break;case"showGrid":this._updateShowGridState();break;case"snapToGrid":this._updateSnapToGridState();break;case"gridSize":("gridSize"===t.fullName||"gridSize.items"===t.fullName||"gridSize.value"===t.fullName)&&this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":("pageSize"===t.fullName||"pageSize.items"===t.fullName)&&this._updatePageSizeItemsState(),("pageSize"===t.fullName||"pageSize.width"===t.fullName||"pageSize.height"===t.fullName)&&this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":0===t.fullName.indexOf("nodes.autoLayout")?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":t.fullName!==t.name?this._updateAllCustomShapes():this._updateCustomShapes(t.value,t.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===t.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"toolbox":"toolbox.groups"===t.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"mainToolbar":"mainToolbar.commands"===t.fullName?this._invalidateMainToolbarCommands():this._invalidate();break;case"historyToolbar":"historyToolbar.commands"===t.fullName?this._invalidateHistoryToolbarCommands():this._invalidate();break;case"viewToolbar":"viewToolbar.commands"===t.fullName?this._invalidateViewToolbarCommands():this._invalidate();break;case"onItemClick":this._createItemClickAction();break;case"onItemDblClick":this._createItemDblClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onRequestEditOperation":this._createRequestEditOperationAction();break;case"onRequestLayoutUpdate":this._createRequestLayoutUpdateAction();break;case"onCustomCommand":this._createCustomCommand();break;case"defaultItemProperties":this._updateDefaultItemProperties();break;case"editing":this._updateEditingSettings();break;case"export":this._toolbars.forEach(e=>{e.option("export",this.option("export"))}),this._contextMenu&&this._contextMenu.option("export",this.option("export"));break;case"hasChanges":break;default:super._optionChanged(t)}}});let LB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.m$R,M.bHv,M.Q8p,M.JID,M.Obv,M.AUf,M.d0Q,M._hi,M.SCM,M.lj9,M.QKQ,M.erZ,M.QQ4,M.aXB,M.ukr,M.HM6,M.ck,M._9O,M.jyG,M.vl5,M.L6l,M.I3K,g.Lz,g.ie,p.Cu],M.m$R,M.bHv,M.Q8p,M.JID,M.Obv,M.AUf,M.d0Q,M._hi,M.SCM,M.lj9,M.QKQ,M.erZ,M.QQ4,M.aXB,M.ukr,M.HM6,M.ck,M._9O,M.jyG,M.vl5,M.L6l,M.I3K,g.ie]}),n})();var BB=u(130);let FB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ywL,g.Lz,g.ie,p.Cu],M.ywL,g.ie]}),n})();var sD=u(1880),A0={moveTo(n){var m,t=n.$element,e=n.position,r={};switch(n.direction||"left"){case"right":r.transform="translate("+e+"px, 0px)",m="custom";break;case"left":r.left=e,m="slide";break;case"top":case"bottom":r.top=e,m="slide"}h.Z.animate(t,{type:m,to:r,duration:n.duration,complete:n.complete})},margin(n){var t=n.$element,e=n.margin,r={};r["margin"+(0,je._A)(n.direction||"left",!0)]=e,h.Z.animate(t,{to:r,duration:n.duration,complete:n.complete})},fade(n,t,e,i){h.Z.animate(n,{type:"fade",to:t.to,from:t.from,duration:e,complete:i})},size(n){var t=n.$element,e=n.size,i=n.direction||"left",r=n.marginTop||0,m=n.duration,D={};"right"===i||"left"===i?D.width=e:D.height=e,"bottom"===i&&(D.marginTop=r),h.Z.animate(t,{to:D,duration:m,complete:n.complete})},complete(n){h.Z.stop(n,!0)}};const TA=class y5{constructor(t){this._drawer=t}getDrawerInstance(){return this._drawer}renderPanelContent(t){var e=this.getDrawerInstance(),i=e._getTemplate(e.option("template"));i&&i.render({container:e.content(),onRendered:()=>{t.resolve()}})}renderPosition(t,e){var i=new P.BH,r=new P.BH,m=this.getDrawerInstance();t&&P.gx.apply(l.Z,[i,r]).done(()=>{m._animationCompleteHandler()}),this._internalRenderPosition(t,i),t||m.resizeViewContent(),this.renderShaderVisibility(t,e,r)}_getPanelOffset(t){var e=this.getDrawerInstance(),i=e.isHorizontalDirection()?e.getRealPanelWidth():e.getRealPanelHeight();return t?-(i-e.getMaxSize()):-(i-e.getMinSize())}_getPanelSize(t){return t?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}renderShaderVisibility(t,e,i){var r=this.getDrawerInstance(),m=r.option("opened"),D=m?{from:0,to:1}:{from:1,to:0};t?A0.fade((0,l.Z)(r._$shader),D,e,()=>{this._drawer._toggleShaderVisibility(m),i.resolve()}):(r._toggleShaderVisibility(m),r._$shader.css("opacity",D.to))}getPanelContent(){return(0,l.Z)(this.getDrawerInstance().content())}setPanelSize(t){this.refreshPanelElementSize(t)}refreshPanelElementSize(t){var e=this.getDrawerInstance(),i=this._getPanelSize(e.option("opened"));e.isHorizontalDirection()?(0,s.cl)((0,l.Z)(e.content()),t?e.getRealPanelWidth():i):(0,s.QQ)((0,l.Z)(e.content()),t?e.getRealPanelHeight():i)}isViewContentFirst(){return!1}onPanelContentRendered(){}};var Ms=u(6961);const VB=class C5 extends TA{_internalRenderPosition(t,e){var i=this.getDrawerInstance(),r=this._getPanelSize(!0),m=this._getPanelSize(i.option("opened"))*i._getPositionCorrection();if((0,l.Z)(i.content()).css(i.isHorizontalDirection()?"width":"height",r),i.getMinSize()){var D="padding";switch(i.calcTargetPosition()){case"left":D+="Right";break;case"right":D+="Left";break;case"top":D+="Bottom";break;case"bottom":D+="Top"}(0,l.Z)(i.viewContent()).css(D,i.getMinSize())}t?A0.moveTo({$element:(0,l.Z)(i.viewContent()),position:m,direction:i.calcTargetPosition(),duration:i.option("animationDuration"),complete:()=>{e.resolve()}}):i.isHorizontalDirection()?(0,Ms.pB)((0,l.Z)(i.viewContent()),{left:m}):(0,Ms.pB)((0,l.Z)(i.viewContent()),{top:m})}onPanelContentRendered(){(0,l.Z)(this.getDrawerInstance().viewContent()).addClass("dx-theme-background-color")}},b5=class x5 extends TA{_internalRenderPosition(t,e){var i=this.getDrawerInstance(),r=i.calcTargetPosition(),m=(0,l.Z)(i.content()),D=this._getPanelSize(i.option("opened")),A=this._getPanelOffset(i.option("opened")),N=i.option("revealMode");t?"slide"===N?A0.margin({complete:()=>{e.resolve()},$element:m,duration:i.option("animationDuration"),direction:r,margin:A}):"expand"===N&&A0.size({complete:()=>{e.resolve()},$element:m,duration:i.option("animationDuration"),direction:r,size:D}):"slide"===N?m.css("margin"+(0,je._A)(r,!0),A):"expand"===N&&m.css(i.isHorizontalDirection()?"width":"height",D)}isViewContentFirst(t,e){return(e?"left"===t:"right"===t)||"bottom"===t}},E5=class w5 extends TA{renderPanelContent(t){delete this._initialPosition;var e=this.getDrawerInstance(),{opened:i,minSize:r}=e.option();e._overlay=e._createComponent(e.content(),tD.Z,{shading:!1,container:e.content(),visualContainer:e.getOverlayTarget(),position:this._getOverlayPosition(),width:i?"auto":r||0,height:"100%",templatesRenderAsynchronously:e.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(m){this._fixOverlayPosition(m.component.$content())}.bind(this),contentTemplate:e.option("template"),onContentReady:m=>{t.resolve(),this._processOverlayZIndex(m.component.content())},visible:!0,propagateOutsideClick:!0})}_fixOverlayPosition(t){var e=(0,E.IS)(this._initialPosition,{left:0,top:0});(0,Ms.pB)(t,e),"right"===this.getDrawerInstance().calcTargetPosition()&&t.css("left","auto"),"bottom"===this.getDrawerInstance().calcTargetPosition()&&(t.css("top","auto"),t.css("bottom","0px"))}_getOverlayPosition(){var t=this.getDrawerInstance(),e=t.calcTargetPosition(),i={};switch(e){case"left":i={my:"top left",at:"top left"};break;case"right":i={my:t.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":i={my:e,at:e}}return i.of=t.getOverlayTarget(),i}refreshPanelElementSize(t){var e=this.getDrawerInstance(),i=e.getOverlay();e.isHorizontalDirection()?(i.option("height","100%"),i.option("width",t?e.getRealPanelWidth():this._getPanelSize(e.option("opened")))):(i.option("width",(0,s.dz)(e.getOverlayTarget())),i.option("height",t?e.getRealPanelHeight():this._getPanelSize(e.option("opened"))))}onPanelContentRendered(){this._updateViewContentStyles()}_updateViewContentStyles(){var t=this.getDrawerInstance();(0,l.Z)(t.viewContent()).css("padding"+(0,je._A)(t.calcTargetPosition(),!0),t.option("minSize")),(0,l.Z)(t.viewContent()).css("transform","inherit")}_internalRenderPosition(t,e){var i=this.getDrawerInstance(),r=(0,l.Z)(i.content()),m=i.getOverlay().$content(),D=i.option("revealMode"),A=i.calcTargetPosition(),N=this._getPanelSize(i.option("opened")),Q=this._getPanelOffset(i.option("opened"))*i._getPositionCorrection(),se=i.getRealPanelHeight()-N;this._updateViewContentStyles(),t?"slide"===D?(this._initialPosition=i.isHorizontalDirection()?{left:Q}:{top:Q},A0.moveTo({complete:()=>{e.resolve()},duration:i.option("animationDuration"),direction:A,$element:r,position:Q})):"expand"===D&&(this._initialPosition={left:0},(0,Ms.pB)(m,this._initialPosition),A0.size({complete:()=>{e.resolve()},duration:i.option("animationDuration"),direction:A,$element:m,size:N,marginTop:se})):"slide"===D?(this._initialPosition=i.isHorizontalDirection()?{left:Q}:{top:Q},(0,Ms.pB)(r,this._initialPosition)):"expand"===D&&(this._initialPosition={left:0},(0,Ms.pB)(m,this._initialPosition),i.isHorizontalDirection()?(0,l.Z)(m).css("width",N):((0,l.Z)(m).css("height",N),"bottom"===A&&(0,l.Z)(m).css("marginTop",se)))}getPanelContent(){return(0,l.Z)(this.getDrawerInstance().getOverlay().content())}_processOverlayZIndex(t){var i=(0,l.Z)(t).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(i)}isViewContentFirst(t){return"right"===t||"bottom"===t}};var P0="dx-drawer",NB="dx-drawer-panel-content",HB="dx-drawer-shader",zB="dx-state-invisible",IA="content",UB=ca.Z.inherit({_getDefaultOptions(){return(0,y.l)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:IA})},_init(){this.callBase(),this._initStrategy(),this.$element().addClass(P0),this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=(0,l.Z)("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=(0,l.Z)("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$viewContentWrapper),this.$element().append(this._$wrapper)},_initStrategy(){switch(this.option("openedStateMode")){case"push":default:this._strategy=new VB(this);break;case"shrink":this._strategy=new b5(this);break;case"overlap":this._strategy=new E5(this)}},_getAnonymousTemplateName:function(){return IA},_initTemplates(){var n={};n.panel=new sD.s,n[IA]=new sD.s,this._templateManager.addDefaultTemplates(n),this.callBase()},_viewContentWrapperClickHandler(n){var t=this.option("closeOnOutsideClick");(0,w.mf)(t)&&(t=t(n)),t&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&n.preventDefault(),this.hide())},_initMarkup(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._refreshPositionClass(),this._whenPanelContentRendered=new P.BH,this._strategy.renderPanelContent(this._whenPanelContentRendered),this._strategy.onPanelContentRendered(),this._renderViewContent(),d.Z.off(this._$viewContentWrapper,v.u),d.Z.on(this._$viewContentWrapper,v.u,this._viewContentWrapperClickHandler.bind(this)),this._refreshWrapperChildrenOrder()},_render(){this._initMinMaxSize(),this.callBase(),this._whenPanelContentRendered.always(()=>{this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")||!this.isHorizontalDirection()),this._renderPosition(this.option("opened"),!0),this._removePanelManualPosition()})},_removePanelManualPosition(){this._$panelContentWrapper.attr("manualposition")&&(this._$panelContentWrapper.removeAttr("manualPosition"),this._$panelContentWrapper.css({position:"",top:"",left:"",right:"",bottom:""}))},_renderPanelContentWrapper(){this._$panelContentWrapper=(0,l.Z)("<div>").addClass(NB);var n=this.calcTargetPosition();"push"===this.option("openedStateMode")&&["top","bottom"].indexOf(n)>-1&&this._$panelContentWrapper.addClass(NB+"-push-top-or-bottom"),"overlap"!==this.option("openedStateMode")&&!this.option("opened")&&!this.option("minSize")&&(this._$panelContentWrapper.attr("manualposition",!0),this._$panelContentWrapper.css({position:"absolute",top:"-10000px",left:"-10000px",right:"auto",bottom:"auto"})),this._$wrapper.append(this._$panelContentWrapper)},_refreshOpenedStateModeClass(n){n&&this.$element().removeClass(P0+"-"+n),this.$element().addClass(P0+"-"+this.option("openedStateMode"))},_refreshPositionClass(n){n&&this.$element().removeClass(P0+"-"+n),this.$element().addClass(P0+"-"+this.calcTargetPosition())},_refreshWrapperChildrenOrder(){var n=this.calcTargetPosition();this._strategy.isViewContentFirst(n,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass(n){n&&this.$element().removeClass(P0+"-"+n),this.$element().addClass(P0+"-"+this.option("revealMode"))},_renderViewContent(){var n=this.option("contentTemplate"),t=this._getTemplate(n);if(t){var e=t.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===n});e.hasClass("ng-scope")&&(0,l.Z)(this._$viewContentWrapper).children().not(".".concat(HB)).replaceWith(e)}},_renderShader(){this._$shader=this._$shader||(0,l.Z)("<div>").addClass(HB),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize(){this._initMinMaxSize()},_initMinMaxSize(){var n=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||n,this._minSize=this.option("minSize")||0},calcTargetPosition(){var n=this.option("position"),t=this.option("rtlEnabled"),e=n;return"before"===n?e=t?"right":"left":"after"===n&&(e=t?"left":"right"),e},getOverlayTarget(){return this._$wrapper},getOverlay(){return this._overlay},getMaxSize(){return this._maxSize},getMinSize(){return this._minSize},getRealPanelWidth(){return(0,mi.Ym)()?(0,w.$K)(this.option("templateSize"))?this.option("templateSize"):(0,Yo.l)(this._getPanelTemplateElement()).width:0},getRealPanelHeight(){return(0,mi.Ym)()?(0,w.$K)(this.option("templateSize"))?this.option("templateSize"):(0,Yo.l)(this._getPanelTemplateElement()).height:0},_getPanelTemplateElement(){var n=this._strategy.getPanelContent(),t=n;return n.children().length&&(t=n.children().eq(0),n.hasClass("dx-overlay-content")&&t.hasClass("dx-template-wrapper")&&t.children().length&&(t=t.children().eq(0))),t.get(0)},getElementHeight(n){var t=n.children();return t.length?(0,Yo.l)(t.eq(0).get(0)).height:(0,Yo.l)(n.get(0)).height},isHorizontalDirection(){var n=this.calcTargetPosition();return"left"===n||"right"===n},stopAnimations(n){h.Z.stop(this._$shader,n),h.Z.stop((0,l.Z)(this.content()),n),h.Z.stop((0,l.Z)(this.viewContent()),n);var t=this.getOverlay();t&&h.Z.stop((0,l.Z)(t.$content()),n)},setZIndex(n){this._$shader.css("zIndex",n-1),this._$panelContentWrapper.css("zIndex",n)},resizeContent(){},resizeViewContent(){(0,Db.U_)(this.viewContent())},_isInvertedPosition(){var n=this.calcTargetPosition();return"right"===n||"bottom"===n},_renderPosition(n,t,e){if(this.stopAnimations(e),(0,mi.Ym)()){(0,l.Z)(this.viewContent()).css("paddingLeft",0),(0,l.Z)(this.viewContent()).css("paddingRight",0),(0,l.Z)(this.viewContent()).css("paddingTop",0),(0,l.Z)(this.viewContent()).css("paddingBottom",0);var i=this.option("animationEnabled");!0===t&&(i=!1),n&&this._toggleShaderVisibility(n),this._strategy.renderPosition(i,this.option("animationDuration"))}},_animationCompleteHandler(){this.resizeViewContent(),this._whenAnimationCompleted&&this._whenAnimationCompleted.resolve()},_getPositionCorrection(){return this._isInvertedPosition()?-1:1},_dispose(){A0.complete((0,l.Z)(this.viewContent())),this.callBase()},_visibilityChanged(n){n&&this._dimensionChanged()},_dimensionChanged(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0)},_toggleShaderVisibility(n){this.option("shading")?(this._$shader.toggleClass(zB,!n),this._$shader.css("visibility",n?"visible":"hidden")):this._$shader.toggleClass(zB,!0)},_toggleOpenedStateClass(n){this.$element().toggleClass("dx-drawer-opened",n)},_refreshPanel(){(0,l.Z)(this.viewContent()).css("left",0),(0,l.Z)(this.viewContent()).css("transform","translate(0px, 0px)"),(0,l.Z)(this.viewContent()).removeClass("dx-theme-background-color"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=new P.BH,this._strategy.renderPanelContent(this._whenPanelContentRefreshed),this._strategy.onPanelContentRendered(),(0,mi.Ym)()&&this._whenPanelContentRefreshed.always(()=>{this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!0,!0),this._removePanelManualPosition()})},_clean(){this._cleanFocusState(),this._removePanelContentWrapper(),this._removeOverlay()},_removePanelContentWrapper(){this._$panelContentWrapper&&this._$panelContentWrapper.remove()},_removeOverlay(){this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panelContentWrapper)},_optionChanged(n){switch(n.name){case"width":this.callBase(n),this._dimensionChanged();break;case"opened":this._renderPosition(this.option("opened")),this._toggleOpenedStateClass(n.value);break;case"position":this._refreshPositionClass(n.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":this._initStrategy(),this._refreshOpenedStateModeClass(n.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!0);break;case"revealMode":this._refreshRevealModeClass(n.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(n)}},content(){return(0,S.u)(this._$panelContentWrapper)},viewContent(){return(0,S.u)(this._$viewContentWrapper)},show(){return this.toggle(!0)},hide(){return this.toggle(!1)},toggle(n){var t=void 0===n?!this.option("opened"):n;return this._whenAnimationCompleted=new P.BH,this.option("opened",t),this._whenAnimationCompleted.promise()}});(0,T.Z)("dxDrawer",UB);const MA=UB;let ZB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();var M5=u(4694),lD=u(5442),A5=u(7),P5=u(7320),k5=u(114),R5=b.Z.getActiveElement,uD="content",KB=x.Z.real(),GB=M5.Z.inherit({_supportedKeys:function(){return(0,y.l)({},this.callBase(),{tab:function(n){if(this.option("opened")){var t=this._getTabbableElements(),e=n.shiftKey?t.last():t.first();e&&d.Z.trigger(e,"focus"),n.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(A5.ht)},_getElements:function(){return(0,l.Z)(this.content()).find("*")},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{acceptCustomValue:!1,contentTemplate:uD,openOnFieldClick:!0,displayValueFormatter:function(n){return Array.isArray(n)?n.join(", "):n},useHiddenSubmitElement:!0})},_getAnonymousTemplateName:function(){return uD},_initTemplates:function(){this.callBase()},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue:function(){var n=this.option("value"),t=this._shouldUseDisplayValue(n)?this._displayGetter(n):n;this._getSubmitElement().val(t)},_shouldUseDisplayValue:function(n){return"this"===this.option("valueExpr")&&(0,w.Kn)(n)},_renderInputValue:function(){this._rejectValueLoading();var n=[];if(!this._dataSource)return this.callBase(n),(new P.BH).resolve();var e=this._getCurrentValue()??[];e=Array.isArray(e)?e:[e];var i=(0,O.UI)(e,m=>{var D=new P.BH;return this._loadItem(m).always(A=>{var N=this._displayGetter(A);(0,w.$K)(N)?n.push(N):this.option("acceptCustomValue")&&n.push(m),D.resolve()}),D}),r=this.callBase.bind(this);return P.gx.apply(this,i).always(()=>{this.option("displayValue",n),r(n.length&&n)})},_loadItem:function(n){var t=new P.BH,e=this,i=(0,E.h3)(this.option("items")||[],function(r){return this._isValueEquals(this._valueGetter(r),n)}.bind(this))[0];return void 0!==i?t.resolve(i):this._loadValue(n).done(function(r){t.resolve(r)}).fail(function(r){null!=r&&r.shouldSkipCallback||(e.option("acceptCustomValue")?t.resolve(n):t.reject())}),t.promise()},_popupElementTabHandler:function(n){if("tab"===(0,k.EV)(n)){var t=this._getTabbableElements().first().get(0),e=this._getTabbableElements().last().get(0),i=n.originalEvent.target,r=!(i!==t||!n.shift);(r||i===e&&!n.shift)&&(this.close(),d.Z.trigger(this._input(),"focus"),r&&n.originalEvent.preventDefault())}},_renderPopup:function(n){this.callBase(),this.option("focusStateEnabled")&&k5.dG.on(this.content(),null,t=>this._popupElementTabHandler(t))},_renderPopupContent:function(){if(this.option("contentTemplate")!==uD){var n=this._getTemplateByOption("contentTemplate");if(n&&this.option("contentTemplate")){var t=this._popup.$content(),e={value:this._fieldRenderData(),component:this};t.empty(),n.render({container:(0,S.u)(t),model:e})}}},_canShowVirtualKeyboard:function(){return KB.mac},_isNestedElementActive:function(){var n=R5();return n&&this._popup.$content().get(0).contains(n)},_shouldHideOnParentScroll:function(){return"desktop"===KB.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler:function(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler:function(n){this.callBase(n),this._popupPosition=n.position},_getDefaultPopupPosition:function(n){var{my:t,at:e}=this.callBase(n);return{my:t,at:e,offset:{v:-1},collision:"flipfit"}},_popupConfig:function(){var{focusStateEnabled:n}=this.option();return(0,y.l)(this.callBase(),{tabIndex:-1,dragEnabled:!1,focusStateEnabled:n,contentTemplate:uD,hideOnParentScroll:this._shouldHideOnParentScroll.bind(this),position:(0,y.l)(this.option("popupPosition"),{of:this.$element()}),onKeyboardHandled:t=>this.option("focusStateEnabled")&&this._popupElementTabHandler(t),_ignoreFunctionValueDeprecation:!0,maxHeight:function(){var t,e=null===(t=this._popupPosition)||void 0===t?void 0:t.v.location;return(0,P5._)(this.$element(),e)}.bind(this)})},_popupShownHandler:function(){this.callBase();var n=this._getTabbableElements().first();d.Z.trigger(n,"focus")},_setCollectionWidgetOption:E.ZT,_optionChanged:function(n){switch(this._dataExpressionOptionChanged(n),n.name){case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",n.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(n)}}}).include(lD.Z);(0,T.Z)("dxDropDownBox",GB);const B5=GB,F5=["*"],V5={provide:ne.JU,useExisting:(0,a.Gpc)(()=>N5),multi:!0};let N5=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"contentTemplateChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueFormatterChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxLengthChange"},{emit:"nameChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showDropDownButtonChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get contentTemplate(){return this._getOption("contentTemplate")}set contentTemplate(e){this._setOption("contentTemplate",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get displayValueFormatter(){return this._getOption("displayValueFormatter")}set displayValueFormatter(e){this._setOption("displayValueFormatter",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new B5(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-drop-down-box"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.k4o,4),a.Suo(r,M.ZT3,4)),2&e){let m;a.iGM(m=a.CRH())&&(i.buttonsChildren=m),a.iGM(m=a.CRH())&&(i.itemsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",contentTemplate:"contentTemplate",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValueFormatter:"displayValueFormatter",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",label:"label",labelMode:"labelMode",maxLength:"maxLength",name:"name",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showDropDownButton:"showDropDownButton",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onChange:"onChange",onClosed:"onClosed",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",contentTemplateChange:"contentTemplateChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueFormatterChange:"displayValueFormatterChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxLengthChange:"maxLengthChange",nameChange:"nameChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showDropDownButtonChange:"showDropDownButtonChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,V5,g.al,g.i9]),a.qOj,a.TTD],ngContentSelectors:F5,decls:1,vars:0,template:function(e,i){1&e&&(a.F$t(),a.Hsn(0))},encapsulation:2}),n})(),jB=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.Lz,g.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.ie]}),n})();u(854);let $B=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.Lz,g.ie,p.Cu],M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.ie]}),n})();var z5=u(1007),AA=function(n,t,e){t=t||E.ZT,e=e||E.ZT,Array.isArray(n)||(n=[n]);var i=n.map((r,m)=>(0,P.gx)(r).then(D=>((0,w.mf)(t)&&t({item:r,index:m,result:D}),D),D=>(D||(D={}),D.index=m,(0,w.mf)(e)&&e(D),(new P.BH).resolve().promise())));return P.gx.apply(null,i)},YB=function(n){for(var t=["B","KB","MB","GB","TB"],e=0,i=n;i>=1024&&e<=t.length-1;)i/=1024,e++;return i=Math.round(10*i)/10,"".concat(i," ").concat(t[e])},k0=function(n,t,e){return e.forEach(i=>{(0,y.l)(!0,n,(0,w.$K)(t[i])?{[i]:t[i]}:{})}),n},XB=function(n){var t=Object.keys(n),e=[];return t.forEach(i=>e.push(n[i])),{keys:t,values:e}},qB=n=>{var t=n.lastIndexOf(".");return-1!==t?n.substr(t):""},JB=n=>{var t=n.lastIndexOf("/");return-1!==t?n.substr(t+"/".length):n},QB=(n,t)=>{if(!n||"/"===n)return[];for(var e=[],i="",r=0;r<n.length;r++){var m=n.charAt(r);if("/"===m){var D=n.charAt(r+1);"/"!==D&&(i&&(e.push(i),i=""),m=D),r++}i+=m}if(i&&e.push(i),t)for(var A=0;A<e.length;A++)e[A]=yh(0===A?"":e[A-1],PA(e[A]));return e},PA=function(n){return n.replace(/\/{1,1}/g,"//")},yh=function(){var n="";return(0,O.S6)(arguments,(t,e)=>{e&&(n&&(n+="/"),n+=e)}),n};class kA{constructor(){((0,w.HD)(arguments[0])?this._publicCtor:this._internalCtor).apply(this,arguments)}_internalCtor(t,e,i,r){this.name=e||"",this.pathInfo=t&&[...t]||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.relativeName=yh(this.parentPath,e),this.key=r||this._getPathByPathInfo(this.getFullPathInfo(),!0),this.path=yh(this.parentPath,e),this.pathKeys=this.pathInfo.map(m=>{var{key:D}=m;return D}),this.isRoot()||this.pathKeys.push(this.key),this._initialize(i)}_publicCtor(t,e,i){this.path=t||"",this.pathKeys=i||[];for(var r=[],m=QB(t,!0),D=0;D<m.length-1;D++){var A=m[D],N={key:this.pathKeys[D]||A,name:JB(A)};r.push(N)}this.pathInfo=r,this.relativeName=t,this.name=JB(t),this.key=this.pathKeys.length?this.pathKeys[this.pathKeys.length-1]:t,this.parentPath=m.length>1?m[m.length-2]:"",this._initialize(e)}_initialize(t){this.isDirectory=!!t,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}getFullPathInfo(){var t=[...this.pathInfo];return this.isRoot()||t.push({key:this.key,name:this.name}),t}isRoot(){return""===this.path}getFileExtension(){return this.isDirectory?"":qB(this.name)}equals(t){return t&&this.key===t.key}createClone(){var t=new kA(this.pathInfo,this.name,this.isDirectory,this.key);return t.key=this.key,t.size=this.size,t.dateModified=this.dateModified,t.thumbnail=this.thumbnail,t.tooltipText=this.tooltipText,t.hasSubDirectories=this.hasSubDirectories,t.dataItem=this.dataItem,t}_getPathByPathInfo(t,e){return t.map(i=>e?PA(i.name):i.name).join("/")}}const dD=kA,cD=class Z5{constructor(t){t=(0,E.IS)(t,{}),this._keyGetter=(0,Go.vb)(this._getKeyExpr(t)),this._nameGetter=(0,Go.vb)(this._getNameExpr(t)),this._isDirGetter=(0,Go.vb)(this._getIsDirExpr(t)),this._sizeGetter=(0,Go.vb)(this._getSizeExpr(t)),this._dateModifiedGetter=(0,Go.vb)(this._getDateModifiedExpr(t)),this._thumbnailGetter=(0,Go.vb)(t.thumbnailExpr||"thumbnail")}getItems(t){return[]}renameItem(t,e){}createDirectory(t,e){}deleteItems(t){}moveItems(t,e){}copyItems(t,e){}uploadFileChunk(t,e,i){}abortFileUpload(t,e,i){}downloadItems(t){}getItemsContent(t){}getFileUploadChunkSize(){return 2e5}_convertDataObjectsToFileItems(t,e){var i=[];return(0,O.S6)(t,(r,m)=>{var D=this._createFileItem(m,e);i.push(D)}),i}_createFileItem(t,e){var i=this._keyGetter(t),r=new dD(e,this._nameGetter(t),!!this._isDirGetter(t),i);return r.size=this._sizeGetter(t),void 0===r.size&&(r.size=0),r.dateModified=xs.Z.deserializeDate(this._dateModifiedGetter(t)),void 0===r.dateModified&&(r.dateModified=new Date),r.isDirectory&&(r.hasSubDirectories=this._hasSubDirs(t)),i||(r.key=r.relativeName),r.thumbnail=this._thumbnailGetter(t)||"",r.dataItem=t,r}_hasSubDirs(t){return!0}_getKeyExpr(t){return t.keyExpr||this._defaultKeyExpr}_defaultKeyExpr(t){if(2!==arguments.length)return Object.prototype.hasOwnProperty.call(t,"__KEY__")?t.__KEY__:null;t.__KEY__=arguments[1]}_getNameExpr(t){return t.nameExpr||"name"}_getIsDirExpr(t){return t.isDirectoryExpr||"isDirectory"}_getSizeExpr(t){return t.sizeExpr||"size"}_getDateModifiedExpr(t){return t.dateModifiedExpr||"dateModified"}_executeActionAsDeferred(t,e){var i=new P.BH;try{var r=t();(0,w.tI)(r)?(0,P.p4)(r).done(m=>i.resolve(e&&m||void 0)).fail(m=>i.reject(m)):i.resolve(e&&r||void 0)}catch(m){return i.reject(m)}return i.promise()}};var Mb=u(6051),K5=u(7586),eF=u.n(K5);const Ab=class G5{constructor(t,e,i){this.errorCode=t,this.fileSystemItem=e,this.errorText=i}},Ol_NoAccess=0,Ol_FileExists=1,Ol_FileNotFound=2,Ol_DirectoryExists=3,Ol_DirectoryNotFound=4,Ol_WrongFileExtension=5,Ol_MaxFileSizeExceeded=6,Ol_InvalidSymbols=7,Ol_Other=32767;var RA=(0,mi.Jj)();const tF=class $5 extends cD{constructor(t){super(t=(0,E.IS)(t,{}));var e=t.data;if(e&&!Array.isArray(e))throw Mb.R0.Error("E4006");var i=t.itemsExpr||"items";this._subFileItemsGetter=(0,Go.vb)(i),this._subFileItemsSetter=this._getSetter(i);var r=t.contentExpr||"content";this._contentGetter=(0,Go.vb)(r),this._contentSetter=this._getSetter(r);var m=this._getNameExpr(t);this._nameSetter=this._getSetter(m);var D=this._getIsDirExpr(t);this._getIsDirSetter=this._getSetter(D);var A=this._getKeyExpr(t);this._keySetter=this._getSetter(A);var N=this._getSizeExpr(t);this._sizeSetter=this._getSetter(N);var Q=this._getDateModifiedExpr(t);this._dateModifiedSetter=this._getSetter(Q),this._data=e||[]}getItems(t){return this._executeActionAsDeferred(()=>this._getItems(t),!0)}renameItem(t,e){return this._executeActionAsDeferred(()=>this._renameItemCore(t,e))}_renameItemCore(t,e){if(t){var i=this._findDataObject(t);this._nameSetter(i,e),t.name=e,t.key=this._ensureDataObjectKey(i)}}createDirectory(t,e){return this._executeActionAsDeferred(()=>{this._validateDirectoryExists(t),this._createDataObject(t,e,!0)})}deleteItems(t){return t.map(e=>this._executeActionAsDeferred(()=>this._deleteItem(e)))}moveItems(t,e){var i=this._findDataObject(e),r=this._getDirectoryDataItems(i);return t.map(D=>this._executeActionAsDeferred(()=>{this._checkAbilityToMoveOrCopyItem(D,e);var A=this._findDataObject(D);this._deleteItem(D),r.push(A)}))}copyItems(t,e){var i=this._findDataObject(e),r=this._getDirectoryDataItems(i);return t.map(D=>this._executeActionAsDeferred(()=>{this._checkAbilityToMoveOrCopyItem(D,e);var A=this._findDataObject(D),N=this._createCopy(A);r.push(N)}))}uploadFileChunk(t,e,i){if(e.chunkIndex>0)return e.customData.deferred;this._validateDirectoryExists(i);var r=e.customData.deferred=new P.BH,m=this._createFileReader();return m.readAsDataURL(t),m.onload=()=>{var D=m.result.split(",")[1],A=this._createDataObject(i,t.name,!1);this._sizeSetter(A,t.size),this._dateModifiedSetter(A,t.lastModifiedDate),this._contentSetter(A,D),r.resolve()},m.onerror=D=>r.reject(D),r}downloadItems(t){1===t.length?this._downloadSingleFile(t[0]):this._downloadMultipleFiles(t)}_downloadSingleFile(t){for(var e=this._getFileContent(t),i=RA.atob(e),r=new ArrayBuffer(i.length),m=new Uint8Array(r),D=0;D<i.length;D++)m[D]=i.charCodeAt(D);var A=new RA.Blob([r],{type:"application/octet-stream"});SA.A.saveAs(t.name,null,A)}_downloadMultipleFiles(t){var i=new(function Y5(){if(!eF())throw Hs.Z.Error("E1041","JSZip");return eF()}());t.forEach(D=>i.file(D.name,this._getFileContent(D),{base64:!0}));var r={type:"blob",compression:"DEFLATE",mimeType:"application/zip"},m=new P.BH;i.generateAsync?i.generateAsync(r).then(m.resolve):m.resolve(i.generate(r)),m.done(D=>SA.A.saveAs("files.zip",null,D))}_getFileContent(t){var e=this._findDataObject(t);return this._contentGetter(e)||""}_validateDirectoryExists(t){if(!this._isFileItemExists(t)||this._isDirGetter(t.fileItem))throw new Ab(Ol_DirectoryNotFound,t)}_checkAbilityToMoveOrCopyItem(t,e){var i=this._findDataObject(t),r=this._getKeyFromDataObject(i,t.parentPath),m=e.getFullPathInfo(),D="";m.forEach(A=>{if(D=yh(D,A.name),this._getDataObjectKey(A.key,D)===r)throw new Ab(Ol_Other,t)})}_createDataObject(t,e,i){var r={};this._nameSetter(r,e),this._getIsDirSetter(r,i),this._keySetter(r,String(new vh.Z));var m=this._findDataObject(t);return this._getDirectoryDataItems(m).push(r),r}_createCopy(t){var e={};this._nameSetter(e,this._nameGetter(t)),this._getIsDirSetter(e,this._isDirGetter(t));var i=this._subFileItemsGetter(t);if(Array.isArray(i)){var r=[];i.forEach(m=>{var D=this._createCopy(m);r.push(D)}),this._subFileItemsSetter(e,r)}return e}_deleteItem(t){var e=this._findDataObject(t),i=this._findFileItemObj(t.pathInfo),r=this._getDirectoryDataItems(i),m=r.indexOf(e);r.splice(m,1)}_getDirectoryDataItems(t){if(!t)return this._data;var e=this._subFileItemsGetter(t);return Array.isArray(e)||this._subFileItemsSetter(t,e=[]),e}_getItems(t){this._validateDirectoryExists(t);var e=t.getFullPathInfo(),r=this._data;if(e&&e.length>0&&e[e.length-1].key){var m=this._findFileItemObj(e);r=m&&this._subFileItemsGetter(m)||[]}return this._ensureKeysForDuplicateNameItems(r),this._convertDataObjectsToFileItems(r,e)}_ensureKeysForDuplicateNameItems(t){var e={};t.forEach(i=>{var r=this._nameGetter(i);e[r]?this._ensureDataObjectKey(i):e[r]=!0})}_findDataObject(t){if(t.isRoot())return null;var e=this._findFileItemObj(t.getFullPathInfo());if(!e)throw new Ab(t.isDirectory?Ol_DirectoryNotFound:Ol_FileNotFound,t);return e}_findFileItemObj(t){var e=this;Array.isArray(t)||(t=[]);for(var i="",r=null,m=this._data,D=function(N){(r=m.find(Q=>{var se=e._isDirGetter(Q)||N===t.length-1;return e._getKeyFromDataObject(Q,i)===t[N].key&&e._nameGetter(Q)===t[N].name&&se}))&&(i=yh(i,e._nameGetter(r)),m=e._subFileItemsGetter(r))},A=0;A<t.length&&(0===A||r);A++)D(A);return r}_getKeyFromDataObject(t,e){var i=this._keyGetter(t),r=yh(e,this._nameGetter(t));return this._getDataObjectKey(i,r)}_getDataObjectKey(t,e){return t||e}_ensureDataObjectKey(t){var e=this._keyGetter(t);return e||(e=String(new vh.Z),this._keySetter(t,e)),e}_hasSubDirs(t){var e=(0,E.IS)(this._subFileItemsGetter(t),[]);if(!Array.isArray(e))return!0;for(var i=0;i<e.length;i++)if(!0===this._isDirGetter(e[i]))return!0;return!1}_getSetter(t){return(0,w.mf)(t)?t:(0,Go.OM)(t)}_isFileItemExists(t){return t.isDirectory&&t.isRoot()||!!this._findFileItemObj(t.getFullPathInfo())}_createFileReader(){return new RA.FileReader}};var Qv=u(9800),X5=(0,mi.Jj)();const Q5=class J5 extends cD{constructor(t){super(t=(0,E.IS)(t,{})),this._endpointUrl=t.endpointUrl,this._beforeAjaxSend=t.beforeAjaxSend,this._beforeSubmit=t.beforeSubmit,this._requestHeaders=t.requestHeaders,this._hasSubDirsGetter=(0,Go.vb)(t.hasSubDirectoriesExpr||"hasSubDirectories")}getItems(t){var e=t.getFullPathInfo();return this._executeRequest("GetDirContents",{pathInfo:e}).then(i=>this._convertDataObjectsToFileItems(i.result,e))}renameItem(t,e){return this._executeRequest("Rename",{pathInfo:t.getFullPathInfo(),isDirectory:t.isDirectory,name:e})}createDirectory(t,e){return this._executeRequest("CreateDir",{pathInfo:t.getFullPathInfo(),name:e})}deleteItems(t){return t.map(e=>this._executeRequest("Remove",{pathInfo:e.getFullPathInfo(),isDirectory:e.isDirectory}))}moveItems(t,e){return t.map(i=>this._executeRequest("Move",{sourcePathInfo:i.getFullPathInfo(),sourceIsDirectory:i.isDirectory,destinationPathInfo:e.getFullPathInfo()}))}copyItems(t,e){return t.map(i=>this._executeRequest("Copy",{sourcePathInfo:i.getFullPathInfo(),sourceIsDirectory:i.isDirectory,destinationPathInfo:e.getFullPathInfo()}))}uploadFileChunk(t,e,i){0===e.chunkIndex&&(e.customData.uploadId=new vh.Z);var r={destinationPathInfo:i.getFullPathInfo(),chunkMetadata:JSON.stringify({UploadId:e.customData.uploadId,FileName:t.name,Index:e.chunkIndex,TotalCount:e.chunkCount,FileSize:t.size})},m={url:this._endpointUrl,headers:this._requestHeaders||{},method:"POST",dataType:"json",data:{chunk:e.chunkBlob,arguments:JSON.stringify(r),command:"UploadChunk"},upload:{onprogress:E.ZT,onloadstart:E.ZT,onabort:E.ZT},xhrFields:{},cache:!1},D=new P.BH;return this._beforeSendInternal(m),Qv.Z.sendRequest(m).done(A=>{!A.success&&D.reject(A)||D.resolve()}).fail(D.reject),D.promise()}abortFileUpload(t,e,i){return this._executeRequest("AbortUpload",{uploadId:e.customData.uploadId})}downloadItems(t){var e=this._getDownloadArgs(t),i=(0,l.Z)("<form>").css({display:"none"}).attr({method:"POST",action:e.url}),r={command:e.command,arguments:e.arguments};this._beforeSubmitInternal(r),this._appendFormDataInputsToForm(r,i),i.appendTo("body"),d.Z.trigger(i,"submit"),setTimeout(()=>i.remove())}getItemsContent(t){var e=this._getDownloadArgs(t),i={url:e.url,headers:this._requestHeaders||{},method:"POST",responseType:"arraybuffer",data:{command:e.command,arguments:e.arguments},upload:{onprogress:E.ZT,onloadstart:E.ZT,onabort:E.ZT},xhrFields:{},cache:!1};return this._beforeSendInternal(i),Qv.Z.sendRequest(i)}_getDownloadArgs(t){var e=t.map(m=>m.getFullPathInfo()),r=JSON.stringify({pathInfoList:e});return{url:this._endpointUrl,arguments:r,command:"Download"}}_getItemsIds(t){return t.map(e=>e.relativeName)}_executeRequest(t,e){var i="GetDirContents"===t?"GET":"POST",r=new P.BH,m={url:this._getEndpointUrl(t,e),headers:this._requestHeaders||{},method:i,dataType:"json",data:{},xhrFields:{},cache:!1};return this._beforeSendInternal(m),Qv.Z.sendRequest(m).then(D=>{!D.success&&r.reject(D)||r.resolve(D)},D=>r.reject(D)),r.promise()}_beforeSubmitInternal(t){(0,w.mf)(this._beforeSubmit)&&this._beforeSubmit({formData:t})}_beforeSendInternal(t){if((0,w.mf)(this._beforeAjaxSend)){var e={headers:t.headers,formData:t.data,xhrFields:t.xhrFields};this._beforeAjaxSend(e),t.headers=e.headers,t.data=e.formData,t.xhrFields=e.xhrFields}(0,w.Qr)(t.data)?delete t.data:(t.responseType||t.upload)&&(t.data=this._createFormData(t.data))}_createFormData(t){var e=new X5.FormData;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(0,w.$K)(t[i])&&e.append(i,t[i]);return e}_appendFormDataInputsToForm(t,e){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(0,w.$K)(t[i])&&(0,l.Z)("<input>").attr({type:"hidden",name:i,value:t[i]}).appendTo(e)}_getEndpointUrl(t,e){var i=this._getQueryString({command:t,arguments:JSON.stringify(e)}),r=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+r+i}_getQueryString(t){for(var e=[],i=Object.keys(t),r=0;r<i.length;r++){var m=i[r],D=t[m];if(void 0!==D)if(null===D&&(D=""),Array.isArray(D))this._processQueryStringArrayParam(m,D,e);else{var A=this._getQueryStringPair(m,D);e.push(A)}}return e.join("&")}_processQueryStringArrayParam(t,e,i){(0,O.S6)(e,(r,m)=>{var D=this._getQueryStringPair(t,m);i.push(D)})}_getQueryStringPair(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}_hasSubDirs(t){var e=this._hasSubDirsGetter(t);return"boolean"!=typeof e||e}_getKeyExpr(t){return t.keyExpr||"key"}},tK=class eK extends cD{constructor(t){super(t=(0,E.IS)(t,{})),this._hasSubDirsGetter=(0,Go.vb)(t.hasSubDirectoriesExpr||"hasSubDirectories"),this._getItemsFunction=this._ensureFunction(t.getItems,()=>[]),this._renameItemFunction=this._ensureFunction(t.renameItem),this._createDirectoryFunction=this._ensureFunction(t.createDirectory),this._deleteItemFunction=this._ensureFunction(t.deleteItem),this._moveItemFunction=this._ensureFunction(t.moveItem),this._copyItemFunction=this._ensureFunction(t.copyItem),this._uploadFileChunkFunction=this._ensureFunction(t.uploadFileChunk),this._abortFileUploadFunction=this._ensureFunction(t.abortFileUpload),this._downloadItemsFunction=this._ensureFunction(t.downloadItems),this._getItemsContentFunction=this._ensureFunction(t.getItemsContent)}getItems(t){var e=t.getFullPathInfo();return this._executeActionAsDeferred(()=>this._getItemsFunction(t),!0).then(i=>this._convertDataObjectsToFileItems(i,e))}renameItem(t,e){return this._executeActionAsDeferred(()=>this._renameItemFunction(t,e))}createDirectory(t,e){return this._executeActionAsDeferred(()=>this._createDirectoryFunction(t,e))}deleteItems(t){return t.map(e=>this._executeActionAsDeferred(()=>this._deleteItemFunction(e)))}moveItems(t,e){return t.map(i=>this._executeActionAsDeferred(()=>this._moveItemFunction(i,e)))}copyItems(t,e){return t.map(i=>this._executeActionAsDeferred(()=>this._copyItemFunction(i,e)))}uploadFileChunk(t,e,i){return this._executeActionAsDeferred(()=>this._uploadFileChunkFunction(t,e,i))}abortFileUpload(t,e,i){return this._executeActionAsDeferred(()=>this._abortFileUploadFunction(t,e,i))}downloadItems(t){return this._executeActionAsDeferred(()=>this._downloadItemsFunction(t))}getItemsContent(t){return this._executeActionAsDeferred(()=>this._getItemsContentFunction(t))}_hasSubDirs(t){var e=this._hasSubDirsGetter(t);return"boolean"!=typeof e||e}_getKeyExpr(t){return t.keyExpr||"key"}_ensureFunction(t,e){return e=e||E.ZT,(0,w.mf)(t)?t:e}};class nK{constructor(t){this._options=(0,y.l)({},t=t||{}),this._isInitialized=!1,this._dataLoading=!1,this._dataLoadingDeferred=null,this._rootDirectoryInfo=this._createRootDirectoryInfo(t.rootText),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this.startSingleLoad(),this._setSecurityController(),this._setProvider(t.fileProvider),this._initialize()}_initialize(){var t=this._options.currentPathKeys&&this._options.currentPathKeys.length?this.setCurrentPathByKeys(this._options.currentPathKeys):this.setCurrentPath(this._options.currentPath),e=()=>{this._isInitialized=!0,this._raiseInitialized()};t?(0,P.gx)(t).always(e):e()}_setSecurityController(){this._securityController=new iK({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.uploadMaxFileSize}),this._resetState()}setAllowedFileExtensions(t){(0,w.$K)(t)&&(this._options.allowedFileExtensions=t),this._setSecurityController(),this.refresh()}setUploadOptions(t){var{maxFileSize:e,chunkSize:i}=t;(0,w.$K)(i)&&(this._options.uploadChunkSize=i),(0,w.$K)(e)&&(this._options.uploadMaxFileSize=e,this._setSecurityController(),this.refresh())}_setProvider(t){this._fileProvider=this._createFileProvider(t),this._resetState()}updateProvider(t,e){return(0,w.$K)(e)?(0,P.gx)(this._getDirectoryByPathParts(this._rootDirectoryInfo,e,!0)).then(i=>{i!==this._rootDirectoryInfo&&this._resetCurrentDirectory(),this._setProvider(t)}).then(()=>this.setCurrentPathByKeys(e)):this._updateProviderOnly(t)}_updateProviderOnly(t){return this._resetCurrentDirectory(),this._setProvider(t),(0,P.gx)(this.refresh())}_createFileProvider(t){if(t||(t=[]),Array.isArray(t))return new tF({data:t});if(t instanceof cD)return t;switch(t.type){case"remote":return new Q5(t);case"custom":return new tK(t)}return new tF(t)}setCurrentPath(t){var e=QB(t),i=yh(...e);return this.getCurrentDirectory().fileItem.relativeName===i?(new P.BH).resolve().promise():this._setCurrentDirectoryByPathParts(e)}setCurrentPathByKeys(t){return(0,E.bY)(this.getCurrentDirectory().fileItem.pathKeys,t,0,!0)?(new P.BH).resolve().promise():this._setCurrentDirectoryByPathParts(t,!0)}getCurrentPath(){for(var t="",e=this.getCurrentDirectory();e&&!e.fileItem.isRoot();){var i=PA(e.fileItem.name);t=yh(i,t),e=e.parentDirectory}return t}getCurrentPathKeys(){return this.getCurrentDirectory().fileItem.pathKeys}getCurrentDirectory(){return this._currentDirectoryInfo}setCurrentDirectory(t,e){if(t){if(e&&(t=this._getActualDirectoryInfo(t)),this._currentDirectoryInfo&&this._currentDirectoryInfo===t)return void this._raisePathPotentiallyChanged();var i=this._currentDirectoryInfo.fileItem.key!==t.fileItem.key;this._currentDirectoryInfo=t,i&&this._isInitialized&&(this._dataLoading||this._raiseDataLoading("navigation"),this._raiseSelectedDirectoryChanged(t))}}_resetCurrentDirectory(){this._currentDirectoryInfo=this._rootDirectoryInfo}getCurrentItems(t){return this._dataLoadingDeferred?this._dataLoadingDeferred.then(()=>this._getCurrentItemsInternal(t)):this._getCurrentItemsInternal(t)}_getCurrentItemsInternal(t){var e=this.getCurrentDirectory();return this.getDirectoryContents(e).then(r=>{var m=this._separateItemsByType(r);return e.fileItem.hasSubDirectories=!!m.folders.length,t?m.files:r})}getDirectories(t,e){return this.getDirectoryContents(t,e).then(i=>i.filter(r=>r.fileItem.isDirectory))}_separateItemsByType(t){var e=[],i=[];return t.forEach(r=>r.fileItem.isDirectory?e.push(r):i.push(r)),{folders:e,files:i}}getDirectoryContents(t,e){if(!t)return(new P.BH).resolve([this._rootDirectoryInfo]).promise();if(t.itemsLoaded)return(new P.BH).resolve(t.items).promise();if(this._singleOperationLockId&&t.itemsSingleLoadErrorId===this._singleOperationLockId)return this._changeDirectoryOnError(t,e,!0),(new P.BH).reject().promise();var i=t.getInternalKey(),r=this._loadedItems[i];return r||(r=this._getFileItems(t,e).then(m=>(t.items=(m=m||[]).map(D=>D.isDirectory&&this._createDirectoryInfo(D,t)||this._createFileInfo(D,t)),t.itemsLoaded=!0,t.items),()=>(this._singleOperationLockId&&t.itemsSingleLoadErrorId!==this._singleOperationLockId&&(t.itemsSingleLoadErrorId=this._singleOperationLockId),[])),this._loadedItems[i]=r,r.always(()=>{delete this._loadedItems[i]}),r)}_getFileItems(t,e){var i=null;try{i=this._fileProvider.getItems(t.fileItem)}catch(r){return this._handleItemLoadError(t,r,e)}return(0,P.gx)(i).then(r=>this._securityController.getAllowedItems(r),r=>this._handleItemLoadError(t,r,e))}createDirectory(t,e){var i=t.fileItem,r=this._createDirInfoByName(e,t),m=this._createEditActionInfo("create",r,t);return this._processEditAction(m,D=>{D.parentDirectory=i,D.name=e,this._editingEvents.onDirectoryCreating(D)},()=>this._fileProvider.createDirectory(i,e).done(D=>(i.isRoot()||(i.hasSubDirectories=!0),D)),()=>{this._editingEvents.onDirectoryCreated({parentDirectory:i,name:e})},()=>this._resetDirectoryState(t,!0))}renameItem(t,e){var i=t.fileItem.createClone(),r=this._createEditActionInfo("rename",t,t.parentDirectory,{itemNewName:e});return this._processEditAction(r,(m,D)=>{D.fileItem.isDirectory||this._securityController.validateExtension(e),m.item=i,m.newName=e,this._editingEvents.onItemRenaming(m)},m=>this._fileProvider.renameItem(m,e),()=>{this._editingEvents.onItemRenamed({sourceItem:i,itemName:e})},()=>{var m=this._getActualDirectoryInfo(t.parentDirectory);this._resetDirectoryState(m),this.setCurrentDirectory(m)})}moveItems(t,e){var i=this._createEditActionInfo("move",t,e);return this._processEditAction(i,(r,m)=>{r.item=m.fileItem,r.destinationDirectory=e.fileItem,this._editingEvents.onItemMoving(r)},r=>this._fileProvider.moveItems([r],e.fileItem),r=>{var m={sourceItem:r.fileItem,parentDirectory:e.fileItem,itemName:r.fileItem.name,itemPath:yh(e.fileItem.path,r.fileItem.name)};this._editingEvents.onItemMoved(m)},r=>{t.forEach(m=>this._resetDirectoryState(m.parentDirectory,!0)),r&&(this._resetDirectoryState(e),this.setCurrentPathByKeys(e.fileItem.pathKeys),e.expanded=!0)})}copyItems(t,e){var i=this._createEditActionInfo("copy",t,e);return this._processEditAction(i,(r,m)=>{r.item=m.fileItem,r.destinationDirectory=e.fileItem,this._editingEvents.onItemCopying(r)},r=>this._fileProvider.copyItems([r],e.fileItem),r=>{var m={sourceItem:r.fileItem,parentDirectory:e.fileItem,itemName:r.fileItem.name,itemPath:yh(e.fileItem.path,r.fileItem.name)};this._editingEvents.onItemCopied(m)},r=>{r&&(e=this._getActualDirectoryInfo(e),this._resetDirectoryState(e),this.setCurrentDirectory(e),e.expanded=!0)})}deleteItems(t){var i=this._createEditActionInfo("delete",t,t.length>0?t[0].parentDirectory:null);return this._processEditAction(i,(r,m)=>{r.item=m.fileItem,this._editingEvents.onItemDeleting(r)},r=>this._fileProvider.deleteItems([r]),r=>this._editingEvents.onItemDeleted({item:r.fileItem}),()=>{t.forEach(r=>{var m=this._getActualDirectoryInfo(r.parentDirectory);this._resetDirectoryState(m),this.setCurrentDirectory(m)})})}processUploadSession(t,e){var i=this._getItemInfosForUploaderFiles(t.files,e),r=this._createEditActionInfo("upload",i,e,{sessionInfo:t});return this._processEditAction(r,()=>{},(m,D)=>t.deferreds[D],()=>{},()=>this._resetDirectoryState(e,!0))}uploadFileChunk(t,e,i){var r=null;0===e.chunkIndex?(this._securityController.validateMaxFileSize(t.size),this._securityController.validateExtension(t.name),r=this._processBeforeItemEditAction(D=>{D.fileData=t,D.destinationDirectory=i,this._editingEvents.onFileUploading(D)})):r=(new P.BH).resolve().promise();var m=r.then(()=>this._fileProvider.uploadFileChunk(t,e,i));return e.chunkIndex===e.chunkCount-1&&(m=m.done(()=>{this._editingEvents.onFileUploaded({fileData:t,parentDirectory:i})})),m}abortFileUpload(t,e,i){return(0,P.gx)(this._fileProvider.abortFileUpload(t,e,i))}getFileUploadChunkSize(){var t=this._options.uploadChunkSize;return t&&t>0?t:this._fileProvider.getFileUploadChunkSize()}downloadItems(t){var e=t.map(i=>this._processBeforeItemEditAction(r=>{r.item=i.fileItem,this._editingEvents.onItemDownloading(r)},i));return(0,P.gx)(...e).then(()=>{var i=t.map(r=>r.fileItem);return(0,P.gx)(this._getItemActionResult(this._fileProvider.downloadItems(i))).then(()=>{},r=>{this._raiseDownloadItemsError(t,t[0].parentDirectory,r)})},i=>{this._raiseDownloadItemsError(t,t[0].parentDirectory,i)})}getItemContent(t){var e=t.map(i=>i.fileItem);return(0,P.gx)(this._fileProvider.getItemsContent(e))}_handleItemLoadError(t,e,i){return t=this._getActualDirectoryInfo(t),this._raiseGetItemsError(t,e),this._changeDirectoryOnError(t,i),(new P.BH).reject().promise()}_raiseGetItemsError(t,e){var i=this._createEditActionInfo("getItems",t,t);this._raiseEditActionStarting(i),this._raiseEditActionResultAcquired(i),this._raiseEditActionError(i,{errorCode:e.errorCode,errorText:e.errorText,fileItem:t.fileItem,index:0})}_raiseDownloadItemsError(t,e,i){var r=this._createEditActionInfo("download",t,e),m=t.length;r.singleRequest=1===m,this._raiseEditActionStarting(r),this._raiseEditActionResultAcquired(r);for(var D=0;D<m-1;D++)this._raiseEditActionItemError(r,{errorCode:i.errorCode,errorText:i.errorText,fileItem:t[D].fileItem,index:D});this._raiseEditActionError(r,{errorCode:i.errorCode,errorText:i.errorText,fileItem:t[m-1].fileItem,index:m-1})}_changeDirectoryOnError(t,e,i){i&&(t=this._getActualDirectoryInfo(t)),this._resetDirectoryState(t),t.expanded=!1,e||this.setCurrentDirectory(t.parentDirectory)}_getItemActionResult(t){return Array.isArray(t)?t[0]:t}_processEditAction(t,e,i,r,m){var D=!1;this._raiseEditActionStarting(t);var A=t.itemInfos.map((N,Q)=>this._processBeforeItemEditAction(e,N).then(()=>this._getItemActionResult(i(N.fileItem,Q)).done(()=>r(N))));return t.singleRequest=1===A.length,this._raiseEditActionResultAcquired(t),AA(A,N=>{D=!0,this._raiseCompleteEditActionItem(t,N)},N=>this._raiseEditActionItemError(t,N)).then(()=>{m(D),this._raiseCompleteEditAction(t)})}_createEditActionInfo(t,e,i,r){r=r||{};var m=(e=Array.isArray(e)?e:[e]).map(D=>D.fileItem);return{name:t,itemInfos:e,items:m,directory:i,customData:r,singleRequest:!0}}_processBeforeItemEditAction(t,e){var i=new P.BH,r=this._createBeforeActionArgs();try{t(r,e)}catch(m){return i.reject(m).promise()}if(r.cancel){if(!0===r.cancel)return i.reject({errorText:r.errorText,errorCode:r.errorCode});(0,w.tI)(r.cancel)&&(0,P.gx)(r.cancel).then(m=>{!0===m?i.reject():(0,w.Kn)(m)&&!0===m.cancel&&i.reject({errorText:m.errorText,errorCode:m.errorCode}),i.resolve()},i.resolve)}else i.resolve();return i.promise()}_createBeforeActionArgs(){return{errorCode:void 0,errorText:"",cancel:!1}}_getItemInfosForUploaderFiles(t,e){for(var i=this._getPathInfo(e),r=[],m=0;m<t.length;m++){var A=new dD(i,t[m].name,!1),N=this._createFileInfo(A,e);r.push(N)}return r}refresh(){return this._lockRefresh?this._refreshDeferred:(this._lockRefresh=!0,this._executeDataLoad(()=>this._refreshDeferred=this._refreshInternal(),"refresh"))}startSingleLoad(){this._singleOperationLockId=(new vh.Z).toString()}endSingleLoad(){delete this._singleOperationLockId}_refreshInternal(){var t={items:this._rootDirectoryInfo.items},e=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this._loadItemsRecursive(this._rootDirectoryInfo,t).then(()=>{var i=this._findDirectoryByPathKeyParts(e);this.setCurrentDirectory(i),delete this._lockRefresh})}_loadItemsRecursive(t,e){var i=this;return this.getDirectories(t).then(r=>{for(var m=[],D=function(Q){var se=e.items.find(we=>r[Q].fileItem.key===we.fileItem.key);if(!se)return"continue";r[Q].expanded=se.expanded,r[Q].expanded&&m.push(i._loadItemsRecursive(r[Q],se))},A=0;A<r.length;A++)D(A);return AA(m)},()=>null)}_setCurrentDirectoryByPathParts(t,e){return this._executeDataLoad(()=>this._setCurrentDirectoryByPathPartsInternal(t,e),"navigation")}_setCurrentDirectoryByPathPartsInternal(t,e){return this._getDirectoryByPathParts(this._rootDirectoryInfo,t,e).then(i=>{for(var r=i.parentDirectory;r;r=r.parentDirectory)r.expanded=!0;this.setCurrentDirectory(i)},()=>{this._raisePathPotentiallyChanged()})}_executeDataLoad(t,e){return this._dataLoadingDeferred?this._dataLoadingDeferred.then(()=>this._executeDataLoad(t,e)):(this._dataLoading=!0,this._dataLoadingDeferred=new P.BH,this._isInitialized&&this._raiseDataLoading(e),t().always(()=>{var i=this._dataLoadingDeferred;this._dataLoadingDeferred=null,this._dataLoading=!1,i.resolve()}))}_getDirectoryByPathParts(t,e,i){if(e.length<1)return(new P.BH).resolve(t).promise();var r=i?"key":"name";return this.getDirectories(t).then(m=>{var D=m.find(N=>N.fileItem[r]===e[0]);if(!D)return(new P.BH).reject().promise();var A=[...e].splice(1);return this._getDirectoryByPathParts(D,A,i)})}_getDirectoryPathKeyParts(t){for(var e=[];t&&t.parentDirectory;)e.unshift(t.fileItem.key),t=t.parentDirectory;return e}_findDirectoryByPathKeyParts(t){var e=this._rootDirectoryInfo;if(0===t.length)return e;for(var i=0,r=e;r&&i<t.length;)(r=e.items.find(m=>m.fileItem.key===t[i]))&&(e=r),i++;return e}_getActualDirectoryInfo(t){var e=this._getDirectoryPathKeyParts(t);return this._findDirectoryByPathKeyParts(e)}_createDirInfoByName(t,e){var i=this._getPathInfo(e),r=new dD(i,t,!0);return this._createDirectoryInfo(r,e)}_createDirectoryInfo(t,e){return(0,y.l)(this._createFileInfo(t,e),{icon:"folder",expanded:t.isRoot(),items:[]})}_createFileInfo(t,e){return{fileItem:t,parentDirectory:e,icon:this._getFileItemDefaultIcon(t),getInternalKey(){return"FIK_".concat(this.fileItem.key)},getDisplayName(){return this.displayName||this.fileItem.name}}}_resetDirectoryState(t,e){e&&(t=this._getActualDirectoryInfo(t)),t.itemsLoaded=!1,t.items=[]}_getFileItemDefaultIcon(t){if(t.isDirectory)return"folder";var e=t.getFileExtension();return this._defaultIconMap[e]||"doc"}_createDefaultIconMap(){var t={".txt":"txtfile",".rtf":"rtffile",".doc":"docfile",".docx":"docxfile",".xls":"xlsfile",".xlsx":"xlsxfile",".ppt":"pptfile",".pptx":"pptxfile",".pdf":"pdffile"};return[".png",".gif",".jpg",".jpeg",".ico",".bmp"].forEach(e=>{t[e]="image"}),t}_createRootDirectoryInfo(t){var e=new dD(null,"",!0),i=this._createDirectoryInfo(e,null);return i.displayName=t||"Files",i}setRootText(t){this._rootDirectoryInfo.displayName=t||"Files"}_raiseInitialized(){this._tryCallAction("onInitialized",{controller:this})}_raiseDataLoading(t){this._tryCallAction("onDataLoading",{operation:t})}_raiseSelectedDirectoryChanged(t){this._tryCallAction("onSelectedDirectoryChanged",{selectedDirectoryInfo:t})}_raiseEditActionStarting(t){this._tryCallAction("onEditActionStarting",t)}_raiseEditActionResultAcquired(t){this._tryCallAction("onEditActionResultAcquired",t)}_raiseEditActionError(t,e){this._tryCallAction("onEditActionError",t,e)}_raiseEditActionItemError(t,e){this._tryCallAction("onEditActionItemError",t,e)}_raiseCompleteEditActionItem(t,e){this._tryCallAction("onCompleteEditActionItem",t,e)}_raiseCompleteEditAction(t){this._tryCallAction("onCompleteEditAction",t)}_raisePathPotentiallyChanged(){this._tryCallAction("onPathPotentiallyChanged")}_tryCallAction(t){var e=Array.prototype.slice.call(arguments,1);this._isInitialized&&this._options[t]&&this._options[t](...e)}_resetState(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._rootDirectoryInfo.itemsLoaded=!1,this._loadedItems={}}_getPathInfo(t){for(var e=[],i=t;i&&!i.fileItem.isRoot();i=i.parentDirectory)e.unshift({key:i.fileItem.key,name:i.fileItem.name});return e}on(t,e){var i="on".concat(t);this._options[i]=e}get _editingEvents(){return this._options.editingEvents}}class iK{constructor(t){this._options=(0,y.l)({allowedFileExtensions:[],maxFileSize:0},t),this._extensionsMap={},this._allowedFileExtensions.forEach(e=>{this._extensionsMap[e.toUpperCase()]=!0})}getAllowedItems(t){return 0===this._allowedFileExtensions.length?t:t.filter(e=>e.isDirectory||this._isValidExtension(e.name))}validateExtension(t){if(!this._isValidExtension(t))throw new Ab(Ol_WrongFileExtension,null)}validateMaxFileSize(t){if(this._maxFileSize&&t>this._maxFileSize)throw new Ab(Ol_MaxFileSizeExceeded,null)}_isValidExtension(t){if(0===this._allowedFileExtensions.length)return!0;var e=qB(t).toUpperCase();return this._extensionsMap[e]}get _allowedFileExtensions(){return this._options.allowedFileExtensions}get _maxFileSize(){return this._options.maxFileSize}}var iF={create:!1,copy:!1,move:!1,delete:!1,rename:!1,upload:!1,download:!1};class rK{constructor(t){this._actions={},this._permissions=t||{},this._initCommands()}_initCommands(){this._commands=[{name:"create",text:yn.Z.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:yn.Z.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:yn.Z.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:yn.Z.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:yn.Z.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.delete},{name:"download",text:yn.Z.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:yn.Z.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:yn.Z.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:yn.Z.format("dxFileManager-commandThumbnails"),icon:"mediumiconslayout",enabled:!0,noFileItemRequired:!0},{name:"details",text:yn.Z.format("dxFileManager-commandDetails"),icon:"detailslayout",enabled:!0,noFileItemRequired:!0},{name:"clearSelection",text:yn.Z.format("dxFileManager-commandClearSelection"),icon:"remove",enabled:!0},{name:"showNavPane",hint:yn.Z.format("dxFileManager-commandShowNavPane"),icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach(t=>{this._commandMap[t.name]=t})}registerActions(t){this._actions=(0,y.l)(this._actions,t)}executeCommand(t,e){var i=(0,w.HD)(t)?t:t.name,r=this._actions[i];if(r)return r(e)}updatePermissions(t){var e=(0,y.l)({},iF,t);this._permissions=e,(0,O.S6)(this._permissions,i=>{this._commandMap[i].enabled=this._permissions[i]})}setCommandEnabled(t,e){var i=this.getCommandByName(t);i&&(i.enabled=e)}getCommandByName(t){return this._commandMap[t]}isCommandAvailable(t,e){var i=this.getCommandByName(t);if(!i||!i.enabled)return!1;if(i.noFileItemRequired)return!0;var r=e&&e.length||0;return 0!==r&&!e.some(m=>m.fileItem.isRoot()||m.fileItem.isParentFolder)&&("download"===t?e.every(m=>!m.fileItem.isDirectory):!i.isSingleFileItemCommand||1===r)}}var oK=u(7138),rF={create:{},upload:{},download:{},rename:{},move:{},copy:{},delete:{},refresh:{beginGroup:!0}},sK=["beginGroup","closeMenuOnClick","disabled","icon","selectable","selected","text","visible"];const uK=class lK extends ca.Z{_initMarkup(){this._initActions(),this._isVisible=!1;var t=(0,l.Z)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(t,oK.Z,{cssClass:"dx-filemanager-context-menu",showEvent:"",onItemClick:e=>this._onContextMenuItemClick(e.itemData.name,e),onShowing:e=>this._onContextMenuShowing(e),onShown:()=>this._onContextMenuShown(),onHidden:()=>this._onContextMenuHidden()}),super._initMarkup()}showAt(t,e,i,r){var{itemData:m,itemElement:D,isActionButton:A=!1}=r;this._isVisible&&this._onContextMenuHidden(),this._menuShowingContext={targetElement:D,itemData:m,fileItems:t,event:i,isActionButton:A};var N={of:e,at:"top left",my:"top left",offset:""};i?N.offset=i.offsetX+" "+i.offsetY:(N.my="left top",N.at="left bottom",N.boundaryOffset="1"),this._contextMenu.option({target:e,position:N}),this._contextMenu.show()}createContextMenuItems(t,e,i){this._targetFileItems=t,this._targetFileItem=(0,w.$K)(i)?i:t?.[0];var r=[];return(e||this.option("items")).forEach(D=>{var A=(0,w.HD)(D)?D:D.name,N=this._configureItemByCommandName(A,D,t,this._targetFileItem);this._isContextMenuItemAvailable(N,t)&&r.push(N)}),r}_isContextMenuItemAvailable(t,e){return this._isDefaultItem(t.name)&&t._autoHide?!(this._isIsolatedCreationItemCommand(t.name)&&e&&e.length)&&this._commandManager.isCommandAvailable(t.name,e):(0,E.IS)(t.visible,!0)}_isIsolatedCreationItemCommand(t){return("create"===t||"upload"===t)&&this.option("isolateCreationItemCommands")}_isDefaultItem(t){return!!rF[t]}_configureItemByCommandName(t,e,i,r){if(!this._isDefaultItem(t)){var m=(0,y.l)(!0,{},e);return m.originalItemData=e,this._addItemClickHandler(t,m),Array.isArray(e.items)&&(m.items=this.createContextMenuItems(i,e.items,r)),m}var D=this._createMenuItemByCommandName(t);return(0,y.l)(D,rF[t]),D.originalItemData=e,k0(D,e,sK),(0,w.$K)(D.visible)||(D._autoHide=!0),t&&!D.name&&(0,y.l)(D,{name:t}),D}_createMenuItemByCommandName(t){var{text:e,icon:i}=this._commandManager.getCommandByName(t),r={name:t,text:e,icon:i};return this._addItemClickHandler(t,r),r}_addItemClickHandler(t,e){e.onItemClick=i=>this._onContextMenuItemClick(t,i)}_onContextMenuItemClick(t,e){var i,r=(0,y.l)(!0,{},e);if(r.itemData=e.itemData.originalItemData,r.fileSystemItem=null===(i=this._targetFileItem)||void 0===i?void 0:i.fileItem,r.viewArea=this.option("viewArea"),this._actions.onItemClick(r),this._isDefaultItem(t)){var m=this._isIsolatedCreationItemCommand(t)?null:this._targetFileItems;this._commandManager.executeCommand(t,m)}}_initActions(){this._actions={onContextMenuHidden:this._createActionByOption("onContextMenuHidden"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onItemClick:this._createActionByOption("onItemClick")}}_onContextMenuShowing(t){if(this._isVisible&&this._onContextMenuHidden(!0),t=(0,y.l)(t,this._menuShowingContext,{options:this.option(),cancel:!1}),this._actions.onContextMenuShowing(t),!t.cancel){var e=this.createContextMenuItems(this._menuShowingContext.fileItems,null,this._menuShowingContext.fileSystemItem);this._contextMenu.option("dataSource",e)}}tryUpdateVisibleContextMenu(){if(this._isVisible){var t=this.createContextMenuItems(this._targetFileItems);this._contextMenu.option("dataSource",t)}}_onContextMenuShown(){this._isVisible=!0}_onContextMenuHidden(t){this._isVisible=!1,t||(this._menuShowingContext={}),this._contextMenu.option("visible",!1),this._raiseContextMenuHidden()}_raiseContextMenuHidden(){this._actions.onContextMenuHidden()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{commandManager:null,onContextMenuHidden:null,onItemClick:null})}_optionChanged(t){var e=t.name;switch(e){case"commandManager":this.repaint();break;case"items":this.tryUpdateVisibleContextMenu();break;case"onItemClick":case"onContextMenuShowing":case"onContextMenuHidden":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}get _commandManager(){return this.option("commandManager")}};var dK=u(3520),ey=u(219);const oF=class gK extends ca.Z{_initMarkup(){this._createClickAction();var t=(0,l.Z)("<div>");this.$element().append(t).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(t,ey.Z,{icon:"overflow",stylingMode:"text",onClick:e=>this._raiseClick(e)}),super._initMarkup()}_createClickAction(){this._clickAction=this._createActionByOption("onClick")}_raiseClick(t){this._clickAction(t)}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{cssClass:"",onClick:null})}_optionChanged(t){switch(t.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:super._optionChanged(t)}}setActive(t){this.$element().toggleClass("dx-filemanager-file-actions-button-activated",t),setTimeout(()=>this._button.$element().toggleClass("dx-state-active",t))}};var aF="dx-filemanager-focused-item";const sF=class vK extends ca.Z{_initMarkup(){this._initActions(),this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=E.ZT,this._storeExpandedState=this.option("storeExpandedState")||!1;var t=(0,l.Z)("<div>").addClass("dx-filemanager-dirs-tree").appendTo(this.$element()),e={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateSubDirectories.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),keyExpr:"getInternalKey",parentIdExpr:"parentDirectory.getInternalKey",displayExpr:i=>i.getDisplayName(),hasItemsExpr:"fileItem.hasSubDirectories",onItemClick:i=>this._actions.onDirectoryClick(i),onItemExpanded:i=>this._onFilesTreeViewItemExpanded(i),onItemCollapsed:i=>this._onFilesTreeViewItemCollapsed(i),onItemRendered:i=>this._onFilesTreeViewItemRendered(i),onContentReady:()=>this._actions.onFilesTreeViewContentReady()};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",()=>this._onContextMenuHidden()),e.onItemContextMenu=i=>this._onFilesTreeViewItemContextMenu(i),this._createFileActionsButton=(i,r)=>this._createComponent(i,oF,r)),this._filesTreeView=this._createComponent(t,dK.Z,e)}_initActions(){this._actions={onDirectoryClick:this._createActionByOption("onDirectoryClick"),onFilesTreeViewContentReady:this._createActionByOption("onFilesTreeViewContentReady")}}_render(){super._render();var t=this;setTimeout(()=>{t._updateFocusedElement()})}_onFilesTreeViewCreateSubDirectories(t){var e=this.option("getDirectories");return e&&e(t&&t.itemData||null,!0)}_onFilesTreeViewItemRendered(t){var{itemData:e}=t,i=this._getCurrentDirectory();i&&i.fileItem.equals(e.fileItem)&&(this._updateFocusedElement(),this._restoreScrollTopPosition())}_onFilesTreeViewItemExpanded(t){var{itemData:e}=t;this._storeExpandedState&&(e.expanded=!0)}_onFilesTreeViewItemCollapsed(t){var{itemData:e}=t;this._storeExpandedState&&(e.expanded=!1)}_createFilesTreeViewItemTemplate(t,e,i){var r=(0,l.Z)(i);r.closest(this._filesTreeViewItemSelector).data("item",t);var D=(0,W.H)(t.icon),A=(0,l.Z)("<span>").text(t.getDisplayName()).addClass("dx-filemanager-dirs-tree-item-text"),N=(0,l.Z)("<div>");r.append(D,A,N),this._createFileActionsButton(N,{onClick:Q=>this._onFileItemActionButtonClick(Q)})}_onFilesTreeViewItemContextMenu(t){var{itemElement:e,event:i}=t;i.preventDefault(),i.stopPropagation();var r=(0,l.Z)(e).data("item");this._contextMenu.showAt([r],e,i,{itemData:r,itemElement:e})}_onFileItemActionButtonClick(t){var{component:e,element:i,event:r}=t;r.stopPropagation();var m=e.$element().closest(this._filesTreeViewItemSelector),D=m.data("item");this._contextMenu.showAt([D],i,r,{itemData:D,itemElement:m,isActionButton:!0}),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}_onContextMenuHidden(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}toggleNodeDisabledState(t,e){var i=this._getNodeByKey(t);if(i){var m=this._filesTreeView.option("items").map(D=>D.getInternalKey()).indexOf(i.getInternalKey());-1!==m&&this._filesTreeView.option("items[".concat(m,"].disabled"),e)}}_saveScrollTopPosition(){(0,mi.Ym)()&&(this._scrollTopPosition=this._filesTreeView.getScrollable().scrollTop())}_restoreScrollTopPosition(){!(0,mi.Ym)()||!(0,w.kE)(this._scrollTopPosition)||setTimeout(()=>this._filesTreeView.getScrollable().scrollTo(this._scrollTopPosition))}_updateFocusedElement(){var t=this._getCurrentDirectory(),e=this._getItemElementByKey(t?.getInternalKey());this._$focusedElement&&this._$focusedElement.toggleClass(aF,!1),this._$focusedElement=e||(0,l.Z)(),this._$focusedElement.toggleClass(aF,!0)}_getNodeByKey(t){var e;return null===(e=this._filesTreeView)||void 0===e?void 0:e._getNode(t)}_getPublicNode(t){for(var e,i=[...null===(e=this._filesTreeView)||void 0===e?void 0:e.getNodes()];i.length;){var r=i.shift();if(r.itemData.getInternalKey()===t)return r;r.children.length&&i.push(...r.children)}}_getItemElementByKey(t){var e=this._getNodeByKey(t);if(e){var i=this._filesTreeView._getNodeElement(e);if(i)return i.children(this._filesTreeViewItemSelector)}return null}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})}_optionChanged(t){var e=t.name;switch(e){case"storeExpandedState":this._storeExpandedState=this.option(e);break;case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"getCurrentDirectory":this.getCurrentDirectory=this.option(e);break;case"onDirectoryClick":case"onFilesTreeViewContentReady":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}get _filesTreeViewItemSelector(){return".".concat("dx-treeview-item")}get _contextMenu(){return this.option("contextMenu")}toggleDirectoryExpandedState(t,e){var i=new P.BH,r=this._getPublicNode(t?.getInternalKey());return r?r.expanded===e||r.itemsLoaded&&!r.itemData.fileItem.hasSubDirectories?i.resolve().promise():this._filesTreeView[e?"expandItem":"collapseItem"](t.getInternalKey()):i.reject().promise()}refresh(){this._$focusedElement=null,this._saveScrollTopPosition(),this._filesTreeView.option("dataSource",[])}updateCurrentDirectory(){this._disposed||(this._updateFocusedElement(),this._storeExpandedState&&this._updateExpandedStateToCurrentDirectory())}_updateExpandedStateToCurrentDirectory(){return this.toggleDirectoryExpandedStateRecursive(this._getCurrentDirectory().parentDirectory,!0)}toggleDirectoryExpandedStateRecursive(t,e){for(var i=[],r=t;r;r=r.parentDirectory)i.unshift(r);return this.toggleDirectoryLineExpandedState(i,e)}toggleDirectoryLineExpandedState(t,e){return t.length?this.toggleDirectoryExpandedState(t.shift(),e).then(()=>this.toggleDirectoryLineExpandedState(t,e)):(new P.BH).resolve().promise()}};var yK=u(1378),lF=u(1384),uF=u(7344);const dF=class bK extends ca.Z{_init(){this._initActions(),this._lockFocusedItemProcessing=!1,this._focusedItemKey=this.option("focusedItemKey"),super._init()}_initMarkup(){this.$element().addClass("dx-filemanager-files-view");var t=(0,k.V4)(lF.u,"dxFileManager_open");d.Z.on(this.$element(),t,this._getItemSelector(),this._onItemDblClick.bind(this)),super._initMarkup()}_initActions(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onItemListDataLoaded:this._createActionByOption("onItemListDataLoaded")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{selectionMode:"single",selectedItemKeys:[],focusedItemKey:void 0,contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onFocusedItemChanged:null,onSelectedItemOpened:null,onContextMenuShowing:null})}_optionChanged(t){var e=t.name;switch(e){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"selectedItemKeys":this._setSelectedItemKeys(t.value);break;case"focusedItemKey":this._lockFocusedItemProcessing||this._setFocusedItemKey(t.value);break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onContextMenuShowing":case"onItemListDataLoaded":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}_getItems(){return this._getItemsInternal().done(t=>{this._itemCount=t.length,0===this._itemCount&&this._resetFocus();var e=this._findParentDirectoryItem(t);this._hasParentDirectoryItem=!!e,this._parentDirectoryItemKey=e?e.fileItem.key:null}).always(()=>{this._onDataLoaded()})}_getItemsInternal(){var t=this.option("getItems"),e=t?t():[];return(0,P.gx)(e)}_raiseOnError(t){this._actions.onError({error:t})}_raiseSelectionChanged(t){this._actions.onSelectionChanged(t)}_raiseFocusedItemChanged(t){this._actions.onFocusedItemChanged(t)}_raiseSelectedItemOpened(t){this._actions.onSelectedItemOpened({fileItemInfo:t})}_raiseContextMenuShowing(t){this._actions.onContextMenuShowing(t)}_raiseItemListDataLoaded(){this._actions.onItemListDataLoaded()}_onDataLoaded(){var t;this._raiseItemListDataLoaded(),null===(t=this._refreshDeferred)||void 0===t||t.resolve()}_tryRaiseSelectionChanged(t){var{selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:m,currentDeselectedItemKeys:D}=t,A=this._findParentDirectoryItem(this.getSelectedItems());A&&this._deselectItem(A);var N=!this._hasParentDirectoryItem;(N=N||this._hasValidKeys(m)||this._hasValidKeys(D))&&(e=this._filterOutItemByPredicate(e,Q=>Q.fileItem.key===this._parentDirectoryItemKey),i=this._filterOutParentDirectory(i),r=this._filterOutParentDirectoryKey(r,!0),m=this._filterOutParentDirectoryKey(m,!0),D=this._filterOutParentDirectoryKey(D,!0),this._raiseSelectionChanged({selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:m,currentDeselectedItemKeys:D}))}_onFocusedItemChanged(t){this._focusedItemKey!==t.itemKey&&(this._focusedItemKey=t.itemKey,this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t.itemKey),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(t))}_resetFocus(){}_getItemThumbnail(t){var e=this.option("getItemThumbnail");return e?e(t):{thumbnail:""}}_getItemThumbnailContainer(t){var{thumbnail:e,cssClass:i}=this._getItemThumbnail(t),r=(0,W.H)(e).addClass(this._getItemThumbnailCssClass());return i&&r.addClass(i),r}_getItemThumbnailCssClass(){return""}_getItemSelector(){}_onItemDblClick(t){}_isDesktop(){return"desktop"===x.Z.real().deviceType}_showContextMenu(t,e,i,r){this._contextMenu.showAt(t,e,i,r)}get _contextMenu(){return this.option("contextMenu")}_findParentDirectoryItem(t){for(var e=0;e<t.length;e++){var i=t[e];if(this._isParentDirectoryItem(i))return i}return null}_getFileItemsForContextMenu(t){var e=this.getSelectedItems();return this._isParentDirectoryItem(t)&&e.push(t),e}_isParentDirectoryItem(t){return t.fileItem.isParentFolder}_hasValidKeys(t){return t.length>1||1===t.length&&t[0]!==this._parentDirectoryItemKey}_filterOutParentDirectory(t,e){return this._filterOutItemByPredicate(t,i=>i.key===this._parentDirectoryItemKey,e)}_filterOutParentDirectoryKey(t,e){return this._filterOutItemByPredicate(t,i=>i===this._parentDirectoryItemKey,e)}_filterOutItemByPredicate(t,e,i){for(var r=t,m=-1,D=0;D<t.length;D++)if(e(t[D])){m=D;break}return-1!==m&&(i&&(r=[...t]),r.splice(m,1)),r}_isMultipleSelectionMode(){return"multiple"===this.option("selectionMode")}_deselectItem(t){}_setSelectedItemKeys(t){}_setFocusedItemKey(t){}_createDataSource(){return{store:new uF.Z({key:"fileItem.key",load:this._getItems.bind(this)})}}getSelectedItems(){}clearSelection(){}selectItem(){}};var cF={thumbnail:{caption:"",calculateSortValue:"isDirectory",width:36,alignment:"center",cssClass:"dx-filemanager-details-item-is-directory"},name:{caption:yn.Z.format("dxFileManager-listDetailsColumnCaptionName")},dateModified:{caption:yn.Z.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},size:{caption:yn.Z.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0},isParentFolder:{caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}};const AK=class MK extends dF{_initMarkup(){this._itemCount=0,this._focusedItem=null,this._hasParentDirectoryItem=!1,this._parentDirectoryItemKey=null,this._selectAllCheckBox=null,this._selectAllCheckBoxUpdating=!1,this.$element().addClass("dx-filemanager-details"),this._createFilesView(),this._contextMenu.option("onContextMenuHidden",()=>this._onContextMenuHidden()),super._initMarkup()}_createFilesView(){var t=(0,l.Z)("<div>").appendTo(this.$element()),e=this._isMultipleSelectionMode()?"multiple":"none";this._filesView=this._createComponent(t,yK.Z,{dataSource:this._createDataSource(),hoverStateEnabled:!0,selection:{mode:e,showCheckBoxesMode:this._isDesktop()?"onClick":"none"},selectedRowKeys:this.option("selectedItemKeys"),focusedRowKey:this.option("focusedItemKey"),focusedRowEnabled:!0,allowColumnResizing:!0,scrolling:{mode:"virtual"},sorting:{mode:"single",showSortIndexes:!1},loadPanel:{shading:!0},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!1,columns:this._createColumns(),onEditorPreparing:this._onEditorPreparing.bind(this),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._onFilesViewSelectionChanged.bind(this),onFocusedRowChanged:this._onFilesViewFocusedRowChanged.bind(this),onOptionChanged:this._onFilesViewOptionChanged.bind(this)})}_createColumns(){var t=this.option("detailColumns");t=(t=t.slice(0)).map(i=>{var r=i;return(0,w.HD)(i)&&(r={dataField:i}),this._getPreparedColumn(r)});var e=this.option("customizeDetailColumns");return(0,w.mf)(e)&&(t=e(t)),t.push(this._getPreparedColumn({dataField:"isParentFolder"})),t.forEach(i=>this._updateColumnDataField(i)),t}_getPreparedColumn(t){var e={},i="";if(this._isDefaultColumn(t.dataField)){var r=(0,y.l)(!0,{},cF[t.dataField]);switch(i=r.cssClass||"",t.dataField){case"thumbnail":r.cellTemplate=this._createThumbnailColumnCell.bind(this),r.calculateSortValue="fileItem.".concat(r.calculateSortValue);break;case"name":r.cellTemplate=this._createNameColumnCell.bind(this),r.caption=yn.Z.format("dxFileManager-listDetailsColumnCaptionName");break;case"size":r.calculateCellValue=this._calculateSizeColumnCellValue.bind(this),r.caption=yn.Z.format("dxFileManager-listDetailsColumnCaptionFileSize"),r.calculateSortValue=m=>m.fileItem.isDirectory?-1:m.fileItem.size;break;case"dateModified":r.caption=yn.Z.format("dxFileManager-listDetailsColumnCaptionDateModified")}(0,y.l)(!0,e,r)}return k0(e,t,["alignment","caption","dataField","dataType","hidingPriority","sortIndex","sortOrder","visible","visibleIndex","width"]),t.cssClass&&(i="".concat(i," ").concat(t.cssClass)),i&&(e.cssClass=i),e}_updateColumnDataField(t){var e=this._isDefaultColumn(t.dataField)?"":"dataItem.";return t.dataField="fileItem."+e+t.dataField,t}_isDefaultColumn(t){return!!cF[t]}_onFileItemActionButtonClick(t){var{component:e,element:i,event:r}=t;r.stopPropagation();var m=e.$element().closest(this._getItemSelector()),D=m.data("item");this._selectItem(D);var A={itemData:D,itemElement:m,isActionButton:!0},N=this._getFileItemsForContextMenu(D);this._showContextMenu(N,i,r,A),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}_onContextMenuHidden(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}_getItemThumbnailCssClass(){return"dx-filemanager-details-item-thumbnail"}_getItemSelector(){return".".concat("dx-data-row")}_onItemDblClick(t){var i=(0,l.Z)(t.currentTarget).data("item");this._raiseSelectedItemOpened(i)}_isAllItemsSelected(){var t=this._hasParentDirectoryItem?this._itemCount-1:this._itemCount,e=this._filesView.option("selectedRowKeys");return!!e.length&&(e.length>=t||void 0)}_onEditorPreparing(t){var{component:e,command:i,row:r,parentType:m,editorOptions:D}=t;this._filesView||(this._filesView=e),"select"===i&&r?this._isParentDirectoryItem(r.data)&&(D.disabled=!0):"headerRow"===m&&(D.onInitialized=A=>{var{component:N}=A;this._selectAllCheckBox=N},D.value=this._isAllItemsSelected(),D.onValueChanged=A=>this._onSelectAllCheckBoxValueChanged(A))}_onSelectAllCheckBoxValueChanged(t){var{event:e,previousValue:i,value:r}=t;e?this._isAllItemsSelected()!==r&&(r?this._filesView.selectAll():this._filesView.deselectAll(),e.preventDefault()):i&&!this._selectAllCheckBoxUpdating&&this._selectAllCheckBox&&this._selectAllCheckBox.option("value",i)}_onRowPrepared(t){var{rowType:e,rowElement:i,data:r}=t;if("data"===e){var m=(0,l.Z)(i);m.data("item",r),this._isParentDirectoryItem(r)&&m.addClass("dx-filemanager-parent-directory-item")}}_onContextMenuPreparing(t){if(this._isDesktop()){var e=null,i={};t.row&&"data"===t.row.rowType&&(this._selectItem(i=t.row.data),e=this._getFileItemsForContextMenu(i));var r=(0,y.l)({},{targetElement:"content"===t.target&&(0,w.$K)(t.row)?this._filesView.getRowElement(t.rowIndex):void 0,itemData:i,options:this._contextMenu.option(),event:t.event,isActionButton:!1,cancel:!1});this._raiseContextMenuShowing(r),t.items=r.cancel?[]:this._contextMenu.createContextMenuItems(e,null,i)}}_onFilesViewSelectionChanged(t){var{component:e,selectedRowsData:i,selectedRowKeys:r,currentSelectedRowKeys:m,currentDeselectedRowKeys:D}=t;this._filesView=this._filesView||e,this._selectAllCheckBox&&(this._selectAllCheckBoxUpdating=!0,this._selectAllCheckBox.option("value",this._isAllItemsSelected()),this._selectAllCheckBoxUpdating=!1);var A=i.map(N=>N.fileItem);this._tryRaiseSelectionChanged({selectedItemInfos:i,selectedItems:A,selectedItemKeys:r,currentSelectedItemKeys:m,currentDeselectedItemKeys:D})}_onFilesViewFocusedRowChanged(t){var e,i;this._isMultipleSelectionMode()||this._selectItemSingleSelection(null===(i=t.row)||void 0===i?void 0:i.data);var r=(null===(e=t.row)||void 0===e?void 0:e.data.fileItem)||null;this._onFocusedItemChanged({item:r,itemKey:r?.key,itemElement:t.rowElement})}_onFilesViewOptionChanged(t){var{fullName:e}=t;e.indexOf("sortOrder")>-1&&this._filesView.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})}_resetFocus(){this._setFocusedItemKey(void 0)}_createThumbnailColumnCell(t,e){this._getItemThumbnailContainer(e.data).appendTo(t)}_createNameColumnCell(t,e){var i=(0,l.Z)("<div>"),r=(0,l.Z)("<span>").text(e.data.fileItem.name).addClass("dx-filemanager-details-item-name"),m=(0,l.Z)("<div>").append(r,i).addClass("dx-filemanager-details-item-name-wrapper");(0,l.Z)(t).append(m),this._createComponent(i,oF,{onClick:D=>this._onFileItemActionButtonClick(D)})}_calculateSizeColumnCellValue(t){return t.fileItem.isDirectory?"":YB(t.fileItem.size)}_selectItem(t){(this._isMultipleSelectionMode()?this._selectItemMultipleSelection:this._selectItemSingleSelection).call(this,t)}_deselectItem(t){this._filesView.deselectRows([t.fileItem.key])}_selectItemSingleSelection(t){if(!this._focusedItem||!t||this._focusedItem.fileItem.key!==t.fileItem.key){var e=this._focusedItem;this._focusedItem=t;var i=[];e&&i.push(e.fileItem.key);var r=[],m=[];t&&!this._isParentDirectoryItem(t)&&(r.push(t.fileItem),m.push(t.fileItem.key)),this._raiseSelectionChanged({selectedItems:r,selectedItemKeys:m,currentSelectedItemKeys:[...m],currentDeselectedItemKeys:i})}}_selectItemMultipleSelection(t){var{fileItem:e}=t;if(!this._filesView.isRowSelected(e.key)){var r=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([e.key],r)}}_setSelectedItemKeys(t){this._filesView.option("selectedRowKeys",t)}_setFocusedItemKey(t){var e;null===(e=this._filesView)||void 0===e||e.option("focusedRowKey",t)}clearSelection(){this._isMultipleSelectionMode()?this._filesView.clearSelection():this._filesView.option("focusedRowIndex",-1)}refresh(t){var e={dataSource:this._createDataSource()};return t&&Object.prototype.hasOwnProperty.call(t,"focusedItemKey")&&((0,w.$K)(t.focusedItemKey)?e.focusedRowKey=t.focusedItemKey:e.focusedRowIndex=-1),this._filesView.option(e),this._refreshDeferred=new P.BH,this._refreshDeferred.promise()}getSelectedItems(){return this._isMultipleSelectionMode()?this._filesView.getSelectedRowsData():this._focusedItem&&!this._isParentDirectoryItem(this._focusedItem)?[this._focusedItem]:[]}};var hF=u(2480),PK=u(5180),kb=u(7307),kK=u(7398),pF=(0,k.V4)(PK.Z.name,"dxFileManagerThumbnailsListBox");class WK{constructor(t,e,i,r){this._layoutModel=null,this._scrollView=t,this._$viewPort=e,this._$itemContainer=i,this._$item=r}updateItems(t){this._$item=t}reset(){this._layoutModel=null}getLayoutModel(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}_createLayoutModel(){if(!this._$item)return null;var t=(0,s.Y_)(this._$item,!0);if(0===t)return null;var e=(0,s.zp)(this._$item,!0),i=(0,s.Xt)(this._$itemContainer),r=(0,s.fA)(this._$viewPort),m=this._scrollView.scrollTop();return{itemWidth:t,itemHeight:e,viewPortWidth:i,viewPortHeight:r,viewPortScrollTop:m,viewPortScrollBottom:m+r,itemPerRowCount:Math.floor(i/t),rowPerPageRate:r/e}}createItemLayoutModel(t){var e=this.getLayoutModel();if(!e)return null;var i=Math.floor(t/e.itemPerRowCount),m=i*e.itemHeight;return{itemRowIndex:i,itemColumnIndex:t%e.itemPerRowCount,itemTop:m,itemBottom:m+e.itemHeight}}scrollToItem(t){var e=this.getLayoutModel();if(e){var r=Math.floor(t/e.itemPerRowCount)*e.itemHeight,m=r+e.itemHeight,D=e.viewPortScrollTop;r<e.viewPortScrollTop?D=r:m>e.viewPortScrollBottom&&(D=m-e.viewPortHeight),this._scrollView.scrollTo(D)}}}const UK=class zK extends kb.Z{_initMarkup(){this._initActions(),this._lockFocusedItemProcessing=!1,this.$element().addClass("dx-filemanager-thumbnails-view-port"),this._renderScrollView(),this._renderItemsContainer(),this._createScrollViewControl(),super._initMarkup(),this.onFocusedItemChanged=this._onFocusedItemChanged.bind(this),this._layoutUtils=new WK(this._scrollView,this.$element(),this._$itemContainer,this.itemElements().first()),this._syncFocusedItemKey()}_initActions(){this._actions={onItemEnterKeyPressed:this._createActionByOption("onItemEnterKeyPressed"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged")}}_initTemplates(){super._initTemplates(),this._itemThumbnailTemplate=this.option("itemThumbnailTemplate"),this._getTooltipText=this.option("getTooltipText"),this._templateManager.addDefaultTemplates({item:new B.c(function(t,e,i){var r=this._getDefaultItemTemplate(i,t);t.append(r)}.bind(this),["fileItem"],this.option("integrationOptions.watchMethod"))})}_createScrollViewControl(){this._scrollView||(this._scrollView=this._createComponent(this._$scrollView,Ef.Z,{scrollByContent:!0,scrollByThumb:!0,useKeyboard:!1,showScrollbar:"onHover"}))}_renderScrollView(){this._$scrollView||(this._$scrollView=(0,l.Z)("<div>").appendTo(this.$element()))}_renderItemsContainer(){this._$itemContainer||(this._$itemContainer=(0,l.Z)("<div>").addClass("dx-filemanager-thumbnails-container").appendTo(this._$scrollView))}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_supportedKeys(){return(0,y.l)(super._supportedKeys(),{upArrow(t){this._beforeKeyProcessing(t),this._processArrowKeys(-1,!1,t)},downArrow(t){this._beforeKeyProcessing(t),this._processArrowKeys(1,!1,t)},home(t){this._beforeKeyProcessing(t),this._processHomeEndKeys(0,!0,t)},end(t){this._beforeKeyProcessing(t),this._processHomeEndKeys(this._getItemsLength()-1,!0,t)},pageUp(t){this._beforeKeyProcessing(t),this._processPageChange(!0,t)},pageDown(t){this._beforeKeyProcessing(t),this._processPageChange(!1,t)},enter(t){this._beforeKeyProcessing(t),this._actions.onItemEnterKeyPressed(this._getFocusedItem())},A(t){this._beforeKeyProcessing(t),(0,k.j1)(t)&&this.selectAll()}})}_beforeKeyProcessing(t){t.preventDefault(),this._layoutUtils.reset()}_processArrowKeys(t,e,i){var r=this._getFocusedItem();if(r){if(!e){var m=this._layoutUtils.getLayoutModel();if(!m)return;t*=m.itemPerRowCount}var D=this._getIndexByItem(r)+t;this._focusItemByIndex(D,!0,i)}}_processHomeEndKeys(t,e,i){this._focusItemByIndex(t,e,i)}_processPageChange(t,e){var i=this._getFocusedItem();if(i){var r=this._layoutUtils.getLayoutModel();if(r){var m=this._layoutUtils.createItemLayoutModel(this._getIndexByItem(i)),se=(t?Math.ceil:Math.floor)(m.itemRowIndex-(t?r.rowPerPageRate:-r.rowPerPageRate))*r.itemPerRowCount+m.itemColumnIndex;se<0?se=0:se>=this._getItemsLength()&&(se=this._getItemsLength()-1),this._focusItemByIndex(se,!0,e)}}}_processLongTap(t){var e=this._closestItemElement((0,l.Z)(t.target)),i=this._getIndexByItemElement(e);this._selection.changeItemSelection(i,{control:!0})}_attachEventHandlers(){"multiple"===this.option("selectionMode")&&d.Z.on(this._itemContainer(),pF,".".concat(this._itemContentClass()),t=>{this._processLongTap(t),t.stopPropagation()}),d.Z.on(this._itemContainer(),"mousedown selectstart",t=>{t.shiftKey&&t.preventDefault()})}_detachEventHandlers(){d.Z.off(this._itemContainer(),pF),d.Z.off(this._itemContainer(),"mousedown selectstart")}_itemContainer(){return this._$itemContainer}_itemClass(){return"dx-filemanager-thumbnails-item"}_itemDataKey(){return"dxFileManagerItemData"}_getDefaultItemTemplate(t,e){e.attr("title",this._getTooltipText(t));var i=this._itemThumbnailTemplate(t),r=(0,l.Z)("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),m=(0,l.Z)("<div>").addClass("dx-filemanager-thumbnails-item-name").text(t.fileItem.name);e.append(i,r,m)}_itemSelectHandler(t){var e={};"multiple"===this.option("selectionMode")&&(this._isPreserveSelectionMode||(this._isPreserveSelectionMode=(0,k.j1)(t)||t.shiftKey),e={control:this._isPreserveSelectionMode,shift:t.shiftKey});var i=this._getIndexByItemElement(t.currentTarget);this._selection.changeItemSelection(i,e)}_initSelectionModule(){super._initSelectionModule();var t=(0,y.l)(this._selection.options,{selectedKeys:this.option("selectedItemKeys"),onSelectionChanged:e=>{this.option("selectedItems",this._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),this._updateSelectedItems(e)}});this._selection=new kK.Z(t)}_updateSelectedItems(t){var e=t.addedItemKeys,i=t.removedItemKeys;if(this._rendered&&(e.length||i.length)){var r=this._selectionChangePromise;if(!this._rendering){var D,m=[],A=[];this._editStrategy.beginCache();for(var N=0;N<i.length;N++)D=this._getIndexByKey(i[N]),A.push(D),this._removeSelection(D);for(var Q=0;Q<e.length;Q++)D=this._getIndexByKey(e[Q]),m.push(D),this._addSelection(D);this._editStrategy.endCache(),this._updateSelection(m,A)}(0,P.gx)(r).done(()=>this._fireSelectionChangeEvent(t))}}_fireSelectionChangeEvent(t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(t)}_updateSelection(t,e){0===this.getSelectedItems().length&&(this._isPreserveSelectionMode=!1)}_normalizeSelectedItems(){var t=this._getKeysByItems(this.option("selectedItems")),e=this._selection.getSelectedItemKeys();return this._compareKeys(e,t)||this._selection.setSelection(t),(new P.BH).resolve().promise()}_focusOutHandler(){}_getItems(){return this.option("items")||[]}_getItemsLength(){return this._getItems().length}_getIndexByItemElement(t){return this._editStrategy.getNormalizedIndex(t)}_getItemByIndex(t){return this._getItems()[t]}_getFocusedItem(){return this.getItemByItemElement(this.option("focusedElement"))}_focusItem(t,e){this.option("focusedElement",this.getItemElementByItem(t)),e&&this._layoutUtils.scrollToItem(this._getIndexByItem(t))}_focusItemByIndex(t,e,i){if(t>=0&&t<this._getItemsLength()){var r=this._getItemByIndex(t);this._focusItem(r,e,i)}}_syncFocusedItemKey(){this._syncFocusedItemKeyDeferred||(this._syncFocusedItemKeyDeferred=new P.BH);var t=this._syncFocusedItemKeyDeferred;if(this._dataSource&&this._dataSource.isLoading())return t.promise();var e=this.option("focusedItemKey");if((0,w.$K)(e)){var r=this.option("items").find(m=>this.keyOf(m)===e);r?(this._focusItem(r,!0),t.resolve()):(this.option("focusedItemKey",void 0),t.reject())}else t.resolve();return this._syncFocusedItemKeyDeferred=null,t.promise()}_onFocusedItemChanged(){var t=this._getFocusedItem(),e=this.keyOf(t);e!==this.option("focusedItemKey")&&(this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(t))}_raiseFocusedItemChanged(t){var e={item:t,itemElement:this.option("focusedElement")};this._actions.onFocusedItemChanged(e)}_changeItemSelection(t,e){if(this.isItemSelected(t)!==e){var i=this.getItemElementByItem(t),r=this._getIndexByItemElement(i);this._selection.changeItemSelection(r,{control:this._isPreserveSelectionMode})}}_chooseSelectOption(){return"selectedItemKeys"}getSelectedItems(){return this._selection.getSelectedItems()}getItemElementByItem(t){return this._editStrategy.getItemElement(t)}getItemByItemElement(t){return this._getItemByIndex(this._getIndexByItemElement(t))}selectAll(){"multiple"===this.option("selectionMode")&&(this._selection.selectAll(),this._isPreserveSelectionMode=!0)}selectItem(t){this._changeItemSelection(t,!0)}deselectItem(t){this._changeItemSelection(t,!1)}clearSelection(){this._selection.deselectAll()}_optionChanged(t){switch(t.name){case"items":this._layoutUtils&&this._layoutUtils.updateItems(this.itemElements().first()),super._optionChanged(t);break;case"focusedItemKey":if(this._lockFocusedItemProcessing)break;(0,w.$K)(t.value)?this._syncFocusedItemKey().done(()=>{var e=this._getFocusedItem();this._raiseFocusedItemChanged(e)}):(this.option("focusedElement",null),this._raiseFocusedItemChanged(null));break;case"onItemEnterKeyPressed":case"onFocusedItemChanged":this._actions[t.name]=this._createActionByOption(t.name);break;default:super._optionChanged(t)}}},YK=class $K extends dF{_initMarkup(){super._initMarkup(),this.$element().addClass("dx-filemanager-thumbnails");var t=(0,k.V4)(hF.u,"dxFileManager_thumbnails");d.Z.on(this.$element(),t,this._onContextMenu.bind(this)),this._createItemList()}_createItemList(){var t=this._isMultipleSelectionMode()?"multiple":"single",e=(0,l.Z)("<div>").appendTo(this.$element());this._itemList=this._createComponent(e,UK,{dataSource:this._createDataSource(),selectionMode:t,selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),activeStateEnabled:!0,hoverStateEnabled:!0,loopItemFocus:!1,focusStateEnabled:!0,onItemEnterKeyPressed:this._tryOpen.bind(this),itemThumbnailTemplate:this._getItemThumbnailContainer.bind(this),getTooltipText:this._getTooltipText.bind(this),onSelectionChanged:this._onItemListSelectionChanged.bind(this),onFocusedItemChanged:this._onItemListFocusedItemChanged.bind(this)})}_onContextMenu(t){if(t.preventDefault(),t.stopPropagation(),this._isDesktop()){var e=null,i=(0,l.Z)(t.target).closest(this._getItemSelector()),r=null;i.length>0&&(r=this._itemList.getItemByItemElement(i),this._itemList.selectItem(r),e=this._getFileItemsForContextMenu(r)),this._showContextMenu(e,t.target,t,{itemData:r,itemElement:i.length?i:void 0})}}_getItemThumbnailCssClass(){return"dx-filemanager-thumbnails-item-thumbnail"}_getItemSelector(){return".".concat("dx-filemanager-thumbnails-item")}_getTooltipText(t){var e=t.fileItem;if(e.tooltipText)return e.tooltipText;var i="".concat(e.name,"\r\n");return e.isDirectory||(i+="".concat(yn.Z.format("dxFileManager-listThumbnailsTooltipTextSize"),": ").concat(YB(e.size),"\r\n")),i+"".concat(yn.Z.format("dxFileManager-listThumbnailsTooltipTextDateModified"),": ").concat(e.dateModified)}_onItemDblClick(t){var e=(0,l.Z)(t.currentTarget),i=this._itemList.getItemByItemElement(e);this._tryOpen(i)}_tryOpen(t){t&&this._raiseSelectedItemOpened(t)}_getItemsInternal(){return super._getItemsInternal().then(t=>{var e=new P.BH;return setTimeout(()=>e.resolve(t)),e.promise()})}_disableDragging(){return!1}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{focusStateEnabled:!0})}_onItemListSelectionChanged(t){var{addedItemKeys:e,removedItemKeys:i}=t,r=this.getSelectedItems(),m=r.map(A=>A.fileItem),D=m.map(A=>A.key);this._tryRaiseSelectionChanged({selectedItemInfos:r,selectedItems:m,selectedItemKeys:D,currentSelectedItemKeys:e,currentDeselectedItemKeys:i})}_onItemListFocusedItemChanged(t){var{item:e,itemElement:i}=t;this._isMultipleSelectionMode()||this._selectItemSingleSelection(e);var r=e?.fileItem||null;this._onFocusedItemChanged({item:r,itemKey:r?.key,itemElement:i||void 0})}_setSelectedItemKeys(t){this._itemList.option("selectedItemKeys",t)}_setFocusedItemKey(t){this._itemList.option("focusedItemKey",t)}refresh(t){var e={dataSource:this._createDataSource()};return t&&Object.prototype.hasOwnProperty.call(t,"focusedItemKey")&&(e.focusedItemKey=t.focusedItemKey),t&&Object.prototype.hasOwnProperty.call(t,"selectedItemKeys")&&(e.selectedItemKeys=t.selectedItemKeys),this._itemList.option(e),this._refreshDeferred=new P.BH,this._refreshDeferred.promise()}_deselectItem(t){var e=this._itemList.getItemElementByItem(t);this._itemList.unselectItem(e)}_selectItemSingleSelection(t){t?this._itemList.selectItem(t):this._itemList.clearSelection()}clearSelection(){this._itemList.clearSelection()}getSelectedItems(){return this._itemList.getSelectedItems()}};var hD="dx-filemanager-toolbar",gF="dx-filemanager-general-toolbar",qK=hD+"-separator-item",JK=hD+"-viewmode-item",fF={showNavPane:{location:"before"},create:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},upload:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},refresh:{location:"after",showText:"inMenu",cssClass:hD+"-has-large-icon",compactMode:{showText:"inMenu",locateInMenu:"auto"}},switchView:{location:"after"},download:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},move:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},copy:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},rename:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},delete:{location:"before",compactMode:{showText:"inMenu"}},clearSelection:{location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}},separator:{location:"before"}},tG=["visible","location","locateInMenu","disabled","showText"],nG=["accessKey","elementAttr","height","hint","icon","stylingMode","tabIndex","text","width"],iG=["separator","switchView"],mF={default:"dx-filemanager-i dx-filemanager-i-refresh",progress:"dx-filemanager-i dx-filemanager-i-progress",success:"dx-filemanager-i dx-filemanager-i-done",error:"dx-filemanager-i dx-filemanager-i-danger"};const aG=class oG extends ca.Z{_init(){super._init(),this._generalToolbarVisible=!0,this._refreshItemState={message:"",status:"default"}}_initMarkup(){this._createItemClickedAction(),this._$viewSwitcherPopup=(0,l.Z)("<div>").addClass("dx-filemanager-view-switcher-popup"),this._generalToolbar=this._createToolbar(this.option("generalItems"),!this._generalToolbarVisible),this._fileToolbar=this._createToolbar(this.option("fileItems"),this._generalToolbarVisible),this._$viewSwitcherPopup.appendTo(this.$element()),this.$element().addClass(hD+" "+gF)}_render(){super._render();var t=this._getVisibleToolbar();this._checkCompactMode(t)}_clean(){delete this._commandManager,delete this._itemClickedAction,delete this._$viewSwitcherPopup,delete this._generalToolbar,delete this._fileToolbar,super._clean()}_dimensionChanged(t){if(!t||"height"!==t){var e=this._getVisibleToolbar();this._checkCompactMode(e)}}_getVisibleToolbar(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}_createToolbar(t,e){var i=this._getPreparedItems(t),r=(0,l.Z)("<div>").appendTo(this.$element()),m=this._createComponent(r,Tb.Z,{items:i,visible:!e,onItemClick:D=>this._raiseItemClicked(D)});return m.compactMode=!1,m}_getPreparedItems(t){return t=t.map(e=>{var i=e;(0,w.HD)(e)&&(i={name:e});var r=i.name,m=this._configureItemByCommandName(r,i);return m.originalItemData=e,"separator"!==r&&this._setItemVisibleAvailable(m),m}),this._updateSeparatorsVisibility(t),t}_updateSeparatorsVisibility(t,e){var i=!1,r=this._getMenuItems(e),m={before:!1,center:!1,after:!1},D={before:this._getItemsInGroup(t,r,"before"),center:this._getItemsInGroup(t,r,"center"),after:this._getItemsInGroup(t,r,"after")};return t.forEach((A,N)=>{var Q=A.location;if("separator"===A.name){var se=m[Q]&&this._groupHasItemsAfter(D[Q]);A.visible!==se&&(i=!0,A.visible=se),m[Q]=!1}else this._isItemInMenu(r,A)||(m[Q]=m[Q]||A.visible),D[Q].shift()}),e&&i&&e.repaint(),i}_getMenuItems(t){return(t?t._getMenuItems():[]).map(i=>i.originalItemData)}_isItemInMenu(t,e){return!!t.length&&"never"!==(0,E.IS)(e.locateInMenu,"never")&&-1!==t.indexOf(e.originalItemData)}_getItemsInGroup(t,e,i){return t.filter(r=>r.location===i&&!this._isItemInMenu(e,r))}_groupHasItemsAfter(t){for(var e=0;e<t.length;e++)if("separator"!==t[e].name&&t[e].visible)return!0;return!1}_configureItemByCommandName(t,e){var i,r={},m=this._commandManager.getCommandByName(t);switch(m&&(r=this._createCommandItem(m)),t){case"separator":r=this._createSeparatorItem();break;case"switchView":r=this._createViewModeItem()}if(this._isDefaultItem(t)){(0,y.l)(!0,r,fF[t]);var A=r.cssClass||"";k0(r,e,tG),(0,w.$K)(e.options)&&k0(r.options,e.options,nG),k0(r.options,e,["text","icon"]),e.cssClass&&(A="".concat(A," ").concat(e.cssClass)),A&&(r.cssClass=A),(0,w.$K)(e.visible)||(r._autoHide=!0),"dxButton"===r.widget&&("inMenu"===r.showText&&!(0,w.$K)(r.options.hint)&&(r.options.hint=r.options.text),r.compactMode&&!(0,w.$K)(r.options.hint)&&this._configureHintForCompactMode(r))}else(0,y.l)(!0,r,e),r.widget||(r.widget="dxButton"),"dxButton"===r.widget&&!r.compactMode&&!r.showText&&r.options&&r.options.icon&&r.options.text&&(r.compactMode={showText:"inMenu"});return t&&!r.name&&(0,y.l)(r,{name:t}),r.location=(0,E.IS)(r.location,"before"),(0,w.$K)(null===(i=r.options)||void 0===i?void 0:i.stylingMode)||("dxButton"===r.widget&&(0,y.l)(!0,r,{options:{stylingMode:"text"}}),"dxSelectBox"===r.widget&&(0,y.l)(!0,r,{options:{stylingMode:"filled"}})),r}_isDefaultItem(t){return!!fF[t]}_createCommandItem(t){return{widget:"dxButton",options:{text:t.text,hint:t.hint,commandText:t.text,icon:t.icon,stylingMode:"text",onClick:e=>this._executeCommand(t)}}}_createSeparatorItem(){return{template:(t,e,i)=>{(0,l.Z)(i).addClass(qK)}}}_createViewModeItem(){var t=["details","thumbnails"].map(i=>{var{text:r,icon:m}=this._commandManager.getCommandByName(i);return{name:i,text:r,icon:m}}),e="thumbnails"===this.option("itemViewMode")?1:0;return{cssClass:JK,widget:"dxDropDownButton",options:{items:t,keyExpr:"name",selectedItemKey:this.option("itemViewMode"),displayExpr:" ",hint:t[e].text,stylingMode:"text",showArrowIcon:!1,useSelectMode:!0,dropDownOptions:{container:this._$viewSwitcherPopup},onItemClick:i=>this._executeCommand(i.itemData.name)}}}_configureHintForCompactMode(t){t.options.hint="",t.compactMode.options=t.compactMode.options||{},t.compactMode.options.hint=t.options.text}_checkCompactMode(t){t.compactMode&&this._toggleCompactMode(t,!1);var e=this._toolbarHasItemsOverflow(t);t.compactMode!==e?(t.compactMode||this._toggleCompactMode(t,e),t.compactMode=e):t.compactMode&&this._toggleCompactMode(t,!0)}_toolbarHasItemsOverflow(t){return(0,s.dz)(t.$element())<t._getItemsWidth()}_toggleCompactMode(t,e){var i=!1,r=t.option("items");r.forEach(m=>{if(m.compactMode){var D=null;e?(m.saved=this._getCompactModeOptions(m,m._available),D=m.compactMode):D=m.saved;var A=this._getCompactModeOptions(D,m._available);(0,y.l)(!0,m,A),i=!0}}),(i=this._updateSeparatorsVisibility(r)||i)&&t.repaint(),this._updateSeparatorsVisibility(r,t)}_getCompactModeOptions(t,e){var{showText:i,locateInMenu:r,options:m}=t;return{visible:e,showText:(0,E.IS)(i,"always"),locateInMenu:(0,E.IS)(r,"never"),options:{hint:m?.hint}}}_ensureAvailableCommandsVisible(t){var e=!1,i=t.option("items");i.forEach(r=>{if("separator"!==r.name){var m=r._available;this._setItemVisibleAvailable(r),r._available!==m&&(e=!0)}}),(e=this._updateSeparatorsVisibility(i)||e)&&t.repaint(),this._updateSeparatorsVisibility(i,t)}_setItemVisibleAvailable(t){var e,i=null===(e=t.originalItemData)||void 0===e?void 0:e.visible;t._available=this._isToolbarItemAvailable(t),t.visible=(0,w.$K)(i)?i:t._available}_fileToolbarHasEffectiveItems(){return this._fileToolbar.option("items").some(e=>this._isFileToolbarItemAvailable(e))}_executeCommand(t){this._commandManager.executeCommand(t)}_isToolbarItemAvailable(t){return this._isDefaultItem(t.name)&&t._autoHide?"refresh"===t.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:iG.indexOf(t.name)>-1||this._isCommandAvailable(t.name):(0,E.IS)(t.visible,!0)}_isFileToolbarItemAvailable(t){var{name:e,visible:i}=t;return!this._isDefaultItem(e)&&(0,E.IS)(i,!0)||"clearSelection"!==e&&"refresh"!==e&&this._isCommandAvailable(e)}_isCommandAvailable(t){return this._commandManager.isCommandAvailable(t,this.option("contextItems"))}_updateItemInToolbar(t,e,i){t.beginUpdate();for(var r=t.option("items"),m=0;m<r.length;m++)if(r[m].name===e){t.option("items[".concat(m,"]"),i);break}t.endUpdate()}_raiseItemClicked(t){var e=(0,y.l)(!0,{},t);e.itemData=t.itemData.originalItemData,this._itemClickedAction(e)}_createItemClickedAction(){this._itemClickedAction=this._createActionByOption("onItemClick")}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{commandManager:null,generalItems:[],fileItems:[],contextItems:[],itemViewMode:"details",onItemClick:null})}_optionChanged(t){var e=t.name;switch(e){case"commandManager":case"itemViewMode":case"generalItems":case"fileItems":this.repaint();break;case"contextItems":this._update();break;case"onItemClick":this._itemClickedAction=this._createActionByOption(e);break;default:super._optionChanged(t)}}updateItemPermissions(){this.repaint(),this._restoreRefreshItemState()}_restoreRefreshItemState(){this.updateRefreshItem(this._refreshItemState.message,this._refreshItemState.status)}updateRefreshItem(t,e){var i=null,r=yn.Z.format("dxFileManager-commandRefresh"),m="inMenu";this._isRefreshVisibleInFileToolbar=!1,this._refreshItemState={message:t,status:e},"default"===e?i={options:{icon:mF.default}}:(i={options:{icon:mF[e]}},this._isRefreshVisibleInFileToolbar=!0,r=t,m="always");var D=(0,y.l)({},i,{visible:this._isRefreshVisibleInFileToolbar});this._applyRefreshItemOptions(i,D),this._refreshItemTextTimeout=this._updateRefreshItemText("progress"===e,r,m)}_updateRefreshItemText(t,e,i){var r={showText:i,options:{text:e}};if(t)return setTimeout(()=>{this._applyRefreshItemOptions(r),this._refreshItemTextTimeout=void 0},500);this._refreshItemTextTimeout&&clearTimeout(this._refreshItemTextTimeout),this._applyRefreshItemOptions(r)}_applyRefreshItemOptions(t,e){e||(e=(0,y.l)({},t)),this._updateItemInToolbar(this._generalToolbar,"refresh",t),this._updateItemInToolbar(this._fileToolbar,"refresh",e)}_update(){var t=0===this.option("contextItems").length||!this._fileToolbarHasEffectiveItems();this._generalToolbarVisible!==t&&(this._generalToolbar.option("visible",t),this._fileToolbar.option("visible",!t),this._generalToolbarVisible=t,this.$element().toggleClass(gF,t),this.$element().toggleClass("dx-filemanager-file-toolbar",!t));var e=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(e),this._checkCompactMode(e)}get _commandManager(){return this.option("commandManager")}};var _F=u(4026),gc="dx-filemanager-progress-panel",sG="".concat(gc,"-container"),lG="".concat(gc,"-title"),uG="".concat(gc,"-title-text"),dG="".concat(gc,"-close-button"),cG="".concat(gc,"-infos-container"),vF="".concat(gc,"-separator"),hG="".concat(gc,"-info"),pG="".concat(gc,"-common"),gG="".concat(gc,"-info-with-details"),fG="".concat(gc,"-details"),Of="dx-filemanager-progress-box",mG="".concat(Of,"-error"),yF="".concat(Of,"-without-close-button"),_G="".concat(Of,"-image"),vG="".concat(Of,"-wrapper"),yG="".concat(Of,"-common"),CG="".concat(Of,"-progress-bar"),xG="".concat(Of,"-close-button");const EG=class wG extends ca.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._operationCount=0,this.$element().addClass(gc);var t=(0,l.Z)("<div>").appendTo(this.$element()),e=(0,l.Z)("<div>").addClass(sG).appendTo(t);this._scrollView=this._createComponent(t,Ef.Z,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var i=(0,l.Z)("<div>").addClass(lG).appendTo(e);(0,l.Z)("<div>").text(yn.Z.format("dxFileManager-notificationProgressPanelTitle")).addClass(uG).appendTo(i);var r=(0,l.Z)("<div>").addClass(dG).appendTo(i);this._createComponent(r,ey.Z,{icon:"close",stylingMode:"text",onClick:()=>this._raisePanelClosed()}),this._$infosContainer=(0,l.Z)("<div>").addClass(cG).appendTo(e),this._renderEmptyListText()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{onOperationClosed:null,onOperationCanceled:null,onOperationItemCanceled:null,onPanelClosed:null})}_initActions(){this._actions={onOperationClosed:this._createActionByOption("onOperationClosed"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled"),onPanelClosed:this._createActionByOption("onPanelClosed")}}_optionChanged(t){var e=t.name;switch(e){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}addOperation(t,e,i){this._operationCount?(0,l.Z)("<div>").addClass(vF).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var r={customCloseHandling:e,allowProgressAutoUpdate:(0,E.IS)(i,!0)},m=(0,l.Z)("<div>").addClass(hG).prependTo(this._$infosContainer);r.$info=m;var D=(0,l.Z)("<div>").addClass(pG).appendTo(m);return r.common=this._createProgressBox(D,{commonText:t,showCloseButton:!0,showCloseButtonAlways:e,onCloseButtonClick:()=>this._closeOperation(r)}),r}addOperationDetails(t,e,i){t.$info.addClass(gG);var r=(0,l.Z)("<div>").addClass(fG).appendTo(t.$info);t.details=e.map((m,D)=>(m.info=t,this._createDetailsItem(r,m,D,!1,i)))}_createDetailsItem(t,e,i,r,m){var D=(0,l.Z)("<div>").appendTo(t);return-1!==i&&D.addClass("dx-card"),this._createProgressBox(D,{commonText:e.commonText,imageUrl:e.imageUrl,skipProgressBox:r,showCloseButton:m,showCloseButtonAlways:m,onCloseButtonClick:()=>this._cancelOperationItem(e,i)})}completeOperationItem(t,e,i){t.allowProgressAutoUpdate&&this.updateOperationItemProgress(t,e,100,i),this._setCloseButtonVisible(t.details[e],!1)}updateOperationItemProgress(t,e,i,r){this.updateOperationCommonProgress(t,r),t.details&&t.details[e].progressBar.option("value",i)}updateOperationCommonProgress(t,e){var i;null===(i=t.common.progressBar)||void 0===i||i.option("value",e)}completeOperation(t,e,i,r){t.completed=!0,t.common.$commonText.text(e),i?this._removeProgressBar(t.common):t.allowProgressAutoUpdate&&this.updateOperationCommonProgress(t,100),r&&this._setProgressBarText(t.common,r),this._setCloseButtonVisible(t.common,!0)}completeSingleOperationWithError(t,e){var i,r=null===(i=t.details)||void 0===i?void 0:i[0];t.completed=!0,this._renderOperationError(r||t.common,e),this._setCloseButtonVisible(t.common,!0),r&&this._setCloseButtonVisible(r,!1)}addOperationDetailsError(t,e,i){var r=t.details[e];this._renderOperationError(r,i),this._setCloseButtonVisible(r,!1)}_renderError(t,e,i){(0,l.Z)("<div>").text(i).addClass(mG).appendTo(t)}_renderEmptyListText(){this._$infosContainer.text(yn.Z.format("dxFileManager-notificationProgressPanelEmptyListText"))}_renderOperationError(t,e){this._removeProgressBar(t),this._renderError(t.$wrapper,t.$commonText,e)}_removeProgressBar(t){t.progressBar&&(t.progressBar.dispose(),t.progressBar.$element().remove(),t.progressBar=null)}_createProgressBox(t,e){t.addClass(Of),e.showCloseButtonAlways||t.addClass(yF),e.imageUrl&&(0,W.H)(e.imageUrl).addClass(_G).appendTo(t);var i=(0,l.Z)("<div>").addClass(vG).appendTo(t),r=(0,l.Z)("<div>").addClass(yG).text(e.commonText).appendTo(i),m=null;if(!e.skipProgressBox){var D=(0,l.Z)("<div>").addClass(CG).appendTo(i);m=this._createComponent(D,_F.Z,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:(Q,se)=>this._getStatusString(Q,se)})}var A=null;if(e.showCloseButton){var N=(0,l.Z)("<div>").addClass(xG).appendTo(t);A=this._createComponent(N,ey.Z,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:e.showCloseButtonAlways,onClick:e.onCloseButtonClick})}return{$commonText:r,progressBar:m,$element:t,$wrapper:i,closeButton:A}}_setCloseButtonVisible(t,e){t.closeButton&&(t.$element.toggleClass(yF,!e),t.closeButton.option("visible",e))}_setProgressBarText(t,e){t.progressBar.option("statusFormat",()=>e)}_closeOperation(t){t.customCloseHandling&&!t.completed?(this._raiseOperationCanceled(t),this._setCloseButtonVisible(t.common,!1),t.details.forEach(e=>this._displayClosedOperationItem(e))):(this._raiseOperationClosed(t),t.$info.next(".".concat(vF)).remove(),t.$info.remove(),this._operationCount--,this._operationCount||this._renderEmptyListText())}_cancelOperationItem(t,e){this._raiseOperationItemCanceled(t,e),this._displayClosedOperationItem(t.info.details[e])}_displayClosedOperationItem(t){this._setProgressBarText(t,yn.Z.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(t,!1)}_getStatusString(t,e){return 1===t?yn.Z.format("Done"):Math.round(100*t)+"%"}_raiseOperationClosed(t){this._actions.onOperationClosed({info:t})}_raiseOperationCanceled(t){this._actions.onOperationCanceled({info:t})}_raiseOperationItemCanceled(t,e){this._actions.onOperationItemCanceled({item:t,itemIndex:e})}_raisePanelClosed(){this._actions.onPanelClosed()}};var Rb="dx-filemanager-progress-box",SG="".concat(Rb,"-error"),OG="".concat(Rb,"-image"),DG="".concat(Rb,"-wrapper"),TG="".concat(Rb,"-common"),LA="__operationInfoManager";class CF{constructor(t){var{onActionProgressStatusChanged:e,isActual:i}=t;this._id=(new vh.Z).toString(),this._isActual=i||!1,this._actionProgressStatus="default",this._raiseActionProgress=e}getId(){return this._id}isActual(){return this._isActual}createErrorDetailsProgressBox(t,e,i){var r=this._createDetailsItem(t,e);this.renderError(r.$wrapper,i)}renderError(t,e){(0,l.Z)("<div>").text(e).addClass(SG).appendTo(t)}isActionProgressStatusDefault(){return"default"===this._actionProgressStatus}_createDetailsItem(t,e){var i=(0,l.Z)("<div>").appendTo(t);return this._createProgressBox(i,{commonText:e.commonText,imageUrl:e.imageUrl})}_createProgressBox(t,e){t.addClass(Rb),e.imageUrl&&(0,W.H)(e.imageUrl).addClass(OG).appendTo(t);var i=(0,l.Z)("<div>").addClass(DG).appendTo(t);return{$commonText:(0,l.Z)("<div>").addClass(TG).text(e.commonText).appendTo(i),$element:t,$wrapper:i}}}class IG extends CF{addOperation(){return{[LA]:this._id}}addOperationDetails(){}updateOperationItemProgress(){}completeOperationItem(){}completeOperation(){}completeSingleOperationWithError(){}addOperationDetailsError(){}handleDimensionChanged(){return!1}ensureProgressPanelCreated(){}tryHideActionProgress(){this._updateActionProgress("","default")}updateActionProgressStatus(){this._updateActionProgress("","default")}_updateActionProgress(t,e){"default"!==e&&"progress"!==e||(this._actionProgressStatus=e,this._raiseActionProgress(t,e))}hasNoOperations(){return!0}get _operationInProgressCount(){return 0}set _operationInProgressCount(t){}get _failedOperationCount(){return 0}set _failedOperationCount(t){}}class MG extends CF{constructor(t){super(t),this._failedOperationCount=0,this._operationInProgressCount=0}addOperation(t,e,i){this._operationInProgressCount++;var r=this._progressPanel.addOperation(t,e,i);return r[LA]=this._id,this._updateActionProgress(t,"progress"),r}addOperationDetails(t,e,i){this._progressPanel.addOperationDetails(t,e,i)}updateOperationItemProgress(t,e,i,r){this._progressPanel.updateOperationItemProgress(t,e,i,r)}completeOperationItem(t,e,i){this._progressPanel.completeOperationItem(t,e,i)}finishOperation(t,e){this._progressPanel.updateOperationCommonProgress(t,e)}completeOperation(t,e,i,r){this._operationInProgressCount--,i&&this._failedOperationCount++,this._progressPanel.completeOperation(t,e,i,r)}completeSingleOperationWithError(t,e){this._progressPanel.completeSingleOperationWithError(t,e.detailErrorText),this._notifyError(e)}addOperationDetailsError(t,e){this._progressPanel.addOperationDetailsError(t,e.itemIndex,e.detailErrorText),this._notifyError(e)}handleDimensionChanged(){return this._progressPanel&&this._progressPanel.$element().detach(),!0}ensureProgressPanelCreated(t,e){if(this._progressPanel)this._progressPanel.$element().appendTo(t);else{var i=(0,l.Z)("<div>").appendTo(t),r=this._getProgressPanelComponent();this._progressPanel=new r(i,(0,y.l)({},e,{onOperationClosed:m=>{var{info:D}=m;return this._onProgressPanelOperationClosed(D)}}))}}_getProgressPanelComponent(){return EG}_onProgressPanelOperationClosed(t){t.hasError&&(this._failedOperationCount--,this.tryHideActionProgress())}tryHideActionProgress(){this.hasNoOperations()&&this._updateActionProgress("","default")}updateActionProgressStatus(t){t&&this._updateActionProgress("",0===this._failedOperationCount?"success":"error")}_notifyError(t){var e=this.hasNoOperations()?"default":"error";this._updateActionProgress(t.commonErrorText,e)}_updateActionProgress(t,e){this._actionProgressStatus=e,this._raiseActionProgress(t,e)}hasNoOperations(){return 0===this._operationInProgressCount&&0===this._failedOperationCount}get _operationInProgressCount(){return this._operationInProgressCountInternal}set _operationInProgressCount(t){this._operationInProgressCountInternal=t}get _failedOperationCount(){return this._failedOperationCountInternal}set _failedOperationCount(t){this._failedOperationCountInternal=t}}var AG=(0,mi.Jj)(),L0="dx-filemanager-notification",xF="".concat(L0,"-drawer"),bF="".concat(xF,"-panel"),kG="".concat(L0,"-popup"),RG="".concat(L0,"-popup-error"),LG="".concat(L0,"-common"),BG="".concat(L0,"-separator"),FG="".concat(L0,"-details"),VG="".concat(L0,"-common-no-item");class NG extends ca.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._isInAdaptiveState=this._isSmallScreen(),this._managerMap={},this._notificationManagerStubId=null,this._setNotificationManager();var t=this.option("progressPanelContainer"),e=(0,l.Z)("<div>").addClass(xF).appendTo(t);(0,l.Z)("<div>").addClass(bF).appendTo(e);var i=(0,y.l)({opened:!1,position:"right",template:D=>this._ensureProgressPanelCreated(D)},this._getProgressDrawerAdaptiveOptions());this._progressDrawer=this._createComponent(e,MA,i);var r=e.find(".".concat(bF)).first(),m=this.option("contentTemplate");(0,w.mf)(m)&&m(r,this)}_setNotificationManager(t){if(t=(0,y.l)({onActionProgressStatusChanged:this._raiseActionProgress.bind(this)},t),!this._notificationManagerStubId){var e=new IG(t);this._notificationManagerStubId=e.getId(),this._managerMap[this._notificationManagerStubId]=e}if(!this._isProgressDrawerDisabled()){var i=this._getProgressManagerComponent();t.isActual=!0;var r=new i(t);this._managerMap[r.getId()]=r}}_getNotificationManager(t){var e=t?.[LA]||this._getActualNotificationManagerId();return this._managerMap[e]||this._managerMap[this._notificationManagerStubId]}_clearManagerMap(){var t=this._managerMap[this._notificationManagerStubId];delete this._managerMap,this._managerMap={[this._notificationManagerStubId]:t}}_getActualNotificationManagerId(){return Object.keys(this._managerMap).filter(t=>this._managerMap[t].isActual())[0]}tryShowProgressPanel(){var t=new P.BH,e=this._getNotificationManager();return e.isActionProgressStatusDefault()||this._isProgressDrawerOpened()||this._isProgressDrawerDisabled()?t.resolve().promise():(setTimeout(()=>{this._progressDrawer.show().done(t.resolve),this._hidePopup(),e.tryHideActionProgress()}),t.promise())}addOperation(t,e,i){return this._getNotificationManager().addOperation(t,e,i)}addOperationDetails(t,e,i){this._getNotificationManager(t).addOperationDetails(t,e,i)}updateOperationItemProgress(t,e,i,r){this._getNotificationManager(t).updateOperationItemProgress(t,e,i,r)}completeOperationItem(t,e,i){this._getNotificationManager(t).completeOperationItem(t,e,i)}finishOperation(t,e){this._getNotificationManager(t).finishOperation(t,e)}completeOperation(t,e,i,r){var m=this._getNotificationManager(t);i||this._showPopup(e),m.completeOperation(t,e,i,r),this._isProgressDrawerOpened()&&m.hasNoOperations()?m.tryHideActionProgress():m.updateActionProgressStatus(t)}completeSingleOperationWithError(t,e){this._getNotificationManager(t).completeSingleOperationWithError(t,e),this._showPopupError(e)}addOperationDetailsError(t,e){this._getNotificationManager(t).addOperationDetailsError(t,e),this._showPopupError(e)}_hideProgressPanel(){setTimeout(()=>this._progressDrawer.hide())}_isSmallScreen(){return!!(0,mi.Ym)()&&(0,s.dz)(AG)<=1e3}_dimensionChanged(t){t&&"height"===t||this._checkAdaptiveState()}_checkAdaptiveState(){var t=this._isInAdaptiveState;if(this._isInAdaptiveState=this._isSmallScreen(),t!==this._isInAdaptiveState&&this._progressDrawer&&this._getNotificationManager().handleDimensionChanged()){var i=this._getProgressDrawerAdaptiveOptions();this._progressDrawer.option(i)}}_getProgressDrawerAdaptiveOptions(){return this._isInAdaptiveState?{openedStateMode:"overlap",shading:!0,hideOnOutsideClick:!0}:{openedStateMode:"shrink",shading:!1,hideOnOutsideClick:!1}}_ensureProgressPanelCreated(t){this._getNotificationManager().ensureProgressPanelCreated(t,{onOperationCanceled:i=>{var{info:r}=i;return this._raiseOperationCanceled(r)},onOperationItemCanceled:i=>{var{item:r,itemIndex:m}=i;return this._raiseOperationItemCanceled(r,m)},onPanelClosed:()=>this._hideProgressPanel()})}_getProgressManagerComponent(){return MG}_isProgressDrawerDisabled(){return!this.option("showProgressPanel")}_isProgressDrawerOpened(){return this._progressDrawer.option("opened")}_hidePopup(t){!this.option("showNotificationPopup")&&!t||this._getNotificationPopup().hide()}_showPopup(t,e){this._isProgressDrawerOpened()||!this.option("showNotificationPopup")||(this._getNotificationPopup().$wrapper().toggleClass(RG,!!e),this._getNotificationPopup().option("contentTemplate",t),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())}_showPopupError(t){if(this.option("showNotificationPopup")){var e=this._getNotificationManager(),i=(0,l.Z)("<div>"),r=(0,l.Z)("<div>").addClass(LG).text(t.commonErrorText),m=(0,l.Z)("<div>").addClass(BG);(0,l.Z)("<div>").appendTo(m);var D=(0,l.Z)("<div>").addClass(FG);t.item?e.createErrorDetailsProgressBox(D,t.item,t.detailErrorText):(r.addClass(VG),e.renderError(D,t.detailErrorText)),i.append(r,m,D),this._showPopup(i,!0)}}_getNotificationPopup(){if(!this._notificationPopup){var t=(0,l.Z)("<div>").appendTo(this.$element());this._notificationPopup=this._createComponent(t,Tp.Z,{container:this.$element(),width:"auto",height:"auto",showTitle:!1,dragEnabled:!1,shading:!1,visible:!1,hideOnOutsideClick:!0,animation:{duration:0},position:{my:"right top",at:"right top",of:this.option("positionTarget"),offset:"-10 -5"},_wrapperClassExternal:kG})}return this._notificationPopup}_raiseActionProgress(t,e){this._actions.onActionProgress({message:t,status:e})}_raiseOperationCanceled(t){this._actions.onOperationCanceled({info:t})}_raiseOperationItemCanceled(t,e){this._actions.onOperationItemCanceled({item:t,itemIndex:e})}_initActions(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null,showProgressPanel:!0,showNotificationPopup:!0})}_optionChanged(t){var e=t.name;switch(e){case"progressPanelContainer":case"contentTemplate":break;case"showProgressPanel":this._setNotificationManager(),this._getNotificationManager().updateActionProgressStatus(),t.value||(this._hideProgressPanel(),this._clearManagerMap()),this._progressDrawer.repaint();break;case"showNotificationPopup":t.value||this._hidePopup(!0);break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}}const BA=class WG extends ca.Z{_initMarkup(){var t;super._initMarkup(),this._createOnClosedAction();var e=this._getDialogOptions(),i=(0,l.Z)("<div>").appendTo(this.$element()),r={showTitle:!0,title:e.title,visible:!1,hideOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._applyDialogChanges.bind(this)}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:yn.Z.format("dxFileManager-dialogButtonCancel"),onClick:this._closeDialog.bind(this)}}],onInitialized:m=>{var{component:D}=m;D.registerKeyHandler("enter",this._applyDialogChanges.bind(this))},onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this),_wrapperClassExternal:"".concat("dx-filemanager-dialog-popup"," ").concat(null!==(t=e.popupCssClass)&&void 0!==t?t:"")};(0,w.$K)(e.height)&&(r.height=e.height),(0,w.$K)(e.maxHeight)&&(r.maxHeight=e.maxHeight),this._popup=this._createComponent(i,Tp.Z,r)}show(){this._dialogResult=null,this._popup.show()}_getDialogOptions(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}_createContentTemplate(t){this._$contentElement=(0,l.Z)("<div>").appendTo(t).addClass("dx-filemanager-dialog");var e=this._getDialogOptions().contentCssClass;e&&this._$contentElement.addClass(e)}_getDialogResult(){return null}_applyDialogChanges(){var t=this._getDialogResult();t&&(this._dialogResult=t,this._closeDialog())}_closeDialog(){this._popup.hide()}_onPopupHidden(){this._onClosedAction({dialogResult:this._dialogResult})}_onPopupShown(){}_createOnClosedAction(){this._onClosedAction=this._createActionByOption("onClosed")}_setTitle(t){this._popup.option("title",t)}_setApplyButtonOptions(t){this._popup.option("toolbarItems[0].options",t)}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{onClosed:null})}_optionChanged(t){"onClosed"===t.name?this._createOnPathChangedAction():super._optionChanged(t)}},wF=class KG extends BA{show(t){t=t||"",this._nameTextBox?this._nameTextBox.option("value",t):this._initialNameValue=t,super.show()}_onPopupShown(){if(this._nameTextBox){var t=this._nameTextBox._input();t.length&&t[0].select(),this._nameTextBox.focus()}}_getDialogOptions(){return(0,y.l)(super._getDialogOptions(),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})}_createContentTemplate(t){super._createContentTemplate(t),this._nameTextBox=this._createComponent((0,l.Z)("<div>"),iD.Z,{value:this._initialNameValue,onEnterKey:()=>this._hasCompositionJustEnded&&this._applyDialogChanges(),onKeyDown:e=>this._checkCompositionEnded(e)}),this._$contentElement.append(this._nameTextBox.$element())}_checkCompositionEnded(t){var{event:e}=t;this._hasCompositionJustEnded=229!==e.which}_getDialogResult(){var t=this._nameTextBox.option("value");return t?{name:t}:null}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{title:"",buttonText:""})}},YG=class $G extends BA{show(){var t;this._setSelectedDirInfo(null),null===(t=this._filesTreeView)||void 0===t||t.refresh(),super.show()}switchToCopyDialog(t){this._targetItemInfos=t,this._setTitle(yn.Z.format("dxFileManager-dialogDirectoryChooserCopyTitle")),this._setApplyButtonOptions({text:yn.Z.format("dxFileManager-dialogDirectoryChooserCopyButtonText"),disabled:!0})}switchToMoveDialog(t){this._targetItemInfos=t,this._setTitle(yn.Z.format("dxFileManager-dialogDirectoryChooserMoveTitle")),this._setApplyButtonOptions({text:yn.Z.format("dxFileManager-dialogDirectoryChooserMoveButtonText"),disabled:!0})}_getDialogOptions(){return(0,y.l)(super._getDialogOptions(),{contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})}_createContentTemplate(t){super._createContentTemplate(t),this._filesTreeView=this._createComponent((0,l.Z)("<div>"),sF,{getDirectories:this.option("getDirectories"),getCurrentDirectory:()=>this._getDialogSelectedDirectory(),onDirectoryClick:e=>this._onFilesTreeViewDirectoryClick(e),onFilesTreeViewContentReady:()=>this._toggleUnavailableLocationsDisabled(!0)}),this._$contentElement.append(this._filesTreeView.$element())}_getDialogResult(){var t=this._getDialogSelectedDirectory();return t&&{folder:t}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{getItems:null})}_getDialogSelectedDirectory(){return this._selectedDirectoryInfo}_onFilesTreeViewDirectoryClick(t){var{itemData:e}=t;this._setSelectedDirInfo(e),this._filesTreeView.updateCurrentDirectory()}_setSelectedDirInfo(t){this._selectedDirectoryInfo=t,this._setApplyButtonOptions({disabled:!t})}_onPopupShown(){this._toggleUnavailableLocationsDisabled(!0),super._onPopupShown()}_onPopupHidden(){this._toggleUnavailableLocationsDisabled(!1),super._onPopupHidden()}_toggleUnavailableLocationsDisabled(t){if(this._filesTreeView){var e=this._getLocationsToProcess(t);this._filesTreeView.toggleDirectoryExpandedStateRecursive(e.locationsToExpand[0],t).then(()=>this._filesTreeView.toggleDirectoryLineExpandedState(e.locationsToCollapse,!t).then(()=>e.locationKeysToDisable.forEach(i=>this._filesTreeView.toggleNodeDisabledState(i,t))))}}_getLocationsToProcess(t){var e={},i={};this._targetItemInfos.forEach(D=>{D.parentDirectory&&(e[D.parentDirectory.getInternalKey()]=D.parentDirectory),D.fileItem.isDirectory&&(i[D.getInternalKey()]=D)});var r=XB(e),m=XB(i);return{locationsToExpand:t?r.values:[],locationsToCollapse:t?m.values:[],locationKeysToDisable:r.keys.concat(...m.keys)}}},QG=class JG extends BA{show(t){var{itemName:e,itemCount:i}=t,r=1===i?yn.Z.format("dxFileManager-dialogDeleteItemSingleItemConfirmation",e):yn.Z.format("dxFileManager-dialogDeleteItemMultipleItemsConfirmation",i);this._$text?this._$text.text(r):this._initialText=r,super.show()}_getDialogOptions(){return(0,y.l)(super._getDialogOptions(),{title:yn.Z.format("dxFileManager-dialogDeleteItemTitle"),buttonText:yn.Z.format("dxFileManager-dialogDeleteItemButtonText"),contentCssClass:"dx-filemanager-dialog-delete-item",popupCssClass:"dx-filemanager-dialog-delete-item-popup",height:"auto",maxHeight:"80vh"})}_createContentTemplate(t){super._createContentTemplate(t),this._$text=(0,l.Z)("<div>").text(this._initialText).appendTo(this._$contentElement),this._createComponent(this._$contentElement,Ef.Z,{width:"100%",height:"100%"})}_getDialogResult(){return{}}},oj=class rj extends ca.Z{_initMarkup(){this._initActions(),this.$element().addClass("dx-filemanager-fileuploader"),this._uploaderInfos=[],this._createInternalFileUploader(),this._createDropZonePlaceholder(),this._setDropZonePlaceholderVisible(!1),super._initMarkup()}_createInternalFileUploader(){var t=this._getController().chunkSize,e=(0,l.Z)("<div>").appendTo(this.$element()),i=this._createComponent(e,EB.Z,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:t,dropZone:this.option("dropZone"),onValueChanged:m=>this._onFileUploaderValueChanged(m),onProgress:m=>this._onFileUploaderProgress(m),onUploaded:m=>this._onFileUploaderUploaded(m),onFilesUploaded:m=>this._onFileUploaderAllFilesUploaded(m),onUploadAborted:m=>this._onFileUploaderUploadAborted(m),onUploadError:m=>this._onFileUploaderUploadError(m),onDropZoneEnter:()=>this._setDropZonePlaceholderVisible(!0),onDropZoneLeave:()=>this._setDropZonePlaceholderVisible(!1)});i.option({uploadChunk:(m,D)=>this._fileUploaderUploadChunk(i,m,D),abortUpload:(m,D)=>this._fileUploaderAbortUpload(i,m,D)}),i._shouldRaiseDragLeaveBase=i._shouldRaiseDragLeave,i._shouldRaiseDragLeave=m=>this._shouldRaiseDragLeave(m,i),this._uploaderInfos.push({fileUploader:i})}tryUpload(){var t=this._findAndUpdateAvailableUploaderInfo();t&&t.fileUploader._selectButtonClickHandler()}cancelUpload(t){this._cancelUpload(t)}cancelFileUpload(t,e){this._cancelUpload(t,e)}_cancelUpload(t,e){var{fileUploader:i}=this._findUploaderInfoBySessionId(t);i.abortUpload(e)}_fileUploaderUploadChunk(t,e,i){var{session:r,fileIndex:m}=this._findSessionByFile(t,e),D=r.controller;return i.fileIndex=m,D.uploadFileChunk(e,i)}_fileUploaderAbortUpload(t,e,i){var{session:r,fileIndex:m}=this._findSessionByFile(t,e),D=r.controller;return i.fileIndex=m,D.abortFileUpload(e,i)}_onFileUploaderValueChanged(t){var{component:e,value:i}=t;if(0!==i.length){var r=i.slice(),m=this._findUploaderInfo(e);this._uploadFiles(m,r),setTimeout(()=>{this._findAndUpdateAvailableUploaderInfo()||this._createInternalFileUploader()})}}_onFileUploaderProgress(t){var{component:e,file:i,bytesLoaded:r,bytesTotal:m}=t,{session:D,fileIndex:A}=this._findSessionByFile(e,i),N=0!==m?r/m:1,Q=e.option("progress")/100;this._raiseUploadProgress({sessionId:D.id,fileIndex:A,commonValue:Q,fileValue:N})}_onFileUploaderAllFilesUploaded(t){var{component:e}=t,{session:i}=this._findSessionByFile(e,e._files[0].value);this._raiseUploadFinished({sessionId:i.id,commonValue:e.option("progress")/100})}_onFileUploaderUploaded(t){var{component:e,file:i}=t;this._getDeferredForFile(e,i).resolve()}_onFileUploaderUploadAborted(t){var{component:e,file:i}=t;this._getDeferredForFile(e,i).resolve({canceled:!0})}_onFileUploaderUploadError(t){var{component:e,file:i,error:r}=t;this._getDeferredForFile(e,i).reject(r)}_createDropZonePlaceholder(){this._$dropZonePlaceholder=(0,l.Z)("<div>").addClass("dx-filemanager-fileuploader-dropzone-placeholder").appendTo(this.option("dropZonePlaceholderContainer"))}_adjustDropZonePlaceholder(){var t=this.option("dropZone");if((0,mi.Ym)()&&0!==t.length){var e=parseFloat(this._$dropZonePlaceholder.css("borderTopWidth")),i=parseFloat(this._$dropZonePlaceholder.css("borderLeftWidth")),r=this.option("dropZonePlaceholderContainer"),m=parseFloat(r.css("borderBottomWidth")),D=parseFloat(r.css("borderLeftWidth")),A=(0,s.fA)(r),N=r.offset(),Q=t.offset();this._$dropZonePlaceholder.css({top:Q.top-N.top-A-m,left:Q.left-N.left-D}),(0,s.QQ)(this._$dropZonePlaceholder,t.get(0).offsetHeight-2*e),(0,s.cl)(this._$dropZonePlaceholder,t.get(0).offsetWidth-2*i)}}_setDropZonePlaceholderVisible(t){t?(this._adjustDropZonePlaceholder(),this._$dropZonePlaceholder.css("display","")):this._$dropZonePlaceholder.css("display","none")}_shouldRaiseDragLeave(t,e){return e.isMouseOverElement(t,this.option("splitterElement"))||e._shouldRaiseDragLeaveBase(t,!0)}_uploadFiles(t,e){this._setDropZonePlaceholderVisible(!1);var i=(new vh.Z).toString(),r=this._getController(),m=e.map(()=>new P.BH);return t.session={id:i,controller:r,files:e,deferreds:m},this._raiseUploadSessionStarted({sessionId:i,deferreds:m,files:e}),AA(m).always(()=>setTimeout(()=>{t.fileUploader.reset(),t.session=null}))}_getDeferredForFile(t,e){var{session:i,fileIndex:r}=this._findSessionByFile(t,e);return i.deferreds[r]}_findSessionByFile(t,e){var r=this._findUploaderInfo(t).session,m=r.files.indexOf(e);return{session:r,fileIndex:m}}_findUploaderInfoBySessionId(t){for(var e=0;e<this._uploaderInfos.length;e++){var i=this._uploaderInfos[e],r=i.session;if(r&&r.id===t)return i}return null}_findAndUpdateAvailableUploaderInfo(){for(var t,e=null,i=0;i<this._uploaderInfos.length;i++){var r=this._uploaderInfos[i];r.fileUploader.option("dropZone",""),!e&&!r.session&&(e=r)}return null===(t=e)||void 0===t||t.fileUploader.option("dropZone",this.option("dropZone")),e}_findUploaderInfo(t){for(var e=0;e<this._uploaderInfos.length;e++){var i=this._uploaderInfos[e];if(i.fileUploader===t)return i}return null}_getController(){return this.option("getController")()}_raiseUploadSessionStarted(t){this._actions.onUploadSessionStarted({sessionInfo:t})}_raiseUploadProgress(t){this._actions.onUploadProgress(t)}_raiseUploadFinished(t){this._actions.onUploadFinished(t)}_initActions(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress"),onUploadFinished:this._createActionByOption("onUploadFinished")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{getController:null,onUploadSessionStarted:null,onUploadProgress:null,onUploadFinished:null,splitterElement:null})}_optionChanged(t){var e=t.name;switch(e){case"getController":this.repaint();break;case"onUploadSessionStarted":case"onUploadProgress":case"onUploadFinished":this._actions[e]=this._createActionByOption(e);break;case"dropZone":this._findAndUpdateAvailableUploaderInfo(),this._adjustDropZonePlaceholder();break;case"dropZonePlaceholderContainer":this._$dropZonePlaceholder.detach(),this._$dropZonePlaceholder.appendTo(t.value);break;case"splitterElement":break;default:super._optionChanged(t)}}};class lj{constructor(t,e,i){this._actionMetadata=t,this._itemInfos=e,this._onlyFiles=!this._actionMetadata.affectsAllItems&&this._itemInfos.every(r=>!r.fileItem.isDirectory),this._items=this._itemInfos.map(r=>r.fileItem),this._multipleItems=this._items.length>1,this._location=i.getDisplayName(),this._singleRequest=!0,this._completedItems=[],this._commonProgress=0,this._errorState={failedCount:0},this._itemNewName=""}completeOperationItem(t){this._singleRequest?this._completedItems=[...this._items]:this._completedItems.push(this._items[t]),this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)}processSingleRequestError(t){this._errorState.failedCount=1,this._errorState.commonErrorText=this._multipleItems?this._actionMetadata.commonErrorMessage:this._actionMetadata.singleItemErrorMessage;var e=this._multipleItems?-1:1,i=this.getItemForSingleRequestError();this._setCurrentDetailError(e,i,t)}processMultipleRequestError(t,e){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?(0,na.WU)(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var i=this.getItemForMultipleRequestError(t);this._setCurrentDetailError(t,i,e)}hasModifiedItems(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems}getItemForSingleRequestError(){return this._multipleItems?null:this._itemInfos[0]}getItemForMultipleRequestError(t){return this._itemInfos[t]}getItemName(t,e){var r=(this.singleRequest?this.getItemForSingleRequestError():this.getItemForMultipleRequestError(e))?.fileItem.name;return this.itemNewName&&this._isItemExistsErrorCode(t)&&(r=this.itemNewName),r}_isItemExistsErrorCode(t){return t===Ol_DirectoryExists||t===Ol_FileExists}_setCurrentDetailError(t,e,i){this._errorState.currentDetailError={itemIndex:t,itemInfo:e,errorText:i}}_hasCompletedItems(){return this._completedItems.length>0}get actionMetadata(){return this._actionMetadata}get itemInfos(){return this._itemInfos}get itemNewName(){return this._itemNewName}set itemNewName(t){this._itemNewName=t}get errorState(){return this._errorState}get singleRequest(){return this._singleRequest}set singleRequest(t){this._singleRequest=t}get multipleItems(){return this._multipleItems}get onlyFiles(){return this._onlyFiles}get processingMessage(){return this._multipleItems?(0,na.WU)(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):(0,na.WU)(this._actionMetadata.singleItemProcessingMessage,this._location)}get successMessage(){return this._hasCompletedItems()?this._multipleItems?(0,na.WU)(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):(0,na.WU)(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?(0,na.WU)(this._actionMetadata.multipleItemsErrorMessage,this._items.length):this._actionMetadata.singleItemErrorMessage}get completionMessage(){return this.success?this.successMessage:this.errorState.commonErrorText}get statusText(){return this.success&&!this._hasCompletedItems()?this._actionMetadata.canceledMessage:void 0}get commonProgress(){return this._commonProgress}get success(){return!this._errorState.failedCount}}const uj=class sj extends ca.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._controller=this.option("controller"),this._controller.on("EditActionStarting",this._onEditActionStarting.bind(this)),this._controller.on("EditActionResultAcquired",this._onEditActionResultAcquired.bind(this)),this._controller.on("EditActionItemError",this._onEditActionItemError.bind(this)),this._controller.on("EditActionError",this._onEditActionError.bind(this)),this._controller.on("CompleteEditActionItem",this._onCompleteEditActionItem.bind(this)),this._controller.on("CompleteEditAction",this._onCompleteEditAction.bind(this)),this._model=this.option("model"),this._uploadOperationInfoMap={},this._dialogManager=new class ej{constructor(t,e){this._$element=t,this._options=e;var i={onClosed:this._options.onDialogClosed,rtlEnabled:this._options.rtlEnabled},r=(0,l.Z)("<div>").appendTo(this._$element);this._chooseDirectoryDialog=new YG(r,(0,y.l)(i,this._options.chooseDirectoryDialog));var m=(0,l.Z)("<div>").appendTo(this._$element);this._renameItemDialog=new wF(m,(0,y.l)(i,{title:yn.Z.format("dxFileManager-dialogRenameItemTitle"),buttonText:yn.Z.format("dxFileManager-dialogRenameItemButtonText")}));var D=(0,l.Z)("<div>").appendTo(this._$element);this._createItemDialog=new wF(D,(0,y.l)(i,{title:yn.Z.format("dxFileManager-dialogCreateDirectoryTitle"),buttonText:yn.Z.format("dxFileManager-dialogCreateDirectoryButtonText")}));var A=(0,l.Z)("<div>").appendTo(this._$element);this._deleteItemDialog=new QG(A,i)}getCopyDialog(t){return this._chooseDirectoryDialog.switchToCopyDialog(t),this._chooseDirectoryDialog}getMoveDialog(t){return this._chooseDirectoryDialog.switchToMoveDialog(t),this._chooseDirectoryDialog}getRenameItemDialog(){return this._renameItemDialog}getCreateItemDialog(){return this._createItemDialog}getDeleteItemDialog(){return this._deleteItemDialog}updateDialogRtl(t){[this._chooseDirectoryDialog,this._renameItemDialog,this._createItemDialog,this._deleteItemDialog].forEach(e=>{e.option("rtlEnabled",t)})}}(this.$element(),{chooseDirectoryDialog:{provider:this._controller._fileProvider,getDirectories:this._controller.getDirectories.bind(this._controller),getCurrentDirectory:this._controller.getCurrentDirectory.bind(this._controller)},rtlEnabled:this.option("rtlEnabled"),onDialogClosed:this._onDialogClosed.bind(this)}),this._fileUploader=this._createFileUploader();var t=this.option("notificationControl");t&&this._initNotificationControl(t),this._createMetadataMap()}_initNotificationControl(t){this._notificationControl=t,this._notificationControl.option({onOperationCanceled:e=>{var{info:i}=e;return this._onCancelUploadSession(i)},onOperationItemCanceled:e=>{var{item:i,itemIndex:r}=e;return this._onCancelFileUpload(i,r)}})}_getFileUploaderComponent(){return oj}_createFileUploader(){var t=(0,l.Z)("<div>").appendTo(this.$element());return this._createComponent(t,this._getFileUploaderComponent(),{getController:this._getFileUploaderController.bind(this),dropZonePlaceholderContainer:this.option("uploadDropZonePlaceholderContainer"),onUploadSessionStarted:e=>this._onUploadSessionStarted(e),onUploadProgress:e=>this._onUploadProgress(e),onUploadFinished:e=>this._onUploadFinished(e)})}setUploaderDropZone(t){this._fileUploader.option("dropZone",t)}setUploaderSplitterElement(t){this._fileUploader.option("splitterElement",t)}_getFileUploaderController(){var t=this.uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:(e,i)=>this._controller.uploadFileChunk(e,i,t),abortFileUpload:(e,i)=>this._controller.abortFileUpload(e,i,t)}}_createMetadataMap(){this._metadataMap={create:{action:t=>this._tryCreate(t),affectsAllItems:!0,singleItemProcessingMessage:yn.Z.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:yn.Z.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:yn.Z.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:yn.Z.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:t=>this._tryRename(t),singleItemProcessingMessage:yn.Z.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:yn.Z.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:yn.Z.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:yn.Z.format("dxFileManager-editingRenameCommonErrorMessage")},delete:{action:t=>this._tryDelete(t),singleItemProcessingMessage:yn.Z.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:yn.Z.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:yn.Z.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:yn.Z.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:yn.Z.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:yn.Z.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:yn.Z.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:t=>this._tryMove(t),singleItemProcessingMessage:yn.Z.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:yn.Z.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:yn.Z.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:yn.Z.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:yn.Z.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:yn.Z.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:yn.Z.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:t=>this._tryCopy(t),singleItemProcessingMessage:yn.Z.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:yn.Z.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:yn.Z.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:yn.Z.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:yn.Z.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:yn.Z.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:yn.Z.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:t=>this._tryUpload(t),allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:yn.Z.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:yn.Z.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:yn.Z.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:yn.Z.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:yn.Z.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:yn.Z.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:yn.Z.format("dxFileManager-editingUploadCanceledMessage")},download:{action:t=>this._download(t),singleItemProcessingMessage:"",multipleItemsProcessingMessage:"",singleItemErrorMessage:yn.Z.format("dxFileManager-editingDownloadSingleItemErrorMessage"),multipleItemsErrorMessage:yn.Z.format("dxFileManager-editingDownloadMultipleItemsErrorMessage")},getItemContent:{action:t=>this._getItemContent(t)},getItems:{singleItemProcessingMessage:"",singleItemErrorMessage:yn.Z.format("dxFileManager-errorDirectoryOpenFailed"),commonErrorMessage:yn.Z.format("dxFileManager-errorDirectoryOpenFailed")}}}getCommandActions(){var t={};return(0,O.S6)(this._metadataMap,e=>{Object.prototype.hasOwnProperty.call(this._metadataMap,e)&&(t[e]=i=>this._executeAction(e,i))}),t}_executeAction(t,e){var i=this._metadataMap[t];return i?i.action(e):null}_onCancelUploadSession(t){this._fileUploader.cancelUpload(t.uploadSessionId)}_onCancelFileUpload(t,e){this._fileUploader.cancelFileUpload(t.info.uploadSessionId,e)}_onUploadProgress(t){var{sessionId:e,fileIndex:i,commonValue:r,fileValue:m}=t,{operationInfo:D}=this._uploadOperationInfoMap[e];this._notificationControl.updateOperationItemProgress(D,i,100*m,100*r)}_onUploadFinished(t){var{sessionId:e,commonValue:i}=t,{operationInfo:r}=this._uploadOperationInfoMap[e];this._notificationControl.finishOperation(r,100*i),this._scheduleUploadSessionDisposal(e,"uploader")}_onUploadSessionStarted(t){var{sessionInfo:e}=t;this._controller.processUploadSession(e,this.uploadDirectoryInfo)}_onEditActionStarting(t){var e=this._metadataMap[t.name],i=new lj(e,t.itemInfos,t.directory),r=this._notificationControl.addOperation(i.processingMessage,e.allowCancel,!e.allowItemProgress);switch((0,y.l)(t.customData,{context:i,operationInfo:r}),t.name){case"upload":var m=t.customData.sessionInfo.sessionId;r.uploadSessionId=m,this._uploadOperationInfoMap[m]={operationInfo:r};break;case"rename":t.customData.context.itemNewName=t.customData.itemNewName}}_onEditActionResultAcquired(t){var{context:e,operationInfo:i}=t.customData;e.singleRequest=t.singleRequest;var r=e.itemInfos.map(m=>this._getItemProgressDisplayInfo(m));this._notificationControl.addOperationDetails(i,r,e.actionMetadata.allowCancel)}_onEditActionError(t,e){var{context:i,operationInfo:r}=t.customData;i.singleRequest=t.singleRequest,this._handleActionError(r,i,e),this._completeAction(r,i)}_onEditActionItemError(t,e){var{context:i,operationInfo:r}=t.customData;this._handleActionError(r,i,e)}_onCompleteEditActionItem(t,e){var{context:i,operationInfo:r}=t.customData;(!e.result||!e.result.canceled)&&(i.completeOperationItem(e.index),this._notificationControl.completeOperationItem(r,e.index,i.commonProgress))}_onCompleteEditAction(t){var{context:e,operationInfo:i}=t.customData;this._completeAction(i,e),"upload"===t.name&&this._scheduleUploadSessionDisposal(t.customData.sessionInfo.sessionId,"controller")}_scheduleUploadSessionDisposal(t,e){(0,w.$K)(this._uploadOperationInfoMap[t].requester)&&this._uploadOperationInfoMap[t].requester!==e?delete this._uploadOperationInfoMap[t]:this._uploadOperationInfoMap[t].requester=e}_tryCreate(t){var e=t&&t[0]||this._getCurrentDirectory(),i=yn.Z.format("dxFileManager-newDirectoryName");return this._showDialog(this._dialogManager.getCreateItemDialog(),i).then(r=>{var{name:m}=r;return this._controller.createDirectory(e,m)})}_tryRename(t){var e=t&&t[0]||this._model.getMultipleSelectedItems()[0];return e?this._showDialog(this._dialogManager.getRenameItemDialog(),e.fileItem.name).then(i=>{var{name:r}=i;return this._controller.renameItem(e,r)}):(new P.BH).reject().promise()}_tryDelete(t){if(0===(t=t||this._model.getMultipleSelectedItems()).length)return(new P.BH).reject().promise();var e=t[0].fileItem.name,i=t.length;return this._showDialog(this._dialogManager.getDeleteItemDialog(),{itemName:e,itemCount:i}).then(()=>this._controller.deleteItems(t))}_tryMove(t){return 0===(t=t||this._model.getMultipleSelectedItems()).length?(new P.BH).reject().promise():this._showDialog(this._dialogManager.getMoveDialog(t)).then(e=>{var{folder:i}=e;return this._controller.moveItems(t,i)})}_tryCopy(t){return 0===(t=t||this._model.getMultipleSelectedItems()).length?(new P.BH).reject().promise():this._showDialog(this._dialogManager.getCopyDialog(t)).then(e=>{var{folder:i}=e;return this._controller.copyItems(t,i)})}_tryUpload(t){this._uploadDirectoryInfo=t?.[0],this._fileUploader.tryUpload()}_download(t){return 0===(t=t||this._model.getMultipleSelectedItems()).length?(new P.BH).reject().promise():this._controller.downloadItems(t)}_getItemContent(t){return t=t||this._model.getMultipleSelectedItems(),this._controller.getItemContent(t)}_completeAction(t,e){this._notificationControl.completeOperation(t,e.completionMessage,!e.success,e.statusText),e.hasModifiedItems()&&this._raiseOnSuccess(e.onlyFiles)}_handleActionError(t,e,i){t.hasError=!0,e.singleRequest?this._handleSingleRequestActionError(t,e,i):this._handleMultipleRequestActionError(t,e,i)}_handleSingleRequestActionError(t,e,i){var r=e.getItemForSingleRequestError(),m=e.getItemName(i.errorCode),D=this._getErrorText(i,r,m);e.processSingleRequestError(D);var A=this._getOperationErrorInfo(e);this._notificationControl.completeSingleOperationWithError(t,A),e.multipleItems&&this._raiseOnSuccess(e.onlyFiles)}_handleMultipleRequestActionError(t,e,i){var r=e.getItemForMultipleRequestError(i.index),m=e.getItemName(i.errorCode,i.index),D=this._getErrorText(i,r,m);e.processMultipleRequestError(i.index,D);var A=this._getOperationErrorInfo(e);this._notificationControl.addOperationDetailsError(t,A)}_getOperationErrorInfo(t){var e=t.errorState.currentDetailError;return{commonErrorText:t.errorState.commonErrorText,item:e.itemInfo?this._getItemProgressDisplayInfo(e.itemInfo):null,itemIndex:e.itemIndex,detailErrorText:e.errorText}}_getErrorText(t,e,i){var r=t.errorText||((n,t)=>{switch(n){case Ol_NoAccess:return yn.Z.format("dxFileManager-errorNoAccess");case Ol_FileExists:return yn.Z.format("dxFileManager-errorFileExistsFormat",t);case Ol_FileNotFound:return yn.Z.format("dxFileManager-errorFileNotFoundFormat",t);case Ol_DirectoryExists:return yn.Z.format("dxFileManager-errorDirectoryExistsFormat",t);case Ol_DirectoryNotFound:return yn.Z.format("dxFileManager-errorDirectoryNotFoundFormat",t);case Ol_WrongFileExtension:return yn.Z.format("dxFileManager-errorWrongFileExtension");case Ol_MaxFileSizeExceeded:return yn.Z.format("dxFileManager-errorMaxFileSizeExceeded");case Ol_InvalidSymbols:return yn.Z.format("dxFileManager-errorInvalidSymbols")}return yn.Z.format("dxFileManager-errorDefault")})(t.errorCode,i),m={fileSystemItem:e?.fileItem,errorCode:t.errorCode,errorText:r};return this._raiseOnError(m),m.errorText}_getItemProgressDisplayInfo(t){return{commonText:t.fileItem.name,imageUrl:this._getItemThumbnail(t)}}_showDialog(t,e){return this._dialogDeferred=new P.BH,t.show(e),this._dialogDeferred.promise()}_onDialogClosed(t){var e=t.dialogResult;e?this._dialogDeferred.resolve(e):this._dialogDeferred.reject()}updateDialogRtl(t){this._dialogManager.updateDialogRtl(t)}_getItemThumbnail(t){var e=this.option("getItemThumbnail");if(!e)return null;var i=e(t);return i?i.thumbnail:null}_initActions(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null})}_optionChanged(t){var e=t.name;switch(e){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(t.value);break;case"getItemThumbnail":break;case"uploadDropZonePlaceholderContainer":this._fileUploader.option("dropZonePlaceholderContainer",t.value);break;case"onSuccess":case"onError":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}_raiseOnSuccess(t){this._actions.onSuccess({updatedOnlyFiles:t})}_raiseOnError(t){this._actions.onError(t)}_getCurrentDirectory(){return this._controller.getCurrentDirectory()}get uploadDirectoryInfo(){return this._uploadDirectoryInfo||this._getCurrentDirectory()}};var dj=u(1658),pD="dx-filemanager-breadcrumbs",cj=pD+"-parent-folder-item",hj=pD+"-separator-item",pj=pD+"-path-separator-item";const fj=class gj extends ca.Z{_init(){super._init(),this._currentDirectory=null}_initMarkup(){super._initMarkup(),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass(pD)}setCurrentDirectory(t){this._areDirsEqual(this._currentDirectory,t)||(this._currentDirectory=t,this.repaint())}_renderMenu(){var t=(0,l.Z)("<div>").appendTo(this.$element());this._menu=this._createComponent(t,dj.Z,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)})}_getMenuItems(){var t=this._getParentDirsLine(),e=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:cj},{text:"\xa0",cssClass:hj}];return t.forEach((i,r)=>{e.push({text:i.getDisplayName(),directory:i,isPathItem:!0}),r!==t.length-1&&e.push({icon:"spinnext",cssClass:pj})}),e}_onItemClick(t){var{itemData:e}=t;if(e.isPathItem){var i=e.directory;this._areDirsEqual(i,this._currentDirectory)||this._raiseCurrentDirectoryChanged(i)}}_onItemRendered(t){var{itemElement:e,itemData:i}=t;i.cssClass&&(0,l.Z)(e).addClass(i.cssClass)}_getParentDirsLine(){for(var t=this._currentDirectory,e=[];t;)e.unshift(t),t=t.parentDirectory;return e}_areDirsEqual(t,e){return t&&e&&t===e&&t.fileItem.key===e.fileItem.key}_initActions(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging")}}_raiseCurrentDirectoryChanged(t){this._actions.onCurrentDirectoryChanging({currentDirectory:t})}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null})}_optionChanged(t){var e=t.name;switch(e){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}};var EF=(0,mi.Jj)(),Lb="dx-splitter",mj="".concat(Lb,"-wrapper"),FA="".concat(Lb,"-inactive"),_j="".concat(Lb,"-border"),VA="".concat(Lb,"-initial"),SF="dx-state-disabled",NA="dxSplitterResizing";class OF extends ca.Z{_init(){super._init();var t=(new vh.Z).toString();this.SPLITTER_POINTER_DOWN_EVENT_NAME=(0,k.V4)(So.Z.down,NA+t),this.SPLITTER_POINTER_MOVE_EVENT_NAME=(0,k.V4)(So.Z.move,NA+t),this.SPLITTER_POINTER_UP_EVENT_NAME=(0,k.V4)(So.Z.up,NA+t)}_initMarkup(){super._initMarkup(),this._initActions(),this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this.$element().addClass(mj).addClass(VA),this._$splitterBorder=(0,l.Z)("<div>").addClass(_j).appendTo(this.$element()),this._$splitter=(0,l.Z)("<div>").addClass(Lb).addClass(FA).appendTo(this._$splitterBorder)}_initActions(){this._actions={onApplyPanelSize:this._createActionByOption("onApplyPanelSize"),onActiveStateChanged:this._createActionByOption("onActiveStateChanged")}}_render(){super._render(),this._detachEventHandlers(),this._attachEventHandlers()}_clean(){this._detachEventHandlers(),super._clean()}_attachEventHandlers(){var t=b.Z.getDocument();d.Z.on(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME,this._onMouseDownHandler.bind(this)),d.Z.on(t,this.SPLITTER_POINTER_MOVE_EVENT_NAME,this._onMouseMoveHandler.bind(this)),d.Z.on(t,this.SPLITTER_POINTER_UP_EVENT_NAME,this._onMouseUpHandler.bind(this))}_detachEventHandlers(){var t=b.Z.getDocument();d.Z.off(this._$splitterBorder,this.SPLITTER_POINTER_DOWN_EVENT_NAME),d.Z.off(t,this.SPLITTER_POINTER_MOVE_EVENT_NAME),d.Z.off(t,this.SPLITTER_POINTER_UP_EVENT_NAME)}_dimensionChanged(t){(!t||"height"!==t)&&(this._containerWidth=this._$container.get(0).clientWidth,this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_onMouseDownHandler(t){t.preventDefault(),this._offsetX=t.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?t.pageX-this._$splitterBorder.offset().left:0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(VA),this._toggleActive(!0),this._setSplitterPositionLeft({needUpdatePanels:!0})}_onMouseMoveHandler(t){this._isSplitterActive&&this._setSplitterPositionLeft({splitterPositionLeft:this._getNewSplitterPositionLeft(t),needUpdatePanels:!0})}_onMouseUpHandler(){this._isSplitterActive&&(this._leftPanelPercentageWidth=null,this._toggleActive(!1),this._setSplitterPositionLeft({needUpdatePanels:!0,usePercentagePanelsWidth:!0}))}_getNewSplitterPositionLeft(t){var e=t.pageX-this._getContainerLeftOffset()-this._offsetX;return e=Math.max(0-this._getSplitterOffset(),e),Math.min(this._containerWidth-this._getSplitterOffset()-this._getSplitterWidth(),e)}_getContainerLeftOffset(){var t=this._$container.offset().left;if(EF){var e=EF.getComputedStyle(this._$container.get(0));t+=(parseFloat(e.paddingLeft)||0)+(parseFloat(e.borderLeftWidth)||0)}return t}_getSplitterOffset(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2}_getSplitterWidth(){return this._$splitter.get(0).clientWidth}_getSplitterBorderWidth(){return this._$splitterBorder.get(0).clientWidth}_getLeftPanelWidth(){return this._$leftElement.get(0).clientWidth}getSplitterBorderElement(){return this._$splitterBorder}_toggleActive(t){this.$element().toggleClass(FA,!t),this._$splitter.toggleClass(FA,!t),this._isSplitterActive=t,this._actions.onActiveStateChanged({isActive:t})}toggleDisabled(t){this.$element().toggleClass(SF,t),this._$splitter.toggleClass(SF,t)}isSplitterMoved(){return!this.$element().hasClass(VA)}disableSplitterCalculation(t){this._isSplitterCalculationDisabled=t}_setSplitterPositionLeft(){var{splitterPositionLeft:t=null,needUpdatePanels:e=!1,usePercentagePanelsWidth:i=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(t=t||this._getLeftPanelWidth()-this._getSplitterOffset())+this._getSplitterOffset(),m=this._containerWidth-r;this._isSplitterCalculationDisabled||this.$element().css("left",t),this._leftPanelPercentageWidth=this._leftPanelPercentageWidth||this._convertToPercentage(r);var D=this._convertToPercentage(this._containerWidth-this._convertToPixels(this._leftPanelPercentageWidth));e&&this._actions.onApplyPanelSize({leftPanelWidth:i?"".concat(this._leftPanelPercentageWidth,"%"):r,rightPanelWidth:i?"".concat(D,"%"):m})}_optionChanged(t){switch(t.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertToPercentage(t.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;case"onActiveStateChanged":case"onApplyPanelSize":this._actions[t.name]=this._createActionByOption(t.name);break;default:super._optionChanged(t)}}_convertToPercentage(t){return t/this._$container.get(0).clientWidth*100}_convertToPixels(t){return t/100*this._$container.get(0).clientWidth}}var vj=(0,mi.Jj)(),DF="dx-filemanager-adaptivity-drawer-panel",TF="dx-drawer-panel-content-initial";const bj=class xj extends ca.Z{_initMarkup(){super._initMarkup(),this._initActions(),this._isInAdaptiveState=!1;var t=(0,l.Z)("<div>").appendTo(this.$element());(0,l.Z)("<div>").addClass(DF).appendTo(t),this._drawer=this._createComponent(t,MA),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),(0,l.Z)(this._drawer.content()).addClass(TF);var e=t.find(".".concat(DF)).first(),i=this.option("contentTemplate");(0,w.mf)(i)&&i(e),this._updateDrawerMaxSize()}_createDrawerTemplate(t){this.option("drawerTemplate")(t),this._splitter=this._createComponent("<div>",OF,{container:this.$element(),leftElement:(0,l.Z)(this._drawer.content()),rightElement:(0,l.Z)(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this),onActiveStateChanged:this._onActiveStateChanged.bind(this)}),this._splitter.$element().appendTo(t),this._splitter.disableSplitterCalculation(!0)}_render(){super._render(),this._checkAdaptiveState()}_onApplyPanelSize(t){if((0,mi.Ym)()){if(!this._splitter.isSplitterMoved())return void this._setDrawerWidth("");(0,l.Z)(this._drawer.content()).removeClass(TF),this._setDrawerWidth(t.leftPanelWidth)}}_onActiveStateChanged(t){var{isActive:e}=t;this._splitter.disableSplitterCalculation(!e),!e&&this._splitter.$element().css("left","auto")}_setDrawerWidth(t){(0,l.Z)(this._drawer.content()).css("width",t),this._updateDrawerMaxSize(),this._drawer.resizeViewContent()}_updateDrawerMaxSize(){this._drawer.option("maxSize",this._drawer.getRealPanelWidth())}_dimensionChanged(t){(!t||"height"!==t)&&this._checkAdaptiveState()}_checkAdaptiveState(){var t=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),t!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),(0,l.Z)(this._drawer.content()).toggleClass("dx-drawer-panel-content-adaptive",this._isInAdaptiveState),this._raiseAdaptiveStateChanged(this._isInAdaptiveState)),this._isInAdaptiveState&&this._isDrawerOpened()&&this._updateDrawerMaxSize()}_isSmallScreen(){return(0,s.dz)(vj)<=573}_isDrawerOpened(){return this._drawer.option("opened")}_initActions(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}_raiseAdaptiveStateChanged(t){this._actions.onAdaptiveStateChanged({enabled:t})}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}_optionChanged(t){var e=t.name;switch(e){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[e]=this._createActionByOption(e);break;default:super._optionChanged(t)}}isInAdaptiveState(){return this._isInAdaptiveState}toggleDrawer(t,e){this._updateDrawerMaxSize(),this._drawer.option("animationEnabled",!e),this._drawer.toggle(t);var i=this._isDrawerOpened()&&!this.isInAdaptiveState();this._splitter.toggleDisabled(!i)}getSplitterElement(){return this._splitter.getSplitterBorderElement().get(0)}};var IF=u(3238),wj=u(3425),B0="dx-filemanager",Ej=B0+"-wrapper",MF=B0+"-container",Sj=B0+"-dirs-panel",Oj=B0+"-editing-container",Dj=B0+"-items-panel",Tj=B0+"-item-custom-thumbnail";(0,T.Z)("dxFileManager",class AF extends ca.Z{_initTemplates(){}_init(){super._init(),this._initActions(),this._providerUpdateDeferred=null,this._lockCurrentPathProcessing=!1,this._wasRendered=!1,this._controller=new nK({currentPath:this.option("currentPath"),currentPathKeys:this.option("currentPathKeys"),rootText:this.option("rootFolderName"),fileProvider:this.option("fileSystemProvider"),allowedFileExtensions:this.option("allowedFileExtensions"),uploadMaxFileSize:this.option("upload").maxFileSize,uploadChunkSize:this.option("upload").chunkSize,onInitialized:this._onControllerInitialized.bind(this),onDataLoading:this._onDataLoading.bind(this),onSelectedDirectoryChanged:this._onSelectedDirectoryChanged.bind(this),onPathPotentiallyChanged:this._checkPathActuality.bind(this),editingEvents:this._actions.editing})}_initMarkup(){super._initMarkup(),this._firstItemViewLoad=!0,this._lockSelectionProcessing=!1,this._lockFocusedItemProcessing=!1,this._itemKeyToFocus=void 0,this._loadedWidgets=[],this._commandManager=new rK(this.option("permissions")),this.$element().addClass(B0),this._wasRendered?this._prepareToLoad():this._wasRendered=!0,this._createNotificationControl(),this._initCommandManager()}_createNotificationControl(){var t=(0,l.Z)("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(t,NG,{progressPanelContainer:this.$element(),contentTemplate:(e,i)=>this._createWrapper(e,i),onActionProgress:e=>this._onActionProgress(e),positionTarget:".".concat(MF),showProgressPanel:this.option("notifications.showPanel"),showNotificationPopup:this.option("notifications.showPopup")})}_createWrapper(t,e){this._$wrapper=(0,l.Z)("<div>").addClass(Ej).appendTo(t),this._createEditing(e);var i=(0,l.Z)("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(i,aG,{commandManager:this._commandManager,generalItems:this.option("toolbar.items"),fileItems:this.option("toolbar.fileSelectionItems"),itemViewMode:this.option("itemView").mode,onItemClick:r=>this._actions.onToolbarItemClick(r)}),this._createAdaptivityControl()}_createAdaptivityControl(){var t=(0,l.Z)("<div>").addClass(MF).appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(t,bj,{drawerTemplate:e=>this._createFilesTreeView(e),contentTemplate:e=>this._createItemsPanel(e),onAdaptiveStateChanged:e=>this._onAdaptiveStateChanged(e)}),this._editing.setUploaderSplitterElement(this._adaptivityControl.getSplitterElement())}_createEditing(t){var e=(0,l.Z)("<div>").addClass(Oj).appendTo(this.$element());this._editing=this._createComponent(e,uj,{controller:this._controller,model:{getMultipleSelectedItems:this._getSelectedItemInfos.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),notificationControl:t,uploadDropZonePlaceholderContainer:this.$element(),rtlEnabled:this.option("rtlEnabled"),onSuccess:i=>{var{updatedOnlyFiles:r}=i;return this._redrawComponent(r)},onError:i=>this._onEditingError(i)})}_createItemsPanel(t){this._$itemsPanel=(0,l.Z)("<div>").addClass(Dj).appendTo(t),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel),this._updateUploadDropZone()}_updateUploadDropZone(){var t=this._commandManager.isCommandAvailable("upload")?this._$itemsPanel:(0,l.Z)();this._editing.setUploaderDropZone(t)}_createFilesTreeView(t){this._filesTreeViewContextMenu=this._createContextMenu(!1,"navPane");var e=(0,l.Z)("<div>").addClass(Sj).appendTo(t);this._filesTreeView=this._createComponent(e,sF,{storeExpandedState:!0,contextMenu:this._filesTreeViewContextMenu,getDirectories:this.getDirectories.bind(this),getCurrentDirectory:this._getCurrentDirectory.bind(this),onDirectoryClick:i=>{var{itemData:r}=i;return this._setCurrentDirectory(r)},onItemListDataLoaded:()=>this._tryEndLoading("navPane")}),this._filesTreeView.updateCurrentDirectory()}_createItemView(t,e){this._itemViewContextMenu=this._createContextMenu(!0,"itemView");var i=this.option("itemView"),r={selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),contextMenu:this._itemViewContextMenu,getItems:this._getItemViewItems.bind(this),onError:A=>{var{error:N}=A;return this._showError(N)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onFocusedItemChanged:this._onItemViewFocusedItemChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),onContextMenuShowing:A=>this._onContextMenuShowing("itemView",A),onItemListItemsLoaded:()=>this._tryEndLoading("itemView"),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns"),detailColumns:this.option("itemView.details.columns")},m=(0,l.Z)("<div>").appendTo(t);this._itemView=this._createComponent(m,"thumbnails"===(e=e||i.mode)?YK:AK,r)}_createBreadcrumbs(t){var e=(0,l.Z)("<div>").appendTo(t);this._breadcrumbs=this._createComponent(e,fj,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:i=>{var{currentDirectory:r}=i;return this._setCurrentDirectory(r,!0)}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())}_createContextMenu(t,e){var i=(0,l.Z)("<div>").appendTo(this._$wrapper);return this._createComponent(i,uK,{commandManager:this._commandManager,items:this.option("contextMenu.items"),onItemClick:r=>this._actions.onContextMenuItemClick(r),onContextMenuShowing:r=>this._onContextMenuShowing(e,r),isolateCreationItemCommands:t,viewArea:e})}_initCommandManager(){var t=(0,y.l)(this._editing.getCommandActions(),{refresh:()=>this._refreshAndShowProgress(),thumbnails:()=>this.option("itemView.mode","thumbnails"),details:()=>this.option("itemView.mode","details"),clearSelection:()=>this._clearSelection(),showNavPane:()=>this._adaptivityControl.toggleDrawer()});this._commandManager.registerActions(t)}_onItemViewSelectionChanged(t){var{selectedItemInfos:e,selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:m,currentDeselectedItemKeys:D}=t;this._lockSelectionProcessing=!0,this.option("selectedItemKeys",r),this._lockSelectionProcessing=!1,this._actions.onSelectionChanged({selectedItems:i,selectedItemKeys:r,currentSelectedItemKeys:m,currentDeselectedItemKeys:D}),this._updateToolbar(e)}_onItemViewFocusedItemChanged(t){this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t.itemKey),this._lockFocusedItemProcessing=!1,this._actions.onFocusedItemChanged({item:t.item,itemElement:t.itemElement})}_onAdaptiveStateChanged(t){var{enabled:e}=t;this._commandManager.setCommandEnabled("showNavPane",e),this._updateToolbar()}_onActionProgress(t){var{message:e,status:i}=t;this._toolbar.updateRefreshItem(e,i),this._updateToolbar()}_onEditingError(t){var e=k0({},t,["errorCode","errorText","fileSystemItem"]);this._actions.onErrorOccurred(e),t.errorText=e.errorText}_refreshAndShowProgress(){return this._prepareToLoad(),(0,P.gx)(this._notificationControl.tryShowProgressPanel(),this._controller.refresh()).then(()=>this._filesTreeView.refresh())}_isAllWidgetsLoaded(){return 2===this._loadedWidgets.length&&-1!==this._loadedWidgets.indexOf("navPane")&&-1!==this._loadedWidgets.indexOf("itemView")}_tryEndLoading(t){this._loadedWidgets.push(t),this._isAllWidgetsLoaded()&&this._controller.endSingleLoad()}_prepareToLoad(){this._loadedWidgets=[],this._controller.startSingleLoad()}_updateToolbar(t){var e=t||this._getSelectedItemInfos();this._toolbar.option("contextItems",(0,E.IS)(e,[]))}_switchView(t){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,t),this._toolbar.option({itemViewMode:t})}_disposeWidget(t){t.dispose(),t.$element().remove()}_clearSelection(){this._itemView.clearSelection()}_showError(t){this._showNotification(t,!1)}_showNotification(t,e){(0,z5.Z)({message:t,width:450},e?"success":"error",5e3)}_redrawComponent(t){this._itemView.refresh().then(()=>!t&&this._filesTreeView.refresh())}_getItemViewItems(){var t=this.option("itemView").showFolders,e=this._controller.getCurrentItems(!t);return this._updateToolbarWithSelectionOnFirstLoad(e),this.option("itemView.showParentFolder")&&(e=(0,P.gx)(e).then(i=>this._getPreparedItemViewItems(i))),e}_updateToolbarWithSelectionOnFirstLoad(t){if(this._firstItemViewLoad){this._firstItemViewLoad=!1;var e=this.option("selectedItemKeys");e.length>0&&(0,P.gx)(t).done(i=>{var r=((n,t)=>{var e={};t.forEach(r=>{e[r]=null}),n.forEach(r=>{var m=r.fileItem.key;Object.prototype.hasOwnProperty.call(e,m)&&(e[m]=r)});var i=[];return t.forEach(r=>{var m=e[r];m&&i.push(m)}),i})(i,e);r.length>0&&this._updateToolbar(r)})}}_getPreparedItemViewItems(t){var e=this._getCurrentDirectory();if(e.fileItem.isRoot())return t;var i=e.fileItem.createClone();i.isParentFolder=!0,i.name="..",i.relativeName="..",i.key="".concat("[*DXPDK*]$40F96F03-FBD8-43DF-91BE-F55F4B8BA871$").concat(e.fileItem.key);var r=[...t];return r.unshift({fileItem:i,icon:"parentfolder"}),r}_onContextMenuShowing(t,e){var i,r=k0({},e,["targetElement","cancel","event"]);r=(0,y.l)(r,{viewArea:t,fileSystemItem:null===(i=e.itemData)||void 0===i?void 0:i.fileItem,_isActionButton:e.isActionButton}),this._actions.onContextMenuShowing(r),e.cancel=(0,E.IS)(r.cancel,!1)}_getItemThumbnailInfo(t){var e=this.option("customizeThumbnail"),i=(0,w.mf)(e)?e(t.fileItem):t.fileItem.thumbnail;return i?{thumbnail:i,cssClass:Tj}:{thumbnail:t.icon}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{fileSystemProvider:null,currentPath:"",currentPathKeys:[],rootFolderName:yn.Z.format("dxFileManager-rootDirectoryName"),selectionMode:"multiple",selectedItemKeys:[],focusedItemKey:void 0,toolbar:{items:["showNavPane","create","upload","switchView",{name:"separator",location:"after"},"refresh"],fileSelectionItems:["download","separator","move","copy","rename","separator","delete","clearSelection",{name:"separator",location:"after"},"refresh"]},contextMenu:{items:["create","upload","rename","move","copy","delete","refresh","download"]},itemView:{details:{columns:["thumbnail","name","dateModified","size"]},mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onContextMenuItemClick:null,onContextMenuShowing:null,onCurrentDirectoryChanged:null,onSelectedFileOpened:null,onSelectionChanged:null,onFocusedItemChanged:null,onToolbarItemClick:null,onErrorOccurred:null,onDirectoryCreating:null,onDirectoryCreated:null,onItemRenaming:null,onItemRenamed:null,onItemDeleting:null,onItemDeleted:null,onItemCopying:null,onItemCopied:null,onItemMoving:null,onItemMoved:null,onFileUploading:null,onFileUploaded:null,onItemDownloading:null,allowedFileExtensions:[],upload:{maxFileSize:0,chunkSize:2e5},permissions:(0,y.l)({},iF),notifications:{showPanel:!0,showPopup:!0}})}option(t,e){var i=(0,IF.GR)(t,e),r=arguments.length<2&&"object"!==(0,w.dt)(t),m=A=>(0,w.$K)(i[A]),D=A=>{if(!m(A))return!1;var N=this.option(A);return!(0,wj.f)(N,i[A])};return!r&&m("fileSystemProvider")&&(this._providerUpdateDeferred=new P.BH,(D("currentPath")||D("currentPathKeys"))&&(this._lockCurrentPathProcessing=!0)),super.option(...arguments)}_optionChanged(t){var e=t.name;switch(e){case"currentPath":var i=()=>(this._lockCurrentPathProcessing=!1,this._controller.setCurrentPath(t.value));this._lockCurrentPathProcessing=!0,this._providerUpdateDeferred?this._providerUpdateDeferred.then(i):i();break;case"currentPathKeys":var r=()=>(this._lockCurrentPathProcessing=!1,this._controller.setCurrentPathByKeys(t.value));this._lockCurrentPathProcessing=!0,this._providerUpdateDeferred?this._providerUpdateDeferred.then(r):r();break;case"selectedItemKeys":!this._lockSelectionProcessing&&this._itemView&&this._itemView.option("selectedItemKeys",t.value);break;case"focusedItemKey":!this._lockFocusedItemProcessing&&this._itemView&&this._itemView.option("focusedItemKey",t.value);break;case"rootFolderName":this._controller.setRootText(t.value),this._invalidate();break;case"fileSystemProvider":this._lockCurrentPathProcessing||(this._providerUpdateDeferred=new P.BH);var m=this._lockCurrentPathProcessing?void 0:this.option("currentPathKeys");this._controller.updateProvider(t.value,m).then(()=>this._providerUpdateDeferred.resolve()).always(()=>{this._providerUpdateDeferred=null,this.repaint()});break;case"allowedFileExtensions":this._controller.setAllowedFileExtensions(t.value),this._invalidate();break;case"upload":this._controller.setUploadOptions(this.option("upload")),this._invalidate();break;case"permissions":this._commandManager.updatePermissions(this.option("permissions")),this._filesTreeViewContextMenu.tryUpdateVisibleContextMenu(),this._itemViewContextMenu.tryUpdateVisibleContextMenu(),this._toolbar.updateItemPermissions(),this._updateUploadDropZone();break;case"selectionMode":case"customizeThumbnail":case"customizeDetailColumns":this._invalidate();break;case"itemView":"itemView.mode"===t.fullName?this._switchView(t.value):this._invalidate();break;case"toolbar":var D={};"toolbar"===t.fullName&&(t.value.items&&(D.generalItems=t.value.items),t.value.fileSelectionItems&&(D.fileItems=t.value.fileSelectionItems)),0===t.fullName.indexOf("toolbar.items")&&(D.generalItems=this.option("toolbar.items")),0===t.fullName.indexOf("toolbar.fileSelectionItems")&&(D.fileItems=this.option("toolbar.fileSelectionItems")),this._toolbar.option(D);break;case"contextMenu":if("contextMenu"===t.fullName&&t.value.items||0===t.fullName.indexOf("contextMenu.items")){var A=this.option("contextMenu.items");this._filesTreeViewContextMenu.option("items",A),this._itemViewContextMenu.option("items",A)}break;case"notifications":this._notificationControl.option("showProgressPanel",this.option("notifications.showPanel")),this._notificationControl.option("showNotificationPopup",this.option("notifications.showPopup"));break;case"onContextMenuItemClick":case"onContextMenuShowing":case"onCurrentDirectoryChanged":case"onSelectedFileOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onToolbarItemClick":case"onErrorOccurred":this._actions[e]=this._createActionByOption(e);break;case"onDirectoryCreating":case"onDirectoryCreated":case"onItemRenaming":case"onItemRenamed":case"onItemDeleting":case"onItemDeleted":case"onItemCopying":case"onItemCopied":case"onItemMoving":case"onItemMoved":case"onFileUploading":case"onFileUploaded":case"onItemDownloading":this._actions.editing[e]=this._createActionByOption(e);break;case"rtlEnabled":this._editing.updateDialogRtl(t.value),super._optionChanged(t);break;default:super._optionChanged(t)}}_initActions(){this._actions={onContextMenuItemClick:this._createActionByOption("onContextMenuItemClick"),onContextMenuShowing:this._createActionByOption("onContextMenuShowing"),onCurrentDirectoryChanged:this._createActionByOption("onCurrentDirectoryChanged"),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onToolbarItemClick:this._createActionByOption("onToolbarItemClick"),onErrorOccurred:this._createActionByOption("onErrorOccurred"),editing:{onDirectoryCreating:this._createActionByOption("onDirectoryCreating"),onDirectoryCreated:this._createActionByOption("onDirectoryCreated"),onItemRenaming:this._createActionByOption("onItemRenaming"),onItemRenamed:this._createActionByOption("onItemRenamed"),onItemDeleting:this._createActionByOption("onItemDeleting"),onItemDeleted:this._createActionByOption("onItemDeleted"),onItemCopying:this._createActionByOption("onItemCopying"),onItemCopied:this._createActionByOption("onItemCopied"),onItemMoving:this._createActionByOption("onItemMoving"),onItemMoved:this._createActionByOption("onItemMoved"),onFileUploading:this._createActionByOption("onFileUploading"),onFileUploaded:this._createActionByOption("onFileUploaded"),onItemDownloading:this._createActionByOption("onItemDownloading")}}}executeCommand(t){return this._commandManager.executeCommand(t)}_setCurrentDirectory(t,e){this._controller.setCurrentDirectory(t,e)}_getCurrentDirectory(){return this._controller.getCurrentDirectory()}_onControllerInitialized(t){var{controller:e}=t;this._controller=this._controller||e,this._syncToCurrentDirectory()}_onDataLoading(t){var{operation:e}=t,i=null;"navigation"===e&&(i={focusedItemKey:this._itemKeyToFocus,selectedItemKeys:this.option("selectedItemKeys")},this._itemKeyToFocus=void 0),this._itemView.refresh(i)}_onSelectedDirectoryChanged(){var t=this._getCurrentDirectory();this._syncToCurrentDirectory(),this._actions.onCurrentDirectoryChanged({directory:t.fileItem})}_syncToCurrentDirectory(){var t=this._getCurrentDirectory();this._filesTreeView&&this._filesTreeView.updateCurrentDirectory(),this._breadcrumbs&&this._breadcrumbs.setCurrentDirectory(t),this._checkPathActuality()}_checkPathActuality(){if(!this._lockCurrentPathProcessing){var t=this._controller.getCurrentPath(),e=this._controller.getCurrentPathKeys(),i={};this.option("currentPath")!==t&&(i.currentPath=t),(0,E.bY)(this.option("currentPathKeys"),e)||(i.currentPathKeys=e),(0,w.Qr)(i)||this.option(i)}}getDirectories(t,e){return this._controller.getDirectories(t,e)}_getSelectedItemInfos(){return this._itemView?this._itemView.getSelectedItems():[]}refresh(){return this.executeCommand("refresh")}getCurrentDirectory(){var t=this._getCurrentDirectory();return t&&t.fileItem||null}getSelectedItems(){return this._getSelectedItemInfos().map(t=>t.fileItem)}_onSelectedItemOpened(t){var{fileItemInfo:e}=t,i=e.fileItem;if(i.isDirectory){i.isParentFolder&&(this._itemKeyToFocus=this._getCurrentDirectory().fileItem.key);var r=i.isParentFolder?this._getCurrentDirectory().parentDirectory:e;this._setCurrentDirectory(r),r&&this._filesTreeView.toggleDirectoryExpandedState(r.parentDirectory,!0)}else this._actions.onSelectedFileOpened({file:i})}});let PF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.m$R,M.Q8p,M.ToC,M.z30,M.tRk,M.wrG,M.ZLV,M.azD,M.kBH,M.FGH,g.Lz,g.ie,p.Cu],M.m$R,M.Q8p,M.ToC,M.z30,M.tRk,M.wrG,M.ZLV,M.azD,M.kBH,M.FGH,g.ie]}),n})();var kF=u(1980),Aj=u(4554);const Pj={provide:ne.JU,useExisting:(0,a.Gpc)(()=>kj),multi:!0};let kj=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"editorPrepared",emit:"onEditorPrepared"},{subscribe:"editorPreparing",emit:"onEditorPreparing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"allowHierarchicalFieldsChange"},{emit:"customOperationsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"fieldsChange"},{emit:"filterOperationDescriptionsChange"},{emit:"focusStateEnabledChange"},{emit:"groupOperationDescriptionsChange"},{emit:"groupOperationsChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"maxGroupLevelChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get allowHierarchicalFields(){return this._getOption("allowHierarchicalFields")}set allowHierarchicalFields(e){this._setOption("allowHierarchicalFields",e)}get customOperations(){return this._getOption("customOperations")}set customOperations(e){this._setOption("customOperations",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fields(){return this._getOption("fields")}set fields(e){this._setOption("fields",e)}get filterOperationDescriptions(){return this._getOption("filterOperationDescriptions")}set filterOperationDescriptions(e){this._setOption("filterOperationDescriptions",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get groupOperationDescriptions(){return this._getOption("groupOperationDescriptions")}set groupOperationDescriptions(e){this._setOption("groupOperationDescriptions",e)}get groupOperations(){return this._getOption("groupOperations")}set groupOperations(e){this._setOption("groupOperations",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get maxGroupLevel(){return this._getOption("maxGroupLevel")}set maxGroupLevel(e){this._setOption("maxGroupLevel",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get customOperationsChildren(){return this._getOption("customOperations")}set customOperationsChildren(e){this.setChildren("customOperations",e)}get fieldsChildren(){return this._getOption("fields")}set fieldsChildren(e){this.setChildren("fields",e)}_createInstance(e,i){return new Aj.Z(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("customOperations",e),this.setupChanges("fields",e),this.setupChanges("groupOperations",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("customOperations"),this._idh.doCheck("fields"),this._idh.doCheck("groupOperations"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-filter-builder"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.M5u,4),a.Suo(r,M.fj7,4)),2&e){let m;a.iGM(m=a.CRH())&&(i.customOperationsChildren=m),a.iGM(m=a.CRH())&&(i.fieldsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",allowHierarchicalFields:"allowHierarchicalFields",customOperations:"customOperations",disabled:"disabled",elementAttr:"elementAttr",fields:"fields",filterOperationDescriptions:"filterOperationDescriptions",focusStateEnabled:"focusStateEnabled",groupOperationDescriptions:"groupOperationDescriptions",groupOperations:"groupOperations",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",maxGroupLevel:"maxGroupLevel",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onEditorPrepared:"onEditorPrepared",onEditorPreparing:"onEditorPreparing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",allowHierarchicalFieldsChange:"allowHierarchicalFieldsChange",customOperationsChange:"customOperationsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",fieldsChange:"fieldsChange",filterOperationDescriptionsChange:"filterOperationDescriptionsChange",focusStateEnabledChange:"focusStateEnabledChange",groupOperationDescriptionsChange:"groupOperationDescriptionsChange",groupOperationsChange:"groupOperationsChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",maxGroupLevelChange:"maxGroupLevelChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,Pj,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),RF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.FJZ,M.RbS,M.FZZ,M.CxW,M.$wd,M.xHg,g.Lz,g.ie,p.Cu],M.FJZ,M.RbS,M.FZZ,M.CxW,M.$wd,M.xHg,g.ie]}),n})();var BF,LF=u(7050),HA={};function FF(n,t,e){HA[n]=t,e&&(BF=HA[n])}const Lj={getFigures:function(n){var t=1/n.length;return n.map(function(e,i,r){var m=r[i+1]?r[i+1]:r[i];return[.5-e/2,t*i,.5+e/2,t*i,.5+m/2,t*(i+1),.5-m/2,t*(i+1)]})},normalizeValues:function(n){var t=n.reduce(function(e,i){return Math.max(i.value,e)},n[0]&&n[0].value||0);return n.map(function(e){return e.value/t})}};var Vj=["normal","hover","selection","selection"];function UA(n,t,e){var i=t.border,r=e.border,m=(0,w.$K)(i.visible)?i.visible:r.visible,D=(0,w.$K)(i.width)?i.width:r.width;return{fill:n,hatching:t.hatching,stroke:i.color||r.color,"stroke-width":m?D:0}}function VF(n,t){var e=t.data;this.code=0,this.widget=n,this.figure=t.figure,this.argument=e.argument,this.value=e.value,this.data=e.dataItem,this.percent=t.percent,this.id=t.id,this.color=t.color,this.states={normal:UA(t.color,t.itemOptions,t.itemOptions),hover:UA(t.color,t.itemOptions.hoverStyle,t.itemOptions),selection:UA(t.color,t.itemOptions.selectionStyle,t.itemOptions)}}VF.prototype={getState:function(){return Vj[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isHovered()||(this.widget._suspend(),n&&this.widget.clearHover(),this.setState(1,n),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(n,t){t?this.code|=n:this.code&=~n,this.widget._applyTilesAppearance()},select:function(n){var t=this.widget._getOption("selectionMode",!0);"none"===t||n===this.isSelected()||(this.widget._suspend(),n&&"multiple"!==t&&this.widget.clearSelection(),this.setState(2,n),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(n){this.widget._showTooltip(this.id,n)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}};const Nj=VF;var vu="NODES_CREATE";function ZA(n){return{fill:n.fill,hatching:n.hatching}}FF("dynamicslope",Lj,!0),FF("dynamicheight",{getFigures:function(n,t,e){var i=0,r=0,m=0,D=0,A=t/2,N=.5-A,Q=1-e,se=.5-A,we=.5+A;return n.map(function(Re){return m=D,r=i,D=N*(i+=Re)/Q,r<=Q&&i<=Q?[m,r,1-m,r,1-D,i,0+D,i]:r<=Q&&i>Q?[m,r,1-m,r,we,Q,we,i,se,i,se,Q]:[se,r,we,r,we,i,se,i]})},normalizeValues:function(n){var t=n.reduce(function(e,i){return e+i.value},0);return n.map(function(e){return e.value/t})}});var KA=xl.inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:vu,neckHeight:vu,inverted:vu,algorithm:vu,item:vu,valueField:vu,argumentField:vu,colorField:vu,palette:vu,paletteExtensionMode:vu,sortData:vu},_themeDependentChanges:[vu],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:E.ZT,_applySize:function(n){return this._rect=n.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var n=this,t=n._items,e=n._rect,i=function(r,m){var D=m%2;return e[0+D]+(e[2+D]-e[0+D])*r};this._group.clear(),t.forEach(function(r,m){var D=r.figure.map(i),A=n._renderer.path([],"area").attr({points:D}).append(n._group);r.coords=D,r.element=A}),this._requestChange(["TILES"])},_customChangesOrder:[vu,"LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange([vu])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach(function(n){var t=n.getState();n.element.smartAttr(n.states[t])})},_hitTestTargets:function(n,t){var i,e=this;return this._proxyData.some(function(r){if(i=r.call(e,n,t))return!0}),i},clearHover:function(){this._suspend(),this._items.forEach(function(n){n.isHovered()&&n.hover(!1)}),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach(function(n){n.isSelected()&&n.select(!1)}),this._resume()},_getData:function(){var n=this._dataSourceItems()||[],t=this._getOption("valueField",!0),e=this._getOption("argumentField",!0),i=this._getOption("colorField",!0),r=n.reduce(function(D,A){var N=Number(A[t]);return N>=0&&(D[0].push({value:N,color:A[i],argument:A[e],dataItem:A}),D[1]+=N),D},[[],0]),m=r[0];return n.length>0&&0===m.length&&this._incidentOccurred("E2005",t),r[1]?(this._getOption("sortData",!0)&&m.sort(function(D,A){return A.value-D.value}),m):[]},_buildNodes:function(){var n=this,t=n._getData(),e=function Rj(n){return HA[En(n)]||BF}(n._getOption("algorithm",!0)),i=e.normalizeValues(t),r=n._getOption("item"),m=e.getFigures(i,n._getOption("neckWidth",!0),n._getOption("neckHeight",!0)),D=n._themeManager.createPalette(n._getOption("palette",!0),{useHighlight:!0,extensionMode:n._getOption("paletteExtensionMode",!0),count:m.length});n._items=m.map(function(A,N){var Q=t[N];return new Nj(n,{figure:A,data:Q,percent:i[N],id:N,color:Q.color||D.getNextColor(),itemOptions:r})}),n._getOption("inverted",!0)&&n._items.forEach(function(A){A.figure=function Hj(n){return n.map(function(t,e){return e%2?1-t:t})}(A.figure)}),n._renderer.initHatching(),n._change(["TILING","DRAWN"])},_showTooltip:E.ZT,hideTooltip:E.ZT,getAllItems:function(){return this._items.slice()},_getLegendData(){return this._items.map(n=>{var t=n.states;return{id:n.id,visible:!0,text:n.argument,item:n,states:{normal:ZA(t.normal),hover:ZA(t.hover),selection:ZA(t.selection)}}})},_getMinSize:function(){var n=this._getOption("adaptiveLayout");return[n.width,n.height]}});(0,T.Z)("dxFunnel",KA);const Ip=KA;KA.addPlugin(za);var GA="outside";function V0(n){return(n=En(n))===GA||"inside"!==n}function fD(n,t,e){return e?n-t.height:n}function Wj(n,t,e,i){return{x:n[2]+e.horizontalOffset+5,y:fD(n[3]+e.verticalOffset,t,i)}}function Uj(n,t,e,i){return{x:n[0]-t.width-e.horizontalOffset-5,y:fD(n[1]+e.verticalOffset,t,i)}}function Zj(n,t,e){return{x:n[0]+(n[2]-n[0])/2+e.horizontalOffset-t.width/2,y:n[1]+e.verticalOffset+(n[7]-n[1])/2-t.height/2}}var qj={name:"lables",init:E.ZT,dispose:E.ZT,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var n=this._getOption("label"),t=this._getOption("adaptiveLayout"),e=this._rect,i=0,r=e[2]-e[0];this._labelRect=e.slice(),this._labels.length&&V0(n.position)?(i=this._labels.map(function(D){return D.resetEllipsis(),D.getBoundingRect().width}).reduce(function(D,A){return Math.max(D,A)},0)+n.horizontalOffset+function zj(n){return(n=En(n))===GA?5:"inside"===n?0:20}(n.position),!t.keepLabels&&r-i<t.width?this._labels.forEach(function(D){D.draw(!1)}):(r-i<t.width&&(i=(i=r-t.width)>0?i:0),this._labels.forEach(function(D){D.draw(!0)}),"left"===n.horizontalAlignment?e[0]+=i:e[2]-=i)):En("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach(D=>!D.isVisible()&&D.draw(!0))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var r,n=this,t=n._getOption("label"),e=Zj,i=n._getOption("inverted",!0);V0(t.position)&&(En(t.position)===GA?e="left"===t.horizontalAlignment?Uj:Wj:(r=this._defaultLabelTextAlignment(),e="left"===t.horizontalAlignment?function Gj(n,t,e){return function(i,r,m,D){return{x:"left"===e?n[0]:t[0]-r.width-m.horizontalOffset-20,y:fD(i[3]+m.verticalOffset,r,D)}}}(this._labelRect,this._rect,r):function Kj(n,t,e){return function(i,r,m,D){return{x:"left"===e?t[2]+m.horizontalOffset+20:n[2]-r.width,y:fD(i[3]+m.verticalOffset,r,D)}}}(this._labelRect,this._rect,r))),n._labels.forEach(function(m,D){var A=n._items[D],N=A.getNormalStyle()["stroke-width"],Q=i?N/2:-N/2,se=Q?A.coords.map(function(Ue,st){return 1===st||3===st?Ue-Q:2===st?Ue-N:0===st?Ue+N:Ue}):A.coords;if(t.showForZeroValues||0!==A.value){V0(t.position)&&n._correctLabelWidth(m,A.coords,t);var we=m.getBoundingRect(),Re=function Yj(n,t,e){return n.x<e[0]&&(n.x=e[0]),n.x+t.width>e[2]&&(n.x=e[2]-t.width),n.y<e[1]&&(n.y=e[1]),n.y+t.height>e[3]&&(n.y=e[3]-t.height),n}(e(se,we,t,i),we,n._labelRect);m.setFigureToDrawConnector(se),m.shift(Re.x,Re.y)}else m.draw(!1)}),n._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping(){var n=this,t=En(n._getOption("resolveLabelOverlapping",!0)),e=this._getOption("inverted",!0)?n._labels.slice().reverse():n._labels;if("hide"===t)e.reduce((r,m)=>(m.getBoundingRect().y<r?m.hide():r=m.getBoundingRect().y+m.getBoundingRect().height,r),0);else if("shift"===t){var i=this._labelRect[3];e.reduce((r,m,D,A)=>{var[N,Q]=r,se=m.getBoundingRect(),we=se.y;return se.y<N&&(m.shift(se.x,N),we=N),we-N>0&&(Q+=we-N),we+se.height>i?Q&&Q>we+se.height-i?(function Xj(n,t,e){n.reduce((i,r,m,D)=>{var A=D[m+1];if(i>0){var N=r.getBoundingRect(),Q=A?A.getBoundingRect().y+A.getBoundingRect().height:e,we=Math.min(N.y-Q,i);D.slice(0,m+1).forEach(Re=>{var Ue=Re.getBoundingRect();Re.shift(Ue.x,Ue.y-we)}),i-=we}return i},t)}(A.slice(0,D).reverse(),we+se.height-i,n._labelRect[1]),Q-=we+se.height-i,m.shift(se.x,we-(we+se.height-i)),N=we-(we+se.height-i)+se.height):m.hide():N=we+se.height,[N,Q]},[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(n,t,e){var i="left"===e.horizontalAlignment,D=(i?t[0]:this._labelRect[2])-(i?this._labelRect[0]:t[2]);n.getBoundingRect().width>D&&n.fit(D)},_createLabels:function(){var n=this,t=n._getOption("label"),e=function jj(n,t){var e="left"===n.horizontalAlignment,i=e?4:-4,r=t?-1:0;function m(D){return e?[D[0]+1,D[1]+r]:[D[2]-1,D[3]+r]}return{isLabelInside:function(){return!V0(n.position)},getFigureCenter:m,prepareLabelPoints:function(D){var A=D.x+i,N=D.y,Q=A+D.width;return[...Array(D.height+1)].map((se,we)=>[A,N+we]).concat([...Array(D.height+1)].map((se,we)=>[Q,N+we]))},isHorizontal:function(){return!0},findFigurePoint:function(D){return m(D)},adjustPoints:function(D){return D.map(Math.round)}}}(t,n._getOption("inverted",!0));this._labelsGroup.clear(),t.visible&&(this._labels=n._items.map(function(i){var r=new cf({renderer:n._renderer,labelsGroup:n._labelsGroup,strategy:e});return r.setOptions(function $j(n,t,e){var i=n||{},r=(0,y.l)({},i.font)||{},m=i.border||{},D=i.connector||{},A={fill:i.backgroundColor||t,"stroke-width":m.visible&&m.width||0,stroke:m.visible&&m.width?m.color:"none",dashStyle:m.dashStyle},N={stroke:D.visible&&D.width?D.color||t:"none","stroke-width":D.visible&&D.width||0,opacity:D.opacity};return r.color="none"===i.backgroundColor&&"#ffffff"===En(r.color)&&"inside"!==i.position?t:r.color,{format:i.format,textAlignment:i.textAlignment||(V0(i.position)?e:"center"),customizeText:i.customizeText,attributes:{font:r},visible:0!==r.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:A,connector:N,wordWrap:n.wordWrap,textOverflow:n.textOverflow}}(t,i.color,n._defaultLabelTextAlignment())),r.setData({item:i,value:i.value,percent:i.percent}),r.draw(!0),r}),this._labels.length&&V0(t.position)&&this._requestChange(["LAYOUT"]))}},customize:function(n){n.prototype._proxyData.push(function(t,e){var r,i=this;return i._labels.forEach(function(m,D){var A=m.getBoundingRect();if(t>=A.x&&t<=A.x+A.width&&e>=A.y&&e<=A.y+A.height){var N=V0(i._getOption("label").position)?"outside":"inside";return r={id:D,type:N+"-label"},!0}}),r}),["label","resolveLabelOverlapping"].forEach(t=>{n.addChange({code:t.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:t})})},fontFields:["label.font"]},mD=So.Z.down,zF=So.Z.move;function Bb(n){this._initHandlers(n)}Bb.prototype={constructor:Bb,_initHandlers:function(n){var t=b.Z.getDocument();function e(D){!function Jj(n,t){var e=t.getData(n);e>=0&&t.click({node:t.getNode(e),coords:t.getCoords(n),event:n})}(D,n)}n.getCoords=function(D){var A=(0,k.a0)(D),N=n.widget._renderer.getRootOffset();return[A.x-N.left,A.y-N.top]},n.root.on(v.u,e),n.root.on(mD,r),d.Z.on(t,mD,r),d.Z.on(t,zF,m),this._disposeHandlers=function(){n.root.off(v.u,e),n.root.off(mD,r),d.Z.off(t,mD,r),d.Z.off(t,zF,m)};var i=!1;function r(D){i?i=!1:(void 0!==n.getData(D)&&(i=!0),m(D))}function m(D){(function Qj(n,t){var e=t.getData(n);e>=0?t.getNode(e).setHover():t.widget.clearHover()})(D,n),n.widget._getOption("tooltip").enabled&&function e$(n,t){var i,e=t.getData(n,!0);e>=0?(i=(0,k.a0)(n),t.getNode(e).showTooltip([i.x,i.y])):t.widget.hideTooltip()}(D,n)}},dispose:function(){this._disposeHandlers()}};var n$=0,WF=Ip.prototype;WF._eventsMap.onItemClick={name:"itemClick"},WF._eventsMap.onLegendClick={name:"legendClick"};var r$={name:"tracker",init:function(){var n=this,t="__funnel_data_"+n$++,e=function(i){var r=n._renderer.getRootOffset(),m=Math.floor(i.pageX-r.left),D=Math.floor(i.pageY-r.top);return n._hitTestTargets(m,D)};n._tracker=new Bb({widget:n,root:n._renderer.root,getData:function(i,r){var D=i.target[t];if((0,w.$K)(D))return D;var A=e(i);return r&&A&&"inside-label"!==A.type?void 0:A&&A.id},getNode:function(i){return n._items[i]},click:function(i){var r=e(i.event);n._eventTrigger("legend"===(r&&r.type)?"legendClick":"itemClick",{item:i.node,event:i.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var n=this._dataKey;this._items.forEach(function(t,e){t.element.data(n,e)})}}};function UF(n,t,e){var i=e.getRootOffset();return n||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[5])/2+i.top]||[-1e3,-1e3]}var o$={name:"funnel-tooltip",init:E.ZT,dispose:E.ZT,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(n,t){var e=UF(t,n.coords,this._renderer);this._tooltip.move(e[0],e[1],0)},_showTooltip:function(n,t){var e=this,i=e._tooltip,r=e._items[n];if(e._tooltipIndex!==n){var m=A=>{void 0!==A&&(A||i.hide(),e._tooltipIndex=A?n:-1)},D=UF(t,r.coords,this._renderer);m(i.show({value:r.value,valueText:i.formatValue(r.value),percentText:i.formatValue(r.percent,"percent"),percent:r.percent,item:r},{x:D[0],y:D[1],offset:0},{item:r},void 0,m))}else e._moveTooltip(r,t)}},customize:function(n){n.addPlugin(Fe)}};Ip.addPlugin(qj),Ip.addPlugin(Bu),Ip.addPlugin(Oe),Ip.addPlugin(ZC),Ip.addPlugin(r$),Ip.addPlugin(o$),Ip.addPlugin(wi);let ZF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.lj9,M.y1h,M.bgw,M.Ye1,M.kZH,M.gN6,M.e1H,M.dwQ,M.YXG,M.FZZ,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,g.Lz,g.ie,p.Cu],M.lsC,M.lj9,M.y1h,M.bgw,M.Ye1,M.kZH,M.gN6,M.e1H,M.dwQ,M.YXG,M.FZZ,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.Kx,M.vZC,M.Ois,g.ie]}),n})();var XA=u(4969),Df="dx-gallery",s$=Df+"-wrapper",KF="dx-gallery-loop",l$=Df+"-container",GF=Df+"-active",Fb=Df+"-item",Vb=Df+"-item-invisible",Nb=Fb+"-loop",u$="."+Fb,qA=Fb+"-selected",jF=Df+"-indicator",JA=jF+"-item",$F="."+JA,YF=JA+"-selected",qF=ca.Z.inherit({_supportedKeys:function(){return(0,y.l)(this.callBase(),{pageUp:E.ZT,pageDown:E.ZT})},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var n=this,t=this.$element(),e=(0,k.V4)(v.u,this.NAME);t.addClass(Df+"-nav-button-"+this.option("direction")),d.Z.off(t,e),d.Z.on(t,e,function(i){n._createActionByOption("onClick")({event:i})})},_optionChanged:function(n){switch(n.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(n)}}}),JF=kb.Z.inherit({_activeStateUnit:u$,_wasAnyItemTemplateRendered:!1,_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new B.c(function(n,t){var e=(0,l.Z)("<img>").addClass("dx-gallery-item-image");(0,w.PO)(t)?(this._prepareDefaultItemTemplate(t,n),e.attr({src:t.imageSrc,alt:t.imageAlt}).appendTo(n)):e.attr("src",String(t)).appendTo(n)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return Fb},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var n=this.option("wrapAround");return this.option("stretchImages")?1/(n?this._itemsPerPage()+1:this._itemsPerPage()):n?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var t=(0,s.Y_)(this.$element()),e=this.option("initialItemWidth");return e&&e<=t?e/t:1},_itemsPerPage:function(){var n=(0,mi.Ym)()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(n,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass(Df),this.$element().toggleClass(KF,this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var n=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(n),!0),this._renderItemVisibility()},_renderDragHandler:function(){var n=(0,k.V4)("dragstart",this.NAME);d.Z.off(this.$element(),n),d.Z.on(this.$element(),n,"img",function(){return!1})},_renderWrapper:function(){this._$wrapper||(this._$wrapper=(0,l.Z)("<div>").addClass(s$).appendTo(this.$element()))},_renderItems:function(n){if(!(0,mi.Ym)()){var t=this.option("selectedIndex");n=n.length>t?n.slice(t,t+1):n.slice(0,1)}this.callBase(n),this._loadNextPageIfNeeded()},_onItemTemplateRendered(){return()=>{this._wasAnyItemTemplateRendered||(this._wasAnyItemTemplateRendered=!0,(0,Db.U_)(this.$element()))}},_renderItemsContainer:function(){this._$container||(this._$container=(0,l.Z)("<div>").addClass(l$).appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var i,t=(this.option("items")||[]).length,e=t-1;if(t){this._getLoopedItems().remove();var r=Math.min(this._itemsPerPage(),t),m=this._getRealItems(),D=this._itemContainer();for(i=0;i<r;i++)this._cloneItemForDuplicate(m[i],D);for(i=0;i<r;i++)this._cloneItemForDuplicate(m[e-i],D)}}},_cloneItemForDuplicate:function(n,t){n&&(0,l.Z)(n).clone(!1).addClass(Nb).css("margin",0).appendTo(t)},_getRealItems:function(){var n="."+Fb+":not(."+Nb+")";return this.$element().find(n)},_getLoopedItems:function(){return this.$element().find("."+Nb)},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(n){var t=this._itemElements(),e=this._actualItemWidth();void 0!==n&&(t=t.slice(n)),t.each(function(i){(0,s.Ns)((0,l.Z)(t[i]),100*e+"%")})},_renderItemPositions:function(){var n=this._actualItemWidth(),t=this._itemsCount(),e=this._itemsPerPage(),i=this.$element().find("."+Nb).length,r=t+i-1,m=this.option("wrapAround")?.5:0,D=this._itemFreeSpace(),A=!!D,N=this.option("rtlEnabled"),Q=this.option("selectedIndex"),se=N?"Right":"Left";this._itemElements().each(function(we){var Re=we,Ue=(0,l.Z)(this).hasClass(Nb);if(we>t+e-1&&(Re=r-Re-e),Ue||0===Re){var st=n*(Re+m)+D*(Re+1-m),Ot=Ue?se.toLowerCase():"margin"+se;(0,l.Z)(this).css(Ot,100*st+"%")}else A&&(0,l.Z)(this).css("margin"+se,100*D+"%")}),this._relocateItems(Q,Q,!0)},_itemFreeSpace:function(){var n=this._itemsPerPage();return this.option("wrapAround")&&(n+=1),(1-this._actualItemWidth()*n)/(n+1)},_renderContainerPosition:function(n,t,e){this._releaseInvisibleItems(),n=n||0;var A,i=this,r=this._actualItemWidth(),m=n,D=this._offsetDirection()*m*(r+this._itemFreeSpace());return(0,w.$K)(this._animationOverride)&&(e=this._animationOverride,delete this._animationOverride),e?(i._startSwipe(),A=i._animate(D).done(i._endSwipe.bind(i))):((0,Ms.pB)(this._$container,{left:D*this._elementWidth(),top:0}),A=(new P.BH).resolveWith(i)),A.done(function(){this._deferredAnimate&&i._deferredAnimate.resolveWith(i),t&&this._renderItemVisibility()}),A.promise()},_startSwipe:function(){this.$element().addClass(GF)},_endSwipe:function(){this.$element().removeClass(GF)},_animate:function(n,t){var e=this,i=this._$container,r=new P.BH;return h.Z.animate(this._$container,(0,y.l)({type:"slide",to:{left:n*this._elementWidth()},duration:e.option("animationDuration"),complete:function(){e._needMoveContainerForward()&&(0,Ms.pB)(i,{left:0,top:0}),e._needMoveContainerBack()&&(0,Ms.pB)(i,{left:e._maxContainerOffset()*e._elementWidth(),top:0}),r.resolveWith(e)}},t||{})),r},_needMoveContainerForward:function(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack:function(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var n=this._itemElements().first().find(".dx-item-content");!n||n.is(":hidden")||(this.option("height")||this.option("height",(0,s.zp)(n)),this.option("width")||this.option("width",(0,s.Y_)(n)),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var n=this._$indicator=(0,l.Z)("<div>").addClass(jF).appendTo(this._$wrapper),t=this.option("indicatorEnabled"),e=0;e<this._pagesCount();e++){var i=(0,l.Z)("<div>").addClass(JA).appendTo(n);t&&this._attachIndicatorClickHandler(i,e)}this._renderSelectedPageIndicator()}},_attachIndicatorClickHandler:function(n,t){d.Z.on(n,(0,k.V4)(v.u,this.NAME),function(e){this._indicatorSelectHandler(e,t)}.bind(this))},_detachIndicatorClickHandler:function(n){d.Z.off(n,(0,k.V4)(v.u,this.NAME))},_toggleIndicatorInteraction:function(n){var t,e=(null===(t=this._$indicator)||void 0===t?void 0:t.find($F))||[];e.length&&e.each(function(i,r){n?this._attachIndicatorClickHandler((0,l.Z)(r),i):this._detachIndicatorClickHandler((0,l.Z)(r))}.bind(this))},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var n=this.option("selectedIndex");this._itemElements().removeClass(qA).eq(n).addClass(qA)},_renderItemVisibility:function(){this.option("initialItemWidth")||this.option("wrapAround")?this._releaseInvisibleItems():(this._itemElements().each(function(n,t){this.option("selectedIndex")===n?(0,l.Z)(t).removeClass(Vb):(0,l.Z)(t).addClass(Vb)}.bind(this)),this._getLoopedItems().addClass(Vb))},_releaseInvisibleItems:function(){this._itemElements().removeClass(Vb),this._getLoopedItems().removeClass(Vb)},_renderSelectedPageIndicator:function(){if(this._$indicator){var n=this.option("selectedIndex"),t=this._pagesCount()-1,e=Math.ceil(n/this._itemsPerPage());e=Math.min(t,e),this._$indicator.find($F).removeClass(YF).eq(e).addClass(YF)}},_renderUserInteraction:function(){var n=this.$element(),t=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(n,XA.Z,{disabled:this.option("disabled")||!t,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler:function(n,t){if(this.option("indicatorEnabled")){var e=this._fitPaginatedIndex(t*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",e),this._loadNextPageIfNeeded(e)}},_renderNavButtons:function(){var n=this;n.option("showNavButtons")?(n._prevNavButton=(0,l.Z)("<div>").appendTo(this._$wrapper),n._createComponent(n._prevNavButton,qF,{direction:"prev",onClick:function(){n._prevPage()}}),n._nextNavButton=(0,l.Z)("<div>").appendTo(this._$wrapper),n._createComponent(n._nextNavButton,qF,{direction:"next",onClick:function(){n._nextPage()}}),this._renderNavButtonsVisibility()):n._cleanNavButtons()},_prevPage:function(){var n=this._itemsPerPage(),t=this.option("selectedIndex")-n;return t===-n&&n===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t))},_nextPage:function(){var n=this._itemsPerPage(),t=this.option("selectedIndex")+n;return t===n&&n===this._itemsCount()?this._relocateItems(t,0):this.goToItem(this._fitPaginatedIndex(t)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(n){n=void 0===n?this.option("selectedIndex"):n,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(n)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(n)}.bind(this))},_shouldLoadNextPage:function(n){return n+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(n){var t=this._itemsPerPage(),e=n<0?t+n:this._itemsCount()-n;return n>this._itemsCount()-1?(n=0,this._goToGhostItem=!0):e<t&&e>0&&(n>0?n-=t-e:n+=t-e),n},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var n=this.option("selectedIndex"),t=this.option("loop"),e=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===e&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!t){var i=n===e-this._itemsPerPage(),r=e<2||0===n;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||e<2,r&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var n=this,t=n.option("slideshowDelay");clearTimeout(n._slideshowTimer),t&&(n._slideshowTimer=setTimeout(function(){n._userInteraction?n._setupSlideShow():n.nextItem(!0).done(n._setupSlideShow)},t))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=(0,s.dz)(this.$element())),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(n){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var t=this._itemsCount();if(t){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var e=this.option("selectedIndex"),i=t-e-this._itemsPerPage(),r=e,m=this.option("rtlEnabled");n.event.maxLeftOffset=m?r:i,n.event.maxRightOffset=m?i:r}}else n.event.cancel=!0},_stopItemAnimations:function(){h.Z.stop(this._$container,!0)},_swipeUpdateHandler:function(n){var t=this.option("wrapAround")?1:0,e=this._offsetDirection()*n.event.offset*(this._itemsPerPage()+t)-this.option("selectedIndex");e<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(e))),this._renderContainerPosition(e)},_swipeEndHandler:function(n){var t=n.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),e=this.option("selectedIndex"),i=this._fitIndex(e-t),r=this._fitPaginatedIndex(i);Math.abs(t)<this._itemsPerPage()?this._relocateItems(e):this._itemsPerPage()!==this._itemsCount()?this.option("selectedIndex",r):this._relocateItems(t>0?-t:0)},_setFocusOnSelect:function(){this._userInteraction=!0;var n=this.itemElements().filter("."+qA);this.option("focusedElement",(0,S.u)(n)),this._userInteraction=!1},_flipIndex:function(n){var t=this._itemsCount();return(n%=t)>(t+1)/2&&(n-=t),n<-(t-1)/2&&(n+=t),n},_fitIndex:function(n){if(!this.option("loop"))return n;var t=this._itemsCount();return(n>=t||n<0)&&(this._goToGhostItem=!0),n>=t&&(n=t-n),(n%=t)<0&&(n+=t),n},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){this._wasAnyItemTemplateRendered=null,clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(n,t){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(n[0],t[0]),this._renderSelectedPageIndicator()},_relocateItems:function(n,t,e){void 0===t&&(t=n);var i=this._calculateIndexOffset(n,t);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!e).done(function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()})},_focusInHandler:function(){h.Z.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){h.Z.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:E.ZT,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var n=this.itemElements().index((0,l.Z)(this.option("focusedElement")));this.goToItem(n,this.option("animationEnabled"))},_visibilityChanged:function(n){n&&this._reviseDimensions()},_calculateIndexOffset:function(n,t){void 0===t&&(t=n);var e=t-n;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(n)&&this._isItemOnLastPage(t)?e=-this._itemsPerPage():this._isItemOnLastPage(n)&&this._isItemOnFirstPage(t)&&(e=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,e-t},_isItemOnLastPage:function(n){return n>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(n){return n<=this._itemsPerPage()},_optionChanged:function(n){switch(n.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass(KF,n.value),this.option("loopItemFocus",n.value),(0,mi.Ym)()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":(0,mi.Ym)()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(n.value);break;default:this.callBase(n)}},goToItem:function(n,t){var e=this.option("selectedIndex"),i=this._itemsCount();return void 0!==t&&(this._animationOverride=t),n=this._fitIndex(n),this._deferredAnimate=new P.BH,n>i-1||n<0||e===n?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",n),this._deferredAnimate.promise())},prevItem:function(n){return this.goToItem(this.option("selectedIndex")-1,n)},nextItem:function(n){return this.goToItem(this.option("selectedIndex")+1,n)}});(0,T.Z)("dxGallery",JF);let QF=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();var N0="tasks",_D="dependencies",vD="resources",yD="resourceAssignments",p$_create=n=>({NotifyTaskCreated:(t,e,i)=>{n._onRecordInserted(N0,t,e)},NotifyTaskRemoved:(t,e,i)=>{n._onRecordRemoved(N0,t,i)},NotifyTaskUpdated:(t,e,i)=>{n._onRecordUpdated(N0,t,e)},NotifyParentTaskUpdated:(t,e)=>{n._onParentTaskUpdated(t)},NotifyDependencyInserted:(t,e,i)=>{n._onRecordInserted(_D,t,e)},NotifyDependencyRemoved:(t,e,i)=>{n._onRecordRemoved(_D,t,i)},NotifyResourceCreated:(t,e,i)=>{n._onRecordInserted(vD,t,e)},NotifyResourceRemoved:(t,e,i)=>{n._onRecordRemoved(vD,t,i)},NotifyResourceAssigned:(t,e,i)=>{n._onRecordInserted(yD,t,e)},NotifyResourceUnassigned:(t,e,i)=>{n._onRecordRemoved(yD,t,i)},NotifyParentDataRecalculated:t=>{n._onParentTasksRecalculated(t)},NotifyTaskCreating:t=>{n._actionsManager.raiseInsertingAction(N0,t)},NotifyTaskRemoving:t=>{n._actionsManager.raiseDeletingAction(N0,t)},NotifyTaskUpdating:t=>{n._actionsManager.raiseUpdatingAction(N0,t)},NotifyTaskMoving:t=>{n._actionsManager.raiseUpdatingAction(N0,t,n._actionsManager.getTaskMovingAction())},NotifyTaskEditDialogShowing:t=>{n._actionsManager.raiseTaskEditDialogShowingAction(t)},NotifyResourceManagerDialogShowing:t=>{n._actionsManager.raiseResourceManagerDialogShowingAction(t)},NotifyDependencyInserting:t=>{n._actionsManager.raiseInsertingAction(_D,t)},NotifyDependencyRemoving:t=>{n._actionsManager.raiseDeletingAction(_D,t)},NotifyResourceCreating:t=>{n._actionsManager.raiseInsertingAction(vD,t)},NotifyResourceRemoving:t=>{n._actionsManager.raiseDeletingAction(vD,t)},NotifyResourceAssigning:t=>{n._actionsManager.raiseInsertingAction(yD,t)},NotifyResourceUnassigning:t=>{n._actionsManager.raiseDeletingAction(yD,t)},NotifyScaleCellPrepared:t=>{n._actionsManager.raiseScaleCellPreparedAction(t)}});class e8 extends CA.w{constructor(t,e,i){super(),this._optionName=t,this._getLoadPanel=e,this._dataSourceChangedCallback=i}insert(t,e,i){this._showLoadPanel(),this._getStore().insert(t).done(r=>{e&&e(r),this._hideLoadPanel()}).fail(r=>{i&&i(r),this._hideLoadPanel()})}update(t,e,i,r){this._showLoadPanel(),this._getStore().update(t,e).done((m,D)=>{i&&i(m,D),this._hideLoadPanel()}).fail(m=>{r&&r(m),this._hideLoadPanel()})}remove(t,e,i){this._showLoadPanel(),this._getStore().remove(t).done(r=>{e&&e(r),this._hideLoadPanel()}).fail(r=>{i&&i(r),this._hideLoadPanel()})}_dataSourceChangedHandler(t,e){this._dataSourceChangedCallback(this._optionName,t)}_dataSourceOptions(){return{paginate:!1}}_dataSourceLoadingChangedHandler(t){t&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}_showLoadPanel(){var t;null===(t=this._getLoadPanel())||void 0===t||t.show()}_hideLoadPanel(){var t;null===(t=this._getLoadPanel())||void 0===t||t.hide()}_getStore(){return this._dataSource.store()}_getItems(){return this._getStore()._array||this._dataSource.items()}_reloadDataSource(){return this._dataSource.load()}dispose(){this._disposeDataSource()}_optionChanged(t){}}e8.include(yo.Z);const g$=e8;var QA=u(4265),yu="tasks",CD="dependencies",Hb="resources",xD="resourceAssignments";class m${constructor(t){this._gantt=t,this._mappingHelper=t._mappingHelper,this._customFieldsManager=t._customFieldsManager}_createActionByOption(t){return this._gantt._createActionByOption(t)}_getTaskData(t){return this._gantt.getTaskData(t)}_convertCoreToMappedData(t,e){return this._mappingHelper.convertCoreToMappedData(t,e)}_convertMappedToCoreData(t,e){return this._mappingHelper.convertMappedToCoreData(t,e)}_convertMappedToCoreFields(t,e){return this._mappingHelper.convertMappedToCoreFields(t,e)}_convertCoreToMappedFields(t,e){return this._mappingHelper.convertCoreToMappedFields(t,e)}_saveCustomFieldsDataToCache(t,e){this._customFieldsManager.saveCustomFieldsDataToCache(t,e,arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]&&arguments[3])}createTaskDblClickAction(){this._taskDblClickAction=this._createActionByOption("onTaskDblClick")}taskDblClickAction(t){this._taskDblClickAction||this.createTaskDblClickAction(),this._taskDblClickAction(t)}raiseTaskDblClickAction(t,e){var i={cancel:!1,data:this._getTaskData(t),event:e,key:t};return this.taskDblClickAction(i),!i.cancel}createTaskClickAction(){this._taskClickAction=this._createActionByOption("onTaskClick")}taskClickAction(t){this._taskClickAction||this.createTaskClickAction(),this._taskClickAction(t)}raiseTaskClickAction(t,e){var i={key:t,event:e,data:this._getTaskData(t)};this.taskClickAction(i)}createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}selectionChangedAction(t){this._selectionChangedAction||this.createSelectionChangedAction(),this._selectionChangedAction(t)}raiseSelectionChangedAction(t){this.selectionChangedAction({selectedRowKey:t})}createCustomCommandAction(){this._customCommandAction=this._createActionByOption("onCustomCommand")}customCommandAction(t){this._customCommandAction||this.createCustomCommandAction(),this._customCommandAction(t)}raiseCustomCommand(t){this.customCommandAction({name:t})}createContextMenuPreparingAction(){this._contextMenuPreparingAction=this._createActionByOption("onContextMenuPreparing")}contextMenuPreparingAction(t){this._contextMenuPreparingAction||this.createContextMenuPreparingAction(),this._contextMenuPreparingAction(t)}raiseContextMenuPreparing(t){this.contextMenuPreparingAction(t)}_getInsertingAction(t){switch(t){case yu:return this._getTaskInsertingAction();case CD:return this._getDependencyInsertingAction();case Hb:return this._getResourceInsertingAction();case xD:return this._getResourceAssigningAction()}return()=>{}}raiseInsertingAction(t,e){var i=this._getInsertingAction(t);if(i){var r={cancel:!1,values:this._convertCoreToMappedData(t,e.values)};i(r),e.cancel=r.cancel,e.values=this._convertMappedToCoreData(t,r.values),t===yu&&this._saveCustomFieldsDataToCache("gantt_new_task_key",r.values)}}createTaskInsertingAction(){this._taskInsertingAction=this._createActionByOption("onTaskInserting")}taskInsertingAction(t){this._getTaskInsertingAction()(t)}_getTaskInsertingAction(){return this._taskInsertingAction||this.createTaskInsertingAction(),this._taskInsertingAction}createDependencyInsertingAction(){this._dependencyInsertingAction=this._createActionByOption("onDependencyInserting")}dependencyInsertingAction(t){this._getDependencyInsertingAction()(t)}_getDependencyInsertingAction(){return this._dependencyInsertingAction||this.createDependencyInsertingAction(),this._dependencyInsertingAction}createResourceInsertingAction(){this._resourceInsertingAction=this._createActionByOption("onResourceInserting")}resourceInsertingAction(t){this._getResourceInsertingAction()(t)}_getResourceInsertingAction(){return this._resourceInsertingAction||this.createResourceInsertingAction(),this._resourceInsertingAction}createResourceAssigningAction(){this._resourceAssigningAction=this._createActionByOption("onResourceAssigning")}resourceAssigningAction(t){this._getResourceAssigningAction()(t)}_getResourceAssigningAction(){return this._resourceAssigningAction||this.createResourceAssigningAction(),this._resourceAssigningAction}_getInsertedAction(t){switch(t){case yu:return this._getTaskInsertedAction();case CD:return this._getDependencyInsertedAction();case Hb:return this._getResourceInsertedAction();case xD:return this._getResourceAssignedAction()}return()=>{}}raiseInsertedAction(t,e,i){var r=this._getInsertedAction(t);r&&r({values:e,key:i})}createTaskInsertedAction(){this._taskInsertedAction=this._createActionByOption("onTaskInserted")}taskInsertedAction(t){this._getTaskInsertedAction()(t)}_getTaskInsertedAction(){return this._taskInsertedAction||this.createTaskInsertedAction(),this._taskInsertedAction}createDependencyInsertedAction(){this._dependencyInsertedAction=this._createActionByOption("onDependencyInserted")}dependencyInsertedAction(t){this._getDependencyInsertedAction()(t)}_getDependencyInsertedAction(){return this._dependencyInsertedAction||this.createDependencyInsertedAction(),this._dependencyInsertedAction}createResourceInsertedAction(){this._resourceInsertedAction=this._createActionByOption("onResourceInserted")}resourceInsertedAction(t){this._getResourceInsertedAction()(t)}_getResourceInsertedAction(){return this._resourceInsertedAction||this.createResourceInsertedAction(),this._resourceInsertedAction}createResourceAssignedAction(){this._resourceAssignedAction=this._createActionByOption("onResourceAssigned")}resourceAssignedAction(t){this._getResourceAssignedAction()(t)}_getResourceAssignedAction(){return this._resourceAssignedAction||this.createResourceAssignedAction(),this._resourceAssignedAction}_getDeletingAction(t){switch(t){case yu:return this._getTaskDeletingAction();case CD:return this._getDependencyDeletingAction();case Hb:return this._getResourceDeletingAction();case xD:return this._getResourceUnassigningAction()}return()=>{}}raiseDeletingAction(t,e){var i=this._getDeletingAction(t);if(i){var r={cancel:!1,key:e.key,values:this._convertCoreToMappedData(t,e.values)};i(r),e.cancel=r.cancel}}createTaskDeletingAction(){this._taskDeletingAction=this._createActionByOption("onTaskDeleting")}taskDeletingAction(t){this._getTaskDeletingAction()(t)}_getTaskDeletingAction(){return this._taskDeletingAction||this.createTaskDeletingAction(),this._taskDeletingAction}createDependencyDeletingAction(){this._dependencyDeletingAction=this._createActionByOption("onDependencyDeleting")}dependencyDeletingAction(t){this._getDependencyDeletingAction()(t)}_getDependencyDeletingAction(){return this._dependencyDeletingAction||this.createDependencyDeletingAction(),this._dependencyDeletingAction}createResourceDeletingAction(){this._resourceDeletingAction=this._createActionByOption("onResourceDeleting")}resourceDeletingAction(t){this._getResourceDeletingAction()(t)}_getResourceDeletingAction(){return this._resourceDeletingAction||this.createResourceDeletingAction(),this._resourceDeletingAction}createResourceUnassigningAction(){this._resourceUnassigningAction=this._createActionByOption("onResourceUnassigning")}resourceUnassigningAction(t){this._getResourceUnassigningAction()(t)}_getResourceUnassigningAction(){return this._resourceUnassigningAction||this.createResourceUnassigningAction(),this._resourceUnassigningAction}_getDeletedAction(t){switch(t){case yu:return this._getTaskDeletedAction();case CD:return this._getDependencyDeletedAction();case Hb:return this._getResourceDeletedAction();case xD:return this._getResourceUnassignedAction()}return()=>{}}raiseDeletedAction(t,e,i){var r=this._getDeletedAction(t);r&&r({key:e,values:i})}createTaskDeletedAction(){this._taskDeletedAction=this._createActionByOption("onTaskDeleted")}taskDeletedAction(t){this._getTaskDeletedAction()(t)}_getTaskDeletedAction(){return this._taskDeletedAction||this.createTaskDeletedAction(),this._taskDeletedAction}createDependencyDeletedAction(){this._dependencyDeletedAction=this._createActionByOption("onDependencyDeleted")}dependencyDeletedAction(t){this._getDependencyDeletedAction()(t)}_getDependencyDeletedAction(){return this._dependencyDeletedAction||this.createDependencyDeletedAction(),this._dependencyDeletedAction}createResourceDeletedAction(){this._resourceDeletedAction=this._createActionByOption("onResourceDeleted")}resourceDeletedAction(t){this._getResourceDeletedAction()(t)}_getResourceDeletedAction(){return this._resourceDeletedAction||this.createResourceDeletedAction(),this._resourceDeletedAction}createResourceUnassignedAction(){this._resourceUnassignedAction=this._createActionByOption("onResourceUnassigned")}resourceUnassignedAction(t){this._getResourceUnassignedAction()(t)}_getResourceUnassignedAction(){return this._resourceUnassignedAction||this.createResourceUnassignedAction(),this._resourceUnassignedAction}_getUpdatingAction(t){return t===yu?this._getTaskUpdatingAction():()=>{}}raiseUpdatingAction(t,e,i){if(i=i||this._getUpdatingAction(t)){var r=t===yu,m={cancel:!1,key:e.key,newValues:this._convertCoreToMappedData(t,e.newValues),values:r?this._getTaskData(e.key):this._convertCoreToMappedData(t,e.values)};if(r&&this._customFieldsManager.cache.hasData(m.key)&&this._customFieldsManager.addCustomFieldsDataFromCache(m.key,m.newValues),i(m),e.cancel=m.cancel,e.newValues=this._convertMappedToCoreData(t,m.newValues),r)if(m.cancel)this._customFieldsManager.resetCustomFieldsDataCache(m.key);else{var D=!Object.keys(e.newValues).length;this._saveCustomFieldsDataToCache(m.key,m.newValues,D)}}}createTaskUpdatingAction(){this._taskUpdatingAction=this._createActionByOption("onTaskUpdating")}taskUpdatingAction(t){this._getTaskUpdatingAction()(t)}_getTaskUpdatingAction(){return this._taskUpdatingAction||this.createTaskUpdatingAction(),this._taskUpdatingAction}_getUpdatedAction(t){return t===yu?this._getTaskUpdatedAction():()=>{}}raiseUpdatedAction(t,e,i){var r=this._getUpdatedAction(t);r&&r({values:e,key:i})}createTaskUpdatedAction(){this._taskUpdatedAction=this._createActionByOption("onTaskUpdated")}taskUpdatedAction(t){this._getTaskUpdatedAction()(t)}_getTaskUpdatedAction(){return this._taskUpdatedAction||this.createTaskUpdatedAction(),this._taskUpdatedAction}createTaskEditDialogShowingAction(){this._taskEditDialogShowingAction=this._createActionByOption("onTaskEditDialogShowing")}taskEditDialogShowingAction(t){this._getTaskEditDialogShowingAction()(t)}_getTaskEditDialogShowingAction(){return this._taskEditDialogShowingAction||this.createTaskEditDialogShowingAction(),this._taskEditDialogShowingAction}raiseTaskEditDialogShowingAction(t){var e=this._getTaskEditDialogShowingAction();if(e){var i={cancel:!1,key:t.key,values:this._convertCoreToMappedData(yu,t.values),readOnlyFields:this._convertCoreToMappedFields(yu,t.readOnlyFields),hiddenFields:this._convertCoreToMappedFields(yu,t.hiddenFields)};e(i),t.cancel=i.cancel,t.values=this._convertMappedToCoreData(yu,i.values),t.readOnlyFields=this._convertMappedToCoreFields(yu,i.readOnlyFields),t.hiddenFields=this._convertMappedToCoreFields(yu,i.hiddenFields)}}createResourceManagerDialogShowingAction(){this._resourceManagerDialogShowingAction=this._createActionByOption("onResourceManagerDialogShowing")}resourceManagerDialogShowingAction(t){this._getResourceManagerDialogShowingAction()(t)}_getResourceManagerDialogShowingAction(){return this._resourceManagerDialogShowingAction||this.createResourceManagerDialogShowingAction(),this._resourceManagerDialogShowingAction}raiseResourceManagerDialogShowingAction(t){var e=this._getResourceManagerDialogShowingAction();if(e){var r={cancel:!1,values:t.values.resources.items.map(m=>this._convertMappedToCoreData(Hb,m))};e(r),t.cancel=r.cancel}}createTaskMovingAction(){this._taskMovingAction=this._createActionByOption("onTaskMoving")}taskMovingAction(t){this.getTaskMovingAction()(t)}getTaskMovingAction(){return this._taskMovingAction||this.createTaskMovingAction(),this._taskMovingAction}getScaleCellPreparedAction(){return this._scaleCellPreparedAction||this.createScaleCellPreparedAction(),this._scaleCellPreparedAction}createScaleCellPreparedAction(){this._scaleCellPreparedAction=this._createActionByOption("onScaleCellPrepared")}raiseScaleCellPreparedAction(t){var e=this.getScaleCellPreparedAction();e&&e({scaleIndex:t.scaleIndex,scaleType:this._getScaleType(t.scaleType),scaleElement:(0,S.u)((0,l.Z)(t.scaleElement)),separatorElement:(0,S.u)((0,l.Z)(t.separatorElement)),startDate:new Date(t.start),endDate:new Date(t.end)})}_getScaleType(t){switch(t){case 0:return"minutes";case 1:return"hours";case 2:return"sixHours";case 3:return"days";case 4:return"weeks";case 5:return"months";case 6:return"quarters";case 7:return"years";case 8:return"fiveYears";default:return}}}class _${constructor(){this._cache={},this._timers={}}saveData(t,e,i){if(e){this._clearTimer(t);var r=this._getCache(t,!0);(0,y.x)(r,e,!0),i&&this._setExpireTimer(t,i)}}pullDataFromCache(t,e){var i=this._getCache(t);i&&(0,y.x)(e,i),this._onKeyExpired(t)}hasData(t){return!!this._cache[t]}resetCache(t){this._onKeyExpired(t)}_getCache(t,e){return!this._cache[t]&&e&&(this._cache[t]={}),this._cache[t]}_setExpireTimer(t,e){this._timers[t]=setTimeout(()=>{e(t,this._getCache(t)),this._onKeyExpired(t)},200)}_onKeyExpired(t){this._clearCache(t),this._clearTimer(t)}_clearCache(t){delete this._cache[t]}_clearTimer(t){var e=this._timers;e&&e[t]&&(clearTimeout(e[t]),delete e[t])}}var zs={prepareMapHandler:n=>t=>Object.keys(n).reduce((e,i)=>(e["key"===i?"id":i]=n[i](t),e),{}),prepareSetterMapHandler:n=>t=>Object.keys(n).reduce((e,i)=>(n[i](e,t["key"===i?"id":i]),e),{}),compileGettersByOption(n){var t={};for(var e in n){var i=e.match(/(\w*)Expr/);i&&(t[i[1]]=(0,Go.vb)(n[i[0]]))}return t},compileSettersByOption(n){var t={};for(var e in n){var i=e.match(/(\w*)Expr/);i&&(t[i[1]]=(0,Go.OM)(n[i[0]]))}return t},getStoreObject(n,t){var e=zs.compileSettersByOption(n);return Object.keys(e).reduce((i,r)=>("key"!==r&&e[r](i,t[r]),i),{})},getInvertedData(n,t){var e={};if(n)for(var i=0;i<n.length;i++){var r=n[i];e[t(r)]=r}return e},getArrayFromOneElement:n=>null==n?[]:[n],getSelectionMode:n=>n?"single":"none",convertTreeToList(n,t){null!=n&&n.data&&null!=n&&n.visible&&t.push(n.data);for(var e=0;e<(null===(i=n.children)||void 0===i?void 0:i.length);e++){var i;zs.convertTreeToList(n.children[e],t)}},getAllParentNodesKeys(n,t){var e;null!=n&&n.data&&t.push(n.key),null!=n&&null!==(e=n.parent)&&void 0!==e&&e.data&&zs.getAllParentNodesKeys(n.parent,t)},getDefaultOptions:()=>({tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,showDependencies:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,onTaskClick:null,onTaskDblClick:null,onTaskInserting:null,onTaskInserted:null,onTaskDeleting:null,onTaskDeleted:null,onTaskUpdating:null,onTaskUpdated:null,onTaskMoving:null,onTaskEditDialogShowing:null,onDependencyInserting:null,onDependencyInserted:null,onDependencyDeleting:null,onDependencyDeleted:null,onResourceInserting:null,onResourceInserted:null,onResourceDeleting:null,onResourceDeleted:null,onResourceAssigning:null,onResourceAssigned:null,onResourceUnassigning:null,onResourceUnassigned:null,onCustomCommand:null,onContextMenuPreparing:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",scaleTypeRange:{min:"minutes",max:"years"},editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0,allowTaskResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1,enablePredecessorGap:!1},toolbar:null,contextMenu:{enabled:!0,items:void 0},taskTooltipContentTemplate:null,taskProgressTooltipContentTemplate:null,taskTimeTooltipContentTemplate:null,taskContentTemplate:null,rootValue:0,sorting:{ascendingText:yn.Z.format("dxGantt-sortingAscendingText"),descendingText:yn.Z.format("dxGantt-sortingDescendingText"),clearText:yn.Z.format("dxGantt-sortingClearText"),mode:"single",showSortIndexes:!1},filterRow:void 0,headerFilter:void 0,rtlEnabled:!1})},eP="tasks";class v${constructor(t){this._gantt=t,this._mappingHelper=t._mappingHelper,this.cache=new _$}_getTaskCustomFields(){var t=this._gantt.option("columns"),e=t&&t.map(r=>r.dataField),i=this._mappingHelper.getTaskMappedFieldNames();return e?e.filter(r=>i.indexOf(r)<0):[]}_getCustomFieldsData(t){return this._getTaskCustomFields().reduce((e,i)=>(t&&void 0!==t[i]&&(e[i]=t[i]),e),{})}addCustomFieldsData(t,e){if(e){var i=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),r=(0,Go.vb)(this._gantt.option("".concat(eP,".keyExpr"))),m=i&&i.filter(Q=>r(Q)===t)[0],D=this._getTaskCustomFields();if(m)for(var A=0;A<D.length;A++){var N=D[A];Object.prototype.hasOwnProperty.call(m,N)&&(e[N]=m[N])}}}appendCustomFields(t){var e=this._gantt._tasksOption&&this._gantt._tasksOption._getItems(),i=this._gantt._getTaskKeyGetter(),r=zs.getInvertedData(e,i);return t.reduce((m,D)=>{var A=i(D),N=r[A];if(N){var Q={};for(var se in N)Q[se]=Object.prototype.hasOwnProperty.call(D,se)?D[se]:N[se];m.push(Q)}else m.push(D);return m},[])}addCustomFieldsDataFromCache(t,e){this.cache.pullDataFromCache(t,e)}saveCustomFieldsDataToCache(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],m=this._getCustomFieldsData(e);Object.keys(m).length>0&&this.cache.saveData(t,m,i?(D,A)=>{var N=this._gantt["_".concat(eP,"Option")];N&&A&&N.update(D,A,(Q,se)=>{var we={};this.addCustomFieldsData(se,we),N._reloadDataSource().done(Ue=>{this._gantt._ganttTreeList.updateDataSource(Ue??N._dataSource,!1,r)});var Re=this._gantt.option("selectedRowKey");this._gantt._ganttView._selectTask(Re),this._gantt._actionsManager.raiseUpdatedAction(eP,we,se)})}:null)}resetCustomFieldsDataCache(t){this.cache.resetCache(t)}}var tP=u(7449),nP=u(5610),y$=u(682),$u=u(9960),C$=u(5214),zb=u(5981),iP=u(8474),Wb="dxTagData",Ub="dx-tag",t8="dx-tagbox-multi-tag",n8="dx-tag-custom",i8="dx-tag-remove-button",r8="dx-tagbox-single-line",o8=GU.Z.inherit({_supportedKeys:function(){var n=this.callBase(),t=i=>this._list._keyboardHandler(i),e=this.option("rtlEnabled");return(0,y.l)({},n,{backspace:function(i){if(this._isCaretAtTheStart()){this._processKeyboardEvent(i),this._isTagRemoved=!0;var r=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==r.length&&(this._preserveFocusedTag=!0,this._removeTagElement(r),delete this._preserveFocusedTag)}},upArrow:(i,r)=>i.altKey||!this._list?n.upArrow.call(this,i):t(r),downArrow:(i,r)=>i.altKey||!this._list?n.downArrow.call(this,i):t(r),del:function(i){if(this._$focusedTag&&this._isCaretAtTheStart()){this._processKeyboardEvent(i),this._isTagRemoved=!0;var r=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(r),delete this._preserveFocusedTag}},enter:function(i,r){var m=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!m)return i.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(i));this.option("opened")&&(this._saveValueChangeEvent(i),t(r),i.preventDefault())},space:function(i,r){var m=this.option("opened"),D=this._shouldRenderSearchEvent();m&&!D&&(this._saveValueChangeEvent(i),t(r),i.preventDefault())},leftArrow:function(i){if(!(!this._isCaretAtTheStart()||this._isEmpty()||this._isEditable()&&e&&!this._$focusedTag)){i.preventDefault();var r=e?"next":"prev";this._moveTagFocus(r),!this.option("multiline")&&this._scrollContainer(r)}},rightArrow:function(i){if(this._isCaretAtTheStart()&&!this._isEmpty()&&(!this._isEditable()||e||this._$focusedTag)){i.preventDefault();var r=e?"prev":"next";this._moveTagFocus(r),!this.option("multiline")&&this._scrollContainer(r)}}})},_processKeyboardEvent:function(n){n.preventDefault(),n.stopPropagation(),this._saveValueChangeEvent(n)},_isEmpty:function(){return 0===this._getValue().length},_updateTagsContainer:function(n){this._$tagsContainer=n.addClass("dx-tag-container")},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var n=(0,C$.Z)(this._input());return 0===n.start&&0===n.end},_moveTagFocus:function(n,t){if(!this._$focusedTag){var e=this._tagElements();return this._$focusedTag="next"===n?e.first():e.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[n](".".concat(Ub));i.length>0?this._replaceFocusedTag(i):(t||"next"===n&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(n){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=n,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(n){return n&&n.length&&n[0]!==this._focusTarget()[0]?n:this.callBase()},_getLabelContainer:function(){return this._$tagsContainer},_scrollContainer:function(n){if(!this.option("multiline")&&(0,mi.Ym)()&&this._$tagsContainer){var t=this._getScrollPosition(n);this._$tagsContainer.scrollLeft(t)}},_getScrollPosition:function(n){return"start"===n||"end"===n?this._getBorderPosition(n):this._$focusedTag?this._getFocusedTagPosition(n):this._getBorderPosition("end")},_getBorderPosition:function(n){var t=this.option("rtlEnabled");return"end"===n^t^!t?0:(t?-1:1)*(this._$tagsContainer.get(0).scrollWidth-(0,s.Y_)(this._$tagsContainer))},_getFocusedTagPosition:function(n){var e="next"===n^this.option("rtlEnabled"),{left:i}=this._$focusedTag.position(),r=this._$tagsContainer.scrollLeft();return e&&(i+=(0,s.Y_)(this._$focusedTag,!0)-(0,s.Y_)(this._$tagsContainer)),e^i<0&&(r+=i),r},_setNextValue:E.ZT,_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterQueryLength:1500,tagTemplate:"tag",selectAllText:yn.Z.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(n){this._multiTagPreparingHandler(n.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(n){var{length:t}=this._getValue();n.text=this.option("showMultiTagOnly")?yn.Z.getFormatter("dxTagBox-selected")(t):yn.Z.getFormatter("dxTagBox-moreSelected")(t-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new B.c((n,t)=>{var e,i=(0,l.Z)("<div>").addClass("dx-tag-content");(0,l.Z)("<span>").text(null!==(e=t.text)&&void 0!==e?e:t).appendTo(i),(0,l.Z)("<div>").addClass(i8).appendTo(i),n.append(i)},["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(n){n?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,l.Z)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var n=this._getValue(),t=[],e=0,i=n.length;e<i;e++){var r=this._shouldUseDisplayValue(n[e]);t.push((0,l.Z)("<option>").val(r?this._displayGetter(n[e]):n[e]).attr("selected","selected"))}this._getSubmitElement().empty().append(t)}},_initMarkup:function(){this._tagElementsCache=(0,l.Z)();var n=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass(r8,n),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var n=!(0,w.$K)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",n).toggleClass("dx-tagbox-custom-template",!n),this.callBase()},_renderTagRemoveAction:function(){var n=this._createAction(this._removeTagHandler.bind(this)),t=(0,k.V4)(v.u,"dxTagBoxTagRemove");d.Z.off(this._$tagsContainer,t),d.Z.on(this._$tagsContainer,t,".".concat(i8),e=>{n({event:e})})},_renderSingleLineScroll:function(){var n=(0,k.V4)("dxmousewheel",this.NAME),t=this.$element(),e=this.option("multiline");d.Z.off(t,n),"desktop"===x.Z.real().deviceType?e||d.Z.on(t,n,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",e?"":"auto")},_tagContainerMouseWheelHandler:function(n){var t=this._$tagsContainer.scrollLeft(),e=-.3*n.delta;if(!(0,k.j1)(n)&&(0,iP.u)(this._$tagsContainer,e,!0))return this._$tagsContainer.scrollLeft(t+e),!1},_renderEvents:function(){this.callBase();var n=this._input(),t=(0,k.V4)("keydown",this.NAME);d.Z.on(n,t,e=>{var i=(0,k.EV)(e);!this._isControlKey(i)&&this._isEditable()&&this._clearTagFocus()})},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlurOnInputClick()},_renderPreventBlurOnInputClick:function(){var n=(0,k.V4)("mousedown","dxTagBox");d.Z.off(this._inputWrapper(),n),d.Z.on(this._inputWrapper(),n,t=>{t.target!==this._input()[0]&&this._isFocused()&&t.preventDefault()})},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,P.gx)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler(),this.option("text","")},_focusInHandler:function(n){this._preventNestedFocusEvent(n)||this._scrollContainer("end"),this.callBase(n)},_renderInputValue:function(){return this.option("displayValue",this._searchValue()),this.callBase()},_restoreInputText:function(n){n||this._clearTextValue()},_focusOutHandler:function(n){this._preventNestedFocusEvent(n)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(n)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",n=>this._popupElementTabHandler(n)),this._list.registerKeyHandler("escape",n=>this._popupElementEscHandler(n)))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var n=this.option("showSelectionControls")?"all":"multiple";return(0,y.l)(this.callBase(),{selectionMode:n,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:t=>{var{value:e}=t;this._selectAllValueChangeAction({value:e})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var n=new P.BH;return this._updateTagsContainer(this._$textEditorInputContainer),this._renderInputSize(),this._renderTags().done(()=>{this._popup&&this._popup.refreshPosition(),n.resolve()}).fail(n.reject),n.promise()},_listItemClickHandler:function(n){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&(this.callBase(n),this._saveValueChangeEvent(void 0))},_shouldClearFilter:function(){var n=this.callBase();return!this.option("showSelectionControls")&&n},_renderInputSize:function(){var n=this._input(),t=n.val(),e=(0,w.HD)(t)&&t,i="",r="",m=this.option("searchEnabled")||this.option("acceptCustomValue");if(e&&m){var D=(0,f.l5)(n,t,{includePaddings:!0});D.insertAfter(n),i=(0,s.Y_)(D)+5,D.remove()}else t||(r=1);n.css("width",i),n.attr("size",r)},_renderInputSubstitution:function(){this.callBase(),this._updateWidgetHeight()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var n=this._getValue(),t=this.option("maxDisplayedTags");return(0,w.$K)(t)&&n.length>t},_renderMultiTag:function(n){var t=(0,l.Z)("<div>").addClass(Ub).addClass(t8),e={multiTagElement:(0,S.u)(t),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(e),!e.cancel&&(t.data(Wb,e.text),t.insertBefore(n),this._tagTemplate.render({model:e.text,container:(0,S.u)(t)}),t)},_getFilter:function(n){var t=this._dataController.filter(),e=n.getCombinedFilter(this.option("valueExpr"),t),i=encodeURI(JSON.stringify(e)).length,r=this.option("maxFilterQueryLength");if(i<=r)return e;Hs.Z.log("W1019",r)},_getFilteredItems:function(n){var t,e;null===(t=this._loadFilteredItemsPromise)||void 0===t||t.reject();var i=new y$.M(n),r=null===(e=this._list)||void 0===e?void 0:e.option("selectedItems"),m=!!r&&this._list._dataController.isLoaded(),D=r||this.option("selectedItems"),A=i.getLocalFilter(this._valueGetter),N=D.filter(A),Q=N.length===n.length,se=new P.BH,we=this._dataController;if((!this._isDataSourceChanged||m)&&Q)return se.resolve(N).promise();var{customQueryParams:Re,expand:Ue,select:st}=we.loadOptions(),Ot=this._getFilter(i);return we.loadFromStore({filter:Ot,customQueryParams:Re,expand:Ue,select:st}).done((Kt,sn)=>{if(this._isDataSourceChanged=!1,this._disposed)se.reject();else{var{data:wn}=(0,zb.r6)(Kt,sn),rn=we.applyMapFunction(wn);se.resolve(rn.filter(A))}}).fail(se.reject),this._loadFilteredItemsPromise=se,se.promise()},_createTagsData:function(n,t){var e=[],i={},r="this"===this._valueGetterExpr(),m={};t.forEach(N=>{var Q=r?JSON.stringify(N):this._valueGetter(N);m[Q]=N});var D=[];n.forEach((N,Q)=>{var se=m[r?JSON.stringify(N):N];if(r&&!(0,w.$K)(se))D.push(this._loadItem(N,i).always(Re=>{var Ue=this._createTagData(e,Re,N,Q);e.splice(Q,0,Ue)}));else{var we=this._createTagData(e,se,N,Q);e.splice(Q,0,we)}});var A=new P.BH;return P.gx.apply(this,D).always(function(){A.resolve(e)}),A.promise()},_createTagData:function(n,t,e,i){if((0,w.$K)(t))return this._selectedItems.push(t),t;var r=this.option("selectedItem");return this._valueGetter(r)===e?r:e},_isGroupedData:function(){return this.option("grouped")&&!this._dataController.group()},_getItemsByValues:function(n){var t=[];return n.forEach(function(e){var i=this._getItemFromPlain(e);(0,w.$K)(i)&&t.push(i)}.bind(this)),t},_getFilteredGroupedItems:function(n){var t=new P.BH;return this._filteredGroupedItemsLoadPromise&&this._dataController.cancel(this._filteredGroupedItemsLoadPromise.operationId),this._dataController.items().length?t.resolve(this._getItemsByValues(n)):this._filteredGroupedItemsLoadPromise=this._dataController.load().done(()=>{t.resolve(this._getItemsByValues(n))}).fail(()=>{t.resolve([])}).always(()=>{this._filteredGroupedItemsLoadPromise=void 0}),t.promise()},_loadTagsData:function(){var n=this._getValue(),t=new P.BH;return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(n):this._getFilteredItems(n)).done(i=>{this._createTagsData(n,i).always(function(m){t.resolve(m)})}).fail(t.reject.bind(this)),t.promise()},_renderTags:function(){var n=new P.BH,t=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),t=!0,n.resolve())),t||this._loadTagsData().done(e=>{this._disposed?n.reject():(this._renderTagsImpl(e),n.resolve())}).fail(n.reject),n.promise()},_renderTagsImpl:function(n){this._renderTagsCore(n),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(n){return n&&this._dataController.isLoaded()&&n.length<=this._getPlainItems().length},_getItemsFromPlain:function(n){var t=this._getSelectedItemsFromList(n);if(0===t.length&&n.length>0||t.length<n.length){var i=this._getPlainItems();t=this._filterSelectedItems(i,n)}return t},_getSelectedItemsFromList:function(n){var t,e=null===(t=this._list)||void 0===t?void 0:t.option("selectedItems"),i=[];return n.length===e?.length&&(i=this._filterSelectedItems(e,n)),i},_filterSelectedItems:function(n,t){return n.filter(i=>{for(var r,m=0;m<t.length;m++)if((0,w.Kn)(r=t[m])){if(this._isValueEquals(i,r))return!0}else if(this._isValueEquals(this._valueGetter(i),r))return!0;return!1},this)},_integrateInput:function(){this._isInputReady.resolve(),this.callBase();var n=this.$element().find(".".concat("dx-texteditor-input-container"));this._updateTagsContainer(n),this._renderTagRemoveAction()},_renderTagsCore:function(n){var t;null===(t=this._isInputReady)||void 0===t||t.reject(),this._isInputReady=new P.BH,this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags(),this._input().length>0&&this._isInputReady.resolve(),(0,P.gx)(this._isInputReady).done(()=>{this._renderTagsElements(n)})},_renderTagsElements(n){var t=this._multiTagRequired()&&this._renderMultiTag(this._input()),e=this.option("showMultiTagOnly"),i=this.option("maxDisplayedTags");n.forEach((r,m)=>{if(t&&e||t&&!e&&m-i>=-1)return!1;this._renderTag(r,t||this._input())}),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var n=this._tagElements(),t=this._getValue();(0,O.S6)(n,function(e,i){var r=(0,l.Z)(i),m=r.data(Wb);null!=t&&t.includes(m)||r.remove()})}},_renderEmptyState:function(){var n=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(n),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat(Ub))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(n,t){this._tagTemplate.render({model:n,container:(0,S.u)(t)})},_renderTag:function(n,t){var e=this._valueGetter(n);if((0,w.$K)(e)){var i=this._getTag(e),r=this._displayGetter(n),m=this._getItemModel(n,r);i?((0,w.$K)(r)&&(i.empty(),this._applyTagTemplate(m,i)),i.removeClass(n8)):(i=this._createTag(e,t),(0,w.$K)(n)?this._applyTagTemplate(m,i):(i.addClass(n8),this._applyTagTemplate(e,i)))}},_getItemModel:function(n,t){return(0,w.Kn)(n)&&(0,w.$K)(t)?n:(0,E.IS)(t,"")},_getTag:function(n){for(var t=this._tagElements(),e=t.length,i=!1,r=0;r<e;r++){var m=t[r],D=(0,nP.aT)(m,Wb);if(n===D||(0,E.bY)(n,D)){i=(0,l.Z)(m);break}}return i},_createTag:function(n,t){return(0,l.Z)("<div>").addClass(Ub).data(Wb,n).insertBefore(t)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(n){this.callBase(n),this._clearTextValue()},_removeTagHandler:function(n){var t=n.event;t.stopPropagation(),this._saveValueChangeEvent(t);var e=(0,l.Z)(t.target).closest(".".concat(Ub));this._removeTagElement(e)},_removeTagElement:function(n){if(n.hasClass(t8))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var t=n.data(Wb);this._removeTagWithUpdate(t),this._refreshTagElements()}},_updateField:E.ZT,_removeTagWithUpdate:function(n){var t=this._getValue().slice();this._removeTag(t,n),this.option("value",t),0===t.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(n){if("useButtons"!==this.option("applyValueMode")){var t=this._getValue().slice();if((0,O.S6)(n.removedItems||[],(i,r)=>{this._removeTag(t,this._valueGetter(r))}),(0,O.S6)(n.addedItems||[],(i,r)=>{this._addTag(t,this._valueGetter(r))}),this._updateWidgetHeight(),!(0,E.bY)(this._list.option("selectedItemKeys"),this.option("value"))){var e=this._list._getSelectionChangeEvent();e&&this._saveValueChangeEvent(e),this.option("value",t)}this._list._saveSelectionChangeEvent(void 0)}},_removeTag:function(n,t){var e=this._valueIndex(t,n);e>=0&&n.splice(e,1)},_addTag:function(n,t){this._valueIndex(t)<0&&n.push(t)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(n){this.option("showSelectionControls")||this._setValue(n)},_setValue:function(n){if(null!==n){var t="useButtons"===this.option("applyValueMode"),e=this._valueIndex(n),i=(t?this._list.option("selectedItemKeys"):this._getValue()).slice();e>=0?i.splice(e,1):i.push(n),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(n,t){return this._valueIndex(n,null,t)>-1},_valueIndex:function(n,t,e){var i=-1;return e&&"object"!=typeof n&&(e.indexByValues||(e.indexByValues={},(t=t||this._getValue()).forEach(function(r,m){e.indexByValues[r]=m})),n in e.indexByValues)?e.indexByValues[n]:(t=t||this._getValue(),(0,O.S6)(t,(r,m)=>{if(this._isValueEquals(n,m))return i=r,!1}),i)},_lastValue:function(){var n=this._getValue();return n[n.length-1]??null},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(n){this.option("searchEnabled")&&n&&!this._isTagRemoved&&(this.callBase(arguments),this._setListDataSourceFilter()),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var n=this.$element(),t=(0,s.Cr)(n);this._renderInputSize();var e=(0,s.Cr)(n);this._popup&&this.option("opened")&&this._isEditable()&&e!==t&&this._popup.repaint()},_refreshSelected:function(){var n;null!==(n=this._list)&&void 0!==n&&n.getDataSource()&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var n=this._dataController;delete this._userFilter,n.filter(null),n.reload()},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var n=this._dataController,t=this._valueGetterExpr();if((0,w.HD)(t)&&"this"!==t){var e=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=n.filter()||null),this._userFilter&&e.push(this._userFilter),n.filter(e.length?e:null)}else n.filter(this._dataSourceFilterFunction.bind(this));n.load()}},_dataSourceFilterExpr:function(){var n=[];return this._getValue().forEach(t=>n.push(["!",[this._valueGetterExpr(),t]])),n},_dataSourceFilterFunction:function(n){var t=this._valueGetter(n),e=!0;return(0,O.S6)(this._getValue(),(i,r)=>{if(this._isValueEquals(r,t))return e=!1,!1}),e},_dataSourceChangedHandler:function(){this._isDataSourceChanged=!0,this.callBase.apply(this,arguments)},_applyButtonHandler:function(n){this._saveValueChangeEvent(n.event),this.option("value",this._getSortedListValues()),this._clearTextValue(),this.callBase(),this._cancelSearchIfNeed()},_getSortedListValues:function(){var n=this._getListValues(),t=this.option("value")||[],e=n.length?(0,$u.Ed)(t,n):[],i=e.length?(0,$u.R1)(n,t):n;return e.concat(i)},_getListValues:function(){return this._list?this._getPlainItems(this._list.option("selectedItems")).map(n=>this._valueGetter(n)):[]},_setListDataSource:function(){var n=this._getValue();this.callBase(),n!==this.option("value")&&this.option("value",n),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&!this.option("opened")&&this._refreshSelected()},reset:function(){this._restoreInputText();var n=this._getDefaultOptions().value,t=this.option("value");n&&0===n.length&&t&&n.length===t.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_getSelectedItemsDifference(n,t){if(!n.length)return{addedItems:[],removedItems:t.slice()};if(!t.length)return{addedItems:n.slice(),removedItems:[]};var e=t.reduce((r,m)=>(r[this._valueGetter(m)]=m,r),{}),i=[];return n.forEach(r=>{var m=this._valueGetter(r);e[m]||i.push(r),delete e[m]}),{addedItems:i,removedItems:Object.values(e)}},_optionChanged:function(n){var{name:t,value:e,previousValue:i}=n;switch(t){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":e?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(e);break;case"displayExpr":this.callBase(n),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"readOnly":case"disabled":this.callBase(n),!e&&this._refreshEvents();break;case"value":this._valuesToUpdate=e,this.callBase(n),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(t,e);break;case"selectedItem":case"maxFilterQueryLength":break;case"selectedItems":this._selectionChangedAction(this._getSelectedItemsDifference(e,i));break;case"multiline":this.$element().toggleClass(r8,!e),this._renderSingleLineScroll();break;default:this.callBase(n)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,T.Z)("dxTagBox",o8);const M$=o8;var rP=u(1031),a8="dx-radiobutton",s8="dx-radiobutton-icon";class N$ extends kb.Z{_focusTarget(){return this.$element().parent()}_nullValueSelectionSupported(){return!0}_getDefaultOptions(){var t=super._getDefaultOptions();return(0,y.l)(t,lD.Z._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}_initMarkup(){super._initMarkup(),(0,E.g0)(()=>{this.itemElements().addClass(a8)})}_keyboardEventBindingTarget(){return this._focusTarget()}_postprocessRenderItem(t){var{itemData:{html:e},itemElement:i}=t;if(!e){var r=(0,l.Z)("<div>").addClass(s8);(0,l.Z)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(r);var m=(0,l.Z)("<div>").append(r).addClass("dx-radio-value-container");(0,l.Z)(i).prepend(m)}super._postprocessRenderItem(t)}_processSelectableItem(t,e){super._processSelectableItem(t,e),t.toggleClass("dx-radiobutton-checked",e).find(".".concat(s8)).first().toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e,t)}_refreshContent(){this._prepareContent(),this._renderContent()}_supportedKeys(){var t=super._supportedKeys();return(0,y.l)({},t,{enter:function(e){return e.preventDefault(),t.enter.apply(this,arguments)},space:function(e){return e.preventDefault(),t.space.apply(this,arguments)}})}_itemElements(){return this._itemContainer().children(this._itemSelector())}_setAriaSelected(){}}class oP extends rP.Z{_dataSourceOptions(){return{paginate:!1}}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:()=>"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator(),options:{focusStateEnabled:!0}}])}_fireContentReadyAction(t){t&&super._fireContentReadyAction()}_focusTarget(){return this.$element()}_getAriaTarget(){return this.$element()}_getDefaultOptions(){var t=super._getDefaultOptions();return(0,y.l)(t,(0,y.l)(lD.Z._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical"}))}_getItemValue(t){return this._valueGetter?this._valueGetter(t):t.text}_getSubmitElement(){return this._$submitElement}_init(){super._init(),this._activeStateUnit=".".concat(a8),this._feedbackHideTimeout=100,this._initDataExpressions()}_initMarkup(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this._renderLayout(),super._initMarkup()}_itemClickHandler(t){var{itemElement:e,event:i,itemData:r}=t;if(this.itemElements().is(e)){var m=this._getItemValue(r);m!==this.option("value")&&(this._saveValueChangeEvent(i),this.option("value",m))}}_getSelectedItemKeys(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("value");return"this"!==this.option("valueExpr")&&null===t||(0,w.$K)(t)?[t]:[]}_setSelection(t){var e=this._unwrappedValue(t);this._setCollectionWidgetOption("selectedItemKeys",this._getSelectedItemKeys(e))}_optionChanged(t){var{name:e,value:i}=t;switch(this._dataExpressionOptionChanged(t),e){case"dataSource":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(e,i);break;case"disabled":super._optionChanged(t),this._setCollectionWidgetOption(e,i);break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),super._optionChanged(t);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:super._optionChanged(t)}}_render(){super._render(),this._updateItemsSize()}_renderLayout(){var t=this.option("layout"),e=this.$element();e.toggleClass("dx-radiogroup-vertical","vertical"===t),e.toggleClass("dx-radiogroup-horizontal","horizontal"===t)}_renderRadios(){this._areRadiosCreated=new P.BH;var t=(0,l.Z)("<div>").appendTo(this.$element()),{displayExpr:e,accessKey:i,focusStateEnabled:r,itemTemplate:m,tabIndex:D}=this.option();this._createComponent(t,N$,{onInitialized:A=>{var{component:N}=A;this._radios=N},onContentReady:A=>{this._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),displayExpr:e,accessKey:i,dataSource:this._dataSource,focusStateEnabled:r,itemTemplate:m,keyExpr:this._getCollectionKeyExpr(),noDataText:"",scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:this._getSelectedItemKeys(),tabIndex:D}),this._areRadiosCreated.resolve()}_renderSubmitElement(){this._$submitElement=(0,l.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}_setOptionsByReference(){super._setOptionsByReference(),(0,y.l)(this._optionsByReference,{value:!0})}_setSubmitValue(t){var e;t=null!==(e=t)&&void 0!==e?e:this.option("value");var i="this"===this.option("valueExpr")?this._displayGetter(t):t;this._$submitElement.val(i)}_setCollectionWidgetOption(){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))}_updateItemsSize(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var t=this.option("items").length;this.itemElements().css("height",100/t+"%")}}focus(){var t;null===(t=this._radios)||void 0===t||t.focus()}itemElements(){var t;return null===(t=this._radios)||void 0===t?void 0:t.itemElements()}}oP.include(lD.Z),(0,T.Z)("dxRadioGroup",oP);const H$=oP;var zo=u(8119);u(4137),u(9156);class z${constructor(t,e){this._popupInstance=t._createComponent(e,Tp.Z),this.infoMap={TaskEdit:W$,Resources:U$,Confirmation:Z$,ConstraintViolation:K$}}_apply(){if(this._dialogInfo.isValidated()){var t=this._dialogInfo.getResult();this._callback(t),this.hide()}}show(t,e,i,r,m){if(this._callback=i,this._afterClosing=r,this.infoMap[t]){var D=this._popupInstance._isVisible()&&this._dialogInfo&&this._dialogInfo instanceof this.infoMap[t];this._dialogInfo=new this.infoMap[t](e,this._apply.bind(this),this.hide.bind(this),m),this._popupInstance.option({showTitle:!!this._dialogInfo.getTitle(),title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._afterClosing&&this._popupInstance.option("onHidden",this._afterClosing),D||this._popupInstance.show()}}hide(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()}}class bD{constructor(t,e,i,r){this._parameters=t,this._applyAction=e,this._hideAction=i,this._editingOptions=r}_getFormItems(){return{}}_getFormCssClass(){return""}_getFormData(){return this._parameters}_updateParameters(){}_getOkToolbarItem(){return this._getToolbarItem("OK",this._applyAction)}_getCancelToolbarItem(){return this._getToolbarItem("Cancel",this._hideAction)}_getYesToolbarItem(){return this._getToolbarItem("Yes",this._applyAction)}_getNoToolbarItem(){return this._getToolbarItem("No",this._hideAction)}_getToolbarItem(t,e){return{widget:"dxButton",toolbar:"bottom",options:{text:yn.Z.format(t),onClick:e}}}getTitle(){return""}getToolbarItems(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]}getMaxWidth(){return 400}getHeight(){return"auto"}getContentTemplate(){return t=>(this._form=new tP.Z(t,{formData:this._getFormData(),items:this._getFormItems(),elementAttr:{class:this._getFormCssClass()},rtlEnabled:!1}),t)}getResult(){var t=this.getFormData();return this._updateParameters(t),this._parameters}getFormData(){return this._form&&this._form.option("formData")}isValidated(){return!0}}class W$ extends bD{getTitle(){return yn.Z.format("dxGantt-dialogTaskDetailsTitle")}_getFormItems(){var t=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,e=t||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:yn.Z.format("dxGantt-dialogTitle")},editorOptions:{readOnly:t||this._isReadOnlyField("title")},visible:!this._isHiddenField("title")},{dataField:"start",editorType:"dxDateBox",label:{text:yn.Z.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:e||this._isReadOnlyField("start")},visible:!this._isHiddenField("start"),validationRules:[{type:"required",message:yn.Z.format("validation-required-formatted",yn.Z.format("dxGantt-dialogStartTitle"))},{type:"custom",validationCallback:i=>{if(this._parameters.isValidationRequired){var r=this._parameters.getCorrectDateRange(this._parameters.id,i.value,this._parameters.end);if(r.start.getTime()!==i.value.getTime())return i.rule.message=this._getValidationMessage(!0,r.start),!1}return!0}}]},{dataField:"end",editorType:"dxDateBox",label:{text:yn.Z.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:e||this._isReadOnlyField("end")},visible:!this._isHiddenField("end"),validationRules:[{type:"required",message:yn.Z.format("validation-required-formatted",yn.Z.format("dxGantt-dialogEndTitle"))},{type:"custom",validationCallback:i=>{if(this._parameters.isValidationRequired){var r=this._parameters.getCorrectDateRange(this._parameters.id,this._parameters.start,i.value);if(r.end.getTime()!==i.value.getTime())return i.rule.message=this._getValidationMessage(!1,r.end),!1}return!0}}]},{dataField:"progress",editorType:"dxNumberBox",label:{text:yn.Z.format("dxGantt-dialogProgressTitle")},editorOptions:{showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:e||this._isReadOnlyField("progress")},visible:!this._isHiddenField("progress")},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:yn.Z.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:t||!this._editingOptions.allowTaskResourceUpdating,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{disabled:!this._editingOptions.allowResourceAdding&&!this._editingOptions.allowResourceDeleting,text:"...",hint:yn.Z.format("dxGantt-dialogEditResourceListHint"),onClick:()=>{this._parameters.showResourcesDialogCommand.execute(()=>{this._parameters.showTaskEditDialogCommand.execute()})}}}]}}]}_getValidationMessage(t,e){return yn.Z.format(t?"dxGantt-dialogStartDateValidation":"dxGantt-dialogEndDateValidation",this._getFormattedDateText(e))}_getFormattedDateText(t){return t?zo.Z.format(t,"shortDateShortTime"):""}_isReadOnlyField(t){return this._parameters.readOnlyFields.indexOf(t)>-1}_isHiddenField(t){return this._parameters.hiddenFields.indexOf(t)>-1}_getFormData(){var t={};for(var e in this._parameters)t[e]="progress"===e?this._parameters[e]/100:this._parameters[e];return t}_updateParameters(t){this._parameters.title=t.title,this._parameters.start=t.start,this._parameters.end=t.end,this._parameters.progress=100*t.progress,this._parameters.assigned=t.assigned}isValidated(){var t;return(null===(t=this._form)||void 0===t?void 0:t.validate())?.isValid}}class U$ extends bD{getTitle(){return yn.Z.format("dxGantt-dialogResourceManagerTitle")}_getFormItems(){return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:yn.Z.format("dxGantt-dialogEditNoResources"),onInitialized:t=>{this.list=t.component},onItemDeleted:t=>{this._parameters.resources.remove(t.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:t=>{this.textBox=t.component},onInput:t=>{var e=t.component.getButton("addResource"),i=t.component.option("text");e.option("disabled",0===i.length)},buttons:[{name:"addResource",location:"after",options:{text:yn.Z.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:t=>{var e=this._parameters.resources.createItem();e.text=this.textBox.option("text"),this._parameters.resources.add(e),this.list.option("items",this._parameters.resources.items),this.list.scrollToItem(e),this.textBox.reset(),t.component.option("disabled",!0)}}}]}}]}}class Z$ extends bD{getContentTemplate(){return t=>this._getConfirmMessage()}_getConfirmMessage(){switch(this._parameters.type){case 0:return yn.Z.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return yn.Z.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return yn.Z.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}}getToolbarItems(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]}}class K$ extends bD{_getFormItems(){var D,t=this._parameters.hasCriticalErrors,e=this._parameters.errorsCount>1,i=[],r=e?"dxGantt-dialogDeleteDependenciesMessage":"dxGantt-dialogDeleteDependencyMessage",m=e?"dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"dxGantt-dialogMoveTaskAndKeepDependencyMessage";return D=t?e?"dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"dxGantt-dialogConstraintCriticalViolationMessage":e?"dxGantt-dialogConstraintViolationSeveralTasksMessage":"dxGantt-dialogConstraintViolationMessage",i.push({text:yn.Z.format("dxGantt-dialogCancelOperationMessage"),value:0}),i.push({text:yn.Z.format(r),value:1}),t||i.push({text:yn.Z.format(m),value:2}),[{template:yn.Z.format(D)},{cssClass:"dx-cv-dialog-row",dataField:"option",label:{visible:!1},editorType:"dxRadioGroup",editorOptions:{items:i,valueExpr:"value",value:0}}]}_getFormCssClass(){return"dx-cv-dialog"}_updateParameters(t){this._parameters.option=t.option}}var Tf=u(2879),wD=(0,mi.Jj)();class $${constructor(t){this._gantt=t,this._treeList=t._treeList,this._cache={}}reset(){this._cache={}}getTreeListTableStyle(){var t=this._getTreeListTable(),e=wD.getComputedStyle(t);return{color:e.color,backgroundColor:e.backgroundColor,fontSize:e.fontSize,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontStyle:e.fontStyle,textAlign:"left",verticalAlign:"middle"}}getTreeListColCount(){return this._getHeaderView().getColumnWidths().filter(i=>i>0).length}getTreeListHeaderInfo(t){var e=this._getHeaderElement(t);if(!e)return null;var i=wD.getComputedStyle(e),r={color:i.color,padding:i.padding,paddingLeft:i.paddingLeft,paddingTop:i.paddingTop,paddingRight:i.paddingRight,paddingBottom:i.paddingBottom,verticalAlign:i.verticalAlign,width:this._getColumnWidth(t)};return{content:e.textContent,styles:r}}getTreeListCellInfo(t,e){var i,r=this._treeList.getNodeByKey(t),m=this._treeList.getRowIndexByKey(t),D=m>-1?this._getDataCell(m,e):null,A=D?wD.getComputedStyle(D):this._getColumnCellStyle(e),N={color:A.color,padding:A.padding,paddingLeft:A.paddingLeft,paddingTop:A.paddingTop,paddingRight:A.paddingRight,paddingBottom:A.paddingBottom,width:this._getColumnWidth(e)};return 0===e&&(N.extraLeftPadding=this._getEmptySpaceWidth(r.level)),{content:null!==(i=D?.textContent)&&void 0!==i?i:this._getDisplayText(t,e),styles:N}}getTreeListEmptyDataCellInfo(){return{content:this._treeList.option("noDataText")}}_ensureColumnWidthCache(t){var e,i;if(null!==(i=(e=this._cache).columnWidths)&&void 0!==i||(e.columnWidths={}),!this._cache.columnWidths[t]){var r,m=this._getHeaderElement(t);this._cache.columnWidths[t]=null!==(r=m?.clientWidth)&&void 0!==r?r:0}}_getColumnWidth(t){this._ensureColumnWidthCache(t);var e=this._cache.columnWidths;return e&&e[t]}_getEmptySpaceWidth(t){if(!this._cache.emptyWidth){var e,i,r,m=this._getTreeListElement("dx-treelist-empty-space");null!==(i=(e=this._cache).emptyWidth)&&void 0!==i||(e.emptyWidth=null!==(r=m.offsetWidth)&&void 0!==r?r:0)}return this._cache.emptyWidth*(t+1)}_getColumnCellStyle(t){return this._ensureColumnCellStyleCache(t),this._cache.columnStyles[t]}_ensureColumnCellStyleCache(t){var e,i;if(null!==(i=(e=this._cache).columnStyles)&&void 0!==i||(e.columnStyles={}),!this._cache.columnStyles[t]){var r=this._getDataCell(0,t);this._cache.columnStyles[t]=wD.getComputedStyle(r)}}_getTask(t){return this._ensureTaskCache(t),this._cache.tasks[t]}_ensureTaskCache(t){var e,i,r,m;null!==(i=(e=this._cache).tasks)&&void 0!==i||(e.tasks={}),null!==(m=(r=this._cache.tasks)[t])&&void 0!==m||(r[t]=this._gantt._findTaskByKey(t))}_getTreeListTable(){return this._getTreeListElement("dx-treelist-table")}_getTreeListElement(t){return this._treeList._$element.find("."+t).get(0)}_getDataCell(t,e){var r=this._treeList.getCellElement(t,e);return r&&r.length?r[0]:r}_getHeaderElement(t){return this._getHeaderView().getHeaderElement(t).get(0)}_getHeaderView(){return this._treeList._views.columnHeadersView}_getDisplayText(t,e){var i=this._getTask(t);return i&&this._getGridDisplayText(e,i)}_getGridDisplayText(t,e){var r=this._treeList.getController("columns").getColumns()[t],m=r?.dataField,D=r?.format,A=Tf.Z.getDisplayValue(r,e[m],e,"data");if((0,w.$K)(D)){if("date"===r?.dataType||"datetime"===r?.dataType){var N=(0,w.J_)(A)?A:new Date(A);return zo.Z.format(N,D)}if((0,w.kE)(A))return qv.Z.format(A,D)}return"string"==typeof A?A:A?.toString()}}var aP=/(\w*)Expr/;class X${constructor(t){this._gantt=t}_getMappedFieldName(t,e){var i=e;return"id"===e&&(i="key"),this._gantt.option("".concat(t,".").concat(i,"Expr"))}getTaskMappedFieldNames(){var t=[],e=this._gantt.option("tasks");for(var i in e){var r=i.match(aP),m=r&&e[r[0]];m&&t.push(m)}return t}convertCoreToMappedData(t,e){return Object.keys(e).reduce((i,r)=>{var m=this._getMappedFieldName(t,r);return m&&(0,Go.OM)(m)(i,e[r]),i},{})}convertMappedToCoreData(t,e){var i={};if(e){var r=this._gantt.option(t);for(var m in r){var D=m.match(aP),A=D&&r[D[0]];if(A&&void 0!==e[A]){var N=(0,Go.vb)(A);i[D[1]]=N(e)}}}return i}convertCoreToMappedFields(t,e){return e.reduce((i,r)=>{var m=this._getMappedFieldName(t,r);return m&&i.push(m),i},[])}convertMappedToCoreFields(t,e){var i=[],r=this._gantt.option(t);for(var m in r){var D=m.match(aP),A=D&&r[D[0]];A&&e.indexOf(A)>-1&&i.push(D[1])}return i}}class q${constructor(t){this._gantt=t}_setTreeListDimension(t,e){var i,m="width"===t?s.dz:s.Cr;("width"===t?s.cl:s.QQ)(this._gantt._$treeListWrapper,e),null===(i=this._gantt._ganttTreeList)||void 0===i||i.setOption(t,m(this._gantt._$treeListWrapper))}_setGanttViewDimension(t,e){var r="width"===t?s.dz:s.Cr;("width"===t?s.cl:s.QQ)(this._gantt._$ganttView,e),this._gantt._setGanttViewOption(t,r(this._gantt._$ganttView))}_getPanelsWidthByOption(){var t,e,m,i=(0,s.dz)(this._gantt._$element),r=this._gantt.option("taskListWidth");return isNaN(r)?(null===(t=r.indexOf)||void 0===t?void 0:t.call(r,"px"))>0?m=i-parseInt(r.replace("px",""))+"px":(null===(e=r.indexOf)||void 0===e?void 0:e.call(r,"%"))>0&&(m=100-parseInt(r.replace("%",""))+"%"):m=i-parseInt(r),{leftPanelWidth:r,rightPanelWidth:m}}onAdjustControl(){var t=(0,s.Cr)(this._gantt._$element);this.updateGanttWidth(),this.setGanttHeight(t)}onApplyPanelSize(t){this.setInnerElementsWidth(t),this.updateGanttRowHeights()}updateGanttRowHeights(){var e,t=this._gantt._ganttTreeList.getRowHeight();this._gantt._getGanttViewOption("rowHeight")!==t&&(this._gantt._setGanttViewOption("rowHeight",t),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.updateRowHeights(t))}adjustHeight(){this._gantt._hasHeight||(this._gantt._setGanttViewOption("height",0),this._gantt._setGanttViewOption("height",this._gantt._ganttTreeList.getOffsetHeight()))}setInnerElementsWidth(t){(0,mi.Ym)()&&(t||(t=this._getPanelsWidthByOption(),this._gantt._splitter._setSplitterPositionLeft({splitterPositionLeft:t.leftPanelWidth}),this._setTreeListDimension("width",0),this._setGanttViewDimension("width",0)),this._setTreeListDimension("width",t.leftPanelWidth),this._setGanttViewDimension("width",t.rightPanelWidth))}updateGanttWidth(){this._gantt._splitter._dimensionChanged()}setGanttHeight(t){var e,r=t-this._gantt._$toolbarWrapper.get(0).offsetHeight;this._setTreeListDimension("height",r),this._setGanttViewDimension("height",r),null===(e=this._gantt._ganttView)||void 0===e||e._ganttViewCore.resetAndUpdate()}}class J${constructor(t){this._gantt=t}getTaskTooltipContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,m,D)=>(e.render({model:this._gantt.getTaskDataByCoreData(m),container:(0,S.u)((0,l.Z)(r)),onRendered:()=>{D()}}),!0))}getTaskProgressTooltipContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,m,D)=>(e.render({model:m,container:(0,S.u)((0,l.Z)(r)),onRendered:()=>{D()}}),!0))}getTaskTimeTooltipContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,m,D)=>(e.render({model:m,container:(0,S.u)((0,l.Z)(r)),onRendered:()=>{D()}}),!0))}getTaskContentTemplateFunc(t){var e=t&&this._gantt._getTemplate(t);return e&&((r,m,D,A)=>(m.taskData=this._gantt.getTaskDataByCoreData(m.taskData),e.render({model:m,container:(0,S.u)((0,l.Z)(r)),onRendered:()=>{D(r,A)}}),!0))}}class l8{constructor(t,e){this._element=t,this._owner=e,this._items=[],this._createControl()}createItems(t){this._cache=null,this._items=this._createItemsCore(t),this._menu.option("items",this._items)}_createItemsCore(t){return t.map(e=>{var i;return i="string"==typeof e?this._createItemByText(e):(0,y.l)(e.name?this._createItemByText(e.name):this._getDefaultItemOptions(),e),e.items&&(i.items=this._createItemsCore(e.items)),i})}_createItemByText(t){switch(t.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(6,yn.Z.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(7,yn.Z.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(12,yn.Z.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(11,yn.Z.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(0,yn.Z.format("dxGantt-addNewTask"),this._getIcon("add"));case"addsubtask":return this._createDefaultItem(1,yn.Z.format("dxGantt-contextMenuNewSubtask"),this._getIcon("add-sub-task"));case"deletetask":return this._createDefaultItem(2,yn.Z.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"deletedependency":return this._createDefaultItem(3,yn.Z.format("dxGantt-contextMenuDeleteDependency"),this._getIcon("delete-dependency"));case"zoomin":return this._createDefaultItem(8,yn.Z.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(9,yn.Z.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(10,yn.Z.format("dxGantt-fullScreen"),this._getIcon("full-screen"));case"taskdetails":return this._createDefaultItem(4,yn.Z.format("dxGantt-dialogTaskDetailsTitle")+"...",this._getIcon("task-details"));case"resourcemanager":return this._createDefaultItem(13,yn.Z.format("dxGantt-dialogResourceManagerTitle"),this._getIcon("resource-manager"));case"showresources":return this._createDefaultItem(14,yn.Z.format("dxGantt-showResources"),this._getIcon("toggle-resources"));case"showdependencies":return this._createDefaultItem(15,yn.Z.format("dxGantt-showDependencies"),this._getIcon("toggle-dependencies"));default:return(0,y.l)(this._getDefaultItemOptions(),{options:{text:t}})}}_getDefaultItemOptions(){return{}}_getItemsCache(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache}_fillCache(t){t.forEach(e=>{var i=e.commandId;void 0!==i&&(this._cache[i]||(this._cache[i]=[]),this._cache[i].push(e)),e.items&&this._fillCache(e.items)})}_getIcon(t){return"dx-gantt-i dx-gantt-i-"+t}getCommandKeys(){var t=this._getItemsCache(),e=[];for(var i in t)e.push(parseInt(i));return e}setItemEnabled(t,e){this._getItemsCache()[t].forEach(r=>{r.disabled=!e})}setItemVisible(t,e){this._getItemsCache()[t].forEach(r=>{r.visible=e})}setItemValue(t,e){}setEnabled(t){this._menu.option("disabled",!t)}updateItemsList(){}isVisible(){return!0}isContextMenu(){return!1}completeUpdate(){}}class eY extends l8{_createControl(){this._menu=this._owner._createComponent(this._element,Tb.Z,{onItemClick:t=>{void 0!==t.itemData.commandId&&this._executeCommand(t.itemData.commandId)}})}_executeCommand(t){switch(t){case 14:this._owner.option("showResources",!this._owner.option("showResources"));break;case 15:this._owner.option("showDependencies",!this._owner.option("showDependencies"));break;default:this._owner._executeCoreCommand(t)}}_createDefaultItem(t,e,i){return{commandId:t,disabled:!0,widget:"dxButton",location:"before",options:{icon:i,stylingMode:"text",hint:e}}}_createSeparator(){return{location:"before",template:(t,e,i)=>{(0,l.Z)(i).addClass("dx-gantt-toolbar-separator")}}}_getDefaultItemOptions(){return{location:"before",widget:"dxButton"}}completeUpdate(){this._menu.option("items",this._items)}}class tY extends l8{_createControl(){this._menu=this._owner._createComponent(this._element,Xv.Z,{showEvent:void 0,onItemClick:t=>{void 0!==t.itemData.commandId?this._owner._executeCoreCommand(t.itemData.commandId):void 0!==t.itemData.name&&this._owner._actionsManager.raiseCustomCommand(t.itemData.name)}})}createItems(t){(!t||0===t.length)&&(t=this._getDefaultItems()),super.createItems(t)}_getDefaultItems(){return[{text:yn.Z.format("dxGantt-dialogButtonAdd"),commandId:5,icon:this._getIcon("add"),items:[{text:yn.Z.format("dxGantt-contextMenuNewTask"),commandId:0,icon:this._getIcon("add-task")},{text:yn.Z.format("dxGantt-contextMenuNewSubtask"),commandId:1,icon:this._getIcon("add-sub-task")}]},{text:yn.Z.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:4,icon:this._getIcon("task-details")},{text:yn.Z.format("dxGantt-contextMenuDeleteTask"),commandId:2,icon:this._getIcon("delete")},{text:yn.Z.format("dxGantt-contextMenuDeleteDependency"),commandId:3,icon:this._getIcon("delete-dependency")}]}_createDefaultItem(t,e,i){return{commandId:t,text:e,icon:i}}show(t,e){this._menu.option("items",e||this._items),this._menu.option("position.offset",{x:t.x,y:t.y}),this._menu.option("position.collision","fit"),this._menu.show()}hide(){this._menu.hide()}isContextMenu(){return!0}}var nY=u(3390);const Vo=(0,y.l)({},nY.Z,{modules:[],foreachNodes:function(n,t,e){for(var i=0;i<n.length;i++)!1!==t(n[i])&&(e||n[i].hasChildren)&&n[i].children.length&&this.foreachNodes(n[i].children,t,e)}});var iY=u(2496);Vo.registerModule("columnHeaders",iY.q);var u8=u(980),rY=u8.W.controllers.columns.inherit({_getFirstItems:function(n){return this.callBase(n).map(function(t){return t.data})},getFirstDataColumnIndex:function(){for(var n=this.getVisibleColumns(),t=n.length,e=0,i=0;i<=t-1;i++)if(!(0,w.$K)(n[i].command)){e=n[i].index;break}return e}});Vo.registerModule("columns",{defaultOptions:u8.W.defaultOptions,controllers:{columns:rY}});var oY=u(1771),Zb=u(820),If=u(7316),aY=u(6181),sY=u(3382),{queryByOptions:lY}=sY.Z,ED=n=>"fullBranch"===n.option("filterMode"),sP=aY.Z.inherit({_createKeyGetter:function(){var n=this.getKeyExpr();return(0,Go.vb)(n)},_createKeySetter:function(){var n=this.getKeyExpr();return(0,w.mf)(n)?n:(0,Go.OM)(n)},createParentIdGetter:function(){return(0,Go.vb)(this.option("parentIdExpr"))},createParentIdSetter:function(){var n=this.option("parentIdExpr");return(0,w.mf)(n)?n:(0,Go.OM)(n)},_createItemsGetter:function(){return(0,Go.vb)(this.option("itemsExpr"))},_createHasItemsGetter:function(){var n=this.option("hasItemsExpr");return n&&(0,Go.vb)(n)},_createHasItemsSetter:function(){var n=this.option("hasItemsExpr");return(0,w.mf)(n)?n:n&&(0,Go.OM)(n)},_updateIndexByKeyObject:function(n){var t=this;t._indexByKey={},(0,O.S6)(n,function(e,i){t._indexByKey[i.key]=e})},_calculateHasItems:function(n,t){var i,e=t.storeLoadOptions.parentIds,r=ED(this);return this._hasItemsGetter&&(e||!t.storeLoadOptions.filter||r)&&(i=this._hasItemsGetter(n.data)),void 0===i&&(i=!(this._isChildrenLoaded[n.key]||!t.remoteOperations.filtering||!e&&!r)||(t.loadOptions.filter&&!t.remoteOperations.filtering&&r?n.children.length:n.hasChildren)),!!i},_fillVisibleItemsByNodes:function(n,t,e){for(var i=0;i<n.length;i++)n[i].visible&&e.push(n[i]),(this.isRowExpanded(n[i].key,t)||!n[i].visible)&&n[i].hasChildren&&n[i].children.length&&this._fillVisibleItemsByNodes(n[i].children,t,e)},_convertItemToNode:function(n,t,e){var i=this._keyGetter(n),r=this._parentIdGetter(n),m=e[r=(0,w.$K)(r)?r:t]=e[r]||{key:r,children:[]},D=e[i]=e[i]||{key:i,children:[]};return D.data=n,D.parent=m,D},_createNodesByItems:function(n,t){var m,e=this.option("rootValue"),i={},r=this._nodeByKey={};if(t)for(m=0;m<t.length;m++)i[this._keyGetter(t[m])]=!0;for(m=0;m<n.length;m++){var D=this._convertItemToNode(n[m],e,r);if(void 0===D.key)return;D.visible=!t||!!i[D.key],D.parent&&D.parent.children.push(D)}var A=r[e]||{key:e,children:[]};return A.level=-1,A},_convertDataToPlainStructure:function(n,t,e){var i;if(this._itemsGetter&&!n.isConverted){e=e||[];for(var r=0;r<n.length;r++){var m=(0,oY.FL)(n[r]);void 0===(i=this._keyGetter(m))&&this._keySetter(m,i=e.length+1),this._parentIdSetter(m,void 0===t?this.option("rootValue"):t),e.push(m);var D=this._itemsGetter(m);if(D&&D.length){this._convertDataToPlainStructure(D,i,e);var A=this.option("itemsExpr");(0,w.mf)(A)||delete m[A]}}return e.isConverted=!0,e}return n},_createIdFilter:function(n,t){for(var e=[],i=0;i<t.length;i++)e.push([n,"=",t[i]]);return Tf.Z.combineFilters(e,"or")},_customizeRemoteOperations:function(n,t){this.callBase.apply(this,arguments),n.remoteOperations.paging=!1;var e=!1;this.option("autoExpandAll")&&(n.remoteOperations.sorting=!1,n.remoteOperations.filtering=!1,(!this._lastLoadOptions||t.filtering&&!n.storeLoadOptions.filter)&&!n.isCustomLoading&&(e=!0)),n.isCustomLoading||(this._isReload=this._isReload||t.reload,n.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(t.filtering||this._isReload&&n.storeLoadOptions.filter)&&(n.storeLoadOptions.filter?e=!0:n.collapseVisibleNodes=!0)),n.expandVisibleNodes=e},_getParentIdsToLoad:function(n){for(var t=[],e=0;e<n.length;e++){var i=this.getNodeByKey(n[e]);(!i||i.hasChildren&&!i.children.length)&&t.push(n[e])}return t},_handleCustomizeStoreLoadOptions:function(n){var t=this.option("rootValue"),e=this.option("parentIdExpr"),i=n.storeLoadOptions.parentIds;if(i&&(n.isCustomLoading=!1),this.callBase.apply(this,arguments),n.remoteOperations.filtering&&!n.isCustomLoading&&(ED(this)&&n.cachedStoreData||!n.storeLoadOptions.filter)){var r=n.collapseVisibleNodes?[]:this.option("expandedRowKeys");i=[t].concat(r).concat(i||[]);var m=n.data?this._getParentIdsToLoad(i):i;m.length&&(n.cachedPagingData=void 0,n.data=void 0,n.mergeStoreLoadData=!0,n.delay=this.option("loadingTimeout")),n.storeLoadOptions.parentIds=m,n.storeLoadOptions.filter=this._createIdFilter(e,m)}},_generateInfoToLoad:function(n,t){var e,A,i={},r={},m=[],D=this.option("rootValue");for(A=0;A<n.length;A++)i[e=t?this._parentIdGetter(n[A]):this._keyGetter(n[A])]=!0;for(A=0;A<n.length;A++){e=t?this._keyGetter(n[A]):this._parentIdGetter(n[A]);var N=t?this.isRowExpanded(e):e!==D;!i[e]&&!r[e]&&N&&(r[e]=!0,m.push(e))}return{keyMap:r,keys:m}},_loadParentsOrChildren:function(n,t,e){var r,m,i=this,{keys:D,keyMap:A}=i._generateInfoToLoad(n,e),N=new P.BH,Q=t.remoteOperations.filtering,se=i.option("maxFilterLengthInRequest"),we=Q?t.storeLoadOptions:t.loadOptions;function Re(sn){return Q&&(i._cachedStoreData=i._cachedStoreData.concat(sn)),n.concat(sn)}if(!D.length)return N.resolve(n);var Ue=D.map(sn=>this.getNodeByKey(sn)).filter(sn=>sn&&sn.data);if(Ue.length===D.length&&(e&&(Ue=Ue.reduce((sn,wn)=>sn.concat(wn.children),[])),Ue.length))return i._loadParentsOrChildren(Re(Ue.map(sn=>sn.data)),t,e);var st=e?i.option("parentIdExpr"):i.getKeyExpr();r=i._createIdFilter(st,D),encodeURI(JSON.stringify(r)).length>se&&(r=function(sn){return A[e?i._parentIdGetter(sn):i._keyGetter(sn)]},m=Q),we=(0,y.l)({},we,{filter:m?null:r});var Kt=t.fullData?new Zb.Z(t.fullData):i._dataSource.store();return i.loadFromStore(we,Kt).done(function(sn){sn.length?(m&&(sn=(0,If.Z)(sn).filter(r).toArray()),i._loadParentsOrChildren(Re(sn),t,e).done(N.resolve).fail(N.reject)):N.resolve(n)}).fail(N.reject),N},_loadParents:function(n,t){return this._loadParentsOrChildren(n,t)},_loadChildrenIfNeed:function(n,t){return ED(this)?this._loadParentsOrChildren(n,t,!0):(0,P.gx)(n)},_updateHasItemsMap:function(n){var t=n.storeLoadOptions.parentIds;if(t)for(var e=0;e<t.length;e++)this._isChildrenLoaded[t[e]]=!0},_getKeyInfo:function(){return{key:()=>"key",keyOf:n=>n.key}},_processChanges:function(n){var t=[];return n.forEach(e=>{"insert"===e.type?t=t.concat(this._applyInsert(e)):"remove"===e.type?t=t.concat(this._applyRemove(e)):"update"===e.type&&t.push({type:e.type,key:e.key,data:{data:e.data}})}),t},_handleChanging:function(n){this.callBase.apply(this,arguments);var t=e=>{var i=e.filter(r=>"update"===r.type);return this._processChanges(i)};n.postProcessChanges=t},_applyBatch:function(n){var t=this._processChanges(n);this.callBase(t)},_setHasItems:function(n,t){var e=this._hasItemsSetter;n.hasChildren=t,e&&n.data&&e(n.data,t)},_applyInsert:function(n){var t=[],e=this.parentKeyOf(n.data),i=this.getNodeByKey(e);if(i){var r=this.option("rootValue"),m=this._convertItemToNode(n.data,r,this._nodeByKey);if(m.hasChildren=!1,m.level=i.level+1,m.visible=!0,i.children.push(m),this._isChildrenLoaded[m.key]=!0,this._setHasItems(i,!0),(!i.parent||this.isRowExpanded(i.key))&&void 0!==n.index){var D=this.items().indexOf(i)+1;D+=n.index>=0?Math.min(n.index,i.children.length):i.children.length,t.push({type:n.type,data:m,index:D})}}return t},_needToCopyDataObject:function(){return!1},_applyRemove:function(n){var t=[],e=this.getNodeByKey(n.key),i=e&&e.parent;if(i){var r=i.children.indexOf(e);r>=0&&(i.children.splice(r,1),i.children.length||this._setHasItems(i,!1),t.push(n),t=t.concat(this.getChildNodeKeys(n.key).map(m=>({type:n.type,key:m}))))}return t},_handleDataLoaded:function(n){var t=n.data=this._convertDataToPlainStructure(n.data);!n.remoteOperations.filtering&&n.loadOptions.filter&&(n.fullData=lY((0,If.Z)(n.data),{sort:n.loadOptions&&n.loadOptions.sort}).toArray()),this._updateHasItemsMap(n),this.callBase(n),t.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(n,t,e,i){var r=ED(this);i=i||0;for(var m=0;m<n.length;m++){var D=n[m],A=!1;this._fillNodes(n[m].children,t,e,i+1),D.level=i,D.hasChildren=this._calculateHasItems(D,t),D.visible&&D.hasChildren&&(r?D.children.filter(N=>N.visible).length?A=!0:D.children.length&&Vo.foreachNodes(D.children,function(N){N.visible=!0}):A=!0,t.expandVisibleNodes&&A&&e.push(D.key)),(D.visible||D.hasChildren)&&(D.parent.hasChildren=!0)}},_processTreeStructure:function(n,t){var e=n.data,i=n.storeLoadOptions.parentIds,r=[];if(i&&i.length||this._isReload){if(n.fullData&&n.fullData.length>n.data.length&&(e=n.fullData,t=t||n.data),this._rootNode=this._createNodesByItems(e,t),!this._rootNode)return void(n.data=(new P.BH).reject(Hs.Z.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,n,r),this._isNodesInitializing=!0,(n.collapseVisibleNodes||r.length)&&this.option("expandedRowKeys",r),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}var m=[];this._fillVisibleItemsByNodes(this._rootNode.children,n,m),n.data=m,this._totalItemsCount=m.length},_handleDataLoadedCore:function(n){var D,t=this,e=n.data,i=t.callBase,r=n.storeLoadOptions.filter||n.loadOptions.filter,m=t.option("filterMode"),A=n.storeLoadOptions.parentIds;if(!n.isCustomLoading){if(r&&(!A||!A.length)&&"standard"!==m){var Q=n.data=new P.BH;return"matchOnly"===m&&(D=e),t._loadParents(e,n).done(function(se){t._loadChildrenIfNeed(se,n).done(we=>{n.data=we,t._processTreeStructure(n,D),i.call(t,n),Q.resolve(n.data)})}).fail(Q.reject)}t._processTreeStructure(n)}t.callBase(n)},_handlePush:function(n){var{changes:t}=n,e=this._dataSource._reshapeOnPush,i=e&&!!t.length;i&&(this._isReload=!0),t.forEach(r=>{var m;return null!==(m=r.index)&&void 0!==m?m:r.index=-1}),this.callBase.apply(this,arguments)},init:function(n,t){this.callBase.apply(this,arguments);var e=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this.createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===e&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var n=this.store(),t=n&&n.key(),e=this.option("keyExpr");if((0,w.$K)(t)&&(0,w.$K)(e)&&!(0,E.bY)(t,e))throw Hs.Z.Error("E1044");return t||e||"id"},keyOf:function(n){return this._keyGetter&&this._keyGetter(n)},parentKeyOf:function(n){return this._parentIdGetter&&this._parentIdGetter(n)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount+this._totalCountCorrection},isRowExpanded:function(n,t){if(t){var e=t.isExpandedByKey;return e||(e=t.isExpandedByKey={},this.option("expandedRowKeys").forEach(function(r){e[r]=!0})),!!e[n]}return Tf.Z.getIndexByKey(n,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(n){var t=this.option("expandedRowKeys").slice(),e=Tf.Z.getIndexByKey(n,t,null);e<0?t.push(n):t.splice(e,1),this.option("expandedRowKeys",t)},changeRowExpand:function(n){return this._changeRowExpandCore(n),this._isNodesInitializing?(new P.BH).resolve():this.load()},getNodeByKey:function(n){if(this._nodeByKey)return this._nodeByKey[n]},getNodeLeafKeys:function(){var n=this,t=[];return(n._rootNode?[n._rootNode.key]:[]).forEach(function(i){var r=n.getNodeByKey(i);r&&Vo.foreachNodes([r],function(m){!m.children.length&&t.push(m.key)})}),t},getChildNodeKeys:function(n){var t=this.getNodeByKey(n),e=[];return t&&Vo.foreachNodes(t.children,function(i){e.push(i.key)}),e},loadDescendants:function(n,t){var e=this,i=new P.BH,r=e.remoteOperations();if(n=(0,w.$K)(n)?Array.isArray(n)?n:[n]:e.getNodeLeafKeys(),!r.filtering||!n.length)return i.resolve();var m=e._dataSource._createStoreLoadOptions();return m.parentIds=n,e.load(m).done(function(){if(!t){var D=(A=e,Q=[],n.forEach(function(se){var we=A.getNodeByKey(se);we&&we.children.forEach(function(Re){Q.push(Re.key)})}),Q);if(D.length)return void e.loadDescendants(D,t).done(i.resolve).fail(i.reject)}var A,Q;i.resolve()}).fail(i.reject),i.promise()},forEachNode:function(){var t,n=[];if(1===arguments.length){t=arguments[0];var e=this.getRootNode();n=e&&e.children||[]}else 2===arguments.length&&(t=arguments[1],n=arguments[0],n=Array.isArray(n)?n:[n]);Vo.foreachNodes(n,t)}});const d8={extend:function(n){sP=sP.inherit(n)},create:function(n){return new sP(n)}};var c8=u(9799),dY=c8.p.controllers.data.inherit({_getDataSourceAdapter:function(){return d8},_getNodeLevel:function(n){for(var t=-1;n.parent;)n.visible&&t++,n=n.parent;return t},_generateDataItem:function(n,t){return{rowType:"data",node:n,key:n.key,data:n.data,isExpanded:this.isRowExpanded(n.key,t),level:this._getNodeLevel(n)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(n,t){return!(!this.callBase.apply(this,arguments)||n.node&&t.node&&n.node.hasChildren!==t.node.hasChildren||n.level!==t.level||n.isExpanded!==t.isExpanded)},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(n){var t=this._dataSource;if(t)return t.keyOf(n)},key:function(){var n=this._dataSource;if(n)return n.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(n){if(this._dataSource){var t={key:n},e=this.isRowExpanded(n);if(this.executeAction(e?"onRowCollapsing":"onRowExpanding",t),!t.cancel)return this._dataSource.changeRowExpand(n).done(()=>{this.executeAction(e?"onRowCollapsed":"onRowExpanded",t)})}return(new P.BH).resolve()},isRowExpanded:function(n,t){return this._dataSource&&this._dataSource.isRowExpanded(n,t)},expandRow:function(n){return this.isRowExpanded(n)?(new P.BH).resolve():this.changeRowExpand(n)},collapseRow:function(n){return this.isRowExpanded(n)?this.changeRowExpand(n):(new P.BH).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(n){switch(n.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),n.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":this._dataSource&&!this._dataSource._isNodesInitializing&&!(0,E.bY)(n.value,n.previousValue)&&this._loadOnOptionChange(),n.handled=!0;break;case"maxFilterLengthInRequest":n.handled=!0;break;default:this.callBase(n)}},getNodeByKey:function(n){if(this._dataSource)return this._dataSource.getNodeByKey(n)},getChildNodeKeys:function(n){if(this._dataSource)return this._dataSource.getChildNodeKeys(n)},loadDescendants:function(n,t){if(this._dataSource)return this._dataSource.loadDescendants(n,t)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}});Vo.registerModule("data",{defaultOptions:function(){return(0,y.l)({},c8.p.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:dY}});var cY=u(3881);Vo.registerModule("sorting",cY.G);var h8=u(6027),p8="dx-treelist-text-content",g8="dx-treelist-expanded",f8="dx-treelist-collapsed",fY=h8.U.views.rowsView.inherit(function(){var n=function(t,e){var i=(0,l.Z)("<div>").addClass("dx-treelist-empty-space");return t&&i.toggleClass(g8,e).toggleClass(f8,!e).append((0,l.Z)("<span>")),i};return{_renderIconContainer:function(t,e){var i=(0,l.Z)("<div>").addClass("dx-treelist-icon-container").appendTo(t);return e.watch&&e.watch(function(){return[e.row.level,e.row.isExpanded,e.row.node.hasChildren]},()=>{i.empty(),this._renderIcons(i,e)}),t.addClass("dx-treelist-cell-expandable"),this._renderIcons(i,e)},_renderIcons:function(t,e){for(var i=e.row,r=i.level,m=0;m<=r;m++)t.append(n(m===r&&i.node.hasChildren,i.isExpanded));return t},_renderCellCommandContent:function(t,e){return this._renderIconContainer(t,e),!0},_processTemplate:function(t,e){var i,r=this,D=this.callBase(t),A=r._columnsController.getFirstDataColumnIndex();return D&&(null===(i=e.column)||void 0===i?void 0:i.index)===A?{render:function(N){var se,Q=N.container;r._renderCellCommandContent(Q,N.model)&&(N.container=(se=Q,(0,l.Z)("<div>").addClass(p8).appendTo(se))),D.render(N)}}:D},_updateCell:function(t,e){t=t.hasClass(p8)?t.parent():t,this.callBase(t,e)},_rowClick:function(t){var e=this._dataController,i=(0,l.Z)(t.event.target),r=this.isExpandIcon(i),m=e&&e.items()[t.rowIndex];r&&m&&e.changeRowExpand(m.key),this.callBase(t)},_createRow:function(t){var e=t&&t.node,i=this.callBase.apply(this,arguments);return e&&(this.setAria("level",t.level+1,i),e.hasChildren&&this.setAria("expanded",t.isExpanded,i)),i},isExpandIcon:function(t){return!!t.closest("."+g8+", ."+f8).length}}}());Vo.registerModule("rows",{defaultOptions:h8.U.defaultOptions,views:{rowsView:fY}});var mY=u(9256);Vo.registerModule("contextMenu",mY.y);var _Y=u(3979);Vo.registerModule("errorHandling",_Y.M);var lP=u(3990),vY=lP.C.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});Vo.registerModule("gridView",{defaultOptions:lP.C.defaultOptions,controllers:lP.C.controllers,views:{gridView:vY},extenders:{controllers:{resizing:{_synchronizeColumns:function(){var n=this.option("wordWrapEnabled");n&&this._toggleContentMinHeight(!0),this.callBase(arguments),n&&(0,E.Su)(()=>{(0,E.g0)(()=>{(0,E.Su)(()=>{this._toggleContentMinHeight(!1)})})})},_toggleBestFitMode:function(n){this.callBase(n),this._rowsView.getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),n)}}}}});var yY=u(2758);Vo.registerModule("headerPanel",yY.z);var Kb=Vo.callModuleItemsMethod,xY="dx-treelist";Vo.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editingRowBased","editingFormBased","editingCellBased","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var uP=ca.Z.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var n=this.callBase();return(0,O.S6)(Vo.modules,function(){(0,w.mf)(this.defaultOptions)&&(0,y.l)(!0,n,this.defaultOptions())}),n},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,z.x2)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){this.callBase(),Vo.processModules(this,Vo),Kb(this,"init")},_clean:E.ZT,_optionChanged:function(n){Kb(this,"optionChanged",[n]),n.handled||this.callBase(n)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(n){n&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass(xY),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var n=this;(0,E.g0)(function(){n._renderContentImpl()})},_dispose:function(){this.callBase(),Kb(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),Kb(this,"beginUpdate")},endUpdate:function(){Kb(this,"endUpdate"),this.callBase()},getController:function(n){return this._controllers[n]},getView:function(n){return this._views[n]},focus:function(n){this.callBase(),(0,w.$K)(n)&&this.getController("keyboardNavigation").focus(n)}});uP.registerModule=Vo.registerModule.bind(Vo),(0,T.Z)("dxTreeList",uP);const bY=uP;var m8=u(5733),wY=m8.t.extenders.controllers.stateStoring.applyState;Vo.registerModule("stateStoring",(0,y.l)(!0,{},m8.t,{extenders:{controllers:{stateStoring:{applyState:function(n){wY.apply(this,arguments),this.option("expandedRowKeys",n.expandedRowKeys?n.expandedRowKeys.slice():[])}},data:{getUserState:function(){var n=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(n.expandedRowKeys=this.option("expandedRowKeys")),n}}}}}));var EY=u(2116);Vo.registerModule("columnChooser",EY.T);var SY=u(6264);Vo.registerModule("masterDetail",(0,y.l)(!0,{},SY.h,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}));var OY=u(8543);Vo.registerModule("editorFactory",OY.V);var H0=u(260),_8="dx-treelist-icon-container",IY=H0.X.controllers.editing.inherit({_generateNewItem:function(n){var t=this.callBase(n);return t.data={key:n},t.children=[],t.level=0,t.parentKey=this.option("rootValue"),t},_isProcessedItem:function(){return!0},_setInsertAfterOrBeforeKey:function(n,t){void 0!==t&&t!==this.option("rootValue")?n.insertAfterKey=t:this.callBase.apply(this,arguments)},_getLoadedRowIndex:function(n,t){var e=this.getController("data"),i=e.dataSource(),r=i?.parentKeyOf(t.data);if(void 0!==r&&r!==this.option("rootValue")){var m=Tf.Z.getIndexByKey(r,n);return m>=0&&this._dataController.isRowExpanded(r)?m+1:-1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var n=this.callBase.apply(this,arguments),t=this.option("editing");return n||t.allowAdding},_isDefaultButtonVisible:function(n,t){var e=this.callBase.apply(this,arguments),i=t.row;return"add"===n.name?this.allowAdding(t)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):e},_getEditingButtons:function(n){var t=this.callBase.apply(this,arguments);return n.column.buttons||t.unshift(this._getButtonConfig("add",n)),t},_beforeSaveEditData:function(n){var t=this._dataController,e=this.callBase.apply(this,arguments);if(n&&"insert"!==n.type){var i=t?.store(),r=i?.key();if(!(0,w.$K)(r))throw Hs.Z.Error("E1045")}return e},addRowByRowIndex:function(n){var e=this.getController("data").getVisibleRows()[n];return this.addRow(e?e.key:void 0)},addRow:function(n){return void 0===n&&(n=this.option("rootValue")),this.callBase.call(this,n)},_addRowCore:function(n,t,e){var i=this.callBase,r=this.option("rootValue"),m=this.getController("data"),A=m.dataSource().createParentIdGetter();if(void 0!==(t=A(n))&&t!==r&&!m.isRowExpanded(t)){var N=new P.BH;return m.expandRow(t).done(()=>{setTimeout(()=>{i.call(this,n,t,e).done(N.resolve).fail(N.reject)})}).fail(N.reject),N.promise()}return i.call(this,n,t,e)},_initNewRow:function(n,t){var e=this.getController("data"),i=e.dataSource(),r=i.createParentIdSetter();return r(n.data,t),this.callBase.apply(this,arguments)},allowAdding:function(n){return this._allowEditAction("allowAdding",n)},_needToCloseEditableCell:function(n){return this.callBase.apply(this,arguments)||n.closest("."+_8).length&&this.isEditing()},getButtonLocalizationNames(){var n=this.callBase.apply(this);return n.add="dxTreeList-editingAddRowToNode",n}}),MY=H0.X.extenders.views.rowsView._rowClick,AY=H0.X.extenders.views.rowsView._rowDblClick,v8=function(n){var t=(0,l.Z)(n.event.target),e="dxdblclick"===n.event.type?AY:MY;return!t.closest(".dx-select-checkbox").length&&!PY.call(this,n,e)};function PY(n,t){return!(0,l.Z)(n.event.target).closest("."+_8).length&&(t.call(this,n),!0)}var kY=(0,y.l)({},H0.X.extenders.views.rowsView,{_renderCellCommandContent:function(n,t){var e=this._editingController,i=t.row&&e.isEditRow(t.row.rowIndex),r=t.isEditing||i;return!r&&this.callBase.apply(this,arguments)},_rowClick:function(n){v8.call(this,n)&&this.callBase.apply(this,arguments)},_rowDblClick:function(n){v8.call(this,n)&&this.callBase.apply(this,arguments)}});Vo.registerModule("editing",{defaultOptions:function(){return(0,y.l)(!0,H0.X.defaultOptions(),{editing:{texts:{addRowToNode:yn.Z.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:IY},extenders:{controllers:(0,y.l)(!0,{},H0.X.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:kY,headerPanel:H0.X.extenders.views.headerPanel}}});var RY=u(9057);Vo.registerModule("editingRowBased",RY.j);var LY=u(8968);Vo.registerModule("editingFormBased",LY.F);var BY=u(3098);Vo.registerModule("editingCellBased",BY.Z);var Gb=u(7867),dP=(0,y.l)({},Gb.n.extenders.controllers.editing);delete dP.processItems,delete dP.processDataItem,Vo.registerModule("validating",{defaultOptions:Gb.n.defaultOptions,controllers:Gb.n.controllers,extenders:{controllers:{editing:dP,editorFactory:Gb.n.extenders.controllers.editorFactory},views:Gb.n.extenders.views}});var z0=u(7031),FY=z0.b.defaultOptions,NY=z0.b.extenders.dataSourceAdapter;z0.b.extenders.controllers.data=(0,y.l)({},z0.b.extenders.controllers.data,{_loadOnOptionChange:function(){var n=this._dataSource&&this._dataSource._virtualScrollController;n&&n.reset(),this.callBase()}}),z0.b.extenders.dataSourceAdapter=(0,y.l)({},NY,{changeRowExpand:function(){return this.callBase.apply(this,arguments).done(()=>{var n=this.getViewportItemIndex();n>=0&&this.setViewportItemIndex(n)})}}),Vo.registerModule("virtualScrolling",(0,y.l)({},z0.b,{defaultOptions:function(){return(0,y.l)(!0,FY(),{scrolling:{mode:"virtual"}})}})),d8.extend(z0.b.extenders.dataSourceAdapter);var HY=u(275);Vo.registerModule("filterRow",HY.b);var zY=u(2314);Vo.registerModule("headerFilter",zY.O);var WY=u(5841);Vo.registerModule("filterSync",WY.H);var UY=u(7963);Vo.registerModule("filterBuilder",UY.z);var ZY=u(9624);Vo.registerModule("filterPanel",ZY.o);var KY=u(237);Vo.registerModule("pager",KY.N);var GY=u(6359);Vo.registerModule("columnsResizingReordering",GY.s);var jY=u(4047);Vo.registerModule("columnFixing",jY.N);var $Y=u(8395);Vo.registerModule("adaptivity",$Y.X);var SD=u(9143),JY=SD.e.extenders.views.rowsView._rowClick,QY=SD.e.extenders.controllers.data._handleDataChanged,eX=function(n,t){return!!n.filter(function(e){return e===t}).length};Vo.registerModule("selection",(0,y.l)(!0,{},SD.e,{defaultOptions:function(){return(0,y.l)(!0,SD.e.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(n){var t=this.getController("selection"),e=t.isRecursiveSelection();e&&(!n||"updateSelectionState"!==n.changeType)&&t.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),QY.apply(this,arguments)},loadDescendants:function(){var n=this,t=n.callBase.apply(n,arguments),e=n.getController("selection"),i=e.isRecursiveSelection();return i&&t.done(function(){e.updateSelectionState({selectedItemKeys:n.option("selectedRowKeys")})}),t}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var n=this.callBase.apply(this,arguments),t=n.plainItems;return n.plainItems=e=>{var i;return e&&(i=this._dataController.getCachedStoreData()),i||(i=t.apply(this,arguments).map(r=>r.data)),i||[]},n.isItemSelected=e=>{var i=this._dataController.keyOf(e);return this.isRowSelected(i)},n.isSelectableItem=e=>!!e,n.getItemData=e=>e,n.allowLoadByRange=()=>!1,n},renderSelectCheckBoxContainer:function(n,t){var e=this.component.getView("rowsView");n.addClass("dx-cell-focus-disabled");var i=e._renderSelectCheckBox(n,{value:t.row.isSelected,row:t.row,column:t.column});e._attachCheckBoxClickEvent(i)},_updateSelectColumn:E.ZT,_getSelectAllNodeKeys:function(){var n=this.component,t=n.getRootNode(),e={},i=[],r=this.isRecursiveSelection();return t&&Vo.foreachNodes(t.children,function(m){return void 0!==m.key&&(m.visible||r)&&i.push(m.key),!m.visible||!r&&n.isRowExpanded(m.key,e)}),i},isSelectAll:function(){if(0===(this.option("selectedRowKeys")||[]).length)return!1;var t=this.component,e=this._getSelectAllNodeKeys(),i=this.isRecursiveSelection(),r=!1,m=e.filter(function(D){var A=t.isRowSelected(D,i);return void 0===A&&(r=!0),A});return m.length?m.length===e.length||void 0:!!r&&void 0},selectAll:function(){var n=this._getSelectAllNodeKeys().filter(t=>!this.isRowSelected(t));return this.focusedItemIndex(-1),this.selectRows(n,!0)},deselectAll:function(){var n=this._getSelectAllNodeKeys();return this.focusedItemIndex(-1),this.deselectRows(n)},selectedItemKeys:function(n,t,e,i){var r=this,m=r.option("selectedRowKeys"),A=this.isRecursiveSelection()&&r._normalizeSelectionArgs({keys:(0,w.$K)(n)?n:[]},t,!e);return A&&!(0,E.bY)(A.selectedRowKeys,m)?(r._isSelectionNormalizing=!0,this.callBase(A.selectedRowKeys,!1,!1,!1).always(function(){r._isSelectionNormalizing=!1}).done(function(N){A.selectedRowsData=N,r._fireSelectionChanged(A)})):this.callBase(n,t,e,i)},changeItemSelection:function(n,t){var e=this.isRecursiveSelection();if(e&&!t.shift){var i=this._dataController.getKeyByRowIndex(n);return this.selectedItemKeys(i,!0,this.isRowSelected(i)).done(()=>{this.isRowSelected(i)&&this.callBase(n,t,!0)})}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(n,t){var e=this,i=t,r=n.parent;r&&(r.children.length>1&&(!1===t?i=!!r.children.some(function(A,N,Q){return e._selectionStateByKey[A.key]})&&void 0:!0===t&&(i=!r.children.some(function(A){return!e._selectionStateByKey[A.key]})||void 0)),this._selectionStateByKey[r.key]=i,r.parent&&r.parent.level>=0&&this._updateParentSelectionState(r,i))},_updateChildrenSelectionState:function(n,t){var e=this,i=n.children;i&&i.forEach(function(r){e._selectionStateByKey[r.key]=t,r.children.length>0&&e._updateChildrenSelectionState(r,t)})},_updateSelectionStateCore:function(n,t){for(var e=this._dataController,i=0;i<n.length;i++){this._selectionStateByKey[n[i]]=t;var r=e.getNodeByKey(n[i]);r&&(this._updateParentSelectionState(r,t),this._updateChildrenSelectionState(r,t))}},_getSelectedParentKeys:function(n,t,e){for(var i,r=this._dataController.getNodeByKey(n),m=r&&r.parent,D=[];m&&m.level>=0;){if(D.unshift(m.key),e?!eX(t,m.key)&&this.isRowSelected(m.key):t.indexOf(m.key)>=0){D=this._getSelectedParentKeys((i=m).key,t,e).concat(D);break}if(e)break;m=m.parent}return i&&D||[]},_getSelectedChildKeys:function(n,t){var e=[],i=this._dataController.getNodeByKey(n);return i&&Vo.foreachNodes(i.children,r=>{var m=t.indexOf(r.key);return m<0&&e.push(r.key),m>0||m<0&&void 0===this._selectionStateByKey[r.key]}),e},_normalizeParentKeys:function(n,t){var e=[n],i=this._getSelectedParentKeys(n,t.selectedRowKeys);if(i.length){(e=e.concat(i)).forEach(function(m){var D=t.selectedRowKeys.indexOf(m);D>=0&&t.selectedRowKeys.splice(D,1)});var r=this._getSelectedChildKeys(i[0],e);t.selectedRowKeys=t.selectedRowKeys.concat(r)}},_normalizeChildrenKeys:function(n,t){var e=this._dataController.getNodeByKey(n);e&&e.children.forEach(i=>{var r=t.selectedRowKeys.indexOf(i.key);r>=0&&t.selectedRowKeys.splice(r,1),this._normalizeChildrenKeys(i.key,t)})},_normalizeSelectedRowKeysCore:function(n,t,e,i){var r=this;n.forEach(function(m){if(!e||r.isRowSelected(m)!==i){r._normalizeChildrenKeys(m,t);var D=t.selectedRowKeys.indexOf(m);i?(D<0&&t.selectedRowKeys.push(m),t.currentSelectedRowKeys.push(m)):(D>=0&&t.selectedRowKeys.splice(D,1),t.currentDeselectedRowKeys.push(m),r._normalizeParentKeys(m,t))}})},_normalizeSelectionArgs:function(n,t,e){var i,r=Array.isArray(n.keys)?n.keys:[n.keys],m=this.option("selectedRowKeys")||[];return r.length&&(i={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:t?m.slice(0):[]},this._normalizeSelectedRowKeysCore(r,i,t,e)),i},_updateSelectedItems:function(n){this.updateSelectionState(n),this.callBase(n)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(n){return"leavesOnly"===n},_removeDuplicatedKeys:function(n){var t=[],e={};return n.forEach(i=>{e[i]||(e[i]=!0,t.push(i))}),t},_getAllChildKeys(n){var t=[],e=this._dataController.getNodeByKey(n);return e&&Vo.foreachNodes(e.children,function(i){t.push(i.key)},!0),t},_getAllSelectedRowKeys:function(n){var t=[];return n.forEach(e=>{var i=this._getSelectedParentKeys(e,[],!0),r=this._getAllChildKeys(e);t.push.apply(t,i.concat([e],r))}),t=this._removeDuplicatedKeys(t)},_getParentSelectedRowKeys:function(n){var t=this,e=[];return n.forEach(i=>{!t._getSelectedParentKeys(i,n).length&&e.push(i)}),e},_getLeafSelectedRowKeys:function(n){var t=[],e=this._dataController;return n.forEach(function(i){var r=e.getNodeByKey(i);r&&!r.hasChildren&&t.push(i)}),t},isRecursiveSelection:function(){var n=this.option("selection.mode"),t=this.option("selection.recursive");return"multiple"===n&&t},updateSelectionState:function(n){var t=n.removedItemKeys||[],e=n.selectedItemKeys||[];this.isRecursiveSelection()&&(this._updateSelectionStateCore(t,!1),this._updateSelectionStateCore(e,!0))},isRowSelected:function(n,t){var e,i=this.callBase.apply(this,arguments);return t=null!==(e=t)&&void 0!==e?e:this.isRecursiveSelection(),!i&&t?n in this._selectionStateByKey&&this._selectionStateByKey[n]:i},getSelectedRowKeys(n){if(!this._dataController)return[];var t=this.callBase.apply(this,arguments);return n&&(this.isRecursiveSelection()&&(t=this._getAllSelectedRowKeys(t)),"all"!==n&&("excludeRecursive"===n?t=this._getParentSelectedRowKeys(t):this._isModeLeavesOnly(n)&&(t=this._getLeafSelectedRowKeys(t)))),t},getSelectedRowsData:function(n){var t=this._dataController,e=this.getSelectedRowKeys(n)||[],i=[];return e.forEach(function(r){var m=t.getNodeByKey(r);m&&i.push(m.data)}),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(n,t){var e=this,r=this.callBase(n,t),m=e._columnsController.getFirstDataColumnIndex();return r&&"header"===t.rowType&&t.column.index===m?{render:function(D){"multiple"===e.option("selection.mode")&&e.renderSelectAll(D.container,D.model),r.render(D)}}:r},renderSelectAll:function(n,t){n.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(n)},_isSortableElement:function(n){return this.callBase(n)&&!n.closest(".dx-select-checkbox").length}},rowsView:{_renderIcons:function(n,t){return this.callBase.apply(this,arguments),!t.row.isNewRow&&"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(n,t),n},_rowClick:function(n){var t=(0,l.Z)(n.event.target);this.isExpandIcon(t)?this.callBase.apply(this,arguments):JY.apply(this,arguments)}}}}}));var tX=u(5542);Vo.registerModule("search",tX.C);var nX=u(6726);Vo.registerModule("keyboardNavigation",(0,y.l)(!0,{},nX.U,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(n,t){var e=this.getVisibleRowIndex(),i=this._dataController;if(!n.ctrl)return this.callBase.apply(this,arguments);var r=this._getDirectionCodeByKey(n.keyName),m=i.getKeyByRowIndex(e);"nextInRow"===r?i.expandRow(m):i.collapseRow(m)}}}}}));var iX=u(7209);Vo.registerModule("virtualColumns",iX.t);var rX=u(6775);Vo.registerModule("focus",(0,y.l)(!0,{},rX.W,{extenders:{controllers:{data:{changeRowExpand:function(n){return this.option("focusedRowEnabled")&&this.isRowExpanded(n)&&this._isFocusedRowInside(n)&&this.option("focusedRowKey",n),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(n){for(var t=this.option("focusedRowKey"),e=this.getRowIndexByKey(t),i=e>=0&&this.getVisibleRows()[e],r=i&&i.node.parent;r;){if(r.key===n)return!0;r=r.parent}return!1},getParentKey:function(n){var t=this._dataSource,e=this.getNodeByKey(n),i=new P.BH;return e?i.resolve(e.parent?e.parent.key:void 0):t.load({filter:[t.getKeyExpr(),"=",n]}).done(function(r){var m=r[0];m?i.resolve(t.parentKeyOf(m)):i.reject()}).fail(i.reject),i.promise()},expandAscendants:function(n){var t=this,e=t._dataSource,i=new P.BH;return t.getParentKey(n).done(function(r){e&&void 0!==r&&r!==t.option("rootValue")?(e._isNodesInitializing=!0,t.expandRow(r),e._isNodesInitializing=!1,t.expandAscendants(r).done(i.resolve).fail(i.reject)):i.resolve()}).fail(i.reject),i.promise()},getPageIndexByKey:function(n){var t=this,e=t._dataSource,i=new P.BH;return t.expandAscendants(n).done(function(){e.load({parentIds:[]}).done(function(r){var m=function oX(n,t){var e=-1;return n.forEach(function(i,r){t(i)&&(e=r)}),e}(r,function(A){return t.keyOf(A.data)===n}),D=-1;m>=0&&(D=Math.floor(m/t.pageSize())),i.resolve(D)}).fail(i.reject)}).fail(i.reject),i.promise()}}}}}));var aX=u(8702);Vo.registerModule("rowDragging",aX.d);const y8=bY;var W0=u(7122),jb="tasks";class lX{constructor(t){this._gantt=t,this._$treeList=this._gantt._$treeList}getTreeList(){var{keyExpr:t,parentIdExpr:e}=this._gantt.option(jb);return this._treeList=this._gantt._createComponent(this._$treeList,y8,{dataSource:this.createDataSource(this._gantt._tasksRaw,t),keyExpr:t,filterSyncEnabled:!0,parentIdExpr:e,columns:this.getColumns(),columnResizingMode:"nextColumn",height:this._getHeight(),width:this._gantt.option("taskListWidth"),selection:{mode:zs.getSelectionMode(this._gantt.option("allowSelection"))},selectedRowKeys:zs.getArrayFromOneElement(this._gantt.option("selectedRowKey")),sorting:this._gantt.option("sorting"),filterRow:this._gantt.option("filterRow"),headerFilter:this._gantt.option("headerFilter"),scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this._gantt.option("showRowLines"),rootValue:this._gantt.option("rootValue"),onContentReady:i=>{this._onContentReady(i)},onSelectionChanged:i=>{this._onSelectionChanged(i)},onRowCollapsed:i=>{this._onRowCollapsed(i)},onRowExpanded:i=>{this._onRowExpanded(i)},onRowPrepared:i=>{this._onRowPrepared(i)},onContextMenuPreparing:i=>{this._onContextMenuPreparing(i)},onRowClick:i=>{this.onRowClick(i)},onRowDblClick:i=>{this.onRowDblClick(i)},onNodesInitialized:i=>{this._onNodesInitialized(i)}}),this._treeList}onAfterTreeListCreate(){this._postponedGanttInitRequired&&(this._initGanttOnContentReady({component:this._treeList}),delete this._postponedGanttInitRequired)}_onContentReady(t){this._treeList?this._initGanttOnContentReady(t):this._postponedGanttInitRequired=!0,this._gantt._onTreeListContentReady(t)}_initGanttOnContentReady(t){t.component.getDataSource()&&(this._gantt._initGanttView(),this._initScrollSync(t.component)),this._gantt._sortAndFilter(),this._gantt._sizeHelper.updateGanttRowHeights()}_onSelectionChanged(t){var e=t.currentSelectedRowKeys[0];this._gantt._setGanttViewOption("selectedRowKey",e),this._gantt._setOptionWithoutOptionChange("selectedRowKey",e),this._gantt._actionsManager.raiseSelectionChangedAction(e)}_onRowCollapsed(t){this._gantt._onTreeListRowExpandChanged(t,!1)}_onRowExpanded(t){this._gantt._onTreeListRowExpandChanged(t,!0)}_onRowPrepared(t){"data"===t.rowType&&t.node.children.length>0&&(0,l.Z)(t.rowElement).addClass("dx-gantt-collapsable-row")}_onContextMenuPreparing(t){var e,i;if("header"!==t.target){"data"===(null===(e=t.row)||void 0===e?void 0:e.rowType)&&this.setOption("selectedRowKeys",[t.row.data[this._gantt.option("tasks.keyExpr")]]),t.items=[];var r={cancel:!1,event:t.event,type:"task",key:null===(i=t.row)||void 0===i?void 0:i.key,position:{x:t.event.pageX,y:t.event.pageY}};this._gantt._showPopupMenu(r)}}_getHeight(){return(0,s.Cr)(this._$treeList)?(0,s.Cr)(this._$treeList):(this._gantt._hasHeight=(0,w.$K)(this._gantt.option("height"))&&""!==this._gantt.option("height"),this._gantt._hasHeight?"100%":"")}_initScrollSync(t){var e=t.getScrollable();e&&(e.off("scroll"),e.on("scroll",i=>{this._onScroll(i)}))}_onScroll(t){var e=this._gantt._ganttView.getTaskAreaContainer();e.scrollTop!==t.component.scrollTop()&&(e.scrollTop=t.component.scrollTop())}_correctRowsViewRowHeight(t){var e=this._treeList._views&&this._treeList._views.rowsView;e?._rowHeight!==t&&(e._rowHeight=t)}_skipUpdateTreeListDataSource(){return this._gantt.option("validation.autoUpdateParentTasks")}selectRows(t){this.setOption("selectedRowKeys",t)}scrollBy(t){var e=this._treeList.getScrollable();if(e){var i=t-e.scrollTop();0!==i&&e.scrollBy({left:0,top:i})}}updateDataSource(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!this._skipUpdateTreeListDataSource()||e)this.setDataSource(t);else if(i){var r=this._treeList.option("dataSource");this._gantt._onParentTasksRecalculated(r)}}setDataSource(t){this.setOption("dataSource",this.createDataSource(t))}createDataSource(t,e){return t&&new W0.o({store:new Zb.Z({data:t,key:e||this.getOption("keyExpr")})})}onRowClick(t){this._gantt._actionsManager.raiseTaskClickAction(t.key,t.event)}onRowDblClick(t){this._gantt._actionsManager.raiseTaskDblClickAction(t.key,t.event)&&this._gantt._ganttView._ganttViewCore.showTaskEditDialog()}saveExpandedKeys(){var t,e=(null===(t=this._treeList)||void 0===t?void 0:t.getVisibleRows().length)>0,i=this.getOption("expandedRowKeys");e&&i&&(this._savedExpandedKeys=i)}_onNodesInitialized(t){var e;(null===(e=this._savedExpandedKeys)||void 0===e?void 0:e.filter(r=>!!this._treeList.getNodeByKey(r)))&&this.setOption("expandedRowKeys",this._savedExpandedKeys),delete this._savedExpandedKeys}getOffsetHeight(){return this._gantt._treeList._$element.get(0).offsetHeight}getRowHeight(){var t=this._treeList._$element.find(".dx-data-row"),e=t.length?(0,Yo.l)(t.last().get(0)).height:34;return e||(e=34),this._correctRowsViewRowHeight(e),e}getHeaderHeight(){return(0,Yo.l)(this._treeList._$element.find(".dx-treelist-headers").get(0)).height}getColumns(){var t=this._gantt.option("columns");if(t)for(var e=0;e<t.length;e++){var i=t[e];(i.dataField===this._gantt.option("".concat(jb,".keyExpr"))||i.dataField===this._gantt.option("".concat(jb,".parentIdExpr")))&&!i.dataType&&(i.dataType="object")}return t}getSievedItems(){var t=this._treeList.getRootNode();if(t){var e=[];zs.convertTreeToList(t,e);var i=zs.compileGettersByOption(this._gantt.option(jb));return this._gantt._validateSourceData(jb,e).map(zs.prepareMapHandler(i))}}setOption(t,e){this._treeList&&this._treeList.option(t,e)}getOption(t){return this._treeList.option(t)}onTaskInserted(t,e){if((0,w.$K)(e)){var i=this.getOption("expandedRowKeys");-1===i.indexOf(e)&&(i.push(e),this.setOption("expandedRowKeys",i))}this.selectRows(zs.getArrayFromOneElement(t)),this.setOption("focusedRowKey",t)}getDataSource(){var t;return null===(t=this._treeList)||void 0===t?void 0:t.getDataSource()}}var uX=u(6660),x8=u.n(uX);class cX{constructor(t,e){this._element=t,this._scrollView=e._createComponent(this._element,Ef.Z,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:()=>{e.updateView()}})}get scrollTop(){return this._scrollView.scrollTop()}set scrollTop(t){var e=t-this._scrollView.scrollTop();0!==e&&this._scrollView.scrollBy({left:0,top:e})}get scrollLeft(){return this._scrollView.scrollLeft()}set scrollLeft(t){var e=t-this._scrollView.scrollLeft();0!==e&&this._scrollView.scrollBy({left:e,top:0})}get scrollWidth(){return this._scrollView.scrollWidth()}get scrollHeight(){return this._scrollView.scrollHeight()}get isExternal(){return!0}getWidth(){return this._element.offsetWidth}getHeight(){return this._element.offsetHeight}getElement(){return this._element}}var hX=u(5404);class pX extends ca.Z{_init(){super._init(),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing"),this._onPopupMenuHiding=this._createActionByOption("onPopupMenuHiding"),this._expandAll=this._createActionByOption("onExpandAll"),this._collapseAll=this._createActionByOption("onCollapseAll"),this._taskClick=this._createActionByOption("onTaskClick"),this._taskDblClick=this._createActionByOption("onTaskDblClick"),this._onAdjustControl=this._createActionByOption("onAdjustControl")}_initMarkup(){var t=function dX(){if(!x8())throw Hs.Z.Error("E1041","devexpress-gantt");return x8()}();this._ganttViewCore=new t(this.$element().get(0),this,{showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),firstDayOfWeek:this._getFirstDayOfWeek(this.option("firstDayOfWeek")),allowSelectTask:this.option("allowSelection"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),editing:this._parseEditingSettings(this.option("editing")),validation:this.option("validation"),stripLines:{stripLines:this.option("stripLines")},areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType")),viewTypeRange:this._parseViewTypeRangeSettings(this.option("scaleTypeRange")),cultureInfo:this._getCultureInfo(),taskTooltipContentTemplate:this.option("taskTooltipContentTemplate"),taskProgressTooltipContentTemplate:this.option("taskProgressTooltipContentTemplate"),taskTimeTooltipContentTemplate:this.option("taskTimeTooltipContentTemplate"),taskContentTemplate:this.option("taskContentTemplate"),sieve:this.option("sieve")}),this._selectTask(this.option("selectedRowKey")),this.updateBarItemsState()}_getFirstDayOfWeek(t){return(0,w.$K)(t)?t:zo.Z.firstDayOfWeekIndex()}getTaskAreaContainer(){return this._ganttViewCore.getTaskAreaContainer()}getBarManager(){return this._ganttViewCore.barManager}executeCoreCommand(t){var e=this._ganttViewCore.getCommandByKey(t);e&&e.execute()}changeTaskExpanded(t,e){this._ganttViewCore.changeTaskExpanded(t,e)}updateView(){var t;null===(t=this._ganttViewCore)||void 0===t||t.updateView()}updateBarItemsState(){this._ganttViewCore.barManager.updateItemsState([])}setWidth(t){this._ganttViewCore.setWidth(t)}_onDimensionChanged(){this._ganttViewCore.onBrowserWindowResize()}_selectTask(t){this._ganttViewCore.selectTaskById(t)}_update(t){var e;null===(e=this._ganttViewCore)||void 0===e||e.updateWithDataReload(t)}_getCultureInfo(){return{monthNames:zo.Z.getMonthNames("wide"),dayNames:zo.Z.getDayNames("wide"),abbrMonthNames:zo.Z.getMonthNames("abbreviated"),abbrDayNames:zo.Z.getDayNames("abbreviated"),quarterNames:this._getQuarterNames(),amText:this._getAmText(),pmText:this._getPmText(),start:yn.Z.format("dxGantt-dialogStartTitle"),end:yn.Z.format("dxGantt-dialogEndTitle"),progress:yn.Z.format("dxGantt-dialogProgressTitle")}}_getAmText(){return this._hasAmPM()?zo.Z.getPeriodNames()[0]:""}_getPmText(){return this._hasAmPM()?zo.Z.getPeriodNames()[1]:""}_hasAmPM(){var t=new Date(Date.UTC(2012,11,12,3,0,0));return t.toLocaleTimeString(hX.Z.locale()).match(/am|pm/i)||t.toString().match(/am|pm/i)}_getQuarterNames(){var t=yn.Z.format("dxGantt-quarter");return t?[(0,na.WU)(t,1),(0,na.WU)(t,2),(0,na.WU)(t,3),(0,na.WU)(t,4)]:zo.Z.getQuarterNames()}_getTaskTitlePosition(t){switch(t){case"outside":return 1;case"none":return 2;default:return 0}}_getViewTypeByScaleType(t){switch(t){case"minutes":return 0;case"hours":return 1;case"sixHours":return 2;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}}_parseEditingSettings(t){return{enabled:t.enabled,allowDependencyDelete:t.allowDependencyDeleting,allowDependencyInsert:t.allowDependencyAdding,allowTaskDelete:t.allowTaskDeleting,allowTaskInsert:t.allowTaskAdding,allowTaskUpdate:t.allowTaskUpdating,allowResourceDelete:t.allowResourceDeleting,allowResourceInsert:t.allowResourceAdding,allowResourceUpdate:t.allowResourceUpdating,allowTaskResourceUpdate:t.allowTaskResourceUpdating}}_parseViewTypeRangeSettings(t){return{min:this._getViewTypeByScaleType(t.min),max:this._getViewTypeByScaleType(t.max)}}_optionChanged(t){switch(t.name){case"width":super._optionChanged(t),this._ganttViewCore.setWidth(t.value);break;case"height":this._ganttViewCore.setHeight(t.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._sieveOptions=void 0,this._update(!0);break;case"showResources":this._ganttViewCore.setShowResources(t.value);break;case"showDependencies":this._ganttViewCore.setShowDependencies(t.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(t.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(t.value));break;case"startDateRange":this._ganttViewCore.setStartDateRange(t.value);break;case"endDateRange":this._ganttViewCore.setEndDateRange(t.value);break;case"allowSelection":this._ganttViewCore.setAllowSelection(t.value);break;case"selectedRowKey":this._selectTask(t.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(t.value));break;case"validation":this._ganttViewCore.setValidationSettings(t.value),this._update(!0);break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(t.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(t.value));break;case"scaleTypeRange":this._ganttViewCore.setViewTypeRange(this._getViewTypeByScaleType(t.value.min),this._getViewTypeByScaleType(t.value.max));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:t.value});break;case"taskTooltipContentTemplate":this._ganttViewCore.setTaskTooltipContentTemplate(t.value);break;case"taskProgressTooltipContentTemplate":this._ganttViewCore.setTaskProgressTooltipContentTemplate(t.value);break;case"taskTimeTooltipContentTemplate":this._ganttViewCore.setTaskTimeTooltipContentTemplate(t.value);break;case"taskContentTemplate":this._ganttViewCore.setTaskContentTemplate(t.value);break;case"sieve":this._sortAndFilter(t.value);break;default:super._optionChanged(t)}}get bars(){return this.option("bars")}getRowHeight(){return this.option("rowHeight")}getHeaderHeight(){return this.option("headerHeight")}getGanttTasksData(){var t=this.option("tasks"),e=this.getSieveOptions();return null!=e&&e.sievedItems&&null!=e&&e.sieveColumn?e.sievedItems:t}_sortAndFilter(t){this._sieveOptions=t,this._update(!(null!=t&&t.expandTasks));var e=this.option("selectedRowKey");this._selectTask(e)}getSieveOptions(){return this._sieveOptions}getGanttDependenciesData(){return this.option("dependencies")}getGanttResourcesData(){return this.option("resources")}getGanttResourceAssignmentsData(){return this.option("resourceAssignments")}getGanttWorkTimeRules(){return null}getExternalTaskAreaContainer(t){return this._taskAreaContainer||(this._taskAreaContainer=new cX(t,this)),this._taskAreaContainer}prepareExternalTaskAreaContainer(t,e){null!=e&&e.height&&this._taskAreaContainer._scrollView.option("height",e.height)}changeGanttTaskSelection(t,e){this._onSelectionChanged({id:t,selected:e})}onGanttScroll(t){this._onScroll({scrollTop:t})}showDialog(t,e,i,r){this._onDialogShowing({name:t,parameters:e,callback:i,afterClosing:r})}getModelChangesListener(){return this.option("modelChangesListener")}getExportInfo(){return this.option("exportInfo")}showPopupMenu(t){this._onPopupMenuShowing(t)}hidePopupMenu(t){this._onPopupMenuHiding(t)}getMainElement(){return this.option("mainElement").get(0)}adjustControl(){this._onAdjustControl()}getRequireFirstLoadParentAutoCalc(){return this.option("validation.autoUpdateParentTasks")}collapseAll(){this._collapseAll()}expandAll(){this._expandAll()}onTaskClick(t,e){return this._taskClick({key:t,event:e}),!0}onTaskDblClick(t,e){return this._taskDblClick({key:t,event:e})}onGanttViewContextMenu(t,e,i){return!0}getFormattedDateText(t){var e="";if(t){var i=zo.Z.format(t,"shortDate"),r=this._hasAmPM()?"hh:mm a":"HH:mm";e=i+" "+zo.Z.format(t,r)}return e}destroyTemplate(t){(0,l.Z)(t).empty()}onTaskAreaSizeChanged(t){var e=this._taskAreaContainer._scrollView;if((0,w.$K)(t?.height)){var i=t?.height>this._taskAreaContainer.getHeight()?"both":"horizontal";e.option("direction",i)}}getTreeListTableStyle(){return this.callExportHelperMethod("getTreeListTableStyle")}getTreeListColCount(){return this.callExportHelperMethod("getTreeListColCount")}getTreeListHeaderInfo(t){return this.callExportHelperMethod("getTreeListHeaderInfo",t)}getTreeListCellInfo(t,e,i){return this.callExportHelperMethod("getTreeListCellInfo",i,e)}getTreeListEmptyDataCellInfo(){return this.callExportHelperMethod("getTreeListEmptyDataCellInfo")}callExportHelperMethod(t){for(var e=this.option("exportHelper"),i=arguments.length,r=new Array(i>1?i-1:0),m=1;m<i;m++)r[m-1]=arguments[m];return e[t](...r)}}var b8=(0,mi.Jj)(),Gl="tasks",OD="dependencies",$b="resources",cP="resourceAssignments",w8="gantt_new_task_key";(0,T.Z)("dxGantt",class E8 extends ca.Z{_init(){super._init(),this._initGantt(),this._isGanttRendered=!1,this._initHelpers()}_initGantt(){this._refreshDataSources()}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-gantt"),this._$toolbarWrapper=(0,l.Z)("<div>").addClass("dx-gantt-toolbar-wrapper").appendTo(this.$element()),this._$toolbar=(0,l.Z)("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=(0,l.Z)("<div>").addClass("dx-gantt-main-wrapper").appendTo(this.$element()),this._$treeListWrapper=(0,l.Z)("<div>").addClass("dx-gantt-treelist-wrapper").appendTo(this._$mainWrapper),this._$treeList=(0,l.Z)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,l.Z)("<div>").appendTo(this._$mainWrapper),this._$ganttView=(0,l.Z)("<div>").addClass("dx-gantt-view").appendTo(this._$mainWrapper),this._$dialog=(0,l.Z)("<div>").appendTo(this.$element()),this._$loadPanel=(0,l.Z)("<div>").appendTo(this.$element()),this._$contextMenu=(0,l.Z)("<div>").appendTo(this.$element())}_clean(){var t;null===(t=this._ganttView)||void 0===t||t._ganttViewCore.cleanMarkup(),delete this._ganttView,delete this._dialogInstance,delete this._loadPanel,delete this._exportHelper,super._clean()}_refresh(){this._isGanttRendered=!1,this._contentReadyRaised=!1,super._refresh()}_fireContentReadyAction(){this._contentReadyRaised||super._fireContentReadyAction(),this._contentReadyRaised=!0}_dimensionChanged(){var t;null===(t=this._ganttView)||void 0===t||t._onDimensionChanged()}_visibilityChanged(t){t&&this._refreshGantt()}_refreshGantt(){this._refreshDataSources(),this._refresh()}_refreshDataSources(){this._refreshDataSource(Gl),this._refreshDataSource(OD),this._refreshDataSource($b),this._refreshDataSource(cP)}_renderContent(){this._isMainElementVisible=this.$element().is(":visible"),this._isMainElementVisible&&!this._isGanttRendered&&(this._isGanttRendered=!0,this._renderBars(),this._renderTreeList(),this._renderSplitter())}_renderTreeList(){this._ganttTreeList=new lX(this),this._treeList=this._ganttTreeList.getTreeList(),this._ganttTreeList.onAfterTreeListCreate()}_renderSplitter(){this._splitter=this._createComponent(this._$splitter,OF,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:t=>{this._sizeHelper.onApplyPanelSize(t)}}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))}_renderBars(){this._bars=[],this._toolbar=new eY(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new tY(this._$contextMenu,this),this._updateContextMenu(),this._bars.push(this._contextMenuBar)}_initHelpers(){this._mappingHelper=new X$(this),this._customFieldsManager=new v$(this),this._actionsManager=new m$(this),this._ganttTemplatesManager=new J$(this),this._sizeHelper=new q$(this)}_initGanttView(){this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,pX,{width:"100%",height:this._ganttTreeList.getOffsetHeight(),rowHeight:this._ganttTreeList.getRowHeight(),headerHeight:this._ganttTreeList.getHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),showDependencies:this.option("showDependencies"),startDateRange:this.option("startDateRange"),endDateRange:this.option("endDateRange"),taskTitlePosition:this.option("taskTitlePosition"),firstDayOfWeek:this.option("firstDayOfWeek"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),scaleTypeRange:this.option("scaleTypeRange"),editing:this.option("editing"),validation:this.option("validation"),stripLines:this.option("stripLines"),bars:this._bars,mainElement:this.$element(),onSelectionChanged:t=>{this._ganttTreeList.selectRows(zs.getArrayFromOneElement(t.id))},onScroll:t=>{this._ganttTreeList.scrollBy(t.scrollTop)},onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),onPopupMenuHiding:this._hidePopupMenu.bind(this),onExpandAll:this._expandAll.bind(this),onCollapseAll:this._collapseAll.bind(this),modelChangesListener:p$_create(this),exportHelper:this._getExportHelper(),taskTooltipContentTemplate:this._ganttTemplatesManager.getTaskTooltipContentTemplateFunc(this.option("taskTooltipContentTemplate")),taskProgressTooltipContentTemplate:this._ganttTemplatesManager.getTaskProgressTooltipContentTemplateFunc(this.option("taskProgressTooltipContentTemplate")),taskTimeTooltipContentTemplate:this._ganttTemplatesManager.getTaskTimeTooltipContentTemplateFunc(this.option("taskTimeTooltipContentTemplate")),taskContentTemplate:this._ganttTemplatesManager.getTaskContentTemplateFunc(this.option("taskContentTemplate")),onTaskClick:t=>{this._ganttTreeList.onRowClick(t)},onTaskDblClick:t=>{this._ganttTreeList.onRowDblClick(t)},onAdjustControl:()=>{this._sizeHelper.onAdjustControl()},onContentReady:this._onGanttViewContentReady.bind(this)}))}_onGanttViewContentReady(t){this._isParentAutoUpdateMode()||this._fireContentReadyAction()}_isParentAutoUpdateMode(){return this.option("validation.autoUpdateParentTasks")}_onTreeListContentReady(t){this._isParentAutoUpdateMode()&&this._treeListParentRecalculatedDataUpdating&&this._fireContentReadyAction(),delete this._treeListParentRecalculatedDataUpdating}_refreshDataSource(t){var e=this["_".concat(t,"Option")];e&&(e.dispose(),delete this["_".concat(t,"Option")],delete this["_".concat(t)]),(e=new g$(t,this._getLoadPanel.bind(this),(i,r)=>{this._dataSourceChanged(i,r)})).option("dataSource",this._getSpecificDataSourceOption(t)),e._refreshDataSource(),this["_".concat(t,"Option")]=e}_getSpecificDataSourceOption(t){var e=this.option("".concat(t,".dataSource"));return!e||Array.isArray(e)?{store:{type:"array",data:e??[],key:this.option("".concat(t,".keyExpr"))}}:e}_dataSourceChanged(t,e){var i=zs.compileGettersByOption(this.option(t)),r=this._validateSourceData(t,e),m=r.map(zs.prepareMapHandler(i));if(this["_".concat(t)]=m,this._setGanttViewOption(t,m),t===Gl){var D,A,N;this._tasksRaw=r;var Q=!(null!==(D=this._ganttTreeList)&&void 0!==D&&D.getDataSource()||this._ganttView);null===(A=this._ganttTreeList)||void 0===A||A.saveExpandedKeys(),null===(N=this._ganttTreeList)||void 0===N||N.updateDataSource(r,Q)}}_validateSourceData(t,e){return e&&t===Gl?this._validateTaskData(e):e}_validateTaskData(t){for(var e,i=(0,Go.vb)(this.option("".concat(Gl,".keyExpr"))),r=(0,Go.vb)(this.option("".concat(Gl,".parentIdExpr"))),m=null!==(e=this.option("rootValue"))&&void 0!==e?e:"dx_dxt_gantt_default_root_value",D={},A=0;A<t.length;A++){var N=t[A];if(N){var Q,se=i(N),we=se===m,Re=null!==(Q=D[se])&&void 0!==Q?Q:D[se]={key:se,children:[]};if(!we){var Ue,st,Ot=null!==(Ue=r(N))&&void 0!==Ue?Ue:m,Kt=null!==(st=D[Ot])&&void 0!==st?st:D[Ot]={key:Ot,children:[]};Kt.children.push(Re),Re.parent=Kt}}}var sn=[m];return this._appendChildKeys(D[m],sn),t.filter(wn=>sn.indexOf(i(wn))>-1)}_appendChildKeys(t,e){for(var i=t?.children,r=0;r<i?.length;r++){var m=i[r];e.push(m.key),this._appendChildKeys(m,e)}}_onRecordInserted(t,e,i){var r=this["_".concat(t,"Option")];if(r){var m=zs.getStoreObject(this.option(t),e),D=t===Gl;D&&this._customFieldsManager.addCustomFieldsDataFromCache(w8,m),r.insert(m,A=>{var Q=(0,Go.vb)(this.option("".concat(t,".keyExpr")))(A);i(Q),this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource().done(se=>{D&&this._ganttTreeList.onTaskInserted(Q,e.parentId)}),this._actionsManager.raiseInsertedAction(t,m,Q)})}}_onRecordUpdated(t,e,i){var r=this["_".concat(t,"Option")],m=t===Gl;if(r){var D=this._mappingHelper.convertCoreToMappedData(t,i);m&&this._customFieldsManager.cache.hasData(e)&&this._customFieldsManager.addCustomFieldsDataFromCache(e,D),r.update(e,D,()=>{this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource(),this._actionsManager.raiseUpdatedAction(t,D,e)})}}_onRecordRemoved(t,e,i){var r=this["_".concat(t,"Option")];r&&r.remove(e,()=>{this._ganttTreeList.saveExpandedKeys(),r._reloadDataSource(),this._actionsManager.raiseDeletedAction(t,e,this._mappingHelper.convertCoreToMappedData(t,i))})}_onParentTaskUpdated(t){var e=this.getTaskDataByCoreData(t);this._actionsManager.raiseUpdatedAction(Gl,e,t.id)}_onParentTasksRecalculated(t){if(!this.isSieving){var e=zs.compileSettersByOption(this.option(Gl)),i=this._customFieldsManager.appendCustomFields(t.map(zs.prepareSetterMapHandler(e)));setTimeout(()=>{var r;this._treeListParentRecalculatedDataUpdating=!0,null===(r=this._ganttTreeList)||void 0===r||r.setDataSource(i)})}this.isSieving=!1}_sortAndFilter(){var t,e,i,r=this._treeList,m=r.getVisibleColumns(),D=m.filter(st=>st.sortIndex>-1),A=D.map(st=>({sortIndex:st.sortIndex,sortOrder:st.sortOrder})),N=!this._compareSortedState(null===(t=this._savedSortFilterState)||void 0===t?void 0:t.sort,A),Q=r.option("filterValue"),se=r.option("expandNodesOnFiltering")&&Q!==(null===(e=this._savedSortFilterState)||void 0===e?void 0:e.filter),we=D[0]||m.filter(st=>{var Ot;return(0,w.$K)(st.filterValue)||(null===(Ot=st.filterValues)||void 0===Ot?void 0:Ot.length)})[0],Re=(null===(i=this._savedSortFilterState)||void 0===i?void 0:i.sieveColumn)&&!we;if(we||Re){var Ue=we&&{sievedItems:this._ganttTreeList.getSievedItems(),sieveColumn:we,expandTasks:se||Q&&N};this.isSieving=!Re,this._setGanttViewOption("sieve",Ue)}this._savedSortFilterState={sort:A,filter:Q,sieveColumn:we}}_compareSortedState(t,e){return!(!t||!e||t.length!==e.length)&&t.every((i,r)=>i.sortIndex===e[r].sortIndex&&i.sortOrder===e[r].sortOrder)}_getToolbarItems(){return this.option("toolbar.items")||[]}_updateToolbarContent(){var t=this._getToolbarItems();t.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(t),this._updateBarItemsState()}_updateContextMenu(){var t=this.option("contextMenu");t.enabled&&this._contextMenuBar&&(this._contextMenuBar.createItems(t.items),this._updateBarItemsState())}_updateBarItemsState(){this._ganttView&&this._ganttView.updateBarItemsState()}_showDialog(t){this._dialogInstance||(this._dialogInstance=new z$(this,this._$dialog)),this._dialogInstance.show(t.name,t.parameters,t.callback,t.afterClosing,this.option("editing"))}_showPopupMenu(t){if(this.option("contextMenu.enabled")){this._ganttView.getBarManager().updateContextMenu();var e={cancel:!1,event:t.event,targetType:t.type,targetKey:t.key,items:(0,y.l)(!0,[],this._contextMenuBar._items),data:"task"===t.type?this.getTaskData(t.key):this.getDependencyData(t.key)};this._actionsManager.raiseContextMenuPreparing(e),e.cancel||this._contextMenuBar.show(t.position,e.items)}}_hidePopupMenu(){this._contextMenuBar.hide()}_getLoadPanel(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,QA.Z,{position:{of:this.$element()}})),this._loadPanel}_getTaskKeyGetter(){return(0,Go.vb)(this.option("".concat(Gl,".keyExpr")))}_findTaskByKey(t){var e,i=null===(e=this._tasksOption)||void 0===e?void 0:e._getItems(),r=this._getTaskKeyGetter();return i.find(m=>r(m)===t)}_setGanttViewOption(t,e){this._ganttView&&this._ganttView.option(t,e)}_getGanttViewOption(t,e){var i;return null===(i=this._ganttView)||void 0===i?void 0:i.option(t)}_getExportHelper(){var t;return null!==(t=this._exportHelper)&&void 0!==t||(this._exportHelper=new $$(this)),this._exportHelper}_executeCoreCommand(t){this._ganttView.executeCoreCommand(t)}_expandAll(){this._changeExpandAll(!0)}_collapseAll(){this._changeExpandAll(!1)}_onTreeListRowExpandChanged(t,e){this._lockRowExpandEvent||(this._ganttView.changeTaskExpanded(t.key,e),this._sizeHelper.adjustHeight())}_changeExpandAll(t,e,i){var r,N,m=[],D=[];if(this._treeList.forEachNode(se=>{var we;null!==(we=se.children)&&void 0!==we&&we.length&&m.push(se)}),i){var A=this._treeList.getNodeByKey(i);zs.getAllParentNodesKeys(A,D)}this._lockRowExpandEvent=m.length>0;var Q=m.reduce((se,we,Re)=>{i?t=D.includes(we.key):e&&(t=we.level<e),se[we.key]=t;var Ue=t?this._treeList.expandRow:this._treeList.collapseRow;return Re===m.length-1?N=Ue(we.key):Ue(we.key),se},{});null===(r=N)||void 0===r||r.then(()=>{this._ganttView._ganttViewCore.applyTasksExpandedState(Q),this._sizeHelper.adjustHeight(),delete this._lockRowExpandEvent})}getTaskResources(t){return(0,w.$K)(t)?this._ganttView._ganttViewCore.getTaskResources(t).map(i=>this._mappingHelper.convertCoreToMappedData($b,i)):null}getVisibleTaskKeys(){return this._ganttView._ganttViewCore.getVisibleTaskKeys()}getVisibleDependencyKeys(){return this._ganttView._ganttViewCore.getVisibleDependencyKeys()}getVisibleResourceKeys(){return this._ganttView._ganttViewCore.getVisibleResourceKeys()}getVisibleResourceAssignmentKeys(){return this._ganttView._ganttViewCore.getVisibleResourceAssignmentKeys()}getTaskData(t){if(!(0,w.$K)(t))return null;var e=this._ganttView._ganttViewCore.getTaskData(t);return this.getTaskDataByCoreData(e)}getTaskDataByCoreData(t){var e=t?this._mappingHelper.convertCoreToMappedData(Gl,t):null;return this._customFieldsManager.addCustomFieldsData(t.id,e),e}insertTask(t){this._customFieldsManager.saveCustomFieldsDataToCache(w8,t),this._ganttView._ganttViewCore.insertTask(this._mappingHelper.convertMappedToCoreData(Gl,t))}deleteTask(t){this._ganttView._ganttViewCore.deleteTask(t)}updateTask(t,e){var i=this._mappingHelper.convertMappedToCoreData(Gl,e),r=!Object.keys(i).length;if(this._customFieldsManager.saveCustomFieldsDataToCache(t,e,!0,r),r){var m=this._customFieldsManager._getCustomFieldsData(e);Object.keys(m).length>0&&this._actionsManager.raiseUpdatingAction(Gl,{cancel:!1,key:t,newValues:{}})}else this._ganttView._ganttViewCore.updateTask(t,i)}getDependencyData(t){if(!(0,w.$K)(t))return null;var e=this._ganttView._ganttViewCore.getDependencyData(t);return e?this._mappingHelper.convertCoreToMappedData(OD,e):null}insertDependency(t){this._ganttView._ganttViewCore.insertDependency(this._mappingHelper.convertMappedToCoreData(OD,t))}deleteDependency(t){this._ganttView._ganttViewCore.deleteDependency(t)}getResourceData(t){var e=this._ganttView._ganttViewCore.getResourceData(t);return e?this._mappingHelper.convertCoreToMappedData($b,e):null}deleteResource(t){this._ganttView._ganttViewCore.deleteResource(t)}insertResource(t,e){this._ganttView._ganttViewCore.insertResource(this._mappingHelper.convertMappedToCoreData($b,t),e)}getResourceAssignmentData(t){var e=this._ganttView._ganttViewCore.getResourceAssignmentData(t);return e?this._mappingHelper.convertCoreToMappedData(cP,e):null}assignResourceToTask(t,e){this._ganttView._ganttViewCore.assignResourceToTask(t,e)}unassignResourceFromTask(t,e){this._ganttView._ganttViewCore.unassignResourceFromTask(t,e)}unassignAllResourcesFromTask(t){this._ganttView._ganttViewCore.unassignAllResourcesFromTask(t)}updateDimensions(){this._sizeHelper.onAdjustControl()}scrollToDate(t){this._ganttView._ganttViewCore.scrollToDate(t)}showResourceManagerDialog(){this._ganttView._ganttViewCore.showResourcesDialog()}showTaskDetailsDialog(t){this._ganttView._ganttViewCore.showTaskDetailsDialog(t)}exportToPdf(t){return this._exportToPdf(t)}_exportToPdf(t){var e,i,r,m,D;this._exportHelper.reset();var A=(0,y.l)({},t);return A.createDocumentMethod&&(A.docCreateMethod=A.createDocumentMethod),null!==(e=A.pdfDocument)&&void 0!==e||(A.pdfDocument=A.jsPDFDocument),null!==(i=A.docCreateMethod)&&void 0!==i||(A.docCreateMethod=null!==(r=null===(m=b8.jspdf)||void 0===m?void 0:m.jsPDF)&&void 0!==r?r:b8.jsPDF),null!==(D=A.format)&&void 0!==D||(A.format="a4"),new Promise(N=>{var Q;N(null===(Q=this._ganttView)||void 0===Q?void 0:Q._ganttViewCore.exportToPdf(A))})}refresh(){return new Promise((t,e)=>{try{this._refreshGantt(),t()}catch(i){e(i.message)}})}expandAll(){this._expandAll()}collapseAll(){this._collapseAll()}expandAllToLevel(t){this._changeExpandAll(!1,t)}expandToTask(t){var e,i=this._treeList.getNodeByKey(t);this._changeExpandAll(!1,0,null==i||null===(e=i.parent)||void 0===e?void 0:e.key)}collapseTask(t){this._treeList.collapseRow(t)}expandTask(t){this._treeList.expandRow(t)}showResources(t){this.option("showResources",t)}showDependencies(t){this.option("showDependencies",t)}zoomIn(){this._ganttView._ganttViewCore.zoomIn()}zoomOut(){this._ganttView._ganttViewCore.zoomOut()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),zs.getDefaultOptions())}_optionChanged(t){var e,i,r,m,D,A,N,Q,se,we,Re,Ue,st,Ot,Kt,sn,wn,rn,Ft,qt,un,In,Kn,Yn,ai,gi,Ci,Ki,Bi,ri,Fi,Gi,or,fr,_r,$r,Fr,Vr,zr,co,Kr,Io;switch(t.name){case"tasks":this._refreshDataSource(Gl);break;case"dependencies":this._refreshDataSource(OD);break;case"resources":this._refreshDataSource($b);break;case"resourceAssignments":this._refreshDataSource(cP);break;case"columns":null===(e=this._ganttTreeList)||void 0===e||e.setOption("columns",this._ganttTreeList.getColumns());break;case"taskListWidth":null===(i=this._sizeHelper)||void 0===i||i.setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",t.value);break;case"showDependencies":this._setGanttViewOption("showDependencies",t.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",t.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",t.value);break;case"startDateRange":this._setGanttViewOption("startDateRange",t.value);break;case"endDateRange":this._setGanttViewOption("endDateRange",t.value);break;case"selectedRowKey":null===(r=this._ganttTreeList)||void 0===r||r.selectRows(zs.getArrayFromOneElement(t.value));break;case"onSelectionChanged":null===(m=this._actionsManager)||void 0===m||m.createSelectionChangedAction();break;case"onTaskClick":null===(D=this._actionsManager)||void 0===D||D.createTaskClickAction();break;case"onTaskDblClick":null===(A=this._actionsManager)||void 0===A||A.createTaskDblClickAction();break;case"onTaskInserting":null===(N=this._actionsManager)||void 0===N||N.createTaskInsertingAction();break;case"onTaskInserted":null===(Q=this._actionsManager)||void 0===Q||Q.createTaskInsertedAction();break;case"onTaskDeleting":null===(se=this._actionsManager)||void 0===se||se.createTaskDeletingAction();break;case"onTaskDeleted":null===(we=this._actionsManager)||void 0===we||we.createTaskDeletedAction();break;case"onTaskUpdating":null===(Re=this._actionsManager)||void 0===Re||Re.createTaskUpdatingAction();break;case"onTaskUpdated":null===(Ue=this._actionsManager)||void 0===Ue||Ue.createTaskUpdatedAction();break;case"onTaskMoving":null===(st=this._actionsManager)||void 0===st||st.createTaskMovingAction();break;case"onTaskEditDialogShowing":null===(Ot=this._actionsManager)||void 0===Ot||Ot.createTaskEditDialogShowingAction();break;case"onResourceManagerDialogShowing":null===(Kt=this._actionsManager)||void 0===Kt||Kt.createResourceManagerDialogShowingAction();break;case"onDependencyInserting":null===(sn=this._actionsManager)||void 0===sn||sn.createDependencyInsertingAction();break;case"onDependencyInserted":null===(wn=this._actionsManager)||void 0===wn||wn.createDependencyInsertedAction();break;case"onDependencyDeleting":null===(rn=this._actionsManager)||void 0===rn||rn.createDependencyDeletingAction();break;case"onDependencyDeleted":null===(Ft=this._actionsManager)||void 0===Ft||Ft.createDependencyDeletedAction();break;case"onResourceInserting":null===(qt=this._actionsManager)||void 0===qt||qt.createResourceInsertingAction();break;case"onResourceInserted":null===(un=this._actionsManager)||void 0===un||un.createResourceInsertedAction();break;case"onResourceDeleting":null===(In=this._actionsManager)||void 0===In||In.createResourceDeletingAction();break;case"onResourceDeleted":null===(Kn=this._actionsManager)||void 0===Kn||Kn.createResourceDeletedAction();break;case"onResourceAssigning":null===(Yn=this._actionsManager)||void 0===Yn||Yn.createResourceAssigningAction();break;case"onResourceAssigned":null===(ai=this._actionsManager)||void 0===ai||ai.createResourceAssignedAction();break;case"onResourceUnassigning":null===(gi=this._actionsManager)||void 0===gi||gi.createResourceUnassigningAction();break;case"onResourceUnassigned":null===(Ci=this._actionsManager)||void 0===Ci||Ci.createResourceUnassignedAction();break;case"onCustomCommand":null===(Ki=this._actionsManager)||void 0===Ki||Ki.createCustomCommandAction();break;case"onContextMenuPreparing":null===(Bi=this._actionsManager)||void 0===Bi||Bi.createContextMenuPreparingAction();break;case"onScaleCellPrepared":null===(ri=this._actionsManager)||void 0===ri||ri.createScaleCellPreparedAction();break;case"allowSelection":null===(Fi=this._ganttTreeList)||void 0===Fi||Fi.setOption("selection.mode",zs.getSelectionMode(t.value)),this._setGanttViewOption("allowSelection",t.value);break;case"showRowLines":null===(Gi=this._ganttTreeList)||void 0===Gi||Gi.setOption("showRowLines",t.value),this._setGanttViewOption("showRowLines",t.value);break;case"stripLines":this._setGanttViewOption("stripLines",t.value);break;case"scaleType":this._setGanttViewOption("scaleType",t.value);break;case"scaleTypeRange":this._setGanttViewOption("scaleTypeRange",this.option(t.name));break;case"editing":this._setGanttViewOption("editing",this.option(t.name));break;case"validation":this._setGanttViewOption("validation",this.option(t.name));break;case"toolbar":this._updateToolbarContent();break;case"contextMenu":this._updateContextMenu();break;case"taskTooltipContentTemplate":this._setGanttViewOption("taskTooltipContentTemplate",null===(or=this._ganttTemplatesManager)||void 0===or?void 0:or.getTaskTooltipContentTemplateFunc(t.value));break;case"taskProgressTooltipContentTemplate":this._setGanttViewOption("taskProgressTooltipContentTemplate",null===(fr=this._ganttTemplatesManager)||void 0===fr?void 0:fr.getTaskProgressTooltipContentTemplateFunc(t.value));break;case"taskTimeTooltipContentTemplate":this._setGanttViewOption("taskTimeTooltipContentTemplate",null===(_r=this._ganttTemplatesManager)||void 0===_r?void 0:_r.getTaskTimeTooltipContentTemplateFunc(t.value));break;case"taskContentTemplate":this._setGanttViewOption("taskContentTemplate",null===($r=this._ganttTemplatesManager)||void 0===$r?void 0:$r.getTaskContentTemplateFunc(t.value));break;case"rootValue":null===(Fr=this._ganttTreeList)||void 0===Fr||Fr.setOption("rootValue",t.value);break;case"width":super._optionChanged(t),null===(Vr=this._sizeHelper)||void 0===Vr||Vr.updateGanttWidth();break;case"height":super._optionChanged(t),null===(zr=this._sizeHelper)||void 0===zr||zr.setGanttHeight((0,s.Cr)(this._$element));break;case"sorting":null===(co=this._ganttTreeList)||void 0===co||co.setOption("sorting",this.option(t.name));break;case"filterRow":null===(Kr=this._ganttTreeList)||void 0===Kr||Kr.setOption("filterRow",this.option(t.name));break;case"headerFilter":null===(Io=this._ganttTreeList)||void 0===Io||Io.setOption("headerFilter",this.option(t.name));break;default:super._optionChanged(t)}}});let S8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.tRk,M.FZZ,M.HaS,M.m$R,M.Q8p,M.BEi,M.SCM,M.rH1,M.lUW,M.mtS,M.YTJ,M.nSX,M.aa6,M.uKt,M.EgX,M.C1H,M.azD,M.s2f,g.Lz,g.ie,p.Cu],M.tRk,M.FZZ,M.HaS,M.m$R,M.Q8p,M.BEi,M.SCM,M.rH1,M.lUW,M.mtS,M.YTJ,M.nSX,M.aa6,M.uKt,M.EgX,M.C1H,M.azD,M.s2f,g.ie]}),n})();var O8=u(8712),xh=Number,DD=Gm.inherit({_move:function(){var n=this._actualPosition-this._zeroPosition;this._rootElement.move(this.vertical?0:n,this.vertical?n:0),this._trackerElement&&this._trackerElement.move(this.vertical?0:n,this.vertical?n:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var t,e,i,r,n=this._options,m=n.width/2,D=n.length/2,A=this._zeroPosition;return m>10||(m=10),D>10||(D=10),this.vertical?(t=n.x-D,e=n.x+D,i=A+m,r=A-m):(t=A-m,e=A+m,i=n.y+D,r=n.y-D),{points:[t,i,t,r,e,r,e,i]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(n){var t=this.vertical?n.x:n.y;return{min:t-this._options.length/2,max:t+this._options.length/2}},getTooltipParameters:function(){var n=this._options,t=this._actualPosition,e={x:t,y:t,value:this._currentValue,color:n.color,offset:n.width/2};return this.vertical?e.x=n.x:e.y=n.y,e}}),CX=DD.inherit({_render:function(){var t,e,i,r,n=this._options;this.callBase();var m=this._zeroPosition;this.vertical?(t=n.x-n.length/2,e=n.x+n.length/2,i=m+n.width/2,r=m-n.width/2):(t=m-n.width/2,e=m+n.width/2,i=n.y+n.length/2,r=n.y-n.length/2),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[t,i,t,r,e,r,e,i]})}}),xX=DD.inherit({_render:function(){var t,e,i,r,n=this._options;this.callBase(),this.vertical?(t=n.x,e=this._zeroPosition,i=n.length/2||0,r=n.width/2||0):(t=this._zeroPosition,e=n.y,i=n.width/2||0,r=n.length/2||0),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[t-i,e,t,e-r,t+i,e,t,e+r]})}}),bX=DD.inherit({_render:function(){var t,e,n=this._options;this.callBase(),this.vertical?(t=n.x,e=this._zeroPosition):(t=this._zeroPosition,e=n.y);var i=n.length/2||0;this._element=this._element||this._renderer.circle().append(this._rootElement),this._element.attr({cx:t,cy:e,r:i})}}),wX=DD.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===En(this._options.horizontalOrientation):"bottom"===En(this._options.verticalOrientation),this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_render:function(){var t,e,i,r,n=this._options,m={stroke:"none","stroke-width":0,"stroke-linecap":"square"};this.callBase(),this.vertical?(i=this._zeroPosition,e=(t=n.x)+xh(this._inverted?n.length:-n.length),m.points=[t,i,e,i-n.width/2,e,i+n.width/2]):(t=this._zeroPosition,r=(i=n.y)+xh(this._inverted?n.length:-n.length),m.points=[t,i,t-n.width/2,r,t+n.width/2,r]),n.space>0&&(m["stroke-width"]=Math.min(n.space,n.width/4)||0,m.stroke=m["stroke-width"]>0&&n.containerBackgroundColor||"none"),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr(m).sharp()},_getTrackerSettings:function(){var i,r,m,D,n=this._options,t=n.width/2,e=xh(n.length);return t>10||(t=10),e>20||(e=20),{points:this.vertical?[i=n.x,m=this._zeroPosition+t,r=i+(this._inverted?e:-e),m,r,D=this._zeroPosition-t,i,D]:[i=this._zeroPosition-t,m=n.y,i,D=m+(this._inverted?e:-e),r=this._zeroPosition+t,D,r,m]}},measure:function(n){var e,i,t=xh(this._options.length);return this.vertical?(e=i=n.x,this._inverted?i=e+t:e=i-t):(e=i=n.y,this._inverted?i=e+t:e=i-t),{min:e,max:i}},getTooltipParameters:function(){var n=this._options,t=(this._inverted?n.length:-n.length)/2,e=this.callBase();return this.vertical?e.x+=t:e.y+=t,e.offset=n.length/2,e}}),EX=DC.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===En(this._options.horizontalOrientation):"bottom"===En(this._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var e,n=this._actualPosition,t=this._actualPosition;return this.vertical?(n=this._options.x,e=this._inverted?"top-left":"top-right"):(t=this._options.y,e=this._inverted?"right-top":"right-bottom"),{x:n,y:t,type:e}},measure:function(n){var t,e,i=xh(this._options.arrowLength)||0;return this._measureText(),this.vertical?this._inverted?(t=n.x,e=n.x+i+this._textFullWidth):(t=n.x-i-this._textFullWidth,e=n.x):this._inverted?(t=n.y,e=n.y+i+this._textFullHeight):(t=n.y-i-this._textFullHeight,e=n.y),{min:t,max:e,indent:0}},_correctCloudType(n,t,e){var{x:i,y:r}=t,{width:m,height:D}=e;return"right-top"===n||"right-bottom"===n?i-m<this._translator.getCodomainStart()&&(n="left-".concat(n.split("-")[1])):("top-left"===n||"top-right"===n)&&r+D>this._translator.getCodomainStart()&&(n="bottom-".concat(n.split("-")[1])),n}}),D8=DE.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===En(this._options.horizontalOrientation):"bottom"===En(this._options.verticalOrientation),this._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var e,i,n=this._options,t=xh(n.size);this.vertical?this._inverted?(e=n.x,i=n.x+t):(e=n.x-t,i=n.x):this._inverted?(e=n.y,i=n.y+t):(e=n.y-t,i=n.y),this._minSide=e,this._maxSide=i,this._minBound=e,this._maxBound=i},_getSpace:function(){var n=this._options;return n.space>0?xh(n.space):0},_isTextVisible:function(){var n=this._options.text||{};return n.indent>0||n.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var n=xh(this._options.text.indent);n>0?(this._lineStart=this._maxSide,this._lineEnd=this._maxSide+n,this._textPosition=this._lineEnd+(this.vertical?2:this._textHeight/2),this._maxBound=this._textPosition+(this.vertical?this._textWidth:this._textHeight/2)):n<0&&(this._lineStart=this._minSide,this._lineEnd=this._minSide+n,this._textPosition=this._lineEnd-(this.vertical?2:this._textHeight/2),this._minBound=this._textPosition-(this.vertical?this._textWidth:this._textHeight/2))},_getPositions:function(){var m,D,A,N,n=this._startPosition,t=this._endPosition,e=this._space,i=this._basePosition,r=this._actualPosition;return n<t?(i<r?(m=i,D=r):(m=r,D=i),A=m-e,N=D+e):(i>r?(m=i,D=r):(m=r,D=i),A=m+e,N=D-e),{start:n,end:t,main1:m,main2:D,back1:A,back2:N}},_buildItemSettings:function(n,t){var e=this._minSide,i=this._maxSide;return{points:this.vertical?[e,n,e,t,i,t,i,n]:[n,e,n,i,t,i,t,e]}},_updateTextPosition:function(){this._text.attr(this.vertical?{x:this._textPosition,y:this._actualPosition+this._textVerticalOffset}:{x:this._actualPosition,y:this._textPosition+this._textVerticalOffset})},_updateLinePosition:function(){var t,e,i,n=this._actualPosition;this.vertical?(this._basePosition>=n?(t=n,e=n+2):(t=n-2,e=n),i=[this._lineStart,t,this._lineStart,e,this._lineEnd,e,this._lineEnd,t]):(this._basePosition<=n?(t=n-2,e=n):(t=n,e=n+2),i=[t,this._lineStart,t,this._lineEnd,e,this._lineEnd,e,this._lineStart]),this._line.attr({points:i}).sharp()},_getTooltipPosition:function(){var n=(this._minSide+this._maxSide)/2,t=(this._basePosition+this._actualPosition)/2;return this.vertical?{x:n,y:t}:{x:t,y:n}},measure:function(n){var i,r,m,t=xh(this._options.size),e=xh(this._options.text.indent);return this._measureText(),this.vertical?(i=r=n.x,this._inverted?r+=t:i-=t,this._hasText&&(m=this._textHeight/2,e>0&&(r+=e+this._textWidth),e<0&&(i+=e-this._textWidth))):(i=r=n.y,this._inverted?r+=t:i-=t,this._hasText&&(m=this._textWidth/2,e>0&&(r+=e+this._textHeight),e<0&&(i+=e-this._textHeight))),{min:i,max:r,indent:m}}}),hP=Number,SX=Math.max,OX=pI.inherit({_processOptions:function(){if(this.vertical=this._options.vertical,this._inner=this._outer=0,this.vertical)switch(En(this._options.horizontalOrientation)){case"left":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}else switch(En(this._options.verticalOrientation)){case"top":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(){return!0},_createRange:function(n,t){var e=this._inner,i=this._outer,r=this._translator.translate(n.start),m=this._translator.translate(n.end),A=t.x,N=t.y,Q=n.startWidth,se=n.endWidth;return this._renderer.path(this.vertical?[A-Q*e,r,A-se*e,m,A+se*i,m,A+Q*i,r]:[r,N+Q*i,r,N-Q*e,m,N-se*e,m,N+se*i],"area")},measure:function(n){var e,t={};return t.min=t.max=n[this.vertical?"x":"y"],e=hP(e=this._options.width)||SX(hP(e.start),hP(e.end)),t.min-=this._inner*e,t.max+=this._outer*e,t}});const DX=OX;var T8=Math.max,TX=Math.min,TD=Math.round,Yb=vC.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(n){return n.isHorizontal?n.verticalOrientation:n.horizontalOrientation},_getThemeManagerOptions(){var n=this.callBase.apply(this,arguments);return n.subTheme="_linear",n},_getInvertedState(){return!this._area.vertical&&this.option("rtlEnabled")},_prepareScaleSettings:function(){var n=this.callBase();return n.inverted=this._getInvertedState(),n},_updateScaleTickIndent:function(n){var A,N,t=n.label.indentFromTick,e=n.tick.length,i=this._scale.measureLabels((0,y.l)({},this._canvas)),m=t>0;n.isHorizontal?(N=e*(m?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[n.verticalOrientation],A=i.y):(N=e*(m?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[n.horizontalOrientation],A=-i.width),n.label.indentFromAxis=-t+(m?-N+A:N-(n.isHorizontal?i.height+i.y:0)),this._scale.updateOptions(n)},_shiftScale:function(n,t){var e=(0,y.l)({},this._canvas),i=t.isHorizontal,r=this._scale;e[i?"left":"top"]=this._area[i?"startCoord":"endCoord"],e[i?"right":"bottom"]=e[i?"width":"height"]-this._area[i?"endCoord":"startCoord"],r.draw(e),r.shift({left:-n.x,top:-n.y})},_setupCodomain:function(){var t="vertical"===En((this.option("geometry")||{}).orientation);this._area={vertical:t,x:0,y:0,startCoord:-100,endCoord:100},this._rangeContainer.vertical=t,this._translator.setInverted(this._getInvertedState()),this._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(n){var t={inner:0,outer:1};return this._area.vertical?"left"===n.horizontalOrientation?(t.inner=1,t.outer=0):"center"===n.horizontalOrientation&&(t.inner=t.outer=.5):"top"===n.verticalOrientation?(t.inner=1,t.outer=0):"center"===n.verticalOrientation&&(t.inner=t.outer=.5),t},_correctScaleIndents:function(n,t,e){var i=this._area.vertical;t>=0?n.max+=t+e[i?"width":"height"]:n.min-=-t+e[i?"width":"height"],n.indent=e[i?"height":"width"]/2},_measureMainElements:function(n,t){var e=this._area.x,i=this._area.y,r=1e3,m=0,D=0;return(0,O.S6)(n.concat(this._scale),function(N,Q){var se=Q.measure?Q.measure({x:e+Q.getOffset(),y:i+Q.getOffset()}):t;void 0!==se.max&&(m=T8(m,se.max)),void 0!==se.min&&(r=TX(r,se.min)),se.indent>0&&(D=T8(D,se.indent))}),{minBound:r,maxBound:m,indent:D}},_applyMainLayout:function(n,t){var r,m,e=this._measureMainElements(n,t),i=this._area;i.vertical?(m=((r=I8(this._innerRect,{width:e.maxBound-e.minBound})).left+r.right)/2-(e.minBound+e.maxBound)/2,i.startCoord=r.bottom-e.indent,i.endCoord=r.top+e.indent,i.x=TD(i.x+m)):(m=((r=I8(this._innerRect,{height:e.maxBound-e.minBound})).top+r.bottom)/2-(e.minBound+e.maxBound)/2,i.startCoord=r.left+e.indent,i.endCoord=r.right-e.indent,i.y=TD(i.y+m)),this._translator.setCodomain(i.startCoord,i.endCoord),this._innerRect=r},_getElementLayout:function(n){return{x:TD(this._area.x+n),y:TD(this._area.y+n)}},_getApproximateScreenRange:function(){var n=this._area,t=n.vertical?this._canvas.height:this._canvas.width;return t>n.totalSize&&(t=n.totalSize),.8*t},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:(0,Se.d9)(Dr.prototype._factory)});function I8(n,t,e){var r,i=(0,y.l)({},n);return e=e||{},t&&(i.left+=e.left||0,i.right-=e.right||0,i.top+=e.top||0,i.bottom-=e.bottom||0,t.width>0&&(r=(i.right-i.left-t.width)/2)>0&&(i.left+=r,i.right-=r),t.height>0&&(r=(i.bottom-i.top-t.height)/2)>0&&(i.top+=r,i.bottom-=r)),i}var Mf=Yb.prototype._factory.indicators={};Yb.prototype._factory.createIndicator=wC(Mf),Mf._default=D8,Mf.rectangle=CX,Mf.rhombus=xX,Mf.circle=bX,Mf.trianglemarker=wX,Mf.textcloud=EX,Mf.rangebar=D8,Yb.prototype._factory.RangeContainer=DX,(0,T.Z)("dxLinearGauge",Yb);let M8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.PR8,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,g.Lz,g.ie,p.Cu],M.IOm,M.lj9,M.aZm,M.rHV,M.YXG,M.KjY,M.F9Z,M.fsq,M.PR8,M.ENI,M.e1H,M.FZZ,M.HC7,M.ji7,M.Kx,M.hfY,M.rUb,M.rrz,M.lTN,M.vZC,M.bgw,M.Ois,M.vci,g.ie]}),n})();var A8=u(4332);let P8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})(),k8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,g.Lz,g.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,g.ie]}),n})();var U0=u(4505),R8=u(1927),MX=u(4094),ty=(0,mi.Jj)(),L8="dx-lookup-field-wrapper",B8="dx-list-item-selected",F8=Be.Z.inherit({_supportedKeys:function(){return(0,y.l)(this.callBase(),{space:function(n){n.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{placeholder:yn.Z.format("Select"),searchPlaceholder:yn.Z.format("Search"),searchEnabled:!0,searchStartEvent:"input change keyup",cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:yn.Z.format("Clear"),applyButtonText:yn.Z.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:yn.Z.format("dxList-pullingDownText"),pulledDownText:yn.Z.format("dxList-pulledDownText"),refreshingText:yn.Z.format("dxList-refreshingText"),pageLoadingText:yn.Z.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:yn.Z.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,dropDownOptions:{showTitle:!0,width:function(){return.8*(0,s.dz)(ty)},height:function(){return.8*(0,s.Cr)(ty)},shading:!0,hideOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},dropDownCentered:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_setDeprecatedOptions(){this.callBase(),(0,y.l)(this._deprecatedOptions,{valueChangeEvent:{since:"22.1",alias:"searchStartEvent"}})},_defaultOptionsRules:function(){var n=(0,z.Vk)();return this.callBase().concat([{device:function(){return!U0.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(t){return!x.Z.isSimulator()&&"desktop"===x.Z.real().deviceType&&"generic"===t.platform},options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:function(){return.4*Math.min((0,s.dz)(ty),(0,s.Cr)(ty))},height:"auto"},usePopover:!0}},{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,z.x2)(n)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,dropDownCentered:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{hideOnOutsideClick:!0,_ignoreFunctionValueDeprecation:!0,width:()=>(0,MX.m)(this.$element()),height:function(){return this._getPopupHeight()}.bind(this),showTitle:!1,shading:!1}}}])},_init:function(){this.callBase(),this._initActions()},_initActions(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction:function(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction:function(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction:function(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler:function(n){this._scrollAction(n)},_pullRefreshHandler:function(n){this._pullRefreshAction(n)},_pageLoadingHandler:function(n){this._pageLoadingAction(n)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new R8.s("group"),title:new R8.s("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find("."+L8)},_dataSourceOptions:function(){return(0,y.l)(this.callBase(),{paginate:!0})},_fireContentReadyAction:E.ZT,_popupWrapperClass:function(){return""},_renderInput:function(){var n=this._createAction(()=>{this._toggleOpenState()});this._$field=(0,l.Z)("<div>").addClass("dx-lookup-field"),d.Z.on(this._$field,(0,k.V4)(v.u,this.NAME),e=>{n({event:e})});var t=(0,l.Z)("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=(0,l.Z)("<div>").addClass(L8).append(this._$field).append(t).appendTo(this.$element())},_getInputContainer(){return this._$fieldWrapper},_renderField:function(){var n=this._getTemplateByOption("fieldTemplate");if(n&&this.option("fieldTemplate"))this._renderFieldTemplate(n);else{var t=this.option("displayValue");this._updateField(t),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem"))}},_getLabelContainer:function(){return this._$field},_renderDisplayText:function(n){this._input().length?this.callBase(n):this._updateField(n)},_updateField:function(n){n=(0,w.$K)(n)&&String(n)||this.option("placeholder"),this._$field.text(n)},_renderFieldTemplate:function(n){this._$field.empty();var t=this._fieldRenderData();n.render({model:t,container:(0,S.u)(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=(0,l.Z)(ty))},_popupShownHandler:function(){var n=this.option("_scrollToSelectedItemEnabled");!this.option("dropDownOptions.fullScreen")&&n&&this._setPopupPosition(),this.callBase()},_scrollToSelectedItem:function(){var n=this._list.option("selectedIndex"),t=this._list.option("items"),e=t.length;0!==e&&(this._list.option("grouped")?this._list.scrollToItem({group:e-1,item:t[e-1].items.length-1}):this._list.scrollToItem(e-1),this._list.scrollToItem(n))},_getDifferenceOffsets:function(n){return n.offset().top-(0,l.Z)(this.element()).offset().top},_isCenteringEnabled:(n,t)=>1<n&&n<t-2,_getPopupOffset:function(){var n=this._listItemElements().length;if(0!==n){var t=(0,l.Z)(this._list.element()).find("."+B8),e=this._listItemElements().index(t),i=((0,s.Cr)(t)-(0,s.Cr)(this.element()))/2,r=(0,l.Z)(this._list.element()).offset().top,m=this.option("dropDownOptions.height"),D="function"==typeof m?m():m,A=(0,s.Cr)(ty),N=0;if(-1!==e){if(this._isCenteringEnabled(e,n)){this._scrollToSelectedItem();var Q=(D-(0,s.Cr)(t))/2-this._getDifferenceOffsets(t);this._list.scrollTo(this._list.scrollTop()+4-Q),r<(N=i+this._getDifferenceOffsets(t))&&e!==n-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(t)/2),N=i+this._getDifferenceOffsets(t))}else e<=1?(this._list.scrollTo(0),N=i+this._getDifferenceOffsets(t)):e>=n-2&&(this._scrollToSelectedItem(),N=i+this._getDifferenceOffsets(t));r<N&&(this._scrollToSelectedItem(),N=i+8)}var se=D-N-(0,s.Cr)(this.element());return A-r<se&&(this._list.scrollTo(this._list.scrollTop()+i-se),N=D-(0,s.Cr)(this.element())-8),N}},_setPopupPosition:function(){if(this.option("dropDownCentered")&&!this._popup.$wrapper().hasClass("dx-popover-flipped-vertical")){var t=(0,l.Z)(this._popup.$content()).parent(),e=this._getPopupOffset(),i=(0,Ms.jt)(t);(0,Ms.pB)(t,{top:i.top-e})}},_listItemGroupedElements:function(){var n=this._list._itemContainer().children(),t=[];return n.each((e,i)=>{t.push((0,l.Z)(i).find(".dx-list-group-header")[0]),(0,l.Z)(i).find(".dx-list-item").each((m,D)=>{t.push(D)})}),(0,l.Z)(t)},_calculateListHeight:function(n){var t=n?this._listItemGroupedElements():this._listItemElements(),e=(0,l.Z)("."+B8),i=t.index(e),r=0;return 0===t.length?r+=8:t.length<5?t.each((D,A)=>{r+=(0,s.zp)(A)}):(i<=1?t.slice(0,5):this._isCenteringEnabled(i,t.length)?t.slice(i-2,i+3):t.slice(t.length-5,t.length)).each((D,A)=>{r+=(0,s.zp)(A)}),r+(n?8:16)},_getPopupHeight:function(){var n;return null!==(n=this._list)&&void 0!==n&&n.itemElements().length?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?(0,s.zp)(this._$searchWrapper):0)+(this._popup._$bottom?(0,s.zp)(this._popup._$bottom):0)+(this._popup._$title?(0,s.zp)(this._popup._$title):0):"auto"},_renderPopup:function(){this.option("usePopover")&&!this.option("dropDownOptions.fullScreen")?this.option("_scrollToSelectedItemEnabled")?this.callBase():this._renderPopover():this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup.$wrapper().addClass("dx-lookup-popup-wrapper")},_renderPopover:function(){this._popup=this._createComponent(this._$popup,Jv.Z,(0,y.l)(this._popupConfig(),this._options.cache("dropDownOptions"),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,hideOnParentScroll:!0,_fixWrapperPosition:!1,width:this._isInitialOptionValue("dropDownOptions.width")?function(){return(0,s.Y_)(this.$element())}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this.option("_scrollToSelectedItemEnabled")&&this._popup._$arrow.remove(),this._setPopupContentId(this._popup.$content()),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&(0,Ms.Kx)((0,l.Z)(this._popup.content()).parent())},_preventFocusOnPopup:E.ZT,_popupConfig:function(){var n=(0,y.l)(this.callBase(),{toolbarItems:this._getPopupToolbarItems(),hideOnParentScroll:!1,onPositioned:null,maxHeight:"100vh",showTitle:this.option("dropDownOptions.showTitle"),title:this.option("dropDownOptions.title"),titleTemplate:this._getTemplateByOption("dropDownOptions.titleTemplate"),onTitleRendered:this.option("dropDownOptions.onTitleRendered"),fullScreen:this.option("dropDownOptions.fullScreen"),shading:this.option("dropDownOptions.shading"),hideOnOutsideClick:this.option("dropDownOptions.hideOnOutsideClick")||this.option("dropDownOptions.closeOnOutsideClick")});return delete n.animation,delete n.position,this.option("_scrollToSelectedItemEnabled")&&(n.position=this.option("dropDownCentered")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()},n.hideOnParentScroll=!0),(0,O.S6)(["position","animation","width","height"],(t,e)=>{var i=this.option("dropDownOptions.".concat(e));void 0!==i&&(n[e]=i)}),n},_getPopupToolbarItems:function(){var n="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],t=this._getCancelButtonConfig();t&&n.push(t);var e=this._getClearButtonConfig();return e&&n.push(e),this._applyButtonsLocation(n)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{onInitialized:n=>{n.component.registerKeyHandler("escape",this.close.bind(this))},text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(n){n&&this._saveValueChangeEvent(n.event),this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updateListDimensions()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("dropDownOptions.width")&&this.option("dropDownOptions.width",(0,s.dz)(this.$element())),this._updateListDimensions()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_renderValueChangeEvent:E.ZT,_renderSearch:function(){var n=this.option("searchEnabled");if(this._toggleSearchClass(n),n){var t=this._$searchWrapper=(0,l.Z)("<div>").addClass("dx-lookup-search-wrapper"),e=this._$searchBox=(0,l.Z)("<div>").addClass("dx-lookup-search").appendTo(t),i=x.Z.current(),m=!1;this._searchBox=this._createComponent(e,iD.Z,{onDisposing:()=>m=!1,onFocusIn:()=>m=!0,onFocusOut:()=>m=!1,onKeyboardHandled:D=>m&&this._list._keyboardHandler(D),mode:i.android?"text":"search",showClearButton:!0,valueChangeEvent:this.option("searchStartEvent"),onValueChanged:D=>{this._searchHandler(D)}}),this._registerSearchKeyHandlers(),t.insertBefore(this._$list),this._setSearchPlaceholder()}},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(n){var t=(0,l.Z)(this._list.option("focusedElement"));t.length&&(n.preventDefault(),n.target=t.get(0),this._saveValueChangeEvent(n),this._selectListItem(n.itemData,t))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",E.ZT),this._searchBox.registerKeyHandler("home",E.ZT)},_toggleSearchClass:function(n){this._popup&&this._popup.$wrapper().toggleClass("dx-lookup-popup-search",n)},_setSearchPlaceholder:function(){if(this._$searchBox){var n=this.option("minSearchLength"),t=this.option("searchPlaceholder");n&&t===yn.Z.format("Search")&&(t=yn.Z.getFormatter("dxLookup-searchPlaceholder")(n)),this._searchBox.option("placeholder",t)}},_setAriaTargetForList:E.ZT,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",()=>{this.close()})},_listConfig:function(){return(0,y.l)(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):E.ZT},_listContentReadyHandler:function(){this.callBase(...arguments),this._refreshSelected()},_runWithoutCloseOnScroll:function(n){var{_scrollToSelectedItemEnabled:t}=this.option(),e=this._popup.option("hideOnParentScroll");t?(this._popup.option("hideOnParentScroll",!1),n(),this._hideOnParentScrollTimer=setTimeout(()=>{this._popup.option("hideOnParentScroll",e)})):n()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._runWithoutCloseOnScroll(()=>{this.option("searchEnabled")?this._searchBox.focus():d.Z.trigger(this._$list,"focus")})},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(n){this._saveValueChangeEvent(n.event),this._selectListItem(n.itemData,n.event.currentTarget)},_selectListItem:function(n,t){this._list.selectItem(t),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(n){this._saveValueChangeEvent(n.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(()=>{this._refreshSelected()})},_renderPlaceholder:function(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),clearTimeout(this._hideOnParentScrollTimer),this._hideOnParentScrollTimer=null,this._$searchBox=null,this.callBase()},_optionChanged:function(n){var t,{name:e,fullName:i,value:r}=n;switch(e){case"dataSource":this.callBase(...arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase(...arguments);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":default:this.callBase(...arguments);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(e);break;case"searchStartEvent":null===(t=this._searchBox)||void 0===t||t.option("valueChangeEvent",r);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"dropDownOptions":switch(i){case"dropDownOptions.width":case"dropDownOptions.height":this._popupOptionChanged({name:e,fullName:i,value:"auto"===r?this.initialOption("dropDownOptions")[(0,IF.Ts)(i)]:r}),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;default:this.callBase(...arguments)}break;case"dropDownCentered":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup())}},focus:function(){this.option("opened")?this._setFocusPolicy():d.Z.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});(0,T.Z)("dxLookup",F8);const KX=F8,GX={provide:ne.JU,useExisting:(0,a.Gpc)(()=>jX),multi:!0};let jX=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"pageLoading",emit:"onPageLoading"},{subscribe:"pullRefresh",emit:"onPullRefresh"},{subscribe:"scroll",emit:"onScroll"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyButtonTextChange"},{emit:"applyValueModeChange"},{emit:"cancelButtonTextChange"},{emit:"cleanSearchOnOpeningChange"},{emit:"clearButtonTextChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"displayValueChange"},{emit:"dropDownCenteredChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"fullScreenChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"minSearchLengthChange"},{emit:"nameChange"},{emit:"nextButtonTextChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"pageLoadingTextChange"},{emit:"pageLoadModeChange"},{emit:"placeholderChange"},{emit:"pulledDownTextChange"},{emit:"pullingDownTextChange"},{emit:"pullRefreshEnabledChange"},{emit:"refreshingTextChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchPlaceholderChange"},{emit:"searchStartEventChange"},{emit:"searchTimeoutChange"},{emit:"selectedItemChange"},{emit:"showCancelButtonChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"useNativeScrollingChange"},{emit:"usePopoverChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get applyButtonText(){return this._getOption("applyButtonText")}set applyButtonText(e){this._setOption("applyButtonText",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get cancelButtonText(){return this._getOption("cancelButtonText")}set cancelButtonText(e){this._setOption("cancelButtonText",e)}get cleanSearchOnOpening(){return this._getOption("cleanSearchOnOpening")}set cleanSearchOnOpening(e){this._setOption("cleanSearchOnOpening",e)}get clearButtonText(){return this._getOption("clearButtonText")}set clearButtonText(e){this._setOption("clearButtonText",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get displayValue(){return this._getOption("displayValue")}set displayValue(e){this._setOption("displayValue",e)}get dropDownCentered(){return this._getOption("dropDownCentered")}set dropDownCentered(e){this._setOption("dropDownCentered",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get fullScreen(){return this._getOption("fullScreen")}set fullScreen(e){this._setOption("fullScreen",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get nextButtonText(){return this._getOption("nextButtonText")}set nextButtonText(e){this._setOption("nextButtonText",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get pageLoadingText(){return this._getOption("pageLoadingText")}set pageLoadingText(e){this._setOption("pageLoadingText",e)}get pageLoadMode(){return this._getOption("pageLoadMode")}set pageLoadMode(e){this._setOption("pageLoadMode",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get pulledDownText(){return this._getOption("pulledDownText")}set pulledDownText(e){this._setOption("pulledDownText",e)}get pullingDownText(){return this._getOption("pullingDownText")}set pullingDownText(e){this._setOption("pullingDownText",e)}get pullRefreshEnabled(){return this._getOption("pullRefreshEnabled")}set pullRefreshEnabled(e){this._setOption("pullRefreshEnabled",e)}get refreshingText(){return this._getOption("refreshingText")}set refreshingText(e){this._setOption("refreshingText",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(e){this._setOption("searchEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchPlaceholder(){return this._getOption("searchPlaceholder")}set searchPlaceholder(e){this._setOption("searchPlaceholder",e)}get searchStartEvent(){return this._getOption("searchStartEvent")}set searchStartEvent(e){this._setOption("searchStartEvent",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectedItem(){return this._getOption("selectedItem")}set selectedItem(e){this._setOption("selectedItem",e)}get showCancelButton(){return this._getOption("showCancelButton")}set showCancelButton(e){this._setOption("showCancelButton",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(e){this._setOption("showDataBeforeSearch",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get useNativeScrolling(){return this._getOption("useNativeScrolling")}set useNativeScrolling(e){this._setOption("useNativeScrolling",e)}get usePopover(){return this._getOption("usePopover")}set usePopover(e){this._setOption("usePopover",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new KX(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-lookup"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.ZT3,4),2&e){let m;a.iGM(m=a.CRH())&&(i.itemsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyButtonText:"applyButtonText",applyValueMode:"applyValueMode",cancelButtonText:"cancelButtonText",cleanSearchOnOpening:"cleanSearchOnOpening",clearButtonText:"clearButtonText",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",displayValue:"displayValue",dropDownCentered:"dropDownCentered",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",fullScreen:"fullScreen",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",minSearchLength:"minSearchLength",name:"name",nextButtonText:"nextButtonText",noDataText:"noDataText",opened:"opened",pageLoadingText:"pageLoadingText",pageLoadMode:"pageLoadMode",placeholder:"placeholder",pulledDownText:"pulledDownText",pullingDownText:"pullingDownText",pullRefreshEnabled:"pullRefreshEnabled",refreshingText:"refreshingText",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchPlaceholder:"searchPlaceholder",searchStartEvent:"searchStartEvent",searchTimeout:"searchTimeout",selectedItem:"selectedItem",showCancelButton:"showCancelButton",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useItemTextAsTitle:"useItemTextAsTitle",useNativeScrolling:"useNativeScrolling",usePopover:"usePopover",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onClosed:"onClosed",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onItemClick:"onItemClick",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onPageLoading:"onPageLoading",onPullRefresh:"onPullRefresh",onScroll:"onScroll",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyButtonTextChange:"applyButtonTextChange",applyValueModeChange:"applyValueModeChange",cancelButtonTextChange:"cancelButtonTextChange",cleanSearchOnOpeningChange:"cleanSearchOnOpeningChange",clearButtonTextChange:"clearButtonTextChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",displayValueChange:"displayValueChange",dropDownCenteredChange:"dropDownCenteredChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",fullScreenChange:"fullScreenChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",minSearchLengthChange:"minSearchLengthChange",nameChange:"nameChange",nextButtonTextChange:"nextButtonTextChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",pageLoadingTextChange:"pageLoadingTextChange",pageLoadModeChange:"pageLoadModeChange",placeholderChange:"placeholderChange",pulledDownTextChange:"pulledDownTextChange",pullingDownTextChange:"pullingDownTextChange",pullRefreshEnabledChange:"pullRefreshEnabledChange",refreshingTextChange:"refreshingTextChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchPlaceholderChange:"searchPlaceholderChange",searchStartEventChange:"searchStartEventChange",searchTimeoutChange:"searchTimeoutChange",selectedItemChange:"selectedItemChange",showCancelButtonChange:"showCancelButtonChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",useNativeScrollingChange:"useNativeScrollingChange",usePopoverChange:"usePopoverChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,GX,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),V8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,M.pGy,M.Q8p,g.Lz,g.ie,p.Cu],M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,M.pGy,M.Q8p,g.ie]}),n})();var Yu=ar.Z.abstract,$X=ar.Z.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(n,t){this._mapWidget=n,this._$container=t},render:function(n,t){return this._renderImpl().then(function(){return Promise.all([this._applyFunctionIfNeeded("addMarkers",n),this._applyFunctionIfNeeded("addRoutes",t)]).then(function(){return!0})}.bind(this))},_renderImpl:Yu,updateDimensions:Yu,updateMapType:Yu,updateBounds:Yu,updateCenter:Yu,updateZoom:Yu,updateControls:Yu,updateMarkers:function(n,t){return new Promise(function(e){return this._applyFunctionIfNeeded("removeMarkers",n).then(function(i){this._applyFunctionIfNeeded("addMarkers",t).then(function(r){e(r||i)})}.bind(this))}.bind(this))},addMarkers:Yu,removeMarkers:Yu,adjustViewport:Yu,updateRoutes:function(n,t){return new Promise(function(e){return this._applyFunctionIfNeeded("removeRoutes",n).then(function(i){this._applyFunctionIfNeeded("addRoutes",t).then(function(r){e(r||i)})}.bind(this))}.bind(this))},addRoutes:Yu,removeRoutes:Yu,clean:Yu,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(n,t){if(void 0===t)return this._mapWidget.option(n);this._mapWidget.setOptionSilent(n,t)},_keyOption:function(n){var t=this._option("apiKey");return void 0===t[n]?t:t[n]},_parseTooltipOptions:function(n){return{text:n.text||n,visible:n.isShown||!1}},_getLatLng:function(n){if("string"==typeof n){var t=(0,O.UI)(n.split(","),function(i){return i.trim()}),e=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===t.length&&t[0].match(e)&&t[1].match(e))return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}else{if(Array.isArray(n)&&2===n.length)return{lat:n[0],lng:n[1]};if((0,w.PO)(n)&&(0,w.kE)(n.lat)&&(0,w.kE)(n.lng))return n}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(n){return(0,k.V4)(n,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(n,t){return t.length?this[n](t):Promise.resolve()},_fireAction:function(n,t){this._mapWidget._createActionByOption(n)(t)},_fireClickAction:function(n){this._fireAction("onClick",n)},_fireMarkerAddedAction:function(n){this._fireAction("onMarkerAdded",n)},_fireMarkerRemovedAction:function(n){this._fireAction("onMarkerRemoved",n)},_fireRouteAddedAction:function(n){this._fireAction("onRouteAdded",n)},_fireRouteRemovedAction:function(n){this._fireAction("onRouteRemoved",n)}});const gP=$X;var XX=gP.inherit({_locationToString:function(n){var t=this._getLatLng(n);return t?t.lat+","+t.lng:n.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return Promise.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return Promise.resolve()},addMarkers:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireMarkerAddedAction({options:r})}),e})},removeMarkers:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireMarkerRemovedAction({options:r})}),e})},adjustViewport:function(){return Promise.resolve()},addRoutes:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireRouteAddedAction({options:r})}),e})},removeRoutes:function(n){var t=this;return this._updateMap().then(function(e){return(0,O.S6)(n,function(i,r){t._fireRouteRemovedAction({options:r})}),e})},clean:function(){return this._$container.css("backgroundImage","none"),d.Z.off(this._$container,this._addEventNamespace(v.u)),Promise.resolve()},mapRendered:function(){return!0},_updateMap:function(){var n=this._keyOption("googleStatic"),t=this._$container,e=["sensor=false","size="+Math.round((0,s.dz)(t))+"x"+Math.round((0,s.Cr)(t)),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];e.push.apply(e,this._routeSubstrings()),n&&e.push("key="+n);var i="https://maps.google.com/maps/api/staticmap?"+e.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),Promise.resolve(!0)},_markersSubstring:function(){var n=this,t=[],e=this._option("markerIconSrc");return e&&t.push("icon:"+e),(0,O.S6)(this._option("markers"),function(i,r){t.push(n._locationToString(r.location))}),"markers="+t.join("|")},_routeSubstrings:function(){var n=this,t=[];return(0,O.S6)(this._option("routes"),function(e,i){var r=new ie.Z(i.color||n._defaultRouteColor()).toHex().replace("#","0x"),m=Math.round(255*(i.opacity||n._defaultRouteOpacity())).toString(16),D=i.weight||n._defaultRouteWeight(),A=[];(0,O.S6)(i.locations,function(N,Q){A.push(n._locationToString(Q))}),t.push("path=color:"+r+m+"|weight:"+D+"|"+A.join("|"))}),t},_attachClickEvent:function(){var n=this,t=this._addEventNamespace(v.u);d.Z.off(this._$container,t),d.Z.on(this._$container,t,function(e){n._fireClickAction({event:e})})}});const qX=XX;var Mp=gP.abstract,JX=gP.inherit({_geocodeLocation:function(n){return new Promise(function(t){var e=this._geocodedLocations,i=e[n];i?t(i):this._geocodeLocationImpl(n).then(function(r){e[n]=r,t(r)})}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return Promise.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new Promise(function(n){var t=setTimeout(function(){clearTimeout(t),n()})})}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:Mp,_init:Mp,_attachHandlers:Mp,addMarkers:function(n){return Promise.all((0,O.UI)(n,function(t){return this._addMarker(t)}.bind(this))).then(function(t){return this._fitBounds(),[!1,(0,O.UI)(t,function(e){return e.marker})]}.bind(this))},_addMarker:function(n){return this._renderMarker(n).then(function(t){return this._markers.push((0,y.l)({options:n},t)),this._fireMarkerAddedAction({options:n,originalMarker:t.marker}),t}.bind(this))},_renderMarker:Mp,removeMarkers:function(n){var t=this;return(0,O.S6)(n,function(e,i){t._removeMarker(i)}),Promise.resolve()},_removeMarker:function(n){var t=this;(0,O.S6)(this._markers,function(e,i){return i.options!==n||(t._destroyMarker(i),t._markers.splice(e,1),t._fireMarkerRemovedAction({options:i.options}),!1)})},_destroyMarker:Mp,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(n){return Promise.all((0,O.UI)(n,function(t){return this._addRoute(t)}.bind(this))).then(function(t){return this._fitBounds(),[!1,(0,O.UI)(t,function(e){return e.instance})]}.bind(this))},_addRoute:function(n){return this._renderRoute(n).then(function(t){return this._routes.push((0,y.l)({options:n},t)),this._fireRouteAddedAction({options:n,originalRoute:t.instance}),t}.bind(this))},_renderRoute:Mp,removeRoutes:function(n){var t=this;return(0,O.S6)(n,function(e,i){t._removeRoute(i)}),Promise.resolve()},_removeRoute:function(n){var t=this;(0,O.S6)(this._routes,function(e,i){return i.options!==n||(t._destroyRoute(i),t._routes.splice(e,1),t._fireRouteRemovedAction({options:n}),!1)})},_destroyRoute:Mp,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:Mp,_updateBounds:function(){var n=this;this._clearBounds(),this._option("autoAdjust")&&((0,O.S6)(this._markers,function(t,e){n._extendBounds(e.location)}),(0,O.S6)(this._routes,function(t,e){e.northEast&&n._extendBounds(e.northEast),e.southWest&&n._extendBounds(e.southWest)}))},_clearBounds:function(){this._bounds=null},_extendBounds:Mp});const N8=JX;var iy,fP,Xb=(0,mi.Jj)(),ID="_googleScriptReady",QX="https://maps.googleapis.com/maps/api/js?callback="+ID,H8=function(){return Xb.google&&Xb.google.maps},nq=N8.inherit({_mapType:function(n){var t={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return t[n]||t.hybrid},_movementMode:function(n){var t={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return t[n]||t.driving},_resolveLocation:function(n){return new Promise(function(t){var e=this._getLatLng(n);e?t(new google.maps.LatLng(e.lat,e.lng)):this._geocodeLocation(n).then(function(i){t(i)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(n){return new Promise(function(t){(0,w.$K)(n)?(new google.maps.Geocoder).geocode({address:n},function(i,r){r===google.maps.GeocoderStatus.OK?t(i[0].geometry.location):(Hs.Z.log("W1006",r),t(new google.maps.LatLng(0,0)))}):t(new google.maps.LatLng(0,0))})},_normalizeLocation:function(n){return{lat:n.lat(),lng:n.lng()}},_normalizeLocationRect:function(n){return{northEast:this._normalizeLocation(n.getNorthEast()),southWest:this._normalizeLocation(n.getSouthWest())}},_loadImpl:function(){return new Promise(function(n){H8()?n():(fP||(fP=this._loadMapScript()),fP.then(function(){H8()?n():this._loadMapScript().then(n)}.bind(this)))}.bind(this)).then(function(){iy=function(n){this._position=n.position,this._offset=n.offset,this._$overlayContainer=(0,l.Z)("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(n.html),this.setMap(n.map)},iy.prototype=new google.maps.OverlayView,iy.prototype.onAdd=function(){(0,l.Z)(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(t){google.maps.event.trigger(this,"click"),t.preventDefault()}.bind(this)),this.draw()},iy.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},iy.prototype.draw=function(){var n=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:n.x+this._offset.left,top:n.y+this._offset.top,display:"block"})}})},_loadMapScript:function(){return new Promise(function(n){var t=this._keyOption("google");Xb[ID]=n,Qv.Z.sendRequest({url:QX+(t?"&key="+t:""),dataType:"script"})}.bind(this)).then(function(){try{delete Xb[ID]}catch{Xb[ID]=void 0}})},_init:function(){return new Promise(function(n){this._resolveLocation(this._option("center")).then(function(t){var e=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:t,disableDefaultUI:!e});var i=google.maps.event.addListener(this._map,"idle",function(){n(i)})}.bind(this))}.bind(this)).then(function(n){google.maps.event.removeListener(n)})},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var n=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(n));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(n){this._fireClickAction({location:this._normalizeLocation(n.latLng)})},updateDimensions:function(){var n=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",n),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),Promise.resolve()},updateBounds:function(){return Promise.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(n){var t=new google.maps.LatLngBounds;t.extend(n[0]),t.extend(n[1]),this._map.fitBounds(t)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(n){this._map.setCenter(n),this._option("center",this._normalizeLocation(n))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),Promise.resolve()},updateControls:function(){var n=this._option("controls");return this._map.setOptions({disableDefaultUI:!n}),Promise.resolve()},isEventsCanceled:function(n){var t=this._map&&this._map.get("gestureHandling");return!((0,l.Z)(n.target).closest(".".concat("gm-style-iw")).length>0||"desktop"!==x.Z.real().deviceType&&"cooperative"===t)&&this.callBase()},_renderMarker:function(n){return this._resolveLocation(n.location).then(function(t){var e;e=n.html?new iy({map:this._map,position:t,html:n.html,offset:(0,y.l)({top:0,left:0},n.htmlOffset)}):new google.maps.Marker({position:t,map:this._map,icon:n.iconSrc||this._option("markerIconSrc")});var r,i=this._renderTooltip(e,n.tooltip);if(n.onClick||n.tooltip){var m=this._mapWidget._createAction(n.onClick||E.ZT),D=this._normalizeLocation(t);r=google.maps.event.addListener(e,"click",function(){m({location:D}),i&&i.open(this._map,e)}.bind(this))}return{location:t,marker:e,listener:r}}.bind(this))},_renderTooltip:function(n,t){if(t){t=this._parseTooltipOptions(t);var e=new google.maps.InfoWindow({content:t.text});return t.visible&&e.open(this._map,n),e}},_destroyMarker:function(n){n.marker.setMap(null),n.listener&&google.maps.event.removeListener(n.listener)},_renderRoute:function(n){return Promise.all((0,O.UI)(n.locations,function(t){return this._resolveLocation(t)}.bind(this))).then(function(t){return new Promise(function(e){var D={origin:t.shift(),destination:t.pop(),waypoints:(0,O.UI)(t,function(A){return{location:A,stopover:!0}}),optimizeWaypoints:!0,travelMode:this._movementMode(n.mode)};(new google.maps.DirectionsService).route(D,function(A,N){if(N===google.maps.DirectionsStatus.OK){var Q=new ie.Z(n.color||this._defaultRouteColor()).toHex(),se={directions:A,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:n.weight||this._defaultRouteWeight(),strokeOpacity:n.opacity||this._defaultRouteOpacity(),strokeColor:Q}},we=new google.maps.DirectionsRenderer(se),Re=A.routes[0].bounds;e({instance:we,northEast:Re.getNorthEast(),southWest:Re.getSouthWest()})}else Hs.Z.log("W1006",N),e({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(n){n.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var n=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var t=this._map.getZoom();n<t?this._map.setZoom(n):this._option("zoom",t),delete this._preventZoomChangeEvent}return Promise.resolve()},_extendBounds:function(n){this._bounds||(this._bounds=new google.maps.LatLngBounds),this._bounds.extend(n)},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),Promise.resolve()}});const iq=nq;var mP,qb=(0,mi.Jj)(),MD="_bingScriptReady",rq="https://www.bing.com/api/maps/mapcontrol?callback="+MD,W8=function(){return qb.Microsoft&&qb.Microsoft.Maps},sq=N8.inherit({_mapType:function(n){var t={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return t[n]||t.road},_movementMode:function(n){var t={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return t[n]||t.driving},_resolveLocation:function(n){return new Promise(function(t){var e=this._getLatLng(n);e?t(new Microsoft.Maps.Location(e.lat,e.lng)):this._geocodeLocation(n).then(function(i){t(i)})}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(n){return new Promise(function(t){(0,w.$K)(n)?new Microsoft.Maps.Search.SearchManager(this._map).geocode({where:n,count:1,callback:function(r){if(r.results[0]){var D=r.results[0].location;t(new Microsoft.Maps.Location(D.latitude,D.longitude))}else t(new Microsoft.Maps.Location(0,0))}}):t(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(n){return{lat:n.latitude,lng:n.longitude}},_normalizeLocationRect:function(n){var t=this._normalizeLocation(n.getNorthwest()),e=this._normalizeLocation(n.getSoutheast());return{northEast:{lat:t.lat,lng:e.lng},southWest:{lat:e.lat,lng:t.lng}}},_loadImpl:function(){return new Promise(function(n){W8()?n():(mP||(mP=this._loadMapScript()),mP.then(function(){W8()?n():this._loadMapScript().then(n)}.bind(this)))}.bind(this)).then(function(){return Promise.all([new Promise(function(n){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:n})}),new Promise(function(n){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:n})})])})},_loadMapScript:function(){return new Promise(function(n){qb[MD]=n,Qv.Z.sendRequest({url:rq,dataType:"script"})}).then(function(){try{delete qb[MD]}catch{qb[MD]=void 0}})},_init:function(){return this._createMap(),Promise.resolve()},_createMap:function(){var n=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:n,showMapTypeSelector:n,showScalebar:n})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var n=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(n));var t=this._map.getCenter();this._option("center",this._normalizeLocation(t)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(n){"map"===n.targetType&&this._fireClickAction({location:this._normalizeLocation(n.location)})},updateDimensions:function(){var n=this._$container;return this._map.setOptions({width:(0,s.dz)(n),height:(0,s.Cr)(n)}),Promise.resolve()},updateMapType:function(){var n=this._option("type"),t=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(n),labelOverlay:"satellite"===n?t.hidden:t.visible}),Promise.resolve()},updateBounds:function(){return Promise.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(n){var t=new Microsoft.Maps.LocationRect.fromLocations(n[0],n[1]);this._map.setView({animate:!1,bounds:t})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(n){this._map.setView({animate:!1,center:n})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),Promise.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(n){return this._resolveLocation(n.location).then(function(t){var e={icon:n.iconSrc||this._option("markerIconSrc")};if(n.html){(0,y.l)(e,{htmlContent:n.html,width:null,height:null});var i=n.htmlOffset;i&&(e.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var r=new Microsoft.Maps.Pushpin(t,e);this._map.entities.push(r);var D,m=this._renderTooltip(t,n.tooltip);if(n.onClick||n.tooltip){var A=this._mapWidget._createAction(n.onClick||E.ZT),N=this._normalizeLocation(t);D=Microsoft.Maps.Events.addHandler(r,"click",function(){A({location:N}),m&&m.setOptions({visible:!0})})}return{location:t,marker:r,infobox:m,handler:D}}.bind(this))},_renderTooltip:function(n,t){if(t){t=this._parseTooltipOptions(t);var e=new Microsoft.Maps.Infobox(n,{description:t.text,offset:new Microsoft.Maps.Point(0,13),visible:t.visible});return e.setMap(this._map),e}},_destroyMarker:function(n){this._map.entities.remove(n.marker),n.infobox&&n.infobox.setMap(null),n.handler&&Microsoft.Maps.Events.removeHandler(n.handler)},_renderRoute:function(n){return Promise.all((0,O.UI)(n.locations,function(t){return this._resolveLocation(t)}.bind(this))).then(function(t){return new Promise(function(e){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),r=new ie.Z(n.color||this._defaultRouteColor()).toHex(),m=new Microsoft.Maps.Color.fromHex(r);m.a=255*(n.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:m,strokeThickness:n.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:m,strokeThickness:n.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(n.mode),routeDraggable:!1}),(0,O.S6)(t,function(A,N){var Q=new Microsoft.Maps.Directions.Waypoint({location:N});i.addWaypoint(Q)});var D=[];D.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",function(A){for(;D.length;)Microsoft.Maps.Events.removeHandler(D.pop());var N=A.routeSummary[0];e({instance:i,northEast:N.northEast,southWest:N.southWest})})),D.push(Microsoft.Maps.Events.addHandler(i,"directionsError",function(A){for(;D.length;)Microsoft.Maps.Events.removeHandler(D.pop());Hs.Z.log("W1006","RouteResponseCode: "+A.responseCode+" - "+A.message),e({instance:i})})),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(n){n.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var n=this._map.getZoom();this._preventZoomChangeEvent=!0;var t=this._bounds.clone();t.height=1.1*t.height,t.width=1.1*t.width,this._map.setView({animate:!1,bounds:t,zoom:n});var e=this._map.getZoom();n<e?this._map.setView({animate:!1,zoom:n}):this._option("zoom",e),delete this._preventZoomChangeEvent}return Promise.resolve()},_extendBounds:function(n){this._bounds=this._bounds?new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),n):new Microsoft.Maps.LocationRect(n,1e-16,1e-16)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),Promise.resolve()}}),lq={googleStatic:qX,google:iq,bing:sq},U8="dx-map-shield",Z8=ca.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,apiKey:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-map"),this._lastAsyncAction=Promise.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_useTemplates:function(){return!1},_checkOption:function(n){var t=this.option(n);if("markers"===n&&!Array.isArray(t))throw Hs.Z.Error("E1022");if("routes"===n&&!Array.isArray(t))throw Hs.Z.Error("E1023")},_initContainer:function(){this._$container=(0,l.Z)("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var n=(0,k.V4)(So.Z.down,this.NAME);d.Z.on(this.$element(),n,this._cancelEvent.bind(this))},_cancelEvent:function(n){this._provider&&this._provider.isEventsCanceled(n)&&!this.option("disabled")&&n.stopPropagation()},_saveRendered:function(n){var t=this.option(n);this._rendered[n]=t.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(lq[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var n;this.option("disabled")?(n=(0,l.Z)("<div>").addClass(U8),this.$element().append(n)):(n=this.$element().find("."+U8)).remove()},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=Promise.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(n){var t=n.name,e=this._optionChangeBag;switch(this._optionChangeBag=null,t){case"disabled":this._renderShield(),this.callBase(n);break;case"width":case"height":this.callBase(n),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"apiKey":Hs.Z.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(t);var i=this._rendered[t];this._saveRendered(t),this._queueAsyncAction("update"+(0,je.MI)(t),e?e.removed:i,e?e.added:this._rendered[t]).then(function(r){e&&e.resolve(r)});break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(n){n&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(n){var t=[].slice.call(arguments).slice(1),e=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||e?Promise.resolve():this._provider[n].apply(this._provider,t).then(function(i){return(i=(0,$u.sE)(i))[0]&&!this._disposed&&this._triggerReadyAction(),i[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(n,t){this._setOptionWithoutOptionChange(n,t)},addMarker:function(n){return this._addFunction("markers",n)},removeMarker:function(n){return this._removeFunction("markers",n)},addRoute:function(n){return this._addFunction("routes",n)},removeRoute:function(n){return this._removeFunction("routes",n)},_addFunction:function(n,t){var e=this.option(n),i=(0,$u.sE)(t);return e.push.apply(e,i),this._partialArrayOptionChange(n,e,i,[])},_removeFunction:function(n,t){var e=this.option(n),i=(0,$u.sE)(t);return(0,O.S6)(i,function(r,m){var D=(0,w.kE)(m)?m:e?.indexOf(m);if(-1===D)throw Hs.Z.log("E1021",(0,je.MI)(n.substring(0,n.length-1)),m);var A=e.splice(D,1)[0];i.splice(r,1,A)}),this._partialArrayOptionChange(n,e,[],i)},_partialArrayOptionChange:function(n,t,e,i){return(0,P.p4)(new Promise(function(r){this._optionChangeBag={resolve:r,added:e,removed:i},this.option(n,t)}.bind(this)).then(function(r){return r&&1===r.length?r[0]:r}),this)}});(0,T.Z)("dxMap",Z8);let K8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Ejv,M.uQR,M.Dtt,M._Sx,M.vZC,M.cuJ,g.Lz,g.ie,p.Cu],M.Ejv,M.uQR,M.Dtt,M._Sx,M.vZC,M.cuJ,g.ie]}),n})();u(9998);let G8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Bib,M.lar,M.oyT,g.Lz,g.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.Q8p,M.Bib,M.lar,M.oyT,g.ie]}),n})();u(7257);let j8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();var $8=u(1946);const gq={provide:ne.JU,useExisting:(0,a.Gpc)(()=>fq),multi:!0};let fq=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"buttonsChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"formatChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"invalidValueMessageChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"modeChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showClearButtonChange"},{emit:"showSpinButtonsChange"},{emit:"stepChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"useLargeSpinButtonsChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get format(){return this._getOption("format")}set format(e){this._setOption("format",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get invalidValueMessage(){return this._getOption("invalidValueMessage")}set invalidValueMessage(e){this._setOption("invalidValueMessage",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get mode(){return this._getOption("mode")}set mode(e){this._setOption("mode",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showSpinButtons(){return this._getOption("showSpinButtons")}set showSpinButtons(e){this._setOption("showSpinButtons",e)}get step(){return this._getOption("step")}set step(e){this._setOption("step",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useLargeSpinButtons(){return this._getOption("useLargeSpinButtons")}set useLargeSpinButtons(e){this._setOption("useLargeSpinButtons",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}_createInstance(e,i){return new $8.Z(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-number-box"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.k4o,4),2&e){let m;a.iGM(m=a.CRH())&&(i.buttonsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",buttons:"buttons",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",format:"format",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",invalidValueMessage:"invalidValueMessage",isValid:"isValid",label:"label",labelMode:"labelMode",max:"max",min:"min",mode:"mode",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showClearButton:"showClearButton",showSpinButtons:"showSpinButtons",step:"step",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",useLargeSpinButtons:"useLargeSpinButtons",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",buttonsChange:"buttonsChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",formatChange:"formatChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",invalidValueMessageChange:"invalidValueMessageChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxChange:"maxChange",minChange:"minChange",modeChange:"modeChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showClearButtonChange:"showClearButtonChange",showSpinButtonsChange:"showSpinButtonsChange",stepChange:"stepChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",useLargeSpinButtonsChange:"useLargeSpinButtonsChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,gq,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Y8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.FZZ,g.Lz,g.ie,p.Cu],M.idP,M.UxI,M.FZZ,g.ie]}),n})();var{states:Z0}=Zl,X8=Zl.pieSeriesSpacing,_q=Z0.normalMark,vq=Z0.hoverMark,yq=Z0.selectedMark,xq=[Z0.resetItem,Z0.applyHover,Z0.applySelected,Z0.applySelected];function q8(n){return(0,w.kE)(n)?n>1?n=1:n<0&&(n=0):n=void 0,n}var J8=function(){function n(i,r){return i.filter(function(m){return m!==r})}var t=[],e={};return{queue:function(i){var D,r=i.getSizeGroup();t=n(t,D=i).concat(D),clearTimeout(e[r]),e[r]=setTimeout(function(){var A,Q,se,we;A=r,Q=t.filter(Re=>Re._isVisible()&&Re.getSizeGroup()===A),se=Math.min.apply(null,Q.map(Re=>Re.getSizeGroupLayout().radius)),we=Q.filter(Re=>Re.getSizeGroupLayout().radius===se),Q.forEach(Re=>Re.render({force:!0,sizeGroupLayout:we.length?we[0].getSizeGroupLayout():{}}))})},remove:function(i){(t=n(t,i)).length||(e={})}}}(),Jb=Td.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,y.l)(!0,{},this.callBase(),{piePercentage:q8(this._themeManager.getOptions("diameter")),minPiePercentage:q8(this._themeManager.getOptions("minDiameter"))})},_customChangesOrder:["CENTER_TEMPLATE"],_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT",centerTemplate:"CENTER_TEMPLATE"},_change_CENTER_TEMPLATE(){this._renderCenterTemplate()},_disposeCore:function(){J8.remove(this),this.callBase(),this._centerTemplateGroup.linkOff().dispose()},_groupSeries:function(){var n=this.series;this._groupsData={groups:[{series:n,valueOptions:{valueType:"numeric"}}],argumentOptions:n[0]&&n[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var n=(new po).setCodomain(360,0);return{getTranslator:function(){return n},setBusinessRange:function(t){n.setDomain(t.min,t.max)}}},_populateBusinessRange:function(){this.series.map(function(n){var t=new as;return t.addRange(n.getRangeData().val),n.getValueAxis().setBusinessRange(t),t})},_specialProcessSeries:function(){(0,O.S6)(this.series,function(n,t){t.arrangePoints()})},_checkPaneName:function(){return!0},_processSingleSeries:function(n){this.callBase(n),n.arrangePoints()},_handleSeriesDataUpdated:function(){var n=0;this.series.forEach(function(t){n=Math.max(t.getPointsCount(),n)}),this.series.forEach(function(t){t.setMaxPointsCount(n)}),this.callBase()},_getLegendOptions:function(n){var t=this.callBase(n),e=t.legendData;return e.argument=n.argument,e.argumentIndex=n.argumentIndex,e.points=[n],t},_getLegendTargets:function(){var n=this,t={};(n.series||[]).forEach(function(i){i.getPoints().forEach(function(r){var m=r.argument.valueOf(),D=i.getPointsByArg(m).indexOf(r),A=m.valueOf().toString()+D;t[A]=t[A]||[];var N=t[A].push(r);r.index=t[A][N-2]?t[A][N-2].index:Object.keys(t).length-1,r.argumentIndex=D})});var e=[];return(0,O.S6)(t,function(i,r){r.forEach(function(m,D){if(0!==D){var A=e[e.length-1];A.legendData.points.push(m),A.visible||(A.visible=m.isVisible())}else e.push(n._getLegendOptions(m))})}),e},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(n,t){var e,i=this._canvas,r=!1;return e=this.layoutManager.applyPieChartSeriesLayout(i,n,!0),n.forEach(function(m){m.correctPosition(e,i),r=m.drawLabelsWOPoints()||r}),r&&(e=this.layoutManager.applyPieChartSeriesLayout(i,n,t.hideLayoutLabels)),n.forEach(function(m){m.hideLabels()}),this._sizeGroupLayout={x:e.centerX,y:e.centerY,radius:e.radiusOuter,drawOptions:t},e},_getLayoutSeriesForEqualPies:function(n,t){var e=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(n,t);return n.forEach(function(r){r.correctPosition(i,e),r.drawLabelsWOPoints()}),this.layoutManager.correctPieLabelRadius(n,i,e),i},_updateSeriesDimensions:function(n){var i,r,m,t=this._getVisibleSeries(),e=t.length,D=n.sizeGroupLayout;e&&(m=D?this._getLayoutSeriesForEqualPies(t,D):this._getLayoutSeries(t,n),r=(m.radiusOuter-m.radiusInner-X8*(e-1))/e,i=m.radiusInner,this._setGeometry(m),t.forEach(function(A){A.correctRadius({radiusInner:i,radiusOuter:i+r}),i+=r+X8}))},_renderSeries:function(n,t,e){if(this._calculateSeriesLayout(n,t),!n.sizeGroupLayout&&this.getSizeGroup())return J8.queue(this),void this._clearCanvas();this._renderSeriesElements(n,e)},_createHtmlStructure(){this.callBase(),this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).linkOn(this._renderer.root,"center-template").css(ci(this._themeManager._font)).linkAppend()},_renderExtraElements(){this._requestChange(["CENTER_TEMPLATE"])},_renderCenterTemplate(){var n=this.option("centerTemplate"),t=this._centerTemplateGroup.clear();n&&(t.attr({visibility:"hidden"}),(n=this._getTemplate(n)).render({model:this,container:t.element,onRendered:()=>{var e=t,i=e.getBBox();e.move(this._center.x-(i.x+i.width/2),this._center.y-(i.y+i.height/2)),e.attr({visibility:"visible"})}}))},getInnerRadius(){return this._innerRadius},_getLegendCallBack:function(){var n=this,t=this._legend,e=this._getLegendTargets().map(function(i){return i.legendData});return function(i){e.forEach(function(r){var m=[],D=t.getActionCallback({index:r.id});n.series.forEach(function(A){var N=A.getPointsByKeys(r.argument,r.argumentIndex);m.push.apply(m,N)}),i&&i.argument===r.argument&&i.argumentIndex===r.argumentIndex&&m.push(i),D(function bq(n){var t=_q;return n.forEach(e=>{var i,r=null===(i=e.series)||void 0===i?void 0:i.getOptions(),m=e.fullState;"none"===r?.hoverMode&&(m&=~vq),"none"===r?.selectionMode&&(m&=~yq),t|=m}),xq[t]}(m))})}},_locateLabels(n){var e,i,t=0;do{i=this._adjustSeriesLabels("shift"===n),e=this._resolveLabelOverlapping(n)}while((e||i)&&++t<5)},_adjustSeriesLabels:function(n){return this.series.reduce((t,e)=>e.adjustLabels(n)||t,!1)},_applyExtraSettings:E.ZT,_resolveLabelOverlappingShift:function(){var n=this,t="anticlockwise"===n.option("segmentsDirection"),e=n.series.reduce(function(A,N){return(A[N.getOptions().label.position]||A.outside).push(N),A},{inside:[],columns:[],outside:[]}),i=!1;return e.inside.length>0&&(i=m(e.inside.reduce(function(A,N){return N.getVisiblePoints().reduce(function(Q,se){return Q.left.push(se),Q},A)},{left:[],right:[]}),D)||i),i=e.columns.reduce((A,N)=>m(r(N),D)||A,i),e.outside.length>0&&(i=m(e.outside.reduce(function(A,N){return r(N,A)},null),function(A,N){return Yi(A,-N,n._center)})||i),i;function r(A,N){return A.getVisiblePoints().reduce(function(Q,se){var we=lt(se.middleAngle);return(we<=90||we>=270?Q.right:Q.left).push(se),Q},N||{left:[],right:[]})}function m(A,N){var Q;return t&&(A.left.reverse(),A.right.reverse()),Q=nA_resolveLabelOverlappingInOneDirection(A.left,n._canvas,!1,!1,N),nA_resolveLabelOverlappingInOneDirection(A.right,n._canvas,!1,!1,N)||Q}function D(A,N){return{x:A.x,y:A.y-N}}},_setGeometry:function(n){var{centerX:t,centerY:e,radiusInner:i}=n;this._center={x:t,y:e},this._innerRadius=i},_disposeSeries(n){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:E.ZT,_renderTrackers:E.ZT,_trackerType:"PieTracker",_createScrollBar:E.ZT,_updateAxesLayout:E.ZT,_applyClipRects:E.ZT,_appendAdditionalSeriesGroups:E.ZT,_prepareToRender:E.ZT,_isLegendInside:E.ZT,_renderAxes:E.ZT,_shrinkAxes:E.ZT,_isRotated:E.ZT,_seriesPopulatedHandlerCore:E.ZT,_reinitAxes:E.ZT,_correctAxes:E.ZT,_getExtraOptions:function(){return{startAngle:this.option("startAngle"),innerRadius:this.option("innerRadius"),segmentsDirection:this.option("segmentsDirection"),type:this.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,O.S6)(["startAngle","innerRadius","segmentsDirection","type"],function(n,t){Jb.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"}),Jb.addPlugin(wf.core),Jb.addPlugin(wf.pieChart),(0,T.Z)("dxPieChart",Jb);let Q8=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.zk3,M._7s,M.Ye1,M.kZH,M.e1H,M.$Tm,M.dwQ,M.FZZ,M.gN6,M.IIk,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,g.Lz,g.ie,p.Cu],M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.zk3,M._7s,M.Ye1,M.kZH,M.e1H,M.$Tm,M.dwQ,M.FZZ,M.gN6,M.IIk,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,g.ie]}),n})();var Ap=function(n,t,e,i){var r=n._initProperties=n._initProperties||{},m=i?e:n[t];(!Object.prototype.hasOwnProperty.call(r,t)||i)&&(r[t]=m),n[t]=e},e9=new Date;function t9(n){return function t(e,i,r,m,D,A){var N,Q;function se(Ue,st,Ot){(0,P.gx)(t(e,i,r,m,st,Ot)).done(Ue.resolve)}for(m=m||[],e=e||[],N=D=D||0;N<e.length;N++){if(n&&N>D&&N%1e4==0&&new Date-e9>=300)return e9=new Date,Q=new P.BH,setTimeout(se(Q,N,!1),0),Q;var we=e[N];if(!A){if(m.unshift(we),r&&!1===i(m,N))return;if(we.children){var Re=t(we.children,i,r,m);if(n&&Re)return Q=new P.BH,Re.done(se(Q,N,!0)),Q}}if(A=!1,!r&&!1===i(m,N))return;m.shift(),e[N]!==we&&N--}}}var tl=t9(!1),Af=t9(!0);function ry(n,t){if(n&&(0,w.$K)(t))for(var e=0;e<n.length;e++){var i=n[e];if(i.name===t||i.caption===t||i.dataField===t||i.index===t)return e}return-1}function _P(n,t){var i={value:n,valueText:n==n&&Va.Z.format(n,t.format)||""};return t.customizeText?t.customizeText.call(t,i):i.valueText}function vP(n){return function(t,e){var i=0,r=n(t),m=n(e),D=(0,w.$K)(r),A=(0,w.$K)(m);return D&&A&&(r>m?i=1:r<m&&(i=-1)),D&&!A&&(i=1),!D&&A&&(i=-1),i}}function Xu(n){for(var t=[],e=n.length-1;e>=0;e--)t.push(n[e].key||n[e].value);return t}function yP(n,t,e,i){e=e||0,i=i||"children",n.length&&t(n,e);for(var r=0;r<n.length;r++){var m=n[r];m[i]&&m[i].length&&yP(m[i],t,e+1,i)}}function CP(n,t){var e=n[t],i=0;for(n.headerName===t?i=n.path.length:n.headerName&&n.headerName!==t&&n.oppositePath?i=n.oppositePath.length:(0,O.S6)(("columns"===t?n.columnExpandedPaths:n.rowExpandedPaths)||[],function(m,D){i=Math.max(i,D.length)});e[i+1]&&e[i].expanded;)i++;return i}function n9(n,t,e,i){var r=[];return Object.keys(t||[]).forEach(function(m){if(!m||0!==m.indexOf("__")){for(var we,D=1,A=e.length?e+"."+m:m,N=i[A],Q=(0,Go.vb)(A),se=t[m];!(0,w.$K)(se)&&n[D];)se=Q(n[D]),D++;!N&&(0,w.$K)(se)&&(N=(0,w.dt)(se)),we=[{dataField:A,dataType:N,groupName:"date"===N?m:void 0,groupInterval:void 0,displayFolder:e}],"date"===N?we=we.concat(function Oq(n){return(0,O.UI)(["year","quarter","month"],function(t,e){return(0,y.l)({},n,{groupInterval:t,groupIndex:e})})}(we[0])):"object"===N&&(we=n9(n,se,A,i)),r.push.apply(r,we)}}),r}function i9(n,t){var e=r9(t);return n9(n,n[0],"",e)}function r9(n){var t={};return(0,O.S6)(n,function(e,i){t[i.dataField]=t[i.dataField]||i.dataType}),t}var Dq={month:function(n){return zo.Z.getMonthNames()[n-1]},quarter:function(n){return zo.Z.format(new Date(2e3,3*n-1),"quarter")},dayOfWeek:function(n){return zo.Z.getDayNames()[n]}};function o9(n){if("date"===n.dataType)n.format||Ap(n,"format",Dq[n.groupInterval]);else if("number"===n.dataType){var t=(0,w.kE)(n.groupInterval)&&n.groupInterval>0&&n.groupInterval;t&&!n.customizeText&&Ap(n,"customizeText",function(e){var r=Va.Z.format(e.value+t,n.format);return e.valueText&&r?e.valueText+" - "+r:""})}}function oy(n,t){var e=[];t=t||[];for(var i=0;i<t.length;i++)e.push((0,y.l)({},n[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[t[i]]}));return e}var a9={createDrillDownDataSource:function(n,t){var e=this.getDrillDownItems(n,t);function i(m){return function(D){var A;return A=new P.BH,(0,P.gx)(e).done(function(N){new Zb.Z(N)[m](D).done(A.resolve).fail(A.reject)}).fail(A.reject),A}}return new W0.o({load:i("load"),totalCount:i("totalCount"),key:this.key()})}};function s9(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Pp=u(5365),Tq=u(7954),xP=u(9853),Iq=u(9006),Mq=u(1937),Aq=u(4562),l9=u(2701),Pq=ar.Z.inherit(function(){var n={year:function(rn){return rn&&rn.getFullYear()},quarter:function(rn){return rn&&Math.floor(rn.getMonth()/3)+1},month:function(rn){return rn&&rn.getMonth()+1},day:function(rn){return rn&&rn.getDate()},dayOfWeek:function(rn){return rn&&rn.getDay()}};function t(rn){return-1!==rn.indexOf(".")?(0,Go.vb)(rn):function(Ft){return Ft[rn]}}function e(rn){return function(Ft){var qt=rn(Ft);return qt&&!(qt instanceof Date)&&(qt=xs.Z.deserializeDate(qt)),qt}}function i(rn){(0,O.S6)(rn||[],function(Ft,qt){var un,In,Yn,gi,Kn=qt.dataField,ai=qt.levels;if(!qt.selector){if(gi=Kn?t(Kn):function(Ki){return Ki},ai&&i(ai),"date"===qt.dataType){In=n[qt.groupInterval];var Ci=e(gi);un=function(Ki){var Bi=Ci(Ki);return In?In(Bi):Bi}}else"number"===qt.dataType?(Yn=(0,w.kE)(qt.groupInterval)&&qt.groupInterval>0&&qt.groupInterval,un=function(Ki){var Bi=gi(Ki);return(0,w.HD)(Bi)&&(Bi=Number(Bi)),Yn?Math.floor(Bi/Yn)*Yn:Bi}):un=gi;o9(qt),Ap(qt,"selector",un)}})}function r(rn,Ft,qt,un){var In=[0],Yn="rows"===un?Ft.rowExpandedPaths:Ft.columnExpandedPaths;return function gi(Ci,Ki,Bi,ri,Fi){var fr,_r,Fr,Vr,zr,co,Gi=Ki.dimensions[ri],or=Ki.expandedPathsHash;Gi&&(fr=Gi.selector(Ki.data),Fr=Bi,(co=(zr=Ki.childrenHash)[Vr=Fi=void 0!==Fi?Fi+"/./"+fr:fr+""])||(co={value:fr,index:zr.length++},zr[Vr]=co,Fr.push(co)),Ci.push((_r=co).index),(or&&or[Fi]||Gi.expanded)&&(_r.children||(_r.children=[]),gi(Ci,Ki,_r.children,ri+1,Fi)))}(In,{data:rn,childrenHash:qt[un+"Hash"],dimensions:Ft[un],expandedPathsHash:Ft.headerName!==un&&Yn&&Yn.hash},qt[un],Ft.headerName===un?Ft.path.length:0),In}function m(rn,Ft,qt,un){var Kn,Yn,ai,gi,In=[],Ci=r(rn,un,qt,"rows"),Ki=r(rn,un,qt,"columns");for(Yn=0;Yn<Ci.length;Yn++)for(Ft[ai=Ci[Yn]]=Ft[ai]||[],Kn=0;Kn<Ki.length;Kn++)In.push(Ft[ai][gi=Ki[Kn]]=Ft[ai][gi]||[]);return In}function D(rn){if(rn){var Ft=rn.hash={};rn.forEach(function(qt){var un=qt.map(function(In){return In+""}).join("/./");Ft[un]=!0})}}function A(rn){rn.rows=rn.rows||[],rn.columns=rn.columns||[],rn.filters=rn.filters||[],D(rn.columnExpandedPaths),D(rn.rowExpandedPaths),i(rn.columns),i(rn.rows),i(rn.values),i(rn.filters)}function N(rn){return"custom"===rn.summaryType?(rn.calculateCustomSummary=rn.calculateCustomSummary||E.ZT,{seed:function(){var Ft={summaryProcess:"start",totalValue:void 0};return rn.calculateCustomSummary(Ft),Ft},step:function(Ft,qt){return Ft.summaryProcess="calculate",Ft.value=qt,rn.calculateCustomSummary(Ft),Ft},finalize:function(Ft){return Ft.summaryProcess="finalize",delete Ft.value,rn.calculateCustomSummary(Ft),Ft.totalValue}}):l9.bG[rn.summaryType]||l9.bG.count}function Q(rn,Ft,qt){for(var un=0;un<rn.length;un++)for(var In=rn[un],Kn=In.selector(qt),Yn=N(In),ai="function"==typeof Yn.seed,gi=0;gi<Ft.length;gi++){var Ci=Ft[gi];Ci.length<=un&&(Ci[un]=ai?Yn.seed():Yn.seed),void 0===Ci[un]?Ci[un]=Kn:(0,w.$K)(Kn)&&(Ci[un]=Yn.step(Ci[un],Kn))}}function se(rn,Ft){var qt=rn&&rn.valueOf(),un=Ft&&Ft.valueOf();if(Array.isArray(rn)){Ft=Ft||[];for(var In=0;In<rn.length;In++)if((qt=rn[In]&&rn[In].valueOf())!==(un=Ft[In]&&Ft[In].valueOf()))return!1;return!0}return qt===un}function we(rn){var Ft=[];return(0,O.S6)(rn,function(qt,un){var In=un.filterValues||[];un.groupName&&(0,w.kE)(un.groupIndex)||In.length&&Ft.push(function(Yn){for(var ai=un.levels?function(Ki,Bi){var ri=[];return(0,O.S6)(Ki,function(Fi,Gi){ri.push(Gi.selector(Bi))}),ri}(un.levels,Yn):un.selector(Yn),gi=!1,Ci=0;Ci<In.length;Ci++)if(se(In[Ci],ai)){gi=!0;break}return"exclude"===un.filterType?!gi:gi})}),Ft}function Re(rn){var Ft=we(rn.rows).concat(we(rn.columns)).concat(we(rn.filters)),qt=rn[rn.headerName],un=rn.path;return qt&&Ft.push(function(In){for(var Kn,Yn=0;Yn<un.length;Yn++)if(Kn=qt[Yn].selector(In),(0,Go.Ex)(Kn,!0)!==(0,Go.Ex)(un[Yn],!0))return!1;return!0}),function(In){for(var Kn=0;Kn<Ft.length;Kn++)if(!Ft[Kn](In))return!1;return!0}}function st(rn,Ft){var qt=rn.filter();return rn.store()instanceof uF.Z&&qt?(qt=wn(qt,Ft),(0,If.Z)(rn.items()).filter(qt).toArray()):rn.items()}function Ot(rn,Ft,qt){var un=new P.BH,In=function(Yn){rn.store()instanceof Zb.Z&&(Yn.storeLoadOptions.filter=wn(Yn.storeLoadOptions.filter,Ft))};if(rn.on("customizeStoreLoadOptions",In),!rn.isLoaded()||qt){var Kn=qt?rn.load():rn.reload();(0,P.gx)(Kn).done(function(){Ot(rn,Ft).done(function(){un.resolve(st(rn,Ft))}).fail(un.reject)}).fail(un.reject)}else un.resolve(st(rn,Ft));return un.always(function(){rn.off("customizeStoreLoadOptions",In)})}function Kt(rn,Ft){Ft.forEach(function(qt){if(qt.dataField&&"date"===qt.dataType){var un=e(t(qt.dataField));rn[qt.dataField]=function(In){return un(In)}}})}function sn(rn){var Ft={};return Array.isArray(rn)?Kt(Ft,rn):rn&&["rows","columns","filters"].forEach(function(qt){rn[qt]&&Kt(Ft,rn[qt])}),Ft}function wn(rn,Ft){if(!Array.isArray(rn))return rn;rn=rn.slice(0),(0,w.HD)(rn[0])&&(rn[1]instanceof Date||rn[2]instanceof Date)&&(rn[0]=Ft[rn[0]]);for(var qt=0;qt<rn.length;qt++)rn[qt]=wn(rn[qt],Ft);return rn}return{ctor:function(rn){this._progressChanged=rn.onProgressChanged||E.ZT,this._dataSource=new W0.o(rn),this._dataSource.paginate(!1)},getFields:function(rn){var Ft=this._dataSource,qt=new P.BH;return Ot(Ft,sn(rn)).done(function(un){qt.resolve(i9(un,rn))}).fail(qt.reject),qt},key:function(){return this._dataSource.key()},load:function(rn){var Ft=this,qt=Ft._dataSource,un=new P.BH;return A(rn),Ot(qt,sn(rn),rn.reload).done(function(In){(0,P.gx)(function Ue(rn,Ft,qt){var Kn,Yn,un={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},In=[],ai=new P.BH,gi=0,Ci=Re(Ft);return function Ki(){for(var Bi=new Date,ri=gi;gi<rn.length;gi++){if(gi>ri&&gi%1e4==0&&new Date-Bi>=300)return qt(gi/rn.length),void setTimeout(Ki,0);Ci(Yn=rn[gi])&&(Kn=m(Yn,In,un,Ft),Q(Ft.values,Kn,Yn))}var Gi;Gi=In,(0,O.S6)(Ft.values,function(or,fr){var _r=N(fr);_r.finalize&&(0,O.S6)(Gi,function($r,Fr){(0,O.S6)(Fr,function(Vr,zr){zr&&void 0!==zr[or]&&(zr[or]=_r.finalize(zr[or]))})})}),qt(1),ai.resolve({rows:un.rows,columns:un.columns,values:In,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),ai}(In,rn,Ft._progressChanged)).done(un.resolve)}).fail(un.reject),un},filter:function(){var rn=this._dataSource;return rn.filter.apply(rn,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(rn,Ft){Ft=Ft||{},A(rn=rn||{});for(var In,qt=[],un=this._dataSource.items(),Kn=Ft.maxRowCount,Yn=Ft.customColumns,ai=Re(rn),gi=Re({rows:oy(rn.rows,Ft.rowPath),columns:oy(rn.columns,Ft.columnPath),filters:[]}),Ci=0;Ci<un.length;Ci++){if(gi(un[Ci])&&ai(un[Ci])){if(Yn){In={};for(var Ki=0;Ki<Yn.length;Ki++)In[Yn[Ki]]=un[Ci][Yn[Ki]]}else In=un[Ci];qt.push(In)}if(Kn>0&&qt.length===Kn)break}return qt}}}()).include(a9),kq=function n(t,e,i){t=t||[],i=i||0;for(var r=0;r<t.length;r++){var m=t[r];e(m,i),m&&m.items&&m.items.length&&n(m.items,e,i+1)}};function d9(n,t){var e=[];return(0,O.S6)(n,function(i,r){e.push({selector:r.dataField,groupInterval:r.groupInterval,desc:t&&"desc"===r.sortOrder,isExpanded:i<n.length-1})}),e}function c9(n,t,e,i){return[[n,i?"<":">=",e],i?"or":"and",[n,i?">=":"<",e+t]]}function h9(n,t){var e=[];return n.searchValue?[n.dataField,"contains",n.searchValue]:(t="exclude"===n.filterType?t||"and":t||"or",(0,O.S6)(n.filterValues,function(i,r){var m=[];Array.isArray(r)?n.levels&&n.levels.length&&(m=h9({filterValues:r,filterType:n.filterType,levels:n.levels},"and")):m=function Lq(n,t){var e=function Rq(n){var t=n.dataField,e=n.groupInterval;return"date"===n.dataType&&"string"==typeof e&&("quarter"===e.toLowerCase()&&(e="Month"),t=t+"."+s9(e)),t}(n),i="exclude"===n.filterType,r=[e,i?"<>":"=",t];return(0,w.$K)(n.groupInterval)&&("string"==typeof n.groupInterval&&"quarter"===n.groupInterval.toLowerCase()?r=c9(e,3,3*(t-1)+1,i):"number"==typeof n.groupInterval&&"date"!==n.dataType&&(r=c9(e,n.groupInterval,t,i))),r}(n.levels?n.levels[i]:n,r),m.length&&(e.length&&e.push(t),e.push(m))}),e)}function p9(n){var t=[];return(0,O.S6)(n,function(e,i){var r=h9(i);if(!r.length)return[];t.length&&t.push("and"),t.push(r)}),1===t.length&&(t=t[0]),t}function g9(n,t){var i=function(r){return r&&r.length};return i(n)&&i(t)?[n,"and",t]:i(n)?n:t}function f9(n,t,e,i,r){n[e]=n[e]||[],n[e][i]=n[e][i]||[],(0,w.$K)(n[e][i][r])||(n[e][i][r]=t)}function Fq(n,t){return t&&"number"===t.dataType&&(0,w.HD)(n)?Number(n):!t||"date"!==t.dataType||t.groupInterval||n instanceof Date?n:xs.Z.deserializeDate(n)}function Vq(n,t,e,i){var r=[],m=[],D=i.rowHash,A=i.columnHash;function Q(se,we,Re,Ue,st){var Kt,wn,Ft,Ot=i[we+"Hash"],rn=Re.slice(0,Ue+1).join("/");return void 0!==Ot[rn]?wn=Ot[rn]:(wn={value:Fq(se.key,st),index:i[we+"Index"]++,displayText:se.displayText},Ft=Re.slice(0,Ue).join("/"),(Ue>0&&void 0!==Ot[Ft]?(Kt=Ot[Ft]).children=Kt.children||[]:i[we+"s"]).push(wn),Ot[rn]=wn),wn}return t&&t.summary&&(0,O.S6)(t.summary,function(se,we){f9(i.values,we,i.grandTotalRowIndex,i.grandTotalColumnIndex,se)}),t&&t.groupCount>=0&&((n=[...Array(e.rows.length?e.rowSkip:e.columnSkip)].concat(n)).length=t.groupCount),kq(n,function(se,we){var st,Ot,Re=we>=e.rows.length?e.rows.length:we,Ue=we>=e.rows.length?we-e.rows.length:0;if(!(we>=e.rows.length&&Ue>=e.columns.length)){we<e.rows.length&&(m=[]),we>=e.rows.length?se?(m[Ue]=se.key+"",st=Q(se,"column",m,Ue,e.columns[Ue]),Ot=D[r.slice(0,Re+1).join("/")]):i.columns.push({}):se?(r[Re]=se.key+"",Ot=Q(se,"row",r,Re,e.rows[Re]),st=A[m.slice(0,Ue+1).join("/")]):i.rows.push({});var Kt=Ot&&Ot.index||i.grandTotalRowIndex,sn=st&&st.index||i.grandTotalColumnIndex;(0,O.S6)(se&&se.summary||[],function(wn,rn){f9(i.values,rn,Kt,sn,wn)})}}),i}function AD(n){return(n||[]).filter(t=>t.filterValues&&t.filterValues.length||t.searchValue)}function m9(n,t){if(n.headerName){if(t===n.headerName)return n.path.length;if(n.oppositePath)return n.oppositePath.length}return 0}function bP(n,t,e,i){var r=[],m=e>i?0:i,D=n.headerName!==t?n[t].slice(m,e):[],A="rows"===t?n.rowExpandedPaths:n.columnExpandedPaths;return(0,O.S6)(D,function(N,Q){var se=[];(0,O.S6)(A,function(we,Re){if(Re=Re.slice(m,e),N<Re.length){var Ue=Re[N];-1===se.indexOf(Ue)&&se.push(Ue)}}),se.length&&r.push((0,y.l)({},Q,{filterType:"include",filterValues:se}))}),r}function _9(n,t,e,i,r,m){var se,A="columns"===t?"rows":"columns",N=n[t],Q=[];if((("columns"===t?n.columnExpandedPaths:n.rowExpandedPaths)||[]).length)for(var we=e;we<i+1;we++)(se={filters:r.concat(bP(n,t,we,m))})[t]=N.slice(e,we+1),se[A]=[],Q.push((0,y.l)({},n,se));else(se={filters:r})[t]=N.slice(e,i+1),se[A]=[],Q.push((0,y.l)({},n,se));return Q[0].includeTotalSummary=!0,Q}function v9(n){var t=0;return(0,O.S6)(n,function(e,i){if(!i.expanded)return t=e,!1}),t}function PD(n){(0,O.S6)(n||[],function(t,e){var i=e.levels;i&&PD(i),o9(e)})}const zq=ar.Z.inherit({ctor:function(n){this._dataSource=new W0.o(n),this._store=this._dataSource.store()},getFields:function(n){var t=new P.BH;return this._store.load({skip:0,take:20}).done(function(e){var i=(0,zb.r6)(e);t.resolve(i9(i.data,n))}).fail(t.reject),t},key:function(){return this._store.key()},load:function(n){var t=this,e=new P.BH,i={rows:[],columns:[],values:[],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},r=function Hq(n){var t=CP(n,"rows"),e=CP(n,"columns"),i=n.filters||[],r=m9(n,"columns"),m=v9(n.columns),D=v9(n.rows),A=m9(n,"rows"),N=[],Q=_9(n,"columns",r,e,i=i.concat(AD(n.rows)).concat(AD(n.columns)).concat(function Nq(n){return oy(n[n.headerName],n.path).concat(oy(n["rows"===n.headerName?"columns":"rows"],n.oppositePath||[]))}(n)),m);if(n.rows.length&&n.columns.length){"rows"!==n.headerName&&(N=N.concat(Q));for(var se=A;se<t+1;se++)for(var we=n.rows.slice(A,se+1),Re=bP(n,"rows",se,D),Ue=r;Ue<e+1;Ue++){var st=(0,y.l)({},n,{columns:n.columns.slice(r,Ue+1),rows:we,filters:i.concat(bP(n,"columns",Ue,m)).concat(Re)});N.push(st)}}else N=n.columns.length?Q:_9(n,"rows",A,t,i,D);return N}(n),m=[];return PD(n.rows),PD(n.columns),PD(n.filters),(0,O.S6)(r,function(D,A){m.push(t._store.load(function Bq(n,t,e){var i=p9(n.filters),r=d9(n.rows,n.rowTake).concat(d9(n.columns,n.columnTake)),m={groupSummary:[],totalSummary:[],group:r.length?r:void 0,take:r.length?void 0:1};return n.rows.length&&n.rowTake?(m.skip=n.rowSkip,m.take=n.rowTake,m.requireGroupCount=!0):n.columns.length&&n.columnTake&&!e&&(m.skip=n.columnSkip,m.take=n.columnTake,m.requireGroupCount=!0),t&&(i=g9(i,t)),i.length&&(m.filter=i),(0,O.S6)(n.values,function(D,A){var N={selector:A.dataField,summaryType:A.summaryType||"count"};m.groupSummary.push(N),n.includeTotalSummary&&m.totalSummary.push(N)}),m}(A,t.filter(),n.rows.length)))}),P.gx.apply(null,m).done(function(){var D=m.length>1?arguments:[arguments];(0,O.S6)(D,function(A,N){var Q=(0,zb.r6)(N[0],N[1]);Vq(Q.data,Q.extra,r[A],i)}),e.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})}).fail(e.reject),e},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(n,t){var e=this._store,r=p9(oy((n=n||{}).rows,(t=t||{}).rowPath).concat(oy(n.columns,t.columnPath)).concat(AD(n.rows)).concat(n.filters||[]).concat(AD(n.columns)));return new W0.o({load:function(m){return e.load((0,y.l)({},m,{filter:g9(r,m.filter),select:t.customColumns}))}})}});function y9(n,t,e,i){var r=t[e]||[],D=[];yP(n[e],function(A,N){var se=D[N]=D[N]||function Uq(n,t,e,i,r){var m=r?"asc":n.sortOrder,D=function Kq(n,t){var e="text";return"none"===n?e="index":(t||"displayText"!==n)&&(e="value"),e}(n.sortBy,r),A=n.sortingMethod?function(se,we){return n.sortingMethod(se,we)}:vP(function(se){return se[D]}),N=!r&&function Zq(n,t,e,i){var r=t.values,m=ry(e.values,n.sortBySummaryField),D="rows"===i,N=D?t.grandTotalRowIndex:t.grandTotalColumnIndex,Q=n.sortBySummaryPath||[],se=Q.length?function Gq(n,t){var e=null,i=(t||[]).join(".");return i.length&&tl(n,function(r){var m=r[0],D=Xu(r).join("."),A=(0,O.UI)(r,function(N){return N.text}).reverse().join(".");if(i===D||m.key&&A===i)return e=r[0].index,!1}),e}(D?t.columns:t.rows,Q):N;if(r&&r.length&&m>=0&&(0,w.$K)(se))return function(we){var st=((r[D?we.index:se]||[[]])[D?se:we.index]||[])[m];return(0,w.$K)(st)?st:null}}(n,t,e,i),Q=N&&vP(N);return function(se,we){var Re=Q&&Q(se,we)||A(se,we);return"desc"===m?-Re:Re}}(r[N]||{},n,t,e,i);A.sort(se)},t.headerName===e?t.path.length:0)}var jq=u(8379),$q=(0,mi.Jj)(),Yq=ar.Z.inherit(function(){var n='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',t="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS";function e(ri,Fi){var Gi=new P.BH,or=ri.beforeSend,fr={url:ri.url,dataType:"text",data:Fi,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,w.mf)(or)&&or(fr),function Eq(n){return Qv.Z.sendRequest(n)}(fr).fail(function(){Gi.reject(arguments)}).done(function(_r){var Fr,$r=new $q.DOMParser;try{try{Fr=$r.parseFromString(_r,"text/xml")}catch{Fr=void 0}if(!Fr||Fr.getElementsByTagName("parsererror").length||0===Fr.childNodes.length)throw new Mb.R0.Error("E4023",_r)}catch(Vr){Gi.reject({statusText:Vr.message,stack:Vr.stack,responseText:_r})}Gi.resolve(Fr)}),Gi}function i(){var ri=(0,jq.D)();return void 0!==ri?(0,na.WU)("<LocaleIdentifier>{0}</LocaleIdentifier>",ri):""}function r(ri){return(ri.hierarchyName||ri.dataField)+".[All]"}function m(ri){var Fi=ri.dataField+".allMembers",Gi=ri.searchValue;return Gi&&(Gi=Gi.replace(/'/g,"''"),Fi="Filter("+Fi+", instr("+ri.dataField+".currentmember.member_caption,'"+Gi+"') > 0)"),Fi}function D(ri){var Fi=ri.join(",");return ri.length>1?(0,na.WU)("CrossJoin({0})",Fi):Fi}function A(ri,Fi,Gi,or,fr,_r,$r,Fr){for(var Kr,Io,Wo,Vr=[],zr=_r[$r],co=[],Do=or;Do<=Fi;Do++){var ko=zr[Do],ha=ko.dataField,Ua=zr[Do-1]&&zr[Do-1].hierarchyName,Oa=ko.hierarchyName,Za=!Oa||!zr[Do+1]||zr[Do+1].hierarchyName!==Oa,vl=ri.length+Gi+or;if(Kr=null,co.push(ko),Do<ri.length)Za&&(Kr="("+ha+"."+un(ri[Do],ha)+")");else if(Do<=vl)if(0===Do&&0===Gi){var La=r(zr[or]);Kr=Oa?La+","+zr[or].dataField:m(zr[or])}else Oa?(Wo=un(fr[fr.length-1]),(Za||Do===vl)&&(Ua===Oa?(fr.length&&(Io=zr[fr.length-1]),(!Io||Io.hierarchyName!==Oa)&&(Io=zr[Do-1],Wo=""),Kr="Descendants({"+(Wo||Io.dataField)+"}, "+ha+", SELF_AND_BEFORE)"):Kr=m(ko))):Kr=m(ko);else(!Oa||Ua!==Oa)&&(Kr="("+r(ko)+")");Kr&&(Kr=(0,na.WU)("{{0}}",Kr),Fr&&(Kr=(0,na.WU)("Order({0}, {1}, {2})",Kr,(ko.hierarchyName||ko.dataField)+("displayText"===ko.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE"),"desc"===ko.sortOrder?"DESC":"ASC")),Vr.push(Kr))}return D(Vr)}function N(ri,Fi,Gi,or,fr,_r,$r,Fr,Vr,zr){var Io,co=-1,Kr=_r[$r];do{co++,Io=Fi.length+co+or;var Wo=A(Fi,Gi,co,or,fr,_r,$r,Vr);!Vr&&!zr&&(Wo=(0,na.WU)("NonEmpty({0}, {1})",Wo,Fr)),ri.push(Wo)}while(Kr[Io]&&Kr[Io+1]&&Kr[Io].expanded)}function Q(ri,Fi,Gi,or){return Fi.push((0,na.WU)("{0} {1} as {2}",or=or||"set",Gi=Gi||"[DX_Set_"+Fi.length+"]",ri)),Gi}function se(ri,Fi,Gi,or,fr){var ha,Ua,_r=ri[Fi],$r=[],Fr=[],Vr=[],zr=0,co=0,Kr=[],Io=(0,na.WU)("{{0}}",Gi.join(","));if(_r&&_r.length){ri.headerName===Fi?zr=(Fr=ri.path).length:ri.headerName&&ri.oppositePath?zr=(Fr=ri.oppositePath).length:Vr=("columns"===Fi?ri.columnExpandedPaths:ri.rowExpandedPaths)||Vr,co=CP(ri,Fi),N($r,[],co,zr,Fr,ri,Fi,Io,"rows"===Fi?ri.rowTake:ri.columnTake,ri.totalsOnly),(0,O.S6)(Vr,function(Oa,Za){N($r,Za,co,zr,Za,ri,Fi,Io)});for(var Wo=co;Wo>=Fr.length;Wo--)_r[Wo].hierarchyName&&(fr.visibleLevels[_r[Wo].hierarchyName]=fr.visibleLevels[_r[Wo].hierarchyName]||[],fr.visibleLevels[_r[Wo].hierarchyName].push(_r[Wo].dataField))}if($r.length){var Do=(Ua=(ha=$r).join(","),ha.length>1?"Union("+Ua+")":Ua);"rows"===Fi&&ri.rowTake&&(Do=(0,na.WU)("Subset({0}, {1}, {2})",Do,ri.rowSkip>0?ri.rowSkip+1:0,ri.rowSkip>0?ri.rowTake:ri.rowTake+1)),"columns"===Fi&&ri.columnTake&&(Do=(0,na.WU)("Subset({0}, {1}, {2})",Do,ri.columnSkip>0?ri.columnSkip+1:0,ri.columnSkip>0?ri.columnTake:ri.columnTake+1));var ko="[DX_".concat(Fi,"]");Kr.push(Q(Do,or,ko)),ri.totalsOnly&&Kr.push(Q("COUNT(".concat(ko,")"),or,"[DX_".concat(Fi,"_count]"),"member"))}return"columns"===Fi&&Gi.length&&!ri.skipValues&&Kr.push(Io),(0,na.WU)("{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",D(Kr),Fi)}function we(ri){var Fi=[];return(0,O.S6)(ri,function(Gi,or){var Fr,fr=or.dataField,_r=[],$r=or.filterValues||[];or.hierarchyName&&(0,w.kE)(or.groupIndex)||((0,O.S6)($r,function(Vr,zr){var co=fr+"."+un(Array.isArray(zr)?zr[zr.length-1]:zr,fr);"exclude"===or.filterType&&(_r.push(co+".parent"),co="Descendants("+co+")"),_r.push(co)}),$r.length&&(Fr=(0,na.WU)("{{0}}",_r.join(",")),"exclude"===or.filterType&&(Fr="Except("+m(or)+","+Fr+")"),Fi.push(Fr)))}),Fi.length?D(Fi):""}function Re(ri,Fi,Gi,or){var fr="["+or+"]";return(0,O.S6)([ri,Fi,Gi],function(_r,$r){$r&&(fr=(0,na.WU)("(SELECT {0} FROM {1})",$r+"on 0",fr))}),fr}function Ue(ri,Fi,Gi,or,fr,_r,$r){var Fr=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},Vr="",zr=(Fi.length?"with "+Fi.join(" "):"")+" ";if(ri.length){var co;if(Fr.totalsOnly){var Kr=[];or.length&&Kr.push("[DX_rows_count]"),Gi.length&&Kr.push("[DX_columns_count]"),co="{".concat(Kr.join(","),"} on columns")}else co=ri.join(",");Vr=zr+(0,na.WU)(t,Re(we(Gi),we(or),we(fr||[]),$r),_r.length?(0,na.WU)("WHERE ({0})",_r.join(",")):"",co)}return Vr}function st(ri,Fi){return(0,O.UI)(Fi,function(Gi){return(0,w.HD)(Gi.expression)&&Q(Gi.expression,ri,Gi.dataField,"member"),Gi.dataField})}function Ot(ri,Fi,Gi,or){(0,O.S6)(or,function(fr,_r){var $r=Fi[Gi][fr];(!$r.hierarchyName||$r.hierarchyName!==Fi[Gi][fr+1].hierarchyName)&&ri.push($r.dataField+"."+un(_r,$r.dataField))})}function Kt(ri,Fi,Gi){var or=ri.columns||[],fr=ri.rows||[],_r=ri.values&&ri.values.length?ri.values:[{dataField:"[Measures]"}],$r=[],Fr=[],Vr=[],zr=st(Fr,_r);return Gi.measureCount=ri.skipValues?1:_r.length,Gi.visibleLevels={},ri.headerName&&ri.path&&Ot($r,ri,ri.headerName,ri.path),ri.headerName&&ri.oppositePath&&Ot($r,ri,"rows"===ri.headerName?"columns":"rows",ri.oppositePath),(or.length||zr.length)&&Vr.push(se(ri,"columns",zr,Fr,Gi)),fr.length&&Vr.push(se(ri,"rows",zr,Fr,Gi)),Ue(Vr,Fr,or,fr,ri.filters,$r,Fi,ri)}function sn(ri,Fi,Gi){(0,O.S6)(Gi,function(or,fr){var _r=Fi[or];_r.hierarchyName&&(Fi[or+1]||{}).hierarchyName===_r.hierarchyName||ri.push(_r.dataField+"."+un(fr,_r.dataField))})}function wn(ri){return parseInt(ri,10)}function rn(ri,Fi){return Ft((ri.getElementsByTagName(Fi)||[])[0])}function Ft(ri){return ri&&(ri.textContent||ri.text||ri.innerHTML)||""}function qt(ri,Fi,Gi){for(var or=[],fr=[],_r=0,$r=[],Fr=ri.getElementsByTagName("Cell"),Vr={},zr=0;zr<Fr.length;zr++){var co=Fr[zr],Kr=co.getElementsByTagName("Value")[0],Io=Kr&&Kr.getElementsByTagName("Error")||[],Wo=0===Io.length?Ft(Kr):"#N/A",Do=parseFloat(Wo),ko=Wo-Do+1>0,ha=wn(co.getAttribute("CellOrdinal"));Io.length&&(Vr[Ft(Io[0].getElementsByTagName("ErrorCode")[0])]=Ft(Io[0].getElementsByTagName("Description")[0])),$r[ha]={value:ko?Do:Wo||null}}return(0,O.S6)(Fi[1],function(){var Ua=[];or.push(Ua),(0,O.S6)(Fi[0],function(){0==_r%Gi&&Ua.push(fr=[]),fr.push($r[_r]?$r[_r].value:null),_r++})}),Object.keys(Vr).forEach(function(Ua){Mb.R0.log("W4002",Vr[Ua])}),or}function un(ri,Fi){return ri&&(ri=(0,w.HD)(ri)&&-1!==ri.indexOf("&")?ri:"["+ri+"]",Fi&&0===ri.indexOf(Fi+".")&&(ri=ri.slice(Fi.length+1,ri.length))),ri}function In(ri,Fi,Gi,or){var fr=ri[Fi];return fr||(ri[Fi]=fr={}),!(0,w.$K)(fr.value)&&Gi&&(fr.text=Gi.caption,fr.value=Gi.value,fr.key=Fi||"",fr.levelName=Gi.levelName,fr.hierarchyName=Gi.hierarchyName,fr.parentName=Gi.parentName,fr.index=or,fr.level=Gi.level),fr}function Kn(ri,Fi){var Gi=[],or=ri.children&&(ri.children.length?ri.children:Object.keys(ri.children.grandTotalHash||{}).reduce((Fr,Vr)=>Fr.concat(ri.children.grandTotalHash[Vr].children),[])),fr=or&&or[0];if(fr&&(Fi[fr.hierarchyName]&&Fi[fr.hierarchyName].includes(fr.levelName)||!Fi[fr.hierarchyName]||0===fr.level)){var _r=or.filter(Fr=>Fr.hierarchyName===fr.hierarchyName);return _r.grandTotalHash=or.grandTotalHash,_r}if(fr)for(var $r=0;$r<or.length;$r++)or[$r].hierarchyName===fr.hierarchyName&&Gi.push.apply(Gi,Kn(or[$r],Fi));return Gi}function Yn(ri,Fi,Gi,or){var fr=[];(0,O.S6)(Fi,function(Fr,Vr){var zr={children:fr},co=(0,w.$K)(Gi)?Math.floor(Fr/Gi):Fr;(0,O.S6)(Vr,function(Kr,Io){zr=function(Wo,Do,ko){var ha=ko.children=ko.children||[],Ua=ha.hash=ha.hash||{},Oa=ha.grandTotalHash=ha.grandTotalHash||{};Do.parentName&&(ha=(ko=In(Ua,Do.parentName)).children=ko.children||[]);var Za=In(Ua,Do.name,Do,Wo);return Do.hasValue&&!Za.added&&(Za.index=Wo,Za.added=!0,ha.push(Za)),ko.value&&ko.parentName||!Do.parentName?Oa[ko.name]&&delete Oa[Do.parentName]:Oa[Do.parentName]=ko,Za}(co,Io,zr)})});var _r={children:fr};_r.children=Kn(_r,or);var $r=function(Fr,Vr){var zr;if(1===Fr.children.length&&""===Fr.children[0].parentName){zr=Fr.children[0].index;var co=Fr.children.grandTotalHash;Fr.children=Fr.children[0].children||[],Fr.children.grandTotalHash=co,Fr.children=Kn(Fr,Vr)}else 0===Fr.children.length&&(zr=0);return zr}(_r,or);return tl(_r.children,function(Fr){var Vr=Fr[0],zr=Kn(Vr,or);zr.length?Vr.children=zr:delete Vr.children,delete Vr.levelName,delete Vr.hierarchyName,delete Vr.added,delete Vr.parentName,delete Vr.level},!0),(0,O.S6)(_r.children||[],function(Fr,Vr){ri.push(Vr)}),$r}function ai(ri){var Fi=ri.getElementsByTagName("soap:Fault"),Gi=ri.getElementsByTagName("Fault"),or=(0,l.Z)([].slice.call(Gi.length?Gi:Fi)).find("Error");if(or.length){var fr=or.attr("Description"),_r=new Mb.R0.Error("E4000",fr);return Mb.R0.log("E4000",fr),_r}return null}function Ci(ri,Fi,Gi,or){var fr=[],_r="MEASURE"===Fi,$r=_r?"MEASUREGROUP_NAME":Fi+"_DISPLAY_FOLDER";return(0,O.S6)(ri.getElementsByTagName("row"),function(Fr,Vr){var zr="LEVEL"===Fi?rn(Vr,"HIERARCHY_UNIQUE_NAME"):void 0,co=rn(Vr,"LEVEL_NUMBER"),Kr=rn(Vr,$r);if(_r&&(Kr=or[Kr]||Kr),("0"!==co||"true"!==rn(Vr,Fi+"_IS_VISIBLE"))&&"2"!==rn(Vr,"DIMENSION_TYPE")){var Io=_r?"DX_MEASURES":rn(Vr,"DIMENSION_UNIQUE_NAME"),Wo=rn(Vr,Fi+"_UNIQUE_NAME");fr.push({dimension:Gi.names[Io]||Io,groupIndex:co?wn(co)-1:void 0,dataField:Wo,caption:rn(Vr,Fi+"_CAPTION"),hierarchyName:zr,groupName:zr,displayFolder:Kr,isMeasure:_r,isDefault:!!Gi.defaultHierarchies[Wo]})}}),fr}function Ki(ri){var Fi=(ri=ri.replace(/_x(....)_/g,function(Gi,or){return String.fromCharCode(parseInt(or,16))})).match(/\[.+?\]/gi);return Fi&&Fi.length&&(ri=Fi[Fi.length-1]),ri.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function Bi(ri,Fi){return Fi=(0,l.Z)("<div>").text(Fi).html(),e(ri,(0,na.WU)('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',Fi,ri.catalog,i()))}return{ctor:function(ri){this._options=ri},getFields:function(){var ri=this._options,Fi=ri.catalog,Gi=ri.cube,or=i(),fr=e(ri,(0,na.WU)(n,Fi,Gi,"MDSCHEMA_DIMENSIONS",or)),_r=e(ri,(0,na.WU)(n,Fi,Gi,"MDSCHEMA_MEASURES",or)),$r=e(ri,(0,na.WU)(n,Fi,Gi,"MDSCHEMA_HIERARCHIES",or)),Fr=e(ri,(0,na.WU)(n,Fi,Gi,"MDSCHEMA_LEVELS",or)),Vr=new P.BH;return(0,P.gx)(fr,_r,$r,Fr).then(function(zr,co,Kr,Io){e(ri,(0,na.WU)(n,Fi,Gi,"MDSCHEMA_MEASUREGROUPS",or)).done(function(Wo){var La,Do=(La={names:{},defaultHierarchies:{}},(0,O.S6)((0,l.Z)(zr).find("row"),function(){var xu=(0,l.Z)(this),Uy="2"===xu.children("DIMENSION_TYPE").text()?"DX_MEASURES":xu.children("DIMENSION_UNIQUE_NAME").text();La.names[Uy]=xu.children("DIMENSION_CAPTION").text(),La.defaultHierarchies[xu.children("DEFAULT_HIERARCHY").text()]=!0}),La),ko=Ci(Kr,"HIERARCHY",Do),ha=Ci(Io,"LEVEL",Do),Ua=function(vl){var La={};return(0,O.S6)(vl.getElementsByTagName("row"),function(xu,ed){La[rn(ed,"MEASUREGROUP_NAME")]=rn(ed,"MEASUREGROUP_CAPTION")}),La}(Wo),Oa=Ci(co,"MEASURE",Do,Ua).concat(ko),Za={};(0,O.S6)(ha,function(vl,La){Za[La.hierarchyName]=Za[La.hierarchyName]||[],Za[La.hierarchyName].push(La)}),(0,O.S6)(ko,function(vl,La){Za[La.dataField]&&Za[La.dataField].length>1&&(La.groupName=La.hierarchyName=La.dataField,Oa.push.apply(Oa,Za[La.hierarchyName]))}),Vr.resolve(Oa)}).fail(Vr.reject)}).fail(Vr.reject),Vr},load:function(ri){var _r,Fi=new P.BH,Gi=this._options,or={skipValues:ri.skipValues},fr=Kt(ri,Gi.cube,or);(ri.rowSkip||ri.rowTake||ri.columnTake||ri.columnSkip)&&(_r=Kt((0,y.l)({},ri,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),Gi.cube,{}));var $r=()=>{fr?(0,P.gx)(Bi(Gi,fr),_r&&Bi(Gi,_r)).done(function(Fr,Vr){var zr=ai(Fr)||Vr&&ai(Vr);if(zr)Fi.reject(zr);else{var co=function gi(ri,Fi){var Gi={columns:[],rows:[]},or=Fi.measureCount,fr=function(_r,$r){var Fr=[];for((0,O.S6)(_r.getElementsByTagName("Axis"),function(Vr,zr){var co=zr.getAttribute("name"),Kr=[],Io=0;0===co.indexOf("Axis")&&(0,w.kE)(wn(co.substr(4)))&&(Fr.push(Kr),(0,O.S6)(zr.getElementsByTagName("Tuple"),function(Wo,Do){var ed,ko=Do.childNodes,ha=0,Ua=[],Oa=$r?ko.length:ko.length-1;1===Fr.length&&Oa--,Kr.push(Ua);for(var vl=Oa;vl>=0;vl--){var La=ko[vl],xu=wn(rn(La,"LNum"));Ua[vl]={caption:rn(La,"Caption"),value:(ed=rn(La,"MEMBER_VALUE"),(0,w.kE)(ed)?parseFloat(ed):ed),level:xu,index:Io++,hasValue:!(ha||!xu&&0!==vl),name:rn(La,"UName"),hierarchyName:ko[vl].getAttribute("Hierarchy"),parentName:rn(La,"PARENT_UNIQUE_NAME"),levelName:rn(La,"LName")},ha+=xu}}))});Fr.length<2;)Fr.push([[{level:0}]]);return Fr}(ri,Fi.skipValues);return Gi.grandTotalColumnIndex=Yn(Gi.columns,fr[0],or,Fi.visibleLevels),Gi.grandTotalRowIndex=Yn(Gi.rows,fr[1],void 0,Fi.visibleLevels),Gi.values=qt(ri,fr,or),Gi}(Fr,or);Vr&&function(Kr,Io,Wo){var Do=[],ko=Io.columns||[],ha=Io.rows||[];ko.length&&Do.push({}),ha.length&&Do.push({});var Ua=qt(Wo,[[{}],[{},{}]],1);if(!ko.length&&ha.length&&(Kr.rowCount=Math.max(Ua[0][0][0]-1,0)),!ha.length&&ko.length&&(Kr.columnCount=Math.max(Ua[0][0][0]-1,0)),ha.length&&ko.length&&(Kr.rowCount=Math.max(Ua[0][0][0]-1,0),Kr.columnCount=Math.max(Ua[1][0][0]-1,0)),void 0!==Kr.rowCount&&Io.rowTake){Kr.rows=[...Array(Io.rowSkip)].concat(Kr.rows),Kr.rows.length=Kr.rowCount;for(var Oa=0;Oa<Kr.rows.length;Oa++)Kr.rows[Oa]=Kr.rows[Oa]||{}}if(void 0!==Kr.columnCount&&Io.columnTake){Kr.columns=[...Array(Io.columnSkip)].concat(Kr.columns),Kr.columns.length=Kr.columnCount;for(var Za=0;Za<Kr.columns.length;Za++)Kr.columns[Za]=Kr.columns[Za]||{}}}(co,ri,Vr),Fi.resolve(co)}}).fail(Fi.reject):Fi.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return ri.delay?setTimeout($r,ri.delay):$r(),Fi},supportPaging:function(){return!0},getDrillDownItems:function(ri,Fi){var Gi=new P.BH,or=this._options,fr=function(_r,$r,Fr){var Vr=_r.columns||[],zr=_r.rows||[],Kr=[],Io=[],Wo=[],Do=st(Io,_r.values&&_r.values.length?_r.values:[{dataField:"[Measures]"}]),ko=Fr.maxRowCount,ha=Fr.customColumns||[],Ua=ha.length>0?" return "+ha.join(","):"";sn(Kr,Vr,Fr.columnPath||[]),sn(Kr,zr,Fr.rowPath||[]),(Vr.length||Do.length)&&Wo.push([(Do[Fr.dataIndex]||Do[0])+" on 0"]);var Oa=Ue(Wo,Io,Vr,zr,_r.filters,Kr,$r);return Oa&&"drillthrough"+(ko>0?" maxrows "+ko:"")+Oa+Ua}(ri,or.cube,Fi);return fr?(0,P.gx)(Bi(or,fr)).done(function(_r){var $r=ai(_r);$r?Gi.reject($r):Gi.resolve(function(Fr){for(var Vr=Fr.getElementsByTagName("row"),zr=[],co={},Kr=0;Kr<Vr.length;Kr++){for(var Io=Vr[Kr].childNodes,Wo={},Do=0;Do<Io.length;Do++){var ko=Io[Do].tagName;Wo[co[ko]=co[ko]||Ki(ko)]=Ft(Io[Do])}zr.push(Wo)}return zr}(_r))}).fail(Gi.reject):Gi.resolve([]),Gi},key:E.ZT,filter:E.ZT}}()).include(a9),K0="column",ay="row",jl=null,C9=function(n,t){var e=n/t;return(!(0,w.$K)(n)||isNaN(e))&&(e=jl),e},wP=function(n,t){return C9(n.value(),n.grandTotal(t).value())},x9=function(n,t){var e=n.parent(t),i=e?e.value():n.value();return C9(n.value(),i)},b9=function(n){return function(t){var e=t.prev(K0,n),i=e&&e.value();return(0,w.$K)(i)&&(0,w.$K)(t.value())?t.value()-i:jl}},qq={percentOfColumnTotal:function(n){return x9(n,ay)},percentOfRowTotal:function(n){return x9(n,K0)},percentOfColumnGrandTotal:function(n){return wP(n,ay)},percentOfRowGrandTotal:function(n){return wP(n,K0)},percentOfGrandTotal:function(n){return wP(n)}},Jq=function n(t,e){if(t&&t.parent(e)){var i=t.prev(e);return i||(i=n(t.parent(e),e)),i}},Qq=function(n){if(n.runningTotal){var t=n.runningTotal===K0?ay:K0;return function(e){var i=n.allowCrossGroupCalculation?Jq(e,t):e.prev(t,!1),r=e.value(!0),m=i&&i.value(!0);return(0,w.$K)(m)&&(0,w.$K)(r)?r=m+r:(0,w.$K)(m)&&(r=m),r}}};function SP(n,t,e){var i={index:-1};if(!(0,w.Kn)(t))if(e.fields[t])t=e[t];else{var r=n.columns.concat(n.rows).concat(n.values),m=ry(r,t);t=e[t]=r[m]}if(t){var D=t.area||"data";i=e.positions[t.index]=e.positions[t.index]||{area:D,index:n["data"===D?"values":D+"s"].indexOf(t)}}return i}function Qb(n){return n===ay?"_rowPath":"_columnPath"}var sy=function(n,t,e,i,r,m){this._columnPath=n,this._rowPath=t,this._fieldIndex=r,this._fieldsCache=m||{fields:{},positions:{}},this._data=e,this._descriptions=i;var D=e.values&&e.values[t[0].index]&&e.values[t[0].index][n[0].index];D&&(D.originalCell=D.originalCell||D.slice(),D.postProcessedFlags=D.postProcessedFlags||[],this._cell=D)};function eJ(n){var t=n.summaryDisplayMode,e=n.allowCrossGroupCalculation,i=jl;return(0,w.mf)(n.calculateSummaryValue)?i=n.calculateSummaryValue:t&&(i="absoluteVariation"===t?b9(e):"percentVariation"===t?function(n){var t=b9(n);return function(e){var i=t(e),r=e.prev(K0,n),m=r&&r.value();return i!==jl&&m?i/m:jl}}(e):qq[t],i&&!n.format&&-1!==t.indexOf("percent")&&Ap(n,"format","percent")),i}function w9(n,t,e,i){var r=n.values[t][e]=n.values[t][e]||[],m=r.originalCell;m&&((r.allowResetting||!i)&&(n.values[t][e]=m.slice()),n.values[t][e].allowResetting=i)}sy.prototype=(0,y.l)(sy.prototype,{_getPath:function(n){return this[Qb(n)]},_getDimension:function(n){return this._descriptions[n=n===ay?"rows":"columns"]},_createCell:function(n){return new sy(n._columnPath||this._columnPath,n._rowPath||this._rowPath,this._data,this._descriptions,this._fieldIndex)},parent:function(n){var t=this._getPath(n).slice(),e={};return t.shift(),t.length?(e[Qb(n)]=t,this._createCell(e)):jl},children:function(n){var t=this._getPath(n).slice(),e=t[0],i=[],r={};if(e.children)for(var m=0;m<e.children.length;m++)r[Qb(n)]=[e.children[m]].concat(t.slice()),i.push(this._createCell(r));return i},grandTotal:function(n){var t={},e=this._rowPath,i=this._columnPath,r=this._getPath(n),m=Qb(n);return n?t[m]=[r[r.length-1]]:(t._rowPath=[e[e.length-1]],t._columnPath=[i[i.length-1]]),this._createCell(t)},next:function(n,t){var m,e=this._getPath(n),i=e[0],r=this.parent(n);if(r){var D=e[1].children.indexOf(i);if((m=r.children(n))[D+1])return m[D+1]}if(t&&r){do{m=(r=r.next(n,t))?r.children(n):[]}while(r&&!m.length);return m[0]||jl}return jl},prev:function(n,t){var m,e=this._getPath(n),i=e[0],r=this.parent(n);if(r){var D=e[1].children.indexOf(i);if((m=r.children(n))[D-1])return m[D-1]}if(t&&r){do{m=(r=r.prev(n,t))?r.children(n):[]}while(r&&!m.length);return m[m.length-1]||jl}return jl},cell:function(){return this._cell},field:function(n){if("data"===n)return this._descriptions.values[this._fieldIndex];var t=this._getPath(n);return this._getDimension(n)[t.length-2]||jl},child:function(n,t){for(var e=this.children(n),i=0;i<e.length;i++){var r=r||e[i].field(n);if(e[i].value(r)===t)return e[i]}return jl},slice:function(n,t){var e={},i=SP(this._descriptions,n,this._fieldsCache),r=i.area,m=i.index,D=jl;if(r===ay||r===K0){var A=this._getPath(r).slice(),N=-1!==m&&A.length-2-m;if(A[N]){for(var Q=N;Q>=0;Q--){if(A[Q+1]){var se=A[Q+1].children||[],we=Q===N?t:A[Q].value;A[Q]=void 0;for(var Re=0;Re<se.length;Re++)if(se[Re].value===we){A[Q]=se[Re];break}}if(void 0===A[Q])return D}e[Qb(r)]=A,D=this._createCell(e)}}return D},value:function(n,t){var e=this._cell,i=this._fieldIndex,r=!0===n||!1===n,m=r?jl:n,D=r&&n||t;if((0,w.$K)(m)){var A=SP(this._descriptions,m,this._fieldsCache);if(i=A.index,"data"!==A.area){var N=this._getPath(A.area),Q=-1!==i&&N.length-2-i;return N[Q]&&N[Q].value}}return e&&e.originalCell?D?e[i]:e.originalCell[i]:jl},isPostProcessed(n){var t=this._fieldIndex;if((0,w.$K)(n)){var e=SP(this._descriptions,n,this._fieldsCache);if(t=e.index,"data"!==e.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[t])}});var OP={row:"rows",column:"columns",data:"values",filter:"filters"},DP=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],TP=["format","selector","customizeText","caption"],E9=TP.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);function IP(n,t){var e=n._initProperties||{};(0,O.S6)(t,function(i,r){Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])})}function MP(n,t){IP(n,t),(0,w.$K)(n.caption)||Ap(n,"caption",function rJ(n){var t=n.dataField||n.groupName||"",e=(n.summaryType||"").toLowerCase();return(0,w.HD)(n.groupInterval)&&(t+="_"+n.groupInterval),e&&"custom"!==e?(e=e.replace(/^./,e[0].toUpperCase()),t.length&&(e=" ("+e+")")):e="",(0,je.MI)(t)+e}(n))}function sJ(n){return n.rows.length||n.columns.length||n.values.length}const S9=ar.Z.inherit(function(){var n=function(Ft,qt){if(Ft._cacheByPath)return Ft._cacheByPath[qt.join(".")]||null},t=function Ft(qt,un){var In,Yn,Kn=-1;if(qt)for(In=0;In<qt.length;In++)void 0!==(Yn=qt[In]).index&&(Kn=Math.max(Kn,Yn.index)),Yn.children?Kn=Math.max(Kn,Ft(Yn.children)):Yn.collapsedChildren&&(Kn=Math.max(Kn,Ft(Yn.collapsedChildren)));return(0,w.$K)(un)&&(Kn=Math.max(Kn,un)),Kn},e=function(Ft,qt,un,In){var ai,Kn=t(un)+1,Yn=t(Ft,In)+1,gi=[],Ci=!1,Ki=new P.BH;if(qt.children&&qt.children.length===un.length)for(var Bi=0;Bi<un.length;Bi++){var ri=un[Bi];void 0!==ri.index&&(void 0===qt.children[Bi].index?(ri.index=gi[ri.index]=Yn++,qt.children[Bi]=ri):gi[ri.index]=qt.children[Bi].index)}else{for(Ci=!0,ai=0;ai<Kn;ai++)gi[ai]=Yn++;qt.children=un}return(0,P.gx)(Af(qt.children,function(Fi){Ci&&(Fi[0].index=gi[Fi[0].index])})).done(function(){Ki.resolve(gi)}),Ki},i=function(Ft,qt,un){var In=new P.BH,Kn=un>=0&&t(Ft,un)+1,Yn=[];return(0,P.gx)(Af(Ft,function(ai){delete ai[0].collapsedChildren})).done(function(){(0,P.gx)(Af(qt,function(ai,gi){var Ci=ai[0];if(Ci.index>=0){var Ki=n(Ft,Xu(ai));if(Ki&&Ki.index>=0)Yn[Ci.index]=Ki.index;else if(Kn){var Bi=Xu(ai.slice(1));Ki=n(Ft,Bi);var ri=Bi.length?Ki&&Ki.children:Ft;ri&&(ri[gi]=Ci,Ci.index=Yn[Ci.index]=Kn++)}}})).done(function(){In.resolve(Yn)})}),In},r=function(Ft,qt,un,In){var Kn,Yn,ai,gi,Ci,Ki,Bi=Ft.values;if(qt)for(Kn=0;Kn<qt.length;Kn++)if(ai=qt[Kn],(0,w.$K)(Ci=un[Kn])||(Ci=Ft.grandTotalRowIndex),ai&&(0,w.$K)(Ci))for(Bi[Ci]||(Bi[Ci]=[]),Yn=0;Yn<ai.length;Yn++)gi=ai[Yn],(0,w.$K)(Ki=In[Yn])||(Ki=Ft.grandTotalColumnIndex),(0,w.$K)(gi)&&(0,w.$K)(Ki)&&(Bi[Ci][Ki]=gi)};function m(Ft,qt){return new(Ft.remoteOperations||Ft.paginate?zq:Pq)((0,y.l)((0,zb.aN)(Ft),{onChanged:null,onLoadingChanged:null,onProgressChanged:qt}))}function D(Ft,qt,un,In){var Kn=[],Yn=qt&&qt[un]||[],ai=In&&In[un]||[];return tl(Ft[un],function(gi){var Ci=gi[0],Ki=Xu(gi);Ci.children&&Yn[Ki.length-1]&&!Yn[Ki.length-1].expanded&&Ki.length<Yn.length&&(!In||function(Bi,ri,Fi){for(var Gi=0;Gi<Fi;Gi++)if(!Bi[Gi]||!ri[Gi]||Bi[Gi].index!==ri[Gi].index)return!1;return!0}(Yn,ai,Ki.length))&&Kn.push(Ki.slice())},!0),Kn}function A(Ft,qt,un,In){return qt?(0,O.S6)(In,function(Kn,Yn){if(un)Ft[Yn]=qt[Yn];else{if(("summaryType"===Yn||"summaryDisplayMode"===Yn)&&void 0===qt[Yn])return;Ap(Ft,Yn,qt[Yn])}}):IP(Ft,In),Ft}function N(Ft,qt){var un=[];return(0,O.S6)(Ft,function(In,Kn){un.push(A({dataField:Kn.dataField,name:Kn.name},Kn,!0,qt))}),un}function Q(Ft){return Ft.name?Ft.name:Ft.dataField+""}function se(Ft,qt){var un=[];return(0,O.S6)(Ft||[],function(In,Kn){Q(Kn)===qt&&un.push(Kn)}),un}function we(Ft,qt){Ft=Ft||[];var In,un={};return(0,O.S6)(qt,function(Kn,Yn){In=Q(Yn),un[In]||(un[In]=se(qt,Q(Yn)))}),(0,O.S6)(un,function(Kn,Yn){var ai;ai=(ai=se(Ft,Kn))||[],(0,O.S6)(Yn,function(Ci,Ki){A(Ki,ai[Ci],!1,DP),MP(Ki,TP)})}),qt}function Re(Ft){Ft.sort(function(qt,un){return qt.areaIndex-un.areaIndex||qt.groupIndex-un.groupIndex})}function Ue(Ft,qt){var un=Ft.groupName||"";return(Ft.dataField||un)+(Ft.groupInterval?un+Ft.groupInterval:"NOGROUP")+(qt?"":un)}function st(Ft,qt,un){var gi,In=[],Kn={},Yn={},ai=r9(Ft);return qt?((0,O.S6)(qt,function(gi,Ci){Kn[Ue(Ci,un)]=Ci}),(0,O.S6)(Ft,function(gi,Ci){var ri,Ki=Ue(Ci,un),Bi=Kn[Ki]||Yn[Ki];Bi?(Bi._initProperties&&IP(Bi,E9),ri=(0,y.l)({},Bi,Ci,{_initProperties:null})):Kn[Ki]=ri=Ci,(0,y.l)(ri,{dataType:ai[Ci.dataField]}),delete Kn[Ki],Yn[Ki]=Bi,In.push(ri)}),un&&(0,O.S6)(Kn,function(gi,Ci){In.push(Ci)})):In=Ft,In.push.apply(In,[]),(gi=In).forEach(Ci=>{if(Ci.groupName&&Ci.groupInterval&&void 0===Ci.groupIndex){var Ki=gi.filter(Bi=>Bi.groupName===Ci.groupName&&(0,w.kE)(Bi.groupIndex)).map(Bi=>Bi.groupIndex).reduce((Bi,ri)=>Math.max(Bi,ri),-1);Ci.groupIndex=Ki+1}}),In}function Ot(Ft){var Kn,qt=new P.BH,un=Ft._store,In=un&&un.getFields(Ft._fields);return(0,P.gx)(In).done(function(Yn){Ft._storeFields=Yn,Kn=st(Ft._fields,Yn,Ft._retrieveFields),qt.resolve(Kn)}).fail(qt.reject),qt}function Kt(Ft,qt,un){return Af(Ft[un],function(In){var Kn=In[0];Kn.text=Kn.text||_P(Kn.value,qt[un][Xu(In).length-1])})}function sn(Ft,qt){return(0,P.gx)(Kt(qt,Ft,"columns"),Kt(qt,Ft,"rows"))}function wn(Ft){var qt=new P.BH,un={};return(0,P.gx)(Af(Ft,function(In){var Kn=Xu(In).join(".");un[Kn]=In[0]})).done(qt.resolve),Ft._cacheByPath=un,qt}function rn(Ft,qt){var un=[];return(0,O.S6)(Ft,function(){var Kn,Yn;Yn="data"===(Kn=qt)||!1!==this.visible,this.area===Kn&&!(0,w.$K)(this.groupIndex)&&Yn&&un.push(this)}),un}return{ctor:function(Ft){Ft=Ft||{},this._eventsStrategy=new Aq.m(this);var In,Kn,Yn,ai,qt=this,un=(Kn=function(In){qt._eventsStrategy.fireEvent("progressChanged",[In])},(0,w.PO)(In=Ft)&&In.load?Yn=m(In,Kn):(In&&!In.store&&(In={store:In}),"xmla"===(ai=In.store).type?Yn=new Yq(ai):(0,w.PO)(ai)&&ai.type||ai instanceof Mq.Z||Array.isArray(ai)?Yn=m(In,Kn):ai instanceof ar.Z&&(Yn=ai)),Yn);qt._store=un,qt._paginate=!!Ft.paginate,qt._pageSize=Ft.pageSize||40,qt._data={rows:[],columns:[],values:[]},qt._loadingCount=0,qt._isFieldsModified=!1,(0,O.S6)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(In,Kn){var Yn="on"+Kn[0].toUpperCase()+Kn.slice(1);Object.prototype.hasOwnProperty.call(Ft,Yn)&&this.on(Kn,Ft[Yn])}.bind(this)),qt._retrieveFields=!(0,w.$K)(Ft.retrieveFields)||Ft.retrieveFields,qt._fields=Ft.fields||[],qt._descriptions=Ft.descriptions?(0,y.l)(qt._createDescriptions(),Ft.descriptions):void 0,un||(0,y.l)(!0,qt._data,Ft.store||Ft)},getData:function(){return this._data},getAreaFields:function(Ft,qt){var un=[];return qt||"data"===Ft?Re(un=rn(this._fields,Ft)):un=(this._descriptions||{})[OP[Ft]]||[],un},fields:function(Ft){return Ft&&(this._fields=st(Ft,this._storeFields,this._retrieveFields),this._fieldsPrepared(this._fields)),this._fields},field:function(Ft,qt){var Kn,un=this._fields,In=un&&un[(0,w.kE)(Ft)?Ft:ry(un,Ft)];return In&&qt&&((0,O.S6)(qt,function(Yn,ai){var gi=!DP.includes(Yn);if(Ap(In,Yn,ai,gi),"sortOrder"===Yn){Kn=In.levels||[];for(var Ci=0;Ci<Kn.length;Ci++)Kn[Ci][Yn]=ai}}),MP(In,TP),this._descriptions=this._createDescriptions(In),this._isFieldsModified=!0,this._eventsStrategy.fireEvent("fieldChanged",[In])),In},getFieldValues:function(Ft,qt,un){var Ci,In=this,Kn=this._fields&&this._fields[Ft],Yn=this.store(),ai=[],gi={columns:ai,rows:[],values:this.getAreaFields("data"),filters:qt?this._fields.filter(Bi=>Bi!==Kn&&Bi.area&&Bi.filterValues&&Bi.filterValues.length):[],skipValues:!0},Ki=new P.BH;return un&&(Ci=un.searchValue,gi.columnSkip=un.skip,gi.columnTake=un.take),Kn&&Yn?((0,O.S6)(Kn.levels||[Kn],function(){ai.push((0,y.l)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:Ci}))}),Yn.load(gi).done(function(Bi){gi.columnSkip&&(Bi.columns=Bi.columns.slice(gi.columnSkip)),gi.columnTake&&(Bi.columns=Bi.columns.slice(0,gi.columnTake)),sn(gi,Bi),gi.columnTake||In._sort(gi,Bi),Ki.resolve(Bi.columns)}).fail(Ki)):Ki.reject(),Ki},reload:function(){return this.load({reload:!0})},filter:function(){var Ft=this._store;return Ft.filter.apply(Ft,arguments)},load:function(Ft){var qt=this,un=new P.BH;function In(){qt._delayedLoadTask=void 0,qt._descriptions?qt._loadCore(Ft,un):(0,P.gx)(Ot(qt)).done(function(Kn){qt._fieldsPrepared(Kn),qt._loadCore(Ft,un)}).fail(un.reject).fail(qt._loadErrorHandler)}return Ft=Ft||{},qt.beginLoading(),un.fail(function(Kn){qt._eventsStrategy.fireEvent("loadError",[Kn])}).always(function(){qt.endLoading()}),qt.store()?qt._delayedLoadTask=(0,E.Wi)(In):In(),un},createDrillDownDataSource:function(Ft){return this._store.createDrillDownDataSource(this._descriptions,Ft)},_createDescriptions:function(Ft){var qt=this.fields(),un={rows:[],columns:[],values:[],filters:[]};(0,O.S6)(["row","column","data","filter"],function(Kn,Yn){(0,$u.Sq)(rn(qt,Yn),"areaIndex",Ft)}),(0,O.S6)(qt||[],function(Kn,Yn){var Bi,gi=un[OP[Yn.area]],Ci=Yn.groupName;Ci&&!(0,w.kE)(Yn.groupIndex)&&(Yn.levels=(Bi=Yn,qt.filter(ri=>ri.groupName===Bi.groupName&&(0,w.kE)(ri.groupIndex)&&!1!==ri.visible).map(function(ri){return(0,y.l)(ri,{areaIndex:Bi.areaIndex,area:Bi.area,expanded:(0,w.$K)(ri.expanded)?ri.expanded:Bi.expanded,dataField:ri.dataField||Bi.dataField,dataType:ri.dataType||Bi.dataType,sortBy:ri.sortBy||Bi.sortBy,sortOrder:ri.sortOrder||Bi.sortOrder,sortBySummaryField:ri.sortBySummaryField||Bi.sortBySummaryField,sortBySummaryPath:ri.sortBySummaryPath||Bi.sortBySummaryPath,visible:ri.visible||Bi.visible,showTotals:(0,w.$K)(ri.showTotals)?ri.showTotals:Bi.showTotals,showGrandTotals:(0,w.$K)(ri.showGrandTotals)?ri.showGrandTotals:Bi.showGrandTotals})}).sort(function(ri,Fi){return ri.groupIndex-Fi.groupIndex}))),!(!gi||Ci&&(0,w.kE)(Yn.groupIndex)||!1===Yn.visible&&"data"!==Yn.area&&"filter"!==Yn.area)&&(Yn.levels&&gi!==un.filters&&gi!==un.values?(gi.push.apply(gi,Yn.levels),Yn.filterValues&&Yn.filterValues.length&&un.filters.push(Yn)):gi.push(Yn))}),(0,O.S6)(un,function(Kn,Yn){Re(Yn)});var In={};return(0,O.S6)(un.values,function(Kn,Yn){var ai=Yn.calculateSummaryValue;if((0,w.mf)(ai)){var gi=function iJ(n,t,e){var i=new sy([],[],{},n,0);return i.value=function(r){if((0,w.$K)(r)){var m=ry(t,r),D=t[m];!e[m]&&D&&!(0,w.$K)(D.area)&&(n.values.push(D),e[m]=!0)}},i.grandTotal=function(){return this},i.children=function(){return[]},i}(un,qt,In);ai(gi)}}),un},_fieldsPrepared:function(Ft){this._fields=Ft,(0,O.S6)(Ft,function(In,Kn){Kn.index=In,MP(Kn,E9)});var qt=N(Ft,["caption"]);this._eventsStrategy.fireEvent("fieldsPrepared",[Ft]);for(var un=0;un<Ft.length;un++)Ft[un].caption!==qt[un].caption&&Ap(Ft[un],"caption",Ft[un].caption,!0);this._descriptions=this._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(Ft,qt){var un=this;if(!arguments.length)return{fields:N(un._fields,DP),columnExpandedPaths:D(un._data,un._descriptions,"columns",un._lastLoadOptions),rowExpandedPaths:D(un._data,un._descriptions,"rows",un._lastLoadOptions)};Ft=(0,y.l)({rowExpandedPaths:[],columnExpandedPaths:[]},Ft),un._descriptions?(un._fields=we(Ft.fields,un._fields),un._descriptions=un._createDescriptions(),!qt&&un.load(Ft)):(un.beginLoading(),(0,P.gx)(Ot(un)).done(function(In){un._fields=we(Ft.fields,In),un._fieldsPrepared(In),!qt&&un.load(Ft)}).always(function(){un.endLoading()}))},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(Ft){var qt=this.isLoading();this._loadingCount+=Ft;var un=this.isLoading();qt^un&&this._eventsStrategy.fireEvent("loadingChanged",[un])},_hasPagingValues:function(Ft,qt,un){var In=qt+"Take",Kn=qt+"Skip",Yn=this._data.values,ai=this._data[qt+"s"],gi="row"===qt?"column":"row",Ci=[];if(Ft.path&&Ft.area===qt){var Ki=n(ai,Ft.path);if(!(ai=Ki&&Ki.children))return!1}if(Ft.oppositePath&&Ft.area===gi){var Bi=n(ai,Ft.oppositePath);if(!(ai=Bi&&Bi.children))return!1}for(var ri=Ft[Kn];ri<Ft[Kn]+Ft[In];ri++)ai[ri]&&Ci.push(ai[ri].index);return Ci.every(Fi=>{if(void 0!==Fi)return"row"===qt?(Yn[Fi]||[])[un]:(Yn[un]||[])[Fi]})},_processPagingCacheByArea:function(Ft,qt,un){var gi,In=un+"Take",Kn=un+"Skip",Yn=this._data[un+"s"],ai="row"===un?"column":"row";if(Ft[In]){if(Ft.path&&Ft.area===un){var Ci=n(Yn,Ft.path);Yn=Ci&&Ci.children||[]}if(Ft.oppositePath&&Ft.area===ai){var Ki=n(Yn,Ft.oppositePath);Yn=Ki&&Ki.children||[]}do{if((gi=Yn[Ft[Kn]])&&void 0!==gi.index){if(!this._hasPagingValues(Ft,ai,gi.index))break;Ft[Kn]++,Ft[In]--}}while(gi&&void 0!==gi.index&&Ft[In]);if(Ft[In]){var Bi=Math.floor(Ft[Kn]/qt)*qt,ri=Math.ceil((Ft[Kn]+Ft[In])/qt)*qt;Ft[Kn]=Bi,Ft[In]=ri-Bi}}},_processPagingCache:function(Ft){var qt=this._pageSize;if(!(qt<0))for(var un=0;un<Ft.length;un++)this._processPagingCacheByArea(Ft[un],qt,"row"),this._processPagingCacheByArea(Ft[un],qt,"column")},_loadCore:function(Ft,qt){var un=this,In=this._store,Kn=this._descriptions,Yn=Ft.reload||this.paginate()&&un._isFieldsModified,ai=this.paginate(),gi=OP[Ft.area];if(Ft=Ft||{},In){(0,y.l)(Ft,Kn),Ft.columnExpandedPaths=Ft.columnExpandedPaths||D(this._data,Ft,"columns",un._lastLoadOptions),Ft.rowExpandedPaths=Ft.rowExpandedPaths||D(this._data,Ft,"rows",un._lastLoadOptions),ai&&(Ft.pageSize=this._pageSize),gi&&(Ft.headerName=gi),un.beginLoading(),qt.always(function(){un.endLoading()});var Ci=[Ft];if(un._eventsStrategy.fireEvent("customizeStoreLoadOptions",[Ci,Yn]),Yn||un._processPagingCache(Ci),!(Ci=Ci.filter(Bi=>!(Bi.rows.length&&0===Bi.rowTake||Bi.columns.length&&0===Bi.columnTake))).length)return void un._update(qt);var Ki=Ci.map(Bi=>In.load(Bi));P.gx.apply(null,Ki).done(function(){for(var Bi=arguments,ri=0;ri<Bi.length;ri++){var Fi=Ci[ri],Gi=Bi[ri],or=ri===Bi.length-1;Fi.path?un.applyPartialDataSource(Fi.area,Fi.path,Gi,!!or&&qt,Fi.oppositePath):ai&&!Yn&&sJ(un._data)?un.mergePartialDataSource(Gi,!!or&&qt):((0,y.l)(un._data,Gi),un._lastLoadOptions=Fi,un._update(!!or&&qt))}}).fail(qt.reject)}else un._update(qt)},_sort:function(Ft,qt,un){this._store&&!this._paginate&&function Wq(n,t,e){y9(t,n,"rows",e),y9(t,n,"columns",e)}(Ft,qt,un)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var Ft=this.getAreaFields("data").filter(un=>!1!==un.visible),qt=this.getData();return!Ft.length||!qt.values.length},_update:function(Ft){var qt=this,un=qt._descriptions,In=qt._data,Kn=un.values,Yn=function oJ(n){return n.some(function(t){return t.summaryDisplayMode||t.calculateSummaryValue})}(Kn);return(0,P.gx)(sn(un,In),wn(In.rows),wn(In.columns)).done(function(){Yn&&(qt._sort(un,In,Yn),!qt.isEmpty()&&function tJ(n,t){var e=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],r=[{index:t.grandTotalRowIndex,children:t.rows}],m=n.values,D={fields:{},positions:{}};t.values=t.values||[],tl(i,A=>{A[0].isEmpty=[]},!1),tl(r,function(A){var N=A[0];N.isEmpty=[],t.values[N.index]=t.values[N.index]||[],tl(i,function(Q){var we,se=Q[0];w9(t,N.index,se.index,!1);for(var Re=0;Re<m.length;Re++){var st=e[Re]=void 0===e[Re]?eJ(m[Re]):e[Re];if(we=!1,st){var Ot=new sy(Q,A,t,n,Re,D),Kt=Ot.cell(),sn=Kt[Re]=st(Ot);Kt.postProcessedFlags[Re]=!0,we=null==sn}void 0===se.isEmpty[Re]&&(se.isEmpty[Re]=!0),void 0===N.isEmpty[Re]&&(N.isEmpty[Re]=!0),we||(N.isEmpty[Re]=se.isEmpty[Re]=!1)}},!1)},!1),t.isEmptyGrandTotalRow=r[0].isEmpty,t.isEmptyGrandTotalColumn=i[0].isEmpty}(un,In)),qt._sort(un,In),!qt.isEmpty()&&function aJ(n){return n.some(function(t){return!!t.runningTotal})}(Kn)&&function nJ(n,t){var e=[],i=[{index:t.grandTotalColumnIndex,children:t.columns}],r=[{index:t.grandTotalRowIndex,children:t.rows}],m=n.values,D={fields:{},positions:{}};t.values=t.values||[],tl(r,function(A){var N=A[0];t.values[N.index]=t.values[N.index]||[],tl(i,function(Q){w9(t,N.index,Q[0].index,!0);for(var we=0;we<m.length;we++){var Ue=e[we]=void 0===e[we]?Qq(m[we]):e[we];if(Ue){var st=new sy(Q,A,t,n,we,D),Ot=st.cell();Ot[we]=Ue(st),Ot.postProcessedFlags[we]=!0}}},!1)},!1)}(un,In),qt._data=In,!1!==Ft&&(0,P.gx)(Ft).done(function(){qt._isFieldsModified=!1,qt._eventsStrategy.fireEvent("changed"),(0,w.$K)(qt._data.grandTotalRowIndex)&&(In.grandTotalRowIndex=qt._data.grandTotalRowIndex),(0,w.$K)(qt._data.grandTotalColumnIndex)&&(In.grandTotalColumnIndex=qt._data.grandTotalColumnIndex)}),Ft&&Ft.resolve(qt._data)}),Ft},store:function(){return this._store},collapseHeaderItem:function(Ft,qt){var In=n("column"===Ft?this._data.columns:this._data.rows,qt),Kn=this.getAreaFields(Ft)[qt.length-1];return!(!In||!In.children||(this._eventsStrategy.fireEvent("expandValueChanging",[{area:Ft,path:qt,expanded:!1}]),Kn&&(Kn.expanded=!1),In.collapsedChildren=In.children,delete In.children,this._update(),this.paginate()&&this.load(),0))},collapseAll:function(Ft){var qt=!1,un=this.field(Ft)||{},In=[this.getAreaFields(un.area).indexOf(un)];un.expanded=!1,un&&un.levels&&(In=[],un.levels.forEach(Kn=>{In.push(this.getAreaFields(un.area).indexOf(Kn)),Kn.expanded=!1})),tl(this._data[un.area+"s"],function(Kn){var Yn=Kn[0],ai=Xu(Kn);Yn&&Yn.children&&-1!==In.indexOf(ai.length-1)&&(Yn.collapsedChildren=Yn.children,delete Yn.children,qt=!0)},!0),qt&&this._update()},expandAll:function(Ft){var qt=this.field(Ft);qt&&qt.area&&(qt.expanded=!0,qt&&qt.levels&&qt.levels.forEach(un=>{un.expanded=!0}),this.load())},expandHeaderItem:function(Ft,qt){var In=n("column"===Ft?this._data.columns:this._data.rows,qt);if(In&&!In.children){var Kn=!!In.collapsedChildren,Yn={area:Ft,path:qt,expanded:!0,needExpandData:!Kn};return this._eventsStrategy.fireEvent("expandValueChanging",[Yn]),Kn?(In.children=In.collapsedChildren,delete In.collapsedChildren,this._update()):this.store()&&this.load(Yn),Kn}return!1},mergePartialDataSource:function(Ft,qt){var Kn,Yn,un=this,In=un._data;Ft&&Ft.values&&(Ft.rows=Ft.rows||[],Ft.columns=Ft.columns||[],Kn=i(In.rows,Ft.rows,In.grandTotalColumnIndex),Yn=i(In.columns,Ft.columns,In.grandTotalColumnIndex),(0,P.gx)(Kn,Yn).done(function(ai,gi){(ai.length||gi.length)&&r(In,Ft.values,ai,gi),un._update(qt)}))},applyPartialDataSource:function(Ft,qt,un,In,Kn){var Ci,Bi,ri,Fi,Yn=this,ai=Yn._data,gi="column"===Ft?ai.columns:ai.rows,Ki="column"===Ft?ai.rows:ai.columns;un&&un.values&&(un.rows=un.rows||[],un.columns=un.columns||[],Ci=n(gi,qt),Bi=Kn&&n(Ki,Kn),Ci&&("column"===Ft?(Fi=e(gi,Ci,un.columns,ai.grandTotalColumnIndex),ri=Bi?e(Ki,Bi,un.rows,ai.grandTotalRowIndex):i(ai.rows,un.rows,ai.grandTotalRowIndex)):(ri=e(gi,Ci,un.rows,ai.grandTotalRowIndex),Fi=Bi?e(Ki,Bi,un.columns,ai.grandTotalColumnIndex):i(ai.columns,un.columns,ai.grandTotalColumnIndex)),(0,P.gx)(ri,Fi).done(function(Gi,or){("row"===Ft&&Gi.length||"column"===Ft&&or.length)&&r(ai,un.values,Gi,or),Yn._update(In)})))},on(Ft,qt){return this._eventsStrategy.on(Ft,qt),this},off(Ft,qt){return this._eventsStrategy.off(Ft,qt),this},dispose:function(){var Ft=this._delayedLoadTask;this._eventsStrategy.dispose(),Ft&&Ft.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}());var AP=Math,tw=function(n,t,e){n[t]||(n[t]=function(){var i=this._dataSource;return i?i[t].apply(i,arguments):e})},dJ=ar.Z.inherit(function(){function n(A,N,Q){return"#N/A"===A?Q:_P(A,N)}var t=function(){function Q(se,we,Re){var st=(se[we]=se[we]||[])[Re]={};if(se[we+1]){st.children=se[we+1];for(var Ot=we+1;Ot<se.length;Ot++)se[Ot]=void 0;se.length=we+1}return st}return function(se,we,Re,Ue,st){var rn,Ot=[],Kt=(rn=0,tl(se,function(Ft){rn=AP.max(rn,Ft.length)}),rn||1),sn=new P.BH;return function(se,we,Re,Ue,st){var rn,Ft,Kn,qt,un,In,Ot=Re.length,Kt=(rn=se,qt=(Ft=we)&&Ft.length||0,un=[],In=new P.BH,(0,P.gx)(Af(rn,function(Yn,ai){var gi=Yn[0],Ci=Xu(Yn);(Kn=Q(un,Ci.length,ai)).type="D",Kn.value=gi.value,Kn.path=Ci,Kn.text=gi.text,Kn.index=gi.index,Kn.displayText=gi.displayText,Kn.key=gi.key,Kn.isEmpty=gi.isEmpty,Ci.length<qt&&(!gi.children||0!==gi.children.length)&&(Kn.expanded=!!gi.children)})).done(function(){In.resolve(Q(un,0,0).children||[])}),In),sn=st.dataFields,wn=new P.BH;return(0,P.gx)(Kt).done(function(rn){st.notifyProgress(.5),st.showGrandTotals&&rn[st.showTotalsPrior?"unshift":"push"]({type:"GT",isEmpty:st.isEmptyGrandTotal});var Ft=!1===st.showTotals||sn.length>0&&sn.length===st.hiddenTotals.length,qt=sn.length>0&&st.hiddenValues.length===sn.length;qt&&Ft&&(Ue=1),(!Ft||"tree"===st.layout)&&function(un,In,Kn,Yn){Kn=Kn||Yn,tl(un,function(ai,gi){var Ci=ai[0];"D"===Ci.type&&Ci.expanded&&(!1!==In[ai.length-1].showTotals||Yn)&&(-1!==gi&&((ai[1]?ai[1].children:un)||[]).splice(Kn?gi:gi+1,0,(0,y.l)({},Ci,{children:null,type:"T",expanded:!!Kn||null,isAdditionalTotal:!0})),Kn&&(Ci.expanded=null))})}(rn,we,st.showTotalsPrior,"tree"===st.layout),(0,P.gx)(Af(rn,function(un){var In=un[0];(!In.children||0===In.children.length)&&(In.depthSize=Ue-un.length+1)})).done(function(){Ot>1&&function(un,In,Kn){tl(un,function(Yn){var gi,ai=Yn[0];if(!ai.children||0===ai.children.length)for(ai.children=[],gi=0;gi<In.length;gi++){var Ki="T"===ai.type,Bi="D"===ai.type;!1===In[gi].visible||"GT"===ai.type&&Kn.hiddenGrandTotals.includes(gi)||Ki&&Kn.hiddenTotals.includes(gi)||Bi&&Kn.hiddenValues.includes(gi)||ai.children.push({caption:In[gi].caption,path:ai.path,type:ai.type,value:gi,index:ai.index,dataIndex:gi,isMetric:!0,isEmpty:ai.isEmpty&&ai.isEmpty[gi]})}})}(rn,Re,st),!st.showEmpty&&function(un){tl([{children:un}],function(In,Kn){var Yn=In[0],ai=(In[1]?In[1].children:un)||[],gi=Yn.isEmpty;gi&&gi.length&&(gi=Yn.isEmpty.filter(function(Ci){return Ci}).length===gi.length),Yn&&!Yn.children&&gi&&(ai.splice(Kn,1),function Ci(Ki,Bi){var ri=Ki[Bi+1];!Ki[Bi].children.length&&ri&&ri.children&&(ri.children.splice(ri.children.indexOf(Ki[Bi]),1),Ci(Ki,Bi+1))}(In,1))})}(rn),st.notifyProgress(.75),(0,P.gx)(Af(rn,function(un){var In=un[0],Kn=In.isMetric,Yn=we[un.length-1]||{};if("D"===In.type&&!Kn&&(In.width=Yn.width),!0!==qt||"D"!==In.type){var gi,Ki,Bi;In.wordWrapEnabled=Kn?Re[In.dataIndex].wordWrapEnabled:Yn.wordWrapEnabled,In.isLast=!In.children||!In.children.length,In.isLast&&(0,O.S6)(st.sortBySummaryPaths,function(gi,Ci){if((0,w.$K)(In.dataIndex)||(Ci=Ci.slice(0)).pop(),Fi=(Ki=un)[0],Gi=(0,w.HD)((Bi=Ci)[0]),or=Fi.dataIndex>=0?Ki[1]:Fi,ri=Gi&&-1!==Bi[0].indexOf("&[")&&or.key||!or.key?Xu(Ki):(0,O.UI)(Ki,function(fr){return fr.dataIndex>=0?fr.value:fr.text}).reverse(),"GT"===Fi.type&&(ri=ri.slice(1)),ri.join("/")===Bi.join("/"))return In.sorted=!0,!1;var Ki,Bi,ri,Fi,Gi,or}),In.text=(Ki=st,Bi=(gi=In).text,(0,w.$K)(gi.displayText)?Bi=gi.displayText:(0,w.$K)(gi.caption)?Bi=gi.caption:"GT"===gi.type&&(Bi=Ki.texts.grandTotal),gi.isAdditionalTotal&&(Bi=(0,na.WU)(Ki.texts.total||"",Bi)),Bi)}else{var ai=(un[1]?un[1].children:rn)||[];ai.splice(ai.indexOf(In),1)}})).done(function(){rn.length||rn.push({}),st.notifyProgress(1),wn.resolve(rn)})})}),wn}(se,we,Re,Kt,st).done(function(wn){(function(rn,Ft,qt,un,In){var ai,Kn=0,gi=[0];tl(Ft,function(Ci){var Ki=Ci[0];for(ai=Ki.isMetric?qt:Ci.length-1;gi.length-1<ai;)gi.push(gi[gi.length-1]);Kn=function(se,we){var st,Ot,Kt,sn,wn;return function(st,Ot,Kt,sn,wn){for(var rn=wn?sn:Kt;!st[rn];)st.push([]);wn?st[rn].push(Ot):st[rn].unshift(Ot)}(se,(Ot=we.lastIndex-we.index||1,Kt=we.isHorizontal,sn=we.isTree,wn={type:(st=we.headerItem).type,text:st.text},st.path&&(wn.path=st.path),st.width&&(wn.width=st.width),(0,w.$K)(st.wordWrapEnabled)&&(wn.wordWrapEnabled=st.wordWrapEnabled),st.isLast&&(wn.isLast=!0),st.sorted&&(wn.sorted=!0),st.isMetric&&(wn.dataIndex=st.dataIndex),(0,w.$K)(st.expanded)&&(wn.expanded=st.expanded),Ot>1&&(wn[Kt?"colspan":"rowspan"]=Ot),st.depthSize&&st.depthSize>1&&(wn[Kt?"rowspan":"colspan"]=st.depthSize),st.index>=0&&(wn.dataSourceIndex=st.index),sn&&st.children&&st.children.length&&!st.children[0].isMetric&&(wn.width=null,wn.isWhiteSpace=!0),wn),we.index,we.depth,we.isHorizontal),we.headerItem.children&&0!==we.headerItem.children.length?we.lastIndex:we.lastIndex+1}(rn,{headerItem:Ki,index:gi[ai]||0,lastIndex:Kn,depth:ai,isHorizontal:un,isTree:In}),gi.length=ai,gi.push(Kn)})})(Ot,wn,Kt,Ue,"tree"===st.layout),st.notifyProgress(1),sn.resolve(Ot)}),sn}}();function e(A,N){var Q=[];return(0,O.S6)(A,function(se,we){var Re=ry(N,we.sortBySummaryField);Re>=0&&Q.push((we.sortBySummaryPath||[]).concat([Re]))}),Q}function i(A,N){for(var Q=0,se=[],we=0;we<A.length;we++)for(var Re=0;Re<A[we].length;Re++){var st=we+((A[we][Re].rowspan||1)-1);if(se[we]&&(Q-=se[we],se[we]=0),!1===N(A[we][Re],st,we,Re,Q))break;se[we+(A[we][Re].rowspan||1)]=(se[we+(A[we][Re].rowspan||1)]||0)+1,Q++}}function r(A,N){var Q=0,se=[];return tl(A,function(we){var Re=we[0],Ue=Xu(we);if(!Re.children||!1!==N.showTotals){var st=(0,y.l)(!0,{},Re,{visibleIndex:Q++,path:Ue});(0,w.$K)(st.index)?se[st.index]=st:se.push(st)}}),se}function m(A,N,Q){return new Tq.z(N,(0,y.l)({hasKnownLastPage:function(){return!0},pageCount:function(){return AP.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return A.isLoading()},changingDuration:function(){return A._dataSource.paginate()?300:A._changingDuration||0}},Q))}var D={ctor:function(A){var N=this,Q=N._fireChanged.bind(N);A=N._options=A||{},N.dataSourceChanged=(0,Pp.Z)(),N._dataSource=N._createDataSource(A),A.component&&"virtual"===A.component.option("scrolling.mode")&&(N._rowsScrollController=m(N,A.component,{totalItemsCount:function(){return N.totalRowCount()},pageIndex:function(se){return N.rowPageIndex(se)},pageSize:function(){return N.rowPageSize()},load:function(){return N._rowsScrollController.pageIndex()>=this.pageCount()&&N._rowsScrollController.pageIndex(this.pageCount()-1),N._rowsScrollController.handleDataChanged(function(){N._dataSource.paginate()?N._dataSource.load():Q.apply(this,arguments)})}}),N._columnsScrollController=m(N,A.component,{totalItemsCount:function(){return N.totalColumnCount()},pageIndex:function(se){return N.columnPageIndex(se)},pageSize:function(){return N.columnPageSize()},load:function(){return N._columnsScrollController.pageIndex()>=this.pageCount()&&N._columnsScrollController.pageIndex(this.pageCount()-1),N._columnsScrollController.handleDataChanged(function(){N._dataSource.paginate()?N._dataSource.load():Q.apply(this,arguments)})}})),N._stateStoringController=new Iq.G(A.component).init(),N._columnsInfo=[],N._rowsInfo=[],N._cellsInfo=[],N.expandValueChanging=(0,Pp.Z)(),N.loadingChanged=(0,Pp.Z)(),N.progressChanged=(0,Pp.Z)(),N.scrollChanged=(0,Pp.Z)(),N.load(),N._update(),N.changed=(0,Pp.Z)()},_fireChanged:function(){var A=new Date;this.changed&&!this._lockChanged&&this.changed.fire(),this._changingDuration=new Date-A},_correctSkipsTakes:function(A,N,Q,se,we,Re){var Ue=Q?A+Q-1:A;we[se.length]=we[se.length]||0,Re[se.length]=Re[se.length]||0,Ue<N?we[se.length]++:Re[se.length]++},_calculatePagingForRowExpandedPaths:function(A,N,Q,se,we){var sn,wn,rn,Re=this._rowsInfo,Ue=Math.min(A.rowSkip+A.rowTake,Re.length),Ot=[],Kt={};for(A.rowExpandedPaths.forEach((un,In)=>{Kt[un]=In}),sn=0;sn<Ue;sn++){for(Q.length=N.length=Ot.length+1,wn=0;wn<Re[sn].length;wn++){var Ft=Re[sn][wn];if("D"===Ft.type){this._correctSkipsTakes(sn,A.rowSkip,Ft.rowspan,Ot,N,Q);var qt=(rn=Ft.path||rn)&&rn.length>1?Kt[rn.slice(0,-1)]:-1;qt>=0&&(se[qt]=N[Ot.length]||0,we[qt]=Q[Ot.length]||0),Ft.rowspan&&Ot.push(Ft.rowspan)}}Ot=Ot.map(un=>un-1).filter(un=>un>0)}},_calculatePagingForColumnExpandedPaths:function(A,N,Q,se,we){var Re={},Ue={};(0,xP.L)(this._columnsInfo,function(st,Ot){if("D"===st.type&&st.path&&void 0===st.dataIndex){var Kt=st.colspan||1,sn=st.path.slice(0,-1).toString();Re[sn]=Re[sn]||0,Ue[sn]=Ue[sn]||0,Ot+Kt<=A.columnSkip?Re[sn]++:Ot<A.columnSkip+A.columnTake&&Ue[sn]++}}),N[0]=Re[""],Q[0]=Ue[""],A.columnExpandedPaths.forEach(function(st,Ot){var Kt=Re[st],sn=Ue[st];void 0!==Kt&&(se[Ot]=Kt),void 0!==sn&&(we[Ot]=sn)})},_processPagingForExpandedPaths:function(A,N,Q,se){var we=A[N+"ExpandedPaths"],Re=we.map(()=>0),Ue=we.map(()=>se?A.pageSize:0),st=[],Ot=[];se||("row"===N?this._calculatePagingForRowExpandedPaths(A,st,Ot,Re,Ue):this._calculatePagingForColumnExpandedPaths(A,st,Ot,Re,Ue)),this._savePagingForExpandedPaths(A,N,Q,st[0],Ot[0],Re,Ue)},_savePagingForExpandedPaths:function(A,N,Q,se,we,Re,Ue){var st=A[N+"ExpandedPaths"];A[N+"ExpandedPaths"]=[],A[N+"Skip"]=void 0!==se?se:A[N+"Skip"],A[N+"Take"]=void 0!==we?we:A[N+"Take"];for(var Ot=0;Ot<st.length;Ot++)Ue[Ot]&&Q.push((0,y.l)({area:N,headerName:N+"s"},A,{[N+"Skip"]:Re[Ot],[N+"Take"]:Ue[Ot],[A.area&&A.area!==N?"oppositePath":"path"]:st[Ot]}))},_handleCustomizeStoreLoadOptions:function(A,N){var Q=A[0],se=this._rowsScrollController;if(this._dataSource.paginate()&&se){var we=se.pageSize();"rows"===Q.headerName?(Q.rowSkip=0,Q.rowTake=we,Q.rowExpandedPaths=[]):(Q.rowSkip=se.beginPageIndex()*we,Q.rowTake=(se.endPageIndex()-se.beginPageIndex()+1)*we,this._processPagingForExpandedPaths(Q,"row",A,N))}var Re=this._columnsScrollController;if(this._dataSource.paginate()&&Re){var Ue=Re.pageSize();A.forEach((st,Ot)=>{"columns"===st.headerName?(st.columnSkip=0,st.columnTake=Ue,st.columnExpandedPaths=[]):(st.columnSkip=Re.beginPageIndex()*Ue,st.columnTake=(Re.endPageIndex()-Re.beginPageIndex()+1)*Ue,this._processPagingForExpandedPaths(st,"column",A,N))})}},load:function(){var A=this,N=this._stateStoringController;N.isEnabled()&&!N.isLoaded()?N.load().always(function(Q){Q?A._dataSource.state(Q):A._dataSource.load()}):A._dataSource.load()},calculateVirtualContentParams:function(A){var N=this._rowsScrollController,Q=this._columnsScrollController;if(N&&Q)return N.viewportItemSize(A.virtualRowHeight),N.viewportSize(A.viewportHeight/N.viewportItemSize()),N.setContentItemSizes(A.itemHeights),Q.viewportItemSize(A.virtualColumnWidth),Q.viewportSize(A.viewportWidth/Q.viewportItemSize()),Q.setContentItemSizes(A.itemWidths),(0,E.Su)(function(){Q.loadIfNeed(),N.loadIfNeed()}),this.scrollChanged.fire({left:Q.getViewportPosition(),top:N.getViewportPosition()}),{contentTop:N.getContentOffset(),contentLeft:Q.getContentOffset(),width:Q.getVirtualContentSize(),height:N.getVirtualContentSize()}},setViewportPosition:function(A,N){this._rowsScrollController.setViewportPosition(N||0),this._columnsScrollController.setViewportPosition(A||0)},subscribeToWindowScrollEvents:function(A){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(A)},updateWindowScrollPosition:function(A){this._rowsScrollController&&this._rowsScrollController.scrollTo(A)},updateViewOptions:function(A){(0,y.l)(this._options,A),this._update()},_handleExpandValueChanging:function(A){this.expandValueChanging.fire(A)},_handleLoadingChanged:function(A){this.loadingChanged.fire(A)},_handleProgressChanged:function(A){this.progressChanged.fire(A)},_handleFieldsPrepared:function(A){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(A)},_createDataSource:function(A){var se,N=this,Q=A.dataSource;return N._isSharedDataSource=Q instanceof S9,se=N._isSharedDataSource?Q:new S9(Q),N._expandValueChangingHandler=N._handleExpandValueChanging.bind(N),N._loadingChangedHandler=N._handleLoadingChanged.bind(N),N._fieldsPreparedHandler=N._handleFieldsPrepared.bind(N),N._customizeStoreLoadOptionsHandler=N._handleCustomizeStoreLoadOptions.bind(N),N._changedHandler=function(){N._update(),N.dataSourceChanged.fire()},N._progressChangedHandler=function(we){N._handleProgressChanged(.8*we)},se.on("changed",N._changedHandler),se.on("expandValueChanging",N._expandValueChangingHandler),se.on("loadingChanged",N._loadingChangedHandler),se.on("progressChanged",N._progressChangedHandler),se.on("fieldsPrepared",N._fieldsPreparedHandler),se.on("customizeStoreLoadOptions",N._customizeStoreLoadOptionsHandler),se},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var Kn,A=this,N=A._dataSource,Q=A._options,se=N.getAreaFields("column"),we=N.getAreaFields("row"),Re=N.getAreaFields("data"),Ue="row"===Q.dataFieldArea?Re:[],st="row"!==Q.dataFieldArea?Re:[],Ot=N.getData(),Kt=(Kn=[],(0,O.S6)(Re,function(Yn,ai){!1===ai.showTotals&&Kn.push(Yn)}),Kn),sn=function(In){var Kn=[];return In.forEach(function(Yn,ai){(void 0===Yn.showValues&&!1===Yn.showTotals||!1===Yn.showValues)&&Kn.push(ai)}),Kn}(Re),wn=function(In,Kn){var Yn=[];return(0,O.S6)(In,function(ai,gi){!1===gi.showGrandTotals&&Yn.push(ai)}),0===Kn.length&&Yn.length===In.length&&(Yn=[]),Yn}(Re,se),rn=!(Re.length>0)||wn.length!==Re.length,Ft={isEmptyGrandTotal:Ot.isEmptyGrandTotalRow,texts:Q.texts||{},hiddenTotals:Kt,hiddenValues:sn,hiddenGrandTotals:[],showTotals:Q.showRowTotals,showGrandTotals:!1!==Q.showRowGrandTotals&&rn,sortBySummaryPaths:e(se,Re),showTotalsPrior:"rows"===Q.showTotalsPrior||"both"===Q.showTotalsPrior,showEmpty:!Q.hideEmptySummaryCells,layout:Q.rowHeaderLayout,fields:we,dataFields:Re,progress:0},qt={isEmptyGrandTotal:Ot.isEmptyGrandTotalColumn,texts:Q.texts||{},hiddenTotals:Kt,hiddenValues:sn,hiddenGrandTotals:wn,showTotals:Q.showColumnTotals,showTotalsPrior:"columns"===Q.showTotalsPrior||"both"===Q.showTotalsPrior,showGrandTotals:!1!==Q.showColumnGrandTotals&&rn,sortBySummaryPaths:e(we,Re),showEmpty:!Q.hideEmptySummaryCells,fields:se,dataFields:Re,progress:0},un=function(In){this.progress=In,A._handleProgressChanged(.8+.1*Ft.progress+.1*qt.progress)};Ft.notifyProgress=un,qt.notifyProgress=un,(0,w.$K)(Ot.grandTotalRowIndex)||(Ot.grandTotalRowIndex=r(Ot.rows,Ft).length),(0,w.$K)(Ot.grandTotalColumnIndex)||(Ot.grandTotalColumnIndex=r(Ot.columns,qt).length),N._changeLoadingCount(1),(0,P.gx)(t(Ot.columns,se,st,!0,qt),t(Ot.rows,we,Ue,!1,Ft)).always(function(){N._changeLoadingCount(-1)}).done(function(In,Kn){A._columnsInfo=In,A._rowsInfo=Kn,A._rowsScrollController&&A._columnsScrollController&&A.changed&&!A._dataSource.paginate()&&(A._rowsScrollController.reset(!0),A._columnsScrollController.reset(!0),A._lockChanged=!0,A._rowsScrollController.load(),A._columnsScrollController.load(),A._lockChanged=!1)}).done(function(){A._fireChanged(),A._stateStoringController.isEnabled()&&!A._dataSource.isLoading()&&(A._stateStoringController.state(A._dataSource.state()),A._stateStoringController.save())})},getRowsInfo:function(A){var se,N=this._rowsInfo,Q=this._rowsScrollController;if(Q&&!A){var we=Q.beginPageIndex()*this.rowPageSize(),Re=Q.endPageIndex()*this.rowPageSize()+this.rowPageSize(),Ue=[],st=1;return i(N,function(Ot,Kt,sn,wn,rn){var qt=sn<we?0:sn-we,un=Ot;if(!(Kt>=we&&sn<Re))return!1;Ue[qt]=Ue[qt]||[],we+qt+(se=sn<we?Ot.rowspan-(we-sn)||1:Ot.rowspan)>Re&&(se=Re-(qt+we)||1),se!==Ot.rowspan&&(un=(0,y.l)({},un,{rowspan:se})),Ue[qt].push(un),st=AP.max(st,rn+1)}),i(Ue,function(Ot,Kt,sn,wn,rn){rn+(Ot.colspan||1)>st&&(Ue[sn][wn]=(0,y.l)({},Ot,{colspan:st-rn||1}))}),Ue}return N},getColumnsInfo:function(A){var N=this._columnsInfo,Q=this._columnsScrollController;if(Q&&!A){var se=Q.beginPageIndex()*this.columnPageSize(),we=Q.endPageIndex()*this.columnPageSize()+this.columnPageSize();N=(0,xP.P)(N,se,we)}return N},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(A){return void 0!==A&&(this._rowPageIndex=A),this._rowPageIndex||0},totalColumnCount:function(){var A=0;if(this._columnsInfo&&this._columnsInfo.length)for(var N=0;N<this._columnsInfo[0].length;N++)A+=this._columnsInfo[0][N].colspan||1;return A},rowPageSize:function(A){return void 0!==A&&(this._rowPageSize=A),this._rowPageSize||20},columnPageSize:function(A){return void 0!==A&&(this._columnPageSize=A),this._columnPageSize||20},columnPageIndex:function(A){return void 0!==A&&(this._columnPageIndex=A),this._columnPageIndex||0},getCellsInfo:function(A){var Re,Ue,st,Ot,sn,wn,rn,Ft,N=this.getRowsInfo(A),Q=this.getColumnsInfo(A),se=this._dataSource.getData(),we=this._options.texts||{};return Re=N,Ue=Q,st=se,Ot=this._dataSource.getAreaFields("data"),sn=we.dataNotAvailable,wn=[],rn="row"===this._options.dataFieldArea,(Ft=st.values).length&&i(Re,function(qt,un){var In=wn[un]=[],Kn=Ft[qt.dataSourceIndex>=0?qt.dataSourceIndex:st.grandTotalRowIndex]||[];qt.isLast&&(0,xP.L)(Ue,function(Yn,ai){var gi=(rn?qt.dataIndex:Yn.dataIndex)||0,Ci=Ot[gi];if(Yn.isLast&&Ci&&!1!==Ci.visible){var Ki=Kn[Yn.dataSourceIndex>=0?Yn.dataSourceIndex:st.grandTotalColumnIndex];Array.isArray(Ki)||(Ki=[Ki]);var Bi=Ki[gi];In[ai]={text:n(Bi,Ci,sn),value:Bi,format:Ci.format,dataType:Ci.dataType,columnType:Yn.type,rowType:qt.type,rowPath:qt.path||[],columnPath:Yn.path||[],dataIndex:gi},Ci.width&&(In[ai].width=Ci.width)}})}),wn},dispose:function(){this._isSharedDataSource?(this._dataSource.off("changed",this._changedHandler),this._dataSource.off("expandValueChanging",this._expandValueChangingHandler),this._dataSource.off("loadingChanged",this._loadingChangedHandler),this._dataSource.off("progressChanged",this._progressChangedHandler),this._dataSource.off("fieldsPrepared",this._fieldsPreparedHandler),this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler)):this._dataSource.dispose(),this._columnsScrollController&&this._columnsScrollController.dispose(),this._rowsScrollController&&this._rowsScrollController.dispose(),this._stateStoringController.dispose(),this.expandValueChanging.empty(),this.changed.empty(),this.loadingChanged.empty(),this.progressChanged.empty(),this.scrollChanged.empty(),this.dataSourceChanged.empty()}};return tw(D,"applyPartialDataSource"),tw(D,"collapseHeaderItem"),tw(D,"expandHeaderItem"),tw(D,"getData"),tw(D,"isEmpty"),D}()),hJ=function(n){var t=0,e=n.offsetWidth;if(n.getBoundingClientRect){var i=(0,Yo.l)(n);(t=i.width)||(t=i.right-i.left),t<=e-1&&(t=e)}return t>0?t:e};function D9(n,t,e,i){var r=0,m=0,D=e/2;return n+i-(t+e)>1?(n>=t+e+D&&(m=parseInt((n-(t+e))/D,10)),r=t+e+D*m):n<t?(n<=t-D&&(m=parseInt((n-(t-D))/D,10)),r=t-(e-D*m)):r=t,r}var PP=ar.Z.inherit({ctor:function(n){this.component=n},option:function(){return this.component.option.apply(this.component,arguments)},_getRowElement:function(n){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows[n]:null},_createGroupElement:function(){return(0,l.Z)("<div>")},_createTableElement:function(){return(0,l.Z)("<table>")},_getCellText:function(n,t){var e=n.isWhiteSpace?"&nbsp":n.text||"&nbsp";return t&&(-1!==e.indexOf("<")||-1!==e.indexOf(">"))&&(e=(0,l.Z)("<div>").text(e).html()),e},_getRowClassNames:function(){},_applyCustomStyles:function(n){n.cell.width&&n.cssArray.push("min-width:"+n.cell.width+"px"),n.cell.sorted&&n.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(n,t){var i,r,m,D,A,we,e=t.length,N=this.option("rtlEnabled"),Q=[],se=this.option("encodeHtml");for(n.data("area",this._getAreaName()),n.data("data",t),n.css("width",""),Q.push(this._getMainElementMarkup()),m=0;m<e;m++){i=t[m];var Re=[];for(we=[],Q.push("<tr "),D=0;D<i.length;D++){if(this._getRowClassNames(m,r=i[D],we),Re.push("<td "),r){r.rowspan&&Re.push("rowspan='"+(r.rowspan||1)+"'"),r.colspan&&Re.push("colspan='"+(r.colspan||1)+"'");var Ue={cellElement:void 0,cell:r,cellsCount:i.length,cellIndex:D,rowElement:void 0,rowIndex:m,rowsCount:e,rtlEnabled:N,classArray:[],cssArray:[]};this._applyCustomStyles(Ue),Ue.cssArray.length&&(Re.push("style='"),Re.push(Ue.cssArray.join(";")),Re.push("'")),Ue.classArray.length&&(Re.push("class='"),Re.push(Ue.classArray.join(" ")),Re.push("'")),Re.push(">"),(0,w.$K)(r.expanded)&&Re.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),A=this._getCellText(r,se)}else A="";Re.push("<span "),(0,w.$K)(r.wordWrapEnabled)&&Re.push("style='white-space:",r.wordWrapEnabled?"normal":"nowrap",";'"),Re.push(">"+A+"</span>"),r.sorted&&Re.push("<span class='dx-icon-sorted'></span>"),Re.push("</td>")}we.length&&(Q.push("class='"),Q.push(we.join(" ")),Q.push("'")),Q.push(">"),Q.push(Re.join("")),Q.push("</tr>")}Q.push(this._getCloseMainElementMarkup()),n.append(Q.join("")),this._triggerOnCellPrepared(n,t)},_triggerOnCellPrepared:function(n,t){var D,A,N,se,we,Re,Ue,e=n.find("tr"),i=this._getAreaName(),r=this.option("onCellPrepared"),m=this.component._eventsStrategy.hasEvent("cellPrepared"),Q=this.component._defaultActionArgs();if(r||m)for(Re=0;Re<t.length;Re++)for(se=t[Re],D=e.eq(Re),Ue=0;Ue<se.length;Ue++)we=se[Ue],A=D.children().eq(Ue),N={area:i,rowIndex:Re,columnIndex:Ue,cellElement:(0,S.u)(A),cell:we},m?this.component._trigger("onCellPrepared",N):r((0,y.l)(N,Q))},_getRowHeight:function(n){var t=this._getRowElement(n),e=0,i=t.offsetHeight;return t&&t.lastChild?(t.getBoundingClientRect&&(e=(0,Yo.l)(t).height)<=i-1&&(e=i),e>0?e:i):0},_setRowHeight:function(n,t){var e=this._getRowElement(n);e&&(e.style.height=t+"px")},getRowsLength:function(){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows.length:0},getRowsHeight:function(){var e,n=[],t=this.getRowsLength();for(e=0;e<t;e++)n.push(this._getRowHeight(e));return n},setRowsHeight:function(n){var i,t=0,e=n.length;for(i=0;i<e;i++)t+=n[i],this._setRowHeight(i,n[i]);this._tableHeight=t,this._tableElement[0].style.height=t+"px"},getColumnsWidth:function(){var t,e,i,r,n=this.getRowsLength(),m=[],D=[],A=function(N,Q,se,we,Re){var Ue,st;for(Ue=0;Ue<we;Ue++)for(st=0;st<Re;st++)N[Q+Ue]=N[Q+Ue]||[],N[Q+Ue][se+st]=!0};if(n)for(t=0;t<n;t++)for(m[t]=m[t]||[],e=this._getRowElement(t),i=0;i<e.cells.length;i++){for(r=0;m[t][r];r++);A(m,t,r,e.cells[i].rowSpan,e.cells[i].colSpan),1===e.cells[i].colSpan&&(D[r]=D[r]||hJ(e.cells[i]))}return D},setColumnsWidth:function(n){var t,e=this._tableElement[0],i="",r=this.getColumnsCount(),m=[];for(t=0;t<r;t++)m.push(n[t]||0);for(t=r;t<n.length&&n;t++)m[r-1]+=n[t];for(t=0;t<r;t++)i+='<col style="width: '+m[t]+'px">';this._colgroupElement.html(i),this._tableWidth=m.reduce((D,A)=>D+A,0),e.style.width=this._tableWidth+"px",e.style.tableLayout="fixed"},resetColumnsWidth:function(){(0,s.cl)(this._colgroupElement.find("col"),"auto"),this._tableElement.css({width:"",tableLayout:""})},setGroupWidth:function(n){this._getScrollable().option("width",n)},setGroupHeight:function(n){this._getScrollable().option("height",n)},getGroupHeight:function(){return this._getGroupElementSize("height")},getGroupWidth:function(){return this._getGroupElementSize("width")},_getGroupElementSize(n){var t=this.groupElement()[0].style[n];return t.indexOf("px")>0?parseFloat(t):null},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(n){this.option("rtlEnabled")&&(n.right=n.left,delete n.left),this.tableElement().css(n)},setVirtualContentParams:function(n){this._virtualContent.css({width:n.width,height:n.height});var t=this._getScrollable();null!=t&&t.isRenovated()?this._getScrollable().option("classes","dx-virtual-mode"):this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){var n=this._getScrollable();null!=n&&n.isRenovated()?this._getScrollable().option("classes",""):this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){!this._virtualContent&&"virtual"===this.option("scrolling.mode")&&(this._virtualContent=(0,l.Z)("<div>").addClass("dx-virtual-content").insertBefore(this._tableElement))},reset:function(){var n=this._tableElement[0];if(this._fakeTable&&this._fakeTable.detach(),this._fakeTable=null,this.disableVirtualMode(),this.setGroupWidth("100%"),this.setGroupHeight("auto"),this.resetColumnsWidth(),n){for(var t=0;t<n.rows.length;t++)n.rows[t].style.height="";n.style.height="",n.style.width="100%"}},_updateFakeTableVisibility:function(){var n=this.tableElement()[0],t=this.option("rtlEnabled")?"right":"left",e=this._fakeTable[0];n.style.top===e.style.top&&e.style[t]===n.style[t]?this._fakeTable.addClass("dx-hidden"):this._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(n){var e=this.option("rtlEnabled")?"right":"left",r=D9(n,parseFloat(this.tableElement()[0].style[e]),this._tableWidth,this.getGroupWidth());parseFloat(this._fakeTable[0].style[e])!==r&&(this._fakeTable[0].style[e]=r+"px")},_moveFakeTableTop:function(n){var e=D9(n,parseFloat(this.tableElement()[0].style.top),this._tableHeight,this.getGroupHeight());parseFloat(this._fakeTable[0].style.top)!==e&&(this._fakeTable[0].style.top=e+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){this._fakeTable||(this._fakeTable=this.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(this._virtualContent))},render:function(n,t){if(this._tableElement){try{this._tableElement[0].innerHTML=""}catch{this._tableElement.empty()}this._tableElement.attr("style","")}else this._groupElement=this._createGroupElement(),this._tableElement=this._createTableElement(),this._tableElement.appendTo(this._groupElement),this._groupElement.appendTo(n),this._rootElement=n;this._colgroupElement=(0,l.Z)("<colgroup>").appendTo(this._tableElement),this._renderTableContent(this._tableElement,t),this._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},_getMaxLeftOffset(n){var t=(0,l.Z)(n.container()).get(0);return t.scrollWidth-t.clientWidth},on:function(n,t){var e=this,i=e._getScrollable();return i&&i.on(n,function(r){e.option("rtlEnabled")&&(0,w.$K)(r.scrollOffset.left)&&(r.scrollOffset.left=e._getMaxLeftOffset(i)-r.scrollOffset.left),t(r)}),this},off:function(n){var t=this._getScrollable();return t&&t.off(n),this},scrollTo:function(n){var t=this._getScrollable(),e=n;t&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?e=this._getMaxLeftOffset(t)-n.left:"data"===this._getAreaName()&&(e={left:this._getMaxLeftOffset(t)-n.left,top:n.top})),t.scrollTo(e),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(n)))},updateScrollable:function(){var n=this._getScrollable();if(n)return n.update()},getColumnsCount:function(){var e,n=0,t=this._getRowElement(0);if(t)for(var i=0,r=(e=t.cells).length;i<r;++i)n+=e[i].colSpan;return n},getData:function(){var n=this._tableElement;return n?n.data("data"):[]}}),vJ=PP.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,l.Z)("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data").css("borderTopWidth",0)},_applyCustomStyles:function(n){var t=n.cell,e=n.classArray;("T"===t.rowType||"T"===t.columnType)&&e.push("dx-total"),("GT"===t.rowType||"GT"===t.columnType)&&e.push("dx-grandtotal"),("T"===t.rowType||"GT"===t.rowType)&&e.push("dx-row-total"),n.rowIndex===n.rowsCount-1&&n.cssArray.push("border-bottom: 0px"),this.callBase(n)},_moveFakeTable:function(n){this._moveFakeTableHorizontally(n.x),this._moveFakeTableTop(n.y),this.callBase()},renderScrollable:function(){this._groupElement.dxScrollable({useNative:this.getUseNativeValue(),useSimulatedScrollbar:!1,rtlEnabled:this.component.option("rtlEnabled"),bounceEnabled:!1,updateManually:!0})},getUseNativeValue:function(){var{useNative:n}=this.component.option("scrolling");return"auto"===n?!!U0.nativeScrolling:!!n},getScrollbarWidth:function(){return this.getUseNativeValue()?vB():0},updateScrollableOptions:function(n){var{direction:t,rtlEnabled:e}=n,i=this._getScrollable();i.option("useNative",this.getUseNativeValue()),i.option({direction:t,rtlEnabled:e})},getScrollableDirection:function(n,t){return n&&!t?"horizontal":!n&&t?"vertical":"both"},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(n){this.callBase(n),this._virtualContent.parent().css("height",n.height),this._setTableCss({top:n.top,left:n.left})}}),nw=u(8487),T9="dx-expand-border",I9=!!nw.Z.IS_RENOVATED_WIDGET;function M9(n,t){if(t){var e=n.data().data,i=t.parentNode.rowIndex,r=t.cellIndex;return e[i]&&e[i][r]&&e[i][r].path}}var A9=PP.inherit({ctor:function(n){this.callBase(n),this._scrollBarWidth=0},_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return(0,l.Z)("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(n){var t=n.cssArray,e=n.cell,i=n.rowsCount,r=n.classArray;n.cellIndex===n.cellsCount-1&&t.push((n.rtlEnabled?"border-left:":"border-right:")+"0px"),(e.rowspan===i-n.rowIndex||n.rowIndex+1===i)&&t.push("border-bottom-width:0px"),("T"===e.type||"GT"===e.type)&&r.push("dx-row-total"),"T"===n.cell.type&&r.push("dx-total"),"GT"===n.cell.type&&r.push("dx-grandtotal"),(0,w.$K)(e.expanded)&&r.push(e.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(n)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(n){this.callBase(n),this._setTableCss({left:n.left,top:0}),this._virtualContentWidth=n.width},hasScroll:function(){var n=this._virtualContent?this._virtualContentWidth:this._tableWidth,t=this.getGroupWidth();return!(!t||!n)&&n-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"horizontal",rtlEnabled:!!I9&&this.component.option("rtlEnabled"),updateManually:!0})},updateScrollableOptions:function(n){var{rtlEnabled:t}=n,e=this._getScrollable();I9&&e.option({rtlEnabled:t})},processScrollBarSpacing:function(n){var t=this.option("rtlEnabled")?"right":"left",e=this.getGroupWidth();e&&this.setGroupWidth(e-n),this._scrollBarWidth&&this._groupElement.next().remove(),this._groupElement.toggleClass("dx-vertical-scroll",n>0),(0,s.cl)(this._groupElement.css("float",t),this.getGroupHeight()),this._scrollBarWidth=n},getScrollPath:function(n){var e,t=this.tableElement();return n-=parseInt(t[0].style.left,10)||0,(0,O.S6)(t.find("td"),function(i,r){if(1===r.colSpan&&r.offsetLeft<=n&&r.offsetWidth+r.offsetLeft>n)return e=r,!1}),M9(t,e)},_moveFakeTable:function(n){this._moveFakeTableHorizontally(n),this.callBase()}}),IJ=A9.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(n){this.callBase(n),n.cellIndex===n.cellsCount-1&&n.classArray.push("dx-last-cell"),n.rowIndex===n.rowsCount-1&&n.cssArray.push("border-bottom: 0px"),n.cell.isWhiteSpace&&n.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(n){this.callBase(n),this._setTableCss({top:n.top,left:0}),this._virtualContentHeight=n.height},hasScroll:function(){var n=this._virtualContent?this._virtualContentHeight:this._tableHeight,t=this.getGroupHeight();return!(!t||!n)&&n-t>=1},renderScrollable:function(){this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:"never",bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(n){var t=this.getGroupHeight();if(t&&this.setGroupHeight(t-n),this._scrollBarWidth&&this._groupElement.next().remove(),n){var e=(0,l.Z)("<div>");(0,s.cl)(e,"100%"),(0,s.QQ)(e,n-1),this._groupElement.after(e)}this._scrollBarWidth=n},getScrollPath:function(n){var e,t=this.tableElement();return n-=parseInt(t[0].style.top,10)||0,(0,O.S6)(t.find("tr"),function(i,r){var m=r.childNodes[r.childNodes.length-1];if(m&&1===m.rowSpan&&m.offsetTop<=n&&m.offsetHeight+m.offsetTop>n)return e=m,!1}),M9(t,e)},_moveFakeTable:function(n){this._moveFakeTableTop(n),this.callBase()},_getRowClassNames:function(n,t,e){0!==n&t.expanded&&!e.includes(T9)&&e.push(T9)},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(n){var t=this.tableElement()[0].rows,e=0,i=[];if(!(this.getColumnsCount()-n>0))for(var r=0;r<t.length;r++)for(var m=0;m<t[r].cells.length;m++){var D=t[r].cells[m],A=D.rowSpan;i[r]&&(e-=i[r],i[r]=0);var N=n-(e+D.colSpan);m===t[r].cells.length-1&&N>0&&(D.colSpan=D.colSpan+N),i[r+A]=(i[r+A]||0)+D.colSpan,e+=D.colSpan}}}),P9=u(4356),kP=u(1074),MJ=u(4964),AJ=u(9813),k9=u(7078),{getSwatchContainer:PJ}=k9.Z,RD="dxSortable",R9="dx-sortable-old";function LJ(n,t,e){return!(0,w.$K)(t.posHorizontal)||(e?n>t.posHorizontal:n<t.posHorizontal)}var F9=vo.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable-old",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(n,t){var i,e=this.option("itemRender");return e?i=e(n,t):(i=n.clone()).css({width:(0,s.dz)(n),height:(0,s.Cr)(n)}),i},_renderIndicator:function(n,t,e,i){var r=(0,s.zp)(n,!0),m=(0,s.Y_)(n,!0),D=n.offset().top-e.offset().top,A=n.offset().left-e.offset().left;this._indicator.css({position:"absolute",top:i&&t?D+r:D,left:i&&!t?A+m:A}).toggleClass("dx-position-indicator-horizontal",!t).toggleClass("dx-position-indicator-vertical",!!t).toggleClass("dx-position-indicator-last",!!i).appendTo(e),(0,s.QQ)(this._indicator,""),(0,s.cl)(this._indicator,""),t?(0,s.cl)(this._indicator,m):(0,s.QQ)(this._indicator,r)},_renderDraggable:function(n){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(n,"drag").addClass(this.option("dragClass")).appendTo(PJ(n)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var n=[us.pB,us.BL,us.ut,us.IO,us.Zu,us.Cw].join(" ");d.Z.off(this._getEventListener(),(0,k.V4)(n,RD))},_getItemOffset:function(n,t,e){for(var i=0;i<t.length;i++){var r=void 0,m=e.pageY<t[i].posVertical;if(n?r=m:m&&!(r=LJ(e.pageX,t[i],this.option("rtlEnabled")))&&t[i+1]&&t[i+1].posVertical>t[i].posVertical&&(r=!0),r)return t[i]}},_getEventListener:function(){var n=this.option("groupSelector"),t=this.$element();return n?t.find(n):t},_attachEventHandlers:function(){var N,Q,se,we,Re,Ue,Ot,n=this,t=n.option("itemSelector"),e=n.option("itemContainerSelector"),i=n.option("groupSelector"),r=n.option("sourceClass"),m=n.option("targetClass"),D=n.option("onDragging"),A=n.option("groupFilter"),st=n.$element(),Kt=null,sn=-1,wn=function(){Kt&&Kt.dispose(),Kt=null};if(n._detachEventHandlers(),n.option("allowDragging")){var rn=n._getEventListener();d.Z.on(rn,(0,k.V4)(us.BL,RD),t,function(Ft){var un,qt=(N=(0,l.Z)(Ft.currentTarget)).closest(i);Ue=qt.attr("group"),Q=function BJ(n,t){var e=-1,i=t.get(0);return(0,O.S6)(n,function(r,m){var D=(0,l.Z)(m);if(D.attr("item-group")&&D.attr("item-group")===n.eq(r-1).attr("item-group")||e++,m===i)return!1}),e===n.length?-1:e}((i?qt:st).find(t),N),N.attr("item-group")&&(N=qt.find("[item-group='"+N.attr("item-group")+"']")),n._renderDraggable(N),se=n._renderItem(N,"target").addClass(m),N.addClass(r),Re=[],(0,O.S6)(N,function(un,In){Re.push((0,l.Z)(In).offset())}),un=b.Z.getRootNode(n.$element().get(0)),Ot=i?A?(0,l.Z)(un).find(i).filter(A):st.find(i):st,n._indicator=(0,l.Z)("<div>").addClass("dx-position-indicator")}),d.Z.on(rn,(0,k.V4)(us.pB,RD),function(Ft){var qt,un,In,or;if(N){if(sn=-1,n._indicator.detach(),(0,O.S6)(n._$draggable,function(or,fr){(0,l.Z)(fr).css({top:Re[or].top+Ft.offset.y,left:Re[or].left+Ft.offset.x})}),we&&we.removeClass(m),(we=function FJ(n,t){var e;return(0,O.S6)(t,function(){(function RJ(n,t,e){var i=(0,l.Z)(n),r=i.offset();if(t>=r.left&&t<=r.left+(0,s.Y_)(i,!0)&&e>=r.top&&e<=r.top+(0,s.zp)(i,!0))return!0})(this,n.pageX,n.pageY)&&(e=(0,l.Z)(this))}),e}(Ft,Ot))&&(or={sourceGroup:Ue,sourceIndex:Q,sourceElement:N,targetGroup:we.attr("group"),targetIndex:we.find(t).index(se)},D&&D(or),or.cancel&&(we=void 0)),we&&Kt&&we.get(0)!==Kt.element().get(0)&&wn(),Kt&&Kt.moveIfNeed(Ft),!we)return void se.detach();!Kt&&we.attr("allow-scrolling")&&(Kt=function NJ(n){var t=null,e=n.scrollTop(),i=n.$element(),r=i.offset().top,m=(0,s.Cr)(i),D=0;function A(se){e=se.scrollOffset.top}function N(){Q(),n.scrollTo(e+=D),t=setTimeout(N,10)}function Q(){clearTimeout(t)}return n.on("scroll",A),{moveIfNeed:function(se){if(se.pageY<=r+20)D=-2;else{if(!(se.pageY>=r+m-20))return D=0,void Q();D=2}N()},element:function(){return i},dispose:function(){Q(),n.off("scroll",A)}}}(we.dxScrollable("instance"))),we.addClass(m);var Kn=we.find(e),Yn=Kn.find(t),ai=we.closest("."+R9).data("dxSortableOld"),gi=ai.option("useIndicator"),Ci="vertical"===(ai||n).option("direction"),Ki=function VJ(n,t,e){for(var i=[],r=[],m=0;m<n.length;m+=r.length)if((r=n.eq(m)).attr("item-group")&&(r=e.find("[item-group='"+r.attr("item-group")+"']")),r.is(":visible")){var D={item:r,index:i.length,posHorizontal:t?void 0:((0,s.Y_)(r.last(),!0)+r.last().offset().left+r.offset().left)/2};D.posVertical=t?(r.last().offset().top+r.offset().top+(0,s.zp)(r.last(),!0))/2:(0,s.zp)(r.last(),!0)+r.last().offset().top,i.push(D)}return i}(Yn,Ci,Kn),Bi=n._getItemOffset(Ci,Ki,Ft);if(Bi){if(In=Ki[Bi.index-1]&&Ki[Bi.index-1].item,(qt=Bi.item).hasClass(r)||In&&In.hasClass(r)&&In.is(":visible"))return void se.detach();if(sn=Bi.index,!gi)return void se.insertBefore(qt);var ri=we.attr("group")!==Ue,Fi=sn===Q,Gi=sn===Q+1;if(ri)return void n._renderIndicator(qt,Ci,we,n.option("rtlEnabled")&&!Ci);!Fi&&!Gi&&n._renderIndicator(qt,Ci,we,n.option("rtlEnabled")&&!Ci)}else{if((un=Yn.last()).is(":visible")&&un.hasClass(r))return;Kn.length&&(sn=Ki.length?Ki[Ki.length-1].index+1:0),gi?Yn.length&&n._renderIndicator(un,Ci,we,!n.option("rtlEnabled")||Ci):se.appendTo(Kn)}}}),d.Z.on(rn,(0,k.V4)(us.ut,RD),function(){if(wn(),N){var Ft=n.option("onChanged"),qt={sourceIndex:Q,sourceElement:N,sourceGroup:Ue,targetIndex:sn,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};we&&(we.removeClass(m),qt.targetGroup=we.attr("group"),(Ue!==qt.targetGroup||sn>-1)&&(Ft&&Ft(qt),qt.removeSourceElement&&N.remove())),n._indicator.detach(),qt.removeSourceClass&&N.removeClass(r),N=null,n._$draggable.remove(),n._$draggable=null,qt.removeTargetElement&&se.remove(),se.removeClass(m),se=null}})}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass(R9)},_dispose:function(){var n=this;n.callBase.apply(n,arguments),n._$draggable&&n._$draggable.detach(),n._indicator&&n._indicator.detach()},_optionChanged:function(n){switch(n.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":this._attachEventHandlers();break;case"direction":break;default:this.callBase(n)}},_useTemplates:function(){return!1}});(0,T.Z)("dxSortableOld",F9);const HJ=F9;var bh_targets_drag="drag",bh_classes_areaBox="dx-area-box",bh_classes_areaField="dx-area-field",bh_classes_fieldsContainer="dx-pivotgrid-fields-container",bh_classes_widget="dx-widget",bh_attrs_treeViewItem="tree-view-item";function GJ(n,t){var e=function ZJ(n,t){var e=n.hasClass(bh_classes_areaBox),i=n.attr(bh_attrs_treeViewItem);return e?function WJ(n,t){var e=n.clone();return t===bh_targets_drag&&(0,O.S6)(n,(i,r)=>{var m=parseInt((0,s.Y_)(r),10);e.eq(i).css("width",m)}),e}(n,t):i?function zJ(n){return n.clone().addClass(bh_classes_areaBox).css("width",parseInt((0,s.Y_)(n)))}(n):function UJ(n){return(0,l.Z)("<div>").addClass(bh_classes_areaField).addClass(bh_classes_areaBox).text(n.text())}(n)}(n,t);return t===bh_targets_drag?function KJ(n){return(0,l.Z)("<div>").addClass(bh_classes_fieldsContainer).addClass(bh_classes_widget).append(n)}(e):e}var jJ=kP.U3.inherit({_getSearchExpr:function(n){return n.useDefaultSearchExpr=!0,this.callBase(n)}});function RP(n,t){var e=t;return(0,w.$K)(t.groupIndex)&&(e=n.getAreaFields(t.area,!0)[t.areaIndex]),e}function N9(n){return n=n||{},JSON.stringify([n.fields,n.columnExpandedPaths,n.rowExpandedPaths])}var H9=ca.Z.inherit(MJ.Z).inherit(AJ.Z).inherit(kP.Tr).inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:yn.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:yn.Z.format("dxDataGrid-headerFilterOK"),cancel:yn.Z.format("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new jJ(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var n=this.option("dataSource");n&&n.fields&&n.load&&(this._dataSource=n)},_optionChanged:function(n){switch(n.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&N9(this._dataSource.state())!==N9(n.value)?this._dataSource.state(n.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(n)}},renderField:function(n,t){var e=(0,l.Z)("<div>").addClass("dx-area-field-content").text(n.caption||n.dataField),i=(0,l.Z)("<div>").addClass("dx-area-field").addClass("dx-area-box").data("field",n).append(e),r=RP(this._dataSource,n);return"data"!==n.area&&(n.allowSorting&&this._applyColumnState({name:"sort",rootElement:i,column:{alignment:this.option("rtlEnabled")?"right":"left",sortOrder:"desc"===n.sortOrder?"desc":"asc",allowSorting:n.allowSorting},showColumnLines:t}),this._applyColumnState({name:"headerFilter",rootElement:i,column:{alignment:this.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!n.groupIndex,allowSorting:n.allowSorting},showColumnLines:t})),n.groupName&&i.attr("item-group",n.groupName),i},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var n=this;n._createComponent(n.$element(),HJ,(0,y.l)({allowDragging:n.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var t=n._dataSource,e=(0,l.Z)(this).closest(".dx-sortable-old"),i=e.data("dxPivotGrid"),r=e.data("dxPivotGridFieldChooser");return i?i.getDataSource()===t:!!r&&r.option("dataSource")===t},itemRender:GJ,onDragging:function(t){var e=t.sourceElement.data("field"),i=t.targetGroup;t.cancel=!1,!0===e.isMeasure?("column"===i||"row"===i||"filter"===i)&&(t.cancel=!0):!1===e.isMeasure&&"data"===i&&(t.cancel=!0)},useIndicator:!0,onChanged:function(t){var e=t.sourceElement.data("field");if(t.removeSourceElement=!!t.sourceGroup,n._adjustSortableOnChangedArgs(t),e){var r,i=t.targetIndex,m=0;n._processDemandState(D=>{var A=D.getAreaFields(e.area,!0);r=RP(D,e);var Q=A.filter(se=>!1!==se.visible)[i-1];Q&&(m=A.filter(se=>!1===se.visible&&se.areaIndex<=Q.areaIndex).length)}),n._applyChanges([r],{area:t.targetGroup,areaIndex:i+m})}}},n._getSortableOptions()))},_processDemandState:function(n){var t="instantly"===this.option("applyChangesMode"),e=this._dataSource;if(t)n(e,t);else{var i=e.state(),r=this.option("state");r&&e.state(r,!0),n(e,t),e.state(i,!0)}},_applyChanges(n,t){var e=this;e._processDemandState(function(i,r){n.forEach(m=>{var{index:D}=m;i.field(D,t)}),r?i.load():e._changedHandler()})},_adjustSortableOnChangedArgs:function(n){n.removeSourceElement=!1,n.removeTargetElement=!0,n.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(n){var t=this;d.Z.on(n||t.$element(),v.u,".dx-area-field.dx-area-box",function(i){var r=(0,l.Z)(i.currentTarget).data("field"),m=(0,y.l)(!0,{},RP(t._dataSource,r)),D=(0,l.Z)(i.target).hasClass("dx-header-filter"),A=t._dataSource,N=m.groupName?"tree":"list",Q=A.paginate()&&"list"===N;D?t._headerFilterView.showHeaderFilterMenu((0,l.Z)(i.currentTarget),(0,y.l)(m,{type:N,encodeHtml:t.option("encodeHtml"),dataSource:{useDefaultSearch:!Q,load:function(se){var we=se.userData;if(we.store)return we.store.load(se);var Re=new P.BH;return A.getFieldValues(m.index,t.option("headerFilter.showRelevantValues"),Q?se:void 0).done(function(Ue){var st=t.option("headerFilter.texts.emptyValue");Ue.forEach(Ot=>{Ot.text||(Ot.text=st)}),Q?Re.resolve(Ue):(we.store=new Zb.Z(Ue),we.store.load(se).done(Re.resolve).fail(Re.reject))}).fail(Re.reject),Re},postProcess:function(se){return function(n,t){var e=[],i=!!t.groupName,r="exclude"===t.filterType;t.filterValues&&(0,O.S6)(t.filterValues,function(m,D){e.push(Array.isArray(D)?D.join("/"):D&&D.valueOf())}),tl(n,function(m){var D=m[0],A=Xu(m),N=i?(0,O.UI)(m,function(se){return se.text}).reverse().join("/"):D.text;D.value=i?A.slice(0):D.key||D.value;var Q=i?A.join("/"):D.value&&D.value.valueOf();D.children&&(D.items=D.children,D.children=null),(0,kP.By)(D,D.key&&e.includes(N)||e.includes(Q),r)})}(se,m),se}},apply:function(){t._applyChanges([m],{filterValues:this.filterValues,filterType:this.filterType})}})):r.allowSorting&&"data"!==r.area&&t._applyChanges([r],{sortOrder:"desc"===r.sortOrder?"asc":"desc"})})},_initTemplates:E.ZT,addWidgetPrefix:function(n){return"dx-pivotgrid-"+n}});(0,T.Z)("dxPivotGridFieldChooserBase",H9);const z9=H9;var ly="<div>",LD=PP.inherit({ctor:function(n,t){this.callBase(n),this._area=t},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,l.Z)(ly).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+s9(this._area)+"Fields")},_renderButton:function(n){var t=this,e=(0,l.Z)("<td>").appendTo((0,l.Z)("<tr>").appendTo(n));t.component._createComponent((0,l.Z)(ly).appendTo(e),ey.Z,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var r=t.tableElement().find(".dx-fields-area-popup").dxPopup("instance");r.option("visible")||r.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(n,t){return{contentTemplate:function(){return(0,l.Z)("<table>").addClass("dx-area-field-container").append((0,l.Z)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(n))},height:"auto",width:"auto",position:{at:"left",my:"left",of:t},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,hideOnOutsideClick:!0,container:t.parent()}},_renderPopup:function(n,t){var e=n.find(".dx-button"),i=this._getPopupOptions(t,e),r=this.component.$element().dxPivotGridFieldChooserBase("instance");this._rowPopup&&this._rowPopup.$element().remove(),this._rowPopup=this.component._createComponent((0,l.Z)(ly).appendTo(n),Tp.Z,i),this._rowPopup.$element().addClass("dx-fields-area-popup"),this._rowPopup.content().addClass("dx-pivotgrid-fields-container"),this._rowPopup.content().parent().attr("group","row"),r.subscribeToEvents(this._rowPopup.content()),r.renderSortable(this._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(n,t){var e=this,i=this.groupElement(),r=this.isVisible(),m=e.component.$element().dxPivotGridFieldChooserBase("instance"),D=(0,l.Z)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(n),A=e._area,N=(0,l.Z)("<tr>");i.toggleClass("dx-hidden",!r),n.addClass("dx-area-field-container"),r&&((0,O.S6)(t,function(Q,se){if(se.area===A&&!1!==se.visible){var we=(0,l.Z)("<td>").append(m.renderField(se,"row"===se.area)),Re=we.find(".dx-column-indicators");Re.length&&e._shouldCreateButton()&&Re.insertAfter(Re.next()),we.appendTo(N),function XJ(n,t,e,i){e&&e.groupName&&e.groupName===n.groupName&&(0,l.Z)(ly).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(i),t&&t.groupName&&t.groupName===n.groupName&&(0,l.Z)(ly).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(i)}(se,t[Q+1],t[Q-1],we)}}),N.children().length||(0,l.Z)("<td>").append((0,l.Z)(ly).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+A+"FieldArea"))).appendTo(N),e._shouldCreateButton()?(e._renderButton(D),e._renderPopup(n,N)):D.append(N))},setGroupWidth:function(n){(0,P9.cl)(this.groupElement(),n)},setGroupHeight:function(n){(0,P9.QQ)(this.groupElement(),n)},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:E.ZT}),W9=u(7463),ll="<div>",qJ=(0,mi.Ym)(),U9="dx-pivotgridfieldchooser-container";function Z9(n,t){var e=[];if(n.items)for(var i=0;i<n.items.length;i++)e.push.apply(e,Z9(n.items[i],t));else(0,w.$K)(n.index)&&e.push(t[n.index]);return e}function LP(n,t){if(n.items)for(var e=0;e<n.items.length;e++){var i=LP(n.items[e],t);if(i)return i}if(t(n))return n}var K9=[function(n,t){return+!!t.isMeasure-!!n.isMeasure},function(n,t){return+!(!t.items||!t.items.length)-!(!n.items||!n.items.length)},function(n,t){return+!!(!1===n.isMeasure&&n.field&&n.field.levels&&n.field.levels.length)-!!(!1===t.isMeasure&&t.field&&t.field.levels&&t.field.levels.length)},vP(function(n){return n.text})];function tQ(n,t){for(var e=0,i=0;!e&&K9[i];)e=K9[i++](n,t);return e}function G9(n){return n.find(".dx-scrollable").dxScrollable("instance")}var j9=z9.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{height:400,layout:0,dataSource:null,encodeHtml:!0,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:yn.Z.format("dxPivotGrid-columnFields"),rowFields:yn.Z.format("dxPivotGrid-rowFields"),dataFields:yn.Z.format("dxPivotGrid-dataFields"),filterFields:yn.Z.format("dxPivotGrid-filterFields"),allFields:yn.Z.format("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var n=this;n._expandedPaths=[],n._changedHandler=n._changedHandler||function(){(0,O.S6)(n._dataChangedHandlers,function(t,e){e()}),n._fireContentReadyAction(),n._skipStateChange=!0,n.option("state",n._dataSource.state()),n._skipStateChange=!1},n._disposeDataSource(),n.callBase(),n._dataSource&&n._dataSource.on("changed",n._changedHandler)},_disposeDataSource:function(){var n=this._dataSource;n&&(n.off("changed",this._changedHandler),this._dataSource=void 0)},_dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(n,t){this._actions[n](t)},_setOptionsByReference:function(){this.callBase(),(0,y.l)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(n){switch(n.name){case"dataSource":this._refreshDataSource(),this._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":case"encodeHtml":this._invalidate();break;case"onContextMenuPreparing":this._actions[n.name]=this._createActionByOption(n.name);break;default:this.callBase(n)}},_clean:function(n){!n&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children("."+U9).remove()},_renderLayout0:function(n){n.addClass("dx-layout-0");var t=(0,l.Z)(ll).addClass("dx-row").appendTo(n),e=(0,l.Z)(ll).addClass("dx-row").appendTo(n),i=(0,l.Z)(ll).addClass("dx-col").appendTo(t),r=(0,l.Z)(ll).addClass("dx-col").appendTo(t),m=(0,l.Z)(ll).addClass("dx-col").appendTo(e),D=(0,l.Z)(ll).addClass("dx-col").appendTo(e);this._renderArea(i,"all"),this._renderArea(r,"row"),this._renderArea(r,"column"),this._renderArea(m,"filter"),this._renderArea(D,"data")},_renderLayout1:function(n){var t=(0,l.Z)(ll).addClass("dx-col").appendTo(n),e=(0,l.Z)(ll).addClass("dx-col").appendTo(n);this._renderArea(t,"all"),this._renderArea(e,"filter"),this._renderArea(e,"row"),this._renderArea(e,"column"),this._renderArea(e,"data")},_renderLayout2:function(n){n.addClass("dx-layout-2");var t=(0,l.Z)(ll).addClass("dx-row").appendTo(n);this._renderArea(t,"all");var e=(0,l.Z)(ll).addClass("dx-row").appendTo(n),i=(0,l.Z)(ll).addClass("dx-col").appendTo(e),r=(0,l.Z)(ll).addClass("dx-col").appendTo(e);this._renderArea(i,"filter"),this._renderArea(i,"row"),this._renderArea(r,"column"),this._renderArea(r,"data")},_initMarkup:function(){var n=this.$element(),t=(0,l.Z)(ll).addClass(U9).appendTo(n),e=this.option("layout");this.callBase(),n.addClass("dx-pivotgridfieldchooser").addClass("dx-pivotgrid-fields-container"),this._dataChangedHandlers=[];var i=this._dataSource,r="instantly"!==this.option("applyChangesMode")&&i&&i.state();r&&this.option("state")&&i.state(this.option("state"),!0),0===e?this._renderLayout0(t):1===e?this._renderLayout1(t):this._renderLayout2(t),r&&i.state(r,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){(!this._dataSource||!this._dataSource.isLoading())&&this.callBase()},_getContextMenuArgs:function(n){var i,r,t=(0,l.Z)(n.target).closest(".dx-area-field"),e=(0,l.Z)(n.target).closest(".dx-area-fields");if(t.length){var m=t.data("field");m&&(i=this.getDataSource().field(m.index)||m)}return e.length&&(r=e.attr("group")),{event:n,field:i,area:r,items:[]}},_renderContextMenu:function(){var n=this,t=n.$element();n._contextMenu&&n._contextMenu.$element().remove(),n._contextMenu=n._createComponent((0,l.Z)(ll).appendTo(t),Xv.Z,{onPositioning:function(e){var i=e.event;if(i){var r=n._getContextMenuArgs(i);n._trigger("onContextMenuPreparing",r),r.items&&r.items.length?e.component.option("items",r.items):e.cancel=!0}},target:t,onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(n,t,e){var r,i=this,m=[],D=[],A=t[0],N={};return A?((0,O.S6)(n,function(Q,se){var we=se[A]||"";N[we]=N[we]||[],N[we].push(se),void 0===r&&(r=!0),r=r&&!0===se.isMeasure}),(0,O.S6)(N,function(Q,se){var we=e?e+"."+Q:Q,Re=i._createTreeItems(se,t.slice(1),we);Q?D.push({key:Q,text:Q,path:we,isMeasure:Re.isMeasure,expanded:i._expandedPaths.includes(we),items:Re}):m=Re}),(m=D.concat(m)).isMeasure=r):(0,O.S6)(n,function(Q,se){var we;!0===se.isMeasure&&(we="measure"),!1===se.isMeasure&&(we=se.groupName?"hierarchy":"dimension"),m.push({index:se.index,field:se,key:se.dataField,selected:(0,w.$K)(se.area),text:se.caption||se.dataField,icon:we,isMeasure:se.isMeasure,isDefault:se.isDefault})}),m},_createFieldsDataSource:function(n){var t=n&&n.fields()||[];t=t.filter(i=>!1!==i.visible&&!(0,w.$K)(i.groupIndex));var e=this._createTreeItems(t,["dimension","displayFolder"]);return yP(e,function(i){i.sort(tQ)},0,"items"),e},_renderFieldsTreeView:function(n){var t=this,e=t._dataSource,i=t._createComponent(n,W9.Z,{dataSource:t._createFieldsDataSource(e),showCheckBoxesMode:"normal",expandNodesRecursive:!1,searchEnabled:t.option("allowSearch"),searchTimeout:t.option("searchTimeout"),useNativeScrolling:!1,itemTemplate:function(r,m,D){var A=(0,l.Z)("<div>").toggleClass("dx-area-field",!r.items).attr(bh_attrs_treeViewItem,!0).data("field",r.field).appendTo(D);r.icon&&(0,W.H)(r.icon).appendTo(A),(0,l.Z)("<span>").text(r.text).appendTo(A)},onItemCollapsed:function(r){var m=t._expandedPaths.indexOf(r.itemData.path);m>=0&&t._expandedPaths.splice(m,1)},onItemExpanded:function(r){t._expandedPaths.indexOf(r.itemData.path)<0&&t._expandedPaths.push(r.itemData.path)},onItemSelectionChanged:function(r){var D,A,Q,m=r.itemData,N=!0;if(m.items){if(m.selected)return void i.unselectItem(m);if(t._processDemandState(()=>{A=Z9(m,e.fields());for(var we=0;we<A.length;we++)if(A[we].area){N=!1;break}}),N){var se=LP(m,function(we){return we.isDefault})||LP(m,function(we){return(0,w.$K)(we.index)});return void(se&&i.selectItem(se))}}else D=e.fields()[m.index],m.selected&&(Q=D.isMeasure?"data":"column"),D&&(A=[D]);t._applyChanges(A,{area:Q,areaIndex:void 0})}});t._dataChangedHandlers.push(function(){var r=G9(n),m=r?r.scrollTop():0;i.option({dataSource:t._createFieldsDataSource(e)}),(r=G9(n))&&(r.scrollTo({y:m}),r.update())})},_renderAreaFields:function(n,t){var e=this,i=e._dataSource,r=i?(0,y.l)(!0,[],i.getAreaFields(t,!0)):[];n.empty(),(0,O.S6)(r,function(m,D){!1!==D.visible&&e.renderField(D,!0).appendTo(n)})},_renderArea:function(n,t){var D,A,e=this,i=(0,l.Z)(ll).addClass("dx-area").appendTo(n),r=(0,l.Z)(ll).addClass("dx-area-fields-header").appendTo(i),m=e.option("texts."+t+"Fields");(0,l.Z)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+t).appendTo(r),(0,l.Z)("<span>").html("&nbsp;").appendTo(r),(0,l.Z)("<span>").addClass("dx-area-caption").text(m).appendTo(r);var N=(0,l.Z)(ll).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(i);"all"!==t?(N.attr("group",t).attr("allow-scrolling",!0),D=(0,l.Z)(ll).addClass("dx-area-field-container").appendTo(N),A=function(){e._renderAreaFields(D,t)},e._dataChangedHandlers.push(A),A(),N.dxScrollable({useNative:!1})):(i.addClass("dx-all-fields"),N.addClass("dx-treeview-border-visible"),e._renderFieldsTreeView(N))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var n=this.$element().find(".dx-treeview").dxTreeView("instance");n&&(n.option("searchValue",""),n.collapseAll())},applyChanges:function(){var n=this.option("state");(0,w.$K)(n)&&this._dataSource.state(n)},cancelChanges:function(){var n=this._dataSource;return!n.isLoading()&&(this.option("state",n.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(n){n&&qJ&&this.updateDimensions()}});(0,T.Z)("dxPivotGridFieldChooser",j9);const $9=j9;var nQ=u(6314),rQ={exportToExcel:function(){(0,il.xD)(this.getDataProvider(),{fileName:this.option("export.fileName"),format:"EXCEL",rtlEnabled:this.option("rtlEnabled"),exportingAction:this._actions.onExporting,exportedAction:this._actions.onExported,fileSavingAction:this._actions.onFileSaving},il.Ak.getData)},_getLength:function(n){var t,e=n[0].length,i=0;for(t=0;t<e;t++)i+=n[0][t].colspan||1;return i},_correctCellsInfoItemLengths:function(n,t){for(var e=0;e<n.length;e++)for(;n[e].length<t;)n[e].push({});return n},_calculateCellInfoItemLength:function(n){for(var t=0,e=0;e<n.length;e++)t+=(0,w.$K)(n[e].colspan)?n[e].colspan:1;return t},_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_getAllItems:function(n,t,e){var i,r,m=e,D=this._getLength(t),A=n.length;if(n.length>0&&n[0].length>0&&e.length>0&&0===e[0].length){var N=this._calculateCellInfoItemLength(n[0]);N>0&&(m=this._correctCellsInfoItemLengths(e,N))}var Q=n.concat(m);for(r=0;r<t.length;r++)for(i=t[r].length-1;i>=0;i--)(0,w.$K)(Q[r+A])||(Q[r+A]=[]),Q[r+A].splice(0,0,(0,y.l)({},t[r][i]));return Q[0].splice(0,0,(0,y.l)({},this._getEmptyCell(),{alignment:(0,Yo.q)(this._options.rtlEnabled),colspan:D,rowspan:A})),(0,nQ.$)(Q,this._getEmptyCell())},getDataProvider:function(){return new oQ(this)}},oQ=ar.Z.inherit({ctor:function(n){this._exportController=n},ready:function(){this._initOptions();var n=this._options;return(0,P.gx)(n.items).done(t=>{var i=t[t[0][0].rowspan-1];(0,O.S6)(i,(r,m)=>{m.width=100}),n.columns=i,n.items=t})},_initOptions:function(){var n=this._exportController,t=n._dataController,e=new P.BH;t.beginLoading(),setTimeout(function(){var i=(0,y.l)(!0,[],t.getColumnsInfo(!0)),r=(0,y.l)(!0,[],t.getRowsInfo(!0)),m=t.getCellsInfo(!0);e.resolve(n._getAllItems(i,r,m)),t.endLoading()}),this._options={items:e,rtlEnabled:n.option("rtlEnabled"),dataFields:n.getDataSource().getAreaFields("data"),customizeExcelCell:n.option("export.customizeExcelCell"),rowsArea:n._rowsArea,columnsArea:n._columnsArea}},getColumns:function(){return this._options.columns},getColumnsWidths:function(){var n=this._options.columnsArea,t=this._options.rowsArea,e=this._options.columns;return!(0,mi.Ym)()||"virtual"===n.option("scrolling.mode")||n.element().is(":hidden")?e.map(r=>100):t.getColumnsWidth().concat(n.getColumnsWidth())},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(n,t){var e=this._options.items,i=e[n]&&e[n][t];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:this.getRowAreaColCount(),y:this.getColumnAreaRowCount()}},getCellType:function(n,t){var e=this.getStyles()[this.getStyleId(n,t)];return e&&e.dataType||"string"},getCellData:function(n,t,e){var i={},r=this._options.items,m=r[n]&&r[n][t]||{};if(e){i.cellSourceData=m;var D=this._tryGetAreaName(m,n,t);D&&(i.cellSourceData.area=D),i.cellSourceData.rowIndex=n,i.cellSourceData.columnIndex=t}return i.value="string"===this.getCellType(n,t)?m.text:m.value,i.cellSourceData&&i.cellSourceData.isWhiteSpace&&(i.value=""),i},_tryGetAreaName(n,t,e){return this.isColumnAreaCell(t,e)?"column":this.isRowAreaCell(t,e)?"row":(0,w.$K)(n.dataIndex)?"data":void 0},isRowAreaCell(n,t){return n>=this.getColumnAreaRowCount()&&t<this.getRowAreaColCount()},isColumnAreaCell(n,t){return t>=this.getRowAreaColCount()&&n<this.getColumnAreaRowCount()},getColumnAreaRowCount(){return this._options.items[0][0].rowspan},getRowAreaColCount(){return this._options.items[0][0].colspan},getHeaderStyles(){return[{alignment:"center",dataType:"string"},{alignment:(0,Yo.q)(this._options.rtlEnabled),dataType:"string"}]},getDataFieldStyles(){var n=this._options.dataFields,t={alignment:this._options.rtlEnabled?"left":"right"},e=[];return n.length?(n.forEach(i=>{e.push((0,di.Z)({},t,{format:i.format,dataType:this.getCellDataType(i)}))}),e):[t]},getStyles:function(){return this._styles||(this._styles=[...this.getHeaderStyles(),...this.getDataFieldStyles()]),this._styles},getCellDataType:function(n){if(n&&n.customizeText)return"string";if(n.dataType)return n.dataType;if(n.format){if(1===qv.Z.parse(Va.Z.format(1,n.format)))return"number";if(Va.Z.format(new Date,n.format))return"date"}return"string"},getStyleId:function(n,t){var e=this._options.items,i=e[n]&&e[n][t]||{};return 0===t&&0===n||this.isColumnAreaCell(n,t)?0:this.isRowAreaCell(n,t)?1:this.getHeaderStyles().length+(i.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,w.$K)(this._options.customizeExcelCell)},customizeExcelCell:function(n){this._options.customizeExcelCell&&this._options.customizeExcelCell(n)}}),aQ={number:"numeric",date:"datetime"},BP="dxPivotGridUnbinding";function X9(n,t){var e=[],i=t.length-1;return(0,O.S6)(n,function(r,m){e.push(m.text||_P(m.value,t[i-r]))}),e.reverse()}function q9(n){var t=0;return tl(n,function(e){t=Math.max(t,e.length-1)}),t}function uQ(n,t){var e=n.getAreaFields("data");if("args"!==t.putDataFieldsInto&&"singleAxis"!==t.dataFieldsDisplayMode||1===e.length){var i=[];return(0,O.S6)(e,function(r,m){var D={name:m.caption,title:m.caption,valueType:aQ[m.dataType]||m.dataType,label:{format:m.format}};m.customizeText&&(D.label.customizeText=function(A){return m.customizeText.call(m,A)}),"splitPanes"===t.dataFieldsDisplayMode&&(D.pane=m.caption),i.push(D)}),i}return[{}]}function dQ(n,t){var e=[],i=n.getAreaFields("data");return i.length>1&&"splitPanes"===t.dataFieldsDisplayMode&&"args"!==t.putDataFieldsInto&&(0,O.S6)(i,function(r,m){e.push({name:m.caption})}),e.length||e.push({}),e}const gQ={bindChart:function(n,t){t=(0,y.l)({},t);var e=this,i=function(){t.grandTotalText=e.option("texts.grandTotal");var m=function cQ(n,t){var e=t.customizeSeries,i=t.customizeChart,r={valueAxis:uQ(n,t),panes:dQ(n,t)},m={};return i&&(r=(0,y.l)(!0,{},r,i(r))),r.dataSource=function lQ(n,t,e){var Re,Ue,st,Ot,Kt,sn,wn,rn,Ft,qt,i=n.getData(),r=[],m=n.getAreaFields("data"),D=n.getAreaFields("row"),A=n.getAreaFields("column"),N=[{index:i.grandTotalColumnIndex,children:i.columns}],Q=[{index:i.grandTotalRowIndex,children:i.rows}],se=q9(Q),we=q9(N);function un(){var gi,Yn=(i.values[st]||[])[wn]||[],ai=Yn[Re],Ci={rowPath:sn,maxRowLevel:se,rowPathFormatted:Kt,rowFields:D,columnPathFormatted:qt,maxColumnLevel:we,columnPath:Ft,columnFields:A,dataFields:m,dataIndex:Re,dataValues:Yn,visible:rn&&Ot},Ki=(t.inverted?qt:Kt).join(" - "),Bi=(t.inverted?Kt:qt).join("/");m.length>1&&(("args"===t.putDataFieldsInto||"both"===t.putDataFieldsInto)&&(Bi+=" | "+Ue.caption),"args"!==t.putDataFieldsInto&&(Ki+=" | "+Ue.caption,"singleAxis"!==t.dataFieldsDisplayMode&&(gi=Ue.caption))),Ci.chartDataItem={val:void 0===ai?null:ai,series:Ki,arg:Bi},Ci=function sQ(n,t){var e=n.chartDataItem,i=t&&t(n);return i?(e=(0,y.l)({},e,i.chartDataItem),i=(0,y.l)({},n,i,{chartDataItem:e})):n}(Ci,t.processCell),Ci.visible&&(e[Ci.chartDataItem.series]=e[Ci.chartDataItem.series]||gi,r.push(Ci.chartDataItem))}function In(Yn){tl(Q,function(ai){st=ai[0].index,ai=ai.slice(0,ai.length-1),Ot=se===ai.length,sn=Xu(ai),Kt=X9(ai,D),0===sn.length&&(Kt=[t.grandTotalText]),tl(N,function(gi){wn=gi[0].index,gi=gi.slice(0,gi.length-1),rn=we===gi.length,Ft=Xu(gi),qt=X9(gi,A),0===Ft.length&&(qt=[t.grandTotalText]),Yn()})})}function Kn(Yn){(0,O.S6)(m,function(ai,gi){Ue=gi,Re=ai,Yn()})}return!1===t.alternateDataFields?Kn(function(){In(un)}):In(function(){Kn(un)}),r}(n,t,m),r.seriesTemplate={nameField:"series",customizeSeries:function(D){var A={};return"splitPanes"===t.dataFieldsDisplayMode?A.pane=m[D]:"singleAxis"!==t.dataFieldsDisplayMode&&(A.axis=m[D]),e&&(A=(0,y.l)(A,e(D,A))),A}},r}(e.getDataSource(),t);n.option(m)};if(n=function hQ(n){if(!n)return!1;if(n.NAME)return"dxChart"===n.NAME&&n;var t=(0,l.Z)(n);return t.data("dxChart")&&t.dxChart("instance")}(n),!n)return null;(function pQ(n){var t=n.$element().data(BP);t&&t()})(n),e.on("changed",i),i();var r=function(){n.$element().removeData(BP),e.off("changed",i)};return n.on("disposing",r),this.on("disposing",r),n.$element().data(BP,r),r}};var J9=(0,mi.Jj)(),Q9="dx-area-data-cell",FP="dx-area-row-cell",eV="dx-area-column-cell",VP="dx-area-description-cell",tV="dx-pivotgrid-border",nV="dx-pivotgrid",BD="dx-bottom-border",iV="dx-area-fields",rV="dx-incompressible-fields",NP="dx-overflow-hidden",FD="<tr>",uy="<td>",G0="<div>",aV=["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"];function HP(n){var t=0;return(0,O.S6)(n,function(e,i){t+=i||0}),t}function zP(n,t){for(var e=t/n.length,i=0;i<n.length;i++)n[i]-=e}function sV(n){n.off("scroll").off("stop")}function lV(n,t){var e="width"===t?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,O.S6)(n,function(r,m){var D=J9.getComputedStyle(m.get(0));e.forEach(function(A){i+=parseFloat(D[A])||0})}),i}var uV=ca.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100,loadTwoPagesOnStart:!0},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:yn.Z.format("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:yn.Z.format("dxPivotGrid-columnFieldArea"),rowFieldArea:yn.Z.format("dxPivotGrid-rowFieldArea"),filterFieldArea:yn.Z.format("dxPivotGrid-filterFieldArea"),dataFieldArea:yn.Z.format("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column",export:{enabled:!1,fileName:"PivotGrid"},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:yn.Z.format("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:yn.Z.format("dxPivotGrid-grandTotal"),total:yn.Z.getFormatter("dxPivotGrid-total"),noData:yn.Z.format("dxDataGrid-noDataText"),showFieldChooser:yn.Z.format("dxPivotGrid-showFieldChooser"),expandAll:yn.Z.format("dxPivotGrid-expandAll"),collapseAll:yn.Z.format("dxPivotGrid-collapseAll"),sortColumnBySummary:yn.Z.getFormatter("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:yn.Z.getFormatter("dxPivotGrid-sortRowBySummary"),removeAllSorting:yn.Z.format("dxPivotGrid-removeAllSorting"),exportToExcel:yn.Z.format("dxDataGrid-exportToExcel"),dataNotAvailable:yn.Z.format("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:yn.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:yn.Z.format("dxDataGrid-headerFilterOK"),cancel:yn.Z.format("dxDataGrid-headerFilterCancel")}}})},_updateCalculatedOptions:function(n){var t=this;(0,O.S6)(n,function(e,i){(0,O.S6)(aV,function(r,m){(void 0===i[m]||i._initProperties&&m in i._initProperties&&void 0===i._initProperties[m])&&Ap(i,m,t.option(m))})})},_getDataControllerOptions:function(){var n=this;return{component:n,dataSource:n.option("dataSource"),texts:n.option("texts"),showRowTotals:n.option("showRowTotals"),showRowGrandTotals:n.option("showRowGrandTotals"),showColumnTotals:n.option("showColumnTotals"),showTotalsPrior:n.option("showTotalsPrior"),showColumnGrandTotals:n.option("showColumnGrandTotals"),dataFieldArea:n.option("dataFieldArea"),rowHeaderLayout:n.option("rowHeaderLayout"),hideEmptySummaryCells:n.option("hideEmptySummaryCells"),onFieldsPrepared:function(t){n._updateCalculatedOptions(t)}}},_initDataController:function(){var n=this;n._dataController&&n._dataController.dispose(),n._dataController=new dJ(n._getDataControllerOptions()),(0,mi.Ym)()&&n._dataController.changed.add(function(){n._render()}),n._dataController.scrollChanged.add(function(e){n._scrollLeft=e.left,n._scrollTop=e.top}),n._dataController.loadingChanged.add(function(e){n._updateLoading()}),n._dataController.progressChanged.add(n._updateLoading.bind(n)),n._dataController.dataSourceChanged.add(function(){n._trigger("onChanged")});var t=n.option("onExpandValueChanging");t&&n._dataController.expandValueChanging.add(function(e){t(e)})},_init:function(){this.callBase(),this._initDataController(),this._scrollLeft=this._scrollTop=null,this._initActions()},_initActions:function(){this._actions={onChanged:this._createActionByOption("onChanged"),onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing"),onCellClick:this._createActionByOption("onCellClick"),onExporting:this._createActionByOption("onExporting"),onExported:this._createActionByOption("onExported"),onFileSaving:this._createActionByOption("onFileSaving"),onCellPrepared:this._createActionByOption("onCellPrepared")}},_trigger:function(n,t){this._actions[n](t)},_optionChanged:function(n){if(aV.indexOf(n.name)>=0){var t=this.getDataSource().fields();this._updateCalculatedOptions(t)}switch(n.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":this._initDataController(),this._fieldChooserPopup.hide(),this._renderFieldChooser(),this._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":case"onExpandValueChanging":break;case"rtlEnabled":this.callBase(n),this._renderFieldChooser(),this._renderContextMenu(),(0,mi.Ym)()&&this._renderLoadPanel(this._dataArea.groupElement(),this.$element()),this._invalidate();break;case"export":this._renderDescriptionArea();break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":this._actions[n.name]=this._createActionByOption(n.name);break;case"fieldChooser":this._renderFieldChooser(),this._renderDescriptionArea();break;case"loadPanel":(0,mi.Ym)()&&("loadPanel.enabled"===n.fullName?(clearTimeout(this._hideLoadingTimeoutID),this._renderLoadPanel(this._dataArea.groupElement(),this.$element())):(this._renderLoadPanel(this._dataArea.groupElement(),this.$element()),this._invalidate()));break;case"fieldPanel":this._renderDescriptionArea(),this._invalidate();break;case"headerFilter":this._renderFieldChooser(),this._invalidate();break;case"showBorders":this._tableElement().toggleClass(tV,!!n.value),this.updateDimensions();break;case"wordWrapEnabled":this._tableElement().toggleClass("dx-word-wrap",!!n.value),this.updateDimensions();break;case"rowHeaderLayout":this._tableElement().find("."+FP).toggleClass("dx-area-tree-view","tree"===n.value),this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"height":case"width":this._hasHeight=null,this.callBase(n),this.resize();break;default:this.callBase(n)}},_updateScrollPosition:function(n,t,e){var i,r,m=this._scrollTop||this._scrollLeft;this._scrollUpdating||(this._scrollUpdating=!0,t&&!t.hasScroll()&&this._hasHeight&&(this._scrollTop=null),n&&!n.hasScroll()&&(this._scrollLeft=null),(null!==this._scrollTop||null!==this._scrollLeft||m||this.option("rtlEnabled"))&&(e.scrollTo({left:r=this._scrollLeft||0,top:i=this._scrollTop||0}),n.scrollTo({left:r}),t.scrollTo({top:i}),this._dataController.updateWindowScrollPosition(this._scrollTop)),this._scrollUpdating=!1)},_subscribeToEvents:function(n,t,e){var i=this;(0,O.S6)([n,t,e],function(r,m){!function yQ(n,t){sV(n),n.on("scroll",t).on("stop",t)}(m,D=>{return Q=D.scrollOffset,we="vertical"!==(se=m._getScrollable()).option("direction")?Q.left:i._scrollLeft,Re="horizontal"!==se.option("direction")&&i._hasHeight?Q.top:i._scrollTop,void(((i._scrollLeft||0)!==(we||0)||(i._scrollTop||0)!==(Re||0))&&(i._scrollLeft=we,i._scrollTop=Re,i._updateScrollPosition(n,t,e),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop)));var Q,se,we,Re})}),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(e.groupElement())},_clean:E.ZT,_needDelayResizing:function(n){return n.length*(n.length?n[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var n,t=this,e=t._pivotGridContainer,i=t.option("fieldChooser")||{},r="onDemand"===i.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:yn.Z.format("OK"),onClick:function(A){t._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),t._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:yn.Z.format("Cancel"),onClick:function(A){t._fieldChooserPopup.hide()}}}]:[],m={layout:i.layout,texts:i.texts||{},dataSource:t.getDataSource(),allowSearch:i.allowSearch,searchTimeout:i.searchTimeout,width:void 0,height:void 0,headerFilter:t.option("headerFilter"),encodeHtml:null!==(n=t.option("fieldChooser.encodeHtml"))&&void 0!==n?n:t.option("encodeHtml"),applyChangesMode:i.applyChangesMode,onContextMenuPreparing:function(A){t._trigger("onContextMenuPreparing",A)}},D={shading:!1,title:i.title,width:i.width,height:i.height,showCloseButton:!0,resizeEnabled:!0,minWidth:i.minWidth,minHeight:i.minHeight,toolbarItems:r,onResize:function(A){A.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(A){t._createComponent(A.component.content(),$9,m)},onHidden:function(A){var N=A.component.$content().dxPivotGridFieldChooser("instance");N.resetTreeView(),N.cancelChanges()}};t._fieldChooserPopup?(t._fieldChooserPopup.option(D),t._fieldChooserPopup.$content().dxPivotGridFieldChooser(m)):t._fieldChooserPopup=t._createComponent((0,l.Z)(G0).addClass("dx-fieldchooser-popup").appendTo(e),Tp.Z,D)},_renderContextMenu:function(){var n=this,t=n._pivotGridContainer;n._contextMenu&&n._contextMenu.$element().remove(),n._contextMenu=n._createComponent((0,l.Z)(G0).appendTo(t),Xv.Z,{onPositioning:function(e){var i=e.event;if(e.cancel=!0,i){var r=i.target.cellIndex>=0?i.target:(0,l.Z)(i.target).closest("td").get(0);if(r){var m=n._createEventArgs(r,i),D=n._getContextMenuItems(m);if(D)return e.component.option("items",D),void(e.cancel=!1)}}},onItemClick:function(e){e.itemData.onItemClick&&e.itemData.onItemClick(e)},cssClass:nV,target:n.$element()})},_getContextMenuItems:function(n){var t=this,e=[],i=t.option("texts");if("row"===n.area||"column"===n.area){var m=n["column"===n.area?"rowFields":"columnFields"],D=n.cell.path&&n[n.area+"Fields"][n.cell.path.length-1],A=t.getDataSource();if(D&&D.allowExpandAll&&n.cell.path.length<n[n.area+"Fields"].length&&!A.paginate()&&(e.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){A.expandAll(D.index)}}),e.push({text:i.collapseAll,icon:"none",onItemClick:function(){A.collapseAll(D.index)}})),n.cell.isLast&&!A.paginate()){var N=0;(0,O.S6)(m,function(Q,se){se.allowSortingBySummary&&(0,O.S6)(n.dataFields,function(we,Re){if(!(0,w.$K)(n.cell.dataIndex)||n.cell.dataIndex===we){var Ue=!(0,w.$K)(n.cell.dataIndex)&&n.dataFields.length>1,st="column"===n.area?i.sortColumnBySummary:i.sortRowBySummary,Ot=ry(n.dataFields,se.sortBySummaryField)===we&&(n.cell.path||[]).join("/")===(se.sortBySummaryPath||[]).join("/"),Kt=(0,na.WU)(st,Ue?se.caption+" - "+Re.caption:se.caption);e.push({beginGroup:0===N,icon:Ot?"desc"===se.sortOrder?"sortdowntext":"sortuptext":"none",text:Kt,onItemClick:function(){A.field(se.index,{sortBySummaryField:Re.name||Re.caption||Re.dataField,sortBySummaryPath:n.cell.path,sortOrder:"desc"===se.sortOrder?"asc":"desc"}),A.load()}}),N++}})}),(0,O.S6)(m,function(Q,se){if(se.allowSortingBySummary&&(0,w.$K)(se.sortBySummaryField))return e.push({beginGroup:0===N,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,O.S6)(m,function(we,Re){A.field(Re.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})}),A.load()}}),!1})}}if(t.option("fieldChooser.enabled")&&e.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){t._fieldChooserPopup.show()}}),t.option("export.enabled")&&e.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){t.exportToExcel()}}),n.items=e,t._trigger("onContextMenuPreparing",n),(e=n.items)&&e.length)return e},_createEventArgs:function(n,t){var e=this.getDataSource(),i={rowFields:e.getAreaFields("row"),columnFields:e.getAreaFields("column"),dataFields:e.getAreaFields("data"),event:t};return function CQ(n){return n.closest("."+iV).length||n.find("."+iV).length}((0,l.Z)(n))?(0,y.l)(this._createFieldArgs(n),i):(0,y.l)(this._createCellArgs(n),i)},_createFieldArgs:function(n){var t=(0,l.Z)(n).children().data("field"),e={field:t};return(0,w.$K)(t)?e:{}},_createCellArgs:function(n){var t=(0,l.Z)(n),e=n.cellIndex,i=n.parentElement.rowIndex,r=t.closest("table"),m=r.data("data"),D=m&&m[i]&&m[i][e];return{area:r.data("area"),rowIndex:i,columnIndex:e,cellElement:(0,S.u)(t),cell:D}},_handleCellClick:function(n){var t=this,e=t._createEventArgs(n.currentTarget,n),i=e.cell;!i||!e.area&&(e.rowIndex||e.columnIndex)||(t._trigger("onCellClick",e),i&&!e.cancel&&(0,w.$K)(i.expanded)&&setTimeout(function(){t._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](e.area,i.path)}))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:Tf.Z.renderNoDataText,_renderLoadPanel:Tf.Z.renderLoadPanel,_updateLoading:function(n){var t=this,e=t._dataController.isLoading();if(t._loadPanel){var i=t._loadPanel.option("visible");if(i||(t._startLoadingTime=new Date),e&&(n?new Date-t._startLoadingTime>=1e3&&t._loadPanel.option("message",Math.floor(100*n)+"%"):t._loadPanel.option("message",t.option("loadPanel.text"))),clearTimeout(t._hideLoadingTimeoutID),i&&!e)t._hideLoadingTimeoutID=setTimeout(function(){t._loadPanel.option("visible",!1),t.$element().removeClass(NP)});else{var r={visible:e};e&&(r.position=Tf.Z.calculateLoadPanelPosition(t._dataArea.groupElement())),t._loadPanel.option(r),t.$element().toggleClass(NP,!e)}}},_renderDescriptionArea:function(){var D,n=this.$element(),t=n.find("."+VP),e=(0,l.Z)(G0).addClass("dx-pivotgrid-toolbar"),i=this.option("fieldPanel"),r=n.find(".dx-filter-header"),m=n.find(".dx-column-header");if(D=i.visible&&i.showFilterFields?r:i.visible&&(i.showDataFields||i.showColumnFields)?m:t,m.toggleClass(BD,!(!i.visible||!i.showDataFields&&!i.showColumnFields)),r.toggleClass(BD,!(!i.visible||!i.showFilterFields)),t.toggleClass("dx-pivotgrid-background",i.visible&&(i.showDataFields||i.showColumnFields||i.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),e.prependTo(D),this.option("fieldChooser.enabled")){var A=(0,l.Z)(G0).appendTo(e).addClass("dx-pivotgrid-field-chooser-button"),N={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:()=>{this.getFieldChooserPopup().show()}};this._createComponent(A,"dxButton",N)}if(this.option("export.enabled")){var Q=(0,l.Z)(G0).appendTo(e).addClass("dx-pivotgrid-export-button"),se={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:()=>{this.exportToExcel()}};this._createComponent(Q,"dxButton",se)}},_detectHasContainerHeight:function(){var n=this.$element();if((0,w.$K)(this._hasHeight)){var t=this.option("height")||this.$element().get(0).style.height;t&&this._hasHeight^"auto"!==t&&(this._hasHeight=null)}if(!(0,w.$K)(this._hasHeight)&&!n.is(":hidden")){this._pivotGridContainer.addClass("dx-hidden");var e=(0,l.Z)(G0);(0,s.QQ)(e,66666),n.append(e),this._hasHeight=66666!==(0,s.Cr)(n),this._pivotGridContainer.removeClass("dx-hidden"),e.remove()}},_renderHeaders:function(n,t,e,i){var r=this.getDataSource();this._rowFields=this._rowFields||new LD(this,"row"),this._rowFields.render(n,r.getAreaFields("row")),this._columnFields=this._columnFields||new LD(this,"column"),this._columnFields.render(t,r.getAreaFields("column")),this._filterFields=this._filterFields||new LD(this,"filter"),this._filterFields.render(e,r.getAreaFields("filter")),this._dataFields=this._dataFields||new LD(this,"data"),this._dataFields.render(i,r.getAreaFields("data")),this.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var n=(0,l.Z)("<table>").css({width:"100%"}).toggleClass(tV,!!this.option("showBorders")).toggleClass("dx-word-wrap",!!this.option("wordWrapEnabled"));return d.Z.on(n,(0,k.V4)(v.u,"dxPivotGrid"),"td",this._handleCellClick.bind(this)),n},_renderDataArea:function(n){var t=this._dataArea||new vJ(this);return this._dataArea=t,t.render(n,this._dataController.getCellsInfo()),t},_renderRowsArea:function(n){var t=this._rowsArea||new IJ(this);return this._rowsArea=t,t.render(n,this._dataController.getRowsInfo()),t},_renderColumnsArea:function(n){var t=this._columnsArea||new A9(this);return this._columnsArea=t,t.render(n,this._dataController.getColumnsInfo()),t},_initMarkup:function(){var n=this;n.callBase.apply(this,arguments),n.$element().addClass(nV)},_renderContentImpl:function(){var n,t,e,i,m,D,A,N,r=!this._pivotGridContainer;(i=!r&&this._tableElement())||(this.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),this._pivotGridContainer=(0,l.Z)(G0).addClass("dx-pivotgrid-container"),this._renderFieldChooser(),this._renderContextMenu(),n=(0,l.Z)(uy).addClass(eV),t=(0,l.Z)(uy).addClass(FP),e=(0,l.Z)(uy).addClass(Q9),i=this._createTableElement(),N=(0,l.Z)(uy).addClass("dx-data-header"),A=(0,l.Z)("<td>").attr("colspan","2").addClass("dx-filter-header"),D=(0,l.Z)(uy).addClass("dx-column-header"),m=(0,l.Z)(uy).addClass(VP),(0,l.Z)(FD).append(A).appendTo(i),(0,l.Z)(FD).append(N).append(D).appendTo(i),(0,l.Z)(FD).append(m).append(n).appendTo(i),(0,l.Z)(FD).addClass("dx-bottom-row").append(t).append(e).appendTo(i),this._pivotGridContainer.append(i),this.$element().append(this._pivotGridContainer),"tree"===this.option("rowHeaderLayout")&&t.addClass("dx-area-tree-view")),this.$element().addClass(NP),this._createComponent(this.$element(),z9,{dataSource:this.getDataSource(),encodeHtml:this.option("encodeHtml"),allowFieldDragging:this.option("fieldPanel.allowFieldDragging"),headerFilter:this.option("headerFilter"),visible:this.option("visible")});var Q=this._renderDataArea(e),se=this._renderRowsArea(t),we=this._renderColumnsArea(n);Q.tableElement().prepend(we.headElement()),r&&(this._renderLoadPanel(Q.groupElement().parent(),this.$element()),this._renderDescriptionArea(),se.renderScrollable(),we.renderScrollable(),Q.renderScrollable()),[Q,se,we].forEach(function(Re){sV(Re)}),this._renderHeaders(m,D,A,N),this._update(r)},_update:function(n){var t=this,e=function(){t.updateDimensions()};t._needDelayResizing(t._dataArea.getData())&&n?setTimeout(e):e()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(n){return"column"===n?this._columnsArea.getScrollPath(this._scrollLeft):this._rowsArea.getScrollPath(this._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(n){return"column"===n?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(n){n&&this.updateDimensions()},_dispose:function(){var n=this;clearTimeout(n._hideLoadingTimeoutID),n.callBase.apply(n,arguments),n._dataController&&n._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(n){return"dx-pivotgrid-"+n},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var t,i,A,N,n=this,e=n._tableElement(),r=0,m=0,D=0,Q=e.find("."+Q9),se=e.find("."+FP),we=e.find("."+eV),Re=e.find("."+VP),Ue=e.find(".dx-filter-header"),st=e.find(".dx-column-header"),Ot=n._rowFields,Kt=new P.BH;if((0,mi.Ym)()){var sn=Ot.isVisible()&&"tree"!==n.option("rowHeaderLayout");n._detectHasContainerHeight(),n._dataArea.headElement().length||n._dataArea.tableElement().prepend(n._columnsArea.headElement()),sn&&(n._rowsArea.updateColspans(Ot.getColumnsCount()),n._rowsArea.tableElement().prepend(Ot.headElement())),e.addClass(rV),n._dataArea.reset(),n._rowsArea.reset(),n._columnsArea.reset(),Ot.reset();var wn=(Ft,qt)=>qt-Ft>=1,rn=(Ft,qt,un,In,Kn)=>un?Ft:qt+(In?Kn:0);return(0,E.Su)(function(){var Ft=n._rowsArea.getRowsHeight(),qt=(0,s.zp)(Re[0],!0)+(sn?Ft[0]:0),un=0,In=0;if(n._hasHeight){un=(0,s.Cr)(Ue);var Kn=e.find(".dx-data-header"),Yn=(0,s.Cr)(Kn);i=lV([we,Q,e,st,Ue],"height"),In=(0,s.Cr)(n.$element())-un-Yn-(Math.max((0,s.Cr)(n._dataArea.headElement()),(0,s.Cr)(we),qt)+i)}var ai=n._dataArea.getScrollbarWidth(),gi=wn(In,(0,s.Cr)(n._dataArea.tableElement()));n._dataArea.tableElement().css({width:n._hasHeight&&gi&&ai?"calc(100% - ".concat(ai,"px)"):"100%"});var Ci=n._dataArea.getColumnsWidth(),Ki=sn?Ft.slice(1):Ft,Bi=n._dataArea.getRowsHeight(),ri=n._dataController.getColumnsInfo().length,Fi=function Sq(n,t){for(var e=[],i=0;i<n.length;i++)e.push(Math.max(n[i]||0,t[i]||0));return e}(Ki,Bi.slice(ri)),Gi=Bi.slice(0,ri),or=HP(Gi),fr=n._rowsArea.getColumnsWidth();if(r=(0,s.dz)(n._dataArea.tableElement()),m=HP(Fi),r&&m){D=HP(fr);var _r=(0,s.dz)(n.$element());i=lV([se,Q,e],"width");var $r=r-(t=(t=_r-D-i)>0?t:r);$r>=0&&$r<=2&&(zP(Ci,$r),r=t),A=n._hasHeight&&wn(In,m),N=wn(t,r);var Vr=rn(In,m,A,N,ai);(0,E.g0)(function(){if(n._columnsArea.tableElement().append(n._dataArea.headElement()),Ot.tableElement().append(n._rowsArea.headElement()),qt>or&&(zP(Gi,or-qt),n._columnsArea.setRowsHeight(Gi)),e.removeClass(rV),st.children().css("maxWidth",t),n._columnsArea.setGroupWidth(t),n._columnsArea.processScrollBarSpacing(A?ai:0),n._columnsArea.setColumnsWidth(Ci),n._rowsArea.setGroupHeight(n._hasHeight?Vr:"auto"),n._rowsArea.processScrollBarSpacing(N?ai:0),n._rowsArea.setColumnsWidth(fr),n._rowsArea.setRowsHeight(Fi),n._dataArea.setColumnsWidth(Ci),n._dataArea.setRowsHeight(Fi),n._dataArea.setGroupWidth(t),n._dataArea.setGroupHeight(n._hasHeight?Vr:"auto"),sn&&Ot.setColumnsWidth(fr),Q.toggleClass(BD,!A),se.toggleClass(BD,!A),!n._hasHeight&&_r!==(0,s.dz)(n.$element())){var zr=_r-(0,s.dz)(n.$element());N||(zP(Ci,zr),n._columnsArea.setColumnsWidth(Ci),n._dataArea.setColumnsWidth(Ci)),n._dataArea.setGroupWidth(t-zr),n._columnsArea.setGroupWidth(t-zr)}if(n._hasHeight&&n._filterFields.isVisible()&&(0,s.Cr)(Ue)!==un){var co=(0,s.Cr)(Ue)-un;if(co>0){A=wn(In-co,m);var Kr=rn(In-co,m,A,N,ai);n._dataArea.setGroupHeight(Kr),n._rowsArea.setGroupHeight(Kr)}}var Io=n.option("scrolling");"virtual"===Io.mode&&n._setVirtualContentParams(Io,Ci,Fi,t,Vr,n._hasHeight,D);var Wo=[];n._dataArea.updateScrollableOptions({direction:n._dataArea.getScrollableDirection(N,A),rtlEnabled:n.option("rtlEnabled")}),n._columnsArea.updateScrollableOptions({rtlEnabled:n.option("rtlEnabled")}),(0,O.S6)([n._columnsArea,n._rowsArea,n._dataArea],function(Do,ko){Wo.push(ko&&ko.updateScrollable())}),n._updateLoading(),n._renderNoDataText(Q),P.gx.apply(l.Z,Wo).done(function(){n._updateScrollPosition(n._columnsArea,n._rowsArea,n._dataArea),n._subscribeToEvents(n._columnsArea,n._rowsArea,n._dataArea),Kt.resolve()})})}else Kt.resolve()}),Kt}},_setVirtualContentParams:function(n,t,e,i,r,m,D){var A=this._dataController.calculateVirtualContentParams({virtualRowHeight:n.virtualRowHeight,virtualColumnWidth:n.virtualColumnWidth,itemWidths:t,itemHeights:e,rowCount:e.length,columnCount:t.length,viewportWidth:i,viewportHeight:m?r:(0,s.zp)(J9)});this._dataArea.setVirtualContentParams({top:A.contentTop,left:A.contentLeft,width:A.width,height:A.height}),this._rowsArea.setVirtualContentParams({top:A.contentTop,width:D,height:A.height}),this._columnsArea.setVirtualContentParams({left:A.contentLeft,width:A.width,height:(0,s.Cr)(this._columnsArea.groupElement())})},applyPartialDataSource:function(n,t,e){this._dataController.applyPartialDataSource(n,t,e)}}).inherit(rQ).include(gQ);(0,T.Z)("dxPivotGrid",uV);let dV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.sd1,M.RbS,M.FZZ,M.HaS,M.jq_,M.lj9,M.SUG,M.mtS,M.UCw,M.nD3,M.WyY,M.YOZ,g.Lz,g.ie,p.Cu],M.sd1,M.RbS,M.FZZ,M.HaS,M.jq_,M.lj9,M.SUG,M.mtS,M.UCw,M.nD3,M.WyY,M.YOZ,g.ie]}),n})(),cV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.HaS,M.mtS,g.Lz,g.ie,p.Cu],M.HaS,M.mtS,g.ie]}),n})();var VD=vL.inherit({_themeSection:"polar",_createPanes:function(){return this.callBase(),[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(n){var e="argumentAxis"===n?"circular":"linear";return this.option("useSpiderWeb")&&(e+="Spider"),{axisType:"polarAxes",drawingType:e}},_executeAppendBeforeSeries(n){n()},_prepareAxisOptions:function(n,t){var e="argumentAxis"===n,i=this._themeManager,r=this.option("argumentAxis"),m=i.getOptions("argumentAxis",r)||{},D=isFinite(m.startAngle)?lt(m.startAngle):0;return{type:this.option("useSpiderWeb")&&e?"discrete":t.type,isHorizontal:!0,showCustomBoundaryTicks:e,startAngle:D,endAngle:D+360}},_optionChangesMap:{useSpiderWeb:"USE_SPIDER_WEB"},_change_USE_SPIDER_WEB(){this._disposeAxes(),this._requestChange(["AXES_AND_PANES"])},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_calcCanvas:function(){var n=(0,y.l)({},this._canvas),e=this.getArgumentAxis().getMargins();return Object.keys(e).forEach(i=>n[i]=n["original".concat(i[0].toUpperCase()).concat(i.slice(1))]+e[i]),n},_renderAxes:function(n){var t=this._getValueAxis(),e=this.getArgumentAxis();e.draw(this._canvas),t.setSpiderTicks(e.getSpiderTicks());var i=this._calcCanvas();return e.updateSize(i),t.draw(i),i},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(n){var t=this._getValueAxis(),e=this.getArgumentAxis();if(n&&(n.width||n.height)){e.hideOuterElements();var i=this._calcCanvas();e.updateSize(i),t.updateSize(i)}},checkForMoreSpaceForPanesCanvas(){return this.layoutManager.needMoreSpaceForPanesCanvas([{canvas:this.getArgumentAxis().getCanvas()}],this._isRotated())},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyClipRects(){var n=this._getCanvasClipRectID();this._createClipPathForPane(),this.getArgumentAxis().applyClipRects(this._getElementsClipRectID(),n),this._getValueAxis().applyClipRects(this._getElementsClipRectID(),n)},_createClipPathForPane(){var n=this._getValueAxis(),t=n.getCenter(),e=n.getRadius(),i=this._panesClipRects;t={x:Math.round(t.x),y:Math.round(t.y)},this._createClipCircle(i.fixed,t.x,t.y,e),this._createClipCircle(i.base,t.x,t.y,e),this.series.some(r=>r.areErrorBarsVisible())?this._createClipCircle(i.wide,t.x,t.y,e):i.wide[0]=null},_createClipCircle(n,t,e,i){var r=n[0];r?r.attr({cx:t,cy:e,r:i}):(r=this._renderer.clipCircle(t,e,i),n[0]=r)},_applyExtraSettings(n){var t=this._panesClipRects.wide[0];n.setClippingParams(this._panesClipRects.base[0].id,t&&t.id,!1,!1)},getActualAngle(n){return this.getArgumentAxis().getOptions().inverted?360-n:n},getXYFromPolar(n,t,e,i){var r={angle:void 0,radius:void 0,x:void 0,y:void 0};if(!((0,w.$K)(n)||(0,w.$K)(t)||(0,w.$K)(e)||(0,w.$K)(i)))return r;var A,N,m=this.getArgumentAxis(),D=m.getAngles()[0];if((0,w.$K)(e)?A=m.getTranslator().translate(e):isFinite(n)?A=this.getActualAngle(n):(0,w.$K)(n)||(A=0),(0,w.$K)(i)?N=this.getValueAxis().getTranslator().translate(i):isFinite(t)?N=t:(0,w.$K)(t)||(N=m.getRadius()),(0,w.$K)(A)&&(0,w.$K)(N)){var Q=Wi(m.getCenter(),D,A,N);(0,y.l)(r,Q,{angle:m.getTranslatedAngle(A),radius:N})}return r},_applyPointMarkersAutoHiding:E.ZT,_createScrollBar:E.ZT,_isRotated:E.ZT,_getCrosshairOptions:E.ZT,_isLegendInside:E.ZT});VD.addPlugin(wf.core),VD.addPlugin(wf.polarChart),(0,T.Z)("dxPolarChart",VD);let hV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.Llc,M.tis,M.ji7,M.ZmN,M.zk3,M.Wj0,M._7s,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.gN6,M.kWr,M.XfX,M.$Tm,M.IqU,M.cp7,M.Wi7,M.p7n,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,M.gI1,M.irQ,g.Lz,g.ie,p.Cu],M.lsC,M.IOm,M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.wMw,M.qlz,M.e1H,M.Tq8,M.z8p,M.FZZ,M.Afe,M.HC7,M.Irw,M.Llc,M.tis,M.ji7,M.ZmN,M.zk3,M.Wj0,M._7s,M.DQr,M.Ye1,M.kZH,M.dwQ,M.$a2,M.gN6,M.kWr,M.XfX,M.$Tm,M.IqU,M.cp7,M.Wi7,M.p7n,M.lj9,M.FYN,M.KjY,M.rrz,M.lTN,M.rHV,M.ZLS,M.Rue,M.Kx,M.vZC,M.gI1,M.irQ,g.ie]}),n})(),pV=(()=>{class n extends Jv.Z{_getToolbarName(){return"dxToolbar"}}return n.defaultOptions=function(t){Jv.Z.defaultOptions(t)},n})();(0,T.Z)("dxPopover",pV);let gV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,M.pGy,g.Lz,g.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,M.pGy,g.ie]}),n})();var fV=u(1740);const TQ={provide:ne.JU,useExisting:(0,a.Gpc)(()=>IQ),multi:!0};let IQ=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"complete",emit:"onComplete"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showStatusChange"},{emit:"statusFormatChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showStatus(){return this._getOption("showStatus")}set showStatus(e){this._setOption("showStatus",e)}get statusFormat(){return this._getOption("statusFormat")}set statusFormat(e){this._setOption("statusFormat",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new _F.Z(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-progress-bar"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{disabled:"disabled",elementAttr:"elementAttr",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",max:"max",min:"min",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showStatus:"showStatus",statusFormat:"statusFormat",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onComplete:"onComplete",onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",maxChange:"maxChange",minChange:"minChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showStatusChange:"showStatusChange",statusFormatChange:"statusFormatChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,TQ,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),mV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();const MQ={provide:ne.JU,useExisting:(0,a.Gpc)(()=>AQ),multi:!0};let AQ=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"dataSourceChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"layoutChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get layout(){return this._getOption("layout")}set layout(e){this._setOption("layout",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new H$(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-radio-group"]],contentQueries:function(e,i,r){if(1&e&&a.Suo(r,M.ZT3,4),2&e){let m;a.iGM(m=a.CRH())&&(i.itemsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",dataSource:"dataSource",disabled:"disabled",displayExpr:"displayExpr",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",layout:"layout",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueExpr:"valueExpr",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",dataSourceChange:"dataSourceChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",layoutChange:"layoutChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,MQ,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),_V=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();var vV_animationSettings={duration:250},HD=function(n,t,e,i,r,m){var D={value:n,valueText:bm(n,{labelOptions:t,ticks:e?e.ticks:[],tickInterval:e?e.tickInterval:void 0,dataType:i,type:r,logarithmBase:m})};return String((0,w.mf)(t.customizeText)?t.customizeText.call(D,D):D.valueText)};function WP(n,t,e){this._isLeftPointer=e,this._isOverlapped=!1,this._group=n.g().attr({class:"slider-marker"}).append(t),this._area=n.path(null,"area").append(this._group),this._label=n.text().attr({align:"left"}).append(this._group),this._tracker=n.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(this._group),this._border=n.rect(0,0,1,0)}WP.prototype={constructor:WP,_getRectSize:function(n){return{width:Math.round(2*this._paddingLeftRight+n.width),height:Math.round(2*this._paddingTopBottom+n.height)}},_getTextSize:function(){var n=this._label.getBBox();return!this._textHeight&&isFinite(n.height)&&(this._textHeight=n.height),{width:n.width,height:this._textHeight,y:n.y}},_getAreaPointsInfo:function(n){var t=this._getRectSize(n),e=t.width,i=t.height,r=-e,m=0,D=4,A=0,N=-4,Q=this._position,se=this._isLeftPointer,we=function(){r++,m++,D++,A++,N++},Re=function(){D>m?D=m:N<r&&(N=r),se&&we()},Ue=Q;return se?Q>this._range[1]-e?(r=(m=-Q+this._range[1])-e,Re(),Ue+=r):(r=N=0,m=e):Q-this._range[0]<e?(m=(r=-(Q-this._range[0]))+e,Re(),Ue+=m):(D=0,we()),this._borderPosition=Ue,{offset:r,isCut:(!se||A!==N)&&(se||A!==D),points:[r,0,m,0,m,i,D,i,A,i+4,N,i,r,i]}},_update:function(){var t,n=this;clearTimeout(n._timeout),n._label.attr({text:n._text||""});var e=n._getTextSize(),i=n._getRectSize(e);function r(m,D){D=D||n._getRectSize(m),n._group.attr({translateY:-(D.height+4)});var A=n._getAreaPointsInfo(m),N=A.points,Q=A.offset;n._area.attr({points:N}),n._border.attr({x:n._isLeftPointer?N[0]-1:N[2],height:A.isCut?D.height:D.height+4}),n._tracker.attr({translateX:Q,width:D.width,height:D.height+4}),n._label.attr({translateX:n._paddingLeftRight+Q,translateY:D.height/2-(m.y+m.height/2)})}t=n._textSize=e.width>(t=n._textSize||e).width||e.height>t.height?e:t,n._timeout=setTimeout(function(){r(e,i),n._textSize=e},75),r(t)},setText:function(n){this._text=n},setPosition:function(n){this._position=n,this._update()},applyOptions:function(n,t){this._range=t,this._paddingLeftRight=n.paddingLeftRight,this._paddingTopBottom=n.paddingTopBottom,this._textHeight=null,this._colors=[n.invalidRangeColor,n.color],this._area.attr({fill:n.color}),this._border.attr({fill:n.borderColor}),this._label.css(ci(n.font)),this._update()},getTracker:function(){return this._tracker},setValid:function(n){this._area.attr({fill:this._colors[Number(n)]})},setColor:function(n){this._area.attr({fill:n})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(n){this._isOverlapped!==n&&(n?this._border.append(this._group):this._isOverlapped&&this._border.remove(),this._isOverlapped=n)},getBorderPosition:function(){return this._borderPosition}};const BQ=WP;var yV=vV_animationSettings;function UP(n,t){this._translator=n.translator,this._sliderGroup=n.renderer.g().attr({class:"slider"}).append(n.root),this._line=n.renderer.path(null,"line").append(this._sliderGroup),this._marker=new BQ(n.renderer,this._sliderGroup,1===t),this._tracker=n.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(n.trackersGroup)}UP.prototype={constructor:UP,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(n){var t=this._sliderGroup,e=this._tracker,i={translateX:this._position};this._marker.setPosition(this._position),n?(t.animate(i,yV),e.animate(i,yV)):(t.attr(i),e.attr(i))},_setValid:function(n){this._marker.setValid(n),this._line.attr({stroke:this._colors[Number(n)]})},_setText:function(n){this._marker.setText(n)},update:function(n,t,e){this._formatOptions={format:e.format,customizeText:e.customizeText},this._marker.applyOptions(e,this._translator.getScreenRange()),this._colors=[e.invalidRangeColor,t.color],this._sliderGroup.attr({translateY:n[0]}),this._line.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity,sharp:"h",points:[0,0,0,n[1]-n[0]]});var i=function VQ(n){return U0.touchEvents||U0.pointerEvents?20:8<n?n:8}(t.width);this._tracker.attr({x:-i/2,y:0,width:i,height:n[1]-n[0],translateY:n[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(n){this._value=n,this._setText(HD(n,this._formatOptions))},setOverlapped:function(n){this._marker.setOverlapped(n)},getValue:function(){return this._value},on:function(n,t){this._tracker.on(n,t),this._marker.getTracker().on(n,t)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}};const xV=UP;var NQ=vV_animationSettings;function zD(n,t,e,i){return[n,t,e,t,e,i,n,i]}function WD(n,t){return n<t}function UD(n,t){return n>t}function Pf(n,t){for(var r,e=0,i=t?t.length-1:0,m=n;i-e>1;){if((m=t[r=e+i>>1])===n)return n;n<m?i=r:e=r}return t&&(m=t[n-t[e]<=t[i]-n?e:i]),m}function wV(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function ZP(n){var t={renderer:n.renderer,root:n.root,trackersGroup:n.trackersGroup,translator:n.translator};this._params=n,this._areaTracker=n.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(n.trackersGroup),this._selectedAreaTracker=n.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(n.trackersGroup),this._shutter=n.renderer.path(null,"area").append(n.root),this._sliders=[new xV(t,0),new xV(t,1)],this._processSelectionChanged=wV}ZP.prototype={constructor:ZP,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(n){var t=this.getSelectedRange();Ur(t,this._lastSelectedRange)||(this._params.updateSelectedRange(t,this._lastSelectedRange,n),this._lastSelectedRange=t)},update:function(n,t,e,i,r,m,D,A,N){var Q=this._params.translator.getScreenRange();this._verticalRange=n,this._minRange=D.minRange,this._maxRange=D.maxRange,this._animationEnabled=t.animationEnabled&&this._params.renderer.animationEnabled(),this._allowSlidersSwap=t.allowSlidersSwap,this._sliders[0].update(n,i,r),this._sliders[1].update(n,i,r),this._sliders[0]._position=this._sliders[1]._position=Q[0],this._values=!this._params.translator.isValueProlonged&&t.snapToTicks?A:null,this._areaTracker.attr({points:zD(Q[0],n[0],Q[1],n[1])}),this._isCompactMode=e,this._shutterOffset=i.width/2,this._updateSelectedView(m,N),this._isOnMoving="onmoving"===En(t.callValueChanged),this._updateSelectedRange(),this._applyTotalPosition(!1)},_updateSelectedView:function(n,t){var e={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(e.stroke=t,e["stroke-width"]=3,e.sharp="v"):(e.fill=n.color,e["fill-opacity"]=n.opacity),this._shutter.attr(e)},_updateSelectedRange:function(){var n=this._sliders;n[0].cancelAnimation(),n[1].cancelAnimation(),this._shutter.stopAnimation(),this._params.translator.getBusinessRange().isEmpty()?(n[0]._setText(". . ."),n[1]._setText(". . ."),n[0]._value=n[1]._value=void 0,n[0]._position=this._params.translator.getScreenRange()[0],n[1]._position=this._params.translator.getScreenRange()[1],this._applyTotalPosition(!1),function HQ(n){n.setSelectedRange=E.ZT,n._processSelectionChanged===wV&&n._processSelectionChanged()}(this)):function zQ(n){delete n.setSelectedRange}(this)},_applyTotalPosition:function(n){var t=this._sliders;t[0].applyPosition(n=this._animationEnabled&&n),t[1].applyPosition(n);var e=t[0].getCloudBorder()>t[1].getCloudBorder();t[0].setOverlapped(e),t[1].setOverlapped(e),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(n)},_applyAreaTrackersPosition:function(){var n=this._sliders[0].getPosition(),t=this._sliders[1].getPosition();this._selectedAreaTracker.attr({points:zD(n,this._verticalRange[0],t,this._verticalRange[1])}).css({cursor:Math.abs(this._params.translator.getScreenRange()[1]-this._params.translator.getScreenRange()[0]-t+n)<.001?"default":"pointer"})},_applySelectedRangePosition:function(n){var r,m,t=this._verticalRange,e=this._sliders[0].getPosition(),i=this._sliders[1].getPosition();m=this._isCompactMode?[e+Math.ceil(this._shutterOffset),(t[0]+t[1])/2,i-Math.floor(this._shutterOffset),(t[0]+t[1])/2]:[zD((r=this._params.axis.getVisibleArea())[0],t[0],Math.max(e-Math.floor(this._shutterOffset),r[0]),t[1]),zD(r[1],t[0],Math.min(i+Math.ceil(this._shutterOffset),r[1]),t[1])],n?this._shutter.animate({points:m},NQ):this._shutter.attr({points:m})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(n,t){n=n||{};var e=this._params.translator,i=e.getBusinessRange(),r="discrete"===i.axisType?function(N,Q){return N<Q}:function(N,Q){return N<=Q},{startValue:m,endValue:D}=Qr({dataType:i.dataType,axisType:i.axisType,base:i.base},{startValue:e.isValid(n.startValue)?e.getCorrectValue(n.startValue,1):void 0,endValue:e.isValid(n.endValue)?e.getCorrectValue(n.endValue,-1):void 0,length:n.length},{min:i.minVisible,max:i.maxVisible,categories:i.categories});m=(0,w.kE)(m)?(0,re.zB)(m):m,D=(0,w.kE)(D)?(0,re.zB)(D):D;var A=r(e.to(m,-1),e.to(D,1))?[m,D]:[D,m];this._sliders[0].setDisplayValue(A[0]),this._sliders[1].setDisplayValue(A[1]),this._sliders[0]._position=e.to(A[0],-1),this._sliders[1]._position=e.to(A[1],1),this._applyTotalPosition(!0),this._processSelectionChanged(t)},beginSelectedAreaMoving:function(n){var t=this,e=t._sliders,i=(e[0].getPosition()+e[1].getPosition())/2-n,r=n;return m.complete=function(D){t._dockSelectedArea(D)},m;function m(D,A){D!==r&&D>r==D>(e[0].getPosition()+e[1].getPosition())/2-i&&t._moveSelectedArea(D+i,!1,A),r=D}},_dockSelectedArea:function(n){var t=this._params.translator,e=this._sliders;e[0]._position=t.to(e[0].getValue(),-1),e[1]._position=t.to(e[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(n)},moveSelectedArea:function(n,t){this._moveSelectedArea(n,!0,t),this._dockSelectedArea(t)},_moveSelectedArea:function(n,t,e){var i=this._params.translator,r=this._sliders,m=r[1].getPosition()-r[0].getPosition(),D=n-m/2,A=n+m/2;D<i.getScreenRange()[0]&&(A=(D=i.getScreenRange()[0])+m),A>i.getScreenRange()[1]&&(D=(A=i.getScreenRange()[1])-m);var N=Pf(i.from(D,-1),this._values);r[0].setDisplayValue(N),r[1].setDisplayValue(Pf(i.from(i.to(N,-1)+m,1),this._values)),r[0]._position=D,r[1]._position=A,this._applyTotalPosition(t),this._isOnMoving&&this._processSelectionChanged(e)},placeSliderAndBeginMoving:function(n,t,e){var i=this._params.translator,r=this._sliders,m=n<t?0:1,D=m>0?1:-1,A=m>0?UD:WD,N=m>0?WD:UD,se=[],we=[];we[m]=i.from(n,D),we[1-m]=i.from(t,-D),se[1-m]=t,i.isValueProlonged&&(A(n,i.to(we[m],D))&&(we[m]=i.from(n,-D)),A(t,i.to(we[m],-D))&&(we[1-m]=we[m])),this._minRange&&(A(t,i.to(i.add(Pf(we[m],this._values),this._minRange,-D),-D))&&(we[1-m]=i.add(we[m],this._minRange,-D)),N(n,i.to(i.add(i.getRange()[1-m],this._minRange,D),-D))&&(we[1-m]=i.getRange()[1-m],we[m]=i.add(we[1-m],this._minRange,D),se[1-m]=n)),we[0]=Pf(we[0],this._values),we[1]=Pf(we[1],this._values),se[m]=i.to(we[m],D),r[0].setDisplayValue(we[0]),r[1].setDisplayValue(we[1]),r[0]._position=se[0],r[1]._position=se[1],this._applyTotalPosition(!0),this._isOnMoving&&this._processSelectionChanged(e);var Re=this.beginSliderMoving(1-m,t);return r[1-m]._sliderGroup.stopAnimation(),this._shutter.stopAnimation(),Re(t),Re},beginSliderMoving:function(n,t){var e=this,i=e._params.translator,r=e._sliders,m=i.getScreenRange()[0],D=i.getScreenRange()[1],A=n,N=r[1-A].getPosition(),Q=t,se=A>0?1:-1,we=A>0?WD:UD,Re=A>0?UD:WD,Ue=r[A].getPosition()-t,st=we(r[A].getPosition(),t)?-Ue:Ue;return Ot.complete=function(Kt){r[A]._setValid(!0),e._dockSelectedArea(Kt)},Ot;function Ot(Kt,sn){var wn,rn,Ft,qt,un,In;Kt!==Q&&(we(Kt+st,N)&&((wn=e._allowSlidersSwap)&&!i.isValueProlonged&&e._minRange&&(wn=i.isValid(i.add(r[1-A].getValue(),e._minRange,-se))),wn&&(e._changeMovingSlider(A),A=1-A,rn=we,we=Re,Re=rn,Ue=-(se=-se)*Math.abs(Ue),st=-Ue)),Re(Kt+Ue,N))&&(qt=r[A],un=r[1-A].getValue(),Ft=Math.max(Math.min(Kt+Ue,D),m),(wn=!i.isValueProlonged||!we(Ft,i.to(un,se)))&&e._minRange&&((wn=!we(Ft,i.to(i.add(un,e._minRange,se),se)))||(In=i.add(un,e._minRange,se))),wn&&e._maxRange&&((wn=!Re(Ft,i.to(i.add(un,e._maxRange,se),se)))||(In=i.add(un,e._maxRange,se))),qt._setValid(wn),qt.setDisplayValue(wn?Pf(i.from(Ft,se),e._values):(0,w.$K)(In)?In:qt.getValue()),qt._position=Ft,e._applyTotalPosition(!1),qt.toForeground(),e._isOnMoving&&e._processSelectionChanged(sn)),Q=Kt}},_changeMovingSlider:function(n){var m,t=this._params.translator,e=this._sliders,i=e[1-n].getPosition(),r=n>0?1:-1;e[n].setDisplayValue(Pf(t.from(i,r),this._values)),m=t.from(i,-r),t.isValueProlonged?m=t.from(i,r):this._minRange&&(m=t.add(m,this._minRange,-r)),e[1-n].setDisplayValue(Pf(m,this._values)),e[n]._setValid(!0),e[n]._marker._update(),e[0]._position=e[1]._position=i},foregroundSlider:function(n){this._sliders[n].toForeground()}};var WQ=(0,mi.Jj)();function cy(n){var t=n||WQ.event,e=t.originalEvent,i=t.touches,r=!!e&&e.pointerType,m=!!e&&e.touches;return 1===t.which||e&&void 0!==r&&(r===(e.MSPOINTER_TYPE_TOUCH||"touch")||r===(e.MSPOINTER_TYPE_MOUSE||"mouse")&&1===e.buttons)||i&&i.length>0||m&&m.length>0}function SV(n){var t=n.originalEvent,e=n.touches,i=t&&t.touches;return e&&e.length>1||i&&i.length>1||null}function OV(n){SV(n)||n.preventDefault()}function DV(n){SV(n)||(n.stopPropagation(),n.preventDefault())}function hy(n){return n&&n.type&&0===n.type.indexOf("touch")}function j0(n){var t=n.originalEvent,e=0;return n.pageX?e=n.pageX:t&&t.pageX&&(e=t.pageX),t&&t.touches&&(t.touches.length>0?e=t.touches[0].pageX:t.changedTouches.length>0&&(e=t.changedTouches[0].pageX)),e}function UQ(n,t,e,i){var r,D,m=!1,A=null,N={[So.Z.move](se){var we,Re;r===hy(se)&&(cy(se)||Q(se),m&&(we=j0(se),Re=i(),A?A(we-Re,se):e.manualRangeSelectionEnabled&&Math.abs(D-we)>=10&&(A=n.placeSliderAndBeginMoving(D-Re,we-Re,se))))},[So.Z.up](se){var we;m&&(we=j0(se),!A&&e.moveSelectedRangeByClick&&Math.abs(D-we)<10&&n.moveSelectedArea(we-i(),se),Q(se))}};function Q(se){m&&(m=!1,A&&(A.complete(se),A=null))}return t.on(So.Z.down,function(se){!e.enabled||!cy(se)||m||(m=!0,r=hy(se),D=j0(se))}),N}function ZQ(n,t,e,i){var r,m=!1,D=null,A={[So.Z.move](Q){r===hy(Q)&&(cy(Q)||N(Q),m&&(OV(Q),D(j0(Q)-i(),Q)))},[So.Z.up]:N};function N(Q){m&&(m=!1,D.complete(Q),D=null)}return t.on(So.Z.down,function(Q){!e.enabled||!cy(Q)||m||(m=!0,r=hy(Q),D=n.beginSelectedAreaMoving(j0(Q)-i()),DV(Q))}),A}function KQ(n,t,e,i){var r,m=!1,D=null,A={[So.Z.move](Q){r===hy(Q)&&(cy(Q)||N(Q),m&&(OV(Q),D(j0(Q)-i(),Q)))},[So.Z.up]:N};function N(Q){m&&(m=!1,D.complete(Q),D=null)}return(0,O.S6)(t,function(Q,se){se.on({[So.Z.down](we){!e.enabled||!cy(we)||m||(m=!0,r=hy(we),D=n.beginSliderMoving(Q,j0(we)-i()),DV(we))},[So.Z.move](){D||n.foregroundSlider(Q)}})}),A}function KP(n){var t=this._state={},e=n.controller.getTrackerTargets();function i(){return n.renderer.getRootOffset().left}U0.pointerEvents&&n.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[ZQ(n.controller,e.selectedArea,t,i),UQ(n.controller,e.area,t,i),KQ(n.controller,e.sliders,t,i)],(0,O.S6)(this._docEvents,function(r,m){d.Z.on(b.Z.getDocument(),m)})}function GP(n,t){return void 0!==n?n:t}function jP(n){this._params=n,this._clipRect=n.renderer.clipRect(),n.root.attr({"clip-path":this._clipRect.id})}KP.prototype={constructor:KP,dispose:function(){(0,O.S6)(this._docEvents,function(n,t){d.Z.off(b.Z.getDocument(),t)})},update:function(n,t){var e=this._state;e.enabled=n,e.moveSelectedRangeByClick=t.moveSelectedRangeByClick,e.manualRangeSelectionEnabled=t.manualRangeSelectionEnabled}},jP.prototype={constructor:jP,update:function(n,t,e,i,r,m){var D=this._params.renderer,A=this._params.root,N=e.width-e.left;n=n||{},A.clear(),this._clipRect.attr({x:e.left,y:e.top,width:N,height:e.height}),i||(GP(n.visible,t.visible)&&(n.color&&D.rect(e.left,e.top,N+1,e.height).attr({fill:GP(n.color,t.color),class:"dx-range-selector-background"}).append(A),n.image&&n.image.url&&D.image(e.left,e.top,N+1,e.height,n.image.url,GP(n.image.location,t.image.location)).append(A)),m&&m.isShowChart()&&function GQ(n,t,e,i){var r=t.getSeries();if(r.length){var m=r[0].getValueAxis();m.updateCanvas({top:e.top,bottom:0,height:e.height+e.top}),t.adjustSeriesDimensions();var D=t.getBoundRange().val;D.sortCategories(m.getCategoriesSorter()),m.setBusinessRange(D),r.forEach(A=>{A._extGroups.seriesGroup=A._extGroups.labelsGroup=n,A.draw(i)})}}(D.g().attr({class:"dxrs-series-group"}).append(A),m,e,r))}};var $P=function(n){var t=this._themeManager=function(n){return new fb({options:n,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]})}(n.chart);t.setTheme(n.chart.theme);var e=t.getOptions("topIndent"),i=t.getOptions("bottomIndent");this._indent={top:e>=0&&e<1?e:0,bottom:i>=0&&i<1?i:0},this._valueAxis=t.getOptions("valueAxisRangeSelector")||{},this._hideChart=!1,this._series=this._calculateSeries(n),this._seriesFamilies=[]};$P.prototype={constructor:$P,_calculateSeries:function(n){var e,i,m,Q,we,Re,Ue,t=[],r=n.dataSource||[],D=this._themeManager,A=D.getOptions("seriesTemplate"),N=A?nr(A,r):n.chart.series,se=this._valueAxis;for(n.dataSource&&!N&&(N={argumentField:Q=n.dataSourceField||"arg",valueField:Q},this._hideChart=!0),N=Array.isArray(N)?N:N?[N]:[],we=0;we<N.length;we++)(e=(0,y.l)(!0,{},N[we])).rotated=!1,(i=D.getOptions("series",e,N.length)).argumentField=i.argumentField||n.dataSourceField,i.name||(i.name="Series "+(we+1).toString()),r&&r.length>0&&(Re=new S0({renderer:n.renderer,argumentAxis:n.argumentAxis,valueAxis:n.valueAxis,incidentOccurred:n.incidentOccurred},i),t.push(Re));if(t.length)for(m=a0(r,Ue={groups:[{series:t,valueAxis:n.valueAxis,valueOptions:{type:se.type,valueType:Q?n.valueType:se.valueType}}],argumentOptions:{categories:n.categories,argumentType:n.valueType,type:n.axisType}},n.incidentOccurred,D.getOptions("dataPrepareSettings")),this.argCategories=Ue.categories,we=0;we<t.length;we++)t[we].updateData(m[t[we].getArgumentField()]);return t},createPoints(){if(0!==this._series.length){var n=this._series,t=new as,e=n[0].getArgumentAxis(),i=this._themeManager,r=i.getOptions("negativesAsZeroes"),m=i.getOptions("negativesAsZeros");n.forEach(function(D){t.addRange(D.getArgumentRange())}),e.getTranslator().updateBusinessRange(t),n.forEach(function(D){D.createPoints()}),this._seriesFamilies=function(n,t,e,i,r){var m=[],D=[];return(0,O.S6)(n,function(A,N){D.includes(N.type)||D.push(N.type)}),(0,O.S6)(D,function(A,N){var Q=new VO({type:N,minBubbleSize:t,maxBubbleSize:e,barGroupPadding:i.barGroupPadding,barGroupWidth:i.barGroupWidth,negativesAsZeroes:r});Q.add(n),Q.adjustSeriesValues(),m.push(Q)}),m}(n,i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},(0,w.$K)(r)?r:m)}},adjustSeriesDimensions:function(){(0,O.S6)(this._seriesFamilies,function(n,t){t.adjustSeriesDimensions()})},getBoundRange:function(){var n,r,m,D,A,t=this._valueAxis,e=new as({min:t.min,minVisible:t.min,max:t.max,maxVisible:t.max,axisType:t.type,base:t.logarithmBase}),i=new as({});return(0,O.S6)(this._series,function(N,Q){n=Q.getRangeData(),e.addRange(n.val),i.addRange(n.arg)}),!e.isEmpty()&&!i.isEmpty()&&(D=t.inverted?this._indent.top:this._indent.bottom,A=t.inverted?this._indent.bottom:this._indent.top,r=e.max-e.min,m=((0,w.kE)(e.maxVisible)?e.maxVisible:e.max)-((0,w.kE)(e.minVisible)?e.minVisible:e.min),(0,w.J_)(e.min)?e.min=new Date(e.min.valueOf()-r*D):e.min-=r*D,(0,w.J_)(e.max)?e.max=new Date(e.max.valueOf()+r*A):e.max+=r*A,(0,w.kE)(m)&&(e.maxVisible=e.maxVisible?e.maxVisible+m*A:void 0,e.minVisible=e.minVisible?e.minVisible-m*D:void 0),e.invert=t.inverted),{arg:i,val:e}},getMarginOptions:function(n){var t=Math.min(n.width,n.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce(function(e,i){var r=i.getMarginOptions();return!0===r.processBubbleSize&&(r.size=t),dr(e,r)},{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){return this._series[0]?.argumentType},getThemeManager:function(){return this._themeManager}};var YP=Math.max,py=Math.ceil,ZD=Math.floor,TV="startValue",KD="datetime",kf="value",gy="discrete",fy="semidiscrete",GD="string",IV=kf+"Changed",MV="containerBackgroundColor",AV="logarithmic",XP="reset";function BV(n,t,e){var r=qP(n,void 0===t?". . .":HD(t,e),e.font);return py(r.height)+2*e.paddingTopBottom+4}function FV(n,t,e,i){var m=qP(n,HD(t,e.label,i,e.valueType,e.type,e.logarithmBase),e.label.font);return py(m.width/2)}function VV(n,t){var e=(0,w.dt)(n),i=(0,w.dt)(t),r=function(m){return e===m||i===m};return r("date")?KD:r("number")?"numeric":r(GD)?GD:""}function nee(n){return n.valueType===KD&&n.marker.visible}function NV(n,t,e){if(n){var i=n.logarithmBase;n.type===AV&&i<=0||i&&!(0,w.kE)(i)?(n.logarithmBase=t,e("E2104")):n.type!==AV&&(n.logarithmBase=void 0)}}function ree(n,t,e,i){var r=t.label,m=t.marker,D=t.placeholderHeight,N=HD(("semidiscrete"===t.type?t.customTicks:i.ticks)[0],r);return D||(r.visible?r.topIndent+qP(n,N,r.font).height:0)+(e?m.topIndent+m.separatorHeight:0)}function aee(n,t,e){return n?e?n=te.Z.getNextDateUnit(n):n+=t:n=t,n}function HV(n){var t;return null===(t=n.workWeek)||void 0===t?void 0:t[0]}function qP(n,t,e){var i=n.text(t,-1e3,-1e3).css(ci(e)).append(n.root),r=i.getBBox();return i.remove(),r}function Rf(n,t,e,i){return(0,w.$K)(n)&&(n=t?te.Z.correctDateWithUnitBeginning(new Date(n),e,null,i):(0,re.zB)(ZD((0,re.zB)(n/e))*e)),n}function fee(n,t,e){var i=Math.abs(t-n)/e,r=i-ZD(i);return r>0?py(Math.abs((0,re.zB)(St(r,10)))):0}var $0=xl.inherit({_toggleParentsScrollSubscription(){},_eventsMap:{onValueChanged:{name:IV}},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var n=this,t=n._renderer,e=t.root;e.css({"touch-action":"pan-y"}),n._clipRect=t.clipRect();var i=t.g().attr({class:"dxrs-view"}).append(e),r=t.g().attr({class:"dxrs-slidersContainer","clip-path":n._clipRect.id}).append(e),m=t.g().attr({class:"dxrs-scale","clip-path":n._clipRect.id}).append(e),D=t.g().attr({class:"dxrs-scale-elements","clip-path":n._clipRect.id}).append(e),A=t.g().attr({class:"dxrs-scale-breaks"}).append(e),N=t.g().attr({class:"dxrs-trackers"}).append(e);n._axis=new iw({renderer:t,root:m,scaleBreaksGroup:A,labelsAxesGroup:D,updateSelectedRange:function(Q,se){n.setValue(Nr(Q),se)},incidentOccurred:n._incidentOccurred}),n._rangeView=new jP({renderer:t,root:i,translator:n._axis.getTranslator()}),n._slidersController=new ZP({renderer:t,root:r,trackersGroup:N,updateSelectedRange:function(Q,se,we){n._rangeOption||n.option(kf,Nr(Q,(0,w.PO)(n._options.silent(kf)))),n._eventTrigger(IV,{value:Nr(Q),previousValue:Nr(se),event:we})},axis:n._axis,translator:n._axis.getTranslator()}),n._tracker=new KP({renderer:t,controller:n._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(n){this._clientRect=n.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource(){var n=this._options.silent(),t=this._axis;if(n.dataSource){var e=this.option("selectedRangeUpdateMode"),i=this.getValue(),r=(0,w.$K)(i[0])&&(0,w.$K)(i[1]);if((0,w.$K)(e)?(e=En(e),this.__skipAnimation=!0):r&&!this._dataSourceIsAsync&&(e=XP),"auto"===e&&r){var m=t.allScaleSelected(i);e=m.startValue&&m.endValue?XP:m.endValue?"shift":"keep"}if(e===XP)n[kf]=null;else if("shift"===e&&r){var D=this.getValue();this.__skipAnimation=!0,n[kf]={length:t.getVisualRangeLength({minVisible:D[0],maxVisible:D[1]})}}else"keep"===e&&(this.__skipAnimation=!0)}this._dataSourceIsAsync=void 0},_change_DATA_SOURCE:function(){this._options.silent("dataSource")&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var n=this._options.silent(kf);this._slidersController.setSelectedRange(n&&kr(n))},_change_VALUE:function(){var n=this._rangeOption;this._dataSourceIsAsync=!this._dataIsReady(),n&&(this._options.silent(kf,n),this.setValue(n))},_validateRange:function(n,t){var e=i=>(0,w.$K)(i)&&!this._axis.getTranslator().isValid(i);this._dataIsReady()&&(e(n)||e(t))&&this._incidentOccurred("E2203")},_applyChanges:function(){var n=this,t=n._options.silent(kf);n._changes.has("VALUE")&&t&&(n._rangeOption=t),n.callBase.apply(n,arguments),n._rangeOption=null,n.__isResizing=n.__skipAnimation=!1},_applyMostlyTotalChange:function(){var e,n=this._renderer,t=this._clientRect,i={left:t[0],top:t[1],width:t[2]-t[0],height:t[3]-t[1]};(this.__isResizing||this.__skipAnimation)&&(e=n.animationEnabled(),n.updateAnimationOptions({enabled:!1})),this._clipRect.attr({x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}),this._axis.getTranslator().update(new as,i,{isHorizontal:!0}),this._updateContent({left:t[0],top:t[1],width:t[2]-t[0],height:t[3]-t[1]}),(this.__isResizing||this.__skipAnimation)&&n.updateAnimationOptions({enabled:e}),this._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation(n,t){var e=this._clientRect,i={left:e[0],top:e[1],width:e[2]-e[0],height:e[3]-e[1]};this._axis.updateOptions((0,y.l)({},n,{isHorizontal:!0,label:{}})),t.isShowChart()&&this._axis.setMarginOptions(t.getMarginOptions(i)),this._axis.updateCanvas(i),t.createPoints()},_updateContent:function(n){var t=this.option("chart"),e=this._createSeriesDataSource(t),i=!(e&&e.isShowChart()||this.option("background.image.url")),r=function pee(n,t,e,i){var r=0,m=D_(En(n.valueType)),D=function(N,Q){var se=N===TV?"start":"end";(0,w.$K)(n[N])&&(r=Q(n[N]),(0,w.$K)(r)?n[N]=r:(n[N]=void 0,e("E2202",[se])))};(m=t||m)||(m=VV(n.startValue,n.endValue)||"numeric"),(m===GD||n.categories)&&(n.type=gy,m=GD),n.containerColor=i,n.valueType=m,n.dataType=m;var A=lp(m);return D(TV,A),D("endValue",A),NV(n,10,e),n.type||(n.type="continuous"),n.parser=A,n.type===fy&&(n.minorTick.visible=!1,n.minorTickInterval=n.minRange,n.marker.visible=!1,n.maxRange=void 0),n.forceUserTickInterval|=(0,w.$K)(n.tickInterval)&&!(0,w.$K)(n.axisDivisionFactor),n.axisDivisionFactor=(0,w.$K)(n.axisDivisionFactor)?n.axisDivisionFactor:30,n.minorAxisDivisionFactor=(0,w.$K)(n.minorAxisDivisionFactor)?n.minorAxisDivisionFactor:15,n}(this._getOption("scale"),e&&e.getCalculatedValueType(),this._incidentOccurred,this._getOption("containerBackgroundColor",!0));e&&this._completeSeriesDataSourceCreation(r,e);var m=function uee(n,t){var e,i,A,N,se,r=!1,m=t.startValue,D=t.endValue,Q=n?n.getBoundRange().arg:new as,we="datetime"===t.valueType,Re=HV(t),Ue=t.minRange;return t.type===gy&&((se=new as({minVisible:m,maxVisible:D})).addRange(Q),Q=se,t._categoriesInfo=N=xr(A=(A=n?n.argCategories:t.categories||m&&D&&[m,D])||[],m,D)),t.type===fy&&(m=t.startValue=Rf(t.startValue,we,Ue,Re),D=t.endValue=Rf(t.endValue,we,Ue,Re),Q.minVisible=Rf(Q.minVisible,we,Ue,Re),Q.maxVisible=Rf(Q.maxVisible,we,Ue,Re),Q.min=Rf(Q.min,we,Ue,Re),Q.max=Rf(Q.max,we,Ue,Re)),(0,w.$K)(m)&&(0,w.$K)(D)?(r=N?N.inverted:m>D,e=N?N.start:r?D:m,i=N?N.end:r?m:D):(0,w.$K)(m)||(0,w.$K)(D)?(e=m,i=D):N&&(e=N.start,i=N.end),Q.addRange({invert:r,min:e,max:i,minVisible:e,maxVisible:i,dataType:t.valueType}),Q.addRange({categories:n?void 0:A,base:t.logarithmBase,axisType:t.type,dataType:t.valueType}),n&&Q.sortCategories(A),Q}(e,r),D=function lee(n,t,e,i){var r,N,Q,m=(0,w.$K)(i.minVisible)?i.minVisible:i.min,D=(0,w.$K)(i.maxVisible)?i.maxVisible:i.max,A=n._categoriesInfo,se={};return n.type===fy?r=function see(n,t,e,i){var D,Q,se,r=n.minorTickInterval,m=n.tickInterval,A="datetime"===n.valueType,N=n.axisDivisionFactor||{};if(!m)do{if(m===(D=aee(m,r,A)))break;m=D,A&&(D=te.Z.dateToMilliseconds(m)),Q=py((e-t)/D),se=ZD(i/(N[m]||50))||1}while(D&&Q>se);return{tickInterval:m,minorTickInterval:r,bounds:{minVisible:t,maxVisible:e},ticks:[]}}(n,m,D,t):(Q=(N=hp({axisType:n.type,dataType:n.valueType,logBase:n.logarithmBase,allowNegatives:!0,linearThreshold:Math.abs(n.linearThreshold||0),axisDivisionFactor:n.axisDivisionFactor,minorAxisDivisionFactor:n.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:n.allowDecimals,endOnTick:n.endOnTick,incidentOccurred:e,rangeIsEmpty:i.isEmpty()})({min:m,max:D,categories:(0,w.$K)(A)?A.categories:[]},t,n.tickInterval,n.forceUserTickInterval,void 0,n.minorTickInterval,n.minorTickCount)).ticks.length,se.minVisible=N.ticks[0]<m?N.ticks[0]:m,se.maxVisible=N.ticks[Q-1]>D?N.ticks[Q-1]:D,r={tickInterval:N.tickInterval,minorTickInterval:0===n.minorTickInterval?0:N.minorTickInterval,bounds:se,ticks:N.ticks}),r}(r,n.width,this._incidentOccurred,m),A=e&&e.isShowChart()&&e.getThemeManager();A&&NV(t&&t.valueAxis,A.getOptions("valueAxis").logarithmBase,this._incidentOccurred),function hee(n,t,e,i,r){var m,D,N,A=n._categoriesInfo,Q=n.valueType===KD;t&&!t.isEmpty()&&!e.isEmpty()&&(e.addRange(m=i.bounds),n.startValue=e.invert?m.maxVisible:m.minVisible,n.endValue=e.invert?m.minVisible:m.maxVisible),n.marker.visible=r(Q&&-1===n.type.indexOf(gy),n.marker.visible,n.startValue,n.endValue,i.tickInterval),A&&(n.startValue=A.start,n.endValue=A.end),-1===n.type.indexOf(gy)&&(D=(0,w.J_)(n.startValue)&&(0,w.J_)(n.endValue)&&n.startValue.getTime()===n.endValue.getTime()||n.startValue===n.endValue),n.isEmpty=function dee(n,t){return!(0,w.$K)(n)||!(0,w.$K)(t)}(n.startValue,n.endValue)||D,n.isEmpty?n.startValue=n.endValue=void 0:(n.minorTickInterval=i.minorTickInterval,n.tickInterval=i.tickInterval,Q&&(!(0,w.$K)(n.label.format)||n.type===fy&&n.minorTickInterval!==n.tickInterval)&&(n.label.format=n.type===gy?Va.Z.getDateFormatByTicks(i.ticks):n.marker.visible?te.Z.getDateFormatByTickInterval(n.tickInterval):Va.Z.getDateFormatByTickInterval(n.startValue,n.endValue,n.tickInterval))),n.type===fy&&(N=function gee(n){var t=n.startValue,e=n.endValue,i="datetime"===n.valueType,r=HV(n),m=n.tickInterval,D={intervals:[]};return!(0,w.$K)(t)||!(0,w.$K)(e)||(D.intervals=te.Z.getSequenceByInterval(t,e,n.minorTickInterval),m!==n.minorTickInterval&&(D.altIntervals=D.intervals,t=Rf(t,i,m,r),e=Rf(e,i,m,r),D.intervals=te.Z.getSequenceByInterval(t,e,m),D.intervals[0]=D.altIntervals[0])),D}(n),n.customMinorTicks=N.altIntervals,n.customTicks=N.intervals,n.customBoundTicks=[n.customTicks[0]])}(r,e,m,D,function cee(n){return function(t,e,i,r,m){return e&&t&&(!(0,w.$K)(m)||m.years||m.months>=6||n/50<py((r-i)/te.Z.dateToMilliseconds("year"))+1)&&(e=!1),e}}(n.width)),function iee(n,t){var e=t.minorTickInterval||t.tickInterval;"datetime"===t.valueType&&(e=te.Z.dateToMilliseconds(e)),n.addRange({interval:e})}(m,r);var N=this._prepareSliderMarkersOptions(r,n.width,D,m),Q=function tee(n,t,e,i,r){var m,N,Q,se,we,Ue,st,D=0,A=0,Re="semidiscrete"===t.type?t.customTicks:r.ticks;return Q=(i=i||{}).left,se=i.right,we=e.placeholderHeight,e.visible&&(m=BV(n,t.startValue,e),N=BV(n,t.endValue,e),void 0===we&&(we=YP(m,N))),t.label.visible&&(Ue=(0,w.$K)(t.startValue)?Re[0]:void 0,st=(0,w.$K)(t.endValue)?Re[Re.length-1]:void 0,D=FV(n,Ue,t,r),A=FV(n,st,t,r)),{left:Q=void 0!==Q?Q:D,right:se=(void 0!==se?se:A)||1,top:we||0,bottom:0}}(this._renderer,r,N,this.option("indent"),D),se={left:n.left+Q.left,top:n.top+Q.top,width:n.left+Q.left+YP(n.width-Q.left-Q.right,1),height:YP(i?24:n.height-Q.top-Q.bottom-ree(this._renderer,r,nee(r),D),0),right:0,bottom:0};this._axis.update(r,i,se,m,e),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,this._updateElements(r,N,i,se,e),A&&A.dispose()},_updateElements:function(n,t,e,i,r){var m=this._getOption("behavior"),D=this._getOption("shutter"),A=n.type!==fy;D.color=D.color||this._getOption(MV,!0),this._rangeView.update(this.option("background"),this._themeManager.theme("background"),i,e,m.animationEnabled&&this._renderer.animationEnabled(),r),this._isUpdating=!0,this._slidersController.update([i.top,i.top+i.height],m,e,this._getOption("sliderHandle"),t,D,{minRange:A?this.option("scale.minRange"):void 0,maxRange:A?this.option("scale.maxRange"):void 0},this._axis.getFullTicks(),this._getOption("selectedRangeColor",!0)),this._requestChange(["SLIDER_SELECTION"]),this._isUpdating=!1,this._tracker.update(!this._axis.getTranslator().getBusinessRange().isEmpty(),m)},_createSeriesDataSource:function(n){var t,e=this._dataSourceItems(),i=this._getOption("scale"),r=i.valueType||VV(i.startValue,i.endValue),m=new zl({renderer:this._renderer,axisType:"xyAxes",drawingType:"linear"});return m.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:this._getOption("chart").valueAxis.categoriesSortingMethod}),(e||n&&n.series)&&(n=(0,y.l)({},n,{theme:this.option("theme")}),t=new $P({renderer:this._renderer,dataSource:e,valueType:En(r),axisType:i.type,chart:n,dataSourceField:this.option("dataSourceField"),incidentOccurred:this._incidentOccurred,categories:i.categories,argumentAxis:this._axis,valueAxis:m})),t},_prepareSliderMarkersOptions:function(n,t,e,i){var r=e.minorTickInterval,m=e.tickInterval,D=m,A=n.endValue,N=n.startValue,Q=this._getOption("sliderMarker"),se=!this._getOption("behavior").snapToTicks,we=n.type===gy,Re=n.valueType===KD;return Q.borderColor=this._getOption(MV,!0),!Q.format&&!i.isEmpty()&&(se&&(0,w.kE)(n.startValue)&&(Q.format={type:"fixedPoint",precision:fee(N,A,t)}),Re&&!we&&((0,w.$K)(r)&&0!==r&&(D=function oee(n,t,e){var i=te.Z.getDateUnitInterval(t),r=te.Z.getDateUnitInterval(n),m=te.Z.dateUnitIntervals.indexOf(i);return e&&i===r&&m>0&&(i=te.Z.dateUnitIntervals[m-1]),i}(m,r,se)),n.marker.visible?Q.format=te.Z.getDateFormatByTickInterval(D):(0,w.$K)(N)&&(0,w.$K)(A)&&(Q.format=Va.Z.getDateFormatByTickInterval(N,A,D))),Re&&we&&e.ticks.length&&(Q.format=Va.Z.getDateFormatByTicks(e.ticks))),Q},getValue:function(){return Nr(this._slidersController.getSelectedRange())},setValue:function(n,t){var e=kr(n);!this._isUpdating&&n&&(this._validateRange(e.startValue,e.endValue),!Ur(e,this._slidersController.getSelectedRange())&&this._slidersController.setSelectedRange(e,t))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});function vee(){return 1}function yee(n){return n%2==1?-ZD(n/2):-n/2}function Cee(n,t,e,i){function r(D){2===D.length&&Mo_areLabelsOverlap(t[D[0]],t[D[1]],e,i)&&n[D[0]].removeLabel()}function m(D){for(var A=[],N=D;A.length<2&&N<n.length;N++)n[N].label&&A.push(N);return A}n.length<3||(r(m(0)),r(m(n.length-2).reverse()))}function iw(n){this._axis=new zl({renderer:n.renderer,axesContainerGroup:n.root,scaleBreaksGroup:n.scaleBreaksGroup,labelsAxesGroup:n.labelsAxesGroup,incidentOccurred:n.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0,getTemplate(){}}),this._updateSelectedRangeCallback=n.updateSelectedRange,this._axis.getAxisSharpDirection=this._axis.getSharpDirectionByCoords=vee,this._axis.getTickStartPositionShift=yee,this._axis._checkShiftedLabels=Cee}(0,O.S6)(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],function(n,t){$0.prototype._optionChangesMap[t]="MOSTLY_TOTAL"}),iw.prototype={constructor:iw,update:function(n,t,e,i,r){var m=this._axis;m.updateOptions(function mee(n,t,e,i){return n.marker.label.font=n.label.font,n.color=n.marker.color=n.tick.color,n.opacity=n.marker.opacity=n.tick.opacity,n.width=n.marker.width=n.tick.width,n.placeholderSize=(n.placeholderHeight||0)+i,n.argumentType=n.valueType,n.visible=t,n.isHorizontal=!0,n.calculateMinors=!0,n.semiDiscreteInterval=n.minRange,t||(n.minorTick.length=n.tick.length=e),n.label.indentFromAxis=n.label.topIndent+i,n}(n,t,e.height,e.height/2-py(n.width/2))),m.validate(),m.setBusinessRange(i,!0),void 0!==r&&r.isShowChart()&&m.setMarginOptions(r.getMarginOptions(e)),m.draw(e),m.shift({left:0,bottom:-e.height/2+e.top}),m.getMarkerTrackers()&&function _ee(n,t,e){function i(r){var m=r.target.range,D=n.minRange?te.Z.addInterval(m.startValue,n.minRange):void 0,A=n.maxRange?te.Z.addInterval(m.startValue,n.maxRange):void 0;D&&D>m.endValue||A&&A<m.endValue||e(m,r)}(0,O.S6)(t,function(r,m){m.on("dxpointerdown",i)})}(n,m.getMarkerTrackers(),this._updateSelectedRangeCallback),m.drawScaleBreaks({start:e.top,end:e.top+e.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected(n){var{startValue:t,endValue:e}=this._axis.visualRange();return{startValue:n[0].valueOf()===t.valueOf(),endValue:n[1].valueOf()===e.valueOf()}},getOptions(){return this._axis.getOptions()||{}}},(0,O.S6)(zl.prototype,n=>{"constructor"!==n&&"_"!==n[0]&&(0,w.mf)(zl.prototype[n])&&!(n in iw.prototype)&&(iw.prototype[n]=function(){var t=this._axis;return t[n].apply(t,arguments)})}),(0,T.Z)("dxRangeSelector",$0);const xee=$0;$0.addPlugin(Bu),$0.addPlugin(Oe),$0.addPlugin(wi),$0.addPlugin(za);const bee=xee,wee={provide:ne.JU,useExisting:(0,a.Gpc)(()=>Eee),multi:!0};let Eee=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"disposing",emit:"onDisposing"},{subscribe:"drawn",emit:"onDrawn"},{subscribe:"exported",emit:"onExported"},{subscribe:"exporting",emit:"onExporting"},{subscribe:"fileSaving",emit:"onFileSaving"},{subscribe:"incidentOccurred",emit:"onIncidentOccurred"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"backgroundChange"},{emit:"behaviorChange"},{emit:"chartChange"},{emit:"containerBackgroundColorChange"},{emit:"dataSourceChange"},{emit:"dataSourceFieldChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"exportChange"},{emit:"indentChange"},{emit:"loadingIndicatorChange"},{emit:"marginChange"},{emit:"pathModifiedChange"},{emit:"redrawOnResizeChange"},{emit:"rtlEnabledChange"},{emit:"scaleChange"},{emit:"selectedRangeColorChange"},{emit:"selectedRangeUpdateModeChange"},{emit:"shutterChange"},{emit:"sizeChange"},{emit:"sliderHandleChange"},{emit:"sliderMarkerChange"},{emit:"themeChange"},{emit:"titleChange"},{emit:"valueChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get background(){return this._getOption("background")}set background(e){this._setOption("background",e)}get behavior(){return this._getOption("behavior")}set behavior(e){this._setOption("behavior",e)}get chart(){return this._getOption("chart")}set chart(e){this._setOption("chart",e)}get containerBackgroundColor(){return this._getOption("containerBackgroundColor")}set containerBackgroundColor(e){this._setOption("containerBackgroundColor",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get dataSourceField(){return this._getOption("dataSourceField")}set dataSourceField(e){this._setOption("dataSourceField",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get export(){return this._getOption("export")}set export(e){this._setOption("export",e)}get indent(){return this._getOption("indent")}set indent(e){this._setOption("indent",e)}get loadingIndicator(){return this._getOption("loadingIndicator")}set loadingIndicator(e){this._setOption("loadingIndicator",e)}get margin(){return this._getOption("margin")}set margin(e){this._setOption("margin",e)}get pathModified(){return this._getOption("pathModified")}set pathModified(e){this._setOption("pathModified",e)}get redrawOnResize(){return this._getOption("redrawOnResize")}set redrawOnResize(e){this._setOption("redrawOnResize",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get scale(){return this._getOption("scale")}set scale(e){this._setOption("scale",e)}get selectedRangeColor(){return this._getOption("selectedRangeColor")}set selectedRangeColor(e){this._setOption("selectedRangeColor",e)}get selectedRangeUpdateMode(){return this._getOption("selectedRangeUpdateMode")}set selectedRangeUpdateMode(e){this._setOption("selectedRangeUpdateMode",e)}get shutter(){return this._getOption("shutter")}set shutter(e){this._setOption("shutter",e)}get size(){return this._getOption("size")}set size(e){this._setOption("size",e)}get sliderHandle(){return this._getOption("sliderHandle")}set sliderHandle(e){this._setOption("sliderHandle",e)}get sliderMarker(){return this._getOption("sliderMarker")}set sliderMarker(e){this._setOption("sliderMarker",e)}get theme(){return this._getOption("theme")}set theme(e){this._setOption("theme",e)}get title(){return this._getOption("title")}set title(e){this._setOption("title",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}change(e){}_createInstance(e,i){return new bee(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("dataSource",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("dataSource"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-range-selector"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{background:"background",behavior:"behavior",chart:"chart",containerBackgroundColor:"containerBackgroundColor",dataSource:"dataSource",dataSourceField:"dataSourceField",disabled:"disabled",elementAttr:"elementAttr",export:"export",indent:"indent",loadingIndicator:"loadingIndicator",margin:"margin",pathModified:"pathModified",redrawOnResize:"redrawOnResize",rtlEnabled:"rtlEnabled",scale:"scale",selectedRangeColor:"selectedRangeColor",selectedRangeUpdateMode:"selectedRangeUpdateMode",shutter:"shutter",size:"size",sliderHandle:"sliderHandle",sliderMarker:"sliderMarker",theme:"theme",title:"title",value:"value"},outputs:{onDisposing:"onDisposing",onDrawn:"onDrawn",onExported:"onExported",onExporting:"onExporting",onFileSaving:"onFileSaving",onIncidentOccurred:"onIncidentOccurred",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",backgroundChange:"backgroundChange",behaviorChange:"behaviorChange",chartChange:"chartChange",containerBackgroundColorChange:"containerBackgroundColorChange",dataSourceChange:"dataSourceChange",dataSourceFieldChange:"dataSourceFieldChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",exportChange:"exportChange",indentChange:"indentChange",loadingIndicatorChange:"loadingIndicatorChange",marginChange:"marginChange",pathModifiedChange:"pathModifiedChange",redrawOnResizeChange:"redrawOnResizeChange",rtlEnabledChange:"rtlEnabledChange",scaleChange:"scaleChange",selectedRangeColorChange:"selectedRangeColorChange",selectedRangeUpdateModeChange:"selectedRangeUpdateModeChange",shutterChange:"shutterChange",sizeChange:"sizeChange",sliderHandleChange:"sliderHandleChange",sliderMarkerChange:"sliderMarkerChange",themeChange:"themeChange",titleChange:"titleChange",valueChange:"valueChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,wee,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},styles:["[_nghost-%COMP%] {  display: block; }"]}),n})(),zV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.DTQ,M.qB1,M.Gc$,M.dVY,M._7s,M.MHt,M.DQr,M.bgw,M.Ye1,M.kZH,M.e1H,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.YXG,M.FZZ,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M.p7n,M.ZLS,M.Rue,M.gI1,M.lj9,M.Flw,M.rHV,M.KjY,M.ENI,M.M2g,M.Zt4,M.xNt,M.cRZ,M.SGB,M.HC7,M.Irw,M.fhR,M.ji7,M.ZmN,M.mbS,M.Kx,M.Bh5,M.yWq,M.rrz,M.lTN,g.Lz,g.ie,p.Cu],M.DTQ,M.qB1,M.Gc$,M.dVY,M._7s,M.MHt,M.DQr,M.bgw,M.Ye1,M.kZH,M.e1H,M.dwQ,M.$a2,M.nah,M.Re4,M.PR8,M.gN6,M.Lxh,M.kWr,M.XfX,M.DB7,M.cdq,M.Mel,M.ngB,M.xOr,M.K5R,M.zvd,M.$Tm,M.YXG,M.FZZ,M.IqU,M.l95,M.NsS,M.cp7,M.Ezz,M.Rvn,M.jri,M.Wi7,M.d_Q,M.P5j,M.kln,M.c6p,M.tAX,M.y6c,M.p7n,M.ZLS,M.Rue,M.gI1,M.lj9,M.Flw,M.rHV,M.KjY,M.ENI,M.M2g,M.Zt4,M.xNt,M.cRZ,M.SGB,M.HC7,M.Irw,M.fhR,M.ji7,M.ZmN,M.mbS,M.Kx,M.Bh5,M.yWq,M.rrz,M.lTN,g.ie]}),n})();var WV=u(1409),See=u(974),Oee=u(4594),Dee=u(322),Tee={top:{my:"bottom center",at:"top center",collision:"fit none"},bottom:{my:"top center",at:"bottom center",collision:"fit none"}},Iee={h:2,v:1};class Aee extends Dee.f{_normalizePosition(t){var e=this._props.target,i=".".concat("dx-slider"),r=e?.closest(i),m={of:e,boundaryOffset:Iee,boundary:r?.get(0)},D=(0,y.l)(!0,{},m,this._positionToObject(t));return this._positionSide=this._getDisplaySide(D),D}_renderContentInitialPosition(){super._renderContentInitialPosition(),this._fitIntoSlider()}_fitIntoSlider(){var{collisionSide:t,oversize:e}=QO.Z.calculate(this._$content,this._position).h;(0,Ms.pB)(this._$content,{left:this._visualPosition.left+("left"===t?1:-1)*e}),this._updateVisualPositionValue()}_positionToObject(t){return(0,w.HD)(t)?(0,y.l)({},Tee[t]):t}}var kee=rD.inherit({_getDefaultOptions(){return(0,y.l)(this.callBase(),{visible:!1,position:"top",hideOnOutsideClick:!1,hideTopOverlayHandler:null,hideOnParentScroll:!1,animation:null,arrowPosition:null,templatesRenderAsynchronously:!1,_fixWrapperPosition:!1,useResizeObserver:!1,showMode:"onHover",format:n=>n,value:0})},_initMarkup(){this.callBase(),this._attachToMarkup(this.option("visible")),this._toggleShowModeClass()},_renderContent(){this.callBase(),this._renderContentText()},_renderContentText(){var{value:n,format:t}=this.option(),e=qv.Z.format(n??0,t);this.$content().text(e),this._renderPosition()},_toggleShowModeClass(){var n="onHover"===this.option("showMode");this.option("target").toggleClass("dx-slider-tooltip-visible-on-hover",n)},_initPositionController(){this._positionController=new Aee(this._getPositionControllerConfig())},_attachToMarkup(n){var t=this.option("target");n?this.$element().appendTo(t):this.$element().detach()},_optionChanged(n){var{name:t,value:e}=n;switch(t){case"visible":this._attachToMarkup(e),this.callBase(n);break;case"showMode":this._toggleShowModeClass();break;case"format":case"value":this._renderContentText();break;default:this.callBase(n)}},updatePosition(){this._renderPosition()}});const Ree=kee;var Bee=ca.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{hoverStateEnabled:!1,value:0,tooltip:{enabled:!1,format:n=>n,position:"top",showMode:"onHover"}})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this.callBase(),this._renderTooltip()},_renderTooltip:function(){var{tooltip:n,value:t}=this.option(),{position:e,format:i,enabled:r,showMode:m}=n,D=(0,l.Z)("<div>");this._sliderTooltip=this._createComponent(D,Ree,{target:this.$element(),container:D,position:e,visible:r,showMode:m,format:i,value:t})},_clean:function(){this.callBase(),this._sliderTooltip=null},_updateTooltipOptions(n){var t,e=ca.Z.getOptionsFromContainer(n);this._setWidgetOption("_sliderTooltip",[e]),null===(t=this._sliderTooltip)||void 0===t||t.option("visible",e.enabled)},_optionChanged:function(n){var{name:t,value:e}=n;switch(t){case"value":var i;null===(i=this._sliderTooltip)||void 0===i||i.option("value",e),this.setAria("valuenow",e);break;case"tooltip":this._updateTooltipOptions(n);break;default:this.callBase(n)}},updateTooltipPosition:function(){var n;null===(n=this._sliderTooltip)||void 0===n||n.updatePosition()},repaint:function(){var n;null===(n=this._sliderTooltip)||void 0===n||n.repaint()}});const wh=Bee;var UV="dx-slider-label",JP="dx-slider-label-position-",ZV="dx-slider-tooltip-position-",KV="Validation",GV=See.Z.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var n=this.option("rtlEnabled"),t=(r,m)=>{r=this._valueStep(r);var D=this.option("step"),A=this.option("value"),N=A-this.option("min"),Q=(0,re.lb)(N,D,this._getValueExponentLength()),se=m?A-r+(Q?D-Q:0):A+r-Q,we=this.option("min"),Re=this.option("max");return se<we?se=we:se>Re&&(se=Re),this._roundToExponentLength(se)},e=r=>{this.option("value",t(r,n))},i=r=>{this.option("value",t(r,!n))};return(0,y.l)(this.callBase(),{leftArrow:function(r){this._processKeyboardEvent(r),i(this.option("step"))},rightArrow:function(r){this._processKeyboardEvent(r),e(this.option("step"))},pageUp:function(r){this._processKeyboardEvent(r),e(this.option("step")*this.option("keyStep"))},pageDown:function(r){this._processKeyboardEvent(r),i(this.option("step")*this.option("keyStep"))},home:function(r){this._processKeyboardEvent(r);var m=this.option("min");this.option("value",m)},end:function(r){this._processKeyboardEvent(r);var m=this.option("max");this.option("value",m)}})},_processKeyboardEvent:function(n){n.preventDefault(),n.stopPropagation(),this._saveValueChangeEvent(n)},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(n){return n},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(n){return n}},keyStep:1,useInkRipple:!1,validationMessageOffset:(0,z.x2)()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0,valueChangeMode:"onHandleMove"})},_toggleValidationMessage:function(n){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",n)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var n=(0,z.Vk)();return(0,z.x2)(n)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var n=this.NAME+KV,t=(0,k.V4)("focusin",n),e=(0,k.V4)("focusout",n),i=this._focusTarget();d.Z.on(i,t,this._toggleValidationMessage.bind(this,!0)),d.Z.on(i,e,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var n=this._focusTarget();this._toggleValidationMessage(!1),d.Z.off(n,this.NAME+KV)},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=(0,l.Z)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=(0,Oee.sY)({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(n,t,e,i){if(this._inkRipple){var r={element:n,event:t,wave:i};e?this._inkRipple.showWave(r):this._inkRipple.hideWave(r)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,XA.Z,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange:function(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass("dx-slider-range-visible",Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(n,t){var e=t||(0,l.Z)("<div>").appendTo(this._$range),i=this.option("tooltip");return this.$element().toggleClass(ZV+"bottom",i.enabled&&"bottom"===i.position).toggleClass(ZV+"top",i.enabled&&"top"===i.position),this._createComponent(e,wh,{value:n,tooltip:i}),e},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_toggleActiveState:function(n,t){this.callBase(n,t),this._renderInkWave(n,null,!!t,1)},_toggleFocusClass:function(n,t){if(this.callBase(n,t),!this._disposed){var e=(0,l.Z)(t||this._focusTarget());this._renderInkWave(e,null,n,0)}},_renderLabels:function(){if(this.$element().removeClass(JP+"bottom").removeClass(JP+"top"),this.option("label.visible")){var n=this.option("min"),t=this.option("max"),e=this.option("label.position"),i=this.option("label.format");this._$minLabel||(this._$minLabel=(0,l.Z)("<div>").addClass(UV).appendTo(this._$wrapper)),this._$minLabel.text(qv.Z.format(n,i)),this._$maxLabel||(this._$maxLabel=(0,l.Z)("<div>").addClass(UV).appendTo(this._$wrapper)),this._$maxLabel.text(qv.Z.format(t,i)),this.$element().addClass(JP+e)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var n=(0,k.V4)(So.Z.down,this.NAME),t=(0,k.V4)(v.u,this.NAME),e=this._createAction(this._startHandler.bind(this)),i=this.$element();d.Z.off(i,n),d.Z.on(i,n,r=>{(0,k.N5)(r)&&e({event:r})}),d.Z.off(i,t),d.Z.on(i,t,r=>{var m=this._activeHandle();m&&(d.Z.trigger(m,"focusin"),d.Z.trigger(m,"focus")),e({event:r}),"onHandleRelease"===this.option("valueChangeMode")&&(this.option("value",this._getActualValue()),this._actualValue=void 0)})},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(n){var t=this.option("rtlEnabled");(0,k.z6)(n.event)&&this._createAction(this._startHandler.bind(this))({event:n.event}),this._feedbackDeferred=new P.BH,(0,WV.dR)(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio;var e=this._startOffset*this._swipePixelRatio(),i=(1-this._startOffset)*this._swipePixelRatio();n.event.maxLeftOffset=t?i:e,n.event.maxRightOffset=t?e:i,this._itemWidthRatio=(0,s.dz)(this.$element())/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(n){if(!this._isSingleValuePossible()){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var t=this.option("rtlEnabled")?-1:1,e=this._startOffset+t*n.event.targetOffset/this._swipePixelRatio();delete this._needPreventAnimation,this._saveValueChangeEvent(n.event),this._changeValueOnSwipe(e),"onHandleRelease"===this.option("valueChangeMode")&&this.option("value",this._getActualValue()),this._actualValue=void 0,delete this._startOffset,this._renderValue()}},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(n){this._isSingleValuePossible()||(this._saveValueChangeEvent(n.event),this._updateHandlePosition(n))},_updateHandlePosition:function(n){var t=this.option("rtlEnabled")?-1:1,e=Math.min(this._startOffset+t*n.event.offset/this._swipePixelRatio(),1);(0,s.cl)(this._$range,100*e+"%"),wh.getInstance(this._activeHandle()),this._changeValueOnSwipe(e)},_swipePixelRatio:function(){var n=this.option("min");return(this.option("max")-n)/this._valueStep(this.option("step"))},_valueStep:function(n){return(!n||isNaN(n))&&(n=1),n},_getValueExponentLength:function(){var{step:n,min:t}=this.option();return Math.max((0,re.zP)(n),(0,re.zP)(t))},_roundToExponentLength:function(n){var t=this._getValueExponentLength();return(0,re.y6)(n,t)},_changeValueOnSwipe:function(n){var t=this.option("min"),e=this.option("max"),i=this._valueStep(this.option("step")),m=t+n*(e-t);if(!(i<0))if(m===e||m===t)this._setValueOnSwipe(m);else{var D=Math.round((m-t)/i);m=this._roundToExponentLength(D*i+t),this._setValueOnSwipe(Math.max(Math.min(m,e),t))}},_setValueOnSwipe:function(n){this._actualValue=n,"onHandleRelease"===this.option("valueChangeMode")?wh.getInstance(this._activeHandle()).option("value",n):(this.option("value",n),this._saveValueChangeEvent(void 0))},_getActualValue:function(){var n;return null!==(n=this._actualValue)&&void 0!==n?n:this.option("value")},_isSingleValuePossible:function(){var{min:n,max:t}=this.option();return n===t},_startHandler:function(n){if(!this._isSingleValuePossible()){var t=n.event;this._currentRatio=((0,k.a0)(t).x-this._$bar.offset().left)/(0,s.dz)(this._$bar),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(t),this._changeValueOnSwipe(this._currentRatio)}},_renderValue:function(){this.callBase();var n=this._getActualValue();this._getSubmitElement().val((0,E.FH)(n)),wh.getInstance(this._activeHandle()).option("value",n)},_setRangeStyles:function(n){n&&this._$range.css(n)},_callHandlerMethod:function(n,t){wh.getInstance(this._$handle)[n](t)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("updateTooltipPosition")},_optionChanged:function(n){switch(n.name){case"visible":this.callBase(n),this._renderHandle(),this._repaintHandle();break;case"min":case"max":this._renderValue(),this.callBase(n),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":case"valueChangeMode":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(n)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,delete this._actualValue,this.callBase()}});(0,T.Z)("dxSlider",GV);const jV=GV;var QP="dx-rangeslider",jD=QP+"-start-handle",Zee=QP+"-end-handle",$V=jV.inherit({_supportedKeys:function(){var n=this.option("rtlEnabled"),t=this,e=function(D,A){t.option("start")===t.option("end")&&(t._capturedHandle=A,D.target=t._capturedHandle,d.Z.trigger(t._capturedHandle,"focus"))},i=function(D,A,N){var se=(0,l.Z)(D.target).hasClass(jD)?"start":"end",we=t.option(se);A=t._valueStep(A),t.option(se,we+=N*(n?-A:A))},r=function(D,A){e(D,n?t._$handleStart:t._$handleEnd),i(D,A,1)},m=function(D,A){e(D,n?t._$handleEnd:t._$handleStart),i(D,A,-1)};return(0,y.l)(this.callBase(),{leftArrow:function(D){this._processKeyboardEvent(D),m(D,this.option("step"))},rightArrow:function(D){this._processKeyboardEvent(D),r(D,this.option("step"))},pageUp:function(D){this._processKeyboardEvent(D),r(D,this.option("step")*this.option("keyStep"))},pageDown:function(D){this._processKeyboardEvent(D),m(D,this.option("step")*this.option("keyStep"))},home:function(D){this._processKeyboardEvent(D);var A=(0,l.Z)(D.target).hasClass(jD),N=A?"start":"end",se=this.option(A?"min":"start");this.option(N,se)},end:function(D){this._processKeyboardEvent(D);var A=(0,l.Z)(D.target).hasClass(jD),N=A?"start":"end",se=this.option(A?"end":"max");this.option(N,se)}})},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var n=this.$element();this._$submitStartElement=(0,l.Z)("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(n),this._$submitEndElement=(0,l.Z)("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(n)},_initOptions:function(n){this.callBase(n);var t=this.initialOption("value"),e=this.option("value");e[0]===t[0]&&e[1]===t[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:e[0],end:e[1]})},_initMarkup:function(){this.$element().addClass(QP),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass(jD),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass(Zee),this._updateHandleAriaLabels()},_startHandler:function(n){var t=n.event,e=this._$range,i=(0,s.dz)(e),r=(0,k.a0)(t).x-this._$bar.offset().left,m=e.position().left,D=e.position().left+i,A=this.option("rtlEnabled");this._capturedHandle=(A?-1:1)*((m+D)/2-r)>0?this._$handleStart:this._$handleEnd,this.callBase(n)},_updateHandleAriaLabels:function(){this.setAria("label",yn.Z.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",yn.Z.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(n){var e=this.option("rtlEnabled")?-1:1,i=this.option("max"),r=this.option("min"),m=this._startOffset+e*n.event.offset/this._swipePixelRatio(),D=(m=m.toPrecision(12))*(i-r)+r;this._updateSelectedRangePosition(m,m),wh.getInstance(this._activeHandle()),this._changeValueOnSwipe(m);var Q,[A,N]=this._getActualValue();A===N&&(d.Z.trigger(Q=D<A?this._$handleStart:this._$handleEnd,"focus"),Q&&Q!==this._capturedHandle&&(this._updateSelectedRangePosition((A-r)/(i-r),(N-r)/(i-r)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(Q,!0),this._capturedHandle=Q),this._updateSelectedRangePosition(m,m),this._changeValueOnSwipe(m))},_updateSelectedRangePosition:function(n,t){var e=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&e||this._capturedHandle===this._$handleEnd&&!e;this._$range.css(i?"right":"left",e^i?100-100*t+"%":100*n+"%")},_setValueOnSwipe:function(n){var t=this._capturedHandle===this._$handleStart?"start":"end",[e,i]=this._getActualValue(),r=this.option("max"),m=this.option("min");e=Math.min(Math.max(e,m),r),i=Math.min(Math.max(i,m),r),"start"===t?e=n>i?i:n:i=n<e?e:n,"onHandleMove"===this.option("valueChangeMode")?this.option("value",[e,i]):(this._actualValue=[e,i],this._renderValue())},_renderValue:function(){var[n,t]=this._getActualValue(),e=this.option("min"),i=this.option("max"),r=this.option("rtlEnabled");n=Math.max(e,Math.min(n,i)),t=Math.max(n,Math.min(t,i)),"onHandleMove"===this.option("valueChangeMode")&&(this._setOptionWithoutOptionChange("start",n),this._setOptionWithoutOptionChange("end",t),this._setOptionWithoutOptionChange("value",[n,t])),this._$submitStartElement.val((0,E.FH)(n)),this._$submitEndElement.val((0,E.FH)(t));var D=i===e?0:(t-e)/(i-e),A=parseFloat((100*(i===e?0:(n-e)/(i-e))).toPrecision(12))+"%",N=parseFloat((100*(1-D)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:r?A:N,left:r?N:A}),wh.getInstance(this._$handleStart).option("value",n),wh.getInstance(this._$handleEnd).option("value",t)},_callHandlerMethod:function(n,t){wh.getInstance(this._$handleStart)[n](t),wh.getInstance(this._$handleEnd)[n](t)},_setValueOption:function(){var n=this.option("start"),t=this.option("end");this.option("value",[n,t])},_optionChanged:function(n){switch(n.name){case"value":if(n.value[0]===n.previousValue[0]&&n.value[1]===n.previousValue[1])break;this._setOptionWithoutOptionChange("start",n.value[0]),this._setOptionWithoutOptionChange("end",n.value[1]),this._renderValue();var t=this.option("start"),e=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:t,end:e,value:[t,e],event:this._valueChangeEventInstance,previousValue:n.previousValue}),this.validationRequest.fire({value:[t,e],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",n.value);break;case"endName":this._$submitEndElement.attr("name",n.value);break;case"name":break;default:this.callBase(n)}}});(0,T.Z)("dxRangeSlider",$V);const Kee=$V,Gee={provide:ne.JU,useExisting:(0,a.Gpc)(()=>jee),multi:!0};let jee=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"endChange"},{emit:"endNameChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showRangeChange"},{emit:"startChange"},{emit:"startNameChange"},{emit:"stepChange"},{emit:"tabIndexChange"},{emit:"tooltipChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeModeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get end(){return this._getOption("end")}set end(e){this._setOption("end",e)}get endName(){return this._getOption("endName")}set endName(e){this._setOption("endName",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get keyStep(){return this._getOption("keyStep")}set keyStep(e){this._setOption("keyStep",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showRange(){return this._getOption("showRange")}set showRange(e){this._setOption("showRange",e)}get start(){return this._getOption("start")}set start(e){this._setOption("start",e)}get startName(){return this._getOption("startName")}set startName(e){this._setOption("startName",e)}get step(){return this._getOption("step")}set step(e){this._setOption("step",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tooltip(){return this._getOption("tooltip")}set tooltip(e){this._setOption("tooltip",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeMode(){return this._getOption("valueChangeMode")}set valueChangeMode(e){this._setOption("valueChangeMode",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new Kee(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-range-slider"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",end:"end",endName:"endName",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",keyStep:"keyStep",label:"label",max:"max",min:"min",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showRange:"showRange",start:"start",startName:"startName",step:"step",tabIndex:"tabIndex",tooltip:"tooltip",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeMode:"valueChangeMode",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",endChange:"endChange",endNameChange:"endNameChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",maxChange:"maxChange",minChange:"minChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showRangeChange:"showRangeChange",startChange:"startChange",startNameChange:"startNameChange",stepChange:"stepChange",tabIndexChange:"tabIndexChange",tooltipChange:"tooltipChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeModeChange:"valueChangeModeChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,Gee,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),YV=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.e1H,M.FZZ,M.vZC,g.Lz,g.ie,p.Cu],M.e1H,M.FZZ,M.vZC,g.ie]}),n})();var ek=["MO","TU","WE","TH","FR","SA","SU"],$l=function(){function n(t,e){if(0===e)throw new Error("Can't create weekday with n == 0");this.weekday=t,this.n=e}return n.fromStr=function(t){return new n(ek.indexOf(t))},n.prototype.nth=function(t){return this.n===t?this:new n(this.weekday,t)},n.prototype.equals=function(t){return this.weekday===t.weekday&&this.n===t.n},n.prototype.toString=function(){var t=ek[this.weekday];return this.n&&(t=(this.n>0?"+":"")+String(this.n)+t),t},n.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},n}(),Ws=function(n){return null!=n},Eh=function(n){return"number"==typeof n},XV=function(n){return"string"==typeof n&&ek.includes(n)},qu=Array.isArray,Sh=function(n,t){void 0===t&&(t=n),1===arguments.length&&(t=n,n=0);for(var e=[],i=n;i<t;i++)e.push(i);return e},Ta=function(n,t){var e=0,i=[];if(qu(n))for(;e<t;e++)i[e]=[].concat(n);else for(;e<t;e++)i[e]=n;return i},$ee=function(n){return qu(n)?n:[n]};function my(n,t,e){void 0===e&&(e=" ");var i=String(n);return i.length>(t>>=0)?String(i):((t-=i.length)>e.length&&(e+=Ta(e,t/e.length)),e.slice(0,t)+String(i))}var Pd=function(n,t){var e=n%t;return e*t<0?e+t:e},tk=function(n,t){return{div:Math.floor(n/t),mod:Pd(n,t)}},Oh=function(n){return!Ws(n)||0===n.length},ul=function(n){return!Oh(n)},ja=function(n,t){return ul(n)&&-1!==n.indexOf(t)},Y0=function(n,t,e,i,r,m){return void 0===i&&(i=0),void 0===r&&(r=0),void 0===m&&(m=0),new Date(Date.UTC(n,t-1,e,i,r,m))},Xee=[31,28,31,30,31,30,31,31,30,31,30,31],JV=Y0(1970,1,1),qee=[6,0,1,2,3,4,5],rw=function(n){return n%4==0&&n%100!=0||n%400==0},QV=function(n){return n instanceof Date},ow=function(n){return QV(n)&&!isNaN(n.getTime())},eN=function(n){return 60*n.getTimezoneOffset()*1e3},ik=function(n){return function(n,t){var e=n.getTime()-eN(n),i=t.getTime()-eN(t);return Math.round((e-i)/864e5)}(n,JV)},tN=function(n){return new Date(JV.getTime()+864e5*n)},Qee=function(n){var t=n.getUTCMonth();return 1===t&&rw(n.getUTCFullYear())?29:Xee[t]},_y=function(n){return qee[n.getUTCDay()]},nN=function(n,t){var e=Y0(n,t+1,1);return[_y(e),Qee(e)]},iN=function(n,t){return t=t||n,new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},rk=function(n){return new Date(n.getTime())},rN=function(n){for(var t=[],e=0;e<n.length;e++)t.push(rk(n[e]));return t},aw=function(n){n.sort(function(t,e){return t.getTime()-e.getTime()})},ok=function(n,t){void 0===t&&(t=!0);var e=new Date(n);return[my(e.getUTCFullYear().toString(),4,"0"),my(e.getUTCMonth()+1,2,"0"),my(e.getUTCDate(),2,"0"),"T",my(e.getUTCHours(),2,"0"),my(e.getUTCMinutes(),2,"0"),my(e.getUTCSeconds(),2,"0"),t?"Z":""].join("")},ak=function(n){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(n);if(!e)throw new Error("Invalid UNTIL value: ".concat(n));return new Date(Date.UTC(parseInt(e[1],10),parseInt(e[2],10)-1,parseInt(e[3],10),parseInt(e[5],10)||0,parseInt(e[6],10)||0,parseInt(e[7],10)||0))},oN=function(n,t){return n.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},tte=function(){function n(t,e){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=t,this.args=e,"between"===t?(this.maxDate=e.inc?e.before:new Date(e.before.getTime()-1),this.minDate=e.inc?e.after:new Date(e.after.getTime()+1)):"before"===t?this.maxDate=e.inc?e.dt:new Date(e.dt.getTime()-1):"after"===t&&(this.minDate=e.inc?e.dt:new Date(e.dt.getTime()+1))}return n.prototype.accept=function(t){++this.total;var e=this.minDate&&t<this.minDate,i=this.maxDate&&t>this.maxDate;if("between"===this.method){if(e)return!0;if(i)return!1}else if("before"===this.method){if(i)return!1}else if("after"===this.method)return!!e||(this.add(t),!1);return this.add(t)},n.prototype.add=function(t){return this._result.push(t),!0},n.prototype.getValue=function(){var t=this._result;switch(this.method){case"all":case"between":return t;default:return t.length?t[t.length-1]:null}},n.prototype.clone=function(){return new n(this.method,this.args)},n}();const vy=tte;var Lr=u(4762),nte=function(n){function t(e,i,r){var m=n.call(this,e,i)||this;return m.iterator=r,m}return(0,Lr.ZT)(t,n),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(vy);const aN=nte,$D={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}};var sN=function(n,t){return-1!==n.indexOf(t)},rte=function(n){return n.toString()},ote=function(n,t,e){return"".concat(t," ").concat(e,", ").concat(n)},ate=function(){function n(t,e,i,r){if(void 0===e&&(e=rte),void 0===i&&(i=$D),void 0===r&&(r=ote),this.text=[],this.language=i||$D,this.gettext=e,this.dateFormatter=r,this.rrule=t,this.options=t.options,this.origOptions=t.origOptions,this.origOptions.bymonthday){var m=[].concat(this.options.bymonthday),D=[].concat(this.options.bynmonthday);m.sort(function(se,we){return se-we}),D.sort(function(se,we){return we-se}),this.bymonthday=m.concat(D),this.bymonthday.length||(this.bymonthday=null)}if(Ws(this.origOptions.byweekday)){var A=qu(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],N=String(A);this.byweekday={allWeeks:A.filter(function(se){return!se.n}),someWeeks:A.filter(function(se){return Boolean(se.n)}),isWeekdays:-1!==N.indexOf("MO")&&-1!==N.indexOf("TU")&&-1!==N.indexOf("WE")&&-1!==N.indexOf("TH")&&-1!==N.indexOf("FR")&&-1===N.indexOf("SA")&&-1===N.indexOf("SU"),isEveryDay:-1!==N.indexOf("MO")&&-1!==N.indexOf("TU")&&-1!==N.indexOf("WE")&&-1!==N.indexOf("TH")&&-1!==N.indexOf("FR")&&-1!==N.indexOf("SA")&&-1!==N.indexOf("SU")};var Q=function(se,we){return se.weekday-we.weekday};this.byweekday.allWeeks.sort(Q),this.byweekday.someWeeks.sort(Q),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return n.isFullyConvertible=function(t){if(!(t.options.freq in n.IMPLEMENTED)||t.origOptions.until&&t.origOptions.count)return!1;for(var i in t.origOptions){if(sN(["dtstart","wkst","freq"],i))return!0;if(!sN(n.IMPLEMENTED[t.options.freq],i))return!1}return!0},n.prototype.isFullyConvertible=function(){return n.isFullyConvertible(this.rrule)},n.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in n.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[Bo.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var e=this.options.until;this.add(this.dateFormatter(e.getUTCFullYear(),this.language.monthNames[e.getUTCMonth()],e.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},n.prototype.HOURLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("hours"):t("hour"))},n.prototype.MINUTELY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("minutes"):t("minute"))},n.prototype.DAILY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.byweekday&&this.byweekday.isWeekdays?this.plural(this.options.interval)?t("weekdays"):t("weekday"):this.plural(this.options.interval)?t("days"):t("day")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},n.prototype.WEEKLY=function(){var t=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?t("weeks"):t("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?t("weekdays"):t("weekday")):this.add(t("on")).add(t("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?t("days"):t("day")):(1===this.options.interval&&this.add(t("week")),this.origOptions.bymonth&&(this.add(t("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},n.prototype.MONTHLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(t("months")),this.plural(this.options.interval)&&this.add(t("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("months"):t("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(t("on")).add(t("weekdays")):this.byweekday&&this._byweekday()},n.prototype.YEARLY=function(){var t=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(t("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?t("years"):t("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(t("on the")).add(this.list(this.options.byyearday,this.nth,t("and"))).add(t("day")),this.options.byweekno&&this.add(t("in")).add(this.plural(this.options.byweekno.length)?t("weeks"):t("week")).add(this.list(this.options.byweekno,void 0,t("and")))},n.prototype._bymonthday=function(){var t=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,t("or"))).add(t("the")).add(this.list(this.bymonthday,this.nth,t("or"))):this.add(t("on the")).add(this.list(this.bymonthday,this.nth,t("and")))},n.prototype._byweekday=function(){var t=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(t("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(t("and")),this.add(t("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,t("and"))))},n.prototype._byhour=function(){var t=this.gettext;this.add(t("at")).add(this.list(this.origOptions.byhour,void 0,t("and")))},n.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},n.prototype.nth=function(t){t=parseInt(t.toString(),10);var e,i=this.gettext;if(-1===t)return i("last");var r=Math.abs(t);switch(r){case 1:case 21:case 31:e=r+i("st");break;case 2:case 22:e=r+i("nd");break;case 3:case 23:e=r+i("rd");break;default:e=r+i("th")}return t<0?e+" "+i("last"):e},n.prototype.monthtext=function(t){return this.language.monthNames[t-1]},n.prototype.weekdaytext=function(t){var e=Eh(t)?(t+1)%7:t.getJsWeekday();return(t.n?this.nth(t.n)+" ":"")+this.language.dayNames[e]},n.prototype.plural=function(t){return t%100!=1},n.prototype.add=function(t){return this.text.push(" "),this.text.push(t),this},n.prototype.list=function(t,e,i,r){var m=this;void 0===r&&(r=","),qu(t)||(t=[t]),e=e||function(N){return N.toString()};var A=function(N){return e&&e.call(m,N)};return i?function(N,Q,se){for(var we="",Re=0;Re<N.length;Re++)0!==Re&&(we+=Re===N.length-1?" "+se+" ":Q+" "),we+=N[Re];return we}(t.map(A),r,i):t.map(A).join(r+" ")},n}();const kp=ate;var ste=function(){function n(t){this.done=!0,this.rules=t}return n.prototype.start=function(t){return this.text=t,this.done=!1,this.nextSymbol()},n.prototype.isDone=function(){return this.done&&null===this.symbol},n.prototype.nextSymbol=function(){var t,e;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var r in t=null,this.rules){var m=this.rules[r].exec(this.text);m&&(null===t||m[0].length>t[0].length)&&(t=m,e=r)}if(null!=t&&(this.text=this.text.substr(t[0].length),""===this.text&&(this.done=!0)),null==t)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===e);return this.symbol=e,this.value=t,!0},n.prototype.accept=function(t){if(this.symbol===t){if(this.value){var e=this.value;return this.nextSymbol(),e}return this.nextSymbol(),!0}return!1},n.prototype.acceptNumber=function(){return this.accept("number")},n.prototype.expect=function(t){if(this.accept(t))return!0;throw new Error("expected "+t+" but found "+this.symbol)},n}();function lN(n,t){void 0===t&&(t=$D);var e={},i=new ste(t.tokens);return i.start(n)?(function r(){i.expect("every");var Re=i.acceptNumber();if(Re&&(e.interval=parseInt(Re[0],10)),i.isDone())throw new Error("Unexpected end");switch(i.symbol){case"day(s)":e.freq=Bo.DAILY,i.nextSymbol()&&(function D(){if(i.accept("at"))do{var Ue=i.acceptNumber();if(!Ue)throw new Error("Unexpected symbol "+i.symbol+", expected hour");for(e.byhour=[parseInt(Ue[0],10)];i.accept("comma");){if(!(Ue=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected hour");e.byhour.push(parseInt(Ue[0],10))}}while(i.accept("comma")||i.accept("at"))}(),we());break;case"weekday(s)":e.freq=Bo.WEEKLY,e.byweekday=[Bo.MO,Bo.TU,Bo.WE,Bo.TH,Bo.FR],i.nextSymbol(),we();break;case"week(s)":e.freq=Bo.WEEKLY,i.nextSymbol()&&(m(),we());break;case"hour(s)":e.freq=Bo.HOURLY,i.nextSymbol()&&(m(),we());break;case"minute(s)":e.freq=Bo.MINUTELY,i.nextSymbol()&&(m(),we());break;case"month(s)":e.freq=Bo.MONTHLY,i.nextSymbol()&&(m(),we());break;case"year(s)":e.freq=Bo.YEARLY,i.nextSymbol()&&(m(),we());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":e.freq=Bo.WEEKLY;var Ue=i.symbol.substr(0,2).toUpperCase();if(e.byweekday=[Bo[Ue]],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var st=N();if(!st)throw new Error("Unexpected symbol "+i.symbol+", expected weekday");e.byweekday.push(Bo[st]),i.nextSymbol()}(function se(){i.accept("on"),i.accept("the");var Re=Q();if(Re)for(e.bymonthday=[Re],i.nextSymbol();i.accept("comma");){if(!(Re=Q()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");e.bymonthday.push(Re),i.nextSymbol()}})(),we();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(e.freq=Bo.YEARLY,e.bymonth=[A()],!i.nextSymbol())return;for(;i.accept("comma");){if(i.isDone())throw new Error("Unexpected end");var Ot=A();if(!Ot)throw new Error("Unexpected symbol "+i.symbol+", expected month");e.bymonth.push(Ot),i.nextSymbol()}m(),we();break;default:throw new Error("Unknown symbol")}}(),e):null;function m(){var Re=i.accept("on"),Ue=i.accept("the");if(Re||Ue)do{var st=Q(),Ot=N(),Kt=A();if(st)Ot?(i.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(Bo[Ot].nth(st))):(e.bymonthday||(e.bymonthday=[]),e.bymonthday.push(st),i.accept("day(s)"));else if(Ot)i.nextSymbol(),e.byweekday||(e.byweekday=[]),e.byweekday.push(Bo[Ot]);else if("weekday(s)"===i.symbol)i.nextSymbol(),e.byweekday||(e.byweekday=[Bo.MO,Bo.TU,Bo.WE,Bo.TH,Bo.FR]);else if("week(s)"===i.symbol){i.nextSymbol();var sn=i.acceptNumber();if(!sn)throw new Error("Unexpected symbol "+i.symbol+", expected week number");for(e.byweekno=[parseInt(sn[0],10)];i.accept("comma");){if(!(sn=i.acceptNumber()))throw new Error("Unexpected symbol "+i.symbol+"; expected monthday");e.byweekno.push(parseInt(sn[0],10))}}else{if(!Kt)return;i.nextSymbol(),e.bymonth||(e.bymonth=[]),e.bymonth.push(Kt)}}while(i.accept("comma")||i.accept("the")||i.accept("on"))}function A(){switch(i.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function N(){switch(i.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return i.symbol.substr(0,2).toUpperCase();default:return!1}}function Q(){switch(i.symbol){case"last":return i.nextSymbol(),-1;case"first":return i.nextSymbol(),1;case"second":return i.nextSymbol(),i.accept("last")?-2:2;case"third":return i.nextSymbol(),i.accept("last")?-3:3;case"nth":var Re=parseInt(i.value[1],10);if(Re<-366||Re>366)throw new Error("Nth out of range: "+Re);return i.nextSymbol(),i.accept("last")?-Re:Re;default:return!1}}function we(){if("until"===i.symbol){var Re=Date.parse(i.text);if(!Re)throw new Error("Cannot parse until date:"+i.text);e.until=new Date(Re)}else i.accept("for")&&(e.count=parseInt(i.value[0],10),i.expect("number"))}}var Sa=(()=>(function(n){n[n.YEARLY=0]="YEARLY",n[n.MONTHLY=1]="MONTHLY",n[n.WEEKLY=2]="WEEKLY",n[n.DAILY=3]="DAILY",n[n.HOURLY=4]="HOURLY",n[n.MINUTELY=5]="MINUTELY",n[n.SECONDLY=6]="SECONDLY"}(Sa||(Sa={})),Sa))();function sk(n){return n<Sa.HOURLY}var yy=["count","until","interval","byweekday","bymonthday","bymonth"];kp.IMPLEMENTED=[],kp.IMPLEMENTED[Sa.HOURLY]=yy,kp.IMPLEMENTED[Sa.MINUTELY]=yy,kp.IMPLEMENTED[Sa.DAILY]=["byhour"].concat(yy),kp.IMPLEMENTED[Sa.WEEKLY]=yy,kp.IMPLEMENTED[Sa.MONTHLY]=yy,kp.IMPLEMENTED[Sa.YEARLY]=["byweekno","byyearday"].concat(yy);var dte=kp.isFullyConvertible,YD=function(){function n(t,e,i,r){this.hour=t,this.minute=e,this.second=i,this.millisecond=r||0}return n.prototype.getHours=function(){return this.hour},n.prototype.getMinutes=function(){return this.minute},n.prototype.getSeconds=function(){return this.second},n.prototype.getMilliseconds=function(){return this.millisecond},n.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},n}(),cte=function(n){function t(e,i,r,m,D,A,N){var Q=n.call(this,m,D,A,N)||this;return Q.year=e,Q.month=i,Q.day=r,Q}return(0,Lr.ZT)(t,n),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return _y(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var i=Math.floor(this.month/12),r=Pd(this.month,12);this.month=r,this.year+=i,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,i){i>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-i))+7*e:this.day+=-(this.getWeekday()-i)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,i,r){for(i&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var m=tk(this.hour,24),D=m.div;if(D&&(this.hour=m.mod,this.addDaily(D)),Oh(r)||ja(r,this.hour))break}},t.prototype.addMinutes=function(e,i,r,m){for(i&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var D=tk(this.minute,60),A=D.div;if(A&&(this.minute=D.mod,this.addHours(A,!1,r)),(Oh(r)||ja(r,this.hour))&&(Oh(m)||ja(m,this.minute)))break}},t.prototype.addSeconds=function(e,i,r,m,D){for(i&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var A=tk(this.second,60),N=A.div;if(N&&(this.second=A.mod,this.addMinutes(N,!1,r,m)),(Oh(r)||ja(r,this.hour))&&(Oh(m)||ja(m,this.minute))&&(Oh(D)||ja(D,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=nN(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>9999))return;e=nN(this.year,this.month-1)[1]}}},t.prototype.add=function(e,i){var m=e.interval,D=e.wkst,A=e.byhour,N=e.byminute,Q=e.bysecond;switch(e.freq){case Sa.YEARLY:return this.addYears(m);case Sa.MONTHLY:return this.addMonths(m);case Sa.WEEKLY:return this.addWeekly(m,D);case Sa.DAILY:return this.addDaily(m);case Sa.HOURLY:return this.addHours(m,i,A);case Sa.MINUTELY:return this.addMinutes(m,i,A,N);case Sa.SECONDLY:return this.addSeconds(m,i,A,N,Q)}},t}(YD);function uN(n){for(var t=[],i=0,r=Object.keys(n);i<r.length;i++){var m=r[i];ja(Wte,m)||t.push(m),QV(n[m])&&!ow(n[m])&&t.push(m)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return(0,Lr.pi)({},n)}function lk(n){var t=n.split("\n").map(gte).filter(function(e){return null!==e});return(0,Lr.pi)((0,Lr.pi)({},t[0]),t[1])}function XD(n){var t={},e=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(n);if(!e)return t;var i=e[1],r=e[2];return i&&(t.tzid=i),t.dtstart=ak(r),t}function gte(n){if(!(n=n.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(n.toUpperCase());if(!t)return dN(n);var e=t[1];switch(e.toUpperCase()){case"RRULE":case"EXRULE":return dN(n);case"DTSTART":return XD(n);default:throw new Error("Unsupported RFC prop ".concat(e," in ").concat(n))}}function dN(n){var e=XD(n.replace(/^RRULE:/i,""));return n.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach(function(r){var m=r.split("="),D=m[0],A=m[1];switch(D.toUpperCase()){case"FREQ":e.freq=Sa[A.toUpperCase()];break;case"WKST":e.wkst=fc[A.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var N=function fte(n){return-1!==n.indexOf(",")?n.split(",").map(cN):cN(n)}(A),Q=D.toLowerCase();e[Q]=N;break;case"BYWEEKDAY":case"BYDAY":e.byweekday=function mte(n){return n.split(",").map(function(e){if(2===e.length)return fc[e];var i=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!i||i.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var r=Number(i[1]);return new $l(fc[i[2]].weekday,r)})}(A);break;case"DTSTART":case"TZID":var se=XD(n);e.tzid=se.tzid,e.dtstart=se.dtstart;break;case"UNTIL":e.until=ak(A);break;case"BYEASTER":e.byeaster=Number(A);break;default:throw new Error("Unknown RRULE property '"+D+"'")}}),e}function cN(n){return/^[+-]?\d+$/.test(n)?Number(n):n}var qD=function(){function n(t,e){if(isNaN(t.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=t,this.tzid=e}return Object.defineProperty(n.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),n.prototype.toString=function(){var t=ok(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(t):";TZID=".concat(this.tzid,":").concat(t)},n.prototype.getTime=function(){return this.date.getTime()},n.prototype.rezonedDate=function(){return this.isUTC?this.date:function(n,t){var e=Intl.DateTimeFormat().resolvedOptions().timeZone,i=new Date(oN(n,e)),m=new Date(oN(n,t??"UTC")).getTime()-i.getTime();return new Date(n.getTime()-m)}(this.date,this.tzid)},n}();function uk(n){for(var t=[],e="",i=Object.keys(n),r=Object.keys(dk),m=0;m<i.length;m++)if("tzid"!==i[m]&&ja(r,i[m])){var D=i[m].toUpperCase(),A=n[i[m]],N="";if(Ws(A)&&(!qu(A)||A.length)){switch(D){case"FREQ":N=Bo.FREQUENCIES[n.freq];break;case"WKST":N=Eh(A)?new $l(A).toString():A.toString();break;case"BYWEEKDAY":D="BYDAY",N=$ee(A).map(function(Ue){return Ue instanceof $l?Ue:qu(Ue)?new $l(Ue[0],Ue[1]):new $l(Ue)}).toString();break;case"DTSTART":e=_te(A,n.tzid);break;case"UNTIL":N=ok(A,!n.tzid);break;default:if(qu(A)){for(var Q=[],se=0;se<A.length;se++)Q[se]=String(A[se]);N=Q.toString()}else N=String(A)}N&&t.push([D,N])}}var we=t.map(function(Ue){var Ot=Ue[1];return"".concat(Ue[0],"=").concat(Ot.toString())}).join(";"),Re="";return""!==we&&(Re="RRULE:".concat(we)),[e,Re].filter(function(Ue){return!!Ue}).join("\n")}function _te(n,t){return n?"DTSTART"+new qD(new Date(n),t).toString():""}function vte(n,t){return Array.isArray(n)?!(!Array.isArray(t)||n.length!==t.length)&&n.every(function(e,i){return e.getTime()===t[i].getTime()}):n instanceof Date?t instanceof Date&&n.getTime()===t.getTime():n===t}var yte=function(){function n(){this.all=!1,this.before=[],this.after=[],this.between=[]}return n.prototype._cacheAdd=function(t,e,i){e&&(e=e instanceof Date?rk(e):rN(e)),"all"===t?this.all=e:(i._value=e,this[t].push(i))},n.prototype._cacheGet=function(t,e){var i=!1,r=e?Object.keys(e):[],m=function(se){for(var we=0;we<r.length;we++){var Re=r[we];if(!vte(e[Re],se[Re]))return!0}return!1},D=this[t];if("all"===t)i=this.all;else if(qu(D))for(var A=0;A<D.length;A++){var N=D[A];if(!r.length||!m(N)){i=N._value;break}}if(!i&&this.all){var Q=new vy(t,e);for(A=0;A<this.all.length&&Q.accept(this.all[A]);A++);i=Q.getValue(),this._cacheAdd(t,i,e)}return qu(i)?rN(i):i instanceof Date?rk(i):i},n}(),Cte=(0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)([],Ta(1,31),!0),Ta(2,28),!0),Ta(3,31),!0),Ta(4,30),!0),Ta(5,31),!0),Ta(6,30),!0),Ta(7,31),!0),Ta(8,31),!0),Ta(9,30),!0),Ta(10,31),!0),Ta(11,30),!0),Ta(12,31),!0),Ta(1,7),!0),xte=(0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)([],Ta(1,31),!0),Ta(2,29),!0),Ta(3,31),!0),Ta(4,30),!0),Ta(5,31),!0),Ta(6,30),!0),Ta(7,31),!0),Ta(8,31),!0),Ta(9,30),!0),Ta(10,31),!0),Ta(11,30),!0),Ta(12,31),!0),Ta(1,7),!0),bte=Sh(1,29),wte=Sh(1,30),Lf=Sh(1,31),Dl=Sh(1,32),Ete=(0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)([],Dl,!0),wte,!0),Dl,!0),Lf,!0),Dl,!0),Lf,!0),Dl,!0),Dl,!0),Lf,!0),Dl,!0),Lf,!0),Dl,!0),Dl.slice(0,7),!0),Ste=(0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)([],Dl,!0),bte,!0),Dl,!0),Lf,!0),Dl,!0),Lf,!0),Dl,!0),Dl,!0),Lf,!0),Dl,!0),Lf,!0),Dl,!0),Dl.slice(0,7),!0),Ote=Sh(-28,0),Dte=Sh(-29,0),Bf=Sh(-30,0),Tl=Sh(-31,0),Tte=(0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)([],Tl,!0),Dte,!0),Tl,!0),Bf,!0),Tl,!0),Bf,!0),Tl,!0),Tl,!0),Bf,!0),Tl,!0),Bf,!0),Tl,!0),Tl.slice(0,7),!0),Ite=(0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)((0,Lr.ev)([],Tl,!0),Ote,!0),Tl,!0),Bf,!0),Tl,!0),Bf,!0),Tl,!0),Tl,!0),Bf,!0),Tl,!0),Bf,!0),Tl,!0),Tl.slice(0,7),!0),Mte=[0,31,60,91,121,152,182,213,244,274,305,335,366],Ate=[0,31,59,90,120,151,181,212,243,273,304,334,365],hN=function(){for(var n=[],t=0;t<55;t++)n=n.concat(Sh(7));return n}();var Bte=function(){function n(t){this.options=t}return n.prototype.rebuild=function(t,e){var i=this.options;if(t!==this.lastyear&&(this.yearinfo=function Pte(n,t){var e=Y0(n,1,1),i=rw(n)?366:365,r=rw(n+1)?366:365,m=ik(e),D=_y(e),A=(0,Lr.pi)((0,Lr.pi)({yearlen:i,nextyearlen:r,yearordinal:m,yearweekday:D},function kte(n){var t=rw(n)?366:365,e=Y0(n,1,1),i=_y(e);return 365===t?{mmask:Cte,mdaymask:Ste,nmdaymask:Ite,wdaymask:hN.slice(i),mrange:Ate}:{mmask:xte,mdaymask:Ete,nmdaymask:Tte,wdaymask:hN.slice(i),mrange:Mte}}(n)),{wnomask:null});if(Oh(t.byweekno))return A;A.wnomask=Ta(0,i+7);var N,Q,se=N=Pd(7-D+t.wkst,7);se>=4?(se=0,Q=A.yearlen+Pd(D-t.wkst,7)):Q=i-se;for(var we=Math.floor(Q/7),Re=Pd(Q,7),Ue=Math.floor(we+Re/4),st=0;st<t.byweekno.length;st++){var Ot=t.byweekno[st];if(Ot<0&&(Ot+=Ue+1),Ot>0&&Ot<=Ue){var Kt=void 0;Ot>1?(Kt=se+7*(Ot-1),se!==N&&(Kt-=7-N)):Kt=se;for(var sn=0;sn<7&&(A.wnomask[Kt]=1,Kt++,A.wdaymask[Kt]!==t.wkst);sn++);}}if(ja(t.byweekno,1)&&(Kt=se+7*Ue,se!==N&&(Kt-=7-N),Kt<i))for(st=0;st<7&&(A.wnomask[Kt]=1,A.wdaymask[Kt+=1]!==t.wkst);st++);if(se){var wn=void 0;if(ja(t.byweekno,-1))wn=-1;else{var rn=_y(Y0(n-1,1,1)),Ft=Pd(7-rn.valueOf()+t.wkst,7),qt=rw(n-1)?366:365,un=void 0;Ft>=4?(Ft=0,un=qt+Pd(rn-t.wkst,7)):un=i-se,wn=Math.floor(52+Pd(un,7)/4)}if(ja(t.byweekno,wn))for(Kt=0;Kt<se;Kt++)A.wnomask[Kt]=1}return A}(t,i)),ul(i.bynweekday)&&(e!==this.lastmonth||t!==this.lastyear)){var r=this.yearinfo;this.monthinfo=function Rte(n,t,e,i,r,m){var D={lastyear:n,lastmonth:t,nwdaymask:[]},A=[];if(m.freq===Bo.YEARLY)if(Oh(m.bymonth))A=[[0,e]];else for(var N=0;N<m.bymonth.length;N++)A.push(i.slice((t=m.bymonth[N])-1,t+1));else m.freq===Bo.MONTHLY&&(A=[i.slice(t-1,t+1)]);if(Oh(A))return D;for(D.nwdaymask=Ta(0,e),N=0;N<A.length;N++)for(var Q=A[N],se=Q[0],we=Q[1]-1,Re=0;Re<m.bynweekday.length;Re++){var Ue=void 0,st=m.bynweekday[Re],Ot=st[0],Kt=st[1];Kt<0?(Ue=we+7*(Kt+1),Ue-=Pd(r[Ue]-Ot,7)):(Ue=se+7*(Kt-1),Ue+=Pd(7-r[Ue]+Ot,7)),se<=Ue&&Ue<=we&&(D.nwdaymask[Ue]=1)}return D}(t,e,r.yearlen,r.mrange,r.wdaymask,i)}Ws(i.byeaster)&&(this.eastermask=function Lte(n,t){void 0===t&&(t=0);var e=n%19,i=Math.floor(n/100),r=n%100,m=Math.floor(i/4),D=i%4,A=Math.floor((i+8)/25),N=Math.floor((i-A+1)/3),Q=Math.floor(19*e+i-m-N+15)%30,se=Math.floor(r/4),Re=Math.floor(32+2*D+2*se-Q-r%4)%7,Ue=Math.floor((e+11*Q+22*Re)/451),st=Math.floor((Q+Re-7*Ue+114)/31),Kt=Date.UTC(n,st-1,(Q+Re-7*Ue+114)%31+1+t),sn=Date.UTC(n,0,1);return[Math.ceil((Kt-sn)/864e5)]}(t,i.byeaster))},Object.defineProperty(n.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),n.prototype.ydayset=function(){return[Sh(this.yearlen),0,this.yearlen]},n.prototype.mdayset=function(t,e){for(var i=this.mrange[e-1],r=this.mrange[e],m=Ta(null,this.yearlen),D=i;D<r;D++)m[D]=D;return[m,i,r]},n.prototype.wdayset=function(t,e,i){for(var r=Ta(null,this.yearlen+7),m=ik(Y0(t,e,i))-this.yearordinal,D=m,A=0;A<7&&(r[m]=m,++m,this.wdaymask[m]!==this.options.wkst);A++);return[r,D,m]},n.prototype.ddayset=function(t,e,i){var r=Ta(null,this.yearlen),m=ik(Y0(t,e,i))-this.yearordinal;return r[m]=m,[r,m,m+1]},n.prototype.htimeset=function(t,e,i,r){var m=this,D=[];return this.options.byminute.forEach(function(A){D=D.concat(m.mtimeset(t,A,i,r))}),aw(D),D},n.prototype.mtimeset=function(t,e,i,r){var m=this.options.bysecond.map(function(D){return new YD(t,e,D,r)});return aw(m),m},n.prototype.stimeset=function(t,e,i,r){return[new YD(t,e,i,r)]},n.prototype.getdayset=function(t){switch(t){case Sa.YEARLY:return this.ydayset.bind(this);case Sa.MONTHLY:return this.mdayset.bind(this);case Sa.WEEKLY:return this.wdayset.bind(this);default:return this.ddayset.bind(this)}},n.prototype.gettimeset=function(t){switch(t){case Sa.HOURLY:return this.htimeset.bind(this);case Sa.MINUTELY:return this.mtimeset.bind(this);case Sa.SECONDLY:return this.stimeset.bind(this)}},n}();const Fte=Bte;function Vte(n,t,e,i,r,m){for(var D=[],A=0;A<n.length;A++){var N=void 0,Q=void 0,se=n[A];se<0?(N=Math.floor(se/t.length),Q=Pd(se,t.length)):(N=Math.floor((se-1)/t.length),Q=Pd(se-1,t.length));for(var we=[],Re=e;Re<i;Re++){var Ue=m[Re];Ws(Ue)&&we.push(Ue)}var st;st=N<0?we.slice(N)[0]:we[N];var Ot=t[Q],Kt=tN(r.yearordinal+st),sn=iN(Kt,Ot);ja(D,sn)||D.push(sn)}return aw(D),D}function pN(n,t){var e=t.dtstart,i=t.freq,m=t.until,D=t.bysetpos,A=t.count;if(0===A||0===t.interval)return Rp(n);var N=cte.fromDate(e),Q=new Fte(t);Q.rebuild(N.year,N.month);for(var se=function zte(n,t,e){var i=e.freq,r=e.byhour,m=e.byminute,D=e.bysecond;return sk(i)?function pte(n){var t=n.dtstart.getTime()%1e3;if(!sk(n.freq))return[];var e=[];return n.byhour.forEach(function(i){n.byminute.forEach(function(r){n.bysecond.forEach(function(m){e.push(new YD(i,r,m,t))})})}),e}(e):i>=Bo.HOURLY&&ul(r)&&!ja(r,t.hour)||i>=Bo.MINUTELY&&ul(m)&&!ja(m,t.minute)||i>=Bo.SECONDLY&&ul(D)&&!ja(D,t.second)?[]:n.gettimeset(i)(t.hour,t.minute,t.second,t.millisecond)}(Q,N,t);;){var we=Q.getdayset(i)(N.year,N.month,N.day),Re=we[0],Ue=we[1],st=we[2],Ot=Hte(Re,Ue,st,Q,t);if(ul(D))for(var Kt=Vte(D,se,Ue,st,Q,Re),sn=0;sn<Kt.length;sn++){var wn=Kt[sn];if(m&&wn>m)return Rp(n);if(wn>=e){var rn=gN(wn,t);if(!n.accept(rn)||A&&!--A)return Rp(n)}}else for(sn=Ue;sn<st;sn++){var Ft=Re[sn];if(Ws(Ft))for(var qt=tN(Q.yearordinal+Ft),un=0;un<se.length;un++){if(wn=iN(qt,se[un]),m&&wn>m)return Rp(n);if(wn>=e&&(rn=gN(wn,t),!n.accept(rn)||A&&!--A))return Rp(n)}}if(0===t.interval||(N.add(t,Ot),N.year>9999))return Rp(n);sk(i)||(se=Q.gettimeset(i)(N.hour,N.minute,N.second,0)),Q.rebuild(N.year,N.month)}}function Nte(n,t,e){var i=e.bymonth,r=e.byweekno,m=e.byweekday,D=e.byeaster,A=e.bymonthday,N=e.bynmonthday,Q=e.byyearday;return ul(i)&&!ja(i,n.mmask[t])||ul(r)&&!n.wnomask[t]||ul(m)&&!ja(m,n.wdaymask[t])||ul(n.nwdaymask)&&!n.nwdaymask[t]||null!==D&&!ja(n.eastermask,t)||(ul(A)||ul(N))&&!ja(A,n.mdaymask[t])&&!ja(N,n.nmdaymask[t])||ul(Q)&&(t<n.yearlen&&!ja(Q,t+1)&&!ja(Q,-n.yearlen+t)||t>=n.yearlen&&!ja(Q,t+1-n.yearlen)&&!ja(Q,-n.nextyearlen+t-n.yearlen))}function gN(n,t){return new qD(n,t.tzid).rezonedDate()}function Rp(n){return n.getValue()}function Hte(n,t,e,i,r){for(var m=!1,D=t;D<e;D++){var A=n[D];(m=Nte(i,A,r))&&(n[A]=null)}return m}var fc={MO:new $l(0),TU:new $l(1),WE:new $l(2),TH:new $l(3),FR:new $l(4),SA:new $l(5),SU:new $l(6)},dk={freq:Sa.YEARLY,dtstart:null,interval:1,wkst:fc.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},Wte=Object.keys(dk),Bo=function(){function n(t,e){void 0===t&&(t={}),void 0===e&&(e=!1),this._cache=e?null:new yte,this.origOptions=uN(t);var i=function hte(n){var t=(0,Lr.pi)((0,Lr.pi)({},dk),uN(n));if(Ws(t.byeaster)&&(t.freq=Bo.YEARLY),!Ws(t.freq)||!Bo.FREQUENCIES[t.freq])throw new Error("Invalid frequency: ".concat(t.freq," ").concat(n.freq));if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),Ws(t.wkst)?Eh(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=Bo.MO.weekday,Ws(t.bysetpos)){Eh(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var e=0;e<t.bysetpos.length;e++)if(0===(i=t.bysetpos[e])||!(i>=-366&&i<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}if(!(Boolean(t.byweekno)||ul(t.byweekno)||ul(t.byyearday)||Boolean(t.bymonthday)||ul(t.bymonthday)||Ws(t.byweekday)||Ws(t.byeaster)))switch(t.freq){case Bo.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case Bo.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case Bo.WEEKLY:t.byweekday=[_y(t.dtstart)]}if(Ws(t.bymonth)&&!qu(t.bymonth)&&(t.bymonth=[t.bymonth]),Ws(t.byyearday)&&!qu(t.byyearday)&&Eh(t.byyearday)&&(t.byyearday=[t.byyearday]),Ws(t.bymonthday))if(qu(t.bymonthday)){var r=[],m=[];for(e=0;e<t.bymonthday.length;e++){var i;(i=t.bymonthday[e])>0?r.push(i):i<0&&m.push(i)}t.bymonthday=r,t.bynmonthday=m}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(Ws(t.byweekno)&&!qu(t.byweekno)&&(t.byweekno=[t.byweekno]),Ws(t.byweekday))if(Eh(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(XV(t.byweekday))t.byweekday=[$l.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof $l)!t.byweekday.n||t.freq>Bo.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var D=[],A=[];for(e=0;e<t.byweekday.length;e++){var N=t.byweekday[e];Eh(N)?D.push(N):XV(N)?D.push($l.fromStr(N).weekday):!N.n||t.freq>Bo.MONTHLY?D.push(N.weekday):A.push([N.weekday,N.n])}t.byweekday=ul(D)?D:null,t.bynweekday=ul(A)?A:null}else t.bynweekday=null;return Ws(t.byhour)?Eh(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<Bo.HOURLY?[t.dtstart.getUTCHours()]:null,Ws(t.byminute)?Eh(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<Bo.MINUTELY?[t.dtstart.getUTCMinutes()]:null,Ws(t.bysecond)?Eh(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<Bo.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}(t).parsedOptions;this.options=i}return n.parseText=function(t,e){return lN(t,e)},n.fromText=function(t,e){return function(n,t){return void 0===t&&(t=$D),new Bo(lN(n,t)||void 0)}(t,e)},n.fromString=function(t){return new n(n.parseString(t)||void 0)},n.prototype._iter=function(t){return pN(t,this.options)},n.prototype._cacheGet=function(t,e){return!!this._cache&&this._cache._cacheGet(t,e)},n.prototype._cacheAdd=function(t,e,i){if(this._cache)return this._cache._cacheAdd(t,e,i)},n.prototype.all=function(t){if(t)return this._iter(new aN("all",{},t));var e=this._cacheGet("all");return!1===e&&(e=this._iter(new vy("all",{})),this._cacheAdd("all",e)),e},n.prototype.between=function(t,e,i,r){if(void 0===i&&(i=!1),!ow(t)||!ow(e))throw new Error("Invalid date passed in to RRule.between");var m={before:e,after:t,inc:i};if(r)return this._iter(new aN("between",m,r));var D=this._cacheGet("between",m);return!1===D&&(D=this._iter(new vy("between",m)),this._cacheAdd("between",D,m)),D},n.prototype.before=function(t,e){if(void 0===e&&(e=!1),!ow(t))throw new Error("Invalid date passed in to RRule.before");var i={dt:t,inc:e},r=this._cacheGet("before",i);return!1===r&&(r=this._iter(new vy("before",i)),this._cacheAdd("before",r,i)),r},n.prototype.after=function(t,e){if(void 0===e&&(e=!1),!ow(t))throw new Error("Invalid date passed in to RRule.after");var i={dt:t,inc:e},r=this._cacheGet("after",i);return!1===r&&(r=this._iter(new vy("after",i)),this._cacheAdd("after",r,i)),r},n.prototype.count=function(){return this.all().length},n.prototype.toString=function(){return uk(this.origOptions)},n.prototype.toText=function(t,e,i){return function(n,t,e,i){return new kp(n,t,e,i).toString()}(this,t,e,i)},n.prototype.isFullyConvertibleToText=function(){return dte(this)},n.prototype.clone=function(){return new n(this.origOptions)},n.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],n.YEARLY=Sa.YEARLY,n.MONTHLY=Sa.MONTHLY,n.WEEKLY=Sa.WEEKLY,n.DAILY=Sa.DAILY,n.HOURLY=Sa.HOURLY,n.MINUTELY=Sa.MINUTELY,n.SECONDLY=Sa.SECONDLY,n.MO=fc.MO,n.TU=fc.TU,n.WE=fc.WE,n.TH=fc.TH,n.FR=fc.FR,n.SA=fc.SA,n.SU=fc.SU,n.parseString=lk,n.optionsToString=uk,n}(),fN={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function mN(n,t){return void 0===t&&(t={}),function Kte(n,t){var e=function Zte(n,t){var e=[],i=[],r=[],m=[],D=XD(n),A=D.dtstart,N=D.tzid,Q=function Yte(n,t){if(void 0===t&&(t=!1),!(n=n&&n.trim()))throw new Error("Invalid empty string");if(!t)return n.split(/\s/);for(var e=n.split("\n"),i=0;i<e.length;){var r=e[i]=e[i].replace(/\s+$/g,"");r?i>0&&" "===r[0]?(e[i-1]+=r.slice(1),e.splice(i,1)):i+=1:e.splice(i,1)}return e}(n,t.unfold);return Q.forEach(function(se){var we;if(se){var Re=function $te(n){var t=function jte(n){if(-1===n.indexOf(":"))return{name:"RRULE",value:n};var t=function(n,t,e){var i=n.split(":");return i.slice(0,1).concat([i.slice(1).join(":")])}(n);return{name:t[0],value:t[1]}}(n),i=t.value,r=t.name.split(";");if(!r)throw new Error("empty property name");return{name:r[0].toUpperCase(),parms:r.slice(1),value:i}}(se),Ue=Re.name,st=Re.parms,Ot=Re.value;switch(Ue.toUpperCase()){case"RRULE":if(st.length)throw new Error("unsupported RRULE parm: ".concat(st.join(",")));e.push(lk(se));break;case"RDATE":var sn=(null!==(we=/RDATE(?:;TZID=([^:=]+))?/i.exec(se))&&void 0!==we?we:[])[1];sn&&!N&&(N=sn),i=i.concat(_N(Ot,st));break;case"EXRULE":if(st.length)throw new Error("unsupported EXRULE parm: ".concat(st.join(",")));r.push(lk(Ot));break;case"EXDATE":m=m.concat(_N(Ot,st));break;case"DTSTART":break;default:throw new Error("unsupported property: "+Ue)}}}),{dtstart:A,tzid:N,rrulevals:e,rdatevals:i,exrulevals:r,exdatevals:m}}(n,t),i=e.rrulevals,r=e.rdatevals,m=e.exrulevals,D=e.exdatevals,A=e.dtstart,N=e.tzid,Q=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||i.length>1||r.length||m.length||D.length){var se=new yN(Q);return se.dtstart(A),se.tzid(N||void 0),i.forEach(function(Re){se.rrule(new Bo(ck(Re,A,N),Q))}),r.forEach(function(Re){se.rdate(Re)}),m.forEach(function(Re){se.exrule(new Bo(ck(Re,A,N),Q))}),D.forEach(function(Re){se.exdate(Re)}),t.compatible&&t.dtstart&&se.rdate(A),se}var we=i[0]||{};return new Bo(ck(we,we.dtstart||t.dtstart||A,we.tzid||t.tzid||N),Q)}(n,function Gte(n){var t=[],e=Object.keys(n),i=Object.keys(fN);if(e.forEach(function(r){ja(i,r)||t.push(r)}),t.length)throw new Error("Invalid options: "+t.join(", "));return(0,Lr.pi)((0,Lr.pi)({},fN),n)}(t))}function ck(n,t,e){return(0,Lr.pi)((0,Lr.pi)({},n),{dtstart:t,tzid:e})}function _N(n,t){return function Xte(n){n.forEach(function(t){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(t))throw new Error("unsupported RDATE/EXDATE parm: "+t)})}(t),n.split(",").map(function(e){return ak(e)})}function vN(n){var t=this;return function(e){if(void 0!==e&&(t["_".concat(n)]=e),void 0!==t["_".concat(n)])return t["_".concat(n)];for(var i=0;i<t._rrule.length;i++){var r=t._rrule[i].origOptions[n];if(r)return r}}}var yN=function(n){function t(e){void 0===e&&(e=!1);var i=n.call(this,{},e)||this;return i.dtstart=vN.apply(i,["dtstart"]),i.tzid=vN.apply(i,["tzid"]),i._rrule=[],i._rdate=[],i._exrule=[],i._exdate=[],i}return(0,Lr.ZT)(t,n),t.prototype._iter=function(e){return function Ute(n,t,e,i,r,m){var D={},A=n.accept;function N(Re,Ue){e.forEach(function(st){st.between(Re,Ue,!0).forEach(function(Ot){D[Number(Ot)]=!0})})}r.forEach(function(Re){var Ue=new qD(Re,m).rezonedDate();D[Number(Ue)]=!0}),n.accept=function(Re){var Ue=Number(Re);return isNaN(Ue)?A.call(this,Re):!(!D[Ue]&&(N(new Date(Ue-1),new Date(Ue+1)),!D[Ue]))||(D[Ue]=!0,A.call(this,Re))},"between"===n.method&&(N(n.args.after,n.args.before),n.accept=function(Re){var Ue=Number(Re);return!!D[Ue]||(D[Ue]=!0,A.call(this,Re))});for(var Q=0;Q<i.length;Q++){var se=new qD(i[Q],m).rezonedDate();if(!n.accept(new Date(se.getTime())))break}t.forEach(function(Re){pN(n,Re.options)});var we=n._result;switch(aw(we),n.method){case"all":case"between":return we;case"before":return we.length&&we[we.length-1]||null;default:return we.length&&we[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){CN(e,this._rrule)},t.prototype.exrule=function(e){CN(e,this._exrule)},t.prototype.rdate=function(e){xN(e,this._rdate)},t.prototype.exdate=function(e){xN(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map(function(e){return mN(e.toString())})},t.prototype.exrules=function(){return this._exrule.map(function(e){return mN(e.toString())})},t.prototype.rdates=function(){return this._rdate.map(function(e){return new Date(e.getTime())})},t.prototype.exdates=function(){return this._exdate.map(function(e){return new Date(e.getTime())})},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(uk({dtstart:this._dtstart}))),this._rrule.forEach(function(i){e=e.concat(i.toString().split("\n"))}),this._exrule.forEach(function(i){e=e.concat(i.toString().split("\n").map(function(r){return r.replace(/^RRULE:/,"EXRULE:")}).filter(function(r){return!/^DTSTART/.test(r)}))}),this._rdate.length&&e.push(bN("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(bN("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach(function(i){return e.rrule(i.clone())}),this._exrule.forEach(function(i){return e.exrule(i.clone())}),this._rdate.forEach(function(i){return e.rdate(new Date(i.getTime()))}),this._exdate.forEach(function(i){return e.exdate(new Date(i.getTime()))}),e},t}(Bo);function CN(n,t){if(!(n instanceof Bo))throw new TypeError(String(n)+" is not RRule instance");ja(t.map(String),String(n))||t.push(n)}function xN(n,t){if(!(n instanceof Date))throw new TypeError(String(n)+" is not Date instance");ja(t.map(Number),Number(n))||(t.push(n),aw(t))}function bN(n,t,e){var i=!e||"UTC"===e.toUpperCase(),r=i?"".concat(n,":"):"".concat(n,";TZID=").concat(e,":"),m=t.map(function(D){return ok(D.valueOf(),i)}).join(",");return"".concat(r).concat(m)}var wN=n=>{var A,e=n.offsetIndices,i=n.untils,r=n.offsets.split("|").map(N=>parseInt(N)),m=e.split("").map(N=>parseInt(N)),D=(n=>n.split("|").map(t=>"Infinity"===t?null:1e3*parseInt(t,36)))(i).map((A=0,N=>A+=N));return{offsetList:r,offsetIndexList:m,dateList:D}},hk=new class Qte{constructor(){this.map=new Map}tryGet(t){if(!this.map.get(t)){var e=EN.getTimezoneById(t);if(!e)return!1;var i=wN(e);this.map.set(t,i)}return this.map.get(t)}},EN={_tzCache:hk,_timeZones:[{id:"Africa/Abidjan",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Accra",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity",offsets:"0.8667|0|-20",offsetIndices:"012121212121212121212121212121212121212121212121"},{id:"Africa/Addis_Ababa",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Algiers",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121232321212122321212"},{id:"Africa/Asmara",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Asmera",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Bamako",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bangui",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Banjul",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Bissau",untils:"-u9rek0|wvoyo0|Infinity",offsets:"62.3333|60|0",offsetIndices:"012"},{id:"Africa/Blantyre",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Brazzaville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Bujumbura",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Cairo",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Africa/Casablanca",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"30.3333|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Africa/Ceuta",untils:"-qyiys0|7x3w0|2vt440|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|k69dc0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Africa/Conakry",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dakar",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Dar_es_Salaam",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Djibouti",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Douala",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/El_Aaiun",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|1stc0|gkao0|1stc0|g7c00|25s00|g7c00|1stc0|g7c00|25s00|g7c00|25s00|g7c00|1stc0|g7c00|25s00|Infinity",offsets:"52.8|60|0|-60",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Africa/Freetown",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Gaborone",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Harare",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Johannesburg",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Juba",untils:"-kcrsis|kixuys|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity",offsets:"-126.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212"},{id:"Africa/Kampala",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Khartoum",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|9ac180|Infinity",offsets:"-130.1333|-120|-180",offsetIndices:"012121212121212121212121212121212121"},{id:"Africa/Kigali",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Kinshasa",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lagos",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Libreville",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lome",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Luanda",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Lubumbashi",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Lusaka",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Malabo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Maputo",untils:"-yvtfd8|Infinity",offsets:"-130.3333|-120",offsetIndices:"01"},{id:"Africa/Maseru",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mbabane",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity",offsets:"-90|-120|-180",offsetIndices:"012121"},{id:"Africa/Mogadishu",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Monrovia",untils:"-qj6zc4|rl202a|Infinity",offsets:"43.1333|44.5|0",offsetIndices:"012"},{id:"Africa/Nairobi",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Africa/Ndjamena",untils:"-u9rk4c|zdk5cc|7iak0|Infinity",offsets:"-60.2|-60|-120",offsetIndices:"0121"},{id:"Africa/Niamey",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Nouakchott",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Ouagadougou",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Porto-Novo",untils:"-q9qbao|Infinity",offsets:"-13.6|-60",offsetIndices:"01"},{id:"Africa/Sao_Tome",untils:"-u9rhc0|1jbm840|irxc0|Infinity",offsets:"36.75|0|-60",offsetIndices:"0121"},{id:"Africa/Timbuktu",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Africa/Tripoli",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"Africa/Tunis",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity",offsets:"-9.35|-60|-120",offsetIndices:"0121212121212121212121212121212121"},{id:"Africa/Windhoek",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|235k00|8lho0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|Infinity",offsets:"-90|-120|-180|-60",offsetIndices:"01211313131313131313131313131313131313131313131313131"},{id:"America/Adak",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anchorage",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Anguilla",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Antigua",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Araguaina",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity",offsets:"192.8|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121"},{id:"America/Argentina/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Argentina/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/ComodRivadavia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Argentina/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Argentina/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Argentina/La_Rioja",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Argentina/Rio_Gallegos",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Argentina/Salta",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231323232"},{id:"America/Argentina/San_Juan",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|5v2840|2txg0|1sgak0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323231232321232"},{id:"America/Argentina/San_Luis",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|6s8ik0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121212321212"},{id:"America/Argentina/Tucuman",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"0121212121212121212121212121212121212121212323232313232123232"},{id:"America/Argentina/Ushuaia",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|5v0dg0|12ys0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232321232"},{id:"America/Aruba",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Asuncion",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity",offsets:"230.6667|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Atikokan",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Atka",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Bahia_Banderas",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"421|420|360|480|300",offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242"},{id:"America/Bahia",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity",offsets:"154.0667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121"},{id:"America/Barbados",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity",offsets:"238.4833|240|180",offsetIndices:"00121212121"},{id:"America/Belem",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"193.9333|180|120",offsetIndices:"012121212121212121212121212121"},{id:"America/Belize",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity",offsets:"352.8|360|330|300",offsetIndices:"01212121212121212121212121212121212121212121212121213131"},{id:"America/Blanc-Sablon",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity",offsets:"240|180",offsetIndices:"010110"},{id:"America/Boa_Vista",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity",offsets:"242.6667|240|180",offsetIndices:"0121212121212121212121212121212121"},{id:"America/Bogota",untils:"-srdoy8|14f1hi8|ha580|Infinity",offsets:"296.2667|300|240",offsetIndices:"0121"},{id:"America/Boise",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|360",offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Buenos_Aires",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323232323232"},{id:"America/Cambridge_Bay",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Campo_Grande",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"218.4667|240|180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Cancun",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity",offsets:"347.0667|360|300|240",offsetIndices:"0123232321212121212121212121212121212121212"},{id:"America/Caracas",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity",offsets:"267.6667|270|240",offsetIndices:"01212"},{id:"America/Catamarca",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|5v42s0|z9g0|1u93w0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132321232"},{id:"America/Cayenne",untils:"-uj7yb4|tcw6r4|Infinity",offsets:"209.3333|240|180",offsetIndices:"012"},{id:"America/Cayman",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Chicago",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Chihuahua",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"424.3333|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Coral_Harbour",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity",offsets:"360|300",offsetIndices:"0101111"},{id:"America/Cordoba",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Costa_Rica",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity",offsets:"336.2167|360|300",offsetIndices:"0121212121"},{id:"America/Creston",untils:"-rshz80|vbus0|Infinity",offsets:"420|480",offsetIndices:"010"},{id:"America/Cuiaba",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"224.3333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Curacao",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Danmarkshavn",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity",offsets:"74.6667|180|120|0",offsetIndices:"01212121212121212121212121212121213"},{id:"America/Dawson_Creek",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101011"},{id:"America/Dawson",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Denver",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Detroit",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Dominica",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Edmonton",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Eirunepe",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity",offsets:"279.4667|300|240",offsetIndices:"0121212121212121212121212121212121"},{id:"America/El_Salvador",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity",offsets:"356.8|360|300",offsetIndices:"012121"},{id:"America/Ensenada",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Fort_Nelson",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"480|420",offsetIndices:"01011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"America/Fort_Wayne",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Fortaleza",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"154|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Glace_Bay",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"239.8|240|180",offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Godthab",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Goose_Bay",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|240|180|120",offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454"},{id:"America/Grand_Turk",untils:"-u85og2|z3brw2|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|18ais0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"307.1667|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121222121212121212121212121212121212121212121"},{id:"America/Grenada",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guadeloupe",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Guatemala",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity",offsets:"362.0667|360|300",offsetIndices:"0121212121"},{id:"America/Guayaquil",untils:"-kcr84o|wb620o|3jp80|Infinity",offsets:"314|300|240",offsetIndices:"0121"},{id:"America/Guyana",untils:"-smcak8|vj4sz8|81rf90|Infinity",offsets:"232.6667|225|180|240",offsetIndices:"0123"},{id:"America/Halifax",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Havana",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Hermosillo",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity",offsets:"443.8667|420|360|480",offsetIndices:"0121212131212121"},{id:"America/Indiana/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Knox",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Marengo",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Petersburg",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Tell_City",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|1tw580|9d440|9cyk0|9d440|9cvs0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101021211010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Indiana/Vevay",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Vincennes",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indiana/Winamac",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121"},{id:"America/Indianapolis",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Inuvik",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|480|360|420",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Iqaluit",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|300|180|360",offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"America/Jujuy",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|7qcg40|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"012121212121212121212121212121212121212121232323121323232"},{id:"America/Juneau",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/Kentucky/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Kentucky/Monticello",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Knox_IN",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Kralendijk",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/La_Paz",untils:"-jxzspo|84ik0|Infinity",offsets:"272.6|212.6|240",offsetIndices:"012"},{id:"America/Lima",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity",offsets:"308.6|300|240",offsetIndices:"0121212121212121"},{id:"America/Los_Angeles",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Louisville",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|ast9o|1sw2c|21gis0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Lower_Princes",untils:"-u7lckd|rlo7qd|Infinity",offsets:"275.7833|270|240",offsetIndices:"012"},{id:"America/Maceio",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity",offsets:"142.8667|180|120",offsetIndices:"012121212121212121212121212121212121212121"},{id:"America/Managua",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity",offsets:"345.2|360|300",offsetIndices:"0121212121212121"},{id:"America/Manaus",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"America/Marigot",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Martinique",untils:"-umcvcs|zz5x4s|8zzw0|Infinity",offsets:"244.3333|240|180",offsetIndices:"0121"},{id:"America/Matamoros",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"400|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mazatlan",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Mendoza",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|5unes0|6hes0|1p7mk0|3yik0|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232312121321232"},{id:"America/Menominee",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Merida",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"358.4667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Metlakatla",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|gpc840|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|3ylc0|2itg0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010102020200202020202020202020202020202020202020202"},{id:"America/Mexico_City",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Miquelon",untils:"-ulmyxk|zzqbdk|3m59g0|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"224.6667|240|180|120",offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Moncton",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240|180",offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Monterrey",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"401.2667|360|300",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Montevideo",untils:"-w4mll9|67elc0|1s74p9|9et80|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|9q1e0|9czy0|asxe0|7x5a0|6do20|ppvy0|4mmm0|8g9qq0|901a0|38pe0|2inw0|2nf9g0|8zzw0|1e3s40|9o3y0|q8he0|2kik0|yxhg0|4bh80|s36s0|2vl60|905g0|5rg20|51ek0|weqs0|3yik0|e1ms0|4ofw0|erk40|3yik0|2vs40|gk7w0|41iys0|3wnw0|erk40|4bh80|c8tg0|64ak0|c8tg0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"224.85|240|180|210|150|120|90",offsetIndices:"001232323232323232323232324242525242525264252525252525252525252525252525252525252525252"},{id:"America/Montreal",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Montserrat",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Nassau",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"309.5|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/New_York",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nipigon",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Nome",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540|480",offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Noronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/North_Dakota/Beulah",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/Center",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/North_Dakota/New_Salem",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Nuuk",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"206.9333|180|120",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Ojinaga",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"417.6667|420|360|300",offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Panama",untils:"-w757vc|Infinity",offsets:"319.6|300",offsetIndices:"01"},{id:"America/Pangnirtung",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|240|180|120|300|360",offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414"},{id:"America/Paramaribo",untils:"-usj4g8|cixc0c|5lydbk|kcrm6c|Infinity",offsets:"220.6667|220.8667|220.6|210|180",offsetIndices:"01234"},{id:"America/Phoenix",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"America/Port_of_Spain",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Port-au-Prince",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|pkg40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"289|300|240",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Porto_Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Porto_Velho",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity",offsets:"255.6|240|180",offsetIndices:"012121212121212121212121212121"},{id:"America/Puerto_Rico",untils:"-efsnk0|1ppu40|2dnc0|Infinity",offsets:"240|180",offsetIndices:"0110"},{id:"America/Punta_Arenas",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|2fnh80|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Rainy_River",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Rankin_Inlet",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131"},{id:"America/Recife",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"139.6|180|120",offsetIndices:"0121212121212121212121212121212121212121"},{id:"America/Regina",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"America/Resolute",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|360|240|300",offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131"},{id:"America/Rio_Branco",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"America/Rosario",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|7qcg40|3yik0|b5xg0|7k580|Infinity",offsets:"256.8|240|180|120",offsetIndices:"01212121212121212121212121212121212121212123232323132323232"},{id:"America/Santa_Isabel",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Santarem",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity",offsets:"218.8|240|180",offsetIndices:"0121212121212121212121212121212"},{id:"America/Santiago",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"America/Santo_Domingo",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity",offsets:"280|300|240|270",offsetIndices:"01213131313131212"},{id:"America/Sao_Paulo",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Scoresbysund",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"87.8667|120|60|0",offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/Shiprock",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Sitka",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420|540",offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202"},{id:"America/St_Barthelemy",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Johns",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"America/St_Kitts",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Lucia",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Thomas",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/St_Vincent",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Swift_Current",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity",offsets:"431.3333|420|360",offsetIndices:"012122121212121212121212"},{id:"America/Tegucigalpa",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity",offsets:"348.8667|360|300",offsetIndices:"01212121"},{id:"America/Thule",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"275.1333|240|180",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Thunder_Bay",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"America/Tijuana",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Toronto",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Tortola",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Vancouver",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Virgin",untils:"-u6m79w|Infinity",offsets:"246.0667|240",offsetIndices:"01"},{id:"America/Whitehorse",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"America/Winnipeg",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yakutat",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"540|480",offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"America/Yellowknife",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"0|420|360|300",offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Casey",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|2fnh80|pz9g0|Infinity",offsets:"0|-480|-660",offsetIndices:"01212121"},{id:"Antarctica/Davis",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity",offsets:"0|-420|-300",offsetIndices:"01012121"},{id:"Antarctica/DumontDUrville",untils:"-c05eo0|2mks80|2i72g0|Infinity",offsets:"0|-600",offsetIndices:"0101"},{id:"Antarctica/Macquarie",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660|0",offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011"},{id:"Antarctica/Mawson",untils:"-8aelc0|t22y80|Infinity",offsets:"0|-360|-300",offsetIndices:"012"},{id:"Antarctica/McMurdo",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Palmer",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|Infinity",offsets:"0|180|240|120",offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Antarctica/Rothera",untils:"3lxs00|Infinity",offsets:"0|180",offsetIndices:"01"},{id:"Antarctica/South_Pole",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Antarctica/Syowa",untils:"-6qsqo0|Infinity",offsets:"0|-180",offsetIndices:"01"},{id:"Antarctica/Troll",untils:"ibruo0|27pg0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-120",offsetIndices:"00101010101010101010101010101010101010101010101010101010101010101010"},{id:"Antarctica/Vostok",untils:"-6aaao0|Infinity",offsets:"0|-360",offsetIndices:"01"},{id:"Arctic/Longyearbyen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Aden",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Almaty",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-307.8|-300|-360|-420",offsetIndices:"012323232323232323232321232323232323232323232323232"},{id:"Asia/Amman",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-143.7333|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Anadyr",untils:"-nu1sv8|379zj8|qi27w0|9et80|is040|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-709.9333|-720|-780|-840|-660",offsetIndices:"01232121212121212121214121212121212121212121212121212121212141"},{id:"Asia/Aqtau",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-201.0667|-240|-300|-360",offsetIndices:"012323232323232323232123232312121212121212121212"},{id:"Asia/Aqtobe",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity",offsets:"-228.6667|-240|-300|-360",offsetIndices:"0123232323232323232321232323232323232323232323232"},{id:"Asia/Ashgabat",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Ashkhabad",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|Infinity",offsets:"-233.5333|-240|-300|-360",offsetIndices:"0123232323232323232323212"},{id:"Asia/Atyrau",untils:"-nu15m8|37a1a8|qrh140|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|j3440|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-207.7333|-180|-300|-360|-240",offsetIndices:"01232323232323232323242323232323232324242424242"},{id:"Asia/Baghdad",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity",offsets:"-177.6|-180|-240",offsetIndices:"012121212121212121212121212121212121212121212121212121"},{id:"Asia/Bahrain",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Baku",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|239ew0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-199.4|-180|-240|-300",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Bangkok",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Barnaul",untils:"-q4ljic|5hu6uc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|38fo0|64og0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-335|-360|-420|-480",offsetIndices:"0123232323232323232323212323232321212121212121212121212121212121212"},{id:"Asia/Beirut",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Bishkek",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|h8dc0|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|Infinity",offsets:"-298.4|-300|-360|-420",offsetIndices:"012323232323232323232321212121212121212121212121212"},{id:"Asia/Brunei",untils:"-mvofy4|3khxs4|Infinity",offsets:"-459.6667|-450|-480",offsetIndices:"012"},{id:"Asia/Calcutta",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Chita",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity",offsets:"-453.8667|-480|-540|-600",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Choibalsan",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|Infinity",offsets:"-458|-420|-480|-600|-540",offsetIndices:"0123434343434343434343434343434343434343434343424242"},{id:"Asia/Chongqing",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Chungking",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Colombo",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity",offsets:"-319.5333|-330|-360|-390",offsetIndices:"01231321"},{id:"Asia/Dacca",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Damascus",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity",offsets:"-145.2|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Dhaka",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|u4ijy0|a1400|Infinity",offsets:"-353.3333|-390|-330|-360|-420",offsetIndices:"0121343"},{id:"Asia/Dili",untils:"-u9s4l8|fqcu98|hufs00|cpz440|Infinity",offsets:"-502.3333|-480|-540",offsetIndices:"01212"},{id:"Asia/Dubai",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Dushanbe",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|hp440|Infinity",offsets:"-275.2|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Famagusta",untils:"-p4bqac|rvhy2c|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|8h8w0|leog0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-135.8|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212212121212121212121212121212121212121212121"},{id:"Asia/Gaza",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|7x3w0|asys0|8a5c0|ahs1o|71mic|bzk5o|69uic|cg840|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Harbin",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Hebron",untils:"-ffv9k0|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|5hoqs0|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|1sns0|3p6is0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|66as0|4vxc0|8n400|a2yo0|8n400|a2yo0|8n400|asw00|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|8n400|a2yo0|8ulg0|97ek0|8y580|9ts40|8hms0|a4qk0|82nw0|anes0|8a5c0|afxc0|73h80|bzk5o|69uic|1hs40|1lbw0|9d440|902o0|9q000|9cyk0|9d440|ast80|7z440|aqyk0|7z6w0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|7idc0|b7pc0|7vc00|auqo0|7vc00|auqo0|7vc00|auqo0|7vc00|b7pc0|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Asia/Ho_Chi_Minh",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Hong_Kong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Hovd",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-366.6|-360|-420|-480",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Irkutsk",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-417.0833|-420|-480|-540",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Asia/Jakarta",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity",offsets:"-427.2|-440|-450|-540|-480|-420",offsetIndices:"01232425"},{id:"Asia/Jayapura",untils:"-jebm20|66bqe0|a37vy0|Infinity",offsets:"-562.8|-540|-570",offsetIndices:"0121"},{id:"Asia/Jerusalem",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Kabul",untils:"-d1pkg0|Infinity",offsets:"-240|-270",offsetIndices:"01"},{id:"Asia/Kamchatka",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-634.6|-660|-720|-780",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Karachi",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity",offsets:"-268.2|-330|-390|-300|-360",offsetIndices:"012133434343"},{id:"Asia/Kashgar",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Kathmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Katmandu",untils:"-q3gt4s|yg2lus|Infinity",offsets:"-341.2667|-330|-345",offsetIndices:"012"},{id:"Asia/Khandyga",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-542.2167|-480|-540|-600|-660",offsetIndices:"0123232323232323232323212323232323232323232323232343434343434343432"},{id:"Asia/Kolkata",untils:"-xehava|innm9a|bmfw0|5lxg0|1mn180|Infinity",offsets:"-321.1667|-330|-390",offsetIndices:"012121"},{id:"Asia/Krasnoyarsk",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-371.4333|-360|-420|-480",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Kuala_Lumpur",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Kuching",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|Infinity",offsets:"-441.3333|-450|-480|-500|-540",offsetIndices:"0123232323232323242"},{id:"Asia/Kuwait",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Macao",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Macau",untils:"-y0i2cy|jdvyoy|6onw0|ac580|8fs40|7v980|11luw0|awlc0|7vc00|ac800|bko00|7x6o0|9d1c0|7vc00|asw00|7x6o0|asw00|7x6o0|auqo0|88ao0|asw00|7x6o0|asw00|779c0|bitc0|779c0|bvs00|6uao0|bw1q0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cvs0|9d6w0|9cvs0|9d6w0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-454.1667|-480|-540|-600",offsetIndices:"012323212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Magadan",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity",offsets:"-603.2|-600|-660|-720",offsetIndices:"012323232323232323232321232323232323232323232323232323232323232312"},{id:"Asia/Makassar",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Manila",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity",offsets:"-480|-540",offsetIndices:"010101010"},{id:"Asia/Muscat",untils:"-q3gnko|Infinity",offsets:"-221.2|-240",offsetIndices:"01"},{id:"Asia/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Novokuznetsk",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-348.8|-360|-420|-480",offsetIndices:"012323232323232323232321232323232323232323232323232323232323212"},{id:"Asia/Novosibirsk",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|wrpg0|Infinity",offsets:"-331.6667|-360|-420|-480",offsetIndices:"0123232323232323232323212323212121212121212121212121212121212121212"},{id:"Asia/Omsk",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-293.5|-300|-360|-420",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Oral",untils:"-nu15ic|37a16c|qi2540|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-205.4|-180|-300|-360|-240",offsetIndices:"01232323232323232424242424242424242424242424242"},{id:"Asia/Phnom_Penh",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Pontianak",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity",offsets:"-437.3333|-450|-540|-480|-420",offsetIndices:"001213134"},{id:"Asia/Pyongyang",untils:"-w895yc|1yh10c|hk5da0|10ipmo0|1f4qo0|Infinity",offsets:"-503|-510|-540",offsetIndices:"012212"},{id:"Asia/Qatar",untils:"-q3gmvk|rctnrk|Infinity",offsets:"-206.1333|-240|-180",offsetIndices:"012"},{id:"Asia/Qostanay",untils:"-nu17s4|37a0o4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity",offsets:"-254.4667|-240|-300|-360",offsetIndices:"012323232323232323232123232323232323232323232323"},{id:"Asia/Qyzylorda",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|7osl00|Infinity",offsets:"-261.8667|-240|-300|-360",offsetIndices:"01232323232323232323232323232323232323232323232"},{id:"Asia/Rangoon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Riyadh",untils:"-bwgbbg|Infinity",offsets:"-186.8667|-180",offsetIndices:"01"},{id:"Asia/Saigon",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity",offsets:"-426.6667|-426.5|-420|-480|-540",offsetIndices:"0123423232"},{id:"Asia/Sakhalin",untils:"-xl87rc|kvnarc|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|iq5g0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-570.8|-540|-660|-720|-600",offsetIndices:"01232323232323232323232423232323232424242424242424242424242424242"},{id:"Asia/Samarkand",untils:"-nu18eh|37a1ah|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|Infinity",offsets:"-267.8833|-240|-300|-360",offsetIndices:"01232323232323232323232"},{id:"Asia/Seoul",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Asia/Shanghai",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"Asia/Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Asia/Srednekolymsk",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-614.8667|-600|-660|-720",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Taipei",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"Asia/Tashkent",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|Infinity",offsets:"-277.1833|-300|-360|-420",offsetIndices:"012323232323232323232321"},{id:"Asia/Tbilisi",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9cvs0|9cyk0|9d440|9cyk0|9d440|ipzw0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity",offsets:"-179.1833|-180|-240|-300",offsetIndices:"0123232323232323232323212121232323232323232323212"},{id:"Asia/Tehran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Asia/Tel_Aviv",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Asia/Thimbu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Thimphu",untils:"-bojclo|kxymno|Infinity",offsets:"-358.6|-330|-360",offsetIndices:"012"},{id:"Asia/Tokyo",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Asia/Tomsk",untils:"-q3zbqf|5h7z2f|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|1leo0|97k40|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|tw040|Infinity",offsets:"-339.85|-360|-420|-480",offsetIndices:"0123232323232323232323212323232323232323232323212121212121212121212"},{id:"Asia/Ujung_Pandang",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity",offsets:"-477.6|-480|-540",offsetIndices:"00121"},{id:"Asia/Ulaanbaatar",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Ulan_Bator",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|Infinity",offsets:"-427.5333|-420|-480|-540",offsetIndices:"012323232323232323232323232323232323232323232323232"},{id:"Asia/Urumqi",untils:"-lx5pjw|Infinity",offsets:"-350.3333|-360",offsetIndices:"01"},{id:"Asia/Ust-Nera",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity",offsets:"-572.9|-480|-540|-720|-660|-600",offsetIndices:"012343434343434343434345434343434343434343434343434343434343434345"},{id:"Asia/Vientiane",untils:"-pysda4|Infinity",offsets:"-402.0667|-420",offsetIndices:"01"},{id:"Asia/Vladivostok",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-527.5167|-540|-600|-660",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yakutsk",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-518.9667|-480|-540|-600",offsetIndices:"01232323232323232323232123232323232323232323232323232323232323232"},{id:"Asia/Yangon",untils:"-q3gv5b|bnjp3b|1kh520|Infinity",offsets:"-384.7833|-390|-540",offsetIndices:"0121"},{id:"Asia/Yekaterinburg",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-242.55|-225.0833|-240|-300|-360",offsetIndices:"012343434343434343434343234343434343434343434343434343434343434343"},{id:"Asia/Yerevan",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|11t180|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity",offsets:"-178|-180|-240|-300",offsetIndices:"0123232323232323232323212121212323232323232323232323232323232"},{id:"Atlantic/Azores",untils:"-u9rbs0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"114.5333|120|60|0",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Bermuda",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"259.3|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Canary",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"61.6|60|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Cape_Verde",untils:"-u9rbs0|g06lc0|1mn180|fpqwc0|Infinity",offsets:"94.0667|120|60",offsetIndices:"01212"},{id:"Atlantic/Faeroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Faroe",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"27.0667|0|-60",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Atlantic/Jan_Mayen",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Atlantic/Madeira",untils:"-u9rek0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"67.6|60|0|-60",offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Atlantic/Reykjavik",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Atlantic/South_Georgia",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Atlantic/St_Helena",untils:"-u9rgl4|Infinity",offsets:"16.1333|0",offsetIndices:"01"},{id:"Atlantic/Stanley",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|id6s0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity",offsets:"231.4|240|180|120",offsetIndices:"012121212121212323212121212121212121212121212121212121212121212121212"},{id:"Australia/ACT",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Adelaide",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Brisbane",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/Broken_Hill",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Canberra",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Currie",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Darwin",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/Eucla",untils:"-rnstlc|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-525|-585",offsetIndices:"0101010101010101010"},{id:"Australia/Hobart",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/LHI",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Lindeman",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010"},{id:"Australia/Lord_Howe",untils:"5tp880|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity",offsets:"-600|-630|-690|-660",offsetIndices:"0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313"},{id:"Australia/Melbourne",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/North",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity",offsets:"-570|-630",offsetIndices:"010101010"},{id:"Australia/NSW",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Perth",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Queensland",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-600|-660",offsetIndices:"01010101010101010"},{id:"Australia/South",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Sydney",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Tasmania",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/Victoria",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-600|-660",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Australia/West",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity",offsets:"-480|-540",offsetIndices:"0101010101010101010"},{id:"Australia/Yancowinna",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-570|-630",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101"},{id:"Brazil/Acre",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity",offsets:"271.2|300|240",offsetIndices:"01212121212121212121212121212121"},{id:"Brazil/DeNoronha",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity",offsets:"129.6667|120|60",offsetIndices:"0121212121212121212121212121212121212121"},{id:"Brazil/East",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|dbpg0|5ed80|Infinity",offsets:"186.4667|180|120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Brazil/West",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity",offsets:"240.0667|240|180",offsetIndices:"01212121212121212121212121212121"},{id:"Canada/Atlantic",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"254.4|240|180",offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Central",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Eastern",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Mountain",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|ctzk40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"453.8667|420|360",offsetIndices:"0121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Canada/Newfoundland",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"210.8667|150.8667|210|150|90",offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Canada/Pacific",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Canada/Saskatchewan",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity",offsets:"418.6|420|360",offsetIndices:"012121212121212121212121221212121212121212121212121212"},{id:"Canada/Yukon",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|Infinity",offsets:"540|480|420",offsetIndices:"01010110201212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"CET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Chile/Continental",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"282.7667|300|240|180",offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Chile/EasterIsland",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"CST6CDT",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Cuba",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity",offsets:"329.6|300|240",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"EET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-180",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Egypt",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity",offsets:"-120|-180",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Eire",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"EST",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"EST5EDT",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Etc/GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT-1",untils:"Infinity",offsets:"-60",offsetIndices:"0"},{id:"Etc/GMT-10",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Etc/GMT-11",untils:"Infinity",offsets:"-660",offsetIndices:"0"},{id:"Etc/GMT-12",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Etc/GMT-13",untils:"Infinity",offsets:"-780",offsetIndices:"0"},{id:"Etc/GMT-14",untils:"Infinity",offsets:"-840",offsetIndices:"0"},{id:"Etc/GMT-2",untils:"Infinity",offsets:"-120",offsetIndices:"0"},{id:"Etc/GMT-3",untils:"Infinity",offsets:"-180",offsetIndices:"0"},{id:"Etc/GMT-4",untils:"Infinity",offsets:"-240",offsetIndices:"0"},{id:"Etc/GMT-5",untils:"Infinity",offsets:"-300",offsetIndices:"0"},{id:"Etc/GMT-6",untils:"Infinity",offsets:"-360",offsetIndices:"0"},{id:"Etc/GMT-7",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Etc/GMT-8",untils:"Infinity",offsets:"-480",offsetIndices:"0"},{id:"Etc/GMT-9",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Etc/GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/GMT+1",untils:"Infinity",offsets:"60",offsetIndices:"0"},{id:"Etc/GMT+10",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Etc/GMT+11",untils:"Infinity",offsets:"660",offsetIndices:"0"},{id:"Etc/GMT+12",untils:"Infinity",offsets:"720",offsetIndices:"0"},{id:"Etc/GMT+2",untils:"Infinity",offsets:"120",offsetIndices:"0"},{id:"Etc/GMT+3",untils:"Infinity",offsets:"180",offsetIndices:"0"},{id:"Etc/GMT+4",untils:"Infinity",offsets:"240",offsetIndices:"0"},{id:"Etc/GMT+5",untils:"Infinity",offsets:"300",offsetIndices:"0"},{id:"Etc/GMT+6",untils:"Infinity",offsets:"360",offsetIndices:"0"},{id:"Etc/GMT+7",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"Etc/GMT+8",untils:"Infinity",offsets:"480",offsetIndices:"0"},{id:"Etc/GMT+9",untils:"Infinity",offsets:"540",offsetIndices:"0"},{id:"Etc/GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Etc/Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Europe/Amsterdam",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-19.5333|-79.5333|-80|-20|-120|-60",offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545"},{id:"Europe/Andorra",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Astrakhan",untils:"-nu2zkc|37bv8c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-192.2|-180|-240|-300",offsetIndices:"012323232323232323212121212121212121212121212121212121212121212"},{id:"Europe/Athens",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-94.8667|-120|-180|-60",offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Belfast",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Belgrade",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Berlin",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180",offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Bratislava",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Brussels",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Bucharest",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-104.4|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Budapest",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Busingen",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Chisinau",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Copenhagen",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Dublin",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8800|8a5c0|bvs00|8n400|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"25.35|-34.65|0|-60",offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Gibraltar",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Guernsey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Helsinki",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Isle_of_Man",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Istanbul",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"Europe/Jersey",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Kaliningrad",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|el00|z6o0|9kd80|82tg0|i9avw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"01010101010101121232323232323232322121212121212121212121212121212121212121212121"},{id:"Europe/Kiev",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-122.0667|-120|-180|-60|-240",offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Kirov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-198.8|-180|-240|-300",offsetIndices:"01232323232323232321212121212121212121212121212121212121212121"},{id:"Europe/Lisbon",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Ljubljana",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/London",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Luxembourg",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-24.6|-60|-120|0",offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Madrid",untils:"-qzlus0|8yas0|9cyk0|9eys0|2d2vw0|8sqs0|ssyk0|8n6s0|9px80|905g0|a2yo0|902o0|a2vw0|8n6s0|40lh80|5k2s0|9cyk0|1frw0|7z1c0|j1c80|8a2k0|13yt80|685g0|brzw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|a2vw0|8n6s0|1clx80|7x9g0|cswik0|905g0|9px80|905g0|8zzw0|9d440|9px80|905g0|9q5k0|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"010101010101010101210121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Malta",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9b6o0|8n400|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|9b6o0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Mariehamn",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99.8167|-120|-180",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Minsk",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|Infinity",offsets:"-110|-120|-180|-60|-240",offsetIndices:"01213131242424242424242424221212121212121212121212121212121212121212"},{id:"Europe/Monaco",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Moscow",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"Europe/Nicosia",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-133.4667|-120|-180",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Oslo",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Paris",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-9.35|0|-60|-120",offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Podgorica",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Prague",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|b5uo0|7vc00|2vs40|4bk00|2vmk0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|0",offsetIndices:"01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Riga",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-96.5667|-156.5667|-120|-180|-60|-240",offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Rome",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Samara",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|jt1g0|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|j3440|7k800|Infinity",offsets:"-200.3333|-180|-240|-300",offsetIndices:"0123232323232323232121232323232323232323232323232323232323212"},{id:"Europe/San_Marino",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sarajevo",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Saratov",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|13m040|Infinity",offsets:"-184.3|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Simferopol",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity",offsets:"-136|-120|-180|-60|-240",offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142"},{id:"Europe/Skopje",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Sofia",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-120|-60|-180",offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020"},{id:"Europe/Stockholm",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Tallinn",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-99|-60|-120|-180|-240",offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Tirane",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-79.3333|-60|-120",offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Tiraspol",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-115|-104.4|-120|-180|-60|-240",offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"Europe/Ulyanovsk",untils:"-qcx400|5q5zo0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity",offsets:"-193.6|-180|-240|-300|-120",offsetIndices:"01232323232323232321214121212121212121212121212121212121212121212"},{id:"Europe/Uzhgorod",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120|-180|-240",offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Vaduz",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vatican",untils:"-rymys0|64ak0|9d440|9et80|88dg0|aunw0|7ig40|b5rw0|8n6s0|9cyk0|aau2s0|18r9k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64dc0|clpc0|64dc0|cyo00|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|clpc0|64dc0|c8qo0|6hc00|clpc0|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vienna",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|91xc0|9b6o0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Vilnius",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-95.6|-60|-120|-180|-240",offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343"},{id:"Europe/Volgograd",untils:"-q3cw84|5glrw4|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|s3400|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|239c40|Infinity",offsets:"-177.6667|-180|-240|-300",offsetIndices:"012323232323232321212121212121212121212121212121212121212121212"},{id:"Europe/Warsaw",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zagreb",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Europe/Zaporozhye",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-140|-120|-180|-60|-240",offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Europe/Zurich",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB-Eire",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GB",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60|-120",offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"GMT-0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT+0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"GMT0",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Greenwich",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Hongkong",untils:"-y0i0s0|j44dk0|5k000|4d4y0|2195i0|7x3w0|bj320|6uao0|bvs00|7x6o0|9d1c0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity",offsets:"-456.7|-480|-540|-510",offsetIndices:"0123212121212121212121212121212121212121212121212121212121212121212121"},{id:"HST",untils:"Infinity",offsets:"600",offsetIndices:"0"},{id:"Iceland",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity",offsets:"88|60|0",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212"},{id:"Indian/Antananarivo",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Chagos",untils:"-wvpc2s|1ag64us|Infinity",offsets:"-289.6667|-300|-360",offsetIndices:"012"},{id:"Indian/Christmas",untils:"Infinity",offsets:"-420",offsetIndices:"0"},{id:"Indian/Cocos",untils:"Infinity",offsets:"-390",offsetIndices:"0"},{id:"Indian/Comoro",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Kerguelen",untils:"-afrs00|Infinity",offsets:"0|-300",offsetIndices:"01"},{id:"Indian/Mahe",untils:"-x6pjlo|Infinity",offsets:"-221.8|-240",offsetIndices:"01"},{id:"Indian/Maldives",untils:"-57x6y0|Infinity",offsets:"-294|-300",offsetIndices:"01"},{id:"Indian/Mauritius",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity",offsets:"-230|-240|-300",offsetIndices:"012121"},{id:"Indian/Mayotte",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity",offsets:"-147.2667|-180|-150|-165",offsetIndices:"01231"},{id:"Indian/Reunion",untils:"-uks29s|Infinity",offsets:"-221.8667|-240",offsetIndices:"01"},{id:"Iran",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity",offsets:"-205.7333|-210|-240|-300|-270",offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141"},{id:"Israel",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|2khpg0|25s00|1weyo0|5reo0|bxmo0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity",offsets:"-140.6667|-120|-180|-240",offsetIndices:"012121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Jamaica",untils:"-u85og2|wbl182|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity",offsets:"307.1667|300|240",offsetIndices:"0121212121212121212121"},{id:"Japan",untils:"-bb4900|6uao0|afxc0|8a5c0|c8qo0|6hc00|c8qo0|6hc00|Infinity",offsets:"-540|-600",offsetIndices:"010101010"},{id:"Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Libya",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity",offsets:"-52.7333|-60|-120",offsetIndices:"012121212121212121212121212122122"},{id:"MET",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-60|-120",offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Mexico/BajaNorte",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4o80|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"468.0667|420|480",offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Mexico/BajaSur",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"425.6667|420|360|480",offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Mexico/General",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity",offsets:"396.6|420|360|300",offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"MST",untils:"Infinity",offsets:"420",offsetIndices:"0"},{id:"MST7MDT",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Navajo",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"NZ-CHAT",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"NZ",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Apia",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"686.9333|690|660|600|-840|-780",offsetIndices:"01232345454545454545454545454545454545454545454545454545454"},{id:"Pacific/Auckland",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-690|-750|-720|-780",offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Bougainville",untils:"-ecsh40|1n05g0|1071c40|Infinity",offsets:"-600|-540|-660",offsetIndices:"0102"},{id:"Pacific/Chatham",untils:"-ciya10|f1tq90|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity",offsets:"-735|-765|-825",offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212"},{id:"Pacific/Chuuk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Easter",untils:"-jhfaew|ivmeuw|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|iq2o0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|c8nw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|Infinity",offsets:"437.4667|420|360|300",offsetIndices:"012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323"},{id:"Pacific/Efate",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity",offsets:"-673.2667|-660|-720",offsetIndices:"0121212121212121212121"},{id:"Pacific/Enderbury",untils:"535io0|7yiqk0|Infinity",offsets:"720|660|-780",offsetIndices:"012"},{id:"Pacific/Fakaofo",untils:"lx0jw0|Infinity",offsets:"660|-780",offsetIndices:"01"},{id:"Pacific/Fiji",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|38o00|fheo0|3lmo0|f4g00|3lmo0|Infinity",offsets:"-715.7333|-720|-780",offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121"},{id:"Pacific/Funafuti",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Galapagos",untils:"-kcr62o|spdryo|3lsas0|3jp80|Infinity",offsets:"358.4|300|360",offsetIndices:"01212"},{id:"Pacific/Gambier",untils:"-tvndoc|Infinity",offsets:"539.8|540",offsetIndices:"01"},{id:"Pacific/Guadalcanal",untils:"-tvowac|Infinity",offsets:"-639.8|-660",offsetIndices:"01"},{id:"Pacific/Guam",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Honolulu",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Johnston",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"Pacific/Kiritimati",untils:"535eyo|7yirhc|Infinity",offsets:"640|600|-840",offsetIndices:"012"},{id:"Pacific/Kosrae",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|cm2540|f9l3w0|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"01021030"},{id:"Pacific/Kwajalein",untils:"-h817w0|27sas0|1hjus0|ddxug0|cgv6k0|Infinity",offsets:"-660|-600|-540|720|-720",offsetIndices:"012034"},{id:"Pacific/Majuro",untils:"-su52k0|29hhk0|9cmd40|27sas0|1h6w40|deat40|Infinity",offsets:"-660|-540|-600|-720",offsetIndices:"0102103"},{id:"Pacific/Marquesas",untils:"-tvncu0|Infinity",offsets:"558|570",offsetIndices:"01"},{id:"Pacific/Midway",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Nauru",untils:"-pjxiws|ba66ys|1kwca0|hfzda0|Infinity",offsets:"-667.6667|-690|-540|-720",offsetIndices:"01213"},{id:"Pacific/Niue",untils:"-9wyz6o|ehcj4o|Infinity",offsets:"680|690|660",offsetIndices:"012"},{id:"Pacific/Norfolk",untils:"-9x0ps0|cfj8q0|6hc00|l6nk00|239aq0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity",offsets:"-672|-690|-750|-660|-720",offsetIndices:"012134343434343434343434343434343434343434"},{id:"Pacific/Noumea",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity",offsets:"-665.8|-660|-720",offsetIndices:"01212121"},{id:"Pacific/Pago_Pago",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Palau",untils:"Infinity",offsets:"-540",offsetIndices:"0"},{id:"Pacific/Pitcairn",untils:"es2cy0|Infinity",offsets:"510|480",offsetIndices:"01"},{id:"Pacific/Pohnpei",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Ponape",untils:"-su52k0|29hhk0|9cmd40|27sas0|29fk40|Infinity",offsets:"-660|-540|-600",offsetIndices:"010210"},{id:"Pacific/Port_Moresby",untils:"Infinity",offsets:"-600",offsetIndices:"0"},{id:"Pacific/Rarotonga",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity",offsets:"630|570|600",offsetIndices:"012121212121212121212121212"},{id:"Pacific/Saipan",untils:"-en8eg0|1dl9g0|7s1k40|txp80|3frms0|qdrpo|7kgac|3ljw0|c8tg0|6u7w0|bvus0|6u7w0|16uo40|3ljw0|16aas0|4ivxo|cls2c|6h980|c65zw0|Infinity",offsets:"-600|-540|-660",offsetIndices:"01020202020202020200"},{id:"Pacific/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"Pacific/Tahiti",untils:"-tvnayw|Infinity",offsets:"598.2667|600",offsetIndices:"01"},{id:"Pacific/Tarawa",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Tongatapu",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|7pmis0|3lmo0|Infinity",offsets:"-740|-780|-840",offsetIndices:"0121212121"},{id:"Pacific/Truk",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Pacific/Wake",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Wallis",untils:"Infinity",offsets:"-720",offsetIndices:"0"},{id:"Pacific/Yap",untils:"-su4zs0|29hes0|bkenw0|29fk40|Infinity",offsets:"-600|-540",offsetIndices:"01010"},{id:"Poland",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"-84|-60|-120|-180",offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"Portugal",untils:"-u9rhc0|2bufw0|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"36.75|0|-60|-120",offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"PRC",untils:"-qh00w0|8sl80|asbpg0|6w2k0|7ves0|bxjw0|4mqs0|1vduk0|d4as0|75bw0|a31g0|aaak0|9d440|7v980|awo40|1dx80|j9xpo0|6u7w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010"},{id:"PST8PDT",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"ROC",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity",offsets:"-480|-540",offsetIndices:"01010101010101010101010101010101010101010"},{id:"ROK",untils:"-w8966g|1yh18g|hkx5a0|1faao0|5cik0|ae5g0|8a2k0|ae5g0|8bx80|c8tg0|6h980|1bj6s0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity",offsets:"-507.8667|-510|-540|-600|-570",offsetIndices:"012232323232141414141414123232"},{id:"Singapore",untils:"-xphpwd|eeb94d|4it32o|8n3jc|1v2p60|iy3o60|Infinity",offsets:"-415.4167|-420|-440|-450|-540|-480",offsetIndices:"0123435"},{id:"Turkey",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p4040|4zjw0|2vs40|f4d80|9vms0|1u5ek0|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a31g0|8zzw0|a31g0|8n180|5md9g0|o9zw0|a6qs0|75bw0|4iwyw0|7x6o0|7kas0|b5rw0|75hg0|bkl80|77c40|biqk0|7x9g0|a2vw0|8n6s0|4iqc0|2nkw80|38l80|kdes0|8qtc0|8a5c0|9ew00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|902o0|9q000|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|8fe80|Infinity",offsets:"-116.9333|-120|-180|-240",offsetIndices:"0121212121212121212121212121212121212121212121223212121212121212121212121212121212121212121212121212121212121212122"},{id:"UCT",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"Universal",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"US/Alaska",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"600|540|480",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Aleutian",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"660|600|540",offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Arizona",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity",offsets:"420|360",offsetIndices:"01010101010"},{id:"US/Central",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/East-Indiana",untils:"-r0esg0|ast80|7x9g0|ast80|baw840|51ek0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|19q7w0|asys0|5qonw0|9cyk0|9d440|9cyk0|ihslg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300|240",offsetIndices:"010101011010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121"},{id:"US/Eastern",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"300|240",offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Hawaii",untils:"-j50la0|13l00|4jvb00|1tyvu0|2e5e0|votg0|Infinity",offsets:"630|570|600",offsetIndices:"0101102"},{id:"US/Indiana-Starke",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"360|300",offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Michigan",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlbxo|71s2c|9d440|9cyk0|2cmdg0|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"332.1833|360|300|240",offsetIndices:"0123323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232"},{id:"US/Mountain",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"420|360",offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific-New",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Pacific",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c5o|f2iic|owao0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity",offsets:"480|420",offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"US/Samoa",untils:"-usij20|Infinity",offsets:"682.8|660",offsetIndices:"01"},{id:"UTC",untils:"Infinity",offsets:"0",offsetIndices:"0"},{id:"W-SU",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jwk7|2cvk0|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity",offsets:"-150.2833|-151.3167|-211.3167|-271.3167|-240|-180|-300|-120",offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545"},{id:"WET",untils:"3s9ms0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity",offsets:"0|-60",offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010"},{id:"Zulu",untils:"Infinity",offsets:"0",offsetIndices:"0"}],getDisplayedTimeZones:function(n){var t=this._timeZones.map(e=>{var i=wN(e),r=this.getUtcOffset(i,n);return{offset:r,title:"(GMT ".concat(this.formatOffset(r),") ").concat(this.formatId(e.id)),id:e.id}});return(0,If.Z)(t).sortBy("offset").toArray()},formatOffset:function(n){var t=Math.floor(n),e=n-t;return((0,re.Xx)(n)>=0?"+":"-")+"0".concat(Math.abs(t)).slice(-2)+(e>0?":".concat(60*e):":00")},formatId:function(n){return n.split("/").join(" - ").split("_").join(" ")},getTimezoneById:function(n){if(n){for(var t=this._timeZones,e=0;e<t.length;e++)if(t[e].id===n)return t[e];bu.Z.log("W0009",n)}},getTimeZoneOffsetById:function(n,t){var e=hk.tryGet(n);return e?this.getUtcOffset(e,t):void 0},getTimeZoneDeclarationTuple:function(n,t){var e=hk.tryGet(n);return e?this.getTimeZoneDeclarationTupleCore(e,t):[]},getTimeZoneDeclarationTupleCore:function(n,t){for(var e=n.offsetList,i=n.offsetIndexList,r=n.dateList,m=[],D=0;D<r.length;D++){var A=r[D],N=new Date(A).getFullYear();if(N===t&&m.push({date:A,offset:-e[i[D+1]]/60}),N>t)break}return m},getUtcOffset:function(n,t){for(var e=n.offsetList,i=n.offsetIndexList,r=n.dateList,D=r.length-1-1;D>=0&&t<r[D];)D--;var A=e[i[D+1]];return-A/60||A}};const sw=EN;var ene=te.Z.dateToMilliseconds;class tne{constructor(t){this._source=new Date(t.getTime?t.getTime():t)}get source(){return this._source}result(){return this._source}getTimezoneOffset(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this._source.getTimezoneOffset();return"minute"===t?e*ene("minute"):e}getTime(){return this._source.getTime()}setTime(t){return this._source.setTime(t),this}addTime(t){return this._source.setTime(this._source.getTime()+t),this}setMinutes(t){return this._source.setMinutes(t),this}addMinutes(t){return this._source.setMinutes(this._source.getMinutes()+t),this}subtractMinutes(t){return this._source.setMinutes(this._source.getMinutes()-t),this}}var JD=te.Z.dateToMilliseconds,pk=n=>new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes())),SN=(n,t,e,i)=>QD(e,i)-QD(n,t),QD=(n,t)=>new Date(n).getTimezoneOffset()-new Date(t).getTimezoneOffset(),gk=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if("string"==typeof n){var e=pk(t);return sw.getTimeZoneOffsetById(n,e.getTime())}return n},eT=(n,t,e)=>gk(e,n)-gk(e,t),ON=n=>{var t=new Date(new Date(n).setHours(0,0,0,0)),e=new Date(new Date(n).setHours(23,59,59,0));return t.getTimezoneOffset()-e.getTimezoneOffset()!=0},fk=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return 6e4*n.getTimezoneOffset()},DN=()=>{var[n,t]=_ne();return n.getTimezoneOffset()!==t.getTimezoneOffset()},TN=(n,t)=>{var e=t.getFullYear(),i=Ue=>-Ue.getTimezoneOffset()/60,r=Ue=>new Date(Ue-36e5),m=sw.getTimeZoneDeclarationTuple(n,e),[D,A]=m;if(m.length<2)return sw.getTimeZoneOffsetById(n,t)===i(t)&&!DN();var we=i(new Date(D.date)),Re=i(new Date(A.date));return!(we!==D.offset||we===i(r(D.date))||Re!==A.offset||Re===i(r(A.date)))},_ne=()=>{var n=new Date(Date.now()),t=new Date,e=new Date;return t.setFullYear(n.getFullYear(),0,1),e.setFullYear(n.getFullYear(),6,1),[t,e]},yne={getDaylightOffset:QD,getDaylightOffsetInMs:(n,t)=>QD(n,t)*JD("minute"),getTimezoneOffsetChangeInMinutes:SN,getTimezoneOffsetChangeInMs:(n,t,e,i)=>SN(n,t,e,i)*JD("minute"),calculateTimezoneByValue:gk,getCorrectedDateByDaylightOffsets:(n,t,e,i,r)=>{var A=eT(n,t,i)-eT(n,t,r);return new Date(e.getTime()-A*JD("hour"))},isSameAppointmentDates:(n,t)=>(t=new Date(t.getTime()-1),te.Z.sameDate(n,t)),correctRecurrenceExceptionByTimezone:function(n,t,e,i){var r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],m=(n.getTimezoneOffset()-t.getTimezoneOffset())/60;return i?m=eT(t,n,i):e&&(m=eT(t,n,e)),new Date(n.getTime()+(r?-1:1)*m*JD("hour"))},getClientTimezoneOffset:fk,getDiffBetweenClientTimezoneOffsets:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;return fk(n)-fk(t)},createUTCDateWithLocalOffset:n=>n?new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds())):null,createDateFromUTCWithLocalOffset:n=>{var t=(n=>new tne(n))(n),e=t.getTimezoneOffset();return t.addTime(t.getTimezoneOffset("minute")),t.subtractMinutes(e-t.getTimezoneOffset()),t.source},createUTCDate:pk,isTimezoneChangeInDate:ON,getDateWithoutTimezoneChange:n=>{var t=new Date(n);if(ON(t)){var e=new Date(t);return new Date(e.setDate(e.getDate()+1))}return t},hasDSTInLocalTimeZone:DN,isEqualLocalTimeZone:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date;if(Intl){var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e===n)return!0}return TN(n,t)},isEqualLocalTimeZoneByDeclaration:TN,getTimeZones:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=pk(n);return sw.getDisplayedTimeZones(t.getTime())},setOffsetsToDate:(n,t)=>{var e=t.reduce((i,r)=>i+r,n.getTime());return new Date(e)}};const ia=yne;var Cne=te.Z.dateToMilliseconds,xne=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],bne=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],wne={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},IN=[],mk=null;function Dh(){return mk||(mk=new Sne),mk}class Sne{constructor(){this.rRule=null,this.rRuleSet=null,this.validator=new One}generateDates(t){var e=this.evalRecurrenceRule(t.rule),i=e.rule;if(!e.isValid||!i.freq)return[];var r=this._createRruleIntervalParams(t);return this._initializeRRule(t,r.startIntervalDate,i.until),this.rRuleSet.between(r.minViewDate,r.maxViewDate,!0).filter(m=>m.getTime()+r.appointmentDuration>=r.minViewTime).map(m=>this._convertRruleResult(r,t,m))}_createRruleIntervalParams(t){var{start:e,min:i,max:r,appointmentTimezoneOffset:m}=t,D=ia.getClientTimezoneOffset(e),A=ia.getClientTimezoneOffset(i),N=ia.getClientTimezoneOffset(r),Q=t.end?t.end.getTime()-t.start.getTime():0,se=ia.setOffsetsToDate(t.start,[-D,m]),we=t.min.getTime()-A+m,Re=new Date(we-Q),Ue=ia.setOffsetsToDate(t.max,[-N,m]),st=ia.getDiffBetweenClientTimezoneOffsets(t.start,se);return{startIntervalDate:se,minViewTime:we,minViewDate:Re,maxViewDate:Ue,startIntervalDateDSTShift:st<0?0:st,appointmentDuration:Q}}_convertRruleResult(t,e,i){var r=ia.getClientTimezoneOffset(i),D=ia.setOffsetsToDate(i,[r,r/36e5<=-13?-864e5:0,-e.appointmentTimezoneOffset,t.startIntervalDateDSTShift]),A=ia.getDiffBetweenClientTimezoneOffsets(D,i),N=A<0,Q=ia.setOffsetsToDate(D,[A]),se=ia.getDiffBetweenClientTimezoneOffsets(Q,D);return se&&N?new Date(Q.getTime()+se):Q}hasRecurrence(t){return!!this.generateDates(t).length}evalRecurrenceRule(t){var e={rule:{},isValid:!1};return t&&(e.rule=this._parseRecurrenceRule(t),e.isValid=this.validator.validateRRule(e.rule,t)),e}isValidRecurrenceRule(t){return this.evalRecurrenceRule(t).isValid}daysFromByDayRule(t){var e=[];return t.byday&&(e=Array.isArray(t.byday)?t.byday:t.byday.split(",")),e.map(i=>{var r=i.match(/[A-Za-z]+/);return!!r&&r[0]}).filter(i=>!!i)}getAsciiStringByDate(t){var e=t.getTimezoneOffset()*Cne("minute"),i=new Date(t.getTime()+e);return i.getFullYear()+("0"+(i.getMonth()+1)).slice(-2)+("0"+i.getDate()).slice(-2)+"T"+("0"+i.getHours()).slice(-2)+("0"+i.getMinutes()).slice(-2)+("0"+i.getSeconds()).slice(-2)+"Z"}getRecurrenceString(t){if(t&&t.freq){var e="";for(var i in t){var r=t[i];"interval"===i&&r<2||("until"===i&&(r=this.getAsciiStringByDate(r)),e+=i+"="+r+";")}return(e=e.substring(0,e.length-1)).toUpperCase()}}_parseExceptionToRawArray(t){return t.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/)}getDateByAsciiString(t){if("string"!=typeof t)return t;var e=this._parseExceptionToRawArray(t);if(!e)return null;var[i,r,m,D,A,N,Q]=this._createDateTuple(e);return Q?new Date(Date.UTC(i,r,m,D,A,N)):new Date(i,r,m,D,A,N)}_dispose(){this.rRuleSet&&(delete this.rRuleSet,this.rRuleSet=null),this.rRule&&(delete this.rRule,this.rRule=null)}_getTimeZoneOffset(){return(new Date).getTimezoneOffset()}_initializeRRule(t,e,i){var r=Bo.parseString(t.rule),m=t.firstDayOfWeek;r.dtstart=e,!r.wkst&&m&&(r.wkst=[6,0,1,2,3,4,5][m]),i&&(r.until=ia.setOffsetsToDate(i,[-ia.getClientTimezoneOffset(i),t.appointmentTimezoneOffset])),this._createRRule(r),t.exception&&t.exception.split(",").map(N=>this.getDateByAsciiString(N)).forEach(N=>{t.getPostProcessedException&&(N=t.getPostProcessedException(N));var Q=ia.setOffsetsToDate(N,[-ia.getClientTimezoneOffset(N),t.appointmentTimezoneOffset]);this.rRuleSet.exdate(Q)})}_createRRule(t){this._dispose(),this.rRuleSet=new yN,this.rRule=new Bo(t),this.rRuleSet.rrule(this.rRule)}_parseRecurrenceRule(t){for(var e={},i=t.split(";"),r=0,m=i.length;r<m;r++){var D=i[r].split("=");e[D[0].toLowerCase()]=D[1]}var Q=parseInt(e.count);if(isNaN(Q)||(e.count=Q),e.interval){var se=parseInt(e.interval);isNaN(se)||(e.interval=se)}else e.interval=1;return e.freq&&e.until&&(e.until=this.getDateByAsciiString(e.until)),e}_createDateTuple(t){var e=void 0!==t[8];return t.shift(),void 0===t[3]?t.splice(3):(t.splice(3,1),t.splice(6)),t[1]--,t.unshift(null),[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseInt(t[4])||0,parseInt(t[5])||0,parseInt(t[6])||0,e]}}class One{validateRRule(t,e){return!(this._brokenRuleNameExists(t)||!bne.includes(t.freq)||this._wrongCountRule(t)||this._wrongIntervalRule(t)||this._wrongDayOfWeek(t)||this._wrongByMonthDayRule(t)||this._wrongByMonth(t)||this._wrongUntilRule(t))||(this._logBrokenRule(e),!1)}_wrongUntilRule(t){var e=!1,i=t.until;return void 0!==i&&!(i instanceof Date)&&(e=!0),e}_wrongCountRule(t){var e=!1,i=t.count;return i&&"string"==typeof i&&(e=!0),e}_wrongByMonthDayRule(t){var e=!1,i=t.bymonthday;return i&&isNaN(parseInt(i))&&(e=!0),e}_wrongByMonth(t){var e=!1,i=t.bymonth;return i&&isNaN(parseInt(i))&&(e=!0),e}_wrongIntervalRule(t){var e=!1,i=t.interval;return i&&"string"==typeof i&&(e=!0),e}_wrongDayOfWeek(t){var e=t.byday,i=Dh().daysFromByDayRule(t),r=!1;return""===e&&(r=!0),(0,O.S6)(i,function(m,D){if(!Object.prototype.hasOwnProperty.call(wne,D))return r=!0,!1}),r}_brokenRuleNameExists(t){var e=!1;return(0,O.S6)(t,function(i){if(!xne.includes(i))return e=!0,!1}),e}_logBrokenRule(t){IN.includes(t)||(bu.Z.log("W0006",t),IN.push(t))}}var Cy="-label",tT="-wrapper",X0="dx-recurrence-repeat-end",AN="dx-recurrence-selectbox-freq",_k="dx-recurrence-numberbox-interval",PN="dx-recurrence-repeat-on",nT=[{recurrence:"dxScheduler-recurrenceHourly",value:"hourly"},{recurrence:"dxScheduler-recurrenceDaily",value:"daily"},{recurrence:"dxScheduler-recurrenceWeekly",value:"weekly"},{recurrence:"dxScheduler-recurrenceMonthly",value:"monthly"},{recurrence:"dxScheduler-recurrenceYearly",value:"yearly"}],Bne=nT.map(n=>({text:()=>yn.Z.format(n.recurrence),value:n.value})),Fne=[{type:"never"},{type:"until"},{type:"count"}],lw=["SU","MO","TU","WE","TH","FR","SA"];class Vne{constructor(t){this._recurrenceProcessor=Dh(),this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(t).rule}makeRules(t){this._recurrenceRule=this._recurrenceProcessor.evalRecurrenceRule(t).rule}makeRule(t,e){!e||Array.isArray(e)&&!e.length?delete this._recurrenceRule[t]:(0,w.$K)(t)&&("until"===t&&delete this._recurrenceRule.count,"count"===t&&delete this._recurrenceRule.until,this._recurrenceRule[t]=e)}getRepeatEndRule(){var t=this._recurrenceRule;return"count"in t?"count":"until"in t?"until":"never"}getRecurrenceString(){return this._recurrenceProcessor.getRecurrenceString(this._recurrenceRule)}getRules(){return this._recurrenceRule}getDaysFromByDayRule(){return this._recurrenceProcessor.daysFromByDayRule(this._recurrenceRule)}}class kN extends rP.Z{_getDefaultOptions(){var t=super._getDefaultOptions();return(0,y.l)(t,{value:null,startDate:new Date,firstDayOfWeek:void 0})}_getFirstDayOfWeek(){var t=this.option("firstDayOfWeek");return(0,w.$K)(t)?t:zo.Z.firstDayOfWeekIndex()}_createComponent(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(i,{readOnly:this.option("readOnly")}),super._createComponent(t,e,i)}_init(){super._init(),this._recurrenceRule=new Vne(this.option("value"))}_render(){super._render(),this.$element().addClass("dx-recurrence-editor"),this._$container=(0,l.Z)("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._prepareEditors(),this._renderEditors(this._$container)}getEditorByField(t){var e=this.getRecurrenceForm().getEditor(t);if(!(0,w.$K)(e))switch(t){case"byday":e=this._weekEditor;break;case"count":e=this._repeatCountEditor;break;case"until":e=this._repeatUntilDate}return e}_prepareEditors(){var t=(this._recurrenceRule.getRules().freq||nT[1].value).toLowerCase();return this._editors=[this._createFreqEditor(t),this._createIntervalEditor(t),this._createRepeatOnLabel(t),{itemType:"group",cssClass:PN,colCount:2,colCountByScreen:{xs:2},items:this._createRepeatOnEditor(t)},{itemType:"group",items:this._createRepeatEndEditor()}],this._editors}_createFreqEditor(t){return{dataField:"freq",name:"FREQ",editorType:"dxSelectBox",cssClass:AN,editorOptions:{items:Bne,value:t,field:"freq",valueExpr:"value",displayExpr:"text",layout:"horizontal",elementAttr:{class:AN},onValueChanged:e=>this._valueChangedHandler(e)},label:{text:yn.Z.format("dxScheduler-editorLabelRecurrence")}}}_createIntervalEditor(t){var e=this._recurrenceRule.getRules().interval||1;return{itemType:"group",colCount:2,cssClass:"".concat(_k).concat(tT),colCountByScreen:{xs:2},items:[{dataField:"interval",editorType:"dxNumberBox",editorOptions:{format:"#",width:70,min:1,field:"interval",value:e,showSpinButtons:!0,useLargeSpinButtons:!1,elementAttr:{class:_k},onValueChanged:i=>this._valueChangedHandler(i)},label:{text:yn.Z.format("dxScheduler-recurrenceRepeatEvery")}},{name:"intervalLabel",cssClass:"".concat(_k).concat(Cy),template:()=>yn.Z.format("dxScheduler-recurrenceRepeat".concat(t.charAt(0).toUpperCase()).concat(t.substr(1).toLowerCase()))}]}}_createRepeatOnLabel(t){return{itemType:"group",cssClass:"".concat(PN).concat(Cy),items:[{name:"repeatOnLabel",colSpan:2,template:()=>yn.Z.format("dxScheduler-recurrenceRepeatOn"),visible:t&&"daily"!==t&&"hourly"!==t}]}}_createRepeatOnEditor(t){return[this._createByDayEditor(t),this._createByMonthEditor(t),this._createByMonthDayEditor(t)]}_createByDayEditor(t){return{dataField:"byday",colSpan:2,template:(e,i)=>{var r=this._getFirstDayOfWeek(),m=this._daysOfWeekByRules(),D=zo.Z.getDayNames("abbreviated"),A=lw.slice(r).concat(lw.slice(0,r)),N=D.slice(r).concat(D.slice(0,r)).map((Q,se)=>({text:Q,key:A[se]}));this._$repeatOnWeek=(0,l.Z)("<div>").addClass("dx-recurrence-button-group").appendTo(i),this._weekEditor=this._createComponent(this._$repeatOnWeek,KI.Z,{items:N,field:"byday",selectionMode:"multiple",selectedItemKeys:m,keyExpr:"key",onSelectionChanged:Q=>{var se=Q.component.option("selectedItemKeys");this._recurrenceRule.makeRule("byday",se),this._changeEditorValue()}})},visible:"weekly"===t,label:{visible:!1}}}_createByMonthEditor(t){var e=zo.Z.getMonthNames("wide");return{dataField:"bymonth",editorType:"dxSelectBox",editorOptions:{field:"bymonth",items:[...Array(12)].map((r,m)=>({value:"".concat(m+1),text:e[m]})),value:this._monthOfYearByRules(),width:120,displayExpr:"text",valueExpr:"value",elementAttr:{class:"dx-recurrence-selectbox-month-of-year"},onValueChanged:r=>this._valueChangedHandler(r)},visible:"yearly"===t,label:{visible:!1}}}_createByMonthDayEditor(t){return{dataField:"bymonthday",editorType:"dxNumberBox",editorOptions:{min:1,max:31,format:"#",width:70,field:"bymonthday",showSpinButtons:!0,useLargeSpinButtons:!1,value:this._dayOfMonthByRules(),elementAttr:{class:"dx-recurrence-numberbox-day-of-month"},onValueChanged:e=>this._valueChangedHandler(e)},visible:"monthly"===t||"yearly"===t,label:{visible:!1}}}_createRepeatEndEditor(){var t=this._recurrenceRule.getRepeatEndRule();return[{dataField:"repeatEnd",editorType:"dxRadioGroup",editorOptions:{items:Fne,value:t,valueExpr:"type",field:"repeatEnd",itemTemplate:e=>"count"===e.type?this._renderRepeatCountEditor():"until"===e.type?this._renderRepeatUntilEditor():this._renderDefaultRepeatEnd(),layout:"vertical",elementAttr:{class:"dx-recurrence-radiogroup-repeat-type"},onValueChanged:e=>this._repeatEndValueChangedHandler(e)},label:{text:yn.Z.format("dxScheduler-recurrenceEnd")}}]}_renderEditors(t){this._recurrenceForm=this._createComponent(t,tP.Z,{items:this._editors,showValidationSummary:!1,scrollingEnabled:!0,showColonAfterLabel:!1,labelLocation:"top"}),this._disableRepeatEndParts()}_setAriaDescribedBy(t,e){var i="label-".concat(new vh.Z);t.setAria("describedby",i),t.setAria("id",i,e)}getRecurrenceForm(){return this._recurrenceForm}changeValueByVisibility(t){t?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))}_handleDefaults(){this._recurrenceRule.makeRule("freq",nT[1].value),this._changeEditorValue()}_changeEditorValue(){this.option("value",this._recurrenceRule.getRecurrenceString()||"")}_daysOfWeekByRules(){var t=this._recurrenceRule.getDaysFromByDayRule();return t.length||(t=[lw[this.option("startDate").getDay()]]),t}_dayOfMonthByRules(){var t=this._recurrenceRule.getRules().bymonthday;return t||(t=this.option("startDate").getDate()),t}_monthOfYearByRules(){var t=this._recurrenceRule.getRules().bymonth;return t||(t=this.option("startDate").getMonth()+1),String(t)}_renderDefaultRepeatEnd(){var t=(0,l.Z)("<div>").addClass(X0+tT);return(0,l.Z)("<div>").text(yn.Z.format("dxScheduler-recurrenceNever")).addClass(X0+Cy).appendTo(t),t}_repeatEndValueChangedHandler(t){var e=t.value;this._disableRepeatEndParts(e),"until"===e&&this._recurrenceRule.makeRule(e,this._getUntilValue()),"count"===e&&this._recurrenceRule.makeRule(e,this._repeatCountEditor.option("value")),"never"===e&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()}_disableRepeatEndParts(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._recurrenceRule.getRepeatEndRule();"until"===t&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===t&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===t&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))}_renderRepeatCountEditor(){var t=this._recurrenceRule.getRules().count||1,e=(0,l.Z)("<div>").addClass(X0+tT);return(0,l.Z)("<div>").text(yn.Z.format("dxScheduler-recurrenceAfter")).addClass(X0+Cy).appendTo(e),this._$repeatCountEditor=(0,l.Z)("<div>").addClass("dx-recurrence-numberbox-repeat-count").appendTo(e),(0,l.Z)("<div>").text(yn.Z.format("dxScheduler-recurrenceRepeatCount")).addClass(X0+Cy).appendTo(e),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,$8.Z,{field:"count",format:"#",width:70,min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),e}_repeatCountValueChangeHandler(t){"count"===this._recurrenceRule.getRepeatEndRule()&&(this._recurrenceRule.makeRule("count",t.value),this._changeEditorValue())}_formatUntilDate(t){return this._recurrenceRule.getRules().until&&te.Z.sameDate(this._recurrenceRule.getRules().until,t)?t:te.Z.setToDayEnd(t)}_renderRepeatUntilEditor(){var t=this._recurrenceRule.getRules().until||this._formatUntilDate(new Date),e=(0,l.Z)("<div>").addClass(X0+tT);return(0,l.Z)("<div>").text(yn.Z.format("dxScheduler-recurrenceOn")).addClass(X0+Cy).appendTo(e),this._$repeatDateEditor=(0,l.Z)("<div>").addClass("dx-recurrence-datebox-until-date").appendTo(e),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,tB.Z,{field:"until",value:t,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()},useMaskBehavior:!0}),e}_repeatUntilValueChangeHandler(t){if("until"===this._recurrenceRule.getRepeatEndRule()){var e=this._formatUntilDate(new Date(t.value));this._repeatUntilDate.option("value",e),this._recurrenceRule.makeRule("until",e),this._changeEditorValue()}}_valueChangedHandler(t){var{value:e,previousValue:i}=t,r=t.component.option("field");this.option("visible")?(this._recurrenceRule.makeRule(r,e),"freq"===r&&(this._makeRepeatOnRule(e),this._changeRepeatOnVisibility(e,i)),this._changeEditorValue()):this.option("value","")}_makeRepeatOnRule(t){("daily"===t||"hourly"===t)&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===t&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===t&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday",""))}_optionChanged(t){var e,i,r,m;switch(t.name){case"readOnly":null===(e=this._recurrenceForm)||void 0===e||e.option("readOnly",t.value),null===(i=this._repeatCountEditor)||void 0===i||i.option("readOnly",t.value),null===(r=this._weekEditor)||void 0===r||r.option("readOnly",t.value),null===(m=this._repeatUntilDate)||void 0===m||m.option("readOnly",t.value),super._optionChanged(t);break;case"value":this._recurrenceRule.makeRules(t.value),this._changeRepeatIntervalLabel(),this._disableRepeatEndParts(),this._changeEditorsValue(this._recurrenceRule.getRules()),super._optionChanged(t);break;case"startDate":this._makeRepeatOnRule(this._recurrenceRule.getRules().freq),(0,w.$K)(this._recurrenceRule.getRecurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":if(this._weekEditor){var D=zo.Z.getDayNames("abbreviated"),A=lw.slice(t.value).concat(lw.slice(0,t.value)),N=D.slice(t.value).concat(D.slice(0,t.value)).map((Q,se)=>({text:Q,key:A[se]}));this._weekEditor.option("items",N)}this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:super._optionChanged(t)}}_changeRepeatOnVisibility(t,e){t!==e&&(this._recurrenceForm.itemOption("byday","visible",!1),this._recurrenceForm.itemOption("bymonthday","visible",!1),this._recurrenceForm.itemOption("bymonth","visible",!1),this._recurrenceForm.itemOption("repeatOnLabel","visible",t&&"daily"!==t&&"hourly"!==t),"weekly"===t&&this._recurrenceForm.itemOption("byday","visible",!0),"monthly"===t&&this._recurrenceForm.itemOption("bymonthday","visible",!0),"yearly"===t&&(this._recurrenceForm.itemOption("bymonthday","visible",!0),this._recurrenceForm.itemOption("bymonth","visible",!0)))}_changeRepeatIntervalLabel(){var t=this._recurrenceRule.getRules().freq;t&&this._recurrenceForm.itemOption("intervalLabel","template",yn.Z.format("dxScheduler-recurrenceRepeat".concat(t.charAt(0).toUpperCase()).concat(t.substr(1).toLowerCase())))}_changeEditorsValue(t){this._recurrenceForm.getEditor("freq").option("value",(t.freq||nT[1].value).toLowerCase()),this._changeDayOfWeekValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue(),this._changeIntervalValue(t.interval),this._changeRepeatCountValue(),this._changeRepeatEndValue(),this._changeRepeatUntilValue()}_changeIntervalValue(t){this._recurrenceForm.getEditor("interval").option("value",t||1)}_changeRepeatEndValue(){var t=this._recurrenceRule.getRepeatEndRule();this._recurrenceForm.getEditor("repeatEnd").option("value",t)}_changeDayOfWeekValue(){if(this._recurrenceForm.itemOption("byday").visible){var e=this._daysOfWeekByRules();this.getEditorByField("byday").option("selectedItemKeys",e)}}_changeDayOfMonthValue(){if(this._recurrenceForm.itemOption("bymonthday").visible){var e=this._dayOfMonthByRules();this._recurrenceForm.getEditor("bymonthday").option("value",e)}}_changeMonthOfYearValue(){if(this._recurrenceForm.itemOption("bymonth").visible){var e=this._monthOfYearByRules();this._recurrenceForm.getEditor("bymonth").option("value",e)}}_changeRepeatCountValue(){var t=this._recurrenceRule.getRules().count||1;this._repeatCountEditor.option("value",t)}_changeRepeatUntilValue(){this._repeatUntilDate.option("value",this._getUntilValue())}_getUntilValue(){return this._recurrenceRule.getRules().until||this._formatUntilDate(new Date)}toggle(){this._freqEditor.focus()}setAria(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}}(0,T.Z)("dxRecurrenceEditor",kN);const Nne=kN,Hne={provide:ne.JU,useExisting:(0,a.Gpc)(()=>zne),multi:!0};let zne=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new Nne(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-recurrence-editor"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",readOnly:"readOnly",rtlEnabled:"rtlEnabled",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,Hne,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),RN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();var LN=u(6498);let BN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();u(7374);let FN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.i3B,M.Q8p,M._Sx,M.Xdm,g.Lz,g.ie,p.Cu],M.i3B,M.Q8p,M._Sx,M.Xdm,g.ie]}),n})();var VN="gradient",Zne=["normal","hover"];function Ck(n,t,e){var i=t.border,r=e.border,m=(0,w.$K)(i.visible)?i.visible:r.visible,D=(0,w.$K)(i.width)?i.width:r.width,A=(0,w.$K)(i.opacity)?i.opacity:(0,w.$K)(r.opacity)?r.opacity:1,N=(0,w.$K)(t.opacity)?t.opacity:(0,w.$K)(e.opacity)?e.opacity:1;return{fill:t.color||n,"stroke-width":m?D:0,stroke:t.border.color||e.border.color,"stroke-opacity":A,opacity:N,hatching:t.hatching}}function zN(n,t){var e=n._renderer.getRootOffset();this.code=0,this.widget=n,this.color=t.color,this.options=t.options,this.rect=t.rect,this.label=this.title=t.rect._name,this.coords={x:t.rect.x+t.rect.width/2+e.left,y:t.rect.y+t.rect.height/2+e.top},this.id=t.id,this.linksIn=t.linksIn,this.linksOut=t.linksOut,this.states={normal:Ck(this.color,this.options,this.options),hover:Ck(this.color,this.options.hoverStyle,this.options)}}zN.prototype={compileAttrs:function(){return Ck(this.color,this.options)},getState:function(){return Zne[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(n,t){t?this.code|=n:this.code&=~n,t?this.linksIn.concat(this.linksOut).forEach(e=>{this.widget._links[e.index].setAdjacentNodeHover(!0)}):(this.widget._links.forEach(function(e){e.isAdjacentNodeHovered()&&e.adjacentNodeHover(!1)}),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isHovered()||(this.widget._suspend(),n&&this.widget.clearHover(),this.setState(1,n),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(n){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{label:this.label,title:this.label,weightIn:this.linksIn.reduce(function(t,e){return t+e.weight},0),weightOut:this.linksOut.reduce(function(t,e){return t+e.weight},0)}},typeof n<"u"?{x:n[0],y:n[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(n,t){return function Kne(n,t,e){var i=ci;n.useNodeColors&&(n.font.color=e.color);var r=!!(0,w.$K)(n.border.visible)&&n.border.visible,m=(0,w.$K)(n.border.width)?n.border.width:0,D=(0,w.$K)(n.border.color)?n.border.color:n.font.color,A=(0,w.$K)(n.border.opacity)?n.border.opacity:1,N={filter:t};return r&&m&&(N.stroke=D,N["stroke-width"]=r?m:0,N["stroke-opacity"]=A),{attr:N,css:i(n.font)}}(n,t,this)}};const Gne=zN;var jne=["normal","adjacentNodeHover","hover"];function xy(n,t,e,i){var r=t.border,m=e.border,D=(0,w.$K)(r.visible)?r.visible:m.visible,A=(0,w.$K)(r.width)?r.width:m.width,N=(0,w.$K)(r.opacity)?r.opacity:(0,w.$K)(m.opacity)?m.opacity:1,Q=(0,w.$K)(t.opacity)?t.opacity:(0,w.$K)(e.opacity)?e.opacity:1,se=t.color||n;return"target"===e.colorMode||"source"===e.colorMode?se=n:e.colorMode===VN&&i&&(0,w.$K)(i.id)&&(se=i.id),{fill:se,"stroke-width":D?A:0,stroke:t.border.color||e.border.color,"stroke-opacity":N,opacity:Q,hatching:t.hatching}}function WN(n,t){var e=n._renderer.getRootOffset();this.code=0,this.widget=n,this.color=t.color,this.connection=t.connection,this.d=t.d,this.options=t.options,this.boundingRect=t.boundingRect,this.coords={x:t.boundingRect.x+t.boundingRect.width/2+e.left,y:t.boundingRect.y+t.boundingRect.height/2+e.top},this.states={normal:xy(this.color,this.options,this.options,t.gradient),adjacentNodeHover:xy(this.color,{opacity:0,border:{}},this.options,t.gradient),hover:xy(this.color,{opacity:0,border:{}},this.options,t.gradient)},this.overlayStates={normal:xy(this.color,{opacity:0,border:{}},this.options),adjacentNodeHover:xy(this.color,this.options.hoverStyle,this.options),hover:xy(this.color,this.options.hoverStyle,this.options)}}WN.prototype={getState:function(){return jne[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(n,t){t?this.code=n:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isHovered()||(this.widget._suspend(),n&&this.widget.clearHover(),this.setState(2,n),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(n){!this.widget._getOption("hoverEnabled",!0)||n===this.isAdjacentNodeHovered()||(this.widget._suspend(),this.setState(1,n),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(n){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},typeof n<"u"?{x:n[0],y:n[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}};const $ne=WN;var xk="white",ZN={maxOfArray:function(n,t){var e=0,i=m=>m;t&&(i=t);for(var r=0;r<n.length;r++)i(n[r])>e&&(e=i(n[r]));return e}},KN=function(n){var t=[];return n.forEach(e=>{-1===t.indexOf(e[0])&&t.push(e[0]),-1===t.indexOf(e[1])&&t.push(e[1])}),t},bk=function(n,t){var e=[];return n.forEach(i=>{i[0]===t&&-1===e.indexOf(i[1])&&e.push(i[1])}),e},wk=function(n,t){var e=[];return n.forEach(i=>{i[1]===t&&-1===e.indexOf(i[0])&&e.push(i[0])}),e},Xne={_hasCycle:!1,_sortedList:[],hasCycle:function(n){this._hasCycle=!1,this._sortedList=[];var t={},e=KN(n);return e.forEach(i=>{t[i]={color:xk}}),e.forEach(i=>{t[i].color===xk&&this._depthFirstSearch(n,t,i)}),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(n,t,e){t[e].color="gray";for(var i=bk(n,e),r=0;r<i.length;r++)t[i[r]].color===xk?this._depthFirstSearch(n,t,i[r]):"gray"===t[i[r]].color&&(this._hasCycle=!0);this._sortedList.push({name:e,lp:null,incoming:wk(n,e),outgoing:bk(n,e)}),t[e].color="black"},computeLongestPaths(n){var t=this._sortedList;return t.forEach(e=>{var i=wk(n,e.name);if(0===i.length)e.lp=0;else{var r=[];i.forEach(m=>{r.push(t.filter(D=>D.name===m)[0].lp)}),e.lp=ZN.maxOfArray(r)+1}}),this._sortedList}};const by={struct:Xne,routines:ZN,getVertices:KN,getAdjacentVertices:bk,getReverseAdjacentVertices:wk};var qne={validate:function(n,t){var e=null;return this._hasCycle(n)&&(e="E2006",t("E2006")),e},_hasCycle:function(n){return by.struct.hasCycle(n)}};const Jne=qne;var jN={_weightPerPixel:null,_getCascadeIdx:function(n,t){var e=t.filter(i=>i.name===n)[0];return e.outgoing.length>0?e.lp:by.routines.maxOfArray(t.map(i=>i.lp))},_getInWeightForNode:function(n,t){var e=0;return t.forEach(i=>{i[1]===n&&(e+=i[2])}),e},_getOutWeightForNode:function(n,t){var e=0;return t.forEach(i=>{i[0]===n&&(e+=i[2])}),e},_computeCascades:function(n){for(var t=by.struct.computeLongestPaths(n),e=by.routines.maxOfArray(t.map(m=>m.lp)),i=[],r=0;r<e+1;r++)i.push({});return n.forEach(m=>{var D=i[this._getCascadeIdx(m[0],t)];D[m[0]]||(D[m[0]]={nodeTitle:m[0]}),(D=i[this._getCascadeIdx(m[1],t)])[m[1]]||(D[m[1]]={nodeTitle:m[1]})}),i.forEach(m=>{Object.keys(m).forEach(D=>{var A=m[D];A.inWeight=this._getInWeightForNode(A.nodeTitle,n),A.outWeight=this._getOutWeightForNode(A.nodeTitle,n),A.maxWeight=Math.max(A.inWeight,A.outWeight)})}),i},_getWeightForCascade:function(n,t){var e=0,i=n[t];return Object.keys(i).forEach(r=>{e+=Math.max(i[r].inWeight,i[r].outWeight)}),e},_getMaxWeightThroughCascades:function(n){var t=[];return n.forEach(e=>{var i=0;Object.keys(e).forEach(r=>{var m=e[r];i+=Math.max(m.inWeight,m.outWeight)}),t.push(i)}),by.routines.maxOfArray(t)},_computeNodes:function(n,t){var e=[],i=this._getMaxWeightThroughCascades(n),r=by.routines.maxOfArray(n.map(N=>Object.keys(N).length)),m=t.nodePadding,D=t.height-m*(r-1);D<0&&(D=t.height-(m=0)*(r-1)),this._weightPerPixel=i/D;var A=0;return n.forEach(N=>{var Ue,Q=[],se=0,we=Object.keys(N).length,Re=this._getWeightForCascade(n,A)/this._weightPerPixel+m*(we-1);"bottom"===(Ue=Array.isArray(t.nodeAlign)?A<t.nodeAlign.length?t.nodeAlign[A]:"center":t.nodeAlign)?se=t.height-Re:"center"===Ue&&(se=.5*(t.height-Re)),se=Math.round(se),Object.keys(N).forEach(st=>{N[st].sort=this._sort&&Object.prototype.hasOwnProperty.call(this._sort,st)?this._sort[st]:1}),Object.keys(N).sort((st,Ot)=>N[st].sort-N[Ot].sort).forEach(st=>{var Kt=Math.floor(D*N[st].maxWeight/i),sn=Math.round(A*t.width/(n.length-1))-(0===A?0:t.nodeWidth),wn={};wn._name=st,wn.width=t.nodeWidth,wn.height=Kt,wn.x=sn+t.x,wn.y=se+t.y,se+=Kt+m,Q.push(wn)}),A++,e.push(Q)}),e},_findRectByName:function(n,t){for(var e=0;e<n.length;e++)for(var i=0;i<n[e].length;i++)if(t===n[e][i]._name)return n[e][i];return null},_findIndexByName:function(n,t){for(var e=0,i=0;i<n.length;i++)for(var r=0;r<n[i].length;r++){if(t===n[i][r]._name)return e;e++}return null},_computeLinks:function(n,t,e){var i={},r=[],m=[];return e.forEach(D=>{Object.keys(D).forEach(A=>{i[A]={in:0,out:0}})}),t.forEach(D=>{D.forEach(A=>{var N=A._name,Q=this._findRectByName(t,N),se=n.filter(we=>we[0]===N);se.forEach(we=>{we.sort=this._findIndexByName(t,we[1])}),se.sort((we,Re)=>we.sort-Re.sort).forEach(we=>{var Re=this._findRectByName(t,we[1]),Ue=Math.round(we[2]/this._weightPerPixel);r.push({from:{x:Q.x,y:Q.y+i[we[0]].out,width:Q.width,height:i[we[0]].out+Ue>Q.height?Q.height-i[we[0]].out:Ue,node:Q,weight:we[2]},to:{x:Re.x,y:Re.y+i[we[1]].in,width:Re.width,height:i[we[1]].in+Ue>Re.height?Re.height-i[we[1]].in:Ue,node:Re}}),i[we[0]].out+=Ue,i[we[1]].in+=Ue})})}),r.forEach(D=>{var A={d:this._spline(D.from,D.to),_boundingRect:{x:D.from.x+D.from.width,y:Math.min(D.from.y,D.to.y),width:D.to.x-(D.from.x+D.from.width),height:Math.max(D.from.x+D.from.height,D.to.y+D.to.height)-Math.min(D.from.y,D.to.y)},_weight:D.from.weight,_from:D.from.node,_to:D.to.node};m.push(A)}),this._fitAllNodesHeight(t,r),m},_fitNodeHeight:function(n,t,e){var i=this._findRectByName(t,n),r=0,m=0;e.forEach(function(D){D.from.node._name===n&&(m+=D.from.height),D.to.node._name===n&&(r+=D.to.height)}),i.height=Math.max(r,m)},_fitAllNodesHeight:function(n,t){for(var e=0;e<n.length;e++)for(var i=0;i<n[e].length;i++)this._fitNodeHeight(n[e][i]._name,n,t)},_spline:function(n,t){var e={x:n.x+n.width,y:n.y},i={x:n.x+n.width,y:n.y+n.height},r={x:t.x,y:t.y},m={x:t.x,y:t.y+t.height},D=.3*(r.x-e.x);return"M ".concat(e.x," ").concat(e.y," C ").concat(e.x+D," ").concat(e.y," ").concat(r.x-D," ").concat(r.y," ").concat(r.x," ").concat(r.y," L ").concat(m.x," ").concat(m.y," C ").concat(m.x-D," ").concat(m.y," ").concat(i.x+D," ").concat(i.y," ").concat(i.x," ").concat(i.y," Z")},computeLayout:function(n,t,e,i){this._sort=t;var r={},m=Jne.validate(n,i);return m?r.error=m:(r.cascades=this._computeCascades(n),r.nodes=this._computeNodes(r.cascades,{width:e.availableRect.width,height:e.availableRect.height,x:e.availableRect.x,y:e.availableRect.y,nodePadding:e.nodePadding,nodeWidth:e.nodeWidth,nodeAlign:e.nodeAlign}),r.links=this._computeLinks(n,r.nodes,r.cascades)),r},overlap:function(n,t){return!(t.x>n.x+n.width||t.x+t.width<n.x||t.y>=n.y+n.height||t.y+t.height<=n.y)}};function $N(n,t,e){var i=[],r="in"===e?"_to":"_from",m="in"===e?"_from":"_to";return n.links.map(D=>D[r]._name===t).forEach((D,A)=>{D&&i.push({index:A,weight:n.links[A]._weight,node:n.links[A][m]._name})}),i}var Ek=xl.inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:E.ZT,_applySize:function(n){this._rect=n.slice();var t=this._getOption("adaptiveLayout");return this._drawLabels=!!(t.keepLabels||this._rect[2]-this._rect[0]>t.width),this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var n=this;n._nodes.forEach(function(e,i){var r=n._renderer.rect().attr(e.rect).append(n._groupNodes);e.element=r}),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var n=this;n._links.forEach(function(e,i){var r=n._renderer.g().attr({class:"link","data-link-idx":i}).append(n._groupLinks);e.overlayElement=n._renderer.path([],"area").attr({d:e.d}).append(r),e.element=n._renderer.path([],"area").attr({d:e.d}).append(r)}),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:E.ZT,hideTooltip:E.ZT,clearHover:function(){this._suspend(),this._nodes.forEach(function(n){n.isHovered()&&n.hover(!1)}),this._links.forEach(function(n){n.isHovered()&&n.hover(!1),n.isAdjacentNodeHovered()&&n.adjacentNodeHover(!1)}),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach(function(n){var t=n.getState();n.element.smartAttr(n.states[t])})},_applyLinksAppearance:function(){this._links.forEach(function(n){var t=n.getState();n.element.smartAttr(n.states[t]),n.overlayElement.smartAttr(n.overlayStates[t])})},_hitTestTargets:function(n,t){var i,e=this;return this._proxyData.some(function(r){if(i=r.call(e,n,t))return!0}),i},_getData:function(){var n=this,t=n._dataSourceItems()||[],e=n._getOption("sourceField",!0),i=n._getOption("targetField",!0),r=n._getOption("weightField",!0),m=[];return t.forEach(function(D){var A=Object.prototype.hasOwnProperty.bind(D);A(e)?A(i)?A(r)?(0,w.HD)(D[e])?(0,w.HD)(D[i])?!(0,w.kE)(D[r])||D[r]<=0?n._incidentOccurred("E2009",r):m.push([D[e],D[i],D[r]]):n._incidentOccurred("E2008",i):n._incidentOccurred("E2008",e):n._incidentOccurred("E2007",r):n._incidentOccurred("E2007",i):n._incidentOccurred("E2007",e)}),m},_buildLayout:function(){var n=this,t=n._getData(),e=this._rect,i=n._getOption("node"),r=n._getOption("sortData"),A=(n._getOption("layoutBuilder",!0)||jN).computeLayout(t,r,{availableRect:{x:e[0],y:e[1],width:e[2]-e[0],height:e[3]-e[1]},nodePadding:i.padding,nodeWidth:i.width,nodeAlign:n._getOption("alignment",!0)},n._incidentOccurred);if(n._layoutMap=A,!Object.prototype.hasOwnProperty.call(A,"error")){var N={},Q=0,se=n._getOption("link"),we=A.nodes.map(Ue=>Ue.length).reduce((Ue,st)=>Ue+st,0),Re=n._themeManager.createPalette(n._getOption("palette",!0),{useHighlight:!0,extensionMode:n._getOption("paletteExtensionMode",!0),count:we});n._nodes=[],n._links=[],n._gradients.forEach(Ue=>{Ue.dispose()}),n._gradients=[],n._shadowFilter&&n._shadowFilter.dispose(),A.nodes.forEach(Ue=>{Ue.forEach(st=>{var Ot=i.color||Re.getNextColor(),Kt=new Gne(n,{id:Q,color:Ot,rect:st,options:i,linksIn:$N(A,st._name,"in"),linksOut:$N(A,st._name,"out")});n._nodes.push(Kt),Q++,N[st._name]=Ot})}),A.links.forEach(Ue=>{var st=null;se.colorMode===VN&&(st=n._renderer.linearGradient([{offset:"0%","stop-color":N[Ue._from._name]},{offset:"100%","stop-color":N[Ue._to._name]}]),this._gradients.push(st));var Ot=se.color;"source"===se.colorMode?Ot=N[Ue._from._name]:"target"===se.colorMode&&(Ot=N[Ue._to._name]);var Kt=new $ne(n,{d:Ue.d,boundingRect:Ue._boundingRect,color:Ot,options:se,connection:{source:Ue._from._name,target:Ue._to._name,weight:Ue._weight},gradient:st});n._links.push(Kt)}),n._renderer.initHatching(),n._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}n._change(["DRAWN"])},_applyLabelsAppearance:function(){var n=this,t=n._getOption("label"),e=n._rect[2]-n._rect[0],i=n._getOption("node");if(n._shadowFilter=n._renderer.shadowFilter("-50%","-50%","200%","200%").attr(t.shadow),n._groupLabels.clear(),n._drawLabels&&t.visible){var r=(e-(i.width+t.horizontalOffset)-n._layoutMap.cascades.length*i.width)/(n._layoutMap.cascades.length-1)-t.horizontalOffset;n._nodes.forEach(function(m){n._createLabel(m,t,n._shadowFilter.id),function nie(n,t,e,i){n._label.getBBox().width>e&&n.labelText.applyEllipsis(e);var r=n._label.getBBox(),m=t.verticalOffset,D=t.horizontalOffset,A=Math.round(n.rect.y+n.rect.height/2-r.y-r.height/2)+m,N=n.rect.x+D+n.rect.width-r.x;N+r.width>=i[2]-i[0]&&(N=n.rect.x-D-r.x-r.width),A>=i[3]&&(A=i[3]),A-r.height<i[1]&&(A=n.rect.y-r.y+m),n.labelText.attr({translateX:N,translateY:A})}(m,t,r,n._rect)}),"none"!==t.overlappingBehavior&&n._nodes.forEach(function(m){var D=m._label.getBBox();n._nodes.forEach(function(A){var N=A._label.getBBox();m.id!==A.id&&jN.overlap(D,N)&&("ellipsis"===t.overlappingBehavior?m.labelText.applyEllipsis(N.x-D.x):"hide"===t.overlappingBehavior&&m.labelText.remove())})})}},_createLabel:function(n,t,e){var i=t.customizeText(n),r=n.getLabelAttributes(t,e);i&&(n._label=this._renderer.g().append(this._groupLabels),n.labelText=this._renderer.text(i).attr(r.attr).css(r.css),n.labelText.append(n._label))},_getMinSize:function(){var n=this._getOption("adaptiveLayout");return[n.width,n.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});(0,T.Z)("dxSankey",Ek);const Ff=Ek;Ek.addPlugin(za);var YN=function(n,t){return function(e){var i=(0,w.mf)(n)?n.call(e,e):{},r=Object.prototype.hasOwnProperty.bind(i);return!r("html")&&!r("text")&&(i=(0,y.l)(i,t.call(e,e))),i}},XN=Ff.prototype,sie=0;XN._eventsMap.onNodeClick={name:"nodeClick"},XN._eventsMap.onLinkClick={name:"linkClick"};var uie={name:"tracker",init:function(){var n=this,t="__sankey_data_"+sie++;n._tracker=new Bb({widget:n,root:n._renderer.root,getData:function(e){return e.target[t]},getNode:function(e){return e<n._nodes.length?n._nodes[e]:n._links[e-n._nodes.length]},click:function(e){var i=this.getData(e.event)<n._nodes.length?"nodeClick":"linkClick";n._eventTrigger(i,{target:e.node,event:e.event})}}),this._dataKey=t},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var n=this._dataKey;this._nodes.concat(this._links).forEach(function(t,e){t.element.data(n,e)})}}};Ff.addPlugin(Bu),Ff.addPlugin(Oe),Ff.addPlugin(uie),Ff.addPlugin(wi),Ff.addPlugin(Fe),function oie(n){n.prototype._setTooltipOptions=function(){var i,r,t=this._tooltip,e=t&&this._getOption("tooltip");e.linkTooltipTemplate&&(i=this._getTemplate(e.linkTooltipTemplate)),e.nodeTooltipTemplate&&(r=this._getTemplate(e.nodeTooltipTemplate)),t&&t.update((0,y.l)({},e,{customizeTooltip:function(m){i&&"link"===m.type||r&&"node"===m.type||(m.skipTemplate=!0);var D=A=>t.formatValue(A);return"node"===m.type?YN(e.customizeNodeTooltip,(n=>function(t){return{html:"<strong>".concat(t.label,"</strong><br/>Incoming weight: ").concat(n(t.weightIn),"<br/>Outgoing weight: ").concat(n(t.weightOut))}})(D))(m.info):"link"===m.type?YN(e.customizeLinkTooltip,(n=>function(t){return{html:"<strong>".concat(t.source," > ").concat(t.target,"</strong><br/>Weight: ").concat(n(t.weight))}})(D))(m.info):{}},contentTemplate(m,D){var A={model:m.info,container:D};return i&&"link"===m.type?i.render(A):r&&"node"===m.type?r.render(A):void 0},enabled:e.enabled}))},n.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}}(Ff);let qN=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.lsC,M.lj9,M.e1H,M.bgw,M.YXG,M.Ois,M.Wwk,M.Ye1,M.kZH,M.rHV,M.KjY,M.hb3,M.Kx,M.rrz,M.lTN,M.vZC,M.FZZ,g.Lz,g.ie,p.Cu],M.lsC,M.lj9,M.e1H,M.bgw,M.YXG,M.Ois,M.Wwk,M.Ye1,M.kZH,M.rHV,M.KjY,M.hb3,M.Kx,M.rrz,M.lTN,M.vZC,M.FZZ,g.ie]}),n})();var JN=u(7572),cie=u(4121),QN=u(1469),q0=null,e6=function(){q0&&(q0.$element().remove(),q0=null)};function t6(n){return e6(),q0=function(n){return new QA.Z((0,l.Z)("<div>").appendTo(n&&n.container||(0,QN.S3)()),n)}(n),q0.show()}function iT(){return q0?q0.hide().done(e6).promise():(new P.BH).resolve()}var Ra_getField=(n,t,e)=>{if((0,w.$K)(n.getter[t]))return n.getter[t](e)},Ra_setField=(n,t,e,i)=>{if((0,w.$K)(n.setter[t]))return n.setter[t](e,i),e};class Sk{constructor(t,e,i,r){this.rawAppointment=t,this.dataAccessors=e,this.timeZoneCalculator=i,this.options=r}get duration(){return this.endDate?this.endDate-this.startDate:0}get startDate(){var t=this.getField("startDate");return void 0===t?t:new Date(t)}set startDate(t){this.setField("startDate",t)}get endDate(){var t=this.getField("endDate");return void 0===t?t:new Date(t)}set endDate(t){this.setField("endDate",t)}get allDay(){return this.getField("allDay")}set allDay(t){this.setField("allDay",t)}get text(){return this.getField("text")}set text(t){this.setField("text",t)}get description(){return this.getField("description")}set description(t){this.setField("description",t)}get startDateTimeZone(){return this.getField("startDateTimeZone")}get endDateTimeZone(){return this.getField("endDateTimeZone")}get recurrenceRule(){return this.getField("recurrenceRule")}set recurrenceRule(t){this.setField("recurrenceRule",t)}get recurrenceException(){return this.getField("recurrenceException")}set recurrenceException(t){this.setField("recurrenceException",t)}get disabled(){return!!this.getField("disabled")}get isRecurrent(){return Dh().isValidRecurrenceRule(this.recurrenceRule)}getField(t){return Ra_getField(this.dataAccessors,t,this.rawAppointment)}setField(t,e){return Ra_setField(this.dataAccessors,t,this.rawAppointment,e)}calculateStartDate(t){if(!this.startDate||isNaN(this.startDate.getTime()))throw Hs.Z.Error("E1032",this.text);return this.calculateDate(this.startDate,this.startDateTimeZone,t)}calculateEndDate(t){return this.calculateDate(this.endDate,this.endDateTimeZone,t)}calculateDate(t,e,i){if(t)return this.timeZoneCalculator.createDate(t,{appointmentTimeZone:e,path:i})}clone(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=new Sk((0,Se.HR)({},this.rawAppointment),this.dataAccessors,this.timeZoneCalculator,t);return null!=t&&t.pathTimeZone&&(e.startDate=e.calculateStartDate(t.pathTimeZone),e.endDate=e.calculateEndDate(t.pathTimeZone)),e}source(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]){var e=this.clone();return e.startDate=this.startDate,e.endDate=this.endDate,e.source()}return(0,y.l)({},this.rawAppointment)}}var Wa=(n,t,e,i)=>new Sk(n,t,e,i),n6=(n,t)=>(0,w.$K)(n.find(e=>(0,E.bY)(e,t))),uw=n=>n.valueExpr||"id",Ok=n=>n.displayExpr||"text",Vf=n=>n.fieldExpr||n.field,rT=n=>{if(n instanceof W0.o)return n;var t=(0,di.Z)({},(0,zb.aN)(n),{pageSize:0});return Array.isArray(n)||(t.filter=n.filter),new W0.o(t)},dw=n=>{var t=0,e=(i,r,m,D)=>{m=m||[];for(var A=0;A<i.items.length;A++){var N,Q=i.items[A],se={name:i.name,value:Q.id,title:Q.text,data:null===(N=i.data)||void 0===N?void 0:N[A],children:[],parent:D||null},we=r+1;n[we]&&e(n[we],we,se.children,se),se.children.length||(se.leafIndex=t,t++),m.push(se)}return m};return e(n[0],0)},i6=(n,t)=>{var e=dw(t),i=(D,A)=>{for(var N=0;N<D.length;N++){if(D[N].leafIndex===A)return D[N];var Q=i(D[N].children,A);if(Q)return Q}},r=(D,A)=>((A=A||[]).push(D.value),D.parent&&r(D.parent,A),A),m=i(e,n);return r(m).reverse()},wy=(n,t)=>{var e=[];if(Lp(t)){if(n<0)return;for(var i=i6(n,t),r=0;r<t.length;r++)e.push({name:t[r].name,id:i[r]})}return e},Lp=n=>{for(var t=0,e=0,i=n.length;e<i;e++)e?t*=n[e].items.length:t=n[e].items.length;return t},oT=n=>n.reduce((t,e)=>{var{name:i,id:r}=e;return(0,di.Z)({},t,{[i]:r})},{}),r6=n=>{var t=Lp(n);return[...new Array(t)].map((e,i)=>{var r=wy(i,n);return oT(r)})},o6=(n,t)=>{var e=n.find(i=>Vf(i)===t);return!(null==e||!e.allowMultiple)},aT=(n,t)=>n.filter(e=>{var i=Vf(e);return t.indexOf(i)>-1}),sT=(n,t,e)=>n[e][t],vie=(n,t,e)=>{var i=dw(e),r={};return t.forEach(m=>{for(var D=Dk((N,Q)=>sT(n.dataAccessors,N,Q),i,m),A=0;A<D.length;A++)r[D[A]]||(r[D[A]]=[]),r[D[A]].push((0,Se.HR)({},m,!0))}),r},Dk=(n,t,e,i)=>{i=i||[];for(var r=0;r<t.length;r++)yie(n,e,t[r].name,t[r].value)&&((0,w.$K)(t[r].leafIndex)&&i.push(t[r].leafIndex),t[r].children&&Dk(n,t[r].children,e,i));return i},yie=(n,t,e,i)=>{var r=n(e,"getter")(t);return n6((0,$u.sE)(r),i)},a6=(n,t,e,i)=>(i=i?i.children:[],t.forEach(function(r,m){var D=!1,A=r.name,N=r.value,Q=r.title,se=r.data,we=n(A,"getter");e.forEach(function(Re){if(!D){var Ue=we(Re);Array.isArray(Ue)?Ue.indexOf(N)>-1&&(i.push({name:A,value:N,title:Q,data:se,children:[]}),D=!0):Ue===N&&(i.push({name:A,value:N,title:Q,data:se,children:[]}),D=!0)}}),D&&r.children&&r.children.length&&a6(n,r.children,e,i[m])}),i),s6=(n,t)=>{var{resources:e,dataAccessors:i,loadedResources:r,resourceLoaderMap:m}=n,{groupIndex:D,groups:A,itemData:N}=t,Q=((n,t)=>{var e=t||[],i=n.find(m=>m.useColorAsDefault);if(i)return i;var r=e.length?aT(n,e):n;return r[r.length-1]})(e||[],A);if(Q){for(var se=Vf(Q),we=wy(D,r),Re=sT(i,se,"getter"),st=(0,$u.sE)(Re(N))[0],Ot=0;Ot<we.length;Ot++)if(we[Ot].name===se){st=we[Ot].id;break}return((n,t,e,i)=>{var r=new P.BH,m=aT(n,[e])[0]||{},A=(0,Go.vb)(m.colorExpr||"color");return((n,t,e,i)=>{var r=new P.BH;return n.filter(m=>Vf(m)===e&&(0,w.$K)(m.dataSource)).forEach(m=>{var D=rT(m.dataSource),A=uw(m);t.has(e)||t.set(e,D.load()),t.get(e).done(N=>{var Q=(0,Go.vb)(A),se=N.filter(we=>(0,E.bY)(Q(we),i));r.resolve(se[0])}).fail(()=>{t.delete(e),r.reject()})}),r.promise()})(n,t,e,i).done(N=>r.resolve(A(N))).fail(()=>r.reject()),r.promise()})(e,m,se,st)}return(new P.BH).resolve().promise()},l6=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={getter:{},setter:{}};return n.forEach(e=>{var i=Vf(e);t.getter[i]=(0,Go.vb)(i),t.setter[i]=(0,Go.OM)(i)}),t},u6=(n,t,e)=>{var i=new P.BH,r=[],A=[];return aT(t||[],n||[]).forEach(N=>{var Q=new P.BH,se=Vf(N);r.push(Q);var we=rT(N.dataSource).load();e.set(se,we),we.done(Re=>{var Ue=((n,t)=>{var e=(0,Go.vb)(uw(n)),i=(0,Go.vb)(Ok(n));return t.map(r=>{var m={id:e(r),text:i(r)};return r.color&&(m.color=r.color),m})})(N,Re);Q.resolve({name:se,items:Ue,data:Re})}).fail(()=>Q.reject())}),r.length?(P.gx.apply(null,r).done(function(){for(var N=arguments.length,Q=new Array(N),se=0;se<N;se++)Q[se]=arguments[se];var we=Q.some(Re=>0===Re.items.length);i.resolve(A=we?[]:Q)}).fail(()=>i.reject()),i.promise()):i.resolve(A)},d6=(n,t,e)=>{var i={};return(0,O.S6)(t.resources.getter,r=>{var m=t.resources.getter[r](n);if((0,w.$K)(m)){var A=o6(e,r)?(0,$u.sE)(m):m;i[r]=A}}),i},cw_MOBILE_DEFAULT=350,cw_MOBILE_FULLSCREEN=500,c6=()=>"desktop"!==x.Z.current().deviceType,g6=te.Z.dateToMilliseconds,Iie=g6("day"),Mie={height:"auto",maxHeight:"100%",showCloseButton:!1,showTitle:!1,defaultOptionsRules:[{device:()=>x.Z.current().android,options:{showTitle:!1}}]};class Aie{constructor(t,e){this.scheduler=t,this.form=e,this.popup=null,this.state={action:null,lastEditData:null,saveChangesLocker:!1,appointment:{data:null}}}get visible(){return!!this.popup&&this.popup.option("visible")}show(t,e){if(this.state.appointment.data=t,this.state.action=e.action,this.state.excludeInfo=e.excludeInfo,!this.popup){var i=this._createPopupConfig();this.popup=this._createPopup(i)}this.popup.option("toolbarItems",((n,t)=>{var e=[],i={doneButton:{shortcut:"done",options:{text:yn.Z.format("Done")},location:"after"},cancelButton:{shortcut:"cancel",location:"ios"===x.Z.current().platform?"before":"after"}};return n&&e.push((0,di.Z)({},i.doneButton,{onClick:t})),e.push(i.cancelButton),e})(e.isToolbarVisible,r=>this._doneButtonClickHandler(r))),this.popup.show()}hide(){this.popup.hide()}dispose(){var t;null===(t=this.popup)||void 0===t||t.$element().remove()}_createPopup(t){var e=(0,l.Z)("<div>").addClass("dx-scheduler-appointment-popup").appendTo(this.scheduler.getElement());return this.scheduler.createComponent(e,Tp.Z,t)}_createPopupConfig(){return(0,di.Z)({},Mie,{onHiding:()=>this.scheduler.focus(),contentTemplate:()=>this._createPopupContent(),onShowing:t=>this._onShowing(t),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_onShowing(t){this._updateForm();var e={form:this.form.dxForm,popup:this.popup,appointmentData:this.state.appointment.data,cancel:!1};this.scheduler.getAppointmentFormOpening()(e),this.scheduler.processActionResult(e,i=>{i?t.cancel=!0:this.updatePopupFullScreenMode()})}_createPopupContent(){return this._createForm(),this.form.dxForm.$element()}_createFormData(t){var e=this._createAppointmentAdapter(t),i=this.scheduler.getDataAccessors(),r=this.scheduler.getResources(),m=d6(t,i,r);return(0,di.Z)({},t,m,{repeat:!!e.recurrenceRule})}_createForm(){var e=this._createFormData(this.state.appointment.data);this.form.create(this.triggerResize.bind(this),this.changeSize.bind(this),e)}_isReadOnly(t){var e=this._createAppointmentAdapter(t);return!(!t||!e.disabled)||0!==this.state.action&&!this.scheduler.getEditingConfig().allowUpdating}_createAppointmentAdapter(t){return Wa(t,this.scheduler.getDataAccessors(),this.scheduler.getTimeZoneCalculator())}_updateForm(){var{data:t}=this.state.appointment,e=this._createAppointmentAdapter(this._createFormData(t));e.startDate&&(e.startDate=e.calculateStartDate("toAppointment")),e.endDate&&(e.endDate=e.calculateEndDate("toAppointment"));var i=e.source();this.form.readOnly=this._isReadOnly(i),this.form.updateFormData(i)}triggerResize(){this.popup&&(0,Db.U_)(this.popup.$element())}changeSize(t){if(this.popup){var e=(()=>{var n=(0,mi.Jj)(),t=n&&(0,s.dz)(n);return!!t&&(c6()?t<cw_MOBILE_FULLSCREEN:t<1e3)})(),i=e?"100%":(n=>c6()?cw_MOBILE_DEFAULT:n?970:485)(t);this.popup.option("fullScreen",e),this.popup.option("maxWidth",i)}}updatePopupFullScreenMode(){if(this.form.dxForm){var e=this.form.formData[this.scheduler.getDataAccessors().expr.recurrenceRuleExpr];this.visible&&this.changeSize(e)}}saveChangesAsync(t){var e=new P.BH,i=this.form.dxForm.validate();return t&&this._showLoadPanel(),(0,P.gx)(i&&i.complete||i).done(r=>{if(r&&!r.isValid)return iT(),void e.resolve(!1);var m=this._createAppointmentAdapter(this.form.formData),D=m.clone({pathTimeZone:"fromAppointment"});this._addMissingDSTTime(m,D);var A=D.source();switch(delete A.repeat,this.state.action){case 0:this.scheduler.addAppointment(A).done(e.resolve);break;case 1:this.scheduler.updateAppointment(this.state.appointment.data,A).done(e.resolve);break;case 2:this.scheduler.updateAppointment(this.state.excludeInfo.sourceAppointment,this.state.excludeInfo.updatedAppointment),this.scheduler.addAppointment(A).done(e.resolve)}e.done(()=>{iT(),this.state.lastEditData=A})}),e.promise()}_doneButtonClickHandler(t){t.cancel=!0,this.saveEditDataAsync()}saveEditDataAsync(){var t=new P.BH;return this._tryLockSaveChanges()&&(0,P.gx)(this.saveChangesAsync(!0)).done(()=>{if(this.state.lastEditData){var e=this._createAppointmentAdapter(this.state.lastEditData),{startDate:i,endDate:r,allDay:m}=e,D=i.getTime(),A=r.getTime(),N=m||A-D>=Iie,Q=this.scheduler.getDataAccessors(),se=this.scheduler.getResources(),we=d6(this.state.lastEditData,Q,se);this.scheduler.updateScrollPosition(i,we,N),this.state.lastEditData=null}this._unlockSaveChanges(),t.resolve()}),t.promise()}_showLoadPanel(){var t=this.popup.$overlayContent();t6({container:t,position:{of:t},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_tryLockSaveChanges(){return!1===this.state.saveChangesLocker&&(this.state.saveChangesLocker=!0,!0)}_unlockSaveChanges(){this.state.saveChangesLocker=!1}_addMissingDSTTime(t,e){var i=this.scheduler.getTimeZoneCalculator();e.startDate=this._addMissingDSTShiftToDate(i,t.startDate,e.startDate),e.endDate&&(e.endDate=this._addMissingDSTShiftToDate(i,t.endDate,e.endDate))}_addMissingDSTShiftToDate(t,e,i){var r,m,N=(null===(r=t.getOffsets(e))||void 0===r?void 0:r.common)-(null===(m=t.getOffsets(i))||void 0===m?void 0:m.common);return N?new Date(i.getTime()+N*g6("hour")):i}}var Pie=u(886);class f6{constructor(){this.counter=0}isFree(){return 0===this.counter}take(){this.counter+=1}release(){this.counter-=1,this.counter<0&&(this.counter=0)}}var kie=u(7772),m6=iD.Z.inherit({_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var n=(0,l.Z)("<textarea>");return this._applyInputAttributes(n,this.option("inputAttr")),this._updateInputAutoResizeAppearance(n),n},_applyInputAttributes:function(n,t){n.attr(t).addClass("dx-texteditor-input")},_renderScrollHandler:function(){this._eventY=0;var n=this._input(),t=(0,iP.M)(n,!0);d.Z.on(n,(0,k.V4)(kie.Z.init,this.NAME),t,E.ZT),d.Z.on(n,(0,k.V4)(So.Z.down,this.NAME),this._pointerDownHandler.bind(this)),d.Z.on(n,(0,k.V4)(So.Z.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(n){this._eventY=(0,k.a0)(n).y},_pointerMoveHandler:function(n){var t=(0,k.a0)(n).y,e=this._eventY-t;(0,iP.u)(this._input(),e)&&(n.isScrollingEvent=!0,n.stopPropagation()),this._eventY=t},_renderDimensions:function(){var n=this.$element(),t=n.get(0),e=this._getOptionValue("width",t),i=this._getOptionValue("height",t),r=this.option("minHeight"),m=this.option("maxHeight");n.css({minHeight:void 0!==r?r:"",maxHeight:void 0!==m?m:"",width:e,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&d.Z.on(this._input(),(0,k.V4)("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){d.Z.off(this._input(),(0,k.V4)("input paste",this.NAME)),this.callBase()},_getHeightDifference(n){return(0,s.sQ)(this._$element.get(0),!1)+(0,s.sQ)(this._$textEditorContainer.get(0),!1)+(0,s.sQ)(this._$textEditorInputContainer.get(0),!1)+(0,s.p)("height",(0,mi.Jj)().getComputedStyle(n.get(0))).margin},_updateInputHeight:function(){if((0,mi.Ym)()){var n=this._input(),t=this.option("height"),e=void 0===t&&this.option("autoResizeEnabled");if(!(e||void 0===t&&this.option("minHeight")))return void n.css("height","");this._resetDimensions(),this._$element.css("height",(0,s.zp)(this._$element)),n.css("height",0);var r=this._getHeightDifference(n);this._renderDimensions();var m=this._getBoundaryHeight("minHeight"),D=this._getBoundaryHeight("maxHeight"),A=n[0].scrollHeight;if(void 0!==m&&(A=Math.max(A,m-r)),void 0!==D){var N=D-r,Q=A>N;A=Math.min(A,N),this._updateInputAutoResizeAppearance(n,!Q)}n.css("height",A),e&&this._$element.css("height","auto")}},_getBoundaryHeight:function(n){var t=this.option(n);if((0,w.$K)(t))return"number"==typeof t?t:(0,s.EJ)(t,this.$element().get(0).parentElement)},_renderInputType:E.ZT,_visibilityChanged:function(n){n&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(n,t){if(n){var e=(0,E.IS)(t,this.option("autoResizeEnabled"));n.toggleClass("dx-texteditor-input-auto-resize",e)}},_dimensionChanged:function(){this.option("visible")&&this._updateInputHeight()},_optionChanged:function(n){switch(n.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),n.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(n),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(n),n.value&&this._updateInputHeight();break;default:this.callBase(n)}}});(0,T.Z)("dxTextArea",m6);const Fie=m6;var Nf="dx-switch",Vie=Nf+"-wrapper",Nie=Nf+"-container",Hie=Nf+"-inner",zie=Nf+"-handle",_6=Nf+"-on-value",Wie=Nf+"-on",Uie=Nf+"-off",v6=rP.Z.inherit({_supportedKeys:function(){var n=this.option("rtlEnabled"),t=function(i){i.preventDefault(),this._clickAction({event:i})},e=function(i,r){r.preventDefault(),r.stopPropagation(),this._saveValueChangeEvent(r),this._animateValue(i)};return(0,y.l)(this.callBase(),{space:t,enter:t,leftArrow:e.bind(this,!!n),rightArrow:e.bind(this,!n)})},_useTemplates:function(){return!1},_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:yn.Z.format("dxSwitch-switchedOnText"),switchedOffText:yn.Z.format("dxSwitch-switchedOffText"),value:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.$element().addClass(Nf).append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(n,t){return(t-this._offsetDirection()*Number(!n))/2*100+"%"},_getHandleOffset:function(n,t){return this.option("rtlEnabled")&&(n=!n),n?100*-t-100+"%":100*-t+"%"},_renderSwitchInner:function(){this._$switchInner=(0,l.Z)("<div>").addClass(Hie).appendTo(this._$switchContainer),this._$handle=(0,l.Z)("<div>").addClass(zie).appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=(0,l.Z)("<div>").addClass(Wie).prependTo(this._$switchInner),this._$labelOff=(0,l.Z)("<div>").addClass(Uie).appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=(0,l.Z)("<div>").addClass(Nie),this._$switchWrapper=(0,l.Z)("<div>").addClass(Vie).append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),XA.Z,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return(0,s.Y_)(this._$switchContainer,!0)-(0,Yo.l)(this._$handle.get(0)).width},_renderSubmitElement:function(){this._$submitElement=(0,l.Z)("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(n,t){var e=this._getInnerOffset(n,t),i=this._getHandleOffset(n,t);this._$switchInner.css("transform"," translateX("+e+")"),this._$handle.css("transform"," translateX("+i+")")},_validateValue:function(){var n=this.option("value");"boolean"!=typeof n&&this._options.silent("value",!!n)},_renderClick:function(){var n=(0,k.V4)(v.u,this.NAME),t=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),d.Z.off(t,n),d.Z.on(t,n,function(e){this._clickAction({event:e})}.bind(this))},_clickHandler:function(n){this._saveValueChangeEvent(n.event),!this._animating&&!this._swiping&&this._animateValue(!this.option("value"))},_animateValue:function(n){var t=this.option("value"),e=n;if(t!==e){this._animating=!0;var i=this._getInnerOffset(t,0),r=this._getInnerOffset(e,0),m=this._getHandleOffset(t,0),D=this._getHandleOffset(e,0),A=this,N={},Q={},se={},we={};N.transform=" translateX("+i+")",Q.transform=" translateX("+r+")",se.transform=" translateX("+m+")",we.transform=" translateX("+D+")",this.$element().toggleClass(_6,e),h.Z.animate(this._$handle,{from:se,to:we,duration:100}),h.Z.animate(this._$switchInner,{from:N,to:Q,duration:100,complete:function(){A._animating=!1,A.option("value",e)}})}},_swipeStartHandler:function(n){var t=this.option("value"),e=this.option("rtlEnabled"),i=e?0:1,r=e?1:0;n.event.maxLeftOffset=t?i:r,n.event.maxRightOffset=t?r:i,this._swiping=!0,this._feedbackDeferred=new P.BH,(0,WV.dR)(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(n){this._renderPosition(this.option("value"),n.event.offset)},_swipeEndHandler:function(n){var t=this,e=this._offsetDirection(),i={},r={},m=this._getInnerOffset(t.option("value"),n.event.targetOffset),D=this._getHandleOffset(t.option("value"),n.event.targetOffset);i.transform=" translateX("+m+")",r.transform=" translateX("+D+")",h.Z.animate(this._$handle,{to:r,duration:100}),h.Z.animate(this._$switchInner,{to:i,duration:100,complete:function(){t._swiping=!1;var A=t.option("value")+e*n.event.targetOffset;t._saveValueChangeEvent(n.event),t.option("value",Boolean(A)),t._feedbackDeferred.resolve(),t._toggleActiveState(t.$element(),!1)}})},_renderValue:function(){this._validateValue();var n=this.option("value");this._renderPosition(n,0),this.$element().toggleClass(_6,n),this._getSubmitElement().val(n),this.setAria({pressed:n,label:this.option(n?"switchedOnText":"switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(n){n&&this.repaint()},_optionChanged:function(n){switch(n.name){case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(n);break;default:this.callBase(n)}}});(0,T.Z)("dxSwitch",v6);const Zie=v6;var Th={Main:"mainGroup",Recurrence:"recurrenceGroup"},y6=(n,t,e,i,r)=>({editorType:"dxDateBox",dataField:n,colSpan:t,label:{text:yn.Z.format(i)},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:e},onValueChanged:r,useMaskBehavior:!0}});class Yie{constructor(t){this.scheduler=t,this.form=null,this.semaphore=new f6}get dxForm(){return this.form}set readOnly(t){this.form.option("readOnly",t);var{recurrenceRuleExpr:e}=this.scheduler.getDataAccessors().expr;this.form.getEditor(e)?.option("readOnly",t)}get formData(){return this.form.option("formData")}set formData(t){this.form.option("formData",t)}create(t,e,i){var r=this.scheduler.getEditingConfig().allowTimeZoneEditing,{expr:m}=this.scheduler.getDataAccessors(),D=!!i[m.recurrenceRuleExpr],A=D?1:2,N=[...this._createMainItems(m,t,e,r),...this.scheduler.createResourceEditorModel()];e(D);var Q=[{itemType:"group",name:Th.Main,colCountByScreen:{lg:2,xs:1},colSpan:A,items:N},{itemType:"group",name:Th.Recurrence,visible:D,colSpan:A,items:this._createRecurrenceEditor(m)}],se=(0,l.Z)("<div>");this.form=this.scheduler.createComponent(se,tP.Z,{items:Q,showValidationSummary:!0,scrollingEnabled:!0,colCount:"auto",colCountByScreen:{lg:2,xs:1},formData:i,showColonAfterLabel:!1,labelLocation:"top",customizeItem:we=>{if(this.form&&"group"===we.itemType){var Re=this.scheduler.getDataAccessors().expr,Ue=new Date(this.formData[Re.startDateExpr]),st=new Date(this.formData[Re.endDateExpr]),Ot=we.items.find(sn=>sn.dataField===Re.startDateTimeZoneExpr),Kt=we.items.find(sn=>sn.dataField===Re.endDateTimeZoneExpr);Ot&&(Ot.editorOptions.dataSource=this.createTimeZoneDataSource(Ue)),Kt&&(Kt.editorOptions.dataSource=this.createTimeZoneDataSource(st))}},screenByWidth:we=>we<600||"desktop"!==x.Z.current().deviceType?"xs":"lg"})}createTimeZoneDataSource(t){return new Pie.Z({store:sw.getDisplayedTimeZones(t),paginate:!0,pageSize:10})}_dateBoxValueChanged(t,e,i){((n,t,e)=>{null!==t&&!t&&(null===e||e)&&n.option("value",e)})(t.component,t.value,t.previousValue);var r=xs.Z.deserializeDate(t.value),m=xs.Z.deserializeDate(t.previousValue),D=this.form.getEditor(e),A=xs.Z.deserializeDate(D.option("value"));if(this.semaphore.isFree()&&A&&r&&i(A,r)){var N=m?A.getTime()-m.getTime():0;D.option("value",new Date(r.getTime()+N))}}_createTimezoneEditor(t,e,i,r,m){var D=arguments.length>5&&void 0!==arguments[5]&&arguments[5];return{dataField:t,editorType:"dxSelectBox",visibleIndex:i,colSpan:r,label:{text:" "},editorOptions:{displayExpr:"title",valueExpr:"id",placeholder:yn.Z.format("dxScheduler-noTimezoneTitle"),searchEnabled:!0,onValueChanged:N=>{var se=this.form.getEditor(e);m&&se.option("value",N.value)}},visible:D}}_createDateBoxItems(t,e){var i=e?2:1,r=this.scheduler.getFirstDayOfWeek();return[y6(t.startDateExpr,i,r,"dxScheduler-editorLabelStartDate",m=>{this._dateBoxValueChanged(m,t.endDateExpr,(D,A)=>D<A)}),this._createTimezoneEditor(t.startDateTimeZoneExpr,t.endDateTimeZoneExpr,1,i,!0,e),y6(t.endDateExpr,i,r,"dxScheduler-editorLabelEndDate",m=>{this._dateBoxValueChanged(m,t.startDateExpr,(D,A)=>A<D)}),this._createTimezoneEditor(t.endDateTimeZoneExpr,t.startDateTimeZoneExpr,3,i,!1,e)]}_changeFormItemDateType(t,e){var i=this.form.itemOption(t).editorOptions,m=(0,di.Z)({},i,{type:e?"date":"datetime"});this.form.itemOption(t,"editorOptions",m)}_createMainItems(t,e,i,r){return[{dataField:t.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:yn.Z.format("dxScheduler-editorLabelTitle")}},{itemType:"group",colSpan:2,colCountByScreen:{lg:2,xs:1},items:this._createDateBoxItems(t,r)},{itemType:"group",colCountByScreen:{lg:3,xs:3},colSpan:2,items:[{dataField:t.allDayExpr,cssClass:"dx-appointment-form-switch",editorType:"dxSwitch",label:{text:yn.Z.format("dxScheduler-allDay"),location:"right"},editorOptions:{onValueChanged:m=>{var D=m.value,A=this.form.getEditor(t.startDateExpr),N=this.form.getEditor(t.endDateExpr),Q=xs.Z.deserializeDate(A.option("value"));if(this.semaphore.isFree()&&Q)if(D){var se=te.Z.trimTime(Q);A.option("value",new Date(se)),N.option("value",new Date(se))}else{var we=((n,t)=>new Date(new Date(n).setHours(t)))(Q,this.scheduler.getStartDayHour()),Re=this.scheduler.getCalculatedEndDate(we);A.option("value",we),N.option("value",Re)}var Ue="".concat(Th.Main,".").concat(t.startDateExpr),st="".concat(Th.Main,".").concat(t.endDateExpr);this._changeFormItemDateType(Ue,D),this._changeFormItemDateType(st,D)}}},{editorType:"dxSwitch",dataField:"repeat",cssClass:"dx-appointment-form-switch",name:"visibilityChanged",label:{text:yn.Z.format("dxScheduler-editorLabelRecurrence"),location:"right"},editorOptions:{onValueChanged:m=>{var D=this.form,A=m.value?1:2;D.itemOption(Th.Main,"colSpan",A),D.itemOption(Th.Recurrence,"colSpan",A),((n,t,e)=>{var i;e.itemOption(Th.Recurrence,"visible",t),!t&&e.updateData(n,""),null===(i=e.getEditor(n))||void 0===i||i.changeValueByVisibility(t)})(t.recurrenceRuleExpr,m.value,D),i(m.value),e()}}}]},{itemType:"empty",colSpan:2},{dataField:t.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:yn.Z.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2}]}_createRecurrenceEditor(t){return[{dataField:t.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",editorOptions:{firstDayOfWeek:this.scheduler.getFirstDayOfWeek()},label:{text:" ",visible:!1}}]}setEditorsType(t){var{startDateExpr:e,endDateExpr:i}=this.scheduler.getDataAccessors().expr,r="".concat(Th.Main,".").concat(e),m="".concat(Th.Main,".").concat(i),D=this.form.itemOption(r),A=this.form.itemOption(m);if(D&&A){var N=D.editorOptions,Q=A.editorOptions;N.type=Q.type=t?"date":"datetime",this.form.itemOption(r,"editorOptions",N),this.form.itemOption(m,"editorOptions",Q)}}updateRecurrenceEditorStartDate(t,e){this.setEditorOptions(e,"Recurrence",{startDate:t})}setEditorOptions(t,e,i){var r="".concat(Th.groupName,".").concat(t),m=this.form.itemOption(r);m&&this.form.itemOption(r,"editorOptions",(0,y.l)({},m.editorOptions,i))}setTimeZoneEditorDataSource(t,e){var i=this.createTimeZoneDataSource(t);this.setEditorOptions(e,"Main",{dataSource:i})}updateFormData(t){this.semaphore.take(),this.form.option("formData",t);var e=this.scheduler.getDataAccessors().expr,i=t[e.allDayExpr],r=new Date(t[e.startDateExpr]),m=new Date(t[e.endDateExpr]);this.setTimeZoneEditorDataSource(r,e.startDateTimeZoneExpr),this.setTimeZoneEditorDataSource(m,e.endDateTimeZoneExpr),this.updateRecurrenceEditorStartDate(r,e.recurrenceRuleExpr),this.setEditorsType(i),this.semaphore.release()}}var uT=u(6868);class C6{constructor(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];this.appointment=t,this.targetedAppointment=e,this.color=i,this.settings=r}}var Ik="dxListItemData",Bp="dxAppointmentSettings",x6="horizontal",rs={DAY:"day",WEEK:"week",WORK_WEEK:"workWeek",MONTH:"month",TIMELINE_DAY:"timelineDay",TIMELINE_WEEK:"timelineWeek",TIMELINE_WORK_WEEK:"timelineWorkWeek",TIMELINE_MONTH:"timelineMonth",AGENDA:"agenda"},Ih=u(3667),b6="vertical",w6=(n,t)=>t&&n?n.toString():"0",hw=(n,t)=>{var e=t??{},i=(0,di.Z)({},e);return n.forEach(r=>{var{attr:m,value:D}=r;i[m]=D||e[m]}),i},Mk=(n,t)=>{var e=n?"".concat(n,"px"):"";return hw([{attr:"height",value:e}],t)},E6=(n,t)=>{var e=n?"".concat(n,"px"):"";return hw([{attr:"width",value:e}],t)},S6=function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return(0,Ih.G)({"dx-scheduler-first-group-cell":n,"dx-scheduler-last-group-cell":t,[e]:!0})},O6=(n,t)=>n&&t,dT=(n,t)=>t===b6&&!!n.length,pw=(n,t)=>"horizontal"===t&&!!n.length,Jie=(n,t,e)=>{var i=pw(n,t);return e&&i},D6=(n,t)=>s6((0,di.Z)({},n,{dataAccessors:n.resourcesDataAccessors}),t),Ak="dx-scheduler-appointment-collector",nre=Ak+"-compact",ire=Ak+"-content";class are{constructor(t){this.instance=t,this.elements=[]}render(t){var{isCompact:e,items:i,buttonColor:r}=t,m=this._createTemplate(i.data.length,e),A=this._createCompactButton(m,t).$element();return this._makeBackgroundColor(A,i.colors,r),this._makeBackgroundDarker(A),this.elements.push(A),A.data("items",this._createTooltipInfos(i)),A}clear(){this.elements.forEach(t=>{t.detach(),t.remove()}),this.elements=[]}_createTooltipInfos(t){return t.data.map((e,i)=>{var r,m=Wa(e,this.instance._dataAccessors,this.instance.timeZoneCalculator).clone();if((null===(r=t.settings)||void 0===r?void 0:r.length)>0){var{info:D}=t.settings[i];m.startDate=D.sourceAppointment.startDate,m.endDate=D.sourceAppointment.endDate}return new C6(e,m.source(),t.colors[i],t.settings[i])})}_onButtonClick(t,e){var i=(0,l.Z)(t.element);this.instance.showAppointmentTooltipCore(i,i.data("items"),this._getExtraOptionsForTooltip(e,i))}_getExtraOptionsForTooltip(t,e){return{clickEvent:this._clickEvent(t.onAppointmentClick).bind(this),dragBehavior:t.allowDrag&&this._createTooltipDragBehavior(e).bind(this),dropDownAppointmentTemplate:this.instance.option().dropDownAppointmentTemplate,isButtonClick:!0}}_clickEvent(t){return e=>{var r=(0,y.x)(this.instance.fire("mapAppointmentFields",{itemData:e.itemData.appointment,itemElement:e.itemElement,targetedAppointment:e.itemData.targetedAppointment}),e,!1);delete r.itemData,delete r.itemIndex,delete r.itemElement,t(r)}}_createTooltipDragBehavior(t){return e=>{var i=(0,l.Z)(e.element),r=(0,l.Z)(this.instance.element()),m=this.instance.getWorkSpace(),D=(0,Ms.jt)(t),A={filter:".".concat("dx-list-item"),isSetCursorOffset:!0,initialPosition:D,getItemData:N=>{var Q;return null===(Q=(0,l.Z)(N).data(Ik))||void 0===Q?void 0:Q.appointment},getItemSettings:(N,Q)=>Q.itemSettings};m._createDragBehaviorBase(i,r,A)}}_getCollectorOffset(t,e){return e-t-this._getCollectorRightOffset()}_getCollectorRightOffset(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5}_makeBackgroundDarker(t){t.css("boxShadow","inset ".concat((0,Yo.l)(t.get(0)).width,"px 0 0 0 rgba(0, 0, 0, 0.3)"))}_makeBackgroundColor(t,e,i){P.gx.apply(null,e).done(function(){this._makeBackgroundColorCore(t,i,[...arguments])}.bind(this))}_makeBackgroundColorCore(t,e,i){e&&e.done(r=>{var m=((n,t)=>t.length&&0!==t.filter(e=>e!==n).length?void 0:n)(r,i);m&&t.css("backgroundColor",m)})}_setPosition(t,e){(0,Ms.pB)(t,{top:e.top,left:e.left})}_createCompactButton(t,e){var i=this._createCompactButtonElement(e);return this.instance._createComponent(i,ey.Z,{type:"default",width:e.width,height:e.height,onClick:r=>this._onButtonClick(r,e),template:this._renderTemplate(t,e.items,e.isCompact)})}_createCompactButtonElement(t){var{isCompact:e,$container:i,coordinates:r}=t,m=(0,l.Z)("<div>").addClass(Ak).toggleClass(nre,e).appendTo(i);return this._setPosition(m,r),m}_renderTemplate(t,e,i){return new uT.k(r=>t.render({model:{appointmentCount:e.data.length,isCompact:i},container:r.container}))}_createTemplate(t,e){return this._initButtonTemplate(t,e),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}_initButtonTemplate(t,e){this.instance._templateManager.addDefaultTemplates({appointmentCollector:new uT.k(i=>this._createButtonTemplate(t,(0,l.Z)(i.container),e))})}_createButtonTemplate(t,e,i){var r=i?t:yn.Z.getFormatter("dxScheduler-moreAppointments")(t);return e.append((0,l.Z)("<span>").text(r)).addClass(ire)}}var sre=u(5412),Hf="dx-tooltip-appointment-item",lre=Hf+"-content",ure=Hf+"-content-subject",dre=Hf+"-content-date",cre=Hf+"-marker",hre=Hf+"-marker-body",pre=Hf+"-delete-button-container",gre=Hf+"-delete-button";class T6{constructor(t){this._tooltip=null,this._options=t,this._extraOptions=null}show(t,e,i){this._canShowTooltip(e)&&(this.hide(),this._extraOptions=i,this._showCore(t,e))}_showCore(t,e){this._tooltip?(this._shouldUseTarget()&&this._tooltip.option("target",t),this._list.option("dataSource",e)):this._tooltip=this._createTooltip(t,e),this._prepareBeforeVisibleChanged(e),this._tooltip.option("visible",!0)}_prepareBeforeVisibleChanged(t){}_getContentTemplate(t){return e=>{var i=(0,l.Z)("<div>");(0,l.Z)(e).append(i),this._list=this._createList(i,t)}}isAlreadyShown(t){if(this._tooltip&&this._tooltip.option("visible"))return this._tooltip.option("target")[0]===t[0]}_onShown(){this._list.option("focusStateEnabled",this._extraOptions.focusStateEnabled)}dispose(){}hide(){this._tooltip&&this._tooltip.option("visible",!1)}_shouldUseTarget(){return!0}_createTooltip(){}_canShowTooltip(t){return!!t.length}_createListOption(t){return{dataSource:t,onContentReady:this._onListRender.bind(this),onItemClick:e=>this._onListItemClick(e),itemTemplate:(e,i)=>this._renderTemplate(e.appointment,e.targetedAppointment,i,e.color),_swipeEnabled:!1,pageLoadMode:"scrollBottom"}}_onListRender(){}_createTooltipElement(t){return(0,l.Z)("<div>").appendTo(this._options.container).addClass(t)}_createList(t,e){return this._options.createComponent(t,sre.Z,this._createListOption(e))}_renderTemplate(t,e,i,r){var m=this._createItemListContent(t,e,r);this._options.addDefaultTemplates({[this._getItemListTemplateName()]:new uT.k(A=>{var N=(0,l.Z)(A.container);return N.append(m),N})});var D=this._options.getAppointmentTemplate(this._getItemListTemplateName()+"Template");return this._createFunctionTemplate(D,t,e,i)}_createFunctionTemplate(t,e,i,r){var m=!!this._extraOptions.isButtonClick,D=this._isEmptyDropDownAppointmentTemplate();return new uT.k(A=>t.render({model:D?{appointmentData:e,targetedAppointmentData:i,isButtonClicked:m}:e,container:A.container,index:r}))}_getItemListTemplateName(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}_isEmptyDropDownAppointmentTemplate(){return!this._extraOptions.dropDownAppointmentTemplate||"dropDownAppointment"===this._extraOptions.dropDownAppointmentTemplate}_onListItemClick(t){this.hide(),this._extraOptions.clickEvent&&this._extraOptions.clickEvent(t),this._options.showAppointmentPopup(t.itemData.appointment,!1,t.itemData.targetedAppointment)}_createItemListContent(t,e,i){var r=this._extraOptions.editing,m=(0,l.Z)("<div>").addClass(Hf);return m.append(this._createItemListMarker(i)),m.append(this._createItemListInfo(this._options.createFormattedDateText(t,e))),!this._options.getAppointmentDisabled(t)&&(r&&!0===r.allowDeleting||!0===r)&&m.append(this._createDeleteButton(t,e)),m}_createItemListMarker(t){var e=(0,l.Z)("<div>").addClass(cre),i=(0,l.Z)("<div>").addClass(hre);return e.append(i),t&&t.done(r=>i.css("background",r)),e}_createItemListInfo(t){var e=(0,l.Z)("<div>").addClass(lre),i=(0,l.Z)("<div>").addClass(ure).text(t.text),r=(0,l.Z)("<div>").addClass(dre).text(t.formatDate);return e.append(i).append(r)}_createDeleteButton(t,e){var i=(0,l.Z)("<div>").addClass(pre),r=(0,l.Z)("<div>").addClass(gre);return i.append(r),this._options.createComponent(r,ey.Z,{icon:"trash",stylingMode:"text",onClick:m=>{this.hide(),m.event.stopPropagation(),this._options.checkAndDeleteAppointment(t,e)}}),i}}class _re extends T6{_prepareBeforeVisibleChanged(t){this._tooltip.option("position",{my:"bottom",at:"top",boundary:this._getBoundary(t),offset:this._extraOptions.offset,collision:"fit flipfit"})}_getBoundary(t){return this._options.isAppointmentInAllDayPanel(t[0].appointment)?this._options.container:this._options.getScrollableContainer()}_onShown(){super._onShown(),this._extraOptions.isButtonClick&&(this._list.focus(),this._list.option("focusedElement",null))}_createListOption(t,e){var i=super._createListOption(t,e);return i.showScrollbar=U0.touch?"always":"onHover",i}_createTooltip(t,e){var i=this._createTooltipElement("dx-scheduler-appointment-tooltip-wrapper");return this._options.createComponent(i,rD,{target:t,maxHeight:200,rtlEnabled:this._extraOptions.rtlEnabled,onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}_onListRender(t){return this._extraOptions.dragBehavior&&this._extraOptions.dragBehavior(t)}}var Cre={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,mi.Jj)()}},to:{position:{my:"center",at:"center",of:(0,mi.Jj)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,mi.Jj)()}},from:{position:{my:"center",at:"center",of:(0,mi.Jj)()}}}};class wre extends T6{_shouldUseTarget(){return!1}_onShowing(){var t=(0,s.dz)((0,mi.Jj)())>700;this._tooltip.option("height","auto");var e=(0,s.zp)(this._list.$element());this._tooltip.option(t?(n=>({shading:!0,width:"80%",height:n>.9*(0,s.Cr)((0,mi.Jj)())?"90%":"auto",position:{my:"center",at:"center",of:(0,mi.Jj)()}}))(e):(n=>({shading:!1,width:"100%",height:n>250?250:"auto",position:{my:"bottom",at:"bottom",of:(0,mi.Jj)()}}))(e))}_createTooltip(t,e){var i=this._createTooltipElement("dx-scheduler-overlay-panel");return this._options.createComponent(i,tD.Z,{target:(0,mi.Jj)(),hideOnOutsideClick:!0,animation:Cre,onShowing:()=>this._onShowing(),onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e),copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0})}}var Sy=null,M6=null,A6=function(){Sy&&(M6(),Sy=null)};var P6="dx-scheduler-fixed-appointments",Pre={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},kre={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},k6="dx-scheduler-appointment-drag-source",cT="dx-scheduler-header-panel-current-time-cell",hT="dx-scheduler-virtual-cell",R6="dx-scheduler-time-panel",Pk="dx-scheduler-date-table",kk="dx-scheduler-date-table-row",Oy="dx-scheduler-group-row",Rk="dx-scheduler-group-header-content",pT="dx-scheduler-last-group-cell",gT="dx-scheduler-first-group-cell",fT=["dx-scheduler-group-column-count-one","dx-scheduler-group-column-count-two","dx-scheduler-group-column-count-three"],L6=(0,k.V4)(So.Z.enter,"dxSchedulerAppointment"),B6=(0,k.V4)(So.Z.leave,"dxSchedulerAppointment");class Lk extends vo.Z{get coloredElement(){return this.$element()}get rawAppointment(){return this.option("data")}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{data:{},groupIndex:-1,groups:[],geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{keepAspectRatio:!1},cellHeight:0,cellWidth:0,isDragSource:!1})}notifyObserver(t,e){var i=this.option("observer");i&&i.fire(t,e)}invoke(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}_optionChanged(t){switch(t.name){case"data":case"groupIndex":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;case"isDragSource":this._renderDragSourceClass();break;default:super._optionChanged(t)}}_getHorizontalResizingRule(){var t={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"},e=this.option("getResizableStep"),i=e?e():0;return{handles:this.option("reduced")?t[this.option("reduced")]:"left right",minHeight:0,minWidth:this.invoke("getCellWidth"),step:i,roundStepValue:!1}}_getVerticalResizingRule(){var t=Math.round(this.invoke("getCellHeight"));return{handles:"top bottom",minWidth:0,minHeight:t,step:t,roundStepValue:!0}}_render(){super._render(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDragSourceClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate"));var t=Ra_getField(this.option("dataAccessors"),"text",this.rawAppointment);this.$element().attr("title",t),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable(),this._setResourceColor()}_setResourceColor(){var t={itemData:this.rawAppointment,groupIndex:this.option("groupIndex"),groups:this.option("groups")};this.option("getAppointmentColor")(t).done(i=>i&&this.coloredElement.css("backgroundColor",i))}_renderAppointmentGeometry(){var t=this.option("geometry"),e=this.$element();(0,Ms.pB)(e,{top:t.top,left:t.left}),e.css({width:t.width<0?0:t.width,height:t.height<0?0:t.height})}_renderEmptyClass(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass("dx-scheduler-appointment-empty")}_renderReducedAppointment(){var t=this.option("reduced");t&&(this.$element().toggleClass("dx-scheduler-appointment-reduced",!0).toggleClass(Pre[t],!0),this._renderAppointmentReducedIcon())}_renderAppointmentReducedIcon(){var t=(0,l.Z)("<div>").addClass("dx-scheduler-appointment-reduced-icon").appendTo(this.$element()),e=this._getEndDate(),r=[yn.Z.format("dxScheduler-editorLabelEndDate"),": ",zo.Z.format(e,"monthAndDay"),", ",zo.Z.format(e,"year")].join("");d.Z.off(t,L6),d.Z.on(t,L6,function(){!function Sre(n){return A6(),function(n){var t=(n=(0,y.l)({position:"top"},n)).content;delete n.content;var e=(0,l.Z)("<div>").html(t).appendTo((0,QN.S3)());M6=function(){e.remove()},Sy=new CB(e,n)}(n),Sy.show()}({target:t,content:r})}),d.Z.off(t,B6),d.Z.on(t,B6,function(){!function Ore(){Sy?Sy.hide().done(A6).promise():(new P.BH).resolve()}()})}_getEndDate(){var t=Ra_getField(this.option("dataAccessors"),"endDate",this.rawAppointment);return t&&new Date(t)}_renderAllDayClass(){this.$element().toggleClass("dx-scheduler-all-day-appointment",!!this.option("allDay"))}_renderDragSourceClass(){this.$element().toggleClass(k6,!!this.option("isDragSource"))}_renderRecurrenceClass(){var t=Ra_getField(this.option("dataAccessors"),"recurrenceRule",this.rawAppointment);Dh().isValidRecurrenceRule(t)&&this.$element().addClass("dx-scheduler-appointment-recurrence")}_renderDirection(){this.$element().addClass(kre[this.option("direction")])}_createResizingConfig(){var t="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return this.invoke("isGroupedByDate")||(t.stepPrecision="strict"),t}_renderResizable(){this.option("allowResize")&&this._createComponent(this.$element(),LN.Z,(0,y.l)(this._createResizingConfig(),this.option("resizableConfig")))}_useTemplates(){return!1}}(0,T.Z)("dxSchedulerAppointment",Lk);class Vre extends Lk{get coloredElement(){return this.$element().find(".".concat("dx-scheduler-agenda-appointment-marker"))}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{createPlainResourceListAsync:new P.BH})}_renderResourceList(t,e){e.forEach(i=>{var r=(0,l.Z)("<div>").addClass("dx-scheduler-appointment-resource-item").appendTo(t);(0,l.Z)("<div>").text("".concat(i.label,":")).appendTo(r),(0,l.Z)("<div>").addClass("dx-scheduler-appointment-resource-item-value").text(i.values.join(", ")).appendTo(r)})}_render(){super._render(),this.option("createPlainResourceListAsync")(this.rawAppointment).done(e=>{var i=this.$element().find(".".concat("dx-scheduler-appointment-content-details")),r=(0,l.Z)("<div>").addClass("dx-scheduler-appointment-resource-list").appendTo(i);this._renderResourceList(r,e)})}}var F6=" "+yn.Z.format("dxScheduler-allDay")+": ",Bk=te.Z.dateToMilliseconds,Fk=n=>!te.Z.sameDate(n.startDate,n.endDate),jre=(n,t,e,i)=>{n=n.replace(/\s/g,"");var r=N=>e.createDate(N,{path:"toGrid"}),m=xs.Z.deserializeDate(n),D=r(t),A=r(m);return A=ia.correctRecurrenceExceptionByTimezone(A,D,i),xs.Z.serializeDate(A,"yyyyMMddTHHmmss")},V6=(n,t,e,i,r)=>{if(((n,t)=>!t||isNaN(t.getTime())||n.getTime()>t.getTime())(t,e)){var m=(A=t,n.allDay?te.Z.setToDayEnd(new Date(A)):new Date(A.getTime()+i*Bk("minute")));r.setter.endDate(n,m)}var A},N6=(n,t)=>{n.sort((e,i)=>{var r=new Date(Ra_getField(t,"startDate",e.settings||e)),m=new Date(Ra_getField(t,"startDate",i.settings||i));return Math.sign(r.getTime()-m.getTime())})},H6=(n,t,e,i)=>{if(!n.considerTime)return t;var r=new Date(t);r.setHours(e.getHours(),e.getMinutes(),e.getSeconds());var{startDayHour:m,endDayHour:D,appointmentSettings:{allDay:A}}=n,N=new Date(t),Q=new Date(t);return N.setHours(m,0,0,0),Q.setHours(D,0,0,0),(i?r<N.getTime()||r>=Q.getTime():r<=N.getTime()||r>Q.getTime())&&(r=A?N:Q),r},z6=(n,t,e)=>H6(n,t,e,!0),W6=(n,t,e)=>H6(n,t,e,!1),U6=n=>{var{cellHeight:t,cellWidth:e,viewDataProvider:i,relativeAppointmentRect:r,appointmentSettings:m,rtlEnabled:D}=n,A=Math.floor(r.top/t),N=Math.round(r.left/e);return i.getCellData(A,N,m.allDay,D)},Z6=(0,k.V4)(lF.u,"dxSchedulerAppointment"),K6=te.Z.dateToMilliseconds;class G6 extends kb.Z{get isAgendaView(){return this.invoke("isCurrentViewAgenda")}get isVirtualScrolling(){return this.invoke("isVirtualScrolling")}get appointmentDataProvider(){return this.option("getAppointmentDataProvider")()}constructor(t,e){super(t,e),this._virtualAppointments={}}notifyObserver(t,e){var i=this.option("observer");i&&i.fire(t,e)}invoke(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}_dispose(){clearTimeout(this._appointmentClickTimeout),super._dispose()}_supportedKeys(){var t=super._supportedKeys(),e=this._$currentAppointment;return(0,y.l)(t,{escape:function(){var i,r,m;this.resizeOccur&&(this.moveAppointmentBack(),this.resizeOccur=!1,null===(i=e.dxResizable("instance"))||void 0===i||i._detachEventHandlers(),null===(r=e.dxResizable("instance"))||void 0===r||r._attachEventHandlers(),null===(m=e.dxResizable("instance"))||void 0===m||m._toggleResizingClass(!1))}.bind(this),del:function(i){if(this.option("allowDelete")){i.preventDefault();var r=this._getItemData(i.target);this.notifyObserver("onDeleteButtonPress",{data:r,target:i.target})}}.bind(this),tab:function(i){var r=this._getAccessAppointments(),D=r.filter(".dx-state-focused").data(Bp).sortedIndex;if(D>0&&i.shiftKey||D<r.length-1&&!i.shiftKey){i.preventDefault(),i.shiftKey?D--:D++;var N=this._getAppointmentByIndex(D);this._resetTabIndex(N),d.Z.trigger(N,"focus")}}})}_getAppointmentByIndex(t){return this._getAccessAppointments().filter(function(i,r){return(0,nP.aT)(r,Bp).sortedIndex===t}).eq(0)}_getAccessAppointments(){return this._itemElements().filter(":visible").not(".dx-state-disabled")}_resetTabIndex(t){this._focusTarget().attr("tabIndex",-1),t.attr("tabIndex",this.option("tabIndex"))}_moveFocus(){}_focusTarget(){return this._itemElements()}_renderFocusTarget(){var t=this._getAppointmentByIndex(0);this._resetTabIndex(t)}_focusInHandler(t){super._focusInHandler(t),this._$currentAppointment=(0,l.Z)(t.target),this.option("focusedElement",(0,S.u)((0,l.Z)(t.target)))}_focusOutHandler(t){var e=this._getAppointmentByIndex(0);this.option("focusedElement",(0,S.u)(e)),super._focusOutHandler(t)}_eventBindingTarget(){return this._itemContainer()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0,groups:[],resources:[]})}_optionChanged(t){if(!this.option("isRenovatedAppointments"))switch(t.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(t.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":case"allowDelete":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,l.Z)(t.value)),super._optionChanged(t);break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),super._optionChanged(t);break;default:super._optionChanged(t)}}_isAllDayAppointment(t){return t.settings.length&&t.settings[0].allDay||!1}_isRepaintAppointment(t){return!(0,w.$K)(t.needRepaint)||!0===t.needRepaint}_isRepaintAll(t){if(this.isAgendaView)return!0;for(var e=0;e<t.length;e++)if(!this._isRepaintAppointment(t[e]))return!1;return!0}_applyFragment(t,e){t.children().length>0&&this._getAppointmentContainer(e).append(t)}_onEachAppointment(t,e,i,r){!0===t?.needRemove?this._clearItem(t):(r||this._isRepaintAppointment(t))&&(t.needRepaint=!1,this._clearItem(t),this._renderItem(e,t,i))}_repaintAppointments(t){this._renderByFragments((e,i)=>{var r=this._isRepaintAll(t);r&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!t.length&&this._cleanItemContainer(),t.forEach((m,D)=>{var A=this._isAllDayAppointment(m)?i:e;this._onEachAppointment(m,D,A,r)})})}_renderByFragments(t){if(this.isVirtualScrolling){var e=(0,l.Z)(b.Z.createDocumentFragment()),i=(0,l.Z)(b.Z.createDocumentFragment());t(e,i),this._applyFragment(e,!1),this._applyFragment(i,!0)}else t(this._getAppointmentContainer(!1),this._getAppointmentContainer(!0))}_attachAppointmentsEvents(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()}_clearItem(t){var e=this._findItemElementByItem(t.itemData);e.length&&(0,O.S6)(e,function(i,r){r.detach(),r.remove()})}_clearDropDownItems(){this._virtualAppointments={}}_clearDropDownItemsElements(){this.invoke("clearCompactAppointments")}_findItemElementByItem(t){var e=[],i=this;return this.itemElements().each(function(){var r=(0,l.Z)(this);r.data(i._itemDataKey())===t&&e.push(r)}),e}_itemClass(){return"dx-scheduler-appointment"}_itemContainer(){var t=super._itemContainer(),e=t,i=this.option("allDayContainer");return i&&(e=t.add(i)),e}_cleanItemContainer(){super._cleanItemContainer();var t=this.option("allDayContainer");t&&t.empty(),this._virtualAppointments={}}_clean(){super._clean(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates}_init(){super._init(),this.$element().addClass("dx-scheduler-scrollable-appointments"),this._preventSingleAppointmentClick=!1}_renderAppointmentTemplate(t,e,i){var r={isAllDay:e.allDay,isRecurrence:e.recurrenceRule,html:(0,w.PO)(e)&&e.html?e.html:void 0},m=this.invoke("getTextAndFormatDate",i.appointmentData,this._currentAppointmentSettings.agendaSettings||i.targetedAppointmentData,"TIME");t.append(this.isAgendaView?((n,t)=>{var e=(0,l.Z)(b.Z.createDocumentFragment()),i=(0,l.Z)("<div>").addClass("dx-scheduler-agenda-appointment-left-layout").appendTo(e),r=(0,l.Z)("<div>").addClass("dx-scheduler-agenda-appointment-right-layout").appendTo(e),m=(0,l.Z)("<div>").addClass("dx-scheduler-agenda-appointment-marker").appendTo(i);t.isRecurrence&&(0,l.Z)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(m),(0,l.Z)("<div>").addClass("dx-scheduler-appointment-title").text(n.text).appendTo(r);var D=(0,l.Z)("<div>").addClass("dx-scheduler-appointment-content-details").appendTo(r);return(0,l.Z)("<div>").addClass("dx-scheduler-appointment-content-date").text(n.formatDate).appendTo(D),t.isAllDay&&(0,l.Z)("<div>").text(F6).addClass("dx-scheduler-appointment-content-allday").prependTo(D),e})(m,r):((n,t)=>{var e=(0,l.Z)(b.Z.createDocumentFragment());(0,l.Z)("<div>").text(n.text).addClass("dx-scheduler-appointment-title").appendTo(e),t.html&&e.html(t.html);var i=(0,l.Z)("<div>").addClass("dx-scheduler-appointment-content-details").appendTo(e);return(0,l.Z)("<div>").addClass("dx-scheduler-appointment-content-date").text(n.formatDate).appendTo(i),t.isRecurrence&&(0,l.Z)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(e),t.isAllDay&&(0,l.Z)("<div>").text(F6).addClass("dx-scheduler-appointment-content-allday").prependTo(i),e})(m,r))}_executeItemRenderAction(t,e,i){var r=this._getItemRenderAction();r&&r(this.invoke("mapAppointmentFields",{itemData:e,itemElement:i})),delete this._currentAppointmentSettings}_itemClickHandler(t){super._itemClickHandler(t,{},{afterExecute:function(e){this._processItemClick(e.args[0].event)}.bind(this)})}_processItemClick(t){var e=(0,l.Z)(t.currentTarget),i=this._getItemData(e);"keydown"===t.type||(0,k.VF)(t)?this.notifyObserver("showEditAppointmentPopup",{data:i,target:e}):this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&b.Z.getBody().contains(e[0])&&this.notifyObserver("showAppointmentTooltip",{data:i,target:e}),this._preventSingleAppointmentClick=!1}.bind(this),300)}_extendActionArgs(t){var e=super._extendActionArgs(t);return this.invoke("mapAppointmentFields",e)}_render(){super._render(),this._attachAppointmentDblClick()}_attachAppointmentDblClick(){var t=this,e=t._itemSelector(),i=this._itemContainer();d.Z.off(i,Z6,e),d.Z.on(i,Z6,e,function(r){t._itemDXEventHandler(r,"onAppointmentDblClick",{},{afterExecute:function(m){t._dblClickHandler(m.args[0].event)}})})}_dblClickHandler(t){var e=(0,l.Z)(t.currentTarget),i=this._getItemData(e);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:i,target:e})}_renderItem(t,e,i){for(var r=e.itemData,m=[],D=0;D<e.settings.length;D++){var A=e.settings[D];this._currentAppointmentSettings=A;var N=super._renderItem(t,r,i);N.data(Bp,A),m.push(N)}return m}_getItemContent(t){return t.data(Bp,this._currentAppointmentSettings),super._getItemContent(t)}_createItemByTemplate(t,e){var{itemData:i,container:r,index:m}=e;return t.render({model:{appointmentData:i,targetedAppointmentData:this.invoke("getTargetedAppointmentData",i,(0,l.Z)(r).parent())},container:r,index:m})}_getAppointmentContainer(t){var e=this.option("allDayContainer"),i=this.itemsContainer().not(e);return t&&e&&(i=e),i}_postprocessRenderItem(t){this._renderAppointment(t.itemElement,this._currentAppointmentSettings)}_renderAppointment(t,e){t.data(Bp,e),this._applyResourceDataAttr(t);var i=this._getItemData(t),r=this.invoke("getAppointmentGeometry",e),m=this.option("allowResize")&&(!(0,w.$K)(e.skipResizing)||(0,w.HD)(e.skipResizing)),D=this.option("allowDrag"),A=e.allDay;if(this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,r),e.virtual){var N={itemData:i,groupIndex:e.groupIndex,groups:this.option("groups")},Q=this.option("getAppointmentColor")(N);this._processVirtualAppointment(e,t,i,Q)}else{var se,we={data:i,groupIndex:e.groupIndex,observer:this.option("observer"),geometry:r,direction:e.direction||"vertical",allowResize:m,allowDrag:D,allDay:A,reduced:e.appointmentReduced,isCompact:e.isCompact,startDate:new Date(null===(se=e.info)||void 0===se?void 0:se.appointment.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(i,e),groups:this.option("groups"),getAppointmentColor:this.option("getAppointmentColor"),getResourceDataAccessors:this.option("getResourceDataAccessors")};if(this.isAgendaView){var Re=this.option("getAgendaResourceProcessor")();we.createPlainResourceListAsync=Ue=>Re.createListAsync(Ue)}this._createComponent(t,this.isAgendaView?Vre:Lk,(0,di.Z)({},we,{dataAccessors:this.option("dataAccessors"),getResizableStep:this.option("getResizableStep")}))}}_applyResourceDataAttr(t){var e=this.option("getResourceDataAccessors")(),i=this._getItemData(t);(0,O.S6)(e.getter,function(r){var m=e.getter[r](i);if((0,w.$K)(m)){var D="data-".concat((0,E.ku)(r.toLowerCase()),"-");(0,$u.sE)(m).forEach(A=>t.attr(D+(0,E.ku)(A),!0))}})}_resizableConfig(t,e){return{area:this._calculateResizableArea(e,t),onResizeStart:function(i){if(this.resizeOccur=!0,this._$currentAppointment=(0,l.Z)(i.element),this.invoke("needRecalculateResizableArea")){var r=this._calculateResizableArea(this._$currentAppointment.data(Bp),this._$currentAppointment.data("dxItemData"));i.component.option("area",r),i.component._renderDragOffsets(i.event)}this._initialSize={width:i.width,height:i.height},this._initialCoordinates=(0,Ms.jt)(this._$currentAppointment)}.bind(this),onResizeEnd:function(i){this.resizeOccur=!1,this._resizeEndHandler(i)}.bind(this)}}_calculateResizableArea(t,e){var i=this.$element().closest(".dx-scrollable-content");return this.invoke("getResizableAppointmentArea",{coordinates:{left:t.left,top:0,groupIndex:t.groupIndex},allDay:t.allDay})||i}_resizeEndHandler(t){var e=(0,l.Z)(t.element),{allDay:i,info:r}=e.data("dxAppointmentSettings"),m=this._getItemData(e),D={};if(i)D=this.resizeAllDay(t);else{var A=this._getEndResizeAppointmentStartDate(t,m,r.appointment);D=this._getDateRange(t,A,r.appointment.endDate)}this.updateResizedAppointment(e,D,this.option("dataAccessors"),this.option("timeZoneCalculator"))}resizeAllDay(t){var e=(0,l.Z)(t.element),i=this.option("timeZoneCalculator"),r=this.option("dataAccessors");return(n=>{var{appointmentSettings:t}=n,e=((n,t)=>{var e=n.left-t.left,i=n.top-t.top,r=e<0?n.width+e:n.width,m=i<0?n.height+i:n.height;return{left:Math.max(0,e),top:Math.max(0,i),width:r,height:m}})(n.appointmentRect,n.parentAppointmentRect),i=(n=>{var{appointmentSettings:t,isVerticalGroupedWorkSpace:e,DOMMetaData:i}=n,r=t.allDay&&!e?[i.allDayPanelCellsMeta]:i.dateTableCellsMeta,{positionByMap:m}=t,{height:D,width:A}=r[m.rowIndex][m.columnIndex];return{cellWidth:A,cellHeight:D,cellCountInRow:r[m.rowIndex].length}})(n),m=(0,di.Z)({},n,i,{considerTime:!n.isDateAndTimeView||t.allDay,relativeAppointmentRect:e});return n.rtlEnabled?(n=>{var{viewDataProvider:t,cellCountInRow:e,appointmentSettings:i,handles:r,cellWidth:m,relativeAppointmentRect:D}=n,A=U6(n),{allDay:N,sourceAppointment:Q}=i.info;if(r.right){var se=A.index,Re=se-Math.round(D.width/m)+1,Ue=Math.floor(se/e),st=t.getCellData(Ue,Re,N,!0);return{startDate:z6(n,st.startDate,Q.endDate),endDate:Q.endDate}}var Kt=n.considerTime?A.startDate:A.endDate;return Kt=W6(n,Kt,Q.endDate),{startDate:Q.startDate,endDate:Kt}})(m):(n=>{var{cellWidth:t,cellCountInRow:e,relativeAppointmentRect:i,viewDataProvider:r,appointmentSettings:m,handles:D}=n,A=U6(n),N=Math.round(i.width/t),Q=A.index+(N-1),{allDay:se,sourceAppointment:we}=m.info;if(D.left)return{startDate:z6(n,A.startDate,we.startDate),endDate:we.endDate};var Ue=Math.floor(Q/e),Ot=r.getCellData(Ue,Q%e,se),Kt=n.considerTime?Ot.startDate:Ot.endDate;return Kt=W6(n,Kt,we.endDate),{startDate:we.startDate,endDate:Kt}})(m)})({handles:t.handles,appointmentSettings:e.data("dxAppointmentSettings"),isVerticalViewDirection:this.option("isVerticalViewDirection")(),isVerticalGroupedWorkSpace:this.option("isVerticalGroupedWorkSpace")(),appointmentRect:(0,Yo.l)(e[0]),parentAppointmentRect:(0,Yo.l)(e.parent()[0]),viewDataProvider:this.option("getViewDataProvider")(),isDateAndTimeView:this.option("isDateAndTimeView")(),startDayHour:this.invoke("getStartDayHour"),endDayHour:this.invoke("getEndDayHour"),timeZoneCalculator:i,dataAccessors:r,rtlEnabled:this.option("rtlEnabled"),DOMMetaData:this.option("getDOMElementsMetaData")()})}updateResizedAppointment(t,e,i,r){var m=this._getItemData(t),D=Wa(m,i,r).clone();D.startDate=new Date(e.startDate),D.endDate=new Date(e.endDate),this.notifyObserver("updateAppointmentAfterResize",{target:m,data:D.clone({pathTimeZone:"fromGrid"}).source(),$appointment:t})}_getEndResizeAppointmentStartDate(t,e,i){var r=this.option("timeZoneCalculator"),m=Wa(e,this.option("dataAccessors"),r),D=i.startDate,A=Dh(),{recurrenceRule:N,startDateTimeZone:Q}=m,se=this.invoke("isAllDay",e),we=A.isValidRecurrenceRule(N);return!t.handles.top&&!we&&!se&&(D=r.createDate(m.startDate,{appointmentTimeZone:Q,path:"toGrid"})),D}_getDateRange(t,e,i){var se,we,r=this._getItemData(t.element),m=this.invoke("getDeltaTime",t,this._initialSize,r),D=this.invoke("getRenderingStrategyDirection"),N=this.invoke("isAllDay",r),Q=this.invoke("needCorrectAppointmentDates")&&!N;return("vertical"!==D||N?this.option("rtlEnabled")?t.handles.right:t.handles.left:t.handles.top)?(se=Q?this._correctStartDateByDelta(e,m):e.getTime()-m,se+=ia.getTimezoneOffsetChangeInMs(e,i,se,i),we=i.getTime()):(se=e.getTime(),we=Q?this._correctEndDateByDelta(i,m):i.getTime()+m,we-=ia.getTimezoneOffsetChangeInMs(e,i,e,we)),{startDate:new Date(se),endDate:new Date(we)}}_correctEndDateByDelta(t,e){var i=this.invoke("getEndDayHour"),r=this.invoke("getStartDayHour"),m=t.getTime()+e,D=(i-r)*K6("hour"),A=e>0?Math.ceil(e/D):Math.floor(e/D),N=new Date(t),Q=new Date(t);if(Q.setHours(r,0,0,0),N.setHours(i,0,0,0),m>N.getTime()||m<=Q.getTime()){var we=e-(N.getTime()-t.getTime()),Re=new Date(t).setDate(t.getDate()+A),Ue=new Date(Re);Ue.setHours(r,0,0,0),m=Ue.getTime()+we-D*(A-1)}return m}_correctStartDateByDelta(t,e){var i=this.invoke("getEndDayHour"),r=this.invoke("getStartDayHour"),m=t.getTime()-e,D=(i-r)*K6("hour"),A=e>0?Math.ceil(e/D):Math.floor(e/D),N=new Date(t),Q=new Date(t);if(Q.setHours(r,0,0,0),N.setHours(i,0,0,0),m<Q.getTime()||m>=N.getTime()){var we=e-(t.getTime()-Q.getTime()),Re=new Date(t.setDate(t.getDate()-A));Re.setHours(i,0,0,0),m=Re.getTime()-we+D*(A-1)}return m}_processVirtualAppointment(t,e,i,r){var m=t.virtual,D=m.index;(0,w.$K)(this._virtualAppointments[D])||(this._virtualAppointments[D]={coordinates:{top:m.top,left:m.left},items:{data:[],colors:[],settings:[]},isAllDay:!!m.isAllDay,buttonColor:r}),t.targetedAppointmentData=this.invoke("getTargetedAppointmentData",i,e),this._virtualAppointments[D].items.settings.push(t),this._virtualAppointments[D].items.data.push(i),this._virtualAppointments[D].items.colors.push(r),e.remove()}_renderContentImpl(){super._renderContentImpl(),this._renderDropDownAppointments()}_renderDropDownAppointments(){this._renderByFragments((t,e)=>{(0,O.S6)(this._virtualAppointments,function(i){var r=this._virtualAppointments[i],m=r.items,D=r.coordinates,A=r.isAllDay?e:t,N=D.left,Q=this.invoke("getDropDownAppointmentWidth",r.isAllDay),se=this.invoke("getDropDownAppointmentHeight"),we=this.option("rtlEnabled")?Q:0;this.notifyObserver("renderCompactAppointments",{$container:A,coordinates:{top:D.top,left:N+we},items:m,buttonColor:r.buttonColor,width:Q-this.option("_collectorOffset"),height:se,onAppointmentClick:this.option("onItemClick"),allowDrag:this.option("allowDrag"),cellWidth:this.invoke("getCellWidth"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(r)})}.bind(this))})}_isGroupCompact(t){return!t.isAllDay&&this.invoke("supportCompactDropDownAppointments")}_sortAppointmentsByStartDate(t){return N6(t,this.option("dataAccessors"))}_processRecurrenceAppointment(t,e,i){var r=Ra_getField(this.option("dataAccessors"),"recurrenceRule",t),m={parts:[],indexes:[]};if(r){for(var D=t.settings||t,A=new Date(Ra_getField(this.option("dataAccessors"),"startDate",D)),N=Ra_getField(this.option("dataAccessors"),"startDateTimeZone",t),Q=new Date(Ra_getField(this.option("dataAccessors"),"endDate",D)),se=Q.getTime()-A.getTime(),we=Ra_getField(this.option("dataAccessors"),"recurrenceException",t),Re=this.invoke("getStartViewDate"),Ue=this.invoke("getEndViewDate"),st=this.option("timeZoneCalculator"),Ot=Dh().generateDates({rule:r,exception:we,start:A,end:Q,min:Re,max:Ue,appointmentTimezoneOffset:st.getOriginStartDateOffsetInMs(A,N,!1)}),Kt=t.settings?1:Ot.length,sn=0;sn<Kt;sn++){var wn=(0,y.l)({},t,!0);if(Ot[sn]){var rn=this._applyStartDateToObj(Ot[sn],{});this._applyEndDateToObj(new Date(Ot[sn].getTime()+se),rn),wn.settings=rn}else wn.settings=D;m.parts.push(wn),i||this._processLongAppointment(wn,m)}m.indexes.push(e)}return m}_processLongAppointment(t,e){var i=this.splitAppointmentByDay(t),r=i.length,m=this.invoke("getEndViewDate").getTime(),D=this.invoke("getStartViewDate").getTime(),A=this.option("timeZoneCalculator");if(e=e||{parts:[]},r>1){(0,y.l)(t,i[0]);for(var N=1;N<r;N++){var Q=Ra_getField(this.option("dataAccessors"),"startDate",i[N].settings).getTime();(Q=A.createDate(Q,{path:"toGrid"}))<m&&Q>D&&e.parts.push(i[N])}}return e}_reduceRecurrenceAppointments(t,e){(0,O.S6)(t,function(i,r){e.splice(r-i,1)})}_combineAppointments(t,e){e.length&&t.push(...e),this._sortAppointmentsByStartDate(t)}_applyStartDateToObj(t,e){return Ra_setField(this.option("dataAccessors"),"startDate",e,t),e}_applyEndDateToObj(t,e){return Ra_setField(this.option("dataAccessors"),"endDate",e,t),e}moveAppointmentBack(t){var e=this._$currentAppointment,i=this._initialSize,r=this._initialCoordinates;t&&(this._removeDragSourceClassFromDraggedAppointment(),(0,w.EY)(t.cancel)?t.cancel.resolve(!0):t.cancel=!0),e&&!t&&(r&&((0,Ms.pB)(e,r),delete this._initialSize),i&&((0,s.Ns)(e,i.width),(0,s.qt)(e,i.height),delete this._initialCoordinates))}focus(){if(this._$currentAppointment){var t=(0,S.u)(this._$currentAppointment);this.option("focusedElement",t),d.Z.trigger(t,"focus")}}splitAppointmentByDay(t){var e=t.settings||t,i=this.option("dataAccessors"),r=new Date(Ra_getField(i,"startDate",e)),m=te.Z.makeDate(r),D=te.Z.makeDate(Ra_getField(i,"endDate",e)),A=this.invoke("getEndViewDate"),N=this.invoke("getStartDayHour"),Q=this.invoke("getEndDayHour"),se=this.option("timeZoneCalculator"),we=Wa(t,i,se),Re=Fk(we),Ue=[];for(m=se.createDate(m,{path:"toGrid"}),D=se.createDate(D,{path:"toGrid"}),m.getHours()<=Q&&m.getHours()>=N&&!Re&&(Ue.push(this._applyStartDateToObj(new Date(m),{appointmentData:t})),m.setDate(m.getDate()+1));Re&&m.getTime()<D.getTime()&&m<A;){var st=new Date(m),Ot=new Date(m);this._checkStartDate(st,r,N),this._checkEndDate(Ot,D,Q);var Kt=(0,Se.HR)({},t,!0),sn={};this._applyStartDateToObj(st,sn),this._applyEndDateToObj(Ot,sn),Kt.settings=sn,Ue.push(Kt),(m=te.Z.trimTime(m)).setDate(m.getDate()+1),m.setHours(N)}return Ue}_checkStartDate(t,e,i){!te.Z.sameDate(t,e)||t.getHours()<=i?t.setHours(i,0,0,0):t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}_checkEndDate(t,e,i){!te.Z.sameDate(t,e)||t.getHours()>i?t.setHours(i,0,0,0):t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}_removeDragSourceClassFromDraggedAppointment(){this._itemElements().filter(".".concat(k6)).each((e,i)=>{(0,l.Z)(i).dxSchedulerAppointment("instance").option("isDragSource",!1)})}_setDragSourceAppointment(t,e){var i=this._findItemElementByItem(t),{startDate:r,endDate:m}=e.info.sourceAppointment,{groupIndex:D}=e;i.forEach(A=>{var{info:N,groupIndex:Q}=A.data(Bp),{startDate:se,endDate:we}=N.sourceAppointment,Re=A.dxSchedulerAppointment("instance"),Ue=r.getTime()===se.getTime()&&m.getTime()===we.getTime()&&D===Q;Re.option("isDragSource",Ue)})}updateResizableArea(){var t=this.$element().find(".dx-scheduler-appointment.dx-resizable"),e=(0,E.h3)(t,i=>{var m=(0,l.Z)(i).dxResizable("instance"),{area:D,handles:A}=m.option();return("right left"===A||"left right"===A)&&(0,w.PO)(D)});(0,O.S6)(e,(i,r)=>{var m=(0,l.Z)(r),D=(0,Ms.jt)(m),A=this._getItemData(m),N=this._calculateResizableArea({left:D.left},A);m.dxResizable("instance").option("area",N)})}}(0,T.Z)("dxSchedulerAppointments",G6);const eoe=G6,$6=class soe{constructor(t){this._renderingStrategy=t}getDropDownAppointmentWidth(t,e){return e||!(0,w.$K)(e)?75*this._renderingStrategy.cellWidth/100:24}getCollectorTopOffset(){return 3}getCollectorLeftOffset(){return 3}getAppointmentDefaultOffset(){return this._renderingStrategy._isCompactTheme()?22:this._renderingStrategy.appointmentOffset}getDynamicAppointmentCountPerCell(){var t=this._renderingStrategy,i=Math.floor((t.cellHeight-t._getAppointmentDefaultOffset())/t._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return t.allDaySupported()?{allDay:"vertical"===t.groupOrientation?i:this._renderingStrategy.appointmentCountPerCell,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:i}getDropDownAppointmentHeight(){}_getAppointmentMinCount(){return 1}_calculateDynamicAppointmentCountPerCell(){return Math.floor(this._renderingStrategy._getAppointmentMaxWidth()/50)}_getAppointmentDefaultWidth(){return 40}},hoe=class coe extends $6{getDropDownAppointmentWidth(t,e){return this.getDropDownButtonAdaptiveSize()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(t){var e=this._renderingStrategy;return e.allDaySupported()&&t?(e.allDayHeight-e.getDropDownButtonAdaptiveSize())/2:this._renderingStrategy.cellHeight-40}getCollectorLeftOffset(){var t=this._renderingStrategy.getDropDownAppointmentWidth();return(this._renderingStrategy.cellWidth-t)/2}getAppointmentDefaultOffset(){return 35}getDynamicAppointmentCountPerCell(){return this._renderingStrategy.allDaySupported()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0}getDropDownAppointmentHeight(){return 28}_getAppointmentMinCount(){return 0}_getAppointmentDefaultWidth(){return this._renderingStrategy.allDaySupported()?30:super._getAppointmentDefaultWidth()}_calculateDynamicAppointmentCountPerCell(){return Math.floor(this._renderingStrategy._getAppointmentMaxWidth()/this._renderingStrategy._getAppointmentDefaultWidth())}};class X6{constructor(t){this.options=t}get DOMMetaData(){return this.options.DOMMetaData}get appointments(){return this.options.dateSettings}get viewDataProvider(){return this.options.viewDataProvider}get positionHelper(){return this.options.positionHelper}get startViewDate(){return this.options.startViewDate}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get cellDuration(){return this.options.cellDuration}get getPositionShift(){return this.options.getPositionShiftCallback}get groupCount(){return this.options.groupCount}get rtlEnabled(){return this.options.rtlEnabled}get isVerticalGrouping(){return this.options.isVerticalGroupOrientation}get showAllDayPanel(){return this.options.showAllDayPanel}get supportAllDayRow(){return this.options.supportAllDayRow}get isGroupedAllDayPanel(){return this.options.isGroupedAllDayPanel}get isVirtualScrolling(){return!1}calculateCellPositions(t,e,i){var r=[];return this.appointments.forEach((m,D)=>{this.getCoordinateInfos({appointment:m,groupIndices:t,isAllDayRowAppointment:e,isRecurrentAppointment:i}).forEach(N=>{N&&r.push(this._prepareObject(N,D))})}),r}getCoordinateInfos(t){var{appointment:e,isAllDayRowAppointment:i,groupIndices:r,recurrent:m}=t,{startDate:D}=e;return this.getCoordinatesByDateInGroup(D,r,i,m?void 0:e.source.groupIndex)}_prepareObject(t,e){return t.dateSettingIndex=e,{coordinates:t,dateSettingIndex:e}}getCoordinatesByDate(t,e,i){var r=e||0,D=this.viewDataProvider.findCellPositionInMap({groupIndex:r,startDate:t,isAllDay:i});if(D){var A=this.getCellPosition(D,i&&!this.isVerticalGrouping),N=i?0:this.getTimeShift(t),Q=this.getPositionShift(N,i),se=this.positionHelper.getHorizontalMax(r,t),we=this.positionHelper.getVerticalMax({groupIndex:r,isVirtualScrolling:this.isVirtualScrolling,showAllDayPanel:this.showAllDayPanel,supportAllDayRow:this.supportAllDayRow,isGroupedAllDayPanel:this.isGroupedAllDayPanel,isVerticalGrouping:this.isVerticalGrouping});return{positionByMap:D,cellPosition:A.left+Q.cellPosition,top:A.top+Q.top,left:A.left+Q.left,rowIndex:A.rowIndex,columnIndex:A.columnIndex,hMax:se,vMax:we,groupIndex:r}}}getCoordinatesByDateInGroup(t,e,i,r){var m=[];if(this.viewDataProvider.isSkippedDate(t))return m;var D=[r];return(0,w.$K)(r)||(D=this.groupCount?e:[0]),D.forEach(A=>{var N=this.getCoordinatesByDate(t,A,i);N&&m.push(N)}),m}getCellPosition(t,e){var{dateTableCellsMeta:i,allDayPanelCellsMeta:r}=this.DOMMetaData,{columnIndex:m,rowIndex:D}=t,A=e?r[m]:i[D][m],N=(0,di.Z)({},A);return this.rtlEnabled&&(N.left+=A.width),N&&(N.rowIndex=t.rowIndex,N.columnIndex=t.columnIndex),N}getTimeShift(t){var e=new Date(t),i=new Date(new Date(t).setHours(this.viewEndDayHour,0,0));t.getTime()<=i.getTime()&&e.setHours(this.viewStartDayHour,0,0,0);var r=te.Z.getTimezonesDifference(t,e),m=t.getTime(),D=e.getTime();return m>this.startViewDate.getTime()?(m-D+r)%this.cellDuration/this.cellDuration:0}}class poe extends X6{get isVirtualScrolling(){return!0}calculateCellPositions(t,e,i){var r=e?this.appointments:this.appointments.filter(m=>{var{source:D,startDate:A,endDate:N}=m;return this.viewDataProvider.isGroupIntersectDateInterval(D.groupIndex,A,N)});return i?this.createRecurrentAppointmentInfos(r,e):super.calculateCellPositions(t,e,i)}createRecurrentAppointmentInfos(t,e){var i=[];return t.forEach((r,m)=>{var{source:D,startDate:A}=r,N=this.getCoordinatesByDate(A,D.groupIndex,e);N&&i.push(this._prepareObject(N,m))}),i}}class goe{constructor(t){this.options=t}calculateCellPositions(t,e,i){return(this.options.isVirtualScrolling?new poe(this.options):new X6(this.options)).calculateCellPositions(t,e,i)}}var foe={timelineDay:!0,timelineWeek:!0,timelineWorkWeek:!0,timelineMonth:!0},q6=(n,t,e,i)=>i>0?te.Z.dateInRange(n,t,new Date(e.getTime()-1)):te.Z.dateInRange(n,e,t,"date"),zf=(n,t)=>{var e=new Date(n);return(0,w.$K)(t)&&e.setHours(t,t%1*60,0,0),e},mT=(n,t,e,i)=>{if(!n)return new Date(t);for(var r=te.Z.trimTime(i),m=r.getTime()<=t.getTime()?1:-1,D=new Date(r.getTime()+e*m);!q6(t,r,D,m);)r=D,D=new Date(r.getTime()+e*m);return m>0?r:D},J6=n=>(0,w.$K)(n)?n:zo.Z.firstDayOfWeekIndex(),Q6=(n,t)=>{var e=ia.getDateWithoutTimezoneChange(n);return e.setHours(t),e},Vk=(n,t)=>{if(n>=t)throw Hs.Z.Error("E1058")},e4=(n,t)=>{var e=Math.floor(t);return ia.isTimezoneChangeInDate(n)&&e!==n.getHours()?te.Z.dateToMilliseconds("hour"):0},Nk=n=>zo.Z.getDayNames("abbreviated")[n.getDay()],_T=n=>"".concat(Nk(n)," ").concat(zo.Z.format(n,"day")),t4=(n,t)=>{var e=n??new Date;return t?.createDate(e,{path:"toGrid"})||e},n4=n=>{switch(n?.length){case 1:return fT[0];case 2:return fT[1];case 3:return fT[2];default:return}},Q0=n=>n!==rs.TIMELINE_MONTH&&n!==rs.MONTH,Hk=n=>!!foe[n],zk=(n,t)=>{var e=Lp(n)||1;return dT(n,t)?1:e},i4=(n,t,e)=>dT(n,t)&&e,Wk=(n,t)=>t-n,r4=n=>{switch(n){case rs.TIMELINE_DAY:case rs.TIMELINE_WEEK:case rs.TIMELINE_WORK_WEEK:case rs.TIMELINE_MONTH:case rs.MONTH:return!0;default:return!1}},Uk=n=>n[n.length-1].length,o4=n=>n.length,a4=(n,t)=>n??Uk(t),Zk=(n,t)=>n??o4(t),s4=(n,t,e,i)=>{switch(n){case"month":return 36e5*Wk(t,e);case"timelineMonth":return te.Z.dateToMilliseconds("day");default:return 36e5*i}},l4=(n,t,e,i)=>e?"DATE":i&&te.Z.sameDate(n,t)?"TIME":"DATETIME",u4=(n,t,e)=>{var i=n.getDate()===t.getDate();switch(e){case"DATETIME":return[zo.Z.format(n,"monthandday")," ",zo.Z.format(n,"shorttime")," - ",i?"":zo.Z.format(t,"monthandday")+" ",zo.Z.format(t,"shorttime")].join("");case"TIME":return"".concat(zo.Z.format(n,"shorttime")," - ").concat(zo.Z.format(t,"shorttime"));case"DATE":return"".concat(zo.Z.format(n,"monthandday")).concat(i?"":" - "+zo.Z.format(t,"monthandday"))}},e_=te.Z.dateToMilliseconds;class d4{constructor(t){this.options=t}get rawAppointment(){return this.options.rawAppointment}get timeZoneCalculator(){return this.options.timeZoneCalculator}get viewDataProvider(){return this.options.viewDataProvider}get appointmentTakesAllDay(){return this.options.appointmentTakesAllDay}get supportAllDayRow(){return this.options.supportAllDayRow}get isAllDayRowAppointment(){return this.options.isAllDayRowAppointment}get timeZone(){return this.options.timeZone}get dateRange(){return this.options.dateRange}get firstDayOfWeek(){return this.options.firstDayOfWeek}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get endViewDate(){return this.options.endViewDate}get viewType(){return this.options.viewType}get isGroupedByDate(){return this.options.isGroupedByDate}get isVerticalOrientation(){return this.options.isVerticalGroupOrientation}get dataAccessors(){return this.options.dataAccessors}get loadedResources(){return this.options.loadedResources}get isDateAppointment(){return!Q0(this.viewType)&&this.appointmentTakesAllDay}getIntervalDuration(){return this.appointmentTakesAllDay?this.options.allDayIntervalDuration:this.options.intervalDuration}generate(t){var e=this._getGroupIndices(this.rawAppointment),i=this._createAppointments(t,e);i=this._getProcessedByAppointmentTimeZone(i,t),this._canProcessNotNativeTimezoneDates(t)&&(i=this._getProcessedNotNativeTimezoneDates(i,t));var r=this._createGridAppointmentList(i,t),m=this._getAppointmentsFirstViewDate(r);this._fillNormalizedStartDate(r,m),r=this._cropAppointmentsByStartDayHour(r,m,this.rawAppointment),r=this._fillNormalizedEndDate(r,this.rawAppointment),this._needSeparateLongParts()&&(r=this._separateLongParts(r,t));var{isRecurrent:D}=t;return{dateSettings:r,itemGroupIndices:e,isRecurrent:D}}_getProcessedByAppointmentTimeZone(t,e){if(!(0,w.Qr)(e.startDateTimeZone)||!(0,w.Qr)(e.endDateTimeZone)){var r={startDate:this.timeZoneCalculator.getOffsets(e.startDate,e.startDateTimeZone),endDate:this.timeZoneCalculator.getOffsets(e.endDate,e.endDateTimeZone)};t.forEach(m=>{var D=this.timeZoneCalculator.getOffsets(m.startDate,e.startDateTimeZone),A=this.timeZoneCalculator.getOffsets(m.endDate,e.endDateTimeZone),N=r.startDate.appointment-D.appointment,Q=r.endDate.appointment-A.appointment;D.appointment!==D.common&&(m.startDate=new Date(m.startDate.getTime()+N*e_("hour"))),A.appointment!==A.common&&(m.endDate=new Date(m.endDate.getTime()+Q*e_("hour")))})}return t}_createAppointments(t,e){var i=this._createRecurrenceAppointments(t,e);return!t.isRecurrent&&0===i.length&&i.push({startDate:t.startDate,endDate:t.endDate}),i.map(r=>{var m,D=null===(m=r.endDate)||void 0===m?void 0:m.getTime();return r.startDate.getTime()===D&&r.endDate.setTime(D+e_("minute")),(0,di.Z)({},r,{exceptionDate:new Date(r.startDate)})})}_canProcessNotNativeTimezoneDates(t){return!((0,w.Qr)(this.timeZone)||!t.isRecurrent||ia.isEqualLocalTimeZone(this.timeZone,t.startDate))}_getProcessedNotNativeDateIfCrossDST(t,e){if(e<0){var i=new Date(t),r=new Date(i);if(r.setHours(r.getHours()-1),this.timeZoneCalculator.getOffsets(i).common!==this.timeZoneCalculator.getOffsets(r).common)return 0}return e}_getCommonOffset(t){return this.timeZoneCalculator.getOffsets(t).common}_getProcessedNotNativeTimezoneDates(t,e){return t.map(i=>{var r=this._getCommonOffset(e.startDate)-this._getCommonOffset(i.startDate),m=this._getCommonOffset(e.endDate)-this._getCommonOffset(i.endDate);if(0===r&&0===m)return i;r=this._getProcessedNotNativeDateIfCrossDST(i.startDate,r),m=this._getProcessedNotNativeDateIfCrossDST(i.endDate,m);var D=new Date(i.startDate.getTime()+r*e_("hour")),A=new Date(i.endDate.getTime()+m*e_("hour")),N=this.timeZoneCalculator.createDate(D,{path:"toGrid"}),Q=this.timeZoneCalculator.createDate(A,{path:"toGrid"});return e.duration>Q.getTime()-N.getTime()&&(A=new Date(D.getTime()+e.duration)),(0,di.Z)({},i,{startDate:D,endDate:A,exceptionDate:new Date(D)})})}_needSeparateLongParts(){return this.isVerticalOrientation?this.isGroupedByDate:this.isGroupedByDate&&this.appointmentTakesAllDay}normalizeEndDateByViewEnd(t,e){var i=new Date(e.getTime());if(!Q0(this.viewType)||!this.appointmentTakesAllDay){var m=te.Z.roundToHour(this.endViewDate);i>m&&(i=m)}var D=this.viewEndDayHour,A=Ra_getField(this.dataAccessors,"allDay",t),N=new Date(new Date(e.getTime()).setHours(D,0,0,0));return(i.getTime()>N.getTime()||A&&i.getHours()<D)&&(i=N),i}_fillNormalizedEndDate(t,e){return t.map(i=>{var{endDate:r}=i,m=this.normalizeEndDateByViewEnd(e,r);return(0,di.Z)({},i,{normalizedEndDate:m})})}_separateLongParts(t,e){var i=[];return t.forEach(r=>{var m=new Date(this.dateRange[1]),{normalizedEndDate:D}=r,N=te.Z.getDatesOfInterval(r.startDate,D,{milliseconds:this.getIntervalDuration(this.appointmentTakesAllDay)}).filter(Q=>new Date(Q)<m).map(Q=>{var se=new Date(new Date(Q).setMilliseconds(e.duration));return{startDate:Q,endDate:se,normalizedEndDate:this.normalizeEndDateByViewEnd(this.rawAppointment,se),source:r.source}});i=i.concat(N)}),i}_createGridAppointmentList(t,e){return t.map(i=>{var r=e.startDate.getTimezoneOffset()-i.startDate.getTimezoneOffset();return 0!==r&&this._canProcessNotNativeTimezoneDates(e)&&(i.startDate=new Date(i.startDate.getTime()+r*e_("minute")),i.endDate=new Date(i.endDate.getTime()+r*e_("minute")),i.exceptionDate=new Date(i.startDate)),{startDate:this.timeZoneCalculator.createDate(i.startDate,{path:"toGrid"}),endDate:this.timeZoneCalculator.createDate(i.endDate,{path:"toGrid"}),allDay:e.allDay||!1,source:i}})}_createExtremeRecurrenceDates(){var t=this.appointmentTakesAllDay?te.Z.trimTime(this.dateRange[0]):this.dateRange[0],e=this.dateRange[1];if(this.timeZone){t=this.timeZoneCalculator.createDate(t,{path:"fromGrid"}),e=this.timeZoneCalculator.createDate(e,{path:"fromGrid"});var i=ia.getDaylightOffsetInMs(t,e);i&&(e=new Date(e.getTime()+i))}return[t,e]}_createRecurrenceOptions(t,e){var[i,r]=this._createExtremeRecurrenceDates(e);return{rule:t.recurrenceRule,exception:t.recurrenceException,min:i,max:r,firstDayOfWeek:this.firstDayOfWeek,start:t.startDate,end:t.endDate,appointmentTimezoneOffset:this.timeZoneCalculator.getOriginStartDateOffsetInMs(t.startDate,t.rawAppointment.startDateTimeZone,!0),getPostProcessedException:m=>{if((0,w.Qr)(this.timeZone)||ia.isEqualLocalTimeZone(this.timeZone,m))return m;var N=this.timeZoneCalculator.getOffsets(t.startDate).common-this.timeZoneCalculator.getOffsets(m).common;return N=this._getProcessedNotNativeDateIfCrossDST(m,N),new Date(m.getTime()-N*te.Z.dateToMilliseconds("hour"))}}}_createRecurrenceAppointments(t,e){var{duration:i}=t,r=this._createRecurrenceOptions(t);return Dh().generateDates(r).map(D=>{var A=ia.createUTCDateWithLocalOffset(D);A.setTime(A.getTime()+i);var N=ia.createDateFromUTCWithLocalOffset(A);return{startDate:new Date(D),endDate:N}})}_getAppointmentsFirstViewDate(t){return t.map(e=>this._getAppointmentFirstViewDate(e))}_fillNormalizedStartDate(t,e,i){t.forEach((r,m)=>{r.startDate=this._getAppointmentResultDate({appointment:r,rawAppointment:i,startDate:new Date(r.startDate),startDayHour:this.viewStartDayHour,firstViewDate:e[m]})})}_cropAppointmentsByStartDayHour(t,e){return t.filter((i,r)=>!!e[r]&&(!!this.appointmentTakesAllDay||i.endDate>i.startDate))}_getAppointmentResultDate(t){var D,{appointment:e,startDayHour:i,firstViewDate:r}=t,{startDate:m}=t;return this.appointmentTakesAllDay?D=te.Z.normalizeDate(m,r):(m<r&&(m=r),D=te.Z.normalizeDate(e.startDate,m)),this.isDateAppointment?D:te.Z.roundDateByStartDayHour(D,i)}_getAppointmentFirstViewDate(t){var e=t.source.groupIndex||0,{startDate:i,endDate:r}=t;return this.isAllDayRowAppointment||t.allDay?this.viewDataProvider.findAllDayGroupCellStartDate(e,i):this.viewDataProvider.findGroupCellStartDate(e,i,r,this.isDateAppointment)}_getGroupIndices(t){var e=[];if(t&&this.loadedResources.length){var i=dw(this.loadedResources);e=Dk((r,m)=>sT(this.options.dataAccessors.resources,r,m),i,t)}return e}}class xoe extends d4{get groupCount(){return Lp(this.loadedResources)}_createRecurrenceAppointments(t,e){var{duration:i}=t,r=[];return(this.groupCount?e:[0]).forEach(D=>{var A=this._createRecurrenceOptions(t,D),Q=Dh().generateDates(A).map(se=>{var we=new Date(se),Re=ia.createUTCDateWithLocalOffset(se);return Re.setTime(Re.getTime()+i),{startDate:we,endDate:ia.createDateFromUTCWithLocalOffset(Re),groupIndex:D}});r.push(...Q)}),r}_updateGroupIndices(t,e){var i=[];return e.forEach(r=>{this.viewDataProvider.getGroupStartDate(r)&&t.forEach(D=>{var A=(0,y.l)({},D);A.groupIndex=r,i.push(A)})}),i}_getGroupIndices(t){var e,i=super._getGroupIndices(t),r=this.viewDataProvider.getGroupIndices();return null!==(e=i)&&void 0!==e&&e.length||(i=[0]),i.filter(m=>-1!==r.indexOf(m))}_createAppointments(t,e){var i=super._createAppointments(t,e);return t.isRecurrent?i:this._updateGroupIndices(i,e)}}class boe{constructor(t){this.options=t,this.appointmentAdapter=Wa(this.rawAppointment,this.dataAccessors,this.timeZoneCalculator)}get rawAppointment(){return this.options.rawAppointment}get dataAccessors(){return this.options.dataAccessors}get timeZoneCalculator(){return this.options.timeZoneCalculator}get isAllDayRowAppointment(){return this.options.appointmentTakesAllDay&&this.options.supportAllDayRow}get groups(){return this.options.groups}get dateSettingsStrategy(){var t=(0,di.Z)({},this.options,{isAllDayRowAppointment:this.isAllDayRowAppointment});return this.options.isVirtualScrolling?new xoe(t):new d4(t)}create(){var{dateSettings:t,itemGroupIndices:e,isRecurrent:i}=this._generateDateSettings(),r=this._calculateCellPositions(t,e);return this._prepareAppointmentInfos(t,r,i)}_generateDateSettings(){return this.dateSettingsStrategy.generate(this.appointmentAdapter)}_calculateCellPositions(t,e){return new goe((0,di.Z)({},this.options,{dateSettings:t})).calculateCellPositions(e,this.isAllDayRowAppointment,this.appointmentAdapter.isRecurrent)}_prepareAppointmentInfos(t,e,i){var r=[];return e.forEach(m=>{var{coordinates:D,dateSettingIndex:A}=m,N=t[A],Q=this._getAppointmentDateText(N);r.push((0,di.Z)({},D,{info:{appointment:N,sourceAppointment:N.source,dateText:Q,isRecurrent:i}}))}),r}_getAppointmentDateText(t){var{startDate:e,endDate:i,allDay:r}=t;return(n=>{var{startDate:t,endDate:e,allDay:i,format:r}=n,m=r||l4(t,e,i);return u4(t,e,m)})({startDate:e,endDate:i,allDay:r,format:"TIME"})}}var c4=(n,t)=>(t.getTime()-n.getTime())/te.Z.dateToMilliseconds("hour"),Dy=(n,t,e,i)=>{var r=()=>n.allDay;switch(i){case"hidden":return!1;case"allDay":return r();default:if(r())return!0;var{endDate:m,startDate:D}=n;return!!(0,w.$K)(m)&&(c4(D,m)>=24||((n,t,e,i)=>{var r=c4(n,t),m=i-e,D=n.getHours(),A=t.getHours();return r>=m&&D===e&&A===i})(D,m,t,e))}},vT=te.Z.dateToMilliseconds;const Kk=class Moe{constructor(t){this.options=t,this._initPositioningStrategy()}get isAdaptive(){return this.options.adaptivityEnabled}get rtlEnabled(){return this.options.rtlEnabled}get startDayHour(){return this.options.startDayHour}get endDayHour(){return this.options.endDayHour}get maxAppointmentsPerCell(){return this.options.maxAppointmentsPerCell}get cellWidth(){return this.options.cellWidth}get cellHeight(){return this.options.cellHeight}get allDayHeight(){return this.options.allDayHeight}get resizableStep(){return this.options.resizableStep}get isGroupedByDate(){return this.options.isGroupedByDate}get visibleDayDuration(){return this.options.visibleDayDuration}get viewStartDayHour(){return this.options.viewStartDayHour}get viewEndDayHour(){return this.options.viewEndDayHour}get cellDuration(){return this.options.cellDuration}get cellDurationInMinutes(){return this.options.cellDurationInMinutes}get leftVirtualCellCount(){return this.options.leftVirtualCellCount}get topVirtualCellCount(){return this.options.topVirtualCellCount}get positionHelper(){return this.options.positionHelper}get showAllDayPanel(){return this.options.showAllDayPanel}get isGroupedAllDayPanel(){return this.options.isGroupedAllDayPanel}get groupOrientation(){return this.options.groupOrientation}get rowCount(){return this.options.rowCount}get groupCount(){return this.options.groupCount}get currentDate(){return this.options.currentDate}get appointmentCountPerCell(){return this.options.appointmentCountPerCell}get appointmentOffset(){return this.options.appointmentOffset}get allowResizing(){return this.options.allowResizing}get allowAllDayResizing(){return this.options.allowAllDayResizing}get viewDataProvider(){return this.options.viewDataProvider}get dataAccessors(){return this.options.dataAccessors}get timeZoneCalculator(){return this.options.timeZoneCalculator}get intervalCount(){return this.options.intervalCount}get allDayPanelMode(){return this.options.allDayPanelMode}get isVirtualScrolling(){return this.options.isVirtualScrolling}_correctCollectorCoordinatesInAdaptive(t,e){t.top=t.top+this.getCollectorTopOffset(e),t.left=t.left+this.getCollectorLeftOffset()}_initPositioningStrategy(){this._positioningStrategy=this.isAdaptive?new hoe(this):new $6(this)}getPositioningStrategy(){return this._positioningStrategy}getAppointmentMinSize(){return 2}keepAppointmentSettings(){return!1}getDeltaTime(){}getAppointmentGeometry(t){return t}needCorrectAppointmentDates(){return!0}getDirection(){return"horizontal"}createTaskPositionMap(t){delete this._maxAppointmentCountPerCell;var e=t?.length;if(e){for(var i=[],r=0;r<e;r++){var m=this._getItemPosition(t[r]);m.length&&this.rtlEnabled&&(m=this._correctRtlCoordinates(m)),m.forEach(N=>{N.leftVirtualCellCount=this.leftVirtualCellCount,N.topVirtualCellCount=this.topVirtualCellCount,N.leftVirtualWidth=this.leftVirtualCellCount*this.cellWidth,N.topVirtualHeight=this.topVirtualCellCount*this.cellHeight}),i.push(m)}var D=this._getSortedPositions(i),A=this._getResultPositions(D);return this._getExtendedPositionMap(i,A)}}_getDeltaWidth(t,e){var i=this.resizableStep||this.getAppointmentMinSize();return Math.round((t.width-e.width)/i)}_correctRtlCoordinates(t){var e=t[0].width||this._getAppointmentMaxWidth();return t.forEach(i=>{i.appointmentReduced||(i.left-=e)}),t}_getAppointmentMaxWidth(){return this.cellWidth}_getItemPosition(t){for(var e=this.generateAppointmentSettings(t),i=this.isAllDay(t),r=[],m=0;m<e.length;m++){var D=this.calculateAppointmentHeight(t,e[m]),A=this.calculateAppointmentWidth(t,e[m]),N=A,Q=null,se=[],we=e[m].rowIndex,Re=e[m].columnIndex;if(this._needVerifyItemSize()||i){var Ue=e[m].hMax;this.isAppointmentGreaterThan(Ue,{left:e[m].left,width:A})&&(Q="head",we=e[m].rowIndex,Re=e[m].columnIndex,N=this._reduceMultiWeekAppointment(A,{left:e[m].left,right:Ue}),se=this._getAppointmentParts({sourceAppointmentWidth:A,reducedWidth:N,height:D},e[m]),this.rtlEnabled&&(e[m].left=Ue))}(0,y.l)(e[m],{height:D,width:N,allDay:i,rowIndex:we,columnIndex:Re,appointmentReduced:Q}),r=this._getAppointmentPartsPosition(se,e[m],r)}return r}_getAppointmentPartsPosition(t,e,i){return t.length?(t.unshift(e),i=i.concat(t)):i.push(e),i}getAppointmentSettingsGenerator(t){return new boe((0,di.Z)({rawAppointment:t,appointmentTakesAllDay:this.isAppointmentTakesAllDay(t),getPositionShiftCallback:this.getPositionShift.bind(this)},this.options))}generateAppointmentSettings(t){return this.getAppointmentSettingsGenerator(t).create()}isAppointmentTakesAllDay(t){var e=Wa(t,this.dataAccessors,this.timeZoneCalculator);return Dy(e,this.viewStartDayHour,this.viewEndDayHour,this.allDayPanelMode)}_getAppointmentParts(){return[]}_getCompactAppointmentParts(t){var e=this.cellWidth||this.getAppointmentMinSize();return Math.round(t/e)}_reduceMultiWeekAppointment(t,e){return this.rtlEnabled?Math.floor(e.left-e.right):e.right-Math.floor(e.left)}calculateAppointmentHeight(){return 0}calculateAppointmentWidth(){return 0}isAppointmentGreaterThan(t,e){var i=e.left+e.width-t;return this.rtlEnabled&&(i=t+e.width-e.left),i>this.cellWidth/2}isAllDay(){return!1}cropAppointmentWidth(t,e){return this.isGroupedByDate?e:t}_getSortedPositions(t){for(var e=[],i=Ot=>Math.round(100*Ot)/100,m=0,D=t.length;m<D;m++)for(var A=0,N=t[m].length;A<N;A++){var{top:Q,left:se,height:we,width:Re,cellPosition:Ue,allDay:st}=t[m][A];e.push((wn=se,rn=Q+we,Ft=se+Re,qt=Ue,un=st,{i:m,j:A,top:i(Q),left:i(wn),bottom:i(rn),right:i(Ft),cellPosition:qt,allDay:un}))}var wn,rn,Ft,qt,un;return e.sort((Ot,Kt)=>this._sortCondition(Ot,Kt))}_sortCondition(){}_getConditions(t,e){var i=this._isSomeEdge(t,e);return{columnCondition:i||this._normalizeCondition(t.left,e.left),rowCondition:i||this._normalizeCondition(t.top,e.top),cellPositionCondition:i||this._normalizeCondition(t.cellPosition,e.cellPosition)}}_rowCondition(t,e){var i=this._getConditions(t,e);return i.columnCondition||i.rowCondition}_columnCondition(t,e){var i=this._getConditions(t,e);return i.rowCondition||i.columnCondition}_isSomeEdge(t,e){return t.i===e.i&&t.j===e.j}_normalizeCondition(t,e){var i=t-e;return Math.abs(i)>1?i:0}_isItemsCross(t,e){if(!!t.allDay==!!e.allDay){var m=this._getOrientation(t.allDay&&e.allDay);return this._checkItemsCrossing(t,e,m)}return!1}_checkItemsCrossing(t,e,i){var r=Math.floor(t[i[0]]),m=Math.floor(t[i[1]]),D=Math.ceil(e[i[0]]),A=Math.ceil(e[i[1]]);return Math.abs(t[i[2]]-e[i[2]])<=1&&(r<=D&&m>D||r<A&&m>=A||r===D&&m===A)}_getOrientation(t){return t?["left","right","top"]:["top","bottom","left"]}_getResultPositions(t){var i,m,D,A,e=[],r=0,N=0,Q={},se=(st,Ot)=>st.some(sn=>sn===Ot)?se(st,++Ot):Ot,we=(st,Ot)=>{var Kt=Ot||0;return{index:Kt,i:st.i,j:st.j,left:st.left,right:st.right,top:st.top,bottom:st.bottom,allDay:st.allDay,sortedIndex:this._skipSortedIndex(Kt)?null:r++}},Re=st=>{Q.items=[we(st)],Q.left=st.left,Q.right=st.right,Q.top=st.top,Q.bottom=st.bottom,Q.allDay=st.allDay},Ue=st=>{st.forEach(Ot=>{e.push({index:Ot.index,count:N+1,i:Ot.i,j:Ot.j,sortedIndex:Ot.sortedIndex})})};for(i=0;i<t.length;i++)m=t[i],D=[],Q.items?this._isItemsCross(Q,m)?(Q.items.forEach((st,Ot)=>{this._isItemsCross(st,m)&&D.push(st.index)}),A=D.length?se(D,0):0,Q.items.push(we(m,A)),N=Math.max(A,N),Q.left=Math.min(Q.left,m.left),Q.right=Math.max(Q.right,m.right),Q.top=Math.min(Q.top,m.top),Q.bottom=Math.max(Q.bottom,m.bottom),Q.allDay=m.allDay):(Ue(Q.items),Q={},Re(m),N=0):Re(m);return Q.items&&Ue(Q.items),e.sort(function(st,Ot){return st.i-Ot.i||st.j-Ot.j})}_skipSortedIndex(t){return t>this._getMaxAppointmentCountPerCell()-1}_findIndexByKey(t,e,i,r,m){for(var D=0,A=0,N=t.length;A<N;A++)if(t[A][e]===r&&t[A][i]===m){D=A;break}return D}_getExtendedPositionMap(t,e){for(var i=0,r=[],m=0,D=t.length;m<D;m++){for(var A=[],N=0,Q=t[m].length;N<Q;N++)t[m][N].index=e[i].index,t[m][N].sortedIndex=e[i].sortedIndex,t[m][N].count=e[i++].count,A.push(t[m][N]),this._checkLongCompactAppointment(t[m][N],A);r.push(A)}return r}_checkLongCompactAppointment(t,e){return this._splitLongCompactAppointment(t,e),e}_splitLongCompactAppointment(t,e){var i=this._getMaxAppointmentCountPerCellByType(t.allDay),r=0;if(void 0!==i&&t.index>i-1){t.isCompact=!0,r=this._getCompactAppointmentParts(t.width);for(var m=1;m<r;m++){var D=(0,y.l)(!0,{},t);D.left=this._getCompactLeftCoordinate(t.left,m),D.columnIndex=D.columnIndex+m,D.sortedIndex=null,e.push(D)}}return e}_adjustDurationByDaylightDiff(t,e,i){var r=ia.getDaylightOffset(e,i);return this._needAdjustDuration(r)?this._calculateDurationByDaylightDiff(t,r):t}_needAdjustDuration(t){return 0!==t}_calculateDurationByDaylightDiff(t,e){return t+e*vT("minute")}_getCollectorLeftOffset(t){if(t||!this.isApplyCompactAppointmentOffset())return 0;var e=this.getDropDownAppointmentWidth(this.intervalCount,t),i=this._isCompactTheme()?1:5;return this.cellWidth-e-i}_markAppointmentAsVirtual(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this._getMaxAppointmentCountPerCellByType(e);if(t.count-i>0){var{top:r,left:m}=t,D=this.isAdaptive||!e&&this.supportCompactDropDownAppointments();t.virtual={left:m+this._getCollectorLeftOffset(e),top:r,width:this.getDropDownAppointmentWidth(this.intervalCount,e),height:this.getDropDownAppointmentHeight(),index:this._generateAppointmentCollectorIndex(t,e),isAllDay:e,groupIndex:t.groupIndex,isCompact:D}}}isApplyCompactAppointmentOffset(){return this.supportCompactDropDownAppointments()}supportCompactDropDownAppointments(){return!0}_generateAppointmentCollectorIndex(t,e){var{groupIndex:i,rowIndex:r,columnIndex:m}=t;return"".concat(i,"-").concat(r,"-").concat(m,"-").concat(e)}_getMaxAppointmentCountPerCellByType(t){var e=this._getMaxAppointmentCountPerCell();return(0,w.Kn)(e)?t?e.allDay:e.simple:e}getDropDownAppointmentWidth(t,e){return this.getPositioningStrategy().getDropDownAppointmentWidth(t,e)}getDropDownAppointmentHeight(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}getDropDownButtonAdaptiveSize(){return 28}getCollectorTopOffset(t){return this.getPositioningStrategy().getCollectorTopOffset(t)}getCollectorLeftOffset(){return this.getPositioningStrategy().getCollectorLeftOffset()}getAppointmentDataCalculator(){}getVerticalAppointmentHeight(t,e,i){var r=i;if((0,w.kE)(this.maxAppointmentsPerCell)){var m=this._getDynamicAppointmentCountPerCell(),A=Math.max(e,m.allDay||m);r=Math.min(A,i)}return t/r}_customizeCoordinates(t,e,i,r,m){var{index:D,count:A}=t,N=this.getVerticalAppointmentHeight(e,A,i),se=t.top+D*N+r,we=t.width,Re=t.left;return t.isCompact&&(this.isAdaptive&&this._correctCollectorCoordinatesInAdaptive(t,m),this._markAppointmentAsVirtual(t,m)),{height:N,width:we,top:se,left:Re,empty:this._isAppointmentEmpty(e,we)}}_isAppointmentEmpty(t,e){return t<this._getAppointmentMinHeight()||e<this._getAppointmentMinWidth()}_calculateGeometryConfig(t){var e=this.maxAppointmentsPerCell,i=this._getOffsets(),r=this._getAppointmentDefaultOffset(),m=this._getAppointmentCount(e,t),D=this._getDefaultRatio(t,m),A=this._getMaxHeight();(0,w.kE)(m)||(m=t.count,D=(A-i.unlimited)/A);var N=(1-D)*A;return("auto"===e||(0,w.kE)(e))&&(D=1,A-=r,N=r),{height:D*A,appointmentCountPerCell:m,offset:N}}_getAppointmentCount(){}_getDefaultRatio(){}_getOffsets(){}_getMaxHeight(){}_needVerifyItemSize(){return!1}_getMaxAppointmentCountPerCell(){if(!this._maxAppointmentCountPerCell){var e,t=this.maxAppointmentsPerCell;(0,w.kE)(t)&&(e=t),"auto"===t&&(e=this._getDynamicAppointmentCountPerCell()),"unlimited"===t&&(e=void 0),this._maxAppointmentCountPerCell=e}return this._maxAppointmentCountPerCell}_getDynamicAppointmentCountPerCell(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}allDaySupported(){return!1}_isCompactTheme(){return"compact"===((0,z.Vk)()||"").split(".").pop()}_getAppointmentDefaultOffset(){return this.getPositioningStrategy().getAppointmentDefaultOffset()}_getAppointmentDefaultHeight(){return this._getAppointmentHeightByTheme()}_getAppointmentMinHeight(){return this._getAppointmentDefaultHeight()}_getAppointmentHeightByTheme(){return this._isCompactTheme()?18:20}_getAppointmentDefaultWidth(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()}_getAppointmentMinWidth(){return this._getAppointmentDefaultWidth()}_needVerticalGroupBounds(){return!1}_needHorizontalGroupBounds(){return!1}getAppointmentDurationInMs(t,e,i){if(i){var r=e.getTime()-t.getTime();return Math.ceil(r/vT("day"))*this.visibleDayDuration}var D=vT("hour"),A=te.Z.trimTime(t),N=te.Z.trimTime(e),se=(N-A)/vT("day")+1,we=this.endDayHour-this.startDayHour,Re=we*se,st=Math.max(0,(t-A)/D-this.startDayHour),Ot=Math.max(0,(e-N)/D-this.startDayHour);return(Re-(st+Math.max(0,we-Ot)))*D}getPositionShift(t,e){return{top:t*this.cellHeight,left:0,cellPosition:0}}},h4=(n,t,e)=>{for(var i=te.Z.dateToMilliseconds("hour"),r=te.Z.trimTime(n).getTime(),m=te.Z.setToDayEnd(new Date(t.getTime()-1)).getTime(),D=24*i,A=0,N=r;N<m;N+=D){var Q=new Date(N);e.isSkippedDate(Q)&&(A+=24)}return A};var yT=te.Z.dateToMilliseconds;const p4=class Roe extends Kk{getDeltaTime(t,e,i){var r=0;if(this.isAllDay(i))r=this._getDeltaWidth(t,e)*yT("day");else{var m=t.height-e.height;r=yT("minute")*Math.round(m/this.cellHeight*this.cellDurationInMinutes)}return r}_correctCollectorCoordinatesInAdaptive(t,e){if(e)super._correctCollectorCoordinatesInAdaptive(t,e);else if(0===this._getMaxAppointmentCountPerCellByType()){var r=this.cellWidth;t.top+=(this.cellHeight-this.getDropDownButtonAdaptiveSize())/2,t.left+=(r-this.getDropDownButtonAdaptiveSize())/2}}getAppointmentGeometry(t){var e;return e=t.allDay?this._getAllDayAppointmentGeometry(t):this.isAdaptive&&t.isCompact?this._getAdaptiveGeometry(t):this._getVerticalAppointmentGeometry(t),super.getAppointmentGeometry(e)}_getAdaptiveGeometry(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}_getItemPosition(t){var e=this.isAllDay(t);if(e)return super._getItemPosition(t);for(var i=Wa(t,this.dataAccessors,this.timeZoneCalculator),r=!!i.recurrenceRule,m=i.calculateStartDate("toGrid"),D=i.calculateEndDate("toGrid"),A=D-m,N=this.options.startViewDate<m,Q=!ia.isSameAppointmentDates(m,D),se=this.generateAppointmentSettings(t),we=[],Re=0;Re<se.length;Re++){var Ue=se[Re],st=this.calculateAppointmentHeight(t,Ue),Ot=this.calculateAppointmentWidth(t,Ue),Kt=st,sn=null,wn=[],rn=Ue.vMax;if(this._isMultiViewAppointment(Ue,st)||Q&&!r){(te.Z.trimTime(m)<=te.Z.trimTime(Ue.info.appointment.startDate)||r)&&(Kt=this._reduceMultiDayAppointment(st,{top:Ue.top,bottom:rn}),wn=this._getAppointmentParts({sourceAppointmentHeight:st,reducedHeight:Kt,width:Ot},Ue));var{startDate:In,normalizedEndDate:Kn}=Ue.info.appointment;sn=Kn-In<A?N?"head":"body":N?"head":"tail"}(0,y.l)(Ue,{height:Kt,width:Ot,allDay:e,appointmentReduced:sn}),we=this._getAppointmentPartsPosition(wn,Ue,we)}return we}_isMultiViewAppointment(t,e){var{vMax:i,top:r}=t;return(0,re.y6)(e,2)>(0,re.y6)(i-r,2)}_reduceMultiDayAppointment(t,e){return Math.min(t,e.bottom-Math.floor(e.top))}_getGroupHeight(){return this.cellHeight*this.rowCount}_getGroupTopOffset(t){var{groupIndex:e}=t,i=Math.max(0,this.positionHelper.getGroupTop({groupIndex:e,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),r=this.positionHelper.getOffsetByAllDayPanel({groupIndex:e,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel});return t.top-i-r}_getTailHeight(t,e){if(!this.isVirtualScrolling)return t.sourceAppointmentHeight-t.reducedHeight;var i=this._getGroupTopOffset(e),{sourceAppointmentHeight:r}=t;return i+r-this._getGroupHeight()}_getAppointmentParts(t,e){var i=t.width,r=[],m=Math.max(0,this.positionHelper.getGroupTop({groupIndex:e.groupIndex,showAllDayPanel:this.showAllDayPanel,isGroupedAllDayPanel:this.isGroupedAllDayPanel})),D=this.isGroupedByDate?this.groupCount:1,A=this.cellWidth*D;m+=this.positionHelper.getOffsetByAllDayPanel({groupIndex:e.groupIndex,supportAllDayRow:this.allDaySupported(),showAllDayPanel:this.showAllDayPanel});for(var Q=this.getAppointmentMinSize(),{vMax:se,hMax:we}=e,Re=this.options.endViewDate>e.info.appointment.endDate,Ue=Math.round(e.left+A),st=this._getTailHeight(t,e);st>0&&Ue<we;){st=Math.max(Q,st);var Ot=e.columnIndex+D,Kt=Math.min(st,se);r.push((0,di.Z)({},e,{top:m,left:Ue,height:Kt,width:i,appointmentReduced:"body",rowIndex:0,columnIndex:Ot})),Ue+=A,st-=se}return Re&&r.length>0&&(r[r.length-1].appointmentReduced="tail"),r}_getMinuteHeight(){return this.cellHeight/this.cellDurationInMinutes}_getCompactLeftCoordinate(t,e){return t+(1+(this.cellWidth||this.getAppointmentMinSize()))*e}_getVerticalAppointmentGeometry(t){var e=this._calculateVerticalGeometryConfig(t);return this._customizeVerticalCoordinates(t,e.width,e.appointmentCountPerCell,e.offset)}_customizeVerticalCoordinates(t,e,i,r,m){var D=Math.max(e/i,e/t.count),A=t.height,N=t.left+t.index*D,Q=t.top;return t.isCompact&&this._markAppointmentAsVirtual(t,m),{height:A,width:D,top:Q,left:N,empty:this._isAppointmentEmpty(A,e)}}_calculateVerticalGeometryConfig(t){var e=this.maxAppointmentsPerCell,i=this._getOffsets(),r=this._getAppointmentDefaultOffset(),m=this._getAppointmentCount(e,t),D=this._getDefaultRatio(t,m),A=this._getMaxWidth();m||(m=t.count,D=(A-i.unlimited)/A);var N=(1-D)*A;return("auto"===e||(0,w.kE)(e))&&(D=1,A-=r,N=0),{width:D*A,appointmentCountPerCell:m,offset:N}}_getMaxWidth(){return this.cellWidth}isAllDay(t){return Dy(Wa(t,this.dataAccessors,this.timeZoneCalculator),this.startDayHour,this.endDayHour,this.allDayPanelMode)}_getAppointmentMaxWidth(){return this.cellWidth-this._getAppointmentDefaultOffset()}calculateAppointmentWidth(t,e){if(!this.isAllDay(t))return 0;var i=te.Z.trimTime(e.info.appointment.startDate),{normalizedEndDate:r}=e.info.appointment,m=this.cellWidth||this.getAppointmentMinSize(),D=(r.getTime()-i.getTime())/yT("hour"),A=h4(e.info.appointment.startDate,e.info.appointment.endDate,this.viewDataProvider),N=Math.ceil((D-A)/24)*m;return this.cropAppointmentWidth(N,m)}calculateAppointmentHeight(t,e){if(this.isAllDay(t))return 0;var i=e.info.appointment.startDate,{normalizedEndDate:r}=e.info.appointment,m=Ra_getField(this.dataAccessors,"allDay",t),D=this.getAppointmentDurationInMs(i,r,m);return this._adjustDurationByDaylightDiff(D,i,r)/yT("minute")*this._getMinuteHeight()}getDirection(){return"vertical"}_sortCondition(t,e){var i=t.allDay-e.allDay,m="vertical"===this.groupOrientation&&t.allDay&&e.allDay?this._columnCondition(t,e):this._rowCondition(t,e);return i||m}allDaySupported(){return!0}_getAllDayAppointmentGeometry(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset,!0)}_calculateGeometryConfig(t){(!this.allowResizing||!this.allowAllDayResizing)&&(t.skipResizing=!0);var e=super._calculateGeometryConfig(t),i=Math.min(e.appointmentCountPerCell,this._getDynamicAppointmentCountPerCell().allDay);return t.allDay&&t.count<=i&&(e.offset=0),e}_getAppointmentCount(t,e){return"auto"===t||1!==e.count||(0,w.kE)(t)?this._getMaxAppointmentCountPerCellByType(e.allDay):e.count}_getDefaultRatio(t,e){return t.count>this.appointmentCountPerCell?.65:1}_getOffsets(){return{unlimited:5,auto:20}}_getMaxHeight(){return this.allDayHeight||this.getAppointmentMinSize()}_needVerticalGroupBounds(t){return!t}_needHorizontalGroupBounds(){return!1}getPositionShift(t,e){return!e&&this.isAdaptive&&0===this._getMaxAppointmentCountPerCellByType(e)?{top:0,left:0,cellPosition:0}:super.getPositionShift(t,e)}};var Gk=te.Z.dateToMilliseconds;const g4=class Hoe extends Kk{_needVerifyItemSize(){return!0}calculateAppointmentWidth(t,e){var i=this.cellWidth||this.getAppointmentMinSize(),r=Ra_getField(this.dataAccessors,"allDay",t),m=e.info.appointment.startDate,D=e.info.appointment.endDate,{normalizedEndDate:A}=e.info.appointment,N=this.getAppointmentDurationInMs(m,A,r);N=this._adjustDurationByDaylightDiff(N,m,A);var Q=this.cellDurationInMinutes*Gk("minute"),we=(N-h4(m,D,this.viewDataProvider)*Gk("hour"))/Q;return this.cropAppointmentWidth(we*i,i)}_needAdjustDuration(t){return t<0}getAppointmentGeometry(t){var e=this._customizeAppointmentGeometry(t);return super.getAppointmentGeometry(e)}_customizeAppointmentGeometry(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}_getOffsets(){return{unlimited:0,auto:0}}_getCompactLeftCoordinate(t,e){return t+(this.cellWidth||this.getAppointmentMinSize())*e}_getMaxHeight(){return this.cellHeight||this.getAppointmentMinSize()}_getAppointmentCount(t,e){return this._getMaxAppointmentCountPerCellByType(!1)}_getAppointmentDefaultHeight(){return 60}_getAppointmentMinHeight(){return 35}_sortCondition(t,e){return this._columnCondition(t,e)}_getOrientation(){return["left","right","top"]}getDropDownAppointmentWidth(){return this.cellWidth-4}getDeltaTime(t,e){var r=t.width-e.width;return Gk("minute")*Math.round(r/this.cellWidth*this.cellDurationInMinutes)}isAllDay(t){return Ra_getField(this.dataAccessors,"allDay",t)}_isItemsCross(t,e){var i=this._getOrientation();return this._checkItemsCrossing(t,e,i)}getPositionShift(t){var e=super.getPositionShift(t),i=this.cellWidth*t;return this.rtlEnabled&&(i*=-1),{top:0,left:i+=e.left,cellPosition:i}}supportCompactDropDownAppointments(){return!1}},f4=class Koe extends g4{calculateAppointmentWidth(t,e){var i=te.Z.trimTime(e.info.appointment.startDate),{normalizedEndDate:r}=e.info.appointment,m=this.cellWidth||this.getAppointmentMinSize(),D=Math.ceil(this._getDurationInDays(i,r)),A=this.cropAppointmentWidth(D*m,m);return this.isVirtualScrolling&&(A-=this.viewDataProvider.getSkippedDaysCount(e.groupIndex,i,r,D)*m),A}_getDurationInDays(t,e){return this._adjustDurationByDaylightDiff(e.getTime()-t.getTime(),t,e)/te.Z.dateToMilliseconds("day")||1}getDeltaTime(t,e){return 864e5*this._getDeltaWidth(t,e)}isAllDay(){return!1}createTaskPositionMap(t,e){return e||N6(t,this.dataAccessors),super.createTaskPositionMap(t)}_getSortedPositions(t,e){var i=super._getSortedPositions(t);return e||(i=(0,If.Z)(i).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),i}needCorrectAppointmentDates(){return!1}getPositionShift(){return{top:0,left:0,cellPosition:0}}};var m4=n=>{var{dateTableCellsMeta:t}=n,e=t?.length;if(!e)return{width:0,height:0};var r=t[e>1?1:0][0];return{width:r.width,height:r.height}},jk=n=>m4(n).height,CT=n=>m4(n).width,gw=(n,t,e)=>{if(!n)return 0;if(t){var{dateTableCellsMeta:i}=e,r=i?.length;return r?i[0][0].height:0}var{allDayPanelCellsMeta:m}=e;return null!=m&&m.length?m[0].height:0},$k=(n,t,e,i)=>((n,t,e,i)=>{var{dateTableCellsMeta:r}=i,m=r[0];if(!m)return 0;var{columnIndex:D}=t.getLastGroupCellPosition(n),A=m[D];return A?e?A.left:A.left+A.width:0})(n||0,t,e,i);class $oe{get viewDataProvider(){return this.options.viewDataProvider}get rtlEnabled(){return this.options.rtlEnabled}get isGroupedByDate(){return this.options.isGroupedByDate}get groupCount(){return this.options.groupCount}get DOMMetaData(){return this.options.getDOMMetaDataCallback()}constructor(t){this.options=t,this.groupStrategy=this.options.isVerticalGrouping?new _4(this.options):new Yoe(this.options)}getHorizontalMax(t){var e=r=>$k(r,this.viewDataProvider,this.rtlEnabled,this.DOMMetaData);if(this.isGroupedByDate){var i=this.viewDataProvider.getViewPortGroupCount();return Math.max(e(t),e(i-1))}return e(t)}getResizableStep(){var t=CT(this.DOMMetaData);return this.isGroupedByDate?this.groupCount*t:t}getVerticalMax(t){return this.groupStrategy.getVerticalMax(t)}getOffsetByAllDayPanel(t){return this.groupStrategy.getOffsetByAllDayPanel(t)}getGroupTop(t){return this.groupStrategy.getGroupTop(t)}}class _4{constructor(t){this.options=t}get viewDataProvider(){return this.options.viewDataProvider}get isGroupedByDate(){return this.options.isGroupedByDate}get rtlEnabled(){return this.options.rtlEnabled}get groupCount(){return this.options.groupCount}get DOMMetaData(){return this.options.getDOMMetaDataCallback()}getOffsetByAllDayPanel(t){var{groupIndex:e,supportAllDayRow:i,showAllDayPanel:r}=t,m=0;return i&&r&&(m=gw(r,!0,this.DOMMetaData)*(e+1)),m}getVerticalMax(t){return this._getMaxAllowedVerticalPosition((0,di.Z)({},t,{viewDataProvider:this.viewDataProvider,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData}))+this.getOffsetByAllDayPanel(t)}getGroupTop(t){var{groupIndex:e,showAllDayPanel:i,isGroupedAllDayPanel:r}=t,m=this.viewDataProvider.getRowCountInGroup(e);return this._getMaxAllowedVerticalPosition({groupIndex:e,viewDataProvider:this.viewDataProvider,showAllDayPanel:i,isGroupedAllDayPanel:r,isVerticalGrouping:!0,DOMMetaData:this.DOMMetaData})-jk(this.DOMMetaData)*m}_getAllDayHeight(t){return gw(t,!0,this.DOMMetaData)}_getMaxAllowedVerticalPosition(t){var{groupIndex:e,showAllDayPanel:i,isGroupedAllDayPanel:r}=t,{rowIndex:m}=this.viewDataProvider.getLastGroupCellPosition(e),{dateTableCellsMeta:D}=this.DOMMetaData,A=D[m];if(!A)return 0;var N=A[0].top+A[0].height;return r&&(N-=(e+1)*this._getAllDayHeight(i)),N}}class Yoe extends _4{getOffsetByAllDayPanel(t){return 0}getVerticalMax(t){var{isVirtualScrolling:e,groupIndex:i}=t;return this._getMaxAllowedVerticalPosition((0,di.Z)({},t,{groupIndex:e?i:0}))}getGroupTop(t){return 0}_getAllDayHeight(t){return gw(t,!1,this.DOMMetaData)}}var tae=te.Z.dateToMilliseconds;var lae=n=>{var{height:t,left:e,top:i,width:r}=n;return"".concat(e,"-").concat(i,"-").concat(r,"-").concat(t)},v4=(n,t)=>n?hw([{attr:"backgroundColor",value:n}],t):t,uae={horizontal:g4,horizontalMonth:class nae extends f4{get endViewDate(){return this.options.endViewDate}get adaptivityEnabled(){return this.options.adaptivityEnabled}get DOMMetaData(){return this.options.DOMMetaData}_getLeftPosition(t){var e=this.getGroupWidth(t.groupIndex);return this._calculateMultiWeekAppointmentLeftOffset(t.hMax,e)}_getChunkCount(t,e,i,r){var{groupIndex:m,info:{appointment:{startDate:D}}}=r,N=Math.ceil((t-e+i)/i),Q=this._tryGetRowIndexInView(D);if(void 0!==Q){var we=this.viewDataProvider.getRowCountInGroup(m)-Q;return N<=we?N:we}return N}_tryGetRowIndexInView(t){var e,i=this.viewDataProvider.getColumnsCount();if(!((null===(e=this.options.dataRange)||void 0===e?void 0:e.length)<1)&&i){var[r]=this.options.dateRange,m=tae("day"),D=t.getTime()-r.getTime();return Math.floor(D/m/i)}}_getChunkWidths(t){var e=t.reducedWidth,i=Math.floor(t.sourceAppointmentWidth);return[e,i,i-e]}_getTailChunkSettings(t,e,i){var r=t%e||e;return[r,this.rtlEnabled?i+(e-r):i]}_getAppointmentParts(t,e){for(var i=[],r=Math.round(this.getGroupWidth(e.groupIndex)),[m,D,A]=this._getChunkWidths(t,e,r),N=this._getLeftPosition(e),Q=this.endViewDate>e.info.appointment.endDate,se=this._getChunkCount(D,m,r,e),[we,Re]=this._getTailChunkSettings(A,r,N),Ue=1;Ue<se;Ue++){var Ot=Q&&Ue===se-1;i.push((0,di.Z)({},e,{top:e.top+this.cellHeight*Ue,left:Ot?Re:N,height:t.height,width:Ot?we:r,appointmentReduced:Ot?"tail":"body",rowIndex:++e.rowIndex,columnIndex:0}))}return i}_calculateMultiWeekAppointmentLeftOffset(t,e){return this.rtlEnabled?t:t-e}getGroupWidth(t){return((n,t,e)=>{var{isVirtualScrolling:i,rtlEnabled:r,DOMMetaData:m}=e,D=CT(m),A=t.getCellCount(e)*D;i&&(A=t.groupedDataMap.dateTableGroupedMap[n][0].length*D);var se=$k(n,t,r,m),we=se[n];return we&&(A=r?we-se[n+1]:0===n?we:we-se[n-1]),A})(t,this.viewDataProvider,{intervalCount:this.options.intervalCount,currentDate:this.options.currentDate,viewType:this.options.viewType,hoursInterval:this.options.hoursInterval,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,isVirtualScrolling:this.isVirtualScrolling,rtlEnabled:this.rtlEnabled,DOMMetaData:this.DOMMetaData})}_getAppointmentDefaultHeight(){return this._getAppointmentHeightByTheme()}_getAppointmentMinHeight(){return this._getAppointmentDefaultHeight()}_columnCondition(t,e){var i=this._getConditions(t,e);return i.rowCondition||i.columnCondition||i.cellPositionCondition}createTaskPositionMap(t){return super.createTaskPositionMap(t,!0)}_getSortedPositions(t){return super._getSortedPositions(t,!0)}_getDefaultRatio(){return.6}_getOffsets(){return{unlimited:26,auto:30}}getDropDownAppointmentWidth(t){return this.adaptivityEnabled?this.getDropDownButtonAdaptiveSize():this.cellWidth-(t>1?60:36)}needCorrectAppointmentDates(){return!1}_needVerticalGroupBounds(){return!1}_needHorizontalGroupBounds(){return!0}getPositionShift(t){return{cellPosition:t*this.cellWidth,top:0,left:0}}},horizontalMonthLine:f4,vertical:p4,week:class Loe extends p4{isApplyCompactAppointmentOffset(){return(!this.isAdaptive||0!==this._getMaxAppointmentCountPerCellByType())&&this.supportCompactDropDownAppointments()}},agenda:class rae extends Kk{get instance(){return this.options.instance}get agendaDuration(){return this.options.agendaDuration}getAppointmentMinSize(){}getDeltaTime(){}keepAppointmentSettings(){return!0}getAppointmentGeometry(t){return t}groupAppointmentByResources(t){var e=this.instance._getCurrentViewOption("groups");return function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i={0:t};e.length&&n.loadedResources.length&&(i=vie(n,t,n.loadedResources));var r=0;n.loadedResources.forEach((A,N)=>{N?r*=A.items.length:r=A.items.length});for(var m=0;m<r;m++){var D=m.toString();i[D]||(i[D]=[])}return i}({loadedResources:this.options.loadedResources,resources:this.options.resources,dataAccessors:this.dataAccessors.resources},t,e)}createTaskPositionMap(t){var e,i;if(this.calculateRows(t,this.agendaDuration,this.currentDate),t.length){e=this.instance.fire("getAgendaVerticalStepHeight"),i=this.groupAppointmentByResources(t);var r=[];(0,O.S6)(i,function(A,N){var Q=[],se=[];(0,O.S6)(N,function(we,Re){var Ue=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(Re,we),st=null;Ue.indexes.length||(st=this.instance.getAppointmentsInstance()._processLongAppointment(Re),Q=Q.concat(st.parts)),Q=Q.concat(Ue.parts),se=se.concat(Ue.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(se,N),this.instance.getAppointmentsInstance()._combineAppointments(N,Q),r=r.concat(N)}.bind(this)),Array.prototype.splice.apply(t,[0,t.length].concat(r))}var m=[],D=0;return t.forEach(function(A,N){m.push([{height:e,width:"100%",sortedIndex:D++,groupIndex:this._calculateGroupIndex(N,i),agendaSettings:A.settings}]),delete A.settings}.bind(this)),m}_calculateGroupIndex(t,e){var i,r=0;for(var m in e){var D=e[m].length;if(t>=r&&t<r+D){i=Number(m);break}r+=D}return i}_getDeltaWidth(){}_getAppointmentMaxWidth(){return this.cellWidth}_needVerifyItemSize(){return!1}_getAppointmentParts(){}_reduceMultiWeekAppointment(){}calculateAppointmentHeight(){return 0}calculateAppointmentWidth(){return 0}isAppointmentGreaterThan(){}isAllDay(){return!1}_sortCondition(){}_rowCondition(){}_columnCondition(){}_findIndexByKey(){}_markAppointmentAsVirtual(){}getDropDownAppointmentWidth(){}getCollectorLeftOffset(){}getCollectorTopOffset(){}replaceWrongAppointmentEndDate(t,e,i){var r=Wa(t,this.dataAccessors,this.timeZoneCalculator);V6(r,e,i,this.cellDuration,this.dataAccessors)}calculateRows(t,e,i,r){this._rows=[],i=te.Z.trimTime(new Date(i));var m=this.groupAppointmentByResources(t);return(0,O.S6)(m,function(D,A){var N=[],Q={indexes:[],parts:[]};if(!A.length)return this._rows.push([]),!0;(0,O.S6)(A,function(wn,rn){var Ft=Ra_getField(this.dataAccessors,"startDate",rn),qt=Ra_getField(this.dataAccessors,"endDate",rn);this.replaceWrongAppointmentEndDate(rn,Ft,qt),r&&delete rn.settings;var un=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(rn,wn,!1);Q.parts=Q.parts.concat(un.parts),Q.indexes=Q.indexes.concat(un.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(Q.indexes,A),A.push(...Q.parts);for(var se=A.length,we=0;we<e;we++){var Re=new Date(i);Re.setMilliseconds(Re.getMilliseconds()+864e5*we),void 0===N[we]&&(N[we]=0);for(var Ue=0;Ue<se;Ue++){var st=A[Ue].settings||A[Ue],Ot=Wa(A[Ue],this.dataAccessors,this.timeZoneCalculator),Kt=Fk(Ot),sn=Ra_getField(this.dataAccessors,"recurrenceRule",A[Ue]);(this.instance.fire("dayHasAppointment",Re,st,!0)||!sn&&Kt&&this.instance.fire("dayHasAppointment",Re,A[Ue],!0))&&(N[we]+=1)}}this._rows.push(N)}.bind(this)),this._rows}_iterateRow(t,e,i){for(var r=0;r<t.length;r++)if(e.counter=e.counter+t[r],e.counter>=i){e.indexInRow=r;break}}getDateByIndex(t,e,i){var r={counter:0,indexInRow:0};t++;for(var m=0;m<e.length&&(this._iterateRow(e[m],r,t),!r.indexInRow);m++);return new Date(new Date(i).setDate(i.getDate()+r.indexInRow))}getAppointmentDataCalculator(){return function(t,e){var i=t.index(),r=this.instance.getStartViewDate(),m=this.getDateByIndex(i,this._rows,r),D=new Date(e);return{startDate:new Date(m.setHours(D.getHours(),D.getMinutes(),D.getSeconds(),D.getMilliseconds()))}}.bind(this)}}};class dae{initRenderingStrategy(t){this.renderingStrategy=new(0,uae[t.appointmentRenderingStrategyName])(t)}generate(t,e){var{isRenovatedAppointments:i}=e,r=t?t.slice():[];this.initRenderingStrategy(e);var D=this.getRenderingStrategy().createTaskPositionMap(r),A=this.postProcess(r,D,i);return i?this.makeRenovatedViewModels(A,e.supportAllDayRow,e.isVerticalGroupOrientation):{positionMap:D,viewModel:A}}postProcess(t,e,i){var r=this.getRenderingStrategy();return t.map((m,D)=>{r.keepAppointmentSettings()||delete m.settings;var A=e[D];A.forEach(Q=>{Q.direction="vertical"!==r.getDirection()||Q.allDay?"horizontal":"vertical"});var N={itemData:m,settings:A};return i||(N.needRepaint=!0,N.needRemove=!1),N})}makeRenovatedViewModels(t,e,i){var r=this.getRenderingStrategy(),m=[],D=[],A=[],N=e&&!i;t.forEach(we=>{var{itemData:Re,settings:Ue}=we;Ue.forEach(st=>{var Ot=this.prepareViewModel(st,r,Re);st.isCompact?A.push({compactViewModel:st.virtual,appointmentViewModel:Ot}):st.allDay&&N?D.push(Ot):m.push(Ot)})});var Q=this.prepareCompactViewModels(A,e);return(0,di.Z)({allDay:D,regular:m},Q)}prepareViewModel(t,e,i){var r=e.getAppointmentGeometry(t);return{key:lae(r),appointment:i,geometry:(0,di.Z)({},r,{leftVirtualWidth:t.leftVirtualWidth,topVirtualHeight:t.topVirtualHeight}),info:(0,di.Z)({},t.info,{allDay:t.allDay,direction:t.direction,appointmentReduced:t.appointmentReduced,groupIndex:t.groupIndex})}}getCompactViewModelFrame(t){return{isAllDay:!!t.isAllDay,isCompact:t.isCompact,groupIndex:t.groupIndex,geometry:{left:t.left,top:t.top,width:t.width,height:t.height},items:{colors:[],data:[],settings:[]}}}prepareCompactViewModels(t,e){var i={},r={};t.forEach(N=>{var{compactViewModel:Q,appointmentViewModel:se}=N,{index:we,isAllDay:Re}=Q,Ue=Re&&e?r:i;Ue[we]||(Ue[we]=this.getCompactViewModelFrame(Q));var{settings:st,data:Ot,colors:Kt}=Ue[we].items;st.push(se),Ot.push(se.appointment),Kt.push(se.info.resourceColor)});var m=N=>Object.keys(N).map(Q=>(0,di.Z)({key:Q},N[Q]));return{allDayCompact:m(r),regularCompact:m(i)}}getRenderingStrategy(){return this.renderingStrategy}}class C4 extends ca.Z{show(t){this._isMobileLayout()||this._overlay.option("target",t),this._overlay.show()}hide(){this._overlay.hide()}_keyboardHandler(t){var e;null===(e=this._calendar)||void 0===e||e._keyboardHandler(t)}_init(){super._init(),this.$element()}_render(){super._render(),this._renderOverlay()}_renderOverlay(){this.$element().addClass("dx-scheduler-navigator-calendar-popover");var t=this._isMobileLayout(),e=t?Tp.Z:Jv.Z;this._overlay=this._createComponent(this.$element(),e,{contentTemplate:()=>this._createOverlayContent(),onShown:()=>this._calendar.focus(),defaultOptionsRules:[{device:()=>t,options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}}]})}_createOverlayContent(){var t=(0,l.Z)("<div>").addClass("dx-scheduler-navigator-calendar");return this._calendar=this._createComponent(t,hS.Z,this._getCalendarOptions()),this._isMobileLayout()?this._createScrollable(t).$element():t}_createScrollable(t){var e=this._createComponent("<div>",nw.Z,{direction:"vertical"});return e.$content().append(t),e}_getCalendarOptions(){return{value:this.option("date"),min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:this.option("onValueChanged"),skipFocusCheck:!0,tabIndex:this.option("tabIndex"),width:"100%"}}_isMobileLayout(){return!x.Z.current().generic}}(0,T.Z)("dxSchedulerCalendarPopup",C4);var{correctDateWithUnitBeginning:vae,getFirstWeekDate:yae,getLastMonthDay:x4,addDateInterval:t_}=te.Z,{format:Fp}=zo.Z,b4={milliseconds:1},Cae={days:1},xae={days:7},xT=n=>t_(n,Cae,1),w4=n=>t_(n,xae,1),Yk=n=>6===n.getDay()||0===n.getDay(),Pae=(n,t)=>{for(var D,{intervalCount:e,step:i,agendaDuration:r}=t,A=new Date(n),N=0;N<e;N++)D=kae(A,i,r),A=Rae(D,i);return D},kae=(n,t,e)=>{var i;switch(t){case"day":i=xT(n);break;case"week":i=w4(n);break;case"month":i=(n=>{var t=x4(n);return t_(n,{days:t},1)})(n);break;case"workWeek":i=(n=>{for(var t=new Date(n),e=0;e<5;)Yk(t)||e++,t=xT(t);return t})(n);break;case"agenda":i=((n,t)=>t_(n,{days:t},1))(n,e)}return(n=>t_(n,b4,-1))(i)},Rae=(n,t)=>{var e=(n=>t_(n,b4,1))(n);if("workWeek"===t)for(;Yk(e);)e=xT(e);return e},Xk=n=>{var e=zo.Z.getMonthNames(n?"abbreviated":"wide");return i=>{var r=Fp(i,"day"),m=e[i.getMonth()];return"".concat(r," ").concat(m)}},E4=n=>{var e=zo.Z.getMonthNames("abbreviated")[n.getMonth()],i=Fp(n,"year");return"".concat(e," ").concat(i)},qk=n=>t=>{var i=Xk(n)(t),r=Fp(t,"year");return"".concat(i," ").concat(r)},Wae=(n,t,e,i)=>te.Z.sameDate(n,t)?((n,t,e)=>{var m=Xk("agenda"===t&&e)(n),D=Fp(n,"year");return"".concat(m," ").concat(D)})(n,i,e):"month"===i?((n,t)=>{if(te.Z.sameMonth(n,t))return Fp(n,"monthandyear");var i=te.Z.sameYear(n,t)?zo.Z.getMonthNames("abbreviated")[n.getMonth()]:E4(n),r=E4(t);return"".concat(i,"-").concat(r)})(n,t):((n,t,e)=>n.getFullYear()!==t.getFullYear()?((n,t)=>{var e=Fp(n,qk(!0)),i=Fp(t,qk(!0));return"".concat(e,"-").concat(i)})(n,t):((n,t,e)=>{var i=n.getMonth()!==t.getMonth(),r=i||e,m=i?Xk(r):"d",D=Fp(n,m),A=Fp(t,qk(r));return"".concat(D,"-").concat(A)})(n,t,e))(n,t,e),Uae=(n,t,e)=>{var{startDate:i,endDate:r}=(n=>{var t=(n=>{var{date:t,step:e,firstDayOfWeek:i}=n;switch(e){case"day":case"week":case"month":return vae(t,e,!1,i);case"workWeek":return(n=>{for(var t=new Date(n);Yk(t);)t=xT(t);return t})(yae(t,i));case"agenda":return new Date(t)}})(n);return{startDate:t,endDate:Pae(t,n)}})(n),m=Wae(i,r,t,n.step);return(0,w.mf)(e)&&(m=e({startDate:i,endDate:r,text:m})),{startDate:i,endDate:r,text:m}},Zae={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},bT=n=>(0,w.Kn)(n)&&n.type?n.type:n,Ty=n=>(0,w.Kn)(n)?n.name?n.name:n.type:n,S4=n=>{n.forEach(t=>{var e=bT(t);(n=>Object.values(rs).includes(n))(e)||bu.Z.log("W0008",e)})},O4=n=>(S4(n),n.map(t=>{var e=(n=>{if(n.name)return n.name;var t=(0,je._A)(n.type||n,!0);return yn.Z.format("dxScheduler-switcher"+t)})(t),i=bT(t),r=Ty(t);return{text:e,name:r,view:{text:e,type:i,name:r}}})),D4=(n,t)=>1===n.length&&n[0].name===t,T4="dx-scheduler-view-switcher",I4=n=>{var t=O4(n.views),e=Ty(n.currentView),i=t.some(r=>r.name===e);return{selectedView:e=i?e:void 0,views:t}},{trimTime:Jae}=te.Z,ase=n=>({key:"previous",icon:"chevronprev",elementAttr:{class:"dx-scheduler-navigator-previous"},clickHandler:()=>n._updateDateByDirection(-1),onContentReady:t=>{var e=t.component;e.option("disabled",wT(n)),n._addEvent("min",()=>{e.option("disabled",wT(n))}),n._addEvent("currentDate",()=>{e.option("disabled",wT(n))}),n._addEvent("startViewDate",()=>{e.option("disabled",wT(n))})}}),sse=n=>({key:"calendar",text:n.captionText,elementAttr:{class:"dx-scheduler-navigator-caption"},clickHandler:t=>n._showCalendar(t),onContentReady:t=>{var e=t.component;n._addEvent("currentView",()=>{e.option("text",n.captionText)}),n._addEvent("currentDate",()=>{e.option("text",n.captionText)}),n._addEvent("startViewDate",()=>{e.option("text",n.captionText)}),n._addEvent("views",()=>{e.option("text",n.captionText)}),n._addEvent("firstDayOfWeek",()=>{e.option("text",n.captionText)})}}),lse=n=>({key:"next",icon:"chevronnext",elementAttr:{class:"dx-scheduler-navigator-next"},clickHandler:()=>n._updateDateByDirection(1),onContentReady:t=>{var e=t.component;e.option("disabled",ET(n)),n._addEvent("min",()=>{e.option("disabled",ET(n))}),n._addEvent("currentDate",()=>{e.option("disabled",ET(n))}),n._addEvent("startViewDate",()=>{e.option("disabled",ET(n))})}}),wT=n=>{var t=n.option("min");if(!t)return!1;t=new Date(t);var e=n._getCaption();return t=Jae(t),n._getNextDate(-1,e.endDate)<t},ET=n=>{var t=n.option("max");if(!t)return!1;t=new Date(t);var e=n._getCaption();return t=t.setHours(23,59,59),n._getNextDate(1,e.startDate)>t},dse=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],ST=(n,t)=>{var e=t.find(i=>!!((0,w.Kn)(i)?[i.name,i.type]:[i]).includes(n));return void 0===e&&(dse.includes(n)?e=n:[e]=t),e},M4="defaultElement";class A4 extends ca.Z{get views(){return this.option("views")}get captionText(){return this._getCaption().text}get intervalOptions(){return{step:(n=>Zae[bT(this.currentView)])(),intervalCount:this.option("intervalCount"),firstDayOfWeek:this.option("firstDayOfWeek"),agendaDuration:this.option("agendaDuration")}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{_useShortDateFormat:!x.Z.real().generic||x.Z.isSimulator()})}_createEventMap(){this.eventMap=new Map([["currentView",[t=>{this.currentView=ST(Ty(t),this.option("views"))}]],["items",[this.repaint.bind(this)]],["views",[S4]],["currentDate",[this._getCalendarOptionUpdater("date")]],["min",[this._getCalendarOptionUpdater("min")]],["max",[this._getCalendarOptionUpdater("max")]],["tabIndex",[this.repaint.bind(this)]],["focusStateEnabled",[this.repaint.bind(this)]],["useDropDownViewSwitcher",[this.repaint.bind(this)]]])}_addEvent(t,e){this.eventMap.has(t)||this.eventMap.set(t,[]);var i=this.eventMap.get(t);this.eventMap.set(t,[...i,e])}_optionChanged(t){var{name:e,value:i}=t;this.eventMap.has(e)&&this.eventMap.get(e).forEach(m=>{m(i)})}_init(){super._init(),this._createEventMap(),this.$element().addClass("dx-scheduler-header"),this.currentView=ST(Ty(this.option("currentView")),this.option("views"))}_render(){super._render(),this._createEventMap(),this._renderToolbar()}_renderToolbar(){var t=this._createToolbarConfig(),e=(0,l.Z)("<div>");e.appendTo(this.$element()),this._toolbar=this._createComponent(e,Tb.Z,t)}_createToolbarConfig(){return{items:this.option("items").map(i=>this._parseItem(i))}}_parseItem(t){if(this._isDefaultItem(t)){var i=t[M4];switch(i){case"viewSwitcher":return this.option("useDropDownViewSwitcher")?((n,t)=>{var{selectedView:e,views:i}=I4(n),r=D4(i,e);return(0,di.Z)({widget:"dxDropDownButton",locateInMenu:"never",cssClass:T4,options:{items:i,useSelectMode:!0,keyExpr:"name",selectedItemKey:e,displayExpr:"text",showArrowIcon:!r,elementAttr:{class:"dx-scheduler-view-switcher-dropdown-button"},onItemClick:m=>{n._updateCurrentView(m.itemData.view)},onContentReady:m=>{var D=m.component;n._addEvent("currentView",A=>{var N=O4(n.views);D4(N,A)&&n.repaint(),D.option("selectedItemKey",Ty(A))})},dropDownOptions:{onShowing:m=>{r&&(m.cancel=!0)},width:"max-content",_wrapperClassExternal:"dx-scheduler-view-switcher-dropdown-button-content"}}},t)})(this,t):((n,t)=>{var{selectedView:e,views:i}=I4(n);return(0,di.Z)({widget:"dxButtonGroup",locateInMenu:"auto",cssClass:T4,options:{items:i,keyExpr:"name",selectedItemKeys:[e],stylingMode:"contained",onItemClick:r=>{n._updateCurrentView(r.itemData.view)},onContentReady:r=>{var m=r.component;n._addEvent("currentView",D=>{m.option("selectedItemKeys",[Ty(D)])})}}},t)})(this,t);case"dateNavigator":return this._renderCalendar(),((n,t)=>{var e=[ase(n),sse(n),lse(n)],i=(0,z.x2)()?"text":"contained";return(0,di.Z)({widget:"dxButtonGroup",cssClass:"dx-scheduler-navigator",options:{items:e,stylingMode:i,selectionMode:"none",onItemClick:r=>{r.itemData.clickHandler(r)}}},t)})(this,t);default:bu.Z.log("Unknown default element type: ".concat(i))}}return t}_callEvent(t,e){this.eventMap.has(t)&&this.eventMap.get(t).forEach(r=>r(e))}_updateCurrentView(t){this.option("onCurrentViewChange")(t.name),this._callEvent("currentView",t)}_updateCurrentDate(t){this.option("onCurrentDateChange")(t),this._callEvent("currentDate",t)}_renderCalendar(){this._calendar=this._createComponent("<div>",C4,{date:this.option("currentDate"),min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),onValueChanged:t=>{this._updateCurrentDate(t.value),this._calendar.hide()}}),this._calendar.$element().appendTo(this.$element())}_getCalendarOptionUpdater(t){return e=>{this._calendar&&this._calendar.option(t,e)}}_getNextDate(t){var i=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)||this.option("currentDate");return((n,t)=>{var D,{date:e,step:i,intervalCount:r,agendaDuration:m}=n;switch(i){case"day":D=1*r;break;case"week":case"workWeek":D=7*r;break;case"agenda":D=m;break;case"month":return((n,t,e)=>{var i=n.getDate(),r=new Date(new Date(n.getTime()).setDate(1)),m=new Date(r.setMonth(r.getMonth()+t*e)),D=x4(m),A=i<D?i:D,N=new Date(new Date(n.getTime()).setDate(A));return new Date(N.setMonth(N.getMonth()+t*e))})(e,r,t)}return t_(e,{days:D},t)})((0,di.Z)({},this.intervalOptions,{date:i}),t)}_isMonth(){return"month"===bT(this.currentView)}_getDisplayedDate(){var t=this.option("startViewDate");return this._isMonth()?w4(t):new Date(t)}_getCaption(){var t=this.option("currentDate");this.option("startViewDate")&&(t=this._getDisplayedDate()),t=te.Z.trimTime(t);var e=(0,di.Z)({},this.intervalOptions,{date:t}),i=this.option("customizeDateNavigatorText"),r=this.option("_useShortDateFormat");return Uae(e,r,i)}_updateDateByDirection(t){var e=this._getNextDate(t);this._updateCurrentDate(e)}_showCalendar(t){this._calendar.show(t.element)}_hideCalendar(){this._calendar.hide()}_isDefaultItem(t){return Object.prototype.hasOwnProperty.call(t,M4)}}(0,T.Z)("dxSchedulerHeader",A4);var _l={dataAccessors:{getAppointmentSettings:n=>(0,l.Z)(n).data(Bp),getAppointmentInfo:n=>_l.dataAccessors.getAppointmentSettings(n)?.info,create:(n,t,e,i)=>{var r=t?(0,di.Z)({},t):{getter:{},setter:{},expr:{}};return(0,O.S6)(n,(m,D)=>{if(D){var Q,se,we,A=(0,Go.vb)(D),N=(0,Go.OM)(D);("startDate"===(Re=m)||"endDate"===Re)&&(Q=Ue=>{var st=A(Ue);return e&&(st=xs.Z.deserializeDate(st)),st},se=(Ue,st)=>{if(i)we=i;else if(e&&!we){var Ot=A(Ue);we=xs.Z.getDateSerializationFormat(Ot)}var Kt=xs.Z.serializeDate(st,we);N(Ue,Kt)}),r.getter[m]=Q||A,r.setter[m]=se||N,r.expr["".concat(m,"Expr")]=D}else delete r.getter[m],delete r.setter[m],delete r.expr["".concat(m,"Expr")];var Re}),r}},DOM:{getHeaderHeight:n=>n?n._$element&&parseInt((0,s.zp)(n._$element),10):0},renovation:{renderComponent:(n,t,e,i,r)=>{var m=n[i];if(m){var A=m.$element(),N=A.get(0).style,Q=N.height,se=N.width;m.option(r),Q&&(0,s.QQ)(A,Q),se&&(0,s.cl)(A,se)}else{var D=(0,S.u)(t);m=n._createComponent(D,e,r),n[i]=m}}}},fse=te.Z.dateToMilliseconds,mse={isCurrentViewAgenda:function(){return"agenda"===this.currentViewType},currentViewUpdated:function(n){this.option("currentView",n)},currentDateUpdated:function(n){this.option("currentDate",n)},getOption:function(n){return this.option(n)},getWorkspaceOption:function(n){return this.getWorkSpace().option(n)},isVirtualScrolling:function(){return this.isVirtualScrolling()},setCellDataCacheAlias:function(n,t){this._workSpace.setCellDataCacheAlias(n,t)},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(n){var t=this.getTargetedAppointment(n.data,n.target);this.showAppointmentTooltip(n.data,n.target,t)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showEditAppointmentPopup:function(n){var t=this.getTargetedAppointment(n.data,n.target);this.showAppointmentPopup(n.data,!1,t)},updateAppointmentAfterResize:function(n){var t=_l.dataAccessors.getAppointmentInfo(n.$appointment);this._checkRecurringAppointment(n.target,n.data,t.sourceAppointment.exceptionDate,function(){this._updateAppointment(n.target,n.data,function(){this._appointments.moveAppointmentBack()})}.bind(this))},getUpdatedData:function(n){return this._getUpdatedData(n)},updateAppointmentAfterDrag:function(n){var{event:t,element:e,rawAppointment:i,newCellIndex:r,oldCellIndex:m}=n,D=_l.dataAccessors.getAppointmentInfo(e),A=Wa(i,this._dataAccessors,this.timeZoneCalculator),N=Wa((0,y.l)({},i,this._getUpdatedData(i)),this._dataAccessors,this.timeZoneCalculator),Q=N.source(),se=N.allDay,we=A.allDay,Re=this._workSpace.supportAllDayRow()&&(we&&!se||!we&&se),Ue=t.fromComponent!==t.toComponent;-1!==r?r!==m||Ue||Re?this._checkRecurringAppointment(i,Q,D.sourceAppointment.exceptionDate,()=>{this._updateAppointment(i,Q,function(){this._appointments.moveAppointmentBack(t)},t)},void 0,void 0,t):this._appointments.moveAppointmentBack(t):Ue||this._appointments.moveAppointmentBack(t)},onDeleteButtonPress:function(n){var t=this.getTargetedAppointment(n.data,(0,l.Z)(n.target));this.checkAndDeleteAppointment(n.data,t),this.hideAppointmentTooltip()},getTextAndFormatDate(n,t,e){var i=Wa(n,this._dataAccessors,this.timeZoneCalculator),r=Wa(t||n,this._dataAccessors,this.timeZoneCalculator),m=this.timeZoneCalculator.createDate(r.startDate,{path:"toGrid"}),D=this.timeZoneCalculator.createDate(r.endDate,{path:"toGrid"}),A=e||l4(m,D,r.allDay,"month"!==this.currentViewType);return{text:r.text||i.text,formatDate:u4(m,D,A)}},_createAppointmentTitle:n=>(0,w.PO)(n)?n.text:String(n),getResizableAppointmentArea:function(n){var t=n.allDay,e=this._getCurrentViewOption("groups");if(e&&e.length){if(t||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var i=this._workSpace.getGroupBounds(n.coordinates);return{left:i.left,right:i.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(t)&&this._workSpace._isVerticalGroupedWorkSpace()){var r=this._workSpace.getGroupBounds(n.coordinates);return{left:0,right:0,top:r.top,bottom:r.bottom}}}},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getAppointmentGeometry:function(n){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(n)},isAllDay:function(n){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(n)},getDeltaTime:function(n,t,e){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(n,t,e)},getDropDownAppointmentWidth:function(n){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,n)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getCellWidth:function(){return this.getWorkSpace().getCellWidth()},getCellHeight:function(){return this.getWorkSpace().getCellHeight()},getMaxAppointmentCountPerCellByType:function(n){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(n)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},updateAppointmentEndDate:function(n){var t=n.endDate,e=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),r=t;return t.getHours()>=e?r.setHours(e,0,0,0):!n.isSameDate&&i>0&&60*t.getHours()+t.getMinutes()<60*i&&(r=new Date(r.getTime()-fse("day"))).setHours(e,0,0,0),r},renderCompactAppointments:function(n){this._compactAppointmentsHelper.render(n)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this.getLayoutManager().getRenderingStrategyInstance().supportCompactDropDownAppointments()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(n){var{itemData:t,itemElement:e,targetedAppointment:i}=n,r=i||this.getTargetedAppointment(t,e);return{appointmentData:n.itemData,appointmentElement:n.itemElement,targetedAppointmentData:r}},dayHasAppointment:function(n,t,e){return this.dayHasAppointment(n,t,e)},getLayoutManager:function(){return this._layoutManager},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},onAgendaReady:function(n){for(var t=this.getAppointmentsInstance()._itemElements(),e=0,i=function(m,D){t.eq(D+e-1).addClass("dx-scheduler-last-in-date-agenda-appointment"),e+=D},r=0;r<n.length;r++)(0,O.S6)(n[r],i)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getTargetedAppointmentData:function(n,t){return this.getTargetedAppointment(n,t)},getEndDayHour:function(){return this._workSpace.option("endDayHour")||this.option("endDayHour")},getStartDayHour:function(){return this._workSpace.option("startDayHour")||this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")},removeDroppableCellClass:function(){this._workSpace.removeDroppableCellClass()}};const P4=mse,vse=class _se{constructor(t){this._workSpace=t}prepareCellIndexes(t,e,i){return this._workSpace.isGroupedByDate()?{rowIndex:t.rowIndex,columnIndex:t.columnIndex*this._workSpace._getGroupCount()+e}:{rowIndex:t.rowIndex,columnIndex:t.columnIndex+e*this._workSpace._getCellCount()}}getGroupIndex(t,e){var i=this._workSpace.isGroupedByDate(),r=this._workSpace._getGroupCount();return i?e%r:Math.floor(e/this._workSpace._getCellCount())}calculateHeaderCellRepeatCount(){return this._workSpace._getGroupCount()||1}insertAllDayRowsIntoDateTable(){return!1}getTotalCellCount(t){return t=t||1,this._workSpace._getCellCount()*t}getTotalRowCount(){return this._workSpace._getRowCount()}calculateTimeCellRepeatCount(){return 1}getWorkSpaceMinWidth(){return(0,Yo.l)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()}getAllDayOffset(){return this._workSpace.getAllDayHeight()}getGroupCountClass(t){}getLeftOffset(){return this._workSpace.getTimePanelWidth()}_createGroupBoundOffset(t,e,i){var r=i/2;return{left:t?t.offset().left-r:0,right:e?e.offset().left+i+r:0,top:0,bottom:0}}_getGroupedByDateBoundOffset(t,e){var i=t.length-1,r=t.eq(0),m=t.eq(i);return this._createGroupBoundOffset(r,m,e)}getGroupBoundsOffset(t,e,i,r,m){if(this._workSpace.isGroupedByDate())return this._getGroupedByDateBoundOffset(e,i);var D,A,N=this._workSpace.getCellIndexByCoordinates(r),Q=r.groupIndex||Math.floor(N/t),se=m.dateTableGroupedMap[Q];if(se){var Ue=se[0][se[0].length-1].position;D=e.eq(se[0][0].position.columnIndex),A=e.eq(Ue.columnIndex)}return this._createGroupBoundOffset(D,A,i)}shiftIndicator(t,e,i,r){var m=this._getIndicatorOffset(r);t.css("left",i?i-m:m),t.css("top",e)}_getIndicatorOffset(t){return this._workSpace.isGroupedByDate()?this._calculateGroupByDateOffset(t):this._calculateOffset(t)}_calculateOffset(t){return this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(t-1,0)*t+this._workSpace.getIndicatorOffset(t)+t}_calculateGroupByDateOffset(t){return this._workSpace.getIndicatorOffset(0)*this._workSpace._getGroupCount()+this._workSpace.getRoundedCellWidth(t-1,0)*t}getShaderOffset(t,e){var i=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(t-1)*t;return this._workSpace.option("rtlEnabled")?(0,Yo.l)(this._workSpace._dateTableScrollable.$content().get(0)).width-i-this._workSpace.getTimePanelWidth()-e:i}getShaderTopOffset(t){return-this.getShaderMaxHeight()*(t>0?1:0)}getShaderHeight(){return this._workSpace.getIndicationHeight()}getShaderMaxHeight(){return(0,Yo.l)(this._workSpace._dateTableScrollable.$content().get(0)).height}getShaderWidth(t){return this._workSpace.getIndicationWidth(t)}getScrollableScrollTop(t){return t?0:this._workSpace.getScrollable().scrollTop()}addAdditionalGroupCellClasses(t,e,i,r){var m=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return t=this._addLastGroupCellClass(t,e,m),this._addFirstGroupCellClass(t,e,m)}_addLastGroupCellClass(t,e,i){if(i)return"".concat(t," ").concat(pT);if(this._workSpace.isGroupedByDate()){if(e%this._workSpace._getGroupCount()==0)return"".concat(t," ").concat(pT)}else if(e%this._workSpace._getCellCount()==0)return"".concat(t," ").concat(pT);return t}_addFirstGroupCellClass(t,e,i){if(i)return"".concat(t," ").concat(gT);if(this._workSpace.isGroupedByDate()){if((e-1)%this._workSpace._getGroupCount()==0)return"".concat(t," ").concat(gT)}else if((e-1)%this._workSpace._getCellCount()==0)return"".concat(t," ").concat(gT);return t}};class k4{constructor(){this._cache=new Map}get size(){return this._cache.size}clear(){this._cache.clear()}get(t,e){return!this._cache.has(t)&&e&&this.set(t,e()),this._cache.get(t)}set(t,e){(0,w.$K)(e)&&this._cache.set(t,e)}}const R4=class xse{constructor(t){this._workSpace=t,this.cache=new k4}prepareCellIndexes(t,e,i){var r=t.rowIndex+e*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(r+=e,i||(r+=1)),{rowIndex:r,columnIndex:t.columnIndex}}getGroupIndex(t){return Math.floor(t/this._workSpace._getRowCount())}calculateHeaderCellRepeatCount(){return 1}insertAllDayRowsIntoDateTable(){return this._workSpace.option("showAllDayPanel")}getTotalCellCount(){return this._workSpace._getCellCount()}getTotalRowCount(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()}calculateTimeCellRepeatCount(){return this._workSpace._getGroupCount()||1}getWorkSpaceMinWidth(){var t=this._workSpace._getWorkSpaceWidth(),e=(0,Yo.l)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2;return t<e&&(t=e),t}getAllDayOffset(){return 0}getGroupCountClass(t){return n4(t)}getLeftOffset(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()}getGroupBoundsOffset(t,e){var[i,r]=e;return this.cache.get("groupBoundsOffset".concat(t),()=>{var m=this._workSpace.option("startDayHour"),D=this._workSpace.option("endDayHour"),A=this._workSpace.option("hoursInterval"),N=Wk(m,D)/A*this._workSpace.getCellHeight(),Q=this.getScrollableScrollTop(),se=t*N+(0,Yo.l)(this._workSpace._$thead.get(0)).height+this._workSpace.option("getHeaderHeight")()+10-Q;this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(se+=this._workSpace.getCellHeight()*(t+1));var we=se+N,{left:Re}=i.getBoundingClientRect(),{right:Ue}=r.getBoundingClientRect();return this._groupBoundsOffset={left:Re,right:Ue,top:se,bottom:we}})}shiftIndicator(t,e,i,r){var m=this._workSpace.getIndicatorOffset(0),D=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),A=i?i-m:m,N=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*r;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(N+=this._workSpace.getAllDayHeight()*(r+1)),t.css("left",A+D),t.css("top",e+N)}getShaderOffset(t,e){var i=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?(0,Yo.l)(this._$container.get(0)).width-i-this._workSpace.getWorkSpaceLeftOffset()-e:i}getShaderTopOffset(t){return 0}getShaderHeight(){var t=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t+=this._workSpace.getCellHeight()),t}getShaderMaxHeight(){var t=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t+=this._workSpace.getCellHeight()),t}getShaderWidth(){return this._workSpace.getIndicationWidth(0)}getScrollableScrollTop(){return this._workSpace.getScrollable().scrollTop()}addAdditionalGroupCellClasses(t,e,i,r){return t=this._addLastGroupCellClass(t,i+1),this._addFirstGroupCellClass(t,i+1)}_addLastGroupCellClass(t,e){return e%this._workSpace._getRowCount()==0?"".concat(t," ").concat(pT):t}_addFirstGroupCellClass(t,e){return(e-1)%this._workSpace._getRowCount()==0?"".concat(t," ").concat(gT):t}},Jk={tableCreator:new class bse{constructor(){this.VERTICAL="vertical",this.HORIZONTAL="horizontal"}insertAllDayRow(t,e,i){if(t[i]){var r=t[i].find("tr");r.length||(r=(0,l.Z)(b.Z.createElement("tr"))).append(t[i].get(0)),e.appendChild(r.get?r.get(0):r)}}makeTable(t){var r,e=b.Z.createElement("tbody"),i=[],m=t.groupCount?t.rowCount/t.groupCount:t.rowCount,D=0,A=t.allDayElements,N=t.groupIndex,Q=t.rowCount;(0,l.Z)(t.container).append(e),A&&(this.insertAllDayRow(A,e,0),D++);for(var se=0;se<Q;se++){r=b.Z.createElement("tr"),e.appendChild(r);var we=(se+1)%m==0;t.rowClass&&(r.className=t.rowClass);for(var Re=0;Re<t.cellCount;Re++){var Ue,st=b.Z.createElement("td");r.appendChild(st),t.cellClass&&(st.className=(0,w.mf)(t.cellClass)?t.cellClass(se,Re):t.cellClass);var Ot=void 0,Kt=void 0,sn=void 0;if(t.getCellData&&(sn=(Ot=t.getCellData(st,se,Re,N)).value,(Kt=Ot.key)&&(0,nP.aT)(st,Kt,sn)),null===(Ue=t.setAdditionalClasses)||void 0===Ue||Ue.call(t,(0,l.Z)(st),sn),t.cellTemplate&&t.cellTemplate.render){var wn=t.getTemplateData?t.getTemplateData(se):{},rn={model:(0,di.Z)({text:t.getCellText?t.getCellText(se,Re):"",date:t.getCellDate?t.getCellDate(se):void 0},wn),container:(0,S.u)((0,l.Z)(st)),index:se*t.cellCount+Re};sn&&(sn.startDate&&(rn.model.startDate=sn.startDate),sn.endDate&&(rn.model.endDate=sn.endDate),sn.groups&&(rn.model.groups=sn.groups),sn.allDay&&(rn.model.allDay=sn.allDay)),i.push(t.cellTemplate.render.bind(t.cellTemplate,rn))}else t.getCellText&&(0,l.Z)("<div>").text(t.getCellText(se,Re)).addClass(t.getCellTextClass).appendTo((0,l.Z)(st))}A&&we&&(this.insertAllDayRow(A,e,D),D++)}return i}makeGroupedTable(t,e,i,r,m,D,A){return t===this.VERTICAL?this._makeVerticalGroupedRows(e,i,m,D):this._makeHorizontalGroupedRows(e,i,r,m,A)}makeGroupedTableFromJSON(t,e,i){var r,m=[],D=0,A=(i=i||{}).cellTag||"td",N=i.childrenField||"children",Q=i.titleField||"title",se=i.groupTableClass,we=i.groupRowClass,Re=i.groupCellClass,Ue=i.groupCellCustomContent;function st(Kt){return Kt[N]?Kt[N].length:0}function Ot(Kt,sn,wn,rn){var Ft={element:b.Z.createElement(A),childCount:sn};Re&&(Ft.element.className=Re);var qt=b.Z.createTextNode(Kt);return"function"==typeof Ue?Ue(Ft.element,qt,wn,rn):Ft.element.appendChild(qt),Ft}return r=b.Z.createElement("table"),se&&(r.className=se),function Kt(sn){for(var wn=0;wn<sn.length;wn++){var rn=st(sn[wn]),Ft=Ot(sn[wn][Q],rn,wn,sn[wn]);m[D]||(m[D]=[]),m[D].push(Ft),rn?Kt(sn[wn][N]):D++}}(e),m.forEach(function(Kt){var sn=b.Z.createElement("tr");we&&(sn.className=we);for(var wn=[],rn=Kt.length-1;rn>=0;rn--){var Ft=Kt[rn+1],qt=Kt[rn].childCount;Ft&&Ft.childCount&&(qt*=Ft.childCount),wn.push(qt)}wn.reverse(),Kt.forEach(function(un,In){wn[In]&&un.element.setAttribute("rowSpan",wn[In]),sn.appendChild(un.element)}),r.appendChild(sn)}),r}_makeFlexGroupedRowCells(t,e,i,r){for(var m=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,D=[],A=t.items,N=A.length,Q=0;Q<e*m;Q++)for(var se=0;se<N;se++){var we=(0,l.Z)("<div>"),Re={};if(r&&r.render){var Ue={model:A[se],container:(0,S.u)(we),index:Q*N+se};t.data&&(Ue.model.data=t.data[se]),Re.template=r.render.bind(r,Ue)}else we.text(A[se].text).attr("title",A[se].text).addClass("dx-scheduler-group-header-content"),we=(0,l.Z)("<div>").append(we);var st=(0,w.mf)(i.groupHeaderClass)?i.groupHeaderClass(se):i.groupHeaderClass;Re.element=we.addClass(st),D.push(Re)}return D}_makeVerticalGroupedRows(t,e,i){for(var r=[],m=1,D=[],A=function(Kt){Kt.template&&r.push(Kt.template)},N=0;N<t.length;N++){N>0&&(m*=t[N-1].items.length);var Q=this._makeFlexGroupedRowCells(t[N],m,e,i);Q.forEach(A),D.push(Q)}for(var se=[],we=D.length,Re=0;Re<we;Re++)se.push((0,l.Z)("<div>").addClass(e.groupHeaderRowClass));for(var Ue=we-1;Ue>=0;Ue--)for(var st=D[Ue].length,Ot=0;Ot<st;Ot++)se[Ue].append(D[Ue][Ot].element);return{elements:(0,l.Z)("<div>").addClass("dx-scheduler-group-flex-container").append(se),cellTemplates:r}}_makeHorizontalGroupedRows(t,e,i,r,m){for(var D=1,A=t.length,N=[],Q=[],se=m?i:1,we=function(wn){return wn.template&&Q.push(wn.template),wn.element},Re=0;Re<A;Re++){Re>0&&(D*=t[Re-1].items.length);var Ue=this._makeGroupedRowCells(t[Re],D,e,r,se);N.push((0,l.Z)("<tr>").addClass(e.groupRowClass).append(Ue.map(we)))}for(var st=N[A-1].find("th").length,Ot=0;Ot<A;Ot++){var Kt=N[Ot].find("th"),sn=st/Kt.length;m||(sn*=i),(sn>1&&1===se||m&&A>1)&&Kt.attr("colSpan",sn)}return{elements:N,cellTemplates:Q}}_makeGroupedRowCells(t,e,i,r,m){e*=m=m||1;for(var D=[],A=t.items,N=A.length,Q=0;Q<e;Q++)for(var se=0;se<N;se++){var we=(0,l.Z)("<div>"),Re={};if(r&&r.render){var Ue={model:A[se],container:(0,S.u)(we),index:Q*N+se};t.data&&(Ue.model.data=t.data[se]),Re.template=r.render.bind(r,Ue)}else we.text(A[se].text),we=(0,l.Z)("<div>").append(we);we.addClass(i.groupHeaderContentClass);var st;st=(0,w.mf)(i.groupHeaderClass)?i.groupHeaderClass(se):i.groupHeaderClass,Re.element=(0,l.Z)("<th>").addClass(st).append(we),D.push(Re)}return D}}};var L4="dx-scheduler-date-time-shader";const B4=class wse{constructor(t){this._workSpace=t,this._$container=this._workSpace._dateTableScrollable.$content()}render(){this.initShaderElements(),this.renderShader(),this._shader.forEach((t,e)=>{this._$container.append(t)})}initShaderElements(){this._$shader=this.createShader(),this._shader=[],this._shader.push(this._$shader)}renderShader(){}createShader(){return(0,l.Z)("<div>").addClass(L4)}clean(){this._$container&&this._$container.find("."+L4).remove()}};var F4="dx-scheduler-date-time-shader-all-day";const Dse=class Ose extends B4{renderShader(){var t=this._getShaderHeight(),e=this._getShaderMaxHeight(),i=t>e;t>e&&(t=e),(0,s.QQ)(this._$shader,t);var r=this._workSpace._getGroupCount()||1;this._workSpace.isGroupedByDate()?this._renderGroupedByDateShaderParts(r,t,e,i):this._renderShaderParts(r,t,e,i)}_renderShaderParts(t,e,i,r){for(var m=0;m<t;m++){var D=this._getShaderWidth(m);this._renderTopShader(this._$shader,e,D,m),!r&&this._renderBottomShader(this._$shader,i,e,D,m),this._renderAllDayShader(D,m)}}_renderGroupedByDateShaderParts(t,e,i,r){var m=this._getShaderWidth(0),D=m-this._workSpace.getCellWidth();e<0&&(e=0,D=m),this._renderTopShader(this._$shader,e,m*t,0),!r&&this._renderBottomShader(this._$shader,i,e,D*t+this._workSpace.getCellWidth(),0),this._renderAllDayShader(m*t,0)}_renderTopShader(t,e,i,r){this._$topShader=(0,l.Z)("<div>").addClass("dx-scheduler-date-time-shader-top"),i&&(0,s.cl)(this._$topShader,i),e&&(0,s.QQ)(this._$topShader,e),this._$topShader.css("marginTop",this._getShaderTopOffset(r)),this._$topShader.css("left",this._getShaderOffset(r,i)),t.append(this._$topShader)}_renderBottomShader(t,e,i,r,m){this._$bottomShader=(0,l.Z)("<div>").addClass("dx-scheduler-date-time-shader-bottom");var D=i<0?r:r-this._workSpace.getCellWidth(),A=i<0?e:e-i;(0,s.cl)(this._$bottomShader,D),(0,s.QQ)(this._$bottomShader,A),this._$bottomShader.css("left",this._getShaderOffset(m,r-this._workSpace.getCellWidth())),t.append(this._$bottomShader)}_renderAllDayShader(t,e){this._workSpace.option("showAllDayPanel")&&(this._$allDayIndicator=(0,l.Z)("<div>").addClass(F4),(0,s.QQ)(this._$allDayIndicator,this._workSpace.getAllDayHeight()),(0,s.cl)(this._$allDayIndicator,t),this._$allDayIndicator.css("left",this._getShaderOffset(e,t)),this._workSpace._$allDayPanel.prepend(this._$allDayIndicator))}_getShaderOffset(t,e){return this._workSpace.getGroupedStrategy().getShaderOffset(t,e)}_getShaderTopOffset(t){return this._workSpace.getGroupedStrategy().getShaderTopOffset(t)}_getShaderHeight(t,e){return this._workSpace.getGroupedStrategy().getShaderHeight()}_getShaderMaxHeight(t,e){return this._workSpace.getGroupedStrategy().getShaderMaxHeight()}_getShaderWidth(t){return this._workSpace.getGroupedStrategy().getShaderWidth(t)}clean(){super.clean(),this._workSpace&&this._workSpace._$allDayPanel&&this._workSpace._$allDayPanel.find("."+F4).remove()}};class Ase{constructor(t){this.scheduler=t,this.workspace=t._workSpace,this.appointments=t._appointments,this.initialPosition={left:0,top:0},this.appointmentInfo=null,this.dragBetweenComponentsPromise=null}isAllDay(t){return t.data("dxAppointmentSettings").allDay}onDragStart(t){var{itemSettings:e,itemData:i,initialPosition:r}=t;this.initialPosition=r,this.appointmentInfo={appointment:i,settings:e},this.appointments.notifyObserver("hideAppointmentTooltip")}onDragMove(t){t.fromComponent!==t.toComponent&&this.appointments.notifyObserver("removeDroppableCellClass")}getAppointmentElement(t){return(0,l.Z)(t.event.data&&t.event.data.itemElement||t.itemElement)}onDragEnd(t){var e=this.getAppointmentElement(t),i=this.appointments._getItemData(e);this.appointments._getAppointmentContainer(this.isAllDay(e)).append(e);var m=this.workspace.getDroppableCellIndex(),D=this.workspace.getCellIndexByCoordinates(this.initialPosition);this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:t,element:e,rawAppointment:i,newCellIndex:m,oldCellIndex:D})}onDragCancel(){this.removeDroppableClasses()}getItemData(t){var i=(0,l.Z)(t).data(Ik)?.appointment,r=this.appointments._getItemData(t);return i||r}getItemSettings(t){var e=(0,l.Z)(t).data(Ik);return e&&e.settings||[]}createDragStartHandler(t,e){return i=>{i.itemData=this.getItemData(i.itemElement),i.itemSettings=this.getItemSettings(i.itemElement),e.onDragStart&&e.onDragStart(i),i.cancel||t.onDragStart(i)}}createDragMoveHandler(t,e){return i=>{e.onDragMove&&e.onDragMove(i),i.cancel||t.onDragMove(i)}}createDragEndHandler(t,e){return i=>{this.appointmentInfo=null,e.onDragEnd&&e.onDragEnd(i),i.cancel||(t.onDragEnd(i),i.fromComponent!==i.toComponent&&e.onRemove&&e.onRemove(i)),!0===i.cancel&&this.removeDroppableClasses(),!0!==i.cancel&&function Ise(n){return"dxScheduler"===n.NAME}(i.toComponent)&&(i.toComponent._getDragBehavior().dragBetweenComponentsPromise=new P.BH)}}createDropHandler(t){return e=>{var i=this.appointments.invoke("getUpdatedData",e.itemData);e.itemData=(0,y.l)({},e.itemData,i),e.fromComponent!==e.toComponent&&t.onAdd&&t.onAdd(e),this.dragBetweenComponentsPromise&&this.dragBetweenComponentsPromise.resolve()}}addTo(t,e){var i=this.scheduler.option("appointmentDragging")||{},r=(0,y.l)({component:this.scheduler,contentTemplate:null,filter:".".concat("dx-scheduler-appointment"),immediate:!1,onDragStart:this.onDragStart.bind(this),onDragMove:this.onDragMove.bind(this),onDragEnd:this.onDragEnd.bind(this),onDragCancel:this.onDragCancel.bind(this)},e);this.appointments._createComponent(t,BB.Z,(0,y.l)({},r,i,{onDragStart:this.createDragStartHandler(r,i),onDragMove:this.createDragMoveHandler(r,i),onDragEnd:this.createDragEndHandler(r,i),onDrop:this.createDropHandler(i),onCancelByEsc:!0}))}updateDragSource(t,e){var{appointmentInfo:i}=this;(i||t)&&this.appointments._setDragSourceAppointment(t||i.appointment,e||i.settings)}removeDroppableClasses(){this.appointments._removeDragSourceClassFromDraggedAppointment(),this.workspace.removeDroppableCellClass()}}const V4=class Pse extends ca.Z{notifyObserver(t,e){var i=this.option("observer");i&&i.fire(t,e)}invoke(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}};var H4=(0,k.V4)("scroll","dxSchedulerVirtualScrolling");class Fse{constructor(t){this.options=t,t&&(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())}get isRTL(){return this.options.isRTL()}get verticalVirtualScrolling(){return this._verticalVirtualScrolling}set verticalVirtualScrolling(t){this._verticalVirtualScrolling=t}get horizontalVirtualScrolling(){return this._horizontalVirtualScrolling}set horizontalVirtualScrolling(t){this._horizontalVirtualScrolling=t}get document(){return b.Z.getDocument()}get height(){return this.options.getSchedulerHeight()}get width(){return this.options.getSchedulerWidth()}get rowHeight(){return this._rowHeight}set rowHeight(t){this._rowHeight=t}get outlineCount(){return this.options.getScrolling().outlineCount}get cellWidth(){return this._cellWidth}set cellWidth(t){this._cellWidth=t}get viewportWidth(){var t=this.width&&this.options.getViewWidth();return t>0?t:this.options.getWindowWidth()}get viewportHeight(){var t=this.height&&this.options.getViewHeight();return t>0?t:this.options.getWindowHeight()}get cellCountInsideTopVirtualRow(){var t;return(null===(t=this.verticalScrollingState)||void 0===t?void 0:t.virtualItemCountBefore)||0}get cellCountInsideLeftVirtualCell(){var t;return(null===(t=this.horizontalScrollingState)||void 0===t?void 0:t.virtualItemCountBefore)||0}get cellCountInsideRightVirtualCell(){var t;return(null===(t=this.horizontalScrollingState)||void 0===t?void 0:t.virtualItemCountAfter)||0}get topVirtualRowsCount(){return this.cellCountInsideTopVirtualRow>0?1:0}get leftVirtualCellsCount(){return(this.isRTL?this.cellCountInsideRightVirtualCell:this.cellCountInsideLeftVirtualCell)>0?1:0}get virtualRowOffset(){var t;return(null===(t=this.verticalScrollingState)||void 0===t?void 0:t.virtualItemSizeBefore)||0}get virtualCellOffset(){var t;return(null===(t=this.horizontalScrollingState)||void 0===t?void 0:t.virtualItemSizeBefore)||0}get scrollingState(){var t,e;return{vertical:null===(t=this.verticalVirtualScrolling)||void 0===t?void 0:t.state,horizontal:null===(e=this.horizontalVirtualScrolling)||void 0===e?void 0:e.state}}get verticalScrollingState(){return this.scrollingState.vertical}get horizontalScrollingState(){return this.scrollingState.horizontal}get scrollingOrientation(){var t=this.options.getScrolling();return"standard"===t.mode?"none":t.orientation||"both"}get verticalScrollingAllowed(){return"vertical"===this.scrollingOrientation||"both"===this.scrollingOrientation}get horizontalScrollingAllowed(){return"horizontal"===this.scrollingOrientation||"both"===this.scrollingOrientation}setViewOptions(t){this.options=t,this.verticalVirtualScrolling&&(this.verticalVirtualScrolling.options=t,this.verticalVirtualScrolling.itemSize=this.rowHeight,this.verticalVirtualScrolling.viewportSize=this.viewportHeight),this.horizontalVirtualScrolling&&(this.horizontalVirtualScrolling.options=t,this.verticalVirtualScrolling.itemSize=this.cellWidth,this.verticalVirtualScrolling.viewportSize=this.viewportWidth)}getRenderState(){var t,e,i=(null===(t=this.verticalVirtualScrolling)||void 0===t?void 0:t.getRenderState())||{},r=(null===(e=this.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{};return(0,di.Z)({},i,r)}getCellHeight(){var t=this.options.getCellHeight();return Math.floor(t>0?t:50)}getCellWidth(){var t=this.options.getCellWidth(),e=this.options.getCellMinWidth();return(!t||t<e)&&(t=e),Math.floor(t>0?t:1)}calculateCoordinatesByDataAndPosition(t,e,i,r,m){var{rowIndex:D,columnIndex:A}=e,{startDate:N,endDate:Q,allDay:se}=t,we=i.getTime(),Re=N.getTime(),Ue=Q.getTime(),st=se||!r?0:(we-Re)/(Ue-Re),Ot=this.getCellWidth(),Kt=this.getCellHeight(),sn=m?(D+st)*Kt:D*Kt,wn=m?A*Ot:(A+st)*Ot;return this.isRTL&&(wn=this.options.getScrollableOuterWidth()-wn),{top:sn,left:wn}}dispose(){this._onScrollHandler&&d.Z.off(this.document,H4,this._onScrollHandler)}createVirtualScrolling(){(this.verticalScrollingAllowed!==!!this.verticalVirtualScrolling||this.horizontalScrollingAllowed!==!!this.horizontalVirtualScrolling)&&(this._rowHeight=this.getCellHeight(),this._cellWidth=this.getCellWidth(),this._createVirtualScrollingBase())}_createVirtualScrollingBase(){this.verticalScrollingAllowed&&(this.verticalVirtualScrolling=new Vse((0,di.Z)({},this.options,{viewportHeight:this.viewportHeight,rowHeight:this.rowHeight,outlineCount:this.outlineCount}))),this.horizontalScrollingAllowed&&(this.horizontalVirtualScrolling=new Nse((0,di.Z)({},this.options,{viewportWidth:this.viewportWidth,cellWidth:this.cellWidth,outlineCount:this.outlineCount})))}isAttachWindowScrollEvent(){return(this.horizontalScrollingAllowed||this.verticalScrollingAllowed)&&!this.height}attachScrollableEvents(){this.isAttachWindowScrollEvent()&&this._attachWindowScroll()}_attachWindowScroll(){var t=(0,mi.Jj)();this._onScrollHandler=this.options.createAction(()=>{var{scrollX:e,scrollY:i}=t;(e>=10||i>=10)&&this.handleOnScrollEvent({left:e,top:i})}),d.Z.on(this.document,H4,this._onScrollHandler)}handleOnScrollEvent(t){if(t){var e,i,N,Q,{left:r,top:m}=t,D=(0,w.$K)(m)&&(null===(e=this.verticalVirtualScrolling)||void 0===e?void 0:e.updateState(m)),A=(0,w.$K)(r)&&(null===(i=this.horizontalVirtualScrolling)||void 0===i?void 0:i.updateState(r));(D||A)&&(null===(N=(Q=this.options).updateRender)||void 0===N||N.call(Q))}}updateDimensions(t){var e=this.getCellHeight(),i=this.verticalScrollingAllowed&&e!==this.rowHeight;(i||t)&&this.verticalVirtualScrolling&&(this.rowHeight=e,this.verticalVirtualScrolling.viewportSize=this.viewportHeight,this.verticalVirtualScrolling.reinitState(e,t));var D,A,r=this.getCellWidth(),m=this.horizontalScrollingAllowed&&r!==this.cellWidth;(m||t)&&this.horizontalVirtualScrolling&&(this.cellWidth=r,this.horizontalVirtualScrolling.viewportSize=this.viewportWidth,this.horizontalVirtualScrolling.reinitState(r,t)),(i||m)&&(null===(D=(A=this.options).updateGrid)||void 0===D||D.call(A))}}class z4{constructor(t){this.options=t,this._state=this.defaultState,this.viewportSize=t.viewportSize,this._itemSize=t.itemSize,this._position=-1,this._itemSizeChanged=!1,this.updateState(0)}get itemSize(){return this._itemSize}set itemSize(t){this._itemSizeChanged=this._itemSize!==t,this._itemSize=t}get state(){return this._state}set state(t){this._state=t}get startIndex(){return this.state.startIndex}get pageSize(){return Math.ceil(this.viewportSize/this.itemSize)}get outlineCount(){return(0,w.$K)(this.options.outlineCount)?this.options.outlineCount:Math.floor(this.pageSize/2)}get groupCount(){return this.options.getGroupCount()}get isVerticalGrouping(){return this.options.isVerticalGrouping()}get defaultState(){return{prevPosition:0,startIndex:-1,itemCount:0,virtualItemCountBefore:0,virtualItemCountAfter:0,outlineCountBefore:0,outlineCountAfter:0,virtualItemSizeBefore:0,virtualItemSizeAfter:0,outlineSizeBefore:0,outlineSizeAfter:0}}get maxScrollPosition(){return this.getTotalItemCount()*this.itemSize-this.viewportSize}get position(){return this._position}set position(t){this._position=t}needUpdateState(t){var{prevPosition:e,startIndex:i}=this.state;if(i<0)return!0;var m=!1;if(this._validateAndSavePosition(t)){if(0===t||t===this.maxScrollPosition)return!0;var A=Math.floor(e/this.itemSize),N=Math.floor(t/this.itemSize);m=Math.abs(A-N)>=this.outlineCount}return m}_validateAndSavePosition(t){if(!(0,w.$K)(t))return!1;var e=this.position!==t;return this.position=t,e}_correctPosition(t){return t>=0?Math.min(t,this.maxScrollPosition):-1}updateState(t,e){if(t=this._correctPosition(t),!this.needUpdateState(t)&&!e)return!1;var i=this._calcItemInfoBefore(t),r=this._calcItemDeltaBefore(i),{outlineCountAfter:m,virtualItemCountAfter:D,itemCountWithAfter:A}=this._calcItemInfoAfter(r),{virtualItemCountBefore:N,outlineCountBefore:Q}=i,se=Q+A+m,we=Math.floor(t/this.itemSize);return this.state.prevPosition=we*this.itemSize,this.state.startIndex=we-Q,this.state.virtualItemCountBefore=N,this.state.outlineCountBefore=Q,this.state.itemCount=se,this.state.outlineCountAfter=m,this.state.virtualItemCountAfter=D,this._updateStateCore(),!0}reinitState(t,e){var{position:i}=this;this.itemSize=t,this.updateState(0,e),i>0&&this.updateState(i,e)}_calcItemInfoBefore(t){var e=Math.floor(t/this.itemSize),i=Math.min(e,this.outlineCount);return{virtualItemCountBefore:e-=i,outlineCountBefore:i}}_calcItemDeltaBefore(t){var{virtualItemCountBefore:e,outlineCountBefore:i}=t;return this.getTotalItemCount()-e-i}getTotalItemCount(){throw"getTotalItemCount method should be implemented"}getRenderState(){throw"getRenderState method should be implemented"}_calcItemInfoAfter(t){var e=t>=this.pageSize?this.pageSize:t,i=t-e,r=i>0?Math.min(i,this.outlineCount):0;return i>0&&(i-=r),{virtualItemCountAfter:i,outlineCountAfter:r,itemCountWithAfter:e}}_updateStateCore(){var{state:t}=this,se=this.itemSize*t.virtualItemCountBefore,we=this.itemSize*t.virtualItemCountAfter;(this._itemSizeChanged||t.virtualItemSizeBefore+t.outlineSizeBefore<se+this.itemSize*t.outlineCountBefore||t.virtualItemSizeAfter+t.outlineSizeAfter<we+this.itemSize*t.outlineCountAfter)&&this._updateStateVirtualItems(se,we)}_updateStateVirtualItems(t,e){var{state:i}=this;i.virtualItemSizeBefore=t,i.virtualItemSizeAfter=e}}class Vse extends z4{constructor(t){super((0,di.Z)({},t,{itemSize:t.rowHeight,viewportSize:t.viewportHeight}))}get prevTopPosition(){return this.state.prevPosition}get rowCount(){return this.state.itemCount}get topVirtualRowCount(){return this.state.virtualItemCountBefore}get bottomVirtualRowCount(){return this.state.virtualItemCountAfter}getTotalItemCount(){return this.options.getTotalRowCount(this.groupCount,this.isVerticalGrouping)}getRenderState(){return{topVirtualRowHeight:this.state.virtualItemSizeBefore,bottomVirtualRowHeight:this.state.virtualItemSizeAfter,startRowIndex:this.state.startIndex,rowCount:this.state.itemCount,startIndex:this.state.startIndex}}}class Nse extends z4{constructor(t){super((0,di.Z)({},t,{itemSize:t.cellWidth,viewportSize:t.viewportWidth}))}get isRTL(){return this.options.isRTL()}getTotalItemCount(){return this.options.getTotalCellCount(this.groupCount,this.isVerticalGrouping)}getRenderState(){return{leftVirtualCellWidth:this.state.virtualItemSizeBefore,rightVirtualCellWidth:this.state.virtualItemSizeAfter,startCellIndex:this.state.startIndex,cellCount:this.state.itemCount,cellWidth:this.itemSize}}_updateStateVirtualItems(t,e){if(this.isRTL){var{state:i}=this;i.virtualItemSizeAfter=t,i.virtualItemSizeBefore=e,i.startIndex=this.getTotalItemCount()-this.startIndex-this.state.itemCount}else super._updateStateVirtualItems(t,e)}}class Hse{constructor(t){this._workspace=t,this._renderAppointmentTimeoutID=null}getRenderTimeout(){return this._workspace.option("isRenovatedAppointments")?-1:15}get workspace(){return this._workspace}updateRender(){this._renderGrid(),this._renderAppointments()}_renderGrid(){this.workspace.renderWorkSpace(!1)}_renderAppointments(){var t=this.getRenderTimeout();t>=0?(clearTimeout(this._renderAppointmentTimeoutID),this._renderAppointmentTimeoutID=setTimeout(()=>this.workspace.updateAppointments(),t)):this.workspace.updateAppointments()}}var Use=["startDate","endDate","isFirstGroupCell","isLastGroupCell"];class Zse{constructor(t){this._viewDataGenerator=t}getCompleteDateHeaderMap(t,e){var{isGenerateWeekDaysHeaderData:i}=t,r=[];if(i){var m=this._generateWeekDaysHeaderRowMap(t,e);r.push(m)}var D=this._generateHeaderDateRow(t,e);return r.push(D),r}_generateWeekDaysHeaderRowMap(t,e){for(var{isGroupedByDate:i,groups:r,groupOrientation:m,startDayHour:D,endDayHour:A,hoursInterval:N,isHorizontalGrouping:Q,intervalCount:se}=t,we=this._viewDataGenerator.getCellCountInDay(D,A,N),Re=zk(r,m),Ue=e[0][0].allDay?1:0,st=i?Re*we:we,Ot=Lp(r),wn=this._viewDataGenerator.daysInInterval*se*(Q&&!i?Ot:1),rn=[],Ft=0;Ft<wn;Ft+=1){var qt=e[Ue][Ft*st];rn.push((0,di.Z)({},qt,{colSpan:st,text:_T(qt.startDate),isFirstGroupCell:!1,isLastGroupCell:!1}))}return rn}_generateHeaderDateRow(t,e){var{today:i,isGroupedByDate:r,groupOrientation:m,groups:D,headerCellTextFormat:A,getDateForHeaderText:N,interval:Q,startViewDate:se,startDayHour:we,endDayHour:Re,hoursInterval:Ue,intervalCount:st,currentDate:Ot,viewType:Kt}=t,sn=zk(D,m),wn=e[0][0].allDay?1:0,rn=r?sn:1,Ft="vertical"===m,qt=this._viewDataGenerator.getCellCount({intervalCount:st,currentDate:Ot,viewType:Kt,hoursInterval:Ue,startDayHour:we,endDayHour:Re}),un=this._viewDataGenerator.getCellCountInDay(we,Re,Ue);return(r?e[wn].filter((Kn,Yn)=>Yn%sn==0):e[wn]).map((Kn,Yn)=>{var{startDate:ai,isFirstGroupCell:gi,isLastGroupCell:Ci}=Kn,Ki=(0,Mi.Z)(Kn,Use),Bi=((n,t,e,i,r)=>{var m=i(n,t,r);return zo.Z.format(m,e)})(Yn%qt,ai,A,N,{interval:Q,startViewDate:se,startDayHour:we,cellCountInDay:un});return(0,di.Z)({},Ki,{startDate:ai,text:Bi,today:te.Z.sameDate(ai,i),colSpan:rn,isFirstGroupCell:r||gi&&!Ft,isLastGroupCell:r||Ci&&!Ft})})}generateDateHeaderData(t,e,i){var{isGenerateWeekDaysHeaderData:r,cellWidth:m,isProvideVirtualCellsWidth:D,startDayHour:A,endDayHour:N,hoursInterval:Q,isMonthDateHeader:se}=i,we=[],Re={},Ue=m||0;r&&(Re=this._generateDateHeaderDataRow(i,t,e,this._viewDataGenerator.getCellCountInDay(A,N,Q),0,Ue),we.push(Re.dateRow));var st=this._generateDateHeaderDataRow(i,t,e,1,r?1:0,Ue);return we.push(st.dateRow),{dataMap:we,leftVirtualCellWidth:D?st.leftVirtualCellWidth:void 0,rightVirtualCellWidth:D?st.rightVirtualCellWidth:void 0,leftVirtualCellCount:st.leftVirtualCellCount,rightVirtualCellCount:st.rightVirtualCellCount,weekDayLeftVirtualCellWidth:Re.leftVirtualCellWidth,weekDayRightVirtualCellWidth:Re.rightVirtualCellWidth,weekDayLeftVirtualCellCount:Re.leftVirtualCellCount,weekDayRightVirtualCellCount:Re.rightVirtualCellCount,isMonthDateHeader:se}}_generateDateHeaderDataRow(t,e,i,r,m,D){var{startCellIndex:A,cellCount:N,isProvideVirtualCellsWidth:Q,groups:se,groupOrientation:we,isGroupedByDate:Re}=t,Ue=zk(se,we),st=Re?Ue*r:r,Ot=Math.floor(A/st),Kt=a4(N,i),sn=Math.ceil((A+Kt)/st),Ft=Ot*st,un=Uk(i)-sn*st;return{dateRow:e[m].slice(Ot,sn),leftVirtualCellCount:Ft,leftVirtualCellWidth:Q?Ft*D:void 0,rightVirtualCellCount:un,rightVirtualCellWidth:Q?un*D:void 0}}}class W4{constructor(t,e,i,r){this.groupedDataMap=t.generateGroupedDataMap(e),this.completeViewDataMap=i,this._viewOptions=r}getGroupStartDate(t){var e=this.getFirstGroupRow(t);if(e){var{startDate:i}=e[0].cellData;return i}}getGroupEndDate(t){var e=this.getLastGroupRow(t);if(e){var i=e.length-1,{cellData:r}=e[i],{endDate:m}=r;return m}}findGroupCellStartDate(t,e,i,r){var m=this.getGroupFromDateTableGroupMap(t),D=(Q,se)=>{var{cellData:we}=m[Q][se],{startDate:Re,endDate:Ue}=we;if(r&&(Re=te.Z.trimTime(Re),Ue=te.Z.setToDayEnd(Re)),te.Z.intervalsOverlap({firstMin:e,firstMax:i,secondMin:Re,secondMax:Ue}))return Re},A=(()=>{for(var Q=m[0].length,se=0;se<Q;++se)for(var we=0;we<m.length;++we){var Re=D(we,se);if(Re)return Re}})(),N=(()=>{for(var Q=0;Q<m.length;++Q)for(var se=m[Q],we=0;we<se.length;++we){var Re=D(Q,we);if(Re)return Re}})();return A>N?N:A}findAllDayGroupCellStartDate(t,e){var i=this.getGroupStartDate(t);return i>e?i:e}findCellPositionInMap(t){for(var{groupIndex:e,startDate:i,isAllDay:r,index:m}=t,D=r?te.Z.trimTime(i).getTime():i.getTime(),A=Kt=>{if(!Q0(this._viewOptions.viewType))return te.Z.sameDate(i,Kt.startDate);var sn=Kt.startDate.getTime(),wn=Kt.endDate.getTime();return r?Kt.allDay&&D>=sn&&D<=wn:D>=sn&&D<wn},{allDayPanelGroupedMap:N,dateTableGroupedMap:Q}=this.groupedDataMap,se=r&&!this._viewOptions.isVerticalGrouping?N[e]?[N[e]]:[]:Q[e]||[],we=0;we<se.length;++we)for(var Re=se[we],Ue=0;Ue<Re.length;++Ue){var st=Re[Ue],{cellData:Ot}=st;if(this._isSameGroupIndexAndIndex(Ot,e,m)&&A(Ot))return st.position}}_isSameGroupIndexAndIndex(t,e,i){return t.groupIndex===e&&(void 0===i||t.index===i)}getCellsGroup(t){var{dateTableGroupedMap:e}=this.groupedDataMap,i=e[t];if(i){var{cellData:r}=i[0][0];return r.groups}}getCompletedGroupsInfo(){var{dateTableGroupedMap:t}=this.groupedDataMap;return t.map(e=>{var i=e[0][0],{allDay:r,groupIndex:m}=i.cellData;return{allDay:r,groupIndex:m,startDate:this.getGroupStartDate(m),endDate:this.getGroupEndDate(m)}}).filter(e=>{var{startDate:i}=e;return!!i})}getGroupIndices(){return this.getCompletedGroupsInfo().map(t=>{var{groupIndex:e}=t;return e})}getGroupFromDateTableGroupMap(t){var{dateTableGroupedMap:e}=this.groupedDataMap;return e[t]}getFirstGroupRow(t){var e=this.getGroupFromDateTableGroupMap(t);if(e){var{cellData:i}=e[0][0];return i.allDay?e[1]:e[0]}}getLastGroupRow(t){var{dateTableGroupedMap:e}=this.groupedDataMap,i=e[t];if(i)return i[i.length-1]}getLastGroupCellPosition(t){var e=this.getLastGroupRow(t);return e?.[e?.length-1].position}getRowCountInGroup(t){var e=this.getLastGroupRow(t);return(e[e.length-1].cellData.index+1)/e.length}}var U4=(n,t)=>n?te.Z.getFirstWeekDate(n,t):void 0,Yse=(n,t,e,i,r)=>{if(n%2==0){var m=((n,t,e,i,r)=>{if(!ia.isTimezoneChangeInDate(t))return t;var m=ia.getDateWithoutTimezoneChange(e),D=new Date(m),A=Math.round(i),N=e4(e,r);return D.setMilliseconds(D.getMilliseconds()+A*n-N),D})(n,t,e,i,r);return zo.Z.format(m,"shorttime")}return""},Xse=["allDay","startDate","endDate","groups","groupIndex","isFirstGroupCell","isLastGroupCell","index"];class qse{constructor(t){this._viewDataGenerator=t}getCompleteTimePanelMap(t,e){var{startViewDate:i,cellDuration:r,startDayHour:m,isVerticalGrouping:D,intervalCount:A,currentDate:N,viewType:Q,hoursInterval:se,endDayHour:we}=t,Re=this._viewDataGenerator.getRowCount({intervalCount:A,currentDate:N,viewType:Q,hoursInterval:se,startDayHour:m,endDayHour:we}),Ue=this._viewDataGenerator.getCellCount({intervalCount:A,currentDate:N,viewType:Q,hoursInterval:se,startDayHour:m,endDayHour:we}),st=0;return e.map((Ot,Kt)=>{var sn=Ot[0],{allDay:wn,startDate:rn,groups:Ft,groupIndex:qt,isFirstGroupCell:un,isLastGroupCell:In,index:Kn}=sn,Yn=(0,Mi.Z)(sn,Xse);return wn&&(st+=1),(0,di.Z)({},Yn,{startDate:rn,allDay:wn,text:Yse((Kt-st)%Re,rn,i,r,m),groups:D?Ft:void 0,groupIndex:D?qt:void 0,isFirstGroupCell:D&&un,isLastGroupCell:D&&In,index:Math.floor(Kn/Ue)})})}generateTimePanelData(t,e){var{startRowIndex:i,rowCount:r,topVirtualRowHeight:m,bottomVirtualRowHeight:D,isGroupedAllDayPanel:A,isVerticalGrouping:N,isAllDayPanelVisible:Q}=e,we=i+(N||!Q?0:1),Re=Zk(r,t),Ue=t.slice(we,we+Re),st={topVirtualRowHeight:m,bottomVirtualRowHeight:D,isGroupedAllDayPanel:A},{previousGroupedData:Ot}=this._generateTimePanelDataFromMap(Ue,N);return st.groupedData=Ot,st}_generateTimePanelDataFromMap(t,e){return t.reduce((i,r)=>{var{previousGroupIndex:m,previousGroupedData:D}=i,A=r.groupIndex;return A!==m&&D.push({dateTable:[],isGroupedAllDayPanel:O6(!!r.allDay,e),groupIndex:A,key:w6(A,e)}),r.allDay?D[D.length-1].allDayPanel=r:D[D.length-1].dateTable.push(r),{previousGroupIndex:A,previousGroupedData:D}},{previousGroupIndex:-1,previousGroupedData:[]})}}var Z4=te.Z.dateToMilliseconds("hour"),K4=te.Z.dateToMilliseconds("day");class fw{get daysInInterval(){return 1}get isWorkView(){return!1}get tableAllDay(){return!1}isSkippedDate(){return!1}getStartViewDate(t){return this._calculateStartViewDate(t)}getCompleteViewDataMap(t){var{groups:e,isGroupedByDate:i,isHorizontalGrouping:r,isVerticalGrouping:m,intervalCount:D,currentDate:A,viewType:N,startDayHour:Q,endDayHour:se,hoursInterval:we}=t;this._setVisibilityDates(t),this.setHiddenInterval(Q,se,we);var Re=r6(e),Ue=this.getCellCount({intervalCount:D,currentDate:A,viewType:N,startDayHour:Q,endDayHour:se,hoursInterval:we}),st=this.getRowCount({intervalCount:D,currentDate:A,viewType:N,hoursInterval:we,startDayHour:Q,endDayHour:se}),Ot=[],Kt=this._generateAllDayPanelData(t,st,Ue),sn=this._generateViewCellsData(t,st,Ue);return Kt&&Ot.push(Kt),Ot.push(...sn),r&&!i&&(Ot=this._transformViewDataMapForHorizontalGrouping(Ot,Re)),m&&(Ot=this._transformViewDataMapForVerticalGrouping(Ot,Re)),i&&(Ot=this._transformViewDataMapForGroupingByDate(Ot,Re)),this._addKeysToCells(Ot)}_transformViewDataMapForHorizontalGrouping(t,e){var i=t.map(r=>r.slice());return e.slice(1).forEach((r,m)=>{var D=m+1;t.forEach((A,N)=>{var Q=A.map(se=>(0,di.Z)({},se,{groups:r,groupIndex:D}));i[N].push(...Q)})}),i}_transformViewDataMapForVerticalGrouping(t,e){var i=t.map(r=>r.slice());return e.slice(1).forEach((r,m)=>{var D=m+1,A=t.map(N=>N.map(se=>(0,di.Z)({},se,{groupIndex:D,groups:r})));i.push(...A)}),i}_transformViewDataMapForGroupingByDate(t,e){var i=e.slice(1),r=i.length;return t.map(D=>D.reduce((N,Q)=>[...N,(0,di.Z)({},Q,{isFirstGroupCell:!0,isLastGroupCell:0===r}),...i.map((we,Re)=>(0,di.Z)({},Q,{groups:we,groupIndex:Re+1,isFirstGroupCell:!1,isLastGroupCell:Re===r-1}))],[]))}_addKeysToCells(t){var e=t[0].length,{currentViewDataMap:i}=t.reduce((r,m,D)=>{var{allDayPanelsCount:A,currentViewDataMap:N}=r,se=(D-A)*e,we=m[0].allDay?A+1:A;return N[D].forEach((Re,Ue)=>{Re.key=se+Ue}),{allDayPanelsCount:we,currentViewDataMap:N}},{allDayPanelsCount:0,currentViewDataMap:t});return i}generateViewDataMap(t,e){var{rowCount:i,startCellIndex:r,startRowIndex:m,cellCount:D,isVerticalGrouping:A,isAllDayPanelVisible:N}=e,Q=(st,Ot,Kt,sn)=>st.slice(Kt,void 0!==sn?Kt+sn:void 0).map((rn,Ft)=>({cellData:rn,position:{rowIndex:Ot,columnIndex:Ft}})),se=m,we=[];this._isStandaloneAllDayPanel(A,N)&&(se++,we=Q(t[0],0,r,D));var Re=Zk(i,t);return{allDayPanelMap:we,dateTableMap:t.slice(se,se+Re).map((st,Ot)=>Q(st,Ot,r,D))}}_isStandaloneAllDayPanel(t,e){return!t&&e}getViewDataFromMap(t,e,i){var{topVirtualRowHeight:r,bottomVirtualRowHeight:m,leftVirtualCellWidth:D,rightVirtualCellWidth:A,cellCount:N,rowCount:Q,startRowIndex:se,startCellIndex:we,isProvideVirtualCellsWidth:Re,isGroupedAllDayPanel:Ue,isVerticalGrouping:st,isAllDayPanelVisible:Ot}=i,{allDayPanelMap:Kt,dateTableMap:sn}=e,{groupedData:wn}=sn.reduce((In,Kn)=>{var{previousGroupIndex:Yn,groupedData:ai}=In,gi=Kn.map(ri=>{var{cellData:Fi}=ri;return Fi}),Ci=gi[0],Ki=Ci.allDay,Bi=Ci.groupIndex;return Bi!==Yn&&ai.push({dateTable:[],isGroupedAllDayPanel:O6(!!Ki,st),groupIndex:Bi,key:w6(Bi,st)}),Ki?ai[ai.length-1].allDayPanel=gi:ai[ai.length-1].dateTable.push({cells:gi,key:gi[0].key-we}),{groupedData:ai,previousGroupIndex:Bi}},{previousGroupIndex:-1,groupedData:[]});this._isStandaloneAllDayPanel(st,Ot)&&(wn[0].allDayPanel=Kt.map(In=>{var{cellData:Kn}=In;return Kn}));var rn=Uk(t),Ft=o4(t),qt=a4(N,t),un=Zk(Q,t);return{groupedData:wn,topVirtualRowHeight:r,bottomVirtualRowHeight:m,leftVirtualCellWidth:Re?D:void 0,rightVirtualCellWidth:Re?A:void 0,isGroupedAllDayPanel:Ue,leftVirtualCellCount:we,rightVirtualCellCount:void 0===N?0:rn-we-qt,topVirtualRowCount:se,bottomVirtualRowCount:Ft-se-un}}_generateViewCellsData(t,e,i){for(var r=[],m=0;m<e;m+=1)r.push(this._generateCellsRow(t,!1,m,e,i));return r}_generateAllDayPanelData(t,e,i){return t.isAllDayPanelVisible?this._generateCellsRow(t,!0,0,e,i):null}_generateCellsRow(t,e,i,r,m){for(var D=[],A=0;A<m;++A){var N=this.getCellData(i,A,t,e);N.index=i*m+A,N.isFirstGroupCell=this._isFirstGroupCell(i,A,t,r,m),N.isLastGroupCell=this._isLastGroupCell(i,A,t,r,m),D.push(N)}return D}getCellData(t,e,i,r){return r?this.prepareAllDayCellData(i,t,e):this.prepareCellData(i,t,e)}prepareCellData(t,e,i){var{groups:r,startDayHour:m,endDayHour:D,interval:A,hoursInterval:N}=t,Q=r6(r),se=this.getDateByCellIndices(t,e,i,this.getCellCountInDay(m,D,N)),Re={startDate:se,endDate:this.calculateEndDate(se,A,D),allDay:this.tableAllDay,groupIndex:0};return Q.length>0&&(Re.groups=Q[0]),Re}prepareAllDayCellData(t,e,i){var r=this.prepareCellData(t,e,i),m=te.Z.trimTime(r.startDate);return(0,di.Z)({},r,{startDate:m,endDate:m,allDay:!0})}getDateByCellIndices(t,e,i,r){var m=t.startViewDate,{startDayHour:D,interval:A,firstDayOfWeek:N,intervalCount:Q}=t,se=m.getHours()!==Math.floor(D);if(se){var we=Q6(m,D);m=new Date(we-te.Z.dateToMilliseconds("day"))}var Re=this.getCellCount(t),Ue=this.getRowCount(t),st=this._calculateCellIndex(e,i,Ue,Re),Ot=this.getMillisecondsOffset(st,A,r),Kt=this.isWorkView?this.getTimeOffsetByColumnIndex(i,this.getFirstDayOfWeek(N),Re,Q):0,sn=m.getTime(),wn=new Date(sn+Ot+Kt),rn=se?0:te.Z.getTimezonesDifference(m,wn);return wn.setTime(wn.getTime()+rn),wn}getMillisecondsOffset(t,e,i){return e*t+Math.floor(t/i)*this.hiddenInterval}getTimeOffsetByColumnIndex(t,e,i,r){var m=Math.max(0,e-1),A=Math.floor((t+m)/(i/r));return K4*A*2}calculateEndDate(t,e,i){var r=new Date(t);return r.setMilliseconds(r.getMilliseconds()+Math.round(e)),r}_calculateCellIndex(t,e,i,r){return((n,t,e)=>t*e+n)(t,e,i)}generateGroupedDataMap(t){var{allDayPanelMap:e,dateTableMap:i}=t,{previousGroupedDataMap:r}=i.reduce((D,A)=>{var{previousGroupedDataMap:N,previousRowIndex:Q,previousGroupIndex:se}=D,{groupIndex:we}=A[0].cellData,Re=we===se?Q+1:0;return A.forEach(Ue=>{var{groupIndex:st}=Ue.cellData;N[st]||(N[st]=[]),N[st][Re]||(N[st][Re]=[]),N[st][Re].push(Ue)}),{previousGroupedDataMap:N,previousRowIndex:Re,previousGroupIndex:we}},{previousGroupedDataMap:[],previousRowIndex:-1,previousGroupIndex:-1}),m=[];return e?.forEach(D=>{var{groupIndex:A}=D.cellData;m[A]||(m[A]=[]),m[A].push(D)}),{allDayPanelGroupedMap:m,dateTableGroupedMap:r}}_isFirstGroupCell(t,e,i,r,m){var{groupOrientation:D,groups:A,isGroupedByDate:N}=i,Q=Lp(A);return N?e%Q==0:D===x6?e%m==0:t%r==0}_isLastGroupCell(t,e,i,r,m){var{groupOrientation:D,groups:A,isGroupedByDate:N}=i,Q=Lp(A);return N?(e+1)%Q==0:D===x6?(e+1)%m==0:(t+1)%r==0}markSelectedAndFocusedCells(t,e){var{selectedCells:i,focusedCell:r}=e;if(!i&&!r)return t;var{allDayPanelMap:m,dateTableMap:D}=t,A=D.map(Q=>this._markSelectedAndFocusedCellsInRow(Q,i,r));return{allDayPanelMap:this._markSelectedAndFocusedCellsInRow(m,i,r),dateTableMap:A}}_markSelectedAndFocusedCellsInRow(t,e,i){return t.map(r=>{var{index:m,groupIndex:D,allDay:A,startDate:N}=r.cellData,Q=e.findIndex(we=>{var{index:Re,groupIndex:Ue,allDay:st,startDate:Ot}=we;return D===Ue&&(m===Re||void 0===Re&&N.getTime()===Ot.getTime())&&!!A==!!st}),se=!!i&&m===i.cellData.index&&D===i.cellData.groupIndex&&A===i.cellData.allDay;return se||-1!==Q?(0,di.Z)({},r,{cellData:(0,di.Z)({},r.cellData,{isSelected:Q>-1,isFocused:se})}):r})}getInterval(t){return t*Z4}_getIntervalDuration(t){return te.Z.dateToMilliseconds("day")*t}_setVisibilityDates(){}getCellCountInDay(t,e,i){var r=Wk(t,e)/i;return Math.ceil(r)}getCellCount(t){var{intervalCount:e,viewType:i,startDayHour:r,endDayHour:m,hoursInterval:D}=t,A=this.getCellCountInDay(r,m,D),N=r4(i)?A:1;return this.daysInInterval*e*N}getRowCount(t){var{viewType:e,startDayHour:i,endDayHour:r,hoursInterval:m}=t,D=this.getCellCountInDay(i,r,m);return r4(e)?1:D}setHiddenInterval(t,e,i){this.hiddenInterval=K4-this.getVisibleDayDuration(t,e,i)}getVisibleDayDuration(t,e,i){return i*this.getCellCountInDay(t,e,i)*Z4}getFirstDayOfWeek(t){return t}}class Qse extends fw{_calculateStartViewDate(t){return((n,t,e,i)=>{var r=mT(e,n,i,e);return zf(r,t)})(t.currentDate,t.startDayHour,t.startDate,this._getIntervalDuration(t.intervalCount))}}var mw=(n,t,e,i)=>{if(!n)return new Date(t);for(var r=new Date(i),m=new Date(i),D=r.getTime()<=t.getTime()?1:-1,A=new Date(new Date(m.setMonth(m.getMonth()+D*e)));!q6(t,r,A,D);)r=new Date(A),D>0&&r.setDate(1),A=new Date(new Date(A.setMonth(A.getMonth()+D*e)));return D>0?r:A},G4=(n,t,e,i)=>n*i+t,j4=(n,t)=>1===n.getDate()&&t>1,$4=(n,t)=>j4(n,t)?[zo.Z.getMonthNames("abbreviated")[n.getMonth()],zo.Z.format(n,"day")].join(" "):zo.Z.format(n,"dd"),tle=te.Z.dateToMilliseconds("day");class rle extends fw{get tableAllDay(){}getCellData(t,e,i,r){var m=super.getCellData(t,e,i,!1),D=m.startDate,{indicatorTime:A,timeZoneCalculator:N,intervalCount:Q}=i;return m.today=this.isCurrentDate(D,A,N),m.otherMonth=this.isOtherMonth(D,this._minVisibleDate,this._maxVisibleDate),m.firstDayOfMonth=j4(D,Q),m.text=$4(D,Q),m}isCurrentDate(t,e,i){return te.Z.sameDate(t,t4(e,i))}isOtherMonth(t,e,i){return!te.Z.dateInRange(t,e,i,"date")}_calculateCellIndex(t,e,i,r){return G4(t,e,0,r)}calculateEndDate(t,e,i){return zf(t,i)}getInterval(){return tle}_calculateStartViewDate(t){return((n,t,e,i,r)=>{var m=mw(e,n,i,te.Z.getFirstMonthDate(e)),D=te.Z.getFirstMonthDate(m),A=J6(r),N=te.Z.getFirstWeekDate(D,A);return zf(N,t)})(t.currentDate,t.startDayHour,t.startDate,t.intervalCount,this.getFirstDayOfWeek(t.firstDayOfWeek))}_setVisibilityDates(t){var{intervalCount:e,startDate:i,currentDate:r}=t,m=te.Z.getFirstMonthDate(i),D=mw(i,r,e,m);this._minVisibleDate=new Date(D.setDate(1));var A=new Date(D.setMonth(D.getMonth()+e));this._maxVisibleDate=new Date(A.setDate(0))}getCellCount(){return 7}getRowCount(t){return 4*t.intervalCount+2}getCellCountInDay(){return 1}setHiddenInterval(){this.hiddenInterval=0}}var ale=te.Z.dateToMilliseconds("day");class sle extends fw{_calculateCellIndex(t,e,i,r){return G4(t,e,0,r)}calculateEndDate(t,e,i){return zf(t,i)}getInterval(){return ale}_calculateStartViewDate(t){return((n,t,e,i)=>{var r=te.Z.getFirstMonthDate(mw(e,n,i,te.Z.getFirstMonthDate(e)));return zf(r,t)})(t.currentDate,t.startDayHour,t.startDate,t.intervalCount)}getCellCount(t){for(var{intervalCount:e,currentDate:i}=t,r=0,m=1;m<=e;m++)r+=new Date(i.getFullYear(),i.getMonth()+m,0).getDate();return r}setHiddenInterval(){this.hiddenInterval=0}}class Y4 extends fw{get daysInInterval(){return 7}_getIntervalDuration(t){return(n=>7*te.Z.dateToMilliseconds("day")*n)(t)}_calculateStartViewDate(t){return((n,t,e,i,r)=>{var m=J6(r),D=mT(e,n,i,U4(e,m)),A=te.Z.getFirstWeekDate(D,m);return zf(A,t)})(t.currentDate,t.startDayHour,t.startDate,this._getIntervalDuration(t.intervalCount),this.getFirstDayOfWeek(t.firstDayOfWeek))}}var X4=n=>{var t=n.getDay();return 6===t||0===t},q4=n=>2*Math.floor(n/7);class ple extends Y4{get daysInInterval(){return 5}get isWorkView(){return!0}isSkippedDate(t){return X4(t)}_calculateStartViewDate(t){return((n,t,e,i,r)=>{var m=mT(e,n,i,U4(e,r)),D=te.Z.getFirstWeekDate(m,r);if(X4(D)){var N=(8-D.getDay())%7;D.setDate(D.getDate()+N)}return zf(D,t)})(t.currentDate,t.startDayHour,t.startDate,this._getIntervalDuration(t.intervalCount),this.getFirstDayOfWeek(t.firstDayOfWeek))}getFirstDayOfWeek(t){return t||0}}var J4=n=>{switch(n){case rs.MONTH:return new rle;case rs.TIMELINE_MONTH:return new sle;case rs.DAY:case rs.TIMELINE_DAY:return new Qse;case rs.WEEK:case rs.TIMELINE_WEEK:return new Y4;case rs.WORK_WEEK:case rs.TIMELINE_WORK_WEEK:return new ple;default:return new fw}},gle=["groups","groupOrientation","groupByDate","isAllDayPanelVisible"];class fle{constructor(t){this.viewDataGenerator=J4(t),this.viewData={},this.completeViewDataMap=[],this.completeDateHeaderMap=[],this.viewDataMap={},this._groupedDataMapProvider=null}get groupedDataMap(){return this._groupedDataMapProvider.groupedDataMap}get hiddenInterval(){return this.viewDataGenerator.hiddenInterval}isSkippedDate(t){return this.viewDataGenerator.isSkippedDate(t)}update(t,e){this.viewDataGenerator=J4(t.viewType);var i=this.viewDataGenerator,r=new Zse(i),m=new qse(i),D=this._transformRenderOptions(t);D.interval=this.viewDataGenerator.getInterval(D.hoursInterval),this._options=D,e&&(this.completeViewDataMap=i.getCompleteViewDataMap(D),this.completeDateHeaderMap=r.getCompleteDateHeaderMap(D,this.completeViewDataMap),D.isGenerateTimePanelData&&(this.completeTimePanelMap=m.getCompleteTimePanelMap(D,this.completeViewDataMap))),this.viewDataMap=i.generateViewDataMap(this.completeViewDataMap,D),this.updateViewData(D),this._groupedDataMapProvider=new W4(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:D.isVerticalGrouping,viewType:D.viewType}),this.dateHeaderData=r.generateDateHeaderData(this.completeDateHeaderMap,this.completeViewDataMap,D),D.isGenerateTimePanelData&&(this.timePanelData=m.generateTimePanelData(this.completeTimePanelMap,D))}createGroupedDataMapProvider(){this._groupedDataMapProvider=new W4(this.viewDataGenerator,this.viewDataMap,this.completeViewDataMap,{isVerticalGrouping:this._options.isVerticalGrouping,viewType:this._options.viewType})}updateViewData(t){var e=this._transformRenderOptions(t);this.viewDataMapWithSelection=this.viewDataGenerator.markSelectedAndFocusedCells(this.viewDataMap,e),this.viewData=this.viewDataGenerator.getViewDataFromMap(this.completeViewDataMap,this.viewDataMapWithSelection,e)}_transformRenderOptions(t){var{groups:e,groupOrientation:i,groupByDate:r,isAllDayPanelVisible:m}=t,D=(0,Mi.Z)(t,gle);return(0,di.Z)({},D,{startViewDate:this.viewDataGenerator._calculateStartViewDate(t),isVerticalGrouping:dT(e,i),isHorizontalGrouping:pw(e,i),isGroupedByDate:Jie(e,i,r),isGroupedAllDayPanel:i4(e,i,m),groups:e,groupOrientation:i,isAllDayPanelVisible:m})}getGroupPanelData(t){var e=this._transformRenderOptions(t);if(e.groups.length>0){var i=this.getCellCount(e);return((n,t,e,i)=>{var r=1,m=n.map(D=>{for(var A=[],{data:N,items:Q,name:se}=D,we=function(Ue){A.push(...Q.map((st,Ot)=>{var{color:Kt,id:sn,text:wn}=st;return{id:sn,text:wn,color:Kt,key:"".concat(Ue,"_").concat(se,"_").concat(sn),resourceName:se,data:N?.[Ot]}}))},Re=0;Re<r;Re+=1)we(Re);return r*=Q.length,A});return e&&(m=((n,t)=>[...new Array(t)].reduce((e,i,r)=>n.map((m,D)=>[...e[D]||[],...m.map((N,Q)=>(0,di.Z)({},N,{key:"".concat(N.key,"_group_by_date_").concat(r),isFirstGroupCell:0===Q,isLastGroupCell:Q===m.length-1}))]),[]))(m,t)),{groupPanelItems:m,baseColSpan:i}})(e.groups,i,e.isGroupedByDate,e.isGroupedByDate?1:i)}}getGroupStartDate(t){return this._groupedDataMapProvider.getGroupStartDate(t)}getGroupEndDate(t){return this._groupedDataMapProvider.getGroupEndDate(t)}findGroupCellStartDate(t,e,i){return this._groupedDataMapProvider.findGroupCellStartDate(t,e,i,arguments.length>3&&void 0!==arguments[3]&&arguments[3])}findAllDayGroupCellStartDate(t,e){return this._groupedDataMapProvider.findAllDayGroupCellStartDate(t,e)}findCellPositionInMap(t){return this._groupedDataMapProvider.findCellPositionInMap(t)}hasAllDayPanel(){var{viewData:t}=this.viewDataMap,{allDayPanel:e}=t.groupedData[0];return!t.isGroupedAllDayPanel&&e?.length>0}getCellsGroup(t){return this._groupedDataMapProvider.getCellsGroup(t)}getCompletedGroupsInfo(){return this._groupedDataMapProvider.getCompletedGroupsInfo()}getGroupIndices(){return this._groupedDataMapProvider.getGroupIndices()}getLastGroupCellPosition(t){return this._groupedDataMapProvider.getLastGroupCellPosition(t)}getRowCountInGroup(t){return this._groupedDataMapProvider.getRowCountInGroup(t)}getCellData(t,e,i,r){var m=i&&!this._options.isVerticalGrouping?this.viewDataMap.allDayPanelMap:this.viewDataMap.dateTableMap[t],D=r?m.length-1-e:e,{cellData:A}=m[D];return A}getCellsByGroupIndexAndAllDay(t,e){var i=this._getRowCountWithAllDayRows(),m=this._options.isVerticalGrouping?t*i:0,A=this._options.isAllDayPanelVisible&&!e?m+1:m;return this.completeViewDataMap.slice(A,(e?A:this._options.isVerticalGrouping?(t+1)*i-1:i)+1).map(Q=>Q.filter(se=>{var{groupIndex:we}=se;return t===we}))}getCellCountWithGroup(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,{dateTableGroupedMap:i}=this.groupedDataMap;return i.filter((r,m)=>m<=t).reduce((r,m)=>r+m[e].length,0)}hasGroupAllDayPanel(t){var e,i;return this._options.isVerticalGrouping?!(null===(i=this.groupedDataMap.dateTableGroupedMap[t])||void 0===i||!i[0][0].cellData.allDay):(null===(e=this.groupedDataMap.allDayPanelGroupedMap[t])||void 0===e?void 0:e.length)>0}isGroupIntersectDateInterval(t,e,i){var r=this.getGroupStartDate(t);return e<this.getGroupEndDate(t)&&i>r}findGlobalCellPosition(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{completeViewDataMap:r}=this,m=this._options.isAllDayPanelVisible,D=0;D<r.length;D+=1)for(var A=r[D],N=0;N<A.length;N+=1){var Q=A[N],{startDate:se,endDate:we,groupIndex:Re,allDay:Ue}=Q;if(e===Re&&i===!!Ue&&this._compareDatesAndAllDay(t,se,we,i))return{position:{columnIndex:N,rowIndex:m&&!this._options.isVerticalGrouping?D-1:D},cellData:Q}}}_compareDatesAndAllDay(t,e,i,r){var m=t.getTime(),D=te.Z.trimTime(t).getTime(),A=e.getTime(),N=i.getTime();return!r&&m>=A&&m<N||r&&D===A}getSkippedDaysCount(t,e,i,r){for(var{dateTableGroupedMap:m}=this._groupedDataMapProvider.groupedDataMap,D=m[t],A=0,N=0;N<D.length;N+=1)for(var Q=0;Q<D[N].length;Q+=1){var se=D[N][Q].cellData;e.getTime()<se.endDate.getTime()&&i.getTime()>se.startDate.getTime()&&(A+=1)}var Re=te.Z.trimTime(D[D.length-1][D[0].length-1].cellData.startDate),Ue=Math.floor((i.getTime()-Re.getTime())/te.Z.dateToMilliseconds("day"));return r-A-(Ue>0?Ue:0)}getColumnsCount(){var{dateTableMap:t}=this.viewDataMap;return t?t[0].length:0}getViewEdgeIndices(t){return t?{firstColumnIndex:0,lastColumnIndex:this.viewDataMap.allDayPanelMap.length-1,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:0,lastColumnIndex:this.viewDataMap.dateTableMap[0].length-1,firstRowIndex:0,lastRowIndex:this.viewDataMap.dateTableMap.length-1}}getGroupEdgeIndices(t,e){var i=this.groupedDataMap.dateTableGroupedMap[t],D=i[0][0].position.columnIndex,A=i[0][i[0].length-1].position.columnIndex;return e?{firstColumnIndex:D,lastColumnIndex:A,firstRowIndex:0,lastRowIndex:0}:{firstColumnIndex:D,lastColumnIndex:A,firstRowIndex:i[0][0].position.rowIndex,lastRowIndex:i[i.length-1][0].position.rowIndex}}isSameCell(t,e){var{startDate:i,groupIndex:r,allDay:m,index:D}=t,{startDate:A,groupIndex:N,allDay:Q,index:se}=e;return i.getTime()===A.getTime()&&r===N&&m===Q&&D===se}getLastViewDate(){var t=this.completeViewDataMap,e=t.length-1;return t[e][t[e].length-1].endDate}getStartViewDate(){return this._options.startViewDate}getIntervalDuration(t){return this.viewDataGenerator._getIntervalDuration(t)}getLastCellEndDate(){return new Date(this.getLastViewDate().getTime()-te.Z.dateToMilliseconds("minute"))}getLastViewDateByEndDayHour(t){var e=this.getLastCellEndDate(),i=te.Z.dateTimeFromDecimal(t),r=new Date(e.setHours(i.hours,i.minutes));return this._adjustEndDateByDaylightDiff(e,r)}_adjustEndDateByDaylightDiff(t,e){var i=ia.getDaylightOffsetInMs(t,e),r=new Date(e.getTime()-i);return new Date(r.getTime()-te.Z.dateToMilliseconds("minute"))}getCellCountInDay(t,e,i){return this.viewDataGenerator.getCellCountInDay(t,e,i)}getCellCount(t){return this.viewDataGenerator.getCellCount(t)}getRowCount(t){return this.viewDataGenerator.getRowCount(t)}getVisibleDayDuration(t,e,i){return this.viewDataGenerator.getVisibleDayDuration(t,e,i)}_getRowCountWithAllDayRows(){var t=this._options.isAllDayPanelVisible?1:0;return this.getRowCount(this._options)+t}getFirstDayOfWeek(t){return this.viewDataGenerator.getFirstDayOfWeek(t)}setViewOptions(t){this._options=this._transformRenderOptions(t)}getViewOptions(){return this._options}getViewPortGroupCount(){var{dateTableGroupedMap:t}=this.groupedDataMap;return t?.length||0}}var My=u(4691);class Qk extends My.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,di.Z)({},this._optionsByReference,{dataCellTemplate:!0})}}var tr=u(9056),Co=u(6084),mle=["children","className","colSpan","styles"],Q4={};let vle=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,mle)}render(){return(n=>{var{props:{children:t,className:e,colSpan:i,styles:r}}=n;return(0,tr.Wm)(1,"td",e,t,0,{style:(0,Co.jk)(r),colSpan:i})})({props:(0,di.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=Q4,n})();var yle=["children","className","colSpan","styles"];let xle=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,yle)}render(){return(n=>{var{props:{children:t,className:e,colSpan:i,styles:r}}=n;return(0,tr.Wm)(1,"th",e,t,0,{style:(0,Co.jk)(r),colSpan:i})})({props:(0,di.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=Q4,n})();var ble=["colSpan","isHeaderCell","width"],Ele={width:0,isHeaderCell:!1};let eR=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get style(){var{width:e}=this.props,{style:i}=this.restAttributes;return E6(e,i)}get restAttributes(){return(0,Mi.Z)(this.props,ble)}render(){return(n=>{var{props:{colSpan:t,isHeaderCell:e},style:i}=n;return(0,tr.Iz)(2,e?xle:vle,{className:"dx-scheduler-virtual-cell",styles:i,colSpan:t})})({props:(0,di.Z)({},this.props),style:this.style,restAttributes:this.restAttributes})}}return n.defaultProps=Ele,n})();var Sle=["children","className","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"],eH={className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0,isHeaderRow:!1};let n_=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get hasLeftVirtualCell(){var{leftVirtualCellCount:e}=this.props;return!!e}get hasRightVirtualCell(){var{rightVirtualCellCount:e}=this.props;return!!e}get restAttributes(){return(0,Mi.Z)(this.props,Sle)}render(){return(n=>{var{hasLeftVirtualCell:t,hasRightVirtualCell:e,props:{children:i,className:r,isHeaderRow:m,leftVirtualCellCount:D,leftVirtualCellWidth:A,rightVirtualCellCount:N,rightVirtualCellWidth:Q,styles:se}}=n;return(0,tr.Wm)(1,"tr",r,[t&&(0,tr.Iz)(2,eR,{width:A,colSpan:D,isHeaderCell:m}),i,e&&(0,tr.Iz)(2,eR,{width:Q,colSpan:N,isHeaderCell:m})],0,{style:(0,Co.jk)(se)})})({props:(0,di.Z)({},this.props),hasLeftVirtualCell:this.hasLeftVirtualCell,hasRightVirtualCell:this.hasRightVirtualCell,restAttributes:this.restAttributes})}}return n.defaultProps=eH,n})();var Dle=["cellsCount","children","className","height","isHeaderRow","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","styles"],Ile=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(eH),Object.getOwnPropertyDescriptors({leftVirtualCellWidth:0,rightVirtualCellWidth:0,cellsCount:1})));let tH=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get style(){var{height:e}=this.props,{style:i}=this.restAttributes;return Mk(e,i)}get classes(){var{className:e}=this.props;return"dx-scheduler-virtual-row ".concat(e)}get virtualCells(){return void 0!==this.__getterCache.virtualCells?this.__getterCache.virtualCells:this.__getterCache.virtualCells=(()=>{var{cellsCount:e}=this.props;return[...Array(e)]})()}get restAttributes(){return(0,Mi.Z)(this.props,Dle)}componentWillUpdate(e,i,r){this.props.cellsCount!==e.cellsCount&&(this.__getterCache.virtualCells=void 0)}render(){return(n=>{var{classes:t,props:{leftVirtualCellCount:e,leftVirtualCellWidth:i,rightVirtualCellCount:r,rightVirtualCellWidth:m},style:D,virtualCells:A}=n;return(0,tr.Iz)(2,n_,{styles:D,className:t,leftVirtualCellWidth:i,rightVirtualCellWidth:m,leftVirtualCellCount:e,rightVirtualCellCount:r,children:A.map((N,Q)=>(0,tr.Iz)(2,eR,null,Q.toString()))})})({props:(0,di.Z)({},this.props),style:this.style,classes:this.classes,virtualCells:this.virtualCells,restAttributes:this.restAttributes})}}return n.defaultProps=Ile,n})();var Mle=["bottomVirtualRowHeight","children","className","height","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","tableRef","topVirtualRowHeight","virtualCellsCount","width"],Ple={className:"",topVirtualRowHeight:0,bottomVirtualRowHeight:0,leftVirtualCellWidth:0,rightVirtualCellWidth:0,virtualCellsCount:0};let tR=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.elementRef=(0,tr.Vf)()}get style(){var{height:e,width:i}=this.props,{style:r}=this.restAttributes,m=Mk(e,r);return E6(i,m)}get hasTopVirtualRow(){var{topVirtualRowHeight:e}=this.props;return!!e}get hasBottomVirtualRow(){var{bottomVirtualRowHeight:e}=this.props;return!!e}get restAttributes(){return(0,Mi.Z)(this.props,Mle)}render(){return(n=>{var{hasBottomVirtualRow:t,hasTopVirtualRow:e,props:{bottomVirtualRowHeight:i,children:r,className:m,leftVirtualCellCount:D,leftVirtualCellWidth:A,rightVirtualCellCount:N,rightVirtualCellWidth:Q,tableRef:se,topVirtualRowHeight:we,virtualCellsCount:Re},style:Ue}=n;return(0,tr.Wm)(1,"table",m,(0,tr.Wm)(1,"tbody",null,[e&&(0,tr.Iz)(2,tH,{height:we,cellsCount:Re,leftVirtualCellWidth:A,rightVirtualCellWidth:Q,leftVirtualCellCount:D,rightVirtualCellCount:N}),r,t&&(0,tr.Iz)(2,tH,{height:i,cellsCount:Re,leftVirtualCellWidth:A,rightVirtualCellWidth:Q,leftVirtualCellCount:D,rightVirtualCellCount:N})],0),2,{style:(0,Co.jk)(Ue)},null,se)})({props:(0,di.Z)({},this.props),elementRef:this.elementRef,style:this.style,hasTopVirtualRow:this.hasTopVirtualRow,hasBottomVirtualRow:this.hasBottomVirtualRow,restAttributes:this.restAttributes})}}return n.defaultProps=Ple,n})();var Fle=["allDay","ariaLabel","children","className","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text"],DT={className:"",isFirstGroupCell:!1,isLastGroupCell:!1,startDate:Object.freeze(new Date),endDate:Object.freeze(new Date),allDay:!1,text:"",index:0,contentTemplateProps:Object.freeze({data:{},index:0})};let nR=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r}=this.props;return S6(i,r,e)}get restAttributes(){return(0,Mi.Z)(this.props,Fle)}render(){return(n=>(0,tr.Wm)(1,"td",n.classes,n.props.children,0,{"aria-label":n.props.ariaLabel}))({props:(0,di.Z)({},this.props),classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=DT,n})();var Nle=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],iR=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(DT),Object.getOwnPropertyDescriptors({otherMonth:!1,today:!1,firstDayOfMonth:!1,isSelected:!1,isFocused:!1}))),Wle=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let TT=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get classes(){var{allDay:e,className:i,isFocused:r,isSelected:m}=this.props;return(0,Ih.G)({"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-cell-sizes-vertical":!e,"dx-scheduler-date-table-cell":!e,"dx-state-focused":m,"dx-scheduler-focused-cell":r,[i]:!0})}get dataCellTemplateProps(){return void 0!==this.__getterCache.dataCellTemplateProps?this.__getterCache.dataCellTemplateProps:this.__getterCache.dataCellTemplateProps=(()=>{var{allDay:e,contentTemplateProps:i,endDate:r,groupIndex:m,groups:D,index:A,startDate:N}=this.props;return{data:(0,di.Z)({startDate:N,endDate:r,groups:D,groupIndex:D?m:void 0,text:"",allDay:!!e||void 0},i.data),index:A}})()}get ariaLabel(){return this.props.isSelected?"Add appointment":void 0}get restAttributes(){return(0,Mi.Z)(this.props,Nle)}componentWillUpdate(e,i,r){(this.props.allDay!==e.allDay||this.props.contentTemplateProps!==e.contentTemplateProps||this.props.endDate!==e.endDate||this.props.groupIndex!==e.groupIndex||this.props.groups!==e.groups||this.props.index!==e.index||this.props.startDate!==e.startDate)&&(this.__getterCache.dataCellTemplateProps=void 0)}render(){var e=this.props;return(n=>{var{ariaLabel:t,classes:e,dataCellTemplateProps:i,props:{children:r,dataCellTemplate:m,isFirstGroupCell:D,isLastGroupCell:A}}=n;return(0,tr.Iz)(2,nR,{isFirstGroupCell:D,isLastGroupCell:A,className:e,ariaLabel:t,children:[!m&&r,!!m&&m({index:i.index,data:i.data})]})})({props:(0,di.Z)({},e,{dataCellTemplate:Wle(e.dataCellTemplate)}),classes:this.classes,dataCellTemplateProps:this.dataCellTemplateProps,ariaLabel:this.ariaLabel,restAttributes:this.restAttributes})}}return n.defaultProps=iR,n})();var Ule=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],Kle=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Gle=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,Ule)}render(){var e=this.props;return(n=>{var{props:{className:t,dataCellTemplate:e,endDate:i,groupIndex:r,groups:m,index:D,isFirstGroupCell:A,isFocused:N,isLastGroupCell:Q,isSelected:se,startDate:we}}=n;return(0,tr.Iz)(2,TT,{className:"".concat("dx-scheduler-all-day-table-cell"," ").concat(t),startDate:we,endDate:i,groups:m,groupIndex:r,allDay:!0,isFirstGroupCell:A,isLastGroupCell:Q,index:D,dataCellTemplate:e,isSelected:se,isFocused:N})})({props:(0,di.Z)({},e,{dataCellTemplate:Kle(e.dataCellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=iR,n})();var jle=["className","dataCellTemplate","isVerticalGroupOrientation","leftVirtualCellCount","leftVirtualCellWidth","rightVirtualCellCount","rightVirtualCellWidth","viewData"],Yle={viewData:Object.freeze([]),isVerticalGroupOrientation:!1,className:"",leftVirtualCellWidth:0,rightVirtualCellWidth:0},Xle=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let nH=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e}=this.props;return(0,Ih.G)({"dx-scheduler-all-day-table-row":!0,[e]:!!e})}get restAttributes(){return(0,Mi.Z)(this.props,jle)}render(){var e=this.props;return(n=>(0,tr.Iz)(2,n_,{leftVirtualCellWidth:n.props.leftVirtualCellWidth,rightVirtualCellWidth:n.props.rightVirtualCellWidth,leftVirtualCellCount:n.props.leftVirtualCellCount,rightVirtualCellCount:n.props.rightVirtualCellCount,className:n.classes,children:n.props.viewData.map(t=>{var{endDate:e,groupIndex:i,groups:r,index:m,isFirstGroupCell:D,isFocused:A,isLastGroupCell:N,isSelected:Q,key:se,startDate:we}=t;return(0,tr.Iz)(2,Gle,{isFirstGroupCell:!n.props.isVerticalGroupOrientation&&D,isLastGroupCell:!n.props.isVerticalGroupOrientation&&N,startDate:we,endDate:e,groups:r,groupIndex:i,index:m,dataCellTemplate:n.props.dataCellTemplate,isSelected:Q,isFocused:A},se)})}))({props:(0,di.Z)({},e,{dataCellTemplate:Xle(e.dataCellTemplate)}),classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=Yle,n})();var rR={viewData:Object.freeze({groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0}),leftVirtualCellWidth:0,rightVirtualCellWidth:0,topVirtualRowHeight:0,bottomVirtualRowHeight:0,addDateTableClass:!0,addVerticalSizesClassToRows:!0},qle=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","viewData","width"],Qle=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(rR),Object.getOwnPropertyDescriptors({cellTemplate:TT}))),iH=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let eue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get rowClasses(){var{addVerticalSizesClassToRows:e}=this.props;return(0,Ih.G)({"dx-scheduler-date-table-row":!0,"dx-scheduler-cell-sizes-vertical":e})}get restAttributes(){return(0,Mi.Z)(this.props,qle)}render(){var e=this.props;return(n=>{var{props:{cellTemplate:t,dataCellTemplate:e,viewData:i},rowClasses:r}=n;return(0,tr.xJ)(i.groupedData.map(m=>{var{allDayPanel:D,dateTable:A,isGroupedAllDayPanel:N,key:Q}=m;return(0,tr.xJ)([N&&(0,tr.Iz)(2,nH,{viewData:D,dataCellTemplate:e,isVerticalGroupOrientation:!0,leftVirtualCellWidth:i.leftVirtualCellWidth,rightVirtualCellWidth:i.rightVirtualCellWidth,leftVirtualCellCount:i.leftVirtualCellCount,rightVirtualCellCount:i.rightVirtualCellCount}),A.map(se=>{var{cells:we,key:Re}=se;return(0,tr.Iz)(2,n_,{className:r,leftVirtualCellWidth:i.leftVirtualCellWidth,rightVirtualCellWidth:i.rightVirtualCellWidth,leftVirtualCellCount:i.leftVirtualCellCount,rightVirtualCellCount:i.rightVirtualCellCount,children:we.map(Ue=>{var{endDate:st,firstDayOfMonth:Ot,groupIndex:Kt,groups:sn,index:wn,isFirstGroupCell:rn,isFocused:Ft,isLastGroupCell:qt,isSelected:un,key:In,otherMonth:Kn,startDate:Yn,text:ai,today:gi}=Ue;return t({isFirstGroupCell:rn,isLastGroupCell:qt,startDate:Yn,endDate:st,groups:sn,groupIndex:Kt,index:wn,dataCellTemplate:e,key:In,text:ai,today:gi,otherMonth:Kn,firstDayOfMonth:Ot,isSelected:un,isFocused:Ft})})},Re)})],0,Q)}),0)})({props:(0,di.Z)({},e,{cellTemplate:iH(e.cellTemplate),dataCellTemplate:iH(e.dataCellTemplate)}),rowClasses:this.rowClasses,restAttributes:this.restAttributes})}}return n.defaultProps=Qle,n})();var tue=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],rH=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(rR),Object.getOwnPropertyDescriptors({cellTemplate:TT}))),oH=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let aH=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get classes(){var{addDateTableClass:e}=this.props;return e?"dx-scheduler-date-table":void 0}get topVirtualRowHeight(){var e;return null!==(e=this.props.viewData.topVirtualRowHeight)&&void 0!==e?e:0}get bottomVirtualRowHeight(){var e;return null!==(e=this.props.viewData.bottomVirtualRowHeight)&&void 0!==e?e:0}get leftVirtualCellWidth(){var e;return null!==(e=this.props.viewData.leftVirtualCellWidth)&&void 0!==e?e:0}get rightVirtualCellWidth(){var e;return null!==(e=this.props.viewData.rightVirtualCellWidth)&&void 0!==e?e:0}get virtualCellsCount(){return this.props.viewData.groupedData[0].dateTable[0].cells.length}get restAttributes(){return(0,Mi.Z)(this.props,tue)}render(){var e=this.props;return(n=>{var{bottomVirtualRowHeight:t,classes:e,leftVirtualCellWidth:i,props:{addVerticalSizesClassToRows:r,cellTemplate:m,dataCellTemplate:D,groupOrientation:A,tableRef:N,viewData:Q,width:se},restAttributes:we,rightVirtualCellWidth:Re,topVirtualRowHeight:Ue,virtualCellsCount:st}=n;return(0,tr.vs)((0,tr.Iz)(2,tR,(0,di.Z)({},we,{tableRef:N,topVirtualRowHeight:Ue,bottomVirtualRowHeight:t,leftVirtualCellWidth:i,rightVirtualCellWidth:Re,leftVirtualCellCount:Q.leftVirtualCellCount,rightVirtualCellCount:Q.rightVirtualCellCount,virtualCellsCount:st,className:e,width:se,children:(0,tr.Iz)(2,eue,{cellTemplate:m,viewData:Q,dataCellTemplate:D,leftVirtualCellWidth:i,rightVirtualCellWidth:Re,groupOrientation:A,addVerticalSizesClassToRows:r})})))})({props:(0,di.Z)({},e,{cellTemplate:oH(e.cellTemplate),dataCellTemplate:oH(e.dataCellTemplate)}),classes:this.classes,topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,leftVirtualCellWidth:this.leftVirtualCellWidth,rightVirtualCellWidth:this.rightVirtualCellWidth,virtualCellsCount:this.virtualCellsCount,restAttributes:this.restAttributes})}}return n.defaultProps=rH,n})();class sH extends Qk{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return aH}}(0,T.Z)("dxDateTableLayoutBase",sH);var iue=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],oue=rR,aue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let sue=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={},this.__getterCache={}}createEffects(){return[(0,Co.gt)()]}get allDayPanelData(){return void 0!==this.__getterCache.allDayPanelData?this.__getterCache.allDayPanelData:this.__getterCache.allDayPanelData=(()=>this.props.viewData.groupedData[0].allDayPanel)()}get emptyTableHeight(){return this.allDayPanelData?void 0:25}get restAttributes(){return(0,Mi.Z)(this.props,iue)}componentWillUpdate(e,i,r){super.componentWillUpdate(),this.props.viewData!==e.viewData&&(this.__getterCache.allDayPanelData=void 0)}render(){var e=this.props;return(n=>{var{allDayPanelData:t,emptyTableHeight:e,props:{dataCellTemplate:i,tableRef:r,viewData:m,width:D}}=n;return(0,tr.Iz)(2,tR,{className:"dx-scheduler-all-day-table",height:e,width:D,tableRef:r,children:(0,tr.Iz)(2,nH,{viewData:t,leftVirtualCellWidth:m.leftVirtualCellWidth,rightVirtualCellWidth:m.rightVirtualCellWidth,leftVirtualCellCount:m.leftVirtualCellCount,rightVirtualCellCount:m.rightVirtualCellCount,dataCellTemplate:i})})})({props:(0,di.Z)({},e,{dataCellTemplate:aue(e.dataCellTemplate)}),allDayPanelData:this.allDayPanelData,emptyTableHeight:this.emptyTableHeight,restAttributes:this.restAttributes})}}return n.defaultProps=oue,n})();class lH extends Qk{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dataCellTemplate"],props:["viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return sue}}(0,T.Z)("dxAllDayTable",lH);var due={};let uH=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get text(){return yn.Z.format("dxScheduler-allDay")}get restAttributes(){var e=this.props,i=(0,di.Z)({},(function lue(n){if(null==n)throw new TypeError("Cannot destructure "+n)}(e),e));return i}render(){return(n=>(0,tr.Wm)(1,"div","dx-scheduler-all-day-title",n.text,0))({props:(0,di.Z)({},this.props),text:this.text,restAttributes:this.restAttributes})}}return n.defaultProps=due,n})();class dH extends My.Z{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:[]}}get _viewComponent(){return uH}}(0,T.Z)("dxAllDayPanelTitle",dH);class cue extends My.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,di.Z)({},this._optionsByReference,{timeCellTemplate:!0})}}var hue=["allDay","ariaLabel","children","className","contentTemplateProps","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","startDate","text","timeCellTemplate"],gue=DT,fue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let mue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get timeCellTemplateProps(){return void 0!==this.__getterCache.timeCellTemplateProps?this.__getterCache.timeCellTemplateProps:this.__getterCache.timeCellTemplateProps=(()=>{var{groupIndex:e,groups:i,index:r,startDate:m,text:D}=this.props;return{data:{date:m,groups:i,groupIndex:e,text:D},index:r}})()}get restAttributes(){return(0,Mi.Z)(this.props,hue)}componentWillUpdate(e,i,r){(this.props.groupIndex!==e.groupIndex||this.props.groups!==e.groups||this.props.index!==e.index||this.props.startDate!==e.startDate||this.props.text!==e.text)&&(this.__getterCache.timeCellTemplateProps=void 0)}render(){var e=this.props;return(n=>{var{props:{className:t,isFirstGroupCell:e,isLastGroupCell:i,text:r,timeCellTemplate:m},timeCellTemplateProps:D}=n;return(0,tr.Iz)(2,nR,{isFirstGroupCell:e,isLastGroupCell:i,className:"dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical ".concat(t),children:[!m&&(0,tr.Wm)(1,"div",null,r,0),!!m&&m({index:D.index,data:D.data})]})})({props:(0,di.Z)({},e,{timeCellTemplate:fue(e.timeCellTemplate)}),timeCellTemplateProps:this.timeCellTemplateProps,restAttributes:this.restAttributes})}}return n.defaultProps=gue,n})();var _ue=["groupOrientation","tableRef","timeCellTemplate","timePanelData"],yue={timePanelData:Object.freeze({groupedData:[],leftVirtualCellCount:0,rightVirtualCellCount:0,topVirtualRowCount:0,bottomVirtualRowCount:0})},Cue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let xue=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get topVirtualRowHeight(){var e;return null!==(e=this.props.timePanelData.topVirtualRowHeight)&&void 0!==e?e:0}get bottomVirtualRowHeight(){var e;return null!==(e=this.props.timePanelData.bottomVirtualRowHeight)&&void 0!==e?e:0}get restAttributes(){return(0,Mi.Z)(this.props,_ue)}render(){var e=this.props;return(n=>{var{bottomVirtualRowHeight:t,props:{tableRef:e,timeCellTemplate:i,timePanelData:r},restAttributes:m,topVirtualRowHeight:D}=n;return(0,tr.vs)((0,tr.Iz)(2,tR,(0,di.Z)({},m,{topVirtualRowHeight:D,bottomVirtualRowHeight:t,virtualCellsCount:1,className:"dx-scheduler-time-panel",tableRef:e,children:r.groupedData.map(A=>{var{dateTable:N,groupIndex:Q,isGroupedAllDayPanel:se,key:we}=A;return(0,tr.xJ)([se&&(0,tr.Iz)(2,n_,{children:(0,tr.Iz)(2,nR,{className:"dx-scheduler-time-panel-title-cell",children:(0,tr.Iz)(2,uH)})}),N.map(Re=>{var{groups:Ue,index:st,isFirstGroupCell:Ot,isLastGroupCell:Kt,key:sn,startDate:wn,text:rn}=Re;return(0,tr.Iz)(2,n_,{className:"dx-scheduler-time-panel-row",children:(0,tr.Iz)(2,mue,{startDate:wn,text:rn,groups:Ue,groupIndex:Q,isFirstGroupCell:Ot,isLastGroupCell:Kt,index:st,timeCellTemplate:i})},sn)})],0,we)})})))})({props:(0,di.Z)({},e,{timeCellTemplate:Cue(e.timeCellTemplate)}),topVirtualRowHeight:this.topVirtualRowHeight,bottomVirtualRowHeight:this.bottomVirtualRowHeight,restAttributes:this.restAttributes})}}return n.defaultProps=yue,n})();class cH extends cue{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["timeCellTemplate"],props:["groupOrientation","timePanelData","timeCellTemplate"]}}get _viewComponent(){return xue}}(0,T.Z)("dxTimePanelTableLayout",cH);class bue extends My.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,di.Z)({},this._optionsByReference,{resourceCellTemplate:!0})}}var hH={groupPanelData:Object.freeze({groupPanelItems:[],baseColSpan:1}),groupByDate:!1},pH={id:0,text:"",data:Object.freeze({id:0}),className:""},wue=["cellTemplate","className","color","data","id","index","text"],Sue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Oue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,wue)}render(){var e=this.props;return(n=>{var t=n.props.cellTemplate;return(0,tr.Wm)(1,"div","dx-scheduler-group-header ".concat(n.props.className),[!!n.props.cellTemplate&&t({data:{data:n.props.data,id:n.props.id,color:n.props.color,text:n.props.text},index:n.props.index}),!n.props.cellTemplate&&(0,tr.Wm)(1,"div","dx-scheduler-group-header-content",n.props.text,0)],0)})({props:(0,di.Z)({},e,{cellTemplate:Sue(e.cellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=pH,n})();var gH={groupItems:Object.freeze([]),className:""},Due=["cellTemplate","className","groupItems"],Iue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Mue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,Due)}render(){var e=this.props;return(n=>(0,tr.Wm)(1,"div","dx-scheduler-group-row ".concat(n.props.className),n.props.groupItems.map((t,e)=>{var{color:i,data:r,id:m,key:D,text:A}=t;return(0,tr.Iz)(2,Oue,{text:A,id:m,data:r,index:e,color:i,cellTemplate:n.props.cellTemplate},D)}),0))({props:(0,di.Z)({},e,{cellTemplate:Iue(e.cellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=gH,n})();var fH=hH,Aue=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"],kue=fH,Rue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Lue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get style(){var{height:e,styles:i}=this.props;return Mk(e,i)}get restAttributes(){return(0,Mi.Z)(this.props,Aue)}render(){var e=this.props;return(n=>{var{props:{className:t,elementRef:e,groupPanelData:i,resourceCellTemplate:r},style:m}=n;return(0,tr.Wm)(1,"div",t,(0,tr.Wm)(1,"div","dx-scheduler-group-flex-container",i.groupPanelItems.map(D=>(0,tr.Iz)(2,Mue,{groupItems:D,cellTemplate:r},D[0].key)),0),2,{style:(0,Co.jk)(m)},null,e)})({props:(0,di.Z)({},e,{resourceCellTemplate:Rue(e.resourceCellTemplate)}),style:this.style,restAttributes:this.restAttributes})}}return n.defaultProps=kue,n})();var Bue=["cellTemplate","className","colSpan","color","data","id","index","isFirstGroupCell","isLastGroupCell","text"],Vue=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(pH),Object.getOwnPropertyDescriptors({isFirstGroupCell:!1,isLastGroupCell:!1,colSpan:1}))),Nue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Hue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r}=this.props;return(0,Ih.G)({"dx-scheduler-group-header":!0,"dx-scheduler-first-group-cell":i,"dx-scheduler-last-group-cell":r,[e]:!!e})}get restAttributes(){return(0,Mi.Z)(this.props,Bue)}render(){var e=this.props;return(n=>{var{classes:t,props:{cellTemplate:e,colSpan:i,color:r,data:m,id:D,index:A,text:N}}=n;return(0,tr.Wm)(1,"th",t,(0,tr.Wm)(1,"div","dx-scheduler-group-header-content",[!!e&&e({data:{data:m,id:D,color:r,text:N},index:A}),!e&&(0,tr.Wm)(1,"div",null,N,0)],0),2,{colSpan:i})})({props:(0,di.Z)({},e,{cellTemplate:Nue(e.cellTemplate)}),classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=Vue,n})();var zue=["cellTemplate","className","groupItems"],Uue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Zue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,zue)}render(){var e=this.props;return(n=>{var{props:{cellTemplate:t,className:e,groupItems:i}}=n;return(0,tr.Wm)(1,"tr","dx-scheduler-group-row ".concat(e),i.map((r,m)=>{var{colSpan:D,color:A,data:N,id:Q,isFirstGroupCell:se,isLastGroupCell:we,key:Re,text:Ue}=r;return(0,tr.Iz)(2,Hue,{text:Ue,id:Q,data:N,index:m,color:A,colSpan:D,isFirstGroupCell:!!se,isLastGroupCell:!!we,cellTemplate:t},Re)}),0)})({props:(0,di.Z)({},e,{cellTemplate:Uue(e.cellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=gH,n})();var Kue=["className","elementRef","groupByDate","groupPanelData","height","resourceCellTemplate","styles"],jue=fH,$ue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Yue=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get groupPanelItems(){return void 0!==this.__getterCache.groupPanelItems?this.__getterCache.groupPanelItems:this.__getterCache.groupPanelItems=(()=>{var{groupPanelData:e}=this.props,{baseColSpan:i,groupPanelItems:r}=e,m=r.reduceRight((D,A,N)=>{var Q=D,se=A.length;return Q[N]=(N===r.length-1?se:r[N+1].length)/se*(N===r.length-1?i:D[N+1]),Q},[...new Array(r.length)]);return r.map((D,A)=>{var N=m[A];return D.map(Q=>(0,di.Z)({},Q,{colSpan:N}))})})()}get restAttributes(){return(0,Mi.Z)(this.props,Kue)}componentWillUpdate(e,i,r){this.props.groupPanelData!==e.groupPanelData&&(this.__getterCache.groupPanelItems=void 0)}render(){var e=this.props;return(n=>{var{groupPanelItems:t,props:{resourceCellTemplate:e}}=n;return(0,tr.xJ)(t.map(i=>(0,tr.Iz)(2,Zue,{groupItems:i,cellTemplate:e},i[0].key)),0)})({props:(0,di.Z)({},e,{resourceCellTemplate:$ue(e.resourceCellTemplate)}),groupPanelItems:this.groupPanelItems,restAttributes:this.restAttributes})}}return n.defaultProps=jue,n})();var Xue=["className","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","resourceCellTemplate"],mH=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(hH),Object.getOwnPropertyDescriptors({groups:Object.freeze([]),groupOrientation:b6}))),Jue=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let oR=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get isVerticalLayout(){var{groupOrientation:e,groups:i}=this.props;return dT(i,e)}get restAttributes(){return(0,Mi.Z)(this.props,Xue)}render(){var e=this.props;return(n=>{var{isVerticalLayout:t,props:{className:e,elementRef:i,groupPanelData:r,height:m,resourceCellTemplate:D},restAttributes:A}=n;return(0,tr.Iz)(2,t?Lue:Yue,{height:m,resourceCellTemplate:D,className:e,groupPanelData:r,elementRef:i,styles:A.style})})({props:(0,di.Z)({},e,{resourceCellTemplate:Jue(e.resourceCellTemplate)}),isVerticalLayout:this.isVerticalLayout,restAttributes:this.restAttributes})}}return n.defaultProps=mH,n})();class _H extends bue{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["resourceCellTemplate"],props:["groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return oR}}(0,T.Z)("dxGroupPanel",_H);class vH extends My.Z{_setOptionsByReference(){super._setOptionsByReference(),this._optionsByReference=(0,di.Z)({},this._optionsByReference,{dateHeaderData:!0,resourceCellTemplate:!0,dateCellTemplate:!0,timeCellTemplate:!0})}}var Que=["splitText","text"],tde={text:"",splitText:!1};let nde=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get textParts(){return void 0!==this.__getterCache.textParts?this.__getterCache.textParts:this.__getterCache.textParts=(()=>{var{text:e}=this.props;return e?e.split(" "):[""]})()}get restAttributes(){return(0,Mi.Z)(this.props,Que)}componentWillUpdate(e,i,r){this.props.text!==e.text&&(this.__getterCache.textParts=void 0)}render(){return(n=>{var{props:{splitText:t,text:e},textParts:i}=n;return(0,tr.xJ)(t?i.map(r=>(0,tr.Wm)(1,"span","dx-scheduler-header-panel-cell-date",r,0)):e,0)})({props:(0,di.Z)({},this.props),textParts:this.textParts,restAttributes:this.restAttributes})}}return n.defaultProps=tde,n})();var ide=["allDay","ariaLabel","children","className","colSpan","contentTemplateProps","dateCellTemplate","endDate","groupIndex","groups","index","isFirstGroupCell","isLastGroupCell","isTimeCellTemplate","isWeekDayCell","splitText","startDate","text","timeCellTemplate","today"],ode=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(DT),Object.getOwnPropertyDescriptors({today:!1,colSpan:1,isWeekDayCell:!1,splitText:!1,isTimeCellTemplate:!1}))),yH=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let CH=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get classes(){var{className:e,isFirstGroupCell:i,isLastGroupCell:r,isWeekDayCell:m,today:D}=this.props,A=(0,Ih.G)({"dx-scheduler-header-panel-cell":!0,"dx-scheduler-cell-sizes-horizontal":!0,"dx-scheduler-header-panel-current-time-cell":D,"dx-scheduler-header-panel-week-cell":m,[e]:!!e});return S6(i,r,A)}get useTemplate(){var{dateCellTemplate:e,isTimeCellTemplate:i,timeCellTemplate:r}=this.props;return!i&&!!e||i&&!!r}get restAttributes(){return(0,Mi.Z)(this.props,ide)}render(){var e=this.props;return(n=>{var{classes:t,props:{colSpan:e,dateCellTemplate:i,groupIndex:r,groups:m,index:D,isTimeCellTemplate:A,splitText:N,startDate:Q,text:se,timeCellTemplate:we},useTemplate:Re}=n;return(0,tr.Wm)(1,"th",t,Re?(0,tr.xJ)([A&&we&&we({data:{date:Q,text:se,groups:m,groupIndex:r},index:D}),!A&&i&&i({data:{date:Q,text:se,groups:m,groupIndex:r},index:D})],0):(0,tr.Iz)(2,nde,{splitText:N,text:se}),0,{colSpan:e,title:se})})({props:(0,di.Z)({},e,{timeCellTemplate:yH(e.timeCellTemplate),dateCellTemplate:yH(e.dateCellTemplate)}),classes:this.classes,useTemplate:this.useTemplate,restAttributes:this.restAttributes})}}return n.defaultProps=ode,n})();const xH=()=>{var n=(0,z.Vk)();return{isCompact:(0,z.f5)(n),isMaterial:(0,z.x2)(n)}};var sde=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"],{isMaterial:lde}=xH(),bH={groupOrientation:"horizontal",groupByDate:!1,groups:Object.freeze([])},wH=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let dde=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get isHorizontalGrouping(){var{groupByDate:e,groupOrientation:i,groups:r}=this.props;return pw(r,i)&&!e}get restAttributes(){return(0,Mi.Z)(this.props,sde)}render(){var e=this.props;return(n=>{var{isHorizontalGrouping:t,props:{dateCellTemplate:e,dateHeaderData:i}}=n,{dataMap:r,leftVirtualCellCount:m,leftVirtualCellWidth:D,rightVirtualCellCount:A,rightVirtualCellWidth:N}=i;return(0,tr.xJ)(r.map((Q,se)=>(0,tr.Iz)(2,n_,{className:"dx-scheduler-header-row",leftVirtualCellWidth:D,leftVirtualCellCount:m,rightVirtualCellWidth:N,rightVirtualCellCount:A,isHeaderRow:!0,children:Q.map(we=>{var{colSpan:Re,endDate:Ue,groupIndex:st,groups:Ot,index:Kt,isFirstGroupCell:sn,isLastGroupCell:wn,key:rn,startDate:Ft,text:qt,today:un}=we;return(0,tr.Iz)(2,CH,{startDate:Ft,endDate:Ue,groups:t?Ot:void 0,groupIndex:t?st:void 0,today:un,index:Kt,text:qt,isFirstGroupCell:sn,isLastGroupCell:wn,dateCellTemplate:e,colSpan:Re,splitText:lde},rn)})},se.toString())),0)})({props:(0,di.Z)({},e,{dateCellTemplate:wH(e.dateCellTemplate),timeCellTemplate:wH(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return n.defaultProps=bH,n})();var cde=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"],EH=Object.create(Object.prototype,(0,di.Z)(Object.getOwnPropertyDescriptors(mH),Object.getOwnPropertyDescriptors({isRenderDateHeader:!0,dateHeaderTemplate:dde}))),IT=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let SH=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get isHorizontalGrouping(){var{groupOrientation:e,groups:i}=this.props;return pw(i,e)}get restAttributes(){return(0,Mi.Z)(this.props,cde)}render(){var e=this.props;return(n=>{var{isHorizontalGrouping:t,props:{dateCellTemplate:e,dateHeaderData:i,dateHeaderTemplate:r,groupByDate:m,groupOrientation:D,groupPanelData:A,groups:N,isRenderDateHeader:Q,resourceCellTemplate:se,timeCellTemplate:we}}=n;return(0,tr.Wm)(1,"thead",null,[t&&!m&&(0,tr.Iz)(2,oR,{groupPanelData:A,groups:N,groupByDate:m,groupOrientation:D,resourceCellTemplate:se}),Q&&r({groupByDate:m,dateHeaderData:i,groupOrientation:D,groups:N,dateCellTemplate:e,timeCellTemplate:we}),m&&(0,tr.Iz)(2,oR,{groupPanelData:A,groups:N,groupByDate:m,groupOrientation:D,resourceCellTemplate:se})],0)})({props:(0,di.Z)({},e,{dateCellTemplate:IT(e.dateCellTemplate),timeCellTemplate:IT(e.timeCellTemplate),dateHeaderTemplate:IT(e.dateHeaderTemplate),resourceCellTemplate:IT(e.resourceCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return n.defaultProps=EH,n})();class aR extends vH{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dateCellTemplate","timeCellTemplate","dateHeaderTemplate","resourceCellTemplate"],props:["dateHeaderData","isRenderDateHeader","dateCellTemplate","timeCellTemplate","dateHeaderTemplate","groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return SH}}(0,T.Z)("dxHeaderPanelLayout",aR),te.Z.dateToMilliseconds("day"),te.Z.dateToMilliseconds("hour");class yde{constructor(t){this._viewDataProvider=t,this._focusedCell=null,this._selectedCells=null,this._firstSelectedCell=null,this._prevFocusedCell=null,this._prevSelectedCells=null}get viewDataProvider(){return this._viewDataProvider}get focusedCell(){var t=this._focusedCell;if(t){var{groupIndex:e,startDate:i,allDay:r}=t;return{coordinates:this.viewDataProvider.findCellPositionInMap({groupIndex:e,startDate:i,isAllDay:r,index:t.index}),cellData:t}}}setFocusedCell(t,e,i){if(t>=0){var r=this._viewDataProvider.getCellData(t,e,i);this._focusedCell=r}}setSelectedCells(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this._viewDataProvider,{rowIndex:r,columnIndex:m,allDay:D}=t;if(!(r<0)){var A=e?i.getCellData(e.rowIndex,e.columnIndex,e.allDay):this._firstSelectedCell,N=i.getCellData(r,m,D);this._firstSelectedCell=A,this._selectedCells=((n,t,e,i)=>{var r=t,m=e;r.startDate.getTime()>m.startDate.getTime()&&([r,m]=[m,r]);var{groupIndex:D,index:A,startDate:N}=r,{index:Q,startDate:se}=m,Re=n.getCellsByGroupIndexAndAllDay(D??0,i).reduce((st,Ot)=>{var sn=((n,t)=>{var{firstDate:e,firstIndex:i,lastDate:r,lastIndex:m}=t,D=te.Z.trimTime(e).getTime(),A=te.Z.trimTime(r).getTime();return n.filter(N=>{var{index:Q,startDate:se}=N;return(n=>{var{date:t,firstDate:e,firstIndex:i,index:r,lastDate:m,lastIndex:D}=n;if(e===m){var A=i,N=D;return A>N&&([A,N]=[N,A]),e===t&&r>=A&&r<=N}return t===e&&r>=i||t===m&&r<=D||e<t&&t<m})({date:te.Z.trimTime(se).getTime(),index:Q,firstDate:D,firstIndex:i,lastDate:A,lastIndex:m})})})(Ot,{firstDate:N,lastDate:se,firstIndex:A,lastIndex:Q});return st.push(...sn),st},[]);return Re.sort((st,Ot)=>st.startDate.getTime()-Ot.startDate.getTime())})(this._viewDataProvider,A,N,D)}}setSelectedCellsByData(t){this._selectedCells=t}getSelectedCells(){return this._selectedCells}releaseSelectedAndFocusedCells(){this.releaseSelectedCells(),this.releaseFocusedCell()}releaseSelectedCells(){this._prevSelectedCells=this._selectedCells,this._prevFirstSelectedCell=this._firstSelectedCell,this._selectedCells=null,this._firstSelectedCell=null}releaseFocusedCell(){this._prevFocusedCell=this._focusedCell,this._focusedCell=null}restoreSelectedAndFocusedCells(){this._selectedCells=this._selectedCells||this._prevSelectedCells,this._focusedCell=this._focusedCell||this._prevFocusedCell,this._firstSelectedCell=this._firstSelectedCell||this._prevFirstSelectedCell,this._prevSelectedCells=null,this._prevFirstSelectedCell=null,this._prevFocusedCell=null}clearSelectedAndFocusedCells(){this._prevSelectedCells=null,this._selectedCells=null,this._prevFocusedCell=null,this._focusedCell=null}}class Cde{handleArrowClick(t){var A,{key:e,focusedCellPosition:i,edgeIndices:r,getCellDataByPosition:m,isAllDayPanelCell:D}=t;switch(e){case"down":A=this.getCellFromNextRowPosition(i,"next",r);break;case"up":A=this.getCellFromNextRowPosition(i,"prev",r);break;case"left":A=this.getCellFromNextColumnPosition((0,di.Z)({},t,{direction:"prev"}));break;case"right":A=this.getCellFromNextColumnPosition((0,di.Z)({},t,{direction:"next"}))}var N=m(A.rowIndex,A.columnIndex,D);return this.moveToCell((0,di.Z)({},t,{currentCellData:N}))}getCellFromNextRowPosition(t,e,i){var{columnIndex:r,rowIndex:m}=t,A=m+("next"===e?1:-1);return{columnIndex:r,rowIndex:A>=0&&A<=i.lastRowIndex?A:m}}getCellFromNextColumnPosition(t){var{focusedCellPosition:e,direction:i,edgeIndices:r,isRTL:m,isGroupedByDate:D,groupCount:A,isMultiSelection:N,viewType:Q}=t,{columnIndex:se,rowIndex:we}=e,{firstColumnIndex:Re,lastColumnIndex:Ue,firstRowIndex:st,lastRowIndex:Ot}=r,Kt=D&&N?A:1,sn=m?-1:1,rn=se+("next"===i?sn*Kt:-1*sn*Kt);return rn>=Re&&rn<=Ue?{columnIndex:rn,rowIndex:we}:Q0(Q)?e:this._processEdgeCell({nextColumnIndex:rn,rowIndex:we,columnIndex:se,firstColumnIndex:Re,lastColumnIndex:Ue,firstRowIndex:st,lastRowIndex:Ot,step:Kt})}_processEdgeCell(t){var{nextColumnIndex:e,rowIndex:i,columnIndex:r,firstColumnIndex:m,lastColumnIndex:D,firstRowIndex:A,lastRowIndex:N,step:Q}=t,se=e,we=i;if(e<m){var Ot=i-1,Kt=Ot>=A;we=Kt?Ot:i,se=Kt?D-(Q-r%Q-1):r}if(e>D){var wn=i+1,rn=wn<=N;we=rn?wn:i,se=rn?m+r%Q:r}return{columnIndex:se,rowIndex:we}}moveToCell(t){var{isMultiSelection:e,isMultiSelectionAllowed:i,focusedCellData:r,currentCellData:m}=t;return e&&i?this._getNextCellData(m,r):m}_getNextCellData(t,e,i){return i?e:this._isValidNextFocusedCell(t,e)?t:e}_isValidNextFocusedCell(t,e){if(!e)return!0;var{groupIndex:i,allDay:r}=e,{groupIndex:m,allDay:D}=t;return i===m&&r===D}}class lR{constructor(){this.semaphore=new f6,this.position={left:-1,top:-1}}isFree(t){return this.isInitialPosition()?(this.setPosition(t),this.semaphore.isFree()):this.semaphore.isFree()&&!this.comparePosition(t)}take(t){this.semaphore.take(),this.setPosition(t)}release(){this.semaphore.release()}setPosition(t){var e,i;this.position.left=null!==(e=t.left)&&void 0!==e?e:-1,this.position.top=null!==(i=t.top)&&void 0!==i?i:-1}isInitialPosition(){return-1===this.position.left&&-1===this.position.top}comparePosition(t){var e,i,r=null!==(e=t.left)&&void 0!==e?e:-1,m=null!==(i=t.top)&&void 0!==i?i:-1;return this.position.left===r&&this.position.top===m}}var{tableCreator:_w}=Jk,xde=V4.abstract,MT=te.Z.dateToMilliseconds,OH="dx-scheduler-work-space-vertical-group-table",DH="dx-scheduler-time-panel-cell",uR="dx-scheduler-all-day-panel",dR="dx-scheduler-all-day-table",TH="dx-scheduler-all-day-title",Vp="dx-scheduler-all-day-table-cell",IH="dx-scheduler-work-space-mouse-selection",cR="dx-scheduler-cell-sizes-horizontal",MH="dx-scheduler-cell-sizes-vertical",AH="dx-scheduler-group-header",mc="dx-scheduler-date-table-cell",AT="dx-scheduler-date-table-droppable-cell",PH=(0,k.V4)(So.Z.down,"dxSchedulerWorkSpace"),Ay={ENTER:(0,k.V4)(us.IO,"dxSchedulerDateTable"),DROP:(0,k.V4)(us.Cw,"dxSchedulerDateTable"),LEAVE:(0,k.V4)(us.Zu,"dxSchedulerDateTable")},kH=(0,k.V4)(v.u,"dxSchedulerDateTable"),RH=(0,k.V4)(So.Z.down,"dxSchedulerDateTable"),hR=(0,k.V4)(So.Z.up,"dxSchedulerDateTable"),LH=(0,k.V4)(So.Z.move,"dxSchedulerDateTable"),BH="dxCellData",FH=MT("day"),Ude=MT("hour"),PT=".".concat(Pk," td, .").concat(dR," td"),Zde=".".concat(mc,", .").concat(Vp);const VH=class Gde extends V4{get viewDataProvider(){return this._viewDataProvider||(this._viewDataProvider=new fle(this.type)),this._viewDataProvider}get cache(){return this._cache||(this._cache=new k4),this._cache}get cellsSelectionState(){if(!this._cellsSelectionState){this._cellsSelectionState=new yde(this.viewDataProvider);var t=this.option("selectedCellData");if(t?.length>0){var e=t.map(i=>{var r=i.groups;if(!r||0===this._getGroupCount())return(0,di.Z)({},i,{groupIndex:0});var m=this._getGroupIndexByResourceId(r);return(0,di.Z)({},i,{groupIndex:m})});this._cellsSelectionState.setSelectedCellsByData(e)}}return this._cellsSelectionState}get cellsSelectionController(){return this._cellsSelectionController||(this._cellsSelectionController=new Cde),this._cellsSelectionController}get isAllDayPanelVisible(){return this._isShowAllDayPanel()&&this.supportAllDayRow()}get verticalGroupTableClass(){return OH}get viewDirection(){return"vertical"}get renovatedHeaderPanelComponent(){return aR}get timeZoneCalculator(){return this.option("timeZoneCalculator")}get isDefaultDraggingMode(){return"default"===this.option("draggingMode")}_supportedKeys(){var t=function(i){i.preventDefault(),i.stopPropagation();var r=this.cellsSelectionState.getSelectedCells();if(null!=r&&r.length){var m=r.map(D=>this._getCellByData(D)).filter(D=>!!D);i.target=m,this._showPopup=!0,this._cellClickAction({event:i,cellElement:(0,l.Z)(m),cellData:r[0]})}},e=(i,r)=>{var m;i.preventDefault(),i.stopPropagation();var D=null===(m=this.cellsSelectionState.focusedCell)||void 0===m?void 0:m.cellData;if(D){var A=D.allDay&&!this._isVerticalGroupedWorkSpace(),N=i.shiftKey,Q=this.option("allowMultipleCellSelection"),se=this._isRTL(),we=this._getGroupCount(),Re=this.isGroupedByDate(),Ue=this._isHorizontalGroupedWorkSpace(),st=this.viewDataProvider.findCellPositionInMap((0,di.Z)({},D,{isAllDay:D.allDay})),Ot=Ue&&N&&!Re?this.viewDataProvider.getGroupEdgeIndices(D.groupIndex,A):this.viewDataProvider.getViewEdgeIndices(A),Kt=this.cellsSelectionController.handleArrowClick({focusedCellPosition:st,edgeIndices:Ot,isRTL:se,isGroupedByDate:Re,groupCount:we,isMultiSelection:N,isMultiSelectionAllowed:Q,viewType:this.type,key:r,getCellDataByPosition:this.viewDataProvider.getCellData.bind(this.viewDataProvider),isAllDayPanelCell:A,focusedCellData:D});this._processNextSelectedCell(Kt,D,N&&Q)}};return(0,y.l)(super._supportedKeys(),{enter:t,space:t,downArrow:i=>{e(i,"down")},upArrow:i=>{e(i,"up")},rightArrow:i=>{e(i,"right")},leftArrow:i=>{e(i,"left")}})}_isRTL(){return this.option("rtlEnabled")}_moveToCell(t,e){if((0,w.$K)(t)&&t.length){var i=this.option("allowMultipleCellSelection"),r=this._getFullCellData(t),m=this.cellsSelectionState.focusedCell.cellData,D=this.cellsSelectionController.moveToCell({isMultiSelection:e,isMultiSelectionAllowed:i,currentCellData:r,focusedCellData:m,isVirtualCell:t.hasClass(hT)});this._processNextSelectedCell(D,m,i&&e)}}_processNextSelectedCell(t,e,i){var r=this.viewDataProvider.findCellPositionInMap({startDate:t.startDate,groupIndex:t.groupIndex,isAllDay:t.allDay,index:t.index});if(!this.viewDataProvider.isSameCell(e,t)){var m=t.allDay&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(r.columnIndex):this._dom_getDateCell(r);this._setSelectedCellsStateAndUpdateSelection(t.allDay,r,i,m),this._dateTableScrollable.scrollToElement(m)}}_setSelectedCellsStateAndUpdateSelection(t,e,i,r){var m={rowIndex:e.rowIndex,columnIndex:e.columnIndex,allDay:t};this.cellsSelectionState.setFocusedCell(m.rowIndex,m.columnIndex,t),i?this.cellsSelectionState.setSelectedCells(m):this.cellsSelectionState.setSelectedCells(m,m),this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells(),r)}_hasAllDayClass(t){return t.hasClass(Vp)}_focusInHandler(t){if((0,l.Z)(t.target).is(this._focusTarget())&&!1!==this._isCellClick){if(delete this._isCellClick,delete this._contextMenuHandled,super._focusInHandler.apply(this,arguments),this.cellsSelectionState.restoreSelectedAndFocusedCells(),!this.cellsSelectionState.focusedCell){var e={columnIndex:0,rowIndex:0,allDay:this._isVerticalGroupedWorkSpace()&&this.isAllDayPanelVisible};this.cellsSelectionState.setFocusedCell(e.rowIndex,e.columnIndex,e.allDay),this.cellsSelectionState.setSelectedCells(e,e)}this.updateCellsSelection(),this._updateSelectedCellDataOption(this.cellsSelectionState.getSelectedCells())}}_focusOutHandler(){super._focusOutHandler.apply(this,arguments),!this._contextMenuHandled&&!this._disposed&&(this.cellsSelectionState.releaseSelectedAndFocusedCells(),this.viewDataProvider.updateViewData(this.generateRenderOptions()),this.updateCellsSelection())}_focusTarget(){return this.$element()}_isVerticalGroupedWorkSpace(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")}_isHorizontalGroupedWorkSpace(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")}_isWorkSpaceWithCount(){return this.option("intervalCount")>1}_isWorkspaceWithOddCells(){return.5===this.option("hoursInterval")&&!this.isVirtualScrolling()}_getRealGroupOrientation(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"}createRAllDayPanelElements(){this._$allDayPanel=(0,l.Z)("<div>").addClass(uR),this._$allDayTitle=(0,l.Z)("<div>").appendTo(this._$headerPanelEmptyCell)}_dateTableScrollableConfig(){var t={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,onScroll:()=>{var i;null===(i=this._groupedStrategy.cache)||void 0===i||i.clear()}};if(this._needCreateCrossScrolling()&&(t=(0,y.l)(t,this._createCrossScrollingConfig(t))),this.isVirtualScrolling()&&(this.virtualScrollingDispatcher.horizontalScrollingAllowed||this.virtualScrollingDispatcher.height)){var e=t.onScroll;t=(0,di.Z)({},t,{onScroll:i=>{e?.(i),this.virtualScrollingDispatcher.handleOnScrollEvent(i?.scrollOffset)}})}return t}_createCrossScrollingConfig(t){var e={direction:"both"},i=t.onScroll;return e.onScroll=r=>{var m,D;i(),this._dataTableSemaphore.take(r.scrollOffset),this._sideBarSemaphore.isFree(r.scrollOffset)&&(null===(m=this._sidebarScrollable)||void 0===m||m.scrollTo({top:r.scrollOffset.top})),this._headerSemaphore.isFree(r.scrollOffset)&&(null===(D=this._headerScrollable)||void 0===D||D.scrollTo({left:r.scrollOffset.left})),this._dataTableSemaphore.release()},e.onEnd=()=>{this.option("onScrollEnd")()},e}_headerScrollableConfig(){var t={useKeyboard:!1,showScrollbar:"never",direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,onScroll:e=>{this._headerSemaphore.take(e.scrollOffset),this._dataTableSemaphore.isFree(e.scrollOffset)&&this._dateTableScrollable.scrollTo({left:e.scrollOffset.left}),this._headerSemaphore.release()}};return t}_visibilityChanged(t){this.cache.clear(),t&&this._updateGroupTableHeight(),t&&this._needCreateCrossScrolling()&&this._setTableSizes()}_setTableSizes(){this.cache.clear(),this._attachTableClasses();var t=this.getCellWidth();t<this.getCellMinWidth()&&(t=this.getCellMinWidth());var e=this.getWorkSpaceMinWidth(),i=this._getGroupCount(),m=t*this._getTotalCellCount(i);m<e&&(m=e),(0,s.cl)(this._$headerPanel,m),(0,s.cl)(this._$dateTable,m),this._$allDayTable&&(0,s.cl)(this._$allDayTable,m),this._attachHeaderTableClasses(),this._updateGroupTableHeight(),this._updateScrollable()}getWorkSpaceMinWidth(){return this._groupedStrategy.getWorkSpaceMinWidth()}_dimensionChanged(){this._isVisible()&&(this.option("crossScrollingEnabled")&&this._setTableSizes(),this.updateHeaderEmptyCellWidth(),this._updateScrollable(),this.cache.clear())}_needCreateCrossScrolling(){return this.option("crossScrollingEnabled")}_getElementClass(){return(0,E.ZT)()}_getRowCount(){return this.viewDataProvider.getRowCount({intervalCount:this.option("intervalCount"),currentDate:this.option("currentDate"),viewType:this.type,hoursInterval:this.option("hoursInterval"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour")})}_getCellCount(){return this.viewDataProvider.getCellCount({intervalCount:this.option("intervalCount"),currentDate:this.option("currentDate"),viewType:this.type,hoursInterval:this.option("hoursInterval"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour")})}isRenovatedRender(){return this.renovatedRenderSupported()&&this.option("renovateRender")}_isVirtualModeOn(){return"virtual"===this.option("scrolling.mode")}isVirtualScrolling(){return this.isRenovatedRender()&&this._isVirtualModeOn()}_initVirtualScrolling(){this.virtualScrollingDispatcher&&(this.virtualScrollingDispatcher.dispose(),this.virtualScrollingDispatcher=null),this.virtualScrollingDispatcher=new Fse(this._getVirtualScrollingDispatcherOptions()),this.virtualScrollingDispatcher.attachScrollableEvents(),this.renderer=new Hse(this)}onDataSourceChanged(){}isGroupedAllDayPanel(){return i4(this.option("groups"),this.option("groupOrientation"),this.isAllDayPanelVisible)}generateRenderOptions(t){var e,r=this._getGroupCount()>0?this.option("groupOrientation"):this._getDefaultGroupStrategy();return(0,di.Z)({groupByDate:this.option("groupByDate"),startRowIndex:0,startCellIndex:0,groupOrientation:r,today:null===(e=this._getToday)||void 0===e?void 0:e.call(this),groups:this.option("groups"),isProvideVirtualCellsWidth:t,isAllDayPanelVisible:this.isAllDayPanelVisible,selectedCells:this.cellsSelectionState.getSelectedCells(),focusedCell:this.cellsSelectionState.focusedCell,headerCellTextFormat:this._getFormat(),getDateForHeaderText:(D,A)=>A,startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),cellDuration:this.getCellDuration(),viewType:this.type,intervalCount:this.option("intervalCount"),hoursInterval:this.option("hoursInterval"),currentDate:this.option("currentDate"),startDate:this.option("startDate"),firstDayOfWeek:this.option("firstDayOfWeek")},this.virtualScrollingDispatcher.getRenderState())}renovatedRenderSupported(){return!0}_updateGroupTableHeight(){this._isVerticalGroupedWorkSpace()&&(0,mi.Ym)()&&this._setHorizontalGroupHeaderCellsHeight()}updateHeaderEmptyCellWidth(){if((0,mi.Ym)()&&this._isRenderHeaderPanelEmptyCell()){var t=this.getTimePanelWidth(),e=this.getGroupTableWidth();this._$headerPanelEmptyCell.css("width",t+e)}}_isGroupsSpecified(t){return this.option("groups").length&&t}_getGroupIndexByResourceId(t){var e=this.option("groups"),i=dw(e);return i.length?this._getGroupIndexRecursively(i,t):0}_getGroupIndexRecursively(t,e){var r=e[t[0].name];return t.reduce((m,D)=>{var{leafIndex:A,value:N,children:Q}=D,se=r===N;return se&&void 0!==A?A:se?this._getGroupIndexRecursively(Q,e):m},0)}_getViewStartByOptions(){return mT(this.option("startDate"),this.option("currentDate"),this._getIntervalDuration(),this.option("startDate")?this._calculateViewStartDate():void 0)}_getIntervalDuration(){return this.viewDataProvider.getIntervalDuration(this.option("intervalCount"))}_getHeaderDate(){return this.getStartViewDate()}_calculateViewStartDate(){return this.option("startDate")}_firstDayOfWeek(){return this.viewDataProvider.getFirstDayOfWeek(this.option("firstDayOfWeek"))}_attachEvents(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()}_attachClickEvent(){var t=this,e=this._createAction(function(m){t._pointerDownHandler(m.event)});this._createCellClickAction();var i="."+mc+",."+Vp,r=this.$element();d.Z.off(r,PH),d.Z.off(r,kH),d.Z.on(r,PH,function(m){(0,k.N5)(m)&&m.which>1?m.preventDefault():e({event:m})}),d.Z.on(r,kH,i,function(m){var D=(0,l.Z)(m.target);t._cellClickAction({event:m,cellElement:(0,S.u)(D),cellData:t.getCellData(D)})})}_createCellClickAction(){this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:t=>this._cellClickHandler(t.args[0].event)})}_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}_cellClickHandler(){this._showPopup&&(delete this._showPopup,this._handleSelectedCellsClick())}_pointerDownHandler(t){var e=(0,l.Z)(t.target);if(e.hasClass(mc)||e.hasClass(Vp))if(this._isCellClick=!0,e.hasClass("dx-scheduler-focused-cell"))this._showPopup=!0;else{var i=this._getCoordinatesByCell(e),r=this._hasAllDayClass(e);this._setSelectedCellsStateAndUpdateSelection(r,i,!1,e)}else this._isCellClick=!1}_handleSelectedCellsClick(){var t=this.cellsSelectionState.getSelectedCells(),i=t[t.length-1],r={startDate:t[0].startDate,endDate:i.endDate};void 0!==i.allDay&&(r.allDay=i.allDay),this.option("onSelectedCellsClick")(r,i.groups)}_attachContextMenuEvent(){this._createContextMenuAction();var t="."+mc+",."+Vp,e=this.$element(),i=(0,k.V4)(hF.u,this.NAME);d.Z.off(e,i,t),d.Z.on(e,i,t,this._contextMenuHandler.bind(this))}_contextMenuHandler(t){var e=(0,l.Z)(t.target);this._contextMenuAction({event:t,cellElement:(0,S.u)(e),cellData:this.getCellData(e)}),this._contextMenuHandled=!0}_createContextMenuAction(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")}_getGroupHeaderContainer(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead}_getDateHeaderContainer(){return this._$thead}_getCalculateHeaderCellRepeatCount(){return this._groupedStrategy.calculateHeaderCellRepeatCount()}_updateScrollable(){var t,e;this._dateTableScrollable.update(),null===(t=this._headerScrollable)||void 0===t||t.update(),null===(e=this._sidebarScrollable)||void 0===e||e.update()}_getTimePanelRowCount(){return this._getCellCountInDay()}_getCellCountInDay(){var t=this.option("hoursInterval"),e=this.option("startDayHour"),i=this.option("endDayHour");return this.viewDataProvider.getCellCountInDay(e,i,t)}_getTotalCellCount(t){return this._groupedStrategy.getTotalCellCount(t)}_getTotalRowCount(t,e){var i=this._groupedStrategy.getTotalRowCount(t);return e&&this.isAllDayPanelVisible&&(i+=t),i}_getGroupIndex(t,e){return this._groupedStrategy.getGroupIndex(t,e)}calculateEndDate(t){var e=this.viewDataProvider.viewDataGenerator;return e.calculateEndDate(t,e.getInterval(this.option("hoursInterval")),this.option("endDayHour"))}_getGroupCount(){return Lp(this.option("groups"))}_attachTablesEvents(){var t=this.$element();this._attachDragEvents(t),this._attachPointerEvents(t)}_detachDragEvents(t){d.Z.off(t,Ay.ENTER),d.Z.off(t,Ay.LEAVE),d.Z.off(t,Ay.DROP)}_attachDragEvents(t){this._detachDragEvents(t),d.Z.on(t,Ay.ENTER,PT,{checkDropTarget:(e,i)=>!this._isOutsideScrollable(e,i)},e=>{this.preventDefaultDragging||(this.removeDroppableCellClass(),(0,l.Z)(e.target).addClass(AT))}),d.Z.on(t,Ay.LEAVE,()=>{this.preventDefaultDragging||this.removeDroppableCellClass()}),d.Z.on(t,Ay.DROP,PT,()=>{var e,i;if(this.dragBehavior){if(null===(e=this.dragBehavior)||void 0===e||!e.dragBetweenComponentsPromise)return void this.dragBehavior.removeDroppableClasses();null===(i=this.dragBehavior.dragBetweenComponentsPromise)||void 0===i||i.then(()=>{this.dragBehavior.removeDroppableClasses()})}})}_attachPointerEvents(t){var e=!1;d.Z.off(t,LH),d.Z.off(t,RH),d.Z.on(t,RH,PT,i=>{(0,k.N5)(i)&&1===i.which&&(e=!0,this.$element().addClass(IH),d.Z.off(b.Z.getDocument(),hR),d.Z.on(b.Z.getDocument(),hR,()=>{e=!1,this.$element().removeClass(IH)}))}),d.Z.on(t,LH,PT,i=>{e&&this._dateTableScrollable&&!this._dateTableScrollable.option("scrollByContent")&&(i.preventDefault(),i.stopPropagation(),this._moveToCell((0,l.Z)(i.target),!0))})}_getFormat(){return xde()}getWorkArea(){return this._$dateTableContainer}getScrollable(){return this._dateTableScrollable}getScrollableScrollTop(){return this._dateTableScrollable.scrollTop()}getGroupedScrollableScrollTop(t){return this._groupedStrategy.getScrollableScrollTop(t)}getScrollableScrollLeft(){return this._dateTableScrollable.scrollLeft()}getScrollableOuterWidth(){return this._dateTableScrollable.scrollWidth()}getScrollableContainer(){return(0,l.Z)(this._dateTableScrollable.container())}getHeaderPanelHeight(){return this._$headerPanel&&(0,s.zp)(this._$headerPanel,!0)}getTimePanelWidth(){return this._$timePanel&&(0,Yo.l)(this._$timePanel.get(0)).width}getGroupTableWidth(){return this._$groupTable?(0,s.Y_)(this._$groupTable):0}getWorkSpaceLeftOffset(){return this._groupedStrategy.getLeftOffset()}_getCellCoordinatesByIndex(t){var e=Math.floor(t/this._getRowCount());return{columnIndex:e,rowIndex:t-this._getRowCount()*e}}_getDateGenerationOptions(){var t;return{startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),isWorkView:this.viewDataProvider.viewDataGenerator.isWorkView,interval:null===(t=this.viewDataProvider.viewDataGenerator)||void 0===t?void 0:t.getInterval(this.option("hoursInterval")),startViewDate:this.getStartViewDate(),firstDayOfWeek:this._firstDayOfWeek()}}_getIntervalBetween(t,e){var i=this.getStartViewDate(),r=this.option("startDayHour")*Ude,m=te.Z.getTimezonesDifference(i,t),D=t.getTime()-i.getTime()-m,A=this._getDaysOfInterval(D,r),N=this._getWeekendsCount(A),Q=(A-N)*FH;return e||(Q=D-A*this.viewDataProvider.hiddenInterval-N*this.getVisibleDayDuration()),Q}_getWeekendsCount(){return 0}_getDaysOfInterval(t,e){return Math.floor((t+e)/FH)}_updateIndex(t){return t*this._getRowCount()}_getDroppableCell(){return this._getDateTables().find("."+AT)}_getWorkSpaceWidth(){return this.cache.get("workspaceWidth",()=>this._needCreateCrossScrolling()?(0,Yo.l)(this._$dateTable.get(0)).width:(0,Yo.l)(this.$element().get(0)).width-this.getTimePanelWidth()-this.getGroupTableWidth())}_getCellByCoordinates(t,e,i){var r=this._groupedStrategy.prepareCellIndexes(t,e,i);return this._dom_getDateCell(r)}_dom_getDateCell(t){return this._$dateTable.find("tr:not(.".concat("dx-scheduler-virtual-row",")")).eq(t.rowIndex).find("td:not(.".concat(hT,")")).eq(t.columnIndex)}_dom_getAllDayPanelCell(t){return this._$allDayPanel.find("tr").eq(0).find("td").eq(t)}_getCells(t,e){var i=t?Vp:mc;if("vertical"===e){for(var r=[],m=1;;m++){var D=this.$element().find("tr .".concat(i,":nth-child(").concat(m,")"));if(!D.length)break;r=r.concat(D.toArray())}return(0,l.Z)(r)}return this.$element().find("."+i)}_getFirstAndLastDataTableCell(){var t=this.isVirtualScrolling()?".".concat(mc,", .").concat(hT):".".concat(mc),e=this.$element().find(t);return[e[0],e[e.length-1]]}_getAllCells(t){if(this._isVerticalGroupedWorkSpace())return this._$dateTable.find("td:not(.".concat(hT,")"));var e=t&&this.supportAllDayRow()?Vp:mc;return this.$element().find(".".concat(e))}_setHorizontalGroupHeaderCellsHeight(){var t=(0,Yo.l)(this._$dateTable.get(0)).height;(0,s.qt)(this._$groupTable,t)}_getGroupHeaderCells(){return this.$element().find("."+AH)}_getScrollCoordinates(t,e,i,r,m){var D=i||new Date(this.option("currentDate")),A=this.option("startDayHour"),N=this.option("endDayHour");t<A&&(t=A),t>=N&&(t=N-1),D.setHours(t,e,0,0);var Q=this.viewDataProvider.findGlobalCellPosition(D,r,m),{position:se,cellData:we}=Q;return this.virtualScrollingDispatcher.calculateCoordinatesByDataAndPosition(we,se,D,Q0(this.type),"vertical"===this.viewDirection)}_isOutsideScrollable(t,e){var i=this._dateTableScrollable.$element(),r=(0,Yo.l)(i.get(0)),m=(0,mi.Jj)(),D=!(0,l.Z)(t).closest(i).length,A=e.pageX<r.left||e.pageX>r.left+r.width+(m.scrollX||0);return!(D&&!A)&&(e.pageY<r.top||e.pageY>r.top+r.height+(m.scrollY||0)||A)}setCellDataCache(t,e,i){var r=JSON.stringify({rowIndex:t.rowIndex,columnIndex:t.columnIndex,groupIndex:e});this.cache.set(r,this.getCellData(i))}setCellDataCacheAlias(t,e){var i=JSON.stringify({rowIndex:t.rowIndex,columnIndex:t.columnIndex,groupIndex:t.groupIndex}),r=JSON.stringify({top:e.top,left:e.left});this.cache.set(r,this.cache.get(i))}supportAllDayRow(){return!0}keepOriginalHours(){return!1}_filterCellDataFields(t){return(0,y.l)(!0,{},{startDate:t.startDate,endDate:t.endDate,groups:t.groups,groupIndex:t.groupIndex,allDay:t.allDay})}getCellData(t){var e=this._getFullCellData(t)||{};return this._filterCellDataFields(e)}_getFullCellData(t){if(t[0])return this._getDataByCell(t)}_getVirtualRowOffset(){return this.virtualScrollingDispatcher.virtualRowOffset}_getVirtualCellOffset(){return this.virtualScrollingDispatcher.virtualCellOffset}_getDataByCell(t){var e=t.parent().index()-this.virtualScrollingDispatcher.topVirtualRowsCount,i=t.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,{viewDataProvider:r}=this,m=this._hasAllDayClass(t);return r.getCellData(e,i,m)||void 0}isGroupedByDate(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0}getCellIndexByDate(t,e){var r=e?864e5:this.viewDataProvider.viewDataGenerator.getInterval(this.option("hoursInterval")),m=e4(this.getStartViewDate(),this.option("startDayHour")),D=this._getIntervalBetween(t,e)+m,A=Math.floor(D/r);return e&&(A=this._updateIndex(A)),A<0&&(A=0),A}getDroppableCellIndex(){var t=this._getDroppableCell(),e=t.parent();return e.index()*e.find("td").length+t.index()}getDataByDroppableCell(){var t=this.getCellData((0,l.Z)(this._getDroppableCell()));return{startDate:t.startDate,endDate:t.endDate,allDay:t.allDay,groups:t.groups}}getDateRange(){return[this.getStartViewDate(),this.getEndViewDateByEndDayHour()]}getCellMinWidth(){return 75}getRoundedCellWidth(t,e,i){if(t<0||!(0,mi.Ym)())return 0;var m=0,D=this.$element().find(".".concat(kk)).eq(0).find("."+mc),A=this._getCellCount()*t;i=i||this._getCellCount(),(0,w.$K)(e)||(e=A);for(var N=e;N<A+i;N++){var Q=(0,l.Z)(D).eq(N).get(0);m+=Q?(0,Yo.l)(Q).width:0}return m/(A+i-e)}getCellWidth(){return CT(this.getDOMElementsMetaData())}getCellHeight(){return jk(this.getDOMElementsMetaData())}getAllDayHeight(){return gw(this.option("showAllDayPanel"),this._isVerticalGroupedWorkSpace(),this.getDOMElementsMetaData())}getMaxAllowedPosition(t){return $k(t,this.viewDataProvider,this.option("rtlEnabled"),this.getDOMElementsMetaData())}getAllDayOffset(){return this._groupedStrategy.getAllDayOffset()}getCellIndexByCoordinates(t,e){var i=this._getTotalCellCount(this._getGroupCount()),r=this.getCellWidth(),m=e?this.getAllDayHeight():this.getCellHeight(),D=Math.floor(Math.floor(t.top)/Math.floor(m)),A=t.left/r;return A=Math.floor(A+.05),this._isRTL()&&(A=i-A-1),i*D+A}getStartViewDate(){return this.viewDataProvider.getStartViewDate()}getEndViewDate(){return this.viewDataProvider.getLastCellEndDate()}getEndViewDateByEndDayHour(){return this.viewDataProvider.getLastViewDateByEndDayHour(this.option("endDayHour"))}getCellDuration(){return s4(this.type,this.option("startDayHour"),this.option("endDayHour"),this.option("hoursInterval"))}getIntervalDuration(t){return t?MT("day"):this.getCellDuration()}getVisibleDayDuration(){var t=this.option("startDayHour"),e=this.option("endDayHour"),i=this.option("hoursInterval");return this.viewDataProvider.getVisibleDayDuration(t,e,i)}getGroupBounds(t){var e=this._groupedStrategy instanceof R4?this.getGroupBoundsVertical(t.groupIndex):this.getGroupBoundsHorizontal(t);return this._isRTL()?this.getGroupBoundsRtlCorrection(e):e}getGroupBoundsVertical(t){var e=this._getFirstAndLastDataTableCell();return this._groupedStrategy.getGroupBoundsOffset(t,e)}getGroupBoundsHorizontal(t){var e=this._getCellCount(),i=this._getCells(),r=this.getCellWidth();return this._groupedStrategy.getGroupBoundsOffset(e,i,r,t,this.viewDataProvider.groupedDataMap)}getGroupBoundsRtlCorrection(t){var e=this.getCellWidth();return(0,di.Z)({},t,{left:t.right-2*e,right:t.left+2*e})}needRecalculateResizableArea(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()}getCellDataByCoordinates(t,e){var i=JSON.stringify({top:t.top,left:t.left});return this.cache.get(i,()=>{var r=this._getCells(e),m=this.getCellIndexByCoordinates(t,e),D=r.eq(m);return this.getCellData(D)})}getVisibleBounds(){var t={},e=this.getScrollable().$element(),i=this.getCellHeight(),r=this.getScrollableScrollTop()/i,m=r+(0,s.Cr)(e)/i;return t.top={hours:Math.floor(r*this.option("hoursInterval"))+this.option("startDayHour"),minutes:r%2?30:0},t.bottom={hours:Math.floor(m*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(m)%2?30:0},t}updateScrollPosition(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.timeZoneCalculator.createDate(t,{path:"toGrid"}),m=i&&this.isAllDayPanelVisible;this.needUpdateScrollPosition(r,e,m)&&this.scrollTo(r,e,m,!1)}needUpdateScrollPosition(t,e,i){var r=this._getCellsInViewport(i),m=this._isGroupsSpecified(e)?this._getGroupIndexByResourceId(e):0,D=t.getTime(),A=te.Z.trimTime(t).getTime();return r.reduce((N,Q)=>{var{startDate:se,endDate:we,groupIndex:Re}=this.getCellData(Q),Ue=se.getTime(),st=we.getTime();return(!(!i&&Ue<=D&&D<st||i&&A===Ue)||m!==Re)&&N},!0)}_getCellsInViewport(t){var e=this.getScrollable().$element(),i=this.getCellHeight(),r=this.getCellWidth(),m=this._getTotalCellCount(this._getGroupCount()),D=this.getScrollableScrollTop(),A=this.getScrollableScrollLeft(),N=D/i-this.virtualScrollingDispatcher.topVirtualRowsCount,Q=Math.floor(N);D%i!=0&&(Q+=1);var se=A/r,we=Math.floor(se);A%r!=0&&(we+=1);var Re=Math.floor(N+(0,s.Cr)(e)/i),Ue=Math.floor(se+(0,s.dz)(e)/r),st=this._getAllCells(t),Ot=[];return st.each(function(Kt){var sn=(0,l.Z)(this),wn=Kt%m,rn=Kt/m;we<=wn&&wn<Ue&&Q<=rn&&rn<Re&&Ot.push(sn)}),Ot}scrollToTime(t,e,i){if(this._isValidScrollDate(i)){var r=this._getScrollCoordinates(t,e,i),m=this.getScrollable();m.scrollBy({top:r.top-m.scrollTop(),left:0})}}scrollTo(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this._isValidScrollDate(t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])){var m=this._getGroupCount()&&e?this._getGroupIndexByResourceId(e):0,D=i&&this.isAllDayPanelVisible,A=this._getScrollCoordinates(t.getHours(),t.getMinutes(),t,m,D),N=this.getScrollable(),Q=N.$element(),se=this.getCellWidth(),we=this.option("rtlEnabled")?se:0,Re=(0,s.Cr)(Q),Ot=((0,s.dz)(Q)-se)/2,Kt=(Re-this.getCellHeight())/2,sn=A.left-N.scrollLeft()-Ot-we,wn=A.top-N.scrollTop()-Kt;D&&!this._isVerticalGroupedWorkSpace()&&(wn=0),this.option("templatesRenderAsynchronously")?setTimeout(()=>{N.scrollBy({left:sn,top:wn})}):N.scrollBy({left:sn,top:wn})}}_isValidScrollDate(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.getStartViewDate(),r=this.getEndViewDate();return!(t<i||t>r)||(e&&Hs.Z.log("W1008",t),!1)}needApplyCollectorOffset(){return!1}removeDroppableCellClass(t){(t||this._getDroppableCell())?.removeClass(AT)}_getCoordinatesByCell(t){var e=t.index()-this.virtualScrollingDispatcher.leftVirtualCellsCount,i=t.parent().index(),r=this._hasAllDayClass(t),m=this._isVerticalGroupedWorkSpace();return r&&!m||(i-=this.virtualScrollingDispatcher.topVirtualRowsCount),{rowIndex:i,columnIndex:e}}_isShowAllDayPanel(){return this.option("showAllDayPanel")}_getTimePanelCells(){return this.$element().find(".".concat(DH))}_getRDateTableProps(){return{viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),addDateTableClass:!this.option("crossScrollingEnabled")||this.isVirtualScrolling(),groupOrientation:this.option("groupOrientation"),addVerticalSizesClassToRows:!1}}_updateSelectedCellDataOption(t){var e=t.map(i=>{var{startDate:r,endDate:m,allDay:D,groupIndex:A,groups:N}=i;return{startDate:r,endDate:m,allDay:D,groupIndex:A,groups:N}});this.option("selectedCellData",e),this._selectionChangedAction({selectedCellData:e})}_getCellByData(t){var{startDate:e,groupIndex:i,allDay:r,index:m}=t,D=this.viewDataProvider.findCellPositionInMap({startDate:e,groupIndex:i,isAllDay:r,index:m});if(D)return r&&!this._isVerticalGroupedWorkSpace()?this._dom_getAllDayPanelCell(D.columnIndex):this._dom_getDateCell(D)}getDOMElementsMetaData(){return this.cache.get("cellElementsMeta",()=>({dateTableCellsMeta:this._getDateTableDOMElementsInfo(),allDayPanelCellsMeta:this._getAllDayPanelDOMElementsInfo()}))}_getDateTableDOMElementsInfo(){var t=this._getAllCells(!1);if(!t.length||!(0,mi.Ym)())return[[{}]];var e=this._getDateTable(),i=(0,Yo.l)(e.get(0)),r=this.viewDataProvider.getColumnsCount(),m=[];return t.each((D,A)=>{var N=Math.floor(D/r);m.length===N&&m.push([]),this._addCellMetaData(m[N],A,i)}),m}_getAllDayPanelDOMElementsInfo(){var t=[];if(this.isAllDayPanelVisible&&!this._isVerticalGroupedWorkSpace()&&(0,mi.Ym)()){var e=this._getAllCells(!0);if(!e.length)return[{}];var r=(0,Yo.l)(this._$allDayPanel.get(0));e.each((m,D)=>{this._addCellMetaData(t,D,r)})}return t}_addCellMetaData(t,e,i){var r=(0,Yo.l)(e);t.push({left:r.left-i.left,top:r.top-i.top,width:r.width,height:r.height})}_oldRender_getAllDayCellData(t){return(e,i,r)=>{var m=r%this._getCellCount(),D=this._getDateGenerationOptions(!0),A=this.viewDataProvider.viewDataGenerator.getDateByCellIndices(D,i,m,this._getCellCountInDay());A=te.Z.trimTime(A);var N=t||0;this.isGroupedByDate()?N=Math.floor(r%this._getGroupCount()):this._isHorizontalGroupedWorkSpace()&&(N=Math.floor(r/this._getCellCount()));var Q={startDate:A,endDate:A,allDay:!0,groupIndex:N},se=wy(N,this.option("groups"));return se.length&&(Q.groups=oT(se)),{key:BH,value:Q}}}renderRWorkSpace(t){var e=t??{header:!0,timePanel:!0,dateTable:!0,allDayPanel:!0};e.header&&this.renderRHeaderPanel(),e.timePanel&&this.renderRTimeTable(),e.dateTable&&this.renderRDateTable(),e.allDayPanel&&this.renderRAllDayPanel()}renderRDateTable(){_l.renovation.renderComponent(this,this._$dateTable,sH,"renovatedDateTable",this._getRDateTableProps())}renderRGroupPanel(){var t={groups:this.option("groups"),groupOrientation:this.option("groupOrientation"),groupByDate:this.isGroupedByDate(),resourceCellTemplate:this.option("resourceCellTemplate"),className:this.verticalGroupTableClass,groupPanelData:this.viewDataProvider.getGroupPanelData(this.generateRenderOptions())};this.option("groups").length?(this._attachGroupCountClass(),_l.renovation.renderComponent(this,this._getGroupHeaderContainer(),_H,"renovatedGroupPanel",t)):this._detachGroupCountClass()}renderRAllDayPanel(){if(this.isAllDayPanelVisible&&!this.isGroupedAllDayPanel()){var e;this._toggleAllDayVisibility(!1);var i=(0,di.Z)({viewData:this.viewDataProvider.viewData,dataCellTemplate:this.option("dataCellTemplate"),startCellIndex:0},(null===(e=this.virtualScrollingDispatcher.horizontalVirtualScrolling)||void 0===e?void 0:e.getRenderState())||{});_l.renovation.renderComponent(this,this._$allDayTable,lH,"renovatedAllDayPanel",i),_l.renovation.renderComponent(this,this._$allDayTitle,dH,"renovatedAllDayPanelTitle",{})}this._toggleAllDayVisibility(!0)}renderRTimeTable(){_l.renovation.renderComponent(this,this._$timePanel,cH,"renovatedTimePanel",{timePanelData:this.viewDataProvider.timePanelData,timeCellTemplate:this.option("timeCellTemplate"),groupOrientation:this.option("groupOrientation")})}renderRHeaderPanel(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.option("groups").length?this._attachGroupCountClass():this._detachGroupCountClass(),_l.renovation.renderComponent(this,this._$thead,this.renovatedHeaderPanelComponent,"renovatedHeaderPanel",{dateHeaderData:this.viewDataProvider.dateHeaderData,groupPanelData:this.viewDataProvider.getGroupPanelData(this.generateRenderOptions()),dateCellTemplate:this.option("dateCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),groups:this.option("groups"),groupByDate:this.isGroupedByDate(),groupOrientation:this.option("groupOrientation"),resourceCellTemplate:this.option("resourceCellTemplate"),isRenderDateHeader:t})}initDragBehavior(t){if(!this.dragBehavior&&t){this.dragBehavior=new Ase(t);var e=(0,l.Z)(t.element());this._createDragBehavior(this.getWorkArea(),e),this._createDragBehavior(this.getAllDayContainer(),e)}}_createDragBehavior(t,e){this._createDragBehaviorBase(t,e,{getItemData:(r,m)=>m._getItemData(r),getItemSettings:r=>r.data(Bp)})}_createDragBehaviorBase(t,e,i){var r=this.$element().find(".".concat(P6));this.dragBehavior.addTo(t,((n,t,e,i,r,m,D,A,N,Q,se)=>{var we={dragElement:void 0,itemData:void 0},Re=()=>{var{itemData:st}=we;return!st||(0,Go.vb)("disabled")(st)};return{container:n,dragTemplate:()=>we.dragElement,onDragStart:st=>{e||m();var Ot=st.cancel,Kt=st.event,sn=(0,l.Z)(st.itemElement),wn=st.component._appointments;we.itemData=se.getItemData(st.itemElement,wn);var qt,un,In,Kn,rn=se.getItemSettings(sn,st),Ft=se.initialPosition;Re()||(Kt.data=Kt.data||{},Ot||(rn.isCompact||i.updateDragSource(we.itemData,rn),we.dragElement=(qt=we.itemData,un=rn,Kn=(In=wn).option("items").length,un.isCompact=!1,un.virtual=!1,In._renderItem(Kn,{itemData:qt,settings:[un]})[0]),Kt.data.itemElement=we.dragElement,Kt.data.initialPosition=Ft??(0,Ms.jt)((0,l.Z)(we.dragElement)),Kt.data.itemData=we.itemData,Kt.data.itemSettings=rn,i.onDragStart(Kt.data),(0,Ms.Kx)((0,l.Z)(we.dragElement))))},onDragMove:()=>{if(!e){var st=(0,s.dz)(we.dragElement),Kt=st>Q(),sn=(0,l.Z)(we.dragElement).parent(),wn=(0,Yo.l)(sn.get(0)),rn=wn.left+10,qt=b.Z.elementsFromPoint(Kt?rn:rn+st/2,wn.top+10),un=!!qt.find(Yn=>Yn===t.get(0)),In=A(),Kn=qt.find(Yn=>{var ai=Yn.classList;return 1===In.find(Yn).length&&(ai.contains(mc)||ai.contains(Vp))});Kn?(D().is(Kn)||N(),(0,l.Z)(Kn).addClass(AT)):un||N()}},onDragEnd:st=>{var Ot;e||r(),Re()||i.onDragEnd(st),null===(Ot=we.dragElement)||void 0===Ot||Ot.remove(),N()},cursorOffset:se.isSetCursorOffset?()=>{var st=(0,l.Z)(we.dragElement);return{x:(0,s.dz)(st)/2,y:(0,s.Cr)(st)/2}}:void 0,filter:se.filter}})(r,e,this.isDefaultDraggingMode,this.dragBehavior,()=>{this.isDefaultDraggingMode||(this.preventDefaultDragging=!1)},()=>{this.isDefaultDraggingMode||(this.preventDefaultDragging=!0)},()=>this._getDroppableCell(),()=>this._getDateTables(),()=>this.removeDroppableCellClass(),()=>this.getCellWidth(),i))}_isRenderHeaderPanelEmptyCell(){return this._isVerticalGroupedWorkSpace()}_dispose(){super._dispose(),this.virtualScrollingDispatcher.dispose()}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*MT("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1,scrolling:{mode:"standard"},allDayPanelMode:"all",renovateRender:!0,height:void 0,draggingMode:"outlook",onScrollEnd:()=>{},getHeaderHeight:void 0,onRenderAppointments:()=>{},onShowAllDayPanel:()=>{},onSelectedCellsClick:()=>{},timeZoneCalculator:void 0,schedulerHeight:void 0,schedulerWidth:void 0})}_optionChanged(t){switch(t.name){case"startDayHour":Vk(t.value,this.option("endDayHour")),this._cleanWorkSpace();break;case"endDayHour":Vk(this.option("startDayHour"),t.value),this._cleanWorkSpace();break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this.isRenovatedRender()?this.renderWorkSpace():this._toggleAllDayVisibility(!0);break;case"allDayExpanded":this._changeAllDayVisibility(),this._attachTablesEvents(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"allDayPanelMode":this.updateShowAllDayPanel(),this.updateAppointments();break;case"width":super._optionChanged(t),this._dimensionChanged();break;case"timeZoneCalculator":case"allowMultipleCellSelection":case"selectedCellData":break;case"renovateRender":case"scrolling":this.repaint();break;case"schedulerHeight":case"schedulerWidth":this.virtualScrollingDispatcher.updateDimensions(!0);break;default:super._optionChanged(t)}}updateShowAllDayPanel(){var t="hidden"===this.option("allDayPanelMode");this.option("onShowAllDayPanel")(!t)}_getVirtualScrollingDispatcherOptions(){return{getCellHeight:this.getCellHeight.bind(this),getCellWidth:this.getCellWidth.bind(this),getCellMinWidth:this.getCellMinWidth.bind(this),isRTL:this._isRTL.bind(this),getSchedulerHeight:()=>this.option("schedulerHeight"),getSchedulerWidth:()=>this.option("schedulerWidth"),getViewHeight:()=>this.$element().height?this.$element().height():(0,s.Cr)(this.$element()),getViewWidth:()=>this.$element().width?this.$element().width():(0,s.dz)(this.$element()),getWindowHeight:()=>(0,mi.Jj)().innerHeight,getWindowWidth:()=>(0,mi.Jj)().innerWidth,getScrolling:()=>this.option("scrolling"),getScrollableOuterWidth:this.getScrollableOuterWidth.bind(this),getScrollable:this.getScrollable.bind(this),createAction:this._createAction.bind(this),updateRender:this.updateRender.bind(this),updateGrid:this.updateGrid.bind(this),getGroupCount:this._getGroupCount.bind(this),isVerticalGrouping:this._isVerticalGroupedWorkSpace.bind(this),getTotalRowCount:this._getTotalRowCount.bind(this),getTotalCellCount:this._getTotalCellCount.bind(this)}}_cleanWorkSpace(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this.virtualScrollingDispatcher.updateDimensions(!0),this._renderView(),this.option("crossScrollingEnabled")&&this._setTableSizes(),this.cache.clear()}_init(){this._headerSemaphore=new lR,this._sideBarSemaphore=new lR,this._dataTableSemaphore=new lR,this._viewDataProvider=null,this._cellsSelectionState=null,this._activeStateUnit=Zde,super._init(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this.$element().addClass("dx-scheduler-work-space").addClass(this._getElementClass())}_initPositionHelper(){this.positionHelper=new $oe({key:this.option("key"),viewDataProvider:this.viewDataProvider,viewStartDayHour:this.option("startDayHour"),viewEndDayHour:this.option("endDayHour"),cellDuration:this.getCellDuration(),groupedStrategy:this._groupedStrategy,isGroupedByDate:this.isGroupedByDate(),rtlEnabled:this.option("rtlEnabled"),startViewDate:this.getStartViewDate(),isVerticalGrouping:this._isVerticalGroupedWorkSpace(),groupCount:this._getGroupCount(),isVirtualScrolling:this.isVirtualScrolling(),getDOMMetaDataCallback:this.getDOMElementsMetaData.bind(this)})}_initGrouping(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()}isVerticalOrientation(){return"vertical"===(this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy())}_initGroupedStrategy(){var t=this.isVerticalOrientation()?R4:vse;this._groupedStrategy=new t(this)}_getDefaultGroupStrategy(){return"horizontal"}_toggleHorizontalScrollClass(){this.$element().toggleClass("dx-scheduler-work-space-both-scrollbar",this.option("crossScrollingEnabled"))}_toggleGroupByDateClass(){this.$element().toggleClass("dx-scheduler-work-space-group-by-date",this.isGroupedByDate())}_toggleWorkSpaceCountClass(){this.$element().toggleClass("dx-scheduler-work-space-count",this._isWorkSpaceWithCount())}_toggleWorkSpaceWithOddCells(){this.$element().toggleClass("dx-scheduler-work-space-odd-cells",this._isWorkspaceWithOddCells())}_toggleGroupingDirectionClass(){this.$element().toggleClass("dx-scheduler-work-space-vertical-grouped",this._isVerticalGroupedWorkSpace())}_getDateTableCellClass(t,e){return this._groupedStrategy.addAdditionalGroupCellClasses(mc+" "+cR+" "+MH,e+1,t,e)}_getGroupHeaderClass(t){return this._groupedStrategy.addAdditionalGroupCellClasses(AH,t+1)}_initWorkSpaceUnits(){this._$headerPanelContainer=(0,l.Z)("<div>").addClass("dx-scheduler-header-panel-container"),this._$headerTablesContainer=(0,l.Z)("<div>").addClass("dx-scheduler-header-tables-container"),this._$headerPanel=(0,l.Z)("<table>"),this._$thead=(0,l.Z)("<thead>").appendTo(this._$headerPanel),this._$headerPanelEmptyCell=(0,l.Z)("<div>").addClass("dx-scheduler-header-panel-empty-cell"),this._$allDayTable=(0,l.Z)("<table>"),this._$fixedContainer=(0,l.Z)("<div>").addClass(P6),this._$allDayContainer=(0,l.Z)("<div>").addClass("dx-scheduler-all-day-appointments"),this._$dateTableScrollableContent=(0,l.Z)("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$sidebarScrollableContent=(0,l.Z)("<div>").addClass("dx-scheduler-side-bar-scrollable-content"),this._initAllDayPanelElements(),this.isRenovatedRender()?this.createRAllDayPanelElements():this._createAllDayPanelElements(),this._$timePanel=(0,l.Z)("<table>").addClass(R6),this._$dateTable=(0,l.Z)("<table>"),this._$dateTableContainer=(0,l.Z)("<div>").addClass("dx-scheduler-date-table-container"),this._$groupTable=(0,l.Z)("<div>").addClass(OH)}_initAllDayPanelElements(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]}_initDateTableScrollable(){var t=(0,l.Z)("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(t,nw.Z,this._dateTableScrollableConfig())}_createWorkSpaceElements(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()}_createWorkSpaceStaticElements(){var t;this._$dateTableContainer.append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._$dateTableContainer.append(this._$allDayContainer),this._$dateTableScrollableContent.append(this._$groupTable,this._$timePanel,this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$headerTablesContainer.append(this._$headerPanel)):(this._$dateTableScrollableContent.append(this._$timePanel,this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$headerTablesContainer.append(this._$headerPanel,this._$allDayPanel),null===(t=this._$allDayPanel)||void 0===t||t.append(this._$allDayContainer,this._$allDayTable)),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$fixedContainer,this._$headerPanelContainer,this._dateTableScrollable.$element())}_createWorkSpaceScrollableElements(){var t;this.$element().append(this._$fixedContainer),this._$flexContainer=(0,l.Z)("<div>").addClass("dx-scheduler-work-space-flex-container"),this._createHeaderScrollable(),this._headerScrollable.$content().append(this._$headerPanel),this._appendHeaderPanelEmptyCellIfNecessary(),this._$headerPanelContainer.append(this._$headerTablesContainer),this.$element().append(this._$headerPanelContainer),this.$element().append(this._$flexContainer),this._createSidebarScrollable(),this._$flexContainer.append(this._dateTableScrollable.$element()),this._$dateTableContainer.append(this._$dateTable),this._$dateTableScrollableContent.append(this._$dateTableContainer),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._isVerticalGroupedWorkSpace()?(this._$dateTableContainer.append(this._$allDayContainer),this._$sidebarScrollableContent.append(this._$groupTable,this._$timePanel)):(this._headerScrollable.$content().append(this._$allDayPanel),null===(t=this._$allDayPanel)||void 0===t||t.append(this._$allDayContainer,this._$allDayTable),this._$sidebarScrollableContent.append(this._$timePanel)),this._sidebarScrollable.$content().append(this._$sidebarScrollableContent)}_appendHeaderPanelEmptyCellIfNecessary(){this._isRenderHeaderPanelEmptyCell()&&this._$headerPanelContainer.append(this._$headerPanelEmptyCell)}_createHeaderScrollable(){var t=(0,l.Z)("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this._$headerTablesContainer);this._headerScrollable=this._createComponent(t,nw.Z,this._headerScrollableConfig())}_createSidebarScrollable(){var t=(0,l.Z)("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this._$flexContainer);this._sidebarScrollable=this._createComponent(t,nw.Z,{useKeyboard:!1,showScrollbar:"never",direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,onScroll:e=>{this._sideBarSemaphore.take(e.scrollOffset),this._dataTableSemaphore.isFree(e.scrollOffset)&&this._dateTableScrollable.scrollTo({top:e.scrollOffset.top}),this._sideBarSemaphore.release()}})}_attachTableClasses(){if(this._addTableClass(this._$dateTable,Pk),this._isVerticalGroupedWorkSpace())for(var t=this._getGroupCount(),e=0;e<t;e++)this._addTableClass(this._allDayTables[e],dR);else this.isRenovatedRender()||this._addTableClass(this._$allDayTable,dR)}_attachHeaderTableClasses(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")}_addTableClass(t,e){t&&!t.hasClass(e)&&t.addClass(e)}_initMarkup(){this.cache.clear(),this._initWorkSpaceUnits(),this._initVirtualScrolling(),this._initDateTableScrollable(),this._createWorkSpaceElements(),super._initMarkup(),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._renderView(),this._attachEvents()}_render(){super._render(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()}_toggleGroupedClass(){this.$element().toggleClass("dx-scheduler-work-space-grouped",this._getGroupCount()>0)}_renderView(){this.isRenovatedRender()?this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel():this._applyCellTemplates(this._renderGroupHeader()),this.renderWorkSpace(),this.isRenovatedRender()&&this.virtualScrollingDispatcher.updateDimensions(),this._updateGroupTableHeight(),this.updateHeaderEmptyCellWidth(),this._shader=new Dse(this)}updateCellsSelection(){var t=this.generateRenderOptions();this.viewDataProvider.updateViewData(t),this.renderRWorkSpace({timePanel:!0,dateTable:!0,allDayPanel:!0})}_renderDateTimeIndication(){return(0,E.ZT)()}_setIndicationUpdateInterval(){return(0,E.ZT)()}_refreshDateTimeIndication(){return(0,E.ZT)()}_detachGroupCountClass(){[...fT].forEach(t=>{this.$element().removeClass(t)})}_attachGroupCountClass(){var t=this._groupedStrategy.getGroupCountClass(this.option("groups"));this.$element().addClass(t)}_getDateHeaderTemplate(){return this.option("dateCellTemplate")}_toggleAllDayVisibility(t){var e=this._isShowAllDayPanel();this.$element().toggleClass("dx-scheduler-work-space-all-day",e),this._changeAllDayVisibility(),t&&this._updateScrollable()}_changeAllDayVisibility(){this.cache.clear(),this.$element().toggleClass("dx-scheduler-work-space-all-day-collapsed",!this.option("allDayExpanded")&&this._isShowAllDayPanel())}_getDateTables(){return this._$dateTable.add(this._$allDayTable)}_getDateTable(){return this._$dateTable}_removeAllDayElements(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()}_cleanView(){var t,e,i;this.cache.clear(),this._cleanTableWidths(),this.cellsSelectionState.clearSelectedAndFocusedCells(),this.isRenovatedRender()||(this._$thead.empty(),this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable.empty(),null===(e=this._$allDayTable)||void 0===e||e.empty(),null===(i=this._$sidebarTable)||void 0===i||i.empty()),null===(t=this._shader)||void 0===t||t.clean(),delete this._interval}_clean(){d.Z.off(b.Z.getDocument(),hR),this._disposeRenovatedComponents(),super._clean()}_cleanTableWidths(){this._$headerPanel.css("width",""),this._$dateTable.css("width",""),this._$allDayTable&&this._$allDayTable.css("width","")}_disposeRenovatedComponents(){var t,e,i,r,m;null===(t=this.renovatedAllDayPanel)||void 0===t||t.dispose(),this.renovatedAllDayPanel=void 0,null===(e=this.renovatedDateTable)||void 0===e||e.dispose(),this.renovatedDateTable=void 0,null===(i=this.renovatedTimePanel)||void 0===i||i.dispose(),this.renovatedTimePanel=void 0,null===(r=this.renovatedGroupPanel)||void 0===r||r.dispose(),this.renovatedGroupPanel=void 0,null===(m=this.renovatedHeaderPanel)||void 0===m||m.dispose(),this.renovatedHeaderPanel=void 0}getGroupedStrategy(){return this._groupedStrategy}getFixedContainer(){return this._$fixedContainer}getAllDayContainer(){return this._$allDayContainer}updateRender(){this.renderer.updateRender()}updateGrid(){this.renderer._renderGrid()}updateAppointments(){var t;this.option("onRenderAppointments")(),null===(t=this.dragBehavior)||void 0===t||t.updateDragSource()}_createAllDayPanelElements(){var t=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==t)for(var e=0;e<t;e++){var i=(0,l.Z)("<div>").addClass(TH).text(yn.Z.format("dxScheduler-allDay"));this._allDayTitles.push(i),this._$allDayTable=(0,l.Z)("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=(0,l.Z)("<div>").addClass(uR).append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=(0,l.Z)("<div>").addClass(TH).text(yn.Z.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=(0,l.Z)("<table>"),this._$allDayPanel=(0,l.Z)("<div>").addClass(uR).append(this._$allDayTable)}renderWorkSpace(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.cache.clear(),this.viewDataProvider.update(this.generateRenderOptions(),t),this.isRenovatedRender()?this.renderRWorkSpace():(this._renderDateHeader(),this._renderTimePanel(),this._renderGroupAllDayPanel(),this._renderDateTable(),this._renderAllDayPanel()),this._initPositionHelper()}_renderGroupHeader(){var t=this._getGroupHeaderContainer(),i=[];if(this._getGroupCount()){var r=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountClass(),t.append(r.elements),i=r.cellTemplates}else this._detachGroupCountClass();return i}_applyCellTemplates(t){t?.forEach(function(e){e()})}_makeGroupRows(t,e){var i=this._isVerticalGroupedWorkSpace()?_w.VERTICAL:_w.HORIZONTAL;return _w.makeGroupedTable(i,t,{groupHeaderRowClass:Oy,groupRowClass:Oy,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:Rk},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),e)}_renderDateHeader(){var t=this._getDateHeaderContainer(),e=(0,l.Z)("<tr>").addClass("dx-scheduler-header-row"),i=this._getCellCount(),r=this._getDateHeaderTemplate(),m=this._getCalculateHeaderCellRepeatCount(),D=[],A=this.isGroupedByDate();if(A){for(var we=A?this._getGroupCount():1,Re=0;Re<i;Re++)this._renderDateHeaderTemplate(e,Re,Re*m,r,D).attr("colSpan",we);t.prepend(e)}else{for(var N=0;N<m;N++)for(var Q=0;Q<i;Q++)this._renderDateHeaderTemplate(e,Q,N*i+Q,r,D);t.append(e)}return this._applyCellTemplates(D),e}_renderDateHeaderTemplate(t,e,i,r,m){var D=this.isGroupedByDate()?Math.floor(i/this._getGroupCount()):i,A=this.viewDataProvider.completeDateHeaderMap,{text:N,startDate:Q}=A[A.length-1][D],se=(0,l.Z)("<th>").addClass(this._getHeaderPanelCellClass(e)).attr("title",N);return null!=r&&r.render?m.push(r.render.bind(r,{model:(0,di.Z)({text:N,date:Q},this._getGroupsForDateHeaderTemplate(i)),index:i,container:(0,S.u)(se)})):se.text(N),t.append(se),se}_getGroupsForDateHeaderTemplate(t){var i,r,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()){i=this._getGroupIndex(0,t*e);var m=wy(i,this.option("groups"));r=oT(m)}return{groups:r,groupIndex:i}}_getHeaderPanelCellClass(t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell "+cR,t+1,void 0,void 0,this.isGroupedByDate())}_renderAllDayPanel(t){var e=this._getCellCount();this._isVerticalGroupedWorkSpace()||(e*=this._getGroupCount()||1);var i=this._renderTableBody({container:(0,S.u)(this._allDayPanels.length?this._allDayTables[t]:this._$allDayTable),rowCount:1,cellCount:e,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:"dx-scheduler-all-day-table-row",cellTemplate:this.option("dataCellTemplate"),getCellData:this._oldRender_getAllDayCellData(t),groupIndex:t},!0);this._toggleAllDayVisibility(!0),this._applyCellTemplates(i)}_renderGroupAllDayPanel(){if(this._isVerticalGroupedWorkSpace())for(var t=this._getGroupCount(),e=0;e<t;e++)this._renderAllDayPanel(e)}_getAllDayPanelCellClass(t,e){return this._groupedStrategy.addAdditionalGroupCellClasses(Vp+" "+cR,e+1)}_renderTimePanel(){var t=this._groupedStrategy.calculateTimeCellRepeatCount(),e=(i,r)=>{var m=0;return this.isAllDayPanelVisible&&(m=1),this.isGroupedAllDayPanel()&&(m=Math.ceil((i+1)/this._getRowCount())),this.viewDataProvider.completeTimePanelMap[i+m][r]};this._renderTableBody({container:(0,S.u)(this._$timePanel),rowCount:this._getTimePanelRowCount()*t,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:"dx-scheduler-time-panel-row",cellTemplate:this.option("timeCellTemplate"),getCellText:i=>e(i,"text"),getCellDate:i=>e(i,"startDate"),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0,getTemplateData:(i=>{if(!this._isVerticalGroupedWorkSpace())return{};var r=this._getGroupIndex(i,0),m=wy(r,this.option("groups"));return{groupIndex:r,groups:oT(m)}}).bind(this)})}_getTimeCellClass(t){var e=DH+" "+MH;return this._isVerticalGroupedWorkSpace()?this._groupedStrategy.addAdditionalGroupCellClasses(e,t,t):e}_renderDateTable(){var t=this._getGroupCount();this._renderTableBody({container:(0,S.u)(this._$dateTable),rowCount:this._getTotalRowCount(t),cellCount:this._getTotalCellCount(t),cellClass:this._getDateTableCellClass.bind(this),rowClass:kk,cellTemplate:this.option("dataCellTemplate"),getCellData:(e,i,r)=>{var D=i;if(this.isGroupedAllDayPanel()){var A=this._getRowCount();D+=Math.ceil(i/A)}var Q=this.viewDataProvider.viewDataMap.dateTableMap[D][r].cellData;return{value:this._filterCellDataFields(Q),fullValue:Q,key:BH}},allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:t,groupByDate:this.option("groupByDate")})}_insertAllDayRowsIntoDateTable(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()}_renderTableBody(t,e){var i=[];return e?i=_w.makeTable(t):this._applyCellTemplates(_w.makeTable(t)),i}};var{tableCreator:NH}=Jk,HH="dx-scheduler-group-table";class zH extends VH{get type(){return rs.AGENDA}get renderingStrategy(){return this.invoke("getLayoutManager").getRenderingStrategyInstance()}get appointmentDataProvider(){return this.option("getAppointmentDataProvider")()}getStartViewDate(){return this._startViewDate}_init(){super._init(),this._activeStateUnit=void 0}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{agendaDuration:7,rowHeight:60,noDataText:""})}_optionChanged(t){var i=t.value;switch(t.name){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":i&&i.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountClass()),super._optionChanged(t);break;default:super._optionChanged(t)}}_renderFocusState(){return(0,E.ZT)()}_renderFocusTarget(){return(0,E.ZT)()}_cleanFocusState(){return(0,E.ZT)()}supportAllDayRow(){return!1}_isVerticalGroupedWorkSpace(){return!1}_getElementClass(){return"dx-scheduler-agenda"}_calculateStartViewDate(){return((n,t)=>{var e=new Date(n);return zf(e,t)})(this.option("currentDate"),this.option("startDayHour"))}_getRowCount(){return this.option("agendaDuration")}_getCellCount(){return 1}_getTimePanelRowCount(){return this.option("agendaDuration")}_renderAllDayPanel(){return(0,E.ZT)()}_toggleAllDayVisibility(){return(0,E.ZT)()}_initWorkSpaceUnits(){this._initGroupTable(),this._$timePanel=(0,l.Z)("<table>").addClass(R6),this._$dateTable=(0,l.Z)("<table>").addClass(Pk),this._$dateTableScrollableContent=(0,l.Z)("<div>").addClass("dx-scheduler-date-table-scrollable-content"),this._$dateTableContainer=(0,l.Z)("<div>").addClass("dx-scheduler-date-table-container")}_initGroupTable(){var t=this.option("groups");t&&t.length&&(this._$groupTable=(0,l.Z)("<table>").addClass(HH))}_renderView(){this._startViewDate=this._calculateStartViewDate(),this._rows=[],this._initPositionHelper()}_recalculateAgenda(t){var e=[];this._cleanView(),this._rowsIsEmpty(t)?this._renderNoData():(this._rows=t,this._$groupTable&&(e=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("onAgendaReady",t),this._applyCellTemplates(e),this._dateTableScrollable.update())}_renderNoData(){this._$noDataContainer=(0,l.Z)("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)}_setTableSizes(){return(0,E.ZT)()}_toggleHorizontalScrollClass(){return(0,E.ZT)()}_createCrossScrollingConfig(){return(0,E.ZT)()}_setGroupHeaderCellsHeight(){var t=this._getGroupHeaderCells().filter(function(m,D){return!D.getAttribute("rowSpan")}),e=this._removeEmptyRows(this._rows);if(e.length)for(var i=0;i<t.length;i++){var r=t.eq(i).find(".dx-scheduler-group-header-content");(0,s.qt)(r,this._getGroupRowHeight(e[i]))}}_rowsIsEmpty(t){for(var e=!0,i=0;i<t.length;i++)for(var r=t[i],m=0;m<r.length;m++)if(r[m]){e=!1;break}return e}_attachGroupCountClass(){var t=n4(this.option("groups"));this.$element().addClass(t)}_removeEmptyRows(t){for(var e=[],i=0;i<t.length;i++)t[i].length&&t[i].some(function(m){return m>0})&&e.push(t[i]);return e}_getGroupHeaderContainer(){return this._$groupTable}_makeGroupRows(){var t=((n,t,e)=>{var i=dw(n);return a6(t,i,e)})(this.option("loadedResources"),(D,A)=>sT(this.option("getResourceDataAccessors")(),D,A),this.option("getFilteredItems")()),e=this.option("resourceCellTemplate"),i=Rk,r=[],m=NH.makeGroupedTableFromJSON(NH.VERTICAL,t,{cellTag:"th",groupTableClass:HH,groupRowClass:Oy,groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent(D,A,N,Q){var se=b.Z.createElement("div"),we=b.Z.createElement("div");se.className=i,we.appendChild(A),se.appendChild(we),se.className=i,e&&e.render?r.push(e.render.bind(e,{model:{data:Q.data,id:Q.value,color:Q.color,text:A.textContent},container:(0,S.u)((0,l.Z)(se)),index:N})):(we.appendChild(A),se.appendChild(we)),D.appendChild(se)},cellTemplate:e});return{elements:(0,l.Z)(m).find(".".concat(Oy)),cellTemplates:r}}_cleanView(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)}_createWorkSpaceElements(){this._createWorkSpaceStaticElements()}_createWorkSpaceStaticElements(){this._$dateTableContainer.append(this._$dateTable),this._dateTableScrollable.$content().append(this._$dateTableScrollableContent),this._$groupTable&&this._$dateTableScrollableContent.prepend(this._$groupTable),this._$dateTableScrollableContent.append(this._$timePanel,this._$dateTableContainer),this.$element().append(this._dateTableScrollable.$element())}_renderDateTable(){this._renderTableBody({container:(0,S.u)(this._$dateTable),rowClass:kk,cellClass:this._getDateTableCellClass()})}_attachTablesEvents(){return(0,E.ZT)()}_attachEvents(){return(0,E.ZT)()}_cleanCellDataCache(){return(0,E.ZT)()}isIndicationAvailable(){return!1}_prepareCellTemplateOptions(t,e,i,r){var m=this.option("groups"),D={},A=!!m.length;(A&&i6(i,m)||[]).forEach(function(se,we){D[m[we].name]=se});var Q=A?this._getGroupIndexByResourceId(D):void 0;return{model:{text:t,date:e,groups:D,groupIndex:Q},container:(0,S.u)(r),index:i}}_renderTableBody(t){var e=[],i=t.cellTemplate;this._$rows=[];var r,m=function(D,A){if(A){var N,Q,se,we=(0,l.Z)("<tr>"),Re=(0,l.Z)("<td>");if((0,s.QQ)(Re,this._getRowHeight(A)),t.getStartDate&&(N=t.getStartDate&&t.getStartDate(D),Q=zo.Z.format(N,"d"),se=zo.Z.format(N,Nk)),i&&i.render){var Ue=this._prepareCellTemplateOptions(Q+" "+se,N,r,Re);e.push(i.render.bind(i,Ue))}else Q&&se&&Re.addClass("dx-scheduler-agenda-date").text(Q+" "+se);t.rowClass&&we.addClass(t.rowClass),t.cellClass&&Re.addClass(t.cellClass),we.append(Re),this._$rows.push(we)}}.bind(this);for(r=0;r<this._rows.length;r++)(0,O.S6)(this._rows[r],m),this._setLastRowClass();(0,l.Z)(t.container).append((0,l.Z)("<tbody>").append(this._$rows)),this._applyCellTemplates(e)}_setLastRowClass(){this._rows.length>1&&this._$rows.length&&this._$rows[this._$rows.length-1].addClass("dx-scheduler-date-table-last-row")}_renderTimePanel(){this._renderTableBody({container:(0,S.u)(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:"dx-scheduler-time-panel-row",cellClass:"dx-scheduler-time-panel-cell",cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})}_getTimePanelStartDate(t){var e=new Date(this.option("currentDate"));return new Date(e.setDate(e.getDate()+t))}_getRowHeight(t){var e=this.option("rowHeight");return t?e*t+5*(t-1)+20:0}_getGroupRowHeight(t){if(t){for(var e=0,i=0;i<t.length;i++)e+=this._getRowHeight(t[i]);return e}}_calculateRows(t){return this.renderingStrategy.calculateRows(t,this.option("agendaDuration"),this.option("currentDate"))}onDataSourceChanged(t){super.onDataSourceChanged(),this._renderView();var e=this._calculateRows(t);this._recalculateAgenda(e)}getAgendaVerticalStepHeight(){return this.option("rowHeight")}getEndViewDate(){var t=new Date(this.option("currentDate")),e=this.option("agendaDuration");t.setHours(this.option("endDayHour"));var i=t.setDate(t.getDate()+e-1)-6e4;return new Date(i)}getEndViewDateByEndDayHour(){return this.getEndViewDate()}getCellDataByCoordinates(){return{startDate:null,endDate:null}}updateScrollPosition(t){var e=this.timeZoneCalculator.createDate(t,{path:"toGrid"}),i=this.getVisibleBounds(),r=e.getHours(),m=e.getMinutes();this.needUpdateScrollPosition(r,m,i,e)&&this.scrollToTime(r,m,e)}needUpdateScrollPosition(t,e,i){var r=!1;return(t<i.top.hours||t>i.bottom.hours)&&(r=!0),t===i.top.hours&&e<i.top.minutes&&(r=!0),t===i.bottom.hours&&e>i.top.minutes&&(r=!0),r}renovatedRenderSupported(){return!1}_setSelectedCellsByCellData(){}_getIntervalDuration(){return te.Z.dateToMilliseconds("day")*this.option("intervalCount")}getDOMElementsMetaData(){return{dateTableCellsMeta:[[{}]],allDayPanelCellsMeta:[{}]}}}(0,T.Z)("dxSchedulerAgenda",zH);const ice=zH;var Py=te.Z.dateToMilliseconds,WH="dx-scheduler-date-time-indicator",pR="dx-scheduler-time-panel-current-time-cell";class UH extends VH{_getToday(){return t4(this.option("indicatorTime"),this.timeZoneCalculator)}isIndicationOnView(){if(this.option("showCurrentTimeIndicator")){var t=this._getToday(),e=te.Z.trimTime(this.getEndViewDate());return te.Z.dateInRange(t,this.getStartViewDate(),new Date(e.getTime()+Py("day")))}return!1}isIndicationAvailable(){return!!(0,mi.Ym)()&&this._getToday()>=te.Z.trimTime(new Date(this.getStartViewDate()))}isIndicatorVisible(){var t=this._getToday(),e=new Date(this.getEndViewDate().getTime()+Py("minute")-1),i=new Date(this.getStartViewDate());return i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),te.Z.dateInRange(t,i,e)}_renderDateTimeIndication(){if(this.isIndicationAvailable()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(),this.isIndicationOnView()&&this.isIndicatorVisible())){var t=this._getGroupCount()||1,e=this._dateTableScrollable.$content(),i=this.getIndicationHeight(),r=this._getRtlOffset(this.getCellWidth());this._renderIndicator(i,r,e,t),this._setCurrentTimeCells()}}_renderIndicator(t,e,i,r){for(var m=this.isGroupedByDate(),D=m?1:r,A=0;A<D;A++){var N=this._createIndicator(i);(0,s.cl)(N,m?this.getCellWidth()*r:this.getCellWidth()),this._groupedStrategy.shiftIndicator(N,t,e,A)}}_createIndicator(t){var e=(0,l.Z)("<div>").addClass(WH);return t.append(e),e}_getRtlOffset(t){return this.option("rtlEnabled")?(0,Yo.l)(this._dateTableScrollable.$content().get(0)).width-this.getTimePanelWidth()-t:0}_setIndicationUpdateInterval(){!this.option("showCurrentTimeIndicator")||0===this.option("indicatorUpdateInterval")||(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))}_clearIndicatorUpdateInterval(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)}_isVerticalShader(){return!0}getIndicationWidth(t){var e=this.getCellWidth()*this._getCellCount(),i=this._getIndicatorDuration();i>this._getCellCount()&&(i=this._getCellCount());var r=i*this.getRoundedCellWidth(t,t*this._getCellCount(),i);return e<r?e:r}getIndicatorOffset(t){var e=this._getIndicatorDuration()-1;return e*this.getRoundedCellWidth(t,t*this._getCellCount(),e)}_getIndicatorDuration(){var t=this._getToday(),e=new Date(this.getStartViewDate()),i=t.getTime()-e.getTime();return"workWeek"===this.option("type")&&(i-=this._getWeekendsCount(Math.round(i/Py("day")))*Py("day")),Math.ceil((i+1)/Py("day"))}getIndicationHeight(){var t=ia.getDateWithoutTimezoneChange(this._getToday()),e=this.getCellHeight(),i=new Date(this.getStartViewDate());return this.isIndicationOnView()&&i.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),(t.getTime()-i.getTime())/this.getCellDuration()*e}_dispose(){this._clearIndicatorUpdateInterval(),super._dispose.apply(this,arguments)}_refreshDateTimeIndication(){var t;this._cleanDateTimeIndicator(),this._cleanCurrentTimeCells(),null===(t=this._shader)||void 0===t||t.clean(),this._renderDateTimeIndication()}_setCurrentTimeCells(){var t=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach(i=>{t.eq(i).addClass(pR)})}_isCurrentTimeHeaderCell(t){if(this.isIndicationOnView()){var e=this.viewDataProvider.completeDateHeaderMap;return te.Z.sameDate(e[e.length-1][t].startDate,this._getToday())}return!1}_getHeaderPanelCellClass(t){var e=super._getHeaderPanelCellClass(t);return this._isCurrentTimeHeaderCell(t)?e+" "+cT:e}_cleanView(){super._cleanView(),this._cleanDateTimeIndicator()}_dimensionChanged(){super._dimensionChanged(),this._refreshDateTimeIndication()}_cleanDateTimeIndicator(){this.$element().find("."+WH).remove()}_cleanCurrentTimeCells(){this.$element().find(".".concat(pR)).removeClass(pR)}_cleanWorkSpace(){super._cleanWorkSpace(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()}_optionChanged(t){switch(t.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":super._optionChanged(t),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:super._optionChanged(t)}}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*Py("minute"),shadeUntilCurrentTime:!0})}_getCurrentTimePanelCellIndices(){var m,t=this._getTimePanelRowCount(),e=this._getToday(),i=this.getCellIndexByDate(e),{rowIndex:r}=this._getCellCoordinatesByIndex(i);if(void 0===r)return[];m=0===r?[r]:r%2==0?[r-1,r]:[r,r+1];var D=this._isVerticalGroupedWorkSpace()?this._getGroupCount():1;return[...new Array(D)].reduce((A,N,Q)=>[...A,...m.map(se=>t*Q+se)],[])}}(0,T.Z)("dxSchedulerWorkSpace",UH);const gR=UH,oce=class rce extends B4{renderShader(){for(var t=this._workSpace._isHorizontalGroupedWorkSpace()?this._workSpace._getGroupCount():1,e=0;e<t;e++){var i=0===e,r=i?this._$shader:this.createShader();this._workSpace.isGroupedByDate()?this._customizeGroupedByDateShader(r,e):this._customizeShader(r,e),!i&&this._shader.push(r)}}_customizeShader(t,e){var i=this._workSpace.getIndicationWidth();if(this._applyShaderWidth(t,i),e>=1){var r=this._workSpace,m=r._getCellCount()*r.getCellWidth();t.css("left",m)}else t.css("left",0)}_applyShaderWidth(t,e){var i=(0,Yo.l)(this._$container.get(0)).width;e>i&&(e=i),e>0&&(0,s.cl)(t,e)}_customizeGroupedByDateShader(t,e){var Q,i=this._workSpace.getIndicationCellCount(),r=Math.floor(i),m=i-r,D=0===e,A=this._workSpace,N=D?A.getIndicationWidth():m*A.getCellWidth();this._applyShaderWidth(t,N),Q=D?A._getCellCount()*A.getCellWidth()*e:A.getCellWidth()*r*A._getGroupCount()+e*A.getCellWidth(),t.css("left",Q)}};var ace=(n,t,e)=>{if(!ia.isTimezoneChangeInDate(t))return t;var{cellCountInDay:i,interval:r,startDayHour:m,startViewDate:D}=e,A=Q6(D,m),N=n%i;return A.setTime(A.getTime()+N*r),A},sce=["dateCellTemplate","dateHeaderData","groupByDate","groupOrientation","groups","timeCellTemplate"],{isMaterial:lce}=xH(),ZH=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let dce=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get isHorizontalGrouping(){var{groupByDate:e,groupOrientation:i,groups:r}=this.props;return pw(r,i)&&!e}get restAttributes(){return(0,Mi.Z)(this.props,sce)}render(){var e=this.props;return(n=>{var{isHorizontalGrouping:t,props:{dateCellTemplate:e,dateHeaderData:i,timeCellTemplate:r}}=n,{dataMap:m,isMonthDateHeader:D,leftVirtualCellCount:A,leftVirtualCellWidth:N,rightVirtualCellCount:Q,rightVirtualCellWidth:se,weekDayLeftVirtualCellCount:we,weekDayLeftVirtualCellWidth:Re,weekDayRightVirtualCellCount:Ue,weekDayRightVirtualCellWidth:st}=i;return(0,tr.xJ)(m.map((Ot,Kt)=>{var sn=m.length,wn=sn-1===Kt,rn=sn>1&&0===Kt,Ft=lce&&(D||rn),qt=A,un=Q,In=se,Kn=N;return rn&&(qt=we,un=Ue,In=st,Kn=Re),(0,tr.Iz)(2,n_,{className:"dx-scheduler-header-row",leftVirtualCellWidth:Kn,leftVirtualCellCount:qt,rightVirtualCellWidth:In,rightVirtualCellCount:un,children:Ot.map(Yn=>{var{colSpan:ai,endDate:gi,groupIndex:Ci,groups:Ki,index:Bi,isFirstGroupCell:ri,isLastGroupCell:Fi,key:Gi,startDate:or,text:fr,today:_r}=Yn;return(0,tr.Iz)(2,CH,{startDate:or,endDate:gi,groups:t?Ki:void 0,groupIndex:t?Ci:void 0,today:_r,index:Bi,text:fr,isFirstGroupCell:ri,isLastGroupCell:Fi,isWeekDayCell:rn,colSpan:ai,splitText:Ft,dateCellTemplate:e,timeCellTemplate:r,isTimeCellTemplate:wn},Gi)})},Kt.toString())}),0)})({props:(0,di.Z)({},e,{dateCellTemplate:ZH(e.dateCellTemplate),timeCellTemplate:ZH(e.timeCellTemplate)}),isHorizontalGrouping:this.isHorizontalGrouping,restAttributes:this.restAttributes})}}return n.defaultProps=bH,n})();var cce=["className","dateCellTemplate","dateHeaderData","dateHeaderTemplate","elementRef","groupByDate","groupOrientation","groupPanelData","groups","height","isRenderDateHeader","resourceCellTemplate","timeCellTemplate"],kT=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let pce=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get restAttributes(){return(0,Mi.Z)(this.props,cce)}render(){var e=this.props;return(n=>{var{props:{dateCellTemplate:t,dateHeaderData:e,groupByDate:i,groupOrientation:r,groupPanelData:m,groups:D,isRenderDateHeader:A,resourceCellTemplate:N,timeCellTemplate:Q}}=n;return(0,tr.Iz)(2,SH,{dateHeaderTemplate:dce,dateHeaderData:e,groupPanelData:m,groupByDate:i,groups:D,groupOrientation:r,isRenderDateHeader:A,resourceCellTemplate:N,dateCellTemplate:t,timeCellTemplate:Q})})({props:(0,di.Z)({},e,{dateCellTemplate:kT(e.dateCellTemplate),timeCellTemplate:kT(e.timeCellTemplate),dateHeaderTemplate:kT(e.dateHeaderTemplate),resourceCellTemplate:kT(e.resourceCellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=EH,n})();class KH extends vH{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["dateCellTemplate","timeCellTemplate","dateHeaderTemplate","resourceCellTemplate"],props:["dateHeaderData","isRenderDateHeader","dateCellTemplate","timeCellTemplate","dateHeaderTemplate","groups","groupOrientation","groupPanelData","groupByDate","height","className","resourceCellTemplate"]}}get _viewComponent(){return pce}}(0,T.Z)("dxTimelineHeaderPanelLayout",KH);var{tableCreator:fR}=Jk,GH="dx-scheduler-group-table",jH="dx-scheduler-header-panel-cell",$H="dx-scheduler-header-panel-week-cell",Wf=te.Z.dateToMilliseconds;class YH extends gR{get verticalGroupTableClass(){return GH}get viewDirection(){return"horizontal"}get renovatedHeaderPanelComponent(){return KH}getGroupTableWidth(){return this._$sidebarTable?(0,s.Y_)(this._$sidebarTable):0}_getTotalRowCount(t){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(t=t||1,this._getRowCount()*t)}_getFormat(){return"shorttime"}_getWorkSpaceHeight(){return this.option("crossScrollingEnabled")&&(0,mi.Ym)()?(0,Yo.l)(this._$dateTable.get(0)).height:(0,Yo.l)(this.$element().get(0)).height}_dateTableScrollableConfig(){var t=super._dateTableScrollableConfig();return this.option("crossScrollingEnabled")?t:(0,y.l)(t,{direction:"horizontal"})}_needCreateCrossScrolling(){return!0}_headerScrollableConfig(){var t=super._headerScrollableConfig();return(0,y.l)(t,{scrollByContent:!0})}supportAllDayRow(){return!1}_getGroupHeaderContainer(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable}_insertAllDayRowsIntoDateTable(){return!1}_needRenderWeekHeader(){return!1}_incrementDate(t){t.setDate(t.getDate()+1)}getIndicationCellCount(){var t=this._getTimeDiff();return this._calculateDurationInCells(t)}_getTimeDiff(){var t=this._getToday(),e=this._getIndicationFirstViewDate(),i=this.getStartViewDate(),r=ia.getDaylightOffsetInMs(i,t);return r&&(t=new Date(t.getTime()+r)),t.getTime()-e.getTime()}_calculateDurationInCells(t){var e=this._getToday(),i=Math.floor(t/Wf("day")),r=(t-i*Wf("day")-this.option("startDayHour")*Wf("hour"))/this.getCellDuration();return e.getHours()>this.option("endDayHour")&&(r=this._getCellCountInDay()),r<0&&(r=0),i*this._getCellCountInDay()+r}getIndicationWidth(){if(this.isGroupedByDate()){var t=this.getIndicationCellCount(),e=Math.floor(t),i=t-e;return this.getCellWidth()*(e*this._getGroupCount()+i)}return this.getIndicationCellCount()*this.getCellWidth()}_isVerticalShader(){return!1}_isCurrentTimeHeaderCell(){return!1}_setTableSizes(){var t=this._getWorkSpaceMinHeight();(0,s.QQ)(this._$sidebarTable,t),(0,s.QQ)(this._$dateTable,t),super._setTableSizes(),this.virtualScrollingDispatcher.updateDimensions()}_getWorkSpaceMinHeight(){var t=this._getWorkSpaceHeight(),e=(0,s.zp)(this.$element(),!0)-this.getHeaderPanelHeight()-2-10;return t<e&&(t=e),t}_getCellCoordinatesByIndex(t){return{columnIndex:t%this._getCellCount(),rowIndex:0}}_getCellByCoordinates(t,e){var i=this._groupedStrategy.prepareCellIndexes(t,e);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.columnIndex)}_getWorkSpaceWidth(){return(0,s.Y_)(this._$dateTable,!0)}_getIndicationFirstViewDate(){return te.Z.trimTime(new Date(this.getStartViewDate()))}_getIntervalBetween(t,e){var i=this.option("startDayHour"),r=this.option("endDayHour"),m=this.getStartViewDate(),D=m.getTime(),A=(24-r+i)*Wf("hour"),N=te.Z.getTimezonesDifference(m,t),Q=t.getTime(),se=Q-D-N,we=Math.floor(se/Wf("day")),Re=se-we*Wf("day"),Ue=0,st=this._getCellCountInDay()*(we-this._getWeekendsCount(we)),Ot=Q-te.Z.trimTime(new Date(t)).getTime(),Kt=st*this.option("hoursInterval")*Wf("hour");return e||(t.getHours()<i?Ue=Re-A+Ot:t.getHours()>=i&&t.getHours()<r?Ue=Re:t.getHours()>=i&&t.getHours()>=r?Ue=Re-(Ot-r*Wf("hour")):we||(Kt=se),Kt+=Ue),Kt}_getWeekendsCount(){return 0}getAllDayContainer(){return null}getTimePanelWidth(){return 0}getIntervalDuration(t){return this.getCellDuration()}getCellMinWidth(){return 0}getWorkSpaceLeftOffset(){return 0}scrollToTime(t,e,i){var r=this._getScrollCoordinates(t,e,i),m=this.getScrollable(),D=this.option("rtlEnabled")?(0,Yo.l)(this.getScrollableContainer().get(0)).width:0;this.option("templatesRenderAsynchronously")?setTimeout(function(){m.scrollBy({left:r.left-m.scrollLeft()-D,top:0})}):m.scrollBy({left:r.left-m.scrollLeft()-D,top:0})}renderRAllDayPanel(){}renderRTimeTable(){}_renderGroupAllDayPanel(){}generateRenderOptions(){var t=super.generateRenderOptions(!0);return(0,di.Z)({},t,{isGenerateWeekDaysHeaderData:this._needRenderWeekHeader(),getDateForHeaderText:ace})}_init(){super._init(),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=(0,l.Z)("<div>").addClass(GH)}_getDefaultGroupStrategy(){return"vertical"}_toggleGroupingDirectionClass(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())}_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{groupOrientation:"vertical"})}_createWorkSpaceElements(){this._createWorkSpaceScrollableElements()}_toggleAllDayVisibility(){return(0,E.ZT)()}_changeAllDayVisibility(){return(0,E.ZT)()}_getDateHeaderTemplate(){return this.option("timeCellTemplate")}_renderView(){var t;this.isRenovatedRender()||(t=this._renderGroupHeader()),this.renderWorkSpace(),this.isRenovatedRender()&&this.virtualScrollingDispatcher.updateDimensions(),this._shader=new oce(this),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this.isRenovatedRender()&&this._isVerticalGroupedWorkSpace()&&this.renderRGroupPanel(),this.updateHeaderEmptyCellWidth(),this._applyCellTemplates(t)}_setHorizontalGroupHeaderCellsHeight(){return(0,E.ZT)()}_setCurrentTimeCells(){var t=this._getTimePanelCells();this._getCurrentTimePanelCellIndices().forEach(i=>{t.eq(i).addClass(cT)})}_cleanCurrentTimeCells(){this.$element().find(".".concat(cT)).removeClass(cT)}_getTimePanelCells(){return this.$element().find(".".concat(jH,":not(.").concat($H,")"))}_getCurrentTimePanelCellIndices(){var t=this._getCellCount(),e=this._getToday(),i=this.getCellIndexByDate(e),{columnIndex:r}=this._getCellCoordinatesByIndex(i);if(void 0===r)return[];var m=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?this._getGroupCount():1;return[...new Array(m)].map((D,A)=>t*A+r)}_renderTimePanel(){return(0,E.ZT)()}_renderAllDayPanel(){return(0,E.ZT)()}_createAllDayPanelElements(){return(0,E.ZT)()}_renderDateHeader(){var t=super._renderDateHeader();if(this._needRenderWeekHeader()){for(var e=new Date(this.getStartViewDate()),i=new Date(e),r=[],m=this._getGroupCount(),D=this._getCellCountInDay(),A=this.isGroupedByDate()?D*m:D,N=this.option("dateCellTemplate"),Q=this._isHorizontalGroupedWorkSpace()&&!this.isGroupedByDate()?m:1,se=this.viewDataProvider.viewDataGenerator.daysInInterval*this.option("intervalCount"),we=se*Q,Re=0;Re<we;Re++){var Ue=(0,l.Z)("<th>"),st=_T(i);if(N){var Ot={model:(0,di.Z)({text:st,date:new Date(i)},this._getGroupsForDateHeaderTemplate(Re,A)),container:Ue,index:Re};N.render(Ot)}else Ue.text(st);Ue.addClass(jH).addClass($H).attr("colSpan",A),r.push(Ue),Re%se==se-1?i=new Date(e):this._incrementDate(i)}var Kt=(0,l.Z)("<tr>").addClass("dx-scheduler-header-row").append(r);t.before(Kt)}}_renderIndicator(t,e,i,r){var m,D=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))m=this._createIndicator(i),(0,s.QQ)(m,(0,Yo.l)(i.get(0)).height),m.css("left",e?e-D:D);else for(var A=0;A<r;A++){var N=this.isGroupedByDate()?A*this.getCellWidth():this._getCellCount()*this.getCellWidth()*A;m=this._createIndicator(i),(0,s.QQ)(m,(0,Yo.l)(i.get(0)).height),m.css("left",e?e-D-N:D+N)}}_makeGroupRows(t,e){var i="vertical"===this.option("groupOrientation")?fR.VERTICAL:fR.HORIZONTAL;return fR.makeGroupedTable(i,t,{groupRowClass:Oy,groupHeaderRowClass:Oy,groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:Rk},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),e)}}(0,T.Z)("dxSchedulerTimeline",YH);const mR=YH;class XH extends mR{get type(){return rs.TIMELINE_DAY}_getElementClass(){return"dx-scheduler-timeline-day"}_needRenderWeekHeader(){return this._isWorkSpaceWithCount()}}(0,T.Z)("dxSchedulerTimelineDay",XH);const xce=XH;class qH extends mR{get type(){return rs.TIMELINE_MONTH}get viewDirection(){return"horizontal"}get renovatedHeaderPanelComponent(){return aR}_renderView(){super._renderView(),this._updateScrollable()}_getElementClass(){return"dx-scheduler-timeline-month"}_getDateHeaderTemplate(){return this.option("dateCellTemplate")}_calculateDurationInCells(t){return t/this.getCellDuration()}isIndicatorVisible(){return!0}_getFormat(){return _T}_getIntervalBetween(t){var e=this.getStartViewDate(),i=te.Z.getTimezonesDifference(e,t);return t.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-i}_getViewStartByOptions(){return mw(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),te.Z.getFirstMonthDate(this.option("startDate")))}generateRenderOptions(){var t=super.generateRenderOptions(!0);return(0,di.Z)({},t,{getDateForHeaderText:(e,i)=>i})}}(0,T.Z)("dxSchedulerTimelineMonth",qH);const wce=qH;class _R extends mR{get type(){return rs.TIMELINE_WEEK}_getElementClass(){return"dx-scheduler-timeline-week"}_getHeaderPanelCellWidth(t){return(0,Yo.l)(t.children().first().get(0)).width}_needRenderWeekHeader(){return!0}_incrementDate(t){t.setDate(t.getDate()+1)}}(0,T.Z)("dxSchedulerTimelineWeek",_R);class JH extends _R{get type(){return rs.TIMELINE_WORK_WEEK}constructor(){super(...arguments),this._getWeekendsCount=q4}_getElementClass(){return"dx-scheduler-timeline-work-week"}_incrementDate(t){5===t.getDay()&&t.setDate(t.getDate()+2),super._incrementDate(t)}}(0,T.Z)("dxSchedulerTimelineWorkWeek",JH);const Dce=JH,QH=class Tce extends gR{_getFormat(){return _T}generateRenderOptions(){var t=super.generateRenderOptions();return(0,di.Z)({},t,{isGenerateTimePanelData:!0})}_isRenderHeaderPanelEmptyCell(){return!0}};class ez extends QH{get type(){return rs.DAY}_getElementClass(){return"dx-scheduler-work-space-day"}_renderDateHeader(){return 1===this.option("intervalCount")?null:super._renderDateHeader()}renderRHeaderPanel(){1===this.option("intervalCount")?super.renderRHeaderPanel(!1):super.renderRHeaderPanel(!0)}}(0,T.Z)("dxSchedulerWorkSpaceDay",ez);const Mce=ez;var Ace=["allDay","ariaLabel","children","className","contentTemplateProps","dataCellTemplate","endDate","firstDayOfMonth","groupIndex","groups","index","isFirstGroupCell","isFocused","isLastGroupCell","isSelected","otherMonth","startDate","text","today"],kce=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Rce=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={},this.__getterCache={}}get classes(){var{className:e,firstDayOfMonth:i,otherMonth:r,today:m}=this.props;return(0,Ih.G)({"dx-scheduler-date-table-other-month":!!r,"dx-scheduler-date-table-current-date":!!m,"dx-scheduler-date-table-first-of-month":!!i,[e]:!!e})}get contentTemplateProps(){return void 0!==this.__getterCache.contentTemplateProps?this.__getterCache.contentTemplateProps:this.__getterCache.contentTemplateProps=(()=>{var{index:e,text:i}=this.props;return{data:{text:i},index:e}})()}get restAttributes(){return(0,Mi.Z)(this.props,Ace)}componentWillUpdate(e,i,r){(this.props.index!==e.index||this.props.text!==e.text)&&(this.__getterCache.contentTemplateProps=void 0)}render(){var e=this.props;return(n=>{var{classes:t,contentTemplateProps:e,props:{dataCellTemplate:i,endDate:r,groupIndex:m,groups:D,index:A,isFirstGroupCell:N,isFocused:Q,isLastGroupCell:se,isSelected:we,startDate:Re,text:Ue}}=n;return(0,tr.Iz)(2,TT,{className:t,dataCellTemplate:i,startDate:Re,endDate:r,text:Ue,groups:D,groupIndex:m,index:A,isFirstGroupCell:N,isLastGroupCell:se,isSelected:we,isFocused:Q,contentTemplateProps:e,children:(0,tr.Wm)(1,"div","dx-scheduler-date-table-cell-text",Ue,0)})})({props:(0,di.Z)({},e,{dataCellTemplate:kce(e.dataCellTemplate)}),classes:this.classes,contentTemplateProps:this.contentTemplateProps,restAttributes:this.restAttributes})}}return n.defaultProps=iR,n})();var Lce=["addDateTableClass","addVerticalSizesClassToRows","bottomVirtualRowHeight","cellTemplate","dataCellTemplate","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","tableRef","topVirtualRowHeight","viewData","width"],tz=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let Fce=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={}}createEffects(){return[(0,Co.gt)()]}get restAttributes(){return(0,Mi.Z)(this.props,Lce)}render(){var e=this.props;return(n=>{var{props:{addDateTableClass:t,addVerticalSizesClassToRows:e,dataCellTemplate:i,groupOrientation:r,tableRef:m,viewData:D,width:A},restAttributes:N}=n;return(0,tr.vs)((0,tr.Iz)(2,aH,(0,di.Z)({viewData:D,groupOrientation:r,addDateTableClass:t,dataCellTemplate:i,cellTemplate:Rce,tableRef:m,addVerticalSizesClassToRows:e,width:A},N)))})({props:(0,di.Z)({},e,{cellTemplate:tz(e.cellTemplate),dataCellTemplate:tz(e.dataCellTemplate)}),restAttributes:this.restAttributes})}}return n.defaultProps=rH,n})();class nz extends Qk{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:["cellTemplate","dataCellTemplate"],props:["cellTemplate","viewData","groupOrientation","leftVirtualCellWidth","rightVirtualCellWidth","topVirtualRowHeight","bottomVirtualRowHeight","addDateTableClass","addVerticalSizesClassToRows","width","dataCellTemplate"]}}get _viewComponent(){return Fce}}(0,T.Z)("dxMonthDateTableLayout",nz);var Uce=te.Z.dateToMilliseconds;class iz extends gR{get type(){return rs.MONTH}_getElementClass(){return"dx-scheduler-work-space-month"}_getFormat(){return Nk}_getIntervalBetween(t){var e=this.getStartViewDate(),i=te.Z.getTimezonesDifference(e,t);return t.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-i}_getDateGenerationOptions(){return(0,di.Z)({},super._getDateGenerationOptions(),{cellCountInDay:1})}getCellWidth(){return this.cache.get("cellWidth",()=>{var t=0,e=this._getCells().slice(0,7);return e.each((i,r)=>{t+=(0,mi.Ym)()?(0,Yo.l)(r).width:0}),0===e.length?void 0:t/7})}_insertAllDayRowsIntoDateTable(){return!1}_getCellCoordinatesByIndex(t){var e=Math.floor(t/this._getCellCount());return{rowIndex:e,columnIndex:t-this._getCellCount()*e}}_needCreateCrossScrolling(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()}_getViewStartByOptions(){return mw(this.option("startDate"),this.option("currentDate"),this.option("intervalCount"),te.Z.getFirstMonthDate(this.option("startDate")))}_updateIndex(t){return t}isIndicationAvailable(){return!1}getIntervalDuration(){return Uce("day")}getTimePanelWidth(){return 0}supportAllDayRow(){return!1}keepOriginalHours(){return!0}getWorkSpaceLeftOffset(){return 0}needApplyCollectorOffset(){return!0}_getHeaderDate(){return this._getViewStartByOptions()}scrollToTime(){return(0,E.ZT)()}renderRAllDayPanel(){}renderRTimeTable(){}renderRDateTable(){_l.renovation.renderComponent(this,this._$dateTable,nz,"renovatedDateTable",this._getRDateTableProps())}_createWorkSpaceElements(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():super._createWorkSpaceElements()}_toggleAllDayVisibility(){return(0,E.ZT)()}_changeAllDayVisibility(){return(0,E.ZT)()}_renderTimePanel(){return(0,E.ZT)()}_renderAllDayPanel(){return(0,E.ZT)()}_setMonthClassesToCell(t,e){t.toggleClass("dx-scheduler-date-table-current-date",e.isCurrentDate).toggleClass("dx-scheduler-date-table-first-of-month",e.firstDayOfMonth).toggleClass("dx-scheduler-date-table-other-month",e.otherMonth)}_createAllDayPanelElements(){}_renderTableBody(t){t.getCellText=(e,i)=>$4(this.viewDataProvider.completeViewDataMap[e][i].startDate,this.option("intervalCount")),t.getCellTextClass="dx-scheduler-date-table-cell-text",t.setAdditionalClasses=this._setMonthClassesToCell.bind(this),super._renderTableBody(t)}}(0,T.Z)("dxSchedulerWorkSpaceMonth",iz);const Zce=iz;class rz extends QH{get type(){return rs.WEEK}_getElementClass(){return"dx-scheduler-work-space-week"}_calculateViewStartDate(){return((n,t)=>{var e=this._firstDayOfWeek()??zo.Z.firstDayOfWeekIndex();return te.Z.getFirstWeekDate(n,e)})(this.option("startDate"))}}(0,T.Z)("dxSchedulerWorkSpaceWeek",rz);const oz=rz;class az extends oz{get type(){return rs.WORK_WEEK}constructor(){super(...arguments),this._getWeekendsCount=q4}_getElementClass(){return"dx-scheduler-work-space-work-week"}}(0,T.Z)("dxSchedulerWorkSpaceWorkWeek",az);const jce=az;var $ce=["dateText"],Xce={dateText:""};let qce=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,$ce)}render(){return(n=>{var{props:{dateText:t}}=n;return(0,tr.Wm)(1,"div","dx-scheduler-appointment-content-details",(0,tr.Wm)(1,"div","dx-scheduler-appointment-content-date",t,0),2)})({props:(0,di.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=Xce,n})();var Jce=["text"],ehe={text:""};let the=(()=>{class n extends Co.Ul{constructor(e){super(e),this.state={}}get restAttributes(){return(0,Mi.Z)(this.props,Jce)}render(){return(n=>{var{props:{text:t}}=n;return(0,tr.Wm)(1,"div","dx-scheduler-appointment-title",t,0)})({props:(0,di.Z)({},this.props),restAttributes:this.restAttributes})}}return n.defaultProps=ehe,n})();var nhe=["appointmentTemplate","data","dateText","hideReducedIconTooltip","index","isRecurrent","isReduced","showReducedIconTooltip","text"],rhe={text:"",dateText:"",isRecurrent:!1,isReduced:!1,index:0},ohe=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let ahe=(()=>{class n extends Co.OS{constructor(e){super(e),this.state={},this.refReducedIcon=(0,tr.Vf)(),this.bindHoverEffect=this.bindHoverEffect.bind(this),this.onReducedIconMouseEnter=this.onReducedIconMouseEnter.bind(this),this.onReducedIconMouseLeave=this.onReducedIconMouseLeave.bind(this)}createEffects(){return[new Co.b0(this.bindHoverEffect,[this.props.showReducedIconTooltip,this.props.data,this.props.hideReducedIconTooltip])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.showReducedIconTooltip,this.props.data,this.props.hideReducedIconTooltip])}bindHoverEffect(){var e,i,r=()=>this.onReducedIconMouseEnter(),m=()=>this.onReducedIconMouseLeave();return null===(e=this.refReducedIcon.current)||void 0===e||e.addEventListener("mouseenter",r),null===(i=this.refReducedIcon.current)||void 0===i||i.addEventListener("mouseleave",m),()=>{var D,A;null===(D=this.refReducedIcon.current)||void 0===D||D.removeEventListener("mouseenter",r),null===(A=this.refReducedIcon.current)||void 0===A||A.removeEventListener("mouseleave",m)}}onReducedIconMouseEnter(){this.props.showReducedIconTooltip({target:this.refReducedIcon.current,endDate:this.props.data.appointmentData.endDate})}onReducedIconMouseLeave(){this.props.hideReducedIconTooltip()}get restAttributes(){return(0,Mi.Z)(this.props,nhe)}render(){var e=this.props;return(n=>{var{props:{appointmentTemplate:t,data:e,dateText:i,index:r,isRecurrent:m,isReduced:D,text:A},refReducedIcon:N}=n;return(0,tr.Wm)(1,"div","dx-scheduler-appointment-content",t?t({data:e,index:r}):(0,tr.xJ)([(0,tr.Iz)(2,the,{text:A}),(0,tr.Iz)(2,qce,{dateText:i}),m&&(0,tr.Wm)(1,"div","dx-scheduler-appointment-recurrence-icon dx-icon-repeat"),D&&(0,tr.Wm)(1,"div","dx-scheduler-appointment-reduced-icon",null,1,null,null,N)],0),0)})({props:(0,di.Z)({},e,{appointmentTemplate:ohe(e.appointmentTemplate)}),refReducedIcon:this.refReducedIcon,onReducedIconMouseEnter:this.onReducedIconMouseEnter,onReducedIconMouseLeave:this.onReducedIconMouseLeave,restAttributes:this.restAttributes})}}return n.defaultProps=rhe,n})();var she=u(2735),Ju=(0,Co.kr)(void 0),lhe=["appointmentTemplate","groups","hideReducedIconTooltip","index","onItemClick","onItemDoubleClick","showReducedIconTooltip","viewModel"],dhe={index:0},che=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let hhe=(()=>{class n extends Co.OS{constructor(e){super(e),this.ref=(0,tr.Vf)(),this.state={color:void 0},this.updateStylesEffect=this.updateStylesEffect.bind(this),this.bindDoubleClickEffect=this.bindDoubleClickEffect.bind(this),this.onItemClick=this.onItemClick.bind(this),this.onItemDoubleClick=this.onItemDoubleClick.bind(this)}get appointmentsContextValue(){return this.context[Ju.id]?this.context[Ju.id]:Ju.defaultValue}createEffects(){return[new Co.b0(this.updateStylesEffect,[this.props.viewModel,this.appointmentsContextValue,this.props.groups]),new Co.b0(this.bindDoubleClickEffect,[])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.viewModel,this.appointmentsContextValue,this.props.groups])}updateStylesEffect(){var e,{viewModel:i}=this.props,r=null!==(e=i.info.groupIndex)&&void 0!==e?e:0,{appointment:m}=i;D6({resources:this.appointmentsContextValue.resources,resourceLoaderMap:this.appointmentsContextValue.resourceLoaderMap,resourcesDataAccessors:this.appointmentsContextValue.dataAccessors.resources,loadedResources:this.appointmentsContextValue.loadedResources},{itemData:m,groupIndex:r,groups:this.props.groups}).then(D=>{this.setState(A=>({color:D}))}).catch(()=>"")}bindDoubleClickEffect(){var e,i=()=>this.onItemDoubleClick();return null===(e=this.ref.current)||void 0===e||e.addEventListener("dblclick",i),()=>{var r;null===(r=this.ref.current)||void 0===r||r.removeEventListener("dblclick",i)}}get appointmentStyles(){return(n=>{var{geometry:{height:t,left:e,top:i,width:r}}=n;return hw([{attr:"height",value:"".concat(t||50,"px")},{attr:"width",value:"".concat(r||50,"px")},{attr:"top",value:"".concat(i,"px")},{attr:"left",value:"".concat(e,"px")}])})(this.props.viewModel)}get styles(){return v4(this.state.color,this.appointmentStyles)}get text(){return this.props.viewModel.appointment.text}get isReduced(){var{appointmentReduced:e}=this.props.viewModel.info;return!!e}get classes(){var{focused:e,info:{allDay:i,appointmentReduced:r,direction:m,isRecurrent:D}}=this.props.viewModel,A="vertical"===m;return(0,Ih.G)({"dx-state-focused":!!e,"dx-scheduler-appointment":!0,"dx-scheduler-appointment-horizontal":!A,"dx-scheduler-appointment-vertical":A,"dx-scheduler-appointment-recurrence":D,"dx-scheduler-all-day-appointment":i,"dx-scheduler-appointment-reduced":this.isReduced,"dx-scheduler-appointment-head":"head"===r,"dx-scheduler-appointment-body":"body"===r,"dx-scheduler-appointment-tail":"tail"===r})}get dateText(){return this.props.viewModel.info.dateText}get data(){return{appointmentData:this.props.viewModel.info.appointment,targetedAppointmentData:this.props.viewModel.appointment}}onItemClick(){this.props.onItemClick({data:[this.props.viewModel],target:this.ref.current,index:this.props.index})}onItemDoubleClick(){this.props.onItemDoubleClick({data:[this.props.viewModel],target:this.ref.current,index:this.props.index})}get restAttributes(){return(0,Mi.Z)(this.props,lhe)}render(){var e=this.props;return(n=>{var{classes:t,data:e,dateText:i,isReduced:r,onItemClick:m,props:{appointmentTemplate:D,hideReducedIconTooltip:A,index:N,showReducedIconTooltip:Q,viewModel:{info:{isRecurrent:se}}},ref:we,styles:Re,text:Ue}=n;return(0,tr.vs)((0,tr.Iz)(2,she.$L,(0,di.Z)({focusStateEnabled:!0,onClick:m,rootElementRef:we,style:(0,Co.jk)(Re),classes:t,hint:Ue},{role:"button","data-index":N},{children:(0,tr.Iz)(2,ahe,{text:Ue,isReduced:r,dateText:i,isRecurrent:se,index:N,data:e,showReducedIconTooltip:Q,hideReducedIconTooltip:A,appointmentTemplate:D})})))})({props:(0,di.Z)({},e,{appointmentTemplate:che(e.appointmentTemplate)}),color:this.state.color,ref:this.ref,appointmentsContextValue:this.appointmentsContextValue,appointmentStyles:this.appointmentStyles,styles:this.styles,text:this.text,isReduced:this.isReduced,classes:this.classes,dateText:this.dateText,data:this.data,onItemClick:this.onItemClick,onItemDoubleClick:this.onItemDoubleClick,restAttributes:this.restAttributes})}}return n.defaultProps=dhe,n})();var phe=u(241),ghe=["groups","overflowIndicatorTemplate","viewModel"],mhe={},_he=n=>n&&(n.defaultProps?t=>(0,tr.vs)((0,tr.Iz)(2,n,(0,di.Z)({},t))):n);let vhe=(()=>{class n extends Co.OS{constructor(e){super(e),this.state={color:void 0},this.updateStylesEffect=this.updateStylesEffect.bind(this)}get appointmentsContextValue(){return this.context[Ju.id]?this.context[Ju.id]:Ju.defaultValue}createEffects(){return[new Co.b0(this.updateStylesEffect,[this.props.groups,this.props.viewModel,this.appointmentsContextValue])]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.props.groups,this.props.viewModel,this.appointmentsContextValue])}updateStylesEffect(){var{groups:e,viewModel:i}=this.props;((n,t,e)=>{var i,r=null!==(i=t.groupIndex)&&void 0!==i?i:0,{appointment:m}=t.items.settings[0];return D6({resources:n.resources,resourceLoaderMap:n.resourceLoaderMap,resourcesDataAccessors:n.dataAccessors.resources,loadedResources:n.loadedResources},{itemData:m,groupIndex:r,groups:e})})(this.appointmentsContextValue,i,e).then(r=>{this.setState(m=>({color:r}))})}get data(){return{appointmentCount:this.props.viewModel.items.settings.length,isCompact:this.props.viewModel.isCompact}}get text(){var{isCompact:e}=this.props.viewModel,{appointmentCount:i}=this.data;return e?"".concat(i):yn.Z.getFormatter("dxScheduler-moreAppointments")(i)}get appointmentStyles(){return(n=>{var{geometry:{height:t,left:e,top:i,width:r}}=n;return hw([{attr:"left",value:"".concat(e,"px")},{attr:"top",value:"".concat(i,"px")},{attr:"width",value:"".concat(r,"px")},{attr:"height",value:"".concat(t,"px")},{attr:"boxShadow",value:"inset ".concat(r,"px 0 0 0 rgba(0, 0, 0, 0.3)")}])})(this.props.viewModel)}get styles(){return v4(this.state.color,this.appointmentStyles)}get classes(){return(0,Ih.G)({"dx-scheduler-appointment-collector":!0,"dx-scheduler-appointment-collector-compact":this.data.isCompact})}get restAttributes(){return(0,Mi.Z)(this.props,ghe)}render(){var e=this.props;return(n=>{var{classes:t,data:e,props:{overflowIndicatorTemplate:i},styles:r,text:m}=n;return(0,tr.Iz)(2,phe.zx,{style:(0,Co.jk)(r),className:t,type:"default",stylingMode:"contained",children:i?i({data:e}):(0,tr.Wm)(1,"span",null,m,0)})})({props:(0,di.Z)({},e,{overflowIndicatorTemplate:_he(e.overflowIndicatorTemplate)}),color:this.state.color,appointmentsContextValue:this.appointmentsContextValue,data:this.data,text:this.text,appointmentStyles:this.appointmentStyles,styles:this.styles,classes:this.classes,restAttributes:this.restAttributes})}}return n.defaultProps=mhe,n})();var yhe=u(5955),Che=["isAllDay"],bhe={isAllDay:!1};let whe=(()=>{class n extends Co.DZ{constructor(e){super(e),this.state={},this.layoutRef=(0,tr.Vf)(),this.__getterCache={},this.pointerEventsEffect=this.pointerEventsEffect.bind(this),this.onAppointmentPointerDown=this.onAppointmentPointerDown.bind(this)}get appointmentsContextValue(){return this.context[Ju.id]?this.context[Ju.id]:Ju.defaultValue}createEffects(){return[new Co.b0(this.pointerEventsEffect,[this.appointmentsContextValue]),(0,Co.gt)()]}updateEffects(){var e;null===(e=this._effects[0])||void 0===e||e.update([this.appointmentsContextValue])}pointerEventsEffect(){var e=(0,yhe.G3)(this.layoutRef.current,i=>this.onAppointmentPointerDown(i));return()=>{e()}}get classes(){var{isAllDay:e}=this.props;return(0,Ih.G)({"dx-scheduler-scrollable-appointments":!e,"dx-scheduler-all-day-appointments":e})}get appointments(){return void 0!==this.__getterCache.appointments?this.__getterCache.appointments:this.__getterCache.appointments=(()=>this.props.isAllDay?this.appointmentsContextValue.viewModel.allDay:this.appointmentsContextValue.viewModel.regular)()}get overflowIndicators(){return void 0!==this.__getterCache.overflowIndicators?this.__getterCache.overflowIndicators:this.__getterCache.overflowIndicators=(()=>this.props.isAllDay?this.appointmentsContextValue.viewModel.allDayCompact:this.appointmentsContextValue.viewModel.regularCompact)()}onAppointmentPointerDown(e){var i=e.target.closest(".dx-scheduler-appointment");if(i){var{index:r}=i.dataset,m=r?parseInt(r,10):-1,D=i.classList.contains("dx-scheduler-all-day-appointment"),A=i.classList.contains("dx-scheduler-appointment-collector"),Q=Object.entries({allDayCompact:D&&A,allDay:D&&!A,regularCompact:!D&&A,regular:!D&&!A}).filter(se=>se[1])[0][0];this.appointmentsContextValue.updateFocusedAppointment(Q,m)}}get restAttributes(){return(0,Mi.Z)(this.props,Che)}componentWillUpdate(e,i,r){super.componentWillUpdate(),(this.props.isAllDay!==e.isAllDay||this.context[Ju.id]!==r[Ju.id])&&(this.__getterCache.appointments=void 0),(this.props.isAllDay!==e.isAllDay||this.context[Ju.id]!==r[Ju.id])&&(this.__getterCache.overflowIndicators=void 0)}render(){return(n=>{var{appointments:t,appointmentsContextValue:{appointmentTemplate:e,groups:i,hideReducedIconTooltip:r,onAppointmentClick:m,onAppointmentDoubleClick:D,overflowIndicatorTemplate:A,showReducedIconTooltip:N},classes:Q,layoutRef:se,overflowIndicators:we}=n;return(0,tr.Wm)(1,"div",Q,[t.map((Re,Ue)=>(0,tr.Iz)(2,hhe,{viewModel:Re,appointmentTemplate:e,index:Ue,groups:i,onItemClick:m,onItemDoubleClick:D,showReducedIconTooltip:N,hideReducedIconTooltip:r},Re.key)),we.map((Re,Ue)=>(0,tr.Iz)(2,vhe,{viewModel:Re,groups:i,overflowIndicatorTemplate:A,"data-index":Ue},Re.key))],0,null,null,se)})({props:(0,di.Z)({},this.props),layoutRef:this.layoutRef,appointmentsContextValue:this.appointmentsContextValue,classes:this.classes,appointments:this.appointments,overflowIndicators:this.overflowIndicators,onAppointmentPointerDown:this.onAppointmentPointerDown,restAttributes:this.restAttributes})}}return n.defaultProps=bhe,n})();class sz extends My.Z{get _propsInfo(){return{twoWay:[],allowNull:[],elements:[],templates:[],props:["isAllDay"]}}get _viewComponent(){return whe}}(0,T.Z)("dxAppointmentLayout",sz);class Ohe{constructor(t,e){this.rawAppointment=t,this.promise=e}}class Dhe{get resourceDeclarations(){return this._resourceDeclarations}set resourceDeclarations(t){this._resourceDeclarations=t,this.isLoaded=!1,this.isLoading=!1,this.resourceMap.clear(),this.appointmentPromiseQueue=[]}constructor(){this._resourceDeclarations=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],this.isLoaded=!1,this.isLoading=!1,this.resourceMap=new Map,this.appointmentPromiseQueue=[]}_pushAllResources(){this.appointmentPromiseQueue.forEach(t=>{var{promise:e,rawAppointment:i}=t,r=[];this.resourceMap.forEach((m,D)=>{var A={label:m.label,values:[]};D in i&&(0,$u.sE)(i[D]).forEach(N=>A.values.push(m.map.get(N))),A.values.length&&r.push(A)}),e.resolve(r)}),this.appointmentPromiseQueue=[]}_onPullResource(t,e,i,r,m){var D=new Map;m.forEach(A=>D.set(A[e],A[i])),this.resourceMap.set(t,{label:r,map:D})}_hasResourceDeclarations(t){return 0!==t.length||(this.appointmentPromiseQueue.forEach(e=>{var{promise:i}=e;return i.resolve([])}),this.appointmentPromiseQueue=[],!1)}_tryPullResources(t,e){if(!this.isLoading){this.isLoading=!0;var i=[];t.forEach(r=>{var m=(new P.BH).done(A=>this._onPullResource(Vf(r),uw(r),Ok(r),r.label,A));i.push(m);var D=rT(r.dataSource);D.isLoaded()?m.resolve(D.items()):D.load().done(A=>m.resolve(A)).fail(()=>m.reject())}),P.gx.apply(null,i).done(()=>{this.isLoaded=!0,this.isLoading=!1,this._pushAllResources()}).fail(()=>e.reject())}}initializeState(){this.resourceDeclarations=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]}createListAsync(t){var e=new P.BH;return this.appointmentPromiseQueue.push(new Ohe(t,e)),this._hasResourceDeclarations(this.resourceDeclarations)&&(this.isLoaded?this._pushAllResources():this._tryPullResources(this.resourceDeclarations,e)),e.promise()}}class The{constructor(t){this.setDataSource(t),this._updatedAppointmentKeys=[]}get keyName(){return this._dataSource.store().key()}_getStoreKey(t){return this._dataSource.store().keyOf(t)}setDataSource(t){this._dataSource=t,this.cleanState(),this._initStoreChangeHandlers()}_initStoreChangeHandlers(){var t=this._dataSource,e=t?.store();e&&(e.on("updating",i=>{var r=e.key();r?this._updatedAppointmentKeys.push({key:r,value:i}):this._updatedAppointment=i}),e.on("push",i=>{var r=t.items(),m=e.key();i.forEach(D=>{if(0!==r.filter(Q=>Q[m]===D.key).length)this._updatedAppointmentKeys.push({key:m,value:D.key});else{var{data:N}=D;N&&r.push(N)}}),t.load()}))}getUpdatedAppointment(){return this._updatedAppointment}getUpdatedAppointmentKeys(){return this._updatedAppointmentKeys}cleanState(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}add(t){return this._dataSource.store().insert(t).done(()=>this._dataSource.load())}update(t,e){var i=this._getStoreKey(t),r=new P.BH;return this._dataSource.store().update(i,e).done(m=>this._dataSource.load().done(()=>r.resolve(m)).fail(r.reject)).fail(r.reject),r.promise()}remove(t){var e=this._getStoreKey(t);return this._dataSource.store().remove(e).done(()=>this._dataSource.load())}destroy(){var t,e=null===(t=this._dataSource)||void 0===t?void 0:t.store();e&&(e.off("updating"),e.off("push"))}}const yR=(n,t)=>{var e=te.Z.trimTime(n),i=te.Z.trimTime(t);return i.setDate(i.getDate()+1),[e,i]};var lz=te.Z.dateToMilliseconds;class dz{constructor(t){this.options=t,this.dataAccessors=this.options.dataAccessors,this._init()}get strategyName(){return"standard"}get timeZoneCalculator(){return this.options.timeZoneCalculator}get viewStartDayHour(){return this.options.startDayHour}get viewEndDayHour(){return this.options.endDayHour}get timezone(){return this.options.timezone}get firstDayOfWeek(){return this.options.firstDayOfWeek}get showAllDayPanel(){return this.options.showAllDayPanel}get loadedResources(){return this._resolveOption("loadedResources")}get supportAllDayRow(){return this._resolveOption("supportAllDayRow")}get viewType(){return this._resolveOption("viewType")}get viewDirection(){return this._resolveOption("viewDirection")}get dateRange(){return this._resolveOption("dateRange")}get groupCount(){return this._resolveOption("groupCount")}get viewDataProvider(){return this._resolveOption("viewDataProvider")}get allDayPanelMode(){return this._resolveOption("allDayPanelMode")}_resolveOption(t){var e=this.options[t];return"function"==typeof e?e():e}_init(){this.setDataAccessors(this.dataAccessors)}filter(t){var i,e=this.dateRange;return!this.showAllDayPanel&&this.supportAllDayRow&&(i=!1),this.filterLoadedAppointments({startDayHour:this.viewStartDayHour,endDayHour:this.viewEndDayHour,viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour,min:e[0],max:e[1],resources:this.loadedResources,allDay:i,supportMultiDayAppointments:Hk(this.viewType),firstDayOfWeek:this.firstDayOfWeek},t)}hasAllDayAppointments(t,e){var i=t.map(m=>Wa(m,this.dataAccessors,this.timeZoneCalculator)),r=!1;return(0,O.S6)(i,(m,D)=>{if(Dy(D,this.viewStartDayHour,this.viewEndDayHour,this.allDayPanelMode))return r=!0,!1}),r}setDataAccessors(t){this.dataAccessors=t}_createAllDayAppointmentFilter(t){var{viewStartDayHour:e,viewEndDayHour:i}=t;return[[r=>Dy(r,e,i,this.allDayPanelMode)]]}_createCombinedFilter(t){var e=new Date(t.min),i=new Date(t.max),{startDayHour:r,endDayHour:m,viewStartDayHour:D,viewEndDayHour:A,resources:N,firstDayOfWeek:Q,checkIntersectViewport:se,supportMultiDayAppointments:we}=t,[Re,Ue]=yR(e,i),st=(0,w.$K)(this.dataAccessors.getter.recurrenceRule);return[[Ot=>{var Kt;if(null!==(Kt=Ot.visible)&&void 0!==Kt&&!Kt)return!1;var{startDate:wn,endDate:rn,hasRecurrenceRule:Ft}=Ot;if(!Ft&&!(rn>=Re&&wn<Ue||te.Z.sameDate(rn,Re)&&te.Z.sameDate(wn,Re)))return!1;var qt=Dy(Ot,D,A,this.allDayPanelMode),un=Fk(Ot),In=Ot.allDay,Kn=un||qt;if(null!=N&&N.length&&!this._filterAppointmentByResources(Ot.rawAppointment,N)||qt&&!1===t.allDay)return!1;if(Ft){var Yn=((n,t,e)=>{var i=n.recurrenceException;if(i){for(var r=i.split(","),m=0;m<r.length;m++)r[m]=jre(r[m],n.startDate,t,e);return r.join()}return i})(Ot,this.timeZoneCalculator,this.timezone);if(!this._filterAppointmentByRRule((0,di.Z)({},Ot,{recurrenceException:Yn,allDay:qt}),e,i,r,m,Q))return!1}return!(!In&&we&&Kn&&rn<e&&(!st||st&&!Ft)||(0,w.$K)(r)&&(!st||!t.isVirtualScrolling)&&!((n,t,e,i,r)=>{var m=te.Z.dateTimeFromDecimal(e);return n.getHours()>=m.hours&&n.getMinutes()>=m.minutes||t.getHours()===m.hours&&t.getMinutes()>m.minutes||t.getHours()>m.hours||r||i})(wn,rn,r,qt,un)||(0,w.$K)(m)&&!(n=>{var sn,{startDate:t,endDate:e,startDayHour:i,endDayHour:r,viewStartDayHour:m,viewEndDayHour:D,allDay:A,severalDays:N,min:Q,max:se,checkIntersectViewport:we}=n,Re=(24-D+m)*Bk("hour"),Ue=e.getTime()-t.getTime(),st=(Re-Ue)/Bk("hour"),Ot=t.getHours(),Kt=t.getMinutes(),wn=te.Z.dateTimeFromDecimal(r),rn=te.Z.dateTimeFromDecimal(i),Ft=t<se&&e>Q;return sn=we&&Ft||Ot<wn.hours||Ot===wn.hours&&Kt<wn.minutes||A&&t<=se||N&&Ft&&(Ot<wn.hours||60*e.getHours()+e.getMinutes()>60*rn.hours),Ue<Re&&Ot>wn.hours&&Kt>wn.minutes&&st<=Ot-r&&(sn=!1),sn})({startDate:wn,endDate:rn,startDayHour:r,endDayHour:m,viewStartDayHour:D,viewEndDayHour:A,allDay:qt,severalDays:un,min:e,max:i,checkIntersectViewport:se})||!In&&(!Kn||we)&&rn<e&&st&&!Ft)}]]}_createAppointmentFilter(t){return this._createCombinedFilter(t)}_filterAppointmentByResources(t,e){for(var i=(A,N)=>{var se,Q=this.dataAccessors.resources.getter[A];(0,w.mf)(Q)&&(se=Q(t));for(var we=(0,$u.sE)(se),Re=(0,O.UI)(e[N].items,st=>{var{id:Ot}=st;return Ot}),Ue=0;Ue<we.length;Ue++)if(n6(Re,we[Ue]))return!0;return!1},r=!1,m=0;m<e.length;m++)if(!(r=i(e[m].name,m)))return!1;return r}_filterAppointmentByRRule(t,e,i,r,m,D){var A=t.recurrenceRule,N=t.recurrenceException,Q=t.allDay,se=!0,we=t.startDate,Re=t.endDate,Ue=Dh();if(Q||((n,t,e,i)=>{var r=n.getHours(),m=t.getHours();return r<=e&&m<=i&&m>=e||m>=i&&r<=i&&r>=e})(we,Re,r,m)){var[st,Ot]=yR(e,i);e=st,i=new Date(Ot.getTime()-lz("minute"))}return A&&!Ue.isValidRecurrenceRule(A)&&(se=Re>e&&we<=i),se&&Ue.isValidRecurrenceRule(A)&&(se=Ue.hasRecurrence({rule:A,exception:N,start:we,end:Re,min:e,max:i,firstDayOfWeek:D,appointmentTimezoneOffset:this.timeZoneCalculator.getOriginStartDateOffsetInMs(we,t.startDateTimeZone,!1)})),se}filterLoadedAppointments(t,e){return this.filterPreparedItems(t,e).map(r=>{var{rawAppointment:m}=r;return m})}filterPreparedItems(t,e){var i=this._createAppointmentFilter(t);return(0,If.Z)(e).filter(i).toArray()}filterAllDayAppointments(t,e){var i=this._createAllDayAppointmentFilter(t);return(0,If.Z)(e).filter(i).toArray().map(r=>{var{rawAppointment:m}=r;return m})}}class Mhe extends dz{get strategyName(){return"virtual"}get resources(){return this.options.resources}filter(t){var e=lz("hour"),i=Q0(this.viewType),r=i&&"horizontal"===this.viewDirection,m=!this.supportAllDayRow,D=this.showAllDayPanel||m,A=this.viewDataProvider.getLastViewDateByEndDayHour(this.viewEndDayHour),N=[];return this.viewDataProvider.getCompletedGroupsInfo().forEach(se=>{var we=se.groupIndex,Re=se.startDate,Ue=new Date(Math.min(se.endDate,A)),st=i?Re.getHours():this.viewStartDayHour,Ot=i?st+Re.getMinutes()/60+(Ue-Re)/e:this.viewEndDayHour,Kt=this._getPrerenderFilterResources(we),sn=this.viewDataProvider.hasGroupAllDayPanel(we),wn=m||!!D&&sn;N.push({isVirtualScrolling:!0,startDayHour:st,endDayHour:Ot,viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour,min:Re,max:Ue,supportMultiDayAppointments:Hk(this.viewType),allDay:wn,resources:Kt,firstDayOfWeek:this.firstDayOfWeek,checkIntersectViewport:r})}),this.filterLoadedAppointments({filterOptions:N,groupCount:this.groupCount},t)}filterPreparedItems(t,e){var{filterOptions:i,groupCount:r}=t,m=[],D=e;return r>0&&(D=D.filter(N=>{for(var{rawAppointment:Q}=N,se=0;se<i.length;++se){var{resources:we}=i[se];if(this._filterAppointmentByResources(Q,we))return!0}})),i.forEach(N=>{m.length&&m.push("or");var Q=this._createAppointmentFilter(N);m.push(Q)}),(0,If.Z)(D).filter(m).toArray()}hasAllDayAppointments(t,e){return this.filterAllDayAppointments({viewStartDayHour:this.viewStartDayHour,viewEndDayHour:this.viewEndDayHour},e).length>0}_getPrerenderFilterResources(t){var e=this.viewDataProvider.getCellsGroup(t);return((n,t,e)=>{if(!e||!e.length)return n;var i={},r=[];return e.forEach(D=>{(0,O.S6)(D,(A,N)=>i[A]=N)}),n.filter(D=>{var{name:A}=D;return(0,w.$K)(i[A])}).forEach(D=>r.push((0,y.l)({},D))),r.forEach(D=>{var{items:A,data:N,name:Q}=D,se=aT(t,[Q])[0]||{},we=uw(se),Re=[],Ue=[];e.filter(st=>(0,w.$K)(st[Q])).forEach(st=>{(0,O.S6)(st,(Ot,Kt)=>{if(!Re.filter(rn=>rn.id===Kt&&rn[we]===Ot).length){var sn=A.filter(rn=>rn.id===Kt),wn=N.filter(rn=>rn[we]===Kt);Re.push(...sn),Ue.push(...wn)}})}),D.items=Re,D.data=Ue}),r})(this.loadedResources,this.resources,[e])}}class Ahe{constructor(t){this.options=t}get dataAccessors(){return this.options.dataAccessors}get dataSourceFilter(){return this.options.dataSourceFilter}get dateSerializationFormat(){return this.options.dateSerializationFormat}get forceIsoDateParsing(){return!(0,w.$K)(this.options.forceIsoDateParsing)||this.options.forceIsoDateParsing}makeDateFilter(t,e){var{endDateExpr:i,recurrenceRuleExpr:r,startDateExpr:m}=this.dataAccessors.expr,D=[[[i,">=",t],[m,"<",e]],"or",[r,"startswith","freq"],"or",[[i,t],[m,t]]];return r||D.splice(1,2),D}combineFilters(t,e){var i=[];return t&&i.push(t),e&&i.push(e),this.serializeRemoteFilter(i)}serializeRemoteFilter(t){if(!Array.isArray(t))return t;var{endDateExpr:e,startDateExpr:i}=this.dataAccessors.expr,r=(0,y.l)([],t);(0,w.HD)(r[0])&&this.forceIsoDateParsing&&r.length>1&&(r[0]===i||r[0]===e)&&(r[r.length-1]=xs.Z.serializeDate(new Date(r[r.length-1]),this.dateSerializationFormat));for(var D=0;D<r.length;D+=1)r[D]=this.serializeRemoteFilter(r[D]);return r}getUserFilter(t){if(this.dataSourceFilter&&!(0,E.bY)(this.dataSourceFilter,t))return this.dataSourceFilter.length>0&&(0,E.bY)(this.dataSourceFilter[0],t)?this.dataSourceFilter[1]:this.dataSourceFilter}combine(t,e){var[i,r]=yR(t,e),m=this.makeDateFilter(i,r),D=this.getUserFilter(m);return this.combineFilters(m,D)}}var ky;class Rhe{constructor(t){this.options=t,this.dataSource=this.options.dataSource,this.dataAccessors=this.options.dataAccessors,this.timeZoneCalculator=this.options.timeZoneCalculator,this.appointmentDataSource=new The(this.dataSource),this.initFilterStrategy()}get keyName(){return this.appointmentDataSource.keyName}get filterStrategyName(){return this.options.getIsVirtualScrolling()?"virtual":"standard"}getFilterStrategy(){return(!this.filterStrategy||this.filterStrategy.strategyName!==this.filterStrategyName)&&this.initFilterStrategy(),this.filterStrategy}initFilterStrategy(){var t={resources:this.options.resources,dataAccessors:this.dataAccessors,startDayHour:this.options.startDayHour,endDayHour:this.options.endDayHour,showAllDayPanel:this.options.showAllDayPanel,timeZoneCalculator:this.options.timeZoneCalculator,loadedResources:this.options.getLoadedResources,supportAllDayRow:this.options.getSupportAllDayRow,viewType:this.options.getViewType,viewDirection:this.options.getViewDirection,dateRange:this.options.getDateRange,groupCount:this.options.getGroupCount,viewDataProvider:this.options.getViewDataProvider,allDayPanelMode:this.options.allDayPanelMode};this.filterStrategy="virtual"===this.filterStrategyName?new Mhe(t):new dz(t)}setDataSource(t){this.dataSource=t,this.initFilterStrategy(),this.appointmentDataSource.setDataSource(this.dataSource)}updateDataAccessors(t){this.dataAccessors=t,this.initFilterStrategy()}filter(t){return this.getFilterStrategy().filter(t)}filterByDate(t,e,i,r){if(this.dataSource&&i){var D=(n=>new Ahe(n).combine(n.min,n.max))({dataSourceFilter:this.dataSource.filter(),dataAccessors:this.dataAccessors,min:t,max:e,dateSerializationFormat:r,forceIsoDateParsing:(0,JN.Z)().forceIsoDateParsing});this.dataSource.filter(D)}}hasAllDayAppointments(t,e){return this.getFilterStrategy().hasAllDayAppointments(t,e)}filterLoadedAppointments(t,e){return this.getFilterStrategy().filterLoadedAppointments(t,e)}calculateAppointmentEndDate(t,e){return this.getFilterStrategy().calculateAppointmentEndDate(t,e)}cleanState(){this.appointmentDataSource.cleanState()}getUpdatedAppointment(){return this.appointmentDataSource._updatedAppointment}getUpdatedAppointmentKeys(){return this.appointmentDataSource._updatedAppointmentKeys}add(t){return this.appointmentDataSource.add(t)}update(t,e){return this.appointmentDataSource.update(t,e)}remove(t){return this.appointmentDataSource.remove(t)}destroy(){this.appointmentDataSource.destroy()}}!function(n){n.fromSourceToAppointment="toAppointment",n.fromAppointmentToSource="fromAppointment",n.fromSourceToGrid="toGrid",n.fromGridToSource="fromGrid"}(ky||(ky={}));class Nhe{constructor(t){this.options=t}createDate(t,e){var i=new Date(t);switch(e.path){case ky.fromSourceToAppointment:return this.getConvertedDate(i,e.appointmentTimeZone,!0,!1);case ky.fromAppointmentToSource:return this.getConvertedDate(i,e.appointmentTimeZone,!0,!0);case ky.fromSourceToGrid:return this.getConvertedDate(i,e.appointmentTimeZone,!1,!1);case ky.fromGridToSource:return this.getConvertedDate(i,e.appointmentTimeZone,!1,!0);default:throw new Error("not specified pathTimeZoneConversion")}}getOffsets(t,e){var i=-this.getClientOffset(t)/te.Z.dateToMilliseconds("hour"),r=this.getCommonOffset(t),m=this.getAppointmentOffset(t,e);return{client:i,common:(0,w.$K)(r)?r:i,appointment:"number"!=typeof m?i:m}}getConvertedDateByOffsets(t,e,i,r){var m=r?-1:1,D=new Date(t);return D.setMinutes(D.getMinutes()-m*(60*e)),D.setMinutes(D.getMinutes()+m*(60*i)),new Date(D)}getOriginStartDateOffsetInMs(t,e,i){return 36e5*this.getOffsetInHours(t,e,i)}getOffsetInHours(t,e,i){var{appointment:r,client:m,common:D}=this.getOffsets(t,e);return e&&i?r-m:e&&!i?r-D:!e&&i?D-m:0}getClientOffset(t){return this.options.getClientOffset(t)}getCommonOffset(t){return this.options.tryGetCommonOffset(t)}getAppointmentOffset(t,e){return this.options.tryGetAppointmentOffset(t,e)}getConvertedDate(t,e,i,r){var m=new Date(t.getTime()),D=this.getOffsets(m,e);return this.getConvertedDateByOffsets(t,D.client,i&&e?D.appointment:D.common,r)}}var Whe="".concat("yyyyMMddTHHmmss","Z"),LT="dx-scheduler",$he="".concat(LT,"-small"),Yhe="".concat(LT,"-adaptive"),Xhe="".concat(LT,"-readonly"),npe={day:{workSpace:Mce,renderingStrategy:"vertical"},week:{workSpace:oz,renderingStrategy:"vertical"},workWeek:{workSpace:jce,renderingStrategy:"vertical"},month:{workSpace:Zce,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:xce,renderingStrategy:"horizontal"},timelineWeek:{workSpace:_R,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:Dce,renderingStrategy:"horizontal"},timelineMonth:{workSpace:wce,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:ice,renderingStrategy:"agenda"}},dl_ADDING="onAppointmentAdding",dl_ADDED="onAppointmentAdded",dl_DELETED="onAppointmentDeleted",dl_UPDATED="onAppointmentUpdated";class xR extends ca.Z{_getDefaultOptions(){var t=(0,y.l)(super._getDefaultOptions(),{views:["day","week"],currentView:"day",currentDate:te.Z.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],loadedResources:[],resourceLoaderMap:new Map,dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0,allowTimeZoneEditing:!1},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,onAppointmentTooltipShowing:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",disabledExpr:"disabled",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:yn.Z.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,scrolling:{mode:"standard"},allDayPanelMode:"all",renovateRender:!0,_draggingMode:"outlook",_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:yn.Z.format("dxScheduler-openAppointment"),_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26,toolbar:[{location:"before",defaultElement:"dateNavigator"},{location:"after",defaultElement:"viewSwitcher"}]});return(0,y.l)(!0,t,{integrationOptions:{useDeferUpdateForTemplates:!1}})}get filteredItems(){return this._filteredItems||(this._filteredItems=[]),this._filteredItems}set filteredItems(t){this._filteredItems=t}get preparedItems(){return this._preparedItems||(this._preparedItems=[]),this._preparedItems}set preparedItems(t){this._preparedItems=t}get currentView(){return ST(this.option("currentView"),this.option("views"))}get currentViewType(){return(0,w.Kn)(this.currentView)?this.currentView.type:this.currentView}get timeZoneCalculator(){return this._timeZoneCalculator||(this._timeZoneCalculator=(n=>new Nhe({getClientOffset:t=>ia.getClientTimezoneOffset(t),tryGetCommonOffset:t=>ia.calculateTimezoneByValue(n,t),tryGetAppointmentOffset:(t,e)=>ia.calculateTimezoneByValue(e,t)}))(this.option("timeZone"))),this._timeZoneCalculator}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,y.l)(this._deprecatedOptions,{dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!x.Z.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return(0,z.x2)()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(t,e,i){t.text.split(" ").forEach(function(m,D){var A=(0,l.Z)("<span>").text(m).addClass("dx-scheduler-header-panel-cell-date");(0,l.Z)(i).append(A),D||(0,l.Z)(i).append(" ")})},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])}_postponeDataSourceLoading(t){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),t)}_postponeResourceLoading(){var t=this.postponedOperations.add("loadResources",()=>{var i=this._getCurrentViewOption("groups");return u6(i,this.option("resources"),this.option("resourceLoaderMap"))}),e=new P.BH;return t.done(i=>{this.option("loadedResources",i),e.resolve(i)}),this._postponeDataSourceLoading(t),e.promise()}_optionChanged(t){var e,i,r,m=t.value,D=t.name;switch(t.name){case"customizeDateNavigatorText":this._updateOption("header",D,m);break;case"firstDayOfWeek":this._updateOption("workSpace",D,m),this._updateOption("header",D,m);break;case"currentDate":m=this._dateOption(D),m=te.Z.trimTime(new Date(m)),this.option("selectedCellData",[]),this._workSpace.option(D,new Date(m)),null===(e=this._header)||void 0===e||e.option(D,new Date(m)),null===(i=this._header)||void 0===i||i.option("startViewDate",this.getStartViewDate()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this.appointmentDataProvider.setDataSource(this._dataSource),this._postponeResourceLoading().done(Q=>{this._filterAppointmentsByDate(),this._updateOption("workSpace","showAllDayPanel",this.option("showAllDayPanel"))});break;case"min":case"max":m=this._dateOption(D),this._updateOption("header",D,new Date(m)),this._updateOption("workSpace",D,new Date(m));break;case"views":var A;this._getCurrentViewOptions()?this.repaint():null===(A=this._header)||void 0===A||A.option(D,m);break;case"useDropDownViewSwitcher":null===(r=this._header)||void 0===r||r.option(D,m);break;case"currentView":this._validateDayHours(),this._validateCellDuration(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done(Q=>{var se;this._refreshWorkSpace(Q),null===(se=this._header)||void 0===se||se.option(this._headerConfig()),this._filterAppointmentsByDate(),this._appointments.option("allowAllDayResize","day"!==m)}),this.postponedOperations.callPostponedOperations();break;case"appointmentTemplate":this._appointments.option("itemTemplate",m);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this.repaint();break;case"groups":this._postponeResourceLoading().done(Q=>{this._refreshWorkSpace(Q),this._filterAppointmentsByDate()});break;case"resources":this._dataAccessors.resources=l6(this.option("resources")),this.agendaResourceProcessor.initializeState(this.option("resources")),this.updateInstances(),this._postponeResourceLoading().done(Q=>{this._appointments.option("items",[]),this._refreshWorkSpace(Q),this._filterAppointmentsByDate(),this._createAppointmentPopupForm()});break;case"startDayHour":case"endDayHour":this._validateDayHours(),this.updateInstances(),this._appointments.option("items",[]),this._updateOption("workSpace",D,m),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case dl_ADDING:case dl_ADDED:case"onAppointmentUpdating":case dl_UPDATED:case"onAppointmentDeleting":case dl_DELETED:case"onAppointmentFormOpening":case"onAppointmentTooltipShowing":this._actions[D]=this._createActionByOption(D);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(D));break;case"onAppointmentDblClick":this._appointments.option(D,this._createActionByOption(D));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(D));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(D,m);break;case"crossScrollingEnabled":this._postponeResourceLoading().done(Q=>{this._appointments.option("items",[]),this._refreshWorkSpace(Q),this._readyToRenderAppointments&&this._appointments.option("items",this._getAppointmentsToRepaint())});break;case"cellDuration":this._validateCellDuration(),this._updateOption("workSpace",D,m),this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",m/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",D,m),this._updateOption("workSpace",D,m),this._appointments.option(D,m),super._optionChanged(t);break;case"width":this._updateOption("header",D,m),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",m),this._updateOption("workSpace","schedulerWidth",m),super._optionChanged(t),this._dimensionChanged();break;case"height":super._optionChanged(t),this._dimensionChanged(),this._updateOption("workSpace","schedulerHeight",m);break;case"editing":this._initEditing(),this._bringEditingModeToAppointments(this._editing),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this.updateInstances(),this.repaint();break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",D,m),this.repaint();break;case"appointmentDragging":case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":this.updateInstances(),this.repaint();break;case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":case"disabledExpr":this._updateExpression(D,m),this.appointmentDataProvider.updateDataAccessors(this._dataAccessors),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;case"scrolling":this.option("crossScrollingEnabled",this._isHorizontalVirtualScrolling()||this.option("crossScrollingEnabled")),this._updateOption("workSpace",t.fullName,m);break;case"allDayPanelMode":this._updateOption("workSpace",t.fullName,m);break;case"renovateRender":this._updateOption("workSpace",D,m);break;case"_draggingMode":this._workSpace.option("draggingMode",m);break;case"toolbar":this._header?this._header.option("items",m):this.repaint();break;case"loadedResources":case"resourceLoaderMap":break;default:super._optionChanged(t)}}_dateOption(t){var e=this._getCurrentViewOption(t);return xs.Z.deserializeDate(e)}_getSerializationFormat(t){var e=this._getCurrentViewOption(t);return"number"==typeof e?"number":(0,w.HD)(e)?xs.Z.getDateSerializationFormat(e):void 0}_bringEditingModeToAppointments(t){var e={allowDelete:t.allowUpdating&&t.allowDeleting};this._isAgenda()||(e.allowDrag=t.allowDragging,e.allowResize=t.allowResizing,e.allowAllDayResize=t.allowResizing&&this._supportAllDayResizing()),this._appointments.option(e),this.repaint()}_isAgenda(){return"agenda"===this.getLayoutManager().appointmentRenderingStrategyName}_allowDragging(){return this._editing.allowDragging&&!this._isAgenda()}_allowResizing(){return this._editing.allowResizing&&!this._isAgenda()}_allowAllDayResizing(){return this._editing.allowResizing&&this._supportAllDayResizing()}_supportAllDayResizing(){return"day"!==this.currentViewType||this.currentView.intervalCount>1}_isAllDayExpanded(){return this.option("showAllDayPanel")&&this.appointmentDataProvider.hasAllDayAppointments(this.filteredItems,this.preparedItems)}_getTimezoneOffsetByOption(t){return ia.calculateTimezoneByValue(this.option("timeZone"),t)}_filterAppointmentsByDate(){var t=this._workSpace.getDateRange(),e=this.timeZoneCalculator.createDate(t[0],{path:"fromGrid"}),i=this.timeZoneCalculator.createDate(t[1],{path:"fromGrid"});this.appointmentDataProvider.filterByDate(e,i,this.option("remoteFiltering"),this.option("dateSerializationFormat"))}_reloadDataSource(){var t=new P.BH;return this._dataSource?(this._dataSource.load().done(function(){iT(),this._fireContentReadyAction(t)}.bind(this)).fail(function(){iT(),t.reject()}),this._dataSource.isLoading()&&t6({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(t),t.promise()}_fireContentReadyAction(t){var r,e=super._fireContentReadyAction.bind(this),i=()=>{e(),t?.resolve()};this._workSpaceRecalculation?null===(r=this._workSpaceRecalculation)||void 0===r||r.done(()=>{i()}):i()}_dimensionChanged(){if(this._isVisible()){this._toggleSmallClass();var t=this.getWorkSpace();if(!this._isAgenda()&&this.filteredItems&&t){t.option("allDayExpanded",this._isAllDayExpanded()),t._dimensionChanged();var e=this.getLayoutManager().createAppointmentsMap(this.filteredItems);this._appointments.option("items",e)}this.hideAppointmentTooltip(),this._appointmentPopup.triggerResize(),this._appointmentPopup.updatePopupFullScreenMode()}}_clean(){this._cleanPopup(),super._clean()}_toggleSmallClass(){var t=(0,Yo.l)(this.$element().get(0)).width;this.$element().toggleClass($he,t<400)}_toggleAdaptiveClass(){this.$element().toggleClass(Yhe,this.option("adaptivityEnabled"))}_visibilityChanged(t){t&&this._dimensionChanged()}_dataSourceOptions(){return{paginate:!1}}_initAllDayPanel(){"hidden"===this.option("allDayPanelMode")&&this.option("showAllDayPanel",!1)}_init(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr"),disabled:this.option("disabledExpr")}),super._init(),this._initAllDayPanel(),this._initDataSource(),this._customizeDataSourceLoadOptions(),this.$element().addClass(LT),this._initEditing(),this.updateInstances(),this._initActions(),this._compactAppointmentsHelper=new are(this),this._asyncTemplatesTimers=[],this._dataSourceLoadedCallback=(0,Pp.Z)(),this._subscribes=P4,this.agendaResourceProcessor=new Dhe(this.option("resources"))}createAppointmentDataProvider(){var t;null===(t=this.appointmentDataProvider)||void 0===t||t.destroy(),this.appointmentDataProvider=new Rhe({dataSource:this._dataSource,dataAccessors:this._dataAccessors,timeZoneCalculator:this.timeZoneCalculator,dateSerializationFormat:this.option("dateSerializationFormat"),resources:this.option("resources"),startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),appointmentDuration:this._getCurrentViewOption("cellDuration"),allDayPanelMode:this._getCurrentViewOption("allDayPanelMode"),showAllDayPanel:this.option("showAllDayPanel"),getLoadedResources:()=>this.option("loadedResources"),getIsVirtualScrolling:()=>this.isVirtualScrolling(),getSupportAllDayRow:()=>this._workSpace.supportAllDayRow(),getViewType:()=>this._workSpace.type,getViewDirection:()=>this._workSpace.viewDirection,getDateRange:()=>this._workSpace.getDateRange(),getGroupCount:()=>this._workSpace._getGroupCount(),getViewDataProvider:()=>this._workSpace.viewDataProvider})}updateInstances(){this._timeZoneCalculator=null,this.getWorkSpace()&&this.createAppointmentDataProvider()}_customizeDataSourceLoadOptions(){var t;null===(t=this._dataSource)||void 0===t||t.on("customizeStoreLoadOptions",e=>{var{storeLoadOptions:i}=e;i.startDate=this.getStartViewDate(),i.endDate=this.getEndViewDate()})}_initTemplates(){this._initAppointmentTemplate(),this._templateManager.addDefaultTemplates({appointmentTooltip:new sD.s,dropDownAppointment:new sD.s}),super._initTemplates()}_initAppointmentTemplate(){var{expr:t}=this._dataAccessors,e=r=>(0,Go.vb)("appointmentData.".concat(r)),i=r=>m=>{var D=r(m);return D instanceof Date?D.valueOf():D};this._templateManager.addDefaultTemplates({item:new B.c((r,m,D)=>this.getAppointmentsInstance()._renderAppointmentTemplate(r,m,D),["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:e(t.textExpr),startDate:i(e(t.startDateExpr)),endDate:i(e(t.endDateExpr)),startDateTimeZone:e(t.startDateTimeZoneExpr),endDateTimeZone:e(t.endDateTimeZoneExpr),allDay:e(t.allDayExpr),recurrenceRule:e(t.recurrenceRuleExpr)})})}_renderContent(){this._renderContentImpl()}_updatePreparedItems(t){this.preparedItems=((n,t,e,i)=>{var r=[];return n?.forEach(m=>{var D,A=new Date(t.getter.startDate(m)),N=new Date(t.getter.endDate(m));V6(m,A,N,e,t);var Q=Wa(m,t,i),se=Q.startDate&&Q.calculateStartDate("toGrid"),we=Q.endDate&&Q.calculateEndDate("toGrid"),Re=new RegExp("freq","gi"),Ue=Q.recurrenceRule,st=!(null==Ue||null===(D=Ue.match(Re))||void 0===D||!D.length),Ot=!(0,w.$K)(m.visible)||!!m.visible;se&&we&&r.push({allDay:!!Q.allDay,startDate:se,startDateTimeZone:m.startDateTimeZone,endDate:we,endDateTimeZone:m.endDateTimeZone,recurrenceRule:Q.recurrenceRule,recurrenceException:Q.recurrenceException,hasRecurrenceRule:st,visible:Ot,rawAppointment:m})}),r})(t,this._dataAccessors,this._getCurrentViewOption("cellDuration"),this.timeZoneCalculator)}_dataSourceChangedHandler(t){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._updatePreparedItems(t),this._renderAppointments(),this.getWorkSpace().onDataSourceChanged(this.filteredItems)}.bind(this))}isVirtualScrolling(){var t,e=this.getWorkSpace();if(e)return e.isVirtualScrolling();var i=this._getCurrentViewOptions();return"virtual"===this.option("scrolling")?.mode||"virtual"===(null==i||null===(t=i.scrolling)||void 0===t?void 0:t.mode)}_filterAppointments(){this.filteredItems=this.appointmentDataProvider.filter(this.preparedItems)}_renderAppointments(){var t=this.getWorkSpace();this._filterAppointments(),t.option("allDayExpanded",this._isAllDayExpanded());var e=[];this._isVisible()&&(e=this._getAppointmentsToRepaint()),this.option("isRenovatedAppointments")?(n=>{var{instance:t,$dateTable:e,viewModel:i}=n,r=(n=>{var t=(0,l.Z)(".dx-appointments-container");return 0===t.length&&(t=(0,l.Z)("<div>").addClass("dx-appointments-container").appendTo(n)),t})(e);_l.renovation.renderComponent(t,r,sz,"renovatedAppointments",i)})({instance:this,$dateTable:this.getWorkSpace()._getDateTable(),viewModel:e}):this._appointments.option("items",e),this.appointmentDataProvider.cleanState()}_getAppointmentsToRepaint(){var t=this.getLayoutManager(),e=t.createAppointmentsMap(this.filteredItems);return this.option("isRenovatedAppointments")?{appointments:e,appointmentTemplate:"item"!==this.option("appointmentTemplate")?this.option("appointmentTemplate"):void 0}:t.getRepaintedAppointments(e,this.getAppointmentsInstance().option("items"))}_initExpressions(t){this._dataAccessors=_l.dataAccessors.create(t,this._dataAccessors,(0,JN.Z)().forceIsoDateParsing,this.option("dateSerializationFormat")),this._dataAccessors.resources=l6(this.option("resources"))}_updateExpression(t,e){var i={};i[t.replace("Expr","")]=e,this._initExpressions(i)}getResourceDataAccessors(){return this._dataAccessors.resources}_initEditing(){var t=this.option("editing");this._editing={allowAdding:!!t,allowUpdating:!!t,allowDeleting:!!t,allowResizing:!!t,allowDragging:!!t},(0,w.Kn)(t)&&(this._editing=(0,y.l)(this._editing,t)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(Xhe,this._isReadOnly())}_isReadOnly(){var t=!0,e=this._editing;for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t=t&&!e[i]);return t}_dispose(){var t;this._appointmentTooltip&&this._appointmentTooltip.dispose(),null===(t=this._recurrenceDialog)||void 0===t||t.hide("cancel"),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._asyncTemplatesTimers.forEach(clearTimeout),this._asyncTemplatesTimers=[],super._dispose()}_initActions(){this._actions={onAppointmentAdding:this._createActionByOption(dl_ADDING),onAppointmentAdded:this._createActionByOption(dl_ADDED),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption(dl_UPDATED),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption(dl_DELETED),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening"),onAppointmentTooltipShowing:this._createActionByOption("onAppointmentTooltipShowing")}}_getAppointmentRenderedAction(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})}_renderFocusTarget(){return(0,E.ZT)()}_initMarkup(){if(super._initMarkup(),this._validateDayHours(),this._validateCellDuration(),this._renderMainContainer(),this._renderHeader(),this._layoutManager=new class hae{constructor(t){this.instance=t,this.appointmentViewModel=new dae}get appointmentRenderingStrategyName(){return(n=>{var{renderingStrategy:t}={day:{renderingStrategy:"vertical"},week:{renderingStrategy:"week"},workWeek:{renderingStrategy:"week"},month:{renderingStrategy:"horizontalMonth"},timelineDay:{renderingStrategy:"horizontal"},timelineWeek:{renderingStrategy:"horizontal"},timelineWorkWeek:{renderingStrategy:"horizontal"},timelineMonth:{renderingStrategy:"horizontalMonthLine"},agenda:{renderingStrategy:"agenda"}}[n];return t})(this.instance.currentViewType)}getCellDimensions(t){if(this.instance._workSpace)return{width:this.instance._workSpace.getCellWidth(),height:this.instance._workSpace.getCellHeight(),allDayHeight:this.instance._workSpace.getAllDayHeight()}}_getRenderingStrategyOptions(){var t=this.instance.getWorkSpace(),{virtualScrollingDispatcher:e}=this.instance.getWorkSpace(),{cellCountInsideLeftVirtualCell:i,cellCountInsideTopVirtualRow:r}=e,m=Lp(this.instance.option("loadedResources")),D=t.getDOMElementsMetaData(),A=gw(t.option("showAllDayPanel"),t._isVerticalGroupedWorkSpace(),D),N=t._getRowCount(),{positionHelper:Q,viewDataProvider:se}=t,we=se.getVisibleDayDuration(t.option("startDayHour"),t.option("endDayHour"),t.option("hoursInterval")),Re=s4(t.type,t.option("startDayHour"),t.option("endDayHour"),t.option("hoursInterval"));return{resources:this.instance.option("resources"),loadedResources:this.instance.option("loadedResources"),getAppointmentColor:this.instance.createGetAppointmentColor(),dataAccessors:this.instance._dataAccessors,isRenovatedAppointments:this.instance.option("isRenovatedAppointments"),appointmentRenderingStrategyName:this.appointmentRenderingStrategyName,adaptivityEnabled:this.instance.option("adaptivityEnabled"),rtlEnabled:this.instance.option("rtlEnabled"),startDayHour:this.instance._getCurrentViewOption("startDayHour"),endDayHour:this.instance._getCurrentViewOption("endDayHour"),maxAppointmentsPerCell:this.instance._getCurrentViewOption("maxAppointmentsPerCell"),currentDate:this.instance.option("currentDate"),isVirtualScrolling:this.instance.isVirtualScrolling(),leftVirtualCellCount:i,topVirtualCellCount:r,intervalCount:t.option("intervalCount"),hoursInterval:t.option("hoursInterval"),showAllDayPanel:t.option("showAllDayPanel"),isGroupedAllDayPanel:t.isGroupedAllDayPanel(),groups:this.instance._getCurrentViewOption("groups"),groupCount:m,rowCount:N,appointmentCountPerCell:this.instance.option("_appointmentCountPerCell"),appointmentOffset:this.instance.option("_appointmentOffset"),allowResizing:this.instance._allowResizing(),allowAllDayResizing:this.instance._allowAllDayResizing(),startViewDate:t.getStartViewDate(),groupOrientation:t._getRealGroupOrientation(),cellWidth:CT(D),cellHeight:jk(D),allDayHeight:A,resizableStep:Q.getResizableStep(),visibleDayDuration:we,allDayPanelMode:this.instance._getCurrentViewOption("allDayPanelMode"),timeZoneCalculator:this.instance.timeZoneCalculator,timeZone:this.instance.option("timeZone"),firstDayOfWeek:this.instance.getFirstDayOfWeek(),viewStartDayHour:this.instance._getCurrentViewOption("startDayHour"),viewEndDayHour:this.instance._getCurrentViewOption("endDayHour"),viewType:t.type,endViewDate:t.getEndViewDate(),positionHelper:Q,isGroupedByDate:t.isGroupedByDate(),cellDuration:Re,cellDurationInMinutes:t.option("cellDuration"),viewDataProvider:t.viewDataProvider,supportAllDayRow:t.supportAllDayRow(),dateRange:t.getDateRange(),intervalDuration:t.getIntervalDuration(),allDayIntervalDuration:t.getIntervalDuration(!0),isVerticalGroupOrientation:t.isVerticalOrientation(),DOMMetaData:D,instance:this.instance,agendaDuration:t.option("agendaDuration")}}createAppointmentsMap(t){var e=this._getRenderingStrategyOptions(),{viewModel:i,positionMap:r}=this.appointmentViewModel.generate(t,e);return this._positionMap=r,i}_isDataChanged(t){var e=this.instance.appointmentDataProvider;return e.getUpdatedAppointment()===t||e.getUpdatedAppointmentKeys().some(r=>t[r.key]===r.value)}_isAppointmentShouldAppear(t,e){return t.needRepaint&&e.needRemove}_isSettingChanged(t,e){if(t.length!==e.length)return!0;for(var i=(A,N)=>{var Q=A[N];return(0,di.Z)({},Q,{columnIndex:Q.columnIndex+(Q.leftVirtualCellCount||0),rowIndex:Q.rowIndex+(Q.topVirtualCellCount||0),positionByMap:void 0,topVirtualCellCount:void 0,leftVirtualCellCount:void 0,leftVirtualWidth:void 0,topVirtualHeight:void 0,hMax:Q.reduced?Q.hMax:void 0,vMax:Q.reduced?Q.vMax:void 0,info:{}})},r=0;r<t.length;r++){var m=i(t,r),D=i(e,r);if(D&&(D.sortedIndex=m.sortedIndex),!(0,E.bY)(m,D))return!0}return!1}_getAssociatedSourceAppointment(t,e){for(var i=0;i<e.length;i++){var r=e[i];if(r.itemData===t.itemData)return r}return null}_getDeletedAppointments(t,e){for(var i=[],r=0;r<e.length;r++){var m=e[r];this._getAssociatedSourceAppointment(m,t)||(m.needRemove=!0,i.push(m))}return i}getRepaintedAppointments(t,e){return 0===e.length||"agenda"===this.appointmentRenderingStrategyName?t:(t.forEach(i=>{var r=this._getAssociatedSourceAppointment(i,e);if(r){var m=this._isDataChanged(i.itemData),D=this._isSettingChanged(i.settings,r.settings),A=this._isAppointmentShouldAppear(i,r);i.needRepaint=m||D||A}}),t.concat(this._getDeletedAppointments(t,e)))}getRenderingStrategyInstance(){if(!this.appointmentViewModel.getRenderingStrategy()){var e=this._getRenderingStrategyOptions();this.appointmentViewModel.initRenderingStrategy(e)}return this.appointmentViewModel.getRenderingStrategy()}}(this),this._appointments=this._createComponent("<div>",eoe,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=new(this.option("adaptivityEnabled")?wre:_re)(this._getAppointmentTooltipOptions()),this._createAppointmentPopupForm(),this._isDataSourceLoaded()||this._isDataSourceLoading())this._initMarkupCore(this.option("loadedResources")),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction();else{var t=this._getCurrentViewOption("groups");u6(t,this.option("resources"),this.option("resourceLoaderMap")).done(e=>{this.option("loadedResources",e),this._initMarkupCore(e),this._reloadDataSource()})}}_createAppointmentPopupForm(){var t,e;this._appointmentForm&&(null===(e=this._appointmentForm.form)||void 0===e||e.dispose()),this._appointmentForm=this.createAppointmentForm(),null===(t=this._appointmentPopup)||void 0===t||t.dispose(),this._appointmentPopup=this.createAppointmentPopup(this._appointmentForm)}_renderMainContainer(){this._mainContainer=(0,l.Z)("<div>").addClass("dx-scheduler-container"),this.$element().append(this._mainContainer)}createAppointmentForm(){var t={createResourceEditorModel:()=>((n,t)=>n.map(e=>{var i=Vf(e),r=((n,t)=>{for(var e=0;e<t.length;e++){var i=t[e];if(i.name===n)return i.data}return[]})(i,t);return{editorOptions:{dataSource:r.length?r:rT(e.dataSource),displayExpr:Ok(e),valueExpr:uw(e)},dataField:i,editorType:e.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:e.label||i}}}))(this.option("resources"),this.option("loadedResources")),getDataAccessors:()=>this._dataAccessors,createComponent:(e,i,r)=>this._createComponent(e,i,r),getEditingConfig:()=>this._editing,getFirstDayOfWeek:()=>this.option("firstDayOfWeek"),getStartDayHour:()=>this.option("startDayHour"),getCalculatedEndDate:e=>this._workSpace.calculateEndDate(e)};return new Yie(t)}createAppointmentPopup(t){return new Aie({getElement:()=>this.$element(),createComponent:(i,r,m)=>this._createComponent(i,r,m),focus:()=>this.focus(),getResources:()=>this.option("resources"),getEditingConfig:()=>this._editing,getTimeZoneCalculator:()=>this.timeZoneCalculator,getDataAccessors:()=>this._dataAccessors,getAppointmentFormOpening:()=>this._actions.onAppointmentFormOpening,processActionResult:(i,r)=>this._processActionResult(i,r),addAppointment:i=>this.addAppointment(i),updateAppointment:(i,r)=>this.updateAppointment(i,r),updateScrollPosition:(i,r,m)=>{this._workSpace.updateScrollPosition(i,r,m)}},t)}_getAppointmentTooltipOptions(){return{createComponent:this._createComponent.bind(this),container:this.$element(),getScrollableContainer:this.getWorkSpaceScrollableContainer.bind(this),addDefaultTemplates:this._templateManager.addDefaultTemplates.bind(this._templateManager),getAppointmentTemplate:this._getAppointmentTemplate.bind(this),showAppointmentPopup:this.showAppointmentPopup.bind(this),checkAndDeleteAppointment:this.checkAndDeleteAppointment.bind(this),isAppointmentInAllDayPanel:this.isAppointmentInAllDayPanel.bind(this),createFormattedDateText:(t,e,i)=>this.fire("getTextAndFormatDate",t,e,i),getAppointmentDisabled:t=>Wa(t,this._dataAccessors,this.timeZoneCalculator).disabled}}checkAndDeleteAppointment(t,e){var i=Wa(e,this._dataAccessors,this.timeZoneCalculator),r=this.fireOnAppointmentDeleting(t,i);this._checkRecurringAppointment(t,e,i.startDate,()=>{this.processDeleteAppointment(t,r)},!0)}_getExtraAppointmentTooltipOptions(){return{rtlEnabled:this.option("rtlEnabled"),focusStateEnabled:this.option("focusStateEnabled"),editing:this.option("editing"),offset:this.option("_appointmentTooltipOffset")}}isAppointmentInAllDayPanel(t){var e=this._workSpace;return this.appointmentTakesAllDay(t)&&e.supportAllDayRow()&&e.option("showAllDayPanel")}_initMarkupCore(t){this._readyToRenderAppointments=(0,mi.Ym)(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(t),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate(()=>{var e;return null===(e=this._workSpaceRecalculation)||void 0===e?void 0:e.resolve()}),this.createAppointmentDataProvider(),this._filterAppointmentsByDate()}_isDataSourceLoaded(){return this._dataSource&&this._dataSource.isLoaded()}_render(){var t;this._toggleSmallClass(),this._toggleAdaptiveClass(),null===(t=this.getWorkSpace())||void 0===t||t.updateHeaderEmptyCellWidth(),super._render()}_renderHeader(){if(0!==this.option("toolbar").length){var t=(0,l.Z)("<div>").appendTo(this._mainContainer);this._header=this._createComponent(t,A4,this._headerConfig())}}_headerConfig(){var t=this._getCurrentViewOptions(),e=this._getViewCountConfig(),i=(0,y.l)({firstDayOfWeek:this.getFirstDayOfWeek(),currentView:this.option("currentView"),isAdaptive:this.option("adaptivityEnabled"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),customizeDateNavigatorText:this.option("customizeDateNavigatorText"),agendaDuration:t.agendaDuration||7},t);return i.intervalCount=e.intervalCount,i.views=this.option("views"),i.min=new Date(this._dateOption("min")),i.max=new Date(this._dateOption("max")),i.currentDate=te.Z.trimTime(new Date(this._dateOption("currentDate"))),i.onCurrentViewChange=r=>{this.option("currentView",r)},i.onCurrentDateChange=r=>{this.option("currentDate",r)},i.items=this.option("toolbar"),i.startViewDate=this.getStartViewDate(),i.todayDate=()=>this.timeZoneCalculator.createDate(new Date,{path:"toGrid"}),i}_appointmentsConfig(){var t={getResources:()=>this.option("resources"),getResourceDataAccessors:this.getResourceDataAccessors.bind(this),getAgendaResourceProcessor:()=>this.agendaResourceProcessor,getAppointmentColor:this.createGetAppointmentColor(),getAppointmentDataProvider:()=>this.appointmentDataProvider,dataAccessors:this._dataAccessors,observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),currentView:this.currentView,groups:this._getCurrentViewOption("groups"),isRenovatedAppointments:this.option("isRenovatedAppointments"),timeZoneCalculator:this.timeZoneCalculator,getResizableStep:()=>this._workSpace?this._workSpace.positionHelper.getResizableStep():0,getDOMElementsMetaData:()=>{var e;return null===(e=this._workSpace)||void 0===e?void 0:e.getDOMElementsMetaData()},getViewDataProvider:()=>{var e;return null===(e=this._workSpace)||void 0===e?void 0:e.viewDataProvider},isVerticalViewDirection:()=>"vertical"===this.getRenderingStrategyInstance().getDirection(),isVerticalGroupedWorkSpace:()=>this._workSpace._isVerticalGroupedWorkSpace(),isDateAndTimeView:()=>Q0(this._workSpace.type),onContentReady:()=>{var e;null===(e=this._workSpace)||void 0===e||e.option("allDayExpanded",this._isAllDayExpanded())}};return t}getCollectorOffset(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0}getAppointmentDurationInMinutes(){return this._getCurrentViewOption("cellDuration")}_validateCellDuration(){60*(this._getCurrentViewOption("endDayHour")-this._getCurrentViewOption("startDayHour"))%this._getCurrentViewOption("cellDuration")!=0&&Hs.Z.log("W1015")}_getCurrentViewType(){return this.currentViewType}_renderWorkSpace(t){var e;this._readyToRenderAppointments&&this._toggleSmallClass();var i=(0,l.Z)("<div>").appendTo(this._mainContainer),r=this._getViewCountConfig(),m=npe[this._getCurrentViewType()].workSpace,D=this._workSpaceConfig(t,r);this._workSpace=this._createComponent(i,m,D),this._allowDragging()&&this._workSpace.initDragBehavior(this,this._all),this._workSpace._attachTablesEvents(),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),r.startDate&&(null===(e=this._header)||void 0===e||e.option("currentDate",this._workSpace._getHeaderDate())),this._appointments.option("_collectorOffset",this.getCollectorOffset())}_getViewCountConfig(){var t=this.option("currentView"),e=this._getViewByName(t);return{intervalCount:e&&e.intervalCount||1,startDate:e&&e.startDate||null}}_getViewByName(t){for(var e=this.option("views"),i=0;i<e.length;i++)if(e[i].name===t||e[i].type===t||e[i]===t)return e[i]}_recalculateWorkspace(){this._workSpaceRecalculation=new P.BH,this._waitAsyncTemplate(()=>{(0,Db.U_)(this._workSpace.$element()),this._workSpace._refreshDateTimeIndication()})}_workSpaceConfig(t,e){var i,r=this._getCurrentViewOptions(),m=this.option("scrolling"),D="virtual"===m.mode||"virtual"===(null===(i=r.scrolling)||void 0===i?void 0:i.mode),A=D&&(!(0,w.$K)(m.orientation)||["horizontal","both"].filter(se=>{var we;return m.orientation===se||(null===(we=r.scrolling)||void 0===we?void 0:we.orientation)===se}).length>0),N=this.option("crossScrollingEnabled")||A||Hk(this.currentViewType),Q=(0,y.l)({resources:this.option("resources"),loadedResources:this.option("loadedResources"),getFilteredItems:()=>this.filteredItems,getResourceDataAccessors:this.getResourceDataAccessors.bind(this),noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:N,dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:se=>{this.option("selectedCellData",se.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate"),scrolling:m,draggingMode:this.option("_draggingMode"),timeZoneCalculator:this.timeZoneCalculator,schedulerHeight:this.option("height"),schedulerWidth:this.option("width"),allDayPanelMode:this.option("allDayPanelMode"),onSelectedCellsClick:this.showAddAppointmentPopup.bind(this),onRenderAppointments:this._renderAppointments.bind(this),onShowAllDayPanel:se=>this.option("showAllDayPanel",se),getHeaderHeight:()=>_l.DOM.getHeaderHeight(this._header),onScrollEnd:()=>this._appointments.updateResizableArea(),renovateRender:this._isRenovatedRender(D),isRenovatedAppointments:this.option("isRenovatedAppointments")},r);return Q.observer=this,Q.intervalCount=e.intervalCount,Q.startDate=e.startDate,Q.groups=t,Q.onCellClick=this._createActionByOption("onCellClick"),Q.onCellContextMenu=this._createActionByOption("onCellContextMenu"),Q.currentDate=te.Z.trimTime(new Date(this._dateOption("currentDate"))),Q.hoursInterval=Q.cellDuration/60,Q.allDayExpanded=!1,Q.dataCellTemplate=Q.dataCellTemplate?this._getTemplate(Q.dataCellTemplate):null,Q.timeCellTemplate=Q.timeCellTemplate?this._getTemplate(Q.timeCellTemplate):null,Q.resourceCellTemplate=Q.resourceCellTemplate?this._getTemplate(Q.resourceCellTemplate):null,Q.dateCellTemplate=Q.dateCellTemplate?this._getTemplate(Q.dateCellTemplate):null,Q.getAppointmentDataProvider=()=>this.appointmentDataProvider,Q}_isRenovatedRender(t){return this.option("renovateRender")&&(0,mi.Ym)()||t}_waitAsyncTemplate(t){if(this._options.silent("templatesRenderAsynchronously")){var e=setTimeout(()=>{t(),clearTimeout(e)});this._asyncTemplatesTimers.push(e)}else t()}_getCurrentViewOptions(){return this.currentView}_getCurrentViewOption(t){return this.currentView&&void 0!==this.currentView[t]?this.currentView[t]:this.option(t)}_getAppointmentTemplate(t){var e=this._getCurrentViewOptions();return e&&e[t]?this._getTemplate(e[t]):this._getTemplateByOption(t)}_updateOption(t,e,i){var r=this._getCurrentViewOptions();(!r||!(0,w.$K)(r[e]))&&this["_"+t].option(e,i)}_refreshWorkSpace(t){this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(t),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate(()=>this._workSpaceRecalculation.resolve()))}_cleanWorkspace(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])}getWorkSpaceScrollable(){return this._workSpace.getScrollable()}getWorkSpaceScrollableContainer(){return this._workSpace.getScrollableContainer()}getWorkSpace(){return this._workSpace}getHeader(){return this._header}_cleanPopup(){var t;null===(t=this._appointmentPopup)||void 0===t||t.dispose()}_checkRecurringAppointment(t,e,i,r,m,D,A,N){var Q=Ra_getField(this._dataAccessors,"recurrenceRule",t);if(Dh().evalRecurrenceRule(Q).isValid&&this._editing.allowUpdating)switch(N||this.option("recurrenceEditMode")){case"series":r();break;case"occurrence":this._excludeAppointmentFromSeries(t,e,i,m,D,A);break;default:A&&(A.cancel=new P.BH),this._showRecurrenceChangeConfirm(m).done(we=>{"editSeries"===we&&r(),"editOccurence"===we&&this._excludeAppointmentFromSeries(t,e,i,m,D,A)}).fail(()=>this._appointments.moveAppointmentBack(A))}else r()}_excludeAppointmentFromSeries(t,e,i,r,m,D){var A=((n,t,e,i)=>{var r=Wa((0,di.Z)({},n),e,i);return r.recurrenceException=((n,t)=>{var e=[];return n.recurrenceException&&e.push(n.recurrenceException),e.push(((n,t,e)=>(e&&n.setHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),xs.Z.serializeDate(n,Whe)))(t,n.startDate,n.allDay)),e.join()})(r,t),r})(t,i,this._dataAccessors,this._timeZoneCalculator),N=(0,di.Z)({},e);delete N[this._dataAccessors.expr.recurrenceExceptionExpr],delete N[this._dataAccessors.expr.recurrenceRuleExpr],delete N[this.appointmentDataProvider.keyName],!r&&!m&&this.addAppointment(N),m?(this._appointmentPopup.show(N,{isToolbarVisible:!0,action:2,excludeInfo:{sourceAppointment:t,updatedAppointment:A.source()}}),this._editAppointmentData=t):this._updateAppointment(t,A.source(),()=>{this._appointments.moveAppointmentBack(D)},D)}_createRecurrenceException(t,e){var i=[];return t.recurrenceException&&i.push(t.recurrenceException),i.push(this._getSerializedDate(e,t.startDate,t.allDay)),i.join()}_getSerializedDate(t,e,i){return i&&t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),xs.Z.serializeDate(t,"yyyyMMddTHHmmssZ")}_showRecurrenceChangeConfirm(t){var e=yn.Z.format(t?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),i=yn.Z.format(t?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),r=yn.Z.format(t?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return this._recurrenceDialog=(0,cie.PG)({messageHtml:e,showCloseButton:!0,showTitle:!0,buttons:[{text:i,onClick:function(){return"editSeries"}},{text:r,onClick:function(){return"editOccurence"}}],popupOptions:{onHidden:m=>{m.component.$element().remove()},copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}}),this._recurrenceDialog.show()}_getUpdatedData(t){var e=qt=>qt?this.timeZoneCalculator.createDate(qt,{path:"fromGrid"}):void 0,i=qt=>!isNaN(new Date(qt).getTime()),r=this.getTargetCellData(),m=Wa(t,this._dataAccessors,this.timeZoneCalculator),D=e(r.startDate),A=e(r.endDate),N=new Date(m.startDate),Q=new Date(m.endDate),se=D||N;i(N)||(N=se),i(Q)||(Q=A);var we=Q.getTime()-N.getTime();if(this._workSpace.keepOriginalHours()&&i(m.startDate)&&i(D)){var{trimTime:Ue}=te.Z,st=this.timeZoneCalculator.createDate(m.startDate,{path:"toGrid"}),Ot=st.getTime()-Ue(st).getTime();se=new Date(Ue(r.startDate).getTime()+Ot),se=this.timeZoneCalculator.createDate(se,{path:"fromGrid"})}var Kt=Wa({},this._dataAccessors,this.timeZoneCalculator);void 0!==r.allDay&&(Kt.allDay=r.allDay),Kt.startDate=se;var sn=new Date(se.getTime()+we);if(this.appointmentTakesAllDay(t)&&!Kt.allDay&&this._workSpace.supportAllDayRow()&&(sn=this._workSpace.calculateEndDate(se)),m.allDay&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var wn=new Date(se);wn.setHours(0),0!==(sn=new Date(wn.getTime()+we)).getHours()&&sn.setHours(this._getCurrentViewOption("endDayHour"))}var rn=ia.getTimezoneOffsetChangeInMs(N,Q,se,sn);Kt.endDate=new Date(sn.getTime()-rn);var Ft=Kt.source();return((n,t,e,i)=>{var r=t.setter;for(var m in i){var D=i[m],A=o6(n,m)?(0,$u.sE)(D):D;r[m](e,A)}})(this.option("resources"),this.getResourceDataAccessors(),Ft,r.groups),Ft}getTargetedAppointment(t,e){var i=_l.dataAccessors.getAppointmentSettings(e),r=_l.dataAccessors.getAppointmentInfo(e),m=(0,l.Z)(e).data(this._appointments._itemIndexKey()),D=Wa(t,this._dataAccessors,this.timeZoneCalculator),A=D.clone();if(this._isAgenda()&&D.isRecurrent){var N=i.agendaSettings;A.startDate=Ra_getField(this._dataAccessors,"startDate",N),A.endDate=Ra_getField(this._dataAccessors,"endDate",N)}else i&&(A.startDate=r?r.sourceAppointment.startDate:D.startDate,A.endDate=r?r.sourceAppointment.endDate:D.endDate);var Q=A.source();return e&&this.setTargetedAppointmentResources(Q,e,m),r&&(Q.displayStartDate=new Date(r.appointment.startDate),Q.displayEndDate=new Date(r.appointment.endDate)),Q}subscribe(t,e){this._subscribes[t]=P4[t]=e}fire(t){var e=this._subscribes[t],i=Array.prototype.slice.call(arguments);if(!(0,w.mf)(e))throw Hs.Z.Error("E1031",t);return e.apply(this,i.slice(1))}getTargetCellData(){return this._workSpace.getDataByDroppableCell()}_updateAppointment(t,e,i,r){var m={newData:e,oldData:(0,y.l)({},t),cancel:!1},D=function(A){if(i&&i.call(this),A&&"Error"===A.name)throw A}.bind(this);return this._actions.onAppointmentUpdating(m),r&&!(0,w.EY)(r.cancel)&&(r.cancel=new P.BH),this._processActionResult(m,function(A){var N=new P.BH;if(A)D(),N.resolve();else{this._expandAllDayPanel(e);try{N=this.appointmentDataProvider.update(t,e).done(()=>{r&&r.cancel.resolve(!1)}).always(Q=>this._onDataPromiseCompleted(dl_UPDATED,Q)).fail(()=>D())}catch(Q){D(Q),N.resolve()}}return N.promise()})}_processActionResult(t,e){var i=new P.BH,r=m=>{(0,P.gx)((0,P.p4)(m)).always(i.resolve)};return(0,w.tI)(t.cancel)?(0,P.gx)((0,P.p4)(t.cancel)).always(m=>{(0,w.$K)(m)||(m="rejected"===t.cancel.state()),r(e.call(this,m))}):r(e.call(this,t.cancel)),i.promise()}_expandAllDayPanel(t){!this._isAllDayExpanded()&&this.appointmentTakesAllDay(t)&&this._workSpace.option("allDayExpanded",!0)}_onDataPromiseCompleted(t,e,i){var r={appointmentData:i||e};e instanceof Error?r.error=e:this._appointmentPopup.visible&&this._appointmentPopup.hide(),this._actions[t](r),this._fireContentReadyAction()}getAppointmentsInstance(){return this._appointments}getLayoutManager(){return this._layoutManager}getRenderingStrategyInstance(){return this.getLayoutManager().getRenderingStrategyInstance()}getActions(){return this._actions}appointmentTakesAllDay(t){var e=Wa(t,this._dataAccessors,this.timeZoneCalculator);return Dy(e,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"),this._getCurrentViewOption("allDayPanelMode"))}dayHasAppointment(t,e,i){var r=we=>this.timeZoneCalculator.createDate(we,{path:"toGrid"}),m=Wa(e,this._dataAccessors,this.timeZoneCalculator),D=new Date(m.startDate),A=new Date(m.endDate);if(D=r(D),A=r(A),t.getTime()===A.getTime())return D.getTime()===A.getTime();i&&(t=te.Z.trimTime(t),D=te.Z.trimTime(D),A=te.Z.trimTime(A));var N=t.getTime(),Q=D.getTime(),se=A.getTime();return Q<=N&&N<=se}setTargetedAppointmentResources(t,e,i){var r=this._getCurrentViewOption("groups");if(null!=r&&r.length){var A,N,m=this.getResourceDataAccessors().setter,D=this._workSpace;this._isAgenda()?(A=function(){var Q=this.getLayoutManager()._positionMap[i];return wy(Q[0].groupIndex,this.getWorkSpace().option("groups"))},N=function(Q,se){m[se.name](t,se.id)}):(A=function(){var Q=_l.dataAccessors.getAppointmentSettings(e)||{};return D.getCellDataByCoordinates({left:Q.left,top:Q.top}).groups},N=function(Q,se){m[Q](t,se)}),(0,O.S6)(A.call(this),N)}}getStartViewDate(){var t;return null===(t=this._workSpace)||void 0===t?void 0:t.getStartViewDate()}getEndViewDate(){return this._workSpace.getEndViewDate()}showAddAppointmentPopup(t,e){var i=Wa({},this._dataAccessors,this.timeZoneCalculator);i.allDay=t.allDay,i.startDate=this.timeZoneCalculator.createDate(t.startDate,{path:"fromGrid"}),i.endDate=this.timeZoneCalculator.createDate(t.endDate,{path:"fromGrid"});var r=(0,y.l)(i.source(),e);this.showAppointmentPopup(r,!0)}showAppointmentPopup(t,e,i){var r=(0,di.Z)({},i);r&&(delete r.displayStartDate,delete r.displayEndDate);var m=Wa(r||t,this._dataAccessors,this.timeZoneCalculator),D=(0,y.l)({},t,r),A=e??(0,w.Qr)(t);(0,w.Qr)(t)&&(t=this.createPopupAppointment()),A?(delete this._editAppointmentData,this._editing.allowAdding&&this._appointmentPopup.show(t,{isToolbarVisible:!0,action:0})):this._checkRecurringAppointment(t,D,m.startDate,()=>{this._editAppointmentData=t,this._appointmentPopup.show(t,{isToolbarVisible:this._editing.allowUpdating,action:1})},!1,!0)}createPopupAppointment(){var t={},e=te.Z.dateToMilliseconds,i=new Date(this.option("currentDate")),r=new Date(i.getTime()+this.option("cellDuration")*e("minute"));return Ra_setField(this._dataAccessors,"startDate",t,i),Ra_setField(this._dataAccessors,"endDate",t,r),t}hideAppointmentPopup(t){var e;null!==(e=this._appointmentPopup)&&void 0!==e&&e.visible&&(t&&this._appointmentPopup.saveChangesAsync(),this._appointmentPopup.hide())}showAppointmentTooltip(t,e,i){if(t){var m={itemData:i||t,groupIndex:_l.dataAccessors.getAppointmentSettings(e)?.groupIndex,groups:this.option("groups")},A=this.createGetAppointmentColor()(m),N=new C6(t,i,A);this.showAppointmentTooltipCore(e,[N])}}createGetAppointmentColor(){return t=>{var e={resources:this.option("resources"),dataAccessors:this.getResourceDataAccessors(),loadedResources:this.option("loadedResources"),resourceLoaderMap:this.option("resourceLoaderMap")};return s6(e,t)}}showAppointmentTooltipCore(t,e,i){var r={cancel:!1,appointments:e.map(m=>{var D={appointmentData:m.appointment,currentAppointmentData:(0,di.Z)({},m.targetedAppointment),color:m.color};if(m.settings.info){var{startDate:A,endDate:N}=m.settings.info.appointment;D.currentAppointmentData.displayStartDate=A,D.currentAppointmentData.displayEndDate=N}return D}),targetElement:t};this._createActionByOption("onAppointmentTooltipShowing")(r),this._appointmentTooltip.isAlreadyShown(t)?this.hideAppointmentTooltip():this._processActionResult(r,m=>{!m&&this._appointmentTooltip.show(t,e,(0,di.Z)({},this._getExtraAppointmentTooltipOptions(),i))})}hideAppointmentTooltip(){this._appointmentTooltip&&this._appointmentTooltip.hide()}scrollToTime(t,e,i){Hs.Z.log("W0002","dxScheduler","scrollToTime","21.1",'Use the "scrollTo" method instead'),this._workSpace.scrollToTime(t,e,i)}scrollTo(t,e,i){this._workSpace.scrollTo(t,e,i)}_isHorizontalVirtualScrolling(){var t=this.option("scrolling"),{orientation:e,mode:i}=t;return"virtual"===i&&("horizontal"===e||"both"===e)}addAppointment(t){var e=Wa(t,this._dataAccessors,this.timeZoneCalculator);e.text=e.text||"";var i=e.source(!0),r={appointmentData:i,cancel:!1};return this._actions[dl_ADDING](r),this._processActionResult(r,m=>m?(new P.BH).resolve():(this._expandAllDayPanel(i),this.appointmentDataProvider.add(i).always(D=>this._onDataPromiseCompleted(dl_ADDED,D))))}updateAppointment(t,e){return this._updateAppointment(t,e)}deleteAppointment(t){var e=this.fireOnAppointmentDeleting(t);this.processDeleteAppointment(t,e)}fireOnAppointmentDeleting(t,e){var i={appointmentData:t,targetedAppointmentData:e,cancel:!1};return this._actions.onAppointmentDeleting(i),i}processDeleteAppointment(t,e){this._processActionResult(e,function(i){i||this.appointmentDataProvider.remove(t).always(r=>this._onDataPromiseCompleted(dl_DELETED,r,t))})}deleteRecurrence(t,e,i){this._checkRecurringAppointment(t,{},e,()=>{this.processDeleteAppointment(t,{cancel:!1})},!0,!1,null,i)}focus(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()}getFirstDayOfWeek(){return(0,w.$K)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):zo.Z.firstDayOfWeekIndex()}_validateDayHours(){var t=this._getCurrentViewOption("startDayHour"),e=this._getCurrentViewOption("endDayHour");Vk(t,e)}_getDragBehavior(){return this._workSpace.dragBehavior}}xR.include(yo.Z),(0,T.Z)("dxScheduler",xR);let pz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.LS2,M.SCM,M.hFl,M.WyY,M.t$9,g.Lz,g.ie,p.Cu],M.LS2,M.SCM,M.hFl,M.WyY,M.t$9,g.ie]}),n})();var gz=u(944),fz=u(6229);const rpe={provide:ne.JU,useExisting:(0,a.Gpc)(()=>ope),multi:!0};let ope=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"keyStepChange"},{emit:"labelChange"},{emit:"maxChange"},{emit:"minChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"showRangeChange"},{emit:"stepChange"},{emit:"tabIndexChange"},{emit:"tooltipChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeModeChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get keyStep(){return this._getOption("keyStep")}set keyStep(e){this._setOption("keyStep",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get max(){return this._getOption("max")}set max(e){this._setOption("max",e)}get min(){return this._getOption("min")}set min(e){this._setOption("min",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get showRange(){return this._getOption("showRange")}set showRange(e){this._setOption("showRange",e)}get step(){return this._getOption("step")}set step(e){this._setOption("step",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tooltip(){return this._getOption("tooltip")}set tooltip(e){this._setOption("tooltip",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeMode(){return this._getOption("valueChangeMode")}set valueChangeMode(e){this._setOption("valueChangeMode",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new jV(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-slider"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",keyStep:"keyStep",label:"label",max:"max",min:"min",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",showRange:"showRange",step:"step",tabIndex:"tabIndex",tooltip:"tooltip",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeMode:"valueChangeMode",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",keyStepChange:"keyStepChange",labelChange:"labelChange",maxChange:"maxChange",minChange:"minChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",showRangeChange:"showRangeChange",stepChange:"stepChange",tabIndexChange:"tabIndexChange",tooltipChange:"tooltipChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeModeChange:"valueChangeModeChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,rpe,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.e1H,M.FZZ,M.vZC,g.Lz,g.ie,p.Cu],M.e1H,M.FZZ,M.vZC,g.ie]}),n})();u(1414);let _z=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.ywL,g.Lz,g.ie,p.Cu],M.ywL,g.ie]}),n})();var cpe={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},BT=Math,hpe=BT.abs,ppe=BT.round,xz=BT.max,bz=BT.min,bR=isFinite,wR=Number,gpe=String;function wz(n,t,e,i){return(e===i.first||e===i.last)&&(n=t.firstLastColor),(i.min||[]).indexOf(e)>=0&&(n=t.minColor),(i.max||[]).indexOf(e)>=0&&(n=t.maxColor),n}var FT=$C.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:250,height:30},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){this._series&&this._series.dispose(),this._series=this._seriesGroup=this._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear(),this._series.removeGraphicElements(),this._series.removePointElements(),this._series.removeBordersGroup()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var n=this._allOptions,t=this._canvas,e=n.pointSize&&Math.ceil(n.pointSize/2)+2,i=n.type;return"bar"!==i&&"winloss"!==i&&(n.showFirstLast||n.showMinMax)?{width:t.width,height:t.height,left:t.left+e,right:t.right+e,top:t.top+e,bottom:t.bottom+e}:t},_prepareOptions:function(){this._allOptions=this.callBase(),this._allOptions.type=En(this._allOptions.type),cpe[this._allOptions.type]||(this._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({class:"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({class:"dxsl-series-labels"})},_createSeries:function(){this._series=new S0({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis,incidentOccurred:this._incidentOccurred},{widgetType:"chart",type:"line"})},_updateSeries:function(){var n=this._series;this._prepareDataSource();var t=this._prepareSeriesOptions();n.updateOptions(t);var e={groups:[{series:[n]}]};e.argumentOptions={type:"bar"===t.type?"discrete":void 0},this._simpleDataSource=a0(this._simpleDataSource,e,this._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[n.getArgumentField()],t.customizePoint=this._getCustomizeFunction(),n.updateData(this._simpleDataSource),n.createPoints(),this._groupsDataCategories=e.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var n=this._allOptions,t=n.argumentField,e=n.valueField,r=function mpe(n,t,e,i){return Vn(n,function(r,m){var A,N,D=null;return void 0!==r&&(D={},A=bR(r),D[t]=A?gpe(m):r[t],D[e]=null===(N=A?r:r[e])?i?void 0:N:wR(N),D=void 0!==D[t]&&void 0!==D[e]?D:null),D})}(this._dataSourceItems()||[],t,e,this.option("ignoreEmptyPoints"));"winloss"===n.type?(this._winlossDataSource=r,this._simpleDataSource=function _pe(n,t,e,i){return Vn(n,function(r){var m={};return m[t]=r[t],m[e]=hpe(r[e]-i)<1e-4?0:r[e]>i?1:-1,m})}(r,t,e,n.winlossThreshold)):this._simpleDataSource=r},_prepareSeriesOptions:function(){var n=this._allOptions,t="winloss"===n.type?"bar":n.type;return{visible:!0,argumentField:n.argumentField,valueField:n.valueField,color:n.lineColor,width:n.lineWidth,widgetType:"chart",name:"",type:t,opacity:-1!==t.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:n.pointSize,symbol:n.pointSymbol,border:{visible:!0,width:2},color:n.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:n.lineColor,width:n.lineWidth,visible:"bar"!==t}}},_getCustomizeFunction:function(){var i,n=this._allOptions,e=this._getExtremumPointsIndexes(this._winlossDataSource||this._simpleDataSource);return i="winloss"===n.type||"bar"===n.type?function ype(n,t,e){return function(){var i=this.index,r="winloss"===t.type;return{color:wz((r?e[i][t.valueField]:this.value)>=(r?t.winlossThreshold:0)?r?t.winColor:t.barPositiveColor:r?t.lossColor:t.barNegativeColor,t,i,n)}}}(e,n,this._winlossDataSource):function vpe(n,t){return function(){var e=wz(void 0,t,this.index,n);return e?{visible:!0,border:{color:e}}:{}}}(e,n),i},_getExtremumPointsIndexes:function(n){var t=this._allOptions,e=n.length-1,i={};return this._minMaxIndexes=function fpe(n,t){var Q,se,i=(n[0]||{})[t]||0,r=i,m=i,D=[0],A=[0],N=n.length;for(se=1;se<N;se++)(Q=n[se][t])<r?(r=Q,D=[se]):Q===r&&D.push(se),Q>m?(m=Q,A=[se]):Q===m&&A.push(se);return m===r&&(D=A=[]),{minIndexes:D,maxIndexes:A}}(n,t.valueField),t.showFirstLast&&(i.first=0,i.last=e),t.showMinMax&&(i.min=this._minMaxIndexes.minIndexes,i.max=this._minMaxIndexes.maxIndexes),i},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var Q,n=this._series,t=n.type,e="bar"===t,i="winloss"===t,r=n.getRangeData(),m=this._allOptions.minValue,D=(0,w.$K)(m)&&bR(m),A=this._allOptions.maxValue,N=(0,w.$K)(A)&&bR(A),se=.15*(r.val.max-r.val.min);e||i||"area"===t?(0!==r.val.min&&(r.val.min-=se),0!==r.val.max&&(r.val.max+=se)):(r.val.min-=se,r.val.max+=se),(D||N)&&(D&&N?(r.val.minVisible=bz(m,A),r.val.maxVisible=xz(m,A)):(r.val.minVisible=D?wR(m):void 0,r.val.maxVisible=N?wR(A):void 0),i&&(r.val.minVisible=D?xz(r.val.minVisible,-1):void 0,r.val.maxVisible=N?bz(r.val.maxVisible,1):void 0)),n.getPoints().length>1&&e&&(r.arg.min=r.arg.min-(Q=.1*(r.arg.max-r.arg.min)),r.arg.max=r.arg.max+Q),r.arg.categories=this._groupsDataCategories,this._ranges=r},_getBarWidth:function(n){var t=this._canvas,r=ppe((t.width-t.left-t.right-4*n)/n);return r<1&&(r=1),r>50&&(r=50),r},_correctPoints:function(){var i,r,n=this._allOptions.type,t=this._series.getPoints(),e=t.length;if("bar"===n||"winloss"===n)for(i=this._getBarWidth(e),r=0;r<e;r++)t[r].correctCoordinates({width:i,offset:0})},_drawSeries:function(){this._simpleDataSource.length>0&&(this._correctPoints(),this._series.draw(),this._seriesGroup.append(this._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var n=this._allOptions,t=this._winlossDataSource||this._simpleDataSource,e=this._tooltip;if(0===t.length)return{};var i=this._minMaxIndexes,r=n.valueField,m=t[0][r],D=t[t.length-1][r],A=(0,w.$K)(i.minIndexes[0])?t[i.minIndexes[0]][r]:m,N=(0,w.$K)(i.maxIndexes[0])?t[i.maxIndexes[0]][r]:m,Q=e.formatValue(m),se=e.formatValue(D),we=e.formatValue(A),Re=e.formatValue(N),Ue={firstValue:Q,lastValue:se,minValue:we,maxValue:Re,originalFirstValue:m,originalLastValue:D,originalMinValue:A,originalMaxValue:N,valueText:["Start:",Q,"End:",se,"Min:",we,"Max:",Re]};return"winloss"===n.type&&(Ue.originalThresholdValue=n.winlossThreshold,Ue.thresholdValue=e.formatValue(n.winlossThreshold)),Ue}});Vn(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],function(n){FT.prototype._optionChangesMap[n]="OPTIONS"}),(0,T.Z)("dxSparkline",FT),FT.addPlugin(za);let Ez=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,g.Lz,g.ie,p.Cu],M.KjY,M.Kx,M.vZC,M.bgw,M.YXG,M.FZZ,M.Ois,g.ie]}),n})();var VT=u(5335),{getSwatchContainer:bpe}=k9.Z,wpe=Xh.Z.add;(0,T.Z)("dxSpeedDialAction",class Sz extends ca.Z{_getDefaultOptions(){return(0,y.l)(super._getDefaultOptions(),{icon:"",onClick:null,label:"",visible:!0,index:0,onContentReady:null,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new vh.Z})}_optionChanged(t){switch(t.name){case"onClick":case"icon":case"label":case"visible":case"index":case"onInitializing":(0,VT.NJ)(this);break;case"animation":case"id":break;default:super._optionChanged(t)}}_render(){this._toggleVisibility(!1),bpe(this.$element())?(0,VT.NJ)(this):wpe(()=>(0,VT.NJ)(this))}_dispose(){(0,VT.BM)(this._options.silent("id")),super._dispose()}});let Oz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();const Spe={provide:ne.JU,useExisting:(0,a.Gpc)(()=>Ope),multi:!0};let Ope=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"isValidChange"},{emit:"nameChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"switchedOffTextChange"},{emit:"switchedOnTextChange"},{emit:"tabIndexChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get switchedOffText(){return this._getOption("switchedOffText")}set switchedOffText(e){this._setOption("switchedOffText",e)}get switchedOnText(){return this._getOption("switchedOnText")}set switchedOnText(e){this._setOption("switchedOnText",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new Zie(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-switch"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",isValid:"isValid",name:"name",readOnly:"readOnly",rtlEnabled:"rtlEnabled",switchedOffText:"switchedOffText",switchedOnText:"switchedOnText",tabIndex:"tabIndex",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",visible:"visible",width:"width"},outputs:{onContentReady:"onContentReady",onDisposing:"onDisposing",onInitialized:"onInitialized",onOptionChanged:"onOptionChanged",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",isValidChange:"isValidChange",nameChange:"nameChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",switchedOffTextChange:"switchedOffTextChange",switchedOnTextChange:"switchedOnTextChange",tabIndexChange:"tabIndexChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,Spe,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Dz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})(),Tz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();u(152);let Iz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();const Tpe={provide:ne.JU,useExisting:(0,a.Gpc)(()=>Ipe),multi:!0};let Ipe=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"closed",emit:"onClosed"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"customItemCreating",emit:"onCustomItemCreating"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"itemClick",emit:"onItemClick"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"multiTagPreparing",emit:"onMultiTagPreparing"},{subscribe:"opened",emit:"onOpened"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"selectAllValueChanged",emit:"onSelectAllValueChanged"},{subscribe:"selectionChanged",emit:"onSelectionChanged"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"acceptCustomValueChange"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"applyValueModeChange"},{emit:"buttonsChange"},{emit:"customItemCreateEventChange"},{emit:"dataSourceChange"},{emit:"deferRenderingChange"},{emit:"disabledChange"},{emit:"displayExprChange"},{emit:"dropDownButtonTemplateChange"},{emit:"dropDownOptionsChange"},{emit:"elementAttrChange"},{emit:"fieldTemplateChange"},{emit:"focusStateEnabledChange"},{emit:"groupedChange"},{emit:"groupTemplateChange"},{emit:"heightChange"},{emit:"hideSelectedItemsChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"itemsChange"},{emit:"itemTemplateChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxDisplayedTagsChange"},{emit:"maxFilterQueryLengthChange"},{emit:"maxLengthChange"},{emit:"minSearchLengthChange"},{emit:"multilineChange"},{emit:"nameChange"},{emit:"noDataTextChange"},{emit:"openedChange"},{emit:"openOnFieldClickChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"searchEnabledChange"},{emit:"searchExprChange"},{emit:"searchModeChange"},{emit:"searchTimeoutChange"},{emit:"selectAllModeChange"},{emit:"selectAllTextChange"},{emit:"selectedItemsChange"},{emit:"showClearButtonChange"},{emit:"showDataBeforeSearchChange"},{emit:"showDropDownButtonChange"},{emit:"showMultiTagOnlyChange"},{emit:"showSelectionControlsChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"tagTemplateChange"},{emit:"textChange"},{emit:"useItemTextAsTitleChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"valueExprChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"wrapItemTextChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get acceptCustomValue(){return this._getOption("acceptCustomValue")}set acceptCustomValue(e){this._setOption("acceptCustomValue",e)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get applyValueMode(){return this._getOption("applyValueMode")}set applyValueMode(e){this._setOption("applyValueMode",e)}get buttons(){return this._getOption("buttons")}set buttons(e){this._setOption("buttons",e)}get customItemCreateEvent(){return this._getOption("customItemCreateEvent")}set customItemCreateEvent(e){this._setOption("customItemCreateEvent",e)}get dataSource(){return this._getOption("dataSource")}set dataSource(e){this._setOption("dataSource",e)}get deferRendering(){return this._getOption("deferRendering")}set deferRendering(e){this._setOption("deferRendering",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get displayExpr(){return this._getOption("displayExpr")}set displayExpr(e){this._setOption("displayExpr",e)}get dropDownButtonTemplate(){return this._getOption("dropDownButtonTemplate")}set dropDownButtonTemplate(e){this._setOption("dropDownButtonTemplate",e)}get dropDownOptions(){return this._getOption("dropDownOptions")}set dropDownOptions(e){this._setOption("dropDownOptions",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get fieldTemplate(){return this._getOption("fieldTemplate")}set fieldTemplate(e){this._setOption("fieldTemplate",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get grouped(){return this._getOption("grouped")}set grouped(e){this._setOption("grouped",e)}get groupTemplate(){return this._getOption("groupTemplate")}set groupTemplate(e){this._setOption("groupTemplate",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hideSelectedItems(){return this._getOption("hideSelectedItems")}set hideSelectedItems(e){this._setOption("hideSelectedItems",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get items(){return this._getOption("items")}set items(e){this._setOption("items",e)}get itemTemplate(){return this._getOption("itemTemplate")}set itemTemplate(e){this._setOption("itemTemplate",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxDisplayedTags(){return this._getOption("maxDisplayedTags")}set maxDisplayedTags(e){this._setOption("maxDisplayedTags",e)}get maxFilterQueryLength(){return this._getOption("maxFilterQueryLength")}set maxFilterQueryLength(e){this._setOption("maxFilterQueryLength",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minSearchLength(){return this._getOption("minSearchLength")}set minSearchLength(e){this._setOption("minSearchLength",e)}get multiline(){return this._getOption("multiline")}set multiline(e){this._setOption("multiline",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get noDataText(){return this._getOption("noDataText")}set noDataText(e){this._setOption("noDataText",e)}get opened(){return this._getOption("opened")}set opened(e){this._setOption("opened",e)}get openOnFieldClick(){return this._getOption("openOnFieldClick")}set openOnFieldClick(e){this._setOption("openOnFieldClick",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get searchEnabled(){return this._getOption("searchEnabled")}set searchEnabled(e){this._setOption("searchEnabled",e)}get searchExpr(){return this._getOption("searchExpr")}set searchExpr(e){this._setOption("searchExpr",e)}get searchMode(){return this._getOption("searchMode")}set searchMode(e){this._setOption("searchMode",e)}get searchTimeout(){return this._getOption("searchTimeout")}set searchTimeout(e){this._setOption("searchTimeout",e)}get selectAllMode(){return this._getOption("selectAllMode")}set selectAllMode(e){this._setOption("selectAllMode",e)}get selectAllText(){return this._getOption("selectAllText")}set selectAllText(e){this._setOption("selectAllText",e)}get selectedItems(){return this._getOption("selectedItems")}set selectedItems(e){this._setOption("selectedItems",e)}get showClearButton(){return this._getOption("showClearButton")}set showClearButton(e){this._setOption("showClearButton",e)}get showDataBeforeSearch(){return this._getOption("showDataBeforeSearch")}set showDataBeforeSearch(e){this._setOption("showDataBeforeSearch",e)}get showDropDownButton(){return this._getOption("showDropDownButton")}set showDropDownButton(e){this._setOption("showDropDownButton",e)}get showMultiTagOnly(){return this._getOption("showMultiTagOnly")}set showMultiTagOnly(e){this._setOption("showMultiTagOnly",e)}get showSelectionControls(){return this._getOption("showSelectionControls")}set showSelectionControls(e){this._setOption("showSelectionControls",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get tagTemplate(){return this._getOption("tagTemplate")}set tagTemplate(e){this._setOption("tagTemplate",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get useItemTextAsTitle(){return this._getOption("useItemTextAsTitle")}set useItemTextAsTitle(e){this._setOption("useItemTextAsTitle",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get valueExpr(){return this._getOption("valueExpr")}set valueExpr(e){this._setOption("valueExpr",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}get wrapItemText(){return this._getOption("wrapItemText")}set wrapItemText(e){this._setOption("wrapItemText",e)}change(e){}get buttonsChildren(){return this._getOption("buttons")}set buttonsChildren(e){this.setChildren("buttons",e)}get itemsChildren(){return this._getOption("items")}set itemsChildren(e){this.setChildren("items",e)}_createInstance(e,i){return new M$(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("buttons",e),this.setupChanges("dataSource",e),this.setupChanges("items",e),this.setupChanges("searchExpr",e),this.setupChanges("selectedItems",e),this.setupChanges("validationErrors",e),this.setupChanges("value",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("buttons"),this._idh.doCheck("dataSource"),this._idh.doCheck("items"),this._idh.doCheck("searchExpr"),this._idh.doCheck("selectedItems"),this._idh.doCheck("validationErrors"),this._idh.doCheck("value"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-tag-box"]],contentQueries:function(e,i,r){if(1&e&&(a.Suo(r,M.k4o,4),a.Suo(r,M.ZT3,4)),2&e){let m;a.iGM(m=a.CRH())&&(i.buttonsChildren=m),a.iGM(m=a.CRH())&&(i.itemsChildren=m)}},hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{acceptCustomValue:"acceptCustomValue",accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",applyValueMode:"applyValueMode",buttons:"buttons",customItemCreateEvent:"customItemCreateEvent",dataSource:"dataSource",deferRendering:"deferRendering",disabled:"disabled",displayExpr:"displayExpr",dropDownButtonTemplate:"dropDownButtonTemplate",dropDownOptions:"dropDownOptions",elementAttr:"elementAttr",fieldTemplate:"fieldTemplate",focusStateEnabled:"focusStateEnabled",grouped:"grouped",groupTemplate:"groupTemplate",height:"height",hideSelectedItems:"hideSelectedItems",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",items:"items",itemTemplate:"itemTemplate",label:"label",labelMode:"labelMode",maxDisplayedTags:"maxDisplayedTags",maxFilterQueryLength:"maxFilterQueryLength",maxLength:"maxLength",minSearchLength:"minSearchLength",multiline:"multiline",name:"name",noDataText:"noDataText",opened:"opened",openOnFieldClick:"openOnFieldClick",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",searchEnabled:"searchEnabled",searchExpr:"searchExpr",searchMode:"searchMode",searchTimeout:"searchTimeout",selectAllMode:"selectAllMode",selectAllText:"selectAllText",selectedItems:"selectedItems",showClearButton:"showClearButton",showDataBeforeSearch:"showDataBeforeSearch",showDropDownButton:"showDropDownButton",showMultiTagOnly:"showMultiTagOnly",showSelectionControls:"showSelectionControls",stylingMode:"stylingMode",tabIndex:"tabIndex",tagTemplate:"tagTemplate",text:"text",useItemTextAsTitle:"useItemTextAsTitle",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",valueExpr:"valueExpr",visible:"visible",width:"width",wrapItemText:"wrapItemText"},outputs:{onChange:"onChange",onClosed:"onClosed",onContentReady:"onContentReady",onCustomItemCreating:"onCustomItemCreating",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onItemClick:"onItemClick",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onMultiTagPreparing:"onMultiTagPreparing",onOpened:"onOpened",onOptionChanged:"onOptionChanged",onSelectAllValueChanged:"onSelectAllValueChanged",onSelectionChanged:"onSelectionChanged",onValueChanged:"onValueChanged",acceptCustomValueChange:"acceptCustomValueChange",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",applyValueModeChange:"applyValueModeChange",buttonsChange:"buttonsChange",customItemCreateEventChange:"customItemCreateEventChange",dataSourceChange:"dataSourceChange",deferRenderingChange:"deferRenderingChange",disabledChange:"disabledChange",displayExprChange:"displayExprChange",dropDownButtonTemplateChange:"dropDownButtonTemplateChange",dropDownOptionsChange:"dropDownOptionsChange",elementAttrChange:"elementAttrChange",fieldTemplateChange:"fieldTemplateChange",focusStateEnabledChange:"focusStateEnabledChange",groupedChange:"groupedChange",groupTemplateChange:"groupTemplateChange",heightChange:"heightChange",hideSelectedItemsChange:"hideSelectedItemsChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",itemsChange:"itemsChange",itemTemplateChange:"itemTemplateChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxDisplayedTagsChange:"maxDisplayedTagsChange",maxFilterQueryLengthChange:"maxFilterQueryLengthChange",maxLengthChange:"maxLengthChange",minSearchLengthChange:"minSearchLengthChange",multilineChange:"multilineChange",nameChange:"nameChange",noDataTextChange:"noDataTextChange",openedChange:"openedChange",openOnFieldClickChange:"openOnFieldClickChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",searchEnabledChange:"searchEnabledChange",searchExprChange:"searchExprChange",searchModeChange:"searchModeChange",searchTimeoutChange:"searchTimeoutChange",selectAllModeChange:"selectAllModeChange",selectAllTextChange:"selectAllTextChange",selectedItemsChange:"selectedItemsChange",showClearButtonChange:"showClearButtonChange",showDataBeforeSearchChange:"showDataBeforeSearchChange",showDropDownButtonChange:"showDropDownButtonChange",showMultiTagOnlyChange:"showMultiTagOnlyChange",showSelectionControlsChange:"showSelectionControlsChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",tagTemplateChange:"tagTemplateChange",textChange:"textChange",useItemTextAsTitleChange:"useItemTextAsTitleChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",valueExprChange:"valueExprChange",visibleChange:"visibleChange",widthChange:"widthChange",wrapItemTextChange:"wrapItemTextChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,Tpe,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Mz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.Lz,g.ie,p.Cu],M.idP,M.UxI,M.ggs,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.Q8p,g.ie]}),n})();const Mpe={provide:ne.JU,useExisting:(0,a.Gpc)(()=>Ape),multi:!0};let Ape=(()=>{class n extends g.Ay{constructor(e,i,r,m,D,A,N,Q){super(e,i,r,m,N,Q),this._watcherHelper=m,this._idh=D,this.touched=se=>{},this._createEventEmitters([{subscribe:"change",emit:"onChange"},{subscribe:"contentReady",emit:"onContentReady"},{subscribe:"copy",emit:"onCopy"},{subscribe:"cut",emit:"onCut"},{subscribe:"disposing",emit:"onDisposing"},{subscribe:"enterKey",emit:"onEnterKey"},{subscribe:"focusIn",emit:"onFocusIn"},{subscribe:"focusOut",emit:"onFocusOut"},{subscribe:"initialized",emit:"onInitialized"},{subscribe:"input",emit:"onInput"},{subscribe:"keyDown",emit:"onKeyDown"},{subscribe:"keyUp",emit:"onKeyUp"},{subscribe:"optionChanged",emit:"onOptionChanged"},{subscribe:"paste",emit:"onPaste"},{subscribe:"valueChanged",emit:"onValueChanged"},{emit:"accessKeyChange"},{emit:"activeStateEnabledChange"},{emit:"autoResizeEnabledChange"},{emit:"disabledChange"},{emit:"elementAttrChange"},{emit:"focusStateEnabledChange"},{emit:"heightChange"},{emit:"hintChange"},{emit:"hoverStateEnabledChange"},{emit:"inputAttrChange"},{emit:"isValidChange"},{emit:"labelChange"},{emit:"labelModeChange"},{emit:"maxHeightChange"},{emit:"maxLengthChange"},{emit:"minHeightChange"},{emit:"nameChange"},{emit:"placeholderChange"},{emit:"readOnlyChange"},{emit:"rtlEnabledChange"},{emit:"spellcheckChange"},{emit:"stylingModeChange"},{emit:"tabIndexChange"},{emit:"textChange"},{emit:"validationErrorChange"},{emit:"validationErrorsChange"},{emit:"validationMessageModeChange"},{emit:"validationMessagePositionChange"},{emit:"validationStatusChange"},{emit:"valueChange"},{emit:"valueChangeEventChange"},{emit:"visibleChange"},{emit:"widthChange"},{emit:"onBlur"}]),this._idh.setHost(this),A.setHost(this)}get accessKey(){return this._getOption("accessKey")}set accessKey(e){this._setOption("accessKey",e)}get activeStateEnabled(){return this._getOption("activeStateEnabled")}set activeStateEnabled(e){this._setOption("activeStateEnabled",e)}get autoResizeEnabled(){return this._getOption("autoResizeEnabled")}set autoResizeEnabled(e){this._setOption("autoResizeEnabled",e)}get disabled(){return this._getOption("disabled")}set disabled(e){this._setOption("disabled",e)}get elementAttr(){return this._getOption("elementAttr")}set elementAttr(e){this._setOption("elementAttr",e)}get focusStateEnabled(){return this._getOption("focusStateEnabled")}set focusStateEnabled(e){this._setOption("focusStateEnabled",e)}get height(){return this._getOption("height")}set height(e){this._setOption("height",e)}get hint(){return this._getOption("hint")}set hint(e){this._setOption("hint",e)}get hoverStateEnabled(){return this._getOption("hoverStateEnabled")}set hoverStateEnabled(e){this._setOption("hoverStateEnabled",e)}get inputAttr(){return this._getOption("inputAttr")}set inputAttr(e){this._setOption("inputAttr",e)}get isValid(){return this._getOption("isValid")}set isValid(e){this._setOption("isValid",e)}get label(){return this._getOption("label")}set label(e){this._setOption("label",e)}get labelMode(){return this._getOption("labelMode")}set labelMode(e){this._setOption("labelMode",e)}get maxHeight(){return this._getOption("maxHeight")}set maxHeight(e){this._setOption("maxHeight",e)}get maxLength(){return this._getOption("maxLength")}set maxLength(e){this._setOption("maxLength",e)}get minHeight(){return this._getOption("minHeight")}set minHeight(e){this._setOption("minHeight",e)}get name(){return this._getOption("name")}set name(e){this._setOption("name",e)}get placeholder(){return this._getOption("placeholder")}set placeholder(e){this._setOption("placeholder",e)}get readOnly(){return this._getOption("readOnly")}set readOnly(e){this._setOption("readOnly",e)}get rtlEnabled(){return this._getOption("rtlEnabled")}set rtlEnabled(e){this._setOption("rtlEnabled",e)}get spellcheck(){return this._getOption("spellcheck")}set spellcheck(e){this._setOption("spellcheck",e)}get stylingMode(){return this._getOption("stylingMode")}set stylingMode(e){this._setOption("stylingMode",e)}get tabIndex(){return this._getOption("tabIndex")}set tabIndex(e){this._setOption("tabIndex",e)}get text(){return this._getOption("text")}set text(e){this._setOption("text",e)}get validationError(){return this._getOption("validationError")}set validationError(e){this._setOption("validationError",e)}get validationErrors(){return this._getOption("validationErrors")}set validationErrors(e){this._setOption("validationErrors",e)}get validationMessageMode(){return this._getOption("validationMessageMode")}set validationMessageMode(e){this._setOption("validationMessageMode",e)}get validationMessagePosition(){return this._getOption("validationMessagePosition")}set validationMessagePosition(e){this._setOption("validationMessagePosition",e)}get validationStatus(){return this._getOption("validationStatus")}set validationStatus(e){this._setOption("validationStatus",e)}get value(){return this._getOption("value")}set value(e){this._setOption("value",e)}get valueChangeEvent(){return this._getOption("valueChangeEvent")}set valueChangeEvent(e){this._setOption("valueChangeEvent",e)}get visible(){return this._getOption("visible")}set visible(e){this._setOption("visible",e)}get width(){return this._getOption("width")}set width(e){this._setOption("width",e)}change(e){}_createInstance(e,i){return new Fie(e,i)}writeValue(e){this.eventHelper.lockedValueChangeEvent=!0,this.value=e,this.eventHelper.lockedValueChangeEvent=!1}setDisabledState(e){this.disabled=e}registerOnChange(e){this.change=e}registerOnTouched(e){this.touched=e}_createWidget(e){super._createWidget(e),this.instance.on("focusOut",i=>{this.eventHelper.fireNgEvent("onBlur",[i])})}ngOnDestroy(){this._destroyWidget()}ngOnChanges(e){super.ngOnChanges(e),this.setupChanges("validationErrors",e)}setupChanges(e,i){e in this._optionsToUpdate||this._idh.setup(e,i)}ngDoCheck(){this._idh.doCheck("validationErrors"),this._watcherHelper.checkWatchers(),super.ngDoCheck(),super.clearChangedOptions()}_setOption(e,i){let r=this._idh.setupSingle(e,i),m=null!==this._idh.getChanges(e,i);(r||m)&&super._setOption(e,i)}}return n.\u0275fac=function(e){return new(e||n)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(g._5),a.Y36(g._h),a.Y36(g.i9),a.Y36(g.al),a.Y36(p.ki),a.Y36(a.Lbi))},n.\u0275cmp=a.Xpm({type:n,selectors:[["dx-text-area"]],hostBindings:function(e,i){1&e&&a.NdJ("valueChange",function(m){return i.change(m)})("onBlur",function(m){return i.touched(m)})},inputs:{accessKey:"accessKey",activeStateEnabled:"activeStateEnabled",autoResizeEnabled:"autoResizeEnabled",disabled:"disabled",elementAttr:"elementAttr",focusStateEnabled:"focusStateEnabled",height:"height",hint:"hint",hoverStateEnabled:"hoverStateEnabled",inputAttr:"inputAttr",isValid:"isValid",label:"label",labelMode:"labelMode",maxHeight:"maxHeight",maxLength:"maxLength",minHeight:"minHeight",name:"name",placeholder:"placeholder",readOnly:"readOnly",rtlEnabled:"rtlEnabled",spellcheck:"spellcheck",stylingMode:"stylingMode",tabIndex:"tabIndex",text:"text",validationError:"validationError",validationErrors:"validationErrors",validationMessageMode:"validationMessageMode",validationMessagePosition:"validationMessagePosition",validationStatus:"validationStatus",value:"value",valueChangeEvent:"valueChangeEvent",visible:"visible",width:"width"},outputs:{onChange:"onChange",onContentReady:"onContentReady",onCopy:"onCopy",onCut:"onCut",onDisposing:"onDisposing",onEnterKey:"onEnterKey",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onInitialized:"onInitialized",onInput:"onInput",onKeyDown:"onKeyDown",onKeyUp:"onKeyUp",onOptionChanged:"onOptionChanged",onPaste:"onPaste",onValueChanged:"onValueChanged",accessKeyChange:"accessKeyChange",activeStateEnabledChange:"activeStateEnabledChange",autoResizeEnabledChange:"autoResizeEnabledChange",disabledChange:"disabledChange",elementAttrChange:"elementAttrChange",focusStateEnabledChange:"focusStateEnabledChange",heightChange:"heightChange",hintChange:"hintChange",hoverStateEnabledChange:"hoverStateEnabledChange",inputAttrChange:"inputAttrChange",isValidChange:"isValidChange",labelChange:"labelChange",labelModeChange:"labelModeChange",maxHeightChange:"maxHeightChange",maxLengthChange:"maxLengthChange",minHeightChange:"minHeightChange",nameChange:"nameChange",placeholderChange:"placeholderChange",readOnlyChange:"readOnlyChange",rtlEnabledChange:"rtlEnabledChange",spellcheckChange:"spellcheckChange",stylingModeChange:"stylingModeChange",tabIndexChange:"tabIndexChange",textChange:"textChange",validationErrorChange:"validationErrorChange",validationErrorsChange:"validationErrorsChange",validationMessageModeChange:"validationMessageModeChange",validationMessagePositionChange:"validationMessagePositionChange",validationStatusChange:"validationStatusChange",valueChange:"valueChange",valueChangeEventChange:"valueChangeEventChange",visibleChange:"visibleChange",widthChange:"widthChange",onBlur:"onBlur"},features:[a._Bn([g._5,g._h,Mpe,g.al,g.i9]),a.qOj,a.TTD],decls:0,vars:0,template:function(e,i){},encapsulation:2}),n})(),Az=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();var Pz=u(6812),kz="dx-tile",Bpe={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},Rz=kb.Z.inherit({_activeStateUnit:"."+kz,_getDefaultOptions:function(){return(0,y.l)(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:"never",height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return U0.nativeScrolling},options:{showScrollbar:"onScroll"}}])},_itemClass:function(){return kz},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(n){var t=this._scrollView;!t||!t.startLoading||(n&&this.option("indicateLoading")?t.startLoading():t.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){var{width:n,height:t,direction:e,showScrollbar:i}=this.option();this._scrollView=this._createComponent(this.$element(),Ef.Z,{direction:e,width:n,height:t,scrollByContent:!0,useKeyboard:!1,showScrollbar:i}),this._$container=(0,l.Z)(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),(0,E.g0)(function(){this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()}.bind(this))},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=Bpe[this.option("direction")];var r,n=this.option("items")||[],t=this._config,e=this.option("itemMargin"),i=Math.max.apply(Math,(0,O.UI)(n||[],function(m){return Math.round(m[t.itemCrossRatio]||1)}));r=mi.Ym?("width"===t.crossDimension?s.dz:s.Cr)(this.$element()):parseInt(this.$element().get(0).style[t.crossDimension]),this._cellsPerDimension=Math.floor(r/(this.option(t.baseItemCrossDimension)+e)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(n),this._renderContentSize(t,e)},_renderContentSize:function(n,t){var{mainDimension:e,baseItemMainDimension:i}=n;if((0,mi.Ym)()){var r=this._cells.length*this.option(i)+(this._cells.length+1)*t,m=("width"===e?s.dz:s.Cr)(this.$element());("width"===e?s.cl:s.QQ)(this._$container,Math.max(r,m))}},_arrangeItems:function(n){var t=this._config,e=t.itemMainRatio,i=t.itemCrossRatio,r=t.mainPosition;this._itemsPositions=[],(0,O.S6)(n,function(m,D){var A={};A[e]=D[e]||1,A[i]=D[i]||1,A.index=m,A[e]=A[e]<=0?0:Math.round(A[t.itemMainRatio]),A[i]=A[i]<=0?0:Math.round(A[t.itemCrossRatio]);var N=this._getItemPosition(A);-1===N[r]&&(N[r]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(A,N),this._arrangeItem(A,N),this._itemsPositions.push(N)}.bind(this))},_getItemPosition:function(n){var t=this._config,e=t.mainPosition,i=t.crossPosition,r={};r[e]=-1,r[i]=0;for(var m=0;m<this._cells.length;m++){for(var D=0;D<this._cellsPerDimension;D++)if(this._itemFit(m,D,n)){r[e]=m,r[i]=D;break}if(r[e]>-1)break}return r},_itemFit:function(n,t,e){var i=!0,r=this._config,m=e[r.itemMainRatio],D=e[r.itemCrossRatio];if(t+D>this._cellsPerDimension)return!1;for(var A=n;A<n+m;A++)for(var N=t;N<t+D;N++)if(this._cells.length-1<A)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[A][N]){i=!1;break}return i},_occupyCells:function(n,t){for(var e=this._config,i=t[e.mainPosition],r=t[e.crossPosition],m=n[e.itemMainRatio],D=n[e.itemCrossRatio],A=i;A<i+m;A++)for(var N=r;N<r+D;N++)this._cells[A][N]=n.index},_arrangeItem:function(n,t){var e=this._config,i=t[e.mainPosition],r=t[e.crossPosition],m=n[e.itemMainRatio],D=n[e.itemCrossRatio],A=this.option(e.baseItemCrossDimension),N=this.option(e.baseItemMainDimension),Q=this.option("itemMargin"),se={display:m<=0||D<=0?"none":""},we=m*N+(m-1)*Q,Re=D*A+(D-1)*Q;if(se[e.mainDimension]=we<0?0:we,se[e.crossDimension]=Re<0?0:Re,se[e.mainPosition]=i*N+(i+1)*Q,se[e.crossPosition]=r*A+(r+1)*Q,this.option("rtlEnabled")){var Ue=(0,s.dz)(this._$container),st=this.option("baseItemWidth"),Ot=t.left;se.left=Ue-(Ot*st+(st+Q)*n.widthRatio+Ot*Q)}this._itemElements().eq(n.index).css(se)},_moveFocus:function(n){var t="up",e="down",i=this.option("rtlEnabled")?"right":"left",r=this.option("rtlEnabled")?"left":"right",m="pageup",D="pagedown",A="horizontal"===this.option("direction"),N=this._cells,Q=(0,l.Z)(this.option("focusedElement")).index(),se=this._itemsPositions[Q].left,we=this._itemsPositions[Q].top,Re=(A?N:N[0]).length,Ue=(A?N[0]:N).length,st=function(sn,wn){return A?N[sn][wn]:N[wn][sn]};switch(n){case m:case t:for(;we>0&&Q===st(se,we);)we--;we<0&&(we=0);break;case D:case e:for(;we<Ue&&Q===st(se,we);)we++;we===Ue&&(we=Ue-1);break;case r:for(;se<Re&&Q===st(se,we);)se++;se===Re&&(se=Re-1);break;case i:for(;se>=0&&Q===st(se,we);)se--;se<0&&(se=0);break;default:return void this.callBase.apply(this,arguments)}var Ot=st(se,we);if((0,w.$K)(Ot)){var Kt=this._itemElements().eq(Ot);this.option("focusedElement",(0,S.u)(Kt)),this._scrollToItem(Kt)}},_scrollToItem:function(n){if(n.length){var t=this._config,e="width"===t.mainDimension?s.Y_:s.zp,i=this.option("itemMargin"),r=n.position()[t.mainPosition],m=e(n),D=r+m,A=this.scrollPosition(),N=e(this.$element());A<=r&&D<=A+N||this._scrollView.scrollTo(A>r?r-i:r+m-N+i)}},_optionChanged:function(n){switch(n.name){case"items":this.callBase(n),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",n.value),this.callBase(n);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(n),this._renderGeometry(),this._scrollView.option(n.name,n.value),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(n)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});(0,T.Z)("dxTileView",Rz);let Lz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();u(4131);let Bz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,g.Lz,g.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,g.ie]}),n})(),Fz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})(),Vz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,g.Lz,g.ie,p.Cu],M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.nT1,M.Fkd,g.ie]}),n})(),Nz=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Uz5,M.LNK,M.mtS,M.tRk,M.idP,M.HaS,M.CxW,M.FZZ,M.Inm,M.e1H,M.$D5,M.SCM,M.DTR,M.ZCX,M.Oll,M.Q8p,M.Jiy,M._9O,M.kSd,M.fOF,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.SH1,M.FJZ,M.RbS,M.$wd,M.xHg,M.p6x,M.vLN,M.rH1,M.lUW,M.$9q,M.nD3,M.Upd,M.WSE,M.LHj,M._PP,M.ywL,M.WyY,M.$YR,M.kEo,M.uKt,M.YOZ,M.azD,g.Lz,g.ie,p.Cu],M.Uz5,M.LNK,M.mtS,M.tRk,M.idP,M.HaS,M.CxW,M.FZZ,M.Inm,M.e1H,M.$D5,M.SCM,M.DTR,M.ZCX,M.Oll,M.Q8p,M.Jiy,M._9O,M.kSd,M.fOF,M.IOm,M.kOw,M.weU,M.D_l,M.JxK,M.zZW,M.ynY,M.lgR,M.sni,M.waX,M.pxS,M.pGy,M.SH1,M.FJZ,M.RbS,M.$wd,M.xHg,M.p6x,M.vLN,M.rH1,M.lUW,M.$9q,M.nD3,M.Upd,M.WSE,M.LHj,M._PP,M.ywL,M.WyY,M.$YR,M.kEo,M.uKt,M.YOZ,M.azD,g.ie]}),n})();function ER(n){var t=n.border||{};return{fill:n.color,opacity:n.opacity,stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,hatching:n.hatching}}function Hz(n,t){return{attr:{filter:t},css:ci(n.font)}}function zz(){}var Hpe=[function zpe(n,t){n.smartAttr(t)},function Wpe(n,t){n.outer.attr({stroke:t.stroke,"stroke-width":t["stroke-width"],"stroke-opacity":t["stroke-opacity"]}),n.inner.smartAttr({fill:t.fill,opacity:t.opacity,hatching:t.hatching})}];(0,y.l)(zz.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var n=this.ctx;return this.level>=n.minLevel&&this.level<=n.maxLevel},updateStyles:function(){var n=Number(this.isNode());this.state=this._buildState(this.ctx.settings[n].state,!n&&this.color&&{fill:this.color})},_buildState:function(n,t){var e=(0,y.l)({},n);return t?(0,y.l)(e,t):e},updateLabelStyle:function(){var n=this.ctx.settings[Number(this.isNode())];this.labelState=n.labelState,this.labelParams=n.labelParams},_getState:function(){return this.state},applyState:function(){Hpe[Number(this.isNode())](this.tile,this._getState())}});const Ry=zz;var Wz,Upe=Math.round,SR={};function Uz(n){return SR[En(n)]||(0,w.mf)(n)&&n||Wz}function NT(n,t){SR[n]=t}var HT={"-1":[2,0],1:[0,2]},Zz=function(n){return n[2]-n[0]<n[3]-n[1]?0:1};function Kz(n,t,e){var i=void 0!==e?e:Zz(n),r=1-i,m=t[i],D=t[r],A=HT[m],N=HT[D];return{staticSide:n[2+i]-n[i],variedSide:n[2+r]-n[r],static1:i+A[0],static2:i+A[1],varied1:r+N[0],varied2:r+N[1],staticDir:m,variedDir:D}}function Gz(n,t,e,i,r){var m,D,st,Ot,A=[0,0,0,0],N=i.static1,Q=i.static2,se=e[N],we=i.staticDir,Re=i.staticSide,Ue=r.sum;for(A[i.varied1]=e[i.varied1],A[i.varied2]=e[i.varied1]+i.variedDir*r.side,m=t,D=t+r.count;m<D;++m)(st=A.slice())[N]=se,Ot=Upe(Re*n[m].value/Ue)||0,Ue-=n[m].value,Re-=Ot,st[Q]=se+=we*Ot,n[m].rect=st;e[i.varied1]=A[i.varied2]}var jz,OR={};function Kpe(n){return function(t){return t.isNode()?void 0:n(t)}}function Gpe(n){return function(t){var e=!t.isNode()&&t.parent;return e?e._groupColor=e._groupColor||n(e):void 0}}function DR(n,t){OR[n]=t}function Ype(n){return n.value}function $z(n){return n.colorCodeField?function Xpe(n){return function(t){return Number(t.data[n])}}(n.colorCodeField):Ype}var qpe=Math.max,Jpe=Math.round;function Qpe(n,t){return t.value-n.value}function ege(n){return qpe(n,1/n)}function ige(n,t,e){var i=Kz(e.rect,e.directions,e.staticSideIndex),r=function nge(n){return(n[2]-n[0])*(n[3]-n[1])}(e.rect),m=r>0?function tge(n,t,e){var r,D,A,N,we,i=1/0,m=0,Q=n.length,se=e.areaToValue/e.staticSide;for(A=t;A<Q;){for(we=e.staticSide/se/(D=m+n[A].value),r=0,N=t;N<=A;++N)r=e.accumulate(r,ege(we*n[N].value/D),N-t+1);if(!(r<i))break;i=r,m=D,++A}return{sum:m,count:A-t,side:Jpe(se*m)}}(n,t,{areaToValue:r/e.sum,accumulate:e.accumulate,staticSide:i.staticSide}):{sum:1,side:i.variedSide,count:n.length-t};return Gz(n,t,e.rect,i,m),e.sum-=m.sum,t+m.count}function Yz(n,t,e){var m,i=n.items,r=i.length,D={sum:n.sum,rect:n.rect,directions:n.directions,accumulate:t};for(e&&(D.staticSideIndex=Zz(D.rect)),i.sort(Qpe),m=0;m<r;)m=ige(i,m,D)}var rge=Math.max;function oge(n,t){return rge(n,t)}function Xz(n){var e,m,t=n.nodes.slice(),i=t.length,r=0;for(e=0;e<i;++e)(m=t[e]).isNode()?r=Math.max(r,Xz(m)):r+=1;return r}function lge(n){var t=n.generateColors();return function(e){return t[e.index]}}function qz(n){var e,m,t=n.nodes.slice(),i=t.length,r=0;for(e=0;e<i;++e)(m=t[e]).isNode()&&(r+=qz(m)+1);return r}function dge(n,t){var e=function uge(n,t){var r,D,e={},i=t.nodes.slice(),m=i.length;for(r=0;r<m;++r)(D=i[r]).isNode()?m=(i=i.concat(D.nodes)).length:e[D.parent._id]||(e[D.parent._id]=n.getNextColor());return e}(n,t);return function(i){return e[i._id]}}NT("squarified",function age(n){return Yz(n,oge,!1)}),DR("discrete",function sge(n,t,e){var i=t.createPalette(n.palette,{useHighlight:!0,extensionMode:n.paletteExtensionMode,count:n.colorizeGroups?qz(e):Xz(e)});return(n.colorizeGroups?dge:lge)(i,e)});var Jz=Math.max,Qz={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};function i_(n){return n>0?Math.round(n):0}(function Zpe(n){Wz=SR[n]})("squarified"),function $pe(n){jz=n}("discrete");var TR=xl.inherit({_handlers:{beginBuildNodes:E.ZT,buildNode:E.ZT,endBuildNodes:E.ZT,setTrackerData:E.ZT,calculateState:function(n){return ER(n)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var n=this;n._rectOffsets={},n._handlers=Object.create(n._handlers),n._context={suspend:function(){n._applyingChanges||n._suspendChanges()},resume:function(){n._applyingChanges||n._resumeChanges()},change:function(t){n._change(t)},settings:[{},{}],calculateState:n._handlers.calculateState,calculateLabelState:Hz},n._root=n._topNode={nodes:[]},n.callBase.apply(n,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var n=this._renderer;this._createProxyType(),this._tilesGroup=n.g().linkOn(n.root,"tiles").linkAppend(),this._labelsGroup=n.g().linkOn(n.root,"labels").linkAppend()},_createProxyType:E.ZT,_disposeCore:function(){this._filter&&this._filter.dispose(),this._labelsGroup.linkOff(),this._tilesGroup.linkOff()},_applySize:function(n){this._tilingRect=n.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){this._isDataExpected=this._isSyncData=!0,this._updateDataSource(),this._isSyncData=!1,this._isDataExpected&&this._suspendChanges()},_dataSourceChangedHandler:function(){this._isDataExpected?(this._isDataExpected=!1,this._change(["NODES_CREATE"]),this._isSyncData||this._resumeChanges()):this._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var n=this;n.callBase.apply(n,arguments),n._isDataExpected||n._drawn(),n._context.forceReset=!1},_buildNodes:function(){var n=this._root=this._topNode=new Ry;n._id=0,n.parent={},n.data={},n.level=n.index=-1,n.ctx=this._context,n.label=null,this._nodes=[n],this._handlers.beginBuildNodes();var t=this._processDataSourceItems(this._dataSourceItems()||[]);e3(n,t.items,0,{itemsField:!t.isPlain&&this._getOption("childrenField",!0)||"items",valueField:this._getOption("valueField",!0)||"value",buildNode:this._handlers.buildNode,ctx:this._context,nodes:this._nodes}),this._onNodesCreated(),this._handlers.endBuildNodes(),this._change(["NODES_RESET"])},_onNodesCreated:E.ZT,_processDataSourceItems:function(n){return{items:n,isPlain:!1}},_changeTileSettings:function(){var n=this._getOption("tile"),t=this._rectOffsets,e=i_(n.border.width),i=e/2,r=1&e?.5:0,m=n.label,D=this._context.settings[0];this._change(["TILES","LABELS"]),D.state=this._handlers.calculateState(n),this._filter=this._filter||this._renderer.shadowFilter("-50%","-50%","200%","200%"),this._filter.attr(m.shadow),this._calculateLabelSettings(D,m,this._filter.id),(t.tileEdge!==i||t.tileInner!==r)&&(t.tileEdge=i,t.tileInner=r,this._change(["TILING"]))},_changeGroupSettings:function(){var D,n=this._getOption("group"),t=n.label,e=this._rectOffsets,i=i_(n.border.width),r=i/2,m=1&i?.5:0,A=i_(n.padding),N=this._context.settings[1];this._change(["TILES","LABELS"]),N.state=this._handlers.calculateState(n),this._calculateLabelSettings(N,t),D=n.headerHeight>=0?i_(n.headerHeight):N.labelParams.height+2*i_(t.paddingTopBottom),this._headerHeight!==D&&(this._headerHeight=D,this._change(["TILING"])),this._groupPadding!==A&&(this._groupPadding=A,this._change(["TILING"])),(e.headerEdge!==r||e.headerInner!==m)&&(e.headerEdge=r,e.headerInner=m,this._change(["TILING"]))},_calculateLabelSettings:function(n,t,e){var i=this._getTextBBox(t.font),r=i_(t.paddingLeftRight),m=i_(t.paddingTopBottom),D=this._getOption("tile.label"),A=this._getOption("group.label");n.labelState=Hz(t,e),n.labelState.visible=!("visible"in t)||!!t.visible,n.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:m,paddingLeftRight:r,tileLabelWordWrap:D.wordWrap,tileLabelOverflow:D.textOverflow,groupLabelOverflow:A.textOverflow}},_changeMaxDepth:function(){var n=this._getOption("maxDepth",!0);n=n>=1?Math.round(n):1/0,this._maxDepth!==n&&(this._maxDepth=n,this._change(["NODES_RESET"]))},_resetNodes:function(){this._tilesGroup.clear(),this._renderer.initHatching(),this._context.forceReset=!0,this._context.minLevel=this._topNode.level+1,this._context.maxLevel=this._context.minLevel+this._maxDepth-1,this._change(["TILES","LABELS","TILING"])},_processNodes:function(n,t){t3(n,this._topNode,t)},_applyTilesAppearance:function(){var n=function jpe(n,t,e){var i=En(n.type||jz),r=OR[i]&&OR[i](n,t,e);return r?(n.colorizeGroups?Gpe:Kpe)(r):E.ZT}(this._getOption("colorizer"),this._themeManager,this._topNode);this._processNodes({renderer:this._renderer,group:this._tilesGroup,setTrackerData:this._handlers.setTrackerData,colorField:this._getOption("colorField",!0)||"color",getColor:n},hge)},_applyLabelsAppearance:function(){this._labelsGroup.clear(),this._processNodes({renderer:this._renderer,group:this._labelsGroup,setTrackerData:this._handlers.setTrackerData,labelField:this._getOption("labelField",!0)||"name"},fge),this._change(["LABELS_LAYOUT"])},_performTiling:function(){var n={algorithm:Uz(this._getOption("layoutAlgorithm",!0)),directions:Qz[String(this._getOption("layoutDirection",!0)).toLowerCase()]||Qz.lefttoprightbottom,headerHeight:this._headerHeight,groupPadding:this._groupPadding,rectOffsets:this._rectOffsets};this._topNode.innerRect=this._tilingRect,n3(n,this._topNode),this._processNodes(n,vge),this._change(["LABELS_LAYOUT"]),this._onTilingPerformed()},_onTilingPerformed:E.ZT,_performLabelsLayout:function(){this._processNodes(null,yge)},_getTextBBox:function(n){var t=this._renderer,e=this._textForCalculations||t.text("0",0,0);this._textForCalculations=e,e.css(ci(n)).append(t.root);var i=e.getBBox();return e.remove(),i}});function e3(n,t,e,i){var D,A,Q,we,r=[],m=i.nodes,N=t.length,se=0;for(A=0;A<N;++A){var Re;Q=t[A],(D=new Ry)._id=m.length,D.ctx=i.ctx,D.parent=n,D.level=e,D.index=r.length,D.data=Q,i.buildNode(D),m.push(D),r.push(D),null!==(Re=we=Q[i.itemsField])&&void 0!==Re&&Re.length&&e3(D,we,e+1,i),Q[i.valueField]>0&&(D.value=Number(Q[i.valueField])),se+=D.value}n.nodes=r,n.value=se}function t3(n,t,e){var r,m,i=t.nodes,D=i.length;for(m=0;m<D;++m)e(n,r=i[m]),r.isNode()&&t3(n,r,e)}var cge=[function pge(n,t){var e=n.renderer.simpleRect().append(n.group);return n.setTrackerData(t,e),e},function gge(n,t){var e=n.renderer.simpleRect().append(n.group),i=n.renderer.simpleRect().append(n.group);return n.setTrackerData(t,i),{outer:e,inner:i}}];function hge(n,t){t.color=t.data[n.colorField]||n.getColor(t)||t.parent.color,t.updateStyles(),t.tile=!t.ctx.forceReset&&t.tile||cge[Number(t.isNode())](n,t),t.applyState()}function fge(n,t){t.updateLabelStyle(),t.labelState.visible&&function mge(n,t,e,i){var r=t.data[n.labelField];t.label=r?String(r):null,(r=t.customLabel||t.label)&&(t.text=n.renderer.text(r).attr(e.attr).css(e.css).append(n.group),n.setTrackerData(t,t.text))}(n,t,t.labelState)}var _ge=[0,0,0,0];function n3(n,t){var D,e=t.nodes,i=[],r=[],m=0,A=i.length=r.length=e.length;for(D=0;D<A;++D)m+=e[D].value,i[D]={value:e[D].value,i:D};for(m>0&&n.algorithm({items:i.slice(),sum:m,rect:t.innerRect.slice(),isRotated:1&e[0].level,directions:n.directions}),D=0;D<A;++D)r[D]=i[D].rect||_ge;t.rects=r}function vge(n,t){var r,e=t.parent.rects[t.index],i=n.rectOffsets;t.isNode()?(IR(t.tile.outer,r3(e,t.parent.innerRect,i.headerEdge,i.headerInner)),e=i3(e,n.groupPadding),r=Math.min(n.headerHeight,e[3]-e[1]),t.rect=[e[0],e[1],e[2],e[1]+r],IR(t.tile.inner,i3(t.rect,i.headerEdge)),e[1]+=r,t.innerRect=e,n3(n,t)):(t.rect=e,IR(t.tile,r3(e,t.parent.innerRect,i.tileEdge,i.tileInner)))}function i3(n,t){return[n[0]+t,n[1]+t,n[2]-t,n[3]-t]}function r3(n,t,e,i){return[n[0]+(n[0]===t[0]?e:+i),n[1]+(n[1]===t[1]?e:+i),n[2]-(n[2]===t[2]?e:-i),n[3]-(n[3]===t[3]?e:-i)]}function IR(n,t){n.attr({x:t[0],y:t[1],width:Jz(t[2]-t[0],0),height:Jz(t[3]-t[1],0)})}function yge(n,t){t.text&&t.labelState.visible&&function Cge(n,t){var e=n.rect,i=n.text,r=i.getBBox(),m=t.paddingLeftRight,D=t.paddingTopBottom;i.setMaxSize(e[2]-e[0]-2*m,e[3]-e[1]-D,n.isNode()?{textOverflow:t.groupLabelOverflow,wordWrap:"none"}:{textOverflow:t.tileLabelOverflow,wordWrap:t.tileLabelWordWrap,hideOverflowEllipsis:!0}),i.move(t.rtlEnabled?e[2]-m-r.x-r.width:e[0]+m-r.x,e[1]+D-r.y)}(t,t.labelParams)}(0,T.Z)("dxTreeMap",TR);const Yl=TR;function xge(n,t,e){return((e-1)*n+t)/e}TR.addPlugin(za),NT("strip",function bge(n){return Yz(n,xge,!0)}),NT("sliceanddice",function wge(n){var t=n.items,e=Kz(n.rect,n.directions,n.isRotated?1:0);Gz(t,0,n.rect,e,{sum:n.sum,count:t.length,side:e.variedSide})});var Ege=Uz("sliceanddice");NT("rotatedsliceanddice",function Sge(n){return n.isRotated=!n.isRotated,Ege.call(this,n)});var Oge=Math.min,Dge=Math.max;function o3(n){return[Number(n[0])||0,n[1]-n[0]||1]}DR("gradient",function Age(n,t){var e=t.createGradientPalette(n.palette),i=$z(n);return"range"in n?function Tge(n,t){return function(e){return n(e,t)}}(r,o3(n.range||[])):function Mge(n,t){var e={};return function(i){var r=i.parent;return n(i,e[r._id]||(e[r._id]=function Ige(n,t){var e,m,i=n.length,r=[];for(e=0;e<i;++e)m=t(n[e]),isFinite(m)&&r.push(m);return o3([Oge.apply(null,r),Dge.apply(null,r)])}(r.nodes,t)))}}(r,i);function r(m,D){return e.getColor((i(m)-D[0])/D[1])}}),DR("range",function kge(n,t){var e=n.range||[],i=t.createDiscretePalette(n.palette,e.length-1),r=$z(n);return function(m){return i.getColor(function Pge(n,t){var m,e=0,i=t.length-1,r=-1;if(t[e]<=n&&n<=t[i])if(n===t[i])r=i-1;else{for(;i-e>1;)n<t[m=e+i>>1]?i=m:e=m;r=e}return r}(r(m),e))}});var Uf=Yl.prototype,zT=Ry.prototype;function WT(n,t){var e=n.ctx;e.suspend(),e.change(t),e.resume()}function a3(n,t){var i,e=n.nodes,r=e&&e.length;for(i=0;i<r;++i)t.push(e[i].proxy),a3(e[i],t)}Uf._eventsMap.onNodesInitialized={name:"nodesInitialized"},Uf._eventsMap.onNodesRendering={name:"nodesRendering"},Uf._createProxyType=function(){var t,n=this;function e(i){i.proxy=this,this._id=i._id,this.level=i.level,this.index=i.index,this.data=i.data}e.prototype={constructor:e,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(i){var r=t[this._id].nodes;return r?r[i].proxy:null},getChildrenCount:function(){var i=t[this._id].nodes;return i?i.length:0},getAllChildren:function(){var r,i=t[this._id].nodes,m=i&&i.length,D=[];for(r=0;r<m;++r)D.push(i[r].proxy);return D},getAllNodes:function(){var i=[];return a3(t[this._id],i),i},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(i){var m,r=t[this._id];return void 0!==i?(function Rge(n,t){for(var e=t-n.value;n;)n.value+=e,n=n.parent}(r,i>0?Number(i):0),WT(r,["TILING"]),m=this):m=r.value,m},label:function(i){var m,r=t[this._id];return void 0!==i?(r.customLabel=i?String(i):null,WT(r,["LABELS"]),m=this):m=r.customLabel||r.label,m},customize:function(i){var r=t[this._id];return i&&(r._custom=r._custom||{},(0,y.l)(!0,r._custom,i),r._partialState=r._partialLabelState=null),WT(r,["TILES","LABELS"]),this},resetCustomization:function(){var i=t[this._id];return i._custom=i._partialState=i._partialLabelState=null,WT(i,["TILES","LABELS"]),this}},n._extendProxyType(e.prototype),n._handlers.beginBuildNodes=function(){t=n._nodes,new e(n._root)},n._handlers.buildNode=function(i){new e(i)},n._handlers.endBuildNodes=function(){n._eventTrigger("nodesInitialized",{root:n._root.proxy})}},Uf._extendProxyType=E.ZT;var Lge=Uf._resetNodes;Uf._resetNodes=function(){Lge.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var Bge=zT.updateStyles;zT.updateStyles=function(){Bge.call(this),this._custom&&(this._partialState=!this.ctx.forceReset&&this._partialState||this.ctx.calculateState(this._custom),(0,y.l)(!0,this.state,this._partialState))};var Fge=zT.updateLabelStyle;zT.updateLabelStyle=function(){var n=this._custom;Fge.call(this),n&&n.label&&(this._partialLabelState=!this.ctx.forceReset&&this._partialLabelState||function Vge(n,t){var e=n.ctx.calculateLabelState(t);return"visible"in t&&(e.visible=!!t.visible),e}(this,n.label),this.labelState=(0,y.l)(!0,{},this.labelState,this._partialLabelState))},Uf.getRootNode=function(){return this._root.proxy},Uf.resetNodes=function(){var n=this._context;return n.suspend(),n.change(["NODES_CREATE"]),n.resume(),this};var r_=Ry.prototype,UT=Yl.prototype._handlers,Hge=UT.calculateState,zge=r_._buildState;UT.calculateState=function(n){var t={0:Hge(n)};return UT.calculateAdditionalStates(t,n),t},UT.calculateAdditionalStates=E.ZT,r_.code=0,r_.statesMap={0:0},r_.additionalStates=[],r_._buildState=function(n,t){var e={0:zge(n[0],t)};return this.additionalStates.length&&function Wge(n,t,e,i){var r,m=i.length;for(r=0;r<m;++r)n[i[r]]=(0,y.l)({},t,e[i[r]])}(e,e[0],n,this.additionalStates),e},r_._getState=function(){return this.state[this.statesMap[this.code]]},r_.setState=function(n,t){t?this.code|=n:this.code&=~n,this.ctx.change(["TILES"])};var Zf=Yl.prototype,s3=Ry.prototype;function l3(n,t,e){var r,i=n.isNode()&&n.nodes,m=i&&i.length;for(n.setState(t,e),r=0;r<m;++r)l3(i[r],t,e)}Zf._eventsMap.onHoverChanged={name:"hoverChanged"},ya(Zf._handlers,"calculateAdditionalStates",function(n,t){n[1]=t.hoverStyle?ER(t.hoverStyle):{}}),Yl.addChange({code:"HOVER_ENABLED",handler:function(){var n=Qn(this._getOption("hoverEnabled",!0),!0);n||this.clearHover(),this._hoverEnabled=n},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),s3.statesMap[1]=1,s3.additionalStates.push(1),ya(Zf,"_extendProxyType",function(n){var t=this;n.setHover=function(){t._hoverNode(this._id)},n.isHovered=function(){return t._hoverIndex===this._id}}),ya(Zf,"_onNodesCreated",function(){this._hoverIndex=-1}),ya(Zf,"_changeGroupSettings",function(){this._groupHoverEnabled=Qn(this._getOption("group").hoverEnabled,!0),this._groupHoverEnabled||this.clearHover()}),Zf._applyHoverState=function(n,t){l3(this._nodes[n],1,t),this._eventTrigger("hoverChanged",{node:this._nodes[n].proxy})},Zf._hoverNode=function(n){var t=this._hoverIndex;if(this._hoverEnabled&&t!==n){if(!this._groupHoverEnabled&&n>=0&&this._nodes[n].isNode())return void this.clearHover();this._context.suspend(),this._hoverIndex=-1,t>=0&&this._applyHoverState(t,!1),this._hoverIndex=n,n>=0&&this._applyHoverState(n,!0),this._context.resume()}},Zf.clearHover=function(){this._hoverNode(-1)};var Kf=Yl.prototype,MR=Ry.prototype;Kf._eventsMap.onSelectionChanged={name:"selectionChanged"},ya(Kf._handlers,"calculateAdditionalStates",function(n,t){n[2]=t.selectionStyle?ER(t.selectionStyle):{}}),MR.statesMap[2]=MR.statesMap[3]=2,MR.additionalStates.push(2),ya(Kf,"_onNodesCreated",function(){this._selectionList.length=0}),ya(Kf,"_extendProxyType",function(n){var t=this;n.select=function(e){t._selectNode(this._id,!!e)},n.isSelected=function(){return t._selectionList.includes(this._id)},t._selectionList=[]}),Yl.addChange({code:"SELECTION_MODE",handler:function(){var e,n=En(this._getOption("selectionMode",!0)),t=this._selectionList,i="none"===n?0:"multiple"===n?2:1;1===i&&t.length>1?(e=t.pop(),this.clearSelection(),t.push(e)):0===i&&this.clearSelection(),this._selectionMode=i},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),ya(Kf,"_applyTilesAppearance",function(){this._selectionList.length&&function Gge(n,t){var e,r,i=t.length;for(e=0;e<i;++e)r=n[t[e]],Kge[Number(r.isNode())](r.tile)}(this._nodes,this._selectionList)});var Kge=[function jge(n){n.toForeground()},function $ge(n){n.outer.toForeground(),n.inner.toForeground()}];Kf._applySelectionState=function(n,t){var e=this._nodes[n];e.setState(2,t),this._eventTrigger("selectionChanged",{node:e.proxy})},Kf._selectNode=function(n,t){var e,i,r;0!==this._selectionMode&&(this._context.suspend(),i=(e=this._selectionList).indexOf(n),t&&-1===i?(1===this._selectionMode&&e.length&&(r=e.pop(),this._applySelectionState(r,!1)),e.push(n),this._applySelectionState(n,!0)):!t&&i>=0&&(e.splice(i,1),this._applySelectionState(n,!1)),this._context.resume())},Kf.clearSelection=function(){var t,n=this._selectionList,e=n.length;if(0!==this._selectionMode){for(this._context.suspend(),t=0;t<e;++t)this._applySelectionState(n[t],!1);n.length=0,this._context.resume()}};var Ly=Yl.prototype;function d3(n,t,e){var i=e.getRootOffset();return n||t&&[(t[0]+t[2])/2+i.left,(t[1]+t[3])/2+i.top]||[-1e3,-1e3]}ya(Ly,"_extendProxyType",function(n){var t=this;n.showTooltip=function(e){t._showTooltip(this._id,e)}}),ya(Ly,"_onNodesCreated",function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1}),ya(Ly,"_onTilingPerformed",function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])}),Ly._showTooltip=function(n,t){var e=this,i=e._tooltip,r=e._nodes[n];if(e._tooltipIndex!==n){var m=A=>{void 0!==A&&(A||i.hide(),e._tooltipIndex=A?n:-1)},D=d3(t,r.rect,this._renderer);m(i.show({value:r.value,valueText:i.formatValue(r.value),node:r.proxy},{x:D[0],y:D[1],offset:0},{node:r.proxy},void 0,m))}else e._moveTooltip(r,t)},Ly._moveTooltip=function(n,t){var e=d3(t,n.rect,this._renderer);this._tooltip.move(e[0],e[1],0)},Ly.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},Yl.addPlugin(Fe);var Xge=0,PR=Yl.prototype;PR._eventsMap.onClick={name:"click"},ya(PR,"_initCore",function(){var n=this,t="__treemap_data_"+Xge++,e=function(i){return n._nodes[i].proxy};n._tracker=new Bb({widget:n,root:n._renderer.root,getNode:function(i){var r=e(i);return Qn(n._getOption("interactWithGroup",!0))&&r.isLeaf()&&r.getParent().isActive()?r.getParent():r},getData:function(i){var r=i.target;return("tspan"===r.tagName?r.parentNode:r)[t]},getProxy:e,click:function(i){n._eventTrigger("click",i)}}),n._handlers.setTrackerData=function(i,r){r.data(t,i._id)}}),ya(PR,"_disposeCore",function(){this._tracker.dispose()});var o_=Yl.prototype;o_._eventsMap.onDrill={name:"drill"},ya(o_,"_extendProxyType",function(n){var t=this;n.drillDown=function(){t._drillToNode(this._id)}}),ya(o_,"_onNodesCreated",function(){this._drilldownIndex=-1}),o_._drillToNode=function(n){var t;this._drilldownIndex!==n&&(t=this._nodes[n]||this._root).nodes&&(this._drilldownIndex=n,this._topNode=t,this._context.suspend(),this._context.change(["MAX_DEPTH","NODES_RESET"]),this._context.resume(),this._eventTrigger("drill",{node:t.proxy}))},o_.resetDrillDown=function(){return this._drillToNode(-1),this},o_.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},o_.getCurrentNode=function(){return this._topNode.proxy};var kR=Yl.prototype;function c3(n,t){var e,i,m,r=n.struct;for(i=0;i<t.length;i++)r[m=(e=t[i])[n.idField]]&&(e.items=r[m].items,r[m]=null,c3(n,e.items))}kR._optionChangesMap.idField=kR._optionChangesMap.parentField="NODES_CREATE",kR._processDataSourceItems=function(n){var t,i,D,N,Q,e={},r=this._getOption("idField",!0),m=this._getOption("parentField",!0),A=[];if(!r||!m||0===n.length)return{items:n,isPlain:!1};for(t=0;t<n.length;t++)(D=(i=n[t])[m])?(e[D]=e[D]||{items:[]},N=e[D].items):N=A,N.push(i);for(Q in c3({struct:e,idField:r},A),e)e[Q]&&A.push(e[Q]);return{items:A,isPlain:!0}},Yl.addPlugin(Bu),Yl.addPlugin(Oe),Yl.addPlugin(wi);let h3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.dXi,M.lj9,M.F9A,M.bgw,M.Ye1,M.e1H,M.YXG,M.gN6,M.rHV,M.Kx,M.SiA,M.rrz,M.KjY,M.lTN,M.vZC,M.FZZ,M.Ois,g.Lz,g.ie,p.Cu],M.dXi,M.lj9,M.F9A,M.bgw,M.Ye1,M.e1H,M.YXG,M.gN6,M.rHV,M.Kx,M.SiA,M.rrz,M.KjY,M.lTN,M.vZC,M.FZZ,M.Ois,g.ie]}),n})(),p3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,M.ZOF,M.idP,M.UxI,g.Lz,g.ie,p.Cu],M.Q8p,M.ZOF,M.idP,M.UxI,g.ie]}),n})();u(4510);let g3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[g.Lz,g.ie,p.Cu],g.ie]}),n})();u(8493);let f3=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.Q8p,g.Lz,g.ie,p.Cu],M.Q8p,g.ie]}),n})();var m3=u(7773),_3={_initEvents:function(){var t,n=this._eventNames,e=n.length,i=this._events={};for(t=0;t<e;++t)i[n[t]]=(0,Pp.Z)()},_disposeEvents:function(){var t,n=this._events;for(t in n)n[t].empty();this._events=null},on:function(n){var e,t=this._events;for(e in n)t[e].add(n[e]);return function(){for(e in n)t[e].remove(n[e])}},_fire:function(n,t){this._events[n].fire(t)}};function v3(n){var e,t=n.prototype;for(e in _3)t[e]=_3[e]}var RR=Number,By=Math.min,a_=Math.max,Qu=Math.abs,KT=Math.round,LR=Math.log,ife=Math.pow,rfe=2/Math.LN2,y3=1/3600/180/10,x3=[NaN,NaN];function FR(n,t){return Qu(n-t)<1e-8}function b3(n,t){return FR(n[0],t[0])&&FR(n[1],t[1])}function GT(n,t,e,i){var r=RR(n);return isFinite(r)?By(a_(r,t),e):i}function VR(n,t,e,i){return[GT(n[0],t[0],e[0],i[0]),GT(n[1],t[1],e[1],i[1])]}function w3(n){return n instanceof yw&&n||Xl.get(n)||Xl(n)||Xl.get("mercator")}var jT=function(n){this._initEvents(),this._params=n,this._engine=w3(),this._center=this._engine.center(),this._adjustCenter()};function $T(n,t,e,i){var r=(e+i)/2;return Qu(n-r)>Qu(t-r)?n:t}function YT(n,t,e,i){var r=(e+i)/2;return Qu(n-r)<Qu(t-r)?n:t}function E3(n,t,e){var{min:i,max:r}=O3(t,e);n.min=NR(i),n.max=NR(r)}jT.prototype={constructor:jT,_minZoom:1,_maxZoom:256,_zoom:1,_center:x3,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(n){var t=w3(n);this._engine!==t&&(this._engine=t,this._fire("engine"),this._changeCenter(t.center())&&this._triggerCenterChanged(),this._changeZoom(this._minZoom)&&this._triggerZoomChanged(),this._adjustCenter(),this._setupScreen())},setBounds:function(n){void 0!==n&&this.setEngine(this._engine.original().bounds(n))},_setupScreen:function(){var n=this._canvas,t=n.width,e=n.height,i=this._engine,r=i.ar();this._x0=n.left+t/2,this._y0=n.top+e/2;var Q,m=[this.project([i.min()[0],0])[0],this.project([0,i.min()[1]])[1]],D=[this.project([i.max()[0],0])[0],this.project([0,i.max()[1]])[1]],A=t/e,N=Qu(D[0]-m[0])/Qu(D[1]-m[1]);Q=isNaN(N)||0===N||By(A,r)<=r*N&&r*N<=a_(A,r)?1:N>1?N:1/N,r*N>=A?(this._xRadius=t/2/Q,this._yRadius=t/2/(r*Q)):(this._xRadius=e/2*(r/Q),this._yRadius=e/2/Q),this._fire("screen")},setSize:function(n){this._canvas=n,this._setupScreen()},getCanvas:function(){return this._canvas},_toScreen:function(n){return[this._x0+this._xRadius*n[0],this._y0+this._yRadius*n[1]]},_fromScreen:function(n){return[(n[0]-this._x0)/this._xRadius,(n[1]-this._y0)/this._yRadius]},_toTransformed:function(n){return[n[0]*this._zoom+this._xCenter,n[1]*this._zoom+this._yCenter]},_toTransformedFast:function(n){return[n[0]*this._zoom,n[1]*this._zoom]},_fromTransformed:function(n){return[(n[0]-this._xCenter)/this._zoom,(n[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var n=this._engine.project(this._center);this._xCenter=-n[0]*this._zoom||0,this._yCenter=-n[1]*this._zoom||0},project:function(n){return this._engine.project(n)},transform:function(n){return this._toScreen(this._toTransformedFast(n))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(n){return[n[0]*this._zoom*this._xRadius,n[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(n){var i=!FR(this._zoom,this._zoom=GT(n,this._minZoom,this._maxZoom,this._minZoom));return i&&(this._adjustCenter(),this._fire("zoom")),i},setZoom:function(n){this._engine.isInvertible()&&this._changeZoom(n)&&this._triggerZoomChanged()},getScaledZoom:function(){return KT((this._scale.length-1)*LR(this._zoom)/LR(this._maxZoom))},setScaledZoom:function(n){this.setZoom(this._scale[KT(n)])},changeScaledZoom:function(n){this.setZoom(this._scale[a_(By(KT(this.getScaledZoom()+n),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var n=a_(KT(rfe*LR(this._maxZoom)),4),t=ife(this._maxZoom,1/n),e=this._minZoom;this._scale=[e];for(var i=1;i<=n;++i)this._scale.push(e*=t)},setMaxZoom:function(n){this._minZoom=1,this._maxZoom=GT(n,this._minZoom,RR.MAX_VALUE,256),this._setupScaling(),this._zoom>this._maxZoom&&this.setZoom(this._maxZoom),this._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(n){this._engine.isInvertible()&&this._changeCenter(n||[])&&this._triggerCenterChanged()},_changeCenter:function(n){var t=this._engine,r=!b3(this._center,this._center=VR(n,t.min(),t.max(),t.center()));return r&&(this._adjustCenter(),this._fire("center")),r},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(n,t){var e=this._engine.project(n),i=this._fromScreen(t);this.setCenter(this._engine.unproject([-i[0]/this._zoom+e[0],-i[1]/this._zoom+e[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){this._moveCenter&&(b3(this._moveCenter,this._center)||this._triggerCenterChanged(),this._moveCenter=null)},moveCenter:function(n){if(this._moveCenter){var t=this.toScreenPoint(this._center);this._changeCenter(this.fromScreenPoint([t[0]+n[0],t[1]+n[1]]))}},getViewport:function(){var n=this._engine.unproject,t=n(this._fromTransformed([-1,-1])),e=n(this._fromTransformed([-1,1])),i=n(this._fromTransformed([1,-1])),r=n(this._fromTransformed([1,1])),m=O3([$T(t[0],e[0],i[0],r[0]),$T(t[1],i[1],e[1],r[1])],[$T(i[0],r[0],t[0],e[0]),$T(e[1],r[1],t[1],i[1])]);return[].concat(m.min,m.max)},setViewport:function(n){var t=this._engine,e=n?function afe(n,t,e){var i=n([e[0],e[3]]),r=n([e[0],e[1]]),m=n([e[2],e[3]]),D=n([e[2],e[1]]),A=YT(i[0],r[0],m[0],D[0]),N=YT(m[0],D[0],i[0],r[0]),Q=YT(i[1],m[1],r[1],D[1]),se=YT(r[1],D[1],i[1],m[1]);return[2/a_(Qu(A-N),Qu(Q-se)),t([(A+N)/2,(Q+se)/2])]}(t.project,t.unproject,n):[this._minZoom,t.center()];this.setZoom(e[0]),this.setCenter(e[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(n){return this._engine.unproject(this._fromTransformed(this._fromScreen(n)))},toScreenPoint:function(n){return this._toScreen(this._toTransformed(this._engine.project(n)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},v3(jT);var yw=class{constructor(n){var t=function sfe(n){return t=>S3(n(t))}(n.to),e=n.from?function lfe(n){return t=>n(S3(t))}(n.from):XT(x3);this.project=t,this.unproject=e,this.original=XT(this),this.source=function(){return(0,y.l)({},n)},this.isInvertible=XT(!!n.from),this.ar=XT(n.aspectRatio>0?RR(n.aspectRatio):1),this.center=NR(e([0,0])),E3(this,[e([-1,0])[0],e([0,1])[1]],[e([1,0])[0],e([0,-1])[1]])}aspectRatio(n){var t=new yw((0,y.l)(this.source(),{aspectRatio:n}));return t.original=this.original,t.min=this.min,t.max=this.max,t}bounds(n){n=n||[];var t=this.source(),e=this.min(),i=this.max(),r=VR([n[0],n[1]],e,i,e),m=VR([n[2],n[3]],e,i,i),D=t.to(r),A=t.to(m),N=By(Qu(A[0]-D[0])>y3?Qu(A[0]-D[0]):2,Qu(A[1]-D[1])>y3?Qu(A[1]-D[1]):2);N<2&&(0,y.l)(t,function ufe(n,t,e,i,r){var m=(e[0]+i[0])/2-r/2,D=(e[1]+i[1])/2-r/2,A=2/r;return{to:function(N){var[Q,se]=n(N);return[(Q-m)*A-1,(se-D)*A-1]},from:function(N){return t([m+(N[0]+1)/A,D+(N[1]+1)/A])}}}(t.to,t.from,D,A,N));var Q=new yw(t);return Q.original=this.original,E3(Q,r,m),Q}};function S3(n){return[n[0],-n[1]]}function XT(n){return()=>n}function NR(n){return()=>n.slice()}function O3(n,t){return{min:[By(n[0],t[0]),By(n[1],t[1])],max:[a_(n[0],t[0]),a_(n[1],t[1])]}}var Xl=function(n){return n&&n.to?new yw(n):null},HR={};Xl.get=function(n){return HR[n]||null},Xl.add=function(n,t){return t=t instanceof yw&&t||Xl(t),!HR[n]&&t&&(HR[n]=t),Xl};var D3=(n,t)=>n.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(t),T3=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return n.g().attr({class:e}).append(t)},I3=(n,t)=>{var e=t?{display:"block"}:{display:"none"};n.map(i=>i.css(e))},Cw=Math,M3=Cw.min,A3=Cw.max,qT=Cw.round,P3=Cw.floor,dfe=Cw.sqrt,cfe=ti(["left","center","right"]),hfe=ti(["top","bottom"]),k3="command-reset",zR="command-move-up",WR="command-move-right",UR="command-move-down",ZR="command-move-left",KR="command-zoom-in",R3="command-zoom-out",L3="command-zoom-drag",Mh="control-bar",s_={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},Np={};function GR(n){this._params=n,this._createElements(n.renderer,n.container,n.dataKey),n.layoutControl.addItem(this),this._subscribeToProjection(n.projection),this._subscribeToTracker(n.tracker),this._createCallbacks(n.projection)}function bw(n){delete n._owner,n.update=function(){},n.finish=function(){}}function JT(n,t){this._owner=n,this._command=t}function QT(n,t,e){this._command=t;var i=null,r=0,m=0;switch(this._command){case zR:m=-10;break;case WR:r=10;break;case UR:m=10;break;case ZR:r=-10}this._stop=function(){return clearTimeout(i),n._callbacks.endMove(),this._stop=n=null,this},n._callbacks.beginMove(),function D(){n._callbacks.move([r,m]),i=setTimeout(D,100)}()}function e1(n,t){this._owner=n,this._command=t;var e=null,i=this._command===KR?1:-1;this._stop=function(){return clearTimeout(e),this._stop=n=null,this},function r(){n._adjustZoom(n._zoomFactor+i),e=setTimeout(r,150)}()}function t1(n,t,e){this._owner=n,this._zoomFactor=n._zoomFactor,this._pos=e.y}Np[k3]=JT,Np[zR]=Np[WR]=Np[UR]=Np[ZR]=QT,Np[KR]=Np[R3]=e1,Np[L3]=t1,GR.prototype={constructor:GR,_flags:0,dispose:function(){this._params.layoutControl.removeItem(this),this._root.linkRemove().linkOff(),this._offProjection(),this._offTracker(),this._params=this._root=this._offProjection=this._offTracker=this._callbacks=null},_subscribeToProjection:function(n){var t=this;function e(){t._adjustZoom(n.getScaledZoom())}t._offProjection=n.on({engine:function(){t._update()},zoom:e,"max-zoom":function(){t._zoomPartition=n.getZoomScalePartition(),t._sliderUnitLength=t._sliderLineLength/t._zoomPartition,e()}})},_subscribeToTracker:function(n){var t=this,e=!1;t._offTracker=n.on({start:function(i){(e=i.data.name===Mh)&&t._processStart(i.data.index,i)},move:function(i){e&&t._processMove(i.data.index,i)},end:function(){e&&(t._processEnd(),e=!1)}})},_createCallbacks:function(n){this._callbacks={reset:function(t,e){t&&n.setCenter(null),e&&n.setZoom(null)},beginMove:function(){n.beginMoveCenter()},endMove:function(){n.endMoveCenter()},move:function(t){n.moveCenter(t)},zoom:function(t){n.setScaledZoom(t)}}},_createElements:function(n,t,e){this._root=n.g().attr({class:"dxm-control-bar"}).linkOn(t,"control-bar");var i=this._panControl=T3(n,this._root,"dxm-pan-control"),r=this._zoomBar=T3(n,this._root,"dxm-zoom-bar"),m=this._trackersPan=D3(n,this._root),D=this._trackersZoom=D3(n,this._root);this._createTrackersPan(n,e,m),this._createTrackersZoom(n,e,D),this._createPanControl(n,e,i),this._createZoomBar(n,e,r)},_createPanControl:function(n,t,e){var r=s_.buttonSize/2,m=s_.arrowButtonOffset-r,D=s_.arrowButtonOffset,A={"stroke-linecap":"square",fill:"none"};n.circle(0,0,s_.bigCircleSize/2).append(e),n.circle(0,0,r).attr({fill:"none"}).append(e),n.path([-r,-m,0,-D,r,-m],"line").attr(A).append(e),n.path([m,-r,D,0,m,r],"line").attr(A).append(e),n.path([r,m,0,D,-r,m],"line").attr(A).append(e),n.path([-m,r,-D,0,-m,-r],"line").attr(A).append(e)},_createZoomBar:function(n,t,e){var i=s_,r=i.incDecButtonSize/2;n.circle(0,i.incButtonOffset,i.smallCircleSize/2).append(e),n.path([[-r,i.incButtonOffset,r,i.incButtonOffset],[0,i.incButtonOffset-r,0,i.incButtonOffset+r]],"area").append(e),n.circle(0,i.decButtonOffset,i.smallCircleSize/2).append(e),n.path([-r,i.decButtonOffset,r,i.decButtonOffset],"area").append(e),this._zoomLine=n.path([],"line").append(e),this._zoomDrag=n.rect(P3(-i.sliderLength/2),P3(i.sliderLineEndOffset-i.sliderWidth/2),i.sliderLength,i.sliderWidth).append(e),this._sliderLineLength=i.sliderLineEndOffset-i.sliderLineStartOffset},_createTrackersPan:function(n,t,e){var i=s_,r=qT((i.arrowButtonOffset-i.trackerGap)/2),m=i.arrowButtonOffset-r,D=qT(dfe(i.bigCircleSize*i.bigCircleSize/4-r*r)),A=D-m;n.rect(-r,-r,2*r,2*r).data(t,{index:k3,name:Mh}).append(e),n.rect(-r,-D,2*r,A).data(t,{index:zR,name:Mh}).append(e),n.rect(m,-r,A,2*r).data(t,{index:WR,name:Mh}).append(e),n.rect(-r,m,2*r,A).data(t,{index:UR,name:Mh}).append(e),n.rect(-D,-r,A,2*r).data(t,{index:ZR,name:Mh}).append(e)},_createTrackersZoom:function(n,t,e){var i=s_;n.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(t,{index:KR,name:Mh}).append(e),n.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(t,{index:R3,name:Mh}).append(e),n.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(t,{index:"command-zoom-drag-line",name:Mh}).append(e),this._zoomDragTracker=n.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(t,{index:L3,name:Mh}).append(e)},resize:function(n){this._isActive&&this._root.attr({visibility:null!==n?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(n,t){this._root.attr({translateX:n+this._margin+30.5,translateY:t+this._margin+30.5})},_update:function(){this._isActive=this._isEnabled&&this._flags&&this._params.projection.isInvertible();var n=[this._panControl,this._trackersPan],t=[this._zoomBar,this._trackersZoom];this._isActive?(this._root.linkAppend(),I3(n,this._isPanVisible),I3(t,this._isZoomVisible)):this._root.linkRemove(),this._processEnd(),this.updateLayout()},setInteraction:function(n){Qn(n.centeringEnabled,!0)?this._flags|=1:this._flags&=-2,Qn(n.zoomingEnabled,!0)?this._flags|=2:this._flags&=-3,this._update()},setOptions:function(n){var t={"stroke-width":n.borderWidth,stroke:n.borderColor,fill:n.color,"fill-opacity":n.opacity};this._isEnabled=!!Qn(n.enabled,!0),this._margin=n.margin||0,this._layoutOptions={width:2*this._margin+61,height:2*this._margin+274,horizontalAlignment:cfe(n.horizontalAlignment,"left"),verticalAlignment:hfe(n.verticalAlignment,"top")},this._isPanVisible=!!Qn(n.panVisible,!0),this._isZoomVisible=!!Qn(n.zoomVisible,!0),this._panControl.attr(t),this._zoomBar.attr(t),this._update()},_adjustZoom:function(n){var t=s_.sliderLineStartOffset,e=s_.sliderLineEndOffset,i=s_.sliderWidth;this._zoomFactor=A3(M3(qT(n),this._zoomPartition),0);var r={translateY:-qT(this._zoomFactor*this._sliderUnitLength)},m=e-i/2+r.translateY;this._zoomLine.attr({points:[[0,t,0,A3(t,m)],[0,M3(e,m+i),0,e]]}),this._zoomDrag.attr(r),this._zoomDragTracker.attr(r)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(n,t){var e;this._isActive&&(this._command=(e=Np[n])&&e.flags&this._flags?new e(this,n,t):null)},_processMove:function(n,t){this._command&&this._command.update(n,t)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},JT.flags=3,JT.prototype.update=function(n){n!==this._command&&bw(this)},JT.prototype.finish=function(){var n=this._owner._flags;this._owner._callbacks.reset(!!(1&n),!!(2&n)),bw(this)},QT.flags=1,QT.prototype.update=function(n){this._command!==n&&this.finish()},QT.prototype.finish=function(){bw(this._stop())},e1.flags=2,e1.prototype.update=function(n){this._command!==n&&this.finish()},e1.prototype.finish=function(){this._owner._applyZoom(),bw(this._stop())},t1.flags=2,t1.prototype.update=function(n,t){var e=this._owner;e._adjustZoom(this._zoomFactor+e._zoomPartition*(this._pos-t.y)/e._sliderLineLength)},t1.prototype.finish=function(){this._owner._applyZoom(),bw(this)};var vfe=Math.log,yfe=Math.LN2;function jR(n){this._projection=n.projection,this._renderer=n.renderer,this._x=this._y=0,this._subscribeToTracker(n.tracker)}jR.prototype={constructor:jR,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(n){var t=this,e=!1;t._offTracker=n.on({start:function(i){(e="control-bar"!==i.data.name)&&t._processStart(i)},move:function(i){e&&t._processMove(i)},end:function(){e&&t._processEnd()},zoom:function(i){t._processZoom(i)}})},setInteraction:function(n){this._processEnd(),this._centeringEnabled=n.centeringEnabled,this._zoomingEnabled=n.zoomingEnabled},_processStart:function(n){this._centeringEnabled&&(this._x=n.x,this._y=n.y,this._projection.beginMoveCenter())},_processMove:function(n){this._centeringEnabled&&(this._renderer.root.attr({cursor:"move"}),this._projection.moveCenter([this._x-n.x,this._y-n.y]),this._x=n.x,this._y=n.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(n){var t,e,i;this._zoomingEnabled&&(n.delta?t=n.delta:n.ratio&&(t=vfe(n.ratio)/yfe),this._centeringEnabled&&(e=this._renderer.getRootOffset(),i=this._projection.fromScreenPoint(e=[n.x-e.left,n.y-e.top])),this._projection.changeScaledZoom(t),this._centeringEnabled&&this._projection.setCenterByPoint(i,e))}};var Ew,K3,B3=(0,mi.jW)(),$R=Math,ww=$R.abs,Cfe=$R.sqrt,F3=$R.round,Vy=k.V4,Ny="dxVectorMap",YR="zoom",z3="hover-on",W3="hover-off",XR="focus-on",Z3="focus-move",qR="focus-off";function n1(n){var t=this;t._root=n.root,t._createEventHandlers(n.dataKey),t._createProjectionHandlers(n.projection),t._initEvents(),t._focus=new K3(function(e,i){t._fire(e,i)}),t._attachHandlers()}function G3(n,t,e,i){return Cfe((n-e)*(n-e)+(t-i)*(t-i))}function _c(n){var t=n.originalEvent.type,e=n.originalEvent.pointerType;return/^touch/.test(t)||/^MSPointer/.test(t)&&4!==e||/^pointer/.test(t)&&"mouse"!==e}function JR(n,t){for(var r,e=0,i=n.length;e<i;++e)if(n[e]){r=t[e];break}return Vy(r||t[e],Ny)}function Hy(n){var t=n.originalEvent,e=t.touches&&t.touches[0]||{};return{x:e.pageX||t.pageX||n.pageX,y:e.pageY||t.pageY||n.pageY}}function j3(n){return n.originalEvent.pointerId}function i1(n,t){var e=n.originalEvent;return(e=void 0!==e.pointerId?e.pointerId===t?e:null:e.touches[t])?{x:e.pageX||n.pageX,y:e.pageY||n.pageY}:null}function QR(){this._store={}}!function Ife(){var n=[B3.pointerEnabled,B3.msPointerEnabled,(0,mi.l$)("ontouchstart")];Ew={start:JR(n,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:JR(n,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:JR(n,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:Vy(gg.u,Ny)}}(),n1.prototype={constructor:n1,dispose:function(){this._detachHandlers(),this._disposeEvents(),this._focus.dispose(),this._root=this._focus=this._docHandlers=this._rootHandlers=null},_eventNames:["start","move","end",YR,"click",z3,W3,XR,qR,Z3],_startClick:function(n,t){if(t){var e=Hy(n);this._clickState={x:e.x,y:e.y,threshold:_c(n)?20:5,time:Date.now()}}},_endClick:function(n,t){var i,r,e=this._clickState;e&&(t&&Date.now()-e.time<=500&&(i=e.threshold,r=Hy(n),ww(r.x-e.x)<=i&&ww(r.y-e.y)<=i&&this._fire("click",{data:t,x:r.x,y:r.y,$event:n})),this._clickState=null)},_startDrag:function(n,t){if(t){var e=Hy(n),i=this._dragState={x:e.x,y:e.y,data:t};this._fire("start",{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(n,t){var e=this._dragState;if(e){var i=Hy(n),r=_c(n)?10:5;(e.active||ww(i.x-e.x)>r||ww(i.y-e.y)>r)&&(e.x=i.x,e.y=i.y,e.active=!0,e.data=t||{},this._fire("move",{x:e.x,y:e.y,data:e.data}))}},_endDrag:function(){var n=this._dragState;n&&(this._dragState=null,this._fire("end",{x:n.x,y:n.y,data:n.data}))},_wheelZoom:function(n,t){if(t){var e=this._wheelLock,i=Date.now();if(!(i-e.time<=50)){i-e.dirTime>300&&(e.dir=0);var r=function Mfe(n,t){if(0===n)return 0;var e=ww(n),i=F3(n/e);return t.dir&&i!==t.dir?0:(t.dir=i,i*(e=e<.1?0:e<1?1:e>4?4:F3(e)))}(n.delta/120||0,e);if(0!==r){var m=Hy(n);this._fire(YR,{delta:r,x:m.x,y:m.y}),e.time=e.dirTime=i}}}},_startZoom:function(n,t){if(_c(n)&&t){var i,r,e=this._zoomState=this._zoomState||{};e.pointer1&&e.pointer2||(void 0===e.pointer1&&(e.pointer1=j3(n)||0,i=i1(n,e.pointer1),e.x1=e.x1_0=i.x,e.y1=e.y1_0=i.y),void 0===e.pointer2&&(r=j3(n)||1)!==e.pointer1&&(i=i1(n,r))&&(e.x2=e.x2_0=i.x,e.y2=e.y2_0=i.y,e.pointer2=r,e.ready=!0,this._endDrag()))}},_moveZoom:function(n){var e,t=this._zoomState;!t||!_c(n)||(void 0!==t.pointer1&&(e=i1(n,t.pointer1))&&(t.x1=e.x,t.y1=e.y),void 0!==t.pointer2&&(e=i1(n,t.pointer2))&&(t.x2=e.x,t.y2=e.y))},_endZoom:function(n){var e,i,t=this._zoomState;!t||!_c(n)||(t.ready&&(e=G3(t.x1_0,t.y1_0,t.x2_0,t.y2_0),i=G3(t.x1,t.y1,t.x2,t.y2),this._fire(YR,{ratio:i/e,x:(t.x1_0+t.x2_0)/2,y:(t.y1_0+t.y2_0)/2})),this._zoomState=null)},_startHover:function(n,t){this._doHover(n,t,!0)},_moveHover:function(n,t){this._doHover(n,t,!1)},_doHover:function(n,t,e){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelHover():_c(n)!==e||this._hoverTarget===n.target||this._hoverState&&this._hoverState.data===t||(this._cancelHover(),t&&(this._hoverState={data:t},this._fire(z3,{data:t})),this._hoverTarget=n.target)},_cancelHover:function(){var n=this._hoverState;this._hoverState=this._hoverTarget=null,n&&this._fire(W3,{data:n.data})},_startFocus:function(n,t){this._doFocus(n,t,!0)},_moveFocus:function(n,t){this._doFocus(n,t,!1)},_doFocus:function(n,t,e){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelFocus():_c(n)===e&&(this._focus.turnOff(),t&&this._focus.turnOn(t,Hy(n)))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(n){var t=this;function e(i){var r=i.target;return("tspan"===r.tagName?r.parentNode:r)[n]}t._docHandlers={},t._rootHandlers={},t._docHandlers[Ew.start]=function(i){var r=_c(i),m=e(i);r&&!t._isTouchEnabled||(m&&i.preventDefault(),t._startClick(i,m),t._startDrag(i,m),t._startZoom(i,m),t._startHover(i,m),t._startFocus(i,m))},t._docHandlers[Ew.move]=function(i){var r=_c(i),m=e(i);r&&!t._isTouchEnabled||(t._moveDrag(i,m),t._moveZoom(i,m),t._moveHover(i,m),t._moveFocus(i,m))},t._docHandlers[Ew.end]=function(i){var r=_c(i),m=e(i);r&&!t._isTouchEnabled||(t._endClick(i,m),t._endDrag(i,m),t._endZoom(i,m))},t._rootHandlers[Ew.wheel]=function(i){if(t._cancelFocus(),t._isWheelEnabled){var r=e(i);r&&(i.preventDefault(),i.stopPropagation(),t._wheelZoom(i,r))}},t._wheelLock={dir:0}},_createProjectionHandlers:function(n){var t=this;function e(){t._cancelFocus()}n.on({center:e,zoom:e})},reset:function(){this._clickState=null,this._endDrag(),this._cancelHover(),this._cancelFocus()},setOptions:function(n){this.reset(),this._detachHandlers(),this._isTouchEnabled=!!Qn(n.touchEnabled,!0),this._isWheelEnabled=!!Qn(n.wheelEnabled,!0),this._attachHandlers()},_detachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"","-webkit-user-select":""}).off(Vy("MSHoldVisual",Ny)).off(Vy("contextmenu",Ny)),d.Z.off(b.Z.getDocument(),this._docHandlers),this._root.off(this._rootHandlers)},_attachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(Vy("MSHoldVisual",Ny),function(n){n.preventDefault()}).on(Vy("contextmenu",Ny),function(n){_c(n)&&n.preventDefault()}),d.Z.on(b.Z.getDocument(),this._docHandlers),this._root.on(this._rootHandlers)}},K3=function(n){var D,A,t=this,e=null,i=null,r=!1,m=null;t.dispose=function(){clearTimeout(m),t.turnOn=t.turnOff=t.cancel=t.dispose=t=n=e=i=m=null},t.turnOn=function(N,Q){function se(we){r=!we,we&&(e=i,clearTimeout(m),m=null)}N===i&&r||(r=!1,i=N,e?(D=Q.x,A=Q.y,i===e?(n(Z3,{data:i,x:D,y:A}),se(!0)):n(XR,{data:i,x:D,y:A,done:se})):n(XR,{data:i,x:D=Q.x,y:A=Q.y,done:se}))},t.turnOff=function(){i=null,e&&!r&&(m=m||setTimeout(function(){m=null,n(qR,{data:e}),e=null},100))},t.cancel=function(){clearTimeout(m),e&&n(qR,{data:e}),e=i=m=null}},v3(n1),QR.prototype={constructor:QR,dispose:function(){return this._store=null,this},_get:function(n,t){var e=this._store[n]||(this._store[n]={});return e[t]||(e[t]={callbacks:(0,Pp.Z)()})},set:function(n,t,e){var i=this._get(n,t);return i.data=e,i.callbacks.fire(e),this},bind:function(n,t,e){var i=this._get(n,t);return i.callbacks.add(e),i.data&&e(i.data),this},unbind:function(n,t,e){return this._get(n,t).callbacks.remove(e),this}};var $3=y.l,Afe=O.S6,Pfe={category:"UNKNOWN",name:"UNKNOWN"},e2=function(n){var t=this;t._params=n,t._root=n.renderer.g().attr({class:"dxm-legend"}).linkOn(n.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),n.layoutControl.addItem(t),oh.call(t,{renderer:n.renderer,widget:n.widget,group:t._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(e){return e}}),t._onDataChanged=function(e){t._updateData(e)}};function t2(n){this._params=n,this._items=[],n.container.virtualLink("legend-base")}e2.prototype=$3((0,Se.d9)(oh.prototype),{constructor:e2,dispose:function(){var n=this;return n._params.layoutControl.removeItem(n),n._unbindData(),n._root.linkRemove().linkOff(),n._params=n._root=n._onDataChanged=null,oh.prototype.dispose.apply(n,arguments)},resize:function(n){this._params.notifyDirty(),null===n?this.erase():this.draw(n.width,n.height),this._params.notifyReady()},locate:oh.prototype.shift,_updateData:function(n){this._options.defaultColor=n&&n.defaultColor,this.update(n?function kfe(n,t,e){var i,D,r=t.length,m=[];for(i=0;i<r;++i)m[i]=D={start:n[i],end:n[i+1],index:i},D[e]=t[i],D.states={normal:{fill:D.color}},D.visible=!0;return m}(n.partition,n.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(n){this._params.dataExchanger.bind(this._dataCategory=n.category,this._dataName=n.name,this._onDataChanged)},setOptions:function(n){this.update(this._data,n,this._params.themeManager.theme("legend").title),this._unbindData();var t=n.source;return this._bindData(t?{category:t.layer,name:t.grouping}:Pfe),this.updateLayout(),this}}),t2.prototype={constructor:t2,dispose:function(){Afe(this._items,function(n,t){t.dispose()}),this._params=this._items=null},setOptions:function(n){var i,t=n&&n.length?n:[],e=this._items,r=t.length,m=this._params,D=m.themeManager.theme("legend");for(i=e.length;i<r;++i)e[i]=new e2(m);for(i=e.length-1;i>=r;--i)e[i].dispose(),e.splice(i,1);for(m.layoutControl.suspend(),i=0;i<r;++i)e[i].setOptions($3(!0,{},D,t[i]));m.layoutControl.resume()}};var r1=Math.round,n2=Math.min,o1=Math.max,Gf=O.S6,Rfe={left:0,center:1,right:2},Lfe={top:0,bottom:1};function Y3(n,t){var e=!1;return function Vfe(n){Gf([0,1,2,3,4,5],function(t,e){var i=n[e],r=n[(e+3)%6];i.items&&(r.items||(i.rect[1]=n2(i.rect[1],r.rect[3]),i.rect[3]=o1(i.rect[3],r.rect[1])))}),Gf([1,4],function(t,e){var D,A,i=n[e],r=n[e-1],m=n[e+1];i.items?!r.items&&!m.items&&((D=i.rect[0]-r.rect[2])>(A=m.rect[0]-i.rect[2])?D/A>=2?(i.rect[0]-=D,i.right=!0):(i.rect[0]-=A,i.rect[2]+=A):A/D>=2?(i.rect[2]+=A,i.center=null):(i.rect[0]-=D,i.rect[2]+=D)):(r.items&&(r.rect[2]=(i.rect[0]+i.rect[2])/2),m.items&&(m.rect[0]=(i.rect[0]+i.rect[2])/2))})}(n),Gf(n,function(i,r){r.items&&(e=function Nfe(n,t){var e=n.rect,i=e[2]-e[0],r=e[3]-e[1],m=0,D=0,A=0,N=e[2],Q=e[3],se=e[0],we=e[1],Re=[],Ue=!1;return Gf(n.items,function(st,Ot){if(Ot.width>i||Ot.height>r||(m+Ot.width>i&&(D+=A,m=A=0),D+Ot.height>r))return Re.push(null),Ue=!0,t||!1;A=o1(A,Ot.height);var Kt=n.horInversion?e[2]-Ot.width-m:e[0]+m,sn=n.verInversion?e[3]-Ot.height-D:e[1]+D;m+=Ot.width,N=n2(N,Kt),Q=n2(Q,sn),se=o1(se,Kt+Ot.width),we=o1(we,sn+Ot.height),Re.push([Kt,sn])}),(t||!Ue)&&(m=0,n.right?m=e[2]-e[0]-se+N:n.center&&(m=r1((e[2]-e[0]-se+N)/2)),Gf(n.items,function(st,Ot){var Kt=Re[st];Kt?Ot.item.locate(Kt[0]+m,Kt[1]):Ot.item.resize(null)}),n.rect=[N,Q,se,we],n.items=null),Ue}(r,t)||e)}),e}function i2(n){var t=this;t._items=[],t._suspended=0,t._widget=n,t._updateLayout=function(){t._update()}}i2.prototype={constructor:i2,dispose:function(){this._items=this._updateLayout=null},setSize:function(n){this._canvas=n,this._update()},suspend:function(){++this._suspended},resume:function(){0==--this._suspended&&this._update()},addItem:function(n){this._items.push(n),n.updateLayout=this._updateLayout},removeItem:function(n){var t=this._items.indexOf(n);this._items.splice(t,1),n.updateLayout=null},_update:function(){var n;0===this._suspended&&(n=this._canvas,Gf(this._items,function(t,e){e.resize(n)}),this._widget.resolveItemsDeferred(this._items.filter(t=>t.getTemplatesGroups&&t.getTemplatesDef)),function Hfe(n,t){var e=function Ffe(n,t){var e=(n.right-n.left)/3,i=(n.bottom-n.top)/2,r=n.left,m=r1(r+e),D=r1(r+e+e),A=n.right,N=n.top,Q=r1(N+i),se=n.bottom,we=[{rect:[r,N,m,Q]},{rect:[m,N,D,Q],center:!0},{rect:[D,N,A,Q],horInversion:!0},{rect:[r,Q,m,se],verInversion:!0},{rect:[m,Q,D,se],center:!0,verInversion:!0},{rect:[D,Q,A,se],horInversion:!0,verInversion:!0}],Re=[[],[],[],[],[],[]];return Gf(t,function(Ue,st){var Ot=st.getLayoutOptions();Ot&&Re[function Bfe(n){return 3*Lfe[n.verticalAlignment]+Rfe[n.horizontalAlignment]}(Ot)].push({item:st,width:Ot.width,height:Ot.height})}),Gf(we,function(Ue,st){Re[Ue].length?st.items=Re[Ue]:(st.center?st.rect[0]=st.rect[2]=(st.rect[0]+st.rect[2])/2:st.rect[st.horInversion?0:2]=st.rect[st.horInversion?2:0],st.rect[st.verInversion?1:3]=st.rect[st.verInversion?3:1])}),we}(n,t);Y3(e)&&Y3(e,!0)}({left:n.left,top:n.top,right:n.width+n.left,bottom:n.height+n.top},this._items))}};var vc=E.ZT,Ah=y.l,Sw=O.S6,zfe=Array.prototype.concat,Ow="area",zy="line",Dw="marker",Ufe=[0,1,2,2],r2={none:null,single:-1,multiple:NaN},Tw=Array.isArray,kd=Number,Zfe=String,Kfe=Math.abs,Gfe=Math.round,Hp=Math.min,Cu=Math.max,o2=Math.sqrt;function a2(n){return n.reduce((t,e)=>e?[Hp(t[0],e[0]),Hp(t[1],e[1]),Cu(t[2],e[2]),Cu(t[3],e[3])]:t,n[0])}function q3(n,t){return(n[t]||{}).name}function s2(){}function l2(n){this.raw=n}function l1(n){this.raw=n}function u2(n){return Tw(n.features)}function J3(n){n.text.attr({visibility:n.size[0]/n.spaceSize[0]<1&&n.size[1]/n.spaceSize[1]<1?null:"hidden"})}function Q3(n){n.text.attr({visibility:n.size[0]/n.spaceSize[0]<1||n.size[1]/n.spaceSize[1]<1?null:"hidden"})}function Iw(n,t){return n.attribute(t)}s2.prototype.count=function(){return 0},l2.prototype={constructor:l2,count:function(){return this.raw.length},item:function(n){return this.raw[n]},geometry:function(n){return{coordinates:n.coordinates}},attributes:function(n){return n.attributes},getBBox:function(n){return 0===arguments.length?void 0:this.raw[n].bbox}},l1.prototype={constructor:l1,count:function(){return this.raw.features.length},item:function(n){return this.raw.features[n]},geometry:function(n){return n.geometry},attributes:function(n){return n.properties},getBBox:function(n){return 0===arguments.length?this.raw.bbox:this.raw.features[n].bbox}};var qfe={Point:Dw,MultiPoint:zy,LineString:zy,MultiLineString:zy,Polygon:Ow,MultiPolygon:Ow};function Ca(n,t){return void 0!==n?n:t}var d1,d2,e7={setup:vc,reset:vc,arrange:vc,updateGrouping:vc,getDefaultColor:vc},Wy={},u1={},Mw={};function zp(n,t,e,i){n[i].attr(t[i][e])}function t7(n,t){var i,e=[],r=e.length=t.length;for(i=0;i<r;++i)e[i]=n.project(t[i]);return e}function tme(n,t){return[t7(n,t)]}function c2(n,t){var i,e=[],r=e.length=t.length;for(i=0;i<r;++i)e[i]=t7(n,t[i]);return e}function rme(n,t){var i,m,e=[],r=t.length,D=0;for(e.length=2*r,i=0;i<r;++i)m=n.transform(t[i]),e[D++]=m[0],e[D++]=m[1];return e}function n7(n,t,e){var r,i=[],m=i.length=e.length;for(r=0;r<m;++r)i[r]=rme(t,e[r]);n.root.attr({points:i})}function i7(n,t){var m,e=0,i=t.length-1,r=-1;if(t[e]<=n&&n<=t[i])if(n===t[i])r=i-1;else{for(;i-e>1;)n<t[m=e+i>>1]?i=m:e=m;r=e}return r}function r7(n,t,e,i){n.params.eventTrigger(i,{target:t.proxy,state:e})}function h2(n,t){var e=Ah({},n,t);return e.label=Ah({},n.label,e.label),e.label.font=Ah({},n.label.font,e.label.font),e}function dme(n,t){return n.attribute(t)}Wy[Ow]={projectLabel:function fme(n){var t,i,r,e=n.length,m=0;for(t=0;t<e;++t)(i=pme(n[t])).area>m&&(m=i.area,r=i);return r?[r.center,[o2(r.area),o2(r.area)]]:[[],[]]},transform:n7,transformLabel:function ome(n,t,e){var i=t.transform(e[0]);n.spaceSize=t.getSquareSize(e[1]),n.text.attr({translateX:i[0],translateY:i[1]}),J3(n)},draw:function(n,t,e){t.root=n.renderer.path([],"area").data(n.dataKey,e)},refresh:vc,getLabelOffset:function(n){return J3(n),[0,0]},getStyles:function(n){var t=n.color||null,e=n.borderColor||null,i=Ca(n.borderWidth,null),r=Ca(n.opacity,null);return{root:[{class:"dxm-area",stroke:e,"stroke-width":i,fill:t,opacity:r},{class:"dxm-area dxm-area-hovered",stroke:n.hoveredBorderColor||e,"stroke-width":Ca(n.hoveredBorderWidth,i),fill:n.hoveredColor||t,opacity:Ca(n.hoveredOpacity,r)},{class:"dxm-area dxm-area-selected",stroke:n.selectedBorderColor||e,"stroke-width":Ca(n.selectedBorderWidth,i),fill:n.selectedColor||t,opacity:Ca(n.selectedOpacity,r)}]}},setState:function(n,t,e){zp(n,t,e,"root")},hasLabelsGroup:!0,updateGrouping:function(n){d1(n)},getDefaultColor:vc},Wy[zy]={projectLabel:function mme(n){var t,r,m,e=n.length,i=0;for(t=0;t<e;++t)(r=gme(n[t]))[2]>i&&(i=r[2],m=r);return m||[[],[]]},transform:n7,transformLabel:function ame(n,t,e){var i=t.transform(e[0]);n.spaceSize=t.getSquareSize(e[1]),n.text.attr({translateX:i[0],translateY:i[1]}),Q3(n)},draw:function(n,t,e){t.root=n.renderer.path([],"line").data(n.dataKey,e)},refresh:vc,getLabelOffset:function(n){return Q3(n),[0,0]},getStyles:function(n){var t=n.color||n.borderColor||null,e=Ca(n.borderWidth,null),i=Ca(n.opacity,null);return{root:[{class:"dxm-line",stroke:t,"stroke-width":e,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:n.hoveredColor||n.hoveredBorderColor||t,"stroke-width":Ca(n.hoveredBorderWidth,e),opacity:Ca(n.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:n.selectedColor||n.selectedBorderColor||t,"stroke-width":Ca(n.selectedBorderWidth,e),opacity:Ca(n.selectedOpacity,i)}]}},setState:function(n,t,e){zp(n,t,e,"root")},hasLabelsGroup:!0,updateGrouping:function(n){d1(n)},getDefaultColor:vc},Wy[Dw]={project:function eme(n,t){return n.project(t)},transform:function ime(n,t,e){var i=t.transform(e);n.root.attr({translateX:i[0],translateY:i[1]})},draw:function(n,t,e){t.root=n.renderer.g(),this._draw(n,t,e)},refresh:vc,hasLabelsGroup:!1,getLabelOffset:function(n,t){return[Gfe((n.size[0]+Cu(t.size||0,0))/2)+2,0]},getStyles:function(n){var t={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(t,n),t},setState:function(n,t,e){zp(n,t,e,"root"),this._setState(n,t,e)},updateGrouping:function(n){d1(n),d2(n)},getDefaultColor:function(n,t){return n.params.themeManager.getAccentColor(t)}},u1[Ow]=function(n){return{project:(t,e)=>e[0]&&e[0][0]&&e[0][0][0]&&"number"==typeof e[0][0][0][0]?function nme(n,t){var i,e=[],r=e.length=t.length;for(i=0;i<r;++i)e[i]=c2(n,t[i]);return zfe.apply([],e)}(t,e):c2(t,e)}},u1[zy]=function(n){var t=n.coordinates;return{project:t[0]&&t[0][0]&&"number"==typeof t[0][0][0]?c2:tme}},Mw[Dw]={_default:"dot",dot:{setup:function(n){n.filter=n.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(n){n.filter.dispose(),n.filter=null},_draw:function(n,t,e){t.back=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root),t.dot=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i,r){t.dot.attr({filter:r.shadow?n.filter.id:null})},_getStyles:function(n,t){var e=t.size>0?kd(t.size):0,i=e,r=e+(t.selectedStep>0?kd(t.selectedStep):0),m=i+(t.backStep>0?kd(t.backStep):0),D=r+(t.backStep>0?kd(t.backStep):0),A=t.color||null,N=t.borderColor||null,Q=Ca(t.borderWidth,null),se=Ca(t.opacity,null),we=t.backColor||null,Re=Ca(t.backOpacity,null);n.dot=[{r:e/2,stroke:N,"stroke-width":Q,fill:A,opacity:se},{r:i/2,stroke:t.hoveredBorderColor||N,"stroke-width":Ca(t.hoveredBorderWidth,Q),fill:t.hoveredColor||A,opacity:Ca(t.hoveredOpacity,se)},{r:r/2,stroke:t.selectedBorderColor||N,"stroke-width":Ca(t.selectedBorderWidth,Q),fill:t.selectedColor||A,opacity:Ca(t.selectedOpacity,se)}],n.back=[{r:e/2,stroke:"none","stroke-width":0,fill:we,opacity:Re},{r:m/2,stroke:"none","stroke-width":0,fill:we,opacity:Re},{r:D/2,stroke:"none","stroke-width":0,fill:we,opacity:Re}]},_setState:function(n,t,e){zp(n,t,e,"dot"),zp(n,t,e,"back")}},bubble:{_draw:function(n,t,e){t.bubble=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i,r){t.bubble.attr({r:r.size/2})},_getStyles:function(n,t){var e=t.color||null,i=t.borderColor||null,r=Ca(t.borderWidth,null),m=Ca(t.opacity,null);n.bubble=[{stroke:i,"stroke-width":r,fill:e,opacity:m},{stroke:t.hoveredBorderColor||i,"stroke-width":Ca(t.hoveredBorderWidth,r),fill:t.hoveredColor||t.color,opacity:Ca(t.hoveredOpacity,m)},{stroke:t.selectedBorderColor||i,"stroke-width":Ca(t.selectedBorderWidth,r),fill:t.selectedColor||t.color,opacity:Ca(t.selectedOpacity,m)}]},_setState:function(n,t,e){zp(n,t,e,"bubble")},arrange:function(n,t){var i,e=[],r=e.length=t.length,m=n.settings,D=m.dataField,A=m.minSize>0?kd(m.minSize):0,N=m.maxSize>A?kd(m.maxSize):A;if(!m.sizeGroups){for(i=0;i<r;++i)e[i]=Cu(Iw(t[i].proxy,D)||0,0);var Q=Hp.apply(null,e),we=Cu.apply(null,e)-Q||1,Re=N-A;for(i=0;i<r;++i)t[i]._settings.size=A+Re*(e[i]-Q)/we}},updateGrouping:function(n){var t=n.settings.dataField;Wy[Dw].updateGrouping(n),d2(n,function(e){return Iw(e,t)})}},pie:{_draw:function(n,t,e){t.pie=n.renderer.g().append(t.root),t.border=n.renderer.circle().sharp().data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i,r){var m=Iw(i,n.settings.dataField)||[],D=r._colors,A=0,N=t.pie,Q=n.renderer,se=n.dataKey,we=(r.size>0?kd(r.size):0)/2,Re=90,Ue=Re,st=!1;0===(A=m.reduce(function(Ot,Kt){return Ot+(Kt||0)},0))&&(st=!0,A=360/m.length),m.forEach(function(Ot,Kt){Q.arc(0,0,0,we,Re=Ue,Ue+=st?A:(Ot||0)/A*360).attr({"stroke-linejoin":"round",fill:D[Kt]}).data(se,e).append(N)}),t.border.attr({r:we})},_getStyles:function(n,t){var e=Ca(t.opacity,null),i=t.borderColor||null,r=Ca(t.borderWidth,null);n.pie=[{opacity:e},{opacity:Ca(t.hoveredOpacity,e)},{opacity:Ca(t.selectedOpacity,e)}],n.border=[{stroke:i,"stroke-width":r},{stroke:t.hoveredBorderColor||i,"stroke-width":Ca(t.hoveredBorderWidth,r)},{stroke:t.selectedBorderColor||i,"stroke-width":Ca(t.selectedBorderWidth,r)}]},_setState:function(n,t,e){zp(n,t,e,"pie"),zp(n,t,e,"border")},arrange:function(n,t){var e,m,i=t.length,r=n.settings.dataField,D=0;for(e=0;e<i;++e)(m=Iw(t[e].proxy,r))&&m.length>D&&(D=m.length);D>0&&(m=n.params.themeManager.createPalette(n.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(D),n.settings._colors=m,n.grouping.color={callback:vc,field:"",partition:[],values:[]},n.params.dataExchanger.set(n.name,"color",{partition:[],values:m}))}},image:{_draw:function(n,t,e){t.image=n.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(n.dataKey,e).append(t.root)},refresh:function(n,t,e,i){t.image.attr({href:Iw(i,n.settings.dataField)})},_getStyles:function(n,t){var e=t.size>0?kd(t.size):0,i=e+(t.hoveredStep>0?kd(t.hoveredStep):0),r=e+(t.selectedStep>0?kd(t.selectedStep):0),m=Ca(t.opacity,null);n.image=[{x:-e/2,y:-e/2,width:e,height:e,opacity:m},{x:-i/2,y:-i/2,width:i,height:i,opacity:Ca(t.hoveredOpacity,m)},{x:-r/2,y:-r/2,width:r,height:r,opacity:Ca(t.selectedOpacity,m)}]},_setState:function(n,t,e){zp(n,t,e,"image")}}};var o7=function(n,t,e,i,r){var m;i&&t&&t.length>1&&(m=r(t.length-1),n.grouping[e]={callback:(0,w.mf)(i)?i:dme,field:i,partition:t,values:m},n.params.dataExchanger.set(n.name,e,{partition:t,values:m,defaultColor:n.settings.color}))};function a7(n){var t=n.name,e=n.params.dataExchanger;Sw(n.grouping,function(i){e.set(t,i,null)}),n.grouping={}}function p2(n,t,e){return e?n|=t:n&=~t,n}function g2(n,t){return!!(n&t)}d1=function(n){o7(n,n.settings.colorGroups,"color",n.settings.colorGroupingField,function(t){var i,e=n.params.themeManager.createDiscretePalette(n.settings.palette,t),r=[];for(i=0;i<t;++i)r.push(e.getColor(i));return r})},d2=function(n,t){var e=n.settings;o7(n,e.sizeGroups,"size",t||e.sizeGroupingField,function(i){var r=e.minSize>0?kd(e.minSize):0,m=e.maxSize>=r?kd(e.maxSize):0,D=0,A=[];if(i>1)for(D=0;D<i;++D)A.push((r*(i-D-1)+m*D)/(i-1));else 1===i&&A.push((r+m)/2);return A})};var c1,f2=function(n,t,e,i){this._params=n,this._onProjection(),this.proxy=function cme(n,t,e){var i={index:e,name:t,getElements:function(){return n.getProxies()},clearSelection:function(r){return n.clearSelection(r),i},getDataSource:function(){return n.getDataSource()},getBounds:()=>n.getBounds()};return i}(this,e,i),this._context={name:e,layer:this.proxy,renderer:n.renderer,projection:n.projection,params:n,dataKey:n.dataKey,str:e7,hover:!1,selection:null,grouping:{},root:n.renderer.g().attr({class:"dxm-layer"}).linkOn(t,e).linkAppend()},this._container=t,this._options={},this._handles=[],this._data=new s2,this._dataSourceLoaded=null};function pme(n){var t,i,m,e=n.length,r=n[e-1],D=0,A=0,N=0,Q=1/0,se=-1/0,we=1/0,Re=-1/0;for(t=0;t<e;++t)N+=m=(i=r)[0]*(r=n[t])[1]-r[0]*i[1],D+=(i[0]+r[0])*m,A+=(i[1]+r[1])*m,Q=Hp(Q,r[0]),se=Cu(se,r[0]),we=Hp(we,r[1]),Re=Cu(Re,r[1]);return{area:Kfe(N)/2,center:[2*D/3/N-(Q+se)/2,2*A/3/N-(we+Re)/2]}}function gme(n){var t,i,e=n.length,r=n[0]||[],m=0,D=[0],A=r[0],N=r[0],Q=r[1],se=r[1];for(t=1;t<e;++t)m+=o2(((i=r)[0]-(r=n[t])[0])*(i[0]-r[0])+(i[1]-r[1])*(i[1]-r[1])),D[t]=m,A=Hp(A,r[0]),N=Cu(N,r[0]),Q=Hp(Q,r[1]),se=Cu(se,r[1]);i=n[t=i7(m/2,D)],r=n[t+1];var we=(m/2-D[t])/(D[t+1]-D[t]);return e?[[i[0]*(1-we)+r[0]*we,i[1]*(1-we)+r[1]*we],[N-A,se-Q],m]:[]}function m2(n){var t=n.renderer;this._params=n,this._layers=[],this._layerByName={},this._rect=[0,0,0,0],this._clip=t.clipRect(),this._background=t.rect().attr({class:"dxm-background"}).data(n.dataKey,{name:"background"}).append(t.root),this._container=t.g().attr({class:"dxm-layers","clip-path":this._clip.id}).append(t.root).enableLinks(),this._subscribeToTracker(n.tracker,t,n.eventTrigger),this._dataReady=n.dataReady}function _2(n){this._subscribeToTracker(n.tracker,n.tooltip,n.layerCollection)}f2.prototype=Ah({constructor:f2,getDataReadyCallback(){return this._dataSourceLoaded},_onProjection:function(){var n=this;n._removeHandlers=n._params.projection.on({engine:function(){n._project()},screen:function(){n._transform()},center:function(){n._transformCore()},zoom:function(){n._transform()}})},getData(){return this._data},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){this._data=function $fe(n){var t;return n&&(u2(n)?t=l1:1===n.length&&n[0]&&u2(n[0])?(t=l1,n=n[0]):Tw(n)&&(t=l2)),new(t=t||s2)(n)}(this._dataSource&&this._dataSource.items()),this._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_normalizeDataSource:function(n){var t=n.store();return"raw"===t._loadMode&&(t._loadMode=void 0),n},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){return this._disposeDataSource(),this._destroyHandles(),a7(this._context),this._context.root.linkRemove().linkOff(),this._context.labelRoot&&this._context.labelRoot.linkRemove().linkOff(),this._context.str.reset(this._context),this._offProjection(),this._params=this._container=this._context=this.proxy=null,this},setOptions:function(n){n=this._options=n||{},this._dataSourceLoaded=new P.BH,"dataSource"in n&&n.dataSource!==this._options_dataSource?(this._options_dataSource=n.dataSource,this._params.notifyDirty(),this._specificDataSourceOption=function Yfe(n){return n?u2(n)?[n]:n:[]}(n.dataSource),this._refreshDataSource()):this._data.count()>0&&(this._params.notifyDirty(),this._update(void 0!==n.type&&n.type!==this._context.str.type||void 0!==n.elementType&&n.elementType!==this._context.str.elementType)),this._transformCore()},_update:function(n){var t=this._context;n&&(t.str.reset(t),t.root.clear(),t.labelRoot&&t.labelRoot.clear(),this._params.tracker.reset(),this._destroyHandles(),t.str=function(n,t){var r,e=En(n.type),i=En(n.elementType),m=Ah({},e7);return t.count()>0&&(r=t.geometry(t.item(0)),e=Wy[e]?e:function Jfe(n){var t=qfe[n.type],e=n.coordinates;return t||(t="number"==typeof e[0]?Dw:"number"==typeof e[0][0]?zy:Ow),t}(r),Ah(m,Wy[e]),m.fullType=m.type=e,u1[e]&&Ah(m,u1[e](r)),Mw[e]&&(Ah(m,Mw[e][i=Mw[e][i]?i:Mw[e]._default]),m.elementType=i,m.fullType+=":"+i)),m}(this._options,this._data),t.str.setup(t),this.proxy.type=t.str.type,this.proxy.elementType=t.str.elementType),t.settings=function ume(n,t){var m,D,A,e=n.params.themeManager,i=n.str,r=h2(Ah({label:{},color:i.getDefaultColor(n,t.palette)},e.theme("layer:"+i.fullType)),t);if(r.paletteSize>0){for(A=e.createDiscretePalette(r.palette,r.paletteSize),D=0,m=[];D<r.paletteSize;++D)m.push(A.getColor(D));r._colors=m}return r}(t,this._options),t.hasSeparateLabel=!(!t.settings.label.enabled||!t.str.hasLabelsGroup),t.hover=!!Qn(t.settings.hoverEnabled,!0),t.selection&&Sw(t.selection.state,function(e,i){i&&i.resetSelected()}),t.selection=function jfe(n){var t=En(n);return null!==(t=t in r2?r2[t]:r2.single)&&(t={state:{},single:t}),t}(t.settings.selectionMode),t.hasSeparateLabel?t.labelRoot||(t.labelRoot=t.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(this._container,{name:t.name+"-labels",after:t.name}).linkAppend(),this._transformCore()):t.labelRoot&&(t.labelRoot.linkRemove().linkOff(),t.labelRoot=null),n&&this._createHandles(),a7(t),t.str.arrange(t,this._handles),t.str.updateGrouping(t),this._updateHandles(),this._params.notifyReady(),this._dataSourceLoaded?(this._dataSourceLoaded.resolve(),this._dataSourceLoaded=null):this._params.dataReady()},getBounds(){return a2(this._handles.map(n=>{var{proxy:t}=n;return t.coordinates().map(e=>{if(Tw(e)){var i=Tw(e[0][0])?e.reduce((m,D)=>m.concat(D),[]):e,r=i[0];return i.reduce((m,D)=>[Hp(m[0],D[0]),Hp(m[1],D[1]),Cu(m[2],D[0]),Cu(m[3],D[1])],[r[0],r[1],r[0],r[1]])}})}).map(a2))},_destroyHandles(){this._handles.forEach(n=>n.dispose()),this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var e,A,N,n=this._handles=[],t=this._data,i=n.length=t.count(),r=this._context,m=t.geometry,D=t.attributes;for(e=0;e<i;++e)N=t.item(e),n[e]=new c1(r,e,m(N),D(N));for((0,w.mf)(this._options.customize)&&function Xfe(n,t,e){t.call(e,n)}(this.getProxies(),this._options.customize,this._params.widget),e=0;e<i;++e)(A=n[e]).project(),A.draw(),A.transform();r.selection&&Sw(r.selection.state,function(Q,se){se&&se.restoreSelected()})},_updateHandles:function(){var t,n=this._handles,e=n.length;for(t=0;t<e;++t)n[t].refresh();if(this._context.settings.label.enabled){for(t=0;t<e;++t)n[t].measureLabel();for(t=0;t<e;++t)n[t].adjustLabel()}},_transformCore:function(){var n=this._params.projection.getTransform();this._context.root.attr(n),this._context.labelRoot&&this._context.labelRoot.attr(n)},_project:function(){var t,n=this._handles,e=n.length;for(t=0;t<e;++t)n[t].project()},_transform:function(){var t,n=this._handles,e=n.length;for(this._transformCore(),t=0;t<e;++t)n[t].transform()},getProxies(){return this._handles.map(n=>n.proxy)},getProxy:function(n){return this._handles[n].proxy},raiseClick:function(n,t){this._params.eventTrigger("click",{target:this._handles[n].proxy,event:t})},hoverItem:function(n,t){this._handles[n].setHovered(t)},selectItem:function(n,t,e){this._handles[n].setSelected(t,e)},clearSelection:function(){var n=this._context.selection;n&&(Sw(n.state,function(t,e){e&&e.setSelected(!1)}),n.state={})}},yo.Z),c1=function(n,t,e,i){var r=this.proxy=function hme(n,t,e){var i={coordinates:function(){return t},attribute:function(r,m){return arguments.length>1?(e[r]=m,i):arguments.length>0?e[r]:e},selected:function(r,m){return arguments.length>0?(n.setSelected(r,m),i):n.isSelected()},applySettings:function(r){return n.update(r),i}};return i}(this,e.coordinates,Ah({},i));this._ctx=n,this._index=t,this._fig=this._label=null,this._state=0,this._coordinates=e.coordinates,this._settings={label:{}},r.index=t,r.layer=n.layer,this._data={name:n.name,index:t}},c1.prototype={constructor:c1,dispose:function(){return this._ctx=this.proxy=this._settings=this._fig=this._label=this.data=null,this},project:function(){var n=this._ctx;this._projection=n.str.project(n.projection,this._coordinates),n.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var n=this._ctx;n.str.draw(n,this._fig={},this._data),this._fig.root.append(n.root)},transform:function(){var n=this._ctx;n.str.transform(this._fig,n.projection,this._projection),n.hasSeparateLabel&&this._label&&this._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var n=this._ctx.str,t=function sme(n,t,e){var i=h2(n.settings,e);return function lme(n,t,e){Sw(n,function(i,r){var m=i7(r.callback(t,r.field),r.partition);m>=0&&(e[i]=r.values[m])})}(n.grouping,t,i),void 0===e.color&&e.paletteIndex>=0&&(i.color=i._colors[e.paletteIndex]),i}(this._ctx,this.proxy,this._settings);this._styles=n.getStyles(t),n.refresh(this._ctx,this._fig,this._data,this.proxy,t),this._refreshLabel(t),this._setState()},_refreshLabel:function(n){var t=this._ctx,e=n.label,i=this._label;t.settings.label.enabled?(i||(i=this._label={root:t.labelRoot||this._fig.root,text:t.renderer.text().attr({class:"dxm-label"}),size:[0,0]},t.hasSeparateLabel&&(this._projectLabel(),this._transformLabel())),i.value=Zfe(this.proxy.text||this.proxy.attribute(e.dataField)||""),i.value&&(i.text.attr({text:i.value,x:0,y:0}).css(ci(e.font)).attr({align:"center",stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"]}).data(t.dataKey,this._data).append(i.root),i.settings=n)):i&&(i.text.remove(),this._label=null)},measureLabel:function(){var t,n=this._label;n.value&&(t=n.text.getBBox(),n.size=[t.width,t.height,-t.y-t.height/2])},adjustLabel:function(){var t,n=this._label;n.value&&(t=this._ctx.str.getLabelOffset(n,n.settings),n.settings=null,n.text.attr({x:t[0],y:t[1]+n.size[2]}))},update:function(n){this._settings=h2(this._settings,n),this._fig&&(this.refresh(),this._label&&this._label.value&&(this.measureLabel(),this.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,Ufe[this._state])},_setForeground:function(){var n=this._fig.root;this._state?n.toForeground():n.toBackground()},setHovered:function(n){var t=g2(this._state,1),e=!!n;return this._ctx.hover&&t!==e&&(this._state=p2(this._state,1,e),this._setState(),this._setForeground(),r7(this._ctx,this,e,"hoverChanged")),this},setSelected:function(n,t){var m,e=g2(this._state,2),i=!!n,r=this._ctx.selection;r&&e!==i&&(this._state=p2(this._state,2,i),m=r.state[r.single],r.state[r.single]=null,m&&m.setSelected(!1),r.state[r.single||this._index]=n?this:null,this._fig&&(this._setState(),this._setForeground(),t||r7(this._ctx,this,i,"selectionChanged")))},isSelected:function(){return g2(this._state,2)},resetSelected:function(){this._state=p2(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},m2.prototype={constructor:m2,dispose:function(){this._clip.dispose(),this._layers.forEach(n=>n.dispose()),this._offTracker(),this._params=this._offTracker=this._layers=this._layerByName=this._clip=this._background=this._container=null},_subscribeToTracker:function(n,t,e){var i=this;i._offTracker=n.on({click:function(r){var m=t.getRootOffset(),D=i.byName(r.data.name);r.$event.x=r.x-m.left,r.$event.y=r.y-m.top,D?D.raiseClick(r.data.index,r.$event):"background"===r.data.name&&e("click",{event:r.$event})},"hover-on":function(r){var m=i.byName(r.data.name);m&&m.hoverItem(r.data.index,!0)},"hover-off":function(r){var m=i.byName(r.data.name);m&&m.hoverItem(r.data.index,!1)}})},setOptions(n){var i,t=n?Tw(n)?n:[n]:[],e=this._layers;if(t.length!==e.length||e.some((se,we)=>{var Re=q3(t,we);return(0,w.$K)(Re)&&Re!==se.proxy.name})){this._params.tracker.reset(),this._layers.forEach(se=>se.dispose());var m=this._layerByName={};this._layers=e=[];for(var D=0,A=t.length;D<A;++D){var N=q3(t,D)||"map-layer-"+D,Q=e[D]=new f2(this._params,this._container,N,D);m[N]=Q}}e.forEach((se,we)=>{se.setOptions(t[we])}),(i=e.map(se=>se.getDataReadyCallback())).length&&P.gx.apply(void 0,i).done(this._dataReady)},_updateClip:function(){var n=this._rect,t=this._borderWidth;this._clip.attr({x:n[0]+t,y:n[1]+t,width:Cu(n[2]-2*t,0),height:Cu(n[3]-2*t,0)})},setBackgroundOptions:function(n){this._background.attr({stroke:n.borderColor,"stroke-width":n.borderWidth,fill:n.color}),this._borderWidth=Cu(n.borderWidth,0),this._updateClip()},setRect:function(n){this._rect=n,this._background.attr({x:n[0],y:n[1],width:n[2],height:n[3]}),this._updateClip()},byIndex:function(n){return this._layers[n]},byName:function(n){return this._layerByName[n]},items:function(){return this._layers}},_2.prototype={constructor:_2,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(n,t,e){this._offTracker=n.on({"focus-on":function(i){var r,m;if(t.isEnabled()){var D=A=>{A&&i.done(A)};(m=(r=e.byName(i.data.name))&&r.getProxy(i.data.index))&&D(t.show(m,{x:i.x,y:i.y,offset:12},{target:m},void 0,D))}},"focus-move":function(i){t.move(i.x,i.y,12)},"focus-off":function(){t.hide()}})}};var _me=1,yme=Math.min,Cme=Math.max,xme=Math.sin,bme=Math.asin,l7=Math.tan,h1=Math.atan,p1=Math.exp,u7=Math.log,Rd=Math.PI,d7=Rd/4,jf=180,$f=Rd/180,wme=(2*h1(p1(Rd))-Rd/2)/$f,Eme=(2.5*h1(p1(.8*Rd))-.625*Rd)/$f;function g1(n,t){return Cme(yme(n,+t),-t)}Xl.add("mercator",Xl({aspectRatio:1,to:function(n){return[n[0]/jf,u7(l7(d7+g1(n[1],wme)*$f/2))/Rd]},from:function(n){return[n[0]*jf,(2*h1(p1(n[1]*Rd))-Rd/2)/$f]}})),Xl.add("equirectangular",Xl({aspectRatio:2,to:function(n){return[n[0]/jf,n[1]/90]},from:function(n){return[n[0]*jf,90*n[1]]}})),Xl.add("lambert",Xl({aspectRatio:2,to:function(n){return[n[0]/jf,xme(g1(n[1],90)*$f)]},from:function(n){return[n[0]*jf,bme(g1(n[1],1))/$f]}})),Xl.add("miller",Xl({aspectRatio:1,to:function(n){return[n[0]/jf,1.25*u7(l7(d7+g1(n[1],Eme)*$f*.4))/Rd]},from:function(n){return[n[0]*jf,(2.5*h1(p1(.8*n[1]*Rd))-.625*Rd)/$f]}}));var Dme=/^layers/,Tme=/\.dataSource$/;function c7(n,t){return t?[Math.min(t[0],t[2],n[0]),Math.min(t[1],t[3],n[3]),Math.max(t[0],t[2],n[2]),Math.max(t[1],t[3],n[1])]:n}var Yf=xl.inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(n){var t=this;t._layerCollection=new m2({renderer:t._renderer,projection:t._projection,themeManager:t._themeManager,tracker:t._tracker,dataKey:n,eventTrigger:t._eventTrigger,dataExchanger:t._dataExchanger,tooltip:t._tooltip,notifyDirty:t._notifyDirty,notifyReady:t._notifyReady,dataReady(){var e;if(t.option("getBoundsFromData")&&!t.option("bounds")&&(t._preventProjectionEvents(),e=t._getBoundsFromData(),t._projection.setBounds(e),t._allowProjectionEvents()),!t.option("projection")&&(e=e||t._getBoundsFromData(),Math.ceil(e[0])<-180||Math.ceil(e[3])<-90||Math.floor(e[2])>180||Math.floor(e[1])>90)){var i=e[2]-e[0],r=e[1]-e[3];t._projection.setEngine({to:m=>[2*(m[0]-e[0])/i-1,2*(m[1]-e[3])/r-1],from:m=>[(m[0]+1)*i/2+e[0],(m[1]+1)*r/2+e[3]]})}}})},_getBoundsFromData(){var n=this._getBoundingBoxFromDataSource();if(!n){var t=a2(this.getLayers().map(e=>e.getBounds()));t&&(n=t)}return[(n=n||[])[0],n[3],n[2],n[1]]},_initLegendsControl:function(){this._legendsControl=new t2({renderer:this._renderer,container:this._root,widget:this,layoutControl:this._layoutControl,themeManager:this._themeManager,dataExchanger:this._dataExchanger,notifyDirty:this._notifyDirty,notifyReady:this._notifyReady})},_initControlBar:function(n){this._controlBar=new GR({renderer:this._renderer,container:this._root,layoutControl:this._layoutControl,projection:this._projection,tracker:this._tracker,dataKey:n})},_initElements:function(){var i,n=this,t=function vme(){return"vectormap-data-"+_me++}(),e=0;n._preventProjectionEvents=function(){i=!0},n._allowProjectionEvents=function(){i=!1},n._notifyDirty=function(){n._resetIsReady(),++e},n._notifyReady=function(){n._allowProjectionEvents(),0==--e&&n._drawn()},n._preventProjectionEvents(),n._dataExchanger=new QR,n._projection=new jT({centerChanged:function(r){i||n._eventTrigger("centerChanged",{center:r})},zoomChanged:function(r){i||n._eventTrigger("zoomFactorChanged",{zoomFactor:r})}}),n._tracker=new n1({root:n._root,projection:n._projection,dataKey:t}),n._gestureHandler=new jR({projection:n._projection,renderer:n._renderer,tracker:n._tracker}),n._layoutControl=new i2(n),n._layoutControl.suspend(),n._initLayerCollection(t),n._createHtmlStructure(),n._initControlBar(t),n._initLegendsControl(),n._prepareExtraElements(),n._tooltipViewer=new _2({tracker:n._tracker,tooltip:n._tooltip,layerCollection:n._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_customChangesOrder:["EXTRA_ELEMENTS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){this._controlBar.dispose(),this._gestureHandler.dispose(),this._tracker.dispose(),this._legendsControl.dispose(),this._layerCollection.dispose(),this._layoutControl.dispose(),this._tooltipViewer.dispose(),this._dataExchanger.dispose(),this._projection.dispose(),this._dataExchanger=this._gestureHandler=this._projection=this._tracker=this._layoutControl=this._root=this._layerCollection=this._controlBar=this._legendsControl=null},_setupInteraction:function(){var n={centeringEnabled:!!Qn(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!Qn(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(n),this._controlBar.setInteraction(n)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(n){var t={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1],right:0,bottom:0};this._projection.setSize(t),this._layoutControl.setSize(t),this._layerCollection.setRect([t.left,t.top,t.width,t.height]),this._requestChange(["EXTRA_ELEMENTS"])},_optionChanging:function(n,t,e){t&&e&&Dme.test(n)&&(t.dataSource&&e.dataSource&&t!==e?t.dataSource=null:Tme.test(n)&&this.option(n,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",extraElements:"EXTRA_ELEMENTS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_EXTRA_ELEMENTS:function(){this._renderExtraElements()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_getBoundingBoxFromDataSource(){var n=this._layerCollection.items(),t=[1/0,-1/0,-1/0,1/0],e=n&&n.length?n.reduce((i,r)=>{var m=r.getData(),D=m.count();if(D>0){var A=m.getBBox();if(A)i=c7(i,A);else for(var N=0;N<D;N++)i=c7(i,m.getBBox(N))}return i},t):void 0;return e===t?void 0:e},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers(){return this._layerCollection.items().map(n=>n.proxy)},getLayerByIndex:function(n){var t=this._layerCollection.byIndex(n);return t?t.proxy:null},getLayerByName:function(n){var t=this._layerCollection.byName(n);return t?t.proxy:null},clearSelection:function(n){var e,t=this._layerCollection.items(),i=t.length;for(e=0;e<i;++e)t[e].clearSelection(n);return this},center:function(n){return void 0===n?this._projection.getCenter():(this._projection.setCenter(n),this)},zoomFactor:function(n){return void 0===n?this._projection.getZoom():(this._projection.setZoom(n),this)},viewport:function(n){return void 0===n?this._projection.getViewport():(this._projection.setViewport(n),this)},convertCoordinates:function(n){return this.convertToGeo((n=n&&n.length?n:[arguments[0],arguments[1]])[0],n[1])},convertToGeo:function(n,t){return this._projection.fromScreenPoint([n,t])},convertToXY:function(n,t){return this._projection.toScreenPoint([n,t])}});(0,T.Z)("dxVectorMap",Yf),Yf.addPlugin(Bu),Yf.addPlugin(Oe),Yf.addPlugin(Fe),Yf.addPlugin(wi),Yf.addPlugin(wf.core),Yf.addPlugin(wf.vectorMap);let h7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.DTQ,M.zk3,M.K9Y,M.lj9,M.gMt,M.e1H,M.DrR,M.KjY,M.mR_,M.rrz,M.lTN,M.rHV,M.nRD,M.Kx,M.vZC,g.Lz,g.ie,p.Cu],M.KOH,M.bgw,M.YXG,M.qB1,M.Ois,M.DTQ,M.zk3,M.K9Y,M.lj9,M.gMt,M.e1H,M.DrR,M.KjY,M.mR_,M.rrz,M.lTN,M.rHV,M.nRD,M.Kx,M.vZC,g.ie]}),n})(),Ame=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=a.oAB({type:n}),n.\u0275inj=a.cJS({imports:[[fe,Te.o,pe,RI,rS,UI,ZI.e,o0,sf,YL,XL.W,qL,JL,QL,eB.x,nB,uB,LB,FB,ZB,jB,$B,PF,kF.Q,RF,LF.A,ZF,QF,S8,O8.O,M8,A8.O,P8,k8,V8,K8,G8,j8,Y8,Q8,dV,cV,hV,gV,fV.C,mV,_V,zV,YV,RN,BN,FN,qN,pz,gz.r,fz.D,mz,_z,Ez,Oz,Dz,Tz,Iz,Mz,Az,Pz.a,Lz,Bz,Fz,Vz,Nz,h3,p3,g3,f3,m3.B,h7,g.ie],fe,Te.o,pe,RI,rS,UI,ZI.e,o0,sf,YL,XL.W,qL,JL,QL,eB.x,nB,uB,LB,FB,ZB,jB,$B,PF,kF.Q,RF,LF.A,ZF,QF,S8,O8.O,M8,A8.O,P8,k8,V8,K8,G8,j8,Y8,Q8,dV,cV,hV,gV,fV.C,mV,_V,zV,YV,RN,BN,FN,qN,pz,gz.r,fz.D,mz,_z,Ez,Oz,Dz,Tz,Iz,Mz,Az,Pz.a,Lz,Bz,Fz,Vz,Nz,h3,p3,g3,f3,m3.B,h7,g.ie]}),n})()},8699:function(Rn){Rn.exports=function(he){var u={};function o(c){if(u[c])return u[c].exports;var I=u[c]={i:c,l:!1,exports:{}};return he[c].call(I.exports,I,I.exports,o),I.l=!0,I.exports}return o.m=he,o.c=u,o.d=function(c,I,C){o.o(c,I)||Object.defineProperty(c,I,{enumerable:!0,get:C})},o.r=function(c){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})},o.t=function(c,I){if(1&I&&(c=o(c)),8&I||4&I&&"object"==typeof c&&c&&c.__esModule)return c;var C=Object.create(null);if(o.r(C),Object.defineProperty(C,"default",{enumerable:!0,value:c}),2&I&&"string"!=typeof c)for(var g in c)o.d(C,g,function(a){return c[a]}.bind(null,g));return C},o.n=function(c){var I=c&&c.__esModule?function(){return c.default}:function(){return c};return o.d(I,"a",I),I},o.o=function(c,I){return Object.prototype.hasOwnProperty.call(c,I)},o.p="",o(o.s=176)}([function(he,u,o){"use strict";o.d(u,"c",function(){return U}),o.d(u,"b",function(){return Y}),o.d(u,"d",function(){return j}),o.d(u,"a",function(){return K});var c=o(1),I=o.n(c),C=o(16),g=o.n(C),a=o(37),p=o.n(a),s=o(2),l=o(4),d=o(3),h=o(12),v=o(7),x=o(44),b=o(23),y=o(57);function E(G){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Z){return typeof Z}:function(Z){return Z&&"function"==typeof Symbol&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z})(G)}function S(G,q,Z){return q in G?Object.defineProperty(G,q,{value:Z,enumerable:!0,configurable:!0,writable:!0}):G[q]=Z,G}function O(G,q){return function P(G){if(Array.isArray(G))return G}(G)||function R(G,q){var Z=null==G?null:typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(null!=Z){var fe,Te,X=[],M=!0,oe=!1;try{for(Z=Z.call(G);!(M=(fe=Z.next()).done)&&(X.push(fe.value),!q||X.length!==q);M=!0);}catch(Be){oe=!0,Te=Be}finally{try{!M&&null!=Z.return&&Z.return()}finally{if(oe)throw Te}}return X}}(G,q)||function T(G,q){if(G){if("string"==typeof G)return k(G,q);var Z=Object.prototype.toString.call(G).slice(8,-1);if("Object"===Z&&G.constructor&&(Z=G.constructor.name),"Map"===Z||"Set"===Z)return Array.from(G);if("Arguments"===Z||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return k(G,q)}}(G,q)||function w(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(G,q){(null==q||q>G.length)&&(q=G.length);for(var Z=0,X=new Array(q);Z<q;Z++)X[Z]=G[Z];return X}function B(G,q){if(!(G instanceof q))throw new TypeError("Cannot call a class as a function")}function W(G,q){for(var Z=0;Z<q.length;Z++){var X=q[Z];X.enumerable=X.enumerable||!1,X.configurable=!0,"value"in X&&(X.writable=!0),Object.defineProperty(G,X.key,X)}}var V=Object(b.a)("quill"),U=new s.Registry;s.ParentBlot.uiClass="ql-ui";var K=function(){function G(q){var Z=this,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(B(this,G),this.options=Y(q,X),this.container=this.options.container,null==this.container)return V.error("Invalid Quill container",q);this.options.debug&&G.debug(this.options.debug);var M=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",x.a.set(this.container,this),this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new d.a;var oe=this.options.registry.query(s.ScrollBlot.blotName);this.scroll=new oe(this.options.registry,this.root,{emitter:this.emitter,toggleBlankClass:this.toggleBlankClass.bind(this)}),this.editor=new l.a(this.scroll),this.selection=new v.b(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.uploader=this.theme.addModule("uploader"),this.theme.init(),this.emitter.on(d.a.events.EDITOR_CHANGE,function(fe){fe===d.a.events.TEXT_CHANGE&&Z.toggleBlankClass()}),this.emitter.on(d.a.events.SCROLL_UPDATE,function(fe,Te){var Be=Z.selection.lastRange,_e=O(Z.selection.getRange(),1)[0],ye=Be&&_e?{oldRange:Be,newRange:_e}:void 0;J.call(Z,function(){return Z.editor.update(null,Te,ye)},fe)}),this.setContents(this.getInitialContent(M)),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable(),this.allowReadOnlyEdits=!1}return function z(G,q,Z){return q&&W(G.prototype,q),Z&&W(G,Z),G}(G,[{key:"getInitialContent",value:function(Z){return this.clipboard.convert({html:"".concat(Z,"<p><br></p>"),text:"\n"})}},{key:"toggleBlankClass",value:function(){this.root.classList.toggle("ql-blank",this.editor.isBlank(this.selection.composing))}},{key:"addContainer",value:function(Z){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof Z){var M=Z;(Z=document.createElement("div")).classList.add(M)}return this.container.insertBefore(Z,X),Z}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(Z,X,M){var oe=this,Te=O(j(Z,X,M),4);return J.call(this,function(){return oe.editor.deleteText(Z,X)},M=Te[3],Z=Te[0],-1*(X=Te[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"editReadOnly",value:function(Z){this.allowReadOnlyEdits=!0;var X=Z();return this.allowReadOnlyEdits=!1,X}},{key:"enable",value:function(){var Z=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(Z),this.container.classList.toggle("ql-disabled",!Z)}},{key:"focus",value:function(){var Z=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=Z,this.scrollIntoView()}},{key:"format",value:function(Z,X){var M=this;return J.call(this,function(){var fe=M.getSelection(!0),Te=new I.a;if(null==fe)return Te;if(M.scroll.query(Z,s.Scope.BLOCK))Te=M.editor.formatLine(fe.index,fe.length,S({},Z,X));else{if(0===fe.length)return M.selection.format(Z,X),Te;Te=M.editor.formatText(fe.index,fe.length,S({},Z,X))}return M.setSelection(fe,d.a.sources.SILENT),Te},arguments.length>2&&void 0!==arguments[2]?arguments[2]:d.a.sources.API)}},{key:"formatLine",value:function(Z,X,M,oe,fe){var Be,Te=this,ae=O(j(Z,X,M,oe,fe),4);return X=ae[1],Be=ae[2],J.call(this,function(){return Te.editor.formatLine(Z,X,Be)},fe=ae[3],Z=ae[0],0)}},{key:"formatText",value:function(Z,X,M,oe,fe){var Be,Te=this,ae=O(j(Z,X,M,oe,fe),4);return X=ae[1],Be=ae[2],J.call(this,function(){return Te.editor.formatText(Z,X,Be)},fe=ae[3],Z=ae[0],0)}},{key:"getBounds",value:function(Z){var M;M="number"==typeof Z?this.selection.getBounds(Z,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(Z.index,Z.length);var oe=this.container.getBoundingClientRect();return{bottom:M.bottom-oe.top,height:M.height,left:M.left-oe.left,right:M.right-oe.left,top:M.top-oe.top,width:M.width}}},{key:"getContents",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-Z,oe=O(j(Z,X),2);return this.editor.getContents(Z=oe[0],X=oe[1])}},{key:"getFormat",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof Z?this.editor.getFormat(Z,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(Z.index,Z.length)}},{key:"getIndex",value:function(Z){return Z.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(Z){return this.scroll.leaf(Z)}},{key:"getLine",value:function(Z){return this.scroll.line(Z)}},{key:"getLines",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof Z?this.scroll.lines(Z.index,Z.length):this.scroll.lines(Z,X)}},{key:"getModule",value:function(Z){return this.theme.modules[Z]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getSemanticHTML",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-Z,oe=O(j(Z,X),2);return this.editor.getHTML(Z=oe[0],X=oe[1])}},{key:"getText",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-Z,oe=O(j(Z,X),2);return this.editor.getText(Z=oe[0],X=oe[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(Z,X,M){var oe=this;return J.call(this,function(){return oe.editor.insertEmbed(Z,X,M)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:G.sources.API,Z)}},{key:"insertText",value:function(Z,X,M,oe,fe){var Be,Te=this,ae=O(j(Z,0,M,oe,fe),4);return Be=ae[2],J.call(this,function(){return Te.editor.insertText(Z,X,Be)},fe=ae[3],Z=ae[0],X.length)}},{key:"isEnabled",value:function(){return this.scroll.isEnabled()}},{key:"off",value:function(){var Z;return(Z=this.emitter).off.apply(Z,arguments)}},{key:"on",value:function(){var Z;return(Z=this.emitter).on.apply(Z,arguments)}},{key:"once",value:function(){var Z;return(Z=this.emitter).once.apply(Z,arguments)}},{key:"removeFormat",value:function(Z,X,M){var oe=this,Te=O(j(Z,X,M),4);return X=Te[1],J.call(this,function(){return oe.editor.removeFormat(Z,X)},M=Te[3],Z=Te[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(Z){var X=this;return J.call(this,function(){Z=new I.a(Z);var oe=X.getLength(),fe=X.editor.deleteText(0,oe),Te=X.editor.applyDelta(Z),Be=X.editor.deleteText(X.getLength()-1,1);return X.emitter.emit(G.events.CONTENT_SETTED),fe.compose(Te).compose(Be)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a.sources.API)}},{key:"setSelection",value:function(Z,X,M){if(null==Z)this.selection.setRange(null,X||G.sources.API);else{var fe=O(j(Z,X,M),4);Z=fe[0],X=fe[1],M=fe[3],this.selection.setRange(new v.a(Math.max(0,Z),X),M),M!==d.a.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(Z){var X=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a.sources.API,M=(new I.a).insert(Z);return this.setContents(M,X)}},{key:"update",value:function(){var Z=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.a.sources.USER,X=this.scroll.update(Z);return this.selection.update(Z),X}},{key:"updateContents",value:function(Z){var X=this,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a.sources.API;return J.call(this,function(){return Z=new I.a(Z),X.editor.applyDelta(Z,M)},M,!0)}}],[{key:"debug",value:function(Z){!0===Z&&(Z="log"),b.a.level(Z)}},{key:"find",value:function(Z){return x.a.get(Z)||U.find(Z)}},{key:"import",value:function(Z){return null==this.imports[Z]&&V.error("Cannot import ".concat(Z,". Are you sure it was registered?")),this.imports[Z]}},{key:"register",value:function(Z,X){var M=this,oe=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof Z){var fe=Z.attrName||Z.blotName;"string"==typeof fe?this.register("formats/".concat(fe),Z,X):Object.keys(Z).forEach(function(Te){M.register(Te,Z[Te],X)})}else null!=this.imports[Z]&&!oe&&V.warn("Overwriting ".concat(Z," with"),X),this.imports[Z]=X,(0===Z.indexOf("blots/")||0===Z.indexOf("formats/"))&&"abstract"!==X.blotName&&U.register(X),"function"==typeof X.register&&X.register(U)}}]),G}();function Y(G,q){if((q=p()({container:G,modules:{clipboard:!0,keyboard:!0,history:!0,uploader:!0}},q)).theme&&q.theme!==K.DEFAULTS.theme){if(q.theme=K.import("themes/".concat(q.theme)),null==q.theme)throw new Error("Invalid theme ".concat(q.theme,". Did you register it?"))}else q.theme=y.a;var Z=g()(q.theme.DEFAULTS);[Z,q].forEach(function(oe){oe.modules=oe.modules||{},Object.keys(oe.modules).forEach(function(fe){!0===oe.modules[fe]&&(oe.modules[fe]={})})});var M=Object.keys(Z.modules).concat(Object.keys(q.modules)).reduce(function(oe,fe){var Te=K.import("modules/".concat(fe));return null==Te?V.error("Cannot load ".concat(fe," module. Are you sure you registered it?")):oe[fe]=Te.DEFAULTS||{},oe},{});return null!=q.modules&&q.modules.toolbar&&q.modules.toolbar.constructor!==Object&&(q.modules.toolbar={container:q.modules.toolbar}),q=p()({},K.DEFAULTS,{modules:M},Z,q),["bounds","container","scrollingContainer"].forEach(function(oe){"string"==typeof q[oe]&&(q[oe]=document.querySelector(q[oe]))}),q.modules=Object.keys(q.modules).reduce(function(oe,fe){return q.modules[fe]&&(oe[fe]=q.modules[fe]),oe},{}),q}function J(G,q,Z,X){if(!this.isEnabled()&&q===d.a.sources.USER&&!this.allowReadOnlyEdits)return new I.a;var M=null==Z?null:this.getSelection(),oe=this.editor.delta,fe=G();if(null!=M&&(!0===Z&&(Z=M.index),null==X?M=ee(M,fe,q):0!==X&&(M=ee(M,Z,X,q)),this.setSelection(M,d.a.sources.SILENT)),fe.length()>0){var Te,ze,Be=[d.a.events.TEXT_CHANGE,fe,oe,q];(Te=this.emitter).emit.apply(Te,[d.a.events.EDITOR_CHANGE].concat(Be)),q!==d.a.sources.SILENT&&(ze=this.emitter).emit.apply(ze,Be)}return fe}function j(G,q,Z,X,M){var oe={};return"number"==typeof G.index&&"number"==typeof G.length?"number"!=typeof q?(M=X,X=Z,Z=q,q=G.length,G=G.index):(q=G.length,G=G.index):"number"!=typeof q&&(M=X,X=Z,Z=q,q=0),"object"===E(Z)?(oe=Z,M=X):"string"==typeof Z&&(null!=X?oe[Z]=X:M=Z),[G,q,oe,M=M||d.a.sources.API]}function ee(G,q,Z,X){if(null==G)return null;var M,oe;if(q instanceof I.a){var Te=O([G.index,G.index+G.length].map(function(ae){return q.transformPosition(ae,X!==d.a.sources.USER)}),2);M=Te[0],oe=Te[1]}else{var ze=O([G.index,G.index+G.length].map(function(ae){return ae<q||ae===q&&X===d.a.sources.USER?ae:Z>=0?ae+Z:Math.max(q,ae+Z)}),2);M=ze[0],oe=ze[1]}return new v.a(M,oe-M)}K.DEFAULTS={bounds:null,modules:{},placeholder:"",readOnly:!1,registry:U,scrollingContainer:null,theme:"default"},K.events=d.a.events,K.sources=d.a.sources,K.version="1.5.20",K.imports={delta:I.a,parchment:s,"core/module":h.a,"core/theme":y.a}},function(he,u,o){"use strict";var c=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}},I=c(o(118)),C=c(o(16)),g=c(o(30)),a=c(o(119)),p=c(o(94)),s=String.fromCharCode(0),l=function(){function d(h){this.ops=Array.isArray(h)?h:null!=h&&Array.isArray(h.ops)?h.ops:[]}return d.prototype.insert=function(h,v){var x={};return"string"==typeof h&&0===h.length?this:(x.insert=h,null!=v&&"object"==typeof v&&Object.keys(v).length>0&&(x.attributes=v),this.push(x))},d.prototype.delete=function(h){return h<=0?this:this.push({delete:h})},d.prototype.retain=function(h,v){if(h<=0)return this;var x={retain:h};return null!=v&&"object"==typeof v&&Object.keys(v).length>0&&(x.attributes=v),this.push(x)},d.prototype.push=function(h){var v=this.ops.length,x=this.ops[v-1];if(h=C.default(h),"object"==typeof x){if("number"==typeof h.delete&&"number"==typeof x.delete)return this.ops[v-1]={delete:x.delete+h.delete},this;if("number"==typeof x.delete&&null!=h.insert&&"object"!=typeof(x=this.ops[(v-=1)-1]))return this.ops.unshift(h),this;if(g.default(h.attributes,x.attributes)){if("string"==typeof h.insert&&"string"==typeof x.insert)return this.ops[v-1]={insert:x.insert+h.insert},"object"==typeof h.attributes&&(this.ops[v-1].attributes=h.attributes),this;if("number"==typeof h.retain&&"number"==typeof x.retain)return this.ops[v-1]={retain:x.retain+h.retain},"object"==typeof h.attributes&&(this.ops[v-1].attributes=h.attributes),this}}return v===this.ops.length?this.ops.push(h):this.ops.splice(v,0,h),this},d.prototype.chop=function(){var h=this.ops[this.ops.length-1];return h&&h.retain&&!h.attributes&&this.ops.pop(),this},d.prototype.filter=function(h){return this.ops.filter(h)},d.prototype.forEach=function(h){this.ops.forEach(h)},d.prototype.map=function(h){return this.ops.map(h)},d.prototype.partition=function(h){var v=[],x=[];return this.forEach(function(b){(h(b)?v:x).push(b)}),[v,x]},d.prototype.reduce=function(h,v){return this.ops.reduce(h,v)},d.prototype.changeLength=function(){return this.reduce(function(h,v){return v.insert?h+p.default.length(v):v.delete?h-v.delete:h},0)},d.prototype.length=function(){return this.reduce(function(h,v){return h+p.default.length(v)},0)},d.prototype.slice=function(h,v){void 0===h&&(h=0),void 0===v&&(v=1/0);for(var x=[],b=p.default.iterator(this.ops),y=0;y<v&&b.hasNext();){var E=void 0;y<h?E=b.next(h-y):(E=b.next(v-y),x.push(E)),y+=p.default.length(E)}return new d(x)},d.prototype.compose=function(h){var v=p.default.iterator(this.ops),x=p.default.iterator(h.ops),b=[],y=x.peek();if(null!=y&&"number"==typeof y.retain&&null==y.attributes){for(var E=y.retain;"insert"===v.peekType()&&v.peekLength()<=E;)E-=v.peekLength(),b.push(v.next());y.retain-E>0&&x.next(y.retain-E)}for(var S=new d(b);v.hasNext()||x.hasNext();)if("insert"===x.peekType())S.push(x.next());else if("delete"===v.peekType())S.push(v.next());else{var O=Math.min(v.peekLength(),x.peekLength()),w=v.next(O),T=x.next(O);if("number"==typeof T.retain){var k={};"number"==typeof w.retain?k.retain=O:k.insert=w.insert;var R=a.default.compose(w.attributes,T.attributes,"number"==typeof w.retain);if(R&&(k.attributes=R),S.push(k),!x.hasNext()&&g.default(S.ops[S.ops.length-1],k)){var P=new d(v.rest());return S.concat(P).chop()}}else"number"==typeof T.delete&&"number"==typeof w.retain&&S.push(T)}return S.chop()},d.prototype.concat=function(h){var v=new d(this.ops.slice());return h.ops.length>0&&(v.push(h.ops[0]),v.ops=v.ops.concat(h.ops.slice(1))),v},d.prototype.diff=function(h,v){if(this.ops===h.ops)return new d;var x=[this,h].map(function(O){return O.map(function(w){if(null!=w.insert)return"string"==typeof w.insert?w.insert:s;throw new Error("diff() called "+(O===h?"on":"with")+" non-document")}).join("")}),b=new d,y=I.default(x[0],x[1],v),E=p.default.iterator(this.ops),S=p.default.iterator(h.ops);return y.forEach(function(O){for(var w=O[1].length;w>0;){var T=0;switch(O[0]){case I.default.INSERT:T=Math.min(S.peekLength(),w),b.push(S.next(T));break;case I.default.DELETE:T=Math.min(w,E.peekLength()),E.next(T),b.delete(T);break;case I.default.EQUAL:T=Math.min(E.peekLength(),S.peekLength(),w);var k=E.next(T),R=S.next(T);g.default(k.insert,R.insert)?b.retain(T,a.default.diff(k.attributes,R.attributes)):b.push(R).delete(T)}w-=T}}),b.chop()},d.prototype.eachLine=function(h,v){void 0===v&&(v="\n");for(var x=p.default.iterator(this.ops),b=new d,y=0;x.hasNext();){if("insert"!==x.peekType())return;var E=x.peek(),S=p.default.length(E)-x.peekLength(),O="string"==typeof E.insert?E.insert.indexOf(v,S)-S:-1;if(O<0)b.push(x.next());else if(O>0)b.push(x.next(O));else{if(!1===h(b,x.next(1).attributes||{},y))return;y+=1,b=new d}}b.length()>0&&h(b,{},y)},d.prototype.invert=function(h){var v=new d;return this.reduce(function(x,b){if(b.insert)v.delete(p.default.length(b));else{if(b.retain&&null==b.attributes)return v.retain(b.retain),x+b.retain;if(b.delete||b.retain&&b.attributes){var y=b.delete||b.retain;return h.slice(x,x+y).forEach(function(S){b.delete?v.push(S):b.retain&&b.attributes&&v.retain(p.default.length(S),a.default.invert(b.attributes,S.attributes))}),x+y}}return x},0),v.chop()},d.prototype.transform=function(h,v){if(void 0===v&&(v=!1),v=!!v,"number"==typeof h)return this.transformPosition(h,v);for(var x=h,b=p.default.iterator(this.ops),y=p.default.iterator(x.ops),E=new d;b.hasNext()||y.hasNext();)if("insert"!==b.peekType()||!v&&"insert"===y.peekType())if("insert"===y.peekType())E.push(y.next());else{var S=Math.min(b.peekLength(),y.peekLength()),O=b.next(S),w=y.next(S);if(O.delete)continue;w.delete?E.push(w):E.retain(S,a.default.transform(O.attributes,w.attributes,v))}else E.retain(p.default.length(b.next()));return E.chop()},d.prototype.transformPosition=function(h,v){void 0===v&&(v=!1),v=!!v;for(var x=p.default.iterator(this.ops),b=0;x.hasNext()&&b<=h;){var y=x.peekLength(),E=x.peekType();x.next(),"delete"!==E?("insert"===E&&(b<h||!v)&&(h+=y),b+=y):h-=Math.min(y,h-b)}return h},d.Op=p.default,d.AttributeMap=a.default,d}();he.exports=l},function(he,u,o){"use strict";o.r(u),o.d(u,"ParentBlot",function(){return E}),o.d(u,"ContainerBlot",function(){return w}),o.d(u,"LeafBlot",function(){return R}),o.d(u,"EmbedBlot",function(){return ae}),o.d(u,"ScrollBlot",function(){return le}),o.d(u,"BlockBlot",function(){return Te}),o.d(u,"InlineBlot",function(){return M}),o.d(u,"TextBlot",function(){return re}),o.d(u,"Attributor",function(){return B}),o.d(u,"ClassAttributor",function(){return U}),o.d(u,"StyleAttributor",function(){return j}),o.d(u,"AttributorStore",function(){return G}),o.d(u,"Registry",function(){return d}),o.d(u,"Scope",function(){return I});var te,c=(()=>{return(te=c||(c={}))[te.TYPE=3]="TYPE",te[te.LEVEL=12]="LEVEL",te[te.ATTRIBUTE=13]="ATTRIBUTE",te[te.BLOT=14]="BLOT",te[te.INLINE=7]="INLINE",te[te.BLOCK=11]="BLOCK",te[te.BLOCK_BLOT=10]="BLOCK_BLOT",te[te.INLINE_BLOT=6]="INLINE_BLOT",te[te.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",te[te.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",te[te.ANY=15]="ANY",c;var te})(),I=c,C=function(){function te(){this.head=null,this.tail=null,this.length=0}return te.prototype.append=function(){for(var ie=[],ue=0;ue<arguments.length;ue++)ie[ue]=arguments[ue];if(this.insertBefore(ie[0],null),ie.length>1){var be=ie.slice(1);this.append.apply(this,be)}},te.prototype.at=function(ie){for(var ue=this.iterator(),be=ue();be&&ie>0;)ie-=1,be=ue();return be},te.prototype.contains=function(ie){for(var ue=this.iterator(),be=ue();be;){if(be===ie)return!0;be=ue()}return!1},te.prototype.indexOf=function(ie){for(var ue=this.iterator(),be=ue(),Ae=0;be;){if(be===ie)return Ae;Ae+=1,be=ue()}return-1},te.prototype.insertBefore=function(ie,ue){null!=ie&&(this.remove(ie),ie.next=ue,null!=ue?(ie.prev=ue.prev,null!=ue.prev&&(ue.prev.next=ie),ue.prev=ie,ue===this.head&&(this.head=ie)):null!=this.tail?(this.tail.next=ie,ie.prev=this.tail,this.tail=ie):(ie.prev=null,this.head=this.tail=ie),this.length+=1)},te.prototype.offset=function(ie){for(var ue=0,be=this.head;null!=be;){if(be===ie)return ue;ue+=be.length(),be=be.next}return-1},te.prototype.remove=function(ie){this.contains(ie)&&(null!=ie.prev&&(ie.prev.next=ie.next),null!=ie.next&&(ie.next.prev=ie.prev),ie===this.head&&(this.head=ie.next),ie===this.tail&&(this.tail=ie.prev),this.length-=1)},te.prototype.iterator=function(ie){return void 0===ie&&(ie=this.head),function(){var ue=ie;return null!=ie&&(ie=ie.next),ue}},te.prototype.find=function(ie,ue){void 0===ue&&(ue=!1);for(var be=this.iterator(),Ae=be();Ae;){var Ne=Ae.length();if(ie<Ne||ue&&ie===Ne&&(null==Ae.next||0!==Ae.next.length()))return[Ae,ie];ie-=Ne,Ae=be()}return[null,0]},te.prototype.forEach=function(ie){for(var ue=this.iterator(),be=ue();be;)ie(be),be=ue()},te.prototype.forEachAt=function(ie,ue,be){if(!(ue<=0))for(var Ae=this.find(ie),tt=ie-Ae[1],Le=this.iterator(Ae[0]),gt=Le();gt&&tt<ie+ue;){var tn=gt.length();ie>tt?be(gt,ie-tt,Math.min(ue,tt+tn-ie)):be(gt,0,Math.min(tn,ie+ue-tt)),tt+=tn,gt=Le()}},te.prototype.map=function(ie){return this.reduce(function(ue,be){return ue.push(ie(be)),ue},[])},te.prototype.reduce=function(ie,ue){for(var be=this.iterator(),Ae=be();Ae;)ue=ie(ue,Ae),Ae=be();return ue},te}(),g=C,a=(te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)},function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}),p=function(te){function ie(ue){var be=this;return(be=te.call(this,ue="[Parchment] "+ue)||this).message=ue,be.name=be.constructor.name,be}return a(ie,te),ie}(Error),s=p,l=function(){function te(){this.attributes={},this.classes={},this.tags={},this.types={}}return te.find=function(ie,ue){return void 0===ue&&(ue=!1),null==ie?null:this.blots.has(ie)?this.blots.get(ie)||null:ue?this.find(ie.parentNode,ue):null},te.prototype.create=function(ie,ue,be){var Ae=this.query(ue);if(null==Ae)throw new s("Unable to create "+ue+" blot");var Ne=Ae,mt=ue instanceof Node||ue.nodeType===Node.TEXT_NODE?ue:Ne.create(be),tt=new Ne(ie,mt,be);return te.blots.set(tt.domNode,tt),tt},te.prototype.find=function(ie,ue){return void 0===ue&&(ue=!1),te.find(ie,ue)},te.prototype.query=function(ie,ue){var Ae,be=this;return void 0===ue&&(ue=I.ANY),"string"==typeof ie?Ae=this.types[ie]||this.attributes[ie]:ie instanceof Text||ie.nodeType===Node.TEXT_NODE?Ae=this.types.text:"number"==typeof ie?ie&I.LEVEL&I.BLOCK?Ae=this.types.block:ie&I.LEVEL&I.INLINE&&(Ae=this.types.inline):ie instanceof HTMLElement&&((ie.getAttribute("class")||"").split(/\s+/).some(function(mt){return!!(Ae=be.classes[mt])}),Ae=Ae||this.tags[ie.tagName]),null==Ae?null:ue&I.LEVEL&Ae.scope&&ue&I.TYPE&Ae.scope?Ae:null},te.prototype.register=function(){for(var ie=this,ue=[],be=0;be<arguments.length;be++)ue[be]=arguments[be];if(ue.length>1)return ue.map(function(mt){return ie.register(mt)});var Ae=ue[0];if("string"!=typeof Ae.blotName&&"string"!=typeof Ae.attrName)throw new s("Invalid definition");if("abstract"===Ae.blotName)throw new s("Cannot register abstract class");return this.types[Ae.blotName||Ae.attrName]=Ae,"string"==typeof Ae.keyName?this.attributes[Ae.keyName]=Ae:(null!=Ae.className&&(this.classes[Ae.className]=Ae),null!=Ae.tagName&&(Ae.tagName=Array.isArray(Ae.tagName)?Ae.tagName.map(function(mt){return mt.toUpperCase()}):Ae.tagName.toUpperCase(),(Array.isArray(Ae.tagName)?Ae.tagName:[Ae.tagName]).forEach(function(mt){(null==ie.tags[mt]||null==Ae.className)&&(ie.tags[mt]=Ae)}))),Ae},te.blots=new WeakMap,te}(),d=l,h=function(){function te(ie,ue){this.scroll=ie,this.domNode=ue,d.blots.set(ue,this),this.prev=null,this.next=null}return te.create=function(ie){if(null==this.tagName)throw new s("Blot definition missing tagName");var ue;return Array.isArray(this.tagName)?("string"==typeof ie&&(ie=ie.toUpperCase(),parseInt(ie,10).toString()===ie&&(ie=parseInt(ie,10))),ue="number"==typeof ie?document.createElement(this.tagName[ie-1]):this.tagName.indexOf(ie)>-1?document.createElement(ie):document.createElement(this.tagName[0])):ue=document.createElement(this.tagName),this.className&&ue.classList.add(this.className),ue},Object.defineProperty(te.prototype,"statics",{get:function(){return this.constructor},enumerable:!1,configurable:!0}),te.prototype.attach=function(){},te.prototype.clone=function(){var ie=this.domNode.cloneNode(!1);return this.scroll.create(ie)},te.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),d.blots.delete(this.domNode)},te.prototype.deleteAt=function(ie,ue){this.isolate(ie,ue).remove()},te.prototype.formatAt=function(ie,ue,be,Ae){var Ne=this.isolate(ie,ue);if(null!=this.scroll.query(be,I.BLOT)&&Ae)Ne.wrap(be,Ae);else if(null!=this.scroll.query(be,I.ATTRIBUTE)){var mt=this.scroll.create(this.statics.scope);Ne.wrap(mt),mt.format(be,Ae)}},te.prototype.insertAt=function(ie,ue,be){var Ae=null==be?this.scroll.create("text",ue):this.scroll.create(ue,be),Ne=this.split(ie);this.parent.insertBefore(Ae,Ne||void 0)},te.prototype.isolate=function(ie,ue){var be=this.split(ie);if(null==be)throw new Error("Attempt to isolate at end");return be.split(ue),be},te.prototype.length=function(){return 1},te.prototype.offset=function(ie){return void 0===ie&&(ie=this.parent),null==this.parent||this===ie?0:this.parent.children.offset(this)+this.parent.offset(ie)},te.prototype.optimize=function(ie){this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName)},te.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},te.prototype.replaceWith=function(ie,ue){var be="string"==typeof ie?this.scroll.create(ie,ue):ie;return null!=this.parent&&(this.parent.insertBefore(be,this.next||void 0),this.remove()),be},te.prototype.split=function(ie,ue){return 0===ie?this:this.next},te.prototype.update=function(ie,ue){},te.prototype.wrap=function(ie,ue){var be="string"==typeof ie?this.scroll.create(ie,ue):ie;if(null!=this.parent&&this.parent.insertBefore(be,this.next||void 0),"function"!=typeof be.appendChild)throw new s("Cannot wrap "+ie);return be.appendChild(this),be},te.blotName="abstract",te}(),v=h,x=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}();function b(te,ie){var ue=ie.find(te);if(null==ue)try{ue=ie.create(te)}catch{ue=ie.create(I.INLINE),Array.from(te.childNodes).forEach(function(Ae){ue.domNode.appendChild(Ae)}),te.parentNode&&te.parentNode.replaceChild(ue.domNode,te),ue.attach()}return ue}var y=function(te){function ie(ue,be){var Ae=te.call(this,ue,be)||this;return Ae.uiNode=null,Ae.build(),Ae}return x(ie,te),ie.prototype.appendChild=function(ue){this.insertBefore(ue)},ie.prototype.attach=function(){te.prototype.attach.call(this),this.children.forEach(function(ue){ue.attach()})},ie.prototype.attachUI=function(ue){null!=this.uiNode&&this.uiNode.remove(),this.uiNode=ue,ie.uiClass&&this.uiNode.classList.add(ie.uiClass),this.uiNode.setAttribute("contenteditable","false"),this.domNode.insertBefore(this.uiNode,this.domNode.firstChild)},ie.prototype.build=function(){var ue=this;this.children=new g,Array.from(this.domNode.childNodes).filter(function(be){return be!==ue.uiNode}).reverse().forEach(function(be){try{var Ae=b(be,ue.scroll);ue.insertBefore(Ae,ue.children.head||void 0)}catch(Ne){if(Ne instanceof s)return;throw Ne}})},ie.prototype.deleteAt=function(ue,be){if(0===ue&&be===this.length())return this.remove();this.children.forEachAt(ue,be,function(Ae,Ne,mt){Ae.deleteAt(Ne,mt)})},ie.prototype.descendant=function(ue,be){void 0===be&&(be=0);var Ae=this.children.find(be),Ne=Ae[0],mt=Ae[1];return null==ue.blotName&&ue(Ne)||null!=ue.blotName&&Ne instanceof ue?[Ne,mt]:Ne instanceof ie?Ne.descendant(ue,mt):[null,-1]},ie.prototype.descendants=function(ue,be,Ae){void 0===be&&(be=0),void 0===Ae&&(Ae=Number.MAX_VALUE);var Ne=[],mt=Ae;return this.children.forEachAt(be,Ae,function(tt,Le,gt){(null==ue.blotName&&ue(tt)||null!=ue.blotName&&tt instanceof ue)&&Ne.push(tt),tt instanceof ie&&(Ne=Ne.concat(tt.descendants(ue,Le,mt))),mt-=gt}),Ne},ie.prototype.detach=function(){this.children.forEach(function(ue){ue.detach()}),te.prototype.detach.call(this)},ie.prototype.enforceAllowedChildren=function(){var ue=this,be=!1;this.children.forEach(function(Ae){be||ue.statics.allowedChildren.some(function(mt){return Ae instanceof mt})||(Ae.statics.scope===I.BLOCK_BLOT?(null!=Ae.next&&ue.splitAfter(Ae),null!=Ae.prev&&ue.splitAfter(Ae.prev),Ae.parent.unwrap(),be=!0):Ae instanceof ie?Ae.unwrap():Ae.remove())})},ie.prototype.formatAt=function(ue,be,Ae,Ne){this.children.forEachAt(ue,be,function(mt,tt,Le){mt.formatAt(tt,Le,Ae,Ne)})},ie.prototype.insertAt=function(ue,be,Ae){var Ne=this.children.find(ue),mt=Ne[0];if(mt)mt.insertAt(Ne[1],be,Ae);else{var Le=null==Ae?this.scroll.create("text",be):this.scroll.create(be,Ae);this.appendChild(Le)}},ie.prototype.insertBefore=function(ue,be){null!=ue.parent&&ue.parent.children.remove(ue);var Ae=null;this.children.insertBefore(ue,be||null),ue.parent=this,null!=be&&(Ae=be.domNode),(this.domNode.parentNode!==ue.domNode||this.domNode.nextSibling!==Ae)&&this.domNode.insertBefore(ue.domNode,Ae),ue.attach()},ie.prototype.length=function(){return this.children.reduce(function(ue,be){return ue+be.length()},0)},ie.prototype.moveChildren=function(ue,be){this.children.forEach(function(Ae){ue.insertBefore(Ae,be)})},ie.prototype.optimize=function(ue){if(te.prototype.optimize.call(this,ue),this.enforceAllowedChildren(),null!=this.uiNode&&this.uiNode!==this.domNode.firstChild&&this.domNode.insertBefore(this.uiNode,this.domNode.firstChild),0===this.children.length)if(null!=this.statics.defaultChild){var be=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(be)}else this.remove()},ie.prototype.path=function(ue,be){void 0===be&&(be=!1);var Ae=this.children.find(ue,be),Ne=Ae[0],mt=Ae[1],tt=[[this,ue]];return Ne instanceof ie?tt.concat(Ne.path(mt,be)):(null!=Ne&&tt.push([Ne,mt]),tt)},ie.prototype.removeChild=function(ue){this.children.remove(ue)},ie.prototype.replaceWith=function(ue,be){var Ae="string"==typeof ue?this.scroll.create(ue,be):ue;return Ae instanceof ie&&this.moveChildren(Ae),te.prototype.replaceWith.call(this,Ae)},ie.prototype.split=function(ue,be){if(void 0===be&&(be=!1),!be){if(0===ue)return this;if(ue===this.length())return this.next}var Ae=this.clone();return this.parent&&this.parent.insertBefore(Ae,this.next||void 0),this.children.forEachAt(ue,this.length(),function(Ne,mt,tt){var Le=Ne.split(mt,be);null!=Le&&Ae.appendChild(Le)}),Ae},ie.prototype.splitAfter=function(ue){for(var be=this.clone();null!=ue.next;)be.appendChild(ue.next);return this.parent&&this.parent.insertBefore(be,this.next||void 0),be},ie.prototype.unwrap=function(){this.parent&&this.moveChildren(this.parent,this.next||void 0),this.remove()},ie.prototype.update=function(ue,be){var Ae=this,Ne=[],mt=[];ue.forEach(function(tt){tt.target===Ae.domNode&&"childList"===tt.type&&(Ne.push.apply(Ne,tt.addedNodes),mt.push.apply(mt,tt.removedNodes))}),mt.forEach(function(tt){if(!(null!=tt.parentNode&&"IFRAME"!==tt.tagName&&document.body.compareDocumentPosition(tt)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var Le=Ae.scroll.find(tt);null!=Le&&(null==Le.domNode.parentNode||Le.domNode.parentNode===Ae.domNode)&&Le.detach()}}),Ne.filter(function(tt){return tt.parentNode===Ae.domNode||tt===Ae.uiNode}).sort(function(tt,Le){return tt===Le?0:tt.compareDocumentPosition(Le)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(tt){var Le=null;null!=tt.nextSibling&&(Le=Ae.scroll.find(tt.nextSibling));var gt=b(tt,Ae.scroll);(gt.next!==Le||null==gt.next)&&(null!=gt.parent&&gt.parent.removeChild(Ae),Ae.insertBefore(gt,Le||void 0))}),this.enforceAllowedChildren()},ie.uiClass="",ie}(v),E=y,S=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}(),O=function(te){function ie(){return null!==te&&te.apply(this,arguments)||this}return S(ie,te),ie.prototype.checkMerge=function(){return null!==this.next&&this.next.statics.blotName===this.statics.blotName},ie.prototype.deleteAt=function(ue,be){te.prototype.deleteAt.call(this,ue,be),this.enforceAllowedChildren()},ie.prototype.formatAt=function(ue,be,Ae,Ne){te.prototype.formatAt.call(this,ue,be,Ae,Ne),this.enforceAllowedChildren()},ie.prototype.insertAt=function(ue,be,Ae){te.prototype.insertAt.call(this,ue,be,Ae),this.enforceAllowedChildren()},ie.prototype.optimize=function(ue){te.prototype.optimize.call(this,ue),this.children.length>0&&null!=this.next&&this.checkMerge()&&(this.next.moveChildren(this),this.next.remove())},ie.blotName="container",ie.scope=I.BLOCK_BLOT,ie}(E),w=O,T=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}(),k=function(te){function ie(){return null!==te&&te.apply(this,arguments)||this}return T(ie,te),ie.value=function(ue){return!0},ie.prototype.index=function(ue,be){return this.domNode===ue||this.domNode.compareDocumentPosition(ue)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(be,1):-1},ie.prototype.position=function(ue,be){var Ne=Array.from(this.parent.domNode.childNodes).indexOf(this.domNode);return ue>0&&(Ne+=1),[this.parent.domNode,Ne]},ie.prototype.value=function(){var ue;return(ue={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,ue},ie.scope=I.INLINE_BLOT,ie}(v),R=k,P=function(){function te(ie,ue,be){void 0===be&&(be={}),this.attrName=ie,this.keyName=ue,this.scope=null!=be.scope?be.scope&I.LEVEL|I.TYPE&I.ATTRIBUTE:I.ATTRIBUTE,null!=be.whitelist&&(this.whitelist=be.whitelist)}return te.keys=function(ie){return Array.from(ie.attributes).map(function(ue){return ue.name})},te.prototype.add=function(ie,ue){return!!this.canAdd(ie,ue)&&(ie.setAttribute(this.keyName,ue),!0)},te.prototype.canAdd=function(ie,ue){return null==this.whitelist||("string"==typeof ue?this.whitelist.indexOf(ue.replace(/["']/g,""))>-1:this.whitelist.indexOf(ue)>-1)},te.prototype.remove=function(ie){ie.removeAttribute(this.keyName)},te.prototype.value=function(ie){var ue=ie.getAttribute(this.keyName);return this.canAdd(ie,ue)&&ue?ue:""},te}(),B=P,W=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}();function z(te,ie){return(te.getAttribute("class")||"").split(/\s+/).filter(function(be){return 0===be.indexOf(ie+"-")})}var V=function(te){function ie(){return null!==te&&te.apply(this,arguments)||this}return W(ie,te),ie.keys=function(ue){return(ue.getAttribute("class")||"").split(/\s+/).map(function(be){return be.split("-").slice(0,-1).join("-")})},ie.prototype.add=function(ue,be){return!!this.canAdd(ue,be)&&(this.remove(ue),ue.classList.add(this.keyName+"-"+be),!0)},ie.prototype.remove=function(ue){z(ue,this.keyName).forEach(function(Ae){ue.classList.remove(Ae)}),0===ue.classList.length&&ue.removeAttribute("class")},ie.prototype.value=function(ue){var Ae=(z(ue,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(ue,Ae)?Ae:""},ie}(B),U=V,K=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}();function Y(te){var ie=te.split("-"),ue=ie.slice(1).map(function(be){return be[0].toUpperCase()+be.slice(1)}).join("");return ie[0]+ue}var J=function(te){function ie(){return null!==te&&te.apply(this,arguments)||this}return K(ie,te),ie.keys=function(ue){return(ue.getAttribute("style")||"").split(";").map(function(be){return be.split(":")[0].trim()})},ie.prototype.add=function(ue,be){return!!this.canAdd(ue,be)&&(ue.style[Y(this.keyName)]=be,!0)},ie.prototype.remove=function(ue){ue.style[Y(this.keyName)]="",ue.getAttribute("style")||ue.removeAttribute("style")},ie.prototype.value=function(ue){var be=ue.style[Y(this.keyName)];return this.canAdd(ue,be)?be:""},ie}(B),j=J,ee=function(){function te(ie){this.attributes={},this.domNode=ie,this.build()}return te.prototype.attribute=function(ie,ue){ue?ie.add(this.domNode,ue)&&(null!=ie.value(this.domNode)?this.attributes[ie.attrName]=ie:delete this.attributes[ie.attrName]):(ie.remove(this.domNode),delete this.attributes[ie.attrName])},te.prototype.build=function(){var ie=this;this.attributes={};var ue=d.find(this.domNode);if(null!=ue){var be=B.keys(this.domNode),Ae=U.keys(this.domNode),Ne=j.keys(this.domNode);be.concat(Ae).concat(Ne).forEach(function(mt){var tt=ue.scroll.query(mt,I.ATTRIBUTE);tt instanceof B&&(ie.attributes[tt.attrName]=tt)})}},te.prototype.copy=function(ie){var ue=this;Object.keys(this.attributes).forEach(function(be){var Ae=ue.attributes[be].value(ue.domNode);ie.format(be,Ae)})},te.prototype.move=function(ie){var ue=this;this.copy(ie),Object.keys(this.attributes).forEach(function(be){ue.attributes[be].remove(ue.domNode)}),this.attributes={}},te.prototype.values=function(){var ie=this;return Object.keys(this.attributes).reduce(function(ue,be){return ue[be]=ie.attributes[be].value(ie.domNode),ue},{})},te}(),G=ee,q=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}();var X=function(te){function ie(ue,be){var Ae=te.call(this,ue,be)||this;return Ae.attributes=new G(Ae.domNode),Ae}return q(ie,te),ie.formats=function(ue,be){var Ae=be.query(ie.blotName);if(null==Ae||ue.tagName!==Ae.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return ue.tagName.toLowerCase()}},ie.prototype.format=function(ue,be){var Ae=this;if(ue!==this.statics.blotName||be){var Ne=this.scroll.query(ue,I.INLINE);if(null==Ne)return;Ne instanceof B?this.attributes.attribute(Ne,be):be&&(ue!==this.statics.blotName||this.formats()[ue]!==be)&&this.replaceWith(ue,be)}else this.children.forEach(function(mt){mt instanceof ie||(mt=mt.wrap(ie.blotName,!0)),Ae.attributes.copy(mt)}),this.unwrap()},ie.prototype.formats=function(){var ue=this.attributes.values(),be=this.statics.formats(this.domNode,this.scroll);return null!=be&&(ue[this.statics.blotName]=be),ue},ie.prototype.formatAt=function(ue,be,Ae,Ne){null!=this.formats()[Ae]||this.scroll.query(Ae,I.ATTRIBUTE)?this.isolate(ue,be).format(Ae,Ne):te.prototype.formatAt.call(this,ue,be,Ae,Ne)},ie.prototype.optimize=function(ue){te.prototype.optimize.call(this,ue);var be=this.formats();if(0===Object.keys(be).length)return this.unwrap();var Ae=this.next;Ae instanceof ie&&Ae.prev===this&&function Z(te,ie){if(Object.keys(te).length!==Object.keys(ie).length)return!1;for(var ue in te)if(te[ue]!==ie[ue])return!1;return!0}(be,Ae.formats())&&(Ae.moveChildren(this),Ae.remove())},ie.prototype.replaceWith=function(ue,be){var Ae=te.prototype.replaceWith.call(this,ue,be);return this.attributes.copy(Ae),Ae},ie.prototype.update=function(ue,be){var Ae=this;te.prototype.update.call(this,ue,be),ue.some(function(mt){return mt.target===Ae.domNode&&"attributes"===mt.type})&&this.attributes.build()},ie.prototype.wrap=function(ue,be){var Ae=te.prototype.wrap.call(this,ue,be);return Ae instanceof ie&&this.attributes.move(Ae),Ae},ie.allowedChildren=[ie,R],ie.blotName="inline",ie.scope=I.INLINE_BLOT,ie.tagName="SPAN",ie}(E),M=X,oe=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}(),fe=function(te){function ie(ue,be){var Ae=te.call(this,ue,be)||this;return Ae.attributes=new G(Ae.domNode),Ae}return oe(ie,te),ie.formats=function(ue,be){var Ae=be.query(ie.blotName);if(null==Ae||ue.tagName!==Ae.tagName){if("string"==typeof this.tagName)return!0;if(Array.isArray(this.tagName))return ue.tagName.toLowerCase()}},ie.prototype.format=function(ue,be){var Ae=this.scroll.query(ue,I.BLOCK);null!=Ae&&(Ae instanceof B?this.attributes.attribute(Ae,be):ue!==this.statics.blotName||be?be&&(ue!==this.statics.blotName||this.formats()[ue]!==be)&&this.replaceWith(ue,be):this.replaceWith(ie.blotName))},ie.prototype.formats=function(){var ue=this.attributes.values(),be=this.statics.formats(this.domNode,this.scroll);return null!=be&&(ue[this.statics.blotName]=be),ue},ie.prototype.formatAt=function(ue,be,Ae,Ne){null!=this.scroll.query(Ae,I.BLOCK)?this.format(Ae,Ne):te.prototype.formatAt.call(this,ue,be,Ae,Ne)},ie.prototype.insertAt=function(ue,be,Ae){if(null==Ae||null!=this.scroll.query(be,I.INLINE))te.prototype.insertAt.call(this,ue,be,Ae);else{var Ne=this.split(ue);if(null==Ne)throw new Error("Attempt to insertAt after block boundaries");var mt=this.scroll.create(be,Ae);Ne.parent.insertBefore(mt,Ne)}},ie.prototype.replaceWith=function(ue,be){var Ae=te.prototype.replaceWith.call(this,ue,be);return this.attributes.copy(Ae),Ae},ie.prototype.update=function(ue,be){var Ae=this;te.prototype.update.call(this,ue,be),ue.some(function(mt){return mt.target===Ae.domNode&&"attributes"===mt.type})&&this.attributes.build()},ie.blotName="block",ie.scope=I.BLOCK_BLOT,ie.tagName="P",ie.allowedChildren=[M,ie,R],ie}(E),Te=fe,Be=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}(),ze=function(te){function ie(){return null!==te&&te.apply(this,arguments)||this}return Be(ie,te),ie.formats=function(ue,be){},ie.prototype.format=function(ue,be){te.prototype.formatAt.call(this,0,this.length(),ue,be)},ie.prototype.formatAt=function(ue,be,Ae,Ne){0===ue&&be===this.length()?this.format(Ae,Ne):te.prototype.formatAt.call(this,ue,be,Ae,Ne)},ie.prototype.formats=function(){return this.statics.formats(this.domNode,this.scroll)},ie}(R),ae=ze,_e=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}(),ye={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},ce=function(te){function ie(ue,be){var Ae=te.call(this,null,be)||this;return Ae.registry=ue,Ae.scroll=Ae,Ae.build(),Ae.observer=new MutationObserver(function(Ne){Ae.update(Ne)}),Ae.observer.observe(Ae.domNode,ye),Ae.attach(),Ae}return _e(ie,te),ie.prototype.create=function(ue,be){return this.registry.create(this,ue,be)},ie.prototype.find=function(ue,be){return void 0===be&&(be=!1),this.registry.find(ue,be)},ie.prototype.query=function(ue,be){return void 0===be&&(be=I.ANY),this.registry.query(ue,be)},ie.prototype.register=function(){for(var ue,be=[],Ae=0;Ae<arguments.length;Ae++)be[Ae]=arguments[Ae];return(ue=this.registry).register.apply(ue,be)},ie.prototype.build=function(){null!=this.scroll&&te.prototype.build.call(this)},ie.prototype.detach=function(){te.prototype.detach.call(this),this.observer.disconnect()},ie.prototype.deleteAt=function(ue,be){this.update(),0===ue&&be===this.length()?this.children.forEach(function(Ae){Ae.remove()}):te.prototype.deleteAt.call(this,ue,be)},ie.prototype.formatAt=function(ue,be,Ae,Ne){this.update(),te.prototype.formatAt.call(this,ue,be,Ae,Ne)},ie.prototype.insertAt=function(ue,be,Ae){this.update(),te.prototype.insertAt.call(this,ue,be,Ae)},ie.prototype.optimize=function(ue,be){var Ae=this;void 0===ue&&(ue=[]),void 0===be&&(be={}),te.prototype.optimize.call(this,be);for(var Ne=be.mutationsMap||new WeakMap,mt=Array.from(this.observer.takeRecords());mt.length>0;)ue.push(mt.pop());for(var tt=function Pe($e,ge){void 0===ge&&(ge=!0),null!=$e&&$e!==Ae&&null!=$e.domNode.parentNode&&(Ne.has($e.domNode)||Ne.set($e.domNode,[]),ge&&Pe($e.parent))},Le=function Pe($e){Ne.has($e.domNode)&&($e instanceof E&&$e.children.forEach(Pe),Ne.delete($e.domNode),$e.optimize(be))},gt=ue,tn=0;gt.length>0;tn+=1){if(tn>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(gt.forEach(function(Pe){var $e=Ae.find(Pe.target,!0);null!=$e&&($e.domNode===Pe.target&&("childList"===Pe.type?(tt(Ae.find(Pe.previousSibling,!1)),Array.from(Pe.addedNodes).forEach(function(ge){var Ce=Ae.find(ge,!1);tt(Ce,!1),Ce instanceof E&&Ce.children.forEach(function(De){tt(De,!1)})})):"attributes"===Pe.type&&tt($e.prev)),tt($e))}),this.children.forEach(Le),mt=(gt=Array.from(this.observer.takeRecords())).slice();mt.length>0;)ue.push(mt.pop())}},ie.prototype.update=function(ue,be){var Ae=this;void 0===be&&(be={}),ue=ue||this.observer.takeRecords();var Ne=new WeakMap;ue.map(function(mt){var tt=d.find(mt.target,!0);return null==tt?null:Ne.has(tt.domNode)?(Ne.get(tt.domNode).push(mt),null):(Ne.set(tt.domNode,[mt]),tt)}).forEach(function(mt){null!=mt&&mt!==Ae&&Ne.has(mt.domNode)&&mt.update(Ne.get(mt.domNode)||[],be)}),be.mutationsMap=Ne,Ne.has(this.domNode)&&te.prototype.update.call(this,Ne.get(this.domNode),be),this.optimize(ue,be)},ie.blotName="scroll",ie.defaultChild=Te,ie.allowedChildren=[Te,w],ie.scope=I.BLOCK_BLOT,ie.tagName="DIV",ie}(E),le=ce,pe=function(){var te=function(ue,be){return(te=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Ae,Ne){Ae.__proto__=Ne}||function(Ae,Ne){for(var mt in Ne)Ne.hasOwnProperty(mt)&&(Ae[mt]=Ne[mt])})(ue,be)};return function(ie,ue){function be(){this.constructor=ie}te(ie,ue),ie.prototype=null===ue?Object.create(ue):(be.prototype=ue.prototype,new be)}}(),Se=function(te){function ie(ue,be){var Ae=te.call(this,ue,be)||this;return Ae.text=Ae.statics.value(Ae.domNode),Ae}return pe(ie,te),ie.create=function(ue){return document.createTextNode(ue)},ie.value=function(ue){return ue.data},ie.prototype.deleteAt=function(ue,be){this.domNode.data=this.text=this.text.slice(0,ue)+this.text.slice(ue+be)},ie.prototype.index=function(ue,be){return this.domNode===ue?be:-1},ie.prototype.insertAt=function(ue,be,Ae){null==Ae?(this.text=this.text.slice(0,ue)+be+this.text.slice(ue),this.domNode.data=this.text):te.prototype.insertAt.call(this,ue,be,Ae)},ie.prototype.length=function(){return this.text.length},ie.prototype.optimize=function(ue){te.prototype.optimize.call(this,ue),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof ie&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},ie.prototype.position=function(ue,be){return void 0===be&&(be=!1),[this.domNode,ue]},ie.prototype.split=function(ue,be){if(void 0===be&&(be=!1),!be){if(0===ue)return this;if(ue===this.length())return this.next}var Ae=this.scroll.create(this.domNode.splitText(ue));return this.parent.insertBefore(Ae,this.next||void 0),this.text=this.statics.value(this.domNode),Ae},ie.prototype.update=function(ue,be){var Ae=this;ue.some(function(Ne){return"characterData"===Ne.type&&Ne.target===Ae.domNode})&&(this.text=this.statics.value(this.domNode))},ie.prototype.value=function(){return this.text},ie.blotName="text",ie.scope=I.INLINE_BLOT,ie}(R),re=Se},function(he,u,o){"use strict";var c=o(95),I=o.n(c),C=o(15),g=o(44),a=o(23);function p(P){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(W){return typeof W}:function(W){return W&&"function"==typeof Symbol&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W})(P)}function l(P,B){for(var W=0;W<B.length;W++){var z=B[W];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(P,z.key,z)}}function h(P,B,W){return(h=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(V,U,K){var Y=function v(P,B){for(;!Object.prototype.hasOwnProperty.call(P,B)&&null!==(P=w(P)););return P}(V,U);if(Y){var J=Object.getOwnPropertyDescriptor(Y,U);return J.get?J.get.call(K):J.value}})(P,B,W||P)}function x(P,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(B&&B.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),B&&b(P,B)}function b(P,B){return(b=Object.setPrototypeOf||function(z,V){return z.__proto__=V,z})(P,B)}function y(P){var B=function O(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var V,z=w(P);if(B){var U=w(this).constructor;V=Reflect.construct(z,arguments,U)}else V=z.apply(this,arguments);return E(this,V)}}function E(P,B){if(B&&("object"===p(B)||"function"==typeof B))return B;if(void 0!==B)throw new TypeError("Derived constructors may only return object or undefined");return function S(P){if(void 0===P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}(P)}function w(P){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)})(P)}var T=Object(a.a)("quill:events");Object(C.a)()&&["selectionchange","mousedown","mouseup","click"].forEach(function(P){document.addEventListener(P,function(){for(var B=arguments.length,W=new Array(B),z=0;z<B;z++)W[z]=arguments[z];Array.from(document.querySelectorAll(".ql-container")).forEach(function(V){var K,U=g.a.get(V);U&&U.emitter&&(K=U.emitter).handleDOM.apply(K,W)})})});var R=function(P){x(W,P);var B=y(W);function W(){var z;return function s(P,B){if(!(P instanceof B))throw new TypeError("Cannot call a class as a function")}(this,W),(z=B.call(this)).listeners={},z.on("error",T.error),z}return function d(P,B,W){return B&&l(P.prototype,B),W&&l(P,W),P}(W,[{key:"emit",value:function(){for(var V,U,K=arguments.length,Y=new Array(K),J=0;J<K;J++)Y[J]=arguments[J];(V=T.log).call.apply(V,[T].concat(Y)),(U=h(w(W.prototype),"emit",this)).call.apply(U,[this].concat(Y))}},{key:"handleDOM",value:function(V){for(var U=arguments.length,K=new Array(U>1?U-1:0),Y=1;Y<U;Y++)K[Y-1]=arguments[Y];(this.listeners[V.type]||[]).forEach(function(J){var j=J.node,ee=J.handler;(V.target===j||j.contains(V.target))&&ee.apply(void 0,[V].concat(K))})}},{key:"listenDOM",value:function(V,U,K){this.listeners[V]||(this.listeners[V]=[]),this.listeners[V].push({node:U,handler:K})}}]),W}(I.a);R.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_BLOT_MOUNT:"scroll-blot-mount",SCROLL_BLOT_UNMOUNT:"scroll-blot-unmount",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change",CONTENT_SETTED:"content-setted"},R.sources={API:"api",SILENT:"silent",USER:"user"},u.a=R},function(he,u,o){"use strict";var c=o(16),I=o.n(c),C=o(30),g=o.n(C),a=o(37),p=o.n(a),s=o(1),l=o.n(s),d=o(2),h=o(7),v=o(24),x=o(6),b=o(10),y=o(9);function S(ye){return U(ye)||function O(ye){if(typeof Symbol<"u"&&null!=ye[Symbol.iterator]||null!=ye["@@iterator"])return Array.from(ye)}(ye)||W(ye)||B()}function w(ye,ne){var ce=Object.keys(ye);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(ye);ne&&(le=le.filter(function(pe){return Object.getOwnPropertyDescriptor(ye,pe).enumerable})),ce.push.apply(ce,le)}return ce}function T(ye){for(var ne=1;ne<arguments.length;ne++){var ce=null!=arguments[ne]?arguments[ne]:{};ne%2?w(Object(ce),!0).forEach(function(le){k(ye,le,ce[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ye,Object.getOwnPropertyDescriptors(ce)):w(Object(ce)).forEach(function(le){Object.defineProperty(ye,le,Object.getOwnPropertyDescriptor(ce,le))})}return ye}function k(ye,ne,ce){return ne in ye?Object.defineProperty(ye,ne,{value:ce,enumerable:!0,configurable:!0,writable:!0}):ye[ne]=ce,ye}function R(ye){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ce){return typeof ce}:function(ce){return ce&&"function"==typeof Symbol&&ce.constructor===Symbol&&ce!==Symbol.prototype?"symbol":typeof ce})(ye)}function P(ye,ne){return U(ye)||function V(ye,ne){var ce=null==ye?null:typeof Symbol<"u"&&ye[Symbol.iterator]||ye["@@iterator"];if(null!=ce){var re,te,le=[],pe=!0,Se=!1;try{for(ce=ce.call(ye);!(pe=(re=ce.next()).done)&&(le.push(re.value),!ne||le.length!==ne);pe=!0);}catch(ie){Se=!0,te=ie}finally{try{!pe&&null!=ce.return&&ce.return()}finally{if(Se)throw te}}return le}}(ye,ne)||W(ye,ne)||B()}function B(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function W(ye,ne){if(ye){if("string"==typeof ye)return z(ye,ne);var ce=Object.prototype.toString.call(ye).slice(8,-1);if("Object"===ce&&ye.constructor&&(ce=ye.constructor.name),"Map"===ce||"Set"===ce)return Array.from(ye);if("Arguments"===ce||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ce))return z(ye,ne)}}function z(ye,ne){(null==ne||ne>ye.length)&&(ne=ye.length);for(var ce=0,le=new Array(ne);ce<ne;ce++)le[ce]=ye[ce];return le}function U(ye){if(Array.isArray(ye))return ye}function Y(ye,ne){for(var ce=0;ce<ne.length;ce++){var le=ne[ce];le.enumerable=le.enumerable||!1,le.configurable=!0,"value"in le&&(le.writable=!0),Object.defineProperty(ye,le.key,le)}}var j=/^[ -~]*$/,ee=function(){function ye(ne){(function K(ye,ne){if(!(ye instanceof ne))throw new TypeError("Cannot call a class as a function")})(this,ye),this.scroll=ne,this.delta=this.getDelta(),this.immediateFormats=new Set}return function J(ye,ne,ce){return ne&&Y(ye.prototype,ne),ce&&Y(ye,ce),ye}(ye,[{key:"addImmediateFormat",value:function(ce){this.immediateFormats.add(ce)}},{key:"applyDelta",value:function(ce){var le=this;this.scroll.update();var pe=this.scroll.length();this.scroll.batchStart();var Se=function ze(ye){return ye.reduce(function(ne,ce){if("string"==typeof ce.insert){var le=ce.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return ne.insert(le,ce.attributes)}return ne.push(ce)},new l.a)}(ce),re=new l.a;return Se.reduce(function(te,ie){var ue=s.Op.length(ie),be=ie.attributes||{},Ae=!1;if(null!=ie.insert){if(re.retain(ue),"string"==typeof ie.insert){var Ne=ie.insert;Ae=!Ne.endsWith("\n")&&(pe<=te||le.scroll.descendant(x.a,te)[0]),le.scroll.insertAt(te,Ne);var tt=P(le.scroll.line(te),2),Le=tt[0],gt=tt[1],tn=p()({},Object(x.c)(Le));if(Le instanceof x.d){var ge=P(Le.descendant(d.LeafBlot,gt),1)[0];tn=p()(tn,Object(x.c)(ge))}be=s.AttributeMap.diff(tn,be)||{}}else if("object"===R(ie.insert)){var Ce=Object.keys(ie.insert)[0];if(null==Ce)return te;Ae=null!=le.scroll.query(Ce,d.Scope.INLINE)&&(pe<=te||le.scroll.descendant(x.a,te)[0]),le.scroll.insertAt(te,Ce,ie.insert[Ce])}pe+=ue}else re.push(ie);var De=Object.keys(be);le.immediateFormats.forEach(function(bt){De.indexOf(bt)>-1&&(le.scroll.formatAt(te,ue,bt,be[bt]),delete be[bt])}),Object.keys(be).forEach(function(bt){le.scroll.formatAt(te,ue,bt,be[bt])});var Ye=Ae?1:0;return pe+=Ye,re.delete(Ye),te+ue+Ye},0),re.reduce(function(te,ie){return"number"==typeof ie.delete?(le.scroll.deleteAt(te,ie.delete),te):te+s.Op.length(ie)},0),this.scroll.batchEnd(),this.scroll.optimize(),this.update(Se)}},{key:"deleteText",value:function(ce,le){return this.scroll.deleteAt(ce,le),this.update((new l.a).retain(ce).delete(le))}},{key:"formatLine",value:function(ce,le){var pe=this,Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.scroll.update(),Object.keys(Se).forEach(function(te){pe.scroll.lines(ce,Math.max(le,1)).forEach(function(ie){ie.format(te,Se[te])})}),this.scroll.optimize();var re=(new l.a).retain(ce).retain(le,I()(Se));return this.update(re)}},{key:"formatText",value:function(ce,le){var pe=this,Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Object.keys(Se).forEach(function(te){pe.scroll.formatAt(ce,le,te,Se[te])});var re=(new l.a).retain(ce).retain(le,I()(Se));return this.update(re)}},{key:"getContents",value:function(ce,le){return this.delta.slice(ce,ce+le)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(ce,le){return ce.concat(le.delta())},new l.a)}},{key:"getFormat",value:function(ce){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,pe=[],Se=[];0===le?this.scroll.path(ce).forEach(function(ie){var be=P(ie,1)[0];be instanceof x.d?pe.push(be):be instanceof d.LeafBlot&&Se.push(be)}):(pe=this.scroll.lines(ce,le),Se=this.scroll.descendants(d.LeafBlot,ce,le));var te=P([pe,Se].map(function(ie){if(0===ie.length)return{};for(var ue=Object(x.c)(ie.shift());Object.keys(ue).length>0;){var be=ie.shift();if(null==be)return ue;ue=oe(Object(x.c)(be),ue)}return ue}),2);return Se=te[1],T(T({},pe=te[0]),Se)}},{key:"getHTML",value:function(ce,le){var Se=P(this.scroll.line(ce),2),re=Se[0],te=Se[1];return re.length()>=te+le?q(re,te,le,!0):q(this.scroll,ce,le,!0)}},{key:"getText",value:function(ce,le){return this.getContents(ce,le).filter(function(pe){return"string"==typeof pe.insert}).map(function(pe){return pe.insert}).join("")}},{key:"insertEmbed",value:function(ce,le,pe){return this.scroll.insertAt(ce,le,pe),this.update((new l.a).retain(ce).insert(k({},le,pe)))}},{key:"insertText",value:function(ce,le){var pe=this,Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return le=le.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(ce,le),Object.keys(Se).forEach(function(re){pe.scroll.formatAt(ce,le.length,re,Se[re])}),this.update((new l.a).retain(ce).insert(le,I()(Se)))}},{key:"isBlank",value:function(){if(0===this.scroll.children.length)return!0;if(arguments.length>0&&void 0!==arguments[0]&&arguments[0]||this.scroll.children.length>1)return!1;var le=this.scroll.children.head;return!(le.statics.blotName!==x.d.blotName||le.children.length>1)&&le.children.head instanceof b.a}},{key:"removeFormat",value:function(ce,le){var pe=this.getText(ce,le),re=P(this.scroll.line(ce+le),2),te=re[0],ie=re[1],ue=0,be=new l.a;null!=te&&(ue=te.length()-ie,be=te.delta().slice(ie,ie+ue-1).insert("\n"));var Ne=this.getContents(ce,le+ue).diff((new l.a).insert(pe).concat(be)),mt=(new l.a).retain(ce).concat(Ne);return this.applyDelta(mt)}},{key:"update",value:function(ce){var le=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],pe=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,Se=this.delta;if(1===le.length&&"characterData"===le[0].type&&le[0].target.data.match(j)&&this.scroll.find(le[0].target)){var re=this.scroll.find(le[0].target),te=Object(x.c)(re),ie=re.offset(this.scroll),ue=le[0].oldValue.replace(v.a.CONTENTS,""),be=(new l.a).insert(ue),Ae=(new l.a).insert(re.value()),Ne=pe&&{oldRange:ae(pe.oldRange,-ie),newRange:ae(pe.newRange,-ie)};ce=(new l.a).retain(ie).concat(be.diff(Ae,Ne)).reduce(function(tt,Le){return Le.insert?tt.insert(Le.insert,te):tt.push(Le)},new l.a),this.delta=Se.compose(ce)}else this.delta=this.getDelta(),(!ce||!g()(Se.compose(ce),this.delta))&&(ce=Se.diff(this.delta,pe));return ce}}]),ye}();function G(ye,ne,ce){if(0===ye.length){var Se=P(fe(ce.pop()),1)[0];return ne<=0?"</li></".concat(Se,">"):"</li></".concat(Se,">").concat(G([],ne-1,ce))}var re=S(ye),te=re[0],ie=te.child,ue=te.offset,be=te.length,Ae=te.indent,Ne=te.type,mt=re.slice(1),Le=P(fe(Ne,ie),2),gt=Le[0],tn=Le[1];if(Ae>ne)return ce.push(Ne),Ae===ne+1?"<".concat(gt,"><li").concat(tn,">").concat(q(ie,ue,be)).concat(G(mt,Ae,ce)):"<".concat(gt,"><li>").concat(G(ye,ne+1,ce));if(Ae===ne&&Ne===ce[ce.length-1])return"</li><li".concat(tn,">").concat(q(ie,ue,be)).concat(G(mt,Ae,ce));var ge=P(fe(ce.pop()),1);return"</li></".concat(ge[0],">").concat(G(ye,ne-1,ce))}function q(ye,ne,ce){var le=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if("function"==typeof ye.html)return ye.html(ne,ce);if(ye instanceof y.a)return Object(y.b)(ye.value().slice(ne,ne+ce));if(ye.children){if("list-container"===ye.statics.blotName){var pe=[];return ye.children.forEachAt(ne,ce,function(mt,tt,Le){var gt=mt.formats();pe.push({child:mt,offset:tt,length:Le,indent:gt.indent||0,type:gt.list})}),G(pe,-1,[])}var Se=[];if(ye.children.forEachAt(ne,ce,function(mt,tt,Le){Se.push(q(mt,tt,Le))}),Z(ye.children,Se),le||"list"===ye.statics.blotName)return Se.join("");var re=X(ye),be=P(re.outerHTML.split(">".concat(re.innerHTML,"<")),2),Ae=be[0],Ne=be[1];return 0===Ae.indexOf("<table")?"".concat(Ae.replace(/(\sdata-.+?=["'].*?["'])/g,""),">").concat(Se.join("").replace(/(\sdata-table.+?=["'].*?["'])/g,""),"<").concat(Ne):"".concat(Ae,">").concat(Se.join(""),"<").concat(Ne)}return ye.domNode.outerHTML}function Z(ye,ne){1===ye.length&&ye.head instanceof b.a&&ne.push("<br>")}function X(ye){var ne=ye.domNode.cloneNode(!0);return function M(ye,ne){return["tableCellLine","tableHeaderCellLine","tableCell","tableHeaderCell"].includes(ye.statics.blotName)&&function E(ye,ne){ye.classList.remove(ne),0===ye.classList.length&&ye.removeAttribute("class")}(ne,ye.statics.className),ne}(ye,ne)}function oe(ye,ne){return Object.keys(ne).reduce(function(ce,le){return null==ye[le]||(ne[le]===ye[le]?ce[le]=ne[le]:Array.isArray(ne[le])?ne[le].indexOf(ye[le])<0&&(ce[le]=ne[le].concat([ye[le]])):ce[le]=[ne[le],ye[le]]),ce},{})}function fe(ye,ne){var ce="ordered"===ye?"ol":"ul",le=ne?"".concat(function Te(ye){var ne=ye.domNode;if(!ne.hasAttributes())return"";for(var ce=ne.attributes,le=" ",pe=0;pe<ce.length;pe+=1){var Se=ce[pe].name,re=ce[pe].value;"class"===Se&&(re=Be(re)),re.length&&-1===Se.indexOf("data-")&&(le+="".concat(Se,'="').concat(re,'"'))}return le.length>1?le:""}(ne)):"";switch(ye){case"checked":return[ce,"".concat(le,' data-list="checked"')];case"unchecked":return[ce,"".concat(le,' data-list="unchecked"')];default:return[ce,le]}}function Be(ye){return ye.replace(/ql-indent-\d/g,"").trim()}function ae(ye,ne){return new h.a(ye.index+ne,ye.length)}u.a=ee},function(he,u,o){"use strict";function c(I){return null!=I}o.d(u,"a",function(){return c})},function(he,u,o){"use strict";o.d(u,"b",function(){return Y}),o.d(u,"c",function(){return J}),o.d(u,"a",function(){return K}),o.d(u,"d",function(){return U});var c=o(1),I=o.n(c),C=o(2),g=o(10),a=o(14),p=o(9),s=o(19);function l(j,ee,G,q){return G.map(Z=>{const X=q?Object(s.b)(j,Z,q):Z;return ee.scroll.query(X,C.Scope.ATTRIBUTE)}).filter(Z=>Z instanceof C.Attributor).reduce((Z,X)=>(Z[X.attrName]=X,Z),{})}function h(j){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(G){return typeof G}:function(G){return G&&"function"==typeof Symbol&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G})(j)}function v(j,ee){var G=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);ee&&(q=q.filter(function(Z){return Object.getOwnPropertyDescriptor(j,Z).enumerable})),G.push.apply(G,q)}return G}function x(j){for(var ee=1;ee<arguments.length;ee++){var G=null!=arguments[ee]?arguments[ee]:{};ee%2?v(Object(G),!0).forEach(function(q){b(j,q,G[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(G)):v(Object(G)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(G,q))})}return j}function b(j,ee,G){return ee in j?Object.defineProperty(j,ee,{value:G,enumerable:!0,configurable:!0,writable:!0}):j[ee]=G,j}function y(j,ee){if(!(j instanceof ee))throw new TypeError("Cannot call a class as a function")}function E(j,ee){for(var G=0;G<ee.length;G++){var q=ee[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function S(j,ee,G){return ee&&E(j.prototype,ee),G&&E(j,G),j}function O(j,ee,G){return(O=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(Z,X,M){var oe=function w(j,ee){for(;!Object.prototype.hasOwnProperty.call(j,ee)&&null!==(j=z(j)););return j}(Z,X);if(oe){var fe=Object.getOwnPropertyDescriptor(oe,X);return fe.get?fe.get.call(M):fe.value}})(j,ee,G||j)}function T(j,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(ee&&ee.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),ee&&k(j,ee)}function k(j,ee){return(k=Object.setPrototypeOf||function(q,Z){return q.__proto__=Z,q})(j,ee)}function R(j){var ee=function W(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var Z,q=z(j);if(ee){var X=z(this).constructor;Z=Reflect.construct(q,arguments,X)}else Z=q.apply(this,arguments);return P(this,Z)}}function P(j,ee){if(ee&&("object"===h(ee)||"function"==typeof ee))return ee;if(void 0!==ee)throw new TypeError("Derived constructors may only return object or undefined");return function B(j){if(void 0===j)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}(j)}function z(j){return(z=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)})(j)}!function d(){C.AttributorStore.prototype.build=function(){const{tagName:j}=this.domNode,ee=C.Registry.find(this.domNode);if(null==ee)return;const G=C.Attributor.keys(this.domNode),q=C.ClassAttributor.keys(this.domNode),Z=C.StyleAttributor.keys(this.domNode);this.attributes={...l(j,ee,G,s.a.attribute),...l(j,ee,q),...l(j,ee,Z,s.a.style)}}}();var U=function(j){T(G,j);var ee=R(G);function G(q,Z){var X;return y(this,G),(X=ee.call(this,q,Z)).cache={},X}return S(G,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=Y(this)),this.cache.delta}},{key:"deleteAt",value:function(Z,X){O(z(G.prototype),"deleteAt",this).call(this,Z,X),this.cache={}}},{key:"formatAt",value:function(Z,X,M,oe){X<=0||(this.scroll.query(M,C.Scope.BLOCK)?Z+X===this.length()&&this.format(M,oe):O(z(G.prototype),"formatAt",this).call(this,Z,Math.min(X,this.length()-Z-1),M,oe),this.cache={})}},{key:"insertAt",value:function(Z,X,M){if(null!=M)return O(z(G.prototype),"insertAt",this).call(this,Z,X,M),void(this.cache={});if(0!==X.length){var oe=X.split("\n"),fe=oe.shift();fe.length>0&&(Z<this.length()-1||null==this.children.tail?O(z(G.prototype),"insertAt",this).call(this,Math.min(Z,this.length()-1),fe):this.children.tail.insertAt(this.children.tail.length(),fe),this.cache={});var Te=this;oe.reduce(function(Be,ze){return(Te=Te.split(Be,!0)).insertAt(0,ze),ze.length},Z+fe.length)}}},{key:"insertBefore",value:function(Z,X){var M=this.children.head;O(z(G.prototype),"insertBefore",this).call(this,Z,X),M instanceof g.a&&M.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=O(z(G.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(Z,X){O(z(G.prototype),"moveChildren",this).call(this,Z,X),this.cache={}}},{key:"optimize",value:function(Z){O(z(G.prototype),"optimize",this).call(this,Z),this.cache={}}},{key:"path",value:function(Z){return O(z(G.prototype),"path",this).call(this,Z,!0)}},{key:"removeChild",value:function(Z){O(z(G.prototype),"removeChild",this).call(this,Z),this.cache={}}},{key:"split",value:function(Z){var X=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(X&&(0===Z||Z>=this.length()-1)){var M=this.clone();return 0===Z?(this.parent.insertBefore(M,this),this):(this.parent.insertBefore(M,this.next),M)}var oe=O(z(G.prototype),"split",this).call(this,Z,X);return this.cache={},oe}}]),G}(C.BlockBlot);U.blotName="block",U.tagName="P",U.defaultChild=g.a,U.allowedChildren=[g.a,a.a,C.EmbedBlot,p.a];var K=function(j){T(G,j);var ee=R(G);function G(){return y(this,G),ee.apply(this,arguments)}return S(G,[{key:"attach",value:function(){O(z(G.prototype),"attach",this).call(this),this.attributes=new C.AttributorStore(this.domNode)}},{key:"delta",value:function(){return(new I.a).insert(this.value(),x(x({},this.formats()),this.attributes.values()))}},{key:"format",value:function(Z,X){var M=this.scroll.query(Z,C.Scope.BLOCK_ATTRIBUTE);null!=M&&this.attributes.attribute(M,X)}},{key:"formatAt",value:function(Z,X,M,oe){this.format(M,oe)}},{key:"insertAt",value:function(Z,X,M){if("string"==typeof X&&X.endsWith("\n")){var oe=this.scroll.create(U.blotName);this.parent.insertBefore(oe,0===Z?this:this.next),oe.insertAt(0,X.slice(0,-1))}else O(z(G.prototype),"insertAt",this).call(this,Z,X,M)}}]),G}(C.EmbedBlot);function Y(j){var ee=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return j.descendants(C.LeafBlot).reduce(function(G,q){return 0===q.length()?G:G.insert(q.value(),J(q,{},ee))},new I.a).insert("\n",J(j))}function J(j){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},G=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return null==j||("function"==typeof j.formats&&(ee=x(x({},ee),j.formats()),G&&delete ee["code-token"]),null==j.parent||"scroll"===j.parent.statics.blotName||j.parent.statics.scope!==j.statics.scope)?ee:J(j.parent,ee,G)}K.scope=C.Scope.BLOCK_BLOT},function(he,u,o){"use strict";o.d(u,"a",function(){return P}),o.d(u,"b",function(){return B});var c=o(2),I=o(16),C=o.n(I),g=o(30),a=o.n(g),p=o(3),s=o(23);function l(z){return function v(z){if(Array.isArray(z))return E(z)}(z)||function h(z){if(typeof Symbol<"u"&&null!=z[Symbol.iterator]||null!=z["@@iterator"])return Array.from(z)}(z)||y(z)||function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(z,V){return function O(z){if(Array.isArray(z))return z}(z)||function S(z,V){var U=null==z?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(null!=U){var j,ee,K=[],Y=!0,J=!1;try{for(U=U.call(z);!(Y=(j=U.next()).done)&&(K.push(j.value),!V||K.length!==V);Y=!0);}catch(G){J=!0,ee=G}finally{try{!Y&&null!=U.return&&U.return()}finally{if(J)throw ee}}return K}}(z,V)||y(z,V)||function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(z,V){if(z){if("string"==typeof z)return E(z,V);var U=Object.prototype.toString.call(z).slice(8,-1);if("Object"===U&&z.constructor&&(U=z.constructor.name),"Map"===U||"Set"===U)return Array.from(z);if("Arguments"===U||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(U))return E(z,V)}}function E(z,V){(null==V||V>z.length)&&(V=z.length);for(var U=0,K=new Array(V);U<V;U++)K[U]=z[U];return K}function w(z,V){for(var U=0;U<V.length;U++){var K=V[U];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(z,K.key,K)}}function k(z,V){if(!(z instanceof V))throw new TypeError("Cannot call a class as a function")}var R=Object(s.a)("quill:selection"),P=function z(V){var U=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;k(this,z),this.index=V,this.length=U},B=function(){function z(V,U){var K=this;k(this,z),this.emitter=U,this.scroll=V,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=this.scroll.create("cursor",this),this.savedRange=new P(0,0),this.lastRange=this.savedRange,this.lastNative=null,this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){!K.mouseDown&&!K.composing&&setTimeout(K.update.bind(K,p.a.sources.USER),1)}),this.emitter.on(p.a.events.SCROLL_BEFORE_UPDATE,function(){if(K.hasFocus()){var Y=K.getNativeRange();null!=Y&&Y.start.node!==K.cursor.textNode&&K.emitter.once(p.a.events.SCROLL_UPDATE,function(){try{K.root.contains(Y.start.node)&&K.root.contains(Y.end.node)&&K.setNativeRange(Y.start.node,Y.start.offset,Y.end.node,Y.end.offset),K.update(p.a.sources.SILENT)}catch{}})}}),this.emitter.on(p.a.events.SCROLL_OPTIMIZE,function(Y,J){if(J.range){var j=J.range;K.setNativeRange(j.startNode,j.startOffset,j.endNode,j.endOffset),K.update(p.a.sources.SILENT)}}),this.update(p.a.sources.SILENT)}return function T(z,V,U){return V&&w(z.prototype,V),U&&w(z,U),z}(z,[{key:"handleComposition",value:function(){var U=this;this.root.addEventListener("compositionstart",function(){U.composing=!0,U.scroll.batchStart()}),this.root.addEventListener("compositionend",function(){if(U.scroll.batchEnd(),U.composing=!1,U.cursor.parent){var K=U.cursor.restore();if(!K)return;setTimeout(function(){U.setNativeRange(K.startNode,K.startOffset,K.endNode,K.endOffset)},1)}})}},{key:"handleDragging",value:function(){var U=this;this.emitter.listenDOM("mousedown",document.body,function(){U.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){U.mouseDown=!1,U.update(p.a.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(U,K){this.scroll.update();var Y=this.getNativeRange();if(null!=Y&&Y.native.collapsed&&!this.scroll.query(U,c.Scope.BLOCK)){if(Y.start.node!==this.cursor.textNode){var J=this.scroll.find(Y.start.node,!1);if(null==J)return;if(J instanceof c.LeafBlot){var j=J.split(Y.start.offset);J.parent.insertBefore(this.cursor,j)}else J.insertBefore(this.cursor,Y.start.node);this.cursor.attach()}this.cursor.format(U,K),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}},{key:"getBounds",value:function(U){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,Y=this.scroll.length();U=Math.min(U,Y-1),K=Math.min(U+K,Y-1)-U;var J,ee=x(this.scroll.leaf(U),2),G=ee[0],q=ee[1];if(null==G)return null;var X=x(G.position(q,!0),2);J=X[0],q=X[1];var M=document.createRange();if(K>0){M.setStart(J,q);var fe=x(this.scroll.leaf(U+K),2);if(null==(G=fe[0]))return null;var Be=x(G.position(q=fe[1],!0),2);return M.setEnd(J=Be[0],q=Be[1]),M.getBoundingClientRect()}var ae,ze="left";return J instanceof Text?(q<J.data.length?(M.setStart(J,q),M.setEnd(J,q+1)):(M.setStart(J,q-1),M.setEnd(J,q),ze="right"),ae=M.getBoundingClientRect()):(ae=G.domNode.getBoundingClientRect(),q>0&&(ze="right")),{bottom:ae.top+ae.height,height:ae.height,left:ae[ze],right:ae[ze],top:ae.top,width:0}}},{key:"getNativeRange",value:function(){var U=document.getSelection();if(null==U||U.rangeCount<=0)return null;var K=U.getRangeAt(0);if(null==K)return null;var Y=this.normalizeNative(K);return R.info("getNativeRange",Y),Y}},{key:"getRange",value:function(){var U=this.getNativeRange();return null==U?[null,null]:[this.normalizedToRange(U),U]}},{key:"hasFocus",value:function(){return document.activeElement===this.root||W(this.root,document.activeElement)}},{key:"normalizedToRange",value:function(U){var K=this,Y=[[U.start.node,U.start.offset]];U.native.collapsed||Y.push([U.end.node,U.end.offset]);var J=Y.map(function(G){var q=x(G,2),Z=q[0],X=q[1],M=K.scroll.find(Z,!0),oe=M.offset(K.scroll);return 0===X?oe:M instanceof c.LeafBlot?oe+M.index(Z,X):oe+M.length()}),j=Math.min(Math.max.apply(Math,l(J)),this.scroll.length()-1),ee=Math.min.apply(Math,[j].concat(l(J)));return new P(ee,j-ee)}},{key:"normalizeNative",value:function(U){if(!W(this.root,U.startContainer)||!U.collapsed&&!W(this.root,U.endContainer))return null;var K={start:{node:U.startContainer,offset:U.startOffset},end:{node:U.endContainer,offset:U.endOffset},native:U};return[K.start,K.end].forEach(function(Y){for(var J=Y.node,j=Y.offset;!(J instanceof Text)&&J.childNodes.length>0;)if(J.childNodes.length>j)J=J.childNodes[j],j=0;else{if(J.childNodes.length!==j)break;j=(J=J.lastChild)instanceof Text?J.data.length:J.childNodes.length>0?J.childNodes.length:J.childNodes.length+1}Y.node=J,Y.offset=j}),K}},{key:"rangeToNative",value:function(U){var K=this,Y=U.collapsed?[U.index]:[U.index,U.index+U.length],J=[],j=this.scroll.length();return Y.forEach(function(ee,G){ee=Math.min(j-1,ee);var Z=x(K.scroll.leaf(ee),2),fe=x(Z[0].position(Z[1],0!==G),2);J.push(fe[0],fe[1])}),J.length<2?J.concat(J):J}},{key:"scrollIntoView",value:function(U){var K=this.lastRange;if(null!=K){var Y=this.getBounds(K.index,K.length);if(null!=Y){var J=this.scroll.length()-1,G=x(this.scroll.line(Math.min(K.index,J)),1)[0],q=G;if(K.length>0&&(q=x(this.scroll.line(Math.min(K.index+K.length,J)),1)[0]),null!=G&&null!=q){var M=U.getBoundingClientRect();Y.top<M.top?U.scrollTop-=M.top-Y.top:Y.bottom>M.bottom&&(U.scrollTop+=Y.bottom-M.bottom)}}}}},{key:"setNativeRange",value:function(U,K){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:U,J=arguments.length>3&&void 0!==arguments[3]?arguments[3]:K,j=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(R.info("setNativeRange",U,K,Y,J),null==U||null!=this.root.parentNode&&null!=U.parentNode&&null!=Y.parentNode){var ee=document.getSelection();if(null!=ee)if(null!=U){this.hasFocus()||this.root.focus();var q=(this.getNativeRange()||{}).native;if(null==q||j||U!==q.startContainer||K!==q.startOffset||Y!==q.endContainer||J!==q.endOffset){"BR"===U.tagName&&(K=Array.from(U.parentNode.childNodes).indexOf(U),U=U.parentNode),"BR"===Y.tagName&&(J=Array.from(Y.parentNode.childNodes).indexOf(Y),Y=Y.parentNode);var Z=document.createRange();Z.setStart(U,K),Z.setEnd(Y,J),ee.removeAllRanges(),ee.addRange(Z)}}else ee.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(U){var K=arguments.length>1&&void 0!==arguments[1]&&arguments[1],Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.a.sources.API;if("string"==typeof K&&(Y=K,K=!1),R.info("setRange",U),null!=U){var J=this.rangeToNative(U);this.setNativeRange.apply(this,l(J).concat([K]))}else this.setNativeRange(null);this.update(Y)}},{key:"update",value:function(){var U=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a.sources.USER,K=this.lastRange,J=x(this.getRange(),2),ee=J[1];if(this.lastRange=J[0],this.lastNative=ee,null!=this.lastRange&&(this.savedRange=this.lastRange),!a()(K,this.lastRange)){var G;if(!this.composing&&null!=ee&&ee.native.collapsed&&ee.start.node!==this.cursor.textNode){var q=this.cursor.restore();q&&this.setNativeRange(q.startNode,q.startOffset,q.endNode,q.endOffset)}var X,Z=[p.a.events.SELECTION_CHANGE,C()(this.lastRange),C()(K),U];(G=this.emitter).emit.apply(G,[p.a.events.EDITOR_CHANGE].concat(Z)),U!==p.a.sources.SILENT&&(X=this.emitter).emit.apply(X,Z)}}}]),z}();function W(z,V){return V instanceof Text&&(V=V.parentNode),z.contains(V)}},function(he,u,o){(function(c){var I=function(C){return C&&C.Math==Math&&C};he.exports=I("object"==typeof globalThis&&globalThis)||I("object"==typeof window&&window)||I("object"==typeof self&&self)||I("object"==typeof c&&c)||function(){return this}()||Function("return this")()}).call(this,o(58))},function(he,u,o){"use strict";function I(b){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(E){return typeof E}:function(E){return E&&"function"==typeof Symbol&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E})(b)}function C(b,y){if(!(b instanceof y))throw new TypeError("Cannot call a class as a function")}function g(b,y){if("function"!=typeof y&&null!==y)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(y&&y.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),y&&a(b,y)}function a(b,y){return(a=Object.setPrototypeOf||function(S,O){return S.__proto__=O,S})(b,y)}function p(b){var y=function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var O,S=h(b);if(y){var w=h(this).constructor;O=Reflect.construct(S,arguments,w)}else O=S.apply(this,arguments);return s(this,O)}}function s(b,y){if(y&&("object"===I(y)||"function"==typeof y))return y;if(void 0!==y)throw new TypeError("Derived constructors may only return object or undefined");return function l(b){if(void 0===b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}(b)}function h(b){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(E){return E.__proto__||Object.getPrototypeOf(E)})(b)}o.d(u,"a",function(){return v}),o.d(u,"b",function(){return x});var v=function(b){g(E,b);var y=p(E);function E(){return C(this,E),y.apply(this,arguments)}return E}(o(2).TextBlot);function x(b){return b.replace(/[&<>"']/g,function(y){return{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"}[y]})}},function(he,u,o){"use strict";function I(y){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(S){return typeof S}:function(S){return S&&"function"==typeof Symbol&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S})(y)}function C(y,E){if(!(y instanceof E))throw new TypeError("Cannot call a class as a function")}function g(y,E){for(var S=0;S<E.length;S++){var O=E[S];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(y,O.key,O)}}function p(y,E){if("function"!=typeof E&&null!==E)throw new TypeError("Super expression must either be null or a function");y.prototype=Object.create(E&&E.prototype,{constructor:{value:y,writable:!0,configurable:!0}}),E&&s(y,E)}function s(y,E){return(s=Object.setPrototypeOf||function(O,w){return O.__proto__=w,O})(y,E)}function l(y){var E=function v(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,O=x(y);if(E){var T=x(this).constructor;w=Reflect.construct(O,arguments,T)}else w=O.apply(this,arguments);return d(this,w)}}function d(y,E){if(E&&("object"===I(E)||"function"==typeof E))return E;if(void 0!==E)throw new TypeError("Derived constructors may only return object or undefined");return function h(y){if(void 0===y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return y}(y)}function x(y){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(S){return S.__proto__||Object.getPrototypeOf(S)})(y)}var b=function(y){p(S,y);var E=l(S);function S(){return C(this,S),E.apply(this,arguments)}return function a(y,E,S){return E&&g(y.prototype,E),S&&g(y,S),y}(S,[{key:"optimize",value:function(){(this.prev||this.next)&&this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),S}(o(2).EmbedBlot);b.blotName="break",b.tagName="BR",u.a=b},function(he,u,o){"use strict";o.d(u,"b",function(){return h}),o.d(u,"d",function(){return v}),o.d(u,"c",function(){return x}),o.d(u,"a",function(){return b});var c=o(73),I=o(74),C=o(32);function g(y){return function l(y){if(Array.isArray(y))return d(y)}(y)||function s(y){if(typeof Symbol<"u"&&null!=y[Symbol.iterator]||null!=y["@@iterator"])return Array.from(y)}(y)||function p(y,E){if(y){if("string"==typeof y)return d(y,E);var S=Object.prototype.toString.call(y).slice(8,-1);if("Object"===S&&y.constructor&&(S=y.constructor.name),"Map"===S||"Set"===S)return Array.from(y);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return d(y,E)}}(y)||function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(y,E){(null==E||E>y.length)&&(E=y.length);for(var S=0,O=new Array(E);S<E;S++)O[S]=y[S];return O}var h=C.a.map(function(y){return Object(c.a)(C.d,y)}),v=C.c.map(function(y){return Object(I.a)(C.d,y)}),x=v.reduce(function(y,E){return y[E.attrName]=E,y},{}),b=[].concat(g(h),g(v)).reduce(function(y,E){return y[E.keyName]=E,y},{})},function(he,u,o){"use strict";function c(C,g){if(!(C instanceof g))throw new TypeError("Cannot call a class as a function")}var I=function C(g){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,C),this.quill=g,this.options=a};I.DEFAULTS={},u.a=I},function(he,u,o){"use strict";function I(x){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(y){return typeof y}:function(y){return y&&"function"==typeof Symbol&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y})(x)}function C(x,b){if(!(x instanceof b))throw new TypeError("Cannot call a class as a function")}function g(x,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function");x.prototype=Object.create(b&&b.prototype,{constructor:{value:x,writable:!0,configurable:!0}}),b&&a(x,b)}function a(x,b){return(a=Object.setPrototypeOf||function(E,S){return E.__proto__=S,E})(x,b)}function p(x){var b=function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var S,E=h(x);if(b){var O=h(this).constructor;S=Reflect.construct(E,arguments,O)}else S=E.apply(this,arguments);return s(this,S)}}function s(x,b){if(b&&("object"===I(b)||"function"==typeof b))return b;if(void 0!==b)throw new TypeError("Derived constructors may only return object or undefined");return function l(x){if(void 0===x)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}(x)}function h(x){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(y){return y.__proto__||Object.getPrototypeOf(y)})(x)}var v=function(x){g(y,x);var b=p(y);function y(){return C(this,y),b.apply(this,arguments)}return y}(o(2).ContainerBlot);u.a=v},function(he,u,o){"use strict";var c=o(2),I=o(10),C=o(9);function g(w){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function a(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function p(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function l(w,T,k){return(l=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var z=function d(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=S(w)););return w}(P,B);if(z){var V=Object.getOwnPropertyDescriptor(z,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function h(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&v(w,T)}function v(w,T){return(v=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function x(w){var T=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,R=S(w);if(T){var B=S(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return b(this,P)}}function b(w,T){if(T&&("object"===g(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function y(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function S(w){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var O=function(w){h(k,w);var T=x(k);function k(){return a(this,k),T.apply(this,arguments)}return function s(w,T,k){return T&&p(w.prototype,T),k&&p(w,k),w}(k,[{key:"formatAt",value:function(P,B,W,z){if(k.compare(this.statics.blotName,W)<0&&this.scroll.query(W,c.Scope.BLOT)){var V=this.isolate(P,B);z&&V.wrap(W,z)}else l(S(k.prototype),"formatAt",this).call(this,P,B,W,z)}},{key:"optimize",value:function(P){if(l(S(k.prototype),"optimize",this).call(this,P),this.parent instanceof k&&k.compare(this.statics.blotName,this.parent.statics.blotName)>0){var B=this.parent.isolate(this.offset(),this.length());this.moveChildren(B),B.wrap(this)}}}],[{key:"compare",value:function(P,B){var W=k.order.indexOf(P),z=k.order.indexOf(B);return W>=0||z>=0?W-z:P===B?0:P<B?-1:1}}]),k}(c.InlineBlot);O.allowedChildren=[O,I.a,c.EmbedBlot,C.a],O.order=["cursor","inline","link","underline","strike","italic","bold","script","code"],u.a=O},function(he,u,o){"use strict";u.a=function(){return typeof window<"u"}},function(he,u,o){(function(c,I){var g="__lodash_hash_undefined__",a=9007199254740991,p="[object Arguments]",l="[object Boolean]",d="[object Date]",v="[object Function]",x="[object GeneratorFunction]",b="[object Map]",y="[object Number]",E="[object Object]",S="[object Promise]",O="[object RegExp]",w="[object Set]",T="[object String]",k="[object Symbol]",R="[object WeakMap]",P="[object ArrayBuffer]",B="[object DataView]",W="[object Float32Array]",z="[object Float64Array]",V="[object Int8Array]",U="[object Int16Array]",K="[object Int32Array]",Y="[object Uint8Array]",J="[object Uint8ClampedArray]",j="[object Uint16Array]",ee="[object Uint32Array]",q=/\w*$/,Z=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,M={};M[p]=M["[object Array]"]=M[P]=M[B]=M[l]=M[d]=M[W]=M[z]=M[V]=M[U]=M[K]=M[b]=M[y]=M[E]=M[O]=M[w]=M[T]=M[k]=M[Y]=M[J]=M[j]=M[ee]=!0,M["[object Error]"]=M[v]=M[R]=!1;var fe="object"==typeof self&&self&&self.Object===Object&&self,Te="object"==typeof c&&c&&c.Object===Object&&c||fe||Function("return this")(),Be=u&&!u.nodeType&&u,ze=Be&&"object"==typeof I&&I&&!I.nodeType&&I,ae=ze&&ze.exports===Be;function _e(nt,Rt){return nt.set(Rt[0],Rt[1]),nt}function ye(nt,Rt){return nt.add(Rt),nt}function le(nt,Rt,pt,jt){var Un=-1,oi=nt?nt.length:0;for(jt&&oi&&(pt=nt[++Un]);++Un<oi;)pt=Rt(pt,nt[Un],Un,nt);return pt}function re(nt){var Rt=!1;if(null!=nt&&"function"!=typeof nt.toString)try{Rt=!!(nt+"")}catch{}return Rt}function te(nt){var Rt=-1,pt=Array(nt.size);return nt.forEach(function(jt,Un){pt[++Rt]=[Un,jt]}),pt}function ie(nt,Rt){return function(pt){return nt(Rt(pt))}}function ue(nt){var Rt=-1,pt=Array(nt.size);return nt.forEach(function(jt){pt[++Rt]=jt}),pt}var nt,be=Array.prototype,Ae=Function.prototype,Ne=Object.prototype,mt=Te["__core-js_shared__"],tt=(nt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",Le=Ae.toString,gt=Ne.hasOwnProperty,tn=Ne.toString,Pe=RegExp("^"+Le.call(gt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ae?Te.Buffer:void 0,ge=Te.Symbol,Ce=Te.Uint8Array,De=ie(Object.getPrototypeOf,Object),Ye=Object.create,bt=Ne.propertyIsEnumerable,yt=be.splice,kt=Object.getOwnPropertySymbols,gn=$e?$e.isBuffer:void 0,ut=ie(Object.keys,Object),Ve=Zn(Te,"DataView"),St=Zn(Te,"Map"),Xe=Zn(Te,"Promise"),Vt=Zn(Te,"Set"),lt=Zn(Te,"WeakMap"),dt=Zn(Object,"create"),vt=zt(Ve),Lt=zt(St),bn=zt(Xe),mn=zt(Vt),xn=zt(lt),Xn=ge?ge.prototype:void 0,li=Xn?Xn.valueOf:void 0;function ki(nt){var Rt=-1,pt=nt?nt.length:0;for(this.clear();++Rt<pt;){var jt=nt[Rt];this.set(jt[0],jt[1])}}function ei(nt){var Rt=-1,pt=nt?nt.length:0;for(this.clear();++Rt<pt;){var jt=nt[Rt];this.set(jt[0],jt[1])}}function ci(nt){var Rt=-1,pt=nt?nt.length:0;for(this.clear();++Rt<pt;){var jt=nt[Rt];this.set(jt[0],jt[1])}}function Pn(nt){this.__data__=new ei(nt)}function Nr(nt,Rt){var pt=Ke(nt)||function fn(nt){return function on(nt){return function ot(nt){return!!nt&&"object"==typeof nt}(nt)&&ht(nt)}(nt)&&gt.call(nt,"callee")&&(!bt.call(nt,"callee")||tn.call(nt)==p)}(nt)?function pe(nt,Rt){for(var pt=-1,jt=Array(nt);++pt<nt;)jt[pt]=Rt(pt);return jt}(nt.length,String):[],jt=pt.length,Un=!!jt;for(var oi in nt)(Rt||gt.call(nt,oi))&&(!Un||"length"!=oi&&!_n(oi,jt))&&pt.push(oi);return pt}function Gr(nt,Rt,pt){var jt=nt[Rt];(!gt.call(nt,Rt)||!Xt(jt,pt)||void 0===pt&&!(Rt in nt))&&(nt[Rt]=pt)}function Qr(nt,Rt){for(var pt=nt.length;pt--;)if(Xt(nt[pt][0],Rt))return pt;return-1}function Wr(nt,Rt,pt,jt,Un,oi,xi){var Ai;if(jt&&(Ai=oi?jt(nt,Un,oi,xi):jt(nt)),void 0!==Ai)return Ai;if(!$n(nt))return nt;var Ui=Ke(nt);if(Ui){if(Ai=function sr(nt){var Rt=nt.length,pt=nt.constructor(Rt);return Rt&&"string"==typeof nt[0]&&gt.call(nt,"index")&&(pt.index=nt.index,pt.input=nt.input),pt}(nt),!Rt)return function jn(nt,Rt){var pt=-1,jt=nt.length;for(Rt||(Rt=Array(jt));++pt<jt;)Rt[pt]=nt[pt];return Rt}(nt,Ai)}else{var ji=Li(nt),Qi=ji==v||ji==x;if(hn(nt))return function mi(nt,Rt){if(Rt)return nt.slice();var pt=new nt.constructor(nt.length);return nt.copy(pt),pt}(nt,Rt);if(ji==E||ji==p||Qi&&!oi){if(re(nt))return oi?nt:{};if(Ai=function gr(nt){return"function"!=typeof nt.constructor||ft(nt)?{}:function Ur(nt){return $n(nt)?Ye(nt):{}}(De(nt))}(Qi?{}:nt),!Rt)return function _i(nt,Rt){return vi(nt,fi(nt),Rt)}(nt,function Sr(nt,Rt){return nt&&vi(Rt,Bt(Rt),nt)}(Ai,nt))}else{if(!M[ji])return oi?nt:{};Ai=function Qt(nt,Rt,pt,jt){var Un=nt.constructor;switch(Rt){case P:return ar(nt);case l:case d:return new Un(+nt);case B:return function Xr(nt,Rt){var pt=Rt?ar(nt.buffer):nt.buffer;return new nt.constructor(pt,nt.byteOffset,nt.byteLength)}(nt,jt);case W:case z:case V:case U:case K:case Y:case J:case j:case ee:return function en(nt,Rt){var pt=Rt?ar(nt.buffer):nt.buffer;return new nt.constructor(pt,nt.byteOffset,nt.length)}(nt,jt);case b:return function lo(nt,Rt,pt){return le(Rt?pt(te(nt),!0):te(nt),_e,new nt.constructor)}(nt,jt,pt);case y:case T:return new Un(nt);case O:return function _o(nt){var Rt=new nt.constructor(nt.source,q.exec(nt));return Rt.lastIndex=nt.lastIndex,Rt}(nt);case w:return function bo(nt,Rt,pt){return le(Rt?pt(ue(nt),!0):ue(nt),ye,new nt.constructor)}(nt,jt,pt);case k:return function It(nt){return li?Object(li.call(nt)):{}}(nt)}}(nt,ji,Wr,Rt)}}xi||(xi=new Pn);var Tr=xi.get(nt);if(Tr)return Tr;if(xi.set(nt,Ai),!Ui)var br=pt?function dn(nt){return function Rr(nt,Rt,pt){var jt=Rt(nt);return Ke(nt)?jt:function ce(nt,Rt){for(var pt=-1,jt=Rt.length,Un=nt.length;++pt<jt;)nt[Un+pt]=Rt[pt];return nt}(jt,pt(nt))}(nt,Bt,fi)}(nt):Bt(nt);return function ne(nt,Rt){for(var pt=-1,jt=nt?nt.length:0;++pt<jt&&!1!==Rt(nt[pt],pt,nt););return nt}(br||nt,function(oo,ro){br&&(oo=nt[ro=oo]),Gr(Ai,ro,Wr(oo,Rt,pt,jt,ro,nt,xi))}),Ai}function Mr(nt){return!(!$n(nt)||function Ct(nt){return!!tt&&tt in nt}(nt))&&(an(nt)||re(nt)?Pe:Z).test(zt(nt))}function ar(nt){var Rt=new nt.constructor(nt.byteLength);return new Ce(Rt).set(new Ce(nt)),Rt}function vi(nt,Rt,pt,jt){pt||(pt={});for(var Un=-1,oi=Rt.length;++Un<oi;){var xi=Rt[Un],Ai=jt?jt(pt[xi],nt[xi],xi,pt,nt):void 0;Gr(pt,xi,void 0===Ai?nt[xi]:Ai)}return pt}function Tn(nt,Rt){var pt=nt.__data__;return function Ze(nt){var Rt=typeof nt;return"string"==Rt||"number"==Rt||"symbol"==Rt||"boolean"==Rt?"__proto__"!==nt:null===nt}(Rt)?pt["string"==typeof Rt?"string":"hash"]:pt.map}function Zn(nt,Rt){var pt=function Se(nt,Rt){return nt?.[Rt]}(nt,Rt);return Mr(pt)?pt:void 0}ki.prototype.clear=function Vn(){this.__data__=dt?dt(null):{}},ki.prototype.delete=function Oi(nt){return this.has(nt)&&delete this.__data__[nt]},ki.prototype.get=function Hn(nt){var Rt=this.__data__;if(dt){var pt=Rt[nt];return pt===g?void 0:pt}return gt.call(Rt,nt)?Rt[nt]:void 0},ki.prototype.has=function En(nt){var Rt=this.__data__;return dt?void 0!==Rt[nt]:gt.call(Rt,nt)},ki.prototype.set=function Mn(nt,Rt){return this.__data__[nt]=dt&&void 0===Rt?g:Rt,this},ei.prototype.clear=function Wn(){this.__data__=[]},ei.prototype.delete=function Ji(nt){var Rt=this.__data__,pt=Qr(Rt,nt);return!(pt<0||(pt==Rt.length-1?Rt.pop():yt.call(Rt,pt,1),0))},ei.prototype.get=function Sn(nt){var Rt=this.__data__,pt=Qr(Rt,nt);return pt<0?void 0:Rt[pt][1]},ei.prototype.has=function Qn(nt){return Qr(this.__data__,nt)>-1},ei.prototype.set=function ti(nt,Rt){var pt=this.__data__,jt=Qr(pt,nt);return jt<0?pt.push([nt,Rt]):pt[jt][1]=Rt,this},ci.prototype.clear=function Wi(){this.__data__={hash:new ki,map:new(St||ei),string:new ki}},ci.prototype.delete=function qi(nt){return Tn(this,nt).delete(nt)},ci.prototype.get=function nr(nt){return Tn(this,nt).get(nt)},ci.prototype.has=function xr(nt){return Tn(this,nt).has(nt)},ci.prototype.set=function vn(nt,Rt){return Tn(this,nt).set(nt,Rt),this},Pn.prototype.clear=function hi(){this.__data__=new ei},Pn.prototype.delete=function Si(nt){return this.__data__.delete(nt)},Pn.prototype.get=function Yi(nt){return this.__data__.get(nt)},Pn.prototype.has=function dr(nt){return this.__data__.has(nt)},Pn.prototype.set=function kr(nt,Rt){var pt=this.__data__;if(pt instanceof ei){var jt=pt.__data__;if(!St||jt.length<199)return jt.push([nt,Rt]),this;pt=this.__data__=new ci(jt)}return pt.set(nt,Rt),this};var fi=kt?ie(kt,Object):function nn(){return[]},Li=function mo(nt){return tn.call(nt)};function _n(nt,Rt){return!!(Rt=Rt??a)&&("number"==typeof nt||X.test(nt))&&nt>-1&&nt%1==0&&nt<Rt}function ft(nt){var Rt=nt&&nt.constructor;return nt===("function"==typeof Rt&&Rt.prototype||Ne)}function zt(nt){if(null!=nt){try{return Le.call(nt)}catch{}try{return nt+""}catch{}}return""}function Xt(nt,Rt){return nt===Rt||nt!=nt&&Rt!=Rt}(Ve&&Li(new Ve(new ArrayBuffer(1)))!=B||St&&Li(new St)!=b||Xe&&Li(Xe.resolve())!=S||Vt&&Li(new Vt)!=w||lt&&Li(new lt)!=R)&&(Li=function(nt){var Rt=tn.call(nt),pt=Rt==E?nt.constructor:void 0,jt=pt?zt(pt):void 0;if(jt)switch(jt){case vt:return B;case Lt:return b;case bn:return S;case mn:return w;case xn:return R}return Rt});var Ke=Array.isArray;function ht(nt){return null!=nt&&function Nn(nt){return"number"==typeof nt&&nt>-1&&nt%1==0&&nt<=a}(nt.length)&&!an(nt)}var hn=gn||function On(){return!1};function an(nt){var Rt=$n(nt)?tn.call(nt):"";return Rt==v||Rt==x}function $n(nt){var Rt=typeof nt;return!!nt&&("object"==Rt||"function"==Rt)}function Bt(nt){return ht(nt)?Nr(nt):function po(nt){if(!ft(nt))return ut(nt);var Rt=[];for(var pt in Object(nt))gt.call(nt,pt)&&"constructor"!=pt&&Rt.push(pt);return Rt}(nt)}I.exports=function wt(nt){return Wr(nt,!0,!0)}}).call(this,o(58),o(66)(he))},function(he,u,o){"use strict";o.d(u,"a",function(){return B}),o.d(u,"b",function(){return R}),o.d(u,"c",function(){return P});var c=o(6),I=o(10),C=o(24),g=o(14),a=o(9),p=o(13),s=o(0);function l(W){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(V){return typeof V}:function(V){return V&&"function"==typeof Symbol&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V})(W)}function d(W,z){if(!(W instanceof z))throw new TypeError("Cannot call a class as a function")}function h(W,z){for(var V=0;V<z.length;V++){var U=z[V];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(W,U.key,U)}}function v(W,z,V){return z&&h(W.prototype,z),V&&h(W,V),W}function x(W,z,V){return(x=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(K,Y,J){var j=function b(W,z){for(;!Object.prototype.hasOwnProperty.call(W,z)&&null!==(W=k(W)););return W}(K,Y);if(j){var ee=Object.getOwnPropertyDescriptor(j,Y);return ee.get?ee.get.call(J):ee.value}})(W,z,V||W)}function y(W,z){if("function"!=typeof z&&null!==z)throw new TypeError("Super expression must either be null or a function");W.prototype=Object.create(z&&z.prototype,{constructor:{value:W,writable:!0,configurable:!0}}),z&&E(W,z)}function E(W,z){return(E=Object.setPrototypeOf||function(U,K){return U.__proto__=K,U})(W,z)}function S(W){var z=function T(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var K,U=k(W);if(z){var Y=k(this).constructor;K=Reflect.construct(U,arguments,Y)}else K=U.apply(this,arguments);return O(this,K)}}function O(W,z){if(z&&("object"===l(z)||"function"==typeof z))return z;if(void 0!==z)throw new TypeError("Derived constructors may only return object or undefined");return function w(W){if(void 0===W)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return W}(W)}function k(W){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)})(W)}var R=function(W){y(V,W);var z=S(V);function V(){return d(this,V),z.apply(this,arguments)}return v(V,[{key:"code",value:function(K,Y){var J=this.children.map(function(j){return j.length()<=1?"":j.domNode.textContent}).join("\n").slice(K,K+Y);return Object(a.b)(J)}},{key:"html",value:function(K,Y){return"<pre>\n".concat(this.code(K,Y),"\n</pre>")}}],[{key:"create",value:function(K){var Y=x(k(V),"create",this).call(this,K);return Y.setAttribute("spellcheck",!1),Y}}]),V}(p.a),P=function(W){y(V,W);var z=S(V);function V(){return d(this,V),z.apply(this,arguments)}return v(V,null,[{key:"register",value:function(){s.a.register(R)}}]),V}(c.d),B=function(W){y(V,W);var z=S(V);function V(){return d(this,V),z.apply(this,arguments)}return V}(g.a);B.blotName="code",B.tagName="CODE",P.blotName="code-block",P.className="ql-code-block",P.tagName="DIV",R.blotName="code-block-container",R.className="ql-code-block-container",R.tagName="DIV",R.allowedChildren=[P],P.allowedChildren=[a.a,I.a,C.a],P.requiredContainer=R,P.TAB="  "},function(he,u,o){"use strict";var c=o(2),I=o(3),C=o(6),g=o(10),a=o(13);function p(U){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Y){return typeof Y}:function(Y){return Y&&"function"==typeof Symbol&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(U)}function s(U,K){return function x(U){if(Array.isArray(U))return U}(U)||function v(U,K){var Y=null==U?null:typeof Symbol<"u"&&U[Symbol.iterator]||U["@@iterator"];if(null!=Y){var G,q,J=[],j=!0,ee=!1;try{for(Y=Y.call(U);!(j=(G=Y.next()).done)&&(J.push(G.value),!K||J.length!==K);j=!0);}catch(Z){ee=!0,q=Z}finally{try{!j&&null!=Y.return&&Y.return()}finally{if(ee)throw q}}return J}}(U,K)||function d(U,K){if(U){if("string"==typeof U)return h(U,K);var Y=Object.prototype.toString.call(U).slice(8,-1);if("Object"===Y&&U.constructor&&(Y=U.constructor.name),"Map"===Y||"Set"===Y)return Array.from(U);if("Arguments"===Y||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y))return h(U,K)}}(U,K)||function l(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(U,K){(null==K||K>U.length)&&(K=U.length);for(var Y=0,J=new Array(K);Y<K;Y++)J[Y]=U[Y];return J}function y(U,K){for(var Y=0;Y<K.length;Y++){var J=K[Y];J.enumerable=J.enumerable||!1,J.configurable=!0,"value"in J&&(J.writable=!0),Object.defineProperty(U,J.key,J)}}function S(U,K,Y){return(S=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(j,ee,G){var q=function O(U,K){for(;!Object.prototype.hasOwnProperty.call(U,K)&&null!==(U=W(U)););return U}(j,ee);if(q){var Z=Object.getOwnPropertyDescriptor(q,ee);return Z.get?Z.get.call(G):Z.value}})(U,K,Y||U)}function w(U,K){if("function"!=typeof K&&null!==K)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(K&&K.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),K&&T(U,K)}function T(U,K){return(T=Object.setPrototypeOf||function(J,j){return J.__proto__=j,J})(U,K)}function k(U){var K=function B(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var j,J=W(U);if(K){var ee=W(this).constructor;j=Reflect.construct(J,arguments,ee)}else j=J.apply(this,arguments);return R(this,j)}}function R(U,K){if(K&&("object"===p(K)||"function"==typeof K))return K;if(void 0!==K)throw new TypeError("Derived constructors may only return object or undefined");return function P(U){if(void 0===U)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}(U)}function W(U){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)})(U)}function z(U){return U instanceof C.d||U instanceof C.a}var V=function(U){w(Y,U);var K=k(Y);function Y(J,j,ee){var G,q=ee.emitter,Z=ee.toggleBlankClass;return function b(U,K){if(!(U instanceof K))throw new TypeError("Cannot call a class as a function")}(this,Y),(G=K.call(this,J,j)).emitter=q,G.toggleBlankClass=Z,G.batch=!1,G.optimize(),G.enable(),G.domNode.addEventListener("dragstart",function(X){return G.handleDragStart(X)}),G}return function E(U,K,Y){return K&&y(U.prototype,K),Y&&y(U,Y),U}(Y,[{key:"batchStart",value:function(){Array.isArray(this.batch)||(this.batch=[])}},{key:"batchEnd",value:function(){var j=this.batch;this.batch=!1,this.update(j)}},{key:"emitMount",value:function(j){this.emitter.emit(I.a.events.SCROLL_BLOT_MOUNT,j)}},{key:"emitUnmount",value:function(j){this.emitter.emit(I.a.events.SCROLL_BLOT_UNMOUNT,j)}},{key:"deleteAt",value:function(j,ee){var q=s(this.line(j),2),Z=q[0],X=q[1],fe=s(this.line(j+ee),1)[0];if(S(W(Y.prototype),"deleteAt",this).call(this,j,ee),null!=fe&&Z!==fe&&X>0){if(Z instanceof C.a||fe instanceof C.a)return void this.optimize();Z.moveChildren(fe,fe.children.head instanceof g.a?null:fe.children.head),Z.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(j,ee,G,q){S(W(Y.prototype),"formatAt",this).call(this,j,ee,G,q),this.optimize()}},{key:"handleDragStart",value:function(j){j.preventDefault()}},{key:"insertAt",value:function(j,ee,G){if(j>=this.length())if(null==G||null==this.scroll.query(ee,c.Scope.BLOCK)){var q=this.scroll.create(this.statics.defaultChild.blotName);this.appendChild(q),null==G&&ee.endsWith("\n")?q.insertAt(0,ee.slice(0,-1),G):q.insertAt(0,ee,G)}else{var Z=this.scroll.create(ee,G);this.appendChild(Z)}else S(W(Y.prototype),"insertAt",this).call(this,j,ee,G);this.optimize()}},{key:"insertBefore",value:function(j,ee){if(j.statics.scope===c.Scope.INLINE_BLOT){var G=this.scroll.create(this.statics.defaultChild.blotName);G.appendChild(j),S(W(Y.prototype),"insertBefore",this).call(this,G,ee)}else S(W(Y.prototype),"insertBefore",this).call(this,j,ee)}},{key:"isEnabled",value:function(){return"true"===this.domNode.getAttribute("contenteditable")}},{key:"leaf",value:function(j){return this.path(j).pop()||[null,-1]}},{key:"line",value:function(j){return j===this.length()?this.line(j-1):this.descendant(z,j)}},{key:"lines",value:function(){return function q(Z,X,M){var oe=[],fe=M;return Z.children.forEachAt(X,M,function(Te,Be,ze){z(Te)?oe.push(Te):Te instanceof c.ContainerBlot&&(oe=oe.concat(q(Te,Be,fe))),fe-=ze}),oe}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.batch||(S(W(Y.prototype),"optimize",this).call(this,j,ee),j.length>0&&this.emitter.emit(I.a.events.SCROLL_OPTIMIZE,j,ee))}},{key:"path",value:function(j){return S(W(Y.prototype),"path",this).call(this,j).slice(1)}},{key:"remove",value:function(){}},{key:"update",value:function(j){var ee=this;if(this.batch)Array.isArray(j)&&(this.batch=this.batch.concat(j),this.toggleBlankClass());else{var G=I.a.sources.USER;"string"==typeof j&&(G=j),Array.isArray(j)||(j=this.observer.takeRecords()),(j=j.filter(function(q){var X=ee.find(q.target,!0);return X&&X.scroll===ee})).length>0&&this.emitter.emit(I.a.events.SCROLL_BEFORE_UPDATE,G,j),S(W(Y.prototype),"update",this).call(this,j.concat([])),j.length>0&&this.emitter.emit(I.a.events.SCROLL_UPDATE,G,j)}}}]),Y}(c.ScrollBlot);V.blotName="scroll",V.className="ql-editor",V.tagName="DIV",V.defaultChild=C.d,V.allowedChildren=[C.d,C.a,a.a],u.a=V},function(he,u,o){"use strict";o.d(u,"a",function(){return p}),o.d(u,"b",function(){return l}),o.d(u,"c",function(){return d});var c=o(32),I=o(33);function C(h,v){var x=Object.keys(h);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(h);v&&(b=b.filter(function(y){return Object.getOwnPropertyDescriptor(h,y).enumerable})),x.push.apply(x,b)}return x}function g(h){for(var v=1;v<arguments.length;v++){var x=null!=arguments[v]?arguments[v]:{};v%2?C(Object(x),!0).forEach(function(b){a(h,b,x[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(x)):C(Object(x)).forEach(function(b){Object.defineProperty(h,b,Object.getOwnPropertyDescriptor(x,b))})}return h}function a(h,v,x){return v in h?Object.defineProperty(h,v,{value:x,enumerable:!0,configurable:!0,writable:!0}):h[v]=x,h}var p={attribute:"attr",style:"style"},s=g(g({},c.d.allowedTags.reduce(function(h,v){return h[v]={name:c.d.name,keyNamesSet:c.b},h},{})),I.d.allowedTags.reduce(function(h,v){return h[v]={name:I.d.name,keyNamesSet:I.b},h},{}));function l(h,v,x){var b=s[h];return b&&b.keyNamesSet.has(v)?"".concat(x).concat(b.name,"_").concat(v):v}function d(h){return h.replace(/([^]*_)/,"")}},function(he,u){var o=Function.prototype,c=o.bind,I=o.call,C=c&&c.bind(I);he.exports=c?function(g){return g&&C(I,g)}:function(g){return g&&function(){return I.apply(g,arguments)}}},function(he,u,o){"use strict";o.d(u,"c",function(){return h}),o.d(u,"d",function(){return v}),o.d(u,"b",function(){return x}),o.d(u,"a",function(){return b});var c=o(73),I=o(74),C=o(33);function g(y){return function l(y){if(Array.isArray(y))return d(y)}(y)||function s(y){if(typeof Symbol<"u"&&null!=y[Symbol.iterator]||null!=y["@@iterator"])return Array.from(y)}(y)||function p(y,E){if(y){if("string"==typeof y)return d(y,E);var S=Object.prototype.toString.call(y).slice(8,-1);if("Object"===S&&y.constructor&&(S=y.constructor.name),"Map"===S||"Set"===S)return Array.from(y);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return d(y,E)}}(y)||function a(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(y,E){(null==E||E>y.length)&&(E=y.length);for(var S=0,O=new Array(E);S<E;S++)O[S]=y[S];return O}var h=C.a.map(function(y){return Object(c.a)(C.d,y)}),v=C.c.map(function(y){return Object(I.a)(C.d,y)}),x=v.reduce(function(y,E){return y[E.attrName]=E,y},{}),b=[].concat(g(h),g(v)).reduce(function(y,E){return y[E.keyName]=E,y},{})},function(he,u){he.exports=function(o){return"function"==typeof o}},function(he,u,o){"use strict";var c=["error","warn","log","info"],I="warn";function C(a){if(c.indexOf(a)<=c.indexOf(I)){for(var p,s=arguments.length,l=new Array(s>1?s-1:0),d=1;d<s;d++)l[d-1]=arguments[d];(p=console)[a].apply(p,l)}}function g(a){return c.reduce(function(p,s){return p[s]=C.bind(console,s,a),p},{})}C.level=g.level=function(a){I=a},u.a=g},function(he,u,o){"use strict";var c=o(2),I=o(9);function C(O){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(T){return typeof T}:function(T){return T&&"function"==typeof Symbol&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(O)}function a(O,w){for(var T=0;T<w.length;T++){var k=w[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function s(O,w,T){return(s=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(R,P,B){var W=function l(O,w){for(;!Object.prototype.hasOwnProperty.call(O,w)&&null!==(O=E(O)););return O}(R,P);if(W){var z=Object.getOwnPropertyDescriptor(W,P);return z.get?z.get.call(B):z.value}})(O,w,T||O)}function d(O,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(w&&w.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),w&&h(O,w)}function h(O,w){return(h=Object.setPrototypeOf||function(k,R){return k.__proto__=R,k})(O,w)}function v(O){var w=function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var R,k=E(O);if(w){var P=E(this).constructor;R=Reflect.construct(k,arguments,P)}else R=k.apply(this,arguments);return x(this,R)}}function x(O,w){if(w&&("object"===C(w)||"function"==typeof w))return w;if(void 0!==w)throw new TypeError("Derived constructors may only return object or undefined");return function b(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}function E(O){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)})(O)}var S=function(O){d(T,O);var w=v(T);function T(k,R,P){var B;return function g(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}(this,T),(B=w.call(this,k,R)).selection=P,B.textNode=document.createTextNode(T.CONTENTS),B.domNode.appendChild(B.textNode),B.savedLength=0,B}return function p(O,w,T){return w&&a(O.prototype,w),T&&a(O,T),O}(T,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(R,P){if(0===this.savedLength){for(var B=this,W=0;null!=B&&B.statics.scope!==c.Scope.BLOCK_BLOT;)W+=B.offset(B.parent),B=B.parent;null!=B&&(this.savedLength=T.CONTENTS.length,B.optimize(),B.formatAt(W,T.CONTENTS.length,R,P),this.savedLength=0)}else s(E(T.prototype),"format",this).call(this,R,P)}},{key:"index",value:function(R,P){return R===this.textNode?0:s(E(T.prototype),"index",this).call(this,R,P)}},{key:"length",value:function(){return this.savedLength}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){s(E(T.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(this.selection.composing||null==this.parent)return null;for(var R=this.selection.getNativeRange();null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);var K,P=this.prev instanceof I.a?this.prev:null,B=P?P.length():0,W=this.next instanceof I.a?this.next:null,z=W?W.text:"",V=this.textNode,U=V.data.split(T.CONTENTS).join("");if(V.data=T.CONTENTS,P)K=P,(U||W)&&(P.insertAt(P.length(),U+z),W&&W.remove());else if(W)K=W,W.insertAt(0,U);else{var Y=document.createTextNode(U);K=this.scroll.create(Y),this.parent.insertBefore(K,this)}if(this.remove(),R){var J=function(q,Z){return P&&q===P.domNode?Z:q===V?B+Z-1:W&&q===W.domNode?B+U.length+Z:null},j=J(R.start.node,R.start.offset),ee=J(R.end.node,R.end.offset);if(null!==j&&null!==ee)return{startNode:K.domNode,startOffset:j,endNode:K.domNode,endOffset:ee}}return null}},{key:"update",value:function(R,P){var B=this;if(R.some(function(z){return"characterData"===z.type&&z.target===B.textNode})){var W=this.restore();W&&(P.range=W)}}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),T}(c.EmbedBlot);S.blotName="cursor",S.className="ql-cursor",S.tagName="span",S.CONTENTS="\ufeff",u.a=S},function(he,u,o){"use strict";o.r(u);var c=o(0),I=o(6),C=o(10),g=o(13),a=o(24),p=o(56),s=o(14),l=o(18),d=o(9),h=o(26),v=o(50),x=o(27),b=o(59);c.a.register({"blots/block":I.d,"blots/block/embed":I.a,"blots/break":C.a,"blots/container":g.a,"blots/cursor":a.a,"blots/embed":p.a,"blots/inline":s.a,"blots/scroll":l.a,"blots/text":d.a,"modules/clipboard":h.b,"modules/history":v.a,"modules/keyboard":x.b,"modules/uploader":b.a}),u.default=c.a},function(he,u,o){"use strict";o.d(u,"b",function(){return _e}),o.d(u,"d",function(){return Se}),o.d(u,"a",function(){return ye}),o.d(u,"c",function(){return ne});var c=o(1),I=o.n(c),C=o(2),g=o(6),a=o(0),p=o(23),s=o(12),l=o(38),d=o(45),h=o(17),v=o(34),x=o(35),b=o(46),y=o(47),E=o(27),S=o(31);function O(Pe,$e){var ge=Object.keys(Pe);if(Object.getOwnPropertySymbols){var Ce=Object.getOwnPropertySymbols(Pe);$e&&(Ce=Ce.filter(function(De){return Object.getOwnPropertyDescriptor(Pe,De).enumerable})),ge.push.apply(ge,Ce)}return ge}function w(Pe){for(var $e=1;$e<arguments.length;$e++){var ge=null!=arguments[$e]?arguments[$e]:{};$e%2?O(Object(ge),!0).forEach(function(Ce){k(Pe,Ce,ge[Ce])}):Object.getOwnPropertyDescriptors?Object.defineProperties(Pe,Object.getOwnPropertyDescriptors(ge)):O(Object(ge)).forEach(function(Ce){Object.defineProperty(Pe,Ce,Object.getOwnPropertyDescriptor(ge,Ce))})}return Pe}function T(Pe){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ge){return typeof ge}:function(ge){return ge&&"function"==typeof Symbol&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge})(Pe)}function k(Pe,$e,ge){return $e in Pe?Object.defineProperty(Pe,$e,{value:ge,enumerable:!0,configurable:!0,writable:!0}):Pe[$e]=ge,Pe}function R(Pe,$e){return function V(Pe){if(Array.isArray(Pe))return Pe}(Pe)||function z(Pe,$e){var ge=null==Pe?null:typeof Symbol<"u"&&Pe[Symbol.iterator]||Pe["@@iterator"];if(null!=ge){var bt,yt,Ce=[],De=!0,Ye=!1;try{for(ge=ge.call(Pe);!(De=(bt=ge.next()).done)&&(Ce.push(bt.value),!$e||Ce.length!==$e);De=!0);}catch(kt){Ye=!0,yt=kt}finally{try{!De&&null!=ge.return&&ge.return()}finally{if(Ye)throw yt}}return Ce}}(Pe,$e)||function B(Pe,$e){if(Pe){if("string"==typeof Pe)return W(Pe,$e);var ge=Object.prototype.toString.call(Pe).slice(8,-1);if("Object"===ge&&Pe.constructor&&(ge=Pe.constructor.name),"Map"===ge||"Set"===ge)return Array.from(Pe);if("Arguments"===ge||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ge))return W(Pe,$e)}}(Pe,$e)||function P(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function W(Pe,$e){(null==$e||$e>Pe.length)&&($e=Pe.length);for(var ge=0,Ce=new Array($e);ge<$e;ge++)Ce[ge]=Pe[ge];return Ce}function K(Pe,$e){for(var ge=0;ge<$e.length;ge++){var Ce=$e[ge];Ce.enumerable=Ce.enumerable||!1,Ce.configurable=!0,"value"in Ce&&(Ce.writable=!0),Object.defineProperty(Pe,Ce.key,Ce)}}function J(Pe,$e){if("function"!=typeof $e&&null!==$e)throw new TypeError("Super expression must either be null or a function");Pe.prototype=Object.create($e&&$e.prototype,{constructor:{value:Pe,writable:!0,configurable:!0}}),$e&&j(Pe,$e)}function j(Pe,$e){return(j=Object.setPrototypeOf||function(Ce,De){return Ce.__proto__=De,Ce})(Pe,$e)}function ee(Pe){var $e=function Z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var De,Ce=X(Pe);if($e){var Ye=X(this).constructor;De=Reflect.construct(Ce,arguments,Ye)}else De=Ce.apply(this,arguments);return G(this,De)}}function G(Pe,$e){if($e&&("object"===T($e)||"function"==typeof $e))return $e;if(void 0!==$e)throw new TypeError("Derived constructors may only return object or undefined");return q(Pe)}function q(Pe){if(void 0===Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Pe}function X(Pe){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(ge){return ge.__proto__||Object.getPrototypeOf(ge)})(Pe)}var M=Object(p.a)("quill:clipboard"),Te=[[3,tn],[3,tt],["br",function ue(Pe,$e){return ne($e,"\n")||$e.insert("\n"),$e}],[1,tt],[1,function ie(Pe,$e,ge){var Ce=ge.query(Pe);if(null==Ce)return $e;if(Ce.prototype instanceof C.EmbedBlot){var De={},Ye=Ce.value(Pe);if(null!=Ye)return De[Ce.blotName]=Ye,(new I.a).insert(De,Ce.formats(Pe,ge))}else if(Ce.prototype instanceof C.BlockBlot&&!ne($e,"\n")&&$e.insert("\n"),"function"==typeof Ce.formats)return ye($e,Ce.blotName,Ce.formats(Pe,ge));return $e}],[1,function te(Pe,$e,ge){if(-1===["TD","TH","TR","TABLE"].indexOf(Pe.tagName)){var Ce=C.Attributor.keys(Pe),De=C.ClassAttributor.keys(Pe),Ye=C.StyleAttributor.keys(Pe),bt={};if(Ce.concat(De).concat(Ye).forEach(function(yt){var kt=ge.query(yt,C.Scope.ATTRIBUTE);null!=kt&&(bt[kt.attrName]=kt.value(Pe),bt[kt.attrName])||(null!=(kt=ze[yt])&&(kt.attrName===yt||kt.keyName===yt)&&(bt[kt.attrName]=kt.value(Pe)||void 0),null!=(kt=ae[yt])&&(kt.attrName===yt||kt.keyName===yt)&&(bt[(kt=ae[yt]).attrName]=kt.value(Pe)||void 0))}),Object.keys(bt).length>0)return ye($e,bt)}return $e}],[1,function Le(Pe,$e){var ge={},Ce=Pe.style||{};return["height","width"].forEach(function(De){var Ye=-1!==["TD","TH"].indexOf(Pe.tagName),bt="TABLE"===Pe.tagName;if((Ye||bt)&&Ce[De]){var yt="".concat(bt?"table":"cell").concat(Object(S.a)(De));ge[yt]=Ce[De]}}),"italic"===Ce.fontStyle&&(ge.italic=!0),-1!==Ce.textDecoration.indexOf("underline")&&(ge.underline=!0),-1!==Ce.textDecoration.indexOf("line-through")&&(ge.strike=!0),(0===Ce.fontWeight.indexOf("bold")||parseInt(Ce.fontWeight,10)>=700)&&(ge.bold=!0),Object.keys(ge).length>0&&($e=ye($e,ge)),parseFloat(Ce.textIndent||0)>0?(new I.a).insert("\t").concat($e):$e}],["li",function Ne(Pe,$e,ge){var Ce=ge.query(Pe);if(null==Ce||"list"!==Ce.blotName||!ne($e,"\n"))return $e;for(var De=-1,Ye=Pe.parentNode;null!=Ye;)-1!==["OL","UL"].indexOf(Ye.tagName)&&(De+=1),Ye=Ye.parentNode;return De<=0?$e:$e.reduce(function(bt,yt){return yt.attributes&&"number"==typeof yt.attributes.indent?bt.push(yt):bt.insert(yt.insert,w({indent:De},yt.attributes||{}))},new I.a)}],["ol, ul",function mt(Pe,$e){return ye($e,"list","OL"===Pe.tagName?"ordered":"bullet")}],["pre",function be(Pe,$e,ge){var Ce=ge.query("code-block");return ye($e,"code-block",!Ce||Ce.formats(Pe,ge))}],["b",re.bind(re,"bold")],["i",re.bind(re,"italic")],["strike",re.bind(re,"strike")],["style",function Ae(){return new I.a}]],Be=[tn,tt],ze=[l.a,x.a].reduce(function(Pe,$e){return Pe[$e.keyName]=$e,Pe},{}),ae=[l.c,d.b,v.c,x.c,b.b,y.b].reduce(function(Pe,$e){return Pe[$e.keyName]=$e,Pe},{}),_e=function(Pe){J(ge,Pe);var $e=ee(ge);function ge(Ce,De){var Ye,bt;return function U(Pe,$e){if(!(Pe instanceof $e))throw new TypeError("Cannot call a class as a function")}(this,ge),(bt=$e.call(this,Ce,De)).quill.root.addEventListener("copy",function(yt){return bt.onCaptureCopy(yt,!1)}),bt.quill.root.addEventListener("cut",function(yt){return bt.onCaptureCopy(yt,!0)}),bt.quill.root.addEventListener("paste",bt.onCapturePaste.bind(q(bt))),bt.matchers=[],bt.tableBlots=null!==(Ye=De.tableBlots)&&void 0!==Ye?Ye:[],Te.concat(bt.options.matchers).forEach(function(yt){var kt=R(yt,2);bt.addMatcher(kt[0],kt[1])}),bt}return function Y(Pe,$e,ge){return $e&&K(Pe.prototype,$e),ge&&K(Pe,ge),Pe}(ge,[{key:"addMatcher",value:function(De,Ye){this.matchers.push([De,Ye])}},{key:"addTableBlot",value:function(De){this.tableBlots.push(De)}},{key:"convert",value:function(De){var Ye=De.html,bt=De.text,yt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return yt[h.c.blotName]?(new I.a).insert(bt,k({},h.c.blotName,yt[h.c.blotName])):Ye?this.applyMatchers(Ye,yt):this.applyTextMatchers(bt)}},{key:"applyTextMatchers",value:function(){var De=this,Ye=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(0===Ye.length)return new I.a;var bt=this.prepareTextMatching(),yt=this.quill.root.ownerDocument.createElement("div");yt.textContent=Ye;var kt=yt.childNodes[0];return bt.reduce(function(gn,ut){return ut(kt,gn,De.quill.scroll)},new I.a)}},{key:"applyMatchers",value:function(De){var Ye=this,bt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},kt=(new DOMParser).parseFromString(De,"text/html").body,gn=new WeakMap,Ve=R(this.prepareMatching(kt,gn),2),Vt=Se(this.quill.scroll,kt,Ve[0],Ve[1],gn);return ne(Vt,"\n")&&(null==Vt.ops[Vt.ops.length-1].attributes||Object.values(bt).some(function(lt){return Ye.tableBlots.includes(lt)}))?Vt.compose((new I.a).retain(Vt.length()-1).delete(1)):Vt}},{key:"dangerouslyPasteHTML",value:function(De,Ye){var bt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a.a.sources.API;if("string"==typeof De){var yt=this.convert({html:De,text:""});this.quill.setContents(yt,Ye),this.quill.setSelection(0,a.a.sources.SILENT)}else{var kt=this.convert({html:Ye,text:""});this.quill.updateContents((new I.a).retain(De).concat(kt),bt),this.quill.setSelection(De+kt.length(),a.a.sources.SILENT)}}},{key:"onCaptureCopy",value:function(De){var Ye=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!De.defaultPrevented){if(!De.clipboardData)return;De.preventDefault();var kt=R(this.quill.selection.getRange(),1)[0];if(null!=kt){var gn=this.onCopy(kt,Ye),ut=gn.html;De.clipboardData.setData("text/plain",gn.text),De.clipboardData.setData("text/html",ut),Ye&&(this.raiseCallback("onCut",De),Object(E.c)({range:kt,quill:this.quill}))}}}},{key:"onCapturePaste",value:function(De){if(!De.defaultPrevented&&this.quill.isEnabled()){if(this.raiseCallback("onPaste",De),!De.clipboardData)return;De.preventDefault();var Ye=this.quill.getSelection(!0);if(null!=Ye){var bt=De.clipboardData.getData("text/html"),yt=Array.from(De.clipboardData.files||[]);if(!bt&&yt.length>0)return void this.quill.uploader.upload(Ye,yt);if(bt&&yt.length>0){var gn=(new DOMParser).parseFromString(bt,"text/html").body;if(1===gn.childElementCount&&"IMG"===gn.firstElementChild.tagName)return void this.quill.uploader.upload(Ye,yt)}var Ve=De.clipboardData.getData("text/plain");this.onPaste(Ye,{html:bt,text:Ve})}}}},{key:"raiseCallback",value:function(De,Ye){var bt=this.options[De];bt&&"function"==typeof bt&&bt(Ye)}},{key:"onCopy",value:function(De){var Ye=this.quill.getText(De);return{html:this.quill.getSemanticHTML(De),text:Ye}}},{key:"onPaste",value:function(De,Ye){var bt=Ye.text,yt=Ye.html,kt=this.quill.getFormat(De.index),gn=this.convert({text:bt,html:yt},kt);M.log("onPaste",gn,{text:bt,html:yt});var ut=(new I.a).retain(De.index).delete(De.length).concat(gn);this.quill.updateContents(ut,a.a.sources.USER),this.quill.setSelection(ut.length()-De.length,a.a.sources.SILENT),this.quill.scrollIntoView()}},{key:"prepareMatching",value:function(De,Ye){var bt=[],yt=[];return this.matchers.forEach(function(kt){var gn=R(kt,2),ut=gn[0],Ve=gn[1];switch(ut){case 3:yt.push(Ve);break;case 1:bt.push(Ve);break;default:Array.from(De.querySelectorAll(ut)).forEach(function(St){Ye.has(St)?Ye.get(St).push(Ve):Ye.set(St,[Ve])})}}),[bt,yt]}},{key:"prepareTextMatching",value:function(){var De=[gt];return this.matchers.forEach(function(Ye){var bt=R(Ye,2),yt=bt[0],kt=bt[1];-1===Be.indexOf(kt)&&3===yt&&De.push(kt)}),De}}]),ge}(s.a);function ye(Pe,$e,ge){return"object"===T($e)?Object.keys($e).reduce(function(Ce,De){return ye(Ce,De,$e[De])},Pe):Pe.reduce(function(Ce,De){if(De.attributes&&De.attributes[$e])return Ce.push(De);var Ye=ge?k({},$e,ge):{};return Ce.insert(De.insert,w(w({},Ye),De.attributes))},new I.a)}function ne(Pe,$e){for(var ge="",Ce=Pe.ops.length-1;Ce>=0&&ge.length<$e.length;--Ce){var De=Pe.ops[Ce];if("string"!=typeof De.insert)break;ge=De.insert+ge}return ge.slice(-1*$e.length)===$e}function ce(Pe){return 0!==Pe.childNodes.length&&-1!==["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].indexOf(Pe.tagName.toLowerCase())}_e.DEFAULTS={matchers:[]};var le=new WeakMap;function pe(Pe){return null!=Pe&&(le.has(Pe)||le.set(Pe,"PRE"===Pe.tagName||pe(Pe.parentNode)),le.get(Pe))}function Se(Pe,$e,ge,Ce,De){return $e.nodeType===$e.TEXT_NODE?Ce.reduce(function(Ye,bt){return bt($e,Ye,Pe)},new I.a):$e.nodeType===$e.ELEMENT_NODE?Array.from($e.childNodes||[]).reduce(function(Ye,bt){var yt=Se(Pe,bt,ge,Ce,De);return bt.nodeType===$e.ELEMENT_NODE&&(yt=ge.reduce(function(kt,gn){return gn(bt,kt,Pe)},yt),yt=(De.get(bt)||[]).reduce(function(kt,gn){return gn(bt,kt,Pe)},yt)),Ye.concat(yt)},new I.a):new I.a}function re(Pe,$e,ge){return ye(ge,Pe,!0)}function tt(Pe,$e,ge){if(!ne($e,"\n")){if(ce(Pe))return $e.insert("\n");if($e.length()>0&&Pe.nextSibling)for(var Ce=Pe.nextSibling;null!=Ce;){if(ce(Ce))return $e.insert("\n");if(ge.query(Ce)?.prototype instanceof g.a)return $e.insert("\n");Ce=Ce.firstChild}}return $e}function gt(Pe,$e){var ge=Pe.data||"";return ge=ge.replace(/\r\n/g,"\n"),$e.insert(ge)}function tn(Pe,$e){var ge=Pe.data;if("O:P"===Pe.parentNode.tagName)return $e.insert(ge.trim());if(0===ge.trim().length&&-1!==ge.indexOf("\n"))return $e;if(!pe(Pe)){var Ce=function(Ye,bt){var yt=bt.replace(/[^\u00a0]/g,"");return yt.length<1&&Ye?" ":yt};ge=(ge=ge.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,Ce.bind(Ce,!0)),(null==Pe.previousSibling&&ce(Pe.parentNode)||null!=Pe.previousSibling&&ce(Pe.previousSibling))&&(ge=ge.replace(/^\s+/,Ce.bind(Ce,!1))),(null==Pe.nextSibling&&ce(Pe.parentNode)||null!=Pe.nextSibling&&ce(Pe.nextSibling))&&(ge=ge.replace(/\s+$/,Ce.bind(Ce,!1)))}return $e.insert(ge)}},function(he,u,o){"use strict";o.d(u,"b",function(){return M}),o.d(u,"a",function(){return X}),o.d(u,"d",function(){return Be}),o.d(u,"c",function(){return ze});var c=o(16),I=o.n(c),C=o(30),g=o.n(C),a=o(1),p=o.n(a),s=o(2),l=o(0),d=o(23),h=o(12),v=o(15);function b(ae){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ye){return typeof ye}:function(ye){return ye&&"function"==typeof Symbol&&ye.constructor===Symbol&&ye!==Symbol.prototype?"symbol":typeof ye})(ae)}function y(ae,_e){return function T(ae){if(Array.isArray(ae))return ae}(ae)||function w(ae,_e){var ye=null==ae?null:typeof Symbol<"u"&&ae[Symbol.iterator]||ae["@@iterator"];if(null!=ye){var pe,Se,ne=[],ce=!0,le=!1;try{for(ye=ye.call(ae);!(ce=(pe=ye.next()).done)&&(ne.push(pe.value),!_e||ne.length!==_e);ce=!0);}catch(re){le=!0,Se=re}finally{try{!ce&&null!=ye.return&&ye.return()}finally{if(le)throw Se}}return ne}}(ae,_e)||function S(ae,_e){if(ae){if("string"==typeof ae)return O(ae,_e);var ye=Object.prototype.toString.call(ae).slice(8,-1);if("Object"===ye&&ae.constructor&&(ye=ae.constructor.name),"Map"===ye||"Set"===ye)return Array.from(ae);if("Arguments"===ye||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ye))return O(ae,_e)}}(ae,_e)||function E(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(ae,_e){(null==_e||_e>ae.length)&&(_e=ae.length);for(var ye=0,ne=new Array(_e);ye<_e;ye++)ne[ye]=ae[ye];return ne}function k(ae,_e){var ye=Object.keys(ae);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(ae);_e&&(ne=ne.filter(function(ce){return Object.getOwnPropertyDescriptor(ae,ce).enumerable})),ye.push.apply(ye,ne)}return ye}function R(ae){for(var _e=1;_e<arguments.length;_e++){var ye=null!=arguments[_e]?arguments[_e]:{};_e%2?k(Object(ye),!0).forEach(function(ne){P(ae,ne,ye[ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ae,Object.getOwnPropertyDescriptors(ye)):k(Object(ye)).forEach(function(ne){Object.defineProperty(ae,ne,Object.getOwnPropertyDescriptor(ye,ne))})}return ae}function P(ae,_e,ye){return _e in ae?Object.defineProperty(ae,_e,{value:ye,enumerable:!0,configurable:!0,writable:!0}):ae[_e]=ye,ae}function W(ae,_e){for(var ye=0;ye<_e.length;ye++){var ne=_e[ye];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(ae,ne.key,ne)}}function V(ae,_e){if("function"!=typeof _e&&null!==_e)throw new TypeError("Super expression must either be null or a function");ae.prototype=Object.create(_e&&_e.prototype,{constructor:{value:ae,writable:!0,configurable:!0}}),_e&&U(ae,_e)}function U(ae,_e){return(U=Object.setPrototypeOf||function(ne,ce){return ne.__proto__=ce,ne})(ae,_e)}function K(ae){var _e=function j(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ce,ne=ee(ae);if(_e){var le=ee(this).constructor;ce=Reflect.construct(ne,arguments,le)}else ce=ne.apply(this,arguments);return Y(this,ce)}}function Y(ae,_e){if(_e&&("object"===b(_e)||"function"==typeof _e))return _e;if(void 0!==_e)throw new TypeError("Derived constructors may only return object or undefined");return function J(ae){if(void 0===ae)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ae}(ae)}function ee(ae){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(ye){return ye.__proto__||Object.getPrototypeOf(ye)})(ae)}var G=Object(d.a)("quill:keyboard"),q={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},Z={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},X=Object(v.a)()&&/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",M=function(ae){V(ye,ae);var _e=K(ye);function ye(ne,ce){var le;return function B(ae,_e){if(!(ae instanceof _e))throw new TypeError("Cannot call a class as a function")}(this,ye),(le=_e.call(this,ne,ce)).bindings={},Object.keys(le.options.bindings).forEach(function(pe){le.options.bindings[pe]&&le.addBinding(le.options.bindings[pe])}),le.addInternalBindings(),le.listen(),le}return function z(ae,_e,ye){return _e&&W(ae.prototype,_e),ye&&W(ae,ye),ae}(ye,[{key:"addInternalBindings",value:function(){var ce=this;this.quill.once(l.a.events.CONTENT_SETTED,function(){ce.addBinding({key:"enter",shiftKey:null},ce.handleEnter),ce.addBinding({key:"enter",metaKey:null,ctrlKey:null,altKey:null},function(){}),Object(v.a)()&&/Firefox/i.test(navigator.userAgent)?(ce.addBinding({key:"backspace"},{collapsed:!0},ce.handleBackspace),ce.addBinding({key:"del"},{collapsed:!0},ce.handleDelete)):(ce.addBinding({key:"backspace"},{collapsed:!0,prefix:/^.?$/},ce.handleBackspace),ce.addBinding({key:"del"},{collapsed:!0,suffix:/^.?$/},ce.handleDelete)),ce.addBinding({key:"backspace"},{collapsed:!1},ce.handleDeleteRange),ce.addBinding({key:"del"},{collapsed:!1},ce.handleDeleteRange),ce.addBinding({key:"backspace",altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},ce.handleBackspace)})}},{key:"addBinding",value:function(ce){var le=this,pe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},re=Be(ce);if(null!=re){"function"==typeof pe&&(pe={handler:pe}),"function"==typeof Se&&(Se={handler:Se});var te=re.which?"which":"key";(Array.isArray(re[te])?re[te]:[re[te]]).forEach(function(ue){var be=R(R(R({},re),{},{key:ue},pe),Se);le.bindings[be.key]=le.bindings[be.key]||[],le.bindings[be.key].push(be)})}else G.warn("Attempted to add invalid keyboard binding",re)}},{key:"listen",value:function(){var ce=this;this.quill.root.addEventListener("keydown",function(le){if(!le.defaultPrevented&&!le.isComposing){ce.raiseOnKeydownCallback(le);var pe=ye.normalizeKeyName(le),re=(ce.bindings[pe]||[]).concat(ce.bindings[le.which]||[]).filter(function(bt){return ye.match(le,bt)});if(0!==re.length){var te=ce.quill.getSelection();if(null!=te&&ce.quill.hasFocus()){var ue=y(ce.quill.getLine(te.index),2),be=ue[0],Ae=ue[1],mt=y(ce.quill.getLeaf(te.index),2),tt=mt[0],Le=mt[1],tn=y(0===te.length?[tt,Le]:ce.quill.getLeaf(te.index+te.length),2),Pe=tn[0],$e=tn[1],ge=tt instanceof s.TextBlot?tt.value().slice(0,Le):"",Ce=Pe instanceof s.TextBlot?Pe.value().slice($e):"",De={collapsed:0===te.length,empty:0===te.length&&be.length()<=1,format:ce.quill.getFormat(te),line:be,offset:Ae,prefix:ge,suffix:Ce,event:le},Ye=!1;re.some(function(bt){if(null!=bt.collapsed&&bt.collapsed!==De.collapsed||null!=bt.empty&&bt.empty!==De.empty||null!=bt.offset&&bt.offset!==De.offset)return!1;if(Array.isArray(bt.format)){if(bt.format.every(function(gn){return null==De.format[gn]}))return!1}else if("object"===b(bt.format)&&!Object.keys(bt.format).every(function(gn){return!0===bt.format[gn]?null!=De.format[gn]:!1===bt.format[gn]?null==De.format[gn]:g()(bt.format[gn],De.format[gn])}))return!1;if(null!=bt.prefix&&!bt.prefix.test(De.prefix)||null!=bt.suffix&&!bt.suffix.test(De.suffix))return!1;var yt=bt.handler.call(ce,te,De,bt),kt=yt?.preventAfterAllMatches;return(Ye=!0!==yt||kt)&&!kt}),Ye&&le.preventDefault()}}}})}},{key:"raiseOnKeydownCallback",value:function(ce){var le=this.options.onKeydown;le&&"function"==typeof le&&le(ce)}},{key:"handleBackspace",value:function(ce,le){var pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(le.prefix)?2:1;if(!(0===ce.index||this.quill.getLength()<=1)){var Se={},ie=y(this.quill.getLine(ce.index),1)[0],ue=(new p.a).retain(ce.index-pe).delete(pe);if(0===le.offset){var Ne=y(this.quill.getLine(ce.index-1),1)[0];if(Ne&&!("block"===Ne.statics.blotName&&Ne.length()<=1)){var tt=ie.formats(),Le=this.quill.getFormat(ce.index-1,1);if(Se=a.AttributeMap.diff(tt,Le)||{},Object.keys(Se).length>0){var gt=(new p.a).retain(ce.index+ie.length()-2).retain(1,Se);ue=ue.compose(gt)}}}this.quill.updateContents(ue,l.a.sources.USER),this.quill.focus()}}},{key:"handleDelete",value:function(ce,le){var pe=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(le.suffix)?2:1;if(!(ce.index>=this.quill.getLength()-pe)){var Se={},ie=y(this.quill.getLine(ce.index),1)[0],ue=(new p.a).retain(ce.index).delete(pe);if(le.offset>=ie.length()-1){var Ne=y(this.quill.getLine(ce.index+1),1)[0];if(Ne){var mt=ie.formats(),tt=this.quill.getFormat(ce.index,1);Se=a.AttributeMap.diff(mt,tt)||{},Object.keys(Se).length>0&&(ue=ue.retain(Ne.length()-1).retain(1,Se))}}this.quill.updateContents(ue,l.a.sources.USER),this.quill.focus()}}},{key:"handleDeleteRange",value:function(ce,le){this.raiseOnKeydownCallback(le.event),ze({range:ce,quill:this.quill}),this.quill.focus()}},{key:"handleEnter",value:function(ce,le){var pe=this,Se=Object.keys(le.format).reduce(function(Ae,Ne){return pe.quill.scroll.query(Ne,s.Scope.BLOCK)&&!Array.isArray(le.format[Ne])&&(Ae[Ne]=le.format[Ne]),Ae},{}),re=(new p.a).retain(ce.index).delete(ce.length).insert("\n",Se);this.quill.updateContents(re,l.a.sources.USER),this.quill.setSelection(ce.index+1,l.a.sources.SILENT),this.quill.focus();var ue=y(this.quill.getLine(ce.index+1),1)[0],be=function x(ae){var ye=window.innerHeight,ne=ae.getBoundingClientRect();return ne.y<0||!(ne.bottom>=ye)&&null}(ue.domNode);null!==be&&ue.domNode.scrollIntoView(be),Object.keys(le.format).forEach(function(Ae){null==Se[Ae]&&(Array.isArray(le.format[Ae])||"code"===Ae||"link"===Ae||(pe.raiseOnKeydownCallback(le.event),pe.quill.format(Ae,le.format[Ae],l.a.sources.USER)))})}}],[{key:"match",value:function(ce,le){return!["altKey","ctrlKey","metaKey","shiftKey"].some(function(pe){return!!le[pe]!==ce[pe]&&null!==le[pe]})&&(le.key===ye.normalizeKeyName(ce)||le.key===ce.which)}},{key:"normalizeKeyName",value:function(ce){var le=ce.key,Se=!!le,re=Se?le:ce.which;return re&&(re=Se?q[re.toLowerCase()]||re:Z[re]||String.fromCharCode(re)),re}}]),ye}(h.a);function oe(ae){return{key:"tab",shiftKey:!ae,format:{"code-block":!0},handler:function(ye){var ne=this.quill.scroll.query("code-block"),ce=0===ye.length?this.quill.getLines(ye.index,1):this.quill.getLines(ye),le=ye.index,pe=ye.length;ce.forEach(function(Se,re){ae?(Se.insertAt(0,ne.TAB),0===re?le+=ne.TAB.length:pe+=ne.TAB.length):0===Se.domNode.textContent.indexOf(ne.TAB)&&(Se.deleteAt(0,ne.TAB.length),0===re?le-=ne.TAB.length:pe-=ne.TAB.length)}),this.quill.update(l.a.sources.USER),this.quill.setSelection(le,pe,l.a.sources.SILENT)}}}function fe(ae,_e){var ye;return P(ye={key:ae,shiftKey:_e,altKey:null},"leftArrow"===ae?"prefix":"suffix",/^$/),P(ye,"handler",function(le){var pe=le.index;return"rightArrow"===ae&&(pe+=le.length+1),!(y(this.quill.getLeaf(pe),1)[0]instanceof s.EmbedBlot&&("leftArrow"===ae?_e?this.quill.setSelection(le.index-1,le.length+1,l.a.sources.USER):this.quill.setSelection(le.index-1,l.a.sources.USER):_e?this.quill.setSelection(le.index,le.length+1,l.a.sources.USER):this.quill.setSelection(le.index+le.length+1,l.a.sources.USER),1))}),ye}function Te(ae,_e){return{key:ae[0],which:_e,shortKey:!0,handler:function(ne,ce){return this.quill.format(ae,!ce.format[ae],l.a.sources.USER),{preventAfterAllMatches:!0}}}}function Be(ae){if("string"==typeof ae||"number"==typeof ae)ae={key:ae};else{if("object"!==b(ae))return null;ae=I()(ae)}return ae.shortKey&&(ae[X]=ae.shortKey,delete ae.shortKey),ae}function ze(ae){var _e=ae.quill,ye=ae.range,ne=_e.getLines(ye),ce={};if(ne.length>1){var le=ne[0].formats(),pe=ne[ne.length-1].formats();ce=a.AttributeMap.diff(pe,le)||{}}_e.deleteText(ye,l.a.sources.USER),Object.keys(ce).length>0&&_e.formatLine(ye.index,1,ce,l.a.sources.USER),_e.setSelection(ye.index,l.a.sources.SILENT)}M.DEFAULTS={bindings:{bold:Te("bold",66),italic:Te("italic",73),underline:Te("underline",85),indent:{key:"tab",format:["blockquote","indent","list"],handler:function(_e,ye){return!(!ye.collapsed||0===ye.offset)||(this.quill.format("indent","+1",l.a.sources.USER),!1)}},outdent:{key:"tab",shiftKey:!0,format:["blockquote","indent","list"],handler:function(_e,ye){return!(!ye.collapsed||0===ye.offset)||(this.quill.format("indent","-1",l.a.sources.USER),!1)}},"outdent backspace":{key:"backspace",collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(_e,ye){null!=ye.format.indent?this.quill.format("indent","-1",l.a.sources.USER):null!=ye.format.list&&this.quill.format("list",!1,l.a.sources.USER)}},"indent code-block":oe(!0),"outdent code-block":oe(!1),"remove tab":{key:"tab",shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(_e){this.quill.deleteText(_e.index-1,1,l.a.sources.USER)}},tab:{key:"tab",handler:function(_e,ye){if(ye.format.table)return!0;this.quill.history.cutoff();var ne=(new p.a).retain(_e.index).delete(_e.length).insert("\t");return this.quill.updateContents(ne,l.a.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(_e.index+1,l.a.sources.SILENT),!1}},"blockquote empty enter":{key:"enter",collapsed:!0,format:["blockquote"],empty:!0,handler:function(){this.quill.format("blockquote",!1,l.a.sources.USER)}},"list empty enter":{key:"enter",collapsed:!0,format:["list"],empty:!0,handler:function(_e,ye){var ne={list:!1};ye.format.indent&&(ne.indent=!1),this.quill.formatLine(_e.index,_e.length,ne,l.a.sources.USER)}},"checklist enter":{key:"enter",collapsed:!0,format:{list:"checked"},handler:function(_e){var ne=y(this.quill.getLine(_e.index),2),ce=ne[0],le=ne[1],pe=R(R({},ce.formats()),{},{list:"checked"}),Se=(new p.a).retain(_e.index).insert("\n",pe).retain(ce.length()-le-1).retain(1,{list:"unchecked"});this.quill.updateContents(Se,l.a.sources.USER),this.quill.setSelection(_e.index+1,l.a.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:"enter",collapsed:!0,format:["header"],suffix:/^$/,handler:function(_e,ye){var ce=y(this.quill.getLine(_e.index),2),le=ce[0],pe=ce[1],Se=(new p.a).retain(_e.index).insert("\n",ye.format).retain(le.length()-pe-1).retain(1,{header:null});this.quill.updateContents(Se,l.a.sources.USER),this.quill.setSelection(_e.index+1,l.a.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:"space",shiftKey:null,collapsed:!0,format:{"code-block":!1,blockquote:!1,table:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(_e,ye){if(null==this.quill.scroll.query("list"))return!0;var re,ne=ye.prefix.length,le=y(this.quill.getLine(_e.index),2),pe=le[0],Se=le[1];if(Se>ne)return!0;switch(ye.prefix.trim()){case"[]":case"[ ]":re="unchecked";break;case"[x]":re="checked";break;case"-":case"*":re="bullet";break;default:re="ordered"}this.quill.insertText(_e.index," ",l.a.sources.USER),this.quill.history.cutoff();var te=(new p.a).retain(_e.index-Se).delete(ne+1).retain(pe.length()-2-Se).retain(1,{list:re});return this.raiseOnKeydownCallback(ye.event),this.quill.updateContents(te,l.a.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(_e.index-ne,l.a.sources.SILENT),!1}},"code exit":{key:"enter",collapsed:!0,format:["code-block"],prefix:/^$/,suffix:/^\s*$/,handler:function(_e){for(var ne=y(this.quill.getLine(_e.index),2),ce=ne[0],le=ne[1],pe=2,Se=ce;null!=Se&&Se.length()<=1&&Se.formats()["code-block"];)if(Se=Se.prev,(pe-=1)<=0){var re=(new p.a).retain(_e.index+ce.length()-le-2).retain(1,{"code-block":null}).delete(1);return this.quill.updateContents(re,l.a.sources.USER),this.quill.setSelection(_e.index-1,l.a.sources.SILENT),!1}return!0}},"embed left":fe("leftArrow",!1),"embed left shift":fe("leftArrow",!0),"embed right":fe("rightArrow",!1),"embed right shift":fe("rightArrow",!0)}}},function(he,u,o){var c=o(8),I=o(96),C=o(36),g=o(97),a=o(98),p=o(99),s=I("wks"),l=c.Symbol,d=l&&l.for,h=p?l:l&&l.withoutSetter||g;he.exports=function(v){if(!C(s,v)||!a&&"string"!=typeof s[v]){var x="Symbol."+v;s[v]=a&&C(l,v)?l[v]:p&&d?d(x):h(x)}return s[v]}},function(he,u,o){"use strict";o.d(u,"c",function(){return I}),o.d(u,"a",function(){return C}),o.d(u,"b",function(){return g});var c=o(19);function I(a){var p=this.keyName;this.keyName=Object(c.c)(this.keyName);for(var s=arguments.length,l=new Array(s>1?s-1:0),d=1;d<s;d++)l[d-1]=arguments[d];var h=a.call.apply(a,[this].concat(l));return this.keyName=p,h}function C(a,p,s){return this.allowedTags.indexOf(p.tagName)>-1&&a.call(this,p,s)}function g(a,p,s){return a(p).map(function(l){return Object(c.b)(p.tagName,l,s)})}},function(he,u,o){(function(c,I){var g="__lodash_hash_undefined__",s=9007199254740991,l="[object Arguments]",d="[object Array]",v="[object Boolean]",x="[object Date]",b="[object Error]",y="[object Function]",S="[object Map]",O="[object Number]",T="[object Object]",k="[object Promise]",P="[object RegExp]",B="[object Set]",W="[object String]",z="[object Symbol]",U="[object WeakMap]",K="[object ArrayBuffer]",Y="[object DataView]",Te=/^\[object .+?Constructor\]$/,Be=/^(?:0|[1-9]\d*)$/,ze={};ze["[object Float32Array]"]=ze["[object Float64Array]"]=ze["[object Int8Array]"]=ze["[object Int16Array]"]=ze["[object Int32Array]"]=ze["[object Uint8Array]"]=ze["[object Uint8ClampedArray]"]=ze["[object Uint16Array]"]=ze["[object Uint32Array]"]=!0,ze[l]=ze[d]=ze[K]=ze[v]=ze[Y]=ze[x]=ze[b]=ze[y]=ze[S]=ze[O]=ze[T]=ze[P]=ze[B]=ze[W]=ze[U]=!1;var ae="object"==typeof c&&c&&c.Object===Object&&c,_e="object"==typeof self&&self&&self.Object===Object&&self,ye=ae||_e||Function("return this")(),ne=u&&!u.nodeType&&u,ce=ne&&"object"==typeof I&&I&&!I.nodeType&&I,le=ce&&ce.exports===ne,pe=le&&ae.process,Se=function(){try{return pe&&pe.binding&&pe.binding("util")}catch{}}(),re=Se&&Se.isTypedArray;function ue(nt,Rt){for(var pt=-1,jt=null==nt?0:nt.length;++pt<jt;)if(Rt(nt[pt],pt,nt))return!0;return!1}function Ne(nt,Rt){return nt.has(Rt)}function tt(nt){var Rt=-1,pt=Array(nt.size);return nt.forEach(function(jt,Un){pt[++Rt]=[Un,jt]}),pt}function gt(nt){var Rt=-1,pt=Array(nt.size);return nt.forEach(function(jt){pt[++Rt]=jt}),pt}var nt,tn=Array.prototype,$e=Object.prototype,ge=ye["__core-js_shared__"],Ce=Function.prototype.toString,De=$e.hasOwnProperty,Ye=(nt=/[^.]+$/.exec(ge&&ge.keys&&ge.keys.IE_PROTO||""))?"Symbol(src)_1."+nt:"",bt=$e.toString,yt=RegExp("^"+Ce.call(De).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kt=le?ye.Buffer:void 0,gn=ye.Symbol,ut=ye.Uint8Array,Ve=$e.propertyIsEnumerable,St=tn.splice,Xe=gn?gn.toStringTag:void 0,Vt=Object.getOwnPropertySymbols,lt=kt?kt.isBuffer:void 0,dt=function Le(nt,Rt){return function(pt){return nt(Rt(pt))}}(Object.keys,Object),vt=fi(ye,"DataView"),Lt=fi(ye,"Map"),bn=fi(ye,"Promise"),mn=fi(ye,"Set"),xn=fi(ye,"WeakMap"),Xn=fi(Object,"create"),li=zt(vt),ki=zt(Lt),Vn=zt(bn),Oi=zt(mn),Hn=zt(xn),En=gn?gn.prototype:void 0,Mn=En?En.valueOf:void 0;function ei(nt){var Rt=-1,pt=null==nt?0:nt.length;for(this.clear();++Rt<pt;){var jt=nt[Rt];this.set(jt[0],jt[1])}}function ci(nt){var Rt=-1,pt=null==nt?0:nt.length;for(this.clear();++Rt<pt;){var jt=nt[Rt];this.set(jt[0],jt[1])}}function Pn(nt){var Rt=-1,pt=null==nt?0:nt.length;for(this.clear();++Rt<pt;){var jt=nt[Rt];this.set(jt[0],jt[1])}}function Nr(nt){var Rt=-1,pt=null==nt?0:nt.length;for(this.__data__=new Pn;++Rt<pt;)this.add(nt[Rt])}function Sr(nt){var Rt=this.__data__=new ci(nt);this.size=Rt.size}function po(nt,Rt){var pt=fn(nt),jt=!pt&&Xt(nt),Un=!pt&&!jt&&ht(nt),oi=!pt&&!jt&&!Un&&ot(nt),xi=pt||jt||Un||oi,Ai=xi?function be(nt,Rt){for(var pt=-1,jt=Array(nt);++pt<nt;)jt[pt]=Rt(pt);return jt}(nt.length,String):[],Ui=Ai.length;for(var ji in nt)(Rt||De.call(nt,ji))&&(!xi||!("length"==ji||Un&&("offset"==ji||"parent"==ji)||oi&&("buffer"==ji||"byteLength"==ji||"byteOffset"==ji)||Qt(ji,Ui)))&&Ai.push(ji);return Ai}function mi(nt,Rt){for(var pt=nt.length;pt--;)if(wt(nt[pt][0],Rt))return pt;return-1}function Xr(nt){return null==nt?void 0===nt?"[object Undefined]":"[object Null]":Xe&&Xe in Object(nt)?function Li(nt){var Rt=De.call(nt,Xe),pt=nt[Xe];try{nt[Xe]=void 0;var jt=!0}catch{}var Un=bt.call(nt);return jt&&(Rt?nt[Xe]=pt:delete nt[Xe]),Un}(nt):function ft(nt){return bt.call(nt)}(nt)}function lo(nt){return $n(nt)&&Xr(nt)==l}function _o(nt,Rt,pt,jt,Un){return nt===Rt||(null==nt||null==Rt||!$n(nt)&&!$n(Rt)?nt!=nt&&Rt!=Rt:function bo(nt,Rt,pt,jt,Un,oi){var xi=fn(nt),Ai=fn(Rt),Ui=xi?d:gr(nt),ji=Ai?d:gr(Rt),Qi=(Ui=Ui==l?T:Ui)==T,Tr=(ji=ji==l?T:ji)==T,br=Ui==ji;if(br&&ht(nt)){if(!ht(Rt))return!1;xi=!0,Qi=!1}if(br&&!Qi)return oi||(oi=new Sr),xi||ot(nt)?vi(nt,Rt,pt,jt,Un,oi):function _i(nt,Rt,pt,jt,Un,oi,xi){switch(pt){case Y:if(nt.byteLength!=Rt.byteLength||nt.byteOffset!=Rt.byteOffset)return!1;nt=nt.buffer,Rt=Rt.buffer;case K:return!(nt.byteLength!=Rt.byteLength||!oi(new ut(nt),new ut(Rt)));case v:case x:case O:return wt(+nt,+Rt);case b:return nt.name==Rt.name&&nt.message==Rt.message;case P:case W:return nt==Rt+"";case S:var Ai=tt;case B:if(Ai||(Ai=gt),nt.size!=Rt.size&&!(1&jt))return!1;var ji=xi.get(nt);if(ji)return ji==Rt;jt|=2,xi.set(nt,Rt);var Qi=vi(Ai(nt),Ai(Rt),jt,Un,oi,xi);return xi.delete(nt),Qi;case z:if(Mn)return Mn.call(nt)==Mn.call(Rt)}return!1}(nt,Rt,Ui,pt,jt,Un,oi);if(!(1&pt)){var oo=Qi&&De.call(nt,"__wrapped__"),ro=Tr&&De.call(Rt,"__wrapped__");if(oo||ro){var No=oo?nt.value():nt,uo=ro?Rt.value():Rt;return oi||(oi=new Sr),Un(No,uo,pt,jt,oi)}}return!!br&&(oi||(oi=new Sr),function dn(nt,Rt,pt,jt,Un,oi){var xi=1&pt,Ai=Tn(nt),Ui=Ai.length;if(Ui!=Tn(Rt).length&&!xi)return!1;for(var Tr=Ui;Tr--;){var br=Ai[Tr];if(!(xi?br in Rt:De.call(Rt,br)))return!1}var oo=oi.get(nt);if(oo&&oi.get(Rt))return oo==Rt;var ro=!0;oi.set(nt,Rt),oi.set(Rt,nt);for(var No=xi;++Tr<Ui;){var uo=nt[br=Ai[Tr]],$o=Rt[br];if(jt)var pa=xi?jt($o,uo,br,Rt,nt,oi):jt(uo,$o,br,nt,Rt,oi);if(!(void 0===pa?uo===$o||Un(uo,$o,pt,jt,oi):pa)){ro=!1;break}No||(No="constructor"==br)}if(ro&&!No){var ra=nt.constructor,wo=Rt.constructor;ra!=wo&&"constructor"in nt&&"constructor"in Rt&&!("function"==typeof ra&&ra instanceof ra&&"function"==typeof wo&&wo instanceof wo)&&(ro=!1)}return oi.delete(nt),oi.delete(Rt),ro}(nt,Rt,pt,jt,Un,oi))}(nt,Rt,pt,jt,_o,Un))}function It(nt){return!(!Nn(nt)||function Ze(nt){return!!Ye&&Ye in nt}(nt))&&(hn(nt)?yt:Te).test(zt(nt))}function jn(nt){if(!function Ct(nt){var Rt=nt&&nt.constructor;return nt===("function"==typeof Rt&&Rt.prototype||$e)}(nt))return dt(nt);var Rt=[];for(var pt in Object(nt))De.call(nt,pt)&&"constructor"!=pt&&Rt.push(pt);return Rt}function vi(nt,Rt,pt,jt,Un,oi){var xi=1&pt,Ai=nt.length,Ui=Rt.length;if(Ai!=Ui&&!(xi&&Ui>Ai))return!1;var ji=oi.get(nt);if(ji&&oi.get(Rt))return ji==Rt;var Qi=-1,Tr=!0,br=2&pt?new Nr:void 0;for(oi.set(nt,Rt),oi.set(Rt,nt);++Qi<Ai;){var oo=nt[Qi],ro=Rt[Qi];if(jt)var No=xi?jt(ro,oo,Qi,Rt,nt,oi):jt(oo,ro,Qi,nt,Rt,oi);if(void 0!==No){if(No)continue;Tr=!1;break}if(br){if(!ue(Rt,function(uo,$o){if(!Ne(br,$o)&&(oo===uo||Un(oo,uo,pt,jt,oi)))return br.push($o)})){Tr=!1;break}}else if(oo!==ro&&!Un(oo,ro,pt,jt,oi)){Tr=!1;break}}return oi.delete(nt),oi.delete(Rt),Tr}function Tn(nt){return function ar(nt,Rt,pt){var jt=Rt(nt);return fn(nt)?jt:function ie(nt,Rt){for(var pt=-1,jt=Rt.length,Un=nt.length;++pt<jt;)nt[Un+pt]=Rt[pt];return nt}(jt,pt(nt))}(nt,Bt,sr)}function Zn(nt,Rt){var pt=nt.__data__;return function _n(nt){var Rt=typeof nt;return"string"==Rt||"number"==Rt||"symbol"==Rt||"boolean"==Rt?"__proto__"!==nt:null===nt}(Rt)?pt["string"==typeof Rt?"string":"hash"]:pt.map}function fi(nt,Rt){var pt=function mt(nt,Rt){return nt?.[Rt]}(nt,Rt);return It(pt)?pt:void 0}ei.prototype.clear=function Wn(){this.__data__=Xn?Xn(null):{},this.size=0},ei.prototype.delete=function Ji(nt){var Rt=this.has(nt)&&delete this.__data__[nt];return this.size-=Rt?1:0,Rt},ei.prototype.get=function Sn(nt){var Rt=this.__data__;if(Xn){var pt=Rt[nt];return pt===g?void 0:pt}return De.call(Rt,nt)?Rt[nt]:void 0},ei.prototype.has=function Qn(nt){var Rt=this.__data__;return Xn?void 0!==Rt[nt]:De.call(Rt,nt)},ei.prototype.set=function ti(nt,Rt){var pt=this.__data__;return this.size+=this.has(nt)?0:1,pt[nt]=Xn&&void 0===Rt?g:Rt,this},ci.prototype.clear=function Wi(){this.__data__=[],this.size=0},ci.prototype.delete=function qi(nt){var Rt=this.__data__,pt=mi(Rt,nt);return!(pt<0||(pt==Rt.length-1?Rt.pop():St.call(Rt,pt,1),--this.size,0))},ci.prototype.get=function nr(nt){var Rt=this.__data__,pt=mi(Rt,nt);return pt<0?void 0:Rt[pt][1]},ci.prototype.has=function xr(nt){return mi(this.__data__,nt)>-1},ci.prototype.set=function vn(nt,Rt){var pt=this.__data__,jt=mi(pt,nt);return jt<0?(++this.size,pt.push([nt,Rt])):pt[jt][1]=Rt,this},Pn.prototype.clear=function hi(){this.size=0,this.__data__={hash:new ei,map:new(Lt||ci),string:new ei}},Pn.prototype.delete=function Si(nt){var Rt=Zn(this,nt).delete(nt);return this.size-=Rt?1:0,Rt},Pn.prototype.get=function Yi(nt){return Zn(this,nt).get(nt)},Pn.prototype.has=function dr(nt){return Zn(this,nt).has(nt)},Pn.prototype.set=function kr(nt,Rt){var pt=Zn(this,nt),jt=pt.size;return pt.set(nt,Rt),this.size+=pt.size==jt?0:1,this},Nr.prototype.add=Nr.prototype.push=function Gr(nt){return this.__data__.set(nt,g),this},Nr.prototype.has=function Qr(nt){return this.__data__.has(nt)},Sr.prototype.clear=function Wr(){this.__data__=new ci,this.size=0},Sr.prototype.delete=function Ur(nt){var Rt=this.__data__,pt=Rt.delete(nt);return this.size=Rt.size,pt},Sr.prototype.get=function Rr(nt){return this.__data__.get(nt)},Sr.prototype.has=function mo(nt){return this.__data__.has(nt)},Sr.prototype.set=function Mr(nt,Rt){var pt=this.__data__;if(pt instanceof ci){var jt=pt.__data__;if(!Lt||jt.length<199)return jt.push([nt,Rt]),this.size=++pt.size,this;pt=this.__data__=new Pn(jt)}return pt.set(nt,Rt),this.size=pt.size,this};var sr=Vt?function(nt){return null==nt?[]:(nt=Object(nt),function te(nt,Rt){for(var pt=-1,jt=null==nt?0:nt.length,Un=0,oi=[];++pt<jt;){var xi=nt[pt];Rt(xi,pt,nt)&&(oi[Un++]=xi)}return oi}(Vt(nt),function(Rt){return Ve.call(nt,Rt)}))}:function nn(){return[]},gr=Xr;function Qt(nt,Rt){return!!(Rt=Rt??s)&&("number"==typeof nt||Be.test(nt))&&nt>-1&&nt%1==0&&nt<Rt}function zt(nt){if(null!=nt){try{return Ce.call(nt)}catch{}try{return nt+""}catch{}}return""}function wt(nt,Rt){return nt===Rt||nt!=nt&&Rt!=Rt}(vt&&gr(new vt(new ArrayBuffer(1)))!=Y||Lt&&gr(new Lt)!=S||bn&&gr(bn.resolve())!=k||mn&&gr(new mn)!=B||xn&&gr(new xn)!=U)&&(gr=function(nt){var Rt=Xr(nt),pt=Rt==T?nt.constructor:void 0,jt=pt?zt(pt):"";if(jt)switch(jt){case li:return Y;case ki:return S;case Vn:return k;case Oi:return B;case Hn:return U}return Rt});var Xt=lo(function(){return arguments}())?lo:function(nt){return $n(nt)&&De.call(nt,"callee")&&!Ve.call(nt,"callee")},fn=Array.isArray;var ht=lt||function On(){return!1};function hn(nt){if(!Nn(nt))return!1;var Rt=Xr(nt);return Rt==y||"[object GeneratorFunction]"==Rt||"[object AsyncFunction]"==Rt||"[object Proxy]"==Rt}function an(nt){return"number"==typeof nt&&nt>-1&&nt%1==0&&nt<=s}function Nn(nt){var Rt=typeof nt;return null!=nt&&("object"==Rt||"function"==Rt)}function $n(nt){return null!=nt&&"object"==typeof nt}var ot=re?function Ae(nt){return function(Rt){return nt(Rt)}}(re):function en(nt){return $n(nt)&&an(nt.length)&&!!ze[Xr(nt)]};function Bt(nt){return function Ke(nt){return null!=nt&&an(nt.length)&&!hn(nt)}(nt)?po(nt):jn(nt)}I.exports=function on(nt,Rt){return _o(nt,Rt)}}).call(this,o(58),o(66)(he))},function(he,u,o){"use strict";function c(I){return I?I.substring(0,1).toUpperCase()+I.substring(1):""}o.d(u,"a",function(){return c})},function(he,u,o){"use strict";o.d(u,"d",function(){return c}),o.d(u,"a",function(){return I}),o.d(u,"c",function(){return C}),o.d(u,"b",function(){return g});var c={name:"table",allowedTags:["TABLE"]},I=["height","width"],C=["height","width","text-align","background-color","border","border-style","border-width","border-color"],g=new Set([].concat(I,C))},function(he,u,o){"use strict";o.d(u,"d",function(){return c}),o.d(u,"a",function(){return I}),o.d(u,"c",function(){return C}),o.d(u,"b",function(){return g});var c={name:"cell",allowedTags:["TH","TD","TR"]},I=["height","width"],C=["height","width","vertical-align","text-align","background-color","border","border-style","border-width","border-color","padding","padding-top","padding-right","padding-bottom","padding-left"],g=new Set([].concat(I,C))},function(he,u,o){"use strict";o.d(u,"a",function(){return E}),o.d(u,"b",function(){return S}),o.d(u,"c",function(){return O});var c=o(2);function I(w){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function C(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function g(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function p(w,T,k){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var z=function s(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=y(w)););return w}(P,B);if(z){var V=Object.getOwnPropertyDescriptor(z,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function l(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&d(w,T)}function d(w,T){return(d=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function h(w){var T=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,R=y(w);if(T){var B=y(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return v(this,P)}}function v(w,T){if(T&&("object"===I(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function x(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function y(w){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var E=function(w){l(k,w);var T=h(k);function k(){return C(this,k),T.apply(this,arguments)}return function a(w,T,k){return T&&g(w.prototype,T),k&&g(w,k),w}(k,[{key:"value",value:function(P){var B=p(y(k.prototype),"value",this).call(this,P);if(0!==B.indexOf("rgb("))return B;var W=(B=B.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(z){return"00".concat(parseInt(z,10).toString(16)).slice(-2)}).join("");return"#".concat(W)}}]),k}(c.StyleAttributor),S=new c.ClassAttributor("color","ql-color",{scope:c.Scope.INLINE}),O=new E("color","color",{scope:c.Scope.INLINE})},function(he,u,o){"use strict";o.d(u,"a",function(){return C}),o.d(u,"b",function(){return g}),o.d(u,"c",function(){return a});var c=o(2),I={scope:c.Scope.BLOCK,whitelist:["rtl"]},C=new c.Attributor("direction","dir",I),g=new c.ClassAttributor("direction","ql-direction",I),a=new c.StyleAttributor("direction","direction",I)},function(he,u,o){var c=o(20),I=o(68),C=c({}.hasOwnProperty);he.exports=Object.hasOwn||function(a,p){return C(I(a),p)}},function(he,u,o){(function(c,I){var g="__lodash_hash_undefined__",s=9007199254740991,l="[object Arguments]",y="[object Function]",T="[object Object]",oe=/^\[object .+?Constructor\]$/,fe=/^(?:0|[1-9]\d*)$/,Te={};Te["[object Float32Array]"]=Te["[object Float64Array]"]=Te["[object Int8Array]"]=Te["[object Int16Array]"]=Te["[object Int32Array]"]=Te["[object Uint8Array]"]=Te["[object Uint8ClampedArray]"]=Te["[object Uint16Array]"]=Te["[object Uint32Array]"]=!0,Te[l]=Te["[object Array]"]=Te["[object ArrayBuffer]"]=Te["[object Boolean]"]=Te["[object DataView]"]=Te["[object Date]"]=Te["[object Error]"]=Te[y]=Te["[object Map]"]=Te["[object Number]"]=Te[T]=Te["[object RegExp]"]=Te["[object Set]"]=Te["[object String]"]=Te["[object WeakMap]"]=!1;var Be="object"==typeof c&&c&&c.Object===Object&&c,ze="object"==typeof self&&self&&self.Object===Object&&self,ae=Be||ze||Function("return this")(),_e=u&&!u.nodeType&&u,ye=_e&&"object"==typeof I&&I&&!I.nodeType&&I,ne=ye&&ye.exports===_e,ce=ne&&Be.process,le=function(){try{return ye&&ye.require&&ye.require("util").types||ce&&ce.binding&&ce.binding("util")}catch{}}(),pe=le&&le.isTypedArray;function Se(pt,jt,Un){switch(Un.length){case 0:return pt.call(jt);case 1:return pt.call(jt,Un[0]);case 2:return pt.call(jt,Un[0],Un[1]);case 3:return pt.call(jt,Un[0],Un[1],Un[2])}return pt.apply(jt,Un)}var pt,be=Array.prototype,Ne=Object.prototype,mt=ae["__core-js_shared__"],tt=Function.prototype.toString,Le=Ne.hasOwnProperty,gt=(pt=/[^.]+$/.exec(mt&&mt.keys&&mt.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"",tn=Ne.toString,Pe=tt.call(Object),$e=RegExp("^"+tt.call(Le).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ge=ne?ae.Buffer:void 0,Ce=ae.Symbol,De=ae.Uint8Array,Ye=ge?ge.allocUnsafe:void 0,bt=function ue(pt,jt){return function(Un){return pt(jt(Un))}}(Object.getPrototypeOf,Object),yt=Object.create,kt=Ne.propertyIsEnumerable,gn=be.splice,ut=Ce?Ce.toStringTag:void 0,Ve=function(){try{var pt=en(Object,"defineProperty");return pt({},"",{}),pt}catch{}}(),St=ge?ge.isBuffer:void 0,Xe=Math.max,Vt=Date.now,lt=en(ae,"Map"),dt=en(Object,"create"),vt=function(){function pt(){}return function(jt){if(!hn(jt))return{};if(yt)return yt(jt);pt.prototype=jt;var Un=new pt;return pt.prototype=void 0,Un}}();function Lt(pt){var jt=-1,Un=null==pt?0:pt.length;for(this.clear();++jt<Un;){var oi=pt[jt];this.set(oi[0],oi[1])}}function ki(pt){var jt=-1,Un=null==pt?0:pt.length;for(this.clear();++jt<Un;){var oi=pt[jt];this.set(oi[0],oi[1])}}function ei(pt){var jt=-1,Un=null==pt?0:pt.length;for(this.clear();++jt<Un;){var oi=pt[jt];this.set(oi[0],oi[1])}}function ci(pt){var jt=this.__data__=new ki(pt);this.size=jt.size}function Pn(pt,jt){var Un=wt(pt),oi=!Un&&zt(pt),xi=!Un&&!oi&&Ke(pt),Ai=!Un&&!oi&&!xi&&$n(pt),Ui=Un||oi||xi||Ai,ji=Ui?function re(pt,jt){for(var Un=-1,oi=Array(pt);++Un<pt;)oi[Un]=jt(Un);return oi}(pt.length,String):[],Qi=ji.length;for(var Tr in pt)(jt||Le.call(pt,Tr))&&(!Ui||!("length"==Tr||xi&&("offset"==Tr||"parent"==Tr)||Ai&&("buffer"==Tr||"byteLength"==Tr||"byteOffset"==Tr)||_i(Tr,Qi)))&&ji.push(Tr);return ji}function hi(pt,jt,Un){(void 0!==Un&&!ft(pt[jt],Un)||void 0===Un&&!(jt in pt))&&dr(pt,jt,Un)}function Si(pt,jt,Un){var oi=pt[jt];(!Le.call(pt,jt)||!ft(oi,Un)||void 0===Un&&!(jt in pt))&&dr(pt,jt,Un)}function Yi(pt,jt){for(var Un=pt.length;Un--;)if(ft(pt[Un][0],jt))return Un;return-1}function dr(pt,jt,Un){"__proto__"==jt&&Ve?Ve(pt,jt,{configurable:!0,enumerable:!0,value:Un,writable:!0}):pt[jt]=Un}Lt.prototype.clear=function bn(){this.__data__=dt?dt(null):{},this.size=0},Lt.prototype.delete=function mn(pt){var jt=this.has(pt)&&delete this.__data__[pt];return this.size-=jt?1:0,jt},Lt.prototype.get=function xn(pt){var jt=this.__data__;if(dt){var Un=jt[pt];return Un===g?void 0:Un}return Le.call(jt,pt)?jt[pt]:void 0},Lt.prototype.has=function Xn(pt){var jt=this.__data__;return dt?void 0!==jt[pt]:Le.call(jt,pt)},Lt.prototype.set=function li(pt,jt){var Un=this.__data__;return this.size+=this.has(pt)?0:1,Un[pt]=dt&&void 0===jt?g:jt,this},ki.prototype.clear=function Vn(){this.__data__=[],this.size=0},ki.prototype.delete=function Oi(pt){var jt=this.__data__,Un=Yi(jt,pt);return!(Un<0||(Un==jt.length-1?jt.pop():gn.call(jt,Un,1),--this.size,0))},ki.prototype.get=function Hn(pt){var jt=this.__data__,Un=Yi(jt,pt);return Un<0?void 0:jt[Un][1]},ki.prototype.has=function En(pt){return Yi(this.__data__,pt)>-1},ki.prototype.set=function Mn(pt,jt){var Un=this.__data__,oi=Yi(Un,pt);return oi<0?(++this.size,Un.push([pt,jt])):Un[oi][1]=jt,this},ei.prototype.clear=function Wn(){this.size=0,this.__data__={hash:new Lt,map:new(lt||ki),string:new Lt}},ei.prototype.delete=function Ji(pt){var jt=It(this,pt).delete(pt);return this.size-=jt?1:0,jt},ei.prototype.get=function Sn(pt){return It(this,pt).get(pt)},ei.prototype.has=function Qn(pt){return It(this,pt).has(pt)},ei.prototype.set=function ti(pt,jt){var Un=It(this,pt),oi=Un.size;return Un.set(pt,jt),this.size+=Un.size==oi?0:1,this},ci.prototype.clear=function Wi(){this.__data__=new ki,this.size=0},ci.prototype.delete=function qi(pt){var jt=this.__data__,Un=jt.delete(pt);return this.size=jt.size,Un},ci.prototype.get=function nr(pt){return this.__data__.get(pt)},ci.prototype.has=function xr(pt){return this.__data__.has(pt)},ci.prototype.set=function vn(pt,jt){var Un=this.__data__;if(Un instanceof ki){var oi=Un.__data__;if(!lt||oi.length<199)return oi.push([pt,jt]),this.size=++Un.size,this;Un=this.__data__=new ei(oi)}return Un.set(pt,jt),this.size=Un.size,this};var kr=function bo(pt){return function(jt,Un,oi){for(var xi=-1,Ai=Object(jt),Ui=oi(jt),ji=Ui.length;ji--;){var Qi=Ui[pt?ji:++xi];if(!1===Un(Ai[Qi],Qi,Ai))break}return jt}}();function Nr(pt){return null==pt?void 0===pt?"[object Undefined]":"[object Null]":ut&&ut in Object(pt)?function jn(pt){var jt=Le.call(pt,ut),Un=pt[ut];try{pt[ut]=void 0;var oi=!0}catch{}var xi=tn.call(pt);return oi&&(jt?pt[ut]=Un:delete pt[ut]),xi}(pt):function sr(pt){return tn.call(pt)}(pt)}function Gr(pt){return an(pt)&&Nr(pt)==l}function Qr(pt){return!(!hn(pt)||function Zn(pt){return!!gt&&gt in pt}(pt))&&(ht(pt)?$e:oe).test(function Ct(pt){if(null!=pt){try{return tt.call(pt)}catch{}try{return pt+""}catch{}}return""}(pt))}function Wr(pt){if(!hn(pt))return function Li(pt){var jt=[];if(null!=pt)for(var Un in Object(pt))jt.push(Un);return jt}(pt);var jt=fi(pt),Un=[];for(var oi in pt)"constructor"==oi&&(jt||!Le.call(pt,oi))||Un.push(oi);return Un}function Ur(pt,jt,Un,oi,xi){pt!==jt&&kr(jt,function(Ai,Ui){if(xi||(xi=new ci),hn(Ai))!function Rr(pt,jt,Un,oi,xi,Ai,Ui){var ji=Qt(pt,Un),Qi=Qt(jt,Un),Tr=Ui.get(Qi);if(Tr)hi(pt,Un,Tr);else{var br=Ai?Ai(ji,Qi,Un+"",pt,jt,Ui):void 0,oo=void 0===br;if(oo){var ro=wt(Qi),No=!ro&&Ke(Qi),uo=!ro&&!No&&$n(Qi);br=Qi,ro||No||uo?wt(ji)?br=ji:function fn(pt){return an(pt)&&Xt(pt)}(ji)?br=function Xr(pt,jt){var Un=-1,oi=pt.length;for(jt||(jt=Array(oi));++Un<oi;)jt[Un]=pt[Un];return jt}(ji):No?(oo=!1,br=function po(pt,jt){if(jt)return pt.slice();var Un=pt.length,oi=Ye?Ye(Un):new pt.constructor(Un);return pt.copy(oi),oi}(Qi,!0)):uo?(oo=!1,br=function ar(pt,jt){var Un=jt?function mi(pt){var jt=new pt.constructor(pt.byteLength);return new De(jt).set(new De(pt)),jt}(pt.buffer):pt.buffer;return new pt.constructor(Un,pt.byteOffset,pt.length)}(Qi,!0)):br=[]:function Nn(pt){if(!an(pt)||Nr(pt)!=T)return!1;var jt=bt(pt);if(null===jt)return!0;var Un=Le.call(jt,"constructor")&&jt.constructor;return"function"==typeof Un&&Un instanceof Un&&tt.call(Un)==Pe}(Qi)||zt(Qi)?(br=ji,zt(ji)?br=function ot(pt){return function lo(pt,jt,Un,oi){var xi=!Un;Un||(Un={});for(var Ai=-1,Ui=jt.length;++Ai<Ui;){var ji=jt[Ai],Qi=oi?oi(Un[ji],pt[ji],ji,Un,pt):void 0;void 0===Qi&&(Qi=pt[ji]),xi?dr(Un,ji,Qi):Si(Un,ji,Qi)}return Un}(pt,Bt(pt))}(ji):(!hn(ji)||ht(ji))&&(br=function vi(pt){return"function"!=typeof pt.constructor||fi(pt)?{}:vt(bt(pt))}(Qi))):oo=!1}oo&&(Ui.set(Qi,br),xi(br,Qi,oi,Ai,Ui),Ui.delete(Qi)),hi(pt,Un,br)}}(pt,jt,Ui,Un,Ur,oi,xi);else{var ji=oi?oi(Qt(pt,Ui),Ai,Ui+"",pt,jt,xi):void 0;void 0===ji&&(ji=Ai),hi(pt,Ui,ji)}},Bt)}function mo(pt,jt){return _n(function gr(pt,jt,Un){return jt=Xe(void 0===jt?pt.length-1:jt,0),function(){for(var oi=arguments,xi=-1,Ai=Xe(oi.length-jt,0),Ui=Array(Ai);++xi<Ai;)Ui[xi]=oi[jt+xi];xi=-1;for(var ji=Array(jt+1);++xi<jt;)ji[xi]=oi[xi];return ji[jt]=Un(Ui),Se(pt,this,ji)}}(pt,jt,nt),pt+"")}var Mr=Ve?function(pt,jt){return Ve(pt,"toString",{configurable:!0,enumerable:!1,value:On(jt),writable:!0})}:nt;function It(pt,jt){var Un=pt.__data__;return function Tn(pt){var jt=typeof pt;return"string"==jt||"number"==jt||"symbol"==jt||"boolean"==jt?"__proto__"!==pt:null===pt}(jt)?Un["string"==typeof jt?"string":"hash"]:Un.map}function en(pt,jt){var Un=function ie(pt,jt){return pt?.[jt]}(pt,jt);return Qr(Un)?Un:void 0}function _i(pt,jt){var Un=typeof pt;return!!(jt=jt??s)&&("number"==Un||"symbol"!=Un&&fe.test(pt))&&pt>-1&&pt%1==0&&pt<jt}function fi(pt){var jt=pt&&pt.constructor;return pt===("function"==typeof jt&&jt.prototype||Ne)}function Qt(pt,jt){if(("constructor"!==jt||"function"!=typeof pt[jt])&&"__proto__"!=jt)return pt[jt]}var _n=function Ze(pt){var jt=0,Un=0;return function(){var oi=Vt(),xi=16-(oi-Un);if(Un=oi,xi>0){if(++jt>=800)return arguments[0]}else jt=0;return pt.apply(void 0,arguments)}}(Mr);function ft(pt,jt){return pt===jt||pt!=pt&&jt!=jt}var zt=Gr(function(){return arguments}())?Gr:function(pt){return an(pt)&&Le.call(pt,"callee")&&!kt.call(pt,"callee")},wt=Array.isArray;function Xt(pt){return null!=pt&&on(pt.length)&&!ht(pt)}var Ke=St||function Rt(){return!1};function ht(pt){if(!hn(pt))return!1;var jt=Nr(pt);return jt==y||"[object GeneratorFunction]"==jt||"[object AsyncFunction]"==jt||"[object Proxy]"==jt}function on(pt){return"number"==typeof pt&&pt>-1&&pt%1==0&&pt<=s}function hn(pt){var jt=typeof pt;return null!=pt&&("object"==jt||"function"==jt)}function an(pt){return null!=pt&&"object"==typeof pt}var $n=pe?function te(pt){return function(jt){return pt(jt)}}(pe):function Sr(pt){return an(pt)&&on(pt.length)&&!!Te[Nr(pt)]};function Bt(pt){return Xt(pt)?Pn(pt,!0):Wr(pt)}var nn=function _o(pt){return mo(function(jt,Un){var oi=-1,xi=Un.length,Ai=xi>1?Un[xi-1]:void 0,Ui=xi>2?Un[2]:void 0;for(Ai=pt.length>3&&"function"==typeof Ai?(xi--,Ai):void 0,Ui&&function dn(pt,jt,Un){if(!hn(Un))return!1;var oi=typeof jt;return!!("number"==oi?Xt(Un)&&_i(jt,Un.length):"string"==oi&&jt in Un)&&ft(Un[jt],pt)}(Un[0],Un[1],Ui)&&(Ai=xi<3?void 0:Ai,xi=1),jt=Object(jt);++oi<xi;){var ji=Un[oi];ji&&pt(jt,ji,oi,Ai)}return jt})}(function(pt,jt,Un){Ur(pt,jt,Un)});function On(pt){return function(){return pt}}function nt(pt){return pt}I.exports=nn}).call(this,o(58),o(66)(he))},function(he,u,o){"use strict";o.d(u,"a",function(){return C}),o.d(u,"b",function(){return g}),o.d(u,"c",function(){return a});var c=o(2),I={scope:c.Scope.BLOCK,whitelist:["right","center","justify"]},C=new c.Attributor("align","align",I),g=new c.ClassAttributor("align","ql-align",I),a=new c.StyleAttributor("align","text-align",I)},function(he,u){he.exports=function(o){try{return!!o()}catch{return!0}}},function(he,u,o){var c=o(8),I=o(51),C=c.String,g=c.TypeError;he.exports=function(a){if(I(a))return a;throw g(C(a)+" is not an object")}},function(he,u,o){var c=o(39);he.exports=!c(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(he,u){var o=Function.prototype.call;he.exports=o.bind?o.bind(o):function(){return o.apply(o,arguments)}},function(he,u,o){"use strict";function I(O){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(T){return typeof T}:function(T){return T&&"function"==typeof Symbol&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(O)}function C(O,w){if(!(O instanceof w))throw new TypeError("Cannot call a class as a function")}function g(O,w){for(var T=0;T<w.length;T++){var k=w[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(O,k.key,k)}}function p(O,w,T){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(R,P,B){var W=function s(O,w){for(;!Object.prototype.hasOwnProperty.call(O,w)&&null!==(O=y(O)););return O}(R,P);if(W){var z=Object.getOwnPropertyDescriptor(W,P);return z.get?z.get.call(B):z.value}})(O,w,T||O)}function l(O,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(w&&w.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),w&&d(O,w)}function d(O,w){return(d=Object.setPrototypeOf||function(k,R){return k.__proto__=R,k})(O,w)}function h(O){var w=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var R,k=y(O);if(w){var P=y(this).constructor;R=Reflect.construct(k,arguments,P)}else R=k.apply(this,arguments);return v(this,R)}}function v(O,w){if(w&&("object"===I(w)||"function"==typeof w))return w;if(void 0!==w)throw new TypeError("Derived constructors may only return object or undefined");return function x(O){if(void 0===O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}(O)}function y(O){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(T){return T.__proto__||Object.getPrototypeOf(T)})(O)}o.d(u,"a",function(){return E}),o.d(u,"b",function(){return S});var E=function(O){l(T,O);var w=h(T);function T(){return C(this,T),w.apply(this,arguments)}return function a(O,w,T){return w&&g(O.prototype,w),T&&g(O,T),O}(T,[{key:"format",value:function(R,P){R===this.statics.blotName&&P?this.domNode.setAttribute("href",this.constructor.sanitize(P)):p(y(T.prototype),"format",this).call(this,R,P)}}],[{key:"create",value:function(R){var P=p(y(T),"create",this).call(this,R);return P.setAttribute("href",this.sanitize(R)),P.setAttribute("rel","noopener noreferrer"),P.setAttribute("target","_blank"),P}},{key:"formats",value:function(R){return R.getAttribute("href")}},{key:"sanitize",value:function(R){return S(R,this.PROTOCOL_WHITELIST)?R:this.SANITIZED_URL}}]),T}(o(14).a);function S(O,w){var T=document.createElement("a");T.href=O;var k=T.href.slice(0,T.href.indexOf(":"));return w.indexOf(k)>-1}E.blotName="link",E.tagName="A",E.SANITIZED_URL="about:blank",E.PROTOCOL_WHITELIST=["http","https","mailto","tel"]},function(he,u,o){"use strict";u.a=new WeakMap},function(he,u,o){"use strict";o.d(u,"a",function(){return C}),o.d(u,"b",function(){return g});var c=o(2),I=o(34),C=new c.ClassAttributor("background","ql-bg",{scope:c.Scope.INLINE}),g=new I.a("background","background-color",{scope:c.Scope.INLINE})},function(he,u,o){"use strict";o.d(u,"b",function(){return w}),o.d(u,"a",function(){return S});var c=o(2);function I(T){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(T)}function C(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}function g(T,k){for(var R=0;R<k.length;R++){var P=k[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function p(T,k,R){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(B,W,z){var V=function s(T,k){for(;!Object.prototype.hasOwnProperty.call(T,k)&&null!==(T=y(T)););return T}(B,W);if(V){var U=Object.getOwnPropertyDescriptor(V,W);return U.get?U.get.call(z):U.value}})(T,k,R||T)}function l(T,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),k&&d(T,k)}function d(T,k){return(d=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(T,k)}function h(T){var k=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var B,P=y(T);if(k){var W=y(this).constructor;B=Reflect.construct(P,arguments,W)}else B=P.apply(this,arguments);return v(this,B)}}function v(T,k){if(k&&("object"===I(k)||"function"==typeof k))return k;if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");return function x(T){if(void 0===T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(T)}function y(T){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(T)}var E={scope:c.Scope.INLINE,whitelist:["serif","monospace"]},S=new c.ClassAttributor("font","ql-font",E),O=function(T){l(R,T);var k=h(R);function R(){return C(this,R),k.apply(this,arguments)}return function a(T,k,R){return k&&g(T.prototype,k),R&&g(T,R),T}(R,[{key:"value",value:function(B){return p(y(R.prototype),"value",this).call(this,B).replace(/["']/g,"")}}]),R}(c.StyleAttributor),w=new O("font","font-family",E)},function(he,u,o){"use strict";o.d(u,"a",function(){return I}),o.d(u,"b",function(){return C});var c=o(2),I=new c.ClassAttributor("size","ql-size",{scope:c.Scope.INLINE,whitelist:["small","large","huge"]}),C=new c.StyleAttributor("size","font-size",{scope:c.Scope.INLINE,whitelist:["10px","18px","32px"]})},function(he,u,o){"use strict";function c(I,C,g){g?I.setAttribute(C,g):I.removeAttribute(C)}o.d(u,"a",function(){return c})},function(he,u,o){"use strict";function I(S){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(w){return typeof w}:function(w){return w&&"function"==typeof Symbol&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(S)}function C(S,O){if(!(S instanceof O))throw new TypeError("Cannot call a class as a function")}function g(S,O){for(var w=0;w<O.length;w++){var T=O[w];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}function p(S,O,w){return(p=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(k,R,P){var B=function s(S,O){for(;!Object.prototype.hasOwnProperty.call(S,O)&&null!==(S=y(S)););return S}(k,R);if(B){var W=Object.getOwnPropertyDescriptor(B,R);return W.get?W.get.call(P):W.value}})(S,O,w||S)}function l(S,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(O&&O.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),O&&d(S,O)}function d(S,O){return(d=Object.setPrototypeOf||function(T,k){return T.__proto__=k,T})(S,O)}function h(S){var O=function b(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var k,T=y(S);if(O){var R=y(this).constructor;k=Reflect.construct(T,arguments,R)}else k=T.apply(this,arguments);return v(this,k)}}function v(S,O){if(O&&("object"===I(O)||"function"==typeof O))return O;if(void 0!==O)throw new TypeError("Derived constructors may only return object or undefined");return function x(S){if(void 0===S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}(S)}function y(S){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(w){return w.__proto__||Object.getPrototypeOf(w)})(S)}var E=function(S){l(w,S);var O=h(w);function w(){return C(this,w),O.apply(this,arguments)}return function a(S,O,w){return O&&g(S.prototype,O),w&&g(S,w),S}(w,[{key:"optimize",value:function(k){p(y(w.prototype),"optimize",this).call(this,k),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return p(y(w),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),w}(o(14).a);E.blotName="bold",E.tagName=["STRONG","B"],u.a=E},function(he,u,o){"use strict";o.d(u,"a",function(){return S}),o.d(u,"b",function(){return T});var c=o(2),I=o(0),C=o(12),g=o(15);function a(k){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(P){return typeof P}:function(P){return P&&"function"==typeof Symbol&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P})(k)}function s(k,R){for(var P=0;P<R.length;P++){var B=R[P];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(k,B.key,B)}}function d(k,R){if("function"!=typeof R&&null!==R)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(R&&R.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),R&&h(k,R)}function h(k,R){return(h=Object.setPrototypeOf||function(B,W){return B.__proto__=W,B})(k,R)}function v(k){var R=function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var W,B=E(k);if(R){var z=E(this).constructor;W=Reflect.construct(B,arguments,z)}else W=B.apply(this,arguments);return x(this,W)}}function x(k,R){if(R&&("object"===a(R)||"function"==typeof R))return R;if(void 0!==R)throw new TypeError("Derived constructors may only return object or undefined");return b(k)}function b(k){if(void 0===k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function E(k){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(P){return P.__proto__||Object.getPrototypeOf(P)})(k)}var S=function(k){d(P,k);var R=v(P);function P(B,W){var z;return function p(k,R){if(!(k instanceof R))throw new TypeError("Cannot call a class as a function")}(this,P),(z=R.call(this,B,W)).lastRecorded=0,z.ignoreChange=!1,z.clear(),z.quill.on(I.a.events.EDITOR_CHANGE,function(V,U,K,Y){V!==I.a.events.TEXT_CHANGE||z.ignoreChange||(z.options.userOnly&&Y!==I.a.sources.USER?z.transform(U):z.record(U,K))}),z.quill.keyboard.addBinding({key:"z",shortKey:!0},z.undo.bind(b(z))),z.quill.keyboard.addBinding({key:"z",shortKey:!0,shiftKey:!0},z.redo.bind(b(z))),Object(g.a)()&&/Win/i.test(navigator.platform)&&z.quill.keyboard.addBinding({key:"y",shortKey:!0},z.redo.bind(b(z))),z.quill.root.addEventListener("beforeinput",function(V){"historyUndo"===V.inputType?(z.undo(),V.preventDefault()):"historyRedo"===V.inputType&&(z.redo(),V.preventDefault())}),z}return function l(k,R,P){return R&&s(k.prototype,R),P&&s(k,P),k}(P,[{key:"change",value:function(W,z){if(0!==this.stack[W].length){var V=this.stack[W].pop(),U=this.quill.getContents(),K=V.invert(U);this.stack[z].push(K),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(V,I.a.sources.USER),this.ignoreChange=!1;var Y=T(this.quill.scroll,V);this.quill.setSelection(Y)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(W,z){if(0!==W.ops.length){this.stack.redo=[];var V=W.invert(z),U=Date.now();if(this.lastRecorded+this.options.delay>U&&this.stack.undo.length>0){var K=this.stack.undo.pop();V=V.compose(K)}else this.lastRecorded=U;0!==V.length()&&(this.stack.undo.push(V),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift())}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(W){O(this.stack.undo,W),O(this.stack.redo,W)}},{key:"undo",value:function(){this.change("undo","redo")}}]),P}(C.a);function O(k,R){for(var P=R,B=k.length-1;B>=0;B-=1){var W=k[B];k[B]=P.transform(W,!0),P=W.transform(P),0===k[B].length()&&k.splice(B,1)}}function T(k,R){var P=R.reduce(function(W,z){return W+(z.delete||0)},0),B=R.length()-P;return function w(k,R){var P=R.ops[R.ops.length-1];return null!=P&&(null!=P.insert?"string"==typeof P.insert&&P.insert.endsWith("\n"):null!=P.attributes&&Object.keys(P.attributes).some(function(B){return null!=k.query(B,c.Scope.BLOCK)}))}(k,R)&&(B-=1),B}S.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1}},function(he,u,o){var c=o(22);he.exports=function(I){return"object"==typeof I?null!==I:c(I)}},function(he,u,o){var c=o(8),I=o(41),C=o(101),g=o(40),a=o(84),p=c.TypeError,s=Object.defineProperty;u.f=I?s:function(d,h,v){if(g(d),h=a(h),g(v),C)try{return s(d,h,v)}catch{}if("get"in v||"set"in v)throw p("Accessors not supported");return"value"in v&&(d[h]=v.value),d}},function(he,u,o){"use strict";o.d(u,"a",function(){return O});var c=o(2),I=o(29),C=o(19);function g(w){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function a(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function p(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function l(w,T,k){return(l=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var z=function d(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=S(w)););return w}(P,B);if(z){var V=Object.getOwnPropertyDescriptor(z,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function h(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&v(w,T)}function v(w,T){return(v=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function x(w){var T=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,R=S(w);if(T){var B=S(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return b(this,P)}}function b(w,T){if(T&&("object"===g(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function y(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function S(w){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var O=function(w){h(k,w);var T=x(k);function k(R,P){var B,W,z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return a(this,k),(W=T.call(this,R,P,z)).allowedTags=null!==(B=z.allowedTags)&&void 0!==B?B:[],W}return function s(w,T,k){return T&&p(w.prototype,T),k&&p(w,k),w}(k,[{key:"add",value:function(P,B){return I.c.call(this,l(S(k.prototype),"add",this),P,B)}},{key:"remove",value:function(P){return I.c.call(this,l(S(k.prototype),"remove",this),P)}},{key:"value",value:function(P){return I.c.call(this,l(S(k.prototype),"value",this),P)}},{key:"canAdd",value:function(P,B){return I.a.call(this,l(S(k.prototype),"canAdd",this),P,B)}}],[{key:"keys",value:function(P){return Object(I.b)(l(S(k),"keys",this),P,C.a.style)}}]),k}(c.StyleAttributor)},function(he,u,o){"use strict";o.d(u,"a",function(){return I});var c=o(0);function I(C,g){return{key:C?"upArrow":"downArrow",collapsed:!0,format:g,handler:function(p,s){var l=C?"prev":"next",d=s.line,h=d.statics.blotName.indexOf("Line")>-1?d.parent:d,x=h.parent[l]||h.parent.parent[l]?.children.head;if(null!=x){if("tableRow"===x.statics.blotName||"tableHeaderRow"===x.statics.blotName){for(var b=x.children.head,y=h;null!=y.prev;)y=y.prev,b=b.next;var E=b.offset(this.quill.scroll)+Math.min(s.offset,b.length()-1);this.quill.setSelection(E,0,c.a.sources.USER)}}else{var S=h.table()[l];null!=S&&this.quill.setSelection(C?S.offset(this.quill.scroll)+S.length()-1:S.offset(this.quill.scroll),0,c.a.sources.USER)}return!1}}}},function(he,u,o){"use strict";o.d(u,"a",function(){return h}),o.d(u,"b",function(){return v});var c=o(2),I=o(63),C=o(53),g=o(26);function a(x,b){var y=Object.keys(x);if(Object.getOwnPropertySymbols){var E=Object.getOwnPropertySymbols(x);b&&(E=E.filter(function(S){return Object.getOwnPropertyDescriptor(x,S).enumerable})),y.push.apply(y,E)}return y}function p(x){for(var b=1;b<arguments.length;b++){var y=null!=arguments[b]?arguments[b]:{};b%2?a(Object(y),!0).forEach(function(E){s(x,E,y[E])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(y)):a(Object(y)).forEach(function(E){Object.defineProperty(x,E,Object.getOwnPropertyDescriptor(y,E))})}return x}function s(x,b,y){return b in x?Object.defineProperty(x,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):x[b]=y,x}function l(x,b,y,E){x[b]=!E&&x[b]?x[b]:y}function d(x,b,y,E,S,O){return x.filter(function(w){return!!w}).forEach(function(w){var T=y.query(w,c.Scope.ATTRIBUTE);if(null!==T){var k=T.value(b);if(k)return void l(S,T.attrName,k,O)}var R=E[w];if(null!=R&&(R.attrName===w||R.keyName===w)){var P=R.value(b)||void 0;l(S,R.attrName,P,O)}}),S}function h(x){return function(b,y,E){var S=I.a.keys(b),O=C.a.keys(b),w=p(p({},d(S,b,E,x,{},!0)),d(O,b,E,x,{},!0));return Object.keys(w).length>0?Object(g.a)(y,w):y}}function v(x){return function(b,y,E){var S,O=I.a.keys(b),w=C.a.keys(b),T="TR"===(null===(S=b.parentNode)||void 0===S?void 0:S.tagName)?b.parentNode:void 0,k=p(p({},d(O,b,E,x,{},!0)),d(w,b,E,x,{},!0));return T&&(k=d(C.a.keys(T),T,E,x,k,!1)),Object.keys(k).length>0?Object(g.a)(y,k):y}}},function(he,u,o){"use strict";var c=o(2),I=o(9);function C(w){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function a(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function s(w,T,k){return(s=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var z=function l(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=E(w)););return w}(P,B);if(z){var V=Object.getOwnPropertyDescriptor(z,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function d(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&h(w,T)}function h(w,T){return(h=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function v(w){var T=function y(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,R=E(w);if(T){var B=E(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return x(this,P)}}function x(w,T){if(T&&("object"===C(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function b(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function E(w){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var S="\ufeff";u.a=function(w){d(k,w);var T=v(k);function k(R,P){var B;return function g(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}(this,k),(B=T.call(this,R,P)).contentNode=document.createElement("span"),B.contentNode.setAttribute("contenteditable",!1),Array.from(B.domNode.childNodes).forEach(function(W){B.contentNode.appendChild(W)}),B.leftGuard=document.createTextNode(S),B.rightGuard=document.createTextNode(S),B.domNode.appendChild(B.leftGuard),B.domNode.appendChild(B.contentNode),B.domNode.appendChild(B.rightGuard),B}return function p(w,T,k){return T&&a(w.prototype,T),k&&a(w,k),w}(k,[{key:"index",value:function(P,B){return P===this.leftGuard?0:P===this.rightGuard?1:s(E(k.prototype),"index",this).call(this,P,B)}},{key:"restore",value:function(P){var B,W,z=P.data.split(S).join("");if(P===this.leftGuard)if(this.prev instanceof I.a){var V=this.prev.length();this.prev.insertAt(V,z),B={startNode:this.prev.domNode,startOffset:V+z.length}}else W=document.createTextNode(z),this.parent.insertBefore(this.scroll.create(W),this),B={startNode:W,startOffset:z.length};else P===this.rightGuard&&(this.next instanceof I.a?(this.next.insertAt(0,z),B={startNode:this.next.domNode,startOffset:z.length}):(W=document.createTextNode(z),this.parent.insertBefore(this.scroll.create(W),this.next),B={startNode:W,startOffset:z.length}));return P.data=S,B}},{key:"update",value:function(P,B){var W=this;P.forEach(function(z){if("characterData"===z.type&&(z.target===W.leftGuard||z.target===W.rightGuard)){var V=W.restore(z.target);V&&(B.range=V)}})}}]),k}(c.EmbedBlot)},function(he,u,o){"use strict";function I(a,p){for(var s=0;s<p.length;s++){var l=p[s];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(a,l.key,l)}}var g=function(){function a(p,s){(function c(a,p){if(!(a instanceof p))throw new TypeError("Cannot call a class as a function")})(this,a),this.quill=p,this.options=s,this.modules={}}return function C(a,p,s){return p&&I(a.prototype,p),s&&I(a,s),a}(a,[{key:"init",value:function(){var s=this;Object.keys(this.options.modules).forEach(function(l){null==s.modules[l]&&s.addModule(l)})}},{key:"addModule",value:function(s){var l=this.quill.constructor.import("modules/".concat(s));return this.modules[s]=new l(this.quill,this.options.modules[s]||{}),this.modules[s]}}]),a}();g.DEFAULTS={modules:{}},g.themes={default:g},u.a=g},function(he,u){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{"object"==typeof window&&(o=window)}he.exports=o},function(he,u,o){"use strict";var c=o(1),I=o.n(c),C=o(3),g=o(12),a=o(15);function p(T){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(R){return typeof R}:function(R){return R&&"function"==typeof Symbol&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R})(T)}function d(T,k){for(var R=0;R<k.length;R++){var P=k[R];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(T,P.key,P)}}function v(T,k){if("function"!=typeof k&&null!==k)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(k&&k.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),k&&x(T,k)}function x(T,k){return(x=Object.setPrototypeOf||function(P,B){return P.__proto__=B,P})(T,k)}function b(T){var k=function S(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var B,P=O(T);if(k){var W=O(this).constructor;B=Reflect.construct(P,arguments,W)}else B=P.apply(this,arguments);return y(this,B)}}function y(T,k){if(k&&("object"===p(k)||"function"==typeof k))return k;if(void 0!==k)throw new TypeError("Derived constructors may only return object or undefined");return function E(T){if(void 0===T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}(T)}function O(T){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)})(T)}var w=function(T){v(R,T);var k=b(R);function R(P,B){var W;return function l(T,k){if(!(T instanceof k))throw new TypeError("Cannot call a class as a function")}(this,R),(W=k.call(this,P,B)).preventImageUploading(!1),W.addDragOverHandler(),W.addDropHandler(),W}return function h(T,k,R){return k&&d(T.prototype,k),R&&d(T,R),T}(R,[{key:"addDragOverHandler",value:function(){if(Object(a.a)()){var B=window.navigator.userAgent.toLowerCase();(-1!==B.indexOf("msie ")||-1!==B.indexOf("trident/")||-1!==B.indexOf("edge/"))&&this.quill.root.addEventListener("dragover",function(z){z.preventDefault()})}}},{key:"addDropHandler",value:function(){var B=this;this.quill.root.addEventListener("drop",function(W){var z=0===W.dataTransfer.files.length,V=B.options.onDrop;if(V&&"function"==typeof V&&V(W),!z&&!B.preventImageUpload){var U;if(W.preventDefault(),document.caretRangeFromPoint)U=document.caretRangeFromPoint(W.clientX,W.clientY);else{if(!document.caretPositionFromPoint)return;var K=document.caretPositionFromPoint(W.clientX,W.clientY);(U=document.createRange()).setStart(K.offsetNode,K.offset),U.setEnd(K.offsetNode,K.offset)}var Y=B.quill.selection.normalizeNative(U),J=B.quill.selection.normalizedToRange(Y);B.upload(J,W.dataTransfer.files)}})}},{key:"preventImageUploading",value:function(B){return typeof B<"u"&&(this.preventImageUpload=B),this.preventImageUpload}},{key:"upload",value:function(B,W,z){var V=this;if(!this.preventImageUpload||z){var U=[];Array.from(W).forEach(function(K){K&&-1!==V.options.mimetypes.indexOf(K.type)&&U.push(K)}),U.length>0&&this.options.handler.call(this,B,U,this.options.imageBlot)}}}]),R}(g.a);w.DEFAULTS={mimetypes:["image/png","image/jpeg","image/pjpeg","image/gif","image/webp","image/bmp","image/svg+xml","image/vnd.microsoft.icon"],imageBlot:"image",handler:function(k,R,P){var B=this,W=R.map(function(z){return new Promise(function(V){var U=new FileReader;U.onload=function(K){V(K.target.result)},U.readAsDataURL(z)})});Promise.all(W).then(function(z){var V=z.reduce(function(U,K){return U.insert(function s(T,k,R){return k in T?Object.defineProperty(T,k,{value:R,enumerable:!0,configurable:!0,writable:!0}):T[k]=R,T}({},P,K))},(new I.a).retain(k.index).delete(k.length));B.quill.updateContents(V,C.a.sources.USER),B.quill.setSelection(k.index+z.length,C.a.sources.SILENT)})}},u.a=w},function(he,u,o){var c=o(8),I=o(22),C=function(g){return I(g)?g:void 0};he.exports=function(g,a){return arguments.length<2?C(c[g]):c[g]&&c[g][a]}},function(he,u,o){var c=o(8),I=o(89).f,C=o(70),g=o(90),a=o(81),p=o(135),s=o(140);he.exports=function(l,d){var y,E,S,O,w,h=l.target,v=l.global,x=l.stat;if(y=v?c:x?c[h]||a(h,{}):(c[h]||{}).prototype)for(E in d){if(O=d[E],S=l.noTargetGet?(w=I(y,E))&&w.value:y[E],!s(v?E:h+(x?".":"#")+E,l.forced)&&void 0!==S){if(typeof O==typeof S)continue;p(O,S)}(l.sham||S&&S.sham)&&C(O,"sham",!0),g(y,E,O,l)}}},function(he,u,o){var c=o(134),I=o(69);he.exports=function(C){return c(I(C))}},function(he,u,o){"use strict";o.d(u,"a",function(){return O});var c=o(2),I=o(29),C=o(19);function g(w){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(k){return typeof k}:function(k){return k&&"function"==typeof Symbol&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k})(w)}function a(w,T){if(!(w instanceof T))throw new TypeError("Cannot call a class as a function")}function p(w,T){for(var k=0;k<T.length;k++){var R=T[k];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(w,R.key,R)}}function l(w,T,k){return(l=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(P,B,W){var z=function d(w,T){for(;!Object.prototype.hasOwnProperty.call(w,T)&&null!==(w=S(w)););return w}(P,B);if(z){var V=Object.getOwnPropertyDescriptor(z,B);return V.get?V.get.call(W):V.value}})(w,T,k||w)}function h(w,T){if("function"!=typeof T&&null!==T)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(T&&T.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),T&&v(w,T)}function v(w,T){return(v=Object.setPrototypeOf||function(R,P){return R.__proto__=P,R})(w,T)}function x(w){var T=function E(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var P,R=S(w);if(T){var B=S(this).constructor;P=Reflect.construct(R,arguments,B)}else P=R.apply(this,arguments);return b(this,P)}}function b(w,T){if(T&&("object"===g(T)||"function"==typeof T))return T;if(void 0!==T)throw new TypeError("Derived constructors may only return object or undefined");return function y(w){if(void 0===w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}(w)}function S(w){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)})(w)}var O=function(w){h(k,w);var T=x(k);function k(R,P){var B,W,z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{allowedTags:[]};return a(this,k),(W=T.call(this,R,P,z)).allowedTags=null!==(B=z.allowedTags)&&void 0!==B?B:[],W}return function s(w,T,k){return T&&p(w.prototype,T),k&&p(w,k),w}(k,[{key:"add",value:function(P,B){return I.c.call(this,l(S(k.prototype),"add",this),P,B)}},{key:"remove",value:function(P){return I.c.call(this,l(S(k.prototype),"remove",this),P)}},{key:"value",value:function(P){return I.c.call(this,l(S(k.prototype),"value",this),P)}},{key:"canAdd",value:function(P,B){return I.a.call(this,l(S(k.prototype),"canAdd",this),P,B)}}],[{key:"keys",value:function(P){return Object(I.b)(l(S(k),"keys",this),P,C.a.attribute)}}]),k}(c.Attributor)},function(he,u,o){"use strict";function c(){return Math.random().toString(36).slice(2,6)}o.d(u,"a",function(){return c})},function(he,u,o){"use strict";var c=o(1),I=o.n(c),C=o(2),g=o(0),a=o(12),p=o(6),s=o(10),l=o(13),d=o(5),h=o(21),v=o(11),x=o(64),b=o(48);function y(dt){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Lt){return typeof Lt}:function(Lt){return Lt&&"function"==typeof Symbol&&Lt.constructor===Symbol&&Lt!==Symbol.prototype?"symbol":typeof Lt})(dt)}function E(dt,vt){return function w(dt){if(Array.isArray(dt))return dt}(dt)||function O(dt,vt){var Lt=null==dt?null:typeof Symbol<"u"&&dt[Symbol.iterator]||dt["@@iterator"];if(null!=Lt){var Xn,li,bn=[],mn=!0,xn=!1;try{for(Lt=Lt.call(dt);!(mn=(Xn=Lt.next()).done)&&(bn.push(Xn.value),!vt||bn.length!==vt);mn=!0);}catch(ki){xn=!0,li=ki}finally{try{!mn&&null!=Lt.return&&Lt.return()}finally{if(xn)throw li}}return bn}}(dt,vt)||R(dt,vt)||function S(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(dt){return function B(dt){if(Array.isArray(dt))return W(dt)}(dt)||function P(dt){if(typeof Symbol<"u"&&null!=dt[Symbol.iterator]||null!=dt["@@iterator"])return Array.from(dt)}(dt)||R(dt)||function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function R(dt,vt){if(dt){if("string"==typeof dt)return W(dt,vt);var Lt=Object.prototype.toString.call(dt).slice(8,-1);if("Object"===Lt&&dt.constructor&&(Lt=dt.constructor.name),"Map"===Lt||"Set"===Lt)return Array.from(dt);if("Arguments"===Lt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return W(dt,vt)}}function W(dt,vt){(null==vt||vt>dt.length)&&(vt=dt.length);for(var Lt=0,bn=new Array(vt);Lt<vt;Lt++)bn[Lt]=dt[Lt];return bn}function z(dt,vt){if(!(dt instanceof vt))throw new TypeError("Cannot call a class as a function")}function V(dt,vt){for(var Lt=0;Lt<vt.length;Lt++){var bn=vt[Lt];bn.enumerable=bn.enumerable||!1,bn.configurable=!0,"value"in bn&&(bn.writable=!0),Object.defineProperty(dt,bn.key,bn)}}function U(dt,vt,Lt){return vt&&V(dt.prototype,vt),Lt&&V(dt,Lt),dt}function K(dt,vt,Lt){return(K=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(mn,xn,Xn){var li=function Y(dt,vt){for(;!Object.prototype.hasOwnProperty.call(dt,vt)&&null!==(dt=X(dt)););return dt}(mn,xn);if(li){var ki=Object.getOwnPropertyDescriptor(li,xn);return ki.get?ki.get.call(Xn):ki.value}})(dt,vt,Lt||dt)}function J(dt,vt){if("function"!=typeof vt&&null!==vt)throw new TypeError("Super expression must either be null or a function");dt.prototype=Object.create(vt&&vt.prototype,{constructor:{value:dt,writable:!0,configurable:!0}}),vt&&j(dt,vt)}function j(dt,vt){return(j=Object.setPrototypeOf||function(bn,mn){return bn.__proto__=mn,bn})(dt,vt)}function ee(dt){var vt=function Z(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var mn,bn=X(dt);if(vt){var xn=X(this).constructor;mn=Reflect.construct(bn,arguments,xn)}else mn=bn.apply(this,arguments);return G(this,mn)}}function G(dt,vt){if(vt&&("object"===y(vt)||"function"==typeof vt))return vt;if(void 0!==vt)throw new TypeError("Derived constructors may only return object or undefined");return function q(dt){if(void 0===dt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt}(dt)}function X(dt){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(Lt){return Lt.__proto__||Object.getPrototypeOf(Lt)})(dt)}var M=["row","cell"],fe="data-table-",Te=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"optimize",value:function(){var mn,xn=this.domNode.getAttribute("".concat(fe,"row"));if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Xn=this.domNode,li={row:xn};Object.keys(h.b).forEach(function(Hn){var En=Xn.dataset[Hn.toLowerCase()];En&&(li[Hn]=En)}),this.wrap(this.statics.requiredContainer.blotName,li)}for(var ki=arguments.length,Vn=new Array(ki),Oi=0;Oi<ki;Oi++)Vn[Oi]=arguments[Oi];(mn=K(X(Lt.prototype),"optimize",this)).call.apply(mn,[this].concat(Vn))}},{key:"format",value:function(mn,xn){"tableCellLine"===mn&&null===xn&&(xn=this.formats().tableCellLine);var li=M.indexOf(mn)>-1;if(li||v.c[mn]||h.b[mn]){var Vn,Oi,Hn,ki="data-".concat(li?"table-":"").concat(mn.toLowerCase());Object(b.a)(this.domNode,ki,xn),h.b[mn]&&(null===(Vn=this.cell())||void 0===Vn||Vn.format(mn,xn)),v.c[mn]&&(null===(Oi=this.cell())||void 0===Oi||null===(Hn=Oi.table())||void 0===Hn||Hn.format(mn,xn))}else K(X(Lt.prototype),"format",this).call(this,mn,xn)}},{key:"cell",value:function(){return"row"in this.parent?this.parent:null}}],[{key:"create",value:function(mn){var xn=K(X(Lt),"create",this).call(this,mn);return M.forEach(function(Xn){var li,ki="row"===Xn?te:ie;xn.setAttribute("".concat(fe).concat(Xn),null!==(li=mn[Xn])&&void 0!==li?li:ki())}),xn}},{key:"formats",value:function(mn){return M.reduce(function(xn,Xn){var li="".concat(fe).concat(Xn);return mn.hasAttribute(li)&&(xn[Xn]=mn.getAttribute(li)||void 0),xn},{})}}]),Lt}(p.d);Te.blotName="tableCellLine",Te.className="ql-table-cell-line",Te.tagName="P";var Be=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return Lt}(Te);Be.blotName="tableHeaderCellLine",Be.className="ql-table-header-cell-line";var ze=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"format",value:function(mn,xn){var Xn;null===(Xn=h.b[mn])||void 0===Xn||Xn.add(this.domNode,xn)}},{key:"checkMerge",value:function(){if(K(X(Lt.prototype),"checkMerge",this).call(this)&&null!=this.next.children.head){var mn=this.children.head.formats()[this.children.head.statics.blotName],xn=this.children.tail.formats()[this.children.tail.statics.blotName],Xn=this.next.children.head.formats()[this.next.children.head.statics.blotName],li=this.next.children.tail.formats()[this.next.children.tail.statics.blotName];return mn.cell===xn.cell&&mn.cell===Xn.cell&&mn.cell===li.cell}return!1}},{key:"formats",value:function(){return Lt.cellFormats(this.domNode)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var mn;return null===(mn=this.row())||void 0===mn?void 0:mn.table()}},{key:"optimize",value:function(){var mn,xn,Xn=null!==(mn=this.domNode.getAttribute("".concat(fe,"row")))&&void 0!==mn?mn:this.domNode.getAttribute("".concat(fe,"header-row"));this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)&&this.wrap(this.statics.requiredContainer.blotName,{row:Xn});for(var li=arguments.length,ki=new Array(li),Vn=0;Vn<li;Vn++)ki[Vn]=arguments[Vn];(xn=K(X(Lt.prototype),"optimize",this)).call.apply(xn,[this].concat(ki))}}],[{key:"create",value:function(mn){var xn=K(X(Lt),"create",this).call(this,mn);return mn&&Object.keys(mn).forEach(function(Xn){var li;null===(li=h.b[Xn])||void 0===li||li.add(xn,mn[Xn])}),xn}},{key:"cellFormats",value:function(mn){var Xn,xn={};return(mn.hasAttribute("".concat(fe,"row"))||mn.hasAttribute("".concat(fe,"header-row")))&&(xn.row=null!==(Xn=mn.getAttribute("".concat(fe,"row")))&&void 0!==Xn?Xn:mn.getAttribute("".concat(fe,"header-row"))),Object.keys(h.b).forEach(function(li){var ki,Vn=null===(ki=mn.firstElementChild)||void 0===ki?void 0:ki.dataset[li.toLowerCase()];Vn&&(xn[li]=Vn)}),xn}}]),Lt}(l.a);ze.tagName=["TD","TH"];var ae=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"format",value:function(mn,xn){"row"===mn?(this.domNode.setAttribute("".concat(fe).concat(mn),xn),this.children.forEach(function(Xn){Xn.format(mn,xn)})):K(X(Lt.prototype),"format",this).call(this,mn,xn)}}],[{key:"create",value:function(mn){var xn=K(X(Lt),"create",this).call(this,mn),Xn="".concat(fe,"row");return null!=mn&&mn.row&&xn.setAttribute(Xn,mn.row),xn}}]),Lt}(ze);ae.blotName="tableCell",ae.className="ql-table-data-cell",ae.dataAttribute="".concat(fe,"row");var _e=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"format",value:function(mn,xn){"row"===mn?(this.domNode.setAttribute("".concat(fe).concat(mn),xn),this.children.forEach(function(Xn){Xn.format(mn,xn)})):K(X(Lt.prototype),"format",this).call(this,mn,xn)}}],[{key:"create",value:function(mn){var xn=K(X(Lt),"create",this).call(this,mn),Xn="".concat(fe,"header-row");return mn&&mn.row&&xn.setAttribute(Xn,mn.row),xn}}]),Lt}(ze);_e.tagName=["TH","TD"],_e.className="ql-table-header-cell",_e.blotName="tableHeaderCell",_e.dataAttribute="".concat(fe,"header-row");var ye=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"checkMerge",value:function(){if(K(X(Lt.prototype),"checkMerge",this).call(this)&&Object(d.a)(this.next.children.head)){var mn="row",xn=this.children.head.formats(),Xn=this.children.tail.formats(),li=this.next.children.head.formats(),ki=this.next.children.tail.formats();return xn[mn]===Xn[mn]&&xn[mn]===li[mn]&&xn[mn]===ki[mn]}return!1}},{key:"optimize",value:function(){for(var mn,xn=this,Xn=arguments.length,li=new Array(Xn),ki=0;ki<Xn;ki++)li[ki]=arguments[ki];(mn=K(X(Lt.prototype),"optimize",this)).call.apply(mn,[this].concat(li));var Vn=this.childFormatName;this.children.forEach(function(Oi){if(Object(d.a)(Oi.next)){var Hn=Oi.formats(),En=Oi.next.formats();if(Hn[Vn]!==En[Vn]){var Mn=xn.splitAfter(Oi);Mn&&Mn.optimize(),xn.prev&&xn.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var mn;return null===(mn=this.parent)||void 0===mn?void 0:mn.parent}},{key:"formats",value:function(){var mn={},xn="".concat(fe,"row");return this.domNode.hasAttribute(xn)&&(mn[xn]=this.domNode.getAttribute(xn)),mn}}],[{key:"create",value:function(mn){var xn=K(X(Lt),"create",this).call(this,mn);return null!=mn&&mn.row&&xn.setAttribute("".concat(fe,"row"),mn.row),xn}}]),Lt}(l.a);ye.tagName="TR";var ne=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(bn,mn){var xn;return z(this,Lt),(xn=vt.call(this,bn,mn)).childFormatName="table",xn}return Lt}(ye);ne.blotName="tableRow";var ce=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(bn,mn){var xn;return z(this,Lt),(xn=vt.call(this,bn,mn)).childFormatName="tableHeaderCell",xn}return Lt}(ye);ce.blotName="tableHeaderRow";var le=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"optimize",value:function(){var mn;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var xn=this.children.head.children.head.children.head.domNode,Xn={};Object.keys(v.c).forEach(function(Oi){var Hn=xn.dataset[Oi.toLowerCase()];Hn&&(Xn[Oi]=Hn)}),this.wrap(this.statics.requiredContainer.blotName,Xn)}for(var li=arguments.length,ki=new Array(li),Vn=0;Vn<li;Vn++)ki[Vn]=arguments[Vn];(mn=K(X(Lt.prototype),"optimize",this)).call.apply(mn,[this].concat(ki))}}]),Lt}(l.a),pe=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return Lt}(le);pe.blotName="tableBody",pe.tagName="TBODY";var Se=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return Lt}(le);Se.blotName="tableHeader",Se.tagName="THEAD";var re=function(dt){J(Lt,dt);var vt=ee(Lt);function Lt(){return z(this,Lt),vt.apply(this,arguments)}return U(Lt,[{key:"balanceCells",value:function(){var mn=this.descendants(ce),xn=this.descendants(ne),Xn=this.getMaxTableColCount(mn,xn);this.balanceRows(Xn,mn,_e),this.balanceRows(Xn,xn,ae)}},{key:"getMaxTableColCount",value:function(mn,xn){return Math.max(this.getMaxRowColCount(mn),this.getMaxRowColCount(xn))}},{key:"getMaxRowColCount",value:function(mn){return Math.max.apply(Math,T(mn.map(function(xn){return xn.children.length})))}},{key:"balanceRows",value:function(mn,xn,Xn){var li=this;xn.forEach(function(ki){new Array(mn-ki.children.length).fill(0).forEach(function(){var Vn;Object(d.a)(ki.children.head)&&(Vn=Xn.cellFormats(ki.children.head.domNode));var Oi=li.scroll.create(Xn.blotName,Vn),Hn=li.scroll.create(Xn.allowedChildren[0].blotName,Vn);Oi.appendChild(Hn),ki.appendChild(Oi),Oi.optimize()})})}},{key:"cells",value:function(mn){return this.rows().map(function(xn){return xn.children.at(mn)})}},{key:"deleteColumn",value:function(mn){var xn=this;[Se,pe].forEach(function(Xn){var Vn=E(xn.descendants(Xn),1)[0];!Object(d.a)(Vn)||!Object(d.a)(Vn.children.head)||Vn.children.forEach(function(Oi){var Hn=Oi.children.at(mn);Object(d.a)(Hn)&&Hn.remove()})})}},{key:"insertColumn",value:function(mn){var xn=this;[Se,pe].forEach(function(Xn){var Vn=E(xn.descendants(Xn),1)[0];if(Object(d.a)(Vn)&&Object(d.a)(Vn.children.head)){var Oi=Xn===Se?_e:ae,Hn=Xn===Se?Be:Te;Vn.children.forEach(function(En){var Mn=En.children.at(mn),ei=Hn.formats(En.children.head.children.head.domNode),Wn=xn.scroll.create(Oi.blotName,{row:ei.row}),Ji=xn.scroll.create(Hn.blotName,{row:ei.row}),Sn=xn.scroll.create(s.a.blotName);Ji.appendChild(Sn),Wn.appendChild(Ji),En.insertBefore(Wn,Mn)})}})}},{key:"insertRow",value:function(mn){var xn=this,ki=E(this.descendants(pe),1)[0];if(Object(d.a)(ki)&&Object(d.a)(ki.children.head)){var Vn=te(),Oi=this.scroll.create(ne.blotName,{row:Vn});ki.children.head.children.forEach(function(){var En=xn.scroll.create(ae.blotName,{row:Vn}),Mn=xn.scroll.create(Te.blotName,{row:Vn}),ei=xn.scroll.create(s.a.blotName);Mn.appendChild(ei),En.appendChild(Mn),Oi.appendChild(En)});var Hn=ki.children.at(mn);ki.insertBefore(Oi,Hn)}}},{key:"insertHeaderRow",value:function(){var mn=this,li=E(this.descendants(Se),1)[0],Oi=E(this.descendants(pe),1)[0];if(!Object(d.a)(li)&&Object(d.a)(Oi)&&Object(d.a)(Oi.children.head)){var Hn=te(),En=this.scroll.create(Se.blotName),Mn=this.scroll.create(ce.blotName),ei=this.children.at(0);En.appendChild(Mn),Oi.children.head.children.forEach(function(){var Wn=mn.scroll.create(_e.blotName,{row:Hn}),Ji=mn.scroll.create(Be.blotName,{row:Hn}),Sn=mn.scroll.create(s.a.blotName);Ji.appendChild(Sn),Wn.appendChild(Ji),Mn.appendChild(Wn),Wn.optimize()}),this.insertBefore(En,ei)}}},{key:"rows",value:function(){var mn=this.children.head;return Object(d.a)(mn)?mn.children.map(function(xn){return xn}):[]}},{key:"formats",value:function(){var mn={},xn=this.cells()[0].domNode.firstElementChild;return Object.keys(v.c).forEach(function(Xn){var li=xn.dataset[Xn.toLowerCase()];li&&(mn[Xn]=li)}),mn}},{key:"format",value:function(mn,xn){var Xn=v.c[mn];if(Xn){var li="data-".concat(mn.toLowerCase());this.cells().forEach(function(ki){Object(b.a)(ki.children.head.domNode,li,xn)}),Xn.add(this.domNode,xn)}}}],[{key:"create",value:function(mn){var xn=K(X(Lt),"create",this).call(this,mn);return mn&&Object.keys(mn).forEach(function(Xn){var li;null===(li=v.c[Xn])||void 0===li||li.add(xn,mn[Xn])}),xn}}]),Lt}(l.a);function te(){return"row-".concat(Object(x.a)())}function ie(){return"cell-".concat(Object(x.a)())}re.blotName="tableContainer",re.tagName="TABLE",re.allowedChildren=[Se,pe],pe.requiredContainer=re,Se.requiredContainer=re,pe.allowedChildren=[ne],ne.requiredContainer=pe,ne.allowedChildren=[ae],ae.requiredContainer=ne,Te.requiredContainer=ae,ae.allowedChildren=[Te],Se.allowedChildren=[ce],ce.requiredContainer=Se,Be.requiredContainer=_e,_e.allowedChildren=[Be],ce.allowedChildren=[_e],_e.requiredContainer=ce;var ue=o(26),be=o(54),Ae=o(55);function Ne(dt){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Lt){return typeof Lt}:function(Lt){return Lt&&"function"==typeof Symbol&&Lt.constructor===Symbol&&Lt!==Symbol.prototype?"symbol":typeof Lt})(dt)}function mt(dt,vt,Lt){return vt in dt?Object.defineProperty(dt,vt,{value:Lt,enumerable:!0,configurable:!0,writable:!0}):dt[vt]=Lt,dt}function tt(dt,vt){return function $e(dt){if(Array.isArray(dt))return dt}(dt)||function Pe(dt,vt){var Lt=null==dt?null:typeof Symbol<"u"&&dt[Symbol.iterator]||dt["@@iterator"];if(null!=Lt){var Xn,li,bn=[],mn=!0,xn=!1;try{for(Lt=Lt.call(dt);!(mn=(Xn=Lt.next()).done)&&(bn.push(Xn.value),!vt||bn.length!==vt);mn=!0);}catch(ki){xn=!0,li=ki}finally{try{!mn&&null!=Lt.return&&Lt.return()}finally{if(xn)throw li}}return bn}}(dt,vt)||function gt(dt,vt){if(dt){if("string"==typeof dt)return tn(dt,vt);var Lt=Object.prototype.toString.call(dt).slice(8,-1);if("Object"===Lt&&dt.constructor&&(Lt=dt.constructor.name),"Map"===Lt||"Set"===Lt)return Array.from(dt);if("Arguments"===Lt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Lt))return tn(dt,vt)}}(dt,vt)||function Le(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tn(dt,vt){(null==vt||vt>dt.length)&&(vt=dt.length);for(var Lt=0,bn=new Array(vt);Lt<vt;Lt++)bn[Lt]=dt[Lt];return bn}function ge(dt,vt){if(!(dt instanceof vt))throw new TypeError("Cannot call a class as a function")}function Ce(dt,vt){for(var Lt=0;Lt<vt.length;Lt++){var bn=vt[Lt];bn.enumerable=bn.enumerable||!1,bn.configurable=!0,"value"in bn&&(bn.writable=!0),Object.defineProperty(dt,bn.key,bn)}}function Ye(dt,vt){if("function"!=typeof vt&&null!==vt)throw new TypeError("Super expression must either be null or a function");dt.prototype=Object.create(vt&&vt.prototype,{constructor:{value:dt,writable:!0,configurable:!0}}),vt&&bt(dt,vt)}function bt(dt,vt){return(bt=Object.setPrototypeOf||function(bn,mn){return bn.__proto__=mn,bn})(dt,vt)}function yt(dt){var vt=function ut(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var mn,bn=Ve(dt);if(vt){var xn=Ve(this).constructor;mn=Reflect.construct(bn,arguments,xn)}else mn=bn.apply(this,arguments);return kt(this,mn)}}function kt(dt,vt){if(vt&&("object"===Ne(vt)||"function"==typeof vt))return vt;if(void 0!==vt)throw new TypeError("Derived constructors may only return object or undefined");return function gn(dt){if(void 0===dt)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return dt}(dt)}function Ve(dt){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(Lt){return Lt.__proto__||Object.getPrototypeOf(Lt)})(dt)}var St=[null,null,null,-1],Xe=function(dt){Ye(Lt,dt);var vt=yt(Lt);function Lt(){var bn;ge(this,Lt);for(var mn=arguments.length,xn=new Array(mn),Xn=0;Xn<mn;Xn++)xn[Xn]=arguments[Xn];return(bn=vt.call.apply(vt,[this].concat(xn))).tableBlots=[Te.blotName,Be.blotName],bn.tableBlots.forEach(function(li){bn.quill.editor.addImmediateFormat(li)}),bn.integrateClipboard(),bn.addKeyboardHandlers(),bn.listenBalanceCells(),bn}return function De(dt,vt,Lt){return vt&&Ce(dt.prototype,vt),Lt&&Ce(dt,Lt),dt}(Lt,[{key:"integrateClipboard",value:function(){var mn=this;this.tableBlots.forEach(function(xn){mn.quill.clipboard.addTableBlot(xn)}),this.quill.clipboard.addMatcher("td, th",Vt),this.quill.clipboard.addMatcher("table",Object(Ae.a)(v.a)),this.quill.clipboard.addMatcher("td, th",Object(Ae.b)(h.a))}},{key:"addKeyboardHandlers",value:function(){var mn=this,xn=Lt.keyboardBindings;Object.keys(xn).forEach(function(Xn){xn[Xn]&&mn.quill.keyboard.addBinding(xn[Xn])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(re).forEach(function(mn){mn.balanceCells()})}},{key:"deleteColumn",value:function(){var xn=tt(this.getTable(),3),Xn=xn[0],li=xn[2];Object(d.a)(li)&&(Xn.deleteColumn(li.cellOffset()),this.quill.update(g.a.sources.USER))}},{key:"deleteRow",value:function(){var Xn=tt(this.getTable(),2)[1];Object(d.a)(Xn)&&(Xn.remove(),this.quill.update(g.a.sources.USER))}},{key:"deleteTable",value:function(){var Xn=tt(this.getTable(),1)[0];if(Object(d.a)(Xn)){var li=Xn.offset();Xn.remove(),this.quill.update(g.a.sources.USER),this.quill.setSelection(li,g.a.sources.SILENT)}}},{key:"getTable",value:function(){var mn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!Object(d.a)(mn))return St;var Xn=tt(this.quill.getLine(mn.index),2),li=Xn[0],ki=Xn[1];if(!Object(d.a)(li)||-1===this.tableBlots.indexOf(li.statics.blotName))return St;var Vn=li.parent,Oi=Vn.parent;return[Oi.parent.parent,Oi,Vn,ki]}},{key:"insertColumn",value:function(mn){var xn=this.quill.getSelection(),li=tt(this.getTable(xn),3),ki=li[0],Vn=li[1],Oi=li[2];if(Object(d.a)(Oi)){var Hn=Oi.cellOffset();ki.insertColumn(Hn+mn),this.quill.update(g.a.sources.USER);var En=Vn.rowOffset();0===mn&&(En+=1),this.quill.setSelection(xn.index+En,xn.length,g.a.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(mn){var xn=this.quill.getSelection(),li=tt(this.getTable(xn),3),ki=li[0],Vn=li[1],Oi=li[2];if(Object(d.a)(Oi)){var Hn=Vn.rowOffset();ki.insertRow(Hn+mn),this.quill.update(g.a.sources.USER),mn>0?this.quill.setSelection(xn,g.a.sources.SILENT):this.quill.setSelection(xn.index+Vn.children.length,xn.length,g.a.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var mn=this.quill.getSelection(),Xn=tt(this.getTable(mn),3),li=Xn[0],ki=Xn[2];Object(d.a)(ki)&&(li.insertHeaderRow(),this.quill.update(g.a.sources.USER))}},{key:"insertTable",value:function(mn,xn){var Xn=this.quill.getSelection();if(Object(d.a)(Xn)){var li=new Array(mn).fill(0).reduce(function(ki){var Vn=te();return new Array(xn).fill("\n").forEach(function(Oi){ki.insert(Oi,{tableCellLine:{row:Vn,cell:te()}})}),ki},(new I.a).retain(Xn.index));this.quill.updateContents(li,g.a.sources.USER),this.quill.setSelection(Xn.index,g.a.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var mn=this;this.quill.on(g.a.events.SCROLL_OPTIMIZE,function(xn){xn.some(function(Xn){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(Xn.target.tagName)&&(mn.quill.once(g.a.events.TEXT_CHANGE,function(li,ki,Vn){Vn===g.a.sources.USER&&mn.balanceTables()}),!0)})}),this.quill.on(g.a.events.CONTENT_SETTED,function(){mn.quill.once(g.a.events.TEXT_CHANGE,function(){mn.balanceTables()})})}}],[{key:"register",value:function(){g.a.register(Te,!0),g.a.register(Be,!0),g.a.register(_e,!0),g.a.register(ae,!0),g.a.register(ce,!0),g.a.register(ne,!0),g.a.register(pe,!0),g.a.register(Se,!0),g.a.register(re,!0),[v.c,h.b].forEach(function(mn){Object.keys(mn).forEach(function(xn){g.a.register(mt({},"formats/".concat(xn),mn[xn]),!0)})})}}]),Lt}(a.a);function Vt(dt,vt){var Lt=dt.parentNode,mn="THEAD"===Lt.parentNode.tagName||null,xn=Array.from(("TABLE"===Lt.parentNode.tagName?Lt.parentNode:Lt.parentNode.parentNode).querySelectorAll("tr")),Xn=Array.from(Lt.querySelectorAll("th,td")),li=xn.indexOf(Lt)+1,ki=Xn.indexOf(dt)+1,Vn=mn?"tableHeaderCellLine":"tableCellLine";return 0===vt.length()?vt=(new I.a).insert("\n",mt({},Vn,{row:li,cell:ki})):(Object(ue.c)(vt,"\n")||vt.insert("\n"),Object(ue.a)(vt,Vn,{row:li,cell:ki}))}Xe.keyboardBindings={"table backspace":{key:"backspace",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,offset:0,handler:function(vt){var mn=tt(this.quill.getLine(vt.index),1)[0];return!(!mn.prev||-1===["tableCellLine","tableHeaderCellLine"].indexOf(mn.prev.statics.blotName))}},"table delete":{key:"del",format:["tableCellLine","tableHeaderCellLine"],collapsed:!0,suffix:/^$/,handler:function(){}},"table cell enter":{key:"enter",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(vt,Lt){var bn,mn=this;if(null===(bn=this.quill.selection)||void 0===bn||!bn.composing){vt.length>0&&this.quill.scroll.deleteAt(vt.index,vt.length);var xn=Object.keys(Lt.format).reduce(function(Xn,li){return mn.quill.scroll.query(li,C.Scope.BLOCK)&&!Array.isArray(Lt.format[li])&&(Xn[li]=Lt.format[li]),Xn},{});this.quill.insertText(vt.index,"\n",xn.tableCellLine,g.a.sources.USER),this.quill.setSelection(vt.index+1,g.a.sources.SILENT),this.quill.focus(),Object.keys(Lt.format).forEach(function(Xn){null==xn[Xn]&&(Array.isArray(Lt.format[Xn])||"link"!==Xn&&mn.quill.format(Xn,Lt.format[Xn],g.a.sources.USER))})}}},"table tab":{key:"tab",shiftKey:null,format:["tableCellLine","tableHeaderCellLine"],handler:function(vt,Lt){var bn=Lt.event,mn=Lt.line,xn=mn.offset(this.quill.scroll);this.quill.setSelection(bn.shiftKey?xn-1:xn+mn.length(),g.a.sources.USER)}},"table down":Object(be.a)(!1,["tableCellLine","tableHeaderCellLine"]),"table up":Object(be.a)(!0,["tableCellLine","tableHeaderCellLine"])},u.a=Xe},function(he,u){he.exports=function(o){return o.webpackPolyfill||(o.deprecate=function(){},o.paths=[],o.children||(o.children=[]),Object.defineProperty(o,"loaded",{enumerable:!0,get:function(){return o.l}}),Object.defineProperty(o,"id",{enumerable:!0,get:function(){return o.i}}),o.webpackPolyfill=1),o}},function(he,u){he.exports=!1},function(he,u,o){var c=o(8),I=o(69),C=c.Object;he.exports=function(g){return C(I(g))}},function(he,u,o){var I=o(8).TypeError;he.exports=function(C){if(null==C)throw I("Can't call method on "+C);return C}},function(he,u,o){var c=o(41),I=o(52),C=o(71);he.exports=c?function(g,a,p){return I.f(g,a,C(1,p))}:function(g,a,p){return g[a]=p,g}},function(he,u){he.exports=function(o,c){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:c}}},function(he,u){he.exports={}},function(he,u,o){"use strict";o.d(u,"a",function(){return s});var c=o(63),I=o(31),C=o(19),g=["name"];function a(l,d){if(null==l)return{};var v,x,h=function p(l,d){if(null==l)return{};var x,b,h={},v=Object.keys(l);for(b=0;b<v.length;b++)!(d.indexOf(x=v[b])>=0)&&(h[x]=l[x]);return h}(l,d);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(l);for(x=0;x<b.length;x++)!(d.indexOf(v=b[x])>=0)&&Object.prototype.propertyIsEnumerable.call(l,v)&&(h[v]=l[v])}return h}function s(l,d){var h=l.name,v=a(l,g),x="".concat(h).concat(Object(I.a)(d)),b="".concat(C.a.attribute).concat(h,"_").concat(d);return new c.a(x,b,v)}},function(he,u,o){"use strict";o.d(u,"a",function(){return b});var c=o(53),I=o(31),C=o(19),g=["name","formatName"];function a(y,E){return function h(y){if(Array.isArray(y))return y}(y)||function d(y,E){var S=null==y?null:typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(null!=S){var k,R,O=[],w=!0,T=!1;try{for(S=S.call(y);!(w=(k=S.next()).done)&&(O.push(k.value),!E||O.length!==E);w=!0);}catch(P){T=!0,R=P}finally{try{!w&&null!=S.return&&S.return()}finally{if(T)throw R}}return O}}(y,E)||function s(y,E){if(y){if("string"==typeof y)return l(y,E);var S=Object.prototype.toString.call(y).slice(8,-1);if("Object"===S&&y.constructor&&(S=y.constructor.name),"Map"===S||"Set"===S)return Array.from(y);if("Arguments"===S||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return l(y,E)}}(y,E)||function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(y,E){(null==E||E>y.length)&&(E=y.length);for(var S=0,O=new Array(E);S<E;S++)O[S]=y[S];return O}function v(y,E){if(null==y)return{};var O,w,S=function x(y,E){if(null==y)return{};var w,T,S={},O=Object.keys(y);for(T=0;T<O.length;T++)!(E.indexOf(w=O[T])>=0)&&(S[w]=y[w]);return S}(y,E);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(y);for(w=0;w<T.length;w++)!(E.indexOf(O=T[w])>=0)&&Object.prototype.propertyIsEnumerable.call(y,O)&&(S[O]=y[O])}return S}function b(y,E){var S=y.name,O=y.formatName,w=v(y,g),k=a(E.split("-"),2),R=k[0],P=k[1],B="".concat(S).concat(Object(I.a)(O??R)).concat(P?Object(I.a)(P):""),W="".concat(C.a.style).concat(S,"_").concat(E);return new c.a(B,W,w)}},function(he,u,o){"use strict";var c=o(1),I=o.n(c),C=o(0),g=o(12),a=o(6),p=o(13),s=o(5),l=o(11),d=o(64),h=o(48);function v(Xe){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(lt){return typeof lt}:function(lt){return lt&&"function"==typeof Symbol&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt})(Xe)}function x(Xe,Vt){return function E(Xe){if(Array.isArray(Xe))return Xe}(Xe)||function y(Xe,Vt){var lt=null==Xe?null:typeof Symbol<"u"&&Xe[Symbol.iterator]||Xe["@@iterator"];if(null!=lt){var bn,mn,dt=[],vt=!0,Lt=!1;try{for(lt=lt.call(Xe);!(vt=(bn=lt.next()).done)&&(dt.push(bn.value),!Vt||dt.length!==Vt);vt=!0);}catch(xn){Lt=!0,mn=xn}finally{try{!vt&&null!=lt.return&&lt.return()}finally{if(Lt)throw mn}}return dt}}(Xe,Vt)||w(Xe,Vt)||function b(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(Xe){return function k(Xe){if(Array.isArray(Xe))return R(Xe)}(Xe)||function T(Xe){if(typeof Symbol<"u"&&null!=Xe[Symbol.iterator]||null!=Xe["@@iterator"])return Array.from(Xe)}(Xe)||w(Xe)||function O(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(Xe,Vt){if(Xe){if("string"==typeof Xe)return R(Xe,Vt);var lt=Object.prototype.toString.call(Xe).slice(8,-1);if("Object"===lt&&Xe.constructor&&(lt=Xe.constructor.name),"Map"===lt||"Set"===lt)return Array.from(Xe);if("Arguments"===lt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(lt))return R(Xe,Vt)}}function R(Xe,Vt){(null==Vt||Vt>Xe.length)&&(Vt=Xe.length);for(var lt=0,dt=new Array(Vt);lt<Vt;lt++)dt[lt]=Xe[lt];return dt}function P(Xe,Vt){if(!(Xe instanceof Vt))throw new TypeError("Cannot call a class as a function")}function B(Xe,Vt){for(var lt=0;lt<Vt.length;lt++){var dt=Vt[lt];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(Xe,dt.key,dt)}}function W(Xe,Vt,lt){return Vt&&B(Xe.prototype,Vt),lt&&B(Xe,lt),Xe}function z(Xe,Vt,lt){return(z=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(vt,Lt,bn){var mn=function V(Xe,Vt){for(;!Object.prototype.hasOwnProperty.call(Xe,Vt)&&null!==(Xe=G(Xe)););return Xe}(vt,Lt);if(mn){var xn=Object.getOwnPropertyDescriptor(mn,Lt);return xn.get?xn.get.call(bn):xn.value}})(Xe,Vt,lt||Xe)}function U(Xe,Vt){if("function"!=typeof Vt&&null!==Vt)throw new TypeError("Super expression must either be null or a function");Xe.prototype=Object.create(Vt&&Vt.prototype,{constructor:{value:Xe,writable:!0,configurable:!0}}),Vt&&K(Xe,Vt)}function K(Xe,Vt){return(K=Object.setPrototypeOf||function(dt,vt){return dt.__proto__=vt,dt})(Xe,Vt)}function Y(Xe){var Vt=function ee(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var vt,dt=G(Xe);if(Vt){var Lt=G(this).constructor;vt=Reflect.construct(dt,arguments,Lt)}else vt=dt.apply(this,arguments);return J(this,vt)}}function J(Xe,Vt){if(Vt&&("object"===v(Vt)||"function"==typeof Vt))return Vt;if(void 0!==Vt)throw new TypeError("Derived constructors may only return object or undefined");return function j(Xe){if(void 0===Xe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe}(Xe)}function G(Xe){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(lt){return lt.__proto__||Object.getPrototypeOf(lt)})(Xe)}var Z="data-tablelite-",X=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return W(lt,[{key:"format",value:function(vt,Lt){if(l.c[vt]){var bn,mn,xn="data-".concat(vt.toLowerCase());Object(h.a)(this.domNode,xn,Lt),null===(bn=this.row())||void 0===bn||null===(mn=bn.table())||void 0===mn||mn.format(vt,Lt)}else z(G(lt.prototype),"format",this).call(this,vt,Lt)}},{key:"cellOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"row",value:function(){return"table"in this.parent?this.parent:null}},{key:"rowOffset",value:function(){return this.row()?this.row().rowOffset():-1}},{key:"table",value:function(){var vt;return null===(vt=this.row())||void 0===vt?void 0:vt.table()}}],[{key:"create",value:function(vt){var Lt=z(G(lt),"create",this).call(this),bn=this.dataAttribute;return Object(h.a)(Lt,bn,vt??ne()),Lt}},{key:"formats",value:function(vt){var Lt=this.dataAttribute;if(vt.hasAttribute(Lt))return vt.getAttribute(Lt)}}]),lt}(a.d);X.tagName=["TD","TH"];var M=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return W(lt,[{key:"format",value:function(vt,Lt){vt===lt.blotName&&Lt?this.domNode.setAttribute(lt.dataAttribute,Lt):z(G(lt.prototype),"format",this).call(this,vt,Lt)}}]),lt}(X);M.blotName="table",M.dataAttribute="".concat(Z,"row");var oe=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return W(lt,[{key:"format",value:function(vt,Lt){vt===lt.blotName&&Lt?this.domNode.setAttribute(lt.dataAttribute,Lt):z(G(lt.prototype),"format",this).call(this,vt,Lt)}}]),lt}(X);oe.tagName=["TH","TD"],oe.blotName="tableHeaderCell",oe.dataAttribute="".concat(Z,"header-row");var fe=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return W(lt,[{key:"checkMerge",value:function(){if(z(G(lt.prototype),"checkMerge",this).call(this)&&Object(s.a)(this.next.children.head)){var vt=this.childFormatName,Lt=this.children.head.formats(),bn=this.children.tail.formats(),mn=this.next.children.head.formats(),xn=this.next.children.tail.formats();return Lt[vt]===bn[vt]&&Lt[vt]===mn[vt]&&Lt[vt]===xn[vt]}return!1}},{key:"optimize",value:function(){for(var vt,Lt=this,bn=arguments.length,mn=new Array(bn),xn=0;xn<bn;xn++)mn[xn]=arguments[xn];(vt=z(G(lt.prototype),"optimize",this)).call.apply(vt,[this].concat(mn));var Xn=this.childFormatName;this.children.forEach(function(li){if(Object(s.a)(li.next)){var ki=li.formats(),Vn=li.next.formats();if(ki[Xn]!==Vn[Xn]){var Oi=Lt.splitAfter(li);Oi&&Oi.optimize(),Lt.prev&&Lt.prev.optimize()}}})}},{key:"rowOffset",value:function(){return this.parent?this.parent.children.indexOf(this):-1}},{key:"table",value:function(){var vt;return null===(vt=this.parent)||void 0===vt?void 0:vt.parent}}]),lt}(p.a);fe.tagName="TR";var Te=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(dt,vt){var Lt;return P(this,lt),(Lt=Vt.call(this,dt,vt)).childFormatName="table",Lt}return lt}(fe);Te.blotName="tableRow";var Be=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(dt,vt){var Lt;return P(this,lt),(Lt=Vt.call(this,dt,vt)).childFormatName="tableHeaderCell",Lt}return lt}(fe);Be.blotName="tableHeaderRow";var ze=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return W(lt,[{key:"optimize",value:function(){var vt;if(this.statics.requiredContainer&&!(this.parent instanceof this.statics.requiredContainer)){var Lt=this.children.head.children.head.domNode,bn={};Object.keys(l.c).forEach(function(li){var ki=Lt.dataset[li.toLowerCase()];ki&&(bn[li]=ki)}),this.wrap(this.statics.requiredContainer.blotName,bn)}for(var mn=arguments.length,xn=new Array(mn),Xn=0;Xn<mn;Xn++)xn[Xn]=arguments[Xn];(vt=z(G(lt.prototype),"optimize",this)).call.apply(vt,[this].concat(xn))}}]),lt}(p.a),ae=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return lt}(ze);ae.blotName="tableBody",ae.tagName=["TBODY"];var _e=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return lt}(ze);_e.blotName="tableHeader",_e.tagName=["THEAD"];var ye=function(Xe){U(lt,Xe);var Vt=Y(lt);function lt(){return P(this,lt),Vt.apply(this,arguments)}return W(lt,[{key:"balanceCells",value:function(){var vt=this.descendants(Be),Lt=this.descendants(Te),bn=this.getMaxTableColCount(vt,Lt);this.balanceRows(bn,vt,oe),this.balanceRows(bn,Lt,M)}},{key:"getMaxTableColCount",value:function(vt,Lt){return Math.max(this.getMaxRowColCount(vt),this.getMaxRowColCount(Lt))}},{key:"getMaxRowColCount",value:function(vt){return Math.max.apply(Math,S(vt.map(function(Lt){return Lt.children.length})))}},{key:"balanceRows",value:function(vt,Lt,bn){var mn=this;Lt.forEach(function(xn){new Array(vt-xn.children.length).fill(0).forEach(function(){var Xn;Object(s.a)(xn.children.head)&&(Xn=bn.formats(xn.children.head.domNode));var li=mn.scroll.create(bn.blotName,Xn);xn.appendChild(li),li.optimize()})})}},{key:"cells",value:function(vt){return this.rows().map(function(Lt){return Lt.children.at(vt)})}},{key:"deleteColumn",value:function(vt){var Lt=this;[_e,ae].forEach(function(bn){var Xn=x(Lt.descendants(bn),1)[0];!Object(s.a)(Xn)||!Object(s.a)(Xn.children.head)||Xn.children.forEach(function(li){var ki=li.children.at(vt);Object(s.a)(ki)&&ki.remove()})})}},{key:"insertColumn",value:function(vt){var Lt=this;[_e,ae].forEach(function(bn){var Xn=x(Lt.descendants(bn),1)[0];if(Object(s.a)(Xn)&&Object(s.a)(Xn.children.head)){var li=bn===_e?oe:M;Xn.children.forEach(function(ki){var Vn=ki.children.at(vt),Oi=li.formats(ki.children.head.domNode),Hn=Lt.scroll.create(li.blotName,Oi);ki.insertBefore(Hn,Vn)})}})}},{key:"insertRow",value:function(vt){var Lt=this,xn=x(this.descendants(ae),1)[0];if(Object(s.a)(xn)&&Object(s.a)(xn.children.head)){var Xn=ne(),li=this.scroll.create(Te.blotName);xn.children.head.children.forEach(function(){var Vn=Lt.scroll.create(M.blotName,Xn);li.appendChild(Vn)});var ki=xn.children.at(vt);xn.insertBefore(li,ki)}}},{key:"insertHeaderRow",value:function(){var vt=this,mn=x(this.descendants(_e),1)[0],li=x(this.descendants(ae),1)[0];if(!Object(s.a)(mn)&&Object(s.a)(li)&&Object(s.a)(li.children.head)){var ki=ne(),Vn=this.scroll.create(_e.blotName),Oi=this.scroll.create(Be.blotName),Hn=this.children.at(0);Vn.appendChild(Oi),li.children.head.children.forEach(function(){var En=vt.scroll.create(oe.blotName,ki);Oi.appendChild(En),En.optimize()}),this.insertBefore(Vn,Hn)}}},{key:"rows",value:function(){var vt=this.children.head;return Object(s.a)(vt)?vt.children.map(function(Lt){return Lt}):[]}},{key:"formats",value:function(){var vt={},Lt=this.cells()[0].domNode;return Object.keys(l.c).forEach(function(bn){var mn=Lt.dataset[bn.toLowerCase()];mn&&(vt[bn]=mn)}),vt}},{key:"format",value:function(vt,Lt){var bn=l.c[vt];if(bn){var mn="data-".concat(vt.toLowerCase());this.cells().forEach(function(xn){Object(h.a)(xn.domNode,mn,Lt)}),bn.add(this.domNode,Lt)}}}],[{key:"create",value:function(vt){var Lt=z(G(lt),"create",this).call(this,vt);return vt&&Object.keys(vt).forEach(function(bn){var mn;null===(mn=l.c[bn])||void 0===mn||mn.add(Lt,vt[bn])}),Lt}}]),lt}(p.a);function ne(){return"row-".concat(Object(d.a)())}ye.blotName="tableContainer",ye.tagName="TABLE",ye.allowedChildren=[_e,ae],ae.requiredContainer=ye,_e.requiredContainer=ye,ae.allowedChildren=[Te],Te.requiredContainer=ae,Te.allowedChildren=[M],M.requiredContainer=Te,_e.allowedChildren=[Be],Be.requiredContainer=_e,Be.allowedChildren=[oe],oe.requiredContainer=Be;var ce=o(26),le=o(54);function pe(Xe){var Vt=Xe.quill,dt=Xe.range,vt=Xe.index-1,Lt=(new I.a).retain(vt).insert("\n");Vt.updateContents(Lt,C.a.sources.USER),Vt.setSelection(dt.index+1,dt.length,C.a.sources.SILENT)}function Se(Xe){var Vt=Xe.quill,vt=Xe.index+Xe.table.length(),Lt=(new I.a).retain(vt).insert("\n");Vt.updateContents(Lt,C.a.sources.USER),Vt.setSelection(vt,C.a.sources.USER)}function re(Xe,Vt,lt){return null==Xe.prev&&null==Xe.next?null==Vt.prev&&null==Vt.next?0===lt?-1:1:null==Vt.prev?-1:1:null==Xe.prev?-1:null==Xe.next?1:null}var te=o(55),ie=o(21);function ue(Xe){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(lt){return typeof lt}:function(lt){return lt&&"function"==typeof Symbol&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt})(Xe)}function Ae(Xe,Vt){return function gt(Xe){if(Array.isArray(Xe))return Xe}(Xe)||function Le(Xe,Vt){var lt=null==Xe?null:typeof Symbol<"u"&&Xe[Symbol.iterator]||Xe["@@iterator"];if(null!=lt){var bn,mn,dt=[],vt=!0,Lt=!1;try{for(lt=lt.call(Xe);!(vt=(bn=lt.next()).done)&&(dt.push(bn.value),!Vt||dt.length!==Vt);vt=!0);}catch(xn){Lt=!0,mn=xn}finally{try{!vt&&null!=lt.return&&lt.return()}finally{if(Lt)throw mn}}return dt}}(Xe,Vt)||function mt(Xe,Vt){if(Xe){if("string"==typeof Xe)return tt(Xe,Vt);var lt=Object.prototype.toString.call(Xe).slice(8,-1);if("Object"===lt&&Xe.constructor&&(lt=Xe.constructor.name),"Map"===lt||"Set"===lt)return Array.from(Xe);if("Arguments"===lt||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(lt))return tt(Xe,Vt)}}(Xe,Vt)||function Ne(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function tt(Xe,Vt){(null==Vt||Vt>Xe.length)&&(Vt=Xe.length);for(var lt=0,dt=new Array(Vt);lt<Vt;lt++)dt[lt]=Xe[lt];return dt}function tn(Xe,Vt){if(!(Xe instanceof Vt))throw new TypeError("Cannot call a class as a function")}function Pe(Xe,Vt){for(var lt=0;lt<Vt.length;lt++){var dt=Vt[lt];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(Xe,dt.key,dt)}}function ge(Xe,Vt){if("function"!=typeof Vt&&null!==Vt)throw new TypeError("Super expression must either be null or a function");Xe.prototype=Object.create(Vt&&Vt.prototype,{constructor:{value:Xe,writable:!0,configurable:!0}}),Vt&&Ce(Xe,Vt)}function Ce(Xe,Vt){return(Ce=Object.setPrototypeOf||function(dt,vt){return dt.__proto__=vt,dt})(Xe,Vt)}function De(Xe){var Vt=function yt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var vt,dt=kt(Xe);if(Vt){var Lt=kt(this).constructor;vt=Reflect.construct(dt,arguments,Lt)}else vt=dt.apply(this,arguments);return Ye(this,vt)}}function Ye(Xe,Vt){if(Vt&&("object"===ue(Vt)||"function"==typeof Vt))return Vt;if(void 0!==Vt)throw new TypeError("Derived constructors may only return object or undefined");return function bt(Xe){if(void 0===Xe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return Xe}(Xe)}function kt(Xe){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(lt){return lt.__proto__||Object.getPrototypeOf(lt)})(Xe)}var gn=[null,null,null,-1],ut=function(Xe){ge(lt,Xe);var Vt=De(lt);function lt(){var dt;tn(this,lt);for(var vt=arguments.length,Lt=new Array(vt),bn=0;bn<vt;bn++)Lt[bn]=arguments[bn];return(dt=Vt.call.apply(Vt,[this].concat(Lt))).tableBlots=[M.blotName,oe.blotName],dt.tableBlots.forEach(function(mn){dt.quill.editor.addImmediateFormat(mn)}),dt.integrateClipboard(),dt.addKeyboardHandlers(),dt.listenBalanceCells(),dt}return function $e(Xe,Vt,lt){return Vt&&Pe(Xe.prototype,Vt),lt&&Pe(Xe,lt),Xe}(lt,[{key:"integrateClipboard",value:function(){var vt=this;this.tableBlots.forEach(function(Lt){return vt.quill.clipboard.addTableBlot(Lt)}),this.quill.clipboard.addMatcher("tr",Ve),this.quill.clipboard.addMatcher("table",Object(te.a)(l.a)),this.quill.clipboard.addMatcher("td, th",Object(te.b)(ie.a))}},{key:"addKeyboardHandlers",value:function(){var vt=this,Lt=lt.keyboardBindings;Object.keys(Lt).forEach(function(bn){Lt[bn]&&vt.quill.keyboard.addBinding(Lt[bn])})}},{key:"balanceTables",value:function(){this.quill.scroll.descendants(ye).forEach(function(vt){vt.balanceCells()})}},{key:"deleteColumn",value:function(){var Lt=Ae(this.getTable(),3),bn=Lt[0],mn=Lt[2];Object(s.a)(mn)&&(bn.deleteColumn(mn.cellOffset()),this.quill.update(C.a.sources.USER))}},{key:"deleteRow",value:function(){var bn=Ae(this.getTable(),2)[1];Object(s.a)(bn)&&(bn.remove(),this.quill.update(C.a.sources.USER))}},{key:"deleteTable",value:function(){var bn=Ae(this.getTable(),1)[0];if(Object(s.a)(bn)){var mn=bn.offset();bn.remove(),this.quill.update(C.a.sources.USER),this.quill.setSelection(mn,C.a.sources.SILENT)}}},{key:"getTable",value:function(){var vt=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.quill.getSelection();if(!Object(s.a)(vt))return gn;var bn=Ae(this.quill.getLine(vt.index),2),mn=bn[0],xn=bn[1];if(!Object(s.a)(mn)||-1===this.tableBlots.indexOf(mn.statics.blotName))return gn;var Xn=mn.parent;return[Xn.parent.parent,Xn,mn,xn]}},{key:"insertColumn",value:function(vt){var Lt=this.quill.getSelection(),mn=Ae(this.getTable(Lt),3),xn=mn[0],Xn=mn[1],li=mn[2];if(Object(s.a)(li)){var ki=li.cellOffset();xn.insertColumn(ki+vt),this.quill.update(C.a.sources.USER);var Vn=Xn.rowOffset();0===vt&&(Vn+=1),this.quill.setSelection(Lt.index+Vn,Lt.length,C.a.sources.SILENT)}}},{key:"insertColumnLeft",value:function(){this.insertColumn(0)}},{key:"insertColumnRight",value:function(){this.insertColumn(1)}},{key:"insertRow",value:function(vt){var Lt=this.quill.getSelection(),mn=Ae(this.getTable(Lt),3),xn=mn[0],Xn=mn[1],li=mn[2];if(Object(s.a)(li)){var ki=Xn.rowOffset();xn.insertRow(ki+vt),this.quill.update(C.a.sources.USER),vt>0?this.quill.setSelection(Lt,C.a.sources.SILENT):this.quill.setSelection(Lt.index+Xn.children.length,Lt.length,C.a.sources.SILENT)}}},{key:"insertRowAbove",value:function(){this.insertRow(0)}},{key:"insertRowBelow",value:function(){this.insertRow(1)}},{key:"insertHeaderRow",value:function(){var vt=this.quill.getSelection(),bn=Ae(this.getTable(vt),3),mn=bn[0],xn=bn[2];Object(s.a)(xn)&&(mn.insertHeaderRow(),this.quill.update(C.a.sources.USER))}},{key:"insertTable",value:function(vt,Lt){var bn=this.quill.getSelection();if(Object(s.a)(bn)){var mn=new Array(vt).fill(0).reduce(function(xn){var Xn=new Array(Lt).fill("\n").join("");return xn.insert(Xn,{table:ne()})},(new I.a).retain(bn.index));this.quill.updateContents(mn,C.a.sources.USER),this.quill.setSelection(bn.index,C.a.sources.SILENT),this.balanceTables()}}},{key:"tableFormats",value:function(){return this.tableBlots}},{key:"listenBalanceCells",value:function(){var vt=this;this.quill.on(C.a.events.SCROLL_OPTIMIZE,function(Lt){Lt.some(function(bn){return-1!==["TD","TH","TR","TBODY","THEAD","TABLE"].indexOf(bn.target.tagName)&&(vt.quill.once(C.a.events.TEXT_CHANGE,function(mn,xn,Xn){Xn===C.a.sources.USER&&vt.balanceTables()}),!0)})}),this.quill.on(C.a.events.CONTENT_SETTED,function(){vt.quill.once(C.a.events.TEXT_CHANGE,function(){vt.balanceTables()})})}}],[{key:"register",value:function(){C.a.register(oe,!0),C.a.register(M,!0),C.a.register(Be,!0),C.a.register(Te,!0),C.a.register(ae,!0),C.a.register(_e,!0),C.a.register(ye,!0),[l.c,ie.b].forEach(function(vt){Object.keys(vt).forEach(function(Lt){C.a.register(function be(Xe,Vt,lt){return Vt in Xe?Object.defineProperty(Xe,Vt,{value:lt,enumerable:!0,configurable:!0,writable:!0}):Xe[Vt]=lt,Xe}({},"formats/".concat(Lt),vt[Lt]),!0)})})}}]),lt}(g.a);function Ve(Xe,Vt){var dt="THEAD"===Xe.parentNode.tagName||null,Lt=Array.from(("TABLE"===Xe.parentNode.tagName?Xe.parentNode:Xe.parentNode.parentNode).querySelectorAll("tr")).indexOf(Xe)+1;return Object(ce.a)(Vt,dt?"tableHeaderCell":"table",Lt)}ut.keyboardBindings={"table backspace":{key:"backspace",format:["table","tableHeaderCell"],collapsed:!0,offset:0,handler:function(){}},"table delete":{key:"del",format:["table","tableHeaderCell"],collapsed:!0,suffix:/^$/,handler:function(){}},"table enter":{key:"enter",shiftKey:null,format:["table"],handler:function(Vt){var lt=this.quill.getModule("table");if(lt){var dt=this.quill,Lt=Ae(lt.getTable(Vt),4),bn=Lt[0],li=re(Lt[1],Lt[2],Lt[3]);if(null==li||li<0&&bn.children.length>1&&bn.children.head)return;var Vn=bn.offset();li<0?pe({quill:dt,index:Vn,range:Vt}):Se({quill:dt,index:Vn,table:bn})}}},"table header enter":{key:"enter",shiftKey:null,format:["tableHeaderCell"],handler:function(Vt){var lt=this.quill.getModule("table");if(lt){var dt=this.quill,Lt=Ae(lt.getTable(Vt),4),bn=Lt[0],li=re(Lt[1],Lt[2],Lt[3]);if(null==li)return;var ki=bn.offset();li<0||li>0&&bn.children.length>1&&bn.children.tail?pe({quill:dt,index:ki,range:Vt}):Se({quill:dt,index:ki,table:bn})}}},"table tab":{key:"tab",shiftKey:null,format:["table","tableHeaderCell"],handler:function(Vt,lt){var dt=lt.event,vt=lt.line,Lt=vt.offset(this.quill.scroll);this.quill.setSelection(dt.shiftKey?Lt-1:Lt+vt.length(),C.a.sources.USER)}},"table down":Object(le.a)(!1,["table","tableHeaderCell"]),"table up":Object(le.a)(!0,["table","tableHeaderCell"])},u.a=ut},function(he,u,o){"use strict";o.d(u,"a",function(){return X}),o.d(u,"b",function(){return oe});var c=o(1),I=o.n(c),C=o(2),g=o(14),a=o(0),p=o(12),s=o(6),l=o(10),d=o(24),h=o(9),v=o(17),x=o(26),b=o(15);function y(fe){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(Be){return typeof Be}:function(Be){return Be&&"function"==typeof Symbol&&Be.constructor===Symbol&&Be!==Symbol.prototype?"symbol":typeof Be})(fe)}function E(fe,Te,Be){return Te in fe?Object.defineProperty(fe,Te,{value:Be,enumerable:!0,configurable:!0,writable:!0}):fe[Te]=Be,fe}function S(fe,Te){return function R(fe){if(Array.isArray(fe))return fe}(fe)||function k(fe,Te){var Be=null==fe?null:typeof Symbol<"u"&&fe[Symbol.iterator]||fe["@@iterator"];if(null!=Be){var ye,ne,ze=[],ae=!0,_e=!1;try{for(Be=Be.call(fe);!(ae=(ye=Be.next()).done)&&(ze.push(ye.value),!Te||ze.length!==Te);ae=!0);}catch(ce){_e=!0,ne=ce}finally{try{!ae&&null!=Be.return&&Be.return()}finally{if(_e)throw ne}}return ze}}(fe,Te)||function w(fe,Te){if(fe){if("string"==typeof fe)return T(fe,Te);var Be=Object.prototype.toString.call(fe).slice(8,-1);if("Object"===Be&&fe.constructor&&(Be=fe.constructor.name),"Map"===Be||"Set"===Be)return Array.from(fe);if("Arguments"===Be||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Be))return T(fe,Te)}}(fe,Te)||function O(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(fe,Te){(null==Te||Te>fe.length)&&(Te=fe.length);for(var Be=0,ze=new Array(Te);Be<Te;Be++)ze[Be]=fe[Be];return ze}function P(fe,Te){if(!(fe instanceof Te))throw new TypeError("Cannot call a class as a function")}function B(fe,Te){for(var Be=0;Be<Te.length;Be++){var ze=Te[Be];ze.enumerable=ze.enumerable||!1,ze.configurable=!0,"value"in ze&&(ze.writable=!0),Object.defineProperty(fe,ze.key,ze)}}function W(fe,Te,Be){return Te&&B(fe.prototype,Te),Be&&B(fe,Be),fe}function z(fe,Te){if("function"!=typeof Te&&null!==Te)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(Te&&Te.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),Te&&V(fe,Te)}function V(fe,Te){return(V=Object.setPrototypeOf||function(ze,ae){return ze.__proto__=ae,ze})(fe,Te)}function U(fe){var Te=function J(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var ae,ze=G(fe);if(Te){var _e=G(this).constructor;ae=Reflect.construct(ze,arguments,_e)}else ae=ze.apply(this,arguments);return K(this,ae)}}function K(fe,Te){if(Te&&("object"===y(Te)||"function"==typeof Te))return Te;if(void 0!==Te)throw new TypeError("Derived constructors may only return object or undefined");return Y(fe)}function Y(fe){if(void 0===fe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function j(fe,Te,Be){return(j=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(ae,_e,ye){var ne=function ee(fe,Te){for(;!Object.prototype.hasOwnProperty.call(fe,Te)&&null!==(fe=G(fe)););return fe}(ae,_e);if(ne){var ce=Object.getOwnPropertyDescriptor(ne,_e);return ce.get?ce.get.call(ye):ce.value}})(fe,Te,Be||fe)}function G(fe){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(Be){return Be.__proto__||Object.getPrototypeOf(Be)})(fe)}var q=new C.ClassAttributor("code-token","hljs",{scope:C.Scope.INLINE}),Z=function(fe){z(Be,fe);var Te=U(Be);function Be(ze,ae,_e){var ye;return P(this,Be),ye=Te.call(this,ze,ae,_e),q.add(ye.domNode,_e),ye}return W(Be,[{key:"format",value:function(ae,_e){ae!==Be.blotName?j(G(Be.prototype),"format",this).call(this,ae,_e):_e?q.add(this.domNode,_e):(q.remove(this.domNode),this.domNode.classList.remove(this.statics.className))}},{key:"optimize",value:function(){for(var ae,_e=arguments.length,ye=new Array(_e),ne=0;ne<_e;ne++)ye[ne]=arguments[ne];(ae=j(G(Be.prototype),"optimize",this)).call.apply(ae,[this].concat(ye)),q.value(this.domNode)||this.unwrap()}}],[{key:"formats",value:function(ae,_e){for(;null!=ae&&ae!==_e.domNode;){if(ae.classList&&ae.classList.contains(v.c.className))return j(G(Be),"formats",this).call(this,ae,_e);ae=ae.parentNode}}}]),Be}(g.a);Z.blotName="code-token",Z.className="ql-token";var X=function(fe){z(Be,fe);var Te=U(Be);function Be(){return P(this,Be),Te.apply(this,arguments)}return W(Be,[{key:"format",value:function(ae,_e){ae===this.statics.blotName&&_e?this.domNode.setAttribute("data-language",_e):j(G(Be.prototype),"format",this).call(this,ae,_e)}},{key:"replaceWith",value:function(ae,_e){return this.formatAt(0,this.length(),Z.blotName,!1),j(G(Be.prototype),"replaceWith",this).call(this,ae,_e)}}],[{key:"create",value:function(ae){var _e=j(G(Be),"create",this).call(this,ae);return"string"==typeof ae&&_e.setAttribute("data-language",ae),_e}},{key:"formats",value:function(ae){return ae.getAttribute("data-language")||"plain"}},{key:"register",value:function(){}}]),Be}(v.c),M=function(fe){z(Be,fe);var Te=U(Be);function Be(){return P(this,Be),Te.apply(this,arguments)}return W(Be,[{key:"attach",value:function(){j(G(Be.prototype),"attach",this).call(this),this.forceNext=!1,this.scroll.emitMount(this)}},{key:"format",value:function(ae,_e){ae===X.blotName&&(this.forceNext=!0,this.children.forEach(function(ye){ye.format(ae,_e)}))}},{key:"formatAt",value:function(ae,_e,ye,ne){ye===X.blotName&&(this.forceNext=!0),j(G(Be.prototype),"formatAt",this).call(this,ae,_e,ye,ne)}},{key:"highlight",value:function(ae){var _e=this,ye=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=this.children.head){var ne=Array.from(this.domNode.childNodes).filter(function(re){return re!==_e.uiNode}),ce="".concat(ne.map(function(re){return re.textContent}).join("\n"),"\n"),le=X.formats(this.children.head.domNode);if(ye||this.forceNext||this.cachedText!==ce){if(ce.trim().length>0||null==this.cachedText){var pe=this.children.reduce(function(re,te){return re.concat(Object(s.b)(te,!1))},new I.a),Se=ae(ce,le);pe.diff(Se).reduce(function(re,te){var ie=te.retain,ue=te.attributes;return ie?(ue&&Object.keys(ue).forEach(function(be){-1!==[X.blotName,Z.blotName].indexOf(be)&&_e.formatAt(re,ie,be,ue[be])}),re+ie):re},0)}this.cachedText=ce,this.forceNext=!1}}}},{key:"html",value:function(ae,_e){var ce=S(this.children.find(ae),1)[0],le=ce?X.formats(ce.domNode):"plain";return'<pre data-language="'.concat(le,'">\n').concat(this.code(ae,_e),"\n</pre>")}},{key:"optimize",value:function(ae){if(j(G(Be.prototype),"optimize",this).call(this,ae),null!=this.parent&&null!=this.children.head&&null!=this.uiNode){var _e=X.formats(this.children.head.domNode);_e!==this.uiNode.value&&(this.uiNode.value=_e)}}}]),Be}(v.b);M.allowedChildren=[X],X.requiredContainer=M,X.allowedChildren=[Z,d.a,h.a,l.a];var oe=function(fe){z(Be,fe);var Te=U(Be);function Be(ze,ae){var _e;if(P(this,Be),null==(_e=Te.call(this,ze,ae)).options.hljs)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");return _e.languages=_e.options.languages.reduce(function(ye,ne){return ye[ne.key]=!0,ye},{}),_e.highlightBlot=_e.highlightBlot.bind(Y(_e)),_e.initListener(),_e.initTimer(),_e}return W(Be,[{key:"initListener",value:function(){var ae=this;this.quill.on(a.a.events.SCROLL_BLOT_MOUNT,function(_e){if(_e instanceof M){var ye=ae.quill.root.ownerDocument.createElement("select");ae.options.languages.forEach(function(ne){var ce=ne.key,le=ne.label,pe=ye.ownerDocument.createElement("option");pe.textContent=le,pe.setAttribute("value",ce),ye.appendChild(pe)}),ye.addEventListener("change",function(){_e.format(X.blotName,ye.value),ae.quill.root.focus(),ae.highlight(_e,!0)}),null==_e.uiNode&&(_e.attachUI(ye),_e.children.head&&(ye.value=X.formats(_e.children.head.domNode)))}})}},{key:"initTimer",value:function(){var ae=this,_e=null;this.quill.on(a.a.events.SCROLL_OPTIMIZE,function(){clearTimeout(_e),_e=setTimeout(function(){ae.highlight(),_e=null},ae.options.interval)})}},{key:"highlight",value:function(){var ae=this,_e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,ye=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.quill.selection.composing){this.quill.update(a.a.sources.USER);var ne=this.quill.getSelection();(null==_e?this.quill.scroll.descendants(M):[_e]).forEach(function(le){le.highlight(ae.highlightBlot,ye)}),this.quill.update(a.a.sources.SILENT),null!=ne&&this.quill.setSelection(ne,a.a.sources.SILENT)}}},{key:"highlightBlot",value:function(ae){var _e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"plain";if("plain"===(_e=this.languages[_e]?_e:"plain"))return Object(h.b)(ae).split("\n").reduce(function(ne,ce,le){return 0!==le&&ne.insert("\n",E({},v.c.blotName,_e)),ne.insert(ce)},new I.a);var ye=this.quill.root.ownerDocument.createElement("div");return ye.classList.add(v.c.className),ye.innerHTML=this.options.hljs.highlight(_e,ae).value,Object(x.d)(this.quill.scroll,ye,[function(ne,ce){var le=q.value(ne);return le?ce.compose((new I.a).retain(ce.length(),E({},Z.blotName,le))):ce}],[function(ne,ce){return ne.data.split("\n").reduce(function(le,pe,Se){return 0!==Se&&le.insert("\n",E({},v.c.blotName,_e)),le.insert(pe)},ce)}],new WeakMap)}}],[{key:"register",value:function(){a.a.register(Z,!0),a.a.register(X,!0),a.a.register(M,!0)}}]),Be}(p.a);oe.DEFAULTS={hljs:Object(b.a)()?window.hljs:null,interval:1e3,languages:[{key:"plain",label:"Plain"},{key:"bash",label:"Bash"},{key:"cpp",label:"C++"},{key:"cs",label:"C#"},{key:"css",label:"CSS"},{key:"diff",label:"Diff"},{key:"xml",label:"HTML/XML"},{key:"java",label:"Java"},{key:"javascript",label:"Javascript"},{key:"markdown",label:"Markdown"},{key:"php",label:"PHP"},{key:"python",label:"Python"},{key:"ruby",label:"Ruby"},{key:"sql",label:"SQL"}]}},function(he,u){var o=Math.ceil,c=Math.floor;he.exports=function(I){var C=+I;return C!=C||0===C?0:(C>0?c:o)(C)}},function(he,u,o){var c=o(8),I=o(79),C=c.String;he.exports=function(g){if("Symbol"===I(g))throw TypeError("Cannot convert a Symbol value to a string");return C(g)}},function(he,u,o){var c=o(8),I=o(126),C=o(22),g=o(82),p=o(28)("toStringTag"),s=c.Object,l="Arguments"==g(function(){return arguments}());he.exports=I?g:function(h){var v,x,b;return void 0===h?"Undefined":null===h?"Null":"string"==typeof(x=function(h,v){try{return h[v]}catch{}}(v=s(h),p))?x:l?g(v):"Object"==(b=g(v))&&C(v.callee)?"Arguments":b}},function(he,u,o){var c=o(8),I=o(81),C="__core-js_shared__",g=c[C]||I(C,{});he.exports=g},function(he,u,o){var c=o(8),I=Object.defineProperty;he.exports=function(C,g){try{I(c,C,{value:g,configurable:!0,writable:!0})}catch{c[C]=g}return g}},function(he,u,o){var c=o(20),I=c({}.toString),C=c("".slice);he.exports=function(g){return C(I(g),8,-1)}},function(he,u,o){var c=o(20),I=o(22),C=o(80),g=c(Function.toString);I(C.inspectSource)||(C.inspectSource=function(a){return g(a)}),he.exports=C.inspectSource},function(he,u,o){var c=o(130),I=o(103);he.exports=function(C){var g=c(C,"string");return I(g)?g:g+""}},function(he,u,o){var c=o(86);he.exports=function(I,C){var g=I[C];return null==g?void 0:c(g)}},function(he,u,o){var c=o(8),I=o(22),C=o(104),g=c.TypeError;he.exports=function(a){if(I(a))return a;throw g(C(a)+" is not a function")}},function(he,u,o){var c=o(96),I=o(97),C=c("keys");he.exports=function(g){return C[g]||(C[g]=I(g))}},function(he,u){he.exports={}},function(he,u,o){var c=o(41),I=o(42),C=o(105),g=o(71),a=o(62),p=o(84),s=o(36),l=o(101),d=Object.getOwnPropertyDescriptor;u.f=c?d:function(v,x){if(v=a(v),x=p(x),l)try{return d(v,x)}catch{}if(s(v,x))return g(!I(C.f,v,x),v[x])}},function(he,u,o){var c=o(8),I=o(22),C=o(36),g=o(70),a=o(81),p=o(83),s=o(100),l=o(106).CONFIGURABLE,d=s.get,h=s.enforce,v=String(String).split("String");(he.exports=function(x,b,y,E){var k,S=!!E&&!!E.unsafe,O=!!E&&!!E.enumerable,w=!!E&&!!E.noTargetGet,T=E&&void 0!==E.name?E.name:b;I(y)&&("Symbol("===String(T).slice(0,7)&&(T="["+String(T).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!C(y,"name")||l&&y.name!==T)&&g(y,"name",T),(k=h(y)).source||(k.source=v.join("string"==typeof T?T:""))),x!==c?(S?!w&&x[b]&&(O=!0):delete x[b],O?x[b]=y:g(x,b,y)):O?x[b]=y:a(b,y)})(Function.prototype,"toString",function(){return I(this)&&d(this).source||p(this)})},function(he,u,o){var c=o(109);he.exports=function(I){return c(I.length)}},function(he,u){he.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(he,u,o){var O,c=o(40),I=o(142),C=o(92),g=o(88),a=o(143),p=o(102),s=o(87),h="prototype",v="script",x=s("IE_PROTO"),b=function(){},y=function(T){return"<"+v+">"+T+"</"+v+">"},E=function(T){T.write(y("")),T.close();var k=T.parentWindow.Object;return T=null,k},w=function(){try{O=new ActiveXObject("htmlfile")}catch{}w=typeof document<"u"?document.domain&&O?E(O):function(){var R,T=p("iframe"),k="java"+v+":";return T.style.display="none",a.appendChild(T),T.src=String(k),(R=T.contentWindow.document).open(),R.write(y("document.F=Object")),R.close(),R.F}():E(O);for(var T=C.length;T--;)delete w[h][C[T]];return w()};g[x]=!0,he.exports=Object.create||function(k,R){var P;return null!==k?(b[h]=c(k),P=new b,b[h]=null,P[x]=k):P=w(),void 0===R?P:I(P,R)}},function(he,u,o){"use strict";var c=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(u,"__esModule",{value:!0});var C,g,I=c(o(120));(g=C||(C={})).iterator=function a(s){return new I.default(s)},g.length=function p(s){return"number"==typeof s.delete?s.delete:"number"==typeof s.retain?s.retain:"string"==typeof s.insert?s.insert.length:1},u.default=C},function(he,u){"use strict";var o=Object.prototype.hasOwnProperty,c="~";function I(){}function C(s,l,d){this.fn=s,this.context=l,this.once=d||!1}function g(s,l,d,h,v){if("function"!=typeof d)throw new TypeError("The listener must be a function");var x=new C(d,h||s,v),b=c?c+l:l;return s._events[b]?s._events[b].fn?s._events[b]=[s._events[b],x]:s._events[b].push(x):(s._events[b]=x,s._eventsCount++),s}function a(s,l){0==--s._eventsCount?s._events=new I:delete s._events[l]}function p(){this._events=new I,this._eventsCount=0}Object.create&&(I.prototype=Object.create(null),(new I).__proto__||(c=!1)),p.prototype.eventNames=function(){var d,h,l=[];if(0===this._eventsCount)return l;for(h in d=this._events)o.call(d,h)&&l.push(c?h.slice(1):h);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(d)):l},p.prototype.listeners=function(l){var h=this._events[c?c+l:l];if(!h)return[];if(h.fn)return[h.fn];for(var v=0,x=h.length,b=new Array(x);v<x;v++)b[v]=h[v].fn;return b},p.prototype.listenerCount=function(l){var h=this._events[c?c+l:l];return h?h.fn?1:h.length:0},p.prototype.emit=function(l,d,h,v,x,b){var y=c?c+l:l;if(!this._events[y])return!1;var O,w,E=this._events[y],S=arguments.length;if(E.fn){switch(E.once&&this.removeListener(l,E.fn,void 0,!0),S){case 1:return E.fn.call(E.context),!0;case 2:return E.fn.call(E.context,d),!0;case 3:return E.fn.call(E.context,d,h),!0;case 4:return E.fn.call(E.context,d,h,v),!0;case 5:return E.fn.call(E.context,d,h,v,x),!0;case 6:return E.fn.call(E.context,d,h,v,x,b),!0}for(w=1,O=new Array(S-1);w<S;w++)O[w-1]=arguments[w];E.fn.apply(E.context,O)}else{var k,T=E.length;for(w=0;w<T;w++)switch(E[w].once&&this.removeListener(l,E[w].fn,void 0,!0),S){case 1:E[w].fn.call(E[w].context);break;case 2:E[w].fn.call(E[w].context,d);break;case 3:E[w].fn.call(E[w].context,d,h);break;case 4:E[w].fn.call(E[w].context,d,h,v);break;default:if(!O)for(k=1,O=new Array(S-1);k<S;k++)O[k-1]=arguments[k];E[w].fn.apply(E[w].context,O)}}return!0},p.prototype.on=function(l,d,h){return g(this,l,d,h,!1)},p.prototype.once=function(l,d,h){return g(this,l,d,h,!0)},p.prototype.removeListener=function(l,d,h,v){var x=c?c+l:l;if(!this._events[x])return this;if(!d)return a(this,x),this;var b=this._events[x];if(b.fn)b.fn===d&&(!v||b.once)&&(!h||b.context===h)&&a(this,x);else{for(var y=0,E=[],S=b.length;y<S;y++)(b[y].fn!==d||v&&!b[y].once||h&&b[y].context!==h)&&E.push(b[y]);E.length?this._events[x]=1===E.length?E[0]:E:a(this,x)}return this},p.prototype.removeAllListeners=function(l){var d;return l?this._events[d=c?c+l:l]&&a(this,d):(this._events=new I,this._eventsCount=0),this},p.prototype.off=p.prototype.removeListener,p.prototype.addListener=p.prototype.on,p.prefixed=c,p.EventEmitter=p,typeof he<"u"&&(he.exports=p)},function(he,u,o){var c=o(67),I=o(80);(he.exports=function(C,g){return I[C]||(I[C]=void 0!==g?g:{})})("versions",[]).push({version:"3.19.1",mode:c?"pure":"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})},function(he,u,o){var c=o(20),I=0,C=Math.random(),g=c(1..toString);he.exports=function(a){return"Symbol("+(void 0===a?"":a)+")_"+g(++I+C,36)}},function(he,u,o){var c=o(127),I=o(39);he.exports=!!Object.getOwnPropertySymbols&&!I(function(){var C=Symbol();return!String(C)||!(Object(C)instanceof Symbol)||!Symbol.sham&&c&&c<41})},function(he,u,o){var c=o(98);he.exports=c&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(he,u,o){var b,y,E,c=o(129),I=o(8),C=o(20),g=o(51),a=o(70),p=o(36),s=o(80),l=o(87),d=o(88),h="Object already initialized",v=I.TypeError;if(c||s.state){var w=s.state||(s.state=new(0,I.WeakMap)),T=C(w.get),k=C(w.has),R=C(w.set);b=function(B,W){if(k(w,B))throw new v(h);return W.facade=B,R(w,B,W),W},y=function(B){return T(w,B)||{}},E=function(B){return k(w,B)}}else{var P=l("state");d[P]=!0,b=function(B,W){if(p(B,P))throw new v(h);return W.facade=B,a(B,P,W),W},y=function(B){return p(B,P)?B[P]:{}},E=function(B){return p(B,P)}}he.exports={set:b,get:y,has:E,enforce:function(B){return E(B)?y(B):b(B,{})},getterFor:function(B){return function(W){var z;if(!g(W)||(z=y(W)).type!==B)throw v("Incompatible receiver, "+B+" required");return z}}}},function(he,u,o){var c=o(41),I=o(39),C=o(102);he.exports=!c&&!I(function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})},function(he,u,o){var c=o(8),I=o(51),C=c.document,g=I(C)&&I(C.createElement);he.exports=function(a){return g?C.createElement(a):{}}},function(he,u,o){var c=o(8),I=o(60),C=o(22),g=o(131),a=o(99),p=c.Object;he.exports=a?function(s){return"symbol"==typeof s}:function(s){var l=I("Symbol");return C(l)&&g(l.prototype,p(s))}},function(he,u,o){var I=o(8).String;he.exports=function(C){try{return I(C)}catch{return"Object"}}},function(he,u,o){"use strict";var c={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,C=I&&!c.call({1:2},1);u.f=C?function(a){var p=I(this,a);return!!p&&p.enumerable}:c},function(he,u,o){var c=o(41),I=o(36),C=Function.prototype,g=c&&Object.getOwnPropertyDescriptor,a=I(C,"name"),p=a&&"something"===function(){}.name,s=a&&(!c||c&&g(C,"name").configurable);he.exports={EXISTS:a,PROPER:p,CONFIGURABLE:s}},function(he,u,o){var c=o(20),I=o(36),C=o(62),g=o(138).indexOf,a=o(88),p=c([].push);he.exports=function(s,l){var x,d=C(s),h=0,v=[];for(x in d)!I(a,x)&&I(d,x)&&p(v,x);for(;l.length>h;)I(d,x=l[h++])&&(~g(v,x)||p(v,x));return v}},function(he,u,o){var c=o(77),I=Math.max,C=Math.min;he.exports=function(g,a){var p=c(g);return p<0?I(p+a,0):C(p,a)}},function(he,u,o){var c=o(77),I=Math.min;he.exports=function(C){return C>0?I(c(C),9007199254740991):0}},function(he,u,o){"use strict";var h,v,x,c=o(39),I=o(22),C=o(93),g=o(112),a=o(90),p=o(28),s=o(67),l=p("iterator"),d=!1;[].keys&&("next"in(x=[].keys())?(v=g(g(x)))!==Object.prototype&&(h=v):d=!0),null==h||c(function(){var y={};return h[l].call(y)!==y})?h={}:s&&(h=C(h)),I(h[l])||a(h,l,function(){return this}),he.exports={IteratorPrototype:h,BUGGY_SAFARI_ITERATORS:d}},function(he,u,o){var c=o(107),I=o(92);he.exports=Object.keys||function(g){return c(g,I)}},function(he,u,o){var c=o(8),I=o(36),C=o(22),g=o(68),a=o(87),p=o(144),s=a("IE_PROTO"),l=c.Object,d=l.prototype;he.exports=p?l.getPrototypeOf:function(h){var v=g(h);if(I(v,s))return v[s];var x=v.constructor;return C(x)&&v instanceof x?x.prototype:v instanceof l?d:null}},function(he,u,o){var c=o(52).f,I=o(36),g=o(28)("toStringTag");he.exports=function(a,p,s){a&&!I(a=s?a:a.prototype,g)&&c(a,g,{configurable:!0,value:p})}},function(he,u,o){var c=o(79),I=o(85),C=o(72),a=o(28)("iterator");he.exports=function(p){if(null!=p)return I(p,a)||I(p,"@@iterator")||C[c(p)]}},function(he,u,o){var c=o(8);he.exports=c},function(he,u,o){var c=o(8),I=o(20);he.exports=function(C,g){return I(c[C].prototype[g])}},function(he,u,o){"use strict";o.r(u),o(121),o(157),o(163),o(168);var a=o(25),p=o(38),s=o(35),l=o(2);function d(We){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function h(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function v(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function b(We,Qe,rt){return(b=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pn,Gn,Jn){var Pi=function y(We,Qe){for(;!Object.prototype.hasOwnProperty.call(We,Qe)&&null!==(We=R(We)););return We}(pn,Gn);if(Pi){var yi=Object.getOwnPropertyDescriptor(Pi,Gn);return yi.get?yi.get.call(Jn):yi.value}})(We,Qe,rt||We)}function E(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&S(We,Qe)}function S(We,Qe){return(S=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function O(We){var Qe=function k(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=R(We);if(Qe){var Gn=R(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return w(this,pn)}}function w(We,Qe){if(Qe&&("object"===d(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function T(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function R(We){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var P=function(We){E(rt,We);var Qe=O(rt);function rt(){return h(this,rt),Qe.apply(this,arguments)}return function x(We,Qe,rt){return Qe&&v(We.prototype,Qe),rt&&v(We,rt),We}(rt,[{key:"add",value:function(pn,Gn){if("+1"===Gn||"-1"===Gn){var Jn=this.value(pn)||0;Gn="+1"===Gn?Jn+1:Jn-1}return 0===Gn?(this.remove(pn),!0):b(R(rt.prototype),"add",this).call(this,pn,Gn)}},{key:"canAdd",value:function(pn,Gn){return b(R(rt.prototype),"canAdd",this).call(this,pn,Gn)||b(R(rt.prototype),"canAdd",this).call(this,pn,parseInt(Gn,10))}},{key:"value",value:function(pn){return parseInt(b(R(rt.prototype),"value",this).call(this,pn),10)||void 0}}]),rt}(l.ClassAttributor),W=new P("indent","ql-indent",{scope:l.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]}),z=o(6);function V(We){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function U(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function K(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&Y(We,Qe)}function Y(We,Qe){return(Y=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function J(We){var Qe=function G(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=q(We);if(Qe){var Gn=q(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return j(this,pn)}}function j(We,Qe){if(Qe&&("object"===V(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function ee(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function q(We){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var Z=function(We){K(rt,We);var Qe=J(rt);function rt(){return U(this,rt),Qe.apply(this,arguments)}return rt}(z.d);Z.blotName="blockquote",Z.tagName="blockquote";var X=Z;function M(We){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function oe(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function fe(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function Be(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&ze(We,Qe)}function ze(We,Qe){return(ze=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function ae(We){var Qe=function ne(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=ce(We);if(Qe){var Gn=ce(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return _e(this,pn)}}function _e(We,Qe){if(Qe&&("object"===M(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function ye(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function ce(We){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var le=function(We){Be(rt,We);var Qe=ae(rt);function rt(){return oe(this,rt),Qe.apply(this,arguments)}return function Te(We,Qe,rt){return Qe&&fe(We.prototype,Qe),rt&&fe(We,rt),We}(rt,null,[{key:"formats",value:function(pn){return this.tagName.indexOf(pn.tagName)+1}}]),rt}(z.d);le.blotName="header",le.tagName=["H1","H2","H3","H4","H5","H6"];var pe=le,Se=o(13),re=o(0);function te(We){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function ie(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function be(We,Qe,rt){return(be=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pn,Gn,Jn){var Pi=function Ae(We,Qe){for(;!Object.prototype.hasOwnProperty.call(We,Qe)&&null!==(We=$e(We)););return We}(pn,Gn);if(Pi){var yi=Object.getOwnPropertyDescriptor(Pi,Gn);return yi.get?yi.get.call(Jn):yi.value}})(We,Qe,rt||We)}function Ne(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function mt(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&tt(We,Qe)}function tt(We,Qe){return(tt=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function Le(We){var Qe=function Pe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=$e(We);if(Qe){var Gn=$e(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return gt(this,pn)}}function gt(We,Qe){if(Qe&&("object"===te(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function tn(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function $e(We){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var ge=function(We){mt(rt,We);var Qe=Le(rt);function rt(){return Ne(this,rt),Qe.apply(this,arguments)}return rt}(Se.a);ge.blotName="list-container",ge.tagName="OL";var Ce=function(We){mt(rt,We);var Qe=Le(rt);function rt($t,pn){var Gn;Ne(this,rt),Gn=Qe.call(this,$t,pn);var Jn=pn.ownerDocument.createElement("span"),Pi=function(Ei){if($t.isEnabled()){var bi=Gn.statics.formats(pn,$t);"checked"===bi?(Gn.format("list","unchecked"),Ei.preventDefault()):"unchecked"===bi&&(Gn.format("list","checked"),Ei.preventDefault())}};return Jn.addEventListener("mousedown",Pi),Jn.addEventListener("touchstart",Pi),Gn.attachUI(Jn),Gn}return function ue(We,Qe,rt){return Qe&&ie(We.prototype,Qe),rt&&ie(We,rt),We}(rt,[{key:"format",value:function(pn,Gn){pn===this.statics.blotName&&Gn?this.domNode.setAttribute("data-list",Gn):be($e(rt.prototype),"format",this).call(this,pn,Gn)}}],[{key:"create",value:function(pn){var Gn=be($e(rt),"create",this).call(this);return Gn.setAttribute("data-list",pn),Gn}},{key:"formats",value:function(pn){return pn.getAttribute("data-list")||void 0}},{key:"register",value:function(){re.a.register(ge)}}]),rt}(z.d);Ce.blotName="list",Ce.tagName="LI",ge.allowedChildren=[Ce],Ce.requiredContainer=ge;var De=o(45),Ye=o(34),bt=o(46),yt=o(47),kt=o(49);function gn(We){return(gn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function ut(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function Ve(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&St(We,Qe)}function St(We,Qe){return(St=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function Xe(We){var Qe=function dt(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=vt(We);if(Qe){var Gn=vt(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return Vt(this,pn)}}function Vt(We,Qe){if(Qe&&("object"===gn(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function lt(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function vt(We){return(vt=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var Lt=function(We){Ve(rt,We);var Qe=Xe(rt);function rt(){return ut(this,rt),Qe.apply(this,arguments)}return rt}(kt.a);Lt.blotName="italic",Lt.tagName=["EM","I"];var bn=Lt,mn=o(43),xn=o(14);function Xn(We){return(Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function li(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function ki(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function Oi(We,Qe,rt){return(Oi=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pn,Gn,Jn){var Pi=function Hn(We,Qe){for(;!Object.prototype.hasOwnProperty.call(We,Qe)&&null!==(We=Qn(We)););return We}(pn,Gn);if(Pi){var yi=Object.getOwnPropertyDescriptor(Pi,Gn);return yi.get?yi.get.call(Jn):yi.value}})(We,Qe,rt||We)}function En(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&Mn(We,Qe)}function Mn(We,Qe){return(Mn=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function ei(We){var Qe=function Sn(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=Qn(We);if(Qe){var Gn=Qn(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return Wn(this,pn)}}function Wn(We,Qe){if(Qe&&("object"===Xn(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function Ji(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Qn(We){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var ti=function(We){En(rt,We);var Qe=ei(rt);function rt(){return li(this,rt),Qe.apply(this,arguments)}return function Vn(We,Qe,rt){return Qe&&ki(We.prototype,Qe),rt&&ki(We,rt),We}(rt,null,[{key:"create",value:function(pn){return"super"===pn?document.createElement("sup"):"sub"===pn?document.createElement("sub"):Oi(Qn(rt),"create",this).call(this,pn)}},{key:"formats",value:function(pn){return"SUB"===pn.tagName?"sub":"SUP"===pn.tagName?"super":void 0}}]),rt}(xn.a);ti.blotName="script",ti.tagName=["SUB","SUP"];var ci=ti;function Wi(We){return(Wi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function qi(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function nr(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&xr(We,Qe)}function xr(We,Qe){return(xr=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function vn(We){var Qe=function Si(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=Yi(We);if(Qe){var Gn=Yi(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return Pn(this,pn)}}function Pn(We,Qe){if(Qe&&("object"===Wi(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function hi(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Yi(We){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var dr=function(We){nr(rt,We);var Qe=vn(rt);function rt(){return qi(this,rt),Qe.apply(this,arguments)}return rt}(kt.a);dr.blotName="strike",dr.tagName=["S","STRIKE"];var kr=dr;function Nr(We){return(Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function Gr(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function Qr(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&Sr(We,Qe)}function Sr(We,Qe){return(Sr=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function Wr(We){var Qe=function mo(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=Mr(We);if(Qe){var Gn=Mr(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return Ur(this,pn)}}function Ur(We,Qe){if(Qe&&("object"===Nr(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function Rr(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Mr(We){return(Mr=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var po=function(We){Qr(rt,We);var Qe=Wr(rt);function rt(){return Gr(this,rt),Qe.apply(this,arguments)}return rt}(xn.a);po.blotName="underline",po.tagName="U";var mi=po,ar=o(56),Xr=o(15);function lo(We){return(lo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function _o(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function bo(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function en(We,Qe,rt){return(en=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pn,Gn,Jn){var Pi=function jn(We,Qe){for(;!Object.prototype.hasOwnProperty.call(We,Qe)&&null!==(We=Li(We)););return We}(pn,Gn);if(Pi){var yi=Object.getOwnPropertyDescriptor(Pi,Gn);return yi.get?yi.get.call(Jn):yi.value}})(We,Qe,rt||We)}function vi(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&_i(We,Qe)}function _i(We,Qe){return(_i=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function dn(We){var Qe=function fi(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=Li(We);if(Qe){var Gn=Li(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return Tn(this,pn)}}function Tn(We,Qe){if(Qe&&("object"===lo(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function Zn(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Li(We){return(Li=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var sr=function(We){vi(rt,We);var Qe=dn(rt);function rt(){return _o(this,rt),Qe.apply(this,arguments)}return function It(We,Qe,rt){return Qe&&bo(We.prototype,Qe),rt&&bo(We,rt),We}(rt,[{key:"html",value:function(){var pn=this.value();return"<span>".concat(pn.formula,"</span>")}}],[{key:"create",value:function(pn){var Gn=null;if(Object(Xr.a)()&&(Gn=window.katex),null==Gn)throw new Error("Formula module requires KaTeX.");var Jn=en(Li(rt),"create",this).call(this,pn);return"string"==typeof pn&&(Gn.render(pn,Jn,{throwOnError:!1,errorColor:"#f00"}),Jn.setAttribute("data-value",pn)),Jn}},{key:"value",value:function(pn){return pn.getAttribute("data-value")}}]),rt}(ar.a);sr.blotName="formula",sr.className="ql-formula",sr.tagName="SPAN";var gr=sr;function Qt(We){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function _n(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function Ze(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function ft(We,Qe,rt){return(ft=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pn,Gn,Jn){var Pi=function zt(We,Qe){for(;!Object.prototype.hasOwnProperty.call(We,Qe)&&null!==(We=hn(We)););return We}(pn,Gn);if(Pi){var yi=Object.getOwnPropertyDescriptor(Pi,Gn);return yi.get?yi.get.call(Jn):yi.value}})(We,Qe,rt||We)}function wt(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&Xt(We,Qe)}function Xt(We,Qe){return(Xt=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function fn(We){var Qe=function on(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=hn(We);if(Qe){var Gn=hn(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return Ke(this,pn)}}function Ke(We,Qe){if(Qe&&("object"===Qt(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function ht(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function hn(We){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var an=["alt","height","width"],Nn=function(We){wt(rt,We);var Qe=fn(rt);function rt(){return _n(this,rt),Qe.apply(this,arguments)}return function Ct(We,Qe,rt){return Qe&&Ze(We.prototype,Qe),rt&&Ze(We,rt),We}(rt,[{key:"format",value:function(pn,Gn){an.indexOf(pn)>-1?Gn?this.domNode.setAttribute(pn,Gn):this.domNode.removeAttribute(pn):ft(hn(rt.prototype),"format",this).call(this,pn,Gn)}}],[{key:"create",value:function(pn){var Gn=ft(hn(rt),"create",this).call(this,pn);return"string"==typeof pn&&Gn.setAttribute("src",this.sanitize(pn)),Gn}},{key:"formats",value:function(pn){return an.reduce(function(Gn,Jn){return pn.hasAttribute(Jn)&&(Gn[Jn]=pn.getAttribute(Jn)),Gn},{})}},{key:"match",value:function(pn){return/\.(jpe?g|gif|png)$/.test(pn)||/^data:image\/.+;base64/.test(pn)}},{key:"register",value:function(){Object(Xr.a)()&&/Firefox/i.test(navigator.userAgent)&&setTimeout(function(){document.execCommand("enableObjectResizing",!1,!1)},1)}},{key:"sanitize",value:function(pn){return Object(mn.b)(pn,["http","https","data"])?pn:"//:0"}},{key:"value",value:function(pn){return pn.getAttribute("src")}}]),rt}(l.EmbedBlot);Nn.blotName="image",Nn.tagName="IMG";var $n=Nn;function ot(We){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function Bt(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function nn(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function nt(We,Qe,rt){return(nt=typeof Reflect<"u"&&Reflect.get?Reflect.get:function(pn,Gn,Jn){var Pi=function Rt(We,Qe){for(;!Object.prototype.hasOwnProperty.call(We,Qe)&&null!==(We=Ui(We)););return We}(pn,Gn);if(Pi){var yi=Object.getOwnPropertyDescriptor(Pi,Gn);return yi.get?yi.get.call(Jn):yi.value}})(We,Qe,rt||We)}function pt(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&jt(We,Qe)}function jt(We,Qe){return(jt=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function Un(We){var Qe=function Ai(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=Ui(We);if(Qe){var Gn=Ui(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return oi(this,pn)}}function oi(We,Qe){if(Qe&&("object"===ot(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function xi(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function Ui(We){return(Ui=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var ji=["height","width"],Qi=function(We){pt(rt,We);var Qe=Un(rt);function rt(){return Bt(this,rt),Qe.apply(this,arguments)}return function On(We,Qe,rt){return Qe&&nn(We.prototype,Qe),rt&&nn(We,rt),We}(rt,[{key:"format",value:function(pn,Gn){ji.indexOf(pn)>-1?Gn?this.domNode.setAttribute(pn,Gn):this.domNode.removeAttribute(pn):nt(Ui(rt.prototype),"format",this).call(this,pn,Gn)}},{key:"html",value:function(){var Gn=this.value().video;return'<a href="'.concat(Gn,'">').concat(Gn,"</a>")}}],[{key:"create",value:function(pn){var Gn=nt(Ui(rt),"create",this).call(this,pn);return Gn.setAttribute("frameborder","0"),Gn.setAttribute("allowfullscreen",!0),Gn.setAttribute("src",this.sanitize(pn)),Gn}},{key:"formats",value:function(pn){return ji.reduce(function(Gn,Jn){return pn.hasAttribute(Jn)&&(Gn[Jn]=pn.getAttribute(Jn)),Gn},{})}},{key:"sanitize",value:function(pn){return mn.a.sanitize(pn)}},{key:"value",value:function(pn){return pn.getAttribute("src")}}]),rt}(z.a);Qi.blotName="video",Qi.className="ql-video",Qi.tagName="IFRAME";var Tr=Qi,br=o(17),oo=o(76),ro=o(65),No=o(1),uo=o.n(No);function $o(We){return($o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function pa(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}function ra(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function Uo(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&Ao(We,Qe)}function Ao(We,Qe){return(Ao=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function Da(We){var Qe=function ga(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=$a(We);if(Qe){var Gn=$a(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return io(this,pn)}}function io(We,Qe){if(Qe&&("object"===$o(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return function jo(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}(We)}function $a(We){return($a=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}var oa=function(We){Uo(rt,We);var Qe=Da(rt);function rt(){return pa(this,rt),Qe.apply(this,arguments)}return function wo(We,Qe,rt){return Qe&&ra(We.prototype,Qe),rt&&ra(We,rt),We}(rt,[{key:"length",value:function(){return 1}},{key:"value",value:function(){return"\n"}},{key:"optimize",value:function(){!this.prev&&!this.next&&this.remove()}}],[{key:"value",value:function(){return"\n"}}]),rt}(l.EmbedBlot);oa.blotName="multilineBreak",oa.tagName="BR";var ds=oa;function fa(We){return(fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(rt){return typeof rt}:function(rt){return rt&&"function"==typeof Symbol&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt})(We)}function Ba(We,Qe){for(var rt=0;rt<Qe.length;rt++){var $t=Qe[rt];$t.enumerable=$t.enumerable||!1,$t.configurable=!0,"value"in $t&&($t.writable=!0),Object.defineProperty(We,$t.key,$t)}}function aa(We,Qe){if("function"!=typeof Qe&&null!==Qe)throw new TypeError("Super expression must either be null or a function");We.prototype=Object.create(Qe&&Qe.prototype,{constructor:{value:We,writable:!0,configurable:!0}}),Qe&&Ma(We,Qe)}function Ma(We,Qe){return(Ma=Object.setPrototypeOf||function($t,pn){return $t.__proto__=pn,$t})(We,Qe)}function xa(We){var Qe=function Aa(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var pn,$t=ba(We);if(Qe){var Gn=ba(this).constructor;pn=Reflect.construct($t,arguments,Gn)}else pn=$t.apply(this,arguments);return ma(this,pn)}}function ma(We,Qe){if(Qe&&("object"===fa(Qe)||"function"==typeof Qe))return Qe;if(void 0!==Qe)throw new TypeError("Derived constructors may only return object or undefined");return Qo(We)}function Qo(We){if(void 0===We)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return We}function ba(We){return(ba=Object.setPrototypeOf?Object.getPrototypeOf:function(rt){return rt.__proto__||Object.getPrototypeOf(rt)})(We)}function wa(We){return We.nextSibling||We.previousSibling?(new uo.a).insert({multilineBreak:""}):(new uo.a).insert("\n")}var Jt=function(We){aa(rt,We);var Qe=xa(rt);function rt($t,pn){var Gn;!function qo(We,Qe){if(!(We instanceof Qe))throw new TypeError("Cannot call a class as a function")}(this,rt);return Gn=Qe.call(this,$t,pn),re.a.register(function Ia(We,Qe,rt){return Qe in We?Object.defineProperty(We,Qe,{value:rt,enumerable:!0,configurable:!0,writable:!0}):We[Qe]=rt,We}({},"blots/multilineBreak",ds),!0),$t.keyboard.addBinding({key:"enter",shiftKey:!0},Gn.enterHandler.bind(Qo(Gn))),$t.keyboard.bindings.enter.unshift($t.keyboard.bindings.enter.pop()),$t.clipboard.addMatcher("BR",wa),Gn}return function Jo(We,Qe,rt){return Qe&&Ba(We.prototype,Qe),rt&&Ba(We,rt),We}(rt,[{key:"enterHandler",value:function(pn){var Gn=this.quill.getLeaf(pn.index)[0],Jn=this.quill.getLeaf(pn.index+1)[0];this.quill.insertEmbed(pn.index,"multilineBreak",!0,"user"),(null===Jn||Gn.parent!==Jn.parent)&&this.quill.insertEmbed(pn.index,"multilineBreak",!0,"user"),this.quill.setSelection(pn.index+1,re.a.sources.SILENT)}}]),rt}(o(12).a),Ut=o(75),At=o(21),An=o(11);function Ni(We,Qe){var rt=Object.keys(We);if(Object.getOwnPropertySymbols){var $t=Object.getOwnPropertySymbols(We);Qe&&($t=$t.filter(function(pn){return Object.getOwnPropertyDescriptor(We,pn).enumerable})),rt.push.apply(rt,$t)}return rt}function jr(We){for(var Qe=1;Qe<arguments.length;Qe++){var rt=null!=arguments[Qe]?arguments[Qe]:{};Qe%2?Ni(Object(rt),!0).forEach(function($t){Eo(We,$t,rt[$t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(We,Object.getOwnPropertyDescriptors(rt)):Ni(Object(rt)).forEach(function($t){Object.defineProperty(We,$t,Object.getOwnPropertyDescriptor(rt,$t))})}return We}function Eo(We,Qe,rt){return Qe in We?Object.defineProperty(We,Qe,{value:rt,enumerable:!0,configurable:!0,writable:!0}):We[Qe]=rt,We}function _t(We,Qe){return Qe.reduce(function(rt,$t){return rt["".concat(We).concat($t.attrName)]=$t,rt},{})}a.default.register(jr(jr(jr(jr({"attributors/attribute/direction":s.a},_t("attributors/attribute/",An.b)),_t("attributors/attribute/",At.c)),{},{"attributors/class/align":p.b,"attributors/class/background":De.a,"attributors/class/color":Ye.b,"attributors/class/direction":s.b,"attributors/class/font":bt.a,"attributors/class/size":yt.a,"attributors/style/align":p.c,"attributors/style/background":De.b,"attributors/style/color":Ye.c,"attributors/style/direction":s.c,"attributors/style/font":bt.b,"attributors/style/size":yt.b},_t("attributors/style/",An.d)),_t("attributors/style/",At.d)),!0),a.default.register({"formats/align":p.b,"formats/direction":s.b,"formats/indent":W,"formats/background":De.b,"formats/color":Ye.c,"formats/font":bt.a,"formats/size":yt.a,"formats/blockquote":X,"formats/code-block":br.c,"formats/header":pe,"formats/list":Ce,"formats/bold":kt.a,"formats/code":br.a,"formats/italic":bn,"formats/link":mn.a,"formats/script":ci,"formats/strike":kr,"formats/underline":mi,"formats/formula":gr,"formats/image":$n,"formats/video":Tr,"tableModules/lite":Ut.a,"tableModules/main":ro.a,"modules/syntax":oo.b,"modules/multiline":Jt,"modules/table":ro.a},!0),u.default=a.default},function(he,u){var o=-1;function C(T,k,R,P){if(T===k)return T?[[0,T]]:[];if(null!=R){var B=function O(T,k,R){var P="number"==typeof R?{index:R,length:0}:R.oldRange,B="number"==typeof R?null:R.newRange,W=T.length,z=k.length;if(0===P.length&&(null===B||0===B.length)){var V=P.index,U=T.slice(0,V),K=T.slice(V),Y=B?B.index:null,J=V+z-W;if(!(null!==Y&&Y!==J||J<0||J>z)){var j=k.slice(0,J);if((ee=k.slice(J))===K){var G=Math.min(V,J);if((q=U.slice(0,G))===(Z=j.slice(0,G)))return S(q,U.slice(G),j.slice(G),K)}}if(null===Y||Y===V){var oe=V,ee=(j=k.slice(0,oe),k.slice(oe));if(j===U){var fe=Math.min(W-oe,z-oe);if((Te=K.slice(K.length-fe))===(Be=ee.slice(ee.length-fe)))return S(U,K.slice(0,K.length-fe),ee.slice(0,ee.length-fe),Te)}}}if(P.length>0&&B&&0===B.length){var q=T.slice(0,P.index),Te=T.slice(P.index+P.length);if(!(z<(G=q.length)+(fe=Te.length))){var Z=k.slice(0,G),Be=k.slice(z-fe);if(q===Z&&Te===Be)return S(q,T.slice(G,W-fe),k.slice(G,z-fe),Te)}}return null}(T,k,R);if(B)return B}var W=s(T,k),z=T.substring(0,W);W=l(T=T.substring(W),k=k.substring(W));var V=T.substring(T.length-W),U=function g(T,k){var R;if(!T)return[[1,k]];if(!k)return[[o,T]];var P=T.length>k.length?T:k,B=T.length>k.length?k:T,W=P.indexOf(B);if(-1!==W)return R=[[1,P.substring(0,W)],[0,B],[1,P.substring(W+B.length)]],T.length>k.length&&(R[0][0]=R[2][0]=o),R;if(1===B.length)return[[o,T],[1,k]];var z=function d(T,k){var R=T.length>k.length?T:k,P=T.length>k.length?k:T;if(R.length<4||2*P.length<R.length)return null;function B(ee,G,q){for(var oe,fe,Te,Be,Z=ee.substring(q,q+Math.floor(ee.length/4)),X=-1,M="";-1!==(X=G.indexOf(Z,X+1));){var ze=s(ee.substring(q),G.substring(X)),ae=l(ee.substring(0,q),G.substring(0,X));M.length<ae+ze&&(M=G.substring(X-ae,X)+G.substring(X,X+ze),oe=ee.substring(0,q-ae),fe=ee.substring(q+ze),Te=G.substring(0,X-ae),Be=G.substring(X+ze))}return 2*M.length>=ee.length?[oe,fe,Te,Be,M]:null}var V,U,K,Y,J,W=B(R,P,Math.ceil(R.length/4)),z=B(R,P,Math.ceil(R.length/2));return W||z?(V=z?W&&W[4].length>z[4].length?W:z:W,T.length>k.length?(U=V[0],K=V[1],Y=V[2],J=V[3]):(Y=V[0],J=V[1],U=V[2],K=V[3]),[U,K,Y,J,V[4]]):null}(T,k);if(z){var U=z[1],Y=z[3],J=z[4],j=C(z[0],z[2]),ee=C(U,Y);return j.concat([[0,J]],ee)}return function a(T,k){for(var R=T.length,P=k.length,B=Math.ceil((R+P)/2),W=B,z=2*B,V=new Array(z),U=new Array(z),K=0;K<z;K++)V[K]=-1,U[K]=-1;V[W+1]=0,U[W+1]=0;for(var Y=R-P,J=Y%2!=0,j=0,ee=0,G=0,q=0,Z=0;Z<B;Z++){for(var X=-Z+j;X<=Z-ee;X+=2){for(var M=W+X,fe=(oe=X===-Z||X!==Z&&V[M-1]<V[M+1]?V[M+1]:V[M-1]+1)-X;oe<R&&fe<P&&T.charAt(oe)===k.charAt(fe);)oe++,fe++;if(V[M]=oe,oe>R)ee+=2;else if(fe>P)j+=2;else if(J&&(Te=W+Y-X)>=0&&Te<z&&-1!==U[Te]&&oe>=(Be=R-U[Te]))return p(T,k,oe,fe)}for(var ze=-Z+G;ze<=Z-q;ze+=2){for(var Be,Te=W+ze,ae=(Be=ze===-Z||ze!==Z&&U[Te-1]<U[Te+1]?U[Te+1]:U[Te-1]+1)-ze;Be<R&&ae<P&&T.charAt(R-Be-1)===k.charAt(P-ae-1);)Be++,ae++;if(U[Te]=Be,Be>R)q+=2;else if(ae>P)G+=2;else if(!J){var oe;if((M=W+Y-ze)>=0&&M<z&&-1!==V[M]&&(fe=W+(oe=V[M])-M,oe>=(Be=R-Be)))return p(T,k,oe,fe)}}}return[[o,T],[1,k]]}(T,k)}(T=T.substring(0,T.length-W),k=k.substring(0,k.length-W));return z&&U.unshift([0,z]),V&&U.push([0,V]),h(U,P),U}function p(T,k,R,P){var B=T.substring(0,R),W=k.substring(0,P),z=T.substring(R),V=k.substring(P),U=C(B,W),K=C(z,V);return U.concat(K)}function s(T,k){if(!T||!k||T.charAt(0)!==k.charAt(0))return 0;for(var R=0,P=Math.min(T.length,k.length),B=P,W=0;R<B;)T.substring(W,B)==k.substring(W,B)?W=R=B:P=B,B=Math.floor((P-R)/2+R);return v(T.charCodeAt(B-1))&&B--,B}function l(T,k){if(!T||!k||T.slice(-1)!==k.slice(-1))return 0;for(var R=0,P=Math.min(T.length,k.length),B=P,W=0;R<B;)T.substring(T.length-B,T.length-W)==k.substring(k.length-B,k.length-W)?W=R=B:P=B,B=Math.floor((P-R)/2+R);return x(T.charCodeAt(T.length-B))&&B--,B}function h(T,k){T.push([0,""]);for(var V,R=0,P=0,B=0,W="",z="";R<T.length;)if(R<T.length-1&&!T[R][1])T.splice(R,1);else switch(T[R][0]){case 1:B++,z+=T[R][1],R++;break;case o:P++,W+=T[R][1],R++;break;case 0:var U=R-B-P-1;if(k){if(U>=0&&y(T[U][1])){var K=T[U][1].slice(-1);if(T[U][1]=T[U][1].slice(0,-1),W=K+W,z=K+z,!T[U][1]){T.splice(U,1),R--;var Y=U-1;T[Y]&&1===T[Y][0]&&(B++,z=T[Y][1]+z,Y--),T[Y]&&T[Y][0]===o&&(P++,W=T[Y][1]+W,Y--),U=Y}}b(T[R][1])&&(K=T[R][1].charAt(0),T[R][1]=T[R][1].slice(1),W+=K,z+=K)}if(R<T.length-1&&!T[R][1]){T.splice(R,1);break}if(W.length>0||z.length>0){W.length>0&&z.length>0&&(0!==(V=s(z,W))&&(U>=0?T[U][1]+=z.substring(0,V):(T.splice(0,0,[0,z.substring(0,V)]),R++),z=z.substring(V),W=W.substring(V)),0!==(V=l(z,W))&&(T[R][1]=z.substring(z.length-V)+T[R][1],z=z.substring(0,z.length-V),W=W.substring(0,W.length-V)));var J=B+P;0===W.length&&0===z.length?(T.splice(R-J,J),R-=J):0===W.length?(T.splice(R-J,J,[1,z]),R=R-J+1):0===z.length?(T.splice(R-J,J,[o,W]),R=R-J+1):(T.splice(R-J,J,[o,W],[1,z]),R=R-J+2)}0!==R&&0===T[R-1][0]?(T[R-1][1]+=T[R][1],T.splice(R,1)):R++,B=0,P=0,W="",z=""}""===T[T.length-1][1]&&T.pop();var j=!1;for(R=1;R<T.length-1;)0===T[R-1][0]&&0===T[R+1][0]&&(T[R][1].substring(T[R][1].length-T[R-1][1].length)===T[R-1][1]?(T[R][1]=T[R-1][1]+T[R][1].substring(0,T[R][1].length-T[R-1][1].length),T[R+1][1]=T[R-1][1]+T[R+1][1],T.splice(R-1,1),j=!0):T[R][1].substring(0,T[R+1][1].length)==T[R+1][1]&&(T[R-1][1]+=T[R+1][1],T[R][1]=T[R][1].substring(T[R+1][1].length)+T[R+1][1],T.splice(R+1,1),j=!0)),R++;j&&h(T,k)}function v(T){return T>=55296&&T<=56319}function x(T){return T>=56320&&T<=57343}function b(T){return x(T.charCodeAt(0))}function y(T){return v(T.charCodeAt(T.length-1))}function S(T,k,R,P){return y(T)||b(P)?null:function E(T){for(var k=[],R=0;R<T.length;R++)T[R][1].length>0&&k.push(T[R]);return k}([[0,T],[o,k],[1,R],[0,P]])}function w(T,k,R){return C(T,k,R,!0)}w.INSERT=1,w.DELETE=o,w.EQUAL=0,he.exports=w},function(he,u,o){"use strict";var c=this&&this.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(u,"__esModule",{value:!0});var g,a,I=c(o(16)),C=c(o(30));(a=g||(g={})).compose=function p(h,v,x){void 0===h&&(h={}),void 0===v&&(v={}),"object"!=typeof h&&(h={}),"object"!=typeof v&&(v={});var b=I.default(v);for(var y in x||(b=Object.keys(b).reduce(function(E,S){return null!=b[S]&&(E[S]=b[S]),E},{})),h)void 0!==h[y]&&void 0===v[y]&&(b[y]=h[y]);return Object.keys(b).length>0?b:void 0},a.diff=function s(h,v){void 0===h&&(h={}),void 0===v&&(v={}),"object"!=typeof h&&(h={}),"object"!=typeof v&&(v={});var x=Object.keys(h).concat(Object.keys(v)).reduce(function(b,y){return C.default(h[y],v[y])||(b[y]=void 0===v[y]?null:v[y]),b},{});return Object.keys(x).length>0?x:void 0},a.invert=function l(h,v){void 0===h&&(h={}),void 0===v&&(v={}),h=h||{};var x=Object.keys(v).reduce(function(b,y){return v[y]!==h[y]&&void 0!==h[y]&&(b[y]=v[y]),b},{});return Object.keys(h).reduce(function(b,y){return h[y]!==v[y]&&void 0===v[y]&&(b[y]=null),b},x)},a.transform=function d(h,v,x){if(void 0===x&&(x=!1),"object"!=typeof h)return v;if("object"==typeof v){if(!x)return v;var b=Object.keys(v).reduce(function(y,E){return void 0===h[E]&&(y[E]=v[E]),y},{});return Object.keys(b).length>0?b:void 0}},u.default=g},function(he,u,o){"use strict";var c=this&&this.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(u,"__esModule",{value:!0});var I=c(o(94)),C=function(){function g(a){this.ops=a,this.index=0,this.offset=0}return g.prototype.hasNext=function(){return this.peekLength()<1/0},g.prototype.next=function(a){a||(a=1/0);var p=this.ops[this.index];if(p){var s=this.offset,l=I.default.length(p);if(a>=l-s?(a=l-s,this.index+=1,this.offset=0):this.offset+=a,"number"==typeof p.delete)return{delete:a};var d={};return p.attributes&&(d.attributes=p.attributes),"number"==typeof p.retain?d.retain=a:d.insert="string"==typeof p.insert?p.insert.substr(s,a):p.insert,d}return{retain:1/0}},g.prototype.peek=function(){return this.ops[this.index]},g.prototype.peekLength=function(){return this.ops[this.index]?I.default.length(this.ops[this.index])-this.offset:1/0},g.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},g.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var a=this.offset,p=this.index,s=this.next(),l=this.ops.slice(this.index);return this.offset=a,this.index=p,[s].concat(l)}return[]},g}();u.default=C},function(he,u,o){var c=o(122);he.exports=c},function(he,u,o){var c=o(123);he.exports=c},function(he,u,o){o(124),o(147);var c=o(115);he.exports=c.Array.from},function(he,u,o){"use strict";var c=o(125).charAt,I=o(78),C=o(100),g=o(133),a="String Iterator",p=C.set,s=C.getterFor(a);g(String,"String",function(l){p(this,{type:a,string:I(l),index:0})},function(){var x,d=s(this),h=d.string,v=d.index;return v>=h.length?{value:void 0,done:!0}:(x=c(h,v),d.index+=x.length,{value:x,done:!1})})},function(he,u,o){var c=o(20),I=o(77),C=o(78),g=o(69),a=c("".charAt),p=c("".charCodeAt),s=c("".slice),l=function(d){return function(h,v){var E,S,x=C(g(h)),b=I(v),y=x.length;return b<0||b>=y?d?"":void 0:(E=p(x,b))<55296||E>56319||b+1===y||(S=p(x,b+1))<56320||S>57343?d?a(x,b):E:d?s(x,b,b+2):S-56320+(E-55296<<10)+65536}};he.exports={codeAt:l(!1),charAt:l(!0)}},function(he,u,o){var C={};C[o(28)("toStringTag")]="z",he.exports="[object z]"===String(C)},function(he,u,o){var s,l,c=o(8),I=o(128),C=c.process,g=c.Deno,a=C&&C.versions||g&&g.version,p=a&&a.v8;p&&(l=(s=p.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!l&&I&&(!(s=I.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=I.match(/Chrome\/(\d+)/))&&(l=+s[1]),he.exports=l},function(he,u,o){var c=o(60);he.exports=c("navigator","userAgent")||""},function(he,u,o){var c=o(8),I=o(22),C=o(83),g=c.WeakMap;he.exports=I(g)&&/native code/.test(C(g))},function(he,u,o){var c=o(8),I=o(42),C=o(51),g=o(103),a=o(85),p=o(132),s=o(28),l=c.TypeError,d=s("toPrimitive");he.exports=function(h,v){if(!C(h)||g(h))return h;var b,x=a(h,d);if(x){if(void 0===v&&(v="default"),b=I(x,h,v),!C(b)||g(b))return b;throw l("Can't convert object to primitive value")}return void 0===v&&(v="number"),p(h,v)}},function(he,u,o){var c=o(20);he.exports=c({}.isPrototypeOf)},function(he,u,o){var c=o(8),I=o(42),C=o(22),g=o(51),a=c.TypeError;he.exports=function(p,s){var l,d;if("string"===s&&C(l=p.toString)&&!g(d=I(l,p))||C(l=p.valueOf)&&!g(d=I(l,p))||"string"!==s&&C(l=p.toString)&&!g(d=I(l,p)))return d;throw a("Can't convert object to primitive value")}},function(he,u,o){"use strict";var c=o(61),I=o(42),C=o(67),g=o(106),a=o(22),p=o(141),s=o(112),l=o(145),d=o(113),h=o(70),v=o(90),x=o(28),b=o(72),y=o(110),E=g.PROPER,S=g.CONFIGURABLE,O=y.IteratorPrototype,w=y.BUGGY_SAFARI_ITERATORS,T=x("iterator"),k="keys",R="values",P="entries",B=function(){return this};he.exports=function(W,z,V,U,K,Y,J){p(V,z,U);var oe,fe,Te,j=function(Be){if(Be===K&&X)return X;if(!w&&Be in q)return q[Be];switch(Be){case k:case R:case P:return function(){return new V(this,Be)}}return function(){return new V(this)}},ee=z+" Iterator",G=!1,q=W.prototype,Z=q[T]||q["@@iterator"]||K&&q[K],X=!w&&Z||j(K),M="Array"==z&&q.entries||Z;if(M&&(oe=s(M.call(new W)))!==Object.prototype&&oe.next&&(!C&&s(oe)!==O&&(l?l(oe,O):a(oe[T])||v(oe,T,B)),d(oe,ee,!0,!0),C&&(b[ee]=B)),E&&K==R&&Z&&Z.name!==R&&(!C&&S?h(q,"name",R):(G=!0,X=function(){return I(Z,this)})),K)if(fe={values:j(R),keys:Y?X:j(k),entries:j(P)},J)for(Te in fe)(w||G||!(Te in q))&&v(q,Te,fe[Te]);else c({target:z,proto:!0,forced:w||G},fe);return(!C||J)&&q[T]!==X&&v(q,T,X,{name:K}),b[z]=X,fe}},function(he,u,o){var c=o(8),I=o(20),C=o(39),g=o(82),a=c.Object,p=I("".split);he.exports=C(function(){return!a("z").propertyIsEnumerable(0)})?function(s){return"String"==g(s)?p(s,""):a(s)}:a},function(he,u,o){var c=o(36),I=o(136),C=o(89),g=o(52);he.exports=function(a,p){for(var s=I(p),l=g.f,d=C.f,h=0;h<s.length;h++){var v=s[h];c(a,v)||l(a,v,d(p,v))}}},function(he,u,o){var c=o(60),I=o(20),C=o(137),g=o(139),a=o(40),p=I([].concat);he.exports=c("Reflect","ownKeys")||function(l){var d=C.f(a(l)),h=g.f;return h?p(d,h(l)):d}},function(he,u,o){var c=o(107),C=o(92).concat("length","prototype");u.f=Object.getOwnPropertyNames||function(a){return c(a,C)}},function(he,u,o){var c=o(62),I=o(108),C=o(91),g=function(a){return function(p,s,l){var x,d=c(p),h=C(d),v=I(l,h);if(a&&s!=s){for(;h>v;)if((x=d[v++])!=x)return!0}else for(;h>v;v++)if((a||v in d)&&d[v]===s)return a||v||0;return!a&&-1}};he.exports={includes:g(!0),indexOf:g(!1)}},function(he,u){u.f=Object.getOwnPropertySymbols},function(he,u,o){var c=o(39),I=o(22),C=/#|\.prototype\./,g=function(d,h){var v=p[a(d)];return v==l||v!=s&&(I(h)?c(h):!!h)},a=g.normalize=function(d){return String(d).replace(C,".").toLowerCase()},p=g.data={},s=g.NATIVE="N",l=g.POLYFILL="P";he.exports=g},function(he,u,o){"use strict";var c=o(110).IteratorPrototype,I=o(93),C=o(71),g=o(113),a=o(72),p=function(){return this};he.exports=function(s,l,d){var h=l+" Iterator";return s.prototype=I(c,{next:C(1,d)}),g(s,h,!1,!0),a[h]=p,s}},function(he,u,o){var c=o(41),I=o(52),C=o(40),g=o(62),a=o(111);he.exports=c?Object.defineProperties:function(s,l){C(s);for(var b,d=g(l),h=a(l),v=h.length,x=0;v>x;)I.f(s,b=h[x++],d[b]);return s}},function(he,u,o){var c=o(60);he.exports=c("document","documentElement")},function(he,u,o){var c=o(39);he.exports=!c(function(){function I(){}return I.prototype.constructor=null,Object.getPrototypeOf(new I)!==I.prototype})},function(he,u,o){var c=o(20),I=o(40),C=o(146);he.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p,g=!1,a={};try{(p=c(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(a,[]),g=a instanceof Array}catch{}return function(l,d){return I(l),C(d),g?p(l,d):l.__proto__=d,l}}():void 0)},function(he,u,o){var c=o(8),I=o(22),C=c.String,g=c.TypeError;he.exports=function(a){if("object"==typeof a||I(a))return a;throw g("Can't set "+C(a)+" as a prototype")}},function(he,u,o){var c=o(61),I=o(148);c({target:"Array",stat:!0,forced:!o(156)(function(a){Array.from(a)})},{from:I})},function(he,u,o){"use strict";var c=o(8),I=o(149),C=o(42),g=o(68),a=o(150),p=o(152),s=o(153),l=o(91),d=o(154),h=o(155),v=o(114),x=c.Array;he.exports=function(y){var E=g(y),S=s(this),O=arguments.length,w=O>1?arguments[1]:void 0,T=void 0!==w;T&&(w=I(w,O>2?arguments[2]:void 0));var P,B,W,z,V,U,k=v(E),R=0;if(!k||this==x&&p(k))for(P=l(E),B=S?new this(P):x(P);P>R;R++)U=T?w(E[R],R):E[R],d(B,R,U);else for(V=(z=h(E,k)).next,B=S?new this:[];!(W=C(V,z)).done;R++)U=T?a(z,w,[W.value,R],!0):W.value,d(B,R,U);return B.length=R,B}},function(he,u,o){var c=o(20),I=o(86),C=c(c.bind);he.exports=function(g,a){return I(g),void 0===a?g:C?C(g,a):function(){return g.apply(a,arguments)}}},function(he,u,o){var c=o(40),I=o(151);he.exports=function(C,g,a,p){try{return p?g(c(a)[0],a[1]):g(a)}catch(s){I(C,"throw",s)}}},function(he,u,o){var c=o(42),I=o(40),C=o(85);he.exports=function(g,a,p){var s,l;I(g);try{if(!(s=C(g,"return"))){if("throw"===a)throw p;return p}s=c(s,g)}catch(d){l=!0,s=d}if("throw"===a)throw p;if(l)throw s;return I(s),p}},function(he,u,o){var c=o(28),I=o(72),C=c("iterator"),g=Array.prototype;he.exports=function(a){return void 0!==a&&(I.Array===a||g[C]===a)}},function(he,u,o){var c=o(20),I=o(39),C=o(22),g=o(79),a=o(60),p=o(83),s=function(){},l=[],d=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,v=c(h.exec),x=!h.exec(s),b=function(E){if(!C(E))return!1;try{return d(s,l,E),!0}catch{return!1}};he.exports=!d||I(function(){var E;return b(b.call)||!b(Object)||!b(function(){E=!0})||E})?function(E){if(!C(E))return!1;switch(g(E)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return x||!!v(h,p(E))}:b},function(he,u,o){"use strict";var c=o(84),I=o(52),C=o(71);he.exports=function(g,a,p){var s=c(a);s in g?I.f(g,s,C(0,p)):g[s]=p}},function(he,u,o){var c=o(8),I=o(42),C=o(86),g=o(40),a=o(104),p=o(114),s=c.TypeError;he.exports=function(l,d){var h=arguments.length<2?p(l):d;if(C(h))return g(I(h,l));throw s(a(l)+" is not iterable")}},function(he,u,o){var I=o(28)("iterator"),C=!1;try{var g=0,a={next:function(){return{done:!!g++}},return:function(){C=!0}};a[I]=function(){return this},Array.from(a,function(){throw 2})}catch{}he.exports=function(p,s){if(!s&&!C)return!1;var l=!1;try{var d={};d[I]=function(){return{next:function(){return{done:l=!0}}}},p(d)}catch{}return l}},function(he,u,o){var c=o(158);he.exports=c},function(he,u,o){var c=o(159);he.exports=c},function(he,u,o){o(160);var c=o(116);he.exports=c("Array","fill")},function(he,u,o){var c=o(61),I=o(161),C=o(162);c({target:"Array",proto:!0},{fill:I}),C("fill")},function(he,u,o){"use strict";var c=o(68),I=o(108),C=o(91);he.exports=function(a){for(var p=c(this),s=C(p),l=arguments.length,d=I(l>1?arguments[1]:void 0,s),h=l>2?arguments[2]:void 0,v=void 0===h?s:I(h,s);v>d;)p[d++]=a;return p}},function(he,u,o){var c=o(28),I=o(93),C=o(52),g=c("unscopables"),a=Array.prototype;null==a[g]&&C.f(a,g,{configurable:!0,value:I(null)}),he.exports=function(p){a[g][p]=!0}},function(he,u,o){var c=o(164);he.exports=c},function(he,u,o){var c=o(165);he.exports=c},function(he,u,o){o(166);var c=o(115);he.exports=c.Object.values},function(he,u,o){var c=o(61),I=o(167).values;c({target:"Object",stat:!0},{values:function(g){return I(g)}})},function(he,u,o){var c=o(41),I=o(20),C=o(111),g=o(62),p=I(o(105).f),s=I([].push),l=function(d){return function(h){for(var S,v=g(h),x=C(v),b=x.length,y=0,E=[];b>y;)S=x[y++],(!c||p(v,S))&&s(E,d?[S,v[S]]:v[S]);return E}};he.exports={entries:l(!0),values:l(!1)}},function(he,u,o){var c=o(169);he.exports=c},function(he,u,o){var c=o(170);he.exports=c},function(he,u,o){o(171);var c=o(116);he.exports=c("String","endsWith")},function(he,u,o){"use strict";var E,c=o(61),I=o(20),C=o(89).f,g=o(109),a=o(78),p=o(172),s=o(69),l=o(174),d=o(67),h=I("".endsWith),v=I("".slice),x=Math.min,b=l("endsWith");c({target:"String",proto:!0,forced:!(!d&&!b&&(E=C(String.prototype,"endsWith"),E&&!E.writable)||b)},{endsWith:function(S){var O=a(s(this));p(S);var w=arguments.length>1?arguments[1]:void 0,T=O.length,k=void 0===w?T:x(g(w),T),R=a(S);return h?h(O,R,k):v(O,k-R.length,k)===R}})},function(he,u,o){var c=o(8),I=o(173),C=c.TypeError;he.exports=function(g){if(I(g))throw C("The method doesn't accept regular expressions");return g}},function(he,u,o){var c=o(51),I=o(82),g=o(28)("match");he.exports=function(a){var p;return c(a)&&(void 0!==(p=a[g])?!!p:"RegExp"==I(a))}},function(he,u,o){var I=o(28)("match");he.exports=function(C){var g=/./;try{"/./"[C](g)}catch{try{return g[I]=!1,"/./"[C](g)}catch{}}return!1}},,function(he,u,o){he.exports=o(117)}]).default},1536:(Rn,he,u)=>{"use strict";u.d(he,{U:()=>s,W:()=>l});var o=u(4514),c=u(4304),I=(0,o.Ym)()?(0,o.Jj)():{},g=function(d){return setTimeout(d,16.666666666666668)},a=function(d){clearTimeout(d)},p=(0,c.Z)(function(){var d=I.requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame,h=I.cancelAnimationFrame||I.webkitCancelAnimationFrame||I.mozCancelAnimationFrame||I.oCancelAnimationFrame||I.msCancelAnimationFrame;d&&h&&(g=d,a=h)});function s(){return p(),g.apply(I,arguments)}function l(){p(),a.apply(I,arguments)}},3553:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ge});var o=u(9904),c=u(4514),I=u(913),C=u(9644),g=u(6881),a=u(5873),p=u(1828),s=u(2718),l=u(6961),d=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,h={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},x={},b=function(Ce){var Ye,De=(Ce=h[Ce]||Ce).match(d);De||(De=h[Ye="linear"].match(d)),De=De.slice(1,5);for(var bt=0;bt<De.length;bt++)De[bt]=parseFloat(De[bt]);var yt=Ye||"cubicbezier_"+De.join("_").replace(/\./g,"p");return(0,p.mf)(x[yt])||(x[yt]=function(kt,gn,ut,Ve,St){return Ve*function(Ce,De,Ye,bt){var yt=3*Ce,kt=3*(Ye-Ce)-yt,gn=1-yt-kt,ut=3*De,Ve=3*(bt-De)-ut,St=1-ut-Ve,Xe=function(lt){return lt*(yt+lt*(kt+lt*gn))},Vt=function(lt){return yt+lt*(2*kt+3*lt*gn)};return function(lt){return(dt=function(dt){for(var bn,vt=dt,Lt=0;Lt<14&&(bn=Xe(vt)-dt,!(Math.abs(bn)<.001));)vt-=bn/Vt(vt),Lt++;return vt}(lt))*(ut+dt*(Ve+dt*St));var dt}}(De[0],De[1],De[2],De[3])(gn/St)+ut}),yt},S=u(1536),O=u(4505),w=u(5791),T=u(4416),k=u(8225),R=u(4270),P=u(7674),B=(0,c.Jj)(),W=(0,k.V4)(T.x,"dxFX"),z=/^([+-])=(.*)/i,V="dxAnimData",U="dxAnimQueue",K="transform",Y={initAnimation:function(Ce,De){Ce.css({transitionProperty:"none"}),"string"==typeof De.from?Ce.addClass(De.from):tn(Ce,De.from);var Ye=this,bt=new R.BH,yt=De.cleanupWhen;De.transitionAnimation={deferred:bt,finish:function(){Ye._finishTransition(Ce),yt?(0,R.gx)(bt,yt).always(function(){Ye._cleanup(Ce,De)}):Ye._cleanup(Ce,De),bt.resolveWith(Ce,[De,Ce])}},this._completeAnimationCallback(Ce,De).done(function(){De.transitionAnimation.finish()}).fail(function(){bt.rejectWith(Ce,[De,Ce])}),De.duration||De.transitionAnimation.finish(),Ce.css("transform")},animate:function(Ce,De){return this._startAnimation(Ce,De),De.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(Ce,De){var ut,Ye=this,bt=Date.now()+De.delay,yt=new R.BH,kt=new R.BH,gn=new R.BH,Ve=(0,O.transitionEndEventName)()+".dxFX";De.transitionAnimation.cleanup=function(){clearTimeout(ut),clearTimeout(St),I.Z.off(Ce,Ve),I.Z.off(Ce,W)},I.Z.one(Ce,Ve,function(){Date.now()-bt>=De.duration&&kt.reject()}),I.Z.off(Ce,W),I.Z.on(Ce,W,function(){Ye.stop(Ce,De),yt.reject()});var St=setTimeout(function(){ut=setTimeout(function(){gn.reject()},De.duration+De.delay+$e._simulatedTransitionEndDelay),(0,R.gx)(kt,gn).fail(function(){yt.resolve()}.bind(this))});return yt.promise()},_startAnimation:function(Ce,De){Ce.css({transitionProperty:"all",transitionDelay:De.delay+"ms",transitionDuration:De.duration+"ms",transitionTimingFunction:De.easing}),"string"==typeof De.to?Ce[0].className+=" "+De.to:De.to&&tn(Ce,De.to)},_finishTransition:function(Ce){Ce.css("transition","none")},_cleanup:function(Ce,De){De.transitionAnimation.cleanup(),"string"==typeof De.from&&(Ce.removeClass(De.from),Ce.removeClass(De.to))},stop:function(Ce,De,Ye){De&&(Ye?De.transitionAnimation.finish():((0,p.PO)(De.to)&&(0,s.S6)(De.to,function(bt){Ce.css(bt,Ce.css(bt))}),this._finishTransition(Ce),this._cleanup(Ce,De)))}},J={initAnimation:function(Ce,De){tn(Ce,De.from)},animate:function(Ce,De){var Ye=new R.BH,bt=this;return De?((0,s.S6)(De.to,function(yt){void 0===De.from[yt]&&(De.from[yt]=bt._normalizeValue(Ce.css(yt)))}),De.to[K]&&(De.from[K]=bt._parseTransform(De.from[K]),De.to[K]=bt._parseTransform(De.to[K])),De.frameAnimation={to:De.to,from:De.from,currentValue:De.from,easing:b(De.easing),duration:De.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),(0,S.W)(De.frameAnimation.animationFrameId),Ye.resolve()},draw:function(){if(De.draw)De.draw(this.currentValue);else{var yt=(0,a.l)({},this.currentValue);yt[K]&&(yt[K]=(0,s.UI)(yt[K],function(kt,gn){return"translate"===gn?(0,l.B$)(kt):"scale"===gn?"scale("+kt+")":"rotate"===gn.substr(0,gn.length-1)?gn+"("+kt+"deg)":void 0}).join(" ")),Ce.css(yt)}}},De.delay?(De.frameAnimation.startTime+=De.delay,De.frameAnimation.delayTimeout=setTimeout(function(){bt._startAnimation(Ce,De)},De.delay)):bt._startAnimation(Ce,De),Ye.promise()):Ye.reject().promise()},_startAnimation:function(Ce,De){I.Z.off(Ce,W),I.Z.on(Ce,W,function(){De.frameAnimation&&(0,S.W)(De.frameAnimation.animationFrameId)}),this._animationStep(Ce,De)},_parseTransform:function(Ce){var De={};return(0,s.S6)(Ce.match(/\w+\d*\w*\([^)]*\)\s*/g),function(Ye,bt){var yt=(0,l.XT)(bt),kt=bt.match(/scale\((.+?)\)/),gn=bt.match(/(rotate.)\((.+)deg\)/);yt&&(De.translate=yt),kt&&kt[1]&&(De.scale=parseFloat(kt[1])),gn&&gn[1]&&(De[gn[1]]=parseFloat(gn[2]))}),De},stop:function(Ce,De,Ye){var bt=De&&De.frameAnimation;bt&&((0,S.W)(bt.animationFrameId),clearTimeout(bt.delayTimeout),Ye&&bt.finish(),delete De.frameAnimation)},_animationStep:function(Ce,De){var Ye=De&&De.frameAnimation;if(Ye){var bt=(new Date).valueOf();if(bt>=Ye.startTime+Ye.duration)return void Ye.finish();Ye.currentValue=this._calcStepValue(Ye,bt-Ye.startTime),Ye.draw();var yt=this;Ye.animationFrameId=(0,S.U)(function(){yt._animationStep(Ce,De)})}},_calcStepValue:function(Ce,De){return function Ye(bt,yt){var kt=Array.isArray(yt)?[]:{};return(0,s.S6)(yt,function(gn,ut){if("string"==typeof ut&&!1===parseFloat(ut))return!0;var Ve,St,Xe,Vt,lt,dt;kt[gn]="object"==typeof ut?Ye(bt[gn],ut):(St=De/Ce.duration,Xe=De,Vt=1*bt[Ve=gn],lt=yt[Ve]-bt[Ve],dt=Ce.duration,function E(Ce){return x[Ce]}(Ce.easing)(St,Xe,Vt,lt,dt))}),kt}(Ce.from,Ce.to)},_normalizeValue:function(Ce){var De=parseFloat(Ce);return!1===De?Ce:De}},j={initAnimation:function(){},animate:function(){return(new R.BH).resolve().promise()},stop:P.ZT,isSynchronous:!0},G=function(Ce,De,Ye,bt){(0,s.S6)(["from","to"],function(){if(!Ye(Ce[this]))throw C.Z.Error("E0010",De,this,bt)})},q=function(Ce,De){return G(Ce,De,function(Ye){return(0,p.PO)(Ye)},"a plain object")},oe={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},fe={validateConfig:function(Ce){q(Ce,"slide")},setup:function(Ce,De){var Ye=(0,l.jt)(Ce);if("slide"!==De.type){var bt="slideIn"===De.type?De.from:De.to;bt.position=(0,a.l)({of:B},oe[De.direction]),gt(Ce,bt)}this._setUpConfig(Ye,De.from),this._setUpConfig(Ye,De.to),(0,l.LK)(Ce)},_setUpConfig:function(Ce,De){De.left="left"in De?De.left:"+=0",De.top="top"in De?De.top:"+=0",this._initNewPosition(Ce,De)},_initNewPosition:function(Ce,De){var Ye={left:De.left,top:De.top};delete De.left,delete De.top;var bt=this._getRelativeValue(Ye.left);void 0!==bt?Ye.left=bt+Ce.left:De.left=0,void 0!==(bt=this._getRelativeValue(Ye.top))?Ye.top=bt+Ce.top:De.top=0,De[K]=(0,l.B$)({x:Ye.left,y:Ye.top})},_getRelativeValue:function(Ce){var De;if("string"==typeof Ce&&(De=z.exec(Ce)))return parseInt(De[1]+"1")*De[2]}},Te={setup:function(Ce,De){var Ye,bt,yt=De.from,kt=De.to,gn="fadeOut"===De.type?1:0,ut="fadeOut"===De.type?0:1,Ve=(0,p.PO)(yt)?String(null!==(Ye=yt.opacity)&&void 0!==Ye?Ye:gn):String(yt),St=(0,p.PO)(kt)?String(null!==(bt=kt.opacity)&&void 0!==bt?bt:ut):String(kt);switch(De.skipElementInitialStyles||(Ve=Ce.css("opacity")),De.type){case"fadeIn":St=1;break;case"fadeOut":St=0}De.from={visibility:"visible",opacity:Ve},De.to={opacity:St}}},ze={custom:{setup:function(){}},slide:fe,slideIn:fe,slideOut:fe,fade:Te,fadeIn:Te,fadeOut:Te,pop:{validateConfig:function(Ce){q(Ce,"pop")},setup:function(Ce,De){var Ye=De.from,bt=De.to,yt="opacity"in Ye?Ye.opacity:Ce.css("opacity"),kt="opacity"in bt?bt.opacity:1,gn="scale"in Ye?Ye.scale:0,ut="scale"in bt?bt.scale:1;De.from={opacity:yt};var Ve=(0,l.R6)(Ce);De.from[K]=this._getCssTransform(Ve,gn),De.to={opacity:kt},De.to[K]=this._getCssTransform(Ve,ut)},_getCssTransform:function(Ce,De){return(0,l.B$)(Ce)+"scale("+De+")"}},css:{validateConfig:function(Ce){!function(Ce,De){G(Ce,"css",function(Ye){return"string"==typeof Ye},"a string")}(Ce)},setup:function(){}}},_e={type:"custom",from:{},to:{},duration:400,start:P.ZT,complete:P.ZT,easing:"ease",delay:0},ye={duration:400,easing:"ease",delay:0};function ne(){var Ce=this.element,De=this.config;if(gt(Ce,De.from),gt(Ce,De.to),this.configurator.setup(Ce,De),Ce.data(V,this),$e.off&&(De.duration=0,De.delay=0),this.strategy.initAnimation(Ce,De),De.start){var Ye=(0,g.u)(Ce);De.start.apply(this,[Ye,De])}}var le=function(){var Ce=this,De=Ce.element,Ye=Ce.config;return Ce.isStarted=!0,Ce.strategy.animate(De,Ye).done(function(){!function(Ce){var De=Ce.element,Ye=Ce.config;if(De.removeData(V),Ye.complete){var bt=(0,g.u)(De);Ye.complete.apply(this,[bt,Ye])}Ce.deferred.resolveWith(this,[De,Ye])}(Ce)}).fail(function(){Ce.deferred.rejectWith(this,[De,Ye])})},pe=function(Ce){var De=this.element,Ye=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(De,Ye,Ce)},Se=(0,k.V4)(T.x,"dxFXStartAnimation"),te=function(Ce,De){var bt=(0,a.l)(!0,{},"css"===De.type?ye:_e,De),yt=function(Ce){var De=ze[Ce.type];if(!De)throw C.Z.Error("E0011",Ce.type);return De}(bt),kt=function(Ce){Ce=Ce||{};var De={transition:(0,O.transition)()?Y:J,frame:J,noAnimation:j},Ye=Ce.strategy||"transition";return"css"===Ce.type&&!(0,O.transition)()&&(Ye="noAnimation"),De[Ye]}(bt),gn={element:(0,o.Z)(Ce),config:bt,configurator:yt,strategy:kt,isSynchronous:kt.isSynchronous,setup:ne,start:le,stop:pe,deferred:new R.BH};return(0,p.mf)(yt.validateConfig)&&yt.validateConfig(bt),function(Ce){I.Z.off(Ce.element,Se),I.Z.on(Ce.element,Se,function(){$e.stop(Ce.element)}),Ce.deferred.always(function(){I.Z.off(Ce.element,Se)})}(gn),gn};function be(Ce){return Ce.data(U)||[]}var Ne=function(Ce){Ce.removeData(U)};function mt(Ce){return!!Ce.data(V)}function tt(Ce,De){if((De=be(Ce)).length){var Ye=De.shift();0===De.length&&Ne(Ce),function Le(Ce){return Ce.setup(),$e.off||Ce.isSynchronous?Ce.start():Ce.startTimeout=setTimeout(function(){Ce.start()}),Ce.deferred.promise()}(Ye).done(function(){mt(Ce)||tt(Ce)})}}function gt(Ce,De){if(De&&De.position){var Ye=(0,o.Z)(B),bt=0,yt=0,kt=w.Z.calculate(Ce,De.position),gn=Ce.offset(),ut=Ce.position();ut.top>gn.top&&(yt=Ye.scrollTop()),ut.left>gn.left&&(bt=Ye.scrollLeft()),(0,a.l)(De,{left:kt.h.location-gn.left+ut.left-bt,top:kt.v.location-gn.top+ut.top-yt}),delete De.position}}function tn(Ce,De){(0,s.S6)(De,function(Ye,bt){try{Ce.css(Ye,(0,p.mf)(bt)?bt():bt)}catch{}})}var $e={off:!1,animationTypes:ze,animate:function(Ce,De){var Ye=(0,o.Z)(Ce);if(!Ye.length)return(new R.BH).resolve().promise();var bt=te(Ye,De);return function ue(Ce,De){var Ye=be(Ce);(function Ae(Ce,De){Ce.data(U,De)})(Ce,Ye),Ye.push(De),mt(Ce)||tt(Ce,Ye)}(Ye,bt),bt.deferred.promise()},createAnimation:te,isAnimating:mt,stop:function(Ce,De){var Ye=(0,o.Z)(Ce),bt=be(Ye);(0,s.S6)(bt,function(kt,gn){gn.config.delay=0,gn.config.duration=0,gn.isSynchronous=!0}),mt(Ye)||tt(Ye,bt);var yt=Ye.data(V);yt&&yt.stop(De),Ye.removeData(V),Ne(Ye)},_simulatedTransitionEndDelay:100};const ge=$e},5791:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>X});var K,o=u(1805),c=u(9904),I=u(7674),C=u(2718),g=u(4514),a=u(9897),p=u(1828),s=u(5873),l=u(5450),d=u(4722),h=u(6961),v=u(4505),x=u(2941),b=(0,g.Jj)(),y=/left|right/,E=/top|bottom/,S=/fit|flip|none/,O=/scale\(.+?\)/,w=d.Z.safari,T=function(M){var oe={h:"center",v:"center"},fe=(0,I.Um)(M);return fe&&(0,C.S6)(fe,function(){var Te=String(this).toLowerCase();y.test(Te)?oe.h=Te:E.test(Te)&&(oe.v=Te)}),oe},k=function(M){return(0,I.TG)(M)},P=function(M){switch(M){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},B=function(M){switch(M){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return M}},W=function(M,oe){var fe=0;return M.myLocation<oe.min&&(fe+=oe.min-M.myLocation),M.myLocation>oe.max&&(fe+=M.myLocation-oe.max),fe},z=function(M,oe,fe){return oe.myLocation<fe.min?"h"===M?"left":"top":oe.myLocation>fe.max?"h"===M?"right":"bottom":"none"},V=function(M){M.myLocation=M.atLocation+P(M.atAlign)*M.atSize-P(M.myAlign)*M.mySize+M.offset},U={fit:function(M,oe){var fe=!1;M.myLocation>oe.max&&(M.myLocation=oe.max,fe=!0),M.myLocation<oe.min&&(M.myLocation=oe.min,fe=!0),M.fit=fe},flip:function(M,oe){if(M.flip=!1,("center"!==M.myAlign||"center"!==M.atAlign)&&(M.myLocation<oe.min||M.myLocation>oe.max)){var fe=(0,s.l)({},M,{myAlign:B(M.myAlign),atAlign:B(M.atAlign),offset:-M.offset});V(fe),fe.oversize=W(fe,oe),(fe.myLocation>=oe.min&&fe.myLocation<=oe.max||M.oversize>fe.oversize)&&(M.myLocation=fe.myLocation,M.oversize=fe.oversize,M.flip=!0)}},flipfit:function(M,oe){this.flip(M,oe),this.fit(M,oe)},none:function(M){M.oversize=0}},Y=function(){var M=(0,c.Z)("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo((0,c.Z)("body")),oe=M.get(0).offsetWidth-M.get(0).clientWidth;M.remove(),K=oe},J={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},j=function(M,oe){var fe=(0,c.Z)(M),Te=fe.offset(),Be=(0,s.l)(!0,{},J,{h:{location:Te.left},v:{location:Te.top}});if(!oe)return Be;var ze=T(oe.my),ae=T(oe.at),_e=(0,c.Z)(oe.of).length&&oe.of||b,ye=k(oe.offset),ne=function(M){var oe=(0,I.Um)(M),fe=String(oe&&oe[0]).toLowerCase(),Te=String(oe&&oe[1]).toLowerCase();return S.test(fe)||(fe="none"),S.test(Te)||(Te=fe),{h:fe,v:Te}}(oe.collision),ce=oe.boundary,le=k(oe.boundaryOffset),pe={mySize:(0,o.Y_)(fe),myAlign:ze.h,atAlign:ae.h,offset:ye.h,collision:ne.h,boundaryOffset:le.h},Se={mySize:(0,o.zp)(fe),myAlign:ze.v,atAlign:ae.v,offset:ye.v,collision:ne.v,boundaryOffset:le.v};if(_e.preventDefault)pe.atLocation=_e.pageX,Se.atLocation=_e.pageY,pe.atSize=0,Se.atSize=0;else if(_e=(0,c.Z)(_e),(0,p.FJ)(_e[0]))pe.atLocation=_e.scrollLeft(),Se.atLocation=_e.scrollTop(),"phone"===x.Z.real().deviceType&&_e[0].visualViewport?(pe.atLocation=Math.max(pe.atLocation,_e[0].visualViewport.offsetLeft),Se.atLocation=Math.max(Se.atLocation,_e[0].visualViewport.offsetTop),pe.atSize=_e[0].visualViewport.width,Se.atSize=_e[0].visualViewport.height):(pe.atSize=_e[0].innerWidth>_e[0].outerWidth?_e[0].innerWidth:(0,o.dz)(_e),Se.atSize=_e[0].innerHeight>_e[0].outerHeight||w?_e[0].innerHeight:(0,o.Cr)(_e));else if(9===_e[0].nodeType)pe.atLocation=0,Se.atLocation=0,pe.atSize=(0,o.dz)(_e),Se.atSize=(0,o.Cr)(_e);else{var re=(0,l.l)(_e.get(0)),te=G(_e);pe.atLocation=te.left,Se.atLocation=te.top,pe.atSize=Math.max(re.width,(0,o.Y_)(_e)),Se.atSize=Math.max(re.height,(0,o.zp)(_e))}V(pe),V(Se);var ie=function(){var be=(0,c.Z)(b),Ae=(0,o.dz)(be),Ne=(0,o.Cr)(be),mt=be.scrollLeft(),tt=be.scrollTop(),Le=a.Z.getDocumentElement(),gt=v.touch?Le.clientWidth/Ae:1,tn=v.touch?Le.clientHeight/Ne:1;void 0===K&&Y();var Pe=Ae,$e=Ne;if(ce&&!(0,p.FJ)(ce)){var ge=(0,c.Z)(ce),Ce=ge.offset();mt=Ce.left,tt=Ce.top,Pe=(0,o.dz)(ge),$e=(0,o.Cr)(ge)}return{h:{min:mt+pe.boundaryOffset,max:mt+Pe/gt-pe.mySize-pe.boundaryOffset},v:{min:tt+Se.boundaryOffset,max:tt+$e/tn-Se.mySize-Se.boundaryOffset}}}();pe.oversize=W(pe,ie.h),Se.oversize=W(Se,ie.v),pe.collisionSide=z("h",pe,ie.h),Se.collisionSide=z("v",Se,ie.v),U[pe.collision]&&U[pe.collision](pe,ie.h),U[Se.collision]&&U[Se.collision](Se,ie.v);var ue=function(be){return oe.precise?be:Math.round(be)};return(0,s.l)(!0,Be,{h:{location:ue(pe.myLocation),oversize:ue(pe.oversize),fit:pe.fit,flip:pe.flip,collisionSide:pe.collisionSide},v:{location:ue(Se.myLocation),oversize:ue(Se.oversize),fit:Se.fit,flip:Se.flip,collisionSide:Se.collisionSide},precise:oe.precise}),Be},ee=function(M,oe,fe,Te,Be){(0,p.$K)(M.style)&&!a.Z.isNode(M.style)?M.style.transform=Be?fe.replace(oe,""):fe:M.setAttribute("style",Be?Te.replace(oe,""):Te)},G=function M(oe){var fe,Te,Be,ze=arguments.length>1&&void 0!==arguments[1]?arguments[1]:oe,ae=ze.get(0);if(!ae)return oe.offset();var ce,_e=(null===(fe=ae.getAttribute)||void 0===fe?void 0:fe.call(ae,"style"))||"",ye=null===(Te=ae.style)||void 0===Te?void 0:Te.transform,ne=null===(Be=_e.match(O))||void 0===Be?void 0:Be[0];return ne?(ee(ae,ne,ye,_e,!0),ce=M(oe,ze.parent()),ee(ae,ne,ye,_e,!1)):ce=M(oe,ze.parent()),ce},q=function(M,oe){var fe=(0,c.Z)(M);if(!oe)return fe.offset();(0,h.Kx)(fe,!0);var Te=G(fe),Be=oe.h&&oe.v?oe:j(fe,oe),ze=function(ae){return oe.precise?ae:Math.round(ae)};return(0,h.pB)(fe,{left:Be.h.location-ze(Te.left),top:Be.v.location-ze(Te.top)}),Be};q.inverseAlign||(q.inverseAlign=B),q.normalizeAlign||(q.normalizeAlign=T);const X={calculateScrollbarWidth:Y,calculate:j,setup:q,offset:function(M){return M=(0,c.Z)(M).get(0),(0,p.FJ)(M)?null:M&&"pageY"in M&&"pageX"in M?{top:M.pageY,left:M.pageX}:(0,c.Z)(M).offset()}}},6961:(Rn,he,u)=>{"use strict";u.d(he,{B$:()=>h,Kx:()=>b,LK:()=>d,R6:()=>v,XT:()=>y,jt:()=>p,pB:()=>x});var o=u(9904),c=u(5610),I=u(1828),C="dxTranslator",g=/matrix(3d)?\((.+?)\)/,a=/translate(?:3d)?\((.+?)\)/,p=function(E){E=(0,o.Z)(E);var S=v(E);return{left:S.x,top:S.y}};function s(E){return"string"===(0,I.dt)(E)&&"%"===E[E.length-1]}function l(E,S){E.length&&(0,c.aT)(E.get(0),C,S)}var d=function(E){E.length&&(0,c.NU)(E.get(0),C)},h=function(E){return E.x=E.x||0,E.y=E.y||0,"translate("+(s(E.x)?E.x:E.x+"px")+", "+(s(E.y)?E.y:E.y+"px")+")"},v=function(E){var S=E.length?(0,c.aT)(E.get(0),C):null;if(!S){var w=(E.css("transform")||h({x:0,y:0})).match(g),T=w&&w[1];w?(w=w[2].split(","),"3d"===T?w=w.slice(12,15):(w.push(0),w=w.slice(4,7))):w=[0,0,0],l(E,S={x:parseFloat(w[0]),y:parseFloat(w[1]),z:parseFloat(w[2])})}return S},x=function(E,S){E=(0,o.Z)(E);var T,O=S.left,w=S.top;void 0===O?(T=v(E)).y=w||0:void 0===w?(T=v(E)).x=O||0:l(E,T={x:O||0,y:w||0,z:0}),E.css({transform:h(T)}),(s(O)||s(w))&&d(E)},b=function(E,S){E=(0,o.Z)(E);var O,w={left:0,top:0,transform:"none"};S&&(O=E.css("transition"),w.transition="none"),E.css(w),d(E),S&&(E.get(0),E.css("transition",O))},y=function(E){var S=E.match(a);if(S&&S[1])return S=S[1].split(","),{x:parseFloat(S[0]),y:parseFloat(S[1]),z:parseFloat(S[2])}}},3058:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},c=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(w){return[parseInt(w[1],10),parseInt(w[2],10),parseInt(w[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(w){return[parseInt(w[1],10),parseInt(w[2],10),parseInt(w[3],10),parseFloat(w[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(w){return[parseInt(w[1],16),parseInt(w[2],16),parseInt(w[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(w){return[parseInt(w[1]+w[1],16),parseInt(w[2]+w[2],16),parseInt(w[3]+w[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(w){var T=parseInt(w[1],10),k=parseInt(w[2],10),R=parseInt(w[3],10),P=l(T,k,R);return[P[0],P[1],P[2],1,[T,k,R]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(w){var T=parseInt(w[1],10),k=parseInt(w[2],10),R=parseInt(w[3],10),P=y(T,k,R);return[P[0],P[1],P[2],1,null,[T,k,R]]}}],I=Math.round;function C(w){var T;this.baseColor=w,w&&(T=String(w).toLowerCase().replace(/ /g,""),T=function g(w){if("transparent"===w)return[0,0,0,0];for(var R,T=0,k=c.length;T<k;++T)if(R=c[T].re.exec(w))return c[T].process(R);return null}(T=o[T]?"#"+o[T]:T)),T||(this.colorIsInvalid=!0),this.r=a((T=T||{})[0]),this.g=a(T[1]),this.b=a(T[2]),this.a=a(T[3],1,1),this.hsv=T[4]?{h:T[4][0],s:T[4][1],v:T[4][2]}:function s(w,T,k){var W,z,R=Math.max(w,T,k),P=Math.min(w,T,k),B=R-P,V=R;if(z=0===R?0:1-P/R,R===P)W=0;else switch(R){case w:W=(T-k)/B*60,T<k&&(W+=360);break;case T:W=(k-w)/B*60+120;break;case k:W=(w-T)/B*60+240}return z*=100,V*=100/255,{h:Math.round(W),s:Math.round(z),v:Math.round(V)}}(this.r,this.g,this.b),this.hsl=T[5]?{h:T[5][0],s:T[5][1],l:T[5][2]}:function h(w,T,k){w=E(w,255),T=E(T,255),k=E(k,255);var W,z,R=Math.max(w,T,k),P=Math.min(w,T,k),B=R+P,V=B/2;if(R===P)W=z=0;else{var U=R-P;z=V>.5?U/(2-B):U/B,W=function d(w,T,k,R){switch(Math.max(w,T,k)){case w:return(T-k)/R+(T<k?6:0);case T:return(k-w)/R+2;case k:return(w-T)/R+4}}(w,T,k,U),W/=6}return{h:I(360*W),s:I(100*z),l:I(100*V)}}(this.r,this.g,this.b)}function a(w,T,k){return T=T||0,k=k||255,w<0||isNaN(w)?T:w>k?k:w}function l(w,T,k){var V,U,K,P=(100-T)*k/100,B=w%60/60*(k-P),W=P+B,z=k-B;switch(Math.floor(w%360/60)){case 0:V=k,U=W,K=P;break;case 1:V=z,U=k,K=P;break;case 2:V=P,U=k,K=W;break;case 3:V=P,U=z,K=k;break;case 4:V=W,U=P,K=k;break;case 5:V=k,U=P,K=z}return[Math.round(2.55*V),Math.round(2.55*U),Math.round(2.55*K)]}function v(w,T){var k=T;return"r"===w&&(k=T+1/3),"b"===w&&(k=T-1/3),k}function b(w,T,k){return k=function x(w){return w<0&&(w+=1),w>1&&(w-=1),w}(k),k<1/6?w+6*(T-w)*k:k<.5?T:k<2/3?w+(T-w)*(2/3-k)*6:w}function y(w,T,k){var R,P,B;if(w=E(w,360),T=E(T,100),k=E(k,100),0===T)R=P=B=k;else{var W=k<.5?k*(1+T):k+T-k*T,z=2*k-W;R=b(z,W,v("r",w)),P=b(z,W,v("g",w)),B=b(z,W,v("b",w))}return[I(255*R),I(255*P),I(255*B)]}function E(w,T){return w=Math.min(T,Math.max(0,parseFloat(w))),Math.abs(w-T)<1e-6?1:w%T/parseFloat(T)}function S(w,T,k){return T=T||0,k=k||255,!(w%1!=0||w<T||w>k||"number"!=typeof w||isNaN(w))}C.prototype={constructor:C,highlight:function(w){return this.alter(w=w||10).toHex()},darken:function(w){return this.alter(-(w=w||10)).toHex()},alter:function(w){var T=new C;return T.r=a(this.r+w),T.g=a(this.g+w),T.b=a(this.b+w),T},blend:function(w,T){var k=w instanceof C?w:new C(w),R=new C;return R.r=a(I(this.r*(1-T)+k.r*T)),R.g=a(I(this.g*(1-T)+k.g*T)),R.b=a(I(this.b*(1-T)+k.b*T)),R},toHex:function(){return function p(w,T,k){return"#"+(16777216|w<<16|T<<8|k).toString(16).slice(1)}(this.r,this.g,this.b)},getPureColor:function(){return new C("rgb("+l(this.hsv.h,100,100).join(",")+")")},isValidHex:function(w){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(w)},isValidRGB:function(w,T,k){return!(!S(w)||!S(T)||!S(k))},isValidAlpha:function(w){return!(isNaN(w)||w<0||w>1||"number"!=typeof w)},colorIsInvalid:!1,fromHSL:function(w){var T=new C,k=y(w.h,w.s,w.l);return T.r=k[0],T.g=k[1],T.b=k[2],T}};const O=C},9866:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>g});var o=u(9904),c=u(4514),I=u(1828),C=u(2718);let g=(()=>{class p{constructor(l,d){d=d||{},this._action=l,this._context=d.context||(0,c.Jj)(),this._beforeExecute=d.beforeExecute,this._afterExecute=d.afterExecute,this._component=d.component,this._validatingTargetName=d.validatingTargetName;var h=this._excludeValidators={};if(d.excludeValidators)for(var v=0;v<d.excludeValidators.length;v++)h[d.excludeValidators[v]]=!0}execute(){var l={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},d=this._beforeExecute,h=this._afterExecute,v=l.args[0]||{};if(this._validateAction(l)&&(d?.call(this._context,l),!l.cancel)){var x=this._executeAction(l);if(!v.cancel)return h?.call(this._context,l),x}}_validateAction(l){var d=this._excludeValidators,{executors:h}=p;for(var v in h)if(!d[v]){var x,b=h[v];if(null===(x=b.validate)||void 0===x||x.call(b,l),l.cancel)return!1}return!0}_executeAction(l){var d,{executors:h}=p;for(var v in h){var x,b=h[v];if(null===(x=b.execute)||void 0===x||x.call(b,l),l.handled){d=l.result;break}}return d}static registerExecutor(l,d){(0,I.PO)(l)?(0,C.S6)(l,p.registerExecutor):p.executors[l]=d}static unregisterExecutor(){for(var l=arguments.length,d=new Array(l),h=0;h<l;h++)d[h]=arguments[h];(0,C.S6)(d,function(){delete p.executors[this]})}}return p.executors={},p})();var a=p=>s=>{if(s.args.length){var l=s.args[0],d=l[s.validatingTargetName]||l.element;d&&p((0,o.Z)(d))&&(s.cancel=!0)}};g.registerExecutor({disabled:{validate:a(p=>p.is(".dx-state-disabled, .dx-state-disabled *"))},readOnly:{validate:a(p=>p.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)"))},undefined:{execute:p=>{p.action||(p.result=void 0,p.handled=!0)}},func:{execute:p=>{(0,I.mf)(p.action)&&(p.result=p.action.call(p.context,p.args[0]),p.handled=!0)}}})},5031:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var v,o=u(9644),c=u(1828),I=function(v,x,b){return function(){var y=this.callBase;this.callBase=v[x];try{return b.apply(this,arguments)}finally{this.callBase=y}}},g=function(v){var b,y;if(!v)return this;for(b in v)y=v[b],this.prototype[b]="function"==typeof this.prototype[b]&&"function"==typeof y?I(this.parent.prototype,b,y):y;return this},a=function(){var x,b,y,v=this,E=Object.prototype.hasOwnProperty.bind(v),S=!E("_includedCtors")&&!E("_includedPostCtors");for(S&&(v._includedCtors=v._includedCtors.slice(0),v._includedPostCtors=v._includedPostCtors.slice(0)),y=0;y<arguments.length;y++)for(b in(x=arguments[y]).ctor&&v._includedCtors.push(x.ctor),x.postCtor&&v._includedPostCtors.push(x.postCtor),x)"ctor"===b||"postCtor"===b||"default"===b||(v.prototype[b]=x[b]);return v},p=function(v){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var y=Object.getPrototypeOf(this);return y===v||y.subclassOf(v)}return this.parent===v||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(v)},s=function(){throw o.Z.Error("E0001")},l=(v=Object.prototype.hasOwnProperty,function(x,b){for(var y in x){if(!v.call(x,y))return;b[y]=x[y]}}),d=function(){};d.inherit=function(v){var x=function(){if(!this||(0,c.FJ)(this)||"function"!=typeof this.constructor)throw o.Z.Error("E0003");var O,b=this,y=b.ctor,E=b.constructor._includedCtors,S=b.constructor._includedPostCtors;for(O=0;O<E.length;O++)E[O].call(b);for(y&&y.apply(b,arguments),O=0;O<S.length;O++)S[O].call(b)};return x.prototype=function(v){var x=function(){};return x.prototype=v.prototype,new x}(this),l(this,x),x.inherit=this.inherit,x.abstract=s,x.redefine=g,x.include=a,x.subclassOf=p,x.parent=this,x._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],x._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],x.prototype.constructor=x,x.redefine(v),x},d.abstract=s;const h=d},4430:(Rn,he,u)=>{"use strict";u.d(he,{w:()=>P});var o=u(7572),c=u(5873),I=u(4817),C=u(1828),g=u(7674),a=u(6738),p=u(3425),s=u(3238),l={},d={};class h{constructor(W,z){this._options=W,this._optionsByReference=z}_setByReference(W,z){for(var V in(0,c.l)(!0,W,z),this._optionsByReference)Object.prototype.hasOwnProperty.call(z,V)&&(W[V]=z[V])}_setPreparedValue(W,z,V,U){var K=this.get(this._options,W,!1);if(!(0,p.f)(K,z)){var Y=(0,a.Zw)(W);!U&&this._changingCallback(W,K,z),d[W]=d[W]||(0,a.OM)(W),d[W](this._options,z,{functionsAsIs:!0,merge:(0,C.$K)(V)?V:!this._optionsByReference[W],unwrapObservables:Y.length>1&&!!this._optionsByReference[Y[0]]}),!U&&this._changedCallback(W,z,K)}}_prepareRelevantNames(W,z,V,U){if((0,C.PO)(V))for(var K in V)this._prepareRelevantNames(W,"".concat(z,".").concat(K),V[K]);this._namePreparedCallbacks(W,z,V,U)}get(){var W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,z=arguments.length>1?arguments[1]:void 0,V=arguments.length>2?arguments[2]:void 0;return l[z]=l[z]||(0,a.vb)(z),l[z](W,{functionsAsIs:!0,unwrapObservables:V})}set(W,z,V,U){for(var K in W=(0,s.GR)(W,z))this._prepareRelevantNames(W,K,W[K],U);for(var Y in W)this._setPreparedValue(Y,W[Y],V,U)}onRelevantNamesPrepared(W){this._namePreparedCallbacks=W}onChanging(W){this._changingCallback=W}onChanged(W){this._changedCallback=W}dispose(){this._changingCallback=g.ZT,this._changedCallback=g.ZT}}class v{constructor(W,z,V,U){this._default=z,this._deprecated=U,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new h(W,V),this._optionManager.onRelevantNamesPrepared((K,Y,J,j)=>this._setRelevantNames(K,Y,J,j)),this._cachedOptions={},this._rules=[]}set _initial(W){this._initialOptions=W}get _initial(){if(!this._initialOptions){var W=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,W)}return this._initialOptions}_initDeprecatedNames(){for(var W in this._deprecated)this._deprecatedNames.push(W)}_getByRules(W){return W=Array.isArray(W)?this._rules.concat(W):this._rules,(0,s.wt)(W)}_notifyDeprecated(W){var z=this._deprecated[W];z&&this._deprecatedCallback(W,z)}_setRelevantNames(W,z,V,U){if(z){var K=this._normalizeName(z,U);K&&K!==z&&(this._setField(W,K,V),this._clearField(W,z))}}_setField(W,z,V){var U="",K=null;do{U=U?".".concat(U):"",U=(0,s.Ts)(z)+U,K=(z=(0,s.u5)(z))?this._optionManager.get(W,z,!1):W}while(!K);K[U]=V}_clearField(W,z){delete W[z];var V=(0,s.u5)(z),U=V?this._optionManager.get(W,V,!1):W;U&&delete U[(0,s.Ts)(z)]}_normalizeName(W,z){if(this._deprecatedNames.length&&W)for(var V=0;V<this._deprecatedNames.length;V++)if(this._deprecatedNames[V]===W){var U=this._deprecated[W];if(U)return!z&&this._notifyDeprecated(W),U.alias||W}return W}addRules(W){this._rules=W.concat(this._rules)}applyRules(W){var z=this._getByRules(W);this.silent(z)}dispose(){this._deprecatedCallback=g.ZT,this._startChangeCallback=g.ZT,this._endChangeCallback=g.ZT,this._optionManager.dispose()}onChanging(W){this._optionManager.onChanging(W)}onChanged(W){this._optionManager.onChanged(W)}onDeprecated(W){this._deprecatedCallback=W}onStartChange(W){this._startChangeCallback=W}onEndChange(W){this._endChangeCallback=W}isInitial(W){var z=this.silent(W),V=this.initial(W);return(0,C.mf)(z)&&(0,C.mf)(V)?z.toString()===V.toString():(0,g.bY)(z,V)}initial(W){return(0,s.vH)(this._initial,W)}option(W,z){if(arguments.length<2&&"object"!==(0,C.dt)(W))return this._optionManager.get(void 0,this._normalizeName(W));this._startChangeCallback();try{this._optionManager.set(W,z)}finally{this._endChangeCallback()}}silent(W,z){if(arguments.length<2&&"object"!==(0,C.dt)(W))return this._optionManager.get(void 0,W,void 0,!0);this._optionManager.set(W,z,void 0,!0)}reset(W){if(W){var V=(0,a.Zw)(W).reduce((K,Y)=>K?K[Y]:this.initial(Y),null),U=(0,C.Kn)(V)?(0,I.Z)({},V):V;this._optionManager.set(W,U,!1)}}getAliasesByName(W){return Object.keys(this._deprecated).filter(z=>W===this._deprecated[z].alias)}isDeprecated(W){return Object.prototype.hasOwnProperty.call(this._deprecated,W)}cache(W,z){if(arguments.length<2)return this._cachedOptions[W];this._cachedOptions[W]=(0,c.l)(this._cachedOptions[W],z)}}var x=u(5031),b=u(9866),y=u(9644),E=u(5365),S=u(4562),O=u(6165),w=u(4270);class T{constructor(){this._postponedOperations={}}add(W,z,V){if(W in this._postponedOperations)V&&this._postponedOperations[W].promises.push(V);else{var U=new w.BH;this._postponedOperations[W]={fn:z,completePromise:U,promises:V?[V]:[]}}return this._postponedOperations[W].completePromise.promise()}callPostponedOperations(){for(var W in this._postponedOperations){var z=this._postponedOperations[W];(0,C.$K)(z)&&(z.promises&&z.promises.length?(0,w.gx)(...z.promises).done(z.fn).then(z.completePromise.resolve):z.fn().done(z.completePromise.resolve))}this._postponedOperations={}}}var k=B=>B.charAt(2).toLowerCase()+B.substr(3),R=B=>0===B.indexOf("_",0),P=x.Z.inherit({_setDeprecatedOptions(){this._deprecatedOptions={}},_getDeprecatedOptions(){return this._deprecatedOptions},_getDefaultOptions:()=>({onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}),_defaultOptionsRules:()=>[],_setOptionsByDevice(B){this._options.applyRules(B)},_convertRulesToOptions:B=>(0,s.wt)(B),_isInitialOptionValue(B){return this._options.isInitial(B)},_setOptionsByReference(){this._optionsByReference={}},_getOptionsByReference(){return this._optionsByReference},ctor(){var B=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{_optionChangedCallbacks:W,_disposingCallbacks:z}=B;this.NAME=(0,O.u2)(this.constructor),this._eventsStrategy=S.m.create(this,B.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=W||(0,E.Z)(),this._disposingCallbacks=z||(0,E.Z)(),this.postponedOperations=new T,this._createOptions(B)},_createOptions(B){this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new v(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((W,z,V)=>this._initialized&&this._optionChanging(W,z,V)),this._options.onDeprecated((W,z)=>this._logDeprecatedOptionWarning(W,z)),this._options.onChanged((W,z,V)=>this._notifyOptionChanged(W,z,V)),this._options.onStartChange(()=>this.beginUpdate()),this._options.onEndChange(()=>this.endUpdate()),this._options.addRules(this._defaultOptionsRules()),B&&B.onInitializing&&B.onInitializing.apply(this,[B]),this._setOptionsByDevice(B.defaultOptionsRules),this._initOptions(B)}finally{this.endUpdate()}},_initOptions(B){this.option(B)},_init(){this._createOptionChangedAction(),this.on("disposing",B=>{this._disposingCallbacks.fireWith(this,[B])})},_logDeprecatedOptionWarning(B,W){var z=W.message||"Use the '".concat(W.alias,"' option instead");y.Z.log("W0001",this.NAME,B,W.since,z)},_logDeprecatedComponentWarning(B,W){y.Z.log("W0000",this.NAME,B,"Use the '".concat(W,"' widget instead"))},_createOptionChangedAction(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged(B){switch(B.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate(){this._updateLockCount++},_unlockUpdate(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed(){return 0===this._updateLockCount},_isInitializingRequired(){return!this._initializing&&!this._initialized},isInitialized(){return this._initialized},_commitUpdate(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:g.ZT,_notifyOptionChanged(B,W,z){if(this._initialized)for(var V=[B].concat(this._options.getAliasesByName(B)),U=0;U<V.length;U++){var K=V[U],Y={name:(0,a.Zw)(K)[0],fullName:K,value:W,previousValue:z};R(K)||(this._optionChangedCallbacks.fireWith(this,[(0,c.l)(this._defaultActionArgs(),Y)]),this._optionChangedAction((0,c.l)({},Y))),!this._disposed&&this._cancelOptionChange!==K&&this._optionChanged(Y)}},initialOption(B){return this._options.initial(B)},_defaultActionConfig(){return{context:this,component:this}},_defaultActionArgs(){return{component:this}},_createAction(B,W){var z;return V=>((0,C.$K)(V)||(V={}),(0,C.PO)(V)||(V={actionValue:V}),(z=z||new b.Z(B,(0,c.l)(W,this._defaultActionConfig()))).execute.call(z,(0,c.l)(V,this._defaultActionArgs())))},_createActionByOption(B,W){var V,U,K,z=this,Y=function(){if(!U){if(W=W||{},"string"!=typeof B)throw y.Z.Error("E0008");0===B.indexOf("on")&&(U=k(B)),K=z.option(B)}if(V||K||W.beforeExecute||W.afterExecute||z._eventsStrategy.hasEvent(U)){if(!V){var j=W.beforeExecute;W.beforeExecute=function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];j&&j.apply(z,oe),z._eventsStrategy.fireEvent(U,oe[0].args)},V=z._createAction(K,W)}for(var ee=arguments.length,G=new Array(ee),q=0;q<ee;q++)G[q]=arguments[q];if((0,o.Z)().wrapActionsBeforeExecute){var Z=z.option("beforeActionExecute")||g.ZT,X=Z(z,V,W)||V;return X.apply(z,G)}return V.apply(z,G)}};return(0,o.Z)().wrapActionsBeforeExecute?Y:(this.option("onActionCreated")||g.ZT)(this,Y,W)||Y},on(B,W){return this._eventsStrategy.on(B,W),this},off(B,W){return this._eventsStrategy.off(B,W),this},hasActionSubscription:function(B){return!!this._options.silent(B)||this._eventsStrategy.hasEvent(k(B))},isOptionDeprecated(B){return this._options.isDeprecated(B)},_setOptionWithoutOptionChange(B,W){this._cancelOptionChange=B,this.option(B,W),this._cancelOptionChange=!1},_getOptionValue(B,W){var z=this.option(B);return(0,C.mf)(z)?z.bind(W)():z},option(){return this._options.option(...arguments)},resetOption(B){this.beginUpdate(),this._options.reset(B),this.endUpdate()}})},8506:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>s});var o=u(9904);const I=new(u(8174).Z);var C=u(9644),g=u(6165);I.add(function(l,d){o.Z.fn[l]=function(h){var x,v="string"==typeof h;if(v){var b=h,y=[].slice.call(arguments).slice(1);this.each(function(){var E=d.getInstance(this);if(!E)throw C.Z.Error("E0009",l);var O=E[b].apply(E,y);void 0===x&&(x=O)})}else this.each(function(){var E=d.getInstance(this);E?E.option(h):new d(this,h)}),x=this;return x}});const s=function(l,d,h){h?d[l]=h:h=d,(0,g.u2)(h,l),I.fire(l,h)}},7572:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>a});var o=u(5873),c=u(9644),I={rtlEnabled:!1,defaultCurrency:"USD",defaultUseCurrencyAccountingStyle:!0,oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:p=>{"{"!==p.trim().charAt(0)&&(p="{"+p+"}");try{return new Function("return "+p)()}catch(s){throw c.Z.Error("E3018",s,p)}}},C=["decimalSeparator","thousandsSeparator"],g=function(){if(!arguments.length)return I;var p=arguments.length<=0?void 0:arguments[0];C.forEach(s=>{if(p[s]){var l="Now, the ".concat(s," is selected based on the specified locale.");c.Z.log("W0003","config",s,"19.2",l)}}),(0,o.l)(I,p)};typeof DevExpress<"u"&&DevExpress.config&&g(DevExpress.config);const a=g},2941:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>P});var o=u(1805),c=u(9904),I=u(4514),C=u(5873),g=u(1828),a=u(2718),p=u(9644),s=u(5365),l=u(3068),d=u(3824),h=u(4562),v=u(6718),x=u(1469),b=u(7572),y=(0,I.jW)(),E=(0,I.Jj)(),S={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},O={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},w={generic(B){var W=/windows phone/i.test(B)||B.match(/WPDesktop/),z=!W&&/Windows(.*)arm(.*)Tablet PC/i.test(B),V=!W&&!z&&/msapphost/i.test(B),U=/((intel|ppc) mac os x)/.test(B.toLowerCase());if(W||z||V||U)return{deviceType:W?"phone":z?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:U}},ios(B){if(/ip(hone|od|ad)/i.test(B)){var W=/ip(hone|od)/i.test(B),z=B.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:W?"phone":"tablet",platform:"ios",version:z?[parseInt(z[1],10),parseInt(z[2],10),parseInt(z[3]||0,10)]:[],grade:480===E.screen.height?"B":"A"}}},android(B){if(/android|htc_|silk/i.test(B)){var W=/mobile/i.test(B),z=B.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),V=z?[parseInt(z[1],10),parseInt(z[2]||0,10),parseInt(z[3]||0,10)]:[];return{deviceType:W?"phone":"tablet",platform:"android",version:V,grade:V.length>1&&(V[0]<4||4===V[0]&&V[1]<4)?"B":"A"}}}},k=new class T{constructor(W){this._window=W?.window||E,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new h.m(this),this.changed=(0,s.Z)(),(0,I.Ym)()&&(l.Z.add(this._recalculateOrientation.bind(this)),d.Z.add(this._recalculateOrientation.bind(this)))}current(W){if(W)return this._currentDevice=this._getDevice(W),this._forced=!0,void this.changed.fire();if(!this._currentDevice){W=void 0;try{W=this._getDeviceOrNameFromWindowScope()}catch{W=this._getDeviceNameFromSessionStorage()}finally{W||(W=this._getDeviceNameFromSessionStorage()),W&&(this._forced=!0)}this._currentDevice=this._getDevice(W)}return this._currentDevice}real(W){return(0,C.l)({},this._realDevice)}orientation(){return this._currentOrientation}isForced(){return this._forced}isRippleEmulator(){return!!this._window.tinyHippos}_getCssClasses(W){var z=[],V=this._realDevice;return(W=W||this.current()).deviceType&&(z.push("dx-device-".concat(W.deviceType)),"desktop"!==W.deviceType&&z.push("dx-device-mobile")),z.push("dx-device-".concat(V.platform)),V.version&&V.version.length&&z.push("dx-device-".concat(V.platform,"-").concat(V.version[0])),this.isSimulator()&&z.push("dx-simulator"),(0,b.Z)().rtlEnabled&&z.push("dx-rtl"),z}attachCssClasses(W,z){this._deviceClasses=this._getCssClasses(z).join(" "),(0,c.Z)(W).addClass(this._deviceClasses)}detachCssClasses(W){(0,c.Z)(W).removeClass(this._deviceClasses)}isSimulator(){try{return this._isSimulator||(0,I.Ym)()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch{return!1}}forceSimulator(){this._isSimulator=!0}_getDevice(W){if("genericPhone"===W&&(W={deviceType:"phone",platform:"generic",generic:!0}),(0,g.PO)(W))return this._fromConfig(W);var z;if(W){if(!(z=S[W]))throw p.Z.Error("E0005")}else z=y.userAgent;return this._fromUA(z)}_getDeviceOrNameFromWindowScope(){var W;return(0,I.Ym)()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(W=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),W}_getDeviceNameFromSessionStorage(){var W=(0,v.y)();if(W){var z=W.getItem("dx-force-device");try{return JSON.parse(z)}catch{return z}}}_fromConfig(W){var z=(0,C.l)({},O,this._currentDevice,W);return(0,C.l)(z,{phone:"phone"===z.deviceType,tablet:"tablet"===z.deviceType,android:"android"===z.platform,ios:"ios"===z.platform,generic:"generic"===z.platform})}_fromUA(W){var z;return(0,a.S6)(w,(V,U)=>!(z=U(W))),z?this._fromConfig(z):O}_changeOrientation(){var W=(0,c.Z)(this._window),z=(0,o.Cr)(W)>(0,o.dz)(W)?"portrait":"landscape";this._currentOrientation!==z&&(this._currentOrientation=z,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:z}]))}_recalculateOrientation(){var W=(0,o.dz)(this._window);this._currentWidth!==W&&(this._currentWidth=W,this._changeOrientation())}on(W,z){return this._eventsStrategy.on(W,z),this}off(W,z){return this._eventsStrategy.off(W,z),this}},R=(0,x.S3)();R&&k.attachCssClasses(R),x.Wg.add((B,W)=>{k.detachCssClasses(W),k.attachCssClasses(B)});const P=k},9897:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>l});var o=u(2793),c=u(7674),I=u(3359),s={querySelectorAll:(d,h)=>d.querySelectorAll(h),elementMatches(d,h){return(d.matches||d.matchesSelector||d.mozMatchesSelector||d.msMatchesSelector||d.oMatchesSelector||d.webkitMatchesSelector||(x=>{var b=d.document||d.ownerDocument;if(!b)return!1;for(var y=this.querySelectorAll(b,x),E=0;E<y.length;E++)if(y[E]===d)return!0})).call(d,h)},createElement(d,h){return(h=h||this._document).createElement(d)},createElementNS(d,h,v){return(v=v||this._document).createElementNS(d,h)},createTextNode(d,h){return(h=h||this._document).createTextNode(d)},isNode:d=>d&&"object"==typeof d&&"nodeType"in d&&"nodeName"in d,isElementNode:d=>d&&1===d.nodeType,isTextNode:d=>d&&3===d.nodeType,isDocument:d=>d&&9===d.nodeType,isDocumentFragment:d=>d&&11===d.nodeType,removeElement(d){var h=d&&d.parentNode;h&&h.removeChild(d)},insertElement(d,h,v){d&&h&&d!==h&&(v?d.insertBefore(h,v):d.appendChild(h))},getAttribute:(d,h)=>d.getAttribute(h),setAttribute(d,h,v){d.setAttribute(h,v)},removeAttribute(d,h){d.removeAttribute(h)},setProperty(d,h,v){d[h]=v},setText(d,h){d&&(d.textContent=h)},setClass(d,h,v){1===d.nodeType&&h&&(v?d.classList.add(h):d.classList.remove(h))},setStyle(d,h,v){d.style[h]=v||""},_document:typeof document>"u"?void 0:document,getDocument(){return this._document},getActiveElement(d){return this.getRootNode(d).activeElement},getRootNode(d){var h,v;return null!==(h=null==d||null===(v=d.getRootNode)||void 0===v?void 0:v.call(d))&&void 0!==h?h:this._document},getBody(){return this._document.body},createDocumentFragment(){return this._document.createDocumentFragment()},getDocumentElement(){return this._document.documentElement},getLocation(){return this._document.location},getSelection(){return this._document.selection},getReadyState(){return this._document.readyState},getHead(){return this._document.head},hasDocumentProperty(d){return d in this._document},listen:(d,h,v,x)=>d&&"addEventListener"in d?(d.addEventListener(h,v,x),()=>{d.removeEventListener(h,v)}):c.ZT,elementsFromPoint(d,h,v){var x=this.getRootNode(v);return x.host?(0,I.f)(d,h,x):x.elementsFromPoint(d,h)}};const l=(0,o.Z)(s)},8893:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>V});var o=u(9904),c=u(7572),I=u(9644),C=u(3824),g=u(4430),a=u(1828),p=u(7674),s=u(5873),l=u(6868),d=u(1880),h=u(4542),E=new l.k(U=>{var{model:K,parent:Y}=U,J=K.widget;if(!J)return(0,o.Z)();var j=(0,o.Z)("<div>"),ee=K.options||{};return Y?Y._createComponent(j,J,ee):j[J](ee),j});class S{constructor(K,Y){this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=Y||"template",this._createElement=K||h.gi,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}static createDefaultOptions(){return{integrationOptions:{watchMethod:function(K,Y){var J=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return J.skipImmediate||Y(K()),p.ZT},templates:{"dx-polymorph-widget":E},useDeferUpdateForTemplates:!0}}}get anonymousTemplateName(){return this._anonymousTemplateName}addDefaultTemplates(K){this._defaultTemplates=(0,s.l)({},this._defaultTemplates,K)}dispose(){this._tempTemplates.forEach(K=>{K.template.dispose&&K.template.dispose()}),this._tempTemplates=[]}extractTemplates(K){return{templates:this._extractTemplates(K),anonymousTemplateMeta:this._extractAnonymousTemplate(K)}}_extractTemplates(K){var Y=(0,h.hK)(K,"dxTemplate"),J=(0,h.ZE)(Y);return Y.forEach(j=>{var{element:ee,options:{name:G}}=j;ee===J[G]?(0,o.Z)(ee).addClass("dx-template-wrapper").detach():(0,o.Z)(ee).remove()}),Object.keys(J).map(j=>({name:j,template:this._createTemplate(J[j])}))}_extractAnonymousTemplate(K){var Y=K.contents().detach();return Y.filter((j,ee)=>{var G=3===ee.nodeType,q=(0,o.Z)(ee).text().trim().length<1;return!(G&&q)}).length>0?{template:this._createTemplate(Y),name:this._anonymousTemplateName}:{}}_createTemplateIfNeeded(K){var Y=this._tempTemplates.filter(j=>j.source===(0,h.TM)(K))[0];if(Y)return Y.template;var J=this._createTemplate(K);return this._tempTemplates.push({template:J,source:(0,h.TM)(K)}),J}_createTemplate(K){return this._createElement((0,h.v_)(K))}getTemplate(K,Y,J,j){var{isAsyncTemplate:ee,skipTemplates:G}=J;return(0,a.mf)(K)?new l.k(q=>{var Z=K.apply(j,(0,h.Wl)(q));if(!(0,a.$K)(Z))return new d.s;var X=!1,M=(0,h.t0)(Z,fe=>fe.nodeType||(0,a.ZU)(fe)&&!(0,o.Z)(fe).is("script")?new l.k(()=>fe):(X=!0,this._createTemplate(fe)),Y,ee,G,this._defaultTemplates),oe=M.render(q);return X&&M.dispose&&M.dispose(),oe}):(0,h.t0)(K,this._createTemplateIfNeeded,Y,ee,G,this._defaultTemplates)}}var O=u(6165),w=u(3359),T=u(5610),k=u(2718),R=u(6881),P=u(4514),B=u(114),{abstract:W}=g.w,z=g.w.inherit({_getDefaultOptions(){return(0,s.l)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,c.Z)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?S.createDefaultOptions():{})},ctor(U,K){this._customClass=null,this._createElement(U),(0,O.nf)(this._$element,this,this._dispose),this.callBase(K)},_createElement(U){this._$element=(0,o.Z)(U)},_getSynchronizableOptionsForCreateComponent:()=>["rtlEnabled","disabled","templatesRenderAsynchronously"],_checkFunctionValueDeprecation:function(U){this.option("_ignoreFunctionValueDeprecation")||U.forEach(K=>{(0,a.mf)(this.option(K))&&I.Z.log("W0017",K)})},_visibilityChanged:W,_dimensionChanged:W,_init(){this.callBase(),this._checkFunctionValueDeprecation(["width","height","maxHeight","maxWidth","minHeight","minWidth","popupHeight","popupWidth"]),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice(U){this.callBase([].concat(this.constructor._classCustomRules||[],U||[]))},_isInitialOptionValue(U){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),U))&&this.callBase(U)},_attachWindowResizeCallback(){if(this._isDimensionChangeSupported()){var U=this._windowResizeCallBack=this._dimensionChanged.bind(this);C.Z.add(U)}},_isDimensionChangeSupported(){return this._dimensionChanged!==W},_renderComponent(){this._initMarkup(),(0,P.Ym)()&&this._render()},_initMarkup(){var{rtlEnabled:U}=this.option()||{};this._renderElementAttributes(),this._toggleRTLDirection(U),this._renderVisibilityChange(),this._renderDimensions()},_render(){this._attachVisibilityChangeHandlers(),(0,w.R)(this.$element())},_renderElementAttributes(){var{elementAttr:U}=this.option()||{},K=(0,s.l)({},U),Y=K.class;delete K.class,this.$element().attr(K).removeClass(this._customClass).addClass(Y),this._customClass=Y},_renderVisibilityChange(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions(){var U=this.$element(),K=U.get(0),Y=this._getOptionValue("width",K),J=this._getOptionValue("height",K);this._isCssUpdateRequired(K,J,Y)&&U.css({width:null===Y?"":Y,height:null===J?"":J})},_isCssUpdateRequired:(U,K,Y)=>!!((0,a.$K)(Y)||(0,a.$K)(K)||U.style.width||U.style.height),_attachDimensionChangeHandlers(){var U=this.$element(),K="".concat(this.NAME,"VisibilityChange");B.SI.off(U,{namespace:K}),B.SI.on(U,()=>this._dimensionChanged(),{namespace:K})},_attachVisibilityChangeHandlers(){if(this._isVisibilityChangeSupported()){var U=this.$element(),K="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),B.WD.off(U,{namespace:K}),B.WD.on(U,()=>this._checkVisibilityChanged("shown"),()=>this._checkVisibilityChanged("hiding"),{namespace:K})}},_isVisible(){return this.$element().is(":visible")},_checkVisibilityChanged(U){this._isVisible()&&("hiding"!==U||this._isHidden?"shown"===U&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported(){return this._visibilityChanged!==W&&(0,P.Ym)()},_clean:p.ZT,_modelByElement(){var{modelByElement:U}=this.option(),K=this.$element();return U?U(K):void 0},_invalidate(){if(this._isUpdateAllowed())throw I.Z.Error("E0007");this._requireRefresh=!0},_refresh(){this._clean(),this._renderComponent()},_dispose(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback(){this._isDimensionChangeSupported()&&C.Z.remove(this._windowResizeCallBack)},_toggleRTLDirection(U){this.$element().toggleClass("dx-rtl",U)},_createComponent(U,K){var Y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},J=(0,p.h3)(this._getSynchronizableOptionsForCreateComponent(),M=>!(M in Y)),{integrationOptions:j}=this.option(),{nestedComponentOptions:ee}=this.option(),G=(0,s.l)({integrationOptions:j},(ee=ee||p.ZT)(this));J.forEach(M=>G[M]=this.option(M)),this._extendConfig(Y,G);var q=void 0;if((0,a.HD)(K)){var Z=(0,o.Z)(U)[K](Y);q=Z[K]("instance")}else U&&((q=K.getInstance(U))?q.option(Y):q=new K(U,Y));if(q){var X=M=>{var{name:oe,value:fe}=M;J.includes(oe)&&q.option(oe,fe)};this.on("optionChanged",X),q.on("disposing",()=>this.off("optionChanged",X))}return q},_extendConfig(U,K){(0,k.S6)(K,(Y,J)=>{!Object.prototype.hasOwnProperty.call(U,Y)&&(U[Y]=J)})},_defaultActionConfig(){var U=this.$element(),K=this._modelByElement(U);return(0,s.l)(this.callBase(),{context:K})},_defaultActionArgs(){var U=this.$element(),K=this._modelByElement(U),Y=this.element();return(0,s.l)(this.callBase(),{element:Y,model:K})},_optionChanged(U){switch(U.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(U)}},_removeAttributes(U){for(var K=U.attributes,Y=K.length-1;Y>=0;Y--){var J=K[Y];if(J){var{name:j}=J;(!j.indexOf("aria-")||-1!==j.indexOf("dx-")||"role"===j||"style"===j||"tabindex"===j)&&U.removeAttribute(j)}}},_removeClasses(U){U.className=U.className.split(" ").filter(K=>0!==K.lastIndexOf("dx-",0)).join(" ")},_updateDOMComponent(U){U?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate(){var U=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(U)},$element(){return this._$element},element(){var U=this.$element();return(0,R.u)(U)},dispose(){var U=this.$element().get(0);(0,T.nK)(U,!0),U.textContent="",this._removeAttributes(U),this._removeClasses(U)},resetOption(U){if(this.callBase(U),"width"===U||"height"===U){var K=this.initialOption(U);!(0,a.$K)(K)&&this.$element().css(U,"")}},_getAnonymousTemplateName(){},_initTemplateManager(){if(!this._templateManager&&this._useTemplates()){var{integrationOptions:U={}}=this.option(),{createTemplate:K}=U;this._templateManager=new S(K,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates(){var{templates:U,anonymousTemplateMeta:K}=this._templateManager.extractTemplates(this.$element()),Y=this.option("integrationOptions.templates.".concat(K.name));U.forEach(J=>{var{name:j,template:ee}=J;this._options.silent("integrationOptions.templates.".concat(j),ee)}),K.name&&!Y&&(this._options.silent("integrationOptions.templates.".concat(K.name),K.template),this._options.silent("_hasAnonymousTemplateContent",!0))},_getTemplateByOption(U){return this._getTemplate(this.option(U))},_getTemplate(U){var K=this.option("integrationOptions.templates"),Y=this.option("templatesRenderAsynchronously"),J=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(U,K,{isAsyncTemplate:Y,skipTemplates:J},this)},_saveTemplate(U,K){this._setOptionWithoutOptionChange("integrationOptions.templates."+U,this._templateManager._createTemplate(K))},_useTemplates:()=>!0});z.getInstance=function(U){return(0,O.Bt)((0,o.Z)(U),this)},z.defaultOptions=function(U){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(U)};const V=z},6881:(Rn,he,u)=>{"use strict";u.d(he,{u:()=>c});function c(C){return function(C){return C&&C.get(0)}(C)}},5610:(Rn,he,u)=>{"use strict";u.d(he,{NU:()=>y,WD:()=>v,aT:()=>h,nK:()=>E});var g,o=u(9897),c=u(913),I=u(8174),C=new WeakMap,a=new I.Z,p=function(){};function h(){return g.data.apply(this,arguments)}function v(S){p=S}function y(S,O){return g.removeData.call(this,S,O)}function E(S,O){if(o.Z.isElementNode(S)){var w=S.getElementsByTagName("*");g.cleanData(w),O&&g.cleanData([S])}}!function(S){a.fire(S);var O=(g=S).cleanData;g.cleanData=function(w){return p(w),O.call(this,w)}}({data:function(){var S=arguments[0],O=arguments[1],w=arguments[2];if(S){var T=C.get(S);return T||C.set(S,T={}),void 0===O?T:2===arguments.length?T[O]:(T[O]=w,w)}},removeData:function(S,O){if(S)if(void 0===O)C.delete(S);else{var w=C.get(S);w&&delete w[O]}},cleanData:function(S){for(var O=0;O<S.length;O++)c.Z.off(S[O]),C.delete(S[O])}})},9644:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=(0,u(9389).Z)({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' parameter of the 'onCustomItemCreating' function is empty or contains invalid data. Assign a custom object or a Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v{2}. {3}.',W0017:'Setting the "{0}" property with a function is deprecated since v21.2',W0018:'Setting the "position" property with a function is deprecated since v21.2'})},4562:(Rn,he,u)=>{"use strict";u.d(he,{m:()=>C});var o=u(5365),c=u(2718),I=u(1828);class C{constructor(a){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._events={},this._owner=a,this._options=p}static create(a,p){return p?(0,I.mf)(p)?p(a):p:new C(a)}hasEvent(a){var p=this._events[a];return!!p&&p.has()}fireEvent(a,p){var s=this._events[a];return s&&s.fireWith(this._owner,p),this._owner}on(a,p){if((0,I.PO)(a))(0,c.S6)(a,(d,h)=>{this.on(d,h)});else{var s=this._events[a];s||(s=(0,o.Z)({syncStrategy:this._options.syncStrategy}),this._events[a]=s),(s.originalAdd||s.add).call(s,p)}}off(a,p){var s=this._events[a];s&&((0,I.mf)(p)?s.remove(p):s.empty())}dispose(){(0,c.S6)(this._events,(a,p)=>{p.empty()})}}},6492:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});const I=u(5031).Z.inherit({ctor:function(C){C&&(C=String(C)),this._value=this._normalize(C||this._generate())},_normalize:function(C){for(C=C.replace(/[^a-f0-9]/gi,"").toLowerCase();C.length<32;)C+="0";return[C.substr(0,8),C.substr(8,4),C.substr(12,4),C.substr(16,4),C.substr(20,12)].join("-")},_generate:function(){for(var C="",g=0;g<32;g++)C+=Math.round(15*Math.random()).toString(16);return C},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}})},3007:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>g});var o=u(4514),c=u(2793),I=(0,o.Jj)();const g=(0,c.Z)({getXhr:function(){return new I.XMLHttpRequest}})},8174:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});var o=u(2718),c=u(5365);class I{constructor(){this.memory=[],this.callbacks=(0,c.Z)()}add(g){(0,o.S6)(this.memory,(a,p)=>g.apply(g,p)),this.callbacks.add(g)}remove(g){this.callbacks.remove(g)}fire(){for(var g=arguments.length,a=new Array(g),p=0;p<g;p++)a[p]=arguments[p];this.memory.push(a),this.callbacks.fire.apply(this.callbacks,a)}}},3238:(Rn,he,u)=>{"use strict";u.d(he,{GR:()=>s,J3:()=>x,Ts:()=>d,u5:()=>h,vH:()=>v,wt:()=>p});var o=u(2941),c=u(1828),I=u(7674),C=u(5873),g=u(6738),a={},p=b=>{var y=o.Z.current();return b.reduce((E,S)=>{var{device:O,options:w}=S,T=O||{};return((0,c.mf)(T)?T(y):l(y,T))&&(0,C.l)(!0,E,w),E},{})},s=(b,y)=>"string"!=typeof b?b:{[b]:y},l=(b,y)=>(0,c.Qr)(y)||(0,I.U3)(b,[y]).length>0,d=b=>b.substr(b.lastIndexOf(".")+1),h=b=>b.substr(0,b.lastIndexOf(".")),v=function(b,y){return a[y]=a[y]||(0,g.vb)(y),a[y](b,{functionsAsIs:!0})},x=function(){var b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return b}},9904:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>w});var l,o=u(5610),c=u(9897),I=u(4514),C=u(1828),g=u(4356),a=u(1805),p=u(2819),s=(0,I.Jj)(),d=function(T,k){return T?"string"==typeof T?"body"===T?(this[0]=k?k.body:c.Z.getBody(),this.length=1,this):(k=k||c.Z.getDocument(),"<"===T[0]?(this[0]=c.Z.createElement(T.slice(1,-1),k),this.length=1,this):([].push.apply(this,c.Z.querySelectorAll(k,T)),this)):c.Z.isNode(T)||(0,C.FJ)(T)?(this[0]=T,this.length=1,this):Array.isArray(T)?([].push.apply(this,T),this):l(T.toArray?T.toArray():[T]):(this.length=0,this)};(l=function(T,k){return new d(T,k)}).fn={dxRenderer:!0};var h=function(T,k){for(var R=0;R<this.length;R++){var P=l(this[R]);P[T].apply(P,k)}return this},v=function(T,k,R){null!=R&&!1!==R?c.Z.setAttribute(T,k,R):c.Z.removeAttribute(T,k)};(d.prototype=l.fn).show=function(){return this.toggle(!0)},d.prototype.hide=function(){return this.toggle(!1)},d.prototype.toggle=function(T){return this[0]&&this.toggleClass("dx-state-invisible",!T),this},d.prototype.attr=function(T,k){if(this.length>1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return(0,C.Kn)(T)||void 0!==k?this:void 0;if(!this[0].getAttribute)return this.prop(T,k);if("string"==typeof T&&1===arguments.length){var R=this[0].getAttribute(T);return R??void 0}if((0,C.PO)(T))for(var P in T)this.attr(P,T[P]);else v(this[0],T,k);return this},d.prototype.removeAttr=function(T){return this[0]&&c.Z.removeAttribute(this[0],T),this},d.prototype.prop=function(T,k){if(!this[0])return this;if("string"==typeof T&&1===arguments.length)return this[0][T];if((0,C.PO)(T))for(var R in T)this.prop(R,T[R]);else c.Z.setProperty(this[0],T,k);return this},d.prototype.addClass=function(T){return this.toggleClass(T,!0)},d.prototype.removeClass=function(T){return this.toggleClass(T,!1)},d.prototype.hasClass=function(T){if(!this[0]||void 0===this[0].className)return!1;for(var k=T.split(" "),R=0;R<k.length;R++)if(this[0].classList){if(this[0].classList.contains(k[R]))return!0}else if((((0,C.HD)(this[0].className)?this[0].className:c.Z.getAttribute(this[0],"class"))||"").split(" ").indexOf(k[R])>=0)return!0;return!1},d.prototype.toggleClass=function(T,k){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!T)return this;k=void 0===k?!this.hasClass(T):k;for(var R=T.split(" "),P=0;P<R.length;P++)c.Z.setClass(this[0],R[P],k);return this},d.prototype.html=function(T){return arguments.length?(this.empty(),"string"==typeof T&&!(0,p.N)(T)||"number"==typeof T?(this[0].innerHTML=T,this):this.append((0,p.r)(T))):this[0].innerHTML};var x=function(T,k){if(this[0]&&T){"string"==typeof T?T=(0,p.r)(T):T.nodeType?T=[T]:(0,C.kE)(T)&&(T=[c.Z.createTextNode(T)]);for(var R=0;R<T.length;R++){var P=T[R],B=this[0];"TABLE"===B.tagName&&"TR"===P.tagName&&B.tBodies&&B.tBodies.length&&(B=B.tBodies[0]),c.Z.insertElement(B,P.nodeType?P:P[0],k)}}},b=function(T,k){if(this[0]&&this[0].style&&!(null===k||"number"==typeof k&&isNaN(k))){T=(0,g.Hj)(T);for(var R=0;R<this.length;R++)this[R].style[T]=(0,g.bh)(T,k)}};d.prototype.css=function(T,k){if((0,C.HD)(T)){if(2!==arguments.length){if(!this[0])return;T=(0,g.Hj)(T);var R=s.getComputedStyle(this[0])[T]||this[0].style[T];return(0,C.kE)(R)?R.toString():R}b.call(this,T,k)}else if((0,C.PO)(T))for(var P in T)b.call(this,P,T[P]);return this},d.prototype.prepend=function(T){if(arguments.length>1){for(var k=0;k<arguments.length;k++)this.prepend(arguments[k]);return this}return x.apply(this,[T,this[0].firstChild]),this},d.prototype.append=function(T){if(arguments.length>1){for(var k=0;k<arguments.length;k++)this.append(arguments[k]);return this}return x.apply(this,[T]),this},d.prototype.prependTo=function(T){if(this.length>1){for(var k=this.length-1;k>=0;k--)l(this[k]).prependTo(T);return this}return(T=l(T))[0]&&c.Z.insertElement(T[0],this[0],T[0].firstChild),this},d.prototype.appendTo=function(T){return this.length>1?h.call(this,"appendTo",arguments):(c.Z.insertElement(l(T)[0],this[0]),this)},d.prototype.insertBefore=function(T){return T&&T[0]&&c.Z.insertElement(T[0].parentNode,this[0],T[0]),this},d.prototype.insertAfter=function(T){return T&&T[0]&&c.Z.insertElement(T[0].parentNode,this[0],T[0].nextSibling),this},d.prototype.before=function(T){return this[0]&&c.Z.insertElement(this[0].parentNode,T[0],this[0]),this},d.prototype.after=function(T){return this[0]&&c.Z.insertElement(this[0].parentNode,T[0],this[0].nextSibling),this},d.prototype.wrap=function(T){if(this[0]){var k=l(T);k.insertBefore(this),k.append(this)}return this},d.prototype.wrapInner=function(T){var k=this.contents();return k.length?k.wrap(T):this.append(T),this},d.prototype.replaceWith=function(T){if(T&&T[0])return T.is(this)?this:(T.insertBefore(this),this.remove(),T)},d.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):((0,o.nK)(this[0],!0),c.Z.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(c.Z.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):((0,o.nK)(this[0]),c.Z.setText(this[0],""),this)},d.prototype.clone=function(){for(var T=[],k=0;k<this.length;k++)T.push(this[k].cloneNode(!0));return l(T)},d.prototype.text=function(T){if(!arguments.length){for(var k="",R=0;R<this.length;R++)k+=this[R]&&this[R].textContent||"";return k}var P=(0,C.mf)(T)?T():T;return(0,o.nK)(this[0],!1),c.Z.setText(this[0],(0,C.$K)(P)?P:""),this},d.prototype.val=function(T){return 1===arguments.length?this.prop("value",(0,C.$K)(T)?T:""):this.prop("value")},d.prototype.contents=function(){if(!this[0])return l();var T=[];return T.push.apply(T,this[0].childNodes),l(T)},d.prototype.find=function(T){var k=l();if(!T)return k;var P,R=[];if("string"==typeof T)for(T=T.trim(),P=0;P<this.length;P++){var B=this[P];if(c.Z.isElementNode(B)){var W=B.getAttribute("id"),z=W||"dx-query-children";W||v(B,"id",z);var V=(z="[id='"+z+"'] ")+T.replace(/([^\\])(,)/g,"$1, "+z);R.push.apply(R,c.Z.querySelectorAll(B,V)),v(B,"id",W)}else(c.Z.isDocument(B)||c.Z.isDocumentFragment(B))&&R.push.apply(R,c.Z.querySelectorAll(B,T))}else for(P=0;P<this.length;P++)T=c.Z.isNode(T)?T:T[0],this[P]!==T&&this[P].contains(T)&&R.push(T);return k.add(R)};var y=function(T,k){var R;return!(k=null!==(R=k.host)&&void 0!==R?R:k).nodeType||!!(k.offsetWidth||k.offsetHeight||k.getClientRects().length)};d.prototype.filter=function(T){if(!T)return l();if(":visible"===T)return this.filter(y);if(":hidden"===T)return this.filter(function(W,z){return!y(0,z)});for(var k=[],R=0;R<this.length;R++){var P=this[R];if(c.Z.isElementNode(P)&&"string"===(0,C.dt)(T))c.Z.elementMatches(P,T)&&k.push(P);else if(c.Z.isNode(T)||(0,C.FJ)(T))T===P&&k.push(P);else if((0,C.mf)(T))T.call(P,R,P)&&k.push(P);else for(var B=0;B<T.length;B++)T[B]===P&&k.push(P)}return l(k)},d.prototype.not=function(T){for(var k=[],R=this.filter(T).toArray(),P=0;P<this.length;P++)-1===R.indexOf(this[P])&&k.push(this[P]);return l(k)},d.prototype.is=function(T){return!!this.filter(T).length},d.prototype.children=function(T){for(var k=[],R=0;R<this.length;R++)for(var P=this[R]?this[R].childNodes:[],B=0;B<P.length;B++)c.Z.isElementNode(P[B])&&k.push(P[B]);return k=l(k),T?k.filter(T):k},d.prototype.siblings=function(){var T=this[0];if(!T||!T.parentNode)return l();for(var k=[],R=T.parentNode.childNodes||[],P=0;P<R.length;P++){var B=R[P];c.Z.isElementNode(B)&&B!==T&&k.push(B)}return l(k)},d.prototype.each=function(T){for(var k=0;k<this.length&&!1!==T.call(this[k],k,this[k]);k++);},d.prototype.index=function(T){return T?(T=l(T),this.toArray().indexOf(T[0])):this.parent().children().index(this)},d.prototype.get=function(T){return this[T<0?this.length+T:T]},d.prototype.eq=function(T){return l(this[T=T<0?this.length+T:T])},d.prototype.first=function(){return this.eq(0)},d.prototype.last=function(){return this.eq(-1)},d.prototype.select=function(){for(var T=0;T<this.length;T+=1)this[T].select&&this[T].select();return this},d.prototype.parent=function(T){if(!this[0])return l();var k=l(this[0].parentNode);return!T||k.is(T)?k:l()},d.prototype.parents=function(T){for(var k=[],R=this.parent();R&&R[0]&&!c.Z.isDocument(R[0]);)c.Z.isElementNode(R[0])&&(!T||R.is(T))&&k.push(R.get(0)),R=R.parent();return l(k)},d.prototype.closest=function(T){if(this.is(T))return this;for(var k=this.parent();k&&k.length;){if(k.is(T))return k;k=k.parent()}return l()},d.prototype.next=function(T){if(!this[0])return l();var k=l(this[0].nextSibling);if(!arguments.length)return k;for(;k&&k.length;){if(k.is(T))return k;k=k.next()}return l()},d.prototype.prev=function(){return this[0]?l(this[0].previousSibling):l()},d.prototype.add=function(T){for(var k=l(T),R=this.toArray(),P=0;P<k.length;P++){var B=k[P];-1===R.indexOf(B)&&R.push(B)}return l(R)};var E=[];d.prototype.splice=function(){return l(E.splice.apply(this,arguments))},d.prototype.slice=function(){return l(E.slice.apply(this,arguments))},d.prototype.toArray=function(){return E.slice.call(this)},d.prototype.offset=function(){if(this[0])return(0,a.os)(this[0])},d.prototype.offsetParent=function(){if(!this[0])return l();for(var T=l(this[0].offsetParent);T[0]&&"static"===T.css("position");)T=l(T[0].offsetParent);return T[0]?T:l(c.Z.getDocumentElement())},d.prototype.position=function(){if(this[0]){var T,k=parseFloat(this.css("marginTop")),R=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(T=this[0].getBoundingClientRect()).top-k,left:T.left-R};T=this.offset();var P=this.offsetParent(),B={top:0,left:0};return"HTML"!==P[0].nodeName&&(B=P.offset()),B={top:B.top+parseFloat(P.css("borderTopWidth")),left:B.left+parseFloat(P.css("borderLeftWidth"))},{top:T.top-B.top-k,left:T.left-B.left-R}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(T,k){T.scrollTo(k,T.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(T,k){T.scrollTo(T.pageXOffset,k)}}].forEach(function(T){var k=T.name;d.prototype[k]=function(R){if(this[0]){var P=(0,a.C_)(this[0]);return void 0===R?P?P[T.offsetProp]:this[0][k]:(P?T.scrollWindow(P,R):this[0][k]=R,this)}}}),d.prototype.data=function(T,k){if(this[0])return arguments.length<2?o.aT.call(l,this[0],T):(o.aT.call(l,this[0],T,k),this)},d.prototype.removeData=function(T){return this[0]&&(0,o.NU)(this[0],T),this};var S=function(){return l.apply(this,arguments)};Object.defineProperty(S,"fn",{enumerable:!0,configurable:!0,get:function(){return l.fn},set:function(T){l.fn=T}});const w=S},9870:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(7674),c=u(4514),I=(0,c.Jj)(),C={observe:o.ZT,unobserve:o.ZT,disconnect:o.ZT};const p=new class g{constructor(){if(!(0,c.Ym)()||!I.ResizeObserver)return C;this._callbacksMap=new Map,this._observer=new I.ResizeObserver(l=>{l.forEach(d=>{var h;null===(h=this._callbacksMap.get(d.target))||void 0===h||h(d)})})}observe(l,d){this._callbacksMap.set(l,d),this._observer.observe(l)}unobserve(l){this._callbacksMap.delete(l),this._observer.unobserve(l)}disconnect(){this._callbacksMap.clear(),this._observer.disconnect()}}},4823:(Rn,he,u)=>{"use strict";u.d(he,{c:()=>p});var o=u(9904),c=u(6246),I=u(913),C=u(4416),g=u(1828);class p extends c.S{constructor(l,d,h,v){super(),this._render=l,this._fields=d,this._fieldsMap=v||{},this._watchMethod=h}_renderCore(l){var d=(0,o.Z)(l.container),h=function(s,l,d,h,v){var x,y,b=(y=s,l(()=>y,function(y){var E,S,O,w,T,k,R,P;x&&x(),(0,g.pt)(y)?v(y):(E=y,S=l,w=h,T=v,k={},R=(O=d).slice(),P=O.map(function(B){var W=w[B];return S(W?()=>W(E):()=>E[B],function(z){if(k[B]=z,R.length){var V=R.indexOf(B);V>=0&&R.splice(V,1)}R.length||T(k)})}),x=function(){P.forEach(B=>B())})}));return function(){x&&x(),b&&b()}}(l.model,this._watchMethod,this._fields,this._fieldsMap,v=>{d.empty(),this._render(d,v,l.model)});return I.Z.on(d,C.x,h),d.contents()}}},1927:(Rn,he,u)=>{"use strict";u.d(he,{s:()=>c});var o=u(6246);class c extends o.S{constructor(C){super(),this.name=C}}},1880:(Rn,he,u)=>{"use strict";u.d(he,{s:()=>I});var o=u(9904),c=u(6246);class I extends c.S{_renderCore(){return(0,o.Z)()}}},6868:(Rn,he,u)=>{"use strict";u.d(he,{k:()=>I});var o=u(6246),c=u(6520);class I extends o.S{constructor(g){super(),this._render=g}_renderCore(g){return(0,c.H_)(this._render(g))}}},6246:(Rn,he,u)=>{"use strict";u.d(he,{S:()=>s});var o=u(9904),c=u(9897),I=u(5365),C=u(6520),g=u(2526),a=u(9644),p=(0,I.Z)({syncStrategy:!0});class s{render(d){var v,h=(d=d||{}).onRendered;return delete d.onRendered,v=d.renovated&&d.transclude&&this._element?(0,o.Z)("<div>").append(this._element).contents():this._renderCore(d),this._ensureResultInContainer(v,d.container),p.fire(v,d.container),h&&h(),v}_ensureResultInContainer(d,h){if(h){var v=(0,o.Z)(h),x=(0,C.r3)(v.get(0),d.get(0));v.append(d),x||c.Z.getBody().contains(v.get(0))&&(0,g.Uo)(d)}}_renderCore(){throw a.Z.Error("E0001")}}},9800:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ee});var o=u(4270),c=u(9897),I=u(3007),C=u(4514),g=u(5873),a=u(1828),p=u(2793),s=(0,C.Jj)(),l="success",d="error",S=function(G){var q=c.Z.createElement("script");for(var Z in G)q[Z]=G[Z];return q},O=function(G){G.parentNode.removeChild(G)},w=function(G){return c.Z.getHead().appendChild(G)},T=function(G){var q=S({text:G});w(q),O(q)};function Y(G){return(G.method||"GET").toUpperCase()}const ee=(0,p.Z)({sendRequest:function(G){var Te,q=I.Z.getXhr(),Z=new o.BH,X=Z.promise(),M=!(0,a.$K)(G.async)||G.async,oe=G.dataType,fe=G.timeout||0;G.crossDomain=function(G){if(!(0,C.Ym)())return!0;var q=!1,Z=c.Z.createElement("a"),X=c.Z.createElement("a");Z.href=s.location.href;try{X.href=G,X.href=X.href,q=Z.protocol+"//"+Z.host!=X.protocol+"//"+X.host}catch{q=!0}return q}(G.url);var Be="jsonp"===oe||"script"===oe;void 0===G.cache&&(G.cache=!Be);var ze=function(G){if("jsonp"===G.dataType){var q=Math.random().toString().replace(/\D/g,""),Z=G.jsonpCallback||"dxCallback"+Date.now()+"_"+q,X=G.jsonp||"callback";return G.data=G.data||{},G.data[X]=Z,Z}}(G),ae=function(G){var q=G.headers||{};return q["Content-Type"]=q["Content-Type"]||function(G){var q;return G.data&&!G.upload&&"GET"!==Y(G)&&(q="application/x-www-form-urlencoded;charset=utf-8"),G.contentType||q}(G),q.Accept=q.Accept||function(G){var q=G.dataType||"*",Z="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",X={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:Z,script:Z};return(0,g.x)(X,G.accepts,!0),X[q]?X[q]+("*"!==q?", */*; q=0.01":""):X["*"]}(G),!G.crossDomain&&!q["X-Requested-With"]&&(q["X-Requested-With"]="XMLHttpRequest"),q}(G),_e=function(G,q){var Z=G.data,X="string"==typeof Z,M=G.url||s.location.href;return!X&&!G.cache&&((Z=Z||{})._=Date.now()),Z&&!G.upload&&(X||(Z=function(G){var q=[];for(var Z in G){var X=G[Z];void 0!==X&&(null===X&&(X=""),"function"==typeof X&&(X=X()),q.push(encodeURIComponent(Z)+"="+encodeURIComponent(X)))}return q.join("&")}(Z)),"GET"===Y(G)?(""!==Z&&(M+=(M.indexOf("?")>-1?"&":"?")+Z),Z=null):q["Content-Type"]&&q["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(Z=Z.replace(/%20/g,"+"))),{url:M,parameters:Z}}(G,ae),ye=_e.url,ne=_e.parameters;if(ze&&(s[ze]=function(pe){Z.resolve(pe,l,q)}),G.crossDomain&&Be)return function(G){var q=S({src:G});return new Promise(function(Z,X){var M={load:Z,error:X},oe=function(Te){M[Te.type](),O(q)};for(var fe in M)c.Z.listen(q,fe,oe);w(q)})}(ye).then(function(){"jsonp"!==oe&&Z.resolve(null,l,q)},function(){Z.reject(q,d)}),X;if(G.crossDomain&&!("withCredentials"in q))return Z.reject(q,d),X;if(q.open(Y(G),ye,M,G.username,G.password),M&&(q.timeout=fe,Te=function(G,q){return G&&setTimeout(function(){q.customStatus="timeout",q.abort()},G)}(fe,q)),q.onreadystatechange=function(pe){4===q.readyState&&(clearTimeout(Te),function(G){return 200<=G&&G<300}(q.status)?function(G){return 204!==G}(q.status)?function(G,q,Z){var X=function(G){return G.responseType&&"text"!==G.responseType||"string"!=typeof G.responseText?G.response:G.responseText}(q);switch(Z){case"jsonp":T(X);break;case"script":T(X),G.resolve(X,l,q);break;case"json":try{G.resolve(JSON.parse(X),l,q)}catch(M){G.reject(q,"parsererror",M)}break;default:G.resolve(X,l,q)}}(Z,q,oe):Z.resolve(null,"nocontent",q):Z.reject(q,q.customStatus||d))},G.upload&&(q.upload.onprogress=G.upload.onprogress,q.upload.onloadstart=G.upload.onloadstart,q.upload.onabort=G.upload.onabort),G.xhrFields)for(var ce in G.xhrFields)q[ce]=G.xhrFields[ce];for(var le in"arraybuffer"===G.responseType&&(q.responseType=G.responseType),ae)Object.prototype.hasOwnProperty.call(ae,le)&&(0,a.$K)(ae[le])&&q.setRequestHeader(le,ae[le]);return G.beforeSend&&G.beforeSend(q),q.send(ne),X.abort=function(){q.abort()},X}})},9960:(Rn,he,u)=>{"use strict";u.d(he,{Ed:()=>p,R1:()=>s,Sq:()=>l,rZ:()=>a,sE:()=>g,vM:()=>d});var o=u(1828),c=u(2834),I=u(7572);function C(h){return h.reduce((v,x)=>{var b;return v[x]=(null!==(b=v[x])&&void 0!==b?b:0)+1,v},{})}var g=function(h){return Array.isArray(h)?h:[h]},a=function(h){return[...new Set(h)]},p=function(h,v){var x=C(v);return h.filter(b=>x[b]--)},s=function(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],x=C(v);return h.filter(b=>!x[b]--)},l=function(h,v,x,b){var y={},{useLegacyVisibleIndex:E}=(0,I.Z)(),S=0,O=w=>!(0,o.$K)(w[v])&&(!b||b(w));h.forEach(w=>{var T=w[v];T>=0?(y[T]=y[T]||[],w===x?y[T].unshift(w):y[T].push(w)):w[v]=void 0}),E||h.forEach(w=>{if(O(w)){for(;y[S];)S++;y[S]=[w],S++}}),S=0,(0,c.jS)(y,function(w,T){T.forEach(k=>{w>=0&&(k[v]=S++)})}),E&&h.forEach(w=>{O(w)&&(w[v]=S++)})},d=(h,v)=>h.reduce((x,b)=>{var y,E=v(b);return x[E]=null!==(y=x[E])&&void 0!==y?y:[],x[E].push(b),x},{})},31:(Rn,he,u)=>{"use strict";u.d(he,{E:()=>C,h:()=>g});var o=u(1828),c=function(a,p){var s=p(a);if((0,o.Kn)(s))try{return JSON.stringify(s)}catch{return s}return s},I=function(a,p,s,l){return p[s[c(a,l)]]},C=function(a,p){if(a.length!==p.length)return!1;for(var s=0;s<p.length;s++)if(a[s]!==p[s])return!1;return!0},g=function(a,p,s,l){var d={},h={},v=0,x=0,b=[];a.forEach(function(B,W){var z=c(B,s);d[z]=W}),p.forEach(function(B,W){var z=c(B,s);h[z]=W});for(var y=Math.max(a.length,p.length),E=0;E<y+v;E++){var S=p[E],O=E-v+x,w=a[O];if(!S||w&&!I(w,p,h,s))w&&(b.push({type:"remove",key:s(w),index:E,oldItem:w}),x++,E--);else{var k=c(S,s),R=d[k],P=a[R];if(P){if(R!==O)return;l(P,S)||b.push({type:"update",data:S,key:s(S),index:E,oldItem:P})}else v++,b.push({type:"insert",data:S,index:E})}}return b}},4722:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(5873),I=(0,u(4514).jW)(),C=/(webkit)[ /]([\w.]+)/,g=/(mozilla)(?:.*? rv:([\w.]+))/,a=s=>{s=s.toLowerCase();var l={},d=C.exec(s)||s.indexOf("compatible")<0&&g.exec(s)||[],h=d[1],v=d[2];return"webkit"===h&&(l.webkit=!0,s.indexOf("chrome")>=0||s.indexOf("crios")>=0?(h="chrome",v=(v=/(?:chrome|crios)\/(\d+\.\d+)/.exec(s))&&v[1]):s.indexOf("fxios")>=0?(h="mozilla",v=(v=/fxios\/(\d+\.\d+)/.exec(s))&&v[1]):s.indexOf("safari")>=0&&/version|phantomjs/.test(s)?(h="safari",v=(v=/(?:version|phantomjs)\/([0-9.]+)/.exec(s))&&v[1]):(h="unknown",v=(v=/applewebkit\/([0-9.]+)/.exec(s))&&v[1])),h&&(l[h]=!0,l.version=v),l};const p=(0,o.l)({_fromUA:a},a(I.userAgent))},4304:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=function(I){var C,g=function(){return C=I.apply(this,arguments),g=function(){return C},C};return function(){return g.apply(this,arguments)}}},5365:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});var o=function(C){this._options=C||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};o.prototype._fireCore=function(C,g){var a=this._firingIndexes,p=this._list,s=this._options.stopOnFalse,l=a.length;for(a[l]=0;a[l]<p.length&&(!1!==p[a[l]].apply(C,g)||!s);a[l]++);a.pop()},o.prototype.add=function(C){return"function"==typeof C&&(!this._options.unique||!this.has(C))&&this._list.push(C),this},o.prototype.remove=function(C){var g=this._list,a=this._firingIndexes,p=g.indexOf(C);if(p>-1&&(g.splice(p,1),this._firing&&a.length))for(var s=0;s<a.length;s++)p<=a[s]&&a[s]--;return this},o.prototype.has=function(C){var g=this._list;return C?g.indexOf(C)>-1:!!g.length},o.prototype.empty=function(C){return this._list=[],this},o.prototype.fireWith=function(C,g){var a=this._queue;if(g=(g=g||[]).slice?g.slice():g,this._options.syncStrategy)this._firing=!0,this._fireCore(C,g);else{if(a.push([C,g]),this._firing)return;for(this._firing=!0;a.length;){var p=a.shift();this._fireCore(p[0],p[1])}}return this._firing=!1,this._fired=!0,this},o.prototype.fire=function(){this.fireWith(this,arguments)},o.prototype.fired=function(){return this._fired};const I=function(C){return new o(C)}},7674:(Rn,he,u)=>{"use strict";u.d(he,{C$:()=>U,FH:()=>z,IS:()=>p,Rg:()=>E,Su:()=>y,TG:()=>P,U3:()=>O,Um:()=>T,Wi:()=>s,ZT:()=>V,bN:()=>S,bY:()=>ee,g0:()=>b,h3:()=>K,hr:()=>W,k3:()=>B,ku:()=>k});var v,o=u(7572),c=u(6492),I=u(4270),C=u(6738),g=u(2718),a=u(1828),p=function(G,q){return(0,a.$K)(G)?G:q},s=function(G,q){var Z=new I.BH,X=q||this,M={promise:Z.promise(),abort:function(){clearTimeout(fe),Z.rejectWith(X)}},oe=function(){var Te=G.call(X);Te&&Te.done&&(0,a.mf)(Te.done)?Te.done(function(){Z.resolveWith(X)}):Z.resolveWith(X)},fe=(arguments[2]||setTimeout)(oe,"number"==typeof q?q:0);return M},l=[],d=[],h=[],x=function(G,q,Z){if(v&&v!==G)return l.push(q),d.push(G),Z=Z||new I.BH,h.push(Z),Z;var X=v,M=h.length;v=G;var oe=q();return oe||(h.length>M?oe=I.gx.apply(this,h.slice(M)):Z&&Z.resolve()),v=X,Z&&oe&&oe.done&&oe.done(Z.resolve).fail(Z.reject),!v&&l.length&&("render"===d.shift()?b:y)(l.shift(),h.shift()),oe||(0,I.gx)()},b=function(G,q){return x("render",G,q)},y=function(G,q){return x("update",G,q)},E=function(G){return function(){var q=this;return x("render",function(){return G.call(q)})}},S=function(G){return function(){var q=this;return x("update",function(){return G.call(q)})}},O=function(G,q,Z){var X=[],M=0;return(0,g.S6)(q,(oe,fe)=>{var Te=0,Be=Z?Z(fe):fe;(0,g.S6)(G,(ze,ae)=>{var _e=Be[ze];if(void 0!==_e)return w(_e,ae)?void Te++:(Te=-1,!1)}),!(Te<M)&&(Te>M&&(X.length=0,M=Te),X.push(fe))}),X},w=function(G,q){if(Array.isArray(G)&&Array.isArray(q)){var Z=!1;return(0,g.S6)(G,(X,M)=>{if(M!==q[X])return Z=!0,!1}),!Z}return G===q},T=function(G){var q,Z;switch((0,a.dt)(G)){case"string":return G.split(/\s+/,2);case"object":return[null!==(q=G.x)&&void 0!==q?q:G.h,null!==(Z=G.y)&&void 0!==Z?Z:G.v];case"number":return[G];case"array":return G;default:return null}},k=function(G){var q=(0,a.HD)(G)?G:G.toString(),Z=q.match(/[^a-zA-Z0-9_]/g);return Z&&(0,g.S6)(Z,(X,M)=>{q=q.replace(M,"__"+M.charCodeAt()+"__")}),q},P=function(G,q){var Z=T(G),X=q?parseFloat(Z&&Z[0]):parseInt(Z&&Z[0],10),M=q?parseFloat(Z&&Z[1]):parseInt(Z&&Z[1],10);return isFinite(X)||(X=0),isFinite(M)||(M=X),{h:X,v:M}},B=function(G){if(G instanceof c.Z)return G.toString();if((0,a.Kn)(G)||Array.isArray(G))try{var q=JSON.stringify(G);return"{}"===q?G:q}catch{return G}return G},W=function(G){return G.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},z=function(G){var q=(0,o.Z)().serverDecimalSeparator;return(0,a.$K)(G)&&(G=G.toString().replace(".",q)),G},V=function(){},U=function(){return(new I.BH).resolve().promise()},K=function(G,q,Z){for(var X=[],oe=!Z,fe=0;fe<G.length;fe++)!!q(G[fe],fe)===oe&&X.push(G[fe]);return X},Y=function(G,q,Z){if(G.length!==q.length)return!1;for(var X=0;X<G.length;X++)if(!ee(G[X],q[X],Z+1))return!1;return!0},J=function(G,q,Z,X){for(var M in G)if(Object.prototype.hasOwnProperty.call(G,M)&&!ee(G[M],q[M],Z+1,X))return!1;for(var oe in q)if(!(oe in G))return!1;return!0},ee=function(G,q){var Z=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,X=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];G=(0,C.Ex)(G,!0),q=(0,C.Ex)(q,!0);var M=X?G===q:G==q;return!!(M||Z>=3)||((0,a.Kn)(G)&&(0,a.Kn)(q)?J(G,q,Z,X):!(!Array.isArray(G)||!Array.isArray(q))&&Y(G,q,Z))}},3425:(Rn,he,u)=>{"use strict";u.d(he,{f:()=>g});var o=u(9897),c=u(6738),I=u(1828),g=function(a,p){return a=(0,c.Ex)(a,!0),p=(0,c.Ex)(p,!0),a&&p&&(0,I.ZU)(a)&&(0,I.ZU)(p)?p.is(a):!(a==a||p==p)||(0===a&&0===p?function(a,p){return 1/a==1/p}(a,p):!(null!==a&&"object"==typeof a&&!o.Z.isElementNode(a))&&a===p)}},2160:(Rn,he,u)=>{"use strict";u.d(he,{k:()=>C});var o=u(1828),c=function(){},I=function(a){return typeof console>"u"||!(0,o.mf)(console[a])?c:console[a].bind(console)},C={info:I("info"),warn:I("warn"),error:I("error")}},6738:(Rn,he,u)=>{"use strict";u.d(he,{Ex:()=>T,OM:()=>w,Zw:()=>h,vb:()=>E});var o=u(9644),c=u(5031),I=u(2834),C=u(1828),g=u(2718),a=u(9963),p=a.Z.unwrap,s=a.Z.isWrapped,l=a.Z.assign,h=function(k){return function(k){return k.replace(/\[/g,".").replace(/\]/g,"")}(k).split(".")},x=function(k,R,P,B){if("this"===R)throw new o.Z.Error("E4016");var W=k[R];B.unwrapObservables&&s(W)?l(W,P):k[R]=P},b=function(k){return(k=k||{}).unwrapObservables=void 0===k.unwrapObservables||k.unwrapObservables,k};function y(k,R){return R.unwrapObservables?p(k):k}var E=function(k){if(arguments.length>1&&(k=[].slice.call(arguments)),!k||"this"===k)return function(P){return P};if("string"==typeof k){var R=h(k);return function(P,B){for(var W=(B=b(B)).functionsAsIs,z=("defaultValue"in B),V=y(P,B),U=0;U<R.length;U++){if(!V){if(null==V&&z)return B.defaultValue;break}var K=R[U];if(z&&(0,C.Kn)(V)&&!(K in V))return B.defaultValue;var Y=y(V[K],B);!W&&(0,C.mf)(Y)&&(Y=Y.call(V)),V=Y}return V}}return Array.isArray(k)?S(k):(0,C.mf)(k)?k:void 0};function S(k){for(var R={},P=0,B=k.length;P<B;P++){var W=k[P];R[W]=E(W)}return function(z,V){var U;return(0,g.S6)(R,function(K){var Y=this(z,V);if(void 0!==Y){for(var J=U||(U={}),j=K.split("."),ee=j.length-1,G=0;G<ee;G++){var q=j[G];q in J||(J[q]={}),J=J[q]}J[j[ee]]=Y}}),U}}var O=function(k,R,P,B){if((0,C.$K)(P))return P;var W={};return x(k,R,W,B),W},w=function(k){var R=(k=h(k||"this")).length-1;return function(P,B,W){var z=y(P,W=b(W));k.forEach(function(V,U){var K=function(k,R,P){return y("this"===R?k:k[R],P=P||{})}(z,V,W),Y=!W.functionsAsIs&&(0,C.mf)(K)&&!s(K);U===R?W.merge&&(0,C.PO)(B)&&(!(0,C.$K)(K)||(0,C.PO)(K))?(K=O(z,V,K,W),(0,I.HR)(K,B,!1,!0)):Y?z[V](B):x(z,V,B,W):(K=O(z,V,K,W),Y&&(K=K.call(z)),z=K)})}},T=function(k,R){return k instanceof Date?k.getTime():k&&k instanceof c.Z&&k.valueOf?k.valueOf():R||"string"!=typeof k?k:k.toLowerCase()}},8204:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>bt});var o=u(1828),c=u(3487),I=u(2718),C=u(7981),g={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,quarter:7776e6,year:31536e6};function a(yt){return g[yt]}var h=["millisecond","second","minute","hour","day","week","month","quarter","year"],b=function(yt){var kt,gn,ut,Ve=["millisecond","second","minute","hour","day","month","year"],St={};for(kt=Ve.length-1;kt>=0;kt--)ut=Ve[kt],(gn=Math.floor(yt/a(ut)))>0&&(St[ut+"s"]=gn,yt-=E(ut,gn));return St};function E(yt,kt){return a(yt)*kt}function S(yt){var gn,kt=-1;return(0,o.HD)(yt)?yt:(0,o.Kn)(yt)?((0,I.S6)(yt,function(ut,Ve){for(gn=0;gn<h.length;gn++)Ve&&(ut===h[gn]+"s"||ut===h[gn])&&kt<gn&&(kt=gn)}),h[kt]):""}var O={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},T=function(yt){return Math.floor(yt/3)},k=function(yt){return 3*T(yt)};function R(yt,kt,gn,ut){yt=new Date(yt.getTime());var St,Xe,Ve=new Date(yt.getTime()),Vt=S(kt);switch(Vt){case"second":yt=new Date(1e3*Math.floor(Ve.getTime()/1e3));break;case"minute":yt=new Date(6e4*Math.floor(Ve.getTime()/6e4));break;case"hour":yt=new Date(36e5*Math.floor(Ve.getTime()/36e5));break;case"year":yt.setMonth(0);case"month":yt.setDate(1);case"day":yt.setHours(0,0,0,0);break;case"week":(yt=pe(yt,ut||0)).setHours(0,0,0,0);break;case"quarter":St=k(yt.getMonth()),Xe=yt.getMonth(),yt.setDate(1),yt.setHours(0,0,0,0),Xe!==St&&yt.setMonth(St)}return gn&&"hour"!==Vt&&"minute"!==Vt&&"second"!==Vt&&tn(Ve,yt),yt}function P(yt){return R(yt,"day")}function z(yt,kt,gn){var ut=new Date(yt.getTime()),Ve=(0,o.HD)(kt)?M(kt.toLowerCase()):(0,o.kE)(kt)?b(kt):kt;return Ve.years&&ut.setFullYear(ut.getFullYear()+Ve.years*gn),Ve.quarters&&ut.setMonth(ut.getMonth()+3*Ve.quarters*gn),Ve.months&&ut.setMonth(ut.getMonth()+Ve.months*gn),Ve.weeks&&ut.setDate(ut.getDate()+7*Ve.weeks*gn),Ve.days&&ut.setDate(ut.getDate()+Ve.days*gn),Ve.hours&&ut.setTime(ut.getTime()+36e5*Ve.hours*gn),Ve.minutes&&ut.setTime(ut.getTime()+6e4*Ve.minutes*gn),Ve.seconds&&ut.setTime(ut.getTime()+1e3*Ve.seconds*gn),Ve.milliseconds&&ut.setTime(ut.getTime()+Ve.milliseconds*gn),ut}var V=function(yt,kt,gn){var ut=gn?-1:1;return(0,o.J_)(yt)?z(yt,kt,ut):(0,c.zB)(yt+kt*ut,kt)};function ee(yt){return De(yt.getFullYear(),yt.getMonth()+1,0).getDate()}function M(yt){var kt={};switch(yt){case"year":kt.years=1;break;case"month":kt.months=1;break;case"quarter":kt.months=3;break;case"week":kt.weeks=1;break;case"day":kt.days=1;break;case"hour":kt.hours=1;break;case"minute":kt.minutes=1;break;case"second":kt.seconds=1;break;case"millisecond":kt.milliseconds=1}return kt}function fe(yt,kt){return Te(yt,kt)&&yt.getMonth()===kt.getMonth()}function Te(yt,kt){return yt&&kt&&yt.getFullYear()===kt.getFullYear()}function _e(yt){return yt&&yt.getFullYear()-yt.getFullYear()%100}function ye(yt){return yt&&yt.getFullYear()-yt.getFullYear()%10}function pe(yt,kt){var gn=(yt.getDay()-kt+7)%7,ut=new Date(yt);return ut.setDate(yt.getDate()-gn),ut}function Se(yt){return Date.UTC(yt.getFullYear(),yt.getMonth(),yt.getDate())}function te(yt){return new Date(yt,0,1)}function ie(yt){return new Date(yt,11,31)}function ue(yt,kt){var gn=yt.getDay()-kt+1;return gn<=0&&(gn+=7),gn}function gt(yt,kt,gn){var ut=yt;return(0,o.$K)(yt)?((0,o.$K)(kt)&&yt<kt&&(ut=kt),(0,o.$K)(gn)&&yt>gn&&(ut=gn),ut):yt}function tn(yt,kt){if((0,o.$K)(yt)){var gn=kt.getHours()-yt.getHours();if(0!==gn){var ut=1===gn||-23===gn?-1:1,Ve=new Date(kt.getTime()+36e5*ut);(ut>0||Ve.getDate()===kt.getDate())&&kt.setTime(Ve.getTime())}}}function $e(yt,kt){return 60*(kt.getTimezoneOffset()-yt.getTimezoneOffset())*1e3}var De=function(yt){var kt=new Date(...arguments);return kt.setFullYear(yt),kt},Ye={dateUnitIntervals:h,convertMillisecondsToDateUnits:b,dateToMilliseconds:function(yt){var kt=0;return(0,o.Kn)(yt)&&(0,I.S6)(yt,function(gn,ut){kt+=E(gn.substr(0,gn.length-1),ut)}),(0,o.HD)(yt)&&(kt=E(yt,1)),kt},getNextDateUnit:function(yt,kt){switch(S(yt)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return kt?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:E,getDateUnitInterval:S,getDateFormatByTickInterval:function w(yt){return O[S(yt)]||""},getDatesDifferences:function(yt,kt){var gn=0,ut={year:yt.getFullYear()!==kt.getFullYear(),month:yt.getMonth()!==kt.getMonth(),day:yt.getDate()!==kt.getDate(),hour:yt.getHours()!==kt.getHours(),minute:yt.getMinutes()!==kt.getMinutes(),second:yt.getSeconds()!==kt.getSeconds(),millisecond:yt.getMilliseconds()!==kt.getMilliseconds()};return(0,I.S6)(ut,function(Ve,St){St&&gn++}),0===gn&&0!==$e(yt,kt)&&(ut.hour=!0,gn++),ut.count=gn,ut},correctDateWithUnitBeginning:R,trimTime:P,setToDayEnd:function(yt){var kt=P(yt);return kt.setDate(kt.getDate()+1),new Date(kt.getTime()-1)},roundDateByStartDayHour:function(yt,kt){var gn=this.dateTimeFromDecimal(kt),ut=new Date(yt);return(yt.getHours()===gn.hours&&yt.getMinutes()<gn.minutes||yt.getHours()<gn.hours)&&ut.setHours(gn.hours,gn.minutes,0,0),ut},dateTimeFromDecimal:function(yt){return{hours:Math.floor(yt),minutes:yt%1*60}},addDateInterval:z,addInterval:V,getSequenceByInterval:function(yt,kt,gn){var Ve,ut=[];for(ut.push((0,o.J_)(yt)?new Date(yt.getTime()):yt),Ve=yt;Ve<kt;)Ve=V(Ve,gn),ut.push(Ve);return ut},getDateIntervalByString:M,sameHoursAndMinutes:function Be(yt,kt){return yt&&kt&&yt.getHours()===kt.getHours()&&yt.getMinutes()===kt.getMinutes()},sameDate:function oe(yt,kt){return fe(yt,kt)&&yt.getDate()===kt.getDate()},sameMonthAndYear:fe,sameMonth:fe,sameYear:Te,sameDecade:function(yt,kt){if((0,o.$K)(yt)&&(0,o.$K)(kt)){var gn=yt.getFullYear()-yt.getFullYear()%10,ut=kt.getFullYear()-kt.getFullYear()%10;return yt&&kt&&gn===ut}},sameCentury:function(yt,kt){if((0,o.$K)(yt)&&(0,o.$K)(kt)){var gn=yt.getFullYear()-yt.getFullYear()%100,ut=kt.getFullYear()-kt.getFullYear()%100;return yt&&kt&&gn===ut}},getDifferenceInMonth:function(yt){var kt=1;return"year"===yt&&(kt=12),"decade"===yt&&(kt=120),"century"===yt&&(kt=1200),kt},getDifferenceInMonthForCells:function(yt){var kt=1;return"decade"===yt&&(kt=12),"century"===yt&&(kt=120),kt},getFirstYearInDecade:ye,getFirstDecadeInCentury:_e,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(yt,kt){return"month"===yt?De(kt.getFullYear(),kt.getMonth(),1):"year"===yt?De(kt.getFullYear(),0,kt.getDate()):"decade"===yt?De(ye(kt),kt.getMonth(),kt.getDate()):"century"===yt?De(_e(kt),kt.getMonth(),kt.getDate()):void 0},getViewLastCellDate:function(yt,kt){return"month"===yt?De(kt.getFullYear(),kt.getMonth(),ee(kt)):"year"===yt?De(kt.getFullYear(),11,kt.getDate()):"decade"===yt?De(ye(kt)+9,kt.getMonth(),kt.getDate()):"century"===yt?De(_e(kt)+90,kt.getMonth(),kt.getDate()):void 0},getViewDown:function(yt){switch(yt){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(yt){switch(yt){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:ee,getLastMonthDate:function(yt){if((0,o.$K)(yt))return De(yt.getFullYear(),yt.getMonth()+1,0)},getFirstMonthDate:function(yt){if((0,o.$K)(yt))return De(yt.getFullYear(),yt.getMonth(),1)},getFirstWeekDate:pe,getWeekNumber:function be(yt,kt,gn){var ut=ue(te(yt.getFullYear()),kt),Ve=ue(ie(yt.getFullYear()),kt),St=7-ut+1,Xe=Math.ceil((function re(yt){var kt=Se(yt)-Se(te(yt.getFullYear()));return 1+Math.floor(kt/a("day"))}(yt)-St)/7);switch(gn){case"fullWeek":return 7===St&&Xe++,0===Xe?be(ie(yt.getFullYear()-1),kt,gn):Xe;case"firstDay":return St>0&&Xe++,(Xe>52&&!(7===ut||7===Ve)||54===Xe)&&(Xe=1),Xe;case"firstFourDays":return St>3&&Xe++,Xe>52&&!(4===ut||4===Ve)&&(Xe=1),0===Xe?be(ie(yt.getFullYear()-1),kt,gn):Xe}},normalizeDateByWeek:function(yt,kt){var gn=Ye.getDatesInterval(yt,kt,"day"),ut=new Date(yt);return gn>=6&&(ut=new Date(ut.setDate(ut.getDate()+7))),ut},getQuarter:T,getFirstQuarterMonth:k,dateInRange:function(yt,kt,gn,ut){return"date"===ut&&(kt=kt&&Ye.correctDateWithUnitBeginning(kt,"day"),gn=gn&&Ye.correctDateWithUnitBeginning(gn,"day"),yt=yt&&Ye.correctDateWithUnitBeginning(yt,"day")),gt(yt,kt,gn)===yt},intervalsOverlap:function(yt){var{firstMin:kt,firstMax:gn,secondMin:ut,secondMax:Ve}=yt;return kt<=ut&&ut<=gn||kt>ut&&kt<Ve||kt<Ve&&gn>Ve},roundToHour:function(yt){var kt=new Date(yt.getTime());return kt.setHours(kt.getHours()+1),kt.setMinutes(0),kt},normalizeDate:gt,getViewMinBoundaryDate:function(yt,kt){var gn=De(kt.getFullYear(),kt.getMonth(),1);return"month"===yt||(gn.setMonth(0),"year"===yt)||("decade"===yt&&gn.setFullYear(ye(kt)),"century"===yt&&gn.setFullYear(_e(kt))),gn},getViewMaxBoundaryDate:function(yt,kt){var gn=new Date(kt);return gn.setDate(ee(kt)),"month"===yt||(gn.setMonth(11),gn.setDate(ee(gn)),"year"===yt)||("decade"===yt&&gn.setFullYear(ye(kt)+9),"century"===yt&&gn.setFullYear(_e(kt)+99)),gn},fixTimezoneGap:tn,getTimezonesDifference:$e,makeDate:function(yt){return new Date(yt)},getDatesInterval:function(yt,kt,gn){var ut=kt.getTime()-yt.getTime(),Ve=a(gn)||1;return Math.floor(ut/Ve)},getDatesOfInterval:function(yt,kt,gn){for(var ut=[],Ve=new Date(yt.getTime());Ve<kt;)ut.push(new Date(Ve.getTime())),Ve=this.addInterval(Ve,gn);return ut},createDateWithFullYear:De,sameView:function(yt,kt,gn){return Ye[(0,C._A)("same "+yt)](kt,gn)}};const bt=Ye},8492:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>k});var o=u(7572),c=u(2204),I=u(4943),C=u(1828),g="number",a="yyyy/MM/dd",s=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,l=/^(\d{2}):(\d{2})(:(\d{2}))?$/,d=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],h=/^(\d{4})\/(\d{2})\/(\d{2})$/,x=function(R,P){var B;return(0,C.HD)(R)&&!P&&(B=function E(R){var P=R.match(s);if(!P)return(P=R.match(l))?new Date(0,0,0,b(P[1]),b(P[2]),b(P[4])):void 0;var B=b(P[1]),W=--P[3],z=P[5],V=0,U=0;V=b(P[14]),U=b(P[16]),"-"===P[13]&&(V=-V,U=-U);var G,Y=b(P[6])-V,J=b(P[8])-U,j=b(P[10]),ee=b(G=(G=P[11])||"")*Math.pow(10,3-G.length);return(G=>(B<100&&G.setFullYear(B),G))(P[12]?new Date(Date.UTC(B,W,z,Y,J,j,ee)):new Date(B,W,z,Y,J,j,ee))}(R)),B||function y(R){var P=T(R)===a,B=!(0,C.J_)(R)&&Date.parse(R);if(!B&&P){var W=R.match(h);if(W){var z=new Date(b(W[1]),b(W[2]),b(W[3]));return z.setFullYear(b(W[1])),z.setMonth(b(W[2])-1),z.setDate(b(W[3])),z}}return(0,C.kE)(B)?new Date(B):R}(R)};function b(R){return+R||0}var T=function(R){return"number"==typeof R?g:(0,C.HD)(R)?((0,o.Z)().forceIsoDateParsing&&(P=function(R,P){var B=R.match(s),W="";if(!B)return(B=R.match(l))?B[3]?"HH:mm:ss":"HH:mm":void 0;for(var z=1;z<d.length;z++)B[z]&&(W+=d[z]||B[z]);return"Z"===B[12]&&(W+="'Z'"),B[14]&&(W+=B[15]?"xxx":B[16]?"xx":"x"),W}(R)),P||(R.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":a)):R?null:void 0;var P};const k={dateParser:x,deserializeDate:function(R){return"number"==typeof R?new Date(R):x(R,!(0,o.Z)().forceIsoDateParsing)},serializeDate:function(R,P){return P?(0,C.J_)(R)?P===g?R&&R.valueOf?R.valueOf():null:(0,c.P)(P,I.Z)(R):null:R},getDateSerializationFormat:T}},4270:(Rn,he,u)=>{"use strict";u.d(he,{BH:()=>l,gx:()=>d,p4:()=>a});var o=u(1828),c=u(5873),I=u(5365),C=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],g=function(){var h=this;this._state="pending",this._promise={},C.forEach(function(v){var x=v.method;this[x+"Callbacks"]=(0,I.Z)(),this[x]=function(){return this[x+"With"](this._promise,arguments)}.bind(this),this._promise[v.handler]=function(b){if(!b)return this;var y=h[x+"Callbacks"];return y.fired()?b.apply(h[x+"Context"],h[x+"Args"]):y.add(function(E,S){b.apply(E,S)}.bind(this)),this}}.bind(this)),this._promise.always=function(v){return this.done(v).fail(v)},this._promise.catch=function(v){return this.then(null,v)},this._promise.then=function(v,x){var b=new g;return["done","fail"].forEach(function(y){var E="done"===y?v:x;this[y](function(){if(E){var S=E&&E.apply(this,arguments);(0,o.EY)(S)?S.done(b.resolve).fail(b.reject):(0,o.tI)(S)?S.then(b.resolve,b.reject):b.resolve.apply(this,(0,o.$K)(S)?[S]:arguments)}else b["done"===y?"resolve":"reject"].apply(this,arguments)})}.bind(this)),b.promise()},this._promise.state=function(){return h._state},this._promise.promise=function(v){return v?(0,c.l)(v,h._promise):h._promise},this._promise.promise(this)};function a(h,v){if((0,o.EY)(h))return h;if((0,o.tI)(h)){var x=new g;return h.then(function(){x.resolveWith.apply(x,[v].concat([[].slice.call(arguments)]))},function(){x.rejectWith.apply(x,[v].concat([[].slice.call(arguments)]))}),x}return(new g).resolveWith(v,[h])}C.forEach(function(h){var v=h.method,x=h.state;g.prototype[v+"With"]=function(b,y){var E=this[v+"Callbacks"];return"pending"===this.state()&&(this[v+"Args"]=y,this[v+"Context"]=b,x&&(this._state=x),E.fire(b,y)),this}});var p=function(){if(1===arguments.length)return a(arguments[0]);for(var h=[].slice.call(arguments),v=[],x=0,b=new g,y=function(S){return function(O){v[S]=this,h[S]=arguments.length>1?[].slice.call(arguments):O,++x===h.length&&b.resolveWith(v,h)}},E=0;E<h.length;E++)(0,o.EY)(h[E])?h[E].promise().done(y(E)).fail(b.reject):x++;return x===h.length&&b.resolveWith(v,h),b.promise()};function l(){return new g}function d(){return p.apply(this,arguments)}},2793:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>g});var o=u(5873),c=u(1828),I=u(2718),C=u(5031);function g(a){var p=C.Z.inherit(a),s=p,l=new s(a),d={},h=function(v,x){(0,I.S6)(v,function(b){(0,c.mf)(l[b])?(x||!a[b])&&(a[b]=function(){return l[b].apply(a,arguments)}):(x&&(d[b]=a[b]),a[b]=l[b])})};return h(a,!0),a.inject=function(v){s=s.inherit(v),l=new s,h(v)},a.resetInjection=function(){(0,o.l)(a,d),s=p,l=new p},a}},6520:(Rn,he,u)=>{"use strict";u.d(he,{H_:()=>h,Li:()=>d,Ls:()=>l,M3:()=>p,MO:()=>s,Zx:()=>v,al:()=>S,dL:()=>E,l5:()=>b,r3:()=>x});var o=u(9897),c=u(9904),I=u(2718),C=u(1828),g=u(4514),a=(0,g.Jj)(),p=()=>{var w,O=o.Z.getActiveElement();O&&O!==o.Z.getBody()&&(null===(w=O.blur)||void 0===w||w.call(O))},s=()=>{var O=a.getSelection();if(O&&"Caret"!==O.type)if(O.empty)O.empty();else if(O.removeAllRanges)try{O.removeAllRanges()}catch{}},l=(O,w)=>{var T=(0,c.Z)(O),k=(0,c.Z)(w);if(T[0]===k[0])return T[0];for(var R=T.parents(),P=k.parents(),W=-Math.min(R.length,P.length);W<0;W++)if(R.get(W)===P.get(W))return R.get(W)},d=O=>{var w=(O=(0,c.Z)(O)).length&&O.filter(function(){var T=(0,c.Z)(this);return T.is("script[type]")&&T.attr("type").indexOf("script")<0});return w.length?w.eq(0).html():(O=(0,c.Z)("<div>").append(O)).html()},h=O=>{var w=(0,C.$K)(O)&&(O.nodeType||(0,C.ZU)(O))?(0,c.Z)(O):(0,c.Z)("<div>").html(O).contents();return 1===w.length&&(w.is("script")?w=h(w.html().trim()):w.is("table")&&(w=w.children("tbody").contents())),w},v=(O,w)=>{var T=O.originalEvent&&O.originalEvent.clipboardData||a.clipboardData;if(!w)return T&&T.getData("Text");T&&T.setData("Text",w)},x=(O,w)=>!!w&&(o.Z.isTextNode(w)&&(w=w.parentNode),o.Z.isDocument(O)?O.documentElement.contains(w):(0,C.FJ)(O)?x(O.document,w):O.contains?O.contains(w):!!(w.compareDocumentPosition(O)&w.DOCUMENT_POSITION_CONTAINS)),b=(O,w,T)=>{var k=a.getComputedStyle((0,c.Z)(O).get(0)),R=T&&T.includePaddings;return(0,c.Z)("<div>").text(w).css({fontStyle:k.fontStyle,fontVariant:k.fontVariant,fontWeight:k.fontWeight,fontSize:k.fontSize,fontFamily:k.fontFamily,letterSpacing:k.letterSpacing,border:k.border,paddingTop:R?k.paddingTop:"",paddingRight:R?k.paddingRight:"",paddingBottom:R?k.paddingBottom:"",paddingLeft:R?k.paddingLeft:"",visibility:"hidden",whiteSpace:"pre",position:"absolute",float:"left"})},E=(O,w)=>{if(w&&w[0])return w.is(O)?O:((0,I.S6)(w,(T,k)=>{((O,w)=>{w&&o.Z.insertElement(O.parentNode,w,O)})(O[0],k)}),O.remove(),w)},S=O=>{var w=O?.get(0),T=w?.getRootNode().host;return!!(0,c.Z)(T||w).closest((0,g.Jj)().document).length}},9389:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>a});var o=u(5873),c=u(2160),I=u(9589),g="http://js.devexpress.com/error/"+u(2805).i.split(".").slice(0,2).join("_")+"/";function a(p,s){var l={ERROR_MESSAGES:(0,o.l)(s,p),Error:function(){return x([].slice.call(arguments))},log:function(y){var E="log";/^E\d+$/.test(y)?E="error":/^W\d+$/.test(y)&&(E="warn"),c.k[E]("log"===E?y:d([].slice.call(arguments)))}};function d(y){var E=y[0];return v(E,h(E,y=y.slice(1)))}function h(y,E){return E=[l.ERROR_MESSAGES[y]].concat(E),I.WU.apply(this,E).replace(/\.*\s*?$/,"")}function v(y,E){return I.WU.apply(this,["{0} - {1}. See:\n{2}",y,E,b(y)])}function x(y){var E=y[0],S=h(E,y=y.slice(1)),O=b(E),w=v(E,S);return(0,o.l)(new Error(w),{__id:E,__details:S,url:O})}function b(y){return g+y}return l}},5873:(Rn,he,u)=>{"use strict";u.d(he,{l:()=>I,x:()=>c});var o=u(1828),c=function(C,g,a){for(var p in C=C||{},g)Object.prototype.hasOwnProperty.call(g,p)&&(!(p in C)||a)&&(C[p]=g[p]);return C},I=function C(g){var a=1,p=!1;for("boolean"==typeof(g=g||{})&&(p=g,g=arguments[1]||{},a++);a<arguments.length;a++){var s=arguments[a];if(null!=s)for(var l in s){var d=g[l],h=s[l],v=!1,x=void 0;"__proto__"===l||"constructor"===l||g===h||(p&&h&&((0,o.PO)(h)||(v=Array.isArray(h)))?(x=v?d&&Array.isArray(d)?d:[]:d&&(0,o.PO)(d)?d:{},g[l]=C(p,x,h)):void 0!==h&&(g[l]=h))}}return g}},2819:(Rn,he,u)=>{"use strict";u.d(he,{N:()=>g,r:()=>C});var o=u(9897),c=/<([a-z][^/\0>\x20\t\r\n\f]+)/i,I={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};I.tbody=I.colgroup=I.caption=I.tfoot=I.thead,I.th=I.td;var C=function(a){if("string"!=typeof a)return null;var s=o.Z.createDocumentFragment().appendChild(o.Z.createElement("div")),l=c.exec(a),d=l&&l[1].toLowerCase(),h=I[d]||I.default;s.innerHTML=h.startTags+a+h.endTags;for(var v=0;v<h.tagsCount;v++)s=s.lastChild;return[...s.childNodes]},g=function(a){var p=c.exec(a);return p&&p[1]in I}},4328:(Rn,he,u)=>{"use strict";u.d(he,{H:()=>g,P:()=>C});var o=u(9904),c="dx-icon",C=a=>!(!a||"string"!=typeof a)&&(/^\s*<svg[^>]*>(.|\r?\n)*?<\/svg>\s*$/i.test(a)?"svg":/data:.*base64|\.|[^<\s]\/{1,1}/.test(a)?"image":/^[\w-_]+$/.test(a)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(a)&&"fontIcon"),g=a=>{switch(C(a)){case"image":return(0,o.Z)("<img>").attr("src",a).addClass(c);case"fontIcon":return(0,o.Z)("<i>").addClass("".concat(c," ").concat(a));case"dxIcon":return(0,o.Z)("<i>").addClass("".concat(c," ").concat(c,"-").concat(a));case"svg":return(0,o.Z)("<i>").addClass("".concat(c," ").concat("dx-svg-icon")).append(a);default:return null}}},7981:(Rn,he,u)=>{"use strict";u.d(he,{GK:()=>h,H0:()=>g,MI:()=>l,OI:()=>s,_A:()=>p});var o=u(2718),c=function(v){return null==v?"":String(v)},I=function(v){return c(v).charAt(0).toUpperCase()+v.substr(1)},C=function(v){return c(v).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},g=function(v){return(0,o.UI)(C(v),function(x){return x.toLowerCase()}).join("-")},p=function(v,x){return(0,o.UI)(C(v),function(b,y){return b=b.toLowerCase(),(x||y>0)&&(b=I(b)),b}).join("")},s=function(v){return I(g(v).replace(/-/g," "))},l=function(v){return(0,o.UI)(C(v),function(x){return I(x.toLowerCase())}).join(" ")},d=["0","1","2","3","4","5","6","7","8","9"],h=function(v){var b,y,x=[],E=!1,S=!1;for(b=0;b<v.length;b++)S=(y=v.charAt(b))===y.toUpperCase()&&"-"!==y&&")"!==y&&"/"!==y||y in d,"_"===y||"."===y?(y=" ",S=!0):0===b?(y=y.toUpperCase(),S=!0):!E&&S&&x.length>0&&x.push(" "),x.push(y),E=S;return x.join("")}},2718:(Rn,he,u)=>{"use strict";u.d(he,{S6:()=>c,UI:()=>o,iY:()=>I});var o=(C,g)=>{if(Array.isArray(C))return C.map(g);var a=[];for(var p in C)a.push(g(C[p],p));return a},c=(C,g)=>{if(C){if("length"in C)for(var a=0;a<C.length&&!1!==g.call(C[a],a,C[a]);a++);else for(var p in C)if(!1===g.call(C[p],p,C[p]))break;return C}},I=(C,g)=>{if(C&&"length"in C&&0!==C.length)for(var a=C.length-1;a>=0&&!1!==g.call(C[a],a,C[a]);a--);}},3487:(Rn,he,u)=>{"use strict";u.d(he,{LO:()=>v,Ow:()=>p,RF:()=>x,Xx:()=>c,Z2:()=>C,dG:()=>g,lb:()=>b,n$:()=>I,p8:()=>d,y6:()=>E,zB:()=>l,zP:()=>y});var o=u(1828),c=function(S){return 0===S?0:S/Math.abs(S)},I=function(S,O,w){var T=!O&&0!==O,k=!w&&0!==w;return T&&(O=k?S:Math.min(S,w)),k&&(w=T?S:Math.max(S,O)),Math.min(Math.max(S,O),w)},C=function(S,O,w){return S>=O&&S<=w};function g(S){return Math.abs(parseInt(S.toExponential().split("e")[1]))}function p(S,O){var w=function a(S){var O=S.toExponential().split("e"),w=parseFloat(O[0]);return{exponent:parseInt(O[1]),mantissa:w}}(S);return parseFloat("".concat(w.mantissa,"e").concat(w.exponent+O))}function l(S,O){var P,w=d(O||0)+2,T=S.toString().split("."),k=S,R=Math.abs(S),B=(0,o.Cp)(S),W=R>1?10:0;return 1===T.length?S:(B||((0,o.Cp)(O)&&(w=T[0].length+g(O)),S=(S=R)-Math.floor(S)+W),w=function s(){return"0.000300"!==3e-4.toPrecision(3)}()&&g(S)>6||w>7?15:7,B||(P=parseFloat(S.toPrecision(w)).toString().split("."))[0]!==W.toString()?parseFloat(k.toPrecision(w)):parseFloat(T[0]+"."+P[1]))}function d(S){var O=S.toString();if(O.indexOf(".")<0)return 0;var w=O.split("."),T=w[1].indexOf("e");return T>=0?T:w[1].length}function h(S,O){if(S<0&&O%2!=1)return NaN;var w=Math.pow(Math.abs(S),1/O);return O%2==1&&S<0?-w:w}function v(S,O,w,T){if(Math.abs(S)<1e-8){if(S=O,O=w,w=T,Math.abs(S)<1e-8)return S=O,O=w,Math.abs(S)<1e-8?[]:[-O/S];var k=O*O-4*S*w;return Math.abs(k)<1e-8?[-O/(2*S)]:k>0?[(-O+Math.sqrt(k))/(2*S),(-O-Math.sqrt(k))/(2*S)]:[]}var B,W,R=(3*S*w-O*O)/(3*S*S),P=(2*O*O*O-9*S*O*w+27*S*S*T)/(27*S*S*S);if(Math.abs(R)<1e-8)B=[h(-P,3)];else if(Math.abs(P)<1e-8)B=[0].concat(R<0?[Math.sqrt(-R),-Math.sqrt(-R)]:[]);else{var z=P*P/4+R*R*R/27;if(Math.abs(z)<1e-8)B=[-1.5*P/R,3*P/R];else if(z>0)B=[(W=h(-P/2-Math.sqrt(z),3))-R/(3*W)];else{W=2*Math.sqrt(-R/3);var V=Math.acos(3*P/R/W)/3,U=2*Math.PI/3;B=[W*Math.cos(V),W*Math.cos(V-U),W*Math.cos(V-2*U)]}}for(var K=0;K<B.length;K++)B[K]-=O/(3*S);return B}function x(S){return Math.trunc?Math.trunc(S):S>0?Math.floor(S):Math.ceil(S)}function b(S,O,w){if(O===parseInt(O))return S%O;var T=E(S/O,w);return(T-parseInt(T))*O}function y(S){var O,w=S.toString();return(null===(O=w.split(".")[1])||void 0===O?void 0:O.length)||parseInt(w.split("e-")[1])||0}function E(S){var O=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return parseFloat(S.toFixed(O))}},2834:(Rn,he,u)=>{"use strict";u.d(he,{HR:()=>a,d9:()=>I,jS:()=>C});var o=u(1828),c=u(9963),I=function(){function p(){}return function(s){return p.prototype=s,new p}}(),C=function(p,s){var d,h,l=[];for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&l.push(d);for(l.sort(function(v,x){var b=(0,o.kE)(v),y=(0,o.kE)(x);return b&&y?v-x:b&&!y?-1:!b&&y?1:v<x?-1:v>x?1:0}),h=0;h<l.length;h++)s(d=l[h],p[d])},g=function(p,s,l,d){!d&&c.Z.isWrapped(p[s])?c.Z.assign(p[s],l):p[s]=l},a=function p(s,l,d,h){var v,x;for(var b in l)v=s[b],x=l[b],"__proto__"!==b&&"constructor"!==b&&s!==x&&((0,o.PO)(x)&&(x=p((d?(0,o.Kn)(v):(0,o.PO)(v))?v:{},x,d,h)),void 0!==x&&v!==x&&g(s,b,x,h));return s}},5450:(Rn,he,u)=>{"use strict";u.d(he,{l:()=>C,q:()=>I});var o=u(7572),c=u(1828),I=g=>g??(0,o.Z)().rtlEnabled?"right":"left",C=g=>(0,c.FJ)(g)?{width:g.outerWidth,height:g.outerHeight}:g.getBoundingClientRect()},6165:(Rn,he,u)=>{"use strict";u.d(he,{Bt:()=>h,nf:()=>d,u2:()=>l});var o=u(5610),c=u(913),I=u(1828),C=u(4416),g="dxComponents",p=new WeakMap,s=0,l=function(v,x){if(!(0,I.$K)(x)){if(!p.has(v)){var b="dxPrivateComponent"+s++;return p.set(v,b),b}return p.get(v)}p.set(v,x)};function d(v,x,b){var y=(0,o.aT)(v.get(0)),E=l(x.constructor);y[E]=x,b&&c.Z.one(v,C.x,function(){b.call(x)}),y[g]||(y[g]=[]),y[g].push(E)}function h(v,x){var b=l(x);return(0,o.aT)(v.get(0),b)}},3068:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>s});var o=u(9897),c=u(2793),I=u(4514),C=u(4304),g=[],a=(0,C.Z)(()=>{var l=o.Z.listen(o.Z.getDocument(),"DOMContentLoaded",()=>{p.fire(),l()})}),p={add:l=>{var d=(0,I.Ym)();d&&"loading"!==o.Z.getReadyState()?l():(g.push(l),d&&a())},fire:()=>{g.forEach(l=>l()),g=[]}};const s=(0,c.Z)(p)},3824:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(4514),c=u(9897),I=u(5365),C=u(3068),g=u(4304);const p=function(){var s,l=(0,I.Z)(),d=l.add,h=l.remove;if(!(0,o.Ym)())return l;var y,v=function(){var E=(0,o.Jj)();return{width:E.innerWidth,height:E.innerHeight}},x=function(){var S,E=v();E.width===s.width&&E.height===s.height||(E.width===s.width&&(S="height"),E.height===s.height&&(S="width"),s=E,l.fire(S))},b=(0,g.Z)(function(){s=v()});return l.add=function(){var E=d.apply(l,arguments);return b(),C.Z.add(function(){!y&&l.has()&&(y=c.Z.listen((0,o.Jj)(),"resize",x))}),E},l.remove=function(){var E=h.apply(l,arguments);return!l.has()&&y&&(y(),y=void 0),E},l}()},682:(Rn,he,u)=>{"use strict";u.d(he,{M:()=>I});var o=u(7674),c=u(1828),I=function(C,g){var a;function s(d,h,v,x,b){var E,S,y=h(b);if(!v&&(E=(0,o.k3)(y),!(0,c.Kn)(E))){var O=function(w,T){if(!a){a={};for(var k=function(d,h,v){return Array.isArray(v)?d.map(x=>h(x)):d}(C,w,T),R=0;R<k.length;R++)a[(0,o.k3)(k[R])]=!0}return a}(h,x);return O[E]?!g:!!g}for(S=0;S<C.length;S++)if(d(C[S],y))return!g;return!!g}function l(d,h){if(void 0!==h)return[d,g?"<>":"=",h]}this.getLocalFilter=function(d,h,v,x){return s.bind(this,h=void 0===h?o.bY:h,d,v,x)},this.getExpr=function(d){var h;if(d)return C.forEach(function(v,x){var b;h=h||[],x>0&&h.push(g?"and":"or"),b=(0,c.HD)(d)?l(d,v):function(y,E){for(var S=[],O=0,w=y.length;O<w;O++){var T=y[O],R=l(T,E&&E[T]);if(!R)break;O>0&&S.push(g?"or":"and"),S.push(R)}return S}(d,v),h.push(b)}),h&&1===h.length&&(h=h[0]),h},this.getCombinedFilter=function(d,h){var v=this.getExpr(d),x=v;return g&&h&&(v?((x=[]).push(v),x.push(h)):x=h),x}}},3359:(Rn,he,u)=>{"use strict";u.d(he,{R:()=>a,f:()=>l});var o="dx-",c=null;function I(d){try{return new CSSStyleSheet}catch{var h=d.ownerDocument.createElement("style");return d.appendChild(h),h.sheet}}function C(d,h,v){for(var x=0;x<h.length;x++){var b=h[x];try{for(var y=0;y<b.cssRules.length;y++)g(d,b.cssRules[y],v)}catch{}}}function g(d,h,v){var x,b,y,E,S,O;(v||(null===(x=h.selectorText)||void 0===x?void 0:x.includes(o))||(null===(b=h.cssRules)||void 0===b||null===(y=b[0])||void 0===y||null===(E=y.selectorText)||void 0===E?void 0:E.includes(o))||(null===(S=h.name)||void 0===S?void 0:S.startsWith(o))||"DXIcons"===(null===(O=h.style)||void 0===O?void 0:O.fontFamily))&&d.insertRule(h.cssText,d.cssRules.length)}function a(d){var h,v=d.get(0),x=null===(h=v.getRootNode)||void 0===h?void 0:h.call(v);if(null!=x&&x.host){c||C(c=I(x),v.ownerDocument.styleSheets,!1);var b=I(x);C(b,x.styleSheets,!0),x.adoptedStyleSheets=[c,b]}}function p(d,h,v){var x=d.getBoundingClientRect();return x&&h>=x.left&&h<x.right&&v>=x.top&&v<x.bottom}function l(d,h,v){for(var x=function s(){var d=0,h=[];return{push(v){return h.push(v),this},shift:()=>(d++,h[d-1]),get length(){return h.length-d},get items(){return h}}}().push(v);x.length;)for(var b=x.shift(),y=0;y<b.childNodes.length;y++){var E=b.childNodes[y];E.nodeType===Node.ELEMENT_NODE&&p(E,d,h)&&"none"!==getComputedStyle(E).pointerEvents&&x.push(E)}var S=x.items.reverse();return S.pop(),S}},1805:(Rn,he,u)=>{"use strict";u.d(he,{$D:()=>T,C_:()=>Z,Cr:()=>W,EJ:()=>y,Ns:()=>U,QQ:()=>z,Xt:()=>J,Y_:()=>V,cl:()=>B,dz:()=>P,eK:()=>O,fA:()=>ee,n2:()=>S,os:()=>X,p:()=>p,qt:()=>Y,sQ:()=>w,zp:()=>K});var o=u(4514),c=u(9897),I=u(1828),C=(0,o.Jj)(),g=["auto","none","inherit","initial"],a=function(M,oe){var fe=0;return oe.forEach(function(Te){fe+=parseFloat(M[Te])||0}),fe},p=function(M,oe){var fe="width"===M?"Left":"Top",Te="width"===M?"Right":"Bottom";return{padding:a(oe,["padding"+fe,"padding"+Te]),border:a(oe,["border"+fe+"Width","border"+Te+"Width"]),margin:a(oe,["margin"+fe,"margin"+Te])}},s=function(M){var oe,fe=(null==M||null===(oe=M.ownerDocument)||void 0===oe?void 0:oe.defaultView)||C;return fe.getComputedStyle&&fe.getComputedStyle(M)},l=function(M,oe,fe,Te){var Be;return oe?.[fe]||(null===(Be=M.style)||void 0===Be?void 0:Be[fe])||Te},d={content:0,padding:1,border:2,margin:3,"content-box":0,"border-box":2},h={width:["left","right"],height:["top","bottom"]};function v(M,oe,fe,Te){var Be=(ae,_e,ye)=>parseFloat(l(ae,_e,ye,"0"))||0,ze="border"===fe?"-width":"";return Be(M,Te,"".concat(fe,"-").concat(h[oe][0]).concat(ze))+Be(M,Te,"".concat(fe,"-").concat(h[oe][1]).concat(ze))}var x=function(M,oe,fe){var Te="width"===oe?"offsetWidth":"offsetHeight",Be=s(M),ze=l(M,Be,oe);(""===ze||"auto"===ze)&&(ze=M[Te]),ze=parseFloat(ze)||0;var ae=l(M,Be,"boxSizing","content-box"),ye=d[fe||ae],ne=d[ae];if(void 0===ye||void 0===ne)throw new Error;if(ne===ye)return ze;var ce=Math.sign(ye-ne),le=!1,pe=!1,Se=!1,re=!1;1===ce&&(ye+=1,ne+=1);for(var te=ne;te!==ye;te+=ce)switch(te){case d.content:break;case d.padding:le=ce*v(M,oe,"padding",Be);break;case d.border:pe=ce*v(M,oe,"border",Be);break;case d.margin:Se=ce*v(M,oe,"margin",Be)}if(le||pe){var ie=(!1===le?ce*v(M,oe,"padding",Be):le)+(!1===pe?ce*v(M,oe,"border",Be):pe);re=ce*Math.max(0,Math.floor(M[Te]-ze-ce*ie))||0}return ze+Se+le+pe+re},y=function(M,oe){return M.indexOf("px")>0?M=parseInt(M.replace("px","")):M.indexOf("%")>0?M=parseInt(M.replace("%",""))*function(M){return(0,I.FJ)(M)?M.innerHeight:M.offsetHeight}(oe)/100:isNaN(M)?M.indexOf("vh")>0&&(M=C.innerHeight/100*parseInt(M.replace("vh",""))):M=parseInt(M),M},E=function(M,oe,fe){return M?g.indexOf(M)>-1?oe?null:M:((0,I.HD)(M)&&(M=y(M,fe)),(0,I.kE)(M)?Math.max(0,M+oe):"calc("+M+(oe<0?" - ":" ")+Math.abs(oe)+"px)"):null},S=function(M,oe,fe){var Te=E(M,oe,fe);return null!==Te?Te:"none"},O=function(M,oe,fe){var Te=E(M,oe,fe);return null!==Te?Te:0},w=function(M,oe){if(!M)return 0;var fe=p("height",C.getComputedStyle(M));return fe.padding+fe.border+(oe?fe.margin:0)},T=function(M){if(M){var oe=M.getBoundingClientRect();if(oe.height)return oe.height}return 0};function R(M,oe,fe){return 2===arguments.length?q(oe,M):q(oe,M,fe)}var P=M=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("width",...oe)}(M),B=(M,oe)=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("width",...oe)}(M,oe),W=M=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("height",...oe)}(M),z=(M,oe)=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("height",...oe)}(M,oe),V=(M,oe)=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("outerWidth",...oe)}(M,oe||!1),U=(M,oe)=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("outerWidth",...oe)}(M,oe),K=(M,oe)=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("outerHeight",...oe)}(M,oe||!1),Y=(M,oe)=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("outerHeight",...oe)}(M,oe),J=M=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("innerWidth",...oe)}(M),ee=M=>function(){for(var M=arguments.length,oe=new Array(M),fe=0;fe<M;fe++)oe[fe]=arguments[fe];return R("innerHeight",...oe)}(M),q=function M(oe,fe,Te){var Be=fe.toLowerCase().indexOf("width")>=0?"Width":"Height",ze=Be.toLowerCase(),ae=0===fe.indexOf("outer"),_e=0===fe.indexOf("inner"),ye=2===arguments.length||"boolean"==typeof Te;if((0,I.ZU)(oe)){if(oe.length>1&&!ye){for(var ne=0;ne<oe.length;ne++)M(oe[ne],fe,Te);return}oe=oe[0]}if(oe){if((0,I.FJ)(oe))return ae?oe["inner"+Be]:c.Z.getDocumentElement()["client"+Be];if(c.Z.isDocument(oe)){var ce=c.Z.getDocumentElement(),le=c.Z.getBody();return Math.max(le["scroll"+Be],le["offset"+Be],ce["scroll"+Be],ce["offset"+Be],ce["client"+Be])}if(ye){var pe="content";return ae&&(pe=Te?"margin":"border"),_e&&(pe="padding"),x(oe,ze,pe)}if((0,I.kE)(Te)){var Se=s(oe),re=p(ze,Se),te="border-box"===Se.boxSizing;Te=Number(Te),ae?Te-=te?0:re.border+re.padding:_e?Te+=te?re.border:-re.padding:te&&(Te+=re.border+re.padding)}return Te+=(0,I.kE)(Te)?"px":"",c.Z.setStyle(oe,ze,Te),null}},Z=M=>(0,I.FJ)(M)?M:M.defaultView,X=M=>{if(!M.getClientRects().length)return{top:0,left:0};var oe=M.getBoundingClientRect(),fe=Z(M.ownerDocument),Te=M.ownerDocument.documentElement;return{top:oe.top+fe.pageYOffset-Te.clientTop,left:oe.left+fe.pageXOffset-Te.clientLeft}}},6718:(Rn,he,u)=>{"use strict";u.d(he,{y:()=>I});var c=(0,u(4514).Jj)(),I=function(){var C;try{C=c.sessionStorage}catch{}return C}},9589:(Rn,he,u)=>{"use strict";u.d(he,{$b:()=>C,HZ:()=>c,WU:()=>g,xb:()=>p});var s,o=u(1828),c=(s=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")],function(l){return String(l).replace(s[0],"&amp;").replace(s[1],"&quot;").replace(s[2],"&#39;").replace(s[3],"&lt;").replace(s[4],"&gt;")}),C=function(s){var l=function(s){switch(typeof s){case"string":return s.split(/\s+/,4);case"object":return[s.x||s.h||s.left,s.y||s.v||s.top,s.x||s.h||s.right,s.y||s.v||s.bottom];case"number":return[s];default:return s}}(s),d=parseInt(l&&l[0],10),h=parseInt(l&&l[1],10),v=parseInt(l&&l[2],10),x=parseInt(l&&l[3],10);return isFinite(d)||(d=0),isFinite(h)||(h=d),isFinite(v)||(v=d),isFinite(x)||(x=h),{top:h,right:v,bottom:x,left:d}};function g(s){for(var l=arguments.length,d=new Array(l>1?l-1:0),h=1;h<l;h++)d[h-1]=arguments[h];return(0,o.mf)(s)?s(...d):(d.forEach((v,x)=>{(0,o.HD)(v)&&(v=v.replace(/\$/g,"$$$$"));var b=new RegExp("\\{"+x+"\\}","gm");s=s.replace(b,v)}),s)}var p=function(){var s=/\s/g;return function(l){return!l||!l.replace(s,"")}}()},4356:(Rn,he,u)=>{"use strict";u.d(he,{Hj:()=>l,QQ:()=>E,bh:()=>x,cl:()=>y,gC:()=>d});var o=u(7981),c=u(4304),I=u(1828),C=u(9897),g=["","Webkit","Moz","O","Ms"],a={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},p=(0,c.Z)(function(){return C.Z.createElement("dx").style}),l=function(S){if(S in p())return S;var O=S;S=S.charAt(0).toUpperCase()+S.substr(1);for(var w=1;w<g.length;w++){var T=g[w].toLowerCase()+S;if(T in p())return T}return O},d=function(S){return function(S,O){S=(0,o._A)(S,!0);for(var w,T=0,k=g.length;T<k;T++){var R=g[T],P=R+S;if(void 0===(w=O((0,o._A)(P),R))&&(w=O(P,R)),void 0!==w)break}return w||""}(S,function(O,w){if(O in p())return a[w]})},h=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],x=function(S,O){return(0,I.kE)(O)&&-1===h.indexOf(S)&&(O+="px"),O},b=function(S,O,w){if(S){w=(0,I.kE)(w)?w+="px":w;for(var T=0;T<S.length;++T)S[T].style[O]=w}},y=function(S,O){b(S,"width",O)},E=function(S,O){b(S,"height",O)}},4505:(Rn,he,u)=>{"use strict";u.r(he),u.d(he,{animation:()=>w,inputType:()=>d,nativeScrolling:()=>T,pointerEvents:()=>b,styleProp:()=>g.Hj,stylePropPrefix:()=>g.gC,supportProp:()=>s,touch:()=>E,touchEvents:()=>x,transition:()=>S,transitionEndEventName:()=>O});var k,R,o=u(9897),c=u(4304),I=u(4514),C=u(2941),g=u(4356),{maxTouchPoints:a}=(0,I.jW)(),p={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"},s=function(k){return!!(0,g.Hj)(k)},d=function(k){if("text"===k)return!0;var R=o.Z.createElement("input");try{return R.setAttribute("type",k),R.value="wrongValue",!R.value}catch{return!1}},x=(R=a,((k=I.l$)("ontouchstart")||!!R)&&!k("callPhantom")),b=function(k){return k("PointerEvent")}(I.l$),E=x||b&&!!a,S=(0,c.Z)(function(){return s("transition")}),O=(0,c.Z)(function(){return p[(0,g.Hj)("transition")]}),w=(0,c.Z)(function(){return s("animation")}),T=function(){var{platform:k,mac:R}=C.Z.real();return"ios"===k||"android"===k||R}()},9834:(Rn,he,u)=>{"use strict";u.d(he,{Nc:()=>s,Sd:()=>d,yD:()=>l});var o=u(9897),c=u(4514),I=u(9904),C=(0,c.Jj)(),s="hidden-for-export";function l(h,v){return function a(h){var v=!0;return-1===h.indexOf("xmlns:xlink")&&(h=h.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(h=h.replace(/xmlns="[\s\S]*?"/gi,function(x){return v?(v=!1,x):""})).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function p(h){return h.replace(/&quot;/gi,"&#34;").replace(/&amp;/gi,"&#38;").replace(/&apos;/gi,"&#39;").replace(/&lt;/gi,"&#60;").replace(/&gt;/gi,"&#62;").replace(/&nbsp;/gi,"&#160;").replace(/&shy;/gi,"&#173;")}(function g(h,v){var x=o.Z.createElement("div"),b=h.cloneNode(!0);return v&&(0,I.Z)(b).css("backgroundColor",v),x.appendChild(b),x.innerHTML}(h,v)))}function d(h){return o.Z.isNode(h)?h:(new C.DOMParser).parseFromString(h,"image/svg+xml").childNodes[0]}},4542:(Rn,he,u)=>{"use strict";u.d(he,{t0:()=>V,gi:()=>W,hK:()=>w,Wl:()=>R,ZE:()=>T,TM:()=>B,v_:()=>P});var h,o=u(7572),c=u(2941),I=u(9644),C=u(9904),g=u(1927),a=u(1880),p=u(6246),s=u(6520),l=u(1828),d={};function v(U,K){d[U]=K}function b(){return h}v("jquery-tmpl",{compile:U=>(0,s.Li)(U),render:(U,K)=>jQuery.tmpl(U,K)}),v("jsrender",{compile:U=>(jQuery||jsrender).templates((0,s.Li)(U)),render:(U,K)=>U.render(K)}),v("mustache",{compile:U=>(0,s.Li)(U),render:(U,K)=>Mustache.render(U,K)}),v("hogan",{compile:U=>Hogan.compile((0,s.Li)(U)),render:(U,K)=>U.render(K)}),v("underscore",{compile:U=>_.template((0,s.Li)(U)),render:(U,K)=>U(K)}),v("handlebars",{compile:U=>Handlebars.compile((0,s.Li)(U)),render:(U,K)=>U(K)}),v("doT",{compile:U=>doT.template((0,s.Li)(U)),render:(U,K)=>U(K)}),v("default",{compile:U=>(0,s.H_)(U),render:(U,K,Y)=>U.clone()}),function x(U){if((0,l.HD)(U)){if(!(h=d[U]))throw I.Z.Error("E0020",U)}else h=U}("default");class y extends p.S{constructor(K){super(),this._element=K}_renderCore(K){var Y=K.transclude;return!Y&&!this._compiledTemplate&&(this._compiledTemplate=b().compile(this._element)),(0,C.Z)("<div>").append(Y?this._element:b().render(this._compiledTemplate,K.model,K.index)).contents()}source(){return(0,C.Z)(this._element).clone()}}var E=u(9960),S=u(7674),O=u(5873),w=(U,K)=>{var Y=(0,C.Z)(U).contents().filter("[".concat("data-options",'*="').concat(K,'"]'));return[].slice.call(Y).map(J=>{var j=(0,C.Z)(J).attr("data-options")||"";return{element:J,options:(0,o.Z)().optionsParser(j)[K]}}).filter(J=>!!J.options)},T=U=>{var K=(0,E.vM)(U,J=>J.options.name);if(K[void 0])throw I.Z.Error("E0023");var Y={};return Object.keys(K).forEach(J=>{var j,ee=null===(j=(0,S.U3)(c.Z.current(),K[J],G=>G.options)[0])||void 0===j?void 0:j.element;ee&&(Y[J]=ee)}),Y},k=U=>{var K=U.render.bind(U);return(0,O.l)({},U,{render(Y){var J=K(Y);return Y&&Y.onRendered&&Y.onRendered(),J}})},R=U=>{var K=[];return"model"in U&&K.push(U.model),"index"in U&&K.push(U.index),K.push(U.container),K},P=U=>"string"==typeof U?(0,s.H_)(U):U,B=U=>(0,l.ZU)(U)&&U[0]||U,W=U=>new y(U),V=(U,K,Y,J,j,ee)=>null==U?new a.s:U instanceof g.s?ee[U.name]:U instanceof p.S?U:(0,l.mf)(U.render)&&!(0,l.ZU)(U)?J?U:k(U):U.nodeType||(0,l.ZU)(U)?K((0,C.Z)(U)):((U,K,Y,J)=>{var j=null;return(!J||-1===J.indexOf(U))&&(j=K[U])&&!(j instanceof p.S)&&!Y&&(j=k(j)),j})(U,Y,J,j)||ee[U]||K(U)},1828:(Rn,he,u)=>{"use strict";u.d(he,{$K:()=>a,Cp:()=>C,EY:()=>S,FJ:()=>b,HD:()=>s,J_:()=>g,Kn:()=>d,PO:()=>v,Qr:()=>h,ZU:()=>y,cO:()=>O,dt:()=>c,jn:()=>I,kE:()=>l,mf:()=>p,pt:()=>x,tI:()=>E});var o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},c=function(w){var T=Object.prototype.toString.call(w);return"object"==typeof w?o[T]||"object":typeof w},I=function(w){return"boolean"==typeof w},C=function(w){return l(w)&&-1!==w.toString().indexOf("e")},g=function(w){return"date"===c(w)},a=function(w){return null!=w},p=function(w){return"function"==typeof w},s=function(w){return"string"==typeof w},l=function(w){return"number"==typeof w&&isFinite(w)||!isNaN(w-parseFloat(w))},d=function(w){return"object"===c(w)},h=function(w){var T;for(T in w)return!1;return!0},v=function(w){if(!w||"[object Object]"!==Object.prototype.toString.call(w))return!1;var T=Object.getPrototypeOf(w),k=Object.hasOwnProperty.call(T,"constructor")&&T.constructor;return"function"==typeof k&&Object.toString.call(k)===Object.toString.call(Object)},x=function(w){return-1===["object","array","function"].indexOf(c(w))},b=function(w){return null!=w&&w===w.window},y=function(w){return!(!w||!w.jquery&&!w.dxRenderer)},E=function(w){return!!w&&p(w.then)},S=function(w){return!!w&&p(w.done)&&p(w.fail)},O=function(w){return!(!w||!w.preventDefault)}},9963:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});var o=u(2160);const I=(0,u(2793).Z)({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(C){return C},unwrap:function(C){return C},assign:function(){o.k.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},2161:(Rn,he,u)=>{"use strict";function o(c,I,C){function g(d){return"string"==typeof d?d.split("."):"number"==typeof d?[d]:d}c=g(c),I=g(I);var a=Math.max(c.length,I.length);isFinite(C)&&(a=Math.min(a,C));for(var p=0;p<a;p++){var s=parseInt(c[p]||0,10),l=parseInt(I[p]||0,10);if(s<l)return-1;if(s>l)return 1}return 0}u.d(he,{q:()=>o})},1469:(Rn,he,u)=>{"use strict";u.d(he,{In:()=>s,S3:()=>p,Wg:()=>g});var l,o=u(9904),c=u(3068),I=u(5365),C=c.Z.add,g=(0,I.Z)(),a=(0,o.Z)(),p=function(d){if(!arguments.length)return l;var h=(0,o.Z)(d);a=h;var v=!!h.length,x=p();l=v?h:(0,o.Z)("body"),g.fire(v?p():(0,o.Z)(),x)};function s(){return a}C(function(){p(".dx-viewport")})},4514:(Rn,he,u)=>{"use strict";u.d(he,{$n:()=>s,Jj:()=>g,Wf:()=>l,Ym:()=>I,jW:()=>d,l$:()=>p});var o=u(9897),c=typeof window<"u",I=()=>c,C=I()?window:void 0;C||((C={}).window=C);var g=()=>C,p=h=>I()&&h in C,s=h=>h<768?"xs":h<992?"sm":h<1200?"md":"lg",l=h=>(h||s)(o.Z.getDocumentElement().clientWidth),d=()=>I()?C.navigator:{userAgent:""}},2805:(Rn,he,u)=>{"use strict";u.d(he,{i:()=>o});var o="22.2.4"},1937:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>b});var y,o=u(5031),c=u(4562),I=u(2718),C=u(6051),g=u(2701),a=u(6738),p=u(3382),s=u(4270),l=u(7674),d=o.Z.abstract,h=p.Z.queryByOptions,v={},x=o.Z.inherit({ctor:function(y){var E=this;y=y||{},this._eventsStrategy=new c.m(this),(0,I.S6)(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],function(S,O){O in y&&E.on(O.slice(2).toLowerCase(),y[O])}),this._key=y.key,this._errorHandler=y.errorHandler,this._useDefaultSearch=!0},_clearCache:l.ZT,_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(y){return this._keyGetter||(this._keyGetter=(0,a.vb)(this.key())),this._keyGetter(y)},_requireKey:function(){if(!this.key())throw C.R0.Error("E4005")},load:function(y){var E=this;return this._eventsStrategy.fireEvent("loading",[y=y||{}]),this._withLock(this._loadImpl(y)).done(function(S){E._eventsStrategy.fireEvent("loaded",[S,y])})},_loadImpl:function(y){return h(this.createQuery(y),y).enumerate()},_withLock:function(y){var E=new s.BH;return y.done(function(){var S=this,O=arguments;g.LE.promise().done(function(){E.resolveWith(S,O)})}).fail(function(){E.rejectWith(this,arguments)}),E},createQuery:d,totalCount:function(y){return this._totalCountImpl(y)},_totalCountImpl:function(y){return h(this.createQuery(y),y,!0).count()},byKey:function(y,E){return this._addFailHandlers(this._withLock(this._byKeyImpl(y,E)))},_byKeyImpl:d,insert:function(y){var E=this;return E._eventsStrategy.fireEvent("modifying"),E._eventsStrategy.fireEvent("inserting",[y]),E._addFailHandlers(E._insertImpl(y).done(function(S,O){E._eventsStrategy.fireEvent("inserted",[S,O]),E._eventsStrategy.fireEvent("modified")}))},_insertImpl:d,update:function(y,E){var S=this;return S._eventsStrategy.fireEvent("modifying"),S._eventsStrategy.fireEvent("updating",[y,E]),S._addFailHandlers(S._updateImpl(y,E).done(function(){S._eventsStrategy.fireEvent("updated",[y,E]),S._eventsStrategy.fireEvent("modified")}))},_updateImpl:d,push:function(y){var E={changes:y,waitFor:[]};this._eventsStrategy.fireEvent("beforePush",[E]),(0,s.gx)(...E.waitFor).done(()=>{this._pushImpl(y),this._eventsStrategy.fireEvent("push",[y])})},_pushImpl:l.ZT,remove:function(y){var E=this;return E._eventsStrategy.fireEvent("modifying"),E._eventsStrategy.fireEvent("removing",[y]),E._addFailHandlers(E._removeImpl(y).done(function(S){E._eventsStrategy.fireEvent("removed",[S]),E._eventsStrategy.fireEvent("modified")}))},_removeImpl:d,_addFailHandlers:function(y){return y.fail(this._errorHandler).fail(C.S3)},on(y,E){return this._eventsStrategy.on(y,E),this},off(y,E){return this._eventsStrategy.off(y,E),this}});x.create=function(y,E){if(!(y in v))throw C.R0.Error("E4020",y);return new v[y](E)},x.registerClass=function(y,E){return E&&(v[E]=y),y},x.inherit=(y=x.inherit,function(E,S){var O=y.apply(this,[E]);return x.registerClass(O,S),O});const b=x},3223:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>T});var o=u(5031),c=u(1828),I=u(2718),C=u(6738),g=u(4270),a=u(6051),p=u(2701),s=o.Z.inherit({toArray:function(){var k=[];for(this.reset();this.next();)k.push(this.current());return k},countable:function(){return!1}}),l=s.inherit({ctor:function(k){this.array=k,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),d=s.inherit({ctor:function(k){this.iter=k},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),h=d.inherit({ctor:function(k,R){this.callBase(k),this.index=-1,this.mapper=R},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var k=this.callBase();return k&&this.index++,k}}),v=function(k,R){return k=(0,C.Ex)(k),R=(0,C.Ex)(R),null===k&&null!==R?-1:null!==k&&null===R||void 0===k&&void 0!==R?1:void 0!==k&&void 0===R||k<R?-1:k>R?1:0},x=s.inherit({ctor:function(k,R,P,B){k instanceof h||(k=new h(k,this._wrap)),this.iter=k,this.rules=[{getter:R,desc:P,compare:B}]},thenBy:function(k,R,P){var B=new x(this.sortedIter||this.iter,k,R,P);return this.sortedIter||(B.rules=this.rules.concat(B.rules)),B},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var k=this;k.sortedIter||((0,I.S6)(k.rules,function(){this.getter=(0,C.vb)(this.getter)}),k.sortedIter=new h(new l(this.iter.toArray().sort(function(R,P){return k._compare(R,P)})),k._unwrap))},_wrap:function(k,R){return{index:R,value:k}},_unwrap:function(k){return k.value},_compare:function(k,R){var P=k.index,B=R.index;if((k=k.value)===(R=R.value))return P-B;for(var W=0,z=this.rules.length;W<z;W++){var V=this.rules[W],U=V.getter(k),K=V.getter(R),J=(V.compare||v)(U,K);if(J)return V.desc?-J:J}return P-B}}),b=function(){var k=function(P){return(0,c.$K)(P)?P.toString():""};function R(P,B,W){return function(z){z=(0,C.Ex)(P(z));var U,V=""===(U=B)||0===U||!1===U?z===B:z==B;return W&&(V=!V),V}}return function(P){return(0,c.mf)(P)?P:(0,p.IN)(P)?(W=[],z=!1,V=!1,(0,I.S6)(P,function(){if(Array.isArray(this)||(0,c.mf)(this)){if(W.length>1&&z!==V)throw new a.R0.Error("E4019");W.push(b(this)),z=V,V=!0}else V=(0,p.Lq)(this)}),function(U){for(var K=z,Y=0;Y<W.length;Y++)if(W[Y](U)!==z){K=!z;break}return K}):(0,p.hi)(P)?function(B){var W=B[0],z=b(B[1]);if("!"===W)return function(V){return!z(V)};throw a.R0.Error("E4003",W)}(P):function(B){B=(0,p.DE)(B);var W=(0,C.vb)(B[0]),z=B[1],V=B[2];V=(0,C.Ex)(V);var U=(K,Y)=>(K=(0,C.Ex)(W(K)),(null!=V&&null!=K||V===K)&&Y(K,V));switch(z.toLowerCase()){case"=":return R(W,V);case"<>":return R(W,V,!0);case">":return K=>U(K,(Y,J)=>Y>J);case"<":return K=>U(K,(Y,J)=>Y<J);case">=":return K=>U(K,(Y,J)=>Y>=J);case"<=":return K=>U(K,(Y,J)=>Y<=J);case"startswith":return function(K){return 0===(0,C.Ex)(k(W(K))).indexOf(V)};case"endswith":return function(K){var Y=(0,C.Ex)(k(W(K))),J=k(V);if(Y.length<J.length)return!1;var j=Y.lastIndexOf(V);return-1!==j&&j===Y.length-V.length};case"contains":return function(K){return(0,C.Ex)(k(W(K))).indexOf(V)>-1};case"notcontains":return function(K){return-1===(0,C.Ex)(k(W(K))).indexOf(V)}}throw a.R0.Error("E4003",z)}(P);var W,z,V}}(),y=d.inherit({ctor:function(k,R){this.callBase(k),this.criteria=b(R)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),E=s.inherit({ctor:function(k,R){this.iter=k,this.getter=R},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var k={},R=[],P=this.iter,B=(0,C.vb)(this.getter);for(P.reset();P.next();){var W=P.current(),z=B(W);z in k?k[z].push(W):(k[z]=[W],R.push(z))}this.groupedIter=new l((0,I.UI)(R,function(V){return{key:V,items:k[V]}}))}}}),S=d.inherit({ctor:function(k,R){this.callBase(k),this.getter=(0,C.vb)(R)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),O=d.inherit({ctor:function(k,R,P){this.callBase(k),this.skip=Math.max(0,R),this.take=Math.max(0,P),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}});const T=function k(R,P){P=P||{},R instanceof s||(R=new l(R));var B=function(Y){var J=P.errorHandler;J&&J(Y),(0,a.S3)(Y)},W=function(Y){var J=(new g.BH).fail(B),ee=Y.step,G=Y.finalize;try{R.reset();for(var q=("seed"in Y?Y.seed:R.next()?R.current():NaN);R.next();)q=ee(q,R.current());J.resolve(G?G(q):q)}catch(Z){J.reject(Z)}return J.promise()},z=function(Y){return W(p.bG[Y])},V=function(Y){return!(0,c.mf)(Y)&&!Array.isArray(Y)&&(Y=[].slice.call(arguments)),K(new S(R,Y))},U=function(Y){return V((0,C.vb)(Y))};function K(Y){return k(Y,P)}return{toArray:function(){return R.toArray()},enumerate:function(){var Y=(new g.BH).fail(B);try{Y.resolve(R.toArray())}catch(J){Y.reject(J)}return Y.promise()},sortBy:function(Y,J,j){return K(new x(R,Y,J,j))},thenBy:function(Y,J,j){if(R instanceof x)return K(R.thenBy(Y,J,j));throw a.R0.Error("E4004")},filter:function(Y){return Array.isArray(Y)||(Y=[].slice.call(arguments)),K(new y(R,Y))},slice:function(Y,J){return void 0===J&&(J=Number.MAX_VALUE),K(new O(R,Y,J))},select:V,groupBy:function(Y){return K(new E(R,Y))},aggregate:function(Y,J,j){return W(arguments.length<2?{step:arguments[0]}:{seed:Y,step:J,finalize:j})},count:function(){if(R.countable()){var Y=(new g.BH).fail(B);try{Y.resolve(R.count())}catch(J){Y.reject(J)}return Y.promise()}return z("count")},sum:function(Y){return Y?U(Y).sum():z("sum")},min:function(Y){return Y?U(Y).min():z("min")},max:function(Y){return Y?U(Y).max():z("max")},avg:function(Y){return Y?U(Y).avg():z("avg")}}}},820:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(2701),c=u(7316),I=u(6051),C=u(1937),g=u(1771);const p=C.Z.inherit({ctor:function(s){s=Array.isArray(s)?{data:s}:s||{},this.callBase(s);var l=s.data;if(l&&!Array.isArray(l))throw I.R0.Error("E4006");this._array=l||[]},createQuery:function(){return(0,c.Z)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(s){var l=(0,g.qk)(this,this._array,s);return-1===l?(0,o.Q2)(I.R0.Error("E4009")):(0,o.F$)(this._array[l])},_insertImpl:function(s){return(0,g.$T)(this,this._array,s)},_pushImpl:function(s){(0,g.ii)({keyInfo:this,data:this._array,changes:s})},_updateImpl:function(s,l){return(0,g.Vx)(this,this._array,s,l)},_removeImpl:function(s){return(0,g.Od)(this,this._array,s)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array")},1771:(Rn,he,u)=>{"use strict";u.d(he,{$T:()=>P,FL:()=>O,Od:()=>B,Vx:()=>R,ii:()=>w,qk:()=>W});var o=u(4817),c=u(1828),I=u(7572),C=u(6492),g=u(5873),a=u(6051),p=u(2834),l=(u(6738),u(2701));function h(z,V,U,K){var J;if(K){for(var j=0;j<V.length;j++)if(J=h(z,V[j].items||V[j].collapsedItems||[]||[],U,K-1))return J}else if(W(z,V,U)>=0)return V}function v(z,V,U,K){return K?h(z,V,U,K)||[]:V}function E(z,V,U){z._dataByKeyMap&&(z._dataByKeyMap[JSON.stringify(V)]=U,z._dataByKeyMapLength+=U?1:-1)}function S(z,V,U){U=U||new WeakMap;var K=z?Object.create(Object.getPrototypeOf(z)):{};z&&U.set(z,K);var Y=(0,o.Z)({},z);for(var J in(0,p.HR)(K,Y,!0,!0),Y){var j=Y[J],ee=V?.[J];(0,c.Kn)(j)&&!(0,c.PO)(j)&&(0,c.Kn)(ee)&&!U.has(j)&&(K[J]=S(j,ee,U))}for(var G in K){var q=K[G];(0,c.Kn)(q)&&U.has(q)&&(K[G]=U.get(q))}return K}function O(z,V){var U=S(z,V);return(0,p.HR)(U,V,!0,!0)}function w(z){var{keyInfo:V,data:U,changes:K,groupCount:Y,useInsertIndex:J,immutable:j,disableCache:ee,logError:G,skipCopying:q}=z,Z=!0===j?[...U]:U;return K.forEach(X=>{var M="insert"===X.type?Z:v(V,Z,X.key,Y);switch(!ee&&function x(z,V){if(z.key()&&(!V._dataByKeyMap||V._dataByKeyMapLength!==V.length)){for(var U={},K=V.length,Y=0;Y<K;Y++)U[JSON.stringify(z.keyOf(V[Y]))]=V[Y];V._dataByKeyMap=U,V._dataByKeyMapLength=K}}(V,M),X.type){case"update":R(V,M,X.key,X.data,!0,j,G);break;case"insert":P(V,M,X.data,J&&(0,c.$K)(X.index)?X.index:-1,!0,G,q);break;case"remove":B(V,M,X.key,!0,G)}}),Z}function T(z,V,U){return z?V&&a.R0.log(U):(0,l.Q2)(a.R0.Error(U))}function R(z,V,U,K,Y,J,j){var ee,G=z.key();if(G){if(function d(z,V){for(var K="string"==typeof V?V.split():V.slice();K.length;)if(K.shift()in z)return!0;return!1}(K,G)&&!(0,l.OI)(G,U,z.keyOf(K)))return T(Y,j,"E4017");if(ee=function b(z,V){if(z._dataByKeyMap)return z._dataByKeyMap[JSON.stringify(V)]}(V,U),!ee){var q=W(z,V,U);if(q<0)return T(Y,j,"E4009");if(ee=V[q],!0===J&&(0,c.$K)(ee)){var Z=O(ee,K);return V[q]=Z,!Y&&(0,l.F$)(Z,U)}}}else ee=U;if((0,p.HR)(ee,K,!0),!Y)return(0,I.Z)().useLegacyStoreResult?(0,l.F$)(U,K):(0,l.F$)(ee,U)}function P(z,V,U,K,Y,J,j){var ee,G=z.key(),q=(0,c.PO)(U)&&!j?(0,g.l)({},U):U;if(G){if(void 0===(ee=z.keyOf(q))||"object"==typeof ee&&(0,c.Qr)(ee)){if(Array.isArray(G))throw a.R0.Error("E4007");ee=q[G]=String(new C.Z)}else if(void 0!==V[W(z,V,ee)])return T(Y,J,"E4008")}else ee=q;if(K>=0?V.splice(K,0,q):V.push(q),E(V,ee,q),!Y)return(0,l.F$)((0,I.Z)().useLegacyStoreResult?U:q,ee)}function B(z,V,U,K,Y){var J=W(z,V,U);return J>-1&&(V.splice(J,1),E(V,U,null)),K?J<0?T(K,Y,"E4009"):void 0:(0,l.F$)(U)}function W(z,V,U){var K=z.key();if(!function y(z,V){return!z._dataByKeyMap||z._dataByKeyMap[JSON.stringify(V)]}(V,U))return-1;for(var Y=0,J=V.length;Y<J;Y++)if((0,l.OI)(K,z.keyOf(V[Y]),U))return Y;return-1}},7344:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>K});var o=u(9904),c=u(2701),I=u(1771),C=u(1828),g=u(7572),a=u(6051),p=u(1937),s=u(3223),l=u(3382),d=u(4270),h="totalCount",v="load",x="byKey",b="insert",y="update",E="remove";function S(Y){return Y&&(0,C.mf)(Y.then)}function O(Y){return(new d.BH).resolve(Y).promise()}function w(Y,J){if(!(0,C.mf)(J))throw a.R0.Error("E4011",Y)}function T(Y){throw a.R0.Error("E4012",Y)}function k(Y){function J(j){var ee=j[0];return ee&&ee.getResponseHeader?(0,c.ER)(ee,j[1]):null}return function(j){var ee;(ee=j instanceof Error?j:new Error(J(arguments)||j&&String(j)||"Unknown error")).message!==c.C5&&Y.reject(ee)}}function R(Y,J){var ee,j=Y._loadFunc;return w(v,j),ee=j.apply(Y,[J]),Array.isArray(ee)?ee=O(ee):null==ee?ee=O([]):S(ee)||T(v),(0,d.p4)(ee)}function W(Y,J,j,ee){if(J.__rawData)ee(J.__rawData);else{var G=J.__rawDataPromise||R(J,j);J._cacheRawData&&(J.__rawDataPromise=G),G.always(function(){delete J.__rawDataPromise}).done(function(q){J._cacheRawData&&(J.__rawData=q),ee(q)}).fail(k(Y))}}function z(Y,J,j,ee){var G={};"userData"in(j=j||{})&&(G.userData=j.userData),W(Y,J,G,function(q){var X,M,fe,Te,Z=(0,s.Z)(q,{errorHandler:J._errorHandler}),oe=[];ee||((X=l.Z.queryByOptions(Z,j))===Z?fe=q.slice(0):oe.push(X.enumerate().done(function(Be){fe=Be}))),(j.requireTotalCount||ee)&&((M=l.Z.queryByOptions(Z,j,!0))===Z?Te=q.length:oe.push(M.count().done(function(Be){Te=Be}))),d.gx.apply(o.Z,oe).done(function(){ee?Y.resolve(Te):j.requireTotalCount?Y.resolve(fe,{totalCount:Te}):Y.resolve(fe)}).fail(function(Be){Y.reject(Be)})})}const K=p.Z.inherit({ctor:function(Y){this.callBase(Y=Y||{}),this._useDefaultSearch=!!Y.useDefaultSearch||"raw"===Y.loadMode,this._loadMode=Y.loadMode,this._cacheRawData=!1!==Y.cacheRawData,this._loadFunc=Y[v],this._totalCountFunc=Y[h],this._byKeyFunc=Y[x],this._insertFunc=Y[b],this._updateFunc=Y[y],this._removeFunc=Y[E]},_clearCache(){delete this.__rawData},createQuery:function(){throw a.R0.Error("E4010")},clearRawDataCache:function(){this._clearCache()},_totalCountImpl:function(Y){var J=new d.BH;return"raw"!==this._loadMode||this._totalCountFunc?(function P(Y,J){var ee,j=Y._totalCountFunc;if(!(0,C.mf)(j))throw a.R0.Error("E4021");return S(ee=j.apply(Y,[J]))||(ee=Number(ee),isFinite(ee)||T(h),ee=O(ee)),(0,d.p4)(ee)}(this,Y).done(function(j){J.resolve(Number(j))}).fail(k(J)),J=this._addFailHandlers(J)):z(J,this,Y,!0),J.promise()},_pushImpl:function(Y){this.__rawData&&(0,I.ii)({keyInfo:this,data:this.__rawData,changes:Y})},_loadImpl:function(Y){var J=new d.BH;return"raw"===this._loadMode?z(J,this,Y,!1):(R(this,Y).done(function(j,ee){J.resolve(j,ee)}).fail(k(J)),J=this._addFailHandlers(J)),J.promise()},_byKeyImpl:function(Y,J){var j=new d.BH;return this._byKeyViaLoad()?(this._requireKey(),function V(Y,J,j){W(Y,J,{},function(ee){for(var q,G=J.key(),Z=0,X=ee.length;Z<X;Z++)if(q=ee[Z],(0,c.OI)(G,J.keyOf(ee[Z]),j))return void Y.resolve(q);Y.reject(a.R0.Error("E4009"))})}(j,this,Y)):function B(Y,J,j){var G,ee=Y._byKeyFunc;return w(x,ee),S(G=ee.apply(Y,[J,j]))||(G=O(G)),(0,d.p4)(G)}(this,Y,J).done(function(ee){j.resolve(ee)}).fail(k(j)),j.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(Y){var ee,J=this,j=J._insertFunc,G=new d.BH;return w(b,j),S(ee=j.apply(J,[Y]))||(ee=O(ee)),(0,d.p4)(ee).done(function(q){(0,g.Z)().useLegacyStoreResult?G.resolve(Y,q):G.resolve(q||Y,J.keyOf(q))}).fail(k(G)),G.promise()},_updateImpl:function(Y,J){var ee,j=this._updateFunc,G=new d.BH;return w(y,j),S(ee=j.apply(this,[Y,J]))||(ee=O(ee)),(0,d.p4)(ee).done(function(q){(0,g.Z)().useLegacyStoreResult?G.resolve(Y,J):G.resolve(q||J,Y)}).fail(k(G)),G.promise()},_removeImpl:function(Y){var j,J=this._removeFunc,ee=new d.BH;return w(E,J),S(j=J.apply(this,[Y]))||(j=O()),(0,d.p4)(j).done(function(){ee.resolve(Y)}).fail(k(ee)),ee.promise()}})},886:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=u(7122).o},7122:(Rn,he,u)=>{"use strict";u.d(he,{o:()=>S});var o=u(5031),c=u(5873),I=u(7674),C=u(2718),g=u(1828),a=u(2701),p=u(1771),s=u(7344),l=u(4562),d=u(6051),h=u(9644),v=u(4270);function x(O){var w=[],T=!1;function k(){for(;w.length;){T=!0;var P=w.shift()();if(void 0!==P){if(P.then)return void(0,v.gx)(P).always(k);throw h.Z.Error("E0015")}}T=!1}return{add:function(R,P){O?(w[0]&&P&&P(w[0]),w=[R]):w.push(R),T||k()},busy:function(){return T}}}x();var y=u(5981);class E{constructor(){this._counter=-1,this._deferreds={}}add(w){return this._counter++,this._deferreds[this._counter]=w,this._counter}remove(w){return delete this._deferreds[w]}cancel(w){return w in this._deferreds&&(this._deferreds[w].reject(y.NE),!0)}cancelAll(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}var S=o.Z.inherit({ctor(O){var w;if(O=(0,y.aN)(O),this._eventsStrategy=new l.m(this,{syncStrategy:!0}),this._store=O.store,this._changedTime=0,0!==O.pushAggregationTimeout){var R,P,B=(0,a.xL)(W=>{R.resolve(),(0,v.gx)(...P).done(()=>this._onPush(W)),P=void 0,R=void 0},void 0===O.pushAggregationTimeout?()=>5*this._changedTime:O.pushAggregationTimeout);this._onPushHandler=W=>{this._aggregationTimeoutId=B(W.changes),R||(R=new v.BH),P=W.waitFor,W.waitFor.push(R.promise())},this._store.on("beforePush",this._onPushHandler)}else this._onPushHandler=W=>this._onPush(W),this._store.on("push",this._onPushHandler);this._storeLoadOptions=this._extractLoadOptions(O),this._mapFunc=O.map,this._postProcessFunc=O.postProcess,this._pageIndex=void 0!==O.pageIndex?O.pageIndex:0,this._pageSize=void 0!==O.pageSize?O.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in O?O.searchValue:null,this._searchOperation=O.searchOperation||"contains",this._searchExpr=O.searchExpr,this._paginate=O.paginate,this._reshapeOnPush=null!==(w=O.reshapeOnPush)&&void 0!==w&&w,(0,C.S6)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(W,z)=>{z in O&&this.on(z.substr(2,1).toLowerCase()+z.substr(3),O[z])}),this._operationManager=new E,this._init()},_init(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,g.$K)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose(){var O;this._store.off("beforePush",this._onPushHandler),this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),null===(O=this._delayedLoadTask)||void 0===O||O.abort(),this._operationManager.cancelAll(),delete this._store,delete this._items,delete this._delayedLoadTask,this._disposed=!0},_extractLoadOptions(O){var w={},T=["sort","filter","select","group","requireTotalCount"],k=this._store._customLoadOptions();return k&&(T=T.concat(k)),(0,C.S6)(T,function(){w[this]=O[this]}),w},loadOptions(){return this._storeLoadOptions},items(){return this._items},pageIndex(O){if(!(0,g.kE)(O))return this._pageIndex;this._pageIndex=O,this._isLastPage=!this._paginate},paginate(O){if(!(0,g.jn)(O))return this._paginate;this._paginate!==O&&(this._paginate=O,this.pageIndex(0))},pageSize(O){if(!(0,g.kE)(O))return this._pageSize;this._pageSize=O},isLastPage(){return this._isLastPage},generateStoreLoadOptionAccessor(O){return w=>{var T=(0,y.ir)(w);if(void 0===T)return this._storeLoadOptions[O];this._storeLoadOptions[O]=T}},sort(){for(var O=arguments.length,w=new Array(O),T=0;T<O;T++)w[T]=arguments[T];return this.generateStoreLoadOptionAccessor("sort")(w)},filter(){var O=(0,y.ir)(arguments);if(void 0===O)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=O,this.pageIndex(0)},group(){for(var O=arguments.length,w=new Array(O),T=0;T<O;T++)w[T]=arguments[T];return this.generateStoreLoadOptionAccessor("group")(w)},select(){for(var O=arguments.length,w=new Array(O),T=0;T<O;T++)w[T]=arguments[T];return this.generateStoreLoadOptionAccessor("select")(w)},requireTotalCount(O){if(!(0,g.jn)(O))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=O},searchValue(O){if(arguments.length<1)return this._searchValue;this._searchValue=O,this.pageIndex(0)},searchOperation(O){if(!(0,g.HD)(O))return this._searchOperation;this._searchOperation=O,this.pageIndex(0)},searchExpr(O){var w=arguments.length;if(0===w)return this._searchExpr;w>1&&(O=[].slice.call(arguments)),this._searchExpr=O,this.pageIndex(0)},store(){return this._store},key(){var O;return null===(O=this._store)||void 0===O?void 0:O.key()},totalCount(){return this._totalCount},isLoaded(){return this._isLoaded},isLoading(){return this._loadingCount>0},beginLoading(){this._changeLoadingCount(1)},endLoading(){this._changeLoadingCount(-1)},_createLoadQueue:()=>x(),_changeLoadingCount(O){var w=this.isLoading();this._loadingCount+=O;var T=this.isLoading();w^T&&this._eventsStrategy.fireEvent("loadingChanged",[T])},_scheduleLoadCallbacks(O){this.beginLoading(),O.always(()=>{this.endLoading()})},_scheduleFailCallbacks(O){var w=this;O.fail(function(){for(var T=arguments.length,k=new Array(T),R=0;R<T;R++)k[R]=arguments[R];k[0]!==y.NE&&w._eventsStrategy.fireEvent("loadError",k)})},_fireChanged(O){var w=new Date;this._eventsStrategy.fireEvent("changed",O),this._changedTime=new Date-w},_scheduleChangedCallbacks(O){O.done(()=>this._fireChanged())},loadSingle(O,w){var T=new v.BH,k=this.key(),R=this._store,P=this._createStoreLoadOptions();return this._scheduleFailCallbacks(T),arguments.length<2&&(w=O,O=k),delete P.skip,delete P.group,delete P.refresh,delete P.pageIndex,delete P.searchString,(O===k||R instanceof s.Z&&!R._byKeyViaLoad()?R.byKey(w,P):(P.take=1,P.filter=P.filter?[P.filter,[O,w]]:[O,w],R.load(P))).fail(T.reject).done(B=>{var W=Array.isArray(B)&&!B.length;!(0,g.$K)(B)||W?T.reject(new d.R0.Error("E4009")):(Array.isArray(B)||(B=[B]),T.resolve(this._applyMapFunction(B)[0]))}),T.promise()},load(){var O=new v.BH,w=()=>{if(!this._disposed&&(0,y.zR)(O))return this._loadFromStore(T,O)};this._scheduleLoadCallbacks(O),this._scheduleFailCallbacks(O),this._scheduleChangedCallbacks(O);var T=this._createLoadOperation(O);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[T]),this._loadQueue.add(()=>("number"==typeof T.delay?this._delayedLoadTask=(0,I.Wi)(w,T.delay):w(),O.promise())),O.promise({operationId:T.operationId})},_onPush(O){if(this._reshapeOnPush)this.load();else{var w={changes:O};this._eventsStrategy.fireEvent("changing",[w]);var T=this.group(),k=this.items(),R=0,P=this.paginate()||T?O.filter(B=>"update"===B.type):O;T&&(R=Array.isArray(T)?T.length:1),this._mapFunc&&P.forEach(B=>{"insert"===B.type&&(B.data=this._mapFunc(B.data))}),w.postProcessChanges&&(P=w.postProcessChanges(P)),(0,p.ii)({keyInfo:this.store(),data:k,changes:P,groupCount:R,useInsertIndex:!0}),this._fireChanged([{changes:O}])}},_createLoadOperation(O){var w=this._operationManager.add(O),T=this._createStoreLoadOptions();return O.always(()=>this._operationManager.remove(w)),{operationId:w,storeLoadOptions:T}},reload(){return this.store()._clearCache(),this._init(),this.load()},cancel(O){return this._operationManager.cancel(O)},cancelAll(){return this._operationManager.cancelAll()},_addSearchOptions(O){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(O):(O.searchOperation=this._searchOperation,O.searchValue=this._searchValue,O.searchExpr=this._searchExpr))},_createStoreLoadOptions(){var O=(0,c.l)({},this._storeLoadOptions);return this._addSearchOptions(O),this._paginate&&this._pageSize&&(O.skip=this._pageIndex*this._pageSize,O.take=this._pageSize),O.userData=this._userData,O},_addSearchFilter(O){var w=this._searchValue,T=this._searchOperation,k=this._searchExpr,R=[];w&&(k||(k="this"),Array.isArray(k)||(k=[k]),(0,C.S6)(k,function(P,B){R.length&&R.push("or"),R.push([B,T,w])}),O.filter=O.filter?[R,O.filter]:R)},_loadFromStore(O,w){var T=(k,R)=>{if(!this._disposed&&(0,y.zR)(w)){var P=(0,c.l)((0,y.r6)(k,R),O);this._eventsStrategy.fireEvent("customizeLoadResult",[P]),(0,v.gx)(P.data).done(B=>{P.data=B,this._processStoreLoadResult(P,w)}).fail(w.reject)}};return O.data?(new v.BH).resolve(O.data).done(T):this.store().load(O.storeLoadOptions).done(T).fail(w.reject)},_processStoreLoadResult(O,w){var T=O.data,k=O.extra,R=O.storeLoadOptions,P=()=>(this._isLoaded=!0,this._totalCount=isFinite(k.totalCount)?k.totalCount:-1,w.resolve(T,k));this._disposed||(T=this._applyPostProcessFunction(this._applyMapFunction(T)),(0,g.Kn)(k)||(k={}),this._items=T,(!T.length||!this._paginate||this._pageSize&&T.length<this._pageSize)&&(this._isLastPage=!0),R.requireTotalCount&&!isFinite(k.totalCount)?this.store().totalCount(R).done(function(B){k.totalCount=B,P()}).fail(w.reject):P())},_applyMapFunction(O){return this._mapFunc?(0,y.YI)(O,this._mapFunc,this.group()):O},_applyPostProcessFunction(O){return this._postProcessFunc?this._postProcessFunc(O):O},on(O,w){return this._eventsStrategy.on(O,w),this},off(O,w){return this._eventsStrategy.off(O,w),this}})},5981:(Rn,he,u)=>{"use strict";u.d(he,{NE:()=>v,YI:()=>S,aN:()=>R,ir:()=>b,r6:()=>O,zR:()=>x});var o=u(4817),c=u(9943),I=u(9800),C=u(1937),g=u(820),a=u(2718),p=u(7344),s=u(5873),l=u(1828),d=u(2701),h=["items"],v="canceled",x=P=>"pending"===P.state(),b=P=>{switch(P.length){case 0:return;case 1:return P[0]}return[].slice.call(P)},E=(P,B,W)=>Array.isArray(P)?B?((P,B,W)=>(0,a.UI)(P,z=>{var V=(0,c.Z)(z,h);return(0,o.Z)({},V,{items:E(z.items,B-1,W)})}))(P,B,W):(0,a.UI)(P,W):P,S=(P,B,W)=>{var z=W?(0,d.G5)(W).length:0;return E(P,z,B)},O=(P,B)=>{var W;return null!==(W=P)&&void 0!==W&&W.data&&(B=P,P=P.data),Array.isArray(P)||(P=[P]),{data:P,extra:B}},w=P=>{var B={};return(0,a.S6)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){B[this]=P[this],delete P[this]}),new p.Z(B)},k=(P,B)=>new p.Z({load:()=>I.Z.sendRequest({url:P,dataType:"json"}),loadMode:B?.fromUrlLoadMode}),R=(P,B)=>{var W;return"string"==typeof P&&(P={paginate:!1,store:k(P,B)}),void 0===P&&(P=[]),void 0===(P=Array.isArray(P)||P instanceof C.Z?{store:P}:(0,s.l)({},P)).store&&(P.store=[]),W=P.store,"load"in P?W=w(P):Array.isArray(W)?W=new g.Z(W):(0,l.PO)(W)&&(W=(P=>{var B=P.type;return delete P.type,C.Z.create(B,P)})((0,s.l)({},W))),P.store=W,P}},6051:(Rn,he,u)=>{"use strict";u.d(he,{R0:()=>I,S3:()=>g});var o=u(9389),c=u(9644),I=(0,o.Z)(c.Z.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),g=function(p){var s;null===(s=null)||void 0===s||s(p)}},7316:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(3223),c=u(1035),I=u(6051),C=u(2718),g=u(1828),a=u(4270),l={array:o.Z,remote:function v(x,b,y){y=y||[],b=b||{};var E=function(w,T){return{name:w,args:T}},S=function(w){var k,R,P,B,W,K,Y,T=new a.BH,z=function(K){var Y=b.errorHandler;Y&&Y(K),(0,I.S3)(K),T.reject(K)};function V(K){switch(K.name){case"sortBy":return W=[K.args],!0;case"thenBy":if(!W)throw I.R0.Error("E4004");return W.push(K.args),!0}return!1}try{(0,g.mf)(k=b.adapter)||(k=c.Z[k]),R=k(b),P=[].concat(y).concat(w);var U=R.optimize;for(U&&U(P);P.length;){if(!V(B=P[0])){if(W){P.unshift(E("multiSort",[W])),W=null;continue}if("enumerate"!==String(B.name)&&(!R[B.name]||!1===R[B.name].apply(R,B.args)))break}P.shift()}Y=[],(K=P[0])&&"multiSort"===K.name&&(P.shift(),(0,C.S6)(K.args[0],function(){Y.push(E(Y.length?"thenBy":"sortBy",this))})),P=Y.concat(P),R.exec(x).done(function(K,Y){if(P.length){var J=(0,o.Z)(K,{errorHandler:b.errorHandler});(0,C.S6)(P,function(){J=J[this.name].apply(J,this.args)}),J.done(T.resolve).fail(T.reject)}else T.resolve(K,Y)}).fail(z)}catch(K){z(K)}return T.promise()},O={};return(0,C.S6)(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var w=String(this);O[w]=function(){return v(x,b,y.concat(E(w,arguments)))}}),(0,C.S6)(["count","min","max","sum","avg","aggregate","enumerate"],function(){var w=String(this);O[w]=function(){return S.call(this,E(w,arguments))}}),O}};const h=function(){var v=Array.isArray(arguments[0])?"array":"remote";return l[v].apply(this,arguments)}},1035:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>o});const o={}},3382:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>l});var o=u(7674),c=u(5873),I=u(2718),C=u(3223),g=u(2701);function a(d,h){return d=d.groupBy(h[0].selector),h.length>1&&(d=d.select(function(v){return(0,c.l)({},v,{items:a((0,C.Z)(v.items),h.slice(1)).toArray()})})),d}function p(d,h){var v=[];return(0,I.S6)(d,function(x,b){(0,o.h3)(h,function(E){return b.selector===E.selector}).length<1&&v.push(b)}),v.concat(h)}const l={multiLevelGroup:a,arrangeSortingInfo:p,queryByOptions:function s(d,h,v){var x=(h=h||{}).filter;if(x&&(d=d.filter(x)),v)return d;var b=h.sort,y=h.select,E=h.group,S=h.skip,O=h.take;return E&&((E=(0,g.G5)(E)).keepInitialKeyOrder=!!h.group.keepInitialKeyOrder),(b||E)&&(b=(0,g.G5)(b||[]),E&&!E.keepInitialKeyOrder&&(b=p(E,b)),(0,I.S6)(b,function(w){d=d[w?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),y&&(d=d.select(y)),E&&(d=a(d,E)),(O||S)&&(d=d.slice(S||0,O)),d}}},2701:(Rn,he,u)=>{"use strict";u.d(he,{C5:()=>l,DE:()=>d,ER:()=>v,F$:()=>B,G5:()=>h,IN:()=>P,LE:()=>b,Lq:()=>E,OI:()=>S,Q2:()=>W,bG:()=>x,hi:()=>k,xL:()=>V});var K,U,o=u(1828),c=u(9897),I=u(3068),C=u(4514),g=u(2718),a=u(4270),p=u(7674),l="DEVEXTREME_XHR_ERROR_UNLOAD",d=function(U){return[U[0],U.length<3?"=":String(U[1]).toLowerCase(),U.length<2||U[U.length-1]]},h=function(U){return Array.isArray(U)||(U=[U]),(0,g.UI)(U,function(K){var Y={selector:(0,o.mf)(K)||"string"==typeof K?K:K.getter||K.field||K.selector,desc:!(!K.desc&&"d"!==String(K.dir).charAt(0).toLowerCase())};return K.compare&&(Y.compare=K.compare),Y})},v=(U={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},(0,I.Z.add)(function(){var Y=(0,C.Jj)();c.Z.listen(Y,"beforeunload",function(){K=!0})}),function(Y,J){return K?l:Y.status<400?U[j=J]||j:Y.statusText;var j}),x={count:{seed:0,step:function(U){return 1+U}},sum:{seed:0,step:function(U,K){return U+K}},min:{step:function(U,K){return K<U?K:U}},max:{step:function(U,K){return K>U?K:U}},avg:{seed:[0,0],step:function(U,K){return[U[0]+K,U[1]+1]},finalize:function(U){return U[1]?U[0]/U[1]:NaN}}},b=function(){var K,U=0;return{obtain:function(){0===U&&(K=new a.BH),U++},release:function(){--U<1&&K.resolve()},promise:function(){return(0===U?(new a.BH).resolve():K).promise()},reset:function(){U=0,K&&K.resolve()}}}();function E(U){return/^(and|&&|&)$/i.test(U)}var S=function(U,K,Y){if(Array.isArray(U)){for(var j,J=(0,g.UI)(K,function(G,q){return q}),ee=0;ee<J.length;ee++)if(!(0,p.bY)(K[j=J[ee]],Y[j],0,!1))return!1;return!0}return(0,p.bY)(K,Y,0,!1)},k=function(U){return"!"===U[0]&&Array.isArray(U[1])},P=function(U){var K=U[0],Y=U[1];return!!(Array.isArray(K)||(0,o.mf)(K)&&(Array.isArray(Y)||(0,o.mf)(Y)||function(U){return"and"===U||"or"===U}(Y)))},B=function(){var U=new a.BH;return U.resolve.apply(U,arguments).promise()},W=function(){var U=new a.BH;return U.reject.apply(U,arguments).promise()};function V(U,K){var Y=[],J=function z(U,K){var Y;return function(){return Y||(Y=setTimeout(()=>{Y=void 0,U.call(this)},(0,o.mf)(K)?K():K)),Y}}(function(){U.call(this,Y),Y=[]},K);return function(j){return Array.isArray(j)&&Y.push(...j),J.call(this,Y)}}},8264:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>S});var o=u(7122),c=u(5873),I=u(5981),C=u(7674),g=u(4270),a={load:()=>(0,g.BH)().reject(),loadSingle:()=>(0,g.BH)().reject(),loadFromStore:()=>(0,g.BH)().reject(),loadNextPage:()=>(0,g.BH)().reject(),loadOptions:C.ZT,userData:C.ZT,cancel:C.ZT,cancelAll:C.ZT,filter:C.ZT,addSearchFilter:C.ZT,group:C.ZT,paginate:C.ZT,pageSize:C.ZT,pageIndex:C.ZT,resetDataSourcePageIndex:C.ZT,totalCount:C.ZT,isLastPage:C.ZT,isLoading:C.ZT,isLoaded:C.ZT,searchValue:C.ZT,searchOperation:C.ZT,searchExpr:C.ZT,select:C.ZT,key:C.ZT,keyOf:C.ZT,store:C.ZT,items:C.ZT,applyMapFunction:C.ZT,getDataSource:C.ZT,reload:C.ZT,on:C.ZT,off:C.ZT};var l="_dataSourceOptions",d="_dataSourceChangedHandler",h="_dataSourceLoadErrorHandler",v="_dataSourceLoadingChangedHandler",x="_dataSourceFromUrlLoadMode",b="_getSpecificDataSourceOption",y="_normalizeDataSource";const S={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var w,T,O=b in this?this[b]():this.option("dataSource");this._disposeDataSource(),O&&(O instanceof o.o?(this._isSharedDataSource=!0,this._dataSource=O):(w=l in this?this[l]():{},T=this._dataSourceType?this._dataSourceType():o.o,O=(0,I.aN)(O,{fromUrlLoadMode:x in this&&this[x]()}),this._dataSource=new T((0,c.l)(!0,{},w,O))),y in this&&(this._dataSource=this[y](this._dataSource)),this._addDataSourceHandlers(),this._initDataController())},_initDataController:function(){var O,w=null===(O=this.option)||void 0===O?void 0:O.call(this,"_dataController");this._dataController=w||new class p{constructor(w){if(!w)return a;this._dataSource=w}load(){return this._dataSource.load()}loadSingle(w,T){return arguments.length<2&&(T=w,w=this.key()),this._dataSource.loadSingle(w,T)}loadFromStore(w){return this.store().load(w)}loadNextPage(){return this.pageIndex(1+this.pageIndex()),this.load()}loadOptions(){return this._dataSource.loadOptions()}userData(){return this._dataSource._userData}cancel(w){this._dataSource.cancel(w)}cancelAll(){this._dataSource.cancelAll()}filter(w){return this._dataSource.filter(w)}addSearchFilter(w){this._dataSource._addSearchFilter(w)}group(w){return this._dataSource.group(w)}paginate(){return this._dataSource.paginate()}pageSize(){return this._dataSource._pageSize}pageIndex(w){return this._dataSource.pageIndex(w)}resetDataSourcePageIndex(){this.pageIndex()&&(this.pageIndex(0),this.load())}totalCount(){return this._dataSource.totalCount()}isLastPage(){return this._dataSource.isLastPage()||!this._dataSource._pageSize}isLoading(){return this._dataSource.isLoading()}isLoaded(){return this._dataSource.isLoaded()}searchValue(w){return arguments.length?this._dataSource.searchValue(w):this._dataSource.searchValue()}searchOperation(w){return this._dataSource.searchOperation(w)}searchExpr(w){return arguments.length?this._dataSource.searchExpr(w):this._dataSource.searchExpr()}select(){return this._dataSource.select(...arguments)}key(){return this._dataSource.key()}keyOf(w){return this.store().keyOf(w)}store(){return this._dataSource.store()}items(){return this._dataSource.items()}applyMapFunction(w){return this._dataSource._applyMapFunction(w)}getDataSource(){return this._dataSource||null}reload(){return this._dataSource.reload()}on(w,T){this._dataSource.on(w,T)}off(w,T){this._dataSource.off(w,T)}}(this._dataSource)},_addDataSourceHandlers:function(){d in this&&this._addDataSourceChangeHandler(),h in this&&this._addDataSourceLoadErrorHandler(),v in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(O){this._ready&&this._ready(!O)}.bind(this))},_addDataSourceChangeHandler:function(){var O=this._dataSource;this._proxiedDataSourceChangedHandler=function(w){this[d](O.items(),w)}.bind(this),O.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[h].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[v].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){var O=this._dataSource;O&&(O.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():O.load())},_loadSingle:function(O,w){return O="this"===O?this._dataSource.key()||"this":O,this._dataSource.loadSingle(O,w)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}}},227:(Rn,he,u)=>{"use strict";u.d(he,{u:()=>y});var o=u(9904),c=u(913),I=u(2941),C=u(9897),g=u(6520),p=(u(1536),u(8225)),s=u(4416);function l(R){return R&&[R.target,R.delegateTarget,R.relatedTarget,R.currentTarget].filter(P=>!!P)}var v=u(8690),x=u(3873),b=u(2203),y="dxclick",S=null,O=null,w=()=>{O=null},T=function(R){var P=R.originalEvent;(!R.which||1===R.which)&&!S&&!(O===P||P&&P.DXCLICK_FIRED)&&(P&&(P.DXCLICK_FIRED=!0),((R,P)=>{c.Z.off(l(R),s.x,P)})(O,w),((R,P)=>{c.Z.one(l(R),s.x,P)})(O=P,w),(0,p.BX)({type:y,originalEvent:R}))},k=x.Z.inherit({ctor:function(R){this.callBase(R),c.Z.on(this.getElement(),"click",T)},start:function(R){S=null},cancel:function(){S=!0},dispose:function(){c.Z.off(this.getElement(),"click",T)}});(function(){if(!I.Z.real().generic){var P=null,B=!1,W=C.Z.getDocument();c.Z.subscribeGlobal(W,(0,p.V4)(v.Z.down,"NATIVE_CLICK_FIXER"),function(z){P=z.target,B=z.isDefaultPrevented()}),c.Z.subscribeGlobal(W,(0,p.V4)("click","NATIVE_CLICK_FIXER"),function(z){var V=(0,o.Z)(z.target);!B&&P&&!V.is(P)&&!(0,o.Z)(P).is("label")&&(0,o.Z)(V).is("input, textarea, select, button ,:focus, :focus *")&&(0,g.M3)(),P=null,B=!1})}})(),(0,b.Z)({emitter:k,bubble:!0,events:[y]})},2480:(Rn,he,u)=>{"use strict";u.d(he,{u:()=>b});var o=u(9904),c=u(913),I=u(4505),C=u(2941),g=u(5031),a=u(4377),p=u(8225),s=u(5180),l="dxContexMenu",d=(0,p.V4)("contextmenu",l),h=(0,p.V4)(s.Z.name,l),v="dxcontextmenu",x=g.Z.inherit({setup:function(y){var E=(0,o.Z)(y);c.Z.on(E,d,this._contextMenuHandler.bind(this)),(I.touch||C.Z.isSimulator())&&c.Z.on(E,h,this._holdHandler.bind(this))},_holdHandler:function(y){(0,p.N5)(y)&&!C.Z.isSimulator()||this._fireContextMenu(y)},_contextMenuHandler:function(y){this._fireContextMenu(y)},_fireContextMenu:function(y){return(0,p.BX)({type:v,originalEvent:y})},teardown:function(y){c.Z.off(y,"."+l)}});(0,a.Z)(v,new x);var b=v},1409:(Rn,he,u)=>{"use strict";u.d(he,{bB:()=>l,dR:()=>E});var b,o=u(5031),c=u(7674),I=u(6520),C=u(2941),g=u(8225),a=u(8690),p=u(3873),s=u(2203),l="dxactive",d="dxinactive",x=o.Z.inherit({ctor:function(S,O){this._timeout=S,this._fire=O},start:function(){var S=this;this._schedule(function(){S.force()})},_schedule:function(S){this.stop(),this._timer=setTimeout(S,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),y=p.Z.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new x(0,c.ZT),this._inactive=new x(0,c.ZT)},configure:function(S,O){switch(O){case l:S.activeTimeout=S.timeout;break;case d:S.inactiveTimeout=S.timeout}this.callBase(S)},start:function(S){if(b){var O=(0,I.r3)(this.getElement().get(0),b.getElement().get(0)),w=!b._active.fired();if(O&&w)return void this._cancel();b._inactive.force()}b=this,this._initEvents(S),this._active.start()},_initEvents:function(S){var O=this,w=this._getEmitterTarget(S),T=(0,g.N5)(S),R=C.Z.isSimulator()||!T,P=(0,c.IS)(this.activeTimeout,30),B=(0,c.IS)(this.inactiveTimeout,400);this._active=new x(R?P:0,function(){O._fireEvent(l,S,{target:w})}),this._inactive=new x(R?B:0,function(){O._fireEvent(d,S,{target:w}),b=null})},cancel:function(S){this.end(S)},end:function(S){var O=S.type!==a.Z.up;O?this._active.stop():this._active.force(),this._inactive.start(),O&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),b===this&&(b=null),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),b=null,this._cancel(),this._inactive.force.bind(this._inactive)}});y.lock=function(S){var O=b?b.lockInactive():c.ZT;S.done(O)},(0,s.Z)({emitter:y,events:[l,d]});var E=y.lock},3873:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>s});var o=u(9904),c=u(7674),I=u(5031),C=u(5365),g=u(5873),a=u(8225);const s=I.Z.inherit({ctor:function(l){this._$element=(0,o.Z)(l),this._cancelCallback=(0,C.Z)(),this._acceptCallback=(0,C.Z)()},getElement:function(){return this._$element},validate:function(l){return!(0,a.pR)(l)},validatePointers:function(l){return 1===(0,a.G7)(l)},allowInterruptionByMouseWheel:function(){return!0},configure:function(l){(0,g.l)(this,l)},addCancelCallback:function(l){this._cancelCallback.add(l)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(l){this._cancelCallback.fire(this,l)},addAcceptCallback:function(l){this._acceptCallback.add(l)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(l){this._acceptCallback.fire(this,l)},_requestAccept:function(l){this._acceptRequestEvent=l},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:c.ZT,move:c.ZT,end:c.ZT,cancel:c.ZT,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(l,d,h){var v=(0,g.l)({type:l,originalEvent:d,target:this._getEmitterTarget(d),delegateTarget:this.getElement().get(0)},h);return(d=(0,a.BX)(v)).cancel&&this._cancel(d),d},_getEmitterTarget:function(l){return(this.delegateSelector?(0,o.Z)(l.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:c.ZT})},2203:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>w});var o=u(9904),c=u(3068),I=u(9897),C=u(913),g=u(5610),a=u(5031),p=u(5873),s=u(2718),l=u(4377),d=u(8225),h=u(8690),v=u(1186),x="dxEventManager",b="dxEmitter",E=new(a.Z.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){c.Z.add(function(){var T=I.Z.getDocument();C.Z.subscribeGlobal(T,(0,d.V4)(h.Z.down,x),this._pointerDownHandler.bind(this)),C.Z.subscribeGlobal(T,(0,d.V4)(h.Z.move,x),this._pointerMoveHandler.bind(this)),C.Z.subscribeGlobal(T,(0,d.V4)([h.Z.up,h.Z.cancel].join(" "),x),this._pointerUpHandler.bind(this)),C.Z.subscribeGlobal(T,(0,d.V4)(v.u,x),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(T){for(var k=this._activeEmitters||[],R=0;k.length>R;){var P=k[R];if(!1===T(P))break;k[R]===P&&R++}},_applyToEmitters:function(T,k){this._eachEmitter(function(R){R[T].call(R,k)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(T){this._proxiedCancelHandler(T)},_pointerDownHandler:function(T){(0,d.N5)(T)&&T.which>1||this._updateEmitters(T)},_updateEmitters:function(T){this._isSetChanged(T)&&(this._cleanEmitters(T),this._fetchEmitters(T))},_isSetChanged:function(T){var k=this._closestEmitter(T),R=this._emittersSet||[],P=k.length!==R.length;return(0,s.S6)(k,function(B,W){return!(P=P||R[B]!==W)}),this._emittersSet=k,P},_closestEmitter:function(T){var k=this,R=[],P=(0,o.Z)(T.target);function B(z,V){V&&V.validatePointers(T)&&V.validate(T)&&(V.addCancelCallback(k._proxiedCancelHandler),V.addAcceptCallback(k._proxiedAcceptHandler),R.push(V))}for(;P.length;){var W=(0,g.aT)(P.get(0),b)||[];(0,s.S6)(W,B),P=P.parent()}return R},_acceptHandler:function(T,k){var R=this;this._eachEmitter(function(P){P!==T&&R._cancelEmitter(P,k)})},_cancelHandler:function(T,k){this._cancelEmitter(T,k)},_cancelEmitter:function(T,k){var R=this._activeEmitters;k?T.cancel(k):T.reset(),T.removeCancelCallback(),T.removeAcceptCallback();var P=R.indexOf(T);P>-1&&R.splice(P,1)},_cleanEmitters:function(T){this._applyToEmitters("end",T),this.reset(T)},_fetchEmitters:function(T){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",T)},_pointerMoveHandler:function(T){this._applyToEmitters("move",T)},_pointerUpHandler:function(T){this._updateEmitters(T)},_mouseWheelHandler:function(T){this._allowInterruptionByMouseWheel()&&(T.pointers=[null],this._pointerDownHandler(T),this._adjustWheelEvent(T),this._pointerMoveHandler(T),T.pointers=[],this._pointerUpHandler(T))},_allowInterruptionByMouseWheel:function(){var T=!0;return this._eachEmitter(function(k){return T=k.allowInterruptionByMouseWheel()&&T}),T},_adjustWheelEvent:function(T){var k=null;if(this._eachEmitter(function(W){if(W.gesture){var z=W.getDirection(T);if("horizontal"!==z&&!T.shiftKey||"vertical"!==z&&T.shiftKey)return k=W,!1}}),k){var R=k.getDirection(T);T["both"===R&&!T.shiftKey||"vertical"===R?"pageY":"pageX"]+=T.delta}},isActive:function(T){var k=!1;return this._eachEmitter(function(R){k=k||R.getElement().is(T)}),k}})),S="dxEmitterSubscription";const w=function(T){var k=T.emitter,R=T.events[0],P=T.events;(0,s.S6)(P,function(B,W){(0,l.Z)(W,{noBubble:!T.bubble,setup:function(z){var V=(0,g.aT)(z,S)||{},U=(0,g.aT)(z,b)||{},K=U[R]||new k(z);V[W]=!0,U[R]=K,(0,g.aT)(z,b,U),(0,g.aT)(z,S,V)},add:function(z,V){(0,g.aT)(z,b)[R].configure((0,p.l)({delegateSelector:V.selector},V.data),V.type)},teardown:function(z){var V=(0,g.aT)(z,S),U=(0,g.aT)(z,b),K=U[R];delete V[W];var Y=!0;(0,s.S6)(P,function(J,j){return Y=Y&&!V[j]}),Y&&(E.isActive(z)&&E.resetEmitter(K),K&&K.dispose(),delete U[R])}})})}},4377:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>C});var o=u(2718),c=u(6856),I=function(g,a){var p={};"noBubble"in a&&(p.noBubble=a.noBubble),"bindType"in a&&(p.bindType=a.bindType),"delegateType"in a&&(p.delegateType=a.delegateType),(0,o.S6)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(s,l){a[l]&&(p[l]=function(){var d=[].slice.call(arguments);return d.unshift(this),a[l].apply(a,d)})}),c.Z.fire(g,p)};I.callbacks=c.Z;const C=I},6856:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=new(u(8174).Z)},913:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ye});var o=u(4817),c=u(6856),I=u(5873),C=u(9897),g=u(4514),a=u(2793),p=u(1828),s=u(5365),l=u(9644),d=["pageX","pageY","screenX","screenY","clientX","clientY"],x=u(4304),b=(0,g.Jj)(),y="dxEmptyEventType",E={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},S={focusin:"focus",focusout:"blur"},O=["blur","focus","load"],w=["touchmove","wheel","mousewheel","touchstart"];function k(ne,ce){return!(0,p.FJ)(ne)&&"#document"!==ne.nodeName&&C.Z.elementMatches(ne,ce)}var B,ne,R=new WeakMap,P=0,W=(ne={},c.Z.add(function(ce,le){ne[ce]=le}),{getField:function(ce,le){return ne[ce]&&ne[ce][le]},callMethod:function(ce,le,pe,Se){return ne[ce]&&ne[ce][le]&&ne[ce][le].apply(pe,Se)}}),z=(0,a.Z)({on:U(q(oe(function(ne,ce,le,pe,Se){j(ne,ce).addHandler(Se,le,pe)}))),one:U(q(function(ne,ce,le,pe,Se){z.on(ne,ce,le,pe,function re(){z.off(ne,ce,le,re),Se.apply(this,arguments)})})),off:U(function Z(ne){return function(ce,le,pe,Se){"function"==typeof pe&&(Se=pe,pe=void 0),ne(ce,le,pe,Se)}}(oe(function(ne,ce,le,pe){j(ne,ce).removeHandler(pe,le)}))),trigger:U(X(function(ne,ce,le){var pe=ce.type,Se=j(ne,ce.type);if(W.callMethod(pe,"trigger",ne,[ce,le]),Se.callHandlers(ce,le),!W.getField(pe,"noBubble")&&!ce.isPropagationStopped()&&-1===O.indexOf(pe)){var te=[];(function be(Ae){var Ne,mt=null!==(Ne=Ae.parentNode)&&void 0!==Ne?Ne:Ae.host;mt&&(te.push(mt),be(mt))})(ne),te.push(b);for(var ie=0;te[ie]&&!ce.isPropagationStopped();)j(te[ie],ce.type).callHandlers((0,I.l)(ce,{currentTarget:te[ie]}),le),ie++}(ne.nodeType||(0,p.FJ)(ne))&&(W.callMethod(pe,"_default",ne,[ce,le]),function fe(ne,ce){var le=S[ne]||ne;(function(pe,Se){return"click"===pe&&"a"===Se.localName})(ne,ce)||(0,p.mf)(ce[le])&&(B=ne,ce[le](),B=void 0)}(pe,ne))})),triggerHandler:U(X(function(ne,ce,le){j(ne,ce.type).callHandlers(ce,le)}))});function V(ne,ce){var le=ne[0];if(le)if(C.Z.isNode(le)||(0,p.FJ)(le))ce.apply(z,ne);else{if((0,p.HD)(le)||!("length"in le))throw l.Z.Error("E0025");var pe=Array.prototype.slice.call(ne,0);Array.prototype.forEach.call(le,function(Se){pe[0]=Se,V(pe,ce)})}}function U(ne){return function(){V(arguments,ne)}}var Y=(0,x.Z)(function K(){var ne=!1;try{var ce=Object.defineProperty({},"passive",{get:function(){return ne=!0,!0}});b.addEventListener("test",null,ce)}catch{}return ne}),J=(ne,ce)=>(0,p.FJ)(ne)?J(ne.document,ce):ne.contains?ne.contains(ce):!!(ce.compareDocumentPosition(ne)&ce.DOCUMENT_POSITION_CONTAINS);function j(ne,ce){var le=R.get(ne),pe=(ce=ce||"").split("."),Se=pe.slice(1),re=!!pe[0];ce=pe[0]||y,le||R.set(ne,le={}),le[ce]||(le[ce]={handleObjects:[],nativeHandler:null});var te=le[ce];return{addHandler:function(ie,ue,be){var Ae=function(gt,tn){var Ce,De,Pe=[gt],$e=gt.currentTarget,ge=gt.relatedTarget;ce in E&&(Ce=ge&&$e&&(ge===$e||J($e,ge))),void 0!==tn&&Pe.push(tn),W.callMethod(ce,"handle",ne,[gt,be]),Ce||(De=ie.apply($e,Pe)),!1===De&&(gt.preventDefault(),gt.stopPropagation())},Ne={handler:ie,wrappedHandler:function(gt,tn){if(!B||gt.type!==B)if(gt.data=be,gt.delegateTarget=ne,ue)for(var Pe=gt.target;Pe&&Pe!==ne;)k(Pe,ue)&&(gt.currentTarget=Pe,Ae(gt,tn)),Pe=Pe.parentNode;else gt.currentTarget=gt.delegateTarget||gt.target,Ae(gt,tn)},selector:ue,type:ce,data:be,namespace:Se.join("."),namespaces:Se,guid:++P};te.handleObjects.push(Ne);var Le,tt=1===te.handleObjects.length&&re;tt&&(tt=!W.callMethod(ce,"setup",ne,[be,Se,ie])),tt&&(te.nativeHandler=function ee(ne){return function(ce,le){var pe=j(this,ne);ce=z.Event(ce),pe.callHandlers(ce,le)}}(ce),Y()&&w.indexOf(ce)>-1&&(Le={passive:!1}),te.removeListener=C.Z.listen(ne,E[ce]||ce,te.nativeHandler,Le)),W.callMethod(ce,"add",ne,[Ne])},removeHandler:function(ie,ue){var be=function(mt){var Le,tt=le[mt];tt.handleObjects.length?(tt.handleObjects=tt.handleObjects.filter(function(Pe){var $e=Se.length&&!G(Pe.namespaces,Se)||ie&&Pe.handler!==ie||ue&&Pe.selector!==ue;return $e||(Le=Pe.handler,W.callMethod(mt,"remove",ne,[Pe])),$e}),!tt.handleObjects.length&&mt!==y&&(W.callMethod(mt,"teardown",ne,[Se,Le]),tt.nativeHandler&&tt.removeListener(),delete le[mt])):delete le[mt]};if(re)be(ce);else for(var Ae in le)be(Ae);0===Object.keys(le).length&&R.delete(ne)},callHandlers:function(ie,ue){var be=!1,Ae=function(Ne){be||(!Se.length||G(Ne.namespaces,Se))&&(Ne.wrappedHandler(ie,ue),be=ie.isImmediatePropagationStopped())};te.handleObjects.forEach(Ae),Se.length&&le[y]&&le[y].handleObjects.forEach(Ae)}}}function G(ne,ce){for(var le=0;le<ce.length;le++)if(ne.indexOf(ce[le])<0)return!1;return!0}function q(ne){return function(ce,le,pe,Se,re){re||(re=Se,Se=void 0),"string"!=typeof pe&&(Se=pe,pe=void 0),!re&&"string"==typeof le&&(re=Se||pe,pe=void 0,Se=void 0),ne(ce,le,pe,Se,re)}}function X(ne){return function(ce,le,pe){"string"==typeof le&&(le={type:le}),le.target||(le.target=ce),le.currentTarget=ce,le.delegateTarget||(le.delegateTarget=ce),!le.type&&le.originalEvent&&(le.type=le.originalEvent.type),ne(ce,le instanceof z.Event?le:z.Event(le),pe)}}function oe(ne){var ce=function(le,pe){if(pe&&pe.indexOf(" ")>-1){var Se=Array.prototype.slice.call(arguments,0);pe.split(" ").forEach(function(re){Se[1]=re,ne.apply(this,Se)})}else ne.apply(this,arguments)};return function(le,pe){if("object"==typeof pe){var Se=Array.prototype.slice.call(arguments,0);for(var re in pe)Se[1]=re,Se[Se.length-1]=pe[re],ce.apply(this,Se)}else ce.apply(this,arguments)}}function Te(ne){return null==(ce=ne).which&&0===ce.type.indexOf("key")?null!=ne.charCode?ne.charCode:ne.keyCode:function(ce){return!ce.which&&void 0!==ce.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(ce.type)}(ne)?{1:1,2:3,3:1,4:2}[ne.button]:ne.which;var ce}function Be(ne){ne&&(z.Event=ne,z.Event.prototype=ne.prototype)}function ze(ne,ce,le){Object.defineProperty(le||z.Event.prototype,ne,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&ce(this.originalEvent)},set:function(pe){Object.defineProperty(this,ne,{enumerable:!0,configurable:!0,writable:!0,value:pe})}})}Be(function M(ne){return z.Event=function(ce,le){if(!(this instanceof z.Event))return new z.Event(ce,le);ce||(ce={}),"string"==typeof ce&&(ce={type:ce}),le||(le={}),ne.call(this,ce,le)},(0,o.Z)(z.Event.prototype,{_propagationStopped:!1,_immediatePropagationStopped:!1,_defaultPrevented:!1,isPropagationStopped:function(){return!!(this._propagationStopped||this.originalEvent&&this.originalEvent.propagationStopped)},stopPropagation:function(){this._propagationStopped=!0,this.originalEvent&&this.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return this._immediatePropagationStopped},stopImmediatePropagation:function(){this.stopPropagation(),this._immediatePropagationStopped=!0,this.originalEvent&&this.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(this._defaultPrevented||this.originalEvent&&this.originalEvent.defaultPrevented)},preventDefault:function(){this._defaultPrevented=!0,this.originalEvent&&this.originalEvent.preventDefault()}}),z.Event}(function(ne,ce){var le;ne instanceof z.Event||(0,g.Ym)()&&ne instanceof b.Event||(null===(le=ne.view)||void 0===le?void 0:le.Event)&&ne instanceof ne.view.Event?(this.originalEvent=ne,this.type=ne.type,this.currentTarget=void 0,Object.prototype.hasOwnProperty.call(ne,"isTrusted")&&(this.isTrusted=ne.isTrusted),this.timeStamp=ne.timeStamp||Date.now()):(0,o.Z)(this,ne),ze("which",Te,this),0===ne.type.indexOf("touch")&&(delete ce.pageX,delete ce.pageY),(0,o.Z)(this,ce),this.guid=++P})),["target","relatedTarget","delegateTarget","altKey","bubbles","cancelable","changedTouches","ctrlKey","detail","eventPhase","metaKey","shiftKey","view","char","code","charCode","key","keyCode","button","buttons","offsetX","offsetY","pointerId","pointerType","targetTouches","toElement","touches"].forEach(ne=>ze(ne,ce=>ce[ne])),function v(ne){d.forEach(function(ce){ne(ce,function(le){return function(ne,ce){if(ce[ne]&&!ce.touches||!ce.touches)return ce[ne];var le=ce.touches.length?ce.touches:ce.changedTouches;return le.length?le[0][ne]:void 0}(ce,le)})},this)}(ze);var ae=(0,s.Z)(),_e=(0,s.Z)();z.set=function(ne){ae.fire(),z.inject(ne),Be(ne.Event),_e.fire()},z.subscribeGlobal=function(){V(arguments,q(function(){var ne=arguments;z.on.apply(this,ne),ae.add(function(){var ce=Array.prototype.slice.call(ne,0);ce.splice(3,1),z.off.apply(this,ce)}),_e.add(function(){z.on.apply(this,ne)})}))},z.forcePassiveFalseEventNames=w,z.passiveEventHandlersSupported=Y;const ye=z},8478:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(9904),c=u(913),I=u(5031),C=u(8225),g="compositionstart",s="KeyboardProcessor",l=v=>({keyName:(0,C.EV)(v),key:v.key,code:v.code,ctrl:v.ctrlKey,location:v.location,metaKey:v.metaKey,shift:v.shiftKey,alt:v.altKey,which:v.which,originalEvent:v}),d=I.Z.inherit({_keydown:(0,C.V4)("keydown",s),_compositionStart:(0,C.V4)(g,s),_compositionEnd:(0,C.V4)("compositionend",s),ctor:function(v){(v=v||{}).element&&(this._element=(0,o.Z)(v.element)),v.focusTarget&&(this._focusTarget=v.focusTarget),this._handler=v.handler,this._element&&(this._processFunction=x=>{var b=(0,o.Z)(this._focusTarget).toArray(),y=this._focusTarget&&this._focusTarget!==x.target&&!b.includes(x.target),E=this._isComposingJustFinished&&229===x.which||this._isComposing||y;this._isComposingJustFinished=!1,E||this.process(x)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),c.Z.on(this._element,this._keydown,this._processFunction),c.Z.on(this._element,this._compositionStart,this._toggleProcessingWithContext),c.Z.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(c.Z.off(this._element,this._keydown,this._processFunction),c.Z.off(this._element,this._compositionStart,this._toggleProcessingWithContext),c.Z.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(v){this._handler(l(v))},toggleProcessing:function(v){var{type:x}=v;this._isComposing=x===g,this._isComposingJustFinished=!this._isComposing}});d.createKeyDownOptions=l;const h=d},1186:(Rn,he,u)=>{"use strict";u.d(he,{u:()=>g});var o=u(9904),c=u(913),I=u(4377),C=u(8225),g="dxmousewheel",a="dxWheel",d={setup:function(h){var v=(0,o.Z)(h);c.Z.on(v,(0,C.V4)("wheel",a),d._wheelHandler.bind(d))},teardown:function(h){c.Z.off(h,".".concat(a))},_wheelHandler:function(h){var{deltaMode:v,deltaY:x,deltaX:b,deltaZ:y}=h.originalEvent;(0,C.BX)({type:g,originalEvent:h,delta:this._normalizeDelta(x,v),deltaX:b,deltaY:x,deltaZ:y,deltaMode:v,pointerType:"mouse"}),h.stopPropagation()},_normalizeDelta(h){return 0===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)?-h:-30*h}};(0,I.Z)(g,d)},1384:(Rn,he,u)=>{"use strict";u.d(he,{u:()=>s});var o=u(913),c=u(6520),I=u(9897),C=u(5031),g=u(4377),a=u(227),p=u(8225),s="dxdblclick",d=(0,p.V4)(a.u,"dxDblClick"),v=C.Z.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&o.Z.on(I.Z.getDocument(),d,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(x){var b=x.timeStamp||Date.now(),y=b-this._lastClickTimeStamp;!(y<0)&&y<300?((0,p.BX)({type:s,target:(0,c.Ls)(this._firstClickTarget,x.target),originalEvent:x}),this._forgetLastClick()):(this._firstClickTarget=x.target,this._lastClickTimeStamp=b)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),o.Z.off(I.Z.getDocument(),d))}});(0,g.Z)(s,new v)},6722:(Rn,he,u)=>{"use strict";u.d(he,{BL:()=>d,Cw:()=>y,IO:()=>x,Zu:()=>b,pB:()=>h,ut:()=>v});var o=u(9904),c=u(5610),I=u(9960),C=u(2718),g=u(6520),a=u(4377),p=u(8225),s=u(4755),l=u(2203),d="dxdragstart",h="dxdrag",v="dxdragend",x="dxdragenter",b="dxdragleave",y="dxdrop",E="dxDragEventsCount",S=[],O=[],w=[],T={setup:function(z,V){S.includes(z)||(S.push(z),O.push([]),w.push(V||{}))},add:function(z,V){var U=S.indexOf(z);this.updateEventsCounter(z,V.type,1);var K=V.selector;O[U].includes(K)||O[U].push(K)},updateEventsCounter:function(z,V,U){if([x,b,y].indexOf(V)>-1){var K=(0,c.aT)(z,E)||0;(0,c.aT)(z,E,Math.max(0,K+U))}},remove:function(z,V){this.updateEventsCounter(z,V.type,-1)},teardown:function(z){if(!(0,c.aT)(z,E)){var U=S.indexOf(z);S.splice(U,1),O.splice(U,1),w.splice(U,1),(0,c.NU)(z,E)}}};(0,a.Z)(x,T),(0,a.Z)(b,T),(0,a.Z)(y,T);var W=s.Z.inherit({ctor:function(z){this.callBase(z),this.direction="both"},_init:function(z){this._initEvent=z},_start:function(z){if(z=this._fireEvent(d,this._initEvent),this._maxLeftOffset=z.maxLeftOffset,this._maxRightOffset=z.maxRightOffset,this._maxTopOffset=z.maxTopOffset,this._maxBottomOffset=z.maxBottomOffset,z.targetElements||null===z.targetElements){var V=(0,I.sE)(z.targetElements||[]);this._dropTargets=C.UI(V,function(U){return(0,o.Z)(U).get(0)})}else this._dropTargets=S},_move:function(z){var V=(0,p.a0)(z),U=this._calculateOffset(V);z=this._fireEvent(h,z,{offset:U}),this._processDropTargets(z),z._cancelPreventDefault||z.preventDefault()},_calculateOffset:function(z){return{x:this._calculateXOffset(z),y:this._calculateYOffset(z)}},_calculateXOffset:function(z){return"vertical"!==this.direction?this._fitOffset(z.x-this._startEventData.x,this._maxLeftOffset,this._maxRightOffset):0},_calculateYOffset:function(z){return"horizontal"!==this.direction?this._fitOffset(z.y-this._startEventData.y,this._maxTopOffset,this._maxBottomOffset):0},_fitOffset:function(z,V,U){return null!=V&&(z=Math.max(z,-V)),null!=U&&(z=Math.min(z,U)),z},_processDropTargets:function(z){var V=this._findDropTarget(z);V===this._currentDropTarget||(this._fireDropTargetEvent(z,b),this._currentDropTarget=V,this._fireDropTargetEvent(z,x))},_fireDropTargetEvent:function(z,V){if(this._currentDropTarget){var U={type:V,originalEvent:z,draggingElement:this._$element.get(0),target:this._currentDropTarget};(0,p.BX)(U)}},_findDropTarget:function(z){var U,V=this;return C.S6(S,function(K,Y){if(V._checkDropTargetActive(Y)){var J=(0,o.Z)(Y);C.S6(function(z){var V=S.indexOf(z.get(0)),U=O[V].filter(Y=>Y),K=z.find(U.join(", "));return O[V].includes(void 0)&&(K=K.add(z)),K}(J),function(j,ee){var G=(0,o.Z)(ee);V._checkDropTarget(function(z){var V=S.indexOf(z.get(0));return w[V]}(J),G,(0,o.Z)(U),z)&&(U=ee)})}}),U},_checkDropTargetActive:function(z){var V=!1;return C.S6(this._dropTargets,function(U,K){return!(V=V||K===z||(0,g.r3)(K,z))}),V},_checkDropTarget:function(z,V,U,K){if(V.get(0)===(0,o.Z)(K.target).get(0))return!1;var J=function(z,V){return z.itemPositionFunc?z.itemPositionFunc(V):V.offset()}(z,V);if(K.pageX<J.left||K.pageY<J.top)return!1;var j=function(z,V){return z.itemSizeFunc?z.itemSizeFunc(V):{width:V.get(0).getBoundingClientRect().width,height:V.get(0).getBoundingClientRect().height}}(z,V);return!(K.pageX>J.left+j.width||K.pageY>J.top+j.height||U.length&&U.closest(V).length||z.checkDropTarget&&!z.checkDropTarget(V,K))&&V},_end:function(z){var V=(0,p.a0)(z);this._fireEvent(v,z,{offset:this._calculateOffset(V)}),this._fireDropTargetEvent(z,y),delete this._currentDropTarget}});(0,l.Z)({emitter:W,events:[d,h,v]})},4755:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>W});var o=u(9904),c=u(913),I=u(2941),C=u(4356),g=u(4304),a=u(6520),p=u(3068),s=u(3487),l=u(7674),d=u(1828),h=u(8225),v=u(3873),x=p.Z.add,b=Math.abs,O=10,R=(0,g.Z)(function(){var z="desktop"===I.Z.real().deviceType;if(!(0,C.Hj)("pointer-events")||!z)return l.ZT;var V=(0,o.Z)("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return c.Z.subscribeGlobal(V,"dxmousewheel",function(U){U.preventDefault()}),x(function(){V.appendTo("body")}),function(U,K){V.css("pointerEvents",U?"all":"none"),U&&V.css("cursor",K)}}),B=v.Z.inherit({gesture:!0,configure:function(z){this.getElement().css("msTouchAction",z.immediate?"pinch-zoom":""),this.callBase(z)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(z){z._needSkipEvent||(0,h.r1)(z)?this._cancel(z):(this._startEvent=(0,h.yM)(z),this._startEventData=(0,h.a0)(z),this._stage=1,this._init(z),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(z){if(1===this._stage&&this._directionConfirmed(z)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(z),this._adjustStartEvent(z),this._start(this._startEvent),0===this._stage)return;this._requestAccept(z),this._move(z),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(z),this._move(z))},_directionConfirmed:function(z){var V=this._getTouchBoundary(z),U=(0,h.hM)(this._startEventData,(0,h.a0)(z)),K=b(U.x),Y=b(U.y),J=this._validateMove(V,K,Y),j=this._validateMove(V,Y,K),ee=this.getDirection(z);return"both"===ee&&(J||j)||"horizontal"===ee&&J||"vertical"===ee&&j||this._immediateAccepted},_validateMove:function(z,V,U){return V&&V>=z&&(!this.immediate||V>=U)},_getTouchBoundary:function(z){return this.immediate||(0,h.pR)(z)?0:O},_adjustStartEvent:function(z){var V=this._getTouchBoundary(z),U=(0,h.hM)(this._startEventData,(0,h.a0)(z));this._startEvent.pageX+=(0,s.Xx)(U.x)*V,this._startEvent.pageY+=(0,s.Xx)(U.y)*V},_resetActiveElement:function(){"ios"===I.Z.real().platform&&this.getElement().find(":focus").length&&(0,a.M3)()},_toggleGestureCover:function(z){this._toggleGestureCoverImpl(z)},_toggleGestureCoverImpl:function(z){2===this._stage&&function(z,V){R()(z,V)}(z,this.getElement().css("cursor"))},_clearSelection:function(z){(0,h.pR)(z)||(0,h.z6)(z)||(0,a.MO)()},end:function(z){this._toggleGestureCover(!1),2===this._stage?this._end(z):1===this._stage&&this._stop(z),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:l.ZT,_start:l.ZT,_move:l.ZT,_stop:l.ZT,_end:l.ZT});B.initialTouchBoundary=O,B.touchBoundary=function(z){if(!(0,d.$K)(z))return O;O=z};const W=B},7772:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>R});var P,o=u(913),c=u(5031),I=u(8225),C=u(4755),g=u(2203),a=u(1536),p=u(2941),s=c.Z.abstract,l=p.Z.real(),d="scroll",h="dxscrollinit",v="dxscrollstart",x="dxscroll",b="dxscrollend",y="dxscrollstop",E="dxscrollcancel",S=c.Z.inherit((P=(0,I.V4)(d,"dxScrollEmitter"),{ctor:function(B){this._element=B,this._locked=!1,this._proxiedScroll=W=>{this._disposed||this._scroll(W)},o.Z.on(this._element,P,this._proxiedScroll)},_scroll:s,check:function(B,W){this._locked&&W()},dispose:function(){this._disposed=!0,o.Z.off(this._element,P,this._proxiedScroll)}})),O=S.inherit({ctor:function(P,B){this.callBase(P),this._timeout=B},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var P=this;this._timer=setTimeout(function(){P._clearTimer()},this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),w=O.inherit({ctor:function(P){this.callBase(P,400),this._lastWheelDirection=null},check:function(P,B){this._checkDirectionChanged(P),this.callBase(P,B)},_checkDirectionChanged:function(P){if((0,I.pR)(P)){var B=P.shiftKey||!1,W=null!==this._lastWheelDirection&&B!==this._lastWheelDirection;this._lastWheelDirection=B,this._locked=this._locked&&!W}else this._lastWheelDirection=null}}),T=O.inherit({ctor:function(P){this.callBase(P,400)}});!function(){var{ios:P,android:B}=l;(P||B)&&(T=S.inherit({_scroll:function(){this._locked=!0;var W=this;(0,a.W)(this._scrollFrame),this._scrollFrame=(0,a.U)(function(){W._locked=!1})},check:function(W,z){(0,a.W)(this._scrollFrame),(0,a.W)(this._checkFrame);var V=this,U=this.callBase;this._checkFrame=(0,a.U)(function(){U.call(V,W,z),V._locked=!1})},dispose:function(){this.callBase(),(0,a.W)(this._scrollFrame),(0,a.W)(this._checkFrame)}}))}();var k=C.Z.inherit(function(){var P=Math.round(16.666666666666668);return{ctor:function(B){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new T(B),this._wheelLocker=new w(B)},validate:function(){return!0},configure:function(B){B.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new T(B.scrollTarget),this._wheelLocker=new w(B.scrollTarget)),this.callBase(B)},_init:function(B){this._wheelLocker.check(B,function(){(0,I.pR)(B)&&this._accept(B)}.bind(this)),this._pointerLocker.check(B,function(){var W=this.isNative&&(0,I.N5)(B);!(0,I.pR)(B)&&!W&&this._accept(B)}.bind(this)),this._fireEvent(h,B),this._prevEventData=(0,I.a0)(B)},move:function(B){this.callBase.apply(this,arguments),B.isScrollingEvent=this.isNative||B.isScrollingEvent},_start:function(B){this._savedEventData=(0,I.a0)(B),this._fireEvent(v,B),this._prevEventData=(0,I.a0)(B)},_move:function(B){var W=(0,I.a0)(B);this._fireEvent(x,B,{delta:(0,I.hM)(this._prevEventData,W)}),(0,I.hM)(this._savedEventData,W).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=(0,I.a0)(B)},_end:function(B){var W=(0,I.hM)(this._prevEventData,(0,I.a0)(B)),z={x:0,y:0};if(!(0,I.pR)(B)&&W.time<100){var V=(0,I.hM)(this._savedEventData,this._prevEventData),U=P/V.time;z={x:V.x*U,y:V.y*U}}this._fireEvent(b,B,{velocity:z})},_stop:function(B){this._fireEvent(y,B)},cancel:function(B){this.callBase.apply(this,arguments),this._fireEvent(E,B)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}());(0,g.Z)({emitter:k,events:[h,v,x,b,y,E]});const R={init:h,start:v,move:x,end:b,stop:y,cancel:E,scroll:d}},4969:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>v});var o=u(1918),c=u(913),I=u(8893),C=u(2718),g=u(8225),a=u(5873),p=u(6165),s="dxSwipeable",d={onStart:o.BL,onUpdated:o.aq,onEnd:o.ut,onCancel:"dxswipecancel"},h=I.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var x=this.NAME;this._createEventData(),(0,C.S6)(d,function(b,y){var E=this._createActionByOption(b,{context:this});y=(0,g.V4)(y,x),c.Z.on(this.$element(),y,this._eventData,function(S){return E({event:S})})}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){c.Z.off(this.$element(),"."+s)},_optionChanged:function(x){switch(x.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(x)}},_useTemplates:function(){return!1}});(0,p.u2)(h,s);const v=h},5180:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>l});var o=u(8225),c=u(3873),I=u(2203),C=Math.abs,g="dxhold",s=c.Z.inherit({start:function(d){this._startEventData=(0,o.a0)(d),this._startTimer(d)},_startTimer:function(d){var h="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(d),this._fireEvent(g,d,{target:d.target}),this._forgetAccept()}.bind(this),h)},move:function(d){this._touchWasMoved(d)&&this._cancel(d)},_touchWasMoved:function(d){var h=(0,o.hM)(this._startEventData,(0,o.a0)(d));return C(h.x)>5||C(h.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});(0,I.Z)({emitter:s,bubble:!0,events:[g]});const l={name:g}},5239:(Rn,he,u)=>{"use strict";u.d(he,{B:()=>l,u:()=>v});var o=u(913),c=u(5610),I=u(5031),C=u(2941),g=u(4377),a=u(8225),p=u(8690),s="dxHoverStart",l="dxhoverstart",d=(0,a.V4)(p.Z.enter,s),h="dxHoverEnd",v="dxhoverend",x=(0,a.V4)(p.Z.leave,h),b=I.Z.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(S){(0,c.aT)(S,this._handlerArrayKeyPath,{})},add:function(S,O){var w=this,T=function(k){w._handler(k)};o.Z.on(S,this._originalEventName,O.selector,T),(0,c.aT)(S,this._handlerArrayKeyPath)[O.guid]=T},_handler:function(S){(0,a.z6)(S)||C.Z.isSimulator()||(0,a.BX)({type:this._eventName,originalEvent:S,delegateTarget:S.delegateTarget})},remove:function(S,O){var w=(0,c.aT)(S,this._handlerArrayKeyPath)[O.guid];o.Z.off(S,this._originalEventName,O.selector,w)},teardown:function(S){(0,c.NU)(S,this._handlerArrayKeyPath)}}),y=b.inherit({ctor:function(){this._eventNamespace=s,this._eventName=l,this._originalEventName=d,this.callBase()},_handler:function(S){(S.pointers||[]).length||this.callBase(S)}}),E=b.inherit({ctor:function(){this._eventNamespace=h,this._eventName=v,this._originalEventName=x,this.callBase()}});(0,g.Z)(l,new y),(0,g.Z)(v,new E)},2721:(Rn,he,u)=>{"use strict";u.d(he,{J_:()=>I,ju:()=>p,y_:()=>a});var o=u(913),I=o.Z.one,a=o.Z.triggerHandler,p=o.Z.Event},8690:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>M});var o=u(4505),c=u(2718),I=u(2941),C=u(4377),g=u(5873),a=u(913),p=u(4722),s=u(9897),l=u(5031),d=u(8225),h="dxPointerEvents";const x=l.Z.inherit({ctor:function(oe,fe){this._eventName=oe,this._originalEvents=(0,d.V4)(fe,h),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var oe=this._eventName;return"dxpointerenter"===oe||"dxpointerleave"===oe},_handler:function(oe){var fe,Te=this._getDelegateTarget(oe),Be={type:this._eventName,pointerType:oe.pointerType||(0,d.J6)(oe),originalEvent:oe,delegateTarget:Te,timeStamp:p.Z.mozilla?(new Date).getTime():oe.timeStamp},ze=oe.originalEvent;if(null!=ze&&null!==(fe=ze.target)&&void 0!==fe&&fe.shadowRoot){var ae,_e,ye=null!==(ae=ze.path)&&void 0!==ae?ae:null===(_e=ze.composedPath)||void 0===_e?void 0:_e.call(ze);Be.target=ye[0]}return this._fireEvent(Be)},_getDelegateTarget:function(oe){var fe;return this.noBubble&&(fe=oe.delegateTarget),fe},_fireEvent:function(oe){return(0,d.BX)(oe)},_setSelector:function(oe){this._selector=this.noBubble&&oe?oe.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(oe,fe){if(this._handlerCount<=0||this.noBubble){oe=this.noBubble?oe:s.Z.getDocument(),this._setSelector(fe);var Te=this;a.Z.on(oe,this._originalEvents,this._getSelector(),function(Be){Te._handler(Be)})}this.noBubble||this._handlerCount++},remove:function(oe){this._setSelector(oe),this.noBubble||this._handlerCount--},teardown:function(oe){this._handlerCount&&!this.noBubble||(oe=this.noBubble?oe:s.Z.getDocument(),this._originalEvents!=="."+h&&a.Z.off(oe,this._originalEvents,this._getSelector()))},dispose:function(oe){oe=this.noBubble?oe:s.Z.getDocument(),a.Z.off(oe,this._originalEvents)}});var y=function(oe){var fe=[];return(0,c.S6)(oe.touches,function(Te,Be){fe.push((0,g.l)({pointerId:Be.identifier},Be))}),{pointers:fe,pointerId:oe.changedTouches[0].identifier}},E=function(oe){return"ios"===I.Z.real().platform&&("dxpointerdown"===oe||"dxpointerup"===oe)},S=x.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(oe){if(E(this._eventName)){var fe=oe.changedTouches[0];if(this._pointerId===fe.identifier&&0!==this._pointerId)return;this._pointerId=fe.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(oe){return this.callBase((0,g.l)(y(oe.originalEvent),oe))}});S.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},S.normalize=y;const O=S;var w=u(3068),T=function(oe,fe){w.Z.add(function(){oe.split(" ").forEach(function(Te){s.Z.listen(s.Z.getDocument(),Te,fe,!0)})})};const R=function(oe,fe,Te){Te=Te||function(){};var Be=[],ze=function(_e){var ye=-1;return(0,c.S6)(Be,function(ne,ce){return!fe(_e,ce)||(ye=ne,!1)}),ye},ae=function(_e){var ye=ze(_e);ye>-1&&Be.splice(ye,1)};T(oe.dxpointerdown,function(_e){-1===ze(_e)&&(Te(_e),Be.push(_e))}),T(oe.dxpointermove,function(_e){Be[ze(_e)]=_e}),T(oe.dxpointerup,ae),T(oe.dxpointercancel,ae),this.pointers=function(){return Be},this.reset=function(){Be=[]}};var W,P={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},B=function(oe){return oe.pointerId=1,{pointers:W.pointers(),pointerId:1}},z=!1,V=function(){z||(W=new R(P,function(){return!0}),z=!0)},U=x.inherit({ctor:function(){this.callBase.apply(this,arguments),V()},_fireEvent:function(oe){return this.callBase((0,g.l)(B(oe.originalEvent),oe))}});U.map=P,U.normalize=B,U.activate=V,U.resetObserver=function(){W.reset()};const K=U;var J=!1,j=function(){J||(K.activate(),J=!0)},ee=x.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),j()},_handler:function(oe){var fe=(0,d.N5)(oe);if(fe||(this._skipNextEvents=!0),!fe||!this._mouseLocked){if(fe&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var Te=this;return void(this._unlockMouseTimer=setTimeout(function(){Te._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(oe)}},_fireEvent:function(oe){var fe=(0,d.N5)(oe.originalEvent)?K.normalize:O.normalize;return this.callBase((0,g.l)(fe(oe.originalEvent),oe))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});ee.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},ee.resetObserver=K.resetObserver;const G=ee;var Z=((oe,fe)=>{var{tablet:Te,phone:Be}=fe;return!oe.touch||Te||Be?oe.touch?O:K:G})(o,I.Z.real());(0,c.S6)(Z.map,(oe,fe)=>{(0,C.Z)(oe,new Z(oe,fe))});const M={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},4416:(Rn,he,u)=>{"use strict";u.d(he,{x:()=>g});var o=u(9904),c=u(5610),I=u(913),C=u(4377),g="dxremove",a="dxRemoveEvent";(0,c.WD)(function(p){p=[].slice.call(p);for(var s=0;s<p.length;s++){var l=(0,o.Z)(p[s]);l.prop(a)&&(l[0][a]=null,I.Z.triggerHandler(l,g))}}),(0,C.Z)(g,{noBubble:!0,setup:function(p){(0,o.Z)(p).prop(a,!0)}})},114:(Rn,he,u)=>{"use strict";u.d(he,{Mr:()=>s,SI:()=>p,T_:()=>d,V4:()=>v,WD:()=>l,bB:()=>a,dG:()=>E,wt:()=>h});var o=u(913),c=u(8478),I=u(8225);function C(S,O){return O?(0,I.V4)(S,O):S}function g(S,O){return"function"==typeof S?S(O):S.execute(O)}var a={on:(S,O,w,T)=>{var{selector:k,showTimeout:R,hideTimeout:P,namespace:B}=T;o.Z.on(S,C("dxactive",B),k,{timeout:R},W=>g(O,{event:W,element:W.currentTarget})),o.Z.on(S,C("dxinactive",B),k,{timeout:P},W=>g(w,{event:W,element:W.currentTarget}))},off:(S,O)=>{var{namespace:w,selector:T}=O;o.Z.off(S,C("dxactive",w),T),o.Z.off(S,C("dxinactive",w),T)}},p={on:function(S,O){var{namespace:w}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o.Z.on(S,C("dxresize",w),O)},off:function(S){var{namespace:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Z.off(S,C("dxresize",O))}},s={on:(S,O,w,T)=>{var{selector:k,namespace:R}=T;o.Z.on(S,C("dxhoverend",R),k,P=>w(P)),o.Z.on(S,C("dxhoverstart",R),k,P=>g(O,{element:P.target,event:P}))},off:(S,O)=>{var{selector:w,namespace:T}=O;o.Z.off(S,C("dxhoverstart",T),w),o.Z.off(S,C("dxhoverend",T),w)}},l={on:(S,O,w,T)=>{var{namespace:k}=T;o.Z.on(S,C("dxhiding",k),w),o.Z.on(S,C("dxshown",k),O)},off:(S,O)=>{var{namespace:w}=O;o.Z.off(S,C("dxhiding",w)),o.Z.off(S,C("dxshown",w))}},d={on:(S,O,w,T)=>{var{namespace:k}=T;o.Z.on(S,C("focusin",k),O),o.Z.on(S,C("focusout",k),w)},off:(S,O)=>{var{namespace:w}=O;o.Z.off(S,C("focusin",w)),o.Z.off(S,C("focusout",w))},trigger:S=>o.Z.trigger(S,"focus")},h={on:function(S,O){var{namespace:w}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o.Z.on(S,C("dxclick",w),O)},off:function(S){var{namespace:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Z.off(S,C("dxclick",O))}},v={on:function(S,O){var{namespace:w}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};o.Z.on(S,C("click",w),O)},off:function(S){var{namespace:O}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o.Z.off(S,C("click",O))}},x=0,b={},E={on:(S,O,w)=>{var T="keyboardProcessorId".concat(x++);return b[T]=new c.Z({element:S,focusTarget:O,handler:w}),T},off:S=>{S&&b[S]&&(b[S].dispose(),delete b[S])},_getProcessor:S=>b[S]}},1918:(Rn,he,u)=>{"use strict";u.d(he,{BL:()=>g,aq:()=>a,ut:()=>p});var o=u(1805),c=u(8225),I=u(4755),C=u(2203),g="dxswipestart",a="dxswipe",p="dxswipeend",d={horizontal:{defaultItemSizeFunc:function(){return(0,o.dz)(this.getElement())},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(v){return((0,c.a0)(v).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,v)},isFastSwipe:function(v){var x=(0,c.a0)(v);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(x.x-this._tickData.x)>=x.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return(0,o.Cr)(this.getElement())},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(v){return((0,c.a0)(v).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,v)},isFastSwipe:function(v){var x=(0,c.a0)(v);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(x.y-this._tickData.y)>=x.time-this._tickData.time}}},h=I.Z.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(v){this.callBase(v),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return d[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(v){this._tickData=(0,c.a0)(v)},_start:function(v){this._savedEventData=(0,c.a0)(v),(v=this._fireEvent(g,v)).cancel||(this._maxLeftOffset=v.maxLeftOffset,this._maxRightOffset=v.maxRightOffset,this._maxTopOffset=v.maxTopOffset,this._maxBottomOffset=v.maxBottomOffset)},_move:function(v){var x=this._getStrategy(),b=(0,c.a0)(v),y=x.calcOffsetRatio.call(this,v);y=this._fitOffset(y,this.elastic),b.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=b),this._fireEvent(a,v,{offset:y}),v.preventDefault()},_end:function(v){var x=this._getStrategy(),b=x.calcOffsetRatio.call(this,v),y=x.isFastSwipe.call(this,v),E=b,S=this._calcTargetOffset(b,y);E=this._fitOffset(E,this.elastic),S=this._fitOffset(S,!1),this._fireEvent(p,v,{offset:E,targetOffset:S})},_fitOffset:function(v,x){var y=this._getStrategy().getBounds.call(this);return v<-y[0]?x?(-2*y[0]+v)/3:-y[0]:v>y[1]?x?(2*y[1]+v)/3:y[1]:v},_calcTargetOffset:function(v,x){var b;return x?(b=Math.ceil(Math.abs(v)),v<0&&(b=-b)):b=Math.round(v),b}});(0,C.Z)({emitter:h,events:[g,a,p]})},8225:(Rn,he,u)=>{"use strict";u.d(he,{V4:()=>Z,yM:()=>j,a0:()=>B,hM:()=>W,J6:()=>S,BX:()=>ee,qK:()=>q,G7:()=>z,j1:()=>X,pR:()=>T,VF:()=>P,N5:()=>w,bX:()=>O,z6:()=>k,r1:()=>Y,EV:()=>G});var o=u(9904),c=u(9644),I=(M,oe)=>{if(!oe)throw c.Z.Error("E0017");return Array.isArray(M)?M.map(fe=>I(fe,oe)).join(" "):-1!==M.indexOf(" ")?I(M.split(/\s+/g),oe):"".concat(M,".").concat(oe)};const C=I;var g=u(913),a=u(2718),p=u(5873),s=u(7),l={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift"},d={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},h={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},b=M=>"dx"===S(M),E=M=>"touch"===S(M),S=M=>{var{type:oe}=M,fe="other";return(0,a.S6)(h,function(Te){if(this.test(oe))return fe=Te,!1}),fe},O=M=>"pointer"===S(M),w=M=>(M=>"mouse"===S(M))(M)||(O(M)||b(M))&&"mouse"===M.pointerType,T=M=>M&&"dxmousewheel"===M.type,k=M=>E(M)||(O(M)||b(M))&&"touch"===M.pointerType,P=M=>{var{screenX:oe,offsetX:fe,pageX:Te}=M;return 0===oe&&!fe&&0===Te},B=M=>{var{pageX:oe,pageY:fe,timeStamp:Te}=M;return{x:oe,y:fe,time:Te}},W=(M,oe)=>({x:oe.x-M.x,y:oe.y-M.y,time:oe.time-M.time||1}),z=M=>{var{originalEvent:oe,pointers:fe}=M;return E(M)?(oe.touches||[]).length:b(M)?(fe||[]).length:0},Y=M=>{var{target:oe}=M,fe=(0,o.Z)(oe),Te=oe?.isContentEditable||oe?.hasAttribute("contenteditable"),Be=fe.is("input, textarea, select")||Te;return T(M)?!(fe.is("textarea")&&fe.hasClass("dx-texteditor-input")||Te)&&fe.is("input[type='number'], textarea, select")&&fe.is(":focus"):w(M)?Be||M.which>1:k(M)?Be&&(0,s.si)(fe):void 0},j=(M,oe)=>{var fe=(M=>g.Z.Event(M,M))(M);return oe&&(0,p.l)(fe,oe),fe},ee=M=>{var{originalEvent:oe,delegateTarget:fe}=M,Te=j(oe,M);return g.Z.trigger(fe||Te.target,Te),Te},G=M=>{var{key:oe,which:fe}=M,Te=l[oe?.toLowerCase()]||oe,Be=d[fe];return Be&&Te===oe?Be:!Te&&fe?String.fromCharCode(fe):Te},q=M=>{var{key:oe,which:fe}=M;return oe||String.fromCharCode(fe)},Z=C,X=M=>{var{ctrlKey:oe,metaKey:fe}=M;return oe||fe}},2526:(Rn,he,u)=>{"use strict";u.d(he,{Ly:()=>g,U_:()=>a,Uo:()=>C});var o=u(9904),c=u(913),I=function(p){return function(s){for(var l=(0,o.Z)(s||"body"),d=l.filter(".dx-visibility-change-handler").add(l.find(".dx-visibility-change-handler")),h=0;h<d.length;h++)c.Z.triggerHandler(d[h],p)}},C=I("dxshown"),g=I("dxhiding"),a=I("dxresize")},8606:(Rn,he,u)=>{"use strict";u.d(he,{Ak:()=>zt,xD:()=>ft,BH:()=>wt,eA:()=>Xt,YP:()=>fn});var o=u(8114),c=u(5031),I=u(4514),C=u(1828),g=u(5873),a=u(8159),p=u(9589),s=u(7586),l=u.n(s),d=u(658),h=u(8119),v=u(3479),x=u(8379),E=(u(3128),{thousands:"#,##0{0},&quot;K&quot;",millions:"#,##0{0},,&quot;M&quot;",billions:"#,##0{0},,,&quot;B&quot;",trillions:"#,##0{0},,,,&quot;T&quot;",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "}),S=/a+/g,O=/E/g,w=/dE+/g,T=/L/g,k=/h/g,R=/./g,P={_applyPrecision:function(Ke,ht){var on,hn;if(ht>0){for(on="decimal"!==Ke?".":"",hn=0;hn<ht;hn++)on+="0";return on}return""},_hasArabicDigits:function(Ke){for(var ht,on=0;on<Ke.length;on++)if((ht=Ke.charCodeAt(on))>=1632&&ht<1642)return!0;return!1},_convertDateFormatToOpenXml:function(Ke){return Ke.split("/").join("\\/").split("'").map(function(ht,on){return on%2==0?ht.replace(S,"AM/PM").replace(w,"d").replace(O,"d").replace(T,"M").replace(k,"H").split("[").join("\\[").split("]").join("\\]"):ht?ht.replace(R,"\\$&"):"'"}).join("")},_convertDateFormat:function(Ke){var ht=(h.Z.format(new Date(2009,8,8,6,5,4),Ke)||"").toString(),on=(0,v.y)(hn=>h.Z.format(hn,Ke));return on&&(on=this._convertDateFormatToOpenXml(on),on=this._getLanguageInfo(ht)+on),on},_getLanguageInfo:function(Ke){var ht=(0,x.D)(),on=ht?ht.toString(16):"",hn="";if(this._hasArabicDigits(Ke)){for(;on.length<3;)on="0"+on;hn="[$-2010"+on+"]"}else on&&(hn="[$-"+on+"]");return hn},_convertNumberFormat:function(Ke,ht,on){var hn,an;return(an="currency"===Ke?d.Z.getOpenXmlCurrencyFormat(on):E[Ke.toLowerCase()])&&(hn=(0,p.WU)(an,this._applyPrecision(Ke,ht))),hn},convertFormat:function(Ke,ht,on,hn){if((0,C.$K)(Ke)){if("date"===on)return P._convertDateFormat(Ke);if((0,C.HD)(Ke)&&E[Ke.toLowerCase()])return P._convertNumberFormat(Ke,ht,hn)}}};const B=P,z_toXml=function(Ke,ht,on){var hn=["<",Ke];for(var an in ht){var Nn=ht[an];(0,C.$K)(Nn)&&hn.push(" ",an,'="',Nn,'"')}return(0,C.$K)(on)&&""!==on?hn.push(">",on,"</",Ke,">"):hn.push(" />"),hn.join("")};var V={tryCreateTag:function(Ke){var ht=null;return(0,C.$K)(Ke)&&V.isEmpty(ht={vertical:Ke.vertical,wrapText:Ke.wrapText,horizontal:Ke.horizontal})&&(ht=null),ht},copy:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={},void 0!==Ke.horizontal&&(ht.horizontal=Ke.horizontal),void 0!==Ke.vertical&&(ht.vertical=Ke.vertical),void 0!==Ke.wrapText&&(ht.wrapText=Ke.wrapText)),ht},areEqual:function(Ke,ht){return V.isEmpty(Ke)&&V.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&Ke.vertical===ht.vertical&&Ke.wrapText===ht.wrapText&&Ke.horizontal===ht.horizontal},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.vertical)&&!(0,C.$K)(Ke.wrapText)&&!(0,C.$K)(Ke.horizontal)},toXml:function(Ke){return z_toXml("alignment",{vertical:Ke.vertical,wrapText:(0,C.$K)(Ke.wrapText)?Number(Ke.wrapText):void 0,horizontal:Ke.horizontal})}};const U=V;var K={_tryConvertColor:function(Ke){if("string"!=typeof Ke)return Ke;var ht;if(Ke.length>0&&"#"===Ke[0]){var on=Ke.substr(1,Ke.length);ht=6===on.length?"FF"+on:8===on.length?on[6]+on[7]+on.substr(0,6):on}else ht=Ke;return ht},tryCreateTag:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht="string"==typeof Ke?{rgb:this._tryConvertColor(Ke)}:{rgb:this._tryConvertColor(Ke.rgb),theme:Ke.theme},K.isEmpty(ht)&&(ht=null)),ht},copy:function(Ke){var ht=null;return(0,C.$K)(Ke)&&("string"==typeof Ke?ht=Ke:(ht={},void 0!==Ke.rgb&&(ht.rgb=Ke.rgb),void 0!==Ke.theme&&(ht.theme=Ke.theme))),ht},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.rgb)&&!(0,C.$K)(Ke.theme)},areEqual:function(Ke,ht){return K.isEmpty(Ke)&&K.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&Ke.rgb===ht.rgb&&Ke.theme===ht.theme},toXml:function(Ke,ht){return z_toXml(Ke,{rgb:ht.rgb,theme:ht.theme})}};const Y=K;var J={tryCreateTag:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={patternType:Ke.patternType,backgroundColor:Y.tryCreateTag(Ke.backgroundColor),foregroundColor:Y.tryCreateTag(Ke.foregroundColor)},J.isEmpty(ht)&&(ht=null)),ht},copy:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={},void 0!==Ke.patternType&&(ht.patternType=Ke.patternType),void 0!==Ke.backgroundColor&&(ht.backgroundColor=Y.copy(Ke.backgroundColor)),void 0!==Ke.foregroundColor&&(ht.foregroundColor=Y.copy(Ke.foregroundColor))),ht},areEqual:function(Ke,ht){return J.isEmpty(Ke)&&J.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&Ke.patternType===ht.patternType&&Y.areEqual(Ke.backgroundColor,ht.backgroundColor)&&Y.areEqual(Ke.foregroundColor,ht.foregroundColor)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.patternType)},toXml:function(Ke){var ht=[(0,C.$K)(Ke.foregroundColor)?Y.toXml("fgColor",Ke.foregroundColor):"",(0,C.$K)(Ke.backgroundColor)?Y.toXml("bgColor",Ke.backgroundColor):""].join("");return z_toXml("patternFill",{patternType:Ke.patternType},ht)}};const j=J;var ee={tryCreateTag:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={patternFill:j.tryCreateTag(Ke.patternFill)},ee.isEmpty(ht)&&(ht=null)),ht},tryCreateFillFromSimpleFormat:function(){var{backgroundColor:Ke,fillPatternType:ht,fillPatternColor:on}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return!(0,C.$K)(Ke)||(0,C.$K)(ht)&&(0,C.$K)(on)?(0,C.$K)(ht)&&(0,C.$K)(on)?{patternFill:{patternType:ht,foregroundColor:{rgb:on},backgroundColor:{rgb:Ke}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:Ke}}}},copySimpleFormat:function(Ke,ht){void 0!==Ke.backgroundColor&&(ht.backgroundColor=Ke.backgroundColor),void 0!==Ke.fillPatternType&&(ht.fillPatternType=Ke.fillPatternType),void 0!==Ke.fillPatternColor&&(ht.fillPatternColor=Ke.fillPatternColor)},copy:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={},void 0!==Ke.patternFill&&(ht.patternFill=j.copy(Ke.patternFill))),ht},areEqual:function(Ke,ht){return ee.isEmpty(Ke)&&ee.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&j.areEqual(Ke.patternFill,ht.patternFill)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||j.isEmpty(Ke.patternFill)},toXml:function(Ke){return z_toXml("fill",{},j.toXml(Ke.patternFill))}};const G=ee;var q={tryCreateTag:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={size:Ke.size,name:Ke.name,family:Ke.family,scheme:Ke.scheme,bold:Ke.bold,italic:Ke.italic,underline:Ke.underline,color:Y.tryCreateTag(Ke.color)},q.isEmpty(ht)&&(ht=null)),ht},copy:function(Ke){var ht=null;return(0,C.$K)(Ke)&&(ht={},void 0!==Ke.size&&(ht.size=Ke.size),void 0!==Ke.name&&(ht.name=Ke.name),void 0!==Ke.family&&(ht.family=Ke.family),void 0!==Ke.scheme&&(ht.scheme=Ke.scheme),void 0!==Ke.bold&&(ht.bold=Ke.bold),void 0!==Ke.italic&&(ht.italic=Ke.italic),void 0!==Ke.underline&&(ht.underline=Ke.underline),void 0!==Ke.color&&(ht.color=Y.copy(Ke.color))),ht},areEqual:function(Ke,ht){return q.isEmpty(Ke)&&q.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&Ke.size===ht.size&&Ke.name===ht.name&&Ke.family===ht.family&&Ke.scheme===ht.scheme&&(Ke.bold===ht.bold||!Ke.bold==!ht.bold)&&(Ke.italic===ht.italic||!Ke.italic==!ht.italic)&&Ke.underline===ht.underline&&Y.areEqual(Ke.color,ht.color)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.size)&&!(0,C.$K)(Ke.name)&&!(0,C.$K)(Ke.family)&&!(0,C.$K)(Ke.scheme)&&(!(0,C.$K)(Ke.bold)||!Ke.bold)&&(!(0,C.$K)(Ke.italic)||!Ke.italic)&&!(0,C.$K)(Ke.underline)&&Y.isEmpty(Ke.color)},toXml:function(Ke){var ht=[(0,C.$K)(Ke.bold)&&Ke.bold?z_toXml("b",{}):"",(0,C.$K)(Ke.size)?z_toXml("sz",{val:Ke.size}):"",(0,C.$K)(Ke.color)?Y.toXml("color",Ke.color):"",(0,C.$K)(Ke.name)?z_toXml("name",{val:Ke.name}):"",(0,C.$K)(Ke.family)?z_toXml("family",{val:Ke.family}):"",(0,C.$K)(Ke.scheme)?z_toXml("scheme",{val:Ke.scheme}):"",(0,C.$K)(Ke.italic)&&Ke.italic?z_toXml("i",{}):"",(0,C.$K)(Ke.underline)?z_toXml("u",{val:Ke.underline}):""].join("");return z_toXml("font",{},ht)}};const Z=q;var X={tryCreateTag:function(Ke,ht){var on=null;if((0,C.$K)(Ke)){var hn;hn="number"==typeof Ke.numberFormat?Ke.numberFormat:ht.registerNumberFormat(Ke.numberFormat);var an=Ke.fill;(0,C.$K)(an)||(an=G.tryCreateFillFromSimpleFormat(Ke)),on={numberFormatId:hn,alignment:U.tryCreateTag(Ke.alignment),fontId:ht.registerFont(Ke.font),fillId:ht.registerFill(an)},X.isEmpty(on)&&(on=null)}return on},copy:function(Ke){var ht;return null===Ke?ht=null:(0,C.$K)(Ke)&&(ht={},void 0!==Ke.numberFormat&&(ht.numberFormat=Ke.numberFormat),void 0!==Ke.fill?ht.fill=G.copy(Ke.fill):G.copySimpleFormat(Ke,ht),void 0!==Ke.alignment&&(ht.alignment=U.copy(Ke.alignment)),void 0!==Ke.font&&(ht.font=Z.copy(Ke.font))),ht},areEqual:function(Ke,ht){return X.isEmpty(Ke)&&X.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&Ke.fontId===ht.fontId&&Ke.numberFormatId===ht.numberFormatId&&Ke.fillId===ht.fillId&&U.areEqual(Ke.alignment,ht.alignment)},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.fontId)&&!(0,C.$K)(Ke.numberFormatId)&&!(0,C.$K)(Ke.fillId)&&U.isEmpty(Ke.alignment)},toXml:function(Ke){var on,ht=U.isEmpty(Ke.alignment);return(0,C.$K)(Ke.numberFormatId)&&(on=Ke.numberFormatId>0?1:0),z_toXml("xf",{xfId:0,applyAlignment:ht?null:1,fontId:Ke.fontId,applyNumberFormat:on,fillId:Ke.fillId,numFmtId:Ke.numberFormatId},ht?null:U.toXml(Ke.alignment))}};const M=X;var oe={ID_PROPERTY_NAME:"id",tryCreateTag:function(Ke){var ht=null;return"string"==typeof Ke&&oe.isEmpty(ht={formatCode:Ke})&&(ht=null),ht},areEqual:function(Ke,ht){return oe.isEmpty(Ke)&&oe.isEmpty(ht)||(0,C.$K)(Ke)&&(0,C.$K)(ht)&&Ke.formatCode===ht.formatCode},isEmpty:function(Ke){return!(0,C.$K)(Ke)||!(0,C.$K)(Ke.formatCode)||""===Ke.formatCode},toXml:function(Ke){return z_toXml("numFmt",{numFmtId:Ke[oe.ID_PROPERTY_NAME],formatCode:Ke.formatCode})}};const fe=oe;class Te{constructor(){this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(G.tryCreateTag({patternFill:{patternType:"none"}}))}registerCellFormat(ht){var on,hn=M.tryCreateTag(ht,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,C.$K)(hn)){for(var an=0;an<this._cellFormatTags.length;an++)if(M.areEqual(this._cellFormatTags[an],hn)){on=an;break}void 0===on&&(on=this._cellFormatTags.push(hn)-1)}return on}static copyCellFormat(ht){return M.copy(ht)}generateCellFormatsXml(){var ht=this._cellFormatTags.map(on=>M.toXml(on));return z_toXml("cellXfs",{count:ht.length},ht.join(""))}registerFill(ht){var on,hn=G.tryCreateTag(ht);if((0,C.$K)(hn)){for(var an=0;an<this._fillTags.length;an++)if(G.areEqual(this._fillTags[an],hn)){on=an;break}void 0===on&&(this._fillTags.length<2&&this._fillTags.push(G.tryCreateTag({patternFill:{patternType:"Gray125"}})),on=this._fillTags.push(hn)-1)}return on}generateFillsXml(){var ht=this._fillTags.map(on=>G.toXml(on));return z_toXml("fills",{count:ht.length},ht.join(""))}registerFont(ht){var on,hn=Z.tryCreateTag(ht);if((0,C.$K)(hn)){for(var an=0;an<this._fontTags.length;an++)if(Z.areEqual(this._fontTags[an],hn)){on=an;break}void 0===on&&(on=this._fontTags.push(hn)-1)}return on}generateFontsXml(){var ht=this._fontTags.map(on=>Z.toXml(on));return z_toXml("fonts",{count:ht.length},ht.join(""))}_convertNumberFormatIndexToId(ht){return 165+ht}registerNumberFormat(ht){var on,hn=fe.tryCreateTag(ht);if((0,C.$K)(hn)){for(var an=0;an<this._numberFormatTags.length;an++)if(fe.areEqual(this._numberFormatTags[an],hn)){on=this._numberFormatTags[an][fe.ID_PROPERTY_NAME];break}void 0===on&&(hn[fe.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),on=hn[fe.ID_PROPERTY_NAME],this._numberFormatTags.push(hn))}return on}generateNumberFormatsXml(){if(this._numberFormatTags.length>0){var ht=this._numberFormatTags.map(on=>fe.toXml(on));return z_toXml("numFmts",{count:ht.length},ht.join(""))}return""}}var Be=u(4270),ze='<?xml version="1.0" encoding="utf-8"?>',ne="http://schemas.openxmlformats.org",ce="rels",pe="workbook.xml",re="sharedStrings.xml",te="styles.xml",ue="sheet1.xml",Ae={boolean:"b",date:"d",number:"n",string:"s"},Ne=Date.UTC(1899,11,30),Le={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},gt=c.Z.inherit({_getXMLTag:function(Ke,ht,on){var an,$n,hn="<"+Ke,Nn=ht.length;for(an=0;an<Nn;an++)void 0!==($n=ht[an]).value&&(hn=hn+" "+$n.name+'="'+$n.value+'"');return(0,C.$K)(on)?hn+">"+on+"</"+Ke+">":hn+" />"},_convertToExcelCellRef:function(Ke,ht){for(var hn,an,on="";!an;)hn=65+(ht>=26?ht%26:Math.ceil(ht)),on=String.fromCharCode(hn)+on,ht>=26?ht=Math.floor(ht/26)-1:an=!0;return on+(Ke+1)},_convertToExcelCellRefAndTrackMaxIndex:function(Ke,ht){return this._maxRowIndex<Number(Ke)&&(this._maxRowIndex=Number(Ke)),this._maxColumnIndex<Number(ht)&&(this._maxColumnIndex=Number(ht)),this._convertToExcelCellRef(Ke,ht)},_getDataType:function(Ke){return Ae[Ke]||Ae.string},_tryGetExcelCellDataType:function(Ke){if((0,C.$K)(Ke)){if("number"==typeof Ke)return isFinite(Ke)?Ae.number:Ae.string;if((0,C.HD)(Ke))return Ae.string;if((0,C.J_)(Ke))return Ae.number;if((0,C.jn)(Ke))return Ae.boolean}},_formatObjectConverter:function(Ke,ht){var on={format:Ke,precision:Ke&&Ke.precision,dataType:ht};return(0,C.Kn)(Ke)?(0,g.l)(on,Ke,{format:Ke.formatter||Ke.type,currency:Ke.currency}):on},_tryConvertToExcelNumberFormat:function(Ke,ht){var on=this._formatObjectConverter(Ke,ht),hn=on.currency;return ht=on.dataType,(0,C.$K)(Ke=on.format)&&"date"===ht&&(Ke=Le[Ke&&Ke.type||Ke]||Ke),B.convertFormat(Ke,on.precision,ht,hn)},_appendString:function(Ke){if((0,C.$K)(Ke)&&(Ke=String(Ke)).length)return Ke=(0,p.HZ)(Ke),void 0===this._stringHash[Ke]&&(this._stringHash[Ke]=this._stringArray.length,this._stringArray.push(Ke)),this._stringHash[Ke]},_tryGetExcelDateValue:function(Ke){var ht;if((0,C.J_)(Ke))return(ht=Math.floor((Date.UTC(Ke.getFullYear(),Ke.getMonth(),Ke.getDate())-Ne)/864e5))<60&&ht--,ht+(3600*Ke.getHours()+60*Ke.getMinutes()+Ke.getSeconds())/86400},_prepareValue:function(Ke,ht){var Nn,on=this._dataProvider,{cellSourceData:hn}=on.getCellData(Ke,ht)||{},{value:an}=on.getCellData(Ke,ht)||{},$n=this._getDataType(on.getCellType(Ke,ht));switch($n===Ae.date&&!(0,C.J_)(an)&&($n=Ae.string),$n){case Ae.string:Nn=an,an=this._appendString(an);break;case Ae.date:Nn=an,an=this._tryGetExcelDateValue(an),$n=Ae.number}return{value:an,type:$n,sourceValue:Nn,cellSourceData:hn}},_callCustomizeExcelCell:function(Ke){var{dataProvider:ht,value:on,style:hn,sourceData:an}=Ke,Nn=Te.copyCellFormat(hn),$n={value:on,numberFormat:Nn.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};(0,C.$K)(Nn)&&((0,C.$K)(Nn.alignment)&&($n.horizontalAlignment=Nn.alignment.horizontal,$n.verticalAlignment=Nn.alignment.vertical,$n.wrapTextEnabled=Nn.alignment.wrapText),$n.backgroundColor=Nn.backgroundColor,$n.fillPatternType=Nn.fillPatternType,$n.fillPatternColor=Nn.fillPatternColor,$n.font=Nn.font),ht.customizeExcelCell($n,an);var ot=Nn||{};return ot.font=$n.font,ot.alignment=ot.alignment||{},ot.alignment.horizontal=$n.horizontalAlignment,ot.alignment.vertical=$n.verticalAlignment,ot.alignment.wrapText=$n.wrapTextEnabled,ot.backgroundColor=$n.backgroundColor,ot.fillPatternType=$n.fillPatternType,ot.fillPatternColor=$n.fillPatternColor,ot.numberFormat=$n.numberFormat,{value:$n.value,style:ot}},_getDataArray:function(){var Ke,ht,on,hn,Bt,an=[],Nn=this._dataProvider,$n=Nn.getRowsCount(),ot=Nn.getColumns();for(Ke=0;Ke<$n;Ke++){for(on=[],Bt=ot.length,ht=0;ht!==Bt;ht++){hn=this._prepareValue(Ke,ht);var nn=Nn.getStyleId(Ke,ht),On=this._styleArrayIndexToCellStyleIdMap[nn];if(Nn.hasCustomizeExcelCell&&Nn.hasCustomizeExcelCell()){var nt=hn.sourceValue||hn.value,Rt=this._callCustomizeExcelCell({dataProvider:Nn,value:nt,style:this._styleArray[nn],sourceData:hn.cellSourceData});if(Rt.value!==nt){if(typeof Rt.value!=typeof nt||"number"==typeof Rt.value&&!isFinite(Rt.value)){var pt=this._tryGetExcelCellDataType(Rt.value);(0,C.$K)(pt)&&(hn.type=pt)}switch(hn.type){case Ae.string:hn.value=this._appendString(Rt.value);break;case Ae.date:hn.value=Rt.value;break;case Ae.number:var jt=Rt.value,Un=this._tryGetExcelDateValue(jt);(0,C.$K)(Un)&&(jt=Un),hn.value=jt;break;default:hn.value=Rt.value}}On=this._excelFile.registerCellFormat(Rt.style)}on.push({style:On,value:hn.value,type:hn.type})}!this._needSheetPr&&Nn.getGroupLevel(Ke)>0&&(this._needSheetPr=!0),an.push(on)}return an},_calculateWidth:function(Ke){return(!(Ke=parseInt(Ke,10))||Ke<5)&&(Ke=100),Math.min(255,Math.floor((Ke-5)/7*100+.5)/100)},_prepareStyleData:function(){var Ke=this,ht=Ke._dataProvider.getStyles();Ke._dataProvider.getColumns().forEach(function(hn){Ke._colsArray.push(Ke._calculateWidth(hn.width))});var on=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(on[0]),this._excelFile.registerFont(on[1]),ht.forEach(function(hn){var an=Ke._tryConvertToExcelNumberFormat(hn.format,hn.dataType);(0,C.$K)(an)||(an=0),Ke._styleArray.push({font:on[Number(!!hn.bold)],numberFormat:an,alignment:{vertical:"top",wrapText:!!hn.wrapText,horizontal:hn.alignment||"left"}})}),Ke._styleArrayIndexToCellStyleIdMap=Ke._styleArray.map(hn=>this._excelFile.registerCellFormat(hn))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(Ke){return this._getXMLTag("Relationships",[{name:"xmlns",value:ne+"/package/2006/relationships"}],Ke)},_createXMLRelationship:function(Ke,ht,on){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+Ke},{name:"Type",value:ne+"/officeDocument/2006/relationships/"+ht},{name:"Target",value:on}])},_getWorkbookContent:function(){return ze+this._getXMLTag("workbook",[{name:"xmlns:r",value:ne+"/officeDocument/2006/relationships"},{name:"xmlns",value:ne+"/spreadsheetml/2006/main"}],'<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>')},_getContentTypesContent:function(){return ze+'<Types xmlns="'+ne+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var Ke=this._zip.folder("xl"),ht="";ht+=this._excelFile.generateNumberFormatsXml(),ht+=this._excelFile.generateFontsXml(),ht+=this._excelFile.generateFillsXml(),ht+='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',ht+=this._excelFile.generateCellFormatsXml(),ht+=this._getXMLTag("cellStyles",[{name:"count",value:1}],this._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),ht=ze+this._getXMLTag("styleSheet",[{name:"xmlns",value:ne+"/spreadsheetml/2006/main"}],ht),Ke.file(te,ht),this._styleArray=[]},_generateStringsXML:function(){var ht,Ke=this._zip.folder("xl"),on=this._stringArray.length,hn=ze;for(ht=0;ht<on;ht++)this._stringArray[ht]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[ht]));hn+=this._getXMLTag("sst",[{name:"xmlns",value:ne+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),Ke.file(re,hn),this._stringArray=[]},_getPaneXML:function(){var Ke=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],ht=this._dataProvider.getFrozenArea();return ht.x||ht.y?(ht.x&&Ke.push({name:"xSplit",value:ht.x}),ht.y&&Ke.push({name:"ySplit",value:ht.y}),Ke.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(ht.y,ht.x)}),this._getXMLTag("pane",Ke)):""},_getAutoFilterXML:function(Ke){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+Ke+'" />':""},_generateWorksheetXML:function(){var Ke,ht,on,hn,$n,an=[],Nn=this._cellsArray.length,ot=this._colsArray.length,Bt="1:"+ot,nn=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,On=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">'];for(On.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),On.push('<dimension ref="A1:C1"/>'),On.push("<sheetViews><sheetView "),On.push(this._rtlEnabled?'rightToLeft="1" ':""),On.push('tabSelected="1" workbookViewId="0">'),On.push(this._getPaneXML()),On.push("</sheetView></sheetViews>"),On.push('<sheetFormatPr defaultRowHeight="15"'),On.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),On.push(' x14ac:dyDescent="0.25"/>'),Ke=0;Ke<ot;Ke++)this._colsArray[Ke]=this._getXMLTag("col",[{name:"width",value:this._colsArray[Ke]},{name:"min",value:Number(Ke)+1},{name:"max",value:Number(Ke)+1},{name:"customWidth",value:1}]);for(On.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),ht=0;ht<Nn;ht++){for(hn=[],$n=this._cellsArray[ht].length,Ke=0;Ke<$n;Ke++)ht=Number(ht),on=this._cellsArray[ht][Ke],hn.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(ht,Ke)},{name:"s",value:on.style},{name:"t",value:on.type}],(0,C.$K)(on.value)?this._getXMLTag("v",[],on.value):null));an.push(this._getXMLTag("row",[{name:"r",value:Number(ht)+1},{name:"spans",value:Bt},{name:"outlineLevel",value:ht>=nn?this._dataProvider.getGroupLevel(ht):0},{name:"x14ac:dyDescent",value:"0.25"}],hn.join(""))),this._cellsArray[ht]=null,an.length>1e4&&(On.push(an.join("")),an=[])}On.push(an.join(""));var nt=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);On.push("</sheetData>"+this._getAutoFilterXML(nt)+this._generateMergingXML()+"</worksheet>"),this._zip.folder("xl").folder("worksheets").file(ue,On.join("")),this._colsArray=[],this._cellsArray=[]},_generateMergingXML:function(){var Ke,ht,on,hn,Bt,an=(0,C.$K)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),Nn=this._dataProvider.getColumns().length,$n=[],ot=[],nn="";for(hn=0;hn<an;hn++)for(on=0;on!==Nn;on++)if(!(0,C.$K)($n[hn])||!(0,C.$K)($n[hn][on])){var On=this._dataProvider.getCellMerging(hn,on);if(On.colspan||On.rowspan)for(ot.push({start:this._convertToExcelCellRefAndTrackMaxIndex(hn,on),end:this._convertToExcelCellRefAndTrackMaxIndex(hn+(On.rowspan||0),on+(On.colspan||0))}),Ke=hn;Ke<=hn+On.rowspan;Ke++)for(ht=on;ht<=on+On.colspan;ht++)(0,C.$K)($n[Ke])||($n[Ke]=[]),$n[Ke][ht]=!0}var nt=ot.length;for(Bt=0;Bt<nt;Bt++)nn+=this._getXMLTag("mergeCell",[{name:"ref",value:ot[Bt].start+":"+ot[Bt].end}]);return nn.length?this._getXMLTag("mergeCells",[{name:"count",value:nt}],nn):""},_generateCommonXML:function(){var Ke=ze+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+pe)),ht=this._zip.folder("xl"),on=ze;this._zip.folder("_"+ce).file("."+ce,Ke);var hn=this._createXMLRelationship(1,"worksheet","worksheets/"+ue)+this._createXMLRelationship(2,"styles",te)+this._createXMLRelationship(3,"sharedStrings",re);on+=this._createXMLRelationships(hn),ht.folder("_"+ce).file(pe+".rels",on),ht.file(pe,this._getWorkbookContent()),this._zip.file("[Content_Types].xml",this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(Ke,ht){this._rtlEnabled=ht&&!!ht.rtlEnabled,this._options=ht,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=Ke,this._excelFile=new Te,this._zip=(0,C.$K)(gt.JSZip)?new gt.JSZip:null},_checkZipState:function(){if(!this._zip)throw a.Z.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(Ke){var ht={type:Ke?"blob":"base64",compression:"DEFLATE",mimeType:o.L.EXCEL},on=new Be.BH;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(ht).then(on.resolve):on.resolve(this._zip.generate(ht)),on}});gt.JSZip=l();var li,Pe=u(9904),$e=u(3058),ge=u(9834),Ce=u(2718),De=u(9897),Ye=u(6520),bt=u(7981),yt=(0,I.Jj)(),kt=Math,gn=kt.PI,ut=kt.min,Ve=kt.abs,St=kt.sqrt,Xe=kt.pow,Vt=kt.atan2,lt=kt.cos,dt=kt.sin,vt=Number;function Vn(Ke,ht,on,hn,an,Nn,$n,ot){var Bt=(Ke+on)/2,nn=(ht+hn)/2,On=Vt(ht-hn,Ke-on),nt=Nn?1:-1;On+=gn/180*90*($n?1:-1);var Rt=St(Xe(on-Ke,2)+Xe(hn-ht,2))/2,pt=St(Ve(Xe(an,2)-Xe(Rt,2))),jt=Bt+nt*(pt*lt(On)),Un=nn+nt*(pt*dt(On)),oi=Vt(ht-Un,Ke-jt),xi=Vt(hn-Un,on-jt);ot.arc(jt,Un,an,oi,xi,!$n)}function Oi(Ke,ht){var Nn,on=li(Ke.attributes||{}),hn=(0,g.l)({},on,{text:Ke.textContent.replace(/\s+/g," "),textAlign:"middle"===on["text-anchor"]?"center":on["text-anchor"]}),an=on.transform;return an&&((Nn=an.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(Nn=Nn[0].match(/-*\d+([.]\d+)*/g),hn.translateX=vt(Nn[0]),hn.translateY=Nn[1]?vt(Nn[1]):0),(Nn=an.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(Nn=Nn[0].match(/-*\d+([.]\d+)*/g),hn.rotationAngle=vt(Nn[0]),hn.rotationX=Nn[1]&&vt(Nn[1]),hn.rotationY=Nn[2]&&vt(Nn[2])),(Nn=an.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(Nn=Nn[0].match(/-*\d+([.]\d+)*/g),hn.scaleX=vt(Nn[0]),hn.scaleY=Nn.length>1?vt(Nn[1]):hn.scaleX)),function ei(Ke,ht,on){var an,hn=Ke.style||{};for(an in hn)""!==hn[an]&&(ht[(0,bt._A)(an)]=hn[an]);on&&De.Z.isElementNode(Ke)&&(hn=yt.getComputedStyle(Ke),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach(function(Nn){Nn in hn&&""!==hn[Nn]&&(ht[(0,bt._A)(Nn)]=hn[Nn])}),["opacity","fill-opacity","stroke-opacity"].forEach(function(Nn){Nn in hn&&""!==hn[Nn]&&"1"!==hn[Nn]&&(ht[Nn]=vt(hn[Nn]))})),ht.textDecoration=ht.textDecoration||ht.textDecorationLine,ht.globalAlpha=(0,C.$K)(ht.opacity)?ht.opacity:ht.globalAlpha}(Ke,hn,ht),hn}function Wn(Ke){var ht=Ke&&Ke.match(/url\(.*#(.*?)["']?\)/i);return ht&&ht[1]}function Ji(Ke,ht){var on=[];ht.fontSize=ht.fontSize||"10px",ht.fontFamily=ht.fontFamily||"sans-serif",ht.fill=ht.fill||"#000",ht.fontStyle&&on.push(ht.fontStyle),ht.fontWeight&&on.push(ht.fontWeight),on.push(ht.fontSize),on.push(ht.fontFamily),Ke.font=on.join(" "),Ke.textAlign=ht.textAlign,Ke.fillStyle=ht.fill,Ke.globalAlpha=ht.globalAlpha}function ci(Ke){for(var ht=Ke.childNodes,on=0;on<ht.length;on++)if("tspan"===ht[on].tagName)return!0;return!1}function Wi(Ke,ht,on,hn){for(var Nn,an=[],$n=0,ot=0;ot<Ke.length;ot++){var Bt=Ke[ot];if(void 0===Bt.tagName)qi(Bt,ht,on,hn);else if("tspan"===Bt.tagName||"text"===Bt.tagName){var nn=Oi(Bt,hn.rootAppended),On=(0,g.l)({},on,nn);if("tspan"===Bt.tagName&&ci(Bt)){Wi(Bt.childNodes,ht,On,hn);continue}On.textAlign="start",(!Nn||void 0!==nn.x)&&an.push(Nn={elements:[],options:[],widths:[],offsets:[]}),void 0!==nn.y&&($n=0),void 0!==nn.dy&&($n+=parseFloat(nn.dy)),Nn.elements.push(Bt),Nn.options.push(On),Nn.offsets.push($n),Ji(ht,On),Nn.widths.push(ht.measureText(On.text).width)}}an.forEach(function(nt){var Rt=nt.widths.reduce(function(Un,oi){return Un+oi},0),pt=0,jt=0;"center"===on.textAlign&&(pt=Rt/2),"end"===on.textAlign&&(pt=Rt),nt.options.forEach(function(Un,oi){var xi=nt.widths[oi];Un.x=Un.x-pt+jt,Un.y+=nt.offsets[oi],jt+=xi}),nt.elements.forEach(function(Un,oi){Wi(Un.childNodes,ht,nt.options[oi],hn)})})}function qi(Ke,ht,on,hn){var an=Ke.tagName,Nn="text"===an||"tspan"===an||void 0===an,$n="image"===an,ot=(0,g.l)({},on,Oi(Ke,hn.rootAppended));if("hidden"!==ot.visibility&&!ot[ge.Nc]){var Bt;switch(ht.save(),!$n&&vn(ht,ot),Pn(ht,ot,hn),function ti(Ke){Ke.strokeOpacity=void 0!==Ke["stroke-opacity"]?Ke["stroke-opacity"]:1,Ke.fillOpacity=void 0!==Ke["fill-opacity"]?Ke["fill-opacity"]:1,void 0!==Ke.opacity&&(Ke.strokeOpacity*=Ke.opacity,Ke.fillOpacity*=Ke.opacity)}(ot),ht.beginPath(),Ke.tagName){case void 0:!function Sn(Ke,ht,on){Ji(Ke,ht),xr(Ke,ht,on),ht.text&&Ke.fillText(ht.text,ht.x||0,ht.y||0),Gr(Ke,ht,!0),function Qn(Ke,ht,on){if(ht.textDecoration&&"none"!==ht.textDecoration){var hn=ht.x,an=Ke.measureText(ht.text).width,Nn=parseInt(ht.fontSize,10),$n=.05*Nn<1?1:.05*Nn,ot=ht.y;switch(ht.textDecoration){case"line-through":ot-=Nn/3+$n/2;break;case"overline":ot-=Nn-$n;break;case"underline":ot+=$n}Ke.rect(hn,ot,an,$n),Sr(Ke,ht,on),Gr(Ke,ht)}}(Ke,ht,on)}(ht,ot,hn);break;case"text":case"tspan":Wi(Ke.childNodes,ht,ot,hn);break;case"image":Bt=function En(Ke,ht,on){var hn=new Be.BH,an=new yt.Image;return an.onload=function(){Ke.save(),Ke.globalAlpha=ht.globalAlpha,vn(Ke,ht),Pn(Ke,ht,on),Ke.drawImage(an,ht.x||0,ht.y||0,ht.width,ht.height),Ke.restore(),hn.resolve()},an.onerror=function(){hn.resolve()},an.setAttribute("crossOrigin","anonymous"),an.src=ht.href||ht["xlink:href"],hn}(ht,ot,hn);break;case"path":!function Mn(Ke,ht){var an,Nn,$n,on=ht.replace(/,/g," ").split(/([A-Z])/i).filter(Bt=>""!==Bt.trim()),hn=0;do{switch(an=(on[hn+1]||"").trim().split(" "),on[hn]){case"M":Ke.moveTo(vt(an[0]),vt(an[1])),hn+=2;break;case"L":for(var ot=0;ot<an.length/2;ot++)Ke.lineTo(vt(an[2*ot]),vt(an[2*ot+1]));hn+=2;break;case"C":Ke.bezierCurveTo(vt(an[0]),vt(an[1]),vt(an[2]),vt(an[3]),vt(an[4]),vt(an[5])),hn+=2;break;case"a":Nn=on[hn-1].trim().split(" "),Vn(vt(Nn[($n=Nn.length-1)-1]),vt(Nn[$n]),vt(Nn[$n-1])+vt(an[5]),vt(Nn[$n])+vt(an[6]),vt(an[0]),vt(an[3]),vt(an[4]),Ke),hn+=2;break;case"A":Nn=on[hn-1].trim().split(" "),Vn(vt(Nn[($n=Nn.length-1)-1]),vt(Nn[$n]),vt(an[5]),vt(an[6]),vt(an[0]),vt(an[3]),vt(an[4]),Ke),hn+=2;break;case"Z":Ke.closePath(),hn+=1;break;default:hn++}}while(hn<on.length)}(ht,ot.d);break;case"rect":(function Hn(Ke,ht){var on=ht.x,hn=ht.y,an=ht.width,Nn=ht.height,$n=ht.rx;$n?($n=ut($n,an/2,Nn/2),Ke.save(),Ke.translate(on,hn),Ke.moveTo(an/2,0),Ke.arcTo(an,0,an,Nn,$n),Ke.arcTo(an,Nn,0,Nn,$n),Ke.arcTo(0,Nn,0,0,$n),Ke.arcTo(0,0,$n,0,$n),Ke.lineTo(an/2,0),Ke.restore()):Ke.rect(on,hn,an,Nn)})(ht,ot),ht.closePath();break;case"circle":ht.arc(ot.cx,ot.cy,ot.r,0,2*gn,1)}return Nn||(xr(ht,ot,hn),Sr(ht,ot,hn),Gr(ht,ot)),function nr(Ke,ht,on,hn){var{gradients:an}=on;if(0!==an.length){var Nn=Wn(ht.fill);if(Nn&&an[Nn]){var $n=hn.getBBox(),ot=Ke.createLinearGradient($n.x,0,$n.x+$n.width,0);an[Nn].forEach(Bt=>{var nn=parseInt(Bt.offset.replace(/%/,""));ot.addColorStop(nn/100,Bt.stopColor)}),Ke.globalAlpha=ht.opacity,Ke.fillStyle=ot,Ke.fill()}}}(ht,ot,hn,Ke),ht.restore(),Bt}}function xr(Ke,ht,on){var hn,an=Wn(ht.filter);an&&((hn=on.filters[an])||(hn={offsetX:0,offsetY:0,blur:0,color:"#000"}),Ke.shadowOffsetX=hn.offsetX,Ke.shadowOffsetY=hn.offsetY,Ke.shadowColor=hn.color,Ke.shadowBlur=hn.blur)}function vn(Ke,ht){Ke.translate(ht.translateX||0,ht.translateY||0),ht.translateX=void 0,ht.translateY=void 0,ht.rotationAngle&&(Ke.translate(ht.rotationX||0,ht.rotationY||0),Ke.rotate(ht.rotationAngle*gn/180),Ke.translate(-(ht.rotationX||0),-(ht.rotationY||0)),ht.rotationAngle=void 0,ht.rotationX=void 0,ht.rotationY=void 0),isFinite(ht.scaleX)&&(Ke.scale(ht.scaleX,ht.scaleY),ht.scaleX=void 0,ht.scaleY=void 0)}function Pn(Ke,ht,on){ht["clip-path"]&&(qi(on.clipPaths[Wn(ht["clip-path"])],Ke,{},on),Ke.clip(),ht["clip-path"]=void 0)}function dr(Ke,ht){for(var on=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new Be.BH,hn=0;hn<Ke.length;hn++){var an=ht(Ke[hn]);if((0,C.tI)(an)){an.then(()=>{dr(Array.prototype.slice.call(Ke,hn+1),ht,on)});break}}return hn===Ke.length&&on.resolve(),on}function kr(Ke,ht,on,hn){return dr(Ke,function(an){switch(an.tagName&&an.tagName.toLowerCase()){case"g":case"svg":var Nn=(0,g.l)({},on,Oi(an,hn.rootAppended));ht.save(),vn(ht,Nn),Pn(ht,Nn,hn);var $n=()=>{ht.restore()},ot=kr(an.childNodes,ht,Nn,hn);return(0,C.tI)(ot)?ot.then($n):$n(),ot;case"defs":return kr(an.childNodes,ht,{},hn);case"clippath":hn.clipPaths[an.attributes.id.textContent]=an.childNodes[0];break;case"pattern":hn.patterns[an.attributes.id.textContent]=an;break;case"filter":hn.filters[an.id]=function Yi(Ke){var hn={};return(0,Ce.S6)(Ke.childNodes,function(an,Nn){var $n=Nn.attributes;if($n.result)switch($n.result.value){case"gaussianBlurResult":hn.blur=vt($n.stdDeviation.value);break;case"offsetResult":hn.offsetX=vt($n.dx.value),hn.offsetY=vt($n.dy.value);break;case"floodResult":hn.color=function hi(Ke,ht){var on=new $e.Z(Ke);return"rgba("+on.r+","+on.g+","+on.b+","+ht+")"}($n["flood-color"]?$n["flood-color"].value:"#000",$n["flood-opacity"]?$n["flood-opacity"].value:1)}}),hn}(an);break;case"lineargradient":hn.gradients[an.attributes.id.textContent]=function Si(Ke){var ht=[];return(0,Ce.S6)(Ke.childNodes,(on,hn)=>{var{attributes:an}=hn;ht.push({offset:an.offset.value,stopColor:an["stop-color"].value})}),ht}(an);break;default:return qi(an,ht,on,hn)}})}function Gr(Ke,ht,on){var hn=ht.stroke;hn&&"none"!==hn&&0!==ht["stroke-width"]&&(function Nr(Ke,ht){var on=ht["stroke-dasharray"]&&ht["stroke-dasharray"].match(/(\d+)/g);on&&on.length&&(on=(0,Ce.UI)(on,function(hn){return vt(hn)}),Ke.setLineDash(on))}(Ke,ht),Ke.lineJoin=ht["stroke-linejoin"],Ke.lineWidth=ht["stroke-width"],Ke.globalAlpha=ht.strokeOpacity,Ke.strokeStyle=hn,on?Ke.strokeText(ht.text,ht.x,ht.y):Ke.stroke(),Ke.globalAlpha=1)}function Sr(Ke,ht,on){var hn=ht.fill;if(hn&&"none"!==hn){if(-1===hn.search(/url/))Ke.fillStyle=hn;else{var an=on.patterns[Wn(hn)];if(!an)return;Ke.fillStyle=function Qr(Ke,ht,on){var hn=Oi(ht,on.rootAppended),an=Mr._createCanvas(hn.width,hn.height,0),Nn=an.getContext("2d");return kr(ht.childNodes,Nn,hn,on),Ke.createPattern(an,"repeat")}(Ke,an,on)}Ke.globalAlpha=ht.fillOpacity,Ke.fill(),Ke.globalAlpha=1}}function Rr(Ke,ht,on){return kr(Ke.childNodes,ht.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:on})}li=function(Ke){var on,ht={};return(0,Ce.S6)(Ke,function(hn,an){on=an.textContent,isFinite(on)&&(on=vt(on)),ht[an.name.toLowerCase()]=on}),ht};var Mr={getImageData:function(Ke,ht){var on="image/"+ht.format;return(0,C.mf)(ht.__parseAttributesFn)&&(li=ht.__parseAttributesFn),function mo(Ke,ht){var{width:on,height:hn,backgroundColor:an,margin:Nn,svgToCanvas:$n=Rr}=ht,ot=ar(on,hn),Bt=Mr._createCanvas(ot.width,ot.height,Nn),nn=Bt.getContext("2d");nn.setTransform(ot.pixelRatio,0,0,ot.pixelRatio,0,0);var nt,On=(0,ge.Sd)(Ke),Rt=De.Z.isElementNode(Ke);return nn.translate(Nn,Nn),De.Z.getBody().appendChild(Bt),Rt||(nt=function Ur(){var Ke=De.Z.createElement("div");return Ke.style.left="-9999px",Ke.style.position="absolute",Ke}(),nt.appendChild(On),De.Z.getBody().appendChild(nt)),On.attributes.direction&&(Bt.dir=On.attributes.direction.textContent),function Wr(Ke,ht,on,hn,an){Ke.fillStyle=hn||"#ffffff",Ke.fillRect(-an,-an,ht+2*an,on+2*an)}(nn,on,hn,an,Nn),(0,Be.p4)($n(On,Bt,Rt&&(0,Ye.r3)(De.Z.getBody(),Ke))).then(()=>Bt).always(()=>{nt&&De.Z.getBody().removeChild(nt),De.Z.getBody().removeChild(Bt)})}(Ke,ht).then(hn=>function ki(Ke,ht){var on=Ke.toDataURL(ht,1);return yt.atob(on.substring(("data:"+ht+";base64,").length))}(hn,on))},getData:function(Ke,ht){var on=this;return Mr.getImageData(Ke,ht).then(hn=>{var an="image/"+ht.format;return(0,C.mf)(yt.Blob)&&!ht.useBase64?on._getBlob(hn,an):on._getBase64(hn)})},_getBlob:function(Ke,ht){var on,hn=new Uint8Array(Ke.length);for(on=0;on<Ke.length;on++)hn[on]=Ke.charCodeAt(on);return new yt.Blob([hn.buffer],{type:ht})},_getBase64:function(Ke){return yt.btoa(Ke)},_createCanvas(Ke,ht,on){var hn=(0,Pe.Z)("<canvas>")[0];return hn.width=Ke+2*on,hn.height=ht+2*on,hn.hidden=!0,hn}};function ar(Ke,ht){var on=yt.devicePixelRatio||1;return{pixelRatio:on,width:Ke*on,height:ht*on}}var Xr=u(9800),lo=(0,I.Jj)(),_o={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(Ke,ht){Xr.Z.sendRequest({url:Ke,method:"GET",responseType:"arraybuffer"}).done(ht).fail(function(){ht(!1)})},_loadImages:function(){var Ke=this;(0,Ce.S6)(Ke._imageArray,function(ht){var on=new Be.BH;Ke._imageDeferreds.push(on),Ke._getBinaryFile(ht,function(hn){if(!hn)return delete Ke._imageArray[ht],void on.resolve();var an,Nn="",$n=new Uint8Array(hn),ot=$n.byteLength;for(an=0;an<ot;an++)Nn+=String.fromCharCode($n[an]);Ke._imageArray[ht]="data:image/png;base64,"+lo.btoa(Nn),on.resolve()})})},_parseImages:function(Ke){var ht,on=this;"image"===Ke.tagName&&(ht=(0,Pe.Z)(Ke).attr("href")||(0,Pe.Z)(Ke).attr("xlink:href"),on._imageArray[ht]||(on._imageArray[ht]="")),(0,Ce.S6)(Ke.childNodes,function(hn,an){on._parseImages(an)})},_prepareImages:function(Ke){return this._parseImages(Ke),this._loadImages(),Be.gx.apply(Pe.Z,this._imageDeferreds)},getData:function(Ke,ht){var on,hn=this,an=(0,ge.Sd)(Ke),Nn=(0,Pe.Z)(an);return Nn.find("[".concat(ge.Nc,"]")).remove(),on='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+(0,ge.yD)(Nn.get(0),ht.backgroundColor),hn._prepareImages(an).then(()=>((0,Ce.S6)(hn._imageArray,function($n,ot){var Bt="href=['|\"]".concat($n,"['|\"]");on=on.replace(new RegExp(Bt,"gi"),'href="'.concat(ot,'"'))}),(0,C.mf)(lo.Blob)?hn._getBlob(on):hn._getBase64(on)))},_getBlob:function(Ke){return new lo.Blob([Ke],{type:"image/svg+xml"})},_getBase64:function(Ke){return lo.btoa(Ke)}},It=u(2805),en=(0,I.Jj)(),Li=function Ke(ht,on){return ht.length<on?Ke("0"+ht,on):ht};function ft(Ke,ht,on){if(!Ke)return(new Be.BH).resolve();var hn=ht.exportingAction,an=ht.exportedAction,Nn=ht.fileSavingAction,$n={fileName:ht.fileName,format:ht.format,cancel:!1};return(0,C.jn)(ht.selectedRowsOnly)&&($n.selectedRowsOnly=ht.selectedRowsOnly),(0,C.mf)(hn)&&hn($n),$n.cancel?(new Be.BH).resolve():on(Ke,ht).then(ot=>{(0,C.mf)(an)&&an(),(0,C.mf)(Nn)&&($n.data=ot,Nn($n)),$n.cancel||o.A.saveAs($n.fileName,"xlsx"===ht.format?"EXCEL":ht.format,ot)})}var zt={creator:gt,getData:function tn(Ke,ht){var on=new gt(Ke,ht);return on._checkZipState(),on.ready().then(()=>on.getData((0,C.mf)((0,I.Jj)().Blob)))},formatConverter:B},wt={creator:Mr,getData:function po(Ke,ht){return Mr.getData(Ke,ht)},testFormats:function mi(Ke){var ht=Mr._createCanvas(100,100,0);return Ke.reduce(function(on,hn){var an=("image/"+hn).toLowerCase();return-1!==ht.toDataURL(an).indexOf(an)?on.supported.push(hn):on.unsupported.push(hn),on},{supported:[],unsupported:[]})}},Xt={getData:function Ct(Ke,ht){return Mr.getImageData(Ke,(0,g.l)({},ht,{format:"JPEG"})).then(on=>{var hn=function(Ke,ht,on){var hn=2*(ht.margin||0),{width:an,height:Nn}=ar(ht.width,ht.height);Nn+=hn;var $n=(.75*(an+=hn)).toFixed(2),ot=(.75*Nn).toFixed(2),Bt="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n".replace("_width_",$n).replace("_height_",ot),nn="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n".replace("_width_",$n).replace("_height_",ot),On="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",on).replace("_version_",It.i),nt="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n".replace("_width_",an).replace("_height_",Nn).replace("_length_",Ke.length)+Ke+"\r\nendstream\r\nendobj\r\n",Rt=function gr(Ke,ht,on){return"xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n".replace("_main_",Li(Ke+"",10)).replace("_info_",Li(Ke+ht+"",10)).replace("_image_",Li(Ke+ht+on+"",10))}(Bt.length,nn.length,On.length),pt=Bt+nn+On+nt;return pt+Rt+"trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF".replace("_length_",pt.length)}(on,ht,new Date),an=(0,C.mf)(en.Blob)?function(Ke){for(var ht=0,on=new Uint8Array(Ke.length);ht<Ke.length;ht++)on[ht]=Ke.charCodeAt(ht);return new en.Blob([on.buffer],{type:"application/pdf"})}(hn):function(Ke){return en.btoa(Ke)}(hn);return an})}},fn={creator:_o,getData:function bo(Ke,ht){return _o.getData(Ke,ht)}}},8114:(Rn,he,u)=>{"use strict";u.d(he,{A:()=>d,L:()=>l});var o=u(9897),c=u(4514),I=u(8159),C=u(1828),g=u(2160),a=(0,c.Jj)(),p=(0,c.jW)(),s={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},l={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"},d={_revokeObjectURLTimeout:3e4,_getDataUri:function(h,v){var x=this._getMimeType(h);return"data:".concat(x,";base64,").concat(v)},_getMimeType:function(h){return l[h]||"application/octet-stream"},_linkDownloader:function(h,v){var x=o.Z.createElement("a");return x.download=h,x.href=v,x.target="_blank",x},_winJSBlobSave:function(h,v,x){var b=new Windows.Storage.Pickers.FileSavePicker;b.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var y=s[x];if(y){var E=this._getMimeType(x);b.fileTypeChoices.insert(E,["."+y])}b.suggestedFileName=v,b.pickSaveFileAsync().then(function(S){S&&S.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(O){var w=h.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(w,O).then(function(){O.flushAsync().done(function(){w.close(),O.close()})})})})},_click:function(h){try{h.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch{var v=o.Z.getDocument().createEvent("MouseEvents");v.initMouseEvent("click",!0,!0,a,0,0,0,80,20,!1,!1,!1,!1,0,null),h.dispatchEvent(v)}},_saveBlobAs:function(h,v,x){if(this._blobSaved=!1,(0,C.$K)(p.msSaveOrOpenBlob))p.msSaveOrOpenBlob(x,h),this._blobSaved=!0;else if((0,C.$K)(a.WinJS))this._winJSBlobSave(x,h,v),this._blobSaved=!0;else{var b=a.URL||a.webkitURL||a.mozURL||a.msURL||a.oURL;if((0,C.$K)(b)){var y=b.createObjectURL(x),E=this._linkDownloader(h,y);setTimeout(()=>{b.revokeObjectURL(y),this._objectUrlRevoked=!0},this._revokeObjectURLTimeout),this._click(E)}else g.k.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(h,v,x){var b=s[v];if(b&&(h+="."+b),(0,C.mf)(a.Blob))this._saveBlobAs(h,v,x);else{(0,C.$K)(p.userAgent.match(/iPad/i))||I.Z.log("E1034");var y=this._linkDownloader(h,this._getDataUri(v,x));this._click(y)}}}},5062:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(1828),c=u(8204),I=u(658),C=u(8119),g=u(2793);u(3128);const p=(0,g.Z)({format:function(s,l){var d=(0,o.HD)(l)&&""!==l||(0,o.PO)(l)||(0,o.mf)(l),h=(0,o.kE)(s)||(0,o.J_)(s);return d&&h?(0,o.mf)(l)?l(s):((0,o.HD)(l)&&(l={type:l}),(0,o.kE)(s)?I.Z.format(s,l):(0,o.J_)(s)?C.Z.format(s,l):void 0):(0,o.$K)(s)?s.toString():""},getTimeFormat:function(s){return s?"longtime":"shorttime"},_normalizeFormat:function(s){return Array.isArray(s)?1===s.length?s[0]:function(l){return s.map(function(d){return C.Z.format(l,d)}).join(" ")}:s},getDateFormatByDifferences:function(s,l){var d=[],h=l&&s.millisecond&&!(s.year||s.month||s.day);return h?d.push(function(v){return v.getSeconds()+v.getMilliseconds()/1e3+"s"}):s.millisecond&&d.push("millisecond"),(s.hour||s.minute||!h&&s.second)&&d.unshift(this.getTimeFormat(s.second)),s.year&&s.month&&s.day?l&&"month"===l?"monthandyear":(d.unshift("shortdate"),this._normalizeFormat(d)):s.year&&s.month?"monthandyear":s.year&&s.quarter?"quarterandyear":s.year?"year":s.quarter?"quarter":s.month&&s.day?(d.unshift(l?function(v){return C.Z.getMonthNames("abbreviated")[v.getMonth()]+" "+C.Z.format(v,"day")}:"monthandday"),this._normalizeFormat(d)):s.month?"month":s.day?(d.unshift(l?"day":function(v){return C.Z.format(v,"dayofweek")+", "+C.Z.format(v,"day")}),this._normalizeFormat(d)):this._normalizeFormat(d)},getDateFormatByTicks:function(s){var l,d,h;if(s.length>1)for(l=c.Z.getDatesDifferences(s[0],s[1]),h=1;h<s.length-1;h++)d=c.Z.getDatesDifferences(s[h],s[h+1]),l.count<d.count&&(l=d);else l={year:!0,month:!0,day:!0,hour:s[0].getHours()>0,minute:s[0].getMinutes()>0,second:s[0].getSeconds()>0,millisecond:s[0].getMilliseconds()>0};return this.getDateFormatByDifferences(l)},getDateFormatByTickInterval:function(s,l,d){var h,v=function(y,E,S){switch(E){case"year":case"quarter":y.month=S;case"month":y.day=S;case"week":case"day":y.hour=S;case"hour":y.minute=S;case"minute":y.second=S;case"second":y.millisecond=S}};d=(0,o.HD)(d)?d.toLowerCase():d;var y,E,S,x=c.Z.getDatesDifferences(s,l);return s!==l&&(y=x,E=s>l?l:s,!(S=s>l?s:l).getMilliseconds()&&S.getSeconds()?S.getSeconds()-E.getSeconds()==1&&(y.millisecond=!0,y.second=!1):!S.getSeconds()&&S.getMinutes()?S.getMinutes()-E.getMinutes()==1&&(y.second=!0,y.minute=!1):!S.getMinutes()&&S.getHours()?S.getHours()-E.getHours()==1&&(y.minute=!0,y.hour=!1):!S.getHours()&&S.getDate()>1?S.getDate()-E.getDate()==1&&(y.hour=!0,y.day=!1):1===S.getDate()&&S.getMonth()?S.getMonth()-E.getMonth()==1&&(y.day=!0,y.month=!1):!S.getMonth()&&S.getFullYear()&&S.getFullYear()-E.getFullYear()==1&&(y.month=!0,y.year=!1)),v(x,c.Z.getDateUnitInterval(x),!0),v(x,h=c.Z.getDateUnitInterval(d||"second"),!1),x[{week:"day"}[h]||h]=!0,this.getDateFormatByDifferences(x)}})},8198:(Rn,he,u)=>{"use strict";u.d(he,{EV:()=>p,SP:()=>a,p6:()=>h,uf:()=>l});var o=u(5404),c=u(9009),I=u(658),C=u(8119),a=(u(3128),o.Z.locale.bind(o.Z)),p=c.Z.load.bind(c.Z),l=(c.Z.format.bind(c.Z),I.Z.format.bind(I.Z)),h=(I.Z.parse.bind(I.Z),C.Z.format.bind(C.Z));C.Z.parse.bind(C.Z)},5404:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>a});var o=u(2793);const c={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MV":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","hi-Latn":"en-IN","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"},C=(p,s)=>{var l=p[s];return l?"root"!==l&&l:s.substr(0,s.lastIndexOf("-"))};var g="en";const a=(0,o.Z)({locale:(p=g,s=>{if(!s)return p;p=s}),getValueByClosestLocale:function(p){for(var d,s=this.locale(),l=p(s);!l&&!d;)(s=C(c,s))?l=p(s):d=!0;return void 0===l&&s!==g?p(g):l}});var p},3128:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});var o=u(5873);const c={_formatNumberCore:function(I,C,g){if("currency"===C){g.precision=g.precision||0;var a=this.format(I,(0,o.l)({},g,{type:"fixedpoint"})),p=this.getCurrencySymbol().symbol.replace(/\$/g,"$$$$");return a.replace(/^(\D*)(\d.*)/,"$1"+p+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},8119:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ee});var o=u(2793),c=u(1828),I=u(2718),C=u(9644),g=u(2204),a=u(3479),p=u(8638),s=u(4943);const l={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-MV":5,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,"ff-Adlm":1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nds:1,nl:1,nmg:1,nnh:1,no:1,nus:1,nyn:1,os:1,pcm:1,pl:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,sc:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1};var d=u(5404),h=u(658),v=u(5873),x=/[\u200E\u200F]/g,b=G=>q=>{if(!G.timeZoneName){var Z=q.getFullYear(),X=String(Z).length<3,oe=new Date(Date.UTC(X?Z+400:Z,q.getMonth(),q.getDate(),q.getHours(),q.getMinutes(),q.getSeconds(),q.getMilliseconds()));return X&&oe.setFullYear(Z),S(oe,(0,v.l)({timeZone:"UTC"},G))}return S(q,G)},y={};function S(G,q){return(G=>{var q=d.Z.locale()+"/"+JSON.stringify(G);return y[q]||(y[q]=new Intl.DateTimeFormat(d.Z.locale(),G).format),y[q]})(q)(G).replace(x,"")}var G,O=G=>new Intl.NumberFormat(d.Z.locale()).format(G),w=(G={},q=>{if(!(q in G)){if("0"===O(0))return G[q]=!1,!1;G[q]={};for(var Z=0;Z<10;++Z)G[q][O(Z)]=Z}return G[q]}),T=G=>{var q=w(d.Z.locale());return q?G.split("").map(Z=>Z in q?String(q[Z]):Z).join(""):G},k=G=>G.replace(/(\D)0+(\d)/g,"$1$2"),P=G=>G.replace("d\u2019","de "),B={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(B,"shortdateshorttime",{get:function(){var G=Intl.DateTimeFormat(d.Z.locale()).resolvedOptions();return{year:G.year,month:G.month,day:G.day,hour:"numeric",minute:"numeric"}}});var W=G=>"string"==typeof G&&B[G.toLowerCase()],z={standalone:function(G,q){var Z=new Date(1999,G,13,1);return b({month:q})(Z)},format:function(G,q){var Z=new Date(0,G,13,1),M=P(b({day:"numeric",month:q})(Z)).split(" ").filter(oe=>oe.indexOf("13")<0);return 1===M.length?M[0]:2===M.length?M[0].length>M[1].length?M[0]:M[1]:z.standalone(G,q)}};const V={engine:function(){return"intl"},getMonthNames:function(G,q){var Z={wide:"long",abbreviated:"short",narrow:"narrow"}[G||"wide"];return q="format"===q?q:"standalone",Array.apply(null,new Array(12)).map((X,M)=>z[q](M,Z))},getDayNames:function(G){var Z;return Z={wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[G||"wide"],Array.apply(null,new Array(7)).map((X,M)=>b({weekday:Z})(new Date(0,0,M)))},getPeriodNames:function(){var G=b({hour:"numeric",hour12:!0});return[1,13].map(q=>{var Z=O(1),X=G(new Date(0,0,1,q)).split(Z);return 2!==X.length?"":(X[0].length>X[1].length?X[0]:X[1]).trim()})},format:function(G,q){if(G){if(!q)return G;"function"!=typeof q&&!q.formatter&&(q=q.type||q);var Z=W(q);if(Z)return b(Z)(G);var X=typeof q;return q.formatter||"function"===X||"string"===X?this.callBase.apply(this,arguments):b(q)(G)}},parse:function(G,q){var Z;return q&&!q.parser&&"string"==typeof G&&(G=P(G),Z=X=>P(this.format(X,q))),this.callBase(G,Z||q)},_parseDateBySimpleFormat:function(G,q){G=T(G);var Z=this.getFormatParts(q),X=G.split(/\D+/).filter(fe=>fe.length>0);if(Z.length===X.length){var M=this._generateDateArgs(Z,X),oe=fe=>{var Be,Te=(Be=M,new Date(Be.year,Be.month,Be.day,(Be.hours+(fe?12:0))%24,Be.minutes,Be.seconds));if(((G,q)=>k(G)===k(q))(T(this.format(Te,q)),G))return Te};return oe(!1)||oe(!0)}},_generateDateArgs:function(G,q){var Z=new Date,X={year:Z.getFullYear(),month:Z.getMonth(),day:Z.getDate(),hours:0,minutes:0,seconds:0};return G.forEach((M,oe)=>{var Te=parseInt(q[oe],10);"month"===M&&(Te-=1),X[M]=Te}),X},formatUsesMonthName:function(G){return"object"!=typeof G||G.type||G.format?this.callBase.apply(this,arguments):"long"===G.month},formatUsesDayName:function(G){return"object"!=typeof G||G.type||G.format?this.callBase.apply(this,arguments):"long"===G.weekday},getTimeSeparator:function(){return T(S(new Date(2001,1,1,11,11),{hour:"numeric",minute:"numeric",hour12:!1})).replace(/\d/g,"")},getFormatParts:function(G){if("string"==typeof G)return this.callBase(G);var q=(0,v.l)({},B[G.toLowerCase()]),Z=new Date(2001,2,4,5,6,7),X=b(q)(Z);return X=T(X),[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map(M=>({name:M.name,index:X.indexOf(M.value)})).filter(M=>M.index>-1).sort((M,oe)=>M.index-oe.index).map(M=>M.name)}};var K=typeof Intl<"u",Y={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},J={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},j=(0,o.Z)({engine:function(){return"base"},_getPatternByFormat:function(G){return Y[G.toLowerCase()]},_expandPattern:function(G){return this._getPatternByFormat(G)||G},formatUsesMonthName:function(G){return-1!==this._expandPattern(G).indexOf("MMMM")},formatUsesDayName:function(G){return-1!==this._expandPattern(G).indexOf("EEEE")},getFormatParts:function(G){var q=this._getPatternByFormat(G)||G,Z=[];return(0,I.S6)(q.split(/\W+/),(X,M)=>{(0,I.S6)(J,(oe,fe)=>{fe.includes(M)&&Z.push(oe)})}),Z},getMonthNames:function(G){return s.Z.getMonthNames(G)},getDayNames:function(G){return s.Z.getDayNames(G)},getQuarterNames:function(G){return s.Z.getQuarterNames(G)},getPeriodNames:function(G){return s.Z.getPeriodNames(G)},getTimeSeparator:function(){return":"},is24HourFormat:function(G){for(var q=new Date(2017,0,20,11,0,0,0),Z=new Date(2017,0,20,23,0,0,0),X=this.format(q,G),M=this.format(Z,G),oe=0;oe<X.length;oe++)if(X[oe]!==M[oe])return!isNaN(parseInt(X[oe]))},format:function(G,q){if(G){if(!q)return G;var Z;if("function"==typeof q)Z=q;else if(q.formatter)Z=q.formatter;else if((0,c.HD)(q=q.type||q))return q=Y[q.toLowerCase()]||q,h.Z.convertDigits((0,g.P)(q,this)(G));if(Z)return Z(G)}},parse:function(G,q){var X,M,Z=this;if(G){if(!q)return this.parse(G,"shortdate");if(q.parser)return q.parser(G);if("string"!=typeof q||Y[q.toLowerCase()]){M=fe=>{var Te=Z.format(fe,q);return h.Z.convertDigits(Te,!0)};try{X=(0,a.y)(M)}catch{}}else X=q;if(X)return G=h.Z.convertDigits(G,!0),(0,p.MT)(X,this)(G);C.Z.log("W0012");var oe=new Date(G);if(oe&&!isNaN(oe.getTime()))return oe}},firstDayOfWeekIndex:function(){var G=d.Z.getValueByClosestLocale(q=>l[q]);return void 0===G?0:G}});K&&j.inject(V);const ee=j},4943:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(2718),c=["January","February","March","April","May","June","July","August","September","October","November","December"],I=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],C=["AM","PM"],g=["Q1","Q2","Q3","Q4"],a=(s,l)=>{var d={abbreviated:3,short:2,narrow:1};return(0,o.UI)(s,h=>h.substr(0,d[l]))};const p={getMonthNames:function(s){return a(c,s)},getDayNames:function(s){return a(I,s)},getQuarterNames:function(s){return g},getPeriodNames:function(s){return C}}},8379:(Rn,he,u)=>{"use strict";u.d(he,{D:()=>I});var o=u(5404),c={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};function I(){return c[o.Z.locale()]}},3479:(Rn,he,u)=>{"use strict";u.d(he,{y:()=>b});var o=u(658),I=" .,:;/\\<>()-[]\u060c",g=function(y){var E=y&&o.Z.convertDigits(y,!1).charCodeAt(0),S=o.Z.convertDigits("0",!1).charCodeAt(0);return S<=E&&E<S+10},a=function(y,E,S,O){var w=y[S],T=y[S+1];if(!O&&("."===w||" "===w&&". m."===y.slice(S-1,S+3)||"-"===w&&!g(T)))return!0;var k=O&&E.some(R=>y[S]!==R[S]);return I.indexOf(w)<0&&O===g(w)&&(!O||k)},p=function(y,E){if(!g(y[E]))for(;E>0&&!g(y[E-1])&&("."===y[E-1]||I.indexOf(y[E-1])<0);)E--;return E},h=function(y,E){return Array.isArray(y)?y.map(function(S){return(E(S)||"").toString()}):(E(y)||"").toString()},v=/[a-zA-Z]/g,b=function(y){var E=[],S=h(new Date(2009,8,8,6,5,4),y),O=S.split("").map(function(R,P){return P}),w=S,T={},k=[{date:new Date(2009,8,8,6,5,4,111),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(w&&(k.forEach(function(R){var P=function(y,E,S,O){var w=0,T=[],k=function(R){return y[w]!==R[w]&&(void 0===O||g(y[w])===O)};for(Array.isArray(E)||(E=[E]),w=0;w<y.length;w++)if(S.indexOf(w)<0&&E.filter(k).length){w=p(y,w);do{if(O=g(y[w]),!T.length&&!O&&g(E[0][w]))break;T.push(w),S.unshift(w),w++}while(y[w]&&a(y,E,w,O));break}return 1===T.length&&("0"===y[S[0]-1]||"\u0660"===y[S[0]-1])&&S.unshift(S[0]-1),T}(S,h(R.date,y),E,R.isDigit),B="M"!==R.pattern||T.d?R.pattern:"L";w=function(y,E,S,O){var w,T,k;if(!g(y[E[0]]||"0")){for(var R=Math.max(E.length<=3?3:4,S.length);E.length>R;){for(k=O[T=E.pop()],O[T]=-1,w=T+1;w<O.length;w++)O[w]--;y=y.substr(0,k)+y.substr(k+1)}for(k=(T=E[E.length-1]+1)<O.length?O[T]:T;E.length<R;){for(E.push(E[E.length-1]+1),w=T;w<O.length;w++)O[w]++;y=y.substr(0,k)+" "+y.substr(k)}}return y=function(y,E,S,O){var w=E[0],T=w<O.length?O[w]:w;return E.forEach(function(k,R){y=y.substr(0,T+R)+(S.length>1?S[R]:S)+y.substr(T+R+1)}),1===E.length&&(y=(y=y.replace("0"+S,S+S)).replace("\u0660"+S,S+S)),y}(y,E,S,O),y}(w,P,B,O),T[B]=P.length}),w=function(y,E,S,O){var w=E.split("").map(function(T,k){return S.indexOf(k)<0&&(T.match(v)||"'"===T)?O[k]:-1});return y.split("").map(function(T,k){var R=T,P=w.indexOf(k)>=0,B=k>0&&w.indexOf(k-1)>=0,W=w.indexOf(k+1)>=0;return P&&(B||(R="'"+R),W||(R+="'")),R}).join("")}(w,S,E,O),E.length))return w}},2204:(Rn,he,u)=>{"use strict";function o(g,a){for(;g.length<a;)g="0"+g;return g}u.d(he,{P:()=>C});var c={3:"abbreviated",4:"wide",5:"narrow"},I={y:function(g,a,p){var s=g[p?"getUTCFullYear":"getFullYear"]();return 2===a&&(s%=100),o(s.toString(),a)},M:function(g,a,p,s){var l=g[p?"getUTCMonth":"getMonth"](),d=c[a];return d?s.getMonthNames(d,"format")[l]:o((l+1).toString(),Math.min(a,2))},L:function(g,a,p,s){var l=g[p?"getUTCMonth":"getMonth"](),d=c[a];return d?s.getMonthNames(d,"standalone")[l]:o((l+1).toString(),Math.min(a,2))},Q:function(g,a,p,s){var l=g[p?"getUTCMonth":"getMonth"](),d=Math.floor(l/3),h=c[a];return h?s.getQuarterNames(h)[d]:o((d+1).toString(),Math.min(a,2))},E:function(g,a,p,s){var l=g[p?"getUTCDay":"getDay"]();return s.getDayNames(c[a<3?3:a])[l]},a:function(g,a,p,s){var d=g[p?"getUTCHours":"getHours"]()<12?0:1;return s.getPeriodNames(c[a])[d]},d:function(g,a,p){return o(g[p?"getUTCDate":"getDate"]().toString(),Math.min(a,2))},H:function(g,a,p){return o(g[p?"getUTCHours":"getHours"]().toString(),Math.min(a,2))},h:function(g,a,p){return o((g[p?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(a,2))},m:function(g,a,p){return o(g[p?"getUTCMinutes":"getMinutes"]().toString(),Math.min(a,2))},s:function(g,a,p){return o(g[p?"getUTCSeconds":"getSeconds"]().toString(),Math.min(a,2))},S:function(g,a,p){return o(g[p?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,a)},x:function(g,a,p){var s=p?0:g.getTimezoneOffset(),l=s>0?"-":"+",d=Math.abs(s),v=d%60,x=o(Math.floor(d/60).toString(),2),b=o(v.toString(),2);return l+x+(a>=3?":":"")+(a>1||v?b:"")},X:function(g,a,p){return p||!g.getTimezoneOffset()?"Z":I.x(g,a,p)},Z:function(g,a,p){return I.X(g,a>=5?3:2,p)}},C=function(g,a){return function(p){var s,l,d,x,h=0,v=!1,b="";if(!p)return null;if(!g)return p;var y="Z"===g[g.length-1]||"'Z'"===g.slice(-3);for(s=0;s<g.length;s++)l=I[d=g[s]],h++,(x=d===g[s+1])||(l&&!v&&(b+=l(p,h,y,a)),h=0),"'"!==d||x?(v||!l)&&(b+=d):v=!v,"'"===d&&x&&s++;return b}}},8638:(Rn,he,u)=>{"use strict";u.d(he,{MT:()=>P,oo:()=>b,xe:()=>S});var o=u(7674),c=u(2160),I={3:"abbreviated",4:"wide",5:"narrow"},C=function(B,W){return B>2?Object.keys(I).map(function(z){return["format","standalone"].map(function(V){return W.getMonthNames(I[z],V).join("|")}).join("|")}).join("|"):2===B?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},g={":":function(B,W){var z=B>1?"{".concat(B,"}"):"",V=(0,o.hr)(W.getTimeSeparator());return":"!==V&&(V="".concat(V,"|:")),"".concat(V).concat(z)},y:function(B){return 2===B?"[0-9]{".concat(B,"}"):"[0-9]+?"},M:C,L:C,Q:function(B,W){return B>2?W.getQuarterNames(I[B],"format").join("|"):"0?[1-4]"},E:function(B,W){return"\\D*"},a:function(B,W){return W.getPeriodNames(I[B<3?3:B],"format").join("|")},d:function(B){return 2===B?"3[01]|[12][0-9]|0?[1-9]":"0??[1-9]|[12][0-9]|3[01]"},H:function(B){return 2===B?"2[0-3]|1[0-9]|0?[0-9]":"0??[0-9]|1[0-9]|2[0-3]"},h:function(B){return 2===B?"1[012]|0?[1-9]":"0??[1-9]|1[012]"},m:function(B){return 2===B?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},s:function(B){return 2===B?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"},S:function(B){return"[0-9]{1,".concat(B,"}")},w:function(B){return 2===B?"[1-5][0-9]|0?[0-9]":"0??[0-9]|[1-5][0-9]"}},a=Number,p=function(B,W){return B.map(z=>z.toLowerCase()).indexOf(W.toLowerCase())},s=function(B,W,z){return W>2?["format","standalone"].map(function(V){return Object.keys(I).map(function(U){var K=z.getMonthNames(I[U],V);return p(K,B)})}).reduce(function(V,U){return V.concat(U)}).filter(function(V){return V>=0})[0]:a(B)-1},l={y:function(B,W){var z=a(B);return 2===W?z<30?2e3+z:1900+z:z},M:s,L:s,Q:function(B,W,z){return W>2?z.getQuarterNames(I[W],"format").indexOf(B):a(B)-1},E:function(B,W,z){var V=z.getDayNames(I[W<3?3:W],"format");return p(V,B)},a:function(B,W,z){var V=z.getPeriodNames(I[W<3?3:W],"format");return p(V,B)},d:a,H:a,h:a,m:a,s:a,S:function(B,W){for(W=Math.max(W,3),B=B.slice(0,3);W<3;)B+="0",W++;return a(B)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(B,W,z){var V=B.getHours(),U=z.h;void 0!==U&&U!==V&&V--,W||12!==V?W&&12!==V&&(V+=12):V=0,B.setHours(V)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},v=function(B,W){var z=B[W];if(!z)return 0;var V=0;do{W++,V++}while(B[W]===z);return V},x=function(B,W){for(var z="",V=0;V<W;V++)z+=B;return z},b=function(B,W){for(var U,z="",V="",K=[],Y=function(){V&&(K.push("'".concat(V,"'")),z+="".concat((0,o.hr)(V),")"),V="")},J=0;J<B.length;J++){var j=B[J],G=g[j];if("'"!==j||(U=!U,"'"===B[J-1]))if(G&&!U){var q=v(B,J),Z=x(j,q);Y(),K.push(Z),z+="(".concat(G(q,W),")"),J+=q-1}else V||(z+="("),V+=j}return Y(),E(K)||c.k.warn("The following format may be parsed incorrectly: ".concat(B,".")),{patterns:K,regexp:new RegExp("^".concat(z,"$"),"i")}},y=["d","H","h","m","s","w","M","L","Q"],E=function(B){var W=U=>{if(!U)return!1;var K=U[0];return["y","S"].includes(K)||y.includes(K)&&U.length<3},z=!0,V=0;return B.every((U,K,Y)=>{return W(U)&&("S"!==(J=U)[0]&&2!==J.length&&(z=++V<2),W(Y[K+1])||(V=0)),z;var J})},S=function(){return h},P=function(B,W){var z=b(B,W);return function(V){var U=z.regexp.exec(V);if(U){var K=new Date,Y=new Date(K.getFullYear(),0,1),J=function(B){return B.map(function(W){return"'"===W[0]?"":"H"===W[0]?"h":W[0]})}(z.patterns),j=function(B){var W=B.map(function(z){return d.indexOf(z)});return Math.max.apply(Math,W)}(J),ee=function(B){var W=B.filter(function(z){return d.indexOf(z)<0});return d.concat(W)}(J),G={};return ee.forEach(function(q,Z){if(q&&!(Z<d.length&&Z>j)){var X=J.indexOf(q);X>=0?function(B,W,z,V,U){var K=W[0],Y=h[K],J=l[K];if(Y&&J){var j=J(z,W.length,V);U[W]=j,B[Y]?B[Y](j):Y(B,j,U)}}(Y,z.patterns[X],U[X+1],W,G):function(B,W,z){var V=h[W],K=z["g"+V.substr(1)]();B[V](K)}(Y,q,K)}}),Y}return null}}},6865:(Rn,he,u)=>{"use strict";u.d(he,{P:()=>O,y:()=>R});var o=u(3487),c=u(9474),I={thousandsSeparator:",",decimalSeparator:"."};function l(P){return P.toString().split("").reverse().join("")}function h(P){return P.replace(/'.+'/g,"")}function v(P){if(!P)return 0;var B=h(P);return B.length-B.replace(/[#]/g,"").length}function x(P){if(!P)return 0;var B=h(P);return B.length-B.replace(/[0]/g,"").length}function b(P,B,W){if(!P)return"";for(P.length>W&&(P=P.substr(0,W));P.length>B&&"0"===P.slice(-1);)P=P.substr(0,P.length-1);for(;P.length<B;)P+="0";return P}function E(P,B){return P.split("'").map(function(W,z){var V=z%2;return!W&&V?"'":V?W:W.replace(/[,#0]+/,B)}).join("")}function O(P,B){return B=B||I,function(W){if("number"!=typeof W||isNaN(W))return"";var z=function s(P){var B=P.split(";");return 1===B.length&&B.push("-"+B[0]),B}(P),U=W>0||1/W==1/0,K=z[U?0:1],Y=function S(P){for(var B=!1,W=0;W<P.length;W++)if("'"===P[W]&&(B=!B),"."===P[W]&&!B)return W;return P.length}(K),J=[K.substr(0,Y),K.substr(Y+1)],j=x(J[1]),ee=j+v(J[1]);(function d(P){return-1!==P.indexOf("%")&&!P.match(/'[^']*%[^']*'/g)})(K)&&(W=(0,o.Ow)(W,2)),U||(W=-W);var G=x(J[0]),q=v(J[0])||B.unlimitedIntegerDigits?void 0:G,Z=Math.floor(W).toString().length,X=(0,o.n$)(ee,0,15-Z),M=function p(P){return P.split(",").slice(1).map(function(B){var W=0;return B.split("").filter(function(z,V){return W+="'"===z,!("#"!==z&&"0"!==z||W%2)}).length})}(J[0]).reverse(),oe=(0,c.F)(W,X<0?0:X).split("."),fe=b(l(oe[0]),G,q),Te=b(oe[1],j,ee);fe=function y(P,B,W){if(!B.length)return P;for(var z=[],V=0;P;){var U=B[V];if(!U)break;z.push(P.slice(0,U)),P=P.slice(U),V<B.length-1&&V++}return z.join(W)}(fe,M,B.thousandsSeparator);var Be=l(E(l(J[0]),fe)),ze=ee?E(J[1],Te):"";return Be+(ze.match(/\d/)?B.decimalSeparator:"")+ze}}function w(P,B,W){var z=(B?.01:1)*parseFloat(P)||0;return W?-z:z}function T(P,B,W,z){var U,K,Y,V=P;do{Y&&(U=K.length===Y.length?"0":"1",P=z?U+P:P+U),K=Y||B(w(V,W)),Y=B(w(V=z?"1"+V:V+"1",W))}while(K!==Y&&(z?K.length===Y.length:K.length<=Y.length));if(z&&Y.length>K.length){var J=-1===B(12345).indexOf("12345");do{P="1"+P}while(J&&w(P,W)<1e5)}return P}function k(P,B,W,z){var V=B(w(P,W,z)),U=P.split("."),J=B(w(U[0]+".3"+U[1].slice(1),W,z)).indexOf("3")-1;return V=V.replace(/(\d)\D(\d)/g,"$1,$2"),J>=0&&(V=V.slice(0,J)+"."+V.slice(J+1)),V=V.replace(/1+/,"1").replace(/1/g,"#"),W||(V=V.replace("%","'%'")),V}function R(P){var B=".",W=P(1).indexOf("100")>=0;B=T(B,P,W,!0);var z=k(B=T(B,P,W,!1),P,W,!1),V=k(B,P,W,!0);return V==="-"+z?z:z+";"+V}},9009:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(2793),c=u(5873),I=u(9589),C=u(7981),g=u(5404),p=(0,c.l)(!0,{},{en:{Yes:"Yes",No:"No",Cancel:"Cancel",Close:"Close",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select a file","dxFileUploader-dropFile":"or Drop a file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadAbortedMessage":"Upload cancelled","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows to {0}","dxDataGrid-exportAll":"Export all data to {0}","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column '{0}'","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaAdaptiveCollapse":"Hide additional data","dxDataGrid-ariaAdaptiveExpand":"Display additional data","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in the data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-ariaToolbar":"Data grid toolbar","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-ariaSearchInGrid":"Search in the tree list","dxTreeList-ariaToolbar":"Tree list toolbar","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPager-pageSize":"Items per page: {0}","dxPager-pageSizesAllText":"All","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-dialogInsertTableRowsField":"Rows","dxHtmlEditor-dialogInsertTableColumnsField":"Columns","dxHtmlEditor-dialogInsertTableCaption":"Insert Table","dxHtmlEditor-dialogUpdateImageCaption":"Update Image","dxHtmlEditor-dialogImageUpdateButton":"Update","dxHtmlEditor-dialogImageAddButton":"Add","dxHtmlEditor-dialogImageSpecifyUrl":"From the Web","dxHtmlEditor-dialogImageSelectFile":"From This Device","dxHtmlEditor-dialogImageKeepAspectRatio":"Keep Aspect Ratio","dxHtmlEditor-dialogImageEncodeToBase64":"Encode to Base64","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxHtmlEditor-background":"Background Color","dxHtmlEditor-bold":"Bold","dxHtmlEditor-color":"Font Color","dxHtmlEditor-font":"Font","dxHtmlEditor-italic":"Italic","dxHtmlEditor-link":"Add Link","dxHtmlEditor-image":"Add Image","dxHtmlEditor-size":"Size","dxHtmlEditor-strike":"Strikethrough","dxHtmlEditor-subscript":"Subscript","dxHtmlEditor-superscript":"Superscript","dxHtmlEditor-underline":"Underline","dxHtmlEditor-blockquote":"Blockquote","dxHtmlEditor-header":"Header","dxHtmlEditor-increaseIndent":"Increase Indent","dxHtmlEditor-decreaseIndent":"Decrease Indent","dxHtmlEditor-orderedList":"Ordered List","dxHtmlEditor-bulletList":"Bullet List","dxHtmlEditor-alignLeft":"Align Left","dxHtmlEditor-alignCenter":"Align Center","dxHtmlEditor-alignRight":"Align Right","dxHtmlEditor-alignJustify":"Align Justify","dxHtmlEditor-codeBlock":"Code Block","dxHtmlEditor-variable":"Add Variable","dxHtmlEditor-undo":"Undo","dxHtmlEditor-redo":"Redo","dxHtmlEditor-clear":"Clear Formatting","dxHtmlEditor-insertTable":"Insert Table","dxHtmlEditor-insertHeaderRow":"Insert Header Row","dxHtmlEditor-insertRowAbove":"Insert Row Above","dxHtmlEditor-insertRowBelow":"Insert Row Below","dxHtmlEditor-insertColumnLeft":"Insert Column Left","dxHtmlEditor-insertColumnRight":"Insert Column Right","dxHtmlEditor-deleteColumn":"Delete Column","dxHtmlEditor-deleteRow":"Delete Row","dxHtmlEditor-deleteTable":"Delete Table","dxHtmlEditor-cellProperties":"Cell Properties","dxHtmlEditor-tableProperties":"Table Properties","dxHtmlEditor-insert":"Insert","dxHtmlEditor-delete":"Delete","dxHtmlEditor-border":"Border","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Width","dxHtmlEditor-height":"Height","dxHtmlEditor-borderColor":"Color","dxHtmlEditor-tableBackground":"Background","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignment","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Vertical Padding","dxHtmlEditor-paddingHorizontal":"Horizontal Padding","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"List","dxHtmlEditor-ordered":"Ordered","dxHtmlEditor-bullet":"Bullet","dxHtmlEditor-align":"Align","dxHtmlEditor-center":"Center","dxHtmlEditor-left":"Left","dxHtmlEditor-right":"Right","dxHtmlEditor-indent":"Indent","dxHtmlEditor-justify":"Justify","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-editingDownloadSingleItemErrorMessage":"Item was not downloaded","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} items were not downloaded","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop a file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resources: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"The task you are attempting to move is linked to another tasks by dependency relations. How would you like to proceed?","dxGantt-dialogDeleteDependenciesMessage":"Delete the dependency relations","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Move the task and keep the dependencies","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Sort Ascending","dxGantt-sortingDescendingText":"Sort Descending","dxGantt-sortingClearText":"Clear Sorting","dxGantt-showResources":"Show Resources","dxGantt-showDependencies":"Show Dependencies","dxGantt-dialogStartDateValidation":"Start date must be after {0}","dxGantt-dialogEndDateValidation":"End date must be after {0}"}}),l={};const h=(0,o.Z)({engine:function(){return"base"},_dictionary:p,load:function(v){(0,c.l)(!0,this._dictionary,v)},_localizablePrefix:"@",setup:function(v){this._localizablePrefix=v},localizeString:function(v){var x=this,b=new RegExp("(^|[^a-zA-Z_0-9"+x._localizablePrefix+"-]+)("+x._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),y=x._localizablePrefix+x._localizablePrefix;return v.replace(b,(E,S,O,w)=>{var k,T=x._localizablePrefix+w;return O!==y&&(k=x.format(w)),k||(l[w]=(0,C.OI)(w)),S+(k||T)})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(v){return v?l:(0,c.l)({},l,this.getMessagesByLocales()[g.Z.locale()])},getFormatter:function(v){return this._getFormatterBase(v)||this._getFormatterBase(v,"en")},_getFormatterBase:function(v,x){var b=g.Z.getValueByClosestLocale(y=>((v,x)=>this._dictionary[x]||{})(0,y)[v]);if(b)return function(){var y=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return y.unshift(b),I.WU.apply(this,y)}},format:function(v){var x=this.getFormatter(v),b=Array.prototype.slice.call(arguments,1);return x&&x.apply(this,b)||""}})},658:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>V});var o=u(2793),c=u(7674),I=u(2718),C=u(1828),g=u(6865),a=u(7572),p=u(9644),s=u(9474),l=u(3128),d=u(5404);const v={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4","be-tarask":"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-valencia":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",doi:"\xa4#,##0.00",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MV":"\xa4\xa0#,##0.00","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Adlm":"\xa4\xa0#,##0.00","ff-Adlm-BF":"\xa4\xa0#,##0.00","ff-Adlm-CM":"\xa4\xa0#,##0.00","ff-Adlm-GH":"\xa4\xa0#,##0.00","ff-Adlm-GM":"\xa4\xa0#,##0.00","ff-Adlm-GW":"\xa4\xa0#,##0.00","ff-Adlm-LR":"\xa4\xa0#,##0.00","ff-Adlm-MR":"\xa4\xa0#,##0.00","ff-Adlm-NE":"\xa4\xa0#,##0.00","ff-Adlm-NG":"\xa4\xa0#,##0.00","ff-Adlm-SL":"\xa4\xa0#,##0.00","ff-Adlm-SN":"\xa4\xa0#,##0.00","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00","hi-Latn":"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kgp:"\xa4\xa0#,##0.00",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4#,##0.00","ks-Arab":"\xa4#,##0.00","ks-Deva":"\xa4\xa0#,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mai:"\xa4\xa0#,##0.00",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mni:"\xa4\xa0#,##0.00","mni-Beng":"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-ID":"\xa4#,##0.00","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nb-SJ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##,##0.00","ne-IN":"\xa4\xa0#,##,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",no:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pcm:"\xa4#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sa:"\xa4\xa0#,##0.00",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sat:"\xa4\xa0#,##0.00","sat-Olck":"\xa4\xa0#,##0.00",sbp:"#,##0.00\xa4",sc:"#,##0.00\xa0\xa4",sd:"\xa4\xa0#,##0.00","sd-Arab":"\xa4\xa0#,##0.00","sd-Deva":"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",su:"\xa4#,##0.00","su-Latn":"\xa4#,##0.00",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",und:"\xa4\xa0#,##0.00",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yrl:"\xa4\xa0#,##0.00","yrl-CO":"\xa4\xa0#,##0.00","yrl-VE":"\xa4\xa0#,##0.00",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"};var x=["standard","accounting"],y=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,E={},S=U=>{var K=d.Z.locale()+"/"+JSON.stringify(U);return E[K]||(E[K]=new Intl.NumberFormat(d.Z.locale(),U).format),E[K]};const w={engine:function(){return"intl"},_formatNumberCore:function(U,K,Y){return"exponential"===K?this.callBase.apply(this,arguments):S(this._normalizeFormatConfig(K,Y,U))(U)},_normalizeFormatConfig:function(U,K,Y){var J;if("decimal"===U){var j=String(Y).split(".")[1];J={minimumIntegerDigits:K.precision||void 0,useGrouping:!1,maximumFractionDigits:j&&j.length,round:Y<0?"ceil":"floor"}}else J=this._getPrecisionConfig(K.precision);if("percent"===U)J.style="percent";else if("currency"===U){var ee,G=null!==(ee=K.useCurrencyAccountingStyle)&&void 0!==ee?ee:(0,a.Z)().defaultUseCurrencyAccountingStyle;J.style="currency",J.currency=K.currency||(0,a.Z)().defaultCurrency,J.currencySign=x[+G]}return J},_getPrecisionConfig:function(U){return null===U?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:U||0,maximumFractionDigits:U||0}},format:function(U,K){return"number"!=typeof U?U:("default"===(K=this._normalizeFormat(K)).currency&&(K.currency=(0,a.Z)().defaultCurrency),K&&("function"==typeof K||K.type||K.formatter)?this.callBase.apply(this,arguments):S(K)(U))},_getCurrencySymbolInfo:function(U){var K=(U=>new Intl.NumberFormat(d.Z.locale(),{style:"currency",currency:U}))(U);return this._extractCurrencySymbolInfo(K.format(0))},_extractCurrencySymbolInfo:function(U){var K=y.exec(U)||[];return{position:K[1]?"before":"after",symbol:K[1]||K[4]||"",delimiter:K[2]||K[3]||""}},getCurrencySymbol:function(U){return U||(U=(0,a.Z)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(U).symbol}},getOpenXmlCurrencyFormat:function(U){var K=U||(0,a.Z)().defaultCurrency;return((U,K)=>{if(K){var Y=U;if("string"==typeof U){Y="";for(var J=0;J<U.length;J++)"$"!==U[J]&&(Y+="\\"),Y+=U[J]}for(var j={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':"&quot;","\\\xa4":Y},ee=K.split(";"),G=0;G<ee.length;G++)for(var q in j)Object.prototype.hasOwnProperty.call(j,q)&&(ee[G]=ee[G].replace(new RegExp(q,"g"),j[q]));return 2===ee.length?ee[0]+"_);"+ee[1]:ee[0]}})(this._getCurrencySymbolInfo(K).symbol,d.Z.getValueByClosestLocale(j=>v[j]))}};var T=typeof Intl<"u",P=["currency","fixedpoint","exponential","percent","decimal"],B={1:"K",2:"M",3:"B",4:"T"},W={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},z=(0,o.Z)({engine:function(){return"base"},numericFormats:P,defaultLargeNumberFormatPostfixes:B,_parseNumberFormatString:function(U){var K={};if(U&&"string"==typeof U){var Y=U.toLowerCase().split(" ");if((0,I.S6)(Y,(J,j)=>{P.includes(j)?K.formatType=j:j in W&&(K.power=W[j])}),K.power&&!K.formatType&&(K.formatType="fixedpoint"),K.formatType)return K}},_calculateNumberPower:function(U,K,Y,J){var j=Math.abs(U),ee=0;if(j>1)for(;j&&j>=K&&(void 0===J||ee<J);)ee++,j/=K;else if(j>0&&j<1)for(;j<1&&(void 0===Y||ee>Y);)ee--,j*=K;return ee},_getNumberByPower:function(U,K,Y){for(var J=U;K>0;)J/=Y,K--;for(;K<0;)J*=Y,K++;return J},_formatNumber:function(U,K,Y){"auto"===K.power&&(K.power=this._calculateNumberPower(U,1e3,0,4)),K.power&&(U=this._getNumberByPower(U,K.power,1e3));var J=this.defaultLargeNumberFormatPostfixes[K.power]||"",j=this._formatNumberCore(U,K.formatType,Y);return j.replace(/(\d|.$)(\D*)$/,"$1"+J+"$2")},_formatNumberExponential:function(U,K){var Y=this._calculateNumberPower(U,10),J=this._getNumberByPower(U,Y,10);void 0===K.precision&&(K.precision=1),J.toFixed(K.precision||0)>=10&&(Y++,J/=10);var j=(Y>=0?"+":"")+Y.toString();return this._formatNumberCore(J,"fixedpoint",K)+"E"+j},_addZeroes:function(U,K){for(var Y=Math.pow(10,K),J=U<0?"-":"",j=(U=(Math.abs(U)*Y>>>0)/Y).toString();j.length<K;)j="0"+j;return J+j},_addGroupSeparators:function(U){var K=U.toString().split(".");return K[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,a.Z)().thousandsSeparator)+(K[1]?(0,a.Z)().decimalSeparator+K[1]:"")},_formatNumberCore:function(U,K,Y){return"exponential"===K?this._formatNumberExponential(U,Y):("decimal"!==K&&null!==Y.precision&&(Y.precision=Y.precision||0),"percent"===K&&(U*=100),void 0!==Y.precision&&(U="decimal"===K?this._addZeroes(U,Y.precision):null===Y.precision?U.toPrecision():(0,s.F)(U,Y.precision)),U="decimal"!==K?this._addGroupSeparators(U):U.toString().replace(".",(0,a.Z)().decimalSeparator),"percent"===K&&(U+="%"),U)},_normalizeFormat:function(U){return U?("function"==typeof U||(0,C.PO)(U)||(U={type:U}),U):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(U,K){var Y=this.format(90,"decimal");if("string"!=typeof U||"0"===Y[1])return U;var J=K?Y[1]:"0",j=K?"0":Y[1],G=new RegExp("["+J+"-"+(K?Y[0]:"9")+"]","g");return U.replace(G,q=>String.fromCharCode(q.charCodeAt(0)+(j.charCodeAt(0)-J.charCodeAt(0))))},getNegativeEtalonRegExp:function(U){var K=this._getSeparators(),Y=new RegExp("[0-9"+(0,c.hr)(K.decimalSeparator+K.thousandsSeparator)+"]+","g"),J=this.format(-1,U).replace(Y,"1");return["\\","(",")","[","]","*","+","$","^","?","|","{","}"].forEach(j=>{J=J.replace(new RegExp("\\".concat(j),"g"),"\\".concat(j))}),J=(J=J.replace(/ /g,"\\s")).replace(/1/g,".*"),new RegExp(J,"g")},getSign:function(U,K){if(!K)return"-"===U.replace(/[^0-9-]/g,"").charAt(0)?-1:1;var Y=this.getNegativeEtalonRegExp(K);return U.match(Y)?-1:1},format:function(U,K){if("number"!=typeof U||"number"==typeof K)return U;if("function"==typeof(K=K&&K.formatter||K))return K(U);(K=this._normalizeFormat(K)).type||(K.type="decimal");var Y=this._parseNumberFormatString(K.type);if(!Y){var J=this._getSeparators();return J.unlimitedIntegerDigits=K.unlimitedIntegerDigits,this.convertDigits((0,g.P)(K.type,J)(U))}return this._formatNumber(U,Y,K)},parse:function(U,K){if(U){if(K&&K.parser)return K.parser(U);U=this.convertDigits(U,!0),K&&"string"!=typeof K&&p.Z.log("W0011");var Y=this.getDecimalSeparator(),J=new RegExp("[^0-9"+(0,c.hr)(Y)+"]","g"),j=U.replace(J,"").replace(Y,".").replace(/\.$/g,"");if("."===j||""===j)return null;if(this._calcSignificantDigits(j)>15)return NaN;var ee=+j*this.getSign(U,K);K=this._normalizeFormat(K);var G=this._parseNumberFormatString(K.type),q=G?.power;if(q){if("auto"===q){var Z=U.match(/\d(K|M|B|T)/);Z&&(q=Object.keys(B).find(X=>B[X]===Z[1]))}ee*=Math.pow(10,3*q)}return"percent"===G?.formatType&&(ee/=100),ee}},_calcSignificantDigits:function(U){var[K,Y]=U.split("."),J=ee=>{for(var G=-1,q=0;q<ee.length;q++)if("0"!==ee[q]){G=q;break}return G>-1?ee.length-G:0},j=0;return K&&(j+=J(K.split(""))),Y&&(j+=J(Y.split("").reverse())),j}});z.inject(l.Z),T&&z.inject(w);const V=z},9474:(Rn,he,u)=>{"use strict";u.d(he,{F:()=>g});var o=u(3487);function C(a,p){var s=Math.pow(10,p);return function I(a){return(0,o.Xx)(a)*Math.round(Math.abs(a))}((0,o.Ow)(a,p))/s}function g(a,p){var s=p||0,l=s>0?C(...arguments):a;return l.toFixed(s)}},903:(Rn,he,u)=>{"use strict";u.d(he,{E:()=>c});var c=(0,u(6084).kr)(void 0)},4691:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>z});var o=u(4817),c=u(9056),I=u(8478),C=u(6084),g=u(4572),a=u(9897),p=u(5610),s=u(2793),l=V=>{var{parentNode:U}=V;U&&((0,p.nK)(V),U.$V=V.$V,(0,c.sY)(null,U),U.appendChild(V),V.innerHTML="",delete U.$V),delete V.$V};const d=(0,s.Z)({createElement:(V,U)=>(0,g.a)(V,U),remove:l,onAfterRender:()=>{C.rN.callEffects()},onPreRender:()=>{C.rN.lock()},render:(V,U,K,Y)=>{if(Y)(0,c.sY)((0,g.a)(V,U),K);else{var{parentNode:J}=K,j=K?.nextSibling,ee=a.Z.createElement("div");ee.appendChild(K);var G=a.Z.createDocumentFragment().appendChild(ee);!!K.$V&&l(K),(0,C.ZB)((0,g.a)(V,U),G),K.$V=G.$V,J&&J.insertBefore(K,j)}}});var h=u(9904),v=u(8893),x=u(5873),b=u(6881),y=u(1828),S=u(6520),O=u(2718);class T extends C.OS{constructor(U){super(U),this.renderTemplate=this.renderTemplate.bind(this)}renderTemplate(){var U,K=(0,c.lN)(this.$LI,!0),Y=K.parentNode,J=(0,h.Z)(Y),j=J.contents(),{data:ee,index:G}=null!==(U=this.props.model)&&void 0!==U?U:{data:{}};ee&&Object.keys(ee).forEach(Z=>{ee[Z]&&a.Z.isNode(ee[Z])&&(ee[Z]=(0,b.u)((0,h.Z)(ee[Z])))});var q=(0,h.Z)(this.props.template.render((0,o.Z)({container:(0,b.u)(J),transclude:this.props.transclude},{renovated:this.props.renovated},this.props.transclude?{}:{model:ee},!this.props.transclude&&Number.isFinite(G)?{index:G}:{})));return(0,S.dL)((0,h.Z)(K),q),()=>{((V,U)=>{(0,O.S6)(U,(K,Y)=>{var J=!1;(0,O.S6)(V,(j,ee)=>{Y===ee&&(J=!0)}),!J&&Y.parentNode&&Y.parentNode.removeChild(Y)})})(j,J.contents()),Y.appendChild(K)}}shouldComponentUpdate(U){var{model:K,template:Y}=this.props,{model:J,template:j}=U;if(Y!==j)return!0;if((0,y.$K)(K)&&(0,y.$K)(J)){var{data:G,index:q}=K,{data:Z,index:X}=J;return q!==X||!((V,U)=>Object.keys(V).length===Object.keys(U).length&&Object.keys(V).every(K=>V[K]===U[K]))(G,Z)}return!(K===J)}createEffects(){return[new C.b0(this.renderTemplate,[this.props.template,this.props.model])]}updateEffects(){this._effects[0].update([this.props.template,this.props.model])}componentWillUnmount(){}render(){return null}}var k=u(6738);function R(V){return Array.isArray(V)?[...V]:(0,o.Z)({},V)}function P(V,U,K){var Y=R(K.length>0&&U&&V!==U?U:V),J=K[0];return K.length>1?Y[J]=P(V[J],U?.[J],K.slice(1)):J&&(Y[J]=(0,y.PO)(V[J])?R(V[J]):V[J]),Y}function B(V,U,K,Y){var J=U[K],j=V[K];V[K]=(0,y.PO)(J)||K!==Y&&Array.isArray(J)?P(J,j,(0,k.Zw)(Y).slice(1)):J}var W=(V,U)=>K=>{Object.prototype.hasOwnProperty.call(V,K)&&void 0===V[K]&&(V[K]=U(K))};let z=(()=>{class V extends v.Z{constructor(K,Y){super(K,Y),this._shouldRaiseContentReady=!1,this.validateKeyDownHandler()}get _propsInfo(){return{allowNull:[],twoWay:[],elements:[],templates:[],props:[]}}validateKeyDownHandler(){if(this.getSupportedKeyNames().length>0&&"function"!=typeof this._viewComponent.prototype.keyDown)throw Error("Component's declaration must have 'keyDown' method.")}get viewRef(){var K;return null===(K=this._viewRef)||void 0===K?void 0:K.current}_checkContentReadyOption(K){var Y=this._getContentReadyOptions().reduce((J,j)=>(J[j]=!0,J),{});return this._checkContentReadyOption=J=>!!Y[J],this._checkContentReadyOption(K)}_getContentReadyOptions(){return["rtlEnabled"]}_fireContentReady(){this._actionsMap.onContentReady({})}_getDefaultOptions(){var K=this._getViewComponentDefaultProps();return(0,x.l)(!0,super._getDefaultOptions(),K,this._propsInfo.twoWay.reduce((Y,J)=>{var[j,ee,G]=J;return(0,o.Z)({},Y,{[j]:K[ee],[G]:q=>this.option(j,q)})},{}),this._propsInfo.templates.reduce((Y,J)=>(0,o.Z)({},Y,{[J]:null}),{}))}_getUnwrappedOption(){var K={};return Object.keys(this.option()).forEach(Y=>{K[Y]=this.option(Y)}),K}_initializeComponent(){var K;super._initializeComponent(),null===(K=this._templateManager)||void 0===K||K.addDefaultTemplates(this.getDefaultTemplates());var Y=this._getUnwrappedOption();this._props=this._optionsWithDefaultTemplates(Y),this._propsInfo.templates.forEach(J=>{this._componentTemplates[J]=this._createTemplateComponent(this._props[J])}),Object.keys(this._getActionConfigsFull()).forEach(J=>this._addAction(J)),this._viewRef=(0,c.Vf)(),this.defaultKeyHandlers=this._createDefaultKeyHandlers()}_initMarkup(){var K=this.getProps();this._renderWrapper(K)}_renderWrapper(K){var Y=this.$element()[0];this._isNodeReplaced||d.onPreRender(),d.render(this._viewComponent,K,Y,this._isNodeReplaced),this._isNodeReplaced||(this._isNodeReplaced=!0,d.onAfterRender(),this._shouldRaiseContentReady=!0),this._shouldRaiseContentReady&&(this._fireContentReady(),this._shouldRaiseContentReady=!1)}_silent(K,Y){this._options.silent(K,Y)}_render(){}_removeWidget(){d.remove(this.$element()[0])}_dispose(){this._removeWidget(),super._dispose()}get elementAttr(){var K=this.$element()[0];if(!this._elementAttr){var{attributes:Y}=K,J=Array.from(Y).filter(q=>{var Z;return!this._propsInfo.templates.includes(q.name)&&(null===(Z=Y[q.name])||void 0===Z?void 0:Z.specified)}).reduce((q,Z)=>{var{name:X,value:M}=Z,oe=q;return oe[X]=""===M&&X in K?K[X]:M,oe},{});this._elementAttr=J,this._storedClasses=K.getAttribute("class")||""}for(var j=K.style,ee={},G=0;G<j.length;G+=1)ee[j[G]]=j.getPropertyValue(j[G]);return this._elementAttr.style=ee,this._elementAttr.class=this._storedClasses,this._elementAttr}_getAdditionalActionConfigs(){return{onContentReady:{excludeValidators:["disabled","readOnly"]}}}_getAdditionalProps(){return[]}_patchOptionValues(K){var{allowNull:Y,elements:J,props:j,twoWay:ee}=this._propsInfo,G=this._getViewComponentDefaultProps(),q=Object.keys(G),Z=this._getDefaultOptions(),{children:X,onKeyboardHandled:M,ref:oe}=K,Te={ref:oe,children:X,onKeyDown:M?(Be,ze)=>{M(ze)}:void 0};return[...j,...this._getAdditionalProps()].forEach(Be=>{Object.prototype.hasOwnProperty.call(K,Be)&&(Te[Be]=K[Be])}),Y.forEach(W(Te,()=>null)),q.forEach(W(Te,Be=>Z[Be])),ee.forEach(Be=>{var[ze,ae]=Be;W(Te,()=>Z[ae])(ze)}),J.forEach(Be=>{if(Be in Te){var ze=Te[Be];(0,y.ZU)(ze)&&(Te[Be]=this._patchElementParam(ze))}}),Te}getSupportedKeyNames(){return[]}prepareStyleProp(K){return"string"==typeof K.style?(0,o.Z)({},K,{style:{},cssText:K.style}):K}getProps(){var K,Y,{elementAttr:J}=this.option(),j=this._patchOptionValues((0,o.Z)({},this._props,{ref:this._viewRef,children:this._extractDefaultSlot(),aria:this._aria}));return this._propsInfo.templates.forEach(ee=>{j[ee]=this._componentTemplates[ee]}),this.prepareStyleProp((0,o.Z)({},j,this.elementAttr,J,{className:[...(null!==(K=this.elementAttr.class)&&void 0!==K?K:"").split(" "),...(null!==(Y=J?.class)&&void 0!==Y?Y:"").split(" ")].filter((ee,G,q)=>ee&&q.indexOf(ee)===G).join(" ").trim(),class:""},this._actionsMap))}_getActionConfigs(){return{}}_getActionConfigsFull(){return(0,o.Z)({},this._getActionConfigs(),this._getAdditionalActionConfigs())}getDefaultTemplates(){var K=Object.values(this._templatesInfo),Y={};return K.forEach(J=>{Y[J]="dx-renovation-template-mock"}),Y}get _templatesInfo(){return{}}_optionsWithDefaultTemplates(K){var Y=Object.entries(this._templatesInfo).reduce((J,j)=>{var ee,[G,q]=j;return(0,o.Z)({},J,{[G]:null!==(ee=K[G])&&void 0!==ee?ee:q})},{});return(0,o.Z)({},K,Y)}_init(){super._init(),this.customKeyHandlers={},this._actionsMap={},this._aria={},this._componentTemplates={}}_createDefaultKeyHandlers(){var K={};return this.getSupportedKeyNames().forEach(J=>{K[J]=j=>this.viewRef.keyDown(I.Z.createKeyDownOptions(j))}),K}_addAction(K,Y){var J=Y;if(!J){var j=this._createActionByOption(K,this._getActionConfigsFull()[K]);J=ee=>(Object.keys(ee).forEach(G=>{(0,y.$K)(ee[G])&&a.Z.isNode(ee[G])&&(ee[G]=(0,b.u)((0,h.Z)(ee[G])))}),j(ee))}this._actionsMap[K]=J}_optionChanged(K){var{fullName:Y,name:J,previousValue:j,value:ee}=K;B(this._props,this.option(),J,Y),this._propsInfo.templates.includes(J)&&ee!==j&&(this._componentTemplates[J]=this._createTemplateComponent(ee)),J&&this._getActionConfigsFull()[J]&&this._addAction(J),this._shouldRaiseContentReady=this._shouldRaiseContentReady||this._checkContentReadyOption(Y),super._optionChanged(K),this._invalidate()}_extractDefaultSlot(){return this.option("_hasAnonymousTemplateContent")?d.createElement(T,{template:this._getTemplate(this._templateManager.anonymousTemplateName),transclude:!0,renovated:!0}):null}_createTemplateComponent(K){if(K){var Y=this._getTemplate(K);if(!(0,y.HD)(Y)||"dx-renovation-template-mock"!==Y)return J=>d.createElement(T,{template:Y,model:J})}}_wrapKeyDownHandler(K){return Y=>{var{keyName:J,originalEvent:j,which:ee}=Y,G=this.customKeyHandlers,q=G[J]||G[ee];return void 0===q||q.bind(this)(j,Y)?K?.(j,Y):(j.cancel=!0,j)}}_toPublicElement(K){return(0,b.u)((0,h.Z)(K))}_patchElementParam(K){try{var J=(0,h.Z)(K)?.get(0);return null!=J&&J.nodeType?J:K}catch{return K}}repaint(){this._isNodeReplaced=!1,this._shouldRaiseContentReady=!0,this._removeWidget(),this._refresh()}_supportedKeys(){return(0,o.Z)({},this.defaultKeyHandlers,this.customKeyHandlers)}registerKeyHandler(K,Y){this.customKeyHandlers[K]=Y}setAria(K,Y){this._aria[K]=Y,this._initMarkup()}_getViewComponentDefaultProps(){return this._viewComponent.defaultProps||{}}}return V.IS_RENOVATED_WIDGET=!1,V.IS_RENOVATED_WIDGET=!0,V})()},241:(Rn,he,u)=>{"use strict";u.d(he,{zx:()=>ee,vC:()=>q});var o=u(9943),c=u(4817),I=u(9056),C=u(6084),g=u(3238),a=u(2941),p=u(2722),s=u(114),l=u(3667),d=u(4328),h=u(7981),v=["iconTemplate","position","source"],b={position:"left",source:""},y=Z=>Z&&(Z.defaultProps?X=>(0,I.vs)((0,I.Iz)(2,Z,(0,c.Z)({},X))):Z);let E=(()=>{class Z extends C.Ul{constructor(M){super(M),this.state={}}get sourceType(){return(0,d.P)(this.props.source)}get cssClass(){return"left"!==this.props.position?"dx-icon-right":""}get iconClassName(){var M={"dx-icon":!0,[this.cssClass]:!!this.cssClass},{source:oe}=this.props;return"dxIcon"===this.sourceType?(0,l.G)((0,c.Z)({},M,{["dx-icon-".concat(oe)]:!0})):"fontIcon"===this.sourceType?(0,l.G)((0,c.Z)({},M,{[String(oe)]:!!oe})):"image"===this.sourceType?(0,l.G)(M):"svg"===this.sourceType?(0,l.G)((0,c.Z)({},M,{"dx-svg-icon":!0})):""}get restAttributes(){return(0,o.Z)(this.props,v)}render(){var M=this.props;return(Z=>{var{iconClassName:X,props:{iconTemplate:M,source:oe},sourceType:fe}=Z;return(0,I.xJ)(["dxIcon"===fe&&(0,I.Wm)(1,"i",X),"fontIcon"===fe&&(0,I.Wm)(1,"i",X),"image"===fe&&(0,I.Wm)(1,"img",X,null,1,{alt:"",src:oe}),M&&(0,I.Wm)(1,"i",X,M({}),0)],0)})({props:(0,c.Z)({},M,{iconTemplate:y(M.iconTemplate)}),sourceType:this.sourceType,cssClass:this.cssClass,iconClassName:this.iconClassName,restAttributes:this.restAttributes})}}return Z.defaultProps=b,Z})();var S=u(9644),O=u(4594),w=["config"],k={config:Object.freeze({})};let R=(()=>{class Z extends C.Ul{constructor(M){super(M),this.state={},this.__getterCache={},this.hideWave=this.hideWave.bind(this),this.showWave=this.showWave.bind(this)}get getConfig(){return void 0!==this.__getterCache.getConfig?this.__getterCache.getConfig:this.__getterCache.getConfig=(()=>{var{config:M}=this.props;return(0,O.py)(M)})()}get restAttributes(){return(0,o.Z)(this.props,w)}hideWave(M){(0,O.OM)(this.getConfig,M)}showWave(M){(0,O.bI)(this.getConfig,M)}componentWillUpdate(M,oe,fe){this.props.config!==M.config&&(this.__getterCache.getConfig=void 0)}render(){return(Z=>(0,I.vs)((0,I.Wm)(1,"div","dx-inkripple",null,1,(0,c.Z)({},Z.restAttributes))))({props:(0,c.Z)({},this.props),getConfig:this.getConfig,restAttributes:this.restAttributes})}}return Z.defaultProps=k,Z})();var P=u(2735),B=u(1669),W=u(9009),z=["accessKey","activeStateEnabled","children","className","disabled","focusStateEnabled","height","hint","hoverStateEnabled","icon","iconPosition","iconTemplate","onClick","onKeyDown","onSubmit","pressed","rtlEnabled","stylingMode","tabIndex","template","templateData","text","type","useInkRipple","useSubmitBehavior","visible","width"],V=["outlined","text","contained"],Y=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(B.O),Object.getOwnPropertyDescriptors({activeStateEnabled:!0,hoverStateEnabled:!0,icon:"",iconPosition:"left",stylingMode:"contained",text:"",type:"normal",useInkRipple:!1,useSubmitBehavior:!1,templateData:Object.freeze({})}))),J=(0,g.J3)([{device:()=>"desktop"===a.Z.real().deviceType&&!a.Z.isSimulator(),options:{focusStateEnabled:!0}},{device:()=>(0,p.x2)((0,p.Vk)()),options:{useInkRipple:!0}}]),j=Z=>Z&&(Z.defaultProps?X=>(0,I.vs)((0,I.Iz)(2,Z,(0,c.Z)({},X))):Z);class ee extends C.DZ{constructor(X){super(X),this.state={},this.contentRef=(0,I.Vf)(),this.inkRippleRef=(0,I.Vf)(),this.submitInputRef=(0,I.Vf)(),this.widgetRef=(0,I.Vf)(),this.__getterCache={},this.focus=this.focus.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.submitEffect=this.submitEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.onActive=this.onActive.bind(this),this.onInactive=this.onInactive.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[new C.b0(this.submitEffect,[this.props.onSubmit,this.props.useSubmitBehavior]),new C.b0(this.checkDeprecation,[this.props.type]),(0,C.gt)()]}updateEffects(){var X,M;null===(X=this._effects[0])||void 0===X||X.update([this.props.onSubmit,this.props.useSubmitBehavior]),null===(M=this._effects[1])||void 0===M||M.update([this.props.type])}submitEffect(){var{onSubmit:X,useSubmitBehavior:M}=this.props;if(M&&X)return s.V4.on(this.submitInputRef.current,oe=>X({event:oe,submitInput:this.submitInputRef.current}),{namespace:"UIFeedback"}),()=>s.V4.off(this.submitInputRef.current,{namespace:"UIFeedback"})}checkDeprecation(){var{type:X}=this.props;"back"===X&&S.Z.log("W0016","type","back","22.2","Use the 'back' icon instead")}onActive(X){var{useInkRipple:M}=this.props;M&&this.inkRippleRef.current.showWave({element:this.contentRef.current,event:X})}onInactive(X){var{useInkRipple:M}=this.props;M&&this.inkRippleRef.current.hideWave({element:this.contentRef.current,event:X})}onWidgetClick(X){var{onClick:M,useSubmitBehavior:oe}=this.props;M?.({event:X}),oe&&this.submitInputRef.current.click()}keyDown(X){var{onKeyDown:M}=this.props,{keyName:oe,originalEvent:fe,which:Te}=X,Be=M?.(X);if(null!=Be&&Be.cancel)return Be;("space"===oe||"space"===Te||"enter"===oe||"enter"===Te)&&(fe.preventDefault(),this.onWidgetClick(fe))}get aria(){var{icon:X,text:M}=this.props,oe=(M??"")||W.Z.format((0,h._A)(X,!0))||X;return!M&&X&&"image"===(0,d.P)(X)&&(oe=X.includes("base64")?"Base64":X.replace(/.+\/([^.]+)\..+$/,"$1")),(0,c.Z)({role:"button"},oe?{label:oe}:{})}get cssClasses(){return(Z=>{var{icon:X,iconPosition:M,stylingMode:oe,text:fe,type:Te}=Z,Be=oe&&V.includes(oe),ze={"dx-button":!0,["dx-button-mode-".concat(Be?oe:"contained")]:!0,["dx-button-".concat(Te??"normal")]:!0,"dx-button-has-text":!!fe,"dx-button-has-icon":!!X,"dx-button-icon-right":"left"!==M};return(0,l.G)(ze)})(this.props)}get iconSource(){var{icon:X,type:M}=this.props;return X||"back"===M?(X??"")||"back":""}get inkRippleConfig(){return void 0!==this.__getterCache.inkRippleConfig?this.__getterCache.inkRippleConfig:this.__getterCache.inkRippleConfig=(()=>{var{icon:X,text:M,type:oe}=this.props;return!M&&X||"back"===oe?{isCentered:!0,useHoldAnimation:!1,waveSizeCoefficient:1}:{}})()}get buttonTemplateData(){var{icon:X,templateData:M,text:oe}=this.props;return(0,c.Z)({icon:X,text:oe},M)}get restAttributes(){return(0,o.Z)(this.props,z)}focus(){this.widgetRef.current.focus()}activate(){this.widgetRef.current.activate()}deactivate(){this.widgetRef.current.deactivate()}componentWillUpdate(X,M,oe){super.componentWillUpdate(),(this.props.icon!==X.icon||this.props.text!==X.text||this.props.type!==X.type)&&(this.__getterCache.inkRippleConfig=void 0)}render(){var X=this.props;return(Z=>{var{children:X,iconPosition:M,iconTemplate:oe,template:fe,text:Te}=Z.props,Be=!Z.props.template&&!X&&""!==Te,ze="left"===M,ae=!Z.props.template&&!X&&(Z.iconSource||Z.props.iconTemplate)&&(0,I.Iz)(2,E,{source:Z.iconSource,position:M,iconTemplate:oe});return(0,I.vs)((0,I.Iz)(2,P.$L,(0,c.Z)({accessKey:Z.props.accessKey,activeStateEnabled:Z.props.activeStateEnabled,aria:Z.aria,className:Z.props.className,classes:Z.cssClasses,disabled:Z.props.disabled,focusStateEnabled:Z.props.focusStateEnabled,height:Z.props.height,hint:Z.props.hint,hoverStateEnabled:Z.props.hoverStateEnabled,onActive:Z.onActive,onClick:Z.onWidgetClick,onInactive:Z.onInactive,onKeyDown:Z.keyDown,rtlEnabled:Z.props.rtlEnabled,tabIndex:Z.props.tabIndex,visible:Z.props.visible,width:Z.props.width},Z.restAttributes,{children:(0,I.Wm)(1,"div","dx-button-content",[Z.props.template&&fe({data:Z.buttonTemplateData}),!Z.props.template&&X,ze&&ae,Be&&(0,I.Wm)(1,"span","dx-button-text",Te,0),!ze&&ae,Z.props.useSubmitBehavior&&(0,I.Wm)(64,"input","dx-button-submit-input",null,1,{type:"submit",tabIndex:-1},null,Z.submitInputRef),Z.props.useInkRipple&&(0,I.Iz)(2,R,{config:Z.inkRippleConfig},null,Z.inkRippleRef)],0,null,null,Z.contentRef)}),null,Z.widgetRef))})({props:(0,c.Z)({},X,{template:j(X.template),iconTemplate:j(X.iconTemplate)}),contentRef:this.contentRef,submitInputRef:this.submitInputRef,inkRippleRef:this.inkRippleRef,widgetRef:this.widgetRef,onActive:this.onActive,onInactive:this.onInactive,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,aria:this.aria,cssClasses:this.cssClasses,iconSource:this.iconSource,inkRippleConfig:this.inkRippleConfig,buttonTemplateData:this.buttonTemplateData,restAttributes:this.restAttributes})}}ee.defaultProps=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(Y),Object.getOwnPropertyDescriptors((0,c.Z)({},(0,g.wt)(J)))));var G=[];function q(Z){G.push(Z),ee.defaultProps=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(ee.defaultProps),Object.getOwnPropertyDescriptors((0,g.wt)(J)),Object.getOwnPropertyDescriptors((0,g.wt)(G))))}},1669:(Rn,he,u)=>{"use strict";u.d(he,{O:()=>o});var o={className:"",activeStateEnabled:!1,disabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,tabIndex:0,visible:!0}},4452:(Rn,he,u)=>{"use strict";u.d(he,{Ag:()=>k});var o=u(9943),c=u(4817),I=u(9056),C=u(6084),g=u(903),a=u(1828),p=["dataSource","selectedRowKeys"],s={integrationOptions:!0};function l(R,P,B){return{path:R,value:P,previousValue:B}}function d(R,P,B,W,z,V){if(!s[W]){var U=(0,a.dt)(P),K=(0,a.dt)(B);if(P!==B)if(U!==K)R.push(l(W,B,P));else if("object"===U)if((0,a.PO)(B)){var Y=v(P,B,z,V);R.push(...Y.map(ee=>(0,c.Z)({},ee,{path:"".concat(W,".").concat(ee.path)})))}else R.push(l(W,B,P));else if("array"===U)if(V.some(ee=>z.includes(ee))&&P!==B)R.push(l(W,B,P));else if(P.length!==B.length)R.push(l(W,B,P));else{var j=v(P,B,z,V);[].push.apply(R,j.map(ee=>(0,c.Z)({},ee,{path:"".concat(W).concat(ee.path)})))}else R.push(l(W,B,P))}}var h=R=>(P,B,W,z)=>{var V=[],U=Array.isArray(P)?K=>{d(V,P[K],B[K],"[".concat(K,"]"),"".concat(W,".").concat(K),z)}:K=>{d(V,P[K],B[K],K,"".concat(W,".").concat(K),z)};return R(P).forEach(U),Object.keys(B).filter(K=>!Object.prototype.hasOwnProperty.call(P,K)&&P[K]!==B[K]).forEach(K=>{V.push({path:K,value:B[K],previousValue:P[K]})}),V},v=h(R=>Object.keys(R)),x={key:!0,ref:!0,children:!0,style:!0},b=h(R=>Object.keys(R).filter(P=>!x[P])),E=["valueChange"],S=["componentProps","componentType","templateNames"],O=R=>Object.keys(R).reduce((P,B)=>(void 0!==R[B]&&(P[B]=R[B]),P),{}),T={};let k=(()=>{class R extends C.OS{constructor(B){super(B),this.state={},this.widgetRef=(0,I.Vf)(),this.getInstance=this.getInstance.bind(this),this.setupWidget=this.setupWidget.bind(this),this.updateWidget=this.updateWidget.bind(this)}get config(){return this.context[g.E.id]?this.context[g.E.id]:g.E.defaultValue}createEffects(){return[new C.b0(this.setupWidget,[]),new C.b0(this.updateWidget,[this.props.componentProps,this.config,this.props.templateNames])]}updateEffects(){var B;null===(B=this._effects[1])||void 0===B||B.update([this.props.componentProps,this.config,this.props.templateNames])}setupWidget(){var B=new this.props.componentType(this.widgetRef.current,this.properties);return this.instance=B,()=>{B.dispose(),this.instance=null}}updateWidget(){var B=this.getInstance();if(B){var W=function y(R,P){var B=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;return b(R,P,"",B)}(this.prevProps||{},this.properties);W.length&&(B.beginUpdate(),W.forEach(z=>{var{path:V,value:U}=z;B.option(V,U)}),B.endUpdate()),this.prevProps=this.properties}}get properties(){var B,W=O(this.props.componentProps),{valueChange:z}=W,V=(0,o.Z)(W,E),U=(0,c.Z)({rtlEnabled:!(null===(B=this.config)||void 0===B||!B.rtlEnabled),isRenovated:!0},V);return z&&(U.onValueChanged=Y=>{var{value:J}=Y;return z(J)}),this.props.templateNames.forEach(Y=>{(0,C._V)(Y,U,this)&&(U[Y]=(J,j,ee)=>{(0,C.SM)(this.props.componentProps[Y],{item:J,index:j,container:ee},this)})}),U}get restAttributes(){return(0,o.Z)(this.props,S)}getInstance(){return this.instance}render(){return(R=>{var{props:{componentProps:{className:P}},restAttributes:B,widgetRef:W}=R;return O((0,I.Wm)(1,"div",P,null,1,(0,c.Z)({},B),null,W))})({props:(0,c.Z)({},this.props),widgetRef:this.widgetRef,config:this.config,properties:this.properties,restAttributes:this.restAttributes})}}return R.defaultProps=T,R})()},2735:(Rn,he,u)=>{"use strict";u.d(he,{$L:()=>J,W6:()=>Y});var o=u(9943),c=u(4817),I=u(9056),C=u(6084),p=(u(227),u(5239),u(1828)),s=u(114),l=u(5955),d=u(3667),h=u(5873),v=u(4356),x=u(1669),b=u(903),y=["children","rtlEnabled"],S={};let O=(()=>{class j extends C.Ul{constructor(G){super(G),this.state={},this.__getterCache={}}getChildContext(){return(0,c.Z)({},this.context,{[b.E.id]:this.config||b.E.defaultValue})}get config(){return void 0!==this.__getterCache.config?this.__getterCache.config:this.__getterCache.config=(()=>({rtlEnabled:this.props.rtlEnabled}))()}get restAttributes(){return(0,o.Z)(this.props,y)}componentWillUpdate(G,q,Z){this.props.rtlEnabled!==G.rtlEnabled&&(this.__getterCache.config=void 0)}render(){return(j=>j.props.children)({props:(0,c.Z)({},this.props),config:this.config,restAttributes:this.restAttributes})}}return j.defaultProps=S,j})();var w=u(7572),R=u(3824),P=u(9644),B=u(9897),W=["_feedbackHideTimeout","_feedbackShowTimeout","accessKey","activeStateEnabled","activeStateUnit","addWidgetClass","aria","children","className","classes","cssText","disabled","focusStateEnabled","height","hint","hoverStateEnabled","name","onActive","onClick","onDimensionChanged","onFocusIn","onFocusOut","onHoverEnd","onHoverStart","onInactive","onKeyDown","onRootElementRendered","onVisibilityChange","rootElementRef","rtlEnabled","tabIndex","visible","width"],Y=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(x.O),Object.getOwnPropertyDescriptors({_feedbackHideTimeout:400,_feedbackShowTimeout:30,cssText:"",aria:Object.freeze({}),classes:"",name:"",addWidgetClass:!0})));let J=(()=>{class j extends C.DZ{constructor(G){super(G),this.widgetElementRef=(0,I.Vf)(),this.state={active:!1,focused:!1,hovered:!1},this.setRootElementRef=this.setRootElementRef.bind(this),this.activeEffect=this.activeEffect.bind(this),this.inactiveEffect=this.inactiveEffect.bind(this),this.clickEffect=this.clickEffect.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.activate=this.activate.bind(this),this.deactivate=this.deactivate.bind(this),this.focusInEffect=this.focusInEffect.bind(this),this.focusOutEffect=this.focusOutEffect.bind(this),this.hoverStartEffect=this.hoverStartEffect.bind(this),this.hoverEndEffect=this.hoverEndEffect.bind(this),this.keyboardEffect=this.keyboardEffect.bind(this),this.resizeEffect=this.resizeEffect.bind(this),this.windowResizeEffect=this.windowResizeEffect.bind(this),this.visibilityEffect=this.visibilityEffect.bind(this),this.checkDeprecation=this.checkDeprecation.bind(this),this.applyCssTextEffect=this.applyCssTextEffect.bind(this)}get config(){return this.context[b.E.id]?this.context[b.E.id]:b.E.defaultValue}createEffects(){return[new C.b0(this.setRootElementRef,[]),new C.b0(this.activeEffect,[this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),new C.b0(this.inactiveEffect,[this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),new C.b0(this.clickEffect,[this.props.disabled,this.props.name,this.props.onClick]),new C.b0(this.focusInEffect,[this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),new C.b0(this.focusOutEffect,[this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),new C.b0(this.hoverStartEffect,[this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),new C.b0(this.hoverEndEffect,[this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),new C.b0(this.keyboardEffect,[this.props.focusStateEnabled,this.props.onKeyDown]),new C.b0(this.resizeEffect,[this.props.name,this.props.onDimensionChanged]),new C.b0(this.windowResizeEffect,[this.props.onDimensionChanged]),new C.b0(this.visibilityEffect,[this.props.name,this.props.onVisibilityChange]),new C.b0(this.checkDeprecation,[this.props.height,this.props.width]),new C.b0(this.applyCssTextEffect,[this.props.cssText]),(0,C.gt)()]}updateEffects(){var G,q,Z,X,M,oe,fe,Te,Be,ze,ae,_e,ye;null===(G=this._effects[1])||void 0===G||G.update([this.props._feedbackShowTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.disabled,this.props.onActive]),null===(q=this._effects[2])||void 0===q||q.update([this.props._feedbackHideTimeout,this.props.activeStateEnabled,this.props.activeStateUnit,this.props.onInactive,this.state.active]),null===(Z=this._effects[3])||void 0===Z||Z.update([this.props.disabled,this.props.name,this.props.onClick]),null===(X=this._effects[4])||void 0===X||X.update([this.props.disabled,this.props.focusStateEnabled,this.props.name,this.props.onFocusIn]),null===(M=this._effects[5])||void 0===M||M.update([this.props.focusStateEnabled,this.props.name,this.props.onFocusOut,this.state.focused]),null===(oe=this._effects[6])||void 0===oe||oe.update([this.props.activeStateUnit,this.props.disabled,this.props.hoverStateEnabled,this.props.onHoverStart,this.state.active]),null===(fe=this._effects[7])||void 0===fe||fe.update([this.props.activeStateUnit,this.props.hoverStateEnabled,this.props.onHoverEnd,this.state.hovered]),null===(Te=this._effects[8])||void 0===Te||Te.update([this.props.focusStateEnabled,this.props.onKeyDown]),null===(Be=this._effects[9])||void 0===Be||Be.update([this.props.name,this.props.onDimensionChanged]),null===(ze=this._effects[10])||void 0===ze||ze.update([this.props.onDimensionChanged]),null===(ae=this._effects[11])||void 0===ae||ae.update([this.props.name,this.props.onVisibilityChange]),null===(_e=this._effects[12])||void 0===_e||_e.update([this.props.height,this.props.width]),null===(ye=this._effects[13])||void 0===ye||ye.update([this.props.cssText])}setRootElementRef(){var{onRootElementRendered:G,rootElementRef:q}=this.props;q&&(q.current=this.widgetElementRef.current),G?.(this.widgetElementRef.current)}activeEffect(){var{_feedbackShowTimeout:G,activeStateEnabled:q,activeStateUnit:Z,disabled:X,onActive:M}=this.props;if(q&&!X)return(0,l.gF)(this.widgetElementRef.current,fe=>{this.setState(Te=>({active:!0})),M?.(fe)},{timeout:G,selector:Z},"UIFeedback")}inactiveEffect(){var{_feedbackHideTimeout:G,activeStateEnabled:q,activeStateUnit:Z,onInactive:X}=this.props;if(q)return(0,l.oO)(this.widgetElementRef.current,oe=>{this.state.active&&(this.setState(fe=>({active:!1})),X?.(oe))},{timeout:G,selector:Z},"UIFeedback")}clickEffect(){var{disabled:G,name:q,onClick:Z}=this.props,X=q;if(Z&&!G)return s.wt.on(this.widgetElementRef.current,Z,{namespace:X}),()=>s.wt.off(this.widgetElementRef.current,{namespace:X})}focusInEffect(){var{disabled:G,focusStateEnabled:q,name:Z,onFocusIn:X}=this.props,M="".concat(Z,"Focus");if(q&&!G)return(0,l.Hk)(this.widgetElementRef.current,oe=>{oe.isDefaultPrevented()||(this.setState(fe=>({focused:!0})),X?.(oe))},null,M)}focusOutEffect(){var{focusStateEnabled:G,name:q,onFocusOut:Z}=this.props,X="".concat(q,"Focus");if(G)return(0,l.I3)(this.widgetElementRef.current,M=>{!M.isDefaultPrevented()&&this.state.focused&&(this.setState(oe=>({focused:!1})),Z?.(M))},null,X)}hoverStartEffect(){var{activeStateUnit:G,disabled:q,hoverStateEnabled:Z,onHoverStart:X}=this.props;if(Z&&!q)return(0,l.sp)(this.widgetElementRef.current,oe=>{!this.state.active&&this.setState(fe=>({hovered:!0})),X?.(oe)},{selector:G},"UIFeedback")}hoverEndEffect(){var{activeStateUnit:G,hoverStateEnabled:q,onHoverEnd:Z}=this.props;if(q)return(0,l.y7)(this.widgetElementRef.current,M=>{this.state.hovered&&(this.setState(oe=>({hovered:!1})),Z?.(M))},{selector:G},"UIFeedback")}keyboardEffect(){var{focusStateEnabled:G,onKeyDown:q}=this.props;if(G&&q){var Z=s.dG.on(this.widgetElementRef.current,this.widgetElementRef.current,X=>q(X));return()=>s.dG.off(Z)}}resizeEffect(){var G="".concat(this.props.name,"VisibilityChange"),{onDimensionChanged:q}=this.props;if(q)return s.SI.on(this.widgetElementRef.current,q,{namespace:G}),()=>s.SI.off(this.widgetElementRef.current,{namespace:G})}windowResizeEffect(){var{onDimensionChanged:G}=this.props;if(G)return R.Z.add(G),()=>{R.Z.remove(G)}}visibilityEffect(){var{name:G,onVisibilityChange:q}=this.props,Z="".concat(G,"VisibilityChange");if(q)return s.WD.on(this.widgetElementRef.current,()=>q(!0),()=>q(!1),{namespace:Z}),()=>s.WD.off(this.widgetElementRef.current,{namespace:Z})}checkDeprecation(){var{height:G,width:q}=this.props;(0,p.mf)(q)&&P.Z.log("W0017","width"),(0,p.mf)(G)&&P.Z.log("W0017","height")}applyCssTextEffect(){var{cssText:G}=this.props;""!==G&&(this.widgetElementRef.current.style.cssText=G)}get shouldRenderConfigProvider(){var{rtlEnabled:G}=this.props;return function k(j,ee){var G=(0,p.$K)(j),q=(0,p.$K)((0,w.Z)().rtlEnabled)&&!G&&!(0,p.$K)(ee?.rtlEnabled);return G&&j!==ee?.rtlEnabled||q}(G,this.config)}get rtlEnabled(){var{rtlEnabled:G}=this.props;return function T(j,ee){return void 0!==j?j:void 0!==ee?.rtlEnabled?ee.rtlEnabled:(0,w.Z)().rtlEnabled}(G,this.config)}get attributes(){var{aria:G,disabled:q,focusStateEnabled:Z,visible:X}=this.props,M=Z&&!q&&this.props.accessKey;return(0,c.Z)({},(0,h.l)({},M&&{accessKey:M}),(j=>Object.keys(j).reduce((ee,G)=>j[G]?(0,c.Z)({},ee,{["role"===G||"id"===G?G:"aria-".concat(G)]:String(j[G])}):ee,{}))((0,c.Z)({},G,{disabled:q,hidden:!X})),(0,h.l)({},this.restAttributes))}get styles(){var{height:G,width:q}=this.props,Z=this.restAttributes.style||{},X=(0,v.bh)("width",(0,p.mf)(q)?q():q),M=(0,v.bh)("height",(0,p.mf)(G)?G():G);return(0,c.Z)({},Z,{height:M??Z.height,width:X??Z.width})}get cssClasses(){var{activeStateEnabled:G,addWidgetClass:q,className:Z,classes:X,disabled:M,focusStateEnabled:oe,hoverStateEnabled:fe,onVisibilityChange:Te,visible:Be}=this.props,ze=!!oe&&!M,ae=!!fe&&!M,_e=!!G&&!M,ye={"dx-widget":!!q,[String(X)]:!!X,[String(Z)]:!!Z,"dx-state-disabled":!!M,"dx-state-invisible":!Be,"dx-state-focused":!!this.state.focused&&ze,"dx-state-active":!!this.state.active&&_e,"dx-state-hover":!!this.state.hovered&&ae&&!this.state.active,"dx-rtl":!!this.rtlEnabled,"dx-visibility-change-handler":!!Te};return(0,d.G)(ye)}get tabIndex(){var{disabled:G,focusStateEnabled:q,tabIndex:Z}=this.props;return q&&!G?Z:void 0}get restAttributes(){return(0,o.Z)(this.props,W)}focus(){s.T_.trigger(this.widgetElementRef.current)}blur(){var G=B.Z.getActiveElement(this.widgetElementRef.current);this.widgetElementRef.current===G&&G.blur()}activate(){this.setState(G=>({active:!0}))}deactivate(){this.setState(G=>({active:!1}))}render(){return(j=>{var ee=(0,I.vs)((0,I.Wm)(1,"div",j.cssClasses,j.props.children,0,(0,c.Z)({},j.attributes,{tabIndex:j.tabIndex,title:j.props.hint,style:(0,C.jk)(j.styles)}),null,j.widgetElementRef));return j.shouldRenderConfigProvider?(0,I.Iz)(2,O,{rtlEnabled:j.rtlEnabled,children:ee}):ee})({props:(0,c.Z)({},this.props),active:this.state.active,focused:this.state.focused,hovered:this.state.hovered,widgetElementRef:this.widgetElementRef,config:this.config,shouldRenderConfigProvider:this.shouldRenderConfigProvider,rtlEnabled:this.rtlEnabled,attributes:this.attributes,styles:this.styles,cssClasses:this.cssClasses,tabIndex:this.tabIndex,restAttributes:this.restAttributes})}}return j.defaultProps=Y,j})()},4614:(Rn,he,u)=>{"use strict";u.d(he,{ML:()=>k,nY:()=>w});var o=u(9943),c=u(4817),I=u(9056),C=u(6084),g=u(6492),a=u(2735),p=u(1669),s=u(3667),l=u(8785),d=u(4452),h=["accessKey","activeStateEnabled","boundary","className","contentId","disabled","focusStateEnabled","height","hint","hoverStateEnabled","mode","offset","onClick","onKeyDown","positionSide","rtlEnabled","tabIndex","target","validationErrors","visible","visualContainer","width"],x=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(p.O),Object.getOwnPropertyDescriptors({mode:"auto",positionSide:"top",offset:Object.freeze({h:0,v:0}),isReactComponentWrapper:!0})));let b=(()=>{class W extends C.Ul{constructor(V){super(V),this.state={}}get componentProps(){return this.props}get restAttributes(){return(0,o.Z)(this.props,h)}render(){return(W=>{var{componentProps:z,restAttributes:V}=W;return(0,I.vs)((0,I.Iz)(2,d.Ag,(0,c.Z)({componentType:l.Z,componentProps:z,templateNames:[]},V)))})({props:(0,c.Z)({},this.props),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return W.defaultProps=x,W})();u(3238);var E=["accessKey","activeStateEnabled","aria","children","className","classes","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],w=Object.create(Object.prototype,(0,c.Z)(Object.getOwnPropertyDescriptors(p.O),Object.getOwnPropertyDescriptors({readOnly:!1,name:"",validationError:null,validationErrors:null,validationMessageMode:"auto",validationMessagePosition:"bottom",validationStatus:"valid",isValid:!0,defaultValue:null,valueChange:()=>{}}))),T={get readOnly(){return w.readOnly},get name(){return w.name},get validationError(){return w.validationError},get validationErrors(){return w.validationErrors},get validationMessageMode(){return w.validationMessageMode},get validationMessagePosition(){return w.validationMessagePosition},get validationStatus(){return w.validationStatus},get isValid(){return w.isValid},get defaultValue(){return w.defaultValue},get valueChange(){return w.valueChange},get className(){return w.className},get activeStateEnabled(){return w.activeStateEnabled},get disabled(){return w.disabled},get focusStateEnabled(){return w.focusStateEnabled},get hoverStateEnabled(){return w.hoverStateEnabled},get tabIndex(){return w.tabIndex},get visible(){return w.visible},get aria(){return a.W6.aria},get classes(){return a.W6.classes}};class k extends C.DZ{constructor(z){super(z),this.widgetRef=(0,I.Vf)(),this.rootElementRef=(0,I.Vf)(),this.__getterCache={},this.state={validationMessageGuid:"dx-".concat(new g.Z),isValidationMessageVisible:!1,value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.updateValidationMessageVisibility=this.updateValidationMessageVisibility.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onFocusIn=this.onFocusIn.bind(this)}createEffects(){return[new C.b0(this.updateValidationMessageVisibility,[this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors]),(0,C.gt)()]}updateEffects(){var z;null===(z=this._effects[0])||void 0===z||z.update([this.props.isValid,this.props.validationStatus,this.props.validationError,this.props.validationErrors])}updateValidationMessageVisibility(){this.setState(z=>({isValidationMessageVisible:this.shouldShowValidationMessage}))}onFocusIn(z){var{onFocusIn:V}=this.props;V?.(z)}get cssClasses(){return"".concat((W=>{var{classes:z,isValid:V,readOnly:U}=W,K={"dx-state-readonly":!!U,"dx-invalid":!V,["".concat(z)]:!!z};return(0,s.G)(K)})((0,c.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})))}get shouldShowValidationMessage(){var z,{isValid:V,validationStatus:U}=this.props,K=null!==(z=this.validationErrors)&&void 0!==z?z:[];return!(V&&"invalid"!==U)&&K.length>0}get aria(){var{isValid:z,readOnly:V}=this.props,U={readonly:V?"true":"false",invalid:z?"false":"true"};return this.shouldShowValidationMessage&&(U.describedBy=this.state.validationMessageGuid),(0,c.Z)({},U,this.props.aria)}get validationErrors(){return void 0!==this.__getterCache.validationErrors?this.__getterCache.validationErrors:this.__getterCache.validationErrors=(()=>{var{validationError:z,validationErrors:V}=this.props,U=V&&[...V];return!U&&z&&(U=[(0,c.Z)({},z)]),U})()}get validationMessageTarget(){var z;return null===(z=this.rootElementRef)||void 0===z?void 0:z.current}get restAttributes(){var z=(0,c.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,o.Z)(z,E)}focus(){this.widgetRef.current.focus()}blur(){this.widgetRef.current.blur()}componentWillUpdate(z,V,U){super.componentWillUpdate(),(this.props.validationError!==z.validationError||this.props.validationErrors!==z.validationErrors)&&(this.__getterCache.validationErrors=void 0)}render(){return(W=>{var{aria:z,cssClasses:V,isValidationMessageVisible:U,onFocusIn:K,props:{accessKey:Y,activeStateEnabled:J,children:j,className:ee,disabled:G,focusStateEnabled:q,height:Z,hint:X,hoverStateEnabled:M,onClick:oe,onKeyDown:fe,rtlEnabled:Te,tabIndex:Be,validationMessageMode:ze,validationMessagePosition:ae,visible:_e,width:ye},restAttributes:ne,rootElementRef:ce,validationErrors:le,validationMessageGuid:pe,validationMessageTarget:Se,widgetRef:re}=W;return(0,I.vs)((0,I.Iz)(2,a.$L,(0,c.Z)({rootElementRef:ce,aria:z,classes:V,activeStateEnabled:J,focusStateEnabled:q,hoverStateEnabled:M,accessKey:Y,className:ee,rtlEnabled:Te,hint:X,disabled:G,height:Z,width:ye,onFocusIn:K,onClick:oe,onKeyDown:fe,tabIndex:Be,visible:_e},ne,{children:(0,I.xJ)([j,U&&(0,I.Iz)(2,b,{validationErrors:le,mode:ze,positionSide:ae,rtlEnabled:Te,target:Se,boundary:Se,visualContainer:Se,contentId:pe})],0)}),null,re))})({props:(0,c.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),validationMessageGuid:this.state.validationMessageGuid,isValidationMessageVisible:this.state.isValidationMessageVisible,rootElementRef:this.rootElementRef,widgetRef:this.widgetRef,onFocusIn:this.onFocusIn,cssClasses:this.cssClasses,shouldShowValidationMessage:this.shouldShowValidationMessage,aria:this.aria,validationErrors:this.validationErrors,validationMessageTarget:this.validationMessageTarget,restAttributes:this.restAttributes})}}k.defaultProps=T},3433:(Rn,he,u)=>{"use strict";u.d(he,{Et:()=>c,Xv:()=>I,b$:()=>C,hj:()=>a});var c="vertical",I="horizontal",C="both",a="dx-scrollable-content"},7616:(Rn,he,u)=>{"use strict";function o(c,I){for(var C={left:0,top:0},g=I;null!==(a=g)&&void 0!==a&&a.offsetParent&&!g.classList.contains(c);){var a,p=g.offsetParent,s=g.getBoundingClientRect(),l=p.getBoundingClientRect();C.left+=s.left-l.left,C.top+=s.top-l.top,g=g.offsetParent}return C}u.d(he,{d:()=>o})},4609:(Rn,he,u)=>{"use strict";u.d(he,{I:()=>c});var o=u(3433);class c{constructor(C){this.DIRECTION_HORIZONTAL="horizontal",this.DIRECTION_VERTICAL="vertical",this.DIRECTION_BOTH="both",this.direction=C??o.Et}get isHorizontal(){return this.direction===o.Xv||this.direction===o.b$}get isVertical(){return this.direction===o.Et||this.direction===o.b$}get isBoth(){return this.direction===o.b$}}},3667:(Rn,he,u)=>{"use strict";function o(c){return Object.keys(c).filter(I=>c[I]).join(" ")}u.d(he,{G:()=>o})},4570:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});var o=u(4514);function c(I){var C,g=(0,o.Jj)();return I?null===(C=g.getComputedStyle)||void 0===C?void 0:C.call(g,I):null}},5955:(Rn,he,u)=>{"use strict";u.d(he,{G3:()=>y,Hk:()=>W,I3:()=>z,OZ:()=>p,gF:()=>k,oO:()=>R,sp:()=>P,y7:()=>B});var o=u(913),c=u(227),I=u(8225),C=u(7772),g=u(8690);function a(V){return(U,K,Y,J)=>{var j=J?(0,I.V4)(V,J):V;if(K)return o.Z.on(U,j,Y,K),()=>{o.Z.off(U,j,K)}}}var p=a(c.u),y=(a(C.Z.scroll),a(C.Z.init),a(C.Z.start),a(C.Z.move),a(C.Z.end),a(C.Z.stop),a(C.Z.cancel),a(g.Z.down)),k=(a(g.Z.up),a(g.Z.move),a("mouseenter"),a("mouseleave"),a("keydown"),a("dxactive")),R=a("dxinactive"),P=a("dxhoverstart"),B=a("dxhoverend"),W=a("focusin"),z=a("focusout")},8093:(Rn,he,u)=>{"use strict";function o(c){return c?Number(c.replace("px","")):0}u.d(he,{H:()=>o})},6530:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>B});var o=u(9904),c=u(4514),I=u(7674),C=u(9009),g=u(8506),a=u(5873),p=u(219),s=u(7307),l=u(8531),d=u(4567),h=u(4823),v=u(4270),x=(0,c.Jj)(),R="outlined",P=s.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:C.Z.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new h.c(function(W,z){var V=new p.Z((0,o.Z)("<div>"),(0,a.l)({onClick:z&&z.click,stylingMode:z&&z.stylingMode||R},z));W.append(V.$element())},["disabled","icon","text","type","onClick","click","stylingMode"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:I.ZT,_renderDimensions:I.ZT,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=(0,o.Z)("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=(0,o.Z)("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(W){this._popup&&this._popup.option(W,this.option(W))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup.$wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(W){this._popup=W.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!x.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,d.Z,(0,a.l)(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup.$wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,l.Z,(0,a.l)(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:x},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:x}},to:{position:{my:"bottom",at:"bottom",of:x}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:x}},to:{position:{my:"top",at:"bottom",of:x}}}}})),this._popup.$wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var W=this._createActionByOption("onCancelClick")||I.ZT,z=this;this._$cancelButton=(0,o.Z)("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,p.Z,{disabled:!1,stylingMode:R,text:this.option("cancelText"),onClick:function(V){var U={event:V,cancel:!1};W(U),U.cancel||z.hide()},integrationOptions:{}})}},_attachItemClickEvent:I.ZT,_itemClickHandler:function(W){this.callBase(W),(0,o.Z)(W.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(W){this.callBase(W),(0,o.Z)(W.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(W){switch(W.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(W.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(W)}},toggle:function(W){var z=this,V=new v.BH;return z._popup.toggle(W).done(function(){z.option("visible",W),V.resolveWith(z)}),V.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});(0,g.Z)("dxActionSheet",P);const B=P},6026:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>W});var o=u(9904),c=u(8506),I=u(5873),C=u(4514),g=u(7981),a=u(1828),p=u(4356),s=u(2718),l=u(8646),d=u(7307),b="dxBoxItemData",E={row:"minWidth",col:"minHeight"},S={row:"maxWidth",col:"maxHeight"},O={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},w={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},T={row:"row",col:"column"},k=(z,V,U)=>{if(U=(0,p.bh)(V,U),z.style[(0,p.Hj)(V)]=U,!(0,C.Ym)()){if(""===U||!(0,a.$K)(U))return;var Y=(0,g.H0)(V)+": "+U+";";z.attributes.style?z.attributes.style.value.indexOf(Y)<0&&(z.attributes.style.value+=" "+Y):z.setAttribute("style",Y)}};class R extends l.Z{_renderVisible(V,U){super._renderVisible(V),(0,a.$K)(U)&&this._options.fireItemStateChangedAction({name:"visible",state:V,oldState:U})}}class P{constructor(V,U){this._$element=V,this._option=U}renderBox(){this._$element.css({display:(0,p.gC)("flexDirection")+"flex"}),k(this._$element.get(0),"flexDirection",T[this._option("direction")])}renderAlign(){this._$element.css({justifyContent:this._normalizedAlign()})}_normalizedAlign(){var V=this._option("align");return V in O?O[V]:V}renderCrossAlign(){this._$element.css({alignItems:this._normalizedCrossAlign()})}_normalizedCrossAlign(){var V=this._option("crossAlign");return V in w?w[V]:V}renderItems(V){var U=(0,p.gC)("flexDirection"),K=this._option("direction");(0,s.S6)(V,function(){var Y=(0,o.Z)(this),J=Y.data(b);Y.css({display:U+"flex"}).css(S[K],J.maxSize||"none").css(E[K],J.minSize||"0"),k(Y.get(0),"flexBasis",J.baseSize||0),k(Y.get(0),"flexGrow",J.ratio),k(Y.get(0),"flexShrink",(0,a.$K)(J.shrink)?J.shrink:1),Y.children().each((j,ee)=>{(0,o.Z)(ee).css({width:"auto",height:"auto",display:(0,p.gC)("flexDirection")+"flex",flexBasis:0}),k(ee,"flexGrow",1),k(ee,"flexDirection",(0,o.Z)(ee)[0].style.flexDirection||"column")})})}}let B=(()=>{class z extends d.Z{_getDefaultOptions(){return(0,I.l)(super._getDefaultOptions(),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_queue:void 0})}_itemClass(){return"dx-box-item"}_itemDataKey(){return b}_itemElements(){return this._itemContainer().children(this._itemSelector())}_init(){super._init(),this.$element().addClass("dx-box-flex"),this._initLayout(),this._initBoxQueue()}_initLayout(){this._layout=new P(this.$element(),this.option.bind(this))}_initBoxQueue(){this._queue=this.option("_queue")||[]}_queueIsNotEmpty(){return!this.option("_queue")&&!!this._queue.length}_pushItemToQueue(U,K){this._queue.push({$item:U,config:K})}_shiftItemFromQueue(){return this._queue.shift()}_initMarkup(){this.$element().addClass("dx-box"),this._layout.renderBox(),super._initMarkup(),this._renderAlign(),this._renderActions()}_renderActions(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}_renderAlign(){this._layout.renderAlign(),this._layout.renderCrossAlign()}_renderItems(U){for(super._renderItems(U);this._queueIsNotEmpty();){var K=this._shiftItemFromQueue();this._createComponent(K.$item,z,(0,I.l)({itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},K.config))}this._layout.renderItems(this._itemElements())}_renderItemContent(U){var K=U.itemData&&U.itemData.node;return K?this._renderItemContentByNode(U,K):super._renderItemContent(U)}_postprocessRenderItem(U){var K=U.itemData.box;K&&this._pushItemToQueue(U.itemContent,K)}_createItemByTemplate(U,K){return K.itemData.box?U.source?U.source():(0,o.Z)():super._createItemByTemplate(U,K)}_itemOptionChanged(U,K,Y,J){"visible"===K&&this._onItemStateChanged({name:K,state:Y,oldState:!1!==J}),super._itemOptionChanged(U,K,Y)}_optionChanged(U){switch(U.name){case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:super._optionChanged(U)}}_itemOptions(){var U=super._itemOptions();return U.fireItemStateChangedAction=K=>{this._onItemStateChanged(K)},U}}return z.ItemClass=R,z})();(0,c.Z)("dxBox",B);const W=B},219:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>l});var o=u(8506),c=u(4817),I=u(3191),C=u(4691),g=u(4328);class a extends C.Z{get _validationGroupConfig(){return I.Z.getGroupConfig(this._findGroup())}getDefaultTemplateNames(){return["content"]}getSupportedKeyNames(){return["space","enter"]}getProps(){var h=super.getProps();return h.onClick=x=>{var{event:b}=x;this._clickAction({event:b,validationGroup:this._validationGroupConfig})},"svg"===(0,g.P)(h.icon)&&(h.iconTemplate=this._createTemplateComponent(()=>h.icon)),h}get _templatesInfo(){return{template:"content"}}_toggleActiveState(h,v){var x=this.viewRef;v?x.activate():x.deactivate()}_getSubmitAction(){var h=!0,v="valid";return this._createAction(x=>{var{event:b,submitInput:y}=x;if(h){var E=this._validationGroupConfig;if(void 0!==E&&""!==E){var S=E.validate();v=S.status,"pending"===S.status&&(h=!1,this.option("disabled",!0),S.complete.then(O=>{var{status:w}=O;this.option("disabled",!1),"valid"===(v=w)&&y.click(),h=!0}))}}"valid"!==v&&b.preventDefault(),b.stopPropagation()})}_initializeComponent(){super._initializeComponent(),this._addAction("onSubmit",this._getSubmitAction()),this._clickAction=this._createClickAction()}_initMarkup(){super._initMarkup();var h=this.$element().find(".dx-button-content"),v=h.children().filter(".dx-template-wrapper"),x=h.children().filter(".dx-button-submit-input");v.length&&(v.addClass("dx-button-content"),v.append(x),h.replaceWith(v))}_patchOptionValues(h){return super._patchOptionValues((0,c.Z)({},h,{templateData:h._templateData}))}_findGroup(){var h=this.$element(),v=this.option("validationGroup");return void 0!==v&&""!==v?v:I.Z.findGroup(h,this._modelByElement(h))}_createClickAction(){return this._createActionByOption("onClick",{excludeValidators:["readOnly"]})}_optionChanged(h){"onClick"===h.name&&(this._clickAction=this._createClickAction()),super._optionChanged(h)}}var p=u(241);class s extends a{getProps(){var h=super.getProps();return h.onKeyDown=this._wrapKeyDownHandler(h.onKeyDown),h}focus(){var h;return null===(h=this.viewRef)||void 0===h?void 0:h.focus(...arguments)}activate(){var h;return null===(h=this.viewRef)||void 0===h?void 0:h.activate(...arguments)}deactivate(){var h;return null===(h=this.viewRef)||void 0===h?void 0:h.deactivate(...arguments)}_getActionConfigs(){return{onClick:{excludeValidators:["readOnly"]},onSubmit:{}}}get _propsInfo(){return{twoWay:[],allowNull:[],elements:["onSubmit"],templates:["template","iconTemplate"],props:["activeStateEnabled","hoverStateEnabled","icon","iconPosition","onClick","onSubmit","pressed","stylingMode","template","iconTemplate","text","type","useInkRipple","useSubmitBehavior","templateData","className","accessKey","disabled","focusStateEnabled","height","hint","onKeyDown","rtlEnabled","tabIndex","visible","width"]}}get _viewComponent(){return p.zx}}(0,o.Z)("dxButton",s),s.defaultOptions=p.vC;const l=s},970:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o=u(9904),c=u(6853),I=u(219),C=u(7307),g=u(8506),a=u(5873),p=u(1828),s=u(4823),l="dx-buttongroup",d=l+"-wrapper",h=l+"-item",v=l+"-first-item",x=l+"-last-item",b=h+"-has-width",E=C.Z.inherit({_initTemplates(){this.callBase(),this._templateManager.addDefaultTemplates({item:new s.c((w,T,k)=>{this._prepareItemStyles(w);var R=this.option("buttonTemplate");this._createComponent(w,I.Z,(0,a.l)({},k,T,this._getBasicButtonOptions(),{_templateData:this._hasCustomTemplate(R)?k:{},template:k.template||R}))},["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{itemTemplateProperty:null})},_hasCustomTemplate(w){return(0,p.mf)(w)||this.option("integrationOptions.templates")[w]},_prepareItemStyles(w){var T=w.data("dxItemIndex");0===T&&w.addClass(v);var k=this.option("items");k&&T===k.length-1&&w.addClass(x),w.addClass("dx-shape-standard")},_renderItemContent(w){return w.container=(0,o.Z)(w.container).parent(),this.callBase(w)},_renderItemContentByNode:function(w,T){return w.container=(0,o.Z)(w.container.children().first()),this.callBase(w,T)},_focusTarget(){return this.$element().parent()},_keyboardEventBindingTarget(){return this._focusTarget()},_refreshContent(){this._prepareContent(),this._renderContent()},_itemClass:()=>h,_itemSelectHandler:function(w){"single"===this.option("selectionMode")&&this.isItemSelected(w.currentTarget)||this.callBase(w)}}),S=c.Z.inherit({_getDefaultOptions(){return(0,a.l)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_init(){this.callBase(),this._createItemClickAction()},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup(){this.setAria("role","group"),this.$element().addClass(l),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(w,T){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:w,removedItems:T})},_renderButtons(){var w=(0,o.Z)("<div>").addClass(d).appendTo(this.$element()),T=this.option("selectedItems"),k={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:R=>{var P=this.option("width");(0,p.$K)(P)&&(0,o.Z)(R.itemElement).addClass(b)},onSelectionChanged:R=>{this._syncSelectionOptions(),this._fireSelectionChangeEvent(R.addedItems,R.removedItems)},onItemClick:R=>{this._itemClickAction(R)}};(0,p.$K)(T)&&T.length&&(k.selectedItems=T),this._buttonsCollection=this._createComponent(w,E,k)},_syncSelectionOptions(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged(w){switch(w.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(w.name,w.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(w),this._buttonsCollection.itemElements().toggleClass(b,!!w.value);break;default:this.callBase(w)}}});(0,g.Z)("dxButtonGroup",S);const O=S},3180:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>gn});var o=u(1805),c=u(9904),I=u(6492),C=u(8506),g=u(7674),a=u(1828),p=u(3487),s=u(5873),l=u(219),d=u(1031),h=u(4969),v=u(6853);const k=v.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var ut=this,Ve=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent((0,c.Z)("<a>"),l.Z,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(lt){ut._clickAction({direction:-Ve,event:lt})},integrationOptions:{}});var St=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent((0,c.Z)("<a>"),l.Z,{focusStateEnabled:!1,icon:"chevronright",onClick:function(lt){ut._clickAction({direction:Ve,event:lt})},integrationOptions:{}});var Xe=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent((0,c.Z)("<a>").addClass("dx-calendar-caption-button"),l.Z,{focusStateEnabled:!1,onClick:function(lt){ut._captionClickAction({event:lt})},integrationOptions:{}});var Vt=this._caption.$element();this.$element().append(St,Vt,Xe)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(ut,Ve){var Xe=this["_"+ut+"Button"];Xe&&(Xe.option("disabled",Ve),Xe.$element().toggleClass("dx-calendar-disabled-navigator-link",Ve))},_optionChanged:function(ut){"text"===ut.name?this._renderCaption():this.callBase(ut)}});var R=u(9897),P=u(913),B=u(5610),W=u(6881),z=u(8204),V=u(8492),U=u(9009),K=u(8225),Y=u(227),{abstract:J}=v.Z,q="dx-calendar-empty-cell",X="dx-calendar-selected-date",M="dx-calendar-contoured-date",oe=(0,K.V4)(Y.u,"dxCalendar"),fe="dxDateValueKey";const Be=v.Z.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0,_todayDate:()=>new Date})},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=(0,c.Z)("<table>"),this.setAria({label:U.Z.format("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,c.Z)("<tbody>").appendTo(this._$table);for(var ut={cellDate:this._getFirstCellData(),prevCellDate:null},Ve=0,St=this.option("rowCount");Ve<St;Ve++){ut.row=this._createRow();for(var Xe=0,Vt=this.option("colCount");Xe<Vt;Xe++)this._renderCell(ut,Xe);this._renderWeekNumberCell(ut)}},_createRow:function(){var ut=R.Z.createElement("tr");return this.setAria("role","row",(0,c.Z)(ut)),this.$body.get(0).appendChild(ut),ut},_appendCell:function(ut,Ve){this._appendMethodName||this._cacheAppendMethodName(),(0,c.Z)(ut)[this._appendMethodName](Ve)},_cacheAppendMethodName:function(ut){this._appendMethodName=ut??this.option("rtlEnabled")?"prepend":"append"},_createCell:function(ut){var Ve=R.Z.createElement("td"),St=(0,c.Z)(Ve);return Ve.className=this._getClassNameByDate(ut),Ve.setAttribute("data-value",V.Z.serializeDate(ut,z.Z.getShortDateFormat())),(0,B.aT)(Ve,fe,ut),this.setAria({role:"gridcell",label:this.getCellAriaLabel(ut)},St),{cell:Ve,$cell:St}},_renderCell:function(ut,Ve){var{cellDate:St,prevCellDate:Xe,row:Vt}=ut;Xe&&z.Z.fixTimezoneGap(Xe,St),ut.prevCellDate=St;var{cell:lt,$cell:dt}=this._createCell(St),vt=this.option("cellTemplate");this._appendCell(Vt,lt),vt?vt.render(this._prepareCellTemplateData(St,Ve,dt)):lt.innerHTML=this._getCellText(St),ut.cellDate=this._getNextCellData(St)},_getClassNameByDate:function(ut){var Ve="dx-calendar-cell";return this._isTodayCell(ut)&&(Ve+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(ut)||this.isDateDisabled(ut))&&(Ve+=" ".concat(q)),this._isOtherView(ut)&&(Ve+=" ".concat("dx-calendar-other-view")),Ve},_prepareCellTemplateData:function(ut,Ve,St){var Xe=ut instanceof Date;return{model:{text:Xe?this._getCellText(ut):ut,date:Xe?ut:void 0,view:this._getViewName()},container:(0,W.u)(St),index:Ve}},_renderEvents:function(){this._createCellClickAction(),P.Z.off(this._$table,oe),P.Z.on(this._$table,oe,"td:not(.".concat("dx-calendar-week-number-cell",")"),ut=>{(0,c.Z)(ut.currentTarget).hasClass(q)||this._cellClickAction({event:ut,value:(0,c.Z)(ut.currentTarget).data(fe)})})},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var ut=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(ut)?this._getDefaultDisabledDatesHandler(ut):ut||g.ZT},_getDefaultDisabledDatesHandler:function(ut){return g.ZT},_isTodayCell:J,_isDateOutOfRange:J,isDateDisabled:function(ut){var Ve={date:ut,view:this._getViewName()};return this._disabledDatesHandler(Ve)},_isOtherView:J,_getCellText:J,_getFirstCellData:J,_getNextCellData:J,_renderContouredDate:function(ut){if(this.option("focusStateEnabled")){ut=ut||this.option("contouredDate");var Ve=this._getContouredCell(),St=this._getCellByDate(ut);Ve.removeClass(M),St.addClass(M)}},_getContouredCell:function(){return this._$table.find(".".concat(M))},_changeValue:function(ut){if(ut){var Ve=this.option("value"),St=Ve?new Date(Ve):new Date;St.setDate(ut.getDate()),St.setMonth(ut.getMonth()),St.setFullYear(ut.getFullYear()),St.setDate(ut.getDate()),this.option("value",St)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var ut=this.option("value"),Ve=this._getCellByDate(ut);this._selectedCell&&this._selectedCell.removeClass(X),Ve.addClass(X),this._selectedCell=Ve}},getCellAriaLabel:function(ut){return this._getCellText(ut)},_getFirstAvailableDate:function(){var ut=this.option("date"),Ve=this.option("min");return ut=z.Z.getFirstDateView(this._getViewName(),ut),new Date(Ve&&ut<Ve?Ve:ut)},_getCellByDate:J,isBoundary:J,_optionChanged:function(ut){var{name:Ve,value:St}=ut;switch(Ve){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(St);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(St),this.callBase(ut);break;case"_todayDate":this._renderBody();break;default:this.callBase(ut)}}});var ze=u(8119);const ce={month:Be.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{firstDayOfWeek:0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:g.ZT,getCellAriaLabel:function(ut){return ze.Z.format(ut,"longdate")},_renderHeader:function(){var ut=(0,c.Z)("<tr>"),Ve=(0,c.Z)("<thead>").append(ut);this._$table.prepend(Ve);for(var St=0,Xe=this.option("colCount");St<Xe;St++)this._renderHeaderCell(St,ut);this.option("showWeekNumbers")&&this._renderWeekHeaderCell(ut)},_renderHeaderCell:function(ut,Ve){var{firstDayOfWeek:St}=this.option(),{full:Xe,abbreviated:Vt}=this._getDayCaption(St+ut),lt=(0,c.Z)("<th>").attr({scope:"col",abbr:Xe}).text(Vt);this._appendCell(Ve,lt)},_renderWeekHeaderCell:function(ut){var Ve=(0,c.Z)("<th>").attr({scope:"col",abbr:"WeekNumber",class:"dx-week-number-header"}).text("#");this.option("rtlEnabled")?ut.append(Ve):ut.prepend(Ve)},_renderWeekNumberCell:function(ut){var{showWeekNumbers:Ve,rtlEnabled:St,cellTemplate:Xe}=this.option();if(Ve){var Vt=this._getWeekNumber(ut.prevCellDate),lt=R.Z.createElement("td"),dt=(0,c.Z)(lt);lt.className="dx-calendar-week-number-cell",Xe?Xe.render(this._prepareCellTemplateData(Vt,-1,dt)):lt.innerHTML=Vt,St?ut.row.append(lt):ut.row.prepend(lt),this.setAria({role:"gridcell",label:"Week ".concat(Vt)},dt)}},_getWeekNumber:function(ut){var{weekNumberRule:Ve,firstDayOfWeek:St}=this.option();return z.Z.getWeekNumber(ut,St,"auto"===Ve?1===St?"firstFourDays":"firstDay":Ve)},getNavigatorCaption:function(){return ze.Z.format(this.option("date"),"monthandyear")},_isTodayCell:function(ut){var Ve=this.option("_todayDate")();return z.Z.sameDate(ut,Ve)},_isDateOutOfRange:function(ut){var Ve=this.option("min"),St=this.option("max");return!z.Z.dateInRange(ut,Ve,St,"date")},_isOtherView:function(ut){return ut.getMonth()!==this.option("date").getMonth()},_getCellText:function(ut){return ze.Z.format(ut,"d")},_getDayCaption:function(ut){var St=ut%this.option("colCount");return{full:ze.Z.getDayNames()[St],abbreviated:ze.Z.getDayNames("abbreviated")[St]}},_getFirstCellData:function(){var{firstDayOfWeek:ut}=this.option(),Ve=z.Z.getFirstMonthDate(this.option("date")),St=ut-Ve.getDay(),Xe=this.option("colCount");return St>=0&&(St-=Xe),Ve.setDate(Ve.getDate()+St),Ve},_getNextCellData:function(ut){return(ut=new Date(ut)).setDate(ut.getDate()+1),ut},_getCellByDate:function(ut){return this._$table.find("td[data-value='".concat(V.Z.serializeDate(ut,z.Z.getShortDateFormat()),"']"))},isBoundary:function(ut){return z.Z.sameMonthAndYear(ut,this.option("min"))||z.Z.sameMonthAndYear(ut,this.option("max"))},_getDefaultDisabledDatesHandler:function(ut){return function(Ve){if(ut.some(function(Xe){return z.Z.sameDate(Xe,Ve.date)}))return!0}}}),year:Be.inherit({_getViewName:function(){return"year"},_isTodayCell:function(ut){var Ve=this.option("_todayDate")();return z.Z.sameMonthAndYear(ut,Ve)},_isDateOutOfRange:function(ut){return!z.Z.dateInRange(ut,z.Z.getFirstMonthDate(this.option("min")),z.Z.getLastMonthDate(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(ut){return ze.Z.getMonthNames("abbreviated")[ut.getMonth()]},_getFirstCellData:function(){var ut=this.option("date"),Ve=new Date(ut);return Ve.setDate(1),Ve.setMonth(0),Ve},_getNextCellData:function(ut){return(ut=new Date(ut)).setMonth(ut.getMonth()+1),ut},_getCellByDate:function(ut){var Ve=new Date(ut);return Ve.setDate(1),this._$table.find("td[data-value='".concat(V.Z.serializeDate(Ve,z.Z.getShortDateFormat()),"']"))},getCellAriaLabel:function(ut){return ze.Z.format(ut,"monthandyear")},getNavigatorCaption:function(){return ze.Z.format(this.option("date"),"yyyy")},isBoundary:function(ut){return z.Z.sameYear(ut,this.option("min"))||z.Z.sameYear(ut,this.option("max"))},_renderWeekNumberCell:g.ZT}),decade:Be.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(ut){var Ve=this.option("_todayDate")();return z.Z.sameYear(ut,Ve)},_isDateOutOfRange:function(ut){var Ve=this.option("min"),St=this.option("max");return!z.Z.dateInRange(ut.getFullYear(),Ve&&Ve.getFullYear(),St&&St.getFullYear())},_isOtherView:function(ut){var Ve=new Date(ut);return Ve.setMonth(1),!z.Z.sameDecade(Ve,this.option("date"))},_getCellText:function(ut){return ze.Z.format(ut,"yyyy")},_getFirstCellData:function(){var ut=z.Z.getFirstYearInDecade(this.option("date"))-1;return z.Z.createDateWithFullYear(ut,0,1)},_getNextCellData:function(ut){return(ut=new Date(ut)).setFullYear(ut.getFullYear()+1),ut},getNavigatorCaption:function(){var ut=this.option("date"),Ve=z.Z.getFirstYearInDecade(ut),St=new Date(ut),Xe=new Date(ut);return St.setFullYear(Ve),Xe.setFullYear(Ve+9),ze.Z.format(St,"yyyy")+"-"+ze.Z.format(Xe,"yyyy")},_isValueOnCurrentView:function(ut,Ve){return z.Z.sameDecade(ut,Ve)},_getCellByDate:function(ut){var Ve=new Date(ut);return Ve.setDate(1),Ve.setMonth(0),this._$table.find("td[data-value='".concat(V.Z.serializeDate(Ve,z.Z.getShortDateFormat()),"']"))},isBoundary:function(ut){return z.Z.sameDecade(ut,this.option("min"))||z.Z.sameDecade(ut,this.option("max"))},_renderWeekNumberCell:g.ZT}),century:Be.inherit({_getViewName:function(){return"century"},_isTodayCell:function(ut){var Ve=this.option("_todayDate")();return z.Z.sameDecade(ut,Ve)},_isDateOutOfRange:function(ut){var Ve=z.Z.getFirstYearInDecade(ut),St=z.Z.getFirstYearInDecade(this.option("min")),Xe=z.Z.getFirstYearInDecade(this.option("max"));return!z.Z.dateInRange(Ve,St,Xe)},_isOtherView:function(ut){var Ve=new Date(ut);return Ve.setMonth(1),!z.Z.sameCentury(Ve,this.option("date"))},_getCellText:function(ut){var Ve=ze.Z.format(ut,"yyyy"),St=new Date(ut);return St.setFullYear(St.getFullYear()+9),Ve+" - "+ze.Z.format(St,"yyyy")},_getFirstCellData:function(){var ut=z.Z.getFirstDecadeInCentury(this.option("date"))-10;return z.Z.createDateWithFullYear(ut,0,1)},_getNextCellData:function(ut){return(ut=new Date(ut)).setFullYear(ut.getFullYear()+10),ut},_getCellByDate:function(ut){var Ve=new Date(ut);return Ve.setDate(1),Ve.setMonth(0),Ve.setFullYear(z.Z.getFirstYearInDecade(Ve)),this._$table.find("td[data-value='".concat(V.Z.serializeDate(Ve,z.Z.getShortDateFormat()),"']"))},getNavigatorCaption:function(){var ut=this.option("date"),Ve=z.Z.getFirstDecadeInCentury(ut),St=new Date(ut),Xe=new Date(ut);return St.setFullYear(Ve),Xe.setFullYear(Ve+99),ze.Z.format(St,"yyyy")+"-"+ze.Z.format(Xe,"yyyy")},isBoundary:function(ut){return z.Z.sameCentury(ut,this.option("min"))||z.Z.sameCentury(ut,this.option("max"))},_renderWeekNumberCell:g.ZT})};var le=u(6961),pe=u(2941),Se=u(3553),re=u(4514),te=u(6868),Le="dx-calendar-view",De={month:3,year:2,decade:1,century:0},yt=d.Z.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:"month",maxZoomLevel:"month",minZoomLevel:"century",showTodayButton:!1,showWeekNumbers:!1,weekNumberRule:"auto",cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,skipFocusCheck:!1,_todayDate:()=>new Date})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===pe.Z.real().deviceType&&!pe.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,s.l)(this.callBase(),{rightArrow:function(ut){ut.preventDefault(),(0,K.j1)(ut)?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(ut){ut.preventDefault(),(0,K.j1)(ut)?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(ut){if(ut.preventDefault(),(0,K.j1)(ut))this._navigateUp();else{if(Se.Z.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(ut){if(ut.preventDefault(),(0,K.j1)(ut))this._navigateDown();else{if(Se.Z.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(ut){ut.preventDefault();var Ve=this.option("zoomLevel"),St=this.option("currentDate"),Xe=this._dateOption("min");if(!this._view.isDateDisabled(St)){var Vt=z.Z.sameView(Ve,St,Xe)?Xe:z.Z.getViewFirstCellDate(Ve,St);this._moveToClosestAvailableDate(Vt)}},end:function(ut){ut.preventDefault();var Ve=this.option("zoomLevel"),St=this.option("currentDate"),Xe=this._dateOption("max");if(!this._view.isDateDisabled(St)){var Vt=z.Z.sameView(Ve,St,Xe)?Xe:z.Z.getViewLastCellDate(Ve,St);this._moveToClosestAvailableDate(Vt)}},pageUp:function(ut){ut.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(ut){ut.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:g.ZT,enter:function(ut){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var Ve=this._updateTimeComponent(this.option("currentDate"));this._dateValue(Ve,ut)}}else this._navigateDown()}})},_getSerializationFormat:function(ut){var Ve=this.option(ut||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):(0,a.kE)(Ve)?"number":(0,a.HD)(Ve)?V.Z.getDateSerializationFormat(Ve):void 0},_convertToDate:function(ut,Ve){return V.Z.deserializeDate(ut)},_dateValue:function(ut,Ve){if(Ve){if("keydown"===Ve.type){var St=this._view._getContouredCell().get(0);Ve.target=St}this._saveValueChangeEvent(Ve)}this._dateOption("value",ut)},_dateOption:function(ut,Ve){if(1===arguments.length)return this._convertToDate(this.option(ut),ut);var St=this._getSerializationFormat(ut);this.option(ut,V.Z.serializeDate(Ve,St))},_shiftDate:function(ut,Ve,St,Xe){switch(ut){case"month":Ve.setDate(Ve.getDate()+St*Xe);break;case"year":Ve.setMonth(Ve.getMonth()+St*Xe);break;case"decade":Ve.setFullYear(Ve.getFullYear()+St*Xe);break;case"century":Ve.setFullYear(Ve.getFullYear()+10*St*Xe)}},_moveCurrentDateByOffset:function(ut){var Ve=this.option("currentDate"),St=new Date(Ve),Xe=this.option("zoomLevel");this._shiftDate(Xe,St,ut,1);for(var Vt=this._getMaxDate(),lt=this._getMinDate(),dt=this._areDatesInNeighborView(Xe,St,Ve),vt=(0,p.Z2)(St,lt,Vt)&&dt,Lt=new Date(St);vt;){if(!this._view.isDateDisabled(Lt)){St=Lt;break}this._shiftDate(Xe,Lt,ut,1),dt=this._areDatesInNeighborView(Xe,Lt,Ve),vt=(0,p.Z2)(Lt,lt,Vt)&&dt}this._view.isDateDisabled(Ve)||this._view.isDateDisabled(St)?this._waitRenderView(ut>0?1:-1):this.option("currentDate",St)},_areDatesInSameView(ut,Ve,St){switch(ut){case"month":return Ve.getMonth()===St.getMonth();case"year":return Ve.getYear()===St.getYear();case"decade":return parseInt(Ve.getYear()/10)===parseInt(St.getYear()/10);case"century":return parseInt(Ve.getYear()/100)===parseInt(St.getYear()/100)}},_areDatesInNeighborView(ut,Ve,St){switch(ut){case"month":return Xe=Ve.getMonth(),Vt=St.getMonth(),lt=Math.abs(Xe-Vt),Math.min(lt,12-lt)<=1;case"year":return Math.abs(Ve.getYear()-St.getYear())<=1;case"decade":return Math.abs(Ve.getYear()-St.getYear())<=10;case"century":return Math.abs(Ve.getYear()-St.getYear())<=100}var Xe,Vt,lt},_moveToClosestAvailableDate:function(){var dt,vt,ut=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),Ve=new Date(ut),St=this.option("zoomLevel"),Xe=!this._isDateNotAvailable(Ve),Vt=Xe,lt=Xe,Lt=new Date(Ve),bn=new Date(Ve);do{if(Vt){Ve=Lt;break}if(lt){Ve=bn;break}this._shiftDate(St,Lt,1,1),this._shiftDate(St,bn,1,-1),dt=this._areDatesInSameView(St,Lt,ut),vt=this._areDatesInSameView(St,bn,ut),Vt=dt&&!this._isDateNotAvailable(Lt),lt=vt&&!this._isDateNotAvailable(bn)}while(dt||vt);this.option("currentDate",Ve)},_isDateNotAvailable:function(ut){var Ve=this._getMaxDate(),St=this._getMinDate();return!(0,p.Z2)(ut,St,Ve)||this._view.isDateDisabled(ut)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var ut=this.option("minZoomLevel"),Ve=this.option("maxZoomLevel"),St=this.option("zoomLevel");De[Ve]<De[ut]||(De[St]>De[Ve]?this.option("zoomLevel",Ve):De[St]<De[ut]&&this.option("zoomLevel",ut))},_initCurrentDate:function(){var ut=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",ut)},_getNormalizedDate:function(ut){return ut=z.Z.normalizeDate(ut,this._getMinDate(),this._getMaxDate()),(0,a.$K)(ut)?this._getDate(ut):ut},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new te.k(function(ut){var Ve=ut.model;(0,c.Z)(ut.container).append((0,c.Z)("<span>").text(Ve&&Ve.text||String(Ve)))})}),this.callBase()},_updateCurrentDate:function(ut){if(Se.Z.isAnimating(this._$viewsWrapper)&&Se.Z.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var Xe=this._getNormalizedDate(ut);if(ut.getTime()===Xe.getTime()){var Vt=this._getViewsOffset(this._view.option("date"),Xe);0!==Vt&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(Vt=0),this._view&&0!==Vt&&!this._suppressNavigation?this._navigate(Vt,Xe):(this._renderNavigator(),this._setViewContoured(Xe),this._updateAriaId(Xe))}else this.option("currentDate",new Date(Xe))}},_setViewContoured:function(ut){(this.option("skipFocusCheck")||function bt(ut){return ut.hasClass("dx-state-focused")}(this._focusTarget()))&&this._view.option("contouredDate",ut)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(ut,Ve){var Xe,St=this.option("zoomLevel");if("month"===St)return this._getMonthsOffset(ut,Ve);switch(St){case"century":Xe=100;break;case"decade":Xe=10;break;default:Xe=1}return parseInt(Ve.getFullYear()/Xe)-parseInt(ut.getFullYear()/Xe)},_getMonthsOffset:function(ut,Ve){return 12*(Ve.getFullYear()-ut.getFullYear())+(Ve.getMonth()-ut.getMonth())},_waitRenderView:function(ut){if(!this._alreadyViewRender){this._alreadyViewRender=!0;var Ve=this._getDateByOffset(ut*this._getRtlCorrection());this._moveToClosestAvailableDate(Ve),this._waitRenderViewTimeout=setTimeout(()=>{this._alreadyViewRender=!1})}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(ut,Ve){var St,Xe=(Ve=this._getDate(null!==(St=Ve)&&void 0!==St?St:this.option("currentDate"))).getDate(),Vt=z.Z.getDifferenceInMonth(this.option("zoomLevel"))*ut;Ve.setDate(1),Ve.setMonth(Ve.getMonth()+Vt);var lt=z.Z.getLastMonthDate(Ve).getDate();return Ve.setDate(Xe>lt?lt:Xe),Ve},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var ut=this.$element();ut.addClass("dx-calendar"),this._renderBody(),ut.append(this.$body),this._renderViews(),this._renderNavigator(),ut.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,c.Z)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,c.Z)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass(Le+"-"+this.option("zoomLevel"));var ut=this.option("currentDate");if(this._view=this._renderSpecificView(ut),(0,re.Ym)()){var Ve=this._getDateByOffset(-1,ut);this._beforeView=this._isViewAvailable(Ve)?this._renderSpecificView(Ve):null;var St=this._getDateByOffset(1,ut);St.setDate(1),this._afterView=this._isViewAvailable(St)?this._renderSpecificView(St):null}this._translateViews()},_renderSpecificView:function(ut){var Ve=ce[this.option("zoomLevel")],St=(0,c.Z)("<div>").appendTo(this._$viewsWrapper),Xe=this._viewConfig(ut);return this._createComponent(St,Ve,Xe)},_viewConfig:function(ut){var Ve,St=this.option("disabledDates");return St=(0,a.mf)(St)?this._injectComponent(St.bind(this)):St,{date:ut,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:null!==(Ve=this.option("firstDayOfWeek"))&&void 0!==Ve?Ve:ze.Z.firstDayOfWeekIndex(),showWeekNumbers:this.option("showWeekNumbers"),weekNumberRule:this.option("weekNumberRule"),zoomLevel:this.option("zoomLevel"),value:this._dateOption("value"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:St,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel(),_todayDate:this.option("_todayDate")}},_injectComponent:function(ut){var Ve=this;return function(St){return(0,s.l)(St,{component:Ve}),ut(St)}},_isViewAvailable:function(ut){var Ve=this.option("zoomLevel"),St=z.Z.getViewMinBoundaryDate(Ve,this._getMinDate()),Xe=z.Z.getViewMaxBoundaryDate(Ve,this._getMaxDate());return z.Z.dateInRange(ut,St,Xe)},_translateViews:function(){(0,le.pB)(this._view.$element(),{left:0,top:0}),this._beforeView&&(0,le.pB)(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&(0,le.pB)(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(ut){return 100*ut*(this.option("rtlEnabled")?-1:1)+"%"},_cellClickHandler:function(ut){var Ve=this.option("zoomLevel"),St=z.Z.getViewDown(Ve),Xe=this._isMaxZoomLevel();if(St&&!Xe)this._navigateDown(ut.event.currentTarget);else{var Vt=this._updateTimeComponent(ut.value);this._dateValue(Vt,ut.event),this._cellClickAction(ut)}},_updateTimeComponent:function(ut){var Ve=new Date(ut),St=this._dateOption("value");return St&&(Ve.setHours(St.getHours()),Ve.setMinutes(St.getMinutes()),Ve.setSeconds(St.getSeconds()),Ve.setMilliseconds(St.getMilliseconds())),Ve},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(ut){var Ve=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var St=z.Z.getViewDown(Ve);if(St){var Xe=this._view.option("contouredDate")||this._view.option("date");ut&&(Xe=(0,c.Z)(ut).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",Xe),this.option("zoomLevel",St),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new k((0,c.Z)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(ut){var Ve=this._getDateByOffset(ut.direction,this.option("currentDate"));this._moveToClosestAvailableDate(Ve)},_navigateUp:function(){var ut=this.option("zoomLevel"),Ve=z.Z.getViewUp(ut);!Ve||this._isMinZoomLevel(ut)||(this.option("zoomLevel",Ve),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(ut){var Ve=this._getMinDate(),St=this._getMaxDate();return z.Z.sameView(ut,Ve,St)||this.option("minZoomLevel")===ut},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!(0,a.$K)(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!(0,a.$K)(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),h.Z,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(ut){Se.Z.stop(this._$viewsWrapper,!0),ut.event.maxLeftOffset=this._getRequiredView("next")?1:0,ut.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(ut){var Ve,St=this.option("rtlEnabled");return"next"===ut?Ve=St?this._beforeView:this._afterView:"prev"===ut&&(Ve=St?this._afterView:this._beforeView),Ve},_swipeUpdateHandler:function(ut){var Ve=ut.event.offset;(0,le.pB)(this._$viewsWrapper,{left:Ve*this._viewWidth(),top:0}),this._updateNavigatorCaption(Ve)},_swipeEndHandler:function(ut){var Ve=ut.event.targetOffset,St=Ve?Ve/Math.abs(Ve):0;if(0!==St){var Xe=this._getDateByOffset(-St*this._getRtlCorrection());this._isDateInInvalidRange(Xe)&&(Xe=St>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",Xe)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=(0,o.dz)(this.$element())),this._viewWidthValue},_updateNavigatorCaption:function(ut){ut*=this._getRtlCorrection();var Ve=this._view;ut>.5&&this._beforeView?Ve=this._beforeView:ut<-.5&&this._afterView&&(Ve=this._afterView),this._navigator.option("text",Ve.getNavigatorCaption())},_isDateInInvalidRange:function(ut){if(!this._view.isBoundary(ut)){var Ve=this._getMinDate(),St=this._getMaxDate(),Xe=z.Z.normalizeDate(ut,Ve,St);return Xe===Ve||Xe===St}},_renderFooter:function(){var ut=this.option("showTodayButton");if(ut){var Ve=this._createComponent((0,c.Z)("<a>"),l.Z,{focusStateEnabled:!1,text:U.Z.format("dxCalendar-todayButtonText"),onClick:function(St){this._toTodayView(St)}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,c.Z)("<div>").addClass("dx-calendar-footer").append(Ve),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",ut)},_renderSubmitElement:function(){this._$submitElement=(0,c.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(ut){var Ve=this._convertToDate(ut);this._getSubmitElement().val(V.Z.serializeDate(Ve,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return Se.Z.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(ut,Ve,St,Xe){return Se.Z.animate(ut.$element(),{type:"pop",from:{scale:Ve,opacity:Ve},to:{scale:St,opacity:St},duration:Xe})},_navigate:function(ut,Ve){if(0!==ut&&1!==Math.abs(ut)&&this._isViewAvailable(Ve)){var St=this._renderSpecificView(Ve);ut>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=St):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=St),this._translateViews()}var lt=-this._getRtlCorrection()*(ut>0?1:ut<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==lt&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(ut,Ve):this._animateWrapper(lt,250).done(this._wrapperAnimationEndHandler.bind(this,ut,Ve)))},_animateWrapper:function(ut,Ve){return Se.Z.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:ut},duration:Ve})},_getDate:ut=>new Date(ut),_toTodayView:function(ut){this._saveValueChangeEvent(ut.event);var Ve=new Date;this._isMaxZoomLevel()?this._dateOption("value",Ve):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",Ve),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(ut,Ve){this._rearrangeViews(ut),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(Ve),this._updateAriaId(Ve)},_rearrangeViews:function(ut){var Ve,St,Xe;if(0!==ut&&(ut<0?(Ve=1,St="_beforeView",Xe="_afterView"):(Ve=-1,St="_afterView",Xe="_beforeView"),this[St])){var Vt=this[St].option("date");this[Xe]&&this[Xe].$element().remove(),ut===Ve?this[Xe]=this._view:(this[Xe]=this._renderSpecificView(this._getDateByOffset(Ve,Vt)),this._view.$element().remove()),this._view=this[St];var lt=this._getDateByOffset(-Ve,Vt);this[St]=this._isViewAvailable(lt)?this._renderSpecificView(lt):null}},_resetLocation:function(){(0,le.pB)(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(ut){var Ve=ut?new Date(ut):null;this._view.option("value",Ve),this._beforeView&&this._beforeView.option("value",Ve),this._afterView&&this._afterView.option("value",Ve)},_updateAriaSelected:function(ut,Ve){var St;ut=null!==(St=ut)&&void 0!==St?St:this._dateOption("value");var Xe=this._view._getCellByDate(Ve),Vt=this._view._getCellByDate(ut);this.setAria("selected",void 0,Xe),this.setAria("selected",!0,Vt),ut&&this.option("currentDate").getTime()===ut.getTime()&&this._updateAriaId(ut)},_updateAriaId:function(ut){var Ve;ut=null!==(Ve=ut)&&void 0!==Ve?Ve:this.option("currentDate");var St="dx-"+new I.Z,Xe=this._view._getCellByDate(ut);this.setAria("id",St,Xe),this.setAria("activedescendant",St),this._onContouredChanged(St)},_suppressingNavigation:function(ut,Ve){this._suppressNavigation=!0,ut.apply(this,Ve),delete this._suppressNavigation},_optionChanged:function(ut){var Ve=ut.value,St=ut.previousValue;switch(ut.name){case"width":this.callBase(ut),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(St)),this._updateCurrentDate(Ve);break;case"zoomLevel":this.$element().removeClass(Le+"-"+St),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":Ve=this._convertToDate(Ve),St=this._convertToDate(St),this._updateAriaSelected(Ve,St),this.option("currentDate",(0,a.$K)(Ve)?new Date(Ve):new Date),this._updateViewsValue(Ve),this._setSubmitValue(Ve),this.callBase(ut);break;case"onCellClick":this._view.option("onCellClick",Ve);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"skipFocusCheck":break;case"_todayDate":case"showWeekNumbers":case"weekNumberRule":this._refreshViews();break;default:this.callBase(ut)}},getContouredDate:function(){return this._view.option("contouredDate")}});(0,C.Z)("dxCalendar",yt);const gn=yt},344:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>pe});var o=u(8506),c=u(1828),I=u(4691),C=u(3191),g=u(5873),a=u(9904),p=u(5610),s=u(5365),l=u(1031),h="dx-invalid-message-auto",v="dx-validation-target";class x extends I.Z{getProps(){var re=super.getProps();return re.onFocusIn=()=>{if("auto"===this.option("validationMessageMode")){var ie=(0,a.Z)(function d(Se,re){var te,ie;return(null!==(te=null===(ie=Se.getRootNode)||void 0===ie?void 0:ie.call(Se))&&void 0!==te?te:document).querySelector(re)}(this.element(),".dx-invalid-message.dx-overlay-wrapper"));ie?.removeClass(h),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>{ie?.addClass(h)},150)}},re.saveValueChangeEvent=te=>{this._valueChangeEventInstance=te},re}_createElement(re){super._createElement(re),this.showValidationMessageTimeout=void 0,this.validationRequest=(0,s.Z)(),(0,p.aT)(this.$element()[0],v,this)}_render(){var re;null===(re=this.option("_onMarkupRendered"))||void 0===re||re()}_initializeComponent(){super._initializeComponent(),this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})}_initOptions(re){super._initOptions(re),this.option(C.Z.initValidationOptions(re))}_getDefaultOptions(){return(0,g.l)(super._getDefaultOptions(),{validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})}_bindInnerWidgetOptions(re,te){var ie=(0,g.l)({},re.option()),ue=()=>this._silent(te,ie);ue(),re.on("optionChanged",ue)}_raiseValidation(re,te){var ie=!(0,c.$K)(re)&&!(0,c.$K)(te);re!==te&&!ie&&this.validationRequest.fire({value:re,editor:this})}_raiseValueChangeAction(re,te){var ie;null===(ie=this._valueChangeAction)||void 0===ie||ie.call(this,{element:this.$element(),previousValue:te,value:re,event:this._valueChangeEventInstance}),this._valueChangeEventInstance=void 0}_optionChanged(re){var{name:te,previousValue:ie,value:ue}=re;switch(te&&void 0!==this._getActionConfigs()[te]&&this._addAction(te),te){case"value":this._raiseValidation(ue,ie),this._raiseValueChangeAction(ue,ie);break;case"onValueChanged":this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]});break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(C.Z.synchronizeValidationOptions(re,this.option()))}super._optionChanged(re)}reset(){var{value:re}=this._getDefaultOptions();this.option({value:re})}_dispose(){super._dispose(),(0,p.aT)(this.element(),v,null),this.showValidationMessageTimeout&&clearTimeout(this.showValidationMessageTimeout)}}var b=l.Z.isEditor,y=Se=>b(Se)||Se instanceof x;x.isEditor=y,l.Z.isEditor=y;class E extends x{_useTemplates(){return!1}_isFocused(){return this.$element()[0].classList.contains("dx-state-focused")}getSupportedKeyNames(){return["space"]}getProps(){var re=super.getProps();return null!==re.value&&(re.value=Boolean(re.value)),re}}var S=u(9943),O=u(4817),w=u(9056),T=u(6084),k=u(2941),R=u(4614),P=u(3667),B=u(4570),W=u(4514),z=u(4356),V=u(2722),U=[[22,16],[18,16]],K=[[[12,8],[20,18]],[[16,10],[16,14]]];function Y(){var Se=(0,V.Vk)();return{isMaterialTheme:(0,V.x2)(Se),isCompactTheme:(0,V.f5)(Se)}}var G=["isChecked","size"],Z={isChecked:!1};let X=(()=>{class Se extends T.OS{constructor(te){super(te),this.state={},this.elementRef=(0,w.Vf)(),this.__getterCache={},this.updateFontSize=this.updateFontSize.bind(this),this.setIconFontSize=this.setIconFontSize.bind(this),this.getIconSize=this.getIconSize.bind(this),this.getComputedIconSize=this.getComputedIconSize.bind(this)}createEffects(){return[new T.b0(this.updateFontSize,[this.props.isChecked,this.props.size])]}updateEffects(){var te;null===(te=this._effects[0])||void 0===te||te.update([this.props.isChecked,this.props.size])}updateFontSize(){var{isChecked:te,size:ie}=this.props;if((0,W.Ym)()&&ie){var be=function ee(Se,re){var te=function j(Se){var{isCompactTheme:re,isMaterialTheme:te}=Y();return K[+Se][+te][+re]}(re),ie=function J(){var{isCompactTheme:Se,isMaterialTheme:re}=Y();return U[+re][+Se]}();return Math.ceil(te/ie*Se)}(this.getIconSize(ie),te);this.setIconFontSize(be)}}setIconFontSize(te){this.elementRef.current.style.fontSize="".concat(te,"px")}getIconSize(te){return(0,c.kE)(te)?te:te.endsWith("px")?parseInt(te,10):this.getComputedIconSize()}getComputedIconSize(){var ie=(0,B.Z)(this.elementRef.current);return parseInt(ie?.width,10)}get cssStyles(){return void 0!==this.__getterCache.cssStyles?this.__getterCache.cssStyles:this.__getterCache.cssStyles=(()=>{var{size:te}=this.props,ie=(0,z.bh)("width",te);return{height:(0,z.bh)("height",te),width:ie}})()}get restAttributes(){return(0,S.Z)(this.props,G)}componentWillUpdate(te,ie,ue){super.componentWillUpdate(),this.props.size!==te.size&&(this.__getterCache.cssStyles=void 0)}render(){return(Se=>{var{cssStyles:re,elementRef:te}=Se;return(0,w.Wm)(1,"span","dx-checkbox-icon",null,1,{style:(0,T.jk)(re)},null,te)})({props:(0,O.Z)({},this.props),elementRef:this.elementRef,setIconFontSize:this.setIconFontSize,getIconSize:this.getIconSize,getComputedIconSize:this.getComputedIconSize,cssStyles:this.cssStyles,restAttributes:this.restAttributes})}}return Se.defaultProps=Z,Se})();var M=u(2735),oe=u(3238),fe=["accessKey","activeStateEnabled","aria","className","defaultValue","disabled","enableThreeStateBehavior","focusStateEnabled","height","hint","hoverStateEnabled","iconSize","isValid","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","saveValueChangeEvent","tabIndex","text","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],ze=Object.create(Object.prototype,(0,O.Z)(Object.getOwnPropertyDescriptors(R.nY),Object.getOwnPropertyDescriptors({text:"",enableThreeStateBehavior:!1,activeStateEnabled:!0,hoverStateEnabled:!0,get focusStateEnabled(){return"desktop"===k.Z.real().deviceType&&!k.Z.isSimulator()},defaultValue:!1,valueChange:()=>{}}))),ae={get text(){return ze.text},get enableThreeStateBehavior(){return ze.enableThreeStateBehavior},get activeStateEnabled(){return ze.activeStateEnabled},get hoverStateEnabled(){return ze.hoverStateEnabled},get focusStateEnabled(){return ze.focusStateEnabled},get defaultValue(){return ze.defaultValue},get valueChange(){return ze.valueChange},get readOnly(){return ze.readOnly},get name(){return ze.name},get validationError(){return ze.validationError},get validationErrors(){return ze.validationErrors},get validationMessageMode(){return ze.validationMessageMode},get validationMessagePosition(){return ze.validationMessagePosition},get validationStatus(){return ze.validationStatus},get isValid(){return ze.isValid},get className(){return ze.className},get disabled(){return ze.disabled},get tabIndex(){return ze.tabIndex},get visible(){return ze.visible},get aria(){return M.W6.aria}};class _e extends T.DZ{constructor(re){super(re),this.editorRef=(0,w.Vf)(),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue},this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.onWidgetClick=this.onWidgetClick.bind(this),this.keyDown=this.keyDown.bind(this)}createEffects(){return[(0,T.gt)()]}onWidgetClick(re){var{enableThreeStateBehavior:te,readOnly:ie,saveValueChangeEvent:ue}=this.props;if(!ie)if(ue?.(re),te){var be;this.setState(Ne=>({value:be=null===(void 0!==this.props.value?this.props.value:Ne.value)||!(void 0!==this.props.value?this.props.value:Ne.value)&&null})),this.props.valueChange(be)}else{var Ae;this.setState(Ne=>{var mt;return{value:Ae=!(null!==(mt=void 0!==this.props.value?this.props.value:Ne.value)&&void 0!==mt&&mt)}}),this.props.valueChange(Ae)}}keyDown(re){var{onKeyDown:te}=this.props,{keyName:ie,originalEvent:ue,which:be}=re,Ae=te?.(re);if(null!=Ae&&Ae.cancel)return Ae;("space"===ie||"space"===be)&&(ue.preventDefault(),this.onWidgetClick(ue))}get cssClasses(){return(Se=>{var{text:re,value:te}=Se;return(0,P.G)({"dx-checkbox":!0,"dx-checkbox-checked":!0===te,"dx-checkbox-has-text":!!re,"dx-checkbox-indeterminate":null===te})})((0,O.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}))}get aria(){var ie={role:"checkbox",checked:null===(void 0!==this.props.value?this.props.value:this.state.value)?"mixed":"".concat(!0===(void 0!==this.props.value?this.props.value:this.state.value))};return(0,O.Z)({},ie,this.props.aria)}get restAttributes(){var re=(0,O.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,S.Z)(re,fe)}focus(){this.editorRef.current.focus()}blur(){this.editorRef.current.blur()}render(){return(Se=>{var{aria:re,cssClasses:te,editorRef:ie,keyDown:ue,onWidgetClick:be,props:{accessKey:Ae,activeStateEnabled:Ne,className:mt,disabled:tt,focusStateEnabled:Le,height:gt,hint:tn,hoverStateEnabled:Pe,iconSize:$e,isValid:ge,name:Ce,onFocusIn:De,readOnly:Ye,rtlEnabled:bt,tabIndex:yt,text:kt,validationError:gn,validationErrors:ut,validationMessageMode:Ve,validationMessagePosition:St,validationStatus:Xe,value:Vt,visible:lt,width:dt},restAttributes:vt}=Se;return(0,w.vs)((0,w.Iz)(2,R.ML,(0,O.Z)({aria:re,classes:te,onClick:be,onKeyDown:ue,accessKey:Ae,activeStateEnabled:Ne,focusStateEnabled:Le,hoverStateEnabled:Pe,className:mt,disabled:tt,readOnly:Ye,hint:tn,height:gt,width:dt,rtlEnabled:bt,tabIndex:yt,visible:lt,validationError:gn,validationErrors:ut,validationMessageMode:Ve,validationMessagePosition:St,validationStatus:Xe,isValid:ge,onFocusIn:De},vt,{children:(0,w.xJ)([(0,w.vs)((0,w.Wm)(64,"input",null,null,1,(0,O.Z)({type:"hidden",value:"".concat(Vt)},Ce&&{name:Ce}))),(0,w.Wm)(1,"div","dx-checkbox-container",[(0,w.Iz)(2,X,{size:$e,isChecked:!0===Vt}),kt&&(0,w.Wm)(1,"span","dx-checkbox-text",kt,0)],0)],4)}),null,ie))})({props:(0,O.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),editorRef:this.editorRef,onWidgetClick:this.onWidgetClick,keyDown:this.keyDown,cssClasses:this.cssClasses,aria:this.aria,restAttributes:this.restAttributes})}}_e.defaultProps=ae;var ne=[];class le extends E{getProps(){var re=super.getProps();return re.onKeyDown=this._wrapKeyDownHandler(re.onKeyDown),re}focus(){var re;return null===(re=this.viewRef)||void 0===re?void 0:re.focus(...arguments)}blur(){var re;return null===(re=this.viewRef)||void 0===re?void 0:re.blur(...arguments)}_getActionConfigs(){return{onFocusIn:{},onClick:{}}}get _propsInfo(){return{twoWay:[["value","defaultValue","valueChange"]],allowNull:["defaultValue","validationError","validationErrors","value"],elements:[],templates:[],props:["text","iconSize","enableThreeStateBehavior","activeStateEnabled","hoverStateEnabled","focusStateEnabled","saveValueChangeEvent","defaultValue","valueChange","readOnly","name","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","isValid","onFocusIn","className","accessKey","disabled","height","hint","onClick","onKeyDown","rtlEnabled","tabIndex","visible","width","aria","value"]}}get _viewComponent(){return _e}}(0,o.Z)("dxCheckBox",le),le.defaultOptions=function ce(Se){ne.push(Se),_e.defaultProps=Object.create(Object.prototype,(0,O.Z)(Object.getOwnPropertyDescriptors(_e.defaultProps),Object.getOwnPropertyDescriptors(function ye(Se){var re=["value"];return Object.keys(Se).reduce((te,ie)=>{var ue=Se[ie];return te[re.some(Ae=>Ae===ie)?"default"+ie.charAt(0).toUpperCase()+ie.slice(1):ie]=ue,te},{})}((0,oe.wt)(ne)))))};const pe=le},8646:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>d});var o=u(9904),c=u(5031),I=u(2718),C=u(6165),l=c.Z.inherit({ctor:function(h,v,x){this._$element=h,this._options=v,this._rawData=x,(0,C.nf)(h,this,this._dispose),this._render()},_render:function(){var h=(0,o.Z)("<div>").addClass("dx-item-content-placeholder");this._$element.append(h),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(h,v){var x=this._rawData,b=this._options.fieldGetter(h),y=function(h,v,x){var y,b=function(E){y!==E&&(x(E,y),y=E)};return{dispose:h(v,b),force:function(){b(v())}}}(this._options.watchMethod(),function(){return b(x)},function(E,S){this._dirty=!0,v(E,S)}.bind(this));this._watchers.push(y)},setDataField:function(){if(this._dirty=!1,(0,I.S6)(this._watchers,function(h,v){v.force()}),this._dirty)return!0},_renderDisabled:function(h,v){this._$element.toggleClass("dx-state-disabled",!!h),this._updateOwnerFocus(h)},_updateOwnerFocus:function(h){var v=this._options.owner;v&&h&&v._resetItemFocus(this._$element)},_renderVisible:function(h,v){this._$element.toggleClass("dx-state-invisible",void 0!==h&&!h)},_dispose:function(){(0,I.S6)(this._watchers,function(h,v){v.dispose()})}});l.getInstance=function(h){return(0,C.Bt)(h,this)};const d=l},7307:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>mt});var o=u(9904),c=u(913),I=u(1805),C=u(7674),g=u(4542),a=u(6881),p=u(9897),s=u(1828),l=u(4270),d=u(5873),h=u(2718),v=u(9866),x=u(6492),b=u(6853),y=u(8225),E=u(8690),S=u(8264),O=u(8646),w=u(7),T=u(9009),k=u(5180),R=u(6738),P=u(227),B=u(2480),W=u(4823),V="dx-item",U="-content",K="dx-item-content-placeholder",X="dx-template-wrapper",M=/^([^.]+\[\d+\]\.)+([\w.]+)$/,Te="down",ce=b.Z.inherit({_activeStateUnit:"."+V,_supportedKeys:function(){var tt=function(gt){var tn=(0,o.Z)(this.option("focusedElement"));tn.length&&this._itemClickHandler((0,d.l)({},gt,{target:tn.get(0),currentTarget:tn.get(0)}))},Le=function(gt,tn){(0,y.j1)(tn)||(tn.preventDefault(),tn.stopPropagation(),this._moveFocus(gt,tn))};return(0,d.l)(this.callBase(),{space:function(gt){gt.preventDefault(),tt.call(this,gt)},enter:tt,leftArrow:Le.bind(this,"left"),rightArrow:Le.bind(this,"right"),upArrow:Le.bind(this,"up"),downArrow:Le.bind(this,Te),pageUp:Le.bind(this,"up"),pageDown:Le.bind(this,Te),home:Le.bind(this,"first"),end:Le.bind(this,"last")})},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:T.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,dataSource:null,_dataController:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(tt){return tt?tt.disabled:void 0},visibleExpr:function(tt){return tt?tt.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this._initDataController(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var tt=this.option("displayExpr");this._displayGetter=tt?(0,R.vb)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var tt=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new W.c(function(Le,gt){(0,s.PO)(gt)?this._prepareDefaultItemTemplate(gt,Le):(tt&&(0,s.mf)(tt.text)&&(gt=tt.text(gt)),Le.text(String((0,C.IS)(gt,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),tt)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(tt,Le){(0,s.$K)(tt.text)&&Le.text(tt.text),(0,s.$K)(tt.html)&&Le.html(tt.html)},_initItemsFromMarkup:function(){var tt=(0,g.hK)(this.$element(),"dxItem");if(tt.length&&!this.option("items").length){var Le=tt.map(gt=>{var{element:tn,options:Pe}=gt;return/\S/.test(tn.innerHTML)&&!Pe.template?Pe.template=this._prepareItemTemplate(tn):(0,o.Z)(tn).remove(),Pe});this.option("items",Le)}},_prepareItemTemplate:function(tt){var Le="tmpl-"+new x.Z,gt=(0,o.Z)(tt).detach().clone().removeAttr("data-options").addClass(X);return this._saveTemplate(Le,gt),Le},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(tt){if(this.callBase.apply(this,arguments),this._isFocusTarget(tt.target)){var Le=(0,o.Z)(this.option("focusedElement"));if(Le.length)this._setFocusedItem(Le);else{var gt=this._getActiveItem();gt.length&&this.option("focusedElement",(0,a.u)(gt))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var tt=(0,o.Z)(this.option("focusedElement"));this._updateFocusedItemState(tt,!1)},_getActiveItem:function(tt){var Le=(0,o.Z)(this.option("focusedElement"));if(Le.length)return Le;var gt=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,tn=this._getActiveElement();return gt<0&&(gt=tt?tn.length-1:0),tn.eq(gt)},_moveFocus:function(tt){var gt,Le=this._getAvailableItems();switch(tt){case"pageup":case"up":gt=this._prevItem(Le);break;case"pagedown":case Te:gt=this._nextItem(Le);break;case"right":gt=this.option("rtlEnabled")?this._prevItem(Le):this._nextItem(Le);break;case"left":gt=this.option("rtlEnabled")?this._nextItem(Le):this._prevItem(Le);break;case"first":gt=Le.first();break;case"last":gt=Le.last();break;default:return!1}0!==gt.length&&this.option("focusedElement",(0,a.u)(gt))},_getVisibleItems:function(tt){return(tt=tt||this._itemElements()).filter(":visible")},_getAvailableItems:function(tt){return this._getVisibleItems(tt).not(".dx-state-disabled")},_prevItem:function(tt){var Le=this._getActiveItem(),gt=tt.index(Le),tn=tt.last(),Pe=(0,o.Z)(tt[gt-1]),$e=this.option("loopItemFocus");return 0===Pe.length&&$e&&(Pe=tn),Pe},_nextItem:function(tt){var Le=this._getActiveItem(!0),gt=tt.index(Le),tn=tt.first(),Pe=(0,o.Z)(tt[gt+1]),$e=this.option("loopItemFocus");return 0===Pe.length&&$e&&(Pe=tn),Pe},_selectFocusedItem:function(tt){this.selectItem(tt)},_updateFocusedItemState:function(tt,Le,gt){var tn=(0,o.Z)(tt);tn.length&&(this._refreshActiveDescendant(),this._refreshItemId(tn,gt),this._toggleFocusClass(Le,tn)),this._updateParentActiveDescendant()},_refreshActiveDescendant:function(tt){this.setAria("activedescendant",(0,s.$K)(this.option("focusedElement"))?this.getFocusedItemId():null,tt)},_refreshItemId:function(tt,Le){!Le&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),tt):this.setAria("id",null,tt)},_setFocusedItem:function(tt){!tt||!tt.length||(this._updateFocusedItemState(tt,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(tt))},_findItemElementByItem:function(tt){var Le=(0,o.Z)(),gt=this;return this.itemElements().each(function(){var tn=(0,o.Z)(this);if(tn.data(gt._itemDataKey())===tt)return Le=tn,!1}),Le},_getIndexByItem:function(tt){return this.option("items").indexOf(tt)},_itemOptionChanged:function(tt,Le,gt,tn){var Pe=this._findItemElementByItem(tt);Pe.length&&(this.constructor.ItemClass.getInstance(Pe).setDataField(Le,gt)||this._refreshItem(Pe,tt),"disabled"===Le&&gt&&this._resetItemFocus(Pe))},_resetItemFocus(tt){tt.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(tt){var Le=this._getItemData(tt),gt=tt.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+gt,Le,null,tt)},_updateParentActiveDescendant:C.ZT,_optionChanged:function(tt){if("items"===tt.name){var Le=tt.fullName.match(M);if(Le&&Le.length){var gt=Le[Le.length-1],tn=tt.fullName.replace("."+gt,""),Pe=this.option(tn);return void this._itemOptionChanged(Pe,gt,tt.value,tt.previousValue)}}switch(tt.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"useItemTextAsTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":case"encodeNoDataText":this._renderEmptyMessage();break;case"itemTemplate":case"visibleExpr":case"disabledExpr":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"focusedElement":this._updateFocusedItemState(tt.previousValue,!1,!0),this._setFocusedItem((0,o.Z)(tt.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;default:this.callBase(tt)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){return this._expectNextPageLoading(),this._dataController.loadNextPage()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(tt){var Le=this.option("items");this._initialized&&Le&&this._shouldAppendItems()?(this._renderedItemsCount=Le.length,(!this._isLastPage()||-1!==this._startIndexForAppendedItems)&&(this.option().items=Le.concat(tt.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",tt.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer(),this._inkRipple&&delete this._inkRipple,this._resetActiveState()},_cleanItemContainer:function(){(0,o.Z)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return V},_itemContentClass:function(){return this._itemClass()+U},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:(0,C.Rg)(function(){this._renderContentImpl()}),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var tt=this._itemSelector(),Le=(0,y.V4)(P.u,this.NAME),gt=(0,y.V4)(E.Z.down,this.NAME),tn=this,Pe=new v.Z(function($e){tn._itemPointerDownHandler($e.event)});c.Z.off(this._itemContainer(),Le,tt),c.Z.off(this._itemContainer(),gt,tt),c.Z.on(this._itemContainer(),Le,tt,function($e){this._itemClickHandler($e)}.bind(this)),c.Z.on(this._itemContainer(),gt,tt,function($e){Pe.execute({element:(0,o.Z)($e.target),event:$e})})},_itemClickHandler:function(tt,Le,gt){this._itemDXEventHandler(tt,"onItemClick",Le,gt)},_itemPointerDownHandler:function(tt){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!tt.isDefaultPrevented()){var Le=(0,o.Z)(tt.target),gt=Le.closest(this._itemElements()),tn=this._closestFocusable(Le);gt.length&&this._isFocusTarget(tn?.get(0))&&this.option("focusedElement",(0,a.u)(gt))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(tt){if(tt.is(w.KW))return tt;for(tt=tt.parent();tt.length&&!p.Z.isDocument(tt.get(0))&&!p.Z.isDocumentFragment(tt.get(0));){if(tt.is(w.KW))return tt;tt=tt.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var tt=this._itemContainer(),Le=this._itemSelector(),gt=(0,y.V4)(k.Z.name,this.NAME);c.Z.off(tt,gt,Le),c.Z.on(tt,gt,Le,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(tt){this._shouldFireHoldEvent()?this._itemDXEventHandler(tt,"onItemHold"):tt.cancel=!0},_attachContextMenuEvent:function(){var tt=this._itemContainer(),Le=this._itemSelector(),gt=(0,y.V4)(B.u,this.NAME);c.Z.off(tt,gt,Le),c.Z.on(tt,gt,Le,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(tt){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(tt,"onItemContextMenu"):tt.cancel=!0},_renderContentImpl:function(){var tt=this.option("items")||[];this._renderItems(this._renderedItemsCount?tt.slice(this._renderedItemsCount):tt)},_renderItems:function(tt){tt.length&&(0,h.S6)(tt,function(Le,gt){this._renderItem(this._renderedItemsCount+Le,gt)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(tt,Le,gt,tn){var Pe,$e=null!==(Pe=tt?.item)&&void 0!==Pe?Pe:tt;gt=gt||this._itemContainer();var ge=this._renderItemFrame($e,Le,gt,tn);this._setElementData(ge,Le,$e),ge.attr(this.option("_itemAttributes")),this._attachItemClickEvent(Le,ge);var Ce=this._getItemContent(ge),De=this._renderItemContent({index:$e,itemData:Le,container:(0,a.u)(Ce),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),Ye=this;return(0,l.gx)(De).done(function(bt){Ye._postprocessRenderItem({itemElement:ge,itemContent:bt,itemData:Le,itemIndex:$e}),Ye._executeItemRenderAction(tt,Le,(0,a.u)(ge))}),ge},_getItemContent:function(tt){var Le=tt.find("."+K);return Le.removeClass(K),Le},_attachItemClickEvent:function(tt,Le){!tt||!tt.onClick||c.Z.on(Le,P.u,function(gt){this._itemEventHandlerByHandler(Le,tt.onClick,{event:gt})}.bind(this))},_renderItemContent:function(tt){var Le=this._getItemTemplateName(tt),gt=this._getTemplate(Le);this._addItemContentClasses(tt);var tn=(0,o.Z)(this._createItemByTemplate(gt,tt));return tn.hasClass(X)?this._renderItemContentByNode(tt,tn):tt.container},_renderItemContentByNode:function(tt,Le){return(0,o.Z)(tt.container).replaceWith(Le),tt.container=(0,a.u)(Le),this._addItemContentClasses(tt),Le},_addItemContentClasses:function(tt){var Le=[V+U,tt.contentClass];(0,o.Z)(tt.container).addClass(Le.join(" "))},_appendItemToContainer:function(tt,Le,gt){Le.appendTo(tt)},_renderItemFrame:function(tt,Le,gt,tn){var Pe=(0,o.Z)("<div>");if(new this.constructor.ItemClass(Pe,this._itemOptions(),Le||{}),tn&&tn.length?tn.replaceWith(Pe):this._appendItemToContainer.call(this,gt,Pe,tt),this.option("useItemTextAsTitle")){var $e=this._displayGetter?this._displayGetter(Le):Le;Pe.attr("title",$e)}return Pe},_itemOptions:function(){var tt=this;return{watchMethod:function(){return tt.option("integrationOptions.watchMethod")},owner:tt,fieldGetter:function(Le){var gt=tt.option(Le+"Expr");return(0,R.vb)(gt)}}},_postprocessRenderItem:C.ZT,_executeItemRenderAction:function(tt,Le,gt){this._getItemRenderAction()({itemElement:gt,itemIndex:tt,itemData:Le})},_setElementData:function(tt,Le,gt){tt.addClass([V,this._itemClass()].join(" ")).data(this._itemDataKey(),Le).data(this._itemIndexKey(),gt)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(tt){var Le=tt.itemData,gt=tt.templateProperty||this.option("itemTemplateProperty");return Le&&Le[gt]||tt.defaultTemplateName},_createItemByTemplate:function(tt,Le){return tt.render({model:Le.itemData,container:Le.container,index:Le.index,onRendered:this._onItemTemplateRendered(tt,Le)})},_onItemTemplateRendered:function(){return C.ZT},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(tt){tt=tt||this.option("items");var Le=this.option("noDataText"),gt=!Le||tt&&tt.length||this._dataController.isLoading();gt&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),gt||(this._$noData=this._$noData||(0,o.Z)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()),this.option("encodeNoDataText")?this._$noData.text(Le):this._$noData.html(Le),this.setAria("label",Le)),this.$element().toggleClass("dx-empty-collection",!gt)},_itemDXEventHandler:function(tt,Le,gt,tn){this._itemEventHandler(tt.target,Le,(0,d.l)(gt,{event:tt}),tn)},_itemEventHandler:function(tt,Le,gt,tn){var Pe=this._createActionByOption(Le,(0,d.l)({validatingTargetName:"itemElement"},tn));return this._itemEventHandlerImpl(tt,Pe,gt)},_itemEventHandlerByHandler:function(tt,Le,gt,tn){var Pe=this._createAction(Le,(0,d.l)({validatingTargetName:"itemElement"},tn));return this._itemEventHandlerImpl(tt,Pe,gt)},_itemEventHandlerImpl:function(tt,Le,gt){var tn=this._closestItemElement((0,o.Z)(tt)),Pe=(0,d.l)({},gt);return Le((0,d.l)(gt,this._extendActionArgs(tn),Pe))},_extendActionArgs:function(tt){return{itemElement:(0,a.u)(tt),itemIndex:this._itemElements().index(tt),itemData:this._getItemData(tt)}},_closestItemElement:function(tt){return(0,o.Z)(tt).closest(this._itemSelector())},_getItemData:function(tt){return(0,o.Z)(tt).data(this._itemDataKey())},_getSummaryItemsWidth:function(tt,Le){var gt=0;return tt&&(0,h.S6)(tt,function(tn,Pe){gt+=(0,I.Y_)(Pe,Le||!1)}),gt},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new x.Z),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(S.Z);ce.ItemClass=O.Z;const le=ce;var pe=u(8159),Se=u(5172),re=u(7122),te=u(5981),ie=u(7398),ue="dxItemDeleting",Ae=function(tt){return-1!==tt};const mt=le.inherit({_setOptionsByReference:function(){this.callBase(),(0,d.l)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(tt,Le){this._userOptions=Le||{},this.callBase(tt,Le)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule()},_initKeyGetter:function(){this._keyGetter=(0,R.vb)(this.option("keyExpr"))},_getKeysByItems:function(tt){return this._editStrategy.getKeysByItems(tt)},_getItemsByKeys:function(tt,Le){return this._editStrategy.getItemsByKeys(tt,Le)},_getKeyByIndex:function(tt){return this._editStrategy.getKeyByIndex(tt)},_getIndexByKey:function(tt){return this._editStrategy.getIndexByKey(tt)},_getIndexByItemData:function(tt){return this._editStrategy.getIndexByItemData(tt)},_isKeySpecified:function(){return!!this._dataController.key()},_getCombinedFilter:function(){return this._dataController.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataController.key()},keyOf:function(tt){var Le=tt;return this.option("keyExpr")?Le=this._keyGetter(tt):this._dataController.store()&&(Le=this._dataController.keyOf(tt)),Le},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var tt=this,Le=tt._editStrategy.itemsGetter;this._selection=new ie.Z({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(gt){(gt.addedItemKeys.length||gt.removedItemKeys.length)&&(tt.option("selectedItems",tt._getItemsByKeys(gt.selectedItemKeys,gt.selectedItems)),tt._updateSelectedItems(gt))},filter:tt._getCombinedFilter.bind(tt),totalCount:function(){var gt=tt.option("items"),tn=tt._dataController.totalCount();return tn>=0?tn:tt._getItemsCount(gt)},key:tt.key.bind(tt),keyOf:tt.keyOf.bind(tt),load:function(gt){var tn,Pe=tt._dataController;return gt.customQueryParams=null===(tn=Pe.loadOptions())||void 0===tn?void 0:tn.customQueryParams,gt.userData=Pe.userData(),Pe.store()?Pe.loadFromStore(gt).done(function($e){if(!tt._disposed){var ge=(0,te.r6)($e).data;Pe.applyMapFunction(ge)}}):(new l.BH).resolve(this.plainItems())},dataFields:function(){return tt._dataController.select()},plainItems:Le.bind(tt._editStrategy)})},_getItemsCount:function(tt){return tt.reduce((Le,gt)=>Le+(gt.items?this._getItemsCount(gt.items):1),0)},_initEditStrategy:function(){this._editStrategy=new(0,Se.Z)(this)},_getSelectedItemIndices:function(tt){var Le=this,gt=[];return tt=tt||this._selection.getSelectedItemKeys(),Le._editStrategy.beginCache(),(0,h.S6)(tt,function(tn,Pe){var $e=Le._getIndexByKey(Pe);Ae($e)&&gt.push($e)}),Le._editStrategy.endCache(),gt},_initMarkup:function(){this._rendering=!0,this._dataController.isLoading()||this._syncSelectionOptions().done(()=>this._normalizeSelectedItems()),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(tt){var Le,gt,tn,Pe;switch(tt=tt||this._chooseSelectOption()){case"selectedIndex":Le=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,s.$K)(Le)?(this._setOptionWithoutOptionChange("selectedItems",[Le]),this._setOptionWithoutOptionChange("selectedItem",Le),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([Le]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(gt=(Pe=this.option("selectedItems")||[]).length?this._editStrategy.getIndexByItemData(Pe[0]):-1,this.option("selectionRequired")&&!Ae(gt))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",Pe[0]),this._setOptionWithoutOptionChange("selectedIndex",gt),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(Pe));break;case"selectedItem":if(Le=this.option("selectedItem"),gt=this._editStrategy.getIndexByItemData(Le),this.option("selectionRequired")&&!Ae(gt))return this._syncSelectionOptions("selectedIndex");(0,s.$K)(Le)?(this._setOptionWithoutOptionChange("selectedItems",[Le]),this._setOptionWithoutOptionChange("selectedIndex",gt),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([Le]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(tn=this.option("selectedItemKeys"),this.option("selectionRequired")){var $e=this._getIndexByKey(tn[0]);if(!Ae($e))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(tn)}return(new l.BH).resolve().promise()},_chooseSelectOption:function(){var tt="selectedIndex",Le=function(gt){var tn=this.option(gt);return(0,s.$K)(tn)&&tn.length||gt in this._userOptions}.bind(this);return Le("selectedItems")?tt="selectedItems":Le("selectedItem")?tt="selectedItem":Le("selectedItemKeys")&&(tt="selectedItemKeys"),tt},_compareKeys:function(tt,Le){if(tt.length!==Le.length)return!1;for(var gt=0;gt<Le.length;gt++)if(tt[gt]!==Le[gt])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var tt=this.option("selectedItems");if(tt.length>1||!tt.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var Le=this._selection.getSelectedItems(),gt=void 0===tt[0]?Le[0]:tt[0];return void 0===gt&&(gt=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&gt&&gt.items&&(gt.items=[gt.items[0]]),this._selection.setSelection(this._getKeysByItems([gt])),this._setOptionWithoutOptionChange("selectedItems",[gt]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(tt))}else{var tn=this._getKeysByItems(this.option("selectedItems")),Pe=this._selection.getSelectedItemKeys();this._compareKeys(Pe,tn)||this._selection.setSelection(tn)}return(new l.BH).resolve().promise()},_itemClickHandler:function(tt){var Le=(new l.BH).resolve(),gt=this.callBase;this._createAction(function(tn){var Pe;Le=null!==(Pe=this._itemSelectHandler(tn.event))&&void 0!==Pe?Pe:Le}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,o.Z)(tt.currentTarget),event:tt}),Le.always(()=>{gt.apply(this,arguments)})},_itemSelectHandler:function(tt){var Le,gt;if(this.option("selectionByClick"))return this.isItemSelected(tt.currentTarget)?this.unselectItem(tt.currentTarget):gt=this.selectItem(tt.currentTarget),null===(Le=gt)||void 0===Le?void 0:Le.promise()},_selectedItemElement:function(tt){return this._itemElements().eq(tt)},_postprocessRenderItem:function(tt){if("none"!==this.option("selectionMode")){var Le=(0,o.Z)(tt.itemElement),gt=this._editStrategy.getNormalizedIndex(Le),tn=this._isItemSelected(gt);this._processSelectableItem(Le,tn)}},_processSelectableItem:function(tt,Le){tt.toggleClass(this._selectedItemClass(),Le),this._setAriaSelected(tt,String(Le))},_updateSelectedItems:function(tt){var Le=this,gt=tt.addedItemKeys,tn=tt.removedItemKeys;if(Le._rendered&&(gt.length||tn.length)){var Pe=Le._selectionChangePromise;if(!Le._rendering){var ge,$e=[],Ce=[];Le._editStrategy.beginCache();for(var De=0;De<gt.length;De++)ge=Le._getIndexByKey(gt[De]),$e.push(ge),Le._addSelection(ge);for(var Ye=0;Ye<tn.length;Ye++)ge=Le._getIndexByKey(tn[Ye]),Ce.push(ge),Le._removeSelection(ge);Le._editStrategy.endCache(),Le._updateSelection($e,Ce)}(0,l.gx)(Pe).done(function(){Le._fireSelectionChangeEvent(tt.addedItems,tt.removedItems)})}},_fireSelectionChangeEvent:function(tt,Le){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:tt,removedItems:Le})},_updateSelection:C.ZT,_setAriaSelected:function(tt,Le){this.setAria("selected",Le,tt)},_removeSelection:function(tt){var Le=this._editStrategy.getItemElement(tt);Ae(tt)&&(this._processSelectableItem(Le,!1),c.Z.triggerHandler(Le,"stateChanged",!1))},_addSelection:function(tt){var Le=this._editStrategy.getItemElement(tt);Ae(tt)&&(this._processSelectableItem(Le,!0),c.Z.triggerHandler(Le,"stateChanged",!0))},_isItemSelected:function(tt){var Le=this._getKeyByIndex(tt);return this._selection.isItemSelected(Le,{checkPending:!0})},_optionChanged:function(tt){switch(tt.name){case"selectionMode":this._invalidate();break;case"dataSource":(!tt.value||Array.isArray(tt.value)&&!tt.value.length)&&this.option("selectedItemKeys",[]),this.callBase(tt);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(tt.name).done(()=>this._normalizeSelectedItems());break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(tt)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(tt){if(tt.data(ue))return(new l.BH).resolve().promise();tt.data(ue,!0);var Le=new l.BH,gt={cancel:!1},tn=this._itemEventHandler(tt,"onItemDeleting",gt,{excludeValidators:["disabled","readOnly"]});return(0,l.gx)(tn).always(function(Pe){var $e=!tn,ge=!$e&&"resolved"===tn.state(),Ce=!!arguments.length,De=$e||ge&&!Ce||ge&&Pe;(0,l.gx)((0,l.p4)(gt.cancel)).always(function(){tt.data(ue,!1)}).done(function(Ye){De&&!Ye?Le.resolve():Le.reject()}).fail(Le.reject)}.bind(this)),Le.promise()},_deleteItemFromDS:function(tt){var Le=this._dataController,gt=new l.BH,tn=this.option("disabled"),Pe=Le.store();if(!Pe)return(new l.BH).resolve().promise();if(!Pe.remove)throw pe.Z.Error("E1011");return this.option("disabled",!0),Pe.remove(Le.keyOf(this._getItemData(tt))).done(function($e){void 0!==$e?gt.resolve():gt.reject()}).fail(function(){gt.reject()}),gt.always(function(){this.option("disabled",tn)}.bind(this)),gt},_tryRefreshLastPage:function(){var tt=new l.BH;return this._isLastPage()||this.option("grouped")?tt.resolve():this._refreshLastPage().done(function(){tt.resolve()}),tt.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataController.load()},_updateSelectionAfterDelete:function(tt){var Le=this._getKeyByIndex(tt);this._selection.deselect([Le])},_updateIndicesAfterIndex:function(tt){for(var Le=this._itemElements(),gt=tt+1;gt<Le.length;gt++)(0,o.Z)(Le[gt]).data(this._itemIndexKey(),gt-1)},_simulateOptionChange:function(tt){var Le=this.option(tt);Le instanceof re.o||this._optionChangedAction({name:tt,fullName:tt,value:Le})},isItemSelected:function(tt){return this._isItemSelected(this._editStrategy.getNormalizedIndex(tt))},selectItem:function(tt){if("none"!==this.option("selectionMode")){var Le=this._editStrategy.getNormalizedIndex(tt);if(Ae(Le)){var gt=this._getKeyByIndex(Le);if(!this._selection.isItemSelected(gt)){if("single"===this.option("selectionMode"))return this._selection.setSelection([gt]);var tn=this.option("selectedItemKeys")||[];return this._selection.setSelection([...tn,gt],[gt])}}}},unselectItem:function(tt){var Le=this._editStrategy.getNormalizedIndex(tt);if(Ae(Le)){var gt=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&gt.length<=1)){var tn=this._getKeyByIndex(Le);this._selection.isItemSelected(tn,{checkPending:!0})&&this._selection.deselect([tn])}}},_deleteItemElementByIndex:function(tt){this._updateSelectionAfterDelete(tt),this._updateIndicesAfterIndex(tt),this._editStrategy.deleteItemAtIndex(tt)},_afterItemElementDeleted:function(tt,Le){var gt=this._dataController.getDataSource()?"dataSource":"items";this._simulateOptionChange(gt),this._itemEventHandler(tt,"onItemDeleted",Le,{beforeExecute:function(){tt.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(tt){var Le=this,gt=new l.BH,tn=this._editStrategy.getItemElement(tt),Pe=this._editStrategy.getNormalizedIndex(tt),$e=this._itemResponseWaitClass();return Ae(Pe)?this._waitDeletingPrepare(tn).done(function(){tn.addClass($e);var ge=Le._extendActionArgs(tn);Le._deleteItemFromDS(tn).done(function(){Le._deleteItemElementByIndex(Pe),Le._afterItemElementDeleted(tn,ge),Le._tryRefreshLastPage().done(function(){gt.resolveWith(Le)})}).fail(function(){tn.removeClass($e),gt.rejectWith(Le)})}).fail(function(){gt.rejectWith(Le)}):gt.rejectWith(Le),gt.promise()},reorderItem:function(tt,Le){var gt=new l.BH,tn=this,Pe=this._editStrategy,$e=Pe.getItemElement(tt),ge=Pe.getItemElement(Le),Ce=Pe.getNormalizedIndex(tt),De=Pe.getNormalizedIndex(Le),Ye=this._dataController.getDataSource()?"dataSource":"items";return Ae(Ce)&&Ae(De)&&Ce!==De?gt.resolveWith(this):gt.rejectWith(this),gt.promise().done(function(){ge[Pe.itemPlacementFunc(Ce,De)]($e),Pe.moveItemAtIndexToIndex(Ce,De),this._updateIndicesAfterIndex(Ce),tn.option("selectedItems",tn._getItemsByKeys(tn._selection.getSelectedItemKeys(),tn._selection.getSelectedItems())),"items"===Ye&&tn._simulateOptionChange(Ye),tn._itemEventHandler($e,"onItemReordered",{fromIndex:Pe.getIndex(Ce),toIndex:Pe.getIndex(De)},{excludeValidators:["disabled","readOnly"]})})}})},5172:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>d});var o=u(9904),c=u(5031),I=u(7674),C=u(9897),g=u(1828),a=c.Z.abstract;const d=c.Z.inherit({ctor:function(h){this._collectionWidget=h},getIndexByItemData:a,getItemDataByIndex:a,getKeysByItems:a,getItemsByKeys:a,itemsGetter:a,getKeyByIndex:function(h){var v=this._denormalizeItemIndex(h);return this.getKeysByItems([this.getItemDataByIndex(v)])[0]},_equalKeys:function(h,v){return this._collectionWidget._isKeySpecified()?(0,I.bY)(h,v):h===v},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:a,getNormalizedIndex:function(h){return this._isNormalizedItemIndex(h)?h:this._isItemIndex(h)?this._normalizeItemIndex(h):this._isNode(h)?this._getNormalizedItemIndex(h):this._normalizeItemIndex(this.getIndexByItemData(h))},getIndex:function(h){return this._isNormalizedItemIndex(h)?this._denormalizeItemIndex(h):this._isItemIndex(h)?h:this._isNode(h)?this._denormalizeItemIndex(this._getNormalizedItemIndex(h)):this.getIndexByItemData(h)},getItemElement:function(h){if(this._isNormalizedItemIndex(h))return this._getItemByNormalizedIndex(h);if(this._isItemIndex(h))return this._getItemByNormalizedIndex(this._normalizeItemIndex(h));if(this._isNode(h))return(0,o.Z)(h);var v=this._normalizeItemIndex(this.getIndexByItemData(h));return this._getItemByNormalizedIndex(v)},_isNode:h=>C.Z.isNode(h&&(0,g.ZU)(h)?h.get(0):h),deleteItemAtIndex:a,itemPlacementFunc:function(h,v){return this._itemsFromSameParent(h,v)&&h<v?"after":"before"},moveItemAtIndexToIndex:a,_isNormalizedItemIndex:function(h){return"number"==typeof h&&Math.round(h)===h},_isItemIndex:a,_getNormalizedItemIndex:a,_normalizeItemIndex:a,_denormalizeItemIndex:a,_getItemByNormalizedIndex:a,_itemsFromSameParent:a}).inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(h){var v=this._collectionWidget.keyOf.bind(this._collectionWidget);return v?this.getIndexByKey(v(h)):this._getPlainItems().indexOf(h)},getItemDataByIndex:function(h){return this._getPlainItems()[h]},deleteItemAtIndex:function(h){this._getPlainItems().splice(h,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(h){var v=this._collectionWidget.keyOf.bind(this._collectionWidget),x=h;if(v){x=[];for(var b=0;b<h.length;b++)x.push(v(h[b]))}return x},getIndexByKey:function(h){var v=this._cache,x=v&&v.keys||this.getKeysByItems(this._getPlainItems());if(v&&!v.keys&&(v.keys=x),"object"!=typeof h)return x.indexOf(h);for(var b=0,y=x.length;b<y;b++)if(this._equalKeys(h,x[b]))return b;return-1},getItemsByKeys:function(h,v){return(v||h).slice()},moveItemAtIndexToIndex:function(h,v){var x=this._getPlainItems(),b=x[h];x.splice(h,1),x.splice(v,0,b)},_isItemIndex:function(h){return"number"==typeof h&&Math.round(h)===h},_getNormalizedItemIndex:function(h){return this._collectionWidget._itemElements().index(h)},_normalizeItemIndex:function(h){return h},_denormalizeItemIndex:function(h){return h},_getItemByNormalizedIndex:function(h){return h>-1?this._collectionWidget._itemElements().eq(h):null},_itemsFromSameParent:function(){return!0}})},5286:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>v});var o=u(9904),c=u(7307),I=u(5873),C=u(2718),g=u(1771),a=u(2701),p=u(4270),s=u(31),l=u(9897),d=u(7674),h="__dx_key__";const v=c.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var x;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=b=>{this._dataController.getDataSource()&&!this._dataController.isLoaded()&&(this._correctionIndex=0),this._correctionIndex&&b.storeLoadOptions&&(b.storeLoadOptions.skip+=this._correctionIndex)},null===(x=this._dataController)||void 0===x||x.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(x){var b=(0,o.Z)(),y=this.key();return this.itemElements().each((E,S)=>{var O=(0,o.Z)(S),w=this._getItemData(O);if(y?(0,a.OI)(y,this.keyOf(w),x):this._isItemEquals(w,x))return b=O,!1}),b},_dataSourceChangedHandler:function(x,b){null!=b&&b.changes?this._modifyByChanges(b.changes):(this.callBase(x,b),this._refreshItemsCache())},_isItemEquals:function(x,b){x&&x[h]&&(x=x.data);try{return JSON.stringify(x)===JSON.stringify(b)}catch{return x===b}},_isItemStrictEquals:function(x,b){return this._isItemEquals(x,b)},_shouldAddNewGroup:function(x,b){var y=!1;return this.option("grouped")&&(x.length||(y=!0),(0,C.S6)(x,(E,S)=>{"insert"===S.type&&(y=!0,(0,C.S6)(b,(O,w)=>{if(void 0!==S.data.key&&S.data.key===w.key)return y=!1,!1}))})),y},_partialRefresh:function(){if(this.option("repaintChangesOnly")){var x=(0,s.h)(this._itemsCache,this._editStrategy.itemsGetter(),b=>b&&void 0!==b[h]?b[h]:this.keyOf(b),this._isItemStrictEquals.bind(this));if(x&&this._itemsCache.length&&!this._shouldAddNewGroup(x,this._itemsCache))return this._modifyByChanges(x,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var x=this._editStrategy.itemsGetter();try{this._itemsCache=(0,I.l)(!0,[],x),this.key()||(this._itemsCache=this._itemsCache.map((b,y)=>({[h]:x[y],data:b})))}catch{this._itemsCache=(0,I.l)([],x)}}},_dispose:function(){this._dataController.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(x,b,y,E){if(E)this._renderItem(y.index,y.data,null,this._findItemElementByKey(y.key));else{var S=b[(0,g.qk)(x,b,y.key)];S&&(0,g.Vx)(x,b,y.key,y.data).done(()=>{this._renderItem(b.indexOf(S),S,null,this._findItemElementByKey(y.key))})}},_insertByChange:function(x,b,y,E){(0,p.gx)(E||(0,g.$T)(x,b,y.data,y.index)).done(()=>{var S;this._beforeItemElementInserted(y);var O=this._getItemContainer(y.data);this._renderItem(null!==(S=y.index)&&void 0!==S?S:b.length,y.data,O),this._afterItemElementInserted(),this._correctionIndex++})},_getItemContainer:function(x){return this._itemContainer()},_updateSelectionAfterRemoveByChange:function(x){var b=this.option("selectedIndex");b>x?this.option("selectedIndex",b-1):b===x&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(x){var b=this.option("selectedIndex");x.index<=b&&this.option("selectedIndex",b+1)},_afterItemElementInserted:d.ZT,_removeByChange:function(x,b,y,E){var S=E?y.index:(0,g.qk)(x,b,y.key);if(E?y.oldItem:b[S]){var w=this._findItemElementByKey(y.key),T=this._extendActionArgs(w);this._waitDeletingPrepare(w).done(()=>{E?(this._updateIndicesAfterIndex(S-1),this._afterItemElementDeleted(w,T),this._updateSelectionAfterRemoveByChange(S)):(this._deleteItemElementByIndex(S),this._afterItemElementDeleted(w,T))}),this._correctionIndex--}},_modifyByChanges:function(x,b){var y=this._editStrategy.itemsGetter(),E={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},S=this._dataController,O=S.paginate(),w=S.group();(O||w)&&(x=x.filter(T=>"insert"!==T.type||void 0!==T.index)),x.forEach(T=>this["_".concat(T.type,"ByChange")](E,y,T,b)),this._renderedItemsCount=y.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(x,b,y){var E=x.children(this._itemSelector()).get(y);l.Z.insertElement(x.get(0),b.get(0),E)},_optionChanged:function(x){switch(x.name){case"items":this._partialRefresh(x.value)||this.callBase(x);break;case"dataSource":(!this.option("repaintChangesOnly")||!x.value)&&this.option("items",[]),this.callBase(x);break;case"repaintChangesOnly":break;default:this.callBase(x)}}})},7565:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>P});var o=u(9904),c=u(913),I=u(3058),C=u(7014),g=u(5873),a=u(8506),p=u(4694),s="dx-colorbox",l=s+"-input",d=l+"-container",h=s+"-color-result-preview",v=s+"-color-is-not-defined",x=s+"-overlay",w=C.Z.prototype,T={makeTransparentBackground:w._makeTransparentBackground.bind(w),makeRgba:w._makeRgba.bind(w)},k=p.Z.inherit({_supportedKeys:function(){var B=function(W){if(W.stopPropagation(),this.option("opened"))return W.preventDefault(),!0};return(0,g.l)(this.callBase(),{tab:function(W){if(this.option("opened")){var z=W.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();z&&(c.Z.trigger(z,"focus"),z.select()),W.preventDefault()}},enter:this._enterKeyHandler,leftArrow:B,rightArrow:B,upArrow:function(W){return this.option("opened")?!W.altKey||(this.close(),!1):(W.preventDefault(),!1)},downArrow:function(W){return this.option("opened")||W.altKey?!(!this.option("opened")&&W.altKey&&(this._validatedOpening(),1)):(W.preventDefault(),!1)}})},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,buttonsLocation:"bottom after"})},_popupHidingHandler:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig:function(){return(0,g.l)(this.callBase(),{width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var B=this._popup.bottomToolbar();B&&(B.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),B.find(".dx-popup-done").addClass("dx-colorview-apply-button"),B.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.$overlayContent().addClass(x);var B=(0,o.Z)("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(B,C.Z,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),c.Z.on(B,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_getFirstPopupElement:function(){return(0,o.Z)(this._colorView._rgbInputs[0].element()).find("input")},_applyNewColor:function(B){this.option("value",B),B&&T.makeTransparentBackground(this._$colorResultPreview,B),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var B=this;return{value:B.option("value"),matchValue:B.option("value"),editAlphaChannel:B.option("editAlphaChannel"),applyValueMode:B.option("applyValueMode"),focusStateEnabled:B.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(W){var{event:z}=W;B._colorViewEnterKeyPressed=!0,B._colorView.option("value")!==B.option("value")&&(B._saveValueChangeEvent(z),B._applyNewColor(B._colorView.option("value")),B.close())},onValueChanged:function(W){var{event:z,value:V,previousValue:U}=W,K="instantly"===B.option("applyValueMode");T.makeRgba(V)===U||!K&&!B._colorViewEnterKeyPressed||B._shouldSaveEmptyValue||(z&&B._saveValueChangeEvent(z),B._applyNewColor(V))}}},_enterKeyHandler:function(B){var W=this._input().val(),{value:z,editAlphaChannel:V}=this.option(),U=z&&V?T.makeRgba(z):z;if(!W)return!1;if(!new I.Z(W).colorIsInvalid){if(W!==U&&(this._applyColorFromInput(W),this._saveValueChangeEvent(B),this.option("value",this.option("editAlphaChannel")?T.makeRgba(W):W)),this._colorView){var Y=this._colorView.option("value");z!==Y&&(this._saveValueChangeEvent(B),this.option("value",Y))}return this.close(),!1}this._input().val(U)},_applyButtonHandler:function(B){this._saveValueChangeEvent(B.event),this._applyNewColor(this._colorView.option("value")),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),this.callBase()},_getKeyboardListeners(){return this.callBase().concat([this._colorView])},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass(s),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass(l),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner((0,o.Z)("<div>").addClass(d)),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=(0,o.Z)("<div>").addClass(h).appendTo(this._$textEditorInputContainer),this.option("value")?T.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass(v)},_renderValue:function(){var{value:B,editAlphaChannel:W}=this.option(),V=B&&W?T.makeRgba(B):B;return this.option("text",V),this.callBase()},_resetInputValue:function(){var B=this._input(),W=this.option("value");B.val(W),this._updateColorViewValue(W)},_updateColorViewValue:function(B){this._colorView&&this._colorView.option({value:B,matchValue:B})},_valueChangeEventHandler:function(B){var W=this._input().val();W&&(W=this._applyColorFromInput(W),this._updateColorViewValue(W)),this.callBase(B,W)},_applyColorFromInput:function(B){return new I.Z(B).colorIsInvalid&&(this._resetInputValue(),B=this.option("value")),B},_clean:function(){this.callBase(),delete this._shouldSaveEmptyValue},_optionChanged:function(B){var W=B.value,z=B.name;switch(z){case"value":this._$colorBoxInputContainer.toggleClass(v,!W),W?T.makeTransparentBackground(this._$colorResultPreview,W):this._$colorResultPreview.removeAttr("style"),null===W&&(this._shouldSaveEmptyValue=!0),this._updateColorViewValue(W),this._shouldSaveEmptyValue=!1,this.callBase(B);break;case"applyButtonText":case"cancelButtonText":this.callBase(B),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(z,W);break;default:this.callBase(B)}}});(0,a.Z)("dxColorBox",k);const P=k},7014:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ce});var o=u(1805),c=u(9904),I=u(913),C=u(6961),g=u(5873),a=u(3058),p=u(9009),s=u(2941),l=u(8506),d=u(1031),h=u(1946),v=u(3447),x=u(130),b=u(8225),y=u(227),O="dx-colorview-container-row",P="dx-colorview-palette-gradient",B="dx-colorview-palette-gradient-white",W="dx-colorview-palette-gradient-black",Be="dx-colorview-color-preview",_e="dx-colorview-color-preview-color-current",ye="dx-colorview-color-preview-color-new",ne=d.Z.inherit({_supportedKeys:function(){var le=this.option("rtlEnabled"),pe=this,Se=function(tt){var Le=100/pe._paletteWidth;return tt.shiftKey&&(Le*=pe.option("keyStep")),Le=Le>1?Le:1,Math.round(Le)},re=function(tt){var Le=pe._currentColor.hsv.s+tt;Le>100?Le=100:Le<0&&(Le=0),pe._currentColor.hsv.s=Le,ue()},te=function(tt){var Le=100/pe._paletteHeight;return tt.shiftKey&&(Le*=pe.option("keyStep")),Le=Le>1?Le:1,Math.round(Le)},ie=function(tt){var Le=pe._currentColor.hsv.v+tt;Le>100?Le=100:Le<0&&(Le=0),pe._currentColor.hsv.v=Le,ue()};function ue(){pe._placePaletteHandle(),pe._updateColorFromHsv(pe._currentColor.hsv.h,pe._currentColor.hsv.s,pe._currentColor.hsv.v)}var be=function(tt){var Le=360/(pe._hueScaleWrapperHeight-pe._hueScaleHandleHeight);return tt.shiftKey&&(Le*=pe.option("keyStep")),Le>1?Le:1},Ae=function(tt){pe._currentColor.hsv.h+=tt,pe._placeHueScaleHandle();var Le=(0,C.jt)(pe._$hueScaleHandle);pe._updateColorHue(Le.top+pe._hueScaleHandleHeight/2)},Ne=function(tt){var Le=1/pe._alphaChannelScaleWorkWidth;return tt.shiftKey&&(Le*=pe.option("keyStep")),Le=Le>.01?Le:.01,le?-Le:Le},mt=function(tt){pe._currentColor.a+=tt,pe._placeAlphaChannelHandle();var Le=(0,C.jt)(pe._$alphaChannelHandle);pe._calculateColorTransparencyByScaleWidth(Le.left+pe._alphaChannelHandleWidth/2)};return(0,g.l)(this.callBase(),{upArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&(this._saveValueChangeEvent(tt),Ae(be(tt))):this._currentColor.hsv.v<100&&(this._saveValueChangeEvent(tt),ie(te(tt)))},downArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),this._saveValueChangeEvent(tt),Ae(-be(tt))):this._currentColor.hsv.v>0&&(this._saveValueChangeEvent(tt),ie(-te(tt)))},rightArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?(le?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(tt),mt(-Ne(tt))):this._currentColor.hsv.s<100&&(this._saveValueChangeEvent(tt),re(Se(tt)))},leftArrow:function(tt){tt.preventDefault(),tt.stopPropagation(),(0,b.j1)(tt)?(le?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&(this._saveValueChangeEvent(tt),mt(Ne(tt))):this._currentColor.hsv.s>0&&(this._saveValueChangeEvent(tt),re(-Se(tt)))},enter:function(tt){this._fireEnterKeyPressed(tt)}})},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.Z.real().deviceType&&!s.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(le){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:le})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(le){var pe=new a.Z(le=le||"#000000");pe.colorIsInvalid?this.option("value",this._currentColor.baseColor):(!this._currentColor||this._makeRgba(this._currentColor)!==this._makeRgba(pe))&&(this._currentColor=pe,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,pe))},_setBaseColor:function(le){var Se=new a.Z(le||"#000000");Se.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(Se))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,Se)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(le,pe){pe instanceof a.Z||(pe=new a.Z(pe)),le.css("backgroundColor",this._makeRgba(pe))},_makeRgba:function(le){return le instanceof a.Z||(le=new a.Z(le)),"rgba("+[le.r,le.g,le.b,le.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var le=this.$element();this._$colorPickerContainer=(0,c.Z)("<div>").addClass("dx-colorview-container").appendTo(le),this._renderHtmlRows()},_renderHtmlRows:function(le){var pe=this._$colorPickerContainer.find("."+O),Se=pe.length,te=Se-(this.option("editAlphaChannel")?2:1);if(te>0&&pe.eq(-1).remove(),te<0){te=Math.abs(te);var ue,ie=[];for(ue=0;ue<te;ue++)ie.push((0,c.Z)("<div>").addClass(O));if(Se)for(ue=0;ue<ie.length;ue++)pe.eq(0).after(ie[ue]);else this._$colorPickerContainer.append(ie)}},_renderHtmlCellInsideRow:function(le,pe,Se){return(0,c.Z)("<div>").addClass("dx-colorview-container-cell").addClass(Se).appendTo(pe.find("."+O).eq(le))},_renderPalette:function(){var le=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),pe=(0,c.Z)("<div>").addClass([P,B].join(" ")),Se=(0,c.Z)("<div>").addClass([P,W].join(" "));this._$palette=(0,c.Z)("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(le),this._paletteHeight=(0,o.Cr)(this._$palette),this._paletteWidth=(0,o.dz)(this._$palette),this._renderPaletteHandle(),this._$palette.append([pe,Se])},_renderPaletteHandle:function(){this._$paletteHandle=(0,c.Z)("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,x.Z,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:le=>{var{event:pe}=le,Se=(0,C.jt)(this._$paletteHandle);this._updateByDrag=!0,this._saveValueChangeEvent(pe),this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(Se),this._calculateColorValue(Se))}}),this._paletteHandleWidth=(0,o.dz)(this._$paletteHandle),this._paletteHandleHeight=(0,o.Cr)(this._$paletteHandle),this._placePaletteHandle()},_placePaletteHandle:function(){(0,C.pB)(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(le){var pe=Math.floor(le.top+this._paletteHandleHeight/2);return 100-Math.round(100*pe/this._paletteHeight)},_calculateColorSaturation:function(le){var pe=Math.floor(le.left+this._paletteHandleWidth/2);return Math.round(100*pe/this._paletteWidth)},_updateColorFromHsv:function(le,pe,Se){var re=this._currentColor.a;this._currentColor=new a.Z("hsv("+[le,pe,Se].join(",")+")"),this._currentColor.a=re,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var le=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=(0,c.Z)("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(le),this._$hueScale=(0,c.Z)("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=(0,o.Cr)(this._$hueScale),this._hueScaleWrapperHeight=(0,o.zp)(this._$hueScaleWrapper),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=(0,c.Z)("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,x.Z,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:le=>{var{event:pe}=le;this._updateByDrag=!0,this._saveValueChangeEvent(pe),this._updateColorHue((0,C.jt)(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}}),this._hueScaleHandleHeight=(0,o.Cr)(this._$hueScaleHandle),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var le=this._hueScaleWrapperHeight,pe=this._hueScaleHandleHeight,Se=(le-pe)*(360-this._currentColor.hsv.h)/360;le<Se+pe&&(Se=le-pe),Se<0&&(Se=0),(0,C.pB)(this._$hueScaleHandle,{top:Math.round(Se)})},_updateColorHue:function(le){var pe=360-Math.round(360*(le-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),Se=this._currentColor.hsv.s,re=this._currentColor.hsv.v;this._isTopColorHue=!1,(pe=pe<0?0:pe)>=360&&(this._isTopColorHue=!0,pe=0),this._updateColorFromHsv(pe,Se,re),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var le=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=(0,c.Z)("<div>").addClass("dx-colorview-controls-container").appendTo(le)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var le=(0,c.Z)("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),pe=(0,c.Z)("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(le);this._$currentColor=(0,c.Z)("<div>").addClass([Be,ye].join(" ")),this._$baseColor=(0,c.Z)("<div>").addClass([Be,_e].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),pe.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find("."+O).eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:p.Z.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:p.Z.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:p.Z.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(le){var pe=(0,c.Z)("<div>"),Se=(0,c.Z)("<label>").addClass(le.labelClass).text(le.labelText+":").append(pe);I.Z.off(Se,y.u),I.Z.on(Se,y.u,function(ue){ue.preventDefault()});var re=le.editorType,te=(0,g.l)({value:le.value,onValueChanged:le.onValueChanged,onKeyboardHandled:ue=>this._keyboardHandler(ue)},{stylingMode:this.option("stylingMode")});return re===h.Z&&(te.min=le.min||0,te.max=le.max||255,te.step=le.step||1),new re(pe,te).registerKeyHandler("enter",function(ue){this._fireEnterKeyPressed(ue)}.bind(this)),this.setAria("label",le.labelAriaText,pe),Se},hexInputOptions:function(){return{editorType:v.Z,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:p.Z.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=v.Z.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var le=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),pe=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(le),Se=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(pe);this._$alphaChannelScale=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(Se),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(le)},_makeCSSLinearGradient:function(le){var pe=this._currentColor,Se=[pe.r,pe.g,pe.b].join(","),re=pe.toHex().replace("#","");le.attr("style",function(te,ie){var ue=this.option("rtlEnabled"),be="rgba("+te+", "+(ue?"1":"0")+")",Ae="rgba("+te+", "+(ue?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+be+", "+Ae+")","background-image: -moz-linear-gradient(-90deg, "+be+", "+Ae+")","background-image: -o-linear-gradient(-90deg, "+be+", "+Ae+")","background-image: linear-gradient(-90deg, "+be+", "+Ae+")"].join(";")}.call(this,Se,re))},_renderAlphaChannelInput:function(){var le=this,pe=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);le._alphaChannelInput=this._renderEditorWithLabel({editorType:h.Z,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(Se){var re=Se.value;re=le._currentColor.isValidAlpha(re)?re:le._currentColor.a,Se.event&&le._saveValueChangeEvent(Se.event),le._updateColorTransparency(re),le._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:p.Z.format("dxColorView-ariaAlpha")}).appendTo(pe).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(le){this._currentColor.a=le,this.applyColor()},_renderAlphaChannelHandle:function(le){this._$alphaChannelHandle=(0,c.Z)("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(le),this._createComponent(this._$alphaChannelHandle,x.Z,{contentTemplate:null,boundary:le,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:pe=>{var{event:Se}=pe;this._updateByDrag=!0;var te=(0,C.jt)(this._$alphaChannelHandle).left+this._alphaChannelHandleWidth/2;this._saveValueChangeEvent(Se),this._calculateColorTransparencyByScaleWidth(te)}}),this._alphaChannelHandleWidth=(0,o.dz)(this._$alphaChannelHandle),this._alphaChannelScaleWorkWidth=(0,o.dz)(le)-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(le){var pe=(le-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,Se=this.option("rtlEnabled");pe=Se?pe:1-pe,le>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?pe=Se?1:0:pe<1&&(pe=pe.toFixed(2));var re=this._alphaChannelInput.option("value");pe=Math.max(pe,0),(pe=Math.min(pe,1))===re?this._updateByDrag=!1:this._alphaChannelInput.option("value",pe)},_placeAlphaChannelHandle:function(){var le=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);le<0&&(le=0),this._alphaChannelScaleWorkWidth<le&&(le=this._alphaChannelScaleWorkWidth),(0,C.pB)(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-le:le})},applyColor:function(){var le=this.option("value"),pe=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),pe===le?this._updateByDrag=!1:this.option("value",pe)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(le,pe){var Se,re;le?re=this._validateHex("#"+this._hexInput.option("value")):(Se=this._validateRgb(),this._alphaChannelInput?(Se.push(this._alphaChannelInput.option("value")),re="rgba("+Se.join(", ")+")"):re="rgb("+Se.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new a.Z(re),this._saveValueChangeEvent(pe.event),this.applyColor(),this._refreshMarkup())},_validateHex:function(le){return this._currentColor.isValidHex(le)?le:this._currentColor.toHex()},_validateRgb:function(){var le=this._rgbInputs[0].option("value"),pe=this._rgbInputs[1].option("value"),Se=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(le,pe,Se)||(le=this._currentColor.r,pe=this._currentColor.g,Se=this._currentColor.b),[le,pe,Se]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(le){var pe=le.value;switch(le.name){case"value":this._setCurrentColor(pe),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(le);break;case"matchValue":this._setBaseColor(pe);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(le)}}});(0,l.Z)("dxColorView",ne);const ce=ne},1875:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=u(7138).Z},7138:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ye});var o=u(9904),c=u(9897),I=u(913),C=u(6492),g=u(8506),a=u(7674),p=u(1828),s=u(6520),l=u(6881),d=u(2718),h=u(5873),v=u(4514),x=u(3553),b=u(5791),y=u(2941),E=u(8225),S=u(3576),O=u(7543),w=u(4270),T=u(2480),k=u(5180),R="dx-menu",P=R+"-item",B=P+"-expanded",z=R+"-items-container",V=P+"-wrapper",U="dx-submenu",ee="dx-state-hover",Z="down",Te=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],Be=["up",Z,"first","last"],ze="dxcontextmenu",ae=(0,v.Jj)();class _e extends O.Z{getShowEvent(ce){var le=null;return(0,p.Kn)(ce)?null!==ce.name&&(le=ce.name||ze):le=ce,le}getShowDelay(ce){return(0,p.Kn)(ce)&&ce.delay}_getDefaultOptions(){return(0,h.l)(super._getDefaultOptions(),{showEvent:ze,hideOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>!(0,v.Ym)(),options:{animation:null}}])}_setDeprecatedOptions(){super._setDeprecatedOptions(),(0,h.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.2",alias:"hideOnOutsideClick"}})}_initActions(){this._actions={},(0,d.S6)(Te,(ce,le)=>{this._actions[le]=this._createActionByOption(le)||a.ZT})}_setOptionsByReference(){super._setOptionsByReference(),(0,h.l)(this._optionsByReference,{animation:!0,selectedItem:!0})}_focusInHandler(){}_itemContainer(){return this._overlay?this._overlay.$content():(0,o.Z)()}_eventBindingTarget(){return this._itemContainer()}itemsContainer(){return this._overlay?this._overlay.$content():void 0}_supportedKeys(){return(0,h.l)(super._supportedKeys(),{space:()=>{var ce=(0,o.Z)(this.option("focusedElement"));this.hide(),ce.length&&this._isSelectionEnabled()&&this.selectItem(ce[0])},escape:this.hide})}_getActiveItem(){var ce=this._getAvailableItems(),le=ce.filter(".".concat("dx-state-focused")),pe=ce.filter(".".concat(ee));return pe.closest(".".concat(z)).find(".".concat(P)).index(le)>=0?le:pe.length?pe:super._getActiveItem()}_moveFocus(ce){var ie,le=this._getItemsByLocation(ce),pe=this._getActiveItem(!0),Se=this.itemsContainer().find(".".concat(ee)),te=!(!(0,o.Z)(this.option("focusedElement")).length&&!Se.length);switch(ce){case"up":ie=te?this._prevItem(le):pe,this._setFocusedElement(ie),pe.is(le.first())&&this._actions.onLeftFirstItem(pe);break;case Z:ie=te?this._nextItem(le):pe,this._setFocusedElement(ie),pe.is(le.last())&&this._actions.onLeftLastItem(pe);break;case"right":ie=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(le,ce),this._setFocusedElement(ie);break;case"left":ie=this.option("rtlEnabled")?this._expandSubmenuHandler(le,ce):this._hideSubmenuHandler(),this._setFocusedElement(ie);break;case"first":ie=le.first(),this._setFocusedElement(ie);break;case"last":ie=le.last(),this._setFocusedElement(ie);break;default:return super._moveFocus(ce)}}_setFocusedElement(ce){ce&&0!==ce.length&&this.option("focusedElement",(0,l.u)(ce))}_getItemsByLocation(ce){var pe,le=this._getActiveItem(!0);return Be.includes(ce)&&(pe=le.closest(".".concat(z)).children().children()),this._getAvailableItems(pe)}_getAriaTarget(){return this.$element()}_refreshActiveDescendant(){if((0,p.$K)(this._overlay)){var ce=this._overlay.$content();super._refreshActiveDescendant(ce)}}_hideSubmenuHandler(){var ce=this._getActiveItem(!0),le=ce.parents(".".concat(B)).first();return le.length?(this._hideSubmenusOnSameLevel(le),this._hideSubmenu(ce.closest(".".concat(U))),le):(this._actions.onCloseRootSubmenu(ce),ce)}_expandSubmenuHandler(ce,le){var pe=this._getActiveItem(!0),Se=this._getItemData(pe),re=this._dataAdapter.getNodeByItem(Se),te=this._hasSubmenu(re),ie=pe.children(".".concat(U));if(te&&!pe.hasClass("dx-state-disabled"))return(!ie.length||"hidden"===ie.css("visibility"))&&this._showSubmenu(pe),this._nextItem(this._getItemsByLocation(le));this._actions.onExpandLastSubmenu(pe)}_clean(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),super._clean()}_initMarkup(){this.$element().addClass("dx-has-context-menu"),super._initMarkup()}_render(){super._render(),this._renderVisibility(this.option("visible")),this._addWidgetClass()}_renderContentImpl(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}_attachKeyboardEvents(){!this._keyboardListenerId&&this._focusTarget().length&&super._attachKeyboardEvents()}_renderContextMenuOverlay(){if(!this._overlay){var ce=this._getOverlayOptions();this._overlay=this._createComponent((0,o.Z)("<div>").appendTo(this._$element),S.Z,ce);var le=this._overlay.$content();le.addClass("dx-context-menu"),this._addCustomCssClass(le),this._addPlatformDependentClass(le),this._attachContextMenuEvent()}}preventShowingDefaultContextMenuAboveOverlay(){var ce=this._itemContainer(),le=(0,E.V4)(T.u,this.NAME);I.Z.off(ce,le,".".concat(U)),I.Z.on(ce,le,".".concat(U),(pe=>{pe.stopPropagation(),pe.preventDefault(),I.Z.off(ce,le,".".concat(U))}).bind(this))}_itemContextMenuHandler(ce){super._itemContextMenuHandler(ce),ce.stopPropagation()}_addPlatformDependentClass(ce){y.Z.current().phone&&ce.addClass("dx-menu-phone-overlay")}_detachShowContextMenuEvents(ce){var le=this.getShowEvent(this.option("showEvent"));if(le){var pe=(0,E.V4)(le,this.NAME);this._showContextMenuEventHandler?I.Z.off(c.Z.getDocument(),pe,ce,this._showContextMenuEventHandler):I.Z.off((0,o.Z)(ce),pe)}}_attachShowContextMenuEvents(){var ce=this._getTarget(),le=this.getShowEvent(this.option("showEvent"));if(le){var pe=(0,E.V4)(le,this.NAME),Se=this._createAction(te=>{var ie=this.getShowDelay(this.option("showEvent"));ie?setTimeout(()=>this._show(te.event),ie):this._show(te.event)},{validatingTargetName:"target"}),re=te=>Se({event:te,target:(0,o.Z)(te.currentTarget)});Se=this._createAction(Se),(0,p.ZU)(ce)||ce.nodeType||(0,p.FJ)(ce)?(this._showContextMenuEventHandler=void 0,I.Z.on(ce,pe,re)):(this._showContextMenuEventHandler=re,I.Z.on(c.Z.getDocument(),pe,ce,this._showContextMenuEventHandler))}}_hoverEndHandler(ce){super._hoverEndHandler(ce),ce.stopPropagation()}_renderDimensions(){}_renderContainer(ce,le){var pe=le||this._itemContainer();(ce=(0,o.Z)("<div>")).appendTo(pe).addClass(U).css("visibility",le?"hidden":"visible"),ce.parent().hasClass("dx-overlay-content")||this._addCustomCssClass(ce);var Se=super._renderContainer(ce);return le?Se:this.option("width")?Se.css("minWidth",this.option("width")):this.option("height")?Se.css("minHeight",this.option("height")):Se}_renderSubmenuItems(ce,le){this._renderItems(this._getChildNodes(ce),le),this._actions.onSubmenuCreated({itemElement:(0,l.u)(le),itemData:ce.internalFields.item,submenuElement:(0,l.u)(le.children(".".concat(U)))})}_getOverlayOptions(){var ce=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,hideOnOutsideClick:pe=>this._hideOnOutsideClickHandler(pe),propagateOutsideClick:!0,hideOnParentScroll:!0,deferRendering:!1,position:{at:ce.at,my:ce.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this),visualContainer:ae}}_overlayShownActionHandler(ce){this._actions.onShown(ce)}_overlayHidingActionHandler(ce){this._actions.onHiding(ce),ce.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}_overlayHiddenActionHandler(ce){this._actions.onHidden(ce)}_shouldHideOnOutsideClick(ce){var{closeOnOutsideClick:le,hideOnOutsideClick:pe}=this.option();return(0,p.mf)(pe)?pe(ce):(0,p.mf)(le)?le(ce):pe||le}_hideOnOutsideClickHandler(ce){if(!this._shouldHideOnOutsideClick(ce))return!1;if(c.Z.isDocument(ce.target))return!0;var le=this._getActiveItemsContainer(ce.target),pe=this._getItemsContainers(),Se=this._searchActiveItem(ce.target),re=this.$element().parents(".".concat(P)),te=Se[0]===re[0]&&Se.length&&re.length;return!(this._isIncludeOverlay(le,pe)&&Se.length)&&!te||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(Se),!1)}_getActiveItemsContainer(ce){return(0,o.Z)(ce).closest(".".concat(z))}_getItemsContainers(){return this._overlay.$content().find(".".concat(z))}_searchActiveItem(ce){return(0,o.Z)(ce).closest(".".concat(P)).eq(0)}_isIncludeOverlay(ce,le){var pe=!1;return(0,d.S6)(le,(Se,re)=>{ce.is(re)&&!pe&&(pe=!0)}),pe}_hideAllShownChildSubmenus(ce){var le=ce.find(".".concat(U)),pe=(0,h.l)([],this._shownSubmenus);le.length>0&&(0,d.S6)(pe,(Se,re)=>{var te=this._searchActiveItem(re.context).parent();te.parent().is(ce.parent().parent())&&!te.is(ce.parent())&&this._hideSubmenu(re)})}_showSubmenu(ce){var le=this._dataAdapter.getNodeByItem(this._getItemData(ce));if(this._hideSubmenusOnSameLevel(ce),this._hasSubmenu(le)){var pe=ce.children(".".concat(U)),Se=pe.length;super._showSubmenu(ce),Se||this._renderSubmenuItems(le,ce),this._isSubmenuVisible(pe)||this._drawSubmenu(ce)}}_hideSubmenusOnSameLevel(ce){var le=ce.parent(".".concat(V)).siblings().find(".".concat(B));le.length&&(le.removeClass(B),this._hideSubmenu(le.find(".".concat(U))))}_hideSubmenuGroup(ce){this._isSubmenuVisible(ce)&&this._hideSubmenuCore(ce)}_isSubmenuVisible(ce){return"visible"===ce.css("visibility")}_drawSubmenu(ce){var le=this.option("animation")?this.option("animation").show:{},pe=ce.children(".".concat(U)),Se=this._getSubmenuPosition(ce);this._overlay&&this._overlay.option("visible")&&((0,p.$K)(this._shownSubmenus)||(this._shownSubmenus=[]),this._shownSubmenus.includes(pe)||this._shownSubmenus.push(pe),le&&x.Z.stop(pe),b.Z.setup(pe,Se),le&&((0,p.PO)(le.to)&&(le.to.position=Se),this._animate(pe,le)),pe.css("visibility","visible"))}_animate(ce,le){x.Z.animate(ce,le)}_getSubmenuPosition(ce){var le=this.option("submenuDirection").toLowerCase(),Se={collision:"flip",of:ce.parent(".".concat(V)),offset:{h:0,v:-1}};switch(le){case"left":Se.at="left top",Se.my="right top";break;case"right":Se.at="right top",Se.my="left top";break;default:this.option("rtlEnabled")?(Se.at="left top",Se.my="right top"):(Se.at="right top",Se.my="left top")}return Se}_updateSubmenuVisibilityOnClick(ce){if(ce.args.length){var le=ce.args[0].itemData,pe=this._dataAdapter.getNodeByItem(le);if(pe){var Se=(0,o.Z)(ce.args[0].itemElement),re=Se.find(".".concat(U));if(this._hasSubmenu(pe)&&!re.length&&(this._renderSubmenuItems(pe,Se),re=Se.find(".".concat(U))),(Se.context!==re.context||"visible"!==re.css("visibility"))&&(this._updateSelectedItemOnClick(ce),le&&!le.disabled&&(!le||!1!==le.closeMenuOnClick)))if(0===re.length){var ue=(0,o.Z)(Se.parents(".".concat(U))[0]);this._hideSubmenu(ue),!ce.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(re)&&this._hideSubmenu(re),this._showSubmenu(Se)}}}_hideSubmenu(ce){var le=(0,h.l)([],this._shownSubmenus);(0,d.S6)(le,(pe,Se)=>{(ce.is(Se)||(0,s.r3)(ce[0],Se[0]))&&(Se.parent().removeClass(B),this._hideSubmenuCore(Se))})}_hideSubmenuCore(ce){var le=this._shownSubmenus.indexOf(ce),pe=this.option("animation")?this.option("animation").hide:null;le>=0&&this._shownSubmenus.splice(le,1),this._stopAnimate(ce),pe&&this._animate(ce,pe),ce.css("visibility","hidden")}_stopAnimate(ce){x.Z.stop(ce,!0)}_hideAllShownSubmenus(){var ce=(0,h.l)([],this._shownSubmenus);this._overlay.$content().find(".".concat(B)).removeClass(B),(0,d.S6)(ce,(pe,Se)=>{this._hideSubmenu(Se)})}_visibilityChanged(ce){ce&&this._renderContentImpl()}_optionChanged(ce){if(Te.includes(ce.name))this._initActions();else switch(ce.name){case"visible":this._renderVisibility(ce.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":ce.previousValue&&this._detachShowContextMenuEvents(ce.previousValue),this._invalidate();break;case"closeOnOutsideClick":case"hideOnOutsideClick":break;default:super._optionChanged(ce)}}_renderVisibility(ce){return ce?this._show():this._hide()}_toggleVisibility(){}_show(ce){var le={jQEvent:ce},pe=(new w.BH).reject().promise();if(this._actions.onShowing(le),le.cancel)return pe;var re,Se=this._positionContextMenu(ce);return Se&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",Se),pe=this._overlay.show(),ce&&ce.stopPropagation(),this._setAriaAttributes(),(null==ce||null===(re=ce.originalEvent)||void 0===re?void 0:re.type)===k.Z.name&&this.preventShowingDefaultContextMenuAboveOverlay()),pe}_setAriaAttributes(){this._overlayContentId="dx-".concat(new C.Z),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}_cleanAriaAttributes(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}_getTarget(){return this.option("target")||this.option("position").of||(0,o.Z)(c.Z.getDocument())}_getContextMenuPosition(){return(0,h.l)({},this.option("position"),{of:this._getTarget()})}_positionContextMenu(ce){var le=this._getContextMenuPosition(),pe=this._isInitialOptionValue("position"),Se=this._createActionByOption("onPositioning");ce&&ce.preventDefault&&pe&&(le.of=ce);var re={position:le,event:ce};return Se(re),re.cancel?le=null:re.event&&(re.event.cancel=!0,ce.preventDefault()),le}_refresh(){if((0,v.Ym)())if(this._overlay){var ce=this._overlay.option("position");super._refresh(),this._overlay&&this._overlay.option("position",ce)}else super._refresh();else super._refresh()}_hide(){var ce;return this._overlay&&(ce=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),ce||(new w.BH).reject().promise()}toggle(ce){var le=this.option("visible");return this._renderVisibility(ce=void 0===ce?!le:ce)}show(){return this.toggle(!0)}hide(){return this.toggle(!1)}}(0,g.Z)("dxContextMenu",_e);const ye=_e},7543:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ee});var o=u(9904),c=u(7674),I=u(1828),C=u(2718),g=u(5873),a=u(4594),p=u(355),s=u(5172);const d=class l extends s.Z{_getPlainItems(){return(0,C.UI)(this._collectionWidget.option("items"),function q(Z){return Z.items?[Z].concat((0,C.UI)(Z.items,q)):Z})}_stringifyItem(q){return JSON.stringify(q,(Z,X)=>"template"===Z?this._getTemplateString(X):X)}_getTemplateString(q){return"object"==typeof q?(0,o.Z)(q).text():q.toString()}};var h=u(2941),v=u(8646),x="dx-menu",b=x+"-no-icons",E=x+"-item",S=E+"-content",O=E+"-selected",w=E+"-wrapper",T=x+"-items-container",k=E+"-expanded",R=x+"-separator",P=x+"-last-group-item",B=E+"-has-text",W=E+"-has-icon",z=E+"-has-submenu",V=E+"-popout",U=V+"-container",K=E+"-text",J={show:50,hide:300};const ee=(()=>{class G extends p.Z{_getDefaultOptions(){return(0,g.l)(super._getDefaultOptions(),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}_itemDataKey(){return"dxMenuItemDataKey"}_itemClass(){return E}_setAriaSelected(){}_selectedItemClass(){return O}_widgetClass(){return"dx-menu-base"}_focusTarget(){return this._itemContainer()}_clean(){this.option("focusedElement",null),super._clean()}_supportedKeys(){return(0,g.l)(super._supportedKeys(),{space:()=>{var Z=(0,o.Z)(this.option("focusedElement"));!Z.length||!this._isSelectionEnabled()||this.selectItem(Z[0])},pageUp:c.ZT,pageDown:c.ZT})}_isSelectionEnabled(){return"single"===this.option("selectionMode")}_init(){this._activeStateUnit=".".concat(E),super._init(),this._renderSelectedItem(),this._initActions()}_getTextContainer(Z){var X=Z.text,M=(0,o.Z)("<span>").addClass(K),oe=(0,I.PO)(Z)?X:String(Z);return X&&M.text(oe)}_getPopoutContainer(Z){var M,X=Z.items;if(X&&X.length){var oe=(0,o.Z)("<div>").addClass(V);M=(0,o.Z)("<span>").addClass(U).append(oe)}return M}_getDataAdapterOptions(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}_selectByItem(Z){if(Z){var X=this._dataAdapter.getNodeByItem(Z);this._dataAdapter.toggleSelection(X.internalFields.key,!0)}}_renderSelectedItem(){var Z=this._dataAdapter.getSelectedNodesKeys(),X=Z.length&&Z[0],M=this.option("selectedItem");if(X){var oe=this._dataAdapter.getNodeByKey(X);if(!1!==oe.selectable){if(!M)return void this.option("selectedItem",oe.internalFields.item);M!==oe.internalFields.item&&(this._dataAdapter.toggleSelection(X,!1),this._selectByItem(M))}}else this._selectByItem(M)}_initActions(){}_initMarkup(){super._initMarkup(),this.option("useInkRipple")&&this._renderInkRipple()}_renderInkRipple(){this._inkRipple=(0,a.sY)()}_toggleActiveState(Z,X,M){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var oe={element:Z,event:M};X?this._inkRipple.showWave(oe):this._inkRipple.hideWave(oe)}}_getShowSubmenuMode(){var Z=this.option("showSubmenuMode");return Z=(0,I.Kn)(Z)?Z.name:Z,this._isDesktopDevice()?Z:"onClick"}_initSelectedItems(){}_isDesktopDevice(){return"desktop"===h.Z.real().deviceType}_initEditStrategy(){this._editStrategy=new d(this)}_addCustomCssClass(Z){Z.addClass(this.option("cssClass"))}_itemWrapperSelector(){return".".concat(w)}_hoverStartHandler(Z){var X=this._getItemElementByEventArgs(Z);!X||this._isItemDisabled(X)||(Z.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,X),this._getSubmenuDelay("show"))))}_getAvailableItems(Z){return super._getAvailableItems(Z).filter(function(){return"hidden"!==(0,o.Z)(this).css("visibility")})}_isItemDisabled(Z){return this._disabledGetter(Z.data(this._itemDataKey()))}_showSubmenu(Z){this._addExpandedClass(Z)}_addExpandedClass(Z){(0,o.Z)(Z).addClass(k)}_getSubmenuDelay(Z){var{delay:X}=this.option("showSubmenuMode");return(0,I.$K)(X)?(0,I.Kn)(X)?X[Z]:X:J[Z]}_getItemElementByEventArgs(Z){var X=(0,o.Z)(Z.target);if(X.hasClass(this._itemClass())||X.get(0)===Z.currentTarget)return X;for(;!X.hasClass(this._itemClass());)if((X=X.parent()).hasClass("dx-submenu"))return null;return X}_hoverEndHandler(){clearTimeout(this._showSubmenusTimeout)}_hasSubmenu(Z){return Z&&Z.internalFields.childrenKeys.length}_renderContentImpl(){this._renderItems(this._dataAdapter.getRootNodes())}_renderItems(Z,X){if(Z.length){this.hasIcons=!1;var M=this._renderContainer(this.$element(),X),oe=-1,fe=-1;(0,C.S6)(Z,(Te,Be)=>{var ze=!1!==Be.visible;ze&&oe<0&&(oe=Te),oe<Te&&(Be.beginGroup||Te===fe)&&(fe=ze?Te:Te+1),Te===fe&&oe<Te&&this._renderSeparator(M),this._renderItem(Te,Be,M)}),this.hasIcons||M.addClass(b)}}_renderContainer(Z){var X=(0,o.Z)("<ul>");return this.setAria("role","none",X),X.appendTo(Z).addClass(T)}_createDOMElement(Z){var X=(0,o.Z)("<li>");return this.setAria("role","none",X),X.appendTo(Z).addClass(w)}_renderItem(Z,X,M,oe){var fe=this.option("items"),Te=oe||this._createDOMElement(M);fe[Z+1]&&fe[Z+1].beginGroup&&Te.addClass(P);var Be=super._renderItem(Z,X.internalFields.item,Te);X.internalFields.item===this.option("selectedItem")&&Be.addClass(O),Be.attr("tabIndex",-1),this._hasSubmenu(X)&&this.setAria("haspopup","true",Be)}_renderItemFrame(Z,X,M){var oe=M.children(".".concat(E));return oe.length?oe:super._renderItemFrame.apply(this,arguments)}_refreshItem(Z,X){var M=this._dataAdapter.getNodeByItem(X),oe=Z.data(this._itemIndexKey()),fe=Z.closest("ul"),Te=Z.closest("li");this._renderItem(oe,M,fe,Te)}_addContentClasses(Z,X){var oe=!!Z.icon,fe=!!Z.items&&!!Z.items.length;X.toggleClass(B,!!Z.text&&!!Z.text.length),X.toggleClass(W,oe),this.hasIcons||(this.hasIcons=oe),X.toggleClass(z,fe)}_getItemContent(Z){var X=super._getItemContent(Z);return X.length||(X=Z.children(".".concat(S))),X}_postprocessRenderItem(Z){var X=(0,o.Z)(Z.itemElement),M=this._dataAdapter.getSelectedNodesKeys();M.length&&this._selectedGetter(Z.itemData)&&this._isItemSelectable(Z.itemData)&&this._dataAdapter.getNodeByItem(Z.itemData).internalFields.key===M[0]?(X.addClass(this._selectedItemClass()),this._setAriaSelected(X,"true")):this._setAriaSelected(X,"false")}_isItemSelectable(Z){return!1!==Z.selectable}_renderSeparator(Z){(0,o.Z)("<li>").appendTo(Z).addClass(R)}_itemClickHandler(Z){if(!Z._skipHandling){var X=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(Z,"onItemClick",{},{afterExecute:X.bind(this)}),Z._skipHandling=!0}}_updateSubmenuVisibilityOnClick(Z){this._updateSelectedItemOnClick(Z),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(Z.args[0].itemElement)}_updateSelectedItemOnClick(Z){var X=Z.args?Z.args[0]:Z;if(this._isItemSelectionAllowed(X.itemData)){var M=this._dataAdapter.getSelectedNodesKeys(),oe=M.length&&this._dataAdapter.getNodeByKey(M[0]);oe&&this._toggleItemSelection(oe,!1),oe&&oe.internalFields.item===X.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(X.itemData)}}_isItemSelectionAllowed(Z){var X=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&X&&this._isItemSelectable(Z)&&!this._itemsGetter(Z)}_isContainerEmpty(){return this._itemContainer().is(":empty")}_syncSelectionOptions(){return(0,c.C$)()}_optionChanged(Z){switch(Z.name){case"showSubmenuMode":break;case"selectedItem":var X=this._dataAdapter.getNodeByItem(Z.value),M=this._dataAdapter.getSelectedNodesKeys()[0];if(X&&X.internalFields.key!==M){if(!1===X.selectable)break;M&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(M),!1),this._toggleItemSelection(X,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:super._optionChanged(Z)}}_toggleItemSelection(Z,X){var M=this._getElementByItem(Z.internalFields.item);M&&(0,o.Z)(M).toggleClass(O),this._dataAdapter.toggleSelection(Z.internalFields.key,X)}_getElementByItem(Z){var X;return(0,C.S6)(this._itemElements(),(M,oe)=>(0,o.Z)(oe).data(this._itemDataKey())!==Z||(X=oe,!1)),X}_updateSelectedItems(Z,X){(Z||X)&&this._fireSelectionChangeEvent(X,Z)}_fireSelectionChangeEvent(Z,X){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[Z],removedItems:[X]})}selectItem(Z){var X=Z.nodeType?this._getItemData(Z):Z,M=this._dataAdapter.getSelectedNodesKeys()[0],oe=this.option("selectedItem"),fe=this._dataAdapter.getNodeByItem(X);fe.internalFields.key!==M&&(M&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(M),!1),this._toggleItemSelection(fe,!0),this._updateSelectedItems(oe,X),this._setOptionWithoutOptionChange("selectedItem",X))}unselectItem(Z){var X=Z.nodeType?this._getItemData(Z):Z,M=this._dataAdapter.getNodeByItem(X),oe=this.option("selectedItem");M.internalFields.selected&&(this._toggleItemSelection(M,!1),this._updateSelectedItems(oe,null),this._setOptionWithoutOptionChange("selectedItem",null))}}return G.ItemClass=v.Z,G})()},9617:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>C});var o=u(4817),c=u(2879),I=u(3390);const C=(0,o.Z)({},I.Z,c.Z,{modules:[]})},1378:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>_n});var o=u(9904),c=u(8506),I=u(7674),C=u(1828),g=u(2718),a=u(5873),p=u(2160),s=u(4722),l=u(6853),d=u(9617),h=u(2722),v=u(2496);d.Z.registerModule("columnHeaders",v.q);var b=u(980);d.Z.registerModule("columns",{defaultOptions:function(){return(0,a.l)(!0,{},b.W.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:b.W.controllers});var y=u(8159),S=u(6181).Z;const O={extend:function(Ze){S=S.inherit(Ze)},create:function(Ze){return new S(Ze)}};var w=u(9799),T=w.p.controllers.data.inherit({_getDataSourceAdapter:function(){return O},_getSpecificDataSourceOption:function(){var Ze=this.option("dataSource");return Ze&&!Array.isArray(Ze)&&this.option("keyExpr")&&y.Z.log("W1011"),this.callBase()}});d.Z.registerModule("data",{defaultOptions:w.p.defaultOptions,controllers:{data:T}});var k=u(3881);d.Z.registerModule("sorting",k.G);var R=u(6027);d.Z.registerModule("rows",R.U);var B=u(9256);d.Z.registerModule("contextMenu",B.y);var W=u(3979);d.Z.registerModule("errorHandling",W.M);var z=u(3990);d.Z.registerModule("gridView",z.C);var V=u(2758);d.Z.registerModule("headerPanel",V.z),d.Z.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","editingRowBased","editingFormBased","editingCellBased","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var J=l.Z.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var Ze=this.callBase();return(0,g.S6)(d.Z.modules,function(){(0,C.mf)(this.defaultOptions)&&(0,a.l)(!0,Ze,this.defaultOptions())}),Ze},_setDeprecatedOptions:function(){this.callBase(),(0,a.l)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"},rowTemplate:{since:"21.2",message:'Use the "dataRowTemplate" option instead'}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return(0,h.x2)()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0},selection:{showCheckBoxesMode:"always"}}},{device:function(){return s.Z.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(Ze){return"desktop"!==Ze.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){this.callBase(),d.Z.processModules(this,d.Z),d.Z.callModuleItemsMethod(this,"init")},_clean:I.ZT,_optionChanged:function(Ze){d.Z.callModuleItemsMethod(this,"optionChanged",[Ze]),Ze.handled||this.callBase(Ze)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(Ze){Ze&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var Ze=this;(0,I.g0)(function(){Ze._renderContentImpl()})},_getTemplate:function(Ze){var Ct=Ze;return(0,C.HD)(Ct)&&"#"===Ct[0]&&(Ct=(0,o.Z)(Ze),p.k.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(Ct)},_dispose:function(){this.callBase(),d.Z.callModuleItemsMethod(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),d.Z.callModuleItemsMethod(this,"beginUpdate")},endUpdate:function(){d.Z.callModuleItemsMethod(this,"endUpdate"),this.callBase()},getController:function(Ze){return this._controllers[Ze]},getView:function(Ze){return this._views[Ze]},focus:function(Ze){this.getController("keyboardNavigation").focus(Ze)}});J.registerModule=d.Z.registerModule.bind(d.Z),(0,c.Z)("dxDataGrid",J);const j=J;var ee=u(5733);d.Z.registerModule("stateStoring",ee.t);var G=u(9143);d.Z.registerModule("selection",G.e);var q=u(2116);d.Z.registerModule("columnChooser",q.T);var M=u(1805),oe=u(6738),fe=u(2701),Te=u(3382),Be=u(5031),ze=u(4270);function ae(Ze,Ct,ft){for(var zt=(0,fe.G5)(Ct.group),wt=[],Xt=ft?Ze.length-1:0;Xt<Ze.length;Xt++){for(var fn=[],Ke=0;Ke<=Xt;Ke++){var ht=zt[Ke].selector;if(Xt!==Ke||null!==Ze[Ke]&&!1!==Ze[Ke]&&!0!==Ze[Ke]){var on=[ht,Xt===Ke?zt[Ke].desc?">":"<":"=",Ze[Ke]];fn.push("<"===on[1]?[on,"or",[ht,"=",null]]:on)}else!1===Ze[Ke]?fn.push([ht,"=",!!zt[Ke].desc||null]):(Ze[Ke]?!zt[Ke].desc:zt[Ke].desc)?fn.push([ht,"<>",Ze[Ke]]):(fn.push([ht,"<>",null]),fn.push([ht,"=",null]))}wt.push(d.Z.combineFilters(fn))}return wt=d.Z.combineFilters(wt,"or"),d.Z.combineFilters([wt,Ct.filter])}var Ze,Ct,_e=Be.Z.inherit((Ze=function(ft,zt){var wt=ft.hash;return wt&&wt[JSON.stringify(zt)]},Ct=function(ft,zt){var Ke,wt=0,Xt=ft.length-1;if(!ft.length)return 0;do{var fn=Xt+wt>>1;ft[fn].offset>zt?Xt=fn:wt=fn}while(Xt-wt>1);for(Ke=wt;Ke<=Xt&&!(ft[Ke].offset>zt);Ke++);return Ke},{ctor:function(ft){this._dataSource=ft,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(ft){this._totalCountCorrection=ft||0},isGroupItemCountable:function(ft){return!this._isVirtualPaging()||!ft.isContinuation},_isVirtualPaging:function(){var ft=this._dataSource.option("scrolling.mode");return"virtual"===ft||"infinite"===ft},itemsCount:function(){var zt=this._dataSource._dataSource,wt=d.Z.normalizeSortingInfo(zt.group()||[]).length;return function fn(Ke,ht,on){var hn=0;if(ht)if(on)for(var an=0;an<ht.length;an++)Ke.isGroupItemCountable(ht[an])&&hn++,hn+=fn(Ke,ht[an].items,on-1);else hn=ht.length;return hn}(this,zt.items(),wt)},foreachGroups:function(ft,zt,wt,Xt,fn){var Ke=this;return function ht(on,hn,an,Nn){var $n=[];function ot(Rt,pt,jt,Un){var oi=pt&&Rt(pt,jt);return oi&&Un.push(oi),oi}for(var Bt=0;Bt<on.length;Bt++){if(Nn.push(on[Bt].data),!an&&!1===ot(hn,on[Bt].data,Nn,$n))return!1;if(!on[Bt].data||on[Bt].data.isExpanded||wt){var nn=on[Bt].children,On=nn.length&&ht(nn,hn,an,Nn);if(On&&$n.push(On),!1===On)return!1}if(an&&!1===ot(hn,on[Bt].data,Nn,$n))return!1;(!on[Bt].data||on[Bt].data.offset!==on[Bt].offset)&&(Xt=!0),Nn.pop()}var nt=fn&&Nn.slice(0);return Xt&&ze.gx.apply(o.Z,$n).always(function(){Ke._updateGroupInfoOffsets(on,nt)})}(Ke._groupsInfo,ft,zt,[])},_updateGroupInfoOffsets:function(ft,zt){zt=zt||[];for(var wt=0;wt<ft.length;wt++){var Xt=ft[wt];if(Xt.data&&Xt.data.offset!==Xt.offset){Xt.offset=Xt.data.offset;for(var fn=0;fn<zt.length;fn++)zt[fn].offset=Xt.offset}}ft.sort(function(Ke,ht){return Ke.offset-ht.offset})},findGroupInfo:function(ft){for(var zt,wt=this._groupsInfo,Xt=0;wt&&Xt<ft.length;Xt++)wt=(zt=Ze(wt,ft[Xt]))&&zt.children;return zt&&zt.data},addGroupInfo:function(ft){for(var zt,wt=ft.path,Xt=this._groupsInfo,fn=0;fn<wt.length;fn++){if(!(zt=Ze(Xt,wt[fn]))){zt={key:wt[fn],offset:ft.offset,data:{offset:ft.offset,isExpanded:!0,path:wt.slice(0,fn+1)},children:[]};var Ke=Ct(Xt,ft.offset);Xt.splice(Ke,0,zt),Xt.hash=Xt.hash||{},Xt.hash[JSON.stringify(zt.key)]=zt}fn===wt.length-1&&(zt.data=ft,zt.offset!==ft.offset&&this._updateGroupInfoOffsets(Xt)),Xt=zt.children}},allowCollapseAll:function(){return!0},refresh:function(ft){var zt=ft.storeLoadOptions,wt=(0,fe.G5)(zt.group||[]),Xt="_group"in this?(0,fe.G5)(this._group||[]):wt,fn=Math.min(Xt.length,wt.length);this._group=zt.group;for(var Ke=0;Ke<fn;Ke++)if(Xt[Ke].selector!==wt[Ke].selector){fn=Ke;break}fn?function ht(on,hn,an){for(var Nn=0;Nn<on.length;Nn++)hn+1>=an?on[Nn].children=[]:ht(on[Nn].children,hn+1,an)}(this._groupsInfo,0,fn):this.reset()},handleDataLoading:function(){},handleDataLoaded:function(ft,zt){zt(ft)},handleDataLoadedCore:function(ft,zt){zt(ft)}})),ye=u(2879);function ne(Ze,Ct){for(var ft=(0,fe.G5)(Ct.group),zt=[],wt=0;wt<Ze.length;wt++)zt.push([ft[wt].selector,"=",Ze[wt]]);return Ct.filter&&zt.push(Ct.filter),ye.Z.combineFilters(zt)}var ce=u(7316),le=function(Ze,Ct){var ft=new ze.BH,zt=(0,a.l)({skip:0,take:1,requireTotalCount:!0},Ct);return Ze.load(zt).done(function(wt,Xt){ft.resolve(Xt&&Xt.totalCount)}).fail(ft.reject.bind(ft)),ft},pe=_e.inherit(function(){var Ze=function(Xt,fn,Ke){return Xt.foreachGroups(function(ht){if(!ht.isExpanded)return fn(ht)},!1,!1,Ke,!0)},Ct=function(Xt,fn){var Ke=0,ht=fn||0;return fn&&(Ze(Xt,function(on){if(on.offset-Ke>=fn)return!1;Ke+=on.count-1}),ht+=Ke),ht},ft=function(Xt,fn){if(Xt.length!==fn.length)return!1;for(var Ke=0;Ke<Xt.length;Ke++)if(!(0,fe.OI)(null,Xt[Ke],fn[Ke]))return!1;return!0},zt=function Xt(fn,Ke,ht,on,hn){if(Ke){for(var an=0;an<Ke.length;an++){var Nn=Ke[an];if("key"in Nn&&void 0!==Nn.items){ht.push(Nn.key),hn&&ft(hn.path,ht)&&!Nn.isContinuation&&(hn.offset=on);var $n=fn.findGroupInfo(ht);$n&&!Nn.isContinuation&&($n.offset=on),$n&&!$n.isExpanded?on+=$n.count:on=Xt(fn,Nn.items,ht,on,hn),ht.pop()}else on++}return on}},wt=function Xt(fn,Ke){var ht=fn.count||fn.items.length;if(!fn.count&&Ke>1){ht=0;for(var on=0;on<fn.items.length;on++)ht+=Xt(fn.items[on],Ke-1)}return ht};return{handleDataLoading:function(Xt){var hn,fn=Xt.storeLoadOptions,Ke=[],ht=0,on=!1,an=Xt.loadOptions.group,Nn=0;if(function(ot,Bt){if(Bt.group){var nn=d.Z.normalizeSortingInfo(Bt.group),On=d.Z.normalizeSortingInfo(ot.sort);ot.sort=Te.Z.arrangeSortingInfo(nn,On),delete Bt.group}}(fn,Xt.loadOptions),Xt.group=Xt.group||an,!Xt.isCustomLoading){var $n=(0,a.l)({},fn);$n.skip=Ct(this,fn.skip),$n.skip&&$n.take&&an&&($n.skip--,$n.take++,on=!0),$n.take&&an&&(hn=$n.take,$n.take++),Ze(this,function(ot){if(ot.offset>=$n.skip+$n.take+Nn)return!1;ot.offset>=$n.skip+Nn&&ot.count&&(Nn+=ot.count-1,Ke.push(ot),ht+=ot.count)}),(0,g.S6)(Ke,function(){$n.filter=function(ot,Bt,nn){for(var On=d.Z.normalizeSortingInfo(nn||Bt.group),nt=[],Rt=0;Rt<ot.length;Rt++){for(var pt=[],jt=0;jt<=Rt;jt++)pt.push([On[jt].selector,Rt===jt?"<>":"=",ot[jt]]);nt.push(d.Z.combineFilters(pt))}return nt=d.Z.combineFilters(nt,"or"),d.Z.combineFilters([nt,Bt.filter])}(this.path,$n,an)}),Xt.storeLoadOptions=$n,Xt.collapsedGroups=Ke,Xt.collapsedItemsCount=ht,Xt.skip=$n.skip||0,Xt.skipFirstItem=on,Xt.take=hn}},handleDataLoaded:function(Xt,fn){var Ke=Xt.collapsedGroups,ht=d.Z.normalizeSortingInfo(Xt.group),on=ht.length;function hn(ot,Bt,nn,On,nt){if(ot&&Bt.length&&nn.length){var Rt,pt,jt=(0,oe.Ex)(Bt[0],!0);for(pt=0;pt<ot.length&&(Rt=(0,oe.Ex)(ot[pt].key,!0),!(nt>=On.offset||jt===Rt));pt++)nt+=wt(ot[pt],nn.length);(!ot.length||jt!==Rt)&&ot.splice(pt,0,{key:Bt[0],items:[],count:1===Bt.length?On.count:void 0}),hn(ot[pt].items,Bt.slice(1),nn.slice(1),On,nt)}}if(Xt.collapsedItemsCount&&Xt.extra&&Xt.extra.totalCount>=0&&(Xt.extra._totalCountWasIncreasedByCollapsedItems||(Xt.extra.totalCount+=Xt.collapsedItemsCount,Xt.extra._totalCountWasIncreasedByCollapsedItems=!0)),fn(Xt),on){var an=Xt.data,Nn=(0,ce.Z)(an);if(Te.Z.multiLevelGroup(Nn,ht).enumerate().done(function(ot){an=ot}),Ke)for(var $n=0;$n<Ke.length;$n++)hn(an,Ke[$n].path,ht,Ke[$n],Xt.skip);Xt.isCustomLoading||function ot(Bt,nn,On,nt,Rt,pt){for(var jt=0,Un=!1,oi=0;oi<nn.length;oi++){var xi=nn[oi];if(void 0!==xi.items){On.push(xi.key);var Ai=Bt.findGroupInfo(On);if(Ai&&!Ai.isExpanded)xi.collapsedItems=xi.items,xi.items=null,nt+=Ai.count,--pt<0&&jt++,Rt&&(Un=!0);else if(xi.items){var Ui=ot(Bt,xi.items,On,nt,Rt,pt);Rt&&(Ui.offset-nt>1?xi.isContinuation=!0:Un=!0),nt=Ui.offset,(pt=Ui.take)<0&&(xi.items.length?xi.isContinuationOnNextPage=!0:jt++)}On.pop()}else Rt&&(Un=!0),nt++,--pt<0&&jt++;Rt=!1}return Un&&nn.splice(0,1),jt&&nn.splice(-jt,jt),{offset:nt,take:pt}}(this,an,[],Xt.skip,Xt.skipFirstItem,Xt.take),Xt.data=an}},isGroupItemCountable:function(Xt){return null===Xt.items},updateTotalItemsCount:function(){var Xt=0;Ze(this,function(fn){fn.count&&(Xt-=fn.count-1)}),this.callBase(Xt)},changeRowExpand:function(Xt){var Nn,fn=this,Ke=fn._dataSource,ht=Ke.beginPageIndex?Ke.beginPageIndex():Ke.pageIndex(),on=Ke.items(),hn=Ct(fn,ht*Ke.pageSize()),an=fn.findGroupInfo(Xt);return Nn=an&&!an.isExpanded?(new ze.BH).resolve(an.count):le(Ke,{filter:ne(Xt,{filter:Ke.filter(),group:Ke.group()})}),(0,ze.gx)(Nn).done(function($n){$n=parseInt($n.length?$n[0]:$n),an?(zt(fn,on,[],hn),an.isExpanded=!an.isExpanded,an.count=$n):(zt(fn,on,[],hn,an={offset:-1,count:$n,path:Xt,isExpanded:!1}),an.offset>=0&&fn.addGroupInfo(an)),fn.updateTotalItemsCount()}).fail(function(){Ke._eventsStrategy.fireEvent("loadError",arguments)})},allowCollapseAll:function(){return!1},refresh:function(Xt,fn){var Ke=this,ht=Xt.storeLoadOptions,on=Ke._dataSource;if(this.callBase.apply(this,arguments),fn.reload)return Ze(Ke,function(hn){var an=le(on,{filter:ne(hn.path,ht)}),Nn=le(on,{filter:ae(hn.path,ht)});return(0,ze.gx)(Nn,an).done(function($n,ot){$n=parseInt($n.length?$n[0]:$n),ot=parseInt(ot.length?ot[0]:ot),hn.offset=$n,hn.count!==ot&&(hn.count=ot,Ke.updateTotalItemsCount())})},!0)}}}()),Se=u(6051);function re(Ze,Ct,ft,zt){if(zt=zt||0,Ct>1&&ft>0){var wt=Ze-Math.floor(Ze/Ct)*Ct||Ct;return(wt+=ft-zt-2)<0&&(wt+=Ct),Math.floor(wt/(Ct-zt-1))}return 0}var te=_e.inherit(function(){var Ze=function(an,Nn,$n){return an.foreachGroups(function(ot,Bt){if(ot.isExpanded)return Nn(ot,Bt)},!0,!1,$n,$n)},Ct=function an(Nn,$n,ot,Bt,nn,On,nt){var Rt;if(Bt.items=Bt.items||[],Bt.paths=Bt.paths||[],Bt.count=Bt.count||0,Bt.lastCount=Bt.lastCount||0,ot)for(var pt=0;pt<$n.length;pt++){var jt=$n[pt];if(void 0!==jt.items){if(nn.push(jt.key),On)Rt=!0;else{var Un=Nn.findGroupInfo(nn);Rt=Un&&Un.isExpanded}Rt?jt.items?an(Nn,jt.items,ot-1,Bt,nn,On,nt):1===ot&&jt.count&&(!On||nt)&&(Bt.items.push(jt),Bt.paths.push(nn.slice(0)),Bt.count+=Bt.lastCount,Bt.lastCount=jt.count):(jt.collapsedItems=jt.items,jt.items=null),nn.pop()}}},ft=function(an,Nn,$n,ot,Bt){var On,nn=an.findGroupInfo(ot);nn?($n?nn.count=Nn.count>0?Nn.count:Nn.items&&Nn.items.length||0:Nn.count=nn.count||Nn.count,nn.offset=Bt):($n&&(On=Nn.count>0?Nn.count:Nn.items.length),an.addGroupInfo({isExpanded:an._isGroupExpanded(ot.length-1),path:ot.slice(0),offset:Bt,count:On||0}))},zt=function an(Nn,$n,ot,Bt,nn,On,nt){var xi,pt=($n.group?$n.group.length:0)===Bt,Un=0,oi=0;if(nn=nn||0,On=On||[],$n.remoteOperations.paging&&!nt&&(Un=0===nn?$n.skip||0:$n.skips[nn-1]||0),nn>=Bt)return ot.length;for(var Ai=0;Ai<ot.length;Ai++){var Ui=ot[Ai];if(Ui){if(On.push(Ui.key),!Ui.count&&!Ui.items||void 0===Ui.items||(ft(Nn,Ui,pt,On,Un+Ai),(xi=Ui.items?an(Nn,$n,Ui.items,Bt,nn+1,On,Ai):Ui.count||-1)<0))return-1;oi+=xi,On.pop()}}return oi},wt=function(an,Nn){return an&&an.length&&an[Nn]&&!!an[Nn].isExpanded},Xt=function(an,Nn,$n){for(var ot,Bt=$n,nn=0;nn<an.length;nn++)ot=an[nn].offset+1,nn>0&&(ot+=an[nn-1].childrenTotalCount,Nn&&(ot+=re(Bt,Nn,ot,nn-1)*nn)),Bt+=ot;return Bt};function fn(an,Nn,$n,ot){var Bt=Nn.items[ot],nn=an.skips&&an.skips[$n],On=an.takes&&an.takes[$n],nt=ot===Nn.items.length-1,Rt=0===ot,jt=Bt.count>On+(Rt&&nn||0);Rt&&void 0!==nn&&(Bt.isContinuation=!0),nt&&void 0!==On&&jt&&(Bt.isContinuationOnNextPage=!0)}function Ke(an){return!Array.isArray(an)}function ht(an){Ke(an.data)||(an.data=new ze.BH)}function on(an,Nn,$n,ot,Bt,nn){var nt,Rt,pt,jt,Un;Nn.isCustomLoading||(Ct(an,nn,$n,ot={},[]),jt=(pt=$n)-1,Un=(nt=Nn).group?nt.group.length:0,(Rt=ot).skip=nt.skips&&nt.skips[jt],nt.takes&&void 0!==nt.takes[jt]&&(Rt.take=Un===pt&&Rt.count?Rt.count-(Rt.skip||0):0,Rt.take+=nt.takes[jt])),ot.paths.length&&(Nn.group?Nn.group.length:0)-$n>0?(ht(Nn),function(nt,Rt,pt,jt,Un,oi){var xi=Rt.group||[],Ai=xi[Un+1],Ui=[];(0,g.S6)(pt.paths,function(ji){var Qi={requireTotalCount:!1,requireGroupCount:!0,group:[Ai],groupSummary:Rt.storeLoadOptions.groupSummary,filter:ne(pt.paths[ji],{filter:Rt.storeLoadOptions.filter,group:xi}),select:Rt.storeLoadOptions.select};0===ji&&(Qi.skip=pt.skip||0),ji===pt.paths.length-1&&(Qi.take=pt.take);var Tr=0===Qi.take?[]:nt._dataSource.loadFromStore(Qi);(0,ze.gx)(Tr).done(function(br){var oo=pt.items[ji];fn(Rt,pt,Un,ji),oo.items=br}),Ui.push(Tr)}),ze.gx.apply(null,Ui).done(function(){zt(nt,Rt,oi,jt+1),on(nt,Rt,jt+1,pt,Un+1,oi)})}(an,Nn,ot,$n,Bt,nn)):ot.paths.length&&Nn.storeLoadOptions.group?(ht(Nn),function(nt,Rt,pt,jt){var Un=[],oi=Rt.group||[];(0,g.S6)(pt.paths,function(ji,Qi){Un.push(ne(Qi,{group:Rt.isCustomLoading?Rt.storeLoadOptions.group:oi}))});var xi=Rt.storeLoadOptions.filter;Rt.storeLoadOptions.isLoadingAll||(xi=d.Z.combineFilters([xi,d.Z.combineFilters(Un,"or")]));var Ai=(0,a.l)({},Rt.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:oi.concat(d.Z.normalizeSortingInfo(Rt.storeLoadOptions.sort||[])),filter:xi}),Ui=nt._dataSource.isLastLevelGroupItemsPagingLocal();Ui||(Ai.skip=pt.skip,Ai.take=pt.take),(0,ze.gx)(0===pt.take?[]:nt._dataSource.loadFromStore(Ai)).done(function(ji,Qi){Ui&&(ji=nt._dataSource.sortLastLevelGroupItems(ji,oi,pt.paths),ji=pt.skip?ji.slice(pt.skip):ji,ji=pt.take?ji.slice(0,pt.take):ji),(0,g.S6)(pt.items,function(Tr,br){var ro=ji.splice(0,br.count-(0===Tr&&pt.skip||0));fn(Rt,pt,oi.length-1,Tr),br.items=ro}),Rt.data.resolve(jt)}).fail(Rt.data.reject)}(an,Nn,ot,nn)):Ke(Nn.data)&&Nn.data.resolve(nn)}var hn=function(an,Nn){var $n=new ze.BH,ot=!(!Nn.group||!Nn.group.length),Bt=(0,a.l)({skip:0,take:1,requireGroupCount:ot,requireTotalCount:!ot},Nn,{group:ot?Nn.group:null});return an.load(Bt).done(function(nn,On){var nt=On&&(ot?On.groupCount:On.totalCount);isFinite(nt)?$n.resolve(nt):$n.reject(Se.R0.Error(ot?"E4022":"E4021"))}).fail($n.reject.bind($n)),$n};return{updateTotalItemsCount:function(an){var Nn=0,$n=an.extra&&an.extra.totalCount||0,ot=an.extra&&an.extra.groupCount||0,Bt=this._dataSource.pageSize(),nn=this._isVirtualPaging();Ze(this,function(On){On.childrenTotalCount=0}),Ze(this,function(On,nt){var Rt=Xt(nt,nn?0:Bt,Nn),pt=On.count+On.childrenTotalCount;nn||(pt+=re(Rt,Bt,pt,nt.length-1)),nt[nt.length-2]?nt[nt.length-2].childrenTotalCount+=pt:Nn+=pt}),this.callBase(Nn-$n+ot)},_isGroupExpanded:function(an){var Nn=this._dataSource.group();return wt(Nn,an)},_updatePagingOptions:function(an,Nn){var $n=this._isVirtualPaging(),ot=this._dataSource.pageSize(),Bt=[],nn=[],On=0,nt=0;an.take&&(Ze(this,function(Rt){Rt.childrenTotalCount=0,Rt.skipChildrenTotalCount=0}),Ze(this,function(Rt,pt){var jt,Un=0,oi=0,xi=Xt(pt,$n?0:ot,nt),Ai=0,Ui=0,ji=Rt.count+Rt.childrenTotalCount,Qi=ji;Nn&&Nn(Rt,xi);var Tr=an.skip-xi;xi<=an.skip+an.take&&ji&&(jt=an.take,$n||(ji+=(Ai=re(xi,ot,ji,pt.length-1))*pt.length,Qi+=Ai,ot&&Tr>=0&&(Un=pt.length,oi=pt.length-1,Ui=Math.floor(Tr/ot))),Tr>=0?(xi+ji>an.skip&&Bt.unshift(Tr-Ui*Un-Rt.skipChildrenTotalCount),xi+ji>=an.skip+jt&&nn.unshift(jt-Un-Rt.childrenTotalCount+Rt.skipChildrenTotalCount)):xi+ji>=an.skip+jt&&nn.unshift(jt+Tr-Rt.childrenTotalCount)),xi<=an.skip&&(pt[pt.length-2]?pt[pt.length-2].skipChildrenTotalCount+=Math.min(Qi,Tr+1-Ui*oi):On+=Math.min(Qi,Tr+1)),xi<=an.skip+jt&&(ji=Math.min(Qi,Tr+jt-(Ui+1)*oi),pt[pt.length-2]?pt[pt.length-2].childrenTotalCount+=ji:nt+=ji)}),an.skip-=On,an.take-=nt-On),an.skips=Bt,an.takes=nn},changeRowExpand:function(an){var Nn=this.findGroupInfo(an),$n=this._dataSource,ot=$n.remoteOperations().groupPaging,Bt=d.Z.normalizeSortingInfo($n.group());return Nn?(Nn.isExpanded=!Nn.isExpanded,ot&&Nn.isExpanded&&an.length<Bt.length?hn($n,{filter:ne(an,{filter:$n.lastLoadOptions().filter,group:$n.group()}),group:[Bt[an.length]],select:$n.select()}).done(function(nn){Nn.count=nn}):(new ze.BH).resolve()):(new ze.BH).reject()},handleDataLoading:function(an){var Nn=an.storeLoadOptions,$n=d.Z.normalizeSortingInfo(Nn.group||an.loadOptions.group);if(!an.isCustomLoading&&$n.length){if(an.remoteOperations.grouping){var ot=this._dataSource.remoteOperations().paging;Nn.group=d.Z.normalizeSortingInfo(Nn.group),Nn.group.forEach(function(Bt,nn){Bt.isExpanded=!(ot&&nn===Nn.group.length-1)})}an.group=an.group||$n,an.remoteOperations.paging?(an.skip=Nn.skip,an.take=Nn.take,Nn.requireGroupCount=!0,Nn.group=$n.slice(0,1),this._updatePagingOptions(an),Nn.skip=an.skip,Nn.take=an.take):(an.skip=an.loadOptions.skip,an.take=an.loadOptions.take,this._updatePagingOptions(an))}},handleDataLoadedCore:function(an,Nn){var Bt,$n=d.Z.normalizeSortingInfo(an.storeLoadOptions.group||an.loadOptions.group).length,ot=an.group?an.group.length:0,nn={};if(an.isCustomLoading)Nn(an),Ct(this,an.data,$n,nn,[],an.isCustomLoading,an.storeLoadOptions.isLoadingAll);else{if(an.remoteOperations.paging||this.foreachGroups(function(On){On.count=0}),(Bt=zt(this,an,an.data,$n))<0)return void(an.data=(new ze.BH).reject(y.Z.Error("E1037")));if(an.remoteOperations.paging||$n&&an.extra&&an.loadOptions.requireTotalCount&&(an.extra.totalCount=Bt,an.extra.groupCount=an.data.length),ot&&an.storeLoadOptions.requireGroupCount&&!isFinite(an.extra.groupCount))return void(an.data=(new ze.BH).reject(Se.R0.Error("E4022")));this.updateTotalItemsCount(an),an.remoteOperations.paging||this._updatePagingOptions(an),Nn(an),an.remoteOperations.paging||this._processPaging(an,$n)}on(this,an,$n,nn,0,an.data)},_processSkips:function(an,Nn,$n){if($n){var ot=an[0],Bt=Nn[0],nn=ot&&ot.items;void 0!==Bt&&(ot.isContinuation=!0,nn&&(ot.items=nn.slice(Bt),this._processSkips(ot.items,Nn.slice(1),$n-1)))}},_processTakes:function(an,Nn,$n,ot,Bt){if(ot&&an){Bt=Bt||[];var nn=an[an.length-1],On=nn&&nn.items,nt=$n[0];nn&&(void 0!==nt&&(nn.count-(nn.isContinuation&&Nn[0]||0)||On.length)>nt&&(nn.isContinuationOnNextPage=!0,Bt.forEach(function(jt){jt.isContinuationOnNextPage=!0}),On&&(On=On.slice(0,nt),nn.items=On)),Bt.push(nn),this._processTakes(On,Nn.slice(1),$n.slice(1),ot-1,Bt))}},_processPaging:function(an,Nn){this._processSkips(an.data,an.skips,Nn),this._processTakes(an.data,an.skips,an.takes,Nn)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(an){return an},refresh:function(an,Nn){var nt,Rt,$n=this,ot=$n._dataSource,Bt=an.storeLoadOptions,nn=an.group||an.storeLoadOptions.group,On=d.Z.normalizeSortingInfo($n._group);function pt(jt,Un){Un.length===Rt+1&&(jt.isExpanded=nt)}for(Rt=0;Rt<On.length;Rt++)nt=wt(nn,Rt),wt($n._group,Rt)!==nt&&$n.foreachGroups(pt);if($n.callBase.apply(this,arguments),nn&&an.remoteOperations.paging&&Nn.reload)return Ze($n,function(jt){var Un=hn(ot,{filter:ne(jt.path,{filter:Bt.filter,group:nn}),group:nn.slice(jt.path.length),select:Bt.select}),oi=hn(ot,{filter:ae(jt.path,{filter:Bt.filter,group:nn},!0),group:nn.slice(jt.path.length-1,jt.path.length),select:Bt.select});return(0,ze.gx)(oi,Un).done(function(xi,Ai){xi=parseInt(xi.length?xi[0]:xi),Ai=parseInt(Ai.length?Ai[0]:Ai),jt.offset=xi,jt.count!==Ai&&(jt.count=Ai,$n.updateTotalItemsCount(an))})},!0)}}}()),ie=u(9009),ue=u(2941),be=u(2127),Ae=u(2559),Ne="dx-datagrid-group-panel",tt="dx-group-panel-item",Le="dx-toolbar-label",ge={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(Ze){var Ct=this._grouping,ft=this.option("grouping.autoExpandAll"),zt=this.option("focusedRowEnabled"),wt=Ze?Ze.remoteOperations:this.remoteOperations();!(wt.filtering&&wt.sorting&&wt.paging)||wt.grouping||!ft&&zt?(!Ct||Ct instanceof pe)&&(this._grouping=new te(this)):(!Ct||Ct instanceof te)&&(this._grouping=new pe(this))},totalItemsCount:function(){var Ze=this.callBase();return Ze>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?Ze+this._grouping.totalCountCorrection():Ze},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(Ze){return this._grouping.isGroupItemCountable(Ze)},isRowExpanded:function(Ze){var Ct=this._grouping.findGroupInfo(Ze);return Ct?Ct.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(Ze){return this._collapseExpandAll(Ze,!1)},expandAll:function(Ze){return this._collapseExpandAll(Ze,!0)},_collapseExpandAll:function(Ze,Ct){var ft=this._dataSource,zt=ft.group(),wt=d.Z.normalizeSortingInfo(zt||[]);if(wt.length){for(var Xt=0;Xt<wt.length;Xt++)void 0===Ze||Ze===Xt?wt[Xt].isExpanded=Ct:zt&&zt[Xt]&&(wt[Xt].isExpanded=zt[Xt].isExpanded);ft.group(wt),this._grouping.foreachGroups(function(fn,Ke){(void 0===Ze||Ze===Ke.length-1)&&(fn.isExpanded=Ct)},!1,!0),this.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(Ze){var Ct=this._dataSource;if(Ct.group())return Ct.beginLoading(),this._lastLoadOptions&&(this._lastLoadOptions.groupExpand=!0),this._changeRowExpandCore(Ze).always(function(){Ct.endLoading()})},_changeRowExpandCore:function(Ze){return this._grouping.changeRowExpand(Ze)},_hasGroupLevelsExpandState:function(Ze,Ct){if(Ze&&Array.isArray(Ze))for(var ft=0;ft<Ze.length;ft++)if(Ze[ft].isExpanded===Ct)return!0},_customizeRemoteOperations:function(Ze,Ct){var ft=Ze.remoteOperations;Ze.storeLoadOptions.group?(ft.grouping&&!Ze.isCustomLoading&&(!ft.groupPaging||this._hasGroupLevelsExpandState(Ze.storeLoadOptions.group,!0))&&(ft.paging=!1),!ft.grouping&&(!ft.sorting||!ft.filtering||Ze.isCustomLoading||this._hasGroupLevelsExpandState(Ze.storeLoadOptions.group,!1))&&(ft.paging=!1)):!Ze.isCustomLoading&&ft.paging&&Ct.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(Ze){return this.callBase(Ze),this._initGroupingHelper(Ze),this._grouping.handleDataLoading(Ze)},_handleDataLoaded:function(Ze){return this._grouping.handleDataLoaded(Ze,this.callBase.bind(this))},_handleDataLoadedCore:function(Ze){return this._grouping.handleDataLoadedCore(Ze,this.callBase.bind(this))}};O.extend(ge);var Ce={init:function(){this.callBase(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")},_beforeProcessItems:function(Ze){var Ct=this._columnsController.getGroupColumns();return(Ze=this.callBase(Ze)).length&&Ct.length&&(Ze=this._processGroupItems(Ze,Ct.length)),Ze},_processItem:function(Ze,Ct){return(0,C.$K)(Ze.groupIndex)&&(0,C.HD)(Ze.rowType)&&0===Ze.rowType.indexOf("group")?(Ze=this._processGroupItem(Ze,Ct),Ct.dataIndex=0):Ze=this.callBase.apply(this,arguments),Ze},_processGroupItem:function(Ze){return Ze},_processGroupItems:function(Ze,Ct,ft){var zt=this._columnsController.getGroupColumns(),wt=zt[zt.length-Ct];if(!ft){var Xt=this.option("scrolling.mode");ft={collectContinuationItems:"virtual"!==Xt&&"infinite"!==Xt,resultItems:[],path:[],values:[]}}var fn=ft.resultItems;if(ft.data&&(ft.collectContinuationItems||!ft.data.isContinuation)&&fn.push({rowType:"group",data:ft.data,groupIndex:ft.path.length-1,isExpanded:!!ft.data.items,key:ft.path.slice(0),values:ft.values.slice(0)}),Ze)if(0===Ct)fn.push.apply(fn,Ze);else for(var Ke=0;Ke<Ze.length;Ke++){var ht=Ze[Ke];ht&&"items"in ht?(ft.data=ht,ft.path.push(ht.key),ft.values.push(wt&&wt.deserializeValue&&!wt.calculateDisplayValue?wt.deserializeValue(ht.key):ht.key),this._processGroupItems(ht.items,Ct-1,ft),ft.data=void 0,ft.path.pop(),ft.values.pop()):fn.push(ht)}return fn},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(Ze){var Ct=this._dataSource;Ct&&Ct.collapseAll(Ze)&&(Ct.pageIndex(0),Ct.reload())},expandAll:function(Ze){var Ct=this._dataSource;Ct&&Ct.expandAll(Ze)&&(Ct.pageIndex(0),Ct.reload())},changeRowExpand:function(Ze){var Ct=this,ft=Ct.isRowExpanded(Ze),zt={key:Ze,expanded:ft};return Ct.executeAction(ft?"onRowCollapsing":"onRowExpanding",zt),zt.cancel?(new ze.BH).resolve():(0,ze.gx)(Ct._changeRowExpandCore(Ze)).done(function(){zt.expanded=!ft,Ct.executeAction(ft?"onRowCollapsed":"onRowExpanded",zt)})},_changeRowExpandCore:function(Ze){var Ct=this,ft=this._dataSource,zt=new ze.BH;return ft?(0,ze.gx)(ft.changeRowExpand(Ze)).done(function(){Ct.load().done(zt.resolve).fail(zt.reject)}).fail(zt.reject):zt.resolve(),zt},isRowExpanded:function(Ze){var Ct=this._dataSource;return Ct&&Ct.isRowExpanded(Ze)},expandRow:function(Ze){return this.isRowExpanded(Ze)?(new ze.BH).resolve():this.changeRowExpand(Ze)},collapseRow:function(Ze){return this.isRowExpanded(Ze)?this.changeRowExpand(Ze):(new ze.BH).resolve()},optionChanged:function(Ze){"grouping"===Ze.name&&(Ze.name="dataSource"),this.callBase(Ze)}},De=function(Ze,Ct){var ft=this._columnsController;switch(Ct.itemData.value){case"group":var zt=ft._dataSource.group()||[];ft.columnOption(Ze.dataField,"groupIndex",zt.length);break;case"ungroup":ft.columnOption(Ze.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},Ye={_getToolbarItems:function(){var Ze=this.callBase();return this._appendGroupingItem(Ze)},_appendGroupingItem:function(Ze){if(this._isGroupPanelVisible()){var Ct=!1;Ze.push({template:()=>{var zt=(0,o.Z)("<div>").addClass(Ne);return this._updateGroupPanelContent(zt),(0,be.Y)("groupPanel",this,zt,void 0,this._handleActionKeyDown.bind(this)),zt},name:"groupPanel",onItemRendered:()=>{Ct&&this.renderCompleted.fire(),Ct=!0},location:"before",locateInMenu:"never",sortIndex:1}),this.updateToolbarDimensions()}return Ze},_handleActionKeyDown:function(Ze){var Ct=Ze.event,ft=(0,o.Z)(Ct.target),zt=ft.closest(".".concat(tt)).index(),wt=this._columnsController.getGroupColumns()[zt],Xt=wt&&wt.index;ft.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(Xt,!0):this._processGroupItemAction(Xt),Ct.preventDefault()},_isGroupPanelVisible:function(){var Ct,Ze=this.option("groupPanel");return Ze&&"auto"===(Ct=Ze.visible)&&(Ct="desktop"===ue.Z.current().deviceType),Ct},_renderGroupPanelItems:function(Ze,Ct){var ft=this;Ze.empty(),(0,g.S6)(Ct,function(zt,wt){ft._createGroupPanelItem(Ze,wt)}),(0,Ae.vg)(this)},_createGroupPanelItem:function(Ze,Ct){var ft=(0,o.Z)("<div>").addClass(Ct.cssClass).addClass(tt).data("columnData",Ct).appendTo(Ze).text(Ct.caption);return(0,Ae.Hl)(this,ft),ft},_columnOptionChanged:function(Ze){if(!this._requireReady&&!d.Z.checkChanges(Ze.optionNames,["width","visibleWidth"])){var Ct=this.element(),ft=Ct&&Ct.find("."+Ne);ft&&ft.length&&(this._updateGroupPanelContent(ft),this.updateToolbarDimensions(),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(Ze){var Ct=this.getController("columns").getGroupColumns(),ft=this.option("groupPanel");this._renderGroupPanelItems(Ze,Ct),ft.allowColumnDragging&&!Ct.length&&((0,o.Z)("<div>").addClass("dx-group-panel-message").text(ft.emptyPanelText).appendTo(Ze),Ze.closest(".dx-toolbar-item").addClass(Le),Ze.closest("."+Le).css("maxWidth","none"))},allowDragging:function(Ze){var Ct=this.option("groupPanel");return this._isGroupPanelVisible()&&Ct.allowColumnDragging&&Ze&&Ze.allowGrouping},getColumnElements:function(){var Ze=this.element();return Ze&&Ze.find("."+tt)},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var Ze=this.element();if(Ze&&Ze.find("."+Ne).length){var Ct=Ze.offset();return{top:Ct.top,bottom:Ct.top+(0,M.Cr)(Ze)}}return null},getName:function(){return"group"},getContextMenuItems:function(Ze){var zt,Ct=this.option("grouping.contextMenuEnabled"),ft=(0,o.Z)(Ze.targetElement).closest("."+tt);if(ft.length&&(Ze.column=ft.data("columnData")),Ct&&Ze.column){var wt=Ze.column;if(!(0,C.$K)(wt.allowGrouping)||wt.allowGrouping){var fn=(0,C.$K)(wt.groupIndex)&&wt.groupIndex>-1,Ke=this.option("grouping.texts"),ht=De.bind(this,wt);zt=[{text:Ke.ungroup,value:"ungroup",disabled:!fn,onItemClick:ht},{text:Ke.ungroupAll,value:"ungroupAll",onItemClick:ht}]}}return zt},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(Ze){"groupPanel"===Ze.name?(this._invalidate(),Ze.handled=!0):this.callBase(Ze)}},bt={getContextMenuItems:function(Ze){var ft;if(this.option("grouping.contextMenuEnabled")&&Ze.row&&"group"===Ze.row.rowType){var wt=this._columnsController.columnOption("groupIndex:"+Ze.row.groupIndex);if(wt&&wt.allowGrouping){var Xt=this.option("grouping.texts"),fn=De.bind(this,wt);(ft=[]).push({text:Xt.ungroup,value:"ungroup",onItemClick:fn},{text:Xt.ungroupAll,value:"ungroupAll",onItemClick:fn})}}return ft},_rowClick:function(Ze){var Ct=this.option("grouping.expandMode"),zt="infinite"!==this.option("scrolling.mode")&&"rowClick"===Ct&&(0,o.Z)(Ze.event.target).closest(".dx-group-row").length,wt=(0,o.Z)(Ze.event.target).closest(".dx-datagrid-expand").length;(zt||wt)&&this._changeGroupRowState(Ze),this.callBase(Ze)},_changeGroupRowState:function(Ze){var Ct=this.getController("data"),ft=Ct.items()[Ze.rowIndex],zt=this._columnsController.columnOption("groupIndex:"+ft.groupIndex,"allowCollapsing");("data"===ft.rowType||"group"===ft.rowType&&!1!==zt)&&(Ct.changeRowExpand(ft.key,!0),Ze.event.preventDefault(),Ze.handled=!0)}},yt={getContextMenuItems:function(Ze){var Ct=this.option("grouping.contextMenuEnabled"),ft=this.callBase(Ze);if(Ct&&Ze.row&&("header"===Ze.row.rowType||"detailAdaptive"===Ze.row.rowType)){var zt=Ze.column;if(!zt.command&&(!(0,C.$K)(zt.allowGrouping)||zt.allowGrouping)){var wt=this.option("grouping.texts"),Xt=(0,C.$K)(zt.groupIndex)&&zt.groupIndex>-1,fn=De.bind(this,zt);(ft=ft||[]).push({text:wt.groupByThisColumn,value:"group",beginGroup:!0,disabled:Xt,onItemClick:fn}),zt.showWhenGrouped&&ft.push({text:wt.ungroup,value:"ungroup",disabled:!Xt,onItemClick:fn}),ft.push({text:wt.ungroupAll,value:"ungroupAll",onItemClick:fn})}}return ft}};d.Z.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:ie.Z.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:ie.Z.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:ie.Z.format("dxDataGrid-groupHeaderText"),ungroup:ie.Z.format("dxDataGrid-ungroupHeaderText"),ungroupAll:ie.Z.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:ie.Z.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:Ce,columns:{_getExpandColumnOptions:function(){var Ze=this.callBase.apply(this,arguments);return Ze.cellTemplate=d.Z.getExpandCellTemplate(),Ze}},editing:{_isProcessedItem:function(Ze){return(0,C.$K)(Ze.groupIndex)&&(0,C.HD)(Ze.rowType)&&0===Ze.rowType.indexOf("group")}}},views:{headerPanel:Ye,rowsView:bt,columnHeadersView:yt}}});var kt=u(6264);d.Z.registerModule("masterDetail",kt.h);var gn=u(8543);d.Z.registerModule("editorFactory",gn.V);var ut=u(260);d.Z.registerModule("editing",(0,a.l)(!0,{},ut.X,{extenders:{controllers:{data:{_changeRowExpandCore:function(Ze){var Ct=this._editingController;return Array.isArray(Ze)&&Ct&&Ct.refresh(),this.callBase.apply(this,arguments)}}}}}));var Ve=u(9057);d.Z.registerModule("editingRowBased",Ve.j);var St=u(8968);d.Z.registerModule("editingFormBased",St.F);var Xe=u(3098);d.Z.registerModule("editingCellBased",Xe.Z);var Vt=u(7867);d.Z.registerModule("validating",Vt.n);var lt=u(7031);d.Z.registerModule("virtualScrolling",lt.b),O.extend(lt.b.extenders.dataSourceAdapter);var dt=u(275);d.Z.registerModule("filterRow",dt.b);var vt=u(2314);d.Z.registerModule("headerFilter",vt.O);var Lt=u(5841);d.Z.registerModule("filterSync",Lt.H);var bn=u(7963);d.Z.registerModule("filterBuilder",bn.z);var mn=u(9624);d.Z.registerModule("filterPanel",mn.o);var xn=u(5542);d.Z.registerModule("search",xn.C);var Xn=u(237);d.Z.registerModule("pager",Xn.N);var li=u(6359);d.Z.registerModule("columnsResizingReordering",li.s);var ei=u(6726);d.Z.registerModule("keyboardNavigation",ei.U);var Wn=u(5004);function Ji(Ze,Ct,ft,zt){var wt=0;if(Ze<Ct)for(;wt<ft.items.length;wt++)Ji(Ze+1,Ct,ft.items[wt],zt);Ze===Ct&&zt(ft)}function Sn(Ze,Ct){var ft;if("map"in Ze)return Ze.map(Ct);var zt=new Array(Ze.length);for(ft in Ze)zt[ft]=Ct(Ze[ft],ft);return zt}function ti(Ze){return Ze===fe.bG.count}function ci(Ze){var Ct=(0,oe.vb)(Ze.selector),ft=!("skipEmptyValues"in Ze)||Ze.skipEmptyValues,zt=Ze.aggregator;if("string"==typeof zt&&!(zt=fe.bG[zt]))throw Se.R0.Error("E4001",Ze.aggregator);return{selector:Ct,aggregator:zt,skipEmptyValues:ft}}const Wi=Be.Z.inherit({ctor:function(Ze){this._data=Ze.data,this._groupLevel=Ze.groupLevel||0,this._totalAggregates=Sn(Ze.totalAggregates||[],ci),this._groupAggregates=Sn(Ze.groupAggregates||[],ci),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(Ze,Ct,ft){for(var zt=Ct.items?Ct.items.length:0,wt=0;wt<Ze.length;wt++)if(ti(Ze[wt].aggregator))ft[wt]=(ft[wt]||0)+zt;else for(var Xt=0;Xt<zt;Xt++)this._accumulate(wt,Ze[wt],ft,Ct.items[Xt])},_calculateTotals:function(Ze,Ct){if(0===Ze&&(this._totals=this._seed(this._totalAggregates)),Ze===this._groupLevel)this._aggregate(this._totalAggregates,Ct,this._totals);else for(var ft=0;ft<Ct.items.length;ft++)this._calculateTotals(Ze+1,Ct.items[ft]);0===Ze&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(Ze){var Ct=this._groupLevel,ft=Ct+1,zt=this._seed.bind(this,this._groupAggregates),wt=this._aggregate.bind(this,this._groupAggregates),Xt=this._finalize.bind(this,this._groupAggregates);function fn(Ke){Ke.aggregates=zt(ft-1),ft===Ct?wt(Ke,Ke.aggregates):Ji(ft,Ct,Ke,function(ht){wt(ht,Ke.aggregates)}),Ke.aggregates=Xt(Ke.aggregates)}for(;--ft>0;)Ji(0,ft,Ze,fn)},_seed:function(Ze,Ct){return Sn(Ze,function(ft){var zt=ft.aggregator;return"seed"in zt?(0,C.mf)(zt.seed)?zt.seed(Ct):zt.seed:NaN})},_accumulate:function(Ze,Ct,ft,zt){var wt=Ct.selector(zt),Xt=Ct.aggregator;Ct.skipEmptyValues&&function Qn(Ze){return Ze!=Ze||""===Ze||null==Ze}(wt)||(ft[Ze]=ft[Ze]!=ft[Ze]?wt:Xt.step(ft[Ze],wt))},_finalize:function(Ze,Ct){return Sn(Ze,function(ft,zt){var wt=ft.aggregator.finalize;return wt?wt(Ct[zt]):Ct[zt]})}});var vn="dx-datagrid-group-footer",Si="dx-footer-row",Yi="groupFooter",dr="totalFooter",kr=function(Ze,Ct){var ft=(0,o.Z)(Ze),zt=Ct.column,wt=Ct.summaryItems,Xt=[];if(!zt.command&&wt){for(var fn=0;fn<wt.length;fn++){var Ke=wt[fn];Xt.push((0,o.Z)("<div>").css("textAlign",Ke.alignment||zt.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(Ke.cssClass).toggleClass("dx-datagrid-group-text-content","group"===Ct.rowType).text(d.Z.getSummaryText(Ke,Ct.summaryTexts)))}ft.append(Xt)}},Nr=function(Ze,Ct){var ft=Ze.option("summary.texts")||{};return{totalItem:Ct.row,summaryItems:Ct.row.summaryCells[Ct.columnIndex],summaryTexts:ft}},Gr=function(Ze){return Ze.summary||Ze.aggregates||[]},Qr=function(Ze){return Ze.option("summary.recalculateWhileEditing")},Sr=Wn.p.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(Ze){return(0,a.l)(this.callBase(Ze),Nr(this,Ze))},_renderCellContent:function(Ze,Ct){kr(Ze,Ct),this.callBase.apply(this,arguments)},_renderCore:function(Ze){var Ct=!1,ft=this._dataController.footerItems()[0];(!Ze||!Ze.columnIndices)&&(this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),Ct=!0),ft&&ft.summaryCells&&ft.summaryCells.length&&(this._updateContent(this._renderTable({change:Ze}),Ze),Ct&&this._updateScrollLeftPosition())},_updateContent:function(Ze,Ct){return Ct&&"update"===Ct.changeType&&Ct.columnIndices?this._waitAsyncTemplates(Ct).done(()=>{var ft=this.getTableElement().find(".dx-row"),zt=Ze.find(".dx-row");this._updateCells(ft,zt,Ct.columnIndices[0])}):this.callBase.apply(this,arguments)},_rowClick:function(Ze){var Ct=this._dataController.footerItems()[Ze.rowIndex]||{};this.executeAction("onRowClick",(0,a.l)({},Ze,Ct))},_columnOptionChanged:function(Ze){var Ct=Ze.optionNames;Ze.changeTypes.grouping||(Ct.width||Ct.visibleWidth)&&this.callBase(Ze)},_handleDataChanged:function(Ze){var Ct=Ze.changeType;"update"===Ze.changeType&&Ze.repaintChangesOnly?Ze.totalColumnIndices?Ze.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[Ze.totalColumnIndices]}):this.render():("refresh"===Ct||"append"===Ct||"prepend"===Ct)&&this.render()},_createRow:function(Ze){var Ct=this.callBase.apply(this,arguments);return Ze.rowType===dr&&Ct.addClass(Si),Ct},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}}),Wr={init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=I.ZT},summaryGetter:function(Ze){if(!arguments.length)return this._summaryGetter;(0,C.mf)(Ze)&&(this._summaryGetter=Ze)},summary:function(Ze){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return Ze}},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var Ze=this.summary(),Ct=Ze&&Ze.sortByGroups();return Ct&&Ct.length},sortLastLevelGroupItems:function(Ze,Ct,ft){var zt=Te.Z.multiLevelGroup((0,ce.Z)(Ze),Ct).toArray(),wt=[];return ft.forEach(function(Xt){!function fn(Ke,ht,on,hn){hn=hn||[];for(var an=0;an<Ke.length;an++)hn.push(Ke[an].key),1===ht?on(hn,Ke[an].items):fn(Ke[an].items,ht-1,on,hn),hn.pop()}(zt,Ct.length,function(fn,Ke){Xt.toString()===fn.toString()&&(wt=wt.concat(Ke))})}),wt}},Ur=function(){var Ze=function(ft,zt,wt,Xt){var fn;if(Qr(ft)){var Ke=ft.getController("editing");if(Ke){var ht=Ke.getInsertedData();ht.length&&(wt=function hn(an,Nn,$n){return $n?hn(an,Nn.map(ot=>({items:[ot]}),$n-1)):an.concat(Nn)}(wt,ht,Xt));var on=Ke.getRemovedData();on.length&&(wt=function hn(an,Nn,$n){return $n?an.map(ot=>{var Bt={},nn=hn(ot.items||[],Nn,$n-1);return Object.defineProperty(Bt,"aggregates",{get:()=>ot.aggregates,set:On=>{ot.aggregates=On}}),(0,a.l)(Bt,ot,{items:nn})}):an.filter(ot=>Nn.indexOf(ot)<0)}(wt,on,Xt))}}return zt&&(fn=new Wi({totalAggregates:zt.totalAggregates,groupAggregates:zt.groupAggregates,data:wt,groupLevel:Xt})).calculate(),fn?fn.totalAggregates():[]},Ct=function(ft,zt,wt){var Xt=wt&&wt.sortByGroups&&wt.sortByGroups();return Xt&&Xt.length?function fn(Ke,ht,on){if(!Ke||!ht.length)return Ke;var Nn,an=on[0];return ht[0]&&an&&an.length&&(Nn=(0,ce.Z)(Ke),(0,g.S6)(an,function($n){Nn=0===$n?Nn.sortBy(this.selector,this.desc):Nn.thenBy(this.selector,this.desc)}),Nn.enumerate().done(function($n){Ke=$n})),ht=ht.slice(1),on=on.slice(1),ht.length&&on.length&&(0,g.S6)(Ke,function(){this.items=fn(this.items,ht,on)}),Ke}(ft,zt,Xt):ft};return{_customizeRemoteOperations:function(ft){var zt=this.summary();zt&&(ft.remoteOperations.summary?(!ft.isCustomLoading||ft.storeLoadOptions.isLoadingAll)&&(ft.storeLoadOptions.group&&(ft.remoteOperations.grouping?ft.storeLoadOptions.groupSummary=zt.groupAggregates:zt.groupAggregates.length&&(ft.remoteOperations.paging=!1)),ft.storeLoadOptions.totalSummary=zt.totalAggregates):(zt.totalAggregates.length||zt.groupAggregates.length&&ft.storeLoadOptions.group)&&(ft.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var wt=ft.cachedData.extra;wt&&wt.summary&&!ft.isCustomLoading&&(ft.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(ft){var zt=(0,fe.G5)(ft.storeLoadOptions.group||ft.loadOptions.group||[]),wt=ft.remoteOperations||{},Xt=this.summaryGetter()(wt);if(!ft.isCustomLoading||ft.storeLoadOptions.isLoadingAll)if(wt.summary)!wt.paging&&zt.length&&Xt&&(wt.grouping||Ze(this,{groupAggregates:Xt.groupAggregates},ft.data,zt.length),ft.data=Ct(ft.data,zt,Xt));else if(!wt.paging&&Xt){var fn,Ke,ht=ft.operationTypes||{};if(!Object.keys(ht).some(an=>ht[an])||null===(fn=ft.cachedData)||void 0===fn||null===(Ke=fn.extra)||void 0===Ke||!Ke.summary||zt.length&&Xt.groupAggregates.length){var hn=Ze(this,Xt,ft.data,zt.length);ft.extra=(0,C.PO)(ft.extra)?ft.extra:{},ft.extra.summary=hn,ft.cachedData&&(ft.cachedData.extra=ft.extra)}ft.data=Ct(ft.data,zt,Xt)}ft.isCustomLoading||(this._totalAggregates=ft.extra&&ft.extra.summary||this._totalAggregates),this.callBase(ft)}}}();O.extend(Wr),O.extend(Ur),d.Z.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:ie.Z.format("dxDataGrid-summarySum"),sumOtherColumn:ie.Z.format("dxDataGrid-summarySumOtherColumn"),min:ie.Z.format("dxDataGrid-summaryMin"),minOtherColumn:ie.Z.format("dxDataGrid-summaryMinOtherColumn"),max:ie.Z.format("dxDataGrid-summaryMax"),maxOtherColumn:ie.Z.format("dxDataGrid-summaryMaxOtherColumn"),avg:ie.Z.format("dxDataGrid-summaryAvg"),avgOtherColumn:ie.Z.format("dxDataGrid-summaryAvgOtherColumn"),count:ie.Z.format("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:Sr},extenders:{controllers:{data:{_isDataColumn:function(Ze){return Ze&&(!(0,C.$K)(Ze.groupIndex)||Ze.showWhenGrouped)},_isGroupFooterVisible:function(){for(var Ze=this.option("summary.groupItems")||[],Ct=0;Ct<Ze.length;Ct++){var ft=Ze[Ct],zt=this._columnsController.columnOption(ft.showInColumn||ft.column);if(ft.showInGroupFooter&&this._isDataColumn(zt))return!0}return!1},_processGroupItems:function(Ze,Ct,ft){var zt=ft&&ft.data,wt=this.callBase.apply(this,arguments);return ft&&(void 0===ft.isGroupFooterVisible&&(ft.isGroupFooterVisible=this._isGroupFooterVisible()),zt&&zt.items&&ft.isGroupFooterVisible&&(ft.collectContinuationItems||!zt.isContinuationOnNextPage)&&wt.push({rowType:Yi,key:ft.path.slice(),data:zt,groupIndex:ft.path.length-1,values:[]})),wt},_processGroupItem:function(Ze,Ct){var ft=this;if(Ct.summaryGroupItems||(Ct.summaryGroupItems=ft.option("summary.groupItems")||[]),"group"===Ze.rowType){var zt=-1,wt=-1;(0,g.S6)(Ct.visibleColumns,function(Xt){Ze.groupIndex===this.groupIndex&&(zt=this.index),Xt>0&&"expand"===Ct.visibleColumns[Xt-1].command&&"expand"!==this.command&&(wt=this.index)}),Ze.summaryCells=this._calculateSummaryCells(Ct.summaryGroupItems,Gr(Ze.data),Ct.visibleColumns,function(Xt,fn){return Xt.showInGroupFooter?-1:Xt.alignByColumn&&fn&&!(0,C.$K)(fn.groupIndex)&&fn.index!==wt?fn.index:zt},!0)}return Ze.rowType===Yi&&(Ze.summaryCells=this._calculateSummaryCells(Ct.summaryGroupItems,Gr(Ze.data),Ct.visibleColumns,function(Xt,fn){return Xt.showInGroupFooter&&ft._isDataColumn(fn)?fn.index:-1})),Ze},_calculateSummaryCells:function(Ze,Ct,ft,zt,wt){var Xt=this,fn=[],Ke={};return(0,g.S6)(Ze,function(ht,on){var hn=Xt._columnsController.columnOption(on.column),an=on.showInColumn&&Xt._columnsController.columnOption(on.showInColumn)||hn,Nn=zt(on,an);if(Nn>=0){Ke[Nn]||(Ke[Nn]=[]);var ot,$n=Ct[ht];$n==$n&&((0,C.$K)(on.valueFormat)?ot=on.valueFormat:"count"!==on.summaryType&&(ot=d.Z.getFormatByDataType(hn&&hn.dataType)),Ke[Nn].push((0,a.l)({},on,{value:(0,C.HD)($n)&&hn&&hn.deserializeValue?hn.deserializeValue($n):$n,valueFormat:ot,columnCaption:hn&&hn.index!==Nn?hn.caption:void 0})))}}),(0,C.Qr)(Ke)||ft.forEach((ht,on)=>{var hn=ft[on-1];fn.push(Ke[!wt||"expand"!==hn?.command&&"expand"!==ht.command?ht.index:hn?.index]||[])}),fn},_getSummaryCells:function(Ze,Ct){var ft=this;return ft._calculateSummaryCells(Ze,Ct,ft._columnsController.getVisibleColumns(),function(wt,Xt){return ft._isDataColumn(Xt)?Xt.index:-1})},_updateItemsCore:function(Ze){var Ct,ft=this._dataSource,zt=this._footerItems,wt=zt&&zt[0]&&zt[0].summaryCells,Xt=this.option("summary.totalItems");if(this._footerItems=[],ft&&Xt&&Xt.length){var fn=ft.totalAggregates();Ct=this._getSummaryCells(Xt,fn),Ze&&Ze.repaintChangesOnly&&wt&&(Ze.totalColumnIndices=Ct.map(function(Ke,ht){return JSON.stringify(Ke)!==JSON.stringify(wt[ht])?ht:-1}).filter(Ke=>Ke>=0)),Ct.length&&this._footerItems.push({rowType:dr,summaryCells:Ct})}this.callBase(Ze)},_prepareUnsavedDataSelector:function(Ze){if(Qr(this)){var Ct=this.getController("editing");if(Ct)return function(ft){return ft=Ct.getUpdatedData(ft),Ze(ft)}}return Ze},_prepareAggregateSelector:function(Ze,Ct){return Ze=this._prepareUnsavedDataSelector(Ze),"avg"===Ct||"sum"===Ct?function(ft){var zt=Ze(ft);return(0,C.$K)(zt)?Number(zt):zt}:Ze},_getAggregates:function(Ze,Ct){var ft=this,zt=ft.getController("columns"),wt=ft.option("summary.calculateCustomSummary"),Xt=ft.option("summary.skipEmptyValues");return(0,g.UI)(Ze||[],function(fn){var Ke=zt.columnOption(fn.column),ht=Ke&&Ke.calculateCellValue?Ke.calculateCellValue.bind(Ke):(0,oe.vb)(Ke?Ke.dataField:fn.column),on=fn.summaryType||"count",hn=(0,C.$K)(fn.skipEmptyValues)?fn.skipEmptyValues:Xt;if(Ct)return{selector:fn.column,summaryType:on};var an=ft._prepareAggregateSelector(ht,on);if("custom"===on){wt||(y.Z.log("E1026"),wt=function(){});var Nn={component:ft.component,name:fn.name};wt(Nn),Nn.summaryProcess="calculate",on={seed:function($n){return Nn.summaryProcess="start",Nn.totalValue=void 0,Nn.groupIndex=$n,delete Nn.value,wt(Nn),Nn.totalValue},step:function($n,ot){return Nn.summaryProcess="calculate",Nn.totalValue=$n,Nn.value=ot,wt(Nn),Nn.totalValue},finalize:function($n){return Nn.summaryProcess="finalize",Nn.totalValue=$n,delete Nn.value,wt(Nn),Nn.totalValue}}}return{selector:an,aggregator:on,skipEmptyValues:hn}})},_addSortInfo:function(Ze,Ct,ft,zt){if(Ct){var wt=Ct.groupIndex;zt=zt||Ct.sortOrder,(0,C.$K)(wt)&&(Ze[wt]=Ze[wt]||[],Ze[wt].push({selector:ft,desc:"desc"===zt}))}},_findSummaryItem:function(Ze,Ct){var ft=-1;return(0,C.$K)(Ct)&&(0,g.S6)(Ze||[],function(zt){if(this.name===Ct||zt===Ct||this.summaryType===Ct||this.column===Ct||(fn=this.column,((Xt=this.summaryType)&&fn&&Xt+"_"+fn)===Ct))return ft=zt,!1;var Xt,fn}),ft},_getSummarySortByGroups:function(Ze,Ct){var ft=this,zt=ft._columnsController,wt=zt.getGroupColumns(),Xt=[];if(Ct&&Ct.length)return(0,g.S6)(Ze||[],function(){var fn=this.sortOrder,Ke=this.groupColumn,ht=ft._findSummaryItem(Ct,this.summaryItem);if(!(ht<0)){var on=function(hn){return Gr(hn)[ht]};(0,C.$K)(Ke)?(Ke=zt.columnOption(Ke),ft._addSortInfo(Xt,Ke,on,fn)):(0,g.S6)(wt,function(hn,an){ft._addSortInfo(Xt,an,on,fn)})}}),Xt},_createDataSourceAdapterCore:function(Ze,Ct){var ft=this,zt=this.callBase(Ze,Ct);return zt.summaryGetter(function(wt){return ft._getSummaryOptions(wt||Ct)}),zt},_getSummaryOptions:function(Ze){var Ct=this,ft=Ct.option("summary.groupItems"),zt=Ct.option("summary.totalItems"),wt=Ct.option("sortByGroupSummaryInfo"),Xt=Ct._getAggregates(ft,Ze&&Ze.grouping&&Ze.summary),fn=Ct._getAggregates(zt,Ze&&Ze.summary);if(Xt.length||fn.length)return{groupAggregates:Xt,totalAggregates:fn,sortByGroups:function(){return Ct._getSummarySortByGroups(wt,ft)}}},publicMethods:function(){var Ze=this.callBase();return Ze.push("getTotalSummaryValue"),Ze},getTotalSummaryValue:function(Ze){var Ct=this._findSummaryItem(this.option("summary.totalItems"),Ze),ft=this._dataSource.totalAggregates();if(ft.length&&Ct>-1)return ft[Ct]},optionChanged:function(Ze){("summary"===Ze.name||"sortByGroupSummaryInfo"===Ze.name)&&(Ze.name="dataSource"),this.callBase(Ze)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){Qr(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addChange:function(Ze){var Ct=this.callBase.apply(this,arguments);return Ze.type&&this._refreshSummary(),Ct},_removeChange:function(){var Ze=this.callBase.apply(this,arguments);return this._refreshSummary(),Ze},cancelEditData:function(){var Ze=this.callBase.apply(this,arguments);return this._refreshSummary(),Ze}}},views:{rowsView:{_createRow:function(Ze){var Ct=this.callBase.apply(this,arguments);return Ze&&Ct.addClass(Ze.rowType===Yi?vn:""),Ct},_renderCells:function(Ze,Ct){this.callBase.apply(this,arguments),"group"===Ct.row.rowType&&Ct.row.summaryCells&&Ct.row.summaryCells.length&&this._renderGroupSummaryCells(Ze,Ct)},_hasAlignByColumnSummaryItems:function(Ze,Ct){return!(0,C.$K)(Ct.columns[Ze].groupIndex)&&Ct.row.summaryCells[Ze].length},_getAlignByColumnCellCount:function(Ze,Ct){for(var ft=0,zt=1;zt<Ze;zt++)ft=this._hasAlignByColumnSummaryItems(Ct.row.summaryCells.length-zt,Ct)?zt:ft;return ft},_renderGroupSummaryCells:function(Ze,Ct){var ft=Ze.children().last(),zt=Number(ft.attr("colSpan"))||1,wt=this._getAlignByColumnCellCount(zt,Ct);this._renderGroupSummaryCellsCore(ft,Ct,zt,wt)},_renderGroupSummaryCellsCore:function(Ze,Ct,ft,zt){if(zt>0){Ze.attr("colSpan",ft-zt);for(var wt=0;wt<zt;wt++){var Xt=Ct.columns.length-zt+wt;this._renderCell(Ze.parent(),(0,a.l)({column:Ct.columns[Xt],columnIndex:this._getSummaryCellIndex(Xt,Ct.columns)},Ct))}}},_getSummaryCellIndex:function(Ze){return Ze},_getCellTemplate:function(Ze){return!Ze.column.command&&!(0,C.$K)(Ze.column.groupIndex)&&Ze.summaryItems&&Ze.summaryItems.length?kr:this.callBase(Ze)},_getCellOptions:function(Ze){var Ct=this.callBase(Ze);return Ze.row.summaryCells?(0,a.l)(Ct,Nr(this,Ze)):Ct}}}}});var Rr=u(4047);d.Z.registerModule("columnFixing",Rr.N);var mo=u(8395);d.Z.registerModule("adaptivity",mo.X);var Mr=u(7209);d.Z.registerModule("virtualColumns",Mr.t);var po=u(4817),mi=u(5450),ar=u(6314),Xr=u(8606),lo=u(9589),It=(u(219),u(854),u(4137)),jn="dx-datagrid-export-button",fi=Be.Z.inherit({ctor:function(Ze,Ct,ft){this._exportController=Ze,this._initialColumnWidthsByColumnIndex=Ct,this._selectedRowsOnly=ft},_getGroupValue:function(Ze){var{key:Ct,data:ft,rowType:zt,groupIndex:wt,summaryCells:Xt}=Ze,fn=this._options.groupColumns[wt],Ke=d.Z.getDisplayValue(fn,fn.deserializeValue?fn.deserializeValue(Ct[wt]):Ct[wt],ft,zt),ht=fn.caption+": "+d.Z.formatValue(Ke,fn);return Xt&&Xt[0]&&Xt[0].length&&(ht+=" "+d.Z.getGroupRowSummaryText(Xt[0],this._options.summaryTexts)),ht},_correctCellIndex:function(Ze){return Ze},_initOptions:function(){var Ze=this._exportController,Ct=Ze._columnsController.getGroupColumns(),ft=Ze.option("export.excelWrapTextEnabled");this._options={columns:Ze._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:Ct,items:this._selectedRowsOnly||Ze._selectionOnly?Ze._getSelectedItems():Ze._getAllItems(),getVisibleIndex:Ze._columnsController.getVisibleIndex.bind(Ze._columnsController),isHeadersVisible:Ze.option("showColumnHeaders"),summaryTexts:Ze.option("summary.texts"),customizeExportData:Ze.option("customizeExportData"),rtlEnabled:Ze.option("rtlEnabled"),wrapTextEnabled:(0,C.$K)(ft)?ft:!!Ze.option("wordWrapEnabled"),customizeExcelCell:Ze.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,C.$K)(this._options.customizeExcelCell)},customizeExcelCell:function(Ze,Ct){this._options.customizeExcelCell&&(Ze.gridCell=Ct,(0,C.$K)(this._exportController)&&(0,C.$K)(this._exportController.component)&&(Ze.component=this._exportController.component),this._options.customizeExcelCell(Ze))},getHeaderStyles:()=>[{bold:!0,alignment:"center",wrapText:!0},{bold:!0,alignment:"left",wrapText:!0},{bold:!0,alignment:"right",wrapText:!0}],getGroupRowStyle(){return{bold:!0,wrapText:!1,alignment:(0,mi.q)(this._options.rtlEnabled)}},getColumnStyles(){var Ze=this._options.wrapTextEnabled,Ct=[];return this.getColumns().forEach(ft=>{Ct.push({alignment:ft.alignment||"left",format:ft.format,wrapText:Ze,dataType:ft.dataType})}),Ct},getStyles:function(){return[...this.getHeaderStyles(),...this.getColumnStyles(),this.getGroupRowStyle()]},_getTotalCellStyleId:function(Ze){var Ct,ft=(null===(Ct=this.getColumns()[Ze])||void 0===Ct?void 0:Ct.alignment)||"right";return this.getHeaderStyles().map(zt=>zt.alignment).indexOf(ft)},getStyleId:function(Ze,Ct){return Ze<this.getHeaderRowCount()?0:this.isTotalCell(Ze-this.getHeaderRowCount(),Ct)?this._getTotalCellStyleId(Ct):this.isGroupRow(Ze-this.getHeaderRowCount())?this.getHeaderStyles().length+this.getColumns().length:Ct+this.getHeaderStyles().length},getColumns:function(Ze){var{columns:Ct}=this._options;return Ze?Ct:Ct[Ct.length-1]},getColumnsWidths:function(){var Ze=this.getColumns();return(0,C.$K)(Ze)?Ze.map(Ct=>Ct.width):void 0},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(Ze){return Ze<this._options.items.length&&"group"===this._options.items[Ze].rowType},getGroupLevel:function(Ze){var Ct=this._options.items[Ze-this.getHeaderRowCount()],ft=Ct&&Ct.groupIndex;return Ct&&"totalFooter"===Ct.rowType?0:(0,C.$K)(ft)?ft:this._options.groupColumns.length},getCellType:function(Ze,Ct){var ft=this.getColumns();if(Ze<this.getHeaderRowCount())return"string";if(Ze-=this.getHeaderRowCount(),Ct<ft.length){var zt=this._options.items.length&&this._options.items[Ze],wt=ft[Ct];return zt&&"data"===zt.rowType&&isFinite(zt.values[this._correctCellIndex(Ct)])&&!(0,C.$K)(wt.customizeText)?(0,C.$K)(wt.lookup)?wt.lookup.dataType:wt.dataType:"string"}},ready:function(){var Ze=this;Ze._initOptions();var Ct=Ze._options;return(0,ze.gx)(Ct.items).done(function(ft){Ct.customizeExportData&&Ct.customizeExportData(Ze.getColumns(Ze.getHeaderRowCount()>1),ft),Ct.items=ft}).fail(function(){Ct.items=[]})},_convertFromGridGroupSummaryItems:function(Ze){if((0,C.$K)(Ze)&&Ze.length>0)return Ze.map(function(Ct){return{value:Ct.value,name:Ct.name}})},getCellData:function(Ze,Ct,ft){var zt,wt,Xt={cellSourceData:{},value:zt},fn=this.getColumns(),Ke=this._correctCellIndex(Ct);if(Ze<this.getHeaderRowCount())wt=this.getColumns(!0)[Ze][Ct],Xt.cellSourceData.rowType="header",Xt.cellSourceData.column=wt&&wt.gridColumn,Xt.value=wt&&wt.caption;else{Ze-=this.getHeaderRowCount();var on=this._options.items.length&&this._options.items[Ze];if(on){var hn=on.values;switch(Xt.cellSourceData.rowType=on.rowType,Xt.cellSourceData.column=fn[Ct]&&fn[Ct].gridColumn,on.rowType){case"groupFooter":case"totalFooter":Ke<hn.length&&((0,C.$K)(zt=hn[Ke])?(Xt.cellSourceData.value=zt.value,Xt.cellSourceData.totalSummaryItemName=zt.name,Xt.value=d.Z.getSummaryText(zt,this._options.summaryTexts)):Xt.cellSourceData.value=void 0);break;case"group":if(Xt.cellSourceData.groupIndex=on.groupIndex,Ct<1)Xt.cellSourceData.column=this._options.groupColumns[on.groupIndex],Xt.cellSourceData.value=on.key[on.groupIndex],Xt.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(on.summaryCells[0]),Xt.value=this._getGroupValue(on);else{var an=on.values[Ke];if(Array.isArray(an)){Xt.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(an),zt="";for(var Nn=0;Nn<an.length;Nn++)zt+=(Nn>0?ft?"\n":" \n ":"")+d.Z.getSummaryText(an[Nn],this._options.summaryTexts);Xt.value=zt}else Xt.cellSourceData.value=void 0}break;default:if(wt=fn[Ct]){var $n=hn[Ke],ot=d.Z.getDisplayValue(wt,$n,on.data,on.rowType);Xt.value=!isFinite(ot)||(0,C.$K)(wt.customizeText)?ft&&(0,C.$K)(wt.customizeText)&&wt.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?ot:d.Z.formatValue(ot,wt):ot,Xt.cellSourceData.value=$n}Xt.cellSourceData.data=on.data}}}return Xt},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(Ze,Ct){var zt=this._options.items[Ze],wt=this._correctCellIndex(Ct);return zt&&"groupFooter"===zt.rowType||"totalFooter"===zt.rowType||zt.summaryCells&&zt.summaryCells[wt]&&zt.summaryCells[wt].length>0&&zt.summaryCells[wt][0].alignByColumn},getCellMerging:function(Ze,Ct){var ft=this._options.columns,zt=ft[Ze]&&ft[Ze][Ct];return zt?{colspan:(zt.exportColspan||1)-1,rowspan:(zt.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}}),Li=d.Z.ViewController.inherit({}).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(Ze,Ct){Ze.width=Ct},_getColumns:function(Ze){var ft,zt,Ct=[],wt=this._columnsController,Xt=wt.getRowCount();for(ft=0;ft<=Xt;ft++){var fn=[];zt=wt.getVisibleColumns(ft,!0);var Ke=void 0;if(ft===Xt)if(this._updateLockCount)Ke=Ze;else{var ht=this._getColumnWidths(this._headersView,this._rowsView);if(ht&&ht.length){Ke={};for(var on=0;on<zt.length;on++)Ke[zt[on].index]=ht[on]}}for(var hn=0;hn<zt.length;hn++){var an=(0,a.l)({},zt[hn],{dataType:"datetime"===zt[hn].dataType?"date":zt[hn].dataType,gridColumn:zt[hn]});if(this._needColumnExporting(an)){var Nn=this._calculateExportColspan(an);(0,C.$K)(Nn)&&(an.exportColspan=Nn),Ke&&this._updateColumnWidth(an,Ke[an.index]),fn.push(an)}}Ct.push(fn)}return zt=Ct[Xt],(Ct=(0,ar.$)(Ct.slice(0,-1),this._getEmptyCell())).push(zt),Ct},_calculateExportColspan:function(Ze){if(Ze.isBand){var Ct=this._columnsController.getChildrenByBandColumn(Ze.index,!0);if((0,C.$K)(Ct))return Ct.reduce((ft,zt)=>this._needColumnExporting(zt)?ft+(this._calculateExportColspan(zt)||1):ft,0)}},_needColumnExporting:function(Ze){return!Ze.command&&(Ze.allowExporting||void 0===Ze.allowExporting)},_getFooterSummaryItems:function(Ze,Ct){var ft=[],zt=1,wt=0;do{for(var Xt=[],fn=0;fn<Ze.length;fn++){var Ke=Ze[fn],ht=Ke.length;zt<ht&&(zt=ht),Xt.push(Ke[wt])}ft.push({values:Xt,rowType:Ct?"totalFooter":"groupFooter"})}while(wt++<zt-1);return ft},_hasSummaryGroupFooters:function(){var Ze=this.option("summary.groupItems");if((0,C.$K)(Ze))for(var Ct=0;Ct<Ze.length;Ct++)if(Ze[Ct].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(Ze){for(var Ct=[],ft=[],zt=[],wt=0;wt<Ze.length;wt++){var Xt=Ze[wt];"groupFooter"===Xt.rowType?(zt=this._getFooterSummaryItems(Xt.summaryCells),Ct=Ct.concat(ft,zt),ft=[]):ft.push(Xt)}return Ct.length?Ct:ft},_updateGroupValuesWithSummaryByColumn:function(Ze){for(var Ct=[],ft=0;ft<Ze.length;ft++){var zt=Ze[ft],wt=zt.summaryCells;if("group"===zt.rowType&&wt&&wt.length>1){for(var Xt=zt.values.length,fn=1;fn<wt.length;fn++)for(var Ke=0;Ke<wt[fn].length;Ke++){var ht=wt[fn][Ke];ht&&ht.alignByColumn&&(Array.isArray(Ct[fn-Xt])||(Ct[fn-Xt]=[]),Ct[fn-Xt].push(ht))}Ct.length>0&&(zt.values.push(...Ct),Ct=[])}}},_processUnExportedItems:function(Ze){for(var zt,wt,Ct=this._columnsController.getVisibleColumns(null,!0),ft=this._columnsController.getGroupColumns(),Xt=0;Xt<Ze.length;Xt++){var fn=Ze[Xt],Ke=!1;zt=[],wt=[];for(var ht=0;ht<Ct.length;ht++){var on=Ct[ht];if(Ke||(Ke=["detailExpand","buttons"].includes(on.type)),this._needColumnExporting(on)&&(fn.values&&zt.push("group"!==fn.rowType||zt.length?fn.values[ht]:fn.key[fn.groupIndex]),fn.summaryCells))if("group"!==fn.rowType||wt.length)wt.push(fn.summaryCells[ht]);else{var hn=ht-ft.length+fn.groupIndex;wt.push(fn.summaryCells[Ke?hn:hn+1])}}zt.length&&(fn.values=zt),wt.length&&(fn.summaryCells=wt)}},_getAllItems:function(Ze){var Ke,Ct=this,ft=new ze.BH,zt=this.getController("data"),wt=zt.footerItems(),Xt=wt.length&&wt[0],fn=Ct.option("summary.totalItems");return(0,ze.gx)(Ze).done(function(ht){zt.loadAll(ht).done(function(on,hn){Ct._updateGroupValuesWithSummaryByColumn(on),Ct._hasSummaryGroupFooters()&&(on=Ct._getItemsWithSummaryGroupFooters(on)),Ke=Xt&&Xt.summaryCells,(0,C.$K)(hn)&&fn&&(Ke=Ct._getSummaryCells(fn,hn));var an=Xt&&Ct._getFooterSummaryItems(Ke,!0);an&&(on=on.concat(an)),Ct._processUnExportedItems(on),ft.resolve(on)}).fail(ft.reject)}).fail(ft.reject),ft},_getSummaryCells:function(Ze,Ct){var ft=this.getController("data");return ft._calculateSummaryCells(Ze,Ct,ft._columnsController.getVisibleColumns(null,!0),function(wt,Xt){return ft._isDataColumn(Xt)?Xt.index:-1})},_getSelectedItems:function(){var Ct=this.getController("selection").getSelectedRowsData();return this._getAllItems(Ct)},_getColumnWidths:function(Ze,Ct){return Ze&&Ze.isVisible()?Ze.getColumnWidths():Ct.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getDataProvider:function(Ze){var ft,Ct=this._getColumnWidths(this._headersView,this._rowsView);if(Ct&&Ct.length){ft={};for(var zt=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),wt=0;wt<zt.length;wt++)ft[zt[wt].index]=Ct[wt]}return new fi(this,ft,Ze)},exportToExcel:function(Ze){this._selectionOnly=Ze,(0,Xr.xD)(this.component.getDataProvider(),{fileName:this.option("export.fileName"),format:"xlsx",selectedRowsOnly:!!Ze,autoFilterEnabled:!!this.option("export.excelFilterEnabled"),rtlEnabled:this.option("rtlEnabled"),exportingAction:this.getAction("onExporting"),exportedAction:this.getAction("onExported"),fileSavingAction:this.getAction("onFileSaving")},Xr.Ak.getData)},exportTo:function(Ze,Ct){this._selectionOnly=Ze;var ft=this.getAction("onExporting"),zt={selectedRowsOnly:!!Ze,format:Ct,fileName:this.option("export.fileName"),cancel:!1};(0,C.mf)(ft)&&ft(zt)},publicMethods:function(){return["getDataProvider","exportToExcel"]},selectionOnly:function(Ze){if(!(0,C.$K)(Ze))return this._isSelectedRows;this._isSelectedRows=Ze,this.selectionOnlyChanged.fire()}});d.Z.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,formats:["xlsx"],excelWrapTextEnabled:void 0,allowExportSelectedData:!1,texts:{exportTo:ie.Z.format("dxDataGrid-exportTo"),exportAll:ie.Z.format("dxDataGrid-exportAll"),exportSelectedRows:ie.Z.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:Li},extenders:{controllers:{editing:{callbackNames:function(){var Ze=this.callBase();return(0,C.$K)(Ze)?Ze.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var Ze=this.callBase(),Ct=this._getExportToolbarButton();return Ct&&(Ze.push(Ct),this._correctItemsPosition(Ze)),Ze},_getExportToolbarButton:function(){var Ze=this._getExportToolbarItems();if(0===Ze.length)return null;var Ct={name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30,options:{items:Ze}};if(1===Ze.length){var ft=(0,po.Z)({},Ze[0],{hint:Ze[0].text,elementAttr:{class:jn}});Ct.widget="dxButton",Ct.showText="inMenu",Ct.options=ft}else{var zt={icon:"export",displayExpr:"text",items:Ze,hint:this.option("export.texts.exportTo"),elementAttr:{class:jn},dropDownOptions:{width:"auto",_wrapperClassExternal:"dx-datagrid-export-menu"}};Ct.options=zt,Ct.widget="dxDropDownButton",Ct.menuItemTemplate=(wt,Xt,fn)=>{this._createComponent((0,o.Z)(fn),It.Z,{items:Ze})}}return Ct},_getExportToolbarItems:function(){var Ze,Ct=this.option("export"),ft=this.option("export.texts"),zt=null!==(Ze=this.option("export.formats"))&&void 0!==Ze?Ze:[];if(!Ct.enabled)return[];var wt=[];return zt.forEach(Xt=>{var fn="exportTo",Ke=Xt.toUpperCase(),ht="export";"xlsx"===Xt&&(fn="exportToExcel",Ke="Excel",ht="xlsxfile"),"pdf"===Xt&&(ht="pdffile"),wt.push({text:(0,lo.WU)(ft.exportAll,Ke),icon:ht,onClick:()=>{this._exportController[fn](!1,Xt)}}),Ct.allowExportSelectedData&&wt.push({text:(0,lo.WU)(ft.exportSelectedRows,Ke),icon:"exportselected",onClick:()=>{this._exportController[fn](!0,Xt)}})}),wt},_correctItemsPosition:function(Ze){Ze.sort(function(Ct,ft){return Ct.sortIndex-ft.sortIndex})},_isExportButtonVisible:function(){return this.option("export.enabled")},optionChanged:function(Ze){this.callBase(Ze),"export"===Ze.name&&(Ze.handled=!0,this._invalidate())},init:function(){var Ze=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add(function(Ct){Ze.setToolbarItemDisabled("exportButton",Ct)})},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}});var sr=u(6775),gr=Number.MAX_SAFE_INTEGER||9007199254740991;d.Z.registerModule("focus",(0,a.l)(!0,{},sr.W,{extenders:{controllers:{data:{changeRowExpand:function(Ze,Ct){if(this.option("focusedRowEnabled")&&Array.isArray(Ze)&&this.isRowExpanded(Ze)){var ft=this.getController("keyboardNavigation");(!Ct||!ft.isKeyboardEnabled())&&this._isFocusedRowInsideGroup(Ze)&&this.option("focusedRowKey",Ze)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(Ze){var Ct=this.getController("columns"),ft=this.option("focusedRowKey"),zt=this.getRowIndexByKey(ft),wt=zt>=0&&this.getVisibleRows()[zt],Xt=Ct.getGroupDataSourceParameters(!0);if(wt)for(var fn=0;fn<Ze.length;++fn)if((0,oe.vb)(Xt[fn]&&Xt[fn].selector)(wt.data)!==Ze[fn])return!1;return!0},_getGroupPath:function(Ze,Ct){for(var ft=[],zt=[Ze];zt&&zt[0]&&Ct;){var wt=zt[0];void 0!==wt.key&&ft.push(wt.key),zt=wt.items,Ct--}return ft},_expandGroupByPath:function(Ze,Ct,ft){var zt=new ze.BH;return ft++,Ze.expandRow(Ct.slice(0,ft)).done(function(){ft===Ct.length?zt.resolve():Ze._expandGroupByPath(Ze,Ct,ft).done(zt.resolve).fail(zt.reject)}).fail(zt.reject),zt.promise()},_calculateGlobalRowIndexByGroupedData:function(Ze){var Ct=this,ft=Ct._dataSource,zt=Ct._generateFilterByKey(Ze),wt=new ze.BH,Xt=Array.isArray(Ze),fn=ft.group();return Xt?wt.resolve(-1).promise():ft._grouping._updatePagingOptions?(ft.load({filter:Ct._concatWithCombinedFilter(zt),group:fn}).done(function(Ke){if(!Ke||0===Ke.length||!(0,C.$K)(Ke[0].key)||-1===Ke[0].key)return wt.resolve(-1).promise();var ht=Ct._getGroupPath(Ke[0],fn.length);Ct._expandGroupByPath(Ct,ht,0).done(function(){Ct._calculateExpandedRowGlobalIndex(wt,Ze,ht,fn)}).fail(wt.reject)}).fail(wt.reject),wt.promise()):(Ct._calculateGlobalRowIndexByFlatData(Ze,null,!0).done(wt.resolve).fail(wt.reject),wt)},_calculateExpandedRowGlobalIndex:function(Ze,Ct,ft,zt){var on,wt=ne(ft,{group:zt}),Xt=this._dataSource,fn=this.option("scrolling.mode"),Ke="virtual"===fn||"infinite"===fn,ht=Xt.pageSize();Xt._grouping._updatePagingOptions({skip:0,take:gr},function(hn,an){(0,I.bY)(hn.path,ft)&&(on=an)}),this._calculateGlobalRowIndexByFlatData(Ct,wt).done(function(hn){var an,Nn;hn<0?Ze.resolve(-1):(an=(on%ht||ht)+hn-ft.length,Nn=Ke?0:Math.floor(an/(ht-ft.length))*ft.length,Ze.resolve(an=on+hn+Nn))}).fail(Ze.reject)}}}}}));var Qt=u(8702);d.Z.registerModule("rowDragging",Qt.d);const _n=j},1884:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>bo});var It,o=u(8506),c=u(8225),I=u(1828),C=u(6520),g=u(5873),a=u(3487),p=u(913),s=u(8638),l=u(7674),d=It=>It.getMonth()+1,h=(It,en)=>{var jn=It.getDate(),vi=E("M",It),_i=(0,a.n$)(parseInt(en),vi.min,vi.max);It.setMonth(_i-1,1);var{min:dn,max:Tn}=E("dM",It),Zn=(0,a.n$)(jn,dn,Tn);It.setDate(Zn)},v={a:It=>It.getHours()<12?0:1,E:"getDay",y:"getFullYear",M:d,L:d,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},x=(0,g.l)({},(0,s.xe)(),{a:(It,en)=>{var jn=It.getHours();jn>=12!=!!parseInt(en)&&It.setHours((jn+12)%24)},d:(It,en)=>{en>E("dM",It).max&&It.setMonth(It.getMonth()+1),It.setDate(en)},h:(It,en)=>{var jn=It.getHours()>=12;It.setHours(+en%12+(jn?12:0))},M:h,L:h,E:(It,en)=>{en<0||It.setDate(It.getDate()-It.getDay()+parseInt(en))},y:(It,en)=>{var jn=It.getFullYear(),vi=String(en).length,_i=String(E("y",It).max).length,dn=parseInt(String(jn).substr(0,_i-vi)+en);It.setFullYear(dn)}}),E=(It,en,jn)=>{var vi={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(en.getFullYear(),en.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return vi[jn||It]||vi.getAmPm},O=u(8119),w=u(3479),T=u(4514),k=u(2718),R=u(4505),P=u(2941),B=u(7572),W=u(8204),z=u(9904),V=u(8492),U=["year","day","month","day"],K=["hours","minutes","seconds","milliseconds"],G={SUPPORTED_FORMATS:["date","time","datetime"],ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:(It=new Date,new Date(It.getFullYear()+50,It.getMonth(),It.getDate(),23,59,59)),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:U},time:{getStandardPattern:function(){return"HH:mm"},components:K},datetime:{getStandardPattern:function(){var It,en;return(en=(0,z.Z)("<input>").attr("type","datetime")).val("2000-01-01T01:01Z"),en.val()&&(It="yyyy-MM-ddTHH:mmZ"),It||(It="yyyy-MM-ddTHH:mm:ssZ"),G.FORMATS_INFO.datetime.getStandardPattern=function(){return It},It},components:[...U,...K]},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:[...U,"hours","minutes","seconds"]}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(It,en){var jn=G.FORMATS_INFO[en].getStandardPattern();return V.Z.serializeDate(It,jn)},fromStandardDateFormat:function(It){var en=V.Z.dateParser(It);return(0,I.J_)(en)?en:void 0},getMaxMonthDay:function(It,en){return new Date(It,en+1,0).getDate()},mergeDates:function(It,en,jn){if(!en)return en||null;if(!It||isNaN(It.getTime())){var vi=new Date(null);It=new Date(vi.getFullYear(),vi.getMonth(),vi.getDate())}var _i=new Date(It.valueOf());return(0,k.S6)(G.FORMATS_INFO[jn].components,function(){var Tn=G.DATE_COMPONENTS_INFO[this];_i[Tn.setter](en[Tn.getter]())}),_i},getLongestCaptionIndex:function(It){var vi,en=0,jn=0;for(vi=0;vi<It.length;++vi)It[vi].length>jn&&(en=vi,jn=It[vi].length);return en},formatUsesMonthName:function(It){return O.Z.formatUsesMonthName(It)},formatUsesDayName:function(It){return O.Z.formatUsesDayName(It)},getLongestDate:function(It,en,jn){var vi=function(It){var en=typeof It;return"string"===en?"format":"object"===en&&void 0!==It.type?It.type:null}(It),_i=9;(!vi||G.formatUsesMonthName(vi))&&(_i=G.getLongestCaptionIndex(en));var dn=new Date(1888,_i,21,23,59,59,999);if(!vi||G.formatUsesDayName(vi)){var Tn=dn.getDate()-dn.getDay()+G.getLongestCaptionIndex(jn);dn.setDate(Tn)}return dn},normalizeTime:function(It){It.setSeconds(0),It.setMilliseconds(0)}};G.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(It,en){var jn=new Date(en.getTime());return jn.setFullYear(It),O.Z.format(jn,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(It,en){var jn=new Date(en.getTime());return jn.setDate(It),O.Z.format(jn,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(It){return O.Z.getMonthNames()[It]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(It){return O.Z.format(new Date(0,0,0,It),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(It){return O.Z.format(new Date(0,0,0,0,It),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(It){return O.Z.format(new Date(0,0,0,0,0,It),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(It){return O.Z.format(new Date(0,0,0,0,0,0,It),"millisecond")},startValue:0,endValue:999}};const q=G;var Z=u(4694),X=u(9009),M=u(3180),oe=u(5031),fe=oe.Z.abstract,Te=oe.Z.inherit({ctor:function(It){this.dateBox=It},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(It){It=It||(0,z.Z)("<div>"),this._widget=this._createWidget(It),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(It){var en=this._getWidgetName(),jn=this._getWidgetOptions();return this.dateBox._createComponent(It,en,jn)},_getWidgetOptions:fe,_getWidgetName:fe,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:fe,supportedKeys:l.ZT,getKeyboardListener:l.ZT,customizeButtons:l.ZT,getParsedText:function(It,en){return O.Z.parse(It,en)||O.Z.parse(It)},renderInputMinMax:l.ZT,renderOpenedState:function(){this._updateValue()},popupConfig:fe,_dimensionChanged:function(){var It;null===(It=this._getPopup())||void 0===It||It.repaint()},renderPopupContent:function(){var It=this._getPopup();this._renderWidget();var en=It.$content().parent();p.Z.off(en,"mousedown"),p.Z.on(en,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:l.ZT,getLastPopupElement:l.ZT,_preventFocusOnPopup:function(It){It.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:l.ZT,popupHiddenHandler:l.ZT,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:l.ZT,getDefaultDate:function(){return new Date},textChangedHandler:l.ZT,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var It=this._getPopup();It&&It.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});const Be=Te;var ze=Be.inherit({NAME:"Calendar",getDefaultOptions:function(){return(0,g.l)(this.callBase(),{todayButtonText:X.Z.format("dxCalendar-todayButtonText")})},supportedKeys:function(){var It=function(en){return!!this.option("opened")&&(en.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(en){if(this.dateBox.option("opened")){if(en.preventDefault(),this._widget.option("zoomLevel")===this._widget.option("maxZoomLevel")){var jn=this._getContouredValue(),vi=this._lastActionElement,_i=this._closeDropDownByEnter();return _i&&jn&&"calendar"===vi&&this.dateBoxValue(jn,en),_i&&this.dateBox.close(),this.dateBox._valueChangeEventHandler(en),!_i}return!0}this.dateBox._valueChangeEventHandler(en)}.bind(this),home:It,end:It}},getDisplayFormat:function(It){return It||"shortdate"},_closeDropDownByEnter:()=>!0,_getWidgetName:function(){return M.Z},_getContouredValue:function(){return this._widget._view.option("contouredDate")},getKeyboardListener(){return this._widget},_getWidgetOptions:function(){var It=this.dateBox.option("disabledDates");return(0,g.l)(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:(0,I.mf)(It)?this._injectComponent(It.bind(this.dateBox)):It,onContouredChanged:this._refreshActiveDescendant.bind(this),skipFocusCheck:!0})},_injectComponent:function(It){var en=this;return function(jn){return(0,g.l)(jn,{component:en.dateBox}),It(jn)}},_refreshActiveDescendant:function(It){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",It.actionValue)},_getTodayButtonConfig(){var It=this.dateBox.option("buttonsLocation"),jn="default"===It?["bottom","center"]:(0,l.Um)(It);return{widget:"dxButton",toolbar:jn[0],location:"after"===jn[1]?"before":jn[1],options:{onInitialized:function(vi){vi.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:vi=>{this._widget._toTodayView(vi)},text:this.dateBox.option("todayButtonText"),type:"today"}}},_isCalendarVisible:function(){var{calendarOptions:It}=this.dateBox.option();return(0,I.Qr)(It)||!1!==It.visible},_getPopupToolbarItems(It){return"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()?[this._getTodayButtonConfig(),...It]:It},popupConfig:function(It){return(0,g.l)(!0,It,{position:{collision:"flipfit flip"},width:"auto"})},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(It){var en=It.value,jn=It.previousValue;W.Z.sameDate(en,jn)&&W.Z.sameHoursAndMinutes(en,jn)||"instantly"===this.dateBox.option("applyValueMode")&&this.dateBoxValue(this.getValue(),It.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(It){var en=this.dateBox;"instantly"===en.option("applyValueMode")&&(en.option("opened",!1),this.dateBoxValue(this.getValue(),It.event))}});const ae=ze;var _e=u(1031),ye=u(1805),ne=u(227),ce=u(7293),le=u(3553),pe=u(6961),Se=u(4609),be="dx-dateview-item";class tt extends ce.Z{_getDefaultOptions(){return(0,g.l)(super._getDefaultOptions(),{showScrollbar:"never",useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null,scrollByContent:!0})}_init(){super._init(),this.option("onVisibilityChange",this._visibilityChangedHandler.bind(this)),this.option("onEnd",this._endActionHandler.bind(this))}_render(){super._render(),this._renderSelectedItemFrame(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._renderWheelEvent(),this._renderSelectedIndexChanged()}_renderSelectedIndexChanged(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")}_renderWheelEvent(){p.Z.on((0,z.Z)(this.container()),"dxmousewheel",en=>{this._isWheelScrolled=!0})}_renderContainerClick(){if(this.option("showOnClick")){var en=(0,c.V4)(ne.u,this.NAME),jn=this._createActionByOption("onClick");p.Z.off((0,z.Z)(this.container()),en),p.Z.on((0,z.Z)(this.container()),en,function(vi){jn({event:vi})})}}_renderItems(){var en=this.option("items")||[],jn=(0,z.Z)();(0,z.Z)(this.content()).empty(),en.forEach(function(vi){jn=jn.add((0,z.Z)("<div>").addClass(be).append(vi))}),(0,z.Z)(this.content()).append(jn),this._$items=jn,this.update()}_renderSelectedItemFrame(){(0,z.Z)("<div>").addClass("dx-dateview-item-selected-frame").append((0,z.Z)("<div>").addClass("dx-dateview-item-selected-border")).appendTo((0,z.Z)(this.container()))}_renderSelectedValue(en){var jn=this._fitIndex(en??this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(jn)}),this._renderActiveStateItem()}_fitIndex(en){var vi=(this.option("items")||[]).length;return en>=vi?vi-1:en<0?0:en}_getItemPosition(en){return Math.round(this._itemHeight()*en)}_renderItemsClick(){var en=this._getItemSelector(),jn=(0,c.V4)(ne.u,this.NAME);p.Z.off(this.$element(),jn,en),p.Z.on(this.$element(),jn,en,this._itemClickHandler.bind(this))}_getItemSelector(){return"."+be}_itemClickHandler(en){this.option("selectedIndex",this._itemElementIndex(en.currentTarget))}_itemElementIndex(en){return this._itemElements().index(en)}_itemElements(){return this.$element().find(this._getItemSelector())}_renderActiveStateItem(){var en=this.option("selectedIndex");(0,k.S6)(this._$items,function(jn){(0,z.Z)(this).toggleClass("dx-dateview-item-selected",en===jn)})}_shouldScrollToNeighborItem(){return"desktop"===P.Z.real().deviceType&&this._isWheelScrolled}_moveTo(en){var{top:jn,left:vi}=function re(It,en){if((0,I.PO)(It)){var jn=(0,l.IS)(It.left,It.x),vi=(0,l.IS)(It.top,It.y);return{left:(0,I.$K)(jn)?jn:void 0,top:(0,I.$K)(vi)?vi:void 0}}var{isHorizontal:_i,isVertical:dn}=new Se.I(en);return{left:_i&&(0,I.$K)(It)?It:void 0,top:dn&&(0,I.$K)(It)?It:void 0}}(en),_i=this.scrollOffset(),dn={x:_i.left-vi,y:_i.top-jn};if(this._isVisible()&&(dn.x||dn.y))if(this._prepareDirections(!0),this._animation&&!this._shouldScrollToNeighborItem()){var Tn=this;le.Z.stop((0,z.Z)(this.content())),le.Z.animate((0,z.Z)(this.content()),{duration:200,type:"slide",to:{top:Math.floor(dn.y)},complete(){(0,pe.Kx)((0,z.Z)(Tn.content())),Tn.handleMove({delta:dn})}}),delete this._animation}else this.handleMove({delta:dn})}_validate(en){return this._moveIsAllowed(en)}_fitSelectedIndexInRange(en){var jn=this.option("items").length;return Math.max(Math.min(en,jn-1),0)}_isInNullNeighborhood(en){return-.1<=en&&en<=.1}_getSelectedIndexAfterScroll(en){var _i=this.scrollOffset().top-en*this._itemHeight();return this._isInNullNeighborhood(_i)?en:this._fitSelectedIndexInRange(en+(_i>0?1:-1))}_getNewSelectedIndex(en){if(this._shouldScrollToNeighborItem())return this._getSelectedIndexAfterScroll(en);this._animation=!0;var jn=this.scrollOffset().top/this._itemHeight();return Math.round(jn)}_endActionHandler(){var en=this.option("selectedIndex"),jn=this._getNewSelectedIndex(en);jn===en?this._renderSelectedValue(jn):this.option("selectedIndex",jn),this._isWheelScrolled=!1}_itemHeight(){var en=this._$items.first();return(0,ye.Cr)(en)}_toggleActive(en){this.$element().toggleClass("dx-state-active",en)}_isVisible(){return(0,z.Z)(this.container()).is(":visible")}_fireSelectedIndexChanged(en,jn){this._selectedIndexChanged({value:en,previousValue:jn,event:void 0})}_visibilityChanged(en){super._visibilityChanged(en),this._visibilityChangedHandler(en)}_visibilityChangedHandler(en){en&&(this._visibilityTimer=setTimeout(()=>{this._renderSelectedValue(this.option("selectedIndex"))})),this.toggleActiveState(!1)}toggleActiveState(en){this.$element().toggleClass("dx-dateviewroller-current",en)}_refreshSelectedIndex(){var en=this.option("selectedIndex"),jn=this._fitIndex(en);jn===en?this._renderActiveStateItem():this.option("selectedIndex",jn)}_optionChanged(en){switch(en.name){case"selectedIndex":this._fireSelectedIndexChanged(en.value,en.previousValue),this._renderSelectedValue(en.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:super._optionChanged(en)}}_dispose(){clearTimeout(this._visibilityTimer),super._dispose()}}(0,o.Z)("dxDateViewRoller",tt);const Le=tt;var gt="dx-dateview",Ye=_e.Z.inherit({_valueOption:function(){var It=this.option("value"),en=new Date(It);return!It||isNaN(en)?this._getDefaultDate():en},_getDefaultDate:function(){var It=new Date;return"date"===this.option("type")?new Date(It.getFullYear(),It.getMonth(),It.getDate()):It},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{minDate:q.MIN_DATEVIEW_DEFAULT_DATE,maxDate:q.MAX_DATEVIEW_DEFAULT_DATE,type:"date",value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(It){return"desktop"!==It.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass(gt),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(It,en){this.$element().addClass(gt+"-"+It),en&&this.$element().removeClass(gt+"-"+en)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=(0,z.Z)("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=(0,z.Z)("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var It=this;(0,k.S6)(It._rollerConfigs,function(en){var jn=(0,z.Z)("<div>").appendTo(It._$rollersContainer).addClass("dx-dateviewroller-"+It._rollerConfigs[en].type);It._rollers[It._rollerConfigs[en].type]=It._createComponent(jn,Le,{items:It._rollerConfigs[en].displayItems,selectedIndex:It._rollerConfigs[en].selectedIndex,showScrollbar:"never",scrollByContent:!0,onStart:function(vi){var _i=vi.component;_i._toggleActive(!0),It._setActiveRoller(It._rollerConfigs[en],_i.option("selectedIndex"))},onEnd:function(vi){vi.component._toggleActive(!1)},onClick:function(vi){var _i=vi.component;_i._toggleActive(!0),It._setActiveRoller(It._rollerConfigs[en],_i.option("selectedIndex")),It._setRollerState(It._rollerConfigs[en],_i.option("selectedIndex")),_i._toggleActive(!1)},onSelectedIndexChanged:function(vi){It._setRollerState(It._rollerConfigs[en],vi.component.option("selectedIndex"))}})}),It._$rollersContainer.appendTo(It._wrapper())},_createRollerConfigs:function(It){var en=this;It=It||en.option("type"),en._rollerConfigs={},O.Z.getFormatParts(q.FORMATS_MAP[It]).forEach(function(jn){en._createRollerConfig(jn)})},_createRollerConfig:function(It){for(var en=q.DATE_COMPONENTS_INFO[It],jn=this._calculateRollerConfigValueRange(It),vi=jn.startValue,_i=jn.endValue,dn=en.formatter,Tn=this._getCurrentDate(),Zn={type:It,setValue:en.setter,valueItems:[],displayItems:[],getIndex:function(Li){return Li[en.getter]()-vi}},fi=vi;fi<=_i;fi++)Zn.valueItems.push(fi),Zn.displayItems.push(dn(fi,Tn));Zn.selectedIndex=Zn.getIndex(Tn),this._rollerConfigs[It]=Zn},_setActiveRoller:function(It){var en=It&&this._rollers[It.type];(0,k.S6)(this._rollers,function(){this.toggleActiveState(this===en)})},_updateRollersPosition:function(){var It=this;(0,k.S6)(this._rollers,function(en){var jn=It._rollerConfigs[en].getIndex(It._getCurrentDate());this.option("selectedIndex",jn)})},_setRollerState:function(It,en){if(en!==It.selectedIndex){var jn=It.valueItems[en],vi=It.setValue,_i=new Date(this._getCurrentDate()),dn=_i.getDate(),Tn=this.option("minDate"),Zn=this.option("maxDate");"month"===It.type?dn=Math.min(dn,q.getMaxMonthDay(_i.getFullYear(),jn)):"year"===It.type&&(dn=Math.min(dn,q.getMaxMonthDay(jn,_i.getMonth()))),_i.setDate(dn),_i[vi](jn);var fi=W.Z.normalizeDate(_i,Tn,Zn);_i=q.mergeDates(fi,_i,"time"),_i=W.Z.normalizeDate(_i,Tn,Zn),this.option("value",_i),It.selectedIndex=en}"year"===It.type&&this._refreshRollers(),"month"===It.type&&(this._refreshRoller("day"),this._refreshRoller("hours"))},_refreshRoller:function(It){var en=this._rollers[It];if(en){this._createRollerConfig(It);var jn=this._rollerConfigs[It];("day"===It||jn.displayItems.toString()!==en.option("items").toString())&&en.option({items:jn.displayItems,selectedIndex:jn.selectedIndex})}},_getCurrentDate:function(){var It=this._valueOption(),en=this.option("minDate"),jn=this.option("maxDate");return W.Z.normalizeDate(It,en,jn)},_calculateRollerConfigValueRange:function(It){var en=this._getCurrentDate(),jn=this.option("minDate"),vi=this.option("maxDate"),_i=W.Z.sameYear(en,jn),dn=_i&&en.getMonth()===jn.getMonth(),Tn=W.Z.sameYear(en,vi),Zn=Tn&&en.getMonth()===vi.getMonth(),fi=dn&&en.getDate()===jn.getDate(),Li=Zn&&en.getDate()===vi.getDate(),sr=q.DATE_COMPONENTS_INFO[It],gr=sr.startValue,Qt=sr.endValue;return"year"===It&&(gr=jn.getFullYear(),Qt=vi.getFullYear()),"month"===It&&(_i&&(gr=jn.getMonth()),Tn&&(Qt=vi.getMonth())),"day"===It&&(Qt=q.getMaxMonthDay(en.getFullYear(),en.getMonth()),_i&&dn&&(gr=jn.getDate()),Tn&&Zn&&(Qt=vi.getDate())),"hours"===It&&(gr=fi?jn.getHours():gr,Qt=Li?vi.getHours():Qt),{startValue:gr,endValue:Qt}},_refreshRollers:function(){this._refreshRoller("month"),this._refreshRoller("day"),this._refreshRoller("hours")},_optionChanged:function(It){switch(It.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(It.value,It.previousValue);break;case"visible":this.callBase(It),It.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(It)}},_clean:function(){this.callBase(),delete this._$rollersContainer}});(0,o.Z)("dxDateView",Ye);const bt=Ye;var yt=(0,T.Jj)(),kt=Be.inherit({NAME:"DateView",getDefaultOptions:function(){return(0,g.l)(this.callBase(),{openOnFieldClick:!0,applyButtonText:X.Z.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(It){return It||q.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(It){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:It.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(en){var jn=en.platform;return"generic"===jn||"ios"===jn},options:{width:"auto",height:"auto"}},{device:function(en){return"generic"===en.platform&&en.phone},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:yt}}}]}},_renderWidget:function(){if((0,R.inputType)(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var It=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var en=(0,z.Z)("<div>").appendTo(It.$content());this._widget=this._createWidget(en)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return bt},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*q.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});const gn=kt;var ut=Be.inherit({NAME:"Native",popupConfig:function(It){return(0,g.l)({},It,{width:"auto"})},getParsedText:function(It){return It?"datetime"===this.dateBox.option("type")?new Date(It.replace(/-/g,"/").replace("T"," ").split(".")[0]):q.fromStandardDateFormat(It):null},renderPopupContent:l.ZT,_getWidgetName:l.ZT,_getWidgetOptions:l.ZT,_getDateBoxType:function(){var It=this.dateBox.option("type");return q.SUPPORTED_FORMATS.includes(It)?"datetime"===It&&!(0,R.inputType)(It)&&(It="datetime-local"):It="date",It},customizeButtons:function(){var It=this.dateBox.getButton("dropDown");P.Z.real().android&&It&&It.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(It){var en=this._getDateBoxType();return It||q.FORMATS_MAP[en]},renderInputMinMax:function(It){It.attr({min:V.Z.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:V.Z.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});const Ve=ut;var St=u(1946),Xe=u(5079),Vt=u(6026),ki=function(It,en,jn){Vn(It,en,jn)},Vn=function(It,en,jn){It.css("transform","rotate("+en+"deg) translate(0,"+jn+"px)")},Oi=_e.Z.inherit({_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:5,stylingMode:void 0})},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var It=(0,z.Z)("<div>").appendTo(this.$element()),en=[];this.option("_showClock")&&en.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),en.push({ratio:0,shrink:0,baseSize:"auto",template:this._renderField.bind(this)}),this._createComponent(It,Vt.Z,{height:"100%",width:"100%",direction:"col",items:en})},_renderClock:function(It,en,jn){this._$hourArrow=(0,z.Z)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,z.Z)("<div>").addClass("dx-timeview-minutearrow");var vi=(0,z.Z)(jn);vi.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",vi)},_updateClock:function(){var It=this._getValue(),en=It.getHours()/12*360+It.getMinutes()/60*30,jn=It.getMinutes()/60*360;ki(this._$hourArrow,en,this.option("_arrowOffset")),ki(this._$minuteArrow,jn,this.option("_arrowOffset"))},_getBoxItems:function(It){var en=[{ratio:0,shrink:0,baseSize:"auto",template:()=>this._hourBox.$element()},{ratio:0,shrink:0,baseSize:"auto",template:(0,z.Z)("<div>").addClass("dx-timeview-time-separator").text(O.Z.getTimeSeparator())},{ratio:0,shrink:0,baseSize:"auto",template:()=>this._minuteBox.$element()}];return It&&en.push({ratio:0,shrink:0,baseSize:"auto",template:()=>this._format12.$element()}),en},_renderField:function(){var It=!this.option("use24HourFormat");return this._createHourBox(It),this._createMinuteBox(),It&&this._createFormat12Box(),this._createComponent((0,z.Z)("<div>").addClass("dx-timeview-field"),Vt.Z,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(It)}).$element()},_createHourBox:function(It){(this._hourBox=this._createComponent((0,z.Z)("<div>"),St.Z,(0,g.l)({min:-1,max:It?13:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:jn=>this._keyboardHandler(jn)},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(It){var{value:en,component:jn}=It,vi=this._getValue(),_i=new Date(vi),dn=this._convertMaxHourToMin(en);jn.option("value",dn),this._isPM()&&(dn+=12),_i.setHours(dn),q.normalizeTime(_i),this.option("value",_i)},_convertMaxHourToMin:function(It){var en=this.option("use24HourFormat")?24:12;return(en+It)%en},_createMinuteBox:function(){(this._minuteBox=this._createComponent((0,z.Z)("<div>"),St.Z,(0,g.l)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:en=>this._keyboardHandler(en),onValueChanged:en=>{var{value:jn,component:vi}=en,_i=(60+jn)%60;vi.option("value",_i);var dn=new Date(this._getValue());dn.setMinutes(_i),q.normalizeTime(dn),this.option("value",dn)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box:function(){var It=O.Z.getPeriodNames();(this._format12=this._createComponent((0,z.Z)("<div>").addClass("dx-timeview-format12"),Xe.Z,{items:[{value:-1,text:It[0]},{value:1,text:It[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:jn=>this._keyboardHandler(jn),onValueChanged:jn=>{var{value:vi}=jn,_i=this._getValue().getHours(),dn=new Date(this._getValue());dn.setHours((_i+12*vi)%24),this.option("value",dn)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var en=this._getValue().getHours();this._silentEditorValueUpdate(this._format12,en>=12?1:-1)}},_silentEditorValueUpdate:function(It,en){It&&(It._suppressValueChangeAction(),It.option("value",en),It._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(It){return(It<10?"0":"")+It},stylingMode:this.option("stylingMode")}},_normalizeHours:function(It){return this.option("use24HourFormat")?It:It%12||12},_updateField:function(){var It=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,It),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(It){It&&this._updateTime()},_optionChanged:function(It){switch(It.name){case"value":this._updateTime(),this.callBase(It);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(It)}}});(0,o.Z)("dxTimeView",Oi);const Hn=Oi;var En=(0,T.Jj)(),Wn="dx-datebox-datetime-time-side",Ji=ae.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return(0,g.l)(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},_closeDropDownByEnter:function(){return W.Z.sameDate(this._getContouredValue(),this.widgetOption("value"))},getDisplayFormat:function(It){return It||"shortdateshorttime"},_is24HourFormat:function(){return O.Z.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_getContouredValue:function(){var It=this.callBase();return this._updateDateTime(It)},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent((0,z.Z)("<div>"),Hn,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var It=this._getPopup();It&&It.$wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var It=this._isShrinkView(),en=this._currentAdaptiveMode;return It!==en?(this._currentAdaptiveMode=It,void 0!==en):this.callBase()},_updateValue:function(It){var en=this.dateBoxValue();!en&&!It&&(en=new Date,q.normalizeTime(en)),this.callBase(),this._timeView&&(en&&this._timeView.option("value",en),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return(0,ye.dz)(En)<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var It=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||It.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),It},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var It=this._getPopup().$content();this._box=this.dateBox._createComponent((0,z.Z)("<div>").appendTo(It),Vt.Z,{direction:"row",crossAlign:"stretch",items:this._getBoxItems(),itemTemplate:function(en,jn,vi){var _i=(0,z.Z)("<div>");switch(en.name){case"calendar":_i.append(this._widget.$element()),this._isShrinkView()&&(this._timeView.$element().addClass(Wn),_i.append(this._timeView.$element()));break;case"time":_i.append(this._timeView.$element()),(0,z.Z)(vi).addClass(Wn)}return _i}.bind(this)}),this._attachTabHandler()},popupConfig:function(It){var en=this.callBase(It);return(0,g.l)(en,{width:"auto"})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var It=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",function(en){en.shiftKey&&(en.preventDefault(),It.focus())})},_preventFocusOnPopup:function(It){(0,z.Z)(It.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},_updateDateTime:function(It){var en=this._timeView.option("value");return It.setHours(en.getHours(),en.getMinutes(),en.getSeconds(),en.getMilliseconds()),It},getValue:function(){var It,en=null!==(It=this._widget.option("value"))&&void 0!==It?It:this._widget.getContouredDate();return en=en?new Date(en):new Date,this._updateDateTime(en)},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});const Sn=Ji;var Qn=u(4137),ci=(u(107),u(4094)),Wi=(0,T.Jj)(),nr={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},xr=Be.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){var{opened:It,applyValueMode:en}=this.option();It&&"instantly"===en&&this.close()},space:l.ZT,home:l.ZT,end:l.ZT}},getDefaultOptions:function(){return(0,g.l)(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(It){return It||"shorttime"},popupConfig:function(It){return It},getValue:function(){var It=this._widget.option("selectedIndex");return-1===It?this.dateBox.option("value"):this._getDateByItemData(this._widgetItems[It])},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this.dateBox._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return Qn.Z},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(It){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",It.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var It=this.dateBoxValue(),en=this._getDateIndex(It);-1===en?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",en)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(It){for(var en=-1,jn=0,vi=this._widgetItems.length;jn<vi;jn++)if(this._areDatesEqual(It,this._widgetItems[jn])){en=jn;break}return en},_areDatesEqual:function(It,en){return(0,I.J_)(It)&&(0,I.J_)(en)&&It.getHours()===en.getHours()&&It.getMinutes()===en.getMinutes()},_getTimeListItems:function(){var It=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),en=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),jn=this.dateBox.dateOption("value")||null,vi=en-It,_i=It.getMinutes()%this.dateBox.option("interval");return vi<0?[]:(vi>q.ONE_DAY&&(vi=q.ONE_DAY),jn-It<q.ONE_DAY||((It=this._getBoundaryDate("min")).setMinutes(_i),jn&&Math.abs(jn-en)<q.ONE_DAY&&(vi=(60*en.getHours()+Math.abs(en.getMinutes()-_i))*q.ONE_MINUTE)),this._getRangeItems(It,new Date(It),vi))},_getRangeItems:function(It,en,jn){for(var vi=[],_i=this.dateBox.option("interval");en-It<=jn;)vi.push(new Date(en)),en.setMinutes(en.getMinutes()+_i);return vi},_getBoundaryDate:function(It){var en=nr[It],jn=new Date((0,l.IS)(this.dateBox.dateOption("value"),0));return new Date(jn.getFullYear(),jn.getMonth(),jn.getDate(),en.getHours(),en.getMinutes())},_timeListItemTemplate:function(It){var en=this.dateBox.option("displayFormat");return O.Z.format(It,this.getDisplayFormat(en))},_listItemClickHandler:function(It){if("useButtons"!==this.dateBox.option("applyValueMode")){var en=this._getDateByItemData(It.itemData);this.dateBox.option("opened",!1),this.dateBoxValue(en,It.event)}},_getDateByItemData:function(It){var en=this.dateBox.option("value"),jn=It.getHours(),vi=It.getMinutes(),_i=It.getSeconds(),dn=It.getFullYear(),Tn=It.getMonth(),Zn=It.getDate();return en?((en=this.dateBox.option("dateSerializationFormat")?V.Z.deserializeDate(en):new Date(en)).setHours(jn),en.setMinutes(vi),en.setSeconds(_i),en.setFullYear(dn),en.setMonth(Tn),en.setDate(Zn)):en=new Date(dn,Tn,Zn,jn,vi,0,0),en},getKeyboardListener:function(){return this._widget},_updatePopupHeight:function(){var It=(0,ci.T)(this.dateBox.option("dropDownOptions.height"));if(void 0===It||"auto"===It){this.dateBox._setPopupOption("height","auto");var en=(0,ye.zp)(this._widget.$element()),jn=.45*(0,ye.Cr)(Wi);this.dateBox._setPopupOption("height",Math.min(en,jn))}this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(It,en){var jn=this.callBase(It,en);return jn&&(jn=q.mergeDates(jn,new Date(null),"date")),jn}});const vn=xr;var Pn=(0,T.Jj)(),hi="dx-datebox",kr="dx-datebox-wrapper",Gr={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},Qr={date:"date",datetime:"datetime",time:"time"},Wr={Calendar:ae,DateView:gn,Native:Ve,CalendarWithTime:Sn,List:vn},Ur=Z.Z.inherit({_supportedKeys:function(){return(0,g.l)(this.callBase(),this._strategy.supportedKeys())},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,pickerType:Gr.calendar,invalidDateMessage:X.Z.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:X.Z.format("validation-range"),applyButtonText:X.Z.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var en=P.Z.real().platform;return"ios"===en||"android"===en},options:{pickerType:Gr.native}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(It){this._userOptions=(0,g.l)({},It),this.callBase(It),this._updatePickerOptions()},_updatePickerOptions:function(){var It=this.option("pickerType"),en=this.option("type");It===Gr.list&&(en===Qr.datetime||en===Qr.date)&&(It=Gr.calendar),en===Qr.time&&It===Gr.calendar&&(It=Gr.list),this.option("showDropDownButton","generic"!==P.Z.real().platform||It!==Gr.native),this._pickerType=It},_init:function(){this._initStrategy(),this.option((0,g.l)({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(It){return It.charAt(0).toLowerCase()+It.substr(1)},_initStrategy:function(){var It=this._getStrategyName(this._getFormatType());this._strategy&&this._strategy.NAME===It||(this._strategy=new(0,Wr[It])(this))},_getFormatType:function(){var It=this.option("type"),en=/h|m|s/g.test(It),vi="";return/d|M|Y/g.test(It)&&(vi+=Qr.date),en&&(vi+=Qr.time),vi},_getStrategyName:function(It){var en=this._pickerType;return en===Gr.rollers?"DateView":en===Gr.native?"Native":It===Qr.date?"Calendar":It===Qr.datetime?"CalendarWithTime":"List"},_initMarkup:function(){this.$element().addClass(hi),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),this._updatePopupWidth(),this._updatePopupHeight()},_dimensionChanged:function(){this.callBase(),this._updatePopupHeight()},_updatePopupHeight:function(){var It,en;this._popup&&(null===(It=(en=this._strategy)._updatePopupHeight)||void 0===It||It.call(en))},_refreshFormatClass:function(){var It=this.$element();(0,k.S6)(Qr,function(en,jn){It.removeClass(hi+"-"+jn)}),It.addClass(hi+"-"+this.option("type"))},_refreshPickerTypeClass:function(){var It=this.$element();(0,k.S6)(Gr,function(en,jn){It.removeClass(hi+"-"+jn)}),It.addClass(hi+"-"+this._pickerType)},_formatValidationIcon:function(){if((0,T.Ym)()){var It=this._input().get(0),en=this.option("rtlEnabled"),jn=this._getClearButtonWidth(),vi=this._getLongestElementDimensions(),_i=parseFloat(Pn.getComputedStyle(It).width)-jn,dn=vi.width>_i,Tn=It.style;this.$element().toggleClass("dx-show-invalid-badge",!dn),dn?(void 0===this._storedPadding&&(this._storedPadding=en?vi.leftPadding:vi.rightPadding),en?Tn.paddingLeft=0:Tn.paddingRight=0):en?Tn.paddingLeft=this._storedPadding+"px":Tn.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var It=0;if(this._isClearButtonVisible()&&""===this._input().val()){var en=this.$element().find(".dx-clear-button-area").get(0);It=parseFloat(Pn.getComputedStyle(en).width)}return It},_getLongestElementDimensions:function(){var It=this._strategy.getDisplayFormat(this.option("displayFormat")),en=O.Z.format(q.getLongestDate(It,O.Z.getMonthNames(),O.Z.getDayNames()),It),jn=this._input(),vi=jn.get(0),_i=(0,C.l5)(jn,en),Tn=void 0!==this._storedPadding?this._storedPadding:0;_i.appendTo(this.$element());var Zn=parseFloat(Pn.getComputedStyle(_i.get(0)).width),fi=parseFloat(Pn.getComputedStyle(vi).paddingRight),Li=parseFloat(Pn.getComputedStyle(vi).paddingLeft),sr=Zn+Li+fi+Tn;return _i.remove(),{width:sr,leftPadding:Li,rightPadding:fi}},_getKeyboardListeners(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup.$wrapper().addClass(kr),this._renderPopupWrapper()},_getPopupToolbarItems(){var It,en,jn,vi=this.callBase();return null!==(It=null===(en=(jn=this._strategy)._getPopupToolbarItems)||void 0===en?void 0:en.call(jn,vi))&&void 0!==It?It:vi},_popupConfig:function(){var It=this.callBase();return(0,g.l)(this._strategy.popupConfig(It),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var It=this.$element(),en=(0,g.l)({},Qr,Gr);(0,k.S6)(en,function(jn,vi){It.removeClass(kr+"-"+vi)}.bind(this)),this._popup.$wrapper().addClass(kr+"-"+this.option("type")).addClass(kr+"-"+this._pickerType).addClass("dx-dropdowneditor-overlay")}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupShownHandler:function(){this.callBase(),this._strategy.renderOpenedState()},_popupHiddenHandler:function(){this.callBase(),this._strategy.renderOpenedState(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(It){It&&this._formatValidationIcon()},_clearValueHandler:function(It){this.option("text",""),this.callBase(It)},_readOnlyPropValue:function(){if(this._pickerType===Gr.rollers)return!0;var It=P.Z.real().platform;return!this._isNativeType()||"ios"!==It&&"android"!==It?this.callBase():this.option("readOnly")},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var It=this.dateOption("value");return this.option("text",this._getDisplayedText(It)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var It=this.dateOption("value"),en=this.option("dateSerializationFormat"),jn=q.SUBMIT_FORMATS_MAP[this.option("type")],vi=en?V.Z.serializeDate(It,en):q.toStandardDateFormat(It,jn);this._getSubmitElement().val(vi)},_getDisplayedText:function(It){var jn,en=this.option("mode");if("text"===en){var vi=this._strategy.getDisplayFormat(this.option("displayFormat"));jn=O.Z.format(It,vi)}else{var _i=this._getFormatByMode(en);jn=_i?O.Z.format(It,_i):q.toStandardDateFormat(It,en)}return jn},_getFormatByMode:function(It){return(0,R.inputType)(It)?null:q.FORMATS_MAP[It]},_valueChangeEventHandler:function(It){var{text:en,type:jn,validationError:vi}=this.option(),_i=this.dateOption("value");if(en!==this._getDisplayedText(_i)){var dn=this._getParsedDate(en),Tn=_i??this._getDateByDefault(),Zn=q.mergeDates(Tn,dn,jn);if(this._applyInternalValidation(dn&&"time"===jn?Zn:dn).isValid){var Li=this._getDisplayedText(Zn);Tn&&Zn&&Tn.getTime()===Zn.getTime()&&Li!==en?this._renderValue():this.dateValue(Zn,It)}}else(!vi||vi.editorSpecific)&&(this._applyInternalValidation(_i),this._applyCustomValidation(_i))},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(It){var en=this._strategy.getDisplayFormat(this.option("displayFormat"));return this._strategy.getParsedText(It,en)??void 0},_applyInternalValidation(It){var jn=!!this.option("text")&&null!==It,vi=!!It&&(0,I.J_)(It)&&!isNaN(It.getTime()),_i=vi&&W.Z.dateInRange(It,this.dateOption("min"),this.dateOption("max"),this.option("type")),dn=!jn&&!It||_i,Tn="";return vi?_i||(Tn=this.option("dateOutOfRangeMessage")):Tn=this.option("invalidDateMessage"),this.option({isValid:dn,validationError:dn?null:{editorSpecific:!0,message:Tn}}),{isValid:dn,isDate:vi}},_applyCustomValidation:function(It){this.validationRequest.fire({editor:this,value:this._serializeDate(It)})},_isValueChanged:function(It){var en=this.dateOption("value");return(en&&en.getTime())!==(It&&It.getTime())},_isTextChanged:function(It){return this.option("text")!==(It&&this._getDisplayedText(It)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy()},_getPopupTitle:function(){var It=this.option("placeholder");if(It)return It;var en=this.option("type");return en===Qr.time?X.Z.format("dxDateBox-simulatedDataPickerTitleTime"):en===Qr.date||en===Qr.datetime?X.Z.format("dxDateBox-simulatedDataPickerTitleDate"):""},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(It){var en=this._strategy.getValue();this.dateValue(en,It.event),this.callBase()},_dispose:function(){var It;this.callBase(),null===(It=this._strategy)||void 0===It||It.dispose()},_isNativeType:function(){return this._pickerType===Gr.native},_updatePopupTitle:function(){var It;null===(It=this._popup)||void 0===It||It.option("title",this._getPopupTitle())},_optionChanged:function(It){switch(It.name){case"showClearButton":case"buttons":case"isValid":case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:It.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:It.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this.callBase.apply(this,arguments),this._updatePopupTitle();break;case"min":case"max":var en=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),en||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(It.value),this.callBase.apply(this,arguments);break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"todayButtonText":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var It=this.option("value");return this.option("dateSerializationFormat")&&(0,B.Z)().forceIsoDateParsing?this.option("dateSerializationFormat"):(0,I.kE)(It)?"number":(0,I.HD)(It)?V.Z.getDateSerializationFormat(It):void 0},_updateValue:function(It){this.callBase(),this._applyInternalValidation(It??this.dateOption("value"))},dateValue:function(It,en){var jn=this._isValueChanged(It);return jn&&en&&this._saveValueChangeEvent(en),jn||(this._isTextChanged(It)?this._updateValue(It):""===this.option("text")&&this._applyCustomValidation(It)),this.dateOption("value",It)},dateOption:function(It,en){if(1===arguments.length)return V.Z.deserializeDate(this.option(It));this.option(It,this._serializeDate(en))},_serializeDate:function(It){var en=this._getSerializationFormat();return V.Z.serializeDate(It,en)},_clearValue:function(){var It=this.option("value");this.callBase(),null===It&&this._applyCustomValidation(null)},reset:function(){var It=this.option("value");this.callBase(),null===It&&this._applyInternalValidation(null)}});const Rr=Ur;var mo=u(658),Mr=u(4722),po="dateBoxMask",Xr=Rr.inherit({_supportedKeys(It){var en=this.callBase(It),jn=_i=>{var dn=en[(0,c.EV)(_i)];return dn&&dn.apply(this,[_i])},vi=(_i,dn)=>this._shouldUseOriginalHandler(_i)?jn.apply(this,[_i]):dn.apply(this,[_i]);return(0,g.l)({},en,{del:_i=>vi(_i,dn=>{this._revertPart(1),this._isAllSelected()||dn.preventDefault()}),backspace:_i=>vi(_i,dn=>{this._revertPart(-1),this._isAllSelected()||dn.preventDefault()}),home:_i=>vi(_i,dn=>{this._selectFirstPart(),dn.preventDefault()}),end:_i=>vi(_i,dn=>{this._selectLastPart(),dn.preventDefault()}),escape:_i=>vi(_i,dn=>{this._revertChanges(dn)}),enter:_i=>vi(_i,()=>{this._enterHandler()}),leftArrow:_i=>vi(_i,dn=>{this._selectNextPart(-1),dn.preventDefault()}),rightArrow:_i=>vi(_i,dn=>{this._selectNextPart(1),dn.preventDefault()}),upArrow:_i=>vi(_i,dn=>{this._upDownArrowHandler(1),dn.preventDefault()}),downArrow:_i=>vi(_i,dn=>{this._upDownArrowHandler(-1),dn.preventDefault()})})},_shouldUseOriginalHandler(It){var en=this.option("opened")&&It&&-1===["backspace","del"].indexOf((0,c.EV)(It));return!this._useMaskBehavior()||en||It&&It.altKey},_upDownArrowHandler(It){this._setNewDateIfEmpty();var en=this._getActivePartValue(this._initialMaskValue),vi=this._getActivePartValue()-en;this._loadMaskValue(this._initialMaskValue),this._partIncrease(vi+It,!0)},_getDefaultOptions(){return(0,g.l)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey(It){var{originalEvent:en,alt:jn}=It,vi=en.data||en.key;return"string"==typeof vi&&1===vi.length&&!jn&&!(0,c.j1)(en)},_isSingleDigitKey(It){var en,jn=null===(en=It.originalEvent)||void 0===en?void 0:en.data;return 1===jn?.length&&parseInt(jn,10)},_useBeforeInputEvent:function(){return P.Z.real().android},_keyInputHandler(It,en){var jn=this._input().val();this._processInputKey(en),It.preventDefault(),jn!==this._input().val()&&p.Z.trigger(this._input(),"input")},_keyboardHandler(It){var en=It.originalEvent.key,jn=this.callBase(It);return!this._useMaskBehavior()||this._useBeforeInputEvent()||(Mr.Z.chrome&&"Process"===It.key&&0===It.code.indexOf("Digit")?(en=It.code.replace("Digit",""),this._processInputKey(en),this._maskInputHandler=()=>{this._renderSelectedPart()}):this._isSingleCharKey(It)&&this._keyInputHandler(It.originalEvent,en)),jn},_maskBeforeInputHandler(It){this._maskInputHandler=null;var{inputType:en}=It.originalEvent;"insertCompositionText"===en&&(this._maskInputHandler=()=>{this._renderSelectedPart()});var jn="deleteContentBackward"===en;if(jn||"deleteContentForward"===en){var _i=jn?-1:1;this._maskInputHandler=()=>{this._revertPart(),this._selectNextPart(_i)}}if(this._useMaskBehavior()&&this._isSingleCharKey(It))return this._keyInputHandler(It,It.originalEvent.data),!0},_keyPressHandler(It){var{originalEvent:en}=It;"insertCompositionText"===en?.inputType&&this._isSingleDigitKey(It)&&(this._processInputKey(en.data),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()),this.callBase(It),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey(It){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(It))?this._searchString(It):this._searchNumber(It)},_isAllSelected(){var It=this._caret();return It.end-It.start===this.option("text").length},_getFormatPattern(){if(this._formatPattern)return this._formatPattern;var It=this._strategy.getDisplayFormat(this.option("displayFormat")),en=(0,I.HD)(It)&&!O.Z._getPatternByFormat(It);return this._formatPattern=en?It:(0,w.y)(function(jn){return O.Z.format(jn,It)}),this._formatPattern},_setNewDateIfEmpty(){if(!this._maskValue){var It="time"===this.option("type")?new Date(null):new Date;this._maskValue=It,this._initialMaskValue=It,this._renderDateParts()}},_partLimitsReached(It){var en=String(It).length,jn=this._getActivePartProp("pattern").length,_i=1===jn?en:Math.min(jn,en),dn=this._searchValue.length===_i,Tn=parseInt(this._searchValue+"0")>It;return dn||Tn},_searchNumber(It){var{max:en}=this._getActivePartLimits(),jn=String(en).length;this._searchValue=(this._searchValue+It).substr(-jn),isNaN(this._searchValue)&&(this._searchValue=It),this._setActivePartValue(this._searchValue),this._partLimitsReached(en)&&this._selectNextPart(1)},_searchString(It){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var en=this._getActivePartProp("limits")(this._maskValue),jn=this._searchValue+It.toLowerCase(),vi=en.max-en.min,_i=0;_i<=vi;_i++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(_i+1),0===this._getActivePartProp("text").toLowerCase().indexOf(jn))return void(this._searchValue=jn);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(It))}},_clearSearchValue(){this._searchValue=""},_revertPart:function(It){if(!this._isAllSelected()){var en=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(en),this._selectNextPart(It)}this._clearSearchValue()},_useMaskBehavior(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo(){this._regExpInfo=(0,s.oo)(this._getFormatPattern(),O.Z);var It=this._regExpInfo.regexp,en=It.source,jn=It.flags,vi=new RegExp(/(\{[0-9]+,?[0-9]*\})/),_i=en.split(vi).map(dn=>vi.test(dn)?dn:mo.Z.convertDigits(dn,!1)).join("");this._regExpInfo.regexp=new RegExp(_i,jn)},_initMaskState(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts(){if(this._useMaskBehavior()){var It=this.option("text")||this._getDisplayedText(this._maskValue);It&&(this._dateParts=((It,en)=>{for(var jn=en.regexp.exec(It),vi=0,_i=0,dn=[],Tn=function(fi){_i=(vi=_i)+jn[fi].length;var Li=en.patterns[fi-1].replace(/^'|'$/g,""),sr=(It=>v[It]||(()=>It))(Li[0]);dn.push({index:fi-1,isStub:Li===jn[fi],caret:{start:vi,end:_i},pattern:Li,text:jn[fi],limits:function(){for(var gr=arguments.length,Qt=new Array(gr),_n=0;_n<gr;_n++)Qt[_n]=arguments[_n];return E(Li[0],...Qt)},setter:x[Li[0]]||l.ZT,getter:sr})},Zn=1;Zn<jn.length;Zn++)Tn(Zn);return dn})(It,this._regExpInfo),this._input().is(":hidden")||this._selectNextPart())}},_detachMaskEvents(){p.Z.off(this._input(),"."+po)},_attachMaskEvents(){p.Z.on(this._input(),(0,c.V4)("dxclick",po),this._maskClickHandler.bind(this)),p.Z.on(this._input(),(0,c.V4)("paste",po),this._maskPasteHandler.bind(this)),p.Z.on(this._input(),(0,c.V4)("drop",po),()=>{this._renderSelectedPart()}),p.Z.on(this._input(),(0,c.V4)("compositionend",po),this._maskCompositionEndHandler.bind(this)),this._useBeforeInputEvent()&&p.Z.on(this._input(),(0,c.V4)("beforeinput",po),this._maskBeforeInputHandler.bind(this))},_renderSelectedPart(){this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._selectNextPart()},_selectLastPart(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(-1))},_selectFirstPart(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel(It){this._useMaskBehavior()&&this._partIncrease(It.delta>0?1:-1,It)},_selectNextPart(){var It=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){It&&(this._initialMaskValue=new Date(this._maskValue));var en=(0,a.n$)(this._activePartIndex+It,0,this._dateParts.length-1);if(this._dateParts[en].isStub){if(!(0===en&&It<0||en===this._dateParts.length-1&&It>0))return void this._selectNextPart(It>=0?It+1:It-1);en=this._activePartIndex}this._activePartIndex!==en&&this._clearSearchValue(),this._activePartIndex=en,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits(It){return this._getActivePartProp("limits")(this._maskValue,It&&this._getRealLimitsPattern())},_getActivePartValue(It){It=It||this._maskValue;var en=this._getActivePartProp("getter");return(0,I.mf)(en)?en(It):It[en]()},_addLeadingZeroes(It){var en=this._searchValue.match(/^0+/),jn=this._getActivePartLimits(),vi=String(jn.max).length;return((en&&en[0]||"")+String(It)).substr(-vi)},_setActivePartValue(It,en){en=en||this._maskValue;var jn=this._getActivePartProp("setter"),vi=this._getActivePartLimits();It=(0,a.Z2)(It,vi.min,vi.max)?It:It%10,It=this._addLeadingZeroes((0,a.n$)(It,vi.min,vi.max)),(0,I.mf)(jn)?jn(en,It):en[jn](It),this._renderDisplayText(this._getDisplayedText(en)),this._renderDateParts()},_getActivePartProp(It){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][It]},_loadMaskValue(){var It=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=It&&new Date(It),this._initialMaskValue=It&&new Date(It)},_saveMaskValue(){var It=this._maskValue&&new Date(this._maskValue);It&&"date"===this.option("type")&&It.setHours(0,0,0,0),this._initialMaskValue=new Date(It),this.dateOption("value",It)},_revertChanges(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText(It){this.callBase(It),this._useMaskBehavior()&&this.option("text",It)},_partIncrease(It,en){this._setNewDateIfEmpty();var{max:jn,min:vi}=this._getActivePartLimits(en),_i=jn-vi;1===_i&&_i++;var dn=It+this._getActivePartValue();dn>jn?dn=this._applyLimits(dn,{limitBase:vi,limitClosest:jn,limitDelta:_i}):dn<vi&&(dn=this._applyLimits(dn,{limitBase:jn,limitClosest:vi,limitDelta:_i})),this._setActivePartValue(dn)},_applyLimits(It,en){var{limitBase:jn,limitClosest:vi,limitDelta:_i}=en,dn=(It-vi)%_i;return dn?jn+dn-1*(0,a.Xx)(dn):vi},_maskClickHandler(){this._loadMaskValue(this._maskValue),this.option("text")&&(this._activePartIndex=((It,en)=>{for(var jn=0;jn<It.length;jn++)if(!It[jn].isStub&&It[jn].caret.end>=en)return jn;return null})(this._dateParts,this._caret().start),this._isAllSelected()||((0,I.$K)(this._activePartIndex)?this._caret(this._getActivePartProp("caret")):this._selectLastPart()))},_maskCompositionEndHandler(It){this._input().val(this._getDisplayedText(this._maskValue)),this._selectNextPart(),this._maskInputHandler=()=>{this._renderSelectedPart()}},_maskPasteHandler(It){var en=this._replaceSelectedText(this.option("text"),this._caret(),(0,C.Zx)(It)),jn=O.Z.parse(en,this._getFormatPattern());jn&&this._isDateValid(jn)&&(this._maskValue=jn,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),It.preventDefault()},_isDateValid:It=>(0,I.J_)(It)&&!isNaN(It),_isValueDirty(){var It=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(It&&It.getTime())},_fireChangeEvent(){this._clearSearchValue(),this._isValueDirty()&&p.Z.trigger(this._input(),"change")},_enterHandler(){this._fireChangeEvent(),this._selectNextPart(1)},_focusOutHandler(It){this._useMaskBehavior()&&!It.isDefaultPrevented()?(this._fireChangeEvent(),this.callBase(It),this._selectFirstPart(It)):this.callBase(It)},_valueChangeEventHandler(It){var en=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(It),en?null===this._maskValue&&this._loadMaskValue(en):this._maskValue=null,this._saveMaskValue()):this.callBase(It)},_optionChanged(It){switch(It.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(It),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(It),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(It)}},_clearMaskState(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset(){this._clearMaskState(),this._activePartIndex=0,this.callBase()},_clean(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});const lo=Xr;(0,o.Z)("dxDateBox",lo);const bo=lo},4121:(Rn,he,u)=>{"use strict";u.d(he,{PG:()=>Y,iG:()=>j});var o=u(1805),c=u(9904),I=u(4430),C=u(9866),g=u(2941),a=u(7572),p=u(6520),s=u(4270),l=u(1828),d=u(2718),h=u(5873),v=u(4514),x=u(913),b=u(1469),y=u(9009),E=u(8159),S=u(8531),O=u(7674),w=(0,v.Jj)(),T={text:"OK",onClick:function(){return!0}},k="dx-dialog",R="".concat(k,"-wrapper"),P="".concat(k,"-root"),B="".concat(k,"-content"),W="".concat(k,"-message"),z="".concat(k,"-buttons"),V="".concat(k,"-button"),U="dx-button",K=I.w.inherit({ctor:function(ee,G){this.callBase(G)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}}])}}),Y=function(ee){var G,q=new s.BH,Z=(new K).option();ee=(0,h.l)(Z,ee);var X=(0,c.Z)("<div>").addClass(k).appendTo((0,b.S3)()),oe="messageHtml"in ee;"message"in ee&&E.Z.log("W1013");var fe=String(oe?ee.messageHtml:ee.message),Te=(0,c.Z)("<div>").addClass(W).html(fe),Be=[];(0,d.S6)(ee.buttons||[T],function(){var _e=new C.Z(this.onClick,{context:ze});Be.push({toolbar:"bottom",location:g.Z.current().android?"after":"center",widget:"dxButton",options:(0,h.l)({},this,{onClick:function(){var ye=_e.execute(...arguments);ae(ye)}})})});var ze=new S.Z(X,(0,h.l)({title:null!==(G=ee.title)&&void 0!==G?G:"",showTitle:(0,O.IS)(ee.showTitle,!0),dragEnabled:(0,O.IS)(ee.dragEnabled,!0),height:"auto",width:ee.width,showCloseButton:ee.showCloseButton||!1,ignoreChildEvents:!1,container:X,visualContainer:w,dragAndResizeArea:w,onContentReady:function(_e){_e.component.$content().addClass(B).append(Te)},onShowing:function(_e){_e.component.bottomToolbar().addClass(z).find(".".concat(U)).addClass(V),(0,p.M3)()},onShown:function(_e){var ye=_e.component.bottomToolbar().find(".".concat(U)).first();x.Z.trigger(ye,"focus")},onHiding:function(){q.reject()},toolbarItems:Be,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,a.Z)().rtlEnabled,position:{boundaryOffset:{h:10,v:0}}},ee.popupOptions));function ae(_e){q.resolve(_e),ze.hide().done(function(){ze.$element().remove()})}return ze.$wrapper().addClass(R),ee.position&&ze.option("position",ee.position),ze.$wrapper().addClass(P),{show:function(){if("android"===g.Z.real().platform){var _e=(0,o.Cr)(w)>(0,o.dz)(w);ze.option({width:_e?"80%":"60%"})}return ze.show(),q.promise()},hide:ae}},j=function(ee){var G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",q=arguments.length>2?arguments[2]:void 0,Z=(0,l.PO)(ee)?ee:{title:G,messageHtml:ee,showTitle:q,buttons:[{text:y.Z.format("Yes"),onClick:function(){return!0}},{text:y.Z.format("No"),onClick:function(){return!1}}],dragEnabled:q};return Y(Z).show()}},130:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ye});var Z,X,o=u(4817),c=u(1805),I=u(9904),C=u(9897),g=u(4514),a=u(5450),p=u(913),s=u(9589),l=u(8506),d=u(6961),h=u(6496),v=u(7981),x=u(5873),b=u(8893),y=u(6881),E=u(8225),S=u(8690),O=u(6722),w=u(5791),T=u(1828),k=u(7674),R=u(1469),P=u(1880),B=u(4270),W=(0,g.Jj)(),V="dxDraggable",U=(0,E.V4)(O.BL,V),K=(0,E.V4)(O.pB,V),Y=(0,E.V4)(O.ut,V),J=(0,E.V4)(O.IO,V),j=(0,E.V4)(O.Zu,V),ee=(0,E.V4)(S.Z.down,V),G=(0,E.V4)("keydown",V),q="clone",oe=ne=>({x:ne.pageX-(0,I.Z)(W).scrollLeft(),y:ne.pageY-(0,I.Z)(W).scrollTop()});class ze{constructor(ce,le){this._preventScroll=!0,this._component=le,"vertical"===ce?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._clientSizeProp="clientHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._clientSizeProp="clientWidth",this._limitProps={start:"left",end:"right"})}updateScrollable(ce,le){var pe=!1;ce.some(Se=>{var re=(0,I.Z)(Se),te=re.hasClass("dx-overlay-wrapper"),ie=re.hasClass("dx-overlay-content");return!(!te&&!ie)||(pe=this._trySetScrollable(Se,le))}),pe||(this._$scrollableAtPointer=null,this._scrollSpeed=0)}isScrolling(){return!!this._scrollSpeed}isScrollable(ce){return("auto"===ce.css(this._overFlowAttr)||ce.hasClass("dx-scrollable-container"))&&ce.prop(this._scrollSizeProp)>Math.ceil("width"===this._sizeAttr?(0,c.dz)(ce):(0,c.Cr)(ce))}_trySetScrollable(ce,le){var Se,pe=(0,I.Z)(ce),re=this._component.option("scrollSensitivity"),te=this.isScrollable(pe);return te&&(re>(Se=this._calculateDistanceToBorders(pe,le))[this._limitProps.start]?this._preventScroll||(this._scrollSpeed=-this._calculateScrollSpeed(Se[this._limitProps.start]),this._$scrollableAtPointer=pe):re>Se[this._limitProps.end]?this._preventScroll||(this._scrollSpeed=this._calculateScrollSpeed(Se[this._limitProps.end]),this._$scrollableAtPointer=pe):(te=!1,this._preventScroll=!1)),te}_calculateDistanceToBorders(ce,le){var Se,pe=ce.get(0);return pe?(Se=(0,a.l)(pe),{left:le.x-Se.left,top:le.y-Se.top,right:Se.right-le.x,bottom:Se.bottom-le.y}):{}}_calculateScrollSpeed(ce){var le=this._component,pe=le.option("scrollSensitivity"),Se=le.option("scrollSpeed");return Math.ceil(Math.pow((pe-ce)/pe,2)*Se)}scrollByStep(){if(this._$scrollableAtPointer&&this._scrollSpeed){if(this._$scrollableAtPointer.hasClass("dx-scrollable-container")){var ce=this._$scrollableAtPointer.closest(".dx-scrollable"),le=ce.data("dxScrollable")||ce.data("dxScrollView");if(le){var pe=le.scrollOffset()[this._limitProps.start]+this._scrollSpeed;le.scrollTo({[this._limitProps.start]:pe})}}else{var Se=this._$scrollableAtPointer[this._scrollValue]()+this._scrollSpeed;this._$scrollableAtPointer[this._scrollValue](Se)}var re=this._component._dragMoveArgs;re&&this._component._dragMoveHandler(re)}}reset(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}isOutsideScrollable(ce,le){if(!ce)return!1;var pe=(0,a.l)(ce.get(0)),Se=pe[this._limitProps.start],re=pe[this._sizeAttr],te=oe(le),ie="width"===this._sizeAttr?te.x:te.y;return ie<Se||ie>Se+re}}var ae=h.Z.inherit({ctor:function(ne){this.callBase(),this._strategy=ne},_step:function(){var ne=this._strategy._horizontalScrollHelper,ce=this._strategy._verticalScrollHelper;ne&&ne.scrollByStep(),ce&&ce.scrollByStep()}}),_e=b.Z.inherit({reset:k.ZT,dragMove:k.ZT,dragEnter:k.ZT,dragLeave:k.ZT,dragEnd:function(ne){return this._getSourceDraggable()._fireRemoveEvent(ne),(new B.BH).resolve()},_fireRemoveEvent:k.ZT,_getDefaultOptions:function(){return(0,x.l)(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDragEnter:null,onDragLeave:null,onDragCancel:null,onCancelByEsc:!1,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),(0,x.l)(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new ae(this),this._horizontalScrollHelper=new ze("horizontal",this),this._verticalScrollHelper=new ze("vertical",this)},_normalizeCursorOffset:function(ne){return(0,T.Kn)(ne)&&(ne={h:ne.x,v:ne.y}),{left:(ne=(0,k.Um)(ne).map(ce=>parseFloat(ce)))[0],top:1===ne.length?ne[0]:ne[1]}},_getNormalizedCursorOffset:function(ne,ce){return(0,T.mf)(ne)&&(ne=ne.call(this,ce)),this._normalizeCursorOffset(ne)},_calculateElementOffset:function(ne){var ce,le,pe=ne.event,Se=(0,I.Z)(ne.itemElement),re=(0,I.Z)(ne.dragElement),te=this._dragElementIsCloned(),ie=this.option("cursorOffset"),ue={left:0,top:0},be=this._initialLocate=(0,d.jt)(re);return(te||ne.initialOffset||ie)&&(ce=ne.initialOffset||Se.offset(),ie&&(ue=this._getNormalizedCursorOffset(ie,ne),isFinite(ue.left)&&(ce.left=pe.pageX),isFinite(ue.top)&&(ce.top=pe.pageY)),le=re.offset(),ce.top-=le.top+(ue.top||0)-be.top,ce.left-=le.left+(ue.left||0)-be.left),ce},_initPosition:function(ne){var ce=(0,I.Z)(ne.dragElement),le=this._calculateElementOffset(ne);le&&this._move(le,ce),this._startPosition=(0,d.jt)(ce)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(ne){return(0,v.H0)(this.NAME)+(ne?"-"+ne:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var ne=this.$element(),ce=ne.children(".dx-template-wrapper");return ce.length?ce:ne},_attachEventHandlers:function(){if(!this.option("disabled")){var ne=this._$content(),ce=this._getItemsSelector(),le=this.option("allowMoveByClick"),pe={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:(Se,re)=>{var te=this.option("group"),ie=this._getSourceDraggable().option("group"),ue=this._getScrollable(Se);return!this._verticalScrollHelper.isOutsideScrollable(ue,re)&&!this._horizontalScrollHelper.isOutsideScrollable(ue,re)&&ie&&ie===te}};le&&(ne=this._getArea(),p.Z.on(ne,ee,pe,this._pointerDownHandler.bind(this))),">"===ce[0]&&(ce=ce.slice(1)),p.Z.on(ne,U,ce,pe,this._dragStartHandler.bind(this)),p.Z.on(ne,K,pe,this._dragMoveHandler.bind(this)),p.Z.on(ne,Y,pe,this._dragEndHandler.bind(this)),p.Z.on(ne,J,pe,this._dragEnterHandler.bind(this)),p.Z.on(ne,j,pe,this._dragLeaveHandler.bind(this)),this.option("onCancelByEsc")&&p.Z.on(ne,G,this._keydownHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix(q))},_getDragTemplateArgs:function(ne,ce){return{container:(0,y.u)(ce),model:{itemData:this.option("itemData"),itemElement:(0,y.u)(ne)}}},_createDragElement:function(ne){var ce=ne,le=this.option("clone"),pe=this._getContainer(),Se=this.option("dragTemplate");return Se?(Se=this._getTemplate(Se),ce=(0,I.Z)("<div>").appendTo(pe),Se.render(this._getDragTemplateArgs(ne,ce))):le&&(ce=(0,I.Z)("<div>").appendTo(pe),ne.clone().css({width:ne.css("width"),height:ne.css("height")}).appendTo(ce)),ce.toggleClass(this._addWidgetPrefix(q),ce.get(0)!==ne.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){p.Z.off(this._$content(),"."+V),p.Z.off(this._getArea(),"."+V)},_move:function(ne,ce){(0,d.pB)(ce||this._$dragElement,ne)},_getDraggableElement:function(ne){var ce=this._getSourceElement();if(ce)return ce;if(this.option("allowMoveByClick"))return this.$element();var pe=(0,I.Z)(ne&&ne.target),Se=this._getItemsSelector();if(">"===Se[0]){var re=this._$content().find(Se);re.is(pe)||(pe=pe.closest(re))}return pe},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(ne){if(!(0,E.r1)(ne)){var ce={},le=this.$element(),pe=this.option("dragDirection");("horizontal"===pe||"both"===pe)&&(ce.left=ne.pageX-le.offset().left+(0,d.jt)(le).left-(0,c.dz)(le)/2),("vertical"===pe||"both"===pe)&&(ce.top=ne.pageY-le.offset().top+(0,d.jt)(le).top-(0,c.Cr)(le)/2),this._move(ce,le),this._getAction("onDragMove")(this._getEventArgs(ne))}},_isValidElement:function(ne,ce){var le=this.option("handle"),pe=(0,I.Z)(ne.originalEvent&&ne.originalEvent.target);return!(le&&!pe.closest(le).length||!ce.length||ce.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(ne){var ce=this._getDraggableElement(ne);if(this.dragInProgress=!0,this._isValidElement(ne,ce)){if(!this._$sourceElement){var le=this._getDragStartArgs(ne,ce);if(this._getAction("onDragStart")(le),le.cancel)return void(ne.cancel=!0);this.option("itemData",le.itemData),this._setSourceDraggable(),this._$sourceElement=ce;var pe=ce.offset(),Se=this._$dragElement=this._createDragElement(ce);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0),this._setGestureCoverCursor(Se.children());var re="fixed"===Se.css("position");this._initPosition((0,x.l)({},le,{dragElement:Se.get(0),initialOffset:re&&pe})),this._getAction("onDraggableElementShown")((0,o.Z)({},le,{dragElement:Se}));var te=this._getArea(),ie=this._getAreaOffset(te),ue=this._getBoundOffset(),be=(0,c.Y_)(te),Ae=(0,c.zp)(te),Ne=(0,c.dz)(Se),mt=(0,c.Cr)(Se),tt=Se.offset().left-ie.left,Le=Se.offset().top-ie.top;te.length&&(ne.maxLeftOffset=tt-ue.left,ne.maxRightOffset=be-tt-Ne-ue.right,ne.maxTopOffset=Le-ue.top,ne.maxBottomOffset=Ae-Le-mt-ue.bottom),this.option("autoScroll")&&this._startAnimator()}}else ne.cancel=!0},_getAreaOffset:function(ne){return ne&&w.Z.offset(ne)||{left:0,top:0}},_toggleDraggingClass:function(ne){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),ne)},_toggleDragSourceClass:function(ne,ce){var le=ce||this._$sourceElement;le&&le.toggleClass(this._addWidgetPrefix("source"),ne)},_setGestureCoverCursor:function(ne){(0,I.Z)(".".concat("dx-gesture-cover")).css("cursor",ne.css("cursor"))},_getBoundOffset:function(){var ne=this.option("boundOffset");return(0,T.mf)(ne)&&(ne=ne.call(this)),(0,s.$b)(ne)},_getArea:function(){var ne=this.option("boundary");return(0,T.mf)(ne)&&(ne=ne.call(this)),(0,I.Z)(ne)},_getContainer:function(){var ne=this.option("container");return void 0===ne&&(ne=(0,R.S3)()),(0,I.Z)(ne)},_dragMoveHandler:function(ne,ce){if(this._dragMoveArgs=ne,this._$dragElement){var le=ne.offset,pe=this._startPosition;this._move({left:pe.left+le.x,top:pe.top+le.y}),ce||this._updateScrollable(ne);var Se=this._getEventArgs(ne);this._getAction("onDragMove")(Se),!0!==Se.cancel&&this._getTargetDraggable().dragMove(ne,ce)}else ne.cancel=!0},_updateScrollable:function(ne){if(this.option("autoScroll")){var ce=oe(ne),le=C.Z.elementsFromPoint(ce.x,ce.y,this.$element().get(0));this._verticalScrollHelper.updateScrollable(le,ce),this._horizontalScrollHelper.updateScrollable(le,ce)}},_getScrollable:function(ne){var ce;return ne.parents().toArray().some(le=>{var pe=(0,I.Z)(le);if(this._horizontalScrollHelper.isScrollable(pe)||this._verticalScrollHelper.isScrollable(pe))return ce=pe,!0}),ce},_defaultActionArgs:function(){var ne=this.callBase.apply(this,arguments),ce=this.option("component");return ce&&(ne.component=ce,ne.element=ce.element()),ne},_getEventArgs:function(ne){var ce=this._getSourceDraggable(),le=this._getTargetDraggable();return{event:ne,itemData:ce.option("itemData"),itemElement:(0,y.u)(ce._$sourceElement),fromComponent:ce.option("component")||ce,toComponent:le.option("component")||le,fromData:ce.option("data"),toData:le.option("data")}},_getDragStartArgs:function(ne,ce){var le=this._getEventArgs(ne);return{event:le.event,itemData:le.itemData,itemElement:ce,fromData:le.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(ne){var ce=new B.BH,le=this._getEventArgs(ne),pe=this._getEventArgs(ne),Se=this._getTargetDraggable(),re=!0;this.dragInProgress=!1;try{this._getAction("onDragEnd")(le)}finally{(0,B.gx)((0,B.p4)(le.cancel)).done(te=>{if(!te&&(Se!==this&&Se._getAction("onDrop")(pe),!pe.cancel))return re=!1,void(0,B.gx)((0,B.p4)(Se.dragEnd(le))).always(ce.resolve);ce.resolve()}).fail(ce.resolve),ce.done(()=>{re&&this._revertItemToInitialPosition(),this._resetDragOptions(Se)})}},_isTargetOverAnotherDraggable:function(ne){var ce=this._getSourceDraggable();if(this===ce)return!1;var le=ce._$dragElement,pe=ce.$element(),Se=this.$element(),re=oe(ne),ie=C.Z.elementsFromPoint(re.x,re.y,this.element()).filter(Ne=>{var mt=(0,I.Z)(Ne);if(mt.hasClass(this._addWidgetPrefix()))return!mt.closest(le).length})[0],ue=this._getSourceElement(),be=ie===pe.get(0),Ae=(0,I.Z)(ie).closest(ue).length;return!ie||ie===Se.get(0)&&!be&&!Ae},_dragEnterHandler:function(ne){this._fireDragEnterEvent(ne),this._isTargetOverAnotherDraggable(ne)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(ne)},_dragLeaveHandler:function(ne){this._fireDragLeaveEvent(ne),this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(ne)},_keydownHandler:function(ne){this.dragInProgress&&"Escape"===ne.key&&this._keydownEscapeHandler(ne)},_keydownEscapeHandler:function(ne){var ce;if(this._getSourceElement()){var pe=this._getEventArgs(ne);if(this._getAction("onDragCancel")(pe),!pe.cancel){this.dragInProgress=!1,null===(ce=X)||void 0===ce||ce._toggleDraggingClass(!1),this._detachEventHandlers(),this._revertItemToInitialPosition();var Se=this._getTargetDraggable();this._resetDragOptions(Se),this._attachEventHandlers()}}},_getAction:function(ne){return this["_"+ne+"Action"]||this._createActionByOption(ne)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new P.s}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var ne=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),ce=this._getTemplateByOption("contentTemplate");ce&&(0,I.Z)(ce.render({container:this.element(),transclude:ne}))},_optionChanged:function(ne){var ce=ne.name;switch(ce){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":case"onDragEnter":case"onDragLeave":case"onDragCancel":case"onDraggableElementShown":this["_"+ce+"Action"]=this._createActionByOption(ce);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"onCancelByEsc":this._keydownHandler();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;default:this.callBase(ne)}},_getTargetDraggable:function(){return Z||this},_getSourceDraggable:function(){return X||this},_setTargetDraggable:function(){var ne=this.option("group"),ce=this._getSourceDraggable();ne&&ne===ce.option("group")&&(Z=this)},_setSourceDraggable:function(){X=this},_resetSourceDraggable:function(){X=null},_resetTargetDraggable:function(){Z=null},_resetDragOptions:function(ne){this.reset(),ne.reset(),this._stopAnimator(),this._horizontalScrollHelper.reset(),this._verticalScrollHelper.reset(),this._resetDragElement(),this._resetSourceElement(),this._resetTargetDraggable(),this._resetSourceDraggable()},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()},_fireDragEnterEvent:function(ne){var ce=this._getEventArgs(ne);this._getAction("onDragEnter")(ce)},_fireDragLeaveEvent:function(ne){var ce=this._getEventArgs(ne);this._getAction("onDragLeave")(ce)}});(0,l.Z)(V,_e);const ye=_e},854:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>J});var o=u(9904),c=u(6853),I=u(6868),C=u(8506),g=u(970),a=u(8531),p=u(4137),s=u(6738),l=u(6881),d=u(4328),h=u(8264),v=u(7122),x=u(820),b=u(4270),y=u(5873),E=u(1828),S=u(7674),O=u(6492),w=u(4094),T=u(9009),k="dx-dropdownbutton",P="dx-dropdownbutton-action",B="dx-dropdownbutton-toggle",Y=c.Z.inherit({_getDefaultOptions(){return(0,y.l)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:void 0,selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:T.Z.format("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,useItemTextAsTitle:!0,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference(){this.callBase(),(0,y.l)(this._optionsByReference,{selectedItem:!0})},_init(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(this.option("items")),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates(){this._templateManager.addDefaultTemplates({content:new I.k(j=>{var ee=(0,o.Z)(j.container),G=(0,o.Z)("<div>").appendTo(ee);this._list=this._createComponent(G,p.Z,this._listOptions()),this._list.registerKeyHandler("escape",this._escHandler.bind(this)),this._list.registerKeyHandler("tab",this._escHandler.bind(this)),this._list.registerKeyHandler("leftArrow",this._escHandler.bind(this)),this._list.registerKeyHandler("rightArrow",this._escHandler.bind(this))})}),this.callBase()},_itemsToDataSource:function(j){this._dataSource||(this._dataSource=new v.o({store:new x.Z({key:this._getKey(),data:j}),pageSize:0}))},_getKey:function(){var j,ee=this.option("keyExpr"),G=null===(j=this._dataSource)||void 0===j?void 0:j.key();return!(0,E.$K)(G)||(0,E.$K)(ee)&&"this"!==ee?ee:G},_compileKeyGetter(){this._keyGetter=(0,s.vb)(this._getKey())},_compileDisplayGetter(){this._displayGetter=(0,s.vb)(this.option("displayExpr"))},_initMarkup(){this.callBase(),this.$element().addClass(k),this._renderButtonGroup(),this._updateArrowClass(),(0,E.$K)(this.option("selectedItemKey"))&&this._loadSelectedItem().done(this._updateActionButton.bind(this))},_renderFocusTarget:S.ZT,_render(){(!this.option("deferRendering")||this.option("opened"))&&this._renderPopup(),this.callBase()},_renderContentImpl(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem(){var j;null===(j=this._loadSingleDeferred)||void 0===j||j.reject();var ee=new b.BH;if(this._list&&void 0!==this._lastSelectedItemData){var G=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return ee.resolve(G)}this._lastSelectedItemData=void 0;var q=this.option("selectedItemKey");return this._loadSingle(this._getKey(),q).done(ee.resolve).fail(()=>{ee.resolve(null)}),this._loadSingleDeferred=ee,ee.promise()},_createActionClickAction(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction(j){var{previousValue:ee,value:G}=j;this._selectionChangedAction({item:G,previousItem:ee})},_fireItemClickAction(j){var{event:ee,itemElement:G,itemData:q}=j;return this._itemClickAction({event:ee,itemElement:G,itemData:this._actionItem||q})},_actionButtonConfig(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:P}}},_getButtonGroupItems(){var j=[];return j.push(this._actionButtonConfig()),this.option("splitButton")&&j.push({icon:"spindown",elementAttr:{class:B}}),j},_buttonGroupItemClick(j){var{event:ee,itemData:G}=j,q=G.elementAttr.class===P;G.elementAttr.class===B?this.toggle():q&&(this._actionClickAction({event:ee,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions(){var{splitButton:j,showArrowIcon:ee,focusStateEnabled:G,hoverStateEnabled:q,stylingMode:Z,accessKey:X,tabIndex:M}=this.option(),oe=j||!ee?"content":(fe,Te)=>{var{text:Be,icon:ze}=fe,ae=(0,d.H)(ze),_e=Be?(0,o.Z)("<span>").text(Be).addClass("dx-button-text"):void 0,ye=(0,d.H)("spindown").addClass("dx-icon-right");(0,o.Z)(Te).append(ae,_e,ye)};return(0,y.l)({items:this._getButtonGroupItems(),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",selectionMode:"none",onKeyboardHandled:fe=>this._keyboardHandler(fe),buttonTemplate:oe,focusStateEnabled:G,hoverStateEnabled:q,stylingMode:Z,accessKey:X,tabIndex:M},this._options.cache("buttonGroupOptions"))},_renderPopupContent(){var j=this._popup.$content(),ee=this._getTemplateByOption("dropDownContentTemplate");return j.empty(),this._popupContentId="dx-"+new O.Z,this.setAria("id",this._popupContentId,j),ee.render({container:(0,l.u)(j),model:this.option("items")||this._dataSource})},_popupOptions(){var j=this.option("rtlEnabled")?"right":"left";return(0,y.l)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),hideOnOutsideClick:ee=>{var G=this.$element();return!(0,o.Z)(ee.target).closest(".".concat(k)).is(G)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},_ignoreFunctionValueDeprecation:!0,width:()=>(0,w.m)(this.$element()),height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:j+" top",at:j+" bottom"},_wrapperClassExternal:"dx-dropdowneditor-overlay"},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions(){var j=this.option("selectedItemKey"),ee=this.option("useSelectMode");return{selectionMode:ee?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:()=>this._fireContentReadyAction(),selectedItemKeys:(0,E.$K)(j)&&ee?[j]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:G=>{this.option("useSelectMode")||(this._lastSelectedItemData=G.itemData),this.option("selectedItemKey",this._keyGetter(G.itemData)),!1!==this._fireItemClickAction(G)&&(this.toggle(!1),this._buttonGroup.focus())}}},_upDownKeyHandler(){return this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open(),!0},_escHandler(){return this.close(),this._buttonGroup.focus(),!0},_tabHandler(){return this.close(),!0},_renderPopup(){var j=(0,o.Z)("<div>");this.$element().append(j),this._popup=this._createComponent(j,a.Z,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup.$wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler(){this.option("opened",!1),this._setAriaExpanded(!1)},_popupOptionChanged:function(j){var ee=c.Z.getOptionsFromContainer(j);this._setPopupOption(ee);var G=Object.keys(ee);(-1!==G.indexOf("width")||-1!==G.indexOf("height"))&&this._dimensionChanged()},_dimensionChanged:function(){void 0===(0,w.T)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,w.m)(this.$element()))},_setPopupOption:function(j,ee){this._setWidgetOption("_popup",arguments)},_popupShowingHandler(){this.option("opened",!0),this._setAriaExpanded(!0)},_setAriaExpanded(j){this._ariaExpandedElements.forEach(ee=>{this.setAria({expanded:j,owns:j?this._popupContentId:void 0},(0,o.Z)(ee))})},_renderButtonGroup(){var j=this._buttonGroup&&this._buttonGroup.$element()||(0,o.Z)("<div>");this._buttonGroup||this.$element().append(j),this._buttonGroup=this._createComponent(j,g.Z,this._buttonGroupOptions());var ee=this._buttonGroup.$element().find(".dx-button").toArray();this._ariaExpandedElements=[...ee,this.$element()],this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this._tabHandler.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions"),this._setAriaExpanded(this.option("opened"))},_updateArrowClass(){var j=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",j)},toggle(j){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(j)},open(){return this.toggle(!0)},close(){return this.toggle(!1)},_setListOption(j,ee){this._list&&this._list.option(j,ee)},_getDisplayValue(j){var G=(0,E.PO)(j)?this._displayGetter(j):j;return(0,E.PO)(G)?"":String((0,S.IS)(G,""))},_updateActionButton(j){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(j),icon:(0,E.PO)(j)?j.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",j),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(j))},_clean(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged(j){this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,E.$K)(j)?[j]:[]);var ee=this.option("selectedItem");this._loadSelectedItem().done(G=>{this._updateActionButton(G),this._displayGetter(ee)!==this._displayGetter(G)&&this._fireSelectionChangedAction({previousValue:ee,value:G})})},_actionButtonOptionChanged(j){var{name:ee,value:G}=j,q={};q[ee]=G,this._buttonGroup.option("items[0]",(0,y.l)({},this._actionButtonConfig(),q)),this._popup&&this._popup.repaint()},_selectModeChanged(j){if(j){this._setListOption("selectionMode","single");var ee=this.option("selectedItemKey");this._setListOption("selectedItemKeys",(0,E.$K)(ee)?[ee]:[]),this._selectedItemKeyChanged(this.option("selectedItemKey"))}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0}),this._actionButtonOptionChanged({text:this.option("text")})},_updateItemCollection(j){var ee=this.option("selectedItemKey");this._setListOption("selectedItem",null),this._setWidgetOption("_list",[j]),(0,E.$K)(ee)&&this._loadSelectedItem().done(G=>{this._setListOption("selectedItemKeys",[ee]),this._setListOption("selectedItem",G)}).fail(G=>{this._setListOption("selectedItemKeys",[])}).always(this._updateActionButton.bind(this))},_updateDataSource:function(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._dataSource.items();this._dataSource=void 0,this._itemsToDataSource(j),this._updateKeyExpr()},_updateKeyExpr:function(){this._compileKeyGetter(),this._setListOption("keyExpr",this._getKey())},focus:function(){this._buttonGroup.focus()},_optionChanged(j){var ee,{name:G,value:q}=j;switch(G){case"useSelectMode":this._selectModeChanged(q);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(G,q),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._updateDataSource();break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,j);break;case"dropDownOptions":if("dropDownOptions.visible"===j.fullName)break;void 0!==j.value.visible&&delete j.value.visible,this._popupOptionChanged(j),this._innerWidgetOptionChanged(this._popup,j);break;case"opened":this.toggle(q);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(G,q),this._buttonGroup.option(G,q),this.callBase(j);break;case"items":this._updateDataSource(this.option("items")),this._updateItemCollection(G);break;case"dataSource":Array.isArray(q)?this._updateDataSource(this.option("dataSource")):(this._initDataSource(),this._updateKeyExpr()),this._updateItemCollection(G);break;case"icon":case"text":this._actionButtonOptionChanged(j);break;case"showArrowIcon":this._updateArrowClass(),this._renderButtonGroup(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(j),null===(ee=this._popup)||void 0===ee||ee.repaint();break;case"stylingMode":case"tabIndex":this._buttonGroup.option(G,q);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":case"useItemTextAsTitle":this._setListOption(G,q);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(q);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;default:this.callBase(j)}}}).include(h.Z);(0,C.Z)("dxDropDownButton",Y);const J=Y},4694:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>Te});var o=u(9904),c=u(913),I=u(6492),C=u(8506),g=u(7674),a=u(7),p=u(2718),s=u(1828),l=u(5873),d=u(6881),h=u(8159),v=u(5791),x=u(5450),b=u(9009),y=u(5251),E=u(219);class T extends y.Z{constructor(ze,ae,_e){super(ze,ae,_e),this.currentTemplate=null}_attachEvents(ze){var{editor:ae}=this;ze.option("onClick",_e=>{!ae.option("openOnFieldClick")&&ae._openHandler(_e)}),c.Z.on(ze.$element(),"mousedown",_e=>{ae.$element().is(".dx-state-focused")&&_e.preventDefault()})}_create(){var{editor:ze}=this,ae=(0,o.Z)("<div>"),_e=this._getOptions();this._addToContainer(ae);var ye=ze._createComponent(ae,E.Z,(0,l.l)({},_e,{elementAttr:{"aria-label":b.Z.format("dxDropDownEditor-selectLabel")}}));return this._legacyRender(ze.$element(),ae,_e.visible),{$element:ae,instance:ye}}_getOptions(){var{editor:ze}=this,ae=this._isVisible(),ye={focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:ze.option("readOnly"),visible:ae};return this._addTemplate(ye),ye}_isVisible(){var{editor:ze}=this;return super._isVisible()&&ze.option("showDropDownButton")}_legacyRender(ze,ae,_e){ze.toggleClass("dx-dropdowneditor-button-visible",_e),ae&&ae.removeClass("dx-button").addClass("dx-dropdowneditor-button")}_isSameTemplate(){return this.editor.option("dropDownButtonTemplate")===this.currentTemplate}_addTemplate(ze){this._isSameTemplate()||(ze.template=this.editor._getTemplateByOption("dropDownButtonTemplate"),this.currentTemplate=this.editor.option("dropDownButtonTemplate"))}update(){if(super.update()){var{editor:ae,instance:_e}=this,ye=ae.$element(),ne=this._getOptions();_e?.option(ne),this._legacyRender(ye,_e?.$element(),ne.visible)}}}var k=u(6853),R=u(8225),P=u(3447),B=u(227),W=u(2941),z=u(6868),V=u(8531),U=u(4514),K=u(4094),Y=u(6961),j="dx-dropdowneditor-input-wrapper",G="dx-dropdowneditor-overlay",oe="ios"===W.Z.current().platform,fe=P.Z.inherit({_supportedKeys:function(){return(0,l.l)({},this.callBase(),{tab:function(Be){if(this.option("opened")){if("instantly"===this.option("applyValueMode"))return void this.close();var ze=Be.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();ze&&(c.Z.trigger(ze,"focus"),ze.select()),Be.preventDefault()}},escape:function(Be){return this.option("opened")&&Be.preventDefault(),this.close(),!0},upArrow:function(Be){return!(!(0,R.j1)(Be)&&(Be.preventDefault(),Be.stopPropagation(),Be.altKey)&&(this.close(),1))},downArrow:function(Be){return!(!(0,R.j1)(Be)&&(Be.preventDefault(),Be.stopPropagation(),Be.altKey)&&(this._validatedOpening(),1))},enter:function(Be){return this.option("opened")&&(Be.preventDefault(),this._valueChangeEventHandler(Be)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:T}])},_getDefaultOptions:function(){return(0,l.l)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:b.Z.format("OK"),cancelButtonText:b.Z.format("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1,validationMessagePosition:"auto"})},_useTemplates:function(){return!0},_getDefaultPopupPosition:function(Be){var ze=(0,x.q)(Be);return{offset:{h:0,v:-1},my:ze+" top",at:ze+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(Be){return"generic"===Be.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find("."+j).first()},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(Be){var{my:ze,at:ae}=this._getDefaultPopupPosition(Be),_e=this.option("popupPosition");this.option("popupPosition",(0,l.l)({},_e,{my:ze,at:ae}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this._wrapInput(),this._setDefaultAria()},_wrapInput:function(){this._$container=this.$element().wrapInner((0,o.Z)("<div>").addClass(j)).children().eq(0)},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this._isEditable()||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var Be=this._getFieldTemplate();Be&&this._renderTemplatedField(Be,this._fieldRenderData())},_renderPlaceholder:function(){this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(Be,ze){var ae;this._fieldRenderQueueLength=(null!==(ae=this._fieldRenderQueueLength)&&void 0!==ae?ae:0)+1;var _e=(0,a.si)(this._input()),ye=this._$container;this._detachKeyboardEvents(),this._refreshButtonsContainer(),this._detachWrapperContent(),this._detachFocusEvents(),ye.empty();var ne=(0,o.Z)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(ye);Be.render({model:ze,container:(0,d.u)(ne),onRendered:()=>{if(this._fieldRenderQueueLength--,0===this._fieldRenderQueueLength){var ce=this._input();if(!ce.length)throw h.Z.Error("E1010");this._integrateInput(),_e&&c.Z.trigger(ce,"focus")}}}),this._attachWrapperContent(ye)},_detachWrapperContent(){var Be,ze,ae;this.option("useHiddenSubmitElement")&&(null===(Be=this._$submitElement)||void 0===Be||Be.detach());var ye=null===(ze=this._$beforeButtonsContainer)||void 0===ze?void 0:ze[0].parentNode,ne=null===(ae=this._$afterButtonsContainer)||void 0===ae?void 0:ae[0].parentNode;ye?.removeChild(this._$beforeButtonsContainer[0]),ne?.removeChild(this._$afterButtonsContainer[0])},_attachWrapperContent(Be){var ze,ae=this.option("useHiddenSubmitElement");Be.prepend(this._$beforeButtonsContainer),ae&&(null===(ze=this._$submitElement)||void 0===ze||ze.appendTo(Be)),Be.append(this._$afterButtonsContainer)},_refreshButtonsContainer(){this._$buttonsContainer=this.$element().children().eq(0)},_integrateInput:function(){this._renderFocusState(),this._refreshValueChangeEvent(),this._refreshEvents(),this._refreshEmptinessEvent()},_refreshEmptinessEvent:function(){c.Z.off(this._input(),"input blur",this._toggleEmptinessEventHandler),this._renderEmptinessEvent()},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new z.k(function(Be){var ze=(0,o.Z)("<div>").addClass("dx-dropdowneditor-icon");(0,o.Z)(Be.container).append(ze)})}),this.callBase()},_renderOpenHandler:function(){var Be=this._inputWrapper(),ze=(0,R.V4)(B.u,this.NAME),ae=this.option("openOnFieldClick");c.Z.off(Be,ze),c.Z.on(Be,ze,this._getInputClickHandler(ae)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",ae),ae&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){oe&&(this._detachFocusOutEvents(),c.Z.on(this._inputWrapper(),(0,R.V4)("focusout",this.NAME),Be=>{var ze=Be.relatedTarget,ae=this.content?(0,o.Z)(this.content()).closest("."+G):this._$popup;ze&&this.option("opened")&&0===(0,o.Z)(ze).closest("."+G,ae).length&&this.close()}))},_detachFocusOutEvents:function(){oe&&c.Z.off(this._inputWrapper(),(0,R.V4)("focusout",this.NAME))},_getInputClickHandler:function(Be){return Be?ze=>{this._executeOpenAction(ze)}:ze=>{this._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(Be){this._openOnFieldClickAction({event:Be})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,a.si)(this._input())&&(this._resetCaretPosition(),c.Z.trigger(this._input(),"focus")),!0)},_resetCaretPosition:function(){var Be=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ze=this._input().get(0);if(ze){var{value:ae}=ze,_e=(0,s.$K)(ae)&&(Be||this._isEditable())?ae.length:0;this._caret({start:_e,end:_e},!0)}},_isEditable:function(){return this.option("acceptCustomValue")},_toggleOpenState:function(Be){this._focusInput()&&(this.option("readOnly")||(Be=arguments.length?Be:!this.option("opened"),this.option("opened",Be)))},_getControlsAria(){return this._popup&&this._popupContentId},_renderOpenedState:function(){var Be=this.option("opened");Be&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",Be),this._setPopupOption("visible",Be);var ze={expanded:Be,controls:this._getControlsAria()};this.setAria(ze),this.setAria("owns",Be?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,o.Z)("<div>").addClass(G).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:g.ZT,_renderPopup:function(){var Be=(0,l.l)(this._popupConfig(),this._options.cache("dropDownOptions"));delete Be.closeOnOutsideClick,Be.elementAttr&&!Object.keys(Be.elementAttr).length&&delete Be.elementAttr,this._popup=this._createComponent(this._$popup,V.Z,Be),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId(Be){this._popupContentId="dx-"+new I.Z,this.setAria("id",this._popupContentId,Be)},_contentReadyHandler:g.ZT,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,l.l)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),_ignoreFunctionValueDeprecation:!0,width:()=>(0,K.m)(this.$element()),height:"auto",shading:!1,hideOnParentScroll:!0,hideOnOutsideClick:Be=>this._closeOutsideDropDownHandler(Be),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,dragEnabled:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null,_wrapperClassExternal:G}},_popupInitializedHandler:function(){return this.option("onPopupInitialized")?Be=>{this._popupInitializedAction({popup:Be.component})}:null},_dimensionChanged:function(){!(0,U.Ym)()||this.$element().is(":visible")?this._updatePopupWidth():this.close()},_updatePopupWidth:function(){void 0===(0,K.T)(this.option("dropDownOptions.width"))&&this._setPopupOption("width",()=>(0,K.m)(this.$element()))},_popupPositionedHandler:function(Be){var ze,ae,{labelMode:_e,stylingMode:ye}=this.option();if(this._popup){var ne=this._popup.$overlayContent(),ce=null===(ze=Be.position)||void 0===ze||null===(ae=ze.v)||void 0===ae?void 0:ae.flip,le="hidden"!==_e&&"outlined"===ye;if(Be.position&&ne.toggleClass("dx-dropdowneditor-overlay-flipped",ce),ce&&le&&this._label.isVisible()){var pe=this._label.$element();(0,Y.pB)(ne,{top:(0,Y.jt)(ne).top-parseInt(pe.css("fontSize"))})}}},_popupShowingHandler:g.ZT,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){var Be;this._openAction(),null===(Be=this._validationMessage)||void 0===Be||Be.option("positionSide",this._getValidationMessagePositionSide())},_popupHiddenHandler:function(){var Be;this._closeAction(),null===(Be=this._validationMessage)||void 0===Be||Be.option("positionSide",this._getValidationMessagePositionSide())},_getValidationMessagePositionSide:function(){var Be=this.option("validationMessagePosition");if("auto"!==Be)return Be;var ze="bottom";if(this._popup&&this._popup.option("visible")){var{top:ae}=v.Z.setup(this.$element()),{top:_e}=v.Z.setup(this._popup.$content());ze=ae+this.option("popupPosition").offset.v>_e?"bottom":"top"}return ze},_closeOutsideDropDownHandler:function(Be){var{target:ze}=Be,ae=(0,o.Z)(ze),_e=this.getButton("dropDown"),ye=_e&&_e.$element(),ne=!!ae.closest(this.$element()).length,ce=!!ae.closest(ye).length;return!ne&&!ce},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(Be,ze){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup.$wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(Be){var ze=(0,o.Z)(Be.currentTarget);(Be.shiftKey&&ze.is(this._getFirstPopupElement())||!Be.shiftKey&&ze.is(this._getLastPopupElement()))&&(c.Z.trigger(this._input(),"focus"),Be.preventDefault())},_popupElementEscHandler:function(){c.Z.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(Be){Be.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),Be.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var Be=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(Be)},_applyButtonsLocation:function(Be){var ze=this.option("buttonsLocation"),ae=Be;if("default"!==ze){var _e=(0,g.Um)(ze);(0,p.S6)(ae,function(ye,ne){(0,l.l)(ne,{toolbar:_e[0],location:_e[1]})})}return ae},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_popupOptionChanged:function(Be){var ze=k.Z.getOptionsFromContainer(Be);this._setPopupOption(ze);var ae=Object.keys(ze);(-1!==ae.indexOf("width")||-1!==ae.indexOf("height"))&&this._dimensionChanged()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,o.Z)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_optionChanged:function(Be){var ze;switch(Be.name){case"width":case"height":this.callBase(Be),null===(ze=this._popup)||void 0===ze||ze.repaint();break;case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,s.$K)(Be.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(Be),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":break;case"deferRendering":(0,U.Ym)()&&this._createPopup();break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(Be.value),this.callBase(Be);break;default:this.callBase(Be)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,d.u)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,C.Z)("dxDropDownEditor",fe);const Te=fe},5287:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>Y});var o=u(1805),c=u(9904),I=u(4514),C=u(913),g=u(6492),a=u(8506),p=u(7674),s=u(1828),l=u(5873),d=u(4694),h=u(4137),v=u(8159),x=u(8225),b=u(2941),y=u(7316),E=u(2718),S=u(5442),O=u(9009),w=u(1927),T=u(4270),k=u(9661),R=(0,I.Jj)(),V=["startswith","contains","endwith","notcontains"],U="android"!==b.Z.real().platform,K=d.Z.inherit({_supportedKeys:function(){var J=this.callBase();return(0,l.l)({},J,{tab:function(j){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(j);var ee=(0,c.Z)(this._list.option("focusedElement"));ee.length&&this._setSelectedElement(ee)}J.tab.apply(this,arguments)},space:p.ZT,home:p.ZT,end:p.ZT})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(J){var j=this._valueGetter(this._list._getItemData(J));this._setValue(j)},_setValue:function(J){this.option("value",J)},_getDefaultOptions:function(){return(0,l.l)(this.callBase(),(0,l.l)(S.Z._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:O.Z.format("dxCollectionWidget-noDataText"),encodeNoDataText:!1,onSelectionChanged:null,onItemClick:p.ZT,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,useItemTextAsTitle:!1}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),(0,l.l)(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_setListFocusedElementOptionChange:function(){this._list._updateParentActiveDescendant=this._updateActiveDescendant.bind(this)},_initItems:function(){var J=this.option().items;J&&!J.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new w.s("item")})},_isEditable:function(){return this.callBase()||this.option("searchEnabled")},_saveFocusOnWidget:function(J){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(J,j,ee){return J>ee?j:J<j?ee:J},_items:function(){var J=this._getPlainItems(!this._list&&this._dataSource.items());return new y.Z(J).filter("disabled","<>",!0).toArray()},_calcNextItem:function(J){var j=this._items();return j[this._fitIntoRange(this._getSelectedIndex()+J,0,j.length-1)]},_getSelectedIndex:function(){var J=this._items(),j=this.option("selectedItem"),ee=-1;return(0,E.S6)(J,function(G,q){if(this._isValueEquals(q,j))return ee=G,!1}.bind(this)),ee},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup.$wrapper().addClass(this._popupWrapperClass());var J=this._popup.$content();C.Z.off(J,"mouseup"),C.Z.on(J,"mouseup",this._saveFocusOnWidget.bind(this))},_updateCustomBoundaryContainer:function(){var J=this.option("dropDownOptions.container"),j=J&&(0,c.Z)(J);if(j&&j.length&&!(0,s.FJ)(j.get(0))){var ee=[].slice.call(j.parents());ee.unshift(j.get(0)),(0,E.S6)(ee,function(G,q){return q!==(0,c.Z)("body").get(0)&&("hidden"===R.getComputedStyle(q).overflowY?(this._$customBoundaryContainer=(0,c.Z)(q),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var J=this._getCurrentValue();return this._rejectValueLoading(),this._loadInputValue(J,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,J))},_loadInputValue:function(J,j){return this._loadItem(J).always(j)},_getItemFromPlain:function(J,j){var ee,G;return j&&"object"!=typeof J&&(j.itemByValue||(j.itemByValue={},(ee=this._getPlainItems()).forEach(function(q){j.itemByValue[this._valueGetter(q)]=q},this)),G=j.itemByValue[J]),G||(ee=this._getPlainItems(),G=(0,p.h3)(ee,function(q){return this._isValueEquals(this._valueGetter(q),J)}.bind(this))[0]),G},_loadItem:function(J,j){var ee=this._getItemFromPlain(J,j);return void 0!==ee?(new T.BH).resolve(ee).promise():this._loadValue(J)},_getPlainItems:function(J){var j=[];J=J||this.option("items")||this._dataSource.items()||[];for(var ee=0;ee<J.length;ee++)J[ee]&&J[ee].items?j=j.concat(J[ee].items):j.push(J[ee]);return j},_updateActiveDescendant(){var J,j=this.option("opened"),ee=null===(J=this._list)||void 0===J?void 0:J.getFocusedItemId(),G=(0,c.Z)("#".concat(ee)).length>0;this.setAria({activedescendant:j&&G&&ee||null})},_setSelectedItem:function(J){var j=this._displayValue(J);this.option("selectedItem",(0,p.IS)(J,null)),this.option("displayValue",j)},_displayValue:function(J){return this._displayGetter(J)},_refreshSelected:function(){var J={};this._listItemElements().each(function(j,ee){var G=(0,c.Z)(ee),q=this._valueGetter(G.data("dxListItemData"));this._isSelectedValue(q,J)?this._list.selectItem(G):this._list.unselectItem(G)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){!this.option("focusStateEnabled")||!this._list||this._list.option("focusedElement",null)},_isSelectedValue:function(J){return this._isValueEquals(J,this.option("value"))},_validateSearchMode:function(){var J=this.option("searchMode"),j=J.toLowerCase();if(!V.includes(j))throw v.Z.Error("E1019",J)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._initDataController(),this._setListOption("_dataController",this._dataController),this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):(0,c.Z)()},_popupConfig:function(){return(0,l.l)(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this)})},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners(){var J=this._canListHaveFocus();return this.callBase().concat([!J&&this._list])},_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new g.Z)._value;var J=this._$list=(0,c.Z)("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(J,h.Z,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlurOnListClick(),this._setListFocusedElementOptionChange()},_renderPreventBlurOnListClick:function(){var J=(0,x.V4)("mousedown","dxDropDownList");C.Z.off(this._$list,J),C.Z.on(this._$list,J,j=>j.preventDefault())},_getControlsAria(){return this._list&&this._listId},_renderOpenedState:function(){this.callBase(),this._list&&this._updateActiveDescendant(),this.setAria("owns",this._popup&&this._popupContentId)},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===b.Z.real().deviceType},_listConfig:function(){var J={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),encodeNoDataText:this.option("encodeNoDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),useItemTextAsTitle:this.option("useItemTextAsTitle"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),_dataController:this._dataController,hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(J.tabIndex=null),J},_canListHaveFocus:()=>!1,_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._updatePopupWidth(),this._updateListDimensions(),this._contentReadyAction()},_setListOption:function(J,j){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(J){this._listItemClickHandler(J),this._itemClickAction(J)},_listItemClickHandler:p.ZT,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var J=this._isMinSearchLengthExceeded();return this._dataController.isLoaded()&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!J&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return(0,x.V4)("input",this.NAME+"Search")},_getCompositionStartEvent:function(){return(0,x.V4)("compositionstart",this.NAME+"CompositionStart")},_getCompositionEndEvent:function(){return(0,x.V4)("compositionend",this.NAME+"CompositionEnd")},_getSetFocusPolicyEvent:function(){return(0,x.V4)("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),C.Z.on(this._input(),this._getSetFocusPolicyEvent(),()=>{this._setFocusPolicy()}),this._shouldRenderSearchEvent()&&(C.Z.on(this._input(),this._getSearchEvent(),J=>{this._searchHandler(J)}),U&&(C.Z.on(this._input(),this._getCompositionStartEvent(),()=>{this._isTextCompositionInProgress(!0)}),C.Z.on(this._input(),this._getCompositionEndEvent(),J=>{this._isTextCompositionInProgress(void 0),this._searchHandler(J,this._searchValue())})))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){C.Z.off(this._input(),this._getSearchEvent()),C.Z.off(this._input(),this._getSetFocusPolicyEvent()),U&&(C.Z.off(this._input(),this._getCompositionStartEvent()),C.Z.off(this._input(),this._getCompositionEndEvent())),this.callBase()},_isTextCompositionInProgress:function(J){if(!arguments.length)return this._isTextComposition;this._isTextComposition=J},_searchHandler:function(J,j){if(!this._isTextCompositionInProgress()){if(!this._isMinSearchLengthExceeded())return void this._searchCanceled();var ee=this.option("searchTimeout");ee?(this._clearSearchTimer(),this._searchTimer=setTimeout(()=>{this._searchDataSource(j)},ee)):this._searchDataSource(j)}},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){var J=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._searchValue();this._filterDataSource(J)},_filterDataSource:function(J){this._clearSearchTimer();var j=this._dataController;j.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),j.searchOperation(this.option("searchMode")),j.searchValue(J),j.load().done(this._dataSourceFiltered.bind(this,J))},_clearFilter:function(){var J=this._dataController;J.searchValue()&&J.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var J=this._shouldOpenPopup();J&&!this._isFocused()||(this.option("opened",J),J&&(this._updatePopupWidth(),this._updateListDimensions()))}},_dataSourceChangedHandler:function(J){0===this._dataController.pageIndex()?this.option().items=J:this.option().items=this.option().items.concat(J)},_hasItemsToShow:function(){var ee=(this._dataController.items()||[]).length;return!(!this._needPassDataSourceToList()||!ee)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_popupShowingHandler:function(){this._updatePopupWidth(),this._updateListDimensions()},_dimensionChanged:function(){this.callBase(),this._updateListDimensions()},_needPopupRepaint:function(){var J=this._dataController,j=J.pageIndex(),ee=(0,s.$K)(this._pageIndex)&&j<=this._pageIndex||J.isLastPage()&&!this._list._scrollViewIsFull();return this._pageIndex=j,ee},_updateListDimensions:function(){this._popup&&(this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions())},_getMaxHeight:function(){var J=this.$element(),j=this._$customBoundaryContainer,ee=J.offset().top-(j?j.offset().top:0),G=(0,o.zp)(R),q=j?Math.min((0,o.zp)(j),G):G,Z=Math.max(ee,q-ee-(0,o.zp)(J));return Math.min(.5*q,Z)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var J=this.option("value"),j=this._shouldUseDisplayValue(J)?this._displayGetter(J):J;this._getSubmitElement().val(j)},_shouldUseDisplayValue:function(J){return"this"===this.option("valueExpr")&&(0,s.Kn)(J)},_optionChanged:function(J){switch(this._dataExpressionOptionChanged(J),J.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(J.name,J.value),this.callBase(J);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":case"encodeNoDataText":case"useItemTextAsTitle":this._setListOption(J.name);break;case"displayValue":this.option("text",J.value);break;case"itemTemplate":case"searchTimeout":break;case"selectedItem":J.previousValue!==J.value&&this._selectionChangedAction({selectedItem:J.value});break;default:this.callBase(J)}}}).include(S.Z,k.Z);(0,a.Z)("dxDropDownList",K);const Y=K},4094:(Rn,he,u)=>{"use strict";u.d(he,{T:()=>C,m:()=>I});var o=u(1805),c=u(4514),I=function(g){if((0,c.Ym)())return(0,o.Y_)(g)},C=function(g){return null===g&&(g=void 0),"function"==typeof g&&(g=g()),g}},1031:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>W});var o=u(9904),c=u(5610),I=u(5365),C=u(4514),g=u(8225),a=u(5873),p=u(6853),s=u(3191),l=u(913),d=u(8785),h=u(6492),v=u(7674),x=u(6520),b="dx-invalid-message-auto",O="dx-validation-target",T="invalid",R=["outlined","filled","underlined"],P={validationMessageMode:"mode",validationMessagePosition:"positionSide",validationMessageOffset:"offset",validationBoundary:"boundary"},B=p.Z.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,I.Z)(),this.callBase.apply(this,arguments)},_createElement:function(z){this.callBase(z);var V=this.$element();V&&(0,c.aT)(V[0],O,this)},_initOptions:function(z){this.callBase.apply(this,arguments),this.option(s.Z.initValidationOptions(z))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationMessagePosition:"bottom",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,a.l)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){var z;this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState(),null===(z=this.option("_onMarkupRendered"))||void 0===z||z()},_raiseValueChangeAction:function(z,V){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(z,V))},_valueChangeArgs:function(z,V){return{value:z,previousValue:V,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(z){this._valueChangeEventInstance=z},_focusInHandler:function(z){var V="auto"===this.option("validationMessageMode");if(this._canValueBeChangedByClick()&&V){var U,K=null===(U=this._validationMessage)||void 0===U?void 0:U.$wrapper();K?.removeClass(b),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout(()=>K?.addClass(b),150)}return this.callBase(z)},_canValueBeChangedByClick:function(){return!1},_getStylingModePrefix:function(){return"dx-editor-"},_renderStylingMode:function(){var z=this.option("stylingMode"),V=this._getStylingModePrefix(),U=R.map(j=>V+j);U.forEach(j=>this.$element().removeClass(j));var K=V+z;if(-1===U.indexOf(K)){var Y=this._getDefaultOptions().stylingMode,J=this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode;K=V+(J||Y)}this.$element().addClass(K)},_getValidationErrors:function(){var z=this.option("validationErrors");return!z&&this.option("validationError")&&(z=[this.option("validationError")]),z},_disposeValidationMessage:function(){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=void 0,this._validationMessage=void 0)},_toggleValidationClasses:function(z){this.$element().toggleClass("dx-invalid",z),this.setAria(T,z||void 0)},_renderValidationState:function(){var z=this.option("isValid")&&this.option("validationStatus")!==T,V=this._getValidationErrors(),U=this.$element();if(this._toggleValidationClasses(!z),(0,C.Ym)()&&(this._disposeValidationMessage(),!z&&V)){var{validationMessageMode:K,validationMessagePosition:Y,validationMessageOffset:J,validationBoundary:j,rtlEnabled:ee}=this.option();this._$validationMessage=(0,o.Z)("<div>").appendTo(U);var G="dx-".concat(new h.Z);this.setAria("describedby",G),this._validationMessage=new d.Z(this._$validationMessage,(0,a.l)({validationErrors:V,rtlEnabled:ee,target:this._getValidationMessageTarget(),visualContainer:U,mode:K,positionSide:Y,offset:J,boundary:j,contentId:G},this._options.cache("validationTooltipOptions"))),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}},_getValidationMessageTarget:function(){return this.$element()},_toggleReadOnlyState:function(){var z=this.option("readOnly");this._toggleBackspaceHandler(z),this.$element().toggleClass("dx-state-readonly",!!z),this.setAria("readonly",z||void 0)},_toggleBackspaceHandler:function(z){var V=this._keyboardEventBindingTarget(),U=(0,g.V4)("keydown","editorReadOnly");l.Z.off(V,U),z&&l.Z.on(V,U,K=>{"backspace"===(0,g.EV)(K)&&K.preventDefault()})},_dispose:function(){var z=this.$element()[0];(0,c.aT)(z,O,null),clearTimeout(this.showValidationMessageTimeout),this._disposeValidationMessage(),this.callBase()},_setSubmitElementName:function(z){var V=this._getSubmitElement();V&&(z.length>0?V.attr("name",z):V.removeAttr("name"))},_getSubmitElement:function(){return null},_setValidationMessageOption:function(z){var V,{name:U,value:K}=z;null===(V=this._validationMessage)||void 0===V||V.option(P[U]?P[U]:U,K)},_hasActiveElement:v.ZT,_optionChanged:function(z){var V;switch(z.name){case"onValueChanged":this._createValueChangeAction();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":z.value!=z.previousValue&&this.validationRequest.fire({value:z.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(z.value,z.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(z),null===(V=this._validationMessage)||void 0===V||V.updateMaxWidth();break;case"name":this._setSubmitElementName(z.value);break;case"isValid":case"validationError":case"validationErrors":case"validationStatus":this.option(s.Z.synchronizeValidationOptions(z,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":case"validationMessagePosition":case"validationMessageOffset":this._setValidationMessageOption(z);break;case"rtlEnabled":this._setValidationMessageOption(z),this.callBase(z);break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,z);break;default:this.callBase(z)}},blur:function(){this._hasActiveElement()&&(0,x.M3)()},reset:function(){var z=this._getDefaultOptions();this.option("value",z.value)}});B.isEditor=z=>z instanceof B;const W=B},5442:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(9963),c=u(6738),I=u(7674),C=u(1828),g=u(5873),a=u(8264),p=u(7122),s=u(820),l=u(4270);const h=(0,g.l)({},a.Z,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new p.o({store:new s.Z(this.option("items")),pageSize:0}),this._initDataController())},_compileDisplayGetter:function(){this._displayGetter=(0,c.vb)(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=(0,c.vb)(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(v){var x=new l.BH;return v=this._unwrappedValue(v),(0,C.$K)(v)?(this._loadSingle(this._valueGetterExpr(),v).done(function(b){this._isValueEquals(this._valueGetter(b),v)?x.resolve(b):x.reject()}.bind(this)).fail(function(){x.reject()}),this._loadValueDeferred=x,x.promise()):x.reject().promise()},_rejectValueLoading:function(){var v;null===(v=this._loadValueDeferred)||void 0===v||v.reject({shouldSkipCallback:!0})},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(v){var x;return(v=null!==(x=v)&&void 0!==x?x:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(v=this._getItemKey(v)),o.Z.unwrap(v)},_getItemKey:function(v){var x=this._dataSource.key();if(Array.isArray(x)){for(var b={},y=0,E=x.length;y<E;y++)b[x[y]]=v[x[y]];return b}return x&&"object"==typeof v&&(v=v[x]),v},_isValueEquals:function(v,x){var b=this._dataSource&&this._dataSource.key(),y=this._compareValues(v,x);return!y&&b&&(0,C.$K)(v)&&(0,C.$K)(x)&&(y=Array.isArray(b)?this._compareByCompositeKey(v,x,b):this._compareByKey(v,x,b)),y},_compareByCompositeKey:function(v,x,b){var y=C.Kn;if(!y(v)||!y(x))return!1;for(var E=0,S=b.length;E<S;E++)if(v[b[E]]!==x[b[E]])return!1;return!0},_compareByKey:function(v,x,b){var y=o.Z.unwrap,E=(0,I.IS)(y(v[b]),v),S=(0,I.IS)(y(x[b]),x);return this._compareValues(E,S)},_compareValues:function(v,x){return(0,c.Ex)(v,!0)===(0,c.Ex)(x,!0)},_initDynamicTemplates:I.ZT,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var v=this.option("valueExpr");return(0,C.HD)(v)&&"this"!==v||(0,C.mf)(v)?v:null},_dataExpressionOptionChanged:function(v){switch(v.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}})},4471:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>mt});var o=u(1805),c=u(9904),I=u(6492),C=u(4514),g=u(913),a=u(8506),p=u(5365),s=u(1828),l=u(2718),d=u(5873),h=u(4270),v=u(9800),x=u(1031),b=u(219),y=u(4026),E=u(2941),S=u(8225),O=u(227),w=u(9009),T=u(2722),k=u(9897),R=(0,C.Jj)(),z="dx-fileuploader-dragover",q="dx-fileuploader-file-container",oe="dx-fileuploader-file-name",fe="dx-fileuploader-file-size",Te="dx-fileuploader-button",Be="dx-fileuploader-button-container",ae="dx-fileuploader-upload-button",le=()=>!!R.FormData;class pe extends x.Z{_supportedKeys(){var Le=gt=>{gt.preventDefault();var tn=this._selectButton.$element();g.Z.trigger(tn,O.u)};return(0,d.l)(super._supportedKeys(),{space:Le,enter:Le})}_setOptionsByReference(){super._setOptionsByReference(),(0,d.l)(this._optionsByReference,{value:!0})}_getDefaultOptions(){return(0,d.l)(super._getDefaultOptions(),{chunkSize:0,value:[],selectButtonText:w.Z.format("dxFileUploader-selectFile"),uploadButtonText:w.Z.format("dxFileUploader-upload"),labelText:w.Z.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,dialogTrigger:void 0,dropZone:void 0,readyToUploadMessage:w.Z.format("dxFileUploader-readyToUpload"),uploadedMessage:w.Z.format("dxFileUploader-uploaded"),uploadFailedMessage:w.Z.format("dxFileUploader-uploadFailedMessage"),uploadAbortedMessage:w.Z.format("dxFileUploader-uploadAbortedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},uploadCustomData:{},onBeforeSend:null,onUploadStarted:null,onUploaded:null,onFilesUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,onDropZoneEnter:null,onDropZoneLeave:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:w.Z.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:w.Z.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:w.Z.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},hoverStateEnabled:!0,useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>"desktop"===E.Z.real().deviceType&&!E.Z.isSimulator(),options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:()=>"desktop"!==E.Z.real().deviceType,options:{useDragOver:!1}},{device:()=>!le(),options:{uploadMode:"useForm"}},{device:()=>"desktop"!==E.Z.real().deviceType,options:{nativeDropSupported:!1}},{device:()=>(0,T.x2)(),options:{_uploadButtonType:"default"}}])}_initOptions(Le){var gt="labelText"in Le;super._initOptions(Le),!gt&&!this._shouldDragOverBeRendered()&&this.option("labelText","")}_init(){super._init(),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createBeforeSendAction(),this._createUploadStartedAction(),this._createUploadedAction(),this._createFilesUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction(),this._createDropZoneEnterAction(),this._createDropZoneLeaveAction()}_setUploadStrategy(){var Le=null;if(this.option("chunkSize")>0){var gt=this.option("uploadChunk");Le=gt&&(0,s.mf)(gt)?new ue(this):new ie(this)}else{var tn=this.option("uploadFile");Le=tn&&(0,s.mf)(tn)?new Ne(this):new Ae(this)}this._uploadStrategy=Le}_initFileInput(){this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=(0,c.Z)("<input>").attr("type","file"),g.Z.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),g.Z.on(this._$fileInput,"click",Le=>(Le.stopPropagation(),this._resetInputValue(),this.option("useNativeInputClick")||this._isCustomClickEvent))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})}_inputChangeHandler(){if(!this._doPreventInputChange){var Le=this._$fileInput.val().replace(/^.*\\/,""),gt=this._$fileInput.prop("files");if(!gt||gt.length||"useForm"===this.option("uploadMode")){var tn=gt?this._getFiles(gt):[{name:Le}];this._changeValue(tn),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}_shouldFileListBeExtended(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}_changeValue(Le){var gt=this._shouldFileListBeExtended()?this.option("value").slice():[];this.option("value",gt.concat(Le))}_getFiles(Le){var gt=[];return(0,l.S6)(Le,(tn,Pe)=>gt.push(Pe)),gt}_getFile(Le){var gt=(0,s.kE)(Le)?this.option("value")[Le]:Le;return this._files.filter(tn=>tn.value===gt)[0]}_initLabel(){this._$inputLabel||(this._$inputLabel=(0,c.Z)("<div>")),this._updateInputLabelText()}_updateInputLabelText(){var Le=this._isInteractionDisabled()?"":this.option("labelText");this._$inputLabel.text(Le)}_focusTarget(){return this.$element().find("."+Te)}_getSubmitElement(){return this._$fileInput}_initMarkup(){super._initMarkup(),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0,this._activeDropZone=null}_render(){this._preventRecreatingFiles=!1,this._attachDragEventHandlers(this._$inputWrapper),this._attachDragEventHandlers(this.option("dropZone")),this._renderFiles(),super._render()}_createFileProgressBar(Le){Le.progressBar=this._createProgressBar(Le.value.size),Le.progressBar.$element().appendTo(Le.$file),this._initStatusMessage(Le),this._ensureCancelButtonInitialized(Le)}_setStatusMessage(Le,gt){setTimeout(()=>{this.option("showFileList")&&Le.$statusMessage&&(Le.$statusMessage.text(gt),Le.$statusMessage.css("display",""),Le.progressBar.$element().remove())},400)}_getUploadAbortedStatusMessage(){return"instantly"===this.option("uploadMode")?this.option("uploadAbortedMessage"):this.option("readyToUploadMessage")}_createFiles(){var Le=this.option("value");this._files&&(0===Le.length||!this._shouldFileListBeExtended())&&(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,l.S6)(Le.slice(this._files.length),(gt,tn)=>{var Pe=this._createFile(tn);this._validateFile(Pe),this._files.push(Pe)})}_preventFilesUploading(Le){Le.forEach(gt=>this._uploadStrategy.abortUpload(gt))}_validateFile(Le){Le.isValidFileExtension=this._validateFileExtension(Le),Le.isValidMinSize=this._validateMinFileSize(Le),Le.isValidMaxSize=this._validateMaxFileSize(Le)}_validateFileExtension(Le){var gt=this.option("allowedFileExtensions"),tn=this.option("accept"),Pe=this._getAllowedFileTypes(tn),$e=Le.value.name.substring(Le.value.name.lastIndexOf(".")).toLowerCase();if(0!==tn.length&&!this._isFileTypeAllowed(Le.value,Pe))return!1;if(0===gt.length)return!0;for(var ge=0;ge<gt.length;ge++)if($e===gt[ge].toLowerCase())return!0;return!1}_validateMaxFileSize(Le){var gt=Le.value.size,tn=this.option("maxFileSize");return!(tn>0)||gt<=tn}_validateMinFileSize(Le){var gt=Le.value.size,tn=this.option("minFileSize");return!(tn>0)||gt>=tn}_createBeforeSendAction(){this._beforeSendAction=this._createActionByOption("onBeforeSend",{excludeValidators:["readOnly"]})}_createUploadStartedAction(){this._uploadStartedAction=this._createActionByOption("onUploadStarted",{excludeValidators:["readOnly"]})}_createUploadedAction(){this._uploadedAction=this._createActionByOption("onUploaded",{excludeValidators:["readOnly"]})}_createFilesUploadedAction(){this._filesUploadedAction=this._createActionByOption("onFilesUploaded",{excludeValidators:["readOnly"]})}_createProgressAction(){this._progressAction=this._createActionByOption("onProgress",{excludeValidators:["readOnly"]})}_createUploadAbortedAction(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted",{excludeValidators:["readOnly"]})}_createUploadErrorAction(){this._uploadErrorAction=this._createActionByOption("onUploadError",{excludeValidators:["readOnly"]})}_createDropZoneEnterAction(){this._dropZoneEnterAction=this._createActionByOption("onDropZoneEnter")}_createDropZoneLeaveAction(){this._dropZoneLeaveAction=this._createActionByOption("onDropZoneLeave")}_createFile(Le){return{value:Le,loadedSize:0,onProgress:(0,p.Z)(),onAbort:(0,p.Z)(),onLoad:(0,p.Z)(),onError:(0,p.Z)(),onLoadStart:(0,p.Z)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize},isInitialized:!1}}_resetFileState(Le){Le.isAborted=!1,Le.uploadStarted=!1,Le.isStartLoad=!1,Le.loadedSize=0,Le.chunksData=void 0,Le.request=void 0}_renderFiles(){var Le,gt=this.option("value");this._$filesContainer?(!this._shouldFileListBeExtended()||0===gt.length)&&this._$filesContainer.empty():this._$filesContainer=(0,c.Z)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var tn=this.option("showFileList");tn&&(0,l.S6)(this._files,(Pe,$e)=>{$e.$file||this._renderFile($e)}),this.$element().toggleClass("dx-fileuploader-show-file-list",tn),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),null===(Le=this._validationMessage)||void 0===Le||Le.repaint()}_renderFile(Le){var gt=Le.value,tn=(0,c.Z)("<div>").addClass(q).appendTo(this._$filesContainer);this._renderFileButtons(Le,tn),Le.$file=(0,c.Z)("<div>").addClass("dx-fileuploader-file").appendTo(tn);var Pe=(0,c.Z)("<div>").addClass("dx-fileuploader-file-info").appendTo(Le.$file);Le.$statusMessage=(0,c.Z)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(Le.$file),(0,c.Z)("<div>").addClass(oe).text(gt.name).appendTo(Pe),(0,s.$K)(gt.size)&&(0,c.Z)("<div>").addClass(fe).text(this._getFileSize(gt.size)).appendTo(Pe),Le.isValid()?Le.$statusMessage.text(this.option("readyToUploadMessage")):(Le.isValidFileExtension||Le.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),Le.isValidMaxSize||Le.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),Le.isValidMinSize||Le.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),tn.addClass("dx-fileuploader-invalid"))}_createValidationElement(Le){return(0,c.Z)("<span>").text(this.option(Le))}_updateFileNameMaxWidth(){var Le=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,gt="useButtons"===this.option("uploadMode")?1:0,tn=(0,o.dz)(this._$filesContainer.find("."+q).first())||(0,o.dz)(this._$filesContainer),Pe=this._$filesContainer.find("."+Be).eq(0),$e=(0,o.dz)(Pe)*(Le+gt),ge=this._$filesContainer.find("."+fe).eq(0),Ce=ge.text();ge.text("1000 Mb");var De=(0,o.dz)(ge);ge.text(Ce),this._$filesContainer.find("."+oe).css("maxWidth",tn-$e-De)}_renderFileButtons(Le,gt){var tn=this._getCancelButton(Le);tn&&gt.append(tn);var Pe=this._getUploadButton(Le);Pe&&gt.append(Pe)}_getCancelButton(Le){return"useForm"===this.option("uploadMode")?null:(Le.cancelButton=this._createComponent((0,c.Z)("<div>").addClass(Te+" dx-fileuploader-cancel-button"),b.Z,{onClick:()=>this._removeFile(Le),icon:"close",visible:this.option("allowCanceling"),disabled:this.option("readOnly"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")}),(0,c.Z)("<div>").addClass(Be).append(Le.cancelButton.$element()))}_getUploadButton(Le){return Le.isValid()&&"useButtons"===this.option("uploadMode")?(Le.uploadButton=this._createComponent((0,c.Z)("<div>").addClass(Te+" "+ae),b.Z,{onClick:()=>this._uploadFile(Le),icon:"upload",hoverStateEnabled:this.option("hoverStateEnabled")}),Le.onLoadStart.add(()=>Le.uploadButton.option({visible:!1,disabled:!0})),Le.onAbort.add(()=>Le.uploadButton.option({visible:!0,disabled:!1})),(0,c.Z)("<div>").addClass(Be).append(Le.uploadButton.$element())):null}_removeFile(Le){var gt;null===(gt=Le.$file)||void 0===gt||gt.parent().remove(),this._files.splice(this._files.indexOf(Le),1);var tn=this.option("value").slice();tn.splice(tn.indexOf(Le.value),1),this._preventRecreatingFiles=!0,this.option("value",tn),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._resetInputValue(!0)}removeFile(Le){if("useForm"!==this.option("uploadMode")&&(0,s.$K)(Le)){var gt=this._getFile(Le);gt&&(gt.uploadStarted&&this._preventFilesUploading([gt]),this._removeFile(gt))}}_toggleFileUploaderEmptyClassName(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}_hasInvalidFile(Le){for(var gt=0;gt<Le.length;gt++)if(!Le[gt].isValid())return!0;return!1}_getFileSize(Le){for(var gt=0,tn=[w.Z.format("dxFileUploader-bytes"),w.Z.format("dxFileUploader-kb"),w.Z.format("dxFileUploader-Mb"),w.Z.format("dxFileUploader-Gb")],Pe=tn.length-1;gt<Pe&&Le>=1024;)Le/=1024,gt++;return Math.round(Le)+" "+tn[gt]}_renderSelectButton(){var Le=(0,c.Z)("<div>").addClass(Te).appendTo(this._$inputWrapper);this._selectButton=this._createComponent(Le,b.Z,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{},disabled:this.option("readOnly"),hoverStateEnabled:this.option("hoverStateEnabled")}),this._selectFileDialogHandler=this._selectButtonClickHandler.bind(this),"desktop"===E.Z.real().deviceType?this._selectButton.option("onClick",this._selectFileDialogHandler):this._attachSelectFileDialogHandler(this._selectButton.$element()),this._attachSelectFileDialogHandler(this.option("dialogTrigger"))}_selectButtonClickHandler(){if(!this.option("useNativeInputClick")){if(this._isInteractionDisabled())return!1;this._isCustomClickEvent=!0,g.Z.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}_attachSelectFileDialogHandler(Le){(0,s.$K)(Le)&&(this._detachSelectFileDialogHandler(Le),g.Z.on((0,c.Z)(Le),"click",this._selectFileDialogHandler))}_detachSelectFileDialogHandler(Le){(0,s.$K)(Le)&&g.Z.off((0,c.Z)(Le),"click",this._selectFileDialogHandler)}_renderUploadButton(){if("useButtons"===this.option("uploadMode")){var Le=(0,c.Z)("<div>").addClass(Te).addClass(ae).appendTo(this._$content);this._uploadButton=this._createComponent(Le,b.Z,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{},hoverStateEnabled:this.option("hoverStateEnabled")})}}_uploadButtonClickHandler(){this._uploadFiles()}_shouldDragOverBeRendered(){return!this.option("readOnly")&&("useForm"!==this.option("uploadMode")||this.option("nativeDropSupported"))}_isInteractionDisabled(){return this.option("readOnly")||this.option("disabled")}_renderInputContainer(){this._$inputContainer=(0,c.Z)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var Le="dx-fileuploader-input-label-".concat(new I.Z);this._$inputLabel.attr("id",Le).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",Le,this._$fileInput)}_renderInput(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))}_selectButtonInputTemplate(Le,gt){var tn=(0,c.Z)(gt),Pe=(0,c.Z)("<span>").addClass("dx-button-text").text(Le.text);return tn.append(Pe).append(this._$fileInput),tn}_renderInputWrapper(){this._$inputWrapper=(0,c.Z)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}_detachDragEventHandlers(Le){(0,s.$K)(Le)&&g.Z.off((0,c.Z)(Le),(0,S.V4)("",this.NAME))}_attachDragEventHandlers(Le){var gt=Le!==this._$inputWrapper;!(0,s.$K)(Le)||!this._shouldDragOverBeRendered()||(this._detachDragEventHandlers(Le),Le=(0,c.Z)(Le),g.Z.on(Le,(0,S.V4)("dragenter",this.NAME),this._dragEnterHandler.bind(this,gt)),g.Z.on(Le,(0,S.V4)("dragover",this.NAME),this._dragOverHandler.bind(this,gt)),g.Z.on(Le,(0,S.V4)("dragleave",this.NAME),this._dragLeaveHandler.bind(this,gt)),g.Z.on(Le,(0,S.V4)("drop",this.NAME),this._dropHandler.bind(this,gt)))}_applyInputAttributes(Le){this._$fileInput.attr(Le)}_useInputForDrop(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}_getDropZoneElement(Le,gt){var tn=Le?Array.from((0,c.Z)(this.option("dropZone"))):[this._$inputWrapper];return(tn=tn.map(Pe=>(0,c.Z)(Pe).get(0)))[tn.indexOf(gt.currentTarget)]}_dragEnterHandler(Le,gt){if(this.option("disabled"))return!1;this._useInputForDrop()||gt.preventDefault();var tn=this._getDropZoneElement(Le,gt);(0,s.$K)(tn)&&null===this._activeDropZone&&this.isMouseOverElement(gt,tn,!1)&&(this._activeDropZone=tn,this._tryToggleDropZoneActive(!0,Le,gt))}_dragOverHandler(Le,gt){if(this._useInputForDrop()||gt.preventDefault(),gt.originalEvent.dataTransfer.dropEffect="copy",!Le){var tn=this._getDropZoneElement(!1,gt);null===this._activeDropZone&&this.isMouseOverElement(gt,tn,!1)&&this._dragEnterHandler(!1,gt),null!==this._activeDropZone&&this._shouldRaiseDragLeave(gt,!1)&&this._dragLeaveHandler(!1,gt)}}_dragLeaveHandler(Le,gt){this._useInputForDrop()||gt.preventDefault(),null!==this._activeDropZone&&this._shouldRaiseDragLeave(gt,Le)&&(this._tryToggleDropZoneActive(!1,Le,gt),this._activeDropZone=null)}_shouldRaiseDragLeave(Le,gt){return!this.isMouseOverElement(Le,this._activeDropZone,!gt)}_tryToggleDropZoneActive(Le,gt,tn){var Pe=Le?"addClass":"removeClass";this[Le?"_dropZoneEnterAction":"_dropZoneLeaveAction"]({event:tn,dropZoneElement:this._activeDropZone}),gt||this.$element()[Pe](z)}_dropHandler(Le,gt){if(this._activeDropZone=null,Le||this.$element().removeClass(z),!(this._useInputForDrop()||Le&&this._isInteractionDisabled())){gt.preventDefault();var Pe=this._getFiles(gt.originalEvent.dataTransfer.files);!this.option("multiple")&&Pe.length>1||(this._changeValue(Pe),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}_areAllFilesLoaded(){return this._files.every(Le=>!Le.isValid()||Le._isError||Le._isLoaded||Le.isAborted)}_handleAllFilesUploaded(){this._recalculateProgress(),this._areAllFilesLoaded()&&this._filesUploadedAction()}_getAllowedFileTypes(Le){return Le.length?Le.split(",").map(gt=>gt.trim()):[]}_isFileTypeAllowed(Le,gt){for(var tn=0,Pe=gt.length;tn<Pe;tn++){var $e=gt[tn];if("."===$e[0]){if($e=$e.replace(".","\\."),Le.name.match(new RegExp($e+"$","i")))return!0}else if($e=$e.replace(new RegExp("\\*","g"),""),Le.type.match(new RegExp($e,"i")))return!0}return!1}_renderWrapper(){var Le=(0,c.Z)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),gt=(0,c.Z)("<div>").addClass("dx-fileuploader-container").appendTo(Le);this._$content=(0,c.Z)("<div>").addClass("dx-fileuploader-content").appendTo(gt)}_clean(){this._$fileInput.detach(),delete this._$filesContainer,this._detachSelectFileDialogHandler(this.option("dialogTrigger")),this._detachDragEventHandlers(this.option("dropZone")),this._files&&this._files.forEach(Le=>{Le.$file=null,Le.$statusMessage=null}),super._clean()}abortUpload(Le){if("useForm"!==this.option("uploadMode"))if((0,s.$K)(Le)){var gt=this._getFile(Le);gt&&this._preventFilesUploading([gt])}else this._preventFilesUploading(this._files)}upload(Le){if("useForm"!==this.option("uploadMode"))if((0,s.$K)(Le)){var gt=this._getFile(Le);gt&&le()&&this._uploadFile(gt)}else this._uploadFiles()}_uploadFiles(){le()&&(0,l.S6)(this._files,(Le,gt)=>this._uploadFile(gt))}_uploadFile(Le){this._uploadStrategy.upload(Le)}_updateProgressBar(Le,gt){Le.progressBar&&Le.progressBar.option({value:gt.loaded,showStatus:!0}),this._progressAction({file:Le.value,segmentSize:gt.currentSegmentSize,bytesLoaded:gt.loaded,bytesTotal:gt.total,event:gt.event,request:Le.request})}_updateTotalProgress(Le,gt){var tn=0;(0,s.$K)(Le)&&(this._files.length>0&&this._areAllFilesLoaded()&&0===Le&&0===gt?tn=this._getProgressValue(1):Le&&(tn=this._getProgressValue(gt/Le))),this.option("progress",tn),this._setLoadedSize(gt)}_getProgressValue(Le){return Math.floor(100*Le)}_initStatusMessage(Le){Le.$statusMessage.css("display","none")}_ensureCancelButtonInitialized(Le){if(!Le.isInitialized){Le.cancelButton.option("onClick",()=>{this._preventFilesUploading([Le]),this._removeFile(Le)});var gt=()=>{setTimeout(()=>{Le.cancelButton.option({visible:!1})},400)};Le.onLoad.add(gt),Le.onError.add(gt)}}_createProgressBar(Le){return this._createComponent((0,c.Z)("<div>"),y.Z,{value:void 0,min:0,max:Le,statusFormat:gt=>this._getProgressValue(gt)+"%",showStatus:!1,statusPosition:"right"})}_getTotalFilesSize(){return this._totalFilesSize||(this._totalFilesSize=0,(0,l.S6)(this._files,(Le,gt)=>{this._totalFilesSize+=gt.value.size})),this._totalFilesSize}_getTotalLoadedFilesSize(){return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,l.S6)(this._files,(Le,gt)=>{this._totalLoadedFilesSize+=gt.loadedSize})),this._totalLoadedFilesSize}_setLoadedSize(Le){this._totalLoadedFilesSize=Le}_recalculateProgress(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}isMouseOverElement(Le,gt,tn){if(!gt)return!1;var Pe=tn?parseFloat(R.getComputedStyle(gt,":before").height):0,$e=tn?parseFloat(R.getComputedStyle(gt,":after").height):0,ge=(0,o.os)(gt).left,Ce=(0,o.os)(gt).top+Pe,De=gt.offsetWidth,Ye=gt.offsetHeight-Pe-$e,bt=this._getEventX(Le),yt=this._getEventY(Le);return bt>=ge&&bt<ge+De&&yt>=Ce&&yt<Ce+Ye}_getEventX(Le){return(0,S.z6)(Le)?this._getTouchEventX(Le):Le.clientX+this._getDocumentScrollLeft()}_getEventY(Le){return(0,S.z6)(Le)?this._getTouchEventY(Le):Le.clientY+this._getDocumentScrollTop()}_getTouchEventX(Le){var gt=null;return Le.changedTouches.length>0?gt=Le.changedTouches:Le.targetTouches.length>0&&(gt=Le.targetTouches),gt?gt[0].pageX:0}_getTouchEventY(Le){var gt=null;return Le.changedTouches.length>0?gt=Le.changedTouches:Le.targetTouches.length>0&&(gt=Le.targetTouches),gt?gt[0].pageY:0}_getDocumentScrollTop(){var Le=k.Z.getDocument();return Le.documentElement.scrollTop||Le.body.scrollTop}_getDocumentScrollLeft(){var Le=k.Z.getDocument();return Le.documentElement.scrollLeft||Le.body.scrollLeft}_updateReadOnlyState(){var Le=this.option("readOnly");this._selectButton.option("disabled",Le),this._files.forEach(gt=>{var tn;return null===(tn=gt.cancelButton)||void 0===tn?void 0:tn.option("disabled",Le)}),this._updateInputLabelText(),this._attachDragEventHandlers(this._$inputWrapper)}_updateHoverState(){var Le,gt,tn=this.option("hoverStateEnabled");null===(Le=this._selectButton)||void 0===Le||Le.option("hoverStateEnabled",tn),null===(gt=this._uploadButton)||void 0===gt||gt.option("hoverStateEnabled",tn),this._files.forEach(Pe=>{var $e,ge;null===($e=Pe.uploadButton)||void 0===$e||$e.option("hoverStateEnabled",tn),null===(ge=Pe.cancelButton)||void 0===ge||ge.option("hoverStateEnabled",tn)})}_optionChanged(Le){var{name:gt,value:tn,previousValue:Pe}=Le;switch(gt){case"height":case"width":this._updateFileNameMaxWidth(),super._optionChanged(Le);break;case"value":!tn.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),super._optionChanged(Le);break;case"name":this._initFileInput(),super._optionChanged(Le);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),Le.value||this.reset();break;case"readOnly":this._updateReadOnlyState(),super._optionChanged(Le);break;case"disabled":this._updateInputLabelText(),super._optionChanged(Le);break;case"selectButtonText":this._selectButton.option("text",tn);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",tn);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",tn);break;case"dialogTrigger":this._detachSelectFileDialogHandler(Pe),this._attachSelectFileDialogHandler(tn);break;case"dropZone":this._detachDragEventHandlers(Pe),this._attachDragEventHandlers(tn);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":case"uploadAbortedMessage":case"nativeDropSupported":this._invalidate();break;case"labelText":this._updateInputLabelText();break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"uploadCustomData":case"extendSelection":break;case"hoverStateEnabled":this._updateHoverState(),super._optionChanged(Le);break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onBeforeSend":this._createBeforeSendAction();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onFilesUploaded":this._createFilesUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"onDropZoneEnter":this._createDropZoneEnterAction();break;case"onDropZoneLeave":this._createDropZoneLeaveAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._attachDragEventHandlers(this._$inputWrapper);break;case"inputAttr":this._applyInputAttributes(this.option(gt));break;default:super._optionChanged(Le)}}_resetInputValue(Le){"useForm"===this.option("uploadMode")&&!Le||(this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1)}reset(){this.option("value",[])}}class Se{constructor(Le,gt){this.file=Le,this.chunkSize=gt,this.index=0}read(){if(!this.file)return null;var Le=this.createBlobResult(this.file,this.index,this.chunkSize);return Le.isCompleted&&(this.file=null),this.index++,Le}createBlobResult(Le,gt,tn){var Pe=gt*tn;return{blob:this.sliceFile(Le,Pe,tn),index:gt,isCompleted:Pe+tn>=Le.size}}sliceFile(Le,gt,tn){return Le.slice?Le.slice(gt,gt+tn):Le.webkitSlice?Le.webkitSlice(gt,gt+tn):null}}class re{constructor(Le){this.fileUploader=Le}upload(Le){Le.isInitialized&&Le.isAborted&&this.fileUploader._resetFileState(Le),Le.isValid()&&!Le.uploadStarted&&(this._prepareFileBeforeUpload(Le),this._uploadCore(Le))}abortUpload(Le){if(!(Le._isError||Le._isLoaded||Le.isAborted)&&Le.uploadStarted&&(Le.isAborted=!0,Le.request&&Le.request.abort(),this._isCustomCallback("abortUpload"))){var gt=this.fileUploader.option("abortUpload"),tn=this._createUploadArgument(Le),Pe=null;try{var $e=gt(Le.value,tn);Pe=(0,h.p4)($e)}catch(ge){Pe=(new h.BH).reject(ge).promise()}Pe.done(()=>Le.onAbort.fire()).fail(ge=>this._handleFileError(Le,ge))}}_beforeSend(Le,gt){var tn=this._createUploadArgument(gt);this.fileUploader._beforeSendAction({request:Le,file:gt.value,uploadInfo:tn}),gt.request=Le}_createUploadArgument(Le){}_uploadCore(Le){}_isCustomCallback(Le){var gt=this.fileUploader.option(Le);return gt&&(0,s.mf)(gt)}_handleProgress(Le,gt){Le._isError||(Le._isProgressStarted=!0,this._handleProgressCore(Le,gt))}_handleProgressCore(Le,gt){}_handleFileError(Le,gt){Le._isError=!0,Le.onError.fire(gt)}_prepareFileBeforeUpload(Le){var gt;Le.$file&&(null===(gt=Le.progressBar)||void 0===gt||gt.dispose(),this.fileUploader._createFileProgressBar(Le)),Le.isInitialized||(Le.onLoadStart.add(this._onUploadStarted.bind(this,Le)),Le.onLoad.add(this._onLoadedHandler.bind(this,Le)),Le.onError.add(this._onErrorHandler.bind(this,Le)),Le.onAbort.add(this._onAbortHandler.bind(this,Le)),Le.onProgress.add(this._onProgressHandler.bind(this,Le)),Le.isInitialized=!0)}_shouldHandleError(Le,gt){return(this._isStatusError(gt.status)||!Le._isProgressStarted)&&!Le.isAborted}_isStatusError(Le){return 400<=Le&&Le<500||500<=Le&&Le<600}_onUploadStarted(Le,gt){Le.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:Le.value,event:gt,request:Le.request})}_onAbortHandler(Le,gt){var tn={file:Le.value,event:gt,request:Le.request,message:this.fileUploader._getUploadAbortedStatusMessage()};this.fileUploader._uploadAbortedAction(tn),this.fileUploader._setStatusMessage(Le,tn.message),this.fileUploader._handleAllFilesUploaded()}_onErrorHandler(Le,gt){var tn={file:Le.value,event:void 0,request:Le.request,error:gt,message:this.fileUploader.option("uploadFailedMessage")};this.fileUploader._uploadErrorAction(tn),this.fileUploader._setStatusMessage(Le,tn.message),this.fileUploader._handleAllFilesUploaded()}_onLoadedHandler(Le,gt){var tn={file:Le.value,event:gt,request:Le.request,message:this.fileUploader.option("uploadedMessage")};Le._isLoaded=!0,this.fileUploader._uploadedAction(tn),this.fileUploader._setStatusMessage(Le,tn.message),this.fileUploader._handleAllFilesUploaded()}_onProgressHandler(Le,gt){if(Le){var tn=this.fileUploader._getTotalFilesSize(),Pe=this.fileUploader._getTotalLoadedFilesSize(),$e=Math.min(gt.loaded,Le.value.size),ge=$e-Le.loadedSize;Le.loadedSize=$e,this.fileUploader._updateTotalProgress(tn,Pe+ge),this.fileUploader._updateProgressBar(Le,this._getLoadedData($e,gt.total,ge,gt))}}_getLoadedData(Le,gt,tn,Pe){return{loaded:Le,total:gt,currentSegmentSize:tn}}_extendFormData(Le){var gt=this.fileUploader.option("uploadCustomData");for(var tn in gt)Object.prototype.hasOwnProperty.call(gt,tn)&&(0,s.$K)(gt[tn])&&Le.append(tn,gt[tn])}}class te extends re{constructor(Le){super(Le),this.chunkSize=this.fileUploader.option("chunkSize")}_uploadCore(Le){var gt=Le.value,tn={name:gt.name,loadedBytes:0,type:gt.type,blobReader:new Se(gt,this.chunkSize),guid:new I.Z,fileSize:gt.size,count:this._getFileChunksCount(gt),customData:{}};Le.chunksData=tn,this._sendChunk(Le,tn)}_getFileChunksCount(Le){return 0===Le.size?1:Math.ceil(Le.size/this.chunkSize)}_sendChunk(Le,gt){var tn=gt.blobReader.read();gt.currentChunk=tn,tn&&this._sendChunkCore(Le,gt,tn).done(()=>{Le.isAborted||(gt.loadedBytes+=tn.blob.size,Le.onProgress.fire({loaded:gt.loadedBytes,total:Le.value.size}),tn.isCompleted&&Le.onLoad.fire(),setTimeout(()=>this._sendChunk(Le,gt)))}).fail(Pe=>{this._shouldHandleError(Le,Pe)&&this._handleFileError(Le,Pe)})}_sendChunkCore(Le,gt,tn){}_tryRaiseStartLoad(Le){Le.isStartLoad||(Le.isStartLoad=!0,Le.onLoadStart.fire())}_getEvent(Le){return null}_createUploadArgument(Le){return this._createChunksInfo(Le.chunksData)}_createChunksInfo(Le){return{bytesUploaded:Le.loadedBytes,chunkCount:Le.count,customData:Le.customData,chunkBlob:Le.currentChunk.blob,chunkIndex:Le.currentChunk.index}}}class ie extends te{_sendChunkCore(Le,gt,tn){return v.Z.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:Pe=>this._beforeSend(Pe,Le),upload:{onprogress:Pe=>this._handleProgress(Le,Pe),onloadstart:()=>this._tryRaiseStartLoad(Le),onabort:()=>Le.onAbort.fire()},data:this._createFormData({fileName:gt.name,blobName:this.fileUploader.option("name"),blob:tn.blob,index:tn.index,count:gt.count,type:gt.type,guid:gt.guid,size:gt.fileSize})})}_createFormData(Le){var gt=new R.FormData;return gt.append(Le.blobName,Le.blob),gt.append("chunkMetadata",JSON.stringify({FileName:Le.fileName,Index:Le.index,TotalCount:Le.count,FileSize:Le.size,FileType:Le.type,FileGuid:Le.guid})),this._extendFormData(gt),gt}}class ue extends te{_sendChunkCore(Le,gt){this._tryRaiseStartLoad(Le);var tn=this._createChunksInfo(gt),Pe=this.fileUploader.option("uploadChunk");try{var $e=Pe(Le.value,tn);return(0,h.p4)($e)}catch(ge){return(new h.BH).reject(ge).promise()}}_shouldHandleError(Le,gt){return!0}}class be extends re{_uploadCore(Le){Le.loadedSize=0,this._uploadFile(Le).done(()=>{Le.isAborted||Le.onLoad.fire()}).fail(gt=>{this._shouldHandleError(Le,gt)&&this._handleFileError(Le,gt)})}_uploadFile(Le){}_handleProgressCore(Le,gt){Le.onProgress.fire(gt)}_getLoadedData(Le,gt,tn,Pe){var $e=super._getLoadedData(Le,gt,tn,Pe);return $e.event=Pe,$e}}class Ae extends be{_uploadFile(Le){return v.Z.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:gt=>this._beforeSend(gt,Le),upload:{onprogress:gt=>this._handleProgress(Le,gt),onloadstart:()=>Le.onLoadStart.fire(),onabort:()=>Le.onAbort.fire()},data:this._createFormData(this.fileUploader.option("name"),Le.value)})}_createFormData(Le,gt){var tn=new R.FormData;return tn.append(Le,gt,gt.name),this._extendFormData(tn),tn}}class Ne extends be{_uploadFile(Le){Le.onLoadStart.fire();var gt=this.fileUploader.option("uploadFile");try{var tn=gt(Le.value,Pe=>{this._handleProgress(Le,{loaded:Pe,total:Le.value.size})});return(0,h.p4)(tn)}catch(Pe){return(new h.BH).reject(Pe).promise()}}_shouldHandleError(Le,gt){return!0}}(0,a.Z)("dxFileUploader",pe);const mt=pe},4554:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ce});var o=u(9904),c=u(9897),I=u(5031),C=u(913),g=u(6853),a=u(8506),p=u(5873),s=u(9009),l=u(4270),d=u(1828),h=u(7463),v=u(8531),x=u(7320),b=u(5946),y=u(8225),E=u(8507),S="dx-filterbuilder",O=S+"-group",w=O+"-item",T=O+"-content",k=O+"-operations",R=O+"-operation",P=S+"-action",B=P+"-icon",V=S+"-text",U=S+"-item-field",K=S+"-item-operation",Y=S+"-item-value",J=S+"-item-value-text",j=S+"-overlay",ee=S+"-operations",G=S+"-fields",q=S+"-add-condition",Z="dx-state-active",X=S+"-menu-custom-operation",M="filterBuilder",Te="enter",ze=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],ae={and:"and",or:"or",notAnd:"!and",notOr:"!or"},_e=I.Z.inherit(b.Z),ye=g.Z.inherit({_getDefaultOptions:function(){return(0,p.l)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:s.Z.format("dxFilterBuilder-and"),or:s.Z.format("dxFilterBuilder-or"),notAnd:s.Z.format("dxFilterBuilder-notAnd"),notOr:s.Z.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:s.Z.format("dxFilterBuilder-filterOperationBetween"),equal:s.Z.format("dxFilterBuilder-filterOperationEquals"),notEqual:s.Z.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:s.Z.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:s.Z.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:s.Z.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:s.Z.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:s.Z.format("dxFilterBuilder-filterOperationStartsWith"),contains:s.Z.format("dxFilterBuilder-filterOperationContains"),notContains:s.Z.format("dxFilterBuilder-filterOperationNotContains"),endsWith:s.Z.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:s.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:s.Z.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(le){switch(le.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(le.value!==le.previousValue){var pe=this._disableInvalidateForValue;pe||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:le.value,previousValue:le.previousValue}),this._disableInvalidateForValue=pe}break;default:this.callBase(le)}},getFilterExpression:function(){var le=this._getNormalizedFields(),pe=(0,p.l)(!0,[],this._model);return(0,E._z)((0,E.Ih)(pe),le,this._customOperations,M)},_getNormalizedFields:function(){return(0,E.gF)(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var le=(0,p.l)(!0,[],this._model),pe=(0,E.Ih)(le),Se=(0,E.Ih)(this._getModel(this.option("value")));JSON.stringify(Se)!==JSON.stringify(pe)&&this.option("value",pe),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new _e},_initCustomOperations:function(){this._customOperations=(0,E.vd)(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getDefaultGroupOperation:function(){var le,pe;return null!==(le=null===(pe=this.option("groupOperations"))||void 0===pe?void 0:pe[0])&&void 0!==le?le:ae.and},_getModel:function(le){return(0,E.L6)(le,this._customOperations,this._getDefaultGroupOperation())},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var le=this;le._actions={},ze.forEach(function(pe){var Se=(0,p.l)({},pe.config);le._actions[pe.name]=le._createActionByOption(pe.name,Se)})},executeAction:function(le,pe){var Se=this._actions[le];return Se&&Se(pe)},_initMarkup:function(){this.$element().addClass(S),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(le,pe){return(0,o.Z)("<div>").addClass(O).append(this._createConditionItem(le,pe))},_createGroupElementByCriteria:function(le,pe){for(var Se=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,re=this._createGroupElement(le,pe,Se),te=re.find("."+T),ie=(0,E.As)(le),ue=0;ue<ie.length;ue++){var be=ie[ue];(0,E.ty)(be)?this._createGroupElementByCriteria(be,le,Se+1).appendTo(te):(0,E.T5)(be)&&this._createConditionElement(be,le).appendTo(te)}return re},_createGroupElement:function(le,pe,Se){var re=(0,o.Z)("<div>").addClass(w),te=(0,o.Z)("<div>").addClass(T),ie=(0,o.Z)("<div>").addClass(O).append(re).append(te);return null!=pe&&this._createRemoveButton(()=>{(0,E.cl)(pe,le),ie.remove(),this._updateFilter()}).appendTo(re),this._createGroupOperationButton(le).appendTo(re),this._createAddButton(()=>{var ue=(0,E.zy)(this._getDefaultGroupOperation());(0,E.jX)(ue,le),this._createGroupElement(ue,le,Se+1).appendTo(te),this._updateFilter()},()=>{var ue=this.option("fields")[0],be=(0,E.CL)(ue,this._customOperations);(0,E.jX)(be,le),this._createConditionElement(be,le).appendTo(te),this._updateFilter()},Se).appendTo(re),ie},_createButton:function(le){return(0,o.Z)("<div>").text(le)},_createGroupOperationButton:function(le){var pe=this._getGroupOperations(le),Se=(0,E.Nv)(le,pe),re=Se.text,te=pe&&pe.length<2?this._createButton(re).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:re,menu:{items:pe,displayExpr:"text",keyExpr:"value",onItemClick:ie=>{Se!==ie.itemData&&((0,E.Qh)(le,ie.itemData.value),te.text(ie.itemData.text),Se=ie.itemData,this._updateFilter())},onContentReady:function(ie){ie.component.selectItem(Se)},cssClass:k}});return te.addClass(V).addClass(R).attr("tabindex",0)},_createButtonWithMenu:function(le){var ue,pe=this,Se=function(){pe.$element().find("."+Z).removeClass(Z),pe.$element().find(".dx-overlay .dx-treeview").remove(),pe.$element().find(".dx-overlay").remove()},re=this.option("rtlEnabled"),te=re?"right":"left",ie=this._createButton(le.caption);return(0,p.l)(le.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(ue=le.menu.onItemClick,function(be){ue(be),"dxclick"===be.event.type&&Se()}),onHiding:function(be){ie.removeClass(Z)},position:{my:te+" top",at:te+" bottom",offset:"0 1",of:ie,collision:"flip"},animation:null,onHidden:function(){Se()},cssClass:j+" "+le.menu.cssClass,rtlEnabled:re}),le.popup={onShown:function(be){var Ae=(0,o.Z)(be.component.content()).find(".dx-treeview"),Ne=Ae.dxTreeView("instance");C.Z.on(Ae,"keyup keydown",function(mt){var tt=(0,y.EV)(mt);("keydown"===mt.type&&"tab"===tt||"keyup"===mt.type&&("escape"===tt||tt===Te))&&(be.component.hide(),C.Z.trigger(le.menu.position.of,"focus"))}),Ne.focus(),Ne.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(ie,function(){Se(),pe._createPopupWithTreeView(le,pe.$element()),ie.addClass(Z)}),ie},_hasValueButton:function(le){var pe=(0,E.tt)(this._customOperations,le[1]);return pe?!1!==pe.hasValue:null!==le[2]},_createOperationButtonWithMenu:function(le,pe){var Se=this,re=(0,E.eM)(pe,this.option("filterOperationDescriptions"),this._customOperations),te=(0,E.Bn)((0,E.Do)(le),re),ie=this._createButtonWithMenu({caption:te.text,menu:{items:re,displayExpr:"text",onItemRendered:function(ue){ue.itemData.isCustom&&(0,o.Z)(ue.itemElement).addClass(X)},onContentReady:function(ue){ue.component.selectItem(te)},onItemClick:ue=>{if(te!==ue.itemData){(0,E.vc)(le,(te=ue.itemData).value,Se._customOperations);var be=ie.siblings().filter("."+Y);Se._hasValueButton(le)?(0!==be.length&&be.remove(),Se._createValueButton(le,pe).appendTo(ie.parent())):be.remove(),ie.html(te.text),this._updateFilter()}},cssClass:ee}}).addClass(V).addClass(K).attr("tabindex",0);return ie},_createOperationAndValueButtons:function(le,pe,Se){this._createOperationButtonWithMenu(le,pe).appendTo(Se),this._hasValueButton(le)&&this._createValueButton(le,pe).appendTo(Se)},_createFieldButtonWithMenu:function(le,pe,Se){var re=this,te=this.option("allowHierarchicalFields"),ie=(0,E.kk)(le,te),ue=(0,E.rz)(Se.name||Se.dataField,ie),be=function(Ne,mt){return te?(0,E.si)(Ne,mt):Ne.caption},Ae=this._createButtonWithMenu({caption:be(ue,ie),menu:{items:ie,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:Ne=>{if(ue!==Ne.itemData){pe[0]=(ue=Ne.itemData).name||ue.dataField,pe[2]="object"===ue.dataType?null:"",(0,E.vc)(pe,(0,E.Ls)(ue),re._customOperations),Ae.siblings().filter("."+V).remove(),re._createOperationAndValueButtons(pe,ue,Ae.parent());var mt=be(ue,Ne.component.option("items"));Ae.html(mt),this._updateFilter()}},onContentReady:function(Ne){Ne.component.selectItem(ue)},cssClass:G}}).addClass(V).addClass(U).attr("tabindex",0);return Ae},_createConditionItem:function(le,pe){var Se=(0,o.Z)("<div>").addClass(w),re=this._getNormalizedFields(),te=(0,E.rz)(le[0],re);return this._createRemoveButton(()=>{(0,E.cl)(pe,le),1===Se.parent().children().length?Se.parent().remove():Se.remove(),this._updateFilter()}).appendTo(Se),this._createFieldButtonWithMenu(re,le,te).appendTo(Se),this._createOperationAndValueButtons(le,te,Se),Se},_getGroupOperations:function(le){var pe=this.option("groupOperations"),Se=this.option("groupOperationDescriptions");return(!pe||!pe.length)&&(pe=[(0,E.Uc)(le).replace("!","not")]),pe.map(re=>({text:Se[re],value:ae[re]}))},_createRemoveButton:function(le){var pe=(0,o.Z)("<div>").addClass(B).addClass("dx-icon-remove").addClass(P).attr("tabindex",0);return this._subscribeOnClickAndEnterKey(pe,le),pe},_createAddButton:function(le,pe,Se){var re,te=this.option("maxGroupLevel");return(0,d.$K)(te)&&Se>=te?(re=this._createButton(),this._subscribeOnClickAndEnterKey(re,pe)):re=this._createButtonWithMenu({menu:{items:[{caption:s.Z.format("dxFilterBuilder-addCondition"),click:pe},{caption:s.Z.format("dxFilterBuilder-addGroup"),click:le}],displayExpr:"caption",onItemClick:function(ie){ie.itemData.click()},cssClass:q}}),re.addClass(B).addClass("dx-icon-plus").addClass(P).attr("tabindex",0)},_createValueText:function(le,pe,Se){var re=this,te=(0,o.Z)("<div>").html("&nbsp;").addClass(J).attr("tabindex",0).appendTo(Se),ie=le[2],ue=(0,E.tt)(re._customOperations,le[1]);return!ue&&pe.lookup?(0,E.W2)(pe,ie,function(be){(0,E.yg)(te,be)}):(0,l.gx)((0,E.fQ)(pe,ie,ue)).done(be=>{(0,E.yg)(te,be,ue)}),re._subscribeOnClickAndEnterKey(te,function(be){"keyup"===be.type&&be.stopPropagation(),re._createValueEditorWithEvents(le,pe,Se)}),te},_updateConditionValue:function(le,pe,Se){le[2]!==pe&&(le[2]=pe),Se(),this._updateFilter()},_addDocumentKeyUp:function(le,pe){var Se=!1,re=!1,te=c.Z.getDocument(),ie=be=>{Se||re?re=!1:pe(be)};C.Z.on(te,"keyup",ie);var ue=le.find("input");C.Z.on(ue,"compositionstart",()=>{Se=!0}),C.Z.on(ue,"compositionend",()=>{Se=!1,re=!0}),C.Z.on(ue,"keydown",be=>{229!==be.which&&(re=!1)}),this._documentKeyUpHandler=ie},_addDocumentClick:function(le,pe){var Se=c.Z.getDocument(),re=te=>{this._isFocusOnEditorParts(le,te.target)||(C.Z.trigger(le.find("input"),"change"),pe())};C.Z.on(Se,"dxpointerdown",re),this._documentClickHandler=re},_isFocusOnEditorParts:function(le,pe){var Se=pe||c.Z.getActiveElement();return(0,o.Z)(Se).closest(le.children()).length||(0,o.Z)(Se).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var le=c.Z.getDocument();(0,d.$K)(this._documentKeyUpHandler)&&C.Z.off(le,"keyup",this._documentKeyUpHandler),(0,d.$K)(this._documentClickHandler)&&C.Z.off(le,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(le,pe,Se){var re=le[2],te=()=>(Se.empty(),this._removeEvents(),this._createValueText(le,pe,Se)),ie=()=>{this._updateConditionValue(le,re,function(){te()})},ue={value:""===re?null:re,filterOperation:(0,E.Do)(le),setValue:function(Ae){re=null===Ae?"":Ae},closeEditor:ie,text:Se.text()};Se.empty();var be=this._createValueEditor(Se,pe,ue);C.Z.trigger(be.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(be,ie),this._addDocumentKeyUp(be,Ae=>{var Ne=(0,y.EV)(Ae);if("tab"===Ne){if(this._isFocusOnEditorParts(be))return;this._updateConditionValue(le,re,function(){te(),Ae.shiftKey&&C.Z.trigger(Se.prev(),"focus")})}"escape"===Ne&&C.Z.trigger(te(),"focus"),Ne===Te&&this._updateConditionValue(le,re,function(){C.Z.trigger(te(),"focus")})}),this._fireContentReadyAction()},_createValueButton:function(le,pe){var Se=(0,o.Z)("<div>").addClass(V).addClass(Y);return this._createValueText(le,pe,Se),Se},_createValueEditor:function(le,pe,Se){var re=(0,o.Z)("<div>").attr("tabindex",0).appendTo(le),te=(0,E.tt)(this._customOperations,Se.filterOperation),ie=te&&te.editorTemplate?te.editorTemplate:pe.editorTemplate;return ie?this._getTemplate(ie).render({model:(0,p.l)({field:pe},Se),container:re}):this._editorFactory.createEditor.call(this,re,(0,p.l)({},pe,Se,{parentType:M})),re},_createPopupWithTreeView:function(le,pe){var Se=this,re=(0,o.Z)("<div>").addClass(le.menu.cssClass).appendTo(pe);this._createComponent(re,v.Z,{onHiding:le.menu.onHiding,onHidden:le.menu.onHidden,rtlEnabled:le.menu.rtlEnabled,position:le.menu.position,animation:le.menu.animation,contentTemplate:function(te){var ie=(0,o.Z)("<div>").appendTo(te);Se._createComponent(ie,h.Z,le.menu),this.repaint()},_ignoreFunctionValueDeprecation:!0,maxHeight:function(){return(0,x._)(le.menu.position.of)},visible:!0,focusStateEnabled:!1,hideOnParentScroll:this.option("closePopupOnTargetScroll"),hideOnOutsideClick:!0,onShown:le.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1,_wrapperClassExternal:le.menu.cssClass})},_subscribeOnClickAndEnterKey:function(le,pe){C.Z.on(le,"dxclick",pe),C.Z.on(le,"keyup",function(Se){(0,y.EV)(Se)===Te&&pe(Se)})}});(0,a.Z)("dxFilterBuilder",ye);const ce=ye},8507:(Rn,he,u)=>{"use strict";u.d(he,{jX:()=>Ne,L6:()=>Ye,CL:()=>ie,zy:()=>be,Ab:()=>Wn,eM:()=>re,uL:()=>le,si:()=>xn,W2:()=>ut,fQ:()=>Vt,tt:()=>Se,Ls:()=>te,rz:()=>mt,_z:()=>kt,As:()=>oe,Nv:()=>ze,Uc:()=>_e,kk:()=>Lt,BB:()=>ei,vd:()=>Vn,gF:()=>bt,Ih:()=>gn,Bn:()=>pe,Do:()=>li,T5:()=>Le,ty:()=>tt,e4:()=>Hn,cl:()=>ue,yg:()=>Ji,Qh:()=>Be,aR:()=>Mn,vc:()=>Xn});var o=u(9904),c=u(4270),I=u(6051),C=u(1828),g=u(6738),a=u(8159),p=u(2135),s=u(5062),l=u(5873),d=u(7981),h="dx-filterbuilder-range",v=h+"-start",x=h+"-end",b=h+"-separator";function E(Sn,Qn){var ti=(0,o.Z)("<div>").addClass(v),ci=(0,o.Z)("<div>").addClass(x),Wi=Sn.value||[],qi=function(xr){return xr&&xr.length>0?xr[0]:null},nr=function(xr){return xr&&2===xr.length?xr[1]:null};Qn.append(ti),Qn.append((0,o.Z)("<span>").addClass(b).text("\u2013")),Qn.append(ci),Qn.addClass(h),this._editorFactory.createEditor.call(this,ti,(0,l.l)({},Sn.field,Sn,{value:qi(Wi),parentType:"filterBuilder",setValue:function(xr){Wi=[xr,nr(Wi)],Sn.setValue(Wi)}})),this._editorFactory.createEditor.call(this,ci,(0,l.l)({},Sn.field,Sn,{value:nr(Wi),parentType:"filterBuilder",setValue:function(xr){Wi=[qi(Wi),xr],Sn.setValue(Wi)}}))}function S(Sn,Qn){return{name:"between",caption:Sn,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:E.bind(Qn),notForLookup:!0}}var O=u(9009),w=u(7122),T={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},k={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};const R_getIconByFilterOperation=function(Sn){return T[Sn]};var P="string",B="icon-none",W="and",U={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},K={date:"shortDate",datetime:"shortDateShortTime"},Y=["=","<>","isblank","isnotblank"],J=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"],ee="dx-filterbuilder-text",G=ee+"-part",q=ee+"-separator",Z=q+"-empty";function M(Sn){return Sn&&Sn.length>1&&"!"===Sn[0]&&!Le(Sn)}function oe(Sn){return M(Sn)?Sn[1]:Sn}function Be(Sn,Qn){var ci,Wi;return function Te(Sn,Qn){-1!==Qn.indexOf("!")?M(Sn)||function(ti){var ci=ti.slice(0);ti.length=0,ti.push("!",ci)}(Sn):M(Sn)&&function(ti){var ci=oe(ti);ti.length=0,[].push.apply(ti,ci)}(Sn)}(Sn,Qn),function(Wi,qi){for(ci=0;ci<Wi.length;ci++)Array.isArray(Wi[ci])||(Wi[ci]=qi)}(oe(Sn),Qn=-1===(Wi=Qn).indexOf("!")?Wi:Wi.substring(1)),Sn}function ze(Sn,Qn){var ti=_e(Sn);return Qn.filter(function(ci){return ci.value===ti})[0]}function ae(Sn){if(Le(Sn))return W;for(var Qn="",ti=0;ti<Sn.length;ti++){var ci=Sn[ti];if(!Array.isArray(ci)){if(Qn&&Qn!==ci)throw new I.R0.Error("E4019");"!"!==ci&&(Qn=ci)}}return Qn}function _e(Sn){var Qn=oe(Sn),ti=ae(Qn);return ti||(ti=W),Qn!==Sn&&(ti="!"+ti),ti}function ce(Sn){var Qn=function ne(Sn){return Array.isArray(Sn)&&Sn.length}(Sn.filterOperations)?Sn.filterOperations:function ye(Sn){return Sn.lookup&&Y||U[Sn.dataType||P]}(Sn);return(0,l.l)([],Qn)}function le(Sn,Qn){var ti=function(Sn){return k[Sn]}(Sn);return Qn&&Qn[ti]?Qn[ti]:ti}function pe(Sn,Qn){for(var ti=0;ti<Qn.length;ti++)if(Qn[ti].value===Sn)return Qn[ti];throw new a.Z.Error("E1048",Sn)}function Se(Sn,Qn){var ti=Sn.filter(function(ci){return ci.name===Qn});return ti.length?ti[0]:null}function re(Sn,Qn,ti){var ci=ce(Sn),Wi=!!Sn.lookup;return ti.forEach(function(qi){if(!Sn.filterOperations&&-1===ci.indexOf(qi.name)){var nr=qi&&qi.dataTypes;(!Wi||!qi.notForLookup)&&nr&&nr.indexOf(Sn.dataType||P)>=0&&ci.push(qi.name)}}),ci.map(function(qi){var nr=Se(ti,qi);return nr?{icon:nr.icon||B,text:nr.caption||(0,d.GK)(nr.name),value:nr.name,isCustom:!0}:{icon:R_getIconByFilterOperation(qi)||B,text:le(qi,Qn),value:qi}})}function te(Sn){return Sn.defaultFilterOperation||ce(Sn)[0]}function ie(Sn,Qn){var ti=[Sn.dataField,"",""];return Xn(ti,te(Sn),Qn),ti}function ue(Sn,Qn){var ti=oe(Sn),ci=ti.indexOf(Qn);return ti.splice(ci,1),1!==ti.length&&ti.splice(ci,1),Sn}function be(Sn){var Qn=$e(Sn),ti=Qn?ge(Sn):Sn;return Qn?["!",[ti]]:[ti]}function Ne(Sn,Qn){var ti=oe(Qn),ci=_e(ti);return 1===ti.length?ti.unshift(Sn):ti.push(Sn,ci),Qn}function mt(Sn,Qn){for(var ti=0;ti<Qn.length;ti++)if(Qn[ti].name===Sn||Qn[ti].dataField.toLowerCase()===Sn.toLowerCase())return Qn[ti];var ci=Lt(Qn,!0).filter(function(Wi){return Wi.dataField.toLowerCase()===Sn.toLowerCase()});if(ci.length>0)return ci[0];throw new a.Z.Error("E1047",Sn)}function tt(Sn){return!!Array.isArray(Sn)&&(Sn.length<2||Array.isArray(Sn[0])||Array.isArray(Sn[1]))}function Le(Sn){return!!Array.isArray(Sn)&&Sn.length>1&&!Array.isArray(Sn[0])&&!Array.isArray(Sn[1])}function gt(Sn,Qn,ti){ti=ti||W;for(var ci=ae(Sn).toLowerCase()||ti,Wi=[],qi=0;qi<Sn.length;qi++)tt(Sn[qi])?(Wi.push(Ye(Sn[qi],Qn,ti)),Wi=De(Wi,ci)):Le(Sn[qi])&&(Wi.push(Pe(Sn[qi],Qn)),Wi=De(Wi,ci));return 0===Wi.length&&(Wi=De(Wi,ci)),Wi}function Pe(Sn,Qn){return function tn(Sn,Qn){var ti=Se(Qn,Sn[1]);return ti&&ti.name===Sn[1]}(Sn,Qn)||Sn.length<3&&(Sn[2]=Sn[1],Sn[1]="="),Sn}function $e(Sn){return-1!==Sn.indexOf("not")}function ge(Sn){return Sn.substring(3).toLowerCase()}function Ce(Sn,Qn){var ti=$e(Qn);return Qn=ti?ge(Qn):Qn,ti?["!",Sn,Qn]:[Sn,Qn]}function De(Sn,Qn){var ti=$e(Qn);Qn=ti?ge(Qn):Qn,Sn.push(Qn);var ci=Sn;return ti&&(ci=["!",ci]),ci}function Ye(Sn,Qn,ti){return ti=ti||W,Sn?Le(Sn=(0,l.l)(!0,[],Sn))?Ce(Pe(Sn,Qn),ti):M(Sn)?["!",Le(Sn[1])?Ce(Pe(Sn[1],Qn),ti):M(Sn[1])?Ce(Ye(Sn[1],Qn),ti):gt(Sn[1],Qn,ti)]:gt(Sn,Qn,ti):be(ti)}function bt(Sn){return Sn.reduce(function(Qn,ti){if((0,C.$K)(ti.dataField)){var ci={};for(var Wi in ti)ti[Wi]&&J.indexOf(Wi)>-1&&(ci[Wi]=ti[Wi]);ci.defaultCalculateFilterExpression=p.Z.defaultCalculateFilterExpression,(0,C.$K)(ci.dataType)||(ci.dataType=P),(0,C.$K)(ci.trueText)||(ci.trueText=O.Z.format("dxDataGrid-trueText")),(0,C.$K)(ci.falseText)||(ci.falseText=O.Z.format("dxDataGrid-falseText")),Qn.push(ci)}return Qn},[])}function yt(Sn,Qn,ti,ci){var Wi=mt(Sn[0],Qn),qi=Pe(Sn,ti),nr=ti.length&&Se(ti,qi[1]);return nr&&nr.calculateFilterExpression?nr.calculateFilterExpression.apply(nr,[qi[2],Wi,Qn]):Wi.createFilterExpression?Wi.createFilterExpression.apply(Wi,[qi[2],qi[1],ci]):Wi.calculateFilterExpression?Wi.calculateFilterExpression.apply(Wi,[qi[2],qi[1],ci]):Wi.defaultCalculateFilterExpression.apply(Wi,[qi[2],qi[1],ci])}function kt(Sn,Qn,ti,ci){if(!(0,C.$K)(Sn))return null;if(M(Sn))return["!",kt(Sn[1],Qn,ti,ci)];var qi=oe(Sn);if(Le(qi))return yt(qi,Qn,ti,ci)||null;for(var xr,nr=[],vn=_e(qi),Pn=0;Pn<qi.length;Pn++)tt(qi[Pn])?(xr=kt(qi[Pn],Qn,ti,ci))&&(Pn&&nr.push(vn),nr.push(xr)):Le(qi[Pn])&&(xr=yt(qi[Pn],Qn,ti,ci))&&(nr.length&&nr.push(vn),nr.push(xr));return 1===nr.length&&(nr=nr[0]),nr.length?nr:null}function gn(Sn){var ti,Qn=oe(Sn);if(0===Qn.length)return null;var ci=[];for(ti=0;ti<Qn.length;ti++)if(tt(Qn[ti])){var Wi=gn(Qn[ti]);Wi?Qn[ti]=Wi:ci.push(Qn[ti])}else Le(Qn[ti])&&(ki(Qn[ti])||ci.push(Qn[ti]));for(ti=0;ti<ci.length;ti++)ue(Qn,ci[ti]);return 1===Qn.length||(Qn.splice(Qn.length-1,1),1===Qn.length&&(Sn=function fe(Sn,Qn){return M(Sn)?Sn[1]=Qn:Sn=Qn,Sn}(Sn,Qn[0])),0===Sn.length)?null:Sn}function ut(Sn,Qn,ti){if(""!==Qn){var ci=Sn.lookup;if(ci.items)ti(ci.calculateCellValue(Qn)||"");else{var Wi=(0,C.mf)(ci.dataSource)?ci.dataSource({}):ci.dataSource;new w.o(Wi).loadSingle(ci.valueExpr,Qn).done(function(nr){var xr="";nr&&(xr=ci.displayExpr?(0,g.vb)(ci.displayExpr)(nr):nr),Sn.customizeText&&(xr=Sn.customizeText({value:Qn,valueText:xr})),ti(xr)}).fail(function(){ti("")})}}else ti("")}function Ve(Sn,Qn,ti,ci,Wi){var qi;return qi=!0===Qn?Sn.trueText||O.Z.format("dxDataGrid-trueText"):!1===Qn?Sn.falseText||O.Z.format("dxDataGrid-falseText"):function X(Sn,Qn){return s.Z.format(Qn,Sn.format||K[Sn.dataType])}(Sn,Qn),Sn.customizeText&&(qi=Sn.customizeText.call(Sn,{value:Qn,valueText:qi,target:ci})),ti&&ti.customizeText&&(qi=ti.customizeText.call(ti,{value:Qn,valueText:qi,field:Sn,target:ci},Wi)),qi}function St(Sn,Qn,ti,ci){var Wi={values:Qn};return Qn.map(qi=>Ve(Sn,qi,ti,ci,Wi))}function Xe(Sn){return""===Sn||null===Sn}function Vt(Sn,Qn,ti){var ci=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(Xe(Qn))return"";if(Array.isArray(Qn)){var Wi=new c.BH;return c.gx.apply(this,St(Sn,Qn,ti,ci)).done(function(){for(var qi=arguments.length,nr=new Array(qi),xr=0;xr<qi;xr++)nr[xr]=arguments[xr];var vn=nr.some(Pn=>!Xe(Pn))?nr.map(Pn=>Xe(Pn)?"?":Pn):"";Wi.resolve(vn)}),Wi}return Ve(Sn,Qn,ti,ci)}function lt(Sn,Qn){return Sn.some(function(ti){return ti.dataField===Qn})}function dt(Sn,Qn,ti){var ci=ti.dataField;bn(ci)&&(ti.parentId=mn(ci),!lt(Qn,ti.parentId)&&!lt(Sn,ti.parentId)&&dt(Sn,Qn,{id:ti.parentId,dataType:"object",dataField:ti.parentId,caption:vt(ti.parentId,!0),filterOperations:["isblank","isnotblank"]})),Qn.push(ti)}function vt(Sn,Qn){var ti="";if(Qn)Sn=Sn.substring(Sn.lastIndexOf(".")+1);else if(bn(Sn))return Sn.split(".").forEach(function(ci,Wi,qi){ti+=(0,d.GK)(ci),Wi!==qi.length-1&&(ti+=".")}),ti;return(0,d.GK)(Sn)}function Lt(Sn,Qn){for(var ti=[],ci=0;ci<Sn.length;ci++){var Wi=(0,l.l)(!0,{caption:vt(Sn[ci].dataField,Qn)},Sn[ci]);Wi.id=Wi.name||Wi.dataField,Qn?dt(Sn,ti,Wi):ti.push(Wi)}return ti}function bn(Sn){return-1!==Sn.lastIndexOf(".")}function mn(Sn){return Sn.substring(0,Sn.lastIndexOf("."))}function xn(Sn,Qn){if(bn(Sn.dataField))for(var ti=mn(Sn.dataField),ci=0;ci<Qn.length;ci++)if(Qn[ci].dataField===ti)return xn(Qn[ci],Qn)+"."+Sn.caption;return Sn.caption}function Xn(Sn,Qn,ti){var ci=Se(ti,Qn);return ci?(!1===ci.hasValue?(Sn[1]=Qn,Sn.length=2):(Sn[1]=Qn,Sn[2]=""),Sn):("isblank"===Qn?(Sn[1]="=",Sn[2]=null):"isnotblank"===Qn?(Sn[1]="<>",Sn[2]=null):(((ci=Se(ti,Sn[1]))||2===Sn.length||null===Sn[2])&&(Sn[2]=""),Sn[1]=Qn),Sn)}function li(Sn){return null===Sn[2]?"="===Sn[1]?"isblank":"isnotblank":Sn[1]}function ki(Sn){return""!==Sn[2]}function Vn(Sn,Qn,ti){var ci=(0,l.l)(!0,[],Sn),Wi=-1;return ci.some(function(qi,nr){if("between"===qi.name)return Wi=nr,!0}),-1!==Wi?ci[Wi]=(0,l.l)(S(Qn,ti),ci[Wi]):ci.unshift(S(Qn,ti)),ci}function Oi(Sn,Qn){return Sn[0]===Qn}function Hn(Sn,Qn){return Sn&&0!==Sn.length?Le(Sn)?Oi(Sn,Qn)?null:Sn:En(Sn,[Qn],!1):null}function En(Sn,Qn,ti){var ci=[];return Sn.forEach(function(Wi){Le(Wi)?Oi(Wi,Qn[0])?ti?(ci.push(Qn),ti=!1):ci.splice(ci.length-1,1):ci.push(Wi):(ci.length||tt(Wi))&&ci.push(Wi)}),0===ci.length?null:(ti&&(ci.push(W),ci.push(Qn)),1===ci.length?ci[0]:ci)}function Mn(Sn,Qn){return null===Sn||0===Sn.length?Qn:Le(Sn)?Oi(Sn,Qn[0])?Qn:[Sn,W,Qn]:_e(Sn)!==W?[Qn,"and",Sn]:En(Sn,Qn,!0)}function ei(Sn,Qn){return null===Sn||0===Sn.length?[]:Le(Sn)?Oi(Sn,Qn)?[Sn]:[]:_e(Sn)!==W?[]:Sn.filter(function(Wi){return Le(Wi)&&Oi(Wi,Qn)})}function Wn(Sn,Qn){return null!==Sn&&0!==Sn.length&&(Le(Sn)?Sn[0]===Qn:Sn.some(function(ti){return(Le(ti)||tt(ti))&&Wn(ti,Qn)}))}var Ji=function(Sn,Qn,ti){if(Array.isArray(Qn)){var ci=Qn.length-1;Sn.empty(),Qn.forEach((Wi,qi)=>{(0,o.Z)("<span>").addClass(G).text(Wi).appendTo(Sn),qi!==ci&&(0,o.Z)("<span>").addClass(q).text(ti&&ti.valueSeparator?ti.valueSeparator:"|").addClass(Z).appendTo(Sn)})}else Sn.text(Qn||O.Z.format("dxFilterBuilder-enterValueText"))}},7449:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>gr});var o=u(4817),c=u(9904),I=u(913),C=u(8506),g=u(6492),a=u(7674),p=u(7572),s=u(1828),l=u(2718),d=u(5873),h=u(2526),v=u(6881),x=u(9009),b=u(6853),y=u(1031),E=u(4514),S=u(3191);class O{constructor(){this._map={}}_findWidgetInstance(_n){var Ze;return(0,l.S6)(this._map,function(Ct,ft){var{widgetInstance:zt,item:wt}=ft;if(_n(wt))return Ze=zt,!1}),Ze}_findFieldByCondition(_n,Ze){var Ct;return(0,l.S6)(this._map,function(ft,zt){if(_n(zt))return Ct="guid"===Ze?ft:zt[Ze],!1}),Ct}clear(){this._map={}}removeItemsByItems(_n){(0,l.S6)(_n.getItems(),Ze=>this.removeItemByKey(Ze))}removeItemByKey(_n){delete this._map[_n]}add(_n){var Ze=_n.guid||new g.Z;return this._map[Ze]=_n,Ze}addItemsOrExtendFrom(_n){_n.each((Ze,Ct)=>{this._map[Ze]?(Ct.widgetInstance&&(this._map[Ze].widgetInstance=Ct.widgetInstance),this._map[Ze].$itemContainer=Ct.$itemContainer):this.add({item:Ct.item,widgetInstance:Ct.widgetInstance,guid:Ze,$itemContainer:Ct.$itemContainer})})}extendRunTimeItemInfoByKey(_n,Ze){this._map[_n]&&(this._map[_n]=(0,d.l)(this._map[_n],Ze))}findWidgetInstanceByItem(_n){return this._findWidgetInstance(Ze=>Ze===_n)}findGroupOrTabLayoutManagerByPath(_n){return this._findFieldByCondition(Ze=>{var{path:Ct}=Ze;return Ct===_n},"layoutManager")}findKeyByPath(_n){return this._findFieldByCondition(Ze=>{var{path:Ct}=Ze;return Ct===_n},"guid")}findWidgetInstanceByName(_n){return this._findWidgetInstance(Ze=>_n===Ze.name)}findWidgetInstanceByDataField(_n){return this._findWidgetInstance(Ze=>_n===((0,s.HD)(Ze)?Ze:Ze.dataField))}findItemContainerByItem(_n){for(var Ze in this._map)if(this._map[Ze].item===_n)return this._map[Ze].$itemContainer;return null}findItemIndexByItem(_n){return this._findFieldByCondition(Ze=>{var{item:Ct}=Ze;return Ct===_n},"itemIndex")}findPreparedItemByItem(_n){return this._findFieldByCondition(Ze=>{var{item:Ct}=Ze;return Ct===_n},"preparedItem")}getItems(){return this._map}each(_n){(0,l.S6)(this._map,function(Ze,Ct){_n(Ze,Ct)})}removeItemsByPathStartWith(_n){Object.keys(this._map).filter(ft=>!!this._map[ft].path&&this._map[ft].path.indexOf(_n,0)>-1).forEach(ft=>this.removeItemByKey(ft))}}var w=u(3078),T=u(8487),k=u(4270),R=u(2722),P=u(5031);class B{constructor(_n){this._options=_n,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}findInstance(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}findItemContainer(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}findPreparedItem(){return this._itemsRunTimeInfo.findPreparedItemByItem(this._options.item)}tryExecute(){P.Z.abstract()}}var W=u(5610),z=(Qt,_n)=>"".concat(_n?"tabs":"items","[").concat(Qt,"]"),V=(Qt,_n)=>(0,s.$K)(Qt)&&(0,s.$K)(_n)?"".concat(Qt,".").concat(_n):Qt||_n,U=Qt=>Qt?Qt.replace(/\s/g,""):void 0,Y=(Qt,_n)=>"".concat(Qt,".").concat(_n),J=Qt=>{var _n=Qt.split(".");return _n[_n.length-1].replace(/\[\d+]/,"")},ee=Qt=>Qt.indexOf("tabs")>-1,G=(Qt,_n,Ze)=>{var Ct=Qt.indexOf(_n);if(Ct>-1)return z(Ct,Ze);for(var ft=0;ft<Qt.length;ft++){var zt=Qt[ft],wt=zt.tabs||zt.items;if(wt){var Xt=G(wt,_n,zt.tabs);if(Xt)return V(z(ft,Ze),Xt)}}};class Z extends B{tryExecute(){var{value:_n}=this._options,Ze=this.findInstance();return!!Ze&&(Ze.option(_n),!0)}}class X extends B{tryExecute(){var _n=this.findInstance();if(_n){var{optionName:Ze,item:Ct,value:ft}=this._options,zt=this._itemsRunTimeInfo.findItemIndexByItem(Ct);if(zt>=0)return _n.option(Y("items[".concat(zt,"]"),Ze),ft),!0}return!1}}class M extends B{tryExecute(){return!1}}class oe extends B{tryExecute(){var _n=this.findPreparedItem();return!(null==_n||!_n._prepareGroupItemTemplate||!_n._renderGroupContentTemplate||(_n._prepareGroupItemTemplate(this._options.item.template),_n._renderGroupContentTemplate(),0))}}class fe extends B{tryExecute(){var _n=this.findInstance();if(_n){var{value:Ze}=this._options;return _n.option("dataSource",Ze),!0}return!1}}class Te extends B{tryExecute(){var{item:_n}=this._options,Ze=this.findInstance(),Ct=Ze&&(0,W.aT)(Ze.$element()[0],"dxValidator");if(Ct&&_n){var ft=Xt=>"required"===Xt.type,zt=(Ct.option("validationRules")||[]).some(ft),wt=(_n.validationRules||[]).some(ft);if(!zt&&!wt||zt&&wt)return Ct.option("validationRules",_n.validationRules),!0}return!1}}class Be extends B{tryExecute(){var _n=this.findItemContainer(),{previousValue:Ze,value:Ct}=this._options;return!!_n&&(_n.removeClass(Ze).addClass(Ct),!0)}}var _e=u(9870),ye=u(1805),ne=u(9963),ce=u(9960),le=u(6738),pe=u(4416),Se=u(7374),ie="dx-form-group",be="dx-col-",Ae="dx-field-item",Ne="dx-layout-manager-one-col",mt="dx-field-item-label-content",Le="dx-field-item-label",gt="dx-field-item-content",Pe="dx-root-simple-item",Ye="dx-field-item-tab",bt="dx-group-colcount-",yt="group-col-count",ut="simple",dt=(u(3447),u(1946),u(344),u(1884),u(219),u(227)),vt=u(7981),Lt=u(9589),bn=u(8159),mn=u(9109),xn=["dxTagBox","dxRangeSlider"],Xn=["dxCalendar","dxCheckBox","dxHtmlEditor","dxRadioGroup","dxRangeSlider","dxSlider","dxSwitch"];function Vn(Qt,_n){var{showRequiredMark:Ze,requiredMark:Ct,showOptionalMark:ft,optionalMark:zt}=Qt;return{showRequiredMark:Ze&&_n,requiredMark:Ct,showOptionalMark:ft&&!_n,optionalMark:zt}}var Wn="dx-field-item-label-location-";function ci(Qt,_n,Ze){var wt,Xt,Ct="".concat(_n," > .").concat(Le,":not(.").concat(Wn,"top) > .").concat(mt),ft=Qt.find(Ct),zt=ft.length,fn=0;for(Xt=0;Xt<zt;Xt++)(wt=Wi(ft[Xt]))>fn&&(fn=wt);for(Xt=0;Xt<zt;Xt++)ft[Xt].style.width=fn+"px"}function Wi(Qt){for(var _n=0,Ze=Qt.children.length,Ct=0;Ct<Ze;Ct++)_n+=Qt.children[Ct].offsetWidth;return _n}var vn="dx-field-item-content-wrapper",Nr="dx-validation-target";function Qr(Qt){var{$parent:_n,rootElementCssClassList:Ze,formOrLayoutManager:Ct,createComponentCallback:ft,labelOptions:zt,labelNeedBaselineAlign:wt,labelLocation:Xt,needRenderLabel:fn,formLabelLocation:Ke,item:ht,editorOptions:on,isSimpleItem:hn,isRequired:an,template:Nn,helpID:$n,labelID:ot,name:Bt,helpText:nn,requiredMessageTemplate:On,validationGroup:nt}=Qt,Rt=(0,c.Z)("<div>").addClass(Ze.join(" ")).appendTo(_n);Rt.addClass(an?"dx-field-item-required":"dx-field-item-optional"),hn&&Rt.addClass("dx-flex-layout"),hn&&wt&&Rt.addClass("dx-field-item-label-align");var pt=(0,c.Z)("<div>");pt.data("dx-form-item",ht),pt.addClass(gt).addClass("dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[Ke]);var Un,jt=null;if(fn&&(zt.labelTemplate&&(zt.labelTemplateData=Rr(ht,on,Ct)),jt=function Qn(Qt){var{text:_n,id:Ze,location:Ct,alignment:ft,labelID:zt=null,markOptions:wt={},labelTemplate:Xt,labelTemplateData:fn,onLabelTemplateRendered:Ke}=Qt;if((!(0,s.$K)(_n)||_n.length<=0)&&!(0,s.$K)(Xt))return null;var ht=(0,c.Z)("<label>").addClass(Le+" "+Wn+Ct).attr("for",Ze).attr("id",zt).css("textAlign",ft),on=(0,c.Z)("<span>").addClass(mt),hn=(0,c.Z)("<span>").addClass("dx-field-item-label-text").text(_n);return Xt&&(hn=(0,c.Z)("<div>").addClass("dx-field-item-custom-label-content"),fn.text=_n,Xt.render({container:(0,v.u)(hn),model:fn,onRendered(){Ke?.()}})),ht.append(on.append(hn,function ti(Qt){var _n=function ki(Qt){var{showRequiredMark:_n,requiredMark:Ze,showOptionalMark:Ct,optionalMark:ft}=Qt;return _n||Ct?String.fromCharCode(160)+(_n?Ze:ft):""}(Qt);return""===_n?null:(0,c.Z)("<span>").addClass(Qt.showRequiredMark?"dx-field-item-required-mark":"dx-field-item-optional-mark").text(_n)}(wt)))}(zt)),jt?(Rt.append(jt),("top"===Xt||"left"===Xt)&&Rt.append(pt),"right"===Xt&&Rt.prepend(pt),Rt.addClass("top"===Xt?"dx-label-v-align":"dx-label-h-align"),("dxCheckBox"===ht.editorType||"dxSwitch"===ht.editorType)&&I.Z.on(jt,dt.u,function(){I.Z.trigger(pt.children(),dt.u)})):Rt.append(pt),Nn)Nn.render({container:(0,v.u)(pt),model:Rr(ht,on,Ct),onRendered(){var No=function Wr(Qt){var _n,Ze;return Qt?.data(Nr)||(null==Qt||null===(_n=Qt.parent)||void 0===_n||null===(Ze=_n.call(Qt))||void 0===Ze?void 0:Ze.data(Nr))}(Sr(pt));Ur(No)}});else{var oi=(0,c.Z)("<div>").appendTo(pt);try{(Un=ft(oi,ht.editorType,on)).setAria("describedby",$n),ot&&Un.setAria("labelledby",ot),Un.setAria("required",an)}catch(ro){bn.Z.log("E1035",ro.message)}}var xi=Sr(pt),Ai=xi&&xi.data(Nr);if(Ai){var Tr,Ui=ht.label&&ht.label.text,ji=Ui?null:Bt,Qi=Ui?ht.label.text:ji&&(0,vt.GK)(ji);if(hn)if(ht.validationRules)Tr=ht.validationRules;else{var br=(0,Lt.WU)(On,Qi||"");Tr=ht.isRequired?[{type:"required",message:br}]:null}Array.isArray(Tr)&&Tr.length&&ft(xi,mn.Z,{validationRules:Tr,validationGroup:nt,dataGetter:function(){return{formItem:ht}}}),Ur(Ai)}return nn&&hn&&pt.parent().append((0,c.Z)("<div>").addClass(vn).append(pt).append((0,c.Z)("<div>").addClass("dx-field-item-help-text").attr("id",$n).text(nn))),{$fieldEditorContainer:pt,$rootElement:Rt,widgetInstance:Un}}function Sr(Qt){var _n=Qt.children().first();return _n.hasClass("dx-template-wrapper")?_n.children().first():_n}function Ur(Qt){if(Qt&&(0,R.x2)()){var _n=".".concat(vn),Ze=Ct=>{var{element:ft,component:zt}=Ct,{isValid:wt,validationMessageMode:Xt}=zt.option();(0,c.Z)(ft).parents(_n).toggleClass("dx-invalid",!1===wt&&(zt._isFocused()||"always"===Xt))};Qt.on("optionChanged",Ct=>{"isValid"===Ct.name&&Ze(Ct)}),Qt.on("focusIn",Ze).on("focusOut",Ze).on("enterKey",Ze)}}function Rr(Qt,_n,Ze){return{dataField:Qt.dataField,editorType:Qt.editorType,editorOptions:_n,component:Ze,name:Qt.name}}function Xr(Qt){var{$parent:_n,rootElementCssClassList:Ze}=Qt;return(0,c.Z)("<div>").addClass("dx-field-empty-item").html("&nbsp;").addClass(Ze.join(" ")).appendTo(_n)}var jn=b.Z.inherit({_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",labelMode:"outside",optionalMark:x.Z.format("dxForm-optionalMark"),requiredMessage:x.Z.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,d.l)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var Qt=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new O,this._updateReferencedOptions(Qt),this._initDataAndItems(Qt)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(Qt){this._syncDataWithItems(),this._updateItems(Qt)},_syncDataWithItems:function(){var Qt=this.option("layoutData"),_n=this.option("items");(0,s.$K)(_n)&&_n.forEach(Ze=>{var Ct;Ze.dataField&&void 0===this._getDataByField(Ze.dataField)&&(Ze.editorOptions&&(Ct=Ze.editorOptions.value),((0,s.$K)(Ct)||Ze.dataField in Qt)&&this._updateFieldValue(Ze.dataField,Ct))})},_getDataByField:function(Qt){return Qt?this.option("layoutData."+Qt):null},_isCheckboxUndefinedStateEnabled:function(Qt){var{allowIndeterminateState:_n,editorType:Ze,dataField:Ct}=Qt;if(!0===_n&&"dxCheckBox"===Ze){var ft=["layoutData",...Ct.split(".")],zt=ft.pop(),wt=this.option(ft.join("."));return wt&&zt in wt}return!1},_updateFieldValue:function(Qt,_n){var Ze=this.option("layoutData"),Ct=_n;!ne.Z.isWrapped(Ze[Qt])&&(0,s.$K)(Qt)?this.option("layoutData."+Qt,Ct):ne.Z.isWritableWrapped(Ze[Qt])&&(Ct=(0,s.mf)(Ct)?Ct():Ct,Ze[Qt](Ct)),this._triggerOnFieldDataChanged({dataField:Qt,value:Ct})},_triggerOnFieldDataChanged:function(Qt){this._createActionByOption("onFieldDataChanged")(Qt)},_updateItems:function(Qt){var _n=this,Ze=this.option("items"),Ct=(0,s.$K)(Ze),ft=_n.option("customizeItem"),zt=Ct?Ze:this._generateItemsByData(Qt);if((0,s.$K)(zt)){var wt=[];(0,l.S6)(zt,function(Xt,fn){_n._isAcceptableItem(fn)&&(fn=_n._processItem(fn),ft&&ft(fn),(0,s.Kn)(fn)&&!1!==ne.Z.unwrap(fn.visible)&&wt.push(fn))}),(!_n._itemWatchers.length||!Ct)&&_n._updateItemWatchers(zt),this._setItems(wt),this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach(function(Qt){Qt()}),this._itemWatchers=[]},_updateItemWatchers:function(Qt){var _n=this,Ze=_n._getWatch();Qt.forEach(function(Ct){(0,s.Kn)(Ct)&&(0,s.$K)(Ct.visible)&&(0,s.mf)(Ze)&&_n._itemWatchers.push(Ze(function(){return ne.Z.unwrap(Ct.visible)},function(){_n._updateItems(_n.option("layoutData")),_n.repaint()},{skipImmediate:!0}))})},_generateItemsByData:function(Qt){var _n=[];return(0,s.$K)(Qt)&&(0,l.S6)(Qt,function(Ze){_n.push({dataField:Ze})}),_n},_isAcceptableItem:function(Qt){var Ze=this._getDataByField(Qt.dataField||Qt);return!((0,s.mf)(Ze)&&!ne.Z.isWrapped(Ze))},_processItem:function(Qt){if("string"==typeof Qt&&(Qt={dataField:Qt}),"object"==typeof Qt&&!Qt.itemType&&(Qt.itemType=ut),!(0,s.$K)(Qt.editorType)&&(0,s.$K)(Qt.dataField)){var _n=this._getDataByField(Qt.dataField);Qt.editorType=(0,s.$K)(_n)?this._getEditorTypeByDataType((0,s.dt)(_n)):"dxTextBox"}var Ze;return"dxCheckBox"===Qt.editorType&&(Qt.allowIndeterminateState=null===(Ze=Qt.allowIndeterminateState)||void 0===Ze||Ze),Qt},_getEditorTypeByDataType:function(Qt){switch(Qt){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,ce.Sq)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort(function(Qt,_n){var Ze=Qt.visibleIndex,Ct=_n.visibleIndex;return Ze>Ct?1:Ze<Ct?-1:0})},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_renderResponsiveBox:function(){var Qt=[];if(this._items&&this._items.length){var _n=this._getColCount(),Ze=(0,c.Z)("<div>").appendTo(this.$element());this._prepareItemsWithMerging(_n);var Ct=this._generateLayoutItems();this._responsiveBox=this._createComponent(Ze,Se.Z,this._getResponsiveBoxConfig(Ct,_n,Qt)),(0,E.Ym)()||this._renderTemplates(Qt)}},_itemStateChangedHandler:function(Qt){this._refresh()},_renderTemplates:function(Qt){var _n=this,Ze=0;Qt.forEach(Ct=>{var ft,{item:zt}=Ct;null!=zt&&null!==(ft=zt.label)&&void 0!==ft&&ft.template&&Ze++}),(0,l.S6)(Qt,function(Ct,ft){switch(ft.itemType){case"empty":Xr(ft);break;case"button":_n._renderButtonItem(ft);break;default:_n._renderFieldItem(ft,Ze)}})},_getResponsiveBoxConfig:function(Qt,_n,Ze){var Ct=this,ft=Ct.option("colCountByScreen"),zt=ft&&ft.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),onLayoutChanged:function(){var wt=Ct.option("onLayoutChanged"),Xt=Ct.isSingleColumnMode();wt&&(Ct.$element().toggleClass(Ne,Xt),wt(Xt))},onContentReady:function(wt){(0,E.Ym)()&&Ct._renderTemplates(Ze),Ct.option("onLayoutChanged")&&Ct.$element().toggleClass(Ne,Ct.isSingleColumnMode(wt.component))},itemTemplate:function(wt,Xt,fn){if(wt.location){var Ke=(0,c.Z)(fn),on=Ct._items[wt.location.col+wt.location.row*_n];if(on){var hn=[on.cssClass];Ke.toggleClass("dx-single-column-item-content",Ct.isSingleColumnMode(this)),0===wt.location.row&&hn.push("dx-first-row"),0===wt.location.col&&hn.push("dx-first-col"),on.itemType===ut&&Ct.option("isRoot")&&Ke.addClass(Pe);var an=wt.location.col===_n-1||wt.location.col+wt.location.colspan===_n,Nn=Ct._getRowsCount(),$n=wt.location.row===Nn-1;an&&hn.push("dx-last-col"),$n&&hn.push("dx-last-row"),"empty"!==on.itemType&&(hn.push(Ae),hn.push(Ct.option("cssItemClass")),(0,s.$K)(on.col)&&hn.push("dx-col-"+on.col)),Ze.push({itemType:on.itemType,item:on,$parent:Ke,rootElementCssClassList:hn})}}},cols:Ct._generateRatio(_n),rows:Ct._generateRatio(Ct._getRowsCount(),!0),dataSource:Qt,screenByWidth:Ct.option("screenByWidth"),singleColumnScreen:!zt&&"xs"}},_getColCount:function(){var Qt=this.option("colCount"),_n=this.option("colCountByScreen");if(_n){var Ze=this.option("form").getTargetScreenFactor();Ze||(Ze=(0,E.Ym)()?(0,E.Wf)(this.option("screenByWidth")):"lg"),Qt=_n[Ze]||Qt}if("auto"===Qt){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=Qt=this._getMaxColCount()}return Qt<1?1:Qt},_getMaxColCount:function(){if(!(0,E.Ym)())return 1;var Qt=this.option("minColWidth"),_n=(0,ye.dz)(this.$element()),Ze=this._items.length,Ct=Math.floor(_n/Qt)||1;return Ze<Ct?Ze:Ct},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(Qt){var Ze,Ct,zt,wt,_n=this._items.slice(0),ft=[];for(wt=0;wt<_n.length;wt++)if(ft.push(Ze=_n[wt]),(this.option("alignItemLabels")||Ze.alignItemLabels||Ze.colSpan)&&(Ze.col=this._getColByIndex(ft.length-1,Qt)),Ze.colSpan>1&&Ze.col+Ze.colSpan<=Qt){for(Ct=[],zt=0;zt<Ze.colSpan-1;zt++)Ct.push({merged:!0});ft=ft.concat(Ct)}else delete Ze.colSpan;this._setItems(ft)},_getColByIndex:function(Qt,_n){return Qt%_n},_setItems:function(Qt){this._items=Qt,this._cashedColCount=null},_generateLayoutItems:function(){var Ct,ft,Qt=this._items,_n=this._getColCount(),Ze=[];for(ft=0;ft<Qt.length;ft++)if(!(Ct=Qt[ft]).merged){var zt={location:{row:parseInt(ft/_n),col:this._getColByIndex(ft,_n)}};(0,s.$K)(Ct.disabled)&&(zt.disabled=Ct.disabled),(0,s.$K)(Ct.visible)&&(zt.visible=Ct.visible),(0,s.$K)(Ct.colSpan)&&(zt.location.colspan=Ct.colSpan),(0,s.$K)(Ct.rowSpan)&&(zt.location.rowspan=Ct.rowSpan),Ze.push(zt)}return Ze},_renderEmptyItem:function(Qt){Xr({$container:Qt})},_renderButtonItem:function(Qt){var{item:_n,$parent:Ze,rootElementCssClassList:Ct}=Qt,{$rootElement:ft,buttonInstance:zt}=function Mr(Qt){var{item:_n,$parent:Ze,rootElementCssClassList:Ct,validationGroup:ft,createComponentCallback:zt}=Qt,wt=(0,c.Z)("<div>").appendTo(Ze).addClass(Ct.join(" ")).addClass("dx-field-button-item").css("textAlign",function po(Qt){return(0,s.$K)(Qt)?Qt:"right"}(_n.horizontalAlignment));return Ze.css("justifyContent",function mi(Qt){switch(Qt){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}}(_n.verticalAlignment)),{$rootElement:wt,buttonInstance:zt((0,c.Z)("<div>").appendTo(wt),"dxButton",(0,d.l)({validationGroup:ft},_n.buttonOptions))}}({item:_n,$parent:Ze,rootElementCssClassList:Ct,validationGroup:this.option("validationGroup"),createComponentCallback:this._createComponent.bind(this)});this._itemsRunTimeInfo.add({item:_n,widgetInstance:zt,guid:_n.guid,$itemContainer:ft})},_renderFieldItem:function(Qt,_n){var Ze,Ct,{item:ft,$parent:zt,rootElementCssClassList:wt}=Qt,Xt=this._getDataByField(ft.dataField),fn=!1;if(void 0===Xt){var{allowIndeterminateState:Ke,editorType:ht,dataField:on}=ft;fn=this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:Ke,editorType:ht,dataField:on})}var hn=ft.dataField||ft.name,an=this._getFormOrThis(),{$fieldEditorContainer:Nn,widgetInstance:$n,$rootElement:ot}=Qr(function li(Qt){var{$parent:_n,rootElementCssClassList:Ze,formOrLayoutManager:Ct,createComponentCallback:ft,item:zt,template:wt,labelTemplate:Xt,name:fn,formLabelLocation:Ke,requiredMessageTemplate:ht,validationGroup:on,editorValue:hn,canAssignUndefinedValueToEditor:an,editorValidationBoundary:Nn,editorStylingMode:$n,showColonAfterLabel:ot,managerLabelLocation:Bt,itemId:nn,managerMarkOptions:On,labelMode:nt,onLabelTemplateRendered:Rt}=Qt,pt=(0,s.$K)(zt.isRequired)?zt.isRequired:!!function Hn(Qt){var _n;return Qt&&Qt.length&&(0,l.S6)(Qt,function(Ze,Ct){if("required"===Ct.type)return _n=!0,!1}),_n}(zt.validationRules),jt=zt.itemType===ut,Un=zt.helpText?"dx-"+new g.Z:null,oi=function En(Qt){var{item:_n,id:Ze,isRequired:Ct,managerMarkOptions:ft,showColonAfterLabel:zt,labelLocation:wt,labelTemplate:Xt,formLabelMode:fn,onLabelTemplateRendered:Ke}=Qt,ht=Xn.includes(_n.editorType),on=(0,d.l)({showColon:zt,location:wt,id:Ze,visible:"outside"===fn||ht&&"hidden"!==fn,isRequired:Ct},_n?_n.label:{},{markOptions:Vn(ft,Ct),labelTemplate:Xt,onLabelTemplateRendered:Ke});return["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"].includes(_n.editorType)&&(on.labelID="dx-label-".concat(new g.Z)),!on.text&&_n.dataField&&(on.text=(0,vt.GK)(_n.dataField)),on.text&&(on.textWithoutColon=on.text,on.text+=on.showColon?":":""),on}({item:zt,id:nn,isRequired:pt,managerMarkOptions:On,showColonAfterLabel:ot,labelLocation:Bt,formLabelMode:nt,labelTemplate:Xt,onLabelTemplateRendered:Rt}),xi=oi.visible&&(oi.text||oi.labelTemplate&&jt),{location:Ai,labelID:Ui}=oi,ji="top"!==Ai&&["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"].includes(zt.editorType),Qi=function Oi(Qt){var{editorType:_n,defaultEditorName:Ze,editorValue:Ct,canAssignUndefinedValueToEditor:ft,externalEditorOptions:zt,editorInputId:wt,editorValidationBoundary:Xt,editorStylingMode:fn,formLabelMode:Ke,labelText:ht,labelMark:on}=Qt,hn={};(void 0!==Ct||ft)&&(hn.value=Ct),-1!==xn.indexOf(_n)&&(hn.value=hn.value||[]);var an=zt?.labelMode;(0,s.$K)(an)||(an="outside"===Ke?"hidden":Ke);var $n=(0,d.l)(!0,hn,zt,{inputAttr:{id:wt},validationBoundary:Xt,stylingMode:zt?.stylingMode||fn,label:ht,labelMode:an,labelMark:on});return zt&&($n.dataSource&&($n.dataSource=zt.dataSource),$n.items&&($n.items=zt.items)),Ze&&!$n.name&&($n.name=Ze),$n}({editorType:zt.editorType,editorValue:hn,defaultEditorName:zt.dataField,canAssignUndefinedValueToEditor:an,externalEditorOptions:zt.editorOptions,editorInputId:nn,editorValidationBoundary:Nn,editorStylingMode:$n,formLabelMode:nt,labelText:oi.textWithoutColon,labelMark:oi.markOptions.showRequiredMark?String.fromCharCode(160)+oi.markOptions.requiredMark:""});return{$parent:_n,rootElementCssClassList:Ze,formOrLayoutManager:Ct,createComponentCallback:ft,labelOptions:oi,labelNeedBaselineAlign:ji,labelLocation:Ai,needRenderLabel:xi,item:zt,isSimpleItem:jt,isRequired:pt,template:wt,helpID:Un,labelID:Ui,name:fn,helpText:!oi.markOptions.showOptionalMark||oi.visible||"hidden"===Qi.labelMode||(0,s.$K)(zt.helpText)?zt.helpText:oi.markOptions.optionalMark,formLabelLocation:Ke,requiredMessageTemplate:ht,validationGroup:on,editorOptions:Qi}}({$parent:zt,rootElementCssClassList:wt,item:ft,name:hn,editorValue:Xt,canAssignUndefinedValueToEditor:fn,formOrLayoutManager:this._getFormOrThis(),createComponentCallback:this._createComponent.bind(this),formLabelLocation:this.option("labelLocation"),requiredMessageTemplate:this.option("requiredMessage"),validationGroup:this.option("validationGroup"),editorValidationBoundary:this.option("validationBoundary"),editorStylingMode:this.option("form")&&this.option("form").option("stylingMode"),showColonAfterLabel:this.option("showColonAfterLabel"),managerLabelLocation:this.option("labelLocation"),template:ft.template?this._getTemplate(ft.template):null,labelTemplate:null!==(Ze=ft.label)&&void 0!==Ze&&Ze.template?this._getTemplate(ft.label.template):null,itemId:this.option("form")&&this.option("form").getItemID(hn),managerMarkOptions:this._getMarkOptions(),labelMode:this.option("labelMode"),onLabelTemplateRendered:()=>{this._incTemplateRenderedCallCount(),this._shouldAlignLabelsOnTemplateRendered(an,_n)&&an._alignLabels(this,this.isSingleColumnMode(an))}}));null===(Ct=this.option("onFieldItemRendered"))||void 0===Ct||Ct(),$n&&ft.dataField&&this._bindDataField($n,ft.dataField,ft.editorType,Nn),this._itemsRunTimeInfo.add({item:ft,widgetInstance:$n,guid:ft.guid,$itemContainer:ot})},_incTemplateRenderedCallCount(){var Qt;this._labelTemplateRenderedCallCount=(null!==(Qt=this._labelTemplateRenderedCallCount)&&void 0!==Qt?Qt:0)+1},_shouldAlignLabelsOnTemplateRendered(Qt,_n){return Qt.option("templatesRenderAsynchronously")&&this._labelTemplateRenderedCallCount===_n},_getMarkOptions:function(){return{showRequiredMark:this.option("showRequiredMark"),requiredMark:this.option("requiredMark"),showOptionalMark:this.option("showOptionalMark"),optionalMark:this.option("optionalMark")}},_getFormOrThis:function(){return this.option("form")||this},_bindDataField:function(Qt,_n,Ze,Ct){var ft=this._getFormOrThis();Qt.on("enterKey",function(zt){ft._createActionByOption("onEditorEnterKey")((0,d.l)(zt,{dataField:_n}))}),this._createWatcher(Qt,Ct,_n),this.linkEditorToDataField(Qt,_n,Ze)},_createWatcher:function(Qt,_n,Ze){var Ct=this,ft=Ct._getWatch();if((0,s.mf)(ft)){var zt=ft(function(){return Ct._getDataByField(Ze)},function(){var wt=Ct._getDataByField(Ze);if("dxTagBox"===Qt.NAME){var Xt=Qt.option("value");if(wt!==Xt&&function(fn,Ke){if(!Array.isArray(fn)||!Array.isArray(Ke)||fn.length!==Ke.length)return!1;for(var ht=0;ht<fn.length;ht++)if(fn[ht]!==Ke[ht])return!1;return!0}(wt,Xt))return}Qt.option("value",wt)},{deep:!0,skipImmediate:!0});I.Z.on(_n,pe.x,zt)}},_getWatch:function(){if(!(0,s.$K)(this._watch)){var Qt=this.option("form");this._watch=Qt&&Qt.option("integrationOptions.watchMethod")}return this._watch},_createComponent:function(Qt,_n,Ze){var Ct=this.option("readOnly"),ft=this.callBase(Qt,_n,Ze);return Ct&&ft.option("readOnly",Ct),this.on("optionChanged",function(zt){"readOnly"===zt.name&&!(0,s.$K)(Ze.readOnly)&&ft.option(zt.name,zt.value)}),ft},_generateRatio:function(Qt,_n){var Ct,ft,Ze=[];for(ft=0;ft<Qt;ft++)Ct={ratio:1},_n&&(Ct.baseSize="auto"),Ze.push(Ct);return Ze},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(Qt){var _n=this.option("layoutData");(0,s.Kn)(_n)&&Object.getOwnPropertyNames(_n).forEach(Ze=>delete this._optionsByReference["layoutData."+Ze]),(0,s.Kn)(Qt)&&Object.getOwnPropertyNames(Qt).forEach(Ze=>this._optionsByReference["layoutData."+Ze]=!0)},_resetWidget(Qt){this._disableEditorValueChangedHandler=!0,Qt.reset(),this._disableEditorValueChangedHandler=!1,Qt.option("isValid",!0)},_optionChanged(Qt){if(0!==Qt.fullName.search("layoutData."))switch(Qt.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(Qt.value),this.option("items")?(0,s.Qr)(Qt.value)||this._itemsRunTimeInfo.each((_n,Ze)=>{if((0,s.$K)(Ze.item)){var Ct=Ze.item.dataField;if(Ct&&(0,s.$K)(Ze.widgetInstance)){var zt=(0,le.vb)(Ct)(Qt.value),{allowIndeterminateState:wt,editorType:Xt}=Ze.item;void 0!==zt||this._isCheckboxUndefinedStateEnabled({allowIndeterminateState:wt,editorType:Xt,dataField:Ct})?Ze.widgetInstance.option("value",zt):this._resetWidget(Ze.widgetInstance)}}}):(this._initDataAndItems(Qt.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(Qt.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"labelMode":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":case"onFieldDataChanged":break;case"width":this.callBase(Qt),"auto"===this.option("colCount")&&this._resetColCount();break;default:this.callBase(Qt)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField(Qt,_n){this.on("optionChanged",Ze=>{Ze.fullName==="layoutData.".concat(_n)&&Qt._setOptionWithoutOptionChange("value",Ze.value)}),Qt.on("valueChanged",Ze=>{var Ct=(0,s.Kn)(Ze.value)||Array.isArray(Ze.value);!this._disableEditorValueChangedHandler&&(!Ct||Ze.value!==Ze.previousValue)&&this._updateFieldValue(_n,Ze.value)})},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},updateData:function(Qt,_n){var Ze=this;(0,s.Kn)(Qt)?(0,l.S6)(Qt,function(Ct,ft){Ze._updateFieldValue(Ct,ft)}):"string"==typeof Qt&&Ze._updateFieldValue(Qt,_n)},getEditor:function(Qt){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(Qt)||this._itemsRunTimeInfo.findWidgetInstanceByName(Qt)},isSingleColumnMode:function(Qt){var _n=this._responsiveBox||Qt;if(_n)return _n.option("currentScreenFactor")===_n.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,C.Z)("dxLayoutManager",jn),u(8493),u(4510);var Tn=u(5347),Zn="dx-state-focused",fi=["items","isRequired","validationRules","visible"],Li=b.Z.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new O,this._groupsColCount=[],this._attachSyncSubscriptions()},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{formID:"dx-"+new g.Z,formData:{},colCount:1,screenByWidth:E.$n,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,alignRootItemLabels:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:x.Z.format("dxForm-optionalMark"),requiredMessage:x.Z.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:(0,p.Z)().editorStylingMode,labelMode:"outside"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return(0,R.x2)()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),(0,d.l)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(Qt){return parseInt(Qt.attr(yt))},_applyLabelsWidthByCol:function(Qt,_n){var Ze=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},ft=Ze.inOneColumn?Ae:be+_n,zt=Ze.excludeTabbed?":not(.".concat(Ye,")"):"";ci(Qt,".".concat(ft).concat(zt))},_applyLabelsWidth:function(Qt,_n,Ze,Ct,ft){Ct=Ze?1:Ct||this._getGroupColCount(Qt);var wt,zt={excludeTabbed:_n,inOneColumn:Ze};for(wt=0;wt<Ct;wt++)this._applyLabelsWidthByCol(Qt,wt,zt,ft)},_getGroupElementsInColumn:function(Qt,_n,Ze){var Ct=(0,s.$K)(Ze)?"."+bt+Ze:"";return Qt.find("."+be+_n+" > ."+gt+" > ."+ie+Ct)},_applyLabelsWidthWithGroups:function(Qt,_n,Ze,Ct){if(!0===this.option("alignRootItemLabels"))for(var ft=Qt.find(".".concat(Pe)),zt=0;zt<_n;zt++)this._applyLabelsWidthByCol(ft,zt,Ze,Ct);if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(Qt,_n,Ze,Ct);else{var fn,Xt=this.$element().find("."+ie);for(fn=0;fn<Xt.length;fn++)this._applyLabelsWidth(Xt.eq(fn),Ze,void 0,void 0,Ct)}},_applyLabelsWidthWithNestedGroups:function(Qt,_n,Ze,Ct){var zt,wt,Xt,fn,ft={excludeTabbed:Ze};for(zt=0;zt<_n;zt++)for(fn=this._getGroupElementsInColumn(Qt,zt),this._applyLabelsWidthByCol(fn,0,ft,Ct),wt=0;wt<this._groupsColCount.length;wt++){fn=this._getGroupElementsInColumn(Qt,zt,this._groupsColCount[wt]);var Ke=this._getGroupColCount(fn);for(Xt=1;Xt<Ke;Xt++)this._applyLabelsWidthByCol(fn,Xt,ft,Ct)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(Qt){var{layoutManager:_n,inOneColumn:Ze,$container:Ct,excludeTabbed:ft,items:zt}=Qt;if((0,E.Ym)()&&"top"!==this._labelLocation()){var wt=Vn(_n._getMarkOptions());Ze?this._applyLabelsWidth(Ct,ft,!0,void 0,wt):this._checkGrouping(zt)?this._applyLabelsWidthWithGroups(Ct,_n._getColCount(),ft,wt):this._applyLabelsWidth(Ct,ft,!1,_n._getColCount(),wt)}},_prepareFormData:function(){(0,s.$K)(this.option("formData"))||this.option("formData",{})},_setStylingModeClass:function(){"underlined"===this.option("stylingMode")&&this.$element().addClass("dx-form-styling-mode-underlined")},_initMarkup:function(){S.Z.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass("dx-form"),this._setStylingModeClass(),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor(),this._attachResizeObserverSubscription()},_attachResizeObserverSubscription:function(){if((0,E.Ym)()){var Qt=this.$element().get(0);_e.Z.unobserve(Qt),_e.Z.observe(Qt,()=>{this._resizeHandler()})}},_resizeHandler:function(){this._cachedLayoutManagers.length&&(0,l.S6)(this._cachedLayoutManagers,(Qt,_n)=>{var Ze;null===(Ze=_n.option("onLayoutChanged"))||void 0===Ze||Ze(_n.isSingleColumnMode())})},_getCurrentScreenFactor:function(){return(0,E.Ym)()?(0,E.Wf)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(Qt,_n){this._alignLabelsInColumn({$container:this.$element(),layoutManager:Qt,excludeTabbed:!0,items:this.option("items"),inOneColumn:_n}),(0,h.U_)(this.$element().find(".".concat(Tn.z)))},_clean:function(){this._clearValidationSummary(),this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0,_e.Z.unobserve(this.$element().get(0))},_renderScrollable:function(){var Qt=this.option("useNativeScrolling");this._scrollable=new T.Z(this.$element(),{useNative:!!Qt,useSimulatedScrollbar:!Qt,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?(0,c.Z)(this._scrollable.content()):this.$element()},_clearValidationSummary:function(){var Qt;null===(Qt=this._$validationSummary)||void 0===Qt||Qt.remove(),this._$validationSummary=void 0,this._validationSummary=void 0},_renderValidationSummary:function(){this._clearValidationSummary(),this.option("showValidationSummary")&&(this._$validationSummary=(0,c.Z)("<div>").addClass("dx-form-validation-summary").appendTo(this._getContent()),this._validationSummary=this._$validationSummary.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance"))},_prepareItems(Qt,_n,Ze,Ct){if(Qt){for(var ft=[],zt=0;zt<Qt.length;zt++){var wt=Qt[zt],Xt=V(Ze,z(zt,Ct)),fn={item:wt,itemIndex:zt,path:Xt},Ke=this._itemsRunTimeInfo.add(fn);if((0,s.HD)(wt)&&(wt={dataField:wt}),(0,s.Kn)(wt)){var ht=(0,o.Z)({},wt);fn.preparedItem=ht,ht.guid=Ke,this._tryPrepareGroupItem(ht),this._tryPrepareTabbedItem(ht,Xt),this._tryPrepareItemTemplate(ht),_n&&(ht.cssItemClass=Ye),ht.items&&(ht.items=this._prepareItems(ht.items,_n,Xt)),ft.push(ht)}else ft.push(wt)}return ft}},_tryPrepareGroupItem:function(Qt){"group"===Qt.itemType&&(Qt.alignItemLabels=(0,a.IS)(Qt.alignItemLabels,!0),Qt._prepareGroupItemTemplate=_n=>{Qt.template&&(Qt.groupContentTemplate=this._getTemplate(_n)),Qt.template=this._itemGroupTemplate.bind(this,Qt)},Qt._prepareGroupItemTemplate(Qt.template))},_tryPrepareTabbedItem:function(Qt,_n){"tabbed"===Qt.itemType&&(Qt.template=this._itemTabbedTemplate.bind(this,Qt),Qt.tabs=this._prepareItems(Qt.tabs,!0,_n,!0))},_tryPrepareItemTemplate:function(Qt){Qt.template&&(Qt.template=this._getTemplate(Qt.template))},_checkGrouping:function(Qt){if(Qt)for(var _n=0;_n<Qt.length;_n++)if("group"===Qt[_n].itemType)return!0},_renderLayout:function(){var Qt=this,_n=Qt.option("items"),Ze=Qt._getContent();_n=Qt._prepareItems(_n),Qt._rootLayoutManager=Qt._renderLayoutManager(Ze,this._createLayoutManagerOptions(_n,{isRoot:!0,colCount:Qt.option("colCount"),alignItemLabels:Qt.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(Ct){Qt._alignLabels.bind(Qt)(Qt._rootLayoutManager,Ct)},onContentReady:function(Ct){Qt._alignLabels(Ct.component,Ct.component.isSingleColumnMode())}}))},_tryGetItemsForTemplate:function(Qt){return Qt.items||[]},_itemTabbedTemplate:function(Qt,_n,Ze){var Ct=(0,c.Z)("<div>").appendTo(Ze),ft=(0,d.l)({},Qt.tabPanelOptions,{dataSource:Qt.tabs,onItemRendered:Xt=>{var fn,Ke;null===(fn=Qt.tabPanelOptions)||void 0===fn||null===(Ke=fn.onItemRendered)||void 0===Ke||Ke.call(fn,Xt),(0,h.Uo)(Xt.itemElement)},itemTemplate:(Xt,fn,Ke)=>{var ht=(0,c.Z)(Ke),on=(0,a.IS)(Xt.alignItemLabels,!0),hn=this._renderLayoutManager(ht,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(Xt),{colCount:Xt.colCount,alignItemLabels:on,screenByWidth:this.option("screenByWidth"),colCountByScreen:Xt.colCountByScreen,cssItemClass:Xt.cssItemClass,onLayoutChanged:an=>{this._alignLabelsInColumn({$container:ht,layoutManager:hn,items:Xt.items,inOneColumn:an})}}));this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(Xt.guid,{layoutManager:hn}),on&&this._alignLabelsInColumn({$container:ht,layoutManager:hn,items:Xt.items,inOneColumn:hn.isSingleColumnMode()})}}),zt=(Xt,fn)=>{Array.isArray(Xt)&&Xt.forEach(Ke=>this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(Ke.guid,{widgetInstance:fn}))},wt=this._createComponent(Ct,w.Z,ft);(0,c.Z)(Ze).parent().addClass("dx-field-item-has-tabs"),wt.on("optionChanged",Xt=>{"dataSource"===Xt.fullName&&zt(Xt.value,Xt.component)}),zt([{guid:Qt.guid},...Qt.tabs],wt)},_itemGroupTemplate:function(Qt,_n,Ze){var ft,zt,Ct=(0,c.Z)("<div>").toggleClass("dx-form-group-with-caption",(0,s.$K)(Qt.caption)&&Qt.caption.length).addClass(ie).appendTo(Ze);(0,c.Z)(Ze).parent().addClass("dx-field-item-has-group"),Qt.caption&&(0,c.Z)("<span>").addClass("dx-form-group-caption").text(Qt.caption).appendTo(Ct);var wt=(0,c.Z)("<div>").addClass("dx-form-group-content").appendTo(Ct);Qt.groupContentTemplate?(Qt._renderGroupContentTemplate=()=>{wt.empty();var Xt={formData:this.option("formData"),component:this};Qt.groupContentTemplate.render({model:Xt,container:(0,v.u)(wt)})},Qt._renderGroupContentTemplate()):(zt=this._renderLayoutManager(wt,this._createLayoutManagerOptions(this._tryGetItemsForTemplate(Qt),{colCount:Qt.colCount,colCountByScreen:Qt.colCountByScreen,alignItemLabels:Qt.alignItemLabels,cssItemClass:Qt.cssItemClass})),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(Qt.guid,{layoutManager:zt}),ft=zt._getColCount(),this._groupsColCount.includes(ft)||this._groupsColCount.push(ft),Ct.addClass(bt+ft),Ct.attr(yt,ft))},_createLayoutManagerOptions:function(Qt,_n){return function q(Qt){var{form:_n,$formElement:Ze,formOptions:Ct,items:ft,validationGroup:zt,extendedLayoutManagerOptions:wt,onFieldDataChanged:Xt,onContentReady:fn,onDisposing:Ke,onFieldItemRendered:ht}=Qt;return(0,d.l)({form:_n,items:ft,$formElement:Ze,validationGroup:zt,onFieldDataChanged:Xt,onContentReady:fn,onDisposing:Ke,onFieldItemRendered:ht,validationBoundary:Ct.scrollingEnabled?Ze:void 0,scrollingEnabled:Ct.scrollingEnabled,showRequiredMark:Ct.showRequiredMark,showOptionalMark:Ct.showOptionalMark,requiredMark:Ct.requiredMark,optionalMark:Ct.optionalMark,requiredMessage:Ct.requiredMessage,screenByWidth:Ct.screenByWidth,layoutData:Ct.formData,labelLocation:Ct.labelLocation,customizeItem:Ct.customizeItem,minColWidth:Ct.minColWidth,showColonAfterLabel:Ct.showColonAfterLabel,onEditorEnterKey:Ct.onEditorEnterKey,labelMode:Ct.labelMode},{isRoot:wt.isRoot,colCount:wt.colCount,alignItemLabels:wt.alignItemLabels,cssItemClass:wt.cssItemClass,colCountByScreen:wt.colCountByScreen,onLayoutChanged:wt.onLayoutChanged,width:wt.width})}({form:this,formOptions:this.option(),$formElement:this.$element(),items:Qt,validationGroup:this._getValidationGroup(),extendedLayoutManagerOptions:_n,onFieldDataChanged:Ze=>{this._isDataUpdating||this._triggerOnFieldDataChanged(Ze)},onContentReady:Ze=>{this._itemsRunTimeInfo.addItemsOrExtendFrom(Ze.component._itemsRunTimeInfo),_n.onContentReady&&_n.onContentReady(Ze)},onDisposing:Ze=>{var{component:Ct}=Ze,ft=Ct.getItemsRunTimeInfo();this._itemsRunTimeInfo.removeItemsByItems(ft)},onFieldItemRendered:()=>{var Ze;null===(Ze=this._validationSummary)||void 0===Ze||Ze.refreshValidationGroup()}})},_renderLayoutManager:function(Qt,_n){this._cachedColCountOptions.push({colCountByScreen:(0,d.l)({lg:_n.colCount,md:_n.colCount,sm:_n.colCount,xs:1},_n.colCountByScreen)});var Ct=(0,c.Z)("<div>");Ct.appendTo(Qt);var ft=this._createComponent(Ct,"dxLayoutManager",_n);return ft.on("autoColCountChanged",()=>{this._clearAutoColCountChangedTimeout(),this.autoColCountChangedTimeoutId=setTimeout(()=>!this._disposed&&this._refresh(),0)}),this._cachedLayoutManagers.push(ft),ft},_getValidationGroup:function(){return this.option("validationGroup")||this},_createComponent:function(Qt,_n,Ze){return this._extendConfig(Ze=Ze||{},{readOnly:this.option("readOnly")}),this.callBase(Qt,_n,Ze)},_attachSyncSubscriptions:function(){var Qt=this;Qt.on("optionChanged",function(_n){var Ze=_n.fullName;"formData"===Ze&&((0,s.$K)(_n.value)||Qt._options.silent("formData",_n.value={}),Qt._triggerOnFieldDataChangedByDataSet(_n.value)),Qt._cachedLayoutManagers.length&&(0,l.S6)(Qt._cachedLayoutManagers,function(Ct,ft){"formData"===Ze&&(Qt._isDataUpdating=!0,ft.option("layoutData",_n.value),Qt._isDataUpdating=!1),("readOnly"===_n.name||"disabled"===_n.name)&&ft.option(Ze,_n.value)})})},_optionChanged:function(Qt){var _n=Qt.fullName.split(".");_n.length>1&&-1!==_n[0].search("items")&&this._itemsOptionChangedHandler(Qt)||_n.length>1&&-1!==_n[0].search("formData")&&this._formDataOptionChangedHandler(Qt)||this._defaultOptionChangedHandler(Qt)},_defaultOptionChangedHandler:function(Qt){switch(Qt.name){case"formData":this.option("items")?(0,s.Qr)(Qt.value)&&this._resetValues():this._invalidate();break;case"onFieldDataChanged":case"alignRootItemLabels":case"readOnly":break;case"items":case"colCount":case"onEditorEnterKey":case"labelLocation":case"labelMode":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"width":this.callBase(Qt),this._rootLayoutManager.option(Qt.name,Qt.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"validationGroup":S.Z.removeGroup(Qt.previousValue||this),this._invalidate();break;default:this.callBase(Qt)}},_itemsOptionChangedHandler:function(Qt){var _n=Qt.fullName.split("."),Ze=Qt.value,Ct=this._getItemPath(_n),ft=this.option(Ct),zt=Qt.fullName.replace(Ct+".",""),wt=zt.split(".")[0].replace(/\[\d+]/,""),Xt=this._tryCreateItemOptionAction(wt,ft,ft[wt],Qt.previousValue,Ct),fn=this._tryExecuteItemOptionAction(Xt)||this._tryChangeLayoutManagerItemOption(Qt.fullName,Ze);if(!fn&&ft){this._changeItemOption(ft,zt,Ze);var Ke=this._generateItemsFromData(this.option("items"));this.option("items",Ke),fn=!0}return fn},_formDataOptionChangedHandler:function(Qt){var _n=Qt.fullName.split("."),Ze=Qt.value,Ct=_n.slice(1).join("."),ft=this.getEditor(Ct);return ft?ft.option("value",Ze):this._triggerOnFieldDataChanged({dataField:Ct,value:Ze}),!0},_tryCreateItemOptionAction:function(Qt,_n,Ze,Ct,ft){return"tabs"===Qt&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(ft,".tabs")),Ze=this._prepareItems(Ze,!0,ft,!0)),((Qt,_n)=>{switch(Qt){case"editorOptions":case"buttonOptions":return new Z(_n);case"validationRules":return new Te(_n);case"cssClass":return new Be(_n);case"badge":case"disabled":case"icon":case"tabTemplate":case"title":return new X((0,d.l)(_n,{optionName:Qt}));case"tabs":return new fe(_n);case"template":var Ze,Ct,ft,zt=null!==(Ze=null==_n||null===(Ct=_n.item)||void 0===Ct?void 0:Ct.itemType)&&void 0!==Ze?Ze:null===(ft=_n.itemsRunTimeInfo.findPreparedItemByItem(_n?.item))||void 0===ft?void 0:ft.itemType;return"simple"===zt?new M(_n):"group"===zt?new oe(_n):new X((0,d.l)(_n,{optionName:Qt}));default:return null}})(Qt,{item:_n,value:Ze,previousValue:Ct,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(Qt){return Qt&&Qt.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(Qt){var Ze,_n=J(Qt);fi.indexOf(_n)>-1&&(S.Z.addGroup(this._getValidationGroup()),this.option("showValidationSummary"))&&(null===(Ze=this._validationSummary)||void 0===Ze||Ze.refreshValidationGroup())},_setLayoutManagerItemOption(Qt,_n,Ze,Ct){if(this._updateLockCount>0){!Qt._updateLockCount&&Qt.beginUpdate();var ft=this._itemsRunTimeInfo.findKeyByPath(Ct);this.postponedOperations.add(ft,()=>(!Qt._disposed&&Qt.endUpdate(),(new k.BH).resolve()))}var zt=wt=>{if(wt.component.off("contentReady",zt),ee(Ct)){var Xt=(Qt=>{for(var _n=Qt.split("."),Ze=[..._n],Ct=_n.length-1;Ct>=0;Ct--){if(ee(_n[Ct]))return Ze.join(".");Ze.splice(Ct,1)}return""})(Ct),fn=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(Xt);fn&&this._alignLabelsInColumn({items:fn.option("items"),layoutManager:fn,$container:fn.$element(),inOneColumn:fn.isSingleColumnMode()})}else this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())};Qt.on("contentReady",zt),Qt.option(_n,Ze),this._updateValidationGroupAndSummaryIfNeeded(_n)},_tryChangeLayoutManagerItemOption(Qt,_n){var Ze=Qt.split("."),Ct=J(Qt);if("items"===Ct&&Ze.length>1){var ft=this._getItemPath(Ze),zt=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(ft);if(zt){this._itemsRunTimeInfo.removeItemsByItems(zt.getItemsRunTimeInfo());var wt=this._prepareItems(_n,!1,ft);return this._setLayoutManagerItemOption(zt,Ct,wt,ft),!0}}else if(Ze.length>2){var Xt=Ze.length-2,fn=this._getItemPath(Ze.slice(0,Xt)),Ke=this._itemsRunTimeInfo.findGroupOrTabLayoutManagerByPath(fn);if(Ke){var ht=Y(Ze[Xt],Ct);if("editorType"===Ct&&Ke.option(ht)!==_n)return!1;if("visible"===Ct){var on=this.option(Y(fn,"items"));if(on&&on.length){var hn=Ke.option("items");on.forEach((an,Nn)=>{hn[Nn].visibleIndex=an.visibleIndex})}}return this._setLayoutManagerItemOption(Ke,ht,_n,fn),!0}}return!1},_tryChangeLayoutManagerItemOptions(Qt,_n){var Ze;return this.beginUpdate(),(0,l.S6)(_n,(Ct,ft)=>{if(!(Ze=this._tryChangeLayoutManagerItemOption(Y(Qt,Ct),ft)))return!1}),this.endUpdate(),Ze},_getItemPath:function(Qt){var Ze,_n=Qt[0];for(Ze=1;Ze<Qt.length&&-1!==Qt[Ze].search(/items\[\d+]|tabs\[\d+]/);Ze++)_n+="."+Qt[Ze];return _n},_triggerOnFieldDataChanged:function(Qt){this._createActionByOption("onFieldDataChanged")(Qt)},_triggerOnFieldDataChangedByDataSet:function(Qt){var _n=this;Qt&&(0,s.Kn)(Qt)&&(0,l.S6)(Qt,function(Ze,Ct){_n._triggerOnFieldDataChanged({dataField:Ze,value:Ct})})},_updateFieldValue:function(Qt,_n){if((0,s.$K)(this.option("formData"))){var Ze=this.getEditor(Qt);this.option("formData."+Qt,_n),Ze&&Ze.option("value")!==_n&&Ze.option("value",_n)}},_generateItemsFromData:function(Qt){var _n=this.option("formData"),Ze=[];return!Qt&&(0,s.$K)(_n)&&(0,l.S6)(_n,function(Ct){Ze.push({dataField:Ct})}),Qt&&(0,l.S6)(Qt,function(Ct,ft){(0,s.Kn)(ft)?Ze.push(ft):Ze.push({dataField:ft})}),Ze},_getItemByField:function(Qt,_n){var wt,Ze=this,Ct=(0,s.Kn)(Qt)?Qt:Ze._getFieldParts(Qt),ft=Ct.fieldName,zt=Ct.fieldPath;return _n.length&&(0,l.S6)(_n,function(Xt,fn){var Ke=fn.itemType;if(zt.length){var ht=zt.slice();fn=Ze._getItemByFieldPath(ht,ft,fn)}else if("group"===Ke&&!fn.caption&&!fn.name||"tabbed"===Ke&&!fn.name){var on=Ze._getSubItemField(Ke);fn.items=Ze._generateItemsFromData(fn.items),fn=Ze._getItemByField({fieldName:ft,fieldPath:zt},fn[on])}if(((Qt,_n)=>!!Qt&&(Qt.dataField===_n||Qt.name===_n||U(Qt.title)===_n||"group"===Qt.itemType&&U(Qt.caption)===_n))(fn,ft))return wt=fn,!1}),wt},_getFieldParts:function(Qt){for(var _n=Qt,Ze=_n.indexOf("."),Ct=[];-1!==Ze;)Ct.push(_n.substr(0,Ze)),Ze=(_n=_n.substr(Ze+1)).indexOf(".");return{fieldName:_n,fieldPath:Ct.reverse()}},_getItemByFieldPath:function(Qt,_n,Ze){var wt,Ct=Ze.itemType,ft=this._getSubItemField(Ct),zt="group"===Ct||"tabbed"===Ct||Ze.title;do{if(!zt)break;var Xt=Ze.name||Ze.caption||Ze.title,fn=(0,s.$K)(Xt),Ke=U(Xt),ht=void 0;if(Ze[ft]=this._generateItemsFromData(Ze[ft]),fn&&(ht=Qt.pop()),!Qt.length&&(wt=this._getItemByField(_n,Ze[ft])))break;(!fn||fn&&Ke===ht)&&Qt.length&&(wt=this._searchItemInEverySubItem(Qt,_n,Ze[ft]))}while(Qt.length&&!(0,s.$K)(wt));return wt},_getSubItemField:function(Qt){return"tabbed"===Qt?"tabs":"items"},_searchItemInEverySubItem:function(Qt,_n,Ze){var ft,Ct=this;return(0,l.S6)(Ze,function(zt,wt){if(ft=Ct._getItemByFieldPath(Qt.slice(),_n,wt))return!1}),ft||(ft=!1),ft},_changeItemOption:function(Qt,_n,Ze){(0,s.Kn)(Qt)&&(Qt[_n]=Ze)},_dimensionChanged:function(){var Qt=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==Qt&&(this._isColCountChanged(this._lastMarkupScreenFactor,Qt)&&(this._targetScreenFactor=Qt,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=Qt)},_isColCountChanged:function(Qt,_n){var Ze=!1;return(0,l.S6)(this._cachedColCountOptions,function(Ct,ft){if(ft.colCountByScreen[Qt]!==ft.colCountByScreen[_n])return Ze=!0,!1}),Ze},_refresh:function(){var Qt="."+Zn+" input, ."+Zn+" textarea";I.Z.trigger(this.$element().find(Qt),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each(function(Qt,_n){(0,s.$K)(_n.widgetInstance)&&y.Z.isEditor(_n.widgetInstance)&&(_n.widgetInstance.reset(),_n.widgetInstance.option("isValid",!0))}),S.Z.resetGroup(this._getValidationGroup())},_updateData:function(Qt,_n,Ze){var Ct=this,ft=Ze?_n:Qt;(0,s.Kn)(ft)?(0,l.S6)(ft,function(zt,wt){Ct._updateData(Ze?Qt+"."+zt:zt,wt,(0,s.Kn)(wt))}):(0,s.HD)(Qt)&&Ct._updateFieldValue(Qt,_n)},registerKeyHandler:function(Qt,_n){this.callBase(Qt,_n),this._itemsRunTimeInfo.each(function(Ze,Ct){(0,s.$K)(Ct.widgetInstance)&&Ct.widgetInstance.registerKeyHandler(Qt,_n)})},_focusTarget:function(){return this.$element().find("."+gt+" [tabindex]").first()},_visibilityChanged:function(){this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode())},_clearAutoColCountChangedTimeout:function(){this.autoColCountChangedTimeoutId&&(clearTimeout(this.autoColCountChangedTimeoutId),this.autoColCountChangedTimeoutId=void 0)},_dispose:function(){this._clearAutoColCountChangedTimeout(),S.Z.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(Qt,_n){this._updateData(Qt,_n)},getEditor:function(Qt){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(Qt)||this._itemsRunTimeInfo.findWidgetInstanceByName(Qt)},getButton:function(Qt){return this._itemsRunTimeInfo.findWidgetInstanceByName(Qt)},updateDimensions:function(){var Qt=this,_n=new k.BH;return Qt._scrollable?Qt._scrollable.update().done(function(){_n.resolveWith(Qt)}):_n.resolveWith(Qt),_n.promise()},itemOption:function(Qt,_n,Ze){var Ct=this._generateItemsFromData(this.option("items")),ft=this._getItemByField(Qt,Ct),zt=G(Ct,ft);if(ft)switch(arguments.length){case 1:return ft;case 3:var wt=this._tryCreateItemOptionAction(_n,ft,Ze,ft[_n],zt);this._changeItemOption(ft,_n,Ze);var Xt=Y(zt,_n);!this._tryExecuteItemOptionAction(wt)&&!this._tryChangeLayoutManagerItemOption(Xt,Ze)&&this.option("items",Ct);break;default:var fn;(0,s.Kn)(_n)&&!this._tryChangeLayoutManagerItemOptions(zt,_n)&&((0,l.S6)(_n,(Ke,ht)=>{var on=this._tryCreateItemOptionAction(Ke,ft,ht,ft[Ke],zt);this._changeItemOption(ft,Ke,ht),!fn&&!this._tryExecuteItemOptionAction(on)&&(fn=!0)}),fn&&this.option("items",Ct))}},validate:function(){return S.Z.validateGroup(this._getValidationGroup())},getItemID:function(Qt){return"dx_"+this.option("formID")+"_"+(Qt||new g.Z)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,C.Z)("dxForm",Li);const gr=Li},2127:(Rn,he,u)=>{"use strict";u.d(he,{Y:()=>c});var o=u(2559),c=function(I,C,g,a,p){var s=C.getController("keyboardNavigation");C.option("useLegacyKeyboardNavigation")||s&&!s.isKeyboardEnabled()||(C.createAction("onKeyDown"),o.Y4(I,C,g,a,p,l=>{C.executeAction("onKeyDown",l)}))}},8395:(Rn,he,u)=>{"use strict";u.d(he,{X:()=>re});var o=u(1805),c=u(9904),I=u(913),C=u(8225),g=u(227),a=u(1828),p=u(6492),s=u(3390),l=u(7449),d=u(2879),h=u(2722),v=u(7674),x=u(2718),b=u(5873),y=u(4270),E=u(6520),S=u(9009),O="columnHeadersView",w="rowsView",k=[O,w,"footerView"],P="adaptiveHidden",B="detailAdaptive",W="dx-field-item-content",V="hidden-column",K="dx-command-adaptive",Y="dx-command-adaptive-hidden",J="dx-adaptive-detail-row",j="dx-adaptive-item-text",q="adaptive",X="row",Te="dx-group-cell",ze="dxDataGrid-ariaAdaptiveExpand",_e="scrolling.legacyMode";function ye(te,ie){return te._columnsController.getColumnId(ie)}function ce(te,ie){var ue,be=(0,c.Z)(te),Ae=ie.component.getController("adaptiveColumns");"data"===ie.rowType?(ue=(0,c.Z)("<span>").addClass(Ae.addWidgetPrefix("adaptive-more")),I.Z.on(ue,(0,C.V4)(g.u,"dxDataGridAdaptivity"),Ae.createAction(function(){Ae.toggleExpandAdaptiveDetailRow(ie.key)})),ue.appendTo(be)):d.Z.setEmptyText(be)}function le(te){var ie,ue=null===(ie=te.data)||void 0===ie?void 0:ie.$nextCell;I.Z.off(ue,"focus",le),I.Z.trigger(ue,"dxclick")}var re={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:s.Z.ViewController.inherit({_isRowEditMode:function(){return this._getEditMode()===X},_isItemModified:function(te,ie){var ue=this._columnsController.getVisibleIndex(te.column.index),be=this._dataController.getRowIndexByKey(ie.key),Ae=this._dataController.items()[be+1];return Ae&&Ae.modifiedValues&&(0,a.$K)(Ae.modifiedValues[ue])},_renderFormViewTemplate:function(te,ie,ue){var be=this,Ae=te.column,Ne=be.createAction(function(){be._editingController.isEditing()&&I.Z.trigger(ue,g.u)}),mt=ie.row.data,tt=Ae.calculateCellValue(mt),Le=d.Z.getDisplayValue(Ae,tt,mt,ie.rowType),gt=d.Z.formatValue(Le,Ae),tn=this._editingController.isCellOrBatchEditMode(),Pe=be._rowsView;if(Ae.allowEditing&&be.getController("keyboardNavigation").isKeyboardEnabled()&&(ue.attr("tabIndex",be.option("tabIndex")),tn&&(I.Z.off(ue,"focus",Ne),I.Z.on(ue,"focus",Ne))),Ae.cellTemplate){var $e=(0,b.l)({},ie,{value:tt,displayValue:Le,text:gt,column:Ae});Pe.renderTemplate(ue,Ae.cellTemplate,$e,(0,E.al)(ue)).done(()=>{Pe._cellPrepared(ue,ie)})}else{var ge=ue.get(0);Ae.encodeHtml?ge.textContent=gt:ge.innerHTML=gt,ue.addClass(j),(!(0,a.$K)(gt)||""===gt)&&ue.html("&nbsp;"),be._isRowEditMode()||be._isItemModified(te,ie)&&ue.addClass("dx-item-modified"),Pe._cellPrepared(ue,ie)}},_getTemplate:function(te,ie){var ue=this,be=te.column,Ae=this.getController("editing");return function(Ne,mt){var tt=(0,c.Z)(mt),Le=ue._columnsController.getVisibleIndex(be.index),gt=(0,b.l)({},ie),tn=function(){var Pe=ue._isItemEdited(te);gt.value=ie.row.values[Le],Pe||be.showEditorAlways?Ae.renderFormEditTemplate(gt,te,Ne,tt,!Pe):(gt.column=be,gt.columnIndex=Le,ue._renderFormViewTemplate(te,gt,tt))};tn(),gt.watch&&gt.watch(function(){return{isItemEdited:ue._isItemEdited(te),value:ie.row.values[Le]}},function(){tt.contents().remove(),tt.removeClass(j),tn()})}},_isVisibleColumnsValid:function(te){return!(te<2||te.length-function(){for(var ie=0,ue=0;ue<te.length;ue++)te[ue].command&&ie++;return ie}()<=1)},_calculatePercentWidths:function(te,ie){var ue=this,be=0;return ie.forEach(function(Ae,Ne){te[Ne]!==P&&(be+=ue._getItemPercentWidth(Ae))}),be},_isPercentWidth:function(te){return(0,a.HD)(te)&&"%"===te.slice(-1)},_isColumnHidden:function(te){return this._hiddenColumns.filter(function(ie){return ie.index===te.index}).length>0},_getAverageColumnsWidth:function(te,ie,ue){var be=this,Ae=0,Ne=0;return ie.forEach(function(mt){if(!be._isColumnHidden(mt)){var tt=mt.width;(0,a.$K)(tt)&&!isNaN(parseFloat(tt))?Ae+=be._isPercentWidth(tt)?be._calculatePercentWidth({visibleIndex:mt.visibleIndex,columnsCount:ie.length,columnsCanFit:ue,bestFitWidth:mt.bestFitWidth,columnWidth:tt,containerWidth:te}):parseFloat(tt):Ne++}}),(te-Ae)/Ne},_calculateColumnWidth:function(te,ie,ue,be){var Le,Ae=ye(this,te),Ne=this._columnsController.columnOption(Ae,"width"),mt=this._columnsController.columnOption(Ae,"bestFitWidth"),tt=ue.length;if(Ne&&"auto"!==Ne){if(!this._isPercentWidth(Ne))return parseFloat(Ne);Le=this._calculatePercentWidth({visibleIndex:te.visibleIndex,columnsCount:tt,columnsCanFit:be,bestFitWidth:mt,columnWidth:Ne,containerWidth:ie})}else Le=this.option("columnAutoWidth")||te.command?mt:this._getAverageColumnsWidth(ie,ue,be);return Le},_calculatePercentWidth:function(te){var ie=te.visibleIndex<te.columnsCount-1&&te.columnsCanFit,ue=te.containerWidth*parseFloat(te.columnWidth)/100,be=te.columnsCanFit&&ue<te.bestFitWidth?te.bestFitWidth:ue;return ie?te.containerWidth*parseFloat(te.columnWidth)/100:be},_getNotTruncatedColumnWidth:function(te,ie,ue,be){var Ae=ye(this,te),Ne=this._columnsController.columnOption(Ae,"width"),mt=this._columnsController.columnOption(Ae,"bestFitWidth");if(Ne&&"auto"!==Ne&&!this._isPercentWidth(Ne))return parseFloat(Ne);var tt=this._calculateColumnWidth(te,ie,ue,be);return tt<mt?null:tt},_getItemPercentWidth:function(te){var ie=0;return te.width&&this._isPercentWidth(te.width)&&(ie=parseFloat(te.width)),ie},_getCommandColumnsWidth:function(){var te=this,ie=te._columnsController.getVisibleColumns(),ue=0;return(0,x.S6)(ie,function(be,Ae){(Ae.index<0||Ae.command)&&(ue+=te._columnsController.columnOption(ye(te,Ae),"bestFitWidth")||0)}),ue},_isItemEdited:function(te){if(this.isFormOrPopupEditMode())return!1;if(!this._isRowEditMode()){var ue=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,be=this._columnsController.getVisibleIndex(te.column.index);return this._editingController.isEditCell(ue,be)}var ie=this.option("editing.editRowKey");return!!(0,v.bY)(ie,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(te){var ie=[];return(0,x.S6)(te,function(ue,be){ie.push({column:be,name:be.name,dataField:be.dataField,visibleIndex:be.visibleIndex})}),ie},_getAdaptiveColumnVisibleIndex:function(te){for(var ie=0;ie<te.length;ie++)if(te[ie].command===q)return ie},_hideAdaptiveColumn:function(te,ie){var ue=this._getAdaptiveColumnVisibleIndex(ie);(0,a.$K)(ue)&&(te[ue]=P,this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:ue}))},_showHiddenCellsInView:function(te){var{$cells:ie,isCommandColumn:ue}=te,be=this.addWidgetPrefix(V);ue?(be=Y,ie.attr({tabIndex:0,"aria-hidden":null}).removeClass(be)):ie.removeClass(be)},_showHiddenColumns:function(){for(var te=0;te<k.length;te++){var ie=this.getView(k[te]);if(ie&&ie.isVisible()&&ie.element()){var ue=ie.name,be=ie.element().find("."+Y);this._showHiddenCellsInView({viewName:ue,$cells:be,isCommandColumn:!0});var Ae=ie.element().find("."+this.addWidgetPrefix(V));this._showHiddenCellsInView({viewName:ue,$cells:Ae})}}},_isCellValid:function(te){return te&&te.length&&!te.hasClass("dx-master-detail-cell")&&!te.hasClass(Te)},_hideVisibleColumn:function(te){var{isCommandColumn:ie,visibleIndex:ue}=te,be=this;k.forEach(function(Ae){var Ne=be.getView(Ae);Ne&&be._hideVisibleColumnInView({view:Ne,isCommandColumn:ie,visibleIndex:ue})})},_hideVisibleColumnInView:function(te){var Ne,{view:ie,isCommandColumn:ue,visibleIndex:be}=te,Ae=ie.name,mt=this._columnsController.getVisibleColumns()[be],tt=this._editingController&&this._editingController.getEditFormRowIndex();if(ie&&ie.isVisible()&&mt)for(var Le=ie.getRowsCount(),gt=ie._getRowElements(),tn=0;tn<Le;tn++)if(tn!==tt||Ae!==w||"popup"===this.option("editing.mode")){var $e=Ae===O?this._columnsController.getVisibleIndex(mt.index,tn):be;if($e>=0){var ge=gt.eq(tn);Ne=this._findCellElementInRow(ge,$e),this._isCellValid(Ne)&&this._hideVisibleCellInView({viewName:Ae,isCommandColumn:ue,$cell:Ne})}}},_findCellElementInRow(te,ie){var ue=te.children(),be=ie,Ae=!1;if(te.hasClass("dx-group-row")){var Ne=te.find(".".concat(Te)),mt=Ne.attr("colspan");if(Ne.length&&(0,a.$K)(mt)){var tt=parseInt(mt);ie>Ne.index()+tt-1?be=ie-tt+1:Ae=!0}}return Ae?void 0:ue.eq(be)},_hideVisibleCellInView:function(te){var{$cell:ie,isCommandColumn:ue}=te,be=ue?Y:this.addWidgetPrefix(V);ie.attr({tabIndex:-1,"aria-hidden":!0}).addClass(be)},_getEditMode:function(){return this._editingController.getEditMode()},isFormOrPopupEditMode:function(){var te=this._getEditMode();return"form"===te||"popup"===te},hideRedundantColumns:function(te,ie,ue){if(this._hiddenColumns=[],this._isVisibleColumnsValid(ie)&&ue.length){var gt,tn,Pe,be=0,Ae=this.component.$element(),Ne=(0,o.dz)(Ae)-this._getCommandColumnsWidth(),mt=function(){return ie.filter(Ve=>!Ve.command&&0===this._hiddenColumns.filter(St=>St.index===Ve.index).length)}.bind(this),tt=mt(),Le=tt.length;do{Pe=!1,be=0;var $e=this._calculatePercentWidths(te,ie),ge=$e<100&&0!==$e;for(gt=0;gt<ie.length;gt++){var Ce=ie[gt],De=this._getNotTruncatedColumnWidth(Ce,Ne,tt,ge),Ye=ye(this,Ce),bt=this._columnsController.columnOption(Ye,"width"),yt=this._columnsController.columnOption(Ye,"minWidth"),kt=this._columnsController.columnOption(Ye,"bestFitWidth");if(te[gt]!==P){if(!De&&!Ce.command&&!Ce.fixed){Pe=!0;break}(!bt||"auto"===bt)&&(De=Math.max(kt||0,yt||0)),(Ce.command!==q||tn)&&(be+=De)}else tn=!0}if(Pe=Pe||be>(0,o.dz)(Ae)){var gn=ue.pop(),ut=this._columnsController.getVisibleIndex(gn.index);Ne+=this._calculateColumnWidth(gn,Ne,tt,ge),this._hideVisibleColumn({visibleIndex:ut}),te[ut]=P,this._hiddenColumns.push(gn),tt=mt()}}while(Pe&&tt.length>1&&ue.length);Le===tt.length&&this._hideAdaptiveColumn(te,ie)}else this._hideAdaptiveColumn(te,ie)},getAdaptiveDetailItems:function(){return this._$itemContents},getItemContentByColumnIndex:function(te){for(var ie,ue=0;ue<this._$itemContents.length;ue++){var be=(ie=this._$itemContents.eq(ue)).data("dx-form-item");if(be&&be.column&&this._columnsController.getVisibleIndex(be.column.index)===te)return ie}},toggleExpandAdaptiveDetailRow:function(te,ie){this.isFormOrPopupEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(te,ie)},createFormByHiddenColumns:function(te,ie){var ue=this,be=(0,c.Z)(te),Ae={items:ue._getFormItemsByHiddenColumns(ue._hiddenColumns),formID:"dx-"+new p.Z},Ne=(0,h.x2)()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:Ae}),ue._$itemContents=null,ue._form=ue._createComponent((0,c.Z)("<div>").appendTo(be),l.Z,(0,b.l)(Ne,Ae,{customizeItem:function(mt){var tt=mt.column||ue._columnsController.columnOption(mt.name||mt.dataField);tt&&(mt.label=mt.label||{},mt.label.text=mt.label.text||tt.caption,mt.column=tt,mt.template=ue._getTemplate(mt,ie,ue.updateForm.bind(ue))),Ae.customizeItem&&Ae.customizeItem.call(this,mt)},onContentReady:function(mt){Ae.onContentReady&&Ae.onContentReady.call(this,mt),ue._$itemContents=be.find("."+W)}}))},hasAdaptiveDetailRowExpanded:function(){return(0,a.$K)(this._dataController.adaptiveExpandedKey())},updateForm:function(te){this.hasAdaptiveDetailRowExpanded()&&this._form&&(0,a.$K)(this._form._contentReadyAction)&&(te&&te.length?this._form.option("items",this._getFormItemsByHiddenColumns(te)):this._form.repaint())},updateHidingQueue:function(te){var ue,be,ie=te.filter(function(Ne){return Ne.visible&&!Ne.type&&!Ne.fixed&&!((0,a.$K)(Ne.groupIndex)&&Ne.groupIndex>=0)});if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(be=0;be<ie.length;be++)(0,a.$K)(ie[be].hidingPriority)&&ie[be].hidingPriority>=0&&(ue=!0,this._hidingColumnsQueue[ie[be].hidingPriority]=ie[be]);if(ue)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(be=0;be<ie.length;be++){var Ae=this._columnsController.getVisibleIndex(ie[be].index);this._hidingColumnsQueue[Ae]=ie[be]}return this._hidingColumnsQueue=this._hidingColumnsQueue.filter(Object),this._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var te=this;te._columnsController=te.getController("columns"),te._dataController=te.getController("data"),te._rowsView=te.getView("rowsView"),te._columnsController.addCommandColumn({type:q,command:q,visible:!0,adaptiveHidden:!0,cssClass:K,alignment:"center",width:"auto",cellTemplate:ce,fixedPosition:"right"}),te._columnsController.columnsChanged.add(function(){var ie=!!te.updateHidingQueue(te._columnsController.getColumns()).length;te._columnsController.columnOption("command:adaptive","adaptiveHidden",!ie,!0)}),te._editingController=te.getController("editing"),te._hidingColumnsQueue=[],te._hiddenColumns=[],te.createAction("onAdaptiveDetailRowPreparing"),te.callBase()},optionChanged:function(te){"columnHidingEnabled"===te.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!te.value),this.callBase(te)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(te){return this._dataController.adaptiveExpandedKey()&&(0,v.bY)(this._dataController.adaptiveExpandedKey(),te)},expandAdaptiveDetailRow:function(te){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(te)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()},updateCommandAdaptiveAriaLabel:function(te,ie){var ue=this._dataController.getRowIndexByKey(te);if(-1!==ue){var be=(0,c.Z)(this.component.getRowElement(ue));this.setCommandAdaptiveAriaLabel(be,ie)}},setCommandAdaptiveAriaLabel:function(te,ie){te.find(".dx-command-adaptive").attr("aria-label",S.Z.format(ie))}})},extenders:{views:{rowsView:{_getCellTemplate:function(te){var ie=this;return te.rowType===B&&"detail"===te.column.command?function(be,Ae){ie._adaptiveColumnsController.createFormByHiddenColumns((0,c.Z)(be),Ae)}:ie.callBase(te)},_createRow:function(te){var ie=this.callBase.apply(this,arguments);return te&&te.rowType===B&&te.key===this._dataController.adaptiveExpandedKey()&&ie.addClass(J),ie},_renderCells:function(te,ie){this.callBase(te,ie);var ue=this._adaptiveColumnsController,be=ue.getHidingColumnsQueue().length,Ae=ue.getHiddenColumns().length;be&&!Ae&&function ne(te){return te.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}(te).last().addClass("dx-last-data-cell"),"data"===ie.row.rowType&&ue.setCommandAdaptiveAriaLabel(te,ze)},_getColumnIndexByElementCore:function(te){var ie=te.closest("."+W);if(ie.length&&ie.closest(this.component.$element()).length){var ue=ie.length?ie.first().data("dx-form-item"):null;return ue&&ue.column&&this._columnsController.getVisibleIndex(ue.column.index)}return this.callBase(te)},_cellPrepared:function(te,ie){this.callBase.apply(this,arguments),ie.row.rowType!==B&&ie.column.visibleWidth===P&&te.addClass(this.addWidgetPrefix(V))},getCell:function(te,ie){var ue=this._dataController.items()[te?.rowIndex];if(ue?.rowType===B){var be=this._adaptiveColumnsController.getAdaptiveDetailItems();return this.callBase(te,ie,be)}return this.callBase.apply(this,arguments)},_getCellElement:function(te,ie){var ue=this._dataController.items()[te];return ue&&ue.rowType===B?this._adaptiveColumnsController.getItemContentByColumnIndex(ie):this.callBase.apply(this,arguments)},getContextMenuItems:function(te){if(te.row&&"detailAdaptive"===te.row.rowType){var ie=this.component.getView("columnHeadersView"),ue=(0,c.Z)(te.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return te.column=ue?ue.column:te.column,ie.getContextMenuItems&&ie.getContextMenuItems(te)}return this.callBase&&this.callBase(te)},isClickableElement:function(te){return!!this.callBase&&this.callBase(te)||!!te.closest("."+K).length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(te,ie){this.callBase(te,te.visibleWidth===P?te.bestFitWidth:ie)}},columnsResizer:{_pointCreated:function(te,ie,ue){var be=this.callBase(te,ie,ue),Ae=ue[te.columnIndex]||{},Ne=this._getNextColumnIndex(te.columnIndex);return be||Ae.visibleWidth===P||Ne!==te.columnIndex+1&&(ue[Ne]||{}).command},_getNextColumnIndex:function(te){for(var ie=this._columnsController.getVisibleColumns(),ue=this.callBase(te);ie[ue]&&ie[ue].visibleWidth===P;)ue++;return ue}},draggingHeader:{_pointCreated:function(te,ie,ue,be){return this.callBase(te,ie,ue,be)||(ie[te.columnIndex-1]||{}).visibleWidth===P}},editing:{_isRowEditMode:function(){return this.getEditMode()===X},_getFormEditItemTemplate:function(te,ie){return this.getEditMode()!==X&&"detailAdaptive"===te.rowType?(te.columnIndex=this._columnsController.getVisibleIndex(ie.index),this.getColumnTemplate(te)):this.callBase(te,ie)},_closeEditItem:function(te){var ie=te.closest("."+W),ue=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,be=ie.length?ie.first().data("dx-form-item"):null,Ae=be&&be.column&&this._columnsController.getVisibleIndex(be.column.index);this.isEditCell(ue,Ae)||this.callBase(te)},_beforeUpdateItems:function(te,ie){if(!this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.hasHiddenColumns()){var ue=this._dataController.items(),be=ue[ie],Ae=d.Z.getIndexByKey(this._dataController.adaptiveExpandedKey(),ue);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),Ae>=0&&te.push(Ae+1),te.push(ie+1),this._dataController.adaptiveExpandedKey(be.key)}},_afterInsertRow:function(te){this.callBase.apply(this,arguments),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(te,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){this.callBase.apply(this,arguments);var te=new y.BH;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,y.gx)(this.getController("validating").validate(!0)).done(ie=>{ie&&this._cancelEditAdaptiveDetailRow(),te.resolve()}):te.resolve(),te.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(te){var ie=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(te.key)&&ie.push(te.rowType===B?te.rowIndex-1:te.rowIndex+1),ie},_beforeCloseEditCellInBatchMode:function(te){var ie=this._dataController._adaptiveExpandedKey;if(ie){var ue=d.Z.getIndexByKey(ie,this._dataController.items());ue>-1&&te.unshift(ue)}},editRow:function(te){this._adaptiveController.isFormOrPopupEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(te)},deleteRow:function(te){var ie=this._dataController.getKeyByRowIndex(te);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(ie)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(te)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_correctColumnWidths:function(te,ie){var ue=this._adaptiveColumnsController,be=ue.getHiddenColumns(),Ae=ue.updateHidingQueue(this._columnsController.getColumns());ue.hideRedundantColumns(te,ie,Ae);var Ne=ue.getHiddenColumns();return ue.hasAdaptiveDetailRowExpanded()&&be.length!==Ne.length&&ue.updateForm(Ne),!Ne.length&&ue.collapseAdaptiveDetailRow(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(te){te&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(te)},_needStretch:function(){var te=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||te.getHidingColumnsQueue().length||te.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(te,ie){var ue=ie.changeType;if(te=this.callBase.apply(this,arguments),"loadingAll"===ue||!(0,a.$K)(this._adaptiveExpandedKey))return te;var be=d.Z.getIndexByKey(this._adaptiveExpandedKey,te),Ae=!1===this.option(_e);if(be>=0){var Ne=te[be];te.splice(be+1,0,{visible:!0,rowType:B,key:Ne.key,data:Ne.data,node:Ne.node,modifiedValues:Ne.modifiedValues,isNewRow:Ne.isNewRow,values:Ne.values})}else"refresh"===ue&&(!Ae||!ie.repaintChangesOnly)&&(this._adaptiveExpandedKey=void 0);return te},_getRowIndicesForExpand:function(te){var ie=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(te)){var ue=ie[ie.length-1];ie.push(ue+1)}return ie},adaptiveExpandedKey:function(te){if(!(0,a.$K)(te))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=te},toggleExpandAdaptiveDetailRow:function(te,ie){var ue=d.Z.getIndexByKey(this._adaptiveExpandedKey,this._items),be=d.Z.getIndexByKey(te,this._items);ue>=0&&ue===be&&!ie&&(te=void 0,be=-1);var Ae=this._adaptiveExpandedKey;this._adaptiveExpandedKey=te,ue>=0&&ue++,be>=0&&be++;var Ne=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[ue-Ne,be-Ne]});var mt=this.getController("adaptiveColumns");mt.updateCommandAdaptiveAriaLabel(te,"dxDataGrid-ariaAdaptiveCollapse"),mt.updateCommandAdaptiveAriaLabel(Ae,ze)},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix("revert-tooltip")}},columns:{_isColumnVisible:function(te){return this.callBase(te)&&!te.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(te){return this.callBase.apply(this,arguments)&&!te.hasClass(this.addWidgetPrefix(V))&&!te.hasClass(Y)},_processNextCellInMasterDetail:function(te,ie){this.callBase(te);var ue=this._editingController.isCellOrBatchEditMode();this._editingController.isEditing()&&te&&ue&&!this._isInsideEditForm(te)&&(I.Z.off(te,"focus",le),I.Z.on(te,"focus",{$nextCell:te},le),I.Z.trigger(ie,"focus"))},_isCellElement:function(te){return this.callBase.apply(this,arguments)||te.hasClass(j)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},2116:(Rn,he,u)=>{"use strict";u.d(he,{T:()=>j});var o=u(1805),c=u(9904),I=u(7674),C=u(3390),g=u(5004),a=u(9009),p=u(2722),s=u(7463),l=u(2941),d=u(8531),h=u(219),v=u(1828),x=u(5873),b=u(2718),E="column-chooser-button",S="notouch-action",R="column-chooser",P="dx-column-chooser-item",V=function(ee,G){var q=[],Z="select"===ee.option("columnChooser.mode");return G.length&&(0,b.S6)(G,function(X,M){var oe={text:M.caption,cssClass:M.cssClass,allowHiding:M.allowHiding,expanded:!0,id:M.index,disabled:!1,disableCheckBox:!1===M.allowHiding,parentId:(0,v.$K)(M.ownerBand)?M.ownerBand:null};Z&&(oe.selected=M.visible),q.push(oe)}),q},j={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:a.Z.format("dxDataGrid-columnChooserTitle"),emptyPanelText:a.Z.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:C.Z.ViewController.inherit({renderShowColumnChooserButton:function(ee){var M,G=this,q=G.addWidgetPrefix(E),Z=G.option("columnChooser.enabled"),X=ee.find("."+q);Z?X.length?X.show():(M=(0,c.Z)("<div>").addClass(q).appendTo(ee),G._createComponent(M,h.Z,{icon:R,onClick:function(){G.getView("columnChooserView").showColumnChooser()},hint:G.option("columnChooser.title"),integrationOptions:{}})):X.hide()},getPosition:function(){var ee=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:ee&&ee.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}})},views:{columnChooserView:g.p.inherit({_resizeCore:I.ZT,_isWinDevice:function(){return!!l.Z.real().win},_updateList:function(ee){var G,q=this._popupContainer.$content(),Z="select"===this.option("columnChooser.mode"),X=this._columnChooserList,M=this._columnsController.getChooserColumns(Z);if(this._popupContainer.setAria({role:"dialog",label:a.Z.format("dxDataGrid-columnChooserTitle")}),Z&&X&&ee&&"selection"===ee.changeType){G=V(this,M);for(var oe=0;oe<G.length;oe++){var fe=G[oe].selected,Te=G[oe].id;Te===ee.columnIndex&&(fe?X.selectItem(Te,fe):X.unselectItem(Te,fe))}}else(!Z||!X||"full"===ee)&&(this._popupContainer.$wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!Z).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),Z),G=V(this,M),this._renderTreeView(q,G))},_initializePopupContainer:function(){var ee=this,G=ee.element().addClass(ee.addWidgetPrefix("column-chooser")),q=ee.option("columnChooser"),Z=(0,p.Vk)(),X=(0,p.OD)(Z),M=(0,p.x2)(Z),oe={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{text:q.title,toolbar:"top",location:X||M?"before":"center"}],position:ee.getController("columnChooser").getPosition(),width:q.width,height:q.height,rtlEnabled:ee.option("rtlEnabled"),onHidden:function(){ee._isWinDevice()&&(0,c.Z)("body").removeClass(ee.addWidgetPrefix(S))},container:q.container};X||M?(0,x.l)(oe,{showCloseButton:!0}):oe.toolbarItems[oe.toolbarItems.length]={shortcut:"cancel"},(0,v.$K)(this._popupContainer)?this._popupContainer.option(oe):(ee._popupContainer=ee._createComponent(G,d.Z,oe),ee._popupContainer.on("optionChanged",function(fe){"visible"===fe.name&&ee.renderCompleted.fire()}))},_renderCore:function(ee){this._popupContainer&&this._updateList(ee)},_renderTreeView:function(ee,G){var q=this,Z=this.option("columnChooser"),X="select"===Z.mode,M={items:G,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:Z.allowSearch,searchTimeout:Z.searchTimeout,onItemRendered:function(Te){if(Te.itemData.disableCheckBox){var ze,Be=(0,c.Z)(Te.itemElement).closest(".dx-treeview-node");if(Be.length&&(ze=Be.find(".dx-checkbox")).length){var ae=ze.data("dxCheckBox");ae&&ae.option("disabled",!0)}}}},oe=ee.find(".dx-scrollable").data("dxScrollable"),fe=oe&&oe.scrollTop();X&&!this._columnsController.isBandColumnsUsed()&&ee.addClass(this.addWidgetPrefix("column-chooser-plain")),M.onContentReady=function(Te){(0,I.Su)(function(){if(fe){var Be=(0,c.Z)(Te.element).find(".dx-scrollable").data("dxScrollable");Be&&Be.scrollTo({y:fe})}q.renderCompleted.fire()})},this._isWinDevice()&&(M.useNativeScrolling=!1),(0,x.l)(M,X?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(M.searchEnabled||(M.searchValue=""),this._columnChooserList.option(M)):(this._columnChooserList=this._createComponent(ee,s.Z,M),ee.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(G,q,Z){(0,c.Z)(Z).text(G.text).parent().addClass(G.cssClass).addClass(P)}}},_prepareSelectModeConfig:function(){var ee=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(G){1!==ee._columnsController.getVisibleColumns().filter(function(X){return!X.command}).length||G.itemData.selected?setTimeout(function(){ee._columnsController.columnOption(G.itemData.id,"visible",G.itemData.selected)},300):G.component.selectItem(G.itemElement)}}},_columnOptionChanged:function(ee){var G=ee.changeTypes,q=ee.optionNames,Z="select"===this.option("columnChooser.mode");if(this.callBase(ee),Z){var M=q.showInColumnChooser||q.caption||q.visible||G.columns&&q.all;q.visible&&1===q.length&&void 0!==ee.columnIndex?this.render(null,{changeType:"selection",columnIndex:ee.columnIndex}):M&&this.render(null,"full")}},optionChanged:function(ee){"columnChooser"===ee.name?(this._initializePopupContainer(),this.render(null,"full")):this.callBase(ee)},getColumnElements:function(){var G,ee=[],q="select"===this.option("columnChooser.mode"),Z=this._columnsController.getChooserColumns(q),X=this._popupContainer&&this._popupContainer.$content(),M=X&&X.find(".dx-treeview-node");return M&&Z.forEach(function(oe){var fe=(G=M.filter("[data-item-id = '"+oe.index+"']")).length?G.children("."+P).get(0):null;ee.push(fe)}),(0,c.Z)(ee)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(ee,G){var q=ee&&ee.allowHiding&&("columnChooser"!==G||!ee.visible&&this._columnsController.isParentColumnVisible(ee.index));return this.isColumnChooserVisible()&&q},getBoundingRect:function(){var ee=this._popupContainer&&this._popupContainer.$overlayContent();if(ee&&ee.is(":visible")){var G=ee.offset();return{left:G.left,top:G.top,right:G.left+(0,o.Y_)(ee),bottom:G.top+(0,o.zp)(ee)}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,c.Z)("body").addClass(this.addWidgetPrefix(S))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var ee=this._popupContainer;return ee&&ee.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}})},extenders:{views:{headerPanel:{_getToolbarItems:function(){var ee=this.callBase();return this._appendColumnChooserItem(ee)},_appendColumnChooserItem:function(ee){var G=this;if(G.option("columnChooser.enabled")){var Z=G.option("columnChooser.title");ee.push({widget:"dxButton",options:{icon:R,onClick:function(){G.component.getView("columnChooserView").showColumnChooser()},hint:Z,text:Z,onInitialized:function(M){(0,c.Z)(M.element).addClass(G._getToolbarButtonClass(G.addWidgetPrefix(E)))},elementAttr:{"aria-haspopup":"dialog"}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40})}return ee},optionChanged:function(ee){"columnChooser"===ee.name?(this._invalidate(),ee.handled=!0):this.callBase(ee)},isVisible:function(){var ee=this.option("columnChooser.enabled");return this.callBase()||ee}}},controllers:{columns:{allowMoveColumn:function(ee,G,q,Z){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===Z)&&this.callBase(ee,G,q,Z)}}}}}},4047:(Rn,he,u)=>{"use strict";u.d(he,{N:()=>ee});var o=u(1805),c=u(9904),I=u(913),C=u(1186),g=u(9009),a=u(2879),p=u(1828),s=u(5873),l=u(2718),d=u(4722),h=u(5450),v=u(6961),x=u(8487),b=u(4270),y="content",E="content-fixed",S="dx-master-detail-cell",O="dx-first-cell",w="dx-last-cell",T="dx-state-hover",k="dx-col-fixed",P="dx-pointer-events-none",B="transparent",W="dx-group-row",V=function(G){var q=-1;return(0,l.S6)(G,function(Z,X){if(X.command===B)return q=Z,!1}),q},U=function(G,q,Z){var X=0;if(G&&q&&Z)for(var M=0;M<G.length;M++)G[M].command===B?X+=G[M].colspan:(q[X]<Z[M]&&(q[X]=Z[M]),X++);return q},K={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(G){return this.callBase(G).toggleClass(k,!(!this._isFixedTableRendering||!(G.fixed||G.command&&G.command!==B)))},_correctColumnIndicesForFixedColumns:function(G,q){var Z=V(G),X=G[Z].colspan,M=q&&q.columnIndices;M&&(q.columnIndices=M.map(function(oe){if(oe)return oe.map(function(fe){return fe<Z?fe:fe>=Z+X?fe-X+1:-1}).filter(function(fe){return fe>=0})}))},_partialUpdateFixedTable(G){var q=this._fixedTableElement,Z=this._getRowElementsCore(q);q.children("colgroup").replaceWith(this._createColGroup(G));for(var M=0;M<Z.length;M++)this._partialUpdateFixedRow((0,c.Z)(Z[M]),G)},_partialUpdateFixedRow(G,q){var fe,Z=G.get(0).childNodes,X=V(q),M=q[X],Te=this._columnsController.getColumnIndexOffset()+1,Be=M.colspan;if(G.hasClass("dx-master-detail-row")){var ze;Z[0].setAttribute("colspan",null===(ze=this._columnsController.getVisibleColumns())||void 0===ze?void 0:ze.length)}else{G.hasClass(W)&&(Be=(fe=this._getGroupCellOptions({row:G.data("options"),columns:this._columnsController.getVisibleColumns()})).colspan-Math.max(0,Z.length-(fe.columnIndex+2)));for(var ae=0;ae<Z.length;ae++){var _e=fe?ae===fe.columnIndex+1:ae===X;Z[ae].setAttribute("aria-colindex",Te),_e?(Z[ae].setAttribute("colspan",Be),Te+=Be):Te++}}},_renderTable:function(G){var q,Z=this.getFixedColumns();this._isFixedColumns=!!Z.length;var X=this.callBase(G);if(this._isFixedColumns){var M=G?.change;if(this._isFixedTableRendering=!0,null!=M&&M.virtualColumnsScrolling&&!0!==this.option("scrolling.legacyMode"))this._partialUpdateFixedTable(Z),this._isFixedTableRendering=!1;else{var oe=M?.columnIndices;this._correctColumnIndicesForFixedColumns(Z,M),q=this._createTable(Z),this._renderRows(q,(0,s.l)({},G,{columns:Z})),(0,b.gx)(this._updateContent(q,M)).done(()=>{this._isFixedTableRendering=!1}),oe&&(M.columnIndices=oe)}}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return X},_renderRow:function(G,q){var Z,X=q.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&X&&X.length){Z=0;var M=q.row.cells||[];X=X.slice(),q.row.cells=X;for(var oe=0;oe<M.length;oe++)M[oe].column&&M[oe].column.command===B?Z=(M[oe].column.colspan||1)-1:X[oe+Z]=M[oe]}},_createCell:function(G){var fe,Te,Be,q=this,Z=G.column,X=Z&&Z.command,M=G.rowType,oe=q.callBase.apply(q,arguments);(q._isFixedTableRendering||"filter"===M)&&(Te=(fe=q.getFixedColumns())[(Be=V(fe))-1]),q._isFixedTableRendering?X===B&&(oe.addClass(P).toggleClass(O,0===Be||Te&&"expand"===Te.command).toggleClass(w,fe.length&&Be===fe.length-1),"freeSpace"!==M&&a.Z.setEmptyText(oe)):"filter"===M&&oe.toggleClass(O,G.columnIndex===Be);var ze=q.option("rowAlternationEnabled")&&G.isAltRow,ae="multiple"===q.option("selection.mode")&&0===G.columnIndex&&"header"===G.rowType;return d.Z.mozilla&&G.column.fixed&&"group"!==G.rowType&&!ze&&!ae&&oe.addClass(k),oe},_wrapTableInScrollContainer:function(){var G=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&G.addClass(this.addWidgetPrefix(E)),G},_renderCellContent:function(G,q){var Z,X=q.column,M=this._isFixedTableRendering,oe="group"===q.rowType&&(0,p.$K)(X.groupIndex);if(M&&oe&&!X.command&&!X.groupCellTemplate&&G.css("pointerEvents","none"),!M&&this._isFixedColumns){if(Z=X.fixed||X.command&&!1!==X.fixed,oe&&(Z=!1,q.row.summaryCells&&q.row.summaryCells.length)){var fe=this._columnsController.getVisibleColumns(),Te=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(X.colspan,{columns:fe,row:q.row,isFixed:!0}):0;if(Te>0){var Be=V(this._columnsController.getFixedColumns());Z=fe.length-Te<Be}}if(Z){if(X.command&&"buttons"!==X.type||"group"===q.rowType)return void G.html("&nbsp;").addClass(X.cssClass);G.addClass("dx-hidden-cell")}}X.command!==B&&this.callBase.apply(this,arguments)},_getCellElementsCore:function(G){var q=this.callBase.apply(this,arguments),Z=q.parent().hasClass(W),X="columnHeadersView"===this.name?G:void 0;if(this._fixedTableElement&&q){var M=this.getFixedColumns(X),oe=this._getRowElements(this._fixedTableElement).eq(G).children("td");(0,l.S6)(oe,(fe,Te)=>{if(Z)q[fe]&&"hidden"!==Te.style.visibility&&(q[fe]=Te);else{var Be=M[fe];if(Be)if(Be.command===B)oe.eq(fe).hasClass(S)&&(q[fe]=Te||q[fe]);else{var ze=this._columnsController.getVisibleIndexByColumn(Be,X);q[ze]=Te||q[ze]}}})}return q},getColumnWidths:function(){var G,q=this.callBase(),Z=this.getFixedColumns();return this._fixedTableElement&&q.length&&(G=this.callBase(this._fixedTableElement)),U(Z,q,G)},getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},setTableElement:function(G){this._isFixedTableRendering?this._fixedTableElement=G.addClass(P):this.callBase(G)},getColumns:function(G,q){return q=q||this.getTableElement(),this._isFixedTableRendering||q&&q.closest("table").parent("."+this.addWidgetPrefix(E)).length?this.getFixedColumns(G):this.callBase(G,q)},getRowIndex:function(G){var q=this._fixedTableElement;return q&&q.find(G).length?this._getRowElements(q).index(G):this.callBase(G)},getTableElements:function(){var G=this.callBase.apply(this,arguments);return this._fixedTableElement&&(G=(0,c.Z)([G.get(0),this._fixedTableElement.get(0)])),G},getFixedColumns:function(G){return this._columnsController.getFixedColumns(G)},getFixedColumnsOffset:function(){var q,G={left:0,right:0};if(this._fixedTableElement){var Z=(q=this.getTransparentColumnElement()).position();G={left:Z.left,right:(0,o.Y_)(this.element(),!0)-((0,o.Y_)(q,!0)+Z.left)}}return G},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find("."+P).first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(G){var q,Z=this._columnsController.getVisibleColumns(),X=G.widths,M=X&&X.length&&(0,p.$K)(Z[0].visibleWidth),oe=G.optionNames,fe=oe&&oe.width;if(this.callBase.apply(this,arguments),this._fixedTableElement){var Be=X&&X.some(function(ze){return"auto"===ze});Be&&(!M||!this.isScrollbarVisible(!0))&&(q=Z),this.callBase((0,s.l)({},G,{$tableElement:this._fixedTableElement,columns:q,fixed:!0}))}(M||fe&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(G){if(this._isFixedTableRendering&&!this.option("columnAutoWidth")){var q=this._columnsController.getVisibleColumns();q.filter(function(X){return!X.width}).length&&(G=q)}return this.callBase(G)},_getClientHeight:function(G){var q=G.getBoundingClientRect&&(0,h.l)(G);return q&&q.height?q.height:G.clientHeight},synchronizeRows:function(){var Z,X,M,oe,G=[],q=[];if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var fe=this._getClientHeight(this._tableElement.get(0)),Te=this._getClientHeight(this._fixedTableElement.get(0));if(X=this._getRowElements(this._tableElement),M=this._getRowElements(this._fixedTableElement),oe=this._findContentElement(),fe!==Te){for(oe&&oe.css("height",fe),X.css("height",""),M.css("height",""),Z=0;Z<X.length;Z++)G.push(this._getClientHeight(X.get(Z))),q.push(this._getClientHeight(M.get(Z)));for(Z=0;Z<X.length;Z++){var Be=G[Z],ze=q[Z];Be>ze?M.eq(Z).css("height",Be):Be<ze&&X.eq(Z).css("height",ze)}oe&&oe.css("height","")}}},setScrollerSpacing:function(G){var q=this.option("rtlEnabled");this.callBase(G),this.element().children("."+this.addWidgetPrefix(E)).css({paddingLeft:q?G:"",paddingRight:q?"":G})}},ee={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:g.Z.format("dxDataGrid-columnFixingFix"),unfix:g.Z.format("dxDataGrid-columnFixingUnfix"),leftPosition:g.Z.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:g.Z.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:(0,s.l)({},K,{_getRowVisibleColumns:function(G){return this._isFixedTableRendering?this.getFixedColumns(G):this.callBase(G)},getContextMenuItems:function(G){var q=G.column,Z=this.option("columnFixing"),X=this.callBase(G);if(G.row&&"header"===G.row.rowType&&!0===Z.enabled&&q&&q.allowFixing){var M=oe=>{switch(oe.itemData.value){case"none":this._columnsController.columnOption(q.index,"fixed",!1);break;case"left":this._columnsController.columnOption(q.index,{fixed:!0,fixedPosition:"left"});break;case"right":this._columnsController.columnOption(q.index,{fixed:!0,fixedPosition:"right"})}};(X=X||[]).push({text:Z.texts.fix,beginGroup:!0,items:[{text:Z.texts.leftPosition,value:"left",disabled:q.fixed&&(!q.fixedPosition||"left"===q.fixedPosition),onItemClick:M},{text:Z.texts.rightPosition,value:"right",disabled:q.fixed&&"right"===q.fixedPosition,onItemClick:M}]},{text:Z.texts.unfix,value:"none",disabled:!q.fixed,onItemClick:M})}return X},getFixedColumnElements:function(G){if((0,p.$K)(G))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(G).children();var q=this.getColumnElements(),Z=this.getTransparentColumnElement();if(q&&Z&&Z.length){var X=V(this.getFixedColumns());q.splice(X,Z.get(0).colSpan,Z.get(0))}return q},getColumnWidths:function(){var G,q=this.callBase(),Z=this.getFixedColumnElements(),X=this.getFixedColumns();return this._fixedTableElement&&(G=Z&&Z.length?this._getWidths(Z):this.callBase(this._fixedTableElement)),U(X,q,G)}}),rowsView:(0,s.l)({},K,{_detachHoverEvents:function(){this._fixedTableElement&&I.Z.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&I.Z.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var G=this,q=function(Z){I.Z.on(Z,"mouseover mouseout",".dx-data-row",G.createAction(function(X){var M=X.event,oe=G.getRowIndex((0,c.Z)(M.target).closest(".dx-row")),fe="mouseover"===M.type;oe>=0&&(G._tableElement&&G._getRowElements(G._tableElement).eq(oe).toggleClass(T,fe),G._fixedTableElement&&G._getRowElements(G._fixedTableElement).eq(oe).toggleClass(T,fe))}))};G._fixedTableElement&&G._tableElement&&(q(G._fixedTableElement),q(G._tableElement))},_findContentElement:function(){var q,Z,G=this,X=G.addWidgetPrefix(y),M=G.element(),oe=d.Z.mozilla?60:0;if(M&&G._isFixedTableRendering){q=M.children("."+X);var fe=G.getScrollable();return!q.length&&fe&&(q=(0,c.Z)("<div>").addClass(X),I.Z.on(q,"scroll",function(Te){var Be=Te.target;clearTimeout(G._fixedScrollTimeout),G._fixedScrollTimeout=setTimeout(function(){Z=(0,c.Z)(Be).scrollTop(),fe.scrollTo({y:Z})},oe)}),I.Z.on(q,C.u,function(Te){var Be=(0,c.Z)(Te.target).closest(".dx-scrollable"),ze=!1;if(fe&&fe.$element().is(Be))ze=!0;else{var ae=Be.length&&x.Z.getInstance(Be.get(0)),_e=ae&&ae.scrollHeight()-ae.clientHeight()>0;ze=ae&&!_e}if(ze&&(Z=fe.scrollTop(),fe.scrollTo({y:Z-Te.delta}),fe.scrollTop()>0&&fe.scrollTop()+fe.clientHeight()<fe.scrollHeight()+G.getScrollbarWidth()))return!1}),q.appendTo(M)),q}return G.callBase()},_updateScrollable:function(){this.callBase();var G=this.getScrollable();if(null==G||!G._disposed){var q=G&&G.scrollOffset().top;this._updateFixedTablePosition(q)}},_renderContent:function(G,q){return this._isFixedTableRendering?G.empty().addClass(this.addWidgetPrefix(y)+" "+this.addWidgetPrefix(E)).append(q):this.callBase(G,q)},_getGroupCellOptions:function(G){return this.callBase(this._isFixedTableRendering?(0,s.l)({},G,{columns:this._columnsController.getVisibleColumns()}):G)},_renderGroupedCells:function(G,q){return this.callBase(G,(0,s.l)({},q,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(G,q){this.callBase(G,this._isFixedTableRendering?(0,s.l)({},q,{columns:this._columnsController.getVisibleColumns()}):q)},_hasAlignByColumnSummaryItems:function(G,q){var Z=this.callBase.apply(this,arguments),X=q.columns[G];return q.isFixed?X.fixed&&(Z||"right"===X.fixedPosition):Z&&(!this._isFixedColumns||!X.fixed)},_renderGroupSummaryCellsCore:function(G,q,Z,X){var M;if(this._isFixedTableRendering){q.isFixed=!0,M=this._getAlignByColumnCellCount(Z,q),q.isFixed=!1;var oe=q.columns.length-M;q=(0,s.l)({},q,{columns:this.getFixedColumns()});var fe=V(q.columns);oe<fe?(M-=q.columns[fe].colspan-1||0,Z-=q.columns[fe].colspan-1||0):X>0&&G.css("visibility","hidden"),X=M}this.callBase(G,q,Z,X)},_getSummaryCellIndex:function(G,q){if(this._isFixedTableRendering){var Z=V(q);return G>Z&&(G+=q[Z].colspan-1),G}return this.callBase.apply(this,arguments)},_renderCore:function(G){this._detachHoverEvents();var q=this.callBase(G),Z=this._isFixedColumns;return this.element().toggleClass("dx-fixed-columns",Z),this.option("hoverStateEnabled")&&Z&&this._attachHoverEvents(),q},setRowsOpacity:function(G,q){this.callBase(G,q);var Z=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(Z,this.getFixedColumns(),G,q)},optionChanged:function(G){this.callBase(G),"hoverStateEnabled"===G.name&&this._isFixedColumns&&(G.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(G){var q=this._fixedTableElement,Z=0;if(q&&G.is("td")&&G.closest(q).length){var X=this.getFixedColumns();return(0,l.S6)(X,function(M,oe){if(M===G[0].cellIndex)return!1;oe.colspan?Z+=oe.colspan:Z++}),Z}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(G,q){if(this._fixedTableElement&&this._tableElement){var Z,X=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(G),q&&X&&(Z=X.focus())&&X.focus(Z)}},setScrollerSpacing:function(G,q){var Z={marginBottom:0},X=this.element().children("."+this.addWidgetPrefix(E));X.length&&this._fixedTableElement&&(X.css(Z),this._fixedTableElement.css(Z),Z[this.option("rtlEnabled")?"marginLeft":"marginRight"]=G,Z.marginBottom=q,(this._scrollable&&this._scrollable.option("useNative")?X:this._fixedTableElement).css(Z))},_getElasticScrollTop:function(G){var q=0;if(G.scrollOffset.top<0)q=-G.scrollOffset.top;else if(G.reachedBottom){var Z=(0,c.Z)(G.component.content()),X=(0,c.Z)(G.component.container());q=Math.max(Z.get(0).clientHeight-X.get(0).clientHeight,0)-G.scrollOffset.top}return Math.floor(q)},_applyElasticScrolling:function(G){if(this._fixedTableElement){var q=this._getElasticScrollTop(G);0!==Math.ceil(q)?(0,v.pB)(this._fixedTableElement,{top:q}):this._fixedTableElement.css("transform","")}},_handleScroll:function(G){this._updateFixedTablePosition(G.scrollOffset.top,!0),this._applyElasticScrolling(G),this.callBase(G)},_updateContentPosition:function(G){this.callBase.apply(this,arguments),G||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(G){this._isFixedTableRendering||this.callBase(G)},_scrollToElement:function(G){this.callBase(G,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),footerView:K},controllers:{draggingHeader:{_generatePointsByColumns:function(G){var M,oe,fe,Te,Be,q=G.columns,Z=G.targetDraggingPanel;if(Z&&"headers"===Z.getName()&&Z.isFixedColumns()&&G.sourceColumn.fixed){G.rowIndex||(G.columnElements=Z.getFixedColumnElements(0)),G.columns=Z.getFixedColumns(G.rowIndex);var X=this.callBase(G);return M=q,fe=X,Te=V(oe=G.columns),Be=M.length-oe.length,(0,l.S6)(fe,function(ze,ae){ae.index>Te&&(ae.columnIndex+=Be,ae.index+=Be)}),X}return this.callBase(G)},_pointCreated:function(G,q,Z,X){var M=this.callBase.apply(this,arguments),oe=q[G.columnIndex],fe=this._columnHeadersView.getTransparentColumnElement();if(!M&&"headers"===Z&&fe&&fe.length){var Te=(0,h.l)(fe.get(0));return X&&X.fixed?"right"===X.fixedPosition?G.x<Te.right:G.x>Te.left:!(!oe||!oe.fixed||"right"===oe.fixedPosition)||G.x<Te.left||G.x>Te.right}return M}},columnsResizer:{_generatePointsByColumns:function(){var G=this,q=G._columnsController,Z=q&&G._columnsController.getVisibleColumns(),X=q&&G._columnsController.getFixedColumns(),M=V(X),oe=Z.length-X.length,fe=G._columnHeadersView.getFixedColumnElements();G.callBase(),fe&&fe.length>0&&(G._pointsByFixedColumns=a.Z.getPointsByColumns(fe,function(Te){return Te.index>M&&(Te.columnIndex+=oe,Te.index+=oe),G._pointCreated(Te,Z.length,Z)}))},_getTargetPoint:function(G,q,Z){var X=this._columnHeadersView.getTransparentColumnElement();if(X&&X.length){var M=(0,h.l)(X.get(0));if(q<=M.left||q>=M.right)return this.callBase(this._pointsByFixedColumns,q,Z)}return this.callBase(G,q,Z)}}}}}},2496:(Rn,he,u)=>{"use strict";u.d(he,{q:()=>V});var o=u(1805),c=u(9904),I=u(913),C=u(5004),g=u(9009),a=u(1828),p=u(2718),s=u(5873),l=u(2127),d="text-content",h="headers",v="nowrap",b="dx-header-row",y="dx-column-lines",T="dx-visibility-hidden",k="dx-text-content-alignment-",z="dx-header-multi-row",V={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:C.p.inherit(function(){var U=function(J,j,ee){var G=(0,c.Z)("<div>").addClass(J.addWidgetPrefix(d));J.setAria("role","presentation",G),K(J,j,ee.column,G);var q=J.option("showColumnLines"),Z=J.getController("columns").getHeaderContentAlignment(ee.column.alignment);return G[q||"right"===Z?"appendTo":"prependTo"](j)};function K(J,j,ee,G){var q=J._getIndicatorElements(j,!0),Z=J._getIndicatorElements(j),X=q&&q.length,M=J._getColumnAlignment(ee.alignment),oe=".".concat(J._getIndicatorClassName("sort")),fe=".".concat(J._getIndicatorClassName("sortIndex")),Te=Z.filter(oe),Be=Z.children().filter(fe);(G=G||j.children("."+J.addWidgetPrefix(d))).toggleClass(k+M,X>0).toggleClass(k+("left"===M?"right":"left"),X>0&&"center"===ee.alignment).toggleClass("dx-sort-indicator",!!Te.length).toggleClass("dx-sort-index-indicator",!!Be.length).toggleClass("dx-header-filter-indicator",!!Z.filter("."+J._getIndicatorClassName("headerFilter")).length)}var Y={_createTable:function(){var J=this.callBase.apply(this,arguments);return I.Z.on(J,"mousedown selectstart",this.createAction(function(j){var ee=j.event;ee.shiftKey&&ee.preventDefault()})),J},_isLegacyKeyboardNavigation(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(J){var j=this;return function(ee,G){var q=J.command?ee:U(j,ee,G),Z="expand"!==J.command&&J.caption;Z?q.text(Z):J.command&&ee.html("&nbsp;")}},_getHeaderTemplate:function(J){return J.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(J)}},_processTemplate:function(J,j){var ee=this,q=j.column,Z=ee.callBase(J);return"header"===j.rowType&&Z&&q.headerCellTemplate&&!q.command?{render:function(X){var M=U(ee,X.container,X.model);Z.render((0,s.l)({},X,{container:M}))}}:Z},_handleDataChanged:function(J){"refresh"===J.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(J,j){var ee=this.callBase(J,j);return"header"===j.row.rowType&&(ee.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||j.column&&!j.column.type&&ee.attr("tabindex",this.option("tabindex")||0)),ee},_setCellAriaAttributes:function(J,j){this.callBase(J,j),"header"===j.rowType&&(this.setAria("role","columnheader",J),j.column&&!j.column.command&&!j.column.isBand&&(J.attr("id",j.column.headerId),this.setAria("label",g.Z.format("dxDataGrid-ariaColumn")+" "+j.column.caption,J)))},_createRow:function(J){var j=this.callBase.apply(this,arguments);return j.toggleClass(y,this.option("showColumnLines")),"header"===J.rowType&&(j.addClass(b),this._isLegacyKeyboardNavigation()||(0,l.Y)("columnHeaders",this,j,"td",this._handleActionKeyDown.bind(this))),j},_handleActionKeyDown:function(J){var j=J.event,ee=(0,c.Z)(j.target);if(this._lastActionElement=j.target,ee.is(".dx-header-filter")){var G=this.getController("headerFilter"),q=ee.closest("td"),Z=this.getColumnIndexByElement(q);Z>=0&&G.showHeaderFilterMenu(Z,!1)}else{var X=ee.closest(".dx-row");this._processHeaderAction(j,X)}j.preventDefault()},_renderCore:function(){var J=this,j=J.element(),ee={};if(!J._tableElement||J._dataController.isLoaded()||J._hasRowElements){j.addClass(J.addWidgetPrefix(h)).toggleClass(J.addWidgetPrefix(v),!J.option("wordWrapEnabled")).empty(),J.setAria("role","presentation",j);var G=J._updateContent(J._renderTable({change:ee}),ee);return J.getRowCount()>1&&j.addClass(z),J.callBase.apply(J,arguments),G}},_renderRows:function(){var J=this;(J._dataController.isLoaded()||J._hasRowElements)&&(J.callBase.apply(J,arguments),J._hasRowElements=!0)},_getRowVisibleColumns:function(J){return this._columnsController.getVisibleColumns(J)},_renderRow:function(J,j){j.columns=this._getRowVisibleColumns(j.row.rowIndex),this.callBase(J,j)},_createCell:function(J){var j=J.column,ee=this.callBase.apply(this,arguments);return j.rowspan>1&&"header"===J.rowType&&ee.attr("rowSpan",j.rowspan),ee},_getRows:function(){var J=[],j=this.getRowCount();if(this.option("showColumnHeaders"))for(var ee=0;ee<j;ee++)J.push({rowType:"header",rowIndex:ee});return J},_getCellTemplate:function(J){if("header"===J.rowType)return this._getHeaderTemplate(J.column)},_columnOptionChanged:function(J){var j=J.changeTypes,ee=J.optionNames;j.grouping||j.groupExpanding?j.grouping&&(this._isGroupingChanged=!0):(this.callBase(J),(ee.width||ee.visible)&&this.resizeCompleted.fire())},_isElementVisible:function(J){return J&&J.visible},_alignCaptionByCenter:function(J){var j=this._getIndicatorContainer(J,!0);j&&j.length&&(j.filter("."+T).remove(),(j=this._getIndicatorContainer(J)).clone().addClass(T).css("float","").insertBefore(J.children("."+this.addWidgetPrefix(d))))},_updateCell:function(J,j){"header"===j.rowType&&"center"===j.column.alignment&&this._alignCaptionByCenter(J),this.callBase.apply(this,arguments)},_updateIndicator:function(J,j,ee){var G=this.callBase.apply(this,arguments);return"center"===j.alignment&&this._alignCaptionByCenter(J),K(this,J,j),G},_getIndicatorContainer:function(J,j){var ee=this.callBase(J);return j?ee:ee.filter(":not(."+T+")")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var J=this.getTableElement(),j=J&&J.find("."+b);return j&&j.toArray().reduce(function(ee,G){return ee+(0,o.Cr)(G)},0)||0},getHeaderElement:function(J){var j=this.getColumnElements();return j&&j.eq(J)},getColumnElements:function(J,j){var G,ee=this,q=ee._columnsController,Z=ee.getRowCount();if(ee.option("showColumnHeaders")){if(Z>1&&(!(0,a.$K)(J)||(0,a.$K)(j))){var X=[],M=(0,a.$K)(j)?q.getChildrenByBandColumn(j,!0):q.getVisibleColumns();return(0,p.S6)(M,function(oe,fe){var Te=(0,a.$K)(J)?J:q.getRowIndex(fe.index);(G=ee._getCellElement(Te,q.getVisibleIndex(fe.index,Te)))&&X.push(G.get(0))}),(0,c.Z)(X)}if(!J||J<Z)return ee.getCellElements(J||0)}},getColumnIndexByElement:function(J){var j=this.getCellIndex(J),ee=J.closest(".dx-row"),q=this.getColumns(ee[0].rowIndex)[j];return q?q.index:-1},getVisibleColumnIndex:function(J,j){var ee=this.getColumns()[J];return ee?this._columnsController.getVisibleIndex(ee.index,j):-1},getColumnWidths:function(){var J=this.getColumnElements();return J&&J.length?this._getWidths(J):this.callBase.apply(this,arguments)},allowDragging:function(J,j,ee){var G,Te,q=0,Z=J&&this._columnsController.getRowIndex(J.index),X=this.getColumns(0===Z?0:null),M=J?.allowHiding&&X.length>1;for(G=0;G<X.length;G++)((Te=X[G]).allowReordering||Te.allowGrouping||Te.allowHiding)&&q++;if(q<=1&&!M)return!1;if(!ee)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&J&&J.allowReordering;for(G=0;G<ee.length;G++){var fe=ee[G];if(fe&&fe.allowDragging(J,j))return!0}return!1},getBoundingRect:function(){var J=this.getColumnElements();return J&&J.length?{top:this.getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var J=this.getColumnElements();return J?J.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(J){switch(J.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),J.handled=!0;break;default:this.callBase(J)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(J){var j=this,ee=J.column;if(J.row&&("header"===J.row.rowType||"detailAdaptive"===J.row.rowType)){var G=j.option("sorting");if(G&&"none"!==G.mode&&ee&&ee.allowSorting){var q=function(Z){setTimeout(function(){j._columnsController.changeSortOrder(ee.index,Z.itemData.value)})};return[{text:G.ascendingText,value:"asc",disabled:"asc"===ee.sortOrder,icon:"context-menu-sort-asc",onItemClick:q},{text:G.descendingText,value:"desc",disabled:"desc"===ee.sortOrder,icon:"context-menu-sort-desc",onItemClick:q},{text:G.clearText,value:"none",disabled:!ee.sortOrder,icon:"context-menu-sort-none",onItemClick:q}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(J,j,ee){var q,Z,G=this,X=G.getRowCount(),M=G._columnsController.getColumns(),oe=M&&M[J],fe=oe&&oe.isBand&&oe.index,Te=function(Be,ze){ze.ownerBand===fe&&(Z.eq(Be).css({opacity:j}),ze.isBand&&G.setRowsOpacity(ze.index,j,q+1))};if((0,a.$K)(fe))for(q=ee=ee||0;q<X;q++)Z=G.getCellElements(q),(0,p.S6)(G.getColumns(q),Te)}};return Y}())}}},4964:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(9904),c=u(7674),I=u(5873),C=u(5450),g="dx-column-indicators";const p={_applyColumnState:function(s){var l,d=this.option("rtlEnabled"),h=this._getColumnAlignment(s.column.alignment,d),v=(0,I.l)(!0,{columnAlignment:h},s),x=v.rootElement.hasClass("dx-group-panel-item"),b=this._createIndicatorContainer(v,x),y=(0,o.Z)("<span>").addClass(this._getIndicatorClassName(s.name)),S=(null===(l=this.component)||void 0===l?void 0:l.getController("columns"))?.getHeaderContentAlignment(h)||h;return v.container=b,v.indicator=y,this._renderIndicator(v),b[!x&&s.showColumnLines||"left"!==S?"prependTo":"appendTo"](s.rootElement),y},_getIndicatorClassName:c.ZT,_getColumnAlignment:function(s,l){return l=l||this.option("rtlEnabled"),s&&"center"!==s?s:(0,C.q)(l)},_createIndicatorContainer:function(s,l){var d=this._getIndicatorContainer(s.rootElement),h="left"===s.columnAlignment?"right":"left";return d.length||(d=(0,o.Z)("<div>").addClass(g)),this.setAria("role","presentation",d),d.css("float",s.showColumnLines&&!l?h:null)},_getIndicatorContainer:function(s){return s&&s.find("."+g)},_getIndicatorElements:function(s){var l=this._getIndicatorContainer(s);return l&&l.children()},_renderIndicator:function(s){var l=s.container,d=s.indicator;l&&d&&l.append(d)},_updateIndicators:function(s){var h,l=this.getColumns(),d=this.getColumnElements();if(d&&l.length===d.length)for(var v=0;v<l.length;v++){h=d.eq(v),this._updateIndicator(h,l[v],s);var x=h.parent().data("options");x&&x.cells&&(x.cells[h.index()].column=l[v])}},_updateIndicator:function(s,l,d){if(!l.command)return this._applyColumnState({name:d,rootElement:s,column:l,showColumnLines:this.option("showColumnLines")})}}},980:(Rn,he,u)=>{"use strict";u.d(he,{W:()=>q});var o=u(4817),c=u(9904),I=u(5365),C=u(9963),g=u(6738),a=u(1828),p=u(2718),s=u(5450),l=u(5873),d=u(9960),h=u(7572),v=u(2834),x=u(8159),b=u(3390),y=u(2879),E=u(7981),S=u(8492),O=u(658),w=u(8119),T=u(9009),k=u(4270),R=u(1937),P=u(7122),B=u(5981),W=u(7674),z=u(2135),V=["filterValues","filterType","fixed","fixedPosition"],U=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","added"].concat(V),K={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},J=Number.MAX_SAFE_INTEGER||9007199254740991,j="groupExpand",ee=/columns\[(\d+)\]\.?/gi,G=1,q={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:T.Z.format("dxDataGrid-trueText"),falseText:T.Z.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:b.Z.Controller.inherit(function(){var Z={visible:!0,showInColumnChooser:!0},X={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},M={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},oe=function(Ve){Ve.filterOperations=Ve.defaultFilterOperations},fe=function(Ve,St,Xe,Vt){var lt={};if(St){(0,a.HD)(St)&&(St={dataField:St}),Ve.setName(St);var dt={};if(St.command)dt=(0,v.HR)(lt,St);else{lt=Ve.getCommonSettings(St),Xe&&Xe.name&&Xe.dataField&&(St=(0,l.l)({},St,{dataField:Xe.dataField}));var vt=Ve._createCalculatedColumnOptions(St,Vt);St.type||(dt={headerId:"dx-col-".concat(G++)}),dt=(0,v.HR)(dt,Z),(0,v.HR)(dt,lt),(0,v.HR)(dt,vt),(0,v.HR)(dt,St),(0,v.HR)(dt,{selector:null})}return St.filterOperations===St.defaultFilterOperations&&oe(dt),dt}},Te=function Ve(St,Xe,Vt){var lt=[];return Xe&&(0,p.S6)(Xe,function(dt,vt){var Lt=St._columnsUserState&&ie(vt,St._columnsUserState[dt])&&St._columnsUserState[dt],bn=fe(St,vt,Lt,Vt);bn&&(Vt&&(bn.ownerBand=Vt),lt.push(bn),bn.columns&&(lt=lt.concat(Ve(St,bn.columns,bn)),delete bn.columns,bn.hasColumns=!0))}),lt},Be=function(Ve,St){for(var Xe=[],Vt=St[Ve];Vt;)Xe.unshift(Vt),Vt=St[Ve=Vt.index];return Xe},ze=function(Ve,St,Xe){var Vt=[],lt=St[Ve];if(lt)for(var dt=0;dt<lt.length;dt++){var vt=lt[dt];(!(0,a.$K)(vt.groupIndex)||vt.showWhenGrouped)&&(Vt.push(vt),Xe&&vt.isBand&&(Vt=Vt.concat(ze(vt.index,St,Xe))))}return Vt},ae=function(Ve,St){var Vt,Xe=[],lt=Ve.getBandColumnsCache(),dt=function(Lt){return Lt.ownerBand===St.ownerBand};if(lt.isPlain){var vt=Ve._columns.indexOf(St);vt>=0&&(Xe=["columns[".concat(vt,"]")])}else for(Vt=Ve._columns.filter(dt);Vt.length&&-1!==Vt.indexOf(St);)Xe.unshift("columns[".concat(Vt.indexOf(St),"]")),Vt=(St=lt.columnParentByIndex[St.index])?Ve._columns.filter(dt):[];return Xe.join(".")},_e=function Ve(St,Xe){var Vt=0,lt=St.getChildrenByBandColumn(Xe,!0);return(0,p.S6)(lt,function(dt,vt){vt.isBand?(vt.colspan=vt.colspan||Ve(St,vt.index),Vt+=vt.colspan||1):Vt+=1}),Vt},ye=function(Ve){var St=(0,a.dt)(Ve);return"string"!==St&&"boolean"!==St&&"number"!==St&&"date"!==St&&"object"!==St&&(St=void 0),St},ne=function(Ve,St){switch(Ve){case"date":case"datetime":return S.Z.getDateSerializationFormat(St);case"number":if((0,a.HD)(St))return"string";if((0,a.kE)(St))return null}},ce=function(Ve,St){Ve.deserializeValue||(y.Z.isDateType(St)&&(Ve.deserializeValue=function(Xe){return S.Z.deserializeDate(Xe)},Ve.serializeValue=function(Xe){return(0,a.HD)(Xe)?Xe:S.Z.serializeDate(Xe,this.serializationFormat)}),"number"===St&&(Ve.deserializeValue=function(Xe){var Vt=parseFloat(Xe);return isNaN(Vt)?Xe:Vt},Ve.serializeValue=function(Xe,Vt){return"filter"===Vt?Xe:(0,a.$K)(Xe)&&"string"===this.serializationFormat?Xe.toString():Xe}))},le=function(Ve){return!0===Ve.value?this.trueText||"true":!1===Ve.value?this.falseText||"false":Ve.valueText||""},pe=function(Ve){if("boolean"===Ve)return le},Se=function(Ve){(0,p.S6)(Ve._columns,function(St,Xe){Xe.index=St}),(0,p.S6)(Ve._columns,function(St,Xe){(0,a.Kn)(Xe.ownerBand)&&(Xe.ownerBand=Xe.ownerBand.index)}),(0,p.S6)(Ve._commandColumns,function(St,Xe){Xe.index=-(St+1)})},re=function(Ve,St){(0,d.Sq)(Ve._columns,"groupIndex",St,function(Xe){var Vt=Xe.grouped;return delete Xe.grouped,Vt})},te=function(Ve,St,Xe){var dt,Vt=(0,a.Kn)(St)?St.rowIndex:null,lt="group"===Xe?Ve.getGroupColumns():"columnChooser"===Xe?Ve.getChooserColumns():Ve.getVisibleColumns(Vt);return St=(0,a.Kn)(St)?St.columnIndex:St,(dt=lt[St])&&dt.type===j&&(dt=Ve._columns.filter(vt=>dt.type===vt.type)[0]||dt),dt&&(0,a.$K)(dt.index)?dt.index:-1};function ie(Ve,St){return Ve&&St&&St.name===(Ve.name||Ve.dataField)&&(St.dataField===Ve.dataField||Ve.name)}var ue=function(Ve){var bn,mn,xn,St=Ve._columnsUserState,Xe=Ve._ignoreColumnOptionNames||[],Vt=Ve._columns,lt={},dt=[],vt=!0,Lt=[];function Xn(Oi,Hn){if(Hn)for(var En=0;En<U.length;En++){var Mn=U[En];Xe.includes(Mn)||("dataType"===Mn?Oi[Mn]=Oi[Mn]||Hn[Mn]:V.includes(Mn)?Mn in Hn&&(Oi[Mn]=Hn[Mn]):("selectedFilterOperation"===Mn&&Hn[Mn]&&(Oi.defaultSelectedFilterOperation=Oi[Mn]||null),Oi[Mn]=Hn[Mn]))}}function li(Oi,Hn){for(var En=Hn.name||Hn.dataField,Mn=lt[En]||0,ei=0;ei<Oi.length;ei++)if(ie(Hn,Oi[ei])){if(!Mn)return lt[En]=lt[En]||0,lt[En]++,ei;Mn--}return-1}if(St){for(xn=0;xn<Vt.length;xn++)mn=li(St,Vt[xn]),vt=vt&&mn>=0,Lt.push(mn);for(xn=0;xn<Vt.length;xn++)bn=Vt[xn],mn=Lt[xn],(Ve._hasUserState||vt)&&Xn(bn,St[mn]),mn>=0&&(0,a.$K)(St[mn].initialIndex)?dt[mn]=bn:dt.push(bn);var ki=!1;for(xn=0;xn<St.length;xn++){var Vn=St[xn];Vn.added&&li(Vt,Vn)<0&&(Xn(bn=fe(Ve,Vn.added),Vn),dt.push(bn),Vn.added.columns&&(ki=!0))}ki&&(Se(Ve),dt=Te(Ve,dt)),Ne(Ve,dt)}},be=function(Ve,St){var Xe,Vt;Se(Ve),re(Ve,St),Vt=St,(0,p.S6)((Xe=Ve)._columns,function(lt,dt){(0,a.$K)(dt.sortIndex)&&!Pe(dt.sortOrder)&&delete dt.sortIndex}),(0,d.Sq)(Xe._columns,"sortIndex",Vt,function(lt){return!(0,a.$K)(lt.groupIndex)&&Pe(lt.sortOrder)}),kt(Ve),function(Xe,Vt){for(var lt,dt=[],vt=Xe.getBandColumnsCache(),Lt=[],bn=Xe._columns.filter(Xn=>!Xn.command),mn=0;mn<bn.length;mn++)lt=bn[mn],Be(mn,vt.columnParentByIndex).length?Lt.push(lt):dt.push(lt);(0,d.Sq)(Lt,"visibleIndex",Vt),(0,d.Sq)(dt,"visibleIndex",Vt)}(Ve,St)},Ae=function(Ve){Ve.resetColumnsCache()};function Ne(Ve,St){Ve._previousColumns=Ve._columns,Ve._columns=St,Ae(Ve),Ve.updateColumnDataTypes()}var mt=function(Ve,St,Xe,Vt){var lt=Ve._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:Vt};Xe=(Xe=Xe||"all").split(".")[0];var dt=lt.changeTypes;St&&!dt[St]&&(dt[St]=!0,dt.length++);var vt=lt.optionNames;Xe&&!vt[Xe]&&(vt[Xe]=!0,vt.length++),(void 0===Vt||Vt!==lt.columnIndex)&&delete lt.columnIndex,Ve._columnChanges=lt,Ae(Ve)},tt=function(Ve){var lt,St=Ve.option("onColumnsChanging"),Xe=Ve._columnChanges;Ve.isInitialized()&&!Ve._updateLockCount&&Xe&&(St&&(Ve._updateLockCount++,St((0,l.l)({component:Ve.component},Xe)),Ve._updateLockCount--),Ve._columnChanges=void 0,(lt=Xe.optionNames)&&["dataField","lookup","dataType","columns"].some(dt=>lt[dt])?(Ve._reinitAfterLookupChanges=Xe?.optionNames.lookup,Ve.reinit(),Ve._reinitAfterLookupChanges=void 0):Ve.columnsChanged.fire(Xe))},Le=function(Ve,St,Xe,Vt){if(Xe>=0)Vt>=0||(St.lastSortOrder=St.sortOrder);else{var dt=Ve.option("sorting.mode"),vt=St.lastSortOrder;"single"===dt&&Ve._columns.some(bn=>bn!==St&&(0,a.$K)(bn.sortIndex))&&(vt=void 0),St.sortOrder=vt}},gt=function(Ve,St){var Xe=St.value,Vt=St.optionName,lt=St.prevValue,vt="".concat(St.fullOptionName,".").concat(Vt);!K[Vt]&&Ve._skipProcessingColumnsChange!==vt&&(Ve._skipProcessingColumnsChange=vt,Ve.component._notifyOptionChanged(vt,Xe,lt),Ve._skipProcessingColumnsChange=!1)},tn=function(Ve,St,Xe,Vt,lt){var Lt,bn,mn,dt=(0,g.vb)(Xe),vt=St.index;if(3===arguments.length)return dt(St,{functionsAsIs:!0});var xn=dt(St,{functionsAsIs:!0});if(!(0,W.bY)(xn,Vt)){"groupIndex"===Xe||"calculateGroupValue"===Xe?(bn="grouping",Le(Ve,St,Vt,xn)):bn="sortIndex"===Xe||"sortOrder"===Xe||"calculateSortValue"===Xe?"sorting":"columns";var Xn=(0,g.OM)(Xe);Xn(St,Vt,{functionsAsIs:!0});var li=ae(Ve,St);M[Xe]&&(be(Ve,St),Vt=dt(St)),("name"===Xe||"allowEditing"===Xe)&&Ve._checkColumns(),!(0,a.$K)(xn)&&!(0,a.$K)(Vt)&&0!==Xe.indexOf("buffer")&&(lt=!0),lt?Ae(Ve):(!U.includes(Xe)&&"visibleWidth"!==Xe&&(Lt=Ve.option("columns"),mn=Ve.getColumnByPath(li,Lt),(0,a.HD)(mn)&&(mn=Lt[vt]={dataField:mn}),mn&&ie(mn,St)&&Xn(mn,Vt,{functionsAsIs:!0})),mt(Ve,bn,Xe,vt)),li&&gt(Ve,{fullOptionName:li,optionName:Xe,value:Vt,prevValue:xn})}};function Pe(Ve){return"asc"===Ve||"desc"===Ve}var $e=function(Ve,St){if(this.dataField){var Xe=this.dataField.split("."),Vt=Xe.length-1;this.serializeValue&&(St=this.serializeValue(St));for(var lt=0;lt<Vt;lt++){var dt=Xe[lt];Ve=Ve[dt]=Ve[dt]||{}}Ve[Xe[Vt]]=St}},ge=(Ve,St)=>!!Ve._columns.filter(Xe=>Xe.type===St.type).length,Ce=function(Ve,St){var Xe=Ve.option("rtlEnabled");return St.command&&!ge(Ve,St)||!St.fixedPosition?Xe?"right":"left":St.fixedPosition},De=function(Ve,St,Xe,Vt){var lt,dt=this.getRowCount(),vt=Ve[Vt]&&Ve[Vt].rowspan,Lt=St.filter(bn=>bn.type===Xe);return Ve.forEach((bn,mn)=>{bn.type===Xe&&(lt=mn,vt=Ve[mn+1]?Ve[mn+1].rowspan:dt)}),vt>1&&(Lt=(0,p.UI)(Lt,function(bn){return(0,l.l)({},bn,{rowspan:vt})})),Lt.unshift.apply(Lt,(0,a.$K)(lt)?[lt,1]:[Vt,0]),Ve.splice.apply(Ve,Lt),vt||1},Ye=function(Ve,St){for(var Xe=Ve?Ve.toString():"0";Xe.length<St;)Xe="0"+Xe;return Xe},bt=(Ve,St,Xe,Vt)=>{for(var lt,dt,vt=St.slice().map(ki=>(0,l.l)({},ki)),Lt=Ve._isColumnFixing(),bn=Xe.slice().map(ki=>(0,l.l)({fixed:Lt},ki)),mn=ki=>Xe.reduce((Vn,Oi,Hn)=>Oi.type===(Vt&&ki.type===j?"expand":ki.type)||Oi.command===ki.command?Hn:Vn,-1),xn=ki=>ki.command!==Xe[dt].command,Xn=0;Xn<St.length;Xn++)(dt=(lt=St[Xn])&&(lt.type||lt.command)?mn(lt):-1)>=0&&(Vt?(vt[Xn]=(0,l.l)({fixed:Lt},Xe[dt],lt),lt.type!==j&&(bn=bn.filter(xn))):vt[Xn]=(0,l.l)({},lt,Xe[dt],lt.type===j&&{visibleIndex:lt.visibleIndex,index:lt.index,headerId:lt.headerId,allowFixing:0===lt.groupIndex,allowReordering:0===lt.groupIndex,groupIndex:lt.groupIndex}));return St.length&&Vt&&bn.length&&(vt=vt.concat(bn)),vt},yt=(Ve,St)=>(0,a.$K)(St.fixed)||!St.type?St.fixed:Ve._isColumnFixing(),kt=Ve=>{Ve._bandColumnsCache=void 0},gn=(Ve,St)=>{var Vt,Xe=(0,a.HD)(St)&&St.substr(0,St.indexOf(":"));if(void 0!==St)return Xe&&(St=St.substr(Xe.length+1)),Xe?Vt=Ve.filter(lt=>""+lt[Xe]===St)[0]:["index","name","dataField","caption"].some(lt=>!!(Vt=Ve.filter(dt=>dt[lt]===St)[0])),Vt},ut={_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(Ve){var St,Xe=[];return Ve&&Ve.items().length>0&&(St=y.Z.normalizeSortingInfo(Ve.group()).length,Xe=function Vt(lt,dt){if(!lt||!dt)return lt;for(var vt=0;vt<lt.length;vt++){var Lt=Vt(lt[vt].items||lt[vt].collapsedItems,dt-1);if(Lt&&Lt.length)return Lt}}(Ve.items(),St)||[]),Xe},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&tt(this)},init:function(Ve){var Xe,Vt,St=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!St,this._isColumnsFromOptions?(Ne(this,St?Te(this,St):[]),ue(this)):Ne(this,this._columnsUserState?Te(this,this._columnsUserState):this._columns),Vt=(Xe=this)._getExpandColumnOptions(),Xe.addCommandColumn(Vt),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0,Ve):be(this),this._checkColumns()},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(Ve,St){var Xe,Vt=[];return Ve.replace(ee,function(lt,dt){return Vt.push(parseInt(dt)),""}),Vt.length&&(Xe=St?Vt.reduce(function(lt,dt){return lt&&lt.columns&&lt.columns[dt]},{columns:St}):function(lt,dt){var vt,Lt,mn=function(Xn){return Xn.ownerBand===(vt?vt.index:void 0)};if(lt.getBandColumnsCache().isPlain)vt=lt._columns[dt[0]];else{Lt=lt._columns.filter(mn);for(var xn=0;xn<dt.length;xn++)(vt=Lt[dt[xn]])&&(Lt=lt._columns.filter(mn))}return vt}(this,Vt)),Xe},optionChanged:function(Ve){var St;switch(Ve.name){case"adaptColumnWidthByRatio":Ve.handled=!0;break;case"dataSource":Ve.value!==Ve.previousValue&&!this.option("columns")&&(!Array.isArray(Ve.value)||!Array.isArray(Ve.previousValue))&&(this._columns=[]);break;case"columns":St=this._skipProcessingColumnsChange,Ve.handled=!0,this._skipProcessingColumnsChange||(Ve.name===Ve.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(Ve),St=!0)),St&&this._updateRequireResize(Ve);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":Ve.handled=!0,this.reinit("columnWidth"===Ve.fullName&&["width"]);break;case"rtlEnabled":this.reinit();break;default:this.callBase(Ve)}},_columnOptionChanged:function(Ve){var St={},Xe=this.getColumnByPath(Ve.fullName),Vt=Ve.fullName.replace(ee,"");Xe&&(Vt?St[Vt]=Ve.value:St=Ve.value,this._skipProcessingColumnsChange=Ve.fullName,this.columnOption(Xe.index,St),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(Ve){var St=this.component;"width"===Ve.fullName.replace(ee,"")&&St._updateLockCount&&(St._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(Ve,St,Xe){var Vt=Ve&&Ve.isLoaded();if(this._dataSource=Ve,!this._dataSourceApplied||0===this._dataSourceColumnsCount||St||this.option("regenerateColumnsByVisibleItems")){if(Vt){if(!this._isColumnsFromOptions){var lt=function(dt,vt){for(var bn,Lt=dt._getFirstItems(vt),mn={},xn=[],Xn=0;Xn<Lt.length;Xn++)if(Lt[Xn])for(bn in Lt[Xn])(!(0,a.mf)(Lt[Xn][bn])||C.Z.isWrapped(Lt[Xn][bn]))&&(mn[bn]=!0);for(bn in mn)if(0!==bn.indexOf("__")){var li=fe(dt,bn);xn.push(li)}return xn}(this,Ve);lt.length&&(Ne(this,lt),this._dataSourceColumnsCount=this._columns.length,ue(this))}return this.updateColumns(Ve,St,Xe)}this._dataSourceApplied=!1,be(this)}else if(Vt&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(Ve))return mt(this,"columns"),tt(this),(new k.BH).reject().promise()},reset:function(){this._dataSource=null,this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,kt(this)},reinit:function(Ve){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=Ve||null,this.init(),Ve&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(Ve){var St=(!Ve||!Ve.type)&&this.option("commonColumnSettings")||{},Xe=this.option("grouping")||{},Vt=this.option("groupPanel")||{};return(0,l.l)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:Xe.autoExpandAll,allowCollapsing:Xe.allowCollapsing,allowGrouping:Vt.allowColumnDragging&&Vt.visible||Xe.contextMenuEnabled},St)},isColumnOptionUsed:function(Ve){for(var St=0;St<this._columns.length;St++)if(this._columns[St][Ve])return!0},isAllDataTypesDefined:function(Ve){var St=this._columns;if(!St.length)return!1;for(var Xe=0;Xe<St.length;Xe++)if((St[Xe].dataField||St[Xe].calculateCellValue!==St[Xe].defaultCalculateCellValue)&&(!St[Xe].dataType||Ve&&St[Xe].deserializeValue&&void 0===St[Xe].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some(function(Ve){return Ve.isBand})},getGroupColumns:function(){var Ve=[];return(0,p.S6)(this._columns,function(){(0,a.$K)(this.groupIndex)&&(Ve[this.groupIndex]=this)}),Ve},_shouldReturnVisibleColumns:function(){return!0},_compileVisibleColumns:function(Ve){return this._visibleColumns=this._visibleColumns||this._compileVisibleColumnsCore(),Ve=(0,a.$K)(Ve)?Ve:this._visibleColumns.length-1,this._visibleColumns[Ve]||[]},getVisibleColumns:function(Ve){return this._shouldReturnVisibleColumns()?this._compileVisibleColumns.apply(this,arguments):[]},getFixedColumns:function(Ve){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),Ve=(0,a.$K)(Ve)?Ve:this._fixedColumns.length-1,this._fixedColumns[Ve]||[]},getFilteringColumns:function(){return this.getColumns().filter(Ve=>(Ve.dataField||Ve.name)&&(Ve.allowFiltering||Ve.allowHeaderFiltering)).map(Ve=>{var St=(0,l.l)(!0,{},Ve);return(0,a.$K)(St.dataField)||(St.dataField=St.name),St.filterOperations=Ve.filterOperations!==Ve.defaultFilterOperations?St.filterOperations:null,St})},getColumnIndexOffset:function(){return 0},_getFixedColumnsCore:function(){var dt,vt,Lt,Ve=[],St=this.getRowCount(),Vt={command:"transparent"},lt=0;if(this._isColumnFixing())for(var bn=0;bn<=St;bn++){dt=0,Lt=null,vt=null;for(var mn=this.getVisibleColumns(bn,!0),xn=0;xn<mn.length;xn++){var Xn=mn[xn-1],li=mn[xn];li.fixed?Xn&&Xn.fixed&&Ce(this,Xn)!==Ce(this,li)?(0,a.$K)(vt)||(vt=xn):Lt=li.fixedPosition:(0===bn&&(li.isBand&&li.colspan?lt+=li.colspan:lt++),dt++,(0,a.$K)(vt)||(vt=xn))}if(0===bn&&(0===dt||dt>=mn.length))return[];(0,a.$K)(vt)||(vt="right"===Lt?0:mn.length),Ve[bn]=mn.slice(0),Vt.colspan||(Vt.colspan=lt),Ve[bn].splice(vt,dt,Vt)}return Ve.map(ki=>ki.map(Vn=>{var Oi=(0,o.Z)({},Vn);return Oi.headerId&&(Oi.headerId+="-fixed"),Oi}))},_isColumnFixing:function(){var Ve=this.option("columnFixing.enabled");return!Ve&&(0,p.S6)(this._columns,function(St,Xe){if(Xe.fixed)return Ve=!0,!1}),Ve},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var St,Ve=this._getExpandColumnsCore(),Xe=Ve.filter(vt=>0===vt.groupIndex)[0],Vt=Xe&&Xe.fixed,lt=this._isColumnFixing(),dt=this.option("rtlEnabled");return Ve.length&&(St=this.columnOption("command:expand")),(0,p.UI)(Ve,vt=>(0,l.l)({},vt,{visibleWidth:null,minWidth:null,cellTemplate:(0,a.$K)(vt.groupIndex)?null:vt.cellTemplate,headerCellTemplate:null,fixed:!(!(0,a.$K)(vt.groupIndex)||!Vt)||lt,fixedPosition:dt?"right":"left"},St,{index:vt.index,type:vt.type||j}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var Ve=this._columns,St={},Xe={},Vt=!0;Ve.forEach(function(lt){var dt=lt.ownerBand,vt=(0,a.Kn)(dt)?dt.index:dt,Lt=Ve[vt];lt.hasColumns&&(Vt=!1),lt.colspan&&(lt.colspan=void 0),lt.rowspan&&(lt.rowspan=void 0),Lt?Xe[lt.index]=Lt:vt=-1,St[vt]=St[vt]||[],St[vt].push(lt)}),this._bandColumnsCache={isPlain:Vt,columnChildrenByIndex:St,columnParentByIndex:Xe}}return this._bandColumnsCache},_isColumnVisible:function(Ve){return Ve.visible&&this.isParentColumnVisible(Ve.index)},_compileVisibleColumnsCore:function(){var St,mn,Ve=this,Xe=[],Vt=0,lt=0,dt=Ve.getRowCount(),vt=[],Lt=[],bn=0,xn=Ve.option("rtlEnabled"),Xn=Ve.getBandColumnsCache(),li=bt(Ve,Ve.getExpandColumns(),Ve._columns),ki=bt(Ve,Ve._columns,Ve._commandColumns,!0),Vn=function(Oi){var Hn;for(Hn=0;Oi>1;Hn++)Oi/=10;return Hn}(ki.length);for(function(Oi,Hn,En){for(var Mn,ei=0;ei<Hn.length;ei++){var Wn=Hn[ei];(Wn.visible||Wn.command)&&(Wn.isBand&&(Wn.colspan=Wn.colspan||_e(Oi,Wn.index)),(!Wn.isBand||!Wn.colspan)&&(Mn=Oi.getRowCount(),!Wn.command&&(!(0,a.$K)(Wn.groupIndex)||Wn.showWhenGrouped)&&(Mn-=Be(Wn.index,En.columnParentByIndex).length),Mn>1&&(Wn.rowspan=Mn)))}}(Ve,ki,Xn),St=0;St<dt;St++)Xe[St]=[],Lt[St]=[{}],vt[St]=[{},{},{}];return(0,p.S6)(ki,function(){var Hn,Oi=this.visibleIndex,En=Be(this.index,Xn.columnParentByIndex);if(Ve._isColumnVisible(this)&&(!(0,a.$K)(this.groupIndex)||this.showWhenGrouped)){var ei=En.length;if(Oi<0?(Oi=-Oi,Hn=Lt[ei]):(this.fixed=En.length?En[0].fixed:this.fixed,this.fixedPosition=En.length?En[0].fixedPosition:this.fixedPosition,this.fixed?(mn="right"===this.fixedPosition,xn&&(!this.command||ge(Ve,this))&&(mn=!mn),Hn=mn?vt[ei][2]:vt[ei][0]):Hn=vt[ei][1]),En.length)for(Oi=Ye(Oi,Vn),St=En.length-1;St>=0;St--)Oi=Ye(En[St].visibleIndex,Vn)+Oi;Hn[Oi]=Hn[Oi]||[],Hn[Oi].push(this),bn++}}),(0,p.S6)(Xe,function(Oi){(0,v.jS)(Lt[Oi],function(En,Mn){Xe[Oi].unshift.apply(Xe[Oi],Mn)});var Hn=Xe[Oi].length;(0,p.S6)(vt[Oi],function(En,Mn){(0,v.jS)(Mn,function(ei,Wn){Xe[Oi].push.apply(Xe[Oi],Wn)})}),lt<Oi+1&&(lt+=De.call(Ve,Xe[Oi],li,"detailExpand",Hn)),Vt<Oi+1&&(Vt+=De.call(Ve,Xe[Oi],li,j,Hn))}),Xe.push(function Oi(Hn,En,Mn){var ei=[];return Hn[En=En||0]&&(0,p.S6)(Hn[En],function(Wn,Ji){(Ji.ownerBand===Mn||Ji.type===j)&&(Ji.isBand&&Ji.colspan?ei.push.apply(ei,Oi(Hn,En+1,Ji.index)):(!Ji.command||En<1)&&ei.push(Ji))}),ei}(Xe)),!bn&&Ve._columns.length&&Xe[dt].push({command:"empty"}),Xe},getInvisibleColumns:function(Ve,St){var lt,Xe=this,Vt=[];return(0,p.S6)(Ve=Ve||Xe._columns,function(dt,vt){if(vt.ownerBand===St){if(vt.isBand)return void((lt=vt.visible?Xe.getInvisibleColumns(Xe.getChildrenByBandColumn(vt.index),vt.index):Xe.getChildrenByBandColumn(vt.index)).length&&(Vt.push(vt),Vt=Vt.concat(lt)));vt.visible||Vt.push(vt)}}),Vt},getChooserColumns:function(Ve){return((lt,dt)=>{if("asc"!==dt&&"desc"!==dt)return lt;var vt="asc"===dt?1:-1;return lt.sort(function(Lt,bn){return vt*(Lt.caption||"").localeCompare(bn.caption||"")}),lt})((Ve?this.getColumns():this.getInvisibleColumns()).filter(lt=>lt.showInColumnChooser),this.option("columnChooser.sortOrder"))},allowMoveColumn:function(Ve,St,Xe,Vt){var lt=te(this,Ve,Xe),dt=this._columns[lt];return!(!dt||!(dt.allowReordering||dt.allowGrouping||dt.allowHiding))&&(Xe===Vt?"columnChooser"!==Xe&&(Ve=(0,a.Kn)(Ve)?Ve.columnIndex:Ve)!==(St=(0,a.Kn)(St)?St.columnIndex:St)&&Ve+1!==St:"group"===Xe&&"columnChooser"!==Vt||"group"===Vt?dt&&dt.allowGrouping:"columnChooser"!==Xe&&"columnChooser"!==Vt||dt&&dt.allowHiding)},moveColumn:function(Ve,St,Xe,Vt){var dt,bn,lt={},vt=te(this,Ve,Xe),Lt=te(this,St,Vt);if(vt>=0){var mn=this._columns[vt];if(St=(0,a.Kn)(St)?St.columnIndex:St,bn=Lt>=0?this._columns[Lt].groupIndex:-1,(0,a.$K)(mn.groupIndex)&&"group"===Xe&&(bn>mn.groupIndex&&bn--,"group"!==Vt?lt.groupIndex=void 0:(dt=mn.groupIndex,delete mn.groupIndex,re(this))),"group"===Vt)lt.groupIndex=function(li,ki,Vn){var Hn,Oi=li.getGroupColumns();if(Vn>=0)for(Hn=0;Hn<Oi.length;Hn++)Oi[Hn].groupIndex>=Vn&&Oi[Hn].groupIndex++;else for(Vn=0,Hn=0;Hn<Oi.length;Hn++)Vn=Math.max(Vn,Oi[Hn].groupIndex+1);return Vn}(this,0,bn),mn.groupIndex=dt;else if(St>=0){var xn=this._columns[Lt];lt.visibleIndex=!xn||mn.ownerBand!==xn.ownerBand||yt(this,mn)^yt(this,xn)?J:xn.visibleIndex}var Xn="columnChooser"!==Vt;mn.visible!==Xn&&(lt.visible=Xn),this.columnOption(mn.index,lt)}},changeSortOrder:function(Ve,St){var Xe={},Vt=this.option("sorting"),lt=Vt&&Vt.mode,Lt=this._columns[Ve];("single"===lt||"multiple"===lt)&&Lt&&Lt.allowSorting&&(("single"===lt||!St)&&!(0,a.$K)(Lt.groupIndex)&&(0,p.S6)(this._columns,function(bn){bn!==Ve&&this.sortOrder&&((0,a.$K)(this.groupIndex)||delete this.sortOrder,delete this.sortIndex)}),Pe(St)?Lt.sortOrder!==St&&(Xe.sortOrder=St):"none"===St?Lt.sortOrder&&(Xe.sortIndex=void 0,Xe.sortOrder=void 0):function(bn){if("ctrl"===St){if(!("sortOrder"in bn)||!("sortIndex"in bn))return!1;Xe.sortOrder=void 0,Xe.sortIndex=void 0}else Xe.sortOrder=(0,a.$K)(bn.groupIndex)||(0,a.$K)(bn.sortIndex)?"desc"===bn.sortOrder?"asc":"desc":"asc"}(Lt)),this.columnOption(Lt.index,Xe)},getSortDataSourceParameters:function(Ve){var St=[],Xe=[];return(0,p.S6)(this._columns,function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,a.$K)(this.sortIndex)&&!(0,a.$K)(this.groupIndex)&&(St[this.sortIndex]=this)}),(0,p.S6)(St,function(){if(Pe(this&&this.sortOrder)){var lt={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||Ve&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(lt.compare=this.sortingMethod.bind(this)),Xe.push(lt)}}),Xe.length>0?Xe:null},getGroupDataSourceParameters:function(Ve){var St=[];return(0,p.S6)(this.getGroupColumns(),function(){var Xe=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||Ve&&this.selector||this.dataField||this.calculateCellValue;if(Xe){var Vt={selector:Xe,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(Vt.compare=this.sortingMethod.bind(this)),St.push(Vt)}}),St.length>0?St:null},refresh:function(Ve){var St=[];return(0,p.S6)(this._columns,function(){var Xe=this.lookup;if(Xe&&!this.calculateDisplayValue){if(Ve&&Xe.valueMap)return;Xe.update&&St.push(Xe.update())}}),k.gx.apply(c.Z,St).done(Ae.bind(null,this))},_updateColumnOptions:function(Ve,St){Ve.selector=Ve.selector||function(lt){return Ve.calculateCellValue(lt)},this._reinitAfterLookupChanges&&this._previousColumns?(Ve.selector.columnIndex=St,Ve.selector.originalCallback=this._previousColumns[St].selector.originalCallback):(Ve.selector.columnIndex=St,Ve.selector.originalCallback=Ve.selector),(0,p.S6)(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],function(lt,dt){var vt=Ve[dt];if((0,a.mf)(vt))if(vt.originalCallback)Ve[dt].context.column=Ve;else{var Lt={column:Ve};Ve[dt]=function(bn){return vt.call(Lt.column,bn)},Ve[dt].originalCallback=vt,Ve[dt].columnIndex=St,Ve[dt].context=Lt}}),(0,a.HD)(Ve.calculateDisplayValue)&&(Ve.displayField=Ve.calculateDisplayValue,Ve.calculateDisplayValue=(0,g.vb)(Ve.displayField)),Ve.calculateDisplayValue&&(Ve.displayValueMap=Ve.displayValueMap||{}),ce(Ve,Ve.dataType);var Xe=Ve.lookup;Xe&&ce(Xe,Xe.dataType);var Vt=Xe?Xe.dataType:Ve.dataType;Vt&&(Ve.alignment=Ve.alignment||function(lt,dt){switch(lt){case"number":return"right";case"boolean":return"center";default:return(0,s.q)(dt)}}(Vt,this.option("rtlEnabled")),Ve.format=Ve.format||y.Z.getFormatByDataType(Vt),Ve.customizeText=Ve.customizeText||pe(Vt),Ve.defaultFilterOperations=Ve.defaultFilterOperations||!Xe&&X[Vt]||[],(0,a.$K)(Ve.filterOperations)||oe(Ve),Ve.defaultFilterOperation=Ve.filterOperations&&Ve.filterOperations[0]||"=",Ve.showEditorAlways=(0,a.$K)(Ve.showEditorAlways)?Ve.showEditorAlways:"boolean"===Vt&&!Ve.cellTemplate&&!Ve.lookup)},updateColumnDataTypes:function(Ve){var St=this,Xe=St.option("dateSerializationFormat"),Vt=St._getFirstItems(Ve),lt=!1;return(0,p.S6)(St._columns,function(dt,vt){var Lt,bn,mn,xn,Xn,li=vt.lookup;if(y.Z.isDateType(vt.dataType)&&void 0===vt.serializationFormat&&(vt.serializationFormat=Xe),li&&y.Z.isDateType(li.dataType)&&void 0===vt.serializationFormat&&(li.serializationFormat=Xe),vt.calculateCellValue&&Vt.length){if(!vt.dataType||li&&!li.dataType){for(Lt=0;Lt<Vt.length;Lt++)bn=vt.calculateCellValue(Vt[Lt]),vt.dataType||(Xn=ye(bn),(mn=mn||Xn)&&Xn&&mn!==Xn&&(mn="string")),li&&!li.dataType&&(Xn=ye(y.Z.getDisplayValue(vt,bn,Vt[Lt])),(xn=xn||Xn)&&Xn&&xn!==Xn&&(xn="string"));(mn||xn)&&(mn&&(vt.dataType=mn),li&&xn&&(li.dataType=xn),lt=!0)}if(void 0===vt.serializationFormat||li&&void 0===li.serializationFormat)for(Lt=0;Lt<Vt.length;Lt++)bn=vt.calculateCellValue(Vt[Lt],!0),void 0===vt.serializationFormat&&(vt.serializationFormat=ne(vt.dataType,bn)),li&&void 0===li.serializationFormat&&(li.serializationFormat=ne(li.dataType,li.calculateCellValue(bn,!0)))}St._updateColumnOptions(vt,dt)}),lt},_customizeColumns:function(Ve){var St=this.option("customizeColumns");St&&(Ve.some(function(Vt){return(0,a.Kn)(Vt.ownerBand)})&&be(this),St(Ve),Ne(this,Te(this,Ve)))},updateColumns:function(Ve,St,Xe){if(St||this.updateSortingGrouping(Ve),!Ve||Ve.isLoaded()){var Vt=Ve?Ve.sort()||[]:this.getSortDataSourceParameters(),lt=Ve?Ve.group()||[]:this.getGroupDataSourceParameters(),dt=Ve?.lastLoadOptions().filter;Xe||this._customizeColumns(this._columns),be(this);var vt=this._columns;return(0,k.gx)(this.refresh(!0)).always(()=>{this._columns===vt&&(this._updateChanges(Ve,{sorting:Vt,grouping:lt,filtering:dt}),tt(this))})}},_updateChanges:function(Ve,St){Ve&&(this.updateColumnDataTypes(Ve),this._dataSourceApplied=!0),y.Z.equalSortParameters(St.sorting,this.getSortDataSourceParameters())||mt(this,"sorting"),y.Z.equalSortParameters(St.grouping,this.getGroupDataSourceParameters())||mt(this,"grouping");var Xe=this.getController("data");Xe&&!y.Z.equalFilterParameters(St.filtering,Xe.getCombinedFilter())&&mt(this,"filtering"),mt(this,"columns")},updateSortingGrouping:function(Ve,St){var Vt,lt,Xe=this,dt=function(Xn,li,ki){(0,p.S6)(Xn,function(Vn,Oi){if(delete Oi[ki],li)for(var Hn=0;Hn<li.length;Hn++){var En=li[Hn].selector,Mn=li[Hn].isExpanded;if(En===Oi.dataField||En===Oi.name||En===Oi.selector||En===Oi.calculateCellValue||En===Oi.calculateGroupValue||En===Oi.calculateDisplayValue){Oi.sortOrder=St?"sortOrder"in Oi?Oi.sortOrder:li[Hn].desc?"desc":"asc":Oi.sortOrder||(li[Hn].desc?"desc":"asc"),void 0!==Mn&&(Oi.autoExpandGroup=Mn),Oi[ki]=Hn;break}}})};if(Ve){Vt=y.Z.normalizeSortingInfo(Ve.sort());var vt=y.Z.normalizeSortingInfo(Ve.group()),Lt=Xe.getGroupDataSourceParameters(),bn=Xe.getSortDataSourceParameters(),mn=!y.Z.equalSortParameters(vt,Lt,!0),xn=!mn&&!y.Z.equalSortParameters(vt,Lt);Xe._columns.length||((0,p.S6)(vt,function(Xn,li){Xe._columns.push(li.selector)}),(0,p.S6)(Vt,function(Xn,li){(0,a.mf)(li.selector)||Xe._columns.push(li.selector)}),Ne(Xe,Te(Xe,Xe._columns))),(St||!Lt&&!Xe._hasUserState)&&(mn||xn)&&(dt(Xe._columns,vt,"groupIndex"),St&&(mn&&mt(Xe,"grouping"),xn&&mt(Xe,"groupExpanding"),lt=!0)),(St||!bn&&!Xe._hasUserState)&&!y.Z.equalSortParameters(Vt,bn)&&(dt(Xe._columns,Vt,"sortIndex"),St&&(mt(Xe,"sorting"),lt=!0)),lt&&tt(Xe)}},updateFilter:function(Ve,St,Xe,Vt){if(!Array.isArray(Ve))return Ve;if(Xe=void 0!==(Ve=(0,l.l)([],Ve)).columnIndex?Ve.columnIndex:Xe,Vt=void 0!==Ve.filterValue?Ve.filterValue:Vt,(0,a.HD)(Ve[0])&&"!"!==Ve[0]){var lt=this.columnOption(Ve[0]);St?(0,h.Z)().forceIsoDateParsing&&lt&&lt.serializeValue&&Ve.length>1&&(Ve[Ve.length-1]=lt.serializeValue(Ve[Ve.length-1],"filter")):lt&&lt.selector&&(Ve[0]=lt.selector,Ve[0].columnIndex=lt.index)}else(0,a.mf)(Ve[0])&&(Ve[0].columnIndex=Xe,Ve[0].filterValue=Vt);for(var dt=0;dt<Ve.length;dt++)Ve[dt]=this.updateFilter(Ve[dt],St,Xe,Vt);return Ve},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(Ve,St,Xe,Vt){var lt=this,dt=lt._columns.concat(lt._commandColumns),vt=gn(dt,Ve);if(vt){if(1===arguments.length)return(0,l.l)({},vt);if((0,a.HD)(St)){if(2===arguments.length)return tn(lt,vt,St);tn(lt,vt,St,Xe,Vt)}else(0,a.Kn)(St)&&(0,p.S6)(St,function(Lt,bn){tn(lt,vt,Lt,bn,Vt)});tt(lt)}},clearSorting:function(){var Ve=this.columnCount();this.beginUpdate();for(var St=0;St<Ve;St++)this.columnOption(St,"sortOrder",void 0);this.endUpdate()},clearGrouping:function(){var Ve=this.columnCount();this.beginUpdate();for(var St=0;St<Ve;St++)this.columnOption(St,"groupIndex",void 0);this.endUpdate()},getVisibleIndex:function(Ve,St){for(var Xe=this.getVisibleColumns(St),Vt=Xe.length-1;Vt>=0;Vt--)if(Xe[Vt].index===Ve)return Vt;return-1},getVisibleIndexByColumn:function(Ve,St){var Xe=this.getVisibleColumns(St),Vt=Xe.filter(lt=>lt.index===Ve.index&&lt.command===Ve.command)[0];return Xe.indexOf(Vt)},getVisibleColumnIndex:function(Ve,St){var Xe=this.columnOption(Ve,"index");return this.getVisibleIndex(Xe,St)},addColumn:function(Ve){var St=fe(this,Ve),Xe=this._columns.length;this._columns.push(St),St.isBand&&(this._columns=Te(this,this._columns),St=this._columns[Xe]),St.added=Ve,be(this,St),this.updateColumns(this._dataSource),this._checkColumns()},deleteColumn:function(Ve){var Vt,St=this.columnOption(Ve);if(St&&St.index>=0){if((Vt=this._columns).forEach(lt=>{(0,a.$K)(lt.ownerBand)&&(lt.ownerBand=Vt[lt.ownerBand])}),this._columns.splice(St.index,1),St.isBand){var Xe=this.getChildrenByBandColumn(St.index).map(lt=>lt.index);this._columns=this._columns.filter(lt=>Xe.indexOf(lt.index)<0)}be(this),this.updateColumns(this._dataSource)}},addCommandColumn:function(Ve){var St=this._commandColumns.filter(Xe=>Xe.command===Ve.command)[0];St||this._commandColumns.push(St=Ve)},getUserState:function(){var Xe,Ve=this._columns,St=[];function Vt(lt,dt){void 0!==Ve[Xe][dt]&&(St[Xe][dt]=Ve[Xe][dt])}for(Xe=0;Xe<Ve.length;Xe++)St[Xe]={},(0,p.S6)(U,Vt);return St},setName:function(Ve){Ve.name=Ve.name||Ve.dataField||Ve.type},setUserState:function(Ve){var St=this._dataSource,Xe=this.option("stateStoring.ignoreColumnOptionNames");if(Ve?.forEach(this.setName),!Xe){Xe=[];var Vt=this.getCommonSettings();this.option("columnChooser.enabled")||Xe.push("visible"),"none"===this.option("sorting.mode")&&Xe.push("sortIndex","sortOrder"),Vt.allowGrouping||Xe.push("groupIndex"),Vt.allowFixing||Xe.push("fixed","fixedPosition"),Vt.allowResizing||Xe.push("width","visibleWidth");var lt=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&lt&&Xe.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&lt&&Xe.push("filterValues","filterType")}this._columnsUserState=Ve,this._ignoreColumnOptionNames=Xe,this._hasUserState=!!Ve,mt(this,"filtering"),this.init(!0),St&&(St.sort(this.getSortDataSourceParameters()),St.group(this.getGroupDataSourceParameters()))},_checkColumns:function(){var Ve={},St=!1,Xe=[];this._columns.forEach(Vt=>{var lt,dt=Vt.name,vt=null===(lt=Vt.columns)||void 0===lt?void 0:lt.length,Lt=Vt.allowEditing&&(Vt.dataField||Vt.setCellValue)&&!vt;dt?(Ve[dt]&&Xe.push('"'.concat(dt,'"')),Ve[dt]=!0):Lt&&(St=!0)}),Xe.length&&x.Z.log("E1059",Xe.join(", ")),St&&x.Z.log("E1060")},_createCalculatedColumnOptions:function(Ve,St){var Xe={},Vt=Ve.dataField;if((Array.isArray(Ve.columns)&&Ve.columns.length||Ve.isBand)&&(Xe.isBand=!0,Vt=null),Vt){if((0,a.HD)(Vt)){var lt=(0,g.vb)(Vt);Xe={caption:(0,E.GK)(Vt),calculateCellValue:function(dt,vt){var Lt=lt(dt);return this.deserializeValue&&!vt?this.deserializeValue(Lt):Lt},setCellValue:$e,parseValue:function(dt){var vt,Lt;return"number"===this.dataType?(0,a.HD)(dt)&&this.format?vt=function(bn,mn){var xn=O.Z.parse(bn);if((0,a.kE)(xn)){var Xn=O.Z.format(xn,mn),li=O.Z.format(xn,"decimal");if(Xn===bn||li===bn)return xn}}(dt.trim(),this.format):(0,a.$K)(dt)&&(0,a.kE)(dt)&&(vt=Number(dt)):"boolean"===this.dataType?dt===this.trueText?vt=!0:dt===this.falseText&&(vt=!1):y.Z.isDateType(this.dataType)?(Lt=w.Z.parse(dt,this.format))&&(vt=Lt):vt=dt,vt}}}Xe.allowFiltering=!0}else Xe.allowFiltering=!!Ve.calculateFilterExpression;return Xe.calculateFilterExpression=function(){return z.Z.defaultCalculateFilterExpression.apply(this,arguments)},Xe.defaultFilterOperation="=",Xe.createFilterExpression=function(dt){var vt;return this.calculateFilterExpression&&(vt=this.calculateFilterExpression.apply(this,arguments)),(0,a.mf)(vt)&&(vt=[vt,"=",!0]),vt&&(vt.columnIndex=this.index,vt.filterValue=dt),vt},(!Vt||!(0,a.HD)(Vt))&&(0,l.l)(!0,Xe,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),St&&(Xe.allowFixing=!1),Ve.dataType&&(Xe.userDataType=Ve.dataType),Ve.selectedFilterOperation&&!("defaultSelectedFilterOperation"in Xe)&&(Xe.defaultSelectedFilterOperation=Ve.selectedFilterOperation),Ve.lookup&&(Xe.lookup={calculateCellValue:function(dt,vt){return this.valueExpr&&(dt=this.valueMap&&this.valueMap[dt]),this.deserializeValue&&!vt?this.deserializeValue(dt):dt},updateValueMap:function(){if(this.valueMap={},this.items)for(var dt=(0,g.vb)(this.valueExpr),vt=(0,g.vb)(this.displayExpr),Lt=0;Lt<this.items.length;Lt++){var bn=this.items[Lt],mn=vt(bn);this.valueMap[dt(bn)]=mn,this.dataType=this.dataType||ye(mn)}},update:function(){var dt=this,vt=dt.dataSource;if(vt)if((0,a.mf)(vt)&&!C.Z.isWrapped(vt)&&(vt=vt({})),(0,a.PO)(vt)||vt instanceof R.Z||Array.isArray(vt)){if(dt.valueExpr){var Lt=(0,B.aN)(vt);return Lt.paginate=!1,(vt=new P.o(Lt)).load().done(function(bn){dt.items=bn,dt.updateValueMap&&dt.updateValueMap()})}}else x.Z.log("E1016");else dt.updateValueMap&&dt.updateValueMap()}}),Xe.resizedCallbacks=(0,I.Z)(),Ve.resized&&Xe.resizedCallbacks.add(Ve.resized.bind(Ve)),(0,p.S6)(Xe,function(dt){if((0,a.mf)(Xe[dt])&&0!==dt.indexOf("default")){var vt="default"+dt.charAt(0).toUpperCase()+dt.substr(1);Xe[vt]=Xe[dt]}}),Xe},getRowCount:function(){return this._rowCount=this._rowCount||(St=1,Vt=(Ve=this).getBandColumnsCache().columnParentByIndex,Ve._columns.forEach(function(lt){var dt=Be(lt.index,Vt),vt=dt.filter(function(Lt){return!Lt.visible});lt.visible&&!vt.length&&(St=Math.max(St,dt.length+1))}),St),this._rowCount;var Ve,St,Vt},getRowIndex:function(Ve,St){var Xe=this._columns[Ve],Vt=this.getBandColumnsCache();return Xe&&(St||Xe.visible&&!Xe.command&&!(0,a.$K)(Xe.groupIndex))?Be(Ve,Vt.columnParentByIndex).length:0},getChildrenByBandColumn:function(Ve,St){var Xe=this.getBandColumnsCache(),Vt=ze(Ve,Xe.columnChildrenByIndex,!St);return St?Vt.filter(function(lt){return lt.visible&&!lt.command}).sort(function(lt,dt){return lt.visibleIndex-dt.visibleIndex}):Vt},isParentBandColumn:function(Ve,St){var Xe=!1,Vt=this._columns[Ve],lt=this.getBandColumnsCache(),dt=Vt&&Be(Ve,lt.columnParentByIndex);return dt&&(0,p.S6)(dt,function(vt,Lt){if(Lt.index===St)return Xe=!0,!1}),Xe},isParentColumnVisible:function(Ve){var St=!0,Xe=this.getBandColumnsCache(),Vt=Ve>=0&&Be(Ve,Xe.columnParentByIndex);return Vt&&(0,p.S6)(Vt,function(lt,dt){return St=St&&dt.visible}),St},getColumnId:function(Ve){return Ve.command&&Ve.type===j?ge(this,Ve)?"type:"+Ve.type:"command:"+Ve.command:Ve.index},getCustomizeTextByDataType:pe,getHeaderContentAlignment:function(Ve){return this.option("rtlEnabled")?"left"===Ve?"right":"left":Ve}};return ut}())}}},6359:(Rn,he,u)=>{"use strict";u.d(he,{s:()=>ze});var o=u(1805),c=u(9904),I=u(9897),C=u(913),g=u(5365),a=u(1828),p=u(2718),s=u(5873),l=u(5450),d=u(8225),h=u(8690),v=u(6722),x=u(3390),b=u(2879),y=u(3553),E=u(7078),O="columns-separator-transparent",w="drag-header",k="drag-action",R="tracker",P="drop-highlight",B="dx-block-separator",W="dx-header-row",U="dxDataGridResizingReordering",j=function(ae){return ae.option("allowColumnResizing")||ae.getController("columns").isColumnOptionUsed("allowResizing")},ee=function(ae){return ae.option("allowColumnReordering")||ae.getController("columns").isColumnOptionUsed("allowReordering")},G=x.Z.View.inherit({_renderCore:function(){var ae=this.callBase();return this.element().addClass(this.addWidgetPrefix(R)),this.hide(),ae},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var ae=this;ae._positionChanged=function(_e){var ye=ae.element();ye&&ye.hasClass(ae.addWidgetPrefix(R))&&(ye.css({top:_e.top}),(0,o.QQ)(ye,_e.height))},this._tablePositionController.positionChanged.add(ae._positionChanged)},optionChanged:function(ae){"allowColumnResizing"===ae.name&&(this._unsubscribeFromCallback(),ae.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(ae)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return j(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(ae){(0,o.QQ)(this.element(),ae)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),q=x.Z.View.inherit({_renderSeparator:function(){},_renderCore:function(ae){var _e=this.callBase(ae);return this._isShown=!0,this._renderSeparator(),this.hide(),_e},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(ae){var _e=this.element();if(_e){if(!(0,a.$K)(ae))return(0,o.Cr)(_e);(0,o.QQ)(_e,ae)}},width:function(ae){var _e=this.element();if(_e){if(!(0,a.$K)(ae))return(0,o.dz)(_e);(0,o.cl)(_e,ae)}}}),Z=q.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var _e,ae=this;ae._positionChanged=function(ye){(_e=ae.element())&&(_e.css({top:ye.top}),(0,o.QQ)(_e,ye.height))},ae._tablePositionController.positionChanged.add(ae._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=j(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(ee(this)||j(this))},optionChanged:function(ae){"allowColumnResizing"===ae.name&&(ae.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=j(this),this.hide(!0))),this.callBase(ae)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var ae=this.element();ae&&!this._isShown&&(this._isTransparent?ae.removeClass(this.addWidgetPrefix(O)):ae.show()),this.callBase()},hide:function(ae){var _e=this.element(),ye=this.addWidgetPrefix(O);_e&&(this._isShown||ae)&&(this._isTransparent?(_e.addClass(ye),_e.css("left",""),_e.show()):(_e.hasClass(ye)&&_e.removeClass(ye),_e.hide())),this.callBase()},moveByX:function(ae){var _e=this.element();_e&&_e.css("left",null===ae?0:ae-this._parentElement().offset().left)},changeCursor:function(ae){ae=(0,a.$K)(ae)?ae:"";var _e=this.element();_e&&_e.css("cursor",ae)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),X=q.inherit({init:function(){var ae=this;this.callBase(),this.getController("data").loadingChanged.add(function(_e){_e||ae.hide()})},_renderSeparator:function(){this.callBase(),this.element().addClass(B).html("&nbsp;")},hide:function(){var ae=this._parentElement(),_e=this.element();_e&&this._isShown&&_e.css("display","none"),ae&&!ae.children("."+B).length&&ae.prepend(this.element()),this.callBase()},isVisible:function(){var ae=this.option("groupPanel"),_e=this.option("columnChooser");return ae&&ae.visible||_e&&_e.enabled},show:function(ae){var _e=this.element(),ye=function(ne){y.Z.stop(_e,!0),y.Z.animate(_e,{type:"slide",from:{width:0,display:ne.display},to:ne,duration:300,easing:"swing"})};if(_e&&!this._isShown)switch(ae){case"group":ye({width:"50px",display:"inline-block"});break;case"columnChooser":ye({width:"100%",display:"block"});break;default:_e.css("display","")}this.callBase()}}),M=x.Z.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(ae){var _e;return(0,p.S6)(this._dragOptions.draggingPanels,function(ye,ne){if(ne){var ce=ne.getBoundingRect();if(ce&&(void 0===ce.bottom||ae.y<ce.bottom)&&(void 0===ce.top||ae.y>ce.top)&&(void 0===ce.left||ae.x>ce.left)&&(void 0===ce.right||ae.x<ce.right))return _e=ne,!1}}),_e},_renderCore:function(){this.element().addClass(this.addWidgetPrefix(w)+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var ae=this._dropOptions;ae.targetColumnIndex=-1,delete ae.targetColumnElement,delete ae.isLast,delete ae.posX,delete ae.posY},_getVisibleIndexObject:function(ae,_e){return(0,a.$K)(ae)?{columnIndex:_e,rowIndex:ae}:_e},dispose:function(){var ae=this.element();this._dragOptions=null,ae&&ae.parent().find("."+this.addWidgetPrefix(w)).remove()},isVisible:function(){var _e=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(ee(this)||_e.allowGrouping||_e.allowHiding)},init:function(){var ae=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add(function(_e){var ye=ae.element();!_e&&ye&&ye.hide()})},dragHeader:function(ae){var _e=ae.columnElement,ye=!!ae.sourceColumn.type;this._isDragging=!0,this._dragOptions=ae,this._dropOptions={sourceIndex:ae.index,sourceColumnIndex:this._getVisibleIndexObject(ae.rowIndex,ae.columnIndex),sourceColumnElement:ae.columnElement,sourceLocation:ae.sourceLocation};var ne=I.Z.getDocument();this._onSelectStart=ne.onselectstart,ne.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:_e&&_e.css("textAlign"),height:_e&&(ye&&_e.get(0).clientHeight||(0,o.Cr)(_e)),width:_e&&(ye&&_e.get(0).clientWidth||(0,o.dz)(_e)),whiteSpace:_e&&_e.css("whiteSpace")}).addClass(this.addWidgetPrefix(k)).toggleClass("dx-drag-command-cell",ye).text(ye?"":ae.sourceColumn.caption),this.element().appendTo(E.Z.getSwatchContainer(_e))},moveHeader:function(ae){var _e=ae.event,ye=_e.data.that,ne=(0,d.a0)(_e),ce=!!ye._columnsResizerViewController&&ye._columnsResizerViewController.isResizing(),le=ye._dragOptions;if(ye._isDragging&&!ce){var pe=ye.element(),Se=Math.abs(ne.x-le.columnElement.offset().left-le.deltaX),re=Math.abs(ne.y-le.columnElement.offset().top-le.deltaY);(pe.is(":visible")||Se>5||re>5)&&(pe.show(),pe.css({left:ne.x-le.deltaX,top:ne.y-le.deltaY}),ye.dockHeader(ne)),_e.preventDefault()}},dockHeader:function(ae){var _e=this._getDraggingPanelByPos(ae),ye=this._controller,ne=this._dropOptions,ce=this._dragOptions;if(_e){var le=this.option("rtlEnabled"),pe="columnChooser"===_e.getName(),Se=pe?"y":"x",re=_e.getName(),te="headers"===re?ce.rowIndex:void 0,ue=_e.getColumnElements(te,ce.sourceColumn?.ownerBand)||[],be=ce.pointsByTarget=ce.pointsByTarget||{},Ae="columnChooser"===re?[]:be[re]||ye._generatePointsByColumns((0,s.l)({},ce,{targetDraggingPanel:_e,columns:_e.getColumns(te),columnElements:ue,isVerticalOrientation:pe,startColumnIndex:"headers"===re&&(0,c.Z)(ue[0]).index()}));if(be[re]=Ae,ne.targetLocation=re,Ae.length>0)for(var Ne=0;Ne<Ae.length;Ne++){var mt=Ae[Ne+1]&&(Ae[Ne][Se]+Ae[Ne+1][Se])/2;if(void 0===mt||(le&&"x"===Se?ae[Se]>mt:ae[Se]<mt)){ne.targetColumnIndex=this._getVisibleIndexObject(te,Ae[Ne].columnIndex),ue[Ne]?(ne.targetColumnElement=ue.eq(Ne),ne.isLast=!1):(ne.targetColumnElement=ue.last(),ne.isLast=!0),ne.posX=Ae[Ne].x,ne.posY=Ae[Ne].y,ye.dock(ne);break}}else this._resetTargetColumnOptions(),ye.dock(ne)}},dropHeader:function(ae){var ye=ae.event.data.that,ne=ye._controller;ye.element().hide(),ne&&ye._isDragging&&ne.drop(ye._dropOptions),ye.element().appendTo(ye._parentElement()),ye._dragOptions=null,ye._dropOptions=null,ye._isDragging=!1,I.Z.getDocument().onselectstart=ye._onSelectStart||null}}),oe=function(ae){return"widget"!==ae.option("columnResizingMode")},fe=x.Z.ViewController.inherit({_isHeadersRowArea:function(ae){if(this._columnHeadersView){var _e=this._columnHeadersView.element();if(_e){var ye=_e.offset().top,ne=this._columnHeadersView.getHeadersRowHeight();return ae>=ye&&ae<=ye+ne}}return!1},_isRtlParentStyle:function(){var ae;return this.option("rtlEnabled")&&"rtl"===(null===(ae=this._$parentContainer)||void 0===ae?void 0:ae.parent().css("direction"))},_pointCreated:function(ae,_e,ye){var ne=oe(this),ce=this.option("rtlEnabled"),le=this._isRtlParentStyle(),pe=ne||!ce||le?1:0;if(ae.index>=pe&&ae.index<_e+(ne||ce&&!le?0:1)){ae.columnIndex-=pe;var Se=ye[ae.columnIndex]||{};return!(ne?Se.allowResizing&&(ye[ae.columnIndex+1]||{}).allowResizing:Se.allowResizing)}return!0},_getTargetPoint:function(ae,_e,ye){if(ae)for(var ne=0;ne<ae.length;ne++)if((ae[ne].x!==ae[0].x||!ae[ne+1]||ae[ne].x!==ae[ne+1].x)&&ae[ne].x-ye<=_e&&_e<=ae[ne].x+ye)return ae[ne];return null},_moveSeparator:function(ae){var _e,ye=ae.event,ne=ye.data,ce=ne._columnsSeparatorView.width(),le=oe(ne),pe=ce/2,Se=ne._$parentContainer.offset(),re=Se.left,te=(0,d.a0)(ye),ie=ne.option("rtlEnabled"),ue=this._isRtlParentStyle(),be=null===(_e=ne._draggingHeaderView)||void 0===_e?void 0:_e.isDragging();if(ne._isResizing&&ne._resizingInfo){if((re<=te.x||!le&&ue)&&(!le||te.x<=re+(0,o.dz)(ne._$parentContainer))&&ne._updateColumnsWidthIfNeeded(te.x)){var Ae=ne._columnHeadersView.getColumnElements().eq(ne._resizingInfo.currentColumnIndex),Ne=Ae[0];if(Ne){var mt=Ne.getBoundingClientRect().width;ne._columnsSeparatorView.moveByX(Ae.offset().left+((le||ue)&&ie?0:mt)),ne._tablePositionController.update(ne._targetPoint.y),ye.preventDefault()}}}else be||(ne._isHeadersRowArea(te.y)?(ne._previousParentOffset&&(ne._previousParentOffset.left!==Se.left||ne._previousParentOffset.top!==Se.top)&&ne.pointsByColumns(null),ne._targetPoint=ne._getTargetPoint(ne.pointsByColumns(),te.x,ce),ne._previousParentOffset=Se,ne._isReadyResizing=!1,ne._targetPoint?(ne._columnsSeparatorView.changeCursor("col-resize"),ne._columnsSeparatorView.moveByX(ne._targetPoint.x-pe),ne._tablePositionController.update(ne._targetPoint.y),ne._isReadyResizing=!0,ye.preventDefault()):(ne._columnsSeparatorView.changeCursor(),ne._columnsSeparatorView.moveByX(null))):(ne.pointsByColumns(null),ne._isReadyResizing=!1,ne._columnsSeparatorView.changeCursor(),ne._columnsSeparatorView.moveByX(null)))},_endResizing:function(ae){var ye=ae.event.data;ye._isResizing&&(ye.pointsByColumns(null),ye._resizingInfo=null,ye._columnsSeparatorView.hide(),ye._columnsSeparatorView.changeCursor(),ye._trackerView.hide(),ye._isReadyResizing=!1,ye._isResizing=!1)},_getNextColumnIndex:function(ae){return ae+1},_setupResizingInfo:function(ae){var _e=this._targetPoint.columnIndex,ye=this._getNextColumnIndex(_e),ne=this._columnHeadersView.getHeaderElement(_e),ce=this._columnHeadersView.getHeaderElement(ye);this._resizingInfo={startPosX:ae,currentColumnIndex:_e,currentColumnWidth:ne&&ne.length>0?(0,l.l)(ne[0]).width:0,nextColumnIndex:ye,nextColumnWidth:ce&&ce.length>0?(0,l.l)(ce[0]).width:0}},_startResizing:function(ae){var _e=ae.event,ye=_e.data,ne=(0,d.a0)(_e);if((0,d.z6)(_e)&&(ye._isHeadersRowArea(ne.y)?(ye._targetPoint=ye._getTargetPoint(ye.pointsByColumns(),ne.x,10),ye._targetPoint&&(ye._columnsSeparatorView.moveByX(ye._targetPoint.x-ye._columnsSeparatorView.width()/2),ye._isReadyResizing=!0)):ye._isReadyResizing=!1),ye._isReadyResizing){ye._setupResizingInfo(ne.x),ye._isResizing=!0,ye._tablePositionController.update(ye._targetPoint.y),ye._columnsSeparatorView.show(),ye._trackerView.show();var ce=ye.component.getScrollable();ce&&ye._isRtlParentStyle()&&(ye._scrollRight=(0,o.dz)(ce.$content())-(0,o.dz)(ce.container())-ce.scrollLeft()),_e.preventDefault(),_e.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var ae=this,_e=ae._columnsController?ae._columnsController.getVisibleColumns():[],ye=ae._columnHeadersView.getColumnElements(),ne=[];ye&&ye.length>0&&(ne=b.Z.getPointsByColumns(ye,function(ce){return ae._pointCreated(ce,ye.length,_e)})),ae._pointsByColumns=ne},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&C.Z.off(I.Z.getDocument(),(0,d.V4)(h.Z.move,U),this._moveSeparatorHandler),this._startResizingHandler&&C.Z.off(this._$parentContainer,(0,d.V4)(h.Z.down,U),this._startResizingHandler),this._endResizingHandler&&(C.Z.off(this._columnsSeparatorView.element(),(0,d.V4)(h.Z.up,U),this._endResizingHandler),C.Z.off(I.Z.getDocument(),(0,d.V4)(h.Z.up,U),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),C.Z.on(I.Z.getDocument(),(0,d.V4)(h.Z.move,U),this,this._moveSeparatorHandler),C.Z.on(this._$parentContainer,(0,d.V4)(h.Z.down,U),this,this._startResizingHandler),C.Z.on(this._columnsSeparatorView.element(),(0,d.V4)(h.Z.up,U),this,this._endResizingHandler),C.Z.on(I.Z.getDocument(),(0,d.V4)(h.Z.up,U),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(ae){var _e,ye,ne=this._rowsView.contentWidth(),ce=this._resizingInfo,le=this._columnsController,pe=le.getVisibleColumns(),Se=this._columnsSeparatorView.width(),re=oe(this),te=re&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),ie=this.option("rtlEnabled"),ue=this._isRtlParentStyle(),be=pe[ce.currentColumnIndex],Ae=pe[ce.nextColumnIndex];function Ne(De){return(0,a.HD)(De)&&"%"===De.slice(-1)}function mt(De,Ye,bt,yt){if(De){var kt=De.width;kt&&(yt=Ne(kt)),yt?(le.columnOption(De.index,"visibleWidth",Ye),le.columnOption(De.index,"width",(Ye/bt*100).toFixed(3)+"%")):(le.columnOption(De.index,"visibleWidth",null),le.columnOption(De.index,"width",Ye))}}_e=ae-ce.startPosX,(re||ue)&&ie&&(_e=-_e);var De,Ye,bt,yt,kt,gn,ut,{cellWidth:tt,nextCellWidth:Le}=(ut={},(kt=ce.currentColumnWidth+(De=_e))>=(gn=be&&be.minWidth||Se)?ut.cellWidth=kt:(ut.cellWidth=gn,yt=!0),re&&((bt=ce.nextColumnWidth-De)>=(Ye=Ae&&Ae.minWidth||Se)?ut.nextCellWidth=yt?ce.nextColumnWidth-(De+gn-kt):bt:(ut.nextCellWidth=Ye,ut.cellWidth=ce.currentColumnWidth+(De-Ye+bt))),ut);if(ye=be.width!==tt){if(le.beginUpdate(),tt=Math.floor(tt),ne=function(De,Ye){var bt=Ye.every(kt=>kt.width);if(bt){var yt=Ye.reduce((kt,gn)=>(Ne(gn.width)&&(kt+=parseFloat(gn.width)),kt),0);yt>100&&(De=De/yt*100)}return De}(ne,pe),mt(be,tt,ne,te),re)mt(Ae,Le=Math.floor(Le),ne,te);else{var gt=this._columnHeadersView.getColumnWidths();gt[ce.currentColumnIndex]=tt;var tn=gt.reduce((De,Ye)=>De+Ye,0)>this._rowsView.contentWidth();if(!tn){var Pe=b.Z.getLastResizableColumnIndex(pe);Pe>=0&&le.columnOption(pe[Pe].index,"visibleWidth","auto")}for(var $e=0;$e<gt.length;$e++)pe[$e]&&pe[$e]!==be&&void 0===pe[$e].width&&le.columnOption(pe[$e].index,"width",gt[$e])}if(le.endUpdate(),!re){this.component.updateDimensions();var ge=this.component.getScrollable();if(ge&&ue){var Ce=(0,o.dz)(ge.$content())-(0,o.dz)(ge.container())-this._scrollRight;ge.scrollTo({left:Ce})}}}return ye},_subscribeToCallback:function(ae,_e){ae.add(_e),this._subscribesToCallbacks.push({callback:ae,handler:_e})},_unsubscribeFromCallbacks:function(){for(var ae=0;ae<this._subscribesToCallbacks.length;ae++){var _e=this._subscribesToCallbacks[ae];_e.callback.remove(_e.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var ae=this,_e=function(){ae._isResizing||ae.pointsByColumns(null)},ye=function(le){ae._scrollLeft!==le.left&&(ae._scrollLeft=le.left,ae.pointsByColumns(null))};ae._columnsSeparatorView=ae.getView("columnsSeparatorView"),ae._columnHeadersView=ae.getView("columnHeadersView"),ae._trackerView=ae.getView("trackerView"),ae._rowsView=ae.getView("rowsView"),ae._columnsController=ae.getController("columns"),ae._tablePositionController=ae.getController("tablePosition"),ae._$parentContainer=ae.component.$element(),ae._draggingHeaderView=ae.component.getView("draggingHeaderView"),ae._subscribeToCallback(ae._columnHeadersView.renderCompleted,_e),ae._subscribeToCallback(ae._columnHeadersView.resizeCompleted,_e),ae._subscribeToCallback(ae._columnsSeparatorView.renderCompleted,function(){ae._unsubscribeFromEvents(),ae._subscribeToEvents()}),ae._subscribeToCallback(ae._rowsView.renderCompleted,function(){ae._rowsView.scrollChanged.remove(ye),ae._rowsView.scrollChanged.add(ye)});var ne=0!==ae._rowsView.getScrollbarWidth(),ce=0;ae._subscribeToCallback(ae.getController("tablePosition").positionChanged,function(le){if(ae._isResizing&&!ae._rowsView.isResizing){var pe=0!==ae._rowsView.getScrollbarWidth();ne!==pe||ce&&ce!==le.height?(ne=pe,ce=le.height,ae.component.updateDimensions()):ae._rowsView.updateFreeSpaceRowHeight()}ce=le.height})},optionChanged:function(ae){this.callBase(ae),"allowColumnResizing"===ae.name&&(ae.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],j(this)&&this._init()},pointsByColumns:function(ae){if(void 0===ae)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=ae},dispose:function(){this._unsubscribes(),this.callBase()}}),Te=x.Z.ViewController.inherit({update:function(ae){var _e={},ye=this._columnHeadersView.element(),ne=ye&&ye.offset(),ce=ne&&ne.top||0,le=(0,a.$K)(ae)?Math.abs(ae-ce):0,pe=this._columnHeadersView?this._columnHeadersView.getHeight():0,Se=this._rowsView.getScrollbarWidth(!0),re=this._rowsView?this._rowsView.height()-Se:0,te=this.component.getController("columnsResizer"),ie=this.component.getView("draggingHeaderView");_e.height=pe,(te.isResizing()||ie.isDragging())&&(_e.height+=re-le),null!==ae&&ye&&ye.length&&(_e.top=ye[0].offsetTop+le),this.positionChanged.fire(_e)},init:function(){var ae=this;ae.callBase(),ae._columnHeadersView=this.getView("columnHeadersView"),ae._rowsView=this.getView("rowsView"),ae._pagerView=this.getView("pagerView"),ae._rowsView.resizeCompleted.add(function(){if(ae.option("allowColumnResizing")){var _e=ae.getController("columnsResizer")._targetPoint;ae.update(_e?_e.y:null)}})},ctor:function(ae){this.callBase(ae),this.positionChanged=(0,g.Z)()}}),ze={views:{columnsSeparatorView:Z,blockSeparatorView:X,draggingHeaderView:M,trackerView:G},controllers:{draggingHeader:x.Z.ViewController.inherit({_generatePointsByColumns:function(ae){var _e=this;return b.Z.getPointsByColumns(ae.columnElements,function(ye){return _e._pointCreated(ye,ae.columns,ae.targetDraggingPanel.getName(),ae.sourceColumn)},ae.isVerticalOrientation,ae.startColumnIndex)},_pointCreated:function(ae,_e,ye,ne){var ce=_e[ae.columnIndex],le=_e[ae.columnIndex-1];switch(ye){case"columnChooser":return!0;case"headers":return ne&&!ne.allowReordering||(!ce||!ce.allowReordering)&&(!le||!le.allowReordering);default:return 0===_e.length}},_subscribeToEvents:function(ae,_e){var ye=this;(0,p.S6)(_e,function(ne,ce){if(ce)for(var le,pe=ce.getRowCount?ce.getRowCount():1,Se=ce.getName(),re=function(ue,be){if(be){var Ae=(0,c.Z)(be),Ne=le[ue];ce.allowDragging(Ne,Se,_e)&&(Ae.addClass(ye.addWidgetPrefix(k)),C.Z.on(Ae,(0,d.V4)(v.BL,U),ye.createAction(function(mt){var tt=mt.event,Le=(0,d.a0)(tt);ae.dragHeader({deltaX:Le.x-(0,c.Z)(tt.currentTarget).offset().left,deltaY:Le.y-(0,c.Z)(tt.currentTarget).offset().top,sourceColumn:Ne,index:Ne.index,columnIndex:ue,columnElement:Ae,sourceLocation:Se,draggingPanels:_e,rowIndex:ye._columnsController.getRowIndex(Ne.index,!0)})})),C.Z.on(Ae,(0,d.V4)(v.pB,U),{that:ae},ye.createAction(ae.moveHeader)),C.Z.on(Ae,(0,d.V4)(v.ut,U),{that:ae},ye.createAction(ae.dropHeader)))}},te=0;te<pe;te++){var ie=ce.getColumnElements(te)||[];ie.length&&(le=ce.getColumns(te)||[],(0,p.S6)(ie,re))}})},_unsubscribeFromEvents:function(ae,_e){var ye=this;(0,p.S6)(_e,function(ne,ce){if(ce){var le=ce.getColumnElements()||[];(0,p.S6)(le,function(pe,Se){var re=(0,c.Z)(Se);C.Z.off(re,(0,d.V4)(v.BL,U)),C.Z.off(re,(0,d.V4)(v.pB,U)),C.Z.off(re,(0,d.V4)(v.ut,U)),re.removeClass(ye.addWidgetPrefix(k))})}})},_getSeparator:function(ae){return"headers"===ae?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(ae){var _e=this._blockSeparatorView,ye=this._columnsSeparatorView;this._animationColumnIndex=null,_e&&_e.hide(),"block"!==ae&&ye&&ye.hide()},init:function(){var ae=this;ae.callBase(),ae._columnsController=ae.getController("columns"),ae._columnHeadersView=ae.getView("columnHeadersView"),ae._columnsSeparatorView=ae.getView("columnsSeparatorView"),ae._draggingHeaderView=ae.getView("draggingHeaderView"),ae._rowsView=ae.getView("rowsView"),ae._blockSeparatorView=ae.getView("blockSeparatorView"),ae._headerPanelView=ae.getView("headerPanel"),ae._columnChooserView=ae.getView("columnChooserView");var _e=function(){if(ae._draggingHeaderView){var ye=[ae._columnChooserView,ae._columnHeadersView,ae._headerPanelView];ae._unsubscribeFromEvents(ae._draggingHeaderView,ye),ae._subscribeToEvents(ae._draggingHeaderView,ye)}};ae._columnHeadersView.renderCompleted.add(_e),ae._headerPanelView&&ae._headerPanelView.renderCompleted.add(_e),ae._columnChooserView&&ae._columnChooserView.renderCompleted.add(_e)},allowDrop:function(ae){return this._columnsController.allowMoveColumn(ae.sourceColumnIndex,ae.targetColumnIndex,ae.sourceLocation,ae.targetLocation)},drag:function(ae){var _e=ae.sourceIndex,ye=ae.sourceLocation,ne=ae.sourceColumnElement,ce=this._columnHeadersView,le=this._rowsView;ne&&(ne.css({opacity:.5}),"headers"===ye&&(ce&&ce.setRowsOpacity(_e,.5),le&&le.setRowsOpacity(_e,.5)))},dock:function(ae){var _e=this,ye=(0,a.Kn)(ae.targetColumnIndex)?ae.targetColumnIndex.columnIndex:ae.targetColumnIndex,ne=ae.sourceLocation,ce=ae.targetLocation,le=_e._getSeparator(ce),pe=ye>=0;_e._columnHeadersView.element().find("."+W).toggleClass(_e.addWidgetPrefix(P),"headers"!==ne&&"headers"===ce&&!pe),le&&(_e.allowDrop(ae)&&pe?"group"===ce||"columnChooser"===ce?_e._animationColumnIndex!==ye&&(_e.hideSeparators(),le.element()[ae.isLast?"insertAfter":"insertBefore"](ae.targetColumnElement),_e._animationColumnIndex=ye,le.show(ce)):(_e.hideSeparators("block"),_e.getController("tablePosition").update(ae.posY),le.moveByX(ae.posX-le.width()),le.show()):_e.hideSeparators())},drop:function(ae){var _e=ae.sourceColumnElement;if(_e&&(_e.css({opacity:""}),this._columnHeadersView.setRowsOpacity(ae.sourceIndex,""),this._rowsView.setRowsOpacity(ae.sourceIndex,""),this._columnHeadersView.element().find("."+W).removeClass(this.addWidgetPrefix(P))),this.allowDrop(ae)){var ye=this._getSeparator(ae.targetLocation);ye&&ye.hide(),this._columnsController.moveColumn(ae.sourceColumnIndex,ae.targetColumnIndex,ae.sourceLocation,ae.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}}),tablePosition:Te,columnsResizer:fe},extenders:{views:{rowsView:{_needUpdateRowHeight:function(ae){var _e=this.option("wordWrapEnabled"),ye=this.getController("columnsResizer"),ne=ye.isResizing();return this.callBase.apply(this,arguments)||ae>0&&_e&&ne}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}}},5004:(Rn,he,u)=>{"use strict";u.d(he,{p:()=>ye});var o=u(1805),c=u(9904),I=u(9897),C=u(4514),g=u(913),a=u(5610),p=u(8690),s=u(227),l=u(1384),d=u(4722),h=u(7674),v=u(4356),x=u(6881),b=u(1828),y=u(5450),E=u(2718),S=u(5873),O=u(3390),w=u(2879),T=u(4964),k=u(4270),R=u(4505),P="scroll-container",Y="dx-row",J="dx-group-row",ee="dx-master-detail-row",X="0.0001px",M="dxCellHintVisible",fe={render:function(ne){ne.container.append(ne.content)}},Be=function(ne){return"auto"===ne?"":(0,b.kE)(ne)?ne+"px":ne},ze=function(ne,ce,le){ne.style.width=ne.style.maxWidth="auto"===ce.width?"":le},_e={_createScrollableOptions:function(){var ne=this.option("scrolling"),ce=this.option("scrolling.useNative"),le=(0,S.l)({},ne,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===ce&&(ce=!0),"auto"===ce?(delete le.useNative,delete le.useSimulatedScrollbar):(le.useNative=!!ce,le.useSimulatedScrollbar=!ce),le},_updateCell:function(ne,ce){ce.rowType&&this._cellPrepared(ne,ce)},_createCell:function(ne){var ce=ne.column,le=ce.alignment||(0,y.q)(this.option("rtlEnabled")),pe=I.Z.createElement("td");pe.style.textAlign=le;var Se=(0,c.Z)(pe);return"data"===ne.rowType&&ce.headerId&&!ce.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",ce.headerId,Se),ce.cssClass&&Se.addClass(ce.cssClass),"expand"===ce.command&&(Se.addClass(ce.cssClass),Se.addClass(this.addWidgetPrefix("group-space"))),ce.colspan>1?Se.attr("colSpan",ce.colspan):!ce.isBand&&"auto"!==ce.visibleWidth&&this.option("columnAutoWidth")&&((ce.width||ce.minWidth)&&(pe.style.minWidth=Be(ce.minWidth||ce.width)),ce.width&&ze(pe,ce,Be(ce.width))),Se},_createRow:function(ne,ce){var le=(0,c.Z)("<".concat(ce=ce||"tr",">")).addClass(Y);return this.setAria("role","row",le),le},_isAltRow:function(ne){return ne&&ne.dataIndex%2==1},_createTable:function(ne,ce){var le=this,pe=(0,c.Z)("<table>").addClass(le.addWidgetPrefix("table")).addClass(le.addWidgetPrefix("table-fixed"));if(ne&&!ce?(pe.append(le._createColGroup(ne)),d.Z.safari&&pe.append((0,c.Z)("<thead>").append("<tr>")),le.setAria("role","presentation",pe)):le.setAria("hidden",!0,pe),this.setAria("role","presentation",(0,c.Z)("<tbody>").appendTo(pe)),ce)return pe;d.Z.mozilla&&g.Z.on(pe,"mousedown","td",function(re){re.ctrlKey&&re.preventDefault()}),le.option("cellHintEnabled")&&g.Z.on(pe,"mousemove",".dx-row > td",this.createAction(function(re){var te=re.event,ie=(0,c.Z)(te.target),ue=(0,c.Z)(te.currentTarget),be=ue.parent(),Ae=le._columnsController.getVisibleColumns(),Ne=be.data("options"),mt=ue.index(),tt=Ne&&Ne.cells&&Ne.cells[mt],Le=tt?tt.column:Ae[mt],gt=be.hasClass("dx-header-row"),tn=be.hasClass("dx-data-row"),Pe=be.hasClass(ee),$e=be.hasClass(J),ge=be.hasClass(le.addWidgetPrefix("filter-row"));Pe||ge||tn&&tt&&(Ne.isEditing||tt.isEditing||Le?.showEditorAlways)||tn&&(!Le||Le.cellTemplate)||gt&&(!Le||Le.headerCellTemplate)||$e&&(!Le||Le.groupIndex&&Le.groupCellTemplate)||(ie.data(M)&&(ie.removeAttr("title"),ie.data(M,!1)),ie[0].scrollWidth-ie[0].clientWidth>0&&!(0,b.$K)(ie.attr("title"))&&(ie.attr("title",ie.text()),ie.data(M,!0)))}));var Se=function(re){var te=(0,c.Z)(re.currentTarget),ie=(0,c.Z)(re.target).closest(".dx-field-item-content"),ue=te.parent(),be=ue.data("options"),Ae=be&&be.cells&&be.cells[te.index()];if(te.closest("table").is(re.delegateTarget)){var Ne=(0,S.l)({},Ae,{cellElement:(0,x.u)(te),event:re,eventType:re.type});if(Ne.rowIndex=le.getRowIndex(ue),ie.length){var mt=ie.data("dx-form-item");mt.column&&(Ne.column=mt.column,Ne.columnIndex=le._columnsController.getVisibleIndex(Ne.column.index))}return Ne}};return g.Z.on(pe,"mouseover",".dx-row > td",function(re){var te=Se(re);te&&le.executeAction("onCellHoverChanged",te)}),g.Z.on(pe,"mouseout",".dx-row > td",function(re){var te=Se(re);te&&le.executeAction("onCellHoverChanged",te)}),g.Z.on(pe,s.u,".dx-row > td",function(re){var te=Se(re);te&&le.executeAction("onCellClick",te)}),g.Z.on(pe,l.u,".dx-row > td",function(re){var te=Se(re);te&&le.executeAction("onCellDblClick",te)}),function(ne,ce){var le,pe,Se;function re(te){return setTimeout(function(){le=pe=null},te)}g.Z.on(ce,"touchstart touchend",".dx-row",function(te){clearTimeout(Se),"touchstart"===te.type?(le=te.target,pe=te.currentTarget,Se=re(1e3)):Se=re()}),g.Z.on(ce,[s.u,l.u,p.Z.down].join(" "),".dx-row",ne.createAction(function(te){var ie=te.event;le&&(ie.target=le,ie.currentTarget=pe),(0,c.Z)(ie.target).closest("a").length||(te.rowIndex=ne.getRowIndex(ie.currentTarget),te.rowIndex>=0&&(te.rowElement=(0,x.u)((0,c.Z)(ie.currentTarget)),te.columns=ne.getColumns(),ie.type===p.Z.down?ne._rowPointerDown(te):ie.type===s.u?ne._rowClick(te):ne._rowDblClick(te)))}))}(le,pe),pe},_rowPointerDown:h.ZT,_rowClick:h.ZT,_rowDblClick:h.ZT,_createColGroup:function(ne){for(var ce=(0,c.Z)("<colgroup>"),le=0;le<ne.length;le++)for(var pe=ne[le].colspan||1,Se=0;Se<pe;Se++)ce.append(this._createCol(ne[le]));return ce},_createCol:function(ne){var ce=ne.visibleWidth||ne.width;"adaptiveHidden"===ce&&(ce=X);var le=(0,c.Z)("<col>");return(0,v.cl)(le,ce),le},renderDelayedTemplates:function(ne){var ce=this._delayedTemplates,le=ce.filter(Se=>!Se.async),pe=ce.filter(Se=>Se.async);this._delayedTemplates=[],this._renderDelayedTemplatesCore(le,!1,ne),this._renderDelayedTemplatesCoreAsync(pe)},_renderDelayedTemplatesCoreAsync:function(ne){var ce=this;ne.length&&(0,C.Jj)().setTimeout(function(){ce._renderDelayedTemplatesCore(ne,!0)})},_renderDelayedTemplatesCore:function(ne,ce,le){for(var pe=new Date;ne.length;){var Se=ne.shift(),re=Se.options,te=I.Z.getRootNode((0,c.Z)(re.container).get(0)),ie=this._needWaitAsyncTemplates();if((!ce||(0,c.Z)(re.container).closest(te).length||ie)&&(le&&(re.change=le),Se.template.render(re)),ce&&new Date-pe>30){this._renderDelayedTemplatesCoreAsync(ne);break}}!ne.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(ne){var ce;if(ne&&ne.render&&!(0,b.ZU)(ne))ce={allowRenderToDetachedContainer:ne.allowRenderToDetachedContainer,render:function(pe){ne.render(pe.container,pe.model,pe.change),pe.deferred&&pe.deferred.resolve()}};else if((0,b.mf)(ne))ce={render:function(pe){var Se=ne((0,x.u)(pe.container),pe.model,pe.change);Se&&(Se.nodeType||(0,b.ZU)(Se))&&pe.container.append(Se),pe.deferred&&pe.deferred.resolve()}};else{var le=(0,b.HD)(ne)?ne:(0,c.Z)(ne).attr("id");le?(this._templatesCache[le]||(this._templatesCache[le]=this.getTemplate(ne)),ce=this._templatesCache[le]):ce=this.getTemplate(ne)}return ce},renderTemplate:function(ne,ce,le,pe,Se){var re=this._processTemplate(ce,le),te=le.column,ie="data"===le.rowType,ue=new k.BH,be={container:ne,model:le,deferred:ue,onRendered:()=>{ue.resolve()}};if(re){le.component=this.component;var Ae=te&&(te.renderAsync&&ie||this.option("renderAsync")&&(!1!==te.renderAsync&&(te.command||te.showEditorAlways)&&ie||"filter"===le.rowType));!re.allowRenderToDetachedContainer&&!pe||Ae?this._delayedTemplates.push({template:re,options:be,async:Ae}):re.render(be),Se&&(Se.templateDeferreds=Se.templateDeferreds||[],Se.templateDeferreds.push(ue))}else ue.reject();return ue.promise()},_getBodies:function(ne){return(0,c.Z)(ne).children("tbody").not(".dx-header").not(".dx-footer")},_needWrapRow:function(ne){var ce;return!!this.option().rowTemplate&&!(null===(ce=this._getBodies(ne))||void 0===ce||!ce.filter("."+Y).length)},_wrapRowIfNeed:function(ne,ce,le){if(this._needWrapRow(le?ne||this._tableElement:this._tableElement||ne)){var re=(0,c.Z)("<tbody>").addClass(ce.attr("class"));return this.setAria("role","presentation",re),re.append(ce)}return ce},_appendRow:function(ne,ce,le){(le=le||fe).render({content:ce,container:ne})},_resizeCore:function(){var ne=this._scrollLeft;ne>=0&&(this._scrollLeft=0,this.scrollTo({left:ne}))},_renderCore:function(ne){var ce=this.element().parent();(!ce||ce.parent().length)&&this.renderDelayedTemplates(ne)},_renderTable:function(ne){(ne=ne||{}).columns=this._columnsController.getVisibleColumns();var ce=ne.change&&ne.change.changeType,le=this._createTable(ne.columns,"append"===ce||"prepend"===ce||"update"===ce);return this._renderRows(le,ne),le},_renderRows:function(ne,ce){for(var le=this._getRows(ce.change),pe=ce.change&&ce.change.columnIndices||[],Se=ce.change&&ce.change.changeTypes||[],re=0;re<le.length;re++)this._renderRow(ne,(0,S.l)({row:le[re],columnIndices:pe[re],changeType:Se[re]},ce))},_renderRow:function(ne,ce){ce.columnIndices||(ce.row.cells=[]);var le=this._createRow(ce.row),pe=this._wrapRowIfNeed(ne,le);"remove"!==ce.changeType&&this._renderCells(le,ce),this._appendRow(ne,pe);var Se=(0,S.l)({columns:ce.columns},ce.row);this._addWatchMethod(Se,ce.row),this._rowPrepared(pe,Se,ce.row)},_needRenderCell:function(ne,ce){return!ce||ce.indexOf(ne)>=0},_renderCells:function(ne,ce){for(var le=0,pe=ce.row,Se=ce.columns,re=0;re<Se.length;re++)this._needRenderCell(re,ce.columnIndices)&&this._renderCell(ne,(0,S.l)({column:Se[re],columnIndex:le,value:pe.values&&pe.values[le],oldValue:pe.oldValues&&pe.oldValues[le]},ce)),Se[re].colspan>1?le+=Se[re].colspan:le++},_updateCells:function(ne,ce,le){var pe=ne.children(),Se=ce.children(),re=this.option("highlightChanges"),te=this.addWidgetPrefix("cell-updated-animation");le.forEach(function(ie,ue){var be=pe.eq(ie),Ae=Se.eq(ue);be.replaceWith(Ae),re&&!Ae.hasClass("dx-command-expand")&&Ae.addClass(te)}),function(ne,ce){if(ne&&ce){var Se,le=ne.attributes,pe=ce.attributes;for(Se=0;Se<le.length;Se++){var re=le[Se].nodeName;ce.hasAttribute(re)||ne.removeAttribute(re)}for(Se=0;Se<pe.length;Se++)ne.setAttribute(pe[Se].nodeName,pe[Se].nodeValue)}}(ne.get(0),ce.get(0))},_setCellAriaAttributes:function(ne,ce){if("freeSpace"!==ce.rowType){this.setAria("role","gridcell",ne);var le=this._columnsController.getColumnIndexOffset();this.setAria("colindex",ce.columnIndex+le+1,ne)}},_renderCell:function(ne,ce){var le=this._getCellOptions(ce);if(ce.columnIndices){if(ce.row.cells){var pe=ce.row.cells.findIndex(re=>re.columnIndex===le.columnIndex);ce.row.cells[pe]=le}}else ce.row.cells.push(le);var Se=this._createCell(le);return this._setCellAriaAttributes(Se,le),this._renderCellContent(Se,le,ce),ne.get(0).appendChild(Se.get(0)),Se},_renderCellContent:function(ne,ce,le){var pe=this._getCellTemplate(ce);(0,k.gx)(!pe||this.renderTemplate(ne,pe,ce,void 0,le.change)).done(()=>{this._updateCell(ne,ce)})},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(ne){var ce={column:ne.column,columnIndex:ne.columnIndex,rowType:ne.row.rowType,isAltRow:this._isAltRow(ne.row)};return this._addWatchMethod(ce),ce},_addWatchMethod:function(ne,ce){if(this.option("repaintChangesOnly")){var le=[];return(ce=ce||ne).watch=ce.watch||function(pe,Se,re){var te=pe(ce.data),ie=function(ue){ue&&re&&re(ue);var be=pe(ce.data);JSON.stringify(te)!==JSON.stringify(be)&&(ue&&Se(be),te=be)};return le.push(ie),function(){var ue=le.indexOf(ie);ue>=0&&le.splice(ue,1)}},ce.update=ce.update||function(pe,Se){pe&&(this.data=ne.data=pe.data,this.rowIndex=ne.rowIndex=pe.rowIndex,this.dataIndex=ne.dataIndex=pe.dataIndex,this.isExpanded=ne.isExpanded=pe.isExpanded,ne.row&&!Se&&(ne.row=pe)),le.forEach(function(re){re(pe)})},ce!==ne&&(ne.watch=ce.watch.bind(ce)),ne}},_cellPrepared:function(ne,ce){ce.cellElement=(0,x.u)((0,c.Z)(ne)),this.executeAction("onCellPrepared",ce)},_rowPrepared:function(ne,ce){(0,a.aT)(ne.get(0),"options",ce),ce.rowElement=(0,x.u)(ne),this.executeAction("onRowPrepared",ce)},_columnOptionChanged:function(ne){var ce=ne.optionNames;if(w.Z.checkChanges(ce,["width","visibleWidth"])){var le=this._columnsController.getVisibleColumns(),pe=E.UI(le,function(Se){var re=Se.visibleWidth||Se.width;return(0,b.$K)(re)?re:"auto"});this.setColumnWidths({widths:pe,optionNames:ce})}else this._requireReady||this.render()},getCellIndex:function(ne){return ne.length?ne[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,c.Z)()},getTableElement:function(){return this._tableElement},setTableElement:function(ne){this._tableElement=ne},optionChanged:function(ne){switch(this.callBase(ne),ne.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),ne.handled=!0}},init:function(){var ne=this;ne._scrollLeft=-1,ne._columnsController=ne.getController("columns"),ne._dataController=ne.getController("data"),ne._delayedTemplates=[],ne._templatesCache={},ne.createAction("onCellClick"),ne.createAction("onRowClick"),ne.createAction("onCellDblClick"),ne.createAction("onRowDblClick"),ne.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),ne.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),ne.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(ce){ne._afterRowPrepared(ce)}}),ne._columnsController.columnsChanged.add(ne._columnOptionChanged.bind(ne)),ne._dataController&&ne._dataController.changed.add(ne._handleDataChanged.bind(ne))},_afterRowPrepared:h.ZT,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},_updateScrollLeftPosition:function(){var ne=this._scrollLeft;ne>=0&&(this._scrollLeft=0,this.scrollTo({left:ne}))},scrollTo:function(ne){var ce=this.element(),le=ce&&ce.children("."+this.addWidgetPrefix(P)).not("."+this.addWidgetPrefix("content-fixed"));(0,b.$K)(ne)&&(0,b.$K)(ne.left)&&this._scrollLeft!==ne.left&&(this._scrollLeft=ne.left,le&&le.scrollLeft(ne.left))},_wrapTableInScrollContainer:function(ne){var ce=(0,c.Z)("<div>"),le=this.option("scrolling.useNative");return(!1===le||"auto"===le&&!R.nativeScrolling)&&ce.addClass(this.addWidgetPrefix("scrollable-simulated")),g.Z.on(ce,"scroll",()=>{var pe=ce.scrollLeft();pe!==this._scrollLeft&&this.scrollChanged.fire({left:pe},this.name)}),ce.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix(P)).append(ne).appendTo(this.element()),this.setAria("role","presentation",ce),ce},_needWaitAsyncTemplates:function(){return this.option("templatesRenderAsynchronously")&&!1===this.option("renderAsync")},_waitAsyncTemplates:function(ne,ce){var le=this._needWaitAsyncTemplates();return k.gx.apply(this,(ce||le&&("update"!==ne?.changeType||null!=ne&&ne.isLiveUpdate))&&null!=ne&&ne.templateDeferreds?ne?.templateDeferreds:[])},_updateContent:function(ne,ce){return this._waitAsyncTemplates(ce).done(()=>{this.setTableElement(ne),this._wrapTableInScrollContainer(ne)})},_findContentElement:h.ZT,_getWidths:function(ne){var le,ce=[];return ne&&E.S6(ne,function(pe,Se){if(le=Se.offsetWidth,Se.getBoundingClientRect){var re=(0,y.l)(Se);re.width>le-1&&(le=re.width)}ce.push(le)}),ce},getColumnWidths:function(ne){var le,pe,ce=[];if((this.option("forceApplyBindings")||h.ZT)(),ne=ne||this.getTableElement()){le=ne.children("tbody:not(.dx-header)").children();for(var Se=0;Se<le.length;Se++){var re=le.eq(Se),te="none"!==re.get(0).style.display&&!re.hasClass("dx-state-invisible");if(!re.is("."+J)&&!re.is("."+ee)&&!re.is(".dx-error-row")&&te){pe=re.children("td");break}}ce=this._getWidths(pe)}return ce},getVisibleColumnIndex:function(ne,ce){return ne},setColumnWidths:function(ne){var re,te,ie,ue,{widths:ce,$tableElement:le,columns:pe,fixed:Se}=ne,be=this.option("columnAutoWidth");if((le=le||this.getTableElement())&&le.length&&ce){ue=0,re=le.children("colgroup").children("col"),(0,v.cl)(re,"auto"),pe=pe||this.getColumns(null,le);for(var Ae=0;Ae<pe.length;Ae++){if(be&&!Se&&(te=pe[Ae].width)&&!pe[Ae].command){te=Be(te=pe[Ae].visibleWidth||te),ie=Be(pe[Ae].minWidth||te);for(var Ne=Ne||le.children().children(".dx-row").not("."+ee),mt=0;mt<Ne.length;mt++){var tt=Ne[mt],Le=void 0,gt=this.getVisibleColumnIndex(Ae,mt);(Le=tt.classList.contains(J)?tt.querySelector("td[aria-colindex='".concat(gt+1,"']:not(.").concat("dx-group-cell",")")):tt.cells[gt])&&(ze(Le,pe[Ae],te),Le.style.minWidth=ie)}}pe[Ae].colspan?ue+=pe[Ae].colspan:("adaptiveHidden"===(te=ce[ue])&&(te=X),"number"==typeof te&&(te=te.toFixed(3)+"px"),(0,v.cl)(re.eq(ue),(0,b.$K)(te)?te:"auto"),ue++)}}},getCellElements:function(ne){return this._getCellElementsCore(ne)},_getCellElementsCore:function(ne){return this._getRowElements().eq(ne).children()},_getCellElement:function(ne,ce){var le,pe=this.getCellElements(ne),Se=this._getVisibleColumnIndex(pe,ne,ce);if(pe.length&&Se>=0&&(le=pe.eq(Se)),le&&le.length)return le},_getRowElement:function(ne){var ce=this,le=(0,c.Z)(),pe=ce.getTableElements();if(E.S6(pe,function(Se,re){le=le.add(ce._getRowElements((0,c.Z)(re)).eq(ne))}),le.length)return le},getCellElement:function(ne,ce){return(0,x.u)(this._getCellElement(ne,ce))},getRowElement:function(ne){var ce=this._getRowElement(ne),le=[];if(ce&&!(0,x.u)(ce).get)for(var pe=0;pe<ce.length;pe++)le.push(ce[pe]);else le=ce;return le},_getVisibleColumnIndex:function(ne,ce,le){if((0,b.HD)(le)){var pe=this._columnsController.columnOption(le,"index");return this._columnsController.getVisibleIndex(pe)}return le},getColumnElements:function(){},getColumns:function(ne){return this._columnsController.getVisibleColumns(ne)},getCell:function(ne,ce,le){var Se,pe=ce||this._getRowElements();if(pe.length>0&&ne.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&"virtual"!==this.option("scrolling.rowRenderingMode")&&(ne.rowIndex=ne.rowIndex<pe.length?ne.rowIndex:pe.length-1),(Se=le||this.getCellElements(ne.rowIndex))&&Se.length>0))return Se.eq(Se.length>ne.columnIndex?ne.columnIndex:Se.length-1)},getRowsCount:function(){var ne=this.getTableElement();return ne&&1===ne.length?ne[0].rows.length:0},_getRowElementsCore:function(ne){if(ne=ne||this.getTableElement()){var le=(this.option().rowTemplate||this.option("dataRowTemplate"))&&ne.find("> tbody."+Y);return le&&le.length?le:ne.find("> tbody > ."+Y+", > ."+Y)}return(0,c.Z)()},_getRowElements:function(ne){return this._getRowElementsCore(ne)},getRowIndex:function(ne){return this._getRowElements().index(ne)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(ne){var ce=this.element(),le=this.option("rtlEnabled");ce&&ce.css({paddingLeft:le?ne:"",paddingRight:le?"":ne})},isScrollbarVisible:function(ne){var ce=this.element(),le=this._tableElement;return!(!ce||!le)&&(ne?(0,o.Y_)(le)-(0,o.dz)(ce)>0:(0,o.zp)(le)-(0,o.Cr)(ce)>0)}},ye=O.Z.View.inherit(T.Z).inherit(_e)},9256:(Rn,he,u)=>{"use strict";u.d(he,{y:()=>v});var o=u(9904),c=u(6881),I=u(7674),C=u(2718),g=u(3390),a=u(1875),s={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},l=["columnHeadersView","rowsView","footerView","headerPanel"],v={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:g.Z.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(x){if(!x)return!1;var E,S,O,w,b=this,y=(0,o.Z)(x.target);return(0,C.S6)(l,function(){var T=b.getView(this);if((E=T&&T.element())&&(E.is(y)||E.find(y).length)){var k,R;O=y.closest(".dx-row > td, .dx-row > tr"),S=O.parent();var P=T.getRowIndex(S),B=O[0]&&O[0].cellIndex,W=S.data("options"),z={event:x,targetElement:(0,c.u)(y),target:s[this],rowIndex:P,row:T._getRows()[P],columnIndex:B,column:null==W||null===(k=W.cells)||void 0===k||null===(R=k[B])||void 0===R?void 0:R.column};if(z.items=T.getContextMenuItems&&T.getContextMenuItems(z),b.executeAction("onContextMenuPreparing",z),b._contextMenuPrepared(z),w=z.items)return!1}}),w},_contextMenuPrepared:I.ZT})},views:{contextMenuView:g.Z.View.inherit({_renderCore:function(){var x=this,b=x.element().addClass("dx-context-menu");this.setAria("role","presentation",b),this._createComponent(b,a.Z,{onPositioning:function(y){var E=y.event,S=y.component,O=x.getController("contextMenu").getContextMenuItems(E);O?(S.option("items",O),E.stopPropagation()):y.cancel=!0},onItemClick:function(y){y.itemData.onItemClick&&y.itemData.onItemClick(y)},cssClass:x.getWidgetContainerClass(),target:x.component.$element()})}})}}},9799:(Rn,he,u)=>{"use strict";u.d(he,{p:()=>b});var y,E,o=u(9904),c=u(3390),I=u(2879),C=u(820),g=u(7344),a=u(8159),p=u(7674),s=u(2718),l=u(1828),d=u(5873),h=u(8264),v=u(4270),x=u(31),b={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:c.Z.Controller.inherit({}).include(h.Z).inherit((y=function(S,O,w){var T=S._dataSource;if(T){if(void 0!==w){if(S._getPagingOptionValue(O)!==w){"pageSize"===O&&T.pageIndex(0),T[O](w),S._skipProcessingPagingChange=!0,S.option("paging."+O,w),S._skipProcessingPagingChange=!1;var R=T.pageIndex();return S._isPaging="pageIndex"===O,T["pageIndex"===O?"load":"reload"]().done(()=>{S._isPaging=!1,S.pageChanged.fire(R)})}return(0,v.BH)().resolve().promise()}return T[O]()}return 0},E={init:function(){var S=this;S._items=[],S._cachedProcessedItems=null,S._columnsController=S.getController("columns"),S._isPaging=!1,S._currentOperationTypes=null,S._dataChangedHandler=O=>{S._currentOperationTypes=this._dataSource.operationTypes(),S._handleDataChanged(O),S._currentOperationTypes=null},S._columnsChangedHandler=S._handleColumnsChanged.bind(S),S._loadingChangedHandler=S._handleLoadingChanged.bind(S),S._loadErrorHandler=S._handleLoadError.bind(S),S._customizeStoreLoadOptionsHandler=S._handleCustomizeStoreLoadOptions.bind(S),S._changingHandler=S._handleChanging.bind(S),S._dataPushedHandler=S._handleDataPushed.bind(S),S._columnsController.columnsChanged.add(S._columnsChangedHandler),S._isLoading=!1,S._isCustomLoading=!1,S._repaintChangesOnly=void 0,S._changes=[],S.createAction("onDataErrorOccurred"),S.dataErrorOccurred.add(function(O){return S.executeAction("onDataErrorOccurred",{error:O})}),S._refreshDataSource()},_getPagingOptionValue:function(S){return this._dataSource[S]()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged","pushed"]},callbackFlags:function(S){if("dataErrorOccurred"===S)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},_handleDataSourceChange(S){if(S.value===S.previousValue||this.option("columns")&&Array.isArray(S.value)&&Array.isArray(S.previousValue)){if(S.value!==S.previousValue){var w=this.store();w&&(w._array=S.value)}return this.needToRefreshOnDataSourceChange(S)&&this.refresh(this.option("repaintChangesOnly")),!0}return!1},needToRefreshOnDataSourceChange:function(S){return!0},optionChanged:function(S){var w,T,O=this;function k(){S.handled=!0}if("dataSource"===S.name&&S.name===S.fullName&&this._handleDataSourceChange(S))k();else switch(S.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":k();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":k(),O.reset();break;case"paging":if((w=O.dataSource())&&(T=O._setPagingOptions(w))){var R=w.pageIndex();this._isPaging=T.isPageIndexChanged,w.load().done(()=>{this._isPaging=!1,O.pageChanged.fire(R)})}k();break;case"rtlEnabled":O.reset();break;case"columns":(w=O.dataSource())&&w.isLoading()&&S.name===S.fullName&&(this._useSortingGroupingFromColumns=!0,w.load());break;default:O.callBase(S)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(S){return this.combinedFilter(void 0,S)},combinedFilter:function(S,O){var w=this._dataSource,T=this._columnsController;if(w){void 0===S&&(S=w.filter());var k=this._calculateAdditionalFilter();k&&(T.isDataSourceApplied()||T.isAllDataTypesDefined())&&(S=I.Z.combineFilters([k,S])),S=T.updateFilter(S,O||w.remoteOperations().filtering)}return S},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new v.BH,this._readyDeferred):(0,v.gx)()},_endUpdateCore:function(){var S=this._changes;if(S.length){this._changes=[];var O=S.every(w=>w.repaintChangesOnly);this.updateItems(1===S.length?S[0]:{repaintChangesOnly:O})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(S){var O,w=this._columnsController,T=this._dataSource,k=S.storeLoadOptions;S.isCustomLoading&&!k.isLoadingAll||(k.filter=this.combinedFilter(k.filter),1===(null===(O=k.filter)||void 0===O?void 0:O.length)&&"!"===k.filter[0]&&(S.data=[],S.extra=S.extra||{},S.extra.totalCount=0),w.isDataSourceApplied()||w.updateColumnDataTypes(T),this._columnsUpdating=!0,w.updateSortingGrouping(T,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,k.sort=w.getSortDataSourceParameters(),k.group=w.getGroupDataSourceParameters(),T.sort(k.sort),T.group(k.group),k.sort=w.getSortDataSourceParameters(!T.remoteOperations().sorting),S.group=w.getGroupDataSourceParameters(!T.remoteOperations().grouping))},_handleColumnsChanged:function(S){var k,R,P,O=this,w=S.changeTypes,T=S.optionNames;if(w.sorting||w.grouping)O._dataSource&&!O._columnsUpdating&&(O._dataSource.group(O._columnsController.getGroupDataSourceParameters()),O._dataSource.sort(O._columnsController.getSortDataSourceParameters()),O.reload());else if(w.columns&&(R=O._columnsController.columnOption(S.columnIndex,"filterValues"),(T.filterValues||T.filterType&&Array.isArray(R)||T.filterValue||T.selectedFilterOperation||T.allowFiltering)&&(k=O._columnsController.columnOption(S.columnIndex,"filterValue"),(Array.isArray(R)||void 0===S.columnIndex||(0,l.$K)(k)||!T.selectedFilterOperation||T.filterValue)&&(O._applyFilter(),P=!0)),!O._needApplyFilter&&!I.Z.checkChanges(T,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])&&O._columnsController.columnsChanged.add(function W(z){var V;O._columnsController.columnsChanged.remove(W),O.updateItems({repaintChangesOnly:!1,virtualColumnsScrolling:null==z||null===(V=z.changeTypes)||void 0===V?void 0:V.virtualColumnsScrolling})}),(0,l.$K)(T.visible))){var B=O._columnsController.columnOption(S.columnIndex);B&&((0,l.$K)(B.filterValue)||(0,l.$K)(B.filterValues))&&(O._applyFilter(),P=!0)}!P&&w.filtering&&O.reload()},_handleDataChanged:function(S){var O=this,w=O._dataSource,T=O._columnsController,k=!1;this._useSortingGroupingFromColumns=!1,w&&!O._isDataSourceApplying&&(O._isDataSourceApplying=!0,(0,v.gx)(O._columnsController.applyDataSource(w)).done(function(){O._isLoading&&O._handleLoadingChanged(!1),k&&S&&S.isDelayed&&(S.isDelayed=!1),O._isDataSourceApplying=!1;var P,R=O._needApplyFilter;O._needApplyFilter=!1,R&&!O._isAllDataTypesDefined&&(P=O._calculateAdditionalFilter())&&P.length?(a.Z.log("W1005",O.component.NAME),O._applyFilter()):O.updateItems(S,!0)}).fail(function(){O._isDataSourceApplying=!1}),O._isDataSourceApplying&&(k=!0,O._handleLoadingChanged(!0)),O._needApplyFilter=!O._columnsController.isDataSourceApplied(),O._isAllDataTypesDefined=T.isAllDataTypesDefined())},_handleLoadingChanged:function(S){this._isLoading=S,this._fireLoadingChanged()},_handleLoadError:function(S){this.dataErrorOccurred.fire(S)},_handleDataPushed:function(S){this.pushed.fire(S)},fireError:function(){this.dataErrorOccurred.fire(a.Z.Error.apply(a.Z,arguments))},_setPagingOptions:function(S){var O=this.option("paging.pageIndex"),w=this.option("paging.pageSize"),T=this.option("paging.enabled"),k=this.option("scrolling.mode"),R="infinite"===k,B=T||"virtual"===k||R,W=!1,z=!1,V=!1;return S.requireTotalCount(!R),void 0!==T&&S.paginate()!==B&&(S.paginate(B),W=!0),void 0!==w&&S.pageSize()!==w&&(S.pageSize(w),z=!0),void 0!==O&&S.pageIndex()!==O&&(S.pageIndex(O),V=!0),!!(W||z||V)&&{isPaginateChanged:W,isPageSizeChanged:z,isPageIndexChanged:V}},_getSpecificDataSourceOption:function(){var S=this.option("dataSource");return Array.isArray(S)?{store:{type:"array",data:S,key:this.option("keyExpr")}}:S},_initDataSource:function(){var S=this._dataSource;this.callBase();var O=this._dataSource;if(this._useSortingGroupingFromColumns=!0,this._cachedProcessedItems=null,O){var w=this._setPagingOptions(O);this._isPaging=w?.isPageIndexChanged,this.setDataSource(O)}else S&&this.updateItems()},_loadDataSource:function(){var S=this,O=S._dataSource,w=new v.BH;return(0,v.gx)(this._columnsController.refresh(!0)).always(function(){O?O.load().done(function(){S._isPaging=!1,w.resolve.apply(w,arguments)}).fail(w.reject):w.resolve()}),w.promise()},_beforeProcessItems:function(S){return S.slice(0)},getRowIndexDelta:function(){return 0},getDataIndex:function(S){var O=this._items,w="append"===S.changeType&&O.length>0?O[O.length-1]:null;return(0,l.$K)(w?.dataIndex)?w.dataIndex+1:0},_processItems:function(S,O){var w=this,T=w.getRowIndexDelta(),B={visibleColumns:w._columnsController.getVisibleColumns(null,"loadingAll"===O.changeType),dataIndex:this.getDataIndex(O)},W=[];return(0,s.S6)(S,function(z,V){(0,l.$K)(V)&&(B.rowIndex=z-T,V=w._processItem(V,B),W.push(V))}),W},_processItem:function(S,O){return S=this._generateDataItem(S,O),(S=this._processDataItem(S,O)).dataIndex=O.dataIndex++,S},_generateDataItem:function(S){return{rowType:"data",data:S,key:this.keyOf(S)}},_processDataItem:function(S,O){return S.values=this.generateDataValues(S.data,O.visibleColumns),S},generateDataValues:function(S,O,w){for(var k,T=[],R=0;R<O.length;R++){var P=O[R];k=w?void 0:null,P.command||(P.calculateCellValue?k=P.calculateCellValue(S):P.dataField&&(k=S[P.dataField])),T.push(k)}return T},_applyChange:function(S){"update"===S.changeType?this._applyChangeUpdate(S):this.items().length&&S.repaintChangesOnly&&"refresh"===S.changeType?this._applyChangesOnly(S):"refresh"===S.changeType&&this._applyChangeFull(S)},_applyChangeFull:function(S){this._items=S.items.slice(0)},_getRowIndices:function(S){var O=S.rowIndices.slice(0),w=this.getRowIndexDelta();O.sort(function(R,P){return R-P});for(var T=0;T<O.length;T++){var k=O[T];S.allowInvisibleRowIndices&&(k+=w),k<0&&(O.splice(T,1),T--)}return O},_applyChangeUpdate:function(S){var W,O=this,w=S.items,T=O._getRowIndices(S),k=O.getRowIndexDelta(),R=O.option("repaintChangesOnly"),P=-1,B=0;S.items=[],S.rowIndices=[],S.columnIndices=[],S.changeTypes=[];var z=function(V,U,K){var Y=V&&U&&(0,p.bY)(V.key,U.key);return Y&&K&&(Y=V.rowType===U.rowType&&("detail"!==U.rowType||V.isEditing===U.isEditing)),Y};(0,s.S6)(T,function(V,U){var K;if(P!==(U+=B+k)){P=U;var Y=O._items[U],J=O._items[U+1],j=w[U],ee=w[U+1],G=z(Y,J)||z(j,ee);if(j&&(j.rowIndex=U,S.items.push(j)),Y&&j&&z(Y,j,G))W="update",O._items[U]=j,Y.visible!==j.visible?S.items.splice(-1,1,{visible:j.visible}):R&&!S.isFullUpdate&&(K=O._partialUpdateRow(Y,j,U-k));else if(j&&!Y||ee&&z(Y,ee,G))W="insert",O._items.splice(U,0,j),B++;else if(Y&&!j||J&&z(j,J,G))W="remove",O._items.splice(U,1),B--,P=-1;else{if(!j)return;W="update",O._items[U]=j}S.rowIndices.push(U-k),S.changeTypes.push(W),S.columnIndices.push(K)}})},_isCellChanged:function(S,O,w,T,k){if(JSON.stringify(S.values[T])!==JSON.stringify(O.values[T]))return!0;function R(P,B){return!!P.modifiedValues&&void 0!==P.modifiedValues[B]}return R(S,T)!==R(O,T)},_getChangedColumnIndices:function(S,O,w,T){var k;if(S.rowType===O.rowType){if("group"!==O.rowType&&"groupFooter"!==O.rowType&&(k=[],"detail"!==O.rowType))for(var R=0;R<S.values.length;R++)this._isCellChanged(S,O,w,R,T)&&k.push(R);"group"===O.rowType&&O.isExpanded===S.isExpanded&&S.cells&&(k=S.cells.map((P,B)=>{var W;return"groupExpand"!==(null===(W=P.column)||void 0===W?void 0:W.type)?B:-1}).filter(P=>P>=0))}return k},_partialUpdateRow:function(S,O,w,T){var k,R=this._getChangedColumnIndices(S,O,w,T);return null!==(k=R)&&void 0!==k&&k.length&&this.option("dataRowTemplate")&&(R=void 0),R&&(S.cells&&S.cells.forEach(function(P,B){!(R.indexOf(B)>=0)&&P&&P.update&&P.update(O)}),O.update=S.update,O.watch=S.watch,O.cells=S.cells,T&&(O.oldValues=S.values),S.update&&S.update(O)),R},_isItemEquals:function(S,O){if(JSON.stringify(S.values)!==JSON.stringify(O.values)||["modified","isNewRow","removed","isEditing"].some(z=>S[z]!==O[z]))return!1;if("group"===S.rowType||"groupFooter"===S.rowType){var w,T,k,R,P=S.isExpanded===O.isExpanded,B=JSON.stringify(S.summaryCells)===JSON.stringify(O.summaryCells),W=(null===(w=S.data)||void 0===w?void 0:w.isContinuation)===(null===(T=O.data)||void 0===T?void 0:T.isContinuation)&&(null===(k=S.data)||void 0===k?void 0:k.isContinuationOnNextPage)===(null===(R=O.data)||void 0===R?void 0:R.isContinuationOnNextPage);if(!P||!B||!W)return!1}return!0},_applyChangesOnly:function(S){var O,w=[],T=[],k=[],R=[],P={},B=null===(O=S?.isLiveUpdate)||void 0===O||O;function W(K){if(K)return K.rowType+","+JSON.stringify(K.key)}var z=this._items,V=z.slice();S.items.forEach(function(K,Y){var J=W(K);P[J]=Y,K.rowIndex=Y});var U=(0,x.h)(V,S.items,W,(K,Y)=>!!this._isItemEquals(K,Y)&&(K.cells&&(K.update&&K.update(Y),K.cells.forEach(function(J){J&&J.update&&J.update(Y,!0)})),!0));U?(U.forEach(K=>{switch(K.type){case"update":var Y=K.index,J=K.data,ee=this._partialUpdateRow(K.oldItem,J,Y,B);w.push(Y),k.push("update"),R.push(J),z[Y]=J,T.push(ee);break;case"insert":w.push(K.index),k.push("insert"),R.push(K.data),T.push(void 0),z.splice(K.index,0,K.data);break;case"remove":w.push(K.index),k.push("remove"),z.splice(K.index,1),R.push(K.oldItem),T.push(void 0)}}),S.repaintChangesOnly=!0,S.changeType="update",S.rowIndices=w,S.columnIndices=T,S.changeTypes=k,S.items=R,V.length&&(S.isLiveUpdate=!0),this._correctRowIndices(K=>{var Y=this._rowIndexOffset||0,J=this.getRowIndexOffset(),ee=W(V[K-Y]),G=P[ee];return G>=0?G+J-K:0})):this._applyChangeFull(S)},_correctRowIndices:p.ZT,_afterProcessItems:function(S){return S},_updateItemsCore:function(S){var O,w=this._dataSource;if(S.changeType=S.changeType||"refresh",w){var k=this._cachedProcessedItems;S.useProcessedItemsCache&&k?O=k:(O=S.items||w.items(),O=this._beforeProcessItems(O),O=this._processItems(O,S),this._cachedProcessedItems=O),O=this._afterProcessItems(O,S),S.items=O;var R=this._items.length===O.length&&this._items;this._applyChange(S);var P=this.getRowIndexDelta();(0,s.S6)(this._items,(B,W)=>{W.rowIndex=B-P,R&&(W.cells=R[B].cells||[]);var z=O[B];z&&(W.loadIndex=z.loadIndex)}),this._rowIndexOffset=this.getRowIndexOffset()}else this._items=[]},_handleChanging:function(S){var O=this.getVisibleRows();this.dataSource()&&S.changes.forEach(function(T){if("insert"===T.type&&T.index>=0){for(var k=0,R=0;R<T.index;R++){var P=O[R];P&&("data"===P.rowType||"group"===P.rowType)&&k++}T.index=k}})},updateItems:function(S,O){var w;if(S=S||{},void 0!==this._repaintChangesOnly)S.repaintChangesOnly=null!==(w=S.repaintChangesOnly)&&void 0!==w?w:this._repaintChangesOnly,S.needUpdateDimensions=S.needUpdateDimensions||this._needUpdateDimensions;else if(S.changes)S.repaintChangesOnly=this.option("repaintChangesOnly");else if(O){var T=this.dataSource().operationTypes();S.repaintChangesOnly=T&&!T.grouping&&!T.filtering&&this.option("repaintChangesOnly"),S.isDataChanged=!0,T&&(T.reload||T.paging||T.groupExpanding)&&(S.needUpdateDimensions=!0)}!this._updateLockCount||S.cancel?(this._updateItemsCore(S),!S.cancel&&this._fireChanged(S)):this._changes.push(S)},loadingOperationTypes:function(){var S=this.dataSource();return S&&S.loadingOperationTypes()||{}},_fireChanged:function(S){this._currentOperationTypes&&(S.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,p.g0)(()=>{this.changed.fire(S)})},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var S=this._dataSource;if(S)return S.pageIndex(0),this._isFilterApplying=!0,this.reload().done(()=>{this._isFilterApplying&&this.pageChanged.fire()})},resetFilterApplying:function(){this._isFilterApplying=!1},filter:function(S){var O=this._dataSource,w=O&&O.filter();if(0===arguments.length)return w;S=arguments.length>1?Array.prototype.slice.call(arguments,0):S,!I.Z.equalFilterParameters(w,S)&&(O&&O.filter(S),this._applyFilter())},clearFilter:function(S){var O=this,w=O._columnsController,T=function(k){for(var R=w.columnCount(),P=0;P<R;P++)w.columnOption(P,k,void 0)};if(O.component.beginUpdate(),arguments.length>0)switch(S){case"dataSource":O.filter(null);break;case"search":O.searchByText("");break;case"header":T("filterValues");break;case"row":T("filterValue")}else O.filter(null),O.searchByText(""),T("filterValue"),T("bufferedFilterValue"),T("filterValues");O.component.endUpdate()},_fireDataSourceChanged:function(){var S=this;S.changed.add(function O(){S.changed.remove(O),S.dataSourceChanged.fire()})},_getDataSourceAdapter:p.ZT,_createDataSourceAdapterCore:function(S,O){var T=this._getDataSourceAdapter().create(this.component);return T.init(S,O),T},isLocalStore:function(S){return(S=S||this.store())instanceof C.Z},isCustomStore:function(S){return(S=S||this.store())instanceof g.Z},_createDataSourceAdapter:function(S){var O=this.option("remoteOperations"),w=S.store(),T={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return O&&O.groupPaging&&(O=(0,d.l)({},T,O)),"auto"===O&&(O=this.isLocalStore(w)||this.isCustomStore(w)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===O&&(O=T),this._createDataSourceAdapterCore(S,O)},setDataSource:function(S){var O=this._dataSource;!S&&O&&(O.cancelAll(),O.changed.remove(this._dataChangedHandler),O.loadingChanged.remove(this._loadingChangedHandler),O.loadError.remove(this._loadErrorHandler),O.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),O.changing.remove(this._changingHandler),O.pushed.remove(this._dataPushedHandler),O.dispose(this._isSharedDataSource)),S&&(S=this._createDataSourceAdapter(S)),this._dataSource=S,S&&(this._fireDataSourceChanged(),this._isLoading=!S.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),S.changed.add(this._dataChangedHandler),S.loadingChanged.add(this._loadingChangedHandler),S.loadError.add(this._loadErrorHandler),S.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),S.changing.add(this._changingHandler),S.pushed.add(this._dataPushedHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var S=this._dataSource;return S&&S.store()},loadAll:function(S){var O=this,w=new v.BH,T=O._dataSource;if(T)if(S){var k={data:S,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:O.getCombinedFilter(),group:T.group(),sort:T.sort()}};T._handleDataLoaded(k),(0,v.gx)(k.data).done(function(P){P=O._beforeProcessItems(P),w.resolve(O._processItems(P,{changeType:"loadingAll"}),k.extra&&k.extra.summary)}).fail(w.reject)}else if(T.isLoading())w.reject();else{var R=(0,d.l)({},T.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});T.load(R).done(function(P,B){P=O._beforeProcessItems(P),P=O._processItems(P,{changeType:"loadingAll"}),w.resolve(P,B&&B.summary)}).fail(w.reject)}else w.resolve([]);return w},getKeyByRowIndex:function(S,O){var w=this.items(O)[S];if(w)return w.key},getRowIndexByKey:function(S,O){return I.Z.getIndexByKey(S,this.items(O))},keyOf:function(S){var O=this.store();if(O)return O.keyOf(S)},byKey:function(S){var T,O=this.store(),w=this.getRowIndexByKey(S);if(O)return w>=0&&(T=(new v.BH).resolve(this.items()[w].data)),T||O.byKey(S)},key:function(){var S=this.store();if(S)return S.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(S){var O=this,w=new v.BH,T=[],k=[];return(0,s.S6)(S,function(R,P){T.push(O.byKey(P).done(function(B){k[R]=B}))}),v.gx.apply(o.Z,T).always(function(){w.resolve(k)}),w},pageIndex:function(S){return y(this,"pageIndex",S)},pageSize:function(S){return y(this,"pageSize",S)},beginCustomLoading:function(S){this._isCustomLoading=!0,this._loadingText=S||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(S){!0===S?S={reload:!0,changesOnly:!0}:S||(S={lookup:!0,selection:!0,reload:!0});var O=this,w=O.getDataSource(),T=S.changesOnly,k=new v.BH,R=function(){O._repaintChangesOnly=!!T};return(0,v.gx)(!S.lookup||O._columnsController.refresh()).always(function(){S.load||S.reload?(w&&w.on("customizeLoadResult",R),(0,v.gx)(O.reload(S.reload,T)).always(function(){w&&w.off("customizeLoadResult",R),O._repaintChangesOnly=void 0}).done(k.resolve).fail(k.reject)):(O.updateItems({repaintChangesOnly:S.changesOnly}),k.resolve())}),k.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(S,O){((S=Array.isArray(S)?S:[S]).length>1||(0,l.$K)(S[0]))&&this.updateItems({changeType:"update",rowIndices:S,isFullUpdate:!O})},skipProcessingPagingChange:function(S){return this._skipProcessingPagingChange&&("paging.pageIndex"===S||"paging.pageSize"===S)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()},isLastPageLoaded:function(){return this.pageIndex()===this.pageCount()-1}},I.Z.proxyMethod(E,"load"),I.Z.proxyMethod(E,"reload"),I.Z.proxyMethod(E,"push"),I.Z.proxyMethod(E,"itemsCount",0),I.Z.proxyMethod(E,"totalItemsCount",0),I.Z.proxyMethod(E,"hasKnownLastPage",!0),I.Z.proxyMethod(E,"isLoaded",!0),I.Z.proxyMethod(E,"totalCount",0),E))}}},6181:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(4817),c=u(5365),I=u(9617),C=u(7674),g=u(1828),a=u(2718),p=u(5873),s=u(820),l=u(1771),d=u(4270);const h=I.Z.Controller.inherit(function(){function v(w,T){if(w&&(w=w.slice(0),T))for(var k=0;k<w.length;k++)w[k]=(0,p.l)({key:w[k].key},w[k]),w[k].items=v(w[k].items,T-1);return w}function x(w,T,k){var R={reload:!0,fullReload:!0};return T&&((R={sorting:!I.Z.equalSortParameters(w.sort,T.sort),grouping:!I.Z.equalSortParameters(w.group,T.group,!0),groupExpanding:!I.Z.equalSortParameters(w.group,T.group)||T.groupExpand,filtering:!I.Z.equalFilterParameters(w.filter,T.filter),pageIndex:w.pageIndex!==T.pageIndex,skip:w.skip!==T.skip,take:w.take!==T.take,pageSize:w.pageSize!==T.pageSize,fullReload:k,reload:!1,paging:!1}).reload=k||R.sorting||R.grouping||R.filtering,R.paging=R.pageIndex||R.pageSize||R.take),R}function b(w,T){var k=I.Z.normalizeSortingInfo(w.group||w.storeLoadOptions.group||w.loadOptions.group).length,R=[];if(y(R,w,k))return R;T&&function(P,B,W){var z=P.length,{storeLoadOptions:V}=B;if(void 0!==V.skip&&V.take&&!W){var U=[];y(U,B,W,!0);var Y,J,K=U.length;(z||K)&&(B.skip=null!==(Y=B.skip)&&void 0!==Y?Y:V.skip,B.take=null!==(J=B.take)&&void 0!==J?J:V.take),z&&(V.skip+=z,V.take-=z,B.cachedDataPartBegin=P),K&&(V.take-=K,B.cachedDataPartEnd=U.reverse())}}(R,w,k)}function y(w,T,k,R){var P,B,W,{storeLoadOptions:z}=T,V=null!==(P=null!==(B=T.take)&&void 0!==B?B:z.take)&&void 0!==P?P:0,U=null===(W=T.cachedData)||void 0===W?void 0:W.items;if(V&&U){for(var K,Y,J=null!==(K=null!==(Y=T.skip)&&void 0!==Y?Y:z.skip)&&void 0!==K?K:0,j=0;j<V;j++){var ee=R?V-1-j:j,G=ee+J,q=U[G];if(void 0===q&&G in U)return!0;var Z=E(T,q,k,ee,V);if(!Z)return!1;w.push(Z)}return!0}return!1}function E(w,T,k,R,P){return k&&T?function z(V,U,K,Y){if(U&&V){var J=(0,o.Z)({},V),j=K[0]||0,ee=Y[0],G=V.items;if(G){if(void 0===ee&&!G[j])return;J.items=[],K.length&&(J.isContinuation=!0),Y.length&&(J.isContinuationOnNextPage=!0);for(var q=0;void 0===ee?G[q+j]:q<ee;q++){var X=q+1===ee,M=z(G[q+j],U-1,0===q?K.slice(1):[],X?Y.slice(1):[]);if(void 0===M)return;J.items.push(M)}}return J}return V}(T,k,0===R&&w.skips||[],R===P-1&&w.takes||[]):T}function S(w,T,k,R){if(k&&T){var P=(0,o.Z)({},T);delete P.isContinuation,delete P.isContinuationOnNextPage;var B=R[0]||0;return T.items&&(P.items=w?.items||{},T.items.forEach((W,z)=>{var V=z+B,U=0===z?R.slice(1):[];P.items[V]=S(P.items[V],W,k-1,U)})),P}return T}var O={init:function(w,T){var k=this;k._dataSource=w,k._remoteOperations=T||{},k._isLastPage=!w.isLastPage(),k._hasLastPage=!1,k._currentTotalCount=0,k._cachedData={items:{}},k._lastOperationTypes={},k._eventsStrategy=w._eventsStrategy,k._totalCountCorrection=0,k._isLoadingAll=!1,k.changed=(0,c.Z)(),k.loadingChanged=(0,c.Z)(),k.loadError=(0,c.Z)(),k.customizeStoreLoadOptions=(0,c.Z)(),k.changing=(0,c.Z)(),k.pushed=(0,c.Z)(),k._dataChangedHandler=k._handleDataChanged.bind(k),k._customizeStoreLoadOptionsHandler=k._handleCustomizeStoreLoadOptions.bind(k),k._dataLoadedHandler=k._handleDataLoaded.bind(k),k._loadingChangedHandler=k._handleLoadingChanged.bind(k),k._loadErrorHandler=k._handleLoadError.bind(k),k._pushHandler=k._handlePush.bind(k),k._changingHandler=k._handleChanging.bind(k),w.on("changed",k._dataChangedHandler),w.on("customizeStoreLoadOptions",k._customizeStoreLoadOptionsHandler),w.on("customizeLoadResult",k._dataLoadedHandler),w.on("loadingChanged",k._loadingChangedHandler),w.on("loadError",k._loadErrorHandler),w.on("changing",k._changingHandler),w.store().on("beforePush",k._pushHandler),(0,a.S6)(w,function(R,P){!k[R]&&(0,g.mf)(P)&&(k[R]=function(){return this._dataSource[R].apply(this._dataSource,arguments)})})},remoteOperations:function(){return this._remoteOperations},dispose:function(w){var T=this._dataSource,k=T.store();T.off("changed",this._dataChangedHandler),T.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler),T.off("customizeLoadResult",this._dataLoadedHandler),T.off("loadingChanged",this._loadingChangedHandler),T.off("loadError",this._loadErrorHandler),T.off("changing",this._changingHandler),k&&k.off("beforePush",this._pushHandler),w||T.dispose()},refresh:function(w,T){var k=this._dataSource;T.reload&&(this.resetCurrentTotalCount(),this._isLastPage=!k.paginate(),this._hasLastPage=this._isLastPage)},resetCurrentTotalCount:function(){this._currentTotalCount=0,this._totalCountCorrection=0},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedData={items:{}}},_needClearStoreDataCache:function(){var w=this.remoteOperations(),T=x(this._lastLoadOptions||{},{});return!Object.keys(w).every(R=>!T[R]||!w[R])},push:function(w,T){var k=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&(0,l.ii)({keyInfo:k,data:this._cachedStoreData,changes:w}),T||this._applyBatch(w),this.pushed.fire(w)},getDataIndexGetter:function(){if(!this._dataIndexGetter){var w,T,k=this.store();this._dataIndexGetter=R=>{if(!w||T&&T!==this._cachedStoreData){T=this._cachedStoreData||[],w={};for(var B=0;B<T.length;B++)w[(0,C.k3)(k.keyOf(T[B]))]=B}return w[(0,C.k3)(k.keyOf(R))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_needToCopyDataObject:()=>!0,_applyBatch:function(w,T){var k=this._getKeyInfo(),R=this._dataSource,P=I.Z.normalizeSortingInfo(this.group()).length,B="reshape"===this.option("editing.refreshMode"),W="virtual"===this.option("scrolling.mode");w=w.filter(function(K){return!R.paginate()||"insert"!==K.type||void 0!==K.index});var z=()=>P?this.itemsCount():this.items().length,V=z();(0,l.ii)({keyInfo:k,data:this._items,changes:w,groupCount:P,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(0,l.ii)({keyInfo:k,data:R.items(),changes:w,groupCount:P,useInsertIndex:!0,skipCopying:!this._needToCopyDataObject()}),(this._currentTotalCount>0||(T||!B)&&W)&&(this._totalCountCorrection+=z()-V),w.splice(0,w.length)},_handlePush:function(w){var{changes:T}=w;this.push(T,!0)},_handleChanging:function(w){this.changing.fire(w),this._applyBatch(w.changes,!0)},_needCleanCacheByOperation:function(w,T){var k=["filtering","sorting","paging"],R=k.indexOf(w);return(R>=0?k.slice(R):[w]).some(B=>T[B])},_customizeRemoteOperations:function(w,T){var k=this._cachedStoreData,R=this._cachedPagingData,P=this._cachedData;(w.storeLoadOptions.filter&&!w.remoteOperations.filtering||w.storeLoadOptions.sort&&!w.remoteOperations.sorting)&&(w.remoteOperations={filtering:w.remoteOperations.filtering,summary:w.remoteOperations.summary}),T.fullReload?(k=void 0,R=void 0,P={items:{}}):(T.reload?(R=void 0,P={items:{}}):T.groupExpanding&&(P={items:{}}),(0,a.S6)(T,(B,W)=>{W&&this._needCleanCacheByOperation(B,w.remoteOperations)&&(k=void 0,R=void 0)})),R&&(w.remoteOperations.paging=!1),w.cachedStoreData=k,w.cachedPagingData=R,w.cachedData=P,w.isCustomLoading||(this._cachedStoreData=k,this._cachedPagingData=R,this._cachedData=P)},_handleCustomizeStoreLoadOptions(w){var T;this._handleDataLoading(w),0!==(null===(T=w.data)||void 0===T?void 0:T.length)&&(w.data=b(w,!0)||w.cachedStoreData)},_handleDataLoading:function(w){var T=this._dataSource,k=this._lastLoadOptions;this.customizeStoreLoadOptions.fire(w),w.delay=this.option("loadingTimeout"),w.originalStoreLoadOptions=w.storeLoadOptions,w.remoteOperations=(0,p.l)({},this.remoteOperations());var R=!this.isLoaded()&&!this._isRefreshing;this.option("integrationOptions.renderedOnServer")&&!this.isLoaded()&&(w.delay=void 0);var P=(0,p.l)({pageIndex:this.pageIndex(),pageSize:this.pageSize()},w.storeLoadOptions),B=x(P,k,R);if(this._customizeRemoteOperations(w,B),!w.isCustomLoading){var W=this._isRefreshing;w.pageIndex=T.pageIndex(),w.lastLoadOptions=P,w.operationTypes=B,this._loadingOperationTypes=B,this._isRefreshing=!0,(0,d.gx)(W||this._isRefreshed||this.refresh(w,B)).done(()=>{this._lastOperationId===w.operationId&&(this._isRefreshed=!0,this.load().always(()=>{this._isRefreshed=!1}))}).fail(()=>{T.cancel(w.operationId)}).always(()=>{this._isRefreshing=!1}),T.cancel(this._lastOperationId),this._lastOperationId=w.operationId,this._isRefreshing&&T.cancel(this._lastOperationId)}this._handleDataLoadingCore(w)},_handleDataLoadingCore:function(w){var T=w.remoteOperations;w.loadOptions={};var k=w.cachedData.extra,R={filter:!T.filtering,sort:!T.sorting,group:!T.grouping,summary:!T.summary,skip:!T.paging,take:!T.paging,requireTotalCount:k&&"totalCount"in k||!T.paging};(0,a.S6)(w.storeLoadOptions,function(P,B){R[P]&&(w.loadOptions[P]=B,delete w.storeLoadOptions[P])}),k&&(w.extra=k)},_handleDataLoaded:function(w){var T=w.loadOptions,k=w.remoteOperations&&!w.remoteOperations.paging,R=w.cachedData,P=w.storeLoadOptions,B=!1!==this.option("cacheEnabled")&&P,W=B&&!w.isCustomLoading&&R&&(!k||P.group),z=B&&k,V=z&&!w.isCustomLoading;if(T){k&&(w.skip=T.skip,w.take=T.take,delete T.skip,delete T.take),T.group&&(T.group=w.group||T.group);var K,Y,U=I.Z.normalizeSortingInfo(w.group||P.group||T.group).length;w.cachedDataPartBegin&&(w.data=w.cachedDataPartBegin.concat(w.data)),w.cachedDataPartEnd&&(w.data=w.data.concat(w.cachedDataPartEnd)),W&&b(w)||(z&&w.cachedPagingData?w.data=v(w.cachedPagingData,U):(V&&(this._cachedStoreData?w.mergeStoreLoadData&&(w.data=this._cachedStoreData=this._cachedStoreData.concat(w.data)):this._cachedStoreData=v(w.data,I.Z.normalizeSortingInfo(P.group).length)),new s.Z(w.data).load(T).done(J=>{w.data=J,V&&(this._cachedPagingData=v(w.data,U))}).fail(J=>{w.data=(new d.BH).reject(J)})),T.requireTotalCount&&k&&(w.extra=(0,g.PO)(w.extra)?w.extra:{},w.extra.totalCount=w.data.length),w.extra&&w.extra.totalCount>=0&&(!1===P.requireTotalCount||!1===T.requireTotalCount)&&(w.extra.totalCount=-1),!T.data&&(P.requireTotalCount||(null!==(K=null===(Y=w.extra)||void 0===Y?void 0:Y.totalCount)&&void 0!==K?K:-1)>=0)&&(this._totalCountCorrection=0),this._handleDataLoadedCore(w),W&&(R.extra=R.extra||(0,p.l)({},w.extra),(0,d.gx)(w.data).done(J=>{!function(j,ee,G){for(var q,Z,X,M,{storeLoadOptions:oe}=j,fe=null!==(q=null!==(Z=j.skip)&&void 0!==Z?Z:oe.skip)&&void 0!==q?q:0,Te=null!==(X=null!==(M=j.take)&&void 0!==M?M:oe.take)&&void 0!==X?X:0,Be=0;Be<Te;Be++){var ze=Be+fe,ae=j.cachedData.items;ae[ze]=S(ae[ze],ee[Be],G,0===Be&&j.skips||[])}}(w,J,U)}))),(0,d.gx)(w.data).done(()=>{w.lastLoadOptions&&(this._lastLoadOptions=w.lastLoadOptions,Object.keys(w.operationTypes).forEach(J=>{this._lastOperationTypes[J]=this._lastOperationTypes[J]||w.operationTypes[J]}))}),w.storeLoadOptions=w.originalStoreLoadOptions}else this._dataSource.cancel(w.operationId)},_handleDataLoadedCore:function(w){w.remoteOperations&&!w.remoteOperations.paging&&Array.isArray(w.data)&&(void 0!==w.skip&&(w.data=w.data.slice(w.skip)),void 0!==w.take&&(w.data=w.data.slice(0,w.take)))},_handleLoadingChanged:function(w){this.loadingChanged.fire(w)},_handleLoadError:function(w){this.loadError.fire(w),this.changed.fire({changeType:"loadError",error:w})},_loadPageSize:function(){return this.pageSize()},_handleDataChanged:function(w){var T,k=this._dataSource,R=!1,P=!w||(0,g.$K)(w.changeType),B=this.itemsCount();P&&(this._isLastPage=!B||!this._loadPageSize()||B<this._loadPageSize(),this._isLastPage&&(this._hasLastPage=!0)),k.totalCount()>=0?k.pageIndex()>=this.pageCount()&&(k.pageIndex(this.pageCount()-1),this.pageIndex(k.pageIndex()),this.resetPagesCache(),k.load(),R=!0):P&&((T=k.pageIndex()*this.pageSize()+B)>this._currentTotalCount&&(this._currentTotalCount=T,(0===k.pageIndex()||!this.option("scrolling.legacyMode"))&&(this._totalCountCorrection=0)),0===B&&k.pageIndex()>=this.pageCount()&&(k.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(k.load(),R=!0))),R||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(w),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(w){var T=this;T._isCustomLoading=!0,w.always(function(){T._isCustomLoading=!1})},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},_dataSourceTotalCount:function(){return this._dataSource.totalCount()},totalCount:function(){return parseInt((this._currentTotalCount||this._dataSourceTotalCount())+this._totalCountCorrection)},totalCountCorrection:function(){return this._totalCountCorrection},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var w=this._dataSource;return arguments.length||w.paginate()?w.pageSize.apply(w,arguments):0},pageCount:function(){var w=this.totalItemsCount()-this._totalCountCorrection,T=this.pageSize();return T&&w>0?Math.max(1,Math.ceil(w/T)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(w,T){var k=this._dataSource,R=new d.BH;if(k)return(T=T||k.store()).load(w).done(function(P,B){P&&!Array.isArray(P)&&Array.isArray(P.data)&&(B=P,P=P.data),R.resolve(P,B)}).fail(R.reject),R},isCustomLoading:function(){return!!this._isCustomLoading},load:function(w){var z,V,T=this,k=T._dataSource,R=new d.BH;if(w){var P=k.store(),B=k.loadOptions(),W={storeLoadOptions:w,isCustomLoading:!0};return(0,a.S6)(P._customLoadOptions()||[],function(z,V){V in W.storeLoadOptions||(W.storeLoadOptions[V]=B[V])}),this._isLoadingAll=w.isLoadingAll,T._scheduleCustomLoadCallbacks(R),k._scheduleLoadCallbacks(R),T._handleCustomizeStoreLoadOptions(W),z=function(){if(!k.store())return R.reject("canceled");(0,d.gx)(W.data||T.loadFromStore(W.storeLoadOptions)).done(function(z,V){W.data=z,W.extra=V||{},T._handleDataLoaded(W),w.requireTotalCount&&void 0===W.extra.totalCount&&(W.extra.totalCount=P.totalCount(W.storeLoadOptions)),(0,d.gx)(W.data,W.extra.totalCount).done(function(U,K){W.extra.totalCount=K,R.resolve(U,W.extra)}).fail(R.reject)}).fail(R.reject)},V=T.option("loadingTimeout"),(0,g.$K)(V)?(0,C.Wi)(z,V):z(),R.fail(function(){T._eventsStrategy.fireEvent("loadError",arguments)}).always(()=>{this._isLoadingAll=!1}).promise()}return k.load()},reload:function(w){return w?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}};return O}())},260:(Rn,he,u)=>{"use strict";u.d(he,{X:()=>ce});var o=u(4817),c=u(9904),I=u(9897),C=u(913),g=u(6492),a=u(6520),p=u(1828),s=u(2718),l=u(5873),d=u(3390),h=u(227),v=u(8690),x=u(2879),b=u(1771),y=u(8225),E=u(4121),S=u(9009),O=u(2941),w=u(4270),T=u(7674),k=u(4328),R=u(6468),P=u(2834),B="readonly",z="dx-selection",U="dx-command-edit",K=U+"-with-icons",Y="__DX_INSERT_INDEX__",J="dx-row-inserted",j="dx-row-modified",ee="dx-cell-modified",q="dx-cell-focus-disabled",Z="update",X="click",M={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},oe={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},fe={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},Te={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},Be=["edit","save","cancel","delete","undelete"],ze="editing.changes",ae=function(le){return function(pe){var Se=pe instanceof Error?pe:new Error(pe&&String(pe)||"Unknown error");le.reject(Se)}},_e=function(le,pe){return pe.isEditing||le&&pe.column.allowEditing},ye=function(le,pe){var Se=!!pe.column.command,re=_e(le,pe);return"data"===pe.rowType&&!Se&&(re||pe.column.showEditorAlways)},ce={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",newRowPosition:R.os,allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:S.Z.format("dxDataGrid-editingEditRow"),saveAllChanges:S.Z.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:S.Z.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:S.Z.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:S.Z.format("dxDataGrid-editingCancelRowChanges"),addRow:S.Z.format("dxDataGrid-editingAddRow"),deleteRow:S.Z.format("dxDataGrid-editingDeleteRow"),undeleteRow:S.Z.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:S.Z.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click",editRowKey:null,editColumnName:null,changes:[]},useLegacyColumnButtonTemplate:!1}},controllers:{editing:d.Z.ViewController.inherit(function(){var le=(re,te)=>{var ie=-1;return re.some((ue,be)=>{if(pe(ue)===te)return ie=be,!0}),ie};function pe(re){return(0,p.Kn)(re)?re.name:re}var Se={init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._rowsView=this.getView("rowsView"),this._lastOperation=null,this._changes=[],this._deferreds&&this._deferreds.forEach(re=>re.reject("cancel")),this._deferreds=[],this._dataChangedHandler||(this._dataChangedHandler=this._handleDataChanged.bind(this),this._dataController.changed.add(this._dataChangedHandler)),this._saveEditorHandler||(this.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaved",{excludeValidators:["disabled","readOnly"]}),this.createAction("onSaving",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceling",{excludeValidators:["disabled","readOnly"]}),this.createAction("onEditCanceled",{excludeValidators:["disabled","readOnly"]})),this._updateEditColumn(),this._updateEditButtons(),this._internalState||(this._internalState=[]),this.component._optionsByReference[R.GG]=!0,this.component._optionsByReference[ze]=!0},getEditMode:function(){var re=this.option("editing.mode");return-1!==R.So.indexOf(re)?re:R.CM},_getDefaultEditorTemplate:function(){return(re,te)=>{var ie=(0,c.Z)("<div>").appendTo(re);this.getController("editorFactory").createEditor(ie,(0,l.l)({},te.column,{value:te.value,setValue:te.setValue,row:te.row,parentType:"dataRow",width:null,readOnly:!te.setValue,isOnForm:te.isOnForm,id:te.id}))}},_getNewRowPosition:function(){var re=this.option("editing.newRowPosition");if("virtual"===this.option("scrolling.mode"))switch(re){case R.UM:return R.os;case R.IM:return R.Xt;default:return re}return re},getChanges:function(){return this.option(ze)},getInsertRowCount:function(){return this.option(ze).filter(te=>"insert"===te.type).length},resetChanges:function(){var te=this.getChanges()?.length;te&&this._silentOption(ze,[])},_getInternalData:function(re){return this._internalState.filter(te=>(0,T.bY)(te.key,re))[0]},_addInternalData:function(re){var te=this._getInternalData(re.key);return te?(0,l.l)(te,re):(this._internalState.push(re),re)},_getOldData:function(re){var te;return null===(te=this._getInternalData(re))||void 0===te?void 0:te.oldData},getUpdatedData:function(re){var te=this._dataController.keyOf(re),ie=this.getChanges(),ue=x.Z.getIndexByKey(te,ie);return ie[ue]?(0,b.FL)(re,ie[ue].data):re},getInsertedData:function(){return this.getChanges().filter(re=>re.data&&re.type===R.H3).map(re=>re.data)},getRemovedData:function(){return this.getChanges().filter(re=>this._getOldData(re.key)&&re.type===R.M$).map(re=>this._getOldData(re.key))},_fireDataErrorOccurred:function(re){if("cancel"!==re){var te=this.getPopupContent();this._dataController.dataErrorOccurred.fire(re,te)}},_needToCloseEditableCell:T.ZT,_closeEditItem:T.ZT,_handleDataChanged:T.ZT,_isDefaultButtonVisible:function(re,te){var ie=!0;switch(re.name){case"delete":ie=this.allowDeleting(te);break;case"undelete":ie=!1}return ie},_isButtonVisible:function(re,te){var ie=re.visible;return(0,p.$K)(ie)?(0,p.mf)(ie)?ie.call(re,{component:te.component,row:te.row,column:te.column}):ie:this._isDefaultButtonVisible(re,te)},_isButtonDisabled:function(re,te){var ie=re.disabled;return(0,p.mf)(ie)?ie.call(re,{component:te.component,row:te.row,column:te.column}):!!ie},_getButtonConfig:function(re,te){var gt,ie=(0,p.Kn)(re)?re:{},ue=pe(re),be={save:(gt=te.component.option("editing.texts")||{}).saveRowChanges,cancel:gt.cancelRowChanges,edit:gt.editRow,undelete:gt.undeleteRow,delete:gt.deleteRow,add:gt.addRowToNode},Ae=fe[ue],Ne=this.option("editing"),mt=Te[ue],tt=!mt||Ne[mt];return(0,l.l)({name:ue,text:be[ue],cssClass:M[ue]},{onClick:Ae&&(Le=>{var gt=Le.event;gt.stopPropagation(),gt.preventDefault(),setTimeout(()=>{te.row&&tt&&this[Ae]&&this[Ae](te.row.rowIndex)})})},ie)},_getEditingButtons:function(re){var te,ie=!!re.column.buttons,ue=(re.column.buttons||[]).slice();return ie?((te=le(ue,"edit"))>=0&&(le(ue,"save")<0&&ue.splice(te+1,0,"save"),le(ue,"cancel")<0&&ue.splice(le(ue,"save")+1,0,"cancel")),(te=le(ue,"delete"))>=0&&le(ue,"undelete")<0&&ue.splice(te+1,0,"undelete")):ue=Be.slice(),ue.map(be=>this._getButtonConfig(be,re))},_renderEditingButtons:function(re,te,ie,ue){te.forEach(be=>{this._isButtonVisible(be,ie)&&this._createButton(re,be,ie,ue)})},_getEditCommandCellTemplate:function(){return(re,te,ie)=>{var ue=(0,c.Z)(re);if("data"===te.rowType){var be=this._getEditingButtons(te);this._renderEditingButtons(ue,be,te,ie),te.watch&&te.watch(()=>be.map(Ae=>this._isButtonVisible(Ae,te)),()=>{ue.empty(),this._renderEditingButtons(ue,be,te)})}else x.Z.setEmptyText(ue)}},isRowBasedEditMode:function(){var re=this.getEditMode();return-1!==R.wO.indexOf(re)},getFirstEditableColumnIndex:function(){var te,ie=this.getController("columns").getVisibleColumns();return(0,s.S6)(ie,function(ue,be){if(be.allowEditing)return te=ue,!1}),te},getFirstEditableCellInRow:function(re){var te=this.getView("rowsView");return te&&te._getCellElement(re||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(re){return this.getFirstEditableCellInRow(re)},getIndexByKey:function(re,te){return x.Z.getIndexByKey(re,te)},hasChanges:function(re){for(var te=this.getChanges(),ie=!1,ue=0;ue<te?.length;ue++)if(te[ue].type&&(!(0,p.$K)(re)||this._dataController.getRowIndexByKey(te[ue].key)===re)){ie=!0;break}return ie},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),C.Z.off(I.Z.getDocument(),v.Z.up,this._pointerUpEditorHandler),C.Z.off(I.Z.getDocument(),v.Z.down,this._pointerDownEditorHandler),C.Z.off(I.Z.getDocument(),h.u,this._saveEditorHandler)},_silentOption:function(re,te){"editing.changes"===re&&(this._changes=(0,P.HR)([],te)),this.callBase.apply(this,arguments)},optionChanged:function(re){if("editing"===re.name){var te=re.fullName;te===R.GG?this._handleEditRowKeyChange(re):te===ze?(0,T.bY)(re.value,this._changes,-1)||(this._changes=(0,P.HR)([],re.value),this._handleChangesChange(re)):re.handled||(this._columnsController.reinit(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey()),re.handled=!0}else this.callBase(re)},_handleEditRowKeyChange:function(re){var te=this._dataController.getRowIndexByKey(re.value),ie=this._getEditRowIndexCorrection(),ue=this._dataController.getRowIndexByKey(re.previousValue)+ie;(0,p.$K)(re.value)?re.value!==re.previousValue&&this._editRowFromOptionChanged(te,ue):this.cancelEditData()},_handleChangesChange:function(re){var te=this._dataController;!re.value.length&&!re.previousValue.length||(re.value.forEach(ue=>{if("insert"===ue.type)this._addInsertInfo(ue);else{var be,Ae=te.items(),Ne=te.getRowIndexByKey(ue.key);this._addInternalData({key:ue.key,oldData:null===(be=Ae[Ne])||void 0===be?void 0:be.data})}}),te.updateItems({repaintChangesOnly:!0,isLiveUpdate:!1,isOptionChanged:!0}))},publicMethods:function(){return["addRow","deleteRow","undeleteRow","editRow","saveEditData","cancelEditData","hasEditData"]},refresh:function(){(0,p.$K)(this._pageIndex)&&this._refreshCore.apply(this,arguments)},_refreshCore:T.ZT,isEditing:function(){return(0,p.$K)(this.option(R.GG))},isEditRow:function(){return!1},_setEditRowKey:function(re,te){te?this._silentOption(R.GG,re):this.option(R.GG,re)},_setEditRowKeyByIndex:function(re,te){var ie=this._dataController.getKeyByRowIndex(re);void 0!==ie?this._setEditRowKey(ie,te):this._dataController.fireError("E1043")},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){return-1},isEditRowByIndex(re){var te=this._dataController.getKeyByRowIndex(re);return(0,p.$K)(te)&&(0,T.bY)(this.option(R.GG),te)&&this._getVisibleEditRowIndex()===re},isEditCell:function(re,te){return this.isEditRowByIndex(re)&&this._getVisibleEditColumnIndex()===te},getPopupContent:T.ZT,_isProcessedItem:function(re){return!1},_getInsertRowIndex:function(re,te,ie){var ue=-1,be=this._dataController,Ae=this._getInsertAfterOrBeforeKey(te);return(0,p.$K)(Ae)||0!==re.length?(0,p.$K)(Ae)&&re.some((Ne,mt)=>{var tt=ie||this._isProcessedItem(Ne);if((0,p.Kn)(Ne)&&(tt||(0,p.$K)(Ne[Y])?(0,T.bY)(Ne.key,Ae)&&(ue=mt):(0,T.bY)(be.keyOf(Ne),Ae)&&(ue=mt)),ue>=0){var Le=re[ue+1];return Le&&("detail"===Le.rowType||"detailAdaptive"===Le.rowType)&&(0,p.$K)(te.insertAfterKey)?void 0:((0,p.$K)(te.insertAfterKey)&&(ue+=1),!0)}}):ue=0,ue},_generateNewItem:function(re){var te,ie={key:re},ue=null===(te=this._getInternalData(re))||void 0===te?void 0:te.insertInfo;return null!=ue&&ue[Y]&&(ie[Y]=ue[Y]),ie},_getLoadedRowIndex:function(re,te,ie){var ue=this._getInsertRowIndex(re,te,ie),be=this._dataController;if(ue<0){var Ae=this._getNewRowPosition(),Ne=be.pageIndex(),mt=this._getInsertAfterOrBeforeKey(te);Ae===R.rk||0!==Ne||(0,p.$K)(mt)?Ae===R.rk&&be.isLastPageLoaded()&&(ue=re.length):ue=0}return ue},processItems:function(re,te){return this.update(te.changeType),this.getChanges().forEach(be=>{var Ae;if(be.type===R.H3){var mt=be.key,tt=null===(Ae=this._getInternalData(mt))||void 0===Ae?void 0:Ae.insertInfo;(!(0,p.$K)(mt)||!(0,p.$K)(tt))&&(mt=(tt=this._addInsertInfo(be)).key);var Le=this._getLoadedRowIndex(re,be),gt=this._generateNewItem(mt);Le>=0&&re.splice(Le,0,gt)}}),re},processDataItem:function(re,te,ie){var ue=te.visibleColumns,be=re.data[Y]?re.data.key:re.key,Ae=this.getChanges(),Ne=x.Z.getIndexByKey(be,Ae);re.isEditing=!1,Ne>=0&&this._processDataItemCore(re,Ae[Ne],be,ue,ie)},_processDataItemCore:function(re,te,ie,ue,be){var{data:Ae,type:Ne}=te;switch(Ne){case R.H3:re.isNewRow=!0,re.key=ie,re.data=Ae;break;case Z:re.modified=!0,re.oldData=re.data,re.data=(0,b.FL)(re.data,Ae),re.modifiedValues=be(Ae,ue,!0);break;case R.M$:re.removed=!0}},_initNewRow:function(re){if(this.executeAction("onInitNewRow",re),re.promise){var te=new w.BH;return(0,w.gx)((0,w.p4)(re.promise)).done(te.resolve).fail(ae(te)).fail(ie=>this._fireDataErrorOccurred(ie)),te}},_createInsertInfo:function(){var re={};return re[Y]=this._getInsertIndex(),re},_addInsertInfo:function(re,te){var ie,ue,{key:be}=re;if((0,p.$K)(be)||(be=String(new g.Z),re.key=be),ue=null===(ie=this._getInternalData(be))||void 0===ie?void 0:ie.insertInfo,!(0,p.$K)(ue)){var Ae=this._getInsertAfterOrBeforeKey(re);ue=this._createInsertInfo(),(0,p.$K)(Ae)||this._setInsertAfterOrBeforeKey(re,te)}return this._addInternalData({insertInfo:ue,key:be}),{insertInfo:ue,key:be}},_setInsertAfterOrBeforeKey:function(re,te){var ie=this._dataController,ue=ie.items(!0),be=this.getView("rowsView"),Ae=this._getNewRowPosition();switch(Ae){case R.dl:case R.rk:break;case R.UM:case R.IM:if(ue.length){var Ne=Ae===R.UM?0:ue.length-1;re[0===Ne?"insertBeforeKey":"insertAfterKey"]=ue[Ne].key}break;default:var tt=Ae===R.Xt?be?.getBottomVisibleItemIndex():be?.getTopVisibleItemIndex(),Le=ie.getVisibleRows()[tt];Le&&(!Le.isEditing&&"detail"===Le.rowType||"detailAdaptive"===Le.rowType)&&tt++;var gt=ie.getKeyByRowIndex(tt);(0,p.$K)(gt)&&(re.insertBeforeKey=gt)}},_getInsertIndex:function(){var re=0;return this.getChanges().forEach(te=>{var ie,ue=null===(ie=this._getInternalData(te.key))||void 0===ie?void 0:ie.insertInfo;(0,p.$K)(ue)&&te.type===R.H3&&ue[Y]>re&&(re=ue[Y])}),re+1},_getInsertAfterOrBeforeKey:function(re){var te;return null!==(te=re.insertAfterKey)&&void 0!==te?te:re.insertBeforeKey},_getPageIndexToInsertRow:function(){var re=this._getNewRowPosition(),te=this._dataController,ie=te.pageIndex(),ue=te.pageCount()-1;return re===R.dl&&0!==ie?0:re===R.rk&&ie!==ue?ue:-1},addRow:function(re){var te=this._dataController;return te.store()?this._addRow(re):(te.fireError("E1052",this.component.NAME),(new w.BH).reject())},_addRow:function(re){var ie=this._dataController.store(),ue=ie&&ie.key(),be={data:{}},Ae=this._getVisibleEditRowIndex(),Ne=new w.BH;return this.refresh({allowCancelEditing:!0}),this._allowRowAdding()?(ue||(be.data.__KEY__=String(new g.Z)),(0,w.gx)(this._initNewRow(be,re)).done(()=>{this._allowRowAdding()?(0,w.gx)(this._addRowCore(be.data,re,Ae)).done(Ne.resolve).fail(Ne.reject):Ne.reject("cancel")}).fail(Ne.reject),Ne.promise()):((0,w.gx)(this._navigateToNewRow(Ae)).done(Ne.resolve).fail(Ne.reject),Ne.promise())},_allowRowAdding:function(){return!(this._getInsertIndex()>1)},_addRowCore:function(re,te,ie){var ue={data:re,type:R.H3},be=this._getVisibleEditRowIndex(),Ae=this._addInsertInfo(ue,te);return this._setEditRowKey(Ae.key,!0),this._addChange(ue),this._navigateToNewRow(ie,ue,be)},_navigateToNewRow:function(re,te,ie){var ue,be,Ae=new w.BH,Ne=this._dataController,mt=this.getController("focus");if(ie=null!==(ue=ie)&&void 0!==ue?ue:-1,!(te=null!==(be=te)&&void 0!==be?be:this.getChanges().filter(Pe=>Pe.type===R.H3)[0]))return Ae.reject("cancel").promise();var tt=this._getPageIndexToInsertRow(),Le=this._getLoadedRowIndex(Ne.items(),te,!0),gt=Pe=>{(0,w.gx)(mt?.navigateToRow(Pe)).done(()=>{Le=Ne.getRowIndexByKey(te.key),Ae.resolve()})},tn=this._getInsertAfterOrBeforeKey(te);return tt>=0?Ne.pageIndex(tt).done(()=>{gt(te.key)}).fail(Ae.reject):Le<0&&(0,p.$K)(tn)?gt(tn):(Ne.updateItems({changeType:"update",rowIndices:[re,ie,Le]}),(Le=Ne.getRowIndexByKey(te.key))<0?gt(te.key):Ae.resolve()),Ae.done(()=>{this._showAddedRow(Le),this._afterInsertRow(te.key)}),Ae.promise()},_showAddedRow:function(re){this._focusFirstEditableCellInRow(re)},_beforeFocusElementInRow:T.ZT,_focusFirstEditableCellInRow:function(re){var te=this._dataController,ie=te.getKeyByRowIndex(re),ue=this.getFirstEditableCellInRow(re);this._editCellInProgress=!0,this._delayedInputFocus(ue,()=>{re=te.getRowIndexByKey(ie),this._editCellInProgress=!1,this._beforeFocusElementInRow(re)})},_isEditingStart:function(re){return this.executeAction("onEditingStart",re),re.cancel},_beforeUpdateItems:T.ZT,_getVisibleEditColumnIndex:function(){var re=this.option(R.qw);return(0,p.$K)(re)?this._columnsController.getVisibleColumnIndex(re):-1},_setEditColumnNameByIndex:function(re,te){var ie,ue=this._columnsController.getVisibleColumns();this._setEditColumnName(null===(ie=ue[re])||void 0===ie?void 0:ie.name,te)},_setEditColumnName:function(re,te){te?this._silentOption(R.qw,re):this.option(R.qw,re)},_resetEditColumnName:function(){this._setEditColumnName(null,!0)},_getEditColumn:function(){var re=this.option(R.qw);return this._getColumnByName(re)},_getColumnByName:function(re){var ie,te=this._columnsController.getVisibleColumns();return(0,p.$K)(re)&&te.some(ue=>{if(ue.name===re)return ie=ue,!0}),ie},_getVisibleEditRowIndex:function(re){var te=this._dataController,ie=this.option(R.GG),ue=te.getRowIndexByKey(ie);return-1===ue?ue:ue+this._getEditRowIndexCorrection(re)},_getEditRowIndexCorrection:function(re){return"adaptiveHidden"===(re?this._getColumnByName(re):this._getEditColumn())?.visibleWidth?1:0},_resetEditRowKey:function(){this._setEditRowKey(null,!0)},_resetEditIndices:function(){this._resetEditColumnName(),this._resetEditRowKey()},editRow:function(re){var te,ie=this._dataController,be=ie.items()[re],Ae={data:be&&be.data,cancel:!1},Ne=this._getVisibleEditRowIndex();if(be){if(re===Ne)return!0;if(void 0===be.key)return void this._dataController.fireError("E1043");be.isNewRow||(Ae.key=be.key),!this._isEditingStart(Ae)&&(this.resetChanges(),this.init(),this._resetEditColumnName(),this._pageIndex=ie.pageIndex(),this._addInternalData({key:be.key,oldData:null!==(te=be.oldData)&&void 0!==te?te:be.data}),this._setEditRowKey(be.key))}},_editRowFromOptionChanged:function(re,te){var ie=[te,re];this._beforeUpdateItems(ie,re,te),this._editRowFromOptionChangedCore(ie,re)},_editRowFromOptionChangedCore:function(re,te,ie){this._needFocusEditor=!0,this._dataController.updateItems({changeType:"update",rowIndices:re,cancel:ie})},_focusEditorIfNeed:T.ZT,_showEditPopup:T.ZT,_repaintEditPopup:T.ZT,_getEditPopupHiddenHandler:function(){return re=>{this.isEditing()&&this.cancelEditData()}},_getPopupEditFormTemplate:T.ZT,_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeInternalData:function(re){var te=this._getInternalData(re),ie=this._internalState.indexOf(te);ie>-1&&this._internalState.splice(ie,1)},_updateInsertAfterOrBeforeKeys:function(re,te){var ie=re[te];re.forEach(ue=>{var be=this._getInsertAfterOrBeforeKey(ue);(0,T.bY)(be,ie.key)&&(ue[(0,p.$K)(ue.insertAfterKey)?"insertAfterKey":"insertBeforeKey"]=this._getInsertAfterOrBeforeKey(ie))})},_removeChange:function(re){if(re>=0){var te=[...this.getChanges()],ie=te[re].key;this._removeInternalData(ie),this._updateInsertAfterOrBeforeKeys(te,re),te.splice(re,1),this._silentOption(ze,te),(0,T.bY)(this.option(R.GG),ie)&&this._resetEditIndices()}},executeOperation:function(re,te){this._lastOperation&&this._lastOperation.reject(),this._lastOperation=re,this.waitForDeferredOperations().done(()=>{"rejected"!==re.state()&&(te(),this._lastOperation=null)}).fail(()=>{re.reject(),this._lastOperation=null})},waitForDeferredOperations:function(){return(0,w.gx)(...this._deferreds)},_processCanceledEditingCell:T.ZT,_repaintEditCell:function(re,te,ie){this._needFocusEditor=!0,!re||!re.showEditorAlways||te&&!te.showEditorAlways?(this._editCellInProgress=!0,this.getController("editorFactory").loseFocus(),this._dataController.updateItems({changeType:"update",rowIndices:[ie,this._getVisibleEditRowIndex()]})):re!==te&&this._dataController.updateItems({changeType:"update",rowIndices:[]})},_delayedInputFocus:function(re,te,ie){var ue=()=>{if(te&&te(),re){var be=re.find(R.DZ).first();x.Z.focusAndSelectElement(this,be)}this._beforeFocusCallback=null};O.Z.real().ios||O.Z.real().android?ue():(this._beforeFocusCallback&&this._beforeFocusCallback(),clearTimeout(this._inputFocusTimeoutID),ie&&(this._beforeFocusCallback=te),this._inputFocusTimeoutID=setTimeout(ue))},_focusEditingCell:function(re,te,ie){var ue=this.getView("rowsView"),be=this._getVisibleEditColumnIndex();(te=te||ue&&ue._getCellElement(this._getVisibleEditRowIndex(),be))&&this._delayedInputFocus(te,re,ie)},deleteRow:function(re){this._checkAndDeleteRow(re)},_checkAndDeleteRow:function(re){var te=this.option("editing"),ie=te?.texts,ue=te?.confirmDelete,be=ie?.confirmDeleteMessage,Ae=this._dataController.items()[re],Ne=!this.isEditing()||Ae.isNewRow;if(Ae&&Ne)if(ue&&be){var mt=ie&&ie.confirmDeleteTitle,tt=(0,p.$K)(mt)&&mt.length>0;(0,E.iG)(be,mt,tt).done(Le=>{Le&&this._deleteRowCore(re)})}else this._deleteRowCore(re)},_deleteRowCore:function(re){var ie=this._dataController.items()[re],ue=ie&&ie.key,be=this._getVisibleEditRowIndex();this.refresh();var Ae=this.getChanges(),Ne=x.Z.getIndexByKey(ue,Ae);return Ne>=0?Ae[Ne].type===R.H3?this._removeChange(Ne):this._addChange({key:ue,type:R.M$}):this._addChange({key:ue,oldData:ie.data,type:R.M$}),this._afterDeleteRow(re,be)},_afterDeleteRow:function(re,te){return this.saveEditData()},undeleteRow:function(re){var te=this._dataController,ie=te.items()[re],ue=this._getVisibleEditRowIndex(),be=ie&&ie.key,Ae=this.getChanges();if(ie){var Ne=x.Z.getIndexByKey(be,Ae);if(Ne>=0){var{data:mt}=Ae[Ne];(0,p.Qr)(mt)?this._removeChange(Ne):this._addChange({key:be,type:Z}),te.updateItems({changeType:"update",rowIndices:[ue,re]})}}},_fireOnSaving:function(){var re={cancel:!1,promise:null,changes:[...this.getChanges()]};this.executeAction("onSaving",re);var te=new w.BH;return(0,w.gx)((0,w.p4)(re.promise)).done(()=>{te.resolve(re)}).fail(ie=>{ae(te),this._fireDataErrorOccurred(ie),te.resolve({cancel:!0})}),te},_executeEditingAction:function(re,te,ie){if(this.component._disposed)return null;var ue=new w.BH;return this.executeAction(re,te),(0,w.gx)((0,w.p4)(te.cancel)).done(function(be){be?setTimeout(function(){ue.resolve("cancel")}):ie(te).done(ue.resolve).fail(ae(ue))}).fail(ae(ue)),ue},_processChanges:function(re,te,ie,ue){var be=this._dataController.store();(0,s.S6)(ue,(Ae,Ne)=>{var tn,Pe,mt=this._getOldData(Ne.key),{data:tt,type:Le}=Ne,gt=(0,o.Z)({},Ne);if(!this._beforeSaveEditData(Ne,Ae)){switch(Le){case R.M$:tn=this._executeEditingAction("onRowRemoving",Pe={data:mt,key:Ne.key,cancel:!1},function(){return be.remove(Ne.key).done(function(ge){ie.push({type:"remove",key:ge})})});break;case R.H3:tn=this._executeEditingAction("onRowInserting",Pe={data:tt,cancel:!1},function(){return be.insert(Pe.data).done(function(ge,Ce){(0,p.$K)(Ce)&&(gt.key=Ce),ge&&(0,p.Kn)(ge)&&ge!==Pe.data&&(gt.data=ge),ie.push({type:"insert",data:ge,index:0})})});break;case Z:tn=this._executeEditingAction("onRowUpdating",Pe={newData:tt,oldData:mt,key:Ne.key,cancel:!1},function(){return be.update(Ne.key,Pe.newData).done(function(ge,Ce){ge&&(0,p.Kn)(ge)&&ge!==Pe.newData&&(gt.data=ge),ie.push({type:"update",key:Ce,data:ge})})})}if(ue[Ae]=gt,tn){var $e=new w.BH;tn.always(function(ge){te.push({key:Ne.key,result:ge})}).always($e.resolve),re.push($e.promise())}}})},_processRemoveIfError:function(re,te){return re[te]?.type===R.M$&&te>=0&&re.splice(te,1),!0},_processRemove:function(re,te,ie){var ue=re[te];if(!ie||!ue||ue.type===R.M$)return this._processRemoveCore(re,te,!ie||!ue)},_processRemoveCore:function(re,te){return te>=0&&re.splice(te,1),!0},_processSaveEditDataResult:function(re){for(var te=!1,ie=[...this.getChanges()],ue=ie.length,be=0;be<re.length;be++){var Ae=re[be].result,Ne="cancel"===Ae,mt=x.Z.getIndexByKey(re[be].key,ie),tt=ie[mt];if(Ae&&Ae instanceof Error){if(tt&&this._addInternalData({key:tt.key,error:Ae}),this._fireDataErrorOccurred(Ae),this._processRemoveIfError(ie,mt))break}else this._processRemove(ie,mt,Ne)&&(te=!Ne)}return ie.length<ue&&this._silentOption(ze,ie),te},_fireSaveEditDataEvents:function(re){(0,s.S6)(re,(te,ie)=>{var{data:ue,key:be,type:Ae}=ie,Ne=this._addInternalData({key:be}),mt={key:be,data:ue};switch(Ne.error&&(mt.error=Ne.error),Ae){case R.M$:this.executeAction("onRowRemoved",(0,l.l)({},mt,{data:Ne.oldData}));break;case R.H3:this.executeAction("onRowInserted",mt);break;case Z:this.executeAction("onRowUpdated",mt)}}),this.executeAction("onSaved",{changes:re})},saveEditData:function(){var re=new w.BH;return this.waitForDeferredOperations().done(()=>{this.isSaving()?this._resolveAfterSave(re):(0,w.gx)(this._beforeSaveEditData()).done(te=>{if(te)this._resolveAfterSave(re,{cancel:te});else{this._saving=!0;var ie={};this._saveEditDataInner(ie).always(()=>{this._saving=!1,ie.needFocusEditCell&&this._focusEditingCell()}).done(re.resolve).fail(re.reject)}}).fail(re.reject)}).fail(re.reject),re.promise()},_resolveAfterSave:function(re){var{cancel:te,error:ie}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,w.gx)(this._afterSaveEditData(te)).done(function(){re.resolve(ie)}).fail(re.reject)},_saveEditDataInner:function(re){var te=[],ie=[],ue=[],Ae=this._dataController.dataSource(),Ne=new w.BH;return(0,w.gx)(this._fireOnSaving()).done(mt=>{var{cancel:tt,changes:Le}=mt;return tt?Ne.resolve().promise():(this._processChanges(ie,te,ue,Le),ie.length?(Ae?.beginLoading(),(0,w.gx)(...ie).done(()=>{this._processSaveEditDataResult(te)?this._endSaving(ue,Le,Ne):(Ae?.endLoading(),Ne.resolve())}).fail(gt=>{Ae?.endLoading(),Ne.resolve(gt)}),Ne.always(()=>{re.needFocusEditCell=!0}).promise()):void this._cancelSaving(Ne))}).fail(Ne.reject),Ne.promise()},_beforeEndSaving:function(re){this._resetEditIndices()},_endSaving:function(re,te,ie){var ue=this._dataController.dataSource();this._beforeEndSaving(te),ue?.endLoading(),this._refreshDataAfterSave(re,te,ie)},_cancelSaving:function(re){this.executeAction("onSaved",{changes:[]}),this._resolveAfterSave(re)},_refreshDataAfterSave:function(re,te,ie){var ue=this._dataController,be=this.option("editing.refreshMode"),Ae="reshape"!==be&&"repaint"!==be;Ae||ue.push(re),(0,w.gx)(ue.refresh({selection:Ae,reload:Ae,load:"reshape"===be,changesOnly:this.option("repaintChangesOnly")})).always(()=>{this._fireSaveEditDataEvents(te)}).done(()=>{this._resolveAfterSave(ie)}).fail(Ne=>{this._resolveAfterSave(ie,{error:Ne})})},isSaving:function(){return this._saving},_updateEditColumn:function(){var re=this._isEditColumnVisible(),te=this.option("editing.useIcons"),ie=U+(te?" "+K:"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:re,cssClass:ie,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:re,cssClass:ie})},_isEditColumnVisible:function(){return this.option("editing").allowDeleting},_isEditButtonDisabled:function(){var re=this.hasChanges();return!((0,p.$K)(this.option("editing.editRowKey"))||re)},_updateEditButtons:function(){var re=this.getView("headerPanel"),te=this._isEditButtonDisabled();re&&(re.setToolbarItemDisabled("saveButton",te),re.setToolbarItemDisabled("revertButton",te))},_applyModified:function(re){re&&re.addClass(ee)},_beforeCloseEditCellInBatchMode:T.ZT,cancelEditData:function(){var re=this.getChanges(),te={cancel:!1,changes:re};this.executeAction("onEditCanceling",te),te.cancel||(this._cancelEditDataCore(),this.executeAction("onEditCanceled",{changes:re}))},_cancelEditDataCore:function(){var re=this._getVisibleEditRowIndex();this._beforeCancelEditData(),this.init(),this.resetChanges(),this._resetEditColumnName(),this._resetEditRowKey(),this._afterCancelEditData(re)},_afterCancelEditData:function(re){this._dataController.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")})},_hideEditPopup:T.ZT,hasEditData:function(){return this.hasChanges()},update:function(re){var te=this._dataController;te&&this._pageIndex!==te.pageIndex()&&("refresh"===re&&this.refresh({isPageChanged:!0}),this._pageIndex=te.pageIndex()),this._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(re,te){return te?[]:[re.rowIndex]},addDeferred:function(re){this._deferreds.indexOf(re)<0&&(this._deferreds.push(re),re.always(()=>{var te=this._deferreds.indexOf(re);te>=0&&this._deferreds.splice(te,1)}))},_prepareChange:function(re,te,ie){var ue,be={},Ae=null===(ue=re.row)||void 0===ue?void 0:ue.data,Ne=re.key,mt=new w.BH;return void 0!==Ne&&(re.value=te,(0,w.p4)(re.column.setCellValue(be,te,(0,l.l)(!0,{},Ae),ie)).done(function(){mt.resolve({data:be,key:Ne,oldData:Ae,type:Z})}).fail(ae(mt)).fail(Le=>this._fireDataErrorOccurred(Le)),(0,p.$K)(ie)&&re.column.displayValueMap&&(re.column.displayValueMap[te]=ie),this._updateRowValues(re),this.addDeferred(mt)),mt},_updateRowValues:function(re){if(re.values){var te=this._dataController,ie=te.getRowIndexByKey(re.key),ue=te.getVisibleRows()[ie];ue&&(re.row.values=ue.values,re.values=ue.values),re.values[re.columnIndex]=re.value}},updateFieldValue:function(re,te,ie,ue){var be=re.key,Ae=new w.BH;return void 0===be&&this._dataController.fireError("E1043"),re.column.setCellValue?this._prepareChange(re,te,ie).done(Ne=>{(0,w.gx)(this._applyChange(re,Ne,ue)).always(()=>{Ae.resolve()})}):Ae.resolve(),Ae.promise()},_focusPreviousEditingCellIfNeed:function(re){if(this.hasEditData()&&!this.isEditCell(re.rowIndex,re.columnIndex))return this._focusEditingCell(),this._updateEditRow(re.row,!0),!0},_needUpdateRow:function(re){var te=this._columnsController.getVisibleColumns();re||(re=this._getEditColumn());var ie=re&&re.setCellValue!==re.defaultSetCellValue,ue=te.some(be=>be.calculateCellValue!==be.defaultCalculateCellValue);return ie||ue},_applyChange:function(re,te,ie){var ue=(0,o.Z)({},re,{forceUpdateRow:ie});return this._addChange(te,ue),this._updateEditButtons(),this._applyChangeCore(re,ue.forceUpdateRow)},_applyChangeCore:function(re,te){var ie=re.column.setCellValue!==re.column.defaultSetCellValue,ue=re.row;ue&&(te||ie?this._updateEditRow(ue,te,ie):ue.update&&ue.update())},_updateEditRowCore:function(re,te,ie){this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(re,te)})},_updateEditRow:function(re,te,ie){te?this._updateRowImmediately(re,te,ie):this._updateRowWithDelay(re,ie)},_updateRowImmediately:function(re,te,ie){this._updateEditRowCore(re,!te,ie),this._validateEditFormAfterUpdate(re,ie),te||this._focusEditingCell()},_updateRowWithDelay:function(re,te){var ie=new w.BH;this.addDeferred(ie),setTimeout(()=>{var ue,be=(null===(ue=this._editForm)||void 0===ue?void 0:ue.element())||this.component.$element().get(0),Ae=(0,c.Z)(I.Z.getActiveElement(be)),Ne=this._rowsView.getCellIndex(Ae,re.rowIndex),mt=Ae.get(0),tt=x.Z.getSelectionRange(mt);if(this._updateEditRowCore(re,!1,te),this._validateEditFormAfterUpdate(re,te),Ne>=0){var Le=this._rowsView._getCellElement(re.rowIndex,Ne);this._delayedInputFocus(Le,()=>{setTimeout(()=>{var gt;mt=I.Z.getActiveElement(null===(gt=this.component.$element())||void 0===gt?void 0:gt.get(0)),tt.selectionStart>=0&&x.Z.setSelectionRange(mt,tt)})})}ie.resolve()})},_validateEditFormAfterUpdate:T.ZT,_addChange:function(re,te){var ie,ue=te?.row,be=[...this.getChanges()],Ae=x.Z.getIndexByKey(re.key,be);Ae<0&&(Ae=be.length,this._addInternalData({key:re.key,oldData:re.oldData}),delete re.oldData,be.push(re));var Ne=(0,o.Z)({},be[Ae]);return Ne&&(re.data&&(Ne.data=(0,b.FL)(Ne.data,re.data)),(!Ne.type||!re.data)&&re.type&&(Ne.type=re.type),ue&&(ue.oldData=this._getOldData(ue.key),ue.data=(0,b.FL)(ue.data,re.data))),be[Ae]=Ne,this._silentOption(ze,be),te&&Ne!==(null===(ie=this.getChanges())||void 0===ie?void 0:ie[Ae])&&(te.forceUpdateRow=!0),Ne},_getFormEditItemTemplate:function(re,te){return te.editCellTemplate||this._getDefaultEditorTemplate()},getColumnTemplate:function(re){var ue,mt,te=re.column,ie=re.row&&re.row.rowIndex,be=this.isRowBasedEditMode(),Ae=this.isEditRow(ie),Ne=this.isEditCell(ie,re.columnIndex);return!(te.showEditorAlways||te.setCellValue&&(Ae&&te.allowEditing||Ne))||"data"!==re.rowType&&"detailAdaptive"!==re.rowType||te.command?"detail"===te.command&&"detail"===re.rowType&&Ae&&(ue=null==this?void 0:this.getEditFormTemplate(re)):(((this.allowUpdating(re)||Ae)&&te.allowEditing||Ne)&&(Ae||!be)&&(te.showEditorAlways&&!be&&this._isEditingStart(mt={cancel:!1,key:re.row.isNewRow?void 0:re.row.key,data:re.row.data,column:te}),(!mt||!mt.cancel)&&(re.setValue=(Le,gt)=>{this.updateFieldValue(re,Le,gt)})),ue=te.editCellTemplate||this._getDefaultEditorTemplate()),ue},_createButton:function(re,te,ie,ue){var be=oe[te.name],Ae=this.option("editing.useIcons"),Ne=this.option("useLegacyColumnButtonTemplate"),mt=(0,c.Z)("<a>").attr("href","#").addClass("dx-link").addClass(te.cssClass);if(te.template&&Ne)this._rowsView.renderTemplate(re,te.template,ie,!0);else{if(te.template)mt=(0,c.Z)("<span>").addClass(te.cssClass);else if(Ae&&be||te.icon){var tt=k.P(be=te.icon||be);"image"===tt||"svg"===tt?mt=k.H(be).addClass(te.cssClass):mt.addClass("dx-icon"+("dxIcon"===tt?"-":" ")+be).attr("title",te.text),mt.addClass("dx-link-icon"),re.addClass(K);var Le=this.getButtonLocalizationNames()[te.name];Le&&mt.attr("aria-label",S.Z.format(Le))}else mt.text(te.text);(0,p.$K)(te.hint)&&mt.attr("title",te.hint),this._isButtonDisabled(te,ie)?mt.addClass("dx-state-disabled"):(!te.template||te.onClick)&&C.Z.on(mt,(0,y.V4)("click","dxDataGridEditing"),this.createAction(function(gt){var tn;null===(tn=te.onClick)||void 0===tn||tn.call(te,(0,l.l)({},gt,{row:ie.row,column:ie.column})),gt.event.preventDefault(),gt.event.stopPropagation()})),re.append(mt,"&nbsp;"),te.template&&this._rowsView.renderTemplate(mt,te.template,(0,o.Z)({},ie,{column:void 0}),!0,ue)}},getButtonLocalizationNames:()=>({edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}),prepareButtonItem:function(re,te,ie,ue){var be=this.option("editing.texts")||{},Ne={revert:"cancel",save:"save",addRow:"addrow"}[te],mt={revert:be.cancelAllChanges,save:be.saveAllChanges,addRow:be.addRow}[te],tt=("save"===Ne||"cancel"===Ne)&&this._isEditButtonDisabled();return{widget:"dxButton",options:{onInitialized:Le=>{(0,c.Z)(Le.element).addClass(re._getToolbarButtonClass("dx-edit-button "+this.addWidgetPrefix(Ne)+"-button"))},icon:"edit-button-"+Ne,disabled:tt,onClick:()=>{setTimeout(()=>{this[ie]()})},text:mt,hint:mt},showText:"inMenu",name:te+"Button",location:"after",locateInMenu:"auto",sortIndex:ue}},prepareEditButtons:function(re){var ie=[];return(this.option("editing")||{}).allowAdding&&ie.push(this.prepareButtonItem(re,"addRow","addRow",20)),ie},highlightDataCell:function(re,te){this.shouldHighlightCell(te)&&re.addClass(ee)},_afterInsertRow:T.ZT,_beforeSaveEditData:function(re){if(re&&!(0,p.$K)(re.key)&&(0,p.$K)(re.type))return!0},_afterSaveEditData:T.ZT,_beforeCancelEditData:T.ZT,_allowEditAction:function(re,te){var ie=this.option("editing."+re);return(0,p.mf)(ie)&&(ie=ie({component:this.component,row:te.row})),ie},allowUpdating:function(re,te){var ie=this.option("editing.startEditAction")||X,ue=!(arguments.length>1)||ie===te||"down"===te;return ue&&this._allowEditAction("allowUpdating",re)},allowDeleting:function(re){return this._allowEditAction("allowDeleting",re)},isCellModified:function(re){var ie=re.row&&(re.row.isNewRow?re.row.values:re.row.modifiedValues);return!!ie&&void 0!==ie[re.columnIndex]},isNewRowInEditMode:function(){var re=this._getVisibleEditRowIndex(),te=this._dataController.items();return re>=0&&te[re].isNewRow},shouldHighlightCell:function(re){return this.isCellModified(re)&&re.column.setCellValue&&(this.getEditMode()!==R.CM||!re.row.isEditing)}};return Se}())},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(le,pe){return!pe&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(le){var te,pe=this.option(R.GG),re=le[x.Z.getIndexByKey(pe,le)];re&&(re.isEditing=!0,null===(te=this._updateEditItem)||void 0===te||te.call(this,re))},_updateItemsCore:function(le){this.callBase(le),this._updateEditRow(this.items(!0))},_applyChangeUpdate:function(le){this._updateEditRow(le.items),this.callBase(le)},_applyChangesOnly:function(le){this._updateEditRow(le.items),this.callBase(le)},_processItems:function(le,pe){return le=this._editingController.processItems(le,pe),this.callBase(le,pe)},_processDataItem:function(le,pe){return this._editingController.processDataItem(le,pe,this.generateDataValues),this.callBase(le,pe)},_processItem:function(le,pe){return(le=this.callBase(le,pe)).isNewRow&&(pe.dataIndex--,delete le.dataIndex),le},_getChangedColumnIndices:function(le,pe,Se,re){if(le.isNewRow===pe.isNewRow&&le.removed===pe.removed)return this.callBase.apply(this,arguments)},_isCellChanged:function(le,pe,Se,re,te){var ie=this.getController("editing"),ue=le.cells&&le.cells[re],be=ie&&ie.isEditCell(Se,re);return(!te||!be)&&(!(!ue||!ue.column||ue.column.showEditorAlways||ue.isEditing===be)||this.callBase.apply(this,arguments))},needToRefreshOnDataSourceChange:function(le){var pe=this.getController("editing");return!(Array.isArray(le.value)&&le.value===le.previousValue&&pe.isSaving())},_handleDataSourceChange(le){var pe=this.callBase(le),Se=this.option("editing.changes"),re=le.value;if(Array.isArray(re)&&Se.length){var te=re.map(Ae=>this.keyOf(Ae)),ie=Se.filter(Ae=>"insert"===Ae.type||te.some(Ne=>(0,T.bY)(Ae.key,Ne)));ie.length!==Se.length&&this.option("editing.changes",ie);var ue=this.option("editing.editRowKey");!ie.some(Ae=>"insert"===Ae.type&&(0,T.bY)(ue,Ae.key))&&te.every(Ae=>!(0,T.bY)(ue,Ae))&&this.option("editing.editRowKey",null)}return pe}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellIndex:function(le,pe){if(!le.is("td")&&pe>=0){var Se=this.getCellElements(pe),re=-1;return(0,s.S6)(Se,function(te,ie){(0,c.Z)(ie).find(le).length&&(re=te)}),re}return this.callBase.apply(this,arguments)},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(le){return this._editingController.getColumnTemplate(le)||this.callBase(le)},_createRow:function(le){var pe=this.callBase.apply(this,arguments);if(le){var Se=!!le.removed,re=!!le.isNewRow,te=!!le.modified;re&&pe.addClass(J),te&&pe.addClass(j),(re||Se)&&pe.removeClass(z)}return pe},_getColumnIndexByElement:function(le){for(var pe=le.closest("table"),Se=this.getTableElements();pe.length&&!Se.filter(pe).length;)le=pe.closest("td"),pe=le.closest("table");return this._getColumnIndexByElementCore(le)},_getColumnIndexByElementCore:function(le){var pe=le.closest("."+R.Ui+"> td:not(.dx-master-detail-cell)");return this.getCellIndex(pe)},_editCellByClick:function(le,pe){var Se=this._editingController,re=(0,c.Z)(le.event.target),te=this._getColumnIndexByElement(re),ie=this._dataController.items()[le.rowIndex],ue=Se.allowUpdating({row:ie},pe)||ie&&ie.isNewRow,be=this._columnsController.getVisibleColumns()[te],Ae=Se.isEditCell(le.rowIndex,te),Ne=ue&&be&&(be.allowEditing||Ae),mt=this.option("editing.startEditAction")||"click",tt=be&&be.showEditorAlways;if(Ae)return!0;if("down"===pe)return(O.Z.real().ios||O.Z.real().android)&&(0,a.M3)(),tt&&Ne&&Se.editCell(le.rowIndex,te);if("click"===pe&&"dblClick"===mt){var Le=ie?.isNewRow;Se.closeEditCell(!1,Le)}return Ne&&pe===mt?Se.editCell(le.rowIndex,te)||Se.isEditRow(le.rowIndex):void 0},_rowPointerDown:function(le){this._pointerDownTimeout=setTimeout(()=>{this._editCellByClick(le,"down")})},_rowClick:function(le){var pe=(0,c.Z)(le.rowElement).hasClass(this.addWidgetPrefix(R.kb));le.event[R._9]=this.component,!this._editCellByClick(le,"click")&&!pe&&this.callBase.apply(this,arguments)},_rowDblClick:function(le){this._editCellByClick(le,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(le,pe){var Se,re=this._editingController,te=!!pe.column.command,ie=pe.setValue,ue=re.isEditRow(pe.rowIndex),be=_e(ue,pe);if(ye(ue,pe)){var Ae=pe.column.alignment;le.toggleClass(this.addWidgetPrefix(B),!ie).toggleClass(q,!ie),Ae&&le.find(R.HJ).first().css("textAlign",Ae)}be&&this._editCellPrepared(le);var Ne=!(null===(Se=pe.column)||void 0===Se||!Se.cellTemplate);pe.column&&!te&&(!Ne||re.shouldHighlightCell(pe))&&re.highlightDataCell(le,pe),this.callBase.apply(this,arguments)},_editCellPrepared:T.ZT,_formItemPrepared:T.ZT,_getCellOptions:function(le){var pe=this.callBase(le);return pe.isEditing=this._editingController.isEditCell(pe.rowIndex,pe.columnIndex),pe},_createCell:function(le){var pe=this.callBase(le),Se=this._editingController.isEditRow(le.rowIndex);return ye(Se,le)&&pe.addClass(R.IU),pe},cellValue:function(le,pe,Se,re){var te=this.getCellOptions(le,pe);if(te){if(void 0===Se)return te.value;this._editingController.updateFieldValue(te,Se,re,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)},_renderCore:function(le){return this.callBase.apply(this,arguments),this._waitAsyncTemplates(le,!0).done(()=>{this._editingController._focusEditorIfNeed()})}},headerPanel:{_getToolbarItems:function(){var le=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(le)},optionChanged:function(le){var pe=le.fullName;switch(le.name){case"editing":pe&&![R.nK,ze,R.qw,R.GG].some(te=>te===pe)&&this._invalidate(),this.callBase(le);break;case"useLegacyColumnButtonTemplate":le.handled=!0;break;default:this.callBase(le)}},isVisible:function(){var le=this.getController("editing").option("editing");return this.callBase()||le?.allowAdding}}}}}},3098:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>W});var o=u(9904),c=u(9897),I=u(913),C=u(1828),g=u(6520),a=u(227),p=u(8690),s=u(8225),l=u(5180),d=u(4270),h=u(7674),v=u(1771),x=u(6468),b="focus-overlay",y="addrow-button",E="dx-dropdowneditor-overlay",S="dx-editor-cell",O="dx-row",T="dx-data-row",k="dx-row-removed",R="editing.editRowKey",P="editing.editColumnName",B="remove";const W={extenders:{controllers:{editing:{init:function(){var V,U,z=!this._saveEditorHandler;this.callBase.apply(this,arguments),z&&(this._pointerUpEditorHandler=()=>{var K;U=null===(K=this.getController("columnsResizer"))||void 0===K?void 0:K.isResizing()},this._pointerDownEditorHandler=K=>V=(0,o.Z)(K.target),this._saveEditorHandler=this.createAction(function(K){var Y=K.event,J=(0,o.Z)(Y.target),j=Y[x._9],ee=this.component;if((!V||!V.is("input")||V.is(J))&&this.isCellOrBatchEditMode()&&!this._editCellInProgress){var q=G(J)||G(j?.$element()),Z=j&&!j._disposed&&j!==this.component,X=!!J.closest(".".concat(this.addWidgetPrefix(y))).length,M=J.hasClass(this.addWidgetPrefix(b)),oe=this.isCellEditMode();!U&&!q&&!M&&!(X&&oe&&this.isEditing())&&((0,g.al)(J)||Z)&&this._closeEditItem.bind(this)(J)}function G(fe){if(!fe)return!1;var Te=fe.closest(".".concat(E)),Be=ee.$element();return Te.length>0&&0===Be.closest(Te).length}}),I.Z.on(c.Z.getDocument(),p.Z.up,this._pointerUpEditorHandler),I.Z.on(c.Z.getDocument(),p.Z.down,this._pointerDownEditorHandler),I.Z.on(c.Z.getDocument(),a.u,this._saveEditorHandler))},isCellEditMode:function(){return this.option("editing.mode")===x.D0},isBatchEditMode:function(){return this.option("editing.mode")===x.cP},isCellOrBatchEditMode:function(){return this.isCellEditMode()||this.isBatchEditMode()},_needToCloseEditableCell:function(z){var V=this.component.$element(),U=this.isEditing(),K=!V||!!z.closest(V).length;if(K){var Y=z.closest("."+T).length;if(Y){var J=this.getView("rowsView"),j=z.closest("."+O+"> td"),ee=J.getRowIndex(j.parent()),G=J.getCellElements(ee).index(j),q=this._columnsController.getVisibleColumns(),Z=q[G]&&q[G].allowEditing;U=U&&!Z&&!this.isEditCell(ee,G)}}return U||this.callBase.apply(this,arguments)},_closeEditItem:function(z){this._needToCloseEditableCell(z)&&this.closeEditCell()},_focusEditorIfNeed:function(){if(this._needFocusEditor&&this.isCellOrBatchEditMode()){var z,V=this._getVisibleEditColumnIndex(),U=null===(z=this._rowsView)||void 0===z?void 0:z._getCellElement(this._getVisibleEditRowIndex(),V);U&&!U.find(":focus").length?this._focusEditingCell(()=>{this._editCellInProgress=!1},U,!0):this._editCellInProgress=!1,this._needFocusEditor=!1}else this.callBase.apply(this,arguments)},isEditing:function(){if(this.isCellOrBatchEditMode()){var z=(0,C.$K)(this.option(R)),V=(0,C.$K)(this.option(P));return z&&V}return this.callBase.apply(this,arguments)},_handleEditColumnNameChange:function(z){var V=this._getVisibleEditRowIndex(z.previousValue);if(this.isCellOrBatchEditMode()&&-1!==V&&(0,C.$K)(z.value)&&z.value!==z.previousValue){var U=this._columnsController.getVisibleColumnIndex(z.value),K=this._columnsController.getVisibleColumnIndex(z.previousValue);this._editCellFromOptionChanged(U,K,V)}},_addRow:function(z,V){if(this.isCellEditMode()&&this.hasChanges()){var U=new d.BH;return this.saveEditData().done(()=>{this.hasChanges()?U.reject("cancel"):this.addRow(z).done(U.resolve).fail(U.reject)}),U.promise()}return this.callBase.apply(this,arguments)},editCell:function(z,V){return this._editCell({rowIndex:z,columnIndex:V})},_editCell:function(z){var U,V=new d.BH;return this.executeOperation(V,()=>{U=this._editCellCore(z),(0,d.gx)(U).done(V.resolve).fail(V.reject)}),void 0!==U?U:V.promise()},_editCellCore:function(z){var V=this._dataController,U=(0,C.$K)(z.oldColumnIndex)||(0,C.$K)(z.oldRowIndex),{columnIndex:K,rowIndex:Y,column:J,item:j}=this._getNormalizedEditCellOptions(z),ee={data:j?.data,cancel:!1,column:J};if(void 0!==j.key){if(J&&("data"===j.rowType||"detailAdaptive"===j.rowType)&&!j.removed&&this.isCellOrBatchEditMode()){if(!U&&this.isEditCell(Y,K))return!0;var G=Y+V.getRowIndexOffset();return(0,d.gx)(this._beforeEditCell(Y,K,j)).done(q=>{q||this._prepareEditCell(ee,j,K,G)||this._processCanceledEditingCell()})}return!1}this._dataController.fireError("E1043")},_beforeEditCell:function(z,V,U){if(this.isCellEditMode()&&!U.isNewRow&&this.hasChanges()){var K=new d.BH;return this.saveEditData().always(()=>{K.resolve(this.hasChanges())}),K}},publicMethods:function(){var z=this.callBase.apply(this,arguments);return z.concat(["editCell","closeEditCell"])},_getNormalizedEditCellOptions:function(z){var q,{oldColumnIndex:V,oldRowIndex:U,columnIndex:K,rowIndex:Y}=z,J=this._columnsController,j=J.getVisibleColumns(),G=this._dataController.items()[Y];return q=(0,C.$K)(V)?j[V]:this._getEditColumn(),(0,C.$K)(U)||(U=this._getVisibleEditRowIndex()),(0,C.HD)(K)&&(K=J.columnOption(K,"index"),K=J.getVisibleIndex(K)),{oldColumn:q,columnIndex:K,oldRowIndex:U,rowIndex:Y,column:j[K],item:G}},_prepareEditCell:function(z,V,U,K){return V.isNewRow||(z.key=V.key),!this._isEditingStart(z)&&(this._pageIndex=this._dataController.pageIndex(),this._setEditRowKey(V.key),this._setEditColumnNameByIndex(U),z.column.showEditorAlways||this._addInternalData({key:V.key,oldData:null!==(Y=V.oldData)&&void 0!==Y?Y:V.data}),!0);var Y},closeEditCell:function(z,V){var U=(0,d.gx)(),K=this._getVisibleEditRowIndex();if(this.isCellOrBatchEditMode()){var Y=new d.BH;U=new d.BH,this.executeOperation(Y,()=>{this._closeEditCellCore(z,K,V).always(U.resolve)})}return U.promise()},_closeEditCellCore:function(z,V,U){var K=this._dataController,Y=new d.BH,J=Y.promise();if(this.isCellEditMode()&&this.hasChanges()){if(!U)return this.saveEditData().done(ee=>{this.hasChanges()?Y.resolve():this.closeEditCell(!!ee).always(Y.resolve)}),J}else if(this._resetEditRowKey(),this._resetEditColumnName(),V>=0){var j=[V];this._beforeCloseEditCellInBatchMode(j),z||K.updateItems({changeType:"update",rowIndices:j})}return Y.resolve(),J},_resetModifiedClassCells:function(z){if(this.isBatchEditMode()){var V=this._columnsController.getVisibleColumns().length;z.forEach(U=>{var{key:K}=U,Y=this._dataController.getRowIndexByKey(K);if(-1!==Y)for(var J=0;J<V;J++)this._rowsView._getCellElement(Y,J).removeClass("dx-cell-modified")})}},_prepareChange:function(z,V,U){var K=(0,o.Z)(z.cellElement);return this.isBatchEditMode()&&void 0!==z.key&&this._applyModified(K,z),this.callBase.apply(this,arguments)},_cancelSaving:function(){var z=this._dataController;this.isCellOrBatchEditMode()&&(this.isBatchEditMode()&&this._resetEditIndices(),z.updateItems()),this.callBase.apply(this,arguments)},optionChanged:function(z){"editing"===z.name&&z.fullName===P?(this._handleEditColumnNameChange(z),z.handled=!0):this.callBase(z)},_editCellFromOptionChanged:function(z,V,U){var K=this._columnsController.getVisibleColumns();z>-1&&(0,h.g0)(()=>{this._repaintEditCell(K[z],K[V],U)})},_handleEditRowKeyChange:function(z){if(this.isCellOrBatchEditMode()){var Y,V=this._getVisibleEditColumnIndex(),U=this._getEditRowIndexCorrection(),K=this._dataController.getRowIndexByKey(z.previousValue)+U;(0,C.$K)(z.value)&&z.value!==z.previousValue&&(null===(Y=this._editCellFromOptionChanged)||void 0===Y||Y.call(this,V,V,K))}else this.callBase.apply(this,arguments)},deleteRow:function(z){if(this.isCellEditMode()&&this.isEditing()){var V=this._dataController.items()[z].isNewRow,U=this._dataController.getKeyByRowIndex(z);this.closeEditCell(null,V).always(()=>{z=this._dataController.getRowIndexByKey(U),this._checkAndDeleteRow(z)})}else this.callBase.apply(this,arguments)},_checkAndDeleteRow:function(z){this.isBatchEditMode()?this._deleteRowCore(z):this.callBase.apply(this,arguments)},_refreshCore:function(z){var{isPageChanged:V}=z??{},U=this.isBatchEditMode()||V&&"virtual"!==this.option("scrolling.mode");this.isCellOrBatchEditMode()?U&&(this._resetEditColumnName(),this._resetEditRowKey()):this.callBase.apply(this,arguments)},_allowRowAdding:function(z){return!!this.isBatchEditMode()||this.callBase.apply(this,arguments)},_afterDeleteRow:function(z,V){var U=this._dataController;return this.isBatchEditMode()?(U.updateItems({changeType:"update",rowIndices:[V,z]}),(new d.BH).resolve()):this.callBase.apply(this,arguments)},_updateEditRow:function(z,V,U){this.isCellOrBatchEditMode()?this._updateRowImmediately(z,V,U):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(z,V){if(this.isCellOrBatchEditMode()){var U=this.isBatchEditMode();switch(z.name){case"save":case"cancel":case"edit":return!1;case"delete":return this.callBase.apply(this,arguments)&&(!U||!V.row.removed);case"undelete":return U&&this.allowDeleting(V)&&V.row.removed;default:return this.callBase.apply(this,arguments)}}return this.callBase.apply(this,arguments)},_isRowDeleteAllowed:function(){var z=this.callBase.apply(this,arguments);return z||this.isBatchEditMode()},_beforeEndSaving:function(z){var V;this.isCellEditMode()?"update"!==(null===(V=z[0])||void 0===V?void 0:V.type)&&this.callBase.apply(this,arguments):(this.isBatchEditMode()&&this._resetModifiedClassCells(z),this.callBase.apply(this,arguments))},prepareEditButtons:function(z){var V=this.option("editing")||{},U=this.callBase.apply(this,arguments);return(V.allowUpdating||V.allowAdding||V.allowDeleting)&&this.isBatchEditMode()&&(U.push(this.prepareButtonItem(z,"save","saveEditData",21)),U.push(this.prepareButtonItem(z,"revert","cancelEditData",22))),U},_saveEditDataInner:function(){var z,J,V=this._dataController.getVisibleRows()[this.getEditRowIndex()],U=this._getEditColumn(),K=U?.showEditorAlways,Y=this.isCellEditMode()&&!(null!=V&&V.isNewRow);return Y&&K&&(J=new d.BH,this.addDeferred(J)),this.callBase.apply(this,arguments).always(null===(z=J)||void 0===z?void 0:z.resolve)},_applyChange:function(z,V,U){var K=this.isCellEditMode()&&z.row&&!z.row.isNewRow,Y=z.column.showEditorAlways,J=z.column.setCellValue!==z.column.defaultSetCellValue,j=Y&&!U&&K&&this.hasEditData()&&!this.isEditCell(z.rowIndex,z.columnIndex);return j?(this._focusEditingCell(),void this._updateEditRow(z.row,!0,J)):this.callBase.apply(this,arguments)},_applyChangeCore:function(z,V){var U=z.column.showEditorAlways,K=this.isCellEditMode()&&z.row&&!z.row.isNewRow;if(U&&!V){if(K)return this._setEditRowKey(z.row.key,!0),this._setEditColumnNameByIndex(z.columnIndex,!0),this.saveEditData();if(this.isBatchEditMode())return V=this._needUpdateRow(z.column),this.callBase(z,V)}return this.callBase.apply(this,arguments)},_processDataItemCore:function(z,V){var{data:U,type:K}=V;this.isBatchEditMode()&&K===B&&(z.data=(0,v.FL)(z.data,U)),this.callBase.apply(this,arguments)},_processRemoveCore:function(z,V,U){if(!this.isBatchEditMode()||U)return this.callBase.apply(this,arguments)},_processRemoveIfError:function(){if(!this.isBatchEditMode())return this.callBase.apply(this,arguments)},_beforeFocusElementInRow:function(z){this.callBase.apply(this,arguments);var V=z>=0?z:0,U=this.getFirstEditableColumnIndex();U>=0&&this.editCell(V,U)}}},views:{rowsView:{_createTable:function(){var z=this.callBase.apply(this,arguments),V=this._editingController;return V.isCellOrBatchEditMode()&&this.option("editing.allowUpdating")&&I.Z.on(z,(0,s.V4)(l.Z.name,"dxDataGridRowsView"),"td:not(."+S+")",this.createAction(()=>{V.isEditing()&&V.closeEditCell()})),z},_createRow:function(z){var V=this.callBase.apply(this,arguments);if(z){var U=this._editingController,K=!!z.removed;U.isBatchEditMode()&&K&&V.addClass(k)}return V}},headerPanel:{isVisible:function(){var z=this.getController("editing").option("editing");return this.callBase()||z&&(z.allowUpdating||z.allowDeleting)&&z.mode===x.cP}}}}}},6468:(Rn,he,u)=>{"use strict";u.d(he,{CM:()=>E,D0:()=>S,DZ:()=>b,EJ:()=>U,GG:()=>d,H3:()=>a,HJ:()=>x,IM:()=>R,IU:()=>o,M$:()=>p,So:()=>z,UM:()=>P,Ui:()=>c,Xt:()=>B,YI:()=>l,_9:()=>v,cP:()=>y,dl:()=>T,jq:()=>w,kb:()=>g,nK:()=>s,ol:()=>C,os:()=>W,qw:()=>h,rk:()=>k,wO:()=>V,xz:()=>O});var o="dx-editor-cell",c="dx-row",C="dx-selection",g="edit-form",a="insert",p="remove",s="editing.popup",l="editing.form",d="editing.editRowKey",h="editing.editColumnName",v="targetComponent",x="input:not([type='hidden'])",b="[tabindex], "+x,y="batch",E="row",S="cell",O="form",w="popup",T="first",k="last",R="pageBottom",P="pageTop",B="viewportBottom",W="viewportTop",z=[y,E,S,O,w],V=[E,O,w],U=[E,O]},8968:(Rn,he,u)=>{"use strict";u.d(he,{F:()=>W});var o=u(9904),c=u(913),I=u(6492),C=u(1828),g=u(2718),a=u(5873),p=u(219),s=u(2941),l=u(7449),d=u(4270),h=u(7674),v=u(6520),x=u(8487),b=u(8531),y=u(6468),S="edit-form-item",O="edit-popup",T=x.Z.IS_RENOVATED_WIDGET?"dx-scrollable":"dx-scrollable-container",B=(z,V)=>{z.forEach(U=>{U.items||U.tabs?B(U.items||U.tabs,V):V(U)})},W={extenders:{controllers:{editing:{init:function(){this._editForm=null,this._updateEditFormDeferred=null,this.callBase.apply(this,arguments)},isFormOrPopupEditMode:function(){return this.isPopupEditMode()||this.isFormEditMode()},isPopupEditMode:function(){return this.option("editing.mode")===y.jq},isFormEditMode:function(){return this.option("editing.mode")===y.xz},getFirstEditableColumnIndex:function(){var z=this._firstFormItem;if(this.isFormEditMode()&&z){var V=this.option(y.GG),U=this._dataController.getRowIndexByKey(V),K=this._rowsView.getCellElements(U);return this._rowsView._getEditFormEditorVisibleIndex(K,z.column)}return this.callBase.apply(this,arguments)},getEditFormRowIndex:function(){return this.isFormOrPopupEditMode()?this._getVisibleEditRowIndex():this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var z=this.callBase.apply(this,arguments),V=this.option("editing");return this.isFormOrPopupEditMode()&&V.allowUpdating||z},_handleDataChanged:function(z){if(this.isPopupEditMode()){var V,U,K=this.option("editing.editRowKey"),Y=null==z||null===(V=z.items)||void 0===V?void 0:V.some(j=>(0,h.bY)(j.key,K)),J=(null===(U=z.changeTypes)||void 0===U?void 0:U.length)&&z.changeTypes.every(j=>"insert"===j);("refresh"===z.changeType||Y&&z.isOptionChanged)&&!J&&this._repaintEditPopup()}this.callBase.apply(this,arguments)},getPopupContent:function(){var z,V=null===(z=this._editPopup)||void 0===z?void 0:z.option("visible");if(this.isPopupEditMode()&&V)return this._$popupContent},_showAddedRow:function(z){this.isPopupEditMode()?this._showEditPopup(z):this.callBase.apply(this,arguments)},_cancelEditDataCore:function(){this.callBase.apply(this,arguments),this.isPopupEditMode()&&this._hideEditPopup()},_updateEditRowCore:function(z,V,U){var K=this._editForm;if(this.isPopupEditMode())if(this.option("repaintChangesOnly")){var Y;null===(Y=z.update)||void 0===Y||Y.call(z,z),this._rowsView.renderDelayedTemplates()}else K&&(this._updateEditFormDeferred=(new d.BH).done(()=>K.repaint()),this._updateLockCount||this._updateEditFormDeferred.resolve());else this.callBase.apply(this,arguments)},_showEditPopup:function(z,V){var U="desktop"!==s.Z.current().deviceType,K=(0,a.l)({showTitle:!1,fullScreen:U,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:this._getCancelButtonConfig()}],contentTemplate:this._getPopupEditFormTemplate(z)},this.option(y.nK));if(!this._editPopup){var Y=(0,o.Z)("<div>").appendTo(this.component.$element()).addClass(this.addWidgetPrefix(O));this._editPopup=this._createComponent(Y,b.Z,{copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0}),this._editPopup.on("hiding",this._getEditPopupHiddenHandler()),this._editPopup.on("shown",J=>{var j;c.Z.trigger(J.component.$content().find(y.DZ).not(".".concat(T)).first(),"focus"),V&&(null===(j=this._editForm)||void 0===j||j.repaint())})}this._editPopup.option(K),this._editPopup.show(),this.callBase.apply(this,arguments)},_getPopupEditFormTemplate:function(z){var V=this.component.getVisibleRows()[z],U={row:V,values:V.values,rowType:V.rowType,key:V.key,rowIndex:z};return this._rowsView._addWatchMethod(U,V),K=>{var Y=this.getEditFormTemplate(),J=this._createComponent((0,o.Z)("<div>").appendTo(K),x.Z);this._$popupContent=(0,o.Z)(J.content()),Y(this._$popupContent,U,{isPopupForm:!0}),this._rowsView.renderDelayedTemplates()}},_repaintEditPopup:function(){var z=this._getVisibleEditRowIndex();if(z>=0){var V,U,K=null===(V=this._editPopup)||void 0===V?void 0:V.option("animation");null===(U=this._editPopup)||void 0===U||U.option("animation",null),this._showEditPopup(z,!0),void 0!==K&&this._editPopup.option("animation",K)}},_hideEditPopup:function(){var z;null===(z=this._editPopup)||void 0===z||z.option("visible",!1)},optionChanged:function(z){if("editing"===z.name&&this.isFormOrPopupEditMode()){var V=z.fullName;0===V.indexOf(y.YI)?(this._handleFormOptionChange(z),z.handled=!0):0===V.indexOf(y.nK)&&(this._handlePopupOptionChange(z),z.handled=!0)}this.callBase.apply(this,arguments)},_handleFormOptionChange:function(z){var V;if(this.isFormEditMode()){var U=this._getVisibleEditRowIndex();U>=0&&this._dataController.updateItems({changeType:"update",rowIndices:[U]})}else null!==(V=this._editPopup)&&void 0!==V&&V.option("visible")&&0===z.fullName.indexOf(y.YI)&&this._repaintEditPopup()},_handlePopupOptionChange:function(z){var V=this._editPopup;if(V){var U=z.fullName.slice(y.nK.length+1);U?V.option(U,z.value):V.option(z.value)}},renderFormEditTemplate:function(z,V,U,K,Y){var J=this,j=(0,o.Z)(K),ee=V.column,G=(z=>{var V;return z.isCustomEditorType?z.editorType:null===(V=z.column.formItem)||void 0===V?void 0:V.editorType})(V),q=z?.row.data,Z=U.component,{label:X,labelMark:M,labelMode:oe}=U.editorOptions||{},fe=(0,a.l)({},z,{data:q,cellElement:null,isOnForm:!0,item:V,id:Z.getItemID(V.name||V.dataField),column:(0,a.l)({},ee,{editorType:G,editorOptions:(0,a.l)({label:X,labelMark:M,labelMode:oe},ee.editorOptions,V.editorOptions)}),columnIndex:ee.index,setValue:!Y&&ee.allowEditing&&function(Be,ze){J.updateFieldValue(fe,Be,ze)}});fe.value=ee.calculateCellValue(q);var Te=this._getFormEditItemTemplate.bind(this)(fe,ee);return this._rowsView.renderTemplate(j,Te,fe,!!(0,v.al)(j)).done(()=>{this._rowsView._updateCell(j,fe)}),fe},getFormEditorTemplate:function(z,V){var U=this.component.columnOption(V.dataField);return(K,Y)=>{var J,j,ee=(0,o.Z)(Y);null===(J=(j=z.row).watch)||void 0===J||J.call(j,function(){return U.selector(z.row.data)},()=>{var G,q=ee.find(".dx-widget").first(),Z=q.data("dxValidator"),X=null===(G=Z)||void 0===G?void 0:G.option();ee.contents().remove(),z=this.renderFormEditTemplate.bind(this)(z,V,K,ee),Z=(q=ee.find(".dx-widget").first()).data("dxValidator"),X&&!Z&&q.dxValidator({validationRules:X.validationRules,validationGroup:X.validationGroup,dataGetter:X.dataGetter})}),z=this.renderFormEditTemplate.bind(this)(z,V,K,ee)}},getEditFormOptions:function(z){var V,U=null===(V=this._getValidationGroupsInForm)||void 0===V?void 0:V.call(this,z),K=this.option("editing.form.customizeItem"),Y=this.addWidgetPrefix(S),J=this.option("editing.form.items"),j={};if(J)B(J,G=>{var q=G?.name||G?.dataField;q&&(j[q]=!!G.editorType)});else{var ee=this.getController("columns").getColumns();J=[],(0,g.S6)(ee,function(G,q){!q.isBand&&!q.type&&J.push({column:q,name:q.name,dataField:q.dataField})})}return(0,a.l)({},U,{items:J,formID:"dx-"+new I.Z,customizeItem:G=>{var q,Z=G.name||G.dataField;if((G.column||Z)&&(q=G.column||this._columnsController.columnOption(G.name?"name:"+G.name:"dataField:"+G.dataField)),q){if(G.label=G.label||{},G.label.text=G.label.text||q.caption,"boolean"===q.dataType&&void 0===G.label.visible){var X=this.option("editing.form.labelMode");("floating"===X||"static"===X)&&(G.label.visible=!0)}G.template=G.template||this.getFormEditorTemplate(z,G),G.column=q,G.isCustomEditorType=j[Z],q.formItem&&(0,a.l)(G,q.formItem),void 0===G.isRequired&&q.validationRules&&(G.isRequired=q.validationRules.some(function(oe){return"required"===oe.type}),G.validationRules=[]);var M=!(0,C.$K)(G.visible)||G.visible;!this._firstFormItem&&M&&(this._firstFormItem=G)}K?.call(this,G),G.cssClass=(0,C.HD)(G.cssClass)?G.cssClass+" "+Y:Y}})},getEditFormTemplate:function(){return(z,V,U)=>{var K=this.option(y.YI),Y=this.getEditFormOptions(V),J=(0,o.Z)("<div>").appendTo(z),j=U?.isPopupForm;if(this._firstFormItem=void 0,j&&J.addClass(this.addWidgetPrefix("edit-popup-form")),this._editForm=this._createComponent(J,l.Z,(0,a.l)({},K,Y)),!j){var ee=(0,o.Z)("<div>").addClass(this.addWidgetPrefix("form-buttons-container")).appendTo(z);this._createComponent((0,o.Z)("<div>").appendTo(ee),p.Z,this._getSaveButtonConfig()),this._createComponent((0,o.Z)("<div>").appendTo(ee),p.Z,this._getCancelButtonConfig())}this._editForm.on("contentReady",()=>{var G;this._rowsView.renderDelayedTemplates(),null===(G=this._editPopup)||void 0===G||G.repaint()})}},getEditForm:function(){return this._editForm},_endUpdateCore:function(){var z;null===(z=this._updateEditFormDeferred)||void 0===z||z.resolve()},_beforeEndSaving:function(){var z;this.callBase.apply(this,arguments),this.isPopupEditMode()&&(null===(z=this._editPopup)||void 0===z||z.hide())},_processDataItemCore:function(z,V){var{type:U}=V;this.isPopupEditMode()&&U===y.H3&&(z.visible=!1),this.callBase.apply(this,arguments)},_editRowFromOptionChangedCore:function(z,V){var U=this.isPopupEditMode();this.callBase(z,V,U),U&&this._showEditPopup(V)}},data:{_updateEditItem:function(z){this._editingController.isFormEditMode()&&(z.rowType="detail")},_getChangedColumnIndices:function(z,V,U,K){if(!1!==K||!V.isEditing||!this._editingController.isFormEditMode())return this.callBase.apply(this,arguments)}}},views:{rowsView:{_renderCellContent:function(z,V){"data"===V.rowType&&this._editingController.isPopupEditMode()&&!1===V.row.visible||this.callBase.apply(this,arguments)},getCellElements:function(z){var V=this.callBase(z),U=this._editingController,K=U.getEditForm();return U.getEditFormRowIndex()===z&&V&&K?K.$element().find("."+this.addWidgetPrefix(S)+", .dx-button"):V},_getVisibleColumnIndex:function(z,V,U){var K=this._editingController.getEditFormRowIndex();if(K===V&&(0,C.HD)(U)){var Y=this._columnsController.columnOption(U);return this._getEditFormEditorVisibleIndex(z,Y)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(z,V){var U=-1;return(0,g.S6)(z,function(K,Y){var J=(0,o.Z)(Y).find(".dx-field-item-content").data("dx-form-item");if(null!=J&&J.column&&V&&J.column.index===V.index)return U=K,!1}),U},_isFormItem:function(z){var V="detail"===z.rowType||"detailAdaptive"===z.rowType,U="data"===z.rowType&&this._editingController.isPopupEditMode();return(V||U)&&z.item},_updateCell:function(z,V){this._isFormItem(V)?this._formItemPrepared(V,z):this.callBase(z,V)}}}}}},9057:(Rn,he,u)=>{"use strict";u.d(he,{j:()=>I});var o=u(6468),c="dx-edit-row",I={extenders:{controllers:{editing:{isRowEditMode:function(){return this.getEditMode()===o.CM},_afterCancelEditData:function(C){var g=this._dataController;this.isRowBasedEditMode()&&C>=0?g.updateItems({changeType:"update",rowIndices:[C,C+1]}):this.callBase.apply(this,arguments)},_isDefaultButtonVisible:function(C,g){var a=this.isRowBasedEditMode(),p=g.row&&g.row.rowIndex===this._getVisibleEditRowIndex();if(a)switch(C.name){case"edit":return!p&&this.allowUpdating(g);case"delete":return this.callBase.apply(this,arguments)&&!p;case"save":case"cancel":return p;default:return this.callBase.apply(this,arguments)}return this.callBase.apply(this,arguments)},isEditRow:function(C){return this.isRowBasedEditMode()&&this.isEditRowByIndex(C)},_cancelSaving:function(){this.isRowBasedEditMode()&&(this.hasChanges()||this._cancelEditDataCore()),this.callBase.apply(this,arguments)},_refreshCore:function(C){var{allowCancelEditing:g}=C??{};if(this.isRowBasedEditMode()){var a=this.getChanges().filter(p=>"update"===p.type).length>0;this.init(),g&&a&&this._cancelEditDataCore()}this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var C=this.callBase.apply(this,arguments),g=this.option("editing"),a=this.isRowEditMode(),p=g.allowUpdating||g.allowAdding;return C||a&&p},_focusEditorIfNeed:function(){var C=this.getEditMode();if(this._needFocusEditor){if(-1!==o.EJ.indexOf(C)){var g=this.getFocusedCellInRow(this._getVisibleEditRowIndex());this._delayedInputFocus(g,()=>{g&&this.component.focus(g)})}this._needFocusEditor=!1}}},data:{_getChangedColumnIndices:function(C,g,a,p){var s=this.getController("editing");if(!s.isRowBasedEditMode()||C.isEditing===g.isEditing)return this.callBase.apply(this,arguments)}}},views:{rowsView:{_createRow:function(C){var g=this.callBase.apply(this,arguments);if(C){var a=this._editingController,p=a.isEditRow(C.rowIndex);p&&(g.addClass(c),g.removeClass(o.ol),"detail"===C.rowType&&g.addClass(this.addWidgetPrefix(o.kb)))}return g},_update:function(C){this.callBase(C),"updateSelection"===C.changeType&&this.getTableElements().children("tbody").children("."+c).removeClass(o.ol)}}}}}},8543:(Rn,he,u)=>{"use strict";u.d(he,{V:()=>z});var o=u(1805),c=u(9904),I=u(9897),C=u(913),g=u(3390),a=u(227),p=u(8690),s=u(5791),l=u(8225),d=u(4722),h=u(5873),v=u(5450),x=u(5946),b=u(2879),E="dx-cell-focus-disabled",S="focus-overlay",w="dx-focused",k="dxDataGridEditorFactory",R=(0,l.V4)([p.Z.down,"focusin",a.u].join(" "),k),P="dx-hidden",z={defaultOptions:function(){return{}},controllers:{editorFactory:g.Z.ViewController.inherit({_getFocusedElement:function(V){var U=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",K="td[tabindex]:focus, ".concat(U,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus, .dx-dropdownbutton .dx-buttongroup:focus, .dx-adaptive-item-text:focus"),Y=V.find(K);return this.elementIsInsideGrid(Y)&&Y},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var U,K,V=this.component&&this.component.$element();if(V){var Y=this._getFocusedElement(V);if(Y&&Y.length&&(!Y.hasClass(E)&&!Y.hasClass("dx-row")&&(K=(U=Y.closest(this._getFocusCellSelector()+", ."+E)).get(0)!==Y.get(0)&&U.hasClass("dx-editor-inline-block"),Y=U),Y.length&&!Y.hasClass(E)))return void this.focus(Y,K)}this.loseFocus()},_updateFocus:function(V){var U=this,K=V&&V.event&&(0,c.Z)(V.event.target).hasClass(U.addWidgetPrefix(S));U._isFocusOverlay=U._isFocusOverlay||K,clearTimeout(U._updateFocusTimeoutID),U._updateFocusTimeoutID=setTimeout(function(){delete U._updateFocusTimeoutID,U._isFocusOverlay||U._updateFocusCore(),U._isFocusOverlay=!1})},_updateFocusOverlaySize:function(V,U){V.hide();var K=s.Z.calculate(V,(0,h.l)({collision:"fit"},U));K.h.oversize>0&&(0,o.Ns)(V,(0,o.Y_)(V)-K.h.oversize),K.v.oversize>0&&(0,o.qt)(V,(0,o.zp)(V)-K.v.oversize),V.show()},callbackNames:function(){return["focused"]},focus:function(V,U){var K=this;if(void 0===V)return K._$focusedElement;V&&(V.is(K._$focusedElement)||K._$focusedElement&&K._$focusedElement.removeClass(w),K._$focusedElement=V,clearTimeout(K._focusTimeoutID),K._focusTimeoutID=setTimeout(function(){delete K._focusTimeoutID,K.renderFocusOverlay(V,U),V.addClass(w),K.focused.fire(V)}))},refocus:function(){var V=this.focus();this.focus(V)},renderFocusOverlay:function(V,U){if(b.Z.isElementInCurrentGrid(this,V))if(this._$focusOverlay||(this._$focusOverlay=(0,c.Z)("<div>").addClass(this.addWidgetPrefix(S))),U)this._$focusOverlay.addClass(P);else if(V.length){var K=d.Z.mozilla?"right bottom":"left top",Y=V.closest("."+this.addWidgetPrefix("content")),J=(0,v.l)(V.get(0));this._$focusOverlay.removeClass(P).appendTo(Y),(0,o.qt)(this._$focusOverlay,J.bottom-J.top+1),(0,o.Ns)(this._$focusOverlay,J.right-J.left+1);var j={precise:!0,my:K,at:K,of:V,boundary:Y.length&&Y};this._updateFocusOverlaySize(this._$focusOverlay,j),s.Z.setup(this._$focusOverlay,j),this._$focusOverlay.css("visibility","visible")}},resize:function(){var V=this._$focusedElement;V&&this.focus(V)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass(w),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass(P)},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),C.Z.on(this._getContainerRoot(),R,this._updateFocusHandler),this._attachContainerEventHandlers()},_getContainerRoot:function(){var V,U=null===(V=this.component)||void 0===V?void 0:V.$element(),K=I.Z.getRootNode(U?.get(0));return K.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||K.host?K:I.Z.getDocument()},_attachContainerEventHandlers:function(){var V=this,U=V.component&&V.component.$element();U&&C.Z.on(U,(0,l.V4)("keydown",k),function(K){"tab"===(0,l.EV)(K)&&V._updateFocusHandler(K)})},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),C.Z.off(this._getContainerRoot(),R,this._updateFocusHandler)}}).include(x.Z)}}},3979:(Rn,he,u)=>{"use strict";u.d(he,{M:()=>h});var o=u(9904),c=u(913),I=u(227),C=u(2718),g=u(3390),a="dx-error-row",p="dx-error-message",h={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:g.Z.ViewController.inherit({init:function(){this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")},_createErrorRow:function(v,x){var y,E,b=this,S=this._renderErrorMessage(v);return x?(y=(0,o.Z)("<tr>").addClass(a),E=(0,o.Z)("<div>").addClass("dx-closebutton").addClass(b.addWidgetPrefix("action")),c.Z.on(E,I.u,b.createAction(function(O){var T,w=O.event,k=(0,o.Z)(w.currentTarget).closest("."+a).index();w.stopPropagation(),(0,C.S6)(x,function(R,P){T=(0,o.Z)(P).children("tbody").children("tr").eq(k),b.removeErrorRow(T)}),b.getController("resizing")&&b.getController("resizing").fireContentReadyAction()})),(0,o.Z)("<td>").attr({colSpan:b.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(E).append(S).appendTo(y),y):S},_renderErrorMessage:function(v){var x=v.url?v.message.replace(v.url,""):v.message||v,b=(0,o.Z)("<div>").addClass(p).text(x);return v.url&&(0,o.Z)("<a>").attr("href",v.url).text(v.url).appendTo(b),b},renderErrorRow:function(v,x,b){var E,S,y=this;if(b)return b.find("."+p).remove(),E=y._createErrorRow(v),b.prepend(E),E;var O=x>=0||!y._columnHeadersView.isVisible()?y._rowsView:y._columnHeadersView,w=O.getTableElements();(0,C.S6)(w,function(k,R){if(E=y._createErrorRow(v,w),S=S||E,x>=0){var P=O._getRowElements((0,o.Z)(R)).eq(x);y.removeErrorRow(P.next()),E.insertAfter(P)}else{var B=(0,o.Z)(R).children("tbody"),W=B.children("tr");y._columnHeadersView.isVisible()?(y.removeErrorRow(W.last()),(0,o.Z)(R).append(E)):(y.removeErrorRow(W.first()),B.first().prepend(E))}});var T=y.getController("resizing");return T&&T.fireContentReadyAction(),S},removeErrorRow:function(v){if(!v){var x=this._columnHeadersView&&this._columnHeadersView.element();if(!(v=x&&x.find("."+a))||!v.length){var b=this._rowsView.element();v=b&&b.find("."+a)}}v&&v.hasClass(a)&&v.remove()},optionChanged:function(v){"errorRowEnabled"===v.name?v.handled=!0:this.callBase(v)}})},extenders:{controllers:{data:{init:function(){var v=this,x=v.getController("errorHandling");v.callBase(),v.dataErrorOccurred.add(function(b,y){v.option("errorRowEnabled")&&x.renderErrorRow(b,void 0,y)}),v.changed.add(function(b){if(!b||"loadError"!==b.changeType){var y=v.getController("errorHandling"),E=v.getController("editing");E&&!E.hasChanges()&&y&&y.removeErrorRow()}})}}}}}},6314:(Rn,he,u)=>{"use strict";u.d(he,{$:()=>c});var o=u(5873);function c(I,C){for(var g=x=>x||1,a=[],p=(I[0]||[]).reduce((x,b)=>x+g(b.colspan),0),s=(x=>{var b=0,y=0;return()=>{var E=x[b]||[],S=E[y++];return y>=E.length&&(b++,y=0),S&&(S.colspan=g(S.colspan),S.rowspan=g(S.rowspan)),S}})(I),l=(x,b,y)=>{if((a[x]=a[x]||[])[b]=y,y.colspan>1||y.rowspan>1){for(var S=(0,o.l)({},y,C),O=1;O<y.colspan;O++)l(x,b+O,S);for(var w=1;w<y.rowspan;w++)for(var T=0;T<y.colspan;T++)l(x+w,b+T,S)}},d=s(),h=0;d;){for(var v=0;v<p&&d;v++)a[h]&&a[h][v]||(l(h,v,d),v+=d.colspan-1,d=s());h++}return a}},7963:(Rn,he,u)=>{"use strict";u.d(he,{z:()=>d});var o=u(9904),c=u(3390),I=u(5873),C=u(4554),g=u(9009),a=u(3862),p=u(8531),s=u(2559),d={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:g.Z.format("dxFilterBuilder-and"),or:g.Z.format("dxFilterBuilder-or"),notAnd:g.Z.format("dxFilterBuilder-notAnd"),notOr:g.Z.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:g.Z.format("dxFilterBuilder-filterOperationBetween"),equal:g.Z.format("dxFilterBuilder-filterOperationEquals"),notEqual:g.Z.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:g.Z.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:g.Z.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:g.Z.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:g.Z.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:g.Z.format("dxFilterBuilder-filterOperationStartsWith"),contains:g.Z.format("dxFilterBuilder-filterOperationContains"),notContains:g.Z.format("dxFilterBuilder-filterOperationNotContains"),endsWith:g.Z.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:g.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:g.Z.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:c.Z.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var h=this;h._disposePopup(),h._filterBuilderPopup=h._createComponent(h.element(),p.Z,(0,I.l)({title:g.Z.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(v){return h._getPopupContentTemplate(v)},onOptionChanged:function(v){"visible"===v.name&&h.option("filterBuilderPopup.visible",v.value)},toolbarItems:h._getPopupToolbarItems()},h.option("filterBuilderPopup"),{onHidden:function(v){(0,s.vg)(h),h._disposePopup()}}))},_getPopupContentTemplate:function(h){var v=(0,o.Z)(h),x=(0,o.Z)("<div>").appendTo((0,o.Z)(h));this._filterBuilder=this._createComponent(x,C.Z,(0,I.l)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(v,a.Z,{direction:"both"})},_getPopupToolbarItems:function(){var h=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:g.Z.format("OK"),onClick:function(v){var x=h._filterBuilder.option("value");h.option("filterValue",x),h._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:g.Z.format("Cancel"),onClick:function(v){h._filterBuilderPopup.hide()}}}]},optionChanged:function(h){switch(h.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),h.handled=!0;break;default:this.callBase(h)}}})}}},9624:(Rn,he,u)=>{"use strict";u.d(he,{o:()=>w});var o=u(9904),c=u(1828),I=u(3390),C=u(2879),g=u(913),a=u(9009),p=u(344),s=u(8507),l=u(4270),d=u(7981),h=u(2127),v="filter-panel",x=v+"-text",b=v+"-checkbox",y=v+"-clear-filter",E=v+"-left",w={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:a.Z.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:a.Z.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:a.Z.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:I.Z.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){this.getController("data").dataSourceChanged.add(()=>this.render())},_renderCore:function(){var T=this.element();T.empty().addClass(this.addWidgetPrefix(v));var k=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(E)).appendTo(T);this.option("filterValue")||this._filterValueBuffer?(k.append(this._getCheckElement()).append(this._getFilterElement()).append(this._getTextElement()),T.append(this._getRemoveButtonElement())):k.append(this._getFilterElement()).append(this._getTextElement())},_getCheckElement:function(){var T=this,k=(0,o.Z)("<div>").addClass(this.addWidgetPrefix(b));return T._createComponent(k,p.Z,{value:T.option("filterPanel.filterEnabled"),onValueChanged:function(R){T.option("filterPanel.filterEnabled",R.value)}}),k.attr("title",this.option("filterPanel.texts.filterEnabledHint")),k},_getFilterElement:function(){var T=this,k=(0,o.Z)("<div>").addClass("dx-icon-filter");return g.Z.on(k,"click",()=>T._showFilterBuilder()),(0,h.Y)("filterPanel",T,k,void 0,()=>T._showFilterBuilder()),T._addTabIndexToElement(k),k},_getTextElement:function(){var R,T=this,k=(0,o.Z)("<div>").addClass(T.addWidgetPrefix(x)),P=T.option("filterValue");return P?(0,l.gx)(T.getFilterText(P,T.getController("filterSync").getCustomFilterOperations())).done(function(B){var W=T.option("filterPanel.customizeText");if(W){var z=W({component:T.component,filterValue:P,text:B});"string"==typeof z&&(B=z)}k.text(B)}):(R=T.option("filterPanel.texts.createFilter"),k.text(R)),g.Z.on(k,"click",()=>T._showFilterBuilder()),(0,h.Y)("filterPanel",T,k,void 0,()=>T._showFilterBuilder()),T._addTabIndexToElement(k),k},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var T=this,k=()=>T.option("filterValue",null),R=(0,o.Z)("<div>").addClass(T.addWidgetPrefix(y)).text(T.option("filterPanel.texts.clearFilter"));return g.Z.on(R,"click",k),(0,h.Y)("filterPanel",this,R,void 0,k),T._addTabIndexToElement(R),R},_addTabIndexToElement:function(T){if(!this.option("useLegacyKeyboardNavigation")){var k=this.option("tabindex")||0;T.attr("tabindex",k)}},optionChanged:function(T){switch(T.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),T.handled=!0;break;case"filterPanel":this._invalidate(),T.handled=!0;break;default:this.callBase(T)}},_getConditionText:function(T,k,R){var P="[".concat(T,"] ").concat(k);return(0,c.$K)(R)&&(P+=R),P},_getValueMaskedText:function(T){return Array.isArray(T)?"('".concat(T.join("', '"),"')"):" '".concat(T,"'")},_getValueText:function(T,k,R){var P=new l.BH,B=k&&k.customizeText;if((0,c.$K)(R)||B)if(!B&&T.lookup)(0,s.W2)(T,R,z=>{P.resolve(this._getValueMaskedText(z))});else{var W=Array.isArray(R)?R:C.Z.getDisplayValue(T,R);(0,l.gx)((0,s.fQ)(T,W,k,"filterPanel")).done(z=>{P.resolve(this._getValueMaskedText(z))})}else P.resolve("");return P.promise()},getConditionText:function(T,k){var z,R=this,P=T[1],B=new l.BH,W=(0,s.tt)(k.customOperations,P),V=(0,s.rz)(T[0],k.columns),U=V.caption||"",K=T[2];return z=W?W.caption||(0,d.GK)(W.name):(0,s.uL)(null===K?"="===P?"isblank":"isnotblank":P,k.filterOperationDescriptions),this._getValueText(V,W,K).done(Y=>{B.resolve(R._getConditionText(U,z,Y))}),B},getGroupText:function(T,k,R){var P=this,B=new l.BH,W=[],z=(0,s.Uc)(T);return T.forEach(V=>{(0,s.T5)(V)?W.push(P.getConditionText(V,k)):(0,s.ty)(V)&&W.push(P.getGroupText(V,k,!0))}),l.gx.apply(this,W).done(function(){for(var V,U=arguments.length,K=new Array(U),Y=0;Y<U;Y++)K[Y]=arguments[Y];if("!"===z[0]){var J=k.groupOperationDescriptions["not"+z.substring(1,2).toUpperCase()+z.substring(2)].split(" ");V="".concat(J[0]," ").concat(K[0])}else V=K.join(" ".concat(k.groupOperationDescriptions[z]," "));R&&(V="(".concat(V,")")),B.resolve(V)}),B},getFilterText:function(T,k){var R={customOperations:k,columns:this.getController("columns").getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return(0,s.T5)(T)?this.getConditionText(T,R):this.getGroupText(T,R)}})},extenders:{controllers:{data:{optionChanged:function(T){"filterPanel"===T.name?(this._applyFilter(),T.handled=!0):this.callBase(T)}}}}}},275:(Rn,he,u)=>{"use strict";u.d(he,{b:()=>ze});var o=u(4817),c=u(1805),I=u(9904),C=u(913),g=u(1828),a=u(5873),p=u(8225),s=u(2718),l=u(3390),d=u(2879),h=u(9009),v=u(1031),x=u(3576),b=u(9998),y=u(2559),E=u(7674),S={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},O={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},k="filter-row",R="filter-range-overlay",P="filter-range-start",W="dx-menu",z="dx-editor-with-menu",V="dx-editor-container",U="dx-editor-cell",J="dx-highlight-outline",j="dx-focused",G="dx-filter-range-content",q="dx-filter-modified",Z="input:not([type='hidden'])",X=["date","datetime","number"];function M(ae){return"onClick"===ae.option("filterRow.applyFilter")}var oe=function(ae){var _e=ae&&ae.children(),ye=_e&&_e.data("dxComponents"),ne=ye&&ye.length&&_e.data(ye[0]);if(ne instanceof v.Z)return ne},fe=function(){var ae=function(le,pe){var Se="",re="",te=_e(le,pe),ie=d.Z.getFormatOptionsByColumn(pe,"filterRow");return Array.isArray(te)?(Se=d.Z.formatValue(te[0],ie),""!==(re=d.Z.formatValue(te[1],ie))&&(Se+=" - "+re)):(0,g.$K)(te)&&(Se=d.Z.formatValue(te,ie)),Se};function _e(le,pe){if(pe)return M(le)&&void 0!==pe.bufferedFilterValue?pe.bufferedFilterValue:pe.filterValue}var ye=function(le,pe){if(pe)return M(le)&&void 0!==pe.bufferedSelectedFilterOperation?pe.bufferedSelectedFilterOperation:pe.selectedFilterOperation},ne=function(le,pe,Se){var be,Ae,re=le._columnsController.columnOption(pe),te=_e(le,re),ie=Se.closest("."+le.addWidgetPrefix(R)).length,ue=Se.hasClass(le.addWidgetPrefix(P));return te&&Array.isArray(te)&&"between"===ye(le,re)?ue?te[0]:te[1]:ie||(be=te,(Ae=re)&&X.indexOf(Ae.dataType)>=0&&Array.isArray(be)||void 0===be)?null:te};return{_updateEditorValue:function(le,pe){var Se=oe(pe);Se&&Se.option("value",ne(this,le.index,pe))},_columnOptionChanged:function(le){var Se,re,te,ie,pe=le.optionNames;if(d.Z.checkChanges(pe,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation","filterValues","filterType"])&&void 0!==le.columnIndex){var ue=this._columnsController.getVisibleIndex(le.columnIndex),be=this._columnsController.columnOption(le.columnIndex);if(re=(Se=this._getCellElement(this.element().find("."+this.addWidgetPrefix(k)).index(),ue)||(0,I.Z)()).find("."+V).first(),pe.filterValue||pe.bufferedFilterValue){this._updateEditorValue(be,re);var Ae=Se.find("."+this.addWidgetPrefix(R)).data("dxOverlay");Ae&&(te=Ae.$content().find("."+V),this._updateEditorValue(be,te.first()),this._updateEditorValue(be,te.last())),(!Ae||!Ae.option("visible"))&&this._updateFilterRangeContent(Se,ae(this,be))}(pe.selectedFilterOperation||pe.bufferedSelectedFilterOperation)&&ue>=0&&be&&(ie=Se.find("."+W)).length&&(this._updateFilterOperationChooser(ie,be,re),"between"===ye(this,be)?this._renderFilterRangeContent(Se,be):re.find("."+G).length&&(this._renderEditor(re,this._getEditorOptions(re,be)),this._hideFilterRange()))}else this.callBase(le)},_renderCore:function(){return this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(le,pe){var Se=this,re={},te=le.find(".dx-editor-container"),ie=(0,I.Z)("<div>").addClass(Se.addWidgetPrefix(R)).appendTo(le);return Se._createComponent(ie,x.Z,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,hideOnOutsideClick:!0,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,animation:!1,position:{my:"top",at:"top",of:te.length&&te||le,offset:"0 -1"},contentTemplate:function(ue){var be,Ae=(0,I.Z)("<div>").addClass(V+" "+Se.addWidgetPrefix(P)).appendTo(ue);return pe=Se._columnsController.columnOption(pe.index),(be=Se._getEditorOptions(Ae,pe)).sharedData=re,Se._renderEditor(Ae,be),C.Z.on(Ae.find(Z),"keydown",function(Ne){var mt=le.find("[tabindex]").not(Ne.target).first();"tab"===(0,p.EV)(Ne)&&Ne.shiftKey&&(Ne.preventDefault(),Se._hideFilterRange(),mt.length||(mt=le.prev().find("[tabindex]").last()),C.Z.trigger(mt,"focus"))}),Ae=(0,I.Z)("<div>").addClass(V+" "+Se.addWidgetPrefix("filter-range-end")).appendTo(ue),(be=Se._getEditorOptions(Ae,pe)).sharedData=re,Se._renderEditor(Ae,be),C.Z.on(Ae.find(Z),"keydown",function(Ne){"tab"===(0,p.EV)(Ne)&&!Ne.shiftKey&&(Ne.preventDefault(),Se._hideFilterRange(),C.Z.trigger(le.next().find("[tabindex]").first(),"focus"))}),(0,I.Z)(ue).addClass(Se.getWidgetContainerClass())},onShown:function(ue){var be=ue.component.$content().find("."+V).first();C.Z.trigger(be.find(Z),"focus")},onHidden:function(){pe=Se._columnsController.columnOption(pe.index),le.find("."+W).parent().addClass(z),"between"===ye(Se,pe)&&(Se._updateFilterRangeContent(le,ae(Se,pe)),Se.component.updateDimensions())}})},_updateFilterRangeOverlay:function(le){var pe=this._filterRangeOverlayInstance;pe&&pe.option(le)},_showFilterRange:function(le,pe){var Se=le.children("."+this.addWidgetPrefix(R)),re=Se.length&&Se.data("dxOverlay");!re&&pe&&(re=this._initFilterRangeOverlay(le,pe)),re.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=re,this._updateFilterRangeOverlay({width:(0,c.Y_)(le,!0)+1}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var le=this._filterRangeOverlayInstance;le&&le.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(le){var pe=this.callBase(le);return"filter"===le.rowType&&(pe.addClass(this.addWidgetPrefix(k)),this.option("useLegacyKeyboardNavigation")||C.Z.on(pe,"keydown",Se=>(0,y.fv)("filterRow",this,Se))),pe},_getRows:function(){var le=this.callBase();return this.isFilterRowVisible()&&le.push({rowType:"filter"}),le},_renderFilterCell:function(le,pe){var Se=pe.column,re=(0,I.Z)(le);this.component.option("showColumnHeaders")&&this.setAria("describedby",Se.headerId,re),this.setAria("label",h.Z.format("dxDataGrid-ariaFilterCell"),re),re.addClass(U);var te=(0,I.Z)("<div>").appendTo(re),ie=(0,I.Z)("<div>").addClass(V).appendTo(te);if("between"===ye(this,Se))this._renderFilterRangeContent(re,Se);else{var ue=this._getEditorOptions(ie,Se);this._renderEditor(ie,ue)}var be=Se.alignment;be&&"center"!==be&&re.find(Z).first().css("textAlign",Se.alignment),Se.filterOperations&&Se.filterOperations.length&&this._renderFilterOperationChooser(te,Se,ie)},_renderCellContent:function(le,pe){var Se=this,re=pe.column;if("filter"===pe.rowType)if(re.command)le.html("&nbsp;");else if(re.allowFiltering)return void Se.renderTemplate(le,Se._renderFilterCell.bind(Se),pe).done(()=>{Se._updateCell(le,pe)});this.callBase.apply(this,arguments)},_getEditorOptions:function(le,pe){var Se=this,re={editorOptions:{inputAttr:Se._getFilterInputAccessibilityAttributes(pe)}},te=(0,a.l)(re,pe,{value:ne(Se,pe.index,le),parentType:"filterRow",showAllText:Se.option("filterRow.showAllText"),updateValueTimeout:"onClick"===Se.option("filterRow.applyFilter")?0:700,width:null,setValue:function(ie,ue){!function(le,pe){var Se=""===pe.value?null:pe.value,re=pe.container,te=le._columnsController.columnOption(pe.column.index),ie=ne(le,te.index,re);if((0,g.$K)(ie)||(0,g.$K)(Se)){le._applyFilterViewController.setHighLight(re,ie!==Se);var ue=M(le)?"bufferedFilterValue":"filterValue",be=function(mt,tt,Le,gt){if("between"===ye(mt,Le)){var tn=_e(mt,Le);return gt.hasClass(mt.addWidgetPrefix(P))?[tt,Array.isArray(tn)?tn[1]:void 0]:[Array.isArray(tn)?tn[0]:tn,tt]}return tt}(le,Se,te,re),Ae="between"===ye(le,te),Ne=pe.notFireEvent||Ae&&Array.isArray(be)&&be.indexOf(void 0)>=0;le._columnsController.columnOption(te.index,ue,be,Ne)}}(Se,{column:pe,value:ie,container:le,notFireEvent:ue})}});return"between"===ye(Se,pe)&&(te.placeholder=le.hasClass(Se.addWidgetPrefix(P))?Se.option("filterRow.betweenStartText"):Se.option("filterRow.betweenEndText")),te},_getFilterInputAccessibilityAttributes:function(le){var pe=h.Z.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":pe,"aria-describedby":le.headerId}:{"aria-label":pe}},_renderEditor:function(le,pe){le.empty();var Se=(0,I.Z)("<div>").appendTo(le),re=this.getController("editorFactory"),te=this.getController("data").dataSource(),ie=this.getController("applyFilter");if(pe.lookup&&this.option("syncLookupFilterValues")){ie.setCurrentColumnForFiltering(pe);var ue=this.getController("data").getCombinedFilter();ie.setCurrentColumnForFiltering(null);var be=d.Z.getWrappedLookupDataSource(pe,te,ue),Ae=(0,o.Z)({},pe,{lookup:(0,o.Z)({},pe.lookup,{dataSource:be})});return re.createEditor(Se,Ae)}return re.createEditor(Se,pe)},_renderFilterRangeContent:function(le,pe){var Se=this,re=le.find("."+V).first();re.empty();var te=(0,I.Z)("<div>").addClass(G).attr("tabindex",this.option("tabIndex"));C.Z.on(te,"focusin",function(){Se._showFilterRange(le,pe)}),te.appendTo(re),Se._updateFilterRangeContent(le,ae(Se,pe))},_updateFilterRangeContent:function(le,pe){var Se=le.find("."+G);Se.length&&(""===pe?Se.html("&nbsp;"):Se.text(pe))},_updateFilterOperationChooser:function(le,pe,Se){var te,re=this,ie=function(){var ue=b.Z.getInstance(le);ue&&ue.option("focusedElement",null),te&&re._focusEditor(Se)};re._createComponent(le,b.Z,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:re.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!(pe.filterOperations&&pe.filterOperations.length),icon:S[ye(re,pe)||"default"],selectable:!1,items:re._getFilterOperationMenuItems(pe)}],onItemClick:function(ue){var be=ue.itemData.name,Ae=ye(re,pe),Ne=!1,mt=M(re),tt={};if(!(ue.itemData.items||be&&be===Ae)){if(be?(tt[mt?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=be,("between"===be||"between"===Ae)&&(Ne="between"===be,tt[mt?"bufferedFilterValue":"filterValue"]=null)):(tt[mt?"bufferedFilterValue":"filterValue"]=null,tt[mt?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=pe.defaultSelectedFilterOperation||null),re._columnsController.columnOption(pe.index,tt),re._applyFilterViewController.setHighLight(Se,!0),!be){var Le=oe(Se);Le&&"dxDateBox"===Le.NAME&&!Le.option("isValid")&&(Le.reset(),Le.option("isValid",!0))}Ne?re._showFilterRange(Se.closest("."+U),pe):re._focusEditor(Se)}},onSubmenuShowing:function(){te=re._isEditorFocused(Se),re.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){C.Z.trigger(le,"blur"),ie()},onContentReady:function(ue){C.Z.on(le,"blur",()=>{ue.component._hideSubmenuAfterTimeout(),ie()})},rtlEnabled:re.option("rtlEnabled")})},_isEditorFocused:function(le){return le.hasClass(j)||le.parents("."+j).length},_focusEditor:function(le){this.getController("editorFactory").focus(le),C.Z.trigger(le.find(Z),"focus")},_renderFilterOperationChooser:function(le,pe,Se){var re;this.option("filterRow.showOperationChooser")&&(le.addClass(z),re=(0,I.Z)("<div>").prependTo(le),this._updateFilterOperationChooser(re,pe,Se))},_getFilterOperationMenuItems:function(le){var pe=this,Se=[{}],re=pe.option("filterRow"),te=re&&re.operationDescriptions||{};if(le.filterOperations&&le.filterOperations.length){var ie=le.filterOperations.filter(function(ue){return(0,g.$K)(O[ue])});(Se=(0,s.UI)(ie,function(ue){var be=O[ue];return{name:ue,selected:(ye(pe,le)||le.defaultFilterOperation)===ue,text:te[be],icon:S[ue]}})).push({name:null,text:re&&re.resetOperationText,icon:S.default})}return Se},_handleDataChanged:function(le){var pe,Se,re;this.callBase.apply(this,arguments),(null!==(pe=le.operationTypes)&&void 0!==pe&&pe.filtering||null!==(Se=le.operationTypes)&&void 0!==Se&&Se.fullReload)&&this.updateLookupDataSource(null===(re=le.operationTypes)||void 0===re?void 0:re.filtering)},updateLookupDataSource:function(le){if(this.option("syncLookupFilterValues")&&this.element()){var pe=this._columnsController.getVisibleColumns(),Se=this._dataController.dataSource(),re=this._applyFilterViewController,te=this.element().find("."+this.addWidgetPrefix(k)).index();-1!==te&&pe.forEach((ie,ue)=>{if(ie.lookup&&ie.calculateCellValue===ie.defaultCalculateCellValue){var be=this._getCellElement(te,ue),Ae=oe(be?.find(".dx-editor-container"));if(Ae){re.setCurrentColumnForFiltering(ie);var Ne=this._dataController.getCombinedFilter()||null;re.setCurrentColumnForFiltering(null);var mt=Ae.option("dataSource");if(!le||!(0,E.bY)(mt.__dataGridSourceFilter,Ne)){var Le=d.Z.getWrappedLookupDataSource(ie,Se,Ne);Ae.option("dataSource",Le)}}}})}},optionChanged:function(le){switch(le.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),le.handled=!0;break;case"syncLookupFilterValues":le.value?this.updateLookupDataSource():this.render(),le.handled=!0;break;default:this.callBase(le)}}}}(),Te={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var ae=[this.callBase()],_e=this._columnsController.getVisibleColumns(null,!0),ye=this.getController("applyFilter");return(0,s.S6)(_e,function(){var ne,ce=(null===(ne=ye.getCurrentColumnForFiltering())||void 0===ne?void 0:ne.index)===this.index;if(this.allowFiltering&&this.calculateFilterExpression&&(0,g.$K)(this.filterValue)&&!ce){var le=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");ae.push(le)}}),d.Z.combineFilters(ae)}},ze={defaultOptions:function(){return{syncLookupFilterValues:!0,filterRow:{visible:!1,showOperationChooser:!0,showAllText:h.Z.format("dxDataGrid-filterRowShowAllText"),resetOperationText:h.Z.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:h.Z.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:h.Z.format("dxDataGrid-filterRowOperationEquals"),notEqual:h.Z.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:h.Z.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:h.Z.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:h.Z.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:h.Z.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:h.Z.format("dxDataGrid-filterRowOperationStartsWith"),contains:h.Z.format("dxDataGrid-filterRowOperationContains"),notContains:h.Z.format("dxDataGrid-filterRowOperationNotContains"),endsWith:h.Z.format("dxDataGrid-filterRowOperationEndsWith"),between:h.Z.format("dxDataGrid-filterRowOperationBetween"),isBlank:h.Z.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:h.Z.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:h.Z.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:h.Z.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:l.Z.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(ae,_e){M(this)&&(ae&&ae.toggleClass(J,_e)&&ae.closest("."+U).toggleClass(q,_e),this._getHeaderPanel().enableApplyButton(_e))},applyFilter:function(){var ae=this.getController("columns"),_e=ae.getColumns();ae.beginUpdate();for(var ye=0;ye<_e.length;ye++){var ne=_e[ye];void 0!==ne.bufferedFilterValue&&(ae.columnOption(ye,"filterValue",ne.bufferedFilterValue),ne.bufferedFilterValue=void 0),void 0!==ne.bufferedSelectedFilterOperation&&(ae.columnOption(ye,"selectedFilterOperation",ne.bufferedSelectedFilterOperation),ne.bufferedSelectedFilterOperation=void 0)}ae.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(M(this)){var ae=this.getView("columnHeadersView").element();ae.find("."+this.addWidgetPrefix(k)+" ."+J).removeClass(J),ae.find("."+this.addWidgetPrefix(k)+" ."+q).removeClass(q),this._getHeaderPanel().enableApplyButton(!1)}},setCurrentColumnForFiltering:function(ae){this._currentColumn=ae},getCurrentColumnForFiltering:function(){return this._currentColumn}})},extenders:{controllers:{data:Te,columnsResizer:{_startResizing:function(){var ae=this;if(ae.callBase.apply(ae,arguments),ae.isResizing()){var _e=ae._columnHeadersView.getFilterRangeOverlayInstance();if(_e){var ye=_e.$element().closest("td").index();(ye===ae._targetPoint.columnIndex||ye===ae._targetPoint.columnIndex+1)&&_e.$content().hide()}}},_endResizing:function(){var _e,ae=this;if(ae.isResizing()){var ye=ae._columnHeadersView.getFilterRangeOverlayInstance();ye&&(_e=ye.$element().closest("td"),ae._columnHeadersView._updateFilterRangeOverlay({width:(0,c.Y_)(_e,!0)+1}),ye.$content().show())}ae.callBase.apply(ae,arguments)}},editing:{updateFieldValue(ae){return ae.column.lookup&&(this._needUpdateLookupDataSource=!0),this.callBase.apply(this,arguments)},_afterSaveEditData(ae){var _e;return this._needUpdateLookupDataSource&&!ae&&(null===(_e=this.getView("columnHeadersView"))||void 0===_e||_e.updateLookupDataSource()),this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)},_afterCancelEditData(){return this._needUpdateLookupDataSource=!1,this.callBase.apply(this,arguments)}}},views:{columnHeadersView:fe,headerPanel:{_getToolbarItems:function(){var ae=this.callBase();return this._prepareFilterItem(ae).concat(ae)},_prepareFilterItem:function(){var ae=this,_e=[];if(ae._isShowApplyFilterButton()){var ye=ae.option("filterRow.applyFilterText"),ce=!ae._columnsController.getColumns().filter(function(pe){return void 0!==pe.bufferedFilterValue}).length;_e.push({widget:"dxButton",options:{icon:"apply-filter",disabled:ce,onClick:function(){ae._applyFilterViewController.applyFilter()},hint:ye,text:ye,onInitialized:function(pe){(0,I.Z)(pe.element).addClass(ae._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10})}return _e},_isShowApplyFilterButton:function(){var ae=this.option("filterRow");return ae&&ae.visible&&"onClick"===ae.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(ae){this.setToolbarItemDisabled("applyFilterButton",!ae)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(ae){"filterRow"===ae.name?(this._invalidate(),ae.handled=!0):this.callBase(ae)}}}}}},5841:(Rn,he,u)=>{"use strict";u.d(he,{H:()=>P});var o=u(1828),c=u(3390),I=u(8507),C=u(8159),g=u(2879),a=u(2135),p=u(9904),s=u(9009),l=u(5873),d=u(7122),h=u(4270);function v(B){var W=function(V,U){return U?U+"/"+V:V},z=B&&B.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(V,U,K){var Y=[],J=V.length-1;return V&&V.forEach(function(j,ee){if((0,I.T5)(j)||(0,I.ty)(j)){var G=(0,I._z)(j,K,[],"headerFilter");Y.push(G)}else Y.push((0,I._z)([U.dataField,"=",j],K,[],"headerFilter"));ee!==J&&Y.push("or")}),1===Y.length&&(Y=Y[0]),Y},editorTemplate:function(V,U){var K=(0,p.Z)("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(U),Y=(0,l.l)(!0,{},B.columnOption(V.field.dataField));return(0,I.yg)(K,V.text&&V.text.split("|")),Y.filterType="include",Y.filterValues=V.value?V.value.slice():[],z.showHeaderFilterMenuBase({columnElement:K,column:Y,apply:function(){V.setValue(this.filterValues),z.hideHeaderFilterMenu(),V.closeEditor()},onHidden:function(){V.closeEditor()},isFilterBuilder:!0}),U},customizeText:function(V,U){U=U||{};var K=V.value,Y=B.columnOption(V.field.dataField),J=Y&&Y.headerFilter,j=Y&&Y.lookup,ee=U.values||[K];if(J&&J.dataSource||j&&j.dataSource){var G=new h.BH,q=U.items||new h.BH;if(!U.items){Y=(0,l.l)({},Y,{filterType:"include",filterValues:ee});var Z=z.getDataSource(Y);Z.paginate=!1;var X=new d.o(Z),M=X.store().key();if(M){var{values:oe}=U;if(oe&&oe.length>1){var fe=oe.reduce((Be,ze)=>(Be.length&&Be.push("or"),Be.push([M,"=",ze]),Be),[]);X.filter(fe)}else X.filter([M,"=",V.value])}else V.field.calculateDisplayValue&&C.Z.log("W1017");U.items=q,X.load().done(q.resolve)}return q.done(Be=>{var ze=ee.indexOf(V.value);G.resolve(function ae(_e,ye){var ne=[];return _e.forEach(function(ce){if(ce.items){var le=ae(ce.items,W(ce.text,ye));ne=ne.concat(le)}ce.selected&&ne.push(W(ce.text,ye))}),ne}(Be)[ze])}),G}return z.getHeaderItemText(K,Y,0,B.option("headerFilter"))}}}function x(B){return(0,l.l)(v(B),{name:"anyof",icon:"selectall",caption:s.Z.format("dxFilterBuilder-filterOperationAnyOf")})}function b(B){var W=v(B);return(0,l.l)({},W,{calculateFilterExpression:function(z,V,U){var K=W.calculateFilterExpression(z,V,U);return K&&0!==K.length?"!"===K[0]?K:["!",K]:null},name:"noneof",icon:"unselectall",caption:s.Z.format("dxFilterBuilder-filterOperationNoneOf")})}var y=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"],E="include",S="exclude";function O(B){return B.name||B.dataField}var B,W,z,V,U,K,k={isFilterSyncActive:function(){var B=this.option("filterSyncEnabled");return"auto"===B?this.option("filterPanel.visible"):B},skipCalculateColumnFilters:function(){var B=this.getController("filterSync");return((0,o.$K)(this.option("filterValue"))||B._skipSyncColumnOptions)&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){if(!1===this.option("filterPanel.filterEnabled"))return this.callBase();var B=[this.callBase()],W=this.getController("columns").getFilteringColumns(),z=this.option("filterValue");if(this.isFilterSyncActive()){var V=this.getController("headerFilter").getCurrentColumn();V&&z&&(z=(0,I.e4)(z,O(V)))}var U=this.getController("filterSync").getCustomFilterOperations(),K=(0,I._z)(z,W,U,"filterBuilder");return K&&B.push(K),g.Z.combineFilters(B)},_parseColumnPropertyName:function(B){var W=B.match(/.*\.(.*)/);return W?W[1]:null},clearFilter:function(B){this.component.beginUpdate(),arguments.length>0?("filterValue"===B&&this.option("filterValue",null),this.callBase(B)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(B){switch(B.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),B.handled=!0;break;case"filterSyncEnabled":B.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var W=this.getController("columns").getColumnByPath(B.fullName),z=this.getController("filterSync");if(W&&!z._skipSyncColumnOptions){var V=this._parseColumnPropertyName(B.fullName);z._skipSyncColumnOptions=!0,"filterType"===V?(S===B.value||S===B.previousValue)&&z.syncHeaderFilter(W):"filterValues"===V?z.syncHeaderFilter(W):["filterValue","selectedFilterOperation"].indexOf(V)>-1&&z.syncFilterRow(W,W.filterValue),z._skipSyncColumnOptions=!1}}this.callBase(B);break;default:this.callBase(B)}}},R={_isHeaderFilterEmpty:function(B){return this.getController("data").isFilterSyncActive()?!(0,I.Ab)(this.option("filterValue"),O(B)):this.callBase(B)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(B){"filterValue"===B.name?this._updateHeaderFilterIndicators():this.callBase(B)}},P={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:c.Z.Controller.inherit((B=function(){return{filterType:E,filterValues:void 0}},W=function(Y){var J=Y.filterValues||[];return!a.Z.getGroupInterval(Y)&&!(Y.headerFilter&&Y.headerFilter.dataSource)||1===J.length&&null===J[0]},z=function(Y){if((0,o.$K)(Y.filterValue)){var j=Y.selectedFilterOperation||Y.defaultFilterOperation||(0,I.Ls)(Y);return[O(Y),j,Y.filterValue]}return null},V=function(Y){var J,j,ee=Y.filterValues;return ee?(1===ee.length&&W(Y)&&!Array.isArray(ee[0])?(J=Y.filterType===S?"<>":"=",j=ee[0]):(J=Y.filterType===S?"noneof":"anyof",j=ee),[O(Y),J,j]):null},U=function(Y,J,j){var ee=function(G,q){if(!G)return B();var Z,X=G[1],M=G[2],oe=Array.isArray(M);if(!oe&&!W(q))return B();switch(X){case"anyof":case"=":Z=E;break;case"noneof":case"<>":Z=S;break;default:return B()}return{filterType:Z,filterValues:oe?M:[M]}}(j,J);Y.columnOption(O(J),ee)},K=function(Y,J,j){var ee,G=j?.[1],q=j?.[2],Z=J.filterOperations||J.defaultFilterOperations;(!Z||Z.indexOf(G)>=0||G===J.defaultFilterOperation)&&y.indexOf(G)>=0&&null!==q?(G===J.defaultFilterOperation&&!(0,o.$K)(J.selectedFilterOperation)&&(G=J.selectedFilterOperation),ee={filterValue:q,selectedFilterOperation:G}):ee={filterValue:void 0,selectedFilterOperation:void 0},Y.columnOption(O(J),ee)},{syncFilterValue:function(){var Y=this,J=Y.getController("columns"),j=J.getFilteringColumns();this._skipSyncColumnOptions=!0,j.forEach(function(ee){var G=(0,I.BB)(Y.option("filterValue"),O(ee));if(1===G.length){var q=G[0];U(J,ee,q),K(J,ee,q)}else(0,o.$K)(ee.filterValues)&&U(J,ee),(0,o.$K)(ee.filterValue)&&K(J,ee)}),this._skipSyncColumnOptions=!1},_initSync:function(){var Y=this.getController("columns").getColumns(),J=this.getController("data"),j=J.pageIndex();if(function w(B){B.forEach(W=>{var z=O(W);if(!(0,o.$K)(z)&&W.allowFiltering)throw new C.Z.Error("E1049",W.caption)})}(Y),!this.option("filterValue")){var ee=this.getController("columns").getFilteringColumns(),G=this.getFilterValueFromColumns(ee);this.option("filterValue",G)}this.syncFilterValue(),J.pageIndex(j)},init:function(){var Y=this.getController("data");Y.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():Y.dataSourceChanged.add(()=>this._initSync()))},_getSyncFilterRow:function(Y,J){var j=z(J);return(0,o.$K)(j)?(0,I.aR)(Y,j):(0,I.e4)(Y,O(J))},_getSyncHeaderFilter:function(Y,J){var j=V(J);return j?(0,I.aR)(Y,j):(0,I.e4)(Y,O(J))},getFilterValueFromColumns:function(Y){if(!this.getController("data").isFilterSyncActive())return null;var J=["and"];return Y&&Y.forEach(j=>{var ee=V(j),G=z(j);ee&&(0,I.jX)(ee,J),G&&(0,I.jX)(G,J)}),(0,I.Ih)(J)},syncFilterRow:function(Y,J){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),Y))},syncHeaderFilter:function(Y){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),Y))},getCustomFilterOperations:function(){var Y=this.option("filterBuilder.customOperations")||[];return[x(this.component),b(this.component)].concat(Y)},publicMethods:function(){return["getCustomFilterOperations"]}}))},extenders:{controllers:{data:k},views:{columnHeadersView:R}}}},6775:(Rn,he,u)=>{"use strict";u.d(he,{W:()=>x});var o=u(9904),c=u(3390),I=u(2718),C=u(2879),g=u(7674),a=u(1828),p=u(4270),s="dx-row-focused",l=".dx-row."+s,h="dx-cell-focus-disabled",x={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:null,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:c.Z.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(y){if("focusedRowIndex"===y.name){var E=this.option("focusedRowKey");this._focusRowByIndex(y.value),this._triggerFocusedRowChangedIfNeed(E,y.value),y.handled=!0}else if("focusedRowKey"===y.name){if(y.handled=!0,Array.isArray(y.value)&&JSON.stringify(y.value)===JSON.stringify(y.previousValue))return;var S=this.option("focusedRowIndex");this._focusRowByKey(y.value),this._triggerFocusedRowChangedIfNeed(y.value,S)}else"focusedColumnIndex"===y.name||"focusedRowEnabled"===y.name||"autoNavigateToFocusedRow"===y.name?y.handled=!0:this.callBase(y)},_triggerFocusedRowChangedIfNeed:function(y,E){if(E===this.getFocusedRowIndexByKey(y)){var O=this._dataController.getRowIndexByKey(y);if(O>=0){var w=(0,o.Z)(this.getView("rowsView").getRowElement(O));this.getController("keyboardNavigation")._fireFocusedRowChanged(w,E)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(y,E){this.option("focusedRowEnabled")&&((y=void 0!==y?y:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(y,E))},_focusRowByIndexCore:function(y,E){var S=this.getController("data"),O=S.pageSize(),w=()=>{if(this._isValidFocusedRowIndex(y)){var k=y-S.getRowIndexOffset(!0);if(!E||E.paging&&!E.filtering){var R=S._getLastItemIndex();k=Math.min(k,R)}var P=S.getKeyByRowIndex(k,!0);(0,a.$K)(P)&&!this.isRowFocused(P)&&this.option("focusedRowKey",P)}};if(O>=0)if(this._isLocalRowIndex(y))w();else{var T=Math.floor(y/S.pageSize());(0,p.gx)(S.pageIndex(T),S.waitReady()).done(()=>{w()})}},_isLocalRowIndex(y){var E=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var O=Math.floor(y/E.pageSize()),w=E.virtualItemsCount(),T=w?w.begin:-1,k=E.getVisibleRows().length+E.getRowIndexOffset(),R=Math.ceil(k/E.pageSize());return T<=y&&R>O}return!0},_setFocusedRowKeyByIndex:function(y){var E=this.getController("data");if(this._isValidFocusedRowIndex(y)){var S=Math.min(y-E.getRowIndexOffset(),E.items().length-1),O=E.getKeyByRowIndex(S);(0,a.$K)(O)&&!this.isRowFocused(O)&&this.option("focusedRowKey",O)}},_focusRowByKey:function(y){(0,a.$K)(y)?this._navigateToRow(y,!0):this._resetFocusedRow()},_resetFocusedRow:function(){var y=this.option("focusedRowKey"),E=(0,a.$K)(y);if(E||!(this.option("focusedRowIndex")<0)){var S=this.getController("keyboardNavigation");E&&this.option("focusedRowKey",null),S.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:null}),S._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(y){var S=this.getController("data").getVisibleRows()[y];return!S||"data"===S.rowType||"group"===S.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(y){return this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(y)},_navigateToRow:function(y,E){var S=this,O=S.getController("data"),w=S.isAutoNavigateToFocusedRow(),T=new p.BH;if(void 0===y||!O.dataSource())return T.reject().promise();var k=S.getFocusedRowIndexByKey(y);return!w&&E||k>=0?S._navigateTo(y,T,E):O.getPageIndexByKey(y).done(function(R){R<0?T.resolve(-1):R===O.pageIndex()?O.reload().done(function(){S.isRowFocused(y)&&O.getRowIndexByKey(y)>=0?T.resolve(S.getFocusedRowIndexByKey(y)):S._navigateTo(y,T,E)}).fail(T.reject):O.pageIndex(R).done(function(){S._navigateTo(y,T,E)}).fail(T.reject)}).fail(T.reject),T.promise()},_navigateTo:function(y,E,S){var O=this.getController("data").getRowIndexByKey(y),w=C.Z.isVirtualRowRendering(this);this.isAutoNavigateToFocusedRow()&&w&&O<0?this._navigateToVirtualRow(y,E,S):this._navigateToVisibleRow(y,E,S)},_navigateToVisibleRow:function(y,E,S){if(S)this._triggerUpdateFocusedRow(y,E);else{var O=this.getFocusedRowIndexByKey(y);this.getView("rowsView").scrollToRowElement(y,E).done(function(){E.resolve(O)})}},_navigateToVirtualRow:function(y,E,S){var O=this,w=this.getController("data"),T=w._rowsScrollController,k=C.Z.getIndexByKey(y,w.items(!0)),R=O.getView("rowsView").getScrollable();if(T&&R&&k>=0){var P=k+w.getRowIndexOffset(!0),B=T.getItemOffset(P);O.component.on("contentReady",function W(){O.component.off("contentReady",W),S?O._triggerUpdateFocusedRow(y,E):E.resolve(P)}),this.getView("rowsView").scrollTopPosition(B)}else E.resolve(-1)},_triggerUpdateFocusedRow:function(y,E){var w,S=this.getController("data"),O=this.getFocusedRowIndexByKey(y);this._isValidFocusedRowIndex(O)?(this.option("focusedRowEnabled")?S.updateItems({changeType:"updateFocusedRow",focusedRowKey:y}):w=this.getView("rowsView").scrollToRowElement(y),(0,p.gx)(w).done(()=>{this.getController("keyboardNavigation").setFocusedRowIndex(O),E&&E.resolve(O)})):E&&E.resolve(-1)},getFocusedRowIndexByKey:function(y){var E=this.getController("data"),S=E.getRowIndexByKey(y,!0);return S>=0?S+E.getRowIndexOffset(!0):-1},_focusRowByKeyOrIndex:function(){var y=this.option("focusedRowKey"),E=this.option("focusedRowIndex"),S=this.getController("keyboardNavigation"),O=this.getController("data");if((0,a.$K)(y)){var w=O.getRowIndexByKey(y);w>=0?(S._isVirtualScrolling()&&(E=w+O.getRowIndexOffset()),S.setFocusedRowIndex(E),this._triggerUpdateFocusedRow(y)):this._navigateToRow(y,!0).done(T=>{E>=0&&T<0?this._focusRowByIndex():E<0&&T>=0&&S.setFocusedRowIndex(T)})}else E>=0&&this.getController("focus")._focusRowByIndex(E)},isRowFocused:function(y){var E=this.option("focusedRowKey");if((0,a.$K)(E))return(0,g.bY)(y,this.option("focusedRowKey"))},updateFocusedRow:function(y){var w,T,E=this,S=E._dataController.getRowIndexByKey(y.focusedRowKey),O=E.getView("rowsView");(0,I.S6)(O.getTableElements(),function(k,R){var P=0===k;w=(0,o.Z)(R),E._clearPreviousFocusedRow(w,S);var B=E._prepareFocusedRow({changedItem:E._dataController.getVisibleRows()[S],$tableElement:w,focusedRowIndex:S});P&&(T=B)}),T&&O.scrollToElementVertically(T)},_clearPreviousFocusedRow:function(y,E){var S=y.find(l).filter((w,T)=>{var k=(0,o.Z)(T).closest(".".concat(this.addWidgetPrefix("table")));return y.is(k)});S.removeClass(s).removeClass(h).removeAttr("tabindex"),S.children("td").removeAttr("tabindex"),0!==E&&(0,o.Z)(this.getView("rowsView").getRowElement(0)).removeClass(h).removeAttr("tabIndex")},_prepareFocusedRow:function(y){var E,S=y.changedItem;if(S&&("data"===S.rowType||"group"===S.rowType)){var O=y.focusedRowIndex,w=y.$tableElement,T=this.option("tabindex")||0,k=this.getView("rowsView");(E=(0,o.Z)(k._getRowElements(w).eq(O))).addClass(s).attr("tabindex",T)}return E}})},extenders:{controllers:{keyboardNavigation:{init:function(){var b=this.option("focusedRowIndex"),y=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,a.$K)(b)&&b>=0&&(this._focusedCellPosition.rowIndex=b),(0,a.$K)(y)&&y>=0&&(this._focusedCellPosition.columnIndex=y)},setFocusedRowIndex:function(b){var y=this.getController("data");this.callBase(b);var E=b-y.getRowIndexOffset(),S=y.getVisibleRows()[E];(!S||!S.isNewRow)&&this.option("focusedRowIndex",b)},setFocusedColumnIndex:function(b){this.callBase(b),this.option("focusedColumnIndex",b)},_escapeKeyHandler:function(b,y){!y&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(b.originalEvent.target),!0)):this.callBase(b,y)},_updateFocusedCellPosition:function(b,y){var E=this.option("focusedRowIndex"),S=this.option("focusedColumnIndex"),O=this.callBase(b,y);O&&O.columnIndex>=0&&this._fireFocusedCellChanged(b,S,E)}},editorFactory:{renderFocusOverlay:function(b,y){var w,E=this.getController("keyboardNavigation"),S=this.option("focusedRowEnabled"),O=this.getController("editing");S&&null!=E&&E.isRowFocusType()&&!O.isEditing()?S&&"row"===E._getElementType(b)&&!b.hasClass(s)&&(w=E.getFirstValidCellInRow(b),E.focus(w)):this.callBase(b,y)}},columns:{getSortDataSourceParameters:function(b,y){var E=this.callBase.apply(this,arguments),S=this.getController("data"),O=S._dataSource,w=S.store(),T=w&&w.key(),k=O&&O.remoteOperations()||{},R=Object.keys(k).every(B=>!k[B]);if(T&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||y)){var P=(T=Array.isArray(T)?T:[T]).filter(B=>!this.columnOption(B,"sortOrder"));P.length&&(E=E||[],R?E.push({selector:O.getDataIndexGetter(),desc:!1}):P.forEach(B=>E.push({selector:B,desc:!1})))}return E}},data:{_applyChange:function(b){if(!b||"updateFocusedRow"!==b.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(b){if(this.callBase(b),this.option("focusedRowEnabled")&&this._dataSource){var E="update"===b.changeType&&b.repaintChangesOnly&&b.changeTypes&&b.changeTypes.indexOf("remove")>=0;"refresh"===b.changeType&&b.items.length||E?(this._updatePageIndexes(),this.processUpdateFocusedRow(b)):"append"===b.changeType||"prepend"===b.changeType?this._updatePageIndexes():"update"===b.changeType&&b.repaintChangesOnly&&this.processUpdateFocusedRow(b)}},_updatePageIndexes:function(){var b=this._lastRenderingPageIndex||0,y=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=y,this._isPagingByRendering=y!==b},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(b){var y=b.operationTypes||{},E=this.getController("focus"),{reload:S,fullReload:O}=y,T=this.getController("keyboardNavigation")._isVirtualScrolling(),k=this.option("focusedRowKey"),R=E.isAutoNavigateToFocusedRow();if(S&&!O&&(0,a.$K)(k))E._navigateToRow(k,!0).done(function(V){V<0&&E._focusRowByIndex(void 0,y)});else if(y.paging&&!T)if(R){var P=this.getRowIndexByKey(k),B=P>=0,W=this.option("focusedRowIndex");W>=0&&(W===P||!B)&&E._focusRowByIndex(void 0,y)}else this.getRowIndexByKey(k)<0&&this.option("focusedRowIndex",-1);else y.fullReload&&E._focusRowByKeyOrIndex()},getPageIndexByKey:function(b){var y=this,E=new p.BH;return y.getGlobalRowIndexByKey(b).done(function(S){E.resolve(S>=0?Math.floor(S/y.pageSize()):-1)}).fail(E.reject),E.promise()},getGlobalRowIndexByKey:function(b){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(b):this._calculateGlobalRowIndexByFlatData(b)},_calculateGlobalRowIndexByFlatData:function(b,y,E){var S=this,O=new p.BH,w=S._dataSource;if(Array.isArray(b))return O.resolve(-1).promise();var T=S._generateFilterByKey(b);return w.load({filter:S._concatWithCombinedFilter(T),skip:0,take:1}).done(function(k){k.length>0?(T=S._generateOperationFilterByKey(b,k[0],E),w.load({filter:S._concatWithCombinedFilter(T,y),skip:0,take:1,requireTotalCount:!0}).done(function(R,P){O.resolve(P.totalCount)})):O.resolve(-1)}),O.promise()},_concatWithCombinedFilter:function(b,y){var E=this.getCombinedFilter();return C.Z.combineFilters([b,E,y])},_generateBooleanFilter:function(b,y,E){var S;return!1===y?S=[b,"=",!!E.desc||null]:(!0===y?!E.desc:E.desc)&&(S=[b,"<>",y]),S},_generateOperationFilterByKey:function(b,y,E){var S=this,O=S._dataSource,w=S._generateFilterByKey(b,"<"),T=S._columnsController.getSortDataSourceParameters(!O.remoteOperations().filtering,!0);if(E){var k=S._columnsController.getGroupDataSourceParameters(!O.remoteOperations().filtering);k&&(T=T?k.concat(T):k)}return T&&T.slice().reverse().forEach(function(R){var B,P=R.selector,W=(B="function"==typeof P?P:S._columnsController.columnOption(P,"selector"))?B(y):y[P];if(w=[[P,"=",W],"and",w],null===W||(0,a.jn)(W)){var z=S._generateBooleanFilter(P,W,R);z&&(w=[z,"or",w])}else{var U,V=R.desc?">":"<";R.compare?U=K=>"<"===V?R.compare(W,B(K))>=1:R.compare(W,B(K))<=-1:(U=[P,V,W],R.desc||(U=[U,"or",[P,"=",null]])),w=[U,"or",w]}}),w},_generateFilterByKey:function(b,y){var E=this._dataSource.key(),S=[];if(y||(y="="),Array.isArray(E))for(var O=0;O<E.length;++O){var w=b[E[O]];w&&(S.length>0&&S.push("and"),S.push([E[O],y,w]))}else S=[E,y,b];return S},_getLastItemIndex:function(){return this.items(!0).length-1}},editing:{_deleteRowCore:function(b){var y=this.callBase.apply(this,arguments),E=this.getController("data"),S=E.getKeyByRowIndex(b);y.done(()=>{var O=E.getRowIndexByKey(S),w=E.getVisibleRows();-1===O&&!w.length&&this.getController("focus")._resetFocusedRow()})}}},views:{rowsView:{_createRow:function(b){var y=this.callBase.apply(this,arguments);return this.option("focusedRowEnabled")&&b&&this.getController("focus").isRowFocused(b.key)&&y.addClass(s),y},_checkRowKeys:function(b){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var y=this._dataController.store();y&&!y.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(b){"updateFocusedRow"===b.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(b):this.callBase(b)},updateFocusElementTabIndex:function(b,y){var E=this.getController("keyboardNavigation").getVisibleRowIndex(),S=this._dataController.getVisibleRows()[E];!this.option("focusedRowEnabled")||null!=S&&S.isNewRow?this.callBase(b):this._setFocusedRowElementTabIndex(y)},_setFocusedRowElementTabIndex:function(b){var y=this.option("focusedRowKey"),E=this.option("tabIndex")||0,S=this._dataController,O=this._columnsController,w=S.getRowIndexByKey(y),T=this.option("focusedColumnIndex"),k=this._findRowElementForTabIndex();if((0,a.$K)(this._scrollToFocusOnResize)||(this._scrollToFocusOnResize=()=>{this.scrollToElementVertically(this._findRowElementForTabIndex()),this.resizeCompleted.remove(this._scrollToFocusOnResize)}),k.attr("tabIndex",E),w>=0&&!b&&(T<0&&(T=0),w+=S.getRowIndexOffset(),T+=O.getColumnIndexOffset(),this.getController("keyboardNavigation").setFocusedCellPosition(w,T),this.getController("focus").isAutoNavigateToFocusedRow())){var R=S.dataSource(),P=R&&R.operationTypes();P&&!P.paging&&!S.isPagingByRendering()&&(this.resizeCompleted.remove(this._scrollToFocusOnResize),this.resizeCompleted.add(this._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var b=this.option("focusedRowKey"),y=this._dataController.getRowIndexByKey(b);return(0,o.Z)(this.getRowElement(y>=0?y:0))},scrollToRowElement:function(b){var y=this.getController("data").getRowIndexByKey(b),E=(0,o.Z)(this.getRow(y));return this.scrollToElementVertically(E)},scrollToElementVertically:function(b){var y=this.getScrollable();if(y&&b.length){var E=y.getScrollElementPosition(b,"vertical");return this.scrollTopPosition(E)}return(new p.BH).resolve()},scrollTopPosition:function(b){var y=new p.BH,E=this.getScrollable();if(E){var S=E.scrollTop(),O=()=>{E.off("scroll",O),y.resolve()};if(b!==S)return E.on("scroll",O),this._dataController.resetFilterApplying(),E.scrollTo({top:b}),y.promise()}return y.resolve()}}}}}},3990:(Rn,he,u)=>{"use strict";u.d(he,{C:()=>J});var o=u(1805),c=u(9904),I=u(3390),C=u(7674),g=u(4514),a=u(2718),p=u(1828),s=u(5450),l=u(2879),d=u(9009),h=u(4270),v=u(9897),x=u(2559),b=u(4722),y="borders",O="dx-gridbase-container",w="adaptiveHidden",T=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],k=function(j){return(0,p.HD)(j)&&"%"===j.slice(-1)},B=function(j,ee){var G=j._rowsView.contentWidth();return G-j._getTotalWidth(ee,G)},J={defaultOptions:function(){return{showBorders:!1,renderAsync:!1}},controllers:{resizing:I.Z.ViewController.inherit({_initPostRenderHandlers:function(){var j=this._dataController;this._refreshSizesHandler||(this._refreshSizesHandler=ee=>{j.changed.remove(this._refreshSizesHandler),h.gx.apply(this,ee&&ee.templateDeferreds||[]).done(()=>{this._refreshSizes(ee)})},j.changed.add(()=>{j.changed.add(this._refreshSizesHandler)}))},_refreshSizes:function(j){var ee,G=this,q=j&&j.changeType,Z=j&&j.isDelayed,X=G._dataController.items();if(j&&"refresh"!==q&&"prepend"!==q&&"append"!==q){if("update"===q){var M;if(0===(null===(M=j.changeTypes)||void 0===M?void 0:M.length))return;!(X.length>1||"insert"!==j.changeTypes[0])||0===X.length&&"remove"===j.changeTypes[0]||j.needUpdateDimensions?ee=G.resize():(0,C.Su)(()=>(0,C.g0)(()=>(0,C.Su)(()=>{G._setScrollerSpacing(G._hasHeight),G._rowsView.resize()})))}}else Z||(ee=G.resize());q&&"updateSelection"!==q&&"updateFocusedRow"!==q&&"pageIndex"!==q&&!Z&&(0,h.gx)(ee).done(function(){G._setAriaRowColCount(),G.fireContentReadyAction()})},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var j=this.component;j.setAria({rowCount:this._dataController.totalItemsCount(),colCount:j.columnCount()},j.$element().children("."+O))},_getBestFitWidths:function(){var j,ee=this._rowsView,G=this._columnHeadersView,q=ee.getColumnWidths();if(null===(j=q)||void 0===j||!j.length){var Z,X=G.getTableElement();G.setTableElement(null===(Z=ee.getTableElement())||void 0===Z?void 0:Z.children(".dx-header")),q=G.getColumnWidths(),G.setTableElement(X)}return q},_setVisibleWidths:function(j,ee){var G=this._columnsController;G.beginUpdate(),(0,a.S6)(j,function(q,Z){var X=G.getColumnId(Z);G.columnOption(X,"visibleWidth",ee[q])}),G.endUpdate()},_toggleBestFitModeForView:function(j,ee,G){if(j&&j.isVisible()){var q=this._rowsView.getTableElements(),Z=j.getTableElements();(0,a.S6)(q,(X,M)=>{var oe,fe=(0,c.Z)(M),Te=Z.eq(X);Te&&Te.length&&((oe=G?Te.children("tbody").appendTo(fe):fe.children("."+ee).appendTo(Te)).toggleClass(ee,G),oe.toggleClass(this.addWidgetPrefix("best-fit"),G))})}},_toggleBestFitMode:function(j){var ee=this._rowsView.getTableElement(),G=this._rowsView.getTableElements().eq(1);ee&&(ee.css("tableLayout",j?"auto":"fixed"),ee.children("colgroup").css("display",j?"none":""),G.toggleClass(this.addWidgetPrefix("table-fixed"),!j),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",j),this._toggleBestFitModeForView(this._footerView,"dx-footer",j),this._toggleContentMinHeight(j),this._needStretch()&&(ee.get(0).style.width=j?"auto":""))},_toggleContentMinHeight:function(j){if(this.option("wordWrapEnabled")){var ee=this._rowsView.getScrollable(),G=this._rowsView._findContentElement();!1===ee?.option("useNative")&&G.css({minHeight:j?l.Z.getContentHeightLimit(b.Z):""})}},_synchronizeColumns:function(){var X,fe,Te,j=this._columnsController,ee=j.getVisibleColumns(),G=this.option("columnAutoWidth"),q=this._needBestFit(),Z=!1,M=!1,oe=[];!q&&(0,a.S6)(ee,function(ze,ae){if("auto"===ae.width)return q=!0,!1}),(0,a.S6)(ee,function(ze,ae){if(ae.minWidth)return Z=!0,!1}),this._setVisibleWidths(ee,[]);var Be=this.component.$element();q&&(fe=v.Z.getActiveElement(Be.get(0)),Te=l.Z.getSelectionRange(fe),this._toggleBestFitMode(!0),X=!0),Be&&Be.get(0)&&this._maxWidth&&(delete this._maxWidth,Be[0].style.maxWidth=""),(0,C.Su)(()=>{var ae;q?(oe=this._getBestFitWidths(),(0,a.S6)(ee,function(ae,_e){var ye=j.getColumnId(_e);j.columnOption(ye,"bestFitWidth",oe[ae],!0)})):Z&&(oe=this._getBestFitWidths()),(0,a.S6)(ee,function(ae){var _e=this.width;"auto"!==_e&&((0,p.$K)(_e)?oe[ae]=(0,p.kE)(_e)||function(j){return(0,p.HD)(j)&&"px"===j.slice(-2)}(_e)?parseFloat(_e):_e:G||(oe[ae]=void 0))}),X&&(this._toggleBestFitMode(!1),X=!1,fe&&fe!==v.Z.getActiveElement())&&((0,s.l)(fe).bottom<0||function(j,ee){x.Bg(j),l.Z.setSelectionRange(j,ee)}(fe,Te)),M=this._correctColumnWidths(oe,ee),G&&((0,a.S6)(ee,function(_e,ye){"groupExpand"===ye.type&&(ae=oe[_e])}),(0,a.S6)(ee,function(_e,ye){"groupExpand"===ye.type&&ae&&(oe[_e]=ae)}),this._needStretch()&&this._processStretch(oe,ee)),(0,C.g0)(()=>{(q||M)&&this._setVisibleWidths(ee,oe)})})},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this._columnsController.getVisibleColumns().some(j=>"auto"===j.width&&!j.command)},_getAverageColumnsWidth:function(j){return B(this,j)/j.filter(function(q){return void 0===q}).length},_correctColumnWidths:function(j,ee){var q,G=this,Z=!1,X=!1,M=!1,oe=G.component.$element(),fe=G._hasWidth,Te=function(){var ce=q,le=ee[ce],pe=j[ce]===w,Se=j[ce],re=le.minWidth;if(re)if(void 0===Se){var te=G._getAverageColumnsWidth(j);Se=te}else if(k(Se)){var ie=function(j,ee,G,q){return B(j,q.map(function(Z,X){return X===ee?G:Z}))}(G,ce,re,j);ie<0&&(Se=-1)}var ue=G._getRealColumnWidth(ce,j.map(function(be,Ae){return ce===Ae?Se:be}));re&&!pe&&ue<re&&(j[ce]=re,M=!0,q=-1),(0,p.$K)(le.width)||(X=!0),k(le.width)&&(Z=!0)};for(q=0;q<ee.length;q++)Te();if(!X&&j.length){var Be=G._rowsView.element(),ze=G._rowsView.contentWidth(),ae=G._rowsView.getScrollbarWidth(),_e=G._getTotalWidth(j,ze);if(_e<ze){var ye=l.Z.getLastResizableColumnIndex(ee,j);if(ye>=0&&(j[ye]="auto",M=!0,!1===fe&&!Z)){var ne=G.option("showBorders")?Math.ceil((0,o.Y_)(Be)-(0,o.Xt)(Be)):0;G._maxWidth=_e+ae+ne,oe.css("maxWidth",G._maxWidth)}}}return M},_processStretch:function(j,ee){var G=this._rowsView.contentWidth(),q=this._getTotalWidth(j,G),Z={length:0};if(j.length){(0,a.S6)(ee,function(Te){(this.width||j[Te]===w)&&(Z[Te]=!0,Z.length++)});var X=G-q,M=Math.floor(X/(j.length-Z.length)),oe=X-M*(j.length-Z.length);if(X>=0)for(var fe=0;fe<j.length;fe++)Z[fe]||(j[fe]+=M,oe>0&&(oe<1?(j[fe]+=oe,oe=0):(j[fe]++,oe--)))}},_getRealColumnWidth:function(j,ee,G){var q=1,Z=ee[j];if(!k(Z))return parseFloat(Z);var X=ee.reduce((Te,Be,ze)=>k(Be)?Te+parseFloat(Be):Te,0),M=ee.reduce((Te,Be)=>!Be||Be===w||k(Be)?Te:Te+parseFloat(Be),0),oe=(G=G||this._rowsView.contentWidth())-M,fe=X*G/100;return M>0&&fe+M>=G&&(q=fe>oe?oe/fe:1),parseFloat(Z)*G*q/100},_getTotalWidth:function(j,ee){for(var G=0,q=0;q<j.length;q++){var Z=j[q];Z&&Z!==w&&(G+=this._getRealColumnWidth(q,j,ee))}return Math.ceil(G)},updateSize:function(j){var ee,G,q=(0,c.Z)(j),Z=this.addWidgetPrefix("important-margin");void 0===this._hasHeight&&q&&q.is(":visible")&&(0,o.dz)(q)&&((ee=q.children("."+this.getWidgetContainerClass())).length&&ee.detach(),this._hasHeight=!!function(j){return j.get(0).clientHeight-parseFloat(j.css("paddingTop"))-parseFloat(j.css("paddingBottom"))}(q),G=(0,o.dz)(q),q.addClass(Z),this._hasWidth=(0,o.dz)(q)===G,q.removeClass(Z),ee.length&&ee.appendTo(q))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(j){var ee=this;if(ee._initPostRenderHandlers(),ee._checkSize(j)){var G=ee._resizeDeferred,q=ee._resizeDeferred=new h.BH;return(0,h.gx)(G).always(function(){(0,C.g0)(function(){ee._dataController.isLoaded()&&ee._synchronizeColumns(),ee._resetGroupElementHeight(),(0,C.Su)(function(){(0,C.g0)(function(){(0,C.Su)(function(){ee._updateDimensionsCore()})})})}).done(q.resolve).fail(q.reject)}),q.promise()}},_resetGroupElementHeight:function(){var j=this.component.$element().children().get(0),ee=this._rowsView.getScrollable();j&&j.style.height&&(!ee||!ee.scrollTop())&&(j.style.height="")},_checkSize:function(j){var ee=this.component.$element();return!(j&&(this._lastWidth===(0,o.dz)(ee)&&this._lastHeight===(0,o.Cr)(ee)&&this._devicePixelRatio===(0,g.Jj)().devicePixelRatio||!ee.is(":visible")))},_setScrollerSpacingCore:function(j){var ee=this,G=j?ee._rowsView.getScrollbarWidth():0,q=ee._rowsView.getScrollbarWidth(!0);(0,C.g0)(function(){ee._columnHeadersView&&ee._columnHeadersView.setScrollerSpacing(G),ee._footerView&&ee._footerView.setScrollerSpacing(G),ee._rowsView.setScrollerSpacing(G,q)})},_setScrollerSpacing:function(j){!0===this.option("scrolling.useNative")?(0,C.g0)(()=>{(0,C.Su)(()=>{this._setScrollerSpacingCore(j)})}):this._setScrollerSpacingCore(j)},_updateDimensionsCore:function(){var ze,j=this,ee=j._dataController,G=j._rowsView,q=j.component.$element(),Z=q.children().get(0),X=q&&(q.get(0).clientHeight||(0,o.Cr)(q)),M=parseInt(q.css("maxHeight")),oe=M&&X>=M,fe=j.option("height")||q.get(0).style.height,Te=j.getController("editorFactory"),Be=oe&&Z.scrollHeight===Z.offsetHeight;j.updateSize(q);var ae=j._hasHeight||oe;fe&&j._hasHeight^"auto"!==fe&&(ze=(0,c.Z)("<div>"),(0,o.QQ)(ze,fe),ze.appendTo(q),j._hasHeight=!!(0,o.Cr)(ze),ze.remove()),(0,C.g0)(function(){G.height(null,ae),oe&&!Be&&(0,c.Z)(Z).css("height",M),ee.isLoaded()?(0,C.Su)(function(){j._updateLastSizes(q),j._setScrollerSpacing(ae),(0,a.S6)(T,function(_e,ye){var ne=j.getView(ye);ne&&ne.resize()}),Te&&Te.resize()}):G.setLoading(ee.isLoading())})},_updateLastSizes:function(j){this._lastWidth=(0,o.dz)(j),this._lastHeight=(0,o.Cr)(j),this._devicePixelRatio=(0,g.Jj)().devicePixelRatio},optionChanged:function(j){switch(j.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"renderAsync":return void(j.handled=!0);default:this.callBase(j)}},init:function(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}}),synchronizeScrolling:I.Z.ViewController.inherit({_scrollChangedHandler:function(j,ee,G){for(var q=0;q<j.length;q++)j[q]&&j[q].name!==G&&j[q].scrollTo({left:ee.left,top:ee.top})},init:function(){for(var j=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],ee=0;ee<j.length;ee++){var G=j[ee];G&&G.scrollChanged.add(this._scrollChangedHandler.bind(this,j))}}})},views:{gridView:I.Z.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")},getView:function(j){return this.component._views[j]},element:function(){return this._groupElement},optionChanged:function(j){(0,p.$K)(this._groupElement)&&"showBorders"===j.name?(this._groupElement.toggleClass(this.addWidgetPrefix(y),!!j.value),j.handled=!0):this.callBase(j)},_renderViews:function(j){var ee=this;(0,a.S6)(T,function(G,q){var Z=ee.getView(q);Z&&Z.render(j)})},_getTableRoleName:function(){return"grid"},render:function(j){var ee=!this._groupElement,G=this._groupElement||(0,c.Z)("<div>").addClass(this.getWidgetContainerClass());G.addClass(O),G.toggleClass(this.addWidgetPrefix(y),!!this.option("showBorders")),this.setAria("role","presentation",j),this.component.setAria({role:this._getTableRoleName(),label:d.Z.format(this._getWidgetAriaLabel())},G),this._rootElement=j||this._rootElement,ee&&(this._groupElement=G,(0,g.Ym)()&&this.getController("resizing").updateSize(j),G.appendTo(j)),this._renderViews(G)},update:function(){var j=this._rootElement,ee=this._groupElement,G=this.getController("resizing");j&&ee&&(G.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}})},VIEW_NAMES:T}},2314:(Rn,he,u)=>{"use strict";u.d(he,{O:()=>K});var o=u(4817),c=u(913),I=u(3390),C=u(2135),g=u(2879),a=u(1074),p=u(9009),s=u(227),l=u(6738),d=u(2718),h=u(1828),v=u(5450),x=u(5873),b=u(5981),y=u(8119),E=u(4270),S=u(2559),O=u(7316),w=u(3382),T={month:function(Y){return y.Z.getMonthNames()[Y-1]},quarter:function(Y){return y.Z.format(new Date(2e3,3*Y-1),"quarter")}};function k(Y,J,j){return J=J||[],j=j||[],Y.forEach(ee=>{if((0,h.$K)(ee.key)){if(J.push(1===J.length?ee.key-1:ee.key),ee.items)k(ee.items,J,j);else{var q=new Date(Date.UTC.apply(Date,J));j.push(q)}J.pop()}else j.push(null)}),j}function R(Y,J){var j=k(Y),ee=(0,O.Z)(j),G=g.Z.getHeaderFilterGroupParameters((0,o.Z)({},J,{calculateCellValue:q=>q}));return w.Z.queryByOptions(ee,{group:G}).toArray()}var B=I.Z.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(Y,J){for(var j=Y.length,ee="exclude"===J.filterType;j--;){var G=Y[j];"items"in Y[j]&&this._updateSelectedState(Y[j].items,J),(0,a.By)(G,g.Z.getIndexByKey(Y[j].value,J.filterValues,null)>-1,ee)}},_normalizeGroupItem:function(Y,J,j){var ee,G,q=j.path,Z=j.valueSelector,X=j.displaySelector,M=j.column;return Z&&X?(ee=Z(Y),G=X(Y)):G=ee=Y.key,Y=(0,h.Kn)(Y)?(0,x.l)({},Y):{},q.push(ee),Y.value=1===q.length?q[0]:q.join("/"),Y.text=this.getHeaderItemText(G,M,J,j.headerFilterOptions),Y},getHeaderItemText:function(Y,J,j,ee){var q,Z,X,M,oe,G=g.Z.formatValue(Y,(q=Y,X=j,M=C.Z.getGroupInterval(Z=J),oe=g.Z.getFormatOptionsByColumn(Z,"headerFilter"),M&&(oe.groupInterval=M[X],g.Z.isDateType(Z.dataType)?oe.format=T[M[X]]:"number"===Z.dataType&&(oe.getDisplayFormat=function(){var fe={format:Z.format,target:"headerFilter"},Te=g.Z.formatValue(q,fe),ze=g.Z.formatValue(q+M[X],fe);return Te&&ze?Te+" - "+ze:""})),oe));return G||(G=ee.texts.emptyValue),G},_processGroupItems:function(Y,J,j,ee){var G,q,X=ee.column.lookup,M=ee.level;j=j||[],J=J||0,X&&(G=(0,l.vb)(X.displayExpr),q=(0,l.vb)(X.valueExpr));for(var oe=0;oe<Y.length;oe++)Y[oe]=this._normalizeGroupItem(Y[oe],J,{column:ee.column,headerFilterOptions:ee.headerFilterOptions,displaySelector:G,valueSelector:q,path:j}),"items"in Y[oe]&&(J!==M&&(0,h.$K)(Y[oe].value)?this._processGroupItems(Y[oe].items,J+1,j,ee):delete Y[oe].items),j.pop()},getDataSource:function(Y){var J,j=this._dataController.dataSource(),ee=j?.remoteOperations().grouping,G=g.Z.getHeaderFilterGroupParameters(Y,ee),q=null===(J=Y.headerFilter)||void 0===J?void 0:J.dataSource,Z=this.option("headerFilter"),X=!1,M={component:this.component};if(j){if((0,h.$K)(q)&&!(0,h.mf)(q))M.dataSource=(0,b.aN)(q);else if(Y.lookup)if(X=!0,this.option("syncLookupFilterValues")){this._currentColumn=Y;var oe=this._dataController.getCombinedFilter();this._currentColumn=null,M.dataSource=g.Z.getWrappedLookupDataSource(Y,j,oe)}else M.dataSource=g.Z.normalizeLookupDataSource(Y.lookup);else{var fe=Array.isArray(G)?G.length-1:0;this._currentColumn=Y;var Te=this._dataController.getCombinedFilter();this._currentColumn=null,M.dataSource={filter:Te,group:G,useDefaultSearch:!0,load:ae=>{var _e=new E.BH;return ae.dataField=Y.dataField||Y.name,j.load(ae).done(function(ye){var ne=ee&&function P(Y){return"Z"===Y?.slice(-1)||"'Z'"===Y?.slice(-3)}(Y.serializationFormat)&&fe>3;ne&&(ye=R(ye,Y)),ze._processGroupItems(ye,null,null,{level:fe,column:Y,headerFilterOptions:Z}),_e.resolve(ye)}).fail(_e.reject),_e}}}(0,h.mf)(q)&&q.call(Y,M);var Be=M.dataSource.postProcess,ze=this;return M.dataSource.postProcess=function(ae){var _e=ae;return X&&(0===this.pageIndex()&&!this.searchValue()&&(_e=_e.slice(0)).unshift(null),ze._processGroupItems(_e,null,null,{level:0,column:Y,headerFilterOptions:Z})),_e=Be&&Be.call(this,_e)||_e,ze._updateSelectedState(_e,Y),_e},M.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(Y,J){var j=this._columnsController,ee=(0,x.l)(!0,{},this._columnsController.getColumns()[Y]);if(ee){var G=j.getVisibleIndex(Y),q=this.getView(J?"headerPanel":"columnHeadersView"),Z=Z||q.getColumnElements().eq(J?ee.groupIndex:G);this.showHeaderFilterMenuBase({columnElement:Z,column:ee,applyFilter:!0,apply:function(){j.columnOption(Y,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(Y){var J=this,j=Y.column;if(j){var ee=C.Z.getGroupInterval(j),G=J._dataController.dataSource(),q=G&&G.remoteOperations().filtering;(0,x.l)(Y,j,{type:ee&&ee.length>1?"tree":"list",remoteFiltering:q,onShowing:function(Z){var X=Z.component.$overlayContent().dxResizable("instance");X&&X.option("onResizeEnd",function(M){var oe=J.getController("columns"),fe=oe.columnOption(Y.dataField,"headerFilter");(fe=fe||{}).width=M.width,fe.height=M.height,oe.columnOption(Y.dataField,"headerFilter",fe,!0)})},onHidden:()=>(0,S.vg)(this)}),Y.dataSource=J.getDataSource(Y),Y.isFilterBuilder&&(Y.dataSource.filter=null,Y.alignment="right"),J._headerFilterView.showHeaderFilterMenu(Y.columnElement,Y)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),W=(0,x.l)({},a.Tr,{_renderCellContent:function(Y,J){var ee,j=this,G=J.column;!G.command&&(0,a.eT)(G)&&j.option("headerFilter.visible")&&"header"===J.rowType&&(ee=j._applyColumnState({name:"headerFilter",rootElement:Y,column:G,showColumnLines:j.option("showColumnLines")}))&&j._subscribeToIndicatorEvent(ee,G,"headerFilter"),this.callBase.apply(this,arguments)},_subscribeToIndicatorEvent:function(Y,J,j){"headerFilter"===j&&c.Z.on(Y,s.u,this.createAction(ee=>{ee.event.stopPropagation(),(0,S.c3)(Y,this),this.getController("headerFilter").showHeaderFilterMenu(J.index,!1)}))},_updateIndicator:function(Y,J,j){var ee=this.callBase(Y,J,j);ee&&this._subscribeToIndicatorEvent(ee,J,j)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(Y){g.Z.checkChanges(Y.optionNames,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(Y)}}),z=(0,x.l)({},a.Tr,{_createGroupPanelItem:function(Y,J){var G,j=this,ee=j.callBase.apply(j,arguments);return!J.command&&(0,a.eT)(J)&&j.option("headerFilter.visible")&&(G=j._applyColumnState({name:"headerFilter",rootElement:ee,column:{alignment:(0,v.q)(j.option("rtlEnabled")),filterValues:J.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&c.Z.on(G,s.u,j.createAction(function(q){q.event.stopPropagation(),j.getController("headerFilter").showHeaderFilterMenu(J.index,!0)})),ee}}),K={defaultOptions:function(){return{syncLookupFilterValues:!0,headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:p.Z.format("dxDataGrid-headerFilterEmptyValue"),ok:p.Z.format("dxDataGrid-headerFilterOK"),cancel:p.Z.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:B},views:{headerFilterView:a.U3},extenders:{controllers:{data:{skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var Y=[this.callBase()],J=this._columnsController.getVisibleColumns(null,!0),ee=this.getController("headerFilter").getCurrentColumn();return(0,d.S6)(J,function(G,q){var Z;if((!ee||ee.index!==q.index)&&(0,a.eT)(q)&&q.calculateFilterExpression&&Array.isArray(q.filterValues)&&q.filterValues.length){var X=[];(0,d.S6)(q.filterValues,function(M,oe){Array.isArray(oe)?Z=oe:(q.deserializeValue&&!g.Z.isDateType(q.dataType)&&"number"!==q.dataType&&(oe=q.deserializeValue(oe)),Z=q.createFilterExpression(oe,"=","headerFilter")),Z&&(Z.columnIndex=q.index),X.push(Z)}),X=g.Z.combineFilters(X,"or"),Y.push("exclude"===q.filterType?["!",X]:X)}}),g.Z.combineFilters(Y)}}},views:{columnHeadersView:W,headerPanel:z}}}},1074:(Rn,he,u)=>{"use strict";u.d(he,{By:()=>w,Tr:()=>R,U3:()=>T,eT:()=>k});var o=u(9904),c=u(3390),I=u(2879),C=u(1828),g=u(2718),a=u(5873),p=u(8531),s=u(7463),l=u(4137),v=(u(3930),u(107),u(9009)),x="dx-header-filter";function E(P){P=P||[];for(var B=0;B<P.length;B++)P[B].selected=!1,E(P[B].items)}function S(P,B){if(!P.component.option("searchValue")){var W=(0,o.Z)(P.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");W&&B&&B.length&&W.option("value",void 0)}}function O(P,B){var W=B.headerFilter;return W&&(0,C.$K)(W.allowSearch)?W.allowSearch:P.option("headerFilter.allowSearch")}function w(P,B,W){if(B^W){if(P.selected=!0,W&&P.items)for(var z=0;z<P.items.length;z++)if(!P.items[z].selected){P.selected=void 0;break}}else(W||P.selected)&&(P.selected=!1,E(P.items))}var T=c.Z.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(P){var B=this.getListContainer(),W=B.option("searchValue"),V=[];W||P.isFilterBuilder||!B.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?"tree"===P.type&&(P.filterType&&(P.filterType="include"),function U(K,Y,J){(0,g.S6)(Y,function(j,ee){if(void 0!==ee.selected&&!!ee.selected^J){var G=B._getNode(ee),Z=B._hasChildren(G)&&ee.items&&ee.items.some(X=>X.selected);if(!W||!Z)return void K.push(ee.value)}ee.items&&ee.items.length&&U(K,ee.items,J)})}(V,B.option("items"),!1),P.filterValues=V):("tree"===P.type&&(P.filterType="exclude"),Array.isArray(P.filterValues)&&(P.filterValues=[])),P.filterValues&&!P.filterValues.length&&(P.filterValues=null),P.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(P,B){if(B){this._initializePopupContainer(B);var W=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(P,B),W.show()}},hideHeaderFilterMenu:function(){var P=this.getPopupContainer();P&&P.hide()},updatePopup:function(P,B){var W=this.option("showColumnLines"),z="right"===B.alignment^!W?"left":"right";this._popupContainer.setAria({role:"dialog",label:v.Z.format("dxDataGrid-headerFilterLabel")}),this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:z+" top",at:z+" bottom",of:P,collision:"flip fit"}))},_getSearchExpr:function(P){var B=P.lookup,z=P.headerFilter&&P.headerFilter.dataSource;if(P.useDefaultSearchExpr||(0,C.$K)(z)&&!(0,C.mf)(z))return"text";if(B)return B.displayExpr||"this";if(P.dataSource){var V=P.dataSource.group;if(Array.isArray(V)&&V.length>0)return V[0].selector;if((0,C.mf)(V)&&!P.remoteFiltering)return V}return P.dataField||P.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(P){var B=this,W=B.element(),z=B.option("headerFilter"),K={width:P.headerFilter&&P.headerFilter.width||z&&z.width,height:P.headerFilter&&P.headerFilter.height||z&&z.height,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,hideOnParentScroll:!1,dragEnabled:!1,hideOnOutsideClick:!0,focusStateEnabled:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:z.texts.ok,onClick:function(){B.applyHeaderFilter(P)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:z.texts.cancel,onClick:function(){B.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(Y){Y.component.$content().parent().addClass("dx-dropdowneditor-overlay"),B._initializeListContainer(P),P.onShowing&&P.onShowing(Y)},onShown:function(){B.getListContainer().focus()},onHidden:P.onHidden,onInitialized:function(Y){var J=Y.component;J.option("animation",J._getDefaultOptions().animation)}};(0,C.$K)(B._popupContainer)?B._popupContainer.option(K):B._popupContainer=B._createComponent(W,p.Z,K)},_initializeListContainer:function(P){var B=this,W=B._popupContainer.$content(),z={searchEnabled:O(B,P),searchTimeout:B.option("headerFilter.searchTimeout"),searchMode:P.headerFilter&&P.headerFilter.searchMode||"",dataSource:P.dataSource,onContentReady:function(){B.renderCompleted.fire()},itemTemplate:function(U,K,Y){var J=(0,o.Z)(Y);return P.encodeHtml?J.text(U.text):J.html(U.text)}};function V(U){"searchValue"===U.fullName&&!P.isFilterBuilder&&!1!==B.option("headerFilter.hideSelectAllOnSearch")&&("tree"===P.type?U.component.option("showCheckBoxesMode",U.value?"normal":"selectAll"):U.component.option("selectionMode",U.value?"multiple":"all"))}B._listContainer="tree"===P.type?B._createComponent((0,o.Z)("<div>").appendTo(W),s.Z,(0,a.l)(z,{showCheckBoxesMode:P.isFilterBuilder?"normal":"selectAll",onOptionChanged:V,keyExpr:"id"})):B._createComponent((0,o.Z)("<div>").appendTo(W),l.Z,(0,a.l)(z,{searchExpr:B._getSearchExpr(P),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:P.isFilterBuilder?"multiple":"all",onOptionChanged:V,onSelectionChanged:function(U){var K=U.component.option("items"),Y=U.component.option("selectedItems");if(!U.component._selectedItemsUpdating&&!U.component.option("searchValue")&&!P.isFilterBuilder){var J=P.filterValues||[];0===Y.length&&K.length&&(J.length<=1||"exclude"===P.filterType&&J.length===K.length-1)?(P.filterType="include",P.filterValues=[]):Y.length===K.length&&(P.filterType="exclude",P.filterValues=[])}(0,g.S6)(K,function(ee,G){var q=I.Z.getIndexByKey(G,Y,null)>=0;if(!!G.selected!==q){G.selected=q,P.filterValues=P.filterValues||[];var X=I.Z.getIndexByKey(G.value,P.filterValues,null);X>=0&&P.filterValues.splice(X,1),q^"exclude"===P.filterType&&P.filterValues.push(G.value)}}),S(U,P.filterValues)},onContentReady:function(U){var K=U.component,Y=K.option("items"),J=[];(0,g.S6)(Y,function(){this.selected&&J.push(this)}),K._selectedItemsUpdating=!0,K.option("selectedItems",J),K._selectedItemsUpdating=!1,S(U,P.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}}),k=function(P){return(0,C.$K)(P.allowHeaderFiltering)?P.allowHeaderFiltering:P.allowFiltering},R={_applyColumnState:function(P){var B,z=P.column;if("headerFilter"===P.name){if(P.rootElement.find("."+x).remove(),k(z)){B=this.callBase(P).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(z)),this.option("useLegacyKeyboardNavigation")||B.attr("tabindex",this.option("tabindex")||0);var V=v.Z.format("dxDataGrid-headerFilterIndicatorLabel",z.caption);B.attr("aria-label",V),B.attr("aria-haspopup","dialog"),B.attr("role","button")}return B}return this.callBase(P)},_isHeaderFilterEmpty:function(P){return!P.filterValues||!P.filterValues.length},_getIndicatorClassName:function(P){return"headerFilter"===P?x:this.callBase(P)},_renderIndicator:function(P){var B=P.container,W=P.indicator;if("headerFilter"===P.name){var z=this.option("rtlEnabled");if(B.children().length&&(!z&&"right"===P.columnAlignment||z&&"left"===P.columnAlignment))return void B.prepend(W)}this.callBase(P)},optionChanged:function(P){if("headerFilter"===P.name){var B="columnHeadersView"===this.name;this._invalidate(B,B),P.handled=!0}else this.callBase(P)}}},2758:(Rn,he,u)=>{"use strict";u.d(he,{z:()=>E});var o=u(4817),c=u(9904),I=u(7858),C=u(5004),g=u(7674),a=u(1828),p=u(9009),s=u(5873),l=u(6738),h="toolbar-button",x=["addRowButton","applyFilterButton","columnChooserButton","exportButton","groupPanel","revertButton","saveButton","searchPanel"],E={defaultOptions:function(){return{}},views:{headerPanel:C.p.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,c.Z)("<div>").addClass(this.addWidgetPrefix(h))},_getToolbarButtonClass:function(S){var O=S?" "+S:"";return this.addWidgetPrefix(h)+O},_getToolbarOptions:function(){var S=this.option("toolbar"),O={toolbarOptions:{items:this._getToolbarItems(),visible:S?.visible,disabled:S?.disabled,onItemRendered:function(k){var R=k.itemData.onItemRendered;R&&R(k)}}},w=S?.items;if(O.toolbarOptions.items=this._normalizeToolbarItems(O.toolbarOptions.items,w),this.executeAction("onToolbarPreparing",O),O.toolbarOptions&&!(0,a.$K)(O.toolbarOptions.visible)){var T=O.toolbarOptions.items;O.toolbarOptions.visible=!(null==T||!T.length)}return O.toolbarOptions},_normalizeToolbarItems:function(S,O){S.forEach(P=>{if(!x.includes(P.name))throw new Error("Default toolbar item '".concat(P.name,"' is not added to DEFAULT_TOOLBAR_ITEM_NAMES"))});var w={location:"after"},T=Array.isArray(O);if(!(0,a.$K)(O))return S;T||(O=[O]);var k={};S.forEach(P=>{k[P.name]=P});var R=O.map(P=>((0,a.HD)(P)&&(P={name:P}),(0,a.$K)(P.name)&&((0,a.$K)(k[P.name])?P=(0,s.l)(!0,{},k[P.name],P):x.includes(P.name)&&(P=(0,o.Z)({},P,{visible:!1}))),(0,s.l)(!0,{},w,P)));return T?R:R[0]},_renderCore:function(){if(this._toolbar)this._toolbar.option(this._toolbarOptions);else{var S=this.element();S.addClass(this.addWidgetPrefix("header-panel"));var O=p.Z.format(this.component.NAME+"-ariaToolbar"),w=(0,c.Z)("<div>").attr("aria-label",O).appendTo(S);this._toolbar=this._createComponent(w,I.Z,this._toolbarOptions)}},_columnOptionChanged:g.ZT,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(S,O){var w=this._toolbar;if(w){var T=w.option("items")||[],k=T.indexOf(T.filter(function(P){return P.name===S})[0]);if(k>=0){var R="items["+k+"]";w.option(R+".options")?w.option(R+".options.disabled",O):w.option(R+".disabled",O)}}},updateToolbarDimensions:function(){var S;null===(S=this._toolbar)||void 0===S||S.updateDimensions()},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(S){if("onToolbarPreparing"===S.name&&(this._invalidate(),S.handled=!0),"toolbar"===S.name&&(S.handled=!0,this._toolbar)){var O=(0,l.Zw)(S.fullName),w=S.fullName.replace(/^toolbar\./,"");if(1===O.length){var T=this._getToolbarOptions();this._toolbar.option(T)}else if("items"===O[1])if(2===O.length){var k=this._getToolbarOptions();this._toolbar.option("items",k.items)}else if(3===O.length){var R=this._normalizeToolbarItems(this._getToolbarItems(),S.value);this._toolbar.option(w,R)}else O.length>=4&&this._toolbar.option(w,S.value);else this._toolbar.option(w,S.value)}this.callBase(S)},isVisible:function(){return!(!this._toolbarOptions||!this._toolbarOptions.visible)},allowDragging:g.ZT})},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},6726:(Rn,he,u)=>{"use strict";u.d(he,{U:()=>tn});var o=u(1805),c=u(9904),I=u(9897),C=u(913),g=u(3390),a=u(2879),p=u(1828),s=u(7),l=u(8225),d=u(8690),h=u(227),v=u(7674),x=u(2559),b=u(4722),y=u(114),E=u(2941),S="rowsview",O="edit-form",T="dx-row",z="dx-freespace-row",U="dx-master-detail-cell",K="dx-editor-cell",J="dx-command-expand",j="dx-command-select",G="[class^=dx-command]",q="dx-cell-focus-disabled",X="dx-state-focused",fe="delete",Te="input:not([type='hidden']), textarea, a, select, button, [tabindex], .dx-checkbox",Be="".concat(Te,", .dx-dropdowneditor-icon"),le="columnHeadersView",pe=["shift","control","alt"];function Se(Pe){return Pe&&Pe.hasClass("dx-group-row")}function re(Pe){return Pe&&Pe.hasClass("dx-master-detail-row")}function te(Pe){return Pe&&!Se(Pe)&&!re(Pe)}function ue(Pe,$e){return!Pe._isRowEditMode()&&$e&&!$e.hasClass(j)&&$e.hasClass(K)}function be(Pe){return(0,p.$K)(Pe)&&Pe.length>0}function Ae(){return"desktop"!==E.Z.current().deviceType}function Ne(Pe){return!!Pe.parent(".".concat("dx-header-row")).length}var tn={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:g.Z.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._selectionController=this.getController("selection"),this._editingController=this.getController("editing"),this._headerPanel=this.getView("headerPanel"),this._columnsController=this.getController("columns"),this._editorFactory=this.getController("editorFactory"),this.isKeyboardEnabled()&&(x.bT(),this._updateFocusTimeout=null,this._fastEditingStarted=!1,this._focusedCellPosition={},this._canceledCellPosition=null,this._editorFactory.focused.add(Pe=>{this.setupFocusedView(),this._isNeedScroll&&Pe.is(":visible")&&this._focusedView&&this._focusedView.getScrollable&&(this._focusedView._scrollToElement(Pe),this._isNeedScroll=!1)}),this._initViewHandlers(),this._initDocumentHandlers(),this.createAction("onKeyDown"))},_initViewHandlers:function(){var Pe=this.getView("rowsView"),$e=ge=>{var Ce=(0,c.Z)(ge.target),De=(0,c.Z)(ge.relatedTarget).closest(Pe.element()).length,Ye=Ce.is("a");if(ge.relatedTarget&&Ye&&!De&&this._isEventInCurrentGrid(ge)){var bt=this._getFocusedCell();bt=be(bt)?bt:Pe.getCellElements(0).filter("[tabindex]").eq(0),Ce.closest(bt).length||(ge.preventDefault(),C.Z.trigger(bt,"focus"))}};Pe.renderCompleted.add(ge=>{var Ce=Pe.element(),De=!ge||"refresh"===ge.changeType,Ye=this._focusedView&&this._focusedView.name===Pe.name,yt=ge&&("append"===ge.changeType||"prepend"===ge.changeType),gn=(0,c.Z)(I.Z.getRootNode(Ce.get&&Ce.get(0))).find(":focus"),ut=!gn.length||gn.closest(Ce).length;C.Z.off(Ce,"focusin",$e),C.Z.on(Ce,"focusin",$e),this._initPointerEventHandler(),this._initKeyDownHandler(),this._setRowsViewAttributes(),Ye&&ut&&(this._isNeedFocus?!yt:this._isHiddenFocus&&De&&(null==ge||!ge.virtualColumnsScrolling))&&this._updateFocus(!0)})},_initDocumentHandlers:function(){var Pe=I.Z.getDocument();this._documentClickHandler=this.createAction($e=>{var ge=(0,c.Z)($e.event.target),Ce=this._isEventInCurrentGrid($e.event)&&ge.closest(".".concat(this.addWidgetPrefix(S))).length,De=ge.closest(".".concat("dx-dropdowneditor-overlay")).length,Ye=this.getController("columnsResizer"),bt=!!Ye&&Ye.isResizing();Ce||De||bt||(!(this._focusedView&&ge.parents().filter(this._focusedView.element()).length>0)&&this._resetFocusedCell(!0),this._resetFocusedView())}),C.Z.on(Pe,(0,l.V4)(d.Z.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler)},_setRowsViewAttributes:function(){var Pe=this._getRowsViewElement();!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(Pe)},_initPointerEventHandler:function(){var Pe=Ae()?h.u:d.Z.down,$e=".".concat(T," > td, .").concat(T),ge=this._getRowsViewElement();(0,p.$K)(this._pointerEventAction)||(this._pointerEventAction=this.createAction(this._pointerEventHandler)),C.Z.off(ge,(0,l.V4)(Pe,"dxDataGridKeyboardNavigation"),this._pointerEventAction),C.Z.on(ge,(0,l.V4)(Pe,"dxDataGridKeyboardNavigation"),$e,this._pointerEventAction)},_initKeyDownHandler:function(){var Pe=this._getRowsViewElement();y.dG.off(this._keyDownListener),this._keyDownListener=y.dG.on(Pe,null,$e=>this._keyDownHandler($e))},dispose:function(){this.callBase(),this._resetFocusedView(),y.dG.off(this._keyDownListener),C.Z.off(I.Z.getDocument(),(0,l.V4)(d.Z.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),clearTimeout(this._updateFocusTimeout),x.Ni()},optionChanged:function(Pe){switch(Pe.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":Pe.handled=!0;break;default:this.callBase(Pe)}},isRowFocusType:function(){return"row"===this.focusType},isCellFocusType:function(){return"cell"===this.focusType},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType="row")},setCellFocusType:function(){this.focusType="cell"},_keyDownHandler:function(Pe){var $e,ge=!0;this._isNeedFocus=!0,this._isNeedScroll=!0;var Ce=this._processOnKeyDown(Pe),De=null===($e=this._editingController)||void 0===$e?void 0:$e.isEditing(),Ye=Pe.originalEvent;if(Ye.isDefaultPrevented())return this._isNeedFocus=!1,void(this._isNeedScroll=!1);if(pe.indexOf(Pe.keyName)<0&&this._updateFocusedCellPositionByTarget(Ye.target),!Ce){switch(Pe.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(Pe,De),Ce=!0;break;case"upArrow":case"downArrow":Pe.ctrl?x.fv("rowsView",this,Ye):this._upDownKeysHandler(Pe,De),Ce=!0;break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(Pe),Ce=!0;break;case"space":Ce=this._spaceKeyHandler(Pe,De);break;case"A":(0,l.j1)(Pe.originalEvent)?(this._ctrlAKeyHandler(Pe,De),Ce=!0):Ce=this._beginFastEditing(Pe.originalEvent);break;case"tab":this._tabKeyHandler(Pe,De),Ce=!0;break;case"enter":this._enterKeyHandler(Pe,De),Ce=!0;break;case"escape":this._escapeKeyHandler(Pe,De),Ce=!0;break;case"F":(0,l.j1)(Pe.originalEvent)?(this._ctrlFKeyHandler(Pe),Ce=!0):Ce=this._beginFastEditing(Pe.originalEvent);break;case"F2":this._f2KeyHandler(),Ce=!0;break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&(Ce=this._beginFastEditing(Ye,!0))}!Ce&&!this._beginFastEditing(Ye)&&(this._isNeedFocus=!1,this._isNeedScroll=!1,ge=!1),ge&&Ye.stopPropagation()}},_processOnKeyDown:function(Pe){var $e=Pe.originalEvent,ge={handled:!1,event:$e};return this.executeAction("onKeyDown",ge),Pe.ctrl=$e.ctrlKey,Pe.alt=$e.altKey,Pe.shift=$e.shiftKey,!!ge.handled},_closeEditCell:function(){setTimeout(()=>{this._editingController.closeEditCell()})},_leftRightKeysHandler:function(Pe,$e){var ge=this.getVisibleRowIndex(),Ce=Pe.originalEvent,De=this._focusedView&&this._focusedView.getRow(ge),Ye=this._getDirectionCodeByKey(Pe.keyName),bt=this._isFastEditingStarted();if((!$e||bt)&&te(De)){this.setCellFocusType(),bt&&this._closeEditCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(Ye);var kt=this._getNextCell(Ye);be(kt)&&this._arrowKeysHandlerFocusCell(Ce,kt,Ye),Ce&&Ce.preventDefault()}},_upDownKeysHandler:function(Pe,$e){var ge,Ce,De=this.getVisibleRowIndex(),Ye=this._focusedView&&this._focusedView.getRow(De),bt=Pe.originalEvent,yt="upArrow"===Pe.keyName,kt=this._dataController.dataSource(),gn=null===(ge=this._editingController)||void 0===ge||null===(Ce=ge.isEditRowByIndex)||void 0===Ce?void 0:Ce.call(ge,De),ut=this._isFastEditingStarted();if((!gn||!$e||ut)&&Ye&&!re(Ye)){if(ut&&this._closeEditCell(),!this._navigateNextCell(bt,Pe.keyName)&&this._isVirtualRowRender()&&yt&&kt&&!kt.isLoading()){var St=(0,o.zp)(Ye);this._scrollBy(0,-St,this._focusedCellPosition.rowIndex-1,bt)}bt&&bt.preventDefault()}},_pageUpDownKeyHandler:function(Pe){var $e=this._dataController.pageIndex(),ge=this._dataController.pageCount(),Ce=this.option("paging.enabled"),De="pageUp"===Pe.keyName,Ye=De?-1:1,bt=this.getView("rowsView").getScrollable();Ce&&!this._isVirtualScrolling()?(De?$e>0:$e<ge-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex($e+Ye),Pe.originalEvent.preventDefault()):bt&&(0,o.Cr)(bt.container())<(0,o.Cr)(bt.$content())&&(this._scrollBy(0,(0,o.Cr)(bt.container())*Ye),Pe.originalEvent.preventDefault())},_spaceKeyHandler:function(Pe,$e){var ge=this.getVisibleRowIndex(),Ce=(0,c.Z)(Pe.originalEvent&&Pe.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!$e){var De="row"===this._getElementType(Ce)&&this.isRowFocusType()&&te(Ce);return Ce.hasClass(j)&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),!!(De||Ce.parent().hasClass("dx-data-row")||Ce.hasClass(this.addWidgetPrefix(S)))&&(this._selectionController.changeItemSelection(ge,{shift:Pe.shift,control:Pe.ctrl}),Pe.originalEvent.preventDefault(),!0)}return this._beginFastEditing(Pe.originalEvent)},_ctrlAKeyHandler:function(Pe,$e){!$e&&!Pe.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),Pe.originalEvent.preventDefault())},_tabKeyHandler:function(Pe,$e){var ge=this.option("editing"),Ce=Pe.shift?"previous":"next",Ye=!((0,p.$K)(this._focusedCellPosition)&&!(0,p.Qr)(this._focusedCellPosition))||!Pe.shift&&this._isLastValidCell(this._focusedCellPosition)||Pe.shift&&this._isFirstValidCell(this._focusedCellPosition),bt=Pe.originalEvent.target,yt=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(bt,Ce)){if((0,c.Z)(yt).addClass(X),ge&&bt&&!Ye)if((0,c.Z)(bt).hasClass(this.addWidgetPrefix(S))&&this._resetFocusedCell(),this._isVirtualColumnRender()&&this._processVirtualHorizontalPosition(Ce),$e){if(!this._editingCellTabHandler(Pe,Ce))return}else this._targetCellTabHandler(Pe,Ce)&&(Ye=!0);Ye?(this._editorFactory.loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(!0),this._resetFocusedView(),this._closeEditCell())):Pe.originalEvent.preventDefault()}},_getMaxHorizontalOffset:function(){var Pe=this.component.getScrollable(),$e=this.getView("rowsView");return Pe?Pe.scrollWidth()-(0,o.dz)($e.element()):0},_isColumnRendered:function(Pe){var $e=this._columnsController.getVisibleColumns(null,!0),ge=this._columnsController.getVisibleColumns(),Ce=$e[Pe],De=!1;return Ce&&(De=ge.indexOf(Ce)>=0),De},_isFixedColumn:function(Pe){var ge=this._columnsController.getVisibleColumns(null,!0)[Pe];return!!ge&&!!ge.fixed},_isColumnVirtual:function(Pe){var $e=Pe-this._columnsController.getColumnIndexOffset(),Ce=this._columnsController.getVisibleColumns()[$e];return!!Ce&&"virtual"===Ce.command},_processVirtualHorizontalPosition:function(Pe){var Ce,$e=this.component.getScrollable(),ge=this.getColumnIndex(),De=0,Ye=!1;switch(Pe){case"next":case"nextInRow":var bt=this._getVisibleColumnCount();Ce=ge+1,De=this.option("rtlEnabled")?this._getMaxHorizontalOffset():0,Ye="next"===Pe?bt===Ce||this._isFixedColumn(ge)&&!this._isColumnRendered(Ce):bt>Ce&&this._isFixedColumn(ge)&&!this._isColumnRendered(Ce);break;case"previous":case"previousInRow":if(Ce=ge-1,De=this.option("rtlEnabled")?0:this._getMaxHorizontalOffset(),"previous"===Pe){var yt=this._columnsController.getColumnIndexOffset();Ye=Ce<0&&0===yt||this._isFixedColumn(ge)&&!this._isColumnRendered(Ce)}else Ye=Ce>=0&&this._isFixedColumn(ge)&&!this._isColumnRendered(Ce)}Ye?$e.scrollTo({left:De}):(0,p.$K)(Ce)&&(0,p.$K)(Pe)&&this._isColumnVirtual(Ce)&&0!==(De=this._getHorizontalScrollPositionOffset(Pe))&&$e.scrollBy({left:De,top:0})},_getHorizontalScrollPositionOffset:function(Pe){var $e=0,ge=this._getCell(this._focusedCellPosition),Ce=ge&&(0,o.Y_)(ge);if(Ce>0){var De=this.option("rtlEnabled")?-1:1;$e="nextInRow"===Pe||"next"===Pe?Ce*De:Ce*De*-1}return $e},_editingCellTabHandler:function(Pe,$e){var De,ge=Pe.originalEvent.target,Ce=this._getCellElementFromTarget(ge),Ye=Pe.originalEvent,bt=this._getElementType(ge);if(Ce.is(G))return!this._targetCellTabHandler(Pe,$e);this._updateFocusedCellPosition(Ce);var yt=this._getNextCellByTabKey(Ye,$e,bt);if(!(Ce=yt.$cell)||this._handleTabKeyOnMasterDetailCell(Ce,$e))return!1;var kt=this._columnsController,ut=this.getView("rowsView").getCellIndex(Ce)+kt.getColumnIndexOffset(),Ve=kt.getVisibleColumns(null,!0)[ut],St=Ce.parent(),Xe=this._getRowIndex(St),Vt=this._dataController.items()[Xe];if(Ve&&Ve.allowEditing){var dt=!Vt||"data"===Vt.rowType;De=this._editingController.allowUpdating({row:Vt})?dt:Vt&&Vt.isNewRow}return De||this._closeEditCell(),this._focusCell(Ce,!yt.isHighlighted)&&(!this._isRowEditMode()&&De?this._editFocusedCell():this._focusInteractiveElement(Ce,Pe.shift)),!0},_targetCellTabHandler:function(Pe,$e){var yt,ge=Pe.originalEvent,Ce=ge.target,De=this._getCellElementFromTarget(Ce),Ye=this._getInteractiveElement(De,!Pe.shift),bt=!1;if(!ue(this,De)&&Ye.length&&Ce!==Ye.get(0))bt=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,c.Z)(Ce).hasClass(T)&&this._updateFocusedCellPosition(De),yt=this._getElementType(Ce),this.isRowFocusType()&&(this.setCellFocusType(),"row"===yt&&te((0,c.Z)(Ce))&&(Ce=this.getFirstValidCellInRow((0,c.Z)(Ce)),yt=this._getElementType(Ce)));var kt=this._getNextCellByTabKey(ge,$e,yt);if(!(De=kt.$cell)||!(De=this._checkNewLineTransition(ge,De)))return!1;this._focusCell(De,!kt.isHighlighted),ue(this,De)||this._focusInteractiveElement(De,Pe.shift)}return bt},_getNextCellByTabKey:function(Pe,$e,ge){var Ce=this._getNextCell($e,ge),De=Ce&&this._fireFocusedCellChanging(Pe,Ce,!0);return!De||De.cancel?{}:(De.$newCellElement&&(Ce=De.$newCellElement),{$cell:Ce,isHighlighted:De.isHighlighted})},_checkNewLineTransition:function(Pe,$e){var ge=this.getVisibleRowIndex(),Ce=$e.parent();if(ge!==this._getRowIndex(Ce)){var De=this._getCellPosition($e),Ye=this._fireFocusedRowChanging(Pe,Ce);if(Ye.cancel)return;Ye.rowIndexChanged&&(this.setFocusedColumnIndex(De.columnIndex),$e=this._getFocusedCell())}return $e},_enterKeyHandler:function(Pe,$e){var ge=this._getFocusedCell(),Ce=this.getVisibleRowIndex(),De=this._focusedView&&this._focusedView.getRow(Ce);if(this.option("grouping.allowCollapsing")&&Se(De)||this.option("masterDetail.enabled")&&ge&&ge.hasClass(J)){var Ye=this._dataController.getKeyByRowIndex(Ce),bt=this._dataController.items()[Ce];void 0!==Ye&&bt&&bt.data&&!bt.data.isContinuation&&this._dataController.changeRowExpand(Ye)}else this._processEnterKeyForDataCell(Pe,$e)},_processEnterKeyForDataCell:function(Pe,$e){var ge=this._getEnterKeyDirection(Pe),Ce=this._allowEditingOnEnterKey();$e||!Ce&&ge?(this._handleEnterKeyEditingCell(Pe.originalEvent),"next"===ge||"previous"===ge?this._targetCellTabHandler(Pe,ge):("upArrow"===ge||"downArrow"===ge)&&this._navigateNextCell(Pe.originalEvent,ge)):Ce&&this._startEditing(Pe)},_getEnterKeyDirection:function(Pe){var $e=this.option("keyboardNavigation.enterKeyDirection"),ge=Pe.shift;return"column"===$e?ge?"upArrow":"downArrow":"row"===$e?ge?"previous":"next":void 0},_handleEnterKeyEditingCell:function(Pe){var $e=Pe.target,ge=this._getCellElementFromTarget($e),Ce=this._isRowEditMode();this._updateFocusedCellPosition(ge),Ce?(this._focusEditFormCell(ge),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(C.Z.trigger((0,c.Z)($e),"change"),this._closeEditCell(),Pe.preventDefault())},_escapeKeyHandler:function(Pe,$e){var ge=this._getCellElementFromTarget(Pe.originalEvent.target);$e&&(this._updateFocusedCellPosition(ge),this._isRowEditMode()?(this._focusEditFormCell(ge),this._editingController.cancelEditData(),0===this._dataController.items().length&&(this._resetFocusedCell(),this._editorFactory.loseFocus())):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),Pe.originalEvent.preventDefault())},_ctrlFKeyHandler:function(Pe){if(this.option("searchPanel.visible")){var $e=this._headerPanel.getSearchTextEditor();$e&&($e.focus(),Pe.originalEvent.preventDefault())}},_f2KeyHandler:function(){var Pe=this._editingController.isEditing(),$e=this.getVisibleRowIndex(),ge=this._focusedView&&this._focusedView.getRow($e);!Pe&&te(ge)&&this._startEditing()},_navigateNextCell:function(Pe,$e){var ge=this._getNextCell($e),Ce=this._getDirectionCodeByKey($e);return!(!ge||!this._isCellValid(ge))&&this._arrowKeysHandlerFocusCell(Pe,ge,Ce)},_arrowKeysHandlerFocusCell:function(Pe,$e,ge){var De=this._fireFocusChangingEvents(Pe,$e,"prevRow"===ge||"nextRow"===ge,!0);return $e=De.$newCellElement,!(De.cancel||!this._isCellValid($e)||(this._focus($e,!De.isHighlighted),0))},_beginFastEditing:function(Pe,$e){if(!this._isFastEditingAllowed()||Pe.altKey||Pe.ctrlKey||this._editingController.isEditing())return!1;if($e)this._startEditing(Pe,fe);else{var Ce=Pe.keyCode||Pe.which,De=Pe.key||Ce&&String.fromCharCode(Ce);De&&(1===De.length||De===fe)&&this._startEditing(Pe,De)}return!0},_pointerEventHandler:function(Pe){var $e=Pe.event||Pe,ge=(0,c.Z)($e.currentTarget),Ce=this.getView("rowsView"),De=Ce&&Ce.element(),Ye=ge.parent(),bt=(0,c.Z)($e.target).is(Te),yt=!!(0,c.Z)($e.target).closest(".".concat("dx-revert-button")).length,kt=ge.hasClass(J);this._isEventInCurrentGrid($e)&&(yt||!this._isCellValid(ge,!bt)&&!kt?ge.is("td")&&this._resetFocusedCell():(ge=this._isInsideEditForm(ge)?(0,c.Z)($e.target):ge,this._focusView(),(0,c.Z)(De).removeClass(X),Ye.hasClass(z)?(this._updateFocusedCellPosition(ge),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus(!0)):this._isMasterDetailCell(ge)?this._updateFocusedCellPosition(ge):this._clickTargetCellHandler($e,ge)))},_clickTargetCellHandler:function(Pe,$e){var ge=this.getView("rowsView").getCellIndex($e),Ce=this._columnsController.getVisibleColumns()[ge],De=this._isCellEditMode();this.setCellFocusType();var Ye=this._fireFocusChangingEvents(Pe,$e,!0);if($e=Ye.$newCellElement,Ye.cancel)this.setRowFocusType(),this.setFocusedRowIndex(Ye.prevRowIndex),this._editingController.isEditing()&&De&&this._closeEditCell();else{if(Ye.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(Ye.rowIndexChanged&&($e=this._getFocusedCell()),!Ye.isHighlighted&&!De&&this.setRowFocusType(),this._updateFocusedCellPosition($e),this._allowRowUpdating()&&De&&Ce&&Ce.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{$e=this._getFocusedCell();var bt=Pe&&(0,c.Z)(Pe.target).closest(Be+", td"),yt=bt&&bt.not($e).is(Be),kt=!!Ce&&!Ce.command&&$e.hasClass(K);this._focus($e,!kt&&(!Ye.isHighlighted||yt),yt)}}},_allowRowUpdating:function(){var Pe=this.getVisibleRowIndex(),$e=this._dataController.items()[Pe];return this._editingController.allowUpdating({row:$e},"click")},focus:function(Pe){var $e,ge=this.option("focusedRowEnabled"),Ce=this._isCellElement((0,c.Z)(Pe));Pe||($e=".dx-datagrid-rowsview .dx-row[tabindex]",ge||($e+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),Pe=this.component.$element().find($e).first()),Pe&&this._focusElement((0,c.Z)(Pe),Ce)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,p.$K)(this._focusedView)&&this._focusView()},_focusElement:function(Pe,$e){var ge=(0,c.Z)(this._getRowsViewElement()),Ce=Pe.closest(ge),De=this.isRowFocusType(),Ye={};!Ce.length||this._isCellElement(Pe)&&!this._isCellValid(Pe)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(this._isCellElement(Pe)||Se(Pe))&&(this.setCellFocusType(),Pe=(Ye=this._fireFocusChangingEvents(null,Pe,!1,$e)).$newCellElement,De&&!Ye.isHighlighted&&this.setRowFocusType()),Ye.cancel||(this._focus(Pe,!Ye.isHighlighted),this._focusInteractiveElement(Pe)))},_getFocusedViewByElement:function(Pe){var $e=this.getFocusedView(),ge=$e&&(0,c.Z)($e.element());return Pe&&0!==Pe.closest(ge).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_resetFocusedView:function(){this.setRowFocusType(),this._focusedView=null},_focusInteractiveElement:function(Pe,$e){if(Pe){var ge=this._getInteractiveElement(Pe,$e);a.Z.focusAndSelectElement(this,ge)}},_focus:function(Pe,$e,ge){var Ce=Pe&&!Pe.hasClass(T)?Pe.closest(".".concat(T)):Pe;if(!Ce||!function ie(Pe){return!Pe||Pe.hasClass(z)||Pe.hasClass("dx-virtual-row")}(Ce)){var bt,De=this._focusedView,Ye=De&&De.element();this._isHiddenFocus=$e;var yt=Se(Ce)||this.isRowFocusType();yt?(bt=Ce,De&&this.setFocusedRowIndex(this._getRowIndex(Ce))):this._isCellElement(Pe)&&(bt=Pe,this._updateFocusedCellPosition(Pe)),bt&&(Ye&&Ye.find(".dx-row[tabindex], .dx-row > td[tabindex]").not(bt).removeClass(q).removeAttr("tabindex"),C.Z.one(bt,"blur",kt=>{kt.relatedTarget&&bt.removeClass(q)}),ge||(this._applyTabIndexToElement(bt),C.Z.trigger(bt,"focus")),$e?(bt.addClass(q),yt&&Pe.addClass(q)):this._editorFactory.focus(bt))}},_updateFocus:function(Pe){this._updateFocusTimeout=setTimeout(()=>{var $e=this._editingController,ge="cell"===$e.getEditMode(),Ce="batch"===$e.getEditMode();if(ge&&$e.hasChanges()||Ce&&$e.isNewRowInEditMode())$e._focusEditingCell();else{var De=this._getFocusedCell(),Ye=$e.isEditing();if(De&&(!this._isMasterDetailCell(De)||this._isRowEditMode())&&(this._hasSkipRow(De.parent())&&(De=this._getNextCell(this._focusedCellPosition&&this._focusedCellPosition.rowIndex>0?"upArrow":"downArrow")),be(De)))if(De.is("td")||De.hasClass(this.addWidgetPrefix("edit-form-item"))){var yt=De.is(G),kt=De.find(":focus"),gn=be(kt);if(!Pe&&yt||!this._editorFactory.focus())!gn&&(this._isNeedFocus||this._isHiddenFocus)&&this._focus(De,this._isHiddenFocus);else{if(yt&&gn)return void a.Z.focusAndSelectElement(this,kt);!gn&&this._focus(De)}Ye&&this._focusInteractiveElement.bind(this)(De)}else C.Z.trigger(De,"focus")}})},_getFocusedCell:function(){return(0,c.Z)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(Pe){var $e;if("row"===this._getElementType(Pe)&&(0,p.$K)(null===($e=this._focusedCellPosition)||void 0===$e?void 0:$e.columnIndex)){var Ce=(0,c.Z)(Pe);this._focusedView&&Se(Ce)&&this.setFocusedRowIndex(this._getRowIndex(Ce))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(Pe))},_updateFocusedCellPosition:function(Pe,$e){var ge=this._getCellPosition(Pe,$e);return ge&&(!Pe.length||ge.rowIndex>=0&&ge.columnIndex>=0)&&this.setFocusedCellPosition(ge.rowIndex,ge.columnIndex),ge},_getFocusedColumnIndexOffset:function(Pe){var $e=0,ge=this._columnsController.getVisibleColumns()[Pe];return ge&&ge.fixed?$e=this._getFixedColumnIndexOffset(ge):Pe>=0&&($e=this._columnsController.getColumnIndexOffset()),$e},_getFixedColumnIndexOffset:function(Pe){var $e=function mt(Pe,$e){return Pe.option("rtlEnabled")?!("right"===$e.fixedPosition||(0,p.$K)($e.command)&&!(0,p.$K)($e.fixedPosition)):!(!(0,p.$K)($e.fixedPosition)||"left"===$e.fixedPosition)}(this,Pe)?this._getVisibleColumnCount()-this._columnsController.getVisibleColumns().length:0;return $e},_getCellPosition:function(Pe,$e){var ge,Ce=be(Pe)&&Pe.closest("tr"),De=this.getView("rowsView");if(be(Ce)){var Ye=this._getRowIndex(Ce);return ge=De.getCellIndex(Pe,Ye),ge+=this._getFocusedColumnIndexOffset(ge),$e&&(ge=this._applyColumnIndexBoundaries(ge="previous"===$e?ge-1:ge+1)),{rowIndex:Ye,columnIndex:ge}}},_focusCell:function(Pe,$e){if(this._isCellValid(Pe))return this._focus(Pe,$e),!0},_focusEditFormCell:function(Pe){Pe.hasClass(U)&&this._editorFactory.focus(Pe,!0)},_resetFocusedCell:function(Pe){var $e,ge=this._getFocusedCell();be(ge)&&ge.removeAttr("tabindex"),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={},clearTimeout(this._updateFocusTimeout),null===($e=this._focusedView)||void 0===$e||$e.renderFocusState({preventScroll:Pe})},restoreFocusableElement:function(Pe,$e){var ge,Ce,De=(0,p.$K)(Pe),Ye=this.getView("rowsView"),bt=Ye.element(),yt=this._focusedCellPosition.columnIndex,kt=this._dataController.getRowIndexOffset();Pe=De?Pe:Ye.getTopVisibleItemIndex()+kt,De?(Ce=Ye.getRow(Pe-kt),!(ge=this._fireFocusedRowChanging($e,Ce)).cancel&&ge.rowIndexChanged&&(Pe=ge.newRowIndex)):(this._editorFactory.loseFocus(),this._applyTabIndexToElement(bt),C.Z.trigger(bt,"focus")),(!De||!ge.cancel)&&this.setFocusedCellPosition(Pe,yt),De&&this._updateFocus()},_getNewPositionByCode:function(Pe,$e,ge){var Ce=Pe.columnIndex,De=Pe.rowIndex;if(void 0===Pe.rowIndex&&"next"===ge)return{columnIndex:0,rowIndex:0};switch(ge){case"nextInRow":case"next":Ce<this._getVisibleColumnCount()-1&&"row"!==$e&&this._hasValidCellAfterPosition({columnIndex:Ce,rowIndex:De})?Ce++:!this._isLastRow(De)&&"next"===ge&&(Ce=0,De++);break;case"previousInRow":case"previous":Ce>0&&"row"!==$e&&this._hasValidCellBeforePosition({columnIndex:Ce,rowIndex:De})?Ce--:De>0&&"previous"===ge&&(De--,Ce=this._getVisibleColumnCount()-1);break;case"upArrow":De=De>0?De-1:De;break;case"downArrow":De=this._isLastRow(De)?De:De+1}return{columnIndex:Ce,rowIndex:De}},setFocusedCellPosition:function(Pe,$e){this.setFocusedRowIndex(Pe),this.setFocusedColumnIndex($e)},setFocusedRowIndex:function(Pe){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=Pe},setFocusedColumnIndex:function(Pe){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=Pe},getRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex:-1},getColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:-1},getVisibleRowIndex:function(){var Pe=this._focusedCellPosition&&this._focusedCellPosition.rowIndex;return!(0,p.$K)(Pe)||Pe<0?-1:Pe-this._dataController.getRowIndexOffset()},getVisibleColumnIndex:function(){var Pe=this._focusedCellPosition&&this._focusedCellPosition.columnIndex;return(0,p.$K)(Pe)?Pe-this._columnsController.getColumnIndexOffset():-1},_applyColumnIndexBoundaries:function(Pe){var $e=this._getVisibleColumnCount();return Pe<0?Pe=0:Pe>=$e&&(Pe=$e-1),Pe},_isCellByPositionValid:function(Pe){var $e=(0,c.Z)(this._getCell(Pe));return this._isCellValid($e)},_isLastRow:function(Pe){var $e=this._dataController,ge=$e.items().filter(Ce=>!1!==Ce.visible);return this._isVirtualRowRender()?Pe>=$e.getMaxRowIndex():Pe===ge.length-1},_isFirstValidCell:function(Pe){var $e=!1;return 0===Pe.rowIndex&&Pe.columnIndex>=0&&($e=$e||!this._hasValidCellBeforePosition(Pe)),$e},_hasValidCellBeforePosition:function(Pe){for(var $e=Pe.columnIndex,ge=!1;$e>0&&!ge;){var Ce={columnIndex:--$e,rowIndex:Pe.rowIndex};ge=this._isCellByPositionValid(Ce)}return ge},_hasValidCellAfterPosition:function(Pe){for(var $e=Pe.columnIndex,ge=!1,Ce=this._getVisibleColumnCount();$e<Ce-1&&!ge;){var De={columnIndex:++$e,rowIndex:Pe.rowIndex};ge=this._isCellByPositionValid(De)}return ge},_isLastValidCell:function(Pe){var ge=Pe.rowIndex,Ce={columnIndex:Pe.columnIndex>=0?Pe.columnIndex+1:0,rowIndex:ge},De=this._dataController.getVisibleRows(),Ye=De&&De[ge];return!!this._isLastRow(ge)&&(!!(Ye&&"group"===Ye.rowType&&Pe.columnIndex>0||Pe.columnIndex===this._getVisibleColumnCount()-1)||!this._isCellByPositionValid(Ce)&&this._isLastValidCell(Ce))},_isCellValid:function(Pe,$e){if(be(Pe)){var ge=this.getView("rowsView"),Ce=Pe.parent(),De=this._columnsController,Ye=ge.getCellIndex(Pe)+De.getColumnIndexOffset(),bt=De.getVisibleColumns(null,!0)[Ye],yt=this._getVisibleColumnCount(),kt=this._editingController,gn=re(Ce),ut=bt&&bt.showWhenGrouped,Ve=bt&&!Pe.hasClass(J)&&te(Ce);if(this._isMasterDetailCell(Pe))return!0;if(yt>Ye&&(!gn&&bt&&(!(0,p.$K)(bt.groupIndex)||ut&&Ve)||parseInt(Pe.attr("colspan"))>1)){var St=this._dataController.items(),Xe=ge.getRowIndex(Ce),Vt=St[Xe],lt=kt&&this._isCellEditMode()&&kt.isEditing(),dt=kt&&kt.isEditRow(Xe),vt=dt||lt;return bt.command?this._isLegacyNavigation()?!vt&&"expand"===bt.command:!lt&&(dt?"select"!==bt.command:!vt):(!lt||!Vt||"data"===Vt.rowType)&&(!vt||bt.allowEditing||$e)}}},getFirstValidCellInRow:function(Pe,$e){for(var Ce,De,ge=Pe.find("> td"),Ye=$e=$e||0;Ye<ge.length;++Ye)if(Ce=ge.eq(Ye),this._isCellValid(Ce)){De=Ce;break}return De},_getNextCell:function(Pe,$e,ge){var bt,yt,Ce=ge||this._focusedCellPosition,De=this.isRowFocusType(),Ye=De||["next","previous"].includes(Pe);if(this._focusedView&&Ce){var kt=this._getNewPositionByCode(Ce,$e,Pe);bt=(0,c.Z)(this._getCell(kt));var gn="previous"===Pe?this._isFirstValidCell(kt):this._isLastValidCell(kt);if(be(bt)&&!this._isCellValid(bt)&&this._isCellInRow(kt,Ye)&&!gn&&(bt=De?this.getFirstValidCellInRow(bt.parent(),kt.columnIndex):this._getNextCell(Pe,"cell",kt)),yt=be(bt)&&bt.parent(),this._hasSkipRow(yt)){var ut=this._getRowIndex(yt);if(this._isLastRow(ut))return null;bt=this._getNextCell(Pe,"row",{columnIndex:Ce.columnIndex,rowIndex:ut})}return be(bt)?bt:null}return null},_startEditing:function(Pe,$e){var ge=this._focusedCellPosition,Ce=this.getVisibleRowIndex(),De=this.getVisibleColumnIndex(),Ye=this._dataController.items()[Ce],bt=this._columnsController.getVisibleColumns()[De];this._isAllowEditing(Ye,bt)&&(this._isRowEditMode()?this._editingController.editRow(Ce):ge&&this._startEditCell(Pe,$e))},_isAllowEditing:function(Pe,$e){return this._editingController.allowUpdating({row:Pe})&&$e&&$e.allowEditing},_editFocusedCell:function(){var Pe=this.getVisibleRowIndex(),$e=this.getVisibleColumnIndex();return this._editingController.editCell(Pe,$e)},_startEditCell:function(Pe,$e){this._fastEditingStarted=(0,p.$K)($e);var ge=this._editFocusedCell();if(this._isFastEditingStarted())if(!0===ge)this._editingCellHandler(Pe,$e);else if(ge&&ge.done){var Ce=$e!==fe?$e:"";ge.done(()=>this._editingCellHandler(Pe,Ce))}},_editingCellHandler:function(Pe,$e){var ge,Ce,De=this._getFocusedCell().find(Te).eq(0),Ye=(0,l.yM)(Pe,{type:"keydown",target:De.get(0)}),bt=(0,l.yM)(Pe,{type:"keypress",target:De.get(0)}),yt=(0,l.yM)(Pe,{type:"input",target:De.get(0)});yt.originalEvent&&(yt.originalEvent=(0,l.yM)(yt.originalEvent,{data:$e})),null===(ge=(Ce=De.get(0)).select)||void 0===ge||ge.call(Ce),C.Z.trigger(De,Ye),Ye.isDefaultPrevented()||(C.Z.trigger(De,bt),bt.isDefaultPrevented())||setTimeout(()=>{De.val($e);var gn=De.closest(".".concat("dx-widget"));C.Z.off(gn,"focusout"),C.Z.one(gn,"focusout",function(){C.Z.trigger(De,"change")}),C.Z.trigger(De,yt)},b.Z.mozilla?25:0)},_fireFocusChangingEvents:function(Pe,$e,ge,Ce){var De={},Ye=this._getCellPosition($e)||{};return this.isCellFocusType()&&((De=this._fireFocusedCellChanging(Pe,$e,Ce)).cancel||(Ye.columnIndex=De.newColumnIndex,Ye.rowIndex=De.newRowIndex,Ce=De.isHighlighted,$e=(0,c.Z)(this._getCell(Ye)))),!De.cancel&&ge&&$e&&((De=this._fireFocusedRowChanging(Pe,$e.parent())).cancel||(Ye.rowIndex=De.newRowIndex,De.isHighlighted=Ce)),De.$newCellElement=(0,c.Z)(this._getCell(Ye)),De.$newCellElement.length||(De.$newCellElement=$e),De},_fireFocusedCellChanging:function(Pe,$e,ge){var Ce=this.option("focusedColumnIndex"),De=this.option("focusedRowIndex"),Ye=this._getCellPosition($e),bt=Ye?Ye.columnIndex:-1,yt=Ye?Ye.rowIndex:-1,kt={cellElement:$e,prevColumnIndex:Ce,prevRowIndex:De,newColumnIndex:bt,newRowIndex:yt,rows:this._dataController.getVisibleRows(),columns:this._columnsController.getVisibleColumns(),event:Pe,isHighlighted:ge||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",kt),(kt.newColumnIndex!==bt||kt.newRowIndex!==yt)&&(kt.$newCellElement=(0,c.Z)(this._getCell({columnIndex:kt.newColumnIndex,rowIndex:kt.newRowIndex}))),kt.cancel&&(this._canceledCellPosition={rowIndex:yt,columnIndex:bt}),kt},_fireFocusedCellChanged:function(Pe,$e,ge){var Ce=this._dataController,De=this.getView("rowsView").getCellIndex(Pe),Ye=this._getRowIndex(Pe&&Pe.parent()),bt=Math.min(Ye-Ce.getRowIndexOffset(),Ce.items().length-1),yt=this._editingController.isEditCell(bt,De),kt=Ce.items()[bt];!yt&&($e!==De||ge!==Ye)&&this.executeAction("onFocusedCellChanged",{cellElement:Pe,columnIndex:De,rowIndex:Ye,row:kt,column:this._columnsController.getVisibleColumns()[De]})},_fireFocusedRowChanging:function(Pe,$e){var ge=this._getRowIndex($e),Ce=this._dataController,De=this.option("focusedRowIndex"),Ye=Ce.loadingOperationTypes(),bt={rowElement:$e,prevRowIndex:De,newRowIndex:ge,event:Pe,rows:Ce.getVisibleRows(),cancel:!1};return!Ce||Ce.isLoading()&&(Ye.reload||Ye.paging)?(bt.cancel=!0,bt):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",bt),!bt.cancel&&bt.newRowIndex!==ge&&(bt.resetFocusedRow=bt.newRowIndex<0,bt.resetFocusedRow||this.setFocusedRowIndex(bt.newRowIndex),bt.rowIndexChanged=!0)),bt)},_fireFocusedRowChanged:function(Pe){var $e,ge=this.option("focusedRowKey"),De=this.getController("focus")?.getFocusedRowIndexByKey(ge);if(this.option("focusedRowEnabled")){if(De>=0){var Ye=this._dataController;$e=De>=0&&Ye.getVisibleRows()[De-Ye.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:Pe,rowIndex:De,row:$e})}},_isEventInCurrentGrid:function(Pe){return a.Z.isElementInCurrentGrid(this,(0,c.Z)(Pe.target))},_isRowEditMode:function(){var Pe=this._editingController.getEditMode();return"row"===Pe||"form"===Pe},_isCellEditMode:function(){var Pe=this._editingController.getEditMode();return"cell"===Pe||"batch"===Pe},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(Pe,$e){var ge=Pe.find(Te).filter(":visible");return $e?ge.last():ge.first()},_applyTabIndexToElement:function(Pe){var $e=this.option("tabIndex")||0;Pe.attr("tabindex",(0,p.$K)($e)?$e:0)},_getCell:function(Pe){if(this._focusedView&&Pe){var $e=this._dataController.getRowIndexOffset(),ge=this._columnsController.getVisibleColumns(null,!0)[Pe.columnIndex],Ce=ge&&ge.fixed?this._getFixedColumnIndexOffset(ge):this._columnsController.getColumnIndexOffset();return this._focusedView.getCell({rowIndex:Pe.rowIndex>=0?Pe.rowIndex-$e:-1,columnIndex:Pe.columnIndex>=0?Pe.columnIndex-Ce:-1})}},_getRowIndex:function(Pe){var ge=this.getView("rowsView").getRowIndex(Pe);return ge>=0&&(ge+=this._dataController.getRowIndexOffset()),ge},_hasSkipRow:function(Pe){var $e=Pe&&Pe.get(0);return $e&&("none"===$e.style.display||Pe.hasClass(this.addWidgetPrefix("group-footer"))||re(Pe)&&!Pe.hasClass(this.addWidgetPrefix(O)))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(Pe){var $e;switch(Pe){case"upArrow":$e="prevRow";break;case"downArrow":$e="nextRow";break;case"leftArrow":$e=this.option("rtlEnabled")?"nextInRow":"previousInRow";break;case"rightArrow":$e=this.option("rtlEnabled")?"previousInRow":"nextInRow"}return $e},_isVirtualScrolling:function(){var Pe=this.option("scrolling.mode");return"virtual"===Pe||"infinite"===Pe},_isVirtualRowRender:function(){return this._isVirtualScrolling()||a.Z.isVirtualRowRendering(this)},_isVirtualColumnRender:function(){return"virtual"===this.option("scrolling.columnRenderingMode")},_scrollBy:function(Pe,$e,ge,Ce){var De=this,Ye=this.getView("rowsView").getScrollable();return De._focusedCellPosition&&Ye.on("scroll",function bt(){Ye.off("scroll",bt),setTimeout(De.restoreFocusableElement.bind(De,ge,Ce))}),Ye.scrollBy({left:Pe,top:$e})},_isInsideEditForm:function(Pe){var $e=(0,c.Z)(Pe).closest("."+this.addWidgetPrefix(O));return $e.length&&this.elementIsInsideGrid($e)},_isMasterDetailCell:function(Pe){var $e=(0,c.Z)(Pe).closest("."+U);return $e.length&&this.elementIsInsideGrid($e)},_processNextCellInMasterDetail:function(Pe){!this._isInsideEditForm(Pe)&&Pe&&this._applyTabIndexToElement(Pe)},_handleTabKeyOnMasterDetailCell:function(Pe,$e){if(this._isMasterDetailCell(Pe)){this._updateFocusedCellPosition((0,c.Z)(Pe),$e);var ge=this._getNextCell($e,"row");return this._processNextCellInMasterDetail(ge,(0,c.Z)(Pe)),!0}return!1},_getElementType:function(Pe){return(0,c.Z)(Pe).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this._columnsController.getVisibleColumns(null,!0).length},_isCellInRow:function(Pe,$e){var ge=Pe.columnIndex,Ce=this._getVisibleColumnCount();return $e?ge>=0&&ge<=Ce-1:ge>0&&ge<Ce-1},_isCellElement:function(Pe){return Pe.length&&"TD"===Pe[0].tagName},_getCellElementFromTarget:function(Pe){var $e=this._getElementType(Pe),ge=(0,c.Z)(Pe);return"cell"===$e?ge.closest(".".concat(T," > td")):ge.children().not("."+J).first()},_getRowsViewElement:function(){var Pe=this.getView("rowsView");return Pe&&Pe.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(Pe,$e){if(this._canceledCellPosition){var ge=this._canceledCellPosition.rowIndex===Pe&&this._canceledCellPosition.columnIndex===$e;return this._canceledCellPosition=null,ge}},updateFocusedRowIndex:function(){var Pe=this._dataController,$e=this.getVisibleRowIndex(),ge=Pe.items(),Ce=ge.length?ge.length-1:-1,De=Pe.getRowIndexOffset();Ce>=0&&$e>Ce&&this.setFocusedRowIndex(Ce+De)}})},extenders:{views:{rowsView:{_rowClick:function(Pe){var $e=this.getController("editing").getEditRowIndex(),ge=this.getController("keyboardNavigation"),Ce=ge.isKeyboardEnabled();$e===Pe.rowIndex&&ge.setCellFocusType();var De=(Ae()||!Ce)&&this.option("focusedRowEnabled");De&&this._triggerPointerDownEventHandler(Pe,!Ce),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(Pe,$e){var ge=Pe.event.originalEvent;if(ge){var Ce=this.getController("keyboardNavigation"),De=(0,c.Z)(ge.target),Ye=this.getCellIndex(De),bt=this.getController("columns").getVisibleColumns()[Ye],yt=this.getController("data").items()[Pe.rowIndex];if(Ce._isAllowEditing(yt,bt)||$e){var kt=(0,l.yM)(ge,{currentTarget:ge.target});Ce._pointerEventHandler(kt)}}},renderFocusState:function(Pe){var{preventScroll:$e,pageSizeChanged:ge}=Pe??{},Ce=this.getController("keyboardNavigation"),De=this.element();De&&!(0,s.si)(De)&&De.attr("tabindex",null),ge&&Ce.updateFocusedRowIndex();var Ye=Ce.getVisibleRowIndex();(!(0,p.$K)(Ye)||Ye<0)&&(Ye=0);var bt=this.getCellElements(Ye);Ce.isKeyboardEnabled()&&bt.length&&this.updateFocusElementTabIndex(bt,$e)},updateFocusElementTabIndex:function(Pe){var $e=this.getController("keyboardNavigation"),ge=Pe.eq(0).parent();if(Se(ge))$e._applyTabIndexToElement(ge);else{var Ce=$e.getColumnIndex();(!(0,p.$K)(Ce)||Ce<0)&&(Ce=0),this._updateFocusedCellTabIndex(Pe,Ce)}},_updateFocusedCellTabIndex:function(Pe,$e){var ge=this.getController("keyboardNavigation"),Ce=Pe?Pe.length:-1,De=function(yt){var kt=ge._isMasterDetailCell(yt),gn=ge._isCellValid(yt);if(!kt&&gn&&ge._isCellElement(yt))return ge._applyTabIndexToElement(yt),ge.setCellFocusType(),!0},Ye=Pe.filter("[aria-colindex='".concat($e+1,"']"));if(Ye.length)De(Ye);else{Ce<=$e&&($e=Ce-1);for(var bt=$e;bt<Ce&&!De((0,c.Z)(Pe[bt]));++bt);}},renderDelayedTemplates:function(Pe){this.callBase.apply(this,arguments),this._renderFocusByChange(Pe)},_renderFocusByChange(Pe){var{operationTypes:$e,repaintChangesOnly:ge}=Pe??{},{fullReload:Ce,pageSize:De}=$e??{};if(!Pe||!ge||Ce||De){var Ye=function tt(Pe){var $e=Pe.getController("keyboardNavigation");return!!$e._isVirtualScrolling()&&Pe.option("focusedRowIndex")===$e.getRowIndex()}(this);this.renderFocusState({preventScroll:Ye,pageSizeChanged:De})}},_renderCore:function(Pe){var $e=this.callBase.apply(this,arguments);return this._renderFocusByChange(Pe),$e},_editCellPrepared:function(Pe){var $e=this._getEditorInstance(Pe),ge=this.getController("keyboardNavigation"),Ce=ge&&ge._isFastEditingStarted();$e&&Ce&&this._handleEditingNavigationMode($e),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(Pe){["downArrow","upArrow"].forEach(function(ge){var Ce=Pe._supportedKeys()[ge];Pe.registerKeyHandler(ge,De=>{if("true"===Pe._input().attr("aria-expanded"))return Ce&&Ce.call(Pe,De)})}),Pe.registerKeyHandler("leftArrow",v.ZT),Pe.registerKeyHandler("rightArrow",v.ZT),"dxDateBox"===Pe.NAME&&Pe.option("useMaskBehavior")&&Pe.registerKeyHandler("enter",v.ZT)},_getEditorInstance:function(Pe){var $e=Pe.find(".dx-texteditor").eq(0);return a.Z.getWidgetInstance($e)}}},controllers:{editing:{editCell:function(Pe,$e){var ge=this.getController("keyboardNavigation");if(ge._processCanceledEditCellPosition(Pe,$e))return!1;var Ce=this.callBase(Pe,$e);return Ce&&ge.setupFocusedView(),Ce},editRow:function(Pe){var $e=this.getController("keyboardNavigation"),ge=$e.getVisibleColumnIndex(),Ce=this._columnsController.getVisibleColumns()[ge];(Ce&&Ce.type||"form"===this.option("editing.mode"))&&$e._resetFocusedCell(),this.callBase(Pe)},addRow:function(Pe){var $e=this.getController("keyboardNavigation");return $e.setupFocusedView(),$e.setCellFocusType(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(Pe){var $e=this.getController("keyboardNavigation"),ge=this.callBase(Pe);if($e.isKeyboardEnabled()&&$e._focusedCellPosition.rowIndex===Pe){var Ce=$e._getFocusedCell();be(Ce)&&!Ce.hasClass("dx-command-edit")&&(ge=Ce)}return ge},_processCanceledEditingCell:function(){this.closeEditCell().done(()=>{this.getController("keyboardNavigation")._updateFocus()})},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var Pe=this._keyboardNavigationController;Pe._fastEditingStarted=!1;var $e=this.callBase.apply(this,arguments);return Pe._updateFocus(),$e},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var Pe=this.getController("keyboardNavigation"),$e=this.callBase.apply(this,arguments);if($e&&!Pe._isNeedFocus){var ge=Pe._getFocusedCell();Pe._focus(ge,!0)}return $e}},data:{_correctRowIndices:function(Pe){var $e=this,ge=$e.getController("keyboardNavigation"),Ce=$e.getController("editorFactory"),De=ge._focusedCellPosition;if($e.callBase.apply($e,arguments),De&&De.rowIndex>=0){var Ye=Pe(De.rowIndex);Ye&&(De.rowIndex+=Ye,Ce.refocus())}},getMaxRowIndex:function(){var Pe=this.items().length-1,$e=this.virtualItemsCount();return $e&&(Pe+=this.getRowIndexOffset()+$e.end),Pe}},adaptiveColumns:{_showHiddenCellsInView:function(Pe){var{viewName:$e,$cells:ge,isCommandColumn:Ce}=Pe;this.callBase.apply(this,arguments),$e===le&&!Ce&&ge.each((De,Ye)=>{var bt=(0,c.Z)(Ye);Ne(bt)&&bt.attr("tabindex",0)})},_hideVisibleCellInView:function(Pe){var{viewName:$e,$cell:ge,isCommandColumn:Ce}=Pe;this.callBase.apply(this,arguments),$e===le&&!Ce&&Ne(ge)&&ge.removeAttr("tabindex")}}}}}},6264:(Rn,he,u)=>{"use strict";u.d(he,{h:()=>v});var x,o=u(1805),c=u(9904),I=u(2879),C=u(7674),g=u(2718),a=u(1828),p=u(4270),s="dx-master-detail-cell",l="dx-master-detail-row",d="dx-cell-focus-disabled",h="dx-row-lines",v={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var x=this.callBase();return this.option("masterDetail.enabled")&&x.push({type:"detailExpand",cellTemplate:I.Z.getExpandCellTemplate()}),x}},data:(x=function(b){b._expandedItems=[],b._isExpandAll=b.option("masterDetail.autoExpandAll")},{init:function(){x(this),this.callBase()},expandAll:function(b){var y=this;b<0?(y._isExpandAll=!0,y._expandedItems=[],y.updateItems()):y.callBase.apply(y,arguments)},collapseAll:function(b){var y=this;b<0?(y._isExpandAll=!1,y._expandedItems=[],y.updateItems()):y.callBase.apply(y,arguments)},isRowExpanded:function(b){var y=this,E=I.Z.getIndexByKey(b,y._expandedItems);return Array.isArray(b)?y.callBase.apply(y,arguments):!!(y._isExpandAll^(E>=0&&y._expandedItems[E].visible))},_getRowIndicesForExpand:function(b){var y=this.getRowIndexByKey(b);return[y,y+1]},_changeRowExpandCore:function(b){var E,y=this;if(Array.isArray(b))E=y.callBase.apply(y,arguments);else{var S=I.Z.getIndexByKey(b,y._expandedItems);if(S>=0){var O=y._expandedItems[S].visible;y._expandedItems[S].visible=!O}else y._expandedItems.push({key:b,visible:!0});y.updateItems({changeType:"update",rowIndices:y._getRowIndicesForExpand(b)}),E=(new p.BH).resolve()}return E},_processDataItem:function(b,y){var E=this,S=E.callBase.apply(E,arguments);return S.isExpanded=E.isRowExpanded(S.key),void 0===y.detailColumnIndex&&(y.detailColumnIndex=-1,(0,g.S6)(y.visibleColumns,function(O,w){if("expand"===w.command&&!(0,a.$K)(w.groupIndex))return y.detailColumnIndex=O,!1})),y.detailColumnIndex>=0&&(S.values[y.detailColumnIndex]=S.isExpanded),S},_processItems:function(b,y){var E=this,S=y.changeType,O=[];return b=E.callBase.apply(E,arguments),"loadingAll"===S?b:("refresh"===S&&(E._expandedItems=(0,C.h3)(E._expandedItems,function(w){return w.visible})),(0,g.S6)(b,function(w,T){O.push(T);var k=I.Z.getIndexByKey(T.key,E._expandedItems);"data"===T.rowType&&(T.isExpanded||k>=0)&&!T.isNewRow&&O.push({visible:T.isExpanded,rowType:"detail",key:T.key,data:T.data,values:[]})}),O)},optionChanged:function(b){var y,E;if("masterDetail"===b.name){switch(b.name="dataSource",b.fullName){case"masterDetail":var S=b.value||{},O=b.previousValue||{};y=S.enabled!==O.enabled,E=S.autoExpandAll!==O.autoExpandAll;break;case"masterDetail.template":x(this);break;case"masterDetail.enabled":y=!0;break;case"masterDetail.autoExpandAll":E=!0}(y||E)&&x(this)}this.callBase(b)}}),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(x){var b=x.closest("."+l);b.length&&(0,p.gx)(this._updateMasterDataGrid(b,x)).done(()=>{this._updateParentDataGrids(b.parent())})},_updateMasterDataGrid:function(x,b){var y=(0,c.Z)(x).data("options"),E=(0,c.Z)(x).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(y&&E)return this._updateMasterDataGridCore(E,y)},_updateMasterDataGridCore:function(x,b){var y=(0,p.BH)();if(x.getView("rowsView").isFixedColumns())this._updateFixedMasterDetailGrids(x,b.rowIndex,(0,c.Z)(b.rowElement)).done(y.resolve);else{if(!0===x.option("scrolling.useNative"))return void x.updateDimensions().done(()=>y.resolve(!0));var E=x.getScrollable();E?E?.update().done(()=>y.resolve()):y.resolve()}return y.promise()},_updateFixedMasterDetailGrids:function(x,b,y){var E=(0,p.BH)(),S=(0,c.Z)(x.getRowElement(b)),O=(0,c.Z)(x.getView("rowsView").getTableElements()),w=2===S?.length&&(0,o.Cr)(S.eq(0))!==(0,o.Cr)(S.eq(1)),T=2===O?.length&&(0,o.Cr)(O.eq(0))!==(0,o.Cr)(O.eq(1));if(w||T){var k=(0,o.dz)(y);return x.updateDimensions().done(()=>{var R=this.option("columnAutoWidth")&&!0===x.option("scrolling.useNative"),P=R&&k!==(0,o.dz)(y);R&&P?this.updateDimensions().done(()=>E.resolve(!0)):E.resolve(!0)}),E.promise()}return(0,p.BH)().resolve()},_toggleBestFitMode:function(x){if(this.callBase.apply(this,arguments),this.option("masterDetail.template")){var b=this._rowsView.getTableElement();b&&b.find(".dx-master-detail-cell").css("maxWidth",x?0:"")}}}},views:{rowsView:{_getCellTemplate:function(x){var b=this,y=x.column,E=b.getController("editing"),S=E&&E.isEditRow(x.rowIndex);return"detail"!==y.command||S?b.callBase.apply(b,arguments):b.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:b._getDefaultTemplate(y)}},_isDetailRow:function(x){return x&&x.rowType&&0===x.rowType.indexOf("detail")},_createRow:function(x){var b=this.callBase.apply(this,arguments);return x&&this._isDetailRow(x)&&(this.option("showRowLines")&&b.addClass(h),b.addClass(l),(0,a.$K)(x.visible)&&b.toggle(x.visible)),b},_renderCells:function(x,b){var y=b.row,S=this._columnsController.getVisibleColumns();y.rowType&&this._isDetailRow(y)?this._needRenderCell(0,b.columnIndices)&&this._renderCell(x,{value:null,row:y,rowIndex:y.rowIndex,column:{command:"detail"},columnIndex:0,change:b.change}).addClass(d).addClass(s).attr("colSpan",S.length):this.callBase.apply(this,arguments)}}}}}},3390:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o=u(9904),c=u(5031),I=u(5365),C=u(7674),g=u(1828),a=u(2718),p=u(8159),s=u(9009),l=u(4514),h=c.Z.inherit({_endUpdateCore:function(){},ctor:function(w){var T=this;T._updateLockCount=0,T.component=w,T._actions={},T._actionConfigs={},(0,a.S6)(this.callbackNames()||[],function(k,R){var P=T.callbackFlags(R)||{};P.unique=!0,P.syncStrategy=!0,T[this]=(0,I.Z)(P)})},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(w){var T=this.component,k=T._optionCache;return 1===arguments.length&&k?(w in k||(k[w]=T.option(w)),k[w]):T.option.apply(T,arguments)},_silentOption:function(w,T){var k=this.component,R=k._optionCache;return R&&(R[w]=T),k._setOptionWithoutOptionChange(w,T)},localize:function(w){var T=this.component._optionCache;return T?(w in T||(T[w]=s.Z.format(w)),T[w]):s.Z.format(w)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(w){w.name in this._actions&&(this.createAction(w.name,this._actionConfigs[w.name]),w.handled=!0)},getAction:function(w){return this._actions[w]},setAria:function(w,T,k){var R=k.get(0),P="role"!==w&&"id"!==w?"aria-":"";R.setAttribute?R.setAttribute(P+w,T):k.attr(P+w,T)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(w){return this.component._controllers[w]},createAction:function(w,T){if((0,g.mf)(w)){var k=this.component._createAction(w.bind(this),T);return function(R){k({event:R})}}this._actions[w]=this.component._createActionByOption(w,T),this._actionConfigs[w]=T},executeAction:function(w,T){var k=this._actions[w];return k&&k(T)},dispose:function(){var w=this;(0,a.S6)(w.callbackNames()||[],function(){w[this].empty()})},addWidgetPrefix:function(w){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(w?"-"+w:"")},getWidgetContainerClass:function(){return this.addWidgetPrefix("dxDataGrid"===this.component.NAME?null:"container")},elementIsInsideGrid:function(w){return w.closest("."+this.getWidgetContainerClass()).parent().is(this.component.$element())}}),v=h,x=v.inherit({getView:function(w){return this.component._views[w]},getViews:function(){return this.component._views}}),b=h.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(w,T){this._requireRender=!0,this.component._requireResize=(0,l.Ym)()&&(this.component._requireResize||w),this._requireReady=this._requireReady||T},_renderCore:function(){},_resizeCore:function(){},_parentElement:function(){return this._$parent},ctor:function(w){this.callBase(w),this.renderCompleted=(0,I.Z)(),this.resizeCompleted=(0,I.Z)()},element:function(){return this._$element},getElementHeight:function(){var w=this.element();if(!w)return 0;var T=parseFloat(w.css("marginTop"))||0,k=parseFloat(w.css("marginBottom"))||0;return w.get(0).offsetHeight+T+k},isVisible:function(){return!0},getTemplate:function(w){return this.component._getTemplate(w)},render:function(w,T){var k=this._$element,R=this.isVisible();if((k||w)&&(this._requireReady=!1,k||(k=this._$element=(0,o.Z)("<div>").appendTo(w),this._$parent=w),k.toggleClass("dx-hidden",!R),R)){this.component._optionCache={};var P=this._renderCore(T);this.component._optionCache=void 0,P?P.done(()=>{this.renderCompleted.fire(T)}):this.renderCompleted.fire(T)}},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(w){this.element().get(0).focus({preventScroll:w})}}),y=1e6;const O={modules:[],View:b,ViewController:x,Controller:v,registerModule:function(w,T){for(var k=this.modules,R=0;R<k.length;R++)if(k[R].name===w)return;T.name=w,k.push(T),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(w){this.modulesOrder=w},unregisterModule:function(w){this.modules=(0,C.h3)(this.modules,function(T){return T.name!==w}),delete this.controllerTypes,delete this.viewTypes},processModules:function(w,T){var k=T.modules,R=T.modulesOrder,P=T.controllerTypes||{},B=T.viewTypes||{};T.controllerTypes||(R&&k.sort(function(z,V){var U=R.indexOf(z.name),K=R.indexOf(V.name);return U<0&&(U=y),K<0&&(K=y),U-K}),(0,a.S6)(k,function(){var z=this.controllers,V=this.name,U=this.views;z&&(0,a.S6)(z,function(K,Y){if(P[K])throw p.Z.Error("E1001",V,K);if(!(Y&&Y.subclassOf&&Y.subclassOf(v)))throw Y.subclassOf(v),p.Z.Error("E1002",V,K);P[K]=Y}),U&&(0,a.S6)(U,function(K,Y){if(B[K])throw p.Z.Error("E1003",V,K);if(!(Y&&Y.subclassOf&&Y.subclassOf(b)))throw p.Z.Error("E1004",V,K);B[K]=Y})}),(0,a.S6)(k,function(){var z=this.extenders;z&&(z.controllers&&(0,a.S6)(z.controllers,function(V,U){P[V]&&(P[V]=P[V].inherit(U))}),z.views&&(0,a.S6)(z.views,function(V,U){B[V]&&(B[V]=B[V].inherit(U))}))}),T.controllerTypes=P,T.viewTypes=B);var W=function(z){var V={};return(0,a.S6)(z,function(U,K){var J,j,ee,G,Y=new K(w);Y.name=U,J=w,j=U,(G=(ee=Y).publicMethods())&&(0,a.S6)(G,function(q,Z){if(!ee[Z])throw p.Z.Error("E1006",j,Z);if(J[Z])throw p.Z.Error("E1005",Z);J[Z]=function(){return ee[Z].apply(ee,arguments)}}),V[U]=Y}),V};w._controllers=W(P),w._views=W(B)},callModuleItemsMethod:function(w,T,k){k=k||[],w._controllers&&(0,a.S6)(w._controllers,function(){this[T]&&this[T].apply(this,k)}),w._views&&(0,a.S6)(w._views,function(){this[T]&&this[T].apply(this,k)})}}},237:(Rn,he,u)=>{"use strict";u.d(he,{N:()=>Ct});var o=u(3390),c=u(8506),I=u(4691);class C extends I.Z{_optionChanged(zt){switch(zt.name){case"pageIndex":var wt=this.option("pageIndexChanged");wt&&wt(zt.value);break;case"pageSize":var Xt=this.option("pageSizeChanged");Xt&&Xt(zt.value)}super._optionChanged(zt)}}var g=u(9943),a=u(4817),p=u(9056),s=u(6084),l=u(3824),d=u(4570),h=u(8093);function v(ft,zt){var wt,Xt=null!==(wt=(0,d.Z)(zt))&&void 0!==wt?wt:{};return(0,h.H)(Xt[ft])}function b(ft){return v("marginLeft",ft)+v("marginRight",ft)+v("width",ft)}function y(ft){return v("minWidth",ft)}var E=u(1828),S=["contentTemplate","pagerProps"];var R={},P=ft=>ft&&(ft.defaultProps?zt=>(0,p.vs)((0,p.Iz)(2,ft,(0,a.Z)({},zt))):ft);let B=(()=>{class ft extends s.OS{constructor(wt){super(wt),this.parentRef=(0,p.Vf)(),this.pageSizesRef=(0,p.Vf)(),this.infoTextRef=(0,p.Vf)(),this.pagesRef=(0,p.Vf)(),this.actualIsLargeDisplayMode=!0,this.actualInfoTextVisible=!0,this.state={infoTextVisible:!0,isLargeDisplayMode:!0},this.subscribeToResize=this.subscribeToResize.bind(this),this.effectUpdateChildProps=this.effectUpdateChildProps.bind(this),this.updateAdaptivityProps=this.updateAdaptivityProps.bind(this)}createEffects(){return[new s.b0(this.subscribeToResize,[this.state.infoTextVisible,this.state.isLargeDisplayMode]),new s.b0(this.effectUpdateChildProps,[this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])]}updateEffects(){var wt,Xt;null===(wt=this._effects[0])||void 0===wt||wt.update([this.state.infoTextVisible,this.state.isLargeDisplayMode]),null===(Xt=this._effects[1])||void 0===Xt||Xt.update([this.props,this.state.infoTextVisible,this.state.isLargeDisplayMode,this.props.pagerProps,this.props.contentTemplate])}subscribeToResize(){var wt=()=>{this.parentWidth>0&&this.updateAdaptivityProps()};return l.Z.add(wt),()=>{l.Z.remove(wt)}}effectUpdateChildProps(){this.parentWidth>0&&this.updateAdaptivityProps()}get contentAttributes(){var{className:wt,displayMode:Xt,gridCompatibility:fn,hasKnownLastPage:Ke,infoText:ht,label:on,lightModeEnabled:hn,maxPagesCount:an,onKeyDown:Nn,pageCount:$n,pageIndex:ot,pageIndexChange:Bt,pageSize:nn,pageSizeChange:On,pageSizes:nt,pagesCountText:Rt,pagesNavigatorVisible:pt,rtlEnabled:jt,showInfo:Un,showNavigationButtons:oi,showPageSizes:xi,totalCount:Ai,visible:Ui}=this.props.pagerProps;return(0,a.Z)({},this.restAttributes,{pageSize:nn,pageIndex:ot,pageIndexChange:Bt,pageSizeChange:On,gridCompatibility:fn,className:wt,showInfo:Un,infoText:ht,lightModeEnabled:hn,displayMode:Xt,maxPagesCount:an,pageCount:$n,pagesCountText:Rt,visible:Ui,hasKnownLastPage:Ke,pagesNavigatorVisible:pt,showPageSizes:xi,pageSizes:nt,rtlEnabled:jt,showNavigationButtons:oi,totalCount:Ai,onKeyDown:Nn,label:on})}get parentWidth(){return this.parentRef.current?b(this.parentRef.current):0}updateAdaptivityProps(){var wt=function k(ft){var{info:zt,pageSizes:wt,pages:Xt,parent:fn}=ft,Ke=function x(ft){var zt=v("paddingLeft",ft)+v("paddingRight",ft);return v("width",ft)-zt}(fn),ht=b(wt),on=b(zt),hn=b(Xt);return{parent:Ke,pageSizes:ht,info:on+v("marginLeft",zt)+v("marginRight",zt),pages:hn}}({parent:this.parentRef.current,pageSizes:this.pageSizesRef.current,info:this.infoTextRef.current,pages:this.pagesRef.current});if(this.actualInfoTextVisible===this.state.infoTextVisible&&this.actualIsLargeDisplayMode===this.state.isLargeDisplayMode){var Xt=!(0,E.$K)(this.elementsWidth);Xt&&(this.elementsWidth={}),(Xt||this.state.isLargeDisplayMode)&&(this.elementsWidth.pageSizes=wt.pageSizes,this.elementsWidth.pages=wt.pages),(Xt||this.state.infoTextVisible)&&(this.elementsWidth.info=wt.info),this.actualIsLargeDisplayMode=function w(ft){var{pageSizes:zt,pages:wt,parent:Xt}=ft;return Xt-(zt+wt)>0}((0,a.Z)({parent:wt.parent},{pageSizes:this.elementsWidth.pageSizes,pages:this.elementsWidth.pages})),this.actualInfoTextVisible=function T(ft){var{info:zt,pageSizes:wt,pages:Xt,parent:fn}=ft;return fn-(wt+Xt+zt)>0}((0,a.Z)({},wt,{info:this.elementsWidth.info})),this.setState(fn=>({infoTextVisible:this.actualInfoTextVisible})),this.setState(fn=>({isLargeDisplayMode:this.actualIsLargeDisplayMode}))}}get restAttributes(){return(0,g.Z)(this.props,S)}render(){var wt=this.props;return(ft=>{var{contentAttributes:zt,infoTextRef:wt,infoTextVisible:Xt,isLargeDisplayMode:fn,pageSizesRef:Ke,pagesRef:ht,parentRef:on,props:{contentTemplate:hn}}=ft;return hn((0,a.Z)({rootElementRef:on,pageSizesRef:Ke,infoTextRef:wt,pagesRef:ht,infoTextVisible:Xt,isLargeDisplayMode:fn},zt))})({props:(0,a.Z)({},wt,{contentTemplate:P(wt.contentTemplate)}),infoTextVisible:this.state.infoTextVisible,isLargeDisplayMode:this.state.isLargeDisplayMode,parentRef:this.parentRef,pageSizesRef:this.pageSizesRef,infoTextRef:this.infoTextRef,pagesRef:this.pagesRef,contentAttributes:this.contentAttributes,parentWidth:this.parentWidth,updateAdaptivityProps:this.updateAdaptivityProps,restAttributes:this.restAttributes})}}return ft.defaultProps=R,ft})();var W=u(9009),z={gridCompatibility:!0,showInfo:!1,displayMode:"adaptive",maxPagesCount:10,pageCount:10,visible:!0,hasKnownLastPage:!0,pagesNavigatorVisible:"auto",showPageSizes:!0,pageSizes:Object.freeze([5,10]),showNavigationButtons:!1,totalCount:0,get label(){return W.Z.format("dxPager-ariaLabel")}},V=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(z),Object.getOwnPropertyDescriptors({defaultPageSize:5,pageSizeChange:()=>{},defaultPageIndex:1,pageIndexChange:()=>{}}))),U=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(z),Object.getOwnPropertyDescriptors({pageSize:5,pageIndex:1}))),K=u(9589),Y=["infoText","pageCount","pageIndex","rootElementRef","totalCount"],J="dx-info",G={get pageIndex(){return U.pageIndex},get pageCount(){return U.pageCount},get totalCount(){return U.totalCount}};let q=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={}}get infoText(){var wt;return(null!==(wt=this.props.infoText)&&void 0!==wt?wt:"")||W.Z.getFormatter("dxPager-infoText")()}get text(){var{pageCount:wt,pageIndex:Xt,totalCount:fn}=this.props;return(0,K.WU)(this.infoText,(Xt+1).toString(),wt.toString(),fn.toString())}get restAttributes(){return(0,g.Z)(this.props,Y)}render(){return(ft=>{var{props:{rootElementRef:zt},text:wt}=ft;return(0,p.Wm)(1,"div",J,wt,0,null,null,zt)})({props:(0,a.Z)({},this.props),infoText:this.infoText,text:this.text,restAttributes:this.restAttributes})}}return ft.defaultProps=G,ft})();var Z=u(5955),X=(0,s.kr)(void 0),M=["children","className","label","onClick","selected","tabIndex"],fe={className:"",label:"",tabIndex:0,selected:!1};let Te=(()=>{class ft extends s.OS{constructor(wt){super(wt),this.state={},this.widgetRef=(0,p.Vf)(),this.keyboardEffect=this.keyboardEffect.bind(this),this.subscribeToClick=this.subscribeToClick.bind(this)}get keyboardContext(){return this.context[X.id]?this.context[X.id]:X.defaultValue}createEffects(){return[new s.b0(this.keyboardEffect,[this.keyboardContext,this.props.onClick]),new s.b0(this.subscribeToClick,[this.props.onClick])]}updateEffects(){var wt,Xt;null===(wt=this._effects[0])||void 0===wt||wt.update([this.keyboardContext,this.props.onClick]),null===(Xt=this._effects[1])||void 0===Xt||Xt.update([this.props.onClick])}keyboardEffect(){return this.keyboardContext.registerKeyboardAction(this.widgetRef.current,this.props.onClick)}subscribeToClick(){return(0,Z.OZ)(this.widgetRef.current,this.props.onClick)}get restAttributes(){return(0,g.Z)(this.props,M)}render(){return(ft=>{var{props:{children:zt,className:wt,label:Xt,selected:fn,tabIndex:Ke},widgetRef:ht}=ft;return(0,p.Wm)(1,"div",wt,zt,0,{tabIndex:Ke,role:"button","aria-label":Xt,"aria-current":fn?"page":void 0},null,ht)})({props:(0,a.Z)({},this.props),widgetRef:this.widgetRef,keyboardContext:this.keyboardContext,restAttributes:this.restAttributes})}}return ft.defaultProps=fe,ft})();var ne="dx-selection",ce="dx-page-size",pe="".concat(ce," ").concat(ne),re=u(3667),te=["className","index","onClick","selected"],ue={index:0,selected:!1,className:"dx-page"};let be=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={}}get label(){return(0,K.WU)(W.Z.getFormatter("dxPager-page"),this.value)}get value(){return this.props.index+1}get className(){var{selected:wt}=this.props;return(0,re.G)({["".concat(this.props.className)]:!!this.props.className,[ne]:!!wt})}get restAttributes(){return(0,g.Z)(this.props,te)}render(){return(ft=>{var{className:zt,label:wt,props:{onClick:Xt,selected:fn},value:Ke}=ft;return(0,p.Iz)(2,Te,{className:zt,label:wt,onClick:Xt,selected:fn,children:Ke})})({props:(0,a.Z)({},this.props),label:this.label,value:this.value,className:this.className,restAttributes:this.restAttributes})}}return ft.defaultProps=ue,ft})();var Ae=u(903),Ne=["pageIndexes"],mt=["maxPagesCount","pageCount","pageIndex","pageIndexChange"];function tn(ft,zt,wt){return 1===ft?"high":ft+zt===wt-1?"low":"both"}function Pe(ft,zt,wt){var Xt=[],fn=[];switch(wt){case"none":Xt=[...ft];break;case"both":Xt=[0,"low",...ft,"high",zt-1],fn=ft.slice(1,-1);break;case"high":Xt=[0,...ft,"high",zt-1],fn=ft.slice(0,-1);break;case"low":Xt=[0,"low",...ft,zt-1],fn=ft.slice(1)}return{slidingWindowIndexes:ft,indexesForReuse:fn,pageIndexes:Xt}}function $e(ft,zt,wt,Xt){for(var fn=[],Ke=0;Ke<zt;Ke+=1)fn.push(Ke+ft);return Pe(fn,wt,Xt)}var ge={get pageIndex(){return U.pageIndex},get maxPagesCount(){return U.maxPagesCount},get pageCount(){return U.pageCount}};let Ce=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={},this.canReuseSlidingWindow=this.canReuseSlidingWindow.bind(this),this.generatePageIndexes=this.generatePageIndexes.bind(this),this.isSlidingWindowMode=this.isSlidingWindowMode.bind(this),this.onPageClick=this.onPageClick.bind(this)}get config(){return this.context[Ae.E.id]?this.context[Ae.E.id]:Ae.E.defaultValue}get slidingWindowState(){return this.slidingWindowStateHolder||{indexesForReuse:[],slidingWindowIndexes:[]}}canReuseSlidingWindow(wt,Xt){var{indexesForReuse:fn}=this.slidingWindowState,Ke=fn.slice(-1)[0]<wt-1,ht=fn.includes(Xt);return Ke&&ht}generatePageIndexes(){var fn,{pageCount:wt,pageIndex:Xt}=this.props,{slidingWindowIndexes:Ke}=this.slidingWindowState,hn=$e(fn=Xt===Ke[0]?Xt-1:Xt===Ke[Ke.length-1]?Xt+2-4:Xt<4?1:Xt>=wt-4?wt-4-1:Xt-1,4,wt,tn(fn,4,wt)),{pageIndexes:an}=hn,Nn=(0,g.Z)(hn,Ne);return this.slidingWindowStateHolder=Nn,an}isSlidingWindowMode(){var{maxPagesCount:wt,pageCount:Xt}=this.props;return Xt<=4||Xt<=wt}onPageClick(wt){this.props.pageIndexChange(wt)}get pageIndexes(){var{pageCount:wt}=this.props;if(this.isSlidingWindowMode())return $e(0,wt,wt,"none").pageIndexes;if(this.canReuseSlidingWindow(wt,this.props.pageIndex)){var{slidingWindowIndexes:Xt}=this.slidingWindowState;return Pe(Xt,wt,tn(Xt[0],4,wt)).pageIndexes}return this.generatePageIndexes()}get pages(){var wt,{pageIndex:Xt}=this.props,fn=ht=>{var on="low"===ht||"high"===ht?null:{index:ht,onClick:()=>this.onPageClick(ht),selected:Xt===ht};return{key:ht.toString(),pageProps:on}};return(null!==(wt=this.config)&&void 0!==wt&&wt.rtlEnabled?[...this.pageIndexes].reverse():this.pageIndexes).map(ht=>fn(ht))}get restAttributes(){return(0,g.Z)(this.props,mt)}render(){return(ft=>{var{pages:zt}=ft,wt=zt.map(Xt=>{var{key:fn,pageProps:Ke}=Xt;return Ke?(0,p.Iz)(2,be,{index:Ke.index,selected:Ke.selected,onClick:Ke.onClick},fn):(0,p.Wm)(1,"div","dx-separator",". . .",16,null,fn)});return(0,p.xJ)(wt,0)})({props:(0,a.Z)({},this.props),config:this.config,pageIndexes:this.pageIndexes,pages:this.pages,restAttributes:this.restAttributes})}}return ft.defaultProps=ge,ft})();var De=u(1946),Ye=u(4452),bt=u(4614),yt=u(2941),kt={hoverStateEnabled:!0,activeStateEnabled:!0,get focusStateEnabled(){return"desktop"===yt.Z.real().deviceType&&!yt.Z.isSimulator()}},gn=u(2722),ut={label:"",get labelMode(){return(0,gn.x2)((0,gn.Vk)())?"floating":"static"}},Ve=["accessKey","activeStateEnabled","className","defaultValue","disabled","focusStateEnabled","height","hint","hoverStateEnabled","invalidValueMessage","isValid","label","labelMode","max","min","mode","name","onClick","onFocusIn","onKeyDown","readOnly","rtlEnabled","showSpinButtons","step","tabIndex","useLargeSpinButtons","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","visible","width"],Vt=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(bt.nY),Object.getOwnPropertyDescriptors({defaultValue:0,isReactComponentWrapper:!0}))),lt={get defaultValue(){return Vt.defaultValue},get readOnly(){return Vt.readOnly},get name(){return Vt.name},get validationError(){return Vt.validationError},get validationErrors(){return Vt.validationErrors},get validationMessageMode(){return Vt.validationMessageMode},get validationMessagePosition(){return Vt.validationMessagePosition},get validationStatus(){return Vt.validationStatus},get isValid(){return Vt.isValid},get className(){return Vt.className},get activeStateEnabled(){return kt.activeStateEnabled},get disabled(){return Vt.disabled},get focusStateEnabled(){return kt.focusStateEnabled},get hoverStateEnabled(){return kt.hoverStateEnabled},get tabIndex(){return Vt.tabIndex},get visible(){return Vt.visible},get label(){return ut.label},get labelMode(){return ut.labelMode},isReactComponentWrapper:!0};let dt=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var wt=(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,g.Z)(wt,Ve)}render(){return(ft=>{var{componentProps:zt,restAttributes:wt}=ft;return(0,p.vs)((0,p.Iz)(2,Ye.Ag,(0,a.Z)({componentType:De.Z,componentProps:zt,templateNames:[]},wt)))})({props:(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return ft.defaultProps=lt,ft})();function Lt(ft,zt){return ft+10*Math.max(...zt).toString().length}var bn=["pageCount","pageIndex","pageIndexChange","pagesCountText"],mn="".concat(J,"  dx-info-text"),xn="dx-page-index",Vn={get pageIndex(){return U.pageIndex},get pageCount(){return U.pageCount}};let Oi=(()=>{class ft extends s.OS{constructor(wt){super(wt),this.pageIndexRef=(0,p.Vf)(),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this),this.selectLastPageIndex=this.selectLastPageIndex.bind(this),this.valueChange=this.valueChange.bind(this)}createEffects(){return[new s.b0(this.updateWidth,[this.state.minWidth])]}updateEffects(){var wt;null===(wt=this._effects[0])||void 0===wt||wt.update([this.state.minWidth])}updateWidth(){var wt,Xt=null===(wt=this.pageIndexRef.current)||void 0===wt?void 0:wt.querySelector(".".concat(xn));this.setState(fn=>({minWidth:Xt&&y(Xt)||fn.minWidth}))}get value(){return this.props.pageIndex+1}get width(){var{pageCount:wt}=this.props;return Lt(this.state.minWidth,[wt])}get pagesCountText(){var wt;return(null!==(wt=this.props.pagesCountText)&&void 0!==wt?wt:"")||W.Z.getFormatter("dxPager-pagesCountText")()}selectLastPageIndex(){this.props.pageIndexChange(this.props.pageCount-1)}valueChange(wt){this.props.pageIndexChange(wt-1)}get restAttributes(){return(0,g.Z)(this.props,bn)}render(){return(ft=>{var{pageIndexRef:zt,pagesCountText:wt,props:{pageCount:Xt},selectLastPageIndex:fn,value:Ke,valueChange:ht,width:on}=ft;return(0,p.Wm)(1,"div","dx-light-pages",[(0,p.Iz)(2,dt,{className:xn,min:1,max:Xt,width:on,value:Ke,valueChange:ht}),(0,p.Wm)(1,"span",mn,wt,0),(0,p.Iz)(2,be,{className:"dx-pages-count",selected:!1,index:Xt-1,onClick:fn})],4,null,null,zt)})({props:(0,a.Z)({},this.props),pageIndexRef:this.pageIndexRef,value:this.value,width:this.width,pagesCountText:this.pagesCountText,selectLastPageIndex:this.selectLastPageIndex,valueChange:this.valueChange,restAttributes:this.restAttributes})}}return ft.defaultProps=Vn,ft})();var Hn=["hasKnownLastPage","isLargeDisplayMode","maxPagesCount","pageCount","pageIndex","pageIndexChange","pagesCountText","showNavigationButtons","totalCount"],En="dx-navigate-button",Mn="dx-prev-button",ei="dx-next-button",Wn="dx-button-disable",Qn={nextEnabledClass:"".concat(En," ").concat(ei),prevEnabledClass:"".concat(En," ").concat(Mn),nextDisabledClass:"".concat(Wn," ").concat(En," ").concat(ei),prevDisabledClass:"".concat(Wn," ").concat(En," ").concat(Mn)},ti={next:"prev",prev:"next"},nr={get pageIndex(){return U.pageIndex},get maxPagesCount(){return U.maxPagesCount},get pageCount(){return U.pageCount},get hasKnownLastPage(){return U.hasKnownLastPage},get showNavigationButtons(){return U.showNavigationButtons},get totalCount(){return U.totalCount},get isLargeDisplayMode(){return true}};let xr=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={},this.__getterCache={},this.pageIndexChange=this.pageIndexChange.bind(this),this.getButtonProps=this.getButtonProps.bind(this),this.canNavigateToPage=this.canNavigateToPage.bind(this),this.getNextPageIndex=this.getNextPageIndex.bind(this),this.canNavigateTo=this.canNavigateTo.bind(this),this.navigateToPage=this.navigateToPage.bind(this)}get config(){return this.context[Ae.E.id]?this.context[Ae.E.id]:Ae.E.defaultValue}pageIndexChange(wt){this.canNavigateToPage(wt)&&this.props.pageIndexChange(wt)}getButtonProps(wt){var Xt,fn=null!==(Xt=this.config)&&void 0!==Xt&&Xt.rtlEnabled?ti[wt]:wt,Ke=this.canNavigateTo(fn);return{className:Qn["".concat(wt).concat(Ke?"Enabled":"Disabled","Class")],tabIndex:Ke?0:-1,navigate:()=>this.navigateToPage(fn)}}canNavigateToPage(wt){return this.props.hasKnownLastPage?wt>=0&&wt<=this.props.pageCount-1:wt>=0}getNextPageIndex(wt){return this.props.pageIndex+function Wi(ft){return"next"===ft?1:-1}(wt)}canNavigateTo(wt){return this.canNavigateToPage(this.getNextPageIndex(wt))}navigateToPage(wt){this.pageIndexChange(this.getNextPageIndex(wt))}get renderPrevButton(){var{isLargeDisplayMode:wt,showNavigationButtons:Xt}=this.props;return!wt||Xt}get renderNextButton(){return this.renderPrevButton||!this.props.hasKnownLastPage}get prevButtonProps(){return void 0!==this.__getterCache.prevButtonProps?this.__getterCache.prevButtonProps:this.__getterCache.prevButtonProps=(()=>this.getButtonProps("prev"))()}get nextButtonProps(){return void 0!==this.__getterCache.nextButtonProps?this.__getterCache.nextButtonProps:this.__getterCache.nextButtonProps=(()=>this.getButtonProps("next"))()}get restAttributes(){return(0,g.Z)(this.props,Hn)}componentWillUpdate(wt,Xt,fn){(this.context[Ae.E.id]!==fn[Ae.E.id]||this.props.hasKnownLastPage!==wt.hasKnownLastPage||this.props.pageCount!==wt.pageCount||this.props.pageIndex!==wt.pageIndex||this.props.pageIndexChange!==wt.pageIndexChange)&&(this.__getterCache.prevButtonProps=void 0),(this.context[Ae.E.id]!==fn[Ae.E.id]||this.props.hasKnownLastPage!==wt.hasKnownLastPage||this.props.pageCount!==wt.pageCount||this.props.pageIndex!==wt.pageIndex||this.props.pageIndexChange!==wt.pageIndexChange)&&(this.__getterCache.nextButtonProps=void 0)}render(){return(ft=>{var{nextButtonProps:zt,pageIndexChange:wt,prevButtonProps:Xt,props:{isLargeDisplayMode:fn,maxPagesCount:Ke,pageCount:ht,pageIndex:on,pagesCountText:hn},renderNextButton:an,renderPrevButton:Nn}=ft;return(0,p.xJ)([Nn&&(0,p.Iz)(2,Te,{label:W.Z.getFormatter("dxPager-prevPage")(),className:Xt.className,tabIndex:Xt.tabIndex,onClick:Xt.navigate}),fn&&(0,p.Iz)(2,Ce,{maxPagesCount:Ke,pageCount:ht,pageIndex:on,pageIndexChange:wt}),!fn&&(0,p.Iz)(2,Oi,{pageCount:ht,pageIndex:on,pageIndexChange:wt,pagesCountText:hn}),an&&(0,p.Iz)(2,Te,{label:W.Z.getFormatter("dxPager-nextPage")(),className:zt.className,tabIndex:zt.tabIndex,onClick:zt.navigate})],0)})({props:(0,a.Z)({},this.props),config:this.config,pageIndexChange:this.pageIndexChange,renderPrevButton:this.renderPrevButton,renderNextButton:this.renderNextButton,prevButtonProps:this.prevButtonProps,nextButtonProps:this.nextButtonProps,restAttributes:this.restAttributes})}}return ft.defaultProps=nr,ft})();var vn=u(5079),Pn=["accessKey","activeStateEnabled","className","dataSource","defaultValue","disabled","displayExpr","focusStateEnabled","height","hint","hoverStateEnabled","isValid","label","labelMode","name","onClick","onFocusIn","onKeyDown","placeholder","readOnly","rtlEnabled","searchEnabled","tabIndex","validationError","validationErrors","validationMessageMode","validationMessagePosition","validationStatus","value","valueChange","valueExpr","visible","width"],Si=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(bt.nY),Object.getOwnPropertyDescriptors({placeholder:"",hoverStateEnabled:!0,searchEnabled:!1,defaultValue:null,isReactComponentWrapper:!0}))),Yi={get placeholder(){return Si.placeholder},get hoverStateEnabled(){return kt.hoverStateEnabled},get searchEnabled(){return Si.searchEnabled},get defaultValue(){return Si.defaultValue},get readOnly(){return Si.readOnly},get name(){return Si.name},get validationError(){return Si.validationError},get validationErrors(){return Si.validationErrors},get validationMessageMode(){return Si.validationMessageMode},get validationMessagePosition(){return Si.validationMessagePosition},get validationStatus(){return Si.validationStatus},get isValid(){return Si.isValid},get className(){return Si.className},get activeStateEnabled(){return kt.activeStateEnabled},get disabled(){return Si.disabled},get focusStateEnabled(){return kt.focusStateEnabled},get tabIndex(){return Si.tabIndex},get visible(){return Si.visible},get label(){return ut.label},get labelMode(){return ut.labelMode},isReactComponentWrapper:!0};let dr=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={value:void 0!==this.props.value?this.props.value:this.props.defaultValue}}get componentProps(){return(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value})}get restAttributes(){var wt=(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value});return(0,g.Z)(wt,Pn)}render(){return(ft=>{var{componentProps:zt,restAttributes:wt}=ft;return(0,p.vs)((0,p.Iz)(2,Ye.Ag,(0,a.Z)({componentType:vn.Z,componentProps:zt,templateNames:["dropDownButtonTemplate","groupTemplate","itemTemplate"]},wt)))})({props:(0,a.Z)({},this.props,{value:void 0!==this.props.value?this.props.value:this.state.value}),componentProps:this.componentProps,restAttributes:this.restAttributes})}}return ft.defaultProps=Yi,ft})();var kr=["pageSize","pageSizeChange","pageSizes","parentRef"],Qr={get pageSize(){return U.pageSize}};let Sr=(()=>{class ft extends s.OS{constructor(wt){super(wt),this.state={minWidth:10},this.updateWidth=this.updateWidth.bind(this)}createEffects(){return[new s.b0(this.updateWidth,[this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])]}updateEffects(){var wt;null===(wt=this._effects[0])||void 0===wt||wt.update([this.props,this.state.minWidth,this.props.pageSize,this.props.pageSizeChange,this.props.pageSizes])}updateWidth(){this.setState(wt=>({minWidth:y(this.props.parentRef.current)||wt.minWidth}))}get width(){return Lt(this.state.minWidth,this.props.pageSizes.map(wt=>wt.value))}get restAttributes(){return(0,g.Z)(this.props,kr)}render(){return(ft=>{var{props:{pageSize:zt,pageSizeChange:wt,pageSizes:Xt},width:fn}=ft;return(0,p.Iz)(2,dr,{displayExpr:"text",valueExpr:"value",dataSource:Xt,value:zt,valueChange:wt,width:fn})})({props:(0,a.Z)({},this.props),width:this.width,restAttributes:this.restAttributes})}}return ft.defaultProps=Qr,ft})();var Wr=["pageSize","pageSizeChange","pageSizes"],mo={get pageSize(){return U.pageSize}};let Mr=(()=>{class ft extends s.Ul{constructor(wt){super(wt),this.state={},this.__getterCache={},this.onPageSizeChange=this.onPageSizeChange.bind(this)}get pageSizesText(){return void 0!==this.__getterCache.pageSizesText?this.__getterCache.pageSizesText:this.__getterCache.pageSizesText=(()=>{var{pageSize:wt,pageSizes:Xt}=this.props;return Xt.map((fn,Ke)=>{var{text:ht,value:on}=fn;return{className:(0,re.G)({[on===wt?pe:ce]:!0,"dx-first-child":0===Ke}),click:this.onPageSizeChange(on),label:(0,K.WU)(W.Z.getFormatter("dxPager-pageSize"),on||W.Z.getFormatter("dxPager-pageSizesAllText")),text:ht}})})()}onPageSizeChange(wt){return()=>(this.props.pageSizeChange(wt),this.props.pageSize)}get restAttributes(){return(0,g.Z)(this.props,Wr)}componentWillUpdate(wt,Xt,fn){(this.props.pageSize!==wt.pageSize||this.props.pageSizes!==wt.pageSizes||this.props.pageSizeChange!==wt.pageSizeChange)&&(this.__getterCache.pageSizesText=void 0)}render(){return(ft=>{var{pageSizesText:zt}=ft;return(0,p.xJ)(zt.map(wt=>{var{className:Xt,click:fn,label:Ke,text:ht}=wt;return(0,p.Iz)(2,Te,{className:Xt,label:Ke,onClick:fn,children:ht},ht)}),0)})({props:(0,a.Z)({},this.props),pageSizesText:this.pageSizesText,restAttributes:this.restAttributes})}}return ft.defaultProps=mo,ft})();var po=["isLargeDisplayMode","pageSize","pageSizeChange","pageSizes","rootElementRef"],lo={get pageSize(){return U.pageSize},get pageSizes(){return U.pageSizes},get isLargeDisplayMode(){return true}};let _o=(()=>{class ft extends s.OS{constructor(wt){super(wt),this.state={},this.htmlRef=(0,p.Vf)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this)}createEffects(){return[new s.b0(this.setRootElementRef,[])]}setRootElementRef(){var{rootElementRef:wt}=this.props;wt&&(wt.current=this.htmlRef.current)}get normalizedPageSizes(){return void 0!==this.__getterCache.normalizedPageSizes?this.__getterCache.normalizedPageSizes:this.__getterCache.normalizedPageSizes=(()=>{var{pageSizes:wt}=this.props;return wt.map(Xt=>"all"===Xt||0===Xt?{text:W.Z.getFormatter("dxPager-pageSizesAllText")(),value:0}:{text:String(Xt),value:Xt})})()}get restAttributes(){return(0,g.Z)(this.props,po)}componentWillUpdate(wt,Xt,fn){super.componentWillUpdate(),this.props.pageSizes!==wt.pageSizes&&(this.__getterCache.normalizedPageSizes=void 0)}render(){return(ft=>{var{htmlRef:zt,normalizedPageSizes:wt,props:{isLargeDisplayMode:Xt,pageSize:fn,pageSizeChange:Ke}}=ft;return(0,p.Wm)(1,"div","dx-page-sizes",[Xt&&(0,p.Iz)(2,Mr,{pageSizes:wt,pageSize:fn,pageSizeChange:Ke}),!Xt&&(0,p.Iz)(2,Sr,{parentRef:zt,pageSizes:wt,pageSize:fn,pageSizeChange:Ke})],0,null,null,zt)})({props:(0,a.Z)({},this.props),htmlRef:this.htmlRef,normalizedPageSizes:this.normalizedPageSizes,restAttributes:this.restAttributes})}}return ft.defaultProps=lo,ft})();var bo=u(2735),It=u(2559),en=["className","displayMode","gridCompatibility","hasKnownLastPage","infoText","infoTextRef","infoTextVisible","isLargeDisplayMode","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pageSizesRef","pagesCountText","pagesNavigatorVisible","pagesRef","rootElementRef","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"],vi=Object.create(Object.prototype,(0,a.Z)(Object.getOwnPropertyDescriptors(U),Object.getOwnPropertyDescriptors({infoTextVisible:!0,isLargeDisplayMode:!0})));let _i=(()=>{class ft extends s.OS{constructor(wt){super(wt),this.state={},this.widgetRootElementRef=(0,p.Vf)(),this.__getterCache={},this.setRootElementRef=this.setRootElementRef.bind(this),this.createFakeInstance=this.createFakeInstance.bind(this)}createEffects(){return[new s.b0(this.setRootElementRef,[])]}getChildContext(){return(0,a.Z)({},this.context,{[X.id]:this.keyboardAction||X.defaultValue})}setRootElementRef(){var{rootElementRef:wt}=this.props;wt&&(wt.current=this.widgetRootElementRef.current)}createFakeInstance(){return{option:()=>!1,element:()=>this.widgetRootElementRef.current,_createActionByOption:()=>wt=>{var Xt,fn;null===(Xt=(fn=this.props).onKeyDown)||void 0===Xt||Xt.call(fn,wt)}}}get keyboardAction(){return void 0!==this.__getterCache.keyboardAction?this.__getterCache.keyboardAction:this.__getterCache.keyboardAction=(()=>({registerKeyboardAction:(wt,Xt)=>{var fn=this.createFakeInstance();return(0,It.Y4)("pager",fn,wt,void 0,Xt)}}))()}get infoVisible(){var{infoTextVisible:wt,showInfo:Xt}=this.props;return Xt&&wt}get pageIndexSelectorVisible(){return 0!==this.props.pageSize}get normalizedDisplayMode(){var{displayMode:wt,lightModeEnabled:Xt}=this.props;return"adaptive"===wt&&void 0!==Xt?Xt?"compact":"full":wt}get pagesContainerVisible(){return!!this.props.pagesNavigatorVisible&&this.props.pageCount>0}get pagesContainerVisibility(){if("auto"===this.props.pagesNavigatorVisible&&1===this.props.pageCount&&this.props.hasKnownLastPage)return"hidden"}get isLargeDisplayMode(){var wt=this.normalizedDisplayMode;return"adaptive"===wt?this.props.isLargeDisplayMode:"full"===wt}get classes(){var wt={["".concat(this.props.className)]:!!this.props.className,"dx-pager":!0,"dx-light-mode":!this.isLargeDisplayMode};return(0,re.G)(wt)}get aria(){return{role:"navigation",label:this.props.label}}get restAttributes(){return(0,g.Z)(this.props,en)}componentWillUpdate(wt,Xt,fn){super.componentWillUpdate(),this.props.onKeyDown!==wt.onKeyDown&&(this.__getterCache.keyboardAction=void 0)}render(){return(ft=>{var{aria:zt,classes:wt,infoVisible:Xt,isLargeDisplayMode:fn,pageIndexSelectorVisible:Ke,pagesContainerVisibility:ht,pagesContainerVisible:on,props:{hasKnownLastPage:hn,infoText:an,infoTextRef:Nn,maxPagesCount:$n,pageCount:ot,pageIndex:Bt,pageIndexChange:nn,pageSize:On,pageSizeChange:nt,pageSizes:Rt,pageSizesRef:pt,pagesCountText:jt,pagesRef:Un,rtlEnabled:oi,showNavigationButtons:xi,showPageSizes:Ai,totalCount:Ui,visible:ji},restAttributes:Qi,widgetRootElementRef:Tr}=ft;return(0,p.vs)((0,p.Iz)(2,bo.$L,(0,a.Z)({rootElementRef:Tr,rtlEnabled:oi,classes:wt,visible:ji,aria:zt},Qi,{children:[Ai&&(0,p.Iz)(2,_o,{rootElementRef:pt,isLargeDisplayMode:fn,pageSize:On,pageSizeChange:nt,pageSizes:Rt}),on&&(0,p.Wm)(1,"div","dx-pages",[Xt&&(0,p.Iz)(2,q,{rootElementRef:Nn,infoText:an,pageCount:ot,pageIndex:Bt,totalCount:Ui}),Ke&&(0,p.Wm)(1,"div","dx-page-indexes",(0,p.Iz)(2,xr,{hasKnownLastPage:hn,isLargeDisplayMode:fn,maxPagesCount:$n,pageCount:ot,pageIndex:Bt,pageIndexChange:nn,pagesCountText:jt,showNavigationButtons:xi,totalCount:Ui}),2,null,null,Un)],0,{style:(0,s.jk)({visibility:ht})})]})))})({props:(0,a.Z)({},this.props),widgetRootElementRef:this.widgetRootElementRef,keyboardAction:this.keyboardAction,infoVisible:this.infoVisible,pageIndexSelectorVisible:this.pageIndexSelectorVisible,pagesContainerVisible:this.pagesContainerVisible,pagesContainerVisibility:this.pagesContainerVisibility,isLargeDisplayMode:this.isLargeDisplayMode,classes:this.classes,aria:this.aria,restAttributes:this.restAttributes})}}return ft.defaultProps=vi,ft})();var dn=["className","defaultPageIndex","defaultPageSize","displayMode","gridCompatibility","hasKnownLastPage","infoText","label","lightModeEnabled","maxPagesCount","onKeyDown","pageCount","pageIndex","pageIndexChange","pageSize","pageSizeChange","pageSizes","pagesCountText","pagesNavigatorVisible","rtlEnabled","showInfo","showNavigationButtons","showPageSizes","totalCount","visible"];let Zn=(()=>{class ft extends s.DZ{constructor(wt){super(wt),this.__getterCache={},this.state={pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.props.defaultPageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.props.defaultPageIndex},this.pageIndexChange=this.pageIndexChange.bind(this),this.pageSizeChange=this.pageSizeChange.bind(this)}createEffects(){return[(0,s.gt)()]}pageIndexChange(wt){var Xt,fn;this.props.gridCompatibility?(this.setState(Ke=>({pageIndex:Xt=wt+1})),this.props.pageIndexChange(Xt)):(this.setState(Ke=>({pageIndex:fn=wt})),this.props.pageIndexChange(fn))}get pageIndex(){return this.props.gridCompatibility?(void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex)-1:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}pageSizeChange(wt){var Xt;this.setState(fn=>({pageSize:Xt=wt})),this.props.pageSizeChange(Xt)}get className(){return this.props.gridCompatibility?(0,re.G)({"dx-datagrid-pager":!0,["".concat(this.props.className)]:!!this.props.className}):this.props.className}get pagerProps(){return void 0!==this.__getterCache.pagerProps?this.__getterCache.pagerProps:this.__getterCache.pagerProps=(()=>(0,a.Z)({},(0,a.Z)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),{className:this.className,pageIndex:this.pageIndex,pageIndexChange:wt=>this.pageIndexChange(wt),pageSizeChange:wt=>this.pageSizeChange(wt)}))()}get restAttributes(){var wt=(0,a.Z)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex});return(0,g.Z)(wt,dn)}componentWillUpdate(wt,Xt,fn){super.componentWillUpdate(),(this.props!==wt||this.props.gridCompatibility!==wt.gridCompatibility||this.props.className!==wt.className||this.state.pageIndex!==Xt.pageIndex||this.props.pageIndex!==wt.pageIndex||this.props.pageIndexChange!==wt.pageIndexChange||this.props.pageSizeChange!==wt.pageSizeChange)&&(this.__getterCache.pagerProps=void 0)}render(){return(ft=>{var{pagerProps:zt,restAttributes:wt}=ft;return(0,p.vs)((0,p.Iz)(2,B,(0,a.Z)({contentTemplate:_i,pagerProps:zt},wt)))})({props:(0,a.Z)({},this.props,{pageSize:void 0!==this.props.pageSize?this.props.pageSize:this.state.pageSize,pageIndex:void 0!==this.props.pageIndex?this.props.pageIndex:this.state.pageIndex}),pageIndexChange:this.pageIndexChange,pageIndex:this.pageIndex,pageSizeChange:this.pageSizeChange,className:this.className,pagerProps:this.pagerProps,restAttributes:this.restAttributes})}}return ft.defaultProps=V,ft})();class fi extends C{getProps(){var zt=super.getProps();return zt.onKeyDown=this._wrapKeyDownHandler(zt.onKeyDown),zt}get _propsInfo(){return{twoWay:[["pageSize","defaultPageSize","pageSizeChange"],["pageIndex","defaultPageIndex","pageIndexChange"]],allowNull:[],elements:[],templates:[],props:["defaultPageSize","pageSizeChange","defaultPageIndex","pageIndexChange","gridCompatibility","className","showInfo","infoText","lightModeEnabled","displayMode","maxPagesCount","pageCount","pagesCountText","visible","hasKnownLastPage","pagesNavigatorVisible","showPageSizes","pageSizes","rtlEnabled","showNavigationButtons","totalCount","label","onKeyDown","pageSize","pageIndex"]}}get _viewComponent(){return Zn}}(0,c.Z)("dxPager",fi);const Li=fi;var sr=u(4514),_n=function(ft){return 1+(parseInt(ft.pageIndex())||0)},Ct={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto",label:W.Z.format("dxPager-ariaLabel")}}},views:{pagerView:o.Z.View.inherit({init:function(){var ft=this.getController("data");ft.changed.add(zt=>{if(zt&&zt.repaintChangesOnly){var wt=this._pager;wt?wt.option({pageIndex:_n(ft),pageSize:ft.pageSize(),pageCount:ft.pageCount(),totalCount:ft.totalCount(),hasKnownLastPage:ft.hasKnownLastPage()}):this.render()}else(!zt||"update"!==zt.changeType&&"updateSelection"!==zt.changeType&&"updateFocusedRow"!==zt.changeType)&&(this._pager=null,this.render())})},_renderCore:function(){var ft=this.element().addClass(this.addWidgetPrefix("pager")),zt=this.option("pager")||{},wt=this.getController("data"),Xt=this.getController("keyboardNavigation"),fn={maxPagesCount:10,pageIndex:_n(wt),pageCount:wt.pageCount(),pageSize:wt.pageSize(),showPageSizes:zt.showPageSizeSelector,showInfo:zt.showInfo,displayMode:zt.displayMode,pagesNavigatorVisible:zt.visible,showNavigationButtons:zt.showNavigationButtons,label:zt.label,pageSizes:this.getPageSizes(),totalCount:wt.totalCount(),hasKnownLastPage:wt.hasKnownLastPage(),pageIndexChanged:function(Ke){wt.pageIndex()!==Ke-1&&wt.pageIndex(Ke-1)},pageSizeChanged:function(Ke){wt.pageSize(Ke)},onKeyDown:Ke=>Xt&&Xt.executeAction("onKeyDown",Ke),useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,E.$K)(zt.infoText)&&(fn.infoText=zt.infoText),this._pager?this._pager.repaint():(0,sr.Ym)()?this._pager=this._createComponent(ft,Li,fn):ft.addClass("dx-pager").html('<div class="dx-pages"><div class="dx-page"></div></div>')},getPager:function(){return this._pager},getPageSizes:function(){var ft=this.getController("data"),zt=this.option("pager"),wt=zt&&zt.allowedPageSizes,Xt=ft.pageSize();return(!(0,E.$K)(this._pageSizes)||!this._pageSizes.includes(Xt))&&(this._pageSizes=[],zt&&(Array.isArray(wt)?this._pageSizes=wt:wt&&Xt>1&&(this._pageSizes=[Math.floor(Xt/2),Xt,2*Xt]))),this._pageSizes},isVisible:function(){var ft=this.getController("data"),zt=this.option("pager"),wt=zt&&zt.visible,Xt=this.option("scrolling");return"auto"===wt&&(wt=(!Xt||"virtual"!==Xt.mode&&"infinite"!==Xt.mode)&&(ft.pageCount()>1||ft.isLoaded()&&!ft.hasKnownLastPage())),wt},getHeight:function(){return this.getElementHeight()},optionChanged:function(ft){var zt=ft.name,wt="pager"===zt,Xt="paging"===zt,fn="dataSource"===zt,Ke="scrolling"===zt,ht=this.getController("data");if(wt||Xt||Ke||fn){if(ft.handled=!0,ht.skipProcessingPagingChange(ft.fullName))return;(wt||Xt)&&(this._pageSizes=null),fn||(this._pager=null,this._invalidate(),(0,sr.Ym)()&&wt&&this.component&&this.component.resize())}},dispose:function(){this._pager=null}})}}},8702:(Rn,he,u)=>{"use strict";u.d(he,{d:()=>x});var o=u(1805),c=u(9904),I=u(5873),C=u(1414),g=u(2879),a=u(7674),p="dx-command-drag",h="dx-sortable-without-handle",x={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:{init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var b=this.option("rowDragging");return!(!b||!(b.allowReordering||b.allowDropInsideItem||b.group))},_updateHandleColumn:function(){var b=this.option("rowDragging"),y=this._allowReordering(),E=this._columnsController,S=y&&b.showDragIcons;E&&E.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:p,width:"auto",cellTemplate:this._getHandleTemplate(),visible:S}),E.columnOption("type:drag","visible",S)},_renderContent:function(){var b=this.option("rowDragging"),y=this._allowReordering(),E=this.callBase.apply(this,arguments),S=this._isFixedTableRendering,O="_sortable",w="_sortableFixed",T=S?w:O,k=S?O:w,R=W=>{var z;null===(z=this[w])||void 0===z||z.$element().css("pointerEvents",W?"auto":"")},P=".dx-row:not(.dx-freespace-row):not(.dx-virtual-row):not(.dx-header-row):not(.dx-footer-row)",B=this.option("dataRowTemplate")?"> table > tbody".concat(P):"> table > tbody > ".concat(P);return(y||this[T])&&E.length&&(this[T]=this._createComponent(E,C.Z,(0,I.l)({component:this.component,contentTemplate:null,filter:B,cursorOffset:W=>{var z=W.event,V=(0,c.Z)(this.element()).offset();return{x:z.pageX-V.left}},onDraggableElementShown:W=>{if(!b.dragTemplate){var V=(0,c.Z)(W.dragElement).children(".dx-widget").data(this.component.NAME);this._synchronizeScrollLeftPosition(V)}},dragTemplate:this._getDraggableRowTemplate(),handle:b.showDragIcons&&".".concat(p),dropFeedbackMode:"indicate"},b,{onDragStart:W=>{var z,V;null===(z=this.getController("keyboardNavigation"))||void 0===z||z._resetFocusedCell();var U=W.component.getVisibleRows()[W.fromIndex];W.itemData=U&&U.data,W.cancel=!y||!(U&&"data"===U.rowType),null===(V=b.onDragStart)||void 0===V||V.call(b,W)},onDragEnter:()=>{R(!0)},onDragLeave:()=>{R(!1)},onDragEnd:W=>{var z;R(!1),null===(z=b.onDragEnd)||void 0===z||z.call(b,W)},onAdd:W=>{var z;R(!1),null===(z=b.onAdd)||void 0===z||z.call(b,W)},dropFeedbackMode:b.dropFeedbackMode,onOptionChanged:W=>{this[w]&&("fromIndex"===W.name||"toIndex"===W.name)&&this[k].option(W.name,W.value)}})),E.toggleClass("dx-scrollable-container",S),E.toggleClass(h,y&&!b.showDragIcons)),E},_renderCore(b){this.callBase.apply(this,arguments),b&&"update"===b.changeType&&b.repaintChangesOnly&&g.Z.isVirtualRowRendering(this)&&(0,a.Su)(()=>{this._updateSortable()})},_updateSortable(){var b=this._dataController.getRowIndexOffset();[this._sortable,this._sortableFixed].forEach(y=>{y?.option("offset",b),y?.update()})},_resizeCore:function(){this.callBase.apply(this,arguments),this._updateSortable()},_getDraggableGridOptions:function(b){var y=this.option(),E=this.getColumns(),S=(0,c.Z)(this.getRowElement(b.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:"never"},pager:{visible:!1},loadingTimeout:null,columnFixing:y.columnFixing,columnAutoWidth:y.columnAutoWidth,showColumnLines:y.showColumnLines,columns:E.map(O=>({width:O.width||O.visibleWidth,fixed:O.fixed,fixedPosition:O.fixedPosition})),onRowPrepared:O=>{var w=O.component.getView("rowsView");(0,c.Z)(O.rowElement).replaceWith(S.eq(w._isFixedTableRendering?1:0).clone())}}},_synchronizeScrollLeftPosition:function(b){var y=b?.getScrollable();y?.scrollTo({x:this._scrollLeft})},_getDraggableRowTemplate:function(){return b=>{var y=this.component.$element(),E=(0,c.Z)("<div>");(0,o.cl)(E,(0,o.dz)(y));var S=this._dataController.items(),w=this._getDraggableGridOptions(S&&S[b.fromIndex]);return this._createComponent(E,this.component.NAME,w),E.find(".dx-gridbase-container").children(":not(.".concat(this.addWidgetPrefix("rowsview"),")")).hide(),E}},_getHandleTemplate:function(){return(b,y)=>{if("data"===y.rowType)return(0,c.Z)(b).addClass("dx-cell-focus-disabled"),(0,c.Z)("<span>").addClass(this.addWidgetPrefix("drag-icon"));g.Z.setEmptyText((0,c.Z)(b))}},optionChanged:function(b){"rowDragging"===b.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),b.handled=!0),this.callBase.apply(this,arguments)}}}}}},6027:(Rn,he,u)=>{"use strict";u.d(he,{U:()=>q});var o=u(4817),c=u(1805),I=u(9904),C=u(4514),g=u(913),a=u(7674),p=u(4356),s=u(1828),l=u(2718),d=u(5873),h=u(5450),v=u(9589),x=u(6738),b=u(2879),y=u(5004),E=u(8487),S=u(4416),O=u(9009),w=u(4722),P="dx-group-row",B="dx-group-cell",W="dx-data-row",z="dx-freespace-row",V="dx-row-lines",U="dx-column-lines",K="dx-row-alt",Y="dx-last-row-border";function G(Z){return Z?Math.round(Z.scrollWidth()-Z.clientWidth()):0}var Z,X,q={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:O.Z.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},dataRowTemplate:null,columnAutoWidth:!1,noDataText:O.Z.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:y.p.inherit((Z=function(M,oe){var fe=(0,v.xb)(oe.text)&&"data"===oe.rowType,Te=oe.text,Be=M.get(0);fe?b.Z.setEmptyText(M):oe.column.encodeHtml?Be.textContent=Te:Be.innerHTML=Te},X={_getDefaultTemplate:function(M){return"empty"===M.command?function(oe){oe.html("&nbsp;")}:Z},_getDefaultGroupTemplate:function(M){var oe=this.option("summary.texts");return function(fe,Te){var Be=Te.data,ze=Te.column.caption+": "+Te.text,ae=fe.get(0);Te.summaryItems&&Te.summaryItems.length&&(ze+=" "+b.Z.getGroupRowSummaryText(Te.summaryItems,oe)),Be&&(Te.groupContinuedMessage&&Te.groupContinuesMessage?ze+=" ("+Te.groupContinuedMessage+". "+Te.groupContinuesMessage+")":Te.groupContinuesMessage?ze+=" ("+Te.groupContinuesMessage+")":Te.groupContinuedMessage&&(ze+=" ("+Te.groupContinuedMessage+")")),fe.addClass(B),M.encodeHtml?ae.textContent=ze:ae.innerHTML=ze}},_update:function(){},_getCellTemplate:function(M){var oe=M.column;return"group"!==M.rowType||!(0,s.$K)(oe.groupIndex)||oe.showWhenGrouped||oe.command?("data"===M.rowType||oe.command)&&oe.cellTemplate?oe.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(oe)}:oe.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(oe)}},_createRow:function(M){var oe=this.callBase.apply(this,arguments);if(M){var fe="group"===M.rowType,Te="data"===M.rowType;if(Te&&oe.addClass(W),Te&&this.option("showRowLines")&&oe.addClass(V),this.option("showColumnLines")&&oe.addClass(U),!1===M.visible&&oe.hide(),fe){oe.addClass(P);var Be=M.isExpanded;this.setAria("role","row",oe),this.setAria("expanded",(0,s.$K)(Be)&&Be.toString(),oe)}}return oe},_rowPrepared:function(M,oe,fe){"data"===oe.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(fe)&&M.addClass(K),oe.watch&&oe.watch(()=>this._isAltRow(fe),Te=>{M.toggleClass(K,Te)})),this._setAriaRowIndex(oe,M),oe.watch&&oe.watch(()=>oe.rowIndex,()=>this._setAriaRowIndex(oe,M))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(M,oe){var fe=this.component,Te="standard"===fe.option("scrolling.mode")&&!b.Z.isVirtualRowRendering(fe),Be=M.rowIndex+1;Te?Be=fe.pageIndex()*fe.pageSize()+Be:Be+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",Be,oe)},_afterRowPrepared:function(M){var oe=M.args[0],fe=this._dataController,Te=fe.getVisibleRows()[oe.rowIndex],Be=this.option("integrationOptions.watchMethod");if(oe.data&&"data"===oe.rowType&&!oe.isNewRow&&this.option("twoWayBindingEnabled")&&Be&&Te){var ze=Be(()=>fe.generateDataValues(oe.data,oe.columns),()=>{fe.repaintRows([Te.rowIndex],this.option("repaintChangesOnly"))},{deep:!0,skipImmediate:!0});g.Z.on(oe.rowElement,S.x,ze)}},_renderScrollable:function(M){var oe=this.element();if(oe.children().length||oe.append("<div>"),(M||!this._loadPanel)&&this._renderLoadPanel(oe,oe.parent(),this._dataController.isLocalStore()),(M||!this.getScrollable())&&this._dataController.isLoaded()){for(var fe=this.getColumns(),Te=!0,Be=0;Be<fe.length;Be++)if(!fe[Be].width&&!fe[Be].minWidth){Te=!1;break}(this.option("columnAutoWidth")||this._hasHeight||Te||this._columnsController._isColumnFixing())&&this._renderScrollableCore(oe)}},_handleScroll:function(M){var oe=this.option("rtlEnabled"),fe=M.component.option("useNative");this._scrollTop=M.scrollOffset.top,this._scrollLeft=M.scrollOffset.left;var Te=M.scrollOffset.left;oe&&(this._scrollRight=G(M.component)-this._scrollLeft,fe&&(Te=-this._scrollRight),this.isScrollbarVisible(!0)||(this._scrollLeft=-1)),this.scrollChanged.fire((0,o.Z)({},M.scrollOffset,{left:Te}),this.name)},_renderScrollableCore:function(M){var oe=this._createScrollableOptions(),fe=this._handleScroll.bind(this);oe.onScroll=fe,this._scrollable=this._createComponent(M,E.Z,oe),this._scrollableContainer=this._scrollable&&(0,I.Z)(this._scrollable.container())},_renderLoadPanel:b.Z.renderLoadPanel,_renderContent:function(M,oe){return M.empty().append(oe),this._findContentElement()},_updateContent:function(M,oe){return this._waitAsyncTemplates(oe).done(()=>{var fe=this.getTableElement(),Te=this._findContentElement(),Be=oe&&oe.changeType,ze=[],ae=this.option("highlightChanges"),_e=this.addWidgetPrefix("row-inserted-animation");"update"===Be?((0,l.S6)(oe.rowIndices,(ye,ne)=>{var ce=this._getRowElements(M).eq(ye),le=oe.changeTypes&&oe.changeTypes[ye],pe=oe.items&&oe.items[ye];ze.push(()=>{var Se=this._getRowElements(),re=Se.eq(ne);switch(le){case"update":if(pe){var te=oe.columnIndices&&oe.columnIndices[ye];(0,s.$K)(pe.visible)&&pe.visible!==re.is(":visible")?re.toggle(pe.visible):te?this._updateCells(re,ce,te):re.replaceWith(ce)}break;case"insert":if(Se.length)re.length?ce.insertBefore(re):ce.insertAfter(Se.last());else if(fe){var ie=ce.is("tbody")?fe:fe.children("tbody");ce.prependTo(ie)}ae&&oe.isLiveUpdate&&ce.addClass(_e);break;case"remove":re.remove()}})}),(0,l.S6)(ze,function(){this()}),M.remove()):(this.setTableElement(M),Te.addClass(this.addWidgetPrefix("content")),this._renderContent(Te,M))})},_createEmptyRow:function(M,oe,fe){var Te,Be=this._createRow(),ze=oe?this.getFixedColumns():this.getColumns();Be.addClass(M).toggleClass(U,this.option("showColumnLines"));for(var ae=0;ae<ze.length;ae++)Te=this._createCell({column:ze[ae],rowType:"freeSpace",columnIndex:ae,columns:ze}),(0,s.kE)(fe)&&Te.css("height",fe),Be.append(Te);return this.setAria("role","presentation",Be),Be},_appendEmptyRow:function(M,oe,fe){var Te=this._getBodies(M),Be=!Te.length||oe.is("tbody"),ze=Be?M:Te;if("top"===fe){if(ze.first().prepend(oe),Be){var ae=ze.children("colgroup");ze.prepend(ae)}}else ze.last().append(oe)},_renderFreeSpaceRow:function(M,oe){var fe=this._createEmptyRow(z);fe=this._wrapRowIfNeed(M,fe,"refresh"===oe?.changeType),this._appendEmptyRow(M,fe)},_checkRowKeys:function(M){var oe=this,fe=oe._getRows(M),Te=oe._dataController.store()&&oe._dataController.store().key();Te&&fe.some(function(Be){if("data"===Be.rowType&&void 0===Be.key)return oe._dataController.fireError("E1046",Te),!0})},_needUpdateRowHeight:function(M){return M>0&&!this._rowHeight},_getRowsHeight:function(M){return(M=M||this._tableElement).children("tbody").children().not(".dx-virtual-row").not("."+z).toArray().reduce(function(fe,Te){return fe+(0,h.l)(Te).height},0)},_updateRowHeight:function(){var M=this.getTableElement(),oe=this._dataController.items().length;if(M&&this._needUpdateRowHeight(oe)){var fe=this._getRowsHeight(M);this._rowHeight=fe/oe}},_findContentElement:function(){var M=this.element(),oe=this.getScrollable();if(M)return oe&&(M=(0,I.Z)(oe.content())),M.children().first()},_getRowElements:function(M){var oe=this.callBase(M);return oe&&oe.not("."+z)},_getFreeSpaceRowElements:function(M){var oe=M||this.getTableElements();return oe&&oe.children("tbody").children("."+z)},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(M){var oe=this._dataController.items()[M.rowIndex]||{};this.executeAction("onRowClick",(0,d.l)({evaluate:function(fe){return(0,x.vb)(fe)(oe.data)}},M,oe))},_rowDblClick:function(M){var oe=this._dataController.items()[M.rowIndex]||{};this.executeAction("onRowDblClick",(0,d.l)({},M,oe))},_getColumnsCountBeforeGroups:function(M){for(var oe=0;oe<M.length;oe++)if("groupExpand"===M[oe].type)return oe;return 0},_getGroupCellOptions:function(M){var oe=this._getColumnsCountBeforeGroups(M.columns),fe=(M.row.groupIndex||0)+oe;return{columnIndex:fe,colspan:M.columns.length-fe-1}},_needWrapRow:function(){return this.callBase.apply(this,arguments)||!!this.option("dataRowTemplate")},_renderCells:function(M,oe){"group"===oe.row.rowType?this._renderGroupedCells(M,oe):oe.row.values&&this.callBase(M,oe)},_renderGroupedCells:function(M,oe){for(var Te,ae,fe=oe.row,Be=oe.columns,ze=fe.rowIndex,_e=this._getGroupCellOptions(oe),ye=0;ye<=_e.columnIndex;ye++)ye===_e.columnIndex&&Be[ye].allowCollapsing&&"infinite"!==oe.scrollingMode?(ae=!!fe.isExpanded,Te=Be[ye]):(ae=null,Te={command:"expand",cssClass:Be[ye].cssClass}),this._needRenderCell(ye,oe.columnIndices)&&this._renderCell(M,{value:ae,row:fe,rowIndex:ze,column:Te,columnIndex:ye,columnIndices:oe.columnIndices,change:oe.change});var ne=(0,h.q)(this.option("rtlEnabled")),ce=(0,d.l)({},Be[_e.columnIndex],{command:null,type:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:ne});_e.colspan>1&&(ce.colspan=_e.colspan),this._needRenderCell(_e.columnIndex+1,oe.columnIndices)&&this._renderCell(M,{value:fe.values[fe.groupIndex],row:fe,rowIndex:ze,column:ce,columnIndex:_e.columnIndex+1,columnIndices:oe.columnIndices,change:oe.change})},_renderRows:function(M,oe){var fe=this.option("scrolling.mode");this.callBase(M,(0,d.l)({scrollingMode:fe},oe)),this._checkRowKeys(oe.change),this._renderFreeSpaceRow(M,oe.change),this._hasHeight||this.updateFreeSpaceRowHeight(M)},_renderDataRowByTemplate(M,oe,fe){var Te=oe.row,Be=(0,d.l)({columns:oe.columns},Te),ze=this._createRow(Te,"tbody");ze.appendTo(M),this.renderTemplate(ze,fe,Be,!0,oe.change),this._rowPrepared(ze,Be,oe.row)},_renderRow:function(M,oe){var fe=oe.row,Te=this.option().rowTemplate,Be=this.option("dataRowTemplate");"data"===fe.rowType&&Be?this._renderDataRowByTemplate(M,oe,Be):"data"!==fe.rowType&&"group"!==fe.rowType||(0,s.$K)(fe.groupIndex)||!Te?this.callBase(M,oe):this.renderTemplate(M,Te,(0,d.l)({columns:oe.columns},fe),!0)},_renderTable:function(M){var oe=this,fe=oe.callBase(M);return(0,s.$K)(oe.getTableElement())?oe._renderScrollable():(oe.setTableElement(fe),oe._renderScrollable(!0),oe.resizeCompleted.add(function Te(){var Be=oe.getScrollable();Be&&oe.element().closest((0,C.Jj)().document).length&&(oe.resizeCompleted.remove(Te),Be._visibilityChanged(!0))})),fe},_createTable:function(){var M=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option().dataRowTemplate)&&M.appendTo(this.component.$element()),M},_renderCore:function(M){var oe=this.element();oe.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),oe.toggleClass("dx-empty",this._dataController.isEmpty()),this.setAria("role","presentation",oe);var fe=this._renderTable({change:M}),Te=this._updateContent(fe,M);return this.callBase(M),this._lastColumnWidths=null,Te},_getRows:function(M){return M&&M.items||this._dataController.items()},_getCellOptions:function(M){var oe=M.column,fe=M.row,Te=fe.data,Be=fe&&fe.summaryCells,ze=M.value,ae=b.Z.getDisplayValue(oe,ze,Te,fe.rowType),_e=this.callBase(M);if(_e.value=ze,_e.oldValue=M.oldValue,_e.displayValue=ae,_e.row=fe,_e.key=fe.key,_e.data=Te,_e.rowType=fe.rowType,_e.values=fe.values,_e.text=oe.command?"":b.Z.formatValue(ae,oe),_e.rowIndex=fe.rowIndex,_e.summaryItems=Be&&Be[M.columnIndex],_e.resized=oe.resizedCallbacks,(0,s.$K)(oe.groupIndex)&&!oe.command){var ye=this.option("grouping.texts"),ne=this.option("scrolling.mode");"virtual"!==ne&&"infinite"!==ne&&(_e.groupContinuesMessage=Te&&Te.isContinuationOnNextPage&&ye&&ye.groupContinuesMessage,_e.groupContinuedMessage=Te&&Te.isContinuation&&ye&&ye.groupContinuedMessage)}return _e},_setRowsOpacityCore:function(M,oe,fe,Te){var Be=this._columnsController,ze=Be.getColumns(),ae=ze&&ze[fe],_e=ae&&ae.isBand&&ae.index;(0,l.S6)(M,function(ye,ne){if(!(0,I.Z)(ne).hasClass(P))for(var ce=0;ce<oe.length&&(!((0,s.kE)(_e)&&Be.isParentBandColumn(oe[ce].index,_e)||oe[ce].index===fe)||(M.eq(ye).children().eq(ce).css({opacity:Te}),(0,s.kE)(_e)));ce++);})},_getDevicePixelRatio:function(){return(0,C.Jj)().devicePixelRatio},renderNoDataText:b.Z.renderNoDataText,getCellOptions:function(M,oe){var Te,Be,fe=this._dataController.items()[M];return fe&&(Be=(0,s.HD)(oe)?this._columnsController.columnOption(oe):this._columnsController.getVisibleColumns()[oe])&&(Te=this._getCellOptions({value:Be.calculateCellValue(fe.data),rowIndex:fe.rowIndex,row:fe,column:Be})),Te},getRow:function(M){if(M>=0){var oe=this._getRowElements();if(oe.length>M)return(0,I.Z)(oe[M])}},updateFreeSpaceRowHeight:function(M){var oe=this._dataController,fe=oe.items(!0).length,Te=this._findContentElement(),Be=this._getFreeSpaceRowElements(M);if(Be&&Te&&oe.totalCount()>=0){var ze=!1;if(fe>0)if(this._hasHeight)Be.hide(),(0,a.Su)(()=>{var ye=this.getScrollbarWidth(!0),ne=(0,c.Cr)(this.element())-ye,le=ne-(0,c.zp)(Te)>0,pe=this._getRowsHeight(Te.children().first()),Se=M||this.getTableElements(),ie=ne-pe-Math.ceil(parseFloat(Se.css("borderTopWidth")))-this._getHeightCorrection();le&&(0,a.g0)(()=>{Be.css("height",ie),ze=!0,Be.show()}),(0,a.g0)(()=>this._updateLastRowBorder(ze))});else{var ae=oe.pageSize()-fe,_e=this.option("scrolling.mode");ae>0&&oe.pageCount()>1&&"virtual"!==_e&&"infinite"!==_e&&((0,p.QQ)(Be,ae*this._rowHeight),ze=!0),!ze&&M?(0,p.QQ)(Be,0):Be.toggle(ze),this._updateLastRowBorder(ze)}else Be.css("height",0),Be.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var M=w.Z.webkit&&this._getDevicePixelRatio()>=2,oe=w.Z.chrome&&w.Z.version>=91,fe=w.Z.mozilla&&w.Z.version>=70&&!this.option("showRowLines");return M||fe||oe?1:0},_columnOptionChanged:function(M){var oe=M.optionNames;M.changeTypes.grouping||(oe.width||oe.visibleWidth)&&(this.callBase(M),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var M=this,oe=M.getController("data");M.callBase(),M._editorFactoryController=M.getController("editorFactory"),M._rowHeight=0,M._scrollTop=0,M._scrollLeft=-1,M._scrollRight=0,M._hasHeight=!1,oe.loadingChanged.add(function(fe,Te){M.setLoading(fe,Te)}),oe.dataSourceChanged.add(()=>{this._scrollLeft>=0&&!this._dataController.isLoading()&&this._handleScroll({component:this.getScrollable(),forceUpdateScrollPosition:!0,scrollOffset:{top:this._scrollTop,left:this._scrollLeft}})})},_handleDataChanged:function(M){switch(M.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,M);break;default:this._update(M)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return(0,c.dz)(this.element())-this.getScrollbarWidth()},getScrollbarWidth:function(M){var Be,oe=this._scrollableContainer&&this._scrollableContainer.get(0),fe=0;return oe&&(M?(fe=oe.clientHeight?oe.offsetHeight-oe.clientHeight:0,fe+=(Be=this.getScrollable())?Math.ceil(parseFloat((0,I.Z)(Be.content()).css("paddingBottom"))):0):fe=oe.clientWidth?oe.offsetWidth-oe.clientWidth:0),fe>0?fe:0},_fireColumnResizedCallbacks:function(){for(var M=this._lastColumnWidths||[],oe=[],fe=this.getColumns(),Te=0;Te<fe.length;Te++)oe[Te]=fe[Te].visibleWidth,fe[Te].resizedCallbacks&&!(0,s.$K)(fe[Te].groupIndex)&&M[Te]!==oe[Te]&&fe[Te].resizedCallbacks.fire(oe[Te]);this._lastColumnWidths=oe},_updateLastRowBorder:function(M){this.option("showBorders")&&this.option("showRowLines")&&!M?this.element().addClass(Y):this.element().removeClass(Y)},_updateScrollable:function(){var M=E.Z.getInstance(this.element());M&&(M.update(),(M.option("useNative")||null==M||!M.isRenovated())&&this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var M=this.getScrollable(),oe=M&&M.scrollOffset().left;if(this.option("rtlEnabled")){var Te=G(M);Te-oe!==this._scrollRight&&(this._scrollLeft=Te-this._scrollRight)}this._scrollLeft>=0&&oe!==this._scrollLeft&&M.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var M=this;M._fireColumnResizedCallbacks(),M._updateRowHeight(),(0,a.g0)(function(){M._renderScrollable(),M.renderNoDataText(),M.updateFreeSpaceRowHeight(),(0,a.Su)(function(){M._updateScrollable()})})},scrollTo:function(M){var oe=this.element(),fe=oe&&E.Z.getInstance(oe);fe&&fe.scrollTo(M)},height:function(M,oe){var fe=this,Te=this.element();if(0===arguments.length)return Te?(0,c.zp)(Te,!0):0;fe._hasHeight=void 0===oe?"auto"!==M:oe,(0,s.$K)(M)&&Te&&(0,p.QQ)(Te,M)},hasHeight:function(){return!!this._hasHeight},setLoading:function(M,oe){var fe=this._loadPanel,Te=this._dataController,Be=this.option("loadPanel")||{},ze=Te.isLoaded()?Be.animation:null,ae=this.element();if((0,C.Ym)()&&(!fe&&void 0!==oe&&Te.isLocalStore()&&"auto"===Be.enabled&&ae&&(this._renderLoadPanel(ae,ae.parent()),fe=this._loadPanel),fe)){var _e={message:oe||Be.text,animation:ze,visible:M};M&&(_e.position=b.Z.calculateLoadPanelPosition(ae)),clearTimeout(this._hideLoadingTimeoutID),fe.option("visible")&&!M?this._hideLoadingTimeoutID=setTimeout(function(){fe.option(_e)},200):fe.option(_e)}},setRowsOpacity:function(M,oe){var fe=this._getRowElements().not("."+P)||[];this._setRowsOpacityCore(fe,this.getColumns(),M,oe)},_getCellElementsCore:function(M){var oe=this.callBase.apply(this,arguments);if(oe){var fe=oe.filter("."+B).index();if(fe>=0&&oe.length>fe+1)return oe.slice(0,fe+1)}return oe},_getBoundaryVisibleItemIndex:function(M,oe){var fe=0,Te=0,Be=0,ze=this._scrollTop,ae=this._findContentElement(),_e=ae&&ae.offset().top,ne=this.getController("data").items(),ce=this.getTableElement();if(ne.length&&ce){var le=this._getRowElements(ce).filter(":visible");for(M||(ze+=(0,c.zp)(this._hasHeight?this.element():(0,C.Jj)())),fe=0;fe<ne.length;fe++){Te=Be;var Se=(0,I.Z)(le).eq(fe);if(Se.length&&(Be=Se.offset(),(Be=(M?Be.top:Be.top+(0,c.zp)(Se))-_e)>ze)){fe&&(oe||2*ze<Math.round(Be+Te))&&fe--;break}}fe&&fe===ne.length&&fe--}return fe},getTopVisibleItemIndex:function(M){return this._getBoundaryVisibleItemIndex(!0,M)},getBottomVisibleItemIndex:function(M){return this._getBoundaryVisibleItemIndex(!1,M)},getTopVisibleRowData:function(){var M=this.getTopVisibleItemIndex(),oe=this._dataController.items();if(oe[M])return oe[M].data},_scrollToElement:function(M,oe){var fe=this.getScrollable();fe&&fe.scrollToElement(M,oe)},optionChanged:function(M){switch(this.callBase(M),M.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"dataRowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),M.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,M.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==M.fullName),M.handled=!0;break;case"noDataText":this.renderNoDataText(),M.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){},_restoreErrorRow:function(){}},X))}}},5542:(Rn,he,u)=>{"use strict";u.d(he,{C:()=>b});var o=u(9904),c=u(9897),I=u(1828),C=u(6738),g=u(2879),a=u(9009),p=u(7316),s="search-panel",l="search-text";function v(y){return(0,I.$K)(y.allowSearch)?y.allowSearch:y.allowFiltering}function x(y,E){var S=y.lookup;return y.parseValue?S?y.parseValue.call(S,E):y.parseValue(E):E}var y,b={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:a.Z.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var y=this.callBase(),E=function(S,O){var w,T,P,k=S._columnsController.getColumns(),R=S.option("searchPanel.searchVisibleColumnsOnly"),B=[];if(!O)return null;function W(V){for(var U=(0,C.vb)(P.valueExpr),K=0;K<V.length;K++){var Y=U(V[K]);B.push(T.createFilterExpression(Y,null,"search"))}}for(w=0;w<k.length;w++)if(T=k[w],(!R||T.visible)&&v(T)&&T.calculateFilterExpression){P=T.lookup;var z=x(T,O);P&&P.items?(0,p.Z)(P.items).filter(T.createFilterExpression.call({dataField:P.displayExpr,dataType:P.dataType,calculateFilterExpression:T.calculateFilterExpression},z,null,"search")).enumerate().done(W):void 0!==z&&B.push(T.createFilterExpression(z,null,"search"))}return 0===B.length?["!"]:g.Z.combineFilters(B,"or")}(this,this.option("searchPanel.text"));return g.Z.combineFilters([y,E])},searchByText:function(y){this.option("searchPanel.text",y)},optionChanged:function(y){switch(y.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),y.handled=!0;break;default:this.callBase(y)}}}},views:{headerPanel:(y=function(E){return E.option("searchPanel")},{_getToolbarItems:function(){var E=this.callBase();return this._prepareSearchItem(E)},_prepareSearchItem:function(E){var S=this,O=S.getController("data"),w=y(S);return w&&w.visible&&E.push({template:function(k,R,P){var B=(0,o.Z)("<div>").addClass(S.addWidgetPrefix(s)).appendTo(P);S.getController("editorFactory").createEditor(B,{width:w.width,placeholder:w.placeholder,parentType:"searchPanel",value:S.option("searchPanel.text"),updateValueTimeout:700,setValue:function(W){O.searchByText(W)},editorOptions:{inputAttr:{"aria-label":a.Z.format("".concat(S.component.NAME,"-ariaSearchInGrid"))}}}),S.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40}),E},getSearchTextEditor:function(){var E=this,S=E.element(),O=S.find("."+E.addWidgetPrefix(s)).filter(function(){return(0,o.Z)(this).closest("."+E.addWidgetPrefix("header-panel")).is(S)});return O.length?O.dxTextBox("instance"):null},isVisible:function(){var E=y(this);return this.callBase()||E&&E.visible},optionChanged:function(E){if("searchPanel"===E.name){if("searchPanel.text"===E.fullName){var S=this.getSearchTextEditor();S&&S.option("value",E.value)}else this._invalidate();E.handled=!0}else this.callBase(E)}}),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(y,E){var S=x(y,E),O=g.Z.getFormatOptionsByColumn(y,"search");return g.Z.formatValue(S,O)},_getStringNormalizer:function(){var y=this.option("searchPanel.highlightCaseSensitive");return function(E){return y?E:E.toLowerCase()}},_findHighlightingTextNodes:function(y,E,S){var O,T,w=E.parent(),k=this._getStringNormalizer(),R=k(S),P=[];if(w.length){if(y)if(y.groupIndex>=0&&!y.showWhenGrouped)T=E;else{var B=this._columnsController.getVisibleIndex(y.index);T=w.children("td").eq(B).find("*")}}else w=(0,o.Z)("<div>").append(E);return(T=null!==(O=T)&&void 0!==O&&O.length?T:w.find("*")).each(function(W,z){for(var V=(0,o.Z)(z).contents(),U=0;U<V.length;U++){var K=V.get(U);3===K.nodeType&&k(K.textContent||K.nodeValue).indexOf(R)>-1&&P.push(K)}}),P},_highlightSearchTextCore:function(y,E){var S=(0,o.Z)("<span>").addClass(this.addWidgetPrefix(l)),O=y.text(),w=y[0],T=this._getStringNormalizer(),k=T(O).indexOf(T(E));if(k>=0)return w.textContent?w.textContent=O.substr(0,k):w.nodeValue=O.substr(0,k),y.after(S.text(O.substr(k,E.length))),y=(0,o.Z)(c.Z.createTextNode(O.substr(k+E.length))).insertAfter(S),this._highlightSearchTextCore(y,E)},_highlightSearchText:function(y,E,S){var O=this,w=this._getStringNormalizer(),T=O.option("searchPanel.text");E&&S&&(T=T&&O._getFormattedSearchText(S,T)),T&&O.option("searchPanel.highlightSearchText")&&O._findHighlightingTextNodes(S,y,T).forEach(R=>{E?w((0,o.Z)(R).text())===w(T)&&(0,o.Z)(R).replaceWith((0,o.Z)("<span>").addClass(O.addWidgetPrefix(l)).text((0,o.Z)(R).text())):O._highlightSearchTextCore((0,o.Z)(R),T)})},_renderCore:function(){var y=this.callBase.apply(this,arguments);return(this.option().rowTemplate||this.option("dataRowTemplate"))&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this.getTableElement())}.bind(this))):this._highlightSearchText(this.getTableElement())),y},_updateCell:function(y,E){var S=E.column,w="string"!==(S.lookup&&S.lookup.dataType||S.dataType);v(S)&&!E.isOnForm&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(T){this._highlightSearchText.apply(this,T)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([y,w,S])):this._highlightSearchText(y,w,S)),this.callBase(y,E)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},9143:(Rn,he,u)=>{"use strict";u.d(he,{e:()=>U});var K,Y,o=u(9904),c=u(913),I=u(9617),C=u(2879),g=u(1828),a=u(2718),p=u(5873),s=u(4505),l=u(227),d=u(9009),h=u(8225),v=u(5180),x=u(7398),b=u(4270),y=u(8159),E="dx-editor-cell",O="dx-selection",w="dx-select-checkbox",k="dx-command-select",P="dx-data-row",B="selection.showCheckBoxesMode",W="selection.mode",z=function(K,Y){var J=K.getController("selection"),j=K.getView("rowsView"),ee=(0,o.Z)(Y.target).closest("."+P),G=j.getRowIndex(ee);G<0||("onLongTap"===K.option(B)?J.isSelectionWithCheckboxes()?J.stopSelectionWithCheckboxes():J.startSelectionWithCheckboxes():("onClick"===K.option(B)&&J.startSelectionWithCheckboxes(),"always"!==K.option(B)&&J.changeItemSelection(G,{control:!0})))},U={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:I.Z.Controller.inherit((K=(J,j)=>{var ee=j.component,G=ee.getView("rowsView");ee.option("renderAsync")&&!ee.option("selection.deferred")&&(j.value=ee.isRowSelected(j.row.key)),G.renderSelectCheckBoxContainer((0,o.Z)(J),j)},Y=(J,j)=>{var ee=j.column,G=(0,o.Z)(J),q=j.component.getView("columnHeadersView");G.addClass(E),q._renderSelectAllCheckBox(G,ee),q._attachSelectAllCheckBoxClickEvent(G)},{init:function(){var{deferred:J,selectAllMode:j,mode:ee}=this.option("selection")||{};"infinite"===this.option("scrolling.mode")&&!J&&"multiple"===ee&&"allPages"===j&&y.Z.log("W1018"),this._dataController=this.getController("data"),this._selectionMode=ee,this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]}),this._dataController&&this._dataController.pushed.add(this._handleDataPushed.bind(this))},_handleDataPushed:function(J){var j=J.filter(ee=>"remove"===ee.type).map(ee=>ee.key);j.length&&this.deselectRows(j)},_getSelectionConfig:function(){var J=this._dataController,j=this.getController("columns"),ee=this.option("selection")||{},G=ee.deferred,q=this.option("scrolling.mode"),Z="virtual"===q||"infinite"===q,X=this.option("selection.allowSelectAll"),M=this.option("scrolling.legacyMode");return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:G,maxFilterLengthInRequest:ee.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),ignoreDisabledItems:!0,allowLoadByRange:function(){var oe=j.getGroupColumns().length>0;return Z&&!M&&!oe&&X&&!G},key:function(){return J?.key()},keyOf:function(oe){return J?.keyOf(oe)},dataFields:function(){var oe;return null===(oe=J.dataSource())||void 0===oe?void 0:oe.select()},load:function(oe){var fe;return(null===(fe=J.dataSource())||void 0===fe?void 0:fe.load(oe))||(new b.BH).resolve([])},plainItems:function(){return J.items(!0)},isItemSelected:function(oe){return oe.selected},isSelectableItem:function(oe){return"data"===oe?.rowType&&!oe.isNewRow},getItemData:function(oe){return(0,g.$K)(oe?.rowType)?oe?.oldData||oe?.data:oe},filter:function(){return J.getCombinedFilter(G)},totalCount:()=>J.totalCount(),getLoadOptions:function(oe,fe,Te){var Be,ze,{sort:ae,filter:_e}=null!==(Be=null===(ze=J.dataSource())||void 0===ze?void 0:ze.lastLoadOptions())&&void 0!==Be?Be:{},ye=Math.min(oe,fe),ne=Math.max(oe,fe);return(0,g.$K)(Te)&&(ye=Math.min(Te,ye),ne=Math.max(Te,ne)),{skip:ye,take:ne-ye+1,filter:_e,sort:ae}},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var J=this.getController("columns"),j=this.isSelectColumnVisible();J.addCommandColumn({type:"selection",command:"select",visible:j,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:k,width:"auto",cellTemplate:K,headerCellTemplate:Y}),J.columnOption("command:select","visible",j)},_createSelection:function(){var J=this._getSelectionConfig();return new x.Z(J)},_fireSelectionChanged:function(J){var j=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(j),J&&this.executeAction("onSelectionChanged",J)},_updateCheckboxesState:function(J){var j=J.isDeferredMode,ee=J.selectionFilter,G=J.selectedItemKeys,q=J.removedItemKeys;"onClick"===this.option(B)&&((j?ee&&function(Z,X){var M=0,oe=Z._dataController.store(),fe=oe&&oe.key(),Te=Array.isArray(fe);if(!X.length)return!1;if(Te&&Array.isArray(X[0])&&"and"===X[1]){for(var Be=0;Be<X.length;Be++)if(Array.isArray(X[Be])){if(X[Be][0]!==fe[M]||"="!==X[Be][1])return!0;M++}return!1}return fe!==X[0]}(this,ee):G.length>1)?this.startSelectionWithCheckboxes():(j?ee&&!ee.length:0===G.length&&q.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(J){var j,ee=this.option("selection.deferred"),G=this._selection.selectionFilter(),q=this._dataController,Z=q.items(!0),X=q.items();if(Z){var M=this.isSelectionWithCheckboxes(),oe=this.getChangedItemIndexes(Z),fe=this.getChangedItemIndexes(X);this._updateCheckboxesState({selectedItemKeys:J.selectedItemKeys,removedItemKeys:J.removedItemKeys,selectionFilter:G,isDeferredMode:ee}),(oe.length||M!==this.isSelectionWithCheckboxes())&&q.updateItems({changeType:"updateSelection",itemIndexes:fe}),ee?(this.option("selectionFilter",G),j={}):(J.addedItemKeys.length||J.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",J.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,j={selectedRowsData:J.selectedItems.slice(0),selectedRowKeys:J.selectedItemKeys.slice(0),currentSelectedRowKeys:J.addedItemKeys.slice(0),currentDeselectedRowKeys:J.removedItemKeys.slice(0)}),this._fireSelectionChanged(j)}},getChangedItemIndexes:function(J){for(var j=[],ee=this.option("selection.deferred"),G=0,q=J.length;G<q;G++){var Z=J[G],X=this.isRowSelected(ee?Z.data:Z.key);this._selection.isDataItem(Z)&&Z.isSelected!==X&&j.push(G)}return j},callbackNames:function(){return["selectionChanged"]},optionChanged:function(J){switch(this.callBase(J),J.name){case"selection":var j=this._selectionMode;if(this.init(),"selection.showCheckBoxesMode"!==J.fullName){var ee=this._selectionMode,G=this.option("selectedRowKeys");j!==ee&&("single"===ee?G.length>1&&(G=[G[0]]):"multiple"!==ee&&(G=[])),this.selectRows(G).always(()=>{this._fireSelectionChanged()})}this.getController("columns").updateColumns(),J.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(J.value),J.handled=!0;break;case"selectedRowKeys":var q=J.value||[];Array.isArray(q)&&!this._selectedItemsInternalChange&&(this.component.getDataSource()||!q.length)&&this.selectRows(q),J.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(J){return this._selection.isItemSelected(J)},isSelectColumnVisible:function(){return"multiple"===this.option(W)&&("always"===this.option(B)||"onClick"===this.option(B)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(B)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var J=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&J.length?this.selectedItemKeys(J):(new b.BH).resolve().promise()},selectedItemKeys:function(J,j,ee,G){return this._selection.selectedItemKeys(J,j,ee,G)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(J,j){return this.selectedItemKeys(J,j)},deselectRows:function(J){return this.selectedItemKeys(J,!0,!0)},selectRowsByIndexes:function(J){var j=this._dataController.items(),ee=[];return Array.isArray(J)||(J=Array.prototype.slice.call(arguments,0)),(0,a.S6)(J,function(){var G=j[this];G&&"data"===G.rowType&&ee.push(G.key)}),this.selectRows(ee)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(J,j,ee){j=j||{},this.isSelectionWithCheckboxes()&&(j.control=!0);var G=J+this._dataController.getRowIndexOffset()-this._dataController.getRowIndexOffset(!0);return this._selection.changeItemSelection(G,j,ee)},focusedItemIndex:function(J){if(!(0,g.$K)(J))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=J},isSelectionWithCheckboxes:function(){return"multiple"===this.option(W)&&("always"===this.option(B)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){return"multiple"===this.option(W)&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}))},extenders:{controllers:{data:{init:function(){var K=this.getController("selection"),Y=this.option("selection.deferred");this.callBase.apply(this,arguments),Y&&K._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var K=this;return K.callBase().done(function(){K.getController("selection").refresh()})},_processDataItem:function(K,Y){var J=this,j=J.getController("selection"),ee=j.isSelectColumnVisible(),G=Y.isDeferredSelection=void 0===Y.isDeferredSelection?this.option("selection.deferred"):Y.isDeferredSelection,q=this.callBase.apply(this,arguments);if(q.isSelected=j.isRowSelected(G?q.data:q.key),ee&&q.values)for(var Z=0;Z<Y.visibleColumns.length;Z++)if("select"===Y.visibleColumns[Z].command){q.values[Z]=q.isSelected;break}return q},refresh:function(K){var Y=this,J=new b.BH;return this.callBase.apply(this,arguments).done(function(){!K||K.selection?Y.getController("selection").refresh().done(J.resolve).fail(J.reject):J.resolve()}).fail(J.reject),J.promise()},_handleDataChanged:function(K){this.callBase.apply(this,arguments),(!K||"refresh"===K.changeType)&&!this._repaintChangesOnly&&this.getController("selection").focusedItemIndex(-1)},_applyChange:function(K){if(!K||"updateSelection"!==K.changeType)return this.callBase.apply(this,arguments);K.items.forEach((Y,J)=>{var j=this._items[J];j&&(j.isSelected=Y.isSelected,j.values=Y.values)})},_endUpdateCore:function(){var K=this._changes,Y=K.length>1&&K.every(j=>"updateSelection"===j.changeType);if(Y){var J=K.map(j=>j.itemIndexes||[]).reduce((j,ee)=>j.concat(ee));this._changes=[{changeType:"updateSelection",itemIndexes:J}]}this.callBase.apply(this,arguments)}},contextMenu:{_contextMenuPrepared:function(K){var Y=K.event;Y.originalEvent&&"dxhold"!==Y.originalEvent.type||K.items&&K.items.length>0||z(this,Y)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var K=this.element(),Y=K&&K.find("."+w);if(K&&Y.length&&"multiple"===this.option("selection.mode")){var J=this.getController("selection").isSelectAll(),j=!1!==J,ee=this.option("selection.allowSelectAll")?!this.getController("data").isEmpty():j;Y.dxCheckBox("instance").option({visible:ee,value:J})}},_handleDataChanged:function(K){this.callBase(K),(!K||"refresh"===K.changeType||K.repaintChangesOnly&&"update"===K.changeType)&&this._updateSelectAllValue()},_renderSelectAllCheckBox:function(K,Y){var J=this,j=J.getController("selection"),ee=J.getController("data").isEmpty(),G=(0,o.Z)("<div>").appendTo(K).addClass(w);return J.setAria("label",d.Z.format("dxDataGrid-ariaSelectAll"),G),J.getController("editorFactory").createEditor(G,(0,p.l)({},Y,{parentType:"headerRow",dataType:"boolean",value:j.isSelectAll(),editorOptions:{visible:!ee&&(J.option("selection.allowSelectAll")||!1!==j.isSelectAll())},tabIndex:J.option("useLegacyKeyboardNavigation")?-1:J.option("tabIndex")||0,setValue:function(q,Z){var X=J.option("selection.allowSelectAll");Z.component.option("visible",X||!1!==Z.component.option("value")),Z.event&&j.isSelectAll()!==q&&(Z.value&&!X?Z.component.option("value",!1):Z.value?j.selectAll():j.deselectAll(),Z.event.preventDefault())}})),G},_attachSelectAllCheckBoxClickEvent:function(K){c.Z.on(K,l.u,this.createAction(function(Y){var J=Y.event;(0,o.Z)(J.target).closest("."+w).length||c.Z.trigger((0,o.Z)(J.currentTarget).children("."+w),l.u),J.preventDefault()}))}},rowsView:{renderSelectCheckBoxContainer:function(K,Y){"data"!==Y.rowType||Y.row.isNewRow?C.Z.setEmptyText(K):(K.addClass(E),this._attachCheckBoxClickEvent(K),this._renderSelectCheckBox(K,Y))},_renderSelectCheckBox:function(K,Y){var J=(0,o.Z)("<div>").addClass(w).appendTo(K);return this.setAria("label",d.Z.format("dxDataGrid-ariaSelectRow"),J),this.getController("editorFactory").createEditor(J,(0,p.l)({},Y.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:Y.value,setValue:function(j,ee){var G;"keydown"===(null==ee||null===(G=ee.event)||void 0===G?void 0:G.type)&&c.Z.trigger(ee.element,l.u,ee)},row:Y.row})),J},_attachCheckBoxClickEvent:function(K){c.Z.on(K,l.u,this.createAction(function(Y){var J=this.getController("selection"),j=Y.event,ee=this.getRowIndex((0,o.Z)(j.currentTarget).closest(".dx-row"));ee>=0&&(J.startSelectionWithCheckboxes(),J.changeItemSelection(ee,{shift:j.shiftKey}),(0,o.Z)(j.target).closest("."+w).length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[ee]}))}))},_update:function(K){var Y=this,J=Y.getTableElements();"updateSelection"===K.changeType?J.length>0&&((0,a.S6)(J,function(j,ee){(0,a.S6)(K.itemIndexes||[],function(G,q){var Z;if(K.items[q]&&(Z=Y._getRowElements((0,o.Z)(ee)).eq(q)).length){var X=K.items[q].isSelected;Z.toggleClass(O,void 0!==X&&X).find("."+w).dxCheckBox("option","value",X),Y.setAria("selected",X,Z)}})}),Y._updateCheckboxesClass()):Y.callBase(K)},_createTable:function(){var K=this,Y=K.option("selection.mode"),J=K.callBase.apply(K,arguments);return"none"!==Y&&(("onLongTap"===K.option(B)||!s.touch)&&c.Z.on(J,(0,h.V4)(v.Z.name,"dxDataGridRowsView"),"."+P,K.createAction(function(j){z(K.component,j.event),j.event.stopPropagation()})),c.Z.on(J,"mousedown selectstart",K.createAction(function(j){var ee=j.event;ee.shiftKey&&ee.preventDefault()}))),J},_createRow:function(K){var Y=this.callBase.apply(this,arguments);if(K){var J=K.isSelected;J&&Y.addClass(O);var j=this.option(W);"none"!==j&&this.setAria("selected",J,Y)}return Y},_rowClick:function(K){var Y=K.event,J=(0,o.Z)(Y.target).closest(".dx-selection-disabled").length;this.isClickableElement((0,o.Z)(Y.target))||(!J&&("multiple"!==this.option(W)||"always"!==this.option(B))&&this.getController("selection").changeItemSelection(K.rowIndex,{control:(0,h.j1)(Y),shift:Y.shiftKey})&&(Y.preventDefault(),K.handled=!0),this.callBase(K))},isClickableElement:function(K){return!!K.closest("."+k).length},_renderCore:function(K){var Y=this.callBase(K);return this._updateCheckboxesClass(),Y},_updateCheckboxesClass:function(){var K=this.getTableElements(),Y=this.getController("selection"),J=Y.isSelectColumnVisible()&&!Y.isSelectionWithCheckboxes();(0,a.S6)(K,function(j,ee){(0,o.Z)(ee).toggleClass("dx-select-checkboxes-hidden",J)})}}}}}},3881:(Rn,he,u)=>{"use strict";u.d(he,{G:()=>v});var o=u(9904),c=u(913),I=u(227),C=u(1828),g=u(5873),a=u(9813),p=u(9009),s=u(8225),v={defaultOptions:()=>({sorting:{mode:"single",ascendingText:p.Z.format("dxDataGrid-sortingAscendingText"),descendingText:p.Z.format("dxDataGrid-sortingDescendingText"),clearText:p.Z.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}),extenders:{views:{columnHeadersView:(0,g.l)({},a.Z,{_createRow(x){var b=this.callBase(x);return"header"===x.rowType&&c.Z.on(b,(0,s.V4)(I.u,"dxDataGridColumnHeadersView"),"td",this.createAction(y=>{this._processHeaderAction(y.event,b)})),b},_processHeaderAction:function(x,b){if((0,o.Z)(x.currentTarget).parent().get(0)===b.get(0)){var y=this,E=null,S=(0,o.Z)(x.currentTarget),O=S.parent().index(),w=-1;[].slice.call(y.getCellElements(O)).some((W,z)=>{if(W===S.get(0))return w=z,!0});var k=y._columnsController.getVisibleColumns(O)[w],R=y.getController("editing"),P=y.option("editing.mode");R&&R.isEditing()&&("batch"===P||"cell"===P)||!y._isSortableElement((0,o.Z)(x.target))||k&&!(0,C.$K)(k.groupIndex)&&!k.command&&(x.shiftKey?E="shift":(0,s.j1)(x)&&(E="ctrl"),setTimeout(()=>{y._columnsController.changeSortOrder(k.index,E)}))}},_renderCellContent(x,b){var y=b.column;!y.command&&"header"===b.rowType&&this._applyColumnState({name:"sort",rootElement:x,column:y,showColumnLines:this.option("showColumnLines")}),this.callBase.apply(this,arguments)},_columnOptionChanged(x){var b=x.changeTypes;1===b.length&&b.sorting?this._updateIndicators("sort"):this.callBase(x)},optionChanged(x){"sorting"===x.name?(this._invalidate(),x.handled=!0):this.callBase(x)}}),headerPanel:(0,g.l)({},a.Z,{_createGroupPanelItem(x,b){var y=this,E=y.callBase(...arguments);return c.Z.on(E,(0,s.V4)(I.u,"dxDataGridHeaderPanel"),y.createAction(()=>{y._processGroupItemAction(b.index)})),y._applyColumnState({name:"sort",rootElement:E,column:{alignment:y.option("rtlEnabled")?"right":"left",allowSorting:b.allowSorting,sortOrder:"desc"===b.sortOrder?"desc":"asc"},showColumnLines:!0}),E},_processGroupItemAction(x){setTimeout(()=>this.getController("columns").changeSortOrder(x))},optionChanged(x){"sorting"===x.name?(this._invalidate(),x.handled=!0):this.callBase(x)}})}}}},9813:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>d});var o=u(1828),c=u(9904),I="dx-sort",C="dx-sort-none",s="dx-sort-index-icon";const d={_applyColumnState:function(h){var v,x,b=this.option("sorting.mode"),y=h.rootElement,E=h.column,S=this._getIndicatorContainer(y);if("sort"===h.name){y.find("."+I).remove(),!S.children().length&&S.remove();var O="none"!==b&&E.allowSorting;return(0,o.$K)(E.groupIndex)||!O&&!(0,o.$K)(E.sortOrder)||(v="asc"===E.sortOrder?"ascending":"descending",x=this.callBase(h).toggleClass("dx-sort-up","asc"===E.sortOrder).toggleClass("dx-sort-down","desc"===E.sortOrder),this.getController&&!!this.getController("columns").columnOption("sortIndex:1")&&this.option("sorting.showSortIndexes")&&E.sortIndex>=0&&((0,c.Z)("<span>").addClass(s).text(E.sortIndex+1).appendTo(x),x.addClass("dx-sort-index")),O&&h.rootElement.addClass(this.addWidgetPrefix("action"))),(0,o.$K)(E.sortOrder)?this.setAria("sort",v,y):this.setAria("sort","none",y),x}return this.callBase(h)},_getIndicatorClassName:function(h){return"sort"===h?I:"sortIndex"===h?s:this.callBase(h)},_renderIndicator:function(h){var v=h.column,x=h.container,b=h.indicator;if("sort"===h.name){var y=this.option("rtlEnabled");if((0,o.$K)(v.sortOrder)||b&&b.addClass(C),x.children().length&&(!y&&"left"===h.columnAlignment||y&&"right"===h.columnAlignment))return void x.prepend(b)}this.callBase(h)},_updateIndicator:function(h,v,x){if("sort"!==x||!(0,o.$K)(v.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(h,v){var x=this.callBase(h);return v?x:x&&x.not("."+C)}}},5733:(Rn,he,u)=>{"use strict";u.d(he,{t:()=>d});var o=u(7674),c=u(1828),I=u(5873),C=u(9006),g=u(4270),p=h=>{var v=h.getController("columns"),x=h.getController("selection"),b=h.getController("export"),y=h.getController("data");v&&v.columnsChanged.add(function(){h.updateState({columns:v.getUserState()})}),x&&x.selectionChanged.add(function(E){h.updateState({selectedRowKeys:E.selectedRowKeys,selectionFilter:E.selectionFilter})}),y&&(h._initialPageSize=h.option("paging.pageSize"),h._initialFilterValue=h.option("filterValue"),y.changed.add(function(){var E=(h=>{var v=h.getView("pagerView"),x=h.getController("data"),b={allowedPageSizes:v?v.getPageSizes():void 0,filterPanel:{filterEnabled:h.option("filterPanel.filterEnabled")},filterValue:h.option("filterValue"),focusedRowKey:h.option("focusedRowEnabled")?h.option("focusedRowKey"):void 0};return(0,I.l)(b,x.getUserState())})(h);h.updateState(E)})),b&&b.selectionOnlyChanged.add(function(){h.updateState({exportSelectionOnly:b.selectionOnly()})})},d={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:C.G},extenders:{views:{rowsView:{init:function(){var h=this,v=h.getController("data");h.callBase(),v.stateLoaded.add(function(){if(v.isLoaded()&&!v.getDataSource()){h.setLoading(!1),h.renderNoDataText();var x=h.component.getView("columnHeadersView");x&&x.render(),h.component._fireContentReadyAction()}})}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),p(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(h){var v=this.callBase.apply(this,arguments);return void 0!==h&&this.applyState((0,I.l)(!0,{},h)),v},updateState:function(h){if(this.isEnabled()){var v=this.state(),x=(0,I.l)({},v,h),b=(0,o.k3)(v),y=(0,o.k3)(x);(0,o.bY)(b,y)||(h=(0,I.l)(!0,{},h),(0,I.l)(this._state,h),this.save())}else(0,I.l)(this._state,h)},applyState:function(h){var v,x=h.allowedPageSizes,b=h.searchText,y=h.selectedRowKeys,E=h.selectionFilter,S=this.getController("export"),O=this.getController("columns"),w=this.getController("data"),T=this.option("scrolling.mode"),k="virtual"===T||"infinite"===T,R=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector"),P=null===(v=this.getView("rowsView"))||void 0===v?void 0:v.hasHeight();this.component.beginUpdate(),O&&O.setUserState(h.columns),S&&S.selectionOnly(h.exportSelectionOnly),this.option("selection.deferred")||this.option("selectedRowKeys",y||[]),this.option("selectionFilter",E),x&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=x),this.option("focusedRowEnabled")&&(this.option("focusedRowIndex",-1),this.option("focusedRowKey",h.focusedRowKey||null)),this.component.endUpdate(),this.option("searchPanel.text",b||""),this.option("filterValue",((h,v)=>{var x=h.getController("filterSync"),b=h.getController("columns");return x?v.columns||void 0!==v.filterValue?v.filterValue||x.getFilterValueFromColumns(v.columns):h._initialFilterValue||x.getFilterValueFromColumns(b.getColumns()):null})(this,h)),this.option("filterPanel.filterEnabled",!h.filterPanel||h.filterPanel.filterEnabled),this.option("paging.pageIndex",(!k||P)&&h.pageIndex||0),this.option("paging.pageSize",k&&!R||!(0,c.$K)(h.pageSize)?this._initialPageSize:h.pageSize),w&&w.reset()}},columns:{_shouldReturnVisibleColumns:function(){var h=this.callBase.apply(this,arguments),v=this.getController("stateStoring");return h&&(!v.isEnabled()||v.isLoaded())}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var h=this.callBase,v=this.getController("stateStoring");if(v.isEnabled()&&!v.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var x=new g.BH;return this._restoreStateTimeoutID=setTimeout(()=>{v.load().always(()=>{this._restoreStateTimeoutID=null}).done(()=>{h.call(this),this.stateLoaded.fire(),x.resolve()}).fail(b=>{this.stateLoaded.fire(),this._handleLoadError(b||"Unknown error"),x.reject()})}),x.promise()}this.isStateLoading()||h.call(this)},isLoading:function(){var h=this.getController("stateStoring");return this.callBase()||h.isLoading()},isStateLoading:function(){return(0,c.$K)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(h){var v=this.getController("stateStoring"),x=this.option("selection.deferred");v.isLoading()&&x||this.callBase.apply(this,arguments)}}}}}},9006:(Rn,he,u)=>{"use strict";u.d(he,{G:()=>v});var x,b,o=u(913),c=u(4514),I=u(3390),C=u(8159),g=u(6718),a=u(5873),p=u(2718),s=u(1828),l=u(4270),d=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,h=function x(b){b&&(0,p.S6)(b,function(y,E){if((0,s.PO)(E)||Array.isArray(E))x(E);else if("string"==typeof E){var S=d.exec(E);S&&(b[y]=new Date(Date.UTC(+S[1],+S[2]-1,+S[3],+S[4],+S[5],+S[6])))}})},v=I.Z.ViewController.inherit((x=function(y){var E="sessionStorage"===y.type?(0,g.y)():(0,c.Jj)().localStorage;if(!E)throw new Error("E1007");return E},b=function(y){return(0,s.$K)(y.storageKey)?y.storageKey:"storage"},{_loadState:function(){var y=this.option("stateStoring");if("custom"===y.type)return y.customLoad&&y.customLoad();try{return JSON.parse(x(y).getItem(b(y)))}catch(E){C.Z.log(E.message)}},_saveState:function(y){var E=this.option("stateStoring");if("custom"!==E.type)try{x(E).setItem(b(E),JSON.stringify(y))}catch(S){C.Z.log(S.message)}else E.customSave&&E.customSave(y)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var y=this;return y._state={},y._isLoaded=!1,y._isLoading=!1,y._windowUnloadHandler=function(){void 0!==y._savingTimeoutID&&y._saveState(y.state())},o.Z.on((0,c.Jj)(),"unload",y._windowUnloadHandler),y},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){this._isLoading=!0;var y=(0,l.p4)(this._loadState());return y.always(()=>{this._isLoaded=!0,this._isLoading=!1}).done(E=>{null!==E&&!(0,s.Qr)(E)&&this.state(E)}),y},state:function(y){var E=this;if(!arguments.length)return(0,a.l)(!0,{},E._state);E._state=(0,a.l)({},y),h(E._state)},save:function(){var y=this;clearTimeout(y._savingTimeoutID),y._savingTimeoutID=setTimeout(function(){y._saveState(y.state()),y._savingTimeoutID=void 0},y.option("stateStoring.savingTimeout"))},optionChanged:function(y){"stateStoring"===y.name?(this.isEnabled()&&!this.isLoading()&&this.load(),y.handled=!0):this.callBase(y)},dispose:function(){clearTimeout(this._savingTimeoutID),o.Z.off((0,c.Jj)(),"unload",this._windowUnloadHandler)}}))},2879:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ze});var o=u(4817),c=u(1805),I=u(9904),C=u(1828),g=u(4270),a=u(2135),p=u(9589),s=u(2718),l=u(5873),d=u(5450),h=u(6738),v=u(7674),x=u(4265),b=u(2701),y=u(5062),E=u(4514),S=u(913),O=u(7122),w=u(820),T=u(5981),k=u(9963),U="virtual",Y="scrolling.mode",j={year:function(ae){return ae&&ae.getFullYear()},month:function(ae){return ae&&ae.getMonth()+1},day:function(ae){return ae&&ae.getDate()},quarter:function(ae){return ae&&Math.floor(ae.getMonth()/3)+1},hour:function(ae){return ae&&ae.getHours()},minute:function(ae){return ae&&ae.getMinutes()},second:function(ae){return ae&&ae.getSeconds()}},ee=function(){var ae=arguments[1],_e=this.calculateCellValue(ae);if(!(0,C.$K)(_e))return null;if(q(this.dataType)){var ye=arguments[0];return j[ye](_e)}if("number"===this.dataType){var ne=arguments[0];return Math.floor(Number(_e)/ne)*ne}},G=function(ae,_e){return(0,C.mf)(ae)&&(0,C.mf)(_e)&&ae.originalCallback&&_e.originalCallback?ae.originalCallback===_e.originalCallback&&ae.columnIndex===_e.columnIndex:ae===_e};function q(ae){return"date"===ae||"datetime"===ae}var Z=function(ae){ae.get(0).textContent="\xa0"},X=function(ae){for(var _e=(0,b.G5)(ae=ae||[]),ye=0;ye<ae.length;ye++)ae&&ae[ye]&&void 0!==ae[ye].isExpanded&&(_e[ye].isExpanded=ae[ye].isExpanded),ae&&ae[ye]&&void 0!==ae[ye].groupInterval&&(_e[ye].groupInterval=ae[ye].groupInterval);return _e},M=function(ae,_e){var ye=y.Z.format(ae,_e.format)||ae&&ae.toString()||"",ne={value:ae,valueText:_e.getDisplayFormat?_e.getDisplayFormat(ye):ye,target:_e.target||"row",groupInterval:_e.groupInterval};return _e.customizeText?_e.customizeText.call(_e,ne):ne.valueText},oe=function(ae,_e){var ye=ae.displayFormat||ae.columnCaption&&_e[ae.summaryType+"OtherColumn"]||_e[ae.summaryType];return M(ae.value,{format:ae.valueFormat,getDisplayFormat:function(ne){return ye?(0,p.WU)(ye,ne,ae.columnCaption):ne},customizeText:ae.customizeText})},fe=function(ae){var _e=ae.data&&ae.data(),ye=_e&&_e.dxComponents,ne=ye&&ye[0];return ne&&_e[ne]};const ze={renderNoDataText:function(ae){if(ae=ae||this.element()){var _e=this.addWidgetPrefix("nodata"),ye=ae.find("."+_e).last(),ne=this._dataController.isEmpty(),ce=this._dataController.isLoading();ye.length||(ye=(0,I.Z)("<span>").addClass(_e).appendTo(ae)),ne&&!ce?ye.removeClass("dx-hidden").text(this._getNoDataText()):ye.addClass("dx-hidden")}},renderLoadPanel:function(ae,_e,ye){var ne;this._loadPanel&&this._loadPanel.$element().remove(),(ne=this.option("loadPanel"))&&("auto"===ne.enabled?!ye:ne.enabled)?(ne=(0,l.l)({shading:!1,message:ne.text,container:_e},ne),this._loadPanel=this._createComponent((0,I.Z)("<div>").appendTo(_e),x.Z,ne)):this._loadPanel=null},calculateLoadPanelPosition(ae){var _e=(0,I.Z)((0,E.Jj)());return(0,c.Cr)(ae)>(0,c.Cr)(_e)?{of:_e,boundary:ae,collision:"fit"}:{of:ae}},getIndexByKey:function(ae,_e,ye){var ne=-1;if(void 0!==ae&&Array.isArray(_e)){ye=arguments.length<=2?"key":ye;for(var ce=0;ce<_e.length;ce++){var le=(0,C.$K)(ye)?_e[ce][ye]:_e[ce];if((0,v.bY)(ae,le)){ne=ce;break}}}return ne},combineFilters:function(ae,_e){var ye=[];_e=_e||"and";for(var ne=0;ne<ae.length;ne++){var ce;if(ae[ne]){if(1===(null===(ce=ae[ne])||void 0===ce?void 0:ce.length)&&"!"===ae[ne][0]){if("and"===_e)return["!"];if("or"===_e)continue}ye.length&&ye.push(_e),ye.push(ae[ne])}}if(1===ye.length&&(ye=ye[0]),ye.length)return ye},checkChanges:function(ae,_e){for(var ye=0,ne=0;ne<_e.length;ne++)ae[_e[ne]]&&ye++;return ae.length&&ae.length===ye},equalFilterParameters:function ae(_e,ye){if(Array.isArray(_e)&&Array.isArray(ye)){if(_e.length!==ye.length)return!1;for(var ne=0;ne<_e.length;ne++)if(!ae(_e[ne],ye[ne]))return!1;return!0}return(0,C.mf)(_e)&&_e.columnIndex>=0&&(0,C.mf)(ye)&&ye.columnIndex>=0?_e.columnIndex===ye.columnIndex&&(0,h.Ex)(_e.filterValue)===(0,h.Ex)(ye.filterValue):(0,h.Ex)(_e)==(0,h.Ex)(ye)},proxyMethod:function(ae,_e,ye){ae[_e]||(ae[_e]=function(){var ne=this._dataSource;return ne?ne[_e].apply(ne,arguments):ye})},formatValue:M,getFormatOptionsByColumn:function(ae,_e){return{format:ae.format,getDisplayFormat:ae.getDisplayFormat,customizeText:ae.customizeText,target:_e,trueText:ae.trueText,falseText:ae.falseText}},getDisplayValue:function(ae,_e,ye,ne){return ae.displayValueMap&&void 0!==ae.displayValueMap[_e]?ae.displayValueMap[_e]:ae.calculateDisplayValue&&ye&&"group"!==ne?ae.calculateDisplayValue(ye):!ae.lookup||"group"===ne&&(ae.calculateGroupValue||ae.calculateDisplayValue)?_e:ae.lookup.calculateCellValue(_e)},getGroupRowSummaryText:function(ae,_e){for(var ye="(",ne=0;ne<ae.length;ne++)ye+=(ne>0?", ":"")+oe(ae[ne],_e);return ye+")"},getSummaryText:oe,normalizeSortingInfo:X,getFormatByDataType:function(ae){switch(ae){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(ae,_e){var ye=[],ne=ae.dataField||ae.name,ce=a.Z.getGroupInterval(ae);return ce?((0,s.S6)(ce,function(le,pe){ye.push(_e?{selector:ne,groupInterval:pe,isExpanded:le<ce.length-1}:ee.bind(ae,pe))}),ye):(_e?ye=[{selector:ne,isExpanded:!1}]:(ye=function(le){var pe=ae.calculateCellValue(le);return(void 0===pe||""===pe)&&(pe=null),pe},ae.sortingMethod&&(ye=[{selector:ye,compare:ae.sortingMethod.bind(ae)}])),ye)},equalSortParameters(ae,_e,ye){if(ae=X(ae),_e=X(_e),Array.isArray(ae)&&Array.isArray(_e)){if(ae.length!==_e.length)return!1;for(var ne=0;ne<ae.length;ne++)if(!G(ae[ne].selector,_e[ne].selector)||ae[ne].desc!==_e[ne].desc||ae[ne].groupInterval!==_e[ne].groupInterval||!ye&&Boolean(ae[ne].isExpanded)!==Boolean(_e[ne].isExpanded))return!1;return!0}return(!ae||!ae.length)==(!_e||!_e.length)},getPointsByColumns:function(ae,_e,ye,ne){for(var pe,Se,ie,ce=ae.length,le=!1,re=ne||0,te=[],ue=0;ue<=ce;ue++){ue<ce&&(Se=(pe=ae.eq(ue)).offset(),ie="rtl"===pe.css("direction"));var be={index:re,x:Se?Se.left+(!ye&&ie^ue===ce?(0,d.l)(pe[0]).width:0):0,y:Se?Se.top+(ye&&ue===ce?(0,d.l)(pe[0]).height:0):0,columnIndex:re};if(!ye&&ue>0){var Ae=ae.eq(ue-1).offset();Ae.top<be.y&&(be.y=Ae.top)}_e&&(le=_e(be)),le||te.push(be),re++}return te},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(ae,_e){var ye=(0,I.Z)(ae);if(!(0,C.$K)(_e.value)||_e.data&&_e.data.isContinuation||_e.row.isNewRow)Z(ye);else{var ne=_e.component.getView("rowsView");ye.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,I.Z)("<div>").addClass(_e.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(ye),ne.setAria("label",ne.localize(_e.value?"dxDataGrid-ariaCollapse":"dxDataGrid-ariaExpand"),ye)}}}},setEmptyText:Z,isDateType:q,getSelectionRange:function(ae){try{if(ae)return{selectionStart:ae.selectionStart,selectionEnd:ae.selectionEnd}}catch{}return{}},setSelectionRange:function(ae,_e){try{ae&&ae.setSelectionRange&&ae.setSelectionRange(_e.selectionStart,_e.selectionEnd)}catch{}},focusAndSelectElement:function(ae,_e){var ye=_e.is(":focus");S.Z.trigger(_e,"focus");var ne=ae.option("editing.selectTextOnEditStart"),ce=_e.get(0);if(!ye&&ne&&_e.is(".dx-texteditor-input")&&!_e.is("[readonly]")){var le=fe(_e.closest(".dx-texteditor"));(0,g.gx)(le&&le._loadItemDeferred).done(function(){ce.select()})}},getWidgetInstance:fe,getLastResizableColumnIndex:function(ae,_e){var ne,ye=ae.some(Se=>Se&&!Se.command&&!Se.fixed&&!1!==Se.allowResizing);for(ne=ae.length-1;ae[ne];ne--){var ce=ae[ne];if(!(ce.command||ce.fixed||"adaptiveHidden"===(_e&&_e[ne])||ye&&!1===ce.allowResizing))break}return ne},isElementInCurrentGrid:function(ae,_e){return!(!_e||!_e.length)&&_e.closest("."+ae.getWidgetContainerClass()).parent().is(ae.component.$element())},isVirtualRowRendering:function(ae){var _e=ae.option("scrolling.rowRenderingMode"),ye=ae.option(Y)===U,ne="infinite"===ae.option(Y);return!(!1!==ae.option("scrolling.legacyMode")||!ye&&!ne)||_e===U},getPixelRatio:function(ae){return ae.devicePixelRatio||1},getContentHeightLimit(ae){return ae.mozilla?8e6:15e6/this.getPixelRatio((0,E.Jj)())},normalizeLookupDataSource(ae){var _e;return ae.items?_e=ae.items:(0,C.mf)(_e=ae.dataSource)&&!k.Z.isWrapped(_e)&&(_e=_e({})),(0,T.aN)(_e)},getWrappedLookupDataSource(ae,_e,ye){if(!_e)return[];var ne=this.normalizeLookupDataSource(ae.lookup);if(ae.calculateCellValue!==ae.defaultCalculateCellValue)return ne;var pe,ce=_e.remoteOperations().groupPaging,le=ae.displayField&&(0,C.HD)(ae.displayField),Se=(0,o.Z)({},ne,{__dataGridSourceFilter:ye,load:re=>{var ie,ue,be,te=new g.BH;return(ie=re,ue=function Be(ae){return Array.isArray(ae)||(ae=[ae]),ae.map((_e,ye)=>(0,C.HD)(_e)?{selector:_e,isExpanded:ye<ae.length-1}:_e)}(le?[ae.dataField,ae.displayField]:ae.dataField),be=new g.BH,!ce&&pe?be.resolve(pe):_e.load({filter:ye,group:ue,take:ce?ie.take:void 0,skip:ce?ie.skip:void 0}).done(Ae=>{pe=Ae,be.resolve(Ae)}).fail(be.fail),be).done(ie=>{var ue;if(0===ie.length&&te.resolve([]),le){var be=ie.map(Ne=>{var mt;return{[ae.lookup.valueExpr]:Ne.key,[ae.lookup.displayExpr]:null!==(mt=ae.displayValueMap[Ne.key])&&void 0!==mt?mt:Ne.items[0].key}});ue=new O.o((0,o.Z)({},ne,re,{store:new w.Z({data:be,key:ae.lookup.valueExpr})}))}else{var Ae=this.combineFilters(ie.flatMap(Ne=>Ne.key).map(Ne=>[ae.lookup.valueExpr,Ne]),"or");ue=new O.o((0,o.Z)({},ne,re,{filter:this.combineFilters([Ae,re.filter],"and")}))}ce||ue.on("customizeStoreLoadOptions",Ne=>{Ne.storeLoadOptions.take=re.take,Ne.storeLoadOptions.skip=re.skip}),ue.load().done(te.resolve).fail(te.fail)}).fail(te.fail),te},key:ae.lookup.valueExpr,byKey(re){var te=(0,g.BH)();return this.load({filter:[ae.lookup.valueExpr,"=",re]}).done(ie=>{te.resolve(ie[0])}),te.promise()}});return Se}}},7867:(Rn,he,u)=>{"use strict";u.d(he,{n:()=>Se});var o=u(1805),c=u(9904),I=u(913),C=u(3390),g=u(2879),a=u(1771),p=u(7674),s=u(2718),l=u(1828),d=u(5873),h=u(7),v=u(9009),x=u(219),b=u(8690),y=u(3191),E=u(9109),S=u(3576),O=u(8159),w=u(4270),T=u(1427),k=u(9589),R=u(4722),P="invalid",B="revert-tooltip",W="rowsview",V="invalid-message",Y="validator",J="dx-pending-indicator",j="dx-validation-pending",ee="content",G="__DX_INSERT_INDEX__",M="batch",oe="cell",Be=["popup","form"],_e="insert",ne="cancel",ce=function(re){return(0,l.$K)(re)&&re!==ne},le=function(re,te){return void 0!==re||void 0===re&&te&&!te.isNewRow},Se={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:v.Z.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:C.Z.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating"),this._validationState||this.initValidationState()},initValidationState(){this._validationState=[],this._validationStateCache={}},_rowIsValidated:function(re){var te=this._getValidationData(re?.key);return!!te&&!!te.validated},_getValidationData:function(re,te){var be,ie=(0,p.k3)(re),ue=(0,l.Kn)(ie);return!(be=ue?this._validationState.filter(Ae=>(0,p.bY)(Ae.key,re))[0]:this._validationStateCache[ie])&&te&&(this._validationState.push(be={key:re,isValid:!0}),ue||(this._validationStateCache[ie]=be)),be},_getBrokenRules:function(re,te){return te?te.brokenRules||te.brokenRule&&[te.brokenRule]:re.brokenRules||[]},_rowValidating:function(re,te){var ie=new w.BH,ue=this._editingController.getChangeByKey(re?.key),be=this._getBrokenRules(re,te),Ne={brokenRules:be,isValid:te?te.isValid:re.isValid,key:ue.key,newData:ue.data,oldData:this._editingController._getOldData(ue.key),promise:null,errorText:this.getHiddenValidatorsErrorText(be)};return this.executeAction("onRowValidating",Ne),(0,w.gx)((0,w.p4)(Ne.promise)).always(function(){re.isValid=Ne.isValid,re.errorText=Ne.errorText,ie.resolve(Ne)}),ie.promise()},getHiddenValidatorsErrorText:function(re){var te=[];return(0,s.S6)(re,function(ie,ue){var be=ue.column,Ae=be&&void 0!==be.groupIndex&&!be.showWhenGrouped,Ne=be&&be.visible;!ue.validator.$element().parent().length&&(!Ne||Ae)&&te.push(ue.message)}),te.join(", ")},validate:function(re){var te=!0,ie=this._editingController,ue=new w.BH,be=[],Ae=ie.getEditMode();if(re=re||"row"===Ae,this._isValidationInProgress)return ue.resolve(!1).promise();if(this._isValidationInProgress=!0,re){ie.addDeferred(ue);var Ne=ie.getChanges();(0,s.S6)(Ne,(tt,Le)=>{var{type:gt,key:tn}=Le;if("remove"!==gt){var Pe=this._getValidationData(tn,!0),$e=this.validateGroup(Pe);be.push($e),$e.done(ge=>{Pe.validated=!0,te=te&&ge.isValid})}})}else if(this._currentCellValidator){var mt=this.validateGroup(this._currentCellValidator._findGroup());be.push(mt),mt.done(tt=>{te=tt.isValid})}return(0,w.gx)(...be).done(()=>{this._isValidationInProgress=!1,ue.resolve(te)}),ue.promise()},validateGroup:function(re){var te,be,ie=new w.BH,ue=re&&y.Z.getGroupConfig(re);return null!=ue&&ue.validators.length&&(this.resetRowValidationResults(re),be=y.Z.validateGroup(re)),(0,w.gx)((null===(te=be)||void 0===te?void 0:te.complete)||be).done(Ae=>{(0,w.gx)(this._rowValidating(re,Ae)).done(ie.resolve)}),ie.promise()},isRowDataModified:re=>!(0,l.Qr)(re.data),updateValidationState:function(re){var te=this._editingController.getEditMode(),ue=this._getValidationData(re.key,!0);if(-1===Be.indexOf(te)){if(re.type===_e&&!this.isRowDataModified(re))return void(ue.isValid=!0);if(this.setDisableApplyValidationResults(!0),y.Z.getGroupConfig(ue)){var Ae=y.Z.validateGroup(ue);(0,w.gx)(Ae.complete||Ae).done(Ne=>{ue.isValid=Ne.isValid,ue.brokenRules=Ne.brokenRules})}else(!ue.brokenRules||!ue.brokenRules.length)&&(ue.isValid=!0);this.setDisableApplyValidationResults(!1)}else ue.isValid=!0},setValidator:function(re){this._currentCellValidator=re},renderCellPendingIndicator:function(re){var te=re.find("."+J);if(!te.length){var ie=re;te=(0,c.Z)("<div>").appendTo(ie).addClass(J),this._createComponent(te,T.Z),re.addClass(j)}},disposeCellPendingIndicator:function(re){var te=re.find("."+J);if(te.length){var ie=T.Z.getInstance(te);ie&&(ie.dispose(),ie.$element().remove()),re.removeClass(j)}},validationStatusChanged:function(re){var te=re.validator,ie=te.option("validationGroup"),ue=te.option("dataGetter")().column;this.updateCellValidationResult({rowKey:ie.key,columnIndex:ue.index,validationResult:re})},validatorInitialized:function(re){re.component.on("validating",this.validationStatusChanged.bind(this)),re.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(re){var te=re.component,ie=te.option("validationGroup"),ue=te.option("dataGetter")().column,be=this.getCellValidationResult({rowKey:ie?.key,columnIndex:ue.index});ce(be)&&"pending"===be.status&&this.cancelCellValidationResult({change:ie,columnIndex:ue.index})},applyValidationResult:function(re,te){var ie=te.validator,ue=ie.option("validationGroup"),be=ie.option("dataGetter")().column;if(te.brokenRules&&te.brokenRules.forEach(Le=>{Le.columnIndex=be.index,Le.column=be}),re){var Ae=this.getCellValidationResult({rowKey:ue.key,columnIndex:be.index}),Ne=ce(Ae)&&Ae.disabledPendingId===te.id;if(this._disableApplyValidationResults||Ne)return;if("invalid"===te.status){var mt=re.find(":focus");(0,h.si)(mt)||(I.Z.trigger(mt,"focus"),I.Z.trigger(mt,b.Z.down))}var tt=!be.editCellTemplate&&this.getController("editorFactory").getEditorInstance(re);"pending"===te.status?tt?tt.option("validationStatus","pending"):this.renderCellPendingIndicator(re):tt?tt.option("validationStatus","valid"):this.disposeCellPendingIndicator(re),re.toggleClass(this.addWidgetPrefix(P),"invalid"===te.status)}},_syncInternalEditingData:function(re){var te,ie=this._editingController,ue=ie.getChangeByKey(re.key),be=ie._getOldData(re.key),Ae=null===(te=re.row)||void 0===te?void 0:te.oldData;ue&&Ae&&!be&&ie._addInternalData({key:re.key,oldData:Ae})},createValidator:function(re,te){var ie=this._editingController,ue=re.column,be=ue.showEditorAlways;if(!(0,l.$K)(ue.command)&&ue.validationRules&&Array.isArray(ue.validationRules)&&ue.validationRules.length){var Ne=ie.getIndexByKey(re.key,ie.getChanges())>-1;if(!Ne){be||(be=(this.getController("columns")?.getVisibleColumns()||[]).some(function(bt){return bt.showEditorAlways}));var tn,Pe,Le=(0,p.bY)(this.option("editing.editRowKey"),re.key),gt=ie.isCellOrBatchEditMode()&&ie.allowUpdating({row:re.row});Ne=Le||gt&&be,gt&&be&&ie._addInternalData({key:re.key,oldData:null!==(tn=null===(Pe=re.row)||void 0===Pe?void 0:Pe.oldData)&&void 0!==tn?tn:re.data})}if(Ne){if(te&&!te.length)return void O.Z.log("E1050");this._syncInternalEditingData(re);var $e=this._getValidationData(re.key,!0),ge=()=>{var bt=ie.getChangeByKey($e?.key),yt=ue.calculateCellValue(bt?.data||{});return void 0!==yt?yt:re.value},Ce=te&&te.hasClass("dx-widget");te&&te.addClass(this.addWidgetPrefix(Y));var De=new E.Z(te||(0,c.Z)("<div>"),{name:ue.caption,validationRules:(0,d.l)(!0,[],ue.validationRules),validationGroup:$e,adapter:Ce?null:{getValue:ge,applyValidationResults:bt=>{this.applyValidationResult(te,bt)}},dataGetter:function(){var bt=$e?.key,yt=ie.getChangeByKey(bt),kt=ie._getOldData(bt);return{data:(0,a.FL)(kt,yt?.data),column:ue}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(Ce){var Ye=De.option("adapter");Ye&&(Ye.getValue=ge,Ye.validationRequestsCallbacks=[],Ye.bypass=()=>re.row.isNewRow&&!this._isValidationInProgress&&!ie.isCellModified(re))}return De}}},setDisableApplyValidationResults:function(re){this._disableApplyValidationResults=re},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(re){var{rowKey:te,columnIndex:ie}=re;return this._currentCellValidator&&(0,p.bY)(this._currentCellValidator.option("validationGroup").key,te)&&this._currentCellValidator.option("dataGetter")().column.index===ie},validateCell:function(re){var te={rowKey:re.option("validationGroup").key,columnIndex:re.option("dataGetter")().column.index},ie=this.getCellValidationResult(te),ue=ce(ie);ue||(ie=re.validate());var be=new w.BH,Ae=re.option("adapter");return ue&&"pending"===ie.status&&(this.updateCellValidationResult(te),Ae.applyValidationResults(ie)),(0,w.gx)(ie.complete||ie).done(Ne=>{ue&&Ae.applyValidationResults(Ne),be.resolve(Ne)}),be.promise()},updateCellValidationResult:function(re){var{rowKey:te,columnIndex:ie,validationResult:ue}=re,be=this._getValidationData(te);if(be){var Ae;if(be.validationResults||(be.validationResults={}),ue){if(Ae=(0,d.l)({},ue),be.validationResults[ie]=Ae,"pending"===ue.status&&(this._editingController.getEditMode()===oe&&(Ae.deferred=new w.BH,Ae.complete.always(()=>{Ae.deferred.resolve()}),this._editingController.addDeferred(Ae.deferred)),this._disableApplyValidationResults))return void(Ae.disabledPendingId=ue.id)}else Ae=be.validationResults[ie];Ae&&Ae.disabledPendingId&&delete Ae.disabledPendingId}},getCellValidationResult:function(re){var te,{rowKey:ie,columnIndex:ue}=re,be=this._getValidationData(ie,!0);return null==be||null===(te=be.validationResults)||void 0===te?void 0:te[ue]},removeCellValidationResult:function(re){var{change:te,columnIndex:ie}=re,ue=this._getValidationData(te?.key);ue&&ue.validationResults&&(this.cancelCellValidationResult({change:te,columnIndex:ie}),delete ue.validationResults[ie])},cancelCellValidationResult:function(re){var{change:te,columnIndex:ie}=re,ue=this._getValidationData(te.key);if(te&&ue.validationResults){var be=ue.validationResults[ie];be&&(be.deferred&&be.deferred.reject(ne),ue.validationResults[ie]=ne)}},resetRowValidationResults:function(re){re&&(re.validationResults&&delete re.validationResults,delete re.validated)},isInvalidCell:function(re){var{rowKey:te,columnIndex:ie}=re,ue=this.getCellValidationResult({rowKey:te,columnIndex:ie});return ce(ue)&&"invalid"===ue.status},getCellValidator:function(re){var{rowKey:te,columnIndex:ie}=re,ue=this._getValidationData(te),be=ue&&y.Z.getGroupConfig(ue),Ae=be&&be.validators;return Ae&&Ae.filter(Ne=>{var mt=Ne.option("dataGetter")().column;return!!mt&&mt.index===ie})[0]},setCellValidationStatus:function(re){var te=this.getCellValidationResult({rowKey:re.key,columnIndex:re.column.index});(0,l.$K)(te)?re.validationStatus=te!==ne?te.status:ne:delete re.validationStatus}})},extenders:{controllers:{editing:{_addChange:function(re){var te=this.callBase.apply(this,arguments),ie=this.getController("validating");return te&&"remove"!==re.type&&ie.updateValidationState(te),te},_handleChangesChange:function(re){this.callBase.apply(this,arguments);var te=this.getController("validating");re.value.forEach(ie=>{void 0===te._getValidationData(ie.key)&&te.updateValidationState(ie)})},_updateRowAndPageIndices:function(){var re=this,te=re.getView("rowsView").getTopVisibleItemIndex(),ie=te;(0,s.S6)(re.getChanges(),(ue,be)=>{var{key:Ae,type:Ne}=be,mt=this.getController("validating")._getValidationData(Ae);mt&&!mt.isValid&&mt.pageIndex!==re._pageIndex&&(mt.pageIndex=re._pageIndex,mt.rowIndex=Ne===_e?te:ie,ie++)})},_getValidationGroupsInForm:function(re){return{validationGroup:this.getController("validating")._getValidationData(re.key,!0)}},_validateEditFormAfterUpdate:function(re,te){te&&this._editForm&&this._editForm.validate(),this.callBase.apply(this,arguments)},_prepareEditCell:function(re){var te=this.callBase.apply(this,arguments),ie=this.getController("validating");return te&&re.column.showEditorAlways&&ie.updateValidationState({key:re.key}),te},processItems:function(re,te){var ie=this.getChanges(),ue=this.getController("data"),be=this.getController("validating"),Ae=(re=this.callBase(re,te)).length;return this.getEditMode()===M&&"prepend"!==te&&"append"!==te&&ie.forEach(mt=>{var Le=be._getValidationData(mt.key);Le&&mt.type&&Le.pageIndex===this._pageIndex&&mt?.pageIndex!==this._pageIndex&&function(mt,tt){var Pe,ge,Ce,De,Le={key:mt.key};if(ge=-1,Ce=(Pe=mt).type===_e,De=Pe.key,(0,s.S6)(re,function(Ye,bt){if((0,p.bY)(De,Ce?bt.key:ue.keyOf(bt)))return ge=Ye,!1}),!(ge>=0)){tt.rowIndex=tt.rowIndex>Ae?tt.rowIndex%Ae:tt.rowIndex;var tn=tt.rowIndex;Le[G]=1,re.splice(tn,0,Le)}}(mt,Le)}),re},processDataItem:function(re){var te=re.data[G],ie=te?re.data.key:re.key,ue=this.getEditMode();if(ue===M&&te&&ie){var be=this.getChanges(),Ae=g.Z.getIndexByKey(ie,be);if(Ae>=0){var Ne=be[Ae];if(Ne.type!==_e){var mt=this._getOldData(Ne.key);re.data=(0,d.l)(!0,{},mt,Ne.data),re.key=ie}}}this.callBase.apply(this,arguments)},_createInvisibleColumnValidators:function(re){var te=this,ie=this.getController("validating"),ue=this.getController("columns"),be=ue.getColumns(),Ae=ue.getInvisibleColumns().filter(Le=>!Le.isBand),Ne=ue.getGroupColumns().filter(Le=>!Le.showWhenGrouped&&-1===Ae.indexOf(Le)),mt=[],tt=(Le,gt)=>this._dataController.getRowIndexByKey(gt)>=0&&Ae.indexOf(Le)<0;return Ae.push(...Ne),-1===Be.indexOf(this.getEditMode())&&(0,s.S6)(be,function(Le,gt){re.forEach(function(tn){var Pe;if(!tt(gt,tn.key)){if(tn.type===_e)Pe=tn.data;else if("update"===tn.type){var $e=te._getOldData(tn.key);Pe=(0,a.FL)($e,tn.data)}if(Pe){var ge=ie.createValidator({column:gt,key:tn.key,value:gt.calculateCellValue(Pe)});ge&&mt.push(ge)}}})}),function(){mt.forEach(function(Le){Le.dispose()})}},_beforeSaveEditData:function(re,te){var ie=this.callBase.apply(this,arguments),ue=this.getController("validating"),be=ue._getValidationData(re?.key);if(re){var Ae="remove"===re.type||be.isValid;ie=ie||!Ae}else{var Ne=this._createInvisibleColumnValidators(this.getChanges());ie=new w.BH,this.executeOperation(ie,()=>{ue.validate(!0).done(mt=>{switch(Ne(),this._updateRowAndPageIndices(),this.getEditMode()){case oe:mt||this._focusEditingCell();break;case M:mt||(this._resetEditRowKey(),this._resetEditColumnName(),this.getController("data").updateItems())}ie.resolve(!mt)})})}return ie.promise?ie.promise():ie},_beforeEditCell:function(re,te,ie){var ue=this.callBase(re,te,ie);if(this.getEditMode()===oe){var be=this._rowsView._getCellElement(re,te),Ae=be&&be.data("dxValidator"),Ne=be&&be.closest(".dx-row").data("options"),mt=Ae&&Ae.option("adapter").getValue();if(Ae&&le(mt,Ne)){var tt=this.getController("validating"),Le=new w.BH;return(0,w.gx)(tt.validateCell(Ae),ue).done((gt,tn)=>{Le.resolve("valid"===gt.status&&tn)}),Le.promise()}if(!Ae)return ue}},_afterSaveEditData:function(re){var te,ie=this.getEditMode()===oe;if((0,s.S6)(this.getChanges(),(tt,Le)=>{var gt=this._showErrorRow(Le);te=te||gt}),te){var ue=this._rowsView.getScrollable();ue&&(ue.update(),ue.scrollToElement(te))}if(re&&ie&&this._needUpdateRow()){var be=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[be]}),this._focusEditingCell()}else if(!re){var Ae=!0;ie&&(Ae=!(this.getController("columns").getColumns().filter(tt=>{var Le;return tt.showEditorAlways&&(null===(Le=tt.validationRules)||void 0===Le?void 0:Le.length)>0}).length>0)),Ae&&this.getController("validating").initValidationState()}},_handleDataChanged:function(re){var te=this.getController("validating")._validationState;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===re.changeType&&(0,s.S6)(te,function(ie,ue){ue.rowIndex+=re.items.length}),this.callBase(re)},resetRowAndPageIndices:function(){var re=this.getController("validating")._validationState;(0,s.S6)(re,(te,ie)=>{ie.pageIndex!==this._pageIndex&&(delete ie.pageIndex,delete ie.rowIndex)})},_beforeCancelEditData:function(){this.getController("validating").initValidationState(),this.callBase()},_showErrorRow:function(re){var te,ie=this.getController("errorHandling"),ue=this.getController("data").items(),be=this.getIndexByKey(re.key,ue),Ae=this.getController("validating")._getValidationData(re.key);if((null==Ae||!Ae.isValid)&&null!=Ae&&Ae.errorText&&be>=0)return te=this.getPopupContent(),ie&&ie.renderErrorRow(Ae?.errorText,be,te)},updateFieldValue:function(re){var te=this.getController("validating"),ie=new w.BH;return te.removeCellValidationResult({change:this.getChangeByKey(re.key),columnIndex:re.column.index}),this.callBase.apply(this,arguments).done(()=>{var ue=te.getCellValidator({rowKey:re.key,columnIndex:re.column.index});(0,w.gx)(ue&&te.validateCell(ue)).done(be=>{this.getController("editorFactory").refocus(),ie.resolve(be)})}),ie.promise()},highlightDataCell:function(re,te){this.callBase.apply(this,arguments);var ie=this.getController("validating");ie.setCellValidationStatus(te);var ue=!!te.setValue,be=this.isCellModified(te),Ae=(0,l.$K)(te.validationStatus),Ne=be&&te.column.setCellValue||ue&&!be&&!(te.row.isNewRow||!Ae);if(Ne){var mt=re.data("dxValidator");mt&&(0,w.gx)(this.getController("validating").validateCell(mt)).done(()=>{ie.setCellValidationStatus(te)})}},getChangeByKey:function(re){var te=this.getChanges();return te[g.Z.getIndexByKey(re,te)]},isCellModified:function(re){var te=this.callBase(re),ie=this.getChangeByKey(re.key),ue=!!re.row&&this.getController("validating").isInvalidCell({rowKey:re.key,columnIndex:re.column.index});return te||this.getController("validating")._rowIsValidated(ie)&&ue}},editorFactory:{_showRevertButton:function(re){if(re&&re.length){var te=this._rowsView.element().find("."+this.addWidgetPrefix(B)),ie=re.closest(".".concat(this.addWidgetPrefix(ee)));te&&te.remove(),te=(0,c.Z)("<div>").addClass(this.addWidgetPrefix(B)).appendTo(re);var ue={animation:null,visible:!0,width:"auto",height:"auto",shading:!1,container:ie,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,contentTemplate:()=>{var be=(0,c.Z)("<div>").addClass("dx-revert-button"),Ae={icon:"revert",hint:this.option("editing.texts.validationCancelChanges"),onClick:()=>{this._editingController.cancelEditData()}};return new x.Z(be,Ae).$element()},position:{my:"left top",at:"right top",offset:"1 0",collision:"flip",boundaryOffset:"0 0",boundary:this._rowsView.element(),of:re},onPositioned:this._positionedHandler.bind(this)};return new S.Z(te,ue)}},_hideFixedGroupCell:function(re,te){var ie,ue,be=this._rowsView.isFixedColumns(),Ae=this._editingController.isFormOrPopupEditMode();if(be&&!Ae){var Ne=re.closest(".dx-row").next().data("options");Ne&&"group"===Ne.rowType&&(ie=(0,c.Z)(this._rowsView.getRowElement(Ne.rowIndex)).last(),(ue=ie.find(".dx-group-cell")).length&&"hidden"!==ue.get(0).style.visibility&&(ue.css("visibility","hidden"),te.onDisposing=function(){ue.css("visibility","")}))}},_positionedHandler:function(re,te){if(!re.component.__skipPositionProcessing){var ie=(0,c.Z)(re.element).hasClass(this.addWidgetPrefix(B)),ue=!ie&&this._rowsView.updateFreeSpaceRowHeight(),be=this._normalizeValidationMessagePositionAndMaxWidth(re,ie,te);re.component.__skipPositionProcessing=!(!ue&&!be),be?re.component.option(be):ue&&re.component.repaint()}},_showValidationMessage:function(re,te,ie,ue){var be=re.find(".dx-dropdowneditor-overlay").data("dxPopup"),Ae=be&&be.option("visible"),Ne=Ae?"top right":"top "+ie,mt=Ae?"top left":"bottom "+ie,tt=re.closest(".".concat(this.addWidgetPrefix(ee))),Le="";te&&te.forEach(function($e){Le+=(Le.length?"<br/>":"")+(0,k.HZ)($e)});var gt=this.addWidgetPrefix(V);this._rowsView.element().find("."+gt).remove();var tn=(0,c.Z)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(gt).html(Le).appendTo(re),Pe={container:tt,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,hideOnOutsideClick:!1,copyRootClassesToWrapper:!0,_ignoreCopyRootClassesToWrapperDeprecation:!0,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",offset:{x:0,y:!Ae&&R.Z.mozilla?-1:0},my:Ne,at:mt,of:re},onPositioned:$e=>{this._positionedHandler($e,Ae),this._shiftValidationMessageIfNeed($e.component.$content(),ue&&ue.$content(),re)}};this._hideFixedGroupCell(re,Pe),new S.Z(tn,Pe)},_normalizeValidationMessagePositionAndMaxWidth:function(re,te,ie){var Ce,De,Ye,ue=this._columnsController.getFixedColumns();if(ue&&ue.length){var be,tt,Le,Ae=!te&&(tt=(0,c.Z)(re.element).closest("tr").index(),Le=(0,c.Z)(this._rowsView.getRowElement(tt)).first().children().filter(":not(.dx-hidden-cell)"),this._rowsView._getWidths(Le).reduce((Ce,De)=>Ce+De,0)),gt=re.component.$content(),tn=(0,o.Y_)(gt,!0),Pe=!te&&tn>Ae,$e=this._rowsView.getCellIndex((0,c.Z)(re.element).closest("td")),ge=((Ce=ue).some((bt,yt)=>{if("transparent"===bt.command)return De=0===yt?-1:yt,Ye=yt===Ce.length-1?-1:yt+bt.colspan-1,!0}),{startColumnIndex:De,endColumnIndex:Ye});return te||$e!==ge.startColumnIndex&&!Pe?$e===ge.endColumnIndex&&(be={collision:"none flip",my:"top right",at:te||ie?"top left":"bottom right"},te&&(be.offset="-1 0")):be={collision:"none flip",my:"top left",at:ie?"top right":"bottom left"},be&&{position:be,maxWidth:Pe?Ae-2:void 0}}},_shiftValidationMessageIfNeed:function(re,te,ie){if(te){var ue=re.offset(),be=te.offset();if(ue.top===be.top&&ue.left+(0,o.dz)(re)>be.left){var Ae=(0,o.dz)(te)+2;re.css("left",be.left<ie.offset().left?-Ae:Ae)}}},_getTooltipsSelector:function(){var re=this.addWidgetPrefix(V);return".dx-editor-cell ."+this.addWidgetPrefix(B)+", .dx-editor-cell ."+re+", .dx-cell-modified ."+re},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(re){re||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(re,te,ie){var ue,gt,be=re?.closest(this._getFocusCellSelector()),Ae=null!=be&&be.is("td")?be:null,Ne=be?.closest(".dx-row").data("options"),mt=Ne?this.getController("editing").getChangeByKey(Ne.key):null,tt=Ae&&this.getController("columns").getVisibleColumns()[Ae.index()],Le=void 0!==(null==mt||null===(ue=mt.data)||void 0===ue?void 0:ue[tt?.name])&&!this._editingController.isSaving();if(("invalid"===te?.status||Le)&&this._editingController.getEditMode()===oe&&(gt=this._showRevertButton(be)),te&&"invalid"===te.status&&Ae&&tt&&te&&te.brokenRules){var Pe=[];te.brokenRules.forEach(function($e){$e.message&&Pe.push($e.message)}),Pe.length&&this._showValidationMessage(be,Pe,tt.alignment||"left",gt)}!ie&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(re,te){if(!arguments.length)return this.callBase();var ie=re&&re.closest("."+this.addWidgetPrefix(W)).find(this._getTooltipsSelector());if(ie&&ie.remove(),null!=re&&re.hasClass("dx-row")||null!=re&&re.hasClass("dx-master-detail-cell"))return this.callBase(re,te);var Le,ue=re?.closest(this._getFocusCellSelector()),be=this.callBase,Ae=ue&&(ue.data("dxValidator")||re.find("."+this.addWidgetPrefix(Y)).eq(0).data("dxValidator")),Ne=ue&&ue.closest(".dx-row").data("options"),mt=this.getController("editing"),tt=Ne?mt.getChangeByKey(Ne.key):null,gt=this.getController("validating");if(Ae){gt.setValidator(Ae);var tn=Ae.option("adapter").getValue();if(le(tn,Ne)||gt._rowIsValidated(tt))return mt.waitForDeferredOperations().done(()=>{(0,w.gx)(gt.validateCell(Ae)).done(Pe=>{var $e=(Le=Pe).validator.option("dataGetter")().column;tt&&$e&&!gt.isCurrentValidatorProcessing({rowKey:tt.key,columnIndex:$e.index})||("invalid"===Le.status&&(te=!0),this.updateCellState(re,Le,te),be.call(this,re,te))})}),this.callBase(re,te)}return this.updateCellState(re,Le,te),this.callBase(re,te)},getEditorInstance:function(re){var te=re.find(".dx-texteditor").eq(0);return g.Z.getWidgetInstance(te)}},data:{_getValidationStatus:function(re){return(ce(re)?re.status:re)||"valid"},_isCellChanged:function(re,te,ie,ue,be){var Ae,Ne,mt=null===(Ae=re.cells)||void 0===Ae?void 0:Ae[ue],tt=this._getValidationStatus({status:mt?.validationStatus}),Le=this.getController("validating"),gt=Le.getCellValidationResult({rowKey:re.key,columnIndex:ue}),tn=Le._getValidationData(re.key),Pe=this._getValidationStatus(gt),$e=JSON.stringify(te.modifiedValues)!==JSON.stringify(re.modifiedValues),ge=tt!==Pe&&$e,Ce=(0,c.Z)(mt?.cellElement).hasClass(this.addWidgetPrefix(P)),De=null==mt||null===(Ne=mt.column.validationRules)||void 0===Ne?void 0:Ne.length,Ye=re.isEditing!==te.isEditing&&De,bt=ge||tn.isValid&&Ce;return!(!Ye&&!bt)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(re){var te,ie,ue,be=this.element(),Ae=be&&be.find("."+this.addWidgetPrefix(V)+" .dx-overlay-content");if(this.callBase(re),Ae&&Ae.length&&(te=this._getRowElements(),(ie=(ue=this._getFreeSpaceRowElements(re)).first())&&1===te.length&&(!ie.is(":visible")||(0,o.zp)(Ae)>(0,o.zp)(ie))))return ue.show(),(0,o.QQ)(ue,(0,o.zp)(Ae)),!0},_formItemPrepared:function(re,te){this.callBase.apply(this,arguments),(0,p.Su)(()=>{var ie=te.find(".dx-widget").first();ie.length&&!ie.children().length||this.getController("validating").createValidator(re,ie)})},_cellPrepared:function(re,te){this.getController("editing").isFormOrPopupEditMode()||this.getController("validating").createValidator(te,re),this.callBase.apply(this,arguments)},_restoreErrorRow:function(re){var te=this.getController("editing");te&&te.hasChanges()&&this._getRowElements(re).each((ie,ue)=>{var be=(0,c.Z)(ue).data("options");if(be){var Ae=te.getChangeByKey(be.key);Ae&&te._showErrorRow(Ae)}})}}}}}},7209:(Rn,he,u)=>{"use strict";u.d(he,{t:()=>l});var d,o=u(1805),c=u(4514),I=u(9853),C=u(1828),a={_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(d){var h=this,v=this.getScrollable(),x=d.scrollOffset.left;h.callBase.apply(h,arguments),h.option("rtlEnabled")&&v&&(x=(0,o.dz)(v.$content())-(0,o.dz)(v.$element())-x),h._columnsController.setScrollPosition(x)}},l={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:(d=function(v){return v.map(x=>x.visibleWidth||parseFloat(x.width)||50)},{init:function(){var v=this;v.callBase.apply(this,arguments),v._beginPageIndex=null,v._endPageIndex=null,v._position=0,v._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(v){for(var x=this.getVisibleColumns(void 0,!0),b=d(x),y=0,E=0;E<b.length;E++){if(y>=v)return Math.floor(E/this.getColumnPageSize());y+=b[E]}return 0},getTotalWidth:function(){var v=this.option("width");return"number"==typeof v?v:this.getController("resizing")._lastWidth||(0,o.Y_)(this.component.$element())},getEndPageIndex:function(v){var x=this.getVisibleColumns(void 0,!0),b=d(x),y=0;v+=this.getTotalWidth();for(var E=0;E<b.length;E++){if(y>=v)return Math.ceil(E/this.getColumnPageSize());y+=b[E]}return Math.ceil(b.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var v=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,virtualColumnsScrolling:!0,length:2}}),this._renderTime=new Date-v},getScrollingTimeout:function(){var v=this.option("scrolling.columnRenderingThreshold"),x=this.option("scrolling.renderAsync"),b=0;return(!(0,C.$K)(x)&&this._renderTime>v||x)&&(b=this.option("scrolling.timeout")),b},setScrollPosition:function(v){var x=this.getScrollingTimeout();x>0?(clearTimeout(this._changedTimeout),this._changedTimeout=setTimeout(()=>{this._setScrollPositionCore(v)},x)):this._setScrollPositionCore(v)},isVirtualMode:function(){return(0,c.Ym)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(v){if(this.isVirtualMode()){var x=this.getBeginPageIndex(v),b=this.getEndPageIndex(v),y=v<this._position?this._beginPageIndex>x:this._endPageIndex<b;this._position=v,y&&(this._beginPageIndex=x,this._endPageIndex=b,this._fireColumnsChanged())}},getFixedColumns:function(v,x){var b=this.callBase(v);if(this.isVirtualMode()&&!x&&b.length){var y=b.map(E=>E.command).indexOf("transparent");return b[y].colspan=this.getVisibleColumns().length-this.callBase().length+1,b}return b},_compileVisibleColumns:function(v,x){var b;if(x||!this.isVirtualMode()||!this._shouldReturnVisibleColumns())return this.callBase(v);null!==(b=this._columns)&&void 0!==b&&b.length&&!(0,C.$K)(this._beginPageIndex)&&!(0,C.$K)(this._endPageIndex)&&(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var y=this._beginPageIndex,E=this._endPageIndex,S=v+"-"+y+"-"+E;if(this._virtualVisibleColumns[S])return this._virtualVisibleColumns[S];var O=this.callBase(),w=this.getRowCount(),T=this.getColumnPageSize(),k=y*T,R=E*T,P=this.getFixedColumns(void 0,!0),B=P.map(q=>q.command).indexOf("transparent"),W=P.length?B:0,z=O.slice(0,W),V=O.slice(W,k),U=d(V).reduce((q,Z)=>q+Z,0);U||(k=0);var K=P.length?P.length-B-1:0,Y=O.slice(O.length-K),J=O.slice(R,O.length-K),j=d(J).reduce((q,Z)=>q+Z,0);if(j||(R=O.length),w>1&&"number"==typeof v){for(var ee=[],G=0;G<w;G++)ee.push(this.callBase(G));z=(0,I.P)(ee,0,z.length)[v]||[],Y=(0,I.P)(ee,O.length-Y.length,O.length)[v]||[],O=(0,I.P)(ee,k,R)[v]||[]}else O=O.slice(k,R);return U&&(O.unshift({command:"virtual",width:U}),O=z.concat(O)),j&&(O.push({command:"virtual",width:j}),O=O.concat(Y)),this._virtualVisibleColumns[S]=O,O},getColumnIndexOffset:function(){var v=0;if(this._beginPageIndex>0){var b=this.getFixedColumns().map(E=>E.command).indexOf("transparent"),y=b>=0?b:0;v=this._beginPageIndex*this.getColumnPageSize()-y-1}return v>0?v:0},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}})},views:{columnHeadersView:{_renderCore:function(){var d=this.callBase.apply(this,arguments);return this._columnsController.isVirtualMode()&&this._updateScrollLeftPosition(),d}},rowsView:a}}}},9853:(Rn,he,u)=>{"use strict";u.d(he,{L:()=>c,P:()=>I});var o=u(5873);function c(C,g,a,p,s,l){l=l||[],(p=p||[])[a=a||0]=p[a]||0;var x,d=C[a],v=0;if(d){for(x=l[a]+1||0;x<d.length;x++){var b=d[x],y=x+p[a],E=b.colspan||1;if(c(C,g,a+(b.rowspan||1),p,E,l),p[a]+=E-1,v+=E,b.rowspan)for(var S=a+1;S<a+b.rowspan;S++)p[S]=p[S]||0,p[S]+=b.colspan||1;if(!1===g(b,y,a,x)||void 0!==s&&v>=s)break}l[a]=x}}function I(C,g,a){var p=[];c(C,function(l,d,h){var x,v=l,b=v.colspan||1,y=d+b-1>=g&&d<a;if(p[h]=p[h]||[],y)d<g?(x=b-(g-d),d=g):x=b,d+x>a&&(x=a-d),x!==b&&(v=(0,o.l)({},v,{colspan:x})),p[h].push(v);else if(d>a)return!1});for(var s=0;s<p.length;s++)p[s]=p[s]||[];return p}},7031:(Rn,he,u)=>{"use strict";u.d(he,{b:()=>G});var q,Z,o=u(1805),c=u(9904),I=u(4514),C=u(7954),g=u(2879),a=u(2718),p=u(4270),s=u(1427),l=u(4722),d=u(5450),h=u(6520),v=u(1828),x="bottom-load-panel",b="table-content",E="content",S="dx-freespace-row",w="dx-virtual-row",B="scrolling.legacyMode",W="paging.pageIndex",z=function(q){return"virtual"===q.option("scrolling.mode")},V=function(q){return"infinite"===q.option("scrolling.mode")},U=function(q){return z(q)||V(q)},K=function(q,Z,X,M){for(var oe=0;oe<Z+1;oe++){var fe=q[X?q.length-1-oe:oe];fe&&!M(fe,oe===Z,X)&&Z++}return Z},Y=function(q,Z){return"data"===q.rowType&&!q.isNewRow||"group"===q.rowType&&Z.isGroupItemCountable(q.data)},J=function(q){return q.forEach(function(Z,X){Z.rowIndex=X}),q},j=(q=function(X){var M=X._virtualScrollController.beginPageIndex(-1);z(X)&&(M<0||X.viewportSize()>=0&&X.getViewportItemIndex()>=0&&(M*X.pageSize()>X.getViewportItemIndex()||M*X.pageSize()+X.itemsCount()<X.getViewportItemIndex()+X.viewportSize())&&X._dataSource.isLoading()?X._isLoading||(X._isLoading=!0,X.loadingChanged.fire(!0)):X._isLoading&&(X._isLoading=!1,X.loadingChanged.fire(!1)))},Z={init:function(){this.callBase.apply(this,arguments),this._items=[],this._totalCount=-1,this._isLoaded=!0,this._loadPageCount=1,this._virtualScrollController=new C.z(this.component,this._getVirtualScrollDataOptions())},_getVirtualScrollDataOptions:function(){var X=this;return{pageSize:function(){return X.pageSize()},totalItemsCount:function(){return X.totalItemsCount()},hasKnownLastPage:function(){return X.hasKnownLastPage()},pageIndex:function(M){return X._dataSource.pageIndex(M)},isLoading:function(){return X._dataSource.isLoading()&&!X.isCustomLoading()},pageCount:function(){return X.pageCount()},load:function(){return X._dataSource.load()},updateLoading:function(){q(X)},itemsCount:function(){return X.itemsCount(!0)},items:function(){return X._dataSource.items()},viewportItems:function(M){return M&&(X._items=M),X._items},onChanged:function(M){X.changed.fire(M)},changingDuration:function(M){return X.isLoading()?300:X._renderTime||0}}},_handleLoadingChanged:function(X){!1!==this.option(B)?((!z(this)||this._isLoadingAll)&&(this._isLoading=X,this.callBase.apply(this,arguments)),this._startLoadTime=X?new Date:void 0):this.callBase.apply(this,arguments)},_handleLoadError:function(){!1!==this.option(B)&&(this._isLoading=!1,this.loadingChanged.fire(!1)),this.callBase.apply(this,arguments)},_handleDataChanged:function(X){if(!1===this.option(B))return this._items=this._dataSource.items().slice(),this._totalCount=this._dataSourceTotalCount(!0),void this.callBase.apply(this,arguments);var M=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(M,X)},_customizeRemoteOperations:function(X,M){var oe=!1===this.option(B),fe=this.option("scrolling.renderAsync");(0,v.$K)(fe)||(fe=this._renderTime>=this.option("scrolling.renderingThreshold")),(z(this)||V(this)&&oe)&&!M.reload&&(M.skip||oe)&&!fe&&(X.delay=void 0),this.callBase.apply(this,arguments)},items:function(){return this._items},_dataSourceTotalCount:function(X){return!1===this.option(B)&&z(this)&&!X?this._totalCount:this.callBase()},itemsCount:function(X){return X||!1===this.option(B)?this.callBase():this._virtualScrollController.itemsCount()},load:function(X){return!1===this.option(B)||X?this.callBase(X):this._virtualScrollController.load()},isLoading:function(){return!1===this.option(B)?this._dataSource.isLoading():this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(X){X||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var X=this.callBase.apply(this,arguments);return!1===this.option(B)||(this.resetPagesCache(),q(this)),X},reload:function(){this._dataSource.pageIndex(this.pageIndex());var X=this._virtualScrollController;if(!1!==this.option(B)&&X){var M=new p.BH;return this.callBase.apply(this,arguments).done(function(oe){var fe=X.getDelayDeferred();fe?fe.done(M.resolve).fail(M.reject):M.resolve(oe)}).fail(M.reject),M}return this.callBase.apply(this,arguments)},refresh:function(X,M){if(!1!==this.option(B)){var oe=X.storeLoadOptions,fe=this._dataSource;M.reload?(this._virtualScrollController.reset(),fe.items().length=0,this._isLoaded=!1,q(this),this._isLoaded=!0,V(this)?(this.pageIndex(0),fe.pageIndex(0),oe.pageIndex=0,X.pageIndex=0,oe.skip=0):(fe.pageIndex(this.pageIndex()),fe.paginate()&&(X.pageIndex=this.pageIndex(),oe.skip=this.pageIndex()*this.pageSize()))):V(this)&&oe.skip&&this._totalCountCorrection<0&&(oe.skip+=this._totalCountCorrection)}return this.callBase.apply(this,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)},loadPageCount:function(X){if(!(0,v.$K)(X))return this._loadPageCount;this._loadPageCount=X},_handleDataLoading:function(X){var M=this.loadPageCount(),oe=this.pageSize(),fe=!1===this.option(B),Te=X.storeLoadOptions,Be=(0,v.$K)(Te.take);X.loadPageCount=M,!X.isCustomLoading&&fe&&Be&&M>1&&oe>0&&(Te.take=M*oe),this.callBase.apply(this,arguments)},_loadPageSize:function(){return this.callBase.apply(this,arguments)*this.loadPageCount()}},["beginPageIndex","endPageIndex","pageIndex"].forEach(function(X){Z[X]=function(){if(!1===this.option(B)){var M=this._dataSource;return M.pageIndex.apply(M,arguments)}var oe=this._virtualScrollController;return oe[X].apply(oe,arguments)}}),["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentItemSizes","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","loadIfNeed"].forEach(function(X){Z[X]=function(){var M=this._virtualScrollController;return M[X].apply(M,arguments)}}),Z),ee=function(){var q=function(Z,X){var M=Z.toArray().map(Te=>(0,c.Z)(Te).parent("."+X).get(0)).filter(Te=>Te);M.length&&(Z=(0,c.Z)(M));for(var oe=X===S?Z.length-1:Z.length,fe=0;fe<oe;fe++)Z.eq(fe).remove()};return{init:function(){var Z,X=this.getController("data");this.callBase(),X.pageChanged.add(M=>{var oe=this._scrollTop;this.scrollToPage(M??X.pageIndex()),!1===this.option(B)&&this._scrollTop===oe&&X.updateViewport()}),X.dataSourceChanged.add(()=>{!this._scrollTop&&this._scrollToCurrentPageOnResize()}),null===(Z=X.stateLoaded)||void 0===Z||Z.add(()=>{this._scrollToCurrentPageOnResize()}),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var Z=this.getController("data");if(Z.pageIndex()>0){var X=()=>{this.resizeCompleted.remove(X),this.scrollToPage(Z.pageIndex())};this.resizeCompleted.add(X)}},scrollToPage:function(Z){var oe,X=this._dataController,M=X?X.pageSize():0;if(z(this)||V(this)){var fe=X.getItemSize(),Te=X.getItemSizes(),Be=Z*M;for(var ze in oe=Be*fe,Te)ze<Be&&(oe+=Te[ze]-fe)}else oe=0;this.scrollTo({y:oe,x:this._scrollLeft})},renderDelayedTemplates:function(Z){this._waitAsyncTemplates(Z).done(()=>{this._updateContentPosition(!0)}),this.callBase.apply(this,arguments)},_renderCore:function(Z){var X=new Date,M=this.callBase.apply(this,arguments),oe=this._dataController._dataSource;if(oe&&Z){var fe=Z.items?Z.items.length:20,Te=this._dataController.viewportSize()||20;oe._renderTime=g.Z.isVirtualRowRendering(this)&&fe>0&&!1!==this.option(B)?(new Date-X)*Te/fe:new Date-X}return M},_getRowElements:function(Z){var X=this.callBase(Z);return X&&X.not("."+w)},_removeRowsElements:function(Z,X,M){var oe=this._getRowElements(Z).toArray();oe="append"===M?oe.slice(0,X):oe.slice(-X);var fe=this.getController("errorHandling");oe.map(Te=>{var Be=(0,c.Z)(Te);fe&&fe.removeErrorRow(Be.next()),Be.remove()})},_updateContent:function(Z,X){var M,oe=this._findContentElement(),fe=X&&X.changeType,Te=(0,p.BH)(),Be=oe.children().first();return"append"===fe||"prepend"===fe?this._waitAsyncTemplates(X).done(()=>{var ze=this._getBodies(Z);1===ze.length?this._getBodies(Be)["append"===fe?"append":"prepend"](ze.children()):ze["append"===fe?"appendTo":"prependTo"](Be),Z.remove(),M=this._getFreeSpaceRowElements(Be),q(M,S),X.removeCount&&this._removeRowsElements(Be,X.removeCount,fe),this._restoreErrorRow(Be),Te.resolve()}).fail(Te.reject):this.callBase.apply(this,arguments).done(()=>{"update"===fe&&this._restoreErrorRow(Be),Te.resolve()}).fail(Te.reject),Te.promise().done(()=>{this._updateBottomLoading()})},_addVirtualRow:function(Z,X,M,oe){if(oe){var fe=this._createEmptyRow(w,X,oe);fe=this._wrapRowIfNeed(Z,fe),this._appendEmptyRow(Z,fe,M)}},_updateContentItemSizes:function(){var Z=this._getRowHeights(),X=this._correctRowHeights(Z);this._dataController.setContentItemSizes(X)},_updateViewportSize:function(Z,X){(0,v.$K)(Z)||(Z=(0,o.zp)(this._hasHeight?this.element():(0,I.Jj)())),this._dataController.viewportHeight(Z,X)},_getRowHeights:function(){var Z,X,M=null===(Z=this.getController("editing"))||void 0===Z||null===(X=Z.isPopupEditMode)||void 0===X?void 0:X.call(Z),oe=this._getRowElements(this._tableElement).toArray();return M&&(oe=oe.filter(fe=>!(0,c.Z)(fe).hasClass("dx-row-inserted"))),oe.map(fe=>(0,d.l)(fe).height)},_correctRowHeights:function(Z){for(var X=this._dataController,M=X._dataSource,oe=[],fe=X.getVisibleRows(),Te=0,Be=!0,ze=-1,ae=0;ae<Z.length;ae++){var _e=fe[ae];(0,v.$K)(_e)&&(!1===this.option(B)?(ze>=0&&ze!==_e.loadIndex&&(oe.push(Te),Te=0),ze=_e.loadIndex):Y(_e,M)&&(Be?Be=!1:(oe.push(Te),Te=0)),Te+=Z[ae])}return Te>0&&oe.push(Te),oe},_updateContentPosition:function(Z){var X=this._dataController;if(X.viewportItemSize(this._rowHeight||20),z(this)||g.Z.isVirtualRowRendering(this)){Z||this._updateContentItemSizes();var oe=X.getContentOffset("begin"),fe=X.getContentOffset("end"),Te=this.getTableElements(),Be=Te.children("tbody").children("."+w);q(Be,w),Te.each((ze,ae)=>{var _e=ze>0,ye=this._isFixedTableRendering;this._isFixedTableRendering=_e,this._addVirtualRow((0,c.Z)(ae),_e,"top",oe),this._addVirtualRow((0,c.Z)(ae),_e,"bottom",fe),this._isFixedTableRendering=ye})}},_isTableLinesDisplaysCorrect:function(Z){return Z.find(".dx-column-lines").length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(Z,X){var M=Z.length===X.length;return M&&(0,a.S6)(Z,function(oe,fe){if(fe.style.width!==X[oe].style.width)return M=!1}),M},_getCellClasses:function(Z){var X=[],M=Z.cssClass,oe="expand"===Z.command;return M&&X.push(M),oe&&X.push(this.addWidgetPrefix("group-space")),X},_findBottomLoadPanel:function(Z){var X=Z||this.element(),M=X&&X.find("."+this.addWidgetPrefix(x));if(M&&M.length)return M},_updateBottomLoading:function(){var Z=z(this),X=V(this),M=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(Z||X),oe=this._findContentElement(),fe=this._findBottomLoadPanel(oe);M?fe||(0,c.Z)("<div>").addClass(this.addWidgetPrefix(x)).append(this._createComponent((0,c.Z)("<div>"),s.Z).$element()).appendTo(oe):fe&&fe.remove()},_handleScroll:function(Z){var X=!0===this.option(B),M=0===Z.scrollOffset.top,oe=this._scrollTop!==Z.scrollOffset.top;(oe||Z.forceUpdateScrollPosition)&&(this._hasHeight||!X&&M)&&this._rowHeight&&(this._scrollTop=Z.scrollOffset.top,z(this)&&!1===this.option(B)&&(this._updateContentItemSizes(),this._updateViewportSize(null,this._scrollTop)),this._dataController.setViewportPosition(Z.scrollOffset.top)),this.callBase.apply(this,arguments)},_needUpdateRowHeight:function(Z){return this.callBase.apply(this,arguments)||Z>0&&V(this)&&!g.Z.isVirtualRowRendering(this)},_updateRowHeight:function(){if(this.callBase.apply(this,arguments),this._rowHeight){this._updateContentPosition();var Z=(0,o.zp)(this._hasHeight?this.element():(0,I.Jj)()),X=this._dataController;!1===this.option(B)?(this._updateViewportSize(Z),X.updateViewport()):X.viewportSize(Math.ceil(Z/this._rowHeight))}},updateFreeSpaceRowHeight:function(){var Z=this.callBase.apply(this,arguments);return Z&&this._updateContentPosition(),Z},setLoading:function(Z,X){var M=this._dataController,oe=M.pageIndex()>0&&M.isLoaded()&&!!this._findBottomLoadPanel();!1===this.option(B)&&Z&&M.isViewportChanging()||(oe&&(Z=!1),this.callBase.call(this,Z,X))},_resizeCore:function(){var Z=this,X=Z.element();Z.callBase(),Z.component.$element()&&!Z._windowScroll&&(0,h.al)(X)&&(Z._windowScroll=(0,C.W)(X,function(M){!Z._hasHeight&&Z._rowHeight&&Z._dataController.setViewportPosition(M)},Z.component.$element()),Z.on("disposing",function(){Z._windowScroll.dispose()})),!1!==this.option(B)&&Z.loadIfNeed()},loadIfNeed:function(){var Z,X=this._dataController;null==X||null===(Z=X.loadIfNeed)||void 0===Z||Z.call(X)},setColumnWidths:function(Z){var M,X=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(M=X?(0,c.Z)(X.content()):this.element(),this.callBase(Z,M.children("."+this.addWidgetPrefix(E)).children(":not(."+this.addWidgetPrefix(b)+")")))},_restoreErrorRow:function(){if(!1===this.option(B)){var Z=this.getController("errorHandling");Z?.removeErrorRow()}this.callBase.apply(this,arguments)},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}(),G={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,prerenderedRowChunkSize:1,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard",loadTwoPagesOnStart:!1,legacyMode:!1,prerenderedRowCount:1}}},extenders:{dataSourceAdapter:j,controllers:{data:function(){var q={_refreshDataSource:function(){var Z=this.callBase.apply(this,arguments)||(new p.BH).resolve().promise();return Z.done(this.initVirtualRows.bind(this)),Z},_loadDataSource:function(){if(this._rowsScrollController&&U(this)){var Z,{loadPageCount:X}=(0,v.$K)(this._loadViewportParams)?this.getLoadPageParams():{};X>=1&&(null===(Z=this._dataSource)||void 0===Z||Z.loadPageCount(X))}return this.callBase.apply(this,arguments)},getRowPageSize:function(){var Z=this.option("scrolling.rowPageSize"),X=this.pageSize();return X&&X<Z?X:Z},reload:function(){var Z=this._rowsScrollController||this._dataSource,X=Z&&Z.getItemIndexByPosition(),M=this.callBase.apply(this,arguments);return M&&M.done(()=>{if(z(this)||g.Z.isVirtualRowRendering(this)){var oe=this.getRowIndexOffset(),fe=Math.floor(X)-oe,Te=this.component,Be=Te.getScrollable&&Te.getScrollable(),ze=this.dataSource().operationTypes().sorting;if(Be&&!ze&&fe>=0){var ae=Te.getRowElement(fe),_e=ae&&ae[0]&&(0,c.Z)(ae[0]),ye=_e&&_e.position().top;ye>(l.Z.mozilla||l.Z.chrome&&l.Z.version>=91?1:0)&&(ye=Math.round(ye+(0,o.zp)(_e)*(X%1)),Be.scrollTo({y:ye}))}}})},initVirtualRows:function(){var Z=g.Z.isVirtualRowRendering(this);if(this._allItems=null,this._loadViewportParams=null,"virtual"!==this.option("scrolling.mode")&&!0!==Z||!1===Z||!1!==this.option(B)&&!this.option("scrolling.rowPageSize"))return this._visibleItems=null,void(this._rowsScrollController=null);var X=!z(this)&&this.pageIndex()>=this.pageCount()?this.pageCount()-1:this.pageIndex();this._rowPageIndex=Math.ceil(X*this.pageSize()/this.getRowPageSize()),this._visibleItems=!1===this.option(B)?null:[],this._viewportChanging=!1,this._needUpdateViewportAfterLoading=!1,this._rowsScrollController||(this._rowsScrollController=new C.z(this.component,this._getRowsScrollDataOptions(),!0),this._rowsScrollController.positionChanged.add(()=>{var M;if(!1===this.option(B))return this._viewportChanging=!0,this.loadViewport(),void(this._viewportChanging=!1);null===(M=this._dataSource)||void 0===M||M.setViewportItemIndex(this._rowsScrollController.getViewportItemIndex())})),!1===this.option(B)&&this._updateLoadViewportParams(),this.isLoaded()&&!1!==this.option(B)&&this._rowsScrollController.load()},isViewportChanging:function(){return this._viewportChanging},_getRowsScrollDataOptions:function(){var Z=this,X=function(M){return Y(M,Z._dataSource)};return{pageSize:function(){return Z.getRowPageSize()},loadedOffset:function(){var M;return z(Z)&&(null===(M=Z._dataSource)||void 0===M?void 0:M.lastLoadOptions().skip)||0},loadedItemCount:function(){return Z._itemCount},totalItemsCount:function(){return U(Z)?Z.totalItemsCount():!1===Z.option(B)?Z._itemCount:Z._items.filter(X).length},hasKnownLastPage:function(){return!1!==Z.option(B)||Z.hasKnownLastPage()},pageIndex:function(M){return void 0!==M&&(Z._rowPageIndex=M),Z._rowPageIndex},isLoading:function(){return Z.isLoading()},pageCount:function(){return Math.ceil(this.totalItemsCount()/this.pageSize())||1},load:function(){Z._rowsScrollController.pageIndex()>=this.pageCount()&&(Z._rowPageIndex=this.pageCount()-1,Z._rowsScrollController.pageIndex(Z._rowPageIndex)),(this.items().length||!this.totalItemsCount())&&Z._rowsScrollController.handleDataChanged(M=>{(M=M||{}).changeType=M.changeType||"refresh",M.items=M.items||Z._visibleItems,Z._visibleItems.forEach((oe,fe)=>{oe.rowIndex=fe}),Z._fireChanged(M)})},updateLoading:function(){},itemsCount:function(){return this.items(!0).length},correctCount:function(M,oe,fe){return K(M,oe,fe,(Te,Be,ze)=>Te.isNewRow?Be&&!ze:Be&&ze?!Te.isNewRow:X(Te))},items:function(M){var oe=Z._items;if(Z.option(B)){var Te=Z.dataSource()?.virtualItemsCount(),Be=Te?Te.begin:0,ze=Z.getRowPageSize(),ae=Z._rowPageIndex*ze-Be,_e=ze;if(ae<0)return[];ae&&(ae=this.correctCount(oe,ae),oe=oe.slice(ae)),_e&&(_e=this.correctCount(oe,_e),oe=oe.slice(0,_e))}return M?oe.filter(X):oe},viewportItems:function(M){return M&&!1!==Z.option(B)&&(Z._visibleItems=M),Z._visibleItems},onChanged:function(){},changingDuration:function(M){var oe=Z.dataSource();return null!=oe&&oe.isLoading()&&!1!==Z.option(B)?300:oe?._renderTime||0}}},_updateItemsCore:function(Z){var X=this.getRowIndexDelta();if(this.callBase.apply(this,arguments),!1===this.option(B)&&g.Z.isVirtualRowRendering(this))"update"===Z.changeType&&0===Z.rowIndices.length&&Z.cancelEmptyChanges&&(Z.cancel=!0);else{var M=this._rowsScrollController;if(M){var oe=this._visibleItems,fe="refresh"===Z.changeType||Z.isLiveUpdate;if("append"===Z.changeType&&Z.items&&!Z.items.length)return;fe||"append"===Z.changeType||"prepend"===Z.changeType?(Z.cancel=!0,fe&&M.reset(!0),M.load()):("update"===Z.changeType?Z.rowIndices.forEach((Te,Be)=>{var ze=Z.changeTypes[Be],ae=Z.items[Be];"update"===ze?oe[Te]=ae:"insert"===ze?oe.splice(Te,0,ae):"remove"===ze&&oe.splice(Te,1)}):(oe.forEach((Te,Be)=>{oe[Be]=this._items[Be+X]||oe[Be]}),Z.items=oe),J(oe))}}},_updateLoadViewportParams:function(){var Z=this._rowsScrollController.getViewportParams(),X=this.pageSize();if(Z&&!U(this)&&X>0){var M=this.pageIndex()*X;Z.skip+=M}this._loadViewportParams=Z},_processItems:function(Z){var X=this.callBase.apply(this,arguments);if(!1===this.option(B)){var M,Te,Be,ze,oe=this._dataSource,fe=null!==(M=oe?.lastLoadOptions().skip)&&void 0!==M?M:0,ae=!1;X.forEach(_e=>{var ye=_e.rowType,ne=Y(_e,oe),ce="group"===ye&&(Te||ne||"group"!==Be&&fe>0),le="data"===ye&&ne&&(Te||"group"!==Be);!_e.isNewRow&&(0,v.$K)(Te)&&(ce||le)&&(!ze||ae)&&fe++,(ce||le)&&(ae=!0),_e.loadIndex=fe,Te=ne,Be=ye,ze=_e.isNewRow})}return X},_afterProcessItems:function(Z){if(this._itemCount=Z.filter(Te=>Y(Te,this._dataSource)).length,(0,v.$K)(this._loadViewportParams)){this._updateLoadViewportParams();var X=Z;if(this._allItems=Z,Z.length){var{skipForCurrentPage:M}=this.getLoadPageParams(!0),oe=Z[0].loadIndex+M,fe=this._loadViewportParams.take;X=Z.filter(Te=>(Te.loadIndex>=oe||Te.isNewRow&&Te.loadIndex>=oe-1)&&(Te.loadIndex<oe+fe||Te.isNewRow&&Te.loadIndex===oe&&0===fe))}return X}return this.callBase.apply(this,arguments)},_applyChange:function(Z){var X=this,M=Z.items,oe=Z.changeType,fe=Z.removeCount;switch(fe&&(fe=K(X._items,fe,"prepend"===oe,function(Be,ze){return"data"===Be.rowType&&!Be.isNewRow||"group"===Be.rowType&&(X._dataSource.isGroupItemCountable(Be.data)||ze)}),Z.removeCount=fe),oe){case"prepend":X._items.unshift.apply(X._items,M),fe&&X._items.splice(-fe);break;case"append":X._items.push.apply(X._items,M),fe&&X._items.splice(0,fe);break;default:X.callBase(Z)}},items:function(Z){return Z?this._allItems||this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var Z=0;if(this.option(B)){var X=this._visibleItems;X&&X[0]&&(Z=this._items.indexOf(X[0]))}return Z<0?0:Z},getRowIndexOffset:function(Z){var X=0,M=this.dataSource(),oe=this._rowsScrollController,fe=!1===this.option(B),Te=U(this);if(oe&&!Z)if(fe&&(0,v.$K)(this._loadViewportParams)){var{skipForCurrentPage:Be,pageIndex:ze}=this.getLoadPageParams(!0),ae=this.items(!0);if(X=Te?ze*this.pageSize():0,ae.length){var _e=ae[0].loadIndex;X+=ae.filter(ne=>ne.loadIndex<_e+Be).length}}else X=oe.beginPageIndex()*oe.pageSize();else if(Te&&fe&&M){var ye;X=null!==(ye=M.lastLoadOptions().skip)&&void 0!==ye?ye:0}else z(this)&&M&&(X=M.beginPageIndex()*M.pageSize());return X},getDataIndex:function(Z){return!1===this.option(B)?this.getRowIndexOffset(!0):this.callBase.apply(this,arguments)},viewportSize:function(){var Z=this._rowsScrollController,X=this._dataSource,M=Z?.viewportSize.apply(Z,arguments);return!1===this.option(B)?M:X?.viewportSize.apply(X,arguments)},viewportHeight:function(Z,X){var M;null===(M=this._rowsScrollController)||void 0===M||M.viewportHeight(Z,X)},viewportItemSize:function(){var Z=this._rowsScrollController,X=this._dataSource,M=Z?.viewportItemSize.apply(Z,arguments);return!1===this.option(B)?M:X?.viewportItemSize.apply(X,arguments)},setViewportPosition:function(){var Z=this._rowsScrollController,X=this._dataSource;this._isPaging=!1,Z?Z.setViewportPosition.apply(Z,arguments):X?.setViewportPosition.apply(X,arguments)},setContentItemSizes:function(Z){var M=this._dataSource,oe=this._rowsScrollController?.setContentItemSizes(Z);return!1===this.option(B)?oe:M?.setContentItemSizes(Z)},getPreloadedRowCount:function(){var Z=this.option("scrolling.preloadedRowCount"),X=this.option("scrolling.preloadEnabled");if((0,v.$K)(Z))return Z;var M=this.viewportSize();return X?2*M:M},getLoadPageParams:function(Z){var X,M,oe=this.pageSize(),fe=this._loadViewportParams,Te=null===(X=this._dataSource)||void 0===X?void 0:X.lastLoadOptions(),Be=Te?.pageIndex||0,ze=Te?.take||0,ae=this._rowsScrollController.isScrollingBack(),_e=ae?this.getPreloadedRowCount():0,ye=ae?0:this.getPreloadedRowCount(),ne=(null===(M=this._dataSource)||void 0===M?void 0:M.totalCountCorrection())||0,ce=Math.max(0,fe.skip-_e),le=Z?Be:Math.floor(oe?ce/oe:0),Se=fe.skip-le*oe,ie=Math.ceil(oe?(Z?ze:fe.take+Se+ye-ne)/oe:0);return{pageIndex:le,loadPageCount:Math.max(1,ie),skipForCurrentPage:Math.max(0,Se)}},_updateVisiblePageIndex:function(Z){if(this._rowsScrollController){if((0,v.$K)(Z))return this._silentOption(W,Z),void this.pageChanged.fire();var X=this._rowsScrollController.getViewportItemIndex(),M=Math.floor(X/this.pageSize());this.pageIndex()!==M&&(this._silentOption(W,M),this.updateItems({changeType:"pageIndex"}))}},_getChangedLoadParams:function(){var Z=this.getLoadPageParams(!0),{pageIndex:X,loadPageCount:M}=this.getLoadPageParams(),oe=this._pageIndexIsValid(X),fe=null;return!this._isLoading&&oe&&(X!==Z.pageIndex||M!==Z.loadPageCount)&&(fe={pageIndex:X,loadPageCount:M}),fe},_pageIndexIsValid:function(Z){var X=!0;return(V(this)&&this.hasKnownLastPage()||z(this))&&(X=Z*this.pageSize()<this.totalItemsCount()),X},_loadItems:function(Z,X){var M,oe,fe=U(this),Te=this._dataSource,Be=this._getChangedLoadParams(),ze=null!==(M=Te?.loadPageCount())&&void 0!==M?M:0,ae=this.pageSize()*ze,_e=null!==(oe=Te?.pageIndex())&&void 0!==oe?oe:0,ye=Be?.pageIndex===_e,ne=V(this)&&this.totalItemsCount()<ae,ce="repaint"===this.option("editing.refreshMode"),pe=!1;if(!Te||fe&&Z&&(ce&&X||Be?.pageIndex>_e||ye&&ne))return pe;if(fe&&this._isLoading&&(this._needUpdateViewportAfterLoading=!0),fe&&Be){pe=!0,Te.pageIndex(Be.pageIndex),Te.loadPageCount(Be.loadPageCount),this._repaintChangesOnly=!0,this._needUpdateDimensions=!0;var Se=this._viewportChanging;this.load().always(()=>{this._repaintChangesOnly=void 0,this._needUpdateDimensions=void 0}).done(()=>{var re=this.pageCount()>0&&this.pageIndex()===this.pageCount()-1;(Se||re)&&this._updateVisiblePageIndex(),this._needUpdateViewportAfterLoading&&(this._needUpdateViewportAfterLoading=!1,this.loadViewport({checkLoadedParamsOnly:!0}))})}return pe},loadViewport:function(Z){var{checkLoadedParamsOnly:X,checkLoading:M,viewportIsNotFilled:oe}=Z??{};(U(this)||g.Z.isVirtualRowRendering(this))&&(this._updateLoadViewportParams(),!this._loadItems(M,!oe)&&(!this._isLoading||!M)&&!X&&this.updateItems({repaintChangesOnly:!0,needUpdateDimensions:!0,useProcessedItemsCache:!0,cancelEmptyChanges:!0}))},updateViewport:function(){var Z,X,M=this.viewportSize(),oe=this.items().length,fe=M>oe,Te=null!==(Z=null===(X=this._loadViewportParams)||void 0===X?void 0:X.take)&&void 0!==Z?Z:0,ze=this._rowsScrollController?.getViewportParams().take;(fe||Te<ze)&&!this._isPaging&&oe&&this.loadViewport({checkLoading:!0,viewportIsNotFilled:fe})},loadIfNeed:function(){if(!1!==this.option(B)){var Z=this._rowsScrollController;Z&&Z.loadIfNeed();var X=this._dataSource;return X&&X.loadIfNeed()}},getItemSize:function(){var Z=this._rowsScrollController;if(Z)return Z.getItemSize.apply(Z,arguments);var X=this._dataSource;return X&&X.getItemSize.apply(X,arguments)},getItemSizes:function(){var Z=this._rowsScrollController;if(Z)return Z.getItemSizes.apply(Z,arguments);var X=this._dataSource;return X&&X.getItemSizes.apply(X,arguments)},getContentOffset:function(){var Z=this._rowsScrollController;if(Z)return Z.getContentOffset.apply(Z,arguments);var X=this._dataSource;return X&&X.getContentOffset.apply(X,arguments)},refresh:function(Z){var X=this._dataSource;return X&&Z&&Z.load&&V(this)&&X.resetCurrentTotalCount(),this.callBase.apply(this,arguments)},dispose:function(){var Z=this._rowsScrollController;Z&&Z.dispose(),this.callBase.apply(this,arguments)},topItemIndex:function(){var Z;return null===(Z=this._loadViewportParams)||void 0===Z?void 0:Z.skip},bottomItemIndex:function(){var Z=this._loadViewportParams;return Z&&Z.skip+Z.take},virtualItemsCount:function(){var Z=this._rowsScrollController;if(Z)return Z.virtualItemsCount.apply(Z,arguments);var X=this._dataSource;return X?.virtualItemsCount.apply(X,arguments)},pageIndex:function(Z){var oe,X=U(this),M=this._rowsScrollController;return!1===this.option(B)&&X&&M&&void 0===Z?null!==(oe=this.option(W))&&void 0!==oe?oe:0:this.callBase.apply(this,arguments)},_fireChanged:function(Z){this.callBase.apply(this,arguments);var{operationTypes:X}=Z;if(!1===this.option(B)&&U(this)&&X){var{fullReload:M,pageIndex:oe}=X;Z.isDataChanged&&!M&&oe&&this._updateVisiblePageIndex(this._dataSource.pageIndex())}},_getPagingOptionValue:function(Z){var X=this.callBase.apply(this,arguments);return!1===this.option(B)&&U(this)&&(X=this[Z]()),X},isEmpty:function(){return!1===this.option(B)?!this.items(!0).length:this.callBase(this,arguments)},isLastPageLoaded:function(){var Z=!1;if(!1===this.option(B)&&U(this)){var{pageIndex:X,loadPageCount:M}=this.getLoadPageParams(!0),oe=this.pageCount();Z=X+M>=oe}else Z=this.callBase.apply(this,arguments);return Z},reset:function(){this._itemCount=0,this._allItems=null,this.callBase.apply(this,arguments)},_applyFilter:function(){var Z;null===(Z=this._dataSource)||void 0===Z||Z.loadPageCount(1),this.callBase.apply(this,arguments)}};return g.Z.proxyMethod(q,"getVirtualContentSize"),g.Z.proxyMethod(q,"setViewportItemIndex"),q}(),resizing:{_updateMasterDataGridCore:function(q){return(0,p.gx)(this.callBase.apply(this,arguments)).done(Z=>{var X=z(q)&&!1===q.option(B);!Z&&X&&q.getScrollable()&&q.updateDimensions()})},resize:function(){var X,q=this,Z=q.callBase;if(z(q)||g.Z.isVirtualRowRendering(q)){clearTimeout(q._resizeTimeout);var M=new Date-q._lastTime,oe=q.option("scrolling.updateTimeout");q._lastTime&&M<oe?(X=new p.BH,q._resizeTimeout=setTimeout(function(){Z.apply(q).done(X.resolve).fail(X.reject),q._lastTime=new Date},oe),q._lastTime=new Date):(X=Z.apply(q),q._dataController.isLoaded()&&(q._lastTime=new Date))}else X=Z.apply(q);return X},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:ee}}}},7954:(Rn,he,u)=>{"use strict";u.d(he,{z:()=>Y,W:()=>K});var o=u(9904),c=u(4514),I=u(913),C=u(4722),g=u(5791),a=u(2718),p=u(5031),s=u(4270),l=u(5365),d=u(1828),h="scrolling.legacyMode",v=J=>J.option("scrolling.loadTwoPagesOnStart")||J._controller.isVirtual()||J._controller.getViewportItemIndex()>0,x=J=>J._cache.length?J._cache[0].pageIndex:-1,b=J=>J._cache.length?J._cache[J._cache.length-1].pageIndex:-1,y=(J,j,ee)=>{J._isChangedFiring=!0,j(ee),J._isChangedFiring=!1},E=(J,j,ee)=>{if(J._isDelayChanged)return J._isDelayChanged=!1,y(J,j,ee),!0},O=(J,j)=>{var ee=J.option("scrolling.preloadEnabled"),G=(J=>{var j=J._dataOptions.pageSize();if(J.option("scrolling.preventPreload"))return 0;var G=J._controller.viewportSize();if(J._controller.isVirtualMode()&&J.option("scrolling.removeInvisiblePages")){G=0;for(var q=J._controller.viewportSize()*J._controller.viewportItemSize(),Z=J._controller.getContentOffset(),X=J._controller.getViewportPosition(),M=J._controller.virtualItemsCount(),oe=J._dataOptions.totalItemsCount(),fe=M.begin;fe<oe&&!(Z>=X+q);fe++)(Z+=J._controller.getItemSizes()[fe]||J._controller.viewportItemSize())>=X&&G++}return j&&G>0?Math.ceil(G/j):1})(J),q=J._controller.isAppendMode();return G&&(j?G=ee?1:0:(ee&&G++,(q||!v(J))&&G--)),G},k=(J,j,ee,G,q)=>{var Z=J._dataOptions,X=Z.items().slice(),M=(0,d.Kn)(ee)?ee:void 0,oe="prepend"===ee,fe=Z.viewportItems();ee&&(0,d.HD)(ee)&&!J._isDelayChanged&&(M={changeType:ee,items:X},q&&(M.removeCount=q.itemsCount,M.removeCount&&Z.correctCount&&(M.removeCount=Z.correctCount(fe,M.removeCount,oe))));var Te=q?q.itemsLength:0;Te&&Z.correctCount&&(Te=Z.correctCount(fe,Te,oe)),"append"===ee?(fe.push.apply(fe,X),q&&fe.splice(0,Te)):oe?(fe.unshift.apply(fe,X),q&&fe.splice(-Te)):J._dataOptions.viewportItems(X),Z.updateLoading(),J._lastPageIndex=J.pageIndex(),J._isDelayChanged=G,G||y(J,j,M)};class R{constructor(j,ee){this._controller=j,this._dataOptions=ee,this._pageIndex=this._lastPageIndex=ee.pageIndex(),this._cache=[],this._loadingPageIndexes={}}option(){return this._controller.option.apply(this._controller,arguments)}viewportItemIndexChanged(j){var M,ee=this._dataOptions.pageSize(),G=this._dataOptions.pageCount(),q=this._controller.isVirtualMode(),Z=this._controller.isAppendMode(),X=this._dataOptions.totalItemsCount();if(ee&&(q||Z)&&X>=0){var oe=this._controller.viewportSize();if(oe&&j+oe>=X&&!this._controller.isVirtual())if(this._dataOptions.hasKnownLastPage()){var fe=X%ee;(M=G-1)>0&&fe>0&&fe<oe&&M--}else M=G;else{M=Math.floor(j/ee);var Te=G-1;M=Math.max(M,0),M=Math.min(M,Te)}return this.pageIndex(M),this.load()}}pageIndex(j){var ee=this._controller.isVirtualMode(),G=this._controller.isAppendMode();return!1!==this.option(h)&&(ee||G)?(void 0!==j&&(this._pageIndex=j),this._pageIndex):this._dataOptions.pageIndex(j)}beginPageIndex(j){var ee=x(this);return ee<0&&(ee=void 0!==j?j:this.pageIndex()),ee}endPageIndex(){var j=b(this);return j>0?j:this._lastPageIndex}pageSize(){return this._dataOptions.pageSize()}load(){var ee,j=this._dataOptions,G=this._controller.isVirtualMode(),q=this._controller.isAppendMode();if(!1!==this.option(h)&&(G||q)){var Z=(J=>{var j=-1,ee=x(J),G=J._dataOptions;return ee<0?j=J._pageIndex:J._cache[J._pageIndex-ee]?ee>=0&&J._controller.viewportSize()>=0&&(ee>0&&(b(J)+1===G.pageCount()&&J._cache.length<O(J)+1||J._pageIndex===ee&&O(J,!0))&&(j=ee-1),j<0&&ee+J._cache.length<=J._pageIndex+O(J)&&(j=ee+J._cache.length)):j=J._pageIndex,J._loadingPageIndexes[j]&&(j=-1),j})(this);if(Z>=0){var X=((J,j)=>{var ee=J._dataOptions;if(j===J.pageIndex()||!ee.isLoading()&&j<ee.pageCount()||!ee.hasKnownLastPage()&&j===ee.pageCount())return ee.pageIndex(j),J._loadingPageIndexes[j]=!0,(0,s.gx)(ee.load()).always(()=>{J._loadingPageIndexes[j]=!1})})(this,Z);X&&(ee=new s.BH,X.done(()=>{var M=this._delayDeferred;M?M.done(ee.resolve).fail(ee.reject):ee.resolve()}).fail(ee.reject),j.updateLoading())}}else ee=j.load();return!ee&&this._lastPageIndex!==this.pageIndex()&&this._dataOptions.onChanged({changeType:"pageIndex"}),ee||(new s.BH).resolve()}loadIfNeed(){var j=this._controller.isVirtualMode(),ee=this._controller.isAppendMode();if((j||ee)&&!this._dataOptions.isLoading()&&(!this._isChangedFiring||this._controller.isVirtual())){var G=this._controller.getViewportPosition();G>0?this._controller._setViewportPositionCore(G):this.load()}}handleDataChanged(j,ee){var Z,X,G=this._dataOptions,q=this._cache.length,M=this._controller.isVirtualMode(),oe=this._controller.isAppendMode();if(ee&&ee.changes)y(this,j,ee);else if(!1!==this.option(h)&&(M||oe)){var fe=x(this);if(fe>=0&&(M&&fe+this._cache.length!==G.pageIndex()&&fe-1!==G.pageIndex()&&(q=0,this._cache=[]),oe))if(0===G.pageIndex())this._cache=[];else if(G.pageIndex()<b(this))return void y(this,j,{changeType:"append",items:[]});var Be,Te={pageIndex:G.pageIndex(),itemsLength:G.items(!0).length,itemsCount:this.itemsCount(!0)};this.option("scrolling.removeInvisiblePages")&&M?X=this._cache.length>Math.max(O(this)+(this.option("scrolling.preloadEnabled")?1:0),2):E(this,j,{isDelayed:!0}),fe===G.pageIndex()+1?(X&&(Be=this._cache.pop()),Z="prepend",this._cache.unshift(Te)):(X&&(Be=this._cache.shift()),Z="append",this._cache.push(Te));var ze=M&&0===q&&v(this);k(this,j,this._cache.length>1?Z:void 0,ze,Be),this._delayDeferred=this.load().done(()=>{E(this,j)&&this.load()})}else k(this,j,ee)}getDelayDeferred(){return this._delayDeferred}itemsCount(j){var ee=0,G=this._controller.isVirtualMode();return!j&&G?this._cache.forEach(q=>{ee+=q.itemsCount}):ee=this._dataOptions.itemsCount(),ee}virtualItemsCount(){var j=x(this);j<0&&(j=this._dataOptions.pageIndex());var ee=j*this._dataOptions.pageSize(),G=this._cache.length*this._dataOptions.pageSize();return{begin:ee,end:Math.max(0,this._dataOptions.totalItemsCount()-G-ee)}}reset(){this._loadingPageIndexes={},this._cache=[]}}var P=u(2879),W="virtual",z="scrolling.legacyMode",V=J=>J.option("scrolling.mode")===W||J._isVirtual;function K(J,j,ee){var G,q=[],Z=[],X=[];function M(Be){var ze=Be.element?Be.$element():Be,ae=g.Z.offset(ze);return ae?Be.scrollTop()-(ae.top-J.offset().top):J.offset().top}var Be,ze,oe={on:function(Be,ze,ae){Be.on("scroll",ae)},off:function(Be,ze,ae){Be.off("scroll",ae)}};function fe(Be){var ce,ze="#document"===Be.get(0).nodeName,ae=Be.get(0).nodeType===(0,c.Jj)().Node.ELEMENT_NODE,_e=Be.data("dxScrollable"),ye=oe;if(_e||(_e=ze&&(0,o.Z)((0,c.Jj)())||ae&&"auto"===Be.css("overflowY")&&Be,ye=I.Z,_e)){var ne=(ce=_e,function(){var le=ce.scrollTop()-M(ce);j(le=le>0?le:0)});ye.on(_e,"scroll",ne),Z.push(function(ce){var le=M(_e);ce-le>=0&&_e[_e.scrollTo?"scrollTo":"scrollTop"](ce+le)}),q.push(_e),X.push(function(){ye.off(_e,"scroll",ne)})}}for(G=(ee=ee||J).parent();G.length;void 0,G=(0,o.Z)(null!==(ze=(Be=G).get(0).parentNode)&&void 0!==ze?ze:Be.get(0).host))fe(G);return{scrollTo:function(Be){(0,a.S6)(Z,function(ze,ae){ae(Be)})},dispose:function(){(0,a.S6)(X,function(Be,ze){ze()})}}}var J,Y=p.Z.inherit((J={ctor:function(j,ee,G){this._dataOptions=ee,this.component=j,this._viewportSize=!1===j.option(z)?15:0,this._viewportItemSize=20,this._viewportItemIndex=0,this._position=0,this._isScrollingBack=!1,this._contentSize=0,this._itemSizes={},this._sizeRatio=1,this._isVirtual=G,this.positionChanged=(0,l.Z)(),this._dataLoader=new R(this,this._dataOptions)},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},isVirtual:function(){return this._isVirtual},virtualItemsCount:function(){if(V(this)){var j=this._dataOptions,ee=j.totalItemsCount();if(!1===this.option(z)&&-1!==ee){var G=this.getViewportParams(),q=j.loadedOffset(),Z=j.loadedItemCount(),X=Math.max(G.skip,q),M=Math.min(G.take,Z),oe=Math.max(ee-(X+M),0);return{begin:X,end:oe}}return this._dataLoader.virtualItemsCount.apply(this._dataLoader,arguments)}},getScrollingTimeout:function(){var j=this.option("scrolling.renderAsync"),ee=0;if((0,d.$K)(j)){if(j){var G;ee=null!==(G=this.option("scrolling.timeout"))&&void 0!==G?G:0}}else(ee=Math.min(this.option("scrolling.timeout")||0,this._dataOptions.changingDuration()))<this.option("scrolling.renderingThreshold")&&(ee=this.option("scrolling.minTimeout")||0);return ee},setViewportPosition:function(j){var ee=new s.BH,G=this.getScrollingTimeout();return clearTimeout(this._scrollTimeoutID),G>0?this._scrollTimeoutID=setTimeout(()=>{this._setViewportPositionCore(j),ee.resolve()},G):(this._setViewportPositionCore(j),ee.resolve()),ee.promise()},getViewportPosition:function(){return this._position},getItemIndexByPosition:function(j,ee,G){var q;j=null!==(q=j)&&void 0!==q?q:this._position;for(var Z=this.getItemSize(),X=0,M=0,oe=Object.keys(this._itemSizes).concat(-1),fe=0;fe<oe.length&&X<j;fe++){var Te=parseInt(oe[fe]),Be=(j-X)/Z;if(Te<0||M+Be<Te){M+=Be,this._sizeRatio<1&&(0,d.$K)(ee)&&(M=ee+G/this._viewportItemSize);break}X+=(Be=Te-M)*Z,M+=Be;var ze=this._itemSizes[Te];M+=(X+=ze)<j?1:(j-X+ze)/ze}return Math.round(50*M)/50},isScrollingBack:function(){return this._isScrollingBack},_setViewportPositionCore:function(j){var ee=this._position||0;this._position=j,ee!==this._position&&(this._isScrollingBack=this._position<ee);var G=this.getItemIndexByPosition(),q=this.setViewportItemIndex(G);return this.positionChanged.fire(),q},setContentItemSizes:function(j){var ee=this.virtualItemsCount();if(this._contentSize=j.reduce((Z,X)=>Z+X,0),ee){j.forEach((Z,X)=>{this._itemSizes[ee.begin+X]=Z});var G=(ee.begin+ee.end+this.itemsCount())*this._viewportItemSize,q=P.Z.getContentHeightLimit(C.Z);this._sizeRatio=G>q?q/G:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(j,ee){var G=this.virtualItemsCount(),q=j;if(!G)return 0;var Z=0,X=this._dataOptions.totalItemsCount();return Object.keys(this._itemSizes).forEach(M=>{q&&(ee?M>=X-j:M<j)&&(Z+=this._itemSizes[M],q--)}),Math.floor(Z+q*this._viewportItemSize*this._sizeRatio)},getContentOffset:function(j){var ee="end"===j,G=this.virtualItemsCount();return G?this.getItemOffset(ee?G.end:G.begin,ee):0},getVirtualContentSize:function(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(j){if(this._viewportItemIndex=j,!1!==this.option(z))return this._dataLoader.viewportItemIndexChanged.apply(this._dataLoader,arguments)},viewportItemSize:function(j){return void 0!==j&&(this._viewportItemSize=j),this._viewportItemSize},viewportSize:function(j){return void 0!==j&&(this._viewportSize=j),this._viewportSize},viewportHeight:function(j,ee){var G=ee??this._position,q=this.getItemIndexByPosition(G),Z=this.getItemIndexByPosition(G+j,q,j);this.viewportSize(Math.ceil(Z-q)),!(0,d.$K)(ee)&&this._viewportItemIndex!==q&&this._setViewportPositionCore(G)},reset:function(j){this._dataLoader.reset(),j||(this._itemSizes={})},subscribeToWindowScrollEvents:function(j){this._windowScroll=this._windowScroll||K(j,ee=>{this.viewportItemSize()&&this.setViewportPosition(ee)})},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(j){this._windowScroll&&this._windowScroll.scrollTo(j)},isVirtualMode:function(){return V(this)},isAppendMode:function(){return(J=>"infinite"===J.option("scrolling.mode")&&!J._isVirtual)(this)},getViewportParams:function(){var j,ee=this.option("scrolling.mode")===W,G=this._dataOptions.totalItemsCount(),Z=this._dataOptions.hasKnownLastPage()&&this._viewportItemIndex>G?G:this._viewportItemIndex,X=this._viewportSize+Z,M=this.option("scrolling.prerenderedRowChunkSize")||1,oe=this.isScrollingBack(),fe=null!==(j=this.option("scrolling.prerenderedRowCount"))&&void 0!==j?j:1,Be=oe?0:fe,ze=Math.floor(Math.max(0,Z-(oe?fe:0))/M)*M,ae=Math.ceil((X+Be-ze)/M)*M;if(ee){var _e=Math.max(0,G-ze);ae=Math.min(ae,_e)}return{skip:ze,take:ae}},itemsCount:function(){return this.option(z)?this._dataLoader.itemsCount.apply(this._dataLoader,arguments):this._dataOptions.itemsCount()}},["pageIndex","beginPageIndex","endPageIndex","pageSize","load","loadIfNeed","handleDataChanged","getDelayDeferred"].forEach(function(j){J[j]=function(){return this._dataLoader[j].apply(this._dataLoader,arguments)}}),J))},355:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>z});var o=u(9904),c=u(6738),I=u(5873),C=u(2718),g=u(2941),a=u(4328),p=u(5031),s=u(7674),l=u(1828),d=u(8159),h=u(2589),v=u(3447),x=u(7316),b=u(3382);const E=p.Z.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(V,U){var K=this;(0,C.S6)(V,function(Y,J){var j=(0,l.$K)(U)?U:K._getParentId(J),ee=K._convertItemToNode(J,j);K._dataStructure.push(ee),K._checkForDuplicateId(ee.internalFields.key),K._indexByKey[ee.internalFields.key]=K._dataStructure.length-1,K._itemHasChildren(J)&&K._convertItemsToNodes(K._dataAccessors.getters.items(J),ee.internalFields.key)})},_checkForDuplicateId:function(V){if((0,l.$K)(this._indexByKey[V]))throw d.Z.Error("E1040",V)},_getParentId:function(V){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(V):void 0},_itemHasChildren:function(V){if("plain"!==this._dataType){var U=this._dataAccessors.getters.items(V);return U&&U.length}},_getUniqueKey:function(V){var U=this._dataAccessors.getters.key,K=U(V);return U&&(K||0===K)&&(0,l.pt)(K)?K:this.getItemsCount()},_convertItemToNode:function(V,U){this._itemsCount++,!1!==V.visible&&this._visibleItemsCount++;var K={internalFields:{disabled:this._dataAccessors.getters.disabled(V,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(V,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(V,{defaultValue:!1}),key:this._getUniqueKey(V),parentKey:(0,l.$K)(U)?U:this._rootValue,item:this._makeObjectFromPrimitive(V),childrenKeys:[]}};return(0,I.l)(K,V),delete K.items,K},setChildrenKeys:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){if(K.internalFields.parentKey!==V._rootValue){var Y=V.getParentNode(K);Y&&Y.internalFields.childrenKeys.push(K.internalFields.key)}})},_makeObjectFromPrimitive:function(V){if((0,l.pt)(V)){var U=V;this._dataAccessors.setters.key(V={},U)}return V},_convertToPublicNode:function(V,U){if(!V)return null;var K={text:this._dataAccessors.getters.display(V),key:V.internalFields.key,selected:V.internalFields.selected,expanded:V.internalFields.expanded,disabled:V.internalFields.disabled,parent:U||null,itemData:V.internalFields.item,children:[],items:[]};return K.parent&&(K.parent.children.push(K),K.parent.items.push(K)),K},convertToPublicNodes:function(V,U){if(!V.length)return[];var K=this,Y=[];return(0,C.S6)(V,function(J,j){j=(0,l.pt)(j)?K._getByKey(j):j;var ee=K._convertToPublicNode(j,U);ee.children=K.convertToPublicNodes(j.internalFields.childrenKeys,ee),Y.push(ee),j.internalFields.publicNode=ee}),Y},setDataAccessors:function(V){this._dataAccessors=V},_getByKey:function(V){return this._dataStructure[this.getIndexByKey(V)]||null},getParentNode:function(V){return this._getByKey(V.internalFields.parentKey)},getByKey:function(V,U){if(null==U)return null;var ee,K=null,Y=this;return ee=U,(0,C.S6)(V,function(G,q){if((q.internalFields&&q.internalFields.key||Y._dataAccessors.getters.key(q)).toString()===ee.toString())return K=q,!1}),K},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var V=this;this._indexByKey={},(0,C.S6)(this._dataStructure,function(U,K){V._checkForDuplicateId(K.internalFields.key),V._indexByKey[K.internalFields.key]=U})},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},(0,C.S6)(this._dataStructure,function(V,U){U.internalFields.childrenKeys=[]})},getIndexByKey:function(V){return this._indexByKey[V]},createPlainStructure:function(V,U,K){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=U,this._dataType=K,this._indexByKey={},this._convertItemsToNodes(V),this.setChildrenKeys(),this._dataStructure}});var S="expanded",O="selected";h.Z.setEditorClass(v.Z);const k=p.Z.inherit({ctor:function(V){this.options={},(0,I.l)(this.options,this._defaultOptions(),V),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(V,U){this.options[V]=U,"recursiveSelection"===V&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new E,onNodeChanged:s.ZT,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(O)},_updateExpansion:function(V){this.options.recursiveExpansion&&(V?this._updateOneBranch(V):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray(S)},_updateNodesKeysArray:function(V){var U=this,K=[];return(0,C.S6)(U._getDataBySelectionMode(),function(Y,J){U._isNodeVisible(J)&&J.internalFields[V]&&(V===S||U.options.multipleSelection?K.push(J.internalFields.key):(K.length&&U.toggleSelection(K[0],!1,!0),K=[J.internalFields.key]))}),K},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(V){return!1!==V.internalFields.item.visible},_getByKey:function(V,U){return V===this._dataStructure?this.options.dataConverter._getByKey(U):this.options.dataConverter.getByKey(V,U)},_setChildrenSelection:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){if(K.internalFields.childrenKeys.length){var Y=K.internalFields.selected;!0===Y&&V._toggleChildrenSelection(K,Y)}})},_setParentSelection:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){V.options.dataConverter.getParentNode(K)&&K.internalFields.parentKey!==V.options.rootValue&&V._iterateParents(K,function(J){var j=V._calculateSelectedState(J);V._setFieldState(J,O,j)})})},_setParentExpansion:function(){var V=this;(0,C.S6)(this._dataStructure,function(U,K){K.internalFields.expanded&&V._updateOneBranch(K.internalFields.key)})},_updateOneBranch:function(V){var U=this,K=this.getNodeByKey(V);U._iterateParents(K,function(Y){U._setFieldState(Y,S,!0)})},_iterateChildren:function(V,U,K,Y){if((0,l.mf)(K)){var J=this,j=V.internalFields.key;-1===(Y=Y||[]).indexOf(j)&&(Y.push(j),(0,C.S6)(V.internalFields.childrenKeys,function(ee,G){var q=J.getNodeByKey(G);K(q),q.internalFields.childrenKeys.length&&U&&J._iterateChildren(q,U,K,Y)}))}},_iterateParents:function(V,U,K){if(V.internalFields.parentKey!==this.options.rootValue&&(0,l.mf)(U)){var Y=V.internalFields.key;if(-1===(K=K||[]).indexOf(Y)){K.push(Y);var J=this.options.dataConverter.getParentNode(V);J&&(U(J),J.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(J,U,K))}}},_calculateSelectedState:function(V){for(var U=V.internalFields.childrenKeys.length,K=0,Y=0,J=!1,j=0;j<=U-1;j++){var ee=this.getNodeByKey(V.internalFields.childrenKeys[j]),q=ee.internalFields.selected;!1===ee.internalFields.item.visible?Y++:q?K++:void 0===q&&(K+=.5)}return K&&(J=K===U-Y||void 0),J},_toggleChildrenSelection:function(V,U){var K=this;this._iterateChildren(V,!0,function(Y){K._isNodeVisible(Y)&&K._setFieldState(Y,O,U)})},_setFieldState:function(V,U,K){V.internalFields[U]!==K&&(V.internalFields[U]=K,V.internalFields.publicNode&&(V.internalFields.publicNode[U]=K),this.options.dataAccessors.setters[U](V.internalFields.item,K),this.options.onNodeChanged(V))},_markChildren:function(V){var U=this;(0,C.S6)(V,function(K,Y){var J=U.getIndexByKey(Y),j=U.getNodeByKey(Y);U._dataStructure[J]=0,j.internalFields.childrenKeys.length&&U._markChildren(j.internalFields.childrenKeys)})},_removeNode:function(V){var U=this.getNodeByKey(V);this._dataStructure[this.getIndexByKey(V)]=0,this._markChildren(U.internalFields.childrenKeys);var K=this,Y=0,J=(0,I.l)([],this._dataStructure);(0,C.S6)(J,function(j,ee){ee||(K._dataStructure.splice(j-Y,1),Y++)})},_addNode:function(V){var U=this.options.dataConverter,K=U._convertItemToNode(V,this.options.dataAccessors.getters.parentKey(V));this._dataStructure=this._dataStructure.concat(K),this._initialDataStructure=this._initialDataStructure.concat(K),U._dataStructure=U._dataStructure.concat(K)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(V){var U=null;return(0,C.S6)(this._dataStructure,function(K,Y){if(Y.internalFields.item===V)return U=Y,!1}),U},getNodesByItems:function(V){var U=this,K=[];return(0,C.S6)(V,function(Y,J){var j=U.getNodeByItem(J);j&&K.push(j)}),K},getNodeByKey:function(V,U){return this._getByKey(U||this._getDataBySelectionMode(),V)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(V){return V.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(V){return(0,x.Z)(this._dataStructure).filter(["internalFields.parentKey",V]).toArray()},getIndexByKey:function(V){return this.options.dataConverter.getIndexByKey(V)},addItem:function(V){this._addNode(V),this._updateFields()},removeItem:function(V){this._removeNode(V),this._updateFields()},toggleSelection:function(V,U,K){var Y=this._isSingleModeUnselect(U),J=this._getByKey(K||Y?this._initialDataStructure:this._dataStructure,V);this._setFieldState(J,O,U),this.options.recursiveSelection&&!K&&(U?this._setChildrenSelection():this._toggleChildrenSelection(J,U),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray(O)},_isSingleModeUnselect:function(V){return!this.options.multipleSelection&&!V},toggleNodeDisabledState:function(V,U){var K=this.getNodeByKey(V);this._setFieldState(K,"disabled",U)},toggleSelectAll:function(V){if((0,l.$K)(V)){var U=this,K=U._selectedNodesKeys[U._selectedNodesKeys.length-1],Y=U._isSingleModeUnselect(V)?this._initialDataStructure:this._dataStructure;(0,C.S6)(Y,function(J,j){U._isNodeVisible(j)&&U._setFieldState(j,O,V)}),U._selectedNodesKeys=U._updateNodesKeysArray(O),!V&&U.options.selectionRequired&&U.toggleSelection(K,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(V,U){var K=this.getNodeByKey(V);this._setFieldState(K,S,U),U&&this._updateExpansion(V),this._expandedNodesKeys=this._updateNodesKeysArray(S)},isFiltered:function(V){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[V]).length},_createCriteria:function(V,U,K){var Y=[];return Array.isArray(V)?((0,C.S6)(V,function(J,j){Y.push([j,K,U],"or")}),Y.pop(),Y):[V,K,U]},_filterDataStructure:function(V,U){var K=this.options.searchExpr||this.options.dataAccessors.getters.display,Y=h.Z.getOperationBySearchMode(this.options.searchMode),J=this._createCriteria(K,V,Y);return(0,x.Z)(U=U||this._initialDataStructure).filter(J).toArray()},search:function(V){var U=this,K=this._filterDataStructure(V),Y=this.options.dataConverter;return function J(j,ee){for(var G=j.length;ee<G;){var q=j[ee];if(q.internalFields.parentKey!==U.options.rootValue){var Z=Y.getParentNode(q);Z?(Z.internalFields.expanded||U._setFieldState(Z,S,!0),j.includes(Z)?ee++:(j.splice(ee,0,Z),J(j,ee))):(d.Z.log("W1007",q.internalFields.parentKey,q.internalFields.key),ee++)}else ee++}}(K,0),this.options.sort&&(K=b.Z.queryByOptions((0,x.Z)(K),{sort:this.options.sort}).toArray()),Y._indexByKey={},(0,C.S6)(K,function(J,j){j.internalFields.childrenKeys=[],Y._indexByKey[j.internalFields.key]=J}),Y._dataStructure=K,Y.setChildrenKeys(),Y._dataStructure}});var R=u(7307),P=u(4823),B="dx-state-disabled";const z=R.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===g.Z.real().deviceType&&!g.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var V=this._createDataAdapterAccessors();this._dataAdapter=new k((0,I.l)({dataAccessors:{getters:V.getters,setters:V.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:s.ZT,_initDynamicTemplates:function(){var V=this;this._templateManager.addDefaultTemplates({item:new P.c(function(U,K){U.html(K.html).append(this._getIconContainer(K)).append(this._getTextContainer(K)).append(this._getPopoutContainer(K)),V._addContentClasses(K,U.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(V){return V.icon?(0,a.H)(V.icon):void 0},_getTextContainer:function(V){return(0,o.Z)("<span>").text(V.text)},_getPopoutContainer:s.ZT,_addContentClasses:s.ZT,_initAccessors:function(){var V=this;(0,C.S6)(this._getAccessors(),function(U,K){V._compileAccessor(K)}),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(V){var U=this,K=[];return(0,C.S6)(V.internalFields.childrenKeys,function(Y,J){var j=U._dataAdapter.getNodeByKey(J);K.push(j)}),K},_hasChildren:function(V){return V&&V.internalFields.childrenKeys.length},_compileAccessor:function(V){var U="_"+V+"Getter",K="_"+V+"Setter",Y=this.option(V+"Expr");return Y?(0,l.mf)(Y)?(this[K]=function(J,j){J[Y()]=j},void(this[U]=function(J){return J[Y()]})):(this[U]=(0,c.vb)(Y),void(this[K]=(0,c.OM)(Y))):(this[U]=s.ZT,void(this[K]=s.ZT))},_createDataAdapterAccessors:function(){var V=this,U={getters:{},setters:{}};return(0,C.S6)(this._getAccessors(),function(K,Y){var j="_"+Y+"Setter",ee="parentId"===Y?"parentKey":Y;U.getters[ee]=V["_"+Y+"Getter"],U.setters[ee]=V[j]}),U.getters.display=this._displayGetter?this._displayGetter:K=>K.text,U},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:s.ZT,_renderItemFrame:function(V,U){var K=this.callBase.apply(this,arguments);return K.toggleClass(B,!!this._disabledGetter(U)),K},_optionChanged:function(V){switch(V.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(V);break;default:this.callBase(V)}}})},4955:(Rn,he,u)=>{"use strict";var o=u(1805),c=u(9904),I=u(8603),C=u(9009),g=u(5252),a=u(1247),p=u(3576),s=u(5505),l="dx-list-context-menu";(0,g.z)("menu","context",a.Z.inherit({_init:function(){var h=(0,c.Z)("<div>").addClass(l);this._list.$element().append(h),this._menu=this._renderOverlay(h)},_renderOverlay:function(h){return this._list._createComponent(h,p.Z,{shading:!1,deferRendering:!0,hideOnParentScroll:!0,hideOnOutsideClick:function(v){return!(0,c.Z)(v.target).closest("."+l).length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return(0,o.zp)(this._$menuList)}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},_ignoreFunctionValueDeprecation:!0,height:function(){return this._$menuList?(0,o.zp)(this._$menuList):0}.bind(this),width:function(){return(0,o.Y_)(this._list.$element())}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(h){var v=h.component.$content(),x=this._menuItems().slice();this._deleteEnabled()&&x.push({text:C.Z.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=(0,c.Z)("<div>"),this._list._createComponent(this._$menuList,s.K,{items:x,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),v.addClass("dx-list-context-menucontent"),v.append(this._$menuList)},_menuItemClickHandler:function(h){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,h.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(h){return this._$itemWithMenu=h,this._menu.option({position:{my:"top",at:"bottom",of:h,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(I.Z))},9156:(Rn,he,u)=>{"use strict";u(4955);var c=u(1805),I=u(9904),C=u(3553),g=u(219),a=u(9009),p=u(5252),s=u(913),l=u(7674),d=u(1247),h=u(8225),v=u(8690),x=u(1409),b=d.Z.abstract,y="dxListEditDecorator",E=(0,h.V4)(v.Z.down,y),S=(0,h.V4)(x.bB,y),w="dx-list-switchable-delete-ready",P="dx-list-switchable-menu-item-shield-positioning";const V=d.Z.inherit({_init:function(){this._$topShield=(0,I.Z)("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=(0,I.Z)("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=(0,I.Z)("<div>").addClass("dx-list-switchable-delete-item-content-shield"),s.Z.on(this._$topShield,E,this._cancelDeleteReadyItem.bind(this)),s.Z.on(this._$bottomShield,E,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(Ne){this._toggleDeleteReady(Ne,!1)},_toggleDeleteReady:function(Ne,mt){void 0===mt&&(mt=!this._isReadyToDelete(Ne)),this._toggleShields(Ne,mt),this._toggleScrolling(mt),this._cacheReadyToDeleteItem(Ne,mt),this._animateToggleDelete(Ne,mt)},_isReadyToDelete:function(Ne){return Ne.hasClass(w)},_toggleShields:function(Ne,mt){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",mt),this._$topShield.toggle(mt),this._$bottomShield.toggle(mt),mt&&this._updateShieldsHeight(Ne),this._toggleContentShield(Ne,mt)},_updateShieldsHeight:function(Ne){var mt=this._list.$element(),tt=mt.offset().top,Le=(0,c.zp)(mt),Pe=Ne.offset().top-tt,$e=Le-(0,c.zp)(Ne)-Pe;(0,c.QQ)(this._$topShield,Math.max(Pe,0)),(0,c.QQ)(this._$bottomShield,Math.max($e,0))},_toggleContentShield:function(Ne,mt){mt?Ne.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(Ne){var mt=this._list.$element().dxScrollView("instance");Ne?mt.on("start",this._cancelScrolling):mt.off("start",this._cancelScrolling)},_cancelScrolling:function(Ne){Ne.event.cancel=!0},_cacheReadyToDeleteItem:function(Ne,mt){mt?this._$readyToDeleteItem=Ne:delete this._$readyToDeleteItem},_animateToggleDelete:function(Ne,mt){mt?(this._enablePositioning(Ne),this._prepareDeleteReady(Ne),this._animatePrepareDeleteReady(Ne),s.Z.off(Ne,v.Z.up)):(this._forgetDeleteReady(Ne),this._animateForgetDeleteReady(Ne).done(this._disablePositioning.bind(this,Ne)))},_enablePositioning:function(Ne){Ne.addClass(P),s.Z.on(Ne,S,l.ZT),s.Z.one(Ne,v.Z.up,this._disablePositioning.bind(this,Ne))},_disablePositioning:function(Ne){Ne.removeClass(P),s.Z.off(Ne,S)},_prepareDeleteReady:function(Ne){Ne.addClass(w)},_forgetDeleteReady:function(Ne){Ne.removeClass(w)},_animatePrepareDeleteReady:b,_animateForgetDeleteReady:b,_getDeleteButtonContainer:function(Ne){return(Ne=Ne||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(Ne){this._getDeleteButtonContainer(Ne=Ne||this._$readyToDeleteItem).detach(),!Ne.is(".dx-state-disabled, .dx-state-disabled *")&&this._list.deleteItem(Ne).always(this._cancelDelete.bind(this,Ne))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});var U="dx-list-switchable-delete-button-container",K="dx-list-switchable-delete-button-wrapper",Y="dx-list-switchable-delete-button-inner-wrapper",J="dx-list-switchable-delete-button",ee=V.inherit({_init:function(){this.callBase.apply(this,arguments);var Ne=(0,I.Z)("<div>").addClass(U),mt=(0,I.Z)("<div>").addClass(K),tt=(0,I.Z)("<div>").addClass(Y),Le=(0,I.Z)("<div>").addClass(J);this._list._createComponent(Le,g.Z,{text:a.Z.format("dxListEditDecorator-delete"),type:"danger",onClick:function(gt){this._deleteItem(),gt.event.stopPropagation()}.bind(this),integrationOptions:{}}),Ne.append(mt),mt.append(tt),tt.append(Le),this._$buttonContainer=Ne},_enablePositioning:function(Ne){this.callBase.apply(this,arguments),C.Z.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(Ne)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var Ne=this._isRtlEnabled(),mt=(0,c.dz)(this._list.$element()),tt=this._buttonWidth();return C.Z.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:Ne?mt:-tt},to:{right:Ne?mt-tt:0}})},_animateForgetDeleteReady:function(){var Ne=this._isRtlEnabled(),mt=(0,c.dz)(this._list.$element()),tt=this._buttonWidth();return C.Z.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:Ne?mt-tt:0},to:{right:Ne?mt:-tt}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=(0,c.Y_)(this._$buttonContainer)),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});(0,p.z)("delete","toggle",ee.inherit({beforeBag:function(Ne){var mt=Ne.$itemElement,tt=Ne.$container,Le=(0,I.Z)("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(Le,g.Z,{icon:"toggle-delete",onClick:function(gt){C.Z.stop(this._$buttonContainer,!1),this._toggleDeleteReady(mt),gt.event.stopPropagation()}.bind(this),integrationOptions:{}}),tt.addClass("dx-list-toggle-delete-switch-container"),tt.append(Le)}})),(0,p.z)("delete","slideButton",ee.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(Ne,mt){return 0!==mt.targetOffset&&(C.Z.stop(this._$buttonContainer,!1),this._toggleDeleteReady(Ne)),!0}}));var X=u(227),M=u(6961),oe=u(8603),fe=u(2722),Te=u(6530),Be="dxListEditDecorator",ze=(0,h.V4)(X.u,Be),ae=(0,h.V4)(x.bB,Be),ye="dx-list-slide-menu-wrapper",ne="dx-list-slide-menu-content",ce="dx-list-slide-menu-buttons-container",le="dx-list-slide-menu-buttons",pe="dx-list-slide-menu-button";(0,p.z)("menu","slide",V.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=(0,I.Z)("<div>").addClass(ce),s.Z.on(this._$buttonsContainer,ae,l.ZT),this._$buttons=(0,I.Z)("<div>").addClass(le).appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var Ne=this._menuItems();if(1===Ne.length){var mt=Ne[0];this._renderMenuButton(mt.text,function(gt){gt.stopPropagation(),this._fireAction(mt)}.bind(this))}else{var tt=(0,I.Z)("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(tt,Te.Z,{showTitle:!1,items:Ne,onItemClick:function(gt){this._fireAction(gt.itemData)}.bind(this),integrationOptions:{}}),tt.appendTo(this._list.$element());var Le=this._renderMenuButton(a.Z.format("dxListEditDecorator-more"),function(gt){gt.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",Le)}}},_renderMenuButton:function(Ne,mt){var tt=(0,I.Z)("<div>").addClass(pe).addClass("dx-list-slide-menu-button-menu").text(Ne);return this._$buttons.append(tt),s.Z.on(tt,ze,mt),tt},_renderDeleteButton:function(){if(this._deleteEnabled()){var Ne=(0,I.Z)("<div>").addClass(pe).addClass("dx-list-slide-menu-button-delete").text((0,fe.x2)()?"":a.Z.format("dxListEditDecorator-delete"));s.Z.on(Ne,ze,function(mt){mt.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(Ne)}},_fireAction:function(Ne){this._fireMenuAction((0,I.Z)(this._cachedNode),Ne.action),this._cancelDeleteReadyItem()},modifyElement:function(Ne){this.callBase.apply(this,arguments);var mt=Ne.$itemElement;mt.addClass(ye);var tt=(0,I.Z)("<div>").addClass(ne);mt.wrapInner(tt)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(Ne,mt){return!!(0,I.Z)(mt.target).closest("."+ne).length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(Ne){this._enablePositioning(Ne),this._cacheItemData(Ne),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(Ne,mt){var Le=this._isRtlEnabled()?-1:1,gt=this._isReadyToDelete(Ne);if(this._getCurrentPositions().content!==this._getStartPositions().content||gt||!(mt.offset*Le>0)){var Pe=this._cachedItemWidth*mt.offset,$e=gt?-this._cachedButtonWidth*Le:0,Ce=(Pe+$e)*Le<0?Math.abs((Pe+$e)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(Ce)),!0}mt.cancel=!0},_getStartPositions:function(){var Ne=this._isRtlEnabled();return{content:0,buttonsContainer:Ne?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*(Ne?-1:1)}},_getPositions:function(Ne){var tt=this._isRtlEnabled()?-1:1,Le=this._getStartPositions();return{content:Le.content-Ne*this._cachedButtonWidth*tt,buttonsContainer:Le.buttonsContainer-Math.min(Ne,1)*this._cachedButtonWidth*tt,buttons:Le.buttons+Math.min(Ne,1)*this._cachedButtonWidth*tt}},_getCurrentPositions:function(){return{content:(0,M.jt)(this._$cachedContent).left,buttonsContainer:(0,M.jt)(this._$buttonsContainer).left,buttons:(0,M.jt)(this._$buttons).left}},_setPositions:function(Ne){(0,M.pB)(this._$cachedContent,{left:Ne.content}),(0,M.pB)(this._$buttonsContainer,{left:Ne.buttonsContainer}),(0,M.pB)(this._$buttons,{left:Ne.buttons})},_cacheItemData:function(Ne){Ne[0]!==this._cachedNode&&(this._$cachedContent=Ne.find("."+ne),this._cachedItemWidth=(0,c.Y_)(Ne),this._cachedButtonWidth=this._cachedButtonWidth||(0,c.Y_)(this._$buttons),(0,c.cl)(this._$buttonsContainer,this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=Ne[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(Ne,mt){this._cacheItemData(Ne);var tt=this._isRtlEnabled()?1:-1,Le=this._cachedItemWidth*mt.offset,gt=!this._isReadyToDelete(Ne)&&Le*tt>.2*this._cachedButtonWidth;return this._toggleDeleteReady(Ne,mt.targetOffset===tt&&gt),!0},_enablePositioning:function(Ne){C.Z.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(Ne)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(Ne){return this._cacheItemData(Ne),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(Ne){var mt=this,tt=this._getCurrentPositions(),Le=Math.min(Math.abs(tt.content-Ne.content)/this._cachedButtonWidth,1);return C.Z.animate(this._$cachedContent,{from:tt,to:Ne,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*Le,strategy:"frame",draw:function(gt){mt._setPositions(gt)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(oe.Z)),(0,p.z)("delete","static",d.Z.inherit({afterBag:function(Ne){var mt=Ne.$itemElement,tt=Ne.$container,Le=(0,I.Z)("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(Le,g.Z,{icon:"remove",onClick:function(gt){gt.event.stopPropagation(),this._deleteItem(mt)}.bind(this),integrationOptions:{}}),tt.addClass("dx-list-static-delete-button-container").append(Le)},_deleteItem:function(Ne){Ne.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(Ne)}}));var Ae=u(4270);(0,p.z)("delete","swipe",d.Z.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(Ne,mt,tt){var Le=new Ae.BH,gt=mt*this._itemElementWidth;return tt?C.Z.animate(Ne,{to:{left:gt},type:"slide",complete:function(){Le.resolve(Ne,mt)}}):((0,M.pB)(Ne,{left:gt}),Le.resolve()),Le.promise()},_swipeStartHandler:function(Ne){return this._itemElementWidth=(0,c.dz)(Ne),!0},_swipeUpdateHandler:function(Ne,mt){return this._renderItemPosition(Ne,mt.offset),!0},_swipeEndHandler:function(Ne,mt){return this._renderItemPosition(Ne,mt.targetOffset,!0).done(function(Le,gt){Math.abs(gt)&&this._list.deleteItem(Le).fail(function(){this._renderItemPosition(Le,0,!0)}.bind(this))}.bind(this)),!0}}))},3930:(Rn,he,u)=>{"use strict";var o=u(2589),c=u(3447);o.Z.setEditorClass(c.Z)},107:(Rn,he,u)=>{"use strict";var o=u(9904),c=u(913),I=u(227),C=u(5873),g=u(8159),a=u(344),p=u(2941),s=u(8506),l=u(1031),d=u(8225),v="dx-radiobutton-icon",E=l.Z.inherit({_supportedKeys:function(){return(0,C.l)(this.callBase(),{space:function(Y){Y.preventDefault(),this._clickAction({event:Y})}})},_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===p.Z.real().deviceType&&!p.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderIcon:function(){this._$icon=(0,o.Z)("<div>").addClass(v),(0,o.Z)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(Y){this.$element().toggleClass("dx-radiobutton-checked",Y).find("."+v).toggleClass("dx-radiobutton-icon-checked",Y),this.setAria("checked",Y)},_renderClick:function(){var Y=(0,d.V4)(I.u,this.NAME);this._clickAction=this._createAction(function(J){this._clickHandler(J.event)}.bind(this)),c.Z.off(this.$element(),Y),c.Z.on(this.$element(),Y,function(J){this._clickAction({event:J})}.bind(this))},_clickHandler:function(Y){this._saveValueChangeEvent(Y),this.option("value",!0)},_optionChanged:function(Y){"value"===Y.name?(this._renderCheckedState(Y.value),this.callBase(Y)):this.callBase(Y)}});(0,s.Z)("dxRadioButton",E);const S=E;var O=u(5252),w=u(1247),T="dx-list-select-decorator-enabled",B="dx-list-select-checkbox-container",W="dx-list-select-checkbox",z="dx-list-select-radiobutton-container",V="dx-list-select-radiobutton",K=(0,d.V4)(I.u,"dxListEditDecorator");(0,O.z)("selection","default",w.Z.inherit({_init:function(){this.callBase.apply(this,arguments);var Y=this._list.option("selectionMode");this._singleStrategy="single"===Y,this._containerClass=this._singleStrategy?z:B,this._controlClass=this._singleStrategy?V:W,this._controlWidget=this._singleStrategy?S:a.Z,this._list.$element().addClass(T)},beforeBag:function(Y){var J=Y.$itemElement,j=Y.$container.addClass(this._containerClass),ee=(0,o.Z)("<div>").addClass(this._controlClass).appendTo(j);new this._controlWidget(ee,(0,C.l)(this._commonOptions(),{value:this._isSelected(J),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(G){G.event&&this._list._saveSelectionChangeEvent(G.event),this._processCheckedState(J,G.value),G.event&&G.event.stopPropagation()}.bind(this)}))},modifyElement:function(Y){this.callBase.apply(this,arguments);var J=Y.$itemElement,j=this._controlWidget.getInstance(J.find("."+this._controlClass));c.Z.on(J,"stateChanged",function(ee,G){j.option("value",G)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(Y,J){var j=!J,ee=this._list,G=this._$selectAll,q=ee._getLastItemIndex();return!(!G||!(J&&0===Y||j&&Y===q)||(ee.option("focusedElement",G),ee.scrollToItem(ee.option("focusedElement")),0))},handleEnterPressing:function(Y){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return Y.target=this._$selectAll.get(0),this._list._saveSelectionChangeEvent(Y),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var Y=this._$selectAll=(0,o.Z)("<div>").addClass("dx-list-select-all"),J=this._list,j=J._supportedKeys().downArrow.bind(J);this._selectAllCheckBox=J._createComponent((0,o.Z)("<div>").addClass("dx-list-select-all-checkbox").appendTo(Y),a.Z,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",j),(0,o.Z)("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(Y),this._list.itemsContainer().prepend(Y),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),c.Z.off(this._$selectAll,K),c.Z.on(this._$selectAll,K,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(Y){Y.event&&Y.event.stopPropagation();var J=this._selectAllCheckBox.option("value");Y.event&&this._list._saveSelectionChangeEvent(Y.event),!0===J?this._selectAllItems():!1===J&&this._unselectAllItems(),this._list._createActionByOption("onSelectAllValueChanged")({value:J})},_checkSelectAllCapability:function(){var Y=this._list,J=Y._dataController;return!("allPages"===Y.option("selectAllMode")&&Y.option("grouped")&&!J.group()&&(g.Z.log("W1010"),1))},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(Y){this._list._saveSelectionChangeEvent(Y),this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(Y){return this._list.isItemSelected(Y)},_processCheckedState:function(Y,J){J?this._list.selectItem(Y):this._list.unselectItem(Y)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass(T),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},5505:(Rn,he,u)=>{"use strict";u.d(he,{K:()=>tn});var o=u(1805),c=u(9904),I=u(913),C=u(7674),g=u(1828),a=u(4328),p=u(6881),s=u(2718),l=u(6738),d=u(5873),h=u(3553),v=u(227),x=u(1918),b=u(4505),y=u(9009),E=u(4594),S=u(2941),O=u(8646),w="dx-list-item-badge-container",R="dx-list-item-chevron-container";const W=O.Z.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(ge){if(this._$element.children("."+w).remove(),ge){var Ce=(0,c.Z)("<div>").addClass(w).append((0,c.Z)("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(ge)),De=this._$element.children("."+R).first();De.length>0?Ce.insertBefore(De):Ce.appendTo(this._$element)}},_renderShowChevron:function(ge){if(this._$element.children("."+R).remove(),ge){var Ce=(0,c.Z)("<div>").addClass(R),De=(0,c.Z)("<div>").addClass("dx-list-item-chevron");Ce.append(De).appendTo(this._$element)}}});var z=u(219),V=u(8225),U=u(2722),K=u(4514),Y=u(3862),J=u(5373),j=u(5286),ee=u(4823),G=u(4270),q=u(9661),Z=u(7981),X=u(8093);function oe(ge,Ce){var De=function M(ge){var Ce,De;return ge&&(0,K.Ym)()?null===(Ce=(De=(0,K.Jj)()).getComputedStyle)||void 0===Ce?void 0:Ce.call(De,ge):null}(ge);return De?(0,X.H)(De["margin".concat((0,Z.MI)(Ce))]):0}var _e="dx-list-item",ye="."+_e,le="dx-list-group",pe="dx-list-group-header",Se="dx-list-group-body",te="dx-list-group-collapsed",Ae="dx-wrap-item-text",Le=(0,l.vb)("items"),tn=j.Z.inherit({_activeStateUnit:[ye,".dx-list-select-all"].join(","),_supportedKeys:function(){var ge=this,Ce=function(Ye){var kt,gn,ut,bt=De(Ye);bt.is(ge.option("focusedElement"))&&(gn=Ye,ut=(kt=bt).position().top,"prev"===gn&&(ut=kt.position().top-(0,o.Cr)(ge.$element())+(0,o.zp)(kt)),ge.scrollTo(ut),bt=De(Ye)),ge.option("focusedElement",(0,p.u)(bt)),ge.scrollToItem(bt)};function De(Ye){var bt=ge.scrollTop(),yt=(0,o.Cr)(ge.$element()),kt=(0,c.Z)(ge.option("focusedElement")),gn=!0;if(!kt.length)return(0,c.Z)();for(;gn;){var ut=kt[Ye]();if(!ut.length)break;var Ve=ut.position().top+(0,o.zp)(ut)/2;(gn=Ve<yt+bt&&Ve>bt)&&(kt=ut)}return kt}return(0,d.l)(this.callBase(),{leftArrow:C.ZT,rightArrow:C.ZT,pageUp:function(){return Ce("prev"),!1},pageDown:function(){return Ce("next"),!1}})},_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:y.Z.format("dxList-pullingDownText"),pulledDownText:y.Z.format("dxList-pulledDownText"),refreshingText:y.Z.format("dxList-refreshingText"),pageLoadingText:y.Z.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:y.Z.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,_swipeEnabled:!0,showChevronExpr:function(ge){return ge?ge.showChevron:void 0},badgeExpr:function(ge){return ge?ge.badge:void 0}})},_defaultOptionsRules:function(){var ge=(0,U.Vk)();return this.callBase().concat((0,J.i)(),[{device:function(){return!b.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(Ce){return!b.nativeScrolling&&!S.Z.isSimulator()&&"desktop"===S.Z.real().deviceType&&"generic"===Ce.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===S.Z.real().deviceType&&!S.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,U.x2)(ge)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(ge){ge&&this._updateLoadingState(!0)},_itemClass:function(){return _e},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_saveSelectionChangeEvent:function(ge){this._selectionChangeEventInstance=ge},_getSelectionChangeEvent:function(){return this._selectionChangeEventInstance},_refreshItemElements:function(){this._itemElementsCache=this.option("grouped")?this._itemContainer().children("."+le).children("."+Se).children(this._itemSelector()):this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},reorderItem:function(ge,Ce){return this.callBase(ge,Ce).done(function(){this._refreshItemElements()})},deleteItem:function(ge){return this.callBase(ge).done(function(){this._refreshItemElements()})},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(ge){if("single"!==this.option("selectionMode")||!this.isItemSelected(ge.currentTarget))return this.callBase(ge)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._dataController.resetDataSourcePageIndex(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var ge=this._scrollBottomMode(),Ce=this._nextButtonMode();return(0,d.l)(this.callBase(),{paginate:(0,C.IS)(ge||Ce,!0)})},_getGroupedOption:function(){return this.option("grouped")},_getGroupContainerByIndex:function(ge){return this._itemContainer().find(".".concat(le)).eq(ge).find(".".concat(Se))},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var ge=this.option("scrollingEnabled"),Ce=ge&&this.option("pullRefreshEnabled"),De=ge&&this._scrollBottomMode()&&!!this._dataController.getDataSource();this._scrollView=this._createComponent(this.$element(),function Pe(){return Y.Z}(),{height:this.option("height"),width:this.option("width"),disabled:this.option("disabled")||!ge,onScroll:this._scrollHandler.bind(this),onPullDown:Ce?this._pullDownHandler.bind(this):null,onReachBottom:De?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=(0,c.Z)(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass(Ae),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(ge){this._scrollAction&&this._scrollAction(ge)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new ee.c(function(ge,Ce){(0,g.PO)(Ce)?Ce.key&&ge.text(Ce.key):ge.text(String(Ce))},["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(ge,Ce){if(this.callBase(ge,Ce),ge.icon){var De=(0,a.H)(ge.icon).addClass("dx-list-item-icon"),Ye=(0,c.Z)("<div>").addClass("dx-list-item-icon-container");Ye.append(De),Ce.prepend(Ye)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(ge){var Ce=this._dataController,De=this._scrollBottomMode()&&ge&&!Ce.isLoading()&&!this._isLastPage();this._shouldContinueLoading(De)?this._infiniteDataLoading():(this._scrollView.release(!De&&!Ce.isLoading()),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1))},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataController.isLoaded()},_isDataSourceFirstLoadCompleted:function(ge){return(0,g.$K)(ge)&&(this._isFirstLoadCompleted=ge),this._isFirstLoadCompleted},_dataSourceLoadingChangedHandler:function(ge){this._loadIndicationSuppressed()||(ge&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var Ye;!this._itemElements().length&&!this._isDataSourceFirstLoadCompleted()||null===(Ye=this._scrollView)||void 0===Ye||Ye.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()),ge||this._isDataSourceFirstLoadCompleted(!1))},_dataSourceChangedHandler:function(){!this._shouldAppendItems()&&(0,K.Ym)()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments),this._isDataSourceFirstLoadCompleted(!0)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(ge){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=ge},_scrollViewIsFull:function(){var ge=this._scrollView;return!ge||(0,o.Cr)(ge.content())>(0,o.Cr)(ge.container())},_pullDownHandler:function(ge){this._pullRefreshAction(ge);var Ce=this._dataController;Ce.getDataSource()&&!Ce.isLoading()?(this._clearSelectedItems(),Ce.pageIndex(0),Ce.reload()):this._updateLoadingState()},_shouldContinueLoading:function(ge){var Ce,De,Ye=(0,o.Cr)(this._scrollView.content())-(0,o.Cr)(this._scrollView.container())<(null!==(Ce=null===(De=this._scrollView.scrollOffset())||void 0===De?void 0:De.top)&&void 0!==Ce?Ce:0);return ge&&(!this._scrollViewIsFull()||Ye)},_infiniteDataLoading:function(){this.$element().is(":visible")&&(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(()=>{this._loadNextPage()}))},_scrollBottomHandler:function(ge){this._pageLoadingAction(ge),this._dataController.isLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(ge){this.option("grouped")?((0,s.S6)(ge,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),(0,U.x2)()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var ge=(0,V.V4)(v.u,this.NAME),Ce="."+pe,De=this.$element(),Ye=this.option("collapsibleGroups");De.toggleClass("dx-list-collapsible-groups",Ye),I.Z.off(De,ge,Ce),Ye&&I.Z.on(De,ge,Ce,function(bt){this._createAction(function(yt){var kt=(0,c.Z)(yt.event.currentTarget).parent();this._collapseGroupHandler(kt),this.option("focusStateEnabled")&&this.option("focusedElement",(0,p.u)(kt.find("."+_e).eq(0)))}.bind(this),{validatingTargetName:"element"})({event:bt})}.bind(this))},_collapseGroupHandler:function(ge,Ce){var De=new G.BH;if(ge.hasClass(te)===Ce)return De.resolve();var Ye=ge.children("."+Se),bt=(0,o.zp)(Ye),yt=0;return 0===bt&&((0,o.QQ)(Ye,"auto"),yt=(0,o.zp)(Ye)),ge.toggleClass(te,Ce),h.Z.animate(Ye,{type:"custom",from:{height:bt},to:{height:yt},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),De.resolve()}.bind(this)}),De.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=(0,c.Z)(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=(0,E.sY)()},_toggleActiveState:function(ge,Ce,De){this.callBase.apply(this,arguments);var Ye=this;if(this._inkRipple){var bt={element:ge,event:De};Ce?(0,U.x2)()?this._inkRippleTimer=setTimeout(function(){Ye._inkRipple.showWave(bt)},35):Ye._inkRipple.showWave(bt):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(bt))}},_postprocessRenderItem:function(ge){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("_swipeEnabled")&&this._attachSwipeEvent((0,c.Z)(ge.itemElement))},_attachSwipeEvent:function(ge){var Ce=(0,V.V4)(x.ut,this.NAME);I.Z.on(ge,Ce,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(ge){this._itemDXEventHandler(ge,"onItemSwipe",{direction:ge.offset<0?"left":"right"})},_nextButtonHandler:function(ge){this._pageLoadingAction(ge);var Ce=this._dataController;Ce.getDataSource()&&!Ce.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(ge,Ce){var De=(0,c.Z)("<div>").addClass(le).appendTo(this._itemContainer()),Ye=(0,c.Z)("<div>").addClass(pe).appendTo(De),bt=this.option("groupTemplate"),yt=this._getTemplate(Ce.template||bt,Ce,ge,Ye),kt={index:ge,itemData:Ce,container:(0,p.u)(Ye)};this._createItemByTemplate(yt,kt),(0,U.x2)()&&(0,c.Z)("<div>").addClass("dx-list-group-header-indicator").prependTo(Ye),this._renderingGroupIndex=ge;var gn=(0,c.Z)("<div>").addClass(Se).appendTo(De);(0,s.S6)(Le(Ce)||[],function(ut,Ve){this._renderItem({group:ge,item:ut},Ve,gn)}.bind(this)),this._groupRenderAction({groupElement:(0,p.u)(De),groupIndex:ge,groupData:Ce})},downInkRippleHandler:function(ge){this._toggleActiveState((0,c.Z)(ge.currentTarget),!0,ge)},upInkRippleHandler:function(ge){this._toggleActiveState((0,c.Z)(ge.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var ge="."+pe,Ce=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var De=[Ce,"dxpointerdown",ge,this._downInkRippleHandler],Ye=[Ce,"dxpointerup dxpointerout",ge,this._upInkRippleHandler];I.Z.off(...De),I.Z.on(...De),I.Z.off(...Ye),I.Z.on(...Ye)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){this._isDataSourceFirstLoadCompleted(!1),clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(ge){this.callBase(ge),this._scrollView.option("disabled",ge||!this.option("scrollingEnabled"))},_toggleNextButton:function(ge){var Ce=this._dataController,De=this._getNextButton();this.$element().toggleClass("dx-has-next",ge),ge&&Ce.isLoaded()&&De.appendTo(this._itemContainer()),ge||De.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var ge=(0,c.Z)("<div>").addClass("dx-list-next-button"),Ce=(0,c.Z)("<div>").appendTo(ge);return this._createComponent(Ce,z.Z,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:(0,U.x2)()?"default":void 0,integrationOptions:{}}),ge},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if((0,K.Ym)()){var ge=this._scrollView.scrollTop();this.callBase(),ge&&this._scrollView.scrollTo(ge)}else this.callBase()},_optionChanged:function(ge){switch(ge.name){case"pageLoadMode":this._toggleNextButton(ge.value),this._initScrollView();break;case"dataSource":this.callBase(ge),this._initScrollView(),this._isDataSourceFirstLoadCompleted(!1);break;case"items":this.callBase(ge),this._isDataSourceFirstLoadCompleted(!1);break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"useNativeScrolling":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":case"grouped":case"collapsibleGroups":case"groupTemplate":case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions();break;case"wrapItemText":this._$container.toggleClass(Ae,ge.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(ge),this._scrollView.option(ge.name,ge.value),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(ge),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(ge);break;case"_swipeEnabled":case"_listAttributes":break;default:this.callBase(ge)}},_extendActionArgs:function(ge){if(!this.option("grouped"))return this.callBase(ge);var Ce=ge.closest("."+le),De=Ce.find("."+_e);return(0,d.l)(this.callBase(ge),{itemIndex:{group:Ce.index(),item:De.index(ge)}})},expandGroup:function(ge){var Ce=new G.BH,De=this._itemContainer().find("."+le).eq(ge);return this._collapseGroupHandler(De,!1).done(function(){Ce.resolveWith(this)}.bind(this)),Ce.promise()},collapseGroup:function(ge){var Ce=new G.BH,De=this._itemContainer().find("."+le).eq(ge);return this._collapseGroupHandler(De,!0).done(function(){Ce.resolveWith(this)}.bind(this)),Ce},updateDimensions:function(){var ge=this,Ce=new G.BH;return ge._scrollView?ge._scrollView.update().done(function(){!ge._scrollViewIsFull()&&ge._updateLoadingState(!0),Ce.resolveWith(ge)}):Ce.resolveWith(ge),Ce.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(ge){this._scrollView.scrollBy(ge)},scrollTo:function(ge){this._scrollView.scrollTo(ge)},scrollToItem:function(ge){var De=this._editStrategy.getItemElement(ge)?.get(0);this._scrollView.scrollToElement(De,{bottom:oe(De,"bottom")})},_dimensionChanged:function(){this.updateDimensions()}}).include(q.Z);tn.ItemClass=W},1247:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>x});var o=u(1805),c=u(9904),I=u(913),C=u(7674),g=u(5031),a=u(1918),p=u(8225),s="dxListEditDecorator",l=(0,p.V4)(a.BL,s),d=(0,p.V4)(a.aq,s),h=(0,p.V4)(a.ut,s);const x=g.Z.inherit({ctor:function(b){this._list=b,this._init()},_init:C.ZT,_shouldHandleSwipe:!1,_attachSwipeEvent:function(b){var y={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=(0,o.dz)(this._list.$element()),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};I.Z.on(b.$itemElement,l,y,this._itemSwipeStartHandler.bind(this)),I.Z.on(b.$itemElement,d,this._itemSwipeUpdateHandler.bind(this)),I.Z.on(b.$itemElement,h,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(b){var y=(0,c.Z)(b.currentTarget);y.is(".dx-state-disabled, .dx-state-disabled *")?b.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(y,b))},_itemSwipeUpdateHandler:function(b){var y=(0,c.Z)(b.currentTarget);this._swipeUpdateHandler(y,b)},_itemSwipeEndHandler:function(b){var y=(0,c.Z)(b.currentTarget);this._swipeEndHandler(y,b),this._clearSwipeCache=!0},beforeBag:C.ZT,afterBag:C.ZT,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(b){this._shouldHandleSwipe&&(this._attachSwipeEvent(b),this._clearSwipeCache=!0)},afterRender:C.ZT,handleClick:C.ZT,handleKeyboardEvents:C.ZT,handleEnterPressing:C.ZT,handleContextMenu:C.ZT,_swipeStartHandler:C.ZT,_swipeUpdateHandler:C.ZT,_swipeEndHandler:C.ZT,visibilityChange:C.ZT,getExcludedSelectors:C.ZT,dispose:C.ZT})},8603:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(I,C){this._list._itemEventHandlerByHandler(I,C,{},{excludeValidators:["disabled","readOnly"]})}}},5252:(Rn,he,u)=>{"use strict";u.d(he,{i:()=>c,z:()=>I});var o=u(5873),c={};function I(C,g,a){var p=c,s={};s[C]=p[C]?p[C]:{},s[C][g]=a,(0,o.l)(p,s)}},5412:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>X});var o=u(9904),c=u(8225),I=u(5873),C=u(1828),g=u(2718),a=u(3382),p=u(7316),s=u(5172),d="dx-list-group",x=function(M){return(M.group<<20)+M.item},b=function(M){return{group:M>>20,item:1048575&M}};const E=s.Z.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find("."+d)},_groupItemElements:function(M){return M.find(".dx-list-item")},getIndexByItemData:function(M){var oe=this._collectionWidget.option("items"),fe=!1;return!!M&&(M.items&&M.items.length&&(M=M.items[0]),(0,g.S6)(oe,function(Te,Be){if(!Be.items||((0,g.S6)(Be.items,function(ze,ae){return ae!==M||(fe={group:Te,item:ze},!1)}),fe))return!1}),fe)},getItemDataByIndex:function(M){var oe=this._collectionWidget.option("items");return(0,C.kE)(M)?this.itemsGetter()[M]:M&&oe[M.group]&&oe[M.group].items[M.item]||null},itemsGetter:function(){for(var M=[],oe=this._collectionWidget.option("items"),fe=0;fe<oe.length;fe++)oe[fe]&&oe[fe].items?M=M.concat(oe[fe].items):M.push(oe[fe]);return M},deleteItemAtIndex:function(M){var oe=b(M);this._collectionWidget.option("items")[oe.group].items.splice(oe.item,1)},getKeysByItems:function(M){var fe,oe=[];for(fe=0;fe<M.length;fe++)M[fe]&&M[fe].items?oe=oe.concat(M[fe].items):oe.push(M[fe]);var Te=[];for(fe=0;fe<oe.length;fe++)Te.push(this._collectionWidget.keyOf(oe[fe]));return Te},getIndexByKey:function(M,oe){var fe=oe||this._collectionWidget.option("items"),Te=-1,Be=this;return(0,g.S6)(fe,function(ze,ae){if(ae.items&&((0,g.S6)(ae.items,function(_e,ye){var ne=Be._collectionWidget.keyOf(ye);if(Be._equalKeys(ne,M))return Te={group:ze,item:_e},!1}),-1!==Te))return!1}),Te},_getGroups:function(M){var fe=this._collectionWidget._dataController.group();return fe?a.Z.queryByOptions((0,p.Z)(M),{group:fe}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(M,oe){var fe=[],Te=this._getGroups(oe),Be={},ze=ae=>{var _e=this.getIndexByKey(ae,Te),ye=_e&&Te[_e.group];if(ye)return{groupKey:ye.key,item:ye.items[_e.item]}};return(0,g.S6)(M,function(ae,_e){var ye=ze(_e);if(ye){var ne=ye.groupKey,ce=ye.item,le=Be[ne];le||(Be[ne]=le={key:ne,items:[]},fe.push(le)),le.items.push(ce)}}),fe},moveItemAtIndexToIndex:function(M,oe){var fe=this._collectionWidget.option("items"),Te=b(M),Be=b(oe),ze=fe[Te.group].items,ae=fe[Be.group].items,_e=ze[Te.item];ze.splice(Te.item,1),ae.splice(Be.item,0,_e)},_isItemIndex:function(M){return M&&(0,C.kE)(M.group)&&(0,C.kE)(M.item)},_getNormalizedItemIndex:function(M){var oe=(0,o.Z)(M),fe=oe.closest("."+d);return fe.length?x({group:this._groupElements().index(fe),item:this._groupItemElements(fe).index(oe)}):-1},_normalizeItemIndex:function(M){return x(M)},_denormalizeItemIndex:function(M){return b(M)},_getItemByNormalizedIndex:function(M){var oe=b(M),fe=this._groupElements().eq(oe.group);return this._groupItemElements(fe).eq(oe.item)},_itemsFromSameParent:function(M,oe){return b(M).group===b(oe).group}});var S=u(9009),O=u(7674),w=u(5031),T=u(8159),k=u(5252),R=[],P=function(M,oe,fe){R.push({enabled:M,decoratorType:oe,decoratorSubType:fe})};P(function(){return this.option("menuItems").length},function(){return"menu"},function(){return this.option("menuMode")}),P(function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")},function(){var M=this.option("itemDeleteMode");return"toggle"===M||"slideButton"===M||"swipe"===M||"static"===M?"delete":"menu"},function(){var M=this.option("itemDeleteMode");return"slideItem"===M&&(M="slide"),M}),P(function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")},function(){return"selection"},function(){return"default"}),P(function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")},function(){return"reorder"},function(){return"default"});const j=w.Z.inherit({ctor:function(M){this._list=M,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&(0,g.S6)(this._decorators,function(M,oe){oe.dispose()})},_fetchRequiredDecorators:function(){this._decorators=[],(0,g.S6)(R,function(M,oe){if(oe.enabled.call(this._list)){var Te=oe.decoratorType.call(this._list),Be=oe.decoratorSubType.call(this._list),ze=this._createDecorator(Te,Be);this._decorators.push(ze)}}.bind(this))},_createDecorator:function(M,oe){return new(this._findDecorator(M,oe))(this._list)},_findDecorator:function(M,oe){var fe,Te=null===(fe=k.i[M])||void 0===fe?void 0:fe[oe];if(!Te)throw T.Z.Error("E1012",M,oe);return Te},modifyItemElement:function(M){var oe=(0,o.Z)(M.itemElement),fe={$itemElement:oe};this._prependBeforeBags(oe,fe),this._appendAfterBags(oe,fe),this._applyDecorators("modifyElement",fe)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(M,oe){var fe=this._collectDecoratorsMarkup("beforeBag",oe,"dx-list-item-before-bag");M.prepend(fe)},_appendAfterBags:function(M,oe){var fe=this._collectDecoratorsMarkup("afterBag",oe,"dx-list-item-after-bag");M.append(fe)},_collectDecoratorsMarkup:function(M,oe,fe){var Te=(0,o.Z)("<div>");return(0,g.S6)(this._decorators,function(){var Be=(0,o.Z)("<div>").addClass(fe);this[M]((0,I.l)({$container:Be},oe)),Be.children().length&&Te.append(Be)}),Te.children()},_applyDecorators:function(M,oe){(0,g.S6)(this._decorators,function(){this[M](oe)})},_handlerExists:function(M){if(!this._decorators)return!1;for(var oe=this._decorators,fe=oe.length,Te=0;Te<fe;Te++)if(oe[Te][M]!==O.ZT)return!0;return!1},_eventHandler:function(M,oe,fe){if(!this._decorators)return!1;for(var Te=!1,Be=this._decorators,ze=Be.length,ae=0;ae<ze&&!(Te=Be[ae][M](oe,fe));ae++);return Te},handleClick:function(M,oe){return this._eventHandler("handleClick",M,oe)},handleKeyboardEvents:function(M,oe){return this._eventHandler("handleKeyboardEvents",M,oe)},handleEnterPressing:function(M){return this._eventHandler("handleEnterPressing",M)},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(M,oe){return this._eventHandler("handleContextMenu",M,oe)},getExcludedItemSelectors:function(){var M=[];return this._applyDecorators("getExcludedSelectors",M),M.join(",")}});const X=u(5505).K.inherit({_supportedKeys(){var M=this,oe=this.callBase(),fe=(Te,Be)=>{var ze=this._editStrategy,ae=this.option("focusedElement"),_e=ze.getNormalizedIndex(ae);if(_e!==this._getLastItemIndex()||!this._dataController.isLoading())if(Te.shiftKey&&M.option("itemDragging.allowReordering")){var ce=ze.getItemElement(_e+(Be?-1:1));this.reorderItem(ae,ce),this.scrollToItem(ae),Te.preventDefault()}else this._editProvider.handleKeyboardEvents(_e,Be)||(Be?oe.upArrow(Te):oe.downArrow(Te))};return(0,I.l)({},oe,{del:Te=>{M.option("allowItemDeleting")&&(Te.preventDefault(),M.deleteItem(M.option("focusedElement")))},upArrow:Te=>fe(Te,!0),downArrow:Te=>fe(Te),enter:function(Te){this._editProvider.handleEnterPressing(Te)||oe.enter.apply(this,arguments)},space:function(Te){this._editProvider.handleEnterPressing(Te)||oe.space.apply(this,arguments)}})},_updateSelection(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex(){return this._itemElements().length-1},_refreshItemElements(){this.callBase();var M=this._editProvider.getExcludedItemSelectors();M.length&&(this._itemElementsCache=this._itemElementsCache.not(M))},_isItemStrictEquals:function(M,oe){var fe=M&&M.__dx_key__;return!(fe&&!this.key()&&this._selection.isItemSelected(fe))&&this.callBase(M,oe)},_getDefaultOptions(){return(0,I.l)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:S.Z.format("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",itemDragging:{}})},_defaultOptionsRules(){return this.callBase().concat([{device:M=>"ios"===M.platform,options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init(){this.callBase(),this._initEditProvider()},_initDataSource(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll(){return"page"===this.option("selectAllMode")},_initEditProvider(){this._editProvider=new j(this)},_disposeEditProvider(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy(){this.option("grouped")?this._editStrategy=new E(this):this.callBase()},_initMarkup(){this._refreshEditProvider(),this.callBase()},_renderItems(){this.callBase(...arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:()=>"dx-list-item-selected",_itemResponseWaitClass:()=>"dx-list-item-response-wait",_itemClickHandler(M){var oe=(0,o.Z)(M.currentTarget);oe.is(".dx-state-disabled, .dx-state-disabled *")||this._editProvider.handleClick(oe,M)||(this._saveSelectionChangeEvent(M),this.callBase(...arguments))},_shouldFireContextMenuEvent(){return this.callBase(...arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler(M){var oe=(0,o.Z)(M.currentTarget);if(!oe.is(".dx-state-disabled, .dx-state-disabled *")){if((0,c.z6)(M)&&this._editProvider.handleContextMenu(oe,M))return void(M.handledByEditProvider=!0);this.callBase(...arguments)}},_getItemContainer:function(M){if(this.option("grouped")){var oe,fe=null===(oe=this._editStrategy.getIndexByItemData(M))||void 0===oe?void 0:oe.group;return this._getGroupContainerByIndex(fe)}return this.callBase(M)},_itemContextMenuHandler(M){var oe=(0,o.Z)(M.currentTarget);if(!oe.is(".dx-state-disabled, .dx-state-disabled *")){if(!M.handledByEditProvider&&this._editProvider.handleContextMenu(oe,M))return void M.preventDefault();this.callBase(...arguments)}},_postprocessRenderItem(M){this.callBase(...arguments),this._editProvider.modifyItemElement(M)},_clean(){this._disposeEditProvider(),this.callBase()},focusListItem(M){var oe=this._editStrategy.getItemElement(M);this.option("focusedElement",oe),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged(M){switch(M.name){case"selectAllMode":this._initDataSource(),this._dataController.pageIndex(0),this._dataController.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(M);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(M)}},selectAll(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement(M){return this._itemElements().index(M)},getItemElementByFlatIndex(M){var oe=this._itemElements();return M<0||M>=oe.length?(0,o.Z)():oe.eq(M)},getItemByIndex(M){return this._editStrategy.getItemDataByIndex(M)}})},4137:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>a});var o=u(5412),c=u(2589);const C=o.Z.inherit(c.Z).inherit({_addWidgetPrefix:function(p){return"dx-list-"+p},_getCombinedFilter:function(){var p=this._dataController,s={filter:p.filter()};return p.addSearchFilter(s),s.filter},_initDataSource:function(){var p=this.option("searchValue"),s=this.option("searchExpr"),l=this.option("searchMode");this.callBase();var d=this._dataController;p&&p.length&&d.searchValue(p),l.length&&d.searchOperation(c.Z.getOperationBySearchMode(l)),s&&d.searchExpr(s)}});(0,u(8506).Z)("dxList",C);const a=C},1427:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>w});var o=u(1805),c=u(9904),I=u(4514),C=u(4505),g=u(2722),a=u(5873),p=u(2941),s=u(8506),l=u(6853),d=(0,I.jW)(),y="dx-loadindicator-segment",O=l.Z.inherit({_getDefaultOptions:function(){return(0,a.l)(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var T=(0,g.Vk)();return this.callBase().concat([{device:function(){return"android"===p.Z.real().platform&&!/chrome/i.test(d.userAgent)},options:{viaImage:!0}},{device:function(){return(0,g.x2)(T)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return(0,g.OD)(T)},options:{_animatingSegmentCount:7}}])},_useTemplates:function(){return!1},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=(0,c.Z)("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=(0,c.Z)("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!(0,C.animation)()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var T=this.option("_animatingSegmentInner");this._$indicator=(0,c.Z)("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var k=this.option("_animatingSegmentCount");k>=0;--k){var R=(0,c.Z)("<div>").addClass(y).addClass(y+k);T&&R.append((0,c.Z)("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(R)}},_renderMarkupForImage:function(){var T=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),T&&this._$wrapper.css("backgroundImage","url("+T+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var T=this.option("width"),k=this.option("height");if(T||k){T=(0,o.dz)(this.$element()),k=(0,o.Cr)(this.$element());var R=Math.min(k,T);this._$wrapper.css({height:R,width:R,fontSize:R})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(T){switch(T.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(T)}}});(0,s.Z)("dxLoadIndicator",O);const w=O},4265:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o=u(9904),c=u(7674),I=u(9009),C=u(8506),g=u(5873),a=u(1427),p=u(3576),s=u(4270),l=u(2722),v="dx-loadpanel-indicator",x="dx-loadpanel-message",S=p.Z.inherit({_supportedKeys:function(){return(0,g.l)(this.callBase(),{escape:c.ZT})},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{message:I.Z.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,focusStateEnabled:!1,propagateOutsideClick:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return(0,l.x2)()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this.$wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$loadPanelContentWrapper=(0,o.Z)("<div>").addClass("dx-loadpanel-content-wrapper"),this._$loadPanelContentWrapper.appendTo(this.$content()),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var w=this.option("delay");if(!w)return this.callBase();var T=new s.BH,k=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout(function(){k().done(function(){T.resolve()})},w),T.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$loadPanelContentWrapper){var w=this.option("message");if(w){var T=(0,o.Z)("<div>").addClass(x).text(w);this._$loadPanelContentWrapper.append(T)}}},_renderLoadIndicator:function(){!this._$loadPanelContentWrapper||!this.option("showIndicator")||(this._$indicator||(this._$indicator=(0,o.Z)("<div>").addClass(v).appendTo(this._$loadPanelContentWrapper)),this._createComponent(this._$indicator,a.Z,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find("."+x).remove(),this.$content().find("."+v).remove(),delete this._$indicator},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(w){switch(w.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._renderLoadIndicator();break;default:this.callBase(w)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});(0,C.Z)("dxLoadPanel",S);const O=S},9998:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=u(1658).Z},1658:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>pe});var o=u(1805),c=u(9904),I=u(913),C=u(8506),g=u(7674),a=u(6881),p=u(2718),s=u(1828),l=u(5873),d=u(7320),h=u(8225),v=u(8690),x=u(5239),b=u(7543),y=u(3576),E=u(5791),S=u(1875);const k=class T extends S.Z{_getDefaultOptions(){return(0,l.l)(super._getDefaultOptions(),{orientation:"horizontal",tabIndex:null,onHoverStart:g.ZT})}_initDataAdapter(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||super._initDataAdapter()}_renderContentImpl(){this._renderContextMenuOverlay(),super._renderContentImpl();var re=this._dataAdapter.getNodeByKey(this.option("_parentKey"));re&&this._renderItems(this._getChildNodes(re)),this._renderDelimiter()}_renderDelimiter(){this.$contentDelimiter=(0,c.Z)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}_getOverlayOptions(){return(0,l.l)(super._getOverlayOptions(),{onPositioned:this._overlayPositionedActionHandler.bind(this)})}_overlayPositionedActionHandler(re){this._showDelimiter(re)}_hoverEndHandler(re){super._hoverEndHandler(re),this._toggleFocusClass(!1,re.currentTarget)}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_hoverStartHandler(re){this.option("onHoverStart")(re),super._hoverStartHandler(re),this._toggleFocusClass(!0,re.currentTarget)}_drawSubmenu(re){this._actions.onShowing({rootItem:(0,a.u)(re),submenu:this}),super._drawSubmenu(re),this._actions.onShown({rootItem:(0,a.u)(re),submenu:this})}_hideSubmenu(re){this._actions.onHiding({cancel:!0,rootItem:(0,a.u)(re),submenu:this}),super._hideSubmenu(re),this._actions.onHidden({rootItem:(0,a.u)(re),submenu:this})}_showDelimiter(re){if(this.$contentDelimiter){var te=this._itemContainer().children(".".concat("dx-submenu")).eq(0),ie=this.option("position").of,ue={of:te},be=re.position,Ae=be.v.location,Ne=be.h.location,mt=ie.offset(),tt=Math.round(mt.left),Le=Math.round(mt.top),gt=(0,o.dz)(ie),tn=(0,o.Cr)(ie),Pe=(0,o.dz)(te),$e=(0,o.Cr)(te);this.$contentDelimiter.css("display","block"),(0,o.cl)(this.$contentDelimiter,this._isMenuHorizontal()?gt<Pe?gt-2:Pe:2),(0,o.QQ)(this.$contentDelimiter,this._isMenuHorizontal()?2:tn<$e?tn-2:$e),this._isMenuHorizontal()?Ae>Le?Math.round(Ne)===tt?(ue.offset="1 -1",ue.at=ue.my="left top"):(ue.offset="-1 -1",ue.at=ue.my="right top"):((0,o.QQ)(this.$contentDelimiter,5),Math.round(Ne)===tt?(ue.offset="1 4",ue.at=ue.my="left bottom"):(ue.offset="-1 2",ue.at=ue.my="right bottom")):Ne>tt?Math.round(Ae)===Le?(ue.offset="-1 1",ue.at=ue.my="left top"):(ue.offset="-1 -1",ue.at=ue.my="left bottom"):Math.round(Ae)===Le?(ue.offset="1 1",ue.at=ue.my="right top"):(ue.offset="1 -1",ue.at=ue.my="right bottom"),E.Z.setup(this.$contentDelimiter,ue)}}_getContextMenuPosition(){return this.option("position")}isOverlayVisible(){return this._overlay.option("visible")}getOverlayContent(){return this._overlay.$content()}};var R=u(219),P=u(7463),B="dx-menu",W=B+"-vertical",z=B+"-horizontal",V=B+"-item",U=B+"-items-container",K=V+"-expanded",Y="dx-context-menu",J=Y+"-container-border",q="dx-state-hover",X=B+"-adaptive-mode",M=B+"-hamburger-button",oe=X+"-overlay-wrapper",ae="showSubmenu",_e="nextItem",ye="prevItem",ne={show:50,hide:300},ce=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"];class le extends b.Z{_getDefaultOptions(){return(0,l.l)(super._getDefaultOptions(),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}_setOptionsByReference(){super._setOptionsByReference(),(0,l.l)(this._optionsByReference,{animation:!0,selectedItem:!0})}_itemElements(){var re=super._itemElements(),te=this._submenuItemElements();return re.add(te)}_submenuItemElements(){var re=[],te=".".concat(V),ie=this._submenus.length&&this._submenus[0];return ie&&ie.itemsContainer()&&(re=ie.itemsContainer().find(te)),re}_focusTarget(){return this.$element()}_isMenuHorizontal(){return"horizontal"===this.option("orientation")}_moveFocus(re){var Ae,mt,te=this._getAvailableItems(),ie=this._isMenuHorizontal(),ue=this._getActiveItem(!0);switch(re){case"up":Ae=ie?ae:this._getItemsNavigationOperation(ye),mt=this._getKeyboardNavigationAction(Ae,ie?ue:te)();break;case"down":Ae=ie?ae:this._getItemsNavigationOperation(_e),mt=this._getKeyboardNavigationAction(Ae,ie?ue:te)();break;case"right":Ae=ie?this._getItemsNavigationOperation(_e):ae,mt=this._getKeyboardNavigationAction(Ae,ie?te:ue)();break;case"left":Ae=ie?this._getItemsNavigationOperation(ye):ae,mt=this._getKeyboardNavigationAction(Ae,ie?te:ue)();break;default:return super._moveFocus(re)}mt&&0!==mt.length&&this.option("focusedElement",(0,a.u)(mt))}_getItemsNavigationOperation(re){var te=re;return this.option("rtlEnabled")&&(te=re===ye?_e:ye),te}_getKeyboardNavigationAction(re,te){var ie=g.ZT;switch(re){case ae:te.hasClass("dx-state-disabled")||(ie=this._showSubmenu.bind(this,te));break;case _e:ie=this._nextItem.bind(this,te);break;case ye:ie=this._prevItem.bind(this,te)}return ie}_clean(){super._clean(),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}_visibilityChanged(re){re&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}_isAdaptivityEnabled(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}_updateItemsWidthCache(){var re=this.$element().find("ul").first().children("li").children(".".concat(V));this._menuItemsWidth=this._getSummaryItemsWidth(re,!0)}_dimensionChanged(){if(this._isAdaptivityEnabled()){var re=(0,o.Y_)(this.$element());this._toggleAdaptiveMode(this._menuItemsWidth>re)}}_init(){super._init(),this._submenus=[]}_initActions(){this._actions={},(0,p.S6)(ce,(re,te)=>{this._actions[te]=this._createActionByOption(te)})}_initMarkup(){this._visibleSubmenu=null,this.$element().addClass(B),super._initMarkup(),this._addCustomCssClass(this.$element()),this.setAria("role","menubar")}_render(){super._render(),this._initAdaptivity()}_renderHamburgerButton(){return this._hamburger=new R.Z((0,c.Z)("<div>").addClass(M),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}_toggleTreeView(re){(0,s.PO)(re)&&(re=!this._overlay.option("visible")),this._overlay.option("visible",re),this._toggleHamburgerActiveState(re)}_toggleHamburgerActiveState(re){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",re)}_toggleAdaptiveMode(re){var te=this.$element().find(".".concat(z)),ie=this.$element().find(".".concat(X));re?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(re)),te.toggle(!re),ie.toggle(re)}_removeAdaptivity(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}_treeviewItemClickHandler(re){this._actions.onItemClick(re),re.node.children.length||this._toggleTreeView(!1)}_getAdaptiveOverlayOptions(){var te=this.option("rtlEnabled")?"right":"left";return{_ignoreFunctionValueDeprecation:!0,maxHeight:()=>(0,d._)(this.$element()),deferRendering:!1,shading:!1,animation:!1,hideOnParentScroll:!0,onHidden:()=>{this._toggleHamburgerActiveState(!1)},height:"auto",hideOnOutsideClick:ie=>!(0,c.Z)(ie.target).closest(".".concat(M)).length,position:{collision:"flipfit",at:"bottom "+te,my:"top "+te,of:this._hamburger.$element()}}}_getTreeViewOptions(){var re={};return(0,p.S6)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(te,ie)=>{re[ie]=this.option(ie)}),(0,p.S6)(["onItemContextMenu","onSelectionChanged","onItemRendered"],(te,ie)=>{re[ie]=ue=>{this._actions[ie](ue)}}),(0,l.l)(re,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:te=>{this._overlay.repaint(),this._actions.onSubmenuShown(te)},onItemCollapsed:te=>{this._overlay.repaint(),this._actions.onSubmenuHidden(te)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}_initAdaptivity(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,c.Z)("<div>").addClass(X);var re=this._renderHamburgerButton();this._treeView=this._createComponent((0,c.Z)("<div>"),P.Z,this._getTreeViewOptions()),this._overlay=this._createComponent((0,c.Z)("<div>"),y.Z,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass(X).addClass(this.option("cssClass")),this._overlay.$wrapper().addClass(oe),this._$adaptiveContainer.append(re),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}_getDelay(re){var te=this.option("showFirstSubmenuMode").delay;return(0,s.$K)(te)?(0,s.Kn)(te)?te[re]:te:ne[re]}_keyboardHandler(re){return super._keyboardHandler(re,!!this._visibleSubmenu)}_renderContainer(){var re=(0,c.Z)("<div>");return re.appendTo(this.$element()).addClass(this._isMenuHorizontal()?z:W),super._renderContainer(re)}_renderSubmenuItems(re,te){var ie=this._createSubmenu(re,te);return this._submenus.push(ie),this._renderBorderElement(te),ie}_getKeyboardListeners(){return super._getKeyboardListeners().concat(this._visibleSubmenu)}_createSubmenu(re,te){var ie=(0,c.Z)("<div>").addClass(Y).appendTo(te),ue=this._getChildNodes(re),be=this._createComponent(ie,k,(0,l.l)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:re.internalFields.key,items:ue,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(te)}));return this._attachSubmenuHandlers(te,be),be}_getSubmenuOptions(){var re=(0,c.Z)("<div>"),te=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:re,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:ie=>{ie.component.option("visible")&&this.option("focusedElement",ie.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:te?null:this._moveMainMenuFocus.bind(this,ye),onLeftLastItem:te?null:this._moveMainMenuFocus.bind(this,_e),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,te?ye:null),onExpandLastSubmenu:te?this._moveMainMenuFocus.bind(this,_e):null}}_getShowFirstSubmenuMode(){if(!this._isDesktopDevice())return"onClick";var re=this.option("showFirstSubmenuMode");return(0,s.Kn)(re)?re.name:re}_moveMainMenuFocus(re){var te=this._getAvailableItems(),ie=te.length,ue=te.filter(".".concat(K)).eq(0),be=te.index(ue);this._hideSubmenu(this._visibleSubmenu),(be+=re===ye?-1:1)>=ie?be=0:be<0&&(be=ie-1);var Ae=te.eq(be);this.option("focusedElement",(0,a.u)(Ae))}_nestedItemOnSelectionChangedHandler(re){var te=re.addedItems.length&&re.addedItems[0],ie=k.getInstance(re.element);(0,this._actions.onSelectionChanged)(re),te&&this._clearSelectionInSubmenus(te[0],ie),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",te)}_clearSelectionInSubmenus(re,te){var ie=!arguments.length;(0,p.S6)(this._submenus,(ue,be)=>{var Ae=be._itemContainer(),Ne=!Ae.is(te&&te._itemContainer()),mt=Ae.find(".".concat(this._selectedItemClass()));if(Ne&&mt.length||ie){mt.removeClass(this._selectedItemClass());var tt=this._getItemData(mt);tt&&(tt.selected=!1),be._clearSelectedItems()}})}_clearRootSelection(){var re=this.$element().find(".".concat(U)).first().children().children().filter(".".concat(this._selectedItemClass()));re.length&&(this._getItemData(re).selected=!1,re.removeClass(this._selectedItemClass()))}_nestedItemOnItemClickHandler(re){this._actions.onItemClick(re)}_nestedItemOnItemRenderedHandler(re){this._actions.onItemRendered(re)}_attachSubmenuHandlers(re,te){var ue=te.getOverlayContent().find(".".concat("dx-submenu")),be=(0,h.V4)(x.u,this.NAME+"_submenu");te.option({onShowing:this._submenuOnShowingHandler.bind(this,re,te),onShown:this._submenuOnShownHandler.bind(this,re,te),onHiding:this._submenuOnHidingHandler.bind(this,re,te),onHidden:this._submenuOnHiddenHandler.bind(this,re,te)}),(0,p.S6)(ue,(Ae,Ne)=>{I.Z.off(Ne,be),I.Z.on(Ne,be,null,this._submenuMouseLeaveHandler.bind(this,re))})}_submenuOnShowingHandler(re,te){var ie=re.children(".".concat(J));this._actions.onSubmenuShowing({rootItem:(0,a.u)(re),submenu:te}),ie.show(),re.addClass(K)}_submenuOnShownHandler(re,te){this._actions.onSubmenuShown({rootItem:(0,a.u)(re),submenu:te})}_submenuOnHidingHandler(re,te,ie){var ue=re.children(".".concat(J)),be=ie;be.rootItem=(0,a.u)(re),be.submenu=te,this._actions.onSubmenuHiding(be),(ie=be).cancel||(this._visibleSubmenu===te&&(this._visibleSubmenu=null),ue.hide(),re.removeClass(K))}_submenuOnHiddenHandler(re,te){this._actions.onSubmenuHidden({rootItem:(0,a.u)(re),submenu:te})}_submenuMouseLeaveHandler(re,te){var ie=(0,c.Z)(te.relatedTarget).parents(".".concat(Y))[0],ue=this._getSubmenuByRootElement(re).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&ie!==ue&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}_hideSubmenuAfterTimeout(){if(this._visibleSubmenu){var re=(0,c.Z)(this._visibleSubmenu.$element().context).hasClass(q),te=this._visibleSubmenu.getOverlayContent().find(".".concat(q)).length;!this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")&&!te&&!re&&this._visibleSubmenu.hide()}}_getSubmenuByRootElement(re){if(!re)return!1;var te=re.children(".".concat(Y));return te.length&&k.getInstance(te)}getSubmenuPosition(re){var te=this._isMenuHorizontal(),ie=this.option("submenuDirection").toLowerCase(),ue=this.option("rtlEnabled"),be={collision:"flip",of:re};switch(ie){case"leftortop":be.at="left top",be.my=te?"left bottom":"right top";break;case"rightorbottom":be.at=te?"left bottom":"right top",be.my="left top";break;default:te?(be.at=ue?"right bottom":"left bottom",be.my=ue?"right top":"left top"):(be.at=ue?"left top":"right top",be.my=ue?"right top":"left top")}return be}_renderBorderElement(re){(0,c.Z)("<div>").appendTo(re).addClass(J).hide()}_itemPointerDownHandler(re){(0,c.Z)(re.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):super._itemPointerDownHandler(re)}_hoverStartHandler(re){var te=(0,h.V4)(v.Z.move,this.NAME),ie=this._getItemElementByEventArgs(re),ue=this._dataAdapter.getNodeByItem(this._getItemData(ie)),be=(0,s.$K)(re.buttons)&&1===re.buttons||!(0,s.$K)(re.buttons)&&1===re.which;if(!this._isItemDisabled(ie)){if(I.Z.off(ie,te),!this._hasChildren(ue))return void(this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")));if("onHover"===this._getShowFirstSubmenuMode()&&!be){var Ae=this._getSubmenuByElement(ie);this._clearTimeouts(),Ae.isOverlayVisible()||(I.Z.on(ie,te,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}}_hoverEndHandler(re){var te=this._getItemElementByEventArgs(re),ie=(0,c.Z)(re.relatedTarget);super._hoverEndHandler(re),this._clearTimeouts(),!this._isItemDisabled(te)&&(ie.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!ie.hasClass(U)&&(this._hideSubmenuTimer=setTimeout(()=>{this._hideSubmenuAfterTimeout()},this._getDelay("hide"))))}_hideVisibleSubmenu(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}_showSubmenu(re){var te=this._getSubmenuByElement(re);this._visibleSubmenu!==te&&this._hideVisibleSubmenu(),te&&(this._clearTimeouts(),this.focus(),te.show(),this.option("focusedElement",te.option("focusedElement"))),this._visibleSubmenu=te,this._hoveredRootItem=re}_hideSubmenu(re){re&&re.hide(),this._visibleSubmenu===re&&(this._visibleSubmenu=null),this._hoveredRootItem=null}_itemMouseMoveHandler(re){if(!re.pointers||!re.pointers.length){var te=(0,c.Z)(re.currentTarget);(0,s.$K)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout(()=>{var ie=this._getSubmenuByElement(te);ie&&!ie.isOverlayVisible()&&this._showSubmenu(te)},this._getDelay("show")))}}_clearTimeouts(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}_getSubmenuByElement(re,te){var ie=this._getSubmenuByRootElement(re);if(ie)return ie;te=te||this._getItemData(re);var ue=this._dataAdapter.getNodeByItem(te);return this._hasChildren(ue)&&this._renderSubmenuItems(ue,re)}_updateSubmenuVisibilityOnClick(re){var te=re.args.length&&re.args[0];if(te&&!this._disabledGetter(te.itemData)){var ie=(0,c.Z)(te.itemElement),ue=this._getSubmenuByElement(ie,te.itemData);if(this._updateSelectedItemOnClick(re),this._visibleSubmenu){if(this._visibleSubmenu===ue)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}if(ue&&!ue.isOverlayVisible())return void this._showSubmenu(ie)}}_optionChanged(re){if(ce.indexOf(re.name)>=0)this._initActions();else switch(re.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(re.name,re.value);break;case"adaptivityEnabled":re.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(re.name,re.value),this._overlay.option(re.name,re.value)),super._optionChanged(re),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!re.value),super._optionChanged(re);break;default:this._isAdaptivityEnabled()&&(re.name===re.fullName||"items"===re.name)&&this._treeView.option(re.fullName,re.value),super._optionChanged(re)}}_changeSubmenusOption(re,te){(0,p.S6)(this._submenus,(ie,ue)=>{ue.option(re,te)})}selectItem(re){this._hideSubmenu(this._visibleSubmenu),super.selectItem(re)}unselectItem(re){this._hideSubmenu(this._visibleSubmenu),super.selectItem(re)}}(0,C.Z)("dxMenu",le);const pe=le},7257:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>U});var o=u(1805),c=u(9904),I=u(6961),C=u(3553),g={move(K,Y){(0,I.pB)(K,{left:Y})}},a={moveTo(K,Y,J,j){C.Z.animate(K,{type:"slide",to:{left:Y},duration:J,complete:j})},complete(K){C.Z.stop(K,!0)}},p=u(3487),s=u(5873),l=u(7674),d=u(2526),h=u(6881),v=u(1828),x=u(2941),b=u(8506),y=u(5286),E=u(4969),S=u(4270),O="dx-multiview",w="dx-multiview-wrapper",T="dx-multiview-item-container",k="dx-multiview-item",W=K=>+K,V=y.Z.inherit({_activeStateUnit:"."+k,_supportedKeys:function(){return(0,s.l)(this.callBase(),{pageUp:l.ZT,pageDown:l.ZT})},_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===x.Z.real().deviceType&&!x.Z.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return k},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=(0,o.dz)(this._$wrapper)),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(K){var Y=this._itemsCount();return K<0&&(K+=Y),K>=Y&&(K-=Y),K},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var K=this.$element();K.addClass(O),this._$wrapper=(0,c.Z)("<div>").addClass(w),this._$wrapper.appendTo(K),this._$itemContainer=(0,c.Z)("<div>").addClass(T),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var K=this._getSelectedItemIndices();this._updateItemsVisibility(K[0])},_afterItemElementDeleted:function(K,Y){this.callBase(K,Y),this._deferredItems&&this._deferredItems.splice(Y.itemIndex,1)},_beforeItemElementInserted:function(K){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(K.index,0,null)},_executeItemRenderAction:function(K,Y,J){K=(this.option("items")||[]).indexOf(Y),this.callBase(K,Y,J)},_renderItemContent:function(K){var Y=new S.BH,J=this,j=this.callBase,ee=new S.BH;return ee.done(function(){var G=j.call(J,K);Y.resolve(G)}),this._deferredItems[K.index]=ee,this.option("deferRendering")||ee.resolve(),Y.promise()},_render:function(){this.callBase(),(0,l.g0)(()=>{var K=this._getSelectedItemIndices();this._updateItems(K[0])})},_updateItems:function(K,Y){this._updateItemsPosition(K,Y),this._updateItemsVisibility(K,Y)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var K=this._getSelectedItemIndices();this._updateItemsVisibility(K[0])},_updateItemsPosition:function(K,Y){var J=this._itemElements(),j=(0,v.$K)(Y)?-this._animationDirection(Y,K):void 0,ee=J.eq(K);g.move(ee,0),(0,v.$K)(Y)&&g.move(J.eq(Y),100*j+"%")},_updateItemsVisibility:function(K,Y){this._itemElements().each(function(j,ee){var G=(0,c.Z)(ee),q=j!==K&&j!==Y;q||this._renderSpecificItem(j),G.toggleClass("dx-multiview-item-hidden",q),this.setAria("hidden",q||void 0,G)}.bind(this))},_renderSpecificItem:function(K){var Y=this._itemElements().eq(K),J=Y.find(this._itemContentClass()).length>0;(0,v.$K)(K)&&!J&&(this._deferredItems[K].resolve(),(0,d.U_)(Y))},_refreshItem:function(K,Y){this.callBase(K,Y),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:l.ZT,_updateSelection:function(K,Y){var J=K[0],j=Y[0];a.complete(this._$itemContainer),this._updateItems(j,J);var ee=this._animationDirection(J,j);this._animateItemContainer(ee*this._itemWidth(),function(){g.move(this._$itemContainer,0),this._updateItems(J),(0,o.dz)(this._$itemContainer)}.bind(this))},_animateItemContainer:function(K,Y){var J=this.option("animationEnabled")?200:0;a.moveTo(this._$itemContainer,K,J,Y)},_animationDirection:function(K,Y){var J=(K=>(0,I.jt)(this._$itemContainer).left)(),j=(Y-K)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection();return(0,p.Xx)(0!==J?J:j)},_getSwipeDisabledState(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable(){this._createComponent(this.$element(),E.Z,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:K=>this._swipeStartHandler(K.event),onUpdated:K=>this._swipeUpdateHandler(K.event),onEnd:K=>this._swipeEndHandler(K.event)})},_swipeStartHandler:function(K){a.complete(this._$itemContainer);var Y=this.option("selectedIndex"),J=this.option("loop"),j=this._itemsCount()-1,ee=this.option("rtlEnabled");K.maxLeftOffset=W(J||(ee?Y>0:Y<j)),K.maxRightOffset=W(J||(ee?Y<j:Y>0)),this._swipeDirection=null},_swipeUpdateHandler:function(K){var Y=K.offset,J=(0,p.Xx)(Y)*this._getRTLSignCorrection();if(g.move(this._$itemContainer,Y*this._itemWidth()),J!==this._swipeDirection){this._swipeDirection=J;var j=this.option("selectedIndex"),ee=this._normalizeIndex(j-J);this._updateItems(j,ee)}},_swipeEndHandler:function(K){var Y=K.targetOffset*this._getRTLSignCorrection();if(Y){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-Y));var J=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,h.u)(J))}else this._animateItemContainer(0,l.ZT)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(K){var Y=this.callBase.apply(this,arguments);return this._itemFocusLooped=Y.is(K.last()),Y},_nextItem:function(K){var Y=this.callBase.apply(this,arguments);return this._itemFocusLooped=Y.is(K.first()),Y},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(K){K&&this._dimensionChanged()},_updateSwipeDisabledState(){var K=this._getSwipeDisabledState();E.Z.getInstance(this.$element()).option("disabled",K)},_optionChanged:function(K){var Y=K.value;switch(K.name){case"loop":this.option("loopItemFocus",Y);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(K);break;default:this.callBase(K)}}});(0,b.Z)("dxMultiView",V);const U=V},1007:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o=u(9904),c=u(1469),I=u(5873),C=u(1828),g=u(4514),a=u(4131),p=(0,g.Jj)(),s=null,l={},E=(w,T)=>{var{toastWidth:k,toastHeight:R,windowHeight:P,windowWidth:B}=T;switch(w){case"top left":return{top:10,left:10};case"top right":return{top:10,right:10};case"bottom left":return{bottom:10,left:10};case"bottom right":return{bottom:10,right:10};case"top center":return{top:10,left:Math.round(B/2-k/2)};case"left center":return{top:Math.round(P/2-R/2),left:10};case"right center":return{top:Math.round(P/2-R/2),right:10};case"center":return{top:Math.round(P/2-R/2),left:Math.round(B/2-k/2)};default:return{bottom:10,left:Math.round(B/2-k/2)}}},S=(w,T,k)=>{var R,P,B,W,z,V,U,K,Y,J,j,ee,{toastWidth:G,toastHeight:q,windowHeight:Z,windowWidth:X}=k;switch(w.replace(/-push|-stack/g,"")){case"up":return{bottom:null!==(R=T.bottom)&&void 0!==R?R:Z-q-T.top,top:"",left:null!==(P=T.left)&&void 0!==P?P:"",right:null!==(B=T.right)&&void 0!==B?B:""};case"down":return{top:null!==(W=T.top)&&void 0!==W?W:Z-q-T.bottom,bottom:"",left:null!==(z=T.left)&&void 0!==z?z:"",right:null!==(V=T.right)&&void 0!==V?V:""};case"left":return{right:null!==(U=T.right)&&void 0!==U?U:X-G-T.left,left:"",top:null!==(K=T.top)&&void 0!==K?K:"",bottom:null!==(Y=T.bottom)&&void 0!==Y?Y:""};case"right":return{left:null!==(J=T.left)&&void 0!==J?J:X-G-T.right,right:"",top:null!==(j=T.top)&&void 0!==j?j:"",bottom:null!==(ee=T.bottom)&&void 0!==ee?ee:""}}};const O=function d(w,T,k){var R=(0,C.PO)(w)?w:{message:w},P=(0,C.PO)(T)?T:void 0,B=(0,C.PO)(T)?void 0:T,{onHidden:W}=R;if(null!=P&&P.position){var{position:z}=P,V=P.direction||(w=>(0,C.HD)(w)&&w.includes("top")?"down-push":"up-push")(z),U=(0,C.HD)(z)?z:"".concat(z.top,"-").concat(z.left,"-").concat(z.bottom,"-").concat(z.right),{onShowing:K}=R,Y=(w=>l[w]||(w=>{var T=(0,o.Z)("<div>").appendTo((0,c.S3)());return l[w]=T,T})(w))(U);((w,T)=>{var k="dx-toast-stack dx-toast-stack-".concat(T,"-direction");w.removeAttr("class").addClass(k)})(Y,V),(0,I.l)(R,{container:Y,onShowing:function(J){((w,T,k)=>{var{offsetWidth:R,offsetHeight:P}=w.children().first().get(0),B={toastWidth:R,toastHeight:P,windowHeight:p.innerHeight,windowWidth:p.innerWidth},W=(0,C.HD)(k)?E(k,B):k,z=S(T,W,B);w.css(z)})(Y,V,z),K?.(J)}})}(0,I.l)(R,{type:B,displayTime:k,onHidden:function(J){(0,o.Z)(J.element).remove(),W?.(J)}}),s=(0,o.Z)("<div>").appendTo((0,c.S3)()),new a.Z(s,R).show()}},1946:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>$e});var o=u(8506),c=u(913),I=u(5873),C=u(1828),g=u(2941),a=u(3487),p=u(658),s=u(7674),l=function(ge){for(var Ce=0,De=0,Ye=0;Ye<ge.length;++Ye)if("'"===ge[Ye]&&Ce++,"."===ge[Ye]&&(++De,Ce%2==0))return{occurrence:De,index:Ye};return{occurrence:1,index:-1}},d=function(ge,Ce,De){for(var Ye=-1;De--&&Ye++<ge.length;)Ye=ge.indexOf(Ce,Ye);return Ye},h=function(ge,Ce){return-1===Ce?[ge]:[ge.slice(0,Ce),ge.slice(Ce+1)]},x=function(ge,Ce){if("string"==typeof Ce){var De=Ce.split(";"),Ye=p.Z.getSign(ge,Ce);De[1]=De[1]||"-"+De[0],Ce=(Ce=De[Ye<0?1:0]).replace(/'([^']*)'/g,gn=>gn.split("").map(()=>" ").join("").substr(2));var bt=/^[^#0.,]*/.exec(Ce)[0].length,yt=/[^#0.,]*$/.exec(Ce)[0].length;return{start:bt,end:ge.length-yt}}return{start:0,end:ge.length}},b=function(ge,Ce){var De=p.Z.getDecimalSeparator(),Ye=new RegExp("[^0-9"+(0,s.hr)(De)+"]","g");return Ce.slice(0,ge).replace(Ye,"").length},y=function(ge){return ge.split("").reverse().join("")},E=function(ge,Ce){if(!ge)return-1;for(var De=/[0-9]/g,Ye=1,bt=null,yt=De.exec(Ce);yt;){if(bt=yt.index,Ye>=ge)return bt;Ye++,yt=De.exec(Ce)}return null===bt?Ce.length:bt},O=function(ge,Ce){return void 0===ge.start&&(ge={start:ge,end:ge}),{start:ge.start+Ce,end:ge.end+Ce}};function R(ge,Ce,De){ge=O(ge,0);var Ye=x(Ce,De);return{start:(0,a.n$)(ge.start,Ye.start,Ye.end),end:(0,a.n$)(ge.end,Ye.start,Ye.end)}}var B=u(6865),W=u(9904),z=u(9897),V=u(4722),U=u(7383),K=u(8225),Y=u(5251),J=u(6853),j=u(8690),ee=u(1409),G=u(5180),q=u(4270),oe="dxNumberBox",fe=(0,K.V4)(j.Z.up,oe),Te=(0,K.V4)(j.Z.cancel,oe);const ze=J.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var ge="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(ge),this._spinIcon=(0,W.Z)("<div>").addClass(ge+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var ge=(0,K.V4)(j.Z.down,this.NAME),Ce=this.$element();c.Z.off(Ce,ge),c.Z.on(Ce,ge,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(ge){ge.preventDefault(),this._clearTimer(),c.Z.on(this.$element(),G.Z.name,function(){this._feedBackDeferred=new q.BH,(0,ee.dR)(this._feedBackDeferred),this._spinChangeHandler({event:ge}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:ge})}.bind(this));var Ce=z.Z.getDocument();c.Z.on(Ce,fe,this._clearTimer.bind(this)),c.Z.on(Ce,Te,this._clearTimer.bind(this)),this._spinChangeHandler({event:ge})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){c.Z.off(this.$element(),G.Z.name);var ge=z.Z.getDocument();c.Z.off(ge,fe),c.Z.off(ge,Te),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(ge){switch(ge.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(ge)}}});class ne extends Y.Z{_attachEvents(Ce,De){var{editor:Ye}=this,bt=(0,K.V4)(j.Z.down,Ye.NAME),yt=De.children(),kt=Ye._createAction(gn=>Ye._spinButtonsPointerDownHandler(gn));c.Z.off(De,bt),c.Z.on(De,bt,gn=>kt({event:gn})),ze.getInstance(yt.eq(0)).option("onChange",gn=>Ye._spinUpChangeHandler(gn)),ze.getInstance(yt.eq(1)).option("onChange",gn=>Ye._spinDownChangeHandler(gn))}_create(){var{editor:Ce}=this,De=(0,W.Z)("<div>").addClass("dx-numberbox-spin-container"),Ye=(0,W.Z)("<div>").appendTo(De),bt=(0,W.Z)("<div>").appendTo(De),yt=this._getOptions();return this._addToContainer(De),Ce._createComponent(Ye,ze,(0,I.l)({direction:"up"},yt)),Ce._createComponent(bt,ze,(0,I.l)({direction:"down"},yt)),this._legacyRender(Ce.$element(),this._isTouchFriendly(),yt.visible),{instance:De,$element:De}}_getOptions(){var{editor:Ce}=this;return{visible:this._isVisible(),disabled:Ce.option("disabled")}}_isVisible(){var{editor:Ce}=this;return super._isVisible()&&Ce.option("showSpinButtons")}_isTouchFriendly(){var{editor:Ce}=this;return Ce.option("showSpinButtons")&&Ce.option("useLargeSpinButtons")}_legacyRender(Ce,De,Ye){Ce.toggleClass("dx-numberbox-spin-touch-friendly",De),Ce.toggleClass("dx-numberbox-spin",Ye)}update(){if(super.update()){var{editor:De,instance:Ye}=this,bt=De.$element(),yt=this._isVisible(),kt=this._isTouchFriendly(),gn=Ye.children(),ut=ze.getInstance(gn.eq(0)),Ve=ze.getInstance(gn.eq(1)),St=this._getOptions();ut.option(St),Ve.option(St),this._legacyRender(bt,kt,yt)}}}var ce=u(9009),le=Math,Se=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],te=U.Z.inherit({_supportedKeys:function(){return(0,I.l)(this.callBase(),{upArrow:function(ge){(0,K.j1)(ge)||(ge.preventDefault(),ge.stopPropagation(),this._spinUpChangeHandler(ge))},downArrow:function(ge){(0,K.j1)(ge)||(ge.preventDefault(),ge.stopPropagation(),this._spinDownChangeHandler(ge))},enter:function(){}})},_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:ce.Z.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_useTemplates:function(){return!1},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:ne}])},_isSupportInputMode:function(){var ge=parseFloat(V.Z.version);return V.Z.chrome&&ge>=66||V.Z.safari&&ge>=12},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return g.Z.real().generic&&!g.Z.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==g.Z.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var ge=this.callBase();return ge.inputmode="decimal",ge},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=(0,W.Z)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(ge){this._getSubmitElement().val((0,s.FH)(ge))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(ge){this.callBase(ge);var Ce=(0,K.qK)(ge);if(!/[\d.,eE\-+]/.test(Ce)){var Ye=(0,K.EV)(ge);return(0,K.j1)(ge)||Ye&&Se.includes(Ye)?void 0:(ge.preventDefault(),!1)}this._keyPressed=!0},_onMouseWheel:function(ge){this._spinValueChange(ge.delta>0?1:-1,ge)},_renderValue:function(){var ge=this._input().val(),Ce=this.option("value");(!ge.length||Number(ge)!==Ce)&&(this._forceValueRender(),this._toggleEmptinessEventHandler());var De=(0,C.$K)(Ce)?null:ce.Z.format("dxNumberBox-noDataText");return this.setAria({valuenow:(0,s.IS)(Ce,""),valuetext:De}),this.option("text",this._input().val()),this._updateButtons(),(new q.BH).resolve()},_forceValueRender:function(){var ge=this.option("value"),Ce=Number(ge),De=isNaN(Ce)?"":this._applyDisplayValueFormatter(ge);this._renderDisplayText(De)},_applyDisplayValueFormatter:function(ge){return this.option("displayValueFormatter")(ge)},_renderProps:function(){this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:(0,s.IS)(this.option("min"),""),valuemax:(0,s.IS)(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var ge=this._input();!this.option("useLargeSpinButtons")&&z.Z.getActiveElement()!==ge[0]&&c.Z.trigger(ge,"focus")},_spinUpChangeHandler:function(ge){this.option("readOnly")||this._spinValueChange(1,ge.event||ge)},_spinDownChangeHandler:function(ge){this.option("readOnly")||this._spinValueChange(-1,ge.event||ge)},_spinValueChange:function(ge,Ce){var De=parseFloat(this.option("step"));if(0!==De){var Ye=parseFloat(this._normalizeInputValue())||0;Ye=this._correctRounding(Ye,De*ge);var bt=this.option("min"),yt=this.option("max");(0,C.$K)(bt)&&(Ye=Math.max(bt,Ye)),(0,C.$K)(yt)&&(Ye=Math.min(yt,Ye)),this._saveValueChangeEvent(Ce),this.option("value",Ye)}},_correctRounding:function(ge,Ce){var De=/[,.](.*)/,Ye=De.test(ge),bt=De.test(Ce);if(Ye||bt){var yt=Ye?De.exec(ge)[0].length:0,kt=bt?De.exec(Ce)[0].length:0,gn=le.max(yt,kt);return this._round(ge+Ce,gn)}return ge+Ce},_round:function(ge,Ce){Ce=Ce||0;var De=Math.pow(10,Ce);return ge*=De,Math.round(ge)/De},_renderValueChangeEvent:function(){this.callBase();var ge=(0,K.V4)("focusout","NumberBoxForceValueChange");c.Z.off(this.element(),ge),c.Z.on(this.element(),ge,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var ge=this._input(),Ce=this._applyDisplayValueFormatter(this.option("value"));ge.val(null),ge.val(Ce)}},_valueChangeEventHandler:function(ge){var Ce=this._input(),De=this._normalizeText(),Ye=this._parseValue(De),bt="."!==De&&"-"!==De;!this._isValueValid()||this._validateValue(Ye)?(bt&&this.callBase(ge,isNaN(Ye)?null:Ye),this._applyValueBoundaries(De,Ye),this.validationRequest.fire({value:Ye,editor:this})):Ce.val(this._applyDisplayValueFormatter(Ye))},_applyValueBoundaries:function(ge,Ce){var De=this._isValueIncomplete(ge),Ye=this._isValueInRange(ge);!De&&!Ye&&null!==Ce&&Number(ge)!==Ce&&this._input().val(this._applyDisplayValueFormatter(Ce))},_replaceCommaWithPoint:function(ge){return ge.replace(",",".")},_inputIsInvalid:function(){var ge="number"===this.option("mode"),Ce=this._input().get(0).validity;return ge&&Ce&&Ce.badInput},_renderDisplayText:function(ge){this._inputIsInvalid()||this.callBase(ge)},_isValueIncomplete:function(ge){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(ge)},_isValueInRange:function(ge){return(0,a.Z2)(ge,this.option("min"),this.option("max"))},_isNumber:function(ge){return null!==this._parseValue(ge)},_validateValue:function(ge){var Ce=this._normalizeText(),De=this._isValueValid(),Ye=!0,bt=this._isNumber(Ce);return isNaN(Number(ge))&&(Ye=!1),!ge&&De?Ye=!0:!bt&&!De&&(Ye=!1),this.option({isValid:Ye,validationError:Ye?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),Ye},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var ge=this._input().val().trim();return this._replaceCommaWithPoint(ge)},_parseValue:function(ge){var Ce=parseFloat(ge);return isNaN(Ce)?null:(0,a.n$)(Ce,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(ge){switch(ge.name){case"value":this._validateValue(ge.value),this._setSubmitValue(ge.value),this.callBase(ge),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(ge)}}}),ue="dxNumberFormatter",mt="minus";const tn=te.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(ge){return"del"===ge},_supportedKeys:function(){return this._useMaskBehavior()?(0,I.l)(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,-1),rightArrow:this._arrowHandler.bind(this,1),home:this._moveCaretToBoundaryEventHandler.bind(this,1),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,-1)}):this.callBase()},_getTextSeparatorIndex:function(ge){var Ce=p.Z.getDecimalSeparator(),De=l(this.option("format")).occurrence;return d(ge,Ce,De)},_focusInHandler:function(ge){this._preventNestedFocusEvent(ge)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0;var Ce=this._caret();if(Ce.start===Ce.end&&this._useMaskBehavior()){var De=this._getInputVal(),Ye=this._getTextSeparatorIndex(De);Ye>=0?this._caret({start:Ye,end:Ye}):this._moveCaretToBoundaryEventHandler(-1,ge)}}.bind(this),0)),this.callBase(ge)},_focusOutHandler:function(ge){var Ce=!this._preventNestedFocusEvent(ge);Ce&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(ge),Ce&&(this._focusOutOccurs=!1)},_hasValueBeenChanged(ge){var Ce=this._getFormatPattern(),De=this.option("value");return(this._format(De,Ce)||"")!==ge},_updateFormattedValue:function(){var ge=this._getInputVal();this._hasValueBeenChanged(ge)&&(this._updateParsedValue(),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&c.Z.trigger(this._input(),"change"))},_arrowHandler:function(ge,Ce){if(this._useMaskBehavior()){var De=this._getInputVal(),Ye=this._getFormatPattern(),bt=O(this._caret(),ge);(function(ge,Ce,De){var Ye=R(ge=O(ge,0),Ce,De);return ge.start>=Ye.start&&ge.end<=Ye.end})(bt,De,Ye)||(bt=1===ge?bt.end:bt.start,Ce.preventDefault(),this._caret(R(bt,De,Ye)))}},_moveCaretToBoundary:function(ge){var Ce=x(this._getInputVal(),this._getFormatPattern()),De=O(1===ge?Ce.start:Ce.end,0);this._caret(De)},_moveCaretToBoundaryEventHandler:function(ge,Ce){!this._useMaskBehavior()||Ce&&Ce.shiftKey||(this._moveCaretToBoundary(ge),Ce&&Ce.preventDefault())},_shouldMoveCaret:function(ge,Ce){var De=p.Z.getDecimalSeparator(),Ye=ge.charAt(Ce.end)===De;return(this._lastKey===De||"."===this._lastKey||","===this._lastKey)&&Ye},_getInputVal:function(){return p.Z.convertDigits(this._input().val(),!0)},_keyboardHandler:function(ge){if(this.clearCaretTimeout(),this._lastKey=p.Z.convertDigits((0,K.qK)(ge),!0),this._lastKeyName=(0,K.EV)(ge),!this._shouldHandleKey(ge.originalEvent))return this.callBase(ge);var Ce=this._getInputVal(),De=this._caret(),bt=this._tryParse(Ce,De,this._lastKeyName===mt?"":this._lastKey);return this._shouldMoveCaret(Ce,De)&&(this._moveCaret(1),ge.originalEvent.preventDefault()),void 0===bt?this._lastKeyName!==mt&&ge.originalEvent.preventDefault():this._parsedValue=bt,this.callBase(ge)},_keyPressHandler:function(ge){this._useMaskBehavior()||this.callBase(ge)},_removeHandler:function(ge){var Ce=this._caret(),De=this._getInputVal(),Ye=Ce.start,bt=Ce.end;this._lastKey=(0,K.qK)(ge),this._lastKeyName=(0,K.EV)(ge);var yt=this._isDeleteKey(this._lastKeyName),kt=!yt;if(Ye===bt){if(!(kt&&Ye>0||yt&&Ye<De.length))return void ge.preventDefault();yt&&bt++,kt&&Ye--}var Ve=De.slice(Ye,bt);if(this._isStub(Ve))return this._moveCaret(yt?1:-1),(this._parsedValue<0||1/this._parsedValue==-1/0)&&(this._revertSign(ge),this._setTextByParsedValue()),void ge.preventDefault();var St=p.Z.getDecimalSeparator();if(Ve!==St){if(bt-Ye<De.length&&this._replaceSelectedText(De,{start:Ye,end:bt},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue==-1/0?-0:0);var dt=this._tryParse(De,{start:Ye,end:bt},"");void 0===dt?ge.preventDefault():this._parsedValue=dt}else{var Xe=De.indexOf(St);this._isNonStubAfter(Xe+1)&&(this._moveCaret(yt?1:-1),ge.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(ge,Ce){var De=this.option("format"),Ye=(0,C.mf)(De.parser),bt=Ye?De.parser:p.Z.parse,yt=0;if(!Ye){var kt=l(Ce).index,gn=this._getTextSeparatorIndex(ge),ut=-1!==kt?kt:Ce.length,Ve=-1!==gn?gn:ge.length;Ve>ut&&-1===Ce.indexOf("#")&&(yt=Ve-ut)}return bt(ge=ge.substr(yt),Ce)},_format:function(ge,Ce){var De=this.option("format"),Ye=De?.formatter||De,bt=(0,C.mf)(Ye)?Ye:p.Z.format;return null===ge?"":bt(ge,Ce)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var ge=this.option("format"),Ce=(0,C.mf)(ge?.parser),De=(0,C.HD)(ge)&&(ge.indexOf("0")>=0||ge.indexOf("#")>=0);this._currentFormat=Ce||De||"exponential"===ge||"exponential"===ge?.type?ge:(0,B.y)(yt=>{var kt=this._format(yt,ge);return p.Z.convertDigits(kt,!0)})},_getFormatForSign:function(ge){var Ce=this._getFormatPattern();if((0,C.HD)(Ce)){var De=Ce.split(";"),Ye=p.Z.getSign(ge,Ce);return De[1]=De[1]||"-"+De[0],Ye<0?De[1]:De[0]}return p.Z.getSign(ge)<0?"-":""},_removeStubs:function(ge,Ce){var De=this._getFormatForSign(ge),Ye=p.Z.getThousandsSeparator(),bt=this._getStubs(De),yt=ge;if(bt.length){var kt=bt[0],gn=new RegExp("("+(0,s.hr)(bt[1]||"")+")$","g"),ut=new RegExp("[-"+(0,s.hr)(Ce?"":Ye)+"]","g");yt=yt.replace(kt,"").replace(gn,"").replace(ut,"")}return yt},_getStubs:function(ge){var Ce=/[^']([#0.,]+)/g.exec(ge),De=Ce&&Ce[0].trim();return ge.split(De).map(function(Ye){return Ye.replace(/'/g,"")})},_truncateToPrecision:function(ge,Ce){if((0,C.$K)(ge)){var De=ge.toString(),Ye=De.indexOf(".");if(De&&Ye>-1){var bt=parseFloat(De.substr(0,Ye+Ce+1));return isNaN(bt)?ge:bt}}return ge},_tryParse:function(ge,Ce,De){var Ye=this._replaceSelectedText(ge,Ce,De),bt=this._getFormatPattern(),yt=Ce.start!==Ce.end,kt=this._getParsedValue(Ye,bt),gn=!bt.parser&&this._getPrecisionLimits(Ye).max,ut=kt!==this._parsedValue,St=De===p.Z.getDecimalSeparator()&&0===gn,Xe=!yt&&!ut&&"-"!==De&&!this._isValueIncomplete(Ye)&&this._isStub(De);if(!St&&!Xe&&(""===this._removeStubs(Ye)&&(kt=Math.abs(0*this._parsedValue)),!isNaN(kt)))return kt=gn?this._truncateToPrecision(null===kt?this._parsedValue:kt,gn):kt,!bt.parser&&this._isPercentFormat()?function(ge,Ce){return ge&&(0,a.zB)(ge/100,Ce)}(kt,gn):kt},_getParsedValue:function(ge,Ce){var De=p.Z.getSign(ge,Ce?.formatter||Ce),Ye=this._removeStubs(ge,!0),bt=this._parse(Ye,Ce),yt=bt<0?-1:1;return(0,C.kE)(bt)&&De!==yt?De*bt:bt},_isValueIncomplete:function(ge){if(!this._useMaskBehavior())return this.callBase(ge);var Ce=this._caret(),De=p.Z.getDecimalSeparator(),Ye=this._getTextSeparatorIndex(ge),bt=Ye>=0&&Ye<Ce.start,yt=this._removeStubs(ge,!0).split(De);if(!bt||2!==yt.length)return!1;var kt=yt[1].length,ut=!!this._getFormatPattern().parser,Ve=!ut&&this._getPrecisionLimits(this._getFormatPattern(),ge),St=!!ut||(0,a.Z2)(kt,Ve.min,Ve.max),Xe="0"===yt[1].charAt(kt-1);return St&&(Xe||!kt)},_isValueInRange:function(ge){var Ce=(0,s.IS)(this.option("min"),-1/0),De=(0,s.IS)(this.option("max"),1/0);return(0,a.Z2)(ge,Ce,De)},_setInputText:function(ge){var Ce=p.Z.convertDigits(ge,!0),De=function(ge,Ce,De,Ye){De=O(De,0);var bt=p.Z.getDecimalSeparator(),yt=function T(ge){return 1===ge.length&&!!ge.match(/^[,.][0-9]*$/g)}(ge),kt=l(Ye).occurrence,gn=yt?0:d(ge,bt,kt),ut=d(Ce,bt,kt),Ve=h(ge,gn),St=h(Ce,ut);if(-1!==gn&&De.start>gn){var lt=b(De.start-gn-1,Ve[1]);return R(St[1]?ut+1+E(lt,St[1])+1:Ce.length,Ce,Ye)}var vt=function(ge){return ge.replace(/[^0-9e]+$/,"")}(St[0]),bn=b(Ve[0].length-De.start,y(Ve[0])),mn=E(bn,y(vt));return R(vt.length-(mn+1),Ce,Ye)}(this._getInputVal(),Ce,this._caret(),this._getFormatPattern());this._input().val(ge),this._toggleEmptinessEventHandler(),this._formattedValue=ge,this._focusOutOccurs||this._caret(De)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var ge="number"===this.option("mode"),Ce="desktop"===g.Z.real().deviceType;this._useMaskBehavior()&&ge?this._setInputType(Ce||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(ge){return(0,C.HD)(ge)&&1===ge.length},_moveCaret:function(ge){if(ge){var De=R(O(this._caret(),ge),this._getInputVal(),this._getFormatPattern());this._caret(De)}},_shouldHandleKey:function(ge){var Ce=(0,K.EV)(ge),De=(0,K.j1)(ge)||ge.altKey||ge.shiftKey||!this._isChar(Ce),Ye=Ce===mt;return this._useMaskBehavior()&&!De&&!Ye},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){c.Z.off(this._input(),"."+ue)},_isInputFromPaste:function(ge){var Ce=ge.originalEvent&&ge.originalEvent.inputType;return(0,C.$K)(Ce)?"insertFromPaste"===Ce:this._isValuePasted},_attachFormatterEvents:function(){var ge=this._input();c.Z.on(ge,(0,K.V4)("input",ue),function(Ce){this._formatValue(Ce),this._isValuePasted=!1}.bind(this)),c.Z.on(ge,(0,K.V4)("dxclick",ue),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caretTimeout=void 0,this._caret(R(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),0))}.bind(this)),c.Z.on(ge,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=void 0},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(ge){var Ce=this._getInputVal().slice(ge);return Ce&&!this._isStub(Ce,!0)},_isStub:function(ge,Ce){var De=(0,s.hr)(p.Z.getDecimalSeparator());return new RegExp("^[^0-9"+De+"]+$","g").test(ge)&&(Ce||this._isChar(ge))},_parseValue:function(ge){return this._useMaskBehavior()?this._parsedValue:this.callBase(ge)},_getPrecisionLimits:function(ge){var Ce=this._getFormatForSign(ge),De=l(Ce).index,Ye=(h(Ce,De)[1]||"").replace(/[^#0]/g,"");return{min:Ye.replace(/^(0*)#*/,"$1").length,max:Ye.length}},_revertSign:function(ge){if(this._useMaskBehavior()){var Ce=this._caret();if(Ce.start!==Ce.end){if((0,K.EV)(ge)===mt)return void this._applyRevertedSign(ge,Ce,!0);this._caret(R(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(ge,Ce)}},_applyRevertedSign:function(ge,Ce,De){var Ye=-1*(0,s.IS)(this._parsedValue,null);if((this._isValueInRange(Ye)||0===Ye)&&(this._parsedValue=Ye,De)){var bt=this._getFormatPattern(),yt=this._getInputVal();this._setTextByParsedValue(),ge.preventDefault();var kt=this._getInputVal(),gn=function(ge,Ce,De){var Ye=x(ge,De);return x(Ce,De).start-Ye.start}(yt,kt,bt),ut=R(Ce=O(Ce,gn),kt,bt);this._caret(ut)}},_removeMinusFromText:function(ge,Ce){return this._lastKeyName===mt&&"-"===ge.charAt(Ce.start-1)?this._replaceSelectedText(ge,{start:Ce.start-1,end:Ce.start},""):ge},_setTextByParsedValue:function(){var ge=this._getFormatPattern(),Ce=this._parseValue(),De=this._format(Ce,ge)||"";this._setInputText(De)},_formatValue:function(ge){var Ce=this._getInputVal(),De=this._caret(),Ye=this._removeMinusFromText(Ce,De),bt=Ye!==Ce;if(Ce=Ye,!this._isInputFromPaste(ge)&&this._isValueIncomplete(Ye))return this._formattedValue=Ce,void(bt&&this._setTextByParsedValue());if(p.Z.convertDigits(this._formattedValue,!0)!==Ce){var kt=this._tryParse(Ce,De,"");(0,C.$K)(kt)&&(this._parsedValue=kt)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_updateParsedValue:function(){var ge=this._getInputVal();this._parsedValue=this._tryParse(ge,this._caret())},_adjustParsedValue:function(){if(this._useMaskBehavior()){var Ce=this._removeStubs(this._getInputVal())?this._parseValue():null;if(!(0,C.kE)(Ce))return void(this._parsedValue=Ce);this._parsedValue=(0,a.n$)(Ce,this.option("min"),this.option("max"))}},_valueChangeEventHandler:function(ge){if(!this._useMaskBehavior())return this.callBase(ge);var Ce=this._caret();this._saveValueChangeEvent(ge),this._lastKey=null,this._lastKeyName=null,this._updateParsedValue(),this._adjustParsedValue(),this.option("value",this._parsedValue),Ce&&this._caret(Ce)},_optionChanged:function(ge){switch(ge.name){case"format":case"useMaskBehavior":this._renderInputType(),this._updateFormat(),this._renderFormatter(),this._renderValue(),this._refreshValueChangeEvent(),this._refreshEvents();break;case"min":case"max":this._adjustParsedValue(),this.callBase(ge);break;default:this.callBase(ge)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});(0,o.Z)("dxNumberBox",tn);const $e=tn},3002:(Rn,he,u)=>{"use strict";u.d(he,{H:()=>h,a:()=>l});var o=u(9904),c=u(1828),I=u(5873),C=u(5791),g=u(6961),a=u(4514),p=u(7078),s=(0,a.Jj)(),l={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},d={h:0,v:0};class h{constructor(x){var{position:b,container:y,visualContainer:E,$root:S,$content:O,$wrapper:w,onPositioned:T,onVisualPositionChanged:k,restorePosition:R,_fixWrapperPosition:P}=x;this._props={position:b,container:y,visualContainer:E,restorePosition:R,onPositioned:T,onVisualPositionChanged:k,_fixWrapperPosition:P},this._$root=S,this._$content=O,this._$wrapper=w,this._$markupContainer=void 0,this._$visualContainer=void 0,this._shouldRenderContentInitialPosition=!0,this._visualPosition=void 0,this._initialPosition=void 0,this._previousVisualPosition=void 0,this.updateContainer(y),this.updatePosition(b),this.updateVisualContainer(E)}get $container(){return this.updateContainer(),this._$markupContainer}get $visualContainer(){return this._$visualContainer}get position(){return this._position}set fixWrapperPosition(x){this._props._fixWrapperPosition=x,this.styleWrapperPosition()}set restorePosition(x){this._props.restorePosition=x}restorePositionOnNextRender(x){this._shouldRenderContentInitialPosition=x||!this._visualPosition}openingHandled(){this.restorePositionOnNextRender(this._props.restorePosition)}updatePosition(x){this._props.position=x,this._position=this._normalizePosition(x),this.updateVisualContainer()}updateContainer(){var x=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.container;this._props.container=x,this._$markupContainer=x?(0,o.Z)(x):p.Z.getSwatchContainer(this._$root),this.updateVisualContainer(this._props.visualContainer)}updateVisualContainer(){this._props.visualContainer=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._props.visualContainer,this._$visualContainer=this._getVisualContainer()}detectVisualPositionChange(x){this._updateVisualPositionValue(),this._raisePositionedEvents(x)}positionContent(){this._shouldRenderContentInitialPosition?this._renderContentInitialPosition():((0,g.pB)(this._$content,this._visualPosition),this.detectVisualPositionChange())}positionWrapper(){this._$visualContainer&&C.Z.setup(this._$wrapper,{my:"top left",at:"top left",of:this._$visualContainer})}styleWrapperPosition(){var x=(0,c.FJ)(this.$visualContainer.get(0))||this._props._fixWrapperPosition;this._$wrapper.css("position",x?"fixed":"absolute")}_updateVisualPositionValue(){this._previousVisualPosition=this._visualPosition,this._visualPosition=(0,g.jt)(this._$content)}_renderContentInitialPosition(){this._renderBoundaryOffset(),(0,g.Kx)(this._$content);var x=this._$wrapper.css("overflow");this._$wrapper.css("overflow","hidden");var b=C.Z.setup(this._$content,this._position);this._$wrapper.css("overflow",x),this._initialPosition=b,this.detectVisualPositionChange()}_raisePositionedEvents(x){var b=this._previousVisualPosition,y=this._visualPosition;(b?.top!==y.top||b?.left!==y.left)&&this._props.onVisualPositionChanged({previousPosition:b,position:y,event:x}),this._props.onPositioned({position:this._initialPosition})}_renderBoundaryOffset(){var x,b=null!==(x=this._position)&&void 0!==x?x:{boundaryOffset:d};this._$content.css("margin","".concat(b.v,"px ").concat(b.h,"px"))}_getVisualContainer(){var x,b,y=this._props.container,E=this._props.visualContainer,S=(0,c.cO)(null===(x=this._props.position)||void 0===x?void 0:x.of)?this._props.position.of.target:null===(b=this._props.position)||void 0===b?void 0:b.of;return(0,o.Z)(E||y||S||s)}_normalizePosition(x){var b={boundaryOffset:d};return(0,c.$K)(x)?(0,I.l)(!0,{},b,this._positionToObject(x)):b}_positionToObject(x){return(0,c.HD)(x)?(0,I.l)({},l[x]):x}}},3576:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ne});var ce,o=u(1805),c=u(3553),I=u(8506),C=u(2941),g=u(9897),a=u(6881),p=u(9904),s=u(1880),l=u(7674),d=u(4270),h=u(6520),v=u(5873),x=u(2718),b=u(3068),y=u(1828),E=u(1469),S=u(4514),O=u(9644),w=u(8159),T=u(913),k=u(6722),R=u(8690),P=u(114),B=u(8225),W=u(2526),z=(ce=[],{add:function(le){ce.includes(le)||ce.push(le)},remove:function(le){var pe=ce.indexOf(le);-1!==pe&&ce.splice(pe,1)},fire:function(){var le=ce.pop(),pe=!!le;return pe&&le(),pe},hasCallback:function(){return ce.length>0}}),V=u(7),U=u(6853),K=u(4722),Y=u(4362),J=u(3002),j=b.Z.add,ee=(0,S.Jj)(),G=E.Wg,oe="dx-inner-overlay",fe="dx-state-invisible",ze=[],ae="dx-prevent-safari-scrolling";j(()=>{T.Z.subscribeGlobal(g.Z.getDocument(),R.Z.down,ce=>{for(var le=ze.length-1;le>=0;le--)if(!ze[le]._proxiedDocumentDownHandler(ce))return})});var ye=U.Z.inherit({_supportedKeys:function(){return(0,v.l)(this.callBase(),{escape:function(){this.hide()}})},_getDefaultOptions:function(){return(0,v.l)(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",wrapperAttr:{},position:(0,v.l)({},J.a.center),width:"80vw",minWidth:null,maxWidth:null,height:"80vh",minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,from:{opacity:1,scale:1},to:{opacity:0,scale:.55}}},closeOnOutsideClick:!1,hideOnOutsideClick:!1,copyRootClassesToWrapper:!1,_ignoreCopyRootClassesToWrapperDeprecation:!1,_ignoreElementAttrDeprecation:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",innerOverlay:!1,restorePosition:!0,container:void 0,visualContainer:void 0,hideTopOverlayHandler:()=>{this.hide()},hideOnParentScroll:!1,onPositioned:null,propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0,_fixWrapperPosition:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!(0,S.Ym)()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),(0,v.l)(this._optionsByReference,{animation:!0})},$wrapper:function(){return this._$wrapper},_eventBindingTarget:function(){return this._$content},_setDeprecatedOptions(){this.callBase(),(0,v.l)(this._deprecatedOptions,{closeOnOutsideClick:{since:"22.1",alias:"hideOnOutsideClick"}})},ctor:function(ce,le){this.callBase(ce,le),le&&(le.copyRootClassesToWrapper&&!le._ignoreCopyRootClassesToWrapperDeprecation&&this._logDeprecatedOptionWarning("copyRootClassesToWrapper",{since:"21.2",message:'Use the "wrapperAttr" option instead'}),le.elementAttr&&!le._ignoreElementAttrDeprecation&&this._logDeprecatedOptionWarning("elementAttr",{since:"21.2",message:'Use the "wrapperAttr" option instead'}))},_init:function(){this.callBase(),this._initActions(),this._initHideOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._customWrapperClass=null,this._$wrapper=(0,p.Z)("<div>").addClass("dx-overlay-wrapper"),this._$content=(0,p.Z)("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var ce=this.$element();this.option("copyRootClassesToWrapper")&&this._$wrapper.addClass(ce.attr("class")),ce.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler")),this._parentsScrollSubscriptionInfo={handler:le=>{this._hideOnParentsScrollHandler(le)}},this.warnPositionAsFunction()},warnPositionAsFunction(){(0,y.mf)(this.option("position"))&&O.Z.log("W0018")},_initInnerOverlayClass:function(){this._$content.toggleClass(oe,this.option("innerOverlay"))},_initHideTopOverlayHandler:function(ce){this._hideTopOverlayHandler=ce},_getActionsList:function(){return["onShowing","onShown","onHiding","onHidden","onPositioned","onVisualPositionChanged"]},_initActions:function(){this._actions={};var ce=this._getActionsList();(0,x.S6)(ce,(le,pe)=>{this._actions[pe]=this._createActionByOption(pe,{excludeValidators:["disabled","readOnly"]})||l.ZT})},_initHideOnOutsideClickHandler:function(){var ce=this;this._proxiedDocumentDownHandler=function(){return ce._documentDownHandler(...arguments)}},_initMarkup(){this.callBase(),this._renderWrapperAttributes(),this._initPositionController()},_documentDownHandler:function(ce){this._showAnimationProcessing&&this._stopAnimation();var le=(0,p.Z)(ee.document).is(ce.target)||(0,h.r3)(ee.document,ce.target)||(0,h.r3)(ee.document,ce.target.getRootNode().host),pe=(0,p.Z)(ce.target).closest(".".concat(oe)).length;return le&&!pe&&!(this._$content.is(ce.target)||(0,h.r3)(this._$content.get(0),ce.target))&&this._shouldHideOnOutsideClick(ce)&&this._outsideClickHandler(ce),this.option("propagateOutsideClick")},_shouldHideOnOutsideClick:function(ce){var{hideOnOutsideClick:le}=this.option();return(0,y.mf)(le)?le(ce):le},_outsideClickHandler(ce){this.option("shading")&&ce.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new s.s}),this.callBase()},_isTopOverlay:function(){for(var ce=this._overlayStack(),le=ce.length-1;le>=0;le--){var pe=ce[le]._findTabbableBounds();if(pe.first||pe.last)return ce[le]===this}return!1},_overlayStack:function(){return ze},_zIndexInitValue:function(){return ye.baseZIndex()},_toggleViewPortSubscription:function(ce){var le=this;G.remove(this._viewPortChangeHandle),ce&&(this._viewPortChangeHandle=function(){le._viewPortChangeHandler(...arguments)},G.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._positionController.updateContainer(this.option("container")),this._refresh()},_renderWrapperAttributes(){var{wrapperAttr:ce}=this.option(),le=(0,v.l)({},ce),pe=le.class;delete le.class,this.$wrapper().attr(le).removeClass(this._customWrapperClass).addClass(pe),this._customWrapperClass=pe},_renderVisibilityAnimate:function(ce){return this._stopAnimation(),ce?this._show():this._hide()},_getAnimationConfig:function(){return this._getOptionValue("animation",this)},_animateShowing:function(){var ce,le,pe,Se=this,re=null!==(ce=this._getAnimationConfig())&&void 0!==ce?ce:{},te=this._normalizeAnimation(re.show,"to"),ie=null!==(le=te?.start)&&void 0!==le?le:l.ZT,ue=null!==(pe=te?.complete)&&void 0!==pe?pe:l.ZT;this._animate(te,function(){if(!Se._isAnimationPaused){Se.option("focusStateEnabled")&&T.Z.trigger(Se._focusTarget(),"focus");for(var be=arguments.length,Ae=new Array(be),Ne=0;Ne<be;Ne++)Ae[Ne]=arguments[Ne];ue.call(Se,...Ae),Se._showAnimationProcessing=!1,Se._isHidden=!1,Se._actions.onShown(),Se._toggleSafariScrolling(),Se._showingDeferred.resolve()}},function(){if(!Se._isAnimationPaused){for(var be=arguments.length,Ae=new Array(be),Ne=0;Ne<be;Ne++)Ae[Ne]=arguments[Ne];ie.call(Se,...Ae),Se._showAnimationProcessing=!0}})},_processShowingHidingCancel:function(ce,le,pe){(0,y.tI)(ce)?ce.then(Se=>{Se?pe():le()}).catch(()=>le()):ce?pe():le()},_show:function(){if(this._showingDeferred=new d.BH,this._parentHidden=this._isParentHidden(),this._showingDeferred.done(()=>{delete this._parentHidden}),this._parentHidden)return this._isHidden=!0,this._showingDeferred.resolve();if(this._currentVisible)return(new d.BH).resolve().promise();if(this._currentVisible=!0,this._isHidingActionCanceled)delete this._isHidingActionCanceled,this._showingDeferred.reject();else{var ce=()=>{this._stopAnimation(),this._toggleVisibility(!0),this._$content.css("visibility","hidden"),this._$content.toggleClass(fe,!1),this._updateZIndexStackPosition(!0),this._positionController.openingHandled(),this._renderContent();var le={cancel:!1};this._actions.onShowing(le),this._processShowingHidingCancel(le.cancel,()=>{this._$content.css("visibility",""),this._renderVisibility(!0),this._animateShowing()},()=>{this._toggleVisibility(!1),this._$content.css("visibility",""),this._$content.toggleClass(fe,!0),this._isShowingActionCanceled=!0,this._moveFromContainer(),this.option("visible",!1),this._showingDeferred.resolve()})};this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(ce)):ce()}return this._showingDeferred.promise()},_normalizeAnimation:function(ce,le){return ce&&(ce=(0,v.l)({type:"slide",skipElementInitialStyles:!0},ce),(0,y.Kn)(ce[le])&&(0,v.l)(ce[le],{position:this._positionController.position})),ce},_animateHiding:function(){var ce,le,pe,Se=this,re=null!==(ce=this._getAnimationConfig())&&void 0!==ce?ce:{},te=this._normalizeAnimation(re.hide,"from"),ie=null!==(le=te?.start)&&void 0!==le?le:l.ZT,ue=null!==(pe=te?.complete)&&void 0!==pe?pe:l.ZT;this._animate(te,function(){var be;Se._$content.css("pointerEvents",""),Se._renderVisibility(!1);for(var Ae=arguments.length,Ne=new Array(Ae),mt=0;mt<Ae;mt++)Ne[mt]=arguments[mt];ue.call(Se,...Ne),Se._hideAnimationProcessing=!1,null===(be=Se._actions)||void 0===be||be.onHidden(),Se._hidingDeferred.resolve()},function(){Se._$content.css("pointerEvents","none");for(var be=arguments.length,Ae=new Array(be),Ne=0;Ne<be;Ne++)Ae[Ne]=arguments[Ne];ie.call(Se,...Ae),Se._hideAnimationProcessing=!0})},_hide:function(){if(!this._currentVisible)return(new d.BH).resolve().promise();this._currentVisible=!1,this._hidingDeferred=new d.BH;var ce={cancel:!1};return this._isShowingActionCanceled?(delete this._isShowingActionCanceled,this._hidingDeferred.reject()):(this._actions.onHiding(ce),this._toggleSafariScrolling(),this._processShowingHidingCancel(ce.cancel,()=>{this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animateHiding()},()=>{this._isHidingActionCanceled=!0,this.option("visible",!0),this._hidingDeferred.resolve()})),this._hidingDeferred.promise()},_forceFocusLost:function(){var ce=g.Z.getActiveElement();this._$content.find(ce).length&&(0,h.M3)()},_animate:function(ce,le,pe){ce?c.Z.animate(this._$content,(0,v.l)({},ce,{start:pe=pe||ce.start||l.ZT,complete:le})):le()},_stopAnimation:function(){c.Z.stop(this._$content,!0)},_renderVisibility:function(ce){ce&&this._isParentHidden()||(this._currentVisible=ce,this._stopAnimation(),ce||(0,W.Ly)(this._$content),ce?(this._checkContainerExists(),this._moveToContainer(),this._renderGeometry(),(0,W.Uo)(this._$content),(0,W.U_)(this._$content)):(this._toggleVisibility(ce),this._$content.toggleClass(fe,!ce),this._updateZIndexStackPosition(ce),this._moveFromContainer()),this._toggleShading(ce),this._toggleSubscriptions(ce))},_updateZIndexStackPosition:function(ce){var le=this._overlayStack(),pe=le.indexOf(this);ce?(-1===pe&&(this._zIndex=Y.Ue(this._zIndexInitValue()),le.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==pe&&(le.splice(pe,1),Y.Od(this._zIndex))},_toggleShading:function(ce){this._$wrapper.toggleClass("dx-overlay-shader",ce&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(ce&&this.option("shading"))},_initTabTerminatorHandler:function(){var ce=this;this._proxiedTabTerminatorHandler=function(){ce._tabKeyHandler(...arguments)}},_toggleTabTerminator:function(ce){var le=(0,B.V4)("keydown",this.NAME);ce?T.Z.on(g.Z.getDocument(),le,this._proxiedTabTerminatorHandler):T.Z.off(g.Z.getDocument(),le,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var ce=this._$wrapper.find("*"),le=ce.length-1,pe={first:null,last:null},Se=0;Se<=le&&(!pe.first&&ce.eq(Se).is(V.ht)&&(pe.first=ce.eq(Se)),!pe.last&&ce.eq(le-Se).is(V.ht)&&(pe.last=ce.eq(le-Se)),!pe.first||!pe.last);Se++);return pe},_tabKeyHandler:function(ce){if("tab"===(0,B.EV)(ce)&&this._isTopOverlay()){var le=this._findTabbableBounds(),pe=le.first,Se=le.last,re=!ce.shiftKey&&ce.target===Se.get(0),te=ce.shiftKey&&ce.target===pe.get(0),ie=0===le.length,ue=!(0,h.r3)(this._$wrapper.get(0),ce.target);if(re||te||ie||ue){ce.preventDefault();var be=ce.shiftKey?Se:pe;T.Z.trigger(be,"focusin"),T.Z.trigger(be,"focus")}}},_toggleSubscriptions:function(ce){(0,S.Ym)()&&(this._toggleHideTopOverlayCallback(ce),this._toggleHideOnParentsScrollSubscription(ce))},_toggleHideTopOverlayCallback:function(ce){this._hideTopOverlayHandler&&(ce?z.add(this._hideTopOverlayHandler):z.remove(this._hideTopOverlayHandler))},_toggleHideOnParentsScrollSubscription:function(ce){var le,pe=(0,B.V4)("scroll",this.NAME),{prevTargets:Se,handler:re}=null!==(le=this._parentsScrollSubscriptionInfo)&&void 0!==le?le:{};T.Z.off(Se,pe,re);var te=this.option("hideOnParentScroll");if(ce&&te){var ie=this._hideOnParentScrollTarget().parents();"desktop"===C.Z.real().deviceType&&(ie=ie.add(ee)),T.Z.on(ie,pe,re),this._parentsScrollSubscriptionInfo.prevTargets=ie}},_hideOnParentsScrollHandler:function(ce){var le=!1,pe=this.option("hideOnParentScroll");(0,y.mf)(pe)&&(le=pe(ce)),!le&&!this._showAnimationProcessing&&this.hide()},_hideOnParentScrollTarget:function(){return this._$wrapper},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var ce=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||ce||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var ce=this.$element().parent();if(ce.is(":visible"))return!1;var le=!1;return ce.add(ce.parents()).each(function(){if("none"===(0,p.Z)(this).css("display"))return le=!0,!1}),le||!g.Z.getBody().contains(ce.get(0))},_renderContentImpl:function(){var ce=new d.BH,le=this.option("contentTemplate"),pe=this._getTemplate(le),Se=this._templateManager.anonymousTemplateName===le;return pe&&pe.render({container:(0,a.u)(this.$content()),noModel:!0,transclude:Se,onRendered:()=>{ce.resolve(),this.option("templatesRenderAsynchronously")&&this._dimensionChanged()}}),this._renderScrollTerminator(),ce.done(()=>{this.option("visible")&&this._moveToContainer()}),ce.promise()},_getPositionControllerConfig(){var{container:ce,visualContainer:le,_fixWrapperPosition:pe,restorePosition:Se}=this.option();return{container:ce,visualContainer:le,$root:this.$element(),$content:this._$content,$wrapper:this._$wrapper,onPositioned:this._actions.onPositioned,onVisualPositionChanged:this._actions.onVisualPositionChanged,restorePosition:Se,_fixWrapperPosition:pe}},_initPositionController(){this._positionController=new J.H(this._getPositionControllerConfig())},_renderScrollTerminator:function(){var ce=this._$wrapper,le=(0,B.V4)(k.pB,this.NAME);T.Z.off(ce,le),T.Z.on(ce,le,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(pe){pe||this._toggleGestureCoverImpl(pe)},_clearSelection:l.ZT,isNative:!0},pe=>{var Se=pe.originalEvent.originalEvent,{type:re}=Se||{},te="wheel"===re,ie="mousemove"===re,ue=te&&!(0,B.j1)(pe);pe._cancelPreventDefault=!0,Se&&!1!==pe.cancelable&&(!ie&&!te||ue)&&pe.preventDefault()})},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._$wrapper.detach()},_checkContainerExists(){this._positionController.$container.length>0||w.Z.log("W1021",this.NAME)},_moveToContainer:function(){this._$wrapper.appendTo(this._positionController.$container),this._$content.appendTo(this._$wrapper)},_renderGeometry:function(ce){var{visible:le}=this.option();le&&(0,S.Ym)()&&(this._stopAnimation(),this._renderGeometryImpl())},_renderGeometryImpl:function(){this._positionController.updatePosition(this._getOptionValue("position")),this._renderWrapper(),this._renderDimensions(),this._renderPosition()},_renderPosition(){this._positionController.positionContent()},_isAllWindowCovered:function(){return(0,y.FJ)(this._positionController.$visualContainer.get(0))&&this.option("shading")},_toggleSafariScrolling:function(){var ce=this.option("visible"),le=(0,p.Z)(g.Z.getBody()),pe="ios"===C.Z.real().platform&&K.Z.safari,Se=this._isAllWindowCovered(),re=le.hasClass(ae);pe&&(!re||ce&&Se&&!this._disposed?!re&&ce&&Se&&(this._cachedBodyScrollTop=ee.pageYOffset,le.addClass(ae)):(le.removeClass(ae),ee.scrollTo(0,this._cachedBodyScrollTop),this._cachedBodyScrollTop=void 0))},_renderWrapper:function(){this._positionController.styleWrapperPosition(),this._renderWrapperDimensions(),this._positionController.positionWrapper()},_renderWrapperDimensions:function(){var ce=this._positionController.$visualContainer,le=g.Z.getDocumentElement(),pe=(0,y.FJ)(ce.get(0)),Se=pe?le.clientWidth:(0,o.Y_)(ce),re=pe?ee.innerHeight:(0,o.zp)(ce);this._$wrapper.css({width:Se,height:re})},_renderDimensions:function(){var ce=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",ce),maxWidth:this._getOptionValue("maxWidth",ce),minHeight:this._getOptionValue("minHeight",ce),maxHeight:this._getOptionValue("maxHeight",ce),width:this._getOptionValue("width",ce),height:this._getOptionValue("height",ce)})},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardListenerId=P.dG.on(this._$content,null,ce=>this._keyboardHandler(ce))},_keyboardHandler:function(ce){var le=ce.originalEvent,pe=(0,p.Z)(le.target);(pe.is(this._$content)||!this.option("ignoreChildEvents"))&&this.callBase(...arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(ce){ce?this.option("visible")&&this._renderVisibilityAnimate(ce):this._renderVisibilityAnimate(ce)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){var ce=this.option();!this._contentAlreadyRendered&&!ce.isRenovated&&this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){c.Z.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this._parentsScrollSubscriptionInfo=null,this.callBase(),this._toggleSafariScrolling(),this.option("visible")&&Y.Od(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleRTLDirection:function(ce){this._$content.toggleClass("dx-rtl",ce)},_optionChanged:function(ce){var le=ce.value;if(this._getActionsList().includes(ce.name))this._initActions();else switch(ce.name){case"animation":case"closeOnOutsideClick":case"hideOnOutsideClick":case"propagateOutsideClick":break;case"shading":this._toggleShading(this.option("visible")),this._toggleSafariScrolling();break;case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":this._renderGeometry();break;case"position":this._positionController.updatePosition(this.option("position")),this._positionController.restorePositionOnNextRender(!0),this._renderGeometry(),this._toggleSafariScrolling();break;case"visible":this._renderVisibilityAnimate(le).done(()=>{var pe;return null===(pe=this._animateDeferred)||void 0===pe?void 0:pe.resolveWith(this)}).fail(()=>{var pe;return null===(pe=this._animateDeferred)||void 0===pe?void 0:pe.reject()});break;case"container":this._positionController.updateContainer(le),this._invalidate(),this._toggleSafariScrolling();break;case"visualContainer":this._positionController.updateVisualContainer(le),this._renderWrapper(),this._toggleSafariScrolling();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(ce.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"hideOnParentScroll":this._toggleHideOnParentsScrollSubscription(this.option("visible"));break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(ce);break;case"_fixWrapperPosition":this._positionController.fixWrapperPosition=le;break;case"wrapperAttr":this._renderWrapperAttributes();break;case"restorePosition":this._positionController.restorePosition=ce.value;break;default:this.callBase(ce)}},toggle:function(ce){ce=void 0===ce?!this.option("visible"):ce;var le=new d.BH;if(ce===this.option("visible"))return le.resolveWith(this,[ce]).promise();var pe=new d.BH;return this._animateDeferred=pe,this.option("visible",ce),pe.promise().done(()=>{delete this._animateDeferred,le.resolveWith(this,[this.option("visible")])}).fail(()=>{delete this._animateDeferred,le.reject()}),le.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return(0,a.u)(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._positionController.restorePositionOnNextRender(!0),this._renderGeometry({forceStopAnimation:!0}),(0,W.U_)(this._$content)):this.callBase()}});ye.baseZIndex=ce=>Y.ue(ce),(0,I.Z)("dxOverlay",ye);const ne=ye},7320:(Rn,he,u)=>{"use strict";u.d(he,{_:()=>a});var o=u(1805),c=u(9904),I=u(4514),C=u(1828),a=(p,s)=>{var h,l=(0,c.Z)((0,I.Jj)()),{top:d}=p.offset();if((0,C.kE)(s)){if(s<d)return d-s;h=(0,o.fA)(l)-s+l.scrollTop()}else{var v=d-l.scrollTop(),x=(0,o.fA)(l)-v-(0,o.zp)(p);h=Math.max(v,x)}return.9*h}},4362:(Rn,he,u)=>{"use strict";u.d(he,{Ao:()=>p,Od:()=>a,Ue:()=>g,ue:()=>C});var o=u(7674),c=1500,I=[],C=l=>c=(0,o.IS)(l,c),g=function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,d=I.length,h=(d?I[d-1]:l)+1;return I.push(h),h},a=l=>{var d=I.indexOf(l);d>=0&&I.splice(d,1)},p=l=>I.length&&I[I.length-1]===l},322:(Rn,he,u)=>{"use strict";u.d(he,{R:()=>w,f:()=>k});var o=u(4817),c=u(9943),I=u(1828),C=u(5873),g=u(5791),a=u(7674),p=u(1805),s={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},E=u(3002),S=["shading","target","$arrow"],O={left:-1,top:-1,center:0,right:1,bottom:1},w={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},T={h:10,v:10};class k extends E.H{constructor(P){var{shading:B,target:W,$arrow:z}=P;super((0,c.Z)(P,S)),this._props=(0,o.Z)({},this._props,{shading:B,target:W}),this._$arrow=z,this._positionSide=void 0,this.updatePosition(this._props.position)}positionWrapper(){this._props.shading&&this._$wrapper.css({top:0,left:0})}updateTarget(P){this._props.target=P,this.updatePosition(this._props.position)}_renderBoundaryOffset(){}_getContainerPosition(){var P=(0,a.TG)(this._position.offset||""),{h:B,v:W}=P,z=this._isVerticalSide(),V=this._isHorizontalSide();if(z||V){var j=(this._isPopoverInside()?-1:1)*O[this._positionSide]*((z?(0,p.Cr)(this._$arrow):(0,p.dz)(this._$arrow))-this._getContentBorderWidth(this._positionSide));z?W+=j:B+=j}return(0,C.l)({},this._position,{offset:B+" "+W})}_getContentBorderWidth(P){var B=this._$content.css(s[P]);return parseInt(B)||0}_isPopoverInside(){var P=g.Z.setup.normalizeAlign(this._position.my),B=g.Z.setup.normalizeAlign(this._position.at);return P.h===B.h&&P.v===B.v}_isVerticalSide(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"top"===P||"bottom"===P}_isHorizontalSide(){var P=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._positionSide;return"left"===P||"right"===P}_getDisplaySide(P){var B=g.Z.setup.normalizeAlign(P.my),W=g.Z.setup.normalizeAlign(P.at),z=O[B.h]===O[W.h]&&O[B.v]===O[W.v]?-1:1;return Math.abs(O[B.h]-z*O[W.h])>Math.abs(O[B.v]-z*O[W.v])?W.h:W.v}_normalizePosition(P){var W,B={of:this._props.target,boundaryOffset:T};return W=(0,I.$K)(P)?(0,C.l)(!0,{},B,this._positionToObject(P)):B,this._positionSide=this._getDisplaySide(W),W}_positionToObject(P){return(0,I.HD)(P)?(0,C.l)({},w[P]):P}}},4567:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>K});var o=u(1805),c=u(9904),I=u(4514),C=u(6881),g=u(9897),a=u(913),p=u(8506),s=u(5873),l=u(6961),d=u(5791),h=u(1828),v=u(3487),x=u(8225),b=u(8159),y=u(8531),E=u(5450),S=u(322),R={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},P=function(Y){return(0,h.Kn)(Y)?Y.name:Y},B=function(Y,J){var j=Y.option(J);return P(j)},z=function(Y,J){var{target:j,shading:ee,disabled:G,hideEvent:q}=Y.option(),Z=(0,h.HD)(j),X=ee&&"hide"===J,M=X?null:B(Y,"".concat(J,"Event"));if(X&&q&&b.Z.log("W1020"),M&&!G){var oe=(0,x.V4)(M,Y.NAME),fe=Y._createAction(function(){var ae=function(Y,J){var j=Y.option(J);return(0,h.Kn)(j)&&j.delay}(Y,J+"Event");this._clearEventsTimeouts(),ae?this._timeouts[J]=setTimeout(function(){Y[J]()},ae):Y[J]()}.bind(Y),{validatingTargetName:"target"}),Te=function(ae){fe({event:ae,target:(0,c.Z)(ae.currentTarget)})},Be="_"+J+"EventHandler";if(Z)Y[Be]=Te,a.Z.on(g.Z.getDocument(),oe,j,Te);else{var ze=(0,C.u)((0,c.Z)(j));Y[Be]=void 0,a.Z.on(ze,oe,Te)}}},V=function(Y,J,j,ee){var G=ee||B(Y,j+"Event");if(G){G=(0,x.V4)(G,Y.NAME);var q="_"+j+"EventHandler";Y[q]?a.Z.off(g.Z.getDocument(),G,J,Y[q]):a.Z.off((0,C.u)((0,c.Z)(J)),G)}},U=y.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{target:void 0,shading:!1,position:(0,s.l)({},S.R.bottom),hideOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",from:1,to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,hideOnParentScroll:!0,arrowPosition:"",arrowOffset:0,_fixWrapperPosition:!0})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!(0,I.Ym)()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this.$wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(Y){V(this,Y,"show"),V(this,Y,"hide")},_attachEvents:function(){z(this,"show"),z(this,"hide")},_renderArrow:function(){this._$arrow=(0,c.Z)("<div>").addClass("dx-popover-arrow").prependTo(this.$overlayContent())},_documentDownHandler:function(Y){return!this._isOutsideClick(Y)||this.callBase(Y)},_isOutsideClick:function(Y){return!(0,c.Z)(Y.target).closest(this.option("target")).length},_animate:function(Y){Y&&Y.to&&"object"==typeof Y.to&&(0,s.l)(Y.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this.$wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){var Y=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.callBase(),this._renderOverlayPosition(Y),this._actions.onPositioned()},_renderOverlayPosition:function(Y){this._resetOverlayPosition(Y),this._updateContentSize(Y);var J=this._getContainerPosition(),j=d.Z.setup(this.$overlayContent(),J),ee=this._getSideByLocation(j);this._togglePositionClass("dx-position-"+ee),this._toggleFlippedClass(j.h.flip,j.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(ee)},_resetOverlayPosition:function(Y){this._setContentHeight(Y),this._togglePositionClass("dx-position-"+this._positionController._positionSide),(0,l.pB)(this.$overlayContent(),{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(Y){if(this.$content()&&Y){var J=d.Z.calculate(this.$overlayContent(),this._getContainerPosition());if(J.h.oversize>0&&this._isHorizontalSide()&&!J.h.fit){var j=(0,o.dz)(this.$overlayContent())-J.h.oversize;(0,o.cl)(this.$overlayContent(),j)}if(J.v.oversize>0&&this._isVerticalSide()&&!J.v.fit){var ee=(0,o.Cr)(this.$overlayContent())-J.v.oversize,G=(0,o.Cr)(this.$content())-J.v.oversize;(0,o.QQ)(this.$overlayContent(),ee),(0,o.QQ)(this.$content(),G)}}},_getContainerPosition:function(){return this._positionController._getContainerPosition()},_hideOnParentScrollTarget:function(){return(0,c.Z)(this._positionController._position.of||this.callBase())},_getSideByLocation:function(Y){var J=Y.v.flip,j=Y.h.flip;return this._isVerticalSide()&&J||this._isHorizontalSide()&&j||this._isPopoverInside()?R[this._positionController._positionSide]:this._positionController._positionSide},_togglePositionClass:function(Y){this.$wrapper().removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(Y)},_toggleFlippedClass:function(Y,J){this.$wrapper().toggleClass("dx-popover-flipped-horizontal",Y).toggleClass("dx-popover-flipped-vertical",J)},_renderArrowPosition:function(Y){var J=(0,E.l)(this._$arrow.get(0)),j=-(this._isVerticalSide(Y)?J.height:J.width);this._$arrow.css(R[Y],j);var ye,ee=this._isVerticalSide(Y)?"left":"top",G=this._isVerticalSide(Y)?"width":"height",q=(0,c.Z)(this._positionController._position.of),Z=d.Z.offset(q)||{top:0,left:0},X=d.Z.offset(this.$overlayContent()),M=J[G],oe=X[ee],fe=(0,E.l)(this.$overlayContent().get(0))[G],Te=Z[ee],Be=q.get(0),ze=Be&&!Be.preventDefault?(0,E.l)(Be)[G]:0,ae=Math.max(oe,Te),_e=Math.min(oe+fe,Te+ze);ye="start"===this.option("arrowPosition")?ae-oe:"end"===this.option("arrowPosition")?_e-oe-M:(ae+_e)/2-oe-M/2;var ne=this._positionController._getContentBorderWidth(Y),ce=(0,v.n$)(ye-ne+this.option("arrowOffset"),ne,fe-M-2*ne);this._$arrow.css(ee,ce)},_isPopoverInside:function(){return this._positionController._isPopoverInside()},_setContentHeight:function(Y){Y&&this.callBase()},_getPositionControllerConfig(){var{shading:Y,target:J}=this.option();return(0,s.l)({},this.callBase(),{target:J,shading:Y,$arrow:this._$arrow})},_initPositionController(){this._positionController=new S.f(this._getPositionControllerConfig())},_renderWrapperDimensions:function(){this.option("shading")&&this.$wrapper().css({width:"100%",height:"100%"})},_isVerticalSide:function(Y){return this._positionController._isVerticalSide(Y)},_isHorizontalSide:function(Y){return this._positionController._isHorizontalSide(Y)},_clearEventTimeout:function(Y){clearTimeout(this._timeouts[Y])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(Y){switch(Y.name){case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":Y.value&&this.option("fullScreen",!1);break;case"target":Y.previousValue&&this._detachEvents(Y.previousValue),this._positionController.updateTarget(Y.value),this._invalidate();break;case"showEvent":case"hideEvent":var J=Y.name.substring(0,4),j=P(Y.previousValue);this.hide(),V(this,this.option("target"),J,j),z(this,J);break;case"visible":this._clearEventTimeout(Y.value?"show":"hide"),this.callBase(Y);break;default:this.callBase(Y)}},show:function(Y){return Y&&this.option("target",Y),this.callBase()}});(0,p.Z)("dxPopover",U);const K=U},9609:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>g}),u(7858);var c=u(8531),I=u(8506);let C=(()=>{class a extends c.Z{_getToolbarName(){return"dxToolbar"}}return a.defaultOptions=function(p){c.Z.defaultOptions(p)},a})();(0,I.Z)("dxPopup",C);const g=C},8531:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ge});var o=u(8506),c=u(2941),I=u(6881),C=u(9904),g=u(1880),a=u(4722),p=u(7674),s=u(5873),l=u(7981),d=u(2718),h=u(1805),v=u(5450),x=u(1828),b=u(2161),y=u(4514),E=u(2526),S=u(9009),O=u(6961),w=u(9897),T=u(3487),k=u(913),R=u(6722),P=u(8225);var V=u(6498),U=u(219),K=u(3576),Y=u(2722),j=(u(7160),u(9870)),ee=u(4362),G=u(4817),q=u(9943),Z=u(1469),X=u(3002),M=["fullScreen","forceApplyBindings","dragOutsideBoundary","dragAndResizeArea","outsideDragFactor"],oe=(0,y.Jj)();class fe extends X.H{constructor(De){var{fullScreen:Ye,forceApplyBindings:bt,dragOutsideBoundary:yt,dragAndResizeArea:kt,outsideDragFactor:gn}=De;super((0,q.Z)(De,M)),this._props=(0,G.Z)({},this._props,{fullScreen:Ye,forceApplyBindings:bt,dragOutsideBoundary:yt,dragAndResizeArea:kt,outsideDragFactor:gn}),this._$dragResizeContainer=void 0,this._outsideDragFactor=void 0,this._lastPositionBeforeFullScreen=void 0,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set fullScreen(De){this._props.fullScreen=De,De?this._fullScreenEnabled():this._fullScreenDisabled()}get $dragResizeContainer(){return this._$dragResizeContainer}get outsideDragFactor(){return this._outsideDragFactor}set dragAndResizeArea(De){this._props.dragAndResizeArea=De,this._updateDragResizeContainer()}set dragOutsideBoundary(De){this._props.dragOutsideBoundary=De,this._updateDragResizeContainer(),this._updateOutsideDragFactor()}set outsideDragFactor(De){this._props.outsideDragFactor=De,this._updateOutsideDragFactor()}updateContainer(De){super.updateContainer(De),this._updateDragResizeContainer()}dragHandled(){this.restorePositionOnNextRender(!1)}resizeHandled(){this.restorePositionOnNextRender(!1)}positionContent(){var De,Ye;this._props.fullScreen?((0,O.pB)(this._$content,{top:0,left:0}),this.detectVisualPositionChange()):(null===(De=(Ye=this._props).forceApplyBindings)||void 0===De||De.call(Ye),!this._shouldRenderContentInitialPosition&&this._lastPositionBeforeFullScreen?((0,O.pB)(this._$content,this._lastPositionBeforeFullScreen),this._lastPositionBeforeFullScreen=void 0,this.detectVisualPositionChange()):super.positionContent())}_updateOutsideDragFactor(){this._outsideDragFactor=this._getOutsideDragFactor()}_getOutsideDragFactor(){return this._props.dragOutsideBoundary?1:this._props.outsideDragFactor}_updateDragResizeContainer(){this._$dragResizeContainer=this._getDragResizeContainer()}_getDragResizeContainer(){return this._props.dragOutsideBoundary?(0,C.Z)(oe):this._props.dragAndResizeArea?(0,C.Z)(this._props.dragAndResizeArea):(0,Z.In)().get(0)||this._props.container?this._$markupContainer:(0,C.Z)(oe)}_getVisualContainer(){return this._props.fullScreen?(0,C.Z)(oe):super._getVisualContainer()}_fullScreenEnabled(){this.restorePositionOnNextRender(!1),this._lastPositionBeforeFullScreen=this._visualPosition}_fullScreenDisabled(){this.restorePositionOnNextRender(!1)}}var Te=(0,y.Jj)(),Be="dx-popup",ze="dx-popup-wrapper",ce="dx-state-disabled",pe="dx-popup-title",re="dx-popup-bottom",Ae=["cancel","clear","done"],gt=a.Z.safari&&(0,b.q)(a.Z.version,[11])<0,tn={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},$e=K.Z.inherit({_supportedKeys:function(){return(0,s.l)(this.callBase(),{upArrow:Ce=>{var De;null===(De=this._drag)||void 0===De||De.moveUp(Ce)},downArrow:Ce=>{var De;null===(De=this._drag)||void 0===De||De.moveDown(Ce)},leftArrow:Ce=>{var De;null===(De=this._drag)||void 0===De||De.moveLeft(Ce)},rightArrow:Ce=>{var De;null===(De=this._drag)||void 0===De||De.moveRight(Ce)}})},_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragOutsideBoundary:!1,dragEnabled:!1,dragAndResizeArea:void 0,outsideDragFactor:0,onResizeStart:null,onResize:null,onResizeEnd:null,resizeEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var Ce=(0,Y.Vk)();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(De){return"desktop"===c.Z.real().deviceType&&"generic"===De.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===c.Z.real().deviceType&&!c.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,Y.x2)(Ce)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0,showCloseButton:!1}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){var Ce=this.option("_wrapperClassExternal"),De=Ce?"".concat(ze," ").concat(Ce):ze;this.callBase(),this._updateResizeCallbackSkipCondition(),this.$element().addClass(Be),this.$wrapper().addClass(De),this._$popupContent=this._$content.wrapInner((0,C.Z)("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var Ce=this.option("fullScreen");this._toggleFullScreenClass(Ce),this.callBase()},_toggleFullScreenClass:function(Ce){this.$overlayContent().toggleClass("dx-popup-fullscreen",Ce).toggleClass("dx-popup-normal",!Ce)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new g.s,bottom:new g.s})},_getActionsList:function(){return this.callBase().concat(["onResizeStart","onResize","onResizeEnd"])},_contentResizeHandler:function(Ce){this._shouldSkipContentResize(Ce)||this._renderGeometry({shouldOnlyReposition:!0})},_doesShowAnimationChangeDimensions:function(){var Ce=this.option("animation");return["to","from"].some(De=>{var Ye,bt=null==Ce||null===(Ye=Ce.show)||void 0===Ye?void 0:Ye[De];return(0,x.Kn)(bt)&&("width"in bt||"height"in bt)})},_updateResizeCallbackSkipCondition(){var Ce=this._doesShowAnimationChangeDimensions();this._shouldSkipContentResize=De=>Ce&&this._showAnimationProcessing||this._areContentDimensionsRendered(De)},_observeContentResize:function(Ce){if(this.option("useResizeObserver")){var De=this._$content.get(0);Ce?j.Z.observe(De,Ye=>{this._contentResizeHandler(Ye)}):j.Z.unobserve(De)}},_areContentDimensionsRendered:function(Ce){var De,Ye,bt,kt,gn,yt=null===(De=Ce.contentBoxSize)||void 0===De?void 0:De[0];if(yt)return parseInt(yt.inlineSize,10)===(null===(kt=this._renderedDimensions)||void 0===kt?void 0:kt.width)&&parseInt(yt.blockSize,10)===(null===(gn=this._renderedDimensions)||void 0===gn?void 0:gn.height);var ut=Ce.contentRect;return parseInt(ut.width,10)===(null===(Ye=this._renderedDimensions)||void 0===Ye?void 0:Ye.width)&&parseInt(ut.height,10)===(null===(bt=this._renderedDimensions)||void 0===bt?void 0:bt.height)},_renderContent(){this.callBase(),this._observeContentResize(!0)},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderResize(),this._renderBottom()},_renderTitle:function(){var Ce=this._getToolbarItems("top"),De=this.option("title"),Ye=this.option("showTitle");if(Ye&&De&&Ce.unshift({location:c.Z.current().ios?"center":"before",text:De}),Ye||Ce.length>0){this._$title&&this._$title.remove();var bt=(0,C.Z)("<div>").addClass(pe).insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",Ce,bt).addClass(pe),this._renderDrag(),this._executeTitleRenderAction(this._$title),this._$title.toggleClass("dx-has-close-button",this._hasCloseButton())}else this._$title&&this._$title.detach()},_renderTemplateByType:function(Ce,De,Ye,bt){var{rtlEnabled:yt,useDefaultToolbarButtons:kt,useFlatToolbarButtons:gn,disabled:ut}=this.option(),Ve=this._getTemplateByOption(Ce);if(Ve instanceof g.s){var Xe=(0,s.l)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),Vt=(0,s.l)(bt,{items:De,rtlEnabled:yt,useDefaultButtons:kt,useFlatButtons:gn,disabled:ut,integrationOptions:Xe});this._getTemplate("dx-polymorph-widget").render({container:Ye,model:{widget:this._getToolbarName(),options:Vt}});var lt=Ye.children("div");return Ye.replaceWith(lt),lt}var dt=(0,C.Z)(Ve.render({container:(0,I.u)(Ye)}));return dt.hasClass("dx-template-wrapper")&&(Ye.replaceWith(dt),Ye=dt),Ye},_getToolbarName:function(){return"dxToolbarBase"},_renderVisibilityAnimate:function(Ce){return this.callBase(Ce)},_hide(){return this._observeContentResize(!1),this.callBase()},_executeTitleRenderAction:function(Ce){this._getTitleRenderAction()({titleElement:(0,I.u)(Ce)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return(Ce,De,Ye)=>{var bt=(0,C.Z)("<div>").addClass("dx-closebutton");this._createComponent(bt,U.Z,{icon:"close",onClick:this._createToolbarItemAction(void 0),stylingMode:"text",integrationOptions:{}}),(0,C.Z)(Ye).append(bt)}},_getToolbarItems:function(Ce){var De=this.option("toolbarItems"),Ye=[];this._toolbarItemClasses=[];var bt=c.Z.current().platform,yt=0;return(0,d.S6)(De,(kt,gn)=>{var ut=(0,x.$K)(gn.shortcut),Ve=ut?(Ce=>{var Ye=c.Z.current().platform,bt="bottom",yt="before";if("ios"===Ye)switch(Ce){case"cancel":bt="top";break;case"clear":bt="top",yt="after";break;case"done":yt="after"}else if("android"===Ye)switch(Ce){case"cancel":case"done":yt="after"}return{toolbar:bt,location:yt}})(gn.shortcut):gn;if(ut&&"ios"===bt&&yt<2&&(Ve.toolbar="top",yt++),Ve.toolbar=gn.toolbar||Ve.toolbar||"top",Ve&&Ve.toolbar===Ce){ut&&(0,s.l)(Ve,{location:gn.location},this._getToolbarItemByAlias(gn));var St="generic"===bt;"done"===gn.shortcut&&St||"cancel"===gn.shortcut&&!St?Ye.unshift(Ve):Ye.push(Ve)}}),"top"===Ce&&this._hasCloseButton()&&Ye.push(this._getCloseButton()),Ye},_hasCloseButton(){return this.option("showCloseButton")&&this.option("showTitle")},_getLocalizationKey:Ce=>"done"===Ce.toLowerCase()?"OK":(0,l._A)(Ce,!0),_getToolbarItemByAlias:function(Ce){var De=this,Ye=Ce.shortcut;if(!Ae.includes(Ye))return!1;var bt=(0,s.l)({text:S.Z.format(this._getLocalizationKey(Ye)),onClick:this._createToolbarItemAction(Ce.onClick),integrationOptions:{},type:De.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:De.option("useFlatToolbarButtons")?"text":"contained"},Ce.options||{}),yt=Be+"-"+Ye;return this._toolbarItemClasses.push(yt),{template:function(kt,gn,ut){var Ve=(0,C.Z)("<div>").addClass(yt).appendTo(ut);De._createComponent(Ve,U.Z,bt)}}},_createToolbarItemAction:function(Ce){return this._createAction(Ce,{afterExecute:function(De){De.component.hide()}})},_renderBottom:function(){var Ce=this._getToolbarItems("bottom");if(Ce.length){this._$bottom&&this._$bottom.remove();var De=(0,C.Z)("<div>").addClass(re).insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",Ce,De,{compactMode:!0}).addClass(re),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleDisabledState:function(Ce){this.callBase(...arguments),this.$content().toggleClass(ce,Boolean(Ce))},_toggleClasses:function(){(0,d.S6)(Ae,(De,Ye)=>{var bt=Be+"-"+Ye;this._toolbarItemClasses.includes(bt)?(this.$wrapper().addClass(bt+"-visible"),this._$bottom.addClass(bt)):(this.$wrapper().removeClass(bt+"-visible"),this._$bottom.removeClass(bt))})},_toggleFocusClass(Ce,De){if(this.callBase(Ce,De),Ce&&!ee.Ao(this._zIndex)){var Ye=ee.Ue(this._zIndexInitValue());ee.Od(this._zIndex),this._zIndex=Ye,this._$wrapper.css("zIndex",Ye),this._$content.css("zIndex",Ye)}},_getPositionControllerConfig(){var{fullScreen:Ce,forceApplyBindings:De,dragOutsideBoundary:Ye,dragAndResizeArea:bt,outsideDragFactor:yt}=this.option();return(0,s.l)({},this.callBase(),{fullScreen:Ce,forceApplyBindings:De,dragOutsideBoundary:Ye,dragAndResizeArea:bt,outsideDragFactor:yt})},_initPositionController(){this._positionController=new fe(this._getPositionControllerConfig())},_getDragTarget:function(){return this.topToolbar()},_renderGeometry:function(Ce){var{visible:De,useResizeObserver:Ye}=this.option();if(De&&(0,y.Ym)()){var yt=this._showAnimationProcessing&&!(null!=Ce&&Ce.forceStopAnimation)&&Ye;this._isAnimationPaused=yt||void 0,this._stopAnimation(),null!=Ce&&Ce.shouldOnlyReposition?this._renderPosition(!1):this._renderGeometryImpl(Ce?.isDimensionChange),yt&&(this._animateShowing(),this._isAnimationPaused=void 0)}},_cacheDimensions:function(){this.option("useResizeObserver")&&(this._renderedDimensions={width:parseInt((0,h.dz)(this._$content),10),height:parseInt((0,h.Cr)(this._$content),10)})},_renderGeometryImpl:function(){var Ce=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Ce||this._resetContentHeight(),this.callBase(),this._cacheDimensions(),this._setContentHeight()},_resetContentHeight:function(){"auto"===this._getOptionValue("height")&&this.$content().css({height:"auto",maxHeight:"none"})},_renderDrag:function(){var Ce=this._getDragTarget(),De=this.option("dragEnabled");if(Ce){var Ye={dragEnabled:De,handle:Ce.get(0),draggableElement:this._$content.get(0),positionController:this._positionController};this._drag?this._drag.init(Ye):this._drag=new class W{constructor(De){this.init(De)}init(De){var{dragEnabled:Ye,handle:bt,draggableElement:yt,positionController:kt}=De;this._positionController=kt,this._draggableElement=yt,this._handle=bt,this._dragEnabled=Ye,this.unsubscribe(),Ye&&this.subscribe()}moveDown(De){this._moveTo(5,0,De)}moveUp(De){this._moveTo(-5,0,De)}moveLeft(De){this._moveTo(0,-5,De)}moveRight(De){this._moveTo(0,5,De)}subscribe(){var De=this._getEventNames();k.Z.on(this._handle,De.startEventName,Ye=>{this._dragStartHandler(Ye)}),k.Z.on(this._handle,De.updateEventName,Ye=>{this._dragUpdateHandler(Ye)}),k.Z.on(this._handle,De.endEventName,Ye=>{this._dragEndHandler(Ye)})}unsubscribe(){var De=this._getEventNames();k.Z.off(this._handle,De.startEventName),k.Z.off(this._handle,De.updateEventName),k.Z.off(this._handle,De.endEventName)}_getEventNames(){return{startEventName:(0,P.V4)(R.BL,"overlayDrag"),updateEventName:(0,P.V4)(R.pB,"overlayDrag"),endEventName:(0,P.V4)(R.ut,"overlayDrag")}}_dragStartHandler(De){var Ye=this._getAllowedOffsets();this._prevOffset={x:0,y:0},De.targetElements=[],De.maxTopOffset=Ye.top,De.maxBottomOffset=Ye.bottom,De.maxLeftOffset=Ye.left,De.maxRightOffset=Ye.right}_dragUpdateHandler(De){this._moveByOffset({top:De.offset.y-this._prevOffset.y,left:De.offset.x-this._prevOffset.x}),this._prevOffset=De.offset}_dragEndHandler(De){this._positionController.dragHandled(),this._positionController.detectVisualPositionChange(De)}_moveTo(De,Ye,bt){if(this._dragEnabled){bt.preventDefault(),bt.stopPropagation();var yt=this._fitOffsetIntoAllowedRange(De,Ye);this._moveByOffset(yt),this._dragEndHandler(bt)}}_fitOffsetIntoAllowedRange(De,Ye){var bt=this._getAllowedOffsets();return{top:(0,T.n$)(De,-bt.top,bt.bottom),left:(0,T.n$)(Ye,-bt.left,bt.right)}}_getContainerDimensions(){var De=w.Z.getDocument(),Ye=this._positionController.$dragResizeContainer.get(0),bt=(0,h.Y_)(Ye),yt=(0,h.zp)(Ye);return(0,x.FJ)(Ye)&&(yt=Math.max(De.body.clientHeight,yt),bt=Math.max(De.body.clientWidth,bt)),{width:bt,height:yt}}_getContainerPosition(){var De=this._positionController.$dragResizeContainer.get(0);return(0,x.FJ)(De)?{top:0,left:0}:(0,h.os)(De)}_getElementPosition(){return(0,h.os)(this._draggableElement)}_getInnerDelta(){var De=this._getContainerDimensions(),Ye=this._getElementDimensions();return{x:De.width-Ye.width,y:De.height-Ye.height}}_getOuterDelta(){var{width:De,height:Ye}=this._getElementDimensions(),bt=this._positionController.outsideDragFactor;return{x:De*bt,y:Ye*bt}}_getFullDelta(){var De=this._getInnerDelta(),Ye=this._getOuterDelta();return{x:De.x+Ye.x,y:De.y+Ye.y}}_getElementDimensions(){return{width:this._draggableElement.offsetWidth,height:this._draggableElement.offsetHeight}}_getAllowedOffsets(){var De=this._getFullDelta();if(!(De.y>=0&&De.x>=0))return{top:0,bottom:0,left:0,right:0};var bt=this._getElementPosition(),yt=this._getContainerPosition(),kt=this._getOuterDelta();return{top:bt.top-yt.top+kt.y,bottom:-bt.top+yt.top+De.y,left:bt.left-yt.left+kt.x,right:-bt.left+yt.left+De.x}}_moveByOffset(De){var Ye=(0,O.jt)(this._draggableElement);(0,O.pB)(this._draggableElement,{left:Ye.left+De.left,top:Ye.top+De.top})}}(Ye),this.$overlayContent().toggleClass("dx-popup-draggable",De)}},_renderResize:function(){this._resizable=this._createComponent(this._$content,V.Z,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:Ce=>{this._resizeEndHandler(Ce),this._observeContentResize(!0)},onResize:Ce=>{this._setContentHeight(),this._actions.onResize(Ce)},onResizeStart:Ce=>{this._observeContentResize(!1),this._actions.onResizeStart(Ce)},minHeight:100,minWidth:100,area:this._positionController.$dragResizeContainer,keepAspectRatio:!1})},_resizeEndHandler:function(Ce){var De=this._resizable.option("width"),Ye=this._resizable.option("height");De&&this._setOptionWithoutOptionChange("width",De),Ye&&this._setOptionWithoutOptionChange("height",Ye),this._cacheDimensions(),this._positionController.resizeHandled(),this._positionController.detectVisualPositionChange(Ce.event),this._actions.onResizeEnd(Ce)},_setContentHeight:function(){(this.option("forceApplyBindings")||p.ZT)();var Ce=this.$overlayContent().get(0),De=this._chooseHeightStrategy(Ce);this.$content().css(this._getHeightCssStyles(De,Ce)),this._setHeightClasses(this.$overlayContent(),De)},_heightStrategyChangeOffset:function(Ce,De){return Ce===tn.flex?-De:0},_chooseHeightStrategy:function(Ce){var De="auto"===Ce.style.width||""===Ce.style.width,Ye=tn.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(Ye=De||gt?tn.inherit:tn.flex),Ye},_getHeightCssStyles:function(Ce,De){var Ye={},bt=this._getOptionValue("maxHeight",De),yt=this._getOptionValue("minHeight",De),kt=this._splitPopupHeight(),gn=kt.header+kt.footer+kt.contentVerticalOffsets+kt.popupVerticalOffsets+this._heightStrategyChangeOffset(Ce,kt.popupVerticalPaddings);if(Ce===tn.static){if(!this._isAutoHeight()||bt||yt){var ut=this.option("fullScreen")?Math.min((0,v.l)(De).height,(0,y.Jj)().innerHeight):(0,v.l)(De).height;Ye={height:Math.max(0,ut-gn),minHeight:"auto",maxHeight:"auto"}}}else{var St=(0,C.Z)(this._positionController.$visualContainer).get(0),Xe=(0,h.n2)(bt,-gn,St);Ye={height:"auto",minHeight:(0,h.eK)(yt,-gn,St),maxHeight:Xe}}return Ye},_setHeightClasses:function(Ce,De){var Ye="";for(var bt in tn)tn[bt]!==De&&(Ye+=" "+tn[bt]);Ce.removeClass(Ye).addClass(De)},_isAutoHeight:function(){return"auto"===this.$overlayContent().get(0).style.height},_splitPopupHeight:function(){var Ce=this.topToolbar(),De=this.bottomToolbar();return{header:(0,h.$D)(Ce&&Ce.get(0)),footer:(0,h.$D)(De&&De.get(0)),contentVerticalOffsets:(0,h.sQ)(this.$overlayContent().get(0),!0),popupVerticalOffsets:(0,h.sQ)(this.$content().get(0),!0),popupVerticalPaddings:(0,h.sQ)(this.$content().get(0),!1)}},_isAllWindowCovered:function(){return this.callBase()||this.option("fullScreen")},_renderDimensions:function(){this.option("fullScreen")?this.$overlayContent().css({width:"100%",height:"100%",minWidth:"",maxWidth:"",minHeight:"",maxHeight:""}):this.callBase(),(0,y.Ym)()&&this._renderFullscreenWidthClass()},_dimensionChanged:function(){this._renderGeometry({isDimensionChange:!0})},_clean:function(){this.callBase(),this._observeContentResize(!1)},_renderFullscreenWidthClass:function(){this.$overlayContent().toggleClass("dx-popup-fullscreen-width",(0,h.Y_)(this.$overlayContent())===(0,h.dz)(Te))},refreshPosition:function(){this._renderPosition()},_optionChanged:function(Ce){var De,Ye=Ce.value;switch(Ce.name){case"disabled":this.callBase(Ce),this._renderTitle(),this._renderBottom();break;case"animation":this._updateResizeCallbackSkipCondition();break;case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"bottomTemplate":this._renderBottom(),this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"container":var bt;this.callBase(Ce),this.option("resizeEnabled")&&(null===(bt=this._resizable)||void 0===bt||bt.option("area",this._positionController.$dragResizeContainer));break;case"width":case"height":this.callBase(Ce),null===(De=this._resizable)||void 0===De||De.option(Ce.name,Ce.value);break;case"onTitleRendered":this._createTitleRenderAction(Ce.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var yt=!Ce.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),yt&&(this._renderGeometry(),(0,E.U_)(this.$overlayContent()));break;case"dragEnabled":this._renderDrag();break;case"dragAndResizeArea":this._positionController.dragAndResizeArea=Ye,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer),this._positionController.positionContent();break;case"dragOutsideBoundary":this._positionController.dragOutsideBoundary=Ye,this.option("resizeEnabled")&&this._resizable.option("area",this._positionController.$dragResizeContainer);break;case"outsideDragFactor":this._positionController.outsideDragFactor=Ye;break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"autoResizeEnabled":this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"fullScreen":this._positionController.fullScreen=Ce.value,this._toggleFullScreenClass(Ce.value),this._toggleSafariScrolling(),this._renderGeometry(),(0,E.U_)(this.$overlayContent());break;case"showCloseButton":this._renderTitle();break;default:this.callBase(Ce)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,I.u)(this.$content())},$overlayContent:function(){return this._$content}});(0,o.Z)("dxPopup",$e);const ge=$e},4026:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>y});var o=u(9904),c=u(974),I=u(5873),C=u(1828),g=u(8506),x="dx-progressbar-animating-segment",b=c.Z.inherit({_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{value:0,statusFormat:function(E){return"Progress: "+Math.round(100*E)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(E){return"android"===E.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),(0,o.Z)("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_useTemplates:function(){return!1},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=(0,o.Z)("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=(0,o.Z)("<div>").addClass("dx-progressbar-animating-container");for(var E=this.option("_animatingSegmentCount"),S=0;S<E;S++)(0,o.Z)("<div>").addClass(x).addClass(x+"-"+(S+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(E){var S=this.option("statusPosition").split(" ");E?"top"===S[0]||"left"===S[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var S=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var O="dx-position-"+S[0];S[1]&&(O+="-"+S[1]),this._$wrapper.addClass(O)},_toggleIndeterminateState:function(E){E?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var E=this.option("value"),S=this.option("max");E||0===E?(this._$segmentContainer&&this._toggleIndeterminateState(!1),E===S&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var E=this.option("statusFormat"),S=(E=(0,C.mf)(E)?E.bind(this):function(O){return O})(this._currentRatio,this.option("value"));this._$status.text(S)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(E){switch(E.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(E.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(E)}}});(0,g.Z)("dxProgressBar",b);const y=b},6498:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>J});var o=u(4817),c=u(1805),I=u(6961),C=u(8506),g=u(8893),a=u(9904),p=u(7674),s=u(5873),l=u(2718),d=u(3487),h=u(1828),v=u(4514),x=u(913),b=u(6722),y=u(8225),E=u(2526),S="dxResizable",T="dx-resizable-handle",W="dx-resizable-handle-corner",z=(0,y.V4)(b.BL,S),V=(0,y.V4)(b.pB,S),U=(0,y.V4)(b.ut,S),K={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},Y=g.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0,keepAspectRatio:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var j=this.option("handles");if("none"!==j&&j){var ee="all"===j?["top","bottom","left","right"]:j.split(" "),G={};(0,l.S6)(ee,(q,Z)=>{G[Z]=!0,this._renderHandle(Z)}),G.bottom&&G.right&&this._renderHandle("corner-bottom-right"),G.bottom&&G.left&&this._renderHandle("corner-bottom-left"),G.top&&G.right&&this._renderHandle("corner-top-right"),G.top&&G.left&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(j){var ee=(0,a.Z)("<div>").addClass(T).addClass(T+"-"+j).appendTo(this.$element());this._handles.push(ee)},_attachEventHandlers:function(){if(!this.option("disabled")){var j={};j[z]=this._dragStartHandler.bind(this),j[V]=this._dragHandler.bind(this),j[U]=this._dragEndHandler.bind(this),this._handles.forEach(ee=>{x.Z.on(ee,j,{direction:"both",immediate:!0})})}},_detachEventHandlers:function(){this._handles.forEach(j=>{x.Z.off(j)})},_toggleEventHandlers:function(j){j?this._attachEventHandlers():this._detachEventHandlers()},_getElementSize:function(){var j=this.$element();return"border-box"===j.css("boxSizing")?{width:(0,c.Y_)(j),height:(0,c.zp)(j)}:{width:(0,c.dz)(j),height:(0,c.Cr)(j)}},_dragStartHandler:function(j){var ee=this.$element();ee.is(".dx-state-disabled, .dx-state-disabled *")?j.cancel=!0:(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(j),this._elementLocation=(0,I.jt)(ee),this._elementSize=this._getElementSize(),this._renderDragOffsets(j),this._resizeStartAction({event:j,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),j.targetElements=null)},_toggleResizingClass:function(j){this.$element().toggleClass("dx-resizable-resizing",j)},_renderDragOffsets:function(j){var ee=this._getArea();if(ee){var G=(0,a.Z)(j.target).closest("."+T),q=(0,c.Y_)(G),Z=(0,c.zp)(G),X=G.offset(),M=ee.offset,oe=this._getAreaScrollOffset();j.maxLeftOffset=this._leftMaxOffset=X.left-M.left-oe.scrollX,j.maxRightOffset=this._rightMaxOffset=M.left+ee.width-X.left-q+oe.scrollX,j.maxTopOffset=this._topMaxOffset=X.top-M.top-oe.scrollY,j.maxBottomOffset=this._bottomMaxOffset=M.top+ee.height-X.top-Z+oe.scrollY}},_getBorderWidth:function(j,ee){if((0,h.FJ)(j.get(0)))return 0;var G=j.css(K[ee]);return parseInt(G)||0},_proportionate:function(j,ee){var G=this._elementSize;return ee*("x"===j?G.width/G.height:G.height/G.width)},_getProportionalDelta:function(j){var{x:ee,y:G}=j,q=this._proportionate("y",ee);if(q>=G)return{x:ee,y:q};var Z=this._proportionate("x",G);return Z>=ee?{x:Z,y:G}:{x:0,y:0}},_getDirectionName:function(j){var ee=this._movingSides;return"x"===j?ee.left?"left":"right":ee.top?"top":"bottom"},_fitIntoArea:function(j,ee){var G,q=this._getDirectionName(j);return Math.min(ee,null!==(G=this["_".concat(q,"MaxOffset")])&&void 0!==G?G:1/0)},_fitDeltaProportionally:function(j){var ee=(0,o.Z)({},j),G=this._elementSize,{minWidth:q,minHeight:Z,maxWidth:X,maxHeight:M}=this.option(),oe=()=>G.width+ee.x,fe=()=>G.height+ee.y,Te=ye=>ee[ye]===this._fitIntoArea(ye,ee[ye]),Be=()=>(0,d.Z2)(oe(),q,X)&&Te("x"),ze=()=>(0,d.Z2)(fe(),Z,M)&&Te("y");if(!Be()){var ae=this._fitIntoArea("x",(0,d.n$)(oe(),q,X)-G.width);ee={x:ae,y:this._proportionate("y",ae)}}if(!ze()){var _e=this._fitIntoArea("y",(0,d.n$)(fe(),Z,M)-G.height);ee={x:this._proportionate("x",_e),y:_e}}return Be()&&ze()?ee:{x:0,y:0}},_fitDelta:function(j){var{x:ee,y:G}=j,q=this._elementSize,{minWidth:Z,minHeight:X,maxWidth:M,maxHeight:oe}=this.option();return{x:(0,d.n$)(q.width+ee,Z,M)-q.width,y:(0,d.n$)(q.height+G,X,oe)-q.height}},_getDeltaByOffset:function(j){var ee=this._movingSides,G=this._isCornerHandler(ee)&&this.option("keepAspectRatio"),q={x:j.x*(ee.left?-1:1),y:j.y*(ee.top?-1:1)};if(G){var Z=this._getProportionalDelta(q);q=this._fitDeltaProportionally(Z)}else{var M=this._fitDelta(q);q=this._roundByStep(M)}return q},_updatePosition:function(j,ee){var{width:G,height:q}=ee,Z=this._elementLocation,X=this._movingSides,M=this.$element(),oe=this._getElementSize();(0,I.pB)(M,{top:Z.top+(X.top?j.y*(X.top?-1:1)-((oe.height||q)-q):0),left:Z.left+(X.left?j.x*(X.left?-1:1)-((oe.width||G)-G):0)})},_dragHandler:function(j){var ee=this._getOffset(j),G=this._getDeltaByOffset(ee),q=this._updateDimensions(G);this._updatePosition(G,q),this._triggerResizeAction(j,q)},_updateDimensions:function(j){var ee=Te=>"px"===Te.substring(Te.length-2),G="strict"===this.option("stepPrecision"),q=this._elementSize,Z=q.width+j.x,X=q.height+j.y,M=this.$element().get(0).style,oe=j.x||G||ee(M.width),fe=j.y||G||ee(M.height);return oe&&this.option({width:Z}),fe&&this.option({height:X}),{width:oe?Z:q.width,height:fe?X:q.height}},_triggerResizeAction:function(j,ee){var{width:G,height:q}=ee;this._resizeAction({event:j,width:this.option("width")||G,height:this.option("height")||q,handles:this._movingSides}),(0,E.U_)(this.$element())},_isCornerHandler:j=>0===Object.values(j).reduce((ee,G)=>ee^G,0),_getOffset:function(j){var ee=j.offset,G=this._movingSides;return!G.left&&!G.right&&(ee.x=0),!G.top&&!G.bottom&&(ee.y=0),ee},_roundByStep:function(j){return"strict"===this.option("stepPrecision")?this._roundStrict(j):this._roundNotStrict(j)},_getSteps:function(){return(0,p.TG)(this.option("step"),!this.option("roundStepValue"))},_roundNotStrict:function(j){var ee=this._getSteps();return{x:j.x-j.x%ee.h,y:j.y-j.y%ee.v}},_roundStrict:function(j){var ee=this._movingSides,G={x:j.x*(ee.left?-1:1),y:j.y*(ee.top?-1:1)},q=this._getSteps(),Z=this._elementLocation,X=this._elementSize,fe=((ee.left?Z.left:Z.left+X.width)+G.x)%q.h,Te=((ee.top?Z.top:Z.top+X.height)+G.y)%q.v,Be=Math.sign||(le=>0==(le=+le)||isNaN(le)?le:le>0?1:-1),ze=(le,pe)=>(1+.2*Be(pe))%1*le,ae=(le,pe)=>Math.abs(le)<.2*pe,_e=G.x-fe,ye=G.y-Te;fe>ze(q.h,G.x)&&(_e+=q.h),Te>ze(q.v,G.y)&&(ye+=q.v);var ne=!ee.left&&!ee.right||ae(G.x,q.h)?0:_e,ce=!ee.top&&!ee.bottom||ae(G.y,q.v)?0:ye;return{x:ne*(ee.left?-1:1),y:ce*(ee.top?-1:1)}},_getMovingSides:function(j){var ee=(0,a.Z)(j.target),G=ee.hasClass(W+"-top-left"),q=ee.hasClass(W+"-top-right"),Z=ee.hasClass(W+"-bottom-left"),X=ee.hasClass(W+"-bottom-right");return{top:ee.hasClass("dx-resizable-handle-top")||G||q,left:ee.hasClass("dx-resizable-handle-left")||G||Z,bottom:ee.hasClass("dx-resizable-handle-bottom")||Z||X,right:ee.hasClass("dx-resizable-handle-right")||q||X}},_getArea:function(){var j=this.option("area");return(0,h.mf)(j)&&(j=j.call(this)),(0,h.PO)(j)?this._getAreaFromObject(j):this._getAreaFromElement(j)},_getAreaScrollOffset:function(){var j=this.option("area"),G={scrollY:0,scrollX:0};if(!(0,h.mf)(j)&&!(0,h.PO)(j)){var q=(0,a.Z)(j)[0];(0,h.FJ)(q)&&(G.scrollX=q.pageXOffset,G.scrollY=q.pageYOffset)}return G},_getAreaFromObject:function(j){var ee={width:j.right-j.left,height:j.bottom-j.top,offset:{left:j.left,top:j.top}};return this._correctAreaGeometry(ee),ee},_getAreaFromElement:function(j){var G,ee=(0,a.Z)(j);return ee.length&&(G={width:(0,c.Xt)(ee),height:(0,c.fA)(ee),offset:(0,s.l)({top:0,left:0},(0,h.FJ)(ee[0])?{}:ee.offset())},this._correctAreaGeometry(G,ee)),G},_correctAreaGeometry:function(j,ee){var G=ee?this._getBorderWidth(ee,"left"):0,q=ee?this._getBorderWidth(ee,"top"):0;j.offset.left+=G+this._getBorderWidth(this.$element(),"left"),j.offset.top+=q+this._getBorderWidth(this.$element(),"top"),j.width-=(0,c.Y_)(this.$element())-(0,c.Xt)(this.$element()),j.height-=(0,c.zp)(this.$element())-(0,c.fA)(this.$element())},_dragEndHandler:function(j){var ee=this.$element();this._resizeEndAction({event:j,width:(0,c.Y_)(ee),height:(0,c.zp)(ee),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(j){this.option("width",(0,d.n$)(j,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(j){this.option("height",(0,d.n$)(j,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(j){switch(j.name){case"disabled":this._toggleEventHandlers(!j.value),this.callBase(j);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":(0,v.Ym)()&&this._renderWidth((0,c.Y_)(this.$element()));break;case"minHeight":case"maxHeight":(0,v.Ym)()&&this._renderHeight((0,c.zp)(this.$element()));break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":case"keepAspectRatio":break;default:this.callBase(j)}},_clean:function(){this.$element().find("."+T).remove()},_useTemplates:function(){return!1}});(0,C.Z)(S,Y);const J=Y},7374:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o=u(1805),c=u(9904),I=u(7674),C=u(1828),g=u(8159),a=u(4514),p=u(2718),s=u(5873),l=u(8506),d=u(6026),h=u(7307),v="dx-responsivebox",x=v+"-screen-",y="dxBoxItemData",S=h.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",a.$n),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return y},_initMarkup:function(){this.callBase(),this.$element().addClass(v)},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(w){var T=this._findItemElementByItem(w);T.length&&(this._refreshItem(T,w),this._clearItemNodeTemplates(),this._update(!0))},_setScreenSize:function(){var w=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass(x+w),this.option("currentScreenFactor",w)},_removeScreenSizeClass:function(){var w=this.option("currentScreenFactor");w&&this.$element().removeClass(x+w)},_prepareGrid:function(){var w=this._grid=[];this._prepareRowsAndCols(),(0,p.S6)(this._rows,function(){var T=[];w.push(T),(0,p.S6)(this._cols,function(){T.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var w=this.option("rows"),T=this._screenItems.length;if(w.length){for(var k=this._filterByScreen(w),R=[],P=0;P<T;P++){var B=this._defaultSizeConfig();P<k.length&&(0,C.$K)(k[P].shrink)&&(B.shrink=k[P].shrink),R.push(B)}return R}return this._defaultSizeConfig(T)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort(function(w,T){return w.location.row-T.location.row||w.location.col-T.location.col}),(0,p.S6)(this._screenItems,function(w,T){(0,s.l)(T.location,{row:w,col:0,rowspan:1,colspan:1})})},_sizesByScreen:function(w){return(0,p.UI)(this._filterByScreen(w),function(T){return(0,s.l)(this._defaultSizeConfig(),T)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(w){var T=this._createDefaultSizeConfig();if(!arguments.length)return T;for(var k=[],R=0;R<w;R++)k.push(T);return k},_filterByScreen:function(w){var T=this._screenRegExp();return(0,I.h3)(w,function(k){return!k.screen||T.test(k.screen)})},_screenRegExp:function(){var w=this._getCurrentScreen();return new RegExp("(^|\\s)"+w+"($|\\s)","i")},_getCurrentScreen:function(){var w=this._screenWidth();return this.option("screenByWidth")(w)},_screenWidth:function(){return(0,a.Ym)()?(0,o.dz)((0,a.Jj)()):1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){(0,p.S6)(this._screenItems,function(w,T){var k=T.location||{},B=this._grid[k.row];this._occupyCells(B&&B[k.col],T)}.bind(this))},_itemsByScreen:function(){return this.option("items").reduce((w,T)=>{var k=T.location||{};return k=(0,C.PO)(k)?[k]:k,this._filterByScreen(k).forEach(R=>{w.push({item:T,location:(0,s.l)({rowspan:1,colspan:1},R)})}),w},[])},_occupyCells:function(w,T){!w||this._isItemCellOccupied(w,T)||((0,s.l)(w,T),this._markSpanningCell(w))},_isItemCellOccupied:function(w,T){if(!(0,C.Qr)(w.item))return!0;var k=!1;return this._loopOverSpanning(T.location,function(R){k=k||!(0,C.Qr)(R.item)}),k},_loopOverSpanning:function(w,T){var k=w.row+w.rowspan-1,R=w.col+w.colspan-1,P=Math.min(k,this._rows.length-1),B=Math.min(R,this._cols.length-1);w.rowspan-=k-P,w.colspan-=R-B;for(var W=w.row;W<=P;W++)for(var z=w.col;z<=B;z++)(W!==w.row||z!==w.col)&&T(this._grid[W][z])},_markSpanningCell:function(w){this._loopOverSpanning(w.location,function(T){(0,s.l)(T,{item:w.item,spanningCell:w})})},_linkNodeToItem:function(){(0,p.S6)(this._itemElements(),function(w,T){var k=(0,c.Z)(T),R=k.data(y);R.box||(R.node=k.children())})},_layoutItems:function(){var w=this._grid.length,T=w&&this._grid[0].length;if(w||T){var k=this._layoutBlock({direction:"col",row:{start:0,end:w-1},col:{start:0,end:T-1}}),R=this._prepareBoxConfig(k.box||{direction:"row",items:[(0,s.l)(k,{ratio:1})]});(0,s.l)(R,this._rootBoxConfig(R.items)),this._$root=(0,c.Z)("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,d.Z,R)}},_rootBoxConfig:function(w){return{width:"100%",height:"100%",items:(0,p.S6)(w,function(k,R){this._needApplyAutoBaseSize(R)&&(0,s.l)(R,{baseSize:"auto"})}.bind(this)),itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")}},_needApplyAutoBaseSize:function(w){return!(w.baseSize||w.minSize&&"auto"!==w.minSize||w.maxSize&&"auto"!==w.maxSize)},_prepareBoxConfig:function(w){return(0,s.l)(w||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(w){return this._isSingleItem(w)?this._itemByCell(w.row.start,w.col.start):this._layoutDirection(w)},_isSingleItem:function(w){var T=this._grid[w.row.start][w.col.start].location;return w.row.end-w.row.start==T.rowspan-1&&w.col.end-w.col.start==T.colspan-1},_itemByCell:function(w,T){var k=this._grid[w][T];return k.spanningCell?null:k.item},_layoutDirection:function(w){for(var P,T=[],k=w.direction,R=this._crossDirection(k);P=this._nextBlock(w);){if(this._isBlockIndivisible(w.prevBlockOptions,P))throw g.Z.Error("E1025");var B=this._layoutBlock({direction:R,row:P.row,col:P.col,prevBlockOptions:w});B&&((0,s.l)(B,this._blockSize(P,R)),T.push(B)),w[R].start=P[R].end+1}return{box:this._prepareBoxConfig({direction:k,items:T})}},_isBlockIndivisible:function(w,T){return w&&w.col.start===T.col.start&&w.col.end===T.col.end&&w.row.start===T.row.start&&w.row.end===T.row.end},_crossDirection:function(w){return"col"===w?"row":"col"},_nextBlock:function(w){var T=w.direction,k=this._crossDirection(T),R=w[T].start,P=w[T].end,B=w[k].start;if(B>w[k].end)return null;for(var W=1,z=B;z<B+W;z++){for(var V=1,U=R;U<=P;U++){var K=this._cellByDirection(T,U,z);V=Math.max(V,K.location[k+"span"])}var Y=z+V,J=B+W;Y>J&&(W+=Y-J)}var j={};return j[T]={start:R,end:P},j[k]={start:B,end:B+W-1},j},_cellByDirection:function(w,T,k){return"col"===w?this._grid[k][T]:this._grid[T][k]},_blockSize:function(w,T){for(var k="row"===T?"auto":0,R="row"===T?this._rows:this._cols,P=(0,s.l)(this._createDefaultSizeConfig(),{ratio:0}),B=w[T].start;B<=w[T].end;B++){var W=R[B];P.ratio+=W.ratio,P.baseSize+=W.baseSize,P.minSize+=W.minSize,P.maxSize+=W.maxSize,(0,C.$K)(W.shrink)&&(P.shrink=W.shrink)}return P.minSize=P.minSize?P.minSize:k,P.maxSize=P.maxSize?P.maxSize:"auto",this._isSingleColumnScreen()&&(P.baseSize="auto"),P},_update:function(w){var T=this._$root;this._renderItems(),T&&(w?T.remove():(T.detach(),this._saveAssistantRoot(T))),this._layoutChangedAction()},_saveAssistantRoot:function(w){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(w)},_dispose:function(){this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&(0,p.S6)(this._assistantRoots,function(w,T){(0,c.Z)(T).remove()})},_clearItemNodeTemplates:function(){(0,p.S6)(this.option("items"),function(){delete this.node})},_attachClickEvent:I.ZT,_optionChanged:function(w){switch(w.name){case"rows":case"cols":case"screenByWidth":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(w),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(w);break;case"currentScreenFactor":break;default:this.callBase(w)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});(0,l.Z)("dxResponsiveBox",S);const O=S},3862:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>gn});var o=u(9904),c=u(2941),I=u(4514),C=u(9009),g=u(8506),a=u(6881),p=u(5873),s=u(7674),l=u(5365),d=u(6961),h=u(3418),v=u(1427),x=u(2718),b=u(4270),y="dx-scrollview-pull-down-loading",E="dx-scrollview-pull-down-ready";const V=h.Z.inherit({_init:function(ut){this.callBase(ut),this._$topPocket=ut._$topPocket,this._$pullDown=ut._$pullDown,this._$refreshingText=ut._$refreshingText,this._$scrollViewContent=(0,o.Z)(ut.content()),this._$container=(0,o.Z)(ut.container()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,l.Z)(),this.releaseCallbacks=(0,l.Z)(),this.reachBottomCallbacks=(0,l.Z)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var ut=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-image"),Ve=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-indicator"),St=new v.Z((0,o.Z)("<div>")).$element(),Xe=this._$pullDownText=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,o.Z)("<div>").text(this.option("pullingDownText")).appendTo(Xe),this._$pulledDownText=(0,o.Z)("<div>").text(this.option("pulledDownText")).appendTo(Xe),this._$refreshingText=(0,o.Z)("<div>").text(this.option("refreshingText")).appendTo(Xe),this._$pullDown.empty().append(ut).append(Ve.append(St)).append(Xe)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var ut=this;(0,x.S6)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(St,Xe){Xe.element[ut._state===Xe.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var ut=this._$scrollViewContent.get(0),Ve=this._$container.get(0);this._bottomBoundary=Math.max(ut.clientHeight-Ve.clientHeight,0)},_allowedDirections:function(){var ut=this.callBase();return ut.vertical=ut.vertical||this._pullDownEnabled,ut},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(ut){(0,d.pB)(this._$topPocket,{top:ut}),(0,d.pB)(this._$scrollViewContent,{top:ut})},handleScroll:function(ut){if(this.callBase(ut),2!==this._state){var Ve=this.location().top,St=(this._location||0)-Ve;this._location=Ve,this._isPullDown()?this._pullDownReady():St>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass(E),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(y).removeClass(E),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(y).removeClass(E),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(ut){ut&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=ut},reachBottomEnable:function(ut){this._reachBottomEnabled=ut},pendingRelease:function(){this._state=1},release:function(){var ut=new b.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),ut.resolve()}.bind(this),400),ut.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var U=u(1805),K=u(8225),Y="dx-scrollview-pull-down-loading";const fe=h.Z.inherit({_init:function(ut){this.callBase(ut),this._$topPocket=ut._$topPocket,this._$pullDown=ut._$pullDown,this._$scrollViewContent=(0,o.Z)(ut.content()),this._$container=(0,o.Z)(ut.container()),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=(0,l.Z)(),this.releaseCallbacks=(0,l.Z)(),this.reachBottomCallbacks=(0,l.Z)()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var ut=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-indicator"),Ve=new v.Z((0,o.Z)("<div>")).$element();this._$icon=(0,o.Z)("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(ut.append(Ve))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.get(0).clientHeight;var ut=this._$scrollViewContent.get(0),Ve=this._$container.get(0);this._bottomBoundary=Math.max(ut.clientHeight-Ve.clientHeight,0)},_allowedDirections:function(){var ut=this.callBase();return ut.vertical=ut.vertical||this._pullDownEnabled,ut},handleInit:function(ut){this.callBase(ut),0===this._state&&0===this._location&&(this._startClientY=(0,K.a0)(ut.originalEvent).y,this._state=4)},handleMove:function(ut){this.callBase(ut),this._deltaY=(0,K.a0)(ut.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(ut.preventDefault(),this._movePullDown())},_movePullDown:function(){var ut=this._getPullDownHeight(),Ve=Math.min(3*ut,this._deltaY+this._getPullDownStartPosition()),St=180*Ve/ut/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",Ve<ut),(0,d.pB)(this._$pullDown,{top:Ve}),this._$icon.css({transform:"rotate("+St+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*(0,U.zp)(this._$element))},_getPullDownStartPosition:function(){return-Math.round(1.5*(0,U.zp)(this._$pullDown))},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){(4===this._state||5===this._state)&&this._releaseState()},handleScroll:function(ut){if(this.callBase(ut),2!==this._state){var Ve=this.location().top,St=this._location-Ve;this._location=Ve,St>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&Math.round(this._bottomBoundary+Math.floor(this._location))<=1},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass(Y),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass(Y),(0,d.pB)(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(ut){this._$topPocket.toggle(ut),this._pullDownEnabled=ut},reachBottomEnable:function(ut){this._reachBottomEnabled=ut},pendingRelease:function(){this._state=1},release:function(){var ut=new b.BH;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),ut.resolve()}.bind(this),800),ut.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});var Te=u(1140),Be=Math,ze="dx-scrollview-pull-down-loading",ae="dx-scrollview-pull-down-ready",te=Te.T.inherit({ctor:function(){this._topPocketSize=0,this._bottomPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var ut=this;(0,x.S6)([{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}],function(St,Xe){Xe.element[ut._state===Xe.visibleState?"addClass":"removeClass"]("dx-scrollview-pull-down-text-visible")})},_initCallbacks:function(){this.pullDownCallbacks=(0,l.Z)(),this.releaseCallbacks=(0,l.Z)(),this.reachBottomCallbacks=(0,l.Z)()},_updateBounds:function(){if("horizontal"!==this._direction){this._topPocketSize=this._$topPocket.get(0).clientHeight,this._bottomPocketSize=this._$bottomPocket.get(0).clientHeight;var Ve=this._$container.get(0),St=this._$content.get(0);this._bottomBoundary=Math.max(St.clientHeight-this._bottomPocketSize-Ve.clientHeight,0)}this.callBase()},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){var ut=this._$container.get(0);return this._reachBottomEnabled&&Math.round(this._bottomBoundary-Math.ceil(ut.scrollTop))<=1},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return Be.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass(ae),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass(ze).removeClass(ae),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass(ze).removeClass(ae),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=(0,s.Wi)(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(ut){this._reachBottomEnabled!==ut&&(this._reachBottomEnabled=ut,this._updateBounds())},_pullDownEnablingHandler:function(ut){this._pullDownEnabled!==ut&&(this._pullDownEnabled=ut,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=(0,U.Cr)(this._$topPocket)||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}});const ue=Te.L.inherit({_init:function(ut){this.callBase(ut),this._$pullDown=ut._$pullDown,this._$topPocket=ut._$topPocket,this._$bottomPocket=ut._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=(0,l.Z)(),this.releaseCallbacks=(0,l.Z)(),this.reachBottomCallbacks=(0,l.Z)()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var ut=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-image"),Ve=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-indicator"),St=new v.Z((0,o.Z)("<div>")).$element(),Xe=this._$pullDownText=(0,o.Z)("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=(0,o.Z)("<div>").text(this.option("pullingDownText")).appendTo(Xe),this._$pulledDownText=(0,o.Z)("<div>").text(this.option("pulledDownText")).appendTo(Xe),this._$refreshingText=(0,o.Z)("<div>").text(this.option("refreshingText")).appendTo(Xe),this._$pullDown.empty().append(ut).append(Ve.append(St)).append(Xe)},pullDownEnable:function(ut){this._eventHandler("pullDownEnabling",ut)},reachBottomEnable:function(ut){this._eventHandler("reachBottomEnabling",ut)},_createScroller:function(ut){var Ve=this,St=Ve._scrollers[ut]=new te(Ve._scrollerOptions(ut));St.pullDownCallbacks.add(function(){Ve.pullDownCallbacks.fire()}),St.releaseCallbacks.add(function(){Ve.releaseCallbacks.fire()}),St.reachBottomCallbacks.add(function(){Ve.reachBottomCallbacks.fire()})},_scrollerOptions:function(ut){return(0,p.l)(this.callBase(ut),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var ut=this.callBase();return ut.top+=(0,U.Cr)(this._$topPocket),ut},dispose:function(){(0,x.S6)(this._scrollers,function(){this.dispose()}),this.callBase()}});var be=u(8487),Ae=u(2722),Ne=u(4265),mt="dx-scrollview",tt=mt+"-content",Le=mt+"-top-pocket",gt=mt+"-bottom-pocket",tn=mt+"-pull-down",Pe=mt+"-scrollbottom",$e=Pe+"-indicator",ge=Pe+"-text",Ce=mt+"-loadpanel",De={pullDown:V,swipeDown:fe,simulated:ue},Ye=!(0,I.Ym)(),yt=be.Z.inherit(Ye?{finishLoading:s.ZT,release:s.ZT,refresh:s.ZT,scrollOffset:()=>({top:0,left:0}),_optionChanged:function(ut){if("onUpdated"!==ut.name)return this.callBase.apply(this,arguments)}}:{_getDefaultOptions:function(){return(0,p.l)(this.callBase(),{pullingDownText:C.Z.format("dxScrollView-pullingDownText"),pulledDownText:C.Z.format("dxScrollView-pulledDownText"),refreshingText:C.Z.format("dxScrollView-refreshingText"),reachBottomText:C.Z.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===c.Z.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return(0,Ae.x2)()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass(mt),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var ut=(0,o.Z)("<div>").addClass(tt);this._$content.wrapInner(ut)},_initTopPocket:function(){var ut=this._$topPocket=(0,o.Z)("<div>").addClass(Le),Ve=this._$pullDown=(0,o.Z)("<div>").addClass(tn);ut.append(Ve),this._$content.prepend(ut)},_initBottomPocket:function(){var ut=this._$bottomPocket=(0,o.Z)("<div>").addClass(gt),Ve=this._$reachBottom=(0,o.Z)("<div>").addClass(Pe),St=(0,o.Z)("<div>").addClass($e),Xe=new v.Z((0,o.Z)("<div>")).$element(),Vt=this._$reachBottomText=(0,o.Z)("<div>").addClass(ge);this._updateReachBottomText(),Ve.append(St.append(Xe)).append(Vt),ut.append(Ve),this._$content.append(ut)},_initLoadPanel:function(){var ut=(0,o.Z)("<div>").addClass(Ce).appendTo(this.$element()),Ve={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(ut,Ne.Z,Ve)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var ut=this.option("useNative")?this.option("refreshStrategy"):"simulated";this._strategy=new(0,De[ut])(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(ut){var Ve=this.callBase.apply(this,arguments);return("pullDown"===ut||"reachBottom"===ut)&&this._tryRefreshPocketState(),Ve},_pullDownEnable:function(ut){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(ut),this._strategy.pullDownEnable(ut),this._pullDownEnabled=ut)},_reachBottomEnable:function(ut){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(ut),this._strategy.reachBottomEnable(ut),this._reachBottomEnabled=ut)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(ut){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=ut},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(ut){switch(ut.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(ut)}},content:function(){return(0,a.u)(this._$content.children().eq(1))},release:function(ut){return void 0!==ut&&this.toggleLoading(!ut),this._strategy.release()},toggleLoading:function(ut){this._reachBottomEnable(ut)},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});(0,g.Z)("dxScrollView",yt);const gn=yt},6496:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>a});var o=u(7674),c=u(5031),I=u(1536);const a=c.Z.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,(0,I.W)(this._stepAnimationFrame)},_stepCore:function(){if(!this._isStopped())return this._isFinished()?(this._finished=!0,void this._complete()):(this._step(),void(this._stepAnimationFrame=(0,I.U)(this._proxiedStepCore)));this._stop()},_step:c.Z.abstract,_isFinished:o.ZT,_stop:o.ZT,_complete:o.ZT,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}})},5373:(Rn,he,u)=>{"use strict";u.d(he,{i:()=>I});var o=u(2941),c=u(4505),I=function(){return[{device:function(){return!c.nativeScrolling},options:{useNative:!1}},{device:function(C){return!o.Z.isSimulator()&&"desktop"===o.Z.real().deviceType&&"generic"===C.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:c.touch,showScrollbar:"onHover"}}]}},8487:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=u(7293).Z},3418:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>O});var o=u(1805),c=u(9904),I=u(913),C=u(8225),g=u(7674),a=u(2718),p=u(2941),s=u(5031),l=u(2623),d="dxNativeScrollable",h="dx-scrollable-native",b="vertical",y="horizontal";const O=s.Z.inherit({ctor:function(w){this._init(w)},_init:function(w){this._component=w,this._$element=w.$element(),this._$container=(0,c.Z)(w.container()),this._$content=w.$content(),this._direction=w.option("direction"),this._useSimulatedScrollbar=w.option("useSimulatedScrollbar"),this.option=w.option.bind(w),this._createActionByOption=w._createActionByOption.bind(w),this._isLocked=w._isLocked.bind(w),this._isDirection=w._isDirection.bind(w),this._allowedDirection=w._allowedDirection.bind(w),this._getMaxOffset=w._getMaxOffset.bind(w),this._isRtlNativeStrategy=w._isRtlNativeStrategy.bind(w)},render:function(){var T=p.Z.real().platform;this._$element.addClass(h).addClass(h+"-"+T).toggleClass("dx-scrollable-scrollbars-hidden",!this._isScrollbarVisible()),this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateRtlPosition:function(w){w&&this.option("rtlEnabled")&&this._isScrollbarVisible()&&this._useSimulatedScrollbar&&this._moveScrollbars()},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar(b),this._renderScrollbar(y)},_renderScrollbar:function(w){this._isDirection(w)&&(this._scrollbars[w]=new l.Z((0,c.Z)("<div>").appendTo(this._$element),{direction:w,expandable:this._component.option("scrollByThumb")}))},handleInit:g.ZT,handleStart:g.ZT,handleMove:function(w){this._isLocked()?w.cancel=!0:this._allowedDirection()&&(w.originalEvent.isScrollingEvent=!0)},handleEnd:g.ZT,handleCancel:g.ZT,handleStop:g.ZT,_eachScrollbar:function(w){w=w.bind(this),(0,a.S6)(this._scrollbars||{},function(T,k){w(k,T)})},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var{left:w,top:T}=this.location();return{event:this._eventForUserAction,scrollOffset:this._getScrollOffset(),reachedLeft:this._isRtlNativeStrategy()?this._isReachedRight(-w):this._isReachedLeft(w),reachedRight:this._isRtlNativeStrategy()?this._isReachedLeft(-Math.abs(w)):this._isReachedRight(w),reachedTop:this._isDirection(b)?Math.round(T)>=0:void 0,reachedBottom:this._isDirection(b)?Math.round(Math.abs(T)-this._getMaxOffset().top)>=0:void 0}},_getScrollOffset:function(){var{top:w,left:T}=this.location();return{top:-w,left:this._normalizeOffsetLeft(-T)}},_normalizeOffsetLeft(w){return this._isRtlNativeStrategy()?this._getMaxOffset().left+w:w},_isReachedLeft:function(w){return this._isDirection(y)?Math.round(w)>=0:void 0},_isReachedRight:function(w){return this._isDirection(y)?Math.round(Math.abs(w)-this._getMaxOffset().left)>=0:void 0},_isScrollbarVisible:function(){var{showScrollbar:w}=this.option();return"never"!==w&&!1!==w},handleScroll:function(w){this._eventForUserAction=w,this._moveScrollbars(),this._scrollAction(this._createActionArgs())},_moveScrollbars:function(){var{top:w,left:T}=this._getScrollOffset();this._eachScrollbar(function(k){k.moveTo({top:-w,left:-T}),k.option("visible",!0)}),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar(function(w){w.option("visible",!1)})}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:-this._$container.scrollTop()}},disabledChanged:g.ZT,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:(0,o.Cr)(this._$container),width:(0,o.dz)(this._$container)},this._componentContentSize={height:(0,o.Cr)(this._component.$content()),width:(0,o.dz)(this._component.$content())},this._contentSize={height:(0,o.Cr)(this._$content),width:(0,o.dz)(this._$content)}},_updateScrollbars:function(){this._eachScrollbar(function(w,T){var k=T===b?"height":"width";w.option({containerSize:this._containerSize[k],contentSize:this._componentContentSize[k]}),w.update()})},_allowedDirections:function(){return{vertical:this._isDirection(b)&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection(y)&&this._contentSize.width>this._containerSize.width}},dispose:function(){var w=this._$element.get(0).className,T=new RegExp(h+"\\S*","g");T.test(w)&&this._$element.removeClass(w.match(T).join(" ")),I.Z.off(this._$element,"."+d),I.Z.off(this._$container,"."+d),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar(function(w){w.$element().remove()})},scrollBy:function(w){var T=this.location();this._$container.scrollTop(Math.round(-T.top-w.top)),this._$container.scrollLeft(Math.round(-T.left-w.left))},validate:function(w){return!(this.option("disabled")||(0,C.pR)(w)&&this._isScrolledInMaxDirection(w)||!this._allowedDirection())},_isScrolledInMaxDirection(w){var T=this._$container.get(0);return w.delta>0?w.shiftKey?!T.scrollLeft:!T.scrollTop:w.shiftKey?T.scrollLeft>=this._getMaxOffset().left:T.scrollTop>=this._getMaxOffset().top},getDirection:function(){return this._allowedDirection()}})},7293:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>Z});var o=u(1805),c=u(9904),I=u(913),C=u(4505),g=u(4722),a=u(7674),p=u(1828),s=u(5873),l=u(6881),d=u(4514),h=u(2941),v=u(8506),x=u(8893),b=u(8225),y=u(7772),E=u(1140),S=u(3418),O=u(5373),w=u(4270),T=u(4817),k=u(7981),R=u(7616),P=u(3433),W="dxScrollable",V="dx-scrollable",J="dx-scrollable-content",j="vertical",ee="horizontal",G="both",q=x.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{disabled:!1,onScroll:null,direction:j,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat((0,O.i)(),[{device:function(){return C.nativeScrolling&&"android"===h.Z.real().platform&&!g.Z.mozilla},options:{useSimulatedScrollbar:!0}}])},_initOptions:function(X){this.callBase(X),"useSimulatedScrollbar"in X||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(X){X?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var X=this.$element().addClass(V),M=this._$container=(0,c.Z)("<div>").addClass("dx-scrollable-container"),oe=this._$wrapper=(0,c.Z)("<div>").addClass("dx-scrollable-wrapper");(this._$content=(0,c.Z)("<div>").addClass(J)).append(X.contents()).appendTo(M),M.appendTo(oe),oe.appendTo(X)},_dimensionChanged:function(){this.update(),this._updateRtlPosition()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition(!0)},_updateRtlPosition:function(X){this._strategy.updateRtlPosition(X)},_getMaxOffset:function(){var{scrollWidth:X,clientWidth:M,scrollHeight:oe,clientHeight:fe}=(0,c.Z)(this.container()).get(0);return{left:X-M,top:oe-fe}},_attachEventHandlers:function(){var X=this._strategy,M={getDirection:X.getDirection.bind(X),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};I.Z.off(this._$wrapper,"."+W),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.init,W),M,this._initHandler.bind(this)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.start,W),X.handleStart.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.move,W),X.handleMove.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.end,W),X.handleEnd.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.cancel,W),X.handleCancel.bind(X)),I.Z.on(this._$wrapper,(0,b.V4)(y.Z.stop,W),X.handleStop.bind(X)),I.Z.off(this._$container,"."+W),I.Z.on(this._$container,(0,b.V4)("scroll",W),X.handleScroll.bind(X))},_validate:function(X){return!this._isLocked()&&(this._updateIfNeed(),this._moveIsAllowed(X))},_moveIsAllowed(X){return this._strategy.validate(X)},handleMove(X){this._strategy.handleMove(X)},_prepareDirections(X){this._strategy._prepareDirections(X)},_initHandler:function(){var X=this._strategy;X.handleInit.apply(X,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-"+ee).removeClass("dx-scrollable-"+j).removeClass("dx-scrollable-"+G).addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new S.Z(this):new E.L(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(X){switch(X.name){case"onStart":case"onEnd":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":case"scrollByContent":break;case"width":this.callBase(X),this._updateRtlPosition();break;default:this.callBase(X)}},_resetInactiveDirection:function(){var X=this._getInactiveProp();if(X&&(0,d.Ym)()){var M=this.scrollOffset();M[X]=0,this.scrollTo(M)}},_getInactiveProp:function(){var X=this.option("direction");return X===j?"left":X===ee?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(X){if((0,p.PO)(X)){var M=(0,a.IS)(X.left,X.x),oe=(0,a.IS)(X.top,X.y);return{left:(0,p.$K)(M)?-M:void 0,top:(0,p.$K)(oe)?-oe:void 0}}var fe=this.option("direction");return{left:fe!==j?-X:void 0,top:fe!==ee?-X:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(X){var M=this.option("direction");return X===j?M!==ee:X===ee?M!==j:M===X},_updateAllowedDirection:function(){var X=this._strategy._allowedDirections();this._allowedDirectionValue=this._isDirection(G)&&X.vertical&&X.horizontal?G:this._isDirection(ee)&&X.horizontal?ee:this._isDirection(j)&&X.vertical?j:null},_allowedDirection:function(){return this._allowedDirectionValue},$content:function(){return this._$content},content:function(){return(0,l.u)(this._$content)},container:function(){return(0,l.u)(this._$container)},scrollOffset:function(){return this._strategy._getScrollOffset()},_isRtlNativeStrategy:function(){var{useNative:X,rtlEnabled:M}=this.option();return X&&M},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return(0,o.Cr)(this._$container)},scrollHeight:function(){return(0,o.zp)(this.$content())},clientWidth:function(){return(0,o.dz)(this._$container)},scrollWidth:function(){return(0,o.Y_)(this.$content())},update:function(){if(this._strategy)return(0,w.gx)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(X){((X=this._normalizeLocation(X)).top||X.left)&&(this._updateIfNeed(),this._strategy.scrollBy(X))},scrollTo:function(X){X=this._normalizeLocation(X),this._updateIfNeed();var M=this._location();this.option("useNative")||(X=this._strategy._applyScaleRatio(X),M=this._strategy._applyScaleRatio(M)),this._isRtlNativeStrategy()&&(M.left=M.left-this._getMaxOffset().left);var oe=this._normalizeLocation({left:M.left-(0,a.IS)(X.left,M.left),top:M.top-(0,a.IS)(X.top,M.top)});!oe.top&&!oe.left||this._strategy.scrollBy(oe)},scrollToElement:function(X,M){var oe=(0,c.Z)(X),fe=this.$content().find(X).length,Te=oe.parents("."+V).length-oe.parents("."+J).length==0;if(fe&&Te){var Be={top:0,left:0},ze=this.option("direction");ze!==j&&(Be.left=this.getScrollElementPosition(oe,ee,M)),ze!==ee&&(Be.top=this.getScrollElementPosition(oe,j,M)),this.scrollTo(Be)}},getScrollElementPosition:function(X,M,oe){var fe=this.scrollOffset();return function B(X,M,oe,fe,Te){var Be=(0,T.Z)({top:0,left:0,right:0,bottom:0},Te),ze=M===P.Et,ae=ze?"top":"left",_e=ze?"bottom":"right",ye=ze?"height":"width",ne=oe["offset".concat((0,k.MI)(ye))],ce=oe["client".concat((0,k.MI)(ye))],le=oe.getBoundingClientRect()[ye],pe=X.getBoundingClientRect()[ye],Se=1;Math.abs(le-ne)>1&&(Se=le/ne);var re=(0,R.d)(P.hj,X)[ae]/Se,te=fe[ae],ie=te-re+Be[ae],ue=te-re-pe/Se+ce-Be[_e];return ie<=0&&ue>=0?te:te-(Math.abs(ie)>Math.abs(ue)?ue:ie)}(X.get(0),M,(0,c.Z)(this.container()).get(0),fe,oe)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1},isRenovated:function(){return!!q.IS_RENOVATED_WIDGET}});(0,v.Z)(W,q);const Z=q},1140:(Rn,he,u)=>{"use strict";u.d(he,{L:()=>ze,T:()=>fe});var Te,Be,o=u(1805),c=u(9904),I=u(9897),C=u(913),g=u(7981),a=u(5873),p=u(4514),s=u(2718),l=u(1828),d=u(5450),h=u(6961),v=u(5031),x=u(6496),b=u(8225),y=u(7674),E=u(2623),S=u(4270),O="dxSimulatedScrollable",T=O+"Cursor",k=O+"Keyboard",R="dx-scrollable-simulated",W="vertical",z="horizontal",V=.92,Y=Math.round(1e3/60),Z=(1-Math.pow(V,400/Y))/(1-V),M=x.Z.inherit({ctor:function(ae){this.callBase(),this.scroller=ae},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?V:.5},_complete:function(){this.scroller._scrollComplete()}}),oe=M.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return V},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),fe=v.Z.inherit({ctor:function(ae){this._initOptions(ae),this._initAnimators(),this._initScrollbar()},_initOptions:function(ae){this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=ae.direction===z?"x":"y",this._prop=ae.direction===z?"left":"top",this._dimension=ae.direction===z?"width":"height",this._scrollProp=ae.direction===z?"scrollLeft":"scrollTop",(0,s.S6)(ae,(_e,ye)=>{this["_"+_e]=ye})},_initAnimators:function(){this._inertiaAnimator=new M(this),this._bounceAnimator=new oe(this)},_initScrollbar:function(){this._scrollbar=new E.Z((0,c.Z)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(ae){return!0===ae?"onScroll":!1===ae?"never":ae},_scrollStep:function(ae){var _e=this._location;this._location+=ae,this._suppressBounce(),this._move(),!(Math.abs(_e-this._location)<1)&&C.Z.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(ae){return ae=void 0!==ae?ae:this._location,Math.max(Math.min(ae,this._maxOffset),this._minOffset)},_move:function(ae){this._location=void 0!==ae?ae*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var ae=this._location;this._$container[this._scrollProp](-ae/this._getScaleRatio()),this._moveContentByTranslator(ae)},_getScaleRatio:function(){if((0,p.Ym)()&&!this._scaleRatio){var ae=this._$element.get(0),_e=this._getRealDimension(ae,this._dimension),ye=this._getBaseDimension(ae,this._dimension);this._scaleRatio=Math.round(_e/ye*100)/100}return this._scaleRatio||1},_getRealDimension:function(ae,_e){return Math.round((0,d.l)(ae)[_e])},_getBaseDimension:function(ae,_e){return ae["offset"+(0,g.MI)(_e)]},_moveContentByTranslator:function(ae){var _e,ye=-this._maxScrollPropValue;if(this._translateOffset!==(_e=ae>0?ae:ae<=ye?ae-ye:ae%1)){var ne={};if(ne[this._prop]=_e,this._translateOffset=_e,0===_e)return void(0,h.Kx)(this._$content);(0,h.pB)(this._$content,ne)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var ae=this._bounceLocation=this._boundLocation();this._velocity=(ae-this._location)/Z},_inBounds:function(ae){return this._boundLocation(ae=void 0!==ae?ae:this._location)===ae},_crossBoundOnNextStep:function(){var ae=this._location,_e=ae+this._velocity;return ae<this._minOffset&&_e>=this._minOffset||ae>this._maxOffset&&_e<=this._maxOffset},_initHandler:function(ae){this._stopScrolling(),this._prepareThumbScrolling(ae)},_stopScrolling:(0,y.Rg)(function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()}),_prepareThumbScrolling:function(ae){if(!(0,b.pR)(ae.originalEvent)){var _e=(0,c.Z)(ae.originalEvent.target),ye=this._isScrollbar(_e);ye&&this._moveToMouseLocation(ae),this._thumbScrolling=ye||this._isThumb(_e),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(_e),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(ae){return this._isThumb(ae)},_moveToMouseLocation:function(ae){var _e=ae["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],ye=this._location+_e/this._containerToContentRatio()-(0,o.Cr)(this._$container)/2;this._scrollStep(-Math.round(ye))},_startHandler:function(){this._showScrollbar()},_moveHandler:function(ae){this._crossThumbScrolling||(this._thumbScrolling&&(ae[this._axis]=-Math.round(ae[this._axis]/this._containerToContentRatio())),this._scrollBy(ae))},_scrollBy:function(ae){ae=ae[this._axis],this._inBounds()||(ae*=.5),this._scrollStep(ae)},_scrollByHandler:function(ae){this._scrollBy(ae),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(ae){return this._completeDeferred=new S.BH,this._velocity=ae[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){(!this._inertiaEnabled||this._thumbScrolling)&&(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){return this._stopScrolling(),(0,y.Su)(()=>{this._resetScaleRatio(),this._updateLocation(),this._updateBounds(),this._updateScrollbar(),(0,y.g0)(()=>{this._moveScrollbar(),this._scrollbar.update()})})},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=((0,h.jt)(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=this._getMaxOffset(),this._minOffset=this._getMinOffset()},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,y.bN)(function(){var ae=this._containerSize(),_e=this._contentSize(),ye=this._getBaseDimension(this._$container.get(0),this._dimension),ne=this._getBaseDimension(this._$content.get(0),this._dimension);(0,y.g0)(()=>{this._scrollbar.option({containerSize:ae,contentSize:_e,baseContainerSize:ye,baseContentSize:ne,scaleRatio:this._getScaleRatio()})})}),_moveToBounds:(0,y.Rg)((0,y.bN)((0,y.Rg)(function(){var ae=this._boundLocation(),_e=ae!==this._location;this._location=ae,this._move(),_e&&this._scrollAction()}))),_createActionsHandler:function(ae){this._scrollAction=ae.scroll,this._bounceAction=ae.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var ae="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),_e=this._getRealDimension(this._$content.get(0),this._dimension);if(!ae){var ye=this._$content[0]["scroll"+(0,g.MI)(this._dimension)]*this._getScaleRatio();_e=Math.max(ye,_e)}return _e},_validateEvent:function(ae){var _e=(0,c.Z)(ae.originalEvent.target);return this._isThumb(_e)||this._isScrollbar(_e)},_isThumb:function(ae){return this._scrollByThumb&&this._scrollbar.isThumb(ae)},_isScrollbar:function(ae){return this._scrollByThumb&&ae&&ae.is(this._$scrollbar)},_reachedMin:function(){return Math.round(this._location-this._minOffset)<=0},_reachedMax:function(){return Math.round(this._location-this._maxOffset)>=0},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:y.ZT}),ze=v.Z.inherit({ctor:function(ae){this._init(ae)},_init:function(ae){this._component=ae,this._$element=ae.$element(),this._$container=(0,c.Z)(ae.container()),this._$wrapper=ae._$wrapper,this._$content=ae.$content(),this.option=ae.option.bind(ae),this._createActionByOption=ae._createActionByOption.bind(ae),this._isLocked=ae._isLocked.bind(ae),this._isDirection=ae._isDirection.bind(ae),this._allowedDirection=ae._allowedDirection.bind(ae),this._getMaxOffset=ae._getMaxOffset.bind(ae)},render:function(){this._$element.addClass(R),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(z)&&this._createScroller(z),this._isDirection(W)&&this._createScroller(W),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar"))},_createScroller:function(ae){this._scrollers[ae]=new fe(this._scrollerOptions(ae))},_scrollerOptions:function(ae){return{direction:ae,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(ae){for(var _e in this._scrollers){var ye=this._getPropByDirection(_e);(0,l.$K)(ae[ye])&&(ae[ye]*=this._scrollers[_e]._getScaleRatio())}return ae},_isAnyThumbScrolling:function(ae){var _e=!1;return this._eventHandler("isThumbScrolling",ae).done(function(ye,ne){_e=ye||ne}),_e},handleInit:function(ae){this._suppressDirections(ae),this._eventForUserAction=ae,this._eventHandler("init",ae)},_suppressDirections:function(ae){(0,b.pR)(ae.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller(function(_e,ye){var ne=(0,c.Z)(ae.originalEvent.target),ce=_e._validateEvent(ae)||this.option("scrollByContent")&&this._isContent(ne);this._validDirections[ye]=ce}))},_isContent:function(ae){return!!ae.closest(this._$element).length},_prepareDirections:function(ae){ae=ae||!1,this._validDirections={},this._validDirections[z]=ae,this._validDirections[W]=ae},_eachScroller:function(ae){ae=ae.bind(this),(0,s.S6)(this._scrollers,function(_e,ye){ae(ye,_e)})},handleStart:function(ae){this._eventForUserAction=ae,this._eventHandler("start").done(this._startAction)},_saveActive:function(){Be=this},_resetActive:function(){Be===this&&(Be=null)},handleMove:function(ae){if(this._isLocked())return ae.cancel=!0,void this._resetActive();this._saveActive(),ae.preventDefault&&ae.preventDefault(),this._adjustDistance(ae,ae.delta),this._eventForUserAction=ae,this._eventHandler("move",ae.delta)},_adjustDistance:function(ae,_e){_e.x*=this._validDirections[z],_e.y*=this._validDirections[W];var ye=this._tryGetDevicePixelRatio();ye&&(0,b.pR)(ae.originalEvent)&&(_e.x=Math.round(_e.x/ye*100)/100,_e.y=Math.round(_e.y/ye*100)/100)},_tryGetDevicePixelRatio:function(){if((0,p.Ym)())return(0,p.Jj)().devicePixelRatio},handleEnd:function(ae){return this._resetActive(),this._refreshCursorState(ae.originalEvent&&ae.originalEvent.target),this._adjustDistance(ae,ae.velocity),this._eventForUserAction=ae,this._eventHandler("end",ae.velocity).done(this._endAction)},handleCancel:function(ae){return this._resetActive(),this._eventForUserAction=ae,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._updateRtlConfig(),this._scrollAction()},_attachKeyboardHandler:function(){C.Z.off(this._$element,".".concat(k)),!this.option("disabled")&&this.option("useKeyboard")&&C.Z.on(this._$element,(0,b.V4)("keydown",k),this._keyDownHandler.bind(this))},_keyDownHandler:function(ae){if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout(()=>{"tab"===(0,b.EV)(ae)&&this._eachScroller(ye=>{ye._updateHandler()})}),this._$container.is(I.Z.getActiveElement(this._$container.get(0)))){var _e=!0;switch((0,b.EV)(ae)){case"downArrow":this._scrollByLine({y:1});break;case"upArrow":this._scrollByLine({y:-1});break;case"rightArrow":this._scrollByLine({x:1});break;case"leftArrow":this._scrollByLine({x:-1});break;case"pageDown":this._scrollByPage(1);break;case"pageUp":this._scrollByPage(-1);break;case"home":this._scrollToHome();break;case"end":this._scrollToEnd();break;default:_e=!1}_e&&(ae.stopPropagation(),ae.preventDefault())}},_scrollByLine:function(ae){var _e=this._tryGetDevicePixelRatio(),ye=40;_e&&(ye=Math.abs(ye/_e*100)/100),this.scrollBy({top:(ae.y||0)*-ye,left:(ae.x||0)*-ye})},_scrollByPage:function(ae){var _e=this._wheelProp(),ye=this._dimensionByProp(_e),ne={};ne[_e]=ae*-("width"===ye?o.dz:o.Cr)(this._$container),this.scrollBy(ne)},_dimensionByProp:function(ae){return"left"===ae?"width":"height"},_getPropByDirection:function(ae){return ae===z?"left":"top"},_scrollToHome:function(){var _e={};_e[this._wheelProp()]=0,this._component.scrollTo(_e)},_scrollToEnd:function(){var ae=this._wheelProp(),ye={},ne="width"===this._dimensionByProp(ae)?o.dz:o.Cr;ye[ae]=ne(this._$content)-ne(this._$container),this._component.scrollTo(ye)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(ae){var _e=this._createActionByOption(ae);return()=>{_e((0,a.l)(this._createActionArgs(),arguments))}},_createActionArgs:function(){var{horizontal:ae,vertical:_e}=this._scrollers,ye=this._getScrollOffset();return this._scrollOffset={top:_e&&ye.top,left:ae&&ye.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:ae&&ae._reachedMax(),reachedRight:ae&&ae._reachedMin(),reachedTop:_e&&_e._reachedMax(),reachedBottom:_e&&_e._reachedMin()}},_getScrollOffset(){return{top:-this.location().top,left:-this.location().left}},_eventHandler:function(ae){var _e=[].slice.call(arguments).slice(1),ye=(0,s.UI)(this._scrollers,ne=>ne["_"+ae+"Handler"].apply(ne,_e));return S.gx.apply(c.Z,ye).promise()},location:function(){var ae=(0,h.jt)(this._$content);return ae.top-=this._$container.scrollTop(),ae.left-=this._$container.scrollLeft(),ae},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){C.Z.off(this._$element,".".concat(T)),!this.option("disabled")&&this._isHoverMode()&&(C.Z.on(this._$element,(0,b.V4)("mouseenter",T),this._cursorEnterHandler.bind(this)),C.Z.on(this._$element,(0,b.V4)("mouseleave",T),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(ae){(ae=ae||{}).originalEvent=ae.originalEvent||{},!Be&&!ae.originalEvent._hoverHandled&&(Te&&Te._cursorLeaveHandler(),Te=this,this._eventHandler("cursorEnter"),ae.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(ae){Te!==this||Be===Te||(this._eventHandler("cursorLeave"),Te=null,this._refreshCursorState(ae&&ae.relatedTarget))},_refreshCursorState:function(ae){if(this._isHoverMode()||ae&&!Be){var ye=(0,c.Z)(ae).closest(".".concat(R,":not(.dx-state-disabled)")),ne=ye.length&&ye.data("dxScrollableStrategy");Te&&Te!==ne&&Te._cursorLeaveHandler(),ne&&ne._cursorEnterHandler()}},update:function(){var ae=this._eventHandler("update").done(this._updateAction);return(0,S.gx)(ae,(0,y.Su)(()=>{var _e=this._allowedDirections();return(0,y.g0)(()=>{var ye=_e.vertical?"pan-x":"";ye=_e.horizontal?"pan-y":ye,this._$container.css("touchAction",ye=_e.vertical&&_e.horizontal?"none":ye)}),(0,S.gx)().promise()}))},_allowedDirections:function(){var ae=this.option("bounceEnabled"),_e=this._scrollers[W],ye=this._scrollers[z];return{vertical:_e&&(_e._minOffset<0||ae),horizontal:ye&&(ye._minOffset<0||ae)}},_updateBounds:function(){this._scrollers[z]&&this._scrollers[z]._updateBounds()},_isHorizontalAndRtlEnabled:function(){return this.option("rtlEnabled")&&this.option("direction")!==W},updateRtlPosition:function(ae){ae&&(this._rtlConfig={scrollRight:0,clientWidth:this._$container.get(0).clientWidth,windowPixelRatio:this._getWindowDevicePixelRatio()}),this._updateBounds(),this._isHorizontalAndRtlEnabled()&&(0,y.Su)(()=>{var _e=this._getMaxOffset().left-this._rtlConfig.scrollRight;_e<=0&&(_e=0,this._rtlConfig.scrollRight=this._getMaxOffset().left),(0,y.g0)(()=>{this._getScrollOffset().left!==_e&&(this._rtlConfig.skipUpdating=!0,this._component.scrollTo({left:_e}),this._rtlConfig.skipUpdating=!1)})})},_updateRtlConfig:function(){if(this._isHorizontalAndRtlEnabled()&&!this._rtlConfig.skipUpdating){var{clientWidth:ae,scrollLeft:_e}=this._$container.get(0),ye=this._getWindowDevicePixelRatio();this._rtlConfig.windowPixelRatio===ye&&this._rtlConfig.clientWidth===ae&&(this._rtlConfig.scrollRight=this._getMaxOffset().left-_e),this._rtlConfig.clientWidth=ae,this._rtlConfig.windowPixelRatio=ye}},_getWindowDevicePixelRatio:function(){return(0,p.Ym)()?(0,p.Jj)().devicePixelRatio:1},scrollBy:function(ae){var _e=this._scrollers[W],ye=this._scrollers[z];_e&&(ae.top=_e._boundLocation(ae.top+_e._location)-_e._location),ye&&(ae.left=ye._boundLocation(ae.left+ye._location)-ye._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:ae.left,y:ae.top}),this._endAction(),this._updateRtlConfig()},validate:function(ae){return!((0,b.pR)(ae)&&(0,b.j1)(ae)||this.option("disabled"))&&(!!this.option("bounceEnabled")||((0,b.pR)(ae)?this._validateWheel(ae):this._validateMove(ae)))},_validateWheel:function(ae){var _e=this._scrollers[this._wheelDirection(ae)],ye=_e._reachedMin(),ne=_e._reachedMax(),re=(!ye||!ne)&&(!ye&&!ne||ye&&ae.delta>0||ne&&ae.delta<0);return(re=re||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout(()=>{this._validateWheelTimer=void 0},500)),re},_validateMove:function(ae){return!(!this.option("scrollByContent")&&!(0,c.Z)(ae.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(ae){return(0,b.pR)(ae)?this._wheelDirection(ae):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===z?"left":"top"},_wheelDirection:function(ae){switch(this.option("direction")){case z:return z;case W:return W;default:return ae&&ae.shiftKey?z:W}},dispose:function(){this._resetActive(),Te===this&&(Te=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass(R),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){C.Z.off(this._$element,".".concat(T)),C.Z.off(this._$container,".".concat(k))}})},2623:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>P});var o=u(9904),c=u(9897),I=u(913),C=u(3068),g=u(6961),a=u(6853),p=u(8225),s=u(7674),l=u(1828),d=u(5873),h=u(8690),v="dxScrollbar",x="dx-scrollable-scrollbar",b="".concat(x,"-active"),O="horizontal",k=null,R=a.Z.inherit({_getDefaultOptions:function(){return(0,d.l)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:"onScroll",containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,o.Z)("<div>").addClass("dx-scrollable-scroll"),(0,o.Z)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass(x).append(this._$thumb)},isThumb:function(B){return!!this.$element().find(B).length},_isHoverMode:function(){var B=this.option("visibilityMode");return("onHover"===B||"always"===B)&&this.option("expandable")},_renderDirection:function(){var B=this.option("direction");this.$element().addClass("dx-scrollbar-"+B),this._dimension=B===O?"width":"height",this._prop=B===O?"left":"top"},_attachPointerDownHandler:function(){I.Z.on(this._$thumb,(0,p.V4)(h.Z.down,v),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(b),k=this},feedbackOff:function(){this.$element().removeClass(b),k=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(B){"onScroll"===this.option("visibilityMode")&&this._$thumb.css("opacity"),B=this._adjustVisibility(B),this.option().visible=B,this._$thumb.toggleClass("dx-state-invisible",!B)},_adjustVisibility:function(B){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case"onScroll":break;case"onHover":B=B||!!this._isHovered;break;case"never":B=!1;break;case"always":B=!0}return B},moveTo:function(B){if(!this._isHidden()){(0,l.PO)(B)&&(B=B[this._prop]||0);var W={};W[this._prop]=this._calculateScrollBarPosition(B),(0,g.pB)(this._$thumb,W)}},_calculateScrollBarPosition:function(B){return-B*this._thumbRatio},_update:function(){var B=Math.round(this.option("containerSize")),W=Math.round(this.option("contentSize")),z=Math.round(this.option("baseContainerSize")),V=Math.round(this.option("baseContentSize"));isNaN(z)&&(z=B,V=W),this._baseContainerToContentRatio=V?z/V:z,this._realContainerToContentRatio=W?B/W:B;var U=Math.round(Math.max(Math.round(B*this._realContainerToContentRatio),15));this._thumbRatio=(B-U)/(this.option("scaleRatio")*(W-B)),this.option(this._dimension,U/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return"never"===this.option("visibilityMode")},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(B){return(0,l.PO)(B)?B[this._dimension]||0:B},_clean:function(){this.callBase(),this===k&&(k=null),I.Z.off(this._$thumb,"."+v)},_optionChanged:function(B){if(!this._isHidden())switch(B.name){case"containerSize":case"contentSize":this.option()[B.name]=this._normalizeSize(B.value),this._update();break;case"baseContentSize":case"baseContainerSize":case"scaleRatio":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;default:this.callBase.apply(this,arguments)}},update:(0,s.Rg)(function(){this._adjustVisibility()&&this.option("visible",!0)})});C.Z.add(function(){I.Z.subscribeGlobal(c.Z.getDocument(),(0,p.V4)(h.Z.up,v),function(){k&&k.feedbackOff()})});const P=R},5079:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>k});var o=u(9904),c=u(7674),I=u(1828),C=u(5873),g=u(2718),a=u(4270),p=u(6881),s=u(9644),l=u(9897),d=u(9009),h=u(8506),v=u(5287),b=(u(107),u(8225)),w="dx-selectbox-popup-wrapper",T=v.Z.inherit({_supportedKeys:function(){var R=this,P=this.callBase(),B=function(z){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(z.preventDefault(),this.reset()),this._savedTextRemoveEvent=z,this._preventSubstitution=!0},W=function(){R.option("searchEnabled")&&R._valueSubstituted()&&R._searchHandler()};return(0,C.l)({},P,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._resetCaretPosition(!0),P.tab&&P.tab.apply(this,arguments),this._cancelSearchIfNeed()},upArrow:function(z){if(P.upArrow&&P.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(z),!0},downArrow:function(z){if(P.downArrow&&P.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(z),!0},leftArrow:function(){W(),P.leftArrow&&P.leftArrow.apply(this,arguments)},rightArrow:function(){W(),P.rightArrow&&P.rightArrow.apply(this,arguments)},home:function(){W(),P.home&&P.home.apply(this,arguments)},end:function(){W(),P.end&&P.end.apply(this,arguments)},escape:function(){var z=P.escape&&P.escape.apply(this,arguments);return this._cancelEditing(),z??!0},enter:function(z){var V=this.option("opened"),U=this._input().val().trim(),K=U&&this._list&&!this._list.option("focusedElement");if(!U&&(0,I.$K)(this.option("value"))&&this.option("allowClearing"))this._saveValueChangeEvent(z),this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return z.preventDefault(),K&&(V&&this._toggleOpenState(),this._valueChangeEventHandler(z)),V;if(P.enter&&P.enter.apply(this,arguments))return V}},space:function(z){var V=this.option("opened"),U=this.option("searchEnabled"),K=this.option("acceptCustomValue");if(V&&!U&&!K)return z.preventDefault(),this._valueChangeEventHandler(z),!0},backspace:B,del:B})},_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{placeholder:d.Z.format("Select"),fieldTemplate:null,customItemCreateEvent:"change",valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(R){(0,I.$K)(R.customItem)||(R.customItem=R.text)},showSelectionControls:!1,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.$overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" "+w},_setDeprecatedOptions(){this.callBase(),(0,C.l)(this._deprecatedOptions,{valueChangeEvent:{since:"22.2",alias:"customItemCreateEvent"}})},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){var R;if(this._searchValue()){var{items:B,selectedItem:W}=this.option(),z=this._list._itemElements(),V=null!==(R=B?.indexOf(W))&&void 0!==R?R:-1,U=-1===V||this._isCustomItemSelected()?null:z.eq(V);this._focusListElement(U)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list){if(!this._searchValue()||this.option("acceptCustomValue"))return void this._focusListElement(null);var B=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(B)}},_focusListElement:function(R){this._preventInputValueRender=!0,this._list.option("focusedElement",(0,p.u)(R)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataController.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new a.BH).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new a.BH).resolve()},_setNextItem:function(R){var P=this._calcNextItem(R),B=this._valueGetter(P);this._setValue(B)},_setNextValue:function(R){(this._dataController.isLoaded()?(new a.BH).resolve():this._dataController.load()).done(function(){var B=this._getSelectedIndex(),W=this._dataController.pageSize(),z=this._dataController.isLastPage(),V=B===this._items().length-1;this._saveValueChangeEvent(R);var U="downArrow"===(0,b.EV)(R)?1:-1;W&&!z&&V&&U>0?(this._popup||this._createPopup(),this._dataController.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,U))):this._setNextItem(U)}.bind(this))},_setSelectedItem:function(R){var P=!this._isCustomValueAllowed()&&void 0===R;this.callBase(P?null:R),!P&&(!this._isEditable()||this._isCustomItemSelected())&&this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(R){return R=!(0,I.$K)(R)&&this._isCustomValueAllowed()?this.option("value"):R,this.callBase(R)},_listConfig:function(){var R=(0,C.l)(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&(0,C.l)(R,{showSelectionControls:!0,selectionByClick:!0}),R},_listFocusedItemChangeHandler:function(R){if(!this._preventInputValueRender){var P=R.component,B=(0,o.Z)(P.option("focusedElement")),W=P._getItemData(B);this._updateField(W)}},_updateField:function(R){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var B=this._displayGetter(R);return this.option("text",B),void this._renderDisplayText(B)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):c.ZT},_selectionChangeHandler:function(R){(0,g.S6)(R.addedItems||[],function(P,B){this._setValue(this._valueGetter(B))}.bind(this))},_getActualSearchValue:function(){return this._dataController.searchValue()},_toggleOpenState:function(R){if(!this.option("disabled")){if(!(R=arguments.length?R:!this.option("opened"))&&!this._shouldClearFilter()&&this._restoreInputText(!0),this._wasSearch()&&R){this._wasSearch(!1);var P=this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded();if(P&&this._dataController.getDataSource()){if(this._searchTimer)return;var B=this._getActualSearchValue();B&&this._wasSearch(!0),this._filterDataSource(B||null)}else this._setListOption("items",[])}R&&this._scrollToSelectedItem(),this.callBase(R)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._updatePopupWidth(),this._updateListDimensions()},_isValueEqualInputText:function(){var R=this.option("selectedItem");if(null===R)return!1;var P=this._displayGetter(R);return(P?String(P):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_popupHiddenHandler:function(){this.callBase(),this._shouldCancelSearch()&&(this._wasSearch(!1),this._searchCanceled(),this._shouldCancelSearch(!1))},_restoreInputText:function(R){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var{acceptCustomValue:P,text:B,selectedItem:W}=this.option();P?!R&&!this._isValueChanging&&(this._updateField(W??this._createCustomItem(B)),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(z){var V=(0,c.IS)(z,W);this._setSelectedItem(V),this._updateField(V),this._clearFilter()}.bind(this))}.bind(this))},_valueChangeEventIncludesBlur:function(){return this.option(this._getValueChangeEventOptionName()).includes("blur")},_isPreventedFocusOutEvent:function(R){return this._preventNestedFocusEvent(R)||this._valueChangeEventIncludesBlur()},_focusOutHandler:function(R){this._isPreventedFocusOutEvent(R)||(this._isOverlayNestedTarget(R.relatedTarget)||(this._restoreInputText(),this._clearSearchTimer()),this._cancelSearchIfNeed(R)),R.target=this._input().get(0),this.callBase(R)},_cancelSearchIfNeed:function(R){var{searchEnabled:P}=this.option(),B=this._isOverlayNestedTarget(R?.relatedTarget);if(this._wasSearch()&&P&&!B){var z,V=null===(z=this._popup)||void 0===z?void 0:z._hideAnimationProcessing;this._clearSearchTimer(),V?this._shouldCancelSearch(!0):(this._wasSearch(!1),this._searchCanceled())}},_shouldCancelSearch:function(R){if(!arguments.length)return this._shouldCancelSearchValue;this._shouldCancelSearchValue=R},_isOverlayNestedTarget:function(R){return!!(0,o.Z)(R).closest(".".concat(w)).length},_clearTextValue:function(){this.option("selectedItem")&&(this._savedTextRemoveEvent&&this._saveValueChangeEvent(this._savedTextRemoveEvent),this.option("value",null)),delete this._savedTextRemoveEvent},_shouldOpenPopup:function(){return this._needPassDataSourceToList()&&this._wasSearch()},_isFocused:function(){var R=l.Z.getActiveElement(this.element());return this.callBase()&&(0,o.Z)(R).closest(this._input()).length>0},_getValueChangeEventOptionName:function(){return"customItemCreateEvent"},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_fieldRenderData:function(){var R=this._list&&this.option("opened")&&(0,o.Z)(this._list.option("focusedElement"));return R&&R.length?this._list._getItemData(R):this.option("selectedItem")},_isSelectedValue:function(R){return this._isValueEquals(R,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(R){var P=this._getCurrentValue();this._focusListElement((0,o.Z)(R.itemElement)),this._saveValueChangeEvent(R.event),this._completeSelection(this._valueGetter(R.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&P===this._valueGetter(R.itemData)&&this._updateField(R.itemData),this._shouldClearFilter()&&this._cancelSearchIfNeed()},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(R){this._setValue(R)},_loadItem:function(R,P){var B=this,W=new a.BH;return this.callBase(R,P).done(function(z){W.resolve(z)}.bind(this)).fail(function(z){if(null==z||!z.shouldSkipCallback){var V=B.option("selectedItem");B.option("acceptCustomValue")&&R===B._valueGetter(V)?W.resolve(V):W.reject()}}.bind(this)),W.promise()},_loadInputValue:function(R,P){return this._loadItemDeferred=this._loadItem(R).always(P),this._loadItemDeferred},_isCustomItemSelected:function(){var R=this.option("selectedItem"),P=this._searchValue(),B=this._displayGetter(R);return!B||P!==B.toString()},_valueChangeEventHandler:function(R){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(R))},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(R){var P={text:R},B=this._customItemCreatingAction(P),W=(0,c.IS)(B,P.customItem);return(0,I.$K)(B)&&s.Z.log("W0015","onCustomItemCreating","customItem"),W},_customItemAddedHandler:function(R){var P=this._searchValue(),B=this._createCustomItem(P);if(this._saveValueChangeEvent(R),void 0===B)throw this._renderValue(),s.Z.Error("E0121");(0,I.tI)(B)?(0,a.p4)(B).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(B)},_setCustomItem:function(R){this._disposed||(this.option("selectedItem",R=R||null),this._cancelSearchIfNeed(),this._setValue(this._valueGetter(R)),this._renderDisplayText(this._displayGetter(R)),this._isValueChanging=!1)},_clearValueHandler:function(R){return this._preventFiltering=!0,this.callBase(R),this._searchCanceled(),!1},_wasSearch:function(R){if(!arguments.length)return!!this._wasSearchValue;this._wasSearchValue=R},_searchHandler:function(){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(arguments))},_dataSourceFiltered:function(R){this.callBase(),null!==R&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var R=this._input().get(0),P=this._searchValue().length,B=0===R.selectionStart&&R.selectionEnd===P,W=R.selectionStart!==R.selectionEnd,z=P===R.selectionEnd;return this._wasSearch()&&W&&!B&&z&&this._shouldSubstitutionBeRendered()},_shouldSubstitutionBeRendered:function(){return!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var R=this._list&&this._getPlainItems(this._list.option("items"))[0];if(R){var P=this._input(),B=P.val().length;if(0!==B){var W=P.get(0),z=this._displayGetter(R).toString();W.value=z,this._caret({start:B,end:z.length})}}}else delete this._preventSubstitution},_dispose:function(){this._renderInputValueAsync=c.ZT,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(R){switch(R.name){case"customItemCreateEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":this._invalidate();break;case"allowClearing":break;default:this.callBase(R)}}});(0,h.Z)("dxSelectBox",T);const k=T},7398:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>b});var o=u(5031),c=u(1828),I=u(7316),C=u(7674),g=u(4270);const a=o.Z.inherit({ctor:function(y){this.options=y,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:C.ZT,_setOption:function(y,E){this.options[y]=E},onSelectionChanged:function(){var y=this.options.addedItemKeys,E=this.options.removedItemKeys,S=this.options.addedItems,O=this.options.removedItems,w=this.options.selectedItems,T=this.options.selectedItemKeys,k=this.options.onSelectionChanged||C.ZT;this._clearItemKeys(),k({selectedItems:w,selectedItemKeys:T,addedItemKeys:y,removedItemKeys:E,addedItems:S,removedItems:O})},equalKeys:function(y,E){return this.options.equalByReference&&(0,c.Kn)(y)&&(0,c.Kn)(E)?y===E:(0,C.bY)(y,E)},getSelectableItems:function(y){return y.filter(function(E){return!(null!=E&&E.disabled)})},_clearSelection:function(y,E,S,O){return y=y||[],y=Array.isArray(y)?y:[y],this.validate(),this.selectedItemKeys(y,E,S,O)},_removeTemplateProperty:function(y){return Array.isArray(y)?y.map(E=>this._removeTemplateProperty(E)):((0,c.Kn)(y)&&delete y.template,y)},_loadFilteredData:function(y,E,S,O){var w=encodeURI(JSON.stringify(this._removeTemplateProperty(y))).length,T=this.options.maxFilterLengthInRequest&&w>this.options.maxFilterLengthInRequest,k=new g.BH,R={filter:T?void 0:y,select:T?this.options.dataFields():S||this.options.dataFields()};return y&&0===y.length?k.resolve([]):this.options.load(R).done(function(P){var B=(0,c.PO)(P)?P.data:P;E&&!O?B=B.filter(E):T&&(B=(0,I.Z)(B).filter(y).toArray()),k.resolve(B)}).fail(k.reject.bind(k)),k},updateSelectedItemKeyHash:function(y){for(var E=0;E<y.length;E++){var S=(0,C.k3)(y[E]);(0,c.Kn)(S)||(this.options.keyHashIndices[S]=this.options.keyHashIndices[S]||[],this.options.keyHashIndices[S].push(E))}},_isAnyItemSelected:function(y){for(var E=0;E<y.length;E++)if(this.options.isItemSelected(y[E]))return;return!1},_getFullSelectAllState:function(){var y=this.options.plainItems(),E=this.options.filter(),S=this.options.ignoreDisabledItems?this.options.selectedItems:this.options.selectedItems.filter(T=>!(null!=T&&T.disabled));E&&(S=(0,I.Z)(S).filter(E).toArray());var O=S.length,w=y.length-this.getSelectableItems(y).length;return O?O>=this.options.totalCount()-w||void 0:this._isAnyItemSelected(y)},_getVisibleSelectAllState:function(){for(var y=this.getSelectableItems(this.options.plainItems()),E=!1,S=!1,O=0;O<y.length;O++){var w=y[O],T=this.options.getItemData(w),k=this.options.keyOf(T);this.options.isSelectableItem(w)&&(this.isItemKeySelected(k)?E=!0:S=!0)}return!!E&&(!S||void 0)}});var p=u(8159);const s=a.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var y=new g.BH,E=this,S=this.options.key(),O=(0,c.HD)(S)?[S]:S;return this._loadFilteredData(this.options.selectionFilter,null,O).done(function(w){var T=w.map(function(k){return E.options.keyOf(k)});y.resolve(T)}).fail(y.reject),y.promise()},selectedItemKeys:function(y,E,S,O){if(O){var w=this.options.filter();!w||JSON.stringify(w)===JSON.stringify(this.options.selectionFilter)&&S?this._setOption("selectionFilter",S?[]:null):this._addSelectionFilter(S,w,O)}else{E||this._setOption("selectionFilter",[]);for(var k=0;k<y.length;k++)S?this.removeSelectedItem(y[k]):this.addSelectedItem(y[k])}return this.onSelectionChanged(),(new g.BH).resolve()},setSelectedItems:function(y){this._setOption("selectionFilter",null);for(var E=0;E<y.length;E++)this.addSelectedItem(y[E])},isItemDataSelected:function(y){return this.isItemKeySelected(y)},isItemKeySelected:function(y){var E=this.options.selectionFilter;return!E||!!(0,I.Z)([y]).filter(E).toArray().length},_getKeyExpr:function(){var y=this.options.key();return Array.isArray(y)&&1===y.length?y[0]:y},_normalizeKey:function(y){var E=this.options.key();return Array.isArray(E)&&1===E.length?y[E[0]]:y},_getFilterByKey:function(y){var E=this._getKeyExpr(),S=[E,"=",this._normalizeKey(y)];if(Array.isArray(E)){S=[];for(var O=0;O<E.length;O++)S.push([E[O],"=",y[E[O]]]),O!==E.length-1&&S.push("and")}return S},addSelectedItem:function(y){var E=this._getFilterByKey(y);this._addSelectionFilter(!1,E)},removeSelectedItem:function(y){var E=this._getFilterByKey(y);this._addSelectionFilter(!0,E)},validate:function(){var y=this.options.key;if(y&&void 0===y())throw p.Z.Error("E1042","Deferred selection")},_findSubFilter:function(y,E){if(!y)return-1;for(var S=JSON.stringify(E),O=0;O<y.length;O++){var w=y[O];if(w&&JSON.stringify(w)===S)return O}return-1},_isLastSubFilter:function(y,E){return!(!y||!E||this._findSubFilter(y,E)!==y.length-1&&0!==this._findSubFilter([y],E))},_addFilterOperator:function(y,E){return y.length>1&&(0,c.HD)(y[1])&&y[1]!==E&&(y=[y]),y.length&&y.push(E),y},_denormalizeFilter:function(y){return y&&(0,c.HD)(y[0])&&(y=[y]),y},_isOnlyNegativeFiltersLeft:function(y){return y.every((E,S)=>S%2==0?Array.isArray(E)&&"!"===E[0]:"and"===E)},_addSelectionFilter:function(y,E,S){var O=y?["!",E]:E,w=y?"and":"or",T=!0,k=this.options.selectionFilter||[];if((k=this._denormalizeFilter(k))&&k.length){var R=this._removeSameFilter(k,E,y,S),P=this._removeSameFilter(k,E,!y);y&&(-1!==R||-1!==P)&&this._isOnlyNegativeFiltersLeft(k)&&(k=[]);var W=this._isKeyFilter(E)&&this._hasKeyFiltersOnlyStartingFromIndex(k,P);(T=E.length&&!W)&&(k=this._addFilterOperator(k,w))}T&&k.push(O),k=this._normalizeFilter(k),this._setOption("selectionFilter",y||k.length?k:null)},_normalizeFilter:function(y){return y&&1===y.length&&(y=y[0]),y},_removeFilterByIndex:function(y,E,S){var O=y[1];y.splice(E>0?E-1:E,2),S&&"and"===O&&y.splice(0,y.length)},_isSimpleKeyFilter:function(y,E){return 3===y.length&&y[0]===E&&"="===y[1]},_isKeyFilter:function(y){if(2===y.length&&"!"===y[0])return this._isKeyFilter(y[1]);var E=this._getKeyExpr();if(Array.isArray(E)){if(y.length!==2*E.length-1)return!1;for(var S=0;S<E.length;S++)if(S>0&&"and"!==y[2*S-1]||!this._isSimpleKeyFilter(y[2*S],E[S]))return!1;return!0}return this._isSimpleKeyFilter(y,E)},_hasKeyFiltersOnlyStartingFromIndex:function(y,E){if(E>=0){for(var S=E;S<y.length;S++)if("string"!=typeof y[S]&&!this._isKeyFilter(y[S]))return!1;return!0}return!1},_removeSameFilter:function(y,E,S,O){if(E=S?["!",E]:E,JSON.stringify(E)===JSON.stringify(y))return y.splice(0,y.length),0;var w=this._findSubFilter(y,E);if(w>=0)return this._removeFilterByIndex(y,w,O),w;for(var T=0;T<y.length;T++)if(Array.isArray(y[T])&&y[T].length>2){var k=this._removeSameFilter(y[T],E,!1,O);if(k>=0)return y[T].length?1===y[T].length&&(y[T]=y[T][0]):this._removeFilterByIndex(y,T,O),k}return-1},getSelectAllState:function(){var y=this.options.filter(),E=this.options.selectionFilter;if(!E)return!0;if(!E.length)return!1;if(y&&y.length){if(E=this._denormalizeFilter(E),this._isLastSubFilter(E,y))return!0;if(this._isLastSubFilter(E,["!",y]))return!1}}});var l=u(9960),d=u(31),h=u(682);const v=a.inherit({ctor:function(y){this.callBase(y),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(y,E){var O,w,T,S=this.options.keyOf;if(S){var k=E&&y.length>1&&!this.options.equalByReference;for(k&&(O={}),T=0;T<y.length;T++){var R=y[T],P=S(R);E?(w=this.removeSelectedItem(P,O,R?.disabled),O&&w>=0&&(O[w]=!0)):this.addSelectedItem(P,R)}k&&this._batchRemoveSelectedItems(O)}},_batchRemoveSelectedItems:function(y){var E=this.options.selectedItemKeys.slice(0),S=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var O=0;O<E.length;O++)y[O]||(this.options.selectedItemKeys.push(E[O]),this.options.selectedItems.push(S[O]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(y,E,S,O){var w=new g.BH,T=this.options.key();if(!y.length&&!S)return w.resolve([]),w;if(S&&E&&!O)return w.resolve(this.getSelectedItems()),w;var k=new h.M(y,S),R=k.getCombinedFilter(T,O),P=[];if(E){var B=this.options.selectedItems;P=R&&y.length!==B.length?(0,I.Z)(B).filter(R).toArray():B.slice(0)}var W=P.length?P:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),z=k.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,T);return W=W.filter(z),P.length||!S&&W.length===y.length?w.resolve(W):w=this._loadFilteredData(R,z,null,S),w},_replaceSelectionUpdate:function(y){var E=[],S=this.options.keyOf;if(S){for(var O=0;O<y.length;O++){var T=S(y[O]);E.push(T)}this.setSelectedItems(E,y)}},_warnOnIncorrectKeys:function(y){for(var E=this.options.allowNullValue,S=0;S<y.length;S++){var O=y[S];(!E||null!==O)&&!this.isItemKeySelected(O)&&p.Z.log("W1002",O)}},_isMultiSelectEnabled:function(){var y=this.options.mode;return"all"===y||"multiple"===y},_requestInProgress:function(){var y;return"pending"===(null===(y=this._lastLoadDeferred)||void 0===y?void 0:y.state())},_concatRequestsItems:function(y,E,S,O){var w,T=E?y:[];return w=O||(0,l.R1)(y,this.options.selectedItemKeys),{addedItems:S.added.concat(w),removedItems:S.removed.concat(T),keys:y}},_collectLastRequestData:function(y,E,S,O){var w=E&&S,T={added:[],removed:[]},k=this._isMultiSelectEnabled(),R=k?this._lastRequestData:{};return k&&(this._shouldMergeWithLastRequest&&(w?(this._lastLoadDeferred.reject(),R={}):(0,d.E)(y,this.options.selectedItemKeys)||(T.added=R.addedItems,T.removed=R.removedItems,E||this._lastLoadDeferred.reject())),R=this._concatRequestsItems(y,E,T,this._shouldMergeWithLastRequest?void 0:O)),R},_updateKeysByLastRequestData:function(y,E,S){var w,T,O=y;return this._isMultiSelectEnabled()&&this._shouldMergeWithLastRequest&&!E&&!S&&(O=(0,l.R1)(y.concat(null===(w=this._lastRequestData)||void 0===w?void 0:w.addedItems),null===(T=this._lastRequestData)||void 0===T?void 0:T.removedItems),O=(0,l.rZ)(O)),O},_loadSelectedItems:function(y,E,S,O){var w=this,T=new g.BH,k=w.options.filter();return this._shouldMergeWithLastRequest=this._requestInProgress(),this._lastRequestData=this._collectLastRequestData(y,E,S,O),(0,g.gx)(w._lastLoadDeferred).always(function(){var R=w._updateKeysByLastRequestData(y,E,S);w._shouldMergeWithLastRequest=!1,w._loadSelectedItemsCore(R,E,S,k).done(T.resolve).fail(T.reject)}),w._lastLoadDeferred=T,T},selectedItemKeys:function(y,E,S,O,w){var T=this,k=T._loadSelectedItems(y,S,O,w);return k.done(function(R){E?T._preserveSelectionUpdate(R,S):T._replaceSelectionUpdate(R),T.onSelectionChanged()}),k},addSelectedItem:function(y,E){if((0,c.$K)(E)&&!this.options.ignoreDisabledItems&&E.disabled)-1===this.options.disabledItemKeys.indexOf(y)&&this.options.disabledItemKeys.push(y);else{var S=this._getKeyHash(y);-1===this._indexOfSelectedItemKey(S)&&(!(0,c.Kn)(S)&&this.options.keyHashIndices&&(this.options.keyHashIndices[S]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(y),this.options.addedItemKeys.push(y),this.options.addedItems.push(E),this.options.selectedItems.push(E))}},_getSelectedIndexByKey:function(y,E){for(var S=this.options.selectedItemKeys,O=0;O<S.length;O++)if((!E||!E[O])&&this.equalKeys(S[O],y))return O;return-1},_getSelectedIndexByHash:function(y,E){var S=this.options.keyHashIndices[y];return S&&S.length>1&&E&&(S=S.filter(function(O){return!E[O]})),S&&S[0]>=0?S[0]:-1},_indexOfSelectedItemKey:function(y,E){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(y):(0,c.Kn)(y)?this._getSelectedIndexByKey(y,E):this._getSelectedIndexByHash(y,E)},_shiftSelectedKeyIndices:function(y){for(var E=y;E<this.options.selectedItemKeys.length;E++){var O=(0,C.k3)(this.options.selectedItemKeys[E]),w=this.options.keyHashIndices[O];if(w)for(var T=0;T<w.length;T++)w[T]>y&&w[T]--}},removeSelectedItem:function(y,E,S){if(this.options.ignoreDisabledItems||!S){var O=this._getKeyHash(y),w=!!E,T=this._indexOfSelectedItemKey(O,E);if(T<0||(this.options.removedItemKeys.push(y),this.options.removedItems.push(this.options.selectedItems[T]),w)||(this.options.selectedItemKeys.splice(T,1),this.options.selectedItems.splice(T,1),(0,c.Kn)(O)||!this.options.keyHashIndices))return T;var k=this.options.keyHashIndices[O];return k&&(k.shift(),k.length||delete this.options.keyHashIndices[O],this._shiftSelectedKeyIndices(T)),T}},_updateAddedItemKeys:function(y,E){for(var S=0;S<y.length;S++)this.isItemKeySelected(y[S])||(this.options.addedItemKeys.push(y[S]),this.options.addedItems.push(E[S]))},_updateRemovedItemKeys:function(y,E,S){for(var O=0;O<E.length;O++)this.isItemKeySelected(E[O])||(this.options.removedItemKeys.push(E[O]),this.options.removedItems.push(S[O]))},_isItemSelectionInProgress:function(y,E){var O;return!!(E&&this._lastRequestData&&this._requestInProgress())&&(null!==(O=this._lastRequestData.addedItems)&&void 0!==O?O:[]).includes(y)},_getKeyHash:function(y){return this.options.equalByReference?y:(0,C.k3)(y)},setSelectedItems:function(y,E){this._updateAddedItemKeys(y,E);var S=this.options.selectedItemKeys,O=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(y)),this._setOption("selectedItemKeys",y),this._setOption("selectedItems",E),this._updateRemovedItemKeys(y,S,O)},isItemDataSelected:function(y){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=this.options.keyOf(y);return this.isItemKeySelected(S,E)},isItemKeySelected:function(y){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=this._isItemSelectionInProgress(y,E.checkPending);if(!S){var O=this._getKeyHash(y),w=this._indexOfSelectedItemKey(O);S=-1!==w}return S},getSelectAllState:function(y){return y?this._getVisibleSelectAllState():this._getFullSelectAllState()}});var x=u(5873);const b=o.Z.inherit({ctor:function(y){this.options=(0,x.l)(this._getDefaultOptions(),y,{selectedItemKeys:y.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new s(this.options):new v(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:C.ZT,key:C.ZT,keyOf:function(y){return y},load:function(){return(new g.BH).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(y){return y},dataFields:C.ZT,filter:C.ZT}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(y){if(void 0===y)return this.options.selectionFilter;var E=this.options.selectionFilter!==y&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(y);this.options.selectionFilter=y,E&&this.onSelectionChanged()},setSelection:function(y,E){return this.selectedItemKeys(y,!1,!1,!1,E)},select:function(y){return this.selectedItemKeys(y,!0)},deselect:function(y){return this.selectedItemKeys(y,!0,!0)},selectedItemKeys:function(y,E,S,O,w){var T;return y=null!==(T=y)&&void 0!==T?T:[],y=Array.isArray(y)?y:[y],this.validate(),this._selectionStrategy.selectedItemKeys(y,E,S,O,w)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(y,E){this._selectionStrategy.addSelectedItem(E,y)},_removeSelectedItem:function(y){this._selectionStrategy.removeSelectedItem(y)},_setSelectedItems:function(y,E){this._selectionStrategy.setSelectedItems(y,E)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(y,E,S){var O,w,T,P,W,k=this.options.plainItems(),R=k[y],z=!1,V=!1,U=ee=>ee>=0&&!k.filter(G=>G.loadIndex===ee).length;if((null===(O=(w=this.options).allowLoadByRange)||void 0===O?void 0:O.call(w))&&(W=R.loadIndex-y,y=R.loadIndex,z=U(this._focusedItemIndex),(0,c.$K)(this._shiftFocusedItemIndex)&&(V=U(this._shiftFocusedItemIndex))),!this.isSelectable()||!this.isDataItem(R))return!1;var K=this.options.getItemData(R),Y=this.options.keyOf(K);if((E=E||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)z||V?(T=y!==this._shiftFocusedItemIndex||this._focusedItemIndex!==this._shiftFocusedItemIndex)&&(P=this.changeItemSelectionWhenShiftKeyInVirtualPaging(y)):T=this.changeItemSelectionWhenShiftKeyPressed(y,k,W);else if(E.control){if(this._resetItemSelectionWhenShiftKeyPressed(),!S){var J=this._selectionStrategy.isItemDataSelected(K);"single"===this.options.mode&&this.clearSelectedItems(),J?this._removeSelectedItem(Y):this._addSelectedItem(K,Y)}T=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var j=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],Y);(1!==this.options.selectedItemKeys.length||!j)&&(this._setSelectedItems([Y],[K]),T=!0)}return T?((0,g.gx)(P).done(()=>{this._focusedItemIndex=y,!S&&this.onSelectionChanged()}),!0):void 0},isDataItem:function(y){return this.options.isSelectableItem(y)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(y){return this._selectionStrategy.isItemDataSelected(y,{checkPending:!0})},isItemSelected:function(y,E){return this._selectionStrategy.isItemKeySelected(y,E)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyInVirtualPaging:function(y){var E=this.options.getLoadOptions(y,this._focusedItemIndex,this._shiftFocusedItemIndex),S=new g.BH,O=E.skip;return this.options.load(E).done(w=>{this.changeItemSelectionWhenShiftKeyPressed(y,w,O),S.resolve()}),S.promise()},changeItemSelectionWhenShiftKeyPressed:function(y,E,S){var w,V,U,Y,O=!1,T=(0,c.$K)(S),k=T?this._focusedItemIndex-S:this._focusedItemIndex,R=this.options.keyOf,P=E[k],B=this.options.getItemData(P),W=R(B),z=P&&this.isItemDataSelected(B);if((0,c.$K)(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(w=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,Y=T?this._shiftFocusedItemIndex-S:this._shiftFocusedItemIndex,k=T?this._focusedItemIndex-S:this._focusedItemIndex;k!==Y;k+=w)(T||this.isDataItem(E[k]))&&(U=R(this.options.getItemData(E[k])),this._removeSelectedItem(U),O=!0);if(y!==this._shiftFocusedItemIndex)for(w=y<this._shiftFocusedItemIndex?1:-1,Y=T?this._shiftFocusedItemIndex-S:this._shiftFocusedItemIndex,k=T?y-S:y;k!==Y;k+=w)(T||this.isDataItem(E[k]))&&(U=R(V=this.options.getItemData(E[k])),this._addSelectedItem(V,U),O=!0);return(T||this.isDataItem(P))&&!z&&(this._addSelectedItem(B,W),O=!0),O},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(y){return this._resetFocusedItemIndex(),y?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(y){return this._resetFocusedItemIndex(),y?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(y){for(var E=this._selectionStrategy.getSelectableItems(this.options.plainItems()),S=0;S<E.length;S++){var O=E[S];if(this.isDataItem(O)){var w=this.options.getItemData(O),T=this.options.keyOf(w),k=this.isItemSelected(T);!k&&!y&&this._addSelectedItem(w,T),k&&y&&this._removeSelectedItem(T)}}return this.onSelectionChanged(),(new g.BH).resolve()},getSelectAllState:function(y){return this._selectionStrategy.getSelectAllState(y)}})},2559:(Rn,he,u)=>{"use strict";u.d(he,{Bg:()=>z,Hl:()=>Y,Ni:()=>W,Y4:()=>V,bT:()=>B,c3:()=>w,fv:()=>K,vg:()=>U});var o=u(9904),c=u(913),I=u(8225),C=u(5873),g=u(9897),a=u(7674),p="dx-state-focused",d=".dx-datagrid-rowsview .dx-row",h="".concat(d," > td"),v=".dx-treelist-rowsview .dx-row",x="".concat(v," > td"),b={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(d,"[tabindex]"),"".concat(h,"[tabindex]"),"".concat(h),"".concat(v,"[tabindex]"),"".concat(x,"[tabindex]"),"".concat(x)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},y=!1,E=!1,S=null;function w(J,j){var ee=(0,o.Z)(J),G=ee.attr("aria-label"),Z=T(G,j.element()).index(ee);S=(0,C.l)({},{ariaLabel:G,index:Z},{viewInstance:j})}function T(J,j){return(0,o.Z)(j).find(J?'[aria-label="'.concat(J,'"][tabindex]'):"[tabindex]")}function k(J,j){var ee=j?.getRootNode()||g.Z.getDocument();for(var G in J){var q=J[G],Z=(0,o.Z)(ee).find(q).first();if(Z.length)return Z}}function P(){E="visible"===g.Z.getDocument().visibilityState}function B(){c.Z.on(g.Z.getDocument(),"visibilitychange",P)}function W(){c.Z.off(g.Z.getDocument(),"visibilitychange",P)}function z(J){E=!0,J.focus(),E=!1}function V(J,j,ee,G,q,Z){if(j.option("useLegacyKeyboardNavigation"))return a.ZT;var X=()=>(0,o.Z)(j.element()),M=Te=>function O(J,j,ee,G,q,Z){var X=function R(J,j,ee){var G={event:j,handled:!1};return ee?ee(G):J._createActionByOption("onKeyDown")(G),G.handled}(j,ee.originalEvent,Z);if(!X){var M=(0,I.EV)(ee);"enter"===M||"space"===M?(w(ee.target,j),G&&G({event:ee})):"tab"===M?q.addClass(p):K(J,j,ee)}}(J,j,Te,q,X(),Z),oe=()=>{y=!0,X().removeClass(p)},fe=()=>{!y&&!E&&X().addClass(p),y=!1};return c.Z.on(ee,"keydown",G,M),c.Z.on(ee,"mousedown",G,oe),c.Z.on(ee,"focusin",G,fe),()=>{c.Z.off(ee,"keydown",G,M),c.Z.off(ee,"mousedown",G,oe),c.Z.off(ee,"focusin",G,fe)}}function U(J){if(!J.option("useLegacyKeyboardNavigation")&&S){var j=S.viewInstance;if(j){var G=T(S.ariaLabel,j.element()).eq(S.index);S=null,c.Z.trigger(G,"focus")}}}function K(J,j,ee){var G=(0,I.EV)(ee);if(ee.ctrlKey&&("upArrow"===G||"downArrow"===G))for(var q=Object.keys(b),Z=q.indexOf(J);Z>=0&&Z<q.length;){Z="upArrow"===G?--Z:++Z;var oe=k(b[q[Z]],ee.target);if(oe&&oe.length){oe.attr("tabindex",j.option("tabindex")||0),c.Z.trigger(oe,"focus"),oe.removeClass("dx-cell-focus-disabled");break}}}function Y(J,j){J.option("useLegacyKeyboardnavigation")||j.attr("tabindex",J.option("tabindex")||0)}},2135:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>p});var o=u(1828),c=u(2718),I=["year","month","day"],C=["year","month","day","hour","minute"],g=function(s){return"date"===s||"datetime"===s},a=function(s){var l,d=[],h=["year","month","day","hour","minute","second"],v=s.headerFilter&&s.headerFilter.groupInterval,x="quarter"===v?"month":v;return g(s.dataType)&&null!==v?(d="datetime"===s.dataType?C:I,(l=h.indexOf(x))>=0&&(d=h.slice(0,l)).push(v),d):(0,o.$K)(v)?Array.isArray(v)?v:[v]:void 0};const p=(s=function(v,x){var b=v.dataField||v.selector;return"search"===x&&(b=v.displayField||v.calculateDisplayValue||b),b},l=function(v,x){var b,y,E,O,S=s(this,x);if(Array.isArray(v)&&(0,o.$K)(v[0])&&(0,o.$K)(v[1]))return y=[S,">=",v[0]],E=[S,"<=",v[1]],g(this.dataType)&&(O=v[1]).getHours()+O.getMinutes()+O.getSeconds()+O.getMilliseconds()<1&&(b=new Date(v[1].getTime()),"date"===this.dataType&&b.setDate(v[1].getDate()+1),E=[S,"<",b]),[y,"and",E]},d=function(v,x,b){var y,E,S,T,O=(0,o.J_)(T=v)?[T.getFullYear(),T.getMonth(),T.getDate(),T.getHours(),T.getMinutes(),T.getSeconds()]:(0,c.UI)((""+T).split("/"),function(k,R){return 1===R?Number(k)-1:Number(k)}),w=s(this,b);switch("headerFilter"===b?S=a(this)[O.length-1]:"datetime"===this.dataType&&(S="minute"),S){case"year":y=new Date(O[0],0,1),E=new Date(O[0]+1,0,1);break;case"month":y=new Date(O[0],O[1],1),E=new Date(O[0],O[1]+1,1);break;case"quarter":y=new Date(O[0],3*O[1],1),E=new Date(O[0],3*O[1]+3,1);break;case"hour":y=new Date(O[0],O[1],O[2],O[3]),E=new Date(O[0],O[1],O[2],O[3]+1);break;case"minute":y=new Date(O[0],O[1],O[2],O[3],O[4]),E=new Date(O[0],O[1],O[2],O[3],O[4]+1);break;case"second":y=new Date(O[0],O[1],O[2],O[3],O[4],O[5]),E=new Date(O[0],O[1],O[2],O[3],O[4],O[5]+1);break;default:y=new Date(O[0],O[1],O[2]),E=new Date(O[0],O[1],O[2]+1)}switch(x){case"<":return[w,"<",y];case"<=":return[w,"<",E];case">":return[w,">=",E];case">=":return[w,">=",y];case"<>":return[[w,"<",y],"or",[w,">=",E]];default:return[[w,">=",y],"and",[w,"<",E]]}},h=function(v,x,b){var y=s(this,b),E=a(this);if("headerFilter"===b&&E&&(0,o.$K)(v)){var S=(""+v).split("/"),O=Number(S[S.length-1]);return[[y,">=",O],"and",[y,"<",O+E[S.length-1]]]}return[y,x||"=",v]},{defaultCalculateFilterExpression:function(v,x,b){var y=this,E=s(y,b),S=y.calculateDisplayValue&&"search"===b,O=S&&y.lookup&&y.lookup.dataType||y.dataType,w=null;if("headerFilter"!==b&&"filterBuilder"!==b||null!==v)if("string"!==O||y.lookup&&!S){if("between"===x)return l.apply(y,[v,b]);if(g(O)&&(0,o.$K)(v))return d.apply(y,arguments);if("number"===O)return h.apply(y,arguments);w=[E,x||"=",v]}else w=[E,x||"contains",v];else w=[E,x||"=",null],"string"===O&&(w=[w,"="===x?"or":"and",[E,x||"=",""]]);return w},getGroupInterval:a});var s,l,d,h},9661:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});var o=u(1828);const I={_getSpecificDataSourceOption:function(){var C=this.option("dataSource"),g=!1,a={};return this._getGroupedOption()&&(C=>Array.isArray(C)&&C.every(g=>2===Object.keys(g).length&&"key"in g&&"items"in g&&Array.isArray(g.items)))(C)&&(a=C.reduce((p,s)=>{var l=s.items.map(d=>((0,o.Kn)(d)||(d={text:d},g=!0),"key"in d||(d.key=s.key),d));return p.concat(l)},[]),C={store:{type:"array",data:a},group:{selector:"key",keepInitialKeyOrder:!0}},g&&(C.searchExpr="text")),C}}},5946:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>k});var o=u(9904),c=u(913),I=u(1828),C=u(9963),g=u(6738),a=u(4722),p=u(5873),s=u(2941),l=u(6881),d=u(5981),h=u(8225),{isWrapped:S}=(u(3447),u(1946),u(344),u(5079),u(1884),C.Z);const k=function(){var R=function(V,U){return(0,p.l)(V,{readOnly:U.readOnly,placeholder:U.placeholder,inputAttr:{id:U.id},tabIndex:U.tabIndex},U.editorOptions)},P=function(){return a.Z.mozilla||s.Z.real().ios},B=function(V){var U={},K=P(),Y=V.sharedData||U;return R({placeholder:V.placeholder,width:V.width,value:V.value,onValueChanged:function(J){var j="filterRow"===V.parentType||"searchPanel"===V.parentType,ee=J.event&&("input"===J.event.type||"keyup"===J.event.type),G=function(q,Z){V&&V.setValue(q.value,Z)};clearTimeout(U.valueChangeTimeout),ee&&j?Y.valueChangeTimeout=U.valueChangeTimeout=setTimeout(function(){G(J,U.valueChangeTimeout!==Y.valueChangeTimeout)},(0,I.$K)(V.updateValueTimeout)?V.updateValueTimeout:0):G(J)},onKeyDown:function(J){K&&"enter"===(0,h.EV)(J.event)&&c.Z.trigger((0,o.Z)(J.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===V.parentType?" keyup input":"")},V)};function z(V){var K,Y,J,U=V.lookup,j="filterRow"===V.parentType;if(U){K=(0,g.vb)(U.displayExpr),(0,I.mf)(Y=U.dataSource)&&!S(Y)&&(Y=Y(V.row||{}),function(G){if(G.row&&G.row.watch&&"dataRow"===G.parentType){var q=G.editorOptions||{};G.editorOptions=q;var Z,X=q.onInitialized;q.onInitialized=function(fe){X&&X.apply(this,arguments),(Z=fe.component).on("disposing",oe)};var M,oe=G.row.watch(()=>(M=G.lookup.dataSource(G.row))&&M.filter,()=>{Z.option("dataSource",M)},fe=>{G.row=fe})}}(V)),((0,I.Kn)(Y)||Array.isArray(Y))&&(Y=(0,d.aN)(Y),j&&(J=Y.postProcess,Y.postProcess=function(G){return 0===this.pageIndex()&&(G=G.slice(0)).unshift(null),J?J.call(this,G):G}));var ee=Boolean(U.allowClearing&&!j);V.editorName="dxSelectBox",V.editorOptions=R({searchEnabled:!0,value:V.value,valueExpr:V.lookup.valueExpr,searchExpr:V.lookup.searchExpr||V.lookup.displayExpr,allowClearing:ee,showClearButton:ee,displayExpr:function(G){return null===G?V.showAllText:K(G)},dataSource:Y,onValueChanged:function(G){var q=[G.value];!j&&q.push(G.component.option("text")),V.setValue.apply(this,q)}},V)}}return{createEditor:function(V,U){if(U.cancel=!1,U.editorElement=(0,l.u)(V),(0,I.$K)(U.tabIndex)||(U.tabIndex=this.option("tabIndex")),U.lookup)z(U);else switch(U.dataType){case"date":case"datetime":(K=U).editorName="dxDateBox",K.editorOptions=R({value:K.value,onValueChanged:function(Y){K.setValue(Y.value)},onKeyDown:function(Y){var{component:J,event:j}=Y,ee=J.option("useMaskBehavior");(P()||ee)&&"enter"===(0,h.EV)(j)&&(J.blur(),J.focus())},displayFormat:K.format,type:K.dataType,dateSerializationFormat:null,width:"filterBuilder"===K.parentType?void 0:"auto"},K);break;case"boolean":!function(V){var U;"filterRow"===V.parentType||"filterBuilder"===V.parentType?z((0,p.l)(V,{lookup:{displayExpr:function(U){return!0===U?V.trueText||"true":!1===U?V.falseText||"false":void 0},dataSource:[!0,!1]}})):((U=V).editorName="dxCheckBox",U.editorOptions=R({elementAttr:{id:U.id},value:(0,I.$K)(U.value)?U.value:void 0,hoverStateEnabled:!U.readOnly,focusStateEnabled:!U.readOnly,activeStateEnabled:!1,onValueChanged:function(K){U.setValue&&U.setValue(K.value,K)}},U))}(U);break;case"number":!function(K){var Y=B(K);Y.value=(0,I.$K)(K.value)?K.value:null,K.editorName="dxNumberBox",K.editorOptions=Y}(U);break;default:!function(K){var j,Y=B(K),J="searchPanel"===K.parentType;Y.value=K.editorType&&"dxTextBox"!==K.editorType?K.value:(0,I.$K)(j=K.value)?j.toString():"",Y.valueChangeEvent+=J?" keyup input search":"",Y.mode=Y.mode||(J?"search":"text"),K.editorName="dxTextBox",K.editorOptions=Y}(U)}var K;"dataRow"===U.parentType&&U.editorType&&(U.editorName=U.editorType),this.executeAction("onEditorPreparing",U),!U.cancel&&("dataRow"===U.parentType&&!U.isOnForm&&!(0,I.$K)(U.editorOptions.showValidationMark)&&(U.editorOptions.showValidationMark=!1),function(K,Y){var J=(0,o.Z)(Y.editorElement);if(Y.editorName&&Y.editorOptions&&J[Y.editorName]){if(("dxCheckBox"===Y.editorName||"dxSwitch"===Y.editorName)&&(Y.isOnForm||(J.addClass(K.addWidgetPrefix("checkbox-size")),J.parent().addClass("dx-editor-inline-block"))),K._createComponent(J,Y.editorName,Y.editorOptions),"dxDateBox"===Y.editorName){var j=J.dxDateBox("instance"),ee=j._supportedKeys().enter;j.registerKeyHandler("enter",G=>(j.option("opened")&&ee(G),!0))}"dxTextArea"===Y.editorName&&J.dxTextArea("instance").registerKeyHandler("enter",function(G){"enter"===(0,h.EV)(G)&&!G.ctrlKey&&!G.shiftKey&&G.stopPropagation()})}}(this,U),this.executeAction("onEditorPrepared",U))}}}()},1414:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>R});var o=u(1805),c=u(9904),I=u(913),C=u(8506),g=u(5873),a=u(130),p=u(6881),s=u(4514),l=u(5450),d=u(6961),h=u(3553),v=u(4270),x=(0,s.Jj)(),y="placeholder",S=P=>(0,c.Z)(P).is(":visible"),O=(P,B)=>{var W,z;if(P){var V=(null===(W=B.to)||void 0===W?void 0:W.left)||0,U=(null===(z=B.to)||void 0===z?void 0:z.top)||0;P.style.transform="translate(".concat(V,"px,").concat(U,"px)"),P.style.transition=h.Z.off?"":"transform ".concat(B.duration,"ms ").concat(B.easing)}},w=P=>{P&&(P.style.transform="",P.style.transition="")},k=a.Z.inherit({_init:function(){this.callBase(),this._sourceScrollHandler=this._handleSourceScroll.bind(this),this._sourceScrollableInfo=null},_getDefaultOptions:function(){return(0,g.l)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null,fromIndexOffset:0,offset:0,autoUpdate:!1,draggableElementSize:0})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null,itemPoints:null,fromIndexOffset:0,draggableElementSize:0}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(P,B){return P.slice(0,B).reverse().filter(S)[0]},_dragStartHandler:function(P){if(this.callBase.apply(this,arguments),!0!==P.cancel){var B=this._getSourceElement();this._updateItemPoints(),this._subscribeToSourceScroll(P),this.option("fromIndex",this._getElementIndex(B)),this.option("fromIndexOffset",this.option("offset"))}},_subscribeToSourceScroll:function(P){var B=this._getScrollable((0,c.Z)(P.target));B&&(this._sourceScrollableInfo={element:B,scrollLeft:B.scrollLeft(),scrollTop:B.scrollTop()},I.Z.off(B,"scroll",this._sourceScrollHandler),I.Z.on(B,"scroll",this._sourceScrollHandler))},_unsubscribeFromSourceScroll:function(){this._sourceScrollableInfo&&(I.Z.off(this._sourceScrollableInfo.element,"scroll",this._sourceScrollHandler),this._sourceScrollableInfo=null)},_handleSourceScroll:function(P){var B=this._sourceScrollableInfo;B&&["scrollLeft","scrollTop"].forEach(W=>{P.target[W]!==B[W]&&(this._correctItemPoints(P.target[W]-B[W]),this._movePlaceholder(),B[W]=P.target[W])})},_dragEnterHandler:function(P){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._subscribeToSourceScroll(P),this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var B=this.option("itemPoints"),W=B[B.length-1];if(W){var z=this.$element(),V=this._getSourceElement(),U=this._isVerticalOrientation(),K=U?(0,o.zp)(V,!0):(0,o.Y_)(V,!0),Y=z.get(0)[U?"scrollHeight":"scrollWidth"],J=z.get(0)[U?"scrollTop":"scrollLeft"],j=U?"top":"left",ee=W[j],G=z.offset()[j],q=G+Y-J-ee;if(q<K&&U){var Z=this._getItems(),X=(0,c.Z)(this._getPrevVisibleItem(Z));this._$modifiedItem=X,this._modifiedItemMargin=X.get(0).style.marginBottom,X.css("marginBottom",K-q);var M=X.closest(".dx-sortable"),oe=M.data("dxScrollable")||M.data("dxScrollView");oe&&oe.update()}}}},_dragLeaveHandler:function(){this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&this._unsubscribeFromSourceScroll()},dragEnter:function(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave:function(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_allowDrop:function(P){var W=this._getTargetDraggable().$element(),z=this._getScrollable(W);if(z){var{left:V,right:U,top:K,bottom:Y}=function T(P){var B=P.offset(),W=P[0].style,z=parseFloat(W.paddingLeft)||0,V=parseFloat(W.paddingRight)||0,U=parseFloat(W.paddingTop)||0,K=P[0].clientWidth-(z+V),Y=(0,o.Cr)(P),J=B.left+z,j=B.top+U;return{left:J,right:J+K,top:j,bottom:j+Y}}(z),J=this.option("toIndex"),ee=this.option("itemPoints")?.filter(q=>q.index===J)[0];if(ee&&void 0!==ee.top)return this._isVerticalOrientation()?K<=Math.ceil(ee.top)&&Math.floor(ee.top)<=Y:V<=Math.ceil(ee.left)&&Math.floor(ee.left)<=U}return!0},dragEnd:function(P){this._unsubscribeFromSourceScroll();var Y,J,B=this._getSourceElement(),W=this._getSourceDraggable(),z=W.NAME!==this.NAME,V=this.option("toIndex"),U=P.event,K=this._allowDrop(U);return null!==V&&V>=0&&K&&(W!==this&&((Y=this._fireAddEvent(U))||(J=this._fireRemoveEvent(U))),z&&(0,d.Kx)(B),this.option("moveItemOnDrop")&&!Y&&this._moveItem(B,V,J),W===this)?this._fireReorderEvent(U):(new v.BH).resolve()},dragMove:function(P){var B=this.option("itemPoints");if(B){for(var K,W=this._isVerticalOrientation(),z=W?"top":"left",V=W?P.pageY:P.pageX,U=this.option("rtlEnabled"),Y=B.length-1;Y>=0;Y--){var J=B[Y+1]&&(B[Y][z]+B[Y+1][z])/2;if(!(!W&&U?V>J:J>V)&&void 0!==J)break;K=B[Y]}K&&(this._updatePlaceholderPosition(P,K),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var P;return this._isIndicateMode()&&(P=(0,c.Z)("<div>").addClass(this._addWidgetPrefix(y)).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=P,P},_getItems:function(){var P=this._getItemsSelector();return this._$content().find(P).not("."+this._addWidgetPrefix(y)).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(P,B,W){var z=this.option("allowDropInsideItem");return!!(W||this._allowReordering()||0===P&&z)&&(!this._isIndicateMode()||-1===B||P!==B&&(W||P!==B+1))},_getItemPoints:function(){var B,W,z,P=[],V=this.option("rtlEnabled"),U=this._isVerticalOrientation(),K=this._getItems(),Y=K.filter(S),J=Y.length,j=this._getDraggableElement(),ee=Y.indexOf(j.get(0));if(J){for(var G=0;G<=J;G++){var q=!U&&V^G===J,Z=U&&G===J;G<J&&(W=(B=(0,c.Z)(Y[G])).offset(),z=(0,o.Y_)(B)),P.push({dropInsideItem:!1,left:W.left+(q?z:0),top:W.top+(Z?P[G-1].height:0),index:G===J?K.length:K.indexOf(B.get(0)),$item:B,width:(0,o.Y_)(B),height:(0,o.zp)(B),isValid:this._isValidPoint(G,ee)})}if(this.option("allowDropInsideItem")){var X=P;P=[];for(var M=0;M<X.length;M++)P.push(X[M]),X[M+1]&&P.push((0,g.l)({},X[M],{dropInsideItem:!0,top:Math.floor((X[M].top+X[M+1].top)/2),left:Math.floor((X[M].left+X[M+1].left)/2),isValid:this._isValidPoint(M,ee,!0)}))}}else P.push({dropInsideItem:!1,index:0,isValid:!0});return P},_updateItemPoints:function(P){(P||this.option("autoUpdate")||!this.option("itemPoints"))&&this.option("itemPoints",this._getItemPoints())},_correctItemPoints:function(P){var B=this.option("itemPoints");if(P&&B&&!this.option("autoUpdate")){var z=this._isVerticalOrientation()?"top":"left";B.forEach(V=>{V[z]-=P})}},_getElementIndex:function(P){return this._getItems().indexOf(P.get(0))},_getDragTemplateArgs:function(P){var B=this.callBase.apply(this,arguments);return B.model.fromIndex=this._getElementIndex(P),B},_togglePlaceholder:function(P){this._$placeholderElement&&this._$placeholderElement.toggle(P)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(P,B){var W=this._getSourceDraggable()!==this._getTargetDraggable(),z=this.option("fromIndex");return null===P?z:Math.max(W||z>=P||B?P:P-1,0)},_updatePlaceholderPosition:function(P,B){var W=this._getSourceDraggable(),z=this._normalizeToIndex(B.index,B.dropInsideItem),V=(0,g.l)(this._getEventArgs(P),{toIndex:z,dropInsideItem:B.dropInsideItem});B.isValid&&this._getAction("onDragChange")(V),!V.cancel&&B.isValid?(this.option({dropInsideItem:B.dropInsideItem,toIndex:B.index}),this._getAction("onPlaceholderPrepared")((0,g.l)(this._getEventArgs(P),{placeholderElement:(0,p.u)(this._$placeholderElement),dragElement:(0,p.u)(W._$dragElement)})),this._updateItemPoints()):B.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(P,B){if(this._$scrollable=this._getScrollable(P),this._$scrollable){var W=(0,o.dz)(this._$scrollable),z=this._$scrollable.offset().left-P.offset().left,V=(0,o.Y_)(P)-z-W;z>0&&(B-=z),V>0&&(B-=V)}return B},_updatePlaceholderSizes:function(P,B){var W=this.option("dropInsideItem"),z=(0,c.Z)(B),V=this._isVerticalOrientation(),U="",K="";P.toggleClass(this._addWidgetPrefix("placeholder-inside"),W),(V||W)&&(U=(0,o.Y_)(z)),(!V||W)&&(K=(0,o.zp)(z)),U=this._makeWidthCorrection(z,U),P.css({width:U,height:K})},_moveItem:function(P,B,W){var z,V=this._getItems(),U=V[B],K=this._getSourceDraggable();W&&(P=P.clone(),K._toggleDragSourceClass(!1,P)),U||(z=V[B-1]),this._moveItemCore(P,U,z)},_moveItemCore:function(P,B,W){B||W?W?P.insertAfter((0,c.Z)(W)):P.insertBefore((0,c.Z)(B)):P.appendTo(this.$element())},_getDragStartArgs:function(P,B){return(0,g.l)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(B)})},_getEventArgs:function(P){var B,W,z,V=this._getSourceDraggable(),U=this._getTargetDraggable(),K=null===(B=null===(W=this._getSourceElement())||void 0===W||null===(z=W.parent())||void 0===z?void 0:z.length)||void 0===B||B,Y=U.option("dropInsideItem"),J=Y||!K;return(0,g.l)(this.callBase.apply(this,arguments),{fromIndex:V.option("fromIndex"),toIndex:this._normalizeToIndex(U.option("toIndex"),J),dropInsideItem:Y})},_optionChanged:function(P){var B=P.name;switch(B){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+B+"Action"]=this._createActionByOption(B);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":case"fromIndexOffset":case"offset":case"draggableElementSize":case"autoUpdate":break;case"fromIndex":[!1,!0].forEach(W=>{var z=W?P.value:P.previousValue;if(null!==z){var V=(0,c.Z)(this._getItems()[z]);this._toggleDragSourceClass(W,V)}});break;case"dropInsideItem":this._optionChangedDropInsideItem(P);break;case"toIndex":this._optionChangedToIndex(P);break;default:this.callBase(P)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(P){var W,B=this.$element();if("hidden"!==B.css("overflow")?W=B.get(0):B.parents().each(function(){if("visible"!==(0,c.Z)(this).css("overflow"))return W=this,!1}),W){var z=(0,l.l)(W),V=this._isVerticalOrientation(),U=V?"top":"left",Y=V?x.pageYOffset:x.pageXOffset;if(P[U]<z[U]+Y||P[U]>z[V?"bottom":"right"]+Y)return!1}return!0},_optionChangedToIndex:function(P){var B=P.value;if(this._isIndicateMode()){var W=null!==B&&B>=0;this._togglePlaceholder(W),W&&this._movePlaceholder()}else this._moveItems(P.previousValue,P.value,P.fullUpdate)},update:function(){if(null!==this.option("fromIndex")||null!==this.option("toIndex")){this._updateItemPoints(!0),this._updateDragSourceClass();var P=this.option("toIndex");this._optionChangedToIndex({value:P,fullUpdate:!0})}},_updateDragSourceClass:function(){var P=this._getActualFromIndex(),B=(0,c.Z)(this._getItems()[P]);B.length&&(this._$sourceElement=B,this._toggleDragSourceClass(!0,B))},_makeLeftCorrection:function(P){var B=this._$scrollable;if(B&&this._isVerticalOrientation()){var W=B.offset().left-P;W>0&&(P+=W)}return P},_movePlaceholder:function(){var P=this._$placeholderElement||this._createPlaceholder();if(P){var B=this._getItems(),W=this.option("toIndex"),z=this._isVerticalOrientation(),V=this.option("rtlEnabled"),U=this.option("dropInsideItem"),K=null,Y=B[W];if(Y){var J=(0,c.Z)(Y);K=J.offset(),!z&&V&&!U&&(K.left+=(0,o.Y_)(J,!0))}else{var j=Y=this._getPrevVisibleItem(B,W);j&&(K=(0,c.Z)(j).offset(),z?K.top+=(0,o.zp)(j,!0):V||(K.left+=(0,o.Y_)(j,!0)))}this._updatePlaceholderSizes(P,Y),K&&!this._isPositionVisible(K)&&(K=null),K&&(K.left=this._makeLeftCorrection(K.left),this._move(K,P)),P.toggle(!!K)}},_getPositions:function(P,B,W,z){for(var V=[],U=0;U<P.length;U++){var K=0;null!==z&&null!==W?(-1===W?U>=z&&(K=B):-1===z?U>W&&(K=-B):W<z?U>W&&U<z&&(K=-B):W>z&&U>=z&&U<W&&(K=B),V.push(K)):V.push(K)}return V},_getDraggableElementSize:function(P){var B=this._getDraggableElement(),W=this.option("draggableElementSize");return W||(W=P?((0,o.zp)(B)+(0,o.zp)(B,!0))/2:((0,o.Y_)(B)+(0,o.Y_)(B,!0))/2,this.option("autoUpdate")||this.option("draggableElementSize",W)),W},_getActualFromIndex:function(){var{fromIndex:P,fromIndexOffset:B,offset:W}=this.option();return null==P?null:P+B-W},_moveItems:function(P,B,W){for(var z=this._getActualFromIndex(),V=this._isVerticalOrientation(),U=V?"top":"left",K=this._getDraggableElementSize(V),Y=this._getItems(),J=this._getPositions(Y,K,z,P),j=this._getPositions(Y,K,z,B),ee=this.option("animation"),G=this.option("rtlEnabled"),q=0;q<Y.length;q++){var Z=Y[q],X=J[q],M=j[q];null===B||null===z?w(Z):(X!==M||W&&M)&&O(Z,(0,g.l)({},ee,{to:{[U]:!V&&G?-M:M}}))}},_toggleDragSourceClass:function(P,B){var W=B||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||W&&W.toggleClass(this._addWidgetPrefix("source-hidden"),P)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(P){var B=this._getEventArgs(P);return this._getAction("onAdd")(B),B.cancel},_fireRemoveEvent:function(P){var B=this._getSourceDraggable(),W=this._getEventArgs(P);return B._getAction("onRemove")(W),W.cancel},_fireReorderEvent:function(P){var B=this._getEventArgs(P);return this._getAction("onReorder")(B),B.promise||(new v.BH).resolve()}});(0,C.Z)("dxSortable",k);const R=k},5335:(Rn,he,u)=>{"use strict";u.d(he,{BM:()=>ee,NJ:()=>j,vK:()=>G});var o=u(1805),c=u(9904),I=u(7572),C=u(5873),g=u(913),a=u(8159),p=u(7078),s=u(8225),l=u(227),d=u(4328),h=u(3576),v=u(4594),x=u(2722),b=u(1828),y=u(4514);const P=class R extends h.Z{_getDefaultOptions(){return(0,C.l)(super._getDefaultOptions(),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500,_observeContentResize:!1,container:this.$element(),visualContainer:(0,y.Jj)()})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>(0,x.x2)(),options:{useInkRipple:!0}}])}_render(){this.$element().addClass("dx-fa-button"),this._renderIcon(),this._renderLabel(),super._render(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()}_renderLabel(){this._$label&&this._$label.remove();var Z=this.option("label");if(Z){var X=(0,c.Z)("<div>").addClass("dx-fa-button-label"),M=(0,c.Z)("<div>").addClass("dx-fa-button-label-wrapper");this._$label=M.prependTo(this.$content()).append(X.text(Z)),this.$content().toggleClass("dx-fa-button-content-reverse",this._isPositionLeft(this.option("parentPosition")))}else this._$label=null}_isPositionLeft(Z){var X="";return Z&&((0,b.PO)(Z)&&Z.at?X=Z.at.x?Z.at.x:Z.at:"string"==typeof Z&&(X=Z)),"left"===X.split(" ")[0]}_renderButtonIcon(Z,X,M){Z&&Z.remove(),Z=(0,c.Z)("<div>").addClass(M);var oe=(0,d.H)(X);return Z.append(oe).appendTo(this.$content()),Z}_renderIcon(){this._$icon=this._renderButtonIcon(this._$icon,this._options.silent("icon"),"dx-fa-button-icon")}_renderWrapper(){this._options.silent("callOverlayRenderShading")&&super._renderWrapper()}_getVisibleActions(Z){return(Z||this.option("actions")||[]).filter(M=>M.option("visible"))}_getActionComponent(){return 1===this._getVisibleActions().length?this._getVisibleActions()[0]:this.option("actionComponent")||this.option("actions")[0]}_initContentReadyAction(){this._contentReadyAction=this._getActionComponent()._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]},!0)}_fireContentReadyAction(){this._contentReadyAction({actionElement:this.$element()})}_updateZIndexStackPosition(){var Z=this.option("zIndex");this._$wrapper.css("zIndex",Z),this._$content.css("zIndex",Z)}_setClickAction(){var Z=(0,s.V4)(l.u,this.NAME),X=this.$element().find(".dx-overlay-content");g.Z.off(X,Z),g.Z.on(X,Z,M=>{var oe={event:M,actionElement:this.element(),element:this._getActionComponent().$element()};this._clickAction(oe)})}_defaultActionArgs(){return{component:this._getActionComponent()}}_renderClick(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()}_renderInkRipple(){this._inkRipple=(0,v.sY)()}_getInkRippleContainer(){return this._$icon}_toggleActiveState(Z,X,M){if(super._toggleActiveState.apply(this,arguments),this._inkRipple){var oe={element:this._getInkRippleContainer(),event:M};X?this._inkRipple.showWave(oe):this._inkRipple.hideWave(oe)}}_optionChanged(Z){switch(Z.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=Z.previousValue,Z.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:super._optionChanged(Z)}}};var{getSwatchContainer:B}=p.Z,U="dx-state-invisible",K=null,Y=q=>{var{icon:Z,onClick:X,label:M,visible:oe,index:fe,onContentReady:Te,activeStateEnabled:Be,hoverStateEnabled:ze,animation:ae,id:_e,actions:ye,actionComponent:ne,actionVisible:ce,zIndex:le,position:pe,hint:Se,parentPosition:re,direction:te}=q.option();return(0,C.l)({},{icon:Z,onClick:X,label:M,visible:oe,index:fe,onContentReady:Te,activeStateEnabled:Be,hoverStateEnabled:ze,animation:ae,id:_e,actions:ye,actionComponent:ne,actionVisible:ce,zIndex:le,position:pe,hint:Se,parentPosition:re,direction:te},{onInitialized:null,onDisposing:null})};class J extends P{_getDefaultOptions(){return(0,C.l)(super._getDefaultOptions(),(0,C.l)({icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",label:"",direction:"auto",actions:[],activeStateEnabled:!0,hoverStateEnabled:!0,indent:55,childIndent:40,childOffset:9,callOverlayRenderShading:!0,hideOnOutsideClick:!0},(0,I.Z)().floatingActionButtonConfig,{shading:!1}))}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:()=>(0,x.x2)(),options:{indent:72,childIndent:56,childOffset:8}}])}_render(){this.$element().addClass("dx-fa-button-main"),super._render(),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()}_renderLabel(){super._renderLabel(),this.$element().toggleClass("dx-fa-button-with-label",!!this._$label)}_renderCloseIcon(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.silent("closeIcon"),"dx-fa-button-icon-close"),this._$closeIcon.addClass(U)}_renderClick(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler.bind(this)),this._setClickAction()}_getVisibleActions(Z){return(Z||this.option("actions")).filter(M=>M.option("visible"))}_getCurrentOptions(Z){var X=K._getVisibleActions(Z),M=this._getDefaultOptions();return delete M.elementAttr,delete M.closeOnOutsideClick,1===X.length?(0,C.l)(Y(X[0]),{position:this._getPosition()}):(0,C.l)(M,{visible:0!==X.length})}_clickHandler(){var Z=this._actionItems.filter(oe=>oe.option("actionVisible")).sort((oe,fe)=>oe.option("index")-fe.option("index"));if(1!==Z.length){for(var X=Z.length-1,M=0;M<Z.length;M++)Z[M].option("animation",this._getActionAnimation(Z[M],M,X)),Z[M].option("position",this._getActionPosition(Z,M)),Z[M]._$wrapper.css("position",this._$wrapper.css("position")),Z[M].toggle();(0,I.Z)().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass(U),this._$closeIcon.toggleClass(U)}}_updateZIndexStackPosition(){super._updateZIndexStackPosition(),this._overlayStack().push(this)}_renderActions(){var Z=this.option("actions");if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach(fe=>{fe.dispose(),fe.$element().remove()}),this._actionItems=[]),this._actionItems=[],1!==Z.length)for(var X=0;X<Z.length;X++){var M=Z[X],oe=(0,c.Z)("<div>").appendTo(B(M.$element()));g.Z.off(oe,"click"),g.Z.on(oe,"click",()=>{this._clickHandler()}),M._options.silent("actionComponent",M),M._options.silent("parentPosition",this._getPosition()),M._options.silent("actionVisible",M._options.silent("visible")),this._actionItems.push(this._createComponent(oe,P,(0,C.l)({},Y(M),{visible:!1})))}}_getActionAnimation(Z,X,M){return Z._options.silent("animation.show.delay",30*X),Z._options.silent("animation.hide.delay",30*(M-X)),Z._options.silent("animation")}_getDirectionIndex(Z,X){if("auto"===X){var M=(0,o.Cr)(this.$content()),oe=this.initialOption("indent")+this.initialOption("childIndent")*Z.length-M,fe=this.$content().offset().top;return oe<fe||fe>=(0,o.Cr)(this._positionController._$wrapperCoveredElement)-M-fe?-1:1}return"down"!==X?-1:1}_getActionPosition(Z,X){var M=Z[X],oe=this.initialOption("childOffset"),fe=M._options.silent("label")&&!this._$label?this._isPositionLeft(this._getPosition())?oe:-oe:0,Te=this.initialOption("indent")+this.initialOption("childIndent")*X,Be=this._getDirectionIndex(Z,this.option("direction"))*Te,ze=M._options.silent("label")?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:ze,my:ze,offset:{x:fe,y:Be}}}_outsideClickHandler(Z){this._isShadingShown&&(0,c.Z)(Z.target)[0]===this._$wrapper[0]&&(Z.preventDefault(),this._clickHandler())}_setPosition(){this.option("visible")&&(this._hide(),this._show())}_getPosition(){return this._getDefaultOptions().position}_getInkRippleContainer(){return this.$content()}_optionChanged(Z){switch(Z.name){case"actions":this._isVisible()&&(this._renderIcon(),this._renderLabel()),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":super._optionChanged(Z),this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:super._optionChanged(Z)}}}function j(q){q._options.silent("onInitializing",null);var Z=!1;if(K){var M=K.option("actions");if(M.forEach(oe=>{if(oe._options.silent("id")===q._options.silent("id"))return Z=!0,q}),delete K._options.position,Z)K.option(1===M.length?(0,C.l)({},Y(M[0]),{actions:M,position:K._getPosition()}):(0,C.l)(K._getCurrentOptions(M),{actions:M}));else{if(K._getVisibleActions(M).length>=K.option("maxSpeedDialActionCount"))return q.dispose(),void a.Z.log("W1014");M.push(q),K.option((0,C.l)(K._getCurrentOptions(M),{actions:M}))}}else{var X=(0,c.Z)("<div>").appendTo(B(q.$element()));K=q._createComponent(X,J,(0,C.l)({},Y(q),{actions:[q]}))}}function ee(q){if(K){var Z=K.option("actions");Z.length!==(Z=Z.filter(M=>M._options.silent("id")!==q)).length&&(Z.length?K.option(1===Z.length?(0,C.l)({},Y(Z[0]),{actions:Z}):{actions:Z}):(K.dispose(),K.$element().remove(),K=null))}}function G(){if(K){var q=K._getVisibleActions(),Z=1===q.length?q[0].option("icon"):K._getDefaultOptions().icon,X=1===q.length?q[0].option("label"):K._getDefaultOptions().label;K.option({actions:K.option("actions"),icon:Z,closeIcon:K._getDefaultOptions().closeIcon,position:K._getPosition(),label:X,maxSpeedDialActionCount:K._getDefaultOptions().maxSpeedDialActionCount,direction:K._getDefaultOptions().direction})}}},3078:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>P});var o=u(1805),c=u(9904),I=u(4505),C=u(5873),g=u(2941),a=u(9897),p=u(8506),s=u(7257),l=u(152),d=u(8646),h=u(7674),x=u(4328),b=u(6881),y=u(1828),E=u(4823),S=u(4514),R=s.Z.inherit({_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(B){return B?B.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===g.Z.real().deviceType&&!g.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!I.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new E.c(function(B,W){if((0,y.PO)(W)){var z=(0,x.H)(W.icon);z&&B.append(z),(0,y.$K)(W.title)&&!(0,y.PO)(W.title)&&B.append(a.Z.createTextNode(W.title))}else(0,y.$K)(W)&&B.text(String(W));B.wrapInner((0,c.Z)("<span>").addClass("dx-tab-text"))},["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var B=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout(function(){B._updateLayout()},0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var B=this.$element();this._$tabContainer=(0,c.Z)("<div>").addClass("dx-tabpanel-tabs").appendTo(B);var W=(0,c.Z)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(W,l.Z,this._tabConfig()),this._$container=(0,c.Z)("<div>").addClass("dx-tabpanel-container").appendTo(B),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if((0,S.Ym)()){var B=(0,o.zp)(this._$tabContainer);this._$container.css({marginTop:-B,paddingTop:B})}},_refreshActiveDescendant:function(){if(this._tabs){var B=this._tabs,W=B.itemElements(),z=(0,c.Z)(W[B.option("selectedIndex")]),V=this.getFocusedItemId();this.setAria("controls",void 0,(0,c.Z)(W)),this.setAria("controls",V,z)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(B){this.option("selectedIndex",B.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(B){if("focusedElement"===B.name)if(B.value){var W=(0,c.Z)(B.value),z=this._itemElements().eq(W.index());this.option("focusedElement",(0,b.u)(z))}else this.option("focusedElement",B.value)}.bind(this),onFocusIn:function(B){this._focusInHandler(B.event)}.bind(this),onFocusOut:function(B){this._isFocusOutHandlerExecuting||this._focusOutHandler(B.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(B,W){this.callBase(B,W),B.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(W,this._focusTarget())},_focusOutHandler:function(B){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(B),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(B,W){this._tabs&&this._tabs.option(B,W)},_visibilityChanged:function(B){B&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(B,W){this.callBase(B,W),this._tabs&&this._tabs.registerKeyHandler(B,W)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(B){var W=B.name,z=B.value,V=B.fullName;switch(W){case"dataSource":default:this.callBase(B);break;case"items":this._setTabsOption(W,this.option(W)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(B);break;case"width":this.callBase(B),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(V,z),this.callBase(B),!0===this.option("focusStateEnabled")){var U=this.option("selectedIndex"),K=this._itemElements().eq(U);this.option("focusedElement",(0,b.u)(K))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(V,z),this.callBase(B);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(V,z);break;case"focusedElement":var Y=z&&(0,c.Z)(z).index(),J=z&&this._tabs._itemElements().eq(Y);this._setTabsOption("focusedElement",(0,b.u)(J)),this.callBase(B);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",z);break;case"badgeExpr":this._invalidate()}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});R.ItemClass=class v extends d.Z{_renderWatchers(){return this._startWatcher("badge",h.ZT),super._renderWatchers()}},(0,p.Z)("dxTabPanel",R);const P=R},152:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>te});var o=u(1805),c=u(9904),I=u(913),C=u(2941),g=u(8506),a=u(219),p=u(4594),s=u(8225),l=u(5873),d=u(1828),h=u(8690),v=u(2718),x=u(8646),y="dx-badge";const S=x.Z.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(ie){if(this._$element.children("."+y).remove(),ie){var ue=(0,c.Z)("<div>").addClass("dx-tabs-item-badge").addClass(y).text(ie);this._$element.append(ue)}}});var O="dx-tabs-expanded",w=u(2722),T=u(5180),k=u(8487),R=u(5286),P=u(4328),B=u(4823),W=u(4270);function z(ie){return ie.scrollWidth-ie.clientWidth}u(4609);var q="dx-tabs-stretched",X="dx-tabs-nav-buttons",M="dx-overflow-hidden",ye="chevronnext",ne="chevronprev",re=R.Z.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return(0,l.l)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(ie){return ie?ie.badge:void 0},_itemAttributes:{role:"tab"}})},_defaultOptionsRules:function(){var ie=(0,w.Vk)();return this.callBase().concat([{device:function(){return"desktop"!==C.Z.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===C.Z.real().deviceType&&!C.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,w.x2)(ie)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new B.c(function(ie,ue){(0,d.PO)(ue)?this._prepareDefaultItemTemplate(ue,ie):ie.text(String(ue));var be=(0,P.H)(ue.icon);be&&be.prependTo(ie),ie.wrapInner((0,c.Z)("<span>").addClass("dx-tab-text"))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(ie,ue){var{itemData:be,container:Ae,index:Ne}=ue;return this._deferredTemplates[Ne]=new W.BH,ie.render({model:be,container:Ae,index:Ne,onRendered:()=>this._deferredTemplates[Ne].resolve()})},_itemClass:function(){return"dx-tab"},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass(M)},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling(){W.gx.apply(this,this._deferredTemplates).done(()=>this._renderScrolling())},_renderScrolling:function(){var ie=[q,O,M];if(this.$element().removeClass(ie.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()){this._scrollable||(this._renderScrollable(),this._renderNavButtons());var ue=this.getScrollable();if(ue.update(),this.option("rtlEnabled")){var be=z((0,c.Z)(this.getScrollable().container()).get(0));ue.scrollTo({left:be})}this._updateNavButtonsVisibility(),this._scrollToItem(this.option("selectedItem"))}this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass(q),this.$element().removeClass(X).addClass(O))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>(0,o.dz)(this.$element())},_needStretchItems:function(){var ie=this._getVisibleItems(),ue=(0,o.dz)(this.$element()),be=[];return(0,v.S6)(ie,(Ne,mt)=>{be.push((0,o.Y_)(mt,!0))}),Math.max.apply(null,be)>=ue/ie.length},_cleanNavButtons:function(){!this._leftButton||!this._rightButton||(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=(0,p.sY)()},_toggleActiveState:function(ie,ue,be){if(this.callBase.apply(this,arguments),this._inkRipple){var Ae={element:ie,event:be};ue?this._inkRipple.showWave(Ae):this._inkRipple.hideWave(Ae)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,c.Z)("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var ie=this.$element().wrapInner((0,c.Z)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(ie,k.Z,{direction:"horizontal",showScrollbar:"never",useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:()=>{this._updateNavButtonsVisibility()}}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(ie){if(this._scrollable){var ue=this._editStrategy.getItemElement(ie);this._scrollable.scrollToElement(ue)}},_renderNavButtons:function(){if(this.$element().toggleClass(X,this.option("showNavButtons")),this.option("showNavButtons")){var ie=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,ie?ye:ne);var ue=this._leftButton.$element();ue.addClass("dx-tabs-nav-button-left"),this.$element().prepend(ue),this._rightButton=this._createNavButton(30,ie?ne:ye);var be=this._rightButton.$element();be.addClass("dx-tabs-nav-button-right"),this.$element().append(be)}},_updateNavButtonsVisibility:function(){var ie=this.getScrollable();this._leftButton&&this._leftButton.option("disabled",function U(ie,ue){return Math.round(ie)<=ue}(ie.scrollLeft(),1)),this._rightButton&&this._rightButton.option("disabled",function K(ie,ue,be){return Math.round(z(ie)-ue)<=be}((0,c.Z)(ie.container()).get(0),ie.scrollLeft(),1))},_updateScrollPosition:function(ie,ue){this._scrollable.update(),this._scrollable.scrollBy(ie/ue)},_createNavButton:function(ie,ue){var be=this,Ae=be._createAction(function(){be._holdInterval=setInterval(function(){be._updateScrollPosition(ie,5)},5)}),Ne=(0,s.V4)(T.Z.name,"dxNavButton"),mt=(0,s.V4)(h.Z.up,"dxNavButton"),tt=(0,s.V4)(h.Z.out,"dxNavButton"),Le=this._createComponent((0,c.Z)("<div>").addClass("dx-tabs-nav-button"),a.Z,{focusStateEnabled:!1,icon:ue,onClick:function(){be._updateScrollPosition(ie,1)},integrationOptions:{}}),gt=Le.$element();return I.Z.on(gt,Ne,{timeout:300},function(tn){Ae({event:tn})}.bind(this)),I.Z.on(gt,mt,function(){be._clearInterval()}),I.Z.on(gt,tt,function(){be._clearInterval()}),Le},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(ie){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(ie[0]),{left:1,right:1})},_visibilityChanged:function(ie){ie&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(ie){"single"===this.option("selectionMode")&&this.isItemSelected(ie.currentTarget)||this.callBase(ie)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(ie){switch(ie.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":case"badgeExpr":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(ie.name,ie.value);break;case"width":this.callBase(ie),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(ie);break;default:this.callBase(ie)}},_afterItemElementInserted(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted(ie,ue){this.callBase(ie,ue),this._renderScrolling()},getScrollable(){return this._scrollable}});re.ItemClass=S,(0,g.Z)("dxTabs",re);const te=re},3447:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>E});var o=u(9904),c=u(4514),I=u(5873),C=u(8506),g=u(7383),a=u(8225),p=u(1805),s=(0,c.Jj)(),l=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],h="dx-searchbox",b=g.Z.inherit({ctor:function(S,O){O&&(this._showClearButton=O.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,I.l)(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_useTemplates:function(){return!1},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var S=this._getMaxLength();S&&S>0?this._input().attr("maxLength",S):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var S=this._$element;"search"===this.option("mode")?(S.addClass(h),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(S.removeClass(h),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var S=(0,o.Z)("<div>").addClass("dx-icon").addClass("dx-icon-search");S.prependTo(this._input().parent()),this._$searchIcon=S},_getLabelContainerWidth:function(){if(this._$searchIcon){var S=this._input().parent();return(0,p.dz)(S)-this._getLabelBeforeWidth()}return this.callBase()},_getLabelBeforeWidth:function(){var S=this.callBase();return this._$searchIcon&&(S+=(0,p.Y_)(this._$searchIcon)),S},_optionChanged:function(S){switch(S.name){case"maxLength":this._toggleMaxLengthProp();break;case"mode":this.callBase(S),this._updateLabelWidth();break;case"mask":this.callBase(S),this._toggleMaxLengthProp();break;default:this.callBase(S)}},_onKeyDownCutOffHandler:function(S){var O=this._getMaxLength();if(!O||S.ctrlKey||this._hasSelection())return!0;var w=(0,o.Z)(S.target),T=(0,a.EV)(S);return this._cutOffExtraChar(w),w.val().length<O||l.includes(T)||""!==s.getSelection().toString()},_onChangeCutOffHandler:function(S){var O=(0,o.Z)(S.target);this.option("maxLength")&&this._cutOffExtraChar(O)},_cutOffExtraChar:function(S){var O=this._getMaxLength(),w=S.val();O&&w.length>O&&S.val(w.substr(0,O))},_getMaxLength:function(){return this.option("mask")?null:this.option("maxLength")}});(0,C.Z)("dxTextBox",b);const E=b},5251:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});var o=u(9904);class c{constructor(C,g,a){this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=g,this.name=C,this.options=a||{}}_addPlaceMarker(C){this.$placeMarker=(0,o.Z)("<div>").appendTo(C)}_addToContainer(C){var{$placeMarker:g,$container:a}=this;g?g.replaceWith(C):C.appendTo(a)}_attachEvents(){throw"Not implemented"}_create(){throw"Not implemented"}_isRendered(){return!!this.instance}_isVisible(){var{editor:C,options:g}=this;return g.visible||!C.option("readOnly")}_isDisabled(){throw"Not implemented"}_shouldRender(){return this._isVisible()&&!this._isRendered()}dispose(){var{instance:C,$placeMarker:g}=this;C&&(C.dispose?C.dispose():C.remove(),this.instance=null),g&&g.remove()}render(){var C=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=C,this._isVisible()){var{instance:g,$element:a}=this._create();this.instance=g,this._attachEvents(g,a)}else this._addPlaceMarker(C)}update(){return this._shouldRender()&&this.render(),!!this.instance}}},7383:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>xr});var o=u(8506),c=u(9904),I=u(5214),C=u(9897),g=u(2941),a=u(4722);var l=u(2718),d=u(8225),h=u(913),v=u(5873),x=u(7),b=u(1828),y=u(9009),E=u(7674),S=u(9589),O=u(1186),w=u(5031),T=" ",k=w.Z.inherit({ctor:function(vn){this._value=T,(0,v.l)(this,vn)},next:function(vn){if(!arguments.length)return this._next;this._next=vn},text:E.ZT,value:E.ZT,rawValue:E.ZT,handle:E.ZT,_prepareHandlingArgs:function(vn,Pn){var hi,Si,Yi;Pn=Pn||{};var dr=Object.prototype.hasOwnProperty.call(vn,"value")?"value":"text";return vn[dr]=null!==(hi=Pn.str)&&void 0!==hi?hi:vn[dr],vn.start=null!==(Si=Pn.start)&&void 0!==Si?Si:vn.start,vn.length=null!==(Yi=Pn.length)&&void 0!==Yi?Yi:vn.length,vn.index=vn.index+1,vn},reset:E.ZT,clear:E.ZT,first:function(vn){return vn=vn||0,this.next().first(vn+1)},isAccepted:function(){return!1},adjustedCaret:function(vn,Pn,hi){return Pn?this._adjustedForward(vn,0,hi):this._adjustedBackward(vn,0,hi)},_adjustedForward:E.ZT,_adjustedBackward:E.ZT,isValid:E.ZT}),R=k.inherit({next:E.ZT,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),P=k.inherit({text:function(){return(this._value!==T?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(vn){var Pn=Object.prototype.hasOwnProperty.call(vn,"value")?vn.value:vn.text;if(!Pn||!Pn.length||!vn.length)return 0;if(vn.start)return this.next().handle(this._prepareHandlingArgs(vn,{start:vn.start-1}));var hi=Pn[0],Si=Pn.substring(1);return this._tryAcceptChar(hi,vn),this._accepted()?this.next().handle(this._prepareHandlingArgs(vn,{str:Si,length:vn.length-1}))+1:this.handle(this._prepareHandlingArgs(vn,{str:Si,length:vn.length-1}))},clear:function(vn){this._tryAcceptChar(T,vn),this.next().clear(this._prepareHandlingArgs(vn))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(vn,Pn){if(this._accepted(!1),this._isAllowed(vn,Pn)){var hi=vn===T?this.maskChar:vn;Pn.fullText=Pn.fullText.substring(0,Pn.index)+hi+Pn.fullText.substring(Pn.index+1),this._accepted(!0),this._value=vn}},_accepted:function(vn){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!vn},first:function(vn){return this._value===T?vn||0:this.callBase(vn)},_isAllowed:function(vn,Pn){return vn===T||this._isValid(vn,Pn)},_isValid:function(vn,Pn){var hi=this.allowedChars;return hi instanceof RegExp?hi.test(vn):(0,b.mf)(hi)?hi(vn,Pn.index,Pn.fullText):Array.isArray(hi)?hi.includes(vn):hi===vn},isAccepted:function(vn){return 0===vn?this._accepted():this.next().isAccepted(vn-1)},_adjustedForward:function(vn,Pn,hi){return Pn>=vn?Pn:this.next()._adjustedForward(vn,Pn+1,hi)||Pn+1},_adjustedBackward:function(vn,Pn){return Pn>=vn-1?vn:this.next()._adjustedBackward(vn,Pn+1)||Pn+1},isValid:function(vn){return this._isValid(this._value,vn)&&this.next().isValid(this._prepareHandlingArgs(vn))}}),B=P.inherit({value:function(){return this.next().value()},handle:function(vn){var Pn=Object.prototype.hasOwnProperty.call(vn,"value"),hi=Pn?vn.value:vn.text;if(!hi.length||!vn.length)return 0;if(vn.start||Pn)return this.next().handle(this._prepareHandlingArgs(vn,{start:vn.start&&vn.start-1}));var Si=hi[0],Yi=hi.substring(1);this._tryAcceptChar(Si);var dr=this._isAllowed(Si)?this._prepareHandlingArgs(vn,{str:Yi,length:vn.length-1}):vn;return this.next().handle(dr)+1},clear:function(vn){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(vn))},_tryAcceptChar:function(vn){this._accepted(this._isValid(vn))},_isValid:function(vn){return vn===this.maskChar},first:function(vn){return vn=vn||0,this.next().first(vn+1)},_adjustedForward:function(vn,Pn,hi){return Pn>=vn&&hi===this.maskChar?Pn:vn===Pn+1&&this._accepted()?vn:this.next()._adjustedForward(vn,Pn+1,hi)},_adjustedBackward:function(vn,Pn){return Pn>=vn-1?0:this.next()._adjustedBackward(vn,Pn+1)},isValid:function(vn){return this.next().isValid(this._prepareHandlingArgs(vn))}}),W=u(2722),z=u(1031),V=u(8690),U=u(5251),K=u(227),Y=V.Z.down;class Z extends U.Z{_create(){var Pn=(0,c.Z)("<span>").addClass("dx-clear-button-area").append((0,c.Z)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(Pn),this.update(!0),{instance:Pn,$element:Pn}}_isVisible(){var{editor:Pn}=this;return Pn._isClearButtonVisible()}_attachEvents(Pn,hi){var{editor:Si}=this,Yi=Si.NAME;h.Z.on(hi,(0,d.V4)(Y,Yi),dr=>{dr.preventDefault(),"mouse"!==dr.pointerType&&Si._clearValueHandler(dr)}),h.Z.on(hi,(0,d.V4)(K.u,Yi),dr=>Si._clearValueHandler(dr))}_legacyRender(Pn,hi){Pn.toggleClass("dx-show-clear-button",hi)}update(){!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&super.update();var{editor:hi,instance:Si}=this,Yi=hi.$element(),dr=this._isVisible();Si&&Si.toggleClass("dx-state-invisible",!dr),this._legacyRender(Yi,dr)}}var X=u(219),M=u(5239),oe="dx-custom-button-hovered";class fe extends U.Z{_attachEvents(Pn,hi){var{editor:Si}=this;h.Z.on(hi,M.B,()=>{Si.$element().addClass(oe)}),h.Z.on(hi,M.u,()=>{Si.$element().removeClass(oe)}),h.Z.on(hi,K.u,Yi=>{Yi.stopPropagation()})}_create(){var{editor:Pn}=this,hi=(0,c.Z)("<div>");return this._addToContainer(hi),{$element:hi,instance:Pn._createComponent(hi,X.Z,(0,v.l)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(Pn)}))}}_prepareIntegrationOptions(Pn){return(0,v.l)({},Pn.option("integrationOptions"),{skipTemplates:["content"]})}update(){var Pn=super.update();return this.instance&&this.instance.option("disabled",this._isDisabled()),Pn}_isVisible(){var{editor:Pn}=this;return Pn.option("visible")}_isDisabled(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}var Te=u(8159);function ae(vn,Pn){if(-1!==vn.indexOf(Pn))throw Te.Z.Error("E1055",Pn);vn.push(Pn)}class ye{constructor(Pn,hi){this.buttons=[],this.defaultButtonsInfo=hi,this.editor=Pn}_compileButtonInfo(Pn){var hi=[];return Pn.map(Si=>{var Yi="string"==typeof Si;Yi||function ze(vn){(()=>{if(!vn||"object"!=typeof vn||Array.isArray(vn))throw Te.Z.Error("E1053")})(),(()=>{if(!("name"in vn))throw Te.Z.Error("E1054")})(),(()=>{var{name:Pn}=vn;if("string"!=typeof Pn)throw Te.Z.Error("E1055")})(),(()=>{var{location:Pn}=vn;"location"in vn&&"after"!==Pn&&"before"!==Pn&&(vn.location="after")})()}(Si);var dr=Yi||function _e(vn,Pn){return!!Pn.find(hi=>hi.name===vn)}(Si.name,this.defaultButtonsInfo);if(dr){var kr=this.defaultButtonsInfo.find(Gr=>{var{name:Qr}=Gr;return Qr===Si||Qr===Si.name});if(!kr)throw Te.Z.Error("E1056",this.editor.NAME,Si);return ae(hi,Si),kr}var{name:Nr}=Si;return ae(hi,Nr),(0,v.l)(Si,{Ctor:fe})})}_createButton(Pn){var{Ctor:hi,options:Si,name:Yi}=Pn,dr=new hi(Yi,this.editor,Si);return this.buttons.push(dr),dr}_renderButtons(Pn,hi,Si){var Yi=null;return(Pn?this._compileButtonInfo(Pn):this.defaultButtonsInfo).forEach(kr=>{var{location:Nr="after"}=kr;Nr===Si&&this._createButton(kr).render((Yi=Yi||(0,c.Z)("<div>").addClass("dx-texteditor-buttons-container"),"before"===Si?hi.prepend(Yi):hi.append(Yi),Yi))}),Yi}clean(){this.buttons.forEach(Pn=>Pn.dispose()),this.buttons=[]}getButton(Pn){var hi=this.buttons.find(Si=>{var{name:Yi}=Si;return Yi===Pn});return hi&&hi.instance}renderAfterButtons(Pn,hi){return this._renderButtons(Pn,hi,"after")}renderBeforeButtons(Pn,hi){return this._renderButtons(Pn,hi,"before")}updateButtons(Pn){this.buttons.forEach(hi=>{(!Pn||-1!==Pn.indexOf(hi.name))&&hi.update()})}}var ne=u(7572),ce=u(4270),le=u(1427),pe=u(6492),Se="dx-texteditor-label",re="dx-texteditor-with-label",te="dx-texteditor-with-floating-label",ie="dx-texteditor-with-before-buttons",mt=u(1805),tt=u(9870),tn="dx-texteditor-input",Pe="."+tn,Ce="dx-placeholder",yt="dx-validation-pending",gn=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],ut=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"];function St(vn){if((0,b.$K)(vn)&&!Array.isArray(vn))throw Te.Z.Error("E1053")}const Vt=z.Z.inherit({ctor:function(vn,Pn){Pn&&St(Pn.buttons),this._buttonCollection=new ye(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._labelContainerElement=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,v.l)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(vn){return(0,b.$K)(vn)&&!1!==vn?vn:""},stylingMode:(0,ne.Z)().editorStylingMode||"outlined",showValidationMark:!0,label:"",labelMode:"static",labelMark:""})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var vn=(0,W.Vk)();return(0,W.x2)(vn)},options:{stylingMode:(0,ne.Z)().editorStylingMode||"filled",labelMode:"floating"}}])},_getDefaultButtons:function(){return[{name:"clear",Ctor:Z}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(Pe).first()},_isFocused:function(){return(0,x.si)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(vn){return-1!==ut.indexOf(vn)},_renderStylingMode:function(){this.callBase(),this._updateButtonsStyling(this.option("stylingMode"))},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue(),this._renderLabel()},_render:function(){this.callBase(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent()},_renderInput:function(){this._$buttonsContainer=this._$textEditorContainer=(0,c.Z)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,c.Z)("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass(yt);var vn=this._getInputContainer(),Pn=(0,c.Z)("<div>").addClass("dx-pending-indicator").appendTo(vn);this._pendingIndicator=this._createComponent(Pn,le.Z)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass(yt))},_renderValidationState:function(){this.callBase();var vn="pending"===this.option("validationStatus"),Pn=this.$element();vn?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),!this._showValidMark&&!0===this.option("showValidationMark")&&(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),Pn.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var vn=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(vn,this._$buttonsContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(vn,this._$buttonsContainer)},_cleanButtonContainers:function(){var vn,Pn;null===(vn=this._$beforeButtonsContainer)||void 0===vn||vn.remove(),null===(Pn=this._$afterButtonsContainer)||void 0===Pn||Pn.remove(),this._buttonCollection.clean()},_clean(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._unobserveLabelContainerResize(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this._$buttonsContainer=null,this.callBase()},_createInput:function(){var vn=(0,c.Z)("<input>");return this._applyInputAttributes(vn,this.option("inputAttr")),vn},_setSubmitElementName:function(vn){var Pn=this.option("inputAttr.name");return this.callBase(vn||Pn||"")},_applyInputAttributes:function(vn,Pn){var hi=(0,v.l)(this._getDefaultAttributes(),Pn);vn.attr(hi).addClass(tn).css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var vn={autocomplete:"off"},{ios:Pn,mac:hi}=g.Z.real();return(Pn||hi)&&(vn.placeholder=" "),vn},_updateButtons:function(vn){this._buttonCollection.updateButtons(vn)},_updateButtonsStyling:function(vn){(0,l.S6)(this.option("buttons"),(Pn,hi)=>{var{options:Si,name:Yi}=hi;if(Si&&!Si.stylingMode&&this.option("visible")){var dr=this.getButton(Yi);dr.option&&dr.option("stylingMode","underlined"===vn?"text":"contained")}})},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(vn){var Pn;vn=null!==(Pn=vn)&&void 0!==Pn?Pn:this.option("value");var hi=this.option("text"),Si=this.option("displayValue"),Yi=this.option("displayValueFormatter");return void 0!==Si&&null!==vn?hi=Yi(Si):(0,b.$K)(hi)||(hi=Yi(vn)),this.option("text",hi),this._input().val()!==((0,b.$K)(hi)?hi:"")?this._renderDisplayText(hi):this._toggleEmptinessEventHandler(),(new ce.BH).resolve()},_renderDisplayText:function(vn){this._input().val(vn),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var vn=this._input().get(0).validity;if(vn)return vn.valid}return!0},_toggleEmptiness:function(vn){this.$element().toggleClass("dx-texteditor-empty",vn),this._togglePlaceholder(vn)},_togglePlaceholder:function(vn){this.$element().find(".".concat(Ce)).eq(0).toggleClass("dx-state-invisible",!vn)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(vn){this.callBase.apply(this,arguments);var Pn=this._input();Pn.prop("disabled",vn)},_toggleTabIndex:function(){var vn=this._input(),Pn=this.option("disabled"),hi=this.option("focusStateEnabled");Pn||!hi?vn.attr("tabIndex",-1):vn.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_unobserveLabelContainerResize:function(){this._labelContainerElement&&(tt.Z.unobserve(this._labelContainerElement),this._labelContainerElement=null)},_getLabelContainer:function(){return this._input()},_getLabelContainerWidth:function(){return(0,mt.dz)(this._getLabelContainer())},_getLabelBeforeWidth:function(){return(this._$beforeButtonsContainer&&(0,mt.dz)(this._$beforeButtonsContainer))??0},_updateLabelWidth:function(){this._label.updateBeforeWidth(this._getLabelBeforeWidth()),this._label.updateMaxWidth(this._getLabelContainerWidth())},_setLabelContainerAria:function(){this.setAria("labelledby",this._label.getId(),this._getLabelContainer())},_renderLabel:function(){this._unobserveLabelContainerResize(),this._labelContainerElement=(0,c.Z)(this._getLabelContainer()).get(0);var{label:vn,labelMode:Pn,labelMark:hi}=this.option(),Si={$editor:this.$element(),text:vn,mark:hi,mode:Pn,containsButtonsBefore:!!this._$beforeButtonsContainer,containerWidth:this._getLabelContainerWidth(),beforeWidth:this._getLabelBeforeWidth()};this._label=new class Ne{constructor(Pn){var{$editor:hi,text:Si,mode:Yi,mark:dr,containsButtonsBefore:kr,containerWidth:Nr,beforeWidth:Gr}=Pn;this._props={$editor:hi,text:Si,mode:Yi,mark:dr,containsButtonsBefore:kr,containerWidth:Nr,beforeWidth:Gr},this._id="".concat(Se,"-").concat(new pe.Z),this._render(),this._toggleMarkupVisibility()}_isVisible(){return!!this._props.text&&"hidden"!==this._props.mode}_render(){this._$before=(0,c.Z)("<div>").addClass("dx-label-before"),this._$labelSpan=(0,c.Z)("<span>"),this._$label=(0,c.Z)("<div>").addClass("dx-label").append(this._$labelSpan),this._$after=(0,c.Z)("<div>").addClass("dx-label-after"),this._$root=(0,c.Z)("<div>").addClass(Se).attr("id",this._id).append(this._$before).append(this._$label).append(this._$after),this._updateMark(),this._updateText(),this._updateBeforeWidth(),this._updateMaxWidth()}_toggleMarkupVisibility(){var Pn=this._isVisible();this._updateEditorBeforeButtonsClass(Pn),this._updateEditorLabelClass(Pn),Pn?this._$root.appendTo(this._props.$editor):this._$root.detach()}_updateEditorLabelClass(Pn){this._props.$editor.removeClass(te).removeClass(re),Pn&&this._props.$editor.addClass("floating"===this._props.mode?te:re)}_updateEditorBeforeButtonsClass(){var Pn=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._isVisible();this._props.$editor.removeClass(ie),Pn&&this._props.$editor.addClass(this._props.containsButtonsBefore?ie:"")}_updateMark(){this._$labelSpan.attr("data-mark",this._props.mark)}_updateText(){this._$labelSpan.text(this._props.text)}_updateBeforeWidth(){this._$before.css({width:this._props.beforeWidth})}_updateMaxWidth(){this._$label.css({maxWidth:this._props.containerWidth})}$element(){return this._$root}isVisible(){return this._isVisible()}getId(){if(this._isVisible())return this._id}updateMode(Pn){this._props.mode=Pn,this._toggleMarkupVisibility()}updateText(Pn){this._props.text=Pn,this._updateText(),this._toggleMarkupVisibility()}updateMark(Pn){this._props.mark=Pn,this._updateMark()}updateContainsButtonsBefore(Pn){this._props.containsButtonsBefore=Pn,this._updateEditorBeforeButtonsClass()}updateBeforeWidth(Pn){this._props.beforeWidth=Pn,this._updateBeforeWidth()}updateMaxWidth(Pn){this._props.containerWidth=Pn,this._updateMaxWidth()}}(Si),this._setLabelContainerAria(),this._labelContainerElement&&tt.Z.observe(this._labelContainerElement,this._updateLabelWidth.bind(this))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var vn=this._input(),Pn=this.option("placeholder"),hi=this._$placeholder=(0,c.Z)("<div>").attr("data-dx_placeholder",Pn);hi.insertAfter(vn),hi.addClass(Ce)},_attachPlaceholderEvents:function(){var vn=(0,d.V4)(V.Z.up,this.NAME);h.Z.on(this._$placeholder,vn,()=>{h.Z.trigger(this._input(),"focus")}),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,c.Z)()},_clearValueHandler:function(vn){var Pn=this._input();vn.stopPropagation(),this._saveValueChangeEvent(vn),this._clearValue(),!this._isFocused()&&h.Z.trigger(Pn,"focus"),h.Z.trigger(Pn,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var vn=this._input();(0,l.S6)(gn,(Pn,hi)=>{if(this.hasActionSubscription("on"+hi)){var Si=this._createActionByOption("on"+hi,{excludeValidators:["readOnly"]});h.Z.on(vn,(0,d.V4)(hi.toLowerCase(),this.NAME),Yi=>{this._disposed||Si({event:Yi})})}})},_refreshEvents:function(){var vn=this._input();(0,l.S6)(gn,(Pn,hi)=>{h.Z.off(vn,(0,d.V4)(hi.toLowerCase(),this.NAME))}),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(vn){var Pn=this._input(),hi=vn.ctrlKey&&"enter"===(0,d.EV)(vn),Si=Pn.val()!==this.option("value");hi&&Si&&h.Z.trigger(Pn,"change")},_getValueChangeEventOptionName:function(){return"valueChangeEvent"},_renderValueChangeEvent:function(){var vn=(0,d.V4)(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),Pn=(0,d.V4)(this.option(this._getValueChangeEventOptionName()),"".concat(this.NAME,"ValueChange")),hi=(0,d.V4)("keydown","".concat(this.NAME,"TextChange")),Si=this._input();h.Z.on(Si,vn,this._keyPressHandler.bind(this)),h.Z.on(Si,Pn,this._valueChangeEventHandler.bind(this)),h.Z.on(Si,hi,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var vn=".".concat(this.NAME,"ValueChange"),Pn=".".concat(this.NAME,"TextChange");h.Z.off(this._input(),vn),h.Z.off(this._input(),Pn)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_isInput:function(vn){return vn===this._input().get(0)},_preventNestedFocusEvent:function(vn){if(vn.isDefaultPrevented())return!0;var Pn=this._isNestedTarget(vn.relatedTarget);return"focusin"===vn.type?Pn=Pn&&this._isNestedTarget(vn.target)&&!this._isInput(vn.target):Pn||this._toggleFocusClass(!1,this.$element()),Pn&&vn.preventDefault(),Pn},_isNestedTarget:function(vn){return!!this.$element().find(vn).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(vn){this._preventNestedFocusEvent(vn),this.callBase.apply(this,arguments)},_focusOutHandler:function(vn){this._preventNestedFocusEvent(vn),this.callBase.apply(this,arguments)},_toggleFocusClass:function(vn,Pn){this.callBase(vn,this._focusClassTarget(Pn))},_hasFocusClass:function(vn){return this.callBase((0,c.Z)(vn||this.$element()))},_renderEmptinessEvent:function(){var vn=this._input();h.Z.on(vn,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var vn=this._input().val(),Pn=(""===vn||null===vn)&&this._isValueValid();this._toggleEmptiness(Pn)},_valueChangeEventHandler:function(vn,Pn){this.option("readOnly")||(this._saveValueChangeEvent(vn),this.option("value",arguments.length>1?Pn:this._input().val()),this._saveValueChangeEvent(void 0))},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),h.Z.off(this._input(),"keyup.onEnterKey.dxTextEditor"),h.Z.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(vn){this._disposed||"enter"===(0,d.EV)(vn)&&this._enterKeyAction({event:vn})},_updateValue:function(){this._options.silent("text",null),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_hasActiveElement:function(){return this._input().is(C.Z.getActiveElement(this._input()[0]))},_optionChanged:function(vn){var{name:Pn,fullName:hi,value:Si}=vn,Yi=Pn.replace("on","");if(gn.includes(Yi))this._refreshEvents();else switch(Pn){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(vn),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"label":this._label.updateText(Si),this._setLabelContainerAria();break;case"labelMark":this._label.updateMark(Si);break;case"labelMode":this._label.updateMode(Si),this._setLabelContainerAria();break;case"width":this.callBase(vn),this._label.updateMaxWidth(this._getLabelContainerWidth());break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(vn);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":case"showValidationMark":break;case"value":this._updateValue(),this.callBase(vn);break;case"inputAttr":this._applyInputAttributes(this._input(),this.option(Pn));break;case"stylingMode":this._renderStylingMode(),this._updateLabelWidth();break;case"buttons":hi===Pn&&St(Si),this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")),this._updateLabelWidth(),this._label.updateContainsButtonsBefore(!!this._$beforeButtonsContainer);break;case"visible":this.callBase(vn),Si&&this.option("buttons")&&(this._cleanButtonContainers(),this._renderButtonContainers(),this._updateButtonsStyling(this.option("stylingMode")));break;case"displayValueFormatter":this._invalidate();break;default:this.callBase(vn)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(vn){var Pn=this._input();"search"===vn&&(vn="text");try{Pn.prop("type",vn)}catch{Pn.prop("type","text")}},getButton(vn){return this._buttonCollection.getButton(vn)},focus:function(){h.Z.trigger(this._input(),"focus")},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var vn=this._getDefaultOptions();this.option("value")===vn.value?(this._options.silent("text",""),this._renderValue()):this.option("value",vn.value)},on:function(vn,Pn){var hi=this.callBase(vn,Pn),Si=vn.charAt(0).toUpperCase()+vn.substr(1);return gn.indexOf(Si)>=0&&this._refreshEvents(),hi}});var lt=u(6520),dt="dxMask";class bn{constructor(Pn){this.editor=Pn,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}_getStrategyName(){return"base"}editorOption(){return this.editor.option(...arguments)}editorInput(){return this.editor._input()}editorCaret(Pn){if(!Pn)return this.editor._caret();this.editor._caret(Pn)}getHandler(Pn){return(this["_".concat(Pn,"Handler")]||function(){}).bind(this)}attachEvents(){var Pn=this.editorInput();this.getHandleEventNames().forEach(hi=>{var Si=(0,d.V4)(hi.toLowerCase(),dt);h.Z.on(Pn,Si,this.getEventHandler(hi))}),this._attachChangeEventHandlers()}getHandleEventNames(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}getEventHandler(Pn){return this["_".concat(Pn,"Handler")].bind(this)}detachEvents(){h.Z.off(this.editorInput(),".".concat(dt))}_attachChangeEventHandlers(){this.editorOption("valueChangeEvent").split(" ").includes("change")&&h.Z.on(this.editorInput(),(0,d.V4)("blur beforedeactivate",dt),function(Pn){this._suppressCaretChanging(this._changeHandler,[Pn]),this._changeHandler(Pn)}.bind(this.editor))}_focusInHandler(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var Pn=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:Pn,end:Pn})}.bind(this.editor),0)}}_focusOutHandler(Pn){this.editor._changeHandler(Pn),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}_cutHandler(Pn){var hi=this.editorCaret(),Si=this.editorInput().val().substring(hi.start,hi.end);this.editor._maskKeyHandler(Pn,()=>(0,lt.Zx)(Pn,Si))}_dropHandler(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}_clearDragTimer(){clearTimeout(this._dragTimer)}_keyDownHandler(){this._keyPressHandled=!1}_pasteHandler(Pn){var{editor:hi}=this;this._keyPressHandled=!0;var Si=this.editorCaret();hi._maskKeyHandler(Pn,()=>{var Yi=(0,lt.Zx)(Pn),dr=hi._maskRulesChain.text().substring(Si.end),kr=hi._handleChain({text:Yi,start:Si.start,length:Yi.length}),Nr=Si.start+kr;hi._handleChain({text:dr,start:Nr,length:dr.length}),hi._caret({start:Nr,end:Nr})})}_autoFillHandler(Pn){var{editor:hi}=this,Si=this.editorInput().val();this._inputHandlerTimer=setTimeout(()=>{this._keyPressHandled=!0,this._isAutoFill()&&(this._keyPressHandled=!0,hi._maskKeyHandler(Pn,()=>{hi._handleChain({text:Si,start:0,length:Si.length})}),hi._validateMask())})}_isAutoFill(){var Pn=this.editor._input(),hi=!1;if(a.Z.webkit){var Si=Pn.get(0);hi=Si&&Si.matches(":-webkit-autofill")}return hi}runWithoutEventProcessing(Pn){var hi=this._keyPressHandled;this._keyPressHandled=!0,Pn(),this._keyPressHandled=hi}_backspaceHandler(){}_delHandler(Pn){var{editor:hi}=this;this._keyPressHandled=!0,hi._maskKeyHandler(Pn,()=>!hi._hasSelection()&&hi._handleKey(" "))}clean(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}const li=class Xn extends bn{_getStrategyName(){return"default"}getHandleEventNames(){return[...super.getHandleEventNames(),"keyPress"]}_keyPressHandler(Pn){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(Pn))){var{editor:hi}=this;hi._maskKeyHandler(Pn,()=>hi._handleKey((0,d.qK)(Pn)))}}_inputHandler(Pn){if(this._backspaceInputHandled(Pn.originalEvent&&Pn.originalEvent.inputType)&&this._handleBackspaceInput(Pn),Pn.originalEvent&&this._autoFillHandler(Pn),!this._keyPressHandled){this._keyPressHandled=!0;var hi=this.editorInput().val(),Si=this.editorCaret();if(Si.end){Si.start=Si.end-1;var Yi=hi.substring(0,Si.start)+hi.substring(Si.end),dr=hi[Si.start],{editor:kr}=this;this.editorInput().val(Yi),kr._caret({start:Si.start,end:Si.start}),kr._maskKeyHandler(Pn,()=>kr._handleKey(dr))}}}_backspaceHandler(Pn){var{editor:hi}=this;this._keyPressHandled=!0;var Si=(Yi,dr)=>{Yi&&(hi._direction(this.DIRECTION.FORWARD),hi._adjustCaret());var kr=this.editorCaret();return new Promise(Nr=>{clearTimeout(this._backspaceHandlerTimeout),this._backspaceHandlerTimeout=setTimeout(function(){dr(kr),Nr()})})};hi._maskKeyHandler(Pn,()=>hi._hasSelection()?Si(!0,Yi=>{hi._displayMask(Yi),hi._maskRulesChain.reset()}):hi._tryMoveCaretBackward()?Si(!1,Yi=>{this.editorCaret(Yi)}):(hi._handleKey(" ",this.DIRECTION.BACKWARD),Si(!0,Yi=>{hi._displayMask(Yi),hi._maskRulesChain.reset()})))}_backspaceInputHandled(Pn){return"deleteContentBackward"===Pn&&!this._keyPressHandled}_handleBackspaceInput(Pn){var{start:hi,end:Si}=this.editorCaret();this.editorCaret({start:hi+1,end:Si+1}),this._backspaceHandler(Pn)}},Oi=class Vn extends bn{_getStrategyName(){return"inputEvents"}getHandleEventNames(){return[...super.getHandleEventNames(),"beforeInput"]}_beforeInputHandler(){this._prevCaret=this.editorCaret()}_inputHandler(Pn){var{originalEvent:hi}=Pn;if(hi){var{inputType:Si,data:Yi}=hi,dr=this.editorCaret();if("deleteContentBackward"===Si){var kr=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:dr.start,length:kr,text:this._getEmptyString(kr)})}else{var Nr,Gr,Qr;if(!dr.end)return;this._autoFillHandler(hi),this.editorCaret(dr);var Sr=(null===(Nr=this._prevCaret)||void 0===Nr?void 0:Nr.end)-(null===(Gr=this._prevCaret)||void 0===Gr?void 0:Gr.start),Wr=Yi+(Sr?this._getEmptyString(Sr-Yi.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:null===(Qr=this._prevCaret)||void 0===Qr?void 0:Qr.start,length:Sr||Wr.length,text:Wr})||this.editorCaret(this._prevCaret)}}}_getEmptyString(Pn){return Array(Pn+1).join(" ")}_updateEditorMask(Pn){var hi=Pn.text.length,Si=this.editor._handleChain(Pn);if(this.editor.isForwardDirection()){var{start:Yi,end:dr}=this.editorCaret(),kr=Si-hi;Yi<=Si&&Si>1&&this.editorCaret({start:Yi+kr,end:dr+kr}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!Si}};var Hn=function(){return{}},En=I.Z,Wn="dx-texteditor-masked",Ji="forward",Qn={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(vn){return ci(vn)},l:function(vn){return ci(vn)||Wi(vn)},C:/\S/,c:/./,A:function(vn){return ci(vn)||ti(vn)},a:function(vn){return ci(vn)||ti(vn)||Wi(vn)}};function ti(vn){return/[0-9]/.test(vn)}function ci(vn){var Pn=vn.charCodeAt();return 64<Pn&&Pn<91||96<Pn&&Pn<123||Pn>127}function Wi(vn){return" "===vn}const nr=Vt.inherit({_getDefaultOptions:function(){return(0,v.l)(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:y.Z.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var vn=this,Pn={backspace:vn._maskStrategy.getHandler("backspace"),del:vn._maskStrategy.getHandler("del"),enter:vn._changeHandler},hi=vn.callBase();return(0,l.S6)(Pn,function(Si,Yi){var dr=hi[Si];hi[Si]=function(kr){vn.option("mask")&&Yi.call(vn,kr),dr&&dr(kr)}}),hi},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=function s(){return"onbeforeinput"in C.Z.createElement("input")&&!a.Z.chrome||function p(){var{android:vn,version:Pn}=g.Z.real();return vn&&Pn[0]>4}()}()?new Oi(this):new li(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==E.ZT){var Pn=this._input(),hi=(0,d.V4)(O.u,this.NAME),Si=this._createAction(function(Yi){var{event:dr}=Yi;(0,x.si)(Pn)&&!(0,d.j1)(dr)&&(this._onMouseWheel(dr),dr.preventDefault(),dr.stopPropagation())}.bind(this));h.Z.off(Pn,hi),h.Z.on(Pn,hi,function(Yi){Si({event:Yi})})}},_onMouseWheel:E.ZT,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=(0,c.Z)("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass(Wn),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass(Wn),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(vn,Pn){En=Hn;try{vn.apply(this,Pn)}finally{En=I.Z}},_changeHandler:function(vn){var Pn=this._input(),hi=Pn.val();if(hi!==this._changedValue){this._changedValue=hi;var Si=(0,d.yM)(vn,{type:"change"});h.Z.trigger(Pn,Si)}},_parseMask:function(){this._maskRules=(0,v.l)({},Qn,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(vn){var Pn=this.option("mask");if(vn>=Pn.length)return new R;var hi=Pn[vn],Si="\\"===hi,Yi=Si?new B({maskChar:Pn[vn+1]}):this._getMaskRule(hi);return Yi.next(this._parseMaskRule(vn+1+Si)),Yi},_getMaskRule:function(vn){var Pn;return(0,l.S6)(this._maskRules,function(hi,Si){if(hi===vn)return Pn={pattern:hi,allowedChars:Si},!1}),(0,b.$K)(Pn)?new P((0,v.l)({maskChar:this.option("maskChar")},Pn)):new B({maskChar:vn})},_renderMaskedValue:function(){if(this._maskRulesChain){var vn=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var Pn={length:vn.length};Pn[this._isMaskedValueMode()?"text":"value"]=vn,this._handleChain(Pn),this._displayMask()}},_replaceSelectedText:function(vn,Pn,hi){return void 0===hi?vn:vn.slice(0,Pn.start)+hi+vn.slice(Pn.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(vn){vn=vn||this._caret(),this._renderValue(),this._caret(vn)},_isValueEmpty:function(){return(0,S.xb)(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||(0,x.si)(this._input())||!this._isValueEmpty()},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var vn=this._maskRulesChain.text();this.option("text",vn),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(vn)}},_renderValue:function(){if(this._maskRulesChain&&(this._showMaskPlaceholder(),this._$hiddenElement)){var vn=this._maskRulesChain.value(),Pn=(0,S.xb)(vn)?"":this._getPreparedValue();this._$hiddenElement.val(Pn)}return this.callBase()},_getPreparedValue:function(){return this._convertToValue().replace(/\s+$/,"")},_valueChangeEventHandler:function(vn){this._maskRulesChain?(this._saveValueChangeEvent(vn),this.option("value",this._getPreparedValue())):this.callBase.apply(this,arguments)},_isControlKeyFired:function(vn){return this._isControlKey((0,d.EV)(vn))||(0,d.j1)(vn)},_handleChain:function(vn){var Pn=this._maskRulesChain.handle(this._normalizeChainArguments(vn));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),Pn},_normalizeChainArguments:function(vn){return(vn=vn||{}).index=0,vn.fullText=this._maskRulesChain.text(),vn},_convertToValue:function(vn){return this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(vn||this._textValue||""):vn||this._value||""},_replaceMaskCharWithEmpty:function(vn){return vn.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(vn,Pn){if(!this.option("readOnly")){this.setForwardDirection(),vn.preventDefault(),this._handleSelection();var hi=this._input().val(),Si=()=>{hi!==this._input().val()&&this._maskStrategy.runWithoutEventProcessing(()=>h.Z.trigger(this._input(),"input"))},Yi=Pn();Yi?Yi.then(Si):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),Si())}},_handleKey:function(vn,Pn){this._direction(Pn||Ji),this._adjustCaret(vn),this._handleKeyChain(vn),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var vn=this._caret(),Pn=new Array(vn.end-vn.start+1).join(" ");this._handleKeyChain(Pn)}},_handleKeyChain:function(vn){var Pn=this._caret(),hi=this.isForwardDirection()?Pn.start:Pn.start-1,Si=this.isForwardDirection()?Pn.end:Pn.end-1;this._handleChain({text:vn,start:hi,length:hi===Si?1:Si-hi})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var vn=this._caret().start;return this._adjustCaret(),!vn||vn!==this._caret().start},_adjustCaret:function(vn){var Pn=this._caret().start,hi=this.isForwardDirection(),Si=this._maskRulesChain.adjustedCaret(Pn,hi,vn);this._caret({start:Si,end:Si})},_moveCaret:function(){var vn=this._caret().start,Pn=vn+(this.isForwardDirection()?0:-1),hi=this._maskRulesChain.isAccepted(Pn)?vn+(this.isForwardDirection()?1:-1):vn;this._caret({start:hi,end:hi})},_caret:function(vn,Pn){var hi=this._input();if(hi.length){if(!arguments.length)return En(hi);En(hi,vn,Pn)}},_hasSelection:function(){var vn=this._caret();return vn.start!==vn.end},_direction:function(vn){if(!arguments.length)return this._typingDirection;this._typingDirection=vn},setForwardDirection:function(){this._direction(Ji)},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return this._direction()===Ji},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var vn=(0,S.xb)(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:vn,validationError:vn?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(vn){if(!vn){var Pn=this.option("value");this.option({text:Pn,isValid:!0}),this.validationRequest.fire({value:Pn,editor:this}),this._renderValue()}},_optionChanged:function(vn){switch(vn.name){case"mask":this._updateMaskOption(),this._processEmptyMask(vn.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(vn),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(vn)}}});(0,o.Z)("dxTextEditor",nr);const xr=nr},5214:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(9904),c=u(1828),I=u(2941),C=u(9897),{ios:g,mac:a}=I.Z.real(),p=g||a,s=function(v){var x;try{x={start:v.selectionStart,end:v.selectionEnd}}catch{x={start:0,end:0}}return x},l=function(v,x){var b=C.Z.getBody();if(b.contains(v)||b.contains(v.getRootNode().host))try{v.selectionStart=x.start,v.selectionEnd=x.end}catch{}};const h=function(v,x){var b=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(v=(0,o.Z)(v).get(0),!(0,c.$K)(x))return s(v);!b&&p&&C.Z.getActiveElement(v)!==v||l(v,x)}},8474:(Rn,he,u)=>{"use strict";u.d(he,{M:()=>C,u:()=>I});var o=u(9904),c=u(8225),I=function(g,a,p){var s=(0,o.Z)(g),l=p?s.scrollLeft():s.scrollTop(),d=p?"Width":"Height",x=s.prop("scroll".concat(d))-s.prop("client".concat(d))-l|0;return(0!==l||0!==x)&&(!!(0===l&&a>=0||0===x&&a<=0||l>0&&x>0)||void 0)},C=function(g,a){var p=(0,o.Z)(g);return{validate:function(s){if((0,c.pR)(s)&&(!a||(0,o.Z)(s.target).is(g)))return!!I(p,-s.delta,s.shiftKey)&&(s._needSkipEvent=!0,!0)}}}},2722:(Rn,he,u)=>{"use strict";u.d(he,{Vk:()=>M,f5:()=>ce,OD:()=>ye,x2:()=>_e,Ih:()=>pe});var B,W,z,V,U,fe,o=u(1805),c=u(2941),I=u(9897),C=u(9904),g=u(4270),a=u(2819),p=u(2718),s=u(3068),l=u(1469),d=u(4514),v=(0,u(5365).Z)(),x=u(8159),b=(0,d.Jj)(),y=s.Z.add,E=l.S3,S=l.Wg,O=new g.BH,w="link[rel=dx-theme]",R="dx-hairlines",P="any",Y="dx.";function J(){if(!(0,d.Ym)())return null;var Ae,be=(0,C.Z)("<div>",B).addClass("dx-theme-marker").appendTo(B.documentElement);try{return(Ae=b.getComputedStyle(be.get(0)).fontFamily)&&(Ae=Ae.replace(/["']/g,"")).substr(0,Y.length)===Y?Ae.substr(Y.length):null}finally{be.remove()}}function j(be){var Ae,Ne,mt=!0;function tt(){U=null,clearInterval(Ne),mt=!0,v.fire(),v.empty(),O.resolve()}if(U=be,ee())tt();else{if(!mt)return void(U&&(U=be));Ae=Date.now(),mt=!1,Ne=setInterval(function(){var Le=ee(),gt=!Le&&Date.now()-Ae>15e3;gt&&x.Z.log("W0004",U),(Le||gt)&&tt()},10)}}function ee(){if(!U)return!0;var be=U===P;if("resolved"===O.state()&&be)return!0;var Ae=J();return!(!Ae||!be)||Ae===U}function q(be){var Ae=be?be.split("."):[],Ne=null;if(z){if(be in z)return be;(0,p.S6)(z,function(mt,tt){var Le=mt.split(".");if((!Ae[0]||Le[0]===Ae[0])&&(!Ae[1]||Ae[1]===Le[1])&&(!Ae[2]||Ae[2]===Le[2])&&((!Ne||tt.isActive)&&(Ne=mt),tt.isActive))return!1})}return Ne}function X(be){(function Z(be){try{be!==B&&(z=null)}catch{z=null}B=be})((be=be||{}).context||I.Z.getDocument()),B&&(function G(){var be=(0,C.Z)(w,B);be.length&&(z={},W=(0,C.Z)((0,a.r)("<link rel=stylesheet>"),B),be.each(function(){var Ae=(0,C.Z)(this,B),Ne=Ae.attr("data-theme"),mt=Ae.attr("href"),tt="true"===Ae.attr("data-active");z[Ne]={url:mt,isActive:tt}}),be.last().after(W),be.remove())}(),V=void 0,M(be))}function M(be){if(!arguments.length)return V=V||J();Be(E()),"string"==typeof(be=be||{})&&(be={theme:be});var mt,Ae=be._autoInit,Ne=be.loadCallback;if((V=q(be.theme||V))&&(mt=z[V]),Ne&&v.add(Ne),mt)W.attr("href",z[V].url),(v.has()||"resolved"!==O.state()||be._forceTimeout)&&j(V);else{if(!Ae)throw x.Z.Error("E0021",V);(0,d.Ym)()&&j(P),v.fire(),v.empty()}O.done(()=>Te((0,l.In)(),V))}function Te(be,Ae){fe=function oe(be){var Ae=[],Ne=(be=be||M())&&be.split(".");return Ne&&(Ae.push("dx-theme-"+Ne[0],"dx-theme-"+Ne[0]+"-typography"),Ne.length>1&&Ae.push("dx-color-scheme-"+Ne[1]+(_e(be)?"-"+Ne[2]:""))),Ae}(Ae).join(" "),(0,C.Z)(be).addClass(fe),function(){var Ne=(0,d.Ym)()&&b.devicePixelRatio;if(Ne&&!(Ne<2)){var mt=(0,C.Z)("<div>");mt.css("border",".5px solid transparent"),(0,C.Z)("body").append(mt),1===(0,o.zp)(mt)&&((0,C.Z)(be).addClass(R),fe+=" "+R),mt.remove()}}()}function Be(be){(0,C.Z)(be).removeClass(fe)}function ae(be,Ae){return Ae||(Ae=V||J()),new RegExp(be).test(Ae)}function _e(be){return ae("material",be)}function ye(be){return ae("generic",be)}function ce(be){return ae("compact",be)}function pe(be,Ae){return new Promise(Ne=>{var mt=()=>{clearInterval(tt),clearTimeout(Le),Ne()},tt=setInterval(()=>{(function le(be,Ae){var Ne=I.Z.getDocument(),mt=Ne.createElement("span");mt.style.position="absolute",mt.style.top="-9999px",mt.style.left="-9999px",mt.style.visibility="hidden",mt.style.fontFamily="Arial",mt.style.fontSize="250px",mt.style.fontWeight=Ae,mt.innerHTML=be,Ne.body.appendChild(mt);var tt=mt.offsetWidth;mt.style.fontFamily="Roboto, RobotoFallback, Arial";var Le=mt.offsetWidth;return mt.parentNode.removeChild(mt),tt!==Le})(be,Ae)&&mt()},15),Le=setTimeout(mt,2e3)})}function Se(){if(X({_autoInit:!0,_forceTimeout:!0}),(0,C.Z)(w,B).length)throw x.Z.Error("E0022")}(0,d.Ym)()?Se():y(Se),S.add(function(be,Ae){O.done(function(){Be(Ae),Te(be)})}),c.Z.changed.add(function(){X({_autoInit:!0})})},4131:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>Y});var o=u(9904),c=u(4514),I=u(9897),C=u(913),g=u(3068),a=u(7674),p=u(1828),s=u(5873),l=u(8690),d=u(8506),h=u(3576),v=u(2722),x=(0,c.Jj)(),y="dx-toast",E=y+"-",S=E+"wrapper",O=E+"content",w=E+"message",T=E+"icon",R=["info","warning","error","success"],P=[],W=null,z={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}},V={h:0,v:0};(0,g.Z.add)(function(){C.Z.subscribeGlobal(I.Z.getDocument(),l.Z.down,function(J){for(var j=P.length-1;j>=0;j--)if(!P[j]._proxiedDocumentDownHandler(J))return})});var U=h.Z.inherit({_getDefaultOptions:function(){return(0,s.l)(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},shading:!1,height:"auto",hideTopOverlayHandler:null,closeOnSwipe:!0,closeOnClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{hideOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:x}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:x}}}}}},{device:function(J){return"phone"===J.deviceType&&"android"===J.platform},options:{width:"100vw",position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(J){return"phone"===J.deviceType},options:{width:"100vw"}},{device:function(){return(0,v.x2)()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=(0,o.Z)("<div>").addClass(w).text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),R.includes(this.option("type").toLowerCase())&&this.$content().prepend((0,o.Z)("<div>").addClass(T)),this.callBase()},_render:function(){this.callBase(),this.$element().addClass(y),this.$wrapper().addClass(S),this.$content().addClass(E+String(this.option("type")).toLowerCase()),this.$content().addClass(O),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:a.ZT,_toggleCloseEvents:function(J){var j="dx"+J.toLowerCase();C.Z.off(this.$content(),j),this.option("closeOn"+J)&&C.Z.on(this.$content(),j,this.hide.bind(this))},_posStringToObject:function(){if((0,p.HD)(this.option("position"))){var J=this.option("position").split(" ")[0],j=this.option("position").split(" ")[1];switch(this.option("position",(0,s.l)({boundaryOffset:V},z[J])),j){case"center":case"left":case"right":this.option("position").at+=" "+j,this.option("position").my+=" "+j}}},_show:function(){return W&&W!==this&&(clearTimeout(W._hideTimeout),W.hide()),W=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return W=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return P},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),W=null,this.callBase()},_optionChanged:function(J){switch(J.name){case"type":this.$content().removeClass(E+J.previousValue),this.$content().addClass(E+String(J.value).toLowerCase());break;case"message":this._message&&this._message.text(J.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":break;default:this.callBase(J)}}});(0,d.Z)("dxToast",U);const Y=U},7858:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ce});var o=u(8506),c=u(5873),I=u(7160),C=u(9904),a=["dxAutocomplete","dxButton","dxCheckBox","dxDateBox","dxMenu","dxSelectBox","dxTabs","dxTextBox","dxButtonGroup","dxDropDownButton"];function s(le,pe){var Se;if(le){var re=le._findItemElementByItem(pe);if(re.length){var te=le._getItemData(re),ie=!!(null!==(Se=te.options)&&void 0!==Se&&Se.disabled||te.disabled||le.option("disabled")),{widget:ue}=te;if(ue&&-1!==a.indexOf(ue)){var be=re.find(ue.toLowerCase().replace("dx",".dx-"));if(be.length){var Ae,Ne,mt=function(le){var pe=le.data&&le.data(),Se=pe&&pe.dxComponents,re=Se&&Se[0];return re&&pe[re]}(be);if(!mt)return;var Le,tt=null===(Ae=mt._focusTarget)||void 0===Ae?void 0:Ae.call(mt);tt="dxDropDownButton"===ue?tt&&tt.find(".".concat("dx-buttongroup")):null!==(Le=tt)&&void 0!==Le?Le:(0,C.Z)(mt.element());var gt=null===(Ne=te.options)||void 0===Ne?void 0:Ne.tabIndex;tt.attr("tabIndex",ie?-1:gt??0)}}}}}var l=u(1805);class h{constructor(pe){this._toolbar=pe}_initMarkup(){}_updateMenuVisibility(){}_renderMenuItems(){}_renderItem(){}_getMenuItems(){}_getToolbarItems(){var pe;return null!==(pe=this._toolbar.option("items"))&&void 0!==pe?pe:[]}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth(this._toolbar.itemElements(),!0)}_arrangeItems(){var pe=this._toolbar._$toolbarItemsContainer.find(".".concat("dx-toolbar-label")).eq(0);if(pe.length){var Se=(0,l.dz)(this._toolbar.$element()),re=(0,l.Y_)(pe)-(0,l.dz)(pe);pe.css("maxWidth",Se-re)}}_hideOverflowItems(){}_dimensionChanged(){}_itemOptionChanged(){}_optionChanged(){}}var v=u(2718),x=u(7674),b=u(2941),y=u(6853),E=u(219),S=u(5505),O="dx-toolbar-menu-action",T="dx-toolbar-hidden-button-group",k="dx-toolbar-menu-section",P="dx-toolbar-menu-last-section";class B extends S.K{_init(){super._init(),this._activeStateUnit=".".concat(O,":not(.").concat(T,")")}_initMarkup(){this._renderSections(),super._initMarkup()}_getSections(){return this._itemContainer().children()}_itemElements(){return this._getSections().children(this._itemSelector())}_renderSections(){var pe=this._itemContainer();(0,v.S6)(["before","center","after","menu"],(Se,re)=>{var te="_$".concat(re,"Section");this[te]||(this[te]=(0,C.Z)("<div>").addClass(k)),this[te].appendTo(pe)})}_renderItems(){super._renderItems.apply(this,arguments),this._updateSections()}_updateSections(){var pe=this.$element().find(".".concat(k));pe.removeClass(P),pe.not(":empty").eq(-1).addClass(P)}_renderItem(pe,Se,re,te){var ie,ue=null!==(ie=Se.location)&&void 0!==ie?ie:"menu",be=this["_$".concat(ue,"Section")],Ae=super._renderItem(pe,Se,be,te);return this._getItemTemplateName({itemData:Se})&&Ae.addClass("dx-toolbar-menu-custom"),("menu"===ue||"dxButton"===Se.widget||"dxButtonGroup"===Se.widget||Se.isAction)&&Ae.addClass(O),"dxButton"===Se.widget&&Ae.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===Se.widget&&Ae.addClass(T),Ae.addClass(Se.cssClass),Ae}_getItemTemplateName(pe){var Se=super._getItemTemplateName(pe),re=pe.itemData;return re&&re.menuItemTemplate||Se}_dataSourceOptions(){return{paginate:!1}}_itemClickHandler(pe,Se,re){(0,C.Z)(pe.target).closest(".".concat(O)).length&&super._itemClickHandler(pe,Se,re)}_getAriaTarget(){var pe;return null!==(pe=this.option("_areaTarget"))&&void 0!==pe?pe:super._getAriaTarget()}_clean(){this._getSections().empty(),super._clean()}}var W=u(2722),z=u(1927),V=u(4514);u(9609);class Z extends y.Z{_supportedKeys(){var pe={};return(!this.option("opened")||!this._list.option("focusedElement"))&&(pe=this._button._supportedKeys()),(0,c.l)(super._supportedKeys(),pe,{tab:function(){this._popup&&this._popup.hide()}})}_getDefaultOptions(){return(0,c.l)(super._getDefaultOptions(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",onButtonClick:null,activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,onItemRendered:null,closeOnClick:!0,useInkRipple:!1,container:void 0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}}})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return"desktop"===b.Z.real().deviceType&&!b.Z.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return(0,W.x2)()},options:{useInkRipple:!0,animation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}}])}_init(){super._init(),this.$element().addClass("dx-dropdownmenu"),this._initItemClickAction(),this._initButtonClickAction()}_initItemClickAction(){this._itemClickAction=this._createActionByOption("onItemClick")}_initButtonClickAction(){this._buttonClickAction=this._createActionByOption("onButtonClick")}_initTemplates(){this._templateManager.addDefaultTemplates({content:new z.s("content")}),super._initTemplates()}_initMarkup(){this._renderButton(),super._initMarkup()}_render(){super._render(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})}_renderContentImpl(){this.option("opened")&&this._renderPopup()}_clean(){this._cleanFocusState(),this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove(),delete this._list,delete this._popup}_renderButton(){var pe=this.$element().addClass("dx-dropdownmenu-button");this._button=this._createComponent(pe,E.Z,{icon:"overflow",template:"content",useInkRipple:this.option("useInkRipple"),hoverStateEnabled:!1,focusStateEnabled:!1,onClick:Se=>{this.option("opened",!this.option("opened")),this._buttonClickAction(Se)}})}_toggleActiveState(pe,Se,re){this._button._toggleActiveState(pe,Se,re)}_toggleMenuVisibility(pe){var Se=pe??!this._popup.option("visible");pe&&this._renderPopup(),this._popup.toggle(Se),this.setAria("expanded",Se)}_renderPopup(){if(!this._$popup){this._$popup=(0,C.Z)("<div>").appendTo(this.$element());var{rtlEnabled:pe,container:Se,animation:re}=this.option();this._popup=this._createComponent(this._$popup,"dxPopup",{onInitialized(te){var{component:ie}=te;ie.$wrapper().addClass("dx-dropdownmenu-popup-wrapper").addClass("dx-dropdownmenu-popup")},deferRendering:!1,contentTemplate:te=>this._renderList(te),_ignoreFunctionValueDeprecation:!0,maxHeight:()=>this._getMaxHeight(),position:{my:"top ".concat(pe?"left":"right"),at:"bottom ".concat(pe?"left":"right"),collision:"fit flip",offset:{v:3},of:this.$element()},animation:re,onOptionChanged:te=>{var{name:ie,value:ue}=te;"visible"===ie&&this.option("opened",ue)},container:Se,autoResizeEnabled:!1,height:"auto",width:"auto",hideOnOutsideClick:te=>this._closeOutsideDropDownHandler(te),hideOnParentScroll:!0,shading:!1,dragEnabled:!1,showTitle:!1,fullScreen:!1,_fixWrapperPosition:!0})}}_getMaxHeight(){var pe=this.$element(),Se=pe.offset().top,re=(0,l.zp)((0,V.Jj)()),te=Math.max(Se,re-Se-(0,l.zp)(pe));return Math.min(re,te-3-10)}_closeOutsideDropDownHandler(pe){return!(0,C.Z)(pe.target).closest(this.$element()).length}_renderList(pe){var Se=(0,C.Z)(pe);Se.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(Se,B,{dataSource:this._getListDataSource(),pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",itemTemplate:this.option("itemTemplate"),onItemClick:re=>{this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(re)},tabIndex:-1,focusStateEnabled:!1,activeStateEnabled:!0,onItemRendered:this.option("onItemRendered"),_areaTarget:this.$element(),_itemAttributes:{role:"menuitem"}})}_itemOptionChanged(pe,Se,re){var te;null===(te=this._list)||void 0===te||te._itemOptionChanged(pe,Se,re),s(this._list,pe)}_getListDataSource(){var pe;return null!==(pe=this.option("dataSource"))&&void 0!==pe?pe:this.option("items")}_setListDataSource(){var pe;null===(pe=this._list)||void 0===pe||pe.option("dataSource",this._getListDataSource()),delete this._deferRendering}_getKeyboardListeners(){return super._getKeyboardListeners().concat([this._list])}_toggleVisibility(pe){super._toggleVisibility(pe),this._button.option("visible",pe)}_optionChanged(pe){var Se,re,te,{name:ie,value:ue}=pe;switch(ie){case"items":case"dataSource":this.option("opened")?this._setListDataSource():this._deferRendering=!0;break;case"itemTemplate":null===(Se=this._list)||void 0===Se||Se.option(ie,this._getTemplate(ue));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"useInkRipple":this._invalidate();break;case"focusStateEnabled":null===(re=this._list)||void 0===re||re.option(ie,ue),super._optionChanged(pe);break;case"onItemRendered":null===(te=this._list)||void 0===te||te.option(ie,ue);break;case"opened":this._deferRendering&&this._setListDataSource(),this._toggleMenuVisibility(ue),this._updateFocusableItemsTabIndex();break;case"closeOnClick":break;case"container":this._popup&&this._popup.option(ie,ue);break;case"disabled":this._list&&this._updateFocusableItemsTabIndex();break;default:super._optionChanged(pe)}}_updateFocusableItemsTabIndex(){this.option("items").forEach(pe=>s(this._list,pe))}}var X=u(6738),M="dx-state-invisible",Te="dx-toolbar-item-auto-hide",Be="dx-toolbar-item-invisible";class ze{constructor(pe){this._toolbar=pe}_initMarkup(){(0,x.g0)(()=>{this._renderOverflowMenu(),this._renderMenuItems()})}_renderOverflowMenu(){if(this._hasVisibleMenuItems()){this._renderMenuButtonContainer();var pe=(0,C.Z)("<div>").appendTo(this._overflowMenuContainer()),Se=this._toolbar._createActionByOption("onItemClick"),re=this._toolbar._getTemplateByOption("menuItemTemplate");this._menu=this._toolbar._createComponent(pe,Z,{disabled:this._toolbar.option("disabled"),itemTemplate:()=>re,onItemClick:te=>{Se(te)},container:this._toolbar.option("menuContainer"),onOptionChanged:te=>{var{name:ie,value:ue}=te;"opened"===ie&&this._toolbar.option("overflowMenuVisible",ue),"items"===ie&&this._updateMenuVisibility(ue)}})}}renderMenuItems(){this._menu||this._renderOverflowMenu(),this._menu&&this._menu.option("items",this._getMenuItems()),this._menu&&!this._menu.option("items").length&&this._menu.option("opened",!1)}_renderMenuButtonContainer(){this._$overflowMenuContainer=(0,C.Z)("<div>").appendTo(this._toolbar._$afterSection).addClass("dx-toolbar-button").addClass("dx-toolbar-menu-container")}_overflowMenuContainer(){return this._$overflowMenuContainer}_updateMenuVisibility(pe){var Se=pe??this._getMenuItems(),re=Se.length&&this._hasVisibleMenuItems(Se);this._toggleMenuVisibility(re)}_toggleMenuVisibility(pe){this._overflowMenuContainer()&&this._overflowMenuContainer().toggleClass(M,!pe)}_renderMenuItems(){(0,x.g0)(()=>{this.renderMenuItems()})}_dimensionChanged(){this.renderMenuItems()}_getToolbarItems(){var pe;return(0,x.h3)(null!==(pe=this._toolbar.option("items"))&&void 0!==pe?pe:[],Se=>!this._toolbar._isMenuItem(Se))}_getMenuItems(){var pe,Se,re=(0,x.h3)(null!==(pe=this._toolbar.option("items"))&&void 0!==pe?pe:[],ue=>this._toolbar._isMenuItem(ue)),te=this._toolbar._itemContainer().children(".".concat(Te,".").concat(Be)).not(".".concat(M));return this._restoreItems=null!==(Se=this._restoreItems)&&void 0!==Se?Se:[],[...[].slice.call(te).map(ue=>{var be=this._toolbar._getItemData(ue),Ae=(0,C.Z)(ue),Ne=Ae.children();return(0,c.l)({menuItemTemplate:()=>(this._restoreItems.push({container:Ae,item:Ne}),(0,C.Z)("<div>").addClass(Te).append(Ne))},be)}),...re]}_hasVisibleMenuItems(pe){var Se=pe??this._toolbar.option("items"),re=!1,te=(0,X.vb)("visible"),ie=(0,X.vb)("locateInMenu");return(0,v.S6)(Se,function(ue,be){var Ae=te(be,{functionsAsIs:!0}),Ne=ie(be,{functionsAsIs:!0});(!1!==Ae&&("auto"===Ne||"always"===Ne)||"menu"===be.location)&&(re=!0)}),re}_arrangeItems(){var pe;this._toolbar._$centerSection.css({margin:"0 auto",float:"none"}),(0,v.S6)(null!==(pe=this._restoreItems)&&void 0!==pe?pe:[],function(re,te){(0,C.Z)(te.container).append(te.item)}),this._restoreItems=[];var Se=(0,l.dz)(this._toolbar.$element());return this._hideOverflowItems(Se),Se}_hideOverflowItems(pe){var Se,re=this._toolbar.$element().find(".".concat(Te));if(re.length){pe=null!==(Se=pe)&&void 0!==Se?Se:(0,l.dz)(this._toolbar.$element()),(0,C.Z)(re).removeClass(Be);for(var te=this._getItemsWidth();re.length&&pe<te;){var ie=re.eq(-1);te-=(0,l.Y_)(ie),ie.addClass(Be),re.splice(-1,1)}}}_getItemsWidth(){return this._toolbar._getSummaryItemsWidth([this._toolbar._$beforeSection,this._toolbar._$centerSection,this._toolbar._$afterSection])}_itemOptionChanged(pe,Se,re){var te;!this._toolbar._isMenuItem(pe)||"disabled"!==Se&&"options.disabled"!==Se?this.renderMenuItems():null===(te=this._menu)||void 0===te||te._itemOptionChanged(pe,Se,re)}_renderItem(pe,Se){"auto"===pe.locateInMenu&&Se.addClass(Te)}_optionChanged(pe,Se){var re,te,ie,ue,be;switch(pe){case"disabled":null===(re=this._menu)||void 0===re||re.option(pe,Se);break;case"overflowMenuVisible":null===(te=this._menu)||void 0===te||te.option("opened",Se);break;case"onItemClick":null===(ie=this._menu)||void 0===ie||ie.option(pe,Se);break;case"menuContainer":null===(ue=this._menu)||void 0===ue||ue.option("container",Se);break;case"menuItemTemplate":null===(be=this._menu)||void 0===be||be.option("itemTemplate",Se)}}}class ye extends I.Z{_getDefaultOptions(){return(0,c.l)(super._getDefaultOptions(),{menuItemTemplate:"menuItem",menuContainer:void 0,overflowMenuVisible:!1,multiline:!1})}_isMultiline(){return this.option("multiline")}_dimensionChanged(pe){"height"!==pe&&(super._dimensionChanged(),this._layoutStrategy._dimensionChanged())}_initMarkup(){super._initMarkup(),this._updateFocusableItemsTabIndex(),this._layoutStrategy._initMarkup()}_renderToolbar(){super._renderToolbar(),this._renderLayoutStrategy()}_itemContainer(){return this._isMultiline()?this._$toolbarItemsContainer:super._itemContainer()}_renderLayoutStrategy(){this.$element().toggleClass("dx-toolbar-multiline",this._isMultiline()),this._layoutStrategy=this._isMultiline()?new h(this):new ze(this)}_renderSections(){if(!this._isMultiline())return super._renderSections()}_postProcessRenderItems(){this._layoutStrategy._hideOverflowItems(),this._layoutStrategy._updateMenuVisibility(),super._postProcessRenderItems(),this._layoutStrategy._renderMenuItems()}_renderItem(pe,Se,re,te){var ie=super._renderItem(pe,Se,re,te);this._layoutStrategy._renderItem(Se,ie);var{widget:ue,showText:be}=Se;return"dxButton"===ue&&"inMenu"===be&&ie.toggleClass("dx-toolbar-text-auto-hide"),ie}_getItemsWidth(){return this._layoutStrategy._getItemsWidth()}_getMenuItems(){return this._layoutStrategy._getMenuItems()}_getToolbarItems(){return this._layoutStrategy._getToolbarItems()}_arrangeItems(){if(!this.$element().is(":hidden")){var pe=this._layoutStrategy._arrangeItems();this._isMultiline()||super._arrangeItems(pe)}}_itemOptionChanged(pe,Se,re){this._layoutStrategy._itemOptionChanged(pe,Se,re),this._isMenuItem(pe)||super._itemOptionChanged(pe,Se,re),("disabled"===Se||"options.disabled"===Se)&&s(this,pe),"location"===Se&&this.repaint()}_updateFocusableItemsTabIndex(){this._getToolbarItems().forEach(pe=>s(this,pe))}_isMenuItem(pe){return"menu"===pe.location||"always"===pe.locateInMenu}_isToolbarItem(pe){return void 0===pe.location||"never"===pe.locateInMenu}_optionChanged(pe){var{name:Se,value:re}=pe;switch(this._layoutStrategy._optionChanged(Se,re),Se){case"menuContainer":case"menuItemTemplate":case"overflowMenuVisible":break;case"multiline":this._invalidate();break;case"disabled":super._optionChanged.apply(this,arguments),this._updateFocusableItemsTabIndex();break;default:super._optionChanged.apply(this,arguments)}}updateDimensions(){this._dimensionChanged()}}(0,o.Z)("dxToolbar",ye);const ce=ye},5347:(Rn,he,u)=>{"use strict";u.d(he,{z:()=>o});var o="dx-toolbar"},7160:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ee});var o=u(1805),c=u(9904),I=u(2722),C=u(1828),g=u(8506),a=u(5873),p=u(2718),s=u(5450),l=u(7307),d=u(4270),h=u(7674);const x=l.Z.inherit({_initMarkup(){this._deferredItems=[],this.callBase()},_renderItemContent(G){var q=new d.BH,Z=new d.BH;this._deferredItems[G.index]=Z;var X=this.callBase.call(this,G);return Z.done(()=>{q.resolve(X)}),q.promise()},_onItemTemplateRendered:function(G,q){return()=>{this._deferredItems[q.index].resolve()}},_postProcessRenderItems:h.ZT,_renderItemsAsync(){var G=new d.BH;return d.gx.apply(this,this._deferredItems).done(()=>{this._postProcessRenderItems(),G.resolve()}),G.promise()},_clean(){this.callBase(),this._deferredItems=[]}});var b=u(4823),y=u(3553),E=u(5347),S="dx-toolbar-before",w="dx-toolbar-after",R="dx-toolbar-label",z="dx-toolbar-compact",V="text";class j extends x{_getSynchronizableOptionsForCreateComponent(){return super._getSynchronizableOptionsForCreateComponent().filter(q=>"disabled"!==q)}_initTemplates(){super._initTemplates();var q=new b.c(function(Z,X,M){if((0,C.PO)(X)){var Be,ze,ae,_e,ye,{text:oe,html:fe,widget:Te}=X;if(oe&&Z.text(oe).wrapInner("<div>"),fe&&Z.html(fe),"dxDropDownButton"===Te&&(X.options=null!==(Be=X.options)&&void 0!==Be?Be:{},(0,C.$K)(X.options.stylingMode)||(X.options.stylingMode=this.option("useFlatButtons")?V:"contained")),"dxButton"===Te)this.option("useFlatButtons")&&(X.options=null!==(ze=X.options)&&void 0!==ze?ze:{},X.options.stylingMode=null!==(ae=X.options.stylingMode)&&void 0!==ae?ae:V),this.option("useDefaultButtons")&&(X.options=null!==(_e=X.options)&&void 0!==_e?_e:{},X.options.type=null!==(ye=X.options.type)&&void 0!==ye?ye:"default")}else Z.text(String(X));this._getTemplate("dx-polymorph-widget").render({container:Z,model:M,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:q,menuItem:q})}_getDefaultOptions(){return(0,a.l)(super._getDefaultOptions(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1})}_defaultOptionsRules(){return super._defaultOptionsRules().concat([{device:function(){return(0,I.x2)()},options:{useFlatButtons:!0}}])}_itemContainer(){return this._$toolbarItemsContainer.find([".".concat(S),".".concat("dx-toolbar-center"),".".concat(w)].join(","))}_itemClass(){return"dx-toolbar-item"}_itemDataKey(){return"dxToolbarItemDataKey"}_dimensionChanged(){this._arrangeItems(),this._applyCompactMode()}_initMarkup(){this._renderToolbar(),this._renderSections(),super._initMarkup()}_render(){super._render(),this._renderItemsAsync(),this._updateDimensionsInMaterial()}_postProcessRenderItems(){this._arrangeItems()}_renderToolbar(){this.$element().addClass(E.z),this._$toolbarItemsContainer=(0,c.Z)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element()),this.setAria("role","toolbar")}_renderSections(){var q=this._$toolbarItemsContainer;(0,p.S6)(["before","center","after"],(Z,X)=>{var M="dx-toolbar-".concat(X);q.find(".".concat(M)).length||(this["_$".concat(X,"Section")]=(0,c.Z)("<div>").addClass(M).appendTo(q))})}_arrangeItems(q){var Z;q=null!==(Z=q)&&void 0!==Z?Z:(0,o.dz)(this.$element()),this._$centerSection.css({margin:"0 auto",float:"none"});var X=(0,s.l)(this._$beforeSection.get(0)),M=(0,s.l)(this._$afterSection.get(0));this._alignCenterSection(X,M,q);var oe=this._$toolbarItemsContainer.find(".".concat(R)).eq(0),fe=oe.parent();if(oe.length){var Te=X.width?X.width:oe.position().left,Be=fe.hasClass(S)?0:Te,ze=fe.hasClass(w)?0:M.width,ae=0;fe.children().not(".".concat(R)).each(function(){ae+=(0,o.Y_)(this)});var ye=Math.max(q-ae-Be-ze,0);if(fe.hasClass(S))this._alignSection(this._$beforeSection,ye);else{var ne=(0,o.Y_)(oe)-(0,o.dz)(oe);oe.css("maxWidth",ye-ne)}}}_alignCenterSection(q,Z,X){this._alignSection(this._$centerSection,X-q.width-Z.width);var M=this.option("rtlEnabled"),oe=M?Z:q,fe=M?q:Z,Te=(0,s.l)(this._$centerSection.get(0));(oe.right>Te.left||Te.right>fe.left)&&this._$centerSection.css({marginLeft:oe.width,marginRight:fe.width,float:oe.width>fe.width?"none":"right"})}_alignSection(q,Z){var M=q.find(".".concat(R)).toArray();Z-=this._getCurrentLabelsPaddings(M);var oe=this._getCurrentLabelsWidth(M),fe=Math.abs(oe-Z);Z<oe?(M=M.reverse(),this._alignSectionLabels(M,fe,!1)):this._alignSectionLabels(M,fe,!0)}_alignSectionLabels(q,Z,X){for(var M=function(ae){return(0,s.l)(ae).width},oe=0;oe<q.length;oe++){var fe=(0,c.Z)(q[oe]),Te=Math.ceil(M(q[oe]));X&&fe.css("maxWidth","inherit");var ze=Math.ceil(X?M(q[oe]):Te);if(!(ze<Z)){fe.css("maxWidth",X?Te+Z:Te-Z);break}Z-=ze,fe.css("maxWidth",X?ze:0)}}_applyCompactMode(){var q=this.$element();q.removeClass(z),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>(0,o.dz)(q)&&q.addClass(z)}_getCurrentLabelsWidth(q){var Z=0;return q.forEach(function(X,M){Z+=(0,o.Y_)(X)}),Z}_getCurrentLabelsPaddings(q){var Z=0;return q.forEach(function(X,M){Z+=(0,o.Y_)(X)-(0,o.dz)(X)}),Z}_renderItem(q,Z,X,M){var oe,fe,Te=null!==(oe=Z.location)&&void 0!==oe?oe:"center",Be=X??this["_$".concat(Te,"Section")],ze=!!(null!==(fe=Z.text)&&void 0!==fe?fe:Z.html),ae=super._renderItem(q,Z,Be,M);return ae.toggleClass("dx-toolbar-button",!ze).toggleClass(R,ze).addClass(Z.cssClass),ae}_renderGroupedItems(){(0,p.S6)(this.option("items"),(q,Z)=>{var X,M=Z.items,oe=(0,c.Z)("<div>").addClass("dx-toolbar-group"),fe=null!==(X=Z.location)&&void 0!==X?X:"center";!M||!M.length||((0,p.S6)(M,(Te,Be)=>{this._renderItem(Te,Be,oe,null)}),this._$toolbarItemsContainer.find(".dx-toolbar-".concat(fe)).append(oe))})}_renderItems(q){this.option("grouped")&&q.length&&q[0].items?this._renderGroupedItems():super._renderItems(q)}_getToolbarItems(){var q;return null!==(q=this.option("items"))&&void 0!==q?q:[]}_renderContentImpl(){var q=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===q.length),this._renderItems(this._renderedItemsCount?q.slice(this._renderedItemsCount):q),this._applyCompactMode()}_renderEmptyMessage(){}_clean(){this._$toolbarItemsContainer.children().empty(),this.$element().empty(),delete this._$beforeSection,delete this._$centerSection,delete this._$afterSection}_visibilityChanged(q){q&&this._arrangeItems()}_isVisible(){return(0,o.dz)(this.$element())>0&&(0,o.Cr)(this.$element())>0}_getIndexByItem(q){return this._getToolbarItems().indexOf(q)}_itemOptionChanged(q,Z,X){super._itemOptionChanged.apply(this,[q,Z,X]),this._arrangeItems()}_optionChanged(q){var{name:Z}=q;switch(Z){case"width":super._optionChanged.apply(this,arguments),this._dimensionChanged();break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:super._optionChanged.apply(this,arguments)}}_dispose(){super._dispose(),clearTimeout(this._waitParentAnimationTimeout)}_updateDimensionsInMaterial(){(0,I.x2)()&&Promise.all([(()=>new Promise(q=>{var Z=()=>{var M=!0;return this.$element().parents().each((oe,fe)=>{if(y.Z.isAnimating((0,c.Z)(fe)))return M=!1,!1}),M&&q(),M},X=()=>{clearTimeout(this._waitParentAnimationTimeout),this._waitParentAnimationTimeout=setTimeout(()=>Z()||X(),15)};X()}))(),(()=>{var q=this.$element().find(".".concat(R)),Z=[];return q.each((X,M)=>{var oe=(0,c.Z)(M).text(),fe=(0,c.Z)(M).css("fontWeight");Z.push((0,I.Ih)(oe,fe))}),Promise.all(Z)})()]).then(()=>{this._dimensionChanged()})}}(0,g.Z)("dxToolbarBase",j);const ee=j},974:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>v});var o=u(9904),c=u(1031),I=u(8506),C=u(5873),g=u(4514),a=u(3553),h=c.Z.inherit({_getDefaultOptions:function(){return(0,C.l)(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=(0,o.Z)("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=(0,o.Z)("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=(0,o.Z)("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var x=this.option("value"),b=this.option("min"),y=this.option("max");if(!(b>y)){if(x<b)return this.option("value",b),void(this._currentRatio=0);if(x>y)return this.option("value",y),void(this._currentRatio=1);var E=b===y?0:(x-b)/(y-b);!this._needPreventAnimation&&this._setRangeStyles({width:100*E+"%"}),this.setAria({valuemin:this.option("min"),valuemax:y,valuenow:x}),this._currentRatio=E}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(x){a.Z.stop(this._$range),x?this._needPreventAnimation||!(0,g.Ym)()||a.Z.animate(this._$range,{type:"custom",duration:100,to:x}):this._$range.css({width:0})},_optionChanged:function(x){switch(x.name){case"value":this._renderValue(),this.callBase(x);break;case"max":case"min":this._renderValue();break;default:this.callBase(x)}},_dispose:function(){a.Z.stop(this._$range),this.callBase()}});(0,I.Z)("dxTrackBar",h);const v=h},7463:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>c});const c=u(3520).Z},3520:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>te});var o=u(9904),c=u(8506),I=u(2589),C=u(3447),g=u(5873),a=u(1805),p=u(9897),s=u(913),l=u(9009),d=u(227),h=u(7674),v=u(4514),x=u(1828),b=u(2718),y=u(6881),E=u(344),S=u(355),O=u(8225),w=u(8690),T=u(1384),k=u(3553),R=u(8487),P=u(1427),B=u(4270),W=u(4505),z=u(7616),V=u(3433),U="dx-treeview",K="".concat(U,"-node"),Y="".concat(K,"-container"),J="".concat(K,"-loadindicator"),j="".concat(K,"-container-opened"),ee="".concat(K,"-is-leaf"),G="".concat(U,"-item"),q="".concat(G,"-with-checkbox"),Z="".concat(G,"-without-checkbox"),X="".concat(G,"-data"),M="".concat(U,"-toggle-item-visibility"),oe="".concat(U,"-loadindicator"),fe="".concat(U,"-loadindicator-wrapper"),Te="".concat(U,"-toggle-item-visibility-opened"),Be="".concat(U,"-select-all-item"),ze="dx-state-invisible",ae="dx-state-disabled",ye="dxTreeView_expand",ne="data-item-id";const le=S.Z.inherit({_supportedKeys:function(ie){var ue=Ne=>{var mt=(0,o.Z)(this.option("focusedElement"));mt.length&&(Ne.target=mt,Ne.currentTarget=mt,this._itemClickHandler(Ne,mt.children("."+G)),this._getEventNameByOption(this.option("expandEvent"))===(0,O.V4)(d.u,ye)&&this._expandEventHandler(Ne))},be=Ne=>{Ne.preventDefault();var mt=(0,o.Z)(this.option("focusedElement")),tt=this._getCheckBoxInstance(mt);if(!tt.option("disabled")){var Le=tt.option("value");this._updateItemSelection(!Le,mt.find("."+G).get(0),!0)}},Ae=function(Ne,mt){if(this.option("expandAllEnabled")){mt.preventDefault();var tt=(0,o.Z)(this.option("focusedElement"));if(tt.length){var Le=this._getItemData(tt.find(".".concat(G)));this._toggleExpandedNestedItems([Le],Ne)}}};return(0,g.l)(this.callBase(),{enter:this._showCheckboxes()?be:ue,space:this._showCheckboxes()?be:ue,asterisk:Ae.bind(this,!0),minus:Ae.bind(this,!1)})},_toggleExpandedNestedItems:function(ie,ue){if(ie)for(var be=0,Ae=ie.length;be<Ae;be++){var Ne=ie[be],mt=this._dataAdapter.getNodeByItem(Ne);this._toggleExpandedState(mt,ue),this._toggleExpandedNestedItems(Ne.items,ue)}},_getNodeElement:function(ie,ue){var be=this._encodeString(ie.internalFields.key);if(ue)return ue.$nodeByKey||(ue.$nodeByKey={},this.$element().find(".".concat(K)).each(function(){var Ne=(0,o.Z)(this),mt=Ne.attr(ne);ue.$nodeByKey[mt]=Ne})),ue.$nodeByKey[be]||(0,o.Z)();var Ae=this.$element().get(0).querySelector("[".concat(ne,'="').concat(be,'"]'));return(0,o.Z)(Ae)},_activeStateUnit:"."+G,_widgetClass:function(){return U},_getDefaultOptions:function(){var ie=(0,g.l)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:l.Z.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",useNativeScrolling:!0,virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null});return(0,g.l)(!0,ie,{integrationOptions:{useDeferUpdateForTemplates:!1}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!W.nativeScrolling},options:{useNativeScrolling:!1}}])},_initSelectedItems:h.ZT,_syncSelectionOptions:h.C$,_fireSelectionChanged:function(){(0,B.gx)(this._selectionChangePromise).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(ie){this._selectAllValueChangedAction({value:ie})},_checkBoxModeChange:function(ie,ue){if("none"!==ue&&"none"!==ie){var be=this._$selectAllItem&&this._$selectAllItem.length;switch(ie){case"selectAll":be||(this._createSelectAllValueChangedAction(),this._renderSelectAllItem());break;case"normal":be&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var ie=this;(0,b.S6)(this._dataAdapter.getFullData(),function(ue,be){ie._hasChildren(be)&&ie._dataAdapter.toggleSelection(be.internalFields.key,!1,!0)})},_optionChanged:function(ie){var{name:ue,value:be,previousValue:Ae}=ie;switch(ue){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",be);break;case"showCheckBoxesMode":this._checkBoxModeChange(be,Ae);break;case"scrollDirection":this.getScrollable().option("direction",be);break;case"useNativeScrolling":this.getScrollable().option("useNative",be);break;case"items":delete this._$selectAllItem,this.callBase(ie);break;case"dataSource":this.callBase(ie),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(ie);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",ie.value),this.repaint();break;default:this.callBase(ie)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(ie){ie&&ie.length&&this.option("items",ie)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var ie=this._filter;ie.custom||(ie.custom=this._dataSource.filter()),ie.internal||(ie.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,x.mf)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(ie){var ue=this.option("createChildren").call(this,ie);return Array.isArray(ue)?(new B.BH).resolve(ue).promise():ue&&(0,x.mf)(ue.then)?(0,B.p4)(ue):(new B.BH).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(ie){var ue=this.option("items");this._initialized&&this._isVirtualMode()&&ue.length||this.option("items",ie)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,o.Z)("<div>").addClass(oe),this._createComponent(this._treeViewLoadIndicator,P.Z,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(ie){var ue;if(this._isVirtualMode()&&(ue=this._combineFilter(),this._dataSource.filter(ue)),ie&&!this._dataSource.isLoaded()){this.option("items",[]);var be=(0,o.Z)("<div>").addClass(fe);this._createTreeViewLoadIndicator().appendTo(be),this.itemsContainer().append(be),this._isVirtualMode()&&this._dataSource.filter()!==ue&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",ie=>{this.option().items=this.option("items").concat(ie),this._dataAdapter.addItem(ie),this._dataAdapter.isFiltered(ie)&&this._updateLevel(this._parentIdGetter(ie))}).on("removed",ie=>{var ue=this._dataAdapter.getNodeByKey(ie);(0,x.$K)(ue)&&(this.option("items")[this._dataAdapter.getIndexByKey(ue.internalFields.key)]=0,this._markChildrenItemsToRemove(ue),this._removeItems(),this._dataAdapter.removeItem(ie),this._updateLevel(this._parentIdGetter(ue)))})},_markChildrenItemsToRemove:function(ie){(0,b.S6)(ie.internalFields.childrenKeys,(be,Ae)=>{this.option("items")[this._dataAdapter.getIndexByKey(Ae)]=0,this._markChildrenItemsToRemove(this._dataAdapter.getNodeByKey(Ae))})},_removeItems:function(){var ie=(0,g.l)(!0,[],this.option("items")),ue=0;(0,b.S6)(ie,(be,Ae)=>{Ae||(this.option("items").splice(be-ue,1),ue++)})},_updateLevel:function(ie){var ue=this._getContainerByParentKey(ie);this._renderItems(ue,this._dataAdapter.getChildrenNodes(ie))},_getOldContainer:function(ie){if(ie.length)return ie.children(".".concat(Y));var ue=this.getScrollable();return ue?(0,o.Z)(ue.content()).children():(0,o.Z)()},_getContainerByParentKey:function(ie){var ue=this._dataAdapter.getNodeByKey(ie),be=ue?this._getNodeElement(ue):[];this._getOldContainer(be).remove();var Ae=this._renderNodeContainer(be);if(this._isRootLevel(ie)){var Ne=this.getScrollable();Ne||this._renderScrollableContainer(),(0,o.Z)(Ne.content()).append(Ae)}return Ae},_isRootLevel:function(ie){return ie===this.option("rootValue")},_getAccessors:function(){var ie=this.callBase();return ie.push("hasItems"),ie},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var ie=this._renderNodeContainer();(0,o.Z)(this.getScrollable().content()).append(ie),this.option("items")&&this.option("items").length&&(this._renderItems(ie,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(ie)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var ie=this.getDataSource(),ue=ie&&!ie.isLoaded()||this._skipContentReadyAndItemExpanded,be=this.getScrollable();be&&(0,v.Ym)()&&be.update(),ue||this.callBase(),be&&(0,v.Ym)()&&be.update()},_renderScrollableContainer:function(){this._scrollable=this._createComponent((0,o.Z)("<div>").appendTo(this.$element()),R.Z,{useNative:this.option("useNativeScrolling"),direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(ie){var ue=(0,o.Z)("<ul>").addClass(Y);if(this.setAria("role","group",ue),ie&&ie.length){var be=this._getItemData(ie.children("."+G));this._expandedGetter(be)&&ue.addClass(j),ue.appendTo(ie)}return ue},_createDOMElement:function(ie,ue){var be=(0,o.Z)("<li>").addClass(K).attr(ne,this._encodeString(ue.internalFields.key)).prependTo(ie);return this.setAria({role:"treeitem",label:this._displayGetter(ue.internalFields.item)||"",expanded:ue.internalFields.expanded||!1,level:this._getLevel(ie)},be),be},_getLevel:function(ie){var ue=ie.parent();return ue.hasClass("dx-scrollable-content")?1:parseInt(ue.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(ie,ue){for(var Ae=ue.length-1;Ae>=0;Ae--)this._renderItem(Ae,ue[Ae],ie);this._renderedItemsCount+=ue.length},_renderItem:function(ie,ue,be){var Ae=this._createDOMElement(be,ue),Ne=ue.internalFields,mt=this._showCheckboxes();Ae.addClass(mt?q:Z),Ae.toggleClass(ze,!1===Ne.item.visible),mt&&this._renderCheckBox(Ae,ue),this.setAria("selected",Ne.selected,Ae),this._toggleSelectedClass(Ae,Ne.selected),this.callBase(this._renderedItemsCount+ie,Ne.item,Ae),!1!==Ne.item.visible&&this._renderChildren(Ae,ue)},_setAriaSelected:function(){},_renderChildren:function(ie,ue){this._hasChildren(ue)?(this._renderToggleItemVisibilityIcon(ie,ue),(!this.option("deferRendering")||ue.internalFields.expanded)&&this._loadSublevel(ue).done(be=>{this._renderSublevel(ie,this._getActualNode(ue),be)})):this._addLeafClass(ie)},_getActualNode:function(ie){return this._dataAdapter.getNodeByKey(ie.internalFields.key)},_hasChildren:function(ie){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(ie.internalFields.item):this.callBase(ie)},_loadSublevel:function(ie){var ue=new B.BH,be=this._getChildNodes(ie);return be.length?ue.resolve(be):this._loadNestedItems(ie).done(Ae=>{ue.resolve(this._dataAdapter.getNodesByItems(Ae))}),ue.promise()},_renderSublevel:function(ie,ue,be){var Ae=this._renderNodeContainer(ie,ue),Ne=be.filter(tt=>-1!==ue.internalFields.childrenKeys.indexOf(tt.internalFields.key));if(this._renderItems(Ae,Ne),Ne.length&&!ue.internalFields.selected){var mt=Ne[0];this._updateParentsState(mt,this._getNodeElement(mt))}this._normalizeIconState(ie,Ne.length),ue.internalFields.expanded&&Ae.addClass(j)},_executeItemRenderAction:function(ie,ue,be){var Ae=this._getNode(be);this._getItemRenderAction()({itemElement:be,itemIndex:ie,itemData:ue,node:this._dataAdapter.getPublicNode(Ae)})},_addLeafClass:function(ie){ie.addClass(ee)},_expandEventHandler:function(ie){(0,o.Z)(ie.currentTarget.parentNode).hasClass(ee)||this._toggleExpandedState(ie.currentTarget,void 0,ie)},_initExpandEvent:function(){var ie=this._getEventNameByOption(this.option("expandEvent")),ue=this._itemContainer(),be=this._itemSelector();s.Z.off(ue,"."+ye,be),s.Z.on(ue,ie,be,this._expandEventHandler.bind(this))},_getEventNameByOption:function(ie){return(0,O.V4)("click"===ie?d.u:T.u,ye)},_getNode:function(ie){if(!(0,x.$K)(ie))return null;if(ie.internalFields)return ie;if((0,x.pt)(ie))return this._dataAdapter.getNodeByKey(ie);var ue=(0,o.Z)(ie).get(0);return ue?p.Z.isElementNode(ue)?this._getNodeByElement(ue):this._dataAdapter.getNodeByItem(ue):null},_getNodeByElement:function(ie){var ue=(0,o.Z)(ie).closest("."+K),be=this._decodeString(ue.attr(ne));return this._dataAdapter.getNodeByKey(be)},_toggleExpandedState:function(ie,ue,be){var Ae=this._getNode(ie);if(!Ae)return(new B.BH).reject().promise();if(Ae.internalFields.disabled)return(new B.BH).reject().promise();var Ne=Ae.internalFields.expanded;if(Ne===ue)return(new B.BH).resolve().promise();if(this._hasChildren(Ae)){var mt=this._getNodeElement(Ae);if(mt.find(".".concat(J,":not(.").concat(ze,")")).length)return(new B.BH).reject().promise();this._createLoadIndicator(mt)}return(0,x.$K)(ue)||(ue=!Ne),this._dataAdapter.toggleExpansion(Ae.internalFields.key,ue),this._updateExpandedItemsUI(Ae,ue,be)},_createLoadIndicator:function(ie){var ue=ie.children("."+M),be=ie.children(".".concat(Y));ue.hasClass(Te)||be.not(":empty").length||(this._createComponent((0,o.Z)("<div>").addClass(J),P.Z,{}).$element().appendTo(ie),ue.hide())},_renderToggleItemVisibilityIcon:function(ie,ue){var be=(0,o.Z)("<div>").addClass(M).appendTo(ie);ue.internalFields.expanded&&(be.addClass(Te),ie.parent().addClass(j)),ue.internalFields.disabled&&be.addClass(ae),this._renderToggleItemVisibilityIconClick(be,ue)},_renderToggleItemVisibilityIconClick:function(ie,ue){var be=(0,O.V4)(d.u,this.NAME);s.Z.off(ie,be),s.Z.on(ie,be,Ae=>{this._toggleExpandedState(ue.internalFields.key,void 0,Ae)})},_updateExpandedItemsUI:function(ie,ue,be){var Ae=this._getNodeElement(ie),Ne=!Ae.length||ue&&Ae.is(":hidden");if(this.option("expandNodesRecursive")&&Ne){var mt=this._getNode(ie.internalFields.parentKey);mt&&this._updateExpandedItemsUI(mt,ue,be)}var tt=Ae.children("."+M),Le=Ae.children(".".concat(Y));tt.toggleClass(Te,ue);var gt=Le.length>0,tn=new B.BH;return!ue||gt&&!Le.is(":empty")?(this._animateNodeContainer(ie,ue,be,tn),tn.promise()):0===ie.internalFields.childrenKeys.length&&(this._isVirtualMode()||this._useCustomChildrenLoader())?(this._loadNestedItemsWithUpdate(ie,ue,be,tn),tn.promise()):(this._renderSublevel(Ae,ie,this._getChildNodes(ie)),this._fireContentReadyAction(),this._animateNodeContainer(ie,ue,be,tn),tn.promise())},_loadNestedItemsWithUpdate:function(ie,ue,be,Ae){var Ne=this._getNodeElement(ie);this._loadNestedItems(ie).done(mt=>{var tt=this._getActualNode(ie);this._renderSublevel(Ne,tt,this._dataAdapter.getNodesByItems(mt)),mt&&mt.length?(this._fireContentReadyAction(),this._animateNodeContainer(tt,ue,be,Ae)):Ae.resolve()})},_loadNestedItems:function(ie){if(this._useCustomChildrenLoader()){var ue=this._dataAdapter.getPublicNode(ie);return this._loadChildrenByCustomLoader(ue).done(be=>{this._areNodesExists(be)||this._appendItems(be)})}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),ie.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done(be=>{this._areNodesExists(be)||this._appendItems(be)})):(new B.BH).resolve([]).promise()},_areNodesExists:function(ie,ue){var be=this.keyOf(ie[0]),Ae=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(be,Ae)},_appendItems:function(ie){this.option().items=this.option("items").concat(ie),this._initDataAdapter()},_animateNodeContainer:function(ie,ue,be,Ae){var Ne=this._getNodeElement(ie),mt=Ne.children(".".concat(Y));ie&&Ae&&0===mt.length&&Ae.resolve(),mt.addClass(j);var tt=(0,a.Cr)(mt);k.Z.stop(mt,!0),k.Z.animate(mt,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:ue?0:tt},to:{maxHeight:ue?tt:0},complete:function(){mt.css("maxHeight","none"),mt.toggleClass(j,ue),this.setAria("expanded",ue,Ne),this.getScrollable().update(),this._fireExpandedStateUpdatedEvent(ue,ie,be),Ae&&Ae.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(ie,ue,be){if(this._hasChildren(ue)&&!this._skipContentReadyAndItemExpanded){var Ae=ie?"onItemExpanded":"onItemCollapsed";if((0,x.$K)(be))this._itemDXEventHandler(be,Ae,{node:this._dataAdapter.getPublicNode(ue)});else{var Ne=this._getNodeElement(ue);this._itemEventHandler(Ne,Ae,{event:be,node:this._dataAdapter.getPublicNode(ue)})}}},_normalizeIconState:function(ie,ue){var Ae,be=ie.find(".".concat(J));be.length&&(null===(Ae=P.Z.getInstance(be))||void 0===Ae||Ae.option("visible",!1));var Ne=ie.find(".".concat(M));ue?Ne.show():(Ne.removeClass(M),ie.addClass(ee))},_emptyMessageContainer:function(){var ie=this.getScrollable();return ie?(0,o.Z)(ie.content()):this.callBase()},_renderContent:function(){var ie=this.option("items");ie&&ie.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(ie){ie=ie||this.$element().find(".".concat(Y)).first(),this._$selectAllItem=(0,o.Z)("<div>").addClass(Be);var ue=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,E.Z,{value:ue,tabIndex:1,text:this.option("selectAllText"),onValueChanged:this._onSelectAllCheckboxValueChanged.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,ue),ie.before(this._$selectAllItem)},_onSelectAllCheckboxValueChanged:function(ie){this._toggleSelectAll(ie),this._fireSelectAllValueChanged(ie.value)},_toggleSelectAll:function(ie){this._dataAdapter.toggleSelectAll(ie.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(ie,ue){var be=(0,o.Z)("<div>").appendTo(ie);this._createComponent(be,E.Z,{value:ue.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(ue)})},_toggleSelectedClass:function(ie,ue){ie.toggleClass("dx-state-selected",!!ue)},_toggleNodeDisabledState:function(ie,ue){var be=this._getNodeElement(ie),Ae=be.find("."+G).eq(0);this._dataAdapter.toggleNodeDisabledState(ie.internalFields.key,ue),Ae.toggleClass(ae,!!ue),this._showCheckboxes()&&this._getCheckBoxInstance(be).option("disabled",!!ue)},_itemOptionChanged:function(ie,ue,be){var Ae=this._dataAdapter.getNodeByItem(ie);ue===this.option("disabledExpr")&&this._toggleNodeDisabledState(Ae,be)},_changeCheckboxValue:function(ie){var be=(0,o.Z)(ie.element).parent("."+K).children("."+G),Ae=this._getItemData(be),Ne=this._getNodeByElement(be),mt=ie.value;Ne&&Ne.internalFields.selected===mt||this._updateItemSelection(mt,Ae,ie.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(ie,ue,be){var Ae=ue.indexOf(ie.key);return Ae>=0&&ue.splice(Ae,1),be&&(0,b.S6)(ie.children,function(Ne,mt){this._isLastSelectedBranch(mt,ue,!0)}.bind(this)),ie.parent&&this._isLastSelectedBranch(ie.parent,ue),0===ue.length},_isLastRequired:function(ie){var ue=this.option("selectionRequired"),be=this._isSingleSelection(),Ae=this.getSelectedNodeKeys();if(ue)return be?1===Ae.length:this._isLastSelectedBranch(ie.internalFields.publicNode,Ae.slice(),!0)},_updateItemSelection:function(ie,ue,be){var Ae=this._getNode(ue);if(!Ae||!1===Ae.visible)return!1;if(Ae.internalFields.selected===ie)return!0;if(!ie&&this._isLastRequired(Ae)){if(this._showCheckboxes()){var Ne=this._getNodeElement(Ae);this._getCheckBoxInstance(Ne).option("value",!0)}return!1}if(ie&&this._isSingleSelection()){var mt=this.getSelectedNodeKeys();(0,b.S6)(mt,(gt,tn)=>{this._dataAdapter.toggleSelection(tn,!1),this._updateItemsUI(),this._fireItemSelectionChanged(this._getNode(tn))})}this._dataAdapter.toggleSelection(Ae.internalFields.key,ie);var tt=this._dataAdapter.isAllSelected(),Le=this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value")!==tt;return this._updateItemsUI(),this._fireItemSelectionChanged(Ae,be),this._fireSelectionChanged(),Le&&this._fireSelectAllValueChanged(tt),!0},_fireItemSelectionChanged:function(ie,ue){var be=ue||this._findItemElementByItem(ie.internalFields.item);(ue?this._itemDXEventHandler:this._itemEventHandler).call(this,be,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(ie),itemData:ie.internalFields.item})},_getCheckBoxInstance:function(ie){return ie.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var ie={};if((0,b.S6)(this._dataAdapter.getData(),(be,Ae)=>{var Ne=this._getNodeElement(Ae,ie),mt=Ae.internalFields.selected;Ne.length&&(this._toggleSelectedClass(Ne,mt),this.setAria("selected",mt,Ne),this._showCheckboxes()&&this._getCheckBoxInstance(Ne).option("value",mt))}),this._selectAllEnabled()){var ue=this._$selectAllItem.dxCheckBox("instance");ue.option("onValueChanged",void 0),ue.option("value",this._dataAdapter.isAllSelected()),ue.option("onValueChanged",this._onSelectAllCheckboxValueChanged.bind(this))}},_updateParentsState:function(ie,ue){if(ue){var be=this._dataAdapter.getNodeByKey(ie.internalFields.parentKey),Ae=(0,o.Z)(ue.parents("."+K)[0]);if(this._showCheckboxes()){var Ne=be.internalFields.selected;this._getCheckBoxInstance(Ae).option("value",Ne),this._toggleSelectedClass(Ae,Ne)}be.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(be,Ae)}},_itemEventHandlerImpl:function(ie,ue,be){var Ae=(0,o.Z)(ie).closest("."+K).children("."+G);return ue((0,g.l)(this._extendActionArgs(Ae),be))},_itemContextMenuHandler:function(ie){this._createEventHandler("onItemContextMenu",ie)},_itemHoldHandler:function(ie){this._createEventHandler("onItemHold",ie)},_createEventHandler:function(ie,ue){var be=this._getNodeByElement(ue.currentTarget);this._itemDXEventHandler(ue,ie,{node:this._dataAdapter.getPublicNode(be)})},_itemClass:function(){return G},_itemDataKey:function(){return X},_attachClickEvent:function(){var ie="."+this._itemClass(),ue="."+K+", ."+Be,be=(0,O.V4)(d.u,this.NAME),Ae=(0,O.V4)(w.Z.down,this.NAME),Ne=this._itemContainer(),mt=this;s.Z.off(Ne,be,ie),s.Z.off(Ne,Ae,ue),s.Z.on(Ne,be,ie,function(tt){mt._itemClickHandler(tt,(0,o.Z)(this))}),s.Z.on(Ne,Ae,ue,function(tt){mt._itemPointerDownHandler(tt)})},_itemClickHandler:function(ie,ue){var be=this._getItemData(ue),Ae=this._getNodeByElement(ue);this._itemDXEventHandler(ie,"onItemClick",{node:this._dataAdapter.getPublicNode(Ae)}),this.option("selectByClick")&&!ie.isDefaultPrevented()&&this._updateItemSelection(!Ae.internalFields.selected,be,ie)},_updateSelectionToFirstItem:function(ie,ue){for(var be=ue;be>=0;){var Ae=(0,o.Z)(ie[be]);this._updateItemSelection(!0,Ae.find("."+G).get(0)),be--}},_updateSelectionToLastItem:function(ie,ue){for(var be=ie.length,Ae=ue;Ae<be;){var Ne=(0,o.Z)(ie[Ae]);this._updateItemSelection(!0,Ne.find("."+G).get(0)),Ae++}},_focusInHandler:function(ie){this._updateFocusState(ie,!0);var ue=(0,o.Z)(ie.target).hasClass(Be);if(ue||this.option("focusedElement")){clearTimeout(this._setFocusedItemTimeout);var be=ue?(0,y.u)(this._$selectAllItem):(0,o.Z)(this.option("focusedElement"));this._setFocusedItemTimeout=setTimeout(()=>{this._setFocusedItem(be)})}else{var Ae=this._getActiveItem();this.option("focusedElement",(0,y.u)(Ae.closest("."+K)))}},_setFocusedItem:function(ie){!ie||!ie.length||ie.children().hasClass(ae)||this.callBase(ie)},_itemPointerDownHandler:function(ie){if(this.option("focusStateEnabled")){var ue=(0,o.Z)(ie.target).closest("."+K+", ."+Be);if(ue.length){var be=ue.hasClass(ae)?null:ue;this.option("focusedElement",(0,y.u)(be))}}},_findNonDisabledNodes:function(ie){return ie.not(function(){return(0,o.Z)(this).children("."+G).hasClass(ae)})},_moveFocus:function(ie,ue){var be="up",Ae="down",Ne="first",mt="last",tt=this.option("rtlEnabled")?"right":"left",Le=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(Y)).each(function(){k.Z.stop(this,!0)});var gt=this._findNonDisabledNodes(this._nodeElements());if(gt&&gt.length)switch(ie){case be:var tn=this._prevItem(gt);this.option("focusedElement",(0,y.u)(tn));var Pe=this._getNodeItemElement(tn);this.getScrollable().scrollToElement(Pe),ue.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,Pe);break;case Ae:var $e=this._nextItem(gt);this.option("focusedElement",(0,y.u)($e));var ge=this._getNodeItemElement($e);this.getScrollable().scrollToElement(ge),ue.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,ge);break;case Ne:var Ce=gt.first();ue.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(gt,gt.index(this._prevItem(gt))),this.option("focusedElement",(0,y.u)(Ce)),this.getScrollable().scrollToElement(this._getNodeItemElement(Ce));break;case mt:var De=gt.last();ue.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(gt,gt.index(this._nextItem(gt))),this.option("focusedElement",(0,y.u)(De)),this.getScrollable().scrollToElement(this._getNodeItemElement(De));break;case Le:this._expandFocusedContainer();break;case tt:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(ie){return ie.find("."+G).get(0)},_nodeElements:function(){return this.$element().find("."+K).not(":hidden")},_expandFocusedContainer:function(){var ie=(0,o.Z)(this.option("focusedElement"));if(ie.length&&!ie.hasClass(ee)){if(ie.find(".".concat(Y)).eq(0).hasClass(j)){var be=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,y.u)(be)),void this.getScrollable().scrollToElement(this._getNodeItemElement(be))}var Ae=this._getNodeByElement(ie.children("."+G));this._toggleExpandedState(Ae,!0)}},_getClosestNonDisabledNode:function(ie){do{ie=ie.parent().closest("."+K)}while(ie.children(".dx-treeview-item.dx-state-disabled").length);return ie},_collapseFocusedContainer:function(){var ie=(0,o.Z)(this.option("focusedElement"));if(ie.length){var ue=ie.find(".".concat(Y)).eq(0);if(!ie.hasClass(ee)&&ue.hasClass(j)){var be=this._getNodeByElement(ie.children("."+G));this._toggleExpandedState(be,!1)}else{var Ae=this._getClosestNonDisabledNode(ie);Ae.length&&this.option("focusedElement",(0,y.u)(Ae)),this.getScrollable().scrollToElement(this._getNodeItemElement(Ae))}}},_encodeString:function(ie){return(0,x.HD)(ie)?encodeURI(ie):ie},_decodeString:function(ie){return(0,x.HD)(ie)?decodeURI(ie):ie},getScrollable:function(){return this._scrollable},updateDimensions:function(){var ie=new B.BH,ue=this.getScrollable();return ue?ue.update().done(()=>{ie.resolveWith(this)}):ie.resolveWith(this),ie.promise()},selectItem:function(ie){return this._updateItemSelection(!0,ie)},unselectItem:function(ie){return this._updateItemSelection(!1,ie)},expandItem:function(ie){return this._toggleExpandedState(ie,!0)},collapseItem:function(ie){return this._toggleExpandedState(ie,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){return this.getSelectedNodeKeys().map(ie=>{var ue=this._dataAdapter.getNodeByKey(ie);return this._dataAdapter.getPublicNode(ue)})},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},_allItemsExpandedHandler:function(){this._skipContentReadyAndItemExpanded=!1,this._fireContentReadyAction()},expandAll:function(){var ie=this._dataAdapter.getData(),ue=[];this._skipContentReadyAndItemExpanded=!0,ie.forEach(be=>ue.push(this._toggleExpandedState(be.internalFields.key,!0))),Promise.allSettled(ue).then(()=>{var be;return null===(be=this._allItemsExpanded)||void 0===be?void 0:be.call(this)})},collapseAll:function(){(0,b.S6)(this._dataAdapter.getExpandedNodesKeys(),function(ie,ue){this._toggleExpandedState(ue,!1)}.bind(this))},scrollToItem:function(ie){var ue=this._getNode(ie);if(!ue)return(new B.BH).reject().promise();for(var be=[],Ae=ue.internalFields.publicNode.parent;null!=Ae;)Ae.expanded||be.push(Ae.key),Ae=Ae.parent;var Ne=new B.BH;return this._expandNodes(be.reverse()).always(()=>{var mt=this._getNodeElement(ue);mt&&mt.length?(this.scrollToElementTopLeft(mt.get(0)),Ne.resolve()):Ne.reject()}),Ne.promise()},scrollToElementTopLeft:function(ie){var ue=this.getScrollable(),{scrollDirection:be,rtlEnabled:Ae}=this.option(),Ne={top:0,left:0},mt=(0,z.d)(V.hj,ie);if(be!==V.Et){var tt=(0,o.Z)(ue.container()).get(0);Ne.left=Ae?mt.left+ie.offsetWidth-tt.clientWidth:mt.left}be!==V.Xv&&(Ne.top=mt.top),ue.scrollTo(Ne)},_expandNodes:function(ie){if(!ie||0===ie.length)return(new B.BH).resolve().promise();var ue=new B.BH,be=ie.map(Ae=>this.expandItem(Ae));return B.gx.apply(o.Z,be).done(()=>ue.resolve()).fail(()=>ue.reject()),ue.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout),this._allItemsExpandedHandler=null}});I.Z.setEditorClass(C.Z);var pe="dx-treeview",Se="".concat(pe,"-node-container"),re=le.inherit(I.Z).inherit({_addWidgetPrefix:function(ie){return"".concat(pe,"-").concat(ie)},_optionChanged:function(ie){switch(ie.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer(),this.option("focusedElement",null);break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(ie)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,g.l)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var ie=this._getSearchEditorOptions();this._searchEditor.option(ie)}},_repaintContainer:function(){var ue,ie=this.$element().find(".".concat(Se)).first();ie.length&&(ie.empty(),ue=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(ue),this._renderItems(ie,ue),this._fireContentReadyAction())},_itemContainer:function(ie){return this._scrollable&&ie?(0,o.Z)(this._scrollable.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,c.Z)("dxTreeView",re);const te=re},3191:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>W});var o=u(5031),c=u(5873),I=u(2718),C=u(4562),g=u(9644),a=u(7674),p=u(1828),s=u(658),l=u(9009),d=u(4270);class v{constructor(){this.NAME="base"}defaultMessage(V){return l.Z.getFormatter("validation-".concat(this.NAME))(V)}defaultFormattedMessage(V){return l.Z.getFormatter("validation-".concat(this.NAME,"-formatted"))(V)}_isValueEmpty(V){return!R.required.validate(V,{})}validate(V,U){var K=Array.isArray(V)?V:[V],Y=!0;return K.length?K.every(J=>Y=this._validate(J,U)):Y=this._validate(null,U),Y}}class S extends v{constructor(){super(),this.NAME="custom"}validate(V,U){if(U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=U.validator,Y=K&&(0,p.mf)(K.option)&&K.option("dataGetter"),J=(0,p.mf)(Y)&&Y(),j={value:V,validator:K,rule:U};return J&&(0,c.l)(j,J),U.validationCallback(j)}}var R={required:new class x extends v{constructor(){super(),this.NAME="required"}_validate(V,U){return!(!(0,p.$K)(V)||!1===V)&&(V=String(V),(U.trim||!(0,p.$K)(U.trim))&&(V=V.trim()),""!==V)}},numeric:new class b extends v{constructor(){super(),this.NAME="numeric"}_validate(V,U){return!(!1===U.ignoreEmptyValue||!this._isValueEmpty(V))||(U.useCultureSettings&&(0,p.HD)(V)?!isNaN(s.Z.parse(V)):(0,p.kE)(V))}},range:new class y extends v{constructor(){super(),this.NAME="range"}_validate(V,U){if(!1!==U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=R.numeric.validate(V,U),Y=(0,p.$K)(V)&&""!==V,J=K?parseFloat(V):Y&&V.valueOf(),j=U.min,ee=U.max;if(!K&&!(0,p.J_)(V)&&!Y)return!1;if((0,p.$K)(j))return(0,p.$K)(ee)?J>=j&&J<=ee:J>=j;if((0,p.$K)(ee))return J<=ee;throw g.Z.Error("E0101")}},stringLength:new class E extends v{constructor(){super(),this.NAME="stringLength"}_validate(V,U){var K;return V=String(null!==(K=V)&&void 0!==K?K:""),(U.trim||!(0,p.$K)(U.trim))&&(V=V.trim()),!(!U.ignoreEmptyValue||!this._isValueEmpty(V))||R.range.validate(V.length,(0,c.l)({},U))}},custom:new S,async:new class O extends S{constructor(){super(),this.NAME="async"}validate(V,U){if((0,p.$K)(U.reevaluate)||(0,c.l)(U,{reevaluate:!0}),U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=U.validator,Y=K&&(0,p.mf)(K.option)&&K.option("dataGetter"),J=(0,p.mf)(Y)&&Y(),j={value:V,validator:K,rule:U};J&&(0,c.l)(j,J);var ee=U.validationCallback(j);if(!(0,p.tI)(ee))throw g.Z.Error("E0103");return this._getWrappedPromise((0,d.p4)(ee).promise())}_getWrappedPromise(V){var U=new d.BH;return V.then(function(K){U.resolve(K)},function(K){var Y={isValid:!1};(0,p.$K)(K)&&((0,p.HD)(K)?Y.message=K:(0,p.Kn)(K)&&(0,p.$K)(K.message)&&(0,p.HD)(K.message)&&(Y.message=K.message)),U.resolve(Y)}),U.promise()}},compare:new class w extends v{constructor(){super(),this.NAME="compare"}_validate(V,U){if(!U.comparisonTarget)throw g.Z.Error("E0102");if(U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;(0,c.l)(U,{reevaluate:!0});var K=U.comparisonTarget();switch(U.comparisonType||"=="){case"==":return V==K;case"!=":return V!=K;case"===":return V===K;case"!==":return V!==K;case">":return V>K;case">=":return V>=K;case"<":return V<K;case"<=":return V<=K}}},pattern:new class T extends v{constructor(){super(),this.NAME="pattern"}_validate(V,U){if(!1!==U.ignoreEmptyValue&&this._isValueEmpty(V))return!0;var K=U.pattern;return(0,p.HD)(K)&&(K=new RegExp(K)),K.test(V)}},email:new class k extends v{constructor(){super(),this.NAME="email"}_validate(V,U){return!(!1===U.ignoreEmptyValue||!this._isValueEmpty(V))||R.pattern.validate(V,(0,c.l)({},U,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}},P=o.Z.inherit({ctor(z){this.group=z,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new C.m(this)},validate(){var z={isValid:!0,brokenRules:[],validators:[],status:"valid",complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,I.S6)(this.validators,(V,U)=>{var K=U.validate();z.isValid=z.isValid&&K.isValid,K.brokenRules&&(z.brokenRules=z.brokenRules.concat(K.brokenRules)),z.validators.push(U),"pending"===K.status&&this._addPendingValidator(U),this._subscribeToChangeEvents(U)}),this._pendingValidators.length?z.status="pending":(z.status=z.isValid?"valid":"invalid",this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(z)),this._updateValidationInfo(z),(0,c.l)({},this._validationInfo.result)},_subscribeToChangeEvents(z){z.on("validating",this._onValidatorStatusChanged),z.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents(z){z.off("validating",this._onValidatorStatusChanged),z.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents(){(0,I.S6)(this.validators,(z,V)=>{this._unsubscribeFromChangeEvents(V)})},_updateValidationInfo(z){this._validationInfo.result=z,"pending"===z.status&&(this._validationInfo.deferred||(this._validationInfo.deferred=new d.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator(z){(0,a.h3)(this._pendingValidators,function(U){return U===z})[0]||this._pendingValidators.push(z)},_removePendingValidator(z){var V=this._pendingValidators.indexOf(z);V>=0&&this._pendingValidators.splice(V,1)},_orderBrokenRules(z){var V=[];return(0,I.S6)(this.validators,function(U,K){var Y=(0,a.h3)(z,function(J){return J.validator===K});Y.length&&(V=V.concat(Y))}),V},_updateBrokenRules(z){if(this._validationInfo.result){var V=this._validationInfo.result.brokenRules,U=(0,a.h3)(V,function(K){return K.validator!==z.validator});z.brokenRules&&(V=U.concat(z.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(V)}},_onValidatorStatusChanged(z){"pending"!==z.status?this._resolveIfComplete(z):this._addPendingValidator(z.validator)},_resolveIfComplete(z){if(this._removePendingValidator(z.validator),this._updateBrokenRules(z),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?"valid":"invalid",this._validationInfo.result.isValid="valid"===this._validationInfo.result.status;var V=(0,c.l)({},this._validationInfo.result,{complete:null}),U=this._validationInfo.deferred;this._validationInfo.deferred=null,this._raiseValidatedEvent(V),U&&setTimeout(()=>{U.resolve(V)})}},_raiseValidatedEvent(z){this._eventsStrategy.fireEvent("validated",[z])},_resetValidationInfo(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator(z){var V=this.validators.indexOf(z);V>-1&&(this.validators.splice(V,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:z}))},registerValidator(z){this.validators.includes(z)||(this.validators.push(z),this._synchronizeValidationInfo())},reset(){(0,I.S6)(this.validators,function(z,V){V.reset()}),this._pendingValidators=[],this._resetValidationInfo()},on(z,V){return this._eventsStrategy.on(z,V),this},off(z,V){return this._eventsStrategy.off(z,V),this}}),B={groups:[],getGroupConfig(z){var V=(0,a.h3)(this.groups,function(U){return U.group===z});if(V.length)return V[0]},findGroup(z,V){var U,K,J=(null===(U=z.data())||void 0===U||null===(K=U.dxComponents)||void 0===K?void 0:K.includes("dxValidationGroup"))&&z.dxValidationGroup("instance");if(J)return J;var j=z.parents(".dx-validationgroup").first();return j.length?j.dxValidationGroup("instance"):V},initGroups(){this.groups=[],this.addGroup()},addGroup(z){var V=this.getGroupConfig(z);return V||(V=new P(z),this.groups.push(V)),V},removeGroup(z){var V=this.getGroupConfig(z),U=this.groups.indexOf(V);return U>-1&&this.groups.splice(U,1),V},_setDefaultMessage(z){var{rule:V,validator:U,name:K}=z;(0,p.$K)(V.message)||(V.message=U.defaultFormattedMessage&&(0,p.$K)(K)?U.defaultFormattedMessage(K):U.defaultMessage())},_addBrokenRule(z){var{result:V,rule:U}=z;V.brokenRule||(V.brokenRule=U),V.brokenRules||(V.brokenRules=[]),V.brokenRules.push(U)},validate(z,V,U){var K,Y={name:U,value:z,brokenRule:null,brokenRules:null,isValid:!0,validationRules:V,pendingRules:null,status:"valid",complete:null},J=null==V||null===(K=V[0])||void 0===K?void 0:K.validator,j=[];return(0,I.S6)(V||[],(ee,G)=>{var Z,q=R[G.type];if(!q)throw g.Z.Error("E0100");return(0,p.$K)(G.isValid)&&G.value===z&&!G.reevaluate?!!G.isValid||(Y.isValid=!1,this._addBrokenRule({result:Y,rule:G}),!1):(G.value=z,"async"===G.type?(j.push({rule:G,ruleValidator:q}),!0):(Z=q.validate(z,G),G.isValid=Z,Z||(Y.isValid=!1,this._setDefaultMessage({rule:G,validator:q,name:U}),this._addBrokenRule({result:Y,rule:G})),!!G.isValid&&void 0))}),Y.isValid&&!Y.brokenRules&&j.length&&(Y=this._validateAsyncRules({value:z,items:j,result:Y,name:U})),this._synchronizeGroupValidationInfo(J,Y),Y.status=Y.pendingRules?"pending":Y.isValid?"valid":"invalid",Y},_synchronizeGroupValidationInfo(z,V){var U;if(z){var K=B.getGroupConfig(z._validationGroup);K._updateBrokenRules.call(K,{validator:z,brokenRules:null!==(U=V.brokenRules)&&void 0!==U?U:[]})}},_validateAsyncRules(z){var{result:V,value:U,items:K,name:Y}=z,J=[];return(0,I.S6)(K,(j,ee)=>{var G=ee.ruleValidator.validate(U,ee.rule);if((0,p.tI)(G)){V.pendingRules||(V.pendingRules=[]),V.pendingRules.push(ee.rule);var q=G.then(Z=>{var X=this._getPatchedRuleResult(Z);return this._updateRuleConfig({rule:ee.rule,ruleResult:X,validator:ee.ruleValidator,name:Y}),X});J.push(q)}else this._updateRuleConfig({rule:ee.rule,ruleResult:this._getPatchedRuleResult(G),validator:ee.ruleValidator,name:Y})}),J.length&&(V.complete=Promise.all(J).then(j=>this._getAsyncRulesResult({result:V,values:j}))),V},_updateRuleConfig(z){var{rule:V,ruleResult:U,validator:K,name:Y}=z;V.isValid=U.isValid,U.isValid||((0,p.$K)(U.message)&&(0,p.HD)(U.message)&&U.message.length?V.message=U.message:this._setDefaultMessage({rule:V,validator:K,name:Y}))},_getPatchedRuleResult(z){var V;return(0,p.Kn)(z)?(V=(0,c.l)({},z),(0,p.$K)(V.isValid)||(V.isValid=!0)):V={isValid:!(0,p.jn)(z)||z},V},_getAsyncRulesResult(z){var{values:V,result:U}=z;return(0,I.S6)(V,(K,Y)=>{!1===Y.isValid&&(U.isValid=Y.isValid,this._addBrokenRule({result:U,rule:U.pendingRules[K]}))}),U.pendingRules=null,U.complete=null,U.status=U.isValid?"valid":"invalid",U},registerValidatorInGroup(z,V){var U=B.addGroup(z);U.registerValidator.call(U,V)},_shouldRemoveGroup:(z,V)=>!(void 0===z||z&&"dxValidationGroup"===z.NAME||V.length),removeRegisteredValidator(z,V){var U=B.getGroupConfig(z);U&&(U.removeRegisteredValidator.call(U,V),this._shouldRemoveGroup(z,U.validators)&&this.removeGroup(z))},initValidationOptions(z){var V={};return z&&["isValid","validationStatus","validationError","validationErrors"].forEach(U=>{U in z&&(0,c.l)(V,this.synchronizeValidationOptions({name:U,value:z[U]},z))}),V},synchronizeValidationOptions(z,V){var{name:U,value:K}=z;switch(U){case"validationStatus":var Y="valid"===K||"pending"===K;return V.isValid!==Y?{isValid:Y}:{};case"isValid":var{validationStatus:J}=V,j=J;return K&&"invalid"===J?j="valid":!K&&"invalid"!==J&&(j="invalid"),j!==J?{validationStatus:j}:{};case"validationErrors":var ee=K&&K.length?K[0]:null;return V.validationError!==ee?{validationError:ee}:{};case"validationError":var{validationErrors:G}=V;if(!K&&G)return{validationErrors:null};if(K&&!G)return{validationErrors:[K]};if(K&&G&&K!==G[0])return G[0]=K,{validationErrors:G.slice()}}return{}},validateGroup(z){var V=B.getGroupConfig(z);if(!V)throw g.Z.Error("E0110");return V.validate()},resetGroup(z){var V=B.getGroupConfig(z);if(!V)throw g.Z.Error("E0110");return V.reset()}};B.initGroups();const W=B},4510:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>h});var o=u(9904),c=u(8506),I=u(8893),C=u(8493),g=u(3191),a=u(9109),p="dx-validationgroup";class d extends I.Z{_getDefaultOptions(){return super._getDefaultOptions()}_init(){super._init(),g.Z.addGroup(this)}_initMarkup(){var x=this.$element();x.addClass(p),x.find(".".concat("dx-validator")).each(function(b,y){a.Z.getInstance((0,o.Z)(y))._initGroupRegistration()}),x.find(".".concat("dx-validationsummary")).each(function(b,y){C.Z.getInstance((0,o.Z)(y)).refreshValidationGroup()}),super._initMarkup()}validate(){return g.Z.validateGroup(this)}reset(){return g.Z.resetGroup(this)}_dispose(){g.Z.removeGroup(this),this.$element().removeClass(p),super._dispose()}_useTemplates(){return!1}}(0,c.Z)("dxValidationGroup",d);const h=d},8785:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>y});var o=u(4817),c=u(1805),I=u(9904),C=u(8506),g=u(3576),a=u(5873),p=u(9589),s=u(5450),l="dx-invalid-message",b=g.Z.inherit({_getDefaultOptions(){return(0,a.l)(this.callBase(),{integrationOptions:{},templatesRenderAsynchronously:!1,shading:!1,width:"auto",height:"auto",hideOnOutsideClick:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1,rtlEnabled:!1,contentTemplate:this._renderInnerHtml,maxWidth:"100%",container:this.$element(),target:void 0,mode:"auto",validationErrors:void 0,positionSide:"top",boundary:void 0,offset:{h:0,v:0},contentId:void 0})},_init(){this.callBase(),this.updateMaxWidth(),this._updatePosition()},_initMarkup(){this.callBase(),this._ensureMessageNotEmpty(),this._updatePositionByTarget(),this._toggleModeClass(),this._updateContentId()},_updatePositionByTarget:function(){var{target:E}=this.option();this.option("position.of",E)},_ensureMessageNotEmpty:function(){this._textMarkup=this._getTextMarkup();var E=this.option("visible")&&this._textMarkup;this._toggleVisibilityClasses(E)},_toggleVisibilityClasses:function(E){E?(this.$element().addClass(l),this.$wrapper().addClass(l)):(this.$element().removeClass(l),this.$wrapper().removeClass(l))},_updateContentId(){var{container:E,contentId:S}=this.option(),O=S??(0,I.Z)(E).attr("aria-describedby");this.$content().addClass("dx-invalid-message-content").attr("id",O)},_renderInnerHtml(E){(E&&(0,I.Z)(E))?.html(this._textMarkup)},_getTextMarkup(){var E,S=null!==(E=this.option("validationErrors"))&&void 0!==E?E:[],O="";return S.forEach(w=>{var T;O+=(O?"<br />":"")+(0,p.HZ)(null!==(T=w?.message)&&void 0!==T?T:"")}),O},_toggleModeClass(){var E=this.option("mode");this.$wrapper().toggleClass("dx-invalid-message-auto","auto"===E).toggleClass("dx-invalid-message-always","always"===E)},updateMaxWidth(){var E=this.option("target"),S=(0,c.Y_)(E),O="100%";S&&(O=Math.max(S,100)),this.option({maxWidth:O})},_getPositionsArray:function(E,S){switch(E){case"top":return["".concat(S," bottom"),"".concat(S," top")];case"left":return["right","left"];case"right":return["left","right"];default:return["".concat(S," top"),"".concat(S," bottom")]}},_updatePosition:function(){var{positionSide:E,rtlEnabled:S,offset:O,boundary:w}=this.option(),T=(0,s.q)(S),k=this._getPositionsArray(E,T),R=(0,o.Z)({},O);this.$element().addClass("dx-invalid-message-".concat(E)),S&&"left"!==E&&"right"!==E&&(R.h=-R.h),"top"===E&&(R.v=-R.v),"left"===E&&(R.h=-R.h),this.option("position",{offset:R,boundary:w,my:k[0],at:k[1],collision:"none flip"})},_optionChanged(E){var{name:S,value:O,previousValue:w}=E;switch(S){case"target":this._updatePositionByTarget(),this.updateMaxWidth(),this.callBase(E);break;case"boundary":this.option("position.boundary",O);break;case"mode":this._toggleModeClass(O);break;case"rtlEnabled":case"offset":case"positionSide":this.$element().removeClass("dx-invalid-message-".concat(w)),this._updatePosition();break;case"container":this._updateContentId(),this.callBase(E);break;case"contentId":this._updateContentId();break;case"validationErrors":this._ensureMessageNotEmpty(),this._renderInnerHtml(this.$content());break;default:this.callBase(E)}}});(0,C.Z)("dxValidationMessage",b);const y=b},8493:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>v});var o=u(8506),c=u(913),I=u(7674),C=u(5873),g=u(2718),a=u(3191),p=u(7307),s="dx-validationsummary",l=s+"-item",d=s+"-item-data",h=p.Z.inherit({_getDefaultOptions(){return(0,C.l)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference(){this.callBase(),(0,C.l)(this._optionsByReference,{validationGroup:!0})},_init(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration(){var x=this.$element(),b=this.option("validationGroup")||a.Z.findGroup(x,this._modelByElement(x)),y=a.Z.addGroup(b);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=b,this.groupSubscription=this._groupValidationHandler.bind(this),y.on("validated",this.groupSubscription)},_unsubscribeGroup(){var x=a.Z.getGroupConfig(this._validationGroup);x&&x.off("validated",this.groupSubscription)},_getOrderedItems(x,b){var y=[];return(0,g.S6)(x,function(E,S){var O=(0,I.h3)(b,function(w){if(w.validator===S)return!0});O.length&&(y=y.concat(O))}),y},_groupValidationHandler(x){var b=this._getOrderedItems(x.validators,(0,g.UI)(x.brokenRules,function(y){return{text:y.message,validator:y.validator,index:y.index}}));this.validators=x.validators,(0,g.S6)(this.validators,(y,E)=>{if(E._validationSummary!==this){var S=this._itemValidationHandler.bind(this);E.on("validated",S),E.on("disposing",function(){E.off("validated",S),E._validationSummary=null,S=null}),E._validationSummary=this}}),this.option("items",b)},_itemValidationHandler(x){for(var{isValid:b,validator:y,brokenRules:E}=x,S=this.option("items"),O=!1,w=0,T=function(){var R=S[w];if(R.validator===y){var P=(0,I.h3)(E||[],function(B){return B.index===R.index})[0];if(b||!P)return S.splice(w,1),O=!0,"continue";P.message!==R.text&&(R.text=P.message,O=!0)}w++};w<S.length;)T();(0,g.S6)(E,function(R,P){(0,I.h3)(S,function(W){return W.validator===y&&W.index===P.index})[0]||(S.push({text:P.message,validator:y,index:P.index}),O=!0)}),O&&(S=this._getOrderedItems(this.validators,S),this.option("items",S))},_initMarkup(){this.$element().addClass(s),this.callBase()},_optionChanged(x){"validationGroup"===x.name?this._initGroupRegistration():this.callBase(x)},_itemClass:()=>l,_itemDataKey:()=>d,_postprocessRenderItem(x){c.Z.on(x.itemElement,"click",function(){x.itemData.validator&&x.itemData.validator.focus&&x.itemData.validator.focus()})},_dispose(){this.callBase(),this._unsubscribeGroup()},refreshValidationGroup(){this._initGroupRegistration()}});(0,o.Z)("dxValidationSummary",h);const v=h},9109:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>w});var o=u(5610),c=u(5365),I=u(8159),C=u(8893),g=u(5873),a=u(2718),p=u(3191);const d=u(5031).Z.inherit({ctor(T,k){this.editor=T,this.validator=k,this.validationRequestsCallbacks=[];var R=P=>{this.validationRequestsCallbacks.forEach(B=>B(P))};T.validationRequest.add(R),T.on("disposing",function(){T.validationRequest.remove(R)})},getValue(){return this.editor.option("value")},getCurrentValidationError(){return this.editor.option("validationError")},bypass(){return this.editor.option("disabled")},applyValidationResults(T){this.editor.option({validationErrors:T.brokenRules,validationStatus:T.status})},reset(){this.editor.reset()},focus(){this.editor.focus()}});var h=u(8506),v=u(4270),x=u(6492),y="valid",S="pending",O=C.Z.inherit({_initOptions:function(T){this.callBase.apply(this,arguments),this.option(p.Z.initValidationOptions(T))},_getDefaultOptions(){return(0,g.l)(this.callBase(),{validationRules:[]})},_init(){this.callBase(),this._initGroupRegistration(),this.focused=(0,c.Z)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration(){var T=this._findGroup();this._groupWasInit||this.on("disposing",function(k){p.Z.removeRegisteredValidator(k.component._validationGroup,k.component)}),(!this._groupWasInit||this._validationGroup!==T)&&(p.Z.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=T,p.Z.registerValidatorInGroup(T,this))},_setOptionsByReference(){this.callBase(),(0,g.l)(this._optionsByReference,{validationGroup:!0})},_getEditor(){var T=this.$element()[0];return(0,o.aT)(T,"dx-validation-target")},_initAdapter(){var T=this._getEditor(),k=this.option("adapter");if(!k){if(T)return(k=new d(T,this)).validationRequestsCallbacks.push(P=>{this._validationInfo.skipValidation||this.validate(P)}),void this.option("adapter",k);throw I.Z.Error("E0120")}var R=k.validationRequestsCallbacks;R&&R.push(P=>{this.validate(P)})},_toggleRTLDirection(T){var k,R,P,B=null!==(k=null===(R=this.option("adapter"))||void 0===R||null===(P=R.editor)||void 0===P?void 0:P.option("rtlEnabled"))&&void 0!==k?k:T;this.callBase(B)},_initMarkup(){this.$element().addClass("dx-validator"),this.callBase()},_render(){this.callBase(),this._toggleAccessibilityAttributes()},_toggleAccessibilityAttributes(){var T=this._getEditor();if(T){var R=(this.option("validationRules")||[]).some(P=>{var{type:B}=P;return"required"===B})||null;T.isInitialized()&&T.setAria("required",R),T.option("_onMarkupRendered",()=>{T.setAria("required",R)})}},_visibilityChanged(T){T&&this._initGroupRegistration()},_optionChanged(T){switch(T.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),this._toggleAccessibilityAttributes(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(p.Z.synchronizeValidationOptions(T,this.option()));break;default:this.callBase(T)}},_getValidationRules(){return this._validationRules||(this._validationRules=(0,a.UI)(this.option("validationRules"),(T,k)=>(0,g.l)({},T,{validator:this,index:k}))),this._validationRules},_findGroup(){var T=this.$element();return this.option("validationGroup")||p.Z.findGroup(T,this._modelByElement(T))},_resetValidationRules(){delete this._validationRules},validate(T){var U,k=this.option("adapter"),R=this.option("name"),P=k.bypass&&k.bypass(),B=T&&void 0!==T.value?T.value:k.getValue(),W=k.getCurrentValidationError&&k.getCurrentValidationError(),z=this._getValidationRules(),V=this._validationInfo&&this._validationInfo.result;return V&&V.status===S&&V.value===B?(0,g.l)({},V):(P?U={isValid:!0,status:y}:W&&W.editorSpecific?(W.validator=this,U={isValid:!1,status:"invalid",brokenRule:W,brokenRules:[W]}):U=p.Z.validate(B,z,R),U.id=(new x.Z).toString(),this._applyValidationResult(U,k),U.complete&&U.complete.then(K=>{K.id===this._validationInfo.result.id&&this._applyValidationResult(K,k)}),(0,g.l)({},this._validationInfo.result))},reset(){var T=this.option("adapter"),k={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:y,complete:null};this._validationInfo.skipValidation=!0,T.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(k,T)},_updateValidationResult(T){if(this._validationInfo.result&&this._validationInfo.result.id===T.id)for(var R in T)"id"!==R&&"complete"!==R&&(this._validationInfo.result[R]=T[R]);else this._validationInfo.result=(0,g.l)({},T,{complete:this._validationInfo.deferred&&this._validationInfo.result.complete})},_applyValidationResult(T,k){var R=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(T.validator=this,this._updateValidationResult(T),k.applyValidationResults&&k.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),this._validationInfo.result.status===S)return this._validationInfo.deferred||(this._validationInfo.deferred=new v.BH,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);this._validationInfo.result.status!==S&&(R(T),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(T),this._validationInfo.deferred=null))},focus(){var T=this.option("adapter");T&&T.focus&&T.focus()},_useTemplates:function(){return!1}});(0,h.Z)("dxValidator",O);const w=O},7:(Rn,he,u)=>{"use strict";u.d(he,{KW:()=>g,ht:()=>a,si:()=>p});var o=u(9904),c=u(9897),I=function(s,l){if(!function C(s){var l=(0,o.Z)(s);return l.is(":visible")&&"hidden"!==l.css("visibility")&&"hidden"!==l.parents().css("visibility")}(s))return!1;var d=s.nodeName.toLowerCase(),h=!isNaN(l),v=s.disabled;return/^(input|select|textarea|button|object|iframe)$/.test(d)||s.isContentEditable?!v:"a"===d&&s.href||h},g=function(s,l){return I(l,(0,o.Z)(l).attr("tabIndex"))},a=function(s,l){var d=(0,o.Z)(l).attr("tabIndex");return(isNaN(d)||d>=0)&&I(l,d)},p=function(s){var l=(0,o.Z)(s).get(0);return c.Z.getActiveElement(l)===l}},7078:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>g});var o=u(9904),c=u(1469),I="dx-swatch-";const g={getSwatchContainer:a=>{var s=(0,o.Z)(a).closest('[class^="'.concat(I,'"], [class*=" ').concat(I,'"]')),l=(0,c.S3)();if(!s.length)return l;var d=new RegExp("(\\s|^)(".concat(I,".*?)(\\s|$)")),h=s[0].className.match(d)[2],v=l.children("."+h);return v.length||(v=(0,o.Z)("<div>").addClass(h).appendTo(l)),v}}},8159:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});var o=u(9389),c=u(9644);const I=(0,o.Z)(c.Z.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',E1059:"The following column names are not unique: {0}",E1060:"All editable columns must have names",W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals',W1016:"The '{0}' field in the HTML Editor toolbar item configuration was renamed to '{1}'. Please make a corresponding change in your code.",W1017:"The 'key' property is not specified for a lookup data source. Please specify it to prevent requests for the entire dataset when users filter data.",W1018:"Infinite scrolling may not work properly with multiple selection. To use these features together, set 'selection.deferred' to true or set 'selection.selectAllMode' to 'page'.",W1019:"Filter query string exceeds maximum length limit of {0} characters.",W1020:"hideEvent is ignored when the shading property is true",W1021:"The '{0}' is not rendered because none of the DOM elements match the value of the \"container\" property."})},2589:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>s});var o=u(9904),c=u(5873),I=u(9009),C=u(8159),g=u(4270),p=function a(l){return class{constructor(){throw new Error("Module '".concat(l,"' not found"))}static getInstance(){}}}("TextBox");const s={_getDefaultOptions:function(){return(0,c.l)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var l=this.$element(),d=this.option("searchEnabled"),h=this._addWidgetPrefix("search"),v=this._addWidgetPrefix("with-search");if(!d)return l.removeClass(v),void this._removeSearchBox();var x=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(x):(l.addClass(v),this._$searchEditorElement=(0,o.Z)("<div>").addClass(h).prependTo(l),this._searchEditor=this._createComponent(this._$searchEditorElement,p,x))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var l=this,d=l.option("searchEditorOptions"),h=I.Z.format("Search");return(0,c.l)({mode:"search",placeholder:h,tabIndex:l.option("tabIndex"),value:l.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":h},onValueChanged:function(v){var x=l.option("searchTimeout");l._valueChangeDeferred=new g.BH,clearTimeout(l._valueChangeTimeout),l._valueChangeDeferred.done(function(){this.option("searchValue",v.value)}.bind(l)),v.event&&"input"===v.event.type&&x?l._valueChangeTimeout=setTimeout(function(){l._valueChangeDeferred.resolve()},x):l._valueChangeDeferred.resolve()}},d)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(l,d){this.option("searchEnabled")&&this._toggleFocusClass(d,this.$element()),this.callBase(l,d)},getOperationBySearchMode:function(l){return"equals"===l?"=":l},_cleanAria:function(l){this.setAria({role:null,activedescendant:null},l),l.attr("tabIndex",null)},_optionChanged:function(l){switch(l.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void C.Z.log("W1009");"searchMode"===l.name?this._dataSource.searchOperation(this.getOperationBySearchMode(l.value)):this._dataSource[l.name](l.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(l)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()},setEditorClass:function(l){p=l}}},6853:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>S});var o=u(9904),c=u(9866),I=u(8893),C=u(114),g=u(7674),a=u(2718),p=u(5873),s=u(7),l=u(1828),d=u(2941),h=u(2161);function y(O,w,T){O="role"===O||"id"===O?O:"aria-".concat(O),w=(0,l.$K)(w)?w.toString():null,T.attr(O,w)}u(227),u(1409),u(5239);var E=I.Z.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:()=>({}),_getDefaultOptions(){return(0,p.l)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:void 0,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1,useResizeObserver:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var O=d.Z.real();return"ios"===O.platform&&(0,h.q)(O.version,"13.3")<=0},options:{useResizeObserver:!1}}])},_init(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(O,w){var T=E.getOptionsFromContainer(w);O&&O.option(T),this._options.cache(w.name,T)},_bindInnerWidgetOptions(O,w){var T=()=>this._options.silent(w,(0,p.l)({},O.option()));T(),O.on("optionChanged",T)},_getAriaTarget(){return this._focusTarget()},_initContentReadyAction(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup(){var{disabled:O,visible:w}=this.option();this.$element().addClass("dx-widget"),this._toggleDisabledState(O),this._toggleVisibility(w),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint(){var{hint:O}=this.option();this.$element().attr("title",O||null)},_renderContent(){(0,g.g0)(()=>this._disposed?void 0:this._renderContentImpl()).done(()=>this._disposed?void 0:this._fireContentReadyAction())},_renderContentImpl:g.ZT,_fireContentReadyAction:(0,g.Rg)(function(){return this._contentReadyAction()}),_dispose(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility(O){this.$element().toggleClass("dx-state-invisible",!O),this.setAria("hidden",!O||void 0)},_renderFocusState(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey(){var O=this._focusTarget(),{accessKey:w}=this.option();O.attr("accesskey",w)},_isFocusable(){var{focusStateEnabled:O,disabled:w}=this.option();return O&&!w},_eventBindingTarget(){return this.$element()},_focusTarget(){return this._getActiveElement()},_isFocusTarget:function(O){return(0,o.Z)(this._focusTarget()).toArray().includes(O)},_getActiveElement(){var O=this._eventBindingTarget();return this._activeStateUnit?O.find(this._activeStateUnit).not(".dx-state-disabled"):O},_renderFocusTarget(){var{tabIndex:O}=this.option();this._focusTarget().attr("tabIndex",O)},_keyboardEventBindingTarget(){return this._eventBindingTarget()},_refreshFocusEvent(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget(){return this._focusTarget()},_focusInHandler(O){O.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:()=>this._updateFocusState(O,!0),excludeValidators:["readOnly"]})({event:O})},_focusOutHandler(O){O.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:()=>this._updateFocusState(O,!1),excludeValidators:["readOnly","disabled"]})({event:O})},_updateFocusState(O,w){var{target:T}=O;this._isFocusTarget(T)&&this._toggleFocusClass(w,(0,o.Z)(T))},_toggleFocusClass(O,w){(w&&w.length?w:this._focusTarget()).toggleClass("dx-state-focused",O)},_hasFocusClass(O){return(0,o.Z)(O||this._focusTarget()).hasClass("dx-state-focused")},_isFocused(){return this._hasFocusClass()},_getKeyboardListeners:()=>[],_attachKeyboardEvents(){this._detachKeyboardEvents();var{focusStateEnabled:O,onKeyboardHandled:w}=this.option(),T=this._getKeyboardListeners().length;(O||T||w)&&(this._keyboardListenerId=C.dG.on(this._keyboardEventBindingTarget(),this._focusTarget(),P=>this._keyboardHandler(P)))},_keyboardHandler(O,w){if(!w){var{originalEvent:T,keyName:k,which:R}=O,P=this._supportedKeys(T),B=P[k]||P[R];if(void 0!==B&&!B.bind(this)(T,O))return!1}var V=this._getKeyboardListeners(),{onKeyboardHandled:U}=this.option();return V.forEach(K=>K&&K._keyboardHandler(O)),U&&U(O),!0},_refreshFocusState(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents(){C.dG.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents(){var{hoverStateEnabled:O}=this.option(),w=this._activeStateUnit,T=this._eventBindingTarget();C.Mr.off(T,{selector:w,namespace:"UIFeedback"}),O&&C.Mr.on(T,new c.Z(k=>{var{event:R,element:P}=k;this._hoverStartHandler(R),this.option("hoveredElement",(0,o.Z)(P))},{excludeValidators:["readOnly"]}),k=>{this.option("hoveredElement",null),this._hoverEndHandler(k)},{selector:w,namespace:"UIFeedback"})},_attachFeedbackEvents(){var{activeStateEnabled:O}=this.option(),w=this._activeStateUnit,T=this._eventBindingTarget();C.bB.off(T,{namespace:"UIFeedback",selector:w}),O&&C.bB.on(T,new c.Z(k=>{var{event:R,element:P}=k;return this._toggleActiveState((0,o.Z)(P),!0,R)}),new c.Z(k=>{var{event:R,element:P}=k;return this._toggleActiveState((0,o.Z)(P),!1,R)},{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:w,namespace:"UIFeedback"})},_detachFocusEvents(){var O=this._focusEventTarget();C.T_.off(O,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents(){var O=this._focusEventTarget();C.T_.on(O,w=>this._focusInHandler(w),w=>this._focusOutHandler(w),{namespace:"".concat(this.NAME,"Focus"),isFocusable:(w,T)=>(0,o.Z)(T).is(s.KW)})},_hoverStartHandler:g.ZT,_hoverEndHandler:g.ZT,_toggleActiveState(O,w){this.option("isActive",w),O.toggleClass("dx-state-active",w)},_updatedHover(){var O=this._options.silent("hoveredElement");this._hover(O,O)},_findHoverTarget(O){return O&&O.closest(this._activeStateUnit||this._eventBindingTarget())},_hover(O,w){var{hoverStateEnabled:T,disabled:k,isActive:R}=this.option();if((w=this._findHoverTarget(w))&&w.toggleClass("dx-state-hover",!1),O&&T&&!k&&!R){var P=this._findHoverTarget(O);P&&P.toggleClass("dx-state-hover",!0)}},_toggleDisabledState(O){this.$element().toggleClass("dx-state-disabled",Boolean(O)),this.setAria("disabled",O||void 0)},_toggleIndependentState(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption(O,w){if(this[O]){if((0,l.PO)(w[0]))return void(0,a.S6)(w[0],(P,B)=>this._setWidgetOption(O,[P,B]));var T=w[0],k=w[1];1===w.length&&(k=this.option(T));var R=this["".concat(O,"OptionMap")];this[O].option(R?R(T):T,k)}},_optionChanged(O){var{name:w,value:T,previousValue:k}=O;switch(w){case"disabled":this._toggleDisabledState(T),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":case"useResizeObserver":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(T,k);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(T),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(T?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(O)}},_isVisible(){var{visible:O}=this.option();return this.callBase()&&O},beginUpdate(){this._ready(!1),this.callBase()},endUpdate(){this.callBase(),this._initialized&&this._ready(!0)},_ready(O){if(0===arguments.length)return this._isReady;this._isReady=O},setAria(){if((0,l.PO)(arguments.length<=0?void 0:arguments[0])){var O=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,a.S6)(arguments.length<=0?void 0:arguments[0],(w,T)=>y(w,T,O))}else y(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady(){return this._ready()},repaint(){this._refresh()},focus(){C.T_.trigger(this._focusTarget())},registerKeyHandler(O,w){var T=this._supportedKeys();this._supportedKeys=()=>(0,p.l)(T,{[O]:w})}});E.getOptionsFromContainer=O=>{var{name:w,fullName:T,value:k}=O,R={};return w===T?R=k:R[T.split(".").pop()]=k,R};const S=E},4594:(Rn,he,u)=>{"use strict";u.d(he,{OM:()=>k,bI:()=>S,py:()=>v,sY:()=>x});var o=u(1805),c=u(9904),I="dx-inkripple",C="dx-inkripple-wave",g="dx-inkripple-showing",a="dx-inkripple-hiding",v=function(){var R=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{useHoldAnimation:P,waveSizeCoefficient:B,isCentered:W,wavesNumber:z}=R;return{waveSizeCoefficient:B||2,isCentered:W||!1,wavesNumber:z||1,durations:w(P??!0)}},x=function(R){var P=v(R);return{showWave:S.bind(this,P),hideWave:k.bind(this,P)}},y=function(R,P){for(var B=function(R){var P=R.children("."+I);return 0===P.length&&(P=(0,c.Z)("<div>").addClass(I).appendTo(R)),P}((0,c.Z)(R)),W=B.children("."+C).toArray(),z=W.length;z<P;z++){var V=(0,c.Z)("<div>").appendTo(B).addClass(C);W.push(V[0])}return(0,c.Z)(W)};function S(R,P){var B=y(P.element,R.wavesNumber).eq(P.wave||0);R.hidingTimeout&&clearTimeout(R.hidingTimeout),T(B),B.css(function(R,P){var K,Y,B=(0,c.Z)(P.element),W=(0,o.Y_)(B),z=(0,o.zp)(B),V=parseInt(Math.sqrt(W*W+z*z)),U=Math.min(4e3,parseInt(V*R.waveSizeCoefficient));if(R.isCentered)K=(W-U)/2,Y=(z-U)/2;else{var J=P.event,j=B.offset();K=J.pageX-j.left-U/2,Y=J.pageY-j.top-U/2}return{left:K,top:Y,height:U,width:U}}(R,P)),R.showingTimeout=setTimeout(O.bind(this,R,B),0)}function O(R,P){var B=R.durations.showingScale+"ms";P.addClass(g).css("transitionDuration",B)}function w(R){return{showingScale:R?1e3:300,hidingScale:300,hidingOpacity:300}}function T(R){R.removeClass(a).css("transitionDuration","")}function k(R,P){R.showingTimeout&&clearTimeout(R.showingTimeout);var B=y(P.element,P.wavesNumber).eq(P.wave||0),W=R.durations,z=W.hidingScale+"ms, "+W.hidingOpacity+"ms";B.addClass(a).removeClass(g).css("transitionDuration",z);var V=Math.max(W.hidingScale,W.hidingOpacity);R.hidingTimeout=setTimeout(T.bind(this,B),V)}},1524:(Rn,he,u)=>{var o;!function(c,I,C,g){"use strict";var E,a=["","webkit","Moz","MS","ms","o"],p=I.createElement("div"),l=Math.round,d=Math.abs,h=Date.now;function v(dn,Tn,Zn){return setTimeout(T(dn,Zn),Tn)}function x(dn,Tn,Zn){return!!Array.isArray(dn)&&(b(dn,Zn[Tn],Zn),!0)}function b(dn,Tn,Zn){var fi;if(dn)if(dn.forEach)dn.forEach(Tn,Zn);else if(dn.length!==g)for(fi=0;fi<dn.length;)Tn.call(Zn,dn[fi],fi,dn),fi++;else for(fi in dn)dn.hasOwnProperty(fi)&&Tn.call(Zn,dn[fi],fi,dn)}function y(dn,Tn,Zn){var fi="DEPRECATED METHOD: "+Tn+"\n"+Zn+" AT \n";return function(){var Li=new Error("get-stack-trace"),sr=Li&&Li.stack?Li.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",gr=c.console&&(c.console.warn||c.console.log);return gr&&gr.call(c.console,fi,sr),dn.apply(this,arguments)}}E="function"!=typeof Object.assign?function(Tn){if(Tn===g||null===Tn)throw new TypeError("Cannot convert undefined or null to object");for(var Zn=Object(Tn),fi=1;fi<arguments.length;fi++){var Li=arguments[fi];if(Li!==g&&null!==Li)for(var sr in Li)Li.hasOwnProperty(sr)&&(Zn[sr]=Li[sr])}return Zn}:Object.assign;var S=y(function(Tn,Zn,fi){for(var Li=Object.keys(Zn),sr=0;sr<Li.length;)(!fi||fi&&Tn[Li[sr]]===g)&&(Tn[Li[sr]]=Zn[Li[sr]]),sr++;return Tn},"extend","Use `assign`."),O=y(function(Tn,Zn){return S(Tn,Zn,!0)},"merge","Use `assign`.");function w(dn,Tn,Zn){var Li,fi=Tn.prototype;(Li=dn.prototype=Object.create(fi)).constructor=dn,Li._super=fi,Zn&&E(Li,Zn)}function T(dn,Tn){return function(){return dn.apply(Tn,arguments)}}function k(dn,Tn){return"function"==typeof dn?dn.apply(Tn&&Tn[0]||g,Tn):dn}function R(dn,Tn){return dn===g?Tn:dn}function P(dn,Tn,Zn){b(V(Tn),function(fi){dn.addEventListener(fi,Zn,!1)})}function B(dn,Tn,Zn){b(V(Tn),function(fi){dn.removeEventListener(fi,Zn,!1)})}function W(dn,Tn){for(;dn;){if(dn==Tn)return!0;dn=dn.parentNode}return!1}function z(dn,Tn){return dn.indexOf(Tn)>-1}function V(dn){return dn.trim().split(/\s+/g)}function U(dn,Tn,Zn){if(dn.indexOf&&!Zn)return dn.indexOf(Tn);for(var fi=0;fi<dn.length;){if(Zn&&dn[fi][Zn]==Tn||!Zn&&dn[fi]===Tn)return fi;fi++}return-1}function K(dn){return Array.prototype.slice.call(dn,0)}function Y(dn,Tn,Zn){for(var fi=[],Li=[],sr=0;sr<dn.length;){var gr=Tn?dn[sr][Tn]:dn[sr];U(Li,gr)<0&&fi.push(dn[sr]),Li[sr]=gr,sr++}return Zn&&(fi=Tn?fi.sort(function(_n,Ze){return _n[Tn]>Ze[Tn]}):fi.sort()),fi}function J(dn,Tn){for(var Zn,fi,Li=Tn[0].toUpperCase()+Tn.slice(1),sr=0;sr<a.length;){if((fi=(Zn=a[sr])?Zn+Li:Tn)in dn)return fi;sr++}return g}var j=1;function G(dn){var Tn=dn.ownerDocument||dn;return Tn.defaultView||Tn.parentWindow||c}var Z="ontouchstart"in c,X=J(c,"PointerEvent")!==g,M=Z&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),oe="touch",Te="mouse",be=["x","y"],Ae=["clientX","clientY"];function Ne(dn,Tn){var Zn=this;this.manager=dn,this.callback=Tn,this.element=dn.element,this.target=dn.options.inputTarget,this.domHandler=function(fi){k(dn.options.enable,[dn])&&Zn.handler(fi)},this.init()}function tt(dn,Tn,Zn){var fi=Zn.pointers.length,Li=Zn.changedPointers.length,sr=1&Tn&&fi-Li==0,gr=12&Tn&&fi-Li==0;Zn.isFirst=!!sr,Zn.isFinal=!!gr,sr&&(dn.session={}),Zn.eventType=Tn,function Le(dn,Tn){var Zn=dn.session,fi=Tn.pointers,Li=fi.length;Zn.firstInput||(Zn.firstInput=Pe(Tn)),Li>1&&!Zn.firstMultiple?Zn.firstMultiple=Pe(Tn):1===Li&&(Zn.firstMultiple=!1);var sr=Zn.firstInput,gr=Zn.firstMultiple,Qt=gr?gr.center:sr.center,_n=Tn.center=$e(fi);Tn.timeStamp=h(),Tn.deltaTime=Tn.timeStamp-sr.timeStamp,Tn.angle=Ye(Qt,_n),Tn.distance=De(Qt,_n),function gt(dn,Tn){var Zn=Tn.center,fi=dn.offsetDelta||{},Li=dn.prevDelta||{},sr=dn.prevInput||{};(1===Tn.eventType||4===sr.eventType)&&(Li=dn.prevDelta={x:sr.deltaX||0,y:sr.deltaY||0},fi=dn.offsetDelta={x:Zn.x,y:Zn.y}),Tn.deltaX=Li.x+(Zn.x-fi.x),Tn.deltaY=Li.y+(Zn.y-fi.y)}(Zn,Tn),Tn.offsetDirection=Ce(Tn.deltaX,Tn.deltaY);var Ze=ge(Tn.deltaTime,Tn.deltaX,Tn.deltaY);Tn.overallVelocityX=Ze.x,Tn.overallVelocityY=Ze.y,Tn.overallVelocity=d(Ze.x)>d(Ze.y)?Ze.x:Ze.y,Tn.scale=gr?function yt(dn,Tn){return De(Tn[0],Tn[1],Ae)/De(dn[0],dn[1],Ae)}(gr.pointers,fi):1,Tn.rotation=gr?function bt(dn,Tn){return Ye(Tn[1],Tn[0],Ae)+Ye(dn[1],dn[0],Ae)}(gr.pointers,fi):0,Tn.maxPointers=Zn.prevInput?Tn.pointers.length>Zn.prevInput.maxPointers?Tn.pointers.length:Zn.prevInput.maxPointers:Tn.pointers.length,function tn(dn,Tn){var Li,sr,gr,Qt,Zn=dn.lastInterval||Tn,fi=Tn.timeStamp-Zn.timeStamp;if(8!=Tn.eventType&&(fi>25||Zn.velocity===g)){var _n=Tn.deltaX-Zn.deltaX,Ze=Tn.deltaY-Zn.deltaY,Ct=ge(fi,_n,Ze);sr=Ct.x,gr=Ct.y,Li=d(Ct.x)>d(Ct.y)?Ct.x:Ct.y,Qt=Ce(_n,Ze),dn.lastInterval=Tn}else Li=Zn.velocity,sr=Zn.velocityX,gr=Zn.velocityY,Qt=Zn.direction;Tn.velocity=Li,Tn.velocityX=sr,Tn.velocityY=gr,Tn.direction=Qt}(Zn,Tn);var Ct=dn.element;W(Tn.srcEvent.target,Ct)&&(Ct=Tn.srcEvent.target),Tn.target=Ct}(dn,Zn),dn.emit("hammer.input",Zn),dn.recognize(Zn),dn.session.prevInput=Zn}function Pe(dn){for(var Tn=[],Zn=0;Zn<dn.pointers.length;)Tn[Zn]={clientX:l(dn.pointers[Zn].clientX),clientY:l(dn.pointers[Zn].clientY)},Zn++;return{timeStamp:h(),pointers:Tn,center:$e(Tn),deltaX:dn.deltaX,deltaY:dn.deltaY}}function $e(dn){var Tn=dn.length;if(1===Tn)return{x:l(dn[0].clientX),y:l(dn[0].clientY)};for(var Zn=0,fi=0,Li=0;Li<Tn;)Zn+=dn[Li].clientX,fi+=dn[Li].clientY,Li++;return{x:l(Zn/Tn),y:l(fi/Tn)}}function ge(dn,Tn,Zn){return{x:Tn/dn||0,y:Zn/dn||0}}function Ce(dn,Tn){return dn===Tn?1:d(dn)>=d(Tn)?dn<0?2:4:Tn<0?8:16}function De(dn,Tn,Zn){Zn||(Zn=be);var fi=Tn[Zn[0]]-dn[Zn[0]],Li=Tn[Zn[1]]-dn[Zn[1]];return Math.sqrt(fi*fi+Li*Li)}function Ye(dn,Tn,Zn){return Zn||(Zn=be),180*Math.atan2(Tn[Zn[1]]-dn[Zn[1]],Tn[Zn[0]]-dn[Zn[0]])/Math.PI}Ne.prototype={handler:function(){},init:function(){this.evEl&&P(this.element,this.evEl,this.domHandler),this.evTarget&&P(this.target,this.evTarget,this.domHandler),this.evWin&&P(G(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(G(this.element),this.evWin,this.domHandler)}};var kt={mousedown:1,mousemove:2,mouseup:4},gn="mousedown",ut="mousemove mouseup";function Ve(){this.evEl=gn,this.evWin=ut,this.pressed=!1,Ne.apply(this,arguments)}w(Ve,Ne,{handler:function(Tn){var Zn=kt[Tn.type];1&Zn&&0===Tn.button&&(this.pressed=!0),2&Zn&&1!==Tn.which&&(Zn=4),this.pressed&&(4&Zn&&(this.pressed=!1),this.callback(this.manager,Zn,{pointers:[Tn],changedPointers:[Tn],pointerType:Te,srcEvent:Tn}))}});var St={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Xe={2:oe,3:"pen",4:Te,5:"kinect"},Vt="pointerdown",lt="pointermove pointerup pointercancel";function dt(){this.evEl=Vt,this.evWin=lt,Ne.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}c.MSPointerEvent&&!c.PointerEvent&&(Vt="MSPointerDown",lt="MSPointerMove MSPointerUp MSPointerCancel"),w(dt,Ne,{handler:function(Tn){var Zn=this.store,fi=!1,Li=Tn.type.toLowerCase().replace("ms",""),sr=St[Li],gr=Xe[Tn.pointerType]||Tn.pointerType,Qt=gr==oe,_n=U(Zn,Tn.pointerId,"pointerId");1&sr&&(0===Tn.button||Qt)?_n<0&&(Zn.push(Tn),_n=Zn.length-1):12&sr&&(fi=!0),!(_n<0)&&(Zn[_n]=Tn,this.callback(this.manager,sr,{pointers:Zn,changedPointers:[Tn],pointerType:gr,srcEvent:Tn}),fi&&Zn.splice(_n,1))}});var vt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},Lt="touchstart",bn="touchstart touchmove touchend touchcancel";function mn(){this.evTarget=Lt,this.evWin=bn,this.started=!1,Ne.apply(this,arguments)}function xn(dn,Tn){var Zn=K(dn.touches),fi=K(dn.changedTouches);return 12&Tn&&(Zn=Y(Zn.concat(fi),"identifier",!0)),[Zn,fi]}w(mn,Ne,{handler:function(Tn){var Zn=vt[Tn.type];if(1===Zn&&(this.started=!0),this.started){var fi=xn.call(this,Tn,Zn);12&Zn&&fi[0].length-fi[1].length==0&&(this.started=!1),this.callback(this.manager,Zn,{pointers:fi[0],changedPointers:fi[1],pointerType:oe,srcEvent:Tn})}}});var Xn={touchstart:1,touchmove:2,touchend:4,touchcancel:8},li="touchstart touchmove touchend touchcancel";function ki(){this.evTarget=li,this.targetIds={},Ne.apply(this,arguments)}function Vn(dn,Tn){var Zn=K(dn.touches),fi=this.targetIds;if(3&Tn&&1===Zn.length)return fi[Zn[0].identifier]=!0,[Zn,Zn];var Li,sr,gr=K(dn.changedTouches),Qt=[],_n=this.target;if(sr=Zn.filter(function(Ze){return W(Ze.target,_n)}),1===Tn)for(Li=0;Li<sr.length;)fi[sr[Li].identifier]=!0,Li++;for(Li=0;Li<gr.length;)fi[gr[Li].identifier]&&Qt.push(gr[Li]),12&Tn&&delete fi[gr[Li].identifier],Li++;return Qt.length?[Y(sr.concat(Qt),"identifier",!0),Qt]:void 0}function En(){Ne.apply(this,arguments);var dn=T(this.handler,this);this.touch=new ki(this.manager,dn),this.mouse=new Ve(this.manager,dn),this.primaryTouch=null,this.lastTouches=[]}function Mn(dn,Tn){1&dn?(this.primaryTouch=Tn.changedPointers[0].identifier,ei.call(this,Tn)):12&dn&&ei.call(this,Tn)}function ei(dn){var Tn=dn.changedPointers[0];if(Tn.identifier===this.primaryTouch){var Zn={x:Tn.clientX,y:Tn.clientY};this.lastTouches.push(Zn);var fi=this.lastTouches;setTimeout(function(){var sr=fi.indexOf(Zn);sr>-1&&fi.splice(sr,1)},2500)}}function Wn(dn){for(var Tn=dn.srcEvent.clientX,Zn=dn.srcEvent.clientY,fi=0;fi<this.lastTouches.length;fi++){var Li=this.lastTouches[fi],sr=Math.abs(Tn-Li.x),gr=Math.abs(Zn-Li.y);if(sr<=25&&gr<=25)return!0}return!1}w(ki,Ne,{handler:function(Tn){var Zn=Xn[Tn.type],fi=Vn.call(this,Tn,Zn);fi&&this.callback(this.manager,Zn,{pointers:fi[0],changedPointers:fi[1],pointerType:oe,srcEvent:Tn})}}),w(En,Ne,{handler:function(Tn,Zn,fi){var sr=fi.pointerType==Te;if(!(sr&&fi.sourceCapabilities&&fi.sourceCapabilities.firesTouchEvents)){if(fi.pointerType==oe)Mn.call(this,Zn,fi);else if(sr&&Wn.call(this,fi))return;this.callback(Tn,Zn,fi)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ji=J(p.style,"touchAction"),Sn=Ji!==g,Qn="compute",ci="manipulation",Wi="none",qi="pan-x",nr="pan-y",xr=function hi(){if(!Sn)return!1;var dn={},Tn=c.CSS&&c.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(Zn){dn[Zn]=!Tn||c.CSS.supports("touch-action",Zn)}),dn}();function vn(dn,Tn){this.manager=dn,this.set(Tn)}function Sr(dn){this.options=E({},this.defaults,dn||{}),this.id=function ee(){return j++}(),this.manager=null,this.options.enable=R(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Wr(dn){return 16&dn?"cancel":8&dn?"end":4&dn?"move":2&dn?"start":""}function Ur(dn){return 16==dn?"down":8==dn?"up":2==dn?"left":4==dn?"right":""}function Rr(dn,Tn){var Zn=Tn.manager;return Zn?Zn.get(dn):dn}function mo(){Sr.apply(this,arguments)}function Mr(){mo.apply(this,arguments),this.pX=null,this.pY=null}function po(){mo.apply(this,arguments)}function mi(){Sr.apply(this,arguments),this._timer=null,this._input=null}function ar(){mo.apply(this,arguments)}function Xr(){mo.apply(this,arguments)}function lo(){Sr.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function _o(dn,Tn){return(Tn=Tn||{}).recognizers=R(Tn.recognizers,_o.defaults.preset),new en(dn,Tn)}function en(dn,Tn){this.options=E({},_o.defaults,Tn||{}),this.options.inputTarget=this.options.inputTarget||dn,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=dn,this.input=function mt(dn){return new(dn.options.inputClass||(X?dt:M?ki:Z?En:Ve))(dn,tt)}(this),this.touchAction=new vn(this,this.options.touchAction),jn(this,!0),b(this.options.recognizers,function(Zn){var fi=this.add(new Zn[0](Zn[1]));Zn[2]&&fi.recognizeWith(Zn[2]),Zn[3]&&fi.requireFailure(Zn[3])},this)}function jn(dn,Tn){var fi,Zn=dn.element;Zn.style&&(b(dn.options.cssProps,function(Li,sr){fi=J(Zn.style,sr),Tn?(dn.oldCssProps[fi]=Zn.style[fi],Zn.style[fi]=Li):Zn.style[fi]=dn.oldCssProps[fi]||""}),Tn||(dn.oldCssProps={}))}vn.prototype={set:function(dn){dn==Qn&&(dn=this.compute()),Sn&&this.manager.element.style&&xr[dn]&&(this.manager.element.style[Ji]=dn),this.actions=dn.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var dn=[];return b(this.manager.recognizers,function(Tn){k(Tn.options.enable,[Tn])&&(dn=dn.concat(Tn.getTouchAction()))}),function Pn(dn){if(z(dn,Wi))return Wi;var Tn=z(dn,qi),Zn=z(dn,nr);return Tn&&Zn?Wi:Tn||Zn?Tn?qi:nr:z(dn,ci)?ci:"auto"}(dn.join(" "))},preventDefaults:function(dn){var Tn=dn.srcEvent,Zn=dn.offsetDirection;if(!this.manager.session.prevented){var fi=this.actions,Li=z(fi,Wi)&&!xr[Wi],sr=z(fi,nr)&&!xr[nr],gr=z(fi,qi)&&!xr[qi];if(Li&&1===dn.pointers.length&&dn.distance<2&&dn.deltaTime<250)return;return gr&&sr||!(Li||sr&&6&Zn||gr&&24&Zn)?void 0:this.preventSrc(Tn)}Tn.preventDefault()},preventSrc:function(dn){this.manager.session.prevented=!0,dn.preventDefault()}},Sr.prototype={defaults:{},set:function(dn){return E(this.options,dn),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(dn){if(x(dn,"recognizeWith",this))return this;var Tn=this.simultaneous;return Tn[(dn=Rr(dn,this)).id]||(Tn[dn.id]=dn,dn.recognizeWith(this)),this},dropRecognizeWith:function(dn){return x(dn,"dropRecognizeWith",this)||(dn=Rr(dn,this),delete this.simultaneous[dn.id]),this},requireFailure:function(dn){if(x(dn,"requireFailure",this))return this;var Tn=this.requireFail;return-1===U(Tn,dn=Rr(dn,this))&&(Tn.push(dn),dn.requireFailure(this)),this},dropRequireFailure:function(dn){if(x(dn,"dropRequireFailure",this))return this;dn=Rr(dn,this);var Tn=U(this.requireFail,dn);return Tn>-1&&this.requireFail.splice(Tn,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(dn){return!!this.simultaneous[dn.id]},emit:function(dn){var Tn=this,Zn=this.state;function fi(Li){Tn.manager.emit(Li,dn)}Zn<8&&fi(Tn.options.event+Wr(Zn)),fi(Tn.options.event),dn.additionalEvent&&fi(dn.additionalEvent),Zn>=8&&fi(Tn.options.event+Wr(Zn))},tryEmit:function(dn){if(this.canEmit())return this.emit(dn);this.state=32},canEmit:function(){for(var dn=0;dn<this.requireFail.length;){if(!(33&this.requireFail[dn].state))return!1;dn++}return!0},recognize:function(dn){var Tn=E({},dn);if(!k(this.options.enable,[this,Tn]))return this.reset(),void(this.state=32);56&this.state&&(this.state=1),this.state=this.process(Tn),30&this.state&&this.tryEmit(Tn)},process:function(dn){},getTouchAction:function(){},reset:function(){}},w(mo,Sr,{defaults:{pointers:1},attrTest:function(dn){var Tn=this.options.pointers;return 0===Tn||dn.pointers.length===Tn},process:function(dn){var Tn=this.state,Zn=dn.eventType,fi=6&Tn,Li=this.attrTest(dn);return fi&&(8&Zn||!Li)?16|Tn:fi||Li?4&Zn?8|Tn:2&Tn?4|Tn:2:32}}),w(Mr,mo,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var dn=this.options.direction,Tn=[];return 6&dn&&Tn.push(nr),24&dn&&Tn.push(qi),Tn},directionTest:function(dn){var Tn=this.options,Zn=!0,fi=dn.distance,Li=dn.direction,sr=dn.deltaX,gr=dn.deltaY;return Li&Tn.direction||(6&Tn.direction?(Li=0===sr?1:sr<0?2:4,Zn=sr!=this.pX,fi=Math.abs(dn.deltaX)):(Li=0===gr?1:gr<0?8:16,Zn=gr!=this.pY,fi=Math.abs(dn.deltaY))),dn.direction=Li,Zn&&fi>Tn.threshold&&Li&Tn.direction},attrTest:function(dn){return mo.prototype.attrTest.call(this,dn)&&(2&this.state||!(2&this.state)&&this.directionTest(dn))},emit:function(dn){this.pX=dn.deltaX,this.pY=dn.deltaY;var Tn=Ur(dn.direction);Tn&&(dn.additionalEvent=this.options.event+Tn),this._super.emit.call(this,dn)}}),w(po,mo,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Wi]},attrTest:function(dn){return this._super.attrTest.call(this,dn)&&(Math.abs(dn.scale-1)>this.options.threshold||2&this.state)},emit:function(dn){1!==dn.scale&&(dn.additionalEvent=this.options.event+(dn.scale<1?"in":"out")),this._super.emit.call(this,dn)}}),w(mi,Sr,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(dn){var Tn=this.options,Zn=dn.pointers.length===Tn.pointers,fi=dn.distance<Tn.threshold,Li=dn.deltaTime>Tn.time;if(this._input=dn,!fi||!Zn||12&dn.eventType&&!Li)this.reset();else if(1&dn.eventType)this.reset(),this._timer=v(function(){this.state=8,this.tryEmit()},Tn.time,this);else if(4&dn.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(dn){8===this.state&&(dn&&4&dn.eventType?this.manager.emit(this.options.event+"up",dn):(this._input.timeStamp=h(),this.manager.emit(this.options.event,this._input)))}}),w(ar,mo,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Wi]},attrTest:function(dn){return this._super.attrTest.call(this,dn)&&(Math.abs(dn.rotation)>this.options.threshold||2&this.state)}}),w(Xr,mo,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Mr.prototype.getTouchAction.call(this)},attrTest:function(dn){var Zn,Tn=this.options.direction;return 30&Tn?Zn=dn.overallVelocity:6&Tn?Zn=dn.overallVelocityX:24&Tn&&(Zn=dn.overallVelocityY),this._super.attrTest.call(this,dn)&&Tn&dn.offsetDirection&&dn.distance>this.options.threshold&&dn.maxPointers==this.options.pointers&&d(Zn)>this.options.velocity&&4&dn.eventType},emit:function(dn){var Tn=Ur(dn.offsetDirection);Tn&&this.manager.emit(this.options.event+Tn,dn),this.manager.emit(this.options.event,dn)}}),w(lo,Sr,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[ci]},process:function(dn){var Tn=this.options,Zn=dn.pointers.length===Tn.pointers,fi=dn.distance<Tn.threshold,Li=dn.deltaTime<Tn.time;if(this.reset(),1&dn.eventType&&0===this.count)return this.failTimeout();if(fi&&Li&&Zn){if(4!=dn.eventType)return this.failTimeout();var sr=!this.pTime||dn.timeStamp-this.pTime<Tn.interval,gr=!this.pCenter||De(this.pCenter,dn.center)<Tn.posThreshold;if(this.pTime=dn.timeStamp,this.pCenter=dn.center,gr&&sr?this.count+=1:this.count=1,this._input=dn,0==this.count%Tn.taps)return this.hasRequireFailures()?(this._timer=v(function(){this.state=8,this.tryEmit()},Tn.interval,this),2):8}return 32},failTimeout:function(){return this._timer=v(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),_o.VERSION="2.0.7",_o.defaults={domEvents:!1,touchAction:Qn,enable:!0,inputTarget:null,inputClass:null,preset:[[ar,{enable:!1}],[po,{enable:!1},["rotate"]],[Xr,{direction:6}],[Mr,{direction:6},["swipe"]],[lo],[lo,{event:"doubletap",taps:2},["tap"]],[mi]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},en.prototype={set:function(dn){return E(this.options,dn),dn.touchAction&&this.touchAction.update(),dn.inputTarget&&(this.input.destroy(),this.input.target=dn.inputTarget,this.input.init()),this},stop:function(dn){this.session.stopped=dn?2:1},recognize:function(dn){var Tn=this.session;if(!Tn.stopped){this.touchAction.preventDefaults(dn);var Zn,fi=this.recognizers,Li=Tn.curRecognizer;(!Li||Li&&8&Li.state)&&(Li=Tn.curRecognizer=null);for(var sr=0;sr<fi.length;)Zn=fi[sr],2===Tn.stopped||Li&&Zn!=Li&&!Zn.canRecognizeWith(Li)?Zn.reset():Zn.recognize(dn),!Li&&14&Zn.state&&(Li=Tn.curRecognizer=Zn),sr++}},get:function(dn){if(dn instanceof Sr)return dn;for(var Tn=this.recognizers,Zn=0;Zn<Tn.length;Zn++)if(Tn[Zn].options.event==dn)return Tn[Zn];return null},add:function(dn){if(x(dn,"add",this))return this;var Tn=this.get(dn.options.event);return Tn&&this.remove(Tn),this.recognizers.push(dn),dn.manager=this,this.touchAction.update(),dn},remove:function(dn){if(x(dn,"remove",this))return this;if(dn=this.get(dn)){var Tn=this.recognizers,Zn=U(Tn,dn);-1!==Zn&&(Tn.splice(Zn,1),this.touchAction.update())}return this},on:function(dn,Tn){if(dn!==g&&Tn!==g){var Zn=this.handlers;return b(V(dn),function(fi){Zn[fi]=Zn[fi]||[],Zn[fi].push(Tn)}),this}},off:function(dn,Tn){if(dn!==g){var Zn=this.handlers;return b(V(dn),function(fi){Tn?Zn[fi]&&Zn[fi].splice(U(Zn[fi],Tn),1):delete Zn[fi]}),this}},emit:function(dn,Tn){this.options.domEvents&&function vi(dn,Tn){var Zn=I.createEvent("Event");Zn.initEvent(dn,!0,!0),Zn.gesture=Tn,Tn.target.dispatchEvent(Zn)}(dn,Tn);var Zn=this.handlers[dn]&&this.handlers[dn].slice();if(Zn&&Zn.length){Tn.type=dn,Tn.preventDefault=function(){Tn.srcEvent.preventDefault()};for(var fi=0;fi<Zn.length;)Zn[fi](Tn),fi++}},destroy:function(){this.element&&jn(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},E(_o,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:24,DIRECTION_ALL:30,Manager:en,Input:Ne,TouchAction:vn,TouchInput:ki,MouseInput:Ve,PointerEventInput:dt,TouchMouseInput:En,SingleTouchInput:mn,Recognizer:Sr,AttrRecognizer:mo,Tap:lo,Pan:Mr,Swipe:Xr,Pinch:po,Rotate:ar,Press:mi,on:P,off:B,each:b,merge:O,extend:S,assign:E,inherit:w,bindFn:T,prefixed:J}),(typeof c<"u"?c:typeof self<"u"?self:{}).Hammer=_o,(o=function(){return _o}.call(he,u,he,Rn))!==g&&(Rn.exports=o)}(window,document)},4572:(Rn,he,u)=>{"use strict";u.d(he,{a:()=>a});var o=u(9056);function c(p){return null==p}function I(p){return"string"==typeof p}function C(p){return void 0===p}var g={onComponentDidMount:1,onComponentDidUpdate:1,onComponentShouldUpdate:1,onComponentWillMount:1,onComponentWillUnmount:1,onComponentWillUpdate:1};function a(p,s,l){var h,E,d=arguments,v=null,x=null,b=null,y=0,S=arguments.length-2;if(1===S)h=l;else if(S>1)for(h=[];S-- >0;)h[S]=d[S+2];if(!I(p)){if(y=2,C(h)||(s||(s={}),s.children=h),!c(s))for(var w in E={},s)"key"===w?x=s.key:"ref"===w?v=s.ref:1===g[w]?(v||(v={}),v[w]=s[w]):E[w]=s[w];return(0,o.Iz)(y,p,E,x,v)}if(y=(0,o.Dm)(p),!c(s))for(var O in E={},s)"className"===O||"class"===O?b=s[O]:"key"===O?x=s.key:"children"===O&&C(h)?h=s.children:"ref"===O?v=s.ref:("contenteditable"===O&&(y|=4096),E[O]=s[O]);return 8192&y?(0,o.xJ)(1===S?[h]:h,0,x):(0,o.Wm)(y,p,b,h,0,E,x,v)}},9056:(Rn,he,u)=>{"use strict";u.d(he,{wA:()=>Nn,kT:()=>x,NK:()=>Si,Cc:()=>pe,_M:()=>dr,_7:()=>mo,_2:()=>Qr,vc:()=>po,w7:()=>Pn,j4:()=>Wn,F1:()=>Yi,Iz:()=>oe,xJ:()=>Te,Vf:()=>En,Wm:()=>q,lN:()=>P,Dm:()=>ce,vs:()=>Be,sY:()=>zt,k4:()=>hn});var o=Array.isArray;function c(ot){var Bt=typeof ot;return"string"===Bt||"number"===Bt}function I(ot){return null==ot}function C(ot){return null===ot||!1===ot||!0===ot||void 0===ot}function g(ot){return"function"==typeof ot}function a(ot){return"string"==typeof ot}function s(ot){return null===ot}function l(ot){return void 0===ot}function d(ot,Bt){var nn={};if(ot)for(var On in ot)nn[On]=ot[On];if(Bt)for(var nt in Bt)nn[nt]=Bt[nt];return nn}function v(ot){return!s(ot)&&"object"==typeof ot}var x={};function y(ot){return ot.substr(2).toLowerCase()}function E(ot,Bt){ot.appendChild(Bt)}function S(ot,Bt,nn){s(nn)?E(ot,Bt):ot.insertBefore(Bt,nn)}function T(ot,Bt){ot.removeChild(Bt)}function k(ot){for(var Bt=0;Bt<ot.length;Bt++)ot[Bt]()}function R(ot,Bt,nn){var On=ot.children;return 4&nn?On.$LI:8192&nn?2===ot.childFlags?On:On[Bt?0:On.length-1]:On}function P(ot,Bt){for(var nn;ot;){if(2033&(nn=ot.flags))return ot.dom;ot=R(ot,Bt,nn)}return null}function B(ot,Bt){do{var nn=ot.flags;if(2033&nn)return void T(Bt,ot.dom);var On=ot.children;if(4&nn&&(ot=On.$LI),8&nn&&(ot=On),8192&nn){if(2!==ot.childFlags){for(var nt=0,Rt=On.length;nt<Rt;++nt)B(On[nt],Bt);return}ot=On}}while(ot)}function W(ot,Bt,nn){do{var On=ot.flags;if(2033&On)return void S(Bt,ot.dom,nn);var nt=ot.children;if(4&On&&(ot=nt.$LI),8&On&&(ot=nt),8192&On){if(2!==ot.childFlags){for(var Rt=0,pt=nt.length;Rt<pt;++Rt)W(nt[Rt],Bt,nn);return}ot=nt}}while(ot)}function z(ot,Bt,nn){return ot.constructor.getDerivedStateFromProps?d(nn,ot.constructor.getDerivedStateFromProps(Bt,nn)):nn}var V={v:!1},U={componentComparator:null,createVNode:null,renderComplete:null};function K(ot,Bt){ot.textContent=Bt}function Y(ot,Bt){return v(ot)&&ot.event===Bt.event&&ot.data===Bt.data}function J(ot,Bt){for(var nn in Bt)l(ot[nn])&&(ot[nn]=Bt[nn]);return ot}function j(ot,Bt){return!!g(ot)&&(ot(Bt),!0)}function G(ot,Bt,nn,On,nt,Rt,pt,jt){this.childFlags=ot,this.children=Bt,this.className=nn,this.dom=null,this.flags=On,this.key=void 0===nt?null:nt,this.props=void 0===Rt?null:Rt,this.ref=void 0===pt?null:pt,this.type=jt}function q(ot,Bt,nn,On,nt,Rt,pt,jt){var Un=void 0===nt?1:nt,oi=new G(Un,On,nn,ot,pt,Rt,jt,Bt);return U.createVNode&&U.createVNode(oi),0===Un&&le(oi,oi.children),oi}function oe(ot,Bt,nn,On,nt){ot=function M(ot,Bt){return 12&ot?ot:Bt.prototype&&Bt.prototype.render?4:Bt.render?32776:8}(ot,Bt);var Rt=new G(1,null,null,ot,On,function X(ot,Bt,nn){var On=(32768&ot?Bt.render:Bt).defaultProps;return I(On)?nn:I(nn)?d(On,null):J(nn,On)}(ot,Bt,nn),function Z(ot,Bt,nn){if(4&ot)return nn;var On=(32768&ot?Bt.render:Bt).defaultHooks;return I(On)?nn:I(nn)?On:J(nn,On)}(ot,Bt,nt),Bt);return U.createVNode&&U.createVNode(Rt),Rt}function fe(ot,Bt){return new G(1,I(ot)||!0===ot||!1===ot?"":ot,null,16,Bt,null,null,null)}function Te(ot,Bt,nn){var On=q(8192,8192,null,ot,Bt,null,nn,null);switch(On.childFlags){case 1:On.children=_e(),On.childFlags=2;break;case 16:On.children=[fe(ot)],On.childFlags=4}return On}function Be(ot){var Bt=ot.props;if(Bt){var nn=ot.flags;481&nn&&(void 0!==Bt.children&&I(ot.children)&&le(ot,Bt.children),void 0!==Bt.className&&(I(ot.className)&&(ot.className=Bt.className||null),Bt.className=void 0)),void 0!==Bt.key&&(ot.key=Bt.key,Bt.key=void 0),void 0!==Bt.ref&&(ot.ref=8&nn?d(ot.ref,Bt.ref):Bt.ref,Bt.ref=void 0)}return ot}function ae(ot){var Bt=-16385&ot.flags,nn=ot.props;if(14&Bt&&!s(nn)){var On=nn;for(var nt in nn={},On)nn[nt]=On[nt]}return 8192&Bt?function ze(ot){var Bt=ot.children,nn=ot.childFlags;return Te(2===nn?ae(Bt):Bt.map(ae),nn,ot.key)}(ot):new G(ot.childFlags,ot.children,ot.className,Bt,ot.key,nn,ot.ref,ot.type)}function _e(){return fe("",null)}function ne(ot,Bt,nn,On){for(var nt=ot.length;nn<nt;nn++){var Rt=ot[nn];if(!C(Rt)){var pt=On+"$"+nn;if(o(Rt))ne(Rt,Bt,0,pt);else{if(c(Rt))Rt=fe(Rt,pt);else{var jt=Rt.key,Un=a(jt)&&"$"===jt[0];(81920&Rt.flags||Un)&&(Rt=ae(Rt)),Rt.flags|=65536,Un?jt.substring(0,On.length)!==On&&(Rt.key=On+jt):Rt.key=s(jt)?pt:On+jt}Bt.push(Rt)}}}}function ce(ot){switch(ot){case"svg":return 32;case"input":return 64;case"select":return 256;case"textarea":return 128;case"$F":return 8192;default:return 1}}function le(ot,Bt){var nn,On=1;if(C(Bt))nn=Bt;else if(c(Bt))On=16,nn=Bt;else if(o(Bt)){for(var nt=Bt.length,Rt=0;Rt<nt;++Rt){var pt=Bt[Rt];if(C(pt)||o(pt)){nn=nn||Bt.slice(0,Rt),ne(Bt,nn,Rt,"");break}if(c(pt))(nn=nn||Bt.slice(0,Rt)).push(fe(pt,"$"+Rt));else{var jt=pt.key,Un=(81920&pt.flags)>0,oi=s(jt),xi=a(jt)&&"$"===jt[0];Un||oi||xi?(nn=nn||Bt.slice(0,Rt),(Un||xi)&&(pt=ae(pt)),(oi||xi)&&(pt.key="$"+Rt),nn.push(pt)):nn&&nn.push(pt),pt.flags|=65536}}On=0===(nn=nn||Bt).length?1:8}else(nn=Bt).flags|=65536,81920&Bt.flags&&(nn=ae(Bt)),On=2;return ot.children=nn,ot.childFlags=On,ot}function pe(ot){return C(ot)||c(ot)?fe(ot,null):o(ot)?Te(ot,0,null):16384&ot.flags?ae(ot):ot}var Se="http://www.w3.org/1999/xlink",re="http://www.w3.org/XML/1998/namespace",te={"xlink:actuate":Se,"xlink:arcrole":Se,"xlink:href":Se,"xlink:role":Se,"xlink:show":Se,"xlink:title":Se,"xlink:type":Se,"xml:base":re,"xml:lang":re,"xml:space":re};function ie(ot){return{onClick:ot,onDblClick:ot,onFocusIn:ot,onFocusOut:ot,onKeyDown:ot,onKeyPress:ot,onKeyUp:ot,onMouseDown:ot,onMouseMove:ot,onMouseUp:ot,onTouchEnd:ot,onTouchMove:ot,onTouchStart:ot}}var ue=ie(0),be=ie(null),Ae=ie(!0);function Ne(ot,Bt){var nn=Bt.$EV;return nn||(nn=Bt.$EV=ie(null)),nn[ot]||1==++ue[ot]&&(be[ot]=function Ye(ot){var Bt="onClick"===ot||"onDblClick"===ot?function Ce(ot){return function(Bt){0===Bt.button?gt(Bt,!0,ot,ge(Bt)):Bt.stopPropagation()}}(ot):function De(ot){return function(Bt){gt(Bt,!1,ot,ge(Bt))}}(ot);return document.addEventListener(y(ot),Bt),Bt}(ot)),nn}function mt(ot,Bt){var nn=Bt.$EV;nn&&nn[ot]&&(0==--ue[ot]&&(document.removeEventListener(y(ot),be[ot]),be[ot]=null),nn[ot]=null)}function gt(ot,Bt,nn,On){var nt=function Le(ot){return g(ot.composedPath)?ot.composedPath()[0]:ot.target}(ot);do{if(Bt&&nt.disabled)return;var Rt=nt.$EV;if(Rt){var pt=Rt[nn];if(pt&&(On.dom=nt,pt.event?pt.event(pt.data,ot):pt(ot),ot.cancelBubble))return}nt=nt.parentNode}while(!s(nt))}function tn(){this.cancelBubble=!0,this.immediatePropagationStopped||this.stopImmediatePropagation()}function Pe(){return this.defaultPrevented}function $e(){return this.cancelBubble}function ge(ot){var Bt={dom:document};return ot.isDefaultPrevented=Pe,ot.isPropagationStopped=$e,ot.stopPropagation=tn,Object.defineProperty(ot,"currentTarget",{configurable:!0,get:function(){return Bt.dom}}),Bt}function yt(ot,Bt,nn){if(ot[Bt]){var On=ot[Bt];On.event?On.event(On.data,nn):On(nn)}else{var nt=Bt.toLowerCase();ot[nt]&&ot[nt](nn)}}function kt(ot,Bt){var nn=function(On){var nt=this.$V;if(nt){var Rt=nt.props||x,pt=nt.dom;if(a(ot))yt(Rt,ot,On);else for(var jt=0;jt<ot.length;++jt)yt(Rt,ot[jt],On);if(g(Bt)){var Un=this.$V;Bt(Un.props||x,pt,!1,Un)}}};return Object.defineProperty(nn,"wrapped",{configurable:!1,enumerable:!1,value:!0,writable:!1}),nn}function gn(ot,Bt,nn){var On="$"+Bt,nt=ot[On];if(nt){if(nt[1].wrapped)return;ot.removeEventListener(nt[0],nt[1]),ot[On]=null}g(nn)&&(ot.addEventListener(Bt,nn),ot[On]=[Bt,nn])}function ut(ot){return"checkbox"===ot||"radio"===ot}var Ve=kt("onInput",lt),St=kt(["onClick","onChange"],lt);function Xe(ot){ot.stopPropagation()}function lt(ot,Bt){var nn=ot.type,On=ot.value,nt=ot.checked,Rt=ot.multiple,pt=ot.defaultValue,jt=!I(On);nn&&nn!==Bt.type&&Bt.setAttribute("type",nn),!I(Rt)&&Rt!==Bt.multiple&&(Bt.multiple=Rt),!I(pt)&&!jt&&(Bt.defaultValue=pt+""),ut(nn)?(jt&&(Bt.value=On),I(nt)||(Bt.checked=nt)):jt&&Bt.value!==On?(Bt.defaultValue=On,Bt.value=On):I(nt)||(Bt.checked=nt)}function dt(ot,Bt){if("option"===ot.type)!function vt(ot,Bt){var nn=ot.props||x,On=ot.dom;On.value=nn.value,nn.value===Bt||o(Bt)&&-1!==Bt.indexOf(nn.value)?On.selected=!0:(!I(Bt)||!I(nn.selected))&&(On.selected=nn.selected||!1)}(ot,Bt);else{var nn=ot.children,On=ot.flags;if(4&On)dt(nn.$LI,Bt);else if(8&On)dt(nn,Bt);else if(2===ot.childFlags)dt(nn,Bt);else if(12&ot.childFlags)for(var nt=0,Rt=nn.length;nt<Rt;++nt)dt(nn[nt],Bt)}}Xe.wrapped=!0;var Lt=kt("onChange",mn);function mn(ot,Bt,nn,On){var nt=Boolean(ot.multiple);!I(ot.multiple)&&nt!==Bt.multiple&&(Bt.multiple=nt);var Rt=ot.selectedIndex;if(-1===Rt&&(Bt.selectedIndex=-1),1!==On.childFlags){var jt=ot.value;(function p(ot){return"number"==typeof ot})(Rt)&&Rt>-1&&Bt.options[Rt]&&(jt=Bt.options[Rt].value),nn&&I(jt)&&(jt=ot.defaultValue),dt(On,jt)}}var xn=kt("onInput",ki),Xn=kt("onChange");function ki(ot,Bt,nn){var On=ot.value,nt=Bt.value;if(I(On)){if(nn){var Rt=ot.defaultValue;!I(Rt)&&Rt!==nt&&(Bt.defaultValue=Rt,Bt.value=Rt)}}else nt!==On&&(Bt.defaultValue=On,Bt.value=On)}function Vn(ot,Bt,nn,On,nt,Rt){64&ot?lt(On,nn):256&ot?mn(On,nn,nt,Bt):128&ot&&ki(On,nn,nt),Rt&&(nn.$V=Bt)}function Hn(ot){return ot.type&&ut(ot.type)?!I(ot.checked):!I(ot.value)}function En(){return{current:null}}function ei(ot){ot&&!j(ot,null)&&ot.current&&(ot.current=null)}function Wn(ot,Bt,nn){ot&&(g(ot)||void 0!==ot.current)&&nn.push(function(){!j(ot,Bt)&&void 0!==ot.current&&(ot.current=Bt)})}function Ji(ot,Bt){Sn(ot),B(ot,Bt)}function Sn(ot){var On,Bt=ot.flags,nn=ot.children;if(481&Bt){var nt=ot.props;ei(On=ot.ref);var Rt=ot.childFlags;if(!s(nt))for(var pt=Object.keys(nt),jt=0,Un=pt.length;jt<Un;jt++){var oi=pt[jt];Ae[oi]&&mt(oi,ot.dom)}12&Rt?Qn(nn):2===Rt&&Sn(nn)}else nn&&(4&Bt?(g(nn.componentWillUnmount)&&nn.componentWillUnmount(),ei(ot.ref),nn.$UN=!0,Sn(nn.$LI)):8&Bt?(!I(On=ot.ref)&&g(On.onComponentWillUnmount)&&On.onComponentWillUnmount(P(ot,!0),ot.props||x),Sn(nn)):1024&Bt?Ji(nn,ot.ref):8192&Bt&&12&ot.childFlags&&Qn(nn))}function Qn(ot){for(var Bt=0,nn=ot.length;Bt<nn;++Bt)Sn(ot[Bt])}function ti(ot){ot.textContent=""}function ci(ot,Bt,nn){Qn(nn),8192&Bt.flags?B(Bt,ot):ti(ot)}function vn(ot,Bt,nn,On,nt,Rt,pt){switch(ot){case"children":case"childrenType":case"className":case"defaultValue":case"key":case"multiple":case"ref":case"selectedIndex":break;case"autoFocus":On.autofocus=!!nn;break;case"allowfullscreen":case"autoplay":case"capture":case"checked":case"controls":case"default":case"disabled":case"hidden":case"indeterminate":case"loop":case"muted":case"novalidate":case"open":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"selected":On[ot]=!!nn;break;case"defaultChecked":case"value":case"volume":if(Rt&&"value"===ot)break;var jt=I(nn)?"":nn;On[ot]!==jt&&(On[ot]=jt);break;case"style":!function nr(ot,Bt,nn){if(I(Bt))nn.removeAttribute("style");else{var nt,Rt,On=nn.style;if(a(Bt))On.cssText=Bt;else if(I(ot)||a(ot))for(nt in Bt)On.setProperty(nt,Rt=Bt[nt]);else{for(nt in Bt)(Rt=Bt[nt])!==ot[nt]&&On.setProperty(nt,Rt);for(nt in ot)I(Bt[nt])&&On.removeProperty(nt)}}}(Bt,nn,On);break;case"dangerouslySetInnerHTML":!function xr(ot,Bt,nn,On){var Rt=Bt&&Bt.__html||"";(ot&&ot.__html||"")!==Rt&&!I(Rt)&&!function bt(ot,Bt){var nn=document.createElement("i");return nn.innerHTML=Bt,nn.innerHTML===ot.innerHTML}(On,Rt)&&(s(nn)||(12&nn.childFlags?Qn(nn.children):2===nn.childFlags&&Sn(nn.children),nn.children=null,nn.childFlags=1),On.innerHTML=Rt)}(Bt,nn,pt,On);break;default:Ae[ot]?function tt(ot,Bt,nn,On){if(g(nn))Ne(ot,On)[ot]=nn;else if(v(nn)){if(Y(Bt,nn))return;Ne(ot,On)[ot]=nn}else mt(ot,On)}(ot,Bt,nn,On):111===ot.charCodeAt(0)&&110===ot.charCodeAt(1)?function qi(ot,Bt,nn,On){if(v(nn)){if(Y(Bt,nn))return;nn=function Wi(ot){var Bt=ot.event;return function(nn){Bt(ot.data,nn)}}(nn)}gn(On,y(ot),nn)}(ot,Bt,nn,On):I(nn)?On.removeAttribute(ot):nt&&te[ot]?On.setAttributeNS(te[ot],ot,nn):On.setAttribute(ot,nn)}}function Pn(ot,Bt,nn,On,nt){var Rt=!1,pt=(448&Bt)>0;for(var jt in pt&&(Rt=Hn(nn))&&function Oi(ot,Bt,nn){64&ot?function Vt(ot,Bt){ut(Bt.type)?(gn(ot,"change",St),gn(ot,"click",Xe)):gn(ot,"input",Ve)}(Bt,nn):256&ot?function bn(ot){gn(ot,"change",Lt)}(Bt):128&ot&&function li(ot,Bt){gn(ot,"input",xn),Bt.onChange&&gn(ot,"change",Xn)}(Bt,nn)}(Bt,On,nn),nn)vn(jt,null,nn[jt],On,nt,Rt,null);pt&&Vn(Bt,ot,On,nn,!0,Rt)}function hi(ot,Bt,nn){var On=pe(ot.render(Bt,ot.state,nn)),nt=nn;return g(ot.getChildContext)&&(nt=d(nn,ot.getChildContext())),ot.$CX=nt,On}function Si(ot,Bt,nn,On,nt,Rt){var pt=new Bt(nn,On),jt=pt.$N=Boolean(Bt.getDerivedStateFromProps||pt.getSnapshotBeforeUpdate);if(pt.$SVG=nt,pt.$L=Rt,ot.children=pt,pt.$BS=!1,pt.context=On,pt.props===x&&(pt.props=nn),jt)pt.state=z(pt,nn,pt.state);else if(g(pt.componentWillMount)){pt.$BR=!0,pt.componentWillMount();var Un=pt.$PS;if(!s(Un)){var oi=pt.state;if(s(oi))pt.state=Un;else for(var xi in Un)oi[xi]=Un[xi];pt.$PS=null}pt.$BR=!1}return pt.$LI=hi(pt,nn,On),pt}function Yi(ot,Bt){var nn=ot.props||x;return 32768&ot.flags?ot.type.render(nn,ot.ref,Bt):ot.type(nn,Bt)}function dr(ot,Bt,nn,On,nt,Rt){var pt=ot.flags|=16384;481&pt?Qr(ot,Bt,nn,On,nt,Rt):4&pt?function Wr(ot,Bt,nn,On,nt,Rt){var pt=Si(ot,ot.type,ot.props||x,nn,On,Rt);dr(pt.$LI,Bt,pt.$CX,On,nt,Rt),mo(ot.ref,pt,Rt)}(ot,Bt,nn,On,nt,Rt):8&pt?(function Ur(ot,Bt,nn,On,nt,Rt){dr(ot.children=pe(Yi(ot,nn)),Bt,nn,On,nt,Rt)}(ot,Bt,nn,On,nt,Rt),po(ot,Rt)):512&pt||16&pt?Gr(ot,Bt,nt):8192&pt?function Nr(ot,Bt,nn,On,nt,Rt){var pt=ot.children,jt=ot.childFlags;12&jt&&0===pt.length&&(jt=ot.childFlags=2,pt=ot.children=_e()),2===jt?dr(pt,nn,Bt,On,nt,Rt):Sr(pt,nn,Bt,On,nt,Rt)}(ot,nn,Bt,On,nt,Rt):1024&pt&&function kr(ot,Bt,nn,On,nt){dr(ot.children,ot.ref,Bt,!1,null,nt);var Rt=_e();Gr(Rt,nn,On),ot.dom=Rt.dom}(ot,nn,Bt,nt,Rt)}function Gr(ot,Bt,nn){var On=ot.dom=document.createTextNode(ot.children);s(Bt)||S(Bt,On,nn)}function Qr(ot,Bt,nn,On,nt,Rt){var pt=ot.flags,jt=ot.props,Un=ot.className,oi=ot.childFlags,xi=ot.dom=function O(ot,Bt){return Bt?document.createElementNS("http://www.w3.org/2000/svg",ot):document.createElement(ot)}(ot.type,On=On||(32&pt)>0),Ai=ot.children;if(!I(Un)&&""!==Un&&(On?xi.setAttribute("class",Un):xi.className=Un),16===oi)K(xi,Ai);else if(1!==oi){var Ui=On&&"foreignObject"!==ot.type;2===oi?(16384&Ai.flags&&(ot.children=Ai=ae(Ai)),dr(Ai,xi,nn,Ui,null,Rt)):(8===oi||4===oi)&&Sr(Ai,xi,nn,Ui,null,Rt)}s(Bt)||S(Bt,xi,nt),s(jt)||Pn(ot,pt,jt,xi,On),Wn(ot.ref,xi,Rt)}function Sr(ot,Bt,nn,On,nt,Rt){for(var pt=0;pt<ot.length;++pt){var jt=ot[pt];16384&jt.flags&&(ot[pt]=jt=ae(jt)),dr(jt,Bt,nn,On,nt,Rt)}}function mo(ot,Bt,nn){Wn(ot,Bt,nn),g(Bt.componentDidMount)&&nn.push(function Rr(ot){return function(){ot.componentDidMount()}}(Bt))}function po(ot,Bt){var nn=ot.ref;I(nn)||(j(nn.onComponentWillMount,ot.props||x),g(nn.onComponentDidMount)&&Bt.push(function Mr(ot,Bt){return function(){ot.onComponentDidMount(P(Bt,!0),Bt.props||x)}}(nn,ot)))}function ar(ot,Bt,nn,On,nt,Rt,pt){var jt=Bt.flags|=16384;ot.flags!==jt||ot.type!==Bt.type||ot.key!==Bt.key||2048&jt?16384&ot.flags?function mi(ot,Bt,nn,On,nt,Rt){Sn(ot),Bt.flags&ot.flags&2033?(dr(Bt,null,On,nt,null,Rt),function w(ot,Bt,nn){ot.replaceChild(Bt,nn)}(nn,Bt.dom,ot.dom)):(dr(Bt,nn,On,nt,P(ot,!0),Rt),B(ot,nn))}(ot,Bt,nn,On,nt,pt):dr(Bt,nn,On,nt,Rt,pt):481&jt?function It(ot,Bt,nn,On,nt,Rt){var Ai,pt=Bt.dom=ot.dom,jt=ot.props,Un=Bt.props,oi=!1,xi=!1;if(On=On||(32&nt)>0,jt!==Un){var Ui=jt||x;if((Ai=Un||x)!==x)for(var ji in(oi=(448&nt)>0)&&(xi=Hn(Ai)),Ai){var Qi=Ui[ji],Tr=Ai[ji];Qi!==Tr&&vn(ji,Qi,Tr,pt,On,xi,ot)}if(Ui!==x)for(var br in Ui)I(Ai[br])&&!I(Ui[br])&&vn(br,Ui[br],null,pt,On,xi,ot)}var oo=Bt.children,ro=Bt.className;ot.className!==ro&&(I(ro)?pt.removeAttribute("class"):On?pt.setAttribute("class",ro):pt.className=ro),4096&nt?function lo(ot,Bt){ot.textContent!==Bt&&(ot.textContent=Bt)}(pt,oo):jn(ot.childFlags,Bt.childFlags,ot.children,oo,pt,nn,On&&"foreignObject"!==Bt.type,null,ot,Rt),oi&&Vn(nt,Bt,pt,Ai,!1,xi);var No=Bt.ref,uo=ot.ref;uo!==No&&(ei(uo),Wn(No,pt,Rt))}(ot,Bt,On,nt,jt,pt):4&jt?function dn(ot,Bt,nn,On,nt,Rt,pt){var jt=Bt.children=ot.children;if(!s(jt)){jt.$L=pt;var Un=Bt.props||x,oi=Bt.ref,xi=ot.ref,Ai=jt.state;if(!jt.$N){if(g(jt.componentWillReceiveProps)){if(jt.$BR=!0,jt.componentWillReceiveProps(Un,On),jt.$UN)return;jt.$BR=!1}s(jt.$PS)||(Ai=d(Ai,jt.$PS),jt.$PS=null)}_i(jt,Ai,Un,nn,On,nt,!1,Rt,pt),xi!==oi&&(ei(xi),Wn(oi,jt,pt))}}(ot,Bt,nn,On,nt,Rt,pt):8&jt?function Tn(ot,Bt,nn,On,nt,Rt,pt){var jt=!0,Un=Bt.props||x,oi=Bt.ref,xi=ot.props,Ai=!I(oi),Ui=ot.children;if(Ai&&g(oi.onComponentShouldUpdate)&&(jt=oi.onComponentShouldUpdate(xi,Un)),!1!==jt){Ai&&g(oi.onComponentWillUpdate)&&oi.onComponentWillUpdate(xi,Un);var ji=pe(Yi(Bt,On));ar(Ui,ji,nn,On,nt,Rt,pt),Bt.children=ji,Ai&&g(oi.onComponentDidUpdate)&&oi.onComponentDidUpdate(xi,Un)}else Bt.children=Ui}(ot,Bt,nn,On,nt,Rt,pt):16&jt?function Zn(ot,Bt){var nn=Bt.children,On=Bt.dom=ot.dom;nn!==ot.children&&(On.nodeValue=nn)}(ot,Bt):512&jt?Bt.dom=ot.dom:8192&jt?function _o(ot,Bt,nn,On,nt,Rt){var pt=ot.children,jt=Bt.children,Un=ot.childFlags,oi=Bt.childFlags,xi=null;12&oi&&0===jt.length&&(oi=Bt.childFlags=2,jt=Bt.children=_e());var Ai=0!=(2&oi);if(12&Un){var Ui=pt.length;(8&Un&&8&oi||Ai||!Ai&&jt.length>Ui)&&(xi=P(pt[Ui-1],!1).nextSibling)}jn(Un,oi,pt,jt,nn,On,nt,xi,ot,Rt)}(ot,Bt,nn,On,nt,pt):function bo(ot,Bt,nn,On){var nt=ot.ref,Rt=Bt.ref,pt=Bt.children;if(jn(ot.childFlags,Bt.childFlags,ot.children,pt,nt,nn,!1,null,ot,On),Bt.dom=ot.dom,nt!==Rt&&!C(pt)){var jt=pt.dom;T(nt,jt),E(Rt,jt)}}(ot,Bt,On,pt)}function jn(ot,Bt,nn,On,nt,Rt,pt,jt,Un,oi){switch(ot){case 2:switch(Bt){case 2:ar(nn,On,nt,Rt,pt,jt,oi);break;case 1:Ji(nn,nt);break;case 16:Sn(nn),K(nt,On);break;default:!function en(ot,Bt,nn,On,nt,Rt){Sn(ot),Sr(Bt,nn,On,nt,P(ot,!0),Rt),B(ot,nn)}(nn,On,nt,Rt,pt,oi)}break;case 1:switch(Bt){case 2:dr(On,nt,Rt,pt,jt,oi);break;case 1:break;case 16:K(nt,On);break;default:Sr(On,nt,Rt,pt,jt,oi)}break;case 16:switch(Bt){case 16:!function Xr(ot,Bt,nn){ot!==Bt&&(""!==ot?nn.firstChild.nodeValue=Bt:K(nn,Bt))}(nn,On,nt);break;case 2:ti(nt),dr(On,nt,Rt,pt,jt,oi);break;case 1:ti(nt);break;default:ti(nt),Sr(On,nt,Rt,pt,jt,oi)}break;default:switch(Bt){case 16:Qn(nn),K(nt,On);break;case 2:ci(nt,Un,nn),dr(On,nt,Rt,pt,jt,oi);break;case 1:ci(nt,Un,nn);break;default:var xi=0|nn.length,Ai=0|On.length;0===xi?Ai>0&&Sr(On,nt,Rt,pt,jt,oi):0===Ai?ci(nt,Un,nn):8===Bt&&8===ot?function Li(ot,Bt,nn,On,nt,Rt,pt,jt,Un,oi){var Tr,br,xi=Rt-1,Ai=pt-1,Ui=0,ji=ot[Ui],Qi=Bt[Ui];e:{for(;ji.key===Qi.key;){if(16384&Qi.flags&&(Bt[Ui]=Qi=ae(Qi)),ar(ji,Qi,nn,On,nt,jt,oi),ot[Ui]=Qi,++Ui>xi||Ui>Ai)break e;ji=ot[Ui],Qi=Bt[Ui]}for(ji=ot[xi],Qi=Bt[Ai];ji.key===Qi.key;){if(16384&Qi.flags&&(Bt[Ai]=Qi=ae(Qi)),ar(ji,Qi,nn,On,nt,jt,oi),ot[xi]=Qi,Ai--,Ui>--xi||Ui>Ai)break e;ji=ot[xi],Qi=Bt[Ai]}}if(Ui>xi){if(Ui<=Ai)for(br=(Tr=Ai+1)<pt?P(Bt[Tr],!0):jt;Ui<=Ai;)16384&(Qi=Bt[Ui]).flags&&(Bt[Ui]=Qi=ae(Qi)),++Ui,dr(Qi,nn,On,nt,br,oi)}else if(Ui>Ai)for(;Ui<=xi;)Ji(ot[Ui++],nn);else!function sr(ot,Bt,nn,On,nt,Rt,pt,jt,Un,oi,xi,Ai,Ui){var ji,Qi,Tr,br=0,oo=jt,ro=jt,No=Rt-jt+1,uo=pt-jt+1,$o=new Int32Array(uo+1),pa=No===On,ra=!1,wo=0,Uo=0;if(nt<4||(No|uo)<32)for(br=oo;br<=Rt;++br)if(ji=ot[br],Uo<uo){for(jt=ro;jt<=pt;jt++)if(ji.key===(Qi=Bt[jt]).key){if($o[jt-ro]=br+1,pa)for(pa=!1;oo<br;)Ji(ot[oo++],Un);wo>jt?ra=!0:wo=jt,16384&Qi.flags&&(Bt[jt]=Qi=ae(Qi)),ar(ji,Qi,Un,nn,oi,xi,Ui),++Uo;break}!pa&&jt>pt&&Ji(ji,Un)}else pa||Ji(ji,Un);else{var Ao={};for(br=ro;br<=pt;++br)Ao[Bt[br].key]=br;for(br=oo;br<=Rt;++br)if(ji=ot[br],Uo<uo)if(void 0!==(jt=Ao[ji.key])){if(pa)for(pa=!1;br>oo;)Ji(ot[oo++],Un);$o[jt-ro]=br+1,wo>jt?ra=!0:wo=jt,16384&(Qi=Bt[jt]).flags&&(Bt[jt]=Qi=ae(Qi)),ar(ji,Qi,Un,nn,oi,xi,Ui),++Uo}else pa||Ji(ji,Un);else pa||Ji(ji,Un)}if(pa)ci(Un,Ai,ot),Sr(Bt,Un,nn,oi,xi,Ui);else if(ra){var Da=function Ze(ot){var Bt=0,nn=0,On=0,nt=0,Rt=0,pt=0,jt=0,Un=ot.length;for(Un>_n&&(_n=Un,gr=new Int32Array(Un),Qt=new Int32Array(Un));nn<Un;++nn)if(0!==(Bt=ot[nn])){if(ot[On=gr[nt]]<Bt){Qt[nn]=On,gr[++nt]=nn;continue}for(Rt=0,pt=nt;Rt<pt;)ot[gr[jt=Rt+pt>>1]]<Bt?Rt=jt+1:pt=jt;Bt<ot[gr[Rt]]&&(Rt>0&&(Qt[nn]=gr[Rt-1]),gr[Rt]=nn)}Rt=nt+1;var oi=new Int32Array(Rt);for(pt=gr[Rt-1];Rt-- >0;)oi[Rt]=pt,pt=Qt[pt],gr[Rt]=0;return oi}($o);for(jt=Da.length-1,br=uo-1;br>=0;br--)0===$o[br]?(16384&(Qi=Bt[wo=br+ro]).flags&&(Bt[wo]=Qi=ae(Qi)),dr(Qi,Un,nn,oi,(Tr=wo+1)<nt?P(Bt[Tr],!0):xi,Ui)):jt<0||br!==Da[jt]?W(Qi=Bt[wo=br+ro],Un,(Tr=wo+1)<nt?P(Bt[Tr],!0):xi):jt--}else if(Uo!==uo)for(br=uo-1;br>=0;br--)0===$o[br]&&(16384&(Qi=Bt[wo=br+ro]).flags&&(Bt[wo]=Qi=ae(Qi)),dr(Qi,Un,nn,oi,(Tr=wo+1)<nt?P(Bt[Tr],!0):xi,Ui))}(ot,Bt,On,Rt,pt,xi,Ai,Ui,nn,nt,jt,Un,oi)}(nn,On,nt,Rt,pt,xi,Ai,jt,Un,oi):function fi(ot,Bt,nn,On,nt,Rt,pt,jt,Un){for(var Ai,Ui,oi=Rt>pt?pt:Rt,xi=0;xi<oi;++xi)Ui=ot[xi],16384&(Ai=Bt[xi]).flags&&(Ai=Bt[xi]=ae(Ai)),ar(Ui,Ai,nn,On,nt,jt,Un),ot[xi]=Ai;if(Rt<pt)for(xi=oi;xi<pt;++xi)16384&(Ai=Bt[xi]).flags&&(Ai=Bt[xi]=ae(Ai)),dr(Ai,nn,On,nt,jt,Un);else if(Rt>pt)for(xi=oi;xi<Rt;++xi)Ji(ot[xi],nn)}(nn,On,nt,Rt,pt,xi,Ai,jt,oi)}}}function _i(ot,Bt,nn,On,nt,Rt,pt,jt,Un){var oi=ot.state,xi=ot.props,Ai=Boolean(ot.$N),Ui=g(ot.shouldComponentUpdate);if(Ai&&(Bt=z(ot,nn,Bt!==oi?d(oi,Bt):Bt)),pt||!Ui||Ui&&ot.shouldComponentUpdate(nn,Bt,nt)){!Ai&&g(ot.componentWillUpdate)&&ot.componentWillUpdate(nn,Bt,nt),ot.props=nn,ot.state=Bt,ot.context=nt;var ji=null,Qi=hi(ot,nn,nt);Ai&&g(ot.getSnapshotBeforeUpdate)&&(ji=ot.getSnapshotBeforeUpdate(xi,oi)),ar(ot.$LI,Qi,On,ot.$CX,Rt,jt,Un),ot.$LI=Qi,g(ot.componentDidUpdate)&&function vi(ot,Bt,nn,On,nt){nt.push(function(){ot.componentDidUpdate(Bt,nn,On)})}(ot,xi,oi,ji,Un)}else ot.props=nn,ot.state=Bt,ot.context=nt}var gr,Qt,_n=0;function zt(ot,Bt,nn,On){void 0===nn&&(nn=null),void 0===On&&(On=x),function ft(ot,Bt,nn,On){var nt=[],Rt=Bt.$V;V.v=!0,I(Rt)?I(ot)||(16384&ot.flags&&(ot=ae(ot)),dr(ot,Bt,On,!1,null,nt),Bt.$V=ot,Rt=ot):I(ot)?(Ji(Rt,Bt),Bt.$V=null):(16384&ot.flags&&(ot=ae(ot)),ar(Rt,ot,Bt,On,!1,null,nt),Rt=Bt.$V=ot),k(nt),V.v=!1,g(nn)&&nn(),g(U.renderComplete)&&U.renderComplete(Rt,Bt)}(ot,Bt,nn,On)}typeof document<"u"&&window.Node&&(Node.prototype.$EV=null,Node.prototype.$V=null);var Xt=[],fn=typeof Promise<"u"?Promise.resolve().then.bind(Promise.resolve()):function(ot){window.setTimeout(ot,0)},Ke=!1;function ht(ot,Bt,nn,On){var nt=ot.$PS;if(g(Bt)&&(Bt=Bt(nt?d(ot.state,nt):ot.state,ot.props,ot.context)),I(nt))ot.$PS=Bt;else for(var Rt in Bt)nt[Rt]=Bt[Rt];if(ot.$BR)g(nn)&&ot.$L.push(nn.bind(ot));else{if(!V.v&&0===Xt.length)return an(ot,On),void(g(nn)&&nn.call(ot));if(-1===Xt.indexOf(ot)&&Xt.push(ot),On&&(ot.$F=!0),Ke||(Ke=!0,fn(hn)),g(nn)){var pt=ot.$QU;pt||(pt=ot.$QU=[]),pt.push(nn)}}}function on(ot){for(var Bt=ot.$QU,nn=0;nn<Bt.length;++nn)Bt[nn].call(ot);ot.$QU=null}function hn(){var ot;for(Ke=!1;ot=Xt.shift();)if(!ot.$UN){var Bt=ot.$F;ot.$F=!1,an(ot,Bt),ot.$QU&&on(ot)}}function an(ot,Bt){if(Bt||!ot.$BR){var nn=ot.$PS;ot.$PS=null;var On=[];V.v=!0,_i(ot,d(ot.state,nn),ot.props,P(ot.$LI,!0).parentNode,ot.context,ot.$SVG,Bt,null,On),k(On),V.v=!1}else ot.state=ot.$PS,ot.$PS=null}var Nn=function(Bt,nn){this.state=null,this.$BR=!1,this.$BS=!0,this.$PS=null,this.$LI=null,this.$UN=!1,this.$CX=null,this.$QU=null,this.$N=!1,this.$L=null,this.$SVG=!1,this.$F=!1,this.props=Bt||x,this.context=nn||x};Nn.prototype.forceUpdate=function(Bt){this.$UN||ht(this,{},Bt,!0)},Nn.prototype.setState=function(Bt,nn){this.$UN||this.$BS||ht(this,Bt,nn,!1)},Nn.prototype.render=function(Bt,nn,On){return null}},7586:Rn=>{Rn.exports=function he(u,o,c){function I(a,p){if(!o[a]){if(!u[a]){if(C)return C(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var d=o[a]={exports:{}};u[a][0].call(d.exports,function(h){return I(u[a][1][h]||h)},d,d.exports,he,u,o,c)}return o[a].exports}for(var C=void 0,g=0;g<c.length;g++)I(c[g]);return I}({1:[function(he,u,o){"use strict";var c=he("./utils"),I=he("./support"),C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(g){for(var a,p,s,d,h,v,x=[],b=0,y=g.length,E=y,S="string"!==c.getTypeOf(g);b<g.length;)E=y-b,s=S?(a=g[b++],p=b<y?g[b++]:0,b<y?g[b++]:0):(a=g.charCodeAt(b++),p=b<y?g.charCodeAt(b++):0,b<y?g.charCodeAt(b++):0),d=(3&a)<<4|p>>4,h=1<E?(15&p)<<2|s>>6:64,v=2<E?63&s:64,x.push(C.charAt(a>>2)+C.charAt(d)+C.charAt(h)+C.charAt(v));return x.join("")},o.decode=function(g){var a,p,s,l,d,h,v=0,x=0,b="data:";if(g.substr(0,b.length)===b)throw new Error("Invalid base64 input, it looks like a data url.");var y,E=3*(g=g.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(g.charAt(g.length-1)===C.charAt(64)&&E--,g.charAt(g.length-2)===C.charAt(64)&&E--,E%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=I.uint8array?new Uint8Array(0|E):new Array(0|E);v<g.length;)a=C.indexOf(g.charAt(v++))<<2|(l=C.indexOf(g.charAt(v++)))>>4,p=(15&l)<<4|(d=C.indexOf(g.charAt(v++)))>>2,s=(3&d)<<6|(h=C.indexOf(g.charAt(v++))),y[x++]=a,64!==d&&(y[x++]=p),64!==h&&(y[x++]=s);return y}},{"./support":30,"./utils":32}],2:[function(he,u,o){"use strict";var c=he("./external"),I=he("./stream/DataWorker"),C=he("./stream/Crc32Probe"),g=he("./stream/DataLengthProbe");function a(p,s,l,d,h){this.compressedSize=p,this.uncompressedSize=s,this.crc32=l,this.compression=d,this.compressedContent=h}a.prototype={getContentWorker:function(){var p=new I(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new g("data_length")),s=this;return p.on("end",function(){if(this.streamInfo.data_length!==s.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new I(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(p,s,l){return p.pipe(new C).pipe(new g("uncompressedSize")).pipe(s.compressWorker(l)).pipe(new g("compressedSize")).withStreamInfo("compression",s)},u.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(he,u,o){"use strict";var c=he("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},o.DEFLATE=he("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(he,u,o){"use strict";var c=he("./utils"),I=function(){for(var C,g=[],a=0;a<256;a++){C=a;for(var p=0;p<8;p++)C=1&C?3988292384^C>>>1:C>>>1;g[a]=C}return g}();u.exports=function(C,g){return void 0!==C&&C.length?"string"!==c.getTypeOf(C)?function(a,p,s,l){var d=I,h=0+s;a^=-1;for(var v=0;v<h;v++)a=a>>>8^d[255&(a^p[v])];return-1^a}(0|g,C,C.length):function(a,p,s,l){var d=I,h=0+s;a^=-1;for(var v=0;v<h;v++)a=a>>>8^d[255&(a^p.charCodeAt(v))];return-1^a}(0|g,C,C.length):0}},{"./utils":32}],5:[function(he,u,o){"use strict";o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(he,u,o){"use strict";var c;c=typeof Promise<"u"?Promise:he("lie"),u.exports={Promise:c}},{lie:37}],7:[function(he,u,o){"use strict";var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",I=he("pako"),C=he("./utils"),g=he("./stream/GenericWorker"),a=c?"uint8array":"array";function p(s,l){g.call(this,"FlateWorker/"+s),this._pako=null,this._pakoAction=s,this._pakoOptions=l,this.meta={}}o.magic="\b\0",C.inherits(p,g),p.prototype.processChunk=function(s){this.meta=s.meta,null===this._pako&&this._createPako(),this._pako.push(C.transformTo(a,s.data),!1)},p.prototype.flush=function(){g.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new I[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var s=this;this._pako.onData=function(l){s.push({data:l,meta:s.meta})}},o.compressWorker=function(s){return new p("Deflate",s)},o.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(he,u,o){"use strict";function c(d,h){var v,x="";for(v=0;v<h;v++)x+=String.fromCharCode(255&d),d>>>=8;return x}function I(d,h,v,x,b,y){var E,S,O=d.file,w=d.compression,T=y!==a.utf8encode,k=C.transformTo("string",y(O.name)),R=C.transformTo("string",a.utf8encode(O.name)),P=O.comment,B=C.transformTo("string",y(P)),W=C.transformTo("string",a.utf8encode(P)),z=R.length!==O.name.length,V=W.length!==P.length,U="",K="",Y="",J=O.dir,j=O.date,ee={crc32:0,compressedSize:0,uncompressedSize:0};h&&!v||(ee.crc32=d.crc32,ee.compressedSize=d.compressedSize,ee.uncompressedSize=d.uncompressedSize);var G=0;h&&(G|=8),T||!z&&!V||(G|=2048);var M,fe,q=0,Z=0;J&&(q|=16),"UNIX"===b?(Z=798,q|=(fe=M=O.unixPermissions,M||(fe=J?16893:33204),(65535&fe)<<16)):(Z=20,q|=function(M){return 63&(M||0)}(O.dosPermissions)),E=j.getUTCHours(),E<<=6,E|=j.getUTCMinutes(),E<<=5,E|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),z&&(K=c(1,1)+c(p(k),4)+R,U+="up"+c(K.length,2)+K),V&&(Y=c(1,1)+c(p(B),4)+W,U+="uc"+c(Y.length,2)+Y);var X="";return X+="\n\0",X+=c(G,2),X+=w.magic,X+=c(E,2),X+=c(S,2),X+=c(ee.crc32,4),X+=c(ee.compressedSize,4),X+=c(ee.uncompressedSize,4),X+=c(k.length,2),X+=c(U.length,2),{fileRecord:s.LOCAL_FILE_HEADER+X+k+U,dirRecord:s.CENTRAL_FILE_HEADER+c(Z,2)+X+c(B.length,2)+"\0\0\0\0"+c(q,4)+c(x,4)+k+U+B}}var C=he("../utils"),g=he("../stream/GenericWorker"),a=he("../utf8"),p=he("../crc32"),s=he("../signature");function l(d,h,v,x){g.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=v,this.encodeFileName=x,this.streamFiles=d,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}C.inherits(l,g),l.prototype.push=function(d){var h=d.meta.percent||0,v=this.entriesCount,x=this._sources.length;this.accumulate?this.contentBuffer.push(d):(this.bytesWritten+=d.data.length,g.prototype.push.call(this,{data:d.data,meta:{currentFile:this.currentFile,percent:v?(h+100*(v-x-1))/v:100}}))},l.prototype.openedSource=function(d){this.currentSourceOffset=this.bytesWritten,this.currentFile=d.file.name;var h=this.streamFiles&&!d.file.dir;if(h){var v=I(d,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},l.prototype.closedSource=function(d){this.accumulate=!1;var x,h=this.streamFiles&&!d.file.dir,v=I(d,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),h)this.push({data:(x=d,s.DATA_DESCRIPTOR+c(x.crc32,4)+c(x.compressedSize,4)+c(x.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},l.prototype.flush=function(){for(var d=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var b,y,E,w,x=(b=this.dirRecords.length,y=this.bytesWritten-d,E=d,w=C.transformTo("string",(0,this.encodeFileName)(this.zipComment)),s.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(b,2)+c(b,2)+c(y,4)+c(E,4)+c(w.length,2)+w);this.push({data:x,meta:{percent:100}})},l.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},l.prototype.registerPrevious=function(d){this._sources.push(d);var h=this;return d.on("data",function(v){h.processChunk(v)}),d.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),d.on("error",function(v){h.error(v)}),this},l.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},l.prototype.error=function(d){var h=this._sources;if(!g.prototype.error.call(this,d))return!1;for(var v=0;v<h.length;v++)try{h[v].error(d)}catch{}return!0},l.prototype.lock=function(){g.prototype.lock.call(this);for(var d=this._sources,h=0;h<d.length;h++)d[h].lock()},u.exports=l},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(he,u,o){"use strict";var c=he("../compressions"),I=he("./ZipFileWorker");o.generateWorker=function(C,g,a){var p=new I(g.streamFiles,a,g.platform,g.encodeFileName),s=0;try{C.forEach(function(l,d){s++;var h=function(y,E){var S=y||E,O=c[S];if(!O)throw new Error(S+" is not a valid compression method !");return O}(d.options.compression,g.compression),x=d.dir,b=d.date;d._compressWorker(h,d.options.compressionOptions||g.compressionOptions||{}).withStreamInfo("file",{name:l,dir:x,date:b,comment:d.comment||"",unixPermissions:d.unixPermissions,dosPermissions:d.dosPermissions}).pipe(p)}),p.entriesCount=s}catch(l){p.error(l)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(he,u,o){"use strict";function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var I=new c;for(var C in this)"function"!=typeof this[C]&&(I[C]=this[C]);return I}}(c.prototype=he("./object")).loadAsync=he("./load"),c.support=he("./support"),c.defaults=he("./defaults"),c.version="3.10.1",c.loadAsync=function(I,C){return(new c).loadAsync(I,C)},c.external=he("./external"),u.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(he,u,o){"use strict";var c=he("./utils"),I=he("./external"),C=he("./utf8"),g=he("./zipEntries"),a=he("./stream/Crc32Probe"),p=he("./nodejsUtils");function s(l){return new I.Promise(function(d,h){var v=l.decompressed.getContentWorker().pipe(new a);v.on("error",function(x){h(x)}).on("end",function(){v.streamInfo.crc32!==l.decompressed.crc32?h(new Error("Corrupted zip : CRC32 mismatch")):d()}).resume()})}u.exports=function(l,d){var h=this;return d=c.extend(d||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:C.utf8decode}),p.isNode&&p.isStream(l)?I.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",l,!0,d.optimizedBinaryString,d.base64).then(function(v){var x=new g(d);return x.load(v),x}).then(function(v){var x=[I.Promise.resolve(v)],b=v.files;if(d.checkCRC32)for(var y=0;y<b.length;y++)x.push(s(b[y]));return I.Promise.all(x)}).then(function(v){for(var x=v.shift(),b=x.files,y=0;y<b.length;y++){var E=b[y],S=E.fileNameStr,O=c.resolve(E.fileNameStr);h.file(O,E.decompressed,{binary:!0,optimizedBinaryString:!0,date:E.date,dir:E.dir,comment:E.fileCommentStr.length?E.fileCommentStr:null,unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions,createFolders:d.createFolders}),E.dir||(h.file(O).unsafeOriginalName=S)}return x.zipComment.length&&(h.comment=x.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(he,u,o){"use strict";var c=he("../utils"),I=he("../stream/GenericWorker");function C(g,a){I.call(this,"Nodejs stream input adapter for "+g),this._upstreamEnded=!1,this._bindStream(a)}c.inherits(C,I),C.prototype._bindStream=function(g){var a=this;(this._stream=g).pause(),g.on("data",function(p){a.push({data:p,meta:{percent:0}})}).on("error",function(p){a.isPaused?this.generatedError=p:a.error(p)}).on("end",function(){a.isPaused?a._upstreamEnded=!0:a.end()})},C.prototype.pause=function(){return!!I.prototype.pause.call(this)&&(this._stream.pause(),!0)},C.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},u.exports=C},{"../stream/GenericWorker":28,"../utils":32}],13:[function(he,u,o){"use strict";var c=he("readable-stream").Readable;function I(C,g,a){c.call(this,g),this._helper=C;var p=this;C.on("data",function(s,l){p.push(s)||p._helper.pause(),a&&a(l)}).on("error",function(s){p.emit("error",s)}).on("end",function(){p.push(null)})}he("../utils").inherits(I,c),I.prototype._read=function(){this._helper.resume()},u.exports=I},{"../utils":32,"readable-stream":16}],14:[function(he,u,o){"use strict";u.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,I){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,I);if("number"==typeof c)throw new Error('The "data" argument must not be a number');return new Buffer(c,I)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var I=new Buffer(c);return I.fill(0),I},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&"function"==typeof c.on&&"function"==typeof c.pause&&"function"==typeof c.resume}}},{}],15:[function(he,u,o){"use strict";function c(O,w,T){var k,R=C.getTypeOf(w),P=C.extend(T||{},p);P.date=P.date||new Date,null!==P.compression&&(P.compression=P.compression.toUpperCase()),"string"==typeof P.unixPermissions&&(P.unixPermissions=parseInt(P.unixPermissions,8)),P.unixPermissions&&16384&P.unixPermissions&&(P.dir=!0),P.dosPermissions&&16&P.dosPermissions&&(P.dir=!0),P.dir&&(O=b(O)),P.createFolders&&(k=x(O))&&y.call(this,k,!0),T&&void 0!==T.binary||(P.binary=!("string"===R&&!1===P.binary&&!1===P.base64)),(w instanceof s&&0===w.uncompressedSize||P.dir||!w||0===w.length)&&(P.base64=!1,P.binary=!0,w="",P.compression="STORE",R="string");var W;W=w instanceof s||w instanceof g?w:h.isNode&&h.isStream(w)?new v(O,w):C.prepareContent(O,w,P.binary,P.optimizedBinaryString,P.base64);var z=new l(O,W,P);this.files[O]=z}var I=he("./utf8"),C=he("./utils"),g=he("./stream/GenericWorker"),a=he("./stream/StreamHelper"),p=he("./defaults"),s=he("./compressedObject"),l=he("./zipObject"),d=he("./generate"),h=he("./nodejsUtils"),v=he("./nodejs/NodejsStreamInputAdapter"),x=function(O){"/"===O.slice(-1)&&(O=O.substring(0,O.length-1));var w=O.lastIndexOf("/");return 0<w?O.substring(0,w):""},b=function(O){return"/"!==O.slice(-1)&&(O+="/"),O},y=function(O,w){return w=void 0!==w?w:p.createFolders,O=b(O),this.files[O]||c.call(this,O,null,{dir:!0,createFolders:w}),this.files[O]};function E(O){return"[object RegExp]"===Object.prototype.toString.call(O)}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(O){var w,T,k;for(w in this.files)k=this.files[w],(T=w.slice(this.root.length,w.length))&&w.slice(0,this.root.length)===this.root&&O(T,k)},filter:function(O){var w=[];return this.forEach(function(T,k){O(T,k)&&w.push(k)}),w},file:function(O,w,T){if(1!==arguments.length)return c.call(this,O=this.root+O,w,T),this;if(E(O)){var k=O;return this.filter(function(P,B){return!B.dir&&k.test(P)})}var R=this.files[this.root+O];return R&&!R.dir?R:null},folder:function(O){if(!O)return this;if(E(O))return this.filter(function(R,P){return P.dir&&O.test(R)});var T=y.call(this,this.root+O),k=this.clone();return k.root=T.name,k},remove:function(O){var w=this.files[O=this.root+O];if(w||("/"!==O.slice(-1)&&(O+="/"),w=this.files[O]),w&&!w.dir)delete this.files[O];else for(var T=this.filter(function(R,P){return P.name.slice(0,O.length)===O}),k=0;k<T.length;k++)delete this.files[T[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(O){var w,T={};try{if((T=C.extend(O||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:I.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),"binarystring"===T.type&&(T.type="string"),!T.type)throw new Error("No output type specified.");C.checkSupport(T.type),"darwin"!==T.platform&&"freebsd"!==T.platform&&"linux"!==T.platform&&"sunos"!==T.platform||(T.platform="UNIX"),"win32"===T.platform&&(T.platform="DOS"),w=d.generateWorker(this,T,T.comment||this.comment||"")}catch(R){(w=new g("error")).error(R)}return new a(w,T.type||"string",T.mimeType)},generateAsync:function(O,w){return this.generateInternalStream(O).accumulate(w)},generateNodeStream:function(O,w){return(O=O||{}).type||(O.type="nodebuffer"),this.generateInternalStream(O).toNodejsStream(w)}};u.exports=S},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(he,u,o){"use strict";u.exports=he("stream")},{stream:void 0}],17:[function(he,u,o){"use strict";var c=he("./DataReader");function I(C){c.call(this,C);for(var g=0;g<this.data.length;g++)C[g]=255&C[g]}he("../utils").inherits(I,c),I.prototype.byteAt=function(C){return this.data[this.zero+C]},I.prototype.lastIndexOfSignature=function(C){for(var g=C.charCodeAt(0),a=C.charCodeAt(1),p=C.charCodeAt(2),s=C.charCodeAt(3),l=this.length-4;0<=l;--l)if(this.data[l]===g&&this.data[l+1]===a&&this.data[l+2]===p&&this.data[l+3]===s)return l-this.zero;return-1},I.prototype.readAndCheckSignature=function(C){var g=C.charCodeAt(0),a=C.charCodeAt(1),p=C.charCodeAt(2),s=C.charCodeAt(3),l=this.readData(4);return g===l[0]&&a===l[1]&&p===l[2]&&s===l[3]},I.prototype.readData=function(C){if(this.checkOffset(C),0===C)return[];var g=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,g},u.exports=I},{"../utils":32,"./DataReader":18}],18:[function(he,u,o){"use strict";var c=he("../utils");function I(C){this.data=C,this.length=C.length,this.index=0,this.zero=0}I.prototype={checkOffset:function(C){this.checkIndex(this.index+C)},checkIndex:function(C){if(this.length<this.zero+C||C<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+C+"). Corrupted zip ?")},setIndex:function(C){this.checkIndex(C),this.index=C},skip:function(C){this.setIndex(this.index+C)},byteAt:function(){},readInt:function(C){var g,a=0;for(this.checkOffset(C),g=this.index+C-1;g>=this.index;g--)a=(a<<8)+this.byteAt(g);return this.index+=C,a},readString:function(C){return c.transformTo("string",this.readData(C))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var C=this.readInt(4);return new Date(Date.UTC(1980+(C>>25&127),(C>>21&15)-1,C>>16&31,C>>11&31,C>>5&63,(31&C)<<1))}},u.exports=I},{"../utils":32}],19:[function(he,u,o){"use strict";var c=he("./Uint8ArrayReader");function I(C){c.call(this,C)}he("../utils").inherits(I,c),I.prototype.readData=function(C){this.checkOffset(C);var g=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,g},u.exports=I},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(he,u,o){"use strict";var c=he("./DataReader");function I(C){c.call(this,C)}he("../utils").inherits(I,c),I.prototype.byteAt=function(C){return this.data.charCodeAt(this.zero+C)},I.prototype.lastIndexOfSignature=function(C){return this.data.lastIndexOf(C)-this.zero},I.prototype.readAndCheckSignature=function(C){return C===this.readData(4)},I.prototype.readData=function(C){this.checkOffset(C);var g=this.data.slice(this.zero+this.index,this.zero+this.index+C);return this.index+=C,g},u.exports=I},{"../utils":32,"./DataReader":18}],21:[function(he,u,o){"use strict";var c=he("./ArrayReader");function I(C){c.call(this,C)}he("../utils").inherits(I,c),I.prototype.readData=function(C){if(this.checkOffset(C),0===C)return new Uint8Array(0);var g=this.data.subarray(this.zero+this.index,this.zero+this.index+C);return this.index+=C,g},u.exports=I},{"../utils":32,"./ArrayReader":17}],22:[function(he,u,o){"use strict";var c=he("../utils"),I=he("../support"),C=he("./ArrayReader"),g=he("./StringReader"),a=he("./NodeBufferReader"),p=he("./Uint8ArrayReader");u.exports=function(s){var l=c.getTypeOf(s);return c.checkSupport(l),"string"!==l||I.uint8array?"nodebuffer"===l?new a(s):I.uint8array?new p(c.transformTo("uint8array",s)):new C(c.transformTo("array",s)):new g(s)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(he,u,o){"use strict";o.LOCAL_FILE_HEADER="PK\x03\x04",o.CENTRAL_FILE_HEADER="PK\x01\x02",o.CENTRAL_DIRECTORY_END="PK\x05\x06",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(he,u,o){"use strict";var c=he("./GenericWorker"),I=he("../utils");function C(g){c.call(this,"ConvertWorker to "+g),this.destType=g}I.inherits(C,c),C.prototype.processChunk=function(g){this.push({data:I.transformTo(this.destType,g.data),meta:g.meta})},u.exports=C},{"../utils":32,"./GenericWorker":28}],25:[function(he,u,o){"use strict";var c=he("./GenericWorker"),I=he("../crc32");function C(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}he("../utils").inherits(C,c),C.prototype.processChunk=function(g){this.streamInfo.crc32=I(g.data,this.streamInfo.crc32||0),this.push(g)},u.exports=C},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(he,u,o){"use strict";var c=he("../utils"),I=he("./GenericWorker");function C(g){I.call(this,"DataLengthProbe for "+g),this.propName=g,this.withStreamInfo(g,0)}c.inherits(C,I),C.prototype.processChunk=function(g){g&&(this.streamInfo[this.propName]=(this.streamInfo[this.propName]||0)+g.data.length),I.prototype.processChunk.call(this,g)},u.exports=C},{"../utils":32,"./GenericWorker":28}],27:[function(he,u,o){"use strict";var c=he("../utils"),I=he("./GenericWorker");function C(g){I.call(this,"DataWorker");var a=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,g.then(function(p){a.dataIsReady=!0,a.data=p,a.max=p&&p.length||0,a.type=c.getTypeOf(p),a.isPaused||a._tickAndRepeat()},function(p){a.error(p)})}c.inherits(C,I),C.prototype.cleanUp=function(){I.prototype.cleanUp.call(this),this.data=null},C.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},C.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},C.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var g=null,a=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":g=this.data.substring(this.index,a);break;case"uint8array":g=this.data.subarray(this.index,a);break;case"array":case"nodebuffer":g=this.data.slice(this.index,a)}return this.index=a,this.push({data:g,meta:{percent:this.max?this.index/this.max*100:0}})},u.exports=C},{"../utils":32,"./GenericWorker":28}],28:[function(he,u,o){"use strict";function c(I){this.name=I||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(I){this.emit("data",I)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(I){this.emit("error",I)}return!0},error:function(I){return!this.isFinished&&(this.isPaused?this.generatedError=I:(this.isFinished=!0,this.emit("error",I),this.previous&&this.previous.error(I),this.cleanUp()),!0)},on:function(I,C){return this._listeners[I].push(C),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(I,C){if(this._listeners[I])for(var g=0;g<this._listeners[I].length;g++)this._listeners[I][g].call(this,C)},pipe:function(I){return I.registerPrevious(this)},registerPrevious:function(I){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=I.streamInfo,this.mergeStreamInfo(),this.previous=I;var C=this;return I.on("data",function(g){C.processChunk(g)}),I.on("end",function(){C.end()}),I.on("error",function(g){C.error(g)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var I=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),I=!0),this.previous&&this.previous.resume(),!I},flush:function(){},processChunk:function(I){this.push(I)},withStreamInfo:function(I,C){return this.extraStreamInfo[I]=C,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var I in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,I)&&(this.streamInfo[I]=this.extraStreamInfo[I])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var I="Worker "+this.name;return this.previous?this.previous+" -> "+I:I}},u.exports=c},{}],29:[function(he,u,o){"use strict";var c=he("../utils"),I=he("./ConvertWorker"),C=he("./GenericWorker"),g=he("../base64"),a=he("../support"),p=he("../external"),s=null;if(a.nodestream)try{s=he("../nodejs/NodejsStreamOutputAdapter")}catch{}function d(h,v,x){var b=v;switch(v){case"blob":case"arraybuffer":b="uint8array";break;case"base64":b="string"}try{this._internalType=b,this._outputType=v,this._mimeType=x,c.checkSupport(b),this._worker=h.pipe(new I(b)),h.lock()}catch(y){this._worker=new C("error"),this._worker.error(y)}}d.prototype={accumulate:function(h){return function l(h,v){return new p.Promise(function(x,b){var y=[],E=h._internalType,S=h._outputType,O=h._mimeType;h.on("data",function(w,T){y.push(w),v&&v(T)}).on("error",function(w){y=[],b(w)}).on("end",function(){try{var w=function(T,k,R){switch(T){case"blob":return c.newBlob(c.transformTo("arraybuffer",k),R);case"base64":return g.encode(k);default:return c.transformTo(T,k)}}(S,function(T,k){var R,P=0,B=null,W=0;for(R=0;R<k.length;R++)W+=k[R].length;switch(T){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(B=new Uint8Array(W),R=0;R<k.length;R++)B.set(k[R],P),P+=k[R].length;return B;case"nodebuffer":return Buffer.concat(k);default:throw new Error("concat : unsupported type '"+T+"'")}}(E,y),O);x(w)}catch(T){b(T)}y=[]}).resume()})}(this,h)},on:function(h,v){var x=this;return this._worker.on(h,"data"===h?function(b){v.call(x,b.data,b.meta)}:function(){c.delay(v,arguments,x)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){if(c.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new s(this,{objectMode:"nodebuffer"!==this._outputType},h)}},u.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(he,u,o){"use strict";if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var c=new ArrayBuffer(0);try{o.blob=0===new Blob([c],{type:"application/zip"}).size}catch{try{var I=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);I.append(c),o.blob=0===I.getBlob("application/zip").size}catch{o.blob=!1}}}try{o.nodestream=!!he("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(he,u,o){"use strict";for(var c=he("./utils"),I=he("./support"),C=he("./nodejsUtils"),g=he("./stream/GenericWorker"),a=new Array(256),p=0;p<256;p++)a[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function s(){g.call(this,"utf-8 decode"),this.leftOver=null}function l(){g.call(this,"utf-8 encode")}a[254]=a[254]=1,o.utf8encode=function(d){return I.nodebuffer?C.newBufferFrom(d,"utf-8"):function(h){var v,x,b,y,E,S=h.length,O=0;for(y=0;y<S;y++)55296==(64512&(x=h.charCodeAt(y)))&&y+1<S&&56320==(64512&(b=h.charCodeAt(y+1)))&&(x=65536+(x-55296<<10)+(b-56320),y++),O+=x<128?1:x<2048?2:x<65536?3:4;for(v=I.uint8array?new Uint8Array(O):new Array(O),y=E=0;E<O;y++)55296==(64512&(x=h.charCodeAt(y)))&&y+1<S&&56320==(64512&(b=h.charCodeAt(y+1)))&&(x=65536+(x-55296<<10)+(b-56320),y++),x<128?v[E++]=x:(x<2048?v[E++]=192|x>>>6:(x<65536?v[E++]=224|x>>>12:(v[E++]=240|x>>>18,v[E++]=128|x>>>12&63),v[E++]=128|x>>>6&63),v[E++]=128|63&x);return v}(d)},o.utf8decode=function(d){return I.nodebuffer?c.transformTo("nodebuffer",d).toString("utf-8"):function(h){var v,x,b,y,E=h.length,S=new Array(2*E);for(v=x=0;v<E;)if((b=h[v++])<128)S[x++]=b;else if(4<(y=a[b]))S[x++]=65533,v+=y-1;else{for(b&=2===y?31:3===y?15:7;1<y&&v<E;)b=b<<6|63&h[v++],y--;1<y?S[x++]=65533:b<65536?S[x++]=b:(S[x++]=55296|(b-=65536)>>10&1023,S[x++]=56320|1023&b)}return S.length!==x&&(S.subarray?S=S.subarray(0,x):S.length=x),c.applyFromCharCode(S)}(d=c.transformTo(I.uint8array?"uint8array":"array",d))},c.inherits(s,g),s.prototype.processChunk=function(d){var h=c.transformTo(I.uint8array?"uint8array":"array",d.data);if(this.leftOver&&this.leftOver.length){if(I.uint8array){var v=h;(h=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),h.set(v,this.leftOver.length)}else h=this.leftOver.concat(h);this.leftOver=null}var x=function(y,E){var S;for((E=E||y.length)>y.length&&(E=y.length),S=E-1;0<=S&&128==(192&y[S]);)S--;return S<0||0===S?E:S+a[y[S]]>E?S:E}(h),b=h;x!==h.length&&(I.uint8array?(b=h.subarray(0,x),this.leftOver=h.subarray(x,h.length)):(b=h.slice(0,x),this.leftOver=h.slice(x,h.length))),this.push({data:o.utf8decode(b),meta:d.meta})},s.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=s,c.inherits(l,g),l.prototype.processChunk=function(d){this.push({data:o.utf8encode(d.data),meta:d.meta})},o.Utf8EncodeWorker=l},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(he,u,o){"use strict";var c=he("./support"),I=he("./base64"),C=he("./nodejsUtils"),g=he("./external");function a(v){return v}function p(v,x){for(var b=0;b<v.length;++b)x[b]=255&v.charCodeAt(b);return x}he("setimmediate"),o.newBlob=function(v,x){o.checkSupport("blob");try{return new Blob([v],{type:x})}catch{try{var b=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return b.append(v),b.getBlob(x)}catch{throw new Error("Bug : can't construct the Blob.")}}};var s={stringifyByChunk:function(v,x,b){var y=[],E=0,S=v.length;if(S<=b)return String.fromCharCode.apply(null,v);for(;E<S;)y.push(String.fromCharCode.apply(null,"array"===x||"nodebuffer"===x?v.slice(E,Math.min(E+b,S)):v.subarray(E,Math.min(E+b,S)))),E+=b;return y.join("")},stringifyByChar:function(v){for(var x="",b=0;b<v.length;b++)x+=String.fromCharCode(v[b]);return x},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&1===String.fromCharCode.apply(null,C.allocBuffer(1)).length}catch{return!1}}()}};function l(v){var x=65536,b=o.getTypeOf(v),y=!0;if("uint8array"===b?y=s.applyCanBeUsed.uint8array:"nodebuffer"===b&&(y=s.applyCanBeUsed.nodebuffer),y)for(;1<x;)try{return s.stringifyByChunk(v,b,x)}catch{x=Math.floor(x/2)}return s.stringifyByChar(v)}function d(v,x){for(var b=0;b<v.length;b++)x[b]=v[b];return x}o.applyFromCharCode=l;var h={};h.string={string:a,array:function(v){return p(v,new Array(v.length))},arraybuffer:function(v){return h.string.uint8array(v).buffer},uint8array:function(v){return p(v,new Uint8Array(v.length))},nodebuffer:function(v){return p(v,C.allocBuffer(v.length))}},h.array={string:l,array:a,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return C.newBufferFrom(v)}},h.arraybuffer={string:function(v){return l(new Uint8Array(v))},array:function(v){return d(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:a,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return C.newBufferFrom(new Uint8Array(v))}},h.uint8array={string:l,array:function(v){return d(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:a,nodebuffer:function(v){return C.newBufferFrom(v)}},h.nodebuffer={string:l,array:function(v){return d(v,new Array(v.length))},arraybuffer:function(v){return h.nodebuffer.uint8array(v).buffer},uint8array:function(v){return d(v,new Uint8Array(v.length))},nodebuffer:a},o.transformTo=function(v,x){if(x=x||"",!v)return x;o.checkSupport(v);var b=o.getTypeOf(x);return h[b][v](x)},o.resolve=function(v){for(var x=v.split("/"),b=[],y=0;y<x.length;y++){var E=x[y];"."===E||""===E&&0!==y&&y!==x.length-1||(".."===E?b.pop():b.push(E))}return b.join("/")},o.getTypeOf=function(v){return"string"==typeof v?"string":"[object Array]"===Object.prototype.toString.call(v)?"array":c.nodebuffer&&C.isBuffer(v)?"nodebuffer":c.uint8array&&v instanceof Uint8Array?"uint8array":c.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(v){if(!c[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(v){var x,b,y="";for(b=0;b<(v||"").length;b++)y+="\\x"+((x=v.charCodeAt(b))<16?"0":"")+x.toString(16).toUpperCase();return y},o.delay=function(v,x,b){setImmediate(function(){v.apply(b||null,x||[])})},o.inherits=function(v,x){function b(){}b.prototype=x.prototype,v.prototype=new b},o.extend=function(){var v,x,b={};for(v=0;v<arguments.length;v++)for(x in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],x)&&void 0===b[x]&&(b[x]=arguments[v][x]);return b},o.prepareContent=function(v,x,b,y,E){return g.Promise.resolve(x).then(function(S){return c.blob&&(S instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S)))&&typeof FileReader<"u"?new g.Promise(function(O,w){var T=new FileReader;T.onload=function(k){O(k.target.result)},T.onerror=function(k){w(k.target.error)},T.readAsArrayBuffer(S)}):S}).then(function(S){var w,O=o.getTypeOf(S);return O?("arraybuffer"===O?S=o.transformTo("uint8array",S):"string"===O&&(E?S=I.decode(S):b&&!0!==y&&(S=p(w=S,c.uint8array?new Uint8Array(w.length):new Array(w.length)))),S):g.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(he,u,o){"use strict";var c=he("./reader/readerFor"),I=he("./utils"),C=he("./signature"),g=he("./zipEntry"),a=he("./support");function p(s){this.files=[],this.loadOptions=s}p.prototype={checkSignature:function(s){if(!this.reader.readAndCheckSignature(s)){this.reader.index-=4;var l=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+I.pretty(l)+", expected "+I.pretty(s)+")")}},isSignature:function(s,l){var d=this.reader.index;this.reader.setIndex(s);var h=this.reader.readString(4)===l;return this.reader.setIndex(d),h},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var s=this.reader.readData(this.zipCommentLength),d=I.transformTo(a.uint8array?"uint8array":"array",s);this.zipComment=this.loadOptions.decodeFileName(d)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var s,l,d,h=this.zip64EndOfCentralSize-44;0<h;)s=this.reader.readInt(2),l=this.reader.readInt(4),d=this.reader.readData(l),this.zip64ExtensibleData[s]={id:s,length:l,value:d}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var s,l;for(s=0;s<this.files.length;s++)this.reader.setIndex((l=this.files[s]).localHeaderOffset),this.checkSignature(C.LOCAL_FILE_HEADER),l.readLocalPart(this.reader),l.handleUTF8(),l.processAttributes()},readCentralDir:function(){var s;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(C.CENTRAL_FILE_HEADER);)(s=new g({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(s);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var s=this.reader.lastIndexOfSignature(C.CENTRAL_DIRECTORY_END);if(s<0)throw this.isSignature(0,C.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(s);var l=s;if(this.checkSignature(C.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===I.MAX_VALUE_16BITS||this.diskWithCentralDirStart===I.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===I.MAX_VALUE_16BITS||this.centralDirRecords===I.MAX_VALUE_16BITS||this.centralDirSize===I.MAX_VALUE_32BITS||this.centralDirOffset===I.MAX_VALUE_32BITS){if(this.zip64=!0,(s=this.reader.lastIndexOfSignature(C.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(s),this.checkSignature(C.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,C.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(C.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(C.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var d=this.centralDirOffset+this.centralDirSize;this.zip64&&(d+=20,d+=12+this.zip64EndOfCentralSize);var h=l-d;if(0<h)this.isSignature(l,C.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(s){this.reader=c(s)},load:function(s){this.prepareReader(s),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},u.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(he,u,o){"use strict";var c=he("./reader/readerFor"),I=he("./utils"),C=he("./compressedObject"),g=he("./crc32"),a=he("./utf8"),p=he("./compressions"),s=he("./support");function l(d,h){this.options=d,this.loadOptions=h}l.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(d){var h,v;if(d.skip(22),this.fileNameLength=d.readInt(2),v=d.readInt(2),this.fileName=d.readData(this.fileNameLength),d.skip(v),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(h=function(x){for(var b in p)if(Object.prototype.hasOwnProperty.call(p,b)&&p[b].magic===x)return p[b];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+I.pretty(this.compressionMethod)+" unknown (inner file : "+I.transformTo("string",this.fileName)+")");this.decompressed=new C(this.compressedSize,this.uncompressedSize,this.crc32,h,d.readData(this.compressedSize))},readCentralPart:function(d){this.versionMadeBy=d.readInt(2),d.skip(2),this.bitFlag=d.readInt(2),this.compressionMethod=d.readString(2),this.date=d.readDate(),this.crc32=d.readInt(4),this.compressedSize=d.readInt(4),this.uncompressedSize=d.readInt(4);var h=d.readInt(2);if(this.extraFieldsLength=d.readInt(2),this.fileCommentLength=d.readInt(2),this.diskNumberStart=d.readInt(2),this.internalFileAttributes=d.readInt(2),this.externalFileAttributes=d.readInt(4),this.localHeaderOffset=d.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");d.skip(h),this.readExtraFields(d),this.parseZIP64ExtraField(d),this.fileComment=d.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var d=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==d&&(this.dosPermissions=63&this.externalFileAttributes),3==d&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var d=c(this.extraFields[1].value);this.uncompressedSize===I.MAX_VALUE_32BITS&&(this.uncompressedSize=d.readInt(8)),this.compressedSize===I.MAX_VALUE_32BITS&&(this.compressedSize=d.readInt(8)),this.localHeaderOffset===I.MAX_VALUE_32BITS&&(this.localHeaderOffset=d.readInt(8)),this.diskNumberStart===I.MAX_VALUE_32BITS&&(this.diskNumberStart=d.readInt(4))}},readExtraFields:function(d){var h,v,x,b=d.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});d.index+4<b;)h=d.readInt(2),v=d.readInt(2),x=d.readData(v),this.extraFields[h]={id:h,length:v,value:x};d.setIndex(b)},handleUTF8:function(){var d=s.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(null!==h)this.fileNameStr=h;else{var v=I.transformTo(d,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var x=this.findExtraFieldUnicodeComment();if(null!==x)this.fileCommentStr=x;else{var b=I.transformTo(d,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(b)}}},findExtraFieldUnicodePath:function(){var d=this.extraFields[28789];if(d){var h=c(d.value);return 1!==h.readInt(1)||g(this.fileName)!==h.readInt(4)?null:a.utf8decode(h.readData(d.length-5))}return null},findExtraFieldUnicodeComment:function(){var d=this.extraFields[25461];if(d){var h=c(d.value);return 1!==h.readInt(1)||g(this.fileComment)!==h.readInt(4)?null:a.utf8decode(h.readData(d.length-5))}return null}},u.exports=l},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(he,u,o){"use strict";function c(h,v,x){this.name=h,this.dir=x.dir,this.date=x.date,this.comment=x.comment,this.unixPermissions=x.unixPermissions,this.dosPermissions=x.dosPermissions,this._data=v,this._dataBinary=x.binary,this.options={compression:x.compression,compressionOptions:x.compressionOptions}}var I=he("./stream/StreamHelper"),C=he("./stream/DataWorker"),g=he("./utf8"),a=he("./compressedObject"),p=he("./stream/GenericWorker");c.prototype={internalStream:function(h){var v=null,x="string";try{if(!h)throw new Error("No output type specified.");var b="string"===(x=h.toLowerCase())||"text"===x;"binarystring"!==x&&"text"!==x||(x="string"),v=this._decompressWorker();var y=!this._dataBinary;y&&!b&&(v=v.pipe(new g.Utf8EncodeWorker)),!y&&b&&(v=v.pipe(new g.Utf8DecodeWorker))}catch(E){(v=new p("error")).error(E)}return new I(v,x,"")},async:function(h,v){return this.internalStream(h).accumulate(v)},nodeStream:function(h,v){return this.internalStream(h||"nodebuffer").toNodejsStream(v)},_compressWorker:function(h,v){if(this._data instanceof a&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var x=this._decompressWorker();return this._dataBinary||(x=x.pipe(new g.Utf8EncodeWorker)),a.createWorkerFrom(x,h,v)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof p?this._data:new C(this._data)}};for(var s=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],l=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<s.length;d++)c.prototype[s[d]]=l;u.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(he,u,o){(function(c){"use strict";var I,C,g=c.MutationObserver||c.WebKitMutationObserver;if(g){var a=0,p=new g(h),s=c.document.createTextNode("");p.observe(s,{characterData:!0}),I=function(){s.data=a=++a%2}}else if(c.setImmediate||void 0===c.MessageChannel)I="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var v=c.document.createElement("script");v.onreadystatechange=function(){h(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},c.document.documentElement.appendChild(v)}:function(){setTimeout(h,0)};else{var l=new c.MessageChannel;l.port1.onmessage=h,I=function(){l.port2.postMessage(0)}}var d=[];function h(){var v,x;C=!0;for(var b=d.length;b;){for(x=d,d=[],v=-1;++v<b;)x[v]();b=d.length}C=!1}u.exports=function(v){1!==d.push(v)||C||I()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(he,u,o){"use strict";var c=he("immediate");function I(){}var C={},g=["REJECTED"],a=["FULFILLED"],p=["PENDING"];function s(b){if("function"!=typeof b)throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,b!==I&&v(this,b)}function l(b,y,E){this.promise=b,"function"==typeof y&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),"function"==typeof E&&(this.onRejected=E,this.callRejected=this.otherCallRejected)}function d(b,y,E){c(function(){var S;try{S=y(E)}catch(O){return C.reject(b,O)}S===b?C.reject(b,new TypeError("Cannot resolve promise with itself")):C.resolve(b,S)})}function h(b){var y=b&&b.then;if(b&&("object"==typeof b||"function"==typeof b)&&"function"==typeof y)return function(){y.apply(b,arguments)}}function v(b,y){var E=!1;function S(T){E||(E=!0,C.reject(b,T))}function O(T){E||(E=!0,C.resolve(b,T))}var w=x(function(){y(O,S)});"error"===w.status&&S(w.value)}function x(b,y){var E={};try{E.value=b(y),E.status="success"}catch(S){E.status="error",E.value=S}return E}(u.exports=s).prototype.finally=function(b){if("function"!=typeof b)return this;var y=this.constructor;return this.then(function(E){return y.resolve(b()).then(function(){return E})},function(E){return y.resolve(b()).then(function(){throw E})})},s.prototype.catch=function(b){return this.then(null,b)},s.prototype.then=function(b,y){if("function"!=typeof b&&this.state===a||"function"!=typeof y&&this.state===g)return this;var E=new this.constructor(I);return this.state!==p?d(E,this.state===a?b:y,this.outcome):this.queue.push(new l(E,b,y)),E},l.prototype.callFulfilled=function(b){C.resolve(this.promise,b)},l.prototype.otherCallFulfilled=function(b){d(this.promise,this.onFulfilled,b)},l.prototype.callRejected=function(b){C.reject(this.promise,b)},l.prototype.otherCallRejected=function(b){d(this.promise,this.onRejected,b)},C.resolve=function(b,y){var E=x(h,y);if("error"===E.status)return C.reject(b,E.value);var S=E.value;if(S)v(b,S);else{b.state=a,b.outcome=y;for(var O=-1,w=b.queue.length;++O<w;)b.queue[O].callFulfilled(y)}return b},C.reject=function(b,y){b.state=g,b.outcome=y;for(var E=-1,S=b.queue.length;++E<S;)b.queue[E].callRejected(y);return b},s.resolve=function(b){return b instanceof this?b:C.resolve(new this(I),b)},s.reject=function(b){var y=new this(I);return C.reject(y,b)},s.all=function(b){var y=this;if("[object Array]"!==Object.prototype.toString.call(b))return this.reject(new TypeError("must be an array"));var E=b.length,S=!1;if(!E)return this.resolve([]);for(var O=new Array(E),w=0,T=-1,k=new this(I);++T<E;)R(b[T],T);return k;function R(P,B){y.resolve(P).then(function(W){O[B]=W,++w!==E||S||(S=!0,C.resolve(k,O))},function(W){S||(S=!0,C.reject(k,W))})}},s.race=function(b){if("[object Array]"!==Object.prototype.toString.call(b))return this.reject(new TypeError("must be an array"));var E=b.length,S=!1;if(!E)return this.resolve([]);for(var O=-1,w=new this(I);++O<E;)this.resolve(b[O]).then(function(k){S||(S=!0,C.resolve(w,k))},function(k){S||(S=!0,C.reject(w,k))});return w}},{immediate:36}],38:[function(he,u,o){"use strict";var c={};(0,he("./lib/utils/common").assign)(c,he("./lib/deflate"),he("./lib/inflate"),he("./lib/zlib/constants")),u.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(he,u,o){"use strict";var c=he("./zlib/deflate"),I=he("./utils/common"),C=he("./utils/strings"),g=he("./zlib/messages"),a=he("./zlib/zstream"),p=Object.prototype.toString;function v(b){if(!(this instanceof v))return new v(b);this.options=I.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},b||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var E=c.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(0!==E)throw new Error(g[E]);if(y.header&&c.deflateSetHeader(this.strm,y.header),y.dictionary){var S;if(S="string"==typeof y.dictionary?C.string2buf(y.dictionary):"[object ArrayBuffer]"===p.call(y.dictionary)?new Uint8Array(y.dictionary):y.dictionary,0!==(E=c.deflateSetDictionary(this.strm,S)))throw new Error(g[E]);this._dict_set=!0}}function x(b,y){var E=new v(y);if(E.push(b,!0),E.err)throw E.msg||g[E.err];return E.result}v.prototype.push=function(b,y){var E,S,O=this.strm,w=this.options.chunkSize;if(this.ended)return!1;S=y===~~y?y:!0===y?4:0,O.input="string"==typeof b?C.string2buf(b):"[object ArrayBuffer]"===p.call(b)?new Uint8Array(b):b,O.next_in=0,O.avail_in=O.input.length;do{if(0===O.avail_out&&(O.output=new I.Buf8(w),O.next_out=0,O.avail_out=w),1!==(E=c.deflate(O,S))&&0!==E)return this.onEnd(E),!(this.ended=!0);0!==O.avail_out&&(0!==O.avail_in||4!==S&&2!==S)||this.onData("string"===this.options.to?C.buf2binstring(I.shrinkBuf(O.output,O.next_out)):I.shrinkBuf(O.output,O.next_out))}while((0<O.avail_in||0===O.avail_out)&&1!==E);return 4===S?(E=c.deflateEnd(this.strm),this.onEnd(E),this.ended=!0,0===E):2!==S||(this.onEnd(0),!(O.avail_out=0))},v.prototype.onData=function(b){this.chunks.push(b)},v.prototype.onEnd=function(b){0===b&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=b,this.msg=this.strm.msg},o.Deflate=v,o.deflate=x,o.deflateRaw=function(b,y){return(y=y||{}).raw=!0,x(b,y)},o.gzip=function(b,y){return(y=y||{}).gzip=!0,x(b,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(he,u,o){"use strict";var c=he("./zlib/inflate"),I=he("./utils/common"),C=he("./utils/strings"),g=he("./zlib/constants"),a=he("./zlib/messages"),p=he("./zlib/zstream"),s=he("./zlib/gzheader"),l=Object.prototype.toString;function d(v){if(!(this instanceof d))return new d(v);this.options=I.assign({chunkSize:16384,windowBits:0,to:""},v||{});var x=this.options;x.raw&&0<=x.windowBits&&x.windowBits<16&&(x.windowBits=-x.windowBits,0===x.windowBits&&(x.windowBits=-15)),!(0<=x.windowBits&&x.windowBits<16)||v&&v.windowBits||(x.windowBits+=32),15<x.windowBits&&x.windowBits<48&&!(15&x.windowBits)&&(x.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var b=c.inflateInit2(this.strm,x.windowBits);if(b!==g.Z_OK)throw new Error(a[b]);this.header=new s,c.inflateGetHeader(this.strm,this.header)}function h(v,x){var b=new d(x);if(b.push(v,!0),b.err)throw b.msg||a[b.err];return b.result}d.prototype.push=function(v,x){var b,y,E,S,O,w,T=this.strm,k=this.options.chunkSize,R=this.options.dictionary,P=!1;if(this.ended)return!1;y=x===~~x?x:!0===x?g.Z_FINISH:g.Z_NO_FLUSH,T.input="string"==typeof v?C.binstring2buf(v):"[object ArrayBuffer]"===l.call(v)?new Uint8Array(v):v,T.next_in=0,T.avail_in=T.input.length;do{if(0===T.avail_out&&(T.output=new I.Buf8(k),T.next_out=0,T.avail_out=k),(b=c.inflate(T,g.Z_NO_FLUSH))===g.Z_NEED_DICT&&R&&(w="string"==typeof R?C.string2buf(R):"[object ArrayBuffer]"===l.call(R)?new Uint8Array(R):R,b=c.inflateSetDictionary(this.strm,w)),b===g.Z_BUF_ERROR&&!0===P&&(b=g.Z_OK,P=!1),b!==g.Z_STREAM_END&&b!==g.Z_OK)return this.onEnd(b),!(this.ended=!0);T.next_out&&(0!==T.avail_out&&b!==g.Z_STREAM_END&&(0!==T.avail_in||y!==g.Z_FINISH&&y!==g.Z_SYNC_FLUSH)||("string"===this.options.to?(E=C.utf8border(T.output,T.next_out),S=T.next_out-E,O=C.buf2string(T.output,E),T.next_out=S,T.avail_out=k-S,S&&I.arraySet(T.output,T.output,E,S,0),this.onData(O)):this.onData(I.shrinkBuf(T.output,T.next_out)))),0===T.avail_in&&0===T.avail_out&&(P=!0)}while((0<T.avail_in||0===T.avail_out)&&b!==g.Z_STREAM_END);return b===g.Z_STREAM_END&&(y=g.Z_FINISH),y===g.Z_FINISH?(b=c.inflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===g.Z_OK):y!==g.Z_SYNC_FLUSH||(this.onEnd(g.Z_OK),!(T.avail_out=0))},d.prototype.onData=function(v){this.chunks.push(v)},d.prototype.onEnd=function(v){v===g.Z_OK&&(this.result="string"===this.options.to?this.chunks.join(""):I.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},o.Inflate=d,o.inflate=h,o.inflateRaw=function(v,x){return(x=x||{}).raw=!0,h(v,x)},o.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(he,u,o){"use strict";var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(g){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var p=a.shift();if(p){if("object"!=typeof p)throw new TypeError(p+"must be non-object");for(var s in p)p.hasOwnProperty(s)&&(g[s]=p[s])}}return g},o.shrinkBuf=function(g,a){return g.length===a?g:g.subarray?g.subarray(0,a):(g.length=a,g)};var I={arraySet:function(g,a,p,s,l){if(a.subarray&&g.subarray)g.set(a.subarray(p,p+s),l);else for(var d=0;d<s;d++)g[l+d]=a[p+d]},flattenChunks:function(g){var a,p,s,l,d,h;for(a=s=0,p=g.length;a<p;a++)s+=g[a].length;for(h=new Uint8Array(s),a=l=0,p=g.length;a<p;a++)h.set(d=g[a],l),l+=d.length;return h}},C={arraySet:function(g,a,p,s,l){for(var d=0;d<s;d++)g[l+d]=a[p+d]},flattenChunks:function(g){return[].concat.apply([],g)}};o.setTyped=function(g){g?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,I)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,C))},o.setTyped(c)},{}],42:[function(he,u,o){"use strict";var c=he("./common"),I=!0,C=!0;try{String.fromCharCode.apply(null,[0])}catch{I=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{C=!1}for(var g=new c.Buf8(256),a=0;a<256;a++)g[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function p(s,l){if(l<65537&&(s.subarray&&C||!s.subarray&&I))return String.fromCharCode.apply(null,c.shrinkBuf(s,l));for(var d="",h=0;h<l;h++)d+=String.fromCharCode(s[h]);return d}g[254]=g[254]=1,o.string2buf=function(s){var l,d,h,v,x,b=s.length,y=0;for(v=0;v<b;v++)55296==(64512&(d=s.charCodeAt(v)))&&v+1<b&&56320==(64512&(h=s.charCodeAt(v+1)))&&(d=65536+(d-55296<<10)+(h-56320),v++),y+=d<128?1:d<2048?2:d<65536?3:4;for(l=new c.Buf8(y),v=x=0;x<y;v++)55296==(64512&(d=s.charCodeAt(v)))&&v+1<b&&56320==(64512&(h=s.charCodeAt(v+1)))&&(d=65536+(d-55296<<10)+(h-56320),v++),d<128?l[x++]=d:(d<2048?l[x++]=192|d>>>6:(d<65536?l[x++]=224|d>>>12:(l[x++]=240|d>>>18,l[x++]=128|d>>>12&63),l[x++]=128|d>>>6&63),l[x++]=128|63&d);return l},o.buf2binstring=function(s){return p(s,s.length)},o.binstring2buf=function(s){for(var l=new c.Buf8(s.length),d=0,h=l.length;d<h;d++)l[d]=s.charCodeAt(d);return l},o.buf2string=function(s,l){var d,h,v,x,b=l||s.length,y=new Array(2*b);for(d=h=0;d<b;)if((v=s[d++])<128)y[h++]=v;else if(4<(x=g[v]))y[h++]=65533,d+=x-1;else{for(v&=2===x?31:3===x?15:7;1<x&&d<b;)v=v<<6|63&s[d++],x--;1<x?y[h++]=65533:v<65536?y[h++]=v:(y[h++]=55296|(v-=65536)>>10&1023,y[h++]=56320|1023&v)}return p(y,h)},o.utf8border=function(s,l){var d;for((l=l||s.length)>s.length&&(l=s.length),d=l-1;0<=d&&128==(192&s[d]);)d--;return d<0||0===d?l:d+g[s[d]]>l?d:l}},{"./common":41}],43:[function(he,u,o){"use strict";u.exports=function(c,I,C,g){for(var a=65535&c|0,p=c>>>16&65535|0,s=0;0!==C;){for(C-=s=2e3<C?2e3:C;p=p+(a=a+I[g++]|0)|0,--s;);a%=65521,p%=65521}return a|p<<16|0}},{}],44:[function(he,u,o){"use strict";u.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(he,u,o){"use strict";var c=function(){for(var I,C=[],g=0;g<256;g++){I=g;for(var a=0;a<8;a++)I=1&I?3988292384^I>>>1:I>>>1;C[g]=I}return C}();u.exports=function(I,C,g,a){var p=c,s=a+g;I^=-1;for(var l=a;l<s;l++)I=I>>>8^p[255&(I^C[l])];return-1^I}},{}],46:[function(he,u,o){"use strict";var c,I=he("../utils/common"),C=he("./trees"),g=he("./adler32"),a=he("./crc32"),p=he("./messages"),h=-2,P=258,B=262,z=113;function J(ne,ce){return ne.msg=p[ce],ce}function j(ne){return(ne<<1)-(4<ne?9:0)}function ee(ne){for(var ce=ne.length;0<=--ce;)ne[ce]=0}function G(ne){var ce=ne.state,le=ce.pending;le>ne.avail_out&&(le=ne.avail_out),0!==le&&(I.arraySet(ne.output,ce.pending_buf,ce.pending_out,le,ne.next_out),ne.next_out+=le,ce.pending_out+=le,ne.total_out+=le,ne.avail_out-=le,ce.pending-=le,0===ce.pending&&(ce.pending_out=0))}function q(ne,ce){C._tr_flush_block(ne,0<=ne.block_start?ne.block_start:-1,ne.strstart-ne.block_start,ce),ne.block_start=ne.strstart,G(ne.strm)}function Z(ne,ce){ne.pending_buf[ne.pending++]=ce}function X(ne,ce){ne.pending_buf[ne.pending++]=ce>>>8&255,ne.pending_buf[ne.pending++]=255&ce}function M(ne,ce){var le,pe,Se=ne.max_chain_length,re=ne.strstart,te=ne.prev_length,ie=ne.nice_match,ue=ne.strstart>ne.w_size-B?ne.strstart-(ne.w_size-B):0,be=ne.window,Ae=ne.w_mask,Ne=ne.prev,mt=ne.strstart+P,tt=be[re+te-1],Le=be[re+te];ne.prev_length>=ne.good_match&&(Se>>=2),ie>ne.lookahead&&(ie=ne.lookahead);do{if(be[(le=ce)+te]===Le&&be[le+te-1]===tt&&be[le]===be[re]&&be[++le]===be[re+1]){re+=2,le++;do{}while(be[++re]===be[++le]&&be[++re]===be[++le]&&be[++re]===be[++le]&&be[++re]===be[++le]&&be[++re]===be[++le]&&be[++re]===be[++le]&&be[++re]===be[++le]&&be[++re]===be[++le]&&re<mt);if(pe=P-(mt-re),re=mt-P,te<pe){if(ne.match_start=ce,ie<=(te=pe))break;tt=be[re+te-1],Le=be[re+te]}}}while((ce=Ne[ce&Ae])>ue&&0!=--Se);return te<=ne.lookahead?te:ne.lookahead}function oe(ne){var ce,le,pe,Se,re,te,ie,ue,be,Ae,Ne=ne.w_size;do{if(Se=ne.window_size-ne.lookahead-ne.strstart,ne.strstart>=Ne+(Ne-B)){for(I.arraySet(ne.window,ne.window,Ne,Ne,0),ne.match_start-=Ne,ne.strstart-=Ne,ne.block_start-=Ne,ce=le=ne.hash_size;pe=ne.head[--ce],ne.head[ce]=Ne<=pe?pe-Ne:0,--le;);for(ce=le=Ne;pe=ne.prev[--ce],ne.prev[ce]=Ne<=pe?pe-Ne:0,--le;);Se+=Ne}if(0===ne.strm.avail_in)break;if(ie=ne.window,ue=ne.strstart+ne.lookahead,Ae=void 0,(be=Se)<(Ae=(te=ne.strm).avail_in)&&(Ae=be),le=0===Ae?0:(te.avail_in-=Ae,I.arraySet(ie,te.input,te.next_in,Ae,ue),1===te.state.wrap?te.adler=g(te.adler,ie,Ae,ue):2===te.state.wrap&&(te.adler=a(te.adler,ie,Ae,ue)),te.next_in+=Ae,te.total_in+=Ae,Ae),ne.lookahead+=le,ne.lookahead+ne.insert>=3)for(ne.ins_h=ne.window[re=ne.strstart-ne.insert],ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[re+1])&ne.hash_mask;ne.insert&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[re+3-1])&ne.hash_mask,ne.prev[re&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=re,re++,ne.insert--,!(ne.lookahead+ne.insert<3)););}while(ne.lookahead<B&&0!==ne.strm.avail_in)}function fe(ne,ce){for(var le,pe;;){if(ne.lookahead<B){if(oe(ne),ne.lookahead<B&&0===ce)return 1;if(0===ne.lookahead)break}if(le=0,ne.lookahead>=3&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+3-1])&ne.hash_mask,le=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),0!==le&&ne.strstart-le<=ne.w_size-B&&(ne.match_length=M(ne,le)),ne.match_length>=3)if(pe=C._tr_tally(ne,ne.strstart-ne.match_start,ne.match_length-3),ne.lookahead-=ne.match_length,ne.match_length<=ne.max_lazy_match&&ne.lookahead>=3){for(ne.match_length--;ne.strstart++,ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+3-1])&ne.hash_mask,le=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart,0!=--ne.match_length;);ne.strstart++}else ne.strstart+=ne.match_length,ne.match_length=0,ne.ins_h=ne.window[ne.strstart],ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+1])&ne.hash_mask;else pe=C._tr_tally(ne,0,ne.window[ne.strstart]),ne.lookahead--,ne.strstart++;if(pe&&(q(ne,!1),0===ne.strm.avail_out))return 1}return ne.insert=ne.strstart<2?ne.strstart:2,4===ce?(q(ne,!0),0===ne.strm.avail_out?3:4):ne.last_lit&&(q(ne,!1),0===ne.strm.avail_out)?1:2}function Te(ne,ce){for(var le,pe,Se;;){if(ne.lookahead<B){if(oe(ne),ne.lookahead<B&&0===ce)return 1;if(0===ne.lookahead)break}if(le=0,ne.lookahead>=3&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+3-1])&ne.hash_mask,le=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),ne.prev_length=ne.match_length,ne.prev_match=ne.match_start,ne.match_length=2,0!==le&&ne.prev_length<ne.max_lazy_match&&ne.strstart-le<=ne.w_size-B&&(ne.match_length=M(ne,le),ne.match_length<=5&&(1===ne.strategy||3===ne.match_length&&4096<ne.strstart-ne.match_start)&&(ne.match_length=2)),ne.prev_length>=3&&ne.match_length<=ne.prev_length){for(Se=ne.strstart+ne.lookahead-3,pe=C._tr_tally(ne,ne.strstart-1-ne.prev_match,ne.prev_length-3),ne.lookahead-=ne.prev_length-1,ne.prev_length-=2;++ne.strstart<=Se&&(ne.ins_h=(ne.ins_h<<ne.hash_shift^ne.window[ne.strstart+3-1])&ne.hash_mask,le=ne.prev[ne.strstart&ne.w_mask]=ne.head[ne.ins_h],ne.head[ne.ins_h]=ne.strstart),0!=--ne.prev_length;);if(ne.match_available=0,ne.match_length=2,ne.strstart++,pe&&(q(ne,!1),0===ne.strm.avail_out))return 1}else if(ne.match_available){if((pe=C._tr_tally(ne,0,ne.window[ne.strstart-1]))&&q(ne,!1),ne.strstart++,ne.lookahead--,0===ne.strm.avail_out)return 1}else ne.match_available=1,ne.strstart++,ne.lookahead--}return ne.match_available&&(pe=C._tr_tally(ne,0,ne.window[ne.strstart-1]),ne.match_available=0),ne.insert=ne.strstart<2?ne.strstart:2,4===ce?(q(ne,!0),0===ne.strm.avail_out?3:4):ne.last_lit&&(q(ne,!1),0===ne.strm.avail_out)?1:2}function Be(ne,ce,le,pe,Se){this.good_length=ne,this.max_lazy=ce,this.nice_length=le,this.max_chain=pe,this.func=Se}function ze(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new I.Buf16(1146),this.dyn_dtree=new I.Buf16(122),this.bl_tree=new I.Buf16(78),ee(this.dyn_ltree),ee(this.dyn_dtree),ee(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new I.Buf16(16),this.heap=new I.Buf16(573),ee(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new I.Buf16(573),ee(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ae(ne){var ce;return ne&&ne.state?(ne.total_in=ne.total_out=0,ne.data_type=2,(ce=ne.state).pending=0,ce.pending_out=0,ce.wrap<0&&(ce.wrap=-ce.wrap),ce.status=ce.wrap?42:z,ne.adler=2===ce.wrap?0:1,ce.last_flush=0,C._tr_init(ce),0):J(ne,h)}function _e(ne){var le,ce=ae(ne);return 0===ce&&((le=ne.state).window_size=2*le.w_size,ee(le.head),le.max_lazy_match=c[le.level].max_lazy,le.good_match=c[le.level].good_length,le.nice_match=c[le.level].nice_length,le.max_chain_length=c[le.level].max_chain,le.strstart=0,le.block_start=0,le.lookahead=0,le.insert=0,le.match_length=le.prev_length=2,le.match_available=0,le.ins_h=0),ce}function ye(ne,ce,le,pe,Se,re){if(!ne)return h;var te=1;if(-1===ce&&(ce=6),pe<0?(te=0,pe=-pe):15<pe&&(te=2,pe-=16),Se<1||9<Se||8!==le||pe<8||15<pe||ce<0||9<ce||re<0||4<re)return J(ne,h);8===pe&&(pe=9);var ie=new ze;return(ne.state=ie).strm=ne,ie.wrap=te,ie.gzhead=null,ie.w_bits=pe,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=Se+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+3-1)/3),ie.window=new I.Buf8(2*ie.w_size),ie.head=new I.Buf16(ie.hash_size),ie.prev=new I.Buf16(ie.w_size),ie.lit_bufsize=1<<Se+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new I.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=ce,ie.strategy=re,ie.method=le,_e(ne)}c=[new Be(0,0,0,0,function(ne,ce){var le=65535;for(le>ne.pending_buf_size-5&&(le=ne.pending_buf_size-5);;){if(ne.lookahead<=1){if(oe(ne),0===ne.lookahead&&0===ce)return 1;if(0===ne.lookahead)break}ne.strstart+=ne.lookahead,ne.lookahead=0;var pe=ne.block_start+le;if((0===ne.strstart||ne.strstart>=pe)&&(ne.lookahead=ne.strstart-pe,ne.strstart=pe,q(ne,!1),0===ne.strm.avail_out)||ne.strstart-ne.block_start>=ne.w_size-B&&(q(ne,!1),0===ne.strm.avail_out))return 1}return ne.insert=0,4===ce?(q(ne,!0),0===ne.strm.avail_out?3:4):(ne.strstart>ne.block_start&&q(ne,!1),1)}),new Be(4,4,8,4,fe),new Be(4,5,16,8,fe),new Be(4,6,32,32,fe),new Be(4,4,16,16,Te),new Be(8,16,32,32,Te),new Be(8,16,128,128,Te),new Be(8,32,128,256,Te),new Be(32,128,258,1024,Te),new Be(32,258,258,4096,Te)],o.deflateInit=function(ne,ce){return ye(ne,ce,8,15,8,0)},o.deflateInit2=ye,o.deflateReset=_e,o.deflateResetKeep=ae,o.deflateSetHeader=function(ne,ce){return ne&&ne.state?2!==ne.state.wrap?h:(ne.state.gzhead=ce,0):h},o.deflate=function(ne,ce){var le,pe,Se,re;if(!ne||!ne.state||5<ce||ce<0)return ne?J(ne,h):h;if(pe=ne.state,!ne.output||!ne.input&&0!==ne.avail_in||666===pe.status&&4!==ce)return J(ne,0===ne.avail_out?-5:h);if(pe.strm=ne,le=pe.last_flush,pe.last_flush=ce,42===pe.status)if(2===pe.wrap)ne.adler=0,Z(pe,31),Z(pe,139),Z(pe,8),pe.gzhead?(Z(pe,(pe.gzhead.text?1:0)+(pe.gzhead.hcrc?2:0)+(pe.gzhead.extra?4:0)+(pe.gzhead.name?8:0)+(pe.gzhead.comment?16:0)),Z(pe,255&pe.gzhead.time),Z(pe,pe.gzhead.time>>8&255),Z(pe,pe.gzhead.time>>16&255),Z(pe,pe.gzhead.time>>24&255),Z(pe,9===pe.level?2:2<=pe.strategy||pe.level<2?4:0),Z(pe,255&pe.gzhead.os),pe.gzhead.extra&&pe.gzhead.extra.length&&(Z(pe,255&pe.gzhead.extra.length),Z(pe,pe.gzhead.extra.length>>8&255)),pe.gzhead.hcrc&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending,0)),pe.gzindex=0,pe.status=69):(Z(pe,0),Z(pe,0),Z(pe,0),Z(pe,0),Z(pe,0),Z(pe,9===pe.level?2:2<=pe.strategy||pe.level<2?4:0),Z(pe,3),pe.status=z);else{var te=8+(pe.w_bits-8<<4)<<8;te|=(2<=pe.strategy||pe.level<2?0:pe.level<6?1:6===pe.level?2:3)<<6,0!==pe.strstart&&(te|=32),te+=31-te%31,pe.status=z,X(pe,te),0!==pe.strstart&&(X(pe,ne.adler>>>16),X(pe,65535&ne.adler)),ne.adler=1}if(69===pe.status)if(pe.gzhead.extra){for(Se=pe.pending;pe.gzindex<(65535&pe.gzhead.extra.length)&&(pe.pending!==pe.pending_buf_size||(pe.gzhead.hcrc&&pe.pending>Se&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending-Se,Se)),G(ne),Se=pe.pending,pe.pending!==pe.pending_buf_size));)Z(pe,255&pe.gzhead.extra[pe.gzindex]),pe.gzindex++;pe.gzhead.hcrc&&pe.pending>Se&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending-Se,Se)),pe.gzindex===pe.gzhead.extra.length&&(pe.gzindex=0,pe.status=73)}else pe.status=73;if(73===pe.status)if(pe.gzhead.name){Se=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Se&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending-Se,Se)),G(ne),Se=pe.pending,pe.pending===pe.pending_buf_size)){re=1;break}re=pe.gzindex<pe.gzhead.name.length?255&pe.gzhead.name.charCodeAt(pe.gzindex++):0,Z(pe,re)}while(0!==re);pe.gzhead.hcrc&&pe.pending>Se&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending-Se,Se)),0===re&&(pe.gzindex=0,pe.status=91)}else pe.status=91;if(91===pe.status)if(pe.gzhead.comment){Se=pe.pending;do{if(pe.pending===pe.pending_buf_size&&(pe.gzhead.hcrc&&pe.pending>Se&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending-Se,Se)),G(ne),Se=pe.pending,pe.pending===pe.pending_buf_size)){re=1;break}re=pe.gzindex<pe.gzhead.comment.length?255&pe.gzhead.comment.charCodeAt(pe.gzindex++):0,Z(pe,re)}while(0!==re);pe.gzhead.hcrc&&pe.pending>Se&&(ne.adler=a(ne.adler,pe.pending_buf,pe.pending-Se,Se)),0===re&&(pe.status=103)}else pe.status=103;if(103===pe.status&&(pe.gzhead.hcrc?(pe.pending+2>pe.pending_buf_size&&G(ne),pe.pending+2<=pe.pending_buf_size&&(Z(pe,255&ne.adler),Z(pe,ne.adler>>8&255),ne.adler=0,pe.status=z)):pe.status=z),0!==pe.pending){if(G(ne),0===ne.avail_out)return pe.last_flush=-1,0}else if(0===ne.avail_in&&j(ce)<=j(le)&&4!==ce)return J(ne,-5);if(666===pe.status&&0!==ne.avail_in)return J(ne,-5);if(0!==ne.avail_in||0!==pe.lookahead||0!==ce&&666!==pe.status){var ie=2===pe.strategy?function(ue,be){for(var Ae;;){if(0===ue.lookahead&&(oe(ue),0===ue.lookahead)){if(0===be)return 1;break}if(ue.match_length=0,Ae=C._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++,Ae&&(q(ue,!1),0===ue.strm.avail_out))return 1}return ue.insert=0,4===be?(q(ue,!0),0===ue.strm.avail_out?3:4):ue.last_lit&&(q(ue,!1),0===ue.strm.avail_out)?1:2}(pe,ce):3===pe.strategy?function(ue,be){for(var Ae,Ne,mt,tt,Le=ue.window;;){if(ue.lookahead<=P){if(oe(ue),ue.lookahead<=P&&0===be)return 1;if(0===ue.lookahead)break}if(ue.match_length=0,ue.lookahead>=3&&0<ue.strstart&&(Ne=Le[mt=ue.strstart-1])===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]){tt=ue.strstart+P;do{}while(Ne===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]&&Ne===Le[++mt]&&mt<tt);ue.match_length=P-(tt-mt),ue.match_length>ue.lookahead&&(ue.match_length=ue.lookahead)}if(ue.match_length>=3?(Ae=C._tr_tally(ue,1,ue.match_length-3),ue.lookahead-=ue.match_length,ue.strstart+=ue.match_length,ue.match_length=0):(Ae=C._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++),Ae&&(q(ue,!1),0===ue.strm.avail_out))return 1}return ue.insert=0,4===be?(q(ue,!0),0===ue.strm.avail_out?3:4):ue.last_lit&&(q(ue,!1),0===ue.strm.avail_out)?1:2}(pe,ce):c[pe.level].func(pe,ce);if(3!==ie&&4!==ie||(pe.status=666),1===ie||3===ie)return 0===ne.avail_out&&(pe.last_flush=-1),0;if(2===ie&&(1===ce?C._tr_align(pe):5!==ce&&(C._tr_stored_block(pe,0,0,!1),3===ce&&(ee(pe.head),0===pe.lookahead&&(pe.strstart=0,pe.block_start=0,pe.insert=0))),G(ne),0===ne.avail_out))return pe.last_flush=-1,0}return 4!==ce?0:pe.wrap<=0?1:(2===pe.wrap?(Z(pe,255&ne.adler),Z(pe,ne.adler>>8&255),Z(pe,ne.adler>>16&255),Z(pe,ne.adler>>24&255),Z(pe,255&ne.total_in),Z(pe,ne.total_in>>8&255),Z(pe,ne.total_in>>16&255),Z(pe,ne.total_in>>24&255)):(X(pe,ne.adler>>>16),X(pe,65535&ne.adler)),G(ne),0<pe.wrap&&(pe.wrap=-pe.wrap),0!==pe.pending?0:1)},o.deflateEnd=function(ne){var ce;return ne&&ne.state?42!==(ce=ne.state.status)&&69!==ce&&73!==ce&&91!==ce&&103!==ce&&ce!==z&&666!==ce?J(ne,h):(ne.state=null,ce===z?J(ne,-3):0):h},o.deflateSetDictionary=function(ne,ce){var le,pe,Se,re,te,ie,ue,be,Ae=ce.length;if(!ne||!ne.state||2===(re=(le=ne.state).wrap)||1===re&&42!==le.status||le.lookahead)return h;for(1===re&&(ne.adler=g(ne.adler,ce,Ae,0)),le.wrap=0,Ae>=le.w_size&&(0===re&&(ee(le.head),le.strstart=0,le.block_start=0,le.insert=0),be=new I.Buf8(le.w_size),I.arraySet(be,ce,Ae-le.w_size,le.w_size,0),ce=be,Ae=le.w_size),te=ne.avail_in,ie=ne.next_in,ue=ne.input,ne.avail_in=Ae,ne.next_in=0,ne.input=ce,oe(le);le.lookahead>=3;){for(pe=le.strstart,Se=le.lookahead-2;le.ins_h=(le.ins_h<<le.hash_shift^le.window[pe+3-1])&le.hash_mask,le.prev[pe&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=pe,pe++,--Se;);le.strstart=pe,le.lookahead=2,oe(le)}return le.strstart+=le.lookahead,le.block_start=le.strstart,le.insert=le.lookahead,le.lookahead=0,le.match_length=le.prev_length=2,le.match_available=0,ne.next_in=ie,ne.input=ue,ne.avail_in=te,le.wrap=re,0},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(he,u,o){"use strict";u.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(he,u,o){"use strict";u.exports=function(c,I){var C,g,a,p,s,l,d,h,v,x,b,y,E,S,O,w,T,k,R,P,B,W,z,V,U;V=c.input,a=(g=c.next_in)+(c.avail_in-5),U=c.output,s=(p=c.next_out)-(I-c.avail_out),l=p+(c.avail_out-257),d=(C=c.state).dmax,h=C.wsize,v=C.whave,x=C.wnext,b=C.window,y=C.hold,E=C.bits,S=C.lencode,O=C.distcode,w=(1<<C.lenbits)-1,T=(1<<C.distbits)-1;e:do{E<15&&(y+=V[g++]<<E,y+=V[g++]<<(E+=8),E+=8),k=S[y&w];t:for(;;){if(y>>>=R=k>>>24,E-=R,0==(R=k>>>16&255))U[p++]=65535&k;else{if(!(16&R)){if(!(64&R)){k=S[(65535&k)+(y&(1<<R)-1)];continue t}if(32&R){C.mode=12;break e}c.msg="invalid literal/length code",C.mode=30;break e}P=65535&k,(R&=15)&&(E<R&&(y+=V[g++]<<E,E+=8),P+=y&(1<<R)-1,y>>>=R,E-=R),E<15&&(y+=V[g++]<<E,y+=V[g++]<<(E+=8),E+=8),k=O[y&T];n:for(;;){if(y>>>=R=k>>>24,E-=R,!(16&(R=k>>>16&255))){if(!(64&R)){k=O[(65535&k)+(y&(1<<R)-1)];continue n}c.msg="invalid distance code",C.mode=30;break e}if(B=65535&k,E<(R&=15)&&(y+=V[g++]<<E,(E+=8)<R&&(y+=V[g++]<<E,E+=8)),d<(B+=y&(1<<R)-1)){c.msg="invalid distance too far back",C.mode=30;break e}if(y>>>=R,E-=R,(R=p-s)<B){if(v<(R=B-R)&&C.sane){c.msg="invalid distance too far back",C.mode=30;break e}if(z=b,(W=0)===x){if(W+=h-R,R<P){for(P-=R;U[p++]=b[W++],--R;);W=p-B,z=U}}else if(x<R){if(W+=h+x-R,(R-=x)<P){for(P-=R;U[p++]=b[W++],--R;);if(W=0,x<P){for(P-=R=x;U[p++]=b[W++],--R;);W=p-B,z=U}}}else if(W+=x-R,R<P){for(P-=R;U[p++]=b[W++],--R;);W=p-B,z=U}for(;2<P;)U[p++]=z[W++],U[p++]=z[W++],U[p++]=z[W++],P-=3;P&&(U[p++]=z[W++],1<P&&(U[p++]=z[W++]))}else{for(W=p-B;U[p++]=U[W++],U[p++]=U[W++],U[p++]=U[W++],2<(P-=3););P&&(U[p++]=U[W++],1<P&&(U[p++]=U[W++]))}break}}break}}while(g<a&&p<l);g-=P=E>>3,y&=(1<<(E-=P<<3))-1,c.next_in=g,c.next_out=p,c.avail_in=g<a?a-g+5:5-(g-a),c.avail_out=p<l?l-p+257:257-(p-l),C.hold=y,C.bits=E}},{}],49:[function(he,u,o){"use strict";var c=he("../utils/common"),I=he("./adler32"),C=he("./crc32"),g=he("./inffast"),a=he("./inftrees"),d=-2;function b(W){return(W>>>24&255)+(W>>>8&65280)+((65280&W)<<8)+((255&W)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function E(W){var z;return W&&W.state?(W.total_in=W.total_out=(z=W.state).total=0,W.msg="",z.wrap&&(W.adler=1&z.wrap),z.mode=1,z.last=0,z.havedict=0,z.dmax=32768,z.head=null,z.hold=0,z.bits=0,z.lencode=z.lendyn=new c.Buf32(852),z.distcode=z.distdyn=new c.Buf32(592),z.sane=1,z.back=-1,0):d}function S(W){var z;return W&&W.state?((z=W.state).wsize=0,z.whave=0,z.wnext=0,E(W)):d}function O(W,z){var V,U;return W&&W.state?(U=W.state,z<0?(V=0,z=-z):(V=1+(z>>4),z<48&&(z&=15)),z&&(z<8||15<z)?d:(null!==U.window&&U.wbits!==z&&(U.window=null),U.wrap=V,U.wbits=z,S(W))):d}function w(W,z){var V,U;return W?(U=new y,(W.state=U).window=null,0!==(V=O(W,z))&&(W.state=null),V):d}var T,k,R=!0;function P(W){if(R){var z;for(T=new c.Buf32(512),k=new c.Buf32(32),z=0;z<144;)W.lens[z++]=8;for(;z<256;)W.lens[z++]=9;for(;z<280;)W.lens[z++]=7;for(;z<288;)W.lens[z++]=8;for(a(1,W.lens,0,288,T,0,W.work,{bits:9}),z=0;z<32;)W.lens[z++]=5;a(2,W.lens,0,32,k,0,W.work,{bits:5}),R=!1}W.lencode=T,W.lenbits=9,W.distcode=k,W.distbits=5}function B(W,z,V,U){var K,Y=W.state;return null===Y.window&&(Y.wsize=1<<Y.wbits,Y.wnext=0,Y.whave=0,Y.window=new c.Buf8(Y.wsize)),U>=Y.wsize?(c.arraySet(Y.window,z,V-Y.wsize,Y.wsize,0),Y.wnext=0,Y.whave=Y.wsize):(U<(K=Y.wsize-Y.wnext)&&(K=U),c.arraySet(Y.window,z,V-U,K,Y.wnext),(U-=K)?(c.arraySet(Y.window,z,V-U,U,0),Y.wnext=U,Y.whave=Y.wsize):(Y.wnext+=K,Y.wnext===Y.wsize&&(Y.wnext=0),Y.whave<Y.wsize&&(Y.whave+=K))),0}o.inflateReset=S,o.inflateReset2=O,o.inflateResetKeep=E,o.inflateInit=function(W){return w(W,15)},o.inflateInit2=w,o.inflate=function(W,z){var V,U,K,Y,J,j,ee,G,q,Z,X,M,oe,fe,Te,Be,ze,ae,_e,ye,ne,ce,le,pe,Se=0,re=new c.Buf8(4),te=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!W||!W.state||!W.output||!W.input&&0!==W.avail_in)return d;12===(V=W.state).mode&&(V.mode=13),J=W.next_out,K=W.output,Y=W.next_in,U=W.input,G=V.hold,q=V.bits,Z=j=W.avail_in,X=ee=W.avail_out,ce=0;e:for(;;)switch(V.mode){case 1:if(0===V.wrap){V.mode=13;break}for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(2&V.wrap&&35615===G){re[V.check=0]=255&G,re[1]=G>>>8&255,V.check=C(V.check,re,2,0),q=G=0,V.mode=2;break}if(V.flags=0,V.head&&(V.head.done=!1),!(1&V.wrap)||(((255&G)<<8)+(G>>8))%31){W.msg="incorrect header check",V.mode=30;break}if(8!=(15&G)){W.msg="unknown compression method",V.mode=30;break}if(q-=4,ne=8+(15&(G>>>=4)),0===V.wbits)V.wbits=ne;else if(ne>V.wbits){W.msg="invalid window size",V.mode=30;break}V.dmax=1<<ne,W.adler=V.check=1,V.mode=512&G?10:12,q=G=0;break;case 2:for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(V.flags=G,8!=(255&V.flags)){W.msg="unknown compression method",V.mode=30;break}if(57344&V.flags){W.msg="unknown header flags set",V.mode=30;break}V.head&&(V.head.text=G>>8&1),512&V.flags&&(re[0]=255&G,re[1]=G>>>8&255,V.check=C(V.check,re,2,0)),q=G=0,V.mode=3;case 3:for(;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.head&&(V.head.time=G),512&V.flags&&(re[0]=255&G,re[1]=G>>>8&255,re[2]=G>>>16&255,re[3]=G>>>24&255,V.check=C(V.check,re,4,0)),q=G=0,V.mode=4;case 4:for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.head&&(V.head.xflags=255&G,V.head.os=G>>8),512&V.flags&&(re[0]=255&G,re[1]=G>>>8&255,V.check=C(V.check,re,2,0)),q=G=0,V.mode=5;case 5:if(1024&V.flags){for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.length=G,V.head&&(V.head.extra_len=G),512&V.flags&&(re[0]=255&G,re[1]=G>>>8&255,V.check=C(V.check,re,2,0)),q=G=0}else V.head&&(V.head.extra=null);V.mode=6;case 6:if(1024&V.flags&&(j<(M=V.length)&&(M=j),M&&(V.head&&(ne=V.head.extra_len-V.length,V.head.extra||(V.head.extra=new Array(V.head.extra_len)),c.arraySet(V.head.extra,U,Y,M,ne)),512&V.flags&&(V.check=C(V.check,U,M,Y)),j-=M,Y+=M,V.length-=M),V.length))break e;V.length=0,V.mode=7;case 7:if(2048&V.flags){if(0===j)break e;for(M=0;ne=U[Y+M++],V.head&&ne&&V.length<65536&&(V.head.name+=String.fromCharCode(ne)),ne&&M<j;);if(512&V.flags&&(V.check=C(V.check,U,M,Y)),j-=M,Y+=M,ne)break e}else V.head&&(V.head.name=null);V.length=0,V.mode=8;case 8:if(4096&V.flags){if(0===j)break e;for(M=0;ne=U[Y+M++],V.head&&ne&&V.length<65536&&(V.head.comment+=String.fromCharCode(ne)),ne&&M<j;);if(512&V.flags&&(V.check=C(V.check,U,M,Y)),j-=M,Y+=M,ne)break e}else V.head&&(V.head.comment=null);V.mode=9;case 9:if(512&V.flags){for(;q<16;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(G!==(65535&V.check)){W.msg="header crc mismatch",V.mode=30;break}q=G=0}V.head&&(V.head.hcrc=V.flags>>9&1,V.head.done=!0),W.adler=V.check=0,V.mode=12;break;case 10:for(;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}W.adler=V.check=b(G),q=G=0,V.mode=11;case 11:if(0===V.havedict)return W.next_out=J,W.avail_out=ee,W.next_in=Y,W.avail_in=j,V.hold=G,V.bits=q,2;W.adler=V.check=1,V.mode=12;case 12:if(5===z||6===z)break e;case 13:if(V.last){G>>>=7&q,q-=7&q,V.mode=27;break}for(;q<3;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}switch(V.last=1&G,q-=1,3&(G>>>=1)){case 0:V.mode=14;break;case 1:if(P(V),V.mode=20,6!==z)break;G>>>=2,q-=2;break e;case 2:V.mode=17;break;case 3:W.msg="invalid block type",V.mode=30}G>>>=2,q-=2;break;case 14:for(G>>>=7&q,q-=7&q;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if((65535&G)!=(G>>>16^65535)){W.msg="invalid stored block lengths",V.mode=30;break}if(V.length=65535&G,q=G=0,V.mode=15,6===z)break e;case 15:V.mode=16;case 16:if(M=V.length){if(j<M&&(M=j),ee<M&&(M=ee),0===M)break e;c.arraySet(K,U,Y,M,J),j-=M,Y+=M,ee-=M,J+=M,V.length-=M;break}V.mode=12;break;case 17:for(;q<14;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(V.nlen=257+(31&G),q-=5,V.ndist=1+(31&(G>>>=5)),q-=5,V.ncode=4+(15&(G>>>=5)),G>>>=4,q-=4,286<V.nlen||30<V.ndist){W.msg="too many length or distance symbols",V.mode=30;break}V.have=0,V.mode=18;case 18:for(;V.have<V.ncode;){for(;q<3;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.lens[te[V.have++]]=7&G,G>>>=3,q-=3}for(;V.have<19;)V.lens[te[V.have++]]=0;if(V.lencode=V.lendyn,V.lenbits=7,ce=a(0,V.lens,0,19,V.lencode,0,V.work,le={bits:V.lenbits}),V.lenbits=le.bits,ce){W.msg="invalid code lengths set",V.mode=30;break}V.have=0,V.mode=19;case 19:for(;V.have<V.nlen+V.ndist;){for(;Be=(Se=V.lencode[G&(1<<V.lenbits)-1])>>>16&255,ze=65535&Se,!((Te=Se>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(ze<16)G>>>=Te,q-=Te,V.lens[V.have++]=ze;else{if(16===ze){for(pe=Te+2;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(G>>>=Te,q-=Te,0===V.have){W.msg="invalid bit length repeat",V.mode=30;break}ne=V.lens[V.have-1],M=3+(3&G),G>>>=2,q-=2}else if(17===ze){for(pe=Te+3;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}q-=Te,ne=0,M=3+(7&(G>>>=Te)),G>>>=3,q-=3}else{for(pe=Te+7;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}q-=Te,ne=0,M=11+(127&(G>>>=Te)),G>>>=7,q-=7}if(V.have+M>V.nlen+V.ndist){W.msg="invalid bit length repeat",V.mode=30;break}for(;M--;)V.lens[V.have++]=ne}}if(30===V.mode)break;if(0===V.lens[256]){W.msg="invalid code -- missing end-of-block",V.mode=30;break}if(V.lenbits=9,ce=a(1,V.lens,0,V.nlen,V.lencode,0,V.work,le={bits:V.lenbits}),V.lenbits=le.bits,ce){W.msg="invalid literal/lengths set",V.mode=30;break}if(V.distbits=6,V.distcode=V.distdyn,ce=a(2,V.lens,V.nlen,V.ndist,V.distcode,0,V.work,le={bits:V.distbits}),V.distbits=le.bits,ce){W.msg="invalid distances set",V.mode=30;break}if(V.mode=20,6===z)break e;case 20:V.mode=21;case 21:if(6<=j&&258<=ee){W.next_out=J,W.avail_out=ee,W.next_in=Y,W.avail_in=j,V.hold=G,V.bits=q,g(W,X),J=W.next_out,K=W.output,ee=W.avail_out,Y=W.next_in,U=W.input,j=W.avail_in,G=V.hold,q=V.bits,12===V.mode&&(V.back=-1);break}for(V.back=0;Be=(Se=V.lencode[G&(1<<V.lenbits)-1])>>>16&255,ze=65535&Se,!((Te=Se>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(Be&&!(240&Be)){for(ae=Te,_e=Be,ye=ze;Be=(Se=V.lencode[ye+((G&(1<<ae+_e)-1)>>ae)])>>>16&255,ze=65535&Se,!(ae+(Te=Se>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}G>>>=ae,q-=ae,V.back+=ae}if(G>>>=Te,q-=Te,V.back+=Te,V.length=ze,0===Be){V.mode=26;break}if(32&Be){V.back=-1,V.mode=12;break}if(64&Be){W.msg="invalid literal/length code",V.mode=30;break}V.extra=15&Be,V.mode=22;case 22:if(V.extra){for(pe=V.extra;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.length+=G&(1<<V.extra)-1,G>>>=V.extra,q-=V.extra,V.back+=V.extra}V.was=V.length,V.mode=23;case 23:for(;Be=(Se=V.distcode[G&(1<<V.distbits)-1])>>>16&255,ze=65535&Se,!((Te=Se>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(!(240&Be)){for(ae=Te,_e=Be,ye=ze;Be=(Se=V.distcode[ye+((G&(1<<ae+_e)-1)>>ae)])>>>16&255,ze=65535&Se,!(ae+(Te=Se>>>24)<=q);){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}G>>>=ae,q-=ae,V.back+=ae}if(G>>>=Te,q-=Te,V.back+=Te,64&Be){W.msg="invalid distance code",V.mode=30;break}V.offset=ze,V.extra=15&Be,V.mode=24;case 24:if(V.extra){for(pe=V.extra;q<pe;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}V.offset+=G&(1<<V.extra)-1,G>>>=V.extra,q-=V.extra,V.back+=V.extra}if(V.offset>V.dmax){W.msg="invalid distance too far back",V.mode=30;break}V.mode=25;case 25:if(0===ee)break e;if(V.offset>(M=X-ee)){if((M=V.offset-M)>V.whave&&V.sane){W.msg="invalid distance too far back",V.mode=30;break}oe=M>V.wnext?V.wsize-(M-=V.wnext):V.wnext-M,M>V.length&&(M=V.length),fe=V.window}else fe=K,oe=J-V.offset,M=V.length;for(ee<M&&(M=ee),ee-=M,V.length-=M;K[J++]=fe[oe++],--M;);0===V.length&&(V.mode=21);break;case 26:if(0===ee)break e;K[J++]=V.length,ee--,V.mode=21;break;case 27:if(V.wrap){for(;q<32;){if(0===j)break e;j--,G|=U[Y++]<<q,q+=8}if(W.total_out+=X-=ee,V.total+=X,X&&(W.adler=V.check=V.flags?C(V.check,K,X,J-X):I(V.check,K,X,J-X)),X=ee,(V.flags?G:b(G))!==V.check){W.msg="incorrect data check",V.mode=30;break}q=G=0}V.mode=28;case 28:if(V.wrap&&V.flags){for(;q<32;){if(0===j)break e;j--,G+=U[Y++]<<q,q+=8}if(G!==(4294967295&V.total)){W.msg="incorrect length check",V.mode=30;break}q=G=0}V.mode=29;case 29:ce=1;break e;case 30:ce=-3;break e;case 31:return-4;default:return d}return W.next_out=J,W.avail_out=ee,W.next_in=Y,W.avail_in=j,V.hold=G,V.bits=q,(V.wsize||X!==W.avail_out&&V.mode<30&&(V.mode<27||4!==z))&&B(W,W.output,W.next_out,X-W.avail_out)?(V.mode=31,-4):(X-=W.avail_out,W.total_in+=Z-=W.avail_in,W.total_out+=X,V.total+=X,V.wrap&&X&&(W.adler=V.check=V.flags?C(V.check,K,X,W.next_out-X):I(V.check,K,X,W.next_out-X)),W.data_type=V.bits+(V.last?64:0)+(12===V.mode?128:0)+(20===V.mode||15===V.mode?256:0),(0==Z&&0===X||4===z)&&0===ce&&(ce=-5),ce)},o.inflateEnd=function(W){if(!W||!W.state)return d;var z=W.state;return z.window&&(z.window=null),W.state=null,0},o.inflateGetHeader=function(W,z){var V;return W&&W.state&&2&(V=W.state).wrap?((V.head=z).done=!1,0):d},o.inflateSetDictionary=function(W,z){var V,U=z.length;return W&&W.state?0!==(V=W.state).wrap&&11!==V.mode?d:11===V.mode&&I(1,z,U,0)!==V.check?-3:B(W,z,U,U)?(V.mode=31,-4):(V.havedict=1,0):d},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(he,u,o){"use strict";var c=he("../utils/common"),I=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],C=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],g=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];u.exports=function(p,s,l,d,h,v,x,b){var y,E,S,O,w,T,k,R,P,B=b.bits,W=0,z=0,V=0,U=0,K=0,Y=0,J=0,j=0,ee=0,G=0,q=null,Z=0,X=new c.Buf16(16),M=new c.Buf16(16),oe=null,fe=0;for(W=0;W<=15;W++)X[W]=0;for(z=0;z<d;z++)X[s[l+z]]++;for(K=B,U=15;1<=U&&0===X[U];U--);if(U<K&&(K=U),0===U)return h[v++]=20971520,h[v++]=20971520,b.bits=1,0;for(V=1;V<U&&0===X[V];V++);for(K<V&&(K=V),W=j=1;W<=15;W++)if(j<<=1,(j-=X[W])<0)return-1;if(0<j&&(0===p||1!==U))return-1;for(M[1]=0,W=1;W<15;W++)M[W+1]=M[W]+X[W];for(z=0;z<d;z++)0!==s[l+z]&&(x[M[s[l+z]]++]=z);if(T=0===p?(q=oe=x,19):1===p?(q=I,Z-=257,oe=C,fe-=257,256):(q=g,oe=a,-1),W=V,w=v,J=z=G=0,S=-1,O=(ee=1<<(Y=K))-1,1===p&&852<ee||2===p&&592<ee)return 1;for(;;){for(k=W-J,P=x[z]<T?(R=0,x[z]):x[z]>T?(R=oe[fe+x[z]],q[Z+x[z]]):(R=96,0),y=1<<W-J,V=E=1<<Y;h[w+(G>>J)+(E-=y)]=k<<24|R<<16|P|0,0!==E;);for(y=1<<W-1;G&y;)y>>=1;if(0!==y?(G&=y-1,G+=y):G=0,z++,0==--X[W]){if(W===U)break;W=s[l+x[z]]}if(K<W&&(G&O)!==S){for(0===J&&(J=K),w+=V,j=1<<(Y=W-J);Y+J<U&&!((j-=X[Y+J])<=0);)Y++,j<<=1;if(ee+=1<<Y,1===p&&852<ee||2===p&&592<ee)return 1;h[S=G&O]=K<<24|Y<<16|w-v|0}}return 0!==G&&(h[w+G]=W-J<<24|64<<16|0),b.bits=K,0}},{"../utils/common":41}],51:[function(he,u,o){"use strict";u.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(he,u,o){"use strict";var c=he("../utils/common");function g(Se){for(var re=Se.length;0<=--re;)Se[re]=0}var s=256,l=286,d=30,x=15,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],R=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=new Array(576);g(B);var W=new Array(60);g(W);var z=new Array(512);g(z);var V=new Array(256);g(V);var U=new Array(29);g(U);var K,Y,J,j=new Array(d);function ee(Se,re,te,ie,ue){this.static_tree=Se,this.extra_bits=re,this.extra_base=te,this.elems=ie,this.max_length=ue,this.has_stree=Se&&Se.length}function G(Se,re){this.dyn_tree=Se,this.max_code=0,this.stat_desc=re}function q(Se){return Se<256?z[Se]:z[256+(Se>>>7)]}function Z(Se,re){Se.pending_buf[Se.pending++]=255&re,Se.pending_buf[Se.pending++]=re>>>8&255}function X(Se,re,te){Se.bi_valid>16-te?(Se.bi_buf|=re<<Se.bi_valid&65535,Z(Se,Se.bi_buf),Se.bi_buf=re>>16-Se.bi_valid,Se.bi_valid+=te-16):(Se.bi_buf|=re<<Se.bi_valid&65535,Se.bi_valid+=te)}function M(Se,re,te){X(Se,te[2*re],te[2*re+1])}function oe(Se,re){for(var te=0;te|=1&Se,Se>>>=1,te<<=1,0<--re;);return te>>>1}function fe(Se,re,te){var ie,ue,be=new Array(16),Ae=0;for(ie=1;ie<=x;ie++)be[ie]=Ae=Ae+te[ie-1]<<1;for(ue=0;ue<=re;ue++){var Ne=Se[2*ue+1];0!==Ne&&(Se[2*ue]=oe(be[Ne]++,Ne))}}function Te(Se){var re;for(re=0;re<l;re++)Se.dyn_ltree[2*re]=0;for(re=0;re<d;re++)Se.dyn_dtree[2*re]=0;for(re=0;re<19;re++)Se.bl_tree[2*re]=0;Se.dyn_ltree[512]=1,Se.opt_len=Se.static_len=0,Se.last_lit=Se.matches=0}function Be(Se){8<Se.bi_valid?Z(Se,Se.bi_buf):0<Se.bi_valid&&(Se.pending_buf[Se.pending++]=Se.bi_buf),Se.bi_buf=0,Se.bi_valid=0}function ze(Se,re,te,ie){var ue=2*re,be=2*te;return Se[ue]<Se[be]||Se[ue]===Se[be]&&ie[re]<=ie[te]}function ae(Se,re,te){for(var ie=Se.heap[te],ue=te<<1;ue<=Se.heap_len&&(ue<Se.heap_len&&ze(re,Se.heap[ue+1],Se.heap[ue],Se.depth)&&ue++,!ze(re,ie,Se.heap[ue],Se.depth));)Se.heap[te]=Se.heap[ue],te=ue,ue<<=1;Se.heap[te]=ie}function _e(Se,re,te){var ie,ue,be,Ae,Ne=0;if(0!==Se.last_lit)for(;ie=Se.pending_buf[Se.d_buf+2*Ne]<<8|Se.pending_buf[Se.d_buf+2*Ne+1],ue=Se.pending_buf[Se.l_buf+Ne],Ne++,0===ie?M(Se,ue,re):(M(Se,(be=V[ue])+s+1,re),0!==(Ae=T[be])&&X(Se,ue-=U[be],Ae),M(Se,be=q(--ie),te),0!==(Ae=k[be])&&X(Se,ie-=j[be],Ae)),Ne<Se.last_lit;);M(Se,256,re)}function ye(Se,re){var te,ie,ue,be=re.dyn_tree,Ae=re.stat_desc.static_tree,Ne=re.stat_desc.has_stree,mt=re.stat_desc.elems,tt=-1;for(Se.heap_len=0,Se.heap_max=573,te=0;te<mt;te++)0!==be[2*te]?(Se.heap[++Se.heap_len]=tt=te,Se.depth[te]=0):be[2*te+1]=0;for(;Se.heap_len<2;)be[2*(ue=Se.heap[++Se.heap_len]=tt<2?++tt:0)]=1,Se.depth[ue]=0,Se.opt_len--,Ne&&(Se.static_len-=Ae[2*ue+1]);for(re.max_code=tt,te=Se.heap_len>>1;1<=te;te--)ae(Se,be,te);for(ue=mt;te=Se.heap[1],Se.heap[1]=Se.heap[Se.heap_len--],ae(Se,be,1),ie=Se.heap[1],Se.heap[--Se.heap_max]=te,Se.heap[--Se.heap_max]=ie,be[2*ue]=be[2*te]+be[2*ie],Se.depth[ue]=(Se.depth[te]>=Se.depth[ie]?Se.depth[te]:Se.depth[ie])+1,be[2*te+1]=be[2*ie+1]=ue,Se.heap[1]=ue++,ae(Se,be,1),2<=Se.heap_len;);Se.heap[--Se.heap_max]=Se.heap[1],function(Le,gt){var tn,Pe,$e,ge,Ce,De,Ye=gt.dyn_tree,bt=gt.max_code,yt=gt.stat_desc.static_tree,kt=gt.stat_desc.has_stree,gn=gt.stat_desc.extra_bits,ut=gt.stat_desc.extra_base,Ve=gt.stat_desc.max_length,St=0;for(ge=0;ge<=x;ge++)Le.bl_count[ge]=0;for(Ye[2*Le.heap[Le.heap_max]+1]=0,tn=Le.heap_max+1;tn<573;tn++)Ve<(ge=Ye[2*Ye[2*(Pe=Le.heap[tn])+1]+1]+1)&&(ge=Ve,St++),Ye[2*Pe+1]=ge,bt<Pe||(Le.bl_count[ge]++,Ce=0,ut<=Pe&&(Ce=gn[Pe-ut]),Le.opt_len+=(De=Ye[2*Pe])*(ge+Ce),kt&&(Le.static_len+=De*(yt[2*Pe+1]+Ce)));if(0!==St){do{for(ge=Ve-1;0===Le.bl_count[ge];)ge--;Le.bl_count[ge]--,Le.bl_count[ge+1]+=2,Le.bl_count[Ve]--,St-=2}while(0<St);for(ge=Ve;0!==ge;ge--)for(Pe=Le.bl_count[ge];0!==Pe;)bt<($e=Le.heap[--tn])||(Ye[2*$e+1]!==ge&&(Le.opt_len+=(ge-Ye[2*$e+1])*Ye[2*$e],Ye[2*$e+1]=ge),Pe--)}}(Se,re),fe(be,tt,Se.bl_count)}function ne(Se,re,te){var ie,ue,be=-1,Ae=re[1],Ne=0,mt=7,tt=4;for(0===Ae&&(mt=138,tt=3),re[2*(te+1)+1]=65535,ie=0;ie<=te;ie++)ue=Ae,Ae=re[2*(ie+1)+1],++Ne<mt&&ue===Ae||(Ne<tt?Se.bl_tree[2*ue]+=Ne:0!==ue?(ue!==be&&Se.bl_tree[2*ue]++,Se.bl_tree[32]++):Ne<=10?Se.bl_tree[34]++:Se.bl_tree[36]++,be=ue,tt=(Ne=0)===Ae?(mt=138,3):ue===Ae?(mt=6,3):(mt=7,4))}function ce(Se,re,te){var ie,ue,be=-1,Ae=re[1],Ne=0,mt=7,tt=4;for(0===Ae&&(mt=138,tt=3),ie=0;ie<=te;ie++)if(ue=Ae,Ae=re[2*(ie+1)+1],!(++Ne<mt&&ue===Ae)){if(Ne<tt)for(;M(Se,ue,Se.bl_tree),0!=--Ne;);else 0!==ue?(ue!==be&&(M(Se,ue,Se.bl_tree),Ne--),M(Se,16,Se.bl_tree),X(Se,Ne-3,2)):Ne<=10?(M(Se,17,Se.bl_tree),X(Se,Ne-3,3)):(M(Se,18,Se.bl_tree),X(Se,Ne-11,7));be=ue,tt=(Ne=0)===Ae?(mt=138,3):ue===Ae?(mt=6,3):(mt=7,4)}}g(j);var le=!1;function pe(Se,re,te,ie){var ue,be,Ae;X(Se,0+(ie?1:0),3),be=re,Ae=te,Be(ue=Se),Z(ue,Ae),Z(ue,~Ae),c.arraySet(ue.pending_buf,ue.window,be,Ae,ue.pending),ue.pending+=Ae}o._tr_init=function(Se){le||(function(){var re,te,ie,ue,be,Ae=new Array(16);for(ue=ie=0;ue<28;ue++)for(U[ue]=ie,re=0;re<1<<T[ue];re++)V[ie++]=ue;for(V[ie-1]=ue,ue=be=0;ue<16;ue++)for(j[ue]=be,re=0;re<1<<k[ue];re++)z[be++]=ue;for(be>>=7;ue<d;ue++)for(j[ue]=be<<7,re=0;re<1<<k[ue]-7;re++)z[256+be++]=ue;for(te=0;te<=x;te++)Ae[te]=0;for(re=0;re<=143;)B[2*re+1]=8,re++,Ae[8]++;for(;re<=255;)B[2*re+1]=9,re++,Ae[9]++;for(;re<=279;)B[2*re+1]=7,re++,Ae[7]++;for(;re<=287;)B[2*re+1]=8,re++,Ae[8]++;for(fe(B,287,Ae),re=0;re<d;re++)W[2*re+1]=5,W[2*re]=oe(re,5);K=new ee(B,T,257,l,x),Y=new ee(W,k,0,d,x),J=new ee(new Array(0),R,0,19,7)}(),le=!0),Se.l_desc=new G(Se.dyn_ltree,K),Se.d_desc=new G(Se.dyn_dtree,Y),Se.bl_desc=new G(Se.bl_tree,J),Se.bi_buf=0,Se.bi_valid=0,Te(Se)},o._tr_stored_block=pe,o._tr_flush_block=function(Se,re,te,ie){var ue,be,Ae=0;0<Se.level?(2===Se.strm.data_type&&(Se.strm.data_type=function(Ne){var mt,tt=4093624447;for(mt=0;mt<=31;mt++,tt>>>=1)if(1&tt&&0!==Ne.dyn_ltree[2*mt])return 0;if(0!==Ne.dyn_ltree[18]||0!==Ne.dyn_ltree[20]||0!==Ne.dyn_ltree[26])return 1;for(mt=32;mt<s;mt++)if(0!==Ne.dyn_ltree[2*mt])return 1;return 0}(Se)),ye(Se,Se.l_desc),ye(Se,Se.d_desc),Ae=function(Ne){var mt;for(ne(Ne,Ne.dyn_ltree,Ne.l_desc.max_code),ne(Ne,Ne.dyn_dtree,Ne.d_desc.max_code),ye(Ne,Ne.bl_desc),mt=18;3<=mt&&0===Ne.bl_tree[2*P[mt]+1];mt--);return Ne.opt_len+=3*(mt+1)+5+5+4,mt}(Se),(be=Se.static_len+3+7>>>3)<=(ue=Se.opt_len+3+7>>>3)&&(ue=be)):ue=be=te+5,te+4<=ue&&-1!==re?pe(Se,re,te,ie):4===Se.strategy||be===ue?(X(Se,2+(ie?1:0),3),_e(Se,B,W)):(X(Se,4+(ie?1:0),3),function(Ne,mt,tt,Le){var gt;for(X(Ne,mt-257,5),X(Ne,tt-1,5),X(Ne,Le-4,4),gt=0;gt<Le;gt++)X(Ne,Ne.bl_tree[2*P[gt]+1],3);ce(Ne,Ne.dyn_ltree,mt-1),ce(Ne,Ne.dyn_dtree,tt-1)}(Se,Se.l_desc.max_code+1,Se.d_desc.max_code+1,Ae+1),_e(Se,Se.dyn_ltree,Se.dyn_dtree)),Te(Se),ie&&Be(Se)},o._tr_tally=function(Se,re,te){return Se.pending_buf[Se.d_buf+2*Se.last_lit]=re>>>8&255,Se.pending_buf[Se.d_buf+2*Se.last_lit+1]=255&re,Se.pending_buf[Se.l_buf+Se.last_lit]=255&te,Se.last_lit++,0===re?Se.dyn_ltree[2*te]++:(Se.matches++,re--,Se.dyn_ltree[2*(V[te]+s+1)]++,Se.dyn_dtree[2*q(re)]++),Se.last_lit===Se.lit_bufsize-1},o._tr_align=function(Se){var re;X(Se,2,3),M(Se,256,B),16===(re=Se).bi_valid?(Z(re,re.bi_buf),re.bi_buf=0,re.bi_valid=0):8<=re.bi_valid&&(re.pending_buf[re.pending++]=255&re.bi_buf,re.bi_buf>>=8,re.bi_valid-=8)}},{"../utils/common":41}],53:[function(he,u,o){"use strict";u.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(he,u,o){(function(c){!function(I,C){"use strict";if(!I.setImmediate){var g,a,p,s,l=1,d={},h=!1,v=I.document,x=Object.getPrototypeOf&&Object.getPrototypeOf(I);x=x&&x.setTimeout?x:I,g="[object process]"==={}.toString.call(I.process)?function(S){process.nextTick(function(){y(S)})}:function(){if(I.postMessage&&!I.importScripts){var S=!0,O=I.onmessage;return I.onmessage=function(){S=!1},I.postMessage("","*"),I.onmessage=O,S}}()?(s="setImmediate$"+Math.random()+"$",I.addEventListener?I.addEventListener("message",E,!1):I.attachEvent("onmessage",E),function(S){I.postMessage(s+S,"*")}):I.MessageChannel?((p=new MessageChannel).port1.onmessage=function(S){y(S.data)},function(S){p.port2.postMessage(S)}):v&&"onreadystatechange"in v.createElement("script")?(a=v.documentElement,function(S){var O=v.createElement("script");O.onreadystatechange=function(){y(S),O.onreadystatechange=null,a.removeChild(O),O=null},a.appendChild(O)}):function(S){setTimeout(y,0,S)},x.setImmediate=function(S){"function"!=typeof S&&(S=new Function(""+S));for(var O=new Array(arguments.length-1),w=0;w<O.length;w++)O[w]=arguments[w+1];return d[l]={callback:S,args:O},g(l),l++},x.clearImmediate=b}function b(S){delete d[S]}function y(S){if(h)setTimeout(y,0,S);else{var O=d[S];if(O){h=!0;try{!function(w){var T=w.callback,k=w.args;switch(k.length){case 0:T();break;case 1:T(k[0]);break;case 2:T(k[0],k[1]);break;case 3:T(k[0],k[1],k[2]);break;default:T.apply(undefined,k)}}(O)}finally{b(S),h=!1}}}}function E(S){S.source===I&&"string"==typeof S.data&&0===S.data.indexOf(s)&&y(+S.data.slice(s.length))}}(typeof self>"u"?void 0===c?this:c:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)},882:(Rn,he,u)=>{"use strict";u.d(he,{y:()=>l});var o=u(7393),I=u(9181),C=u(6490),a=u(6554),p=u(4022),s=u(2494);let l=(()=>{class h{constructor(x){this._isScalar=!1,x&&(this._subscribe=x)}lift(x){const b=new h;return b.source=this,b.operator=x,b}subscribe(x,b,y){const{operator:E}=this,S=function g(h,v,x){if(h){if(h instanceof o.L)return h;if(h[I.b])return h[I.b]()}return h||v||x?new o.L(h,v,x):new o.L(C.c)}(x,b,y);if(S.add(E?E.call(S,this.source):this.source||s.v.useDeprecatedSynchronousErrorHandling&&!S.syncErrorThrowable?this._subscribe(S):this._trySubscribe(S)),s.v.useDeprecatedSynchronousErrorHandling&&S.syncErrorThrowable&&(S.syncErrorThrowable=!1,S.syncErrorThrown))throw S.syncErrorValue;return S}_trySubscribe(x){try{return this._subscribe(x)}catch(b){s.v.useDeprecatedSynchronousErrorHandling&&(x.syncErrorThrown=!0,x.syncErrorValue=b),function c(h){for(;h;){const{closed:v,destination:x,isStopped:b}=h;if(v||b)return!1;h=x&&x instanceof o.L?x:null}return!0}(x)?x.error(b):console.warn(b)}}forEach(x,b){return new(b=d(b))((y,E)=>{let S;S=this.subscribe(O=>{try{x(O)}catch(w){E(w),S&&S.unsubscribe()}},E,y)})}_subscribe(x){const{source:b}=this;return b&&b.subscribe(x)}[a.L](){return this}pipe(...x){return 0===x.length?this:(0,p.U)(x)(this)}toPromise(x){return new(x=d(x))((b,y)=>{let E;this.subscribe(S=>E=S,S=>y(S),()=>b(E))})}}return h.create=v=>new h(v),h})();function d(h){if(h||(h=s.v.Promise||Promise),!h)throw new Error("no Promise impl found");return h}},6490:(Rn,he,u)=>{"use strict";u.d(he,{c:()=>I});var o=u(2494),c=u(4449);const I={closed:!0,next(C){},error(C){if(o.v.useDeprecatedSynchronousErrorHandling)throw C;(0,c.z)(C)},complete(){}}},5775:(Rn,he,u)=>{"use strict";u.d(he,{xQ:()=>s,Yc:()=>p});var o=u(882),c=u(7393),I=u(3464),C=u(7971);class g extends I.w{constructor(h,v){super(),this.subject=h,this.subscriber=v,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const h=this.subject,v=h.observers;if(this.subject=null,!v||0===v.length||h.isStopped||h.closed)return;const x=v.indexOf(this.subscriber);-1!==x&&v.splice(x,1)}}var a=u(9181);class p extends c.L{constructor(h){super(h),this.destination=h}}let s=(()=>{class d extends o.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[a.b](){return new p(this)}lift(v){const x=new l(this,this);return x.operator=v,x}next(v){if(this.closed)throw new C.N;if(!this.isStopped){const{observers:x}=this,b=x.length,y=x.slice();for(let E=0;E<b;E++)y[E].next(v)}}error(v){if(this.closed)throw new C.N;this.hasError=!0,this.thrownError=v,this.isStopped=!0;const{observers:x}=this,b=x.length,y=x.slice();for(let E=0;E<b;E++)y[E].error(v);this.observers.length=0}complete(){if(this.closed)throw new C.N;this.isStopped=!0;const{observers:v}=this,x=v.length,b=v.slice();for(let y=0;y<x;y++)b[y].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(v){if(this.closed)throw new C.N;return super._trySubscribe(v)}_subscribe(v){if(this.closed)throw new C.N;return this.hasError?(v.error(this.thrownError),I.w.EMPTY):this.isStopped?(v.complete(),I.w.EMPTY):(this.observers.push(v),new g(this,v))}asObservable(){const v=new o.y;return v.source=this,v}}return d.create=(h,v)=>new l(h,v),d})();class l extends s{constructor(h,v){super(),this.destination=h,this.source=v}next(h){const{destination:v}=this;v&&v.next&&v.next(h)}error(h){const{destination:v}=this;v&&v.error&&this.destination.error(h)}complete(){const{destination:h}=this;h&&h.complete&&this.destination.complete()}_subscribe(h){const{source:v}=this;return v?this.source.subscribe(h):I.w.EMPTY}}},7393:(Rn,he,u)=>{"use strict";u.d(he,{L:()=>p});var o=u(9105),c=u(6490),I=u(3464),C=u(9181),g=u(2494),a=u(4449);class p extends I.w{constructor(d,h,v){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=c.c;break;case 1:if(!d){this.destination=c.c;break}if("object"==typeof d){d instanceof p?(this.syncErrorThrowable=d.syncErrorThrowable,this.destination=d,d.add(this)):(this.syncErrorThrowable=!0,this.destination=new s(this,d));break}default:this.syncErrorThrowable=!0,this.destination=new s(this,d,h,v)}}[C.b](){return this}static create(d,h,v){const x=new p(d,h,v);return x.syncErrorThrowable=!1,x}next(d){this.isStopped||this._next(d)}error(d){this.isStopped||(this.isStopped=!0,this._error(d))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(d){this.destination.next(d)}_error(d){this.destination.error(d),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:d}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=d,this}}class s extends p{constructor(d,h,v,x){super(),this._parentSubscriber=d;let b,y=this;(0,o.m)(h)?b=h:h&&(b=h.next,v=h.error,x=h.complete,h!==c.c&&(y=Object.create(h),(0,o.m)(y.unsubscribe)&&this.add(y.unsubscribe.bind(y)),y.unsubscribe=this.unsubscribe.bind(this))),this._context=y,this._next=b,this._error=v,this._complete=x}next(d){if(!this.isStopped&&this._next){const{_parentSubscriber:h}=this;g.v.useDeprecatedSynchronousErrorHandling&&h.syncErrorThrowable?this.__tryOrSetError(h,this._next,d)&&this.unsubscribe():this.__tryOrUnsub(this._next,d)}}error(d){if(!this.isStopped){const{_parentSubscriber:h}=this,{useDeprecatedSynchronousErrorHandling:v}=g.v;if(this._error)v&&h.syncErrorThrowable?(this.__tryOrSetError(h,this._error,d),this.unsubscribe()):(this.__tryOrUnsub(this._error,d),this.unsubscribe());else if(h.syncErrorThrowable)v?(h.syncErrorValue=d,h.syncErrorThrown=!0):(0,a.z)(d),this.unsubscribe();else{if(this.unsubscribe(),v)throw d;(0,a.z)(d)}}}complete(){if(!this.isStopped){const{_parentSubscriber:d}=this;if(this._complete){const h=()=>this._complete.call(this._context);g.v.useDeprecatedSynchronousErrorHandling&&d.syncErrorThrowable?(this.__tryOrSetError(d,h),this.unsubscribe()):(this.__tryOrUnsub(h),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(d,h){try{d.call(this._context,h)}catch(v){if(this.unsubscribe(),g.v.useDeprecatedSynchronousErrorHandling)throw v;(0,a.z)(v)}}__tryOrSetError(d,h,v){if(!g.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{h.call(this._context,v)}catch(x){return g.v.useDeprecatedSynchronousErrorHandling?(d.syncErrorValue=x,d.syncErrorThrown=!0,!0):((0,a.z)(x),!0)}return!1}_unsubscribe(){const{_parentSubscriber:d}=this;this._context=null,this._parentSubscriber=null,d.unsubscribe()}}},3464:(Rn,he,u)=>{"use strict";u.d(he,{w:()=>a});var o=u(9796),c=u(1555),I=u(9105);const g=(()=>{function s(l){return Error.call(this),this.message=l?`${l.length} errors occurred during unsubscription:\n${l.map((d,h)=>`${h+1}) ${d.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=l,this}return s.prototype=Object.create(Error.prototype),s})();class a{constructor(l){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,l&&(this._ctorUnsubscribe=!0,this._unsubscribe=l)}unsubscribe(){let l;if(this.closed)return;let{_parentOrParents:d,_ctorUnsubscribe:h,_unsubscribe:v,_subscriptions:x}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,d instanceof a)d.remove(this);else if(null!==d)for(let b=0;b<d.length;++b)d[b].remove(this);if((0,I.m)(v)){h&&(this._unsubscribe=void 0);try{v.call(this)}catch(b){l=b instanceof g?p(b.errors):[b]}}if((0,o.k)(x)){let b=-1,y=x.length;for(;++b<y;){const E=x[b];if((0,c.K)(E))try{E.unsubscribe()}catch(S){l=l||[],S instanceof g?l=l.concat(p(S.errors)):l.push(S)}}}if(l)throw new g(l)}add(l){let d=l;if(!l)return a.EMPTY;switch(typeof l){case"function":d=new a(l);case"object":if(d===this||d.closed||"function"!=typeof d.unsubscribe)return d;if(this.closed)return d.unsubscribe(),d;if(!(d instanceof a)){const x=d;d=new a,d._subscriptions=[x]}break;default:throw new Error("unrecognized teardown "+l+" added to Subscription.")}let{_parentOrParents:h}=d;if(null===h)d._parentOrParents=this;else if(h instanceof a){if(h===this)return d;d._parentOrParents=[h,this]}else{if(-1!==h.indexOf(this))return d;h.push(this)}const v=this._subscriptions;return null===v?this._subscriptions=[d]:v.push(d),d}remove(l){const d=this._subscriptions;if(d){const h=d.indexOf(l);-1!==h&&d.splice(h,1)}}}var s;function p(s){return s.reduce((l,d)=>l.concat(d instanceof g?d.errors:d),[])}a.EMPTY=((s=new a).closed=!0,s)},2494:(Rn,he,u)=>{"use strict";u.d(he,{v:()=>c});let o=!1;const c={Promise:void 0,set useDeprecatedSynchronousErrorHandling(I){if(I){const C=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+C.stack)}else o&&console.log("RxJS: Back to a better error behavior. Thank you. <3");o=I},get useDeprecatedSynchronousErrorHandling(){return o}}},5345:(Rn,he,u)=>{"use strict";u.d(he,{Ds:()=>a,IY:()=>C,ft:()=>s});var o=u(7393),c=u(882),I=u(9846);class C extends o.L{constructor(d){super(),this.parent=d}_next(d){this.parent.notifyNext(d)}_error(d){this.parent.notifyError(d),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends o.L{notifyNext(d){this.destination.next(d)}notifyError(d){this.destination.error(d)}notifyComplete(){this.destination.complete()}}function s(l,d){if(d.closed)return;if(l instanceof c.y)return l.subscribe(d);let h;try{h=(0,I.s)(l)(d)}catch(v){d.error(v)}return h}},2441:(Rn,he,u)=>{"use strict";u.d(he,{N:()=>a,c:()=>g});var o=u(5775),c=u(882),I=u(3464),C=u(1307);class g extends c.y{constructor(h,v){super(),this.source=h,this.subjectFactory=v,this._refCount=0,this._isComplete=!1}_subscribe(h){return this.getSubject().subscribe(h)}getSubject(){const h=this._subject;return(!h||h.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let h=this._connection;return h||(this._isComplete=!1,h=this._connection=new I.w,h.add(this.source.subscribe(new p(this.getSubject(),this))),h.closed&&(this._connection=null,h=I.w.EMPTY)),h}refCount(){return(0,C.x)()(this)}}const a=(()=>{const d=g.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:d._subscribe},_isComplete:{value:d._isComplete,writable:!0},getSubject:{value:d.getSubject},connect:{value:d.connect},refCount:{value:d.refCount}}})();class p extends o.Yc{constructor(h,v){super(h),this.connectable=v}_error(h){this._unsubscribe(),super._error(h)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const h=this.connectable;if(h){this.connectable=null;const v=h._connection;h._refCount=0,h._subject=null,h._connection=null,v&&v.unsubscribe()}}}},9193:(Rn,he,u)=>{"use strict";u.d(he,{E:()=>c,c:()=>I});var o=u(882);const c=new o.y(g=>g.complete());function I(g){return g?function C(g){return new o.y(a=>g.schedule(()=>a.complete()))}(g):c}},6666:(Rn,he,u)=>{"use strict";u.d(he,{D:()=>y});var o=u(882),c=u(9846),I=u(3464),C=u(6554),p=u(4087),s=u(377),h=u(4072),v=u(9489);function y(E,S){return S?function b(E,S){if(null!=E){if(function d(E){return E&&"function"==typeof E[C.L]}(E))return function g(E,S){return new o.y(O=>{const w=new I.w;return w.add(S.schedule(()=>{const T=E[C.L]();w.add(T.subscribe({next(k){w.add(S.schedule(()=>O.next(k)))},error(k){w.add(S.schedule(()=>O.error(k)))},complete(){w.add(S.schedule(()=>O.complete()))}}))})),w})}(E,S);if((0,h.t)(E))return function a(E,S){return new o.y(O=>{const w=new I.w;return w.add(S.schedule(()=>E.then(T=>{w.add(S.schedule(()=>{O.next(T),w.add(S.schedule(()=>O.complete()))}))},T=>{w.add(S.schedule(()=>O.error(T)))}))),w})}(E,S);if((0,v.z)(E))return(0,p.r)(E,S);if(function x(E){return E&&"function"==typeof E[s.hZ]}(E)||"string"==typeof E)return function l(E,S){if(!E)throw new Error("Iterable cannot be null");return new o.y(O=>{const w=new I.w;let T;return w.add(()=>{T&&"function"==typeof T.return&&T.return()}),w.add(S.schedule(()=>{T=E[s.hZ](),w.add(S.schedule(function(){if(O.closed)return;let k,R;try{const P=T.next();k=P.value,R=P.done}catch(P){return void O.error(P)}R?O.complete():(O.next(k),this.schedule())}))})),w})}(E,S)}throw new TypeError((null!==E&&typeof E||E)+" is not observable")}(E,S):E instanceof o.y?E:new o.y((0,c.s)(E))}},6693:(Rn,he,u)=>{"use strict";u.d(he,{n:()=>C});var o=u(882),c=u(5015),I=u(4087);function C(g,a){return a?(0,I.r)(g,a):new o.y((0,c.V)(g))}},6608:(Rn,he,u)=>{"use strict";u.d(he,{F:()=>h});var o=u(882),c=u(3464);class I extends c.w{constructor(b,y){super()}schedule(b,y=0){return this}}let g=(()=>{class x{constructor(y,E=x.now){this.SchedulerAction=y,this.now=E}schedule(y,E=0,S){return new this.SchedulerAction(this,y).schedule(S,E)}}return x.now=()=>Date.now(),x})();class a extends g{constructor(b,y=g.now){super(b,()=>a.delegate&&a.delegate!==this?a.delegate.now():y()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(b,y=0,E){return a.delegate&&a.delegate!==this?a.delegate.schedule(b,y,E):super.schedule(b,y,E)}flush(b){const{actions:y}=this;if(this.active)return void y.push(b);let E;this.active=!0;do{if(E=b.execute(b.state,b.delay))break}while(b=y.shift());if(this.active=!1,E){for(;b=y.shift();)b.unsubscribe();throw E}}}const s=new a(class C extends I{constructor(b,y){super(b,y),this.scheduler=b,this.work=y,this.pending=!1}schedule(b,y=0){if(this.closed)return this;this.state=b;const E=this.id,S=this.scheduler;return null!=E&&(this.id=this.recycleAsyncId(S,E,y)),this.pending=!0,this.delay=y,this.id=this.id||this.requestAsyncId(S,this.id,y),this}requestAsyncId(b,y,E=0){return setInterval(b.flush.bind(b,this),E)}recycleAsyncId(b,y,E=0){if(null!==E&&this.delay===E&&!1===this.pending)return y;clearInterval(y)}execute(b,y){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const E=this._execute(b,y);if(E)return E;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(b,y){let S,E=!1;try{this.work(b)}catch(O){E=!0,S=!!O&&O||new Error(O)}if(E)return this.unsubscribe(),S}_unsubscribe(){const b=this.id,y=this.scheduler,E=y.actions,S=E.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==S&&E.splice(S,1),null!=b&&(this.id=this.recycleAsyncId(y,b,null)),this.delay=null}});var l=u(9796);function h(x=0,b=s){return(!function d(x){return!(0,l.k)(x)&&x-parseFloat(x)+1>=0}(x)||x<0)&&(x=0),(!b||"function"!=typeof b.schedule)&&(b=s),new o.y(y=>(y.add(b.schedule(v,x,{subscriber:y,counter:0,period:x})),y))}function v(x){const{subscriber:b,counter:y,period:E}=x;b.next(y),this.schedule({subscriber:b,counter:y+1,period:E},E)}},5917:(Rn,he,u)=>{"use strict";u.d(he,{of:()=>C});var o=u(4869),c=u(6693),I=u(4087);function C(...g){let a=g[g.length-1];return(0,o.K)(a)?(g.pop(),(0,I.r)(g,a)):(0,c.n)(g)}},4612:(Rn,he,u)=>{"use strict";u.d(he,{b:()=>c});var o=u(9773);function c(I,C){return(0,o.zg)(I,C,1)}},5435:(Rn,he,u)=>{"use strict";u.d(he,{h:()=>c});var o=u(7393);function c(g,a){return function(s){return s.lift(new I(g,a))}}class I{constructor(a,p){this.predicate=a,this.thisArg=p}call(a,p){return p.subscribe(new C(a,this.predicate,this.thisArg))}}class C extends o.L{constructor(a,p,s){super(a),this.predicate=p,this.thisArg=s,this.count=0}_next(a){let p;try{p=this.predicate.call(this.thisArg,a,this.count++)}catch(s){return void this.destination.error(s)}p&&this.destination.next(a)}}},8002:(Rn,he,u)=>{"use strict";u.d(he,{U:()=>c});var o=u(7393);function c(g,a){return function(s){if("function"!=typeof g)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return s.lift(new I(g,a))}}class I{constructor(a,p){this.project=a,this.thisArg=p}call(a,p){return p.subscribe(new C(a,this.project,this.thisArg))}}class C extends o.L{constructor(a,p,s){super(a),this.project=p,this.count=0,this.thisArg=s||this}_next(a){let p;try{p=this.project.call(this.thisArg,a,this.count++)}catch(s){return void this.destination.error(s)}this.destination.next(p)}}},3282:(Rn,he,u)=>{"use strict";u.d(he,{J:()=>I});var o=u(9773),c=u(4487);function I(C=Number.POSITIVE_INFINITY){return(0,o.zg)(c.y,C)}},9773:(Rn,he,u)=>{"use strict";u.d(he,{zg:()=>C});var o=u(8002),c=u(6666),I=u(5345);function C(s,l,d=Number.POSITIVE_INFINITY){return"function"==typeof l?h=>h.pipe(C((v,x)=>(0,c.D)(s(v,x)).pipe((0,o.U)((b,y)=>l(v,b,x,y))),d)):("number"==typeof l&&(d=l),h=>h.lift(new g(s,d)))}class g{constructor(l,d=Number.POSITIVE_INFINITY){this.project=l,this.concurrent=d}call(l,d){return d.subscribe(new a(l,this.project,this.concurrent))}}class a extends I.Ds{constructor(l,d,h=Number.POSITIVE_INFINITY){super(l),this.project=d,this.concurrent=h,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(l){this.active<this.concurrent?this._tryNext(l):this.buffer.push(l)}_tryNext(l){let d;const h=this.index++;try{d=this.project(l,h)}catch(v){return void this.destination.error(v)}this.active++,this._innerSub(d)}_innerSub(l){const d=new I.IY(this),h=this.destination;h.add(d);const v=(0,I.ft)(l,d);v!==d&&h.add(v)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(l){this.destination.next(l)}notifyComplete(){const l=this.buffer;this.active--,l.length>0?this._next(l.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},1307:(Rn,he,u)=>{"use strict";u.d(he,{x:()=>c});var o=u(7393);function c(){return function(a){return a.lift(new I(a))}}class I{constructor(a){this.connectable=a}call(a,p){const{connectable:s}=this;s._refCount++;const l=new C(a,s),d=p.subscribe(l);return l.closed||(l.connection=s.connect()),d}}class C extends o.L{constructor(a,p){super(a),this.connectable=p}_unsubscribe(){const{connectable:a}=this;if(!a)return void(this.connection=null);this.connectable=null;const p=a._refCount;if(p<=0)return void(this.connection=null);if(a._refCount=p-1,p>1)return void(this.connection=null);const{connection:s}=this,l=a._connection;this.connection=null,l&&(!s||l===s)&&l.unsubscribe()}}},5257:(Rn,he,u)=>{"use strict";u.d(he,{q:()=>C});var o=u(7393),c=u(7108),I=u(9193);function C(p){return s=>0===p?(0,I.c)():s.lift(new g(p))}class g{constructor(s){if(this.total=s,this.total<0)throw new c.W}call(s,l){return l.subscribe(new a(s,this.total))}}class a extends o.L{constructor(s,l){super(s),this.total=l,this.count=0}_next(s){const l=this.total,d=++this.count;d<=l&&(this.destination.next(s),d===l&&(this.destination.complete(),this.unsubscribe()))}}},4087:(Rn,he,u)=>{"use strict";u.d(he,{r:()=>I});var o=u(882),c=u(3464);function I(C,g){return new o.y(a=>{const p=new c.w;let s=0;return p.add(g.schedule(function(){s!==C.length?(a.next(C[s++]),a.closed||p.add(this.schedule())):a.complete()})),p})}},377:(Rn,he,u)=>{"use strict";u.d(he,{hZ:()=>c});const c=function o(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},6554:(Rn,he,u)=>{"use strict";u.d(he,{L:()=>o});const o="function"==typeof Symbol&&Symbol.observable||"@@observable"},9181:(Rn,he,u)=>{"use strict";u.d(he,{b:()=>o});const o="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},7108:(Rn,he,u)=>{"use strict";u.d(he,{W:()=>c});const c=(()=>{function I(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return I.prototype=Object.create(Error.prototype),I})()},7971:(Rn,he,u)=>{"use strict";u.d(he,{N:()=>c});const c=(()=>{function I(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return I.prototype=Object.create(Error.prototype),I})()},4449:(Rn,he,u)=>{"use strict";function o(c){setTimeout(()=>{throw c},0)}u.d(he,{z:()=>o})},4487:(Rn,he,u)=>{"use strict";function o(c){return c}u.d(he,{y:()=>o})},9796:(Rn,he,u)=>{"use strict";u.d(he,{k:()=>o});const o=Array.isArray||(c=>c&&"number"==typeof c.length)},9489:(Rn,he,u)=>{"use strict";u.d(he,{z:()=>o});const o=c=>c&&"number"==typeof c.length&&"function"!=typeof c},9105:(Rn,he,u)=>{"use strict";function o(c){return"function"==typeof c}u.d(he,{m:()=>o})},1555:(Rn,he,u)=>{"use strict";function o(c){return null!==c&&"object"==typeof c}u.d(he,{K:()=>o})},4072:(Rn,he,u)=>{"use strict";function o(c){return!!c&&"function"!=typeof c.subscribe&&"function"==typeof c.then}u.d(he,{t:()=>o})},4869:(Rn,he,u)=>{"use strict";function o(c){return c&&"function"==typeof c.schedule}u.d(he,{K:()=>o})},4022:(Rn,he,u)=>{"use strict";u.d(he,{U:()=>I,z:()=>c});var o=u(4487);function c(...C){return I(C)}function I(C){return 0===C.length?o.y:1===C.length?C[0]:function(a){return C.reduce((p,s)=>s(p),a)}}},9846:(Rn,he,u)=>{"use strict";u.d(he,{s:()=>h});var o=u(5015),c=u(4449),C=u(377),a=u(6554),s=u(9489),l=u(4072),d=u(1555);const h=v=>{if(v&&"function"==typeof v[a.L])return(v=>x=>{const b=v[a.L]();if("function"!=typeof b.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return b.subscribe(x)})(v);if((0,s.z)(v))return(0,o.V)(v);if((0,l.t)(v))return(v=>x=>(v.then(b=>{x.closed||(x.next(b),x.complete())},b=>x.error(b)).then(null,c.z),x))(v);if(v&&"function"==typeof v[C.hZ])return(v=>x=>{const b=v[C.hZ]();for(;;){let y;try{y=b.next()}catch(E){return x.error(E),x}if(y.done){x.complete();break}if(x.next(y.value),x.closed)break}return"function"==typeof b.return&&x.add(()=>{b.return&&b.return()}),x})(v);{const b=`You provided ${(0,d.K)(v)?"an invalid object":`'${v}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(b)}}},5015:(Rn,he,u)=>{"use strict";u.d(he,{V:()=>o});const o=c=>I=>{for(let C=0,g=c.length;C<g&&!I.closed;C++)I.next(c[C]);I.complete()}},2874:(Rn,he,u)=>{"use strict";u.d(he,{f:()=>c});var o=u(8143);class c extends o.U{constructor(C,g){super("chatDb-"+g+"-"+C),this.version(1).stores({chatRooms:"id, synchStartedOn, synchCompletedOn",chatMessages:"id, parentId, synchStartedOn, synchCompletedOn",synchTable:"id, synchStartedOn, synchCompletedOn"})}}},7906:(Rn,he,u)=>{"use strict";u.d(he,{I:()=>o});var o=(()=>{return(c=o||(o={}))[c.Web=0]="Web",c[c.Android=1]="Android",c[c.iOS=2]="iOS",o;var c})()},9451:(Rn,he,u)=>{"use strict";u.d(he,{d:()=>x});var o=u(6492),c=u(820),I=u(5775),C=u(2874),g=u(3885),a=u(4749),p=u(1922),s=u(4370),l=u(5732),d=u(7128),h=u(7046),v=u(4474);class x{constructor(y,E,S,O,w,T,k){this.chatRoomService=y,this.propertyConverter=E,this.scopeService=S,this.http=O,this.chatRelayService=w,this.authenticationService=T,this.keepAliveService=k,this.firstRun=!0,this.cacheUpdatedSource=new I.xQ,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.subscriptions=[],this.fetchingRoomsDataPromise=null,this.fetchingCacheDataPromise=null,this.scope=this.scopeService.getScope(),this.database=new C.f(this.scope.currentScope.chapter.id,this.scope.network.id);var R=new Date;this.registerSubscriptions(R),x.instanceCount++}getArrayStore(){return null!=this.store?(this.isCorrupted().then(y=>{y&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on init")}),this.cacheUpdatedSource.next(this.store),new Promise((y,E)=>{y(this.store)})):this.database.chatRooms.count().then(y=>{if(y>0)return this.isCorrupted().then(S=>{S&&this.rebuildCacheAndGetArrayStore(this,"Corrupt on crc check")}),this.database.chatRooms.toArray().then(S=>{var O=S.map(w=>JSON.parse(w.jsonValue));return this.store=new c.Z({key:"id",data:O,onLoaded:w=>this.propertyConverter.convert(w)}),this.cacheUpdatedSource.next(this.store),this.store});{let S=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var E=new Date;return this.http.get(S).toPromise().then(O=>{let w=[];return O.value.map(T=>w.push({value:T,id:T.id.valueOf(),synchStartedOn:E,synchCompletedOn:new Date,jsonValue:JSON.stringify(T)})),w.forEach(T=>{T.value.id=T.value.id.toString()}),w}).then(O=>this.database.chatRooms.bulkAdd(O).then(w=>{var T=O.map(k=>JSON.parse(k.jsonValue));return this.store=new c.Z({key:"id",data:T,onLoaded:k=>this.propertyConverter.convert(k)}),this.cacheUpdatedSource.next(this.store),this.store}))}})}registerSubscriptions(y){this.subscriptions.push(this.authenticationService.isAuthenticated$.subscribe(E=>{E&&this.firstRun?(this.firstRun=!1,this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ auth & this.firstRun").then(S=>console.log("resolved rebuildCacheAndGetArrayStore()",S))):this.isCorrupted().then(S=>{S&&this.rebuildCacheAndGetArrayStore(this,"authenticationService.isAuthenticated$ not auth & this.firstRun but corrupt")})})),this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(E=>{E&&this.isCorrupted().then(S=>{S&&this.rebuildCacheAndGetArrayStore(this.keepAliveService,"resume").then()})})),this.subscriptions.push(this.chatRelayService.roomDeleted$.subscribe(E=>{this.store.push([{type:"remove",key:E.id}]),this.database.chatRooms.delete(E.id).then(S=>{console.log("Room deleted")}),this.database.chatMessages.where("parentId").equals(E.id).delete()}),this.chatRelayService.roomCreated$.subscribe(E=>{this.store.byKey(new o.Z(E.id)).then(S=>{S||(console.log("User is likely added",E,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.roomCreated$ on room created message"))})}),this.chatRelayService.msgReceived$.subscribe(E=>{try{this.chatRoomService.getRoom(E.roomId).toPromise().then(S=>{this.propertyConverter.convert(S),this.store.load().then(O=>{try{O.any(w=>w?.id.toString()==S?.id.toString())?(this.store.push([{type:"update",data:S,key:S.id}]),this.database.chatRooms.update(E.roomId,{value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)})):(this.store.push([{type:"insert",data:S}]),this.database.chatRooms.add({value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)},E.roomId))}catch{console.error("Error on msg receive",E,S,O,this)}})})}catch(S){console.error("cRoomCache msg received error",E,S,this),this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgReceived$ error updating local stores")}}),this.chatRelayService.msgUpdated$.subscribe(E=>{try{this.chatRoomService.getRoom(E.roomId).subscribe(S=>{this.store.push([{type:"update",data:S,key:E.roomId}]),this.database.chatRooms.update(E.roomId,{value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)})})}catch(S){console.error(this,S),this.isCorrupted().then(O=>{O&&this.rebuildCacheAndGetArrayStore(this,"chatRelayService.msgUpdated$ error abd corrupt local store")})}}),this.chatRelayService.msgDeleted$.subscribe(E=>{this.chatRoomService.getRoom(E.roomId).subscribe(S=>{this.store.push([{type:"update",data:S,key:E.roomId}]),this.database.chatRooms.update(E.roomId,{value:S,id:S.id.valueOf(),synchStartedOn:y,synchCompletedOn:new Date,jsonValue:JSON.stringify(S)})})}))}rebuildCacheAndGetArrayStore(y,E=null){console.log("Rebuild cache called from",y,E);let S=`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`;var O=new Date;return this.fetchingCacheDataPromise||(this.fetchingCacheDataPromise=this.http.get(S).toPromise().then(w=>{let T=[];return w.value.map(k=>T.push({value:k,id:k.id.valueOf(),synchStartedOn:O,synchCompletedOn:new Date,jsonValue:JSON.stringify(k)})),T.forEach(k=>{k.value.id=k.value.id.toString()}),T}).then(w=>this.authenticationService.expireToken(this).then(T=>this.database.chatRooms.clear().then(k=>this.database.chatRooms.bulkAdd(w).then(R=>{var P=w.map(B=>JSON.parse(B.jsonValue));return this.store=new c.Z({key:"id",data:P,onLoaded:B=>this.propertyConverter.convert(B)}),this.cacheUpdatedSource.next(this.store),this.fetchingCacheDataPromise=null,this.store}))))),this.fetchingCacheDataPromise}isCorrupted(){return this.fetchingRoomsDataPromise||(this.fetchingRoomsDataPromise=this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/GetChatRoomList`).toPromise().then(E=>{let S=E.value.length;return this.getArrayStore().then(O=>O.load().then(w=>{this.fetchingRoomsDataPromise=null;let T=new Set(E.value.select(W=>W.lastMessage?.id?.valueOf()??"")),R=new Set(w.select(W=>W.lastMessage?.id?.valueOf()??"")).except(T).any();return w.length!=S||R}))})),this.fetchingRoomsDataPromise}dropBackendCache(y){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+y.toString()).toPromise().then(E=>(E&&console.log("Cache eviction call"),E))}}x.instanceCount=0,x.\u0275fac=function(y){return new(y||x)(s.LFG(g.Z),s.LFG(a.Z),s.LFG(p.Z),s.LFG(l.eN),s.LFG(d.L),s.LFG(h.D),s.LFG(v.g))},x.\u0275prov=s.Yz7({token:x,factory:x.\u0275fac,providedIn:"root"})},4962:(Rn,he,u)=>{"use strict";u.d(he,{u:()=>au});var Ie,ve,me,Ee,Me,Fe,Ge,xt,Gt,Cn,o=u(6492),c=u(820),I=u(1828),C=u(7572),g=u(5031),a=u(5873),p=u(2718),s=u(9800),l=u(7674),d=u(4270),h=u(6051),v=u(2701),x=u(9589),b=/^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$/,y=/^\/Date\((-?\d+)((\+|-)?(\d+)?)\)\/$/,E=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[-+]{1}\d{2}(:?)(\d{2})?)?$/,S="application/json;odata=verbose",O=Ie=>"string"===(0,I.dt)(Ie)?Ie.split():Ie,w=Ie=>/\./.test(Ie),T=(Ie,ve,me)=>{for(Ie=String(Ie);Ie.length<ve;)Ie=me?"".concat(Ie,"0"):"0".concat(Ie);return Ie},k=(Ie,ve,me)=>{var Ee=[],Me=Fe=>T(Fe,2);return Ee.push(Ie.getFullYear()),Ee.push("-"),Ee.push(Me(Ie.getMonth()+1)),Ee.push("-"),Ee.push(Me(Ie.getDate())),ve&&Ie.getHours()+Ie.getMinutes()+Ie.getSeconds()+Ie.getMilliseconds()<1||(Ee.push("T"),Ee.push(Me(Ie.getHours())),Ee.push(":"),Ee.push(Me(Ie.getMinutes())),Ee.push(":"),Ee.push(Me(Ie.getSeconds())),Ie.getMilliseconds()&&(Ee.push("."),Ee.push(T(Ie.getMilliseconds(),3))),me||Ee.push("Z")),Ee.join("")},R=Ie=>{var ve=new Date(60*new Date(0).getTimezoneOffset()*1e3),me=Ie.replace("Z","").split("T"),Ee=/(\d{4})-(\d{2})-(\d{2})/.exec(me[0]),Me=/(\d{2}):(\d{2}):(\d{2})\.?(\d{0,7})?/.exec(me[1]);if(ve.setFullYear(Number(Ee[1])),ve.setMonth(Number(Ee[2])-1),ve.setDate(Number(Ee[3])),Array.isArray(Me)&&Me.length){ve.setHours(Number(Me[1])),ve.setMinutes(Number(Me[2])),ve.setSeconds(Number(Me[3]));var Fe=(Me[4]||"").slice(0,3);Fe=T(Fe,3,!0),ve.setMilliseconds(Number(Fe))}return ve},z=Ie=>{var ve=[];for(var me in Ie)ve.push(me+"="+Ie[me]);return ve.join("&")},U=(Ie,ve,me)=>{var{deserializeDates:Ee,fieldTypes:Me,countOnly:Fe,isPaged:Ge}=me,xt=new d.BH,Pt=function(Ie,ve){var me,Ee=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Me=fo=>JSON.stringify(fo,function(Lo,ts){if(!(this[Lo]instanceof Date))return ts;switch(ts=k(this[Lo]),Ie){case 2:return ts.substr(0,ts.length-1);case 3:case 4:return ts;default:throw h.R0.Error("E4002")}});ve=(0,a.l)({async:!0,method:"get",url:"",params:{},payload:null,headers:{},timeout:3e4},ve),null===(me=Ee.beforeSend)||void 0===me||me.call(Ee,ve);var{async:Fe,timeout:Ge,headers:xt}=ve,{url:Pt,method:Gt}=ve,{jsonp:Cn,withCredentials:pi}=Ee,wi="get"===(Gt=(Gt||"get").toLowerCase()),Zi=wi&&Cn,er=(0,a.l)({},ve.params),hr=wi?er:Me(ve.payload),Dr=!wi&&z(er),ao=!wi&&S;return Dr&&(Pt+=(Pt.indexOf("?")>-1?"&":"?")+Dr),Zi&&(hr.$format="json"),{url:Pt,data:hr,dataType:Zi?"jsonp":"json",jsonp:Zi&&"$callback",method:Gt,async:Fe,timeout:Ge,headers:xt,contentType:ao,accepts:{json:[S,"text/plain"].join()},xhrFields:{withCredentials:pi}}}(Ie,ve,me);return s.Z.sendRequest(Pt).always((Gt,Cn)=>{var wi=J(Gt,Cn,{deserializeDates:Ee,fieldTypes:Me},Pt),{error:Zi,data:er,count:hr}=wi,{nextUrl:Dr}=wi;if(Zi)Zi.message!==v.C5&&xt.reject(Zi);else if(Fe)isFinite(hr)?xt.resolve(hr):xt.reject(new h.R0.Error("E4018"));else if(Dr&&!Ge)(Ie=>/^(?:[a-z]+:)?\/{2,2}/i.test(Ie))(Dr)||(Dr=((Ie,ve)=>{var me,Ee=(Ie=>{var ve=Ie.indexOf("?");return ve>-1?Ie.substr(0,ve):Ie})(Ie).split("/"),Me=ve.split("/");for(Ee.pop();Me.length;)".."===(me=Me.shift())?Ee.pop():Ee.push(me);return Ee.join("/")})(Pt.url,Dr)),U(Ie,{url:Dr},me).fail(xt.reject).done(fo=>xt.resolve(er.concat(fo)));else{var ao=isFinite(hr)?{totalCount:hr}:void 0;xt.resolve(er,ao)}}),xt.promise()},J=(Ie,ve,me,Ee)=>{var Me=((Ie,ve,me)=>{var Ee,Me,Fe,Ge;if("nocontent"===ve)return null;var xt="Unknown error",Pt=Ie,Gt=200,Cn={requestOptions:me};if("success"!==ve){var{status:pi,responseText:wi}=Ie;Gt=pi,xt=(0,v.ER)(Ie,ve);try{Pt=JSON.parse(wi)}catch{}}var Zi=(null===(Ee=Pt)||void 0===Ee?void 0:Ee.then)||(null===(Me=Pt)||void 0===Me?void 0:Me.error)||(null===(Fe=Pt)||void 0===Fe?void 0:Fe["odata.error"])||(null===(Ge=Pt)||void 0===Ge?void 0:Ge["@odata.error"]);if(Zi){xt=(Ie=>{var ve,Me,Ee=Ie;"message"in Ie&&(ve=(null===(Me=Ie.message)||void 0===Me?void 0:Me.value)||Ie.message);for(;Ee=Ee.innererror||Ee.internalexception;){var Fe;if(ve=null!==(Fe=Ee.message)&&void 0!==Fe?Fe:ve,Ee.internalexception&&-1===ve.indexOf("inner exception"))break}return ve})(Zi)||xt,Cn.errorDetails=Zi,200===Gt&&(Gt=500);var er=Number(Zi.code);isFinite(er)&&er>=400&&(Gt=er)}return Gt>=400||0===Gt?(Cn.httpStatus=Gt,(0,a.l)(Error(xt),Cn)):null})(Ie,ve,Ee);if(Me)return{error:Me};if(!(0,I.PO)(Ie))return{data:Ie};var Fe="d"in Ie&&(Array.isArray(Ie.d)||(0,I.Kn)(Ie.d))?j(Ie):ee(Ie);return q(Fe,me),Fe},j=Ie=>{var ve,{d:me}=Ie;return(0,I.$K)(me)?{data:null!==(ve=me.results)&&void 0!==ve?ve:me,nextUrl:me.__next,count:parseInt(me.__count,10)}:{error:Error("Malformed or unsupported JSON response received")}},ee=Ie=>{var ve;return{data:null!==(ve=Ie.value)&&void 0!==ve?ve:Ie,nextUrl:Ie["@odata.nextLink"],count:parseInt(Ie["@odata.count"],10)}},G=g.Z.inherit({ctor(Ie){this._value=Ie},valueOf(){return this._value}}),q=function Ie(ve){var me=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,p.S6)(ve,(Ee,Me)=>{if(null!==Me&&"object"==typeof Me)"results"in Me&&(ve[Ee]=Me.results),Ie(ve[Ee],me);else if("string"==typeof Me){var{fieldTypes:Fe,deserializeDates:Ge}=me;if((!Fe||"String"!==Fe[Ee])&&b.test(Me)&&(ve[Ee]=new o.Z(Me)),!1!==Ge)if(Me.match(y)){var Pt=new Date(Number(RegExp.$1)+60*RegExp.$2*1e3);ve[Ee]=new Date(Pt.valueOf()+60*Pt.getTimezoneOffset()*1e3)}else E.test(Me)&&(ve[Ee]=new Date(R(ve[Ee]).valueOf()))}})},M=Ie=>Ie instanceof G?Ie.valueOf():Ie.replace(/\./g,"/"),oe=Ie=>Ie instanceof Date?k(Ie,!1,!1):Ie instanceof o.Z?Ie.valueOf():Array.isArray(Ie)?"[".concat(Ie.map(ve=>oe(ve)).join(","),"]"):fe(Ie),fe=Ie=>Ie instanceof Date?(Ie=>"datetime'".concat(k(Ie,!0,!0),"'"))(Ie):Ie instanceof o.Z?"guid'".concat(Ie,"'"):Ie instanceof G?Ie.valueOf():"string"==typeof Ie?(Ie=>"'".concat(Ie.replace(/'/g,"''"),"'"))(Ie):String(Ie),Te=(Ie,ve)=>{switch(ve){case 2:case 3:return fe(Ie);case 4:return oe(Ie);default:throw h.R0.Error("E4002")}},ze={String:Ie=>"".concat(Ie),Int32:Ie=>Math.floor(Ie),Int64:Ie=>Ie instanceof G?Ie:new G("".concat(Ie,"L")),Guid:Ie=>Ie instanceof o.Z?Ie:new o.Z(Ie),Boolean:Ie=>!!Ie,Single:Ie=>Ie instanceof G?Ie:new G(Ie+"f"),Decimal:Ie=>Ie instanceof G?Ie:new G(Ie+"m")},ae=(Ie,ve)=>{if(null===ve)return null;var me=ze[Ie];if(!me)throw h.R0.Error("E4014",Ie);return me(ve)},_e=(Ie,ve)=>{if(ve)return Ie<4?M(ve.join()):(0,l.h3)(ve,w,!0).join()},ye=Ie=>{var ve="",me=[],Ee=[];return(0,p.S6)(Ie,(Me,Fe)=>{Array.isArray(Fe)&&[].push.apply(me,Fe),(0,I.PO)(Fe)&&Ee.push("".concat(Me).concat(ye(Fe)))}),(me.length||Ee.length)&&(ve+="(",me.length&&(ve+="$select=".concat((0,p.UI)(me,M).join())),Ee.length&&(me.length&&(ve+=";"),ve+="$expand=".concat((0,p.UI)(Ee,M).join())),ve+=")"),ve},ce=(Ie,ve,me)=>{var Ee=me(ve,Ie.shift(),Ie);!1!==Ee&&ce(Ie,Ee,me)},le=(Ie,ve,me)=>(0,p.S6)(Ie,(Ee,Me)=>ce(Me.split("."),ve,me)),pe=(Ie,ve)=>{var me={};return Ie&&(0,p.S6)(O(Ie),function(){me[M(this)]=1}),ve&&(0,p.S6)(O(ve),function(){var Ee=this.split(".");Ee.length<2||(Ee.pop(),me[M(Ee.join("."))]=1)}),(0,p.UI)(me,(Ee,Me)=>Me).join()},re=(Ie,ve,me)=>Ie<4?pe(ve,me):((Ie,ve)=>{var me={};if(Ie||ve)return Ie&&le(O(Ie),me,(Ee,Me,Fe)=>(Ee[Me]=Ee[Me]||{},!!Fe.length&&Ee[Me])),ve&&le((0,l.h3)(O(ve),w),me,(Ee,Me,Fe)=>Fe.length?Ee[Me]=Ee[Me]||{}:(Ee[Me]=Ee[Me]||[],Ee[Me].push(Me),!1)),(Ie=>{var ve=[];return(0,p.S6)(Ie,(me,Ee)=>ve.push("".concat(me).concat(ye(Ee)))),ve.join()})(me)})(ve,me),ue=u(7316),be=u(1937),Ae=u(1035),mt=["contains","notcontains","startswith","endswith"],tt=(Me=(pi,wi)=>(Zi,er)=>{var hr=[pi,"("];return ve&&(Zi=-1===Zi.indexOf("tolower(")?"tolower(".concat(Zi,")"):Zi,er=er.toLowerCase()),wi?hr.push(er,",",Zi):hr.push(Zi,",",er),hr.push(")"),hr.join("")},Fe={"=":(Ee=pi=>(wi,Zi)=>"".concat(wi," ").concat(pi," ").concat(Zi))("eq"),"<>":Ee("ne"),">":Ee("gt"),">=":Ee("ge"),"<":Ee("lt"),"<=":Ee("le"),startswith:Me("startswith"),endswith:Me("endswith")},Ge=(0,a.l)({},Fe,{contains:Me("substringof",!0),notcontains:Me("not substringof",!0)}),xt=(0,a.l)({},Fe,{contains:Me("contains"),notcontains:Me("not contains")}),Gt=pi=>{var Zi,er,wi=[];return(0,p.S6)(pi,function(hr,Dr){if(Array.isArray(Dr)){if(wi.length>1&&Zi!==er)throw new h.R0.Error("E4019");wi.push("(".concat(Cn(Dr),")")),Zi=er,er="and"}else er=(0,v.Lq)(this)?"and":"or"}),wi.join(" ".concat(Zi," "))},Cn=pi=>Array.isArray(pi[0])?Gt(pi):(0,v.hi)(pi)?(wi=>{var Zi=wi[0],er=Cn(wi[1]);if("!"===Zi)return"not (".concat(er,")");throw h.R0.Error("E4003",Zi)})(pi):(pi=>{var wi,Zi=(pi=(0,v.DE)(pi))[1],er=pi[0],hr=me&&me[er];if(hr&&(Dr=Zi,mt.some(ts=>ts===Dr))&&"String"!==hr)throw new h.R0.Error("E4024",Zi,er,hr);var Dr,fo=(4===Ie?xt:Ge)[Zi.toLowerCase()];if(!fo)throw h.R0.Error("E4003",Zi);var Lo=pi[2];return null!==(wi=me)&&void 0!==wi&&wi[er]&&(Lo=ae(me[er],Lo)),fo(M(er),Te(Lo,Ie))})(pi),(pi,wi,Zi,er)=>(me=Zi,ve=er??(0,C.Z)().oDataFilterToLower,Ie=wi,Cn(pi)));Ae.Z.odata=Ie=>{var Me,Fe,Ge,xt,ve=[],me=[],Ee=Ie.expand,Pt=Ie.version||2,Gt=()=>Fe||void 0!==Ge,Cn=wi=>{for(var Zi=0;Zi<wi.length;Zi++)if((0,I.mf)(wi[Zi])||Array.isArray(wi[Zi])&&Cn(wi[Zi]))return!0;return!1},pi=()=>{var wi={};if(xt||(ve.length&&(wi.$orderby=ve.join(",")),Fe&&(wi.$skip=Fe),void 0!==Ge&&(wi.$top=Ge),wi.$select=_e(Pt,Me)||void 0,wi.$expand=re(Pt,Ee,Me)||void 0),me.length){var er=Ie?.fieldTypes,hr=Ie?.filterToLower;wi.$filter=tt(me.length<2?me[0]:me,Pt,er,hr)}return xt&&(wi.$top=0),(Ie.requireTotalCount||xt)&&(4!==Pt?wi.$inlinecount="allpages":wi.$count="true"),wi};return{optimize:wi=>{for(var Zi=-1,er=0;er<wi.length;er++)if("select"===wi[er].name){Zi=er;break}if(!(Zi<0)&&(0,I.mf)(wi[Zi].args[0])){var hr=wi[1+Zi];!hr||"slice"!==hr.name||(wi[1+Zi]=wi[Zi],wi[Zi]=hr)}},exec:wi=>U(Pt,{url:wi,params:(0,a.l)(pi(),Ie?.params)},{beforeSend:Ie.beforeSend,jsonp:Ie.jsonp,withCredentials:Ie.withCredentials,countOnly:xt,deserializeDates:Ie.deserializeDates,fieldTypes:Ie.fieldTypes,isPaged:isFinite(Ge)}),multiSort(wi){var Zi;if(Gt())return!1;for(var er=0;er<wi.length;er++){var hr=wi[er][0],Dr=!!wi[er][1],ao=void 0;if("string"!=typeof hr)return!1;ao=M(hr),Dr&&(ao+=" desc"),(Zi=Zi||[]).push(ao)}ve=Zi},slice(wi,Zi){if(Gt())return!1;Fe=wi,Ge=Zi},filter(wi){if(Gt()||(Array.isArray(wi)||(wi=[].slice.call(arguments)),Cn(wi)))return!1;me.length&&me.push("and"),me.push(wi)},select(wi){if(Me||(0,I.mf)(wi))return!1;Array.isArray(wi)||(wi=[].slice.call(arguments)),Me=wi},count:()=>xt=!0}};class Pe{constructor(ve){ve=ve||{},this._url=String(ve.url).replace(/\/+$/,""),this._beforeSend=ve.beforeSend,this._jsonp=ve.jsonp,this._version=ve.version||2,this._withCredentials=ve.withCredentials,this._deserializeDates=ve.deserializeDates,this._filterToLower=ve.filterToLower}sendRequest(ve,me,Ee,Me){return U(this.version,{url:ve,method:me,params:Ee||{},payload:Me},{beforeSend:this._beforeSend,jsonp:this._jsonp,withCredentials:this._withCredentials,deserializeDates:this._deserializeDates})}get version(){return this._version}get beforeSend(){return this._beforeSend}get url(){return this._url}get jsonp(){return this._jsonp}get filterToLower(){return this._filterToLower}}var De=be.Z.inherit({ctor(Ie){this.callBase(Ie),this._requestDispatcher=new Pe(Ie);var ve=this.key(),me=Ie.fieldTypes,Ee=Ie.keyType;if(Ee){var Me="string"==typeof Ee;ve||(ve=Me?"5d46402c-7899-4ea9-bd81-8b73c47c7683":Object.keys(Ee),this._legacyAnonymousKey=ve),Me&&(Ee=((Ie,ve)=>({[Ie]:ve}))(ve,Ee)),me=((Ie,ve)=>{var me={};for(var Ee in Ie)me[Ee]=Ie[Ee];for(var Me in ve)Me in me?me[Me]!==ve[Me]&&h.R0.log("W4001",Me):me[Me]=ve[Me];return me})(me,Ee)}this._fieldTypes=me||{},this._updateMethod=2===this.version()?"MERGE":"PATCH"},_customLoadOptions:()=>["expand","customQueryParams"],_byKeyImpl(Ie,ve){var me={};return ve&&(me.$expand=re(this.version(),ve.expand,ve.select)||void 0,me.$select=_e(this.version(),ve.select)||void 0),this._requestDispatcher.sendRequest(this._byKeyUrl(Ie),"GET",me)},createQuery(Ie){var ve,me,Ee={adapter:"odata",beforeSend:this._requestDispatcher.beforeSend,errorHandler:this._errorHandler,jsonp:this._requestDispatcher.jsonp,version:this._requestDispatcher.version,withCredentials:this._requestDispatcher._withCredentials,expand:Ie?.expand,requireTotalCount:Ie?.requireTotalCount,deserializeDates:this._requestDispatcher._deserializeDates,fieldTypes:this._fieldTypes};if(me=null!==(ve=Ie?.urlOverride)&&void 0!==ve?ve:this._requestDispatcher.url,(0,I.$K)(this._requestDispatcher.filterToLower)&&(Ee.filterToLower=this._requestDispatcher.filterToLower),null!=Ie&&Ie.customQueryParams){var Me=((Ie,ve)=>{if(!Ie)return Ie;var me={};return(0,p.S6)(Ie,(Ee,Me)=>{me[Ee]=Te(Me,ve)}),me})(Ie?.customQueryParams,this.version());4===this.version()?me=((Ie,ve)=>(0,x.WU)("{0}({1})",Ie,(0,p.UI)(ve||{},(me,Ee)=>(0,x.WU)("{0}={1}",Ee,me)).join(",")))(me,Me):Ee.params=Me}return(0,ue.Z)(me,Ee)},_insertImpl(Ie){this._requireKey();var ve=new d.BH;return(0,d.gx)(this._requestDispatcher.sendRequest(this._requestDispatcher.url,"POST",null,Ie)).done(me=>ve.resolve(me&&!(0,C.Z)().useLegacyStoreResult?me:Ie,this.keyOf(me))).fail(ve.reject),ve.promise()},_updateImpl(Ie,ve){var me=new d.BH;return(0,d.gx)(this._requestDispatcher.sendRequest(this._byKeyUrl(Ie),this._updateMethod,null,ve)).done(Ee=>(0,C.Z)().useLegacyStoreResult?me.resolve(Ie,ve):me.resolve(Ee||ve,Ie)).fail(me.reject),me.promise()},_removeImpl(Ie){var ve=new d.BH;return(0,d.gx)(this._requestDispatcher.sendRequest(this._byKeyUrl(Ie),"DELETE")).done(()=>ve.resolve(Ie)).fail(ve.reject),ve.promise()},_convertKey(Ie){var ve=Ie,me=this._fieldTypes,Ee=this.key()||this._legacyAnonymousKey;if(Array.isArray(Ee)){ve={};for(var Me=0;Me<Ee.length;Me++){var Fe=Ee[Me];ve[Fe]=ae(me[Fe],Ie[Fe])}}else me[Ee]&&(ve=ae(me[Ee],Ie));return ve},_byKeyUrl(Ie){var ve=this._requestDispatcher.url,me=this._convertKey(Ie);return"".concat(ve,"(").concat(encodeURIComponent(((Ie,ve)=>{if((0,I.PO)(Ie)){var me=[];return(0,p.S6)(Ie,(Ee,Me)=>me.push("".concat(M(Ee),"=").concat(Te(Me,ve)))),me.join()}return Te(Ie,ve)})(me,this.version())),")")},version(){return this._requestDispatcher.version}},"odata");const Ye=De;class bt extends RangeError{constructor(ve){super(`${ve} was out of range. Must be non-negative and less than the size of the collection.`),this.paramName=ve,this.name="ArgumentOutOfRangeException",this.stack=this.stack||(new Error).stack}}const yt=Object.freeze({MoreThanOneElement:"Sequence contains more than one element",MoreThanOneMatchingElement:"Sequence contains more than one matching element",NoElements:"Sequence contains no elements",NoMatch:"Sequence contains no matching element"});class kt extends Error{constructor(ve){super(ve),this.name="InvalidOperationException",this.stack=this.stack||(new Error).stack}}const gn=(Ie,ve)=>Ie===ve;class ut extends Array{}class Ve{constructor(ve){this.iterator=ve}[Symbol.asyncIterator](){return this.iterator()}}function St(Ie,ve){this.v=Ie,this.k=ve}function Xe(Ie){return new St(Ie,0)}function Vt(Ie){var ve,me;function Ee(Fe,Ge){try{var xt=Ie[Fe](Ge),Pt=xt.value,Gt=Pt instanceof St;Promise.resolve(Gt?Pt.v:Pt).then(function(Cn){if(Gt){var pi="return"===Fe?"return":"next";if(!Pt.k||Cn.done)return Ee(pi,Cn);Cn=Ie[pi](Cn).value}Me(xt.done?"return":"normal",Cn)},function(Cn){Ee("throw",Cn)})}catch(Cn){Me("throw",Cn)}}function Me(Fe,Ge){switch(Fe){case"return":ve.resolve({value:Ge,done:!0});break;case"throw":ve.reject(Ge);break;default:ve.resolve({value:Ge,done:!1})}(ve=ve.next)?Ee(ve.key,ve.arg):me=null}this._invoke=function(Fe,Ge){return new Promise(function(xt,Pt){var Gt={key:Fe,arg:Ge,resolve:xt,reject:Pt,next:null};me?me=me.next=Gt:(ve=me=Gt,Ee(Fe,Ge))})},"function"!=typeof Ie.return&&(this.return=void 0)}function lt(Ie){return function(){return new Vt(Ie.apply(this,arguments))}}Vt.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Vt.prototype.next=function(Ie){return this._invoke("next",Ie)},Vt.prototype.throw=function(Ie){return this._invoke("throw",Ie)},Vt.prototype.return=function(Ie){return this._invoke("return",Ie)};class dt{constructor(ve){this.dataFunc=ve}[Symbol.asyncIterator](){const{dataFunc:ve}=this;function Ee(){return Ee=lt(function*(){if(1===ve.type)for(const Me of ve.generator())yield Me;else for(const Me of yield Xe(ve.generator()))yield Me}),Ee.apply(this,arguments)}return function me(){return Ee.apply(this,arguments)}()}}class vt{constructor(ve){this.iterator=ve}[Symbol.iterator](){return this.iterator()}}const Lt=Ie=>{var ve;const me=ut.prototype,Ee=Ie.prototype,Me=Object.getOwnPropertyNames(me);for(const Fe of Me)Ee[Fe]=null!==(ve=Ee[Fe])&&void 0!==ve?ve:me[Fe]},mn=(Ie,ve,me,Ee)=>{if(Ee){if(!me)throw new ReferenceError("TAccumulate function is undefined");return li(Ie,ve,me,Ee)}return me?Xn(Ie,ve,me):xn(Ie,ve)},xn=(Ie,ve)=>{let me;for(const Ee of Ie)me=me?ve(me,Ee):Ee;if(void 0===me)throw new kt(yt.NoElements);return me},Xn=(Ie,ve,me)=>{let Ee=ve;for(const Me of Ie)Ee=me(Ee,Me);return Ee},li=(Ie,ve,me,Ee)=>{let Me=ve;for(const Fe of Ie)Me=me(Me,Fe);return Ee(Me)},ki=(Ie,ve)=>{for(const me of Ie)if(!1===ve(me))return!1;return!0};var Vn=u(8239);const Oi=function(){var Ie=(0,Vn.Z)(function*(ve,me){for(const Ee of ve)if(!1===(yield me(Ee)))return!1;return!0});return function(me,Ee){return Ie.apply(this,arguments)}}(),Hn=(Ie,ve)=>ve?Mn(Ie,ve):En(Ie),En=Ie=>{for(const ve of Ie)return!0;return!1},Mn=(Ie,ve)=>{for(const me of Ie)if(!0===ve(me))return!0;return!1},ei=function(){var Ie=(0,Vn.Z)(function*(ve,me){for(const Ee of ve)if(!0===(yield me(Ee)))return!0;return!1});return function(me,Ee){return Ie.apply(this,arguments)}}();function Wn(Ie){var ve,me,Ee,Me=2;for(typeof Symbol<"u"&&(me=Symbol.asyncIterator,Ee=Symbol.iterator);Me--;){if(me&&null!=(ve=Ie[me]))return ve.call(Ie);if(Ee&&null!=(ve=Ie[Ee]))return new Ji(ve.call(Ie));me="@@asyncIterator",Ee="@@iterator"}throw new TypeError("Object is not async iterable")}function Ji(Ie){function ve(me){if(Object(me)!==me)return Promise.reject(new TypeError(me+" is not an object."));var Ee=me.done;return Promise.resolve(me.value).then(function(Me){return{value:Me,done:Ee}})}return Ji=function(Ee){this.s=Ee,this.n=Ee.next},Ji.prototype={s:null,n:null,next:function(){return ve(this.n.apply(this.s,arguments))},return:function(Ee){var Me=this.s.return;return void 0===Me?Promise.resolve({value:Ee,done:!0}):ve(Me.apply(this.s,arguments))},throw:function(Ee){var Me=this.s.return;return void 0===Me?Promise.reject(Ee):ve(Me.apply(this.s,arguments))}},new Ji(Ie)}const Sn=Ie=>{if(Array.isArray(Ie)){if(0===Ie.length)throw new kt(yt.NoElements);return new Ve(lt(function*(){var Ee,ve=!1,me=!1;try{for(var Fe,Me=Wn(Ie);ve=!(Fe=yield Xe(Me.next())).done;ve=!1)yield Fe.value}catch(Ge){me=!0,Ee=Ge}finally{try{ve&&null!=Me.return&&(yield Xe(Me.return()))}finally{if(me)throw Ee}}}))}return new Ve(Ie)},Qn=Ie=>{function me(){return me=lt(function*(){for(const Ee of Ie)yield Ee}),me.apply(this,arguments)}return Sn(function ve(){return me.apply(this,arguments)})},ti=(Ie,ve)=>new dt({generator:ve,type:Ie}),ci=Ie=>ti(0,function(){var me=(0,Vn.Z)(function*(){const Ee=[];for(const Me of Ie)Ee.push(Me);return Ee});return function(){return me.apply(this,arguments)}}()),Wi=(Ie,ve)=>{let me=0,Ee=0;if(ve)for(const Me of Ie)me+=ve(Me),Ee+=1;else for(const Me of Ie)me+=Me,Ee+=1;if(0===Ee)throw new kt(yt.NoElements);return me/Ee},qi=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0,Me=0;for(const Fe of ve)Ee+=(yield me(Fe)),Me+=1;if(0===Me)throw new kt(yt.NoElements);return Ee/Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),nr=(Ie,ve)=>{if(ve<1)throw new bt("index");return new vt(function*me(){let Ee=[];for(const Me of Ie)Ee.push(Me),Ee.length===ve&&(yield Ee,Ee=[]);Ee.length&&(yield Ee)})},xr=(Ie,ve)=>new vt(function*me(){yield*Ie,yield*ve}),vn=(Ie,ve,me=gn)=>{for(const Ee of Ie)if(me(ve,Ee))return!0;return!1},Pn=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){for(const Me of ve)if(yield Ee(me,Me))return!0;return!1});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),hi=(Ie,ve)=>ve?Yi(Ie,ve):Si(Ie),Si=Ie=>{let ve=0;for(const me of Ie)ve++;return ve},Yi=(Ie,ve)=>{let me=0;for(const Ee of Ie)!0===ve(Ee)&&me++;return me},dr=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;for(const Me of ve)!0===(yield me(Me))&&Ee++;return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),kr=(Ie,ve)=>new vt(function*me(){let Ee=!1;for(const Me of Ie)Ee=!0,yield Me;Ee||(yield ve)}),Nr=(Ie,ve=gn)=>new vt(function*me(){const Ee=[];for(const Me of Ie)Ee.find(Ge=>ve(Ge,Me))||(Ee.push(Me),yield Me)}),Gr=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me=[];e:for(const Fe of Ie){for(const Ge of Me)if(yield Xe(ve(Ge,Fe)))continue e;Me.push(Fe),yield Fe}}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Qr=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie)ve(Ee),yield Ee}),Sr=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){for(const Me of Ie)yield Xe(ve(Me)),yield Me}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Wr=(Ie,ve)=>{if(ve<0)throw new bt("index");let me=0;for(const Ee of Ie)if(ve===me++)return Ee;throw new bt("index")},Ur=(Ie,ve)=>{let me=0;for(const Ee of Ie)if(ve===me++)return Ee;return null},Rr=(Ie,ve,me=gn)=>new vt(function*Ee(){const Me=[...ve];for(const Fe of Ie){let Ge=!1;for(let xt=0;xt<Me.length;xt++)if(!0===me(Fe,Me[xt])){Ge=!0;break}!1===Ge&&(yield Fe)}}),mo=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=[...ve];for(const Ge of Ie){let xt=!1;for(let Pt=0;Pt<Fe.length;Pt++){const Gt=Fe[Pt];if(!0===(yield Xe(me(Ge,Gt)))){xt=!0;break}}!1===xt&&(yield Ge)}}),Me.apply(this,arguments)}return Sn(function Ee(){return Me.apply(this,arguments)})},Mr=(Ie,ve)=>ve?mi(Ie,ve):po(Ie),po=Ie=>{const ve=Ie[Symbol.iterator]().next();if(!0===ve.done)throw new kt(yt.NoElements);return ve.value},mi=(Ie,ve)=>{for(const me of Ie)if(!0===ve(me))return me;throw new kt(yt.NoMatch)},ar=function(){var Ie=(0,Vn.Z)(function*(ve,me){for(const Ee of ve)if(!0===(yield me(Ee)))return Ee;throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),Xr=(Ie,ve)=>ve?_o(Ie,ve):lo(Ie),lo=Ie=>Ie[Symbol.iterator]().next().value||null,_o=(Ie,ve)=>{for(const me of Ie)if(!0===ve(me))return me;return null},bo=function(){var Ie=(0,Vn.Z)(function*(ve,me){for(const Ee of ve)if(!0===(yield me(Ee)))return Ee;return null});return function(me,Ee){return Ie.apply(this,arguments)}}();class It extends ut{constructor(ve,me){super(1),this.key=ve,this[0]=me}}const dn=(Ie,ve,me)=>{let Ee;return Ee=me?((Ie,ve,me)=>function*(){const Me=new Array;for(const Fe of Ie){const Ge=ve(Fe);let xt=!1;for(let Pt=0;Pt<Me.length;Pt++){const Gt=Me[Pt];if(me(Gt.key,Ge)){Gt.push(Fe),xt=!0;break}}!1===xt&&Me.push(new It(Ge,Fe))}for(const Fe of Me)yield Fe})(Ie,ve,me):((Ie,ve)=>function*(){const Ee={};for(const Me of Ie){const Fe=ve(Me),Ge=Ee[Fe];Ge?Ge.push(Me):Ee[Fe]=new It(Fe,Me)}for(const Me in Ee)yield Ee[Me]})(Ie,ve),new vt(Ee)},Tn=(Ie,ve,me)=>me?fi(Ie,ve,me):Zn(Ie,ve),Zn=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me={};for(const Fe of Ie){const Ge=yield Xe(ve(Fe)),xt=Me[Ge];xt?xt.push(Fe):Me[Ge]=new It(Ge,Fe)}for(const Fe in Me)yield Me[Fe]}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},fi=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=new Array;for(const Ge of Ie){const xt=yield Xe(ve(Ge));let Pt=!1;for(let Gt=0;Gt<Fe.length;Gt++){const Cn=Fe[Gt];if(!0===(yield Xe(me(Cn.key,xt)))){Cn.push(Ge),Pt=!0;break}}!1===Pt&&Fe.push(new It(xt,Ge))}for(const Ge of Fe)yield Ge}),Me.apply(this,arguments)}return Sn(function Ee(){return Me.apply(this,arguments)})},Li=(Ie,ve,me,Ee)=>Ee?((Ie,ve,me,Ee)=>new vt(function*Me(){const Fe=new Array;for(const Ge of Ie){const xt=ve(Ge);let Pt=!1;for(let Gt=0;Gt<Fe.length;Gt++){const Cn=Fe[Gt];if(Ee(Cn.key,xt)){Cn.push(me(Ge)),Pt=!0;break}}if(!1===Pt){const Gt=me(Ge);Fe.push(new It(xt,Gt))}}for(const Ge of Fe)yield Ge}))(Ie,ve,me,Ee):((Ie,ve,me)=>new vt(function*Ee(){const Me={};for(const Fe of Ie){const Ge=ve(Fe),xt=Me[Ge],Pt=me(Fe);xt?xt.push(Pt):Me[Ge]=new It(Ge,Pt)}for(const Fe in Me)yield Me[Fe]}))(Ie,ve,me),sr=(Ie,ve,me,Ee,Me,Fe)=>{const Ge=Fe?gr(Ie,ve,me,Ee,Me,Fe):Qt(Ie,ve,me,Ee,Me);return new vt(Ge)},gr=(Ie,ve,me,Ee,Me,Fe)=>function*(){var Ge;const xt=[];for(const Pt of ve){const Gt=Ee(Pt),Cn=xt.find(pi=>Fe(pi.key,Gt));Cn?Cn.values.push(Pt):xt.push({key:Gt,values:[Pt]})}for(const Pt of Ie){const Gt=me(Pt),Cn=null!==(Ge=xt.find(pi=>Fe(pi.key,Gt)))&&void 0!==Ge?Ge:{key:Gt,values:[]};yield Me(Pt,Cn.values)}},Qt=(Ie,ve,me,Ee,Me)=>function*(){var Fe;const Ge=new Map;for(const xt of ve){const Pt=Ee(xt),Gt=Ge.get(Pt);Gt?Gt.push(xt):Ge.set(Pt,[xt])}for(const xt of Ie){const Pt=me(xt),Gt=null!==(Fe=Ge.get(Pt))&&void 0!==Fe?Fe:[];yield Me(xt,Gt)}},_n=(Ie,ve,me,Ee,Me,Fe)=>{const Ge=Fe?Ze(Ie,ve,me,Ee,Me,Fe):Ct(Ie,ve,me,Ee,Me);return Sn(Ge)},Ze=(Ie,ve,me,Ee,Me,Fe)=>lt(function*(){var Ge;const xt=[];for(const Pt of ve){const Gt=yield Xe(Ee(Pt)),Cn=xt.find(pi=>Fe(pi.key,Gt));Cn?Cn.values.push(Pt):xt.push({key:Gt,values:[Pt]})}for(const Pt of Ie){const Gt=yield Xe(me(Pt)),Cn=null!==(Ge=xt.find(pi=>Fe(pi.key,Gt)))&&void 0!==Ge?Ge:{key:Gt,values:[]};yield Me(Pt,Cn.values)}}),Ct=(Ie,ve,me,Ee,Me)=>lt(function*(){var Fe;const Ge=new Map;for(const xt of ve){const Pt=yield Xe(Ee(xt)),Gt=Ge.get(Pt);Gt?Gt.push(xt):Ge.set(Pt,[xt])}for(const xt of Ie){const Pt=yield Xe(me(xt)),Gt=null!==(Fe=Ge.get(Pt))&&void 0!==Fe?Fe:[];yield Me(xt,Gt)}}),ft=(Ie,ve,me=gn)=>new vt(function*Ee(){const Me=[...Ie.distinct(me)];if(0===Me.length)return;const Fe=[...ve];for(let Ge=0;Ge<Me.length;Ge++){const xt=Me[Ge];for(let Pt=0;Pt<Fe.length;Pt++)if(!0===me(xt,Fe[Pt])){yield xt;break}}}),zt=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=[];var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie.distinctAsync(me));Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1)Fe.push(Cn.value)}catch(wi){xt=!0,Pt=wi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}if(0===Fe.length)return;const pi=[...ve];for(let wi=0;wi<Fe.length;wi++){const Zi=Fe[wi];for(let er=0;er<pi.length;er++){const hr=pi[er];if(!0===(yield Xe(me(Zi,hr)))){yield Zi;break}}}}),Me.apply(this,arguments)}return Sn(function Ee(){return Me.apply(this,arguments)})},wt=(Ie,ve,me,Ee,Me,Fe=gn)=>new vt(function*Ge(){const xt=[...ve];for(const Pt of Ie){const Gt=me(Pt);for(const Cn of xt){const pi=Ee(Cn);!0===Fe(Gt,pi)&&(yield Me(Pt,Cn))}}}),Xt=(Ie,ve)=>ve?Ke(Ie,ve):fn(Ie),fn=Ie=>{let ve;for(const me of Ie)ve=me;if(!ve)throw new kt(yt.NoElements);return ve},Ke=(Ie,ve)=>{let me;for(const Ee of Ie)!0===ve(Ee)&&(me=Ee);if(!me)throw new kt(yt.NoMatch);return me},ht=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee;for(const Me of ve)!0===(yield me(Me))&&(Ee=Me);if(!Ee)throw new kt(yt.NoMatch);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),on=(Ie,ve)=>ve?an(Ie,ve):hn(Ie),hn=Ie=>{let ve=null;for(const me of Ie)ve=me;return ve},an=(Ie,ve)=>{let me=null;for(const Ee of Ie)!0===ve(Ee)&&(me=Ee);return me},Nn=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;for(const Me of ve)!0===(yield me(Me))&&(Ee=Me);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),$n=(Ie,ve)=>ve?Bt(Ie,ve):ot(Ie),ot=Ie=>{let ve=null;for(const me of Ie)ve=Math.max(ve||Number.NEGATIVE_INFINITY,me);if(null===ve)throw new kt(yt.NoElements);return ve},Bt=(Ie,ve)=>{let me=null;for(const Ee of Ie)me=Math.max(me||Number.NEGATIVE_INFINITY,ve(Ee));if(null===me)throw new kt(yt.NoElements);return me},nn=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;for(const Me of ve)Ee=Math.max(Ee||Number.NEGATIVE_INFINITY,yield me(Me));if(null===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),On=(Ie,ve)=>ve?Rt(Ie,ve):nt(Ie),nt=Ie=>{let ve=null;for(const me of Ie)ve=Math.min(ve||Number.POSITIVE_INFINITY,me);if(null===ve)throw new kt(yt.NoElements);return ve},Rt=(Ie,ve)=>{let me=null;for(const Ee of Ie)me=Math.min(me||Number.POSITIVE_INFINITY,ve(Ee));if(null===me)throw new kt(yt.NoElements);return me},pt=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;for(const Me of ve)Ee=Math.min(Ee||Number.POSITIVE_INFINITY,yield me(Me));if(null===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),jt=(Ie,ve)=>{const me="string"==typeof ve?Me=>typeof Me===ve:Me=>Me instanceof ve;return new vt(function*Ee(){for(const Me of Ie)me(Me)&&(yield Me)})};function Un(Ie){var ve={},me=!1;function Ee(Me,Fe){return me=!0,Fe=new Promise(function(Ge){Ge(Ie[Me](Fe))}),{done:!1,value:new St(Fe,1)}}return ve[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},ve.next=function(Me){return me?(me=!1,Me):Ee("next",Me)},"function"==typeof Ie.throw&&(ve.throw=function(Me){if(me)throw me=!1,Me;return Ee("throw",Me)}),"function"==typeof Ie.return&&(ve.return=function(Me){return me?(me=!1,Me):Ee("return",Me)}),ve}const oi=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;{const Cn=yield me(Gt),pi=Ee.get(Cn);pi?pi.push(Gt):Ee.set(Cn,[Gt])}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function Ai(){return Ai=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(oi(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),Ai.apply(this,arguments)}const Ui=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;for(const Me of ve){const Fe=yield me(Me),Ge=Ee.get(Fe);Ge?Ge.push(Me):Ee.set(Fe,[Me])}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function ji(Ie,ve,me,Ee){return Qi.apply(this,arguments)}function Qi(){return Qi=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(Ui(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),Qi.apply(this,arguments)}const Tr=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;{const Cn=me(Gt),pi=Ee.get(Cn);pi?pi.push(Gt):Ee.set(Cn,[Gt])}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function oo(){return oo=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(Tr(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),oo.apply(this,arguments)}function*No(Ie,ve,me,Ee){const Me=((Ie,ve)=>{const me=new Map;for(const Ee of Ie){const Me=ve(Ee),Fe=me.get(Me);Fe?Fe.push(Ee):me.set(Me,[Ee])}return me})(Ie,ve),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}class uo extends Ve{constructor(ve){super(lt(function*(){var Me,me=!1,Ee=!1;try{for(var Ge,Fe=Wn(ve());me=!(Ge=yield Xe(Fe.next())).done;me=!1){const xt=Ge.value;yield*Un(Wn(xt))}}catch(xt){Ee=!0,Me=xt}finally{try{me&&null!=Fe.return&&(yield Xe(Fe.return()))}finally{if(Ee)throw Me}}})),this.orderedPairs=ve}static generateAsync(ve,me,Ee,Me){let Fe;return Fe=ve instanceof uo?function(){var Ge=lt(function*(){var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve.orderedPairs());xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const wi=pi.value;yield*Un(Wn(ji(wi,me,Ee,Me)))}}catch(wi){Pt=!0,Gt=wi}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}});return function(){return Ge.apply(this,arguments)}}():()=>function xi(Ie,ve,me,Ee){return Ai.apply(this,arguments)}(ve,me,Ee,Me),new uo(Fe)}static generate(ve,me,Ee,Me){let Fe;return Fe=ve instanceof uo?function(){var Ge=lt(function*(){var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve.orderedPairs());xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const wi=pi.value;yield*Un(Wn(No(wi,me,Ee,Me)))}}catch(wi){Pt=!0,Gt=wi}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}});return function(){return Ge.apply(this,arguments)}}():()=>function br(Ie,ve,me,Ee){return oo.apply(this,arguments)}(ve,me,Ee,Me),new uo(Fe)}thenBy(ve,me){return uo.generate(this,ve,!0,me)}thenByAsync(ve,me){return uo.generateAsync(this,ve,!0,me)}thenByDescending(ve,me){return uo.generate(this,ve,!1,me)}thenByDescendingAsync(ve,me){return uo.generateAsync(this,ve,!1,me)}}function*pa(Ie,ve,me,Ee){const Me=((Ie,ve)=>{const me=new Map;for(const Ee of Ie){const Me=ve(Ee),Fe=me.get(Me);Fe?Fe.push(Ee):me.set(Me,[Ee])}return me})(Ie,ve),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}const ra=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;for(const Me of ve){const Fe=yield me(Me),Ge=Ee.get(Fe);Ge?Ge.push(Me):Ee.set(Fe,[Me])}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function wo(Ie,ve,me,Ee){return Uo.apply(this,arguments)}function Uo(){return Uo=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(ra(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),Uo.apply(this,arguments)}class Ao extends vt{constructor(ve){super(function*(){for(const me of ve())yield*me}),this.orderedPairs=ve}static generate(ve,me,Ee,Me){let Fe;return Fe=ve instanceof Ao?function*(){for(const Ge of ve.orderedPairs())yield*pa(Ge,me,Ee,Me)}:()=>pa(ve,me,Ee,Me),new Ao(Fe)}static generateAsync(ve,me,Ee,Me){let Fe;return Fe=ve instanceof Ao?function(){var Ge=lt(function*(){for(const xt of ve.orderedPairs())yield*Un(Wn(wo(xt,me,Ee,Me)))});return function(){return Ge.apply(this,arguments)}}():()=>wo(ve,me,Ee,Me),new uo(Fe)}thenBy(ve,me){return Ao.generate(this,ve,!0,me)}thenByAsync(ve,me){return Ao.generateAsync(this,ve,!0,me)}thenByDescending(ve,me){return Ao.generate(this,ve,!1,me)}thenByDescendingAsync(ve,me){return Ao.generateAsync(this,ve,!1,me)}}const Da=(Ie,ve,me)=>Ao.generate(Ie,ve,!0,me),io=(Ie,ve,me)=>Ao.generateAsync(Ie,ve,!0,me),jo=(Ie,ve,me)=>Ao.generate(Ie,ve,!1,me),ga=(Ie,ve,me)=>Ao.generateAsync(Ie,ve,!1,me),$a=(Ie,ve)=>{const me=[],Ee=[];for(const Me of Ie)!0===ve(Me)?Ee.push(Me):me.push(Me);return[Ee,me]},oa=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=[],Me=[];for(const Fe of ve)!0===(yield me(Fe))?Me.push(Fe):Ee.push(Fe);return[Me,Ee]});return function(me,Ee){return Ie.apply(this,arguments)}}(),ds=Ie=>new vt(function*ve(){const me=[...Ie];for(let Ee=me.length-1;Ee>=0;Ee--)yield me[Ee]}),Xo=(Ie,ve)=>{if("function"==typeof ve){const{length:me}=ve;return 1===me?fa(Ie,ve):Ia(Ie,ve)}return qo(Ie,ve)},fa=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie)yield ve(Ee)}),Ia=(Ie,ve)=>new vt(function*me(){let Ee=0;for(const Me of Ie)yield ve(Me,Ee),Ee++}),qo=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie)yield Ee[ve]}),Ba=(Ie,ve)=>"function"==typeof ve?1===ve.length?Jo(Ie,ve):aa(Ie,ve):Ma(Ie,ve),Jo=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){for(const Me of Ie)yield ve(Me)}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},aa=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;for(const Fe of Ie)yield ve(Fe,Me),Me++}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Ma=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){for(const Me of Ie)yield Me[ve]}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},xa=(Ie,ve)=>"function"==typeof ve?1===ve.length?ma(Ie,ve):Qo(Ie,ve):Aa(Ie,ve),ma=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie)for(const Me of ve(Ee))yield Me}),Qo=(Ie,ve)=>new vt(function*me(){let Ee=0;for(const Me of Ie){for(const Fe of ve(Me,Ee))yield Fe;Ee++}}),Aa=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie)for(const Me of Ee[ve])yield Me}),ba=(Ie,ve)=>1===ve.length?wa(Ie,ve):_a(Ie,ve),wa=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){for(const Me of Ie){const Fe=yield Xe(ve(Me));for(const Ge of Fe)yield Ge}}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},_a=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;for(const Fe of Ie){const Ge=yield Xe(ve(Fe,Me));for(const xt of Ge)yield xt;Me++}}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Jt=(Ie,ve,me=gn)=>{const Ee=Ie[Symbol.iterator](),Me=ve[Symbol.iterator]();let Fe=Ee.next(),Ge=Me.next();for(;!Fe.done&&!Ge.done;){if(!me(Fe.value,Ge.value))return!1;Fe=Ee.next(),Ge=Me.next()}return!0===Fe.done&&!0===Ge.done},Ut=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){const Me=ve[Symbol.iterator](),Fe=me[Symbol.iterator]();let Ge=Me.next(),xt=Fe.next();for(;!Ge.done&&!xt.done;){if(!1===(yield Ee(Ge.value,xt.value)))return!1;Ge=Me.next(),xt=Fe.next()}return!0===Ge.done&&!0===xt.done});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),At=(Ie,ve)=>ve?Ni(Ie,ve):An(Ie),An=Ie=>{let ve=!1,me=null;for(const Ee of Ie){if(!0===ve)throw new kt(yt.MoreThanOneElement);ve=!0,me=Ee}if(!1===ve)throw new kt(yt.NoElements);return me},Ni=(Ie,ve)=>{let me=!1,Ee=null;for(const Me of Ie)if(ve(Me)){if(!0===me)throw new kt(yt.MoreThanOneMatchingElement);me=!0,Ee=Me}if(!1===me)throw new kt(yt.NoMatch);return Ee},jr=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=!1,Me=null;for(const Fe of ve)if(yield me(Fe)){if(!0===Ee)throw new kt(yt.MoreThanOneMatchingElement);Ee=!0,Me=Fe}if(!1===Ee)throw new kt(yt.NoMatch);return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),Eo=(Ie,ve)=>ve?it(Ie,ve):_t(Ie),_t=Ie=>{let ve=!1,me=null;for(const Ee of Ie){if(!0===ve)throw new kt(yt.MoreThanOneElement);ve=!0,me=Ee}return me},it=(Ie,ve)=>{let me=!1,Ee=null;for(const Me of Ie)if(ve(Me)){if(!0===me)throw new kt(yt.MoreThanOneMatchingElement);me=!0,Ee=Me}return Ee},We=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=!1,Me=null;for(const Fe of ve)if(yield me(Fe)){if(!0===Ee)throw new kt(yt.MoreThanOneElement);Ee=!0,Me=Fe}return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),Qe=(Ie,ve)=>new vt(function*me(){let Ee=0;for(const Me of Ie)Ee++>=ve&&(yield Me)}),rt=(Ie,ve)=>1===ve.length?$t(Ie,ve):pn(Ie,ve),$t=(Ie,ve)=>new vt(function*me(){let Ee=!0;for(const Me of Ie)!1===Ee?yield Me:!1===ve(Me)&&(Ee=!1,yield Me)}),pn=(Ie,ve)=>new vt(function*me(){let Ee=0,Me=!0;for(const Fe of Ie)!1===Me?yield Fe:!1===ve(Fe,Ee)&&(Me=!1,yield Fe),Ee++}),Gn=(Ie,ve)=>1===ve.length?Jn(Ie,ve):Pi(Ie,ve),Jn=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=!0;for(const Fe of Ie)!1===Me?yield Fe:!1===(yield Xe(ve(Fe)))&&(Me=!1,yield Fe)}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Pi=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0,Fe=!0;for(const Ge of Ie)!1===Fe?yield Ge:!1===(yield Xe(ve(Ge,Me)))&&(Fe=!1,yield Ge),Me++}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},yi=(Ie,ve)=>ve?bi(Ie,ve):Ei(Ie),Ei=Ie=>{let ve=0;for(const me of Ie)ve+=me;return ve},bi=(Ie,ve)=>{let me=0;for(const Ee of Ie)me+=ve(Ee);return me},Xi=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;for(const Me of ve)Ee+=(yield me(Me));return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),mr=(Ie,ve)=>new vt(function*me(){let Ee=ve>0?ve:0;for(const Me of Ie){if(0==Ee--)break;yield Me}}),lr=(Ie,ve)=>1===ve.length?yr(Ie,ve):$i(Ie,ve),yr=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie){if(!ve(Ee))break;yield Ee}}),$i=(Ie,ve)=>new vt(function*me(){let Ee=0;for(const Me of Ie){if(!ve(Me,Ee++))break;yield Me}}),ir=(Ie,ve)=>1===ve.length?Ir(Ie,ve):Hr(Ie,ve),Ir=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){for(const Me of Ie){if(!(yield Xe(ve(Me))))break;yield Me}}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Hr=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;for(const Fe of Ie){if(!(yield Xe(ve(Fe,Me++))))break;yield Fe}}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},Or=Ie=>[...Ie],Pr=(Ie,ve)=>{const me=new Map;for(const Ee of Ie){const Me=ve(Ee),Fe=me.get(Me);void 0===Fe?me.set(Me,[Ee]):Fe.push(Ee)}return me},Ar=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;for(const Me of ve){const Fe=yield me(Me),Ge=Ee.get(Fe);void 0===Ge?Ee.set(Fe,[Me]):Ge.push(Me)}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),qr=(Ie,ve)=>{const me={};for(const Ee of Ie)me[ve(Ee)]=Ee;return me},eo=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee={};for(const Me of ve)Ee[yield me(Me)]=Me;return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Dn=Ie=>new Set(Ie),Zt=(Ie,ve,me)=>me?qn(Ie,ve,me):Wt(Ie,ve),Wt=(Ie,ve)=>new vt(function*me(){const Ee=new Set;for(const Me of Ie)!1===Ee.has(Me)&&(yield Me,Ee.add(Me));for(const Me of ve)!1===Ee.has(Me)&&(yield Me,Ee.add(Me))}),qn=(Ie,ve,me)=>new vt(function*Ee(){const Me=[];for(const Fe of[Ie,ve])for(const Ge of Fe){let xt=!1;for(const Pt of Me)if(!0===me(Ge,Pt)){xt=!0;break}!1===xt&&(yield Ge,Me.push(Ge))}}),ni=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=[];for(const Ge of[Ie,ve])for(const xt of Ge){let Pt=!1;for(const Gt of Fe)if(!0===(yield Xe(me(xt,Gt)))){Pt=!0;break}!1===Pt&&(yield xt,Fe.push(xt))}}),Me.apply(this,arguments)}return Sn(function Ee(){return Me.apply(this,arguments)})},Di=(Ie,ve)=>1===ve.length?Hi(Ie,ve):cr(Ie,ve),Hi=(Ie,ve)=>new vt(function*me(){for(const Ee of Ie)!0===ve(Ee)&&(yield Ee)}),cr=(Ie,ve)=>new vt(function*me(){let Ee=0;for(const Me of Ie)!0===ve(Me,Ee++)&&(yield Me)}),Jr=(Ie,ve)=>1===ve.length?Er(Ie,ve):go(Ie,ve),Er=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){for(const Me of Ie)!0===(yield Xe(ve(Me)))&&(yield Me)}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},go=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;for(const Fe of Ie)!0===(yield Xe(ve(Fe,Me++)))&&(yield Fe)}),Ee.apply(this,arguments)}return Sn(function me(){return Ee.apply(this,arguments)})},xo=(Ie,ve,me)=>me?Pa(Ie,ve,me):sa(Ie,ve),sa=(Ie,ve)=>new vt(function*me(){const Ee=Ie[Symbol.iterator](),Me=ve[Symbol.iterator]();for(;;){const Fe=Ee.next(),Ge=Me.next();if(Fe.done||Ge.done)break;yield[Fe.value,Ge.value]}}),Pa=(Ie,ve,me)=>new vt(function*Ee(){const Me=Ie[Symbol.iterator](),Fe=ve[Symbol.iterator]();for(;;){const Ge=Me.next(),xt=Fe.next();if(Ge.done||xt.done)break;yield me(Ge.value,xt.value)}}),Zo=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=Ie[Symbol.iterator](),Ge=ve[Symbol.iterator]();for(;;){const xt=Fe.next(),Pt=Ge.next();if(xt.done||Pt.done)break;yield me(xt.value,Pt.value)}}),Me.apply(this,arguments)}return Sn(function Ee(){return Me.apply(this,arguments)})},da=Ie=>{const ve=Ie.prototype,me=(Ee,Me)=>{const Fe=function(...Ge){return Ee(this,...Ge)};Object.defineProperty(Fe,"length",{value:Ee.length-1}),ve[Me]=Fe};me(mn,"aggregate"),me(ki,"all"),me(Oi,"allAsync"),me(Hn,"any"),me(ei,"anyAsync"),me(Qn,"asAsync"),me(ci,"asParallel"),me(Wi,"average"),me(qi,"averageAsync"),me(nr,"chunk"),me(xr,"concatenate"),me(vn,"contains"),me(Pn,"containsAsync"),me(hi,"count"),me(dr,"countAsync"),me(kr,"defaultIfEmpty"),me(Nr,"distinct"),me(Gr,"distinctAsync"),me(Qr,"each"),me(Sr,"eachAsync"),me(Wr,"elementAt"),me(Ur,"elementAtOrDefault"),me(Rr,"except"),me(mo,"exceptAsync"),me(Mr,"first"),me(ar,"firstAsync"),me(Xr,"firstOrDefault"),me(bo,"firstOrDefaultAsync"),me(dn,"groupBy"),me(Tn,"groupByAsync"),me(Li,"groupByWithSel"),me(sr,"groupJoin"),me(_n,"groupJoinAsync"),me(ft,"intersect"),me(zt,"intersectAsync"),me(wt,"joinByKey"),me(Xt,"last"),me(ht,"lastAsync"),me(on,"lastOrDefault"),me(Nn,"lastOrDefaultAsync"),me($n,"max"),me(nn,"maxAsync"),me(On,"min"),me(pt,"minAsync"),me(jt,"ofType"),me(Da,"orderBy"),me(io,"orderByAsync"),me(jo,"orderByDescending"),me(ga,"orderByDescendingAsync"),me(ds,"reverse"),me(Xo,"select"),me(Ba,"selectAsync"),me(xa,"selectMany"),me(ba,"selectManyAsync"),me(Jt,"sequenceEquals"),me(Ut,"sequenceEqualsAsync"),me(At,"single"),me(jr,"singleAsync"),me(Eo,"singleOrDefault"),me(We,"singleOrDefaultAsync"),me(Qe,"skip"),me(rt,"skipWhile"),me(Gn,"skipWhileAsync"),me(yi,"sum"),me(Xi,"sumAsync"),me(mr,"take"),me(lr,"takeWhile"),me(ir,"takeWhileAsync"),me(Or,"toArray"),me(Pr,"toMap"),me(Ar,"toMapAsync"),me(qr,"toObject"),me(eo,"toObjectAsync"),me($a,"partition"),me(oa,"partitionAsync"),me(Dn,"toSet"),me(Zt,"union"),me(ni,"unionAsync"),me(Di,"where"),me(Jr,"whereAsync"),me(xo,"zip"),me(Zo,"zipAsync")},Br=(Ie,ve,me,Ee)=>{if(Ee){if(!me)throw new ReferenceError("TAccumulate function is undefined");return Ht(Ie,ve,me,Ee)}return me?ln(Ie,ve,me):Mt(Ie,ve)},Mt=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee=Ee?me(Ee,Gt):Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(void 0===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),ln=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){let Me=me;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1)Me=Ee(Me,Gt.value)}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return Me});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),Ht=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee,Me){let Fe=me;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(ve);Ge=!(Cn=yield Gt.next()).done;Ge=!1)Fe=Ee(Fe,Cn.value)}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Gt.return())}finally{if(xt)throw Pt}}return Me(Fe)});return function(me,Ee,Me,Fe){return Ie.apply(this,arguments)}}(),Bn=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)if(!1===me(xt.value))return!1}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return!0});return function(me,Ee){return Ie.apply(this,arguments)}}(),ui=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1){const Pt=xt.value;if(!1===(yield me(Pt)))return!1}}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return!0});return function(me,Ee){return Ie.apply(this,arguments)}}(),at=(Ie,ve)=>ve?Et(Ie,ve):ct(Ie),ct=function(){var Ie=(0,Vn.Z)(function*(ve){var Me,me=!1,Ee=!1;try{for(var Fe=Wn(ve);me=!(yield Fe.next()).done;me=!1)return!0}catch(xt){Ee=!0,Me=xt}finally{try{me&&null!=Fe.return&&(yield Fe.return())}finally{if(Ee)throw Me}}return!1});return function(me){return Ie.apply(this,arguments)}}(),Et=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)if(!0===me(xt.value))return!0}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return!1});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ln=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1){const Pt=xt.value;if(!0===(yield me(Pt)))return!0}}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return!1});return function(me,Ee){return Ie.apply(this,arguments)}}(),si=Ie=>ti(0,function(){var me=(0,Vn.Z)(function*(){const Ee=[];var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield xt.next()).done;Me=!1)Ee.push(Pt.value)}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(){return me.apply(this,arguments)}}()),Ii=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0,Me=0;if(me){var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1)Ee+=me(Gt.value),Me+=1}catch(hr){Ge=!0,xt=hr}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}}else{var wi,Cn=!1,pi=!1;try{for(var er,Zi=Wn(ve);Cn=!(er=yield Zi.next()).done;Cn=!1)Ee+=er.value,Me+=1}catch(hr){pi=!0,wi=hr}finally{try{Cn&&null!=Zi.return&&(yield Zi.return())}finally{if(pi)throw wi}}}if(0===Me)throw new kt(yt.NoElements);return Ee/Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),Vi=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0,Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;Ee+=(yield me(Cn)),Me+=1}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}if(0===Me)throw new kt(yt.NoElements);return Ee/Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),rr=(Ie,ve)=>{if(ve<1)throw new bt("index");function Ee(){return Ee=lt(function*(){let Me=[];var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1)Me.push(Gt.value),Me.length===ve&&(yield Me,Me=[])}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}Me.length&&(yield Me)}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},vr=(Ie,ve)=>{function Ee(){return(Ee=lt(function*(){yield*Un(Wn(Ie)),yield*Un(Wn(ve))})).apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Zr=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee=gn){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)if(Ee(me,Pt.value))return!0}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return!1});return function(me,Ee){return Ie.apply(this,arguments)}}(),so=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;if(yield Ee(me,Gt))return!0}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return!1});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),vo=(Ie,ve)=>ve?Ko(Ie,ve):Ho(Ie),Ho=function(){var Ie=(0,Vn.Z)(function*(ve){let me=0;var Fe,Ee=!1,Me=!1;try{for(var Ge=Wn(ve);Ee=!(yield Ge.next()).done;Ee=!1)me++}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return me});return function(me){return Ie.apply(this,arguments)}}(),Ko=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)!0===me(Pt.value)&&Ee++}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ro=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;!0===(yield me(Gt))&&Ee++}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),ea=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=!1;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;Me=!0,yield Cn}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}Me||(yield ve)}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},la=(Ie,ve=gn)=>{function Ee(){return Ee=lt(function*(){const Me=[];var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;Me.find(wi=>ve(wi,Cn))||(Me.push(Cn),yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},va=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me=[];var xt,Fe=!1,Ge=!1;try{e:for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;for(const pi of Me)if(yield Xe(ve(pi,Cn)))continue e;Me.push(Cn),yield Cn}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},ta=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;ve(Gt),yield Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},ya=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;yield Xe(ve(Gt)),yield Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Ml=function(){var Ie=(0,Vn.Z)(function*(ve,me){if(me<0)throw new bt("index");let Ee=0;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)if(me===Ee++)return Pt.value}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}throw new bt("index")});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ld=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)if(me===Ee++)return Pt.value}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ph=(Ie,ve,me=gn)=>{function Me(){return Me=lt(function*(){const Fe=[];var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(ve);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1)Fe.push(Cn.value)}catch(Dr){xt=!0,Pt=Dr}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}var Zi,pi=!1,wi=!1;try{for(var hr,er=Wn(Ie);pi=!(hr=yield Xe(er.next())).done;pi=!1){const Dr=hr.value;{let ao=!1;for(let fo=0;fo<Fe.length;fo++)if(!0===me(Dr,Fe[fo])){ao=!0;break}!1===ao&&(yield Dr)}}}catch(Dr){wi=!0,Zi=Dr}finally{try{pi&&null!=er.return&&(yield Xe(er.return()))}finally{if(wi)throw Zi}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},td=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=[];var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(ve);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1)Fe.push(Cn.value)}catch(Dr){xt=!0,Pt=Dr}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}var Zi,pi=!1,wi=!1;try{for(var hr,er=Wn(Ie);pi=!(hr=yield Xe(er.next())).done;pi=!1){const Dr=hr.value;{let ao=!1;for(let fo=0;fo<Fe.length;fo++){const Lo=Fe[fo];if(!0===(yield Xe(me(Dr,Lo)))){ao=!0;break}}!1===ao&&(yield Dr)}}}catch(Dr){wi=!0,Zi=Dr}finally{try{pi&&null!=er.return&&(yield Xe(er.return()))}finally{if(wi)throw Zi}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},bu=(Ie,ve)=>ve?Bd(Ie,ve):wu(Ie),wu=function(){var Ie=(0,Vn.Z)(function*(ve){const me=yield ve[Symbol.asyncIterator]().next();if(!0===me.done)throw new kt(yt.NoElements);return me.value});return function(me){return Ie.apply(this,arguments)}}(),Bd=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1){const Pt=xt.value;if(!0===me(Pt))return Pt}}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),Eu=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1){const Pt=xt.value;if(!0===(yield me(Pt)))return Pt}}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),Wp=(Ie,ve)=>ve?yc(Ie,ve):nd(Ie),nd=function(){var Ie=(0,Vn.Z)(function*(ve){return(yield ve[Symbol.asyncIterator]().next()).value||null});return function(me){return Ie.apply(this,arguments)}}(),yc=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1){const Pt=xt.value;if(!0===me(Pt))return Pt}}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),Cc=function(){var Ie=(0,Vn.Z)(function*(ve,me){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1){const Pt=xt.value;if(!0===(yield me(Pt)))return Pt}}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),Us=(Ie,ve,me)=>me?Up(Ie,ve,me):Su(Ie,ve),Up=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=new Array;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const pi=Cn.value;{const wi=ve(pi);let Zi=!1;for(let er=0;er<Fe.length;er++){const hr=Fe[er];if(me(hr.key,wi)){hr.push(pi),Zi=!0;break}}!1===Zi&&Fe.push(new It(wi,pi))}}}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}for(const pi of Fe)yield pi}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},Su=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me={};var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;{const pi=ve(Cn),wi=Me[pi];wi?wi.push(Cn):Me[pi]=new It(pi,Cn)}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}for(const Cn in Me)yield Me[Cn]}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Ou=(Ie,ve,me)=>me?Fd(Ie,ve,me):xc(Ie,ve),xc=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me={};var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;{const pi=yield Xe(ve(Cn)),wi=Me[pi];wi?wi.push(Cn):Me[pi]=new It(pi,Cn)}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}for(const Cn in Me)yield Me[Cn]}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Fd=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=new Array;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const pi=Cn.value;{const wi=yield Xe(ve(pi));let Zi=!1;for(let er=0;er<Fe.length;er++){const hr=Fe[er];if(!0===(yield Xe(me(hr.key,wi)))){hr.push(pi),Zi=!0;break}}!1===Zi&&Fe.push(new It(wi,pi))}}}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}for(const pi of Fe)yield pi}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},id=(Ie,ve,me,Ee)=>Ee?bc(Ie,ve,me,Ee):Zp(Ie,ve,me),Zp=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe={};var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const pi=Cn.value;{const wi=ve(pi),Zi=Fe[wi],er=me(pi);Zi?Zi.push(er):Fe[wi]=new It(wi,er)}}}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}for(const pi in Fe)yield Fe[pi]}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},bc=(Ie,ve,me,Ee)=>{function Fe(){return Fe=lt(function*(){const Ge=new Array;var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(Ie);xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const wi=pi.value;{const Zi=ve(wi);let er=!1;for(let hr=0;hr<Ge.length;hr++){const Dr=Ge[hr];if(Ee(Dr.key,Zi)){Dr.push(me(wi)),er=!0;break}}if(!1===er){const hr=me(wi);Ge.push(new It(Zi,hr))}}}}catch(wi){Pt=!0,Gt=wi}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}for(const wi of Ge)yield wi}),Fe.apply(this,arguments)}return new Ve(function Me(){return Fe.apply(this,arguments)})},wc=(Ie,ve,me,Ee,Me,Fe)=>{const Ge=Fe?rd(Ie,ve,me,Ee,Me,Fe):Du(Ie,ve,me,Ee,Me);return new Ve(Ge)},rd=(Ie,ve,me,Ee,Me,Fe)=>lt(function*(){var Ge;const xt=[];var Cn,Pt=!1,Gt=!1;try{for(var wi,pi=Wn(ve);Pt=!(wi=yield Xe(pi.next())).done;Pt=!1){const fo=wi.value;{const Lo=Ee(fo),ts=xt.find(su=>Fe(su.key,Lo));ts?ts.values.push(fo):xt.push({key:Lo,values:[fo]})}}}catch(fo){Gt=!0,Cn=fo}finally{try{Pt&&null!=pi.return&&(yield Xe(pi.return()))}finally{if(Gt)throw Cn}}var hr,Zi=!1,er=!1;try{for(var ao,Dr=Wn(Ie);Zi=!(ao=yield Xe(Dr.next())).done;Zi=!1){const fo=ao.value;{const Lo=me(fo),ts=null!==(Ge=xt.find(su=>Fe(su.key,Lo)))&&void 0!==Ge?Ge:{key:Lo,values:[]};yield Me(fo,ts.values)}}}catch(fo){er=!0,hr=fo}finally{try{Zi&&null!=Dr.return&&(yield Xe(Dr.return()))}finally{if(er)throw hr}}}),Du=(Ie,ve,me,Ee,Me)=>lt(function*(){var Fe;const Ge=new Map;var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve);xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const ao=pi.value;{const fo=Ee(ao),Lo=Ge.get(fo);Lo?Lo.push(ao):Ge.set(fo,[ao])}}}catch(ao){Pt=!0,Gt=ao}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}var er,wi=!1,Zi=!1;try{for(var Dr,hr=Wn(Ie);wi=!(Dr=yield Xe(hr.next())).done;wi=!1){const ao=Dr.value;{const fo=me(ao),Lo=null!==(Fe=Ge.get(fo))&&void 0!==Fe?Fe:[];yield Me(ao,Lo)}}}catch(ao){Zi=!0,er=ao}finally{try{wi&&null!=hr.return&&(yield Xe(hr.return()))}finally{if(Zi)throw er}}}),Ec=(Ie,ve,me,Ee,Me,Fe)=>{const Ge=Fe?ql(Ie,ve,me,Ee,Me,Fe):Es(Ie,ve,me,Ee,Me);return new Ve(Ge)},ql=(Ie,ve,me,Ee,Me,Fe)=>lt(function*(){var Ge;const xt=[];var Cn,Pt=!1,Gt=!1;try{for(var wi,pi=Wn(ve);Pt=!(wi=yield Xe(pi.next())).done;Pt=!1){const fo=wi.value;{const Lo=yield Xe(Ee(fo)),ts=xt.find(su=>Fe(su.key,Lo));ts?ts.values.push(fo):xt.push({key:Lo,values:[fo]})}}}catch(fo){Gt=!0,Cn=fo}finally{try{Pt&&null!=pi.return&&(yield Xe(pi.return()))}finally{if(Gt)throw Cn}}var hr,Zi=!1,er=!1;try{for(var ao,Dr=Wn(Ie);Zi=!(ao=yield Xe(Dr.next())).done;Zi=!1){const fo=ao.value;{const Lo=yield Xe(me(fo)),ts=null!==(Ge=xt.find(su=>Fe(su.key,Lo)))&&void 0!==Ge?Ge:{key:Lo,values:[]};yield Me(fo,ts.values)}}}catch(fo){er=!0,hr=fo}finally{try{Zi&&null!=Dr.return&&(yield Xe(Dr.return()))}finally{if(er)throw hr}}}),Es=(Ie,ve,me,Ee,Me)=>lt(function*(){var Fe;const Ge=new Map;var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve);xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const ao=pi.value;{const fo=yield Xe(Ee(ao)),Lo=Ge.get(fo);Lo?Lo.push(ao):Ge.set(fo,[ao])}}}catch(ao){Pt=!0,Gt=ao}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}var er,wi=!1,Zi=!1;try{for(var Dr,hr=Wn(Ie);wi=!(Dr=yield Xe(hr.next())).done;wi=!1){const ao=Dr.value;{const fo=yield Xe(me(ao)),Lo=null!==(Fe=Ge.get(fo))&&void 0!==Fe?Fe:[];yield Me(ao,Lo)}}}catch(ao){Zi=!0,er=ao}finally{try{wi&&null!=hr.return&&(yield Xe(hr.return()))}finally{if(Zi)throw er}}}),od=(Ie,ve,me=gn)=>{function Me(){return Me=lt(function*(){const Fe=yield Xe(Ie.distinct(me).toArray());if(0===Fe.length)return;const Ge=yield Xe(ve.toArray());for(let xt=0;xt<Fe.length;xt++){const Pt=Fe[xt];for(let Gt=0;Gt<Ge.length;Gt++)if(!0===me(Pt,Ge[Gt])){yield Pt;break}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},As=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=yield Xe(Ie.distinctAsync(me).toArray());if(0===Fe.length)return;const Ge=yield Xe(ve.toArray());for(let xt=0;xt<Fe.length;xt++){const Pt=Fe[xt];for(let Gt=0;Gt<Ge.length;Gt++){const Cn=Ge[Gt];if(!0===(yield Xe(me(Pt,Cn)))){yield Pt;break}}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},Vd=(Ie,ve,me,Ee,Me,Fe=gn)=>{function xt(){return xt=lt(function*(){const Pt=[];var pi,Gt=!1,Cn=!1;try{for(var Zi,wi=Wn(ve);Gt=!(Zi=yield Xe(wi.next())).done;Gt=!1)Pt.push(Zi.value)}catch(Lo){Cn=!0,pi=Lo}finally{try{Gt&&null!=wi.return&&(yield Xe(wi.return()))}finally{if(Cn)throw pi}}var Dr,er=!1,hr=!1;try{for(var fo,ao=Wn(Ie);er=!(fo=yield Xe(ao.next())).done;er=!1){const Lo=fo.value;{const ts=me(Lo);for(const su of Pt){const Yd=Ee(su);!0===Fe(ts,Yd)&&(yield Me(Lo,su))}}}}catch(Lo){hr=!0,Dr=Lo}finally{try{er&&null!=ao.return&&(yield Xe(ao.return()))}finally{if(hr)throw Dr}}}),xt.apply(this,arguments)}return new Ve(function Ge(){return xt.apply(this,arguments)})},Ss=(Ie,ve)=>ve?Qa(Ie,ve):Zs(Ie),Zs=function(){var Ie=(0,Vn.Z)(function*(ve){let me=null;var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me=xt.value}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}if(!me)throw new kt(yt.NoElements);return me});return function(me){return Ie.apply(this,arguments)}}(),Qa=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;!0===me(Gt)&&(Ee=Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(!Ee)throw new kt(yt.NoMatch);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),yl=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;!0===(yield me(Gt))&&(Ee=Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(!Ee)throw new kt(yt.NoMatch);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Tu=(Ie,ve)=>ve?ad(Ie,ve):Nd(Ie),Nd=function(){var Ie=(0,Vn.Z)(function*(ve){let me=null;var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me=xt.value}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return me});return function(me){return Ie.apply(this,arguments)}}(),ad=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;!0===me(Gt)&&(Ee=Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Jl=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;!0===(yield me(Gt))&&(Ee=Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Cl=(Ie,ve)=>ve?sd(Ie,ve):cs(Ie),cs=function(){var Ie=(0,Vn.Z)(function*(ve){let me=null;var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me=Math.max(me||Number.NEGATIVE_INFINITY,xt.value)}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}if(null===me)throw new kt(yt.NoElements);return me});return function(me){return Ie.apply(this,arguments)}}(),sd=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)Ee=Math.max(Ee||Number.NEGATIVE_INFINITY,me(Pt.value))}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(null===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ql=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee=Math.max(Ee||Number.NEGATIVE_INFINITY,yield me(Gt))}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(null===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),nl=(Ie,ve)=>ve?Al(Ie,ve):Kp(Ie),Kp=function(){var Ie=(0,Vn.Z)(function*(ve){let me=null;var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me=Math.min(me||Number.POSITIVE_INFINITY,xt.value)}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}if(null===me)throw new kt(yt.NoElements);return me});return function(me){return Ie.apply(this,arguments)}}(),Al=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)Ee=Math.min(Ee||Number.POSITIVE_INFINITY,me(Pt.value))}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(null===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ea=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee=Math.min(Ee||Number.POSITIVE_INFINITY,yield me(Gt))}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(null===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Gp=(Ie,ve)=>{const me="string"==typeof ve?Fe=>typeof Fe===ve:Fe=>Fe instanceof ve;function Me(){return Me=lt(function*(){var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;me(Cn)&&(yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},Ya=(Ie,ve,me)=>uo.generate(Ie,ve,!0,me),ld=(Ie,ve,me)=>uo.generateAsync(Ie,ve,!0,me),ud=(Ie,ve,me)=>uo.generate(Ie,ve,!1,me),Sc=(Ie,ve,me)=>uo.generateAsync(Ie,ve,!1,me),hs=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=[],Me=[];var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;!0===me(Cn)?Me.push(Cn):Ee.push(Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return[Me,Ee]});return function(me,Ee){return Ie.apply(this,arguments)}}(),kh=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=[],Me=[];var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;!0===(yield me(Cn))?Me.push(Cn):Ee.push(Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return[Me,Ee]});return function(me,Ee){return Ie.apply(this,arguments)}}(),dd=Ie=>{function me(){return me=lt(function*(){const Ee=[];var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1)Ee.push(Pt.value)}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}for(let Gt=Ee.length-1;Gt>=0;Gt--)yield Ee[Gt]}),me.apply(this,arguments)}return new Ve(function ve(){return me.apply(this,arguments)})},Xf=(Ie,ve)=>"function"==typeof ve?1===ve.length?jp(Ie,ve):Fa(Ie,ve):Iu(Ie,ve),jp=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;yield ve(Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Fa=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;yield ve(Cn,Me),Me++}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Iu=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1)yield Pt.value[ve]}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Ks=(Ie,ve)=>"string"==typeof ve?ys(Ie,ve):Rh(Ie,ve),Rh=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;yield ve(Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},ys=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1)yield Pt.value[ve]}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Os=(Ie,ve)=>"function"==typeof ve?1===ve.length?cd(Ie,ve):hd(Ie,ve):Hd(Ie,ve),cd=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;for(const Cn of ve(Gt))yield Cn}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},hd=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;for(const pi of ve(Cn,Me))yield pi;Me++}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Hd=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;for(const Cn of Gt[ve])yield Cn}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Oc=(Ie,ve)=>{if(1===ve.length){const me=function(){var Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;{const Cn=yield Xe(ve(Gt));for(const pi of Cn)yield pi}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}});return function(){return Ee.apply(this,arguments)}}();return new Ve(me)}{const me=function(){var Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;{const pi=yield Xe(ve(Cn,Me));for(const wi of pi)yield wi;Me++}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}});return function(){return Ee.apply(this,arguments)}}();return new Ve(me)}},$p=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee=gn){const Me=ve[Symbol.asyncIterator](),Fe=me[Symbol.asyncIterator]();let Ge=yield Promise.all([Me.next(),Fe.next()]),xt=Ge[0],Pt=Ge[1];for(;!xt.done&&!Pt.done;){if(!Ee(xt.value,Pt.value))return!1;Ge=yield Promise.all([Me.next(),Fe.next()]),xt=Ge[0],Pt=Ge[1]}return!0===xt.done&&!0===Pt.done});return function(me,Ee){return Ie.apply(this,arguments)}}(),Dc=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){const Me=ve[Symbol.asyncIterator](),Fe=me[Symbol.asyncIterator]();let Ge=yield Promise.all([Me.next(),Fe.next()]),xt=Ge[0],Pt=Ge[1];for(;!xt.done&&!Pt.done;){if(!1===(yield Ee(xt.value,Pt.value)))return!1;Ge=yield Promise.all([Me.next(),Fe.next()]),xt=Ge[0],Pt=Ge[1]}return!0===xt.done&&!0===Pt.done});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),zd=(Ie,ve)=>ve?cl(Ie,ve):ps(Ie),ps=function(){var Ie=(0,Vn.Z)(function*(ve){let me=!1,Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;if(!0===me)throw new kt(yt.MoreThanOneElement);me=!0,Ee=Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(!1===me)throw new kt(yt.NoElements);return Ee});return function(me){return Ie.apply(this,arguments)}}(),cl=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=!1,Me=null;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;if(me(Cn)){if(!0===Ee)throw new kt(yt.MoreThanOneMatchingElement);Ee=!0,Me=Cn}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}if(!1===Ee)throw new kt(yt.NoMatch);return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),eu=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=!1,Me=null;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;if(yield me(Cn)){if(!0===Ee)throw new kt(yt.MoreThanOneMatchingElement);Ee=!0,Me=Cn}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}if(!1===Ee)throw new kt(yt.NoMatch);return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),Lh=(Ie,ve)=>ve?qf(Ie,ve):Tc(Ie),Tc=function(){var Ie=(0,Vn.Z)(function*(ve){let me=!1,Ee=null;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;if(!0===me)throw new kt(yt.MoreThanOneElement);me=!0,Ee=Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me){return Ie.apply(this,arguments)}}(),qf=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=!1,Me=null;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;if(me(Cn)){if(!0===Ee)throw new kt(yt.MoreThanOneMatchingElement);Ee=!0,Me=Cn}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),Yp=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=!1,Me=null;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1){const Cn=Gt.value;if(yield me(Cn)){if(!0===Ee)throw new kt(yt.MoreThanOneMatchingElement);Ee=!0,Me=Cn}}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),Mu=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;Me++>=ve&&(yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Xp=(Ie,ve)=>1===ve.length?Ic(Ie,ve):Bh(Ie,ve),Ic=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=!0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;!1===Me?yield Cn:!1===ve(Cn)&&(Me=!1,yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Bh=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0,Fe=!0;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const pi=Cn.value;!1===Fe?yield pi:!1===ve(pi,Me)&&(Fe=!1,yield pi),Me++}}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Mc=(Ie,ve)=>1===ve.length?tu(Ie,ve):pd(Ie,ve),tu=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=!0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;!1===Me?yield Cn:!1===(yield Xe(ve(Cn)))&&(Me=!1,yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},pd=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0,Fe=!0;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const pi=Cn.value;!1===Fe?yield pi:!1===(yield Xe(ve(pi,Me)))&&(Fe=!1,yield pi),Me++}}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Au=(Ie,ve)=>ve?nu(Ie,ve):Ac(Ie),Ac=function(){var Ie=(0,Vn.Z)(function*(ve){let me=0;var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me+=xt.value}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return me});return function(me){return Ie.apply(this,arguments)}}(),nu=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1)Ee+=me(Pt.value)}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),qp=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee+=(yield me(Gt))}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Wd=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=ve>0?ve:0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;if(0==Me--)break;yield Cn}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Pu=(Ie,ve)=>1===ve.length?iu(Ie,ve):et(Ie,ve),iu=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;if(!ve(Gt))break;yield Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},et=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;if(!ve(Cn,Me++))break;yield Cn}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},qe=(Ie,ve)=>1===ve.length?He(Ie,ve):Tt(Ie,ve),He=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;if(!(yield Xe(ve(Gt))))break;yield Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Tt=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;if(!(yield Xe(ve(Cn,Me++))))break;yield Cn}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Yt=function(){var Ie=(0,Vn.Z)(function*(ve){const me=[];var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me.push(xt.value)}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return me});return function(me){return Ie.apply(this,arguments)}}(),kn=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;{const Cn=me(Gt),pi=Ee.get(Cn);void 0===pi?Ee.set(Cn,[Gt]):pi.push(Gt)}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),zn=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;{const Cn=yield me(Gt),pi=Ee.get(Cn);void 0===pi?Ee.set(Cn,[Gt]):pi.push(Gt)}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ri=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee={};var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee[me(Gt)]=Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),pr=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee={};var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee[yield me(Gt)]=Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),to=function(){var Ie=(0,Vn.Z)(function*(ve){const me=new Set;var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(ve);Ee=!(xt=yield Ge.next()).done;Ee=!1)me.add(xt.value)}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Ge.return())}finally{if(Me)throw Fe}}return me});return function(me){return Ie.apply(this,arguments)}}(),no=(Ie,ve,me)=>me?ka(Ie,ve,me):ua(Ie,ve),ua=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me=new Set;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const hr=Gt.value;!1===Me.has(hr)&&(yield hr,Me.add(hr))}}catch(hr){Ge=!0,xt=hr}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}var wi,Cn=!1,pi=!1;try{for(var er,Zi=Wn(ve);Cn=!(er=yield Xe(Zi.next())).done;Cn=!1){const hr=er.value;!1===Me.has(hr)&&(yield hr,Me.add(hr))}}catch(hr){pi=!0,wi=hr}finally{try{Cn&&null!=Zi.return&&(yield Xe(Zi.return()))}finally{if(pi)throw wi}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},ka=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=[];for(const pi of[Ie,ve]){var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(pi);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const wi=Cn.value;{let Zi=!1;for(const er of Fe)if(!0===me(wi,er)){Zi=!0;break}!1===Zi&&(yield wi,Fe.push(wi))}}}catch(wi){xt=!0,Pt=wi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},Ps=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=[];for(const pi of[Ie,ve]){var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(pi);Ge=!(Cn=yield Xe(Gt.next())).done;Ge=!1){const wi=Cn.value;{let Zi=!1;for(const er of Fe)if(!0===(yield Xe(me(wi,er)))){Zi=!0;break}!1===Zi&&(yield wi,Fe.push(wi))}}}catch(wi){xt=!0,Pt=wi}finally{try{Ge&&null!=Gt.return&&(yield Xe(Gt.return()))}finally{if(xt)throw Pt}}}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},Gs=(Ie,ve)=>1===ve.length?Pl(Ie,ve):ks(Ie,ve),Pl=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;!0===ve(Gt)&&(yield Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},ks=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;!0===ve(Cn,Me++)&&(yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Jf=(Ie,ve)=>1===ve.length?ku(Ie,ve):Jp(Ie,ve),ku=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(Ie);Me=!(Pt=yield Xe(xt.next())).done;Me=!1){const Gt=Pt.value;!0===(yield Xe(ve(Gt)))&&(yield Gt)}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield Xe(xt.return()))}finally{if(Fe)throw Ge}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Jp=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){let Me=0;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ie);Fe=!(Gt=yield Xe(Pt.next())).done;Fe=!1){const Cn=Gt.value;!0===(yield Xe(ve(Cn,Me++)))&&(yield Cn)}}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Xe(Pt.return()))}finally{if(Ge)throw xt}}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},Qf=(Ie,ve,me)=>me?js(Ie,ve,me):Qp(Ie,ve),Qp=(Ie,ve)=>{function Ee(){return Ee=lt(function*(){const Me=Ie[Symbol.asyncIterator](),Fe=ve[Symbol.asyncIterator]();for(;;){const[Ge,xt]=yield Xe(Promise.all([Me.next(),Fe.next()]));if(Ge.done||xt.done)break;yield[Ge.value,xt.value]}}),Ee.apply(this,arguments)}return new Ve(function me(){return Ee.apply(this,arguments)})},js=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=Ie[Symbol.asyncIterator](),Ge=ve[Symbol.asyncIterator]();for(;;){const[xt,Pt]=yield Xe(Promise.all([Fe.next(),Ge.next()]));if(xt.done||Pt.done)break;yield me(xt.value,Pt.value)}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},em=(Ie,ve,me)=>{function Me(){return Me=lt(function*(){const Fe=Ie[Symbol.asyncIterator](),Ge=ve[Symbol.asyncIterator]();for(;;){const xt=yield Xe(Promise.all([Fe.next(),Ge.next()])),Pt=xt[0],Gt=xt[1];if(Pt.done||Gt.done)break;yield me(Pt.value,Gt.value)}}),Me.apply(this,arguments)}return new Ve(function Ee(){return Me.apply(this,arguments)})},gd=(Ie,ve,me,Ee)=>{if(Ee){if(!me)throw new ReferenceError("TAccumulate function is undefined");return l_(Ie,ve,me,Ee)}return me?Nh(Ie,ve,me):Vh(Ie,ve)},Vh=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;Ee=Ee?me(Ee,Gt):Gt}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}if(void 0===Ee)throw new kt(yt.NoElements);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Nh=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){let Me=me;var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(ve);Fe=!(Gt=yield Pt.next()).done;Fe=!1)Me=Ee(Me,Gt.value)}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return Me});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),l_=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee,Me){let Fe=me;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(ve);Ge=!(Cn=yield Gt.next()).done;Ge=!1)Fe=Ee(Fe,Cn.value)}catch(pi){xt=!0,Pt=pi}finally{try{Ge&&null!=Gt.return&&(yield Gt.return())}finally{if(xt)throw Pt}}return Me(Fe)});return function(me,Ee,Me,Fe){return Ie.apply(this,arguments)}}(),Ds=(Ie,ve)=>{const me=Ie.dataFunc;switch(me.type){case 0:return{generator:()=>me.generator().then(Me=>{const Fe=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Fe[Ge]=ve(Me[Ge]);return Fe}),type:0};case 1:return{generator:()=>{const Me=me.generator(),Fe=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Fe[Ge]=Me[Ge].then(ve);return Fe},type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Fe=yield me.generator(),Ge=new Array(Fe.length);for(let xt=0;xt<Fe.length;xt++)Ge[xt]=Fe[xt].then(ve);return Ge});return function(){return Me.apply(this,arguments)}}(),type:2}}},u_=(Ie,ve)=>{const me=Ds(Ie,Ee=>{if(!ve(Ee))throw new Error(String(!1));return!0});switch(me.type){case 0:return me.generator().then(()=>!0,()=>!1);case 1:return Promise.all(me.generator()).then(()=>!0,()=>!1);case 2:return me.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},Xa=(Ie,ve)=>{const me=Ie.dataFunc;switch(me.type){case 0:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Fe=yield me.generator(),Ge=new Array(Fe.length);for(let xt=0;xt<Fe.length;xt++)Ge[xt]=ve(Fe[xt]);return Ge});return function(){return Me.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>me.generator().map(function(){var Fe=(0,Vn.Z)(function*(Ge){const xt=yield Ge;return yield ve(xt)});return function(Ge){return Fe.apply(this,arguments)}}()),type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){return(yield me.generator()).map(Ge=>Ge.then(ve))});return function(){return Me.apply(this,arguments)}}(),type:2}}},tm=(Ie,ve)=>{const me=Xa(Ie,function(){var Ee=(0,Vn.Z)(function*(Me){if(!1===(yield ve(Me)))throw new Error(String(!1));return!0});return function(Me){return Ee.apply(this,arguments)}}());switch(me.type){case 1:return Promise.all(me.generator()).then(()=>!0,()=>!1);case 2:return me.generator().then(Promise.all.bind(Promise)).then(()=>!0,()=>!1)}},fd=(Ie,ve)=>ve?Hh(Ie,ve):d_(Ie),d_=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;let Ee;switch(me.type){case 1:return Ee=me.generator(),0!==Ee.length;case 0:case 2:return Ee=yield me.generator(),0!==Ee.length}});return function(me){return Ie.apply(this,arguments)}}(),Hh=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Ds(ve,me);let Me;switch(Ee.type){case 0:return Me=yield Ee.generator(),Me.includes(!0);case 1:return Me=yield Promise.all(Ee.generator()),Me.includes(!0);case 2:return Me=yield Promise.all(yield Ee.generator()),Me.includes(!0)}});return function(me,Ee){return Ie.apply(this,arguments)}}(),eg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,me);let Me;switch(Ee.type){case 1:return Me=Ee.generator(),0!==Me.length&&new Promise((Ge,xt)=>{let Pt=0;for(const Gt of Me)Gt.then(Cn=>{Pt++,Cn?Ge(!0):Pt===Me.length&&Ge(!1)},xt)});case 2:return Me=yield Ee.generator(),0!==Promise.length&&(yield Promise.all(Me)).includes(!0)}});return function(me,Ee){return Ie.apply(this,arguments)}}(),$s=Ie=>{function me(){return me=lt(function*(){var Fe,Ee=!1,Me=!1;try{for(var xt,Ge=Wn(Ie);Ee=!(xt=yield Xe(Ge.next())).done;Ee=!1)yield xt.value}catch(Pt){Me=!0,Fe=Pt}finally{try{Ee&&null!=Ge.return&&(yield Xe(Ge.return()))}finally{if(Me)throw Fe}}}),me.apply(this,arguments)}return Sn(function ve(){return me.apply(this,arguments)})},es=function(){var Ie=(0,Vn.Z)(function*(ve){switch(ve.type){case 0:return yield ve.generator();case 1:return yield Promise.all(ve.generator());case 2:const me=yield ve.generator();return yield Promise.all(me)}});return function(me){return Ie.apply(this,arguments)}}(),Pc=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee;Ee=me?Ds(ve,me):ve.dataFunc;const Me=yield es(Ee);if(0===Me.length)throw new kt(yt.NoElements);let Fe=0;for(const Ge of Me)Fe+=Ge;return Fe/Me.length});return function(me,Ee){return Ie.apply(this,arguments)}}(),tg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,me),Me=yield es(Ee);if(0===Me.length)throw new kt(yt.NoElements);let Fe=0;for(const Ge of Me)Fe+=Ge;return Fe/Me.length});return function(me,Ee){return Ie.apply(this,arguments)}}(),ng=(Ie,ve)=>{if(ve<1)throw new bt("index");let me;switch(Ie.dataFunc.type){case 1:const Ee=Ie.dataFunc.generator;me={type:1,generator:()=>{const Ge=[];let xt=[];for(const Pt of Ee())xt.push(Pt),xt.length===ve&&(Ge.push(Promise.all(xt)),xt=[]);return xt.length&&Ge.push(Promise.all(xt)),Ge}};break;case 2:const Me=Ie.dataFunc.generator;me={type:2,generator:function(){var Ge=(0,Vn.Z)(function*(){const xt=[];let Pt=[];for(const Gt of yield Me())Pt.push(Gt),Pt.length===ve&&(xt.push(Promise.all(Pt)),Pt=[]);return Pt.length&&xt.push(Promise.all(Pt)),xt});return function(){return Ge.apply(this,arguments)}}()};break;case 0:const Fe=Ie.dataFunc.generator;me={type:0,generator:function(){var Ge=(0,Vn.Z)(function*(){const xt=[];let Pt=[];for(const Gt of yield Fe())Pt.push(Gt),Pt.length===ve&&(xt.push(Pt),Pt=[]);return Pt.length&&xt.push(Pt),xt});return function(){return Ge.apply(this,arguments)}}()}}return new dt(me)},ig=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const[Me,Fe]=yield Promise.all([Ie.toArray(),ve.toArray()]);return[...Me,...Fe]});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},nm=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee=gn){let Me;switch(Me=Ds(ve,Ee?Fe=>Ee(me,Fe):Fe=>Fe===me),Me.type){case 0:return(yield Me.generator()).some(Ge=>Ge);case 1:return(yield Promise.all(Me.generator())).some(Ge=>Ge);case 2:return(yield Promise.all(yield Me.generator())).some(Ge=>Ge)}});return function(me,Ee){return Ie.apply(this,arguments)}}(),zh=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){const Me=Xa(ve,Fe=>Ee(me,Fe));switch(Me.type){case 1:return(yield Promise.all(Me.generator())).some(Ge=>Ge);case 2:return(yield Promise.all(yield Me.generator())).some(Ge=>Ge)}});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),im=(Ie,ve)=>ve?rm(Ie,ve):Wh(Ie),Wh=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:case 2:return(yield ve.toArray()).length;case 1:return me.generator().length}});return function(me){return Ie.apply(this,arguments)}}(),rm=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield ve.toArray();let Me=0;for(let Fe=0;Fe<Ee.length;Fe++)!0===me(Ee[Fe])&&Me++;return Me});return function(me,Ee){return Ie.apply(this,arguments)}}(),c_=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,me);let Me;switch(Ee.type){case 1:Me=Promise.all(Ee.generator());break;case 2:Me=Promise.all(yield Ee.generator())}let Fe=0;for(const Ge of yield Me)Ge&&Fe++;return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),Rs=(Ie,ve)=>{const me=Ie.dataFunc,Ee=ve instanceof Promise;let Me;switch(me.type){case 0:Me={generator:()=>me.generator().then(Ge=>Ge.length?Ge:Ee?ve.then(xt=>[xt]):[ve]),type:me.type};break;case 1:Me={generator:()=>{const Ge=me.generator();return Ge.length?Ge:Ee?[ve]:[Promise.resolve(ve)]},type:me.type};break;case 2:Me={generator:function(){var Ge=(0,Vn.Z)(function*(){const xt=yield me.generator();return xt.length?xt:Ee?[ve]:[Promise.resolve(ve)]});return function(){return Ge.apply(this,arguments)}}(),type:me.type}}return new dt(Me)},rg=(Ie,ve=gn)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=[];for(const Fe of yield Ie.toArray())Me.find(xt=>ve(xt,Fe))||Me.push(Fe);return Me});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},kc=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=[];e:for(const Fe of yield Ie.toArray()){for(const Ge of Me)if(yield ve(Ge,Fe))continue e;Me.push(Fe)}return Me});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},og=(Ie,ve)=>new dt(Ds(Ie,me=>(ve(me),me))),os=(Ie,ve)=>{const me=Xa(Ie,function(){var Ee=(0,Vn.Z)(function*(Me){return yield ve(Me),Me});return function(Me){return Ee.apply(this,arguments)}}());return new dt(me)},Ud=function(){var Ie=(0,Vn.Z)(function*(ve,me){if(me<0)throw new bt("index");const Ee=ve.dataFunc;switch(Ee.type){case 0:{const Me=yield Ee.generator();if(me>=Me.length)throw new bt("index");return Me[me]}case 1:{const Me=Ee.generator();if(me>=Me.length)throw new bt("index");return yield Me[me]}case 2:{const Me=yield Ee.generator();if(me>=Me.length)throw new bt("index");return yield Me[me]}}});return function(me,Ee){return Ie.apply(this,arguments)}}(),Rc=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=ve.dataFunc;switch(Ee.type){case 0:{const Me=yield Ee.generator();return me>=Me.length?null:Me[me]}case 1:{const Me=Ee.generator();return me>=Me.length?null:yield Me[me]}case 2:{const Me=yield Ee.generator();return me>=Me.length?null:yield Me[me]}}});return function(me,Ee){return Ie.apply(this,arguments)}}(),ag=(Ie,ve,me=gn)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const[Fe,Ge]=yield Promise.all([Ie.toArray(),ve.toArray()]),xt=[];for(const Pt of Fe){let Gt=!1;for(let Cn=0;Cn<Ge.length;Cn++)if(!0===me(Pt,Ge[Cn])){Gt=!0;break}!1===Gt&&xt.push(Pt)}return xt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},h_=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const[Fe,Ge]=yield Promise.all([Ie.toArray(),ve.toArray()]),xt=[];for(const Pt of Fe){let Gt=!1;for(let Cn=0;Cn<Ge.length;Cn++){const pi=Ge[Cn];if(!0===(yield me(Pt,pi))){Gt=!0;break}}!1===Gt&&xt.push(Pt)}return xt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},Ys=Ie=>es(Ie.dataFunc),p_=(Ie,ve)=>ve?g_(Ie,ve):sg(Ie),sg=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:{const Ee=yield me.generator();if(0===Ee.length)throw new kt(yt.NoElements);return Ee[0]}case 1:{const Ee=me.generator();if(0===Ee.length)throw new kt(yt.NoElements);return yield Ee[0]}case 2:{const Ee=yield me.generator();if(0===Ee.length)throw new kt(yt.NoElements);return yield Ee[0]}}});return function(me){return Ie.apply(this,arguments)}}(),g_=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);for(const Me of Ee)if(!0===me(Me))return Me;throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),na=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);for(const Me of Ee)if(!0===(yield me(Me)))return Me;throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),om=(Ie,ve)=>ve?ug(Ie,ve):lg(Ie),lg=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:{const Ee=yield me.generator();return 0===Ee.length?null:Ee[0]}case 1:{const Ee=me.generator();return 0===Ee.length?null:yield Ee[0]}case 2:{const Ee=yield me.generator();return 0===Ee.length?null:yield Ee[0]}}});return function(me){return Ie.apply(this,arguments)}}(),ug=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);for(const Me of Ee)if(!0===me(Me))return Me;return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),Uh=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);for(const Me of Ee)if(!0===(yield me(Me)))return Me;return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),f_=(Ie,ve,me)=>me?m_(Ie,ve,me):Zd(Ie,ve),Zd=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me={};for(const Ge of yield Ie.toArray()){const xt=ve(Ge),Pt=Me[xt];Pt?Pt.push(Ge):Me[xt]=new It(xt,Ge)}const Fe=new Array;for(const Ge in Me)Fe.push(Me[Ge]);return Fe});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},m_=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=new Array;for(const xt of yield Ie.toArray()){const Pt=ve(xt);let Gt=!1;for(let Cn=0;Cn<Fe.length;Cn++){const pi=Fe[Cn];if(me(pi.key,Pt)){pi.push(xt),Gt=!0;break}}!1===Gt&&Fe.push(new It(Pt,xt))}const Ge=new Array;for(const xt of Fe)Ge.push(xt);return Ge});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},am=(Ie,ve,me)=>me?Zh(Ie,ve,me):Kh(Ie,ve),Zh=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=Xa(Ie,function(){var Gt=(0,Vn.Z)(function*(Cn){return[yield ve(Cn),Cn]});return function(Cn){return Gt.apply(this,arguments)}}());let Ge;switch(Fe.type){case 1:Ge=yield Promise.all(Fe.generator());break;case 2:Ge=yield Promise.all(yield Fe.generator())}const xt=new Array;for(const[Gt,Cn]of Ge){let pi=!1;for(let wi=0;wi<xt.length;wi++){const Zi=xt[wi];if(!0===(yield me(Zi.key,Gt))){Zi.push(Cn),pi=!0;break}}!1===pi&&xt.push(new It(Gt,Cn))}const Pt=new Array;for(const Gt of xt)Pt.push(Gt);return Pt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},Kh=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=Xa(Ie,function(){var Pt=(0,Vn.Z)(function*(Gt){return[yield ve(Gt),Gt]});return function(Gt){return Pt.apply(this,arguments)}}());let Fe;switch(Me.type){case 1:Fe=yield Promise.all(Me.generator());break;case 2:Fe=yield Promise.all(yield Me.generator())}const Ge={};for(const[Pt,Gt]of Fe){const Cn=Ge[Pt];Cn?Cn.push(Gt):Ge[Pt]=new It(Pt,Gt)}const xt=new Array;for(const Pt in Ge)xt.push(Ge[Pt]);return xt});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},dg=(Ie,ve,me,Ee)=>Ee?Ru(Ie,ve,me,Ee):Gh(Ie,ve,me),Ru=(Ie,ve,me,Ee)=>{const Me=function(){var Fe=(0,Vn.Z)(function*(){const Ge=new Array;var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(Ie);xt=!(pi=yield Cn.next()).done;xt=!1){const Zi=pi.value;{const er=ve(Zi);let hr=!1;for(let Dr=0;Dr<Ge.length;Dr++){const ao=Ge[Dr];if(Ee(ao.key,er)){ao.push(me(Zi)),hr=!0;break}}if(!1===hr){const Dr=me(Zi);Ge.push(new It(er,Dr))}}}}catch(Zi){Pt=!0,Gt=Zi}finally{try{xt&&null!=Cn.return&&(yield Cn.return())}finally{if(Pt)throw Gt}}const wi=new Array;for(const Zi of Ge)wi.push(Zi);return wi});return function(){return Fe.apply(this,arguments)}}();return new dt({generator:Me,type:0})},Gh=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe={};for(const xt of yield Ie.toArray()){const Pt=ve(xt),Gt=Fe[Pt],Cn=me(xt);Gt?Gt.push(Cn):Fe[Pt]=new It(Pt,Cn)}const Ge=new Array;for(const xt in Fe)Ge.push(Fe[xt]);return Ge});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},Lc=(Ie,ve,me,Ee,Me,Fe)=>{const Ge=Fe?cg(Ie,ve,me,Ee,Me,Fe):jh(Ie,ve,me,Ee,Me);return new dt({generator:Ge,type:0})},cg=(Ie,ve,me,Ee,Me,Fe)=>(0,Vn.Z)(function*(){const Ge=[];var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve);xt=!(pi=yield Cn.next()).done;xt=!1){const Zi=pi.value;{const er=Ee(Zi),hr=Ge.find(Dr=>Fe(Dr.key,er));hr?hr.values.push(Zi):Ge.push({key:er,values:[Zi]})}}}catch(Zi){Pt=!0,Gt=Zi}finally{try{xt&&null!=Cn.return&&(yield Cn.return())}finally{if(Pt)throw Gt}}return(yield Ie.toArray()).map(Zi=>{var er;const hr=me(Zi),Dr=null!==(er=Ge.find(ao=>Fe(ao.key,hr)))&&void 0!==er?er:{key:hr,values:[]};return Me(Zi,Dr.values)})}),jh=(Ie,ve,me,Ee,Me)=>(0,Vn.Z)(function*(){const Fe=new Map;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(ve);Ge=!(Cn=yield Gt.next()).done;Ge=!1){const wi=Cn.value;{const Zi=Ee(wi),er=Fe.get(Zi);er?er.push(wi):Fe.set(Zi,[wi])}}}catch(wi){xt=!0,Pt=wi}finally{try{Ge&&null!=Gt.return&&(yield Gt.return())}finally{if(xt)throw Pt}}return(yield Ie.toArray()).map(wi=>{var Zi;const er=me(wi),hr=null!==(Zi=Fe.get(er))&&void 0!==Zi?Zi:[];return Me(wi,hr)})}),sm=(Ie,ve,me,Ee,Me,Fe)=>{const Ge=Fe?md(Ie,ve,me,Ee,Me,Fe):__(Ie,ve,me,Ee,Me);return new dt({generator:Ge,type:0})},md=(Ie,ve,me,Ee,Me,Fe)=>(0,Vn.Z)(function*(){const Ge=[];var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve);xt=!(pi=yield Cn.next()).done;xt=!1){const er=pi.value;{const hr=yield Ee(er),Dr=Ge.find(ao=>Fe(ao.key,hr));Dr?Dr.values.push(er):Ge.push({key:hr,values:[er]})}}}catch(er){Pt=!0,Gt=er}finally{try{xt&&null!=Cn.return&&(yield Cn.return())}finally{if(Pt)throw Gt}}const Zi=(yield Ie.toArray()).map(function(){var er=(0,Vn.Z)(function*(hr){var Dr;const ao=yield me(hr),fo=null!==(Dr=Ge.find(Lo=>Fe(Lo.key,ao)))&&void 0!==Dr?Dr:{key:ao,values:[]};return Me(hr,fo.values)});return function(hr){return er.apply(this,arguments)}}());return yield Promise.all(Zi)}),__=(Ie,ve,me,Ee,Me)=>(0,Vn.Z)(function*(){const Fe=new Map;var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(ve);Ge=!(Cn=yield Gt.next()).done;Ge=!1){const Zi=Cn.value;{const er=yield Ee(Zi),hr=Fe.get(er);hr?hr.push(Zi):Fe.set(er,[Zi])}}}catch(Zi){xt=!0,Pt=Zi}finally{try{Ge&&null!=Gt.return&&(yield Gt.return())}finally{if(xt)throw Pt}}const wi=(yield Ie.toArray()).map(function(){var Zi=(0,Vn.Z)(function*(er){var hr;const Dr=yield me(er),ao=null!==(hr=Fe.get(Dr))&&void 0!==hr?hr:[];return Me(er,ao)});return function(er){return Zi.apply(this,arguments)}}());return yield Promise.all(wi)}),hg=(Ie,ve,me=gn)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=yield Ie.distinct(me).toArray();if(0===Fe.length)return[];const Ge=yield ve.toArray(),xt=new Array;for(let Pt=0;Pt<Fe.length;Pt++){const Gt=Fe[Pt];for(let Cn=0;Cn<Ge.length;Cn++)if(!0===me(Gt,Ge[Cn])){xt.push(Gt);break}}return xt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},v_=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=yield Ie.distinctAsync(me).toArray();if(0===Fe.length)return[];const Ge=yield ve.toArray(),xt=new Array;for(let Pt=0;Pt<Fe.length;Pt++){const Gt=Fe[Pt];for(let Cn=0;Cn<Ge.length;Cn++){const pi=Ge[Cn];if(!0===(yield me(Gt,pi))){xt.push(Gt);break}}}return xt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},lm=(Ie,ve,me,Ee,Me,Fe=gn)=>{const Ge=function(){var xt=(0,Vn.Z)(function*(){const[Pt,Gt]=yield Promise.all([ve.toArray(),Ie.toArray()]),Cn=new Array;for(const pi of Gt){const wi=me(pi);for(const Zi of Pt){const er=Ee(Zi);!0===Fe(wi,er)&&Cn.push(Me(pi,Zi))}}return Cn});return function(){return xt.apply(this,arguments)}}();return new dt({generator:Ge,type:0})},$h=(Ie,ve)=>ve?Yh(Ie,ve):xl(Ie),xl=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:{const Ee=yield me.generator();if(0===Ee.length)throw new kt(yt.NoElements);return Ee[Ee.length-1]}case 1:{const Ee=me.generator();if(0===Ee.length)throw new kt(yt.NoElements);return yield Ee[Ee.length-1]}case 2:{const Ee=yield me.generator();if(0===Ee.length)throw new kt(yt.NoElements);return yield Ee[Ee.length-1]}}});return function(me){return Ie.apply(this,arguments)}}(),Yh=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=ve.dataFunc;switch(Ee.type){case 0:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=Me[Fe];if(me(Ge))return Ge}break}case 1:{const Me=Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(me(Ge))return Ge}break}case 2:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(me(Ge))return Ge}break}}throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),pg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=ve.dataFunc;switch(Ee.type){case 0:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=Me[Fe];if(!0===(yield me(Ge)))return Ge}break}case 1:{const Me=Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(!0===(yield me(Ge)))return Ge}break}case 2:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(!0===(yield me(Ge)))return Ge}break}}throw new kt(yt.NoMatch)});return function(me,Ee){return Ie.apply(this,arguments)}}(),um=(Ie,ve)=>ve?Xh(Ie,ve):gg(Ie),gg=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:{const Ee=yield me.generator();return 0===Ee.length?null:Ee[Ee.length-1]}case 1:{const Ee=me.generator();return 0===Ee.length?null:yield Ee[Ee.length-1]}case 2:{const Ee=yield me.generator();return 0===Ee.length?null:yield Ee[Ee.length-1]}}});return function(me){return Ie.apply(this,arguments)}}(),Xh=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=ve.dataFunc;switch(Ee.type){case 0:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=Me[Fe];if(me(Ge))return Ge}break}case 1:{const Me=Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(me(Ge))return Ge}break}case 2:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(me(Ge))return Ge}break}}return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),So=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=ve.dataFunc;switch(Ee.type){case 0:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=Me[Fe];if(!0===(yield me(Ge)))return Ge}break}case 1:{const Me=Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(!0===(yield me(Ge)))return Ge}break}case 2:{const Me=yield Ee.generator();for(let Fe=Me.length-1;Fe>=0;Fe--){const Ge=yield Me[Fe];if(!0===(yield me(Ge)))return Ge}break}}return null});return function(me,Ee){return Ie.apply(this,arguments)}}(),Xs=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee;Ee=me?Ds(ve,me):ve.dataFunc;const Me=yield es(Ee);if(0===Me.length)throw new kt(yt.NoElements);return Math.max.apply(null,Me)});return function(me,Ee){return Ie.apply(this,arguments)}}(),qh=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,me),Me=yield es(Ee);if(0===Me.length)throw new kt(yt.NoElements);return Math.max.apply(null,Me)});return function(me,Ee){return Ie.apply(this,arguments)}}(),fg=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee;Ee=me?Ds(ve,me):ve.dataFunc;const Me=yield es(Ee);if(0===Me.length)throw new kt(yt.NoElements);return Math.min.apply(null,Me)});return function(me,Ee){return Ie.apply(this,arguments)}}(),dm=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,me),Me=yield es(Ee);if(0===Me.length)throw new kt(yt.NoElements);return Math.min.apply(null,Me)});return function(me,Ee){return Ie.apply(this,arguments)}}(),mg=(Ie,ve)=>{const me="string"==typeof ve?Me=>[typeof Me===ve,Me]:Me=>[Me instanceof ve,Me],Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=Ds(Ie,me),Ge=yield es(Fe),xt=[];for(const[Pt,Gt]of Ge)Pt&&xt.push(Gt);return xt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},Kd=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;{const Cn=yield me(Gt),pi=Ee.get(Cn);pi?pi.push(Gt):Ee.set(Cn,[Gt])}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function Jh(){return Jh=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(Kd(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),Jh.apply(this,arguments)}const _g=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;for(const Me of ve){const Fe=yield me(Me),Ge=Ee.get(Fe);Ge?Ge.push(Me):Ee.set(Fe,[Me])}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function vg(Ie,ve,me,Ee){return Bc.apply(this,arguments)}function Bc(){return Bc=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(_g(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),Bc.apply(this,arguments)}const yg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map;var Ge,Me=!1,Fe=!1;try{for(var Pt,xt=Wn(ve);Me=!(Pt=yield xt.next()).done;Me=!1){const Gt=Pt.value;{const Cn=me(Gt),pi=Ee.get(Cn);pi?pi.push(Gt):Ee.set(Cn,[Gt])}}}catch(Gt){Fe=!0,Ge=Gt}finally{try{Me&&null!=xt.return&&(yield xt.return())}finally{if(Fe)throw Ge}}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}();function il(){return il=lt(function*(Ie,ve,me,Ee){const Me=yield Xe(yg(Ie,ve)),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),il.apply(this,arguments)}const yn=(Ie,ve)=>{const me=new Map;for(const Ee of Ie){const Me=ve(Ee),Fe=me.get(Me);Fe?Fe.push(Ee):me.set(Me,[Ee])}return me};function Qh(Ie,ve,me,Ee){return _d.apply(this,arguments)}function _d(){return _d=lt(function*(Ie,ve,me,Ee){const Me=yn(Ie,ve),Fe=[...Me.keys()].sort(Ee||void 0);if(me)for(let Ge=0;Ge<Fe.length;Ge++)yield Me.get(Fe[Ge]);else for(let Ge=Fe.length-1;Ge>=0;Ge--)yield Me.get(Fe[Ge])}),_d.apply(this,arguments)}class Ls extends dt{constructor(ve){super({generator:function(){var me=(0,Vn.Z)(function*(){const Ee=ve(),Me=[];var xt,Fe=!1,Ge=!1;try{for(var Gt,Pt=Wn(Ee);Fe=!(Gt=yield Pt.next()).done;Fe=!1)Me.push(...Gt.value)}catch(Cn){Ge=!0,xt=Cn}finally{try{Fe&&null!=Pt.return&&(yield Pt.return())}finally{if(Ge)throw xt}}return Me});return function(){return me.apply(this,arguments)}}(),type:0}),this.orderedPairs=ve}static generateAsync(ve,me,Ee,Me){let Fe;return Fe=ve instanceof Ls?function(){var Ge=lt(function*(){var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve.orderedPairs());xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const wi=pi.value;yield*Un(Wn(vg(wi,me,Ee,Me)))}}catch(wi){Pt=!0,Gt=wi}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}});return function(){return Ge.apply(this,arguments)}}():()=>function cm(Ie,ve,me,Ee){return Jh.apply(this,arguments)}(ve,me,Ee,Me),new Ls(Fe)}static generate(ve,me,Ee,Me){let Fe;return Fe=ve instanceof Ls?function(){var Ge=lt(function*(){var Gt,xt=!1,Pt=!1;try{for(var pi,Cn=Wn(ve.orderedPairs());xt=!(pi=yield Xe(Cn.next())).done;xt=!1){const wi=pi.value;yield*Un(Wn(Qh(wi,me,Ee,Me)))}}catch(wi){Pt=!0,Gt=wi}finally{try{xt&&null!=Cn.return&&(yield Xe(Cn.return()))}finally{if(Pt)throw Gt}}});return function(){return Ge.apply(this,arguments)}}():()=>function Va(Ie,ve,me,Ee){return il.apply(this,arguments)}(ve,me,Ee,Me),new Ls(Fe)}thenBy(ve,me){return Ls.generate(this,ve,!0,me)}thenByAsync(ve,me){return Ls.generateAsync(this,ve,!0,me)}thenByDescending(ve,me){return Ls.generate(this,ve,!1,me)}thenByDescendingAsync(ve,me){return Ls.generateAsync(this,ve,!1,me)}}const Bs=(Ie,ve,me)=>Ls.generate(Ie,ve,!0,me),hm=(Ie,ve,me)=>Ls.generateAsync(Ie,ve,!0,me),Cg=(Ie,ve,me)=>Ls.generate(Ie,ve,!1,me),vd=(Ie,ve,me)=>Ls.generateAsync(Ie,ve,!1,me),y_=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Ds(ve,xt=>[me(xt),xt]),Me=yield es(Ee),Fe=[],Ge=[];for(const[xt,Pt]of Me)xt?Ge.push(Pt):Fe.push(Pt);return[Ge,Fe]});return function(me,Ee){return Ie.apply(this,arguments)}}(),xg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,function(){var xt=(0,Vn.Z)(function*(Pt){return[yield me(Pt),Pt]});return function(Pt){return xt.apply(this,arguments)}}()),Me=yield es(Ee),Fe=[],Ge=[];for(const[xt,Pt]of Me)xt?Ge.push(Pt):Fe.push(Pt);return[Ge,Fe]});return function(me,Ee){return Ie.apply(this,arguments)}}(),yd=Ie=>{const ve=Ie.dataFunc;switch(ve.type){case 1:return new dt({generator:()=>ve.generator().reverse(),type:ve.type});case 2:{const me=function(){var Ee=(0,Vn.Z)(function*(){return(yield ve.generator()).reverse()});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:ve.type})}case 0:{const me=function(){var Ee=(0,Vn.Z)(function*(){return(yield ve.generator()).reverse()});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:ve.type})}}},bl=(Ie,ve)=>{const me=Ie.dataFunc;switch(me.type){case 0:return{generator:()=>me.generator().then(Me=>{const Fe=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Fe[Ge]=ve(Me[Ge],Ge);return Fe}),type:0};case 1:return{generator:()=>{const Me=me.generator(),Fe=new Array(Me.length);for(let Ge=0;Ge<Me.length;Ge++)Fe[Ge]=Me[Ge].then(xt=>ve(xt,Ge));return Fe},type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Fe=yield me.generator(),Ge=new Array(Fe.length);for(let xt=0;xt<Fe.length;xt++)Ge[xt]=Fe[xt].then(Pt=>ve(Pt,xt));return Ge});return function(){return Me.apply(this,arguments)}}(),type:2}}},Fc=(Ie,ve)=>new dt("function"==typeof ve?1===ve.length?Ds(Ie,ve):bl(Ie,ve):Ds(Ie,me=>me[ve])),Cd=(Ie,ve)=>{const me=Ie.dataFunc;switch(me.type){case 0:return{generator:function(){var Me=(0,Vn.Z)(function*(){const Fe=yield me.generator(),Ge=new Array(Fe.length);for(let xt=0;xt<Fe.length;xt++)Ge[xt]=ve(Fe[xt],xt);return Ge});return function(){return Me.apply(this,arguments)}}(),type:2};case 1:return{generator:()=>me.generator().map((Me,Fe)=>Me.then(Ge=>ve(Ge,Fe))),type:1};case 2:return{generator:function(){var Me=(0,Vn.Z)(function*(){return(yield me.generator()).map((Ge,xt)=>Ge.then(Pt=>ve(Pt,xt)))});return function(){return Me.apply(this,arguments)}}(),type:2}}},Lu=(Ie,ve)=>{let me;return me="function"==typeof ve?1===ve.length?Xa(Ie,ve):Cd(Ie,ve):Xa(Ie,Ee=>Ee[ve]),new dt(me)},ep=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){let Me;Me="function"==typeof ve?1===ve.length?Ds(Ie,ve):bl(Ie,ve):Ds(Ie,Ge=>Ge[ve]);const Fe=[];switch(Me.type){case 0:for(const Ge of yield Me.generator())for(const xt of Ge)Fe.push(xt);break;case 1:for(const Ge of Me.generator())for(const xt of yield Ge)Fe.push(xt);break;case 2:for(const Ge of yield Me.generator())for(const xt of yield Ge)Fe.push(xt)}return Fe});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},C_=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){let Me;Me=1===ve.length?Xa(Ie,ve):Cd(Ie,ve);const Fe=[];switch(Me.type){case 1:for(const Ge of Me.generator())for(const xt of yield Ge)Fe.push(xt);break;case 2:for(const Ge of yield Me.generator())for(const xt of yield Ge)Fe.push(xt)}return Fe});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},x_=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee=gn){const Me=yield ve.toArray(),Fe=yield me.toArray();if(Me.length!==Fe.length)return!1;for(let Ge=0;Ge<Me.length;Ge++)if(!1===Ee(Me[Ge],Fe[Ge]))return!1;return!0});return function(me,Ee){return Ie.apply(this,arguments)}}(),Vc=function(){var Ie=(0,Vn.Z)(function*(ve,me,Ee){const Me=yield ve.toArray(),Fe=yield me.toArray();if(Me.length!==Fe.length)return!1;for(let Ge=0;Ge<Me.length;Ge++){const xt=Me[Ge],Pt=Fe[Ge];if(!1===(yield Ee(xt,Pt)))return!1}return!0});return function(me,Ee,Me){return Ie.apply(this,arguments)}}(),bg=(Ie,ve)=>ve?Eg(Ie,ve):wg(Ie),wg=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:{const Ee=yield me.generator();if(Ee.length>1)throw new kt(yt.MoreThanOneElement);if(0===Ee.length)throw new kt(yt.NoElements);return Ee[0]}case 1:{const Ee=me.generator();if(Ee.length>1)throw new kt(yt.MoreThanOneElement);if(0===Ee.length)throw new kt(yt.NoElements);return Ee[0]}case 2:{const Ee=yield me.generator();if(Ee.length>1)throw new kt(yt.MoreThanOneElement);if(0===Ee.length)throw new kt(yt.NoElements);return yield Ee[0]}}});return function(me){return Ie.apply(this,arguments)}}(),Eg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);let Me=!1,Fe=null;for(const Ge of Ee)if(me(Ge)){if(!0===Me)throw new kt(yt.MoreThanOneMatchingElement);Me=!0,Fe=Ge}if(!1===Me)throw new kt(yt.NoMatch);return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),Nc=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);let Me=!1,Fe=null;for(const Ge of Ee)if(!0===(yield me(Ge))){if(!0===Me)throw new kt(yt.MoreThanOneMatchingElement);Me=!0,Fe=Ge}if(!1===Me)throw new kt(yt.NoMatch);return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),tp=(Ie,ve)=>ve?np(Ie,ve):Hc(Ie),Hc=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc;switch(me.type){case 0:{const Ee=yield me.generator();if(Ee.length>1)throw new kt(yt.MoreThanOneElement);return 0===Ee.length?null:Ee[0]}case 1:{const Ee=me.generator();if(Ee.length>1)throw new kt(yt.MoreThanOneElement);return 0===Ee.length?null:Ee[0]}case 2:{const Ee=yield me.generator();if(Ee.length>1)throw new kt(yt.MoreThanOneElement);return 0===Ee.length?null:yield Ee[0]}}});return function(me){return Ie.apply(this,arguments)}}(),np=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);let Me=!1,Fe=null;for(const Ge of Ee)if(me(Ge)){if(!0===Me)throw new kt(yt.MoreThanOneElement);Me=!0,Fe=Ge}return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),Sg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=yield Ys(ve);let Me=!1,Fe=null;for(const Ge of Ee)if(!0===(yield me(Ge))){if(!0===Me)throw new kt(yt.MoreThanOneElement);Me=!0,Fe=Ge}return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),xd=(Ie,ve)=>{const me=Ie.dataFunc;switch(me.type){case 0:{const Ee=function(){var Me=(0,Vn.Z)(function*(){return(yield me.generator()).slice(ve)});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})}case 1:return new dt({generator:()=>me.generator().slice(ve),type:1});case 2:{const Me={generator:function(){var Fe=(0,Vn.Z)(function*(){return(yield me.generator()).slice(ve)});return function(){return Fe.apply(this,arguments)}}(),type:2};return new dt(Me)}}},pm=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=yield Ie.toArray();let Fe=0;for(;Fe<Me.length&&!1!==ve(Me[Fe],Fe);Fe++);const Ge=[];for(;Fe<Me.length;Fe++)Ge.push(Me[Fe]);return Ge});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},b_=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=yield Ie.toArray();let Fe=0;for(;Fe<Me.length;Fe++){const xt=Me[Fe];if(!1===(yield ve(xt,Fe)))break}const Ge=[];for(;Fe<Me.length;Fe++)Ge.push(Me[Fe]);return Ge});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},Og=(Ie,ve)=>ve?fm(Ie,ve):gm(Ie),gm=function(){var Ie=(0,Vn.Z)(function*(ve){let me=0;for(const Ee of yield ve.toArray())me+=Ee;return me});return function(me){return Ie.apply(this,arguments)}}(),fm=function(){var Ie=(0,Vn.Z)(function*(ve,me){let Ee=0;for(const Me of yield ve.toArray())Ee+=me(Me);return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),ru=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,me),Me=yield es(Ee);let Fe=0;for(const Ge of Me)Fe+=Ge;return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),Gd=(Ie,ve)=>{const me=ve>0?ve:0,Ee=Ie.dataFunc;switch(Ee.type){case 1:return new dt({generator:()=>Ee.generator().splice(0,me),type:1});case 2:const Fe=()=>Ee.generator().then(xt=>xt.splice(0,me));return new dt({generator:Fe,type:2});default:const Ge=()=>Ee.generator().then(xt=>xt.splice(0,me));return new dt({generator:Ge,type:0})}},Ky=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=yield Ie.toArray(),Fe=new Array;if(1===ve.length)for(const Ge of Me){if(!0!==ve(Ge))break;Fe.push(Ge)}else for(let Ge=0;Ge<Me.length;Ge++){const xt=Me[Ge];if(!0!==ve(xt,Ge))break;Fe.push(xt)}return Fe});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},Dg=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=yield Ie.toArray(),Fe=new Array;if(1===ve.length){const Ge=ve;for(const xt of Me){if(!0!==(yield Ge(xt)))break;Fe.push(xt)}}else for(let Ge=0;Ge<Me.length;Ge++){const xt=Me[Ge];if(!0!==(yield ve(xt,Ge)))break;Fe.push(xt)}return Fe});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},mm=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map,Me=Ds(ve,Ge=>[me(Ge),Ge]),Fe=yield es(Me);for(const[Ge,xt]of Fe){const Pt=Ee.get(Ge);void 0===Pt?Ee.set(Ge,[xt]):Pt.push(xt)}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Tg=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=new Map,Me=Xa(ve,function(){var Ge=(0,Vn.Z)(function*(xt){return[yield me(xt),xt]});return function(xt){return Ge.apply(this,arguments)}}()),Fe=yield es(Me);for(const[Ge,xt]of Fe){const Pt=Ee.get(Ge);void 0===Pt?Ee.set(Ge,[xt]):Pt.push(xt)}return Ee});return function(me,Ee){return Ie.apply(this,arguments)}}(),Bu=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=ve.dataFunc,Me=yield es(Ee),Fe={};for(const Ge of Me)Fe[me(Ge)]=Ge;return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),zc=function(){var Ie=(0,Vn.Z)(function*(ve,me){const Ee=Xa(ve,function(){var Ge=(0,Vn.Z)(function*(xt){return[yield me(xt),xt]});return function(xt){return Ge.apply(this,arguments)}}()),Me=yield es(Ee),Fe={};for(const[Ge,xt]of Me)Fe[Ge]=xt;return Fe});return function(me,Ee){return Ie.apply(this,arguments)}}(),Ig=function(){var Ie=(0,Vn.Z)(function*(ve){const me=ve.dataFunc,Ee=yield es(me);return new Set(Ee)});return function(me){return Ie.apply(this,arguments)}}(),ip=(Ie,ve,me)=>me?Wc(Ie,ve,me):jd(Ie,ve),jd=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=new Set,Fe=ve.toArray();var Pt,Ge=!1,xt=!1;try{for(var Cn,Gt=Wn(Ie);Ge=!(Cn=yield Gt.next()).done;Ge=!1){const wi=Cn.value;!1===Me.has(wi)&&Me.add(wi)}}catch(wi){xt=!0,Pt=wi}finally{try{Ge&&null!=Gt.return&&(yield Gt.return())}finally{if(xt)throw Pt}}const pi=yield Fe;for(const wi of pi)!1===Me.has(wi)&&Me.add(wi);return[...Me.keys()]});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},Wc=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=[],Ge=yield Promise.all([Ie.toArray(),ve.toArray()]);for(const xt of Ge)for(const Pt of xt){let Gt=!1;for(const Cn of Fe)if(!0===me(Pt,Cn)){Gt=!0;break}!1===Gt&&Fe.push(Pt)}return Fe});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},rp=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const Fe=[],Ge=yield Promise.all([Ie.toArray(),ve.toArray()]);for(const xt of Ge)for(const Pt of xt){let Gt=!1;for(const Cn of Fe)if(!0===(yield me(Pt,Cn))){Gt=!0;break}!1===Gt&&Fe.push(Pt)}return Fe});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},kl=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){return(yield Ie.toArray()).filter(ve)});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},Rl=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const Me=Cd(Ie,function(){var xt=(0,Vn.Z)(function*(Pt,Gt){return[yield ve(Pt,Gt),Pt]});return function(Pt,Gt){return xt.apply(this,arguments)}}()),Fe=yield es(Me),Ge=[];for(const[xt,Pt]of Fe)xt&&Ge.push(Pt);return Ge});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},Uc=(Ie,ve,me)=>me?op(Ie,ve,me):Mg(Ie,ve),Mg=(Ie,ve)=>{const me=function(){var Ee=(0,Vn.Z)(function*(){const[Me,Fe]=yield Promise.all([Ie.toArray(),ve.toArray()]),Ge=Me.length<Fe.length?Me.length:Fe.length,xt=new Array(Ge);for(let Pt=0;Pt<Ge;Pt++)xt[Pt]=[Me[Pt],Fe[Pt]];return xt});return function(){return Ee.apply(this,arguments)}}();return new dt({generator:me,type:0})},op=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const[Fe,Ge]=yield Promise.all([Ie.toArray(),ve.toArray()]),xt=Fe.length<Ge.length?Fe.length:Ge.length,Pt=new Array(xt);for(let Gt=0;Gt<xt;Gt++)Pt[Gt]=me(Fe[Gt],Ge[Gt]);return Pt});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})},ap=(Ie,ve,me)=>{const Ee=function(){var Me=(0,Vn.Z)(function*(){const[Fe,Ge]=yield Promise.all([Ie.toArray(),ve.toArray()]),xt=Fe.length<Ge.length?Fe.length:Ge.length,Pt=new Array(xt);for(let Gt=0;Gt<xt;Gt++)Pt[Gt]=me(Fe[Gt],Ge[Gt]);return Promise.all(Pt)});return function(){return Me.apply(this,arguments)}}();return new dt({generator:Ee,type:0})};da(vt),(Ie=>{const ve=Ie.prototype,me=(Ee,Me)=>{const Fe=function(...Ge){return Ee(this,...Ge)};Object.defineProperty(Fe,"length",{value:Ee.length-1}),ve[Me]=Fe};me(Br,"aggregate"),me(Bn,"all"),me(ui,"allAsync"),me(at,"any"),me(Ln,"anyAsync"),me(si,"asParallel"),me(Ii,"average"),me(Vi,"averageAsync"),me(rr,"chunk"),me(vr,"concatenate"),me(Zr,"contains"),me(so,"containsAsync"),me(vo,"count"),me(Ro,"countAsync"),me(ea,"defaultIfEmpty"),me(la,"distinct"),me(va,"distinctAsync"),me(ta,"each"),me(ya,"eachAsync"),me(Ml,"elementAt"),me(Ld,"elementAtOrDefault"),me(Ph,"except"),me(td,"exceptAsync"),me(bu,"first"),me(Eu,"firstAsync"),me(Wp,"firstOrDefault"),me(Cc,"firstOrDefaultAsync"),me(Us,"groupBy"),me(Ou,"groupByAsync"),me(id,"groupByWithSel"),me(wc,"groupJoin"),me(Ec,"groupJoinAsync"),me(od,"intersect"),me(As,"intersectAsync"),me(Vd,"joinByKey"),me(Ss,"last"),me(yl,"lastAsync"),me(Tu,"lastOrDefault"),me(Jl,"lastOrDefaultAsync"),me(Cl,"max"),me(Ql,"maxAsync"),me(nl,"min"),me(Ea,"minAsync"),me(Gp,"ofType"),me(Ya,"orderBy"),me(ld,"orderByAsync"),me(ud,"orderByDescending"),me(Sc,"orderByDescendingAsync"),me(hs,"partition"),me(kh,"partitionAsync"),me(dd,"reverse"),me(Xf,"select"),me(Ks,"selectAsync"),me(Os,"selectMany"),me(Oc,"selectManyAsync"),me($p,"sequenceEquals"),me(Dc,"sequenceEqualsAsync"),me(zd,"single"),me(eu,"singleAsync"),me(Lh,"singleOrDefault"),me(Yp,"singleOrDefaultAsync"),me(Mu,"skip"),me(Xp,"skipWhile"),me(Mc,"skipWhileAsync"),me(Au,"sum"),me(qp,"sumAsync"),me(Wd,"take"),me(Pu,"takeWhile"),me(qe,"takeWhileAsync"),me(Yt,"toArray"),me(kn,"toMap"),me(zn,"toMapAsync"),me(Ri,"toObject"),me(pr,"toObjectAsync"),me(to,"toSet"),me(no,"union"),me(Ps,"unionAsync"),me(Gs,"where"),me(Jf,"whereAsync"),me(Qf,"zip"),me(em,"zipAsync")})(Ve),(Ie=>{const ve=Ie.prototype,me=(Ee,Me)=>{const Fe=function(...Ge){return Ee(this,...Ge)};Object.defineProperty(Fe,"length",{value:Ee.length-1}),ve[Me]=Fe};me(gd,"aggregate"),me(u_,"all"),me(tm,"allAsync"),me(fd,"any"),me(eg,"anyAsync"),me($s,"asAsync"),me(Pc,"average"),me(tg,"averageAsync"),me(ng,"chunk"),me(ig,"concatenate"),me(nm,"contains"),me(zh,"containsAsync"),me(im,"count"),me(c_,"countAsync"),me(Rs,"defaultIfEmpty"),me(rg,"distinct"),me(kc,"distinctAsync"),me(og,"each"),me(os,"eachAsync"),me(Ud,"elementAt"),me(Rc,"elementAtOrDefault"),me(ag,"except"),me(h_,"exceptAsync"),me(p_,"first"),me(na,"firstAsync"),me(om,"firstOrDefault"),me(Uh,"firstOrDefaultAsync"),me(f_,"groupBy"),me(am,"groupByAsync"),me(dg,"groupByWithSel"),me(Lc,"groupJoin"),me(sm,"groupJoinAsync"),me(Lc,"groupJoin"),me(sm,"groupJoinAsync"),me(hg,"intersect"),me(v_,"intersectAsync"),me(lm,"joinByKey"),me($h,"last"),me(pg,"lastAsync"),me(um,"lastOrDefault"),me(So,"lastOrDefaultAsync"),me(Xs,"max"),me(qh,"maxAsync"),me(fg,"min"),me(dm,"minAsync"),me(mg,"ofType"),me(Bs,"orderBy"),me(hm,"orderByAsync"),me(Cg,"orderByDescending"),me(vd,"orderByDescendingAsync"),me(y_,"partition"),me(xg,"partitionAsync"),me(yd,"reverse"),me(Fc,"select"),me(Lu,"selectAsync"),me(ep,"selectMany"),me(C_,"selectManyAsync"),me(x_,"sequenceEquals"),me(Vc,"sequenceEqualsAsync"),me(bg,"single"),me(Nc,"singleAsync"),me(tp,"singleOrDefault"),me(Sg,"singleOrDefaultAsync"),me(xd,"skip"),me(pm,"skipWhile"),me(b_,"skipWhileAsync"),me(Og,"sum"),me(ru,"sumAsync"),me(Gd,"take"),me(Ky,"takeWhile"),me(Dg,"takeWhileAsync"),me(Ys,"toArray"),me(mm,"toMap"),me(Tg,"toMapAsync"),me(Bu,"toObject"),me(zc,"toObjectAsync"),me(Ig,"toSet"),me(ip,"union"),me(rp,"unionAsync"),me(kl,"where"),me(Rl,"whereAsync"),me(Uc,"zip"),me(ap,"zipAsync")})(dt),(()=>{var Ie;const{prototype:ve}=ut,me=Object.getOwnPropertyNames(vt.prototype);for(const Ee of me)ve[Ee]=null!==(Ie=ve[Ee])&&void 0!==Ie?Ie:vt.prototype[Ee];ve.all=function(Ee){return this.every(Ee)},ve.any=function(Ee){return Ee?this.some(Ee):0!==this.length},ve.count=function(Ee){if(Ee){let Me=0;for(let Fe=0;Fe<this.length;Fe++)!0===Ee(this[Fe])&&Me++;return Me}return this.length},ve.elementAt=function(Ee){if(Ee<0||Ee>=this.length)throw new bt("index");return this[Ee]},ve.elementAtOrDefault=function(Ee){return this[Ee]||null},ve.first=function(Ee){if(Ee){const Me=this.find(Ee);if(void 0===Me)throw new kt(yt.NoMatch);return Me}if(0===this.length)throw new kt(yt.NoElements);return this[0]},ve.firstOrDefault=function(Ee){if(Ee){const Me=this.find(Ee);return void 0===Me?null:Me}return 0===this.length?null:this[0]},ve.last=function(Ee){if(Ee){for(let Me=this.length-1;Me>=0;Me--){const Fe=this[Me];if(!0===Ee(Fe))return Fe}throw new kt(yt.NoMatch)}if(0===this.length)throw new kt(yt.NoElements);return this[this.length-1]},ve.lastOrDefault=function(Ee){if(Ee){for(let Me=this.length-1;Me>=0;Me--){const Fe=this[Me];if(!0===Ee(Fe))return Fe}return null}return 0===this.length?null:this[this.length-1]},ve.max=function(Ee){if(0===this.length)throw new kt(yt.NoElements);if(Ee){let Me=Number.NEGATIVE_INFINITY;for(let Fe=0;Fe<this.length;Fe++)Me=Math.max(Ee(this[Fe]),Me);return Me}return Math.max.apply(null,this)},ve.min=function(Ee){if(0===this.length)throw new kt(yt.NoElements);if(Ee){let Me=Number.POSITIVE_INFINITY;for(let Fe=0;Fe<this.length;Fe++)Me=Math.min(Ee(this[Fe]),Me);return Me}return Math.min.apply(null,this)},ve.reverse=function(){return Array.prototype.reverse.apply(this),this}})();var vm=u(5775),E_=u(2874),jy=u(1129),Lw=u(4749),$d=u(1922),Fl=u(4370),ym=u(5732),kg=u(7128);da(Map),da(Set),(()=>{var Ie;const ve=String.prototype,me=Object.getOwnPropertyNames(vt.prototype);for(const Ee of me)ve[Ee]=null!==(Ie=ve[Ee])&&void 0!==Ie?Ie:vt.prototype[Ee];ve.first=function(Ee){if(Ee){for(let Me=0;Me<this.length;Me++){const Fe=this[Me];if(!0===Ee(Fe))return Fe}throw new kt(yt.NoMatch)}if(0===this.length)throw new kt(yt.NoElements);return this[0]},ve.firstOrDefault=function(Ee){if(Ee){for(let Me=0;Me<this.length;Me++){const Fe=this[Me];if(!0===Ee(Fe))return Fe}return null}return 0===this.length?null:this[0]},ve.count=function(Ee){if(Ee){let Me=0;for(let Fe=0;Fe<this.length;Fe++)!0===Ee(this[Fe])&&Me++;return Me}return this.length},ve.elementAt=function(Ee){if(Ee<0||Ee>=this.length)throw new bt("index");return this[Ee]},ve.elementAtOrDefault=function(Ee){return this[Ee]||null},ve.last=function(Ee){if(Ee){for(let Me=this.length-1;Me>=0;Me--){const Fe=this[Me];if(!0===Ee(Fe))return Fe}throw new kt(yt.NoMatch)}if(0===this.length)throw new kt(yt.NoElements);return this[this.length-1]},ve.lastOrDefault=function(Ee){if(Ee){for(let Me=this.length-1;Me>=0;Me--){const Fe=this[Me];if(!0===Ee(Fe))return Fe}return null}return 0===this.length?null:this[this.length-1]},ve.reverse=function(){const Ee=this;return new vt(function*Me(){for(let Fe=Ee.length-1;Fe>=0;Fe--)yield Ee[Fe]})}})(),Lt(Array),Lt(Int8Array),Lt(Int16Array),Lt(Int32Array),Lt(Uint8Array),Lt(Uint8ClampedArray),Lt(Uint16Array),Lt(Uint32Array),Lt(Float32Array),Lt(Float64Array);class au{constructor(ve,me,Ee,Me,Fe){this.propertyConverter=ve,this.scopeService=me,this.http=Ee,this.chatMessageService=Me,this.chatRelayService=Fe,this.stores=new Map,this.subscriptions=[],this.cacheUpdatedSource=new vm.xQ,this.cacheUpdated$=this.cacheUpdatedSource.asObservable(),this.storePushSource=new vm.xQ,this.storePush$=this.storePushSource.asObservable(),this.scope=this.scopeService.getScope(),this.database=new E_.f(this.scope.currentScope.chapter.id,this.scope.network.id),this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`,this.fastApiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessagesFast`,this.registerRelay(),au.instanceCount++}getOdataStore(ve){var me=`${this.apiEndpoint}/getForChatRoom(chatRoomId='${ve.toString()}')`;return new Ye({url:me,key:"Id",keyType:"Guid",version:4})}getArrayStore(ve){var me=new Date;return null!=this.stores.get(ve.toString())?new Promise((Ee,Me)=>Ee(this.stores.get(ve.toString())||new c.Z)):this.database.chatMessages.where("parentId").equals(ve.toString()).count().then(Ee=>{if(Ee>0)return this.database.chatMessages.where("parentId").equals(ve.toString()).toArray().then(Me=>{var Ge=Me.map(Pt=>JSON.parse(Pt.jsonValue)).orderBy(Pt=>Pt.createdOn).toArray();let xt=new c.Z({key:"id",data:Ge,onLoaded:Pt=>this.propertyConverter.convert(Pt)});return this.stores.set(ve.toString(),xt),xt.on("inserted",Pt=>{this.chatMessageService.postMessage(Pt.id,ve,Pt.displayContent,Pt.replyId).toPromise().then(Gt=>{})}),xt.on("removed",Pt=>{this.chatMessageService.deleteMessage(Pt).toPromise().then(Gt=>{this.database.chatMessages.delete(Pt.toString())})}),this.cacheUpdatedSource.next(ve.valueOf()),xt});{let Me=`${this.fastApiEndpoint}/quick?chatRoomId=${ve.toString()}`;return this.http.get(Me).toPromise().then(Fe=>{let Ge=[];return Fe.value.map(xt=>Ge.push({value:xt,id:xt.id.valueOf(),parentId:ve.toString(),synchStartedOn:me,synchCompletedOn:new Date,jsonValue:JSON.stringify(xt)})),Ge.forEach(xt=>{xt.value.id=xt.value.id.toString()}),Ge=Ge.orderBy(xt=>xt.value.createdOn).toArray(),Ge}).then(Fe=>this.database.chatMessages.where("parentId").equals(ve.toString()).delete().then(Ge=>this.database.chatMessages.bulkAdd(Fe).catch(xt=>{console.log("error on chatroom message adding: room: "+ve),console.log(xt)}).then(xt=>{var Pt=Fe.map(Cn=>JSON.parse(Cn.jsonValue));Pt=Pt.orderBy(Cn=>Cn.createdOn).toArray();let Gt=new c.Z({key:"id",data:Pt,onLoaded:Cn=>this.propertyConverter.convert(Cn)});return this.stores.set(ve.toString(),Gt),Gt.on("inserted",Cn=>{this.chatMessageService.postMessage(Cn.id,ve,Cn.displayContent,Cn.replyId).toPromise().then(pi=>{})}),Gt.on("removed",Cn=>{this.chatMessageService.deleteMessage(Cn).toPromise().then(pi=>{this.database.chatMessages.delete(Cn.toString())})}),this.chatRelayService.addToChatroom(ve.toString()),this.cacheUpdatedSource.next(ve.valueOf()),Gt},xt=>(console.log("Foobar at api call promise"),null!=this.stores.get(ve.toString())?(console.log("Resolving store from self fallback"),new Promise((Pt,Gt)=>{Pt(this.stores.get(ve.toString())||new c.Z)})):this.database.chatMessages.where("parentId").equals(ve.toString()).toArray().then(Pt=>{var Gt=Pt.map(pi=>JSON.parse(pi.jsonValue));let Cn=new c.Z({key:"id",data:Gt,onLoaded:pi=>this.propertyConverter.convert(pi)});return Cn.on("inserted",pi=>{this.chatMessageService.postMessage(pi.id,ve,pi.displayContent,pi.replyId).toPromise().then(wi=>{})}),Cn.on("removed",pi=>{this.chatMessageService.deleteMessage(pi).toPromise().then(wi=>{this.database.chatMessages.delete(pi.toString())})}),this.stores.set(ve.toString(),Cn),this.cacheUpdatedSource.next(ve.toString()),Cn})))))}})}registerRelay(){this.subscriptions.push(this.chatRelayService.msgReceived$.subscribe(ve=>{this.getArrayStore(new o.Z(ve.roomId)).then(me=>{this.http.get(`${this.apiEndpoint}/GetById(id='${ve.id.toString()}')`).toPromise().then(Ee=>{me.load().then(Me=>{if(Me.any(Fe=>Fe.id.toString()==Ee.id.toString()))try{me?.push([{type:"update",key:Ee.id,data:Ee}])}catch(Fe){console.error("push error",Fe,this)}else me?.push([{type:"insert",data:Ee}]);this.storePushSource.next(ve.roomId);try{this.database.chatMessages.add({value:Ee,id:Ee.id.valueOf(),parentId:ve.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ee)})}catch(Fe){console.error("add message to indexDb foobar",Fe,this)}})})},me=>{console.error("Msg received error",me,this)})}),this.chatRelayService.msgUpdated$.subscribe(ve=>{this.getArrayStore(new o.Z(ve.roomId)).then(me=>{this.http.get(`${this.apiEndpoint}/GetById(id='${ve.id.toString()}')`).toPromise().then(Ee=>{me.push([{type:"update",key:new o.Z(ve.id),data:Ee}]),this.storePushSource.next(ve.roomId);try{this.database.chatMessages.update(ve.id,{value:Ee,id:Ee.id.valueOf(),parentId:ve.roomId,synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ee)})}catch(Me){console.error("update message to indexDb foobar",Me)}},Ee=>{console.error("Msg updated",Ee)})})}),this.chatRelayService.msgDeleted$.subscribe(ve=>{this.getArrayStore(new o.Z(ve.roomId)).then(me=>{me.push([{type:"remove",key:ve.id}]),this.storePushSource.next(ve.roomId);try{this.database.chatMessages.delete(ve.id)}catch(Ee){console.log("delete message to indexDb foobar"),console.log(Ee)}})}))}rebuildCacheAndGetStore(ve){let me=`${this.fastApiEndpoint}/quick?chatRoomId=${ve.toString()}`;var Ee=new Date;return this.http.get(me).toPromise().then(Me=>{let Fe=[];return Me.value.map(Ge=>Fe.push({value:Ge,id:Ge.id.valueOf(),parentId:ve.toString(),synchStartedOn:Ee,synchCompletedOn:new Date,jsonValue:JSON.stringify(Ge)})),Fe.forEach(Ge=>{Ge.value.id=Ge.value.id.toString()}),Fe=Fe.orderBy(Ge=>Ge.value.createdOn).toArray(),Fe}).then(Me=>this.database.chatMessages.where("parentId").equals(ve.toString()).delete().then(Fe=>this.database.chatMessages.bulkAdd(Me).catch(Ge=>{console.error("error on chatroom message adding: room: "+ve),console.error(Ge)}).then(Ge=>{var xt=Me.map(Gt=>JSON.parse(Gt.jsonValue));xt=xt.orderBy(Gt=>Gt.createdOn).toArray();let Pt=new c.Z({key:"id",data:xt,onLoaded:Gt=>this.propertyConverter.convert(Gt)});return Pt.on("inserted",Gt=>{this.chatMessageService.postMessage(Gt.id,ve,Gt.displayContent,Gt.replyId).toPromise().then(Cn=>{})}),Pt.on("removed",Gt=>{this.chatMessageService.deleteMessage(Gt).toPromise().then(Cn=>{this.database.chatMessages.delete(Gt.toString())})}),this.stores.set(ve.toString(),Pt),this.cacheUpdatedSource.next(ve.toString()),Pt},Ge=>(console.error("Foobar at api call promise",Ge),null!=this.stores.get(ve.toString())?(console.log("Resolving store from self fallback"),new Promise((xt,Pt)=>{xt(this.stores.get(ve.toString())||new c.Z)})):this.database.chatMessages.where("parentId").equals(ve.toString()).toArray().then(xt=>{var Pt=xt.map(Cn=>JSON.parse(Cn.jsonValue));let Gt=new c.Z({key:"id",data:Pt,onLoaded:Cn=>this.propertyConverter.convert(Cn)});return Gt.on("inserted",Cn=>{this.chatMessageService.postMessage(Cn.id,ve,Cn.displayContent,Cn.replyId).toPromise().then(pi=>{})}),Gt.on("removed",Cn=>{this.chatMessageService.deleteMessage(Cn).toPromise().then(pi=>{this.database.chatMessages.delete(Cn.toString())})}),this.stores.set(ve.toString(),Gt),this.cacheUpdatedSource.next(ve.toString()),Gt})))))}updateStore(ve,me,Ee){var Me=me.toISOString();return this.getArrayStore(ve).then(Fe=>{let Ge=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${ve.toString()}&diffDate=${Me}`;Fe.load().then(xt=>{this.http.get(Ge).toPromise().then(Gt=>{Gt.value.length>0&&Gt.value.forEach(Cn=>{if(Cn.modifiedOn&&!Cn.deletedOn){Fe.push([{type:"update",key:Cn.id,data:Cn}]);try{this.database.chatMessages.update(Cn.id.valueOf(),{value:Cn,id:Cn.id.valueOf(),parentId:ve.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Cn)})}catch(pi){console.error("update message to indexDb foobar",pi,this)}}else if(Cn.modifiedOn&&Cn.deletedOn){Fe.push([{type:"remove",key:Cn.id}]);try{this.database.chatMessages.delete(Cn.id.valueOf())}catch(pi){console.error("delete message to indexDb foobar",pi,this)}}else{Fe.byKey(Cn.id).then(pi=>{Fe.push(pi?[{type:"update",key:Cn.id,data:Cn}]:[{type:"insert",data:Cn}])});try{this.database.chatMessages.get(Cn.id.valueOf()).then(pi=>{pi||this.database.chatMessages.add({value:Cn,id:Cn.id.valueOf(),parentId:ve.valueOf(),synchStartedOn:new Date,synchCompletedOn:new Date,jsonValue:JSON.stringify(Cn)})})}catch(pi){console.error("add message to indexDb foobar",pi,this)}}}),this.checkForCorruption(ve)})})})}checkForCorruption(ve){let Ee=(new Date).toISOString(),Me=`${this.fastApiEndpoint}/quickDiff?chatRoomId=${ve.toString()}&diffDate=${Ee}`;return this.http.get(Me).toPromise().then(Fe=>{let Ge=Fe.totalCount;return this.getArrayStore(ve).then(xt=>{xt.load().then(Pt=>Pt.length!=Ge?(console.log("Corrupted store:",ve,Ge,Pt.length),this.dropBackendCache(ve).then(Gt=>Gt?(this.chatRelayService.addToChatroom(ve.toString()),this.rebuildCacheAndGetStore(ve)):null)):null)})})}dropBackendCache(ve){return this.http.get(this.scopeService.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+ve.toString()).toPromise().then(me=>(me&&console.log("Cache eviction call"),me))}}au.instanceCount=0,au.\u0275fac=function(ve){return new(ve||au)(Fl.LFG(Lw.Z),Fl.LFG($d.Z),Fl.LFG(ym.eN),Fl.LFG(jy.Z),Fl.LFG(kg.L))},au.\u0275prov=Fl.Yz7({token:au,factory:au.\u0275fac,providedIn:"root"})},4846:(Rn,he,u)=>{"use strict";u.d(he,{z:()=>g});var o=u(8239),c=u(1922),I=u(4370),C=u(5732);class g{constructor(p,s){this.http=p,this.scopeService=s,this.apiEndpoint="",this.translationCache=new Map,this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getAvailableTargetLanguages(){return this.http.get(`${this.apiEndpoint}translations/targetLanguages`).toPromise()}canTranslate(){if(!0===this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled){const s=this.scope.profile,l=this.scope.network.settings.languagePack.split("-")[0];if(null!==s.activeUserLanguage?.vendorLanguageCode&&l!==s.activeUserLanguage?.vendorLanguageCode)return!0}return!1}translateInternal(p,s){var l=this;return(0,o.Z)(function*(){if(!0===l.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled&&null!==s){const v=l.scope.profile,x=l.scope.network.settings.languagePack.split("-")[0];if(null!==v.activeUserLanguage?.vendorLanguageCode&&x!==v.activeUserLanguage?.vendorLanguageCode){const b=l.scope.globalSettings.configurations.translationEndpointInfo;return l.http.post(`${b.baseUrl}/api/Translations/vendorbatch`,{TenantId:"ab1c0d0b-c2d1-d0ab-1c0d-0ab1c0d0ab1c",Sources:p,IgnoreReplacements:!0,ToVendorLanguageId:s},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${b.token}`}}).toPromise().then(w=>w.translations).catch(w=>{console.error("TRANS FETCH FAIL",w);const T=p.map(k=>({source:k,translation:k}));return Promise.resolve(T)})}}return{translations:p.map(v=>({source:v,translation:v}))}})()}getCachedOrTranslate(p,s){var l=this;return(0,o.Z)(function*(){const d=JSON.stringify({textEntries:p,targetVendorLanguageId:s});if(l.translationCache.has(d))return l.translationCache.get(d);const h=l.translateInternal(p,s);return l.translationCache.set(d,h),h})()}translateByUserLanguageCode(p){if(this.canTranslate()){const s=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,d=this.scope.profile.activeUserLanguage?.vendorLanguageCode,v=this.scope.globalSettings.configurations.availableVendorLanguages.find(x=>x.id===s).supportedVendorLanguages.find(x=>x.languageCode===d||x.languageISO639Code===d);return this.getCachedOrTranslate(p,v?.id)}return this.getCachedOrTranslate(p,null)}translateToOrigin(p){if(this.canTranslate()){const s=this.scope.network.settings.languagePack.split("-")[0],l=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration.VendorId,h=this.scope.globalSettings.configurations.availableVendorLanguages.find(v=>v.id===l).supportedVendorLanguages.find(v=>v.languageCode===s||v.languageISO639Code===s);return this.getCachedOrTranslate(p,h?.id)}return this.getCachedOrTranslate(p,null)}}g.\u0275fac=function(p){return new(p||g)(I.LFG(C.eN),I.LFG(c.Z))},g.\u0275prov=I.Yz7({token:g,factory:g.\u0275fac,providedIn:"root"})},7046:(Rn,he,u)=>{"use strict";u.d(he,{D:()=>p});var o=u(8239),c=u(5732),I=u(6608),C=u(5775),g=u(1922),a=u(4370);class p{constructor(l,d){this.scopeService=d,this.tokenData={token:"",expiresOn:new Date(1,1,1),fileTokens:null},this.sourceTimes=(0,I.F)(5e3),this.isAuthenticatedSource=new C.xQ,this.isAuthenticated$=this.isAuthenticatedSource.asObservable(),this.fetchingTokenPromise=null,this.http=new c.eN(l),this.scope=this.scopeService}getToken(){var l=this;return(0,o.Z)(function*(){return l.tokenData=yield l.getTokenData(),l.tokenData.token})()}getTokenData(){var l=this;return(0,o.Z)(function*(){const d=new Date;return l.tokenData.token&&d.getTime()<l.tokenData.expiresOn.getTime()?l.tokenData:(l.fetchingTokenPromise||(l.fetchingTokenPromise=new Promise(function(){var h=(0,o.Z)(function*(v){const x=yield l.http.get(l.scope.getMiniScope().apiEndpoint+"chatAuthentication/token").pipe().toPromise();x.expiresOn=new Date(x.expiresOn),l.tokenData=x,l.isAuthenticatedSource.next(l.tokenData),l.fetchingTokenPromise=null,v(l.tokenData)});return function(v){return h.apply(this,arguments)}}())),l.fetchingTokenPromise)})()}expireToken(l){var d=this;return(0,o.Z)(function*(){d.tokenData.expiresOn=new Date(1,1,1),yield d.getToken()})()}}p.\u0275fac=function(l){return new(l||p)(a.LFG(c.jN),a.LFG(g.Z))},p.\u0275prov=a.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"})},556:(Rn,he,u)=>{"use strict";u.d(he,{V:()=>h});var o=u(6608),c=u(5775),I=u(787),C=u(1922),g=u(4370),a=u(7128),p=u(4474),s=u(7800),l=u(7046),d=u(5732);class h{constructor(x,b,y,E,S,O,w){this.chatRelayService=x,this.globalService=b,this.keepAliveService=y,this.router=E,this.authenticationService=S,this.http=O,this.scope=w,this.routeActive=!1,this.badge=0,this.sourceTimes=(0,o.F)(500),this.roomBadges={},this.connected=!1,this.activeRoomId="",this.badgesSource=new c.xQ,this.badgeUpdates$=this.badgesSource.asObservable(),this.isResumedSource=new c.xQ,this.isResumed$=this.isResumedSource.asObservable(),this.subscriptions=[],this.userSettings={notificationsDisabled:!1,readStatusDisabled:!1},this.tokenReceived=!1,this.subscriptions.push(this.keepAliveService.isResumed$.subscribe(T=>{this.isResumedSource.next(T),T&&this.loadBadges().then(k=>{this.badge=k.totalCount,this.roomBadges=k.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})}),this.subs=this.sourceTimes.subscribe(T=>{this.routeActive=!!window.location.href.endsWith(this.activeRoomId)})),this.globalService.getSettings().then(T=>{this.userSettings=T,this.subscriptions.push(this.chatRelayService.roomCreated$.subscribe(k=>{}),this.chatRelayService.msgReceived$.subscribe(k=>this.onMessageReceived(k)),this.chatRelayService.isConnected$.subscribe(k=>{this.connected=k}))}),this.authenticationService.isAuthenticated$.subscribe(T=>{this.tokenReceived=!0,this.isResumedSource.next(!0),this.loadBadges().then(k=>{this.badge=k.totalCount,this.roomBadges=k.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})})}ngOnDestroy(){this.subscriptions.forEach(x=>x.unsubscribe())}onMessageReceived(x){if(!this.userSettings?.notificationsDisabled){if(!this.roomBadges[x.roomId])return void this.loadBadges().then(b=>{this.badge=b.totalCount,this.roomBadges=b.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})});if(x.fromChatMemberId!==this.roomBadges[x.roomId].myMembershipId.toString()){if(x.roomId===this.activeRoomId&&this.routeActive)return this.roomBadges[x.roomId].active=!0,void this.updateLastVisit(this.roomBadges[x.roomId].myMembershipId).then(b=>{});this.roomBadges[x.roomId].count=this.roomBadges[x.roomId].count+1,this.roomBadges[x.roomId].active=!1,this.badge++,this.routeActive||(this.activeRoomId=""),this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})}}}loadBadges(){return this.http.get(this.scope.getScope().apiEndpoint+"chatMembers/GetInitialBadgeCount").toPromise()}updateLastVisit(x){const b=this.http.post(this.scope.getScope().apiEndpoint+"chatMembers("+x+")/UpdateLastVisit",null).toPromise();return b.then(y=>this.loadBadges().then(E=>{this.badge=E.totalCount,this.roomBadges=E.badges,this.badgesSource.next({badges:this.roomBadges,totalCount:this.badge})})),b}setActiveRoom(x){this.activeRoomId=x}}h.\u0275fac=function(x){return new(x||h)(g.LFG(a.L),g.LFG(I.Z),g.LFG(p.g),g.LFG(s.F0),g.LFG(l.D),g.LFG(d.eN),g.LFG(C.Z))},h.\u0275prov=g.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"})},4632:(Rn,he,u)=>{"use strict";u.d(he,{$:()=>C});var o=u(1922),c=u(4370),I=u(5732);class C{constructor(a,p){this.http=a,this.scopeService=p,this.apiEndpoint=`${p.getScope().apiEndpoint}chatMembers`}post(a){return this.http.post(`${this.apiEndpoint}`,a)}hide(a){return this.http.post(`${this.apiEndpoint}/HideChat/${a}`,null)}delete(a){return this.http.delete(`${this.apiEndpoint}/${a.toString()}`)}toggleMute(a){return this.http.post(`${this.apiEndpoint}/ToggleChatMuted/${a}`,null)}promoteToAdmin(a){return this.http.post(`${this.apiEndpoint}/${a}/promoteToAdmin`,null)}revokeAdminPrivileges(a){return this.http.post(`${this.apiEndpoint}/${a}/revokeAdminPrivileges`,null)}}C.\u0275fac=function(a){return new(a||C)(c.LFG(I.eN),c.LFG(o.Z))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac})},1129:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>s});var o=u(886),c=u(5917),I=u(4749),C=u(1922),g=u(4370),a=u(5732),p=u(7128);class s{constructor(h,v,x,b){this.http=h,this.scopeService=v,this.propertyConverter=x,this.chatRelayService=b,this.apiEndpoint=`${this.scopeService.getScope().apiEndpoint}chatMessages`}postMessage(h,v,x,b){return this.http.post(`${this.apiEndpoint}`,{id:h,chatRoomId:v,displayContent:x,replyId:b})}postAttachmentMessage(h,v,x,b){return this.http.post(`${this.apiEndpoint}`,{id:h,chatRoomId:v,displayContent:x,chatMessageAttachments:[b]})}updateMessage(h,v){return this.http.patch(`${this.apiEndpoint}/${h}`,{displayContent:v})}deleteMessage(h){return this.http.delete(`${this.apiEndpoint}/${h}`)}}s.DUMMY_LOADER={dataSource:new o.Z([]),pageSize:20,totalCount:0,nextPage:()=>(0,c.of)(),previousPage:()=>(0,c.of)(),onDestroy:()=>{},addMessage:()=>{}},s.\u0275fac=function(h){return new(h||s)(g.LFG(a.eN),g.LFG(C.Z),g.LFG(I.Z),g.LFG(p.L))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac})},7128:(Rn,he,u)=>{"use strict";u.d(he,{L:()=>s});var o=u(1704),c=u(3473),I=u(5775),C=u(1922),g=u(4370),a=u(7046),p=u(5732);class s{constructor(d,h,v){this.scope=d,this.auth=h,this.http=v,this.SignalrHubUrl="http://localhost:5269/hub/chatHub",this.isConnected=!1,this.roomDeletedSource=new I.xQ,this.roomDeleted$=this.roomDeletedSource.asObservable(),this.roomCreatedSource=new I.xQ,this.roomCreated$=this.roomCreatedSource.asObservable(),this.isConnectedSource=new I.xQ,this.isConnected$=this.isConnectedSource.asObservable(),this.msgReceivedSource=new I.xQ,this.msgReceived$=this.msgReceivedSource.asObservable(),this.msgUpdatedSource=new I.xQ,this.msgUpdated$=this.msgUpdatedSource.asObservable(),this.msgDeletedSource=new I.xQ,this.msgDeleted$=this.msgDeletedSource.asObservable(),this._hubConnection=null,this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/chatHub",this._hubConnection=(new o.s).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().configureLogging(c.i.None).build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(x=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(x=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this._hubConnection.onreconnecting(x=>{console.warn("apicodo is trying to reconnect to server. please wait or try again later")}),this._hubConnection.on("chatRoomRemoved",x=>{this.roomDeletedSource.next(x.payload)}),this._hubConnection.on("chatRoomCreated",x=>{(this.scope.getScope().currentChapter.slug===x.payload.chapterSlug||this.scope.getScope().network.slug===x.payload.networkSlug)&&this.http.get(this.scope.getScope().apiEndpoint+"chatMessagesFast/IsMyMembershipActive/"+x.payload.id).toPromise().then(b=>{b&&(this._hubConnection?.send("addToGroup",x.payload.id),this.auth.expireToken(this).then(y=>{this.roomCreatedSource.next(x.payload)}))})}),this._hubConnection.on("newMessageSent",x=>{this.msgReceivedSource.next(x.payload)}),this._hubConnection.on("chatMessageUpdated",x=>{this.msgUpdatedSource.next(x.payload)}),this._hubConnection.on("chatMessageDeleted",x=>{this.msgDeletedSource.next(x.payload)})}addToChatroom(d){this.isConnected&&this._hubConnection?.send("addToGroup",d)}reconnect(){this.isConnected=!1,this.isConnectedSource.next(!1),this._hubConnection?.stop().then(()=>{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(d=>{this.isConnected=!1,this.isConnectedSource.next(!1)})})}}s.\u0275fac=function(d){return new(d||s)(g.LFG(C.Z),g.LFG(a.D),g.LFG(p.eN))},s.\u0275prov=g.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})},3885:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>C});var o=u(1922),c=u(4370),I=u(5732);class C{constructor(a,p){this.http=a,this.scopeService=p,this.scope=p.getScope()}createOneToOneChat(a){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,{users:[{userGuid:a.toString(),isAdmin:!0}],type:"Private",isNetworkWide:!1})}getRoom(a){return this.http.get(`${this.scope.apiEndpoint}chatRoomsFast/getById/${a.toString()}`)}delete(a){return this.http.delete(`${this.scope.apiEndpoint}chatRooms/${a}`)}createGroupChat(a){return this.http.post(`${this.scope.apiEndpoint}chatRooms`,a)}joinSubscription(a){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${a}/join`,null)}put(a,p){return this.http.put(`${this.scope.apiEndpoint}chatRooms/${a}`,p)}updateImage(a,p){return this.http.post(`${this.scope.apiEndpoint}chatRooms/${a}/UpdateImage/${p}`,null)}}C.\u0275fac=function(a){return new(a||C)(c.LFG(I.eN),c.LFG(o.Z))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac})},787:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>C});var o=u(1922),c=u(4370),I=u(5732);class C{constructor(a,p){this.http=a,this.scopeService=p,this.scope=p.getScope()}saveSettings(a){return this.http.post(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat",a).toPromise()}getSettings(){return this.http.get(this.scopeService.getScope().apiEndpoint+"globalUserSettings/chapter/chat").toPromise()}}C.\u0275fac=function(a){return new(a||C)(c.LFG(I.eN),c.LFG(o.Z))},C.\u0275prov=c.Yz7({token:C,factory:C.\u0275fac})},4474:(Rn,he,u)=>{"use strict";u.d(he,{g:()=>s});var o=u(1704),c=u(3473),I=u(5775),C=u(6608),g=u(1922),a=u(4370),p=u(7046);class s{constructor(d,h){this.scope=d,this.auth=h,this._hubConnection=null,this.SignalrHubUrl="http://localhost:5269/hub/notificationHub",this.isConnected=!1,this.sourceTimes=(0,C.F)(5e3),this.isConnectedSource=new I.xQ,this.isConnected$=this.isConnectedSource.asObservable(),this.lastTime=(new Date).getTime(),this.acceptableDelta=2500,this.isSuspended=!1,this.isResumedSource=new I.xQ,this.isResumed$=this.isResumedSource.asObservable(),this.SignalrHubUrl=this.scope.getScope().globalSettings.configurations.chatServerConfig.baseUrl+"hub/notificationHub",this._hubConnection=(new o.s).withUrl(this.SignalrHubUrl,{accessTokenFactory:()=>this.auth.getToken()}).withAutomaticReconnect().configureLogging(c.i.None).build(),this._hubConnection.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}).catch(v=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onclose(v=>{this.isConnected=!1,this.isConnectedSource.next(!1)}),this._hubConnection.onreconnected(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)}),this.subs=this.sourceTimes.subscribe(v=>{if(this.isConnected)try{this._hubConnection?.send("ping")}catch{this._hubConnection?.start().then(()=>{this.isConnected=!0,this.isConnectedSource.next(!0)})}const x=(new Date).getTime();x-this.lastTime>7500?(this.isSuspended=!0,setTimeout(()=>{this.isResumedSource.next(!0)},0)):this.isSuspended=!1,this.lastTime=x})}}s.\u0275fac=function(d){return new(d||s)(a.LFG(g.Z),a.LFG(p.D))},s.\u0275prov=a.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"})},4749:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>I});var o=u(6492),c=u(4370);class I{constructor(){this.guidRegex=/^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i}convert(g){if(g&&"object"==typeof g&&!(g instanceof o.Z)){if(g instanceof Array)for(const a of g)this.convert(a);for(const a of Object.keys(g)){const p=g[a];if(p instanceof Array)for(const s of p)this.convert(s);p instanceof Object&&this.convert(p),"string"==typeof p&&(I.dateRegex.test(p)?g[a]=new Date(p):this.guidRegex.test(p)?g[a]=new o.Z(p):"avatarImageUrl"===a&&!p.includes("?preset=profile-avatar")&&(g[a]=`${p}?preset=profile-avatar`))}}}}I.dateRegex=/^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:\+|-)\d{2}:\d{2})?)?$/,I.\u0275fac=function(g){return new(g||I)},I.\u0275prov=c.Yz7({token:I,factory:I.\u0275fac})},1922:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>C});var o=u(882),c=u(7906),I=u(4370);class C{constructor(){this.scope=window.scope,this.observer=new o.y(a=>{this.scope&&(a.next(this.scope),a.complete());const p=setInterval(()=>{this.scope&&(a.next(this.scope),a.complete(),clearInterval(p)),this.loadScope()},1e3)})}loadScope(){this.scope=window.scope}getScope(){return this.scope?this.scope:(this.loadScope(),window.scope)}getUserClientInfo(){const a=navigator.userAgent.includes("Merkurist_IAB")||!1,p=navigator.userAgent.replace(/.*\[Merkurist_IAB\/(.*)\]/gi,function(h,v){return v}),s=navigator.userAgent.includes("Android")?c.I.Android:c.I.iOS,l=a&&s===c.I.Android?parseFloat((window.navigator.userAgent.match("Android ([0-9.]+)")||[])[1]):-1,d={isApp:a,appVersion:"",appPlatform:c.I.Web,androidVersion:l};return a&&(d.appVersion=p,d.appPlatform=s),d}getMiniScope(){var a=window.miniScope;return a.apiEndpoint="/api/"+a.networkSlug+"/"+a.chapterSlug+"/",window.miniScope}}C.\u0275fac=function(a){return new(a||C)},C.\u0275prov=I.Yz7({token:C,factory:C.\u0275fac,providedIn:"root"})},1515:(Rn,he,u)=>{"use strict";u.d(he,{Z:()=>ee});var o=u(5732),c=u(7046),I=u(1129),C=u(7128),g=u(3885),a=u(4749),p=u(787),s=u(1922),l=u(4632),d=u(556),h=u(8692),v=u(8239);class x{constructor(q,Z,X,M,oe,fe,Te){this.url=q,this.data=Z,this.createdOn=X,this.mimeType=M,this.tag=oe,this.width=fe,this.height=Te}}var y=u(8143);const S=new class E extends y.ZP{constructor(){super("ImageDB"),this.version(2).stores({images:"&url"}),this.images.mapToClass(x)}};function B(G){return S.images.where("url").equals(G).toArray()}var V=u(882),U=u(4370),K=u(5998);class Y{constructor(q,Z){this.sanitizer=q,this.httpClient=Z}getImageSrc(q){var Z=this;return(0,v.Z)(function*(){return yield Z.getImageURL(q)})()}getImageURL(q){var Z=this;return(0,v.Z)(function*(){let X=yield B(q);if(0==X.length)try{let oe=yield Z.fetchImage(q);return null!=oe?(Z.saveImageToDatabase(q,oe),{data:q,from:"network"}):{data:q,from:"network"}}catch{return{data:q,from:"network"}}const M=Z.sanitizer.bypassSecurityTrustUrl(URL.createObjectURL(X[0].data));return{data:Z.getSafeImageUrl(M),from:"cache"}})()}getSafeImageUrl(q){return`${q.changingThisBreaksApplicationSecurity}`}fetchImage(q){try{return this.httpClient.get(q,{responseType:"blob"}).toPromise()}catch{return V.y.create(null).toPromise()}}saveImageToDatabase(q,Z){return(0,v.Z)(function*(){0==(yield B(q)).length&&function R(G){S.images.put(G)}(new x(q,Z,new Date,Z.type))})()}}Y.\u0275fac=function(q){return new(q||Y)(U.LFG(K.H7),U.LFG(o.eN))},Y.\u0275prov=U.Yz7({token:Y,factory:Y.\u0275fac,providedIn:"root"});var J=u(39),j=u(4846);class ee{}ee.\u0275fac=function(q){return new(q||ee)},ee.\u0275mod=U.oAB({type:ee}),ee.\u0275inj=U.cJS({providers:[s.Z,a.Z,g.Z,C.L,c.D,C.L,I.Z,l.$,p.Z,d.V,Y,j.z],imports:[o.JF,h.ez,J.e]})},2653:(Rn,he,u)=>{"use strict";var o=u(5998),c=u(4370);function I(){throw new Error("AngularJS v1.x is not loaded!")}const C=()=>I();C.cleanData=I;let g={bootstrap:I,module:I,element:C,injector:I,version:void 0,resumeBootstrap:I,getTestability:I};try{window.hasOwnProperty("angular")&&(g=window.angular)}catch{}const h=(Dn,Zt)=>g.module(Dn,Zt),v=Dn=>g.element(Dn);v.cleanData=Dn=>g.element.cleanData(Dn);const O="$delegate",k="$injector",R="$interval",Y="$$testability",j="$$angularDowngradedModuleCount",G="$$angularInjector",q="$$angularLazyModuleRef",X="$$angularUpgradeAppType",M="?^^"+G,fe="$$UpgradeModule";class Te{constructor(Zt,Wt){this.prop=Zt,this.attr=Wt,this.bracketAttr=`[${this.attr}]`,this.parenAttr=`(${this.attr})`,this.bracketParenAttr=`[(${this.attr})]`;const qn=this.attr.charAt(0).toUpperCase()+this.attr.slice(1);this.onAttr=`on${qn}`,this.bindAttr=`bind${qn}`,this.bindonAttr=`bindon${qn}`}}function _e(Dn){v.cleanData([Dn]),function ie(Dn){return re(Dn.querySelectorAll)}(Dn)&&v.cleanData(Dn.querySelectorAll("*"))}function ye(Dn){return"$"+Dn+"Controller"}function le(Dn){return Dn.overriddenName||Dn.name||Dn.toString().split("\n")[0]}function pe(Dn){return Dn.has(j)?Dn.get(j):0}function Se(Dn){return Dn.has(X)?Dn.get(X):0}function re(Dn){return"function"==typeof Dn}function mt(Dn,Zt){return Dn===Zt||Dn!=Dn&&Zt!=Zt}const tt={__UNINITIALIZED__:!0};class Le{constructor(Zt,Wt,qn,ni,Di,Hi,cr,Jr,Er){this.element=Zt,this.attrs=Wt,this.scope=qn,this.ngModel=ni,this.parentInjector=Di,this.$compile=Hi,this.$parse=cr,this.componentFactory=Jr,this.wrapCallback=Er,this.implementsOnChanges=!1,this.inputChangeCount=0,this.inputChanges={},this.componentScope=qn.$new()}compileContents(){const Zt=[],qn=this.groupProjectableNodes().map(ni=>this.$compile(ni));return this.element.empty(),qn.forEach(ni=>{ni(this.scope,Di=>{Zt.push(Di),this.element.append(Di)})}),Zt}createComponentAndSetup(Zt,Wt=!1,qn=!0){const ni=this.createComponent(Zt);return this.setupInputs(Wt,qn,ni),this.setupOutputs(ni.componentRef),this.registerCleanup(ni.componentRef),ni.componentRef}createComponent(Zt){const qn=c.zs3.create({providers:[{provide:"$scope",useValue:this.componentScope}],parent:this.parentInjector,name:"DowngradeComponentAdapter"}),ni=this.componentFactory.create(qn,Zt,this.element[0]),Di=ni.injector.get(c.sBO),Hi=ni.changeDetectorRef,cr=ni.injector.get(c.dDg,null);return cr&&ni.injector.get(c.eoX).registerApplication(ni.location.nativeElement,cr),function Ne(Dn,Zt){Dn&&function Ae(Dn){return"function"==typeof Dn.writeValue&&"function"==typeof Dn.registerOnChange}(Zt)&&(Dn.$render=()=>{Zt.writeValue(Dn.$viewValue)},Zt.registerOnChange(Dn.$setViewValue.bind(Dn)),"function"==typeof Zt.registerOnTouched&&Zt.registerOnTouched(Dn.$setTouched.bind(Dn)))}(this.ngModel,ni.instance),{viewChangeDetector:Di,componentRef:ni,changeDetector:Hi}}setupInputs(Zt,Wt=!0,{componentRef:qn,changeDetector:ni,viewChangeDetector:Di}){const Hi=this.attrs,cr=this.componentFactory.inputs||[];for(const go of cr){const xo=new Te(go.propName,go.templateName);let sa=null;if(Hi.hasOwnProperty(xo.attr)){const Pa=(da=>{let Br=tt;return Mt=>{mt(Br,Mt)||(Br===tt&&(Br=Mt),this.updateInput(qn,da,Br,Mt),Br=Mt)}})(xo.prop);Hi.$observe(xo.attr,Pa);let Zo=this.componentScope.$watch(()=>{Zo(),Zo=null,Pa(Hi[xo.attr])})}else Hi.hasOwnProperty(xo.bindAttr)?sa=Hi[xo.bindAttr]:Hi.hasOwnProperty(xo.bracketAttr)?sa=Hi[xo.bracketAttr]:Hi.hasOwnProperty(xo.bindonAttr)?sa=Hi[xo.bindonAttr]:Hi.hasOwnProperty(xo.bracketParenAttr)&&(sa=Hi[xo.bracketParenAttr]);if(null!=sa){const Pa=(Zo=>(da,Br)=>this.updateInput(qn,Zo,Br,da))(xo.prop);this.componentScope.$watch(sa,Pa)}}const Jr=()=>ni.detectChanges(),Er=this.componentFactory.componentType.prototype;if(this.implementsOnChanges=!(!Er||!Er.ngOnChanges),this.componentScope.$watch(()=>this.inputChangeCount,this.wrapCallback(()=>{if(this.implementsOnChanges){const go=this.inputChanges;this.inputChanges={},qn.instance.ngOnChanges(go)}Di.markForCheck(),Wt||Jr()})),Wt&&this.componentScope.$watch(this.wrapCallback(Jr)),Zt||!Wt){let go=this.componentScope.$watch(()=>{go(),go=null,this.parentInjector.get(c.z2F).attachView(qn.hostView)})}}setupOutputs(Zt){const Wt=this.attrs,qn=this.componentFactory.outputs||[];for(const ni of qn){const Di=new Te(ni.propName,ni.templateName),Hi=Di.bindonAttr.substring(0,Di.bindonAttr.length-6),cr=`[(${Di.bracketParenAttr.substring(2,Di.bracketParenAttr.length-8)})]`;Wt.hasOwnProperty(Hi)&&this.subscribeToOutput(Zt,Di,Wt[Hi],!0),Wt.hasOwnProperty(cr)&&this.subscribeToOutput(Zt,Di,Wt[cr],!0),Wt.hasOwnProperty(Di.onAttr)&&this.subscribeToOutput(Zt,Di,Wt[Di.onAttr]),Wt.hasOwnProperty(Di.parenAttr)&&this.subscribeToOutput(Zt,Di,Wt[Di.parenAttr])}}subscribeToOutput(Zt,Wt,qn,ni=!1){const Di=this.$parse(qn),Hi=Di.assign;if(ni&&!Hi)throw new Error(`Expression '${qn}' is not assignable!`);const cr=Zt.instance[Wt.prop];if(!cr)throw new Error(`Missing emitter '${Wt.prop}' on component '${le(this.componentFactory.componentType)}'!`);cr.subscribe({next:ni?Jr=>Hi(this.scope,Jr):Jr=>Di(this.scope,{$event:Jr})})}registerCleanup(Zt){const Wt=Zt.injector.get(c.eoX),qn=this.wrapCallback(()=>Zt.destroy());let ni=!1;this.element.on("$destroy",()=>{ni||this.componentScope.$destroy()}),this.componentScope.$on("$destroy",()=>{ni||(ni=!0,Wt.unregisterApplication(Zt.location.nativeElement),_e(this.element[0]),qn())})}updateInput(Zt,Wt,qn,ni){this.implementsOnChanges&&(this.inputChanges[Wt]=new c.WD2(qn,ni,qn===ni)),this.inputChangeCount++,Zt.instance[Wt]=ni}groupProjectableNodes(){return function gt(Dn,Zt){const Wt=[];for(let qn=0,ni=Dn.length;qn<ni;++qn)Wt[qn]=[];for(let qn=0,ni=Zt.length;qn<ni;++qn){const Di=Zt[qn],Hi=tn(Di,Dn);null!=Hi&&Wt[Hi].push(Di)}return Wt}(this.componentFactory.ngContentSelectors,this.element.contents())}}function tn(Dn,Zt){const Wt=[];let qn=-1;for(let ni=0;ni<Zt.length;ni++){const Di=Zt[ni];"*"===Di?qn=ni:Pe(Dn,Di)&&Wt.push(ni)}return Wt.sort(),-1!==qn&&Wt.push(qn),Wt.length?Wt[0]:null}function Pe(Dn,Zt){const Wt=Element.prototype;return Dn.nodeType===Node.ELEMENT_NODE&&(Wt.matches??Wt.msMatchesSelector).call(Dn,Zt)}class ge{constructor(){this.resolved=!1,this.callbacks=[]}static all(Zt){const Wt=new ge;let qn=0;const ni=[],Di=(Hi,cr)=>{ni[Hi]=cr,++qn===Zt.length&&Wt.resolve(ni)};return Zt.forEach((Hi,cr)=>{!function $e(Dn){return!!Dn&&re(Dn.then)}(Hi)?Di(cr,Hi):Hi.then(Jr=>Di(cr,Jr))}),Wt}resolve(Zt){this.resolved||(this.value=Zt,this.resolved=!0,this.callbacks.forEach(Wt=>Wt(Zt)),this.callbacks.length=0)}then(Zt){this.resolved?Zt(this.value):this.callbacks.push(Zt)}}function Ce(Dn){const Zt=function(Wt,qn,ni){const Di=3===Se(qn),Hi=Di?Er=>()=>c.R0b.isInAngularZone()?Er():cr.run(Er):Er=>Er;let cr;const Jr=Di&&pe(qn)>1;return{restrict:"E",terminal:!0,require:[M,"?ngModel"],link:(Er,go,xo,sa)=>{const Pa=sa[1],Zo=sa[0];let da,Br=!1;if(!Zo||Jr){const ui=Dn.downgradedModule||"",at=`${q}${ui}`,ct=`instantiating component '${le(Dn.component)}'`;!function ue(Dn,Zt,Wt,qn){const ni=Se(Dn),Di=pe(Dn);switch(ni){case 1:case 2:if(Zt)throw new Error(`Error while ${qn}: 'downgradedModule' unexpectedly specified.\nYou should not specify a value for 'downgradedModule', unless you are downgrading more than one Angular module (via 'downgradeModule()').`);break;case 3:if(!Zt&&Di>=2)throw new Error(`Error while ${qn}: 'downgradedModule' not specified.\nThis application contains more than one downgraded Angular module, thus you need to always specify 'downgradedModule' when downgrading components and injectables.`);if(!Dn.has(Wt))throw new Error(`Error while ${qn}: Unable to find the specified downgraded module.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`);break;default:throw new Error(`Error while ${qn}: Not a valid '@angular/upgrade' application.\nDid you forget to downgrade an Angular module or include it in the AngularJS application?`)}}(qn,ui,at,ct);const Et=qn.get(at);da=Et.injector??Et.promise}const Ht=(ui,at)=>{const Et=at.get(c._Vd).resolveComponentFactory(Dn.component);if(!Et)throw new Error(`Expecting ComponentFactory for: ${le(Dn.component)}`);const Ln=new De(go),si=new Le(go,xo,Er,Pa,ui,Wt,ni,Et,Hi),Ii=si.compileContents(),Vi=si.createComponentAndSetup(Ii,Di,Dn.propagateDigest);Ln.resolve(Vi.injector),Br&&Er.$evalAsync(()=>{})},Bn=Di?(ui,at)=>{cr||(cr=ui.get(c.R0b)),Hi(()=>Ht(ui,at))()}:Ht;ge.all([Zo||da,da||Zo]).then(([ui,at])=>Bn(ui,at)),Br=!0}}};return Zt.$inject=["$compile",k,"$parse"],Zt}class De extends ge{constructor(Zt){super(),this.element=Zt,this.injectorKey=ye(G),Zt.data(this.injectorKey,this)}resolve(Zt){this.element.data(this.injectorKey,Zt),this.element=null,super.resolve(Zt)}}let yt=null;const Xe=[{provide:"$injector",useFactory:function gn(){if(!yt)throw new Error("Trying to get the AngularJS injector before it being set.");const Dn=yt;return yt=null,Dn},deps:[]},{provide:"$rootScope",useFactory:function ut(Dn){return Dn.get("$rootScope")},deps:["$injector"]},{provide:"$compile",useFactory:function Ve(Dn){return Dn.get("$compile")},deps:["$injector"]},{provide:"$parse",useFactory:function St(Dn){return Dn.get("$parse")},deps:["$injector"]}];class Vt{constructor(Zt){this.modInjector=Zt}get(Zt,Wt){return Wt===c.eQZ?Wt:this.modInjector.get(Zt,Wt)}}let Hn=(()=>{class Dn{constructor(Wt,qn,ni){this.ngZone=qn,this.platformRef=ni,this.injector=new Vt(Wt)}bootstrap(Wt,qn=[],ni){const Di=fe+".init";h(Di,[]).constant(X,2).value(G,this.injector).factory(q,[G,Er=>({injector:Er})]).config(["$provide",k,(Er,go)=>{go.has(Y)&&Er.decorator(Y,[O,xo=>{const sa=xo.whenStable,Pa=this.injector,Zo=function(da){sa.call(xo,function(){const Br=Pa.get(c.dDg);Br.isStable()?da():Br.whenStable(Zo.bind(xo,da))})};return xo.whenStable=Zo,xo}]),go.has(R)&&Er.decorator(R,[O,xo=>{let sa=(Pa,Zo,da,Br,...Mt)=>this.ngZone.runOutsideAngular(()=>xo((...ln)=>{setTimeout(()=>{this.ngZone.run(()=>Pa(...ln))})},Zo,da,Br,...Mt));return Object.keys(xo).forEach(Pa=>sa[Pa]=xo[Pa]),xo.hasOwnProperty("flush")&&(sa.flush=()=>(xo.flush(),sa)),sa}])}]).run([k,Er=>{this.$injector=Er;const go=Er.get("$rootScope");(function kt(Dn){yt=Dn})(Er),this.injector.get(k),v(Wt).data(ye(G),this.injector),this.platformRef.onDestroy(()=>function ne(Dn){const Zt=Dn.get("$rootElement");Dn.get("$rootScope").$destroy(),_e(Zt[0])}(Er)),setTimeout(()=>{const xo=this.ngZone.onMicrotaskEmpty.subscribe(()=>go.$$phase?go.$evalAsync():go.$digest());go.$on("$destroy",()=>{xo.unsubscribe()})},0)}]);const Hi=h(fe,[Di].concat(qn)),cr=window.angular;cr.resumeBootstrap=void 0;const Jr=this.ngZone.run(()=>((Dn,Zt,Wt)=>g.bootstrap(Dn,Zt,Wt))(Wt,[Hi.name],ni));if(cr.resumeBootstrap){const Er=cr.resumeBootstrap,go=this.ngZone;cr.resumeBootstrap=function(){let xo=arguments;return cr.resumeBootstrap=Er,go.run(()=>cr.resumeBootstrap.apply(this,xo))}}return Jr}}return Dn.\u0275fac=function(Wt){return new(Wt||Dn)(c.LFG(c.zs3),c.LFG(c.R0b),c.LFG(c.f1m))},Dn.\u0275mod=c.oAB({type:Dn}),Dn.\u0275inj=c.cJS({providers:[Xe]}),Dn})();var En=u(1922),Mn=u(6872);const Wn={AppMerkurist:new RegExp("Merkurist_IAB"),AppApicodo:new RegExp("Apicodo_IAB"),Ios:/iPhone|iPad|iPod/i,Android:/Android/i,Safari:/Safari/i,ChromeIos:/CriOS/i,FirefoxIos:/FxiOS/i,EdgeIos:/EdgiOS/i};var Sn=u(712);var qi=u(8692);function nr(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div",11)(1,"a",12),c._uU(2),c.qZA()()),2&Dn){const Wt=c.oxw(2);c.ekj("smart-banner-button-dark",Wt.isDarkButtonBackground()),c.xp6(1),c.Q6J("href",Wt.installOpenLink,c.LSH),c.xp6(1),c.hij(" ",Wt.scope.network.getResourceOrKeyName(Wt.scope.profile.hasPushToken?"web_smart_banner_open":"web_smart_banner_install")," ")}}function xr(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),c._UZ(4,"i",5),c.TgZ(5,"div",6),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.toggleSmartBanner())}),c.qZA()(),c.TgZ(6,"div",7),c._UZ(7,"img",8),c.qZA(),c.TgZ(8,"div",9)(9,"span"),c._uU(10),c.qZA()()(),c.YNc(11,nr,3,4,"div",10),c.qZA()()}if(2&Dn){const Wt=c.oxw();c.xp6(7),c.Q6J("src",Wt.getNetworkIconBigUrl(),c.LSH),c.xp6(3),c.Oqu(Wt.scope.currentScope.network.name),c.xp6(1),c.Q6J("ngIf",null==Wt.installOpenLink?null:Wt.installOpenLink.length)}}class vn{constructor(Zt){this.isMobile=!1,this.isHidden=!1,this.getIsMobile=()=>window.innerWidth<Mn._,this.isDarkButtonBackground=()=>(0,Sn.vw)("smart-banner-button")===Mn.h.dark,this.scopeService=Zt,this.scope=Zt.getScope(),this.isMobile=this.getIsMobile(),this.userAgentType=function Ji(){let Dn=navigator.userAgent,Zt=Dn.includes("Macintosh")&&"ontouchend"in document;const Wt=Wn.AppMerkurist.test(Dn)||Wn.AppApicodo.test(Dn),qn=Wn.Ios.test(Dn)||Zt,ni=Wn.Android.test(Dn),Di=Wn.ChromeIos.test(Dn),Hi=Wn.FirefoxIos.test(Dn),cr=Wn.EdgeIos.test(Dn),Jr=Wn.Safari.test(Dn)&&!Di&&!Hi&&!cr;return{isApp:Wt,isAndroid:ni,isIos:qn,isSafari:Jr,isChromeIos:Di,isFireFoxIos:Hi,isEdgeIos:cr,isOtherBrowser:!(Jr||Di||Hi||cr),isOtherDevice:!Wt&&!qn&&!ni}}(),this.isHidden=this.isSmartBannerHiddenWithCookie();const{appLinkAndroid:Wt,appLinkITunes:qn}=this.scope?.currentScope?.network?.settings??{};this.installOpenLink=(this.userAgentType.isAndroid?Wt:qn)??"",this.updateRootPadding()}onResize(){this.isMobile=this.getIsMobile()}showSmartBanner(){if(!this.scope.currentScope.network.settings.configurations.showAppSmartBanner||!this.isMobile||this.isHidden)return!1;const{isApp:Wt,isAndroid:qn,isIos:ni,isSafari:Di,isOtherBrowser:Hi}=this.userAgentType;return!Wt&&!!(qn||ni&&!Di||Hi)}toggleSmartBanner(){this.isHidden=!0,this.updateRootPadding();const Zt=new Date;!function ti(Dn,Zt){const Wt=new Date;Wt.setTime(Wt.getTime()+6048e5),document.cookie=Dn+"="+Zt+"; expires="+Wt.toUTCString()+"; path=/"}("appSmartBannerHiddenUntil",new Date(Zt.setMonth(Zt.getMonth()+1)).toISOString())}isSmartBannerHiddenWithCookie(){const Zt=function ci(Dn){const Wt=("; "+document.cookie).split("; "+Dn+"=");if(2===Wt.length)return Wt.pop()?.split(";").shift()}("appSmartBannerHiddenUntil");return!!Zt&&new Date(Zt)>new Date}getNetworkIconBigUrl(){const Zt=this.scope.currentScope.network,Wt=this.scope.globalSettings;var qn=`${Wt.blobStorageCdnUrl}/${Wt.blobStorageContainerNameLogo}`;return Zt&&Zt.settings.networkIconBigCache?`${qn}/${Zt.slug}/icon/big.png?cache=${Zt.settings.networkIconBigCache}`:`${qn}/default/icon/big.png?cache=${Wt.defaultLogoCache}`}updateRootPadding(){let Zt=document.getElementById("app-smart-banner-spacer");Zt&&(Zt.style.paddingTop=this.showSmartBanner()?"90px":"0px")}}vn.\u0275fac=function(Zt){return new(Zt||vn)(c.Y36(En.Z))},vn.\u0275cmp=c.Xpm({type:vn,selectors:[["app-smart-banner"]],hostBindings:function(Zt,Wt){1&Zt&&c.NdJ("resize",function(ni){return Wt.onResize(ni)},!1,c.Jf7)},decls:1,vars:1,consts:[["id","app-smart-banner",4,"ngIf"],["id","app-smart-banner"],[1,"smart-banner"],[1,"smart-banner-info"],[1,"smart-banner-info-close"],[1,"fas","fa-times"],[1,"smart-banner-info-close-touchpoint",3,"click"],[1,"smart-banner-info-icon"],[3,"src"],[1,"smart-banner-info-name"],["id","smart-banner-button","class","smart-banner-button",3,"smart-banner-button-dark",4,"ngIf"],["id","smart-banner-button",1,"smart-banner-button"],[3,"href"]],template:function(Zt,Wt){1&Zt&&c.YNc(0,xr,12,3,"div",0),2&Zt&&c.Q6J("ngIf",Wt.showSmartBanner())},dependencies:[qi.O5],styles:["[_nghost-%COMP%]{--app-icon-size: 6rem}.smart-banner[_ngcontent-%COMP%]{max-width:940px;margin:0 -15px;display:flex;justify-content:space-between;align-items:center;padding:15px;height:90px;background-color:#1e1e1e;border-bottom:1px solid #ccc;color:#fff}.smart-banner-info[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;align-items:center;width:100%;overflow:hidden}.smart-banner-info-close[_ngcontent-%COMP%]{display:flex;align-items:center;position:relative}.smart-banner-info-close[_ngcontent-%COMP%]   i.fa-times[_ngcontent-%COMP%]{height:12px;width:8px}.smart-banner-info-close-touchpoint[_ngcontent-%COMP%]{position:absolute;height:3rem;width:3rem;top:calc(-50% - 3px);left:calc(-50% - 7px)}.smart-banner-info-icon[_ngcontent-%COMP%]{margin:0 15px;background-color:#fff;border-radius:1rem}.smart-banner-info-icon[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:var(--app-icon-size);height:var(--app-icon-size);border-radius:1rem;border:1px solid rgb(229,229,229)}.smart-banner-info-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.smart-banner-info-name[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:large}.smart-banner-button[_ngcontent-%COMP%]{all:unset;background-color:var(--color1-alpha30);display:flex;align-self:center;border-radius:2rem;height:2rem;padding:.5rem 1.5rem}.smart-banner-button[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;color:#000;white-space:nowrap}.smart-banner-button-dark[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#fff}"]});var Pn=u(5732);new c.OlP("LANGS_COOKIE_CONSENT_CONFIGURATION");var Si=(()=>{return(Dn=Si||(Si={}))[Dn.Analytics=0]="Analytics",Dn[Dn.ExternalLogin=1]="ExternalLogin",Dn[Dn.ExternalMedia=2]="ExternalMedia",Si;var Dn})();const Wr={bottomRight:"bottom-right",bottomLeft:"bottom-left"},Ur_analytics="externalAnalyticsPermissions",Ur_externalMedia="externalMediaPermissions",Rr_analytics_matomo="matomo",Rr_analytics_googleAnalytics="googleAnalytics",Rr_externalMedia_twitter="twitter",Rr_externalMedia_youTube="youTube",Rr_externalMedia_facebook="facebook",Rr_externalMedia_vimeo="vimeo",Rr_externalMedia_giphy="giphy",Rr_externalLogin_facebook="facebook";function mo(Dn,Zt){1&Dn&&c._UZ(0,"i",3)}class Mr{constructor(Zt,Wt){this.type=0,this.isAssetListItem=!1,this.http=new Pn.eN(Wt),this.scopeService=Zt,this.scope=Zt.getScope(),this.miniScope=Zt.getMiniScope()}getTypeResource(){return po[this.type]?.resource??""}accept(){const Zt=(new Date).toISOString(),Wt={...this.scope?.profile?.settings?.externalMediaPermissions,[po[this.type]?.id]:{granted:!0,lastUpdate:Zt}};this.http.post(`${this.miniScope.apiEndpoint}Profiles/ExternalMediaCookiesConsent`,Wt).toPromise().then(()=>{window.location.href=window.location.href.split("#")[0]})}}Mr.\u0275fac=function(Zt){return new(Zt||Mr)(c.Y36(En.Z),c.Y36(Pn.jN))},Mr.\u0275cmp=c.Xpm({type:Mr,selectors:[["cookie-external-media-info"]],inputs:{type:"type",isAssetListItem:"isAssetListItem"},decls:11,vars:6,consts:[[1,"cookies-external-media-info-container"],["class","fa fa-exclamation-triangle","aria-hidden","true",4,"ngIf"],["type","button",3,"click"],["aria-hidden","true",1,"fa","fa-exclamation-triangle"]],template:function(Zt,Wt){1&Zt&&(c.TgZ(0,"div",0),c.YNc(1,mo,1,0,"i",1),c.TgZ(2,"p")(3,"span"),c._uU(4),c.qZA(),c._UZ(5,"br"),c.TgZ(6,"span"),c._uU(7),c.qZA(),c._UZ(8,"br"),c.TgZ(9,"button",2),c.NdJ("click",function(){return Wt.accept()}),c._uU(10),c.qZA()()()),2&Zt&&(c.ekj("assetListItem",Wt.isAssetListItem),c.xp6(1),c.Q6J("ngIf",!Wt.isAssetListItem),c.xp6(3),c.Oqu(Wt.getTypeResource()),c.xp6(3),c.Oqu(Wt.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info")),c.xp6(3),c.Oqu(Wt.scope.network.getResourceOrKeyName("web_cookie_consent_external_media_info_accept")))},dependencies:[qi.O5],styles:["[_nghost-%COMP%]{--padding: 2.5rem}.cookies-external-media-info-container[_ngcontent-%COMP%]{background-color:#f0f0f0;border-radius:10px;display:flex;align-items:center;padding:var(--padding)}.cookies-external-media-info-container[_ngcontent-%COMP%]   i.fa[_ngcontent-%COMP%]{margin-right:var(--padding);font-size:x-large}.cookies-external-media-info-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{margin-right:.5rem}.cookies-external-media-info-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{all:unset;cursor:pointer}.cookies-external-media-info-container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:underline}.assetListItem[_ngcontent-%COMP%]{height:300px;overflow:hidden;line-break:normal}@media (max-width: 768px){.assetListItem[_ngcontent-%COMP%]{height:360px}}"]});const po={4:{resource:"Twitter",id:Rr_externalMedia_twitter},5:{resource:"YouTube",id:Rr_externalMedia_youTube},6:{resource:"Facebook",id:Rr_externalMedia_facebook},7:{resource:"Vimeo",id:Rr_externalMedia_vimeo},10:{resource:"Giphy",id:Rr_externalMedia_giphy}};var mi=u(6608),ar=u(7800),Xr=u(7128),lo=u(556);function _o(Dn,Zt){if(1&Dn&&(c.TgZ(0,"span",3),c._uU(1),c.qZA()),2&Dn){const Wt=c.oxw();c.xp6(1),c.AsE("",Wt.badge,"",Wt.connected?"":" \u26a0","")}}const bo=function(Dn){return{"root-navigation-btn-active":Dn}};class It{constructor(Zt,Wt,qn,ni){this.router=Wt,this.chatRelayService=qn,this.badgeService=ni,this.routeActive=!1,this.badge=null,this.currentLocation=null,this.sourceTimes=(0,mi.F)(500),this.connected=!1,this.subscriptions=[],this.scope=Zt.getScope(),this.currentLocation=window.location.href,this.subs=this.sourceTimes.subscribe(Di=>{this.routeActive=!!window.location.href.includes("/chat")}),this.subscriptions.push(this.badgeService.badgeUpdates$.subscribe(Di=>{this.badge=Di.totalCount}),this.chatRelayService.isConnected$.subscribe(Di=>{this.connected=Di}))}ngOnInit(){this.badge=this.badgeService.badge}ngOnDestroy(){this.subscriptions.forEach(Zt=>Zt.unsubscribe())}openChat(){this.router.navigate(["/chat",""]),this.routeActive=!0}}It.\u0275fac=function(Zt){return new(Zt||It)(c.Y36(En.Z),c.Y36(ar.F0),c.Y36(Xr.L),c.Y36(lo.V))},It.\u0275cmp=c.Xpm({type:It,selectors:[["app-chat-bubble"]],decls:3,vars:5,consts:[[1,"root-navigation-btn","visible-isRegistered",3,"ngClass","click"],[3,"innerHtml"],["class","badge root-navigation-btn-notificationBadge",4,"ngIf"],[1,"badge","root-navigation-btn-notificationBadge"]],template:function(Zt,Wt){1&Zt&&(c.TgZ(0,"div",0),c.NdJ("click",function(){return Wt.openChat()}),c._UZ(1,"span",1),c.YNc(2,_o,2,2,"span",2),c.qZA()),2&Zt&&(c.Q6J("ngClass",c.VKq(3,bo,Wt.routeActive)),c.xp6(1),c.Q6J("innerHtml",Wt.scope.network.getResourceOrKeyName("web_root_root_chat"),c.oJD),c.xp6(1),c.Q6J("ngIf",0!=Wt.badge))},dependencies:[qi.mk,qi.O5]});var en=u(8198),jn=u(5775),vi=u(2874),_i=u(9451),dn=u(7046),Tn=u(4962);class Zn{constructor(Zt,Wt,qn,ni,Di){this.chatRoomCache=Zt,this.scopeService=Wt,this.authenticationService=qn,this.messageCache=ni,this.badgeService=Di,this.authReceived=!1,this.cacheRebuiltSource=new jn.xQ,this.cacheRebuilt$=this.cacheRebuiltSource.asObservable(),this.storeSynchedSource=new jn.xQ,this.storeSynced$=this.storeSynchedSource.asObservable(),this.errorsOnUpdate=!1,this.roomCounts={},this.scope=this.scopeService.getScope(),this.database=new vi.f(this.scope.currentScope.chapter.id,this.scope.network.id),this.roomCounts=this.badgeService.roomBadges,this.badgeService.badgeUpdates$.subscribe(Hi=>{Zn.cacheRebuilding||(this.roomCounts=Hi.badges)}),this.authenticationService.isAuthenticated$.subscribe(Hi=>{this.authReceived||(this.authReceived=!0,this.updateOrInitCache())})}isInitialized(){return Zn.cacheInitialized}rebuildCache(){this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(Zt=>{Zt.load().then(Wt=>{let qn=1;var ni=new fi;ni.completed=!1,ni.current=qn,ni.total=Wt.length,ni.message="Start",this.cacheRebuiltSource.next(ni),Wt.orderByDescending(Di=>Di.lastMessage?.createdOn).toArray().forEach(Di=>{this.messageCache.rebuildCacheAndGetStore(Di.id).then(Hi=>{var cr=new fi;cr.completed=!1,cr.current=qn,cr.total=Wt.length,cr.message=Di.name,qn==Wt.length&&(Zn.cacheRebuilding=!1,cr.completed=!0,Zn.cacheInitialized=!0,this.cacheRebuiltSource.next(cr)),this.cacheRebuiltSource.next(cr),qn++},Hi=>{this.errorsOnUpdate=!0})})})})}updateOrInitCache(){if(Zn.cacheRebuilding)return Zn.cacheRebuilding;Zn.cacheRebuilding=!0;var Zt=new Date;return this.database.synchTable.get(Zn.syncEntryKey).then(Wt=>{if(Wt){var qn=new fi;qn.completed=!1,qn.current=1,qn.total=1,qn.message="Local cache initialized",this.cacheRebuiltSource.next(qn),this.badgeService.loadBadges().then(ni=>{this.roomCounts=ni.badges,this.updateStores(Wt.synchStartedOn).then(Di=>{this.database.synchTable.update(Zn.syncEntryKey,{id:Zn.syncEntryKey,value:"",synchStartedOn:Zt,syncCompletedOn:new Date,jsonValue:""}).then(Hi=>{})})})}else{let ni=new Date("1.1.1970");this.database.synchTable.add({id:Zn.syncEntryKey,value:"",synchStartedOn:ni,jsonValue:""}).then(Di=>{var Hi=new fi;Hi.completed=!1,Hi.current=1,Hi.total=1,Hi.message="Local cache initialized",this.cacheRebuiltSource.next(Hi),this.badgeService.loadBadges().then(cr=>{this.roomCounts=cr.badges,this.updateStores(ni).then(Jr=>{this.database.synchTable.update(Zn.syncEntryKey,{id:Zn.syncEntryKey,value:"",synchStartedOn:ni,syncCompletedOn:new Date,jsonValue:""}).then(Er=>{})})})})}}),Zn.cacheRebuilding}updateOrInitCacheOld(){if(Zn.cacheRebuilding)return Zn.cacheRebuilding;Zn.cacheRebuilding=!0;var Zt=new Date;return this.database.synchTable.get(Zn.syncEntryKey).then(Wt=>{if(Wt){var qn=new fi;qn.completed=!0,qn.current=1,qn.total=1,qn.message="Local cache initialized",this.cacheRebuiltSource.next(qn),this.badgeService.loadBadges().then(ni=>{this.roomCounts=ni.badges,this.updateStores(Wt.synchStartedOn).then(Di=>{this.database.synchTable.update(Zn.syncEntryKey,{id:Zn.syncEntryKey,value:"",synchStartedOn:Zt,syncCompletedOn:new Date,jsonValue:""}).then(Hi=>{})})})}else this.database.synchTable.add({id:Zn.syncEntryKey,value:"",synchStartedOn:Zt,jsonValue:""}).then(ni=>{this.rebuildCache()})}),Zn.cacheRebuilding}updateStores(Zt){return this.chatRoomCache.rebuildCacheAndGetArrayStore(this).then(Wt=>{Wt.load().then(qn=>{let ni=1;var Di=new fi;Di.completed=!1,Di.current=ni,Di.total=qn.length,Di.message="Start",this.storeSynchedSource.next(Di),this.cacheRebuiltSource.next(Di),qn.orderByDescending(Hi=>Hi.lastMessage?.createdOn).toArray().forEach(Hi=>{let cr=0;try{cr=this.badgeService.roomBadges[Hi.id.toString()].allMessagesCount}catch{}this.messageCache.updateStore(Hi.id,Zt,cr).then(Jr=>{var Er=new fi;Er.completed=!1,Er.current=ni,Er.total=qn.length,Er.message="Room messages resynched for room: ("+ni+"/"+qn.length+") "+Hi.name,ni==qn.length&&(Zn.cacheRebuilding=!1,Er.completed=!0,Zn.cacheInitialized=!0,this.storeSynchedSource.next(Er),this.cacheRebuiltSource.next(Er)),ni++})})})})}}Zn.cacheRebuilding=!1,Zn.cacheInitialized=!1,Zn.syncEntryKey="ChatCacheLastUpdateKey",Zn.\u0275fac=function(Zt){return new(Zt||Zn)(c.LFG(_i.d),c.LFG(En.Z),c.LFG(dn.D),c.LFG(Tn.u),c.LFG(lo.V))},Zn.\u0275prov=c.Yz7({token:Zn,factory:Zn.\u0275fac,providedIn:"root"});class fi{constructor(Zt,Wt,qn,ni){this.total=0,this.completed=!1,this.current=0,this.message="",this.completed=Wt??!1,this.current=ni??0,this.message=Zt??"",this.total=qn??0}}class Li{constructor(Zt,Wt,qn,ni){this.scopeService=Zt,this.router=Wt,this.chatRelay=qn,this.cacheManager=ni,this.subscriptions=[],this.cacheRebuilt=!1,this.roomCount=0,this.current=0,this.message="Initializing chat system",this.windowWidth=720,this.isMobile=!0,this.cacheRebuilt=this.cacheManager.isInitialized(),this.chapter=this.scopeService.getScope().currentChapter.name,this.scope=this.scopeService.getScope(),this.message=this.scope.network.getResourceOrKeyName("web_chat_cache_initializing_will_start"),this.subscriptions.push(this.cacheManager.cacheRebuilt$.subscribe(cr=>{cr.completed!=this.cacheRebuilt&&(this.cacheRebuilt=cr.completed,this.cacheRebuilt&&(Li.initialized=!0)),this.message=cr.message,cr.total!=this.roomCount&&(this.roomCount=cr.total),cr.current!=this.current&&(this.current=cr.current)}));const Di=window.location.href.indexOf("/chat")+1;let Hi;(0,en.SP)(Zt.getScope().currentScope.network.settings.languageCode),Hi=0===Di?["chat"]:window.location.href.substring(Di).split("/"),Wt.navigate(Hi)}ngOnDestroy(){this.subscriptions.forEach(Zt=>Zt.unsubscribe())}onResize(){this.windowWidth=window.innerWidth,this.isMobile=this.windowWidth<Mn._}}Li.initialized=!1,Li.\u0275fac=function(Zt){return new(Zt||Li)(c.Y36(En.Z),c.Y36(ar.F0),c.Y36(Xr.L),c.Y36(Zn))},Li.\u0275cmp=c.Xpm({type:Li,selectors:[["app-chat-home"]],hostBindings:function(Zt,Wt){1&Zt&&c.NdJ("resize",function(ni){return Wt.onResize(ni)},!1,c.Jf7)},decls:3,vars:0,consts:[[1,"navbar-spacer"]],template:function(Zt,Wt){1&Zt&&(c._UZ(0,"div",0),c.TgZ(1,"div"),c._UZ(2,"router-outlet"),c.qZA())},dependencies:[ar.lC],styles:[".navbar-spacer[_ngcontent-%COMP%]{height:101px}.chatRouterContainerLoadPane[_ngcontent-%COMP%]{text-align:center;vertical-align:middle;padding:20%}[_nghost-%COMP%]     .dx-list{font-family:var(--fontChat)}@media (max-width: 991px){.navbar-spacer[_ngcontent-%COMP%]{height:0}}"]});var sr=u(4474);class gr{constructor(Zt){this.keepAlive=Zt,this.connected=!1,this.subscriptions=[],this.subscriptions.push(this.keepAlive.isConnected$.subscribe(Wt=>{this.connected=Wt}))}ngOnDestroy(){this.subscriptions.forEach(Zt=>Zt.unsubscribe())}ngOnInit(){}}gr.\u0275fac=function(Zt){return new(Zt||gr)(c.Y36(sr.g))},gr.\u0275cmp=c.Xpm({type:gr,selectors:[["app-user-vitals"]],decls:0,vars:0,template:function(Zt,Wt){}});var Qt=u(6492),_n=u(3885),Ze=u(39);class Ct{constructor(Zt,Wt,qn,ni,Di,Hi){this.chatRoomService=Zt,this.chatRelayService=Wt,this.authenticationService=qn,this.chatroomCache=ni,this.router=Di,this.scopeService=Hi,this.otherUserGuid="Parameter is not there",this.chatIsEnabled=!0,this.buttonDisabled=!1,this.buttonText="",this.scope=this.scopeService.getScope()}ngOnInit(){this.chatIsEnabled=!!(typeof this.scope.network.settings.configurations.enableChat<"u"&&this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled)&&this.scope.network.settings.configurations.enableChat&&(this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.OneToOneEnabled??!0)&&(this.scope.currentChapter.settings.configurations.chatChapterConfiguration?.ChatEnabled??!0),this.buttonText=this.scope.network.getResourceOrKeyName("web_chat_open_or_create_one_to_one")}createOrOpenChat(){var Zt=new Qt.Z(this.otherUserGuid);this.buttonDisabled=!0,this.chatRoomService.createOneToOneChat(Zt).subscribe(Wt=>{this.chatRelayService.addToChatroom(Wt.id.toString()),this.authenticationService.expireToken(this).then(qn=>{this.chatroomCache.rebuildCacheAndGetArrayStore(this).then(ni=>{this.router.navigate(["/chat"]).then(Di=>{this.router.navigate([`/chat/room/${Wt.id}`]).then(Hi=>{})})})})})}}Ct.\u0275fac=function(Zt){return new(Zt||Ct)(c.Y36(_n.Z),c.Y36(Xr.L),c.Y36(dn.D),c.Y36(_i.d),c.Y36(ar.F0),c.Y36(En.Z))},Ct.\u0275cmp=c.Xpm({type:Ct,selectors:[["app-chat-one-to-one-action-button"]],inputs:{otherUserGuid:"otherUserGuid"},decls:1,vars:3,consts:[["icon","fas fa-comments","stylingMode","contained","type","default",3,"text","visible","disabled","onClick"]],template:function(Zt,Wt){1&Zt&&(c.TgZ(0,"dx-button",0),c.NdJ("onClick",function(){return Wt.createOrOpenChat()}),c.qZA()),2&Zt&&c.Q6J("text",Wt.buttonText)("visible",Wt.chatIsEnabled)("disabled",Wt.buttonDisabled)},dependencies:[Ze.K]});var ft=(()=>{return(Dn=ft||(ft={}))[Dn.None=0]="None",Dn[Dn.BuiltIn=1]="BuiltIn",Dn[Dn.CookieBot=2]="CookieBot",Dn[Dn.Usercentrics=3]="Usercentrics",Dn[Dn.Simple=4]="Simple",ft;var Dn})(),zt=u(8096),wt=u.n(zt);const Xt={position:Wr.bottomRight,fallsbackLang:"en",header:"web_cookie_consent_title",text:"web_cookie_consent_text",animationDuration:800,buttons:{accept:"web_cookie_consent_accept_all",acceptSome:"web_cookie_consent_accept_some",reject:"web_cookie_consent_reject_all",saveAndClose:"web_cookie_consent_save_and_close",back:"web_cookie_consent_back"},links:[{caption:"web_cookie_consent_caption_pp",navigate:"pp"},{caption:"web_cookie_consent_caption_imprint",navigate:"imprint"}],settings:{caption:"web_cookie_consent_settings_caption",header:"web_cookie_consent_settings_title",text:"web_cookie_consent_settings_text",tabs:[{id:Ur_externalMedia,header:"web_cookie_consent_settings_tabs_external_media_title",caption:"web_cookie_consent_settings_tabs_external_media_caption",text:"web_cookie_consent_settings_tabs_external_media_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"ExternalMediaCookiesConsent",isChecked:!1,providers:[{caption:"Youtube",id:Rr_externalMedia_youTube,type:Si.ExternalMedia,isChecked:!1,tabId:Ur_externalMedia},{caption:"Facebook",id:Rr_externalMedia_facebook,type:Si.ExternalMedia,isChecked:!1,tabId:Ur_externalMedia},{caption:"Vimeo",id:Rr_externalMedia_vimeo,type:Si.ExternalMedia,isChecked:!1,tabId:Ur_externalMedia},{caption:"Giphy",id:Rr_externalMedia_giphy,type:Si.ExternalMedia,isChecked:!1,tabId:Ur_externalMedia}]},{id:Ur_analytics,header:"web_cookie_consent_settings_tabs_analytics_title",caption:"web_cookie_consent_settings_tabs_analytics_caption",text:"web_cookie_consent_settings_tabs_analytics_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"AnalyticsCookiesConsent",isChecked:!1,providers:[{caption:"Matomo",id:Rr_analytics_matomo,type:Si.Analytics,isChecked:!1,tabId:Ur_analytics},{caption:"Google Analytics",id:Rr_analytics_googleAnalytics,type:Si.Analytics,isChecked:!1,tabId:Ur_analytics}]},{id:"externalLoginPermissions",header:"web_cookie_consent_settings_tabs_external_login_title",caption:"web_cookie_consent_settings_tabs_external_login_caption",text:"web_cookie_consent_settings_tabs_external_login_text",providersHeader:"web_cookie_consent_settings_providers_title",apiTarget:"ExternalLoginCookiesConsent",isChecked:!1,providers:[{caption:"Facebook",id:Rr_externalLogin_facebook,type:Si.ExternalLogin,isChecked:!1,tabId:"externalLoginPermissions"}]}]}};class fn{constructor(){this.configuration=Xt,this.animationDuration=this.configuration.animationDuration,this.aosAnimateClass="aos-animate"}hide(Zt){return new Promise((Wt,qn)=>{try{this.toHtmlElement(Zt).classList.remove(this.aosAnimateClass),window.setTimeout(()=>Wt(),this.animationDuration)}catch{qn()}})}toHtmlElement(Zt){return Zt?.nativeElement}}fn.\u0275fac=function(Zt){return new(Zt||fn)},fn.\u0275prov=c.Yz7({token:fn,factory:fn.\u0275fac});var Ke=u(8239);const{bottomLeft:ht,bottomRight:on}=Wr;class hn{constructor(Zt,Wt,qn){this.platformId=Zt,this.configuration=Xt,this.position=this.configuration.position,this.isBrowser=(0,qi.NF)(this.platformId),this.currentPosition={isLeft:ht===this.position,isRight:on===this.position},this.tabs=[],this.isInitializedSource=new jn.xQ,this.isInitialized$=this.isInitializedSource.asObservable(),this.http=new Pn.eN(Wt),this.scopeService=qn,this.miniScope=qn.getMiniScope(),qn.observer.subscribe(ni=>{this.scope=ni,this.initState()})}initState(){var Zt=this;return(0,Ke.Z)(function*(){yield Zt.loadProfile();const Wt=Zt.configureTabs(Zt.configuration?.settings?.tabs);Zt.tabs=Zt.getInitialTabsState(Wt),Zt.isInitializedSource.next(!0),Zt.isInitializedSource.complete()})()}loadProfile(){var Zt=this;return(0,Ke.Z)(function*(){var Wt=yield Zt.http.get(`${Zt.miniScope.apiEndpoint}Profiles`).toPromise();Zt.profile=Wt})()}getTabs(){return this.tabs}getProviders(){return this.tabs.map(Zt=>Zt.providers).reduce((Zt,Wt)=>[...Zt,...Wt])}configureTabs(Zt){return Zt?.length?Zt.reduce((qn,ni)=>{const Di=ni.providers.reduce((Hi,cr)=>{const{id:Jr}=cr,{currentChapter:Er,currentScope:go}=this.scope??{};switch(ni.id){case Ur_analytics:switch(Jr){case Rr_analytics_googleAnalytics:if(!Er?.settings?.gaTrackingId)return Hi;break;case Rr_analytics_matomo:if(!Er?.settings?.piwikBaseUrl)return Hi}break;case"externalLoginPermissions":if(Jr===Rr_externalLogin_facebook&&!go?.network?.settings.availableFacebookLogin)return Hi}return[...Hi,cr]},[]);return Di?.length?[...qn,{...ni,providers:Di}]:qn},[]):[]}getInitialTabsState(Zt){return Zt.map(Wt=>(Wt.isChecked=this.isSwitcherEnabled(Wt),Wt.providers.forEach(qn=>qn.isChecked=this.isCookieEnabled(qn)),Wt))}isSwitcherEnabled(Zt){return Zt.providers.every(({id:Wt,tabId:qn})=>this.isPermissionGranted(qn,Wt))}isCookieEnabled(Zt){return this.isPermissionGranted(Zt.tabId,Zt.id)}save(){this.tabs.forEach(Zt=>{const Wt=(new Date).toISOString(),ni={...Zt.providers.map(Hi=>({[Hi.id]:{granted:Hi.isChecked,lastUpdate:Wt}})).reduce((Hi,cr)=>({...Hi,...cr}),{})};this.http.post(`${this.miniScope.apiEndpoint}Profiles/${Zt.apiTarget}`,ni).toPromise()})}isPermissionGranted(Zt,Wt){const qn=this.profile?.settings;return!!qn&&(qn[Zt][Wt]?.granted??!1)}}hn.\u0275fac=function(Zt){return new(Zt||hn)(c.LFG(c.Lbi),c.LFG(Pn.jN),c.LFG(En.Z))},hn.\u0275prov=c.Yz7({token:hn,factory:hn.\u0275fac});var an=u(8942);const Nn=["container"];function $n(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.ynx(0),c.TgZ(1,"div",10),c.NdJ("click",function(){const Di=c.CHM(Wt).index,Hi=c.oxw(2);return c.KtG(Hi.tabIndex=Di)}),c.TgZ(2,"div",11)(3,"span"),c._uU(4),c.qZA()()(),c.BQk()}if(2&Dn){const Wt=Zt.$implicit,qn=Zt.index,ni=c.oxw(2);c.xp6(2),c.ekj("cc-caption-active",ni.tabIndex===qn),c.xp6(2),c.hij(" ",ni.scope.network.getResourceOrKeyName(Wt.caption)," ")}}function ot(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div",20),c._uU(1),c.qZA()),2&Dn){const Wt=c.oxw(2).$implicit,qn=c.oxw(2);c.xp6(1),c.hij(" ",qn.scope.network.getResourceOrKeyName(Wt.providersHeader)," ")}}const Bt=function(){return{standalone:!0}};function nn(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",21)(1,"div",22)(2,"div",23),c._uU(3),c.qZA(),c.TgZ(4,"div",24)(5,"label",25)(6,"input",26),c.NdJ("ngModelChange",function(ni){const Hi=c.CHM(Wt).$implicit;return c.KtG(Hi.isChecked=ni)}),c.qZA(),c._UZ(7,"span",27),c.qZA()()()()}if(2&Dn){const Wt=Zt.$implicit;c.xp6(3),c.hij(" ",Wt.caption," "),c.xp6(3),c.Q6J("ngModel",Wt.isChecked)("ngModelOptions",c.DdM(5,Bt)),c.xp6(1),c.ekj("cc-round-disabled",!Wt.isChecked)}}function On(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div",13)(1,"div",14),c._uU(2),c.qZA(),c.TgZ(3,"div",15),c._uU(4),c.qZA(),c._UZ(5,"div",16),c.TgZ(6,"div",17),c.YNc(7,ot,2,1,"div",18),c.YNc(8,nn,8,6,"div",19),c.qZA()()),2&Dn){const Wt=c.oxw().$implicit,qn=c.oxw(2);c.xp6(2),c.Oqu(qn.scope.network.getResourceOrKeyName(Wt.caption)),c.xp6(2),c.Oqu(qn.scope.network.getResourceOrKeyName(Wt.text)),c.xp6(3),c.Q6J("ngIf",Wt.providersHeader),c.xp6(1),c.Q6J("ngForOf",Wt.providers)}}function nt(Dn,Zt){if(1&Dn&&(c.ynx(0),c.YNc(1,On,9,4,"div",12),c.BQk()),2&Dn){const Wt=Zt.index,qn=c.oxw(2);c.xp6(1),c.Q6J("ngIf",qn.tabIndex===Wt)}}function Rt(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",1,2)(2,"div",3)(3,"div",4),c.YNc(4,$n,5,3,"ng-container",5),c.qZA(),c.TgZ(5,"div",6),c.YNc(6,nt,2,1,"ng-container",5),c.qZA(),c.TgZ(7,"div",7)(8,"a",8),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.back())}),c._uU(9),c.qZA(),c.TgZ(10,"a",9),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.confirm())}),c._uU(11),c.qZA()()()()}if(2&Dn){const Wt=c.oxw();c.ekj("cc-left",Wt.currentPosition.isLeft)("cc-right",Wt.currentPosition.isRight)("app",Wt.userClientInfo.isApp),c.uIk("data-aos-duration",Wt.animationDuration),c.xp6(4),c.Q6J("ngForOf",Wt.tabs),c.xp6(2),c.Q6J("ngForOf",Wt.tabs),c.xp6(3),c.hij(" ",Wt.scope.network.getResourceOrKeyName(Wt.backCaption)," "),c.xp6(2),c.hij(" ",Wt.scope.network.getResourceOrKeyName(Wt.saveCaption)," ")}}class pt{constructor(Zt,Wt,qn){this.animationService=Zt,this.cookieStatusService=Wt,this.configuration=Xt,this.currentPosition=this.cookieStatusService.currentPosition,this.isHidden=!1,this.fallsbackLang=this.configuration.fallsbackLang,this.header=this.configuration.settings?.header,this.text=this.configuration.settings?.text,this.saveCaption=this.configuration.buttons.saveAndClose,this.backCaption=this.configuration.buttons.back,this.animationDuration=this.configuration.animationDuration,this.tabs=[],this.isCookieSettingsOpened=!0,this.isCookieSettingsOpenedChange=new c.vpe,this.accept=new c.vpe,this.tabIndex=0,this.scopeService=qn,this.scope=qn.getScope(),this.userClientInfo=qn.getUserClientInfo(),this.tabs=this.cookieStatusService.getTabs()}confirm(){this.back().finally(()=>this.accept.emit())}back(){return this.animationService.hide(this.containerRef).finally(()=>this.isHidden=!0).finally(()=>this.isCookieSettingsOpenedChange.emit(!1))}}pt.\u0275fac=function(Zt){return new(Zt||pt)(c.Y36(fn),c.Y36(hn),c.Y36(En.Z))},pt.\u0275cmp=c.Xpm({type:pt,selectors:[["settings"]],viewQuery:function(Zt,Wt){if(1&Zt&&c.Gf(Nn,5,c.SBq),2&Zt){let qn;c.iGM(qn=c.CRH())&&(Wt.containerRef=qn.first)}},inputs:{isCookieSettingsOpened:"isCookieSettingsOpened"},outputs:{isCookieSettingsOpenedChange:"isCookieSettingsOpenedChange",accept:"accept"},decls:1,vars:1,consts:[["class","cc-mobile-view cc-settings-container cc-shadow cc-window cc-floating cc-bottom","role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",3,"cc-left","cc-right","app",4,"ngIf"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-mobile-view","cc-settings-container","cc-shadow","cc-window","cc-floating","cc-bottom"],["container",""],[1,"cc-window","cc-floating","cc-settings-panel"],[1,"cc-tabs-captions"],[4,"ngFor","ngForOf"],[1,"cc-tab-items"],[1,"cc-compliance"],["aria-label","dismiss cookie message","role","button","tabindex","0",1,"cc-button","cc-button-reject",3,"click"],["aria-label","back message","role","button","tabindex","0",1,"cc-button","cc-button-accept",3,"click"],[1,"cc-tab-caption",3,"click"],[1,"cc-caption"],["class","cc-tab-item",4,"ngIf"],[1,"cc-tab-item"],[1,"cc-tab-header"],[1,"cc-tab-text"],[1,"cc-separator"],[1,"cc-tab-content"],["class","cc-tab-provider-caption",4,"ngIf"],["class","cc-tab-providers",4,"ngFor","ngForOf"],[1,"cc-tab-provider-caption"],[1,"cc-tab-providers"],[1,"cc-tab-provider"],[1,"cc-provider-caption"],[1,"cc-provider-silder"],[1,"cc-slider-label"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange"],[1,"cc-slider","cc-round"]],template:function(Zt,Wt){1&Zt&&c.YNc(0,Rt,12,11,"div",0),2&Zt&&c.Q6J("ngIf",!Wt.isHidden)},dependencies:[qi.sg,qi.O5,an.Wl,an.JJ,an.On],styles:['.overflow-text-3[_ngcontent-%COMP%]{word-break:break-all}.cc-right[_ngcontent-%COMP%]{right:24px}.cc-bottom[_ngcontent-%COMP%]{bottom:24px}.cc-settings-container[_ngcontent-%COMP%]{background-color:#fff;display:flex;flex-direction:row;width:480px;justify-content:space-between}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;margin-bottom:2rem;justify-content:space-around}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]{cursor:pointer;text-align:center;display:flex}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]:not(:first-child){margin-left:2rem}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{font-size:15px;text-align:center;display:flex;justify-content:center;align-items:flex-end;overflow:hidden;border-bottom:2px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-active[_ngcontent-%COMP%]{border-color:var(--color1)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{position:relative;width:100%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]   .cc-separator[_ngcontent-%COMP%]{margin:5px 0;border-bottom:1px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating.cc-settings-panel[_ngcontent-%COMP%]{padding:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-header[_ngcontent-%COMP%]{text-align:left;font-weight:600;line-height:30px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-message[_ngcontent-%COMP%]{padding:0 30px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-header[_ngcontent-%COMP%]{font-weight:700}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]{margin-top:20px;max-height:180px;overflow:auto}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-provider-caption[_ngcontent-%COMP%]{font-weight:700}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]{display:flex;justify-content:center;flex-direction:column}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)){border-top:1px solid #f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]{position:relative;width:54px;height:24px;margin:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]{position:absolute;cursor:pointer;inset:0 20px 0 -20px;background-color:#f0f0f0;transition:.4s}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round[_ngcontent-%COMP%]{border-radius:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round[_ngcontent-%COMP%]:before{background-color:var(--color1);border-radius:50%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round-disabled[_ngcontent-%COMP%]{border-radius:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider.cc-round-disabled[_ngcontent-%COMP%]:before{background-color:#d0d0d0;border-radius:50%}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:2px;background-color:#d0d0d0;transition:.4s}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{opacity:0;width:0;height:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]{background-color:#f0f0f0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]:before{background-color:var(--color1);left:-20px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus + .cc-slider[_ngcontent-%COMP%]{box-shadow:0 0 1px var(--color1)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-tab-provider[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]:before{transform:translate(52px)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]{text-align:center;display:flex}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]{text-decoration:none;font-size:15px;text-align:center;margin:0 10px;width:100%;border-radius:1rem;overflow:visible;line-height:45px;padding:0 30px;background-color:var(--color1-alpha70);color:#000}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]:hover{background-color:var(--color1-alpha80)}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]{background-color:#f0f0f0;color:#000}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]:hover{background-color:#d9d9d9}@media (max-width: 991px){.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]{height:20px;margin:5px 15px;overflow:hidden;display:inline-block}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{font-weight:400;padding:0;width:auto;text-decoration:underline;display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:288px}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-right-border-round[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-selected[_ngcontent-%COMP%]{text-decoration:underline}.cc-settings-container[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption-arrow[_ngcontent-%COMP%]{display:none;border:none}.cc-settings-container[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{padding-bottom:12px;position:initial}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]{left:24px}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]{flex-direction:column}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]{width:unset;margin:0}.cc-settings-container[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button[_ngcontent-%COMP%]:first-child{margin-bottom:1rem}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .cc-tabs-captions[_ngcontent-%COMP%]   .cc-tab-caption[_ngcontent-%COMP%]   .cc-caption[_ngcontent-%COMP%]{border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window[_ngcontent-%COMP%]{background-color:#000!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%], .app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-top-panel[_ngcontent-%COMP%]   .cc-close-button[_ngcontent-%COMP%]{background-color:#000}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-switchers[_ngcontent-%COMP%]   .cc-switcher-item[_ngcontent-%COMP%]:not(:first-child){border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-separator[_ngcontent-%COMP%]{border-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]{border-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]:not(:first-child):not(:nth-child(2)){border-top:1px solid #212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   .cc-slider[_ngcontent-%COMP%]{background-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-tab-items[_ngcontent-%COMP%]   .cc-tab-content[_ngcontent-%COMP%]   .cc-tab-providers[_ngcontent-%COMP%]   .cc-provider-silder[_ngcontent-%COMP%]   .cc-slider-label[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:checked + .cc-slider[_ngcontent-%COMP%]{background-color:#212121!important}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]{color:#fff;background-color:#212121}.app[_ngcontent-%COMP%]   .cc-window.cc-floating[_ngcontent-%COMP%]   .cc-compliance[_ngcontent-%COMP%]   .cc-button-reject[_ngcontent-%COMP%]:hover{background-color:#3b3b3b}}']});const jt=["container"],Un=function(){return{standalone:!0}};function oi(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",13)(1,"label",14),c._uU(2),c.qZA(),c.TgZ(3,"label",15)(4,"input",16),c.NdJ("ngModelChange",function(ni){const Hi=c.CHM(Wt).$implicit;return c.KtG(Hi.isChecked=ni)})("change",function(){const Di=c.CHM(Wt).$implicit,Hi=c.oxw(3);return c.KtG(Hi.switch(Di))}),c.qZA(),c._UZ(5,"span",17),c.qZA()()}if(2&Dn){const Wt=Zt.$implicit,qn=c.oxw(3);let ni;c.xp6(2),c.Oqu(qn.scope.network.getResourceOrKeyName(null!==(ni=null==Wt?null:Wt.caption)&&void 0!==ni?ni:"")),c.xp6(2),c.Q6J("ngModel",Wt.isChecked)("ngModelOptions",c.DdM(5,Un)),c.xp6(1),c.ekj("cc-round-disabled",!Wt.isChecked)}}function xi(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div",11),c.YNc(1,oi,6,6,"div",12),c.qZA()),2&Dn){const Wt=c.oxw(2);c.xp6(1),c.Q6J("ngForOf",Wt.tabs)}}function Ai(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",22)(1,"a",23),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw(3);return c.KtG(ni.openCookieSettings())}),c._uU(2),c.qZA()()}if(2&Dn){const Wt=c.oxw(3);c.xp6(2),c.hij(" ",Wt.scope.network.getResourceOrKeyName(Wt.settings.caption)," ")}}function Ui(Dn,Zt){1&Dn&&c._UZ(0,"div",24)}function ji(Dn,Zt){1&Dn&&c._UZ(0,"div",24)}function Qi(Dn,Zt){if(1&Dn&&(c.ynx(0),c.TgZ(1,"div",22)(2,"a",25),c._uU(3),c.qZA()(),c.YNc(4,ji,1,0,"div",20),c.BQk()),2&Dn){const Wt=Zt.$implicit,qn=Zt.index,ni=c.oxw(3);let Di;c.xp6(2),c.s9C("href",Wt.navigate,c.LSH),c.xp6(1),c.Oqu(ni.scope.network.getResourceOrKeyName(Wt.caption)),c.xp6(1),c.Q6J("ngIf",qn!=(null!==(Di=null==ni.links?null:ni.links.length)&&void 0!==Di?Di:1)-1)}}function Tr(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div",18),c.YNc(1,Ai,3,1,"div",19),c.YNc(2,Ui,1,0,"div",20),c.YNc(3,Qi,5,3,"ng-container",21),c.qZA()),2&Dn){const Wt=c.oxw(2);c.xp6(1),c.Q6J("ngIf",Wt.settings),c.xp6(1),c.Q6J("ngIf",(null==Wt.links?null:Wt.links.length)&&Wt.settings),c.xp6(1),c.Q6J("ngForOf",Wt.links)}}function br(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",2,3)(2,"button",4),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.close())}),c._uU(3,"X"),c.qZA(),c.TgZ(4,"h3"),c._uU(5),c.qZA(),c.TgZ(6,"span",5),c._uU(7),c.qZA(),c.YNc(8,xi,2,1,"div",6),c.TgZ(9,"div",7)(10,"a",8),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.reject())}),c._uU(11),c.qZA(),c.TgZ(12,"a",9),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.accept())}),c._uU(13),c.qZA()(),c.YNc(14,Tr,4,3,"div",10),c.qZA()}if(2&Dn){const Wt=c.oxw();let qn,ni,Di,Hi;c.ekj("cc-left",null==Wt.currentPosition?null:Wt.currentPosition.isLeft)("cc-right",null==Wt.currentPosition?null:Wt.currentPosition.isRight)("app",Wt.userClientInfo.isApp),c.uIk("data-aos-duration",Wt.animationDuration),c.xp6(5),c.Oqu(Wt.scope.network.getResourceOrKeyName(null!==(qn=Wt.header)&&void 0!==qn?qn:"")),c.xp6(2),c.hij(" ",Wt.scope.network.getResourceOrKeyName(null!==(ni=Wt.text)&&void 0!==ni?ni:"")," "),c.xp6(1),c.Q6J("ngIf",null==Wt.tabs?null:Wt.tabs.length),c.xp6(2),c.ekj("darkColor",Wt.isDarkBackground("cc-button-reject")),c.xp6(1),c.hij(" ",Wt.scope.network.getResourceOrKeyName(null!==(Di=null==Wt.buttons?null:Wt.buttons.reject)&&void 0!==Di?Di:"")," "),c.xp6(1),c.ekj("darkColor",Wt.isDarkBackground("cc-button-accept")),c.xp6(1),c.hij(" ",Wt.scope.network.getResourceOrKeyName(null!==(Hi=Wt.acceptButtonText)&&void 0!==Hi?Hi:"")," "),c.xp6(1),c.Q6J("ngIf",(null==Wt.links?null:Wt.links.length)||Wt.settings)}}function oo(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"settings",26),c.NdJ("isCookieSettingsOpenedChange",function(ni){c.CHM(Wt);const Di=c.oxw();return c.KtG(Di.isCookieSettingsOpened=ni)})("accept",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.accept())}),c.qZA()}if(2&Dn){const Wt=c.oxw();c.Q6J("isCookieSettingsOpened",Wt.isCookieSettingsOpened)}}class ro{constructor(Zt,Wt,qn){this.animationService=Zt,this.cookieStatusService=Wt,this.configuration=Xt,this.acceptButtonText=this.buttons?.accept,this.isHidden=!0,this.isCookieSettingsOpened=!1,this.isBuildInConsentManager=!1,this.isDarkBackground=ni=>(0,Sn.vw)(ni)===Mn.h.dark,this.isAnchorTagPresent=()=>window.location.href.includes("#cookie-consent"),this.scopeService=qn,this.scope=qn.getScope(),this.userClientInfo=qn.getUserClientInfo(),this.cookieStatusService.isInitialized$.subscribe(()=>{this.currentPosition=this.cookieStatusService.currentPosition,this.fallsbackLang=this.configuration.fallsbackLang,this.header=this.configuration.header,this.text=this.configuration.text,this.buttons=this.configuration.buttons,this.acceptButtonText=this.buttons?.accept,this.links=this.configuration.links,this.animationDuration=this.configuration.animationDuration,this.settings=this.configuration.settings,this.tabs=this.cookieStatusService.getTabs(),this.hideOnInitIfStatusAllowed(),this.setAcceptButtonText()})}ngOnInit(){this.cookieStatusService.isBrowser&&wt().init({duration:this.animationDuration})}isAnySwitcherUnChecked(){return this.tabs?.find(Zt=>!Zt.isChecked)}hideOnInitIfStatusAllowed(){this.isHidden=!(this.scope.profile.settings?.showConsent??1)}setAcceptButtonText(){const{accept:Zt,acceptSome:Wt=Zt}=this.buttons;this.acceptButtonText=this.isAnySwitcherUnChecked()?Wt:Zt}accept(){this.hide(),this.cookieStatusService.save()}reject(){this.hide(),this.tabs&&(this.tabs.forEach(Zt=>{Zt.isChecked=!1,Zt.providers.forEach(Wt=>{Wt.isChecked=!1})}),this.cookieStatusService.save())}hide(){this.animationService.hide(this.containerRef).finally(()=>{this.isHidden=!0,window.location.href=window.location.href.split("#")[0]})}close(){this.isHidden=!0,window.location.href=window.location.href.split("#")[0]+"#cc-close"}show(){this.isHidden=!1}switch(Zt){Zt.providers.forEach(Wt=>Wt.isChecked=Zt.isChecked),this.setAcceptButtonText()}openCookieSettings(){this.animationService.hide(this.containerRef).finally(()=>this.isCookieSettingsOpened=!this.isCookieSettingsOpened)}}function No(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div",1)(1,"div",2)(2,"p"),c._uU(3),c.qZA(),c.TgZ(4,"p")(5,"a",3),c._uU(6),c.qZA()()(),c.TgZ(7,"div",4),c.NdJ("click",function(){c.CHM(Wt);const ni=c.oxw();return c.KtG(ni.consentCookies())}),c._uU(8,"OK"),c.qZA()()}if(2&Dn){const Wt=c.oxw();c.ekj("closed",Wt.isClosed),c.xp6(3),c.hij(" ",Wt.scope.currentScope.network.getResourceOrKeyName("web_root_cookiesConsent_text")," "),c.xp6(3),c.Oqu(Wt.scope.currentScope.network.getResourceOrKeyName("web_root_cookiesConsent_privacyPolicy"))}}ro.\u0275fac=function(Zt){return new(Zt||ro)(c.Y36(fn),c.Y36(hn),c.Y36(En.Z))},ro.\u0275cmp=c.Xpm({type:ro,selectors:[["cookie-consent-builtIn"]],viewQuery:function(Zt,Wt){if(1&Zt&&c.Gf(jt,5,c.SBq),2&Zt){let qn;c.iGM(qn=c.CRH())&&(Wt.containerRef=qn.first)}},decls:2,vars:2,consts:[["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","class","cc-mobile-view cc-window cc-floating cc-bottom cc-shadow","data-aos","slide-up","data-aos-easing","ease-in-out",3,"cc-left","cc-right","app",4,"ngIf"],[3,"isCookieSettingsOpened","isCookieSettingsOpenedChange","accept",4,"ngIf"],["role","dialog","aria-live","polite","aria-label","cookieconsent","aria-describedby","cookieconsent:desc","data-aos","slide-up","data-aos-easing","ease-in-out",1,"cc-mobile-view","cc-window","cc-floating","cc-bottom","cc-shadow"],["container",""],["type","button",1,"cc-close-button",3,"click"],[1,"cc-message"],["class","cc-switchers",4,"ngIf"],[1,"cc-compliance"],["aria-label","dismiss cookie message","role","button","tabindex","0","id","cc-button-reject",1,"cc-button","cc-button-reject",3,"click"],["aria-label","dismiss cookie message","role","button","tabindex","0","id","cc-button-accept",1,"cc-button","cc-button-accept",3,"click"],["class","cc-links",4,"ngIf"],[1,"cc-switchers"],["class","cc-switcher-item",4,"ngFor","ngForOf"],[1,"cc-switcher-item"],[1,"cc-switcher-caption"],[1,"cc-slider-label"],["type","checkbox",3,"ngModel","ngModelOptions","ngModelChange","change"],[1,"cc-slider","cc-round"],[1,"cc-links"],["class","cc-link-item",4,"ngIf"],["class","cc-link-item-splitter",4,"ngIf"],[4,"ngFor","ngForOf"],[1,"cc-link-item"],[3,"click"],[1,"cc-link-item-splitter"],[3,"href"],[3,"isCookieSettingsOpened","isCookieSettingsOpenedChange","accept"]],template:function(Zt,Wt){1&Zt&&(c.YNc(0,br,15,17,"div",0),c.YNc(1,oo,1,1,"settings",1)),2&Zt&&(c.Q6J("ngIf",!Wt.isCookieSettingsOpened&&!Wt.isHidden||Wt.isAnchorTagPresent()),c.xp6(1),c.Q6J("ngIf",Wt.isCookieSettingsOpened))},dependencies:[qi.sg,qi.O5,an.Wl,an.JJ,an.On,pt],styles:['.cc-close-button{width:20px;text-align:center;right:20px;position:absolute;border:solid 1px;height:20px;font-weight:700}@media (max-width: 525px){.cc-mobile-view{transform:translate(-50%,-50%);top:50%;left:50%!important;height:-moz-fit-content;height:fit-content;width:90%!important}}.cc-bottom{bottom:24px}.cc-right{right:24px}.cc-left{left:24px}.cc-window{border-radius:1rem;background-color:#fff;position:fixed;overflow:hidden;display:flex;flex-wrap:nowrap;z-index:9999}.cc-window.cc-floating{padding:2rem;width:480px;flex-direction:column}.cc-window.cc-floating .cc-top-panel{display:flex;justify-content:flex-end}.cc-window.cc-floating .cc-top-panel .cc-close-button{border:none;cursor:pointer;font-size:18px;background-color:#fff}.cc-window.cc-floating .cc-message{margin-bottom:12px}.cc-window.cc-floating .cc-compliance{text-align:center;display:flex}.cc-window.cc-floating .cc-compliance .cc-button{text-decoration:none;font-size:15px;text-align:center;margin:0 10px;width:100%;border-radius:1rem;overflow:visible;line-height:45px;padding:0 30px;background-color:var(--color1-alpha70);color:#000}.cc-window.cc-floating .cc-compliance .cc-button:hover{background-color:var(--color1-alpha80)}.cc-window.cc-floating .cc-compliance .cc-button-reject{background-color:#f0f0f0;color:#000}.cc-window.cc-floating .cc-compliance .cc-button-reject:hover{background-color:#d9d9d9}.cc-window.cc-floating .cc-link{display:inline-block;padding:2.4px}.cc-window.cc-floating .cc-link:hover{text-decoration:underline}.cc-window.cc-floating .cc-switchers{padding:24px 0;display:flex;justify-content:center;flex-direction:column}.cc-window.cc-floating .cc-switchers .cc-switcher-item{display:flex;justify-content:space-between;align-items:center;padding:1rem 0}.cc-window.cc-floating .cc-switchers .cc-switcher-item:not(:first-child){border-top:1px solid #f0f0f0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-switcher-caption{margin:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label{position:relative;width:54px;height:24px;margin:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider{position:absolute;cursor:pointer;inset:0 20px 0 -20px;background-color:#f0f0f0;transition:.4s}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round{border-radius:24px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round:before{background-color:var(--color1);border-radius:50%}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round-disabled{border-radius:24px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider.cc-round-disabled:before{background-color:#d0d0d0;border-radius:50%}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:2px;background-color:#d0d0d0;transition:.4s}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input{opacity:0;width:0;height:0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider{background-color:#f0f0f0}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider:before{background-color:var(--color1);left:-20px}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:focus+.cc-slider{box-shadow:0 0 1px var(--color1)}.cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label input:checked+.cc-slider:before{transform:translate(52px)}.cc-window.cc-floating .cc-links{padding:12px;display:flex;justify-content:center;flex-wrap:wrap}.cc-window.cc-floating .cc-links .cc-link-item a{text-decoration:underline;cursor:pointer;margin:10px;color:#000}.cc-window.cc-floating .cc-links .cc-link-item a:hover,.cc-window.cc-floating .cc-links .cc-link-item a:visited,.cc-window.cc-floating .cc-links .cc-link-item a:focus{color:#000}.cc-window.cc-floating .cc-links .cc-link-item-splitter:before{content:"|";margin:0 10px}.cc-window.cc-floating .cc-revoke{cursor:pointer;padding:1rem;text-decoration:underline;background-color:var(--color1-alpha30)}.cc-window.cc-floating .cc-revoke.cc-bottom{bottom:6px;border-radius:1rem}.cc-window.cc-floating .cc-revoke.cc-right{right:36px}.cc-window.cc-floating .cc-revoke.cc-left{left:36px}.cc-window.cc-floating .cc-revoke.cc-animate{transform:translateY(2em);transition:transform 1s ease}.cc-window.cc-floating .cc-revoke:hover{transform:translateY(0)}.darkColor{color:#fff}@media (max-width: 991px){.cc-window.cc-floating{left:24px}.cc-window.cc-floating .cc-compliance{flex-direction:column}.cc-window.cc-floating .cc-compliance .cc-button{width:unset;margin:0}.cc-window.cc-floating .cc-compliance .cc-button:last-child{margin-bottom:1rem}}.cc-shadow{box-shadow:5px 1px 5px 2px #0000001f,0 1px 5px 2px #0000001f,0 1px 5px 2px #0000001f}@media (prefers-color-scheme: dark){.app .cc-window{background-color:#000!important}.app .cc-window.cc-floating .cc-top-panel .cc-close-button{background-color:#000}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-switcher-caption{color:#fff}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item:not(:first-child){border-color:#212121}.app .cc-window.cc-floating .cc-switchers .cc-switcher-item .cc-slider-label .cc-slider{background-color:#212121}.app .cc-window.cc-floating .cc-compliance .cc-button-reject{color:#fff;background-color:#212121}.app .cc-window.cc-floating .cc-compliance .cc-button-reject:hover{background-color:#3b3b3b}.app .cc-window.cc-floating .cc-links .cc-link-item a{color:#fff}.app .cc-window.cc-floating .cc-links .cc-link-item a:hover,.app .cc-window.cc-floating .cc-links .cc-link-item a:visited,.app .cc-window.cc-floating .cc-links .cc-link-item a:focus{color:#fff}}\n'],encapsulation:2});class uo{constructor(Zt,Wt){this.show=!0,this.isClosed=!1,this.http=new Pn.eN(Wt),this.scopeService=Zt,this.scope=Zt.getScope(),this.miniScope=Zt.getMiniScope(),this.show=this.getShow()}getShow(){return!this.scope.profile.hasCookiesConsented&&!this.scope.profile.isRegistered}consentCookies(){this.isClosed=!0,this.http.post(`${this.miniScope.apiEndpoint}profiles/cookiesConsent`,null).toPromise().then(()=>{this.scope.profile.hasCookiesConsented=(new Date).toISOString(),this.show=!1},function(){console.error("Could not obtain Cookies Consent.")})}}function $o(Dn,Zt){1&Dn&&(c.TgZ(0,"div"),c._UZ(1,"cookie-consent-builtIn"),c.qZA())}function pa(Dn,Zt){1&Dn&&(c.TgZ(0,"div"),c._UZ(1,"cookie-consent-simple"),c.qZA())}function ra(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div"),c.YNc(1,$o,2,0,"div",0),c.YNc(2,pa,2,0,"div",0),c.qZA()),2&Dn){const Wt=c.oxw();c.xp6(1),c.Q6J("ngIf",Wt.isBuildInConsentManager()),c.xp6(1),c.Q6J("ngIf",Wt.isSimpleConsentManager())}}uo.\u0275fac=function(Zt){return new(Zt||uo)(c.Y36(En.Z),c.Y36(Pn.jN))},uo.\u0275cmp=c.Xpm({type:uo,selectors:[["cookie-consent-simple"]],decls:1,vars:1,consts:[["class","cookiesConsent",3,"closed",4,"ngIf"],[1,"cookiesConsent"],[1,"cookiesConsent-text"],["ui-sref","app.privacyPolicy"],[1,"btn","btn-green","btn-block","btn-lg","cookiesConsent-button",3,"click"]],template:function(Zt,Wt){1&Zt&&c.YNc(0,No,9,4,"div",0),2&Zt&&c.Q6J("ngIf",Wt.show)},dependencies:[qi.O5],styles:[".cookiesConsent[_ngcontent-%COMP%]{position:fixed;bottom:15px;right:15px;width:300px;box-shadow:0 0 10px var(--black-10);border-radius:6px;animation-name:_ngcontent-%COMP%_slideInUp;animation-duration:1s;animation-fill-mode:both;animation-delay:2s;z-index:1000}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{padding:.5em 2em 1em;background-color:#e6e6e6;border-top-left-radius:4px;border-top-right-radius:4px}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--dark-gray)}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--medium-gray)}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-button[_ngcontent-%COMP%]{margin:0;border-top-left-radius:0;border-top-right-radius:0}.cookiesConsent.closed[_ngcontent-%COMP%]{animation-name:_ngcontent-%COMP%_slideOutDown;animation-delay:0s}@media all and (max-width: 500px){.cookiesConsent[_ngcontent-%COMP%]{bottom:10px;left:10px;right:10px;width:auto}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{padding:1em 1.5em}.cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline;font-size:1em}}@keyframes _ngcontent-%COMP%_slideInUp{0%{transform:translate3d(0,120%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes _ngcontent-%COMP%_slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,120%,0)}}@media (prefers-color-scheme: dark){.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]{box-shadow:0 0 10px var(--white-40)}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]{background-color:#333}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{color:var(--white-90)!important}.app[_ngcontent-%COMP%]   .cookiesConsent[_ngcontent-%COMP%]   .cookiesConsent-text[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:var(--white-60)}}"]});class wo{constructor(Zt){this.scopeService=Zt,this.scope=Zt.getScope(),this.manager=this.scope.currentChapter.settings.configurations.externalMediaConsentConfiguration?.Manager??ft.None,this.isConsentManagerEnabled=this.scope.globalSettings.configurations.global_module_configuration.ConsentManagementModuleEnabled}isBuildInConsentManager(){return this.manager===ft.BuiltIn}isSimpleConsentManager(){return this.manager===ft.Simple}}wo.\u0275fac=function(Zt){return new(Zt||wo)(c.Y36(En.Z))},wo.\u0275cmp=c.Xpm({type:wo,selectors:[["cookie-consent-component-manager"]],decls:1,vars:1,consts:[[4,"ngIf"]],template:function(Zt,Wt){1&Zt&&c.YNc(0,ra,3,2,"div",0),2&Zt&&c.Q6J("ngIf",Wt.isConsentManagerEnabled)},dependencies:[qi.O5,ro,uo]});var Uo=u(1007);class Ao{constructor(Zt,Wt){this.http=Zt,this.scopeService=Wt,this.apiEndpoint="",this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}getWorkflowTemplate(Zt,Wt,qn,ni){var Di=this;return(0,Ke.Z)(function*(){const Hi=Wt?"?preview=true":"";let cr=Hi;return Hi?(qn&&(cr+=`&articleId=${qn}`),ni&&(cr+=`&revisionId=${ni}`)):qn&&(cr=`?articleId=${qn}`),Di.http.get(`${Di.apiEndpoint}workflow/template/${Zt}${cr}`).toPromise()})()}saveWorkflowData(Zt){var Wt=this;return(0,Ke.Z)(function*(){return Wt.http.post(`${Wt.apiEndpoint}workflow/submission`,Zt).toPromise()})()}getWorkflowUploadBaseUrl(){return`${this.apiEndpoint}workflow/attachment/`}deleteSubmittedFile(Zt){var Wt=this;return(0,Ke.Z)(function*(){return Wt.http.delete(`${Wt.getWorkflowUploadBaseUrl()}${Zt}`).toPromise()})()}getEmbeddableWorkflowList(){var Zt=this;return(0,Ke.Z)(function*(){return Zt.http.get(`${Zt.apiEndpoint}workflow/list/`).toPromise()})()}}Ao.\u0275fac=function(Zt){return new(Zt||Ao)(c.LFG(Pn.eN),c.LFG(En.Z))},Ao.\u0275prov=c.Yz7({token:Ao,factory:Ao.\u0275fac});var Da=u(4846),io=u(1980),jo=u(7050);class ga{constructor(Zt,Wt){this.sanitizer=Zt,this.translationService=Wt}transform(Zt){var Wt=this;return(0,Ke.Z)(function*(){if(!Zt)return"";const qn=[Zt];try{const Hi=`<div>${(yield Wt.translationService.translateByUserLanguageCode(qn))[0].translation}</div>`;return Wt.sanitizer.bypassSecurityTrustHtml(Hi)}catch(ni){return console.error(ni),Zt}})()}}ga.\u0275fac=function(Zt){return new(Zt||ga)(c.Y36(o.H7,16),c.Y36(Da.z,16))},ga.\u0275pipe=c.Yjl({name:"apicodoTranslateText",type:ga,pure:!0});const $a=["workflowForm"],oa=["workflowFileUploader"];function ds(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div")(1,"p"),c._uU(2),c.qZA()()),2&Dn){const Wt=c.oxw();c.xp6(2),c.Oqu(Wt.scope.network.getResourceOrKeyName("web_common_workflow_preview_title"))}}function Xo(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div"),c._UZ(1,"div",4),c.ALo(2,"async"),c.ALo(3,"apicodoTranslateText"),c.qZA()),2&Dn){const Wt=c.oxw(2);c.xp6(1),c.Q6J("innerHTML",c.lcZ(2,1,c.lcZ(3,3,Wt.instructions)),c.oJD)}}function fa(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div")(1,"h4"),c._uU(2),c.qZA()()),2&Dn){const Wt=c.oxw(3);c.xp6(2),c.Oqu(Wt.scope.network.getResourceOrKeyName("web_workflows_uploaded_files_on_server"))}}const Ia=function(){return{class:"pull-right"}};function qo(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"dx-button",9),c.NdJ("onClick",function(){c.CHM(Wt);const ni=c.oxw(3);return c.KtG(ni.sendForm())}),c.qZA()()}if(2&Dn){const Wt=c.oxw(3);c.xp6(1),c.Q6J("text",Wt.scope.currentScope.network.getResourceOrKeyName("web_common_workflow_submit"))("elementAttr",c.DdM(3,Ia))("disabled",Wt.preview)}}function Ba(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div"),c._UZ(1,"dx-form",null,5),c.YNc(3,fa,3,1,"div",0),c.TgZ(4,"dx-file-uploader",6,7),c.NdJ("onFilesUploaded",function(ni){c.CHM(Wt);const Di=c.oxw(2);return c.KtG(Di.onFilesUploaded(ni))})("onUploaded",function(ni){c.CHM(Wt);const Di=c.oxw(2);return c.KtG(Di.onUploaded(ni))})("onValueChanged",function(ni){c.CHM(Wt);const Di=c.oxw(2);return c.KtG(Di.onValueChanged(ni))}),c.qZA(),c._UZ(6,"div",8),c.YNc(7,qo,2,4,"div",0),c.qZA()}if(2&Dn){const Wt=c.oxw(2);c.xp6(3),c.Q6J("ngIf",Wt.templateDefinition.withAttachments),c.xp6(1),c.Q6J("labelText",Wt.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"))("readyToUploadMessage",Wt.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"))("selectButtonText",Wt.scope.network.getResourceOrKeyName("web_workflow_select_file_text"))("uploadedMessage",Wt.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"))("uploadFailedMessage",Wt.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"))("multiple",Wt.fileUploaderOptions.multiple)("accept",Wt.fileUploaderOptions.accept)("allowedFileExtensions",Wt.fileUploaderOptions.allowedFileExtensions)("maxFileSize",Wt.scope.globalSettings.uploadMaxFileSizeInBytes)("uploadUrl",Wt.fileUploaderOptions.uploadUrl)("visible",Wt.templateDefinition.withAttachments),c.xp6(3),c.Q6J("ngIf",!Wt.preview&&Wt.templateDefinition.formDefinitionJSON)}}function Jo(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div")(1,"h2"),c._uU(2),c.qZA()()),2&Dn){const Wt=c.oxw(2);c.xp6(2),c.Oqu(Wt.scope.network.getResourceOrKeyName("web_common_workflow_completed"))}}function aa(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div")(1,"h2"),c._uU(2),c.qZA()()),2&Dn){const Wt=c.oxw(2);c.xp6(2),c.Oqu(Wt.scope.network.getResourceOrKeyName("domain_workflow_article_read_receipt_completed"))}}function Ma(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div"),c._UZ(1,"h1",2),c.ALo(2,"async"),c.ALo(3,"apicodoTranslateText"),c.YNc(4,Xo,4,5,"div",0),c.TgZ(5,"div",3),c.YNc(6,Ba,8,13,"div",0),c.YNc(7,Jo,3,1,"div",0),c.YNc(8,aa,3,1,"div",0),c.qZA()()),2&Dn){const Wt=c.oxw();c.xp6(1),c.Q6J("innerHTML",c.lcZ(2,5,c.lcZ(3,7,Wt.workflowName)),c.oJD),c.xp6(3),c.Q6J("ngIf",Wt.templateDefinition.multipleUse||!Wt.isOneTimeCompleted),c.xp6(2),c.Q6J("ngIf",Wt.templateDefinition.multipleUse||!Wt.isOneTimeCompleted||Wt.preview),c.xp6(1),c.Q6J("ngIf",Wt.isOneTimeCompleted&&"WorkflowTemplateArticleRelated"!==Wt.workflowType),c.xp6(1),c.Q6J("ngIf",Wt.isOneTimeCompleted&&"WorkflowTemplateArticleRelated"==Wt.workflowType)}}function xa(Dn,Zt){if(1&Dn&&(c.TgZ(0,"div"),c._UZ(1,"div",2),c.ALo(2,"async"),c.ALo(3,"apicodoTranslateText"),c.qZA()),2&Dn){const Wt=c.oxw();c.xp6(1),c.Q6J("innerHTML",c.lcZ(2,1,c.lcZ(3,3,Wt.brokenCordovaAppHint)),c.oJD)}}function ma(Dn,Zt){if(1&Dn&&(c._UZ(0,"h1",2),c.ALo(1,"async"),c.ALo(2,"apicodoTranslateText")),2&Dn){const Wt=c.oxw();c.Q6J("innerHTML",c.lcZ(1,1,c.lcZ(2,3,Wt.error)),c.oJD)}}class Qo{constructor(Zt,Wt,qn,ni,Di){this.workflowService=Zt,this.translationService=Wt,this.scopeService=qn,this.el=ni,this.renderer=Di,this.uploaderVisible=!1,this.ispreview=!1,this.isOneTimeCompleted=!1,this.isBrokenAndroidCordovaApp=!1,this.brokenCordovaAppHint="",this.instructions="",this.version="",this.workflowName="",this.workflowType="",this.attachmentData=[],this.templateDefinition={},this.reloadComplete=!1,this.uploaderStore={},this.readOnly=!1,this.preview=!1,this.isSaving=!1,this.error="",this.uploadedFiles=new Map,this.Oculus=window.Oculus,this.scope=this.scopeService.getScope(),this.uploaderVisible=!0;var Hi="*",cr=[],Jr=!0;this.isBrokenAndroidCordovaApp&&(Hi="image/jpg, image/jpeg, image/gif, image/png",cr=[".jpg",".jpeg",".gif",".png"],Jr=!1),this.fileUploaderOptions={labelText:this.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:this.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:this.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:this.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:this.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:Jr,accept:Hi,allowedFileExtensions:cr,value:[],maxFileSize:this.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:this.workflowService.getWorkflowUploadBaseUrl(),onValueChanged:function(Er){Er.element.find(".dx-fileuploader-upload-button").hide(),Er.value.forEach(go=>{Er.component.option("isValid",!0),go.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Er.component.option("isValid",!1)})},onFilesUploaded:function(Er){this.saveWorkflowData()},onUploaded:function(Er){var go=JSON.parse(Er.request.responseText);this.uploadedFiles.set(go,Er.file)}}}ngOnInit(){this.loadWorkflowData(),this.element=this.el.nativeElement}ngAfterViewInit(){this.formInstance=this.formComponent.instance}initializeForm(Zt){this.formComponent.instance.resetValues(),this.loadWorkflowData()}sendForm(){this.formInstance.validate().isValid&&(!this.templateDefinition.withAttachments||this.fileUploader.isValid)&&(this.templateDefinition.submissionDataJSON=JSON.stringify(this.formInstance.option("formData")),this.ispreview||(this.isSaving=!0,this.reloadComplete=!1,this.templateDefinition.withAttachments&&this.fileUploader.value.length?this.fileUploader.instance.upload():this.saveWorkflowData()))}saveWorkflowData(){var Zt=this;return(0,Ke.Z)(function*(){Zt.isSaving=!0,Zt.templateDefinition.oculusGuid=Zt.OculusTracker?Zt.OculusTracker.guid:null,Zt.templateDefinition.attachments=[],Zt.uploadedFiles.forEach((Wt,qn)=>{Zt.templateDefinition.attachments.push({id:qn,fileName:Wt.name})});try{if(yield Zt.workflowService.saveWorkflowData(Zt.templateDefinition),Zt.OculusTracker)try{Zt.OculusTracker.click()}catch(Wt){console.log("OCULUS CLICK FAILED",Wt)}Zt.fileUploader&&(Zt.fileUploader.instance.reset(),Zt.uploadedFiles.clear()),Zt.loadWorkflowData(),(0,Uo.Z)({message:Zt.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_success"),position:{my:"center center",at:"center center"},onShown:()=>{Zt.initializeForm({component:Zt.formInstance}),Zt.isSaving=!1},maxWidth:"540px"},"success",3e3)}catch(Wt){Zt.uploadedFiles.size&&(Zt.fileUploader.instance.reset(),Zt.fileUploader.instance.option("value",Array.from(Zt.uploadedFiles.values())),Zt.uploadedFiles.forEach((qn,ni)=>{Zt.workflowService.deleteSubmittedFile(ni)}),Zt.uploadedFiles.clear()),(0,Uo.Z)({message:Zt.scope.currentScope.network.getResourceOrKeyName("web_workflows_final_submission_error"),position:{my:"center center",at:"center center"},maxWidth:"540px"},"error",3e3),console.log(Wt)}})()}loadWorkflowData(){this.workflowService.getWorkflowTemplate(this.workflowid,this.ispreview,this.articleid,this.revisionid).then(Zt=>{Zt?this.processTemplateData(Zt):this.error="Workflow does not exist"},Zt=>{this.error="Error loading workflow"})}processTemplateData(Zt){this.workflowType=Zt.workflowType,this.templateDefinition=Zt,this.templateDefinition.articleid=this.articleid,this.isOneTimeCompleted=Zt.isOneTimeCompleted,this.version=Zt.version,this.instructions=Zt.fillInstructions,this.preview=this.ispreview||Zt.isDraft,this.workflowName=Zt.name;const Wt=JSON.parse(this.templateDefinition.formDefinitionJSON);if(Wt){var qn=this.scope.network.settings.configurations.apicodoTranslationSystemConfiguration?.MultilanguagueFeatureEnabled;if(1==qn){var ni=this.scope.profile,Di=this.scope.network.settings.languagePack.split("-")[0];if(null!=ni.activeUserLanguage?.vendorLanguageCode&&Di!=ni.activeUserLanguage?.vendorLanguageCode){var Hi=[],cr=[],Jr=[],Er=[],go=[];Wt.items.forEach(Br=>{"dxTextArea"===Br.editorType&&(Br.editorOptions.minHeight=25,Br.editorOptions.maxHeight=500,Br.editorOptions.autoResizeEnabled=!0),Hi.push(Br.helpText),cr.push(Br.label.text),Jr.push(Br.editorOptions.placeholder),Er.push(Br.editorOptions.switchedOffText),go.push(Br.editorOptions.switchedOnText)});var xo=Hi.concat(cr).concat(Jr).concat(Er).concat(go);this.translationService.translateByUserLanguageCode(xo).then(Br=>{for(var Mt=Hi.length,ln=0;ln<Mt;ln++)Wt.items[ln].helpText=Br[ln].translation,Wt.items[ln].label.text=Br[ln+Mt].translation,Wt.items[ln].editorOptions.placeholder=Br[ln+2*Mt].translation,Wt.items[ln].editorOptions.switchedOffText=Br[ln+3*Mt].translation,Wt.items[ln].editorOptions.switchedOnText=Br[ln+4*Mt].translation;this.formInstance.option(Wt);var Ht=JSON.parse(this.templateDefinition.submissionDataJSON);this.formInstance.option("formData",Ht),this.preview&&this.formInstance.validate()})}else{Wt.items.forEach(Br=>{"dxTextArea"===Br.editorType&&(Br.editorOptions.minHeight=25,Br.editorOptions.maxHeight=500,Br.editorOptions.autoResizeEnabled=!0)}),this.formInstance.option(Wt);var sa=JSON.parse(this.templateDefinition.submissionDataJSON);this.formInstance.option("formData",sa),this.preview&&this.formInstance.validate()}}else Wt.items.forEach(Mt=>{"dxTextArea"===Mt.editorType&&(Mt.editorOptions.minHeight=25,Mt.editorOptions.maxHeight=500,Mt.editorOptions.autoResizeEnabled=!0)}),this.formInstance.option(Wt),sa=JSON.parse(this.templateDefinition.submissionDataJSON),this.formInstance.option("formData",sa),this.preview&&this.formInstance.validate()}if(this.reloadComplete=!0,!this.preview&&(this.templateDefinition.multipleUse||!Zt.isOneTimeCompleted)&&(this.OculusTracker=this.Oculus.trackWorkflowImpression(this.element,{c:this.scope.currentChapter.slug,n:this.scope.network.slug,iw:Zt.id,iwt:Zt.workflowTemplateId})),this.templateDefinition.withAttachments){this.uploaderVisible=!0;var Pa="*",Zo=[],da=!0;this.isBrokenAndroidCordovaApp&&(Pa="image/jpg, image/jpeg, image/gif, image/png",Zo=[".jpg",".jpeg",".gif",".png"],da=!1),this.fileUploaderOptions={labelText:this.scope.network.getResourceOrKeyName("web_workflow_or_drop_file_here"),readyToUploadMessage:this.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"),selectButtonText:this.scope.network.getResourceOrKeyName("web_workflow_select_file_text"),uploadedMessage:this.scope.network.getResourceOrKeyName("web_workflow_uploaded_message"),uploadFailedMessage:this.scope.network.getResourceOrKeyName("web_workflow_upload_failed_message"),multiple:da,accept:Pa,allowedFileExtensions:Zo,value:[],maxFileSize:this.scope.globalSettings.uploadMaxFileSizeInBytes,uploadMode:"useButtons",uploadUrl:this.workflowService.getWorkflowUploadBaseUrl(),onValueChanged:function(Br){Br.element.find(".dx-fileuploader-upload-button").hide(),Br.value.forEach(Mt=>{Br.component.option("isValid",!0),Mt.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Br.component.option("isValid",!1)})},onFilesUploaded:function(Br){this.saveWorkflowData()},onUploaded:function(Br){var Mt=JSON.parse(Br.request.responseText);this.uploadedFiles.set(Mt,Br.file)}}}}onUploaded(Zt){const Wt=JSON.parse(Zt.request.responseText);this.uploadedFiles.set(Wt,Zt.file)}onFilesUploaded(Zt){this.saveWorkflowData()}onValueChanged(Zt){Zt.element.querySelectorAll(".dx-fileuploader-upload-button").forEach(qn=>{this.renderer.setStyle(qn,"display","none")}),Zt.component.option("isValid",!0),Zt.value.forEach(qn=>{qn.size>this.scope.globalSettings.uploadMaxFileSizeInBytes&&Zt.component.option("isValid",!1)})}}Qo.\u0275fac=function(Zt){return new(Zt||Qo)(c.Y36(Ao),c.Y36(Da.z),c.Y36(En.Z),c.Y36(c.SBq),c.Y36(c.Qsj))},Qo.\u0275cmp=c.Xpm({type:Qo,selectors:[["app-workflow-renderer"]],viewQuery:function(Zt,Wt){if(1&Zt&&(c.Gf($a,5),c.Gf(oa,5)),2&Zt){let qn;c.iGM(qn=c.CRH())&&(Wt.formComponent=qn.first),c.iGM(qn=c.CRH())&&(Wt.fileUploader=qn.first)}},inputs:{workflowid:"workflowid",ispreview:"ispreview",articleid:"articleid",revisionid:"revisionid"},decls:4,vars:4,consts:[[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[1,"dx-viewport"],[1,"text",3,"innerHTML"],["workflowForm",""],["uploadMode","useButtons","name","file",3,"labelText","readyToUploadMessage","selectButtonText","uploadedMessage","uploadFailedMessage","multiple","accept","allowedFileExtensions","maxFileSize","uploadUrl","visible","onFilesUploaded","onUploaded","onValueChanged"],["workflowFileUploader",""],[1,"divider",2,"margin-top","12px"],["type","default",3,"text","elementAttr","disabled","onClick"]],template:function(Zt,Wt){1&Zt&&(c.YNc(0,ds,3,1,"div",0),c.YNc(1,Ma,9,9,"div",0),c.YNc(2,xa,4,5,"div",0),c.YNc(3,ma,3,5,"h1",1)),2&Zt&&(c.Q6J("ngIf",Wt.preview),c.xp6(1),c.Q6J("ngIf",!Wt.error&&!Wt.readOnly),c.xp6(1),c.Q6J("ngIf",Wt.isBrokenAndroidCordovaApp),c.xp6(1),c.Q6J("ngIf",Wt.error))},dependencies:[qi.O5,Ze.K,io.z,jo.Y,qi.Ov,ga]});class Aa{constructor(Zt,Wt){this.http=Zt,this.scopeService=Wt,this.apiEndpoint="",this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint}search(Zt,Wt,qn){var ni=this;return(0,Ke.Z)(function*(){return Wt||(Wt=1),qn||(qn=20),ni.http.post(ni.apiEndpoint+"pixabay/search",{query:Zt,language:2,page:Wt,perPage:qn}).toPromise()})()}create(Zt){var Wt=this;return(0,Ke.Z)(function*(){return Wt.http.post(Wt.apiEndpoint+"pixabay/create",Zt).toPromise()})()}}Aa.\u0275fac=function(Zt){return new(Zt||Aa)(c.LFG(Pn.eN),c.LFG(En.Z))},Aa.\u0275prov=c.Yz7({token:Aa,factory:Aa.\u0275fac});var ba=u(1759),wa=u(8208),_a=u(1740),Jt=u(6812);function Ut(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"div",17),c._UZ(2,"img",18),c.qZA(),c._UZ(3,"br"),c.TgZ(4,"p"),c._uU(5),c.TgZ(6,"dx-text-box",19),c.NdJ("valueChange",function(ni){c.CHM(Wt);const Di=c.oxw();return c.KtG(Di.imageData.tags=ni)}),c.qZA()(),c.TgZ(7,"p"),c._uU(8),c.TgZ(9,"span"),c._uU(10),c.qZA()(),c.TgZ(11,"p"),c._uU(12),c.TgZ(13,"span"),c._uU(14),c.qZA()(),c.TgZ(15,"div")(16,"input",20),c.NdJ("ngModelChange",function(ni){c.CHM(Wt);const Di=c.oxw();return c.KtG(Di.alwaysShowImageDescription=ni)}),c.qZA(),c.TgZ(17,"label",21),c._uU(18),c.qZA(),c._UZ(19,"br"),c.qZA()()}if(2&Dn){const Wt=c.oxw();c.xp6(2),c.Q6J("src",null==Wt.imageData?null:Wt.imageData.largeImageURL,c.LSH),c.xp6(3),c.hij(" ",Wt.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_tags"),": "),c.xp6(1),c.Q6J("value",Wt.imageData.tags),c.xp6(2),c.hij(" ",Wt.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_source"),": "),c.xp6(2),c.Oqu(Wt.imageData.pageURL),c.xp6(2),c.hij(" ",Wt.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_image_author"),": "),c.xp6(2),c.Oqu(Wt.imageData.user),c.xp6(2),c.Q6J("checked",Wt.alwaysShowImageDescription)("ngModel",Wt.alwaysShowImageDescription),c.xp6(2),c.hij(" ",Wt.scope.currentScope.network.getResourceOrKeyName("web_assetDialog_createImage_show_description_checkbox")," ")}}function At(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Di=c.CHM(Wt).$implicit,Hi=c.oxw();return c.KtG(Hi.selectImage(Di))}),c.qZA()()}if(2&Dn){const Wt=Zt.$implicit;c.xp6(1),c.Q6J("src",Wt.largeImageURL,c.LSH)}}function An(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Di=c.CHM(Wt).$implicit,Hi=c.oxw();return c.KtG(Hi.selectImage(Di))}),c.qZA()()}if(2&Dn){const Wt=Zt.$implicit;c.xp6(1),c.Q6J("src",Wt.largeImageURL,c.LSH)}}function Ni(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Di=c.CHM(Wt).$implicit,Hi=c.oxw();return c.KtG(Hi.selectImage(Di))}),c.qZA()()}if(2&Dn){const Wt=Zt.$implicit;c.xp6(1),c.Q6J("src",Wt.largeImageURL,c.LSH)}}function jr(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"img",22),c.NdJ("click",function(){const Di=c.CHM(Wt).$implicit,Hi=c.oxw();return c.KtG(Hi.selectImage(Di))}),c.qZA()()}if(2&Dn){const Wt=Zt.$implicit;c.xp6(1),c.Q6J("src",Wt.largeImageURL,c.LSH)}}class Eo{constructor(Zt,Wt){this.scopeService=Zt,this.pixabayService=Wt,this.chunks=[],this.error=!1,this.working=!1,this.submitBtnOptions={icon:"add",text:"",onClick:()=>{this.submitRequest()}},this.submitAndCloseBtnOptions={icon:"fa fa-check",text:"",onClick:()=>{this.submitAndClose()}},this.cancelBtnOptions={icon:"back",text:"",onClick:()=>{this.visiblePopup=!1}},this.scope=this.scopeService.getScope(),this.imageData=null,this.searchTerm="",this.data={},this.delay=2e3,this.pageSize=12,this.totalPages=1,this.currentPage=1,this.visiblePopup=!1,this.alwaysShowImageDescription=this.scope.currentScope.network.settings.configurations.alwaysShowImageDescriptionDefaultValue,this.timerId=null,this.searchBox={valueChangeEvent:"keyup",placeholder:this.scope.currentScope.network.getResourceOrKeyName("web_asset_pixabay_search_placeholder"),onValueChanged:ni=>{this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout(()=>{this.searchTerm!=ni.value&&(this.currentPage=1),this.searchTerm=ni.value,this.search(this.searchTerm)},this.delay)}},this.search=ni=>{this.pixabayService.search(ni,this.currentPage,this.pageSize).then(Di=>{this.data=Di,this.totalPages=Di.total/this.pageSize,this.data=JSON.parse(JSON.stringify(Di));var Hi=Math.ceil(this.pageSize/4);Di.hits.length<this.pageSize&&(Hi=Math.ceil(Di.hits.length/4)),this.chunks=this.spliceIntoChunks(Di.hits,Hi),this.totalPages=Math.ceil(this.totalPages)})},this.selectImage=ni=>{this.imageData=ni,this.visiblePopup=!0},this.submitAndClose=()=>{this.submitRequest(),this.dismiss&&this.dismiss()},this.goNext=()=>{this.currentPage<this.totalPages&&(this.currentPage++,this.search(this.searchTerm))},this.goPrev=()=>{1!=this.currentPage&&(this.currentPage--,this.search(this.searchTerm))},this.popupOptions={width:"100%",height:"95vh",container:".modal-content",contentTemplate:"info",showTitle:!1,title:"Information",dragEnabled:!1,closeOnOutsideClick:!0,showCloseButton:!1,position:{at:"center",my:"center"},bindingOptions:{visible:"$ctrl.visiblePopup","position.of":"positionOf"},toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"add",text:"",onClick:()=>{this.submitRequest()}}},{widget:"dxButton",toolbar:"bottom",location:"before",options:{icon:"fa fa-check",text:"",onClick:()=>{this.submitAndClose()}}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{icon:"back",text:"",onClick:()=>{this.visiblePopup=!1,this.imageData=null}}}]}}ngOnInit(){this.search(this.searchTerm)}submitRequest(){this.visiblePopup=!1;var Wt={articleId:this.callerdata.articleId,blobId:new Qt.Z,staticArticleId:this.callerdata.staticArticleId,snipId:this.callerdata.snipId,sponsoredArticleId:this.callerdata.sponsoredArticleId,networkId:0,chapterId:0,eventId:this.callerdata.eventId,author:this.imageData.user,source:this.imageData.pageURL,sourceUrl:this.imageData.largeImageURL,text:this.imageData.tags,title:this.imageData.tags,width:this.imageData.imageWidth>this.imageData.imageHeight?1280:Math.ceil(1280/this.imageData.imageHeight*this.imageData.imageWidth),height:this.imageData.imageHeight>this.imageData.imageWidth?1280:Math.ceil(1280/this.imageData.imageWidth*this.imageData.imageHeight),alwaysShowImageDescription:!!this.alwaysShowImageDescription};this.pixabayService.create(Wt).then(qn=>{(0,Uo.Z)({message:this.imageData.tags,position:{my:"center top",at:"center top"}},"success",3e3),this.callback&&(qn.assetImage.assetImageUrl=this.imageData.largeImageURL,this.callback(qn),this.visiblePopup=!1,this.imageData=null)},()=>{this.error=!0,this.working=!1})}spliceIntoChunks(Zt,Wt){for(var qn=[];Zt.length>0;){var ni=Zt.splice(0,Wt);qn.push(ni)}return qn}}Eo.\u0275fac=function(Zt){return new(Zt||Eo)(c.Y36(En.Z),c.Y36(Aa))},Eo.\u0275cmp=c.Xpm({type:Eo,selectors:[["app-pixabay-searcher"]],inputs:{callback:"callback",callerdata:"callerdata",dismiss:"dismiss"},decls:26,vars:16,consts:[[1,"dx-viewport"],[1,"row"],[1,"col-sm-7"],[1,"col-xs-1"],["height","30","src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAAAAADuvYBWAAAfcElEQVR42u2d92PU5B/Hv3/Lc72WDkopsxQsAiJo2QgUQSqjKlBFKqsgQ4SqWAqCKOBgyFI2FQRcBVFkFJGhTBkFyrZAGaVtvoeFJk+SJ3kyLk1y79ePd3lG8rpLnvXJ8z8CIo7/4RJAOoB0AOkA0gGkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDiAdQDqkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDiAdQDqAdADpANIBpEM6gHQA6QDSAaQDSAeQDiAdQDqAdADpANIBpANIB5AOIB1AOqQDSAeQDiAdQDqAdADpANIBpANIB5AOIB1AOoB0AOlS+n87IAqqI0z6ZkG4MLsVZEeS9EYVQoiqndkx8B0x0t8VHnPzy44wHiHSjwsiB3MTIT0CpHcXKO6u6Q3pvmeFIOf0e80g3dck3BGUVG4fEoR0/zJaUOfyvKch3a/sE5jszomDdD/STtDi1rLOkO4/Fgg6HJ2cDOn+InhV0OXBpn4BSPcRrwhcnJ+ZCum+4QeBk6qiodGQ7gtSKgV+rn/WHtJ9wAzBGMVjEyDd4wTOCEYp/7onpHuaDMEMJ/KaQLp3WSeY4+F3A4OQ7k0a3BNMUzo3DdK9yNuCFap/HREL6Z7jkGCRf5ekQ7q3eF6wgcMTkyDdQywWbOH++owApHuEejcFuzj7YQqke4LXBRup/PHVIKS7n18Ee7m6oB2ku5ynqgXb2Tc6AdLdzEdCOLizojuku5aoi0KYOP5uI0h3J5lMaWU3rGqv+DYzCtJdyGamsk9ihhVVWfV+4aNWkO42asKTVWkT+jq14LxV7dU7s+tBuqt4lynr95oDAv03PbDq/eai5yDdRRxnmsqpPSZ5yl+WW3UHxydCukvozo5poSKZuiy7bVX73bV9IN0VrGA6WiY7Mj7nd8t/93/ebwbpdY5qeHINXZRHt/n0iuWh+e1ZQUivW0Yx7fylenwwa3ulVe+XP2kD6XXJXqaaKawkzT/4x/Jt/nePhD77Ujo7PPmBVoRqn7X3rGq/tawLpNcN7PDkTdoJG0z40/Lf/a8pyZDuPBrhyf11Ez+/2PKCmweb+gcg3WHY4cnneWTUe/0Xy1Px5wtSId1R2OHJBZw5PDXH8sRsVdGwGEh3DHZ4chX/3y8qc8tDq95vfP4spDsEOzy5yFA+jaedsNyqKx5XH9IdQCM8eZjRvHqsKreqvfybFyA97LDDk2+YeMgmjCm2/Hc/6bbQZ/9JX8u8+J+by7D9wutWtT/cOigI6eFDIzzZdLMqeujPltdXuSn02XfS2eHJB6xk2yL/nOX1Vb+9GQvpYYEdnjzOYgOx38b7Vr2XuSP02W/S2eHJ5dY7Tw0nH7XcqjsyKQnSbYYdnvyNLfl3/uqW9dDnvgFItxGN8GS7ustxObst/93P5adAum2ww5NP2ljK0/Mu2xD6HA3p9sAOT86ztZzgEOvrq64teAbSbYAdnvywqd1lNXv/tFdDn/0lnR2evDUcxfVec9dy6PPKHpBuCY3w5EHhKTFx/EEPhj77Sjo7PLk0fEPfHb+0vL6qYrOzoc++ks4OT/44rP3E7J2W11dd/OgpSDcDOzy5unWYi2710QXLQ/O/vF4P0g3DDk/+zYH2ROa3FV4JffaTdHZ48pvO3GnePW65VffnhAaQbgB2eHKZY1Oa3Vfesar9XvhDn30knR2evNTBWiSM3mc99PmD5pDOOVSSycLh6PFnFlxzd+hzBOyfXgdEv/qj5aH5K5+2gXSPkWJ9fZWwJyce0r1FoO8Gy+urbi/vCukeI2nSEct/97/tD32G9DDTaWmZ5dDnwpcCkO4tYt/cbXlovqSgpWek9ztqhPW+9d7641Lroc/DY7whfaKxmSYf/92Dg7dZ7sTZFvocXukfGxuRiCJ+pmneKcutugOt3C/d4GLh7sTn9FptMfT5erTrpScbvKN94v9WXf3cP6xIX+j+27vRvU7PBUkE0OEL8+ur2rteepzhJmtuZHTiYrJ3mAt9LnZ/Q+5D40Hc9UmE0HJWiQnpY10vva+JPsr3UZFinUQNKDS6vqo8we3S292su5aKR0ieeszQxfna7YMzfU22VtbERJJ20m2FgfVVPd0tPaHA9Kv3irtGlHUSP2ov71uqiJult5p+1UpndHO/YGR5bzef63rluUr6KAm5s1dYn0Mu27Jw2ihX0jk82oOv/KDb7H3YxFXShcjh07D93VM+PKtdtH2Bt5DuFumh9VUZ67S2lhgE6T6UHiLpKycCbyHdVdKdCbyFdFdJdybwFtJdJd2ZwFtId5V0ZwJvId1N0jUCb+Mg3afSHQq8hXQXSdfYF7gTpPtUOntf4CME0n0qnf06g8mQ7lPp7H2B7zeEdJ9KZ+8LvJFAuj+la+wL3A/SfSqdvS/wuQCk+1Q6e1/gmQTS/SldY1/gFpDuU+nsfYF/JpDuT+ka+wIPhXSfSmfvC3w92lvSK28ZoTySpa9jFvkZ8Zb0Ipt+7P6XrrEvcHtI56P87L4tS/Jz8xau33X8ZrUHpLND+YsJpOvq/m5M76fp6M7oFl1eWXze3dLDti+w/6WXLB7AjH/sMGN/lWulh3VfYB9Lryqe0VGngMZvbbnjTunh3hfYn9IrlvBtWRszvtSF0uv9yyzwBUhndQ1X829wFTvthuukv8Es7ySBdFWqC9sZKqd+wW2XSd/FLC8P0lX5Md1whZPn33OTdPa+wJVNIV2FE+Y2qG2+yUXS5zCL20YgXeWqmO7RTK10i3SNfYEHQ7ryaT7TwpqSjOsuke74vsCeln7L2h8h9U93SHd8X2AvSz/R1mK9Y1e7Qbrz+wJ7WPpWGwYoJz6se+ns8OTdBNJpFtuyRPTFijqXzg5PHgnpNNtteotsTl1L78FussRBOsXhBLuuwNw6lr6SWdZXBNKlXEqx7QoECutUukZ4cmdvSt8Za4QB/Csl0m28BLHFdSl9NLOoo8Sb0sNEpb0DVU1K6lC6U+HJnpc+xeaL8OztOpP+DLOkB8mQLmGt7Vfh1TqTzg5P3kQgXfJAb6Zfo+YjPlj83YGSv35e+VEuz+tafq0j6dHs8OT+kC5hll51Oub/QU1QX1o6QG+7iPTqupHOvsWcD0C6yGXtHnogRy0o7PaCJO1TWFs30n9kFjSTQDrvOvCXWDsM3JxeTytd6v26kK4RnpwK6SLHtKaY2xRpLYofpnUO8+pC+oc2DWv5XfrLGvUYUKaddoHGeH3ideelB9h7OQyDdJFfNKrxju4CqJ8S2aknOS+dPe58IwbSRdjjr9EredZdsJclBM86Lp0dnvw5gXTxic6uxNdcGZQ0ZmYw12npSex12M9CushcZh2mcuawh3njTHda+kRmKQcIpIswR9cyuRc0r2SexnmHpR9mlpIL6SIXWDVoW2bDdM3nzkpn31nK60O6yCJWDXYayOQeawFGb2els8OTVxNIF8lgVKC/oVxWMXKJuuak9Fh2eHIvSJcMpTJG4wKHjK3BYL26Z4WT0tnhyacIpOvf9rIN5sMKC8x0Ujo7PPk9SJeQxSj/hNGMnlPPJ+a2c9LTHA5P9qx0RgusveGM5jBOZK9z0p0OT/aq9HJG8fm2Deytckx61CVmEYMhXcIhRvEmgk8ZQ/B5jkl/mb1IJAjpEjaol97CRFaMV7kMcUz6FmYJ8wik6y+OG2UiK8YahXZOSW/MjpZ9GtKlMFb/zzSR1QmGC6ekT2MWsJtAupRR6qV/ZSKrfxmjZE5JZ3cycyCdZwnRNjN5xarnVemM9DoIT/aq9Ez10v8wk1eael5lzkhnL/JZRiCdgvGa1BIzeTHePnfJEekJ7D0sukA6TV/10o+byauDel7XHJE+hpn9XwTSuYbed5rJixESes8R6fuNL/CIWOlvqpe+1kRWD9SzCjrSeq+T8GSvSp+gXvonJrI6r55VkiPS2eHJhQTS+cZOp5jIirEbTqoT0qPZDYf+kC5nqXrpvUxktUQ9q95OSK+b8GSvSt/FmKU08WLfl9SzGueEdHZ4cgGBdDmXGMV/bTinsmijT1v7pGuEJ7eEdCUJZidEOSdpyfcOSM83OvUX4dIZw1WxhjdpHc44kbPhl64Rnjwc0lX4kFH+YoP5XGRMt7QWwi+9LzPr8IYne1b6QUb5jQ1usceYoyXTHZC+npn1FwTSVahmBSQZW0dxjPVCir3hl5503+h0QKRLZ43JkYQrRnIZxMilSVX4pbPDk/8gkG6sfTvaQCY7WJmME8Ivvc7Ck70rvYIZw7uCO49zycZHTWyTzg5PvpsI6QyymQPav3PmcIf5Zo+EB+GXzu5nrCGQzmAjsw6NznFlUDWEmcMwIezSNcKTe0M6i1vRzEp04GnMVWu8RH1D+KWPYOZ7mkC6meZOi8O6qcuz2Mlb3g+/dPbLpt+DdDaX49nViNfbjeWcVleYbwGOJeka4cnNIF2DfM3JDM299XY10kj6XFX4pbPfVLedQLoGtxtr1aQNOzDwZJbmOfwshF26RnjyEEjXZJF2XXqqLzW9khs0OQ9in/Q6DU/2tvSHaTq16bdUvh95+da3dPbuC/zpgHT2XegTAunacOxokz57T0nNJqrV146sGByrm4D7VUVq0hNe4lrbphGe3AbS9frafKE/gcbpmT1aRnMdG33WivRmwvkCjo0Y2BO3vxNI16PY9tUG/FOz6tJDI31Fw/RqVbfhyV6Xznzlo1mGVFmW/mjly+eaL+xmhyffjod0Dt6x9Ro8a2DhjYb0R/egcexX+bLfXLWcQDoHlQNsvATJZwW7pIc6Ct/0ZMzhsVdvdoV0Lsra2nYFgr8KNkp/NAqU10TloLoOT/aBdOF0kl1XYIlgs/TQUMJ3AxWjLXUdnuwH6cIOmwaxcgX7pYconUuPIbFfZepQeLIvpAtLbIn26/cwPNJDwwm/jpAMCi1k5lhIIJ2fb23o6YypEMIlPcS/S57sKKYRnvwSpBvhcAurbbgvDJdpSPqjOk78r/HxGvOAkihIN8SVHpaqnVQkhF26INxblxEgPzG/nkUg3RgPrAxgtj0lOCE9xNm5dR+e7B/p2nvmajOgTHBKulYnhEC6cX5qbKrKUdMrBTdIz4Z0U+un8k204gcfN1mazdJvxkC6OS7nGhyo6f676bJslv4lgXSznHzFQG3bbLZQks3SO0K6Bfb15Kxr06WVgmukHySQbomiMfpNupjMZeXWSrFX+nhIt0rVnmlaK2XrZ2+8bbkMW6U7GZ7sV+mP+PujdNUqNsv9ucKO/G2VvoZAuk1c3L5gbK8mTxr0gcTnhuevO1xlU+a2Su8N6XYP0d44d+yfK+XV9uZqp/R/CKR7Ajulvw/p3pXe8KaprJwNT4Z0e6WTmOwdJtoM2wmke1h6iJazDG8alQXpHpcemrcbUGioU3glCOmelx4i+Z2/bcoJ0j0jPUS3Fbyjfm0h3S/SCYl/aw9PRnsIpPtHeoi28/XfafcWpPtLemhxddb32jO4jocnQ3rYpYdoPuOMRj4rCKT7UHqIjLXMvVu7QrpPpRPS4O1Dqtn8TSDdt9JDPL9Y5dXP70C6r6UTUu+NXbIJ3opkSPe59BBpc6hXhBYSSPe/9NDQ/MtbxFD4AZAeEdJDNJ72+FVyF6IgPVKkh+ix6tES7NkE0iNIOiEJY/ZXtfKD9DWRgx2b4LYkfpAOvAWkQzqAdADpANIBpANIB5AOIB1AOoB0AOkA0gGkA0gHkA4gHUA6pANIB5AOIB1AOoB0AOkA0gGkA0gHkA4gHUA6gHQA6QDSAaRDOoD0iGJ54RPGQnqkIG6+sRzSIR3SIR3SIR3SIR3SvcRlSId0SId0SId0SId0SId0SPcIpZAO6ZAO6ZAO6ZAO6ZAO6ZAO6ZAO6ZAO6T6U3uj5ga/3SauneUwvcUfL6Mcf9fhSSp56ukA+dVRrVhXSsybPXz53cnbPWC7pu0dJyXkts3enZ5IMn3j0U71HvL9kUf64Ie00jkqYXUsXnQwza4/8wMXSG4/67vyDmutYff3Qwowg68BR4t61T7TEHKa2tB2pmm4GdcxatUNiBq35VzykYv/8l4O60tWoOrJwUH3+U0+ZsqdKTHx967ss8U3Foybo5Pll7ZG33Cq96Xv7qmQXrqzw9SCvdNK2nEqaqpLsxUrpIUfiFAcEB6+9pdBXOivFhPRHVB6YEMN16u/sq1Yk/i07Wu3YJvzSF7ldeuKcctXrdnp4gFM6GU0l3KVMl3JNesC/aYoDeh5hyFvf3JT0EJcm1dO9rb+nfurC1SlRfpZeb+oN5mU79BKndFJIpXtH8TfeR91+X1ZczjXVzErcmqi8/pf49k4vnRKree4vnmCn/eN55SOQX/piV0tPO6552dbU45Pe4Lw01f32skSfU5nOlLfxJt/SrERxmknpgvC3xtbnzQq1HxBzAz6VnnFT56rtb8olnfSkntmH6PbAMCrLH2QXM+pr3X/ss2alC1e6MX/u5/XSbpA92Rv5Q/r4h7pX7WI6l3Qyk0o1R/pVuzvSr87IelTBTfrqbnY1K124N1z91NtztAt+pNubyfzSl7hX+lyeq3a3D5f0qN+pe2N38Zv4Y1R2HWVtiu08lbjT16x0oXqG2ql3usGTdk8D30nP4btqN9N4pJMW1JPin/jaL9ZRub1B1yF2J18l7g8wK10QcpWn3uMWX9IjieakL3Wr9B4POC/aiUQe6eQ1KtHSJx+/TX38JfPqSO7IlWqdqGRJqouGpFf0VPQWrqjcEcrVehCr/CW9hfzE/103+dVu7TJGfPCL/ElfFOSRTpZTiTJrPuxaQd0vZSM+r8j7ZxvfeL4hIXEpWQvkHfdCVekb0lq3afdM+w7Ppad37tq9R89efV6evrpE3pqTDfEEiuQ/63n9WtcjUQ065K6R3/Yl3cuG/NK/cqn0/fTJbZeMvCaOkHXkCrikx1Hd3tL//prJlIDSZnSKVLrzcH6ktL3cfR394xumJl11wiXQd6OsD0J3GKbR327tIH3ejD5K9xySfCSdvhnvl90Bo0ZRjdvyZjzSyXMP5H9N+j/1UH6f/ZZq/OXJBwXSqSbg9Sa80kNk0T+nbOl3ze9T//Ie8p/MO/fUpwmS+KUvc6X04EnqSascZ2+yR3rAMi7pZDJ1pUcQUkB9MFkuVfoUvT9EZbhwsTT5OgPSSQuqN3E6qNqJDvFnsjJtO+pG1692BIpf+nJXSh8n/YuNUx2XXiU9pC2XdPIDNfPSYkCV5tSa9OjbGar1XCC9UTQ2IJ0EZ0sLl5xiC+n9aLfqdFxT6V9iq1+k1yvVGip/fJv7TnLMZj7pjS5LLe+lWkVH5VNrnaT37k66Y1uCMP3Jhxe4FlFIhyEuBlVz/J4xOJ8iGa57+OSxksgvfYUbpQ+UnPhK1kEJkgb0wwZc0kl/5syJcmpN+i/OYE6ESZ7rJ5XSl2nNoR1Ru0kHJRN+/0Qzx6erlb81r0uX9K7OsOed20o6zK/zSSfzWSsbFFNr5Jz47S/sqnaTVKKXQvpXWmf5rORGvqR2ak1QnpRm+1s48fij+uJH4z0oPVDKdeKSRqiwgVN69EF16QWKI9Ml3/bgGugQ1iikL9U8z+mS2fWA8pz+CrCTJlxV1K6+5iCf66V3lgw0apw4aS52XsqCfNLJ06rrEn5QFvOhZGZDq7IdJZ1mhfQlmucZdUhM21U5mpellfYz8bj8x78DfukrXSi9gN2NotmieOrqSlcd0j+rslhRMp3dWbMSkkdzglz6Yu0TnSQmzVN0tv/UTPq8oq8oka73ospVLpS+Qax+K945mVxe6dLcGVNr/3GC98LkiRk9nuct4ZXepFL+9O8tZvapdlqxs/6HQvoYD0rfLT7WtA9MFvu6c7mlJ56TSx+hclSM6KNYuxJ9FA2QEuYEDvsusaPmg4liZjnaSb8RH201H8SLSUfrFPu1C6WfUbTPWIgtvtXc0kl32TTZIrWD0tSnslRorGgOlvC13qlnyBlF76IL9w2miR+k362t0wKdIw/Ke1U80mWL3PeqLqZuLx4wTacS4jj6ern0Qp2k4gDNw5r1leKK9OoE7aSD5V3FOP4af+M+6Um6o3G1bKs98pQB6cnUlEaWXg/iZZ1KiE//7XLpO3WSvieWEiXrf1/QSdpNPk0skb5QJ+1q90lvJdZ+lM6hm+W3Ry7p2+jp7BZqx7wgHvCqTiWOyqWLg6SHdJKKPfUKeRPrmk7SLnLpsQL3U9GF0p/il14sTk3wS58qXz8fp/1Pz9epxCG5dDGO6hy39NuKkfdk7aSd5LeioNiq/Y37v+JF6SXyziqH9G6KNbYbtZtnev+bA3LpP8pVcow3X1U0z3prJ5WMGA6s+eSSchZAt9PgQenxor9PeKUnqSwoV1uRKo72HTEqXRzlFGJ471T/1HyQzT2ArpS+l/u3Vu5l6VnikZN4pW9Tm25RWSFxSlw/EWVQ+kdizn01Uybelbfze+j0JFWlD6r5ZJ28E8fRBvSg9FWKhY660qeqL1xvrzhQEuQw2KD0IWLSzzVTvi8eOPXxsJp47zofbVD6bPGTKZpJF3tZevx1cV1yHJ/0boygmbOKZtMY8cvDvNK/r/mgvjj6c1HLXKxyqoxIloG9zSt9sKLDoTlun3Ddy9IlE2GPL7ee9CRmhNgu+RBNquTLV4xJly7l1TInWXNf8WTVpST+qjSWU/rjh1PUNZVFGSosETwsPfmWcpGZjvRt7JgDxSNUshDtaMCYdMlDvZQ9sBaUTAL8XDtGLChu+bzSJaOrwgn2HebFai9Ll6xQrm7GJZ1+oK+hp9bHsge3tSeoRek/PP6ktWTR4w7m5Z+mOiwoWZ1/LZVPepZyZFb4mJWuPnWz85p0aSBq7WiEpnT6gX4gSMcoV7xAH91AEs1aNdqQdCINe9zIuE2Ml/zjSsWHS64k6bmnDEmPkoZzzGOkWyF4WHpOtdp6Ji3pDanfePnT8hVz8j/WF9JQsvGGpGdI81WfVM+V1n+u+HmcdI3uxdZGpJM3pMUuUfuxRRUI3pUeoOKYtxEe6XTU8aOFBsFddBBoPHV8S+r2P8WIdEItxZurMo83Vur8Xqp68zR0C3jGiPSoU9TjS1lsym7Bu9JbUQIr2/NIf5c62y3/fdboAjMK8ZEY6svdfXWli4vpOlFz9icGyjubc6i12NRUaLCYCoL+srmudLFzMZyq8W/yGg9WhL17R3qTL6hYU+nSeLZ0+oFe+rhf3oUOiM5nTUzUBLX245ZOPqWT/ip9Y0b8aPo9E8X0kF/aHYFDe7rqNKDsvRlHpDGXHVcq+yyekB5M6TFjr2zly/H6HNIbUvGp1f1UxmAefU5PrjeUv17g5LdzR3Zt3ozmsJr02NOy+PKiT0d1b0ACKT1HbpQtyH0gv4XL127e37Myb0hbWan9VKUnXZClLS0YmBaMS273WoHq4m83Sr9ZQnNZ5YUAN6SxKUzp9AN9odpE13/Nuw5UqowqQ+8X+En6T1Rba31d7U0LytbCBkOlCq9JkvY2VmM3Sud5kQM1BcmSTj/Qj0omv2IOUF+do8djPzYtnWRW8iVSadw3OGdaOhlXHQHS6R40Q3p36oF+j5peoV8XKfxGtXkDs01Ll7UDWWxTm8NLOWSk2KFU2gm+l34vm3BIpx/oT6Zha+/h9F9SFoo04gF/bX6mk07i+K/viFOfS9pi4CIMo9NO9rn0y7I3uDGkb9f4Pyru/fIx1x7XzEonmbpviZrPepN04GPT0kn2be6kZd6TfljxFmZV6bTUa00VJdIdnYd9ZPU5ZlY6aX9G8/jybI3LMJL7FqN4AWFr7afDtzsV4XeekX6nQHlrVJNOP9DVlkTE/023sWXBVAl510xKJ7Gz7rEPL2ypeR2eWV9pUjqJWcD+xZwZIBlZOOUt6RWLGqukVZEue6CrBp08XUa37uXzoXFTuV7nXaR2NltZt6leuleizWou7Wr3i9Tl6stF7heEZu5vcUZJukz61eVpqmlVpNMP9BPqDadBdEdni2Kyot6ki+akE9J2vvJlgPfX9+G6FmkrKsxJD13GRco3Vx6Y/uiB2Fyvxm6Ufuzj7qxVDUrp9AO9Ip2RUNY1m6UyQdU+Z9H+uyakh8YRs746JvlVXdw0viH31Ujo/e6G09UmpIcag13mHhbbdNUH8x4/tiRvu1jgQul/FNKsnTcxq1MjjbTtJtRS0y6OnfOplOHMabsPqOPmMUINgh2yXh06LDv7jRFv5uSMGj12XO54scQJAzVqljxo/IwFK77IH/9KqvFLkpjx6mtDh2e//sabI3PeGjVmbC5VbGutpMmdXps2a3xW1xbRavN4I7w1nw7M0kDy5sL2kB4ZzJNMxwQgPSJIkXQiPyOQHhFIX7XZGdIjghGSrv8JAumRwNvS+faRkB4JUG9eORWEdP8TXEAN6rxJIN3vBLLpdXu/BCDd10Q1e2mxLHjzViqBdH+ysqioaMdhtQWlOQTSfcop1izNZwTSI036ugCkR5r076MJpEeY9IVBAumRJf1+jr1lQLr7pe9sRyA9sqRfGGp7GZDuaunVu4YGCaRHkPR7xfPbhqUMO6SnXq0lG9YssnlP0dYNKxd9MnN0x2C4yvgfLnPkAemQDiAdQDqAdADpANIBpANIB5AOIB1AOoB0AOkA0gGkA0gHkA7pANIBpANIB5AOIB1AOoB0AOkA0gGkA0gHkA4gHUA6gHQA6ZAOIB1AOoB0AOkA0gGkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDukA0gGkA0gHkA4gHUA6gHQA6QDSAaQDSAeQDiAd8PN/61o505uOgdwAAAAASUVORK5CYII="],[1,"col-xs-11"],["valueChangeEvent","keyup",3,"placeholder","onValueChanged"],[1,"col-sm-5"],["stylingMode","contained","text","Prev","icon","chevronprev","type","normal","width","120",3,"onClick"],["stylingMode","contained","text","Next","icon","chevronnext","type","normal","width","120",3,"onClick"],["id","pixabayPopup","width","100%","height","95vh","contentTemplate","info",3,"showTitle","dragEnabled","closeOnOutsideClick","showCloseButton","visible"],[4,"dxTemplate","dxTemplateOf"],["widget","dxButton","toolbar","bottom","location","before",3,"options"],["widget","dxButton","toolbar","bottom","location","after",3,"options"],[1,"pixrow"],[1,"pixcolumn"],[4,"ngFor","ngForOf"],[1,"pixa-view"],[3,"src"],[3,"value","valueChange"],["type","checkbox","id","web_assetDialog_createImage_show_description_checkbox","name","web_assetDialog_createImage_show_description_checkbox",1,"btn","checkbox",3,"checked","ngModel","ngModelChange"],["for","web_assetDialog_createImage_show_description_checkbox"],[3,"src","click"]],template:function(Zt,Wt){1&Zt&&(c.TgZ(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",1)(4,"div",3),c._UZ(5,"img",4),c.qZA(),c.TgZ(6,"div",5)(7,"dx-text-box",6),c.NdJ("onValueChanged",function(ni){return Wt.searchBox.onValueChanged(ni)}),c.qZA()()()(),c.TgZ(8,"div",7)(9,"dx-button",8),c.NdJ("onClick",function(){return Wt.goPrev()}),c.qZA(),c._uU(10),c.TgZ(11,"dx-button",9),c.NdJ("onClick",function(){return Wt.goNext()}),c.qZA()()(),c.TgZ(12,"dx-popup",10),c.YNc(13,Ut,20,10,"div",11),c._UZ(14,"dxi-toolbar-item",12)(15,"dxi-toolbar-item",12)(16,"dxi-toolbar-item",13),c.qZA(),c.TgZ(17,"div",14)(18,"div",15),c.YNc(19,At,2,1,"div",16),c.qZA(),c.TgZ(20,"div",15),c.YNc(21,An,2,1,"div",16),c.qZA(),c.TgZ(22,"div",15),c.YNc(23,Ni,2,1,"div",16),c.qZA(),c.TgZ(24,"div",15),c.YNc(25,jr,2,1,"div",16),c.qZA()()()),2&Zt&&(c.xp6(7),c.Q6J("placeholder",Wt.searchBox.placeholder),c.xp6(3),c.AsE(" ",Wt.currentPage,"/",Wt.totalPages," "),c.xp6(2),c.Q6J("showTitle",!1)("dragEnabled",!1)("closeOnOutsideClick",!0)("showCloseButton",!1)("visible",Wt.visiblePopup),c.xp6(1),c.Q6J("dxTemplateOf","info"),c.xp6(1),c.Q6J("options",Wt.submitBtnOptions),c.xp6(1),c.Q6J("options",Wt.submitAndCloseBtnOptions),c.xp6(1),c.Q6J("options",Wt.cancelBtnOptions),c.xp6(3),c.Q6J("ngForOf",Wt.chunks[0]),c.xp6(2),c.Q6J("ngForOf",Wt.chunks[1]),c.xp6(2),c.Q6J("ngForOf",Wt.chunks[2]),c.xp6(2),c.Q6J("ngForOf",Wt.chunks[3]))},dependencies:[qi.sg,ba.p6,wa.QjJ,Ze.K,_a.x,Jt.I,an.Wl,an.JJ,an.On],styles:[".pixrow[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;padding:0 4px}.pixcolumn[_ngcontent-%COMP%]{flex:25%;max-width:25%;padding:0 4px}.pixcolumn[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-top:8px;vertical-align:middle;width:100%}.pixa-view[_ngcontent-%COMP%]{width:100%;max-height:67vh;text-align:center}.pixa-view[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{max-width:80%;max-height:67vh}@media screen and (max-width: 800px){.pixcolumn[_ngcontent-%COMP%]{flex:50%;max-width:50%}}@media screen and (max-width: 600px){.pixcolumn[_ngcontent-%COMP%]{flex:100%;max-width:100%}}"]});var _t=u(6666),it=u(5257);class We{constructor(Zt,Wt){this.http=Zt,this.scopeService=Wt,this.apiEndpoint="",this.connectionDataSubject=new jn.xQ,this.connectionData$=this.connectionDataSubject.asObservable(),this.scope=this.scopeService.getScope(),this.apiEndpoint=this.scope.apiEndpoint,this.mediaApiBaseUrl=this.scope.globalSettings.configurations.apicodoMediaBaseUrl,this.getConnectionDataObservable().subscribe()}getVideoData(Zt){var Wt=this;return(0,Ke.Z)(function*(){var ni={headers:{Authorization:"Bearer "+(yield Wt.getConnectionData()).token}};return Wt.http.get(Wt.mediaApiBaseUrl+"/api/Thumbnail/GetWebFrontendData?fileId="+Zt,ni).toPromise().then(Di=>Di.data).catch(Di=>{console.error("getVideoData() FAIL",Di)})})()}getConnectionDataInternal(){var Zt=this;return(0,Ke.Z)(function*(){return Zt.http.get(Zt.apiEndpoint+"media/token").toPromise().then(Wt=>(Zt.apicodoMediaConnectionData=Wt,Zt.apicodoMediaConnectionData.isInitialized=!0,Zt.apicodoMediaConnectionData.expiresOn=new Date(Date.now()+36e5),Zt.connectionDataSubject.next(Zt.apicodoMediaConnectionData),Zt.apicodoMediaConnectionData))})()}getConnectionDataObservable(){return(0,_t.D)(this.getConnectionDataInternal())}getConnectionData(){var Zt=this;return(0,Ke.Z)(function*(){return Zt.apicodoMediaConnectionData&&Zt.apicodoMediaConnectionData.expiresOn>Date.now()?Zt.apicodoMediaConnectionData:Zt.connectionData$.pipe((0,it.q)(1)).toPromise()})()}}We.\u0275fac=function(Zt){return new(Zt||We)(c.LFG(Pn.eN),c.LFG(En.Z))},We.\u0275prov=c.Yz7({token:We,factory:We.\u0275fac});var Qe=u(2625);const rt=["mediaGrid"];function $t(Dn,Zt){1&Dn&&c._UZ(0,"i",18)}function pn(Dn,Zt){if(1&Dn){const Wt=c.EpF();c.TgZ(0,"div")(1,"div")(2,"button",19),c.NdJ("click",function(){const Di=c.CHM(Wt).$implicit,Hi=c.oxw();return c.KtG(Hi.executeClickCallback(Di))}),c._UZ(3,"img",20),c.qZA()()()}if(2&Dn){const Wt=Zt.$implicit,qn=c.oxw();c.xp6(3),c.Q6J("src",qn.apicodoBaseUrl+"/api/Asset/"+Wt.data.id+"/Thumbnail000001.jpg",c.LSH)}}const Gn=function(){return[5,10,25,50,100]};class Jn{constructor(Zt,Wt){this.mediaService=Zt,this.scopeService=Wt,this.uploading=!1,this.isInitialized=!1,this.scope=this.scopeService.getScope(),this.apicodoBaseUrl=this.mediaService.mediaApiBaseUrl,this.odataBaseUrl=this.apicodoBaseUrl+"/api/odata/",this.apiBaseUrl=this.apicodoBaseUrl+"/api/"}ngAfterViewInit(){this.gridInstance=this.dataGrid.instance,this.isInitialized=!0}ngOnInit(){this.mediaService.getConnectionData().then(Zt=>{this.uploadHeaders={Authorization:"Bearer "+Zt.token,withCredentials:!1},this.dataSource={store:{type:"odata",url:this.getGridUrl(),key:"id",keyType:"Guid",version:4,withCredetntials:!0,beforeSend:Wt=>{Wt.headers={Authorization:"Bearer "+Zt.token,withCredentials:!1}}}}})}getFileUploaderUrl(){return this.apiBaseUrl+"Upload"}getGridUrl(){return this.odataBaseUrl+"MediaFiles"}refreshGrid(){this.gridInstance.refresh()}uploaderValueChanged(Zt){var Wt=Zt.value;Wt.length>0&&Wt.each(Wt,(qn,ni)=>{var Di=new Qt.Z;ni.guid=Di.valueOf()})}uploadStarted(Zt){this.uploading=!0}uploadAborted(Zt){this.uploading=!1}uploadError(Zt){this.uploading=!1}uploaded(Zt){this.refreshGrid(),this.uploading=!1}executeClickCallback(Zt){this.callback&&this.callback({text:this.apicodoBaseUrl+"/play/"+Zt.data.id+"?guiMode=iframe",title:Zt.data.title,attachment:Zt.data.id,thumbnailUrl:this.apicodoBaseUrl+"/api/Asset/"+Zt.data.id+"/Thumbnail000001.jpg"})}}Jn.\u0275fac=function(Zt){return new(Zt||Jn)(c.Y36(We),c.Y36(En.Z))},Jn.\u0275cmp=c.Xpm({type:Jn,selectors:[["app-apicodo-media-management"]],viewQuery:function(Zt,Wt){if(1&Zt&&c.Gf(rt,5),2&Zt){let qn;c.iGM(qn=c.CRH())&&(Wt.dataGrid=qn.first)}},inputs:{callback:"callback"},decls:20,vars:28,consts:[[1,"modal-title"],[1,"dx-viewport"],["accept","video/*","uploadMode","instantly","name","file",3,"labelText","readyToUploadMessage","selectButtonText","uploadedMessage","uploadFailedMessage","multiple","chunkSize","uploadUrl","uploadHeaders","onValueChanged","onUploadStarted","onUploadAborted","onUploadError","onUploaded"],["mediaFileUploader",""],["id","mediaFileUploader"],["class","fa fa-spinner fa-pulse",4,"ngIf"],[1,"clearfix"],["id","mediaGridContainer"],["height","100%","width","100%","noDataText","",3,"dataSource","remoteOperations","showRowLines","showColumnHeaders","wordWrapEnabled"],["mediaGrid",""],[3,"pageSize"],[3,"showPageSizeSelector","allowedPageSizes"],[3,"visible","highlightCaseSensitive"],["dataField","id","cellTemplate","idTemplate",3,"width","allowFiltering"],["dataField","title","caption","Name",3,"visible"],["dataField","description","caption","Description",3,"visible"],["dataField","createdOn","sortIndex","0","sortOrder","desc","caption","Created",3,"visible"],[4,"dxTemplate","dxTemplateOf"],[1,"fa","fa-spinner","fa-pulse"],[1,"btn","btn-green","action-button",3,"click"],["height","20",3,"src"]],template:function(Zt,Wt){1&Zt&&(c.TgZ(0,"p",0),c._uU(1),c.qZA(),c.TgZ(2,"div",1)(3,"dx-file-uploader",2,3),c.NdJ("onValueChanged",function(ni){return Wt.uploaderValueChanged(ni)})("onUploadStarted",function(ni){return Wt.uploadStarted(ni)})("onUploadAborted",function(ni){return Wt.uploadAborted(ni)})("onUploadError",function(ni){return Wt.uploadError(ni)})("onUploaded",function(ni){return Wt.uploaded(ni)}),c.qZA(),c.TgZ(5,"div",4),c.YNc(6,$t,1,0,"i",5),c.qZA(),c._UZ(7,"div",6),c.TgZ(8,"div",7)(9,"dx-data-grid",8,9),c._UZ(11,"dxo-paging",10)(12,"dxo-pager",11)(13,"dxo-search-panel",12)(14,"dxi-column",13)(15,"dxi-column",14)(16,"dxi-column",15)(17,"dxi-column",16),c.YNc(18,pn,4,1,"div",17),c.qZA()(),c._UZ(19,"div",6),c.qZA()),2&Zt&&(c.xp6(1),c.Oqu(Wt.scope.network.getResourceOrKeyName("web_asset_media_upload_instructions")),c.xp6(2),c.Q6J("labelText",Wt.scope.network.getResourceOrKeyName("web_upload_drag_drop_here"))("readyToUploadMessage",Wt.scope.network.getResourceOrKeyName("web_workflow_ready_to_upload"))("selectButtonText",Wt.scope.network.getResourceOrKeyName("web_upload_video_button"))("uploadedMessage",Wt.scope.network.getResourceOrKeyName("web_upload_uploaded_message"))("uploadFailedMessage",Wt.scope.network.getResourceOrKeyName("web_upload_upload_failed_message"))("multiple",!1)("chunkSize",5e5)("uploadUrl",Wt.getFileUploaderUrl())("uploadHeaders",Wt.uploadHeaders),c.xp6(3),c.Q6J("ngIf",Wt.uploading),c.xp6(3),c.Q6J("dataSource",Wt.dataSource)("remoteOperations",!0)("showRowLines",!1)("showColumnHeaders",!1)("wordWrapEnabled",!0),c.xp6(2),c.Q6J("pageSize",5),c.xp6(1),c.Q6J("showPageSizeSelector",!0)("allowedPageSizes",c.DdM(27,Gn)),c.xp6(1),c.Q6J("visible",!0)("highlightCaseSensitive",!0),c.xp6(1),c.Q6J("width",75)("allowFiltering",!1),c.xp6(1),c.Q6J("visible",!0),c.xp6(1),c.Q6J("visible",!1),c.xp6(1),c.Q6J("visible",!1),c.xp6(1),c.Q6J("dxTemplateOf","idTemplate"))},dependencies:[qi.O5,ba.p6,Qe.e,wa.qvW,wa.ilc,wa.sXh,wa.XXE,io.z]});const yi=JSON.parse('{"de":{"Yes":"Ja","No":"Nein","Cancel":"Abbrechen","Close":"Schlie\xdfen","Clear":"L\xf6schen","Done":"Fertig","Loading":"Laden...","Select":"Ausw\xe4hlen...","Search":"Suchen...","Back":"Zur\xfcck","OK":"OK","dxCollectionWidget-noDataText":"Keine Daten verf\xfcgbar","dxDropDownEditor-selectLabel":"Ausw\xe4hlen","validation-required":"Pflichtfeld","validation-required-formatted":"{0} ist ein Pflichtfeld","validation-numeric":"Der Wert muss eine Zahl sein","validation-numeric-formatted":"{0} muss eine Zahl sein","validation-range":"Der Wert ist nicht im g\xfcltigen Bereich","validation-range-formatted":"{0} ist nicht im g\xfcltigen Bereich","validation-stringLength":"Die L\xe4nge des Wertes ist nicht korrekt","validation-stringLength-formatted":"Die L\xe4nge von {0} ist nicht korrekt","validation-custom":"Der Wert ist ung\xfcltig","validation-custom-formatted":"{0} ist ung\xfcltig","validation-async":"Der Wert ist ung\xfcltig","validation-async-formatted":"{0} ist ung\xfcltig","validation-compare":"Der Wert ist unpassend","validation-compare-formatted":"{0} ist unpassend","validation-pattern":"Der Wert passt nicht zum Muster","validation-pattern-formatted":"{0} passt nicht zum Muster","validation-email":"Die Email-Adresse ist ung\xfcltig","validation-email-formatted":"{0} ist ung\xfcltig","validation-mask":"Der Wert ist ung\xfcltig","dxLookup-searchPlaceholder":"Minimale Anzahl Zeichen: {0}","dxList-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxList-pulledDownText":"Zum Aktualisieren loslassen","dxList-refreshingText":"Aktualisiere...","dxList-pageLoadingText":"Laden...","dxList-nextButtonText":"Mehr","dxList-selectAll":"Alles ausw\xe4hlen","dxListEditDecorator-delete":"Entfernen","dxListEditDecorator-more":"Mehr","dxScrollView-pullingDownText":"Zum Aktualisieren nach unten ziehen","dxScrollView-pulledDownText":"Zum Aktualisieren loslassen","dxScrollView-refreshingText":"Aktualisiere...","dxScrollView-reachBottomText":"Laden...","dxDateBox-simulatedDataPickerTitleTime":"Zeit ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDate":"Datum ausw\xe4hlen","dxDateBox-simulatedDataPickerTitleDateTime":"Datum und Zeit ausw\xe4hlen","dxDateBox-validation-datetime":"Der Wert muss ein Datum oder eine Uhrzeit sein","dxFileUploader-selectFile":"Datei ausw\xe4hlen","dxFileUploader-dropFile":"oder hierher ziehen","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Hochladen","dxFileUploader-uploaded":"Hochgeladen","dxFileUploader-readyToUpload":"Bereit zum hochladen","dxFileUploader-uploadAbortedMessage":"Upload abgebrochen","dxFileUploader-uploadFailedMessage":"Fehler beim hochladen","dxFileUploader-invalidFileExtension":"Unzul\xe4ssiger Dateityp","dxFileUploader-invalidMaxFileSize":"Datei ist zu gro\xdf","dxFileUploader-invalidMinFileSize":"Datei ist zu klein","dxRangeSlider-ariaFrom":"Von","dxRangeSlider-ariaTill":"Bis","dxSwitch-switchedOnText":"EIN","dxSwitch-switchedOffText":"AUS","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} ist ein Pflichtfeld","dxNumberBox-invalidValueMessage":"Der Wert muss eine Zahl sein","dxNumberBox-noDataText":"Keine Daten","dxDataGrid-columnChooserTitle":"Spaltenauswahl","dxDataGrid-columnChooserEmptyText":"Ziehen Sie Spalten hierhin, um sie zu verstecken","dxDataGrid-groupContinuesMessage":"Weiter auf der n\xe4chsten Seite","dxDataGrid-groupContinuedMessage":"Weiter von der vorherigen Seite","dxDataGrid-groupHeaderText":"Nach dieser Spalte gruppieren","dxDataGrid-ungroupHeaderText":"Gruppierung entfernen","dxDataGrid-ungroupAllText":"Alle Gruppierungen entfernen","dxDataGrid-editingEditRow":"Bearbeiten","dxDataGrid-editingSaveRowChanges":"Speichern","dxDataGrid-editingCancelRowChanges":"Abbrechen","dxDataGrid-editingDeleteRow":"Entfernen","dxDataGrid-editingUndeleteRow":"Wiederherstellen","dxDataGrid-editingConfirmDeleteMessage":"Sind Sie sicher, dass Sie diesen Datensatz l\xf6schen wollen?","dxDataGrid-validationCancelChanges":"\xc4nderungen verwerfen","dxDataGrid-groupPanelEmptyText":"Ziehen Sie eine Spalte hierhin, um danach zu gruppieren","dxDataGrid-noDataText":"Keine Daten","dxDataGrid-searchPanelPlaceholder":"Suchen...","dxDataGrid-filterRowShowAllText":"(Alle)","dxDataGrid-filterRowResetOperationText":"Zur\xfccksetzen","dxDataGrid-filterRowOperationEquals":"Ist gleich","dxDataGrid-filterRowOperationNotEquals":"Ist nicht gleich","dxDataGrid-filterRowOperationLess":"Kleiner als","dxDataGrid-filterRowOperationLessOrEquals":"Kleiner oder gleich","dxDataGrid-filterRowOperationGreater":"Gr\xf6\xdfer als","dxDataGrid-filterRowOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxDataGrid-filterRowOperationStartsWith":"Beginnt mit","dxDataGrid-filterRowOperationContains":"Enth\xe4lt","dxDataGrid-filterRowOperationNotContains":"Enth\xe4lt nicht","dxDataGrid-filterRowOperationEndsWith":"Endet mit","dxDataGrid-filterRowOperationBetween":"Zwischen","dxDataGrid-filterRowOperationBetweenStartText":"Anfang","dxDataGrid-filterRowOperationBetweenEndText":"Ende","dxDataGrid-applyFilterText":"Filter anwenden","dxDataGrid-trueText":"wahr","dxDataGrid-falseText":"falsch","dxDataGrid-sortingAscendingText":"Aufsteigend sortieren","dxDataGrid-sortingDescendingText":"Absteigend sortieren","dxDataGrid-sortingClearText":"Sortierung aufheben","dxDataGrid-editingSaveAllChanges":"\xc4nderungen speichern","dxDataGrid-editingCancelAllChanges":"\xc4nderungen verwerfen","dxDataGrid-editingAddRow":"Neue Zeile","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum von {1} ist {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum von {1} ist {0}","dxDataGrid-summaryAvg":"\xd8: {0}","dxDataGrid-summaryAvgOtherColumn":"Durchschnitt von {1} ist {0}","dxDataGrid-summarySum":"Summe: {0}","dxDataGrid-summarySumOtherColumn":"Summe von {1} ist {0}","dxDataGrid-summaryCount":"Anzahl: {0}","dxDataGrid-columnFixingFix":"Fixieren","dxDataGrid-columnFixingUnfix":"L\xf6sen","dxDataGrid-columnFixingLeftPosition":"Nach links","dxDataGrid-columnFixingRightPosition":"Nach rechts","dxDataGrid-exportTo":"Exportieren","dxDataGrid-exportToExcel":"Exportieren als Excel-Datei","dxDataGrid-exporting":"Exportieren ...","dxDataGrid-excelFormat":"Excel-Datei","dxDataGrid-selectedRows":"Ausgew\xe4hlte Zeilen","dxDataGrid-exportSelectedRows":"Ausgew\xe4hlte Zeilen exportieren nach {0}","dxDataGrid-exportAll":"Alle Daten exportieren nach {0}","dxDataGrid-headerFilterLabel":"Filteroptionen","dxDataGrid-headerFilterIndicatorLabel":"Filteroptionen f\xfcr Spalte \'{0}\' anzeigen","dxDataGrid-headerFilterEmptyValue":"(Leerwerte)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Abbrechen","dxDataGrid-ariaAdaptiveCollapse":"Zus\xe4tzliche Spalten verstecken","dxDataGrid-ariaAdaptiveExpand":"Zus\xe4tzliche Spalten anzeigen","dxDataGrid-ariaColumn":"Spalte","dxDataGrid-ariaValue":"Wert","dxDataGrid-ariaFilterCell":"Filterzelle","dxDataGrid-ariaCollapse":"Zusammenklappen","dxDataGrid-ariaExpand":"Aufklappen","dxDataGrid-ariaDataGrid":"Datentabelle","dxDataGrid-ariaSearchInGrid":"Suchen in der Datentabelle","dxDataGrid-ariaSelectAll":"Alle ausw\xe4hlen","dxDataGrid-ariaSelectRow":"Zeile ausw\xe4hlen","dxDataGrid-ariaToolbar":"Symbolleiste der Datentabelle","dxDataGrid-filterBuilderPopupTitle":"Filter-Generator","dxDataGrid-filterPanelCreateFilter":"Filter erzeugen","dxDataGrid-filterPanelClearFilter":"Zur\xfccksetzen","dxDataGrid-filterPanelFilterEnabledHint":"Filter aktivieren","dxTreeList-ariaTreeList":"Strukturliste","dxTreeList-ariaSearchInGrid":"Suchen in der Strukturliste","dxTreeList-ariaToolbar":"Symbolleiste der Strukturliste","dxTreeList-editingAddRowToNode":"Hinzuf\xfcgen","dxPager-infoText":"Seite {0} von {1} ({2} Elemente)","dxPager-pagesCountText":"von","dxPager-pageSize":"Elemente pro Seite: {0}","dxPager-pageSizesAllText":"Alle","dxPager-page":"Seite {0}","dxPager-prevPage":"Vorherige Seite","dxPager-nextPage":"N\xe4chste Seite","dxPager-ariaLabel":"Seitennavigation","dxPivotGrid-grandTotal":"Gesamt","dxPivotGrid-total":"{0} Gesamt","dxPivotGrid-fieldChooserTitle":"Feldauswahl","dxPivotGrid-showFieldChooser":"Feldauswahl anzeigen","dxPivotGrid-expandAll":"Alle aufklappen","dxPivotGrid-collapseAll":"Alle zusammenklappen","dxPivotGrid-sortColumnBySummary":"\\"{0}\\" nach dieser Spalte sortieren","dxPivotGrid-sortRowBySummary":"\\"{0}\\" nach dieser Zeile sortieren","dxPivotGrid-removeAllSorting":"Sortierungen entfernen","dxPivotGrid-dataNotAvailable":"Entf.","dxPivotGrid-rowFields":"Zeilenfelder","dxPivotGrid-columnFields":"Spaltenfelder","dxPivotGrid-dataFields":"Datenfelder","dxPivotGrid-filterFields":"Filterfelder","dxPivotGrid-allFields":"Alle Felder","dxPivotGrid-columnFieldArea":"Spaltenfelder hierher ziehen","dxPivotGrid-dataFieldArea":"Datenfelder hierher ziehen","dxPivotGrid-rowFieldArea":"Zeilenfelder hierher ziehen","dxPivotGrid-filterFieldArea":"Filterfelder hierher ziehen","dxScheduler-editorLabelTitle":"Betreff","dxScheduler-editorLabelStartDate":"Anfangszeit","dxScheduler-editorLabelEndDate":"Endzeit","dxScheduler-editorLabelDescription":"Beschreibung","dxScheduler-editorLabelRecurrence":"Wiederholen","dxScheduler-openAppointment":"Termin \xf6ffnen","dxScheduler-recurrenceNever":"Nie","dxScheduler-recurrenceMinutely":"Min\xfctlich","dxScheduler-recurrenceHourly":"St\xfcndlich","dxScheduler-recurrenceDaily":"T\xe4glich","dxScheduler-recurrenceWeekly":"W\xf6chentlich","dxScheduler-recurrenceMonthly":"Monatlich","dxScheduler-recurrenceYearly":"J\xe4hrlich","dxScheduler-recurrenceRepeatEvery":"Wiederholen alle","dxScheduler-recurrenceRepeatOn":"Wiederholen an","dxScheduler-recurrenceEnd":"Wiederholungsende","dxScheduler-recurrenceAfter":"Nach","dxScheduler-recurrenceOn":"Am","dxScheduler-recurrenceRepeatMinutely":"Minute(n)","dxScheduler-recurrenceRepeatHourly":"Stunde(n)","dxScheduler-recurrenceRepeatDaily":"Tag(e)","dxScheduler-recurrenceRepeatWeekly":"Woche(n)","dxScheduler-recurrenceRepeatMonthly":"Monat(e)","dxScheduler-recurrenceRepeatYearly":"Jahr(e)","dxScheduler-switcherDay":"Tag","dxScheduler-switcherWeek":"Woche","dxScheduler-switcherWorkWeek":"Arbeitswoche","dxScheduler-switcherMonth":"Monat","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Zeitstrahl Tag","dxScheduler-switcherTimelineWeek":"Zeitstrahl Woche","dxScheduler-switcherTimelineWorkWeek":"Zeitstrahl Arbeitswoche","dxScheduler-switcherTimelineMonth":"Zeitstrahl Monat","dxScheduler-recurrenceRepeatOnDate":"am Datum","dxScheduler-recurrenceRepeatCount":"Ereignisse","dxScheduler-allDay":"Ganzt\xe4gig","dxScheduler-confirmRecurrenceEditMessage":"M\xf6chten Sie nur diesen Termin bearbeiten, oder die gesamte Serie?","dxScheduler-confirmRecurrenceDeleteMessage":"M\xf6chten Sie nur diesen Termin l\xf6schen, oder die gesamte Serie?","dxScheduler-confirmRecurrenceEditSeries":"Serie bearbeiten","dxScheduler-confirmRecurrenceDeleteSeries":"Serie l\xf6schen","dxScheduler-confirmRecurrenceEditOccurrence":"Termin bearbeiten","dxScheduler-confirmRecurrenceDeleteOccurrence":"Termin l\xf6schen","dxScheduler-noTimezoneTitle":"Keine Zeitzone","dxScheduler-moreAppointments":"{0} weitere","dxCalendar-todayButtonText":"Heute","dxCalendar-ariaWidgetName":"Kalendar","dxColorView-ariaRed":"Rot","dxColorView-ariaGreen":"Gr\xfcn","dxColorView-ariaBlue":"Blau","dxColorView-ariaAlpha":"Transparenz","dxColorView-ariaHex":"Farbwert","dxTagBox-selected":"{0} ausgew\xe4hlt","dxTagBox-allSelected":"Alle ausgew\xe4hlt ({0})","dxTagBox-moreSelected":"{0} weitere","vizExport-printingButtonText":"Drucken","vizExport-titleMenuText":"Export/Druck","vizExport-exportButtonText":"{0}-Datei","dxFilterBuilder-and":"Und","dxFilterBuilder-or":"Oder","dxFilterBuilder-notAnd":"Nicht Und","dxFilterBuilder-notOr":"Nicht Oder","dxFilterBuilder-addCondition":"Bedingung hinzuf\xfcgen","dxFilterBuilder-addGroup":"Gruppe hinzuf\xfcgen","dxFilterBuilder-enterValueText":"<Wert eingeben>","dxFilterBuilder-filterOperationEquals":"Ist gleich","dxFilterBuilder-filterOperationNotEquals":"Ist nicht gleich","dxFilterBuilder-filterOperationLess":"Kleiner als","dxFilterBuilder-filterOperationLessOrEquals":"Kleiner oder gleich","dxFilterBuilder-filterOperationGreater":"Gr\xf6\xdfer als","dxFilterBuilder-filterOperationGreaterOrEquals":"Gr\xf6\xdfer oder gleich","dxFilterBuilder-filterOperationStartsWith":"Beginnt mit","dxFilterBuilder-filterOperationContains":"Enth\xe4lt","dxFilterBuilder-filterOperationNotContains":"Enth\xe4lt nicht","dxFilterBuilder-filterOperationEndsWith":"Endet mit","dxFilterBuilder-filterOperationIsBlank":"Ist leer","dxFilterBuilder-filterOperationIsNotBlank":"Ist nicht leer","dxFilterBuilder-filterOperationBetween":"Zwischen","dxFilterBuilder-filterOperationAnyOf":"Ist enthalten in","dxFilterBuilder-filterOperationNoneOf":"Ist nicht enthalten in","dxHtmlEditor-dialogColorCaption":"Schriftfarbe \xe4ndern","dxHtmlEditor-dialogBackgroundCaption":"Hintergrundfarbe \xe4ndern","dxHtmlEditor-dialogLinkCaption":"Link hinzuf\xfcgen","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Link in neuem Fenster \xf6ffnen","dxHtmlEditor-dialogImageCaption":"Bild hinzuf\xfcgen","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternativer Text","dxHtmlEditor-dialogImageWidthField":"Breite (px)","dxHtmlEditor-dialogImageHeightField":"Bildh\xf6he (px)","dxHtmlEditor-dialogInsertTableRowsField":"Zeilen","dxHtmlEditor-dialogInsertTableColumnsField":"Spalten","dxHtmlEditor-dialogInsertTableCaption":"Tabelle einf\xfcgen","dxHtmlEditor-dialogUpdateImageCaption":"Bild Aktualisieren","dxHtmlEditor-dialogImageUpdateButton":"Aktualisieren","dxHtmlEditor-dialogImageAddButton":"Hinzuf\xfcgen","dxHtmlEditor-dialogImageSpecifyUrl":"Aus dem Web","dxHtmlEditor-dialogImageSelectFile":"Von diesem Ger\xe4t","dxHtmlEditor-dialogImageKeepAspectRatio":"Seitenverh\xe4ltnis beibehalten","dxHtmlEditor-dialogImageEncodeToBase64":"Als Base64 kodieren","dxHtmlEditor-heading":"\xdcberschrift","dxHtmlEditor-normalText":"Normaler Text","dxHtmlEditor-background":"Hintergrundfarbe","dxHtmlEditor-bold":"Fett","dxHtmlEditor-color":"Schriftfarbe","dxHtmlEditor-font":"Schriftart","dxHtmlEditor-italic":"Kursiv","dxHtmlEditor-link":"Link hinzuf\xfcgen","dxHtmlEditor-image":"Bild hinzuf\xfcgen","dxHtmlEditor-size":"Schriftgr\xf6\xdfe","dxHtmlEditor-strike":"Durchgestrichen","dxHtmlEditor-subscript":"Tiefgestellt","dxHtmlEditor-superscript":"Hochgestellt","dxHtmlEditor-underline":"Unterstrichen","dxHtmlEditor-blockquote":"Blockzitat","dxHtmlEditor-header":"Kopfzeile","dxHtmlEditor-increaseIndent":"Einzug vergr\xf6\xdfern","dxHtmlEditor-decreaseIndent":"Einzug verkleinern","dxHtmlEditor-orderedList":"Sortierte Liste","dxHtmlEditor-bulletList":"Aufz\xe4hlung","dxHtmlEditor-alignLeft":"Linksb\xfcndig","dxHtmlEditor-alignCenter":"Zentriert","dxHtmlEditor-alignRight":"Rechtsb\xfcndig","dxHtmlEditor-alignJustify":"Blocksatz","dxHtmlEditor-codeBlock":"Codeblock","dxHtmlEditor-variable":"Variable hinzuf\xfcgen","dxHtmlEditor-undo":"R\xfcckg\xe4ngig","dxHtmlEditor-redo":"Wiederholen","dxHtmlEditor-clear":"Formate l\xf6schen","dxHtmlEditor-insertTable":"Tabelle einf\xfcgen","dxHtmlEditor-insertHeaderRow":"Kopfzeile einf\xfcgen","dxHtmlEditor-insertRowAbove":"Spalte oberhalb einf\xfcgen","dxHtmlEditor-insertRowBelow":"Spalte unterhalb einf\xfcgen","dxHtmlEditor-insertColumnLeft":"Spalte links einf\xfcgen","dxHtmlEditor-insertColumnRight":"Spalte rechts einf\xfcgen","dxHtmlEditor-deleteColumn":"Spalte l\xf6schen","dxHtmlEditor-deleteRow":"Zeile l\xf6schen","dxHtmlEditor-deleteTable":"Tabelle l\xf6schen","dxHtmlEditor-cellProperties":"Zelleneigenschaften","dxHtmlEditor-tableProperties":"Tabelleneigenschaften","dxHtmlEditor-insert":"Einf\xfcgen","dxHtmlEditor-delete":"L\xf6schen","dxHtmlEditor-border":"Rahmen","dxHtmlEditor-style":"Stil","dxHtmlEditor-width":"Breite","dxHtmlEditor-height":"H\xf6he","dxHtmlEditor-borderColor":"Farbe","dxHtmlEditor-tableBackground":"Hintergrund","dxHtmlEditor-dimensions":"Abmessungen","dxHtmlEditor-alignment":"Ausrichtung","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertikal","dxHtmlEditor-paddingVertical":"Vertikaler Abstand","dxHtmlEditor-paddingHorizontal":"Horizontaler Abstand","dxHtmlEditor-pixels":"Pixel","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"Sortiert","dxHtmlEditor-bullet":"Aufz\xe4hlung","dxHtmlEditor-align":"Ausrichten","dxHtmlEditor-center":"Zentrieren","dxHtmlEditor-left":"Links","dxHtmlEditor-right":"Rechts","dxHtmlEditor-indent":"Einzug","dxHtmlEditor-justify":"Blocksatz","dxFileManager-newDirectoryName":"Ohne Titel","dxFileManager-rootDirectoryName":"Dateien","dxFileManager-errorNoAccess":"Zugriff verweigert. Die Operation kann nicht durchgef\xfchrt werden.","dxFileManager-errorDirectoryExistsFormat":"Ordner {0} existiert bereits.","dxFileManager-errorFileExistsFormat":"Datei {0} existiert bereits.","dxFileManager-errorFileNotFoundFormat":"Datei {0} wurde nicht gefunden.","dxFileManager-errorDirectoryNotFoundFormat":"Verzeichnis \'{0}\' nicht gefunden.","dxFileManager-errorWrongFileExtension":"Dateierweiterung ist nicht erlaubt.","dxFileManager-errorMaxFileSizeExceeded":"Die Dateigr\xf6\xdfe \xfcbersteigt die maximal erlaubte Gr\xf6\xdfe.","dxFileManager-errorInvalidSymbols":"Der Dateiname enth\xe4lt ung\xfcltige Zeichen.","dxFileManager-errorDefault":"Unbekannter Fehler","dxFileManager-errorDirectoryOpenFailed":"Das Verzeichnis kann nicht ge\xf6ffnet werden","dxFileManager-commandCreate":"Neues Verzeichnis","dxFileManager-commandRename":"Umbenennen","dxFileManager-commandMove":"Verschieben nach","dxFileManager-commandCopy":"Kopieren nach","dxFileManager-commandDelete":"L\xf6schen","dxFileManager-commandDownload":"Herunterladen","dxFileManager-commandUpload":"Dateien hochladen","dxFileManager-commandRefresh":"Aktualisieren","dxFileManager-commandThumbnails":"Miniaturansicht","dxFileManager-commandDetails":"Detailansicht","dxFileManager-commandClearSelection":"Auswahl aufheben","dxFileManager-commandShowNavPane":"Navigationsbereich ein-/ausschalten","dxFileManager-dialogDirectoryChooserMoveTitle":"Verschieben nach","dxFileManager-dialogDirectoryChooserMoveButtonText":"Verschieben","dxFileManager-dialogDirectoryChooserCopyTitle":"Kopieren nach","dxFileManager-dialogDirectoryChooserCopyButtonText":"Kopieren","dxFileManager-dialogRenameItemTitle":"Umbenennen","dxFileManager-dialogRenameItemButtonText":"Speichern","dxFileManager-dialogCreateDirectoryTitle":"Neues Verzeichnis","dxFileManager-dialogCreateDirectoryButtonText":"Erstellen","dxFileManager-dialogDeleteItemTitle":"L\xf6schen","dxFileManager-dialogDeleteItemButtonText":"L\xf6schen","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Sind Sie sicher, dass Sie {0} l\xf6schen m\xf6chten?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Sind Sie sicher, dass Sie {0} Elemente l\xf6schen m\xf6chten?","dxFileManager-dialogButtonCancel":"Abbrechen","dxFileManager-editingCreateSingleItemProcessingMessage":"Ein Verzeichnis wird in {0} erstellt","dxFileManager-editingCreateSingleItemSuccessMessage":"Ein Verzeichnis wurde in {0} erstellt","dxFileManager-editingCreateSingleItemErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingCreateCommonErrorMessage":"Verzeichnis wurde nicht erstellt","dxFileManager-editingRenameSingleItemProcessingMessage":"Ein Element in {0} wird umbenannt","dxFileManager-editingRenameSingleItemSuccessMessage":"Ein Element in {0} wurde umbenannt","dxFileManager-editingRenameSingleItemErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingRenameCommonErrorMessage":"Element wurde nicht umbenannt","dxFileManager-editingDeleteSingleItemProcessingMessage":"Ein Element aus {0} wird gel\xf6scht","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"{0} Elemente aus {1} werden gel\xf6scht","dxFileManager-editingDeleteSingleItemSuccessMessage":"Ein Element aus {0} wurde gel\xf6scht","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} Elemente aus {1} wurden gel\xf6scht","dxFileManager-editingDeleteSingleItemErrorMessage":"Element wurde nicht gel\xf6scht","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} Elemente wurden nicht gel\xf6scht","dxFileManager-editingDeleteCommonErrorMessage":"Einige Elemente wurden nicht gel\xf6scht","dxFileManager-editingMoveSingleItemProcessingMessage":"Ein Element wird nach {0} verschoben","dxFileManager-editingMoveMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} verschoben","dxFileManager-editingMoveSingleItemSuccessMessage":"Ein Element wurde nach {0} verschoben","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} verschoben","dxFileManager-editingMoveSingleItemErrorMessage":"Element wurde nicht verschoben","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} Elemente wurden nicht verschoben","dxFileManager-editingMoveCommonErrorMessage":"Einige Elemente wurden nicht verschoben","dxFileManager-editingCopySingleItemProcessingMessage":"Ein Element wird nach {0} kopiert","dxFileManager-editingCopyMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} kopiert","dxFileManager-editingCopySingleItemSuccessMessage":"Ein Element wurde nach {0} kopiert","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} kopiert","dxFileManager-editingCopySingleItemErrorMessage":"Element wurde nicht kopiert","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} Elemente wurden nicht kopiert","dxFileManager-editingCopyCommonErrorMessage":"Einige Elemente wurden nicht kopiert","dxFileManager-editingUploadSingleItemProcessingMessage":"Ein Element wird nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsProcessingMessage":"{0} Elemente werden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemSuccessMessage":"Ein Element wurde nach {0} hochgeladen","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} Elemente wurden nach {1} hochgeladen","dxFileManager-editingUploadSingleItemErrorMessage":"Element wurde nicht hochgeladen","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} Elemente wurden nicht hochgeladen","dxFileManager-editingUploadCanceledMessage":"Abgebrochen","dxFileManager-editingDownloadSingleItemErrorMessage":"Datei wurde nicht heruntergeladen","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} Dateien wurden nicht heruntergeladen","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-listDetailsColumnCaptionFileSize":"Dateigr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextSize":"Gr\xf6\xdfe","dxFileManager-listThumbnailsTooltipTextDateModified":"Zuletzt ge\xe4ndert am","dxFileManager-notificationProgressPanelTitle":"Fortschritt","dxFileManager-notificationProgressPanelEmptyListText":"Keine Vorg\xe4nge","dxFileManager-notificationProgressPanelOperationCanceled":"Abgebrochen","dxDiagram-categoryGeneral":"Allgemein","dxDiagram-categoryFlowchart":"Flussdiagramm","dxDiagram-categoryOrgChart":"Organisationsdiagramm","dxDiagram-categoryContainers":"Container","dxDiagram-categoryCustom":"Benutzerdefiniert","dxDiagram-commandExportToSvg":"Export als SVG","dxDiagram-commandExportToPng":"Export als PNG","dxDiagram-commandExportToJpg":"Export als JPEG","dxDiagram-commandUndo":"R\xfcckg\xe4ngig","dxDiagram-commandRedo":"Wiederherstellen","dxDiagram-commandFontName":"Schriftartname","dxDiagram-commandFontSize":"Schriftgr\xf6\xdfe","dxDiagram-commandBold":"Fett","dxDiagram-commandItalic":"Kursiv","dxDiagram-commandUnderline":"Unterstrichen","dxDiagram-commandTextColor":"Textfarbe","dxDiagram-commandLineColor":"Linienfarbe","dxDiagram-commandLineWidth":"Linienst\xe4rke","dxDiagram-commandLineStyle":"Linienart","dxDiagram-commandLineStyleSolid":"Durchgezogen","dxDiagram-commandLineStyleDotted":"Gepunktet","dxDiagram-commandLineStyleDashed":"Gestrichelt","dxDiagram-commandFillColor":"F\xfcllfarbe","dxDiagram-commandAlignLeft":"Linksb\xfcndig","dxDiagram-commandAlignCenter":"Zentriert","dxDiagram-commandAlignRight":"Rechtsb\xfcndig","dxDiagram-commandConnectorLineType":"Konnektor Linienart","dxDiagram-commandConnectorLineStraight":"Gerade","dxDiagram-commandConnectorLineOrthogonal":"Rechtwinklig","dxDiagram-commandConnectorLineStart":"Konnektor Linienanfang","dxDiagram-commandConnectorLineEnd":"Konnektor Linienende","dxDiagram-commandConnectorLineNone":"Keine","dxDiagram-commandConnectorLineArrow":"Pfeil","dxDiagram-commandFullscreen":"Vollbild","dxDiagram-commandUnits":"Einheiten","dxDiagram-commandPageSize":"Seitengr\xf6\xdfe","dxDiagram-commandPageOrientation":"Seitenausrichtung","dxDiagram-commandPageOrientationLandscape":"Querformat","dxDiagram-commandPageOrientationPortrait":"Hochformat","dxDiagram-commandPageColor":"Seitenfarbe","dxDiagram-commandShowGrid":"Raster anzeigen","dxDiagram-commandSnapToGrid":"Am Raster ausrichten","dxDiagram-commandGridSize":"Rastergr\xf6\xdfe","dxDiagram-commandZoomLevel":"Vergr\xf6\xdferungsstufe","dxDiagram-commandAutoZoom":"Automatische Vergr\xf6\xdferung","dxDiagram-commandFitToContent":"An Inhalt anpassen","dxDiagram-commandFitToWidth":"An Breite anpassen","dxDiagram-commandAutoZoomByContent":"Automatisch an Inhalt anpassen","dxDiagram-commandAutoZoomByWidth":"Automatisch an Breite anpassen","dxDiagram-commandSimpleView":"Einfache Ansicht","dxDiagram-commandCut":"Ausschneiden","dxDiagram-commandCopy":"Kopieren","dxDiagram-commandPaste":"Einf\xfcgen","dxDiagram-commandSelectAll":"Alles ausw\xe4hlen","dxDiagram-commandDelete":"L\xf6schen","dxDiagram-commandBringToFront":"In den Vordergrund","dxDiagram-commandSendToBack":"In den Hintergrund","dxDiagram-commandLock":"Sperren","dxDiagram-commandUnlock":"Entsperren","dxDiagram-commandInsertShapeImage":"Bild einf\xfcgen...","dxDiagram-commandEditShapeImage":"Bild bearbeiten...","dxDiagram-commandDeleteShapeImage":"Bild l\xf6schen","dxDiagram-commandLayoutLeftToRight":"Von links nach rechts","dxDiagram-commandLayoutRightToLeft":"Von rechts nach links","dxDiagram-commandLayoutTopToBottom":"Von oben nach unten","dxDiagram-commandLayoutBottomToTop":"Von unten nach oben","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Abbrechen","dxDiagram-dialogInsertShapeImageTitle":"Bild einf\xfcgen","dxDiagram-dialogEditShapeImageTitle":"Bild bearbeiten","dxDiagram-dialogEditShapeImageSelectButton":"Bild ausw\xe4hlen","dxDiagram-dialogEditShapeImageLabelText":"oder Datei hier ablegen","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Eigenschaften","dxDiagram-uiSettings":"Einstellungen","dxDiagram-uiShowToolbox":"Toolbox anzeigen","dxDiagram-uiSearch":"Suchen","dxDiagram-uiStyle":"Stil","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Baum","dxDiagram-uiLayoutLayered":"Mehrschichtig","dxDiagram-uiDiagram":"Diagramm","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Objekt","dxDiagram-uiConnector":"Verbindung","dxDiagram-uiPage":"Seite","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rechteck","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Kreuz","dxDiagram-shapeTriangle":"Dreieck","dxDiagram-shapeDiamond":"Raute","dxDiagram-shapeHeart":"Herz","dxDiagram-shapePentagon":"F\xfcnfeck","dxDiagram-shapeHexagon":"Sechseck","dxDiagram-shapeOctagon":"Achteck","dxDiagram-shapeStar":"Stern","dxDiagram-shapeArrowLeft":"Pfeil nach links","dxDiagram-shapeArrowUp":"Pfeil nach oben","dxDiagram-shapeArrowRight":"Pfeil nach rechts","dxDiagram-shapeArrowDown":"Pfeil nach unten","dxDiagram-shapeArrowUpDown":"Pfeil nach oben und unten","dxDiagram-shapeArrowLeftRight":"Pfeil nach links und rechts","dxDiagram-shapeProcess":"Prozess","dxDiagram-shapeDecision":"Entscheidung","dxDiagram-shapeTerminator":"Abschluss","dxDiagram-shapePredefinedProcess":"Vordefinierter Prozess","dxDiagram-shapeDocument":"Dokument","dxDiagram-shapeMultipleDocuments":"Mehrere Dokumente","dxDiagram-shapeManualInput":"Manuelle Eingabe","dxDiagram-shapePreparation":"Vorbereitung","dxDiagram-shapeData":"Daten","dxDiagram-shapeDatabase":"Datenbank","dxDiagram-shapeHardDisk":"Festplatte","dxDiagram-shapeInternalStorage":"Lokaler Speicher","dxDiagram-shapePaperTape":"Lochstreifen","dxDiagram-shapeManualOperation":"Manuelle Verarbeitung","dxDiagram-shapeDelay":"Verz\xf6gerung","dxDiagram-shapeStoredData":"Gespeicherte Daten","dxDiagram-shapeDisplay":"Anzeige","dxDiagram-shapeMerge":"Zusammenf\xfchren","dxDiagram-shapeConnector":"Verbinder","dxDiagram-shapeOr":"Oder","dxDiagram-shapeSummingJunction":"Summierungsknoten","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertikaler Container","dxDiagram-shapeHorizontalContainer":"Horizontaler Container","dxDiagram-shapeCardDefaultText":"Name der Person","dxDiagram-shapeCardWithImageOnLeft":"Karte mit Bild links","dxDiagram-shapeCardWithImageOnTop":"Karte mit Bild oben","dxDiagram-shapeCardWithImageOnRight":"Karte mit Bild rechts","dxGantt-dialogTitle":"Titel","dxGantt-dialogStartTitle":"Beginn","dxGantt-dialogEndTitle":"Ende","dxGantt-dialogProgressTitle":"Fortschritt","dxGantt-dialogResourcesTitle":"Ressourcen","dxGantt-dialogResourceManagerTitle":"Ressourcen-Manager","dxGantt-dialogTaskDetailsTitle":"Aufgabendetails","dxGantt-dialogEditResourceListHint":"Ressourcenliste bearbeiten","dxGantt-dialogEditNoResources":"Keine Ressourcen","dxGantt-dialogButtonAdd":"Hinzuf\xfcgen","dxGantt-contextMenuNewTask":"Neue Aufgabe","dxGantt-contextMenuNewSubtask":"Neue Teilaufgabe","dxGantt-contextMenuDeleteTask":"Aufgabe l\xf6schen","dxGantt-contextMenuDeleteDependency":"Abh\xe4ngigkeit entfernen","dxGantt-dialogTaskDeleteConfirmation":"Abh\xe4ngigkeiten und Teilaufgaben werden zusammen mit dieser Aufgabe gel\xf6scht. M\xf6chten Sie diese Aufgabe l\xf6schen?","dxGantt-dialogDependencyDeleteConfirmation":"M\xf6chten Sie die Abh\xe4ngigkeit von der Aufgabe entfernen?","dxGantt-dialogResourcesDeleteConfirmation":"Wenn Sie diese Ressource l\xf6schen, wird sie von allen Aufgaben entfernt. M\xf6chten Sie die Ressource l\xf6schen? Ressource: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Die \xc4nderung w\xfcrde gegen Abh\xe4ngigkeitsregeln verstossen. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationMessage":"Die Aufgabe, die Sie verschieben m\xf6chten, ist mit einer zweiten Aufgabe durch eine Abh\xe4ngigkeit verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogCancelOperationMessage":"Vorgang abbrechen","dxGantt-dialogDeleteDependencyMessage":"Abh\xe4ngigkeit l\xf6schen","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Aufgabe verschieben und Abh\xe4ngigkeit beibehalten","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Die \xc4nderung verst\xf6\xdft daher gegen Abh\xe4ngigkeitsregeln. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"Die Aufgabe, die Sie zu verschieben versuchen, ist mit anderen Aufgaben durch Abh\xe4ngigkeitsbeziehungen verbunden. Wie m\xf6chten Sie fortfahren?","dxGantt-dialogDeleteDependenciesMessage":"Abh\xe4ngigkeitsbeziehungen entfernen","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"Die Aufgabe verschieben und die Abh\xe4ngigkeitsbeziehungen beibehalten.","dxGantt-undo":"R\xfcckg\xe4ngig","dxGantt-redo":"Wiederherstellen","dxGantt-expandAll":"Alle erweitern","dxGantt-collapseAll":"Alle reduzieren","dxGantt-addNewTask":"Neue Aufgabe hinzuf\xfcgen","dxGantt-deleteSelectedTask":"Ausgew\xe4hlte Aufgabe l\xf6schen","dxGantt-zoomIn":"Vergr\xf6\xdfern","dxGantt-zoomOut":"Verkleinern","dxGantt-fullScreen":"Vollbildmodus","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Aufsteigend sortieren","dxGantt-sortingDescendingText":"Absteigend sortieren","dxGantt-sortingClearText":"Sortierung aufheben","dxGantt-showResources":"Ressourcen Anzeigen","dxGantt-showDependencies":"Abh\xe4ngigkeiten Anzeigen","dxGantt-dialogStartDateValidation":"Startdatum muss sp\xe4ter sein als {0}","dxGantt-dialogEndDateValidation":"Enddatum muss sp\xe4ter sein als {0}"}}'),Ei=JSON.parse('{"fr":{"Yes":"Oui","No":"Non","Cancel":"Annuler","Close":"Fermer","Clear":"Vider","Done":"Termin\xe9","Loading":"Chargement...","Select":"S\xe9lection...","Search":"Recherche","Back":"Retour","OK":"OK","dxCollectionWidget-noDataText":"Pas de donn\xe9es","dxDropDownEditor-selectLabel":"S\xe9lection","validation-required":"Obligatoire","validation-required-formatted":"{0} est obligatoire","validation-numeric":"La valeur doit \xeatre un nombre","validation-numeric-formatted":"{0} doit \xeatre un nombre","validation-range":"La valeur ne se trouve pas dans la plage valide","validation-range-formatted":"{0} ne se trouve pas dans la plage valide","validation-stringLength":"La longueur de la valeur est incorrecte","validation-stringLength-formatted":"La longueur de {0} est incorrecte","validation-custom":"La valeur est invalide","validation-custom-formatted":"{0} est invalide","validation-async":"La valeur est invalide","validation-async-formatted":"{0} est invalide","validation-compare":"La valeur est inappropri\xe9e","validation-compare-formatted":"{0} est inappropri\xe9e","validation-pattern":"La valeur ne correspond pas au mod\xe8le","validation-pattern-formatted":"{0} ne correspond pas au mod\xe8le","validation-email":"L\'adresse email est invalide","validation-email-formatted":"{0} est invalide","validation-mask":"La valeur est invalide","dxLookup-searchPlaceholder":"Nombre minimum de caract\xe8res: {0}","dxList-pullingDownText":"Tirez vers le bas pour actualiser...","dxList-pulledDownText":"Relacher pour actualiser...","dxList-refreshingText":"Actualisation...","dxList-pageLoadingText":"Chargement...","dxList-nextButtonText":"Suivant","dxList-selectAll":"S\xe9lectionner tout","dxListEditDecorator-delete":"Supprimer","dxListEditDecorator-more":"Plus","dxScrollView-pullingDownText":"Tirez vers le bas pour actualiser...","dxScrollView-pulledDownText":"Relacher pour actualiser...","dxScrollView-refreshingText":"Mise \xe0 jour...","dxScrollView-reachBottomText":"Chargement...","dxDateBox-simulatedDataPickerTitleTime":"Choisissez l\'heure","dxDateBox-simulatedDataPickerTitleDate":"Choisissez la date","dxDateBox-simulatedDataPickerTitleDateTime":"Choisissez la date et l\'heure","dxDateBox-validation-datetime":"La valeur doit \xeatre une date ou une heure.","dxFileUploader-selectFile":"Choisissez un fichier","dxFileUploader-dropFile":"D\xe9posez un fichier","dxFileUploader-bytes":"Bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"T\xe9l\xe9charger","dxFileUploader-uploaded":"T\xe9l\xe9charg\xe9","dxFileUploader-readyToUpload":"Pr\xeat \xe0 t\xe9l\xe9charger","dxFileUploader-uploadAbortedMessage":"T\xe9l\xe9chargement annul\xe9","dxFileUploader-uploadFailedMessage":"\xc9chec du t\xe9l\xe9chargement","dxFileUploader-invalidFileExtension":"Type de fichier non autoris\xe9","dxFileUploader-invalidMaxFileSize":"Fichier trop volumineux","dxFileUploader-invalidMinFileSize":"Fichier trop petit","dxRangeSlider-ariaFrom":"De {0}","dxRangeSlider-ariaTill":"\xe0 {0}","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optionnel","dxForm-requiredMessage":"{0} est obligatoire","dxNumberBox-invalidValueMessage":"La valeur doit \xeatre un nombre","dxNumberBox-noDataText":"Pas de donn\xe9es","dxDataGrid-columnChooserTitle":"Choisir les colonnes","dxDataGrid-columnChooserEmptyText":"Faites glisser une colonne ici pour la cacher","dxDataGrid-groupContinuesMessage":"Suite \xe0 la page suivante","dxDataGrid-groupContinuedMessage":"Suite de la page pr\xe9c\xe9dente","dxDataGrid-groupHeaderText":"Grouper avec cette colonne","dxDataGrid-ungroupHeaderText":"D\xe9grouper","dxDataGrid-ungroupAllText":"D\xe9grouper tout","dxDataGrid-editingEditRow":"Editer","dxDataGrid-editingSaveRowChanges":"Sauvegarder","dxDataGrid-editingCancelRowChanges":"Annuler","dxDataGrid-editingDeleteRow":"Supprimer","dxDataGrid-editingUndeleteRow":"Restaurer","dxDataGrid-editingConfirmDeleteMessage":"\xcates-vous s\xfbr de vouloir supprimer cet \xe9l\xe9ment ?","dxDataGrid-validationCancelChanges":"Annuler les changements","dxDataGrid-groupPanelEmptyText":"Faites glisser une colonne ICI pour grouper par celle-ci","dxDataGrid-noDataText":"Pas de donn\xe9es","dxDataGrid-searchPanelPlaceholder":"Recherche...","dxDataGrid-filterRowShowAllText":"(tous)","dxDataGrid-filterRowResetOperationText":"R\xe9initialiser","dxDataGrid-filterRowOperationEquals":"Egale","dxDataGrid-filterRowOperationNotEquals":"Diff\xe9rent de","dxDataGrid-filterRowOperationLess":"Plus petit","dxDataGrid-filterRowOperationLessOrEquals":"Plus petit ou \xe9gal","dxDataGrid-filterRowOperationGreater":"Plus grand","dxDataGrid-filterRowOperationGreaterOrEquals":"Plus grand ou \xe9gal","dxDataGrid-filterRowOperationStartsWith":"Commence par","dxDataGrid-filterRowOperationContains":"Contient","dxDataGrid-filterRowOperationNotContains":"Ne contient pas","dxDataGrid-filterRowOperationEndsWith":"Termine par","dxDataGrid-filterRowOperationBetween":"Entre","dxDataGrid-filterRowOperationBetweenStartText":"D\xe9but","dxDataGrid-filterRowOperationBetweenEndText":"Fin","dxDataGrid-applyFilterText":"Filtrer le texte","dxDataGrid-trueText":"Vrai","dxDataGrid-falseText":"Faux","dxDataGrid-sortingAscendingText":"Tri croissant","dxDataGrid-sortingDescendingText":"Tri d\xe9croissant","dxDataGrid-sortingClearText":"Supprimer le tri","dxDataGrid-editingSaveAllChanges":"Sauvegarder les changements","dxDataGrid-editingCancelAllChanges":"Ignorer les changements","dxDataGrid-editingAddRow":"Ajouter ligne","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Minimum de {1} est {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Maximum de {1} est {0}","dxDataGrid-summaryAvg":"Moy: {0}","dxDataGrid-summaryAvgOtherColumn":"Moyenne de {1} est {0}","dxDataGrid-summarySum":"Somme: {0}","dxDataGrid-summarySumOtherColumn":"Somme de {1} est {0}","dxDataGrid-summaryCount":"Total: {0}","dxDataGrid-columnFixingFix":"Fixer","dxDataGrid-columnFixingUnfix":"D\xe9tacher","dxDataGrid-columnFixingLeftPosition":"A gauche","dxDataGrid-columnFixingRightPosition":"A droite","dxDataGrid-exportTo":"Exporter","dxDataGrid-exportToExcel":"Exporter sous Excel","dxDataGrid-exporting":"Exporter...","dxDataGrid-excelFormat":"Fichier Excel","dxDataGrid-selectedRows":"Lignes s\xe9lectionn\xe9es","dxDataGrid-exportSelectedRows":"Exporter les lignes s\xe9lectionn\xe9es","dxDataGrid-exportAll":"Exporter tout","dxDataGrid-headerFilterLabel":"Filter options","dxDataGrid-headerFilterIndicatorLabel":"Show filter options for column \'{0}\'","dxDataGrid-headerFilterEmptyValue":"(aucune valeur)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Annuler","dxDataGrid-ariaAdaptiveCollapse":"Masquer les donn\xe9es suppl\xe9mentaires","dxDataGrid-ariaAdaptiveExpand":"Afficher des donn\xe9es suppl\xe9mentaires","dxDataGrid-ariaColumn":"Colonne","dxDataGrid-ariaValue":"Valeur","dxDataGrid-ariaFilterCell":"Filtre de cellule","dxDataGrid-ariaCollapse":"R\xe9duire","dxDataGrid-ariaExpand":"Etendre","dxDataGrid-ariaDataGrid":"Grille","dxDataGrid-ariaSearchInGrid":"Rechercher dans la grille","dxDataGrid-ariaSelectAll":"S\xe9lectionner tout","dxDataGrid-ariaSelectRow":"S\xe9lectionner ligne","dxDataGrid-ariaToolbar":"Barre d\'outils de la grille de donn\xe9es","dxDataGrid-filterBuilderPopupTitle":"Cr\xe9ation de filtre","dxDataGrid-filterPanelCreateFilter":"Cr\xe9er un filtre","dxDataGrid-filterPanelClearFilter":"Supprimer","dxDataGrid-filterPanelFilterEnabledHint":"Activer le filtre","dxTreeList-ariaTreeList":"Liste arborescente","dxTreeList-ariaSearchInGrid":"Rechercher dans l\'arborescence","dxTreeList-ariaToolbar":"Barre d\'outils de la liste arborescente","dxTreeList-editingAddRowToNode":"Ajouter","dxPager-infoText":"Page {0} sur {1} ({2} \xe9lements)","dxPager-pagesCountText":"sur","dxPager-pageSizesAllText":"Tous","dxPager-page":"Page {0}","dxPager-prevPage":"Previous Page","dxPager-nextPage":"Next Page","dxPager-ariaLabel":"Page Navigation","dxPivotGrid-grandTotal":"Total g\xe9n\xe9ral","dxPivotGrid-total":"Total {0}","dxPivotGrid-fieldChooserTitle":"Liste des champs","dxPivotGrid-showFieldChooser":"Afficher la liste des champs","dxPivotGrid-expandAll":"Etendre tout","dxPivotGrid-collapseAll":"R\xe9duire tout","dxPivotGrid-sortColumnBySummary":"Trier par colonne \\"{0}\\"","dxPivotGrid-sortRowBySummary":"Trier par ligne \\"{0}\\"","dxPivotGrid-removeAllSorting":"Supprimer les tris","dxPivotGrid-dataNotAvailable":"ND","dxPivotGrid-rowFields":"Lignes","dxPivotGrid-columnFields":"Colonnes","dxPivotGrid-dataFields":"Valeurs","dxPivotGrid-filterFields":"Filtres","dxPivotGrid-allFields":"Tous les champs","dxPivotGrid-columnFieldArea":"D\xe9poser les champs de colonne ici","dxPivotGrid-dataFieldArea":"D\xe9poser les champs de donn\xe9es ici","dxPivotGrid-rowFieldArea":"D\xe9poser les champs de ligne ici","dxPivotGrid-filterFieldArea":"D\xe9poser les champs de filtre ici","dxScheduler-editorLabelTitle":"Titre","dxScheduler-editorLabelStartDate":"Date de d\xe9but","dxScheduler-editorLabelEndDate":"Date de fin","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"R\xe9currence","dxScheduler-openAppointment":"D\xe9finir un \xe9venement","dxScheduler-recurrenceNever":"Jamais","dxScheduler-recurrenceMinutely":"Minutely","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Quotidien","dxScheduler-recurrenceWeekly":"Hebdomadaire","dxScheduler-recurrenceMonthly":"Mensuel","dxScheduler-recurrenceYearly":"Annuel","dxScheduler-recurrenceRepeatEvery":"Chaque","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"Jusqu\'\xe0","dxScheduler-recurrenceAfter":"Apr\xe8s","dxScheduler-recurrenceOn":"Le","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"Jour(s)","dxScheduler-recurrenceRepeatWeekly":"Semaine(s)","dxScheduler-recurrenceRepeatMonthly":"Mois(s)","dxScheduler-recurrenceRepeatYearly":"Ann\xe9e(s)","dxScheduler-switcherDay":"Jour","dxScheduler-switcherWeek":"Semaine","dxScheduler-switcherWorkWeek":"Semaine de travail","dxScheduler-switcherMonth":"Mois","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Jour","dxScheduler-switcherTimelineWeek":"Timeline Semaine","dxScheduler-switcherTimelineWorkWeek":"Timeline Semaine de travail","dxScheduler-switcherTimelineMonth":"Timeline Mois","dxScheduler-recurrenceRepeatOnDate":"le","dxScheduler-recurrenceRepeatCount":"occurence(s)","dxScheduler-allDay":"Temps plein","dxScheduler-confirmRecurrenceEditMessage":"Voulez-vous \xe9diter cet \xe9venement ou la s\xe9rie enti\xe8re ?","dxScheduler-confirmRecurrenceDeleteMessage":"Voulez-vous supprimer cet \xe9venement ou la s\xe9rie enti\xe8re ?","dxScheduler-confirmRecurrenceEditSeries":"Editer serie","dxScheduler-confirmRecurrenceDeleteSeries":"Supprimer serie","dxScheduler-confirmRecurrenceEditOccurrence":"Editer \xe9venement","dxScheduler-confirmRecurrenceDeleteOccurrence":"Supprimer \xe9venement","dxScheduler-noTimezoneTitle":"Pas de fuseau horaire","dxScheduler-moreAppointments":"{0} en plus","dxCalendar-todayButtonText":"Aujourd\'hui","dxCalendar-ariaWidgetName":"Calendrier","dxColorView-ariaRed":"Rouge","dxColorView-ariaGreen":"Vert","dxColorView-ariaBlue":"Bleu","dxColorView-ariaAlpha":"Transparence","dxColorView-ariaHex":"Code couleur","dxTagBox-selected":"{0} selectionn\xe9s","dxTagBox-allSelected":"Tous s\xe9lectionn\xe9s ({0})","dxTagBox-moreSelected":"{0} en plus","vizExport-printingButtonText":"Imprimer","vizExport-titleMenuText":"Exporter/Imprimer","vizExport-exportButtonText":"{0} fichier","dxFilterBuilder-and":"Et","dxFilterBuilder-or":"Ou","dxFilterBuilder-notAnd":"Non Et","dxFilterBuilder-notOr":"Non Ou","dxFilterBuilder-addCondition":"Ajouter une condition","dxFilterBuilder-addGroup":"Ajouter un groupe","dxFilterBuilder-enterValueText":"<entrer une valeur>","dxFilterBuilder-filterOperationEquals":"Est \xe9gal \xe0","dxFilterBuilder-filterOperationNotEquals":"Est diff\xe9rent de","dxFilterBuilder-filterOperationLess":"Est plus petit que","dxFilterBuilder-filterOperationLessOrEquals":"Est plus petit ou \xe9gal \xe0","dxFilterBuilder-filterOperationGreater":"Est plus grand que","dxFilterBuilder-filterOperationGreaterOrEquals":"Est plus grand ou \xe9gal \xe0","dxFilterBuilder-filterOperationStartsWith":"Commence par","dxFilterBuilder-filterOperationContains":"Contient","dxFilterBuilder-filterOperationNotContains":"Ne contient pas","dxFilterBuilder-filterOperationEndsWith":"Finit par","dxFilterBuilder-filterOperationIsBlank":"Est vide","dxFilterBuilder-filterOperationIsNotBlank":"N\'est pas vide","dxFilterBuilder-filterOperationBetween":"Entre","dxFilterBuilder-filterOperationAnyOf":"Est parmi","dxFilterBuilder-filterOperationNoneOf":"N\'est pas parmi","dxHtmlEditor-dialogColorCaption":"Changer couleur police","dxHtmlEditor-dialogBackgroundCaption":"Changer couleur fond","dxHtmlEditor-dialogLinkCaption":"Ajouter un hyperlien","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Texte","dxHtmlEditor-dialogLinkTargetField":"Ouvrir le lien dans une nouvelle fen\xeatre","dxHtmlEditor-dialogImageCaption":"Ajouter image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Texte alternatif","dxHtmlEditor-dialogImageWidthField":"Largeur (px)","dxHtmlEditor-dialogImageHeightField":"Hauteur (px)","dxHtmlEditor-dialogInsertTableRowsField":"Lignes","dxHtmlEditor-dialogInsertTableColumnsField":"Colonnes","dxHtmlEditor-dialogInsertTableCaption":"Ins\xe9rer un tableau","dxHtmlEditor-dialogUpdateImageCaption":"Actualiser l\'image","dxHtmlEditor-dialogImageUpdateButton":"Actualiser","dxHtmlEditor-dialogImageAddButton":"Ajouter","dxHtmlEditor-dialogImageSpecifyUrl":"Depuis le Web","dxHtmlEditor-dialogImageSelectFile":"Depuis cet appareil","dxHtmlEditor-dialogImageKeepAspectRatio":"Conserver les proportions","dxHtmlEditor-dialogImageEncodeToBase64":"Encoder en Base64","dxHtmlEditor-heading":"Titre","dxHtmlEditor-normalText":"Texte normal","dxHtmlEditor-background":"Couleur de l\'arri\xe8re plan","dxHtmlEditor-bold":"Gras","dxHtmlEditor-color":"Couleur de police","dxHtmlEditor-font":"Police","dxHtmlEditor-italic":"Italique","dxHtmlEditor-link":"Ajouter un hyperlien","dxHtmlEditor-image":"Ajouter une image","dxHtmlEditor-size":"Taille","dxHtmlEditor-strike":"Barr\xe9","dxHtmlEditor-subscript":"Indice","dxHtmlEditor-superscript":"Suscription","dxHtmlEditor-underline":"Souligner","dxHtmlEditor-blockquote":"Citation","dxHtmlEditor-header":"Ent\xeate","dxHtmlEditor-increaseIndent":"Augmenter le retrait","dxHtmlEditor-decreaseIndent":"R\xe9duire le retrait","dxHtmlEditor-orderedList":"Liste ordonn\xe9e","dxHtmlEditor-bulletList":"Liste \xe0 puces","dxHtmlEditor-alignLeft":"Aligner \xe0 gauche","dxHtmlEditor-alignCenter":"Centrer","dxHtmlEditor-alignRight":"Aligner \xe0 droite","dxHtmlEditor-alignJustify":"Justifier","dxHtmlEditor-codeBlock":"Bloc de code","dxHtmlEditor-variable":"Ajouter une variable","dxHtmlEditor-undo":"Annuler","dxHtmlEditor-redo":"Refaire","dxHtmlEditor-clear":"Supprimer le formattage","dxHtmlEditor-insertTable":"Ins\xe9rer tableau","dxHtmlEditor-insertHeaderRow":"Ins\xe9rer une ligne d\'en-t\xeate","dxHtmlEditor-insertRowAbove":"Ins\xe9rer une ligne au-dessus","dxHtmlEditor-insertRowBelow":"Ins\xe9rer une ligne ci-dessous","dxHtmlEditor-insertColumnLeft":"Ins\xe9rer une colonne \xe0 gauche","dxHtmlEditor-insertColumnRight":"Ins\xe9rer une colonne \xe0 droite","dxHtmlEditor-deleteColumn":"Supprimer la colonne","dxHtmlEditor-deleteRow":"Supprimer la ligne","dxHtmlEditor-deleteTable":"Supprimer le tableau","dxHtmlEditor-cellProperties":"Propri\xe9t\xe9s de la cellule","dxHtmlEditor-tableProperties":"Propri\xe9t\xe9s du tableau","dxHtmlEditor-insert":"Ins\xe9rer","dxHtmlEditor-delete":"Supprimer","dxHtmlEditor-border":"Bordure","dxHtmlEditor-style":"Style","dxHtmlEditor-width":"Largeur","dxHtmlEditor-height":"Hauteur","dxHtmlEditor-borderColor":"Couleur","dxHtmlEditor-tableBackground":"Arri\xe8re plan","dxHtmlEditor-dimensions":"Dimensions","dxHtmlEditor-alignment":"Alignement","dxHtmlEditor-horizontal":"Horizontal","dxHtmlEditor-vertical":"Vertical","dxHtmlEditor-paddingVertical":"Rembourrage vertical","dxHtmlEditor-paddingHorizontal":"Rembourrage horizontal","dxHtmlEditor-pixels":"Pixels","dxHtmlEditor-list":"Liste","dxHtmlEditor-ordered":"En ordre","dxHtmlEditor-bullet":"Point","dxHtmlEditor-align":"Aligner","dxHtmlEditor-center":"Centrer","dxHtmlEditor-left":"Gauche","dxHtmlEditor-right":"Droite","dxHtmlEditor-indent":"Retrait","dxHtmlEditor-justify":"Justifier","dxFileManager-newDirectoryName":"R\xe9pertoire sans titre","dxFileManager-rootDirectoryName":"Fichiers","dxFileManager-errorNoAccess":"Acc\xe8s interdit. L\'op\xe9ration ne peut se terminer.","dxFileManager-errorDirectoryExistsFormat":"R\xe9pertoire \'{0}\' existe d\xe9j\xe0.","dxFileManager-errorFileExistsFormat":"Fichier \'{0}\' existe d\xe9j\xe0.","dxFileManager-errorFileNotFoundFormat":"Impossible de trouver le fichier \'{0}.\'","dxFileManager-errorDirectoryNotFoundFormat":"Impossible de trouver le r\xe9pertoire \'{0}.\'","dxFileManager-errorWrongFileExtension":"Extension de fichier non permise.","dxFileManager-errorMaxFileSizeExceeded":"Taille du fichier d\xe9passe la limite maximum permise.","dxFileManager-errorInvalidSymbols":"Ce nom contient des caract\xe8res invalides.","dxFileManager-errorDefault":"Erreur non sp\xe9cifi\xe9.","dxFileManager-errorDirectoryOpenFailed":"Le r\xe9pertoire ne peut s\'ouvrir","dxFileManager-commandCreate":"Nouveau r\xe9pertoire","dxFileManager-commandRename":"Renommer","dxFileManager-commandMove":"D\xe9placer","dxFileManager-commandCopy":"Copier","dxFileManager-commandDelete":"Supprimer","dxFileManager-commandDownload":"T\xe9l\xe9charger","dxFileManager-commandUpload":"T\xe9l\xe9verser des fichiers","dxFileManager-commandRefresh":"Rafra\xeechir","dxFileManager-commandThumbnails":"Mode vignette","dxFileManager-commandDetails":"Mode d\xe9tails","dxFileManager-commandClearSelection":"Vider s\xe9lection","dxFileManager-commandShowNavPane":"Basculer le volet de navigation","dxFileManager-dialogDirectoryChooserMoveTitle":"D\xe9placer vers","dxFileManager-dialogDirectoryChooserMoveButtonText":"D\xe9placer","dxFileManager-dialogDirectoryChooserCopyTitle":"Copier vers","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copier","dxFileManager-dialogRenameItemTitle":"Renommer","dxFileManager-dialogRenameItemButtonText":"Sauvegarder","dxFileManager-dialogCreateDirectoryTitle":"Nouveau r\xe9pertoire","dxFileManager-dialogCreateDirectoryButtonText":"Cr\xe9er","dxFileManager-dialogDeleteItemTitle":"Supprimer","dxFileManager-dialogDeleteItemButtonText":"Supprimer","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Voulez-vous vraiment supprimer {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Voulez-vous vraiment supprimer {0}?","dxFileManager-dialogButtonCancel":"Annuler","dxFileManager-editingCreateSingleItemProcessingMessage":"Cr\xe9er un r\xe9pertoire dans {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"R\xe9pertoire cr\xe9\xe9 dans {0}","dxFileManager-editingCreateSingleItemErrorMessage":"R\xe9pertoire n\'est pas cr\xe9\xe9","dxFileManager-editingCreateCommonErrorMessage":"R\xe9pertoire n\'est pas cr\xe9\xe9","dxFileManager-editingRenameSingleItemProcessingMessage":"Renommer un item dans {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Item renomm\xe9 dans {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item non renomm\xe9","dxFileManager-editingRenameCommonErrorMessage":"Item non renomm\xe9","dxFileManager-editingDeleteSingleItemProcessingMessage":"Supprimer un item de {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Supprimer {0} items de {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Item supprim\xe9 de {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"{0} items supprim\xe9s de {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item non suprim\xe9","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items non supprim\xe9s","dxFileManager-editingDeleteCommonErrorMessage":"Des items ne sont pas supprim\xe9s","dxFileManager-editingMoveSingleItemProcessingMessage":"En train de d\xe9placer un item vers {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"En train de d\xe9placer {0} items vers {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Item d\xe9plac\xe9 vers {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"{0} items d\xe9plac\xe9s vers {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item non d\xe9plac\xe9","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items non d\xe9plac\xe9s","dxFileManager-editingMoveCommonErrorMessage":"Des items ne sont pas d\xe9plac\xe9s","dxFileManager-editingCopySingleItemProcessingMessage":"En train de copier un item vers {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"En train de copier {0} items vers {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Item copi\xe9 vers {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"{0} items copi\xe9s vers {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item non copi\xe9","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items non copi\xe9s","dxFileManager-editingCopyCommonErrorMessage":"Des items ne sont pas copi\xe9s","dxFileManager-editingUploadSingleItemProcessingMessage":"En train de t\xe9l\xe9verser un item vers {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"En train de t\xe9l\xe9verser {0} items vers {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Item t\xe9l\xe9vers\xe9 vers {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"{0} items t\xe9l\xe9vers\xe9s vers {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item non t\xe9l\xe9vers\xe9","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items non t\xe9l\xe9vers\xe9s","dxFileManager-editingUploadCanceledMessage":"Annul\xe9","dxFileManager-editingDownloadSingleItemErrorMessage":"L\'\xe9l\xe9ment n\'a pas \xe9t\xe9 t\xe9l\xe9charg\xe9","dxFileManager-editingDownloadMultipleItemsErrorMessage":"{0} \xe9l\xe9ments n\'ont pas \xe9t\xe9 t\xe9l\xe9charg\xe9s","dxFileManager-listDetailsColumnCaptionName":"Nom","dxFileManager-listDetailsColumnCaptionDateModified":"Date modifi\xe9","dxFileManager-listDetailsColumnCaptionFileSize":"Taille de fichier","dxFileManager-listThumbnailsTooltipTextSize":"Taille","dxFileManager-listThumbnailsTooltipTextDateModified":"Date modifi\xe9","dxFileManager-notificationProgressPanelTitle":"En cours","dxFileManager-notificationProgressPanelEmptyListText":"Aucune op\xe9ration","dxFileManager-notificationProgressPanelOperationCanceled":"Annul\xe9","dxDiagram-categoryGeneral":"G\xe9n\xe9ral","dxDiagram-categoryFlowchart":"Organigramme","dxDiagram-categoryOrgChart":"Structure organisationnelle","dxDiagram-categoryContainers":"Conteneurs","dxDiagram-categoryCustom":"Personnalis\xe9","dxDiagram-commandExportToSvg":"Exporter en SVG","dxDiagram-commandExportToPng":"Exporter en PNG","dxDiagram-commandExportToJpg":"Exporter en JPEG","dxDiagram-commandUndo":"Annuler","dxDiagram-commandRedo":"Refaire","dxDiagram-commandFontName":"Nom de la police","dxDiagram-commandFontSize":"Taille de la police","dxDiagram-commandBold":"Gras","dxDiagram-commandItalic":"Italique","dxDiagram-commandUnderline":"Souligner","dxDiagram-commandTextColor":"Couleur texte","dxDiagram-commandLineColor":"Couleur ligne","dxDiagram-commandLineWidth":"Largeur de ligne","dxDiagram-commandLineStyle":"Style de ligne","dxDiagram-commandLineStyleSolid":"Solide","dxDiagram-commandLineStyleDotted":"Point\xe9","dxDiagram-commandLineStyleDashed":"Pointill\xe9","dxDiagram-commandFillColor":"Couleur remplissage","dxDiagram-commandAlignLeft":"Aligner \xe0 gauche","dxDiagram-commandAlignCenter":"Centrer","dxDiagram-commandAlignRight":"Aligner \xe0 droite","dxDiagram-commandConnectorLineType":"Type de ligne de connexion","dxDiagram-commandConnectorLineStraight":"Droit","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"D\xe9but de la ligne de connexion","dxDiagram-commandConnectorLineEnd":"Fin de la ligne de connexion","dxDiagram-commandConnectorLineNone":"Aucun","dxDiagram-commandConnectorLineArrow":"Fl\xe8che","dxDiagram-commandFullscreen":"Plein \xe9cran","dxDiagram-commandUnits":"Unit\xe9s","dxDiagram-commandPageSize":"Taille de la page","dxDiagram-commandPageOrientation":"Orientation de la page","dxDiagram-commandPageOrientationLandscape":"Paysage","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Couleur de la page","dxDiagram-commandShowGrid":"Afficher la grille","dxDiagram-commandSnapToGrid":"Aligner sur la grille","dxDiagram-commandGridSize":"Taille de la grille","dxDiagram-commandZoomLevel":"Niveau de zoom","dxDiagram-commandAutoZoom":"Zoom automatique","dxDiagram-commandFitToContent":"Ajuster au contenu","dxDiagram-commandFitToWidth":"Ajuster \xe0 la largeur","dxDiagram-commandAutoZoomByContent":"Auto zoom par contenu","dxDiagram-commandAutoZoomByWidth":"Auto zoom par largeur","dxDiagram-commandSimpleView":"Vue simple","dxDiagram-commandCut":"Couper","dxDiagram-commandCopy":"Copier","dxDiagram-commandPaste":"Coller","dxDiagram-commandSelectAll":"Tout s\xe9lectionner","dxDiagram-commandDelete":"Supprimer","dxDiagram-commandBringToFront":"Amener au premier plan","dxDiagram-commandSendToBack":"Envoyer \xe0 l\'arri\xe8re","dxDiagram-commandLock":"Verrouiller","dxDiagram-commandUnlock":"D\xe9verrouiller","dxDiagram-commandInsertShapeImage":"Ins\xe9rer une image...","dxDiagram-commandEditShapeImage":"Changer image...","dxDiagram-commandDeleteShapeImage":"Supprimer image","dxDiagram-commandLayoutLeftToRight":"Gauche \xe0 droite","dxDiagram-commandLayoutRightToLeft":"Droite \xe0 gauche","dxDiagram-commandLayoutTopToBottom":"Haut en bas","dxDiagram-commandLayoutBottomToTop":"Bas en haut","dxDiagram-unitIn":"po","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Annuler","dxDiagram-dialogInsertShapeImageTitle":"Ins\xe9rer une image","dxDiagram-dialogEditShapeImageTitle":"Changer image","dxDiagram-dialogEditShapeImageSelectButton":"S\xe9lectionner une image","dxDiagram-dialogEditShapeImageLabelText":"ou d\xe9poser le fichier ici","dxDiagram-uiExport":"Exporter","dxDiagram-uiProperties":"Propri\xe9t\xe9s","dxDiagram-uiSettings":"Param\xe8tres","dxDiagram-uiShowToolbox":"Afficher les outils","dxDiagram-uiSearch":"Recherche","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Disposition","dxDiagram-uiLayoutTree":"Arbre","dxDiagram-uiLayoutLayered":"Par couches","dxDiagram-uiDiagram":"Diagramme","dxDiagram-uiText":"Texte","dxDiagram-uiObject":"Objet","dxDiagram-uiConnector":"Connecteur","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Texte","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Croix","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamant","dxDiagram-shapeHeart":"C\u0153ur","dxDiagram-shapePentagon":"Pentagone","dxDiagram-shapeHexagon":"Hexagone","dxDiagram-shapeOctagon":"Octogone","dxDiagram-shapeStar":"\xc9toile","dxDiagram-shapeArrowLeft":"Fl\xe8che gauche","dxDiagram-shapeArrowUp":"Fl\xe8che vers le haut","dxDiagram-shapeArrowRight":"Fl\xe8che droite","dxDiagram-shapeArrowDown":"Fl\xe8che vers le bas","dxDiagram-shapeArrowUpDown":"Fl\xe8che haut bas","dxDiagram-shapeArrowLeftRight":"Fl\xe8che gauche droite","dxDiagram-shapeProcess":"Processus","dxDiagram-shapeDecision":"D\xe9cision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Processus pr\xe9d\xe9fini","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Documents multiples","dxDiagram-shapeManualInput":"Entr\xe9e manuelle","dxDiagram-shapePreparation":"Pr\xe9paration","dxDiagram-shapeData":"Donn\xe9es","dxDiagram-shapeDatabase":"Base de donn\xe9es","dxDiagram-shapeHardDisk":"Disque dur","dxDiagram-shapeInternalStorage":"Stockage interne","dxDiagram-shapePaperTape":"Bande de papier","dxDiagram-shapeManualOperation":"Op\xe9ration manuelle","dxDiagram-shapeDelay":"Retard","dxDiagram-shapeStoredData":"Les donn\xe9es stock\xe9es","dxDiagram-shapeDisplay":"Afficher","dxDiagram-shapeMerge":"Fusionner","dxDiagram-shapeConnector":"Connecteur","dxDiagram-shapeOr":"Ou","dxDiagram-shapeSummingJunction":"Jonction de sommation","dxDiagram-shapeContainerDefaultText":"R\xe9cipient","dxDiagram-shapeVerticalContainer":"Conteneur vertical","dxDiagram-shapeHorizontalContainer":"Conteneur horizontal","dxDiagram-shapeCardDefaultText":"Nom de la personne","dxDiagram-shapeCardWithImageOnLeft":"Carte avec image \xe0 gauche","dxDiagram-shapeCardWithImageOnTop":"Carte avec image sur le dessus","dxDiagram-shapeCardWithImageOnRight":"Carte avec image \xe0 droite","dxGantt-dialogTitle":"Titre","dxGantt-dialogStartTitle":"D\xe9part","dxGantt-dialogEndTitle":"Fin","dxGantt-dialogProgressTitle":"Progr\xe8s","dxGantt-dialogResourcesTitle":"Ressources","dxGantt-dialogResourceManagerTitle":"Gestionnaire de ressources","dxGantt-dialogTaskDetailsTitle":"D\xe9tails de la t\xe2che","dxGantt-dialogEditResourceListHint":"Modifier la liste des ressources","dxGantt-dialogEditNoResources":"Pas de ressources","dxGantt-dialogButtonAdd":"Ajouter","dxGantt-contextMenuNewTask":"Nouvelle t\xe2che","dxGantt-contextMenuNewSubtask":"Nouvelle sous-t\xe2che","dxGantt-contextMenuDeleteTask":"Supprimer la t\xe2che","dxGantt-contextMenuDeleteDependency":"Supprimer la d\xe9pendance","dxGantt-dialogTaskDeleteConfirmation":"La suppression d\'une t\xe2che supprime \xe9galement toutes ses d\xe9pendances et sous-t\xe2ches. \xcates-vous s\xfbr de vouloir supprimer cette t\xe2che?","dxGantt-dialogDependencyDeleteConfirmation":"\xcates-vous s\xfbr de vouloir supprimer la d\xe9pendance de la t\xe2che?","dxGantt-dialogResourcesDeleteConfirmation":"La suppression d\'une ressource la supprime \xe9galement des t\xe2ches auxquelles cette ressource est affect\xe9e. Voulez-vous vraiment supprimer ces ressources? Ressources : {0}","dxGantt-dialogConstraintCriticalViolationMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une deuxi\xe8me t\xe2che par une relation de d\xe9pendance. Ce changement serait en conflit avec les r\xe8gles de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogConstraintViolationMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une deuxi\xe8me t\xe2che par une relation de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogCancelOperationMessage":"Annuler l\'op\xe9ration","dxGantt-dialogDeleteDependencyMessage":"Supprimer la d\xe9pendance","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"D\xe9placer la t\xe2che et conserver la d\xe9pendance","dxGantt-dialogConstraintCriticalViolationSeveralTasksMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une autre t\xe2che par des relations de d\xe9pendance. Ce changement serait en conflit avec les r\xe8gles de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogConstraintViolationSeveralTasksMessage":"La t\xe2che que vous essayez de d\xe9placer est li\xe9e \xe0 une autre t\xe2che par des relations de d\xe9pendance. Comment aimeriez-vous proceder?","dxGantt-dialogDeleteDependenciesMessage":"Supprimer les d\xe9pendances","dxGantt-dialogMoveTaskAndKeepDependenciesMessage":"D\xe9placer la t\xe2che et conserver les d\xe9pendances","dxGantt-undo":"Annuler","dxGantt-redo":"Refaire","dxGantt-expandAll":"D\xe9velopper tout","dxGantt-collapseAll":"Tout r\xe9duire","dxGantt-addNewTask":"Ajouter une nouvelle t\xe2che","dxGantt-deleteSelectedTask":"Supprimer la t\xe2che s\xe9lectionn\xe9e","dxGantt-zoomIn":"Agrandir","dxGantt-zoomOut":"D\xe9zoomer","dxGantt-fullScreen":"Plein \xe9cran","dxGantt-quarter":"Q{0}","dxGantt-sortingAscendingText":"Tri croissant","dxGantt-sortingDescendingText":"Tri d\xe9croissant","dxGantt-sortingClearText":"Supprimer le tri","dxGantt-showResources":"Afficher les ressources","dxGantt-showDependencies":"Afficher les d\xe9pendances","dxGantt-dialogStartDateValidation":"La date de d\xe9but doit \xeatre post\xe9rieure au {0}","dxGantt-dialogEndDateValidation":"La date de fin doit \xeatre post\xe9rieure au {0}"}}');class bi{}bi.\u0275fac=function(Zt){return new(Zt||bi)},bi.\u0275mod=c.oAB({type:bi}),bi.\u0275inj=c.cJS({imports:[qi.ez]});class Xi{constructor(Zt){this.injector=Zt,this.injector.get(hn),this.injector.get(fn)}static forRoot(){return{ngModule:Xi,providers:[hn,fn]}}}Xi.\u0275fac=function(Zt){return new(Zt||Xi)(c.LFG(c.zs3))},Xi.\u0275mod=c.oAB({type:Xi}),Xi.\u0275inj=c.cJS({providers:[hn,fn],imports:[qi.ez,an.u5]});class mr{}mr.\u0275fac=function(Zt){return new(Zt||mr)},mr.\u0275mod=c.oAB({type:mr}),mr.\u0275inj=c.cJS({imports:[qi.ez,Xi]});var lr=u(1515),yr=u(1524),ir=u(3575);class Ir{}Ir.\u0275fac=function(Zt){return new(Zt||Ir)},Ir.\u0275mod=c.oAB({type:Ir}),Ir.\u0275inj=c.cJS({providers:[Ao],imports:[qi.ez,lr.Z,ir.NDt]});class Hr{}Hr.\u0275fac=function(Zt){return new(Zt||Hr)},Hr.\u0275mod=c.oAB({type:Hr}),Hr.\u0275inj=c.cJS({providers:[Aa],imports:[qi.ez,lr.Z,ir.NDt,an.u5]});class Or{}Or.\u0275fac=function(Zt){return new(Zt||Or)},Or.\u0275mod=c.oAB({type:Or}),Or.\u0275inj=c.cJS({providers:[We],imports:[qi.ez,lr.Z,ir.NDt]});const Pr=[{path:"chat",loadChildren:()=>u.e("src_app_chat-module_chat_module_ts").then(u.bind(u,2021)).then(Dn=>Dn.default),data:{reuseComponent:!0}}];class Ar extends o.hm{constructor(){super(...arguments),this.overrides={swipe:{direction:yr.DIRECTION_ALL},pinch:{enable:!0},pan:{enable:!0}}}}Ar.\u0275fac=function(){let Dn;return function(Wt){return(Dn||(Dn=c.n5z(Ar)))(Wt||Ar)}}(),Ar.\u0275prov=c.Yz7({token:Ar,factory:Ar.\u0275fac});class qr{constructor(Zt){this.upgrade=Zt}ngDoBootstrap(Zt){if(qr.isBootstrapped)return;const Wt=this.upgrade;document.onreadystatechange=function(){"interactive"===document.readyState&&(Wt.bootstrap(document.getElementsByTagName("html")[0],["app"],{strictDi:!0}),o.q6().bootstrapModule(qr))},qr.isBootstrapped=!0,(0,en.EV)(yi),(0,en.EV)(Ei)}}qr.isBootstrapped=!1,qr.\u0275fac=function(Zt){return new(Zt||qr)(c.LFG(Hn))},qr.\u0275mod=c.oAB({type:qr}),qr.\u0275inj=c.cJS({providers:[{provide:o.ok,useClass:Ar},{provide:ar.wN,useClass:class $i extends ar.wN{constructor(){super(...arguments),this.storedRoutes=new Map}shouldDetach(Zt){return!1}store(Zt,Wt){this.storedRoutes.set(Zt.routeConfig?.path??"/",Wt)}shouldAttach(Zt){return!!Zt.routeConfig&&!!this.storedRoutes.get(Zt.routeConfig.path)}retrieve(Zt){return this.storedRoutes.get(Zt.routeConfig?.path??"/")??null}shouldReuseRoute(Zt,Wt){return Zt.routeConfig===Wt.routeConfig}}}],imports:[o.b2,Hn,lr.Z,qi.ez,o.t6,bi,Ir,Hr,Or,mr,ar.Bz.forRoot(Pr,{initialNavigation:"enabledNonBlocking",onSameUrlNavigation:"reload",enableTracing:!1}),Xi.forRoot()]}),function Pi(){app.directive("appChatHome",Ce({component:Li})),app.directive("chatBubble",Ce({component:It})),app.directive("userVitals",Ce({component:gr})),app.directive("chatOneToOneActionButtonComponent",Ce({component:Ct})),app.directive("appSmartBanner",Ce({component:vn})),app.directive("cookieExternalMediaInfo",Ce({component:Mr,inputs:["type","isAssetListItem"]})),app.directive("cookieConsentComponentManager",Ce({component:wo})),app.directive("workflowRenderer",Ce({component:Qo,inputs:["workflowid","ispreview","articleid","revisionid"]})),app.directive("pixabaySearcher",Ce({component:Eo,inputs:["callback","callerdata","dismiss"]})),app.directive("apicodoMediaManagement",Ce({component:Jn,inputs:["callback"]})),app.config(["$stateProvider",function(Dn){Dn.state("app.chat",{url:"chat*path",template:"<app-chat-home></app-chat-home>",controller:function(){}})}])}(),(0,c.G48)(),o.q6().bootstrapModule(qr).catch(Dn=>console.error(Dn))},6872:(Rn,he,u)=>{"use strict";u.d(he,{_:()=>c,h:()=>o});const o={light:"LIGHT",dark:"DARK"},c=992},712:(Rn,he,u)=>{"use strict";u.d(he,{DA:()=>y,VV:()=>b,vw:()=>v});var o=u(6872);function v(S){const O=document.getElementById(S);return O?function x(S){let w,T,k,O=S;if(S.match(/^rgb/)){const P=O.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/);if(!P)return o.h.light;w=+P[1],T=+P[2],k=+P[3]}else{const P=+("0x"+O.slice(1).replace(O.length<5?/./g:"","$&$&"));w=P>>16,T=P>>8&255,k=255&P}return Math.sqrt(w*w*.299+T*T*.587+k*k*.114)>127.5?o.h.light:o.h.dark}(window.getComputedStyle(O).backgroundColor):o.h.light}function b(S){return S?.mimeType?.includes("image")??!1}function y(S){if(void 0===S)return!1;try{return S?.name?.endsWith("pdf")??!1}catch{return!1}}},4762:(Rn,he,u)=>{"use strict";u.d(he,{ZT:()=>c,ev:()=>T,pi:()=>I});var o=function(j,ee){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,q){G.__proto__=q}||function(G,q){for(var Z in q)Object.prototype.hasOwnProperty.call(q,Z)&&(G[Z]=q[Z])})(j,ee)};function c(j,ee){if("function"!=typeof ee&&null!==ee)throw new TypeError("Class extends value "+String(ee)+" is not a constructor or null");function G(){this.constructor=j}o(j,ee),j.prototype=null===ee?Object.create(ee):(G.prototype=ee.prototype,new G)}var I=function(){return I=Object.assign||function(ee){for(var G,q=1,Z=arguments.length;q<Z;q++)for(var X in G=arguments[q])Object.prototype.hasOwnProperty.call(G,X)&&(ee[X]=G[X]);return ee},I.apply(this,arguments)};function T(j,ee,G){if(G||2===arguments.length)for(var X,q=0,Z=ee.length;q<Z;q++)(X||!(q in ee))&&(X||(X=Array.prototype.slice.call(ee,0,q)),X[q]=ee[q]);return j.concat(X||Array.prototype.slice.call(ee))}},8692:(Rn,he,u)=>{"use strict";u.d(he,{Do:()=>w,EM:()=>ro,HT:()=>C,JF:()=>ra,K0:()=>a,Mx:()=>Nr,NF:()=>ji,O5:()=>ar,Ov:()=>_n,PC:()=>dn,PM:()=>Qi,S$:()=>E,V_:()=>l,Ye:()=>T,b0:()=>O,bD:()=>oi,ez:()=>Un,mk:()=>Sr,q:()=>I,sg:()=>Mr,tP:()=>Tn,w_:()=>g});var o=u(4370);let c=null;function I(){return c}function C(Mt){c||(c=Mt)}class g{}const a=new o.OlP("DocumentToken");let p=(()=>{class Mt{historyGo(Ht){throw new Error("Not implemented")}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)},Mt.\u0275prov=o.Yz7({token:Mt,factory:function(){return function s(){return(0,o.LFG)(d)}()},providedIn:"platform"}),Mt})();const l=new o.OlP("Location Initialized");let d=(()=>{class Mt extends p{constructor(Ht){super(),this._doc=Ht,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return I().getBaseHref(this._doc)}onPopState(Ht){const Bn=I().getGlobalEventTarget(this._doc,"window");return Bn.addEventListener("popstate",Ht,!1),()=>Bn.removeEventListener("popstate",Ht)}onHashChange(Ht){const Bn=I().getGlobalEventTarget(this._doc,"window");return Bn.addEventListener("hashchange",Ht,!1),()=>Bn.removeEventListener("hashchange",Ht)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(Ht){this._location.pathname=Ht}pushState(Ht,Bn,ui){h()?this._history.pushState(Ht,Bn,ui):this._location.hash=ui}replaceState(Ht,Bn,ui){h()?this._history.replaceState(Ht,Bn,ui):this._location.hash=ui}forward(){this._history.forward()}back(){this._history.back()}historyGo(Ht=0){this._history.go(Ht)}getState(){return this._history.state}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.LFG(a))},Mt.\u0275prov=o.Yz7({token:Mt,factory:function(){return function v(){return new d((0,o.LFG)(a))}()},providedIn:"platform"}),Mt})();function h(){return!!window.history.pushState}function x(Mt,ln){if(0==Mt.length)return ln;if(0==ln.length)return Mt;let Ht=0;return Mt.endsWith("/")&&Ht++,ln.startsWith("/")&&Ht++,2==Ht?Mt+ln.substring(1):1==Ht?Mt+ln:Mt+"/"+ln}function b(Mt){const ln=Mt.match(/#|\?|$/),Ht=ln&&ln.index||Mt.length;return Mt.slice(0,Ht-("/"===Mt[Ht-1]?1:0))+Mt.slice(Ht)}function y(Mt){return Mt&&"?"!==Mt[0]?"?"+Mt:Mt}let E=(()=>{class Mt{historyGo(Ht){throw new Error("Not implemented")}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)},Mt.\u0275prov=o.Yz7({token:Mt,factory:function(){return(0,o.f3M)(O)},providedIn:"root"}),Mt})();const S=new o.OlP("appBaseHref");let O=(()=>{class Mt extends E{constructor(Ht,Bn){super(),this._platformLocation=Ht,this._removeListenerFns=[],this._baseHref=Bn??this._platformLocation.getBaseHrefFromDOM()??(0,o.f3M)(a).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ht){this._removeListenerFns.push(this._platformLocation.onPopState(Ht),this._platformLocation.onHashChange(Ht))}getBaseHref(){return this._baseHref}prepareExternalUrl(Ht){return x(this._baseHref,Ht)}path(Ht=!1){const Bn=this._platformLocation.pathname+y(this._platformLocation.search),ui=this._platformLocation.hash;return ui&&Ht?`${Bn}${ui}`:Bn}pushState(Ht,Bn,ui,at){const ct=this.prepareExternalUrl(ui+y(at));this._platformLocation.pushState(Ht,Bn,ct)}replaceState(Ht,Bn,ui,at){const ct=this.prepareExternalUrl(ui+y(at));this._platformLocation.replaceState(Ht,Bn,ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ht=0){this._platformLocation.historyGo?.(Ht)}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.LFG(p),o.LFG(S,8))},Mt.\u0275prov=o.Yz7({token:Mt,factory:Mt.\u0275fac,providedIn:"root"}),Mt})(),w=(()=>{class Mt extends E{constructor(Ht,Bn){super(),this._platformLocation=Ht,this._baseHref="",this._removeListenerFns=[],null!=Bn&&(this._baseHref=Bn)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Ht){this._removeListenerFns.push(this._platformLocation.onPopState(Ht),this._platformLocation.onHashChange(Ht))}getBaseHref(){return this._baseHref}path(Ht=!1){let Bn=this._platformLocation.hash;return null==Bn&&(Bn="#"),Bn.length>0?Bn.substring(1):Bn}prepareExternalUrl(Ht){const Bn=x(this._baseHref,Ht);return Bn.length>0?"#"+Bn:Bn}pushState(Ht,Bn,ui,at){let ct=this.prepareExternalUrl(ui+y(at));0==ct.length&&(ct=this._platformLocation.pathname),this._platformLocation.pushState(Ht,Bn,ct)}replaceState(Ht,Bn,ui,at){let ct=this.prepareExternalUrl(ui+y(at));0==ct.length&&(ct=this._platformLocation.pathname),this._platformLocation.replaceState(Ht,Bn,ct)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(Ht=0){this._platformLocation.historyGo?.(Ht)}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.LFG(p),o.LFG(S,8))},Mt.\u0275prov=o.Yz7({token:Mt,factory:Mt.\u0275fac}),Mt})(),T=(()=>{class Mt{constructor(Ht){this._subject=new o.vpe,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=Ht;const Bn=this._locationStrategy.getBaseHref();this._basePath=function B(Mt){if(new RegExp("^(https?:)?//").test(Mt)){const[,Ht]=Mt.split(/\/\/[^\/]+/);return Ht}return Mt}(b(P(Bn))),this._locationStrategy.onPopState(ui=>{this._subject.emit({url:this.path(!0),pop:!0,state:ui.state,type:ui.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(Ht=!1){return this.normalize(this._locationStrategy.path(Ht))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(Ht,Bn=""){return this.path()==this.normalize(Ht+y(Bn))}normalize(Ht){return Mt.stripTrailingSlash(function R(Mt,ln){return Mt&&new RegExp(`^${Mt}([/;?#]|$)`).test(ln)?ln.substring(Mt.length):ln}(this._basePath,P(Ht)))}prepareExternalUrl(Ht){return Ht&&"/"!==Ht[0]&&(Ht="/"+Ht),this._locationStrategy.prepareExternalUrl(Ht)}go(Ht,Bn="",ui=null){this._locationStrategy.pushState(ui,"",Ht,Bn),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ht+y(Bn)),ui)}replaceState(Ht,Bn="",ui=null){this._locationStrategy.replaceState(ui,"",Ht,Bn),this._notifyUrlChangeListeners(this.prepareExternalUrl(Ht+y(Bn)),ui)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(Ht=0){this._locationStrategy.historyGo?.(Ht)}onUrlChange(Ht){return this._urlChangeListeners.push(Ht),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(Bn=>{this._notifyUrlChangeListeners(Bn.url,Bn.state)})),()=>{const Bn=this._urlChangeListeners.indexOf(Ht);this._urlChangeListeners.splice(Bn,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(Ht="",Bn){this._urlChangeListeners.forEach(ui=>ui(Ht,Bn))}subscribe(Ht,Bn,ui){return this._subject.subscribe({next:Ht,error:Bn,complete:ui})}}return Mt.normalizeQueryParams=y,Mt.joinWithSlash=x,Mt.stripTrailingSlash=b,Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.LFG(E))},Mt.\u0275prov=o.Yz7({token:Mt,factory:function(){return function k(){return new T((0,o.LFG)(E))}()},providedIn:"root"}),Mt})();function P(Mt){return Mt.replace(/\/index.html$/,"")}function Nr(Mt,ln){ln=encodeURIComponent(ln);for(const Ht of Mt.split(";")){const Bn=Ht.indexOf("="),[ui,at]=-1==Bn?[Ht,""]:[Ht.slice(0,Bn),Ht.slice(Bn+1)];if(ui.trim()===ln)return decodeURIComponent(at)}return null}const Gr=/\s+/,Qr=[];let Sr=(()=>{class Mt{constructor(Ht,Bn,ui,at){this._iterableDiffers=Ht,this._keyValueDiffers=Bn,this._ngEl=ui,this._renderer=at,this.initialClasses=Qr,this.stateMap=new Map}set klass(Ht){this.initialClasses=null!=Ht?Ht.trim().split(Gr):Qr}set ngClass(Ht){this.rawClass="string"==typeof Ht?Ht.trim().split(Gr):Ht}ngDoCheck(){for(const Bn of this.initialClasses)this._updateState(Bn,!0);const Ht=this.rawClass;if(Array.isArray(Ht)||Ht instanceof Set)for(const Bn of Ht)this._updateState(Bn,!0);else if(null!=Ht)for(const Bn of Object.keys(Ht))this._updateState(Bn,Boolean(Ht[Bn]));this._applyStateDiff()}_updateState(Ht,Bn){const ui=this.stateMap.get(Ht);void 0!==ui?(ui.enabled!==Bn&&(ui.changed=!0,ui.enabled=Bn),ui.touched=!0):this.stateMap.set(Ht,{enabled:Bn,changed:!0,touched:!0})}_applyStateDiff(){for(const Ht of this.stateMap){const Bn=Ht[0],ui=Ht[1];ui.changed?(this._toggleClass(Bn,ui.enabled),ui.changed=!1):ui.touched||(ui.enabled&&this._toggleClass(Bn,!1),this.stateMap.delete(Bn)),ui.touched=!1}}_toggleClass(Ht,Bn){(Ht=Ht.trim()).length>0&&Ht.split(Gr).forEach(ui=>{Bn?this._renderer.addClass(this._ngEl.nativeElement,ui):this._renderer.removeClass(this._ngEl.nativeElement,ui)})}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.Y36(o.ZZ4),o.Y36(o.aQg),o.Y36(o.SBq),o.Y36(o.Qsj))},Mt.\u0275dir=o.lG2({type:Mt,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),Mt})();class mo{constructor(ln,Ht,Bn,ui){this.$implicit=ln,this.ngForOf=Ht,this.index=Bn,this.count=ui}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Mr=(()=>{class Mt{set ngForOf(Ht){this._ngForOf=Ht,this._ngForOfDirty=!0}set ngForTrackBy(Ht){this._trackByFn=Ht}get ngForTrackBy(){return this._trackByFn}constructor(Ht,Bn,ui){this._viewContainer=Ht,this._template=Bn,this._differs=ui,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(Ht){Ht&&(this._template=Ht)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Ht=this._ngForOf;!this._differ&&Ht&&(this._differ=this._differs.find(Ht).create(this.ngForTrackBy))}if(this._differ){const Ht=this._differ.diff(this._ngForOf);Ht&&this._applyChanges(Ht)}}_applyChanges(Ht){const Bn=this._viewContainer;Ht.forEachOperation((ui,at,ct)=>{if(null==ui.previousIndex)Bn.createEmbeddedView(this._template,new mo(ui.item,this._ngForOf,-1,-1),null===ct?void 0:ct);else if(null==ct)Bn.remove(null===at?void 0:at);else if(null!==at){const Et=Bn.get(at);Bn.move(Et,ct),po(Et,ui)}});for(let ui=0,at=Bn.length;ui<at;ui++){const Et=Bn.get(ui).context;Et.index=ui,Et.count=at,Et.ngForOf=this._ngForOf}Ht.forEachIdentityChange(ui=>{po(Bn.get(ui.currentIndex),ui)})}static ngTemplateContextGuard(Ht,Bn){return!0}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.Y36(o.s_b),o.Y36(o.Rgc),o.Y36(o.ZZ4))},Mt.\u0275dir=o.lG2({type:Mt,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),Mt})();function po(Mt,ln){Mt.context.$implicit=ln.item}let ar=(()=>{class Mt{constructor(Ht,Bn){this._viewContainer=Ht,this._context=new Xr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=Bn}set ngIf(Ht){this._context.$implicit=this._context.ngIf=Ht,this._updateView()}set ngIfThen(Ht){lo("ngIfThen",Ht),this._thenTemplateRef=Ht,this._thenViewRef=null,this._updateView()}set ngIfElse(Ht){lo("ngIfElse",Ht),this._elseTemplateRef=Ht,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(Ht,Bn){return!0}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.Y36(o.s_b),o.Y36(o.Rgc))},Mt.\u0275dir=o.lG2({type:Mt,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),Mt})();class Xr{constructor(){this.$implicit=null,this.ngIf=null}}function lo(Mt,ln){if(ln&&!ln.createEmbeddedView)throw new Error(`${Mt} must be a TemplateRef, but received '${(0,o.AaK)(ln)}'.`)}let dn=(()=>{class Mt{constructor(Ht,Bn,ui){this._ngEl=Ht,this._differs=Bn,this._renderer=ui,this._ngStyle=null,this._differ=null}set ngStyle(Ht){this._ngStyle=Ht,!this._differ&&Ht&&(this._differ=this._differs.find(Ht).create())}ngDoCheck(){if(this._differ){const Ht=this._differ.diff(this._ngStyle);Ht&&this._applyChanges(Ht)}}_setStyle(Ht,Bn){const[ui,at]=Ht.split("."),ct=-1===ui.indexOf("-")?void 0:o.JOm.DashCase;null!=Bn?this._renderer.setStyle(this._ngEl.nativeElement,ui,at?`${Bn}${at}`:Bn,ct):this._renderer.removeStyle(this._ngEl.nativeElement,ui,ct)}_applyChanges(Ht){Ht.forEachRemovedItem(Bn=>this._setStyle(Bn.key,null)),Ht.forEachAddedItem(Bn=>this._setStyle(Bn.key,Bn.currentValue)),Ht.forEachChangedItem(Bn=>this._setStyle(Bn.key,Bn.currentValue))}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.Y36(o.SBq),o.Y36(o.aQg),o.Y36(o.Qsj))},Mt.\u0275dir=o.lG2({type:Mt,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),Mt})(),Tn=(()=>{class Mt{constructor(Ht){this._viewContainerRef=Ht,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(Ht){if(Ht.ngTemplateOutlet||Ht.ngTemplateOutletInjector){const Bn=this._viewContainerRef;if(this._viewRef&&Bn.remove(Bn.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:ui,ngTemplateOutletContext:at,ngTemplateOutletInjector:ct}=this;this._viewRef=Bn.createEmbeddedView(ui,at,ct?{injector:ct}:void 0)}else this._viewRef=null}else this._viewRef&&Ht.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.Y36(o.s_b))},Mt.\u0275dir=o.lG2({type:Mt,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[o.TTD]}),Mt})();class Li{createSubscription(ln,Ht){return ln.subscribe({next:Ht,error:Bn=>{throw Bn}})}dispose(ln){ln.unsubscribe()}}class sr{createSubscription(ln,Ht){return ln.then(Ht,Bn=>{throw Bn})}dispose(ln){}}const gr=new sr,Qt=new Li;let _n=(()=>{class Mt{constructor(Ht){this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=Ht}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(Ht){return this._obj?Ht!==this._obj?(this._dispose(),this.transform(Ht)):this._latestValue:(Ht&&this._subscribe(Ht),this._latestValue)}_subscribe(Ht){this._obj=Ht,this._strategy=this._selectStrategy(Ht),this._subscription=this._strategy.createSubscription(Ht,Bn=>this._updateLatestValue(Ht,Bn))}_selectStrategy(Ht){if((0,o.QGY)(Ht))return gr;if((0,o.F4k)(Ht))return Qt;throw function fi(Mt,ln){return new o.vHH(2100,!1)}()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Ht,Bn){Ht===this._obj&&(this._latestValue=Bn,this._ref.markForCheck())}}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)(o.Y36(o.sBO,16))},Mt.\u0275pipe=o.Yjl({name:"async",type:Mt,pure:!1,standalone:!0}),Mt})(),Un=(()=>{class Mt{}return Mt.\u0275fac=function(Ht){return new(Ht||Mt)},Mt.\u0275mod=o.oAB({type:Mt}),Mt.\u0275inj=o.cJS({}),Mt})();const oi="browser";function ji(Mt){return Mt===oi}function Qi(Mt){return"server"===Mt}let ro=(()=>{class Mt{}return Mt.\u0275prov=(0,o.Yz7)({token:Mt,providedIn:"root",factory:()=>new No((0,o.LFG)(a),window)}),Mt})();class No{constructor(ln,Ht){this.document=ln,this.window=Ht,this.offset=()=>[0,0]}setOffset(ln){this.offset=Array.isArray(ln)?()=>ln:ln}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(ln){this.supportsScrolling()&&this.window.scrollTo(ln[0],ln[1])}scrollToAnchor(ln){if(!this.supportsScrolling())return;const Ht=function $o(Mt,ln){const Ht=Mt.getElementById(ln)||Mt.getElementsByName(ln)[0];if(Ht)return Ht;if("function"==typeof Mt.createTreeWalker&&Mt.body&&(Mt.body.createShadowRoot||Mt.body.attachShadow)){const Bn=Mt.createTreeWalker(Mt.body,NodeFilter.SHOW_ELEMENT);let ui=Bn.currentNode;for(;ui;){const at=ui.shadowRoot;if(at){const ct=at.getElementById(ln)||at.querySelector(`[name="${ln}"]`);if(ct)return ct}ui=Bn.nextNode()}}return null}(this.document,ln);Ht&&(this.scrollToElement(Ht),Ht.focus())}setHistoryScrollRestoration(ln){if(this.supportScrollRestoration()){const Ht=this.window.history;Ht&&Ht.scrollRestoration&&(Ht.scrollRestoration=ln)}}scrollToElement(ln){const Ht=ln.getBoundingClientRect(),Bn=Ht.left+this.window.pageXOffset,ui=Ht.top+this.window.pageYOffset,at=this.offset();this.window.scrollTo(Bn-at[0],ui-at[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const ln=uo(this.window.history)||uo(Object.getPrototypeOf(this.window.history));return!(!ln||!ln.writable&&!ln.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function uo(Mt){return Object.getOwnPropertyDescriptor(Mt,"scrollRestoration")}class ra{}},5732:(Rn,he,u)=>{"use strict";u.d(he,{JF:()=>Ve,eN:()=>ee,jN:()=>l,rs:()=>Xe});var o=u(8692),c=u(4370),I=u(5917),C=u(882),g=u(4612),a=u(5435),p=u(8002);class s{}class l{}class d{constructor(lt){this.normalizedNames=new Map,this.lazyUpdate=null,lt?this.lazyInit="string"==typeof lt?()=>{this.headers=new Map,lt.split("\n").forEach(dt=>{const vt=dt.indexOf(":");if(vt>0){const Lt=dt.slice(0,vt),bn=Lt.toLowerCase(),mn=dt.slice(vt+1).trim();this.maybeSetNormalizedName(Lt,bn),this.headers.has(bn)?this.headers.get(bn).push(mn):this.headers.set(bn,[mn])}})}:()=>{this.headers=new Map,Object.keys(lt).forEach(dt=>{let vt=lt[dt];const Lt=dt.toLowerCase();"string"==typeof vt&&(vt=[vt]),vt.length>0&&(this.headers.set(Lt,vt),this.maybeSetNormalizedName(dt,Lt))})}:this.headers=new Map}has(lt){return this.init(),this.headers.has(lt.toLowerCase())}get(lt){this.init();const dt=this.headers.get(lt.toLowerCase());return dt&&dt.length>0?dt[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(lt){return this.init(),this.headers.get(lt.toLowerCase())||null}append(lt,dt){return this.clone({name:lt,value:dt,op:"a"})}set(lt,dt){return this.clone({name:lt,value:dt,op:"s"})}delete(lt,dt){return this.clone({name:lt,value:dt,op:"d"})}maybeSetNormalizedName(lt,dt){this.normalizedNames.has(dt)||this.normalizedNames.set(dt,lt)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(lt=>this.applyUpdate(lt)),this.lazyUpdate=null))}copyFrom(lt){lt.init(),Array.from(lt.headers.keys()).forEach(dt=>{this.headers.set(dt,lt.headers.get(dt)),this.normalizedNames.set(dt,lt.normalizedNames.get(dt))})}clone(lt){const dt=new d;return dt.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,dt.lazyUpdate=(this.lazyUpdate||[]).concat([lt]),dt}applyUpdate(lt){const dt=lt.name.toLowerCase();switch(lt.op){case"a":case"s":let vt=lt.value;if("string"==typeof vt&&(vt=[vt]),0===vt.length)return;this.maybeSetNormalizedName(lt.name,dt);const Lt=("a"===lt.op?this.headers.get(dt):void 0)||[];Lt.push(...vt),this.headers.set(dt,Lt);break;case"d":const bn=lt.value;if(bn){let mn=this.headers.get(dt);if(!mn)return;mn=mn.filter(xn=>-1===bn.indexOf(xn)),0===mn.length?(this.headers.delete(dt),this.normalizedNames.delete(dt)):this.headers.set(dt,mn)}else this.headers.delete(dt),this.normalizedNames.delete(dt)}}forEach(lt){this.init(),Array.from(this.normalizedNames.keys()).forEach(dt=>lt(this.normalizedNames.get(dt),this.headers.get(dt)))}}class v{encodeKey(lt){return E(lt)}encodeValue(lt){return E(lt)}decodeKey(lt){return decodeURIComponent(lt)}decodeValue(lt){return decodeURIComponent(lt)}}const b=/%(\d[a-f0-9])/gi,y={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function E(Vt){return encodeURIComponent(Vt).replace(b,(lt,dt)=>y[dt]??lt)}function S(Vt){return`${Vt}`}class O{constructor(lt={}){if(this.updates=null,this.cloneFrom=null,this.encoder=lt.encoder||new v,lt.fromString){if(lt.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function x(Vt,lt){const dt=new Map;return Vt.length>0&&Vt.replace(/^\?/,"").split("&").forEach(Lt=>{const bn=Lt.indexOf("="),[mn,xn]=-1==bn?[lt.decodeKey(Lt),""]:[lt.decodeKey(Lt.slice(0,bn)),lt.decodeValue(Lt.slice(bn+1))],Xn=dt.get(mn)||[];Xn.push(xn),dt.set(mn,Xn)}),dt}(lt.fromString,this.encoder)}else lt.fromObject?(this.map=new Map,Object.keys(lt.fromObject).forEach(dt=>{const vt=lt.fromObject[dt],Lt=Array.isArray(vt)?vt.map(S):[S(vt)];this.map.set(dt,Lt)})):this.map=null}has(lt){return this.init(),this.map.has(lt)}get(lt){this.init();const dt=this.map.get(lt);return dt?dt[0]:null}getAll(lt){return this.init(),this.map.get(lt)||null}keys(){return this.init(),Array.from(this.map.keys())}append(lt,dt){return this.clone({param:lt,value:dt,op:"a"})}appendAll(lt){const dt=[];return Object.keys(lt).forEach(vt=>{const Lt=lt[vt];Array.isArray(Lt)?Lt.forEach(bn=>{dt.push({param:vt,value:bn,op:"a"})}):dt.push({param:vt,value:Lt,op:"a"})}),this.clone(dt)}set(lt,dt){return this.clone({param:lt,value:dt,op:"s"})}delete(lt,dt){return this.clone({param:lt,value:dt,op:"d"})}toString(){return this.init(),this.keys().map(lt=>{const dt=this.encoder.encodeKey(lt);return this.map.get(lt).map(vt=>dt+"="+this.encoder.encodeValue(vt)).join("&")}).filter(lt=>""!==lt).join("&")}clone(lt){const dt=new O({encoder:this.encoder});return dt.cloneFrom=this.cloneFrom||this,dt.updates=(this.updates||[]).concat(lt),dt}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(lt=>this.map.set(lt,this.cloneFrom.map.get(lt))),this.updates.forEach(lt=>{switch(lt.op){case"a":case"s":const dt=("a"===lt.op?this.map.get(lt.param):void 0)||[];dt.push(S(lt.value)),this.map.set(lt.param,dt);break;case"d":if(void 0===lt.value){this.map.delete(lt.param);break}{let vt=this.map.get(lt.param)||[];const Lt=vt.indexOf(S(lt.value));-1!==Lt&&vt.splice(Lt,1),vt.length>0?this.map.set(lt.param,vt):this.map.delete(lt.param)}}}),this.cloneFrom=this.updates=null)}}class T{constructor(){this.map=new Map}set(lt,dt){return this.map.set(lt,dt),this}get(lt){return this.map.has(lt)||this.map.set(lt,lt.defaultValue()),this.map.get(lt)}delete(lt){return this.map.delete(lt),this}has(lt){return this.map.has(lt)}keys(){return this.map.keys()}}function R(Vt){return typeof ArrayBuffer<"u"&&Vt instanceof ArrayBuffer}function P(Vt){return typeof Blob<"u"&&Vt instanceof Blob}function B(Vt){return typeof FormData<"u"&&Vt instanceof FormData}class z{constructor(lt,dt,vt,Lt){let bn;if(this.url=dt,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=lt.toUpperCase(),function k(Vt){switch(Vt){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||Lt?(this.body=void 0!==vt?vt:null,bn=Lt):bn=vt,bn&&(this.reportProgress=!!bn.reportProgress,this.withCredentials=!!bn.withCredentials,bn.responseType&&(this.responseType=bn.responseType),bn.headers&&(this.headers=bn.headers),bn.context&&(this.context=bn.context),bn.params&&(this.params=bn.params)),this.headers||(this.headers=new d),this.context||(this.context=new T),this.params){const mn=this.params.toString();if(0===mn.length)this.urlWithParams=dt;else{const xn=dt.indexOf("?");this.urlWithParams=dt+(-1===xn?"?":xn<dt.length-1?"&":"")+mn}}else this.params=new O,this.urlWithParams=dt}serializeBody(){return null===this.body?null:R(this.body)||P(this.body)||B(this.body)||function W(Vt){return typeof URLSearchParams<"u"&&Vt instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof O?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||B(this.body)?null:P(this.body)?this.body.type||null:R(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof O?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(lt={}){const dt=lt.method||this.method,vt=lt.url||this.url,Lt=lt.responseType||this.responseType,bn=void 0!==lt.body?lt.body:this.body,mn=void 0!==lt.withCredentials?lt.withCredentials:this.withCredentials,xn=void 0!==lt.reportProgress?lt.reportProgress:this.reportProgress;let Xn=lt.headers||this.headers,li=lt.params||this.params;const ki=lt.context??this.context;return void 0!==lt.setHeaders&&(Xn=Object.keys(lt.setHeaders).reduce((Vn,Oi)=>Vn.set(Oi,lt.setHeaders[Oi]),Xn)),lt.setParams&&(li=Object.keys(lt.setParams).reduce((Vn,Oi)=>Vn.set(Oi,lt.setParams[Oi]),li)),new z(dt,vt,bn,{params:li,headers:Xn,context:ki,reportProgress:xn,responseType:Lt,withCredentials:mn})}}var V=(()=>((V=V||{})[V.Sent=0]="Sent",V[V.UploadProgress=1]="UploadProgress",V[V.ResponseHeader=2]="ResponseHeader",V[V.DownloadProgress=3]="DownloadProgress",V[V.Response=4]="Response",V[V.User=5]="User",V))();class U{constructor(lt,dt=200,vt="OK"){this.headers=lt.headers||new d,this.status=void 0!==lt.status?lt.status:dt,this.statusText=lt.statusText||vt,this.url=lt.url||null,this.ok=this.status>=200&&this.status<300}}class K extends U{constructor(lt={}){super(lt),this.type=V.ResponseHeader}clone(lt={}){return new K({headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}class Y extends U{constructor(lt={}){super(lt),this.type=V.Response,this.body=void 0!==lt.body?lt.body:null}clone(lt={}){return new Y({body:void 0!==lt.body?lt.body:this.body,headers:lt.headers||this.headers,status:void 0!==lt.status?lt.status:this.status,statusText:lt.statusText||this.statusText,url:lt.url||this.url||void 0})}}class J extends U{constructor(lt){super(lt,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${lt.url||"(unknown url)"}`:`Http failure response for ${lt.url||"(unknown url)"}: ${lt.status} ${lt.statusText}`,this.error=lt.error||null}}function j(Vt,lt){return{body:lt,headers:Vt.headers,context:Vt.context,observe:Vt.observe,params:Vt.params,reportProgress:Vt.reportProgress,responseType:Vt.responseType,withCredentials:Vt.withCredentials}}let ee=(()=>{class Vt{constructor(dt){this.handler=dt}request(dt,vt,Lt={}){let bn;if(dt instanceof z)bn=dt;else{let Xn,li;Xn=Lt.headers instanceof d?Lt.headers:new d(Lt.headers),Lt.params&&(li=Lt.params instanceof O?Lt.params:new O({fromObject:Lt.params})),bn=new z(dt,vt,void 0!==Lt.body?Lt.body:null,{headers:Xn,context:Lt.context,params:li,reportProgress:Lt.reportProgress,responseType:Lt.responseType||"json",withCredentials:Lt.withCredentials})}const mn=(0,I.of)(bn).pipe((0,g.b)(Xn=>this.handler.handle(Xn)));if(dt instanceof z||"events"===Lt.observe)return mn;const xn=mn.pipe((0,a.h)(Xn=>Xn instanceof Y));switch(Lt.observe||"body"){case"body":switch(bn.responseType){case"arraybuffer":return xn.pipe((0,p.U)(Xn=>{if(null!==Xn.body&&!(Xn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Xn.body}));case"blob":return xn.pipe((0,p.U)(Xn=>{if(null!==Xn.body&&!(Xn.body instanceof Blob))throw new Error("Response is not a Blob.");return Xn.body}));case"text":return xn.pipe((0,p.U)(Xn=>{if(null!==Xn.body&&"string"!=typeof Xn.body)throw new Error("Response is not a string.");return Xn.body}));default:return xn.pipe((0,p.U)(Xn=>Xn.body))}case"response":return xn;default:throw new Error(`Unreachable: unhandled observe type ${Lt.observe}}`)}}delete(dt,vt={}){return this.request("DELETE",dt,vt)}get(dt,vt={}){return this.request("GET",dt,vt)}head(dt,vt={}){return this.request("HEAD",dt,vt)}jsonp(dt,vt){return this.request("JSONP",dt,{params:(new O).append(vt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(dt,vt={}){return this.request("OPTIONS",dt,vt)}patch(dt,vt,Lt={}){return this.request("PATCH",dt,j(Lt,vt))}post(dt,vt,Lt={}){return this.request("POST",dt,j(Lt,vt))}put(dt,vt,Lt={}){return this.request("PUT",dt,j(Lt,vt))}}return Vt.\u0275fac=function(dt){return new(dt||Vt)(c.LFG(s))},Vt.\u0275prov=c.Yz7({token:Vt,factory:Vt.\u0275fac}),Vt})();function G(Vt,lt){return lt(Vt)}function q(Vt,lt){return(dt,vt)=>lt.intercept(dt,{handle:Lt=>Vt(Lt,vt)})}const X=new c.OlP("HTTP_INTERCEPTORS"),M=new c.OlP("HTTP_INTERCEPTOR_FNS");function oe(){let Vt=null;return(lt,dt)=>(null===Vt&&(Vt=((0,c.f3M)(X,{optional:!0})??[]).reduceRight(q,G)),Vt(lt,dt))}let fe=(()=>{class Vt extends s{constructor(dt,vt){super(),this.backend=dt,this.injector=vt,this.chain=null}handle(dt){if(null===this.chain){const vt=Array.from(new Set(this.injector.get(M)));this.chain=vt.reduceRight((Lt,bn)=>function Z(Vt,lt,dt){return(vt,Lt)=>dt.runInContext(()=>lt(vt,bn=>Vt(bn,Lt)))}(Lt,bn,this.injector),G)}return this.chain(dt,vt=>this.backend.handle(vt))}}return Vt.\u0275fac=function(dt){return new(dt||Vt)(c.LFG(l),c.LFG(c.lqb))},Vt.\u0275prov=c.Yz7({token:Vt,factory:Vt.\u0275fac}),Vt})();const re=/^\)\]\}',?\n/;let ie=(()=>{class Vt{constructor(dt){this.xhrFactory=dt}handle(dt){if("JSONP"===dt.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new C.y(vt=>{const Lt=this.xhrFactory.build();if(Lt.open(dt.method,dt.urlWithParams),dt.withCredentials&&(Lt.withCredentials=!0),dt.headers.forEach((Hn,En)=>Lt.setRequestHeader(Hn,En.join(","))),dt.headers.has("Accept")||Lt.setRequestHeader("Accept","application/json, text/plain, */*"),!dt.headers.has("Content-Type")){const Hn=dt.detectContentTypeHeader();null!==Hn&&Lt.setRequestHeader("Content-Type",Hn)}if(dt.responseType){const Hn=dt.responseType.toLowerCase();Lt.responseType="json"!==Hn?Hn:"text"}const bn=dt.serializeBody();let mn=null;const xn=()=>{if(null!==mn)return mn;const Hn=Lt.statusText||"OK",En=new d(Lt.getAllResponseHeaders()),Mn=function te(Vt){return"responseURL"in Vt&&Vt.responseURL?Vt.responseURL:/^X-Request-URL:/m.test(Vt.getAllResponseHeaders())?Vt.getResponseHeader("X-Request-URL"):null}(Lt)||dt.url;return mn=new K({headers:En,status:Lt.status,statusText:Hn,url:Mn}),mn},Xn=()=>{let{headers:Hn,status:En,statusText:Mn,url:ei}=xn(),Wn=null;204!==En&&(Wn=typeof Lt.response>"u"?Lt.responseText:Lt.response),0===En&&(En=Wn?200:0);let Ji=En>=200&&En<300;if("json"===dt.responseType&&"string"==typeof Wn){const Sn=Wn;Wn=Wn.replace(re,"");try{Wn=""!==Wn?JSON.parse(Wn):null}catch(Qn){Wn=Sn,Ji&&(Ji=!1,Wn={error:Qn,text:Wn})}}Ji?(vt.next(new Y({body:Wn,headers:Hn,status:En,statusText:Mn,url:ei||void 0})),vt.complete()):vt.error(new J({error:Wn,headers:Hn,status:En,statusText:Mn,url:ei||void 0}))},li=Hn=>{const{url:En}=xn(),Mn=new J({error:Hn,status:Lt.status||0,statusText:Lt.statusText||"Unknown Error",url:En||void 0});vt.error(Mn)};let ki=!1;const Vn=Hn=>{ki||(vt.next(xn()),ki=!0);let En={type:V.DownloadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(En.total=Hn.total),"text"===dt.responseType&&Lt.responseText&&(En.partialText=Lt.responseText),vt.next(En)},Oi=Hn=>{let En={type:V.UploadProgress,loaded:Hn.loaded};Hn.lengthComputable&&(En.total=Hn.total),vt.next(En)};return Lt.addEventListener("load",Xn),Lt.addEventListener("error",li),Lt.addEventListener("timeout",li),Lt.addEventListener("abort",li),dt.reportProgress&&(Lt.addEventListener("progress",Vn),null!==bn&&Lt.upload&&Lt.upload.addEventListener("progress",Oi)),Lt.send(bn),vt.next({type:V.Sent}),()=>{Lt.removeEventListener("error",li),Lt.removeEventListener("abort",li),Lt.removeEventListener("load",Xn),Lt.removeEventListener("timeout",li),dt.reportProgress&&(Lt.removeEventListener("progress",Vn),null!==bn&&Lt.upload&&Lt.upload.removeEventListener("progress",Oi)),Lt.readyState!==Lt.DONE&&Lt.abort()}})}}return Vt.\u0275fac=function(dt){return new(dt||Vt)(c.LFG(o.JF))},Vt.\u0275prov=c.Yz7({token:Vt,factory:Vt.\u0275fac}),Vt})();const ue=new c.OlP("XSRF_ENABLED"),be="XSRF-TOKEN",Ae=new c.OlP("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>be}),Ne="X-XSRF-TOKEN",mt=new c.OlP("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>Ne});class tt{}let Le=(()=>{class Vt{constructor(dt,vt,Lt){this.doc=dt,this.platform=vt,this.cookieName=Lt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const dt=this.doc.cookie||"";return dt!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,o.Mx)(dt,this.cookieName),this.lastCookieString=dt),this.lastToken}}return Vt.\u0275fac=function(dt){return new(dt||Vt)(c.LFG(o.K0),c.LFG(c.Lbi),c.LFG(Ae))},Vt.\u0275prov=c.Yz7({token:Vt,factory:Vt.\u0275fac}),Vt})();function gt(Vt,lt){const dt=Vt.url.toLowerCase();if(!(0,c.f3M)(ue)||"GET"===Vt.method||"HEAD"===Vt.method||dt.startsWith("http://")||dt.startsWith("https://"))return lt(Vt);const vt=(0,c.f3M)(tt).getToken(),Lt=(0,c.f3M)(mt);return null!=vt&&!Vt.headers.has(Lt)&&(Vt=Vt.clone({headers:Vt.headers.set(Lt,vt)})),lt(Vt)}var Pe=(()=>((Pe=Pe||{})[Pe.Interceptors=0]="Interceptors",Pe[Pe.LegacyInterceptors=1]="LegacyInterceptors",Pe[Pe.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Pe[Pe.NoXsrfProtection=3]="NoXsrfProtection",Pe[Pe.JsonpSupport=4]="JsonpSupport",Pe[Pe.RequestsMadeViaParent=5]="RequestsMadeViaParent",Pe))();function $e(Vt,lt){return{\u0275kind:Vt,\u0275providers:lt}}function ge(...Vt){const lt=[ee,ie,fe,{provide:s,useExisting:fe},{provide:l,useExisting:ie},{provide:M,useValue:gt,multi:!0},{provide:ue,useValue:!0},{provide:tt,useClass:Le}];for(const dt of Vt)lt.push(...dt.\u0275providers);return(0,c.MR2)(lt)}const De=new c.OlP("LEGACY_INTERCEPTOR_FN");function bt({cookieName:Vt,headerName:lt}){const dt=[];return void 0!==Vt&&dt.push({provide:Ae,useValue:Vt}),void 0!==lt&&dt.push({provide:mt,useValue:lt}),$e(Pe.CustomXsrfConfiguration,dt)}let Ve=(()=>{class Vt{}return Vt.\u0275fac=function(dt){return new(dt||Vt)},Vt.\u0275mod=c.oAB({type:Vt}),Vt.\u0275inj=c.cJS({providers:[ge($e(Pe.LegacyInterceptors,[{provide:De,useFactory:oe},{provide:M,useExisting:De,multi:!0}]),bt({cookieName:be,headerName:Ne}))]}),Vt})();const Xe=o.JF},4370:(Rn,he,u)=>{"use strict";u.d(he,{tb:()=>Mv,AFp:()=>Xx,ip1:()=>Iv,CZH:()=>ch,hGG:()=>MO,z2F:()=>Kl,sBO:()=>UM,Sil:()=>LM,_Vd:()=>Gc,EJc:()=>Pv,Xts:()=>Fl,SBq:()=>xm,lqb:()=>fo,qLn:()=>lp,vpe:()=>Od,XFs:()=>Pe,OlP:()=>Ea,zs3:()=>Xc,ZZ4:()=>mh,aQg:()=>vb,soG:()=>C0,YKP:()=>_v,h0i:()=>El,PXZ:()=>zM,R0b:()=>al,FiY:()=>Au,Lbi:()=>vf,g9A:()=>v0,f1m:()=>Fv,Qsj:()=>b1,FYo:()=>Fw,JOm:()=>$s,q3G:()=>Na,WD2:()=>wo,tp0:()=>nu,Rgc:()=>c0,dDg:()=>tb,eoX:()=>nb,q4F:()=>Vw,GfV:()=>bm,s_b:()=>Sl,ifc:()=>Sn,MMx:()=>yv,Lck:()=>sc,eFA:()=>_O,G48:()=>Dd,Gpc:()=>w,f3M:()=>Xn,$WT:()=>mo,MR2:()=>Ie,_c5:()=>Zv,c2e:()=>y0,zSh:()=>Zi,wAp:()=>Oo,eQZ:()=>Mo,vHH:()=>W,lri:()=>Bv,rWj:()=>eb,JZr:()=>B,EiD:()=>_m,mCW:()=>kl,qzn:()=>Gd,JVY:()=>Dg,pB0:()=>zc,eBb:()=>Tg,L6k:()=>mm,LAX:()=>Bu,D6c:()=>XM,cg1:()=>KC,kL8:()=>tS,dqk:()=>bt,Z0I:()=>ue,CqO:()=>Wl,QGY:()=>EC,F4k:()=>SC,RDi:()=>wg,AaK:()=>E,z3N:()=>ru,qOj:()=>H_,TTD:()=>Uo,_Bn:()=>DS,jDz:()=>cx,xp6:()=>Xy,uIk:()=>Z_,Tol:()=>RC,Gre:()=>KE,ekj:()=>ef,Suo:()=>ZS,Xpm:()=>hi,lG2:()=>Qr,Yz7:()=>Se,cJS:()=>te,oAB:()=>kr,Yjl:()=>Sr,Y36:()=>gp,_UZ:()=>bC,GkF:()=>Km,BQk:()=>J_,ynx:()=>q_,qZA:()=>X_,TgZ:()=>Y_,EpF:()=>wC,n5z:()=>Qa,LFG:()=>mn,$8M:()=>ad,$Z:()=>rE,NdJ:()=>Q_,CRH:()=>kx,kcU:()=>Ht,O4$:()=>Mt,oxw:()=>DC,ALo:()=>VS,lcZ:()=>Ex,Hsn:()=>qg,F$t:()=>ol,Q6J:()=>CC,s9C:()=>ev,DdM:()=>yx,VKq:()=>l0,WLB:()=>kS,iGM:()=>Px,MAs:()=>yC,KtG:()=>Gn,Jf7:()=>Yc,CHM:()=>pn,oJD:()=>Pg,LSH:()=>qa,P3R:()=>E_,B6R:()=>Si,kYT:()=>Nr,Jzz:()=>GE,Udp:()=>rh,YNc:()=>vC,W1O:()=>GS,_uU:()=>VC,Oqu:()=>rv,hij:()=>ov,AsE:()=>NC,Gf:()=>p0});var o=u(5775),c=u(3464),I=u(882),C=u(4869),g=u(3282),a=u(6693),s=u(2441);class d{constructor(H,$){this.subjectFactory=H,this.selector=$}call(H,$){const{selector:de}=this,xe=this.subjectFactory(),ke=de(xe).subscribe(H);return ke.add($.subscribe(xe)),ke}}var h=u(1307);function v(){return new o.xQ}function b(F){for(let H in F)if(F[H]===b)return H;throw Error("Could not find renamed property on target object.")}function y(F,H){for(const $ in H)H.hasOwnProperty($)&&!F.hasOwnProperty($)&&(F[$]=H[$])}function E(F){if("string"==typeof F)return F;if(Array.isArray(F))return"["+F.map(E).join(", ")+"]";if(null==F)return""+F;if(F.overriddenName)return`${F.overriddenName}`;if(F.name)return`${F.name}`;const H=F.toString();if(null==H)return""+H;const $=H.indexOf("\n");return-1===$?H:H.substring(0,$)}function S(F,H){return null==F||""===F?null===H?"":H:null==H||""===H?F:F+" "+H}const O=b({__forward_ref__:b});function w(F){return F.__forward_ref__=w,F.toString=function(){return E(this())},F}function T(F){return k(F)?F():F}function k(F){return"function"==typeof F&&F.hasOwnProperty(O)&&F.__forward_ref__===w}function R(F){return F&&!!F.\u0275providers}const B="https://g.co/ng/security#xss";class W extends Error{constructor(H,$){super(function z(F,H){return`NG0${Math.abs(F)}${H?": "+H.trim():""}`}(H,$)),this.code=H}}function V(F){return"string"==typeof F?F:null==F?"":String(F)}function j(F,H){throw new W(-201,!1)}function ye(F,H){null==F&&function ne(F,H,$,de){throw new Error(`ASSERTION ERROR: ${F}`+(null==de?"":` [Expected=> ${$} ${de} ${H} <=Actual]`))}(H,F,null,"!=")}function Se(F){return{token:F.token,providedIn:F.providedIn||null,factory:F.factory,value:void 0}}function te(F){return{providers:F.providers||[],imports:F.imports||[]}}function ie(F){return be(F,tt)||be(F,gt)}function ue(F){return null!==ie(F)}function be(F,H){return F.hasOwnProperty(H)?F[H]:null}function mt(F){return F&&(F.hasOwnProperty(Le)||F.hasOwnProperty(tn))?F[Le]:null}const tt=b({\u0275prov:b}),Le=b({\u0275inj:b}),gt=b({ngInjectableDef:b}),tn=b({ngInjectorDef:b});var Pe=(()=>((Pe=Pe||{})[Pe.Default=0]="Default",Pe[Pe.Host=1]="Host",Pe[Pe.Self=2]="Self",Pe[Pe.SkipSelf=4]="SkipSelf",Pe[Pe.Optional=8]="Optional",Pe))();let $e;function Ce(F){const H=$e;return $e=F,H}function De(F,H,$){const de=ie(F);return de&&"root"==de.providedIn?void 0===de.value?de.value=de.factory():de.value:$&Pe.Optional?null:void 0!==H?H:void j(E(F))}const bt=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),ut={},Ve="__NG_DI_FLAG__",St="ngTempTokenPath",Vt=/\n/gm,dt="__source";let vt;function Lt(F){const H=vt;return vt=F,H}function bn(F,H=Pe.Default){if(void 0===vt)throw new W(-203,!1);return null===vt?De(F,void 0,H):vt.get(F,H&Pe.Optional?null:void 0,H)}function mn(F,H=Pe.Default){return(function ge(){return $e}()||bn)(T(F),H)}function Xn(F,H=Pe.Default){return mn(F,li(H))}function li(F){return typeof F>"u"||"number"==typeof F?F:0|(F.optional&&8)|(F.host&&1)|(F.self&&2)|(F.skipSelf&&4)}function ki(F){const H=[];for(let $=0;$<F.length;$++){const de=T(F[$]);if(Array.isArray(de)){if(0===de.length)throw new W(900,!1);let xe,ke=Pe.Default;for(let Je=0;Je<de.length;Je++){const Dt=de[Je],Nt=Oi(Dt);"number"==typeof Nt?-1===Nt?xe=Dt.token:ke|=Nt:xe=Dt}H.push(mn(xe,ke))}else H.push(mn(de))}return H}function Vn(F,H){return F[Ve]=H,F.prototype[Ve]=H,F}function Oi(F){return F[Ve]}function Mn(F){return{toString:F}.toString()}var ei=(()=>((ei=ei||{})[ei.OnPush=0]="OnPush",ei[ei.Default=1]="Default",ei))(),Sn=(()=>{return(F=Sn||(Sn={}))[F.Emulated=0]="Emulated",F[F.None=2]="None",F[F.ShadowDom=3]="ShadowDom",Sn;var F})();const Qn={},ti=[],ci=b({\u0275cmp:b}),Wi=b({\u0275dir:b}),qi=b({\u0275pipe:b}),nr=b({\u0275mod:b}),xr=b({\u0275fac:b}),vn=b({__NG_ELEMENT_ID__:b});let Pn=0;function hi(F){return Mn(()=>{const $=!0===F.standalone,de={},xe={type:F.type,providersResolver:null,decls:F.decls,vars:F.vars,factory:null,template:F.template||null,consts:F.consts||null,ngContentSelectors:F.ngContentSelectors,hostBindings:F.hostBindings||null,hostVars:F.hostVars||0,hostAttrs:F.hostAttrs||null,contentQueries:F.contentQueries||null,declaredInputs:de,inputs:null,outputs:null,exportAs:F.exportAs||null,onPush:F.changeDetection===ei.OnPush,directiveDefs:null,pipeDefs:null,standalone:$,dependencies:$&&F.dependencies||null,getStandaloneInjector:null,selectors:F.selectors||ti,viewQuery:F.viewQuery||null,features:F.features||null,data:F.data||{},encapsulation:F.encapsulation||Sn.Emulated,id:"c"+Pn++,styles:F.styles||ti,_:null,setInput:null,schemas:F.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},ke=F.dependencies,Je=F.features;return xe.inputs=Gr(F.inputs,de),xe.outputs=Gr(F.outputs),Je&&Je.forEach(Dt=>Dt(xe)),xe.directiveDefs=ke?()=>("function"==typeof ke?ke():ke).map(Yi).filter(dr):null,xe.pipeDefs=ke?()=>("function"==typeof ke?ke():ke).map(Rr).filter(dr):null,xe})}function Si(F,H,$){const de=F.\u0275cmp;de.directiveDefs=()=>("function"==typeof H?H():H).map(Yi),de.pipeDefs=()=>("function"==typeof $?$():$).map(Rr)}function Yi(F){return Wr(F)||Ur(F)}function dr(F){return null!==F}function kr(F){return Mn(()=>({type:F.type,bootstrap:F.bootstrap||ti,declarations:F.declarations||ti,imports:F.imports||ti,exports:F.exports||ti,transitiveCompileScopes:null,schemas:F.schemas||null,id:F.id||null}))}function Nr(F,H){return Mn(()=>{const $=Mr(F,!0);$.declarations=H.declarations||ti,$.imports=H.imports||ti,$.exports=H.exports||ti})}function Gr(F,H){if(null==F)return Qn;const $={};for(const de in F)if(F.hasOwnProperty(de)){let xe=F[de],ke=xe;Array.isArray(xe)&&(ke=xe[1],xe=xe[0]),$[xe]=de,H&&(H[xe]=ke)}return $}const Qr=hi;function Sr(F){return{type:F.type,name:F.name,factory:null,pure:!1!==F.pure,standalone:!0===F.standalone,onDestroy:F.type.prototype.ngOnDestroy||null}}function Wr(F){return F[ci]||null}function Ur(F){return F[Wi]||null}function Rr(F){return F[qi]||null}function mo(F){const H=Wr(F)||Ur(F)||Rr(F);return null!==H&&H.standalone}function Mr(F,H){const $=F[nr]||null;if(!$&&!0===H)throw new Error(`Type ${E(F)} does not have '\u0275mod' property.`);return $}function hn(F){return Array.isArray(F)&&"object"==typeof F[1]}function an(F){return Array.isArray(F)&&!0===F[1]}function Nn(F){return 0!=(4&F.flags)}function $n(F){return F.componentOffset>-1}function ot(F){return 1==(1&F.flags)}function Bt(F){return null!==F.template}function nn(F){return 0!=(256&F[2])}function ra(F,H){return F.hasOwnProperty(xr)?F[xr]:null}class wo{constructor(H,$,de){this.previousValue=H,this.currentValue=$,this.firstChange=de}isFirstChange(){return this.firstChange}}function Uo(){return Ao}function Ao(F){return F.type.prototype.ngOnChanges&&(F.setInput=io),Da}function Da(){const F=ga(this),H=F?.current;if(H){const $=F.previous;if($===Qn)F.previous=H;else for(let de in H)$[de]=H[de];F.current=null,this.ngOnChanges(H)}}function io(F,H,$,de){const xe=this.declaredInputs[$],ke=ga(F)||function $a(F,H){return F[jo]=H}(F,{previous:Qn,current:null}),Je=ke.current||(ke.current={}),Dt=ke.previous,Nt=Dt[xe];Je[xe]=new wo(Nt&&Nt.currentValue,H,Dt===Qn),F[de]=H}Uo.ngInherit=!0;const jo="__ngSimpleChanges__";function ga(F){return F[jo]||null}function qo(F){for(;Array.isArray(F);)F=F[0];return F}function Jo(F,H){return qo(H[F])}function aa(F,H){return qo(H[F.index])}function xa(F,H){return F.data[H]}function ma(F,H){return F[H]}function Qo(F,H){const $=H[F];return hn($)?$:$[0]}function ba(F){return 64==(64&F[2])}function _a(F,H){return null==H?null:F[H]}function Jt(F){F[18]=0}function Ut(F,H){F[5]+=H;let $=F,de=F[3];for(;null!==de&&(1===H&&1===$[5]||-1===H&&0===$[5]);)de[5]+=H,$=de,de=de[3]}const At={lFrame:Jr(null),bindingsEnabled:!0};function it(){return At.bindingsEnabled}function rt(){return At.lFrame.lView}function $t(){return At.lFrame.tView}function pn(F){return At.lFrame.contextLView=F,F[8]}function Gn(F){return At.lFrame.contextLView=null,F}function Jn(){let F=Pi();for(;null!==F&&64===F.type;)F=F.parent;return F}function Pi(){return At.lFrame.currentTNode}function Ei(F,H){const $=At.lFrame;$.currentTNode=F,$.isParent=H}function bi(){return At.lFrame.isParent}function Xi(){At.lFrame.isParent=!1}function $i(){const F=At.lFrame;let H=F.bindingRootIndex;return-1===H&&(H=F.bindingRootIndex=F.tView.bindingStartIndex),H}function Hr(){return At.lFrame.bindingIndex++}function Or(F){const H=At.lFrame,$=H.bindingIndex;return H.bindingIndex=H.bindingIndex+F,$}function qr(F,H){const $=At.lFrame;$.bindingIndex=$.bindingRootIndex=F,Dn(H)}function Dn(F){At.lFrame.currentDirectiveIndex=F}function Wt(){return At.lFrame.currentQueryIndex}function qn(F){At.lFrame.currentQueryIndex=F}function ni(F){const H=F[1];return 2===H.type?H.declTNode:1===H.type?F[6]:null}function Di(F,H,$){if($&Pe.SkipSelf){let xe=H,ke=F;for(;!(xe=xe.parent,null!==xe||$&Pe.Host||(xe=ni(ke),null===xe||(ke=ke[15],10&xe.type))););if(null===xe)return!1;H=xe,F=ke}const de=At.lFrame=cr();return de.currentTNode=H,de.lView=F,!0}function Hi(F){const H=cr(),$=F[1];At.lFrame=H,H.currentTNode=$.firstChild,H.lView=F,H.tView=$,H.contextLView=F,H.bindingIndex=$.bindingStartIndex,H.inI18n=!1}function cr(){const F=At.lFrame,H=null===F?null:F.child;return null===H?Jr(F):H}function Jr(F){const H={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:F,child:null,inI18n:!1};return null!==F&&(F.child=H),H}function Er(){const F=At.lFrame;return At.lFrame=F.parent,F.currentTNode=null,F.lView=null,F}const go=Er;function xo(){const F=Er();F.isParent=!0,F.tView=null,F.selectedIndex=-1,F.contextLView=null,F.elementDepthCount=0,F.currentDirectiveIndex=-1,F.currentNamespace=null,F.bindingRootIndex=-1,F.bindingIndex=-1,F.currentQueryIndex=0}function Zo(){return At.lFrame.selectedIndex}function da(F){At.lFrame.selectedIndex=F}function Br(){const F=At.lFrame;return xa(F.tView,F.selectedIndex)}function Mt(){At.lFrame.currentNamespace="svg"}function Ht(){!function Bn(){At.lFrame.currentNamespace=null}()}function ct(F,H){for(let $=H.directiveStart,de=H.directiveEnd;$<de;$++){const ke=F.data[$].type.prototype,{ngAfterContentInit:Je,ngAfterContentChecked:Dt,ngAfterViewInit:Nt,ngAfterViewChecked:cn,ngOnDestroy:Fn}=ke;Je&&(F.contentHooks||(F.contentHooks=[])).push(-$,Je),Dt&&((F.contentHooks||(F.contentHooks=[])).push($,Dt),(F.contentCheckHooks||(F.contentCheckHooks=[])).push($,Dt)),Nt&&(F.viewHooks||(F.viewHooks=[])).push(-$,Nt),cn&&((F.viewHooks||(F.viewHooks=[])).push($,cn),(F.viewCheckHooks||(F.viewCheckHooks=[])).push($,cn)),null!=Fn&&(F.destroyHooks||(F.destroyHooks=[])).push($,Fn)}}function Et(F,H,$){Ii(F,H,3,$)}function Ln(F,H,$,de){(3&F[2])===$&&Ii(F,H,$,de)}function si(F,H){let $=F[2];(3&$)===H&&($&=2047,$+=1,F[2]=$)}function Ii(F,H,$,de){const ke=de??-1,Je=H.length-1;let Dt=0;for(let Nt=void 0!==de?65535&F[18]:0;Nt<Je;Nt++)if("number"==typeof H[Nt+1]){if(Dt=H[Nt],null!=de&&Dt>=de)break}else H[Nt]<0&&(F[18]+=65536),(Dt<ke||-1==ke)&&(Vi(F,$,H,Nt),F[18]=(4294901760&F[18])+Nt+2),Nt++}function Vi(F,H,$,de){const xe=$[de]<0,ke=$[de+1],Dt=F[xe?-$[de]:$[de]];if(xe){if(F[2]>>11<F[18]>>16&&(3&F[2])===H){F[2]+=2048;try{ke.call(Dt)}finally{}}}else try{ke.call(Dt)}finally{}}class vr{constructor(H,$,de){this.factory=H,this.resolving=!1,this.canSeeViewProviders=$,this.injectImpl=de}}function va(F,H,$){let de=0;for(;de<$.length;){const xe=$[de];if("number"==typeof xe){if(0!==xe)break;de++;const ke=$[de++],Je=$[de++],Dt=$[de++];F.setAttribute(H,Je,Dt,ke)}else{const ke=xe,Je=$[++de];ya(ke)?F.setProperty(H,ke,Je):F.setAttribute(H,ke,Je),de++}}return de}function ta(F){return 3===F||4===F||6===F}function ya(F){return 64===F.charCodeAt(0)}function Ml(F,H){if(null!==H&&0!==H.length)if(null===F||0===F.length)F=H.slice();else{let $=-1;for(let de=0;de<H.length;de++){const xe=H[de];"number"==typeof xe?$=xe:0===$||Ld(F,$,xe,null,-1===$||2===$?H[++de]:null)}}return F}function Ld(F,H,$,de,xe){let ke=0,Je=F.length;if(-1===H)Je=-1;else for(;ke<F.length;){const Dt=F[ke++];if("number"==typeof Dt){if(Dt===H){Je=-1;break}if(Dt>H){Je=ke-1;break}}}for(;ke<F.length;){const Dt=F[ke];if("number"==typeof Dt)break;if(Dt===$){if(null===de)return void(null!==xe&&(F[ke+1]=xe));if(de===F[ke+1])return void(F[ke+2]=xe)}ke++,null!==de&&ke++,null!==xe&&ke++}-1!==Je&&(F.splice(Je,0,H),ke=Je+1),F.splice(ke++,0,$),null!==de&&F.splice(ke++,0,de),null!==xe&&F.splice(ke++,0,xe)}function Ph(F){return-1!==F}function td(F){return 32767&F}function wu(F,H){let $=function bu(F){return F>>16}(F),de=H;for(;$>0;)de=de[15],$--;return de}let Bd=!0;function Eu(F){const H=Bd;return Bd=F,H}let Cc=0;const Us={};function Su(F,H){const $=xc(F,H);if(-1!==$)return $;const de=H[1];de.firstCreatePass&&(F.injectorIndex=H.length,Ou(de.data,F),Ou(H,null),Ou(de.blueprint,null));const xe=Fd(F,H),ke=F.injectorIndex;if(Ph(xe)){const Je=td(xe),Dt=wu(xe,H),Nt=Dt[1].data;for(let cn=0;cn<8;cn++)H[ke+cn]=Dt[Je+cn]|Nt[Je+cn]}return H[ke+8]=xe,ke}function Ou(F,H){F.push(0,0,0,0,0,0,0,0,H)}function xc(F,H){return-1===F.injectorIndex||F.parent&&F.parent.injectorIndex===F.injectorIndex||null===H[F.injectorIndex+8]?-1:F.injectorIndex}function Fd(F,H){if(F.parent&&-1!==F.parent.injectorIndex)return F.parent.injectorIndex;let $=0,de=null,xe=H;for(;null!==xe;){if(de=Nd(xe),null===de)return-1;if($++,xe=xe[15],-1!==de.injectorIndex)return de.injectorIndex|$<<16}return-1}function id(F,H,$){!function Up(F,H,$){let de;"string"==typeof $?de=$.charCodeAt(0)||0:$.hasOwnProperty(vn)&&(de=$[vn]),null==de&&(de=$[vn]=Cc++);const xe=255&de;H.data[F+(xe>>5)]|=1<<xe}(F,H,$)}function bc(F,H,$){if($&Pe.Optional||void 0!==F)return F;j()}function wc(F,H,$,de){if($&Pe.Optional&&void 0===de&&(de=null),!($&(Pe.Self|Pe.Host))){const xe=F[9],ke=Ce(void 0);try{return xe?xe.get(H,de,$&Pe.Optional):De(H,de,$&Pe.Optional)}finally{Ce(ke)}}return bc(de,0,$)}function rd(F,H,$,de=Pe.Default,xe){if(null!==F){if(1024&H[2]){const Je=function Tu(F,H,$,de,xe){let ke=F,Je=H;for(;null!==ke&&null!==Je&&1024&Je[2]&&!(256&Je[2]);){const Dt=Du(ke,Je,$,de|Pe.Self,Us);if(Dt!==Us)return Dt;let Nt=ke.parent;if(!Nt){const cn=Je[21];if(cn){const Fn=cn.get($,Us,de);if(Fn!==Us)return Fn}Nt=Nd(Je),Je=Je[15]}ke=Nt}return xe}(F,H,$,de,Us);if(Je!==Us)return Je}const ke=Du(F,H,$,de,Us);if(ke!==Us)return ke}return wc(H,$,de,xe)}function Du(F,H,$,de,xe){const ke=function od(F){if("string"==typeof F)return F.charCodeAt(0)||0;const H=F.hasOwnProperty(vn)?F[vn]:void 0;return"number"==typeof H?H>=0?255&H:Zs:H}($);if("function"==typeof ke){if(!Di(H,F,de))return de&Pe.Host?bc(xe,0,de):wc(H,$,de,xe);try{const Je=ke(de);if(null!=Je||de&Pe.Optional)return Je;j()}finally{go()}}else if("number"==typeof ke){let Je=null,Dt=xc(F,H),Nt=-1,cn=de&Pe.Host?H[16][6]:null;for((-1===Dt||de&Pe.SkipSelf)&&(Nt=-1===Dt?Fd(F,H):H[Dt+8],-1!==Nt&&Vd(de,!1)?(Je=H[1],Dt=td(Nt),H=wu(Nt,H)):Dt=-1);-1!==Dt;){const Fn=H[1];if(As(ke,Dt,Fn.data)){const ii=Ec(Dt,H,$,Je,de,cn);if(ii!==Us)return ii}Nt=H[Dt+8],-1!==Nt&&Vd(de,H[1].data[Dt+8]===cn)&&As(ke,Dt,H)?(Je=Fn,Dt=td(Nt),H=wu(Nt,H)):Dt=-1}}return xe}function Ec(F,H,$,de,xe,ke){const Je=H[1],Dt=Je.data[F+8],Fn=ql(Dt,Je,$,null==de?$n(Dt)&&Bd:de!=Je&&0!=(3&Dt.type),xe&Pe.Host&&ke===Dt);return null!==Fn?Es(H,Je,Fn,Dt):Us}function ql(F,H,$,de,xe){const ke=F.providerIndexes,Je=H.data,Dt=1048575&ke,Nt=F.directiveStart,Fn=ke>>20,Ti=xe?Dt+Fn:F.directiveEnd;for(let zi=de?Dt:Dt+Fn;zi<Ti;zi++){const ur=Je[zi];if(zi<Nt&&$===ur||zi>=Nt&&ur.type===$)return zi}if(xe){const zi=Je[Nt];if(zi&&Bt(zi)&&zi.type===$)return Nt}return null}function Es(F,H,$,de){let xe=F[$];const ke=H.data;if(function Zr(F){return F instanceof vr}(xe)){const Je=xe;Je.resolving&&function K(F,H){const $=H?`. Dependency path: ${H.join(" > ")} > ${F}`:"";throw new W(-200,`Circular dependency in DI detected for ${F}${$}`)}(function U(F){return"function"==typeof F?F.name||F.toString():"object"==typeof F&&null!=F&&"function"==typeof F.type?F.type.name||F.type.toString():V(F)}(ke[$]));const Dt=Eu(Je.canSeeViewProviders);Je.resolving=!0;const Nt=Je.injectImpl?Ce(Je.injectImpl):null;Di(F,de,Pe.Default);try{xe=F[$]=Je.factory(void 0,ke,F,de),H.firstCreatePass&&$>=de.directiveStart&&function at(F,H,$){const{ngOnChanges:de,ngOnInit:xe,ngDoCheck:ke}=H.type.prototype;if(de){const Je=Ao(H);($.preOrderHooks||($.preOrderHooks=[])).push(F,Je),($.preOrderCheckHooks||($.preOrderCheckHooks=[])).push(F,Je)}xe&&($.preOrderHooks||($.preOrderHooks=[])).push(0-F,xe),ke&&(($.preOrderHooks||($.preOrderHooks=[])).push(F,ke),($.preOrderCheckHooks||($.preOrderCheckHooks=[])).push(F,ke))}($,ke[$],H)}finally{null!==Nt&&Ce(Nt),Eu(Dt),Je.resolving=!1,go()}}return xe}function As(F,H,$){return!!($[H+(F>>5)]&1<<F)}function Vd(F,H){return!(F&Pe.Self||F&Pe.Host&&H)}class Ss{constructor(H,$){this._tNode=H,this._lView=$}get(H,$,de){return rd(this._tNode,this._lView,H,li(de),$)}}function Zs(){return new Ss(Jn(),rt())}function Qa(F){return Mn(()=>{const H=F.prototype.constructor,$=H[xr]||yl(H),de=Object.prototype;let xe=Object.getPrototypeOf(F.prototype).constructor;for(;xe&&xe!==de;){const ke=xe[xr]||yl(xe);if(ke&&ke!==$)return ke;xe=Object.getPrototypeOf(xe)}return ke=>new ke})}function yl(F){return k(F)?()=>{const H=yl(T(F));return H&&H()}:ra(F)}function Nd(F){const H=F[1],$=H.type;return 2===$?H.declTNode:1===$?F[6]:null}function ad(F){return function Zp(F,H){if("class"===H)return F.classes;if("style"===H)return F.styles;const $=F.attrs;if($){const de=$.length;let xe=0;for(;xe<de;){const ke=$[xe];if(ta(ke))break;if(0===ke)xe+=2;else if("number"==typeof ke)for(xe++;xe<de&&"string"==typeof $[xe];)xe++;else{if(ke===H)return $[xe+1];xe+=2}}}return null}(Jn(),F)}const Cl="__parameters__";function nl(F,H,$){return Mn(()=>{const de=function Ql(F){return function(...$){if(F){const de=F(...$);for(const xe in de)this[xe]=de[xe]}}}(H);function xe(...ke){if(this instanceof xe)return de.apply(this,ke),this;const Je=new xe(...ke);return Dt.annotation=Je,Dt;function Dt(Nt,cn,Fn){const ii=Nt.hasOwnProperty(Cl)?Nt[Cl]:Object.defineProperty(Nt,Cl,{value:[]})[Cl];for(;ii.length<=Fn;)ii.push(null);return(ii[Fn]=ii[Fn]||[]).push(Je),Nt}}return $&&(xe.prototype=Object.create($.prototype)),xe.prototype.ngMetadataName=F,xe.annotationCls=xe,xe})}class Ea{constructor(H,$){this._desc=H,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof $?this.__NG_ELEMENT_ID__=$:void 0!==$&&(this.\u0275prov=Se({token:this,providedIn:$.providedIn||"root",factory:$.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Os(F,H){F.forEach($=>Array.isArray($)?Os($,H):H($))}function cd(F,H,$){H>=F.length?F.push($):F.splice(H,0,$)}function hd(F,H){return H>=F.length-1?F.pop():F.splice(H,1)[0]}function Hd(F,H){const $=[];for(let de=0;de<F;de++)$.push(H);return $}function ps(F,H,$){let de=eu(F,H);return de>=0?F[1|de]=$:(de=~de,function Dc(F,H,$,de){let xe=F.length;if(xe==H)F.push($,de);else if(1===xe)F.push(de,F[0]),F[0]=$;else{for(xe--,F.push(F[xe-1],F[xe]);xe>H;)F[xe]=F[xe-2],xe--;F[H]=$,F[H+1]=de}}(F,de,H,$)),de}function cl(F,H){const $=eu(F,H);if($>=0)return F[1|$]}function eu(F,H){return function Tc(F,H,$){let de=0,xe=F.length>>$;for(;xe!==de;){const ke=de+(xe-de>>1),Je=F[ke<<$];if(H===Je)return ke<<$;Je>H?xe=ke:de=ke+1}return~(xe<<$)}(F,H,1)}const Au=Vn(nl("Optional"),8),nu=Vn(nl("SkipSelf"),4);var $s=(()=>(($s=$s||{})[$s.Important=1]="Important",$s[$s.DashCase=2]="DashCase",$s))();const ig=new Map;let nm=0;const og="__ngContext__";function os(F,H){hn(H)?(F[og]=H[20],function im(F){ig.set(F[20],F)}(H)):F[og]=H}function Uh(F,H){return undefined(F,H)}function Zd(F){const H=F[3];return an(H)?H[3]:H}function Zh(F){return dg(F[13])}function Kh(F){return dg(F[4])}function dg(F){for(;null!==F&&!an(F);)F=F[4];return F}function Ru(F,H,$,de,xe){if(null!=de){let ke,Je=!1;an(de)?ke=de:hn(de)&&(Je=!0,de=de[0]);const Dt=qo(de);0===F&&null!==$?null==xe?qh(H,$,Dt):Xs(H,$,Dt,xe||null,!0):1===F&&null!==$?Xs(H,$,Dt,xe||null,!0):2===F?function _d(F,H,$){const de=Kd(F,H);de&&function dm(F,H,$,de){F.removeChild(H,$,de)}(F,de,H,$)}(H,Dt,Je):3===F&&H.destroyNode(Dt),null!=ke&&function vd(F,H,$,de,xe){const ke=$[7];ke!==qo($)&&Ru(H,F,de,ke,xe);for(let Dt=10;Dt<$.length;Dt++){const Nt=$[Dt];Bs(Nt[1],Nt,F,H,de,ke)}}(H,F,ke,$,xe)}}function jh(F,H,$){return F.createElement(H,$)}function $h(F,H){const $=F[9],de=$.indexOf(H),xe=H[3];512&H[2]&&(H[2]&=-513,Ut(xe,-1)),$.splice(de,1)}function xl(F,H){if(F.length<=10)return;const $=10+H,de=F[$];if(de){const xe=de[17];null!==xe&&xe!==F&&$h(xe,de),H>0&&(F[$-1][4]=de[4]);const ke=hd(F,10+H);!function sm(F,H){Bs(F,H,H[11],2,null,null),H[0]=null,H[6]=null}(de[1],de);const Je=ke[19];null!==Je&&Je.detachView(ke[1]),de[3]=null,de[4]=null,de[2]&=-65}return de}function Yh(F,H){if(!(128&H[2])){const $=H[11];$.destroyNode&&Bs(F,H,$,3,null,null),function hg(F){let H=F[13];if(!H)return pg(F[1],F);for(;H;){let $=null;if(hn(H))$=H[13];else{const de=H[10];de&&($=de)}if(!$){for(;H&&!H[4]&&H!==F;)hn(H)&&pg(H[1],H),H=H[3];null===H&&(H=F),hn(H)&&pg(H[1],H),$=H&&H[4]}H=$}}(H)}}function pg(F,H){if(!(128&H[2])){H[2]&=-65,H[2]|=128,function gg(F,H){let $;if(null!=F&&null!=($=F.destroyHooks))for(let de=0;de<$.length;de+=2){const xe=H[$[de]];if(!(xe instanceof vr)){const ke=$[de+1];if(Array.isArray(ke))for(let Je=0;Je<ke.length;Je+=2){const Dt=xe[ke[Je]],Nt=ke[Je+1];try{Nt.call(Dt)}finally{}}else try{ke.call(xe)}finally{}}}}(F,H),function um(F,H){const $=F.cleanup,de=H[7];let xe=-1;if(null!==$)for(let ke=0;ke<$.length-1;ke+=2)if("string"==typeof $[ke]){const Je=$[ke+3];Je>=0?de[xe=Je]():de[xe=-Je].unsubscribe(),ke+=2}else{const Je=de[xe=$[ke+1]];$[ke].call(Je)}if(null!==de){for(let ke=xe+1;ke<de.length;ke++)(0,de[ke])();H[7]=null}}(F,H),1===H[1].type&&H[11].destroy();const $=H[17];if(null!==$&&an(H[3])){$!==H[3]&&$h($,H);const de=H[19];null!==de&&de.detachView(F)}!function rm(F){ig.delete(F[20])}(H)}}function Xh(F,H,$){return function So(F,H,$){let de=H;for(;null!==de&&40&de.type;)de=(H=de).parent;if(null===de)return $[0];{const{componentOffset:xe}=de;if(xe>-1){const{encapsulation:ke}=F.data[de.directiveStart+xe];if(ke===Sn.None||ke===Sn.Emulated)return null}return aa(de,$)}}(F,H.parent,$)}function Xs(F,H,$,de,xe){F.insertBefore(H,$,de,xe)}function qh(F,H,$){F.appendChild(H,$)}function fg(F,H,$,de,xe){null!==de?Xs(F,H,$,de,xe):qh(F,H,$)}function Kd(F,H){return F.parentNode(H)}function Jh(F,H,$){return vg(F,H,$)}let Fc,bg,Nc,vg=function _g(F,H,$){return 40&F.type?aa(F,$):null};function Va(F,H,$,de){const xe=Xh(F,de,H),ke=H[11],Dt=Jh(de.parent||H[6],de,H);if(null!=xe)if(Array.isArray($))for(let Nt=0;Nt<$.length;Nt++)fg(ke,xe,$[Nt],Dt,!1);else fg(ke,xe,$,Dt,!1)}function il(F,H){if(null!==H){const $=H.type;if(3&$)return aa(H,F);if(4&$)return Qh(-1,F[H.index]);if(8&$){const de=H.child;if(null!==de)return il(F,de);{const xe=F[H.index];return an(xe)?Qh(-1,xe):qo(xe)}}if(32&$)return Uh(H,F)()||qo(F[H.index]);{const de=yn(F,H);return null!==de?Array.isArray(de)?de[0]:il(Zd(F[16]),de):il(F,H.next)}}return null}function yn(F,H){return null!==H?F[16][6].projection[H.projection]:null}function Qh(F,H){const $=10+F+1;if($<H.length){const de=H[$],xe=de[1].firstChild;if(null!==xe)return il(de,xe)}return H[7]}function Ls(F,H,$,de,xe,ke,Je){for(;null!=$;){const Dt=de[$.index],Nt=$.type;if(Je&&0===H&&(Dt&&os(qo(Dt),de),$.flags|=2),32!=(32&$.flags))if(8&Nt)Ls(F,H,$.child,de,xe,ke,!1),Ru(H,F,xe,Dt,ke);else if(32&Nt){const cn=Uh($,de);let Fn;for(;Fn=cn();)Ru(H,F,xe,Fn,ke);Ru(H,F,xe,Dt,ke)}else 16&Nt?Cg(F,H,de,$,xe,ke):Ru(H,F,xe,Dt,ke);$=Je?$.projectionNext:$.next}}function Bs(F,H,$,de,xe,ke){Ls($,de,F.firstChild,H,xe,ke,!1)}function Cg(F,H,$,de,xe,ke){const Je=$[16],Nt=Je[6].projection[de.projection];if(Array.isArray(Nt))for(let cn=0;cn<Nt.length;cn++)Ru(H,F,xe,Nt[cn],ke);else Ls(F,H,Nt,Je[3],xe,ke,!0)}function yd(F,H,$){""===$?F.removeAttribute(H,"class"):F.setAttribute(H,"class",$)}function bl(F,H,$){const{mergedAttrs:de,classes:xe,styles:ke}=$;null!==de&&va(F,H,de),null!==xe&&yd(F,H,xe),null!==ke&&function xg(F,H,$){F.setAttribute(H,"style",$)}(F,H,ke)}function Lu(F){return function Cd(){if(void 0===Fc&&(Fc=null,bt.trustedTypes))try{Fc=bt.trustedTypes.createPolicy("angular",{createHTML:F=>F,createScript:F=>F,createScriptURL:F=>F})}catch{}return Fc}()?.createHTML(F)||F}function wg(F){bg=F}function tp(){if(void 0===Nc&&(Nc=null,bt.trustedTypes))try{Nc=bt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:F=>F,createScript:F=>F,createScriptURL:F=>F})}catch{}return Nc}function Hc(F){return tp()?.createHTML(F)||F}function Sg(F){return tp()?.createScriptURL(F)||F}class xd{constructor(H){this.changingThisBreaksApplicationSecurity=H}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${B})`}}class pm extends xd{getTypeName(){return"HTML"}}class b_ extends xd{getTypeName(){return"Style"}}class Og extends xd{getTypeName(){return"Script"}}class gm extends xd{getTypeName(){return"URL"}}class fm extends xd{getTypeName(){return"ResourceURL"}}function ru(F){return F instanceof xd?F.changingThisBreaksApplicationSecurity:F}function Gd(F,H){const $=function Ky(F){return F instanceof xd&&F.getTypeName()||null}(F);if(null!=$&&$!==H){if("ResourceURL"===$&&"URL"===H)return!0;throw new Error(`Required a safe ${H}, got a ${$} (see ${B})`)}return $===H}function Dg(F){return new pm(F)}function mm(F){return new b_(F)}function Tg(F){return new Og(F)}function Bu(F){return new gm(F)}function zc(F){return new fm(F)}class ip{constructor(H){this.inertDocumentHelper=H}getInertBodyElement(H){H="<body><remove></remove>"+H;try{const $=(new window.DOMParser).parseFromString(Lu(H),"text/html").body;return null===$?this.inertDocumentHelper.getInertBodyElement(H):($.removeChild($.firstChild),$)}catch{return null}}}class jd{constructor(H){if(this.defaultDoc=H,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const $=this.inertDocument.createElement("html");this.inertDocument.appendChild($);const de=this.inertDocument.createElement("body");$.appendChild(de)}}getInertBodyElement(H){const $=this.inertDocument.createElement("template");if("content"in $)return $.innerHTML=Lu(H),$;const de=this.inertDocument.createElement("body");return de.innerHTML=Lu(H),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(de),de}stripCustomNsAttrs(H){const $=H.attributes;for(let xe=$.length-1;0<xe;xe--){const Je=$.item(xe).name;("xmlns:ns1"===Je||0===Je.indexOf("ns1:"))&&H.removeAttribute(Je)}let de=H.firstChild;for(;de;)de.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(de),de=de.nextSibling}}const rp=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function kl(F){return(F=String(F)).match(rp)?F:"unsafe:"+F}function Rl(F){const H={};for(const $ of F.split(","))H[$]=!0;return H}function Uc(...F){const H={};for(const $ of F)for(const de in $)$.hasOwnProperty(de)&&(H[de]=!0);return H}const Mg=Rl("area,br,col,hr,img,wbr"),op=Rl("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ap=Rl("rp,rt"),Zc=Uc(Mg,Uc(op,Rl("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Uc(ap,Rl("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Uc(ap,op)),L=Rl("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),je=Uc(L,Rl("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Rl("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),di=Rl("script,style,template");class Mi{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(H){let $=H.firstChild,de=!0;for(;$;)if($.nodeType===Node.ELEMENT_NODE?de=this.startElement($):$.nodeType===Node.TEXT_NODE?this.chars($.nodeValue):this.sanitizedSomething=!0,de&&$.firstChild)$=$.firstChild;else for(;$;){$.nodeType===Node.ELEMENT_NODE&&this.endElement($);let xe=this.checkClobberedElement($,$.nextSibling);if(xe){$=xe;break}$=this.checkClobberedElement($,$.parentNode)}return this.buf.join("")}startElement(H){const $=H.nodeName.toLowerCase();if(!Zc.hasOwnProperty($))return this.sanitizedSomething=!0,!di.hasOwnProperty($);this.buf.push("<"),this.buf.push($);const de=H.attributes;for(let xe=0;xe<de.length;xe++){const ke=de.item(xe),Je=ke.name,Dt=Je.toLowerCase();if(!je.hasOwnProperty(Dt)){this.sanitizedSomething=!0;continue}let Nt=ke.value;L[Dt]&&(Nt=kl(Nt)),this.buf.push(" ",Je,'="',Fu(Nt),'"')}return this.buf.push(">"),!0}endElement(H){const $=H.nodeName.toLowerCase();Zc.hasOwnProperty($)&&!Mg.hasOwnProperty($)&&(this.buf.push("</"),this.buf.push($),this.buf.push(">"))}chars(H){this.buf.push(Fu(H))}checkClobberedElement(H,$){if($&&(H.compareDocumentPosition($)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${H.outerHTML}`);return $}}const ou=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fs=/([^\#-~ |!])/g;function Fu(F){return F.replace(/&/g,"&amp;").replace(ou,function(H){return"&#"+(1024*(H.charCodeAt(0)-55296)+(H.charCodeAt(1)-56320)+65536)+";"}).replace(Fs,function(H){return"&#"+H.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Ll;function _m(F,H){let $=null;try{Ll=Ll||function Ig(F){const H=new jd(F);return function Wc(){try{return!!(new window.DOMParser).parseFromString(Lu(""),"text/html")}catch{return!1}}()?new ip(H):H}(F);let de=H?String(H):"";$=Ll.getInertBodyElement(de);let xe=5,ke=de;do{if(0===xe)throw new Error("Failed to sanitize html because the input is unstable");xe--,de=ke,ke=$.innerHTML,$=Ll.getInertBodyElement(de)}while(de!==ke);return Lu((new Mi).sanitizeChildren(Cs($)||$))}finally{if($){const de=Cs($)||$;for(;de.firstChild;)de.removeChild(de.firstChild)}}}function Cs(F){return"content"in F&&function qs(F){return F.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===F.nodeName}(F)?F.content:null}var Na=(()=>((Na=Na||{})[Na.NONE=0]="NONE",Na[Na.HTML=1]="HTML",Na[Na.STYLE=2]="STYLE",Na[Na.SCRIPT=3]="SCRIPT",Na[Na.URL=4]="URL",Na[Na.RESOURCE_URL=5]="RESOURCE_URL",Na))();function Pg(F){const H=$d();return H?Hc(H.sanitize(Na.HTML,F)||""):Gd(F,"HTML")?Hc(ru(F)):_m(function Eg(){return void 0!==bg?bg:typeof document<"u"?document:void 0}(),V(F))}function qa(F){const H=$d();return H?H.sanitize(Na.URL,F)||"":Gd(F,"URL")?ru(F):kl(V(F))}function Kc(F){const H=$d();if(H)return Sg(H.sanitize(Na.RESOURCE_URL,F)||"");if(Gd(F,"ResourceURL"))return Sg(ru(F));throw new W(904,!1)}function E_(F,H,$){return function vm(F,H){return"src"===H&&("embed"===F||"frame"===F||"iframe"===F||"media"===F||"script"===F)||"href"===H&&("base"===F||"link"===F)?Kc:qa}(H,$)(F)}function $d(){const F=rt();return F&&F[12]}const Fl=new Ea("ENVIRONMENT_INITIALIZER"),ym=new Ea("INJECTOR",-1),kg=new Ea("INJECTOR_DEF_TYPES");class au{get(H,$=ut){if($===ut){const de=new Error(`NullInjectorError: No provider for ${E(H)}!`);throw de.name="NullInjectorError",de}return $}}function Ie(F){return{\u0275providers:F}}function ve(...F){return{\u0275providers:me(0,F),\u0275fromNgModule:!0}}function me(F,...H){const $=[],de=new Set;let xe;return Os(H,ke=>{const Je=ke;Me(Je,$,[],de)&&(xe||(xe=[]),xe.push(Je))}),void 0!==xe&&Ee(xe,$),$}function Ee(F,H){for(let $=0;$<F.length;$++){const{providers:xe}=F[$];Ge(xe,ke=>{H.push(ke)})}}function Me(F,H,$,de){if(!(F=T(F)))return!1;let xe=null,ke=mt(F);const Je=!ke&&Wr(F);if(ke||Je){if(Je&&!Je.standalone)return!1;xe=F}else{const Nt=F.ngModule;if(ke=mt(Nt),!ke)return!1;xe=Nt}const Dt=de.has(xe);if(Je){if(Dt)return!1;if(de.add(xe),Je.dependencies){const Nt="function"==typeof Je.dependencies?Je.dependencies():Je.dependencies;for(const cn of Nt)Me(cn,H,$,de)}}else{if(!ke)return!1;{if(null!=ke.imports&&!Dt){let cn;de.add(xe);try{Os(ke.imports,Fn=>{Me(Fn,H,$,de)&&(cn||(cn=[]),cn.push(Fn))})}finally{}void 0!==cn&&Ee(cn,H)}if(!Dt){const cn=ra(xe)||(()=>new xe);H.push({provide:xe,useFactory:cn,deps:ti},{provide:kg,useValue:xe,multi:!0},{provide:Fl,useValue:()=>mn(xe),multi:!0})}const Nt=ke.providers;null==Nt||Dt||Ge(Nt,Fn=>{H.push(Fn)})}}return xe!==F&&void 0!==F.providers}function Ge(F,H){for(let $ of F)R($)&&($=$.\u0275providers),Array.isArray($)?Ge($,H):H($)}const xt=b({provide:String,useValue:b});function Pt(F){return null!==F&&"object"==typeof F&&xt in F}function pi(F){return"function"==typeof F}const Zi=new Ea("Set Injector scope."),er={},hr={};let Dr;function ao(){return void 0===Dr&&(Dr=new au),Dr}class fo{}class Lo extends fo{get destroyed(){return this._destroyed}constructor(H,$,de,xe){super(),this.parent=$,this.source=de,this.scopes=xe,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Rg(H,Je=>this.processProvider(Je)),this.records.set(ym,Xd(void 0,this)),xe.has("environment")&&this.records.set(fo,Xd(void 0,this));const ke=this.records.get(Zi);null!=ke&&"string"==typeof ke.value&&this.scopes.add(ke.value),this.injectorDefTypes=new Set(this.get(kg.multi,ti,Pe.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const H of this._ngOnDestroyHooks)H.ngOnDestroy();for(const H of this._onDestroyHooks)H()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(H){this._onDestroyHooks.push(H)}runInContext(H){this.assertNotDestroyed();const $=Lt(this),de=Ce(void 0);try{return H()}finally{Lt($),Ce(de)}}get(H,$=ut,de=Pe.Default){this.assertNotDestroyed(),de=li(de);const xe=Lt(this),ke=Ce(void 0);try{if(!(de&Pe.SkipSelf)){let Dt=this.records.get(H);if(void 0===Dt){const Nt=function sp(F){return"function"==typeof F||"object"==typeof F&&F instanceof Ea}(H)&&ie(H);Dt=Nt&&this.injectableDefInScope(Nt)?Xd(ts(H),er):null,this.records.set(H,Dt)}if(null!=Dt)return this.hydrate(H,Dt)}return(de&Pe.Self?ao():this.parent).get(H,$=de&Pe.Optional&&$===ut?null:$)}catch(Je){if("NullInjectorError"===Je.name){if((Je[St]=Je[St]||[]).unshift(E(H)),xe)throw Je;return function Hn(F,H,$,de){const xe=F[St];throw H[dt]&&xe.unshift(H[dt]),F.message=function En(F,H,$,de=null){F=F&&"\n"===F.charAt(0)&&"\u0275"==F.charAt(1)?F.slice(2):F;let xe=E(H);if(Array.isArray(H))xe=H.map(E).join(" -> ");else if("object"==typeof H){let ke=[];for(let Je in H)if(H.hasOwnProperty(Je)){let Dt=H[Je];ke.push(Je+":"+("string"==typeof Dt?JSON.stringify(Dt):E(Dt)))}xe=`{${ke.join(", ")}}`}return`${$}${de?"("+de+")":""}[${xe}]: ${F.replace(Vt,"\n  ")}`}("\n"+F.message,xe,$,de),F.ngTokenPath=xe,F[St]=null,F}(Je,H,"R3InjectorError",this.source)}throw Je}finally{Ce(ke),Lt(xe)}}resolveInjectorInitializers(){const H=Lt(this),$=Ce(void 0);try{const de=this.get(Fl.multi,ti,Pe.Self);for(const xe of de)xe()}finally{Lt(H),Ce($)}}toString(){const H=[],$=this.records;for(const de of $.keys())H.push(E(de));return`R3Injector[${H.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,!1)}processProvider(H){let $=pi(H=T(H))?H:T(H&&H.provide);const de=function Yd(F){return Pt(F)?Xd(void 0,F.useValue):Xd(Vl(F),er)}(H);if(pi(H)||!0!==H.multi)this.records.get($);else{let xe=this.records.get($);xe||(xe=Xd(void 0,er,!0),xe.factory=()=>ki(xe.multi),this.records.set($,xe)),$=H,xe.multi.push(H)}this.records.set($,de)}hydrate(H,$){return $.value===er&&($.value=hr,$.value=$.factory()),"object"==typeof $.value&&$.value&&function Cm(F){return null!==F&&"object"==typeof F&&"function"==typeof F.ngOnDestroy}($.value)&&this._ngOnDestroyHooks.add($.value),$.value}injectableDefInScope(H){if(!H.providedIn)return!1;const $=T(H.providedIn);return"string"==typeof $?"any"===$||this.scopes.has($):this.injectorDefTypes.has($)}}function ts(F){const H=ie(F),$=null!==H?H.factory:ra(F);if(null!==$)return $;if(F instanceof Ea)throw new W(204,!1);if(F instanceof Function)return function su(F){const H=F.length;if(H>0)throw Hd(H,"?"),new W(204,!1);const $=function Ae(F){const H=F&&(F[tt]||F[gt]);if(H){const $=function Ne(F){if(F.hasOwnProperty("name"))return F.name;const H=(""+F).match(/^function\s*([^\s(]+)/);return null===H?"":H[1]}(F);return console.warn(`DEPRECATED: DI is instantiating a token "${$}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${$}" class.`),H}return null}(F);return null!==$?()=>$.factory(F):()=>new F}(F);throw new W(204,!1)}function Vl(F,H,$){let de;if(pi(F)){const xe=T(F);return ra(xe)||ts(xe)}if(Pt(F))de=()=>T(F.useValue);else if(function Cn(F){return!(!F||!F.useFactory)}(F))de=()=>F.useFactory(...ki(F.deps||[]));else if(function Gt(F){return!(!F||!F.useExisting)}(F))de=()=>mn(T(F.useExisting));else{const xe=T(F&&(F.useClass||F.provide));if(!function S_(F){return!!F.deps}(F))return ra(xe)||ts(xe);de=()=>new xe(...ki(F.deps))}return de}function Xd(F,H,$=!1){return{factory:F,value:H,multi:$?[]:void 0}}function Rg(F,H){for(const $ of F)Array.isArray($)?Rg($,H):$&&R($)?Rg($.\u0275providers,H):H($)}class _1{}class O_{}class $y{resolveComponentFactory(H){throw function v1(F){const H=Error(`No component factory found for ${E(F)}. Did you add it to @NgModule.entryComponents?`);return H.ngComponent=F,H}(H)}}let Gc=(()=>{class F{}return F.NULL=new $y,F})();function C1(){return Lg(Jn(),rt())}function Lg(F,H){return new xm(aa(F,H))}let xm=(()=>{class F{constructor($){this.nativeElement=$}}return F.__NG_ELEMENT_ID__=C1,F})();function x1(F){return F instanceof xm?F.nativeElement:F}class Fw{}let b1=(()=>{class F{}return F.__NG_ELEMENT_ID__=()=>function w1(){const F=rt(),$=Qo(Jn().index,F);return(hn($)?$:F)[11]}(),F})(),E1=(()=>{class F{}return F.\u0275prov=Se({token:F,providedIn:"root",factory:()=>null}),F})();class bm{constructor(H){this.full=H,this.major=H.split(".")[0],this.minor=H.split(".")[1],this.patch=H.split(".").slice(2).join(".")}}const Vw=new bm("15.1.5"),Mo={};function D_(F){return F.ngOriginalError}class lp{constructor(){this._console=console}handleError(H){const $=this._findOriginalError(H);this._console.error("ERROR",H),$&&this._console.error("ORIGINAL ERROR",$)}_findOriginalError(H){let $=H&&D_(H);for(;$&&D_($);)$=D_($);return $||null}}function Yc(F){return F.ownerDocument.defaultView}function qd(F){return F instanceof Function?F():F}function Ww(F,H,$){let de=F.length;for(;;){const xe=F.indexOf(H,$);if(-1===xe)return xe;if(0===xe||F.charCodeAt(xe-1)<=32){const ke=H.length;if(xe+ke===de||F.charCodeAt(xe+ke)<=32)return xe}$=xe+1}}const Uw="ng-template";function Ja(F,H,$){let de=0;for(;de<F.length;){let xe=F[de++];if($&&"class"===xe){if(xe=F[de],-1!==Ww(xe.toLowerCase(),H,0))return!0}else if(1===xe){for(;de<F.length&&"string"==typeof(xe=F[de++]);)if(xe.toLowerCase()===H)return!0;return!1}}return!1}function Yy(F){return 4===F.type&&F.value!==Uw}function I1(F,H,$){return H===(4!==F.type||$?F.value:Uw)}function M1(F,H,$){let de=4;const xe=F.attrs||[],ke=function Zw(F){for(let H=0;H<F.length;H++)if(ta(F[H]))return H;return F.length}(xe);let Je=!1;for(let Dt=0;Dt<H.length;Dt++){const Nt=H[Dt];if("number"!=typeof Nt){if(!Je)if(4&de){if(de=2|1&de,""!==Nt&&!I1(F,Nt,$)||""===Nt&&1===H.length){if(Vu(de))return!1;Je=!0}}else{const cn=8&de?Nt:H[++Dt];if(8&de&&null!==F.attrs){if(!Ja(F.attrs,cn,$)){if(Vu(de))return!1;Je=!0}continue}const ii=T_(8&de?"class":Nt,xe,Yy(F),$);if(-1===ii){if(Vu(de))return!1;Je=!0;continue}if(""!==cn){let Ti;Ti=ii>ke?"":xe[ii+1].toLowerCase();const zi=8&de?Ti:null;if(zi&&-1!==Ww(zi,cn,0)||2&de&&cn!==Ti){if(Vu(de))return!1;Je=!0}}}}else{if(!Je&&!Vu(de)&&!Vu(Nt))return!1;if(Je&&Vu(Nt))continue;Je=!1,de=Nt|1&de}}return Vu(de)||Je}function Vu(F){return 0==(1&F)}function T_(F,H,$,de){if(null===H)return-1;let xe=0;if(de||!$){let ke=!1;for(;xe<H.length;){const Je=H[xe];if(Je===F)return xe;if(3===Je||6===Je)ke=!0;else{if(1===Je||2===Je){let Dt=H[++xe];for(;"string"==typeof Dt;)Dt=H[++xe];continue}if(4===Je)break;if(0===Je){xe+=4;continue}}xe+=ke?1:2}return-1}return function Kw(F,H){let $=F.indexOf(4);if($>-1)for($++;$<F.length;){const de=F[$];if("number"==typeof de)return-1;if(de===H)return $;$++}return-1}(H,F)}function I_(F,H,$=!1){for(let de=0;de<H.length;de++)if(M1(F,H[de],$))return!0;return!1}function Gw(F,H){e:for(let $=0;$<H.length;$++){const de=H[$];if(F.length===de.length){for(let xe=0;xe<F.length;xe++)if(F[xe]!==de[xe])continue e;return!0}}return!1}function jw(F,H){return F?":not("+H.trim()+")":H}function A_(F){let H=F[0],$=1,de=2,xe="",ke=!1;for(;$<F.length;){let Je=F[$];if("string"==typeof Je)if(2&de){const Dt=F[++$];xe+="["+Je+(Dt.length>0?'="'+Dt+'"':"")+"]"}else 8&de?xe+="."+Je:4&de&&(xe+=" "+Je);else""!==xe&&!Vu(Je)&&(H+=jw(ke,xe),xe=""),de=Je,ke=ke||!Vu(de);$++}return""!==xe&&(H+=jw(ke,xe)),H}const Fo={};function Xy(F){Yw($t(),rt(),Zo()+F,!1)}function Yw(F,H,$,de){if(!de)if(3==(3&H[2])){const ke=F.preOrderCheckHooks;null!==ke&&Et(H,ke,$)}else{const ke=F.preOrderHooks;null!==ke&&Ln(H,ke,0,$)}da($)}function Jw(F,H=null,$=null,de){const xe=Sm(F,H,$,de);return xe.resolveInjectorInitializers(),xe}function Sm(F,H=null,$=null,de,xe=new Set){const ke=[$||ti,ve(F)];return de=de||("object"==typeof F?void 0:E(F)),new Lo(ke,H||ao(),de||null,xe)}let Xc=(()=>{class F{static create($,de){if(Array.isArray($))return Jw({name:""},de,$,"");{const xe=$.name??"";return Jw({name:xe},$.parent,$.providers,xe)}}}return F.THROW_IF_NOT_FOUND=ut,F.NULL=new au,F.\u0275prov=Se({token:F,providedIn:"any",factory:()=>mn(ym)}),F.__NG_ELEMENT_ID__=-1,F})();function gp(F,H=Pe.Default){const $=rt();return null===$?mn(F,H):rd(Jn(),$,T(F),H)}function rE(){throw new Error("invalid")}function B_(F,H){const $=F.contentQueries;if(null!==$)for(let de=0;de<$.length;de+=2){const ke=$[de+1];if(-1!==ke){const Je=F.data[ke];qn($[de]),Je.contentQueries(2,H[ke],ke)}}}function Am(F,H,$,de,xe,ke,Je,Dt,Nt,cn,Fn){const ii=H.blueprint.slice();return ii[0]=xe,ii[2]=76|de,(null!==Fn||F&&1024&F[2])&&(ii[2]|=1024),Jt(ii),ii[3]=ii[15]=F,ii[8]=$,ii[10]=Je||F&&F[10],ii[11]=Dt||F&&F[11],ii[12]=Nt||F&&F[12]||null,ii[9]=cn||F&&F[9]||null,ii[6]=ke,ii[20]=function zh(){return nm++}(),ii[21]=Fn,ii[16]=2==H.type?F[16]:ii,ii}function Ng(F,H,$,de,xe){let ke=F.data[H];if(null===ke)ke=function iC(F,H,$,de,xe){const ke=Pi(),Je=bi(),Nt=F.data[H]=function K1(F,H,$,de,xe,ke){return{type:$,index:de,insertBeforeIndex:null,injectorIndex:H?H.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:xe,attrs:ke,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:H,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,Je?ke:ke&&ke.parent,$,H,de,xe);return null===F.firstChild&&(F.firstChild=Nt),null!==ke&&(Je?null==ke.child&&null!==Nt.parent&&(ke.child=Nt):null===ke.next&&(ke.next=Nt)),Nt}(F,H,$,de,xe),function Pr(){return At.lFrame.inI18n}()&&(ke.flags|=32);else if(64&ke.type){ke.type=$,ke.value=de,ke.attrs=xe;const Je=function yi(){const F=At.lFrame,H=F.currentTNode;return F.isParent?H:H.parent}();ke.injectorIndex=null===Je?-1:Je.injectorIndex}return Ei(ke,!0),ke}function Pm(F,H,$,de){if(0===$)return-1;const xe=H.length;for(let ke=0;ke<$;ke++)H.push(de),F.blueprint.push(de),F.data.push(null);return xe}function rC(F,H,$){Hi(H);try{const de=F.viewQuery;null!==de&&cC(1,de,$);const xe=F.template;null!==xe&&Hg(F,H,xe,1,$),F.firstCreatePass&&(F.firstCreatePass=!1),F.staticContentQueries&&B_(F,H),F.staticViewQueries&&cC(2,F.viewQuery,$);const ke=F.components;null!==ke&&function W1(F,H){for(let $=0;$<H.length;$++)fE(F,H[$])}(H,ke)}catch(de){throw F.firstCreatePass&&(F.incompleteFirstPass=!0,F.firstCreatePass=!1),de}finally{H[2]&=-5,xo()}}function km(F,H,$,de){const xe=H[2];if(128!=(128&xe)){Hi(H);try{Jt(H),function Ir(F){return At.lFrame.bindingIndex=F}(F.bindingStartIndex),null!==$&&Hg(F,H,$,2,de);const Je=3==(3&xe);if(Je){const cn=F.preOrderCheckHooks;null!==cn&&Et(H,cn,null)}else{const cn=F.preOrderHooks;null!==cn&&Ln(H,cn,0,null),si(H,0)}if(function gE(F){for(let H=Zh(F);null!==H;H=Kh(H)){if(!H[2])continue;const $=H[9];for(let de=0;de<$.length;de++){const xe=$[de];512&xe[2]||Ut(xe[3],1),xe[2]|=512}}}(H),function pE(F){for(let H=Zh(F);null!==H;H=Kh(H))for(let $=10;$<H.length;$++){const de=H[$],xe=de[1];ba(de)&&km(xe,de,xe.template,de[8])}}(H),null!==F.contentQueries&&B_(F,H),Je){const cn=F.contentCheckHooks;null!==cn&&Et(H,cn)}else{const cn=F.contentHooks;null!==cn&&Ln(H,cn,1),si(H,1)}!function H1(F,H){const $=F.hostBindingOpCodes;if(null!==$)try{for(let de=0;de<$.length;de++){const xe=$[de];if(xe<0)da(~xe);else{const ke=xe,Je=$[++de],Dt=$[++de];qr(Je,ke),Dt(2,H[ke])}}}finally{da(-1)}}(F,H);const Dt=F.components;null!==Dt&&function z1(F,H){for(let $=0;$<H.length;$++)eI(F,H[$])}(H,Dt);const Nt=F.viewQuery;if(null!==Nt&&cC(2,Nt,de),Je){const cn=F.viewCheckHooks;null!==cn&&Et(H,cn)}else{const cn=F.viewHooks;null!==cn&&Ln(H,cn,2),si(H,2)}!0===F.firstUpdatePass&&(F.firstUpdatePass=!1),H[2]&=-41,512&H[2]&&(H[2]&=-513,Ut(H[3],-1))}finally{xo()}}}function Hg(F,H,$,de,xe){const ke=Zo(),Je=2&de;try{da(-1),Je&&H.length>22&&Yw(F,H,22,!1),$(de,xe)}finally{da(ke)}}function F_(F,H,$){if(Nn(H)){const xe=H.directiveEnd;for(let ke=H.directiveStart;ke<xe;ke++){const Je=F.data[ke];Je.contentQueries&&Je.contentQueries(1,$[ke],ke)}}}function zg(F,H,$){it()&&(function rl(F,H,$,de){const xe=$.directiveStart,ke=$.directiveEnd;$n($)&&function q1(F,H,$){const de=aa(H,F),xe=oE($),ke=F[10],Je=Rm(F,Am(F,xe,null,$.onPush?32:16,de,H,ke,ke.createRenderer(de,$),null,null,null));F[H.index]=Je}(H,$,F.data[xe+$.componentOffset]),F.firstCreatePass||Su($,H),os(de,H);const Je=$.initialInputs;for(let Dt=xe;Dt<ke;Dt++){const Nt=F.data[Dt],cn=Es(H,F,Dt,$);os(cn,H),null!==Je&&J1(0,Dt-xe,cn,Nt,0,Je),Bt(Nt)&&(Qo($.index,H)[8]=Es(H,F,Dt,$))}}(F,H,$,aa($,H)),64==(64&$.flags)&&Hl(F,H,$))}function oC(F,H,$=aa){const de=H.localNames;if(null!==de){let xe=H.index+1;for(let ke=0;ke<de.length;ke+=2){const Je=de[ke+1],Dt=-1===Je?$(H,F):F[Je];F[xe++]=Dt}}}function oE(F){const H=F.tView;return null===H||H.incompleteFirstPass?F.tView=qc(1,null,F.template,F.decls,F.vars,F.directiveDefs,F.pipeDefs,F.viewQuery,F.schemas,F.consts):H}function qc(F,H,$,de,xe,ke,Je,Dt,Nt,cn){const Fn=22+de,ii=Fn+xe,Ti=function U1(F,H){const $=[];for(let de=0;de<H;de++)$.push(de<F?null:Fo);return $}(Fn,ii),zi="function"==typeof cn?cn():cn;return Ti[1]={type:F,blueprint:Ti,template:$,queries:null,viewQuery:Dt,declTNode:H,data:Ti.slice().fill(null,Fn),bindingStartIndex:Fn,expandoStartIndex:ii,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof ke?ke():ke,pipeRegistry:"function"==typeof Je?Je():Je,firstChild:null,schemas:Nt,consts:zi,incompleteFirstPass:!1}}function aE(F,H,$,de){const xe=_E(H);null===$?xe.push(de):(xe.push($),F.firstCreatePass&&Lm(F).push(de,xe.length-1))}function sE(F,H,$,de){for(let xe in F)if(F.hasOwnProperty(xe)){$=null===$?{}:$;const ke=F[xe];null===de?lE($,H,xe,ke):de.hasOwnProperty(xe)&&lE($,H,de[xe],ke)}return $}function lE(F,H,$,de){F.hasOwnProperty($)?F[$].push(H,de):F[$]=[H,de]}function Nl(F,H,$,de,xe,ke,Je,Dt){const Nt=aa(H,$);let Fn,cn=H.inputs;!Dt&&null!=cn&&(Fn=cn[de])?(Bm(F,$,Fn,de,xe),$n(H)&&aC($,H.index)):3&H.type&&(de=function j1(F){return"class"===F?"className":"for"===F?"htmlFor":"formaction"===F?"formAction":"innerHtml"===F?"innerHTML":"readonly"===F?"readOnly":"tabindex"===F?"tabIndex":F}(de),xe=null!=Je?Je(xe,H.value||"",de):xe,ke.setProperty(Nt,de,xe))}function aC(F,H){const $=Qo(H,F);16&$[2]||($[2]|=32)}function Jc(F,H,$,de){let xe=!1;if(it()){const ke=null===de?null:{"":-1},Je=function dE(F,H){const $=F.directiveRegistry;let de=null,xe=null;if($)for(let ke=0;ke<$.length;ke++){const Je=$[ke];if(I_(H,Je.selectors,!1))if(de||(de=[]),Bt(Je))if(null!==Je.findHostDirectiveDefs){const Dt=[];xe=xe||new Map,Je.findHostDirectiveDefs(Je,Dt,xe),de.unshift(...Dt,Je),sC(F,H,Dt.length)}else de.unshift(Je),sC(F,H,0);else xe=xe||new Map,Je.findHostDirectiveDefs?.(Je,de,xe),de.push(Je)}return null===de?null:[de,xe]}(F,$);let Dt,Nt;null===Je?Dt=Nt=null:[Dt,Nt]=Je,null!==Dt&&(xe=!0,Js(F,H,$,Dt,ke,Nt)),ke&&function $1(F,H,$){if(H){const de=F.localNames=[];for(let xe=0;xe<H.length;xe+=2){const ke=$[H[xe+1]];if(null==ke)throw new W(-301,!1);de.push(H[xe],ke)}}}($,de,ke)}return $.mergedAttrs=Ml($.mergedAttrs,$.attrs),xe}function Js(F,H,$,de,xe,ke){for(let cn=0;cn<de.length;cn++)id(Su($,H),F,de[cn].type);!function cE(F,H,$){F.flags|=1,F.directiveStart=H,F.directiveEnd=H+$,F.providerIndexes=H}($,F.data.length,de.length);for(let cn=0;cn<de.length;cn++){const Fn=de[cn];Fn.providersResolver&&Fn.providersResolver(Fn)}let Je=!1,Dt=!1,Nt=Pm(F,H,de.length,null);for(let cn=0;cn<de.length;cn++){const Fn=de[cn];$.mergedAttrs=Ml($.mergedAttrs,Fn.hostAttrs),X1(F,$,H,Nt,Fn),Y1(Nt,Fn,xe),null!==Fn.contentQueries&&($.flags|=4),(null!==Fn.hostBindings||null!==Fn.hostAttrs||0!==Fn.hostVars)&&($.flags|=64);const ii=Fn.type.prototype;!Je&&(ii.ngOnChanges||ii.ngOnInit||ii.ngDoCheck)&&((F.preOrderHooks||(F.preOrderHooks=[])).push($.index),Je=!0),!Dt&&(ii.ngOnChanges||ii.ngDoCheck)&&((F.preOrderCheckHooks||(F.preOrderCheckHooks=[])).push($.index),Dt=!0),Nt++}!function G1(F,H,$){const xe=H.directiveEnd,ke=F.data,Je=H.attrs,Dt=[];let Nt=null,cn=null;for(let Fn=H.directiveStart;Fn<xe;Fn++){const ii=ke[Fn],Ti=$?$.get(ii):null,ur=Ti?Ti.outputs:null;Nt=sE(ii.inputs,Fn,Nt,Ti?Ti.inputs:null),cn=sE(ii.outputs,Fn,cn,ur);const wr=null===Nt||null===Je||Yy(H)?null:Q1(Nt,Fn,Je);Dt.push(wr)}null!==Nt&&(Nt.hasOwnProperty("class")&&(H.flags|=8),Nt.hasOwnProperty("style")&&(H.flags|=16)),H.initialInputs=Dt,H.inputs=Nt,H.outputs=cn}(F,$,ke)}function Hl(F,H,$){const de=$.directiveStart,xe=$.directiveEnd,ke=$.index,Je=function eo(){return At.lFrame.currentDirectiveIndex}();try{da(ke);for(let Dt=de;Dt<xe;Dt++){const Nt=F.data[Dt],cn=H[Dt];Dn(Dt),(null!==Nt.hostBindings||0!==Nt.hostVars||null!==Nt.hostAttrs)&&V_(Nt,cn)}}finally{da(-1),Dn(Je)}}function V_(F,H){null!==F.hostBindings&&F.hostBindings(1,H)}function sC(F,H,$){H.componentOffset=$,(F.components||(F.components=[])).push(H.index)}function Y1(F,H,$){if($){if(H.exportAs)for(let de=0;de<H.exportAs.length;de++)$[H.exportAs[de]]=F;Bt(H)&&($[""]=F)}}function X1(F,H,$,de,xe){F.data[de]=xe;const ke=xe.factory||(xe.factory=ra(xe.type)),Je=new vr(ke,Bt(xe),gp);F.blueprint[de]=Je,$[de]=Je,function Ts(F,H,$,de,xe){const ke=xe.hostBindings;if(ke){let Je=F.hostBindingOpCodes;null===Je&&(Je=F.hostBindingOpCodes=[]);const Dt=~H.index;(function ns(F){let H=F.length;for(;H>0;){const $=F[--H];if("number"==typeof $&&$<0)return $}return 0})(Je)!=Dt&&Je.push(Dt),Je.push($,de,ke)}}(F,H,de,Pm(F,$,xe.hostVars,Fo),xe)}function Nu(F,H,$,de,xe,ke){const Je=aa(F,H);!function lC(F,H,$,de,xe,ke,Je){if(null==ke)F.removeAttribute(H,xe,$);else{const Dt=null==Je?V(ke):Je(ke,de||"",xe);F.setAttribute(H,xe,Dt,$)}}(H[11],Je,ke,F.value,$,de,xe)}function J1(F,H,$,de,xe,ke){const Je=ke[H];if(null!==Je){const Dt=de.setInput;for(let Nt=0;Nt<Je.length;){const cn=Je[Nt++],Fn=Je[Nt++],ii=Je[Nt++];null!==Dt?de.setInput($,ii,cn,Fn):$[Fn]=ii}}}function Q1(F,H,$){let de=null,xe=0;for(;xe<$.length;){const ke=$[xe];if(0!==ke)if(5!==ke){if("number"==typeof ke)break;if(F.hasOwnProperty(ke)){null===de&&(de=[]);const Je=F[ke];for(let Dt=0;Dt<Je.length;Dt+=2)if(Je[Dt]===H){de.push(ke,Je[Dt+1],$[xe+1]);break}}xe+=2}else xe+=2;else xe+=4}return de}function hE(F,H,$,de){return[F,!0,!1,H,null,0,de,$,null,null]}function eI(F,H){const $=Qo(H,F);if(ba($)){const de=$[1];48&$[2]?km(de,$,de.template,$[8]):$[5]>0&&uC($)}}function uC(F){for(let de=Zh(F);null!==de;de=Kh(de))for(let xe=10;xe<de.length;xe++){const ke=de[xe];if(ba(ke))if(512&ke[2]){const Je=ke[1];km(Je,ke,Je.template,ke[8])}else ke[5]>0&&uC(ke)}const $=F[1].components;if(null!==$)for(let de=0;de<$.length;de++){const xe=Qo($[de],F);ba(xe)&&xe[5]>0&&uC(xe)}}function fE(F,H){const $=Qo(H,F),de=$[1];(function mE(F,H){for(let $=H.length;$<F.blueprint.length;$++)H.push(F.blueprint[$])})(de,$),rC(de,$,$[8])}function Rm(F,H){return F[13]?F[14][4]=H:F[13]=H,F[14]=H,H}function dC(F){for(;F;){F[2]|=32;const H=Zd(F);if(nn(F)&&!H)return F;F=H}return null}function N_(F,H,$,de=!0){const xe=H[10];xe.begin&&xe.begin();try{km(F,H,F.template,$)}catch(Je){throw de&&Qc(H,Je),Je}finally{xe.end&&xe.end()}}function cC(F,H,$){qn(0),H(F,$)}function _E(F){return F[7]||(F[7]=[])}function Lm(F){return F.cleanup||(F.cleanup=[])}function Qc(F,H){const $=F[9],de=$?$.get(lp,null):null;de&&de.handleError(H)}function Bm(F,H,$,de,xe){for(let ke=0;ke<$.length;){const Je=$[ke++],Dt=$[ke++],Nt=H[Je],cn=F.data[Je];null!==cn.setInput?cn.setInput(Nt,xe,de,Dt):Nt[Dt]=xe}}function hl(F,H,$){const de=Jo(H,F);!function Lc(F,H,$){F.setValue(H,$)}(F[11],de,$)}function Fm(F,H,$){let de=$?F.styles:null,xe=$?F.classes:null,ke=0;if(null!==H)for(let Je=0;Je<H.length;Je++){const Dt=H[Je];"number"==typeof Dt?ke=Dt:1==ke?xe=S(xe,Dt):2==ke&&(de=S(de,Dt+": "+H[++Je]+";"))}$?F.styles=de:F.stylesWithoutHost=de,$?F.classes=xe:F.classesWithoutHost=xe}function Hu(F,H,$,de,xe=!1){for(;null!==$;){const ke=H[$.index];if(null!==ke&&de.push(qo(ke)),an(ke))for(let Dt=10;Dt<ke.length;Dt++){const Nt=ke[Dt],cn=Nt[1].firstChild;null!==cn&&Hu(Nt[1],Nt,cn,de)}const Je=$.type;if(8&Je)Hu(F,H,$.child,de);else if(32&Je){const Dt=Uh($,H);let Nt;for(;Nt=Dt();)de.push(Nt)}else if(16&Je){const Dt=yn(H,$);if(Array.isArray(Dt))de.push(...Dt);else{const Nt=Zd(H[16]);Hu(Nt[1],Nt,Dt,de,!0)}}$=xe?$.projectionNext:$.next}return de}class Vm{get rootNodes(){const H=this._lView,$=H[1];return Hu($,H,$.firstChild,[])}constructor(H,$){this._lView=H,this._cdRefInjectingView=$,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(H){this._lView[8]=H}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const H=this._lView[3];if(an(H)){const $=H[8],de=$?$.indexOf(this):-1;de>-1&&(xl(H,de),hd($,de))}this._attachedToViewContainer=!1}Yh(this._lView[1],this._lView)}onDestroy(H){aE(this._lView[1],this._lView,null,H)}markForCheck(){dC(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){N_(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new W(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function __(F,H){Bs(F,H,H[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(H){if(this._attachedToViewContainer)throw new W(902,!1);this._appRef=H}}class pC extends Vm{constructor(H){super(H),this._view=H}detectChanges(){const H=this._view;N_(H[1],H,H[8],!1)}checkNoChanges(){}get context(){return null}}class gC extends Gc{constructor(H){super(),this.ngModule=H}resolveComponentFactory(H){const $=Wr(H);return new Nm($,this.ngModule)}}function Jd(F){const H=[];for(let $ in F)F.hasOwnProperty($)&&H.push({propName:F[$],templateName:$});return H}class wd{constructor(H,$){this.injector=H,this.parentInjector=$}get(H,$,de){de=li(de);const xe=this.injector.get(H,Mo,de);return xe!==Mo||$===Mo?xe:this.parentInjector.get(H,$,de)}}class Nm extends O_{get inputs(){return Jd(this.componentDef.inputs)}get outputs(){return Jd(this.componentDef.outputs)}constructor(H,$){super(),this.componentDef=H,this.ngModule=$,this.componentType=H.type,this.selector=function $w(F){return F.map(A_).join(",")}(H.selectors),this.ngContentSelectors=H.ngContentSelectors?H.ngContentSelectors:[],this.isBoundToModule=!!$}create(H,$,de,xe){let ke=(xe=xe||this.ngModule)instanceof fo?xe:xe?.injector;ke&&null!==this.componentDef.getStandaloneInjector&&(ke=this.componentDef.getStandaloneInjector(ke)||ke);const Je=ke?new wd(H,ke):H,Dt=Je.get(Fw,null);if(null===Dt)throw new W(407,!1);const Nt=Je.get(E1,null),cn=Dt.createRenderer(null,this.componentDef),Fn=this.componentDef.selectors[0][0]||"div",ii=de?function Z1(F,H,$){return F.selectRootElement(H,$===Sn.ShadowDom)}(cn,de,this.componentDef.encapsulation):jh(cn,Fn,function vE(F){const H=F.toLowerCase();return"svg"===H?"svg":"math"===H?"math":null}(Fn)),Ti=this.componentDef.onPush?288:272,zi=qc(0,null,null,1,0,null,null,null,null,null),ur=Am(null,zi,null,Ti,null,null,Dt,cn,Nt,Je,null);let wr,Yr;Hi(ur);try{const ho=this.componentDef;let yo,Cr=null;ho.findHostDirectiveDefs?(yo=[],Cr=new Map,ho.findHostDirectiveDefs(ho,yo,Cr),yo.push(ho)):yo=[ho];const Po=function iI(F,H){const $=F[1];return F[22]=H,Ng($,22,2,"#host",null)}(ur,ii),Ka=function rI(F,H,$,de,xe,ke,Je,Dt){const Nt=xe[1];!function oI(F,H,$,de){for(const xe of F)H.mergedAttrs=Ml(H.mergedAttrs,xe.hostAttrs);null!==H.mergedAttrs&&(Fm(H,H.mergedAttrs,!0),null!==$&&bl(de,$,H))}(de,F,H,Je);const cn=ke.createRenderer(H,$),Fn=Am(xe,oE($),null,$.onPush?32:16,xe[F.index],F,ke,cn,Dt||null,null,null);return Nt.firstCreatePass&&sC(Nt,F,de.length-1),Rm(xe,Fn),xe[F.index]=Fn}(Po,ii,ho,yo,ur,Dt,cn);Yr=xa(zi,22),ii&&function Hm(F,H,$,de){if(de)va(F,$,["ng-version",Vw.full]);else{const{attrs:xe,classes:ke}=function A1(F){const H=[],$=[];let de=1,xe=2;for(;de<F.length;){let ke=F[de];if("string"==typeof ke)2===xe?""!==ke&&H.push(ke,F[++de]):8===xe&&$.push(ke);else{if(!Vu(xe))break;xe=ke}de++}return{attrs:H,classes:$}}(H.selectors[0]);xe&&va(F,$,xe),ke&&ke.length>0&&yd(F,$,ke.join(" "))}}(cn,ho,ii,de),void 0!==$&&function zu(F,H,$){const de=F.projection=[];for(let xe=0;xe<H.length;xe++){const ke=$[xe];de.push(null!=ke?Array.from(ke):null)}}(Yr,this.ngContentSelectors,$),wr=function Wg(F,H,$,de,xe,ke){const Je=Jn(),Dt=xe[1],Nt=aa(Je,xe);Js(Dt,xe,Je,$,null,de);for(let Fn=0;Fn<$.length;Fn++)os(Es(xe,Dt,Je.directiveStart+Fn,Je),xe);Hl(Dt,xe,Je),Nt&&os(Nt,xe);const cn=Es(xe,Dt,Je.directiveStart+Je.componentOffset,Je);if(F[8]=xe[8]=cn,null!==ke)for(const Fn of ke)Fn(cn,H);return F_(Dt,Je,F),cn}(Ka,ho,yo,Cr,ur,[Ed]),rC(zi,ur,null)}finally{xo()}return new yE(this.componentType,wr,Lg(Yr,ur),ur,Yr)}}class yE extends _1{constructor(H,$,de,xe,ke){super(),this.location=de,this._rootLView=xe,this._tNode=ke,this.instance=$,this.hostView=this.changeDetectorRef=new pC(xe),this.componentType=H}setInput(H,$){const de=this._tNode.inputs;let xe;if(null!==de&&(xe=de[H])){const ke=this._rootLView;Bm(ke[1],ke,xe,H,$),aC(ke,this._tNode.index)}}get injector(){return new Ss(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(H){this.hostView.onDestroy(H)}}function Ed(){const F=Jn();ct(rt()[1],F)}function H_(F){let H=function zm(F){return Object.getPrototypeOf(F.prototype).constructor}(F.type),$=!0;const de=[F];for(;H;){let xe;if(Bt(F))xe=H.\u0275cmp||H.\u0275dir;else{if(H.\u0275cmp)throw new W(903,!1);xe=H.\u0275dir}if(xe){if($){de.push(xe);const Je=F;Je.inputs=z_(F.inputs),Je.declaredInputs=z_(F.declaredInputs),Je.outputs=z_(F.outputs);const Dt=xe.hostBindings;Dt&&lu(F,Dt);const Nt=xe.viewQuery,cn=xe.contentQueries;if(Nt&&fp(F,Nt),cn&&eh(F,cn),y(F.inputs,xe.inputs),y(F.declaredInputs,xe.declaredInputs),y(F.outputs,xe.outputs),Bt(xe)&&xe.data.animation){const Fn=F.data;Fn.animation=(Fn.animation||[]).concat(xe.data.animation)}}const ke=xe.features;if(ke)for(let Je=0;Je<ke.length;Je++){const Dt=ke[Je];Dt&&Dt.ngInherit&&Dt(F),Dt===H_&&($=!1)}}H=Object.getPrototypeOf(H)}!function aI(F){let H=0,$=null;for(let de=F.length-1;de>=0;de--){const xe=F[de];xe.hostVars=H+=xe.hostVars,xe.hostAttrs=Ml(xe.hostAttrs,$=Ml($,xe.hostAttrs))}}(de)}function z_(F){return F===Qn?{}:F===ti?[]:F}function fp(F,H){const $=F.viewQuery;F.viewQuery=$?(de,xe)=>{H(de,xe),$(de,xe)}:H}function eh(F,H){const $=F.contentQueries;F.contentQueries=$?(de,xe,ke)=>{H(de,xe,ke),$(de,xe,ke)}:H}function lu(F,H){const $=F.hostBindings;F.hostBindings=$?(de,xe)=>{H(de,xe),$(de,xe)}:H}let Wm=null;function mp(){if(!Wm){const F=bt.Symbol;if(F&&F.iterator)Wm=F.iterator;else{const H=Object.getOwnPropertyNames(Map.prototype);for(let $=0;$<H.length;++$){const de=H[$];"entries"!==de&&"size"!==de&&Map.prototype[de]===Map.prototype.entries&&(Wm=de)}}}return Wm}function Um(F){return!!U_(F)&&(Array.isArray(F)||!(F instanceof Map)&&mp()in F)}function U_(F){return null!==F&&("function"==typeof F||"object"==typeof F)}function pl(F,H,$){return F[H]=$}function Qs(F,H,$){return!Object.is(F[H],$)&&(F[H]=$,!0)}function tc(F,H,$,de){const xe=Qs(F,H,$);return Qs(F,H+1,de)||xe}function Z_(F,H,$,de){const xe=rt();return Qs(xe,Hr(),H)&&($t(),Nu(Br(),xe,F,H,$,de)),Z_}function Gg(F,H,$,de){return Qs(F,Hr(),$)?H+V($)+de:Fo}function th(F,H,$,de,xe,ke){const Dt=tc(F,function ir(){return At.lFrame.bindingIndex}(),$,xe);return Or(2),Dt?H+V($)+de+V(xe)+ke:Fo}function vC(F,H,$,de,xe,ke,Je,Dt){const Nt=rt(),cn=$t(),Fn=F+22,ii=cn.firstCreatePass?function _C(F,H,$,de,xe,ke,Je,Dt,Nt){const cn=H.consts,Fn=Ng(H,F,4,Je||null,_a(cn,Dt));Jc(H,$,Fn,_a(cn,Nt)),ct(H,Fn);const ii=Fn.tViews=qc(2,Fn,de,xe,ke,H.directiveRegistry,H.pipeRegistry,null,H.schemas,cn);return null!==H.queries&&(H.queries.template(H,Fn),ii.queries=H.queries.embeddedTView(Fn)),Fn}(Fn,cn,Nt,H,$,de,xe,ke,Je):cn.data[Fn];Ei(ii,!1);const Ti=Nt[11].createComment("");Va(cn,Nt,Ti,ii),os(Ti,Nt),Rm(Nt,Nt[Fn]=hE(Ti,Nt,Ti,ii)),ot(ii)&&zg(cn,Nt,ii),null!=Je&&oC(Nt,ii,Dt)}function yC(F){return ma(function mr(){return At.lFrame.contextLView}(),22+F)}function CC(F,H,$){const de=rt();return Qs(de,Hr(),H)&&Nl($t(),Br(),de,F,H,de[11],$,!1),CC}function xC(F,H,$,de,xe){const Je=xe?"class":"style";Bm(F,$,H.inputs[Je],Je,de)}function Y_(F,H,$,de){const xe=rt(),ke=$t(),Je=22+F,Dt=xe[11],Nt=xe[Je]=jh(Dt,H,function ui(){return At.lFrame.currentNamespace}()),cn=ke.firstCreatePass?function uI(F,H,$,de,xe,ke,Je){const Dt=H.consts,cn=Ng(H,F,2,xe,_a(Dt,ke));return Jc(H,$,cn,_a(Dt,Je)),null!==cn.attrs&&Fm(cn,cn.attrs,!1),null!==cn.mergedAttrs&&Fm(cn,cn.mergedAttrs,!0),null!==H.queries&&H.queries.elementStart(H,cn),cn}(Je,ke,xe,0,H,$,de):ke.data[Je];return Ei(cn,!0),bl(Dt,Nt,cn),32!=(32&cn.flags)&&Va(ke,xe,Nt,cn),0===function jr(){return At.lFrame.elementDepthCount}()&&os(Nt,xe),function Eo(){At.lFrame.elementDepthCount++}(),ot(cn)&&(zg(ke,xe,cn),F_(ke,cn,xe)),null!==de&&oC(xe,cn),Y_}function X_(){let F=Jn();bi()?Xi():(F=F.parent,Ei(F,!1));const H=F;!function _t(){At.lFrame.elementDepthCount--}();const $=$t();return $.firstCreatePass&&(ct($,F),Nn(F)&&$.queries.elementEnd(F)),null!=H.classesWithoutHost&&function Ko(F){return 0!=(8&F.flags)}(H)&&xC($,H,rt(),H.classesWithoutHost,!0),null!=H.stylesWithoutHost&&function Ro(F){return 0!=(16&F.flags)}(H)&&xC($,H,rt(),H.stylesWithoutHost,!1),X_}function bC(F,H,$,de){return Y_(F,H,$,de),X_(),bC}function q_(F,H,$){const de=rt(),xe=$t(),ke=F+22,Je=xe.firstCreatePass?function dI(F,H,$,de,xe){const ke=H.consts,Je=_a(ke,de),Dt=Ng(H,F,8,"ng-container",Je);return null!==Je&&Fm(Dt,Je,!0),Jc(H,$,Dt,_a(ke,xe)),null!==H.queries&&H.queries.elementStart(H,Dt),Dt}(ke,xe,de,H,$):xe.data[ke];Ei(Je,!0);const Dt=de[ke]=de[11].createComment("");return Va(xe,de,Dt,Je),os(Dt,de),ot(Je)&&(zg(xe,de,Je),F_(xe,Je,de)),null!=$&&oC(de,Je),q_}function J_(){let F=Jn();const H=$t();return bi()?Xi():(F=F.parent,Ei(F,!1)),H.firstCreatePass&&(ct(H,F),Nn(F)&&H.queries.elementEnd(F)),J_}function Km(F,H,$){return q_(F,H,$),J_(),Km}function wC(){return rt()}function EC(F){return!!F&&"function"==typeof F.then}function SC(F){return!!F&&"function"==typeof F.subscribe}const Wl=SC;function Q_(F,H,$,de){const xe=rt(),ke=$t(),Je=Jn();return function Gm(F,H,$,de,xe,ke,Je){const Dt=ot(de),cn=F.firstCreatePass&&Lm(F),Fn=H[8],ii=_E(H);let Ti=!0;if(3&de.type||Je){const wr=aa(de,H),Yr=Je?Je(wr):wr,ho=ii.length,yo=Je?Po=>Je(qo(Po[de.index])):de.index;let Cr=null;if(!Je&&Dt&&(Cr=function SE(F,H,$,de){const xe=F.cleanup;if(null!=xe)for(let ke=0;ke<xe.length-1;ke+=2){const Je=xe[ke];if(Je===$&&xe[ke+1]===de){const Dt=H[7],Nt=xe[ke+2];return Dt.length>Nt?Dt[Nt]:null}"string"==typeof Je&&(ke+=2)}return null}(F,H,xe,de.index)),null!==Cr)(Cr.__ngLastListenerFn__||Cr).__ngNextListenerFn__=ke,Cr.__ngLastListenerFn__=ke,Ti=!1;else{ke=OE(de,H,Fn,ke,!1);const Po=$.listen(Yr,xe,ke);ii.push(ke,Po),cn&&cn.push(xe,yo,ho,ho+1)}}else ke=OE(de,H,Fn,ke,!1);const zi=de.outputs;let ur;if(Ti&&null!==zi&&(ur=zi[xe])){const wr=ur.length;if(wr)for(let Yr=0;Yr<wr;Yr+=2){const Ka=H[ur[Yr]][ur[Yr+1]].subscribe(ke),za=ii.length;ii.push(ke,Ka),cn&&cn.push(xe,de.index,za,-(za+1))}}}(ke,xe,xe[11],Je,F,H,de),Q_}function Vs(F,H,$,de){try{return!1!==$(de)}catch(xe){return Qc(F,xe),!1}}function OE(F,H,$,de,xe){return function ke(Je){if(Je===Function)return de;dC(F.componentOffset>-1?Qo(F.index,H):H);let Nt=Vs(H,0,de,Je),cn=ke.__ngNextListenerFn__;for(;cn;)Nt=Vs(H,0,cn,Je)&&Nt,cn=cn.__ngNextListenerFn__;return xe&&!1===Nt&&(Je.preventDefault(),Je.returnValue=!1),Nt}}function DC(F=1){return function sa(F){return(At.lFrame.contextLView=function Pa(F,H){for(;F>0;)H=H[15],F--;return H}(F,At.lFrame.contextLView))[8]}(F)}function DE(F,H){let $=null;const de=function M_(F){const H=F.attrs;if(null!=H){const $=H.indexOf(5);if(!(1&$))return H[$+1]}return null}(F);for(let xe=0;xe<H.length;xe++){const ke=H[xe];if("*"!==ke){if(null===de?I_(F,ke,!0):Gw(de,ke))return xe}else $=xe}return $}function ol(F){const H=rt()[16][6];if(!H.projection){const de=H.projection=Hd(F?F.length:1,null),xe=de.slice();let ke=H.child;for(;null!==ke;){const Je=F?DE(ke,F):0;null!==Je&&(xe[Je]?xe[Je].projectionNext=ke:de[Je]=ke,xe[Je]=ke),ke=ke.next}}}function qg(F,H=0,$){const de=rt(),xe=$t(),ke=Ng(xe,22+F,16,null,$||null);null===ke.projection&&(ke.projection=H),Xi(),32!=(32&ke.flags)&&function hm(F,H,$){Cg(H[11],0,H,$,Xh(F,$,H),Jh($.parent||H[6],$,H))}(xe,de,ke)}function ev(F,H,$){return jm(F,"",H,"",$),ev}function jm(F,H,$,de,xe){const ke=rt(),Je=Gg(ke,H,$,de);return Je!==Fo&&Nl($t(),Br(),ke,F,Je,ke[11],xe,!1),jm}function $m(F,H){return F<<17|H<<2}function rc(F){return F>>17&32767}function MC(F){return 2|F}function yp(F){return(131068&F)>>2}function nv(F,H){return-131069&F|H<<2}function AC(F){return 1|F}function LE(F,H,$,de,xe){const ke=F[$+1],Je=null===H;let Dt=de?rc(ke):yp(ke),Nt=!1;for(;0!==Dt&&(!1===Nt||Je);){const Fn=F[Dt+1];BE(F[Dt],H)&&(Nt=!0,F[Dt+1]=de?AC(Fn):MC(Fn)),Dt=de?rc(Fn):yp(Fn)}Nt&&(F[$+1]=de?MC(ke):AC(ke))}function BE(F,H){return null===F||null==H||(Array.isArray(F)?F[1]:F)===H||!(!Array.isArray(F)||"string"!=typeof H)&&eu(F,H)>=0}const bs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function PC(F){return F.substring(bs.key,bs.keyEnd)}function fI(F){return F.substring(bs.value,bs.valueEnd)}function Jg(F,H){const $=bs.textEnd;return $===H?-1:(H=bs.keyEnd=function Xm(F,H,$){for(;H<$&&F.charCodeAt(H)>32;)H++;return H}(F,bs.key=H,$),Qg(F,H,$))}function FE(F,H){const $=bs.textEnd;let de=bs.key=Qg(F,H,$);return $===de?-1:(de=bs.keyEnd=function Cp(F,H,$){let de;for(;H<$&&(45===(de=F.charCodeAt(H))||95===de||(-33&de)>=65&&(-33&de)<=90||de>=48&&de<=57);)H++;return H}(F,de,$),de=ih(F,de,$),de=bs.value=Qg(F,de,$),de=bs.valueEnd=function mI(F,H,$){let de=-1,xe=-1,ke=-1,Je=H,Dt=Je;for(;Je<$;){const Nt=F.charCodeAt(Je++);if(59===Nt)return Dt;34===Nt||39===Nt?Dt=Je=oc(F,Nt,Je,$):H===Je-4&&85===ke&&82===xe&&76===de&&40===Nt?Dt=Je=oc(F,41,Je,$):Nt>32&&(Dt=Je),ke=xe,xe=de,de=-33&Nt}return Dt}(F,de,$),ih(F,de,$))}function VE(F){bs.key=0,bs.keyEnd=0,bs.value=0,bs.valueEnd=0,bs.textEnd=F.length}function Qg(F,H,$){for(;H<$&&F.charCodeAt(H)<=32;)H++;return H}function ih(F,H,$,de){return(H=Qg(F,H,$))<$&&H++,H}function oc(F,H,$,de){let xe=-1,ke=$;for(;ke<de;){const Je=F.charCodeAt(ke++);if(Je==H&&92!==xe)return ke;xe=92==Je&&92===xe?0:Je}throw new Error}function rh(F,H,$){return du(F,H,$,!1),rh}function ef(F,H){return du(F,H,null,!0),ef}function ac(F,H){for(let $=function kC(F){return VE(F),FE(F,Qg(F,0,bs.textEnd))}(H);$>=0;$=FE(H,$))Zu(F,PC(H),fI(H))}function RC(F){cu(ps,uu,F,!0)}function uu(F,H){for(let $=function Uu(F){return VE(F),Jg(F,Qg(F,0,bs.textEnd))}(H);$>=0;$=Jg(H,$))ps(F,PC(H),!0)}function du(F,H,$,de){const xe=rt(),ke=$t(),Je=Or(2);ke.firstUpdatePass&&LC(ke,F,Je,de),H!==Fo&&Qs(xe,Je,H)&&tf(ke,ke.data[Zo()],xe,xe[11],F,xe[Je+1]=function FC(F,H){return null==F||("string"==typeof H?F+=H:"object"==typeof F&&(F=E(ru(F)))),F}(H,$),de,Je)}function cu(F,H,$,de){const xe=$t(),ke=Or(2);xe.firstUpdatePass&&LC(xe,null,ke,de);const Je=rt();if($!==Fo&&Qs(Je,ke,$)){const Dt=xe.data[Zo()];if(Jm(Dt,de)&&!xp(xe,ke)){let Nt=de?Dt.classesWithoutHost:Dt.stylesWithoutHost;null!==Nt&&($=S(Nt,$||"")),xC(xe,Dt,Je,$,de)}else!function Sd(F,H,$,de,xe,ke,Je,Dt){xe===Fo&&(xe=ti);let Nt=0,cn=0,Fn=0<xe.length?xe[0]:null,ii=0<ke.length?ke[0]:null;for(;null!==Fn||null!==ii;){const Ti=Nt<xe.length?xe[Nt+1]:void 0,zi=cn<ke.length?ke[cn+1]:void 0;let wr,ur=null;Fn===ii?(Nt+=2,cn+=2,Ti!==zi&&(ur=ii,wr=zi)):null===ii||null!==Fn&&Fn<ii?(Nt+=2,ur=Fn):(cn+=2,ur=ii,wr=zi),null!==ur&&tf(F,H,$,de,ur,wr,Je,Dt),Fn=Nt<xe.length?xe[Nt]:null,ii=cn<ke.length?ke[cn]:null}}(xe,Dt,Je,Je[11],Je[ke+1],Je[ke+1]=function hu(F,H,$){if(null==$||""===$)return ti;const de=[],xe=ru($);if(Array.isArray(xe))for(let ke=0;ke<xe.length;ke++)F(de,xe[ke],!0);else if("object"==typeof xe)for(const ke in xe)xe.hasOwnProperty(ke)&&F(de,ke,xe[ke]);else"string"==typeof xe&&H(de,xe);return de}(F,H,$),de,ke)}}function xp(F,H){return H>=F.expandoStartIndex}function LC(F,H,$,de){const xe=F.data;if(null===xe[$+1]){const ke=xe[Zo()],Je=xp(F,$);Jm(ke,de)&&null===H&&!Je&&(H=!1),H=function _I(F,H,$,de){const xe=function Zt(F){const H=At.lFrame.currentDirectiveIndex;return-1===H?null:F[H]}(F);let ke=de?H.residualClasses:H.residualStyles;if(null===xe)0===(de?H.classBindings:H.styleBindings)&&($=Is($=ws(null,F,H,$,de),H.attrs,de),ke=null);else{const Je=H.directiveStylingLast;if(-1===Je||F[Je]!==xe)if($=ws(xe,F,H,$,de),null===ke){let Nt=function iv(F,H,$){const de=$?H.classBindings:H.styleBindings;if(0!==yp(de))return F[rc(de)]}(F,H,de);void 0!==Nt&&Array.isArray(Nt)&&(Nt=ws(null,F,H,Nt[1],de),Nt=Is(Nt,H.attrs,de),function vI(F,H,$,de){F[rc($?H.classBindings:H.styleBindings)]=de}(F,H,de,Nt))}else ke=function yI(F,H,$){let de;const xe=H.directiveEnd;for(let ke=1+H.directiveStylingLast;ke<xe;ke++)de=Is(de,F[ke].hostAttrs,$);return Is(de,H.attrs,$)}(F,H,de)}return void 0!==ke&&(de?H.residualClasses=ke:H.residualStyles=ke),$}(xe,ke,H,de),function RE(F,H,$,de,xe,ke){let Je=ke?H.classBindings:H.styleBindings,Dt=rc(Je),Nt=yp(Je);F[de]=$;let Fn,cn=!1;if(Array.isArray($)?(Fn=$[1],(null===Fn||eu($,Fn)>0)&&(cn=!0)):Fn=$,xe)if(0!==Nt){const Ti=rc(F[Dt+1]);F[de+1]=$m(Ti,Dt),0!==Ti&&(F[Ti+1]=nv(F[Ti+1],de)),F[Dt+1]=function cI(F,H){return 131071&F|H<<17}(F[Dt+1],de)}else F[de+1]=$m(Dt,0),0!==Dt&&(F[Dt+1]=nv(F[Dt+1],de)),Dt=de;else F[de+1]=$m(Nt,0),0===Dt?Dt=de:F[Nt+1]=nv(F[Nt+1],de),Nt=de;cn&&(F[de+1]=MC(F[de+1])),LE(F,Fn,de,!0),LE(F,Fn,de,!1),function gI(F,H,$,de,xe){const ke=xe?F.residualClasses:F.residualStyles;null!=ke&&"string"==typeof H&&eu(ke,H)>=0&&($[de+1]=AC($[de+1]))}(H,Fn,F,de,ke),Je=$m(Dt,Nt),ke?H.classBindings=Je:H.styleBindings=Je}(xe,ke,H,$,Je,de)}}function ws(F,H,$,de,xe){let ke=null;const Je=$.directiveEnd;let Dt=$.directiveStylingLast;for(-1===Dt?Dt=$.directiveStart:Dt++;Dt<Je&&(ke=H[Dt],de=Is(de,ke.hostAttrs,xe),ke!==F);)Dt++;return null!==F&&($.directiveStylingLast=Dt),de}function Is(F,H,$){const de=$?1:2;let xe=-1;if(null!==H)for(let ke=0;ke<H.length;ke++){const Je=H[ke];"number"==typeof Je?xe=Je:xe===de&&(Array.isArray(F)||(F=void 0===F?[]:["",F]),ps(F,Je,!!$||H[++ke]))}return void 0===F?null:F}function Zu(F,H,$){ps(F,H,ru($))}function tf(F,H,$,de,xe,ke,Je,Dt){if(!(3&H.type))return;const Nt=F.data,cn=Nt[Dt+1],Fn=function hI(F){return 1==(1&F)}(cn)?BC(Nt,H,$,xe,yp(cn),Je):void 0;qm(Fn)||(qm(ke)||function kE(F){return 2==(2&F)}(cn)&&(ke=BC(Nt,null,$,xe,Dt,Je)),function y_(F,H,$,de,xe){if(H)xe?F.addClass($,de):F.removeClass($,de);else{let ke=-1===de.indexOf("-")?void 0:$s.DashCase;null==xe?F.removeStyle($,de,ke):("string"==typeof xe&&xe.endsWith("!important")&&(xe=xe.slice(0,-10),ke|=$s.Important),F.setStyle($,de,xe,ke))}}(de,Je,Jo(Zo(),$),xe,ke))}function BC(F,H,$,de,xe,ke){const Je=null===H;let Dt;for(;xe>0;){const Nt=F[xe],cn=Array.isArray(Nt),Fn=cn?Nt[1]:Nt,ii=null===Fn;let Ti=$[xe+1];Ti===Fo&&(Ti=ii?ti:void 0);let zi=ii?cl(Ti,de):Fn===de?Ti:void 0;if(cn&&!qm(zi)&&(zi=cl(Nt,de)),qm(zi)&&(Dt=zi,Je))return Dt;const ur=F[xe+1];xe=Je?rc(ur):yp(ur)}if(null!==H){let Nt=ke?H.residualClasses:H.residualStyles;null!=Nt&&(Dt=cl(Nt,de))}return Dt}function qm(F){return void 0!==F}function Jm(F,H){return 0!=(F.flags&(H?8:16))}function VC(F,H=""){const $=rt(),de=$t(),xe=F+22,ke=de.firstCreatePass?Ng(de,xe,1,H,null):de.data[xe],Je=$[xe]=function Gh(F,H){return F.createText(H)}($[11],H);Va(de,$,Je,ke),Ei(ke,!1)}function rv(F){return ov("",F,""),rv}function ov(F,H,$){const de=rt(),xe=Gg(de,F,H,$);return xe!==Fo&&hl(de,Zo(),xe),ov}function NC(F,H,$,de,xe){const ke=rt(),Je=th(ke,F,H,$,de,xe);return Je!==Fo&&hl(ke,Zo(),Je),NC}function KE(F,H,$){cu(ps,uu,Gg(rt(),F,H,$),!0)}function GE(F,H,$){!function Ul(F){cu(Zu,ac,F,!1)}(Gg(rt(),F,H,$))}const ah=void 0;var eS=["en",[["a","p"],["AM","PM"],ah],[["AM","PM"],ah,ah],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ah,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ah,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ah,"{1} 'at' {0}",ah],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function PI(F){const $=Math.floor(Math.abs(F)),de=F.toString().replace(/^[^.]*\.?/,"").length;return 1===$&&0===de?1:5}];let nf={};function KC(F){const H=function bp(F){return F.toLowerCase().replace(/_/g,"-")}(F);let $=rf(H);if($)return $;const de=H.split("-")[0];if($=rf(de),$)return $;if("en"===de)return eS;throw new W(701,!1)}function tS(F){return KC(F)[Oo.PluralCase]}function rf(F){return F in nf||(nf[F]=bt.ng&&bt.ng.common&&bt.ng.common.locales&&bt.ng.common.locales[F]),nf[F]}var Oo=(()=>((Oo=Oo||{})[Oo.LocaleId=0]="LocaleId",Oo[Oo.DayPeriodsFormat=1]="DayPeriodsFormat",Oo[Oo.DayPeriodsStandalone=2]="DayPeriodsStandalone",Oo[Oo.DaysFormat=3]="DaysFormat",Oo[Oo.DaysStandalone=4]="DaysStandalone",Oo[Oo.MonthsFormat=5]="MonthsFormat",Oo[Oo.MonthsStandalone=6]="MonthsStandalone",Oo[Oo.Eras=7]="Eras",Oo[Oo.FirstDayOfWeek=8]="FirstDayOfWeek",Oo[Oo.WeekendRange=9]="WeekendRange",Oo[Oo.DateFormat=10]="DateFormat",Oo[Oo.TimeFormat=11]="TimeFormat",Oo[Oo.DateTimeFormat=12]="DateTimeFormat",Oo[Oo.NumberSymbols=13]="NumberSymbols",Oo[Oo.NumberFormats=14]="NumberFormats",Oo[Oo.CurrencyCode=15]="CurrencyCode",Oo[Oo.CurrencySymbol=16]="CurrencySymbol",Oo[Oo.CurrencyName=17]="CurrencyName",Oo[Oo.Currencies=18]="Currencies",Oo[Oo.Directionality=19]="Directionality",Oo[Oo.PluralCase=20]="PluralCase",Oo[Oo.ExtraData=21]="ExtraData",Oo))();const sh="en-US";let iS=sh;function a0(F,H,$,de,xe){if(F=T(F),Array.isArray(F))for(let ke=0;ke<F.length;ke++)a0(F[ke],H,$,de,xe);else{const ke=$t(),Je=rt();let Dt=pi(F)?F:T(F.provide),Nt=Vl(F);const cn=Jn(),Fn=1048575&cn.providerIndexes,ii=cn.directiveStart,Ti=cn.providerIndexes>>20;if(pi(F)||!F.multi){const zi=new vr(Nt,xe,gp),ur=lx(Dt,H,xe?Fn:Fn+Ti,ii);-1===ur?(id(Su(cn,Je),ke,Dt),Zl(ke,F,H.length),H.push(Dt),cn.directiveStart++,cn.directiveEnd++,xe&&(cn.providerIndexes+=1048576),$.push(zi),Je.push(zi)):($[ur]=zi,Je[ur]=zi)}else{const zi=lx(Dt,H,Fn+Ti,ii),ur=lx(Dt,H,Fn,Fn+Ti),Yr=ur>=0&&$[ur];if(xe&&!Yr||!xe&&!(zi>=0&&$[zi])){id(Su(cn,Je),ke,Dt);const ho=function pM(F,H,$,de,xe){const ke=new vr(F,$,gp);return ke.multi=[],ke.index=H,ke.componentProviders=0,sx(ke,xe,de&&!$),ke}(xe?hM:cM,$.length,xe,de,Nt);!xe&&Yr&&($[ur].providerFactory=ho),Zl(ke,F,H.length,0),H.push(Dt),cn.directiveStart++,cn.directiveEnd++,xe&&(cn.providerIndexes+=1048576),$.push(ho),Je.push(ho)}else Zl(ke,F,zi>-1?zi:ur,sx($[xe?ur:zi],Nt,!xe&&de));!xe&&de&&Yr&&$[ur].componentProviders++}}}function Zl(F,H,$,de){const xe=pi(H),ke=function wi(F){return!!F.useClass}(H);if(xe||ke){const Nt=(ke?T(H.useClass):H).prototype.ngOnDestroy;if(Nt){const cn=F.destroyHooks||(F.destroyHooks=[]);if(!xe&&H.multi){const Fn=cn.indexOf($);-1===Fn?cn.push($,[de,Nt]):cn[Fn+1].push(de,Nt)}else cn.push($,Nt)}}}function sx(F,H,$){return $&&F.componentProviders++,F.multi.push(H)-1}function lx(F,H,$,de){for(let xe=$;xe<de;xe++)if(H[xe]===F)return xe;return-1}function cM(F,H,$,de){return ux(this.multi,[])}function hM(F,H,$,de){const xe=this.multi;let ke;if(this.providerFactory){const Je=this.providerFactory.componentProviders,Dt=Es($,$[1],this.providerFactory.index,de);ke=Dt.slice(0,Je),ux(xe,ke);for(let Nt=Je;Nt<Dt.length;Nt++)ke.push(Dt[Nt])}else ke=[],ux(xe,ke);return ke}function ux(F,H){for(let $=0;$<F.length;$++)H.push((0,F[$])());return H}function DS(F,H=[]){return $=>{$.providersResolver=(de,xe)=>function dM(F,H,$){const de=$t();if(de.firstCreatePass){const xe=Bt(F);a0($,de.data,de.blueprint,xe,!0),a0(H,de.data,de.blueprint,xe,!1)}}(de,xe?xe(F):F,H)}}class El{}class _v{}function sc(F,H){return new lc(F,H??null)}class lc extends El{constructor(H,$){super(),this._parent=$,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new gC(this);const de=Mr(H);this._bootstrapComponents=qd(de.bootstrap),this._r3Injector=Sm(H,$,[{provide:El,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],E(H),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(H)}get injector(){return this._r3Injector}destroy(){const H=this._r3Injector;!H.destroyed&&H.destroy(),this.destroyCbs.forEach($=>$()),this.destroyCbs=null}onDestroy(H){this.destroyCbs.push(H)}}class uf extends _v{constructor(H){super(),this.moduleType=H}create(H){return new lc(this.moduleType,H)}}class vv extends El{constructor(H,$,de){super(),this.componentFactoryResolver=new gC(this),this.instance=null;const xe=new Lo([...H,{provide:El,useValue:this},{provide:Gc,useValue:this.componentFactoryResolver}],$||ao(),de,new Set(["environment"]));this.injector=xe,xe.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(H){this.injector.onDestroy(H)}}function yv(F,H,$=null){return new vv(F,H,$).injector}let TS=(()=>{class F{constructor($){this._injector=$,this.cachedInjectors=new Map}getOrCreateStandaloneInjector($){if(!$.standalone)return null;if(!this.cachedInjectors.has($.id)){const de=me(0,$.type),xe=de.length>0?yv([de],this._injector,`Standalone[${$.type.name}]`):null;this.cachedInjectors.set($.id,xe)}return this.cachedInjectors.get($.id)}ngOnDestroy(){try{for(const $ of this.cachedInjectors.values())null!==$&&$.destroy()}finally{this.cachedInjectors.clear()}}}return F.\u0275prov=Se({token:F,providedIn:"environment",factory:()=>new F(mn(fo))}),F})();function cx(F){F.getStandaloneInjector=H=>H.get(TS).getOrCreateStandaloneInjector(F)}function yx(F,H,$){const de=$i()+F,xe=rt();return xe[de]===Fo?pl(xe,de,$?H.call($):H()):function _p(F,H){return F[H]}(xe,de)}function l0(F,H,$,de){return BS(rt(),$i(),F,H,$,de)}function kS(F,H,$,de,xe){return function FS(F,H,$,de,xe,ke,Je){const Dt=H+$;return tc(F,Dt,xe,ke)?pl(F,Dt+2,Je?de.call(Je,xe,ke):de(xe,ke)):u0(F,Dt+2)}(rt(),$i(),F,H,$,de,xe)}function u0(F,H){const $=F[H];return $===Fo?void 0:$}function BS(F,H,$,de,xe,ke){const Je=H+$;return Qs(F,Je,xe)?pl(F,Je+1,ke?de.call(ke,xe):de(xe)):u0(F,Je+1)}function VS(F,H){const $=$t();let de;const xe=F+22;$.firstCreatePass?(de=function wx(F,H){if(H)for(let $=H.length-1;$>=0;$--){const de=H[$];if(F===de.name)return de}}(H,$.pipeRegistry),$.data[xe]=de,de.onDestroy&&($.destroyHooks||($.destroyHooks=[])).push(xe,de.onDestroy)):de=$.data[xe];const ke=de.factory||(de.factory=ra(de.type)),Je=Ce(gp);try{const Dt=Eu(!1),Nt=ke();return Eu(Dt),function lI(F,H,$,de){$>=F.data.length&&(F.data[$]=null,F.blueprint[$]=null),H[$]=de}($,rt(),xe,Nt),Nt}finally{Ce(Je)}}function Ex(F,H,$){const de=F+22,xe=rt(),ke=ma(xe,de);return function pf(F,H){return F[1].data[H].pure}(xe,de)?BS(xe,$i(),H,ke.transform,$,ke):ke.transform($)}function Ox(F){return H=>{setTimeout(F,void 0,H)}}const Od=class lh extends o.xQ{constructor(H=!1){super(),this.__isAsync=H}emit(H){super.next(H)}subscribe(H,$,de){let xe=H,ke=$||(()=>null),Je=de;if(H&&"object"==typeof H){const Nt=H;xe=Nt.next?.bind(Nt),ke=Nt.error?.bind(Nt),Je=Nt.complete?.bind(Nt)}this.__isAsync&&(ke=Ox(ke),xe&&(xe=Ox(xe)),Je&&(Je=Ox(Je)));const Dt=super.subscribe({next:xe,error:ke,complete:Je});return H instanceof c.w&&H.add(Dt),Dt}};function xM(){return this._results[mp()]()}class Dx{get changes(){return this._changes||(this._changes=new Od)}constructor(H=!1){this._emitDistinctChangesOnly=H,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const $=mp(),de=Dx.prototype;de[$]||(de[$]=xM)}get(H){return this._results[H]}map(H){return this._results.map(H)}filter(H){return this._results.filter(H)}find(H){return this._results.find(H)}reduce(H,$){return this._results.reduce(H,$)}forEach(H){this._results.forEach(H)}some(H){return this._results.some(H)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(H,$){const de=this;de.dirty=!1;const xe=function ys(F){return F.flat(Number.POSITIVE_INFINITY)}(H);(this._changesDetected=!function Rh(F,H,$){if(F.length!==H.length)return!1;for(let de=0;de<F.length;de++){let xe=F[de],ke=H[de];if($&&(xe=$(xe),ke=$(ke)),ke!==xe)return!1}return!0}(de._results,xe,$))&&(de._results=xe,de.length=xe.length,de.last=xe[this.length-1],de.first=xe[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let c0=(()=>{class F{}return F.__NG_ELEMENT_ID__=xv,F})();const uh=c0,Tx=class extends uh{constructor(H,$,de){super(),this._declarationLView=H,this._declarationTContainer=$,this.elementRef=de}createEmbeddedView(H,$){const de=this._declarationTContainer.tViews,xe=Am(this._declarationLView,de,H,16,null,de.declTNode,null,null,null,null,$||null);xe[17]=this._declarationLView[this._declarationTContainer.index];const Je=this._declarationLView[19];return null!==Je&&(xe[19]=Je.createEmbeddedView(de)),rC(de,xe,H),new Vm(xe)}};function xv(){return uc(Jn(),rt())}function uc(F,H){return 4&F.type?new Tx(H,F,Lg(F,H)):null}let Sl=(()=>{class F{}return F.__NG_ELEMENT_ID__=h0,F})();function h0(){return zS(Jn(),rt())}const bM=Sl,NS=class extends bM{constructor(H,$,de){super(),this._lContainer=H,this._hostTNode=$,this._hostLView=de}get element(){return Lg(this._hostTNode,this._hostLView)}get injector(){return new Ss(this._hostTNode,this._hostLView)}get parentInjector(){const H=Fd(this._hostTNode,this._hostLView);if(Ph(H)){const $=wu(H,this._hostLView),de=td(H);return new Ss($[1].data[de+8],$)}return new Ss(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(H){const $=HS(this._lContainer);return null!==$&&$[H]||null}get length(){return this._lContainer.length-10}createEmbeddedView(H,$,de){let xe,ke;"number"==typeof de?xe=de:null!=de&&(xe=de.index,ke=de.injector);const Je=H.createEmbeddedView($||{},ke);return this.insert(Je,xe),Je}createComponent(H,$,de,xe,ke){const Je=H&&!function Ks(F){return"function"==typeof F}(H);let Dt;if(Je)Dt=$;else{const ii=$||{};Dt=ii.index,de=ii.injector,xe=ii.projectableNodes,ke=ii.environmentInjector||ii.ngModuleRef}const Nt=Je?H:new Nm(Wr(H)),cn=de||this.parentInjector;if(!ke&&null==Nt.ngModule){const Ti=(Je?cn:this.parentInjector).get(fo,null);Ti&&(ke=Ti)}const Fn=Nt.create(cn,xe,void 0,ke);return this.insert(Fn.hostView,Dt),Fn}insert(H,$){const de=H._lView,xe=de[1];if(function wa(F){return an(F[3])}(de)){const Fn=this.indexOf(H);if(-1!==Fn)this.detach(Fn);else{const ii=de[3],Ti=new NS(ii,ii[6],ii[3]);Ti.detach(Ti.indexOf(H))}}const ke=this._adjustIndex($),Je=this._lContainer;!function v_(F,H,$,de){const xe=10+de,ke=$.length;de>0&&($[xe-1][4]=H),de<ke-10?(H[4]=$[xe],cd($,10+de,H)):($.push(H),H[4]=null),H[3]=$;const Je=H[17];null!==Je&&$!==Je&&function lm(F,H){const $=F[9];H[16]!==H[3][3][16]&&(F[2]=!0),null===$?F[9]=[H]:$.push(H)}(Je,H);const Dt=H[19];null!==Dt&&Dt.insertView(F),H[2]|=64}(xe,de,Je,ke);const Dt=Qh(ke,Je),Nt=de[11],cn=Kd(Nt,Je[7]);return null!==cn&&function md(F,H,$,de,xe,ke){de[0]=xe,de[6]=H,Bs(F,de,$,1,xe,ke)}(xe,Je[6],Nt,de,cn,Dt),H.attachToViewContainerRef(),cd(ss(Je),ke,H),H}move(H,$){return this.insert(H,$)}indexOf(H){const $=HS(this._lContainer);return null!==$?$.indexOf(H):-1}remove(H){const $=this._adjustIndex(H,-1),de=xl(this._lContainer,$);de&&(hd(ss(this._lContainer),$),Yh(de[1],de))}detach(H){const $=this._adjustIndex(H,-1),de=xl(this._lContainer,$);return de&&null!=hd(ss(this._lContainer),$)?new Vm(de):null}_adjustIndex(H,$=0){return H??this.length+$}};function HS(F){return F[8]}function ss(F){return F[8]||(F[8]=[])}function zS(F,H){let $;const de=H[F.index];if(an(de))$=de;else{let xe;if(8&F.type)xe=qo(de);else{const ke=H[11];xe=ke.createComment("");const Je=aa(F,H);Xs(ke,Kd(ke,Je),xe,function cm(F,H){return F.nextSibling(H)}(ke,Je),!1)}H[F.index]=$=hE(de,H,xe,F),Rm(H,$)}return new NS($,F,H)}class Ix{constructor(H){this.queryList=H,this.matches=null}clone(){return new Ix(this.queryList)}setDirty(){this.queryList.setDirty()}}class gf{constructor(H=[]){this.queries=H}createEmbeddedView(H){const $=H.queries;if(null!==$){const de=null!==H.contentQueries?H.contentQueries[0]:$.length,xe=[];for(let ke=0;ke<de;ke++){const Je=$.getByIndex(ke);xe.push(this.queries[Je.indexInDeclarationView].clone())}return new gf(xe)}return null}insertView(H){this.dirtyQueriesWithMatches(H)}detachView(H){this.dirtyQueriesWithMatches(H)}dirtyQueriesWithMatches(H){for(let $=0;$<this.queries.length;$++)null!==Ep(H,$).matches&&this.queries[$].setDirty()}}class gu{constructor(H,$,de=null){this.predicate=H,this.flags=$,this.read=de}}class dc{constructor(H=[]){this.queries=H}elementStart(H,$){for(let de=0;de<this.queries.length;de++)this.queries[de].elementStart(H,$)}elementEnd(H){for(let $=0;$<this.queries.length;$++)this.queries[$].elementEnd(H)}embeddedTView(H){let $=null;for(let de=0;de<this.length;de++){const xe=null!==$?$.length:0,ke=this.getByIndex(de).embeddedTView(H,xe);ke&&(ke.indexInDeclarationView=de,null!==$?$.push(ke):$=[ke])}return null!==$?new dc($):null}template(H,$){for(let de=0;de<this.queries.length;de++)this.queries[de].template(H,$)}getByIndex(H){return this.queries[H]}get length(){return this.queries.length}track(H){this.queries.push(H)}}class ff{constructor(H,$=-1){this.metadata=H,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=$}elementStart(H,$){this.isApplyingToNode($)&&this.matchTNode(H,$)}elementEnd(H){this._declarationNodeIndex===H.index&&(this._appliesToNextNode=!1)}template(H,$){this.elementStart(H,$)}embeddedTView(H,$){return this.isApplyingToNode(H)?(this.crossesNgTemplate=!0,this.addMatch(-H.index,$),new ff(this.metadata)):null}isApplyingToNode(H){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const $=this._declarationNodeIndex;let de=H.parent;for(;null!==de&&8&de.type&&de.index!==$;)de=de.parent;return $===(null!==de?de.index:-1)}return this._appliesToNextNode}matchTNode(H,$){const de=this.metadata.predicate;if(Array.isArray(de))for(let xe=0;xe<de.length;xe++){const ke=de[xe];this.matchTNodeWithReadOption(H,$,WS($,ke)),this.matchTNodeWithReadOption(H,$,ql($,H,ke,!1,!1))}else de===c0?4&$.type&&this.matchTNodeWithReadOption(H,$,-1):this.matchTNodeWithReadOption(H,$,ql($,H,de,!1,!1))}matchTNodeWithReadOption(H,$,de){if(null!==de){const xe=this.metadata.read;if(null!==xe)if(xe===xm||xe===Sl||xe===c0&&4&$.type)this.addMatch($.index,-2);else{const ke=ql($,H,xe,!1,!1);null!==ke&&this.addMatch($.index,ke)}else this.addMatch($.index,de)}}addMatch(H,$){null===this.matches?this.matches=[H,$]:this.matches.push(H,$)}}function WS(F,H){const $=F.localNames;if(null!==$)for(let de=0;de<$.length;de+=2)if($[de]===H)return $[de+1];return null}function US(F,H,$,de){return-1===$?function bv(F,H){return 11&F.type?Lg(F,H):4&F.type?uc(F,H):null}(H,F):-2===$?function wM(F,H,$){return $===xm?Lg(H,F):$===c0?uc(H,F):$===Sl?zS(H,F):void 0}(F,H,de):Es(F,F[1],$,H)}function Mx(F,H,$,de){const xe=H[19].queries[de];if(null===xe.matches){const ke=F.data,Je=$.matches,Dt=[];for(let Nt=0;Nt<Je.length;Nt+=2){const cn=Je[Nt];Dt.push(cn<0?null:US(H,ke[cn],Je[Nt+1],$.metadata.read))}xe.matches=Dt}return xe.matches}function Ax(F,H,$,de){const xe=F.queries.getByIndex($),ke=xe.matches;if(null!==ke){const Je=Mx(F,H,xe,$);for(let Dt=0;Dt<ke.length;Dt+=2){const Nt=ke[Dt];if(Nt>0)de.push(Je[Dt/2]);else{const cn=ke[Dt+1],Fn=H[-Nt];for(let ii=10;ii<Fn.length;ii++){const Ti=Fn[ii];Ti[17]===Ti[3]&&Ax(Ti[1],Ti,cn,de)}if(null!==Fn[9]){const ii=Fn[9];for(let Ti=0;Ti<ii.length;Ti++){const zi=ii[Ti];Ax(zi[1],zi,cn,de)}}}}}return de}function Px(F){const H=rt(),$=$t(),de=Wt();qn(de+1);const xe=Ep($,de);if(F.dirty&&function Aa(F){return 4==(4&F[2])}(H)===(2==(2&xe.metadata.flags))){if(null===xe.matches)F.reset([]);else{const ke=xe.crossesNgTemplate?Ax($,H,de,[]):Mx($,H,xe,de);F.reset(ke,x1),F.notifyOnChanges()}return!0}return!1}function p0(F,H,$){const de=$t();de.firstCreatePass&&(Lx(de,new gu(F,H,$),-1),2==(2&H)&&(de.staticViewQueries=!0)),Rx(de,rt(),H)}function ZS(F,H,$,de){const xe=$t();if(xe.firstCreatePass){const ke=Jn();Lx(xe,new gu(H,$,de),ke.index),function KS(F,H){const $=F.contentQueries||(F.contentQueries=[]);H!==($.length?$[$.length-1]:-1)&&$.push(F.queries.length-1,H)}(xe,F),2==(2&$)&&(xe.staticContentQueries=!0)}Rx(xe,rt(),$)}function kx(){return function EM(F,H){return F[19].queries[H].queryList}(rt(),Wt())}function Rx(F,H,$){const de=new Dx(4==(4&$));aE(F,H,de,de.destroy),null===H[19]&&(H[19]=new gf),H[19].queries.push(new Ix(de))}function Lx(F,H,$){null===F.queries&&(F.queries=new dc),F.queries.track(new ff(H,$))}function Ep(F,H){return F.queries.getByIndex(H)}function GS(F,H){return uc(F,H)}function Op(...F){}const Iv=new Ea("Application Initializer");let ch=(()=>{class F{constructor($){this.appInits=$,this.resolve=Op,this.reject=Op,this.initialized=!1,this.done=!1,this.donePromise=new Promise((de,xe)=>{this.resolve=de,this.reject=xe})}runInitializers(){if(this.initialized)return;const $=[],de=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let xe=0;xe<this.appInits.length;xe++){const ke=this.appInits[xe]();if(EC(ke))$.push(ke);else if(Wl(ke)){const Je=new Promise((Dt,Nt)=>{ke.subscribe({complete:Dt,error:Nt})});$.push(Je)}}Promise.all($).then(()=>{de()}).catch(xe=>{this.reject(xe)}),0===$.length&&de(),this.initialized=!0}}return F.\u0275fac=function($){return new($||F)(mn(Iv,8))},F.\u0275prov=Se({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();const Xx=new Ea("AppId",{providedIn:"root",factory:function qx(){return`${ls()}${ls()}${ls()}`}});function ls(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const v0=new Ea("Platform Initializer"),vf=new Ea("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Mv=new Ea("appBootstrapListener");let y0=(()=>{class F{log($){console.log($)}warn($){console.warn($)}}return F.\u0275fac=function($){return new($||F)},F.\u0275prov=Se({token:F,factory:F.\u0275fac,providedIn:"platform"}),F})();const C0=new Ea("LocaleId",{providedIn:"root",factory:()=>Xn(C0,Pe.Optional|Pe.SkipSelf)||function Av(){return typeof $localize<"u"&&$localize.locale||sh}()}),Pv=new Ea("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class dO{constructor(H,$){this.ngModuleFactory=H,this.componentFactories=$}}let LM=(()=>{class F{compileModuleSync($){return new uf($)}compileModuleAsync($){return Promise.resolve(this.compileModuleSync($))}compileModuleAndAllComponentsSync($){const de=this.compileModuleSync($),ke=qd(Mr($).declarations).reduce((Je,Dt)=>{const Nt=Wr(Dt);return Nt&&Je.push(new Nm(Nt)),Je},[]);return new dO(de,ke)}compileModuleAndAllComponentsAsync($){return Promise.resolve(this.compileModuleAndAllComponentsSync($))}clearCache(){}clearCacheFor($){}getModuleId($){}}return F.\u0275fac=function($){return new($||F)},F.\u0275prov=Se({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();const Rv=(()=>Promise.resolve(0))();function x0(F){typeof Zone>"u"?Rv.then(()=>{F&&F.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",F)}class al{constructor({enableLongStackTrace:H=!1,shouldCoalesceEventChangeDetection:$=!1,shouldCoalesceRunChangeDetection:de=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Od(!1),this.onMicrotaskEmpty=new Od(!1),this.onStable=new Od(!1),this.onError=new Od(!1),typeof Zone>"u")throw new W(908,!1);Zone.assertZonePatched();const xe=this;xe._nesting=0,xe._outer=xe._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(xe._inner=xe._inner.fork(new Zone.TaskTrackingZoneSpec)),H&&Zone.longStackTraceZoneSpec&&(xe._inner=xe._inner.fork(Zone.longStackTraceZoneSpec)),xe.shouldCoalesceEventChangeDetection=!de&&$,xe.shouldCoalesceRunChangeDetection=de,xe.lastRequestAnimationFrameId=-1,xe.nativeRequestAnimationFrame=function hO(){let F=bt.requestAnimationFrame,H=bt.cancelAnimationFrame;if(typeof Zone<"u"&&F&&H){const $=F[Zone.__symbol__("OriginalDelegate")];$&&(F=$);const de=H[Zone.__symbol__("OriginalDelegate")];de&&(H=de)}return{nativeRequestAnimationFrame:F,nativeCancelAnimationFrame:H}}().nativeRequestAnimationFrame,function VM(F){const H=()=>{!function FM(F){F.isCheckStableRunning||-1!==F.lastRequestAnimationFrameId||(F.lastRequestAnimationFrameId=F.nativeRequestAnimationFrame.call(bt,()=>{F.fakeTopEventTask||(F.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{F.lastRequestAnimationFrameId=-1,yf(F),F.isCheckStableRunning=!0,Lv(F),F.isCheckStableRunning=!1},void 0,()=>{},()=>{})),F.fakeTopEventTask.invoke()}),yf(F))}(F)};F._inner=F._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:($,de,xe,ke,Je,Dt)=>{try{return Qx(F),$.invokeTask(xe,ke,Je,Dt)}finally{(F.shouldCoalesceEventChangeDetection&&"eventTask"===ke.type||F.shouldCoalesceRunChangeDetection)&&H(),pO(F)}},onInvoke:($,de,xe,ke,Je,Dt,Nt)=>{try{return Qx(F),$.invoke(xe,ke,Je,Dt,Nt)}finally{F.shouldCoalesceRunChangeDetection&&H(),pO(F)}},onHasTask:($,de,xe,ke)=>{$.hasTask(xe,ke),de===xe&&("microTask"==ke.change?(F._hasPendingMicrotasks=ke.microTask,yf(F),Lv(F)):"macroTask"==ke.change&&(F.hasPendingMacrotasks=ke.macroTask))},onHandleError:($,de,xe,ke)=>($.handleError(xe,ke),F.runOutsideAngular(()=>F.onError.emit(ke)),!1)})}(xe)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!al.isInAngularZone())throw new W(909,!1)}static assertNotInAngularZone(){if(al.isInAngularZone())throw new W(909,!1)}run(H,$,de){return this._inner.run(H,$,de)}runTask(H,$,de,xe){const ke=this._inner,Je=ke.scheduleEventTask("NgZoneEvent: "+xe,H,Jx,Op,Op);try{return ke.runTask(Je,$,de)}finally{ke.cancelTask(Je)}}runGuarded(H,$,de){return this._inner.runGuarded(H,$,de)}runOutsideAngular(H){return this._outer.run(H)}}const Jx={};function Lv(F){if(0==F._nesting&&!F.hasPendingMicrotasks&&!F.isStable)try{F._nesting++,F.onMicrotaskEmpty.emit(null)}finally{if(F._nesting--,!F.hasPendingMicrotasks)try{F.runOutsideAngular(()=>F.onStable.emit(null))}finally{F.isStable=!0}}}function yf(F){F.hasPendingMicrotasks=!!(F._hasPendingMicrotasks||(F.shouldCoalesceEventChangeDetection||F.shouldCoalesceRunChangeDetection)&&-1!==F.lastRequestAnimationFrameId)}function Qx(F){F._nesting++,F.isStable&&(F.isStable=!1,F.onUnstable.emit(null))}function pO(F){F._nesting--,Lv(F)}class NM{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Od,this.onMicrotaskEmpty=new Od,this.onStable=new Od,this.onError=new Od}run(H,$,de){return H.apply($,de)}runGuarded(H,$,de){return H.apply($,de)}runOutsideAngular(H){return H()}runTask(H,$,de,xe){return H.apply($,de)}}const Bv=new Ea(""),eb=new Ea("");let b0,tb=(()=>{class F{constructor($,de,xe){this._ngZone=$,this.registry=de,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,b0||(function HM(F){b0=F}(xe),xe.addToWindow(de)),this._watchAngularEvents(),$.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{al.assertNotInAngularZone(),x0(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())x0(()=>{for(;0!==this._callbacks.length;){let $=this._callbacks.pop();clearTimeout($.timeoutId),$.doneCb(this._didWork)}this._didWork=!1});else{let $=this.getPendingTasks();this._callbacks=this._callbacks.filter(de=>!de.updateCb||!de.updateCb($)||(clearTimeout(de.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map($=>({source:$.source,creationLocation:$.creationLocation,data:$.data})):[]}addCallback($,de,xe){let ke=-1;de&&de>0&&(ke=setTimeout(()=>{this._callbacks=this._callbacks.filter(Je=>Je.timeoutId!==ke),$(this._didWork,this.getPendingTasks())},de)),this._callbacks.push({doneCb:$,timeoutId:ke,updateCb:xe})}whenStable($,de,xe){if(xe&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback($,de,xe),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication($){this.registry.registerApplication($,this)}unregisterApplication($){this.registry.unregisterApplication($)}findProviders($,de,xe){return[]}}return F.\u0275fac=function($){return new($||F)(mn(al),mn(nb),mn(eb))},F.\u0275prov=Se({token:F,factory:F.\u0275fac}),F})(),nb=(()=>{class F{constructor(){this._applications=new Map}registerApplication($,de){this._applications.set($,de)}unregisterApplication($){this._applications.delete($)}unregisterAllApplications(){this._applications.clear()}getTestability($){return this._applications.get($)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree($,de=!0){return b0?.findTestabilityInTree(this,$,de)??null}}return F.\u0275fac=function($){return new($||F)},F.\u0275prov=Se({token:F,factory:F.\u0275fac,providedIn:"platform"}),F})(),mu=null;const ib=new Ea("AllowMultipleToken"),rb=new Ea("PlatformDestroyListeners");class zM{constructor(H,$){this.name=H,this.token=$}}function _O(F,H,$=[]){const de=`Platform: ${H}`,xe=new Ea(de);return(ke=[])=>{let Je=Ns();if(!Je||Je.injector.get(ib,!1)){const Dt=[...$,...ke,{provide:xe,useValue:!0}];F?F(Dt):function WM(F){if(mu&&!mu.get(ib,!1))throw new W(400,!1);mu=F;const H=F.get(Fv);(function ab(F){const H=F.get(v0,null);H&&H.forEach($=>$())})(F)}(function lb(F=[],H){return Xc.create({name:H,providers:[{provide:Zi,useValue:"platform"},{provide:rb,useValue:new Set([()=>mu=null])},...F]})}(Dt,de))}return function sb(F){const H=Ns();if(!H)throw new W(401,!1);return H}()}}function Ns(){return mu?.get(Fv)??null}let Fv=(()=>{class F{constructor($){this._injector=$,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory($,de){const xe=function ub(F,H){let $;return $="noop"===F?new NM:("zone.js"===F?void 0:F)||new al(H),$}(de?.ngZone,function vO(F){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!F||!F.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!F||!F.ngZoneRunCoalescing)||!1}}(de)),ke=[{provide:al,useValue:xe}];return xe.run(()=>{const Je=Xc.create({providers:ke,parent:this.injector,name:$.moduleType.name}),Dt=$.create(Je),Nt=Dt.injector.get(lp,null);if(!Nt)throw new W(402,!1);return xe.runOutsideAngular(()=>{const cn=xe.onError.subscribe({next:Fn=>{Nt.handleError(Fn)}});Dt.onDestroy(()=>{Gu(this._modules,Dt),cn.unsubscribe()})}),function db(F,H,$){try{const de=$();return EC(de)?de.catch(xe=>{throw H.runOutsideAngular(()=>F.handleError(xe)),xe}):de}catch(de){throw H.runOutsideAngular(()=>F.handleError(de)),de}}(Nt,xe,()=>{const cn=Dt.injector.get(ch);return cn.runInitializers(),cn.donePromise.then(()=>(function LI(F){ye(F,"Expected localeId to be defined"),"string"==typeof F&&(iS=F.toLowerCase().replace(/_/g,"-"))}(Dt.injector.get(C0,sh)||sh),this._moduleDoBootstrap(Dt),Dt))})})}bootstrapModule($,de=[]){const xe=yO({},de);return function gO(F,H,$){const de=new uf($);return Promise.resolve(de)}(0,0,$).then(ke=>this.bootstrapModuleFactory(ke,xe))}_moduleDoBootstrap($){const de=$.injector.get(Kl);if($._bootstrapComponents.length>0)$._bootstrapComponents.forEach(xe=>de.bootstrap(xe));else{if(!$.instance.ngDoBootstrap)throw new W(-403,!1);$.instance.ngDoBootstrap(de)}this._modules.push($)}onDestroy($){this._destroyListeners.push($)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,!1);this._modules.slice().forEach(de=>de.destroy()),this._destroyListeners.forEach(de=>de());const $=this._injector.get(rb,null);$&&($.forEach(de=>de()),$.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return F.\u0275fac=function($){return new($||F)(mn(Xc))},F.\u0275prov=Se({token:F,factory:F.\u0275fac,providedIn:"platform"}),F})();function yO(F,H){return Array.isArray(H)?H.reduce(yO,F):{...F,...H}}let Kl=(()=>{class F{get destroyed(){return this._destroyed}get injector(){return this._injector}constructor($,de,xe){this._zone=$,this._injector=de,this._exceptionHandler=xe,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const ke=new I.y(Dt=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Dt.next(this._stable),Dt.complete()})}),Je=new I.y(Dt=>{let Nt;this._zone.runOutsideAngular(()=>{Nt=this._zone.onStable.subscribe(()=>{al.assertNotInAngularZone(),x0(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Dt.next(!0))})})});const cn=this._zone.onUnstable.subscribe(()=>{al.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Dt.next(!1)}))});return()=>{Nt.unsubscribe(),cn.unsubscribe()}});this.isStable=function p(...F){let H=Number.POSITIVE_INFINITY,$=null,de=F[F.length-1];return(0,C.K)(de)?($=F.pop(),F.length>1&&"number"==typeof F[F.length-1]&&(H=F.pop())):"number"==typeof de&&(H=F.pop()),null===$&&1===F.length&&F[0]instanceof I.y?F[0]:(0,g.J)(H)((0,a.n)(F,$))}(ke,Je.pipe(function x(){return F=>(0,h.x)()(function l(F,H){return function(de){let xe;if(xe="function"==typeof F?F:function(){return F},"function"==typeof H)return de.lift(new d(xe,H));const ke=Object.create(de,s.N);return ke.source=de,ke.subjectFactory=xe,ke}}(v)(F))}()))}bootstrap($,de){const xe=$ instanceof O_;if(!this._injector.get(ch).done)throw!xe&&mo($),new W(405,false);let Je;Je=xe?$:this._injector.get(Gc).resolveComponentFactory($),this.componentTypes.push(Je.componentType);const Dt=function ob(F){return F.isBoundToModule}(Je)?void 0:this._injector.get(El),cn=Je.create(Xc.NULL,[],de||Je.selector,Dt),Fn=cn.location.nativeElement,ii=cn.injector.get(Bv,null);return ii?.registerApplication(Fn),cn.onDestroy(()=>{this.detachView(cn.hostView),Gu(this.components,cn),ii?.unregisterApplication(Fn)}),this._loadComponent(cn),cn}tick(){if(this._runningTick)throw new W(101,!1);try{this._runningTick=!0;for(let $ of this._views)$.detectChanges()}catch($){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError($))}finally{this._runningTick=!1}}attachView($){const de=$;this._views.push(de),de.attachToAppRef(this)}detachView($){const de=$;Gu(this._views,de),de.detachFromAppRef()}_loadComponent($){this.attachView($.hostView),this.tick(),this.components.push($);const de=this._injector.get(Mv,[]);de.push(...this._bootstrapListeners),de.forEach(xe=>xe($))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach($=>$()),this._views.slice().forEach($=>$.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy($){return this._destroyListeners.push($),()=>Gu(this._destroyListeners,$)}destroy(){if(this._destroyed)throw new W(406,!1);const $=this._injector;$.destroy&&!$.destroyed&&$.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return F.\u0275fac=function($){return new($||F)(mn(al),mn(fo),mn(lp))},F.\u0275prov=Se({token:F,factory:F.\u0275fac,providedIn:"root"}),F})();function Gu(F,H){const $=F.indexOf(H);$>-1&&F.splice($,1)}function Dd(){}let UM=(()=>{class F{}return F.__NG_ELEMENT_ID__=ZM,F})();function ZM(F){return function Cf(F,H,$){if($n(F)&&!$){const de=Qo(F.index,H);return new Vm(de,de)}return 47&F.type?new Vm(H[16],H):null}(Jn(),rt(),16==(16&F))}class EO{constructor(){}supports(H){return Um(H)}create(H){return new Uv(H)}}const S0=(F,H)=>H;class Uv{constructor(H){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=H||S0}forEachItem(H){let $;for($=this._itHead;null!==$;$=$._next)H($)}forEachOperation(H){let $=this._itHead,de=this._removalsHead,xe=0,ke=null;for(;$||de;){const Je=!de||$&&$.currentIndex<_u(de,xe,ke)?$:de,Dt=_u(Je,xe,ke),Nt=Je.currentIndex;if(Je===de)xe--,de=de._nextRemoved;else if($=$._next,null==Je.previousIndex)xe++;else{ke||(ke=[]);const cn=Dt-xe,Fn=Nt-xe;if(cn!=Fn){for(let Ti=0;Ti<cn;Ti++){const zi=Ti<ke.length?ke[Ti]:ke[Ti]=0,ur=zi+Ti;Fn<=ur&&ur<cn&&(ke[Ti]=zi+1)}ke[Je.previousIndex]=Fn-cn}}Dt!==Nt&&H(Je,Dt,Nt)}}forEachPreviousItem(H){let $;for($=this._previousItHead;null!==$;$=$._nextPrevious)H($)}forEachAddedItem(H){let $;for($=this._additionsHead;null!==$;$=$._nextAdded)H($)}forEachMovedItem(H){let $;for($=this._movesHead;null!==$;$=$._nextMoved)H($)}forEachRemovedItem(H){let $;for($=this._removalsHead;null!==$;$=$._nextRemoved)H($)}forEachIdentityChange(H){let $;for($=this._identityChangesHead;null!==$;$=$._nextIdentityChange)H($)}diff(H){if(null==H&&(H=[]),!Um(H))throw new W(900,!1);return this.check(H)?this:null}onDestroy(){}check(H){this._reset();let xe,ke,Je,$=this._itHead,de=!1;if(Array.isArray(H)){this.length=H.length;for(let Dt=0;Dt<this.length;Dt++)ke=H[Dt],Je=this._trackByFn(Dt,ke),null!==$&&Object.is($.trackById,Je)?(de&&($=this._verifyReinsertion($,ke,Je,Dt)),Object.is($.item,ke)||this._addIdentityChange($,ke)):($=this._mismatch($,ke,Je,Dt),de=!0),$=$._next}else xe=0,function bE(F,H){if(Array.isArray(F))for(let $=0;$<F.length;$++)H(F[$]);else{const $=F[mp()]();let de;for(;!(de=$.next()).done;)H(de.value)}}(H,Dt=>{Je=this._trackByFn(xe,Dt),null!==$&&Object.is($.trackById,Je)?(de&&($=this._verifyReinsertion($,Dt,Je,xe)),Object.is($.item,Dt)||this._addIdentityChange($,Dt)):($=this._mismatch($,Dt,Je,xe),de=!0),$=$._next,xe++}),this.length=xe;return this._truncate($),this.collection=H,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let H;for(H=this._previousItHead=this._itHead;null!==H;H=H._next)H._nextPrevious=H._next;for(H=this._additionsHead;null!==H;H=H._nextAdded)H.previousIndex=H.currentIndex;for(this._additionsHead=this._additionsTail=null,H=this._movesHead;null!==H;H=H._nextMoved)H.previousIndex=H.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(H,$,de,xe){let ke;return null===H?ke=this._itTail:(ke=H._prev,this._remove(H)),null!==(H=null===this._unlinkedRecords?null:this._unlinkedRecords.get(de,null))?(Object.is(H.item,$)||this._addIdentityChange(H,$),this._reinsertAfter(H,ke,xe)):null!==(H=null===this._linkedRecords?null:this._linkedRecords.get(de,xe))?(Object.is(H.item,$)||this._addIdentityChange(H,$),this._moveAfter(H,ke,xe)):H=this._addAfter(new SO($,de),ke,xe),H}_verifyReinsertion(H,$,de,xe){let ke=null===this._unlinkedRecords?null:this._unlinkedRecords.get(de,null);return null!==ke?H=this._reinsertAfter(ke,H._prev,xe):H.currentIndex!=xe&&(H.currentIndex=xe,this._addToMoves(H,xe)),H}_truncate(H){for(;null!==H;){const $=H._next;this._addToRemovals(this._unlink(H)),H=$}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(H,$,de){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(H);const xe=H._prevRemoved,ke=H._nextRemoved;return null===xe?this._removalsHead=ke:xe._nextRemoved=ke,null===ke?this._removalsTail=xe:ke._prevRemoved=xe,this._insertAfter(H,$,de),this._addToMoves(H,de),H}_moveAfter(H,$,de){return this._unlink(H),this._insertAfter(H,$,de),this._addToMoves(H,de),H}_addAfter(H,$,de){return this._insertAfter(H,$,de),this._additionsTail=null===this._additionsTail?this._additionsHead=H:this._additionsTail._nextAdded=H,H}_insertAfter(H,$,de){const xe=null===$?this._itHead:$._next;return H._next=xe,H._prev=$,null===xe?this._itTail=H:xe._prev=H,null===$?this._itHead=H:$._next=H,null===this._linkedRecords&&(this._linkedRecords=new fb),this._linkedRecords.put(H),H.currentIndex=de,H}_remove(H){return this._addToRemovals(this._unlink(H))}_unlink(H){null!==this._linkedRecords&&this._linkedRecords.remove(H);const $=H._prev,de=H._next;return null===$?this._itHead=de:$._next=de,null===de?this._itTail=$:de._prev=$,H}_addToMoves(H,$){return H.previousIndex===$||(this._movesTail=null===this._movesTail?this._movesHead=H:this._movesTail._nextMoved=H),H}_addToRemovals(H){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fb),this._unlinkedRecords.put(H),H.currentIndex=null,H._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=H,H._prevRemoved=null):(H._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=H),H}_addIdentityChange(H,$){return H.item=$,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=H:this._identityChangesTail._nextIdentityChange=H,H}}class SO{constructor(H,$){this.item=H,this.trackById=$,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Z2{constructor(){this._head=null,this._tail=null}add(H){null===this._head?(this._head=this._tail=H,H._nextDup=null,H._prevDup=null):(this._tail._nextDup=H,H._prevDup=this._tail,H._nextDup=null,this._tail=H)}get(H,$){let de;for(de=this._head;null!==de;de=de._nextDup)if((null===$||$<=de.currentIndex)&&Object.is(de.trackById,H))return de;return null}remove(H){const $=H._prevDup,de=H._nextDup;return null===$?this._head=de:$._nextDup=de,null===de?this._tail=$:de._prevDup=$,null===this._head}}class fb{constructor(){this.map=new Map}put(H){const $=H.trackById;let de=this.map.get($);de||(de=new Z2,this.map.set($,de)),de.add(H)}get(H,$){const xe=this.map.get(H);return xe?xe.get(H,$):null}remove(H){const $=H.trackById;return this.map.get($).remove(H)&&this.map.delete($),H}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function _u(F,H,$){const de=F.previousIndex;if(null===de)return de;let xe=0;return $&&de<$.length&&(xe=$[de]),de+H+xe}class OO{constructor(){}supports(H){return H instanceof Map||U_(H)}create(){return new O0}}class O0{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(H){let $;for($=this._mapHead;null!==$;$=$._next)H($)}forEachPreviousItem(H){let $;for($=this._previousMapHead;null!==$;$=$._nextPrevious)H($)}forEachChangedItem(H){let $;for($=this._changesHead;null!==$;$=$._nextChanged)H($)}forEachAddedItem(H){let $;for($=this._additionsHead;null!==$;$=$._nextAdded)H($)}forEachRemovedItem(H){let $;for($=this._removalsHead;null!==$;$=$._nextRemoved)H($)}diff(H){if(H){if(!(H instanceof Map||U_(H)))throw new W(900,!1)}else H=new Map;return this.check(H)?this:null}onDestroy(){}check(H){this._reset();let $=this._mapHead;if(this._appendAfter=null,this._forEach(H,(de,xe)=>{if($&&$.key===xe)this._maybeAddToChanges($,de),this._appendAfter=$,$=$._next;else{const ke=this._getOrCreateRecordForKey(xe,de);$=this._insertBeforeOrAppend($,ke)}}),$){$._prev&&($._prev._next=null),this._removalsHead=$;for(let de=$;null!==de;de=de._nextRemoved)de===this._mapHead&&(this._mapHead=null),this._records.delete(de.key),de._nextRemoved=de._next,de.previousValue=de.currentValue,de.currentValue=null,de._prev=null,de._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(H,$){if(H){const de=H._prev;return $._next=H,$._prev=de,H._prev=$,de&&(de._next=$),H===this._mapHead&&(this._mapHead=$),this._appendAfter=H,H}return this._appendAfter?(this._appendAfter._next=$,$._prev=this._appendAfter):this._mapHead=$,this._appendAfter=$,null}_getOrCreateRecordForKey(H,$){if(this._records.has(H)){const xe=this._records.get(H);this._maybeAddToChanges(xe,$);const ke=xe._prev,Je=xe._next;return ke&&(ke._next=Je),Je&&(Je._prev=ke),xe._next=null,xe._prev=null,xe}const de=new mb(H);return this._records.set(H,de),de.currentValue=$,this._addToAdditions(de),de}_reset(){if(this.isDirty){let H;for(this._previousMapHead=this._mapHead,H=this._previousMapHead;null!==H;H=H._next)H._nextPrevious=H._next;for(H=this._changesHead;null!==H;H=H._nextChanged)H.previousValue=H.currentValue;for(H=this._additionsHead;null!=H;H=H._nextAdded)H.previousValue=H.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(H,$){Object.is($,H.currentValue)||(H.previousValue=H.currentValue,H.currentValue=$,this._addToChanges(H))}_addToAdditions(H){null===this._additionsHead?this._additionsHead=this._additionsTail=H:(this._additionsTail._nextAdded=H,this._additionsTail=H)}_addToChanges(H){null===this._changesHead?this._changesHead=this._changesTail=H:(this._changesTail._nextChanged=H,this._changesTail=H)}_forEach(H,$){H instanceof Map?H.forEach($):Object.keys(H).forEach(de=>$(H[de],de))}}class mb{constructor(H){this.key=H,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function DO(){return new mh([new EO])}let mh=(()=>{class F{constructor($){this.factories=$}static create($,de){if(null!=de){const xe=de.factories.slice();$=$.concat(xe)}return new F($)}static extend($){return{provide:F,useFactory:de=>F.create($,de||DO()),deps:[[F,new nu,new Au]]}}find($){const de=this.factories.find(xe=>xe.supports($));if(null!=de)return de;throw new W(901,!1)}}return F.\u0275prov=Se({token:F,providedIn:"root",factory:DO}),F})();function _b(){return new vb([new OO])}let vb=(()=>{class F{constructor($){this.factories=$}static create($,de){if(de){const xe=de.factories.slice();$=$.concat(xe)}return new F($)}static extend($){return{provide:F,useFactory:de=>F.create($,de||_b()),deps:[[F,new nu,new Au]]}}find($){const de=this.factories.find(xe=>xe.supports($));if(de)return de;throw new W(901,!1)}}return F.\u0275prov=Se({token:F,providedIn:"root",factory:_b}),F})();const Zv=_O(null,"core",[]);let MO=(()=>{class F{constructor($){}}return F.\u0275fac=function($){return new($||F)(mn(Kl))},F.\u0275mod=kr({type:F}),F.\u0275inj=te({}),F})();function XM(F){return"boolean"==typeof F?F:null!=F&&"false"!==F}},8942:(Rn,he,u)=>{"use strict";u.d(he,{Wl:()=>b,Fj:()=>O,u5:()=>wa,JU:()=>v,JJ:()=>Ne,JL:()=>mt,F:()=>ar,On:()=>sr,_Y:()=>gr});var o=u(4370),c=u(8692),I=u(6666),C=u(882),g=u(9796),a=u(8002),p=u(1555);function l(Jt,Ut){return new C.y(At=>{const An=Jt.length;if(0===An)return void At.complete();const Ni=new Array(An);let jr=0,Eo=0;for(let _t=0;_t<An;_t++){const it=(0,I.D)(Jt[_t]);let We=!1;At.add(it.subscribe({next:Qe=>{We||(We=!0,Eo++),Ni[_t]=Qe},error:Qe=>At.error(Qe),complete:()=>{jr++,(jr===An||!We)&&(Eo===An&&At.next(Ut?Ut.reduce((Qe,rt,$t)=>(Qe[rt]=Ni[$t],Qe),{}):Ni),At.complete())}}))}})}let d=(()=>{class Jt{constructor(At,An){this._renderer=At,this._elementRef=An,this.onChange=Ni=>{},this.onTouched=()=>{}}setProperty(At,An){this._renderer.setProperty(this._elementRef.nativeElement,At,An)}registerOnTouched(At){this.onTouched=At}registerOnChange(At){this.onChange=At}setDisabledState(At){this.setProperty("disabled",At)}}return Jt.\u0275fac=function(At){return new(At||Jt)(o.Y36(o.Qsj),o.Y36(o.SBq))},Jt.\u0275dir=o.lG2({type:Jt}),Jt})(),h=(()=>{class Jt extends d{}return Jt.\u0275fac=function(){let Ut;return function(An){return(Ut||(Ut=o.n5z(Jt)))(An||Jt)}}(),Jt.\u0275dir=o.lG2({type:Jt,features:[o.qOj]}),Jt})();const v=new o.OlP("NgValueAccessor"),x={provide:v,useExisting:(0,o.Gpc)(()=>b),multi:!0};let b=(()=>{class Jt extends h{writeValue(At){this.setProperty("checked",At)}}return Jt.\u0275fac=function(){let Ut;return function(An){return(Ut||(Ut=o.n5z(Jt)))(An||Jt)}}(),Jt.\u0275dir=o.lG2({type:Jt,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(At,An){1&At&&o.NdJ("change",function(jr){return An.onChange(jr.target.checked)})("blur",function(){return An.onTouched()})},features:[o._Bn([x]),o.qOj]}),Jt})();const y={provide:v,useExisting:(0,o.Gpc)(()=>O),multi:!0},S=new o.OlP("CompositionEventMode");let O=(()=>{class Jt extends d{constructor(At,An,Ni){super(At,An),this._compositionMode=Ni,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function E(){const Jt=(0,c.q)()?(0,c.q)().getUserAgent():"";return/android (\d+)/.test(Jt.toLowerCase())}())}writeValue(At){this.setProperty("value",At??"")}_handleInput(At){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(At)}_compositionStart(){this._composing=!0}_compositionEnd(At){this._composing=!1,this._compositionMode&&this.onChange(At)}}return Jt.\u0275fac=function(At){return new(At||Jt)(o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(S,8))},Jt.\u0275dir=o.lG2({type:Jt,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(At,An){1&At&&o.NdJ("input",function(jr){return An._handleInput(jr.target.value)})("blur",function(){return An.onTouched()})("compositionstart",function(){return An._compositionStart()})("compositionend",function(jr){return An._compositionEnd(jr.target.value)})},features:[o._Bn([y]),o.qOj]}),Jt})();const R=new o.OlP("NgValidators"),P=new o.OlP("NgAsyncValidators");function q(Jt){return null!=Jt}function Z(Jt){return(0,o.QGY)(Jt)?(0,I.D)(Jt):Jt}function X(Jt){let Ut={};return Jt.forEach(At=>{Ut=null!=At?{...Ut,...At}:Ut}),0===Object.keys(Ut).length?null:Ut}function M(Jt,Ut){return Ut.map(At=>At(Jt))}function fe(Jt){return Jt.map(Ut=>function oe(Jt){return!Jt.validate}(Ut)?Ut:At=>Ut.validate(At))}function Be(Jt){return null!=Jt?function Te(Jt){if(!Jt)return null;const Ut=Jt.filter(q);return 0==Ut.length?null:function(At){return X(M(At,Ut))}}(fe(Jt)):null}function ae(Jt){return null!=Jt?function ze(Jt){if(!Jt)return null;const Ut=Jt.filter(q);return 0==Ut.length?null:function(At){return function s(...Jt){if(1===Jt.length){const Ut=Jt[0];if((0,g.k)(Ut))return l(Ut,null);if((0,p.K)(Ut)&&Object.getPrototypeOf(Ut)===Object.prototype){const At=Object.keys(Ut);return l(At.map(An=>Ut[An]),At)}}if("function"==typeof Jt[Jt.length-1]){const Ut=Jt.pop();return l(Jt=1===Jt.length&&(0,g.k)(Jt[0])?Jt[0]:Jt,null).pipe((0,a.U)(At=>Ut(...At)))}return l(Jt,null)}(M(At,Ut).map(Z)).pipe((0,a.U)(X))}}(fe(Jt)):null}function _e(Jt,Ut){return null===Jt?[Ut]:Array.isArray(Jt)?[...Jt,Ut]:[Jt,Ut]}function ce(Jt){return Jt?Array.isArray(Jt)?Jt:[Jt]:[]}function le(Jt,Ut){return Array.isArray(Jt)?Jt.includes(Ut):Jt===Ut}function pe(Jt,Ut){const At=ce(Ut);return ce(Jt).forEach(Ni=>{le(At,Ni)||At.push(Ni)}),At}function Se(Jt,Ut){return ce(Ut).filter(At=>!le(Jt,At))}class re{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(Ut){this._rawValidators=Ut||[],this._composedValidatorFn=Be(this._rawValidators)}_setAsyncValidators(Ut){this._rawAsyncValidators=Ut||[],this._composedAsyncValidatorFn=ae(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ut){this._onDestroyCallbacks.push(Ut)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ut=>Ut()),this._onDestroyCallbacks=[]}reset(Ut){this.control&&this.control.reset(Ut)}hasError(Ut,At){return!!this.control&&this.control.hasError(Ut,At)}getError(Ut,At){return this.control?this.control.getError(Ut,At):null}}class te extends re{get formDirective(){return null}get path(){return null}}class ie extends re{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ue{constructor(Ut){this._cd=Ut}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ne=(()=>{class Jt extends ue{constructor(At){super(At)}}return Jt.\u0275fac=function(At){return new(At||Jt)(o.Y36(ie,2))},Jt.\u0275dir=o.lG2({type:Jt,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(At,An){2&At&&o.ekj("ng-untouched",An.isUntouched)("ng-touched",An.isTouched)("ng-pristine",An.isPristine)("ng-dirty",An.isDirty)("ng-valid",An.isValid)("ng-invalid",An.isInvalid)("ng-pending",An.isPending)},features:[o.qOj]}),Jt})(),mt=(()=>{class Jt extends ue{constructor(At){super(At)}}return Jt.\u0275fac=function(At){return new(At||Jt)(o.Y36(te,10))},Jt.\u0275dir=o.lG2({type:Jt,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(At,An){2&At&&o.ekj("ng-untouched",An.isUntouched)("ng-touched",An.isTouched)("ng-pristine",An.isPristine)("ng-dirty",An.isDirty)("ng-valid",An.isValid)("ng-invalid",An.isInvalid)("ng-pending",An.isPending)("ng-submitted",An.isSubmitted)},features:[o.qOj]}),Jt})();const Vt="VALID",lt="INVALID",dt="PENDING",vt="DISABLED";function Lt(Jt){return(Xn(Jt)?Jt.validators:Jt)||null}function mn(Jt,Ut){return(Xn(Ut)?Ut.asyncValidators:Jt)||null}function Xn(Jt){return null!=Jt&&!Array.isArray(Jt)&&"object"==typeof Jt}class Vn{constructor(Ut,At){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(Ut),this._assignAsyncValidators(At)}get validator(){return this._composedValidatorFn}set validator(Ut){this._rawValidators=this._composedValidatorFn=Ut}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ut){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ut}get parent(){return this._parent}get valid(){return this.status===Vt}get invalid(){return this.status===lt}get pending(){return this.status==dt}get disabled(){return this.status===vt}get enabled(){return this.status!==vt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ut){this._assignValidators(Ut)}setAsyncValidators(Ut){this._assignAsyncValidators(Ut)}addValidators(Ut){this.setValidators(pe(Ut,this._rawValidators))}addAsyncValidators(Ut){this.setAsyncValidators(pe(Ut,this._rawAsyncValidators))}removeValidators(Ut){this.setValidators(Se(Ut,this._rawValidators))}removeAsyncValidators(Ut){this.setAsyncValidators(Se(Ut,this._rawAsyncValidators))}hasValidator(Ut){return le(this._rawValidators,Ut)}hasAsyncValidator(Ut){return le(this._rawAsyncValidators,Ut)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ut={}){this.touched=!0,this._parent&&!Ut.onlySelf&&this._parent.markAsTouched(Ut)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ut=>Ut.markAllAsTouched())}markAsUntouched(Ut={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(At=>{At.markAsUntouched({onlySelf:!0})}),this._parent&&!Ut.onlySelf&&this._parent._updateTouched(Ut)}markAsDirty(Ut={}){this.pristine=!1,this._parent&&!Ut.onlySelf&&this._parent.markAsDirty(Ut)}markAsPristine(Ut={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(At=>{At.markAsPristine({onlySelf:!0})}),this._parent&&!Ut.onlySelf&&this._parent._updatePristine(Ut)}markAsPending(Ut={}){this.status=dt,!1!==Ut.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ut.onlySelf&&this._parent.markAsPending(Ut)}disable(Ut={}){const At=this._parentMarkedDirty(Ut.onlySelf);this.status=vt,this.errors=null,this._forEachChild(An=>{An.disable({...Ut,onlySelf:!0})}),this._updateValue(),!1!==Ut.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...Ut,skipPristineCheck:At}),this._onDisabledChange.forEach(An=>An(!0))}enable(Ut={}){const At=this._parentMarkedDirty(Ut.onlySelf);this.status=Vt,this._forEachChild(An=>{An.enable({...Ut,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ut.emitEvent}),this._updateAncestors({...Ut,skipPristineCheck:At}),this._onDisabledChange.forEach(An=>An(!1))}_updateAncestors(Ut){this._parent&&!Ut.onlySelf&&(this._parent.updateValueAndValidity(Ut),Ut.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ut){this._parent=Ut}getRawValue(){return this.value}updateValueAndValidity(Ut={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Vt||this.status===dt)&&this._runAsyncValidator(Ut.emitEvent)),!1!==Ut.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ut.onlySelf&&this._parent.updateValueAndValidity(Ut)}_updateTreeValidity(Ut={emitEvent:!0}){this._forEachChild(At=>At._updateTreeValidity(Ut)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ut.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?vt:Vt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ut){if(this.asyncValidator){this.status=dt,this._hasOwnPendingAsyncValidator=!0;const At=Z(this.asyncValidator(this));this._asyncValidationSubscription=At.subscribe(An=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(An,{emitEvent:Ut})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ut,At={}){this.errors=Ut,this._updateControlsErrors(!1!==At.emitEvent)}get(Ut){let At=Ut;return null==At||(Array.isArray(At)||(At=At.split(".")),0===At.length)?null:At.reduce((An,Ni)=>An&&An._find(Ni),this)}getError(Ut,At){const An=At?this.get(At):this;return An&&An.errors?An.errors[Ut]:null}hasError(Ut,At){return!!this.getError(Ut,At)}get root(){let Ut=this;for(;Ut._parent;)Ut=Ut._parent;return Ut}_updateControlsErrors(Ut){this.status=this._calculateStatus(),Ut&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ut)}_initObservables(){this.valueChanges=new o.vpe,this.statusChanges=new o.vpe}_calculateStatus(){return this._allControlsDisabled()?vt:this.errors?lt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(dt)?dt:this._anyControlsHaveStatus(lt)?lt:Vt}_anyControlsHaveStatus(Ut){return this._anyControls(At=>At.status===Ut)}_anyControlsDirty(){return this._anyControls(Ut=>Ut.dirty)}_anyControlsTouched(){return this._anyControls(Ut=>Ut.touched)}_updatePristine(Ut={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ut.onlySelf&&this._parent._updatePristine(Ut)}_updateTouched(Ut={}){this.touched=this._anyControlsTouched(),this._parent&&!Ut.onlySelf&&this._parent._updateTouched(Ut)}_registerOnCollectionChange(Ut){this._onCollectionChange=Ut}_setUpdateStrategy(Ut){Xn(Ut)&&null!=Ut.updateOn&&(this._updateOn=Ut.updateOn)}_parentMarkedDirty(Ut){return!Ut&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(Ut){return null}_assignValidators(Ut){this._rawValidators=Array.isArray(Ut)?Ut.slice():Ut,this._composedValidatorFn=function bn(Jt){return Array.isArray(Jt)?Be(Jt):Jt||null}(this._rawValidators)}_assignAsyncValidators(Ut){this._rawAsyncValidators=Array.isArray(Ut)?Ut.slice():Ut,this._composedAsyncValidatorFn=function xn(Jt){return Array.isArray(Jt)?ae(Jt):Jt||null}(this._rawAsyncValidators)}}class Oi extends Vn{constructor(Ut,At,An){super(Lt(At),mn(An,At)),this.controls=Ut,this._initObservables(),this._setUpdateStrategy(At),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ut,At){return this.controls[Ut]?this.controls[Ut]:(this.controls[Ut]=At,At.setParent(this),At._registerOnCollectionChange(this._onCollectionChange),At)}addControl(Ut,At,An={}){this.registerControl(Ut,At),this.updateValueAndValidity({emitEvent:An.emitEvent}),this._onCollectionChange()}removeControl(Ut,At={}){this.controls[Ut]&&this.controls[Ut]._registerOnCollectionChange(()=>{}),delete this.controls[Ut],this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}setControl(Ut,At,An={}){this.controls[Ut]&&this.controls[Ut]._registerOnCollectionChange(()=>{}),delete this.controls[Ut],At&&this.registerControl(Ut,At),this.updateValueAndValidity({emitEvent:An.emitEvent}),this._onCollectionChange()}contains(Ut){return this.controls.hasOwnProperty(Ut)&&this.controls[Ut].enabled}setValue(Ut,At={}){(function ki(Jt,Ut,At){Jt._forEachChild((An,Ni)=>{if(void 0===At[Ni])throw new o.vHH(1002,"")})})(this,0,Ut),Object.keys(Ut).forEach(An=>{(function li(Jt,Ut,At){const An=Jt.controls;if(!(Ut?Object.keys(An):An).length)throw new o.vHH(1e3,"");if(!An[At])throw new o.vHH(1001,"")})(this,!0,An),this.controls[An].setValue(Ut[An],{onlySelf:!0,emitEvent:At.emitEvent})}),this.updateValueAndValidity(At)}patchValue(Ut,At={}){null!=Ut&&(Object.keys(Ut).forEach(An=>{const Ni=this.controls[An];Ni&&Ni.patchValue(Ut[An],{onlySelf:!0,emitEvent:At.emitEvent})}),this.updateValueAndValidity(At))}reset(Ut={},At={}){this._forEachChild((An,Ni)=>{An.reset(Ut[Ni],{onlySelf:!0,emitEvent:At.emitEvent})}),this._updatePristine(At),this._updateTouched(At),this.updateValueAndValidity(At)}getRawValue(){return this._reduceChildren({},(Ut,At,An)=>(Ut[An]=At.getRawValue(),Ut))}_syncPendingControls(){let Ut=this._reduceChildren(!1,(At,An)=>!!An._syncPendingControls()||At);return Ut&&this.updateValueAndValidity({onlySelf:!0}),Ut}_forEachChild(Ut){Object.keys(this.controls).forEach(At=>{const An=this.controls[At];An&&Ut(An,At)})}_setUpControls(){this._forEachChild(Ut=>{Ut.setParent(this),Ut._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ut){for(const[At,An]of Object.entries(this.controls))if(this.contains(At)&&Ut(An))return!0;return!1}_reduceValue(){return this._reduceChildren({},(At,An,Ni)=>((An.enabled||this.disabled)&&(At[Ni]=An.value),At))}_reduceChildren(Ut,At){let An=Ut;return this._forEachChild((Ni,jr)=>{An=At(An,Ni,jr)}),An}_allControlsDisabled(){for(const Ut of Object.keys(this.controls))if(this.controls[Ut].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(Ut){return this.controls.hasOwnProperty(Ut)?this.controls[Ut]:null}}const Wn=new o.OlP("CallSetDisabledState",{providedIn:"root",factory:()=>Ji}),Ji="always";function Qn(Jt,Ut,At=Ji){qi(Jt,Ut),Ut.valueAccessor.writeValue(Jt.value),(Jt.disabled||"always"===At)&&Ut.valueAccessor.setDisabledState?.(Jt.disabled),function xr(Jt,Ut){Ut.valueAccessor.registerOnChange(At=>{Jt._pendingValue=At,Jt._pendingChange=!0,Jt._pendingDirty=!0,"change"===Jt.updateOn&&Pn(Jt,Ut)})}(Jt,Ut),function hi(Jt,Ut){const At=(An,Ni)=>{Ut.valueAccessor.writeValue(An),Ni&&Ut.viewToModelUpdate(An)};Jt.registerOnChange(At),Ut._registerOnDestroy(()=>{Jt._unregisterOnChange(At)})}(Jt,Ut),function vn(Jt,Ut){Ut.valueAccessor.registerOnTouched(()=>{Jt._pendingTouched=!0,"blur"===Jt.updateOn&&Jt._pendingChange&&Pn(Jt,Ut),"submit"!==Jt.updateOn&&Jt.markAsTouched()})}(Jt,Ut),function Wi(Jt,Ut){if(Ut.valueAccessor.setDisabledState){const At=An=>{Ut.valueAccessor.setDisabledState(An)};Jt.registerOnDisabledChange(At),Ut._registerOnDestroy(()=>{Jt._unregisterOnDisabledChange(At)})}}(Jt,Ut)}function ci(Jt,Ut){Jt.forEach(At=>{At.registerOnValidatorChange&&At.registerOnValidatorChange(Ut)})}function qi(Jt,Ut){const At=function ye(Jt){return Jt._rawValidators}(Jt);null!==Ut.validator?Jt.setValidators(_e(At,Ut.validator)):"function"==typeof At&&Jt.setValidators([At]);const An=function ne(Jt){return Jt._rawAsyncValidators}(Jt);null!==Ut.asyncValidator?Jt.setAsyncValidators(_e(An,Ut.asyncValidator)):"function"==typeof An&&Jt.setAsyncValidators([An]);const Ni=()=>Jt.updateValueAndValidity();ci(Ut._rawValidators,Ni),ci(Ut._rawAsyncValidators,Ni)}function Pn(Jt,Ut){Jt._pendingDirty&&Jt.markAsDirty(),Jt.setValue(Jt._pendingValue,{emitModelToViewChange:!1}),Ut.viewToModelUpdate(Jt._pendingValue),Jt._pendingChange=!1}const po={provide:te,useExisting:(0,o.Gpc)(()=>ar)},mi=(()=>Promise.resolve())();let ar=(()=>{class Jt extends te{constructor(At,An,Ni){super(),this.callSetDisabledState=Ni,this.submitted=!1,this._directives=new Set,this.ngSubmit=new o.vpe,this.form=new Oi({},Be(At),ae(An))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(At){mi.then(()=>{const An=this._findContainer(At.path);At.control=An.registerControl(At.name,At.control),Qn(At.control,At,this.callSetDisabledState),At.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(At)})}getControl(At){return this.form.get(At.path)}removeControl(At){mi.then(()=>{const An=this._findContainer(At.path);An&&An.removeControl(At.name),this._directives.delete(At)})}addFormGroup(At){mi.then(()=>{const An=this._findContainer(At.path),Ni=new Oi({});(function Si(Jt,Ut){qi(Jt,Ut)})(Ni,At),An.registerControl(At.name,Ni),Ni.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(At){mi.then(()=>{const An=this._findContainer(At.path);An&&An.removeControl(At.name)})}getFormGroup(At){return this.form.get(At.path)}updateModel(At,An){mi.then(()=>{this.form.get(At.path).setValue(An)})}setValue(At){this.control.setValue(At)}onSubmit(At){return this.submitted=!0,function Ur(Jt,Ut){Jt._syncPendingControls(),Ut.forEach(At=>{const An=At.control;"submit"===An.updateOn&&An._pendingChange&&(At.viewToModelUpdate(An._pendingValue),An._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(At),"dialog"===At?.target?.method}onReset(){this.resetForm()}resetForm(At){this.form.reset(At),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(At){return At.pop(),At.length?this.form.get(At):this.form}}return Jt.\u0275fac=function(At){return new(At||Jt)(o.Y36(R,10),o.Y36(P,10),o.Y36(Wn,8))},Jt.\u0275dir=o.lG2({type:Jt,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(At,An){1&At&&o.NdJ("submit",function(jr){return An.onSubmit(jr)})("reset",function(){return An.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[o._Bn([po]),o.qOj]}),Jt})();function Xr(Jt,Ut){const At=Jt.indexOf(Ut);At>-1&&Jt.splice(At,1)}function lo(Jt){return"object"==typeof Jt&&null!==Jt&&2===Object.keys(Jt).length&&"value"in Jt&&"disabled"in Jt}const _o=class extends Vn{constructor(Ut=null,At,An){super(Lt(At),mn(An,At)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ut),this._setUpdateStrategy(At),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xn(At)&&(At.nonNullable||At.initialValueIsDefault)&&(this.defaultValue=lo(Ut)?Ut.value:Ut)}setValue(Ut,At={}){this.value=this._pendingValue=Ut,this._onChange.length&&!1!==At.emitModelToViewChange&&this._onChange.forEach(An=>An(this.value,!1!==At.emitViewToModelChange)),this.updateValueAndValidity(At)}patchValue(Ut,At={}){this.setValue(Ut,At)}reset(Ut=this.defaultValue,At={}){this._applyFormState(Ut),this.markAsPristine(At),this.markAsUntouched(At),this.setValue(this.value,At),this._pendingChange=!1}_updateValue(){}_anyControls(Ut){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ut){this._onChange.push(Ut)}_unregisterOnChange(Ut){Xr(this._onChange,Ut)}registerOnDisabledChange(Ut){this._onDisabledChange.push(Ut)}_unregisterOnDisabledChange(Ut){Xr(this._onDisabledChange,Ut)}_forEachChild(Ut){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(Ut){lo(Ut)?(this.value=this._pendingValue=Ut.value,Ut.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ut}},fi={provide:ie,useExisting:(0,o.Gpc)(()=>sr)},Li=(()=>Promise.resolve())();let sr=(()=>{class Jt extends ie{constructor(At,An,Ni,jr,Eo,_t){super(),this._changeDetectorRef=Eo,this.callSetDisabledState=_t,this.control=new _o,this._registered=!1,this.update=new o.vpe,this._parent=At,this._setValidators(An),this._setAsyncValidators(Ni),this.valueAccessor=function Rr(Jt,Ut){if(!Ut)return null;let At,An,Ni;return Array.isArray(Ut),Ut.forEach(jr=>{jr.constructor===O?At=jr:function Wr(Jt){return Object.getPrototypeOf(Jt.constructor)===h}(jr)?An=jr:Ni=jr}),Ni||An||At||null}(0,jr)}ngOnChanges(At){if(this._checkForErrors(),!this._registered||"name"in At){if(this._registered&&(this._checkName(),this.formDirective)){const An=At.name.previousValue;this.formDirective.removeControl({name:An,path:this._getPath(An)})}this._setUpControl()}"isDisabled"in At&&this._updateDisabled(At),function Sr(Jt,Ut){if(!Jt.hasOwnProperty("model"))return!1;const At=Jt.model;return!!At.isFirstChange()||!Object.is(Ut,At.currentValue)}(At,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(At){this.viewModel=At,this.update.emit(At)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Qn(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(At){Li.then(()=>{this.control.setValue(At,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(At){const An=At.isDisabled.currentValue,Ni=0!==An&&(0,o.D6c)(An);Li.then(()=>{Ni&&!this.control.disabled?this.control.disable():!Ni&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(At){return this._parent?function Sn(Jt,Ut){return[...Ut.path,Jt]}(At,this._parent):[At]}}return Jt.\u0275fac=function(At){return new(At||Jt)(o.Y36(te,9),o.Y36(R,10),o.Y36(P,10),o.Y36(v,10),o.Y36(o.sBO,8),o.Y36(Wn,8))},Jt.\u0275dir=o.lG2({type:Jt,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[o._Bn([fi]),o.qOj,o.TTD]}),Jt})(),gr=(()=>{class Jt{}return Jt.\u0275fac=function(At){return new(At||Jt)},Jt.\u0275dir=o.lG2({type:Jt,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),Jt})(),ft=(()=>{class Jt{}return Jt.\u0275fac=function(At){return new(At||Jt)},Jt.\u0275mod=o.oAB({type:Jt}),Jt.\u0275inj=o.cJS({}),Jt})(),Ba=(()=>{class Jt{}return Jt.\u0275fac=function(At){return new(At||Jt)},Jt.\u0275mod=o.oAB({type:Jt}),Jt.\u0275inj=o.cJS({imports:[ft]}),Jt})(),wa=(()=>{class Jt{static withConfig(At){return{ngModule:Jt,providers:[{provide:Wn,useValue:At.callSetDisabledState??Ji}]}}}return Jt.\u0275fac=function(At){return new(At||Jt)},Jt.\u0275mod=o.oAB({type:Jt}),Jt.\u0275inj=o.cJS({imports:[Ba]}),Jt})()},5998:(Rn,he,u)=>{"use strict";u.d(he,{Cb:()=>Ve,Cu:()=>Vt,Dx:()=>tt,H7:()=>li,b2:()=>ue,hm:()=>mn,ki:()=>St,ok:()=>Lt,q6:()=>Se,t6:()=>Xn});var o=u(8692),c=u(4370);class I extends o.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class C extends I{static makeCurrent(){(0,o.HT)(new C)}onAndCancel(En,Mn,ei){return En.addEventListener(Mn,ei,!1),()=>{En.removeEventListener(Mn,ei,!1)}}dispatchEvent(En,Mn){En.dispatchEvent(Mn)}remove(En){En.parentNode&&En.parentNode.removeChild(En)}createElement(En,Mn){return(Mn=Mn||this.getDefaultDocument()).createElement(En)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(En){return En.nodeType===Node.ELEMENT_NODE}isShadowRoot(En){return En instanceof DocumentFragment}getGlobalEventTarget(En,Mn){return"window"===Mn?window:"document"===Mn?En:"body"===Mn?En.body:null}getBaseHref(En){const Mn=function a(){return g=g||document.querySelector("base"),g?g.getAttribute("href"):null}();return null==Mn?null:function s(Hn){p=p||document.createElement("a"),p.setAttribute("href",Hn);const En=p.pathname;return"/"===En.charAt(0)?En:`/${En}`}(Mn)}resetBaseElement(){g=null}getUserAgent(){return window.navigator.userAgent}getCookie(En){return(0,o.Mx)(document.cookie,En)}}let p,g=null;const l=new c.OlP("TRANSITION_ID"),h=[{provide:c.ip1,useFactory:function d(Hn,En,Mn){return()=>{Mn.get(c.CZH).donePromise.then(()=>{const ei=(0,o.q)(),Wn=En.querySelectorAll(`style[ng-transition="${Hn}"]`);for(let Ji=0;Ji<Wn.length;Ji++)ei.remove(Wn[Ji])})}},deps:[l,o.K0,c.zs3],multi:!0}];let x=(()=>{class Hn{build(){return new XMLHttpRequest}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();const b=new c.OlP("EventManagerPlugins");let y=(()=>{class Hn{constructor(Mn,ei){this._zone=ei,this._eventNameToPlugin=new Map,Mn.forEach(Wn=>Wn.manager=this),this._plugins=Mn.slice().reverse()}addEventListener(Mn,ei,Wn){return this._findPluginFor(ei).addEventListener(Mn,ei,Wn)}addGlobalEventListener(Mn,ei,Wn){return this._findPluginFor(ei).addGlobalEventListener(Mn,ei,Wn)}getZone(){return this._zone}_findPluginFor(Mn){const ei=this._eventNameToPlugin.get(Mn);if(ei)return ei;const Wn=this._plugins;for(let Ji=0;Ji<Wn.length;Ji++){const Sn=Wn[Ji];if(Sn.supports(Mn))return this._eventNameToPlugin.set(Mn,Sn),Sn}throw new Error(`No event manager plugin found for event ${Mn}`)}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(b),c.LFG(c.R0b))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();class E{constructor(En){this._doc=En}addGlobalEventListener(En,Mn,ei){const Wn=(0,o.q)().getGlobalEventTarget(this._doc,En);if(!Wn)throw new Error(`Unsupported event target ${Wn} for event ${Mn}`);return this.addEventListener(Wn,Mn,ei)}}let S=(()=>{class Hn{constructor(){this._stylesSet=new Set}addStyles(Mn){const ei=new Set;Mn.forEach(Wn=>{this._stylesSet.has(Wn)||(this._stylesSet.add(Wn),ei.add(Wn))}),this.onStylesAdded(ei)}onStylesAdded(Mn){}getAllStyles(){return Array.from(this._stylesSet)}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})(),O=(()=>{class Hn extends S{constructor(Mn){super(),this._doc=Mn,this._hostNodes=new Map,this._hostNodes.set(Mn.head,[])}_addStylesToHost(Mn,ei,Wn){Mn.forEach(Ji=>{const Sn=this._doc.createElement("style");Sn.textContent=Ji,Wn.push(ei.appendChild(Sn))})}addHost(Mn){const ei=[];this._addStylesToHost(this._stylesSet,Mn,ei),this._hostNodes.set(Mn,ei)}removeHost(Mn){const ei=this._hostNodes.get(Mn);ei&&ei.forEach(w),this._hostNodes.delete(Mn)}onStylesAdded(Mn){this._hostNodes.forEach((ei,Wn)=>{this._addStylesToHost(Mn,Wn,ei)})}ngOnDestroy(){this._hostNodes.forEach(Mn=>Mn.forEach(w))}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();function w(Hn){(0,o.q)().remove(Hn)}const T={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},k=/%COMP%/g,P="%COMP%",B=`_nghost-${P}`,W=`_ngcontent-${P}`;function U(Hn,En){return En.flat(100).map(Mn=>Mn.replace(k,Hn))}function K(Hn){return En=>{if("__ngUnwrap__"===En)return Hn;!1===Hn(En)&&(En.preventDefault(),En.returnValue=!1)}}let Y=(()=>{class Hn{constructor(Mn,ei,Wn){this.eventManager=Mn,this.sharedStylesHost=ei,this.appId=Wn,this.rendererByCompId=new Map,this.defaultRenderer=new J(Mn)}createRenderer(Mn,ei){if(!Mn||!ei)return this.defaultRenderer;switch(ei.encapsulation){case c.ifc.Emulated:{let Wn=this.rendererByCompId.get(ei.id);return Wn||(Wn=new q(this.eventManager,this.sharedStylesHost,ei,this.appId),this.rendererByCompId.set(ei.id,Wn)),Wn.applyToHost(Mn),Wn}case c.ifc.ShadowDom:return new Z(this.eventManager,this.sharedStylesHost,Mn,ei);default:if(!this.rendererByCompId.has(ei.id)){const Wn=U(ei.id,ei.styles);this.sharedStylesHost.addStyles(Wn),this.rendererByCompId.set(ei.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(y),c.LFG(O),c.LFG(c.AFp))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();class J{constructor(En){this.eventManager=En,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(En,Mn){return Mn?document.createElementNS(T[Mn]||Mn,En):document.createElement(En)}createComment(En){return document.createComment(En)}createText(En){return document.createTextNode(En)}appendChild(En,Mn){(G(En)?En.content:En).appendChild(Mn)}insertBefore(En,Mn,ei){En&&(G(En)?En.content:En).insertBefore(Mn,ei)}removeChild(En,Mn){En&&En.removeChild(Mn)}selectRootElement(En,Mn){let ei="string"==typeof En?document.querySelector(En):En;if(!ei)throw new Error(`The selector "${En}" did not match any elements`);return Mn||(ei.textContent=""),ei}parentNode(En){return En.parentNode}nextSibling(En){return En.nextSibling}setAttribute(En,Mn,ei,Wn){if(Wn){Mn=Wn+":"+Mn;const Ji=T[Wn];Ji?En.setAttributeNS(Ji,Mn,ei):En.setAttribute(Mn,ei)}else En.setAttribute(Mn,ei)}removeAttribute(En,Mn,ei){if(ei){const Wn=T[ei];Wn?En.removeAttributeNS(Wn,Mn):En.removeAttribute(`${ei}:${Mn}`)}else En.removeAttribute(Mn)}addClass(En,Mn){En.classList.add(Mn)}removeClass(En,Mn){En.classList.remove(Mn)}setStyle(En,Mn,ei,Wn){Wn&(c.JOm.DashCase|c.JOm.Important)?En.style.setProperty(Mn,ei,Wn&c.JOm.Important?"important":""):En.style[Mn]=ei}removeStyle(En,Mn,ei){ei&c.JOm.DashCase?En.style.removeProperty(Mn):En.style[Mn]=""}setProperty(En,Mn,ei){En[Mn]=ei}setValue(En,Mn){En.nodeValue=Mn}listen(En,Mn,ei){return"string"==typeof En?this.eventManager.addGlobalEventListener(En,Mn,K(ei)):this.eventManager.addEventListener(En,Mn,K(ei))}}function G(Hn){return"TEMPLATE"===Hn.tagName&&void 0!==Hn.content}class q extends J{constructor(En,Mn,ei,Wn){super(En),this.component=ei;const Ji=U(Wn+"-"+ei.id,ei.styles);Mn.addStyles(Ji),this.contentAttr=function z(Hn){return W.replace(k,Hn)}(Wn+"-"+ei.id),this.hostAttr=function V(Hn){return B.replace(k,Hn)}(Wn+"-"+ei.id)}applyToHost(En){super.setAttribute(En,this.hostAttr,"")}createElement(En,Mn){const ei=super.createElement(En,Mn);return super.setAttribute(ei,this.contentAttr,""),ei}}class Z extends J{constructor(En,Mn,ei,Wn){super(En),this.sharedStylesHost=Mn,this.hostEl=ei,this.shadowRoot=ei.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ji=U(Wn.id,Wn.styles);for(let Sn=0;Sn<Ji.length;Sn++){const Qn=document.createElement("style");Qn.textContent=Ji[Sn],this.shadowRoot.appendChild(Qn)}}nodeOrShadowRoot(En){return En===this.hostEl?this.shadowRoot:En}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(En,Mn){return super.appendChild(this.nodeOrShadowRoot(En),Mn)}insertBefore(En,Mn,ei){return super.insertBefore(this.nodeOrShadowRoot(En),Mn,ei)}removeChild(En,Mn){return super.removeChild(this.nodeOrShadowRoot(En),Mn)}parentNode(En){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(En)))}}let X=(()=>{class Hn extends E{constructor(Mn){super(Mn)}supports(Mn){return!0}addEventListener(Mn,ei,Wn){return Mn.addEventListener(ei,Wn,!1),()=>this.removeEventListener(Mn,ei,Wn)}removeEventListener(Mn,ei,Wn){return Mn.removeEventListener(ei,Wn)}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();const M=["alt","control","meta","shift"],oe={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},fe={alt:Hn=>Hn.altKey,control:Hn=>Hn.ctrlKey,meta:Hn=>Hn.metaKey,shift:Hn=>Hn.shiftKey};let Te=(()=>{class Hn extends E{constructor(Mn){super(Mn)}supports(Mn){return null!=Hn.parseEventName(Mn)}addEventListener(Mn,ei,Wn){const Ji=Hn.parseEventName(ei),Sn=Hn.eventCallback(Ji.fullKey,Wn,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.q)().onAndCancel(Mn,Ji.domEventName,Sn))}static parseEventName(Mn){const ei=Mn.toLowerCase().split("."),Wn=ei.shift();if(0===ei.length||"keydown"!==Wn&&"keyup"!==Wn)return null;const Ji=Hn._normalizeKey(ei.pop());let Sn="",Qn=ei.indexOf("code");if(Qn>-1&&(ei.splice(Qn,1),Sn="code."),M.forEach(ci=>{const Wi=ei.indexOf(ci);Wi>-1&&(ei.splice(Wi,1),Sn+=ci+".")}),Sn+=Ji,0!=ei.length||0===Ji.length)return null;const ti={};return ti.domEventName=Wn,ti.fullKey=Sn,ti}static matchEventFullKeyCode(Mn,ei){let Wn=oe[Mn.key]||Mn.key,Ji="";return ei.indexOf("code.")>-1&&(Wn=Mn.code,Ji="code."),!(null==Wn||!Wn)&&(Wn=Wn.toLowerCase()," "===Wn?Wn="space":"."===Wn&&(Wn="dot"),M.forEach(Sn=>{Sn!==Wn&&(0,fe[Sn])(Mn)&&(Ji+=Sn+".")}),Ji+=Wn,Ji===ei)}static eventCallback(Mn,ei,Wn){return Ji=>{Hn.matchEventFullKeyCode(Ji,Mn)&&Wn.runGuarded(()=>ei(Ji))}}static _normalizeKey(Mn){return"esc"===Mn?"escape":Mn}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})();const Se=(0,c.eFA)(c._c5,"browser",[{provide:c.Lbi,useValue:o.bD},{provide:c.g9A,useValue:function ne(){C.makeCurrent()},multi:!0},{provide:o.K0,useFactory:function le(){return(0,c.RDi)(document),document},deps:[]}]),re=new c.OlP(""),te=[{provide:c.rWj,useClass:class v{addToWindow(En){c.dqk.getAngularTestability=(ei,Wn=!0)=>{const Ji=En.findTestabilityInTree(ei,Wn);if(null==Ji)throw new Error("Could not find testability for element.");return Ji},c.dqk.getAllAngularTestabilities=()=>En.getAllTestabilities(),c.dqk.getAllAngularRootElements=()=>En.getAllRootElements(),c.dqk.frameworkStabilizers||(c.dqk.frameworkStabilizers=[]),c.dqk.frameworkStabilizers.push(ei=>{const Wn=c.dqk.getAllAngularTestabilities();let Ji=Wn.length,Sn=!1;const Qn=function(ti){Sn=Sn||ti,Ji--,0==Ji&&ei(Sn)};Wn.forEach(function(ti){ti.whenStable(Qn)})})}findTestabilityInTree(En,Mn,ei){return null==Mn?null:En.getTestability(Mn)??(ei?(0,o.q)().isShadowRoot(Mn)?this.findTestabilityInTree(En,Mn.host,!0):this.findTestabilityInTree(En,Mn.parentElement,!0):null)}},deps:[]},{provide:c.lri,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]},{provide:c.dDg,useClass:c.dDg,deps:[c.R0b,c.eoX,c.rWj]}],ie=[{provide:c.zSh,useValue:"root"},{provide:c.qLn,useFactory:function ce(){return new c.qLn},deps:[]},{provide:b,useClass:X,multi:!0,deps:[o.K0,c.R0b,c.Lbi]},{provide:b,useClass:Te,multi:!0,deps:[o.K0]},{provide:Y,useClass:Y,deps:[y,O,c.AFp]},{provide:c.FYo,useExisting:Y},{provide:S,useExisting:O},{provide:O,useClass:O,deps:[o.K0]},{provide:y,useClass:y,deps:[b,c.R0b]},{provide:o.JF,useClass:x,deps:[]},[]];let ue=(()=>{class Hn{constructor(Mn){}static withServerTransition(Mn){return{ngModule:Hn,providers:[{provide:c.AFp,useValue:Mn.appId},{provide:l,useExisting:c.AFp},h]}}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(re,12))},Hn.\u0275mod=c.oAB({type:Hn}),Hn.\u0275inj=c.cJS({providers:[...ie,...te],imports:[o.ez,c.hGG]}),Hn})(),tt=(()=>{class Hn{constructor(Mn){this._doc=Mn}getTitle(){return this._doc.title}setTitle(Mn){this._doc.title=Mn||""}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(Mn){let ei=null;return ei=Mn?new Mn:function mt(){return new tt((0,c.LFG)(o.K0))}(),ei},providedIn:"root"}),Hn})();function Ve(Hn){return Hn}typeof window<"u"&&window;let St=(()=>{class Hn{constructor(){this.store={},this.onSerializeCallbacks={}}get(Mn,ei){return void 0!==this.store[Mn]?this.store[Mn]:ei}set(Mn,ei){this.store[Mn]=ei}remove(Mn){delete this.store[Mn]}hasKey(Mn){return this.store.hasOwnProperty(Mn)}get isEmpty(){return 0===Object.keys(this.store).length}onSerialize(Mn,ei){this.onSerializeCallbacks[Mn]=ei}toJson(){for(const Mn in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(Mn))try{this.store[Mn]=this.onSerializeCallbacks[Mn]()}catch(ei){console.warn("Exception in onSerialize callback: ",ei)}return JSON.stringify(this.store)}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(){return(()=>{const En=(0,c.f3M)(o.K0),Mn=(0,c.f3M)(c.AFp),ei=new Hn;return ei.store=function Xe(Hn,En){const Mn=Hn.getElementById(En+"-state");let ei={};if(Mn&&Mn.textContent)try{ei=JSON.parse(function ut(Hn){const En={"&a;":"&","&q;":'"',"&s;":"'","&l;":"<","&g;":">"};return Hn.replace(/&[^;]+;/g,Mn=>En[Mn])}(Mn.textContent))}catch(Wn){console.warn("Exception while restoring TransferState for app "+En,Wn)}return ei}(En,Mn),ei})()},providedIn:"root"}),Hn})(),Vt=(()=>{class Hn{}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275mod=c.oAB({type:Hn}),Hn.\u0275inj=c.cJS({}),Hn})();const vt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0,doubletap:!0},Lt=new c.OlP("HammerGestureConfig"),bn=new c.OlP("HammerLoader");let mn=(()=>{class Hn{constructor(){this.events=[],this.overrides={}}buildHammer(Mn){const ei=new Hammer(Mn,this.options);ei.get("pinch").set({enable:!0}),ei.get("rotate").set({enable:!0});for(const Wn in this.overrides)ei.get(Wn).set(this.overrides[Wn]);return ei}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})(),xn=(()=>{class Hn extends E{constructor(Mn,ei,Wn,Ji){super(Mn),this._config=ei,this.console=Wn,this.loader=Ji,this._loaderPromise=null}supports(Mn){return!(!vt.hasOwnProperty(Mn.toLowerCase())&&!this.isCustomEvent(Mn)||!window.Hammer&&!this.loader)}addEventListener(Mn,ei,Wn){const Ji=this.manager.getZone();if(ei=ei.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||Ji.runOutsideAngular(()=>this.loader());let Sn=!1,Qn=()=>{Sn=!0};return Ji.runOutsideAngular(()=>this._loaderPromise.then(()=>{window.Hammer?Sn||(Qn=this.addEventListener(Mn,ei,Wn)):Qn=()=>{}}).catch(()=>{Qn=()=>{}})),()=>{Qn()}}return Ji.runOutsideAngular(()=>{const Sn=this._config.buildHammer(Mn),Qn=function(ti){Ji.runGuarded(function(){Wn(ti)})};return Sn.on(ei,Qn),()=>{Sn.off(ei,Qn),"function"==typeof Sn.destroy&&Sn.destroy()}})}isCustomEvent(Mn){return this._config.events.indexOf(Mn)>-1}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(o.K0),c.LFG(Lt),c.LFG(c.c2e),c.LFG(bn,8))},Hn.\u0275prov=c.Yz7({token:Hn,factory:Hn.\u0275fac}),Hn})(),Xn=(()=>{class Hn{}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275mod=c.oAB({type:Hn}),Hn.\u0275inj=c.cJS({providers:[{provide:b,useClass:xn,multi:!0,deps:[o.K0,Lt,c.c2e,[new c.FiY,bn]]},{provide:Lt,useClass:mn,deps:[]}]}),Hn})(),li=(()=>{class Hn{}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(Mn){let ei=null;return ei=Mn?new(Mn||Hn):c.LFG(Vn),ei},providedIn:"root"}),Hn})(),Vn=(()=>{class Hn extends li{constructor(Mn){super(),this._doc=Mn}sanitize(Mn,ei){if(null==ei)return null;switch(Mn){case c.q3G.NONE:return ei;case c.q3G.HTML:return(0,c.qzn)(ei,"HTML")?(0,c.z3N)(ei):(0,c.EiD)(this._doc,String(ei)).toString();case c.q3G.STYLE:return(0,c.qzn)(ei,"Style")?(0,c.z3N)(ei):ei;case c.q3G.SCRIPT:if((0,c.qzn)(ei,"Script"))return(0,c.z3N)(ei);throw new Error("unsafe value used in a script context");case c.q3G.URL:return(0,c.qzn)(ei,"URL")?(0,c.z3N)(ei):(0,c.mCW)(String(ei));case c.q3G.RESOURCE_URL:if((0,c.qzn)(ei,"ResourceURL"))return(0,c.z3N)(ei);throw new Error(`unsafe value used in a resource URL context (see ${c.JZr})`);default:throw new Error(`Unexpected SecurityContext ${Mn} (see ${c.JZr})`)}}bypassSecurityTrustHtml(Mn){return(0,c.JVY)(Mn)}bypassSecurityTrustStyle(Mn){return(0,c.L6k)(Mn)}bypassSecurityTrustScript(Mn){return(0,c.eBb)(Mn)}bypassSecurityTrustUrl(Mn){return(0,c.LAX)(Mn)}bypassSecurityTrustResourceUrl(Mn){return(0,c.pB0)(Mn)}}return Hn.\u0275fac=function(Mn){return new(Mn||Hn)(c.LFG(o.K0))},Hn.\u0275prov=c.Yz7({token:Hn,factory:function(Mn){let ei=null;return ei=Mn?new Mn:function ki(Hn){return new Vn(Hn.get(o.K0))}(c.LFG(c.zs3)),ei},providedIn:"root"}),Hn})()},7800:(Rn,he,u)=>{"use strict";u.d(he,{gz:()=>oa,wN:()=>Nd,F0:()=>Ya,rH:()=>ud,Bz:()=>tu,lC:()=>Ni});var o=u(4370),c=u(6666),I=u(5917),C=u(5775),g=u(7971);class a extends C.xQ{constructor(qe){super(),this._value=qe}get value(){return this.getValue()}_subscribe(qe){const He=super._subscribe(qe);return He&&!He.closed&&qe.next(this._value),He}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new g.N;return this._value}next(qe){super.next(this._value=qe)}}const s=(()=>{function et(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return et.prototype=Object.create(Error.prototype),et})();var l=u(4869),d=u(9796),h=u(7393);class v extends h.L{notifyNext(qe,He,Tt,Yt,kn){this.destination.next(He)}notifyError(qe,He){this.destination.error(qe)}notifyComplete(qe){this.destination.complete()}}class x extends h.L{constructor(qe,He,Tt){super(),this.parent=qe,this.outerValue=He,this.outerIndex=Tt,this.index=0}_next(qe){this.parent.notifyNext(this.outerValue,qe,this.outerIndex,this.index++,this)}_error(qe){this.parent.notifyError(qe,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var b=u(9846),y=u(882);function E(et,qe,He,Tt,Yt=new x(et,He,Tt)){if(!Yt.closed)return qe instanceof y.y?qe.subscribe(Yt):(0,b.s)(qe)(Yt)}var S=u(6693);const O={};function w(...et){let qe,He;return(0,l.K)(et[et.length-1])&&(He=et.pop()),"function"==typeof et[et.length-1]&&(qe=et.pop()),1===et.length&&(0,d.k)(et[0])&&(et=et[0]),(0,S.n)(et,He).lift(new T(qe))}class T{constructor(qe){this.resultSelector=qe}call(qe,He){return He.subscribe(new k(qe,this.resultSelector))}}class k extends v{constructor(qe,He){super(qe),this.resultSelector=He,this.active=0,this.values=[],this.observables=[]}_next(qe){this.values.push(O),this.observables.push(qe)}_complete(){const qe=this.observables,He=qe.length;if(0===He)this.destination.complete();else{this.active=He,this.toRespond=He;for(let Tt=0;Tt<He;Tt++)this.add(E(this,qe[Tt],void 0,Tt))}}notifyComplete(qe){0==(this.active-=1)&&this.destination.complete()}notifyNext(qe,He,Tt){const Yt=this.values,zn=this.toRespond?Yt[Tt]===O?--this.toRespond:this.toRespond:0;Yt[Tt]=He,0===zn&&(this.resultSelector?this._tryResultSelector(Yt):this.destination.next(Yt.slice()))}_tryResultSelector(qe){let He;try{He=this.resultSelector.apply(this,qe)}catch(Tt){return void this.destination.error(Tt)}this.destination.next(He)}}var R=u(3282);function B(...et){return function P(){return(0,R.J)(1)}()((0,I.of)(...et))}var W=u(9193);function z(et){return new y.y(qe=>{let He;try{He=et()}catch(Yt){return void qe.error(Yt)}return(He?(0,c.D)(He):(0,W.c)()).subscribe(qe)})}var V=u(4022);function U(et,qe){return new y.y(qe?He=>qe.schedule(K,0,{error:et,subscriber:He}):He=>He.error(et))}function K({error:et,subscriber:qe}){qe.error(et)}var Y=u(2441),J=u(8692),j=u(8002),ee=u(5345);function G(et,qe){return"function"==typeof qe?He=>He.pipe(G((Tt,Yt)=>(0,c.D)(et(Tt,Yt)).pipe((0,j.U)((kn,zn)=>qe(Tt,kn,Yt,zn))))):He=>He.lift(new q(et))}class q{constructor(qe){this.project=qe}call(qe,He){return He.subscribe(new Z(qe,this.project))}}class Z extends ee.Ds{constructor(qe,He){super(qe),this.project=He,this.index=0}_next(qe){let He;const Tt=this.index++;try{He=this.project(qe,Tt)}catch(Yt){return void this.destination.error(Yt)}this._innerSub(He)}_innerSub(qe){const He=this.innerSubscription;He&&He.unsubscribe();const Tt=new ee.IY(this),Yt=this.destination;Yt.add(Tt),this.innerSubscription=(0,ee.ft)(qe,Tt),this.innerSubscription!==Tt&&Yt.add(this.innerSubscription)}_complete(){const{innerSubscription:qe}=this;(!qe||qe.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(qe){this.destination.next(qe)}}var X=u(5257),oe=u(5435),fe=u(9773);function Te(et=null){return qe=>qe.lift(new Be(et))}class Be{constructor(qe){this.defaultValue=qe}call(qe,He){return He.subscribe(new ze(qe,this.defaultValue))}}class ze extends h.L{constructor(qe,He){super(qe),this.defaultValue=He,this.isEmpty=!0}_next(qe){this.isEmpty=!1,this.destination.next(qe)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ae(et=ne){return qe=>qe.lift(new _e(et))}class _e{constructor(qe){this.errorFactory=qe}call(qe,He){return He.subscribe(new ye(qe,this.errorFactory))}}class ye extends h.L{constructor(qe,He){super(qe),this.errorFactory=He,this.hasValue=!1}_next(qe){this.hasValue=!0,this.destination.next(qe)}_complete(){if(this.hasValue)return this.destination.complete();{let qe;try{qe=this.errorFactory()}catch(He){qe=He}this.destination.error(qe)}}}function ne(){return new s}var ce=u(4487);function le(et,qe){const He=arguments.length>=2;return Tt=>Tt.pipe(et?(0,oe.h)((Yt,kn)=>et(Yt,kn,Tt)):ce.y,(0,X.q)(1),He?Te(qe):ae(()=>new s))}var pe=u(4612);function Se(){}var re=u(9105);function te(et,qe,He){return function(Yt){return Yt.lift(new ie(et,qe,He))}}class ie{constructor(qe,He,Tt){this.nextOrObserver=qe,this.error=He,this.complete=Tt}call(qe,He){return He.subscribe(new ue(qe,this.nextOrObserver,this.error,this.complete))}}class ue extends h.L{constructor(qe,He,Tt,Yt){super(qe),this._tapNext=Se,this._tapError=Se,this._tapComplete=Se,this._tapError=Tt||Se,this._tapComplete=Yt||Se,(0,re.m)(He)?(this._context=this,this._tapNext=He):He&&(this._context=He,this._tapNext=He.next||Se,this._tapError=He.error||Se,this._tapComplete=He.complete||Se)}_next(qe){try{this._tapNext.call(this._context,qe)}catch(He){return void this.destination.error(He)}this.destination.next(qe)}_error(qe){try{this._tapError.call(this._context,qe)}catch(He){return void this.destination.error(He)}this.destination.error(qe)}_complete(){try{this._tapComplete.call(this._context)}catch(qe){return void this.destination.error(qe)}return this.destination.complete()}}function be(et){return function(He){const Tt=new Ae(et),Yt=He.lift(Tt);return Tt.caught=Yt}}class Ae{constructor(qe){this.selector=qe}call(qe,He){return He.subscribe(new Ne(qe,this.selector,this.caught))}}class Ne extends ee.Ds{constructor(qe,He,Tt){super(qe),this.selector=He,this.caught=Tt}error(qe){if(!this.isStopped){let He;try{He=this.selector(qe,this.caught)}catch(kn){return void super.error(kn)}this._unsubscribeAndRecycle();const Tt=new ee.IY(this);this.add(Tt);const Yt=(0,ee.ft)(He,Tt);Yt!==Tt&&this.add(Yt)}}}function mt(et,qe){let He=!1;return arguments.length>=2&&(He=!0),function(Yt){return Yt.lift(new tt(et,qe,He))}}class tt{constructor(qe,He,Tt=!1){this.accumulator=qe,this.seed=He,this.hasSeed=Tt}call(qe,He){return He.subscribe(new Le(qe,this.accumulator,this.seed,this.hasSeed))}}class Le extends h.L{constructor(qe,He,Tt,Yt){super(qe),this.accumulator=He,this._seed=Tt,this.hasSeed=Yt,this.index=0}get seed(){return this._seed}set seed(qe){this.hasSeed=!0,this._seed=qe}_next(qe){if(this.hasSeed)return this._tryNext(qe);this.seed=qe,this.destination.next(qe)}_tryNext(qe){const He=this.index++;let Tt;try{Tt=this.accumulator(this.seed,qe,He)}catch(Yt){this.destination.error(Yt)}this.seed=Tt,this.destination.next(Tt)}}var gt=u(7108);function tn(et){return function(He){return 0===et?(0,W.c)():He.lift(new Pe(et))}}class Pe{constructor(qe){if(this.total=qe,this.total<0)throw new gt.W}call(qe,He){return He.subscribe(new $e(qe,this.total))}}class $e extends h.L{constructor(qe,He){super(qe),this.total=He,this.ring=new Array,this.count=0}_next(qe){const He=this.ring,Tt=this.total,Yt=this.count++;He.length<Tt?He.push(qe):He[Yt%Tt]=qe}_complete(){const qe=this.destination;let He=this.count;if(He>0){const Tt=this.count>=this.total?this.total:this.count,Yt=this.ring;for(let kn=0;kn<Tt;kn++){const zn=He++%Tt;qe.next(Yt[zn])}}qe.complete()}}function ge(et,qe){const He=arguments.length>=2;return Tt=>Tt.pipe(et?(0,oe.h)((Yt,kn)=>et(Yt,kn,Tt)):ce.y,tn(1),He?Te(qe):ae(()=>new s))}class De{constructor(qe,He){this.predicate=qe,this.inclusive=He}call(qe,He){return He.subscribe(new Ye(qe,this.predicate,this.inclusive))}}class Ye extends h.L{constructor(qe,He,Tt){super(qe),this.predicate=He,this.inclusive=Tt,this.index=0}_next(qe){const He=this.destination;let Tt;try{Tt=this.predicate(qe,this.index++)}catch(Yt){return void He.error(Yt)}this.nextOrComplete(qe,Tt)}nextOrComplete(qe,He){const Tt=this.destination;Boolean(He)?Tt.next(qe):(this.inclusive&&Tt.next(qe),Tt.complete())}}class yt{constructor(qe){this.value=qe}call(qe,He){return He.subscribe(new kt(qe,this.value))}}class kt extends h.L{constructor(qe,He){super(qe),this.value=He}_next(qe){this.destination.next(this.value)}}var gn=u(3464);function ut(et){return qe=>qe.lift(new Ve(et))}class Ve{constructor(qe){this.callback=qe}call(qe,He){return He.subscribe(new St(qe,this.callback))}}class St extends h.L{constructor(qe,He){super(qe),this.add(new gn.w(He))}}var Xe=u(1307),Vt=u(5998);const lt="primary",dt=Symbol("RouteTitle");class vt{constructor(qe){this.params=qe||{}}has(qe){return Object.prototype.hasOwnProperty.call(this.params,qe)}get(qe){if(this.has(qe)){const He=this.params[qe];return Array.isArray(He)?He[0]:He}return null}getAll(qe){if(this.has(qe)){const He=this.params[qe];return Array.isArray(He)?He:[He]}return[]}get keys(){return Object.keys(this.params)}}function Lt(et){return new vt(et)}function bn(et,qe,He){const Tt=He.path.split("/");if(Tt.length>et.length||"full"===He.pathMatch&&(qe.hasChildren()||Tt.length<et.length))return null;const Yt={};for(let kn=0;kn<Tt.length;kn++){const zn=Tt[kn],Ri=et[kn];if(zn.startsWith(":"))Yt[zn.substring(1)]=Ri;else if(zn!==Ri.path)return null}return{consumed:et.slice(0,Tt.length),posParams:Yt}}function xn(et,qe){const He=et?Object.keys(et):void 0,Tt=qe?Object.keys(qe):void 0;if(!He||!Tt||He.length!=Tt.length)return!1;let Yt;for(let kn=0;kn<He.length;kn++)if(Yt=He[kn],!Xn(et[Yt],qe[Yt]))return!1;return!0}function Xn(et,qe){if(Array.isArray(et)&&Array.isArray(qe)){if(et.length!==qe.length)return!1;const He=[...et].sort(),Tt=[...qe].sort();return He.every((Yt,kn)=>Tt[kn]===Yt)}return et===qe}function li(et){return Array.prototype.concat.apply([],et)}function ki(et){return et.length>0?et[et.length-1]:null}function Oi(et,qe){for(const He in et)et.hasOwnProperty(He)&&qe(et[He],He)}function Hn(et){return(0,o.CqO)(et)?et:(0,o.QGY)(et)?(0,c.D)(Promise.resolve(et)):(0,I.of)(et)}const En=!1,Mn={exact:function Sn(et,qe,He){if(!Pn(et.segments,qe.segments)||!Wi(et.segments,qe.segments,He)||et.numberOfChildren!==qe.numberOfChildren)return!1;for(const Tt in qe.children)if(!et.children[Tt]||!Sn(et.children[Tt],qe.children[Tt],He))return!1;return!0},subset:ti},ei={exact:function Ji(et,qe){return xn(et,qe)},subset:function Qn(et,qe){return Object.keys(qe).length<=Object.keys(et).length&&Object.keys(qe).every(He=>Xn(et[He],qe[He]))},ignored:()=>!0};function Wn(et,qe,He){return Mn[He.paths](et.root,qe.root,He.matrixParams)&&ei[He.queryParams](et.queryParams,qe.queryParams)&&!("exact"===He.fragment&&et.fragment!==qe.fragment)}function ti(et,qe,He){return ci(et,qe,qe.segments,He)}function ci(et,qe,He,Tt){if(et.segments.length>He.length){const Yt=et.segments.slice(0,He.length);return!(!Pn(Yt,He)||qe.hasChildren()||!Wi(Yt,He,Tt))}if(et.segments.length===He.length){if(!Pn(et.segments,He)||!Wi(et.segments,He,Tt))return!1;for(const Yt in qe.children)if(!et.children[Yt]||!ti(et.children[Yt],qe.children[Yt],Tt))return!1;return!0}{const Yt=He.slice(0,et.segments.length),kn=He.slice(et.segments.length);return!!(Pn(et.segments,Yt)&&Wi(et.segments,Yt,Tt)&&et.children[lt])&&ci(et.children[lt],qe,kn,Tt)}}function Wi(et,qe,He){return qe.every((Tt,Yt)=>ei[He](et[Yt].parameters,Tt.parameters))}class qi{constructor(qe=new nr([],{}),He={},Tt=null){this.root=qe,this.queryParams=He,this.fragment=Tt}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return dr.serialize(this)}}class nr{constructor(qe,He){this.segments=qe,this.children=He,this.parent=null,Oi(He,(Tt,Yt)=>Tt.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return kr(this)}}class xr{constructor(qe,He){this.path=qe,this.parameters=He}get parameterMap(){return this._parameterMap||(this._parameterMap=Lt(this.parameters)),this._parameterMap}toString(){return mo(this)}}function Pn(et,qe){return et.length===qe.length&&et.every((He,Tt)=>He.path===qe[Tt].path)}let Si=(()=>{class et{}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:function(){return new Yi},providedIn:"root"}),et})();class Yi{parse(qe){const He=new It(qe);return new qi(He.parseRootSegment(),He.parseQueryParams(),He.parseFragment())}serialize(qe){const He=`/${Nr(qe.root,!0)}`,Tt=function po(et){const qe=Object.keys(et).map(He=>{const Tt=et[He];return Array.isArray(Tt)?Tt.map(Yt=>`${Qr(He)}=${Qr(Yt)}`).join("&"):`${Qr(He)}=${Qr(Tt)}`}).filter(He=>!!He);return qe.length?`?${qe.join("&")}`:""}(qe.queryParams);return`${He}${Tt}${"string"==typeof qe.fragment?`#${function Sr(et){return encodeURI(et)}(qe.fragment)}`:""}`}}const dr=new Yi;function kr(et){return et.segments.map(qe=>mo(qe)).join("/")}function Nr(et,qe){if(!et.hasChildren())return kr(et);if(qe){const He=et.children[lt]?Nr(et.children[lt],!1):"",Tt=[];return Oi(et.children,(Yt,kn)=>{kn!==lt&&Tt.push(`${kn}:${Nr(Yt,!1)}`)}),Tt.length>0?`${He}(${Tt.join("//")})`:He}{const He=function hi(et,qe){let He=[];return Oi(et.children,(Tt,Yt)=>{Yt===lt&&(He=He.concat(qe(Tt,Yt)))}),Oi(et.children,(Tt,Yt)=>{Yt!==lt&&(He=He.concat(qe(Tt,Yt)))}),He}(et,(Tt,Yt)=>Yt===lt?[Nr(et.children[lt],!1)]:[`${Yt}:${Nr(Tt,!1)}`]);return 1===Object.keys(et.children).length&&null!=et.children[lt]?`${kr(et)}/${He[0]}`:`${kr(et)}/(${He.join("//")})`}}function Gr(et){return encodeURIComponent(et).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qr(et){return Gr(et).replace(/%3B/gi,";")}function Wr(et){return Gr(et).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ur(et){return decodeURIComponent(et)}function Rr(et){return Ur(et.replace(/\+/g,"%20"))}function mo(et){return`${Wr(et.path)}${function Mr(et){return Object.keys(et).map(qe=>`;${Wr(qe)}=${Wr(et[qe])}`).join("")}(et.parameters)}`}const mi=/^[^\/()?;=#]+/;function ar(et){const qe=et.match(mi);return qe?qe[0]:""}const Xr=/^[^=?&#]+/,_o=/^[^&#]+/;class It{constructor(qe){this.url=qe,this.remaining=qe}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new nr([],{}):new nr([],this.parseChildren())}parseQueryParams(){const qe={};if(this.consumeOptional("?"))do{this.parseQueryParam(qe)}while(this.consumeOptional("&"));return qe}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const qe=[];for(this.peekStartsWith("(")||qe.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),qe.push(this.parseSegment());let He={};this.peekStartsWith("/(")&&(this.capture("/"),He=this.parseParens(!0));let Tt={};return this.peekStartsWith("(")&&(Tt=this.parseParens(!1)),(qe.length>0||Object.keys(He).length>0)&&(Tt[lt]=new nr(qe,He)),Tt}parseSegment(){const qe=ar(this.remaining);if(""===qe&&this.peekStartsWith(";"))throw new o.vHH(4009,En);return this.capture(qe),new xr(Ur(qe),this.parseMatrixParams())}parseMatrixParams(){const qe={};for(;this.consumeOptional(";");)this.parseParam(qe);return qe}parseParam(qe){const He=ar(this.remaining);if(!He)return;this.capture(He);let Tt="";if(this.consumeOptional("=")){const Yt=ar(this.remaining);Yt&&(Tt=Yt,this.capture(Tt))}qe[Ur(He)]=Ur(Tt)}parseQueryParam(qe){const He=function lo(et){const qe=et.match(Xr);return qe?qe[0]:""}(this.remaining);if(!He)return;this.capture(He);let Tt="";if(this.consumeOptional("=")){const zn=function bo(et){const qe=et.match(_o);return qe?qe[0]:""}(this.remaining);zn&&(Tt=zn,this.capture(Tt))}const Yt=Rr(He),kn=Rr(Tt);if(qe.hasOwnProperty(Yt)){let zn=qe[Yt];Array.isArray(zn)||(zn=[zn],qe[Yt]=zn),zn.push(kn)}else qe[Yt]=kn}parseParens(qe){const He={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const Tt=ar(this.remaining),Yt=this.remaining[Tt.length];if("/"!==Yt&&")"!==Yt&&";"!==Yt)throw new o.vHH(4010,En);let kn;Tt.indexOf(":")>-1?(kn=Tt.slice(0,Tt.indexOf(":")),this.capture(kn),this.capture(":")):qe&&(kn=lt);const zn=this.parseChildren();He[kn]=1===Object.keys(zn).length?zn[lt]:new nr([],zn),this.consumeOptional("//")}return He}peekStartsWith(qe){return this.remaining.startsWith(qe)}consumeOptional(qe){return!!this.peekStartsWith(qe)&&(this.remaining=this.remaining.substring(qe.length),!0)}capture(qe){if(!this.consumeOptional(qe))throw new o.vHH(4011,En)}}function en(et){return et.segments.length>0?new nr([],{[lt]:et}):et}function jn(et){const qe={};for(const Tt of Object.keys(et.children)){const kn=jn(et.children[Tt]);(kn.segments.length>0||kn.hasChildren())&&(qe[Tt]=kn)}return function vi(et){if(1===et.numberOfChildren&&et.children[lt]){const qe=et.children[lt];return new nr(et.segments.concat(qe.segments),qe.children)}return et}(new nr(et.segments,qe))}function _i(et){return et instanceof qi}function Li(et,qe,He,Tt,Yt){if(0===He.length)return Qt(qe.root,qe.root,qe.root,Tt,Yt);const kn=function Ct(et){if("string"==typeof et[0]&&1===et.length&&"/"===et[0])return new Ze(!0,0,et);let qe=0,He=!1;const Tt=et.reduce((Yt,kn,zn)=>{if("object"==typeof kn&&null!=kn){if(kn.outlets){const Ri={};return Oi(kn.outlets,(pr,to)=>{Ri[to]="string"==typeof pr?pr.split("/"):pr}),[...Yt,{outlets:Ri}]}if(kn.segmentPath)return[...Yt,kn.segmentPath]}return"string"!=typeof kn?[...Yt,kn]:0===zn?(kn.split("/").forEach((Ri,pr)=>{0==pr&&"."===Ri||(0==pr&&""===Ri?He=!0:".."===Ri?qe++:""!=Ri&&Yt.push(Ri))}),Yt):[...Yt,kn]},[]);return new Ze(He,qe,Tt)}(He);return kn.toRoot()?Qt(qe.root,qe.root,new nr([],{}),Tt,Yt):function zn(pr){const to=function wt(et,qe,He,Tt){if(et.isAbsolute)return new ft(qe.root,!0,0);if(-1===Tt)return new ft(He,He===qe.root,0);return function Xt(et,qe,He){let Tt=et,Yt=qe,kn=He;for(;kn>Yt;){if(kn-=Yt,Tt=Tt.parent,!Tt)throw new o.vHH(4005,!1);Yt=Tt.segments.length}return new ft(Tt,!1,Yt-kn)}(He,Tt+(sr(et.commands[0])?0:1),et.numberOfDoubleDots)}(kn,qe,et.snapshot?._urlSegment,pr),no=to.processChildren?ht(to.segmentGroup,to.index,kn.commands):Ke(to.segmentGroup,to.index,kn.commands);return Qt(qe.root,to.segmentGroup,no,Tt,Yt)}(et.snapshot?._lastPathIndex)}function sr(et){return"object"==typeof et&&null!=et&&!et.outlets&&!et.segmentPath}function gr(et){return"object"==typeof et&&null!=et&&et.outlets}function Qt(et,qe,He,Tt,Yt){let zn,kn={};Tt&&Oi(Tt,(pr,to)=>{kn[to]=Array.isArray(pr)?pr.map(no=>`${no}`):`${pr}`}),zn=et===qe?He:_n(et,qe,He);const Ri=en(jn(zn));return new qi(Ri,kn,Yt)}function _n(et,qe,He){const Tt={};return Oi(et.children,(Yt,kn)=>{Tt[kn]=Yt===qe?He:_n(Yt,qe,He)}),new nr(et.segments,Tt)}class Ze{constructor(qe,He,Tt){if(this.isAbsolute=qe,this.numberOfDoubleDots=He,this.commands=Tt,qe&&Tt.length>0&&sr(Tt[0]))throw new o.vHH(4003,!1);const Yt=Tt.find(gr);if(Yt&&Yt!==ki(Tt))throw new o.vHH(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ft{constructor(qe,He,Tt){this.segmentGroup=qe,this.processChildren=He,this.index=Tt}}function Ke(et,qe,He){if(et||(et=new nr([],{})),0===et.segments.length&&et.hasChildren())return ht(et,qe,He);const Tt=function on(et,qe,He){let Tt=0,Yt=qe;const kn={match:!1,pathIndex:0,commandIndex:0};for(;Yt<et.segments.length;){if(Tt>=He.length)return kn;const zn=et.segments[Yt],Ri=He[Tt];if(gr(Ri))break;const pr=`${Ri}`,to=Tt<He.length-1?He[Tt+1]:null;if(Yt>0&&void 0===pr)break;if(pr&&to&&"object"==typeof to&&void 0===to.outlets){if(!$n(pr,to,zn))return kn;Tt+=2}else{if(!$n(pr,{},zn))return kn;Tt++}Yt++}return{match:!0,pathIndex:Yt,commandIndex:Tt}}(et,qe,He),Yt=He.slice(Tt.commandIndex);if(Tt.match&&Tt.pathIndex<et.segments.length){const kn=new nr(et.segments.slice(0,Tt.pathIndex),{});return kn.children[lt]=new nr(et.segments.slice(Tt.pathIndex),et.children),ht(kn,0,Yt)}return Tt.match&&0===Yt.length?new nr(et.segments,{}):Tt.match&&!et.hasChildren()?hn(et,qe,He):Tt.match?ht(et,0,Yt):hn(et,qe,He)}function ht(et,qe,He){if(0===He.length)return new nr(et.segments,{});{const Tt=function fn(et){return gr(et[0])?et[0].outlets:{[lt]:et}}(He),Yt={};return!Tt[lt]&&et.children[lt]&&1===et.numberOfChildren&&0===et.children[lt].segments.length?ht(et.children[lt],qe,He):(Oi(Tt,(kn,zn)=>{"string"==typeof kn&&(kn=[kn]),null!==kn&&(Yt[zn]=Ke(et.children[zn],qe,kn))}),Oi(et.children,(kn,zn)=>{void 0===Tt[zn]&&(Yt[zn]=kn)}),new nr(et.segments,Yt))}}function hn(et,qe,He){const Tt=et.segments.slice(0,qe);let Yt=0;for(;Yt<He.length;){const kn=He[Yt];if(gr(kn)){const pr=an(kn.outlets);return new nr(Tt,pr)}if(0===Yt&&sr(He[0])){Tt.push(new xr(et.segments[qe].path,Nn(He[0]))),Yt++;continue}const zn=gr(kn)?kn.outlets[lt]:`${kn}`,Ri=Yt<He.length-1?He[Yt+1]:null;zn&&Ri&&sr(Ri)?(Tt.push(new xr(zn,Nn(Ri))),Yt+=2):(Tt.push(new xr(zn,{})),Yt++)}return new nr(Tt,{})}function an(et){const qe={};return Oi(et,(He,Tt)=>{"string"==typeof He&&(He=[He]),null!==He&&(qe[Tt]=hn(new nr([],{}),0,He))}),qe}function Nn(et){const qe={};return Oi(et,(He,Tt)=>qe[Tt]=`${He}`),qe}function $n(et,qe,He){return et==He.path&&xn(qe,He.parameters)}const ot="imperative";class Bt{constructor(qe,He){this.id=qe,this.url=He}}class nn extends Bt{constructor(qe,He,Tt="imperative",Yt=null){super(qe,He),this.type=0,this.navigationTrigger=Tt,this.restoredState=Yt}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class On extends Bt{constructor(qe,He,Tt){super(qe,He),this.urlAfterRedirects=Tt,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class nt extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.reason=Tt,this.code=Yt,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Rt extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.reason=Tt,this.code=Yt,this.type=16}}class pt extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.error=Tt,this.target=Yt,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class jt extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.urlAfterRedirects=Tt,this.state=Yt,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Un extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.urlAfterRedirects=Tt,this.state=Yt,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oi extends Bt{constructor(qe,He,Tt,Yt,kn){super(qe,He),this.urlAfterRedirects=Tt,this.state=Yt,this.shouldActivate=kn,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class xi extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.urlAfterRedirects=Tt,this.state=Yt,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ai extends Bt{constructor(qe,He,Tt,Yt){super(qe,He),this.urlAfterRedirects=Tt,this.state=Yt,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ui{constructor(qe){this.route=qe,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ji{constructor(qe){this.route=qe,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Qi{constructor(qe){this.snapshot=qe,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tr{constructor(qe){this.snapshot=qe,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class br{constructor(qe){this.snapshot=qe,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class oo{constructor(qe){this.snapshot=qe,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ro{constructor(qe,He,Tt){this.routerEvent=qe,this.position=He,this.anchor=Tt,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}let $o=(()=>{class et{createUrlTree(He,Tt,Yt,kn,zn,Ri){return Li(He||Tt.root,Yt,kn,zn,Ri)}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac}),et})(),ra=(()=>{class et{}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:function(qe){return $o.\u0275fac(qe)},providedIn:"root"}),et})();class wo{constructor(qe){this._root=qe}get root(){return this._root.value}parent(qe){const He=this.pathFromRoot(qe);return He.length>1?He[He.length-2]:null}children(qe){const He=Uo(qe,this._root);return He?He.children.map(Tt=>Tt.value):[]}firstChild(qe){const He=Uo(qe,this._root);return He&&He.children.length>0?He.children[0].value:null}siblings(qe){const He=Ao(qe,this._root);return He.length<2?[]:He[He.length-2].children.map(Yt=>Yt.value).filter(Yt=>Yt!==qe)}pathFromRoot(qe){return Ao(qe,this._root).map(He=>He.value)}}function Uo(et,qe){if(et===qe.value)return qe;for(const He of qe.children){const Tt=Uo(et,He);if(Tt)return Tt}return null}function Ao(et,qe){if(et===qe.value)return[qe];for(const He of qe.children){const Tt=Ao(et,He);if(Tt.length)return Tt.unshift(qe),Tt}return[]}class Da{constructor(qe,He){this.value=qe,this.children=He}toString(){return`TreeNode(${this.value})`}}function io(et){const qe={};return et&&et.children.forEach(He=>qe[He.value.outlet]=He),qe}class jo extends wo{constructor(qe,He){super(qe),this.snapshot=He,qo(this,qe)}toString(){return this.snapshot.toString()}}function ga(et,qe){const He=function $a(et,qe){const zn=new fa([],{},{},"",{},lt,qe,null,et.root,-1,{});return new Ia("",new Da(zn,[]))}(et,qe),Tt=new a([new xr("",{})]),Yt=new a({}),kn=new a({}),zn=new a({}),Ri=new a(""),pr=new oa(Tt,Yt,zn,Ri,kn,lt,qe,He.root);return pr.snapshot=He.root,new jo(new Da(pr,[]),He)}class oa{constructor(qe,He,Tt,Yt,kn,zn,Ri,pr){this.url=qe,this.params=He,this.queryParams=Tt,this.fragment=Yt,this.data=kn,this.outlet=zn,this.component=Ri,this.title=this.data?.pipe((0,j.U)(to=>to[dt]))??(0,I.of)(void 0),this._futureSnapshot=pr}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe((0,j.U)(qe=>Lt(qe)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,j.U)(qe=>Lt(qe)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ds(et,qe="emptyOnly"){const He=et.pathFromRoot;let Tt=0;if("always"!==qe)for(Tt=He.length-1;Tt>=1;){const Yt=He[Tt],kn=He[Tt-1];if(Yt.routeConfig&&""===Yt.routeConfig.path)Tt--;else{if(kn.component)break;Tt--}}return function Xo(et){return et.reduce((qe,He)=>({params:{...qe.params,...He.params},data:{...qe.data,...He.data},resolve:{...He.data,...qe.resolve,...He.routeConfig?.data,...He._resolvedData}}),{params:{},data:{},resolve:{}})}(He.slice(Tt))}class fa{get title(){return this.data?.[dt]}constructor(qe,He,Tt,Yt,kn,zn,Ri,pr,to,no,ua){this.url=qe,this.params=He,this.queryParams=Tt,this.fragment=Yt,this.data=kn,this.outlet=zn,this.component=Ri,this.routeConfig=pr,this._urlSegment=to,this._lastPathIndex=no,this._resolve=ua}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Lt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(Tt=>Tt.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ia extends wo{constructor(qe,He){super(He),this.url=qe,qo(this,He)}toString(){return Ba(this._root)}}function qo(et,qe){qe.value._routerState=et,qe.children.forEach(He=>qo(et,He))}function Ba(et){const qe=et.children.length>0?` { ${et.children.map(Ba).join(", ")} } `:"";return`${et.value}${qe}`}function Jo(et){if(et.snapshot){const qe=et.snapshot,He=et._futureSnapshot;et.snapshot=He,xn(qe.queryParams,He.queryParams)||et.queryParams.next(He.queryParams),qe.fragment!==He.fragment&&et.fragment.next(He.fragment),xn(qe.params,He.params)||et.params.next(He.params),function mn(et,qe){if(et.length!==qe.length)return!1;for(let He=0;He<et.length;++He)if(!xn(et[He],qe[He]))return!1;return!0}(qe.url,He.url)||et.url.next(He.url),xn(qe.data,He.data)||et.data.next(He.data)}else et.snapshot=et._futureSnapshot,et.data.next(et._futureSnapshot.data)}function aa(et,qe){const He=xn(et.params,qe.params)&&function vn(et,qe){return Pn(et,qe)&&et.every((He,Tt)=>xn(He.parameters,qe[Tt].parameters))}(et.url,qe.url);return He&&!(!et.parent!=!qe.parent)&&(!et.parent||aa(et.parent,qe.parent))}function xa(et,qe,He){if(He&&et.shouldReuseRoute(qe.value,He.value.snapshot)){const Tt=He.value;Tt._futureSnapshot=qe.value;const Yt=function ma(et,qe,He){return qe.children.map(Tt=>{for(const Yt of He.children)if(et.shouldReuseRoute(Tt.value,Yt.value.snapshot))return xa(et,Tt,Yt);return xa(et,Tt)})}(et,qe,He);return new Da(Tt,Yt)}{if(et.shouldAttach(qe.value)){const kn=et.retrieve(qe.value);if(null!==kn){const zn=kn.route;return zn.value._futureSnapshot=qe.value,zn.children=qe.children.map(Ri=>xa(et,Ri)),zn}}const Tt=function Qo(et){return new oa(new a(et.url),new a(et.params),new a(et.queryParams),new a(et.fragment),new a(et.data),et.outlet,et.component,et)}(qe.value),Yt=qe.children.map(kn=>xa(et,kn));return new Da(Tt,Yt)}}const Aa="ngNavigationCancelingError";function ba(et,qe){const{redirectTo:He,navigationBehaviorOptions:Tt}=_i(qe)?{redirectTo:qe,navigationBehaviorOptions:void 0}:qe,Yt=wa(!1,0,qe);return Yt.url=He,Yt.navigationBehaviorOptions=Tt,Yt}function wa(et,qe,He){const Tt=new Error("NavigationCancelingError: "+(et||""));return Tt[Aa]=!0,Tt.cancellationCode=qe,He&&(Tt.url=He),Tt}function _a(et){return Jt(et)&&_i(et.url)}function Jt(et){return et&&et[Aa]}class Ut{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new At,this.attachRef=null}}let At=(()=>{class et{constructor(){this.contexts=new Map}onChildOutletCreated(He,Tt){const Yt=this.getOrCreateContext(He);Yt.outlet=Tt,this.contexts.set(He,Yt)}onChildOutletDestroyed(He){const Tt=this.getContext(He);Tt&&(Tt.outlet=null,Tt.attachRef=null)}onOutletDeactivated(){const He=this.contexts;return this.contexts=new Map,He}onOutletReAttached(He){this.contexts=He}getOrCreateContext(He){let Tt=this.getContext(He);return Tt||(Tt=new Ut,this.contexts.set(He,Tt)),Tt}getContext(He){return this.contexts.get(He)||null}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();const An=!1;let Ni=(()=>{class et{constructor(){this.activated=null,this._activatedRoute=null,this.name=lt,this.activateEvents=new o.vpe,this.deactivateEvents=new o.vpe,this.attachEvents=new o.vpe,this.detachEvents=new o.vpe,this.parentContexts=(0,o.f3M)(At),this.location=(0,o.f3M)(o.s_b),this.changeDetector=(0,o.f3M)(o.sBO),this.environmentInjector=(0,o.f3M)(o.lqb)}ngOnChanges(He){if(He.name){const{firstChange:Tt,previousValue:Yt}=He.name;if(Tt)return;this.isTrackedInParentContexts(Yt)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(Yt)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(He){return this.parentContexts.getContext(He)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const He=this.parentContexts.getContext(this.name);He?.route&&(He.attachRef?this.attach(He.attachRef,He.route):this.activateWith(He.route,He.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.vHH(4012,An);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.vHH(4012,An);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.vHH(4012,An);this.location.detach();const He=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(He.instance),He}attach(He,Tt){this.activated=He,this._activatedRoute=Tt,this.location.insert(He.hostView),this.attachEvents.emit(He.instance)}deactivate(){if(this.activated){const He=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(He)}}activateWith(He,Tt){if(this.isActivated)throw new o.vHH(4013,An);this._activatedRoute=He;const Yt=this.location,zn=He.snapshot.component,Ri=this.parentContexts.getOrCreateContext(this.name).children,pr=new jr(He,Ri,Yt.injector);if(Tt&&function Eo(et){return!!et.resolveComponentFactory}(Tt)){const to=Tt.resolveComponentFactory(zn);this.activated=Yt.createComponent(to,Yt.length,pr)}else this.activated=Yt.createComponent(zn,{index:Yt.length,injector:pr,environmentInjector:Tt??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275dir=o.lG2({type:et,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[o.TTD]}),et})();class jr{constructor(qe,He,Tt){this.route=qe,this.childContexts=He,this.parent=Tt}get(qe,He){return qe===oa?this.route:qe===At?this.childContexts:this.parent.get(qe,He)}}let _t=(()=>{class et{}return et.\u0275fac=function(He){return new(He||et)},et.\u0275cmp=o.Xpm({type:et,selectors:[["ng-component"]],standalone:!0,features:[o.jDz],decls:1,vars:0,template:function(He,Tt){1&He&&o._UZ(0,"router-outlet")},dependencies:[Ni],encapsulation:2}),et})();function it(et,qe){return et.providers&&!et._injector&&(et._injector=(0,o.MMx)(et.providers,qe,`Route: ${et.path}`)),et._injector??qe}function yi(et){const qe=et.children&&et.children.map(yi),He=qe?{...et,children:qe}:{...et};return!He.component&&!He.loadComponent&&(qe||He.loadChildren)&&He.outlet&&He.outlet!==lt&&(He.component=_t),He}function Ei(et){return et.outlet||lt}function bi(et,qe){const He=et.filter(Tt=>Ei(Tt)===qe);return He.push(...et.filter(Tt=>Ei(Tt)!==qe)),He}function Xi(et){if(!et)return null;if(et.routeConfig?._injector)return et.routeConfig._injector;for(let qe=et.parent;qe;qe=qe.parent){const He=qe.routeConfig;if(He?._loadedInjector)return He._loadedInjector;if(He?._injector)return He._injector}return null}class lr{constructor(qe,He,Tt,Yt){this.routeReuseStrategy=qe,this.futureState=He,this.currState=Tt,this.forwardEvent=Yt}activate(qe){const He=this.futureState._root,Tt=this.currState?this.currState._root:null;this.deactivateChildRoutes(He,Tt,qe),Jo(this.futureState.root),this.activateChildRoutes(He,Tt,qe)}deactivateChildRoutes(qe,He,Tt){const Yt=io(He);qe.children.forEach(kn=>{const zn=kn.value.outlet;this.deactivateRoutes(kn,Yt[zn],Tt),delete Yt[zn]}),Oi(Yt,(kn,zn)=>{this.deactivateRouteAndItsChildren(kn,Tt)})}deactivateRoutes(qe,He,Tt){const Yt=qe.value,kn=He?He.value:null;if(Yt===kn)if(Yt.component){const zn=Tt.getContext(Yt.outlet);zn&&this.deactivateChildRoutes(qe,He,zn.children)}else this.deactivateChildRoutes(qe,He,Tt);else kn&&this.deactivateRouteAndItsChildren(He,Tt)}deactivateRouteAndItsChildren(qe,He){qe.value.component&&this.routeReuseStrategy.shouldDetach(qe.value.snapshot)?this.detachAndStoreRouteSubtree(qe,He):this.deactivateRouteAndOutlet(qe,He)}detachAndStoreRouteSubtree(qe,He){const Tt=He.getContext(qe.value.outlet),Yt=Tt&&qe.value.component?Tt.children:He,kn=io(qe);for(const zn of Object.keys(kn))this.deactivateRouteAndItsChildren(kn[zn],Yt);if(Tt&&Tt.outlet){const zn=Tt.outlet.detach(),Ri=Tt.children.onOutletDeactivated();this.routeReuseStrategy.store(qe.value.snapshot,{componentRef:zn,route:qe,contexts:Ri})}}deactivateRouteAndOutlet(qe,He){const Tt=He.getContext(qe.value.outlet),Yt=Tt&&qe.value.component?Tt.children:He,kn=io(qe);for(const zn of Object.keys(kn))this.deactivateRouteAndItsChildren(kn[zn],Yt);Tt&&Tt.outlet&&(Tt.outlet.deactivate(),Tt.children.onOutletDeactivated(),Tt.attachRef=null,Tt.resolver=null,Tt.route=null)}activateChildRoutes(qe,He,Tt){const Yt=io(He);qe.children.forEach(kn=>{this.activateRoutes(kn,Yt[kn.value.outlet],Tt),this.forwardEvent(new oo(kn.value.snapshot))}),qe.children.length&&this.forwardEvent(new Tr(qe.value.snapshot))}activateRoutes(qe,He,Tt){const Yt=qe.value,kn=He?He.value:null;if(Jo(Yt),Yt===kn)if(Yt.component){const zn=Tt.getOrCreateContext(Yt.outlet);this.activateChildRoutes(qe,He,zn.children)}else this.activateChildRoutes(qe,He,Tt);else if(Yt.component){const zn=Tt.getOrCreateContext(Yt.outlet);if(this.routeReuseStrategy.shouldAttach(Yt.snapshot)){const Ri=this.routeReuseStrategy.retrieve(Yt.snapshot);this.routeReuseStrategy.store(Yt.snapshot,null),zn.children.onOutletReAttached(Ri.contexts),zn.attachRef=Ri.componentRef,zn.route=Ri.route.value,zn.outlet&&zn.outlet.attach(Ri.componentRef,Ri.route.value),Jo(Ri.route.value),this.activateChildRoutes(qe,null,zn.children)}else{const Ri=Xi(Yt.snapshot),pr=Ri?.get(o._Vd)??null;zn.attachRef=null,zn.route=Yt,zn.resolver=pr,zn.injector=Ri,zn.outlet&&zn.outlet.activateWith(Yt,zn.injector),this.activateChildRoutes(qe,null,zn.children)}}else this.activateChildRoutes(qe,null,Tt)}}class yr{constructor(qe){this.path=qe,this.route=this.path[this.path.length-1]}}class $i{constructor(qe,He){this.component=qe,this.route=He}}function ir(et,qe,He){const Tt=et._root;return Or(Tt,qe?qe._root:null,He,[Tt.value])}function Hr(et,qe){const He=Symbol(),Tt=qe.get(et,He);return Tt===He?"function"!=typeof et||(0,o.Z0I)(et)?qe.get(et):et:Tt}function Or(et,qe,He,Tt,Yt={canDeactivateChecks:[],canActivateChecks:[]}){const kn=io(qe);return et.children.forEach(zn=>{(function Pr(et,qe,He,Tt,Yt={canDeactivateChecks:[],canActivateChecks:[]}){const kn=et.value,zn=qe?qe.value:null,Ri=He?He.getContext(et.value.outlet):null;if(zn&&kn.routeConfig===zn.routeConfig){const pr=function Ar(et,qe,He){if("function"==typeof He)return He(et,qe);switch(He){case"pathParamsChange":return!Pn(et.url,qe.url);case"pathParamsOrQueryParamsChange":return!Pn(et.url,qe.url)||!xn(et.queryParams,qe.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!aa(et,qe)||!xn(et.queryParams,qe.queryParams);default:return!aa(et,qe)}}(zn,kn,kn.routeConfig.runGuardsAndResolvers);pr?Yt.canActivateChecks.push(new yr(Tt)):(kn.data=zn.data,kn._resolvedData=zn._resolvedData),Or(et,qe,kn.component?Ri?Ri.children:null:He,Tt,Yt),pr&&Ri&&Ri.outlet&&Ri.outlet.isActivated&&Yt.canDeactivateChecks.push(new $i(Ri.outlet.component,zn))}else zn&&qr(qe,Ri,Yt),Yt.canActivateChecks.push(new yr(Tt)),Or(et,null,kn.component?Ri?Ri.children:null:He,Tt,Yt)})(zn,kn[zn.value.outlet],He,Tt.concat([zn.value]),Yt),delete kn[zn.value.outlet]}),Oi(kn,(zn,Ri)=>qr(zn,He.getContext(Ri),Yt)),Yt}function qr(et,qe,He){const Tt=io(et),Yt=et.value;Oi(Tt,(kn,zn)=>{qr(kn,Yt.component?qe?qe.children.getContext(zn):null:qe,He)}),He.canDeactivateChecks.push(new $i(Yt.component&&qe&&qe.outlet&&qe.outlet.isActivated?qe.outlet.component:null,Yt))}function eo(et){return"function"==typeof et}function Jr(et){return et instanceof s||"EmptyError"===et?.name}const Er=Symbol("INITIAL_VALUE");function go(){return G(et=>w(et.map(qe=>qe.pipe((0,X.q)(1),function M(...et){const qe=et[et.length-1];return(0,l.K)(qe)?(et.pop(),He=>B(et,He,qe)):He=>B(et,He)}(Er)))).pipe((0,j.U)(qe=>{for(const He of qe)if(!0!==He){if(He===Er)return Er;if(!1===He||He instanceof qi)return He}return!0}),(0,oe.h)(qe=>qe!==Er),(0,X.q)(1)))}function Bn(et){return(0,V.z)(te(qe=>{if(_i(qe))throw ba(0,qe)}),(0,j.U)(qe=>!0===qe))}const at={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ct(et,qe,He,Tt,Yt){const kn=Et(et,qe,He);return kn.matched?function ui(et,qe,He,Tt){const Yt=qe.canMatch;if(!Yt||0===Yt.length)return(0,I.of)(!0);const kn=Yt.map(zn=>{const Ri=Hr(zn,et);return Hn(function Di(et){return et&&eo(et.canMatch)}(Ri)?Ri.canMatch(qe,He):et.runInContext(()=>Ri(qe,He)))});return(0,I.of)(kn).pipe(go(),Bn())}(Tt=it(qe,Tt),qe,He).pipe((0,j.U)(zn=>!0===zn?kn:{...at})):(0,I.of)(kn)}function Et(et,qe,He){if(""===qe.path)return"full"===qe.pathMatch&&(et.hasChildren()||He.length>0)?{...at}:{matched:!0,consumedSegments:[],remainingSegments:He,parameters:{},positionalParamSegments:{}};const Yt=(qe.matcher||bn)(He,et,qe);if(!Yt)return{...at};const kn={};Oi(Yt.posParams,(Ri,pr)=>{kn[pr]=Ri.path});const zn=Yt.consumed.length>0?{...kn,...Yt.consumed[Yt.consumed.length-1].parameters}:kn;return{matched:!0,consumedSegments:Yt.consumed,remainingSegments:He.slice(Yt.consumed.length),parameters:zn,positionalParamSegments:Yt.posParams??{}}}function Ln(et,qe,He,Tt){if(He.length>0&&function Vi(et,qe,He){return He.some(Tt=>vr(et,qe,Tt)&&Ei(Tt)!==lt)}(et,He,Tt)){const kn=new nr(qe,function Ii(et,qe,He,Tt){const Yt={};Yt[lt]=Tt,Tt._sourceSegment=et,Tt._segmentIndexShift=qe.length;for(const kn of He)if(""===kn.path&&Ei(kn)!==lt){const zn=new nr([],{});zn._sourceSegment=et,zn._segmentIndexShift=qe.length,Yt[Ei(kn)]=zn}return Yt}(et,qe,Tt,new nr(He,et.children)));return kn._sourceSegment=et,kn._segmentIndexShift=qe.length,{segmentGroup:kn,slicedSegments:[]}}if(0===He.length&&function rr(et,qe,He){return He.some(Tt=>vr(et,qe,Tt))}(et,He,Tt)){const kn=new nr(et.segments,function si(et,qe,He,Tt,Yt){const kn={};for(const zn of Tt)if(vr(et,He,zn)&&!Yt[Ei(zn)]){const Ri=new nr([],{});Ri._sourceSegment=et,Ri._segmentIndexShift=qe.length,kn[Ei(zn)]=Ri}return{...Yt,...kn}}(et,qe,He,Tt,et.children));return kn._sourceSegment=et,kn._segmentIndexShift=qe.length,{segmentGroup:kn,slicedSegments:He}}const Yt=new nr(et.segments,et.children);return Yt._sourceSegment=et,Yt._segmentIndexShift=qe.length,{segmentGroup:Yt,slicedSegments:He}}function vr(et,qe,He){return(!(et.hasChildren()||qe.length>0)||"full"!==He.pathMatch)&&""===He.path}function Zr(et,qe,He,Tt){return!!(Ei(et)===Tt||Tt!==lt&&vr(qe,He,et))&&("**"===et.path||Et(qe,et,He).matched)}function so(et,qe,He){return 0===qe.length&&!et.children[He]}const vo=!1;class Ho{constructor(qe){this.segmentGroup=qe||null}}class Ko{constructor(qe){this.urlTree=qe}}function Ro(et){return U(new Ho(et))}function ea(et){return U(new Ko(et))}class ya{constructor(qe,He,Tt,Yt,kn){this.injector=qe,this.configLoader=He,this.urlSerializer=Tt,this.urlTree=Yt,this.config=kn,this.allowRedirects=!0}apply(){const qe=Ln(this.urlTree.root,[],[],this.config).segmentGroup,He=new nr(qe.segments,qe.children);return this.expandSegmentGroup(this.injector,this.config,He,lt).pipe((0,j.U)(kn=>this.createUrlTree(jn(kn),this.urlTree.queryParams,this.urlTree.fragment))).pipe(be(kn=>{if(kn instanceof Ko)return this.allowRedirects=!1,this.match(kn.urlTree);throw kn instanceof Ho?this.noMatchError(kn):kn}))}match(qe){return this.expandSegmentGroup(this.injector,this.config,qe.root,lt).pipe((0,j.U)(Yt=>this.createUrlTree(jn(Yt),qe.queryParams,qe.fragment))).pipe(be(Yt=>{throw Yt instanceof Ho?this.noMatchError(Yt):Yt}))}noMatchError(qe){return new o.vHH(4002,vo)}createUrlTree(qe,He,Tt){const Yt=en(qe);return new qi(Yt,He,Tt)}expandSegmentGroup(qe,He,Tt,Yt){return 0===Tt.segments.length&&Tt.hasChildren()?this.expandChildren(qe,He,Tt).pipe((0,j.U)(kn=>new nr([],kn))):this.expandSegment(qe,Tt,He,Tt.segments,Yt,!0)}expandChildren(qe,He,Tt){const Yt=[];for(const kn of Object.keys(Tt.children))"primary"===kn?Yt.unshift(kn):Yt.push(kn);return(0,c.D)(Yt).pipe((0,pe.b)(kn=>{const zn=Tt.children[kn],Ri=bi(He,kn);return this.expandSegmentGroup(qe,Ri,zn,kn).pipe((0,j.U)(pr=>({segment:pr,outlet:kn})))}),mt((kn,zn)=>(kn[zn.outlet]=zn.segment,kn),{}),ge())}expandSegment(qe,He,Tt,Yt,kn,zn){return(0,c.D)(Tt).pipe((0,pe.b)(Ri=>this.expandSegmentAgainstRoute(qe,He,Tt,Ri,Yt,kn,zn).pipe(be(to=>{if(to instanceof Ho)return(0,I.of)(null);throw to}))),le(Ri=>!!Ri),be((Ri,pr)=>{if(Jr(Ri))return so(He,Yt,kn)?(0,I.of)(new nr([],{})):Ro(He);throw Ri}))}expandSegmentAgainstRoute(qe,He,Tt,Yt,kn,zn,Ri){return Zr(Yt,He,kn,zn)?void 0===Yt.redirectTo?this.matchSegmentAgainstRoute(qe,He,Yt,kn,zn):Ri&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(qe,He,Tt,Yt,kn,zn):Ro(He):Ro(He)}expandSegmentAgainstRouteUsingRedirect(qe,He,Tt,Yt,kn,zn){return"**"===Yt.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(qe,Tt,Yt,zn):this.expandRegularSegmentAgainstRouteUsingRedirect(qe,He,Tt,Yt,kn,zn)}expandWildCardWithParamsAgainstRouteUsingRedirect(qe,He,Tt,Yt){const kn=this.applyRedirectCommands([],Tt.redirectTo,{});return Tt.redirectTo.startsWith("/")?ea(kn):this.lineralizeSegments(Tt,kn).pipe((0,fe.zg)(zn=>{const Ri=new nr(zn,{});return this.expandSegment(qe,Ri,He,zn,Yt,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(qe,He,Tt,Yt,kn,zn){const{matched:Ri,consumedSegments:pr,remainingSegments:to,positionalParamSegments:no}=Et(He,Yt,kn);if(!Ri)return Ro(He);const ua=this.applyRedirectCommands(pr,Yt.redirectTo,no);return Yt.redirectTo.startsWith("/")?ea(ua):this.lineralizeSegments(Yt,ua).pipe((0,fe.zg)(ka=>this.expandSegment(qe,He,Tt,ka.concat(to),zn,!1)))}matchSegmentAgainstRoute(qe,He,Tt,Yt,kn){return"**"===Tt.path?(qe=it(Tt,qe),Tt.loadChildren?(Tt._loadedRoutes?(0,I.of)({routes:Tt._loadedRoutes,injector:Tt._loadedInjector}):this.configLoader.loadChildren(qe,Tt)).pipe((0,j.U)(Ri=>(Tt._loadedRoutes=Ri.routes,Tt._loadedInjector=Ri.injector,new nr(Yt,{})))):(0,I.of)(new nr(Yt,{}))):ct(He,Tt,Yt,qe).pipe(G(({matched:zn,consumedSegments:Ri,remainingSegments:pr})=>zn?this.getChildConfig(qe=Tt._injector??qe,Tt,Yt).pipe((0,fe.zg)(no=>{const ua=no.injector??qe,ka=no.routes,{segmentGroup:Ps,slicedSegments:Gs}=Ln(He,Ri,pr,ka),Pl=new nr(Ps.segments,Ps.children);if(0===Gs.length&&Pl.hasChildren())return this.expandChildren(ua,ka,Pl).pipe((0,j.U)(Jp=>new nr(Ri,Jp)));if(0===ka.length&&0===Gs.length)return(0,I.of)(new nr(Ri,{}));const ks=Ei(Tt)===kn;return this.expandSegment(ua,Pl,ka,Gs,ks?lt:kn,!0).pipe((0,j.U)(ku=>new nr(Ri.concat(ku.segments),ku.children)))})):Ro(He)))}getChildConfig(qe,He,Tt){return He.children?(0,I.of)({routes:He.children,injector:qe}):He.loadChildren?void 0!==He._loadedRoutes?(0,I.of)({routes:He._loadedRoutes,injector:He._loadedInjector}):function Ht(et,qe,He,Tt){const Yt=qe.canLoad;if(void 0===Yt||0===Yt.length)return(0,I.of)(!0);const kn=Yt.map(zn=>{const Ri=Hr(zn,et);return Hn(function Zt(et){return et&&eo(et.canLoad)}(Ri)?Ri.canLoad(qe,He):et.runInContext(()=>Ri(qe,He)))});return(0,I.of)(kn).pipe(go(),Bn())}(qe,He,Tt).pipe((0,fe.zg)(Yt=>Yt?this.configLoader.loadChildren(qe,He).pipe(te(kn=>{He._loadedRoutes=kn.routes,He._loadedInjector=kn.injector})):function va(et){return U(wa(vo,3))}())):(0,I.of)({routes:[],injector:qe})}lineralizeSegments(qe,He){let Tt=[],Yt=He.root;for(;;){if(Tt=Tt.concat(Yt.segments),0===Yt.numberOfChildren)return(0,I.of)(Tt);if(Yt.numberOfChildren>1||!Yt.children[lt])return U(new o.vHH(4e3,vo));Yt=Yt.children[lt]}}applyRedirectCommands(qe,He,Tt){return this.applyRedirectCreateUrlTree(He,this.urlSerializer.parse(He),qe,Tt)}applyRedirectCreateUrlTree(qe,He,Tt,Yt){const kn=this.createSegmentGroup(qe,He.root,Tt,Yt);return new qi(kn,this.createQueryParams(He.queryParams,this.urlTree.queryParams),He.fragment)}createQueryParams(qe,He){const Tt={};return Oi(qe,(Yt,kn)=>{if("string"==typeof Yt&&Yt.startsWith(":")){const Ri=Yt.substring(1);Tt[kn]=He[Ri]}else Tt[kn]=Yt}),Tt}createSegmentGroup(qe,He,Tt,Yt){const kn=this.createSegments(qe,He.segments,Tt,Yt);let zn={};return Oi(He.children,(Ri,pr)=>{zn[pr]=this.createSegmentGroup(qe,Ri,Tt,Yt)}),new nr(kn,zn)}createSegments(qe,He,Tt,Yt){return He.map(kn=>kn.path.startsWith(":")?this.findPosParam(qe,kn,Yt):this.findOrReturn(kn,Tt))}findPosParam(qe,He,Tt){const Yt=Tt[He.path.substring(1)];if(!Yt)throw new o.vHH(4001,vo);return Yt}findOrReturn(qe,He){let Tt=0;for(const Yt of He){if(Yt.path===qe.path)return He.splice(Tt),Yt;Tt++}return qe}}class Ph{}class wu{constructor(qe,He,Tt,Yt,kn,zn,Ri){this.injector=qe,this.rootComponentType=He,this.config=Tt,this.urlTree=Yt,this.url=kn,this.paramsInheritanceStrategy=zn,this.urlSerializer=Ri}recognize(){const qe=Ln(this.urlTree.root,[],[],this.config.filter(He=>void 0===He.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,qe,lt).pipe((0,j.U)(He=>{if(null===He)return null;const Tt=new fa([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},lt,this.rootComponentType,null,this.urlTree.root,-1,{}),Yt=new Da(Tt,He),kn=new Ia(this.url,Yt);return this.inheritParamsAndData(kn._root),kn}))}inheritParamsAndData(qe){const He=qe.value,Tt=ds(He,this.paramsInheritanceStrategy);He.params=Object.freeze(Tt.params),He.data=Object.freeze(Tt.data),qe.children.forEach(Yt=>this.inheritParamsAndData(Yt))}processSegmentGroup(qe,He,Tt,Yt){return 0===Tt.segments.length&&Tt.hasChildren()?this.processChildren(qe,He,Tt):this.processSegment(qe,He,Tt,Tt.segments,Yt)}processChildren(qe,He,Tt){return(0,c.D)(Object.keys(Tt.children)).pipe((0,pe.b)(Yt=>{const kn=Tt.children[Yt],zn=bi(He,Yt);return this.processSegmentGroup(qe,zn,kn,Yt)}),mt((Yt,kn)=>Yt&&kn?(Yt.push(...kn),Yt):null),function Ce(et,qe=!1){return He=>He.lift(new De(et,qe))}(Yt=>null!==Yt),Te(null),ge(),(0,j.U)(Yt=>{if(null===Yt)return null;const kn=nd(Yt);return function Bd(et){et.sort((qe,He)=>qe.value.outlet===lt?-1:He.value.outlet===lt?1:qe.value.outlet.localeCompare(He.value.outlet))}(kn),kn}))}processSegment(qe,He,Tt,Yt,kn){return(0,c.D)(He).pipe((0,pe.b)(zn=>this.processSegmentAgainstRoute(zn._injector??qe,zn,Tt,Yt,kn)),le(zn=>!!zn),be(zn=>{if(Jr(zn))return so(Tt,Yt,kn)?(0,I.of)([]):(0,I.of)(null);throw zn}))}processSegmentAgainstRoute(qe,He,Tt,Yt,kn){if(He.redirectTo||!Zr(He,Tt,Yt,kn))return(0,I.of)(null);let zn;if("**"===He.path){const Ri=Yt.length>0?ki(Yt).parameters:{},pr=Us(Tt)+Yt.length,to=new fa(Yt,Ri,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Su(He),Ei(He),He.component??He._loadedComponent??null,He,Cc(Tt),pr,Ou(He));zn=(0,I.of)({snapshot:to,consumedSegments:[],remainingSegments:[]})}else zn=ct(Tt,He,Yt,qe).pipe((0,j.U)(({matched:Ri,consumedSegments:pr,remainingSegments:to,parameters:no})=>{if(!Ri)return null;const ua=Us(Tt)+pr.length;return{snapshot:new fa(pr,no,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Su(He),Ei(He),He.component??He._loadedComponent??null,He,Cc(Tt),ua,Ou(He)),consumedSegments:pr,remainingSegments:to}}));return zn.pipe(G(Ri=>{if(null===Ri)return(0,I.of)(null);const{snapshot:pr,consumedSegments:to,remainingSegments:no}=Ri;qe=He._injector??qe;const ua=He._loadedInjector??qe,ka=function Eu(et){return et.children?et.children:et.loadChildren?et._loadedRoutes:[]}(He),{segmentGroup:Ps,slicedSegments:Gs}=Ln(Tt,to,no,ka.filter(ks=>void 0===ks.redirectTo));if(0===Gs.length&&Ps.hasChildren())return this.processChildren(ua,ka,Ps).pipe((0,j.U)(ks=>null===ks?null:[new Da(pr,ks)]));if(0===ka.length&&0===Gs.length)return(0,I.of)([new Da(pr,[])]);const Pl=Ei(He)===kn;return this.processSegment(ua,ka,Ps,Gs,Pl?lt:kn).pipe((0,j.U)(ks=>null===ks?null:[new Da(pr,ks)]))}))}}function Wp(et){const qe=et.value.routeConfig;return qe&&""===qe.path&&void 0===qe.redirectTo}function nd(et){const qe=[],He=new Set;for(const Tt of et){if(!Wp(Tt)){qe.push(Tt);continue}const Yt=qe.find(kn=>Tt.value.routeConfig===kn.value.routeConfig);void 0!==Yt?(Yt.children.push(...Tt.children),He.add(Yt)):qe.push(Tt)}for(const Tt of He){const Yt=nd(Tt.children);qe.push(new Da(Tt.value,Yt))}return qe.filter(Tt=>!He.has(Tt))}function Cc(et){let qe=et;for(;qe._sourceSegment;)qe=qe._sourceSegment;return qe}function Us(et){let qe=et,He=qe._segmentIndexShift??0;for(;qe._sourceSegment;)qe=qe._sourceSegment,He+=qe._segmentIndexShift??0;return He-1}function Su(et){return et.data||{}}function Ou(et){return et.resolve||{}}function rd(et){return"string"==typeof et.title||null===et.title}function Du(et){return G(qe=>{const He=et(qe);return He?(0,c.D)(He).pipe((0,j.U)(()=>qe)):(0,I.of)(qe)})}const Es=new o.OlP("ROUTES");let od=(()=>{class et{constructor(He,Tt){this.injector=He,this.compiler=Tt,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(He){if(this.componentLoaders.get(He))return this.componentLoaders.get(He);if(He._loadedComponent)return(0,I.of)(He._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(He);const Tt=Hn(He.loadComponent()).pipe((0,j.U)(Vd),te(kn=>{this.onLoadEndListener&&this.onLoadEndListener(He),He._loadedComponent=kn}),ut(()=>{this.componentLoaders.delete(He)})),Yt=new Y.c(Tt,()=>new C.xQ).pipe((0,Xe.x)());return this.componentLoaders.set(He,Yt),Yt}loadChildren(He,Tt){if(this.childrenLoaders.get(Tt))return this.childrenLoaders.get(Tt);if(Tt._loadedRoutes)return(0,I.of)({routes:Tt._loadedRoutes,injector:Tt._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(Tt);const kn=this.loadModuleFactoryOrRoutes(Tt.loadChildren).pipe((0,j.U)(Ri=>{this.onLoadEndListener&&this.onLoadEndListener(Tt);let pr,to,no=!1;Array.isArray(Ri)?to=Ri:(pr=Ri.create(He).injector,to=li(pr.get(Es,[],o.XFs.Self|o.XFs.Optional)));return{routes:to.map(yi),injector:pr}}),ut(()=>{this.childrenLoaders.delete(Tt)})),zn=new Y.c(kn,()=>new C.xQ).pipe((0,Xe.x)());return this.childrenLoaders.set(Tt,zn),zn}loadModuleFactoryOrRoutes(He){return Hn(He()).pipe((0,j.U)(Vd),(0,fe.zg)(Yt=>Yt instanceof o.YKP||Array.isArray(Yt)?(0,I.of)(Yt):(0,c.D)(this.compiler.compileModuleAsync(Yt))))}}return et.\u0275fac=function(He){return new(He||et)(o.LFG(o.zs3),o.LFG(o.Sil))},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();function Vd(et){return function As(et){return et&&"object"==typeof et&&"default"in et}(et)?et.default:et}let Zs=(()=>{class et{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new C.xQ,this.configLoader=(0,o.f3M)(od),this.environmentInjector=(0,o.f3M)(o.lqb),this.urlSerializer=(0,o.f3M)(Si),this.rootContexts=(0,o.f3M)(At),this.navigationId=0,this.afterPreactivation=()=>(0,I.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=Yt=>this.events.next(new ji(Yt)),this.configLoader.onLoadStartListener=Yt=>this.events.next(new Ui(Yt))}complete(){this.transitions?.complete()}handleNavigationRequest(He){const Tt=++this.navigationId;this.transitions?.next({...this.transitions.value,...He,id:Tt})}setupNavigations(He){return this.transitions=new a({id:0,targetPageId:0,currentUrlTree:He.currentUrlTree,currentRawUrl:He.currentUrlTree,extractedUrl:He.urlHandlingStrategy.extract(He.currentUrlTree),urlAfterRedirects:He.urlHandlingStrategy.extract(He.currentUrlTree),rawUrl:He.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ot,restoredState:null,currentSnapshot:He.routerState.snapshot,targetSnapshot:null,currentRouterState:He.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,oe.h)(Tt=>0!==Tt.id),(0,j.U)(Tt=>({...Tt,extractedUrl:He.urlHandlingStrategy.extract(Tt.rawUrl)})),G(Tt=>{let Yt=!1,kn=!1;return(0,I.of)(Tt).pipe(te(zn=>{this.currentNavigation={id:zn.id,initialUrl:zn.rawUrl,extractedUrl:zn.extractedUrl,trigger:zn.source,extras:zn.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),G(zn=>{const Ri=He.browserUrlTree.toString(),pr=!He.navigated||zn.extractedUrl.toString()!==Ri||Ri!==He.currentUrlTree.toString();if(!pr&&"reload"!==(zn.extras.onSameUrlNavigation??He.onSameUrlNavigation)){const no="";return this.events.next(new Rt(zn.id,He.serializeUrl(Tt.rawUrl),no,0)),He.rawUrlTree=zn.rawUrl,zn.resolve(null),W.E}if(He.urlHandlingStrategy.shouldProcessUrl(zn.rawUrl))return Qa(zn.source)&&(He.browserUrlTree=zn.extractedUrl),(0,I.of)(zn).pipe(G(no=>{const ua=this.transitions?.getValue();return this.events.next(new nn(no.id,this.urlSerializer.serialize(no.extractedUrl),no.source,no.restoredState)),ua!==this.transitions?.getValue()?W.E:Promise.resolve(no)}),function Ml(et,qe,He,Tt){return G(Yt=>function ta(et,qe,He,Tt,Yt){return new ya(et,qe,He,Tt,Yt).apply()}(et,qe,He,Yt.extractedUrl,Tt).pipe((0,j.U)(kn=>({...Yt,urlAfterRedirects:kn}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,He.config),te(no=>{this.currentNavigation={...this.currentNavigation,finalUrl:no.urlAfterRedirects},Tt.urlAfterRedirects=no.urlAfterRedirects}),function xc(et,qe,He,Tt,Yt){return(0,fe.zg)(kn=>function bu(et,qe,He,Tt,Yt,kn,zn="emptyOnly"){return new wu(et,qe,He,Tt,Yt,zn,kn).recognize().pipe(G(Ri=>null===Ri?function td(et){return new y.y(qe=>qe.error(et))}(new Ph):(0,I.of)(Ri)))}(et,qe,He,kn.urlAfterRedirects,Tt.serialize(kn.urlAfterRedirects),Tt,Yt).pipe((0,j.U)(zn=>({...kn,targetSnapshot:zn}))))}(this.environmentInjector,this.rootComponentType,He.config,this.urlSerializer,He.paramsInheritanceStrategy),te(no=>{if(Tt.targetSnapshot=no.targetSnapshot,"eager"===He.urlUpdateStrategy){if(!no.extras.skipLocationChange){const ka=He.urlHandlingStrategy.merge(no.urlAfterRedirects,no.rawUrl);He.setBrowserUrl(ka,no)}He.browserUrlTree=no.urlAfterRedirects}const ua=new jt(no.id,this.urlSerializer.serialize(no.extractedUrl),this.urlSerializer.serialize(no.urlAfterRedirects),no.targetSnapshot);this.events.next(ua)}));if(pr&&He.urlHandlingStrategy.shouldProcessUrl(He.rawUrlTree)){const{id:no,extractedUrl:ua,source:ka,restoredState:Ps,extras:Gs}=zn,Pl=new nn(no,this.urlSerializer.serialize(ua),ka,Ps);this.events.next(Pl);const ks=ga(ua,this.rootComponentType).snapshot;return Tt={...zn,targetSnapshot:ks,urlAfterRedirects:ua,extras:{...Gs,skipLocationChange:!1,replaceUrl:!1}},(0,I.of)(Tt)}{const no="";return this.events.next(new Rt(zn.id,He.serializeUrl(Tt.extractedUrl),no,1)),He.rawUrlTree=zn.rawUrl,zn.resolve(null),W.E}}),te(zn=>{const Ri=new Un(zn.id,this.urlSerializer.serialize(zn.extractedUrl),this.urlSerializer.serialize(zn.urlAfterRedirects),zn.targetSnapshot);this.events.next(Ri)}),(0,j.U)(zn=>Tt={...zn,guards:ir(zn.targetSnapshot,zn.currentSnapshot,this.rootContexts)}),function xo(et,qe){return(0,fe.zg)(He=>{const{targetSnapshot:Tt,currentSnapshot:Yt,guards:{canActivateChecks:kn,canDeactivateChecks:zn}}=He;return 0===zn.length&&0===kn.length?(0,I.of)({...He,guardsResult:!0}):function sa(et,qe,He,Tt){return(0,c.D)(et).pipe((0,fe.zg)(Yt=>function ln(et,qe,He,Tt,Yt){const kn=qe&&qe.routeConfig?qe.routeConfig.canDeactivate:null;if(!kn||0===kn.length)return(0,I.of)(!0);const zn=kn.map(Ri=>{const pr=Xi(qe)??Yt,to=Hr(Ri,pr);return Hn(function ni(et){return et&&eo(et.canDeactivate)}(to)?to.canDeactivate(et,qe,He,Tt):pr.runInContext(()=>to(et,qe,He,Tt))).pipe(le())});return(0,I.of)(zn).pipe(go())}(Yt.component,Yt.route,He,qe,Tt)),le(Yt=>!0!==Yt,!0))}(zn,Tt,Yt,et).pipe((0,fe.zg)(Ri=>Ri&&function Dn(et){return"boolean"==typeof et}(Ri)?function Pa(et,qe,He,Tt){return(0,c.D)(qe).pipe((0,pe.b)(Yt=>B(function da(et,qe){return null!==et&&qe&&qe(new Qi(et)),(0,I.of)(!0)}(Yt.route.parent,Tt),function Zo(et,qe){return null!==et&&qe&&qe(new br(et)),(0,I.of)(!0)}(Yt.route,Tt),function Mt(et,qe,He){const Tt=qe[qe.length-1],kn=qe.slice(0,qe.length-1).reverse().map(zn=>function Ir(et){const qe=et.routeConfig?et.routeConfig.canActivateChild:null;return qe&&0!==qe.length?{node:et,guards:qe}:null}(zn)).filter(zn=>null!==zn).map(zn=>z(()=>{const Ri=zn.guards.map(pr=>{const to=Xi(zn.node)??He,no=Hr(pr,to);return Hn(function qn(et){return et&&eo(et.canActivateChild)}(no)?no.canActivateChild(Tt,et):to.runInContext(()=>no(Tt,et))).pipe(le())});return(0,I.of)(Ri).pipe(go())}));return(0,I.of)(kn).pipe(go())}(et,Yt.path,He),function Br(et,qe,He){const Tt=qe.routeConfig?qe.routeConfig.canActivate:null;if(!Tt||0===Tt.length)return(0,I.of)(!0);const Yt=Tt.map(kn=>z(()=>{const zn=Xi(qe)??He,Ri=Hr(kn,zn);return Hn(function Wt(et){return et&&eo(et.canActivate)}(Ri)?Ri.canActivate(qe,et):zn.runInContext(()=>Ri(qe,et))).pipe(le())}));return(0,I.of)(Yt).pipe(go())}(et,Yt.route,He))),le(Yt=>!0!==Yt,!0))}(Tt,kn,et,qe):(0,I.of)(Ri)),(0,j.U)(Ri=>({...He,guardsResult:Ri})))})}(this.environmentInjector,zn=>this.events.next(zn)),te(zn=>{if(Tt.guardsResult=zn.guardsResult,_i(zn.guardsResult))throw ba(0,zn.guardsResult);const Ri=new oi(zn.id,this.urlSerializer.serialize(zn.extractedUrl),this.urlSerializer.serialize(zn.urlAfterRedirects),zn.targetSnapshot,!!zn.guardsResult);this.events.next(Ri)}),(0,oe.h)(zn=>!!zn.guardsResult||(He.restoreHistory(zn),this.cancelNavigationTransition(zn,"",3),!1)),Du(zn=>{if(zn.guards.canActivateChecks.length)return(0,I.of)(zn).pipe(te(Ri=>{const pr=new xi(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),this.urlSerializer.serialize(Ri.urlAfterRedirects),Ri.targetSnapshot);this.events.next(pr)}),G(Ri=>{let pr=!1;return(0,I.of)(Ri).pipe(function Fd(et,qe){return(0,fe.zg)(He=>{const{targetSnapshot:Tt,guards:{canActivateChecks:Yt}}=He;if(!Yt.length)return(0,I.of)(He);let kn=0;return(0,c.D)(Yt).pipe((0,pe.b)(zn=>function id(et,qe,He,Tt){const Yt=et.routeConfig,kn=et._resolve;return void 0!==Yt?.title&&!rd(Yt)&&(kn[dt]=Yt.title),function Zp(et,qe,He,Tt){const Yt=function bc(et){return[...Object.keys(et),...Object.getOwnPropertySymbols(et)]}(et);if(0===Yt.length)return(0,I.of)({});const kn={};return(0,c.D)(Yt).pipe((0,fe.zg)(zn=>function wc(et,qe,He,Tt){const Yt=Xi(qe)??Tt,kn=Hr(et,Yt);return Hn(kn.resolve?kn.resolve(qe,He):Yt.runInContext(()=>kn(qe,He)))}(et[zn],qe,He,Tt).pipe(le(),te(Ri=>{kn[zn]=Ri}))),tn(1),function bt(et){return qe=>qe.lift(new yt(et))}(kn),be(zn=>Jr(zn)?W.E:U(zn)))}(kn,et,qe,Tt).pipe((0,j.U)(zn=>(et._resolvedData=zn,et.data=ds(et,He).resolve,Yt&&rd(Yt)&&(et.data[dt]=Yt.title),null)))}(zn.route,Tt,et,qe)),te(()=>kn++),tn(1),(0,fe.zg)(zn=>kn===Yt.length?(0,I.of)(He):W.E))})}(He.paramsInheritanceStrategy,this.environmentInjector),te({next:()=>pr=!0,complete:()=>{pr||(He.restoreHistory(Ri),this.cancelNavigationTransition(Ri,"",2))}}))}),te(Ri=>{const pr=new Ai(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),this.urlSerializer.serialize(Ri.urlAfterRedirects),Ri.targetSnapshot);this.events.next(pr)}))}),Du(zn=>{const Ri=pr=>{const to=[];pr.routeConfig?.loadComponent&&!pr.routeConfig._loadedComponent&&to.push(this.configLoader.loadComponent(pr.routeConfig).pipe(te(no=>{pr.component=no}),(0,j.U)(()=>{})));for(const no of pr.children)to.push(...Ri(no));return to};return w(Ri(zn.targetSnapshot.root)).pipe(Te(),(0,X.q)(1))}),Du(()=>this.afterPreactivation()),(0,j.U)(zn=>{const Ri=function Ma(et,qe,He){const Tt=xa(et,qe._root,He?He._root:void 0);return new jo(Tt,qe)}(He.routeReuseStrategy,zn.targetSnapshot,zn.currentRouterState);return Tt={...zn,targetRouterState:Ri}}),te(zn=>{He.currentUrlTree=zn.urlAfterRedirects,He.rawUrlTree=He.urlHandlingStrategy.merge(zn.urlAfterRedirects,zn.rawUrl),He.routerState=zn.targetRouterState,"deferred"===He.urlUpdateStrategy&&(zn.extras.skipLocationChange||He.setBrowserUrl(He.rawUrlTree,zn),He.browserUrlTree=zn.urlAfterRedirects)}),((et,qe,He)=>(0,j.U)(Tt=>(new lr(qe,Tt.targetRouterState,Tt.currentRouterState,He).activate(et),Tt)))(this.rootContexts,He.routeReuseStrategy,zn=>this.events.next(zn)),te({next:zn=>{Yt=!0,this.lastSuccessfulNavigation=this.currentNavigation,He.navigated=!0,this.events.next(new On(zn.id,this.urlSerializer.serialize(zn.extractedUrl),this.urlSerializer.serialize(He.currentUrlTree))),He.titleStrategy?.updateTitle(zn.targetRouterState.snapshot),zn.resolve(!0)},complete:()=>{Yt=!0}}),ut(()=>{Yt||kn||this.cancelNavigationTransition(Tt,"",1),this.currentNavigation?.id===Tt.id&&(this.currentNavigation=null)}),be(zn=>{if(kn=!0,Jt(zn)){_a(zn)||(He.navigated=!0,He.restoreHistory(Tt,!0));const Ri=new nt(Tt.id,this.urlSerializer.serialize(Tt.extractedUrl),zn.message,zn.cancellationCode);if(this.events.next(Ri),_a(zn)){const pr=He.urlHandlingStrategy.merge(zn.url,He.rawUrlTree),to={skipLocationChange:Tt.extras.skipLocationChange,replaceUrl:"eager"===He.urlUpdateStrategy||Qa(Tt.source)};He.scheduleNavigation(pr,ot,null,to,{resolve:Tt.resolve,reject:Tt.reject,promise:Tt.promise})}else Tt.resolve(!1)}else{He.restoreHistory(Tt,!0);const Ri=new pt(Tt.id,this.urlSerializer.serialize(Tt.extractedUrl),zn,Tt.targetSnapshot??void 0);this.events.next(Ri);try{Tt.resolve(He.errorHandler(zn))}catch(pr){Tt.reject(pr)}}return W.E}))}))}cancelNavigationTransition(He,Tt,Yt){const kn=new nt(He.id,this.urlSerializer.serialize(He.extractedUrl),Tt,Yt);this.events.next(kn),He.resolve(!1)}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();function Qa(et){return et!==ot}let yl=(()=>{class et{buildTitle(He){let Tt,Yt=He.root;for(;void 0!==Yt;)Tt=this.getResolvedTitleForRoute(Yt)??Tt,Yt=Yt.children.find(kn=>kn.outlet===lt);return Tt}getResolvedTitleForRoute(He){return He.data[dt]}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:function(){return(0,o.f3M)(Tu)},providedIn:"root"}),et})(),Tu=(()=>{class et extends yl{constructor(He){super(),this.title=He}updateTitle(He){const Tt=this.buildTitle(He);void 0!==Tt&&this.title.setTitle(Tt)}}return et.\u0275fac=function(He){return new(He||et)(o.LFG(Vt.Dx))},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),Nd=(()=>{class et{}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:function(){return(0,o.f3M)(Jl)},providedIn:"root"}),et})();class ad{shouldDetach(qe){return!1}store(qe,He){}shouldAttach(qe){return!1}retrieve(qe){return null}shouldReuseRoute(qe,He){return qe.routeConfig===He.routeConfig}}let Jl=(()=>{class et extends ad{}return et.\u0275fac=function(){let qe;return function(Tt){return(qe||(qe=o.n5z(et)))(Tt||et)}}(),et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();const cs=new o.OlP("",{providedIn:"root",factory:()=>({})});let sd=(()=>{class et{}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:function(){return(0,o.f3M)(Ql)},providedIn:"root"}),et})(),Ql=(()=>{class et{shouldProcessUrl(He){return!0}extract(He){return He}merge(He,Tt){return He}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();function Kp(et){throw et}function Al(et,qe,He){return qe.parse("/")}const Ea={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gp={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ya=(()=>{class et{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=(0,o.f3M)(o.c2e),this.isNgZoneEnabled=!1,this.options=(0,o.f3M)(cs,{optional:!0})||{},this.errorHandler=this.options.errorHandler||Kp,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||Al,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=(0,o.f3M)(sd),this.routeReuseStrategy=(0,o.f3M)(Nd),this.urlCreationStrategy=(0,o.f3M)(ra),this.titleStrategy=(0,o.f3M)(yl),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=li((0,o.f3M)(Es,{optional:!0})??[]),this.navigationTransitions=(0,o.f3M)(Zs),this.urlSerializer=(0,o.f3M)(Si),this.location=(0,o.f3M)(J.Ye),this.isNgZoneEnabled=(0,o.f3M)(o.R0b)instanceof o.R0b&&o.R0b.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new qi,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=ga(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(He=>{this.lastSuccessfulId=He.id,this.currentPageId=He.targetPageId},He=>{this.console.warn(`Unhandled Navigation Error: ${He}`)})}resetRootComponentType(He){this.routerState.root.component=He,this.navigationTransitions.rootComponentType=He}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const He=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ot,He)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(He=>{const Tt="popstate"===He.type?"popstate":"hashchange";"popstate"===Tt&&setTimeout(()=>{this.navigateToSyncWithBrowser(He.url,Tt,He.state)},0)}))}navigateToSyncWithBrowser(He,Tt,Yt){const kn={replaceUrl:!0},zn=Yt?.navigationId?Yt:null;if(Yt){const pr={...Yt};delete pr.navigationId,delete pr.\u0275routerPageId,0!==Object.keys(pr).length&&(kn.state=pr)}const Ri=this.parseUrl(He);this.scheduleNavigation(Ri,Tt,zn,kn)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(He){this.config=He.map(yi),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(He,Tt={}){const{relativeTo:Yt,queryParams:kn,fragment:zn,queryParamsHandling:Ri,preserveFragment:pr}=Tt,to=pr?this.currentUrlTree.fragment:zn;let no=null;switch(Ri){case"merge":no={...this.currentUrlTree.queryParams,...kn};break;case"preserve":no=this.currentUrlTree.queryParams;break;default:no=kn||null}return null!==no&&(no=this.removeEmptyProps(no)),this.urlCreationStrategy.createUrlTree(Yt,this.routerState,this.currentUrlTree,He,no,to??null)}navigateByUrl(He,Tt={skipLocationChange:!1}){const Yt=_i(He)?He:this.parseUrl(He),kn=this.urlHandlingStrategy.merge(Yt,this.rawUrlTree);return this.scheduleNavigation(kn,ot,null,Tt)}navigate(He,Tt={skipLocationChange:!1}){return function ld(et){for(let qe=0;qe<et.length;qe++){if(null==et[qe])throw new o.vHH(4008,!1)}}(He),this.navigateByUrl(this.createUrlTree(He,Tt),Tt)}serializeUrl(He){return this.urlSerializer.serialize(He)}parseUrl(He){let Tt;try{Tt=this.urlSerializer.parse(He)}catch(Yt){Tt=this.malformedUriErrorHandler(Yt,this.urlSerializer,He)}return Tt}isActive(He,Tt){let Yt;if(Yt=!0===Tt?{...Ea}:!1===Tt?{...Gp}:Tt,_i(He))return Wn(this.currentUrlTree,He,Yt);const kn=this.parseUrl(He);return Wn(this.currentUrlTree,kn,Yt)}removeEmptyProps(He){return Object.keys(He).reduce((Tt,Yt)=>{const kn=He[Yt];return null!=kn&&(Tt[Yt]=kn),Tt},{})}scheduleNavigation(He,Tt,Yt,kn,zn){if(this.disposed)return Promise.resolve(!1);let Ri,pr,to,no;return zn?(Ri=zn.resolve,pr=zn.reject,to=zn.promise):to=new Promise((ua,ka)=>{Ri=ua,pr=ka}),no="computed"===this.canceledNavigationResolution?Yt&&Yt.\u0275routerPageId?Yt.\u0275routerPageId:kn.replaceUrl||kn.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:no,source:Tt,restoredState:Yt,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:He,extras:kn,resolve:Ri,reject:pr,promise:to,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),to.catch(ua=>Promise.reject(ua))}setBrowserUrl(He,Tt){const Yt=this.urlSerializer.serialize(He),kn={...Tt.extras.state,...this.generateNgRouterState(Tt.id,Tt.targetPageId)};this.location.isCurrentPathEqualTo(Yt)||Tt.extras.replaceUrl?this.location.replaceState(Yt,"",kn):this.location.go(Yt,"",kn)}restoreHistory(He,Tt=!1){if("computed"===this.canceledNavigationResolution){const Yt=this.currentPageId-He.targetPageId;"popstate"!==He.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===Yt?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===Yt&&(this.resetState(He),this.browserUrlTree=He.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(Yt)}else"replace"===this.canceledNavigationResolution&&(Tt&&this.resetState(He),this.resetUrlToCurrentUrlTree())}resetState(He){this.routerState=He.currentRouterState,this.currentUrlTree=He.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,He.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(He,Tt){return"computed"===this.canceledNavigationResolution?{navigationId:He,\u0275routerPageId:Tt}:{navigationId:He}}}return et.\u0275fac=function(He){return new(He||et)},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})(),ud=(()=>{class et{constructor(He,Tt,Yt,kn,zn,Ri){this.router=He,this.route=Tt,this.tabIndexAttribute=Yt,this.renderer=kn,this.el=zn,this.locationStrategy=Ri,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new C.xQ;const pr=zn.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===pr||"area"===pr,this.isAnchorElement?this.subscription=He.events.subscribe(to=>{to instanceof On&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(He){this._preserveFragment=(0,o.D6c)(He)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(He){this._skipLocationChange=(0,o.D6c)(He)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(He){this._replaceUrl=(0,o.D6c)(He)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(He){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",He)}ngOnChanges(He){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(He){null!=He?(this.commands=Array.isArray(He)?He:[He],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(He,Tt,Yt,kn,zn){return!!(null===this.urlTree||this.isAnchorElement&&(0!==He||Tt||Yt||kn||zn||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const He=null===this.href?null:(0,o.P3R)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",He)}applyAttributeValue(He,Tt){const Yt=this.renderer,kn=this.el.nativeElement;null!==Tt?Yt.setAttribute(kn,He,Tt):Yt.removeAttribute(kn,He)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return et.\u0275fac=function(He){return new(He||et)(o.Y36(Ya),o.Y36(oa),o.$8M("tabindex"),o.Y36(o.Qsj),o.Y36(o.SBq),o.Y36(J.S$))},et.\u0275dir=o.lG2({type:et,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(He,Tt){1&He&&o.NdJ("click",function(kn){return Tt.onClick(kn.button,kn.ctrlKey,kn.shiftKey,kn.altKey,kn.metaKey)}),2&He&&o.uIk("target",Tt.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[o.TTD]}),et})();class kh{}let jp=(()=>{class et{constructor(He,Tt,Yt,kn,zn){this.router=He,this.injector=Yt,this.preloadingStrategy=kn,this.loader=zn}setUpPreloading(){this.subscription=this.router.events.pipe((0,oe.h)(He=>He instanceof On),(0,pe.b)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(He,Tt){const Yt=[];for(const kn of Tt){kn.providers&&!kn._injector&&(kn._injector=(0,o.MMx)(kn.providers,He,`Route: ${kn.path}`));const zn=kn._injector??He,Ri=kn._loadedInjector??zn;kn.loadChildren&&!kn._loadedRoutes&&void 0===kn.canLoad||kn.loadComponent&&!kn._loadedComponent?Yt.push(this.preloadConfig(zn,kn)):(kn.children||kn._loadedRoutes)&&Yt.push(this.processRoutes(Ri,kn.children??kn._loadedRoutes))}return(0,c.D)(Yt).pipe((0,R.J)())}preloadConfig(He,Tt){return this.preloadingStrategy.preload(Tt,()=>{let Yt;Yt=Tt.loadChildren&&void 0===Tt.canLoad?this.loader.loadChildren(He,Tt):(0,I.of)(null);const kn=Yt.pipe((0,fe.zg)(zn=>null===zn?(0,I.of)(void 0):(Tt._loadedRoutes=zn.routes,Tt._loadedInjector=zn.injector,this.processRoutes(zn.injector??He,zn.routes))));if(Tt.loadComponent&&!Tt._loadedComponent){const zn=this.loader.loadComponent(Tt);return(0,c.D)([kn,zn]).pipe((0,R.J)())}return kn})}}return et.\u0275fac=function(He){return new(He||et)(o.LFG(Ya),o.LFG(o.Sil),o.LFG(o.lqb),o.LFG(kh),o.LFG(od))},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac,providedIn:"root"}),et})();const Fa=new o.OlP("");let Iu=(()=>{class et{constructor(He,Tt,Yt,kn,zn={}){this.urlSerializer=He,this.transitions=Tt,this.viewportScroller=Yt,this.zone=kn,this.options=zn,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},zn.scrollPositionRestoration=zn.scrollPositionRestoration||"disabled",zn.anchorScrolling=zn.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(He=>{He instanceof nn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=He.navigationTrigger,this.restoredId=He.restoredState?He.restoredState.navigationId:0):He instanceof On&&(this.lastId=He.id,this.scheduleScrollEvent(He,this.urlSerializer.parse(He.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(He=>{He instanceof ro&&(He.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(He.position):He.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(He.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(He,Tt){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new ro(He,"popstate"===this.lastSource?this.store[this.restoredId]:null,Tt))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return et.\u0275fac=function(He){o.$Z()},et.\u0275prov=o.Yz7({token:et,factory:et.\u0275fac}),et})();function Os(et,qe){return{\u0275kind:et,\u0275providers:qe}}function $p(){const et=(0,o.f3M)(o.zs3);return qe=>{const He=et.get(o.z2F);if(qe!==He.components[0])return;const Tt=et.get(Ya),Yt=et.get(Dc);1===et.get(zd)&&Tt.initialNavigation(),et.get(Lh,null,o.XFs.Optional)?.setUpPreloading(),et.get(Fa,null,o.XFs.Optional)?.init(),Tt.resetRootComponentType(He.componentTypes[0]),Yt.closed||(Yt.next(),Yt.unsubscribe())}}const Dc=new o.OlP("",{factory:()=>new C.xQ}),zd=new o.OlP("",{providedIn:"root",factory:()=>1});const Lh=new o.OlP("");function Tc(et){return Os(0,[{provide:Lh,useExisting:jp},{provide:kh,useExisting:et}])}const Ic=new o.OlP("ROUTER_FORROOT_GUARD"),Bh=[J.Ye,{provide:Si,useClass:Yi},Ya,At,{provide:oa,useFactory:function ys(et){return et.routerState.root},deps:[Ya]},od,[]];function Mc(){return new o.PXZ("Router",Ya)}let tu=(()=>{class et{constructor(He){}static forRoot(He,Tt){return{ngModule:et,providers:[Bh,[],{provide:Es,multi:!0,useValue:He},{provide:Ic,useFactory:nu,deps:[[Ya,new o.FiY,new o.tp0]]},{provide:cs,useValue:Tt||{}},Tt?.useHash?{provide:J.S$,useClass:J.Do}:{provide:J.S$,useClass:J.b0},{provide:Fa,useFactory:()=>{const et=(0,o.f3M)(J.EM),qe=(0,o.f3M)(o.R0b),He=(0,o.f3M)(cs),Tt=(0,o.f3M)(Zs),Yt=(0,o.f3M)(Si);return He.scrollOffset&&et.setOffset(He.scrollOffset),new Iu(Yt,Tt,et,qe,He)}},Tt?.preloadingStrategy?Tc(Tt.preloadingStrategy).\u0275providers:[],{provide:o.PXZ,multi:!0,useFactory:Mc},Tt?.initialNavigation?qp(Tt):[],[{provide:Wd,useFactory:$p},{provide:o.tb,multi:!0,useExisting:Wd}]]}}static forChild(He){return{ngModule:et,providers:[{provide:Es,multi:!0,useValue:He}]}}}return et.\u0275fac=function(He){return new(He||et)(o.LFG(Ic,8))},et.\u0275mod=o.oAB({type:et}),et.\u0275inj=o.cJS({imports:[_t]}),et})();function nu(et){return"guarded"}function qp(et){return["disabled"===et.initialNavigation?Os(3,[{provide:o.ip1,multi:!0,useFactory:()=>{const qe=(0,o.f3M)(Ya);return()=>{qe.setUpLocationChangeListener()}}},{provide:zd,useValue:2}]).\u0275providers:[],"enabledBlocking"===et.initialNavigation?Os(2,[{provide:zd,useValue:0},{provide:o.ip1,multi:!0,deps:[o.zs3],useFactory:qe=>{const He=qe.get(J.V_,Promise.resolve());return()=>He.then(()=>new Promise(Yt=>{const kn=qe.get(Ya),zn=qe.get(Dc);(function Tt(Yt){qe.get(Ya).events.pipe((0,oe.h)(zn=>zn instanceof On||zn instanceof nt||zn instanceof pt),(0,j.U)(zn=>zn instanceof On||zn instanceof nt&&(0===zn.code||1===zn.code)&&null),(0,oe.h)(zn=>null!==zn),(0,X.q)(1)).subscribe(()=>{Yt()})})(()=>{Yt(!0)}),qe.get(Zs).afterPreactivation=()=>(Yt(!0),zn.closed?(0,I.of)(void 0):zn),kn.initialNavigation()}))}}]).\u0275providers:[]]}const Wd=new o.OlP("")},8143:(Rn,he,u)=>{"use strict";u.d(he,{U:()=>wa,ZP:()=>wa});const o=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,c=Object.keys,I=Array.isArray;function C(_t,it){return"object"!=typeof it||c(it).forEach(function(We){_t[We]=it[We]}),_t}typeof Promise>"u"||o.Promise||(o.Promise=Promise);const g=Object.getPrototypeOf,a={}.hasOwnProperty;function p(_t,it){return a.call(_t,it)}function s(_t,it){"function"==typeof it&&(it=it(g(_t))),(typeof Reflect>"u"?c:Reflect.ownKeys)(it).forEach(We=>{d(_t,We,it[We])})}const l=Object.defineProperty;function d(_t,it,We,Qe){l(_t,it,C(We&&p(We,"get")&&"function"==typeof We.get?{get:We.get,set:We.set,configurable:!0}:{value:We,configurable:!0,writable:!0},Qe))}function h(_t){return{from:function(it){return _t.prototype=Object.create(it.prototype),d(_t.prototype,"constructor",_t),{extend:s.bind(null,_t.prototype)}}}}const v=Object.getOwnPropertyDescriptor;function x(_t,it){let We;return v(_t,it)||(We=g(_t))&&x(We,it)}const b=[].slice;function y(_t,it,We){return b.call(_t,it,We)}function E(_t,it){return it(_t)}function S(_t){if(!_t)throw new Error("Assertion Failed")}function O(_t){o.setImmediate?setImmediate(_t):setTimeout(_t,0)}function w(_t,it){return _t.reduce((We,Qe,rt)=>{var $t=it(Qe,rt);return $t&&(We[$t[0]]=$t[1]),We},{})}function T(_t,it){if(p(_t,it))return _t[it];if(!it)return _t;if("string"!=typeof it){for(var We=[],Qe=0,rt=it.length;Qe<rt;++Qe){var $t=T(_t,it[Qe]);We.push($t)}return We}var pn=it.indexOf(".");if(-1!==pn){var Gn=_t[it.substr(0,pn)];return void 0===Gn?void 0:T(Gn,it.substr(pn+1))}}function k(_t,it,We){if(_t&&void 0!==it&&(!("isFrozen"in Object)||!Object.isFrozen(_t)))if("string"!=typeof it&&"length"in it){S("string"!=typeof We&&"length"in We);for(var Qe=0,rt=it.length;Qe<rt;++Qe)k(_t,it[Qe],We[Qe])}else{var $t=it.indexOf(".");if(-1!==$t){var pn=it.substr(0,$t),Gn=it.substr($t+1);if(""===Gn)void 0===We?I(_t)&&!isNaN(parseInt(pn))?_t.splice(pn,1):delete _t[pn]:_t[pn]=We;else{var Jn=_t[pn];Jn&&p(_t,pn)||(Jn=_t[pn]={}),k(Jn,Gn,We)}}else void 0===We?I(_t)&&!isNaN(parseInt(it))?_t.splice(it,1):delete _t[it]:_t[it]=We}}function R(_t){var it={};for(var We in _t)p(_t,We)&&(it[We]=_t[We]);return it}const P=[].concat;function B(_t){return P.apply([],_t)}const W="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(B([8,16,32,64].map(_t=>["Int","Uint","Float"].map(it=>it+_t+"Array")))).filter(_t=>o[_t]),z=W.map(_t=>o[_t]);w(W,_t=>[_t,!0]);let V=null;function U(_t){V=typeof WeakMap<"u"&&new WeakMap;const it=K(_t);return V=null,it}function K(_t){if(!_t||"object"!=typeof _t)return _t;let it=V&&V.get(_t);if(it)return it;if(I(_t)){it=[],V&&V.set(_t,it);for(var We=0,Qe=_t.length;We<Qe;++We)it.push(K(_t[We]))}else if(z.indexOf(_t.constructor)>=0)it=_t;else{const $t=g(_t);for(var rt in it=$t===Object.prototype?{}:Object.create($t),V&&V.set(_t,it),_t)p(_t,rt)&&(it[rt]=K(_t[rt]))}return it}const{toString:Y}={};function J(_t){return Y.call(_t).slice(8,-1)}const j=typeof Symbol<"u"?Symbol.iterator:"@@iterator",ee="symbol"==typeof j?function(_t){var it;return null!=_t&&(it=_t[j])&&it.apply(_t)}:function(){return null},G={};function q(_t){var it,We,Qe,rt;if(1===arguments.length){if(I(_t))return _t.slice();if(this===G&&"string"==typeof _t)return[_t];if(rt=ee(_t)){for(We=[];!(Qe=rt.next()).done;)We.push(Qe.value);return We}if(null==_t)return[_t];if("number"==typeof(it=_t.length)){for(We=new Array(it);it--;)We[it]=_t[it];return We}return[_t]}for(it=arguments.length,We=new Array(it);it--;)We[it]=arguments[it];return We}const Z=typeof Symbol<"u"?_t=>"AsyncFunction"===_t[Symbol.toStringTag]:()=>!1;var X=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function M(_t,it){X=_t,oe=it}var oe=()=>!0;const fe=!new Error("").stack;function Te(){if(fe)try{throw new Error}catch(_t){return _t}return new Error}function Be(_t,it){var We=_t.stack;return We?(it=it||0,0===We.indexOf(_t.name)&&(it+=(_t.name+_t.message).split("\n").length),We.split("\n").slice(it).filter(oe).map(Qe=>"\n"+Qe).join("")):""}var ze=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],ae=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"].concat(ze),_e={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function ye(_t,it){this._e=Te(),this.name=_t,this.message=it}function ne(_t,it){return _t+". Errors: "+Object.keys(it).map(We=>it[We].toString()).filter((We,Qe,rt)=>rt.indexOf(We)===Qe).join("\n")}function ce(_t,it,We,Qe){this._e=Te(),this.failures=it,this.failedKeys=Qe,this.successCount=We,this.message=ne(_t,it)}function le(_t,it){this._e=Te(),this.name="BulkError",this.failures=Object.keys(it).map(We=>it[We]),this.failuresByPos=it,this.message=ne(_t,it)}h(ye).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Be(this._e,2))}},toString:function(){return this.name+": "+this.message}}),h(ce).from(ye),h(le).from(ye);var pe=ae.reduce((_t,it)=>(_t[it]=it+"Error",_t),{});const Se=ye;var re=ae.reduce((_t,it)=>{var We=it+"Error";function Qe(rt,$t){this._e=Te(),this.name=We,rt?"string"==typeof rt?(this.message=`${rt}${$t?"\n "+$t:""}`,this.inner=$t||null):"object"==typeof rt&&(this.message=`${rt.name} ${rt.message}`,this.inner=rt):(this.message=_e[it]||We,this.inner=null)}return h(Qe).from(Se),_t[it]=Qe,_t},{});re.Syntax=SyntaxError,re.Type=TypeError,re.Range=RangeError;var te=ze.reduce((_t,it)=>(_t[it+"Error"]=re[it],_t),{}),ie=ae.reduce((_t,it)=>(-1===["Syntax","Type","Range"].indexOf(it)&&(_t[it+"Error"]=re[it]),_t),{});function ue(){}function be(_t){return _t}function Ae(_t,it){return null==_t||_t===be?it:function(We){return it(_t(We))}}function Ne(_t,it){return function(){_t.apply(this,arguments),it.apply(this,arguments)}}function mt(_t,it){return _t===ue?it:function(){var We=_t.apply(this,arguments);void 0!==We&&(arguments[0]=We);var Qe=this.onsuccess,rt=this.onerror;this.onsuccess=null,this.onerror=null;var $t=it.apply(this,arguments);return Qe&&(this.onsuccess=this.onsuccess?Ne(Qe,this.onsuccess):Qe),rt&&(this.onerror=this.onerror?Ne(rt,this.onerror):rt),void 0!==$t?$t:We}}function tt(_t,it){return _t===ue?it:function(){_t.apply(this,arguments);var We=this.onsuccess,Qe=this.onerror;this.onsuccess=this.onerror=null,it.apply(this,arguments),We&&(this.onsuccess=this.onsuccess?Ne(We,this.onsuccess):We),Qe&&(this.onerror=this.onerror?Ne(Qe,this.onerror):Qe)}}function Le(_t,it){return _t===ue?it:function(We){var Qe=_t.apply(this,arguments);C(We,Qe);var rt=this.onsuccess,$t=this.onerror;this.onsuccess=null,this.onerror=null;var pn=it.apply(this,arguments);return rt&&(this.onsuccess=this.onsuccess?Ne(rt,this.onsuccess):rt),$t&&(this.onerror=this.onerror?Ne($t,this.onerror):$t),void 0===Qe?void 0===pn?void 0:pn:C(Qe,pn)}}function gt(_t,it){return _t===ue?it:function(){return!1!==it.apply(this,arguments)&&_t.apply(this,arguments)}}function tn(_t,it){return _t===ue?it:function(){var We=_t.apply(this,arguments);if(We&&"function"==typeof We.then){for(var Qe=this,rt=arguments.length,$t=new Array(rt);rt--;)$t[rt]=arguments[rt];return We.then(function(){return it.apply(Qe,$t)})}return it.apply(this,arguments)}}ie.ModifyError=ce,ie.DexieError=ye,ie.BulkError=le;var Pe={};const[$e,ge,Ce]=typeof Promise>"u"?[]:(()=>{let _t=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[_t,g(_t),_t];const it=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[it,g(it),_t]})(),De=ge&&ge.then,Ye=$e&&$e.constructor,bt=!!Ce;var yt=!1,kt=Ce?()=>{Ce.then(Wn)}:o.setImmediate?setImmediate.bind(null,Wn):o.MutationObserver?()=>{var _t=document.createElement("div");new MutationObserver(()=>{Wn(),_t=null}).observe(_t,{attributes:!0}),_t.setAttribute("i","1")}:()=>{setTimeout(Wn,0)},gn=function(_t,it){Lt.push([_t,it]),Ve&&(kt(),Ve=!1)},ut=!0,Ve=!0,St=[],Xe=[],Vt=null,lt=be,dt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:mo,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(_t=>{try{mo(_t[0],_t[1])}catch{}})}},vt=dt,Lt=[],bn=0,mn=[];function xn(_t){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ue,this._lib=!1;var it=this._PSD=vt;if(X&&(this._stackHolder=Te(),this._prev=null,this._numPrev=0),"function"!=typeof _t){if(_t!==Pe)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&Vn(this,this._value))}this._state=null,this._value=null,++it.ref,ki(this,_t)}const Xn={get:function(){var _t=vt,it=vn;function We(Qe,rt){var $t=!_t.global&&(_t!==vt||it!==vn);const pn=$t&&!Yi();var Gn=new xn((Jn,Pi)=>{Hn(this,new li(Ur(Qe,_t,$t,pn),Ur(rt,_t,$t,pn),Jn,Pi,_t))});return X&&ei(Gn,this),Gn}return We.prototype=Pe,We},set:function(_t){d(this,"then",_t&&_t.prototype===Pe?Xn:{get:function(){return _t},set:Xn.set})}};function li(_t,it,We,Qe,rt){this.onFulfilled="function"==typeof _t?_t:null,this.onRejected="function"==typeof it?it:null,this.resolve=We,this.reject=Qe,this.psd=rt}function ki(_t,it){try{it(We=>{if(null===_t._state){if(We===_t)throw new TypeError("A promise cannot be resolved with itself.");var Qe=_t._lib&&Ji();We&&"function"==typeof We.then?ki(_t,(rt,$t)=>{We instanceof xn?We._then(rt,$t):We.then(rt,$t)}):(_t._state=!0,_t._value=We,Oi(_t)),Qe&&Sn()}},Vn.bind(null,_t))}catch(We){Vn(_t,We)}}function Vn(_t,it){if(Xe.push(it),null===_t._state){var We=_t._lib&&Ji();it=lt(it),_t._state=!1,_t._value=it,X&&null!==it&&"object"==typeof it&&!it._promise&&function(Qe,rt,$t){try{(()=>{var Qe=x(it,"stack");it._promise=_t,d(it,"stack",{get:()=>yt?Qe&&(Qe.get?Qe.get.apply(it):Qe.value):_t.stack})}).apply(null,void 0)}catch(pn){}}(),Qe=_t,St.some(rt=>rt._value===Qe._value)||St.push(Qe),Oi(_t),We&&Sn()}var Qe}function Oi(_t){var it=_t._listeners;_t._listeners=[];for(var We=0,Qe=it.length;We<Qe;++We)Hn(_t,it[We]);var rt=_t._PSD;--rt.ref||rt.finalize(),0===bn&&(++bn,gn(()=>{0==--bn&&Qn()},[]))}function Hn(_t,it){if(null!==_t._state){var We=_t._state?it.onFulfilled:it.onRejected;if(null===We)return(_t._state?it.resolve:it.reject)(_t._value);++it.psd.ref,++bn,gn(En,[We,_t,it])}else _t._listeners.push(it)}function En(_t,it,We){try{Vt=it;var Qe,rt=it._value;it._state?Qe=_t(rt):(Xe.length&&(Xe=[]),Qe=_t(rt),-1===Xe.indexOf(rt)&&function($t){for(var pn=St.length;pn;)if(St[--pn]._value===$t._value)return void St.splice(pn,1)}(it)),We.resolve(Qe)}catch($t){We.reject($t)}finally{Vt=null,0==--bn&&Qn(),--We.psd.ref||We.psd.finalize()}}function Mn(_t,it,We){if(it.length===We)return it;var Qe="";if(!1===_t._state){var rt,$t,pn=_t._value;null!=pn?(rt=pn.name||"Error",$t=pn.message||pn,Qe=Be(pn,0)):(rt=pn,$t=""),it.push(rt+($t?": "+$t:"")+Qe)}return X&&((Qe=Be(_t._stackHolder,2))&&-1===it.indexOf(Qe)&&it.push(Qe),_t._prev&&Mn(_t._prev,it,We)),it}function ei(_t,it){var We=it?it._numPrev+1:0;We<100&&(_t._prev=it,_t._numPrev=We)}function Wn(){Ji()&&Sn()}function Ji(){var _t=ut;return ut=!1,Ve=!1,_t}function Sn(){var _t,it,We;do{for(;Lt.length>0;)for(_t=Lt,Lt=[],We=_t.length,it=0;it<We;++it){var Qe=_t[it];Qe[0].apply(null,Qe[1])}}while(Lt.length>0);ut=!0,Ve=!0}function Qn(){var _t=St;St=[],_t.forEach(Qe=>{Qe._PSD.onunhandled.call(null,Qe._value,Qe)});for(var it=mn.slice(0),We=it.length;We;)it[--We]()}function ti(_t){return new xn(Pe,!1,_t)}function ci(_t,it){var We=vt;return function(){var Qe=Ji(),rt=vt;try{return Gr(We,!0),_t.apply(this,arguments)}catch($t){it&&it($t)}finally{Gr(rt,!1),Qe&&Sn()}}}s(xn.prototype,{then:Xn,_then:function(_t,it){Hn(this,new li(null,null,_t,it,vt))},catch:function(_t){if(1===arguments.length)return this.then(null,_t);var it=arguments[0],We=arguments[1];return this.then(null,"function"==typeof it?Qe=>Qe instanceof it?We(Qe):ti(Qe):Qe=>Qe&&Qe.name===it?We(Qe):ti(Qe))},finally:function(_t){return this.then(it=>(_t(),it),it=>(_t(),ti(it)))},stack:{get:function(){if(this._stack)return this._stack;try{yt=!0;var _t=Mn(this,[],20).join("\nFrom previous: ");return null!==this._state&&(this._stack=_t),_t}finally{yt=!1}}},timeout:function(_t,it){return _t<1/0?new xn((We,Qe)=>{var rt=setTimeout(()=>Qe(new re.Timeout(it)),_t);this.then(We,Qe).finally(clearTimeout.bind(null,rt))}):this}}),typeof Symbol<"u"&&Symbol.toStringTag&&d(xn.prototype,Symbol.toStringTag,"Dexie.Promise"),dt.env=Qr(),s(xn,{all:function(){var _t=q.apply(null,arguments).map(dr);return new xn(function(it,We){0===_t.length&&it([]);var Qe=_t.length;_t.forEach((rt,$t)=>xn.resolve(rt).then(pn=>{_t[$t]=pn,--Qe||it(_t)},We))})},resolve:_t=>{if(_t instanceof xn)return _t;if(_t&&"function"==typeof _t.then)return new xn((We,Qe)=>{_t.then(We,Qe)});var it=new xn(Pe,!0,_t);return ei(it,Vt),it},reject:ti,race:function(){var _t=q.apply(null,arguments).map(dr);return new xn((it,We)=>{_t.map(Qe=>xn.resolve(Qe).then(it,We))})},PSD:{get:()=>vt,set:_t=>vt=_t},totalEchoes:{get:()=>vn},newPSD:hi,usePSD:Sr,scheduler:{get:()=>gn,set:_t=>{gn=_t}},rejectionMapper:{get:()=>lt,set:_t=>{lt=_t}},follow:(_t,it)=>new xn((We,Qe)=>hi((rt,$t)=>{var pn=vt;pn.unhandleds=[],pn.onunhandled=$t,pn.finalize=Ne(function(){var Gn;Gn=()=>{0===this.unhandleds.length?rt():$t(this.unhandleds[0])},mn.push(function Jn(){Gn(),mn.splice(mn.indexOf(Jn),1)}),++bn,gn(()=>{0==--bn&&Qn()},[])},pn.finalize),_t()},it,We,Qe))}),Ye&&(Ye.allSettled&&d(xn,"allSettled",function(){const _t=q.apply(null,arguments).map(dr);return new xn(it=>{0===_t.length&&it([]);let We=_t.length;const Qe=new Array(We);_t.forEach((rt,$t)=>xn.resolve(rt).then(pn=>Qe[$t]={status:"fulfilled",value:pn},pn=>Qe[$t]={status:"rejected",reason:pn}).then(()=>--We||it(Qe)))})}),Ye.any&&typeof AggregateError<"u"&&d(xn,"any",function(){const _t=q.apply(null,arguments).map(dr);return new xn((it,We)=>{0===_t.length&&We(new AggregateError([]));let Qe=_t.length;const rt=new Array(Qe);_t.forEach(($t,pn)=>xn.resolve($t).then(Gn=>it(Gn),Gn=>{rt[pn]=Gn,--Qe||We(new AggregateError(rt))}))})}));const Wi={awaits:0,echoes:0,id:0};var qi=0,nr=[],xr=0,vn=0,Pn=0;function hi(_t,it,We,Qe){var rt=vt,$t=Object.create(rt);$t.parent=rt,$t.ref=0,$t.global=!1,$t.id=++Pn;var pn=dt.env;$t.env=bt?{Promise:xn,PromiseProp:{value:xn,configurable:!0,writable:!0},all:xn.all,race:xn.race,allSettled:xn.allSettled,any:xn.any,resolve:xn.resolve,reject:xn.reject,nthen:Rr(pn.nthen,$t),gthen:Rr(pn.gthen,$t)}:{},it&&C($t,it),++rt.ref,$t.finalize=function(){--this.parent.ref||this.parent.finalize()};var Gn=Sr($t,_t,We,Qe);return 0===$t.ref&&$t.finalize(),Gn}function Si(){return Wi.id||(Wi.id=++qi),++Wi.awaits,Wi.echoes+=100,Wi.id}function Yi(){return!!Wi.awaits&&(0==--Wi.awaits&&(Wi.id=0),Wi.echoes=100*Wi.awaits,!0)}function dr(_t){return Wi.echoes&&_t&&_t.constructor===Ye?(Si(),_t.then(it=>(Yi(),it),it=>(Yi(),Mr(it)))):_t}function kr(_t){++vn,Wi.echoes&&0!=--Wi.echoes||(Wi.echoes=Wi.id=0),nr.push(vt),Gr(_t,!0)}function Nr(){var _t=nr[nr.length-1];nr.pop(),Gr(_t,!1)}function Gr(_t,it){var We=vt;if((it?!Wi.echoes||xr++&&_t===vt:!xr||--xr&&_t===vt)||Wr(it?kr.bind(null,_t):Nr),_t!==vt&&(vt=_t,We===dt&&(dt.env=Qr()),bt)){var Qe=dt.env.Promise,rt=_t.env;ge.then=rt.nthen,Qe.prototype.then=rt.gthen,(We.global||_t.global)&&(Object.defineProperty(o,"Promise",rt.PromiseProp),Qe.all=rt.all,Qe.race=rt.race,Qe.resolve=rt.resolve,Qe.reject=rt.reject,rt.allSettled&&(Qe.allSettled=rt.allSettled),rt.any&&(Qe.any=rt.any))}}function Qr(){var _t=o.Promise;return bt?{Promise:_t,PromiseProp:Object.getOwnPropertyDescriptor(o,"Promise"),all:_t.all,race:_t.race,allSettled:_t.allSettled,any:_t.any,resolve:_t.resolve,reject:_t.reject,nthen:ge.then,gthen:_t.prototype.then}:{}}function Sr(_t,it,We,Qe,rt){var $t=vt;try{return Gr(_t,!0),it(We,Qe,rt)}finally{Gr($t,!1)}}function Wr(_t){De.call($e,_t)}function Ur(_t,it,We,Qe){return"function"!=typeof _t?_t:function(){var rt=vt;We&&Si(),Gr(it,!0);try{return _t.apply(this,arguments)}finally{Gr(rt,!1),Qe&&Wr(Yi)}}}function Rr(_t,it){return function(We,Qe){return _t.call(this,Ur(We,it),Ur(Qe,it))}}function mo(_t,it){var We;try{We=it.onuncatched(_t)}catch{}if(!1!==We)try{var Qe,rt={promise:it,reason:_t};if(o.document&&document.createEvent?((Qe=document.createEvent("Event")).initEvent("unhandledrejection",!0,!0),C(Qe,rt)):o.CustomEvent&&C(Qe=new CustomEvent("unhandledrejection",{detail:rt}),rt),Qe&&o.dispatchEvent&&(dispatchEvent(Qe),!o.PromiseRejectionEvent&&o.onunhandledrejection))try{o.onunhandledrejection(Qe)}catch{}X&&Qe&&!Qe.defaultPrevented&&console.warn(`Unhandled rejection: ${_t.stack||_t}`)}catch{}}-1===(""+De).indexOf("[native code]")&&(Si=Yi=ue);var Mr=xn.reject;function po(_t,it,We,Qe){if(_t.idbdb&&(_t._state.openComplete||vt.letThrough||_t._vip)){var rt=_t._createTransaction(it,We,_t._dbSchema);try{rt.create(),_t._state.PR1398_maxLoop=3}catch($t){return $t.name===pe.InvalidState&&_t.isOpen()&&--_t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),_t._close(),_t.open().then(()=>po(_t,it,We,Qe))):Mr($t)}return rt._promise(it,($t,pn)=>hi(()=>(vt.trans=rt,Qe($t,pn,rt)))).then($t=>rt._completion.then(()=>$t))}if(_t._state.openComplete)return Mr(new re.DatabaseClosed(_t._state.dbOpenError));if(!_t._state.isBeingOpened){if(!_t._options.autoOpen)return Mr(new re.DatabaseClosed);_t.open().catch(ue)}return _t._state.dbReadyPromise.then(()=>po(_t,it,We,Qe))}const mi=String.fromCharCode(65535),ar="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Xr=[],lo=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),_o=lo,bo=lo,It=_t=>!/(dexie\.js|dexie\.min\.js)/.test(_t);function en(_t,it){return _t?it?function(){return _t.apply(this,arguments)&&it.apply(this,arguments)}:_t:it}const jn={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function vi(_t){return"string"!=typeof _t||/\./.test(_t)?it=>it:it=>(void 0===it[_t]&&_t in it&&delete(it=U(it))[_t],it)}class _i{_trans(it,We,Qe){const rt=this._tx||vt.trans,$t=this.name;function pn(Jn,Pi,yi){if(!yi.schema[$t])throw new re.NotFound("Table "+$t+" not part of transaction");return We(yi.idbtrans,yi)}const Gn=Ji();try{return rt&&rt.db===this.db?rt===vt.trans?rt._promise(it,pn,Qe):hi(()=>rt._promise(it,pn,Qe),{trans:rt,transless:vt.transless||vt}):po(this.db,it,[this.name],pn)}finally{Gn&&Sn()}}get(it,We){return it&&it.constructor===Object?this.where(it).first(We):this._trans("readonly",Qe=>this.core.get({trans:Qe,key:it}).then(rt=>this.hook.reading.fire(rt))).then(We)}where(it){if("string"==typeof it)return new this.db.WhereClause(this,it);if(I(it))return new this.db.WhereClause(this,`[${it.join("+")}]`);const We=c(it);if(1===We.length)return this.where(We[0]).equals(it[We[0]]);const Qe=this.schema.indexes.concat(this.schema.primKey).filter(Pi=>Pi.compound&&We.every(yi=>Pi.keyPath.indexOf(yi)>=0)&&Pi.keyPath.every(yi=>We.indexOf(yi)>=0))[0];if(Qe&&this.db._maxKey!==mi)return this.where(Qe.name).equals(Qe.keyPath.map(Pi=>it[Pi]));!Qe&&X&&console.warn(`The query ${JSON.stringify(it)} on ${this.name} would benefit of a compound index [${We.join("+")}]`);const{idxByName:rt}=this.schema,$t=this.db._deps.indexedDB;function pn(Pi,yi){try{return 0===$t.cmp(Pi,yi)}catch{return!1}}const[Gn,Jn]=We.reduce(([Pi,yi],Ei)=>{const bi=rt[Ei],Xi=it[Ei];return[Pi||bi,Pi||!bi?en(yi,bi&&bi.multi?mr=>{const lr=T(mr,Ei);return I(lr)&&lr.some(yr=>pn(Xi,yr))}:mr=>pn(Xi,T(mr,Ei))):yi]},[null,null]);return Gn?this.where(Gn.name).equals(it[Gn.keyPath]).filter(Jn):Qe?this.filter(Jn):this.where(We).equals("")}filter(it){return this.toCollection().and(it)}count(it){return this.toCollection().count(it)}offset(it){return this.toCollection().offset(it)}limit(it){return this.toCollection().limit(it)}each(it){return this.toCollection().each(it)}toArray(it){return this.toCollection().toArray(it)}toCollection(){return new this.db.Collection(new this.db.WhereClause(this))}orderBy(it){return new this.db.Collection(new this.db.WhereClause(this,I(it)?`[${it.join("+")}]`:it))}reverse(){return this.toCollection().reverse()}mapToClass(it){this.schema.mappedClass=it;const We=Qe=>{if(!Qe)return Qe;const rt=Object.create(it.prototype);for(var $t in Qe)if(p(Qe,$t))try{rt[$t]=Qe[$t]}catch{}return rt};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=We,this.hook("reading",We),it}defineClass(){return this.mapToClass(function(it){C(this,it)})}add(it,We){const{auto:Qe,keyPath:rt}=this.schema.primKey;let $t=it;return rt&&Qe&&($t=vi(rt)(it)),this._trans("readwrite",pn=>this.core.mutate({trans:pn,type:"add",keys:null!=We?[We]:null,values:[$t]})).then(pn=>pn.numFailures?xn.reject(pn.failures[0]):pn.lastResult).then(pn=>{if(rt)try{k(it,rt,pn)}catch{}return pn})}update(it,We){if("object"!=typeof it||I(it))return this.where(":id").equals(it).modify(We);{const Qe=T(it,this.schema.primKey.keyPath);if(void 0===Qe)return Mr(new re.InvalidArgument("Given object does not contain its primary key"));try{"function"!=typeof We?c(We).forEach(rt=>{k(it,rt,We[rt])}):We(it,{value:it,primKey:Qe})}catch{}return this.where(":id").equals(Qe).modify(We)}}put(it,We){const{auto:Qe,keyPath:rt}=this.schema.primKey;let $t=it;return rt&&Qe&&($t=vi(rt)(it)),this._trans("readwrite",pn=>this.core.mutate({trans:pn,type:"put",values:[$t],keys:null!=We?[We]:null})).then(pn=>pn.numFailures?xn.reject(pn.failures[0]):pn.lastResult).then(pn=>{if(rt)try{k(it,rt,pn)}catch{}return pn})}delete(it){return this._trans("readwrite",We=>this.core.mutate({trans:We,type:"delete",keys:[it]})).then(We=>We.numFailures?xn.reject(We.failures[0]):void 0)}clear(){return this._trans("readwrite",it=>this.core.mutate({trans:it,type:"deleteRange",range:jn})).then(it=>it.numFailures?xn.reject(it.failures[0]):void 0)}bulkGet(it){return this._trans("readonly",We=>this.core.getMany({keys:it,trans:We}).then(Qe=>Qe.map(rt=>this.hook.reading.fire(rt))))}bulkAdd(it,We,Qe){const rt=Array.isArray(We)?We:void 0,$t=(Qe=Qe||(rt?void 0:We))?Qe.allKeys:void 0;return this._trans("readwrite",pn=>{const{auto:Gn,keyPath:Jn}=this.schema.primKey;if(Jn&&rt)throw new re.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(rt&&rt.length!==it.length)throw new re.InvalidArgument("Arguments objects and keys must have the same length");const Pi=it.length;let yi=Jn&&Gn?it.map(vi(Jn)):it;return this.core.mutate({trans:pn,type:"add",keys:rt,values:yi,wantResults:$t}).then(({numFailures:Ei,results:bi,lastResult:Xi,failures:mr})=>{if(0===Ei)return $t?bi:Xi;throw new le(`${this.name}.bulkAdd(): ${Ei} of ${Pi} operations failed`,mr)})})}bulkPut(it,We,Qe){const rt=Array.isArray(We)?We:void 0,$t=(Qe=Qe||(rt?void 0:We))?Qe.allKeys:void 0;return this._trans("readwrite",pn=>{const{auto:Gn,keyPath:Jn}=this.schema.primKey;if(Jn&&rt)throw new re.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(rt&&rt.length!==it.length)throw new re.InvalidArgument("Arguments objects and keys must have the same length");const Pi=it.length;let yi=Jn&&Gn?it.map(vi(Jn)):it;return this.core.mutate({trans:pn,type:"put",keys:rt,values:yi,wantResults:$t}).then(({numFailures:Ei,results:bi,lastResult:Xi,failures:mr})=>{if(0===Ei)return $t?bi:Xi;throw new le(`${this.name}.bulkPut(): ${Ei} of ${Pi} operations failed`,mr)})})}bulkDelete(it){const We=it.length;return this._trans("readwrite",Qe=>this.core.mutate({trans:Qe,type:"delete",keys:it})).then(({numFailures:Qe,lastResult:rt,failures:$t})=>{if(0===Qe)return rt;throw new le(`${this.name}.bulkDelete(): ${Qe} of ${We} operations failed`,$t)})}}function dn(_t){var it={},We=function(Gn,Jn){if(Jn){for(var Pi=arguments.length,yi=new Array(Pi-1);--Pi;)yi[Pi-1]=arguments[Pi];return it[Gn].subscribe.apply(null,yi),_t}if("string"==typeof Gn)return it[Gn]};We.addEventType=$t;for(var Qe=1,rt=arguments.length;Qe<rt;++Qe)$t(arguments[Qe]);return We;function $t(Gn,Jn,Pi){if("object"==typeof Gn)return pn(Gn);Jn||(Jn=gt),Pi||(Pi=ue);var yi={subscribers:[],fire:Pi,subscribe:function(Ei){-1===yi.subscribers.indexOf(Ei)&&(yi.subscribers.push(Ei),yi.fire=Jn(yi.fire,Ei))},unsubscribe:function(Ei){yi.subscribers=yi.subscribers.filter(function(bi){return bi!==Ei}),yi.fire=yi.subscribers.reduce(Jn,Pi)}};return it[Gn]=We[Gn]=yi,yi}function pn(Gn){c(Gn).forEach(function(Jn){var Pi=Gn[Jn];if(I(Pi))$t(Jn,Gn[Jn][0],Gn[Jn][1]);else{if("asap"!==Pi)throw new re.InvalidArgument("Invalid event config");var yi=$t(Jn,be,function(){for(var Ei=arguments.length,bi=new Array(Ei);Ei--;)bi[Ei]=arguments[Ei];yi.subscribers.forEach(function(Xi){O(function(){Xi.apply(null,bi)})})})}})}}function Tn(_t,it){return h(it).from({prototype:_t}),it}function Zn(_t,it){return!(_t.filter||_t.algorithm||_t.or)&&(it?_t.justLimit:!_t.replayFilter)}function fi(_t,it){_t.filter=en(_t.filter,it)}function Li(_t,it,We){var Qe=_t.replayFilter;_t.replayFilter=Qe?()=>en(Qe(),it()):it,_t.justLimit=We&&!Qe}function sr(_t,it){if(_t.isPrimKey)return it.primaryKey;const We=it.getIndexByKeyPath(_t.index);if(!We)throw new re.Schema("KeyPath "+_t.index+" on object store "+it.name+" is not indexed");return We}function gr(_t,it,We){const Qe=sr(_t,it.schema);return it.openCursor({trans:We,values:!_t.keysOnly,reverse:"prev"===_t.dir,unique:!!_t.unique,query:{index:Qe,range:_t.range}})}function Qt(_t,it,We,Qe){const rt=_t.replayFilter?en(_t.filter,_t.replayFilter()):_t.filter;if(_t.or){const $t={},pn=(Gn,Jn,Pi)=>{if(!rt||rt(Jn,Pi,bi=>Jn.stop(bi),bi=>Jn.fail(bi))){var yi=Jn.primaryKey,Ei=""+yi;"[object ArrayBuffer]"===Ei&&(Ei=""+new Uint8Array(yi)),p($t,Ei)||($t[Ei]=!0,it(Gn,Jn,Pi))}};return Promise.all([_t.or._iterate(pn,We),_n(gr(_t,Qe,We),_t.algorithm,pn,!_t.keysOnly&&_t.valueMapper)])}return _n(gr(_t,Qe,We),en(_t.algorithm,rt),it,!_t.keysOnly&&_t.valueMapper)}function _n(_t,it,We,Qe){var rt=ci(Qe?($t,pn,Gn)=>We(Qe($t),pn,Gn):We);return _t.then($t=>{if($t)return $t.start(()=>{var pn=()=>$t.continue();it&&!it($t,Gn=>pn=Gn,Gn=>{$t.stop(Gn),pn=ue},Gn=>{$t.fail(Gn),pn=ue})||rt($t.value,$t,Gn=>pn=Gn),pn()})})}function Ze(_t,it){try{const We=Ct(_t),Qe=Ct(it);if(We!==Qe)return"Array"===We?1:"Array"===Qe?-1:"binary"===We?1:"binary"===Qe?-1:"string"===We?1:"string"===Qe?-1:"Date"===We?1:"Date"!==Qe?NaN:-1;switch(We){case"number":case"Date":case"string":return _t>it?1:_t<it?-1:0;case"binary":return function(rt,$t){const pn=rt.length,Gn=$t.length,Jn=pn<Gn?pn:Gn;for(let Pi=0;Pi<Jn;++Pi)if(rt[Pi]!==$t[Pi])return rt[Pi]<$t[Pi]?-1:1;return pn===Gn?0:pn<Gn?-1:1}(ft(_t),ft(it));case"Array":return function(rt,$t){const pn=rt.length,Gn=$t.length,Jn=pn<Gn?pn:Gn;for(let Pi=0;Pi<Jn;++Pi){const yi=Ze(rt[Pi],$t[Pi]);if(0!==yi)return yi}return pn===Gn?0:pn<Gn?-1:1}(_t,it)}}catch{}return NaN}function Ct(_t){const it=typeof _t;if("object"!==it)return it;if(ArrayBuffer.isView(_t))return"binary";const We=J(_t);return"ArrayBuffer"===We?"binary":We}function ft(_t){return _t instanceof Uint8Array?_t:ArrayBuffer.isView(_t)?new Uint8Array(_t.buffer,_t.byteOffset,_t.byteLength):new Uint8Array(_t)}class zt{_read(it,We){var Qe=this._ctx;return Qe.error?Qe.table._trans(null,Mr.bind(null,Qe.error)):Qe.table._trans("readonly",it).then(We)}_write(it){var We=this._ctx;return We.error?We.table._trans(null,Mr.bind(null,We.error)):We.table._trans("readwrite",it,"locked")}_addAlgorithm(it){var We=this._ctx;We.algorithm=en(We.algorithm,it)}_iterate(it,We){return Qt(this._ctx,it,We,this._ctx.table.core)}clone(it){var We=Object.create(this.constructor.prototype),Qe=Object.create(this._ctx);return it&&C(Qe,it),We._ctx=Qe,We}raw(){return this._ctx.valueMapper=null,this}each(it){var We=this._ctx;return this._read(Qe=>Qt(We,it,Qe,We.table.core))}count(it){return this._read(We=>{const Qe=this._ctx,rt=Qe.table.core;if(Zn(Qe,!0))return rt.count({trans:We,query:{index:sr(Qe,rt.schema),range:Qe.range}}).then(pn=>Math.min(pn,Qe.limit));var $t=0;return Qt(Qe,()=>(++$t,!1),We,rt).then(()=>$t)}).then(it)}sortBy(it,We){const Qe=it.split(".").reverse(),rt=Qe[0],$t=Qe.length-1;function pn(Pi,yi){return yi?pn(Pi[Qe[yi]],yi-1):Pi[rt]}var Gn="next"===this._ctx.dir?1:-1;function Jn(Pi,yi){var Ei=pn(Pi,$t),bi=pn(yi,$t);return Ei<bi?-Gn:Ei>bi?Gn:0}return this.toArray(function(Pi){return Pi.sort(Jn)}).then(We)}toArray(it){return this._read(We=>{var Qe=this._ctx;if("next"===Qe.dir&&Zn(Qe,!0)&&Qe.limit>0){const{valueMapper:rt}=Qe,$t=sr(Qe,Qe.table.core.schema);return Qe.table.core.query({trans:We,limit:Qe.limit,values:!0,query:{index:$t,range:Qe.range}}).then(({result:pn})=>rt?pn.map(rt):pn)}{const rt=[];return Qt(Qe,$t=>rt.push($t),We,Qe.table.core).then(()=>rt)}},it)}offset(it){var We=this._ctx;return it<=0||(We.offset+=it,Zn(We)?Li(We,()=>{var Qe=it;return(rt,$t)=>0===Qe||(1===Qe?(--Qe,!1):($t(()=>{rt.advance(Qe),Qe=0}),!1))}):Li(We,()=>{var Qe=it;return()=>--Qe<0})),this}limit(it){return this._ctx.limit=Math.min(this._ctx.limit,it),Li(this._ctx,()=>{var We=it;return function(Qe,rt,$t){return--We<=0&&rt($t),We>=0}},!0),this}until(it,We){return fi(this._ctx,function(Qe,rt,$t){return!it(Qe.value)||(rt($t),We)}),this}first(it){return this.limit(1).toArray(function(We){return We[0]}).then(it)}last(it){return this.reverse().first(it)}filter(it){var We;return fi(this._ctx,function(rt){return it(rt.value)}),(We=this._ctx).isMatch=en(We.isMatch,it),this}and(it){return this.filter(it)}or(it){return new this.db.WhereClause(this._ctx.table,it,this)}reverse(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this}desc(){return this.reverse()}eachKey(it){var We=this._ctx;return We.keysOnly=!We.isMatch,this.each(function(Qe,rt){it(rt.key,rt)})}eachUniqueKey(it){return this._ctx.unique="unique",this.eachKey(it)}eachPrimaryKey(it){var We=this._ctx;return We.keysOnly=!We.isMatch,this.each(function(Qe,rt){it(rt.primaryKey,rt)})}keys(it){var We=this._ctx;We.keysOnly=!We.isMatch;var Qe=[];return this.each(function(rt,$t){Qe.push($t.key)}).then(function(){return Qe}).then(it)}primaryKeys(it){var We=this._ctx;if("next"===We.dir&&Zn(We,!0)&&We.limit>0)return this._read(rt=>{var $t=sr(We,We.table.core.schema);return We.table.core.query({trans:rt,values:!1,limit:We.limit,query:{index:$t,range:We.range}})}).then(({result:rt})=>rt).then(it);We.keysOnly=!We.isMatch;var Qe=[];return this.each(function(rt,$t){Qe.push($t.primaryKey)}).then(function(){return Qe}).then(it)}uniqueKeys(it){return this._ctx.unique="unique",this.keys(it)}firstKey(it){return this.limit(1).keys(function(We){return We[0]}).then(it)}lastKey(it){return this.reverse().firstKey(it)}distinct(){var it=this._ctx,We=it.index&&it.table.schema.idxByName[it.index];if(!We||!We.multi)return this;var Qe={};return fi(this._ctx,function(rt){var $t=rt.primaryKey.toString(),pn=p(Qe,$t);return Qe[$t]=!0,!pn}),this}modify(it){var We=this._ctx;return this._write(Qe=>{var rt;if("function"==typeof it)rt=it;else{var $t=c(it),pn=$t.length;rt=function(lr){for(var yr=!1,$i=0;$i<pn;++$i){var ir=$t[$i],Ir=it[ir];T(lr,ir)!==Ir&&(k(lr,ir,Ir),yr=!0)}return yr}}const Gn=We.table.core,{outbound:Jn,extractKey:Pi}=Gn.schema.primaryKey,yi=this.db._options.modifyChunkSize||200,Ei=[];let bi=0;const Xi=[],mr=(lr,yr)=>{const{failures:$i,numFailures:ir}=yr;bi+=lr-ir;for(let Ir of c($i))Ei.push($i[Ir])};return this.clone().primaryKeys().then(lr=>{const yr=$i=>{const ir=Math.min(yi,lr.length-$i);return Gn.getMany({trans:Qe,keys:lr.slice($i,$i+ir),cache:"immutable"}).then(Ir=>{const Hr=[],Or=[],Pr=Jn?[]:null,Ar=[];for(let eo=0;eo<ir;++eo){const Dn=Ir[eo],Zt={value:U(Dn),primKey:lr[$i+eo]};!1!==rt.call(Zt,Zt.value,Zt)&&(null==Zt.value?Ar.push(lr[$i+eo]):Jn||0===Ze(Pi(Dn),Pi(Zt.value))?(Or.push(Zt.value),Jn&&Pr.push(lr[$i+eo])):(Ar.push(lr[$i+eo]),Hr.push(Zt.value)))}const qr=Zn(We)&&We.limit===1/0&&("function"!=typeof it||it===wt)&&{index:We.index,range:We.range};return Promise.resolve(Hr.length>0&&Gn.mutate({trans:Qe,type:"add",values:Hr}).then(eo=>{for(let Dn in eo.failures)Ar.splice(parseInt(Dn),1);mr(Hr.length,eo)})).then(()=>(Or.length>0||qr&&"object"==typeof it)&&Gn.mutate({trans:Qe,type:"put",keys:Pr,values:Or,criteria:qr,changeSpec:"function"!=typeof it&&it}).then(eo=>mr(Or.length,eo))).then(()=>(Ar.length>0||qr&&it===wt)&&Gn.mutate({trans:Qe,type:"delete",keys:Ar,criteria:qr}).then(eo=>mr(Ar.length,eo))).then(()=>lr.length>$i+ir&&yr($i+yi))})};return yr(0).then(()=>{if(Ei.length>0)throw new ce("Error modifying one or more objects",Ei,bi,Xi);return lr.length})})})}delete(){var it=this._ctx,We=it.range;return Zn(it)&&(it.isPrimKey&&!bo||3===We.type)?this._write(Qe=>{const{primaryKey:rt}=it.table.core.schema,$t=We;return it.table.core.count({trans:Qe,query:{index:rt,range:$t}}).then(pn=>it.table.core.mutate({trans:Qe,type:"deleteRange",range:$t}).then(({failures:Gn,numFailures:yi})=>{if(yi)throw new ce("Could not delete some values",Object.keys(Gn).map(Ei=>Gn[Ei]),pn-yi);return pn-yi}))}):this.modify(wt)}}const wt=(_t,it)=>it.value=null;function Xt(_t,it){return _t<it?-1:_t===it?0:1}function fn(_t,it){return _t>it?-1:_t===it?0:1}function Ke(_t,it,We){var Qe=_t instanceof $n?new _t.Collection(_t):_t;return Qe._ctx.error=We?new We(it):new TypeError(it),Qe}function ht(_t){return new _t.Collection(_t,()=>Nn("")).limit(0)}function on(_t,it,We,Qe,rt,$t){for(var pn=Math.min(_t.length,Qe.length),Gn=-1,Jn=0;Jn<pn;++Jn){var Pi=it[Jn];if(Pi!==Qe[Jn])return rt(_t[Jn],We[Jn])<0?_t.substr(0,Jn)+We[Jn]+We.substr(Jn+1):rt(_t[Jn],Qe[Jn])<0?_t.substr(0,Jn)+Qe[Jn]+We.substr(Jn+1):Gn>=0?_t.substr(0,Gn)+it[Gn]+We.substr(Gn+1):null;rt(_t[Jn],Pi)<0&&(Gn=Jn)}return pn<Qe.length&&"next"===$t?_t+We.substr(_t.length):pn<_t.length&&"prev"===$t?_t.substr(0,We.length):Gn<0?null:_t.substr(0,Gn)+Qe[Gn]+We.substr(Gn+1)}function hn(_t,it,We,Qe){var rt,$t,pn,Gn,Jn,Pi,yi,Ei=We.length;if(!We.every(lr=>"string"==typeof lr))return Ke(_t,"String expected.");function bi(lr){rt="next"===lr?ir=>ir.toUpperCase():ir=>ir.toLowerCase(),$t="next"===lr?ir=>ir.toLowerCase():ir=>ir.toUpperCase(),pn="next"===lr?Xt:fn;var yr=We.map(function($i){return{lower:$t($i),upper:rt($i)}}).sort(function($i,ir){return pn($i.lower,ir.lower)});Gn=yr.map(function($i){return $i.upper}),Jn=yr.map(function($i){return $i.lower}),Pi=lr,yi="next"===lr?"":Qe}bi("next");var Xi=new _t.Collection(_t,()=>an(Gn[0],Jn[Ei-1]+Qe));Xi._ondirectionchange=function(lr){bi(lr)};var mr=0;return Xi._addAlgorithm(function(lr,yr,$i){var ir=lr.key;if("string"!=typeof ir)return!1;var Ir=$t(ir);if(it(Ir,Jn,mr))return!0;for(var Hr=null,Or=mr;Or<Ei;++Or){var Pr=on(ir,Ir,Gn[Or],Jn[Or],pn,Pi);null===Pr&&null===Hr?mr=Or+1:(null===Hr||pn(Hr,Pr)>0)&&(Hr=Pr)}return yr(null!==Hr?function(){lr.continue(Hr+yi)}:$i),!1}),Xi}function an(_t,it,We,Qe){return{type:2,lower:_t,upper:it,lowerOpen:We,upperOpen:Qe}}function Nn(_t){return{type:1,lower:_t,upper:_t}}class $n{get Collection(){return this._ctx.table.db.Collection}between(it,We,Qe,rt){Qe=!1!==Qe,rt=!0===rt;try{return this._cmp(it,We)>0||0===this._cmp(it,We)&&(Qe||rt)&&(!Qe||!rt)?ht(this):new this.Collection(this,()=>an(it,We,!Qe,!rt))}catch{return Ke(this,ar)}}equals(it){return null==it?Ke(this,ar):new this.Collection(this,()=>Nn(it))}above(it){return null==it?Ke(this,ar):new this.Collection(this,()=>an(it,void 0,!0))}aboveOrEqual(it){return null==it?Ke(this,ar):new this.Collection(this,()=>an(it,void 0,!1))}below(it){return null==it?Ke(this,ar):new this.Collection(this,()=>an(void 0,it,!1,!0))}belowOrEqual(it){return null==it?Ke(this,ar):new this.Collection(this,()=>an(void 0,it))}startsWith(it){return"string"!=typeof it?Ke(this,"String expected."):this.between(it,it+mi,!0,!0)}startsWithIgnoreCase(it){return""===it?this.startsWith(it):hn(this,(We,Qe)=>0===We.indexOf(Qe[0]),[it],mi)}equalsIgnoreCase(it){return hn(this,(We,Qe)=>We===Qe[0],[it],"")}anyOfIgnoreCase(){var it=q.apply(G,arguments);return 0===it.length?ht(this):hn(this,(We,Qe)=>-1!==Qe.indexOf(We),it,"")}startsWithAnyOfIgnoreCase(){var it=q.apply(G,arguments);return 0===it.length?ht(this):hn(this,(We,Qe)=>Qe.some(rt=>0===We.indexOf(rt)),it,mi)}anyOf(){const it=q.apply(G,arguments);let We=this._cmp;try{it.sort(We)}catch{return Ke(this,ar)}if(0===it.length)return ht(this);const Qe=new this.Collection(this,()=>an(it[0],it[it.length-1]));Qe._ondirectionchange=$t=>{We="next"===$t?this._ascending:this._descending,it.sort(We)};let rt=0;return Qe._addAlgorithm(($t,pn,Gn)=>{const Jn=$t.key;for(;We(Jn,it[rt])>0;)if(++rt,rt===it.length)return pn(Gn),!1;return 0===We(Jn,it[rt])||(pn(()=>{$t.continue(it[rt])}),!1)}),Qe}notEqual(it){return this.inAnyRange([[-1/0,it],[it,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})}noneOf(){const it=q.apply(G,arguments);if(0===it.length)return new this.Collection(this);try{it.sort(this._ascending)}catch{return Ke(this,ar)}const We=it.reduce((Qe,rt)=>Qe?Qe.concat([[Qe[Qe.length-1][1],rt]]):[[-1/0,rt]],null);return We.push([it[it.length-1],this.db._maxKey]),this.inAnyRange(We,{includeLowers:!1,includeUppers:!1})}inAnyRange(it,We){const Qe=this._cmp,rt=this._ascending,$t=this._descending,pn=this._min,Gn=this._max;if(0===it.length)return ht(this);if(!it.every(ir=>void 0!==ir[0]&&void 0!==ir[1]&&rt(ir[0],ir[1])<=0))return Ke(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",re.InvalidArgument);const Jn=!We||!1!==We.includeLowers,Pi=We&&!0===We.includeUppers;let yi,Ei=rt;function bi(ir,Ir){return Ei(ir[0],Ir[0])}try{yi=it.reduce(function(ir,Ir){let Hr=0,Or=ir.length;for(;Hr<Or;++Hr){const Pr=ir[Hr];if(Qe(Ir[0],Pr[1])<0&&Qe(Ir[1],Pr[0])>0){Pr[0]=pn(Pr[0],Ir[0]),Pr[1]=Gn(Pr[1],Ir[1]);break}}return Hr===Or&&ir.push(Ir),ir},[]),yi.sort(bi)}catch{return Ke(this,ar)}let Xi=0;const mr=Pi?ir=>rt(ir,yi[Xi][1])>0:ir=>rt(ir,yi[Xi][1])>=0,lr=Jn?ir=>$t(ir,yi[Xi][0])>0:ir=>$t(ir,yi[Xi][0])>=0;let yr=mr;const $i=new this.Collection(this,()=>an(yi[0][0],yi[yi.length-1][1],!Jn,!Pi));return $i._ondirectionchange=ir=>{"next"===ir?(yr=mr,Ei=rt):(yr=lr,Ei=$t),yi.sort(bi)},$i._addAlgorithm((ir,Ir,Hr)=>{for(var Or=ir.key;yr(Or);)if(++Xi,Xi===yi.length)return Ir(Hr),!1;return!((mr(Pr=Or)||lr(Pr))&&(0===this._cmp(Or,yi[Xi][1])||0===this._cmp(Or,yi[Xi][0])||Ir(()=>{ir.continue(Ei===rt?yi[Xi][0]:yi[Xi][1])}),1));var Pr}),$i}startsWithAnyOf(){const it=q.apply(G,arguments);return it.every(We=>"string"==typeof We)?0===it.length?ht(this):this.inAnyRange(it.map(We=>[We,We+mi])):Ke(this,"startsWithAnyOf() only works with strings")}}function ot(_t){return ci(function(it){return Bt(it),_t(it.target.error),!1})}function Bt(_t){_t.stopPropagation&&_t.stopPropagation(),_t.preventDefault&&_t.preventDefault()}const nn=dn(null,"storagemutated");class On{_lock(){return S(!vt.global),++this._reculock,1!==this._reculock||vt.global||(vt.lockOwnerFor=this),this}_unlock(){if(S(!vt.global),0==--this._reculock)for(vt.global||(vt.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var it=this._blockedFuncs.shift();try{Sr(it[1],it[0])}catch{}}return this}_locked(){return this._reculock&&vt.lockOwnerFor!==this}create(it){if(!this.mode)return this;const We=this.db.idbdb,Qe=this.db._state.dbOpenError;if(S(!this.idbtrans),!it&&!We)switch(Qe&&Qe.name){case"DatabaseClosedError":throw new re.DatabaseClosed(Qe);case"MissingAPIError":throw new re.MissingAPI(Qe.message,Qe);default:throw new re.OpenFailed(Qe)}if(!this.active)throw new re.TransactionInactive;return S(null===this._completion._state),(it=this.idbtrans=it||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):We.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}))).onerror=ci(rt=>{Bt(rt),this._reject(it.error)}),it.onabort=ci(rt=>{Bt(rt),this.active&&this._reject(new re.Abort(it.error)),this.active=!1,this.on("abort").fire(rt)}),it.oncomplete=ci(()=>{this.active=!1,this._resolve(),"mutatedParts"in it&&nn.storagemutated.fire(it.mutatedParts)}),this}_promise(it,We,Qe){if("readwrite"===it&&"readwrite"!==this.mode)return Mr(new re.ReadOnly("Transaction is readonly"));if(!this.active)return Mr(new re.TransactionInactive);if(this._locked())return new xn(($t,pn)=>{this._blockedFuncs.push([()=>{this._promise(it,We,Qe).then($t,pn)},vt])});if(Qe)return hi(()=>{var $t=new xn((pn,Gn)=>{this._lock();const Jn=We(pn,Gn,this);Jn&&Jn.then&&Jn.then(pn,Gn)});return $t.finally(()=>this._unlock()),$t._lib=!0,$t});var rt=new xn(($t,pn)=>{var Gn=We($t,pn,this);Gn&&Gn.then&&Gn.then($t,pn)});return rt._lib=!0,rt}_root(){return this.parent?this.parent._root():this}waitFor(it){var We=this._root();const Qe=xn.resolve(it);if(We._waitingFor)We._waitingFor=We._waitingFor.then(()=>Qe);else{We._waitingFor=Qe,We._waitingQueue=[];var rt=We.idbtrans.objectStore(We.storeNames[0]);!function pn(){for(++We._spinCount;We._waitingQueue.length;)We._waitingQueue.shift()();We._waitingFor&&(rt.get(-1/0).onsuccess=pn)}()}var $t=We._waitingFor;return new xn((pn,Gn)=>{Qe.then(Jn=>We._waitingQueue.push(ci(pn.bind(null,Jn))),Jn=>We._waitingQueue.push(ci(Gn.bind(null,Jn)))).finally(()=>{We._waitingFor===$t&&(We._waitingFor=null)})})}abort(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new re.Abort))}table(it){const We=this._memoizedTables||(this._memoizedTables={});if(p(We,it))return We[it];const Qe=this.schema[it];if(!Qe)throw new re.NotFound("Table "+it+" not part of transaction");const rt=new this.db.Table(it,Qe,this);return rt.core=this.db.core.table(it),We[it]=rt,rt}}function nt(_t,it,We,Qe,rt,$t,pn){return{name:_t,keyPath:it,unique:We,multi:Qe,auto:rt,compound:$t,src:(We&&!pn?"&":"")+(Qe?"*":"")+(rt?"++":"")+Rt(it)}}function Rt(_t){return"string"==typeof _t?_t:_t?"["+[].join.call(_t,"+")+"]":""}function pt(_t,it,We){return{name:_t,primKey:it,indexes:We,mappedClass:null,idxByName:w(We,Qe=>[Qe.name,Qe])}}let jt=_t=>{try{return _t.only([[]]),jt=()=>[[]],[[]]}catch{return jt=()=>mi,mi}};function Un(_t){return null==_t?()=>{}:"string"==typeof _t?1===(it=_t).split(".").length?We=>We[it]:We=>T(We,it):it=>T(it,_t);var it}function oi(_t){return[].slice.call(_t)}let xi=0;function Ai(_t){return null==_t?":id":"string"==typeof _t?_t:`[${_t.join("+")}]`}function Ui(_t,it,We){function Qe(Jn){if(3===Jn.type)return null;if(4===Jn.type)throw new Error("Cannot convert never type to IDBKeyRange");const{lower:Pi,upper:yi,lowerOpen:Ei,upperOpen:bi}=Jn;return void 0===Pi?void 0===yi?null:it.upperBound(yi,!!bi):void 0===yi?it.lowerBound(Pi,!!Ei):it.bound(Pi,yi,!!Ei,!!bi)}const{schema:rt,hasGetAll:$t}=function(Jn,Pi){const yi=oi(Jn.objectStoreNames);return{schema:{name:Jn.name,tables:yi.map(Ei=>Pi.objectStore(Ei)).map(Ei=>{const{keyPath:bi,autoIncrement:Xi}=Ei,mr=I(bi),yr={},$i={name:Ei.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:null==bi,compound:mr,keyPath:bi,autoIncrement:Xi,unique:!0,extractKey:Un(bi)},indexes:oi(Ei.indexNames).map(ir=>Ei.index(ir)).map(ir=>{const{name:Ir,unique:Hr,multiEntry:Or,keyPath:Pr}=ir,Ar={name:Ir,compound:I(Pr),keyPath:Pr,unique:Hr,multiEntry:Or,extractKey:Un(Pr)};return yr[Ai(Pr)]=Ar,Ar}),getIndexByKeyPath:ir=>yr[Ai(ir)]};return yr[":id"]=$i.primaryKey,null!=bi&&(yr[Ai(bi)]=$i.primaryKey),$i})},hasGetAll:yi.length>0&&"getAll"in Pi.objectStore(yi[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}(_t,We),pn=rt.tables.map(Jn=>function(Pi){const yi=Pi.name;return{name:yi,schema:Pi,mutate:function({trans:Ei,type:bi,keys:Xi,values:mr,range:lr}){return new Promise((yr,$i)=>{yr=ci(yr);const ir=Ei.objectStore(yi),Ir=null==ir.keyPath,Hr="put"===bi||"add"===bi;if(!Hr&&"delete"!==bi&&"deleteRange"!==bi)throw new Error("Invalid operation type: "+bi);const{length:Or}=Xi||mr||{length:1};if(Xi&&mr&&Xi.length!==mr.length)throw new Error("Given keys array must have same length as given values array.");if(0===Or)return yr({numFailures:0,failures:{},results:[],lastResult:void 0});let Pr;const Ar=[],qr=[];let eo=0;const Dn=Wt=>{++eo,Bt(Wt)};if("deleteRange"===bi){if(4===lr.type)return yr({numFailures:eo,failures:qr,results:[],lastResult:void 0});Ar.push(Pr=3===lr.type?ir.clear():ir.delete(Qe(lr)))}else{const[Wt,qn]=Hr?Ir?[mr,Xi]:[mr,null]:[Xi,null];if(Hr)for(let ni=0;ni<Or;++ni)Ar.push(Pr=qn&&void 0!==qn[ni]?ir[bi](Wt[ni],qn[ni]):ir[bi](Wt[ni])),Pr.onerror=Dn;else for(let ni=0;ni<Or;++ni)Ar.push(Pr=ir[bi](Wt[ni])),Pr.onerror=Dn}const Zt=Wt=>{const qn=Wt.target.result;Ar.forEach((ni,Di)=>null!=ni.error&&(qr[Di]=ni.error)),yr({numFailures:eo,failures:qr,results:"delete"===bi?Xi:Ar.map(ni=>ni.result),lastResult:qn})};Pr.onerror=Wt=>{Dn(Wt),Zt(Wt)},Pr.onsuccess=Zt})},getMany:({trans:Ei,keys:bi})=>new Promise((Xi,mr)=>{Xi=ci(Xi);const lr=Ei.objectStore(yi),yr=bi.length,$i=new Array(yr);let ir,Ir=0,Hr=0;const Or=Ar=>{const qr=Ar.target;$i[qr._pos]=qr.result,++Hr===Ir&&Xi($i)},Pr=ot(mr);for(let Ar=0;Ar<yr;++Ar)null!=bi[Ar]&&(ir=lr.get(bi[Ar]),ir._pos=Ar,ir.onsuccess=Or,ir.onerror=Pr,++Ir);0===Ir&&Xi($i)}),get:({trans:Ei,key:bi})=>new Promise((Xi,mr)=>{Xi=ci(Xi);const lr=Ei.objectStore(yi).get(bi);lr.onsuccess=yr=>Xi(yr.target.result),lr.onerror=ot(mr)}),query:(Ei=$t,bi=>new Promise((Xi,mr)=>{Xi=ci(Xi);const{trans:lr,values:yr,limit:$i,query:ir}=bi,Ir=$i===1/0?void 0:$i,{index:Hr,range:Or}=ir,Pr=lr.objectStore(yi),Ar=Hr.isPrimaryKey?Pr:Pr.index(Hr.name),qr=Qe(Or);if(0===$i)return Xi({result:[]});if(Ei){const eo=yr?Ar.getAll(qr,Ir):Ar.getAllKeys(qr,Ir);eo.onsuccess=Dn=>Xi({result:Dn.target.result}),eo.onerror=ot(mr)}else{let eo=0;const Dn=yr||!("openKeyCursor"in Ar)?Ar.openCursor(qr):Ar.openKeyCursor(qr),Zt=[];Dn.onsuccess=Wt=>{const qn=Dn.result;return qn?(Zt.push(yr?qn.value:qn.primaryKey),++eo===$i?Xi({result:Zt}):void qn.continue()):Xi({result:Zt})},Dn.onerror=ot(mr)}})),openCursor:function({trans:Ei,values:bi,query:Xi,reverse:mr,unique:lr}){return new Promise((yr,$i)=>{yr=ci(yr);const{index:ir,range:Ir}=Xi,Hr=Ei.objectStore(yi),Or=ir.isPrimaryKey?Hr:Hr.index(ir.name),Pr=mr?lr?"prevunique":"prev":lr?"nextunique":"next",Ar=bi||!("openKeyCursor"in Or)?Or.openCursor(Qe(Ir),Pr):Or.openKeyCursor(Qe(Ir),Pr);Ar.onerror=ot($i),Ar.onsuccess=ci(qr=>{const eo=Ar.result;if(!eo)return void yr(null);eo.___id=++xi,eo.done=!1;const Dn=eo.continue.bind(eo);let Zt=eo.continuePrimaryKey;Zt&&(Zt=Zt.bind(eo));const Wt=eo.advance.bind(eo),qn=()=>{throw new Error("Cursor not stopped")};eo.trans=Ei,eo.stop=eo.continue=eo.continuePrimaryKey=eo.advance=()=>{throw new Error("Cursor not started")},eo.fail=ci($i),eo.next=function(){let ni=1;return this.start(()=>ni--?this.continue():this.stop()).then(()=>this)},eo.start=ni=>{const Di=new Promise((cr,Jr)=>{cr=ci(cr),Ar.onerror=ot(Jr),eo.fail=Jr,eo.stop=Er=>{eo.stop=eo.continue=eo.continuePrimaryKey=eo.advance=qn,cr(Er)}}),Hi=()=>{if(Ar.result)try{ni()}catch(cr){eo.fail(cr)}else eo.done=!0,eo.start=()=>{throw new Error("Cursor behind last entry")},eo.stop()};return Ar.onsuccess=ci(cr=>{Ar.onsuccess=Hi,Hi()}),eo.continue=Dn,eo.continuePrimaryKey=Zt,eo.advance=Wt,Hi(),Di},yr(eo)},$i)})},count({query:Ei,trans:bi}){const{index:Xi,range:mr}=Ei;return new Promise((lr,yr)=>{const $i=bi.objectStore(yi),ir=Xi.isPrimaryKey?$i:$i.index(Xi.name),Ir=Qe(mr),Hr=Ir?ir.count(Ir):ir.count();Hr.onsuccess=ci(Or=>lr(Or.target.result)),Hr.onerror=ot(yr)})}};var Ei}(Jn)),Gn={};return pn.forEach(Jn=>Gn[Jn.name]=Jn),{stack:"dbcore",transaction:_t.transaction.bind(_t),table(Jn){if(!Gn[Jn])throw new Error(`Table '${Jn}' not found`);return Gn[Jn]},MIN_KEY:-1/0,MAX_KEY:jt(it),schema:rt}}function ji({_novip:_t},it){const Qe=function(rt,$t,{IDBKeyRange:pn},Jn){return{dbcore:(yi=Ui($t,pn,Jn),Ei=rt.dbcore,Ei.reduce((bi,{create:Xi})=>({...bi,...Xi(bi)}),yi))};var yi,Ei}(_t._middlewares,it.db,_t._deps,it);_t.core=Qe.dbcore,_t.tables.forEach(rt=>{const $t=rt.name;_t.core.schema.tables.some(pn=>pn.name===$t)&&(rt.core=_t.core.table($t),_t[$t]instanceof _t.Table&&(_t[$t].core=rt.core))})}function Qi({_novip:_t},it,We,Qe){We.forEach(rt=>{const $t=Qe[rt];it.forEach(pn=>{const Gn=x(pn,rt);(!Gn||"value"in Gn&&void 0===Gn.value)&&(pn===_t.Transaction.prototype||pn instanceof _t.Transaction?d(pn,rt,{get(){return this.table(rt)},set(Jn){l(this,rt,{value:Jn,writable:!0,configurable:!0,enumerable:!0})}}):pn[rt]=new _t.Table(rt,$t))})})}function Tr({_novip:_t},it){it.forEach(We=>{for(let Qe in We)We[Qe]instanceof _t.Table&&delete We[Qe]})}function br(_t,it){return _t._cfg.version-it._cfg.version}function ro(_t,it){const We={del:[],add:[],change:[]};let Qe;for(Qe in _t)it[Qe]||We.del.push(Qe);for(Qe in it){const rt=_t[Qe],$t=it[Qe];if(rt){const pn={name:Qe,def:$t,recreate:!1,del:[],add:[],change:[]};if(""+(rt.primKey.keyPath||"")!=""+($t.primKey.keyPath||"")||rt.primKey.auto!==$t.primKey.auto&&!lo)pn.recreate=!0,We.change.push(pn);else{const Gn=rt.idxByName,Jn=$t.idxByName;let Pi;for(Pi in Gn)Jn[Pi]||pn.del.push(Pi);for(Pi in Jn){const yi=Gn[Pi],Ei=Jn[Pi];yi?yi.src!==Ei.src&&pn.change.push(Ei):pn.add.push(Ei)}(pn.del.length>0||pn.add.length>0||pn.change.length>0)&&We.change.push(pn)}}else We.add.push([Qe,$t])}return We}function No(_t,it,We,Qe){const rt=_t.db.createObjectStore(it,We.keyPath?{keyPath:We.keyPath,autoIncrement:We.auto}:{autoIncrement:We.auto});return Qe.forEach($t=>uo(rt,$t)),rt}function uo(_t,it){_t.createIndex(it.name,it.keyPath,{unique:it.unique,multiEntry:it.multi})}function $o(_t,it,We){const Qe={};return y(it.objectStoreNames,0).forEach(rt=>{const $t=We.objectStore(rt);let pn=$t.keyPath;const Gn=nt(Rt(pn),pn||"",!1,!1,!!$t.autoIncrement,pn&&"string"!=typeof pn,!0),Jn=[];for(let yi=0;yi<$t.indexNames.length;++yi){const Ei=$t.index($t.indexNames[yi]);pn=Ei.keyPath;var Pi=nt(Ei.name,pn,!!Ei.unique,!!Ei.multiEntry,!1,pn&&"string"!=typeof pn,!1);Jn.push(Pi)}Qe[rt]=pt(rt,Gn,Jn)}),Qe}function pa({_novip:_t},it,We){const Qe=We.db.objectStoreNames;for(let rt=0;rt<Qe.length;++rt){const $t=Qe[rt],pn=We.objectStore($t);_t._hasGetAll="getAll"in pn;for(let Gn=0;Gn<pn.indexNames.length;++Gn){const Jn=pn.indexNames[Gn],Pi=pn.index(Jn).keyPath,yi="string"==typeof Pi?Pi:"["+y(Pi).join("+")+"]";if(it[$t]){const Ei=it[$t].idxByName[yi];Ei&&(Ei.name=Jn,delete it[$t].idxByName[yi],it[$t].idxByName[Jn]=Ei)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&o.WorkerGlobalScope&&o instanceof o.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(_t._hasGetAll=!1)}class ra{_parseStoresSpec(it,We){c(it).forEach(Qe=>{if(null!==it[Qe]){var rt=it[Qe].split(",").map((pn,Gn)=>{const Jn=(pn=pn.trim()).replace(/([&*]|\+\+)/g,""),Pi=/^\[/.test(Jn)?Jn.match(/^\[(.*)\]$/)[1].split("+"):Jn;return nt(Jn,Pi||null,/\&/.test(pn),/\*/.test(pn),/\+\+/.test(pn),I(Pi),0===Gn)}),$t=rt.shift();if($t.multi)throw new re.Schema("Primary key cannot be multi-valued");rt.forEach(pn=>{if(pn.auto)throw new re.Schema("Only primary key can be marked as autoIncrement (++)");if(!pn.keyPath)throw new re.Schema("Index must have a name and cannot be an empty string")}),We[Qe]=pt(Qe,$t,rt)}})}stores(it){const We=this.db;this._cfg.storesSource=this._cfg.storesSource?C(this._cfg.storesSource,it):it;const rt={};let $t={};return We._versions.forEach(pn=>{C(rt,pn._cfg.storesSource),$t=pn._cfg.dbschema={},pn._parseStoresSpec(rt,$t)}),We._dbSchema=$t,Tr(We,[We._allTables,We,We.Transaction.prototype]),Qi(We,[We._allTables,We,We.Transaction.prototype,this._cfg.tables],c($t),$t),We._storeNames=c($t),this}upgrade(it){return this._cfg.contentUpgrade=tn(this._cfg.contentUpgrade||ue,it),this}}function wo(_t,it){let We=_t._dbNamesDB;return We||(We=_t._dbNamesDB=new wa("__dbnames",{addons:[],indexedDB:_t,IDBKeyRange:it}),We.version(1).stores({dbnames:"name"})),We.table("dbnames")}function Uo(_t){return _t&&"function"==typeof _t.databases}function Ao(_t){return hi(function(){return vt.letThrough=!0,_t()})}function Da(){var _t;return!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent)&&indexedDB.databases?new Promise(function(it){var We=function(){return indexedDB.databases().finally(it)};_t=setInterval(We,100),We()}).finally(function(){return clearInterval(_t)}):Promise.resolve()}function jo(_t){var it=$t=>_t.next($t),We=rt(it),Qe=rt($t=>_t.throw($t));function rt($t){return pn=>{var Gn=$t(pn),Jn=Gn.value;return Gn.done?Jn:Jn&&"function"==typeof Jn.then?Jn.then(We,Qe):I(Jn)?Promise.all(Jn).then(We,Qe):We(Jn)}}return rt(it)()}function ga(_t,it,We){var Qe=arguments.length;if(Qe<2)throw new re.InvalidArgument("Too few arguments");for(var rt=new Array(Qe-1);--Qe;)rt[Qe-1]=arguments[Qe];We=rt.pop();var $t=B(rt);return[_t,$t,We]}function $a(_t,it,We,Qe,rt){return xn.resolve().then(()=>{const $t=vt.transless||vt,pn=_t._createTransaction(it,We,_t._dbSchema,Qe),Gn={trans:pn,transless:$t};if(Qe)pn.idbtrans=Qe.idbtrans;else try{pn.create(),_t._state.PR1398_maxLoop=3}catch(Ei){return Ei.name===pe.InvalidState&&_t.isOpen()&&--_t._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),_t._close(),_t.open().then(()=>$a(_t,it,We,null,rt))):Mr(Ei)}const Jn=Z(rt);let Pi;Jn&&Si();const yi=xn.follow(()=>{if(Pi=rt.call(pn,pn),Pi)if(Jn){var Ei=Yi.bind(null,null);Pi.then(Ei,Ei)}else"function"==typeof Pi.next&&"function"==typeof Pi.throw&&(Pi=jo(Pi))},Gn);return(Pi&&"function"==typeof Pi.then?xn.resolve(Pi).then(Ei=>pn.active?Ei:Mr(new re.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))):yi.then(()=>Pi)).then(Ei=>(Qe&&pn._resolve(),pn._completion.then(()=>Ei))).catch(Ei=>(pn._reject(Ei),Mr(Ei)))})}function oa(_t,it,We){const Qe=I(_t)?_t.slice():[_t];for(let rt=0;rt<We;++rt)Qe.push(it);return Qe}const ds={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:function(_t){return{..._t,table(it){const We=_t.table(it),{schema:Qe}=We,rt={},$t=[];function pn(yi,Ei,bi){const Xi=Ai(yi),mr=rt[Xi]=rt[Xi]||[],lr=null==yi?0:"string"==typeof yi?1:yi.length,yr=Ei>0,$i={...bi,isVirtual:yr,keyTail:Ei,keyLength:lr,extractKey:Un(yi),unique:!yr&&bi.unique};return mr.push($i),$i.isPrimaryKey||$t.push($i),lr>1&&pn(2===lr?yi[0]:yi.slice(0,lr-1),Ei+1,bi),mr.sort((ir,Ir)=>ir.keyTail-Ir.keyTail),$i}const Gn=pn(Qe.primaryKey.keyPath,0,Qe.primaryKey);rt[":id"]=[Gn];for(const yi of Qe.indexes)pn(yi.keyPath,0,yi);function Jn(yi){const Ei=yi.query.index;return Ei.isVirtual?{...yi,query:{index:Ei,range:(bi=yi.query.range,Xi=Ei.keyTail,{type:1===bi.type?2:bi.type,lower:oa(bi.lower,bi.lowerOpen?_t.MAX_KEY:_t.MIN_KEY,Xi),lowerOpen:!0,upper:oa(bi.upper,bi.upperOpen?_t.MIN_KEY:_t.MAX_KEY,Xi),upperOpen:!0})}}:yi;var bi,Xi}return{...We,schema:{...Qe,primaryKey:Gn,indexes:$t,getIndexByKeyPath:function(yi){const Ei=rt[Ai(yi)];return Ei&&Ei[0]}},count:yi=>We.count(Jn(yi)),query:yi=>We.query(Jn(yi)),openCursor(yi){const{keyTail:Ei,isVirtual:bi,keyLength:Xi}=yi.query.index;return bi?We.openCursor(Jn(yi)).then(mr=>{return mr&&(lr=mr,Object.create(lr,{continue:{value:function($i){null!=$i?lr.continue(oa($i,yi.reverse?_t.MAX_KEY:_t.MIN_KEY,Ei)):yi.unique?lr.continue(lr.key.slice(0,Xi).concat(yi.reverse?_t.MIN_KEY:_t.MAX_KEY,Ei)):lr.continue()}},continuePrimaryKey:{value($i,ir){lr.continuePrimaryKey(oa($i,_t.MAX_KEY,Ei),ir)}},primaryKey:{get:()=>lr.primaryKey},key:{get(){const $i=lr.key;return 1===Xi?$i[0]:$i.slice(0,Xi)}},value:{get:()=>lr.value}}));var lr}):We.openCursor(yi)}}}}}};function Xo(_t,it,We,Qe){return We=We||{},Qe=Qe||"",c(_t).forEach(rt=>{if(p(it,rt)){var $t=_t[rt],pn=it[rt];if("object"==typeof $t&&"object"==typeof pn&&$t&&pn){const Gn=J($t);Gn!==J(pn)?We[Qe+rt]=it[rt]:"Object"===Gn?Xo($t,pn,We,Qe+rt+"."):$t!==pn&&(We[Qe+rt]=it[rt])}else $t!==pn&&(We[Qe+rt]=it[rt])}else We[Qe+rt]=void 0}),c(it).forEach(rt=>{p(_t,rt)||(We[Qe+rt]=it[rt])}),We}const fa={stack:"dbcore",name:"HooksMiddleware",level:2,create:_t=>({..._t,table(it){const We=_t.table(it),{primaryKey:Qe}=We.schema;return{...We,mutate($t){const pn=vt.trans,{deleting:Gn,creating:Jn,updating:Pi}=pn.table(it).hook;switch($t.type){case"add":if(Jn.fire===ue)break;return pn._promise("readwrite",()=>yi($t),!0);case"put":if(Jn.fire===ue&&Pi.fire===ue)break;return pn._promise("readwrite",()=>yi($t),!0);case"delete":if(Gn.fire===ue)break;return pn._promise("readwrite",()=>yi($t),!0);case"deleteRange":if(Gn.fire===ue)break;return pn._promise("readwrite",()=>{return Ei((bi=$t).trans,bi.range,1e4);var bi},!0)}return We.mutate($t);function yi(bi){const Xi=vt.trans,mr=bi.keys||("delete"===(yr=bi).type?yr.keys:yr.keys||yr.values.map(Qe.extractKey));var yr;if(!mr)throw new Error("Keys missing");return"delete"!==(bi="add"===bi.type||"put"===bi.type?{...bi,keys:mr}:{...bi}).type&&(bi.values=[...bi.values]),bi.keys&&(bi.keys=[...bi.keys]),function(lr,yr,$i){return"add"===yr.type?Promise.resolve([]):lr.getMany({trans:yr.trans,keys:$i,cache:"immutable"})}(We,bi,mr).then(lr=>{const yr=mr.map(($i,ir)=>{const Ir=lr[ir],Hr={onerror:null,onsuccess:null};if("delete"===bi.type)Gn.fire.call(Hr,$i,Ir,Xi);else if("add"===bi.type||void 0===Ir){const Or=Jn.fire.call(Hr,$i,bi.values[ir],Xi);null==$i&&null!=Or&&(bi.keys[ir]=$i=Or,Qe.outbound||k(bi.values[ir],Qe.keyPath,$i))}else{const Or=Xo(Ir,bi.values[ir]),Pr=Pi.fire.call(Hr,Or,$i,Ir,Xi);if(Pr){const Ar=bi.values[ir];Object.keys(Pr).forEach(qr=>{p(Ar,qr)?Ar[qr]=Pr[qr]:k(Ar,qr,Pr[qr])})}}return Hr});return We.mutate(bi).then(({failures:$i,results:ir,numFailures:Ir,lastResult:Hr})=>{for(let Or=0;Or<mr.length;++Or){const Pr=ir?ir[Or]:mr[Or],Ar=yr[Or];null==Pr?Ar.onerror&&Ar.onerror($i[Or]):Ar.onsuccess&&Ar.onsuccess("put"===bi.type&&lr[Or]?bi.values[Or]:Pr)}return{failures:$i,results:ir,numFailures:Ir,lastResult:Hr}}).catch($i=>(yr.forEach(ir=>ir.onerror&&ir.onerror($i)),Promise.reject($i)))})}function Ei(bi,Xi,mr){return We.query({trans:bi,values:!1,query:{index:Qe,range:Xi},limit:mr}).then(({result:lr})=>yi({type:"delete",keys:lr,trans:bi}).then(yr=>yr.numFailures>0?Promise.reject(yr.failures[0]):lr.length<mr?{failures:[],numFailures:0,lastResult:void 0}:Ei(bi,{...Xi,lower:lr[lr.length-1],lowerOpen:!0},mr)))}}}}})};function Ia(_t,it,We){try{if(!it||it.keys.length<_t.length)return null;const Qe=[];for(let rt=0,$t=0;rt<it.keys.length&&$t<_t.length;++rt)0===Ze(it.keys[rt],_t[$t])&&(Qe.push(We?U(it.values[rt]):it.values[rt]),++$t);return Qe.length===_t.length?Qe:null}catch{return null}}const qo={stack:"dbcore",level:-1,create:_t=>({table:it=>{const We=_t.table(it);return{...We,getMany:Qe=>{if(!Qe.cache)return We.getMany(Qe);const rt=Ia(Qe.keys,Qe.trans._cache,"clone"===Qe.cache);return rt?xn.resolve(rt):We.getMany(Qe).then($t=>(Qe.trans._cache={keys:Qe.keys,values:"clone"===Qe.cache?U($t):$t},$t))},mutate:Qe=>("add"!==Qe.type&&(Qe.trans._cache=null),We.mutate(Qe))}}})};function Ba(_t){return!("from"in _t)}const Jo=function(_t,it){if(!this){const We=new Jo;return _t&&"d"in _t&&C(We,_t),We}C(this,arguments.length?{d:1,from:_t,to:arguments.length>1?it:_t}:{d:0})};function aa(_t,it,We){const Qe=Ze(it,We);if(isNaN(Qe))return;if(Qe>0)throw RangeError();if(Ba(_t))return C(_t,{from:it,to:We,d:1});const rt=_t.l,$t=_t.r;if(Ze(We,_t.from)<0)return rt?aa(rt,it,We):_t.l={from:it,to:We,d:1,l:null,r:null},Qo(_t);if(Ze(it,_t.to)>0)return $t?aa($t,it,We):_t.r={from:it,to:We,d:1,l:null,r:null},Qo(_t);Ze(it,_t.from)<0&&(_t.from=it,_t.l=null,_t.d=$t?$t.d+1:1),Ze(We,_t.to)>0&&(_t.to=We,_t.r=null,_t.d=_t.l?_t.l.d+1:1);const pn=!_t.r;rt&&!_t.l&&Ma(_t,rt),$t&&pn&&Ma(_t,$t)}function Ma(_t,it){Ba(it)||function We(Qe,{from:rt,to:$t,l:pn,r:Gn}){aa(Qe,rt,$t),pn&&We(Qe,pn),Gn&&We(Qe,Gn)}(_t,it)}function ma(_t){let it=Ba(_t)?null:{s:0,n:_t};return{next(We){const Qe=arguments.length>0;for(;it;)switch(it.s){case 0:if(it.s=1,Qe)for(;it.n.l&&Ze(We,it.n.from)<0;)it={up:it,n:it.n.l,s:1};else for(;it.n.l;)it={up:it,n:it.n.l,s:1};case 1:if(it.s=2,!Qe||Ze(We,it.n.to)<=0)return{value:it.n,done:!1};case 2:if(it.n.r){it.s=3,it={up:it,n:it.n.r,s:0};continue}case 3:it=it.up}return{done:!0}}}}function Qo(_t){var it,We;const Qe=((null===(it=_t.r)||void 0===it?void 0:it.d)||0)-((null===(We=_t.l)||void 0===We?void 0:We.d)||0),rt=Qe>1?"r":Qe<-1?"l":"";if(rt){const $t="r"===rt?"l":"r",pn={..._t},Gn=_t[rt];_t.from=Gn.from,_t.to=Gn.to,_t[rt]=Gn[rt],pn[rt]=Gn[$t],_t[$t]=pn,pn.d=Aa(pn)}_t.d=Aa(_t)}function Aa({r:_t,l:it}){return(_t?it?Math.max(_t.d,it.d):_t.d:it?it.d:0)+1}s(Jo.prototype,{add(_t){return Ma(this,_t),this},addKey(_t){return aa(this,_t,_t),this},addKeys(_t){return _t.forEach(it=>aa(this,it,it)),this},[j](){return ma(this)}});const ba={stack:"dbcore",level:0,create:_t=>{const it=_t.schema.name,We=new Jo(_t.MIN_KEY,_t.MAX_KEY);return{..._t,table:Qe=>{const rt=_t.table(Qe),{schema:$t}=rt,{primaryKey:pn}=$t,{extractKey:Gn,outbound:Jn}=pn,Pi={...rt,mutate:bi=>{const Xi=bi.trans,mr=Xi.mutatedParts||(Xi.mutatedParts={}),lr=Pr=>{const Ar=`idb://${it}/${Qe}/${Pr}`;return mr[Ar]||(mr[Ar]=new Jo)},yr=lr(""),$i=lr(":dels"),{type:ir}=bi;let[Ir,Hr]="deleteRange"===bi.type?[bi.range]:"delete"===bi.type?[bi.keys]:bi.values.length<50?[[],bi.values]:[];const Or=bi.trans._cache;return rt.mutate(bi).then(Pr=>{if(I(Ir)){"delete"!==ir&&(Ir=Pr.results),yr.addKeys(Ir);const Ar=Ia(Ir,Or);Ar||"add"===ir||$i.addKeys(Ir),(Ar||Hr)&&(qr=lr,Dn=Ar,Zt=Hr,$t.indexes.forEach(function Wt(qn){const ni=qr(qn.name||"");function Di(cr){return null!=cr?qn.extractKey(cr):null}const Hi=cr=>qn.multiEntry&&I(cr)?cr.forEach(Jr=>ni.addKey(Jr)):ni.addKey(cr);(Dn||Zt).forEach((cr,Jr)=>{const Er=Dn&&Di(Dn[Jr]),go=Zt&&Di(Zt[Jr]);0!==Ze(Er,go)&&(null!=Er&&Hi(Er),null!=go&&Hi(go))})}))}else if(Ir){const Ar={from:Ir.lower,to:Ir.upper};$i.add(Ar),yr.add(Ar)}else yr.add(We),$i.add(We),$t.indexes.forEach(Ar=>lr(Ar.name).add(We));var qr,Dn,Zt;return Pr})}},yi=({query:{index:bi,range:Xi}})=>{var mr,lr;return[bi,new Jo(null!==(mr=Xi.lower)&&void 0!==mr?mr:_t.MIN_KEY,null!==(lr=Xi.upper)&&void 0!==lr?lr:_t.MAX_KEY)]},Ei={get:bi=>[pn,new Jo(bi.key)],getMany:bi=>[pn,(new Jo).addKeys(bi.keys)],count:yi,query:yi,openCursor:yi};return c(Ei).forEach(bi=>{Pi[bi]=function(Xi){const{subscr:mr}=vt;if(mr){const lr=Hr=>{const Or=`idb://${it}/${Qe}/${Hr}`;return mr[Or]||(mr[Or]=new Jo)},yr=lr(""),$i=lr(":dels"),[ir,Ir]=Ei[bi](Xi);if(lr(ir.name||"").add(Ir),!ir.isPrimaryKey){if("count"!==bi){const Hr="query"===bi&&Jn&&Xi.values&&rt.query({...Xi,values:!1});return rt[bi].apply(this,arguments).then(Or=>{if("query"===bi){if(Jn&&Xi.values)return Hr.then(({result:Ar})=>(yr.addKeys(Ar),Or));const Pr=Xi.values?Or.result.map(Gn):Or.result;Xi.values?yr.addKeys(Pr):$i.addKeys(Pr)}else if("openCursor"===bi){const Pr=Or,Ar=Xi.values;return Pr&&Object.create(Pr,{key:{get:()=>($i.addKey(Pr.primaryKey),Pr.key)},primaryKey:{get(){const qr=Pr.primaryKey;return $i.addKey(qr),qr}},value:{get:()=>(Ar&&yr.addKey(Pr.primaryKey),Pr.value)}})}return Or})}$i.add(We)}}return rt[bi].apply(this,arguments)}}),Pi}}}};class wa{constructor(it,We){this._middlewares={},this.verno=0;const Qe=wa.dependencies;this._options=We={addons:wa.addons,autoOpen:!0,indexedDB:Qe.indexedDB,IDBKeyRange:Qe.IDBKeyRange,...We},this._deps={indexedDB:We.indexedDB,IDBKeyRange:We.IDBKeyRange};const{addons:rt}=We;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;const $t={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:ue,dbReadyPromise:null,cancelOpen:ue,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};var pn,Gn;$t.dbReadyPromise=new xn(Gn=>{$t.dbReadyResolve=Gn}),$t.openCanceller=new xn((Gn,Jn)=>{$t.cancelOpen=Jn}),this._state=$t,this.name=it,this.on=dn(this,"populate","blocked","versionchange","close",{ready:[tn,ue]}),this.on.ready.subscribe=E(this.on.ready.subscribe,Gn=>(Jn,Pi)=>{wa.vip(()=>{const yi=this._state;if(yi.openComplete)yi.dbOpenError||xn.resolve().then(Jn),Pi&&Gn(Jn);else if(yi.onReadyBeingFired)yi.onReadyBeingFired.push(Jn),Pi&&Gn(Jn);else{Gn(Jn);const Ei=this;Pi||Gn(function bi(){Ei.on.ready.unsubscribe(Jn),Ei.on.ready.unsubscribe(bi)})}})}),this.Collection=(pn=this,Tn(zt.prototype,function(Gn,Jn){this.db=pn;let Pi=jn,yi=null;if(Jn)try{Pi=Jn()}catch(mr){yi=mr}const Ei=Gn._ctx,bi=Ei.table,Xi=bi.hook.reading.fire;this._ctx={table:bi,index:Ei.index,isPrimKey:!Ei.index||bi.schema.primKey.keyPath&&Ei.index===bi.schema.primKey.name,range:Pi,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:yi,or:Ei.or,valueMapper:Xi!==be?Xi:null}})),this.Table=(Gn=this,Tn(_i.prototype,function(Jn,Pi,yi){this.db=Gn,this._tx=yi,this.name=Jn,this.schema=Pi,this.hook=Gn._allTables[Jn]?Gn._allTables[Jn].hook:dn(null,{creating:[mt,ue],reading:[Ae,be],updating:[Le,ue],deleting:[tt,ue]})})),this.Transaction=function(Gn){return Tn(On.prototype,function(Jn,Pi,yi,Ei,bi){this.db=Gn,this.mode=Jn,this.storeNames=Pi,this.schema=yi,this.chromeTransactionDurability=Ei,this.idbtrans=null,this.on=dn(this,"complete","error","abort"),this.parent=bi||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new xn((Xi,mr)=>{this._resolve=Xi,this._reject=mr}),this._completion.then(()=>{this.active=!1,this.on.complete.fire()},Xi=>{var mr=this.active;return this.active=!1,this.on.error.fire(Xi),this.parent?this.parent._reject(Xi):mr&&this.idbtrans&&this.idbtrans.abort(),Mr(Xi)})})}(this),this.Version=function(Gn){return Tn(ra.prototype,function(Jn){this.db=Gn,this._cfg={version:Jn,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}(this),this.WhereClause=function(Gn){return Tn($n.prototype,function(Jn,Pi,yi){this.db=Gn,this._ctx={table:Jn,index:":id"===Pi?null:Pi,or:yi};const Ei=Gn._deps.indexedDB;if(!Ei)throw new re.MissingAPI;this._cmp=this._ascending=Ei.cmp.bind(Ei),this._descending=(bi,Xi)=>Ei.cmp(Xi,bi),this._max=(bi,Xi)=>Ei.cmp(bi,Xi)>0?bi:Xi,this._min=(bi,Xi)=>Ei.cmp(bi,Xi)<0?bi:Xi,this._IDBKeyRange=Gn._deps.IDBKeyRange})}(this),this.on("versionchange",Gn=>{Gn.newVersion>0?console.warn(`Another connection wants to upgrade database '${this.name}'. Closing db now to resume the upgrade.`):console.warn(`Another connection wants to delete database '${this.name}'. Closing db now to resume the delete request.`),this.close()}),this.on("blocked",Gn=>{!Gn.newVersion||Gn.newVersion<Gn.oldVersion?console.warn(`Dexie.delete('${this.name}') was blocked`):console.warn(`Upgrade '${this.name}' blocked by other connection holding version ${Gn.oldVersion/10}`)}),this._maxKey=jt(We.IDBKeyRange),this._createTransaction=(Gn,Jn,Pi,yi)=>new this.Transaction(Gn,Jn,Pi,this._options.chromeTransactionDurability,yi),this._fireOnBlocked=Gn=>{this.on("blocked").fire(Gn),Xr.filter(Jn=>Jn.name===this.name&&Jn!==this&&!Jn._state.vcFired).map(Jn=>Jn.on("versionchange").fire(Gn))},this.use(ds),this.use(fa),this.use(ba),this.use(qo),this.vip=Object.create(this,{_vip:{value:!0}}),rt.forEach(Gn=>Gn(this))}version(it){if(isNaN(it)||it<.1)throw new re.Type("Given version is not a positive number");if(it=Math.round(10*it)/10,this.idbdb||this._state.isBeingOpened)throw new re.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,it);const We=this._versions;var Qe=We.filter(rt=>rt._cfg.version===it)[0];return Qe||(Qe=new this.Version(it),We.push(Qe),We.sort(br),Qe.stores({}),this._state.autoSchema=!1,Qe)}_whenReady(it){return this.idbdb&&(this._state.openComplete||vt.letThrough||this._vip)?it():new xn((We,Qe)=>{if(this._state.openComplete)return Qe(new re.DatabaseClosed(this._state.dbOpenError));if(!this._state.isBeingOpened){if(!this._options.autoOpen)return void Qe(new re.DatabaseClosed);this.open().catch(ue)}this._state.dbReadyPromise.then(We,Qe)}).then(it)}use({stack:it,create:We,level:Qe,name:rt}){rt&&this.unuse({stack:it,name:rt});const $t=this._middlewares[it]||(this._middlewares[it]=[]);return $t.push({stack:it,create:We,level:Qe??10,name:rt}),$t.sort((pn,Gn)=>pn.level-Gn.level),this}unuse({stack:it,name:We,create:Qe}){return it&&this._middlewares[it]&&(this._middlewares[it]=this._middlewares[it].filter(rt=>Qe?rt.create!==Qe:!!We&&rt.name!==We)),this}open(){return function io(_t){const it=_t._state,{indexedDB:We}=_t._deps;if(it.isBeingOpened||_t.idbdb)return it.dbReadyPromise.then(()=>it.dbOpenError?Mr(it.dbOpenError):_t);X&&(it.openCanceller._stackHolder=Te()),it.isBeingOpened=!0,it.dbOpenError=null,it.openComplete=!1;const Qe=it.openCanceller;function rt(){if(it.openCanceller!==Qe)throw new re.DatabaseClosed("db.open() was cancelled")}let $t=it.dbReadyResolve,pn=null,Gn=!1;return xn.race([Qe,(typeof navigator>"u"?xn.resolve():Da()).then(()=>new xn((Jn,Pi)=>{if(rt(),!We)throw new re.MissingAPI;const yi=_t.name,Ei=it.autoSchema?We.open(yi):We.open(yi,Math.round(10*_t.verno));if(!Ei)throw new re.MissingAPI;Ei.onerror=ot(Pi),Ei.onblocked=ci(_t._fireOnBlocked),Ei.onupgradeneeded=ci(bi=>{if(pn=Ei.transaction,it.autoSchema&&!_t._options.allowEmptyDB){Ei.onerror=Bt,pn.abort(),Ei.result.close();const mr=We.deleteDatabase(yi);mr.onsuccess=mr.onerror=ci(()=>{Pi(new re.NoSuchDatabase(`Database ${yi} doesnt exist`))})}else{pn.onerror=ot(Pi);var Xi=bi.oldVersion>Math.pow(2,62)?0:bi.oldVersion;Gn=Xi<1,_t._novip.idbdb=Ei.result,function oo(_t,it,We,Qe){const rt=_t._dbSchema,$t=_t._createTransaction("readwrite",_t._storeNames,rt);$t.create(We),$t._completion.catch(Qe);const pn=$t._reject.bind($t),Gn=vt.transless||vt;hi(()=>{vt.trans=$t,vt.transless=Gn,0===it?(c(rt).forEach(Jn=>{No(We,Jn,rt[Jn].primKey,rt[Jn].indexes)}),ji(_t,We),xn.follow(()=>_t.on.populate.fire($t)).catch(pn)):function({_novip:Jn},Pi,yi,Ei){const bi=[],Xi=Jn._versions;let mr=Jn._dbSchema=$o(0,Jn.idbdb,Ei),lr=!1;return Xi.filter($i=>$i._cfg.version>=Pi).forEach($i=>{bi.push(()=>{const ir=mr,Ir=$i._cfg.dbschema;pa(Jn,ir,Ei),pa(Jn,Ir,Ei),mr=Jn._dbSchema=Ir;const Hr=ro(ir,Ir);Hr.add.forEach(Pr=>{No(Ei,Pr[0],Pr[1].primKey,Pr[1].indexes)}),Hr.change.forEach(Pr=>{if(Pr.recreate)throw new re.Upgrade("Not yet support for changing primary key");{const Ar=Ei.objectStore(Pr.name);Pr.add.forEach(qr=>uo(Ar,qr)),Pr.change.forEach(qr=>{Ar.deleteIndex(qr.name),uo(Ar,qr)}),Pr.del.forEach(qr=>Ar.deleteIndex(qr))}});const Or=$i._cfg.contentUpgrade;if(Or&&$i._cfg.version>Pi){ji(Jn,Ei),yi._memoizedTables={},lr=!0;let Pr=R(Ir);Hr.del.forEach(Dn=>{Pr[Dn]=ir[Dn]}),Tr(Jn,[Jn.Transaction.prototype]),Qi(Jn,[Jn.Transaction.prototype],c(Pr),Pr),yi.schema=Pr;const Ar=Z(Or);let qr;Ar&&Si();const eo=xn.follow(()=>{if(qr=Or(yi),qr&&Ar){var Dn=Yi.bind(null,null);qr.then(Dn,Dn)}});return qr&&"function"==typeof qr.then?xn.resolve(qr):eo.then(()=>qr)}}),bi.push(ir=>{var Ir,Hr;(!lr||!_o)&&(Ir=$i._cfg.dbschema,[].slice.call((Hr=ir).db.objectStoreNames).forEach(Or=>null==Ir[Or]&&Hr.db.deleteObjectStore(Or))),Tr(Jn,[Jn.Transaction.prototype]),Qi(Jn,[Jn.Transaction.prototype],Jn._storeNames,Jn._dbSchema),yi.schema=Jn._dbSchema})}),function yr(){return bi.length?xn.resolve(bi.shift()(yi.idbtrans)).then(yr):xn.resolve()}().then(()=>{var $i,ir;ir=Ei,c($i=mr).forEach(Ir=>{ir.db.objectStoreNames.contains(Ir)||No(ir,Ir,$i[Ir].primKey,$i[Ir].indexes)})})}(_t,it,$t,We).catch(pn)})}(_t,Xi/10,pn,Pi)}},Pi),Ei.onsuccess=ci(()=>{pn=null;const bi=_t._novip.idbdb=Ei.result,Xi=y(bi.objectStoreNames);if(Xi.length>0)try{const lr=bi.transaction(1===(mr=Xi).length?mr[0]:mr,"readonly");it.autoSchema?function({_novip:yr},$i,ir){yr.verno=$i.version/10;const Ir=yr._dbSchema=$o(0,$i,ir);yr._storeNames=y($i.objectStoreNames,0),Qi(yr,[yr._allTables],c(Ir),Ir)}(_t,bi,lr):(pa(_t,_t._dbSchema,lr),function(yr,$i){const ir=ro($o(0,yr.idbdb,$i),yr._dbSchema);return!(ir.add.length||ir.change.some(Ir=>Ir.add.length||Ir.change.length))}(_t,lr)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),ji(_t,lr)}catch{}var mr;Xr.push(_t),bi.onversionchange=ci(lr=>{it.vcFired=!0,_t.on("versionchange").fire(lr)}),bi.onclose=ci(lr=>{_t.on("close").fire(lr)}),Gn&&function({indexedDB:lr,IDBKeyRange:yr},$i){!Uo(lr)&&"__dbnames"!==$i&&wo(lr,yr).put({name:$i}).catch(ue)}(_t._deps,yi),Jn()},Pi)}))]).then(()=>(rt(),it.onReadyBeingFired=[],xn.resolve(Ao(()=>_t.on.ready.fire(_t.vip))).then(function Jn(){if(it.onReadyBeingFired.length>0){let Pi=it.onReadyBeingFired.reduce(tn,ue);return it.onReadyBeingFired=[],xn.resolve(Ao(()=>Pi(_t.vip))).then(Jn)}}))).finally(()=>{it.onReadyBeingFired=null,it.isBeingOpened=!1}).then(()=>_t).catch(Jn=>{it.dbOpenError=Jn;try{pn&&pn.abort()}catch{}return Qe===it.openCanceller&&_t._close(),Mr(Jn)}).finally(()=>{it.openComplete=!0,$t()})}(this)}_close(){const it=this._state,We=Xr.indexOf(this);if(We>=0&&Xr.splice(We,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}it.dbReadyPromise=new xn(Qe=>{it.dbReadyResolve=Qe}),it.openCanceller=new xn((Qe,rt)=>{it.cancelOpen=rt})}close(){this._close();const it=this._state;this._options.autoOpen=!1,it.dbOpenError=new re.DatabaseClosed,it.isBeingOpened&&it.cancelOpen(it.dbOpenError)}delete(){const it=arguments.length>0,We=this._state;return new xn((Qe,rt)=>{const $t=()=>{this.close();var pn=this._deps.indexedDB.deleteDatabase(this.name);pn.onsuccess=ci(()=>{(function({indexedDB:Gn,IDBKeyRange:Jn},Pi){!Uo(Gn)&&"__dbnames"!==Pi&&wo(Gn,Jn).delete(Pi).catch(ue)})(this._deps,this.name),Qe()}),pn.onerror=ot(rt),pn.onblocked=this._fireOnBlocked};if(it)throw new re.InvalidArgument("Arguments not allowed in db.delete()");We.isBeingOpened?We.dbReadyPromise.then($t):$t()})}backendDB(){return this.idbdb}isOpen(){return null!==this.idbdb}hasBeenClosed(){const it=this._state.dbOpenError;return it&&"DatabaseClosed"===it.name}hasFailed(){return null!==this._state.dbOpenError}dynamicallyOpened(){return this._state.autoSchema}get tables(){return c(this._allTables).map(it=>this._allTables[it])}transaction(){const it=ga.apply(this,arguments);return this._transaction.apply(this,it)}_transaction(it,We,Qe){let rt=vt.trans;rt&&rt.db===this&&-1===it.indexOf("!")||(rt=null);const $t=-1!==it.indexOf("?");let pn,Gn;it=it.replace("!","").replace("?","");try{if(Gn=We.map(Pi=>{var yi=Pi instanceof this.Table?Pi.name:Pi;if("string"!=typeof yi)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return yi}),"r"==it||"readonly"===it)pn="readonly";else{if("rw"!=it&&"readwrite"!=it)throw new re.InvalidArgument("Invalid transaction mode: "+it);pn="readwrite"}if(rt){if("readonly"===rt.mode&&"readwrite"===pn){if(!$t)throw new re.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");rt=null}rt&&Gn.forEach(Pi=>{if(rt&&-1===rt.storeNames.indexOf(Pi)){if(!$t)throw new re.SubTransaction("Table "+Pi+" not included in parent transaction.");rt=null}}),$t&&rt&&!rt.active&&(rt=null)}}catch(Pi){return rt?rt._promise(null,(yi,Ei)=>{Ei(Pi)}):Mr(Pi)}const Jn=$a.bind(null,this,pn,Gn,rt,Qe);return rt?rt._promise(pn,Jn,"lock"):vt.trans?Sr(vt.transless,()=>this._whenReady(Jn)):this._whenReady(Jn)}table(it){if(!p(this._allTables,it))throw new re.InvalidTable(`Table ${it} does not exist`);return this._allTables[it]}}const _a=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable";class Jt{constructor(it){this._subscribe=it}subscribe(it,We,Qe){return this._subscribe(it&&"function"!=typeof it?it:{next:it,error:We,complete:Qe})}[_a](){return this}}function Ut(_t,it){return c(it).forEach(We=>{Ma(_t[We]||(_t[We]=new Jo),it[We])}),_t}let An;try{An={indexedDB:o.indexedDB||o.mozIndexedDB||o.webkitIndexedDB||o.msIndexedDB,IDBKeyRange:o.IDBKeyRange||o.webkitIDBKeyRange}}catch{An={indexedDB:null,IDBKeyRange:null}}const Ni=wa;function jr(_t){let it=Eo;try{Eo=!0,nn.storagemutated.fire(_t)}finally{Eo=it}}s(Ni,{...ie,delete:_t=>new Ni(_t,{addons:[]}).delete(),exists:_t=>new Ni(_t,{addons:[]}).open().then(it=>(it.close(),!0)).catch("NoSuchDatabaseError",()=>!1),getDatabaseNames(_t){try{return function({indexedDB:it,IDBKeyRange:We}){return Uo(it)?Promise.resolve(it.databases()).then(Qe=>Qe.map(rt=>rt.name).filter(rt=>"__dbnames"!==rt)):wo(it,We).toCollection().primaryKeys()}(Ni.dependencies).then(_t)}catch{return Mr(new re.MissingAPI)}},defineClass:()=>function(_t){C(this,_t)},ignoreTransaction:_t=>vt.trans?Sr(vt.transless,_t):_t(),vip:Ao,async:function(_t){return function(){try{var it=jo(_t.apply(this,arguments));return it&&"function"==typeof it.then?it:xn.resolve(it)}catch(We){return Mr(We)}}},spawn:function(_t,it,We){try{var Qe=jo(_t.apply(We,it||[]));return Qe&&"function"==typeof Qe.then?Qe:xn.resolve(Qe)}catch(rt){return Mr(rt)}},currentTransaction:{get:()=>vt.trans||null},waitFor:function(_t,it){const We=xn.resolve("function"==typeof _t?Ni.ignoreTransaction(_t):_t).timeout(it||6e4);return vt.trans?vt.trans.waitFor(We):We},Promise:xn,debug:{get:()=>X,set:_t=>{M(_t,"dexie"===_t?()=>!0:It)}},derive:h,extend:C,props:s,override:E,Events:dn,on:nn,liveQuery:function At(_t){return new Jt(it=>{const We=Z(_t);let Qe=!1,rt={},$t={};const pn={get closed(){return Qe},unsubscribe:()=>{Qe=!0,nn.storagemutated.unsubscribe(yi)}};it.start&&it.start(pn);let Gn=!1,Jn=!1;function Pi(){return c($t).some(bi=>rt[bi]&&function xa(_t,it){const We=ma(it);let Qe=We.next();if(Qe.done)return!1;let rt=Qe.value;const $t=ma(_t);let pn=$t.next(rt.from),Gn=pn.value;for(;!Qe.done&&!pn.done;){if(Ze(Gn.from,rt.to)<=0&&Ze(Gn.to,rt.from)>=0)return!0;Ze(rt.from,Gn.from)<0?rt=(Qe=We.next(Gn.from)).value:Gn=(pn=$t.next(rt.from)).value}return!1}(rt[bi],$t[bi]))}const yi=bi=>{Ut(rt,bi),Pi()&&Ei()},Ei=()=>{if(Gn||Qe)return;rt={};const bi={},Xi=function(mr){We&&Si();const lr=()=>hi(_t,{subscr:mr,trans:null}),yr=vt.trans?Sr(vt.transless,lr):lr();return We&&yr.then(Yi,Yi),yr}(bi);Jn||(nn("storagemutated",yi),Jn=!0),Gn=!0,Promise.resolve(Xi).then(mr=>{Gn=!1,Qe||(Pi()?Ei():(rt={},$t=bi,it.next&&it.next(mr)))},mr=>{Gn=!1,it.error&&it.error(mr),pn.unsubscribe()})};return Ei(),pn})},extendObservabilitySet:Ut,getByKeyPath:T,setByKeyPath:k,delByKeyPath:function(_t,it){"string"==typeof it?k(_t,it,void 0):"length"in it&&[].map.call(it,function(We){k(_t,We,void 0)})},shallowClone:R,deepClone:U,getObjectDiff:Xo,cmp:Ze,asap:O,minKey:-1/0,addons:[],connections:Xr,errnames:pe,dependencies:An,semVer:"3.2.3",version:"3.2.3".split(".").map(_t=>parseInt(_t)).reduce((_t,it,We)=>_t+it/Math.pow(10,2*We))}),Ni.maxKey=jt(Ni.dependencies.IDBKeyRange),typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(nn("storagemutated",_t=>{if(!Eo){let it;lo?(it=document.createEvent("CustomEvent"),it.initCustomEvent("x-storagemutated-1",!0,!0,_t)):it=new CustomEvent("x-storagemutated-1",{detail:_t}),Eo=!0,dispatchEvent(it),Eo=!1}}),addEventListener("x-storagemutated-1",({detail:_t})=>{Eo||jr(_t)}));let Eo=!1;if(typeof BroadcastChannel<"u"){const _t=new BroadcastChannel("x-storagemutated-1");"function"==typeof _t.unref&&_t.unref(),nn("storagemutated",it=>{Eo||_t.postMessage(it)}),_t.onmessage=it=>{it.data&&jr(it.data)}}else if(typeof self<"u"&&typeof navigator<"u"){nn("storagemutated",it=>{try{Eo||(typeof localStorage<"u"&&localStorage.setItem("x-storagemutated-1",JSON.stringify({trig:Math.random(),changedParts:it})),"object"==typeof self.clients&&[...self.clients.matchAll({includeUncontrolled:!0})].forEach(We=>We.postMessage({type:"x-storagemutated-1",changedParts:it})))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",it=>{if("x-storagemutated-1"===it.key){const We=JSON.parse(it.newValue);We&&jr(We.changedParts)}});const _t=self.document&&navigator.serviceWorker;_t&&_t.addEventListener("message",function({data:it}){it&&"x-storagemutated-1"===it.type&&jr(it.changedParts)})}xn.rejectionMapper=function(_t,it){if(!_t||_t instanceof ye||_t instanceof TypeError||_t instanceof SyntaxError||!_t.name||!te[_t.name])return _t;var We=new te[_t.name](it||_t.message,_t);return"stack"in _t&&d(We,"stack",{get:function(){return this.inner.stack}}),We},M(X,It)},8239:(Rn,he,u)=>{"use strict";function o(I,C,g,a,p,s,l){try{var d=I[s](l),h=d.value}catch(v){return void g(v)}d.done?C(h):Promise.resolve(h).then(a,p)}function c(I){return function(){var C=this,g=arguments;return new Promise(function(a,p){var s=I.apply(C,g);function l(h){o(s,a,p,l,d,"next",h)}function d(h){o(s,a,p,l,d,"throw",h)}l(void 0)})}}u.d(he,{Z:()=>c})},4817:(Rn,he,u)=>{"use strict";function o(){return o=Object.assign?Object.assign.bind():function(c){for(var I=1;I<arguments.length;I++){var C=arguments[I];for(var g in C)Object.prototype.hasOwnProperty.call(C,g)&&(c[g]=C[g])}return c},o.apply(this,arguments)}u.d(he,{Z:()=>o})},9943:(Rn,he,u)=>{"use strict";function o(c,I){if(null==c)return{};var a,p,C={},g=Object.keys(c);for(p=0;p<g.length;p++)!(I.indexOf(a=g[p])>=0)&&(C[a]=c[a]);return C}u.d(he,{Z:()=>o})}},Rn=>{Rn(Rn.s=2653)}]);
